@ornikar/kitt-universal 6.1.0 → 7.0.2

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 (64) 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 +1 -1
  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/TimePicker/useTimePicker.d.ts +2 -0
  18. package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -1
  19. package/dist/definitions/index.d.ts +5 -6
  20. package/dist/definitions/index.d.ts.map +1 -1
  21. package/dist/definitions/themes/default.d.ts +37 -36
  22. package/dist/definitions/themes/default.d.ts.map +1 -1
  23. package/dist/definitions/themes/late-ocean/avatar.d.ts +7 -3
  24. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  25. package/dist/definitions/themes/late-ocean/pageLoader.d.ts +5 -0
  26. package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -0
  27. package/dist/index-browser-all.es.android.js +107 -137
  28. package/dist/index-browser-all.es.android.js.map +1 -1
  29. package/dist/index-browser-all.es.ios.js +107 -137
  30. package/dist/index-browser-all.es.ios.js.map +1 -1
  31. package/dist/index-browser-all.es.js +107 -137
  32. package/dist/index-browser-all.es.js.map +1 -1
  33. package/dist/index-browser-all.es.web.js +107 -142
  34. package/dist/index-browser-all.es.web.js.map +1 -1
  35. package/dist/index-node-14.17.cjs.js +63 -92
  36. package/dist/index-node-14.17.cjs.js.map +1 -1
  37. package/dist/index-node-14.17.cjs.web.css +1 -1
  38. package/dist/index-node-14.17.cjs.web.js +75 -104
  39. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  40. package/dist/linaria-themes-browser-all.es.android.js +13 -5
  41. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  42. package/dist/linaria-themes-browser-all.es.ios.js +13 -5
  43. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  44. package/dist/linaria-themes-browser-all.es.js +13 -5
  45. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  46. package/dist/linaria-themes-browser-all.es.web.js +13 -5
  47. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  48. package/dist/linaria-themes-node-14.17.cjs.js +13 -5
  49. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  50. package/dist/linaria-themes-node-14.17.cjs.web.js +13 -5
  51. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  52. package/dist/styles.css +1 -1
  53. package/dist/tsbuildinfo +1 -1
  54. package/package.json +4 -4
  55. package/dist/definitions/Loader/LargeLoader.d.ts +0 -7
  56. package/dist/definitions/Loader/LargeLoader.d.ts.map +0 -1
  57. package/dist/definitions/Loader/LargeLoader.web.d.ts +0 -3
  58. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +0 -1
  59. package/dist/definitions/Loader/Loader.d.ts +0 -8
  60. package/dist/definitions/Loader/Loader.d.ts.map +0 -1
  61. package/dist/definitions/Loader/Loader.web.d.ts +0 -8
  62. package/dist/definitions/Loader/Loader.web.d.ts.map +0 -1
  63. package/dist/definitions/typography/TypographySpinningIcon.d.ts +0 -9
  64. 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();
@@ -1774,8 +1783,7 @@ function Overlay(_ref2) {
1774
1783
  var onPress = _ref2.onPress;
1775
1784
  return /*#__PURE__*/jsx(OverlayPressable, {
1776
1785
  accessibilityRole: "none",
1777
- onPress: onPress,
1778
- children: /*#__PURE__*/jsx(View, {})
1786
+ onPress: onPress
1779
1787
  });
1780
1788
  }
1781
1789
 
@@ -1813,11 +1821,11 @@ function ModalFooter(_ref3) {
1813
1821
  });
1814
1822
  }
1815
1823
 
1816
- var _excluded$c = ["as", "children"];
1824
+ var _excluded$b = ["as", "children"];
1817
1825
  function StyleWebWrapper(_ref) {
1818
1826
  var as = _ref.as,
1819
1827
  children = _ref.children,
1820
- props = _objectWithoutProperties(_ref, _excluded$c);
1828
+ props = _objectWithoutProperties(_ref, _excluded$b);
1821
1829
 
1822
1830
  if (Platform.OS !== 'web') return children;
1823
1831
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -1826,7 +1834,7 @@ function StyleWebWrapper(_ref) {
1826
1834
  }));
1827
1835
  }
1828
1836
 
1829
- var _excluded$b = ["color", "disabled"];
1837
+ var _excluded$a = ["color", "disabled"];
1830
1838
  var PressableIconButtonWebWrapper = undefined;
1831
1839
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1832
1840
  displayName: "PressableIconButton__StyledPressableIconButton"
@@ -1859,7 +1867,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1859
1867
  function PressableIconButton(_ref5) {
1860
1868
  var color = _ref5.color,
1861
1869
  disabled = _ref5.disabled,
1862
- props = _objectWithoutProperties(_ref5, _excluded$b);
1870
+ props = _objectWithoutProperties(_ref5, _excluded$a);
1863
1871
 
1864
1872
  return /*#__PURE__*/jsx(StyleWebWrapper, {
1865
1873
  as: PressableIconButtonWebWrapper,
@@ -2178,7 +2186,7 @@ function PlatformDateTimePicker(_ref) {
2178
2186
  }));
2179
2187
  }
2180
2188
 
2181
- var _excluded$a = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2189
+ var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2182
2190
 
2183
2191
  function ModalTitle(_ref) {
2184
2192
  var children = _ref.children;
@@ -2198,7 +2206,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2198
2206
  validateButtonLabel = _ref2.validateButtonLabel,
2199
2207
  onClose = _ref2.onClose,
2200
2208
  onChange = _ref2.onChange,
2201
- props = _objectWithoutProperties(_ref2, _excluded$a);
2209
+ props = _objectWithoutProperties(_ref2, _excluded$9);
2202
2210
 
2203
2211
  var _useState = useState(value),
2204
2212
  _useState2 = _slicedToArray(_useState, 2),
@@ -2242,7 +2250,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2242
2250
  });
2243
2251
  }
2244
2252
 
2245
- var _excluded$9 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2253
+ var _excluded$8 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2246
2254
  function DatePicker(_ref) {
2247
2255
  var value = _ref.value,
2248
2256
  pickerUITestID = _ref.pickerUITestID,
@@ -2252,7 +2260,7 @@ function DatePicker(_ref) {
2252
2260
  onFocus = _ref.onFocus,
2253
2261
  onBlur = _ref.onBlur,
2254
2262
  pickerDefaultDate = _ref.pickerDefaultDate,
2255
- props = _objectWithoutProperties(_ref, _excluded$9);
2263
+ props = _objectWithoutProperties(_ref, _excluded$8);
2256
2264
 
2257
2265
  var _useState = useState(false),
2258
2266
  _useState2 = _slicedToArray(_useState, 2),
@@ -2318,7 +2326,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2318
2326
  displayName: "InputTextContainer"
2319
2327
  })(["position:relative;"]);
2320
2328
 
2321
- var _excluded$8 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2329
+ var _excluded$7 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2322
2330
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2323
2331
  displayName: "InputText__StyledTextInput"
2324
2332
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2362,7 +2370,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2362
2370
  keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
2363
2371
  _onFocus = _ref4.onFocus,
2364
2372
  _onBlur = _ref4.onBlur,
2365
- props = _objectWithoutProperties(_ref4, _excluded$8);
2373
+ props = _objectWithoutProperties(_ref4, _excluded$7);
2366
2374
 
2367
2375
  var theme = /*#__PURE__*/useTheme();
2368
2376
 
@@ -2510,11 +2518,11 @@ function InputPressable(_ref) {
2510
2518
  return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
2511
2519
  }
2512
2520
 
2513
- var _excluded$7 = ["isPasswordDefaultVisible", "right"];
2521
+ var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2514
2522
  function InputPassword(_ref) {
2515
2523
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2516
2524
  right = _ref.right,
2517
- props = _objectWithoutProperties(_ref, _excluded$7);
2525
+ props = _objectWithoutProperties(_ref, _excluded$6);
2518
2526
 
2519
2527
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2520
2528
  _useState2 = _slicedToArray(_useState, 2),
@@ -2876,10 +2884,12 @@ FullScreenModal.Body = FullScreenModalBody;
2876
2884
 
2877
2885
  function SpinningIcon(_ref) {
2878
2886
  var icon = _ref.icon,
2879
- _ref$size = _ref.size,
2880
- size = _ref$size === void 0 ? defaultIconSize : _ref$size,
2881
- align = _ref.align,
2882
2887
  color = _ref.color;
2888
+
2889
+ if (process.env.NODE_ENV !== 'production' && !color) {
2890
+ throw new Error("Invalid color passed to SpinningIcon: ".concat(String(color)));
2891
+ }
2892
+
2883
2893
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
2884
2894
  color: color
2885
2895
  });
@@ -2903,36 +2913,31 @@ function SpinningIcon(_ref) {
2903
2913
  return undefined;
2904
2914
  };
2905
2915
  }, []);
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
- })
2916
+ return /*#__PURE__*/jsx(Animated$1.View, {
2917
+ style: {
2918
+ transform: [{
2919
+ rotate: rotation
2920
+ }]
2921
+ },
2922
+ children: clonedIcon
2918
2923
  });
2919
2924
  }
2920
2925
 
2921
- var _excluded$6 = ["children"];
2926
+ var _excluded$5 = ["children"];
2922
2927
  var ContentView = /*#__PURE__*/styled.View.withConfig({
2923
2928
  displayName: "ListItemContent__ContentView"
2924
2929
  })(["flex:1 0 0%;align-self:center;"]);
2925
2930
  function ListItemContent(_ref) {
2926
2931
  var children = _ref.children,
2927
- rest = _objectWithoutProperties(_ref, _excluded$6);
2932
+ rest = _objectWithoutProperties(_ref, _excluded$5);
2928
2933
 
2929
2934
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
2930
2935
  children: children
2931
2936
  }));
2932
2937
  }
2933
2938
 
2934
- var _excluded$5 = ["children", "side"],
2935
- _excluded2$2 = ["children", "align"];
2939
+ var _excluded$4 = ["children", "side"],
2940
+ _excluded2$1 = ["children", "align"];
2936
2941
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
2937
2942
  displayName: "ListItemSideContent__SideContainerView"
2938
2943
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
@@ -2949,7 +2954,7 @@ function ListItemSideContainer(_ref3) {
2949
2954
  var children = _ref3.children,
2950
2955
  _ref3$side = _ref3.side,
2951
2956
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
2952
- rest = _objectWithoutProperties(_ref3, _excluded$5);
2957
+ rest = _objectWithoutProperties(_ref3, _excluded$4);
2953
2958
 
2954
2959
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
2955
2960
  side: side
@@ -2967,7 +2972,7 @@ function ListItemSideContent(_ref5) {
2967
2972
  var children = _ref5.children,
2968
2973
  _ref5$align = _ref5.align,
2969
2974
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
2970
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
2975
+ rest = _objectWithoutProperties(_ref5, _excluded2$1);
2971
2976
 
2972
2977
  return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
2973
2978
  align: align
@@ -2976,7 +2981,7 @@ function ListItemSideContent(_ref5) {
2976
2981
  }));
2977
2982
  }
2978
2983
 
2979
- var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2984
+ var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2980
2985
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
2981
2986
  displayName: "ListItem__ContainerView"
2982
2987
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -3015,7 +3020,7 @@ function ListItem(_ref5) {
3015
3020
  left = _ref5.left,
3016
3021
  right = _ref5.right,
3017
3022
  onPress = _ref5.onPress,
3018
- rest = _objectWithoutProperties(_ref5, _excluded$4);
3023
+ rest = _objectWithoutProperties(_ref5, _excluded$3);
3019
3024
 
3020
3025
  var Wrapper = onPress ? Pressable : Fragment$1;
3021
3026
  var wrapperProps = onPress ? _objectSpread({
@@ -3044,32 +3049,11 @@ ListItem.Content = ListItemContent;
3044
3049
  ListItem.SideContent = ListItemSideContent;
3045
3050
  ListItem.SideContainer = ListItemSideContainer;
3046
3051
 
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, {
3052
+ function LoaderIcon(_ref) {
3053
+ var color = _ref.color;
3054
+ return /*#__PURE__*/jsx(SpinningIcon, {
3071
3055
  color: color,
3072
- size: 60
3056
+ icon: /*#__PURE__*/jsx(ArcIcon, {})
3073
3057
  });
3074
3058
  }
3075
3059
 
@@ -3248,6 +3232,22 @@ function Notification(_ref) {
3248
3232
  });
3249
3233
  }
3250
3234
 
3235
+ function getActivityIndicatorSize(size) {
3236
+ if (Platform.OS === 'android') return size;
3237
+ return size < 36 ? 'small' : 'large';
3238
+ }
3239
+
3240
+ function PageLoader() {
3241
+ var theme = /*#__PURE__*/useTheme();
3242
+ var size = theme.kitt.pageLoader.size;
3243
+ var colorHex = theme.kitt.typography.colors.primary;
3244
+ return /*#__PURE__*/jsx(ActivityIndicator, {
3245
+ testID: "ActivityIndicator",
3246
+ color: colorHex,
3247
+ size: getActivityIndicatorSize(size)
3248
+ });
3249
+ }
3250
+
3251
3251
  var Container$2 = /*#__PURE__*/styled.View.withConfig({
3252
3252
  displayName: "SkeletonContent__Container"
3253
3253
  })(["background-color:", ";border-color:", ";height:100%;width:100%;"], function (_ref) {
@@ -3542,8 +3542,8 @@ function Story(_ref) {
3542
3542
  });
3543
3543
  }
3544
3544
 
3545
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
3546
- _excluded2$1 = ["title", "children"],
3545
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
3546
+ _excluded2 = ["title", "children"],
3547
3547
  _excluded3 = ["title", "children"];
3548
3548
  var StyledSection = /*#__PURE__*/styled.View.withConfig({
3549
3549
  displayName: "StorySection__StyledSection"
@@ -3552,7 +3552,7 @@ function StorySection(_ref) {
3552
3552
  var title = _ref.title,
3553
3553
  children = _ref.children,
3554
3554
  internalIsDemoSection = _ref.internalIsDemoSection,
3555
- props = _objectWithoutProperties(_ref, _excluded$3);
3555
+ props = _objectWithoutProperties(_ref, _excluded$2);
3556
3556
 
3557
3557
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
3558
3558
  return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
@@ -3568,7 +3568,7 @@ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
3568
3568
  function SubSection(_ref2) {
3569
3569
  var title = _ref2.title,
3570
3570
  children = _ref2.children,
3571
- props = _objectWithoutProperties(_ref2, _excluded2$1);
3571
+ props = _objectWithoutProperties(_ref2, _excluded2);
3572
3572
 
3573
3573
  return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
3574
3574
  children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
@@ -3844,6 +3844,12 @@ function ModalDateTimePicker(_ref2) {
3844
3844
  }
3845
3845
 
3846
3846
  var timePickerPlaceholder = '--:--';
3847
+ var formatNumberToTimeString = function (time) {
3848
+ return "".concat(String(time).padStart(2, '0'));
3849
+ };
3850
+ var formatDateToTimeString = function (date) {
3851
+ return "".concat(formatNumberToTimeString(date.getHours()), ":").concat(formatNumberToTimeString(date.getMinutes()));
3852
+ };
3847
3853
  var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue) {
3848
3854
  var _useState = useState(false),
3849
3855
  _useState2 = _slicedToArray(_useState, 2),
@@ -3856,10 +3862,7 @@ var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue) {
3856
3862
  }, []);
3857
3863
  var defaultDate = defaultValue || todayAtNoon;
3858
3864
  var dateTimePickerValue = value || defaultDate;
3859
- var displayedValue = value === null ? timePickerPlaceholder : Intl.DateTimeFormat('fr-FR', {
3860
- minute: 'numeric',
3861
- hour: 'numeric'
3862
- }).format(dateTimePickerValue);
3865
+ var displayedValue = value === null ? timePickerPlaceholder : formatDateToTimeString(dateTimePickerValue);
3863
3866
  var timePickerState = isTimePickerModalVisible ? 'focus' : 'default';
3864
3867
  return {
3865
3868
  dateTimePickerValue: dateTimePickerValue,
@@ -4122,7 +4125,7 @@ function TypographyEmoji(_ref2) {
4122
4125
  });
4123
4126
  }
4124
4127
 
4125
- var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4128
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4126
4129
  var TypographyLinkWebWrapper = undefined;
4127
4130
  var StyledLink = /*#__PURE__*/styled.Text.withConfig({
4128
4131
  displayName: "TypographyLink__StyledLink"
@@ -4146,7 +4149,7 @@ function TypographyLink(_ref4) {
4146
4149
  href = _ref4.href,
4147
4150
  hrefAttrs = _ref4.hrefAttrs,
4148
4151
  onPress = _ref4.onPress,
4149
- otherProps = _objectWithoutProperties(_ref4, _excluded$2);
4152
+ otherProps = _objectWithoutProperties(_ref4, _excluded$1);
4150
4153
 
4151
4154
  return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
4152
4155
  accessibilityRole: "none",
@@ -4170,39 +4173,6 @@ function TypographyLink(_ref4) {
4170
4173
  }));
4171
4174
  }
4172
4175
 
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
4176
  var hex2rgba = function (hex) {
4207
4177
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4208
4178
  var r = parseInt(hex.slice(1, 3), 16);
@@ -4262,5 +4232,5 @@ function withTheme(WrappedComponent) {
4262
4232
  });
4263
4233
  }
4264
4234
 
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 };
4235
+ 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
4236
  //# sourceMappingURL=index-browser-all.es.ios.js.map