@ornikar/kitt-universal 6.0.0 → 7.0.1

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 (80) 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/Button/AnimatedButtonPressable.d.ts +2 -1
  4. package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -1
  5. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +2 -1
  6. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -1
  7. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -1
  8. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
  9. package/dist/definitions/Button/Button.d.ts +2 -0
  10. package/dist/definitions/Button/Button.d.ts.map +1 -1
  11. package/dist/definitions/Button/ButtonContent.d.ts +3 -2
  12. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  13. package/dist/definitions/Button/getVariantValuesIfExist.d.ts +5 -0
  14. package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +1 -0
  15. package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
  16. package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
  17. package/dist/definitions/Icon/Icon.d.ts +1 -1
  18. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  19. package/dist/definitions/Icon/SpinningIcon.d.ts +4 -3
  20. package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
  21. package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
  22. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  23. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts +7 -0
  24. package/dist/definitions/LoaderIcon/LoaderIcon.d.ts.map +1 -0
  25. package/dist/definitions/Overlay/Overlay.d.ts +1 -1
  26. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  27. package/dist/definitions/PageLoader/PageLoader.d.ts +4 -0
  28. package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -0
  29. package/dist/definitions/PageLoader/PageLoader.web.d.ts +3 -0
  30. package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -0
  31. package/dist/definitions/index.d.ts +5 -6
  32. package/dist/definitions/index.d.ts.map +1 -1
  33. package/dist/definitions/themes/default.d.ts +37 -36
  34. package/dist/definitions/themes/default.d.ts.map +1 -1
  35. package/dist/definitions/themes/late-ocean/avatar.d.ts +7 -3
  36. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  37. package/dist/definitions/themes/late-ocean/button.d.ts +26 -9
  38. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  39. package/dist/definitions/themes/late-ocean/pageLoader.d.ts +5 -0
  40. package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -0
  41. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +4 -2
  42. package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
  43. package/dist/index-browser-all.es.android.js +202 -181
  44. package/dist/index-browser-all.es.android.js.map +1 -1
  45. package/dist/index-browser-all.es.ios.js +202 -181
  46. package/dist/index-browser-all.es.ios.js.map +1 -1
  47. package/dist/index-browser-all.es.js +202 -181
  48. package/dist/index-browser-all.es.js.map +1 -1
  49. package/dist/index-browser-all.es.web.js +222 -194
  50. package/dist/index-browser-all.es.web.js.map +1 -1
  51. package/dist/index-node-14.17.cjs.js +156 -134
  52. package/dist/index-node-14.17.cjs.js.map +1 -1
  53. package/dist/index-node-14.17.cjs.web.css +1 -1
  54. package/dist/index-node-14.17.cjs.web.js +188 -156
  55. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  56. package/dist/linaria-themes-browser-all.es.android.js +69 -40
  57. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  58. package/dist/linaria-themes-browser-all.es.ios.js +69 -40
  59. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  60. package/dist/linaria-themes-browser-all.es.js +69 -40
  61. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  62. package/dist/linaria-themes-browser-all.es.web.js +69 -40
  63. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  64. package/dist/linaria-themes-node-14.17.cjs.js +69 -40
  65. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  66. package/dist/linaria-themes-node-14.17.cjs.web.js +69 -40
  67. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  68. package/dist/styles.css +1 -1
  69. package/dist/tsbuildinfo +1 -1
  70. package/package.json +5 -5
  71. package/dist/definitions/Loader/LargeLoader.d.ts +0 -7
  72. package/dist/definitions/Loader/LargeLoader.d.ts.map +0 -1
  73. package/dist/definitions/Loader/LargeLoader.web.d.ts +0 -3
  74. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +0 -1
  75. package/dist/definitions/Loader/Loader.d.ts +0 -8
  76. package/dist/definitions/Loader/Loader.d.ts.map +0 -1
  77. package/dist/definitions/Loader/Loader.web.d.ts +0 -8
  78. package/dist/definitions/Loader/Loader.web.d.ts.map +0 -1
  79. package/dist/definitions/typography/TypographySpinningIcon.d.ts +0 -9
  80. 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,24 +332,38 @@ 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
  }
351
352
 
353
+ var hasVariant = function (button, variant) {
354
+ return variant in button;
355
+ };
356
+
357
+ function getVariantValuesIfExist(theme, type, variant) {
358
+ var button = theme.kitt.button[type];
359
+
360
+ if (hasVariant(button, variant)) {
361
+ return button[variant];
362
+ }
363
+
364
+ return theme.kitt.button[type]["default"];
365
+ }
366
+
352
367
  var StyledPressable = /*#__PURE__*/styled.Pressable.withConfig({
353
368
  displayName: "AnimatedButtonPressable__StyledPressable"
354
369
  })(["", ""], function (_ref) {
@@ -367,6 +382,7 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
367
382
  disabled = _ref3.disabled,
368
383
  accessibilityRole = _ref3.accessibilityRole,
369
384
  $type = _ref3.$type,
385
+ $variant = _ref3.$variant,
370
386
  $isStretch = _ref3.$isStretch,
371
387
  href = _ref3.href,
372
388
  hrefAttrs = _ref3.hrefAttrs,
@@ -375,9 +391,11 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
375
391
  var theme = /*#__PURE__*/useTheme();
376
392
  var pressed = useSharedValue(0);
377
393
  var color = useSharedValue(0);
378
- var _theme$kitt$button$$t = theme.kitt.button[$type],
379
- backgroundColor = _theme$kitt$button$$t.backgroundColor,
380
- pressedBackgroundColor = _theme$kitt$button$$t.pressedBackgroundColor;
394
+
395
+ var _getVariantValuesIfEx = getVariantValuesIfExist(theme, $type, $variant),
396
+ backgroundColor = _getVariantValuesIfEx.backgroundColor,
397
+ pressedBackgroundColor = _getVariantValuesIfEx.pressedBackgroundColor;
398
+
381
399
  var scale = theme.kitt.button.scale;
382
400
  var scaleStyles = useAnimatedStyle(function () {
383
401
  var _f = function () {
@@ -405,7 +423,7 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
405
423
  };
406
424
  _f.asString = "function _f(){const{interpolateColor,color,backgroundColor,pressedBackgroundColor,withSpring,pressed,scale}=jsThis._closure;{return{backgroundColor:interpolateColor(color.value,[0,1],[backgroundColor,pressedBackgroundColor]),transform:[{scale:withSpring(pressed.value?scale.base.active:scale.base.default)}]};}}";
407
425
  _f.__workletHash = 5368461229978;
408
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Button/AnimatedButtonPressable.tsx (53:41)";
426
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Button/AnimatedButtonPressable.tsx (56:41)";
409
427
  _f.__optimalization = 2;
410
428
 
411
429
  global.__reanimatedWorkletInit(_f);
@@ -466,10 +484,11 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
466
484
  }, function (_ref6) {
467
485
  var theme = _ref6.theme,
468
486
  $isDisabled = _ref6.$isDisabled,
469
- $type = _ref6.$type;
470
- if ($isDisabled) return theme.kitt.button.disabled.backgroundColor;
487
+ $type = _ref6.$type,
488
+ $variant = _ref6.$variant;
489
+ if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
471
490
  if (Platform.OS !== 'web') return 'transparent';
472
- return theme.kitt.button[$type].backgroundColor;
491
+ return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
473
492
  }, function (_ref7) {
474
493
  var theme = _ref7.theme,
475
494
  $isLarge = _ref7.$isLarge,
@@ -483,12 +502,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
483
502
  return defaultPadding;
484
503
  });
485
504
 
486
- var _excluded$g = ["color"],
487
- _excluded2$3 = ["color"];
505
+ var _excluded$f = ["color"],
506
+ _excluded2$2 = ["color"];
488
507
 
489
508
  function TypographyIconSpecifiedColor(_ref) {
490
509
  var color = _ref.color,
491
- props = _objectWithoutProperties(_ref, _excluded$g);
510
+ props = _objectWithoutProperties(_ref, _excluded$f);
492
511
 
493
512
  var theme = /*#__PURE__*/useTheme();
494
513
  return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
@@ -505,7 +524,7 @@ function TypographyIconInheritColor(props) {
505
524
 
506
525
  function TypographyIcon(_ref2) {
507
526
  var color = _ref2.color,
508
- props = _objectWithoutProperties(_ref2, _excluded2$3);
527
+ props = _objectWithoutProperties(_ref2, _excluded2$2);
509
528
 
510
529
  if (color) {
511
530
  return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
@@ -520,12 +539,12 @@ function isSubtle(type) {
520
539
  return type.startsWith('subtle');
521
540
  }
522
541
 
523
- var _excluded$f = ["type", "isDisabled", "$isStretch", "icon", "children"];
542
+ var _excluded$e = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
524
543
 
525
- var getTextColorByType = function (type) {
544
+ var getTextColorByType = function (type, variant) {
526
545
  switch (type) {
527
546
  case 'primary':
528
- return 'white';
547
+ return variant === 'ghost' ? 'primary' : 'white';
529
548
 
530
549
  case 'white':
531
550
  return 'white';
@@ -654,13 +673,14 @@ var ButtonContentContainer = /*#__PURE__*/styled.View.withConfig({
654
673
  });
655
674
  function ButtonContent(_ref7) {
656
675
  var type = _ref7.type,
676
+ variant = _ref7.variant,
657
677
  isDisabled = _ref7.isDisabled,
658
678
  $isStretch = _ref7.$isStretch,
659
679
  icon = _ref7.icon,
660
680
  children = _ref7.children,
661
- props = _objectWithoutProperties(_ref7, _excluded$f);
681
+ props = _objectWithoutProperties(_ref7, _excluded$e);
662
682
 
663
- var color = isDisabled ? 'black-light' : getTextColorByType(type);
683
+ var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
664
684
  return /*#__PURE__*/jsx(ButtonContentContainer, {
665
685
  $isSubtle: isSubtle(type),
666
686
  $isStretch: $isStretch,
@@ -683,7 +703,7 @@ var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
683
703
  var _theme$kitt$button = theme.kitt.button,
684
704
  borderWidth = _theme$kitt$button.borderWidth,
685
705
  disabled = _theme$kitt$button.disabled;
686
- return "".concat(borderWidth.disabled, "px solid ").concat(disabled.borderColor);
706
+ return "".concat(borderWidth.disabled, "px solid ").concat(disabled["default"].borderColor);
687
707
  }, function (_ref2) {
688
708
  var theme = _ref2.theme;
689
709
  return theme.kitt.button.borderRadius;
@@ -693,6 +713,8 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
693
713
  var children = _ref.children,
694
714
  _ref$type = _ref.type,
695
715
  type = _ref$type === void 0 ? 'default' : _ref$type,
716
+ _ref$variant = _ref.variant,
717
+ variant = _ref$variant === void 0 ? 'default' : _ref$variant,
696
718
  disabled = _ref.disabled,
697
719
  stretch = _ref.stretch,
698
720
  large = _ref.large,
@@ -705,6 +727,11 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
705
727
  _ref$accessibilityRol = _ref.accessibilityRole,
706
728
  accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
707
729
  onPress = _ref.onPress;
730
+
731
+ if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && type !== 'primary') {
732
+ throw new Error('variant=ghost is only allowed with type=primary');
733
+ }
734
+
708
735
  return /*#__PURE__*/jsx(AnimatedButtonPressable, {
709
736
  ref: ref,
710
737
  accessibilityRole: accessibilityRole,
@@ -714,14 +741,17 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
714
741
  disabled: disabled,
715
742
  $isStretch: stretch,
716
743
  $type: type,
744
+ $variant: variant,
717
745
  onPress: onPress,
718
746
  children: /*#__PURE__*/jsxs(BaseStyledButtonPressable, {
719
747
  $type: type,
748
+ $variant: variant,
720
749
  $isStretch: stretch,
721
750
  $isLarge: large,
722
751
  $isDisabled: disabled,
723
752
  children: [/*#__PURE__*/jsx(ButtonContent, {
724
753
  type: type,
754
+ variant: variant,
725
755
  $isStretch: stretch,
726
756
  isDisabled: disabled,
727
757
  icon: icon,
@@ -800,18 +830,22 @@ var defaultOpenLinkBehavior = {
800
830
  web: 'targetBlank'
801
831
  };
802
832
 
803
- var _excluded$e = ["as", "href", "openLinkBehavior", "onPress"];
833
+ var _excluded$d = ["as", "href", "openLinkBehavior", "onPress"];
804
834
  function ExternalLink(_ref) {
805
835
  var Component = _ref.as,
806
836
  href = _ref.href,
807
837
  _ref$openLinkBehavior = _ref.openLinkBehavior,
808
838
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
809
839
  onPress = _ref.onPress,
810
- rest = _objectWithoutProperties(_ref, _excluded$e);
840
+ rest = _objectWithoutProperties(_ref, _excluded$d);
811
841
 
812
842
  return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
813
- onPress: function handleOnPress() {
814
- if (onPress) onPress();
843
+ onPress: function handleOnPress(e) {
844
+ if (onPress) {
845
+ onPress(e);
846
+ if (e !== null && e !== void 0 && e.defaultPrevented) return;
847
+ }
848
+
815
849
  if (!href) return;
816
850
 
817
851
  switch (openLinkBehavior["native"]) {
@@ -893,6 +927,9 @@ var avatar = {
893
927
  },
894
928
  light: {
895
929
  backgroundColor: lateOceanColorPalette.black100
930
+ },
931
+ large: {
932
+ borderRadius: 30
896
933
  }
897
934
  };
898
935
 
@@ -925,47 +962,68 @@ var button = {
925
962
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
926
963
  },
927
964
  "default": {
928
- backgroundColor: 'rgba(0, 0, 0, 0.05)',
929
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
930
- hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
931
- focusBorderColor: 'rgba(0, 0, 0, 0.1)'
965
+ "default": {
966
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
967
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
968
+ hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
969
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)'
970
+ }
932
971
  },
933
972
  primary: {
934
- backgroundColor: colors.primary,
935
- pressedBackgroundColor: colors.primaryLight,
936
- hoverBackgroundColor: colors.primaryLight,
937
- focusBorderColor: 'rgba(76, 52, 224, 0.2)'
973
+ "default": {
974
+ backgroundColor: colors.primary,
975
+ pressedBackgroundColor: colors.primaryLight,
976
+ hoverBackgroundColor: colors.primaryLight,
977
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)'
978
+ },
979
+ ghost: {
980
+ backgroundColor: colors.uiBackgroundLight,
981
+ pressedBackgroundColor: colors.uiBackground,
982
+ hoverBackgroundColor: colors.hover,
983
+ focusBorderColor: 'rgba(255,255,255, 0.4)',
984
+ color: colors.primary,
985
+ hoverColor: colors.hover,
986
+ activeColor: colors.hover
987
+ }
938
988
  },
939
989
  white: {
940
- backgroundColor: 'rgba(255, 255, 255, 0.05)',
941
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
942
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
943
- focusBorderColor: 'rgba(255, 255, 255, 0.1)'
990
+ "default": {
991
+ backgroundColor: 'rgba(255, 255, 255, 0.05)',
992
+ pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
993
+ hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
994
+ focusBorderColor: 'rgba(255, 255, 255, 0.1)'
995
+ }
944
996
  },
945
997
  subtle: {
946
- backgroundColor: colors.transparent,
947
- pressedBackgroundColor: colors.transparent,
948
- hoverBackgroundColor: colors.transparent,
949
- focusBorderColor: 'rgba(76, 52, 224, 0.2)',
950
- color: colors.primary,
951
- hoverColor: 'rgba(76, 52, 224, 0.8)',
952
- activeColor: 'rgba(76, 52, 224, 0.8)'
998
+ "default": {
999
+ backgroundColor: colors.transparent,
1000
+ pressedBackgroundColor: colors.transparent,
1001
+ hoverBackgroundColor: colors.transparent,
1002
+ focusBorderColor: 'rgba(76, 52, 224, 0.2)',
1003
+ color: colors.primary,
1004
+ hoverColor: 'rgba(76, 52, 224, 0.8)',
1005
+ activeColor: 'rgba(76, 52, 224, 0.8)'
1006
+ }
953
1007
  },
954
1008
  'subtle-dark': {
955
- backgroundColor: colors.transparent,
956
- pressedBackgroundColor: colors.transparent,
957
- hoverBackgroundColor: colors.transparent,
958
- focusBorderColor: 'rgba(0, 0, 0, 0.1)',
959
- color: colors.black,
960
- hoverColor: 'rgba(0, 0, 0, 0.8)',
961
- activeColor: 'rgba(0, 0, 0, 0.8)'
1009
+ "default": {
1010
+ backgroundColor: colors.transparent,
1011
+ pressedBackgroundColor: colors.transparent,
1012
+ hoverBackgroundColor: colors.transparent,
1013
+ focusBorderColor: 'rgba(0, 0, 0, 0.1)',
1014
+ color: colors.black,
1015
+ hoverColor: 'rgba(0, 0, 0, 0.8)',
1016
+ activeColor: 'rgba(0, 0, 0, 0.8)'
1017
+ }
962
1018
  },
963
1019
  disabled: {
964
- backgroundColor: colors.disabled,
965
- pressedBackgroundColor: colors.disabled,
966
- hoverBackgroundColor: colors.disabled,
967
- focusBorderColor: lateOceanColorPalette.black100,
968
- borderColor: lateOceanColorPalette.black100
1020
+ "default": {
1021
+ backgroundColor: colors.disabled,
1022
+ pressedBackgroundColor: colors.disabled,
1023
+ hoverBackgroundColor: colors.disabled,
1024
+ focusBorderColor: lateOceanColorPalette.black100,
1025
+ borderColor: lateOceanColorPalette.black100
1026
+ }
969
1027
  }
970
1028
  };
971
1029
 
@@ -1245,14 +1303,14 @@ var iconButton = {
1245
1303
  },
1246
1304
  disabled: {
1247
1305
  scale: 1,
1248
- backgroundColor: button.disabled.backgroundColor,
1249
- borderColor: button.disabled.borderColor
1306
+ backgroundColor: button.disabled["default"].backgroundColor,
1307
+ borderColor: button.disabled["default"].borderColor
1250
1308
  },
1251
1309
  "default": {
1252
- pressedBackgroundColor: button["default"].pressedBackgroundColor
1310
+ pressedBackgroundColor: button["default"]["default"].pressedBackgroundColor
1253
1311
  },
1254
1312
  white: {
1255
- pressedBackgroundColor: button.white.hoverBackgroundColor
1313
+ pressedBackgroundColor: button.white["default"].hoverBackgroundColor
1256
1314
  }
1257
1315
  };
1258
1316
 
@@ -1263,6 +1321,10 @@ var listItem = {
1263
1321
  innerMargin: 8
1264
1322
  };
1265
1323
 
1324
+ var pageLoader = {
1325
+ size: 60
1326
+ };
1327
+
1266
1328
  var shadows = {
1267
1329
  medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
1268
1330
  };
@@ -1353,19 +1415,20 @@ var theme = {
1353
1415
  lateOcean: lateOceanColorPalette
1354
1416
  },
1355
1417
  avatar: avatar,
1418
+ breakpoints: breakpoints,
1356
1419
  button: button,
1357
1420
  card: card,
1358
1421
  feedbackMessage: feedbackMessage,
1359
1422
  forms: forms,
1360
- typography: typography,
1361
- tag: tag,
1362
- shadows: shadows,
1363
1423
  fullScreenModal: fullScreenModal,
1364
1424
  iconButton: iconButton,
1365
1425
  listItem: listItem,
1366
- tooltip: tooltip,
1426
+ pageLoader: pageLoader,
1427
+ shadows: shadows,
1367
1428
  skeleton: skeleton,
1368
- breakpoints: breakpoints
1429
+ tag: tag,
1430
+ tooltip: tooltip,
1431
+ typography: typography
1369
1432
  };
1370
1433
 
1371
1434
  function matchWindowSize(_ref, _ref2) {
@@ -1662,7 +1725,7 @@ function DatePickerInputs(_ref4) {
1662
1725
  });
1663
1726
  }
1664
1727
 
1665
- 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"];
1666
1729
  function DatePickerAndroid(_ref) {
1667
1730
  var onBlur = _ref.onBlur,
1668
1731
  onFocus = _ref.onFocus,
@@ -1673,7 +1736,7 @@ function DatePickerAndroid(_ref) {
1673
1736
  setCurrentValue = _ref.setCurrentValue,
1674
1737
  _onChange = _ref.onChange,
1675
1738
  isFocused = _ref.isFocused,
1676
- props = _objectWithoutProperties(_ref, _excluded$d);
1739
+ props = _objectWithoutProperties(_ref, _excluded$c);
1677
1740
 
1678
1741
  var handleClose = function () {
1679
1742
  if (onBlur) onBlur();
@@ -1720,8 +1783,7 @@ function Overlay(_ref2) {
1720
1783
  var onPress = _ref2.onPress;
1721
1784
  return /*#__PURE__*/jsx(OverlayPressable, {
1722
1785
  accessibilityRole: "none",
1723
- onPress: onPress,
1724
- children: /*#__PURE__*/jsx(View, {})
1786
+ onPress: onPress
1725
1787
  });
1726
1788
  }
1727
1789
 
@@ -1759,11 +1821,11 @@ function ModalFooter(_ref3) {
1759
1821
  });
1760
1822
  }
1761
1823
 
1762
- var _excluded$c = ["as", "children"];
1824
+ var _excluded$b = ["as", "children"];
1763
1825
  function StyleWebWrapper(_ref) {
1764
1826
  var as = _ref.as,
1765
1827
  children = _ref.children,
1766
- props = _objectWithoutProperties(_ref, _excluded$c);
1828
+ props = _objectWithoutProperties(_ref, _excluded$b);
1767
1829
 
1768
1830
  if (Platform.OS !== 'web') return children;
1769
1831
  // as or default to div. If as is undefined, T is div but typescript is not sure
@@ -1772,7 +1834,7 @@ function StyleWebWrapper(_ref) {
1772
1834
  }));
1773
1835
  }
1774
1836
 
1775
- var _excluded$b = ["color", "disabled"];
1837
+ var _excluded$a = ["color", "disabled"];
1776
1838
  var PressableIconButtonWebWrapper = undefined;
1777
1839
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1778
1840
  displayName: "PressableIconButton__StyledPressableIconButton"
@@ -1805,7 +1867,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1805
1867
  function PressableIconButton(_ref5) {
1806
1868
  var color = _ref5.color,
1807
1869
  disabled = _ref5.disabled,
1808
- props = _objectWithoutProperties(_ref5, _excluded$b);
1870
+ props = _objectWithoutProperties(_ref5, _excluded$a);
1809
1871
 
1810
1872
  return /*#__PURE__*/jsx(StyleWebWrapper, {
1811
1873
  as: PressableIconButtonWebWrapper,
@@ -2124,7 +2186,7 @@ function PlatformDateTimePicker(_ref) {
2124
2186
  }));
2125
2187
  }
2126
2188
 
2127
- var _excluded$a = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2189
+ var _excluded$9 = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2128
2190
 
2129
2191
  function ModalTitle(_ref) {
2130
2192
  var children = _ref.children;
@@ -2144,7 +2206,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2144
2206
  validateButtonLabel = _ref2.validateButtonLabel,
2145
2207
  onClose = _ref2.onClose,
2146
2208
  onChange = _ref2.onChange,
2147
- props = _objectWithoutProperties(_ref2, _excluded$a);
2209
+ props = _objectWithoutProperties(_ref2, _excluded$9);
2148
2210
 
2149
2211
  var _useState = useState(value),
2150
2212
  _useState2 = _slicedToArray(_useState, 2),
@@ -2188,7 +2250,7 @@ function ModalPlatformDateTimePicker(_ref2) {
2188
2250
  });
2189
2251
  }
2190
2252
 
2191
- var _excluded$9 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2253
+ var _excluded$8 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2192
2254
  function DatePicker(_ref) {
2193
2255
  var value = _ref.value,
2194
2256
  pickerUITestID = _ref.pickerUITestID,
@@ -2198,7 +2260,7 @@ function DatePicker(_ref) {
2198
2260
  onFocus = _ref.onFocus,
2199
2261
  onBlur = _ref.onBlur,
2200
2262
  pickerDefaultDate = _ref.pickerDefaultDate,
2201
- props = _objectWithoutProperties(_ref, _excluded$9);
2263
+ props = _objectWithoutProperties(_ref, _excluded$8);
2202
2264
 
2203
2265
  var _useState = useState(false),
2204
2266
  _useState2 = _slicedToArray(_useState, 2),
@@ -2264,7 +2326,7 @@ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2264
2326
  displayName: "InputTextContainer"
2265
2327
  })(["position:relative;"]);
2266
2328
 
2267
- 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"];
2268
2330
  var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2269
2331
  displayName: "InputText__StyledTextInput"
2270
2332
  })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
@@ -2308,7 +2370,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2308
2370
  keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
2309
2371
  _onFocus = _ref4.onFocus,
2310
2372
  _onBlur = _ref4.onBlur,
2311
- props = _objectWithoutProperties(_ref4, _excluded$8);
2373
+ props = _objectWithoutProperties(_ref4, _excluded$7);
2312
2374
 
2313
2375
  var theme = /*#__PURE__*/useTheme();
2314
2376
 
@@ -2456,11 +2518,11 @@ function InputPressable(_ref) {
2456
2518
  return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
2457
2519
  }
2458
2520
 
2459
- var _excluded$7 = ["isPasswordDefaultVisible", "right"];
2521
+ var _excluded$6 = ["isPasswordDefaultVisible", "right"];
2460
2522
  function InputPassword(_ref) {
2461
2523
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2462
2524
  right = _ref.right,
2463
- props = _objectWithoutProperties(_ref, _excluded$7);
2525
+ props = _objectWithoutProperties(_ref, _excluded$6);
2464
2526
 
2465
2527
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2466
2528
  _useState2 = _slicedToArray(_useState, 2),
@@ -2822,10 +2884,12 @@ FullScreenModal.Body = FullScreenModalBody;
2822
2884
 
2823
2885
  function SpinningIcon(_ref) {
2824
2886
  var icon = _ref.icon,
2825
- _ref$size = _ref.size,
2826
- size = _ref$size === void 0 ? defaultIconSize : _ref$size,
2827
- align = _ref.align,
2828
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
+
2829
2893
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
2830
2894
  color: color
2831
2895
  });
@@ -2849,36 +2913,31 @@ function SpinningIcon(_ref) {
2849
2913
  return undefined;
2850
2914
  };
2851
2915
  }, []);
2852
- return /*#__PURE__*/jsx(IconContainer$1, {
2853
- $align: align,
2854
- $size: size,
2855
- $color: color,
2856
- children: /*#__PURE__*/jsx(Animated$1.View, {
2857
- style: {
2858
- transform: [{
2859
- rotate: rotation
2860
- }]
2861
- },
2862
- children: clonedIcon
2863
- })
2916
+ return /*#__PURE__*/jsx(Animated$1.View, {
2917
+ style: {
2918
+ transform: [{
2919
+ rotate: rotation
2920
+ }]
2921
+ },
2922
+ children: clonedIcon
2864
2923
  });
2865
2924
  }
2866
2925
 
2867
- var _excluded$6 = ["children"];
2926
+ var _excluded$5 = ["children"];
2868
2927
  var ContentView = /*#__PURE__*/styled.View.withConfig({
2869
2928
  displayName: "ListItemContent__ContentView"
2870
2929
  })(["flex:1 0 0%;align-self:center;"]);
2871
2930
  function ListItemContent(_ref) {
2872
2931
  var children = _ref.children,
2873
- rest = _objectWithoutProperties(_ref, _excluded$6);
2932
+ rest = _objectWithoutProperties(_ref, _excluded$5);
2874
2933
 
2875
2934
  return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
2876
2935
  children: children
2877
2936
  }));
2878
2937
  }
2879
2938
 
2880
- var _excluded$5 = ["children", "side"],
2881
- _excluded2$2 = ["children", "align"];
2939
+ var _excluded$4 = ["children", "side"],
2940
+ _excluded2$1 = ["children", "align"];
2882
2941
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
2883
2942
  displayName: "ListItemSideContent__SideContainerView"
2884
2943
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
@@ -2895,7 +2954,7 @@ function ListItemSideContainer(_ref3) {
2895
2954
  var children = _ref3.children,
2896
2955
  _ref3$side = _ref3.side,
2897
2956
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
2898
- rest = _objectWithoutProperties(_ref3, _excluded$5);
2957
+ rest = _objectWithoutProperties(_ref3, _excluded$4);
2899
2958
 
2900
2959
  return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
2901
2960
  side: side
@@ -2913,7 +2972,7 @@ function ListItemSideContent(_ref5) {
2913
2972
  var children = _ref5.children,
2914
2973
  _ref5$align = _ref5.align,
2915
2974
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
2916
- rest = _objectWithoutProperties(_ref5, _excluded2$2);
2975
+ rest = _objectWithoutProperties(_ref5, _excluded2$1);
2917
2976
 
2918
2977
  return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
2919
2978
  align: align
@@ -2922,7 +2981,7 @@ function ListItemSideContent(_ref5) {
2922
2981
  }));
2923
2982
  }
2924
2983
 
2925
- var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2984
+ var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2926
2985
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
2927
2986
  displayName: "ListItem__ContainerView"
2928
2987
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -2961,7 +3020,7 @@ function ListItem(_ref5) {
2961
3020
  left = _ref5.left,
2962
3021
  right = _ref5.right,
2963
3022
  onPress = _ref5.onPress,
2964
- rest = _objectWithoutProperties(_ref5, _excluded$4);
3023
+ rest = _objectWithoutProperties(_ref5, _excluded$3);
2965
3024
 
2966
3025
  var Wrapper = onPress ? Pressable : Fragment$1;
2967
3026
  var wrapperProps = onPress ? _objectSpread({
@@ -2990,32 +3049,11 @@ ListItem.Content = ListItemContent;
2990
3049
  ListItem.SideContent = ListItemSideContent;
2991
3050
  ListItem.SideContainer = ListItemSideContainer;
2992
3051
 
2993
- function getActivityIndicatorSize(size) {
2994
- if (Platform.OS === 'android') return size;
2995
- return size < 36 ? 'small' : 'large';
2996
- }
2997
-
2998
- var defaultLoaderSize = defaultIconSize;
2999
- function Loader(_ref) {
3000
- var _ref$color = _ref.color,
3001
- color = _ref$color === void 0 ? 'primary' : _ref$color,
3002
- _ref$size = _ref.size,
3003
- size = _ref$size === void 0 ? defaultLoaderSize : _ref$size;
3004
- var theme = /*#__PURE__*/useTheme();
3005
- var colorHex = theme.kitt.typography.colors[color];
3006
- return /*#__PURE__*/jsx(ActivityIndicator, {
3007
- testID: "ActivityIndicator",
3008
- color: colorHex,
3009
- size: getActivityIndicatorSize(size)
3010
- });
3011
- }
3012
-
3013
- function LargeLoader(_ref) {
3014
- var _ref$color = _ref.color,
3015
- color = _ref$color === void 0 ? 'primary' : _ref$color;
3016
- return /*#__PURE__*/jsx(Loader, {
3052
+ function LoaderIcon(_ref) {
3053
+ var color = _ref.color;
3054
+ return /*#__PURE__*/jsx(SpinningIcon, {
3017
3055
  color: color,
3018
- size: 60
3056
+ icon: /*#__PURE__*/jsx(ArcIcon, {})
3019
3057
  });
3020
3058
  }
3021
3059
 
@@ -3194,6 +3232,22 @@ function Notification(_ref) {
3194
3232
  });
3195
3233
  }
3196
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
+
3197
3251
  var Container$2 = /*#__PURE__*/styled.View.withConfig({
3198
3252
  displayName: "SkeletonContent__Container"
3199
3253
  })(["background-color:", ";border-color:", ";height:100%;width:100%;"], function (_ref) {
@@ -3488,8 +3542,8 @@ function Story(_ref) {
3488
3542
  });
3489
3543
  }
3490
3544
 
3491
- var _excluded$3 = ["title", "children", "internalIsDemoSection"],
3492
- _excluded2$1 = ["title", "children"],
3545
+ var _excluded$2 = ["title", "children", "internalIsDemoSection"],
3546
+ _excluded2 = ["title", "children"],
3493
3547
  _excluded3 = ["title", "children"];
3494
3548
  var StyledSection = /*#__PURE__*/styled.View.withConfig({
3495
3549
  displayName: "StorySection__StyledSection"
@@ -3498,7 +3552,7 @@ function StorySection(_ref) {
3498
3552
  var title = _ref.title,
3499
3553
  children = _ref.children,
3500
3554
  internalIsDemoSection = _ref.internalIsDemoSection,
3501
- props = _objectWithoutProperties(_ref, _excluded$3);
3555
+ props = _objectWithoutProperties(_ref, _excluded$2);
3502
3556
 
3503
3557
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
3504
3558
  return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
@@ -3514,7 +3568,7 @@ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
3514
3568
  function SubSection(_ref2) {
3515
3569
  var title = _ref2.title,
3516
3570
  children = _ref2.children,
3517
- props = _objectWithoutProperties(_ref2, _excluded2$1);
3571
+ props = _objectWithoutProperties(_ref2, _excluded2);
3518
3572
 
3519
3573
  return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
3520
3574
  children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
@@ -4068,7 +4122,7 @@ function TypographyEmoji(_ref2) {
4068
4122
  });
4069
4123
  }
4070
4124
 
4071
- var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4125
+ var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
4072
4126
  var TypographyLinkWebWrapper = undefined;
4073
4127
  var StyledLink = /*#__PURE__*/styled.Text.withConfig({
4074
4128
  displayName: "TypographyLink__StyledLink"
@@ -4092,7 +4146,7 @@ function TypographyLink(_ref4) {
4092
4146
  href = _ref4.href,
4093
4147
  hrefAttrs = _ref4.hrefAttrs,
4094
4148
  onPress = _ref4.onPress,
4095
- otherProps = _objectWithoutProperties(_ref4, _excluded$2);
4149
+ otherProps = _objectWithoutProperties(_ref4, _excluded$1);
4096
4150
 
4097
4151
  return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
4098
4152
  accessibilityRole: "none",
@@ -4116,39 +4170,6 @@ function TypographyLink(_ref4) {
4116
4170
  }));
4117
4171
  }
4118
4172
 
4119
- var _excluded$1 = ["color"],
4120
- _excluded2 = ["color"];
4121
-
4122
- function TypographySpinningIconSpecifiedColor(_ref) {
4123
- var color = _ref.color,
4124
- props = _objectWithoutProperties(_ref, _excluded$1);
4125
-
4126
- var theme = /*#__PURE__*/useTheme();
4127
- return /*#__PURE__*/jsx(SpinningIcon, _objectSpread(_objectSpread({}, props), {}, {
4128
- color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
4129
- }));
4130
- }
4131
-
4132
- function TypographySpinningIconInheritColor(props) {
4133
- var color = useTypographyColor();
4134
- return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
4135
- color: color
4136
- }, props));
4137
- }
4138
-
4139
- function TypographySpinningIcon(_ref2) {
4140
- var color = _ref2.color,
4141
- props = _objectWithoutProperties(_ref2, _excluded2);
4142
-
4143
- if (color) {
4144
- return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
4145
- color: color
4146
- }, props));
4147
- }
4148
-
4149
- return /*#__PURE__*/jsx(TypographySpinningIconInheritColor, _objectSpread({}, props));
4150
- }
4151
-
4152
4173
  var hex2rgba = function (hex) {
4153
4174
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4154
4175
  var r = parseInt(hex.slice(1, 3), 16);
@@ -4208,5 +4229,5 @@ function withTheme(WrappedComponent) {
4208
4229
  });
4209
4230
  }
4210
4231
 
4211
- 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 };
4232
+ 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 };
4212
4233
  //# sourceMappingURL=index-browser-all.es.ios.js.map