@ornikar/kitt-universal 6.1.0 → 7.0.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 (62) hide show
  1. package/dist/definitions/Avatar/Avatar.d.ts +5 -4
  2. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  3. package/dist/definitions/Icon/Icon.d.ts +1 -1
  4. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  5. package/dist/definitions/Icon/SpinningIcon.d.ts +4 -3
  6. package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
  7. package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
  8. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  9. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts +7 -0
  10. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts.map +1 -0
  11. package/dist/definitions/Overlay/Overlay.d.ts +4 -3
  12. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  13. package/dist/definitions/PageLoader/PageLoader.d.ts +4 -0
  14. package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -0
  15. package/dist/definitions/PageLoader/PageLoader.web.d.ts +3 -0
  16. package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -0
  17. package/dist/definitions/index.d.ts +5 -6
  18. package/dist/definitions/index.d.ts.map +1 -1
  19. package/dist/definitions/themes/default.d.ts +37 -36
  20. package/dist/definitions/themes/default.d.ts.map +1 -1
  21. package/dist/definitions/themes/late-ocean/avatar.d.ts +7 -3
  22. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  23. package/dist/definitions/themes/late-ocean/pageLoader.d.ts +5 -0
  24. package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -0
  25. package/dist/index-browser-all.es.android.js +102 -133
  26. package/dist/index-browser-all.es.android.js.map +1 -1
  27. package/dist/index-browser-all.es.ios.js +102 -133
  28. package/dist/index-browser-all.es.ios.js.map +1 -1
  29. package/dist/index-browser-all.es.js +102 -133
  30. package/dist/index-browser-all.es.js.map +1 -1
  31. package/dist/index-browser-all.es.web.js +109 -142
  32. package/dist/index-browser-all.es.web.js.map +1 -1
  33. package/dist/index-node-14.17.cjs.js +62 -88
  34. package/dist/index-node-14.17.cjs.js.map +1 -1
  35. package/dist/index-node-14.17.cjs.web.css +1 -1
  36. package/dist/index-node-14.17.cjs.web.js +77 -104
  37. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  38. package/dist/linaria-themes-browser-all.es.android.js +13 -5
  39. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  40. package/dist/linaria-themes-browser-all.es.ios.js +13 -5
  41. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  42. package/dist/linaria-themes-browser-all.es.js +13 -5
  43. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  44. package/dist/linaria-themes-browser-all.es.web.js +13 -5
  45. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  46. package/dist/linaria-themes-node-14.17.cjs.js +13 -5
  47. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  48. package/dist/linaria-themes-node-14.17.cjs.web.js +13 -5
  49. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  50. package/dist/styles.css +1 -1
  51. package/dist/tsbuildinfo +1 -1
  52. package/package.json +4 -4
  53. package/dist/definitions/Loader/LargeLoader.d.ts +0 -7
  54. package/dist/definitions/Loader/LargeLoader.d.ts.map +0 -1
  55. package/dist/definitions/Loader/LargeLoader.web.d.ts +0 -3
  56. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +0 -1
  57. package/dist/definitions/Loader/Loader.d.ts +0 -8
  58. package/dist/definitions/Loader/Loader.d.ts.map +0 -1
  59. package/dist/definitions/Loader/Loader.web.d.ts +0 -8
  60. package/dist/definitions/Loader/Loader.web.d.ts.map +0 -1
  61. package/dist/definitions/typography/TypographySpinningIcon.d.ts +0 -9
  62. package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
3
+ import { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
4
4
  export * from '@ornikar/kitt-icons';
5
- import { useWindowDimensions, Image, Platform, Linking, View, Pressable, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1, TextInput, Animated as Animated$1, Easing, ActivityIndicator } from 'react-native';
5
+ import { useWindowDimensions, Image, Platform, Linking, Pressable, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1, TextInput, View, Animated as Animated$1, Easing, ActivityIndicator } 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 { cloneElement, useContext, createContext, forwardRef, useMemo, useState, useRef, useEffect, Fragment as Fragment$1, Children } from 'react';
@@ -101,7 +101,7 @@ var KittBreakpointsMax = {
101
101
  LARGE: KittBreakpoints.WIDE - 1
102
102
  };
103
103
 
104
- var _excluded$i = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
104
+ var _excluded$h = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
105
105
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
106
106
  var TypographyColorContext = /*#__PURE__*/createContext('black');
107
107
  function useTypographyColor() {
@@ -177,7 +177,7 @@ function Typography(_ref4) {
177
177
  large = _ref4.large,
178
178
  variant = _ref4.variant,
179
179
  color = _ref4.color,
180
- otherProps = _objectWithoutProperties(_ref4, _excluded$i);
180
+ otherProps = _objectWithoutProperties(_ref4, _excluded$h);
181
181
 
182
182
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
183
183
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -264,7 +264,7 @@ Typography.h4 = createHeading(4, 'header4');
264
264
 
265
265
  Typography.h5 = createHeading(5, 'header5');
266
266
 
267
- var _excluded$h = ["size", "base", "round", "light"];
267
+ var _excluded$g = ["size", "round", "light", "sizeVariant"];
268
268
 
269
269
  var getInitials = function (firstname, lastname) {
270
270
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -275,9 +275,10 @@ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
275
275
  })(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
276
276
  var theme = _ref.theme,
277
277
  $isRound = _ref.$isRound,
278
- $size = _ref.$size;
278
+ $size = _ref.$size,
279
+ $sizeVariant = _ref.$sizeVariant;
279
280
  if ($isRound) return "".concat($size / 2, "px");
280
- return "".concat(theme.kitt.avatar.borderRadius, "px");
281
+ return "".concat($sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius, "px");
281
282
  }, function (_ref2) {
282
283
  var theme = _ref2.theme,
283
284
  $isLight = _ref2.$isLight;
@@ -296,8 +297,8 @@ function AvatarContent(_ref5) {
296
297
  firstname = _ref5.firstname,
297
298
  lastname = _ref5.lastname,
298
299
  alt = _ref5.alt,
299
- base = _ref5.base,
300
- isLight = _ref5.isLight;
300
+ isLight = _ref5.isLight,
301
+ sizeVariant = _ref5.sizeVariant;
301
302
 
302
303
  if (src) {
303
304
  return /*#__PURE__*/jsx(Image, {
@@ -314,8 +315,8 @@ function AvatarContent(_ref5) {
314
315
 
315
316
  if (firstname && lastname) {
316
317
  return /*#__PURE__*/jsx(Typography.Text, {
317
- base: base,
318
- variant: "bold",
318
+ base: sizeVariant === 'large' ? 'body-large' : 'body',
319
+ variant: sizeVariant === 'large' ? 'bold' : 'regular',
319
320
  color: isLight ? 'black' : 'white',
320
321
  children: getInitials(firstname, lastname)
321
322
  });
@@ -331,20 +332,20 @@ function AvatarContent(_ref5) {
331
332
  function Avatar(_ref6) {
332
333
  var _ref6$size = _ref6.size,
333
334
  size = _ref6$size === void 0 ? 40 : _ref6$size,
334
- _ref6$base = _ref6.base,
335
- base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
336
335
  round = _ref6.round,
337
336
  light = _ref6.light,
338
- props = _objectWithoutProperties(_ref6, _excluded$h);
337
+ sizeVariant = _ref6.sizeVariant,
338
+ props = _objectWithoutProperties(_ref6, _excluded$g);
339
339
 
340
340
  return /*#__PURE__*/jsx(StyledAvatarView, {
341
341
  $size: size,
342
342
  $isRound: round,
343
343
  $isLight: light,
344
+ $sizeVariant: sizeVariant,
344
345
  children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
345
346
  size: size,
346
- base: base,
347
- isLight: light
347
+ isLight: light,
348
+ sizeVariant: sizeVariant
348
349
  }, props))
349
350
  });
350
351
  }
@@ -501,12 +502,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
501
502
  return defaultPadding;
502
503
  });
503
504
 
504
- var _excluded$g = ["color"],
505
- _excluded2$3 = ["color"];
505
+ var _excluded$f = ["color"],
506
+ _excluded2$2 = ["color"];
506
507
 
507
508
  function TypographyIconSpecifiedColor(_ref) {
508
509
  var color = _ref.color,
509
- props = _objectWithoutProperties(_ref, _excluded$g);
510
+ props = _objectWithoutProperties(_ref, _excluded$f);
510
511
 
511
512
  var theme = /*#__PURE__*/useTheme();
512
513
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
@@ -523,7 +524,7 @@ function TypographyIconInheritColor(props) {
523
524
 
524
525
  function TypographyIcon(_ref2) {
525
526
  var color = _ref2.color,
526
- props = _objectWithoutProperties(_ref2, _excluded2$3);
527
+ props = _objectWithoutProperties(_ref2, _excluded2$2);
527
528
 
528
529
  if (color) {
529
530
  return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
@@ -538,7 +539,7 @@ function isSubtle(type) {
538
539
  return type.startsWith('subtle');
539
540
  }
540
541
 
541
- var _excluded$f = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
542
+ var _excluded$e = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
542
543
 
543
544
  var getTextColorByType = function (type, variant) {
544
545
  switch (type) {
@@ -677,7 +678,7 @@ function ButtonContent(_ref7) {
677
678
  $isStretch = _ref7.$isStretch,
678
679
  icon = _ref7.icon,
679
680
  children = _ref7.children,
680
- props = _objectWithoutProperties(_ref7, _excluded$f);
681
+ props = _objectWithoutProperties(_ref7, _excluded$e);
681
682
 
682
683
  var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
683
684
  return /*#__PURE__*/jsx(ButtonContentContainer, {
@@ -829,14 +830,14 @@ var defaultOpenLinkBehavior = {
829
830
  web: 'targetBlank'
830
831
  };
831
832
 
832
- var _excluded$e = ["as", "href", "openLinkBehavior", "onPress"];
833
+ var _excluded$d = ["as", "href", "openLinkBehavior", "onPress"];
833
834
  function ExternalLink(_ref) {
834
835
  var Component = _ref.as,
835
836
  href = _ref.href,
836
837
  _ref$openLinkBehavior = _ref.openLinkBehavior,
837
838
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
838
839
  onPress = _ref.onPress,
839
- rest = _objectWithoutProperties(_ref, _excluded$e);
840
+ rest = _objectWithoutProperties(_ref, _excluded$d);
840
841
 
841
842
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
842
843
  onPress: function handleOnPress(e) {
@@ -926,6 +927,9 @@ var avatar = {
926
927
  },
927
928
  light: {
928
929
  backgroundColor: lateOceanColorPalette.black100
930
+ },
931
+ large: {
932
+ borderRadius: 30
929
933
  }
930
934
  };
931
935
 
@@ -1317,6 +1321,10 @@ var listItem = {
1317
1321
  innerMargin: 8
1318
1322
  };
1319
1323
 
1324
+ var pageLoader = {
1325
+ size: 60
1326
+ };
1327
+
1320
1328
  var shadows = {
1321
1329
  medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
1322
1330
  };
@@ -1407,19 +1415,20 @@ var theme = {
1407
1415
  lateOcean: lateOceanColorPalette
1408
1416
  },
1409
1417
  avatar: avatar,
1418
+ breakpoints: breakpoints,
1410
1419
  button: button,
1411
1420
  card: card,
1412
1421
  feedbackMessage: feedbackMessage,
1413
1422
  forms: forms,
1414
- typography: typography,
1415
- tag: tag,
1416
- shadows: shadows,
1417
1423
  fullScreenModal: fullScreenModal,
1418
1424
  iconButton: iconButton,
1419
1425
  listItem: listItem,
1420
- tooltip: tooltip,
1426
+ pageLoader: pageLoader,
1427
+ shadows: shadows,
1421
1428
  skeleton: skeleton,
1422
- breakpoints: breakpoints
1429
+ tag: tag,
1430
+ tooltip: tooltip,
1431
+ typography: typography
1423
1432
  };
1424
1433
 
1425
1434
  function matchWindowSize(_ref, _ref2) {
@@ -1716,7 +1725,7 @@ function DatePickerInputs(_ref4) {
1716
1725
  });
1717
1726
  }
1718
1727
 
1719
- var _excluded$d = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1728
+ var _excluded$c = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1720
1729
  function DatePickerAndroid(_ref) {
1721
1730
  var onBlur = _ref.onBlur,
1722
1731
  onFocus = _ref.onFocus,
@@ -1727,7 +1736,7 @@ function DatePickerAndroid(_ref) {
1727
1736
  setCurrentValue = _ref.setCurrentValue,
1728
1737
  _onChange = _ref.onChange,
1729
1738
  isFocused = _ref.isFocused,
1730
- props = _objectWithoutProperties(_ref, _excluded$d);
1739
+ props = _objectWithoutProperties(_ref, _excluded$c);
1731
1740
 
1732
1741
  var handleClose = function () {
1733
1742
  if (onBlur) onBlur();
@@ -1771,11 +1780,12 @@ var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
1771
1780
  });
1772
1781
  });
1773
1782
  function Overlay(_ref2) {
1774
- var onPress = _ref2.onPress;
1783
+ var onPress = _ref2.onPress,
1784
+ children = _ref2.children;
1775
1785
  return /*#__PURE__*/jsx(OverlayPressable, {
1776
1786
  accessibilityRole: "none",
1777
1787
  onPress: onPress,
1778
- children: /*#__PURE__*/jsx(View, {})
1788
+ children: children
1779
1789
  });
1780
1790
  }
1781
1791
 
@@ -1813,11 +1823,11 @@ function ModalFooter(_ref3) {
1813
1823
  });
1814
1824
  }
1815
1825
 
1816
- var _excluded$c = ["as", "children"];
1826
+ var _excluded$b = ["as", "children"];
1817
1827
  function StyleWebWrapper(_ref) {
1818
1828
  var as = _ref.as,
1819
1829
  children = _ref.children,
1820
- props = _objectWithoutProperties(_ref, _excluded$c);
1830
+ props = _objectWithoutProperties(_ref, _excluded$b);
1821
1831
 
1822
1832
  if (Platform.OS !== 'web') return children;
1823
1833
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -1826,7 +1836,7 @@ function StyleWebWrapper(_ref) {
1826
1836
  }));
1827
1837
  }
1828
1838
 
1829
- var _excluded$b = ["color", "disabled"];
1839
+ var _excluded$a = ["color", "disabled"];
1830
1840
  var PressableIconButtonWebWrapper = undefined;
1831
1841
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1832
1842
  displayName: "PressableIconButton__StyledPressableIconButton"
@@ -1859,7 +1869,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1859
1869
  function PressableIconButton(_ref5) {
1860
1870
  var color = _ref5.color,
1861
1871
  disabled = _ref5.disabled,
1862
- props = _objectWithoutProperties(_ref5, _excluded$b);
1872
+ props = _objectWithoutProperties(_ref5, _excluded$a);
1863
1873
 
1864
1874
  return /*#__PURE__*/jsx(StyleWebWrapper, {
1865
1875
  as: PressableIconButtonWebWrapper,
@@ -2178,7 +2188,7 @@ function PlatformDateTimePicker(_ref) {
2178
2188
  }));
2179
2189
  }
2180
2190
 
2181
- var _excluded$a = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2191
+ var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2182
2192
 
2183
2193
  function ModalTitle(_ref) {
2184
2194
  var children = _ref.children;
@@ -2198,7 +2208,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2198
2208
  validateButtonLabel = _ref2.validateButtonLabel,
2199
2209
  onClose = _ref2.onClose,
2200
2210
  onChange = _ref2.onChange,
2201
- props = _objectWithoutProperties(_ref2, _excluded$a);
2211
+ props = _objectWithoutProperties(_ref2, _excluded$9);
2202
2212
 
2203
2213
  var _useState = useState(value),
2204
2214
  _useState2 = _slicedToArray(_useState, 2),
@@ -2242,7 +2252,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2242
2252
  });
2243
2253
  }
2244
2254
 
2245
- var _excluded$9 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2255
+ var _excluded$8 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2246
2256
  function DatePicker(_ref) {
2247
2257
  var value = _ref.value,
2248
2258
  pickerUITestID = _ref.pickerUITestID,
@@ -2252,7 +2262,7 @@ function DatePicker(_ref) {
2252
2262
  onFocus = _ref.onFocus,
2253
2263
  onBlur = _ref.onBlur,
2254
2264
  pickerDefaultDate = _ref.pickerDefaultDate,
2255
- props = _objectWithoutProperties(_ref, _excluded$9);
2265
+ props = _objectWithoutProperties(_ref, _excluded$8);
2256
2266
 
2257
2267
  var _useState = useState(false),
2258
2268
  _useState2 = _slicedToArray(_useState, 2),
@@ -2318,7 +2328,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2318
2328
  displayName: "InputTextContainer"
2319
2329
  })(["position:relative;"]);
2320
2330
 
2321
- var _excluded$8 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2331
+ var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2322
2332
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2323
2333
  displayName: "InputText__StyledTextInput"
2324
2334
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2362,7 +2372,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2362
2372
  keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
2363
2373
  _onFocus = _ref4.onFocus,
2364
2374
  _onBlur = _ref4.onBlur,
2365
- props = _objectWithoutProperties(_ref4, _excluded$8);
2375
+ props = _objectWithoutProperties(_ref4, _excluded$7);
2366
2376
 
2367
2377
  var theme = /*#__PURE__*/useTheme();
2368
2378
 
@@ -2510,11 +2520,11 @@ function InputPressable(_ref) {
2510
2520
  return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
2511
2521
  }
2512
2522
 
2513
- var _excluded$7 = ["isPasswordDefaultVisible", "right"];
2523
+ var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2514
2524
  function InputPassword(_ref) {
2515
2525
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2516
2526
  right = _ref.right,
2517
- props = _objectWithoutProperties(_ref, _excluded$7);
2527
+ props = _objectWithoutProperties(_ref, _excluded$6);
2518
2528
 
2519
2529
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2520
2530
  _useState2 = _slicedToArray(_useState, 2),
@@ -2876,10 +2886,12 @@ FullScreenModal.Body = FullScreenModalBody;
2876
2886
 
2877
2887
  function SpinningIcon(_ref) {
2878
2888
  var icon = _ref.icon,
2879
- _ref$size = _ref.size,
2880
- size = _ref$size === void 0 ? defaultIconSize : _ref$size,
2881
- align = _ref.align,
2882
2889
  color = _ref.color;
2890
+
2891
+ if (process.env.NODE_ENV !== 'production' && !color) {
2892
+ throw new Error("Invalid color passed to SpinningIcon: ".concat(String(color)));
2893
+ }
2894
+
2883
2895
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
2884
2896
  color: color
2885
2897
  });
@@ -2903,36 +2915,31 @@ function SpinningIcon(_ref) {
2903
2915
  return undefined;
2904
2916
  };
2905
2917
  }, []);
2906
- return /*#__PURE__*/jsx(IconContainer$1, {
2907
- $align: align,
2908
- $size: size,
2909
- $color: color,
2910
- children: /*#__PURE__*/jsx(Animated$1.View, {
2911
- style: {
2912
- transform: [{
2913
- rotate: rotation
2914
- }]
2915
- },
2916
- children: clonedIcon
2917
- })
2918
+ return /*#__PURE__*/jsx(Animated$1.View, {
2919
+ style: {
2920
+ transform: [{
2921
+ rotate: rotation
2922
+ }]
2923
+ },
2924
+ children: clonedIcon
2918
2925
  });
2919
2926
  }
2920
2927
 
2921
- var _excluded$6 = ["children"];
2928
+ var _excluded$5 = ["children"];
2922
2929
  var ContentView = /*#__PURE__*/styled.View.withConfig({
2923
2930
  displayName: "ListItemContent__ContentView"
2924
2931
  })(["flex:1 0 0%;align-self:center;"]);
2925
2932
  function ListItemContent(_ref) {
2926
2933
  var children = _ref.children,
2927
- rest = _objectWithoutProperties(_ref, _excluded$6);
2934
+ rest = _objectWithoutProperties(_ref, _excluded$5);
2928
2935
 
2929
2936
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
2930
2937
  children: children
2931
2938
  }));
2932
2939
  }
2933
2940
 
2934
- var _excluded$5 = ["children", "side"],
2935
- _excluded2$2 = ["children", "align"];
2941
+ var _excluded$4 = ["children", "side"],
2942
+ _excluded2$1 = ["children", "align"];
2936
2943
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
2937
2944
  displayName: "ListItemSideContent__SideContainerView"
2938
2945
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
@@ -2949,7 +2956,7 @@ function ListItemSideContainer(_ref3) {
2949
2956
  var children = _ref3.children,
2950
2957
  _ref3$side = _ref3.side,
2951
2958
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
2952
- rest = _objectWithoutProperties(_ref3, _excluded$5);
2959
+ rest = _objectWithoutProperties(_ref3, _excluded$4);
2953
2960
 
2954
2961
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
2955
2962
  side: side
@@ -2967,7 +2974,7 @@ function ListItemSideContent(_ref5) {
2967
2974
  var children = _ref5.children,
2968
2975
  _ref5$align = _ref5.align,
2969
2976
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
2970
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
2977
+ rest = _objectWithoutProperties(_ref5, _excluded2$1);
2971
2978
 
2972
2979
  return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
2973
2980
  align: align
@@ -2976,7 +2983,7 @@ function ListItemSideContent(_ref5) {
2976
2983
  }));
2977
2984
  }
2978
2985
 
2979
- var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2986
+ var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2980
2987
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
2981
2988
  displayName: "ListItem__ContainerView"
2982
2989
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -3015,7 +3022,7 @@ function ListItem(_ref5) {
3015
3022
  left = _ref5.left,
3016
3023
  right = _ref5.right,
3017
3024
  onPress = _ref5.onPress,
3018
- rest = _objectWithoutProperties(_ref5, _excluded$4);
3025
+ rest = _objectWithoutProperties(_ref5, _excluded$3);
3019
3026
 
3020
3027
  var Wrapper = onPress ? Pressable : Fragment$1;
3021
3028
  var wrapperProps = onPress ? _objectSpread({
@@ -3044,32 +3051,11 @@ ListItem.Content = ListItemContent;
3044
3051
  ListItem.SideContent = ListItemSideContent;
3045
3052
  ListItem.SideContainer = ListItemSideContainer;
3046
3053
 
3047
- function getActivityIndicatorSize(size) {
3048
- if (Platform.OS === 'android') return size;
3049
- return size < 36 ? 'small' : 'large';
3050
- }
3051
-
3052
- var defaultLoaderSize = defaultIconSize;
3053
- function Loader(_ref) {
3054
- var _ref$color = _ref.color,
3055
- color = _ref$color === void 0 ? 'primary' : _ref$color,
3056
- _ref$size = _ref.size,
3057
- size = _ref$size === void 0 ? defaultLoaderSize : _ref$size;
3058
- var theme = /*#__PURE__*/useTheme();
3059
- var colorHex = theme.kitt.typography.colors[color];
3060
- return /*#__PURE__*/jsx(ActivityIndicator, {
3061
- testID: "ActivityIndicator",
3062
- color: colorHex,
3063
- size: getActivityIndicatorSize(size)
3064
- });
3065
- }
3066
-
3067
- function LargeLoader(_ref) {
3068
- var _ref$color = _ref.color,
3069
- color = _ref$color === void 0 ? 'primary' : _ref$color;
3070
- return /*#__PURE__*/jsx(Loader, {
3054
+ function LoaderIcon(_ref) {
3055
+ var color = _ref.color;
3056
+ return /*#__PURE__*/jsx(SpinningIcon, {
3071
3057
  color: color,
3072
- size: 60
3058
+ icon: /*#__PURE__*/jsx(ArcIcon, {})
3073
3059
  });
3074
3060
  }
3075
3061
 
@@ -3248,6 +3234,22 @@ function Notification(_ref) {
3248
3234
  });
3249
3235
  }
3250
3236
 
3237
+ function getActivityIndicatorSize(size) {
3238
+ if (Platform.OS === 'android') return size;
3239
+ return size < 36 ? 'small' : 'large';
3240
+ }
3241
+
3242
+ function PageLoader() {
3243
+ var theme = /*#__PURE__*/useTheme();
3244
+ var size = theme.kitt.pageLoader.size;
3245
+ var colorHex = theme.kitt.typography.colors.primary;
3246
+ return /*#__PURE__*/jsx(ActivityIndicator, {
3247
+ testID: "ActivityIndicator",
3248
+ color: colorHex,
3249
+ size: getActivityIndicatorSize(size)
3250
+ });
3251
+ }
3252
+
3251
3253
  var Container$2 = /*#__PURE__*/styled.View.withConfig({
3252
3254
  displayName: "SkeletonContent__Container"
3253
3255
  })(["background-color:", ";border-color:", ";height:100%;width:100%;"], function (_ref) {
@@ -3542,8 +3544,8 @@ function Story(_ref) {
3542
3544
  });
3543
3545
  }
3544
3546
 
3545
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
3546
- _excluded2$1 = ["title", "children"],
3547
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
3548
+ _excluded2 = ["title", "children"],
3547
3549
  _excluded3 = ["title", "children"];
3548
3550
  var StyledSection = /*#__PURE__*/styled.View.withConfig({
3549
3551
  displayName: "StorySection__StyledSection"
@@ -3552,7 +3554,7 @@ function StorySection(_ref) {
3552
3554
  var title = _ref.title,
3553
3555
  children = _ref.children,
3554
3556
  internalIsDemoSection = _ref.internalIsDemoSection,
3555
- props = _objectWithoutProperties(_ref, _excluded$3);
3557
+ props = _objectWithoutProperties(_ref, _excluded$2);
3556
3558
 
3557
3559
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
3558
3560
  return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
@@ -3568,7 +3570,7 @@ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
3568
3570
  function SubSection(_ref2) {
3569
3571
  var title = _ref2.title,
3570
3572
  children = _ref2.children,
3571
- props = _objectWithoutProperties(_ref2, _excluded2$1);
3573
+ props = _objectWithoutProperties(_ref2, _excluded2);
3572
3574
 
3573
3575
  return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
3574
3576
  children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
@@ -4122,7 +4124,7 @@ function TypographyEmoji(_ref2) {
4122
4124
  });
4123
4125
  }
4124
4126
 
4125
- var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4127
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4126
4128
  var TypographyLinkWebWrapper = undefined;
4127
4129
  var StyledLink = /*#__PURE__*/styled.Text.withConfig({
4128
4130
  displayName: "TypographyLink__StyledLink"
@@ -4146,7 +4148,7 @@ function TypographyLink(_ref4) {
4146
4148
  href = _ref4.href,
4147
4149
  hrefAttrs = _ref4.hrefAttrs,
4148
4150
  onPress = _ref4.onPress,
4149
- otherProps = _objectWithoutProperties(_ref4, _excluded$2);
4151
+ otherProps = _objectWithoutProperties(_ref4, _excluded$1);
4150
4152
 
4151
4153
  return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
4152
4154
  accessibilityRole: "none",
@@ -4170,39 +4172,6 @@ function TypographyLink(_ref4) {
4170
4172
  }));
4171
4173
  }
4172
4174
 
4173
- var _excluded$1 = ["color"],
4174
- _excluded2 = ["color"];
4175
-
4176
- function TypographySpinningIconSpecifiedColor(_ref) {
4177
- var color = _ref.color,
4178
- props = _objectWithoutProperties(_ref, _excluded$1);
4179
-
4180
- var theme = /*#__PURE__*/useTheme();
4181
- return /*#__PURE__*/jsx(SpinningIcon, _objectSpread(_objectSpread({}, props), {}, {
4182
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
4183
- }));
4184
- }
4185
-
4186
- function TypographySpinningIconInheritColor(props) {
4187
- var color = useTypographyColor();
4188
- return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
4189
- color: color
4190
- }, props));
4191
- }
4192
-
4193
- function TypographySpinningIcon(_ref2) {
4194
- var color = _ref2.color,
4195
- props = _objectWithoutProperties(_ref2, _excluded2);
4196
-
4197
- if (color) {
4198
- return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
4199
- color: color
4200
- }, props));
4201
- }
4202
-
4203
- return /*#__PURE__*/jsx(TypographySpinningIconInheritColor, _objectSpread({}, props));
4204
- }
4205
-
4206
4175
  var hex2rgba = function (hex) {
4207
4176
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4208
4177
  var r = parseInt(hex.slice(1, 3), 16);
@@ -4262,5 +4231,5 @@ function withTheme(WrappedComponent) {
4262
4231
  });
4263
4232
  }
4264
4233
 
4265
- export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, TypographySpinningIcon, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
4234
+ export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, Notification, Overlay, PageLoader, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, 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 };
4266
4235
  //# sourceMappingURL=index-browser-all.es.ios.js.map