@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 { UserIcon, EyeOffIcon, EyeIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
3
+ import { UserIcon, 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, TouchableOpacity, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
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';
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';
@@ -52,7 +52,7 @@ function SpinningIcon(_ref) {
52
52
  });
53
53
  }
54
54
 
55
- var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
55
+ var IconContainer = /*#__PURE__*/styled.View.withConfig({
56
56
  displayName: "Icon__IconContainer"
57
57
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
58
58
  var color = _ref.color;
@@ -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,
@@ -610,7 +610,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
610
610
  if (Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
611
611
  return 'color: inherit';
612
612
  });
613
- var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
613
+ var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
614
614
  displayName: "ButtonContent__StyledIconContainer"
615
615
  })(["", ""], function (_ref2) {
616
616
  var theme = _ref2.theme,
@@ -630,7 +630,7 @@ function ButtonIcon(_ref3) {
630
630
  spin = _ref3.spin,
631
631
  iconPosition = _ref3.iconPosition,
632
632
  testID = _ref3.testID;
633
- return /*#__PURE__*/jsx(StyledIconContainer, {
633
+ return /*#__PURE__*/jsx(StyledIconContainer$1, {
634
634
  $iconPosition: iconPosition,
635
635
  children: /*#__PURE__*/jsx(TypographyIcon, {
636
636
  icon: icon,
@@ -790,7 +790,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
790
790
  });
791
791
  });
792
792
 
793
- var Container$6 = /*#__PURE__*/styled.View.withConfig({
793
+ var Container$5 = /*#__PURE__*/styled.View.withConfig({
794
794
  displayName: "Card__Container"
795
795
  })(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
796
796
  var theme = _ref.theme,
@@ -813,7 +813,7 @@ var Container$6 = /*#__PURE__*/styled.View.withConfig({
813
813
  function Card(_ref6) {
814
814
  var children = _ref6.children,
815
815
  type = _ref6.type;
816
- return /*#__PURE__*/jsx(Container$6, {
816
+ return /*#__PURE__*/jsx(Container$5, {
817
817
  type: type,
818
818
  children: children
819
819
  });
@@ -1228,7 +1228,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
1228
1228
  var theme = _ref14.theme;
1229
1229
  return theme.kitt.forms.radio.checked.innerSize / 2;
1230
1230
  });
1231
- var Container$5 = /*#__PURE__*/styled.Pressable.withConfig({
1231
+ var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
1232
1232
  displayName: "Radio__Container"
1233
1233
  })(["flex-direction:row;align-items:center;"]);
1234
1234
  var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
@@ -1245,7 +1245,7 @@ function Radio(_ref16) {
1245
1245
  _ref16$disabled = _ref16.disabled,
1246
1246
  disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
1247
1247
  children = _ref16.children;
1248
- return /*#__PURE__*/jsxs(Container$5, {
1248
+ return /*#__PURE__*/jsxs(Container$4, {
1249
1249
  nativeID: id,
1250
1250
  disabled: disabled,
1251
1251
  accessibilityRole: "radio",
@@ -1423,7 +1423,7 @@ function FullScreenModalHeader(_ref6) {
1423
1423
  });
1424
1424
  }
1425
1425
 
1426
- var Container$4 = /*#__PURE__*/styled.View.withConfig({
1426
+ var Container$3 = /*#__PURE__*/styled.View.withConfig({
1427
1427
  displayName: "FullScreenModal__Container"
1428
1428
  })(["flex:1;background-color:", ";"], function (_ref) {
1429
1429
  var theme = _ref.theme;
@@ -1431,7 +1431,7 @@ var Container$4 = /*#__PURE__*/styled.View.withConfig({
1431
1431
  });
1432
1432
  function FullScreenModal(_ref2) {
1433
1433
  var children = _ref2.children;
1434
- return /*#__PURE__*/jsx(Container$4, {
1434
+ return /*#__PURE__*/jsx(Container$3, {
1435
1435
  children: children
1436
1436
  });
1437
1437
  }
@@ -1900,55 +1900,32 @@ function LargeLoader(_ref) {
1900
1900
  });
1901
1901
  }
1902
1902
 
1903
- var xIconSize = 14;
1904
- var mainIconSize = 20;
1905
- var Container$3 = /*#__PURE__*/styled.View.withConfig({
1906
- displayName: "Message__Container"
1907
- })(["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) {
1908
- var theme = _ref.theme,
1909
- noRadius = _ref.noRadius;
1910
- return noRadius ? 0 : theme.kitt.spacing * 5;
1911
- }, function (_ref2) {
1912
- var theme = _ref2.theme,
1913
- type = _ref2.type;
1914
- return theme.kitt.feedbackMessage.backgroundColors[type];
1915
- }, function (_ref3) {
1916
- var theme = _ref3.theme;
1917
- return theme.kitt.spacing * 4;
1918
- }, function (_ref4) {
1919
- var theme = _ref4.theme;
1920
- return theme.kitt.spacing * 4;
1921
- }, function (_ref5) {
1922
- var theme = _ref5.theme;
1923
- return theme.kitt.spacing * 4;
1924
- }, function (_ref6) {
1925
- var _insets$top;
1903
+ function IconContent(_ref) {
1904
+ var type = _ref.type,
1905
+ color = _ref.color;
1926
1906
 
1927
- var theme = _ref6.theme,
1928
- insets = _ref6.insets;
1929
- return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
1930
- });
1931
- var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
1932
- displayName: "Message__CloseContainer"
1933
- })(["margin-left:", "px;padding:", "px;"], function (_ref7) {
1934
- var theme = _ref7.theme;
1935
- return theme.kitt.spacing * 4;
1936
- }, function (_ref8) {
1937
- var theme = _ref8.theme;
1938
- return theme.kitt.spacing;
1939
- });
1940
- var IconContainer = /*#__PURE__*/styled.View.withConfig({
1941
- displayName: "Message__IconContainer"
1942
- })(["margin-right:", "px;"], function (_ref9) {
1943
- var theme = _ref9.theme;
1944
- return theme.kitt.spacing * 4;
1945
- });
1946
- var Content = /*#__PURE__*/styled.Text.withConfig({
1947
- displayName: "Message__Content"
1948
- })(["text-align:", ";flex:1;"], function (_ref10) {
1949
- var centeredText = _ref10.centeredText;
1950
- return centeredText ? 'center' : 'left';
1951
- });
1907
+ switch (type) {
1908
+ case 'warning':
1909
+ return /*#__PURE__*/jsx(AlertCircleIcon, {
1910
+ color: color
1911
+ });
1912
+
1913
+ case 'success':
1914
+ return /*#__PURE__*/jsx(CheckIcon, {
1915
+ color: color
1916
+ });
1917
+
1918
+ case 'danger':
1919
+ return /*#__PURE__*/jsx(AlertTriangleIcon, {
1920
+ color: color
1921
+ });
1922
+
1923
+ default:
1924
+ return /*#__PURE__*/jsx(InfoIcon, {
1925
+ color: color
1926
+ });
1927
+ }
1928
+ }
1952
1929
 
1953
1930
  var getColorByType = function (type) {
1954
1931
  switch (type) {
@@ -1963,63 +1940,117 @@ var getColorByType = function (type) {
1963
1940
  return 'black';
1964
1941
  }
1965
1942
  };
1966
-
1967
- function getIconContent(type) {
1968
- switch (type) {
1969
- case 'warning':
1970
- return /*#__PURE__*/jsx(AlertCircleIcon, {});
1971
-
1943
+ var getIconButtonColor = function (messageType) {
1944
+ switch (messageType) {
1972
1945
  case 'success':
1973
- return /*#__PURE__*/jsx(CheckIcon, {});
1974
-
1975
1946
  case 'danger':
1976
- return /*#__PURE__*/jsx(AlertTriangleIcon, {});
1947
+ return 'white';
1977
1948
 
1949
+ case 'warning':
1978
1950
  default:
1979
- return /*#__PURE__*/jsx(InfoIcon, {});
1951
+ return 'black';
1980
1952
  }
1981
- }
1953
+ };
1982
1954
 
1983
- function Message(_ref11) {
1984
- var _ref11$type = _ref11.type,
1985
- type = _ref11$type === void 0 ? 'info' : _ref11$type,
1986
- children = _ref11.children,
1987
- _ref11$noRadius = _ref11.noRadius,
1988
- noRadius = _ref11$noRadius === void 0 ? false : _ref11$noRadius,
1989
- _ref11$centeredText = _ref11.centeredText,
1990
- centeredText = _ref11$centeredText === void 0 ? false : _ref11$centeredText,
1991
- onDismiss = _ref11.onDismiss,
1992
- insets = _ref11.insets;
1955
+ var StyledMessageContainer = /*#__PURE__*/styled.View.withConfig({
1956
+ displayName: "BaseMessage__StyledMessageContainer"
1957
+ })(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
1958
+ var _$insets$top;
1959
+
1960
+ var $insets = _ref.$insets;
1961
+ return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
1962
+ }, function (_ref2) {
1963
+ var theme = _ref2.theme,
1964
+ $hasNoRadius = _ref2.$hasNoRadius;
1965
+ return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
1966
+ }, function (_ref3) {
1967
+ var theme = _ref3.theme,
1968
+ $type = _ref3.$type;
1969
+ return theme.kitt.feedbackMessage[$type].backgroundColor;
1970
+ });
1971
+ var StyledDismissWrapper = /*#__PURE__*/styled.View.withConfig({
1972
+ displayName: "BaseMessage__StyledDismissWrapper"
1973
+ })(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
1974
+ var theme = _ref4.theme;
1975
+ var spacing = theme.kitt.spacing;
1976
+ return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
1977
+ });
1978
+ var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
1979
+ displayName: "BaseMessage__StyledIconContainer"
1980
+ })(["margin:", ";"], function (_ref5) {
1981
+ var theme = _ref5.theme;
1982
+ var spacing = theme.kitt.spacing;
1983
+ return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
1984
+ });
1985
+ var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
1986
+ displayName: "BaseMessage__StyledTextContent"
1987
+ })(["flex:1;text-align:", ";"], function (_ref6) {
1988
+ var $isCenteredText = _ref6.$isCenteredText;
1989
+ return $isCenteredText ? 'center' : 'left';
1990
+ });
1991
+ var StyledMessageContent = /*#__PURE__*/styled.View.withConfig({
1992
+ displayName: "BaseMessage__StyledMessageContent"
1993
+ })(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
1994
+ var theme = _ref7.theme;
1995
+ var spacing = theme.kitt.spacing;
1996
+ return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
1997
+ });
1998
+ function BaseMessage(_ref8) {
1999
+ var _ref8$type = _ref8.type,
2000
+ type = _ref8$type === void 0 ? 'info' : _ref8$type,
2001
+ children = _ref8.children,
2002
+ hasNoRadius = _ref8.hasNoRadius,
2003
+ centeredText = _ref8.centeredText,
2004
+ insets = _ref8.insets,
2005
+ onDismiss = _ref8.onDismiss;
1993
2006
  var color = getColorByType(type);
1994
- return /*#__PURE__*/jsxs(Container$3, {
1995
- type: type,
1996
- noRadius: noRadius,
1997
- insets: insets,
1998
- children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
1999
- children: /*#__PURE__*/jsx(Icon, {
2000
- size: mainIconSize,
2001
- color: color,
2002
- icon: getIconContent(type)
2003
- })
2004
- }) : null, /*#__PURE__*/jsx(Content, {
2005
- type: type,
2006
- centeredText: centeredText,
2007
- children: /*#__PURE__*/jsx(Typography.Text, {
2008
- base: "body-small",
2007
+ return /*#__PURE__*/jsxs(StyledMessageContainer, {
2008
+ $type: type,
2009
+ $hasNoRadius: hasNoRadius,
2010
+ $insets: insets,
2011
+ children: [/*#__PURE__*/jsxs(StyledMessageContent, {
2012
+ children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
2013
+ children: /*#__PURE__*/jsx(Icon, {
2014
+ color: color,
2015
+ icon: /*#__PURE__*/jsx(IconContent, {
2016
+ type: type,
2017
+ color: color
2018
+ })
2019
+ })
2020
+ }), /*#__PURE__*/jsx(StyledTextContent, {
2021
+ $isCenteredText: centeredText,
2022
+ base: "body",
2009
2023
  color: color,
2010
2024
  children: children
2011
- })
2012
- }), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
2013
- onPress: onDismiss,
2014
- children: /*#__PURE__*/jsx(Icon, {
2025
+ })]
2026
+ }), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
2027
+ children: /*#__PURE__*/jsx(IconButton, {
2028
+ color: getIconButtonColor(type),
2015
2029
  icon: /*#__PURE__*/jsx(XIcon, {}),
2016
- size: xIconSize,
2017
- color: color
2030
+ onPress: onDismiss
2018
2031
  })
2019
2032
  }) : null]
2020
2033
  });
2021
2034
  }
2022
2035
 
2036
+ function Message(_ref) {
2037
+ var _ref$type = _ref.type,
2038
+ type = _ref$type === void 0 ? 'info' : _ref$type,
2039
+ children = _ref.children,
2040
+ hasNoRadius = _ref.hasNoRadius,
2041
+ centeredText = _ref.centeredText,
2042
+ insets = _ref.insets,
2043
+ onDismiss = _ref.onDismiss;
2044
+ return /*#__PURE__*/jsx(BaseMessage, {
2045
+ insets: insets,
2046
+ hasNoRadius: hasNoRadius,
2047
+ type: type,
2048
+ centeredText: centeredText,
2049
+ onDismiss: onDismiss,
2050
+ children: children
2051
+ });
2052
+ }
2053
+
2023
2054
  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; }
2024
2055
 
2025
2056
  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; }
@@ -2178,19 +2209,22 @@ function Notification(_ref) {
2178
2209
  var type = _ref.type,
2179
2210
  children = _ref.children,
2180
2211
  centeredText = _ref.centeredText,
2181
- onDelete = _ref.onDelete;
2212
+ insets = _ref.insets,
2213
+ onDelete = _ref.onDelete,
2214
+ onDismiss = _ref.onDismiss;
2182
2215
 
2183
- var _useSafeAreaInsets = useSafeAreaInsets(),
2184
- top = _useSafeAreaInsets.top;
2216
+ if ((process.env.NODE_ENV !== "production")) {
2217
+ if (onDelete) {
2218
+ throw new Error('onDelete is deprecated us onDismiss instead');
2219
+ }
2220
+ }
2185
2221
 
2186
- return /*#__PURE__*/jsx(Message, {
2187
- noRadius: true,
2222
+ return /*#__PURE__*/jsx(BaseMessage, {
2223
+ hasNoRadius: true,
2188
2224
  type: type,
2189
2225
  centeredText: centeredText,
2190
- insets: {
2191
- top: top
2192
- },
2193
- onDismiss: onDelete,
2226
+ insets: insets,
2227
+ onDismiss: onDismiss,
2194
2228
  children: children
2195
2229
  });
2196
2230
  }
@@ -2258,6 +2292,9 @@ function SkeletonContent(_ref3) {
2258
2292
  });
2259
2293
  }
2260
2294
 
2295
+ var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
2296
+ displayName: "Skeleton__SkeletonContainer"
2297
+ })(["overflow:hidden;"]);
2261
2298
  function Skeleton(_ref) {
2262
2299
  var isLoading = _ref.isLoading,
2263
2300
  style = _ref.style;
@@ -2267,7 +2304,7 @@ function Skeleton(_ref) {
2267
2304
  width = _useState2[0],
2268
2305
  setWidth = _useState2[1];
2269
2306
 
2270
- return /*#__PURE__*/jsx(View, {
2307
+ return /*#__PURE__*/jsx(SkeletonContainer, {
2271
2308
  style: style,
2272
2309
  onLayout: function onLayout(_ref2) {
2273
2310
  var nativeEvent = _ref2.nativeEvent;
@@ -2281,7 +2318,7 @@ function Skeleton(_ref) {
2281
2318
  }
2282
2319
  var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
2283
2320
  displayName: "Skeleton__Bar"
2284
- })(["width:100%;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref3) {
2321
+ })(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
2285
2322
  var theme = _ref3.theme;
2286
2323
  return theme.kitt.spacing * 2;
2287
2324
  }, function (_ref4) {
@@ -2290,7 +2327,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
2290
2327
  });
2291
2328
  var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
2292
2329
  displayName: "Skeleton__Circle"
2293
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref5) {
2330
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
2294
2331
  var theme = _ref5.theme;
2295
2332
  return theme.kitt.spacing * 12;
2296
2333
  }, function (_ref6) {
@@ -2302,7 +2339,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
2302
2339
  });
2303
2340
  var Square = /*#__PURE__*/styled(Skeleton).withConfig({
2304
2341
  displayName: "Skeleton__Square"
2305
- })(["width:", "px;height:", "px;border-radius:", "px;overflow:hidden;"], function (_ref8) {
2342
+ })(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
2306
2343
  var theme = _ref8.theme;
2307
2344
  return theme.kitt.spacing * 12;
2308
2345
  }, function (_ref9) {
@@ -2757,6 +2794,8 @@ var colorsLateOceanTheme = {
2757
2794
  success: lateOceanColorPalette.viride,
2758
2795
  correct: lateOceanColorPalette.viride,
2759
2796
  danger: lateOceanColorPalette.englishVermillon,
2797
+ info: lateOceanColorPalette.aero,
2798
+ warning: lateOceanColorPalette.goldCrayola,
2760
2799
  separator: lateOceanColorPalette.black100,
2761
2800
  hover: lateOceanColorPalette.black100,
2762
2801
  black: lateOceanColorPalette.black1000,
@@ -2781,7 +2820,7 @@ var avatar = {
2781
2820
  }
2782
2821
  };
2783
2822
 
2784
- var buttonLateOceanTheme = {
2823
+ var button = {
2785
2824
  borderRadius: '30px',
2786
2825
  borderWidth: {
2787
2826
  disabled: '2px',
@@ -2872,12 +2911,18 @@ var cardLateOceanTheme = {
2872
2911
  }
2873
2912
  };
2874
2913
 
2875
- var feedbackMessageLateOceanTheme = {
2876
- backgroundColors: {
2877
- success: lateOceanColorPalette.viride,
2878
- danger: lateOceanColorPalette.englishVermillon,
2879
- warning: lateOceanColorPalette.goldCrayola,
2880
- info: lateOceanColorPalette.aero
2914
+ var feedbackMessage = {
2915
+ danger: {
2916
+ backgroundColor: colorsLateOceanTheme.danger
2917
+ },
2918
+ success: {
2919
+ backgroundColor: colorsLateOceanTheme.success
2920
+ },
2921
+ info: {
2922
+ backgroundColor: colorsLateOceanTheme.info
2923
+ },
2924
+ warning: {
2925
+ backgroundColor: colorsLateOceanTheme.warning
2881
2926
  }
2882
2927
  };
2883
2928
 
@@ -3073,14 +3118,14 @@ var iconButton = {
3073
3118
  },
3074
3119
  disabled: {
3075
3120
  scale: 1,
3076
- backgroundColor: buttonLateOceanTheme.disabled.backgroundColor,
3077
- borderColor: buttonLateOceanTheme.disabled.borderColor
3121
+ backgroundColor: button.disabled.backgroundColor,
3122
+ borderColor: button.disabled.borderColor
3078
3123
  },
3079
3124
  "default": {
3080
- pressedBackgroundColor: buttonLateOceanTheme["default"].pressedBackgroundColor
3125
+ pressedBackgroundColor: button["default"].pressedBackgroundColor
3081
3126
  },
3082
3127
  white: {
3083
- pressedBackgroundColor: buttonLateOceanTheme.white.hoverBackgroundColor
3128
+ pressedBackgroundColor: button.white.hoverBackgroundColor
3084
3129
  }
3085
3130
  };
3086
3131
 
@@ -3181,9 +3226,9 @@ var theme = {
3181
3226
  lateOcean: lateOceanColorPalette
3182
3227
  },
3183
3228
  avatar: avatar,
3184
- button: buttonLateOceanTheme,
3229
+ button: button,
3185
3230
  card: cardLateOceanTheme,
3186
- feedbackMessage: feedbackMessageLateOceanTheme,
3231
+ feedbackMessage: feedbackMessage,
3187
3232
  forms: forms,
3188
3233
  typography: typographyLateOceanTheme,
3189
3234
  tag: tagLateOceanTheme,
@@ -3357,25 +3402,6 @@ function TimePicker(_ref) {
3357
3402
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3358
3403
 
3359
3404
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3360
-
3361
- var Arrow = function (props) {
3362
- return /*#__PURE__*/jsx("svg", _objectSpread$2(_objectSpread$2({}, props), {}, {
3363
- children: /*#__PURE__*/jsx("path", {
3364
- fillRule: "evenodd",
3365
- clipRule: "evenodd",
3366
- 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",
3367
- fill: "currentColor"
3368
- })
3369
- }));
3370
- };
3371
-
3372
- Arrow.defaultProps = {
3373
- width: "36",
3374
- height: "8",
3375
- viewBox: "0 0 36 9",
3376
- fill: "none",
3377
- xmlns: "http://www.w3.org/2000/svg"
3378
- };
3379
3405
  var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
3380
3406
  displayName: "TooltipView__StyledTooltipView"
3381
3407
  })(["align-items:center;"]);
@@ -3398,7 +3424,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
3398
3424
  function ArrowView(props) {
3399
3425
  var theme = /*#__PURE__*/useTheme();
3400
3426
  return /*#__PURE__*/jsx(View, _objectSpread$2(_objectSpread$2({}, props), {}, {
3401
- children: /*#__PURE__*/jsx(Arrow, {
3427
+ children: /*#__PURE__*/jsx(TooltipArrowIcon, {
3402
3428
  color: theme.kitt.tooltip.backgroundColor
3403
3429
  })
3404
3430
  }));