@ornikar/kitt-universal 5.0.0 → 6.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 (52) hide show
  1. package/dist/definitions/Button/Button.d.ts +0 -1
  2. package/dist/definitions/Button/Button.d.ts.map +1 -1
  3. package/dist/definitions/Button/ButtonContent.d.ts +1 -1
  4. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  5. package/dist/definitions/Icon/Icon.d.ts +10 -2
  6. package/dist/definitions/Icon/Icon.d.ts.map +1 -1
  7. package/dist/definitions/Icon/SpinningIcon.d.ts +4 -4
  8. package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
  9. package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
  10. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  11. package/dist/definitions/Loader/Loader.d.ts.map +1 -1
  12. package/dist/definitions/Loader/Loader.web.d.ts +3 -3
  13. package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
  14. package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -1
  15. package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
  16. package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts +12 -0
  17. package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts.map +1 -0
  18. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +1 -1
  19. package/dist/definitions/index.d.ts +4 -0
  20. package/dist/definitions/index.d.ts.map +1 -1
  21. package/dist/definitions/typography/TypographySpinningIcon.d.ts +9 -0
  22. package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +1 -0
  23. package/dist/index-browser-all.es.android.js +877 -767
  24. package/dist/index-browser-all.es.android.js.map +1 -1
  25. package/dist/index-browser-all.es.ios.js +246 -247
  26. package/dist/index-browser-all.es.ios.js.map +1 -1
  27. package/dist/index-browser-all.es.js +246 -247
  28. package/dist/index-browser-all.es.js.map +1 -1
  29. package/dist/index-browser-all.es.web.js +258 -312
  30. package/dist/index-browser-all.es.web.js.map +1 -1
  31. package/dist/index-node-14.17.cjs.js +161 -64
  32. package/dist/index-node-14.17.cjs.js.map +1 -1
  33. package/dist/index-node-14.17.cjs.web.css +1 -1
  34. package/dist/index-node-14.17.cjs.web.js +102 -66
  35. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  36. package/dist/linaria-themes-browser-all.es.android.js +3 -3
  37. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  38. package/dist/linaria-themes-browser-all.es.ios.js +3 -3
  39. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  40. package/dist/linaria-themes-browser-all.es.js +3 -3
  41. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  42. package/dist/linaria-themes-browser-all.es.web.js +3 -3
  43. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  44. package/dist/linaria-themes-node-14.17.cjs.js +3 -3
  45. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  46. package/dist/linaria-themes-node-14.17.cjs.web.js +3 -3
  47. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  48. package/dist/styles.css +1 -1
  49. package/dist/tsbuildinfo +1 -1
  50. package/package.json +7 -6
  51. package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts +0 -4
  52. package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts.map +0 -1
@@ -1,89 +1,55 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
3
+ import { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
4
4
  export * from '@ornikar/kitt-icons';
5
- import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, TextInput, Pressable, View, ActivityIndicator, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
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';
6
6
  export { useWindowDimensions as useWindowSize } from 'react-native';
7
7
  import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
8
- import { useRef, useEffect, cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children } from 'react';
9
- import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
10
- import Animated$1, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withRepeat, withTiming, Easing as Easing$1, interpolate } from 'react-native-reanimated';
8
+ import { cloneElement, useContext, createContext, forwardRef, useMemo, useState, useRef, useEffect, Fragment as Fragment$1, Children } from 'react';
9
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
+ import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withRepeat, withTiming, Easing as Easing$1, interpolate } from 'react-native-reanimated';
11
11
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
12
12
  import { parse } from 'twemoji-parser';
13
13
  import { openBrowserAsync } from 'expo-web-browser';
14
14
  import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
15
+ import { FormattedMessage } from 'react-intl';
15
16
  import _extends from '@babel/runtime/helpers/extends';
16
17
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
17
18
  import { LinearGradient } from 'expo-linear-gradient';
18
- import { FormattedMessage } from 'react-intl';
19
19
  import { useFloating, offset, shift, flip } from '@floating-ui/react-native';
20
20
  import { makeDecorator } from '@storybook/addons';
21
21
 
22
- function SpinningIcon(_ref) {
23
- var children = _ref.children;
24
- var animationRef = useRef(new Animated.Value(0));
25
- var rotation = animationRef.current.interpolate({
26
- inputRange: [0, 1],
27
- outputRange: ['0deg', '360deg']
28
- });
29
- useEffect(function () {
30
- if (process.env.TESTS) return undefined;
31
- var animation = Animated.loop(Animated.timing(animationRef.current, {
32
- toValue: 1,
33
- duration: 1100,
34
- easing: Easing.linear,
35
- useNativeDriver: true
36
- }));
37
- animation.start();
38
- return function () {
39
- if (process.env.TESTS) return undefined;
40
- animation.stop();
41
- return undefined;
42
- };
43
- }, []);
44
- return /*#__PURE__*/jsx(Animated.View, {
45
- style: {
46
- transform: [{
47
- rotate: rotation
48
- }]
49
- },
50
- children: children
51
- });
52
- }
53
-
22
+ var defaultIconSize = 20;
54
23
  var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
55
24
  displayName: "Icon__IconContainer"
56
25
  })(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
57
- var color = _ref.color;
58
- return color;
26
+ var $color = _ref.$color;
27
+ return $color;
59
28
  }, function (_ref2) {
60
- var size = _ref2.size;
61
- return size;
29
+ var $size = _ref2.$size;
30
+ return $size;
62
31
  }, function (_ref3) {
63
- var size = _ref3.size;
64
- return size;
32
+ var $size = _ref3.$size;
33
+ return $size;
65
34
  }, function (_ref4) {
66
- var _ref4$align = _ref4.align,
67
- align = _ref4$align === void 0 ? 'auto' : _ref4$align;
68
- return align;
35
+ var _ref4$$align = _ref4.$align,
36
+ $align = _ref4$$align === void 0 ? 'auto' : _ref4$$align;
37
+ return $align;
69
38
  });
70
39
  function Icon(_ref5) {
71
40
  var icon = _ref5.icon,
72
41
  _ref5$size = _ref5.size,
73
- size = _ref5$size === void 0 ? 20 : _ref5$size,
74
- spin = _ref5.spin,
42
+ size = _ref5$size === void 0 ? defaultIconSize : _ref5$size,
75
43
  align = _ref5.align,
76
44
  color = _ref5.color;
77
45
  var clonedIcon = /*#__PURE__*/cloneElement(icon, {
78
46
  color: color
79
47
  });
80
48
  return /*#__PURE__*/jsx(IconContainer$1, {
81
- align: align,
82
- size: size,
83
- color: color,
84
- children: spin ? /*#__PURE__*/jsx(SpinningIcon, {
85
- children: clonedIcon
86
- }) : clonedIcon
49
+ $align: align,
50
+ $size: size,
51
+ $color: color,
52
+ children: clonedIcon
87
53
  });
88
54
  }
89
55
 
@@ -135,11 +101,7 @@ var KittBreakpointsMax = {
135
101
  LARGE: KittBreakpoints.WIDE - 1
136
102
  };
137
103
 
138
- var _excluded$f = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
139
-
140
- function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
141
-
142
- function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104
+ var _excluded$i = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
143
105
  var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
144
106
  var TypographyColorContext = /*#__PURE__*/createContext('black');
145
107
  function useTypographyColor() {
@@ -215,7 +177,7 @@ function Typography(_ref4) {
215
177
  large = _ref4.large,
216
178
  variant = _ref4.variant,
217
179
  color = _ref4.color,
218
- otherProps = _objectWithoutProperties(_ref4, _excluded$f);
180
+ otherProps = _objectWithoutProperties(_ref4, _excluded$i);
219
181
 
220
182
  var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
221
183
  var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
@@ -232,14 +194,14 @@ function Typography(_ref4) {
232
194
  var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
233
195
  var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
234
196
  value: isHeader,
235
- children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$n({
197
+ children: /*#__PURE__*/jsx(StyledTypography, _objectSpread({
236
198
  $color: colorOrDefaultToBlack,
237
199
  $isHeader: isHeader,
238
200
  $typeForCurrentWindowSize: typeForCurrentWindowSize,
239
201
  $variant: nonNullableVariant,
240
202
  accessibilityRole: accessibilityRole || undefined
241
203
  }, otherProps))
242
- }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$n({
204
+ }) : /*#__PURE__*/jsx(StyledTypography, _objectSpread({
243
205
  $color: colorOrDefaultToBlack,
244
206
  $isHeader: isHeader,
245
207
  $variant: nonNullableVariant,
@@ -252,13 +214,13 @@ function Typography(_ref4) {
252
214
  }
253
215
 
254
216
  function TypographyText(props) {
255
- return /*#__PURE__*/jsx(Typography, _objectSpread$n({
217
+ return /*#__PURE__*/jsx(Typography, _objectSpread({
256
218
  accessibilityRole: null
257
219
  }, props));
258
220
  }
259
221
 
260
222
  function TypographyParagraph(props) {
261
- return /*#__PURE__*/jsx(Typography, _objectSpread$n({
223
+ return /*#__PURE__*/jsx(Typography, _objectSpread({
262
224
  accessibilityRole: "paragraph"
263
225
  }, props));
264
226
  }
@@ -266,7 +228,7 @@ function TypographyParagraph(props) {
266
228
  var createHeading = function (level, defaultBase) {
267
229
  // https://github.com/necolas/react-native-web/issues/401
268
230
  function TypographyHeading(props) {
269
- return /*#__PURE__*/jsx(Typography, _objectSpread$n(_objectSpread$n({
231
+ return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
270
232
  accessibilityRole: "header",
271
233
  base: defaultBase
272
234
  }, props), {}, {
@@ -302,11 +264,7 @@ Typography.h4 = createHeading(4, 'header4');
302
264
 
303
265
  Typography.h5 = createHeading(5, 'header5');
304
266
 
305
- var _excluded$e = ["size", "base", "round", "light"];
306
-
307
- function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
308
-
309
- function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
267
+ var _excluded$h = ["size", "base", "round", "light"];
310
268
 
311
269
  var getInitials = function (firstname, lastname) {
312
270
  return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
@@ -377,13 +335,13 @@ function Avatar(_ref6) {
377
335
  base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
378
336
  round = _ref6.round,
379
337
  light = _ref6.light,
380
- props = _objectWithoutProperties(_ref6, _excluded$e);
338
+ props = _objectWithoutProperties(_ref6, _excluded$h);
381
339
 
382
340
  return /*#__PURE__*/jsx(StyledAvatarView, {
383
341
  $size: size,
384
342
  $isRound: round,
385
343
  $isLight: light,
386
- children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$m({
344
+ children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
387
345
  size: size,
388
346
  base: base,
389
347
  isLight: light
@@ -398,7 +356,7 @@ var StyledPressable = /*#__PURE__*/styled.Pressable.withConfig({
398
356
  if ($isStretch) return undefined;
399
357
  return 'align-self: flex-start;';
400
358
  });
401
- var StyledAnimatedView = /*#__PURE__*/styled(Animated$1.View).withConfig({
359
+ var StyledAnimatedView = /*#__PURE__*/styled(Animated.View).withConfig({
402
360
  displayName: "AnimatedButtonPressable__StyledAnimatedView"
403
361
  })(["border-radius:", "px;"], function (_ref2) {
404
362
  var theme = _ref2.theme;
@@ -525,52 +483,44 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
525
483
  return defaultPadding;
526
484
  });
527
485
 
528
- var _excluded$d = ["color"],
529
- _excluded2$2 = ["color"];
530
-
531
- function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
532
-
533
- function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
486
+ var _excluded$g = ["color"],
487
+ _excluded2$3 = ["color"];
534
488
 
535
489
  function TypographyIconSpecifiedColor(_ref) {
536
490
  var color = _ref.color,
537
- props = _objectWithoutProperties(_ref, _excluded$d);
491
+ props = _objectWithoutProperties(_ref, _excluded$g);
538
492
 
539
493
  var theme = /*#__PURE__*/useTheme();
540
- return /*#__PURE__*/jsx(Icon, _objectSpread$l(_objectSpread$l({}, props), {}, {
494
+ return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
541
495
  color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
542
496
  }));
543
497
  }
544
498
 
545
499
  function TypographyIconInheritColor(props) {
546
500
  var color = useTypographyColor();
547
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$l({
501
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
548
502
  color: color
549
503
  }, props));
550
504
  }
551
505
 
552
506
  function TypographyIcon(_ref2) {
553
507
  var color = _ref2.color,
554
- props = _objectWithoutProperties(_ref2, _excluded2$2);
508
+ props = _objectWithoutProperties(_ref2, _excluded2$3);
555
509
 
556
510
  if (color) {
557
- return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$l({
511
+ return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
558
512
  color: color
559
513
  }, props));
560
514
  }
561
515
 
562
- return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$l({}, props));
516
+ return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
563
517
  }
564
518
 
565
519
  function isSubtle(type) {
566
520
  return type.startsWith('subtle');
567
521
  }
568
522
 
569
- var _excluded$c = ["type", "isDisabled", "$isStretch", "icon", "children"];
570
-
571
- function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
572
-
573
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
523
+ var _excluded$f = ["type", "isDisabled", "$isStretch", "icon", "children"];
574
524
 
575
525
  var getTextColorByType = function (type) {
576
526
  switch (type) {
@@ -626,14 +576,12 @@ var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
626
576
  function ButtonIcon(_ref3) {
627
577
  var icon = _ref3.icon,
628
578
  color = _ref3.color,
629
- spin = _ref3.spin,
630
579
  iconPosition = _ref3.iconPosition,
631
580
  testID = _ref3.testID;
632
581
  return /*#__PURE__*/jsx(StyledIconContainer$1, {
633
582
  $iconPosition: iconPosition,
634
583
  children: /*#__PURE__*/jsx(TypographyIcon, {
635
584
  icon: icon,
636
- spin: spin,
637
585
  testID: testID,
638
586
  color: color
639
587
  })
@@ -647,7 +595,6 @@ function ButtonContentChildren(_ref4) {
647
595
  var type = _ref4.type,
648
596
  icon = _ref4.icon,
649
597
  iconPosition = _ref4.iconPosition,
650
- iconSpin = _ref4.iconSpin,
651
598
  isDisabled = _ref4.isDisabled,
652
599
  color = _ref4.color,
653
600
  children = _ref4.children;
@@ -661,9 +608,8 @@ function ButtonContentChildren(_ref4) {
661
608
  var isWebSubtle = isSubtle(type) && Platform.OS === 'web' && !isDisabled;
662
609
 
663
610
  if (!children) {
664
- return /*#__PURE__*/jsx(TypographyIcon, {
665
- spin: iconSpin // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
666
- ,
611
+ return /*#__PURE__*/jsx(TypographyIcon // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
612
+ , {
667
613
  icon: icon,
668
614
  color: isWebSubtle ? 'inherit' : color
669
615
  });
@@ -671,12 +617,11 @@ function ButtonContentChildren(_ref4) {
671
617
 
672
618
  var buttonIconSharedProps = {
673
619
  type: type,
674
- spin: iconSpin,
675
620
  iconPosition: iconPosition,
676
621
  color: isWebSubtle ? 'inherit' : color
677
622
  };
678
623
  return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
679
- children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$k(_objectSpread$k({}, buttonIconSharedProps), {}, {
624
+ children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
680
625
  testID: "button-left-icon",
681
626
  icon: icon
682
627
  })) : null, /*#__PURE__*/jsx(StyledButtonText, {
@@ -687,7 +632,7 @@ function ButtonContentChildren(_ref4) {
687
632
  ,
688
633
  color: isWebSubtle ? undefined : color,
689
634
  children: children
690
- }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$k(_objectSpread$k({}, buttonIconSharedProps), {}, {
635
+ }), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
691
636
  icon: icon
692
637
  })) : null]
693
638
  });
@@ -713,14 +658,14 @@ function ButtonContent(_ref7) {
713
658
  $isStretch = _ref7.$isStretch,
714
659
  icon = _ref7.icon,
715
660
  children = _ref7.children,
716
- props = _objectWithoutProperties(_ref7, _excluded$c);
661
+ props = _objectWithoutProperties(_ref7, _excluded$f);
717
662
 
718
663
  var color = isDisabled ? 'black-light' : getTextColorByType(type);
719
664
  return /*#__PURE__*/jsx(ButtonContentContainer, {
720
665
  $isSubtle: isSubtle(type),
721
666
  $isStretch: $isStretch,
722
667
  $isIconOnly: Boolean(!children && icon),
723
- children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$k(_objectSpread$k({
668
+ children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread(_objectSpread({
724
669
  icon: icon,
725
670
  type: type,
726
671
  isDisabled: isDisabled,
@@ -754,7 +699,6 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
754
699
  icon = _ref.icon,
755
700
  _ref$iconPosition = _ref.iconPosition,
756
701
  iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
757
- iconSpin = _ref.iconSpin,
758
702
  testID = _ref.testID,
759
703
  href = _ref.href,
760
704
  hrefAttrs = _ref.hrefAttrs,
@@ -782,7 +726,6 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
782
726
  isDisabled: disabled,
783
727
  icon: icon,
784
728
  iconPosition: iconPosition,
785
- iconSpin: iconSpin,
786
729
  children: children
787
730
  }), Platform.OS !== 'web' && disabled ? /*#__PURE__*/jsx(StyledDisabled, {}) : null]
788
731
  })
@@ -857,20 +800,16 @@ var defaultOpenLinkBehavior = {
857
800
  web: 'targetBlank'
858
801
  };
859
802
 
860
- var _excluded$b = ["as", "href", "openLinkBehavior", "onPress"];
861
-
862
- function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
863
-
864
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
803
+ var _excluded$e = ["as", "href", "openLinkBehavior", "onPress"];
865
804
  function ExternalLink(_ref) {
866
805
  var Component = _ref.as,
867
806
  href = _ref.href,
868
807
  _ref$openLinkBehavior = _ref.openLinkBehavior,
869
808
  openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
870
809
  onPress = _ref.onPress,
871
- rest = _objectWithoutProperties(_ref, _excluded$b);
810
+ rest = _objectWithoutProperties(_ref, _excluded$e);
872
811
 
873
- return /*#__PURE__*/jsx(Component, _objectSpread$j(_objectSpread$j({}, rest), {}, {
812
+ return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
874
813
  onPress: function handleOnPress() {
875
814
  if (onPress) onPress();
876
815
  if (!href) return;
@@ -977,9 +916,9 @@ var button = {
977
916
  }
978
917
  },
979
918
  contentPadding: {
980
- "default": '8px 16px 7px',
981
- large: '12px 24px 11px',
982
- disabled: '6px 14px 5px'
919
+ "default": '7px 16px 7px',
920
+ large: '11px 24px 11px',
921
+ disabled: '5px 14px 5px'
983
922
  },
984
923
  transition: {
985
924
  duration: '200ms',
@@ -1504,7 +1443,7 @@ function useKittTheme() {
1504
1443
 
1505
1444
  var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled.Pressable.withConfig({
1506
1445
  displayName: "Checkbox__CheckboxAndLabelPressableWrapper"
1507
- })(["display:flex;flex-direction:row;align-items:center;"]);
1446
+ })(["display:flex;flex-direction:row;"]);
1508
1447
  var CheckboxContainer = /*#__PURE__*/styled.View.withConfig({
1509
1448
  displayName: "Checkbox__CheckboxContainer"
1510
1449
  })(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:", "px;width:", "px;position:relative;border-radius:", "px;", " margin-right:", ";"], function (_ref) {
@@ -1646,10 +1585,6 @@ function DatePickerInputPart(_ref4) {
1646
1585
  });
1647
1586
  }
1648
1587
 
1649
- function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1650
-
1651
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1652
-
1653
1588
  function prefixWithZero(value) {
1654
1589
  return "".concat(value).padStart(2, '0');
1655
1590
  }
@@ -1703,14 +1638,14 @@ function DatePickerInputs(_ref4) {
1703
1638
  onPress: handleModalOpen,
1704
1639
  children: [/*#__PURE__*/jsx(PartContainer, {
1705
1640
  $isStretch: stretch,
1706
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread$i(_objectSpread$i({}, sharedPartProps), {}, {
1641
+ children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
1707
1642
  partName: "day",
1708
1643
  value: currentValue ? prefixWithZero(currentValue.getDate()) : undefined,
1709
1644
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day
1710
1645
  }))
1711
1646
  }), /*#__PURE__*/jsx(PartContainer, {
1712
1647
  $isStretch: stretch,
1713
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread$i(_objectSpread$i({}, sharedPartProps), {}, {
1648
+ children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
1714
1649
  partName: "month",
1715
1650
  value: currentValue ? prefixWithZero(currentValue.getMonth() + 1) : undefined,
1716
1651
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month
@@ -1718,7 +1653,7 @@ function DatePickerInputs(_ref4) {
1718
1653
  }), /*#__PURE__*/jsx(PartContainer, {
1719
1654
  $isLast: true,
1720
1655
  $isStretch: stretch,
1721
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread$i(_objectSpread$i({}, sharedPartProps), {}, {
1656
+ children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
1722
1657
  partName: "year",
1723
1658
  value: currentValue ? currentValue.getFullYear() : undefined,
1724
1659
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
@@ -1727,37 +1662,24 @@ function DatePickerInputs(_ref4) {
1727
1662
  });
1728
1663
  }
1729
1664
 
1730
- var _excluded$a = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "pickerDefaultDate", "onChange", "onFocus", "onBlur"];
1731
-
1732
- function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1733
-
1734
- function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1735
- function DatePicker(_ref) {
1736
- var value = _ref.value,
1737
- pickerUITestID = _ref.pickerUITestID;
1738
- _ref.pickerUITitle;
1739
- _ref.pickerUIValidateButtonLabel;
1740
- var pickerDefaultDate = _ref.pickerDefaultDate,
1741
- _onChange = _ref.onChange,
1665
+ var _excluded$d = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "setIsFocused", "currentValue", "setCurrentValue", "onChange", "isFocused"];
1666
+ function DatePickerAndroid(_ref) {
1667
+ var onBlur = _ref.onBlur,
1742
1668
  onFocus = _ref.onFocus,
1743
- onBlur = _ref.onBlur,
1744
- props = _objectWithoutProperties(_ref, _excluded$a);
1745
-
1746
- var _useState = useState(value),
1747
- _useState2 = _slicedToArray(_useState, 2),
1748
- currentValue = _useState2[0],
1749
- setCurrentValue = _useState2[1];
1750
-
1751
- var _useState3 = useState(false),
1752
- _useState4 = _slicedToArray(_useState3, 2),
1753
- isFocused = _useState4[0],
1754
- setIsFocused = _useState4[1];
1669
+ pickerDefaultDate = _ref.pickerDefaultDate,
1670
+ pickerUITestID = _ref.pickerUITestID,
1671
+ setIsFocused = _ref.setIsFocused,
1672
+ currentValue = _ref.currentValue,
1673
+ setCurrentValue = _ref.setCurrentValue,
1674
+ _onChange = _ref.onChange,
1675
+ isFocused = _ref.isFocused,
1676
+ props = _objectWithoutProperties(_ref, _excluded$d);
1755
1677
 
1756
1678
  var handleClose = function () {
1757
1679
  if (onBlur) onBlur();
1758
1680
  };
1759
1681
 
1760
- return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread$h({
1682
+ return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
1761
1683
  handleModalOpen: function handleModalOpen() {
1762
1684
  setIsFocused(true);
1763
1685
  if (onFocus) onFocus();
@@ -1785,159 +1707,705 @@ function DatePicker(_ref) {
1785
1707
  }, props));
1786
1708
  }
1787
1709
 
1788
- var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
1789
- displayName: "InputTextContainer"
1790
- })(["position:relative;"]);
1791
-
1792
- var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
1793
-
1794
- function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1795
-
1796
- function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1797
- var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
1798
- displayName: "InputText__StyledTextInput"
1799
- })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
1800
- var theme = _ref.theme,
1801
- multiline = _ref.multiline;
1802
-
1803
- if (!multiline && Platform.OS === 'ios') {
1804
- return theme.kitt.forms.input.padding.iOSSingleLine;
1805
- }
1710
+ // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
1711
+ var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
1712
+ displayName: "Overlay__OverlayPressable"
1713
+ })(function (_ref) {
1714
+ var theme = _ref.theme;
1715
+ return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
1716
+ backgroundColor: theme.kitt.colors.overlay.dark
1717
+ });
1718
+ });
1719
+ function Overlay(_ref2) {
1720
+ var onPress = _ref2.onPress;
1721
+ return /*#__PURE__*/jsx(OverlayPressable, {
1722
+ accessibilityRole: "none",
1723
+ onPress: onPress,
1724
+ children: /*#__PURE__*/jsx(View, {})
1725
+ });
1726
+ }
1806
1727
 
1807
- return theme.kitt.forms.input.padding["default"];
1728
+ var BodyView = /*#__PURE__*/styled.View.withConfig({
1729
+ displayName: "Body__BodyView"
1730
+ })(["padding:", "px ", "px;"], function (_ref) {
1731
+ var theme = _ref.theme;
1732
+ return theme.kitt.spacing * 6;
1808
1733
  }, function (_ref2) {
1809
- var theme = _ref2.theme,
1810
- multiline = _ref2.multiline;
1811
- if (!multiline && Platform.OS === 'ios') return 0;
1812
- var typeConfigKey = getTypographyTypeConfigKey(theme);
1813
- return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
1814
- }, function (_ref3) {
1815
- var $minHeight = _ref3.$minHeight;
1816
- return $minHeight;
1734
+ var theme = _ref2.theme;
1735
+ return theme.kitt.spacing * 4;
1817
1736
  });
1818
- var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
1819
- displayName: "InputText__RightInputContainer"
1820
- })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
1821
- var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
1822
- var id = _ref4.id,
1823
- right = _ref4.right,
1824
- _ref4$minHeight = _ref4.minHeight,
1825
- minHeight = _ref4$minHeight === void 0 ? 0 : _ref4$minHeight,
1826
- formState = _ref4.state,
1827
- internalForceState = _ref4.internalForceState,
1828
- _ref4$disabled = _ref4.disabled,
1829
- disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
1830
- _ref4$autoCorrect = _ref4.autoCorrect,
1831
- autoCorrect = _ref4$autoCorrect === void 0 ? true : _ref4$autoCorrect,
1832
- _ref4$textContentType = _ref4.textContentType,
1833
- textContentType = _ref4$textContentType === void 0 ? 'none' : _ref4$textContentType,
1834
- _ref4$autoCompleteTyp = _ref4.autoCompleteType,
1835
- autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
1836
- _ref4$keyboardType = _ref4.keyboardType,
1837
- keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
1838
- _onFocus = _ref4.onFocus,
1839
- _onBlur = _ref4.onBlur,
1840
- props = _objectWithoutProperties(_ref4, _excluded$9);
1841
-
1842
- var theme = /*#__PURE__*/useTheme();
1843
-
1844
- var _useState = useState(false),
1845
- _useState2 = _slicedToArray(_useState, 2),
1846
- isFocused = _useState2[0],
1847
- setIsFocused = _useState2[1];
1848
-
1849
- var state = internalForceState || getInputUIState({
1850
- isFocused: isFocused,
1851
- isDisabled: disabled,
1852
- formState: formState
1853
- });
1854
- return /*#__PURE__*/jsxs(InputTextContainer, {
1855
- $isDisabled: disabled,
1856
- children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$g(_objectSpread$g({
1857
- ref: ref,
1858
- nativeID: id,
1859
- editable: !disabled,
1860
- keyboardType: keyboardType,
1861
- autoCompleteType: autoCompleteType,
1862
- autoCorrect: autoCorrect,
1863
- $minHeight: minHeight,
1864
- textContentType: textContentType,
1865
- placeholderTextColor: theme.kitt.forms.input.color.placeholder,
1866
- selectionColor: theme.kitt.forms.input.color.selection
1867
- }, props), {}, {
1868
- $state: state,
1869
- onFocus: function onFocus(e) {
1870
- setIsFocused(true);
1871
- if (_onFocus) _onFocus(e);
1872
- },
1873
- onBlur: function onBlur(e) {
1874
- setIsFocused(false);
1875
- if (_onBlur) _onBlur(e);
1876
- }
1877
- })), right ? /*#__PURE__*/jsx(RightInputContainer, {
1878
- children: right
1879
- }) : null]
1737
+ function ModalBody(_ref3) {
1738
+ var children = _ref3.children;
1739
+ return /*#__PURE__*/jsx(ScrollView, {
1740
+ children: /*#__PURE__*/jsx(BodyView, {
1741
+ children: children
1742
+ })
1880
1743
  });
1881
- });
1882
-
1883
- function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1884
-
1885
- function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1886
- function InputEmail(props) {
1887
- return /*#__PURE__*/jsx(InputText, _objectSpread$f({
1888
- autoCompleteType: "email",
1889
- keyboardType: "email-address",
1890
- textContentType: "emailAddress",
1891
- autoCapitalize: "none"
1892
- }, props));
1893
1744
  }
1894
1745
 
1895
- var getColorFromState = function (state) {
1896
- switch (state) {
1897
- case 'invalid':
1898
- return 'danger';
1746
+ var FooterView = /*#__PURE__*/styled.View.withConfig({
1747
+ displayName: "Footer__FooterView"
1748
+ })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
1749
+ var theme = _ref.theme;
1750
+ return theme.kitt.spacing * 4;
1751
+ }, function (_ref2) {
1752
+ var theme = _ref2.theme;
1753
+ return theme.kitt.colors.separator;
1754
+ });
1755
+ function ModalFooter(_ref3) {
1756
+ var children = _ref3.children;
1757
+ return /*#__PURE__*/jsx(FooterView, {
1758
+ children: children
1759
+ });
1760
+ }
1899
1761
 
1900
- case 'valid':
1901
- default:
1902
- return 'black-light';
1903
- }
1904
- };
1762
+ var _excluded$c = ["as", "children"];
1763
+ function StyleWebWrapper(_ref) {
1764
+ var as = _ref.as,
1765
+ children = _ref.children,
1766
+ props = _objectWithoutProperties(_ref, _excluded$c);
1905
1767
 
1906
- function InputFeedback(_ref) {
1907
- var state = _ref.state,
1908
- testID = _ref.testID,
1909
- children = _ref.children;
1910
- return /*#__PURE__*/jsx(Typography.Text, {
1911
- base: "body-small",
1912
- color: getColorFromState(state),
1913
- testID: testID,
1768
+ if (Platform.OS !== 'web') return children;
1769
+ // as or default to div. If as is undefined, T is div but typescript is not sure
1770
+ return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
1914
1771
  children: children
1915
- });
1772
+ }));
1916
1773
  }
1917
1774
 
1918
- var FieldContainer = /*#__PURE__*/styled.View.withConfig({
1919
- displayName: "InputField__FieldContainer"
1920
- })(["padding:5px 0 10px;"]);
1921
- var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
1922
- displayName: "InputField__FeedbackContainer"
1923
- })(["", ";"], function (_ref) {
1775
+ var _excluded$b = ["color", "disabled"];
1776
+ var PressableIconButtonWebWrapper = undefined;
1777
+ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1778
+ displayName: "PressableIconButton__StyledPressableIconButton"
1779
+ })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref) {
1924
1780
  var theme = _ref.theme;
1925
- return theme.responsive.ifWindowSizeMatches({
1926
- minWidth: KittBreakpoints.SMALL
1927
- }, 'padding-top: 10px', 'padding-top: 5px');
1928
- });
1929
- var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
1930
- displayName: "InputField__FieldLabelContainer"
1931
- })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
1781
+ return theme.kitt.iconButton.borderRadius;
1782
+ }, function (_ref2) {
1932
1783
  var theme = _ref2.theme;
1933
- return theme.kitt.forms.inputField.labelContainerPaddingBottom;
1934
- });
1935
- var LabelContainer = /*#__PURE__*/styled.View.withConfig({
1936
- displayName: "InputField__LabelContainer"
1937
- })(["margin-right:", "px;"], function (_ref3) {
1784
+ return theme.kitt.iconButton.width;
1785
+ }, function (_ref3) {
1938
1786
  var theme = _ref3.theme;
1939
- return theme.kitt.forms.inputField.iconMarginLeft;
1940
- });
1787
+ return theme.kitt.iconButton.height;
1788
+ }, function (_ref4) {
1789
+ var theme = _ref4.theme,
1790
+ disabled = _ref4.disabled;
1791
+ var iconButton = theme.kitt.iconButton;
1792
+
1793
+ if (Platform.OS !== 'web') {
1794
+ return undefined;
1795
+ }
1796
+
1797
+ var transition = iconButton.transition;
1798
+
1799
+ if (disabled) {
1800
+ return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
1801
+ }
1802
+
1803
+ return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
1804
+ });
1805
+ function PressableIconButton(_ref5) {
1806
+ var color = _ref5.color,
1807
+ disabled = _ref5.disabled,
1808
+ props = _objectWithoutProperties(_ref5, _excluded$b);
1809
+
1810
+ return /*#__PURE__*/jsx(StyleWebWrapper, {
1811
+ as: PressableIconButtonWebWrapper,
1812
+ $isWhite: color === 'white',
1813
+ $isDisabled: Boolean(disabled),
1814
+ children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread(_objectSpread({}, props), {}, {
1815
+ disabled: disabled
1816
+ }))
1817
+ });
1818
+ }
1819
+
1820
+ var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated.View).withConfig({
1821
+ displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground"
1822
+ })(["background-color:", ";border-radius:", "px;width:", "px;height:", "px;position:absolute;bottom:0;left:0;"], function (_ref) {
1823
+ var theme = _ref.theme,
1824
+ color = _ref.color,
1825
+ disabled = _ref.disabled;
1826
+ var iconButton = theme.kitt.iconButton;
1827
+ if (disabled) return iconButton.disabled.backgroundColor;
1828
+ if (color === 'white') return iconButton.white.pressedBackgroundColor;
1829
+ return iconButton["default"].pressedBackgroundColor;
1830
+ }, function (_ref2) {
1831
+ var theme = _ref2.theme;
1832
+ return theme.kitt.iconButton.borderRadius;
1833
+ }, function (_ref3) {
1834
+ var theme = _ref3.theme;
1835
+ return theme.kitt.iconButton.width;
1836
+ }, function (_ref4) {
1837
+ var theme = _ref4.theme;
1838
+ return theme.kitt.iconButton.height;
1839
+ });
1840
+ var AnimatedViewContainer = /*#__PURE__*/styled(Animated.View).withConfig({
1841
+ displayName: "PressableAnimatedContainer__AnimatedViewContainer"
1842
+ })(["position:relative;align-items:center;justify-content:center;width:100%;height:100%;"]);
1843
+ function PressableAnimatedContainer(_ref5) {
1844
+ var disabled = _ref5.disabled,
1845
+ _ref5$color = _ref5.color,
1846
+ color = _ref5$color === void 0 ? 'black' : _ref5$color,
1847
+ testID = _ref5.testID,
1848
+ _ref5$accessibilityRo = _ref5.accessibilityRole,
1849
+ accessibilityRole = _ref5$accessibilityRo === void 0 ? 'button' : _ref5$accessibilityRo,
1850
+ accessibilityLabel = _ref5.accessibilityLabel,
1851
+ children = _ref5.children,
1852
+ onPress = _ref5.onPress;
1853
+ var theme = /*#__PURE__*/useTheme();
1854
+ var pressed = useSharedValue(false);
1855
+ var opacityStyles = useAnimatedStyle(function () {
1856
+ var _f = function () {
1857
+ return {
1858
+ opacity: withSpring(pressed.value ? 1 : 0)
1859
+ };
1860
+ };
1861
+
1862
+ _f._closure = {
1863
+ withSpring: withSpring,
1864
+ pressed: pressed
1865
+ };
1866
+ _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
1867
+ _f.__workletHash = 10645190329247;
1868
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:41)";
1869
+ _f.__optimalization = 2;
1870
+
1871
+ global.__reanimatedWorkletInit(_f);
1872
+
1873
+ return _f;
1874
+ }());
1875
+ var scaleStyles = useAnimatedStyle(function () {
1876
+ var _f = function () {
1877
+ return {
1878
+ transform: [{
1879
+ scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base["default"])
1880
+ }]
1881
+ };
1882
+ };
1883
+
1884
+ _f._closure = {
1885
+ withSpring: withSpring,
1886
+ pressed: pressed,
1887
+ theme: {
1888
+ kitt: {
1889
+ iconButton: {
1890
+ scale: {
1891
+ base: {
1892
+ active: theme.kitt.iconButton.scale.base.active,
1893
+ "default": theme.kitt.iconButton.scale.base["default"]
1894
+ }
1895
+ }
1896
+ }
1897
+ }
1898
+ }
1899
+ };
1900
+ _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
1901
+ _f.__workletHash = 13861998831411;
1902
+ _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (66:39)";
1903
+ _f.__optimalization = 2;
1904
+
1905
+ global.__reanimatedWorkletInit(_f);
1906
+
1907
+ return _f;
1908
+ }());
1909
+ return /*#__PURE__*/jsx(PressableIconButton, {
1910
+ accessibilityRole: accessibilityRole,
1911
+ disabled: disabled,
1912
+ color: color,
1913
+ testID: testID,
1914
+ accessibilityLabel: accessibilityLabel,
1915
+ onPress: onPress,
1916
+ onPressIn: function onPressIn() {
1917
+ pressed.value = true;
1918
+ },
1919
+ onPressOut: function onPressOut() {
1920
+ pressed.value = false;
1921
+ },
1922
+ children: /*#__PURE__*/jsxs(AnimatedViewContainer, {
1923
+ style: disabled ? [{
1924
+ transform: [{
1925
+ scale: 1
1926
+ }]
1927
+ }] : [scaleStyles],
1928
+ children: [/*#__PURE__*/jsx(AnimatedIconButtonBackground, {
1929
+ disabled: disabled,
1930
+ color: color,
1931
+ style: disabled ? [{
1932
+ opacity: 1
1933
+ }] : [opacityStyles]
1934
+ }), children]
1935
+ })
1936
+ });
1937
+ }
1938
+
1939
+ var IconButtonContentBorder = /*#__PURE__*/styled.View.withConfig({
1940
+ displayName: "IconButton__IconButtonContentBorder"
1941
+ })(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
1942
+ var theme = _ref.theme;
1943
+ return "".concat(theme.kitt.iconButton.borderWidth, "px solid");
1944
+ }, function (_ref2) {
1945
+ var theme = _ref2.theme,
1946
+ disabled = _ref2.disabled;
1947
+ return disabled ? theme.kitt.iconButton.disabled.borderColor : theme.kitt.iconButton.borderColor;
1948
+ }, function (_ref3) {
1949
+ var theme = _ref3.theme;
1950
+ return theme.kitt.iconButton.width - theme.kitt.iconButton.borderWidth;
1951
+ }, function (_ref4) {
1952
+ var theme = _ref4.theme;
1953
+ return theme.kitt.iconButton.height - theme.kitt.iconButton.borderWidth;
1954
+ }, function (_ref5) {
1955
+ var theme = _ref5.theme;
1956
+ return theme.kitt.iconButton.borderRadius;
1957
+ });
1958
+
1959
+ function IconButtonContent(_ref6) {
1960
+ var disabled = _ref6.disabled,
1961
+ color = _ref6.color,
1962
+ icon = _ref6.icon;
1963
+ return /*#__PURE__*/jsx(IconButtonContentBorder, {
1964
+ disabled: disabled,
1965
+ children: /*#__PURE__*/jsx(TypographyIcon, {
1966
+ color: disabled ? 'black-light' : color,
1967
+ icon: icon
1968
+ })
1969
+ });
1970
+ }
1971
+
1972
+ function IconButton(_ref7) {
1973
+ var icon = _ref7.icon,
1974
+ color = _ref7.color,
1975
+ disabled = _ref7.disabled,
1976
+ testID = _ref7.testID,
1977
+ accessibilityLabel = _ref7.accessibilityLabel,
1978
+ accessibilityRole = _ref7.accessibilityRole,
1979
+ onPress = _ref7.onPress;
1980
+ return /*#__PURE__*/jsx(PressableAnimatedContainer, {
1981
+ color: color,
1982
+ disabled: disabled,
1983
+ testID: testID,
1984
+ accessibilityLabel: accessibilityLabel,
1985
+ accessibilityRole: accessibilityRole,
1986
+ onPress: onPress,
1987
+ children: /*#__PURE__*/jsx(IconButtonContent, {
1988
+ disabled: disabled,
1989
+ color: color,
1990
+ icon: icon
1991
+ })
1992
+ });
1993
+ }
1994
+
1995
+ var OnCloseContext = /*#__PURE__*/createContext(function () {});
1996
+
1997
+ var HeaderView = /*#__PURE__*/styled.View.withConfig({
1998
+ displayName: "Header__HeaderView"
1999
+ })(["position:relative;padding:", "px;display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-bottom-color:", ";min-height:57px;"], function (_ref) {
2000
+ var theme = _ref.theme;
2001
+ return theme.kitt.spacing * 2;
2002
+ }, function (_ref2) {
2003
+ var theme = _ref2.theme;
2004
+ return theme.kitt.colors.separator;
2005
+ });
2006
+ var LeftIconView = /*#__PURE__*/styled.View.withConfig({
2007
+ displayName: "Header__LeftIconView"
2008
+ })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
2009
+ var theme = _ref3.theme;
2010
+ return theme.kitt.spacing * 2;
2011
+ });
2012
+ var RightIconView = /*#__PURE__*/styled.View.withConfig({
2013
+ displayName: "Header__RightIconView"
2014
+ })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
2015
+ var theme = _ref4.theme;
2016
+ return theme.kitt.spacing * 2;
2017
+ });
2018
+ var TitleView = /*#__PURE__*/styled.View.withConfig({
2019
+ displayName: "Header__TitleView"
2020
+ })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
2021
+ var theme = _ref5.theme,
2022
+ isIconLeft = _ref5.isIconLeft;
2023
+ return isIconLeft ? 0 : theme.kitt.spacing * 2;
2024
+ });
2025
+ function ModalHeader(_ref6) {
2026
+ var left = _ref6.left,
2027
+ right = _ref6.right,
2028
+ children = _ref6.children;
2029
+ var onClose = useContext(OnCloseContext);
2030
+ var isIconLeft = !!left;
2031
+ return /*#__PURE__*/jsxs(HeaderView, {
2032
+ children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
2033
+ children: left
2034
+ }), /*#__PURE__*/jsx(TitleView, {
2035
+ isIconLeft: isIconLeft,
2036
+ children: children
2037
+ }), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
2038
+ children: /*#__PURE__*/jsx(IconButton, {
2039
+ icon: /*#__PURE__*/jsx(XIcon, {}),
2040
+ onPress: onClose
2041
+ })
2042
+ })]
2043
+ });
2044
+ }
2045
+
2046
+ var ModalView = /*#__PURE__*/styled.View.withConfig({
2047
+ displayName: "Modal__ModalView"
2048
+ })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
2049
+ var theme = _ref.theme;
2050
+ return theme.kitt.spacing * 20;
2051
+ }, function (_ref2) {
2052
+ var theme = _ref2.theme;
2053
+ return theme.kitt.spacing * 4;
2054
+ });
2055
+ var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
2056
+ displayName: "Modal__ContentView"
2057
+ })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
2058
+ var theme = _ref3.theme;
2059
+ return theme.kitt.card.borderRadius;
2060
+ }, function (_ref4) {
2061
+ var theme = _ref4.theme;
2062
+ return theme.kitt.colors.uiBackgroundLight;
2063
+ });
2064
+ function Modal(_ref5) {
2065
+ var visible = _ref5.visible,
2066
+ children = _ref5.children,
2067
+ onClose = _ref5.onClose,
2068
+ onEntered = _ref5.onEntered,
2069
+ onExited = _ref5.onExited;
2070
+ return /*#__PURE__*/jsx(OnCloseContext.Provider, {
2071
+ value: onClose,
2072
+ children: /*#__PURE__*/jsx(Modal$1, {
2073
+ transparent: true,
2074
+ animationType: "fade",
2075
+ visible: visible,
2076
+ onShow: onEntered,
2077
+ onDismiss: onExited,
2078
+ onRequestClose: onClose,
2079
+ children: /*#__PURE__*/jsxs(ModalView, {
2080
+ children: [/*#__PURE__*/jsx(Overlay, {
2081
+ onPress: onClose
2082
+ }), /*#__PURE__*/jsx(ContentView$1, {
2083
+ children: children
2084
+ })]
2085
+ })
2086
+ })
2087
+ });
2088
+ }
2089
+ Modal.Header = ModalHeader;
2090
+ Modal.Body = ModalBody;
2091
+ Modal.Footer = ModalFooter;
2092
+
2093
+ function getDatePickerDisplayMode() {
2094
+ if (Platform.OS === 'android') return 'calendar';
2095
+ if (Platform.OS === 'ios') return 'spinner';
2096
+ return 'default';
2097
+ }
2098
+
2099
+ function PlatformDateTimePicker(_ref) {
2100
+ var value = _ref.value,
2101
+ _ref$defaultDate = _ref.defaultDate,
2102
+ defaultDate = _ref$defaultDate === void 0 ? new Date() : _ref$defaultDate,
2103
+ maximumDate = _ref.maximumDate,
2104
+ minimuDate = _ref.minimuDate,
2105
+ testID = _ref.testID,
2106
+ _onChange = _ref.onChange;
2107
+ var theme = /*#__PURE__*/useTheme();
2108
+ var displayMode = getDatePickerDisplayMode();
2109
+ var iosProps = Platform.OS === 'ios' ? {
2110
+ textColor: theme.kitt.colors.primary
2111
+ } : {};
2112
+ return /*#__PURE__*/jsx(DateTimePicker, _objectSpread(_objectSpread({
2113
+ is24Hour: true,
2114
+ testID: testID,
2115
+ value: value || defaultDate,
2116
+ mode: "date",
2117
+ maximumDate: maximumDate,
2118
+ minimumDate: minimuDate,
2119
+ display: displayMode
2120
+ }, iosProps), {}, {
2121
+ onChange: function onChange(_event, date) {
2122
+ return _onChange(date);
2123
+ }
2124
+ }));
2125
+ }
2126
+
2127
+ var _excluded$a = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
2128
+
2129
+ function ModalTitle(_ref) {
2130
+ var children = _ref.children;
2131
+ return /*#__PURE__*/jsx(Modal.Header, {
2132
+ children: /*#__PURE__*/jsx(Typography.Text, {
2133
+ base: "body",
2134
+ variant: "bold",
2135
+ children: children
2136
+ })
2137
+ });
2138
+ }
2139
+
2140
+ function ModalPlatformDateTimePicker(_ref2) {
2141
+ var title = _ref2.title,
2142
+ isVisible = _ref2.isVisible,
2143
+ value = _ref2.value,
2144
+ validateButtonLabel = _ref2.validateButtonLabel,
2145
+ onClose = _ref2.onClose,
2146
+ onChange = _ref2.onChange,
2147
+ props = _objectWithoutProperties(_ref2, _excluded$a);
2148
+
2149
+ var _useState = useState(value),
2150
+ _useState2 = _slicedToArray(_useState, 2),
2151
+ currentValue = _useState2[0],
2152
+ setCurrentValue = _useState2[1]; // Prevent unsynced value between the modal and its parent state
2153
+
2154
+
2155
+ return /*#__PURE__*/jsx(Modal, {
2156
+ visible: Boolean(isVisible),
2157
+ onClose: function handleClose() {
2158
+ setCurrentValue(value);
2159
+ onClose();
2160
+ },
2161
+ children: isVisible ? /*#__PURE__*/jsxs(Fragment, {
2162
+ children: [title ? /*#__PURE__*/jsx(ModalTitle, {
2163
+ children: title
2164
+ }) : null, /*#__PURE__*/jsx(Modal.Body, {
2165
+ children: /*#__PURE__*/jsx(PlatformDateTimePicker, _objectSpread(_objectSpread({}, props), {}, {
2166
+ value: currentValue,
2167
+ onChange: function handleChange(newDate) {
2168
+ setCurrentValue(function (prev) {
2169
+ return newDate || prev;
2170
+ });
2171
+ }
2172
+ }))
2173
+ }), /*#__PURE__*/jsx(Modal.Footer, {
2174
+ children: /*#__PURE__*/jsx(Button, {
2175
+ stretch: true,
2176
+ type: "primary",
2177
+ onPress: function handleSubmit() {
2178
+ onChange(currentValue);
2179
+ },
2180
+ children: validateButtonLabel ? /*#__PURE__*/jsx(Text$1, {
2181
+ children: validateButtonLabel
2182
+ }) : /*#__PURE__*/jsx(FormattedMessage, {
2183
+ id: "kitt-universal.ModalDateTimePicker.confirm"
2184
+ })
2185
+ })
2186
+ })]
2187
+ }) : null
2188
+ });
2189
+ }
2190
+
2191
+ var _excluded$9 = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "onChange", "onFocus", "onBlur", "pickerDefaultDate"];
2192
+ function DatePicker(_ref) {
2193
+ var value = _ref.value,
2194
+ pickerUITestID = _ref.pickerUITestID,
2195
+ pickerUITitle = _ref.pickerUITitle,
2196
+ pickerUIValidateButtonLabel = _ref.pickerUIValidateButtonLabel,
2197
+ onChange = _ref.onChange,
2198
+ onFocus = _ref.onFocus,
2199
+ onBlur = _ref.onBlur,
2200
+ pickerDefaultDate = _ref.pickerDefaultDate,
2201
+ props = _objectWithoutProperties(_ref, _excluded$9);
2202
+
2203
+ var _useState = useState(false),
2204
+ _useState2 = _slicedToArray(_useState, 2),
2205
+ isPickerUIVisible = _useState2[0],
2206
+ setIsPickerUIVisible = _useState2[1];
2207
+
2208
+ var _useState3 = useState(false),
2209
+ _useState4 = _slicedToArray(_useState3, 2),
2210
+ isFocused = _useState4[0],
2211
+ setIsFocused = _useState4[1];
2212
+
2213
+ var _useState5 = useState(value),
2214
+ _useState6 = _slicedToArray(_useState5, 2),
2215
+ currentValue = _useState6[0],
2216
+ setCurrentValue = _useState6[1];
2217
+
2218
+ if (Platform.OS === 'android') {
2219
+ return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
2220
+ pickerDefaultDate: pickerDefaultDate,
2221
+ pickerUITestID: pickerUITestID,
2222
+ currentValue: currentValue,
2223
+ setCurrentValue: setCurrentValue,
2224
+ isFocused: isFocused,
2225
+ setIsFocused: setIsFocused,
2226
+ onChange: onChange,
2227
+ onBlur: onBlur
2228
+ }, props));
2229
+ }
2230
+
2231
+ var handleModalClose = function () {
2232
+ if (onBlur) onBlur();
2233
+ setIsPickerUIVisible(false);
2234
+ setIsFocused(false);
2235
+ };
2236
+
2237
+ return /*#__PURE__*/jsxs(Fragment, {
2238
+ children: [/*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
2239
+ handleModalOpen: function handleModalOpen() {
2240
+ if (onFocus) onFocus();
2241
+ setIsPickerUIVisible(true);
2242
+ setIsFocused(true);
2243
+ },
2244
+ currentValue: currentValue,
2245
+ isFocused: isFocused
2246
+ }, props)), /*#__PURE__*/jsx(ModalPlatformDateTimePicker, {
2247
+ testID: pickerUITestID,
2248
+ value: currentValue,
2249
+ isVisible: isPickerUIVisible,
2250
+ title: pickerUITitle,
2251
+ validateButtonLabel: pickerUIValidateButtonLabel,
2252
+ defaultDate: pickerDefaultDate,
2253
+ onClose: handleModalClose,
2254
+ onChange: function handleChange(newDate) {
2255
+ setCurrentValue(newDate);
2256
+ onChange(newDate);
2257
+ handleModalClose();
2258
+ }
2259
+ })]
2260
+ });
2261
+ }
2262
+
2263
+ var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
2264
+ displayName: "InputTextContainer"
2265
+ })(["position:relative;"]);
2266
+
2267
+ var _excluded$8 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
2268
+ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
2269
+ displayName: "InputText__StyledTextInput"
2270
+ })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
2271
+ var theme = _ref.theme,
2272
+ multiline = _ref.multiline;
2273
+
2274
+ if (!multiline && Platform.OS === 'ios') {
2275
+ return theme.kitt.forms.input.padding.iOSSingleLine;
2276
+ }
2277
+
2278
+ return theme.kitt.forms.input.padding["default"];
2279
+ }, function (_ref2) {
2280
+ var theme = _ref2.theme,
2281
+ multiline = _ref2.multiline;
2282
+ if (!multiline && Platform.OS === 'ios') return 0;
2283
+ var typeConfigKey = getTypographyTypeConfigKey(theme);
2284
+ return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
2285
+ }, function (_ref3) {
2286
+ var $minHeight = _ref3.$minHeight;
2287
+ return $minHeight;
2288
+ });
2289
+ var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
2290
+ displayName: "InputText__RightInputContainer"
2291
+ })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
2292
+ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
2293
+ var id = _ref4.id,
2294
+ right = _ref4.right,
2295
+ _ref4$minHeight = _ref4.minHeight,
2296
+ minHeight = _ref4$minHeight === void 0 ? 0 : _ref4$minHeight,
2297
+ formState = _ref4.state,
2298
+ internalForceState = _ref4.internalForceState,
2299
+ _ref4$disabled = _ref4.disabled,
2300
+ disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
2301
+ _ref4$autoCorrect = _ref4.autoCorrect,
2302
+ autoCorrect = _ref4$autoCorrect === void 0 ? true : _ref4$autoCorrect,
2303
+ _ref4$textContentType = _ref4.textContentType,
2304
+ textContentType = _ref4$textContentType === void 0 ? 'none' : _ref4$textContentType,
2305
+ _ref4$autoCompleteTyp = _ref4.autoCompleteType,
2306
+ autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
2307
+ _ref4$keyboardType = _ref4.keyboardType,
2308
+ keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
2309
+ _onFocus = _ref4.onFocus,
2310
+ _onBlur = _ref4.onBlur,
2311
+ props = _objectWithoutProperties(_ref4, _excluded$8);
2312
+
2313
+ var theme = /*#__PURE__*/useTheme();
2314
+
2315
+ var _useState = useState(false),
2316
+ _useState2 = _slicedToArray(_useState, 2),
2317
+ isFocused = _useState2[0],
2318
+ setIsFocused = _useState2[1];
2319
+
2320
+ var state = internalForceState || getInputUIState({
2321
+ isFocused: isFocused,
2322
+ isDisabled: disabled,
2323
+ formState: formState
2324
+ });
2325
+ return /*#__PURE__*/jsxs(InputTextContainer, {
2326
+ $isDisabled: disabled,
2327
+ children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
2328
+ ref: ref,
2329
+ nativeID: id,
2330
+ editable: !disabled,
2331
+ keyboardType: keyboardType,
2332
+ autoCompleteType: autoCompleteType,
2333
+ autoCorrect: autoCorrect,
2334
+ $minHeight: minHeight,
2335
+ textContentType: textContentType,
2336
+ placeholderTextColor: theme.kitt.forms.input.color.placeholder,
2337
+ selectionColor: theme.kitt.forms.input.color.selection
2338
+ }, props), {}, {
2339
+ $state: state,
2340
+ onFocus: function onFocus(e) {
2341
+ setIsFocused(true);
2342
+ if (_onFocus) _onFocus(e);
2343
+ },
2344
+ onBlur: function onBlur(e) {
2345
+ setIsFocused(false);
2346
+ if (_onBlur) _onBlur(e);
2347
+ }
2348
+ })), right ? /*#__PURE__*/jsx(RightInputContainer, {
2349
+ children: right
2350
+ }) : null]
2351
+ });
2352
+ });
2353
+
2354
+ function InputEmail(props) {
2355
+ return /*#__PURE__*/jsx(InputText, _objectSpread({
2356
+ autoCompleteType: "email",
2357
+ keyboardType: "email-address",
2358
+ textContentType: "emailAddress",
2359
+ autoCapitalize: "none"
2360
+ }, props));
2361
+ }
2362
+
2363
+ var getColorFromState = function (state) {
2364
+ switch (state) {
2365
+ case 'invalid':
2366
+ return 'danger';
2367
+
2368
+ case 'valid':
2369
+ default:
2370
+ return 'black-light';
2371
+ }
2372
+ };
2373
+
2374
+ function InputFeedback(_ref) {
2375
+ var state = _ref.state,
2376
+ testID = _ref.testID,
2377
+ children = _ref.children;
2378
+ return /*#__PURE__*/jsx(Typography.Text, {
2379
+ base: "body-small",
2380
+ color: getColorFromState(state),
2381
+ testID: testID,
2382
+ children: children
2383
+ });
2384
+ }
2385
+
2386
+ var FieldContainer = /*#__PURE__*/styled.View.withConfig({
2387
+ displayName: "InputField__FieldContainer"
2388
+ })(["padding:5px 0 10px;"]);
2389
+ var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
2390
+ displayName: "InputField__FeedbackContainer"
2391
+ })(["", ";"], function (_ref) {
2392
+ var theme = _ref.theme;
2393
+ return theme.responsive.ifWindowSizeMatches({
2394
+ minWidth: KittBreakpoints.SMALL
2395
+ }, 'padding-top: 10px', 'padding-top: 5px');
2396
+ });
2397
+ var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
2398
+ displayName: "InputField__FieldLabelContainer"
2399
+ })(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
2400
+ var theme = _ref2.theme;
2401
+ return theme.kitt.forms.inputField.labelContainerPaddingBottom;
2402
+ });
2403
+ var LabelContainer = /*#__PURE__*/styled.View.withConfig({
2404
+ displayName: "InputField__LabelContainer"
2405
+ })(["margin-right:", "px;"], function (_ref3) {
2406
+ var theme = _ref3.theme;
2407
+ return theme.kitt.forms.inputField.iconMarginLeft;
2408
+ });
1941
2409
  function InputField(_ref4) {
1942
2410
  var label = _ref4.label,
1943
2411
  labelFeedback = _ref4.labelFeedback,
@@ -1982,31 +2450,24 @@ function InputIcon(_ref) {
1982
2450
  });
1983
2451
  }
1984
2452
 
1985
- function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1986
-
1987
- function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1988
2453
  function InputPressable(_ref) {
1989
2454
  var props = _extends({}, _ref);
1990
2455
 
1991
- return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
2456
+ return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
1992
2457
  }
1993
2458
 
1994
- var _excluded$8 = ["isPasswordDefaultVisible", "right"];
1995
-
1996
- function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1997
-
1998
- function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2459
+ var _excluded$7 = ["isPasswordDefaultVisible", "right"];
1999
2460
  function InputPassword(_ref) {
2000
2461
  var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
2001
2462
  right = _ref.right,
2002
- props = _objectWithoutProperties(_ref, _excluded$8);
2463
+ props = _objectWithoutProperties(_ref, _excluded$7);
2003
2464
 
2004
2465
  var _useState = useState(Boolean(isPasswordDefaultVisible)),
2005
2466
  _useState2 = _slicedToArray(_useState, 2),
2006
2467
  isVisible = _useState2[0],
2007
2468
  setIsVisible = _useState2[1];
2008
2469
 
2009
- return /*#__PURE__*/jsx(InputText, _objectSpread$d(_objectSpread$d({}, props), {}, {
2470
+ return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
2010
2471
  textContentType: "password",
2011
2472
  autoCompleteType: "password",
2012
2473
  autoCorrect: false,
@@ -2025,11 +2486,8 @@ function InputPassword(_ref) {
2025
2486
  }));
2026
2487
  }
2027
2488
 
2028
- function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2029
-
2030
- function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2031
2489
  function InputPhone(props) {
2032
- return /*#__PURE__*/jsx(InputText, _objectSpread$c(_objectSpread$c({}, props), {}, {
2490
+ return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
2033
2491
  autoCompleteType: "tel",
2034
2492
  keyboardType: "number-pad",
2035
2493
  textContentType: "telephoneNumber"
@@ -2193,14 +2651,11 @@ function Radio(_ref16) {
2193
2651
  });
2194
2652
  }
2195
2653
 
2196
- function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2197
-
2198
- function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2199
2654
  function TextArea(_ref) {
2200
2655
  var props = _extends({}, _ref);
2201
2656
 
2202
2657
  var theme = /*#__PURE__*/useTheme();
2203
- return /*#__PURE__*/jsx(InputText, _objectSpread$b({
2658
+ return /*#__PURE__*/jsx(InputText, _objectSpread({
2204
2659
  multiline: true,
2205
2660
  textAlignVertical: "top",
2206
2661
  minHeight: theme.kitt.forms.textArea.minHeight
@@ -2353,282 +2808,77 @@ function FullScreenModalHeader(_ref6) {
2353
2808
  var Container$3 = /*#__PURE__*/styled.View.withConfig({
2354
2809
  displayName: "FullScreenModal__Container"
2355
2810
  })(["flex:1;background-color:", ";"], function (_ref) {
2356
- var theme = _ref.theme;
2357
- return theme.kitt.colors.uiBackground;
2358
- });
2359
- function FullScreenModal(_ref2) {
2360
- var children = _ref2.children;
2361
- return /*#__PURE__*/jsx(Container$3, {
2362
- children: children
2363
- });
2364
- }
2365
- FullScreenModal.Header = FullScreenModalHeader;
2366
- FullScreenModal.Body = FullScreenModalBody;
2367
-
2368
- var _excluded$7 = ["as", "children"];
2369
-
2370
- function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2371
-
2372
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2373
- function StyleWebWrapper(_ref) {
2374
- var as = _ref.as,
2375
- children = _ref.children,
2376
- props = _objectWithoutProperties(_ref, _excluded$7);
2377
-
2378
- if (Platform.OS !== 'web') return children;
2379
- // as or default to div. If as is undefined, T is div but typescript is not sure
2380
- return /*#__PURE__*/jsx(as || 'div', _objectSpread$a(_objectSpread$a({}, props), {}, {
2381
- children: children
2382
- }));
2383
- }
2384
-
2385
- var _excluded$6 = ["color", "disabled"];
2386
-
2387
- function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2388
-
2389
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2390
- var PressableIconButtonWebWrapper = undefined;
2391
- var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
2392
- displayName: "PressableIconButton__StyledPressableIconButton"
2393
- })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref) {
2394
- var theme = _ref.theme;
2395
- return theme.kitt.iconButton.borderRadius;
2396
- }, function (_ref2) {
2397
- var theme = _ref2.theme;
2398
- return theme.kitt.iconButton.width;
2399
- }, function (_ref3) {
2400
- var theme = _ref3.theme;
2401
- return theme.kitt.iconButton.height;
2402
- }, function (_ref4) {
2403
- var theme = _ref4.theme,
2404
- disabled = _ref4.disabled;
2405
- var iconButton = theme.kitt.iconButton;
2406
-
2407
- if (Platform.OS !== 'web') {
2408
- return undefined;
2409
- }
2410
-
2411
- var transition = iconButton.transition;
2412
-
2413
- if (disabled) {
2414
- return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
2415
- }
2416
-
2417
- return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
2418
- });
2419
- function PressableIconButton(_ref5) {
2420
- var color = _ref5.color,
2421
- disabled = _ref5.disabled,
2422
- props = _objectWithoutProperties(_ref5, _excluded$6);
2423
-
2424
- return /*#__PURE__*/jsx(StyleWebWrapper, {
2425
- as: PressableIconButtonWebWrapper,
2426
- $isWhite: color === 'white',
2427
- $isDisabled: Boolean(disabled),
2428
- children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$9(_objectSpread$9({}, props), {}, {
2429
- disabled: disabled
2430
- }))
2431
- });
2432
- }
2433
-
2434
- var AnimatedIconButtonBackground = /*#__PURE__*/styled(Animated$1.View).withConfig({
2435
- displayName: "PressableAnimatedContainer__AnimatedIconButtonBackground"
2436
- })(["background-color:", ";border-radius:", "px;width:", "px;height:", "px;position:absolute;bottom:0;left:0;"], function (_ref) {
2437
- var theme = _ref.theme,
2438
- color = _ref.color,
2439
- disabled = _ref.disabled;
2440
- var iconButton = theme.kitt.iconButton;
2441
- if (disabled) return iconButton.disabled.backgroundColor;
2442
- if (color === 'white') return iconButton.white.pressedBackgroundColor;
2443
- return iconButton["default"].pressedBackgroundColor;
2444
- }, function (_ref2) {
2445
- var theme = _ref2.theme;
2446
- return theme.kitt.iconButton.borderRadius;
2447
- }, function (_ref3) {
2448
- var theme = _ref3.theme;
2449
- return theme.kitt.iconButton.width;
2450
- }, function (_ref4) {
2451
- var theme = _ref4.theme;
2452
- return theme.kitt.iconButton.height;
2453
- });
2454
- var AnimatedViewContainer = /*#__PURE__*/styled(Animated$1.View).withConfig({
2455
- displayName: "PressableAnimatedContainer__AnimatedViewContainer"
2456
- })(["position:relative;align-items:center;justify-content:center;width:100%;height:100%;"]);
2457
- function PressableAnimatedContainer(_ref5) {
2458
- var disabled = _ref5.disabled,
2459
- _ref5$color = _ref5.color,
2460
- color = _ref5$color === void 0 ? 'black' : _ref5$color,
2461
- testID = _ref5.testID,
2462
- _ref5$accessibilityRo = _ref5.accessibilityRole,
2463
- accessibilityRole = _ref5$accessibilityRo === void 0 ? 'button' : _ref5$accessibilityRo,
2464
- accessibilityLabel = _ref5.accessibilityLabel,
2465
- children = _ref5.children,
2466
- onPress = _ref5.onPress;
2467
- var theme = /*#__PURE__*/useTheme();
2468
- var pressed = useSharedValue(false);
2469
- var opacityStyles = useAnimatedStyle(function () {
2470
- var _f = function () {
2471
- return {
2472
- opacity: withSpring(pressed.value ? 1 : 0)
2473
- };
2474
- };
2475
-
2476
- _f._closure = {
2477
- withSpring: withSpring,
2478
- pressed: pressed
2479
- };
2480
- _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
2481
- _f.__workletHash = 10645190329247;
2482
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:41)";
2483
- _f.__optimalization = 2;
2484
-
2485
- global.__reanimatedWorkletInit(_f);
2486
-
2487
- return _f;
2488
- }());
2489
- var scaleStyles = useAnimatedStyle(function () {
2490
- var _f = function () {
2491
- return {
2492
- transform: [{
2493
- scale: withSpring(pressed.value ? theme.kitt.iconButton.scale.base.active : theme.kitt.iconButton.scale.base["default"])
2494
- }]
2495
- };
2496
- };
2497
-
2498
- _f._closure = {
2499
- withSpring: withSpring,
2500
- pressed: pressed,
2501
- theme: {
2502
- kitt: {
2503
- iconButton: {
2504
- scale: {
2505
- base: {
2506
- active: theme.kitt.iconButton.scale.base.active,
2507
- "default": theme.kitt.iconButton.scale.base["default"]
2508
- }
2509
- }
2510
- }
2511
- }
2512
- }
2513
- };
2514
- _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
2515
- _f.__workletHash = 13861998831411;
2516
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (66:39)";
2517
- _f.__optimalization = 2;
2518
-
2519
- global.__reanimatedWorkletInit(_f);
2520
-
2521
- return _f;
2522
- }());
2523
- return /*#__PURE__*/jsx(PressableIconButton, {
2524
- accessibilityRole: accessibilityRole,
2525
- disabled: disabled,
2526
- color: color,
2527
- testID: testID,
2528
- accessibilityLabel: accessibilityLabel,
2529
- onPress: onPress,
2530
- onPressIn: function onPressIn() {
2531
- pressed.value = true;
2532
- },
2533
- onPressOut: function onPressOut() {
2534
- pressed.value = false;
2535
- },
2536
- children: /*#__PURE__*/jsxs(AnimatedViewContainer, {
2537
- style: disabled ? [{
2538
- transform: [{
2539
- scale: 1
2540
- }]
2541
- }] : [scaleStyles],
2542
- children: [/*#__PURE__*/jsx(AnimatedIconButtonBackground, {
2543
- disabled: disabled,
2544
- color: color,
2545
- style: disabled ? [{
2546
- opacity: 1
2547
- }] : [opacityStyles]
2548
- }), children]
2549
- })
2550
- });
2551
- }
2552
-
2553
- var IconButtonContentBorder = /*#__PURE__*/styled.View.withConfig({
2554
- displayName: "IconButton__IconButtonContentBorder"
2555
- })(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
2556
- var theme = _ref.theme;
2557
- return "".concat(theme.kitt.iconButton.borderWidth, "px solid");
2558
- }, function (_ref2) {
2559
- var theme = _ref2.theme,
2560
- disabled = _ref2.disabled;
2561
- return disabled ? theme.kitt.iconButton.disabled.borderColor : theme.kitt.iconButton.borderColor;
2562
- }, function (_ref3) {
2563
- var theme = _ref3.theme;
2564
- return theme.kitt.iconButton.width - theme.kitt.iconButton.borderWidth;
2565
- }, function (_ref4) {
2566
- var theme = _ref4.theme;
2567
- return theme.kitt.iconButton.height - theme.kitt.iconButton.borderWidth;
2568
- }, function (_ref5) {
2569
- var theme = _ref5.theme;
2570
- return theme.kitt.iconButton.borderRadius;
2811
+ var theme = _ref.theme;
2812
+ return theme.kitt.colors.uiBackground;
2571
2813
  });
2572
-
2573
- function IconButtonContent(_ref6) {
2574
- var disabled = _ref6.disabled,
2575
- color = _ref6.color,
2576
- icon = _ref6.icon;
2577
- return /*#__PURE__*/jsx(IconButtonContentBorder, {
2578
- disabled: disabled,
2579
- children: /*#__PURE__*/jsx(TypographyIcon, {
2580
- color: disabled ? 'black-light' : color,
2581
- icon: icon
2582
- })
2814
+ function FullScreenModal(_ref2) {
2815
+ var children = _ref2.children;
2816
+ return /*#__PURE__*/jsx(Container$3, {
2817
+ children: children
2583
2818
  });
2584
2819
  }
2820
+ FullScreenModal.Header = FullScreenModalHeader;
2821
+ FullScreenModal.Body = FullScreenModalBody;
2585
2822
 
2586
- function IconButton(_ref7) {
2587
- var icon = _ref7.icon,
2588
- color = _ref7.color,
2589
- disabled = _ref7.disabled,
2590
- testID = _ref7.testID,
2591
- accessibilityLabel = _ref7.accessibilityLabel,
2592
- accessibilityRole = _ref7.accessibilityRole,
2593
- onPress = _ref7.onPress;
2594
- return /*#__PURE__*/jsx(PressableAnimatedContainer, {
2595
- color: color,
2596
- disabled: disabled,
2597
- testID: testID,
2598
- accessibilityLabel: accessibilityLabel,
2599
- accessibilityRole: accessibilityRole,
2600
- onPress: onPress,
2601
- children: /*#__PURE__*/jsx(IconButtonContent, {
2602
- disabled: disabled,
2603
- color: color,
2604
- icon: icon
2823
+ function SpinningIcon(_ref) {
2824
+ var icon = _ref.icon,
2825
+ _ref$size = _ref.size,
2826
+ size = _ref$size === void 0 ? defaultIconSize : _ref$size,
2827
+ align = _ref.align,
2828
+ color = _ref.color;
2829
+ var clonedIcon = /*#__PURE__*/cloneElement(icon, {
2830
+ color: color
2831
+ });
2832
+ var animationRef = useRef(new Animated$1.Value(0));
2833
+ var rotation = animationRef.current.interpolate({
2834
+ inputRange: [0, 1],
2835
+ outputRange: ['0deg', '360deg']
2836
+ });
2837
+ useEffect(function () {
2838
+ if (process.env.NODE_ENV === 'test') return undefined;
2839
+ var animation = Animated$1.loop(Animated$1.timing(animationRef.current, {
2840
+ toValue: 1,
2841
+ duration: 1100,
2842
+ easing: Easing.linear,
2843
+ useNativeDriver: true
2844
+ }));
2845
+ animation.start();
2846
+ return function () {
2847
+ if (process.env.NODE_ENV === 'test') return undefined;
2848
+ animation.stop();
2849
+ return undefined;
2850
+ };
2851
+ }, []);
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
2605
2863
  })
2606
2864
  });
2607
2865
  }
2608
2866
 
2609
- var _excluded$5 = ["children"];
2610
-
2611
- function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2612
-
2613
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2614
- var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
2867
+ var _excluded$6 = ["children"];
2868
+ var ContentView = /*#__PURE__*/styled.View.withConfig({
2615
2869
  displayName: "ListItemContent__ContentView"
2616
2870
  })(["flex:1 0 0%;align-self:center;"]);
2617
2871
  function ListItemContent(_ref) {
2618
2872
  var children = _ref.children,
2619
- rest = _objectWithoutProperties(_ref, _excluded$5);
2873
+ rest = _objectWithoutProperties(_ref, _excluded$6);
2620
2874
 
2621
- return /*#__PURE__*/jsx(ContentView$1, _objectSpread$8(_objectSpread$8({}, rest), {}, {
2875
+ return /*#__PURE__*/jsx(ContentView, _objectSpread(_objectSpread({}, rest), {}, {
2622
2876
  children: children
2623
2877
  }));
2624
2878
  }
2625
2879
 
2626
- var _excluded$4 = ["children", "side"],
2627
- _excluded2$1 = ["children", "align"];
2628
-
2629
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2630
-
2631
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2880
+ var _excluded$5 = ["children", "side"],
2881
+ _excluded2$2 = ["children", "align"];
2632
2882
  var SideContainerView = /*#__PURE__*/styled.View.withConfig({
2633
2883
  displayName: "ListItemSideContent__SideContainerView"
2634
2884
  })(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
@@ -2645,9 +2895,9 @@ function ListItemSideContainer(_ref3) {
2645
2895
  var children = _ref3.children,
2646
2896
  _ref3$side = _ref3.side,
2647
2897
  side = _ref3$side === void 0 ? 'left' : _ref3$side,
2648
- rest = _objectWithoutProperties(_ref3, _excluded$4);
2898
+ rest = _objectWithoutProperties(_ref3, _excluded$5);
2649
2899
 
2650
- return /*#__PURE__*/jsx(SideContainerView, _objectSpread$7(_objectSpread$7({
2900
+ return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
2651
2901
  side: side
2652
2902
  }, rest), {}, {
2653
2903
  children: children
@@ -2663,20 +2913,16 @@ function ListItemSideContent(_ref5) {
2663
2913
  var children = _ref5.children,
2664
2914
  _ref5$align = _ref5.align,
2665
2915
  align = _ref5$align === void 0 ? 'auto' : _ref5$align,
2666
- rest = _objectWithoutProperties(_ref5, _excluded2$1);
2916
+ rest = _objectWithoutProperties(_ref5, _excluded2$2);
2667
2917
 
2668
- return /*#__PURE__*/jsx(SideContentView, _objectSpread$7(_objectSpread$7({
2918
+ return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
2669
2919
  align: align
2670
2920
  }, rest), {}, {
2671
2921
  children: children
2672
2922
  }));
2673
2923
  }
2674
2924
 
2675
- var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2676
-
2677
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2678
-
2679
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2925
+ var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
2680
2926
  var ContainerView = /*#__PURE__*/styled.View.withConfig({
2681
2927
  displayName: "ListItem__ContainerView"
2682
2928
  })(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
@@ -2715,16 +2961,16 @@ function ListItem(_ref5) {
2715
2961
  left = _ref5.left,
2716
2962
  right = _ref5.right,
2717
2963
  onPress = _ref5.onPress,
2718
- rest = _objectWithoutProperties(_ref5, _excluded$3);
2964
+ rest = _objectWithoutProperties(_ref5, _excluded$4);
2719
2965
 
2720
- var Wrapper = onPress ? Pressable : Fragment;
2721
- var wrapperProps = onPress ? _objectSpread$6({
2966
+ var Wrapper = onPress ? Pressable : Fragment$1;
2967
+ var wrapperProps = onPress ? _objectSpread({
2722
2968
  accessibilityRole: 'button',
2723
2969
  onPress: onPress
2724
2970
  }, rest) : undefined;
2725
2971
  var containerProps = onPress ? undefined : rest;
2726
- return /*#__PURE__*/jsx(Wrapper, _objectSpread$6(_objectSpread$6({}, wrapperProps), {}, {
2727
- children: /*#__PURE__*/jsxs(ContainerView, _objectSpread$6(_objectSpread$6({
2972
+ return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
2973
+ children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
2728
2974
  withPadding: withPadding,
2729
2975
  borders: borders
2730
2976
  }, containerProps), {}, {
@@ -2749,11 +2995,12 @@ function getActivityIndicatorSize(size) {
2749
2995
  return size < 36 ? 'small' : 'large';
2750
2996
  }
2751
2997
 
2998
+ var defaultLoaderSize = defaultIconSize;
2752
2999
  function Loader(_ref) {
2753
3000
  var _ref$color = _ref.color,
2754
3001
  color = _ref$color === void 0 ? 'primary' : _ref$color,
2755
3002
  _ref$size = _ref.size,
2756
- size = _ref$size === void 0 ? 20 : _ref$size;
3003
+ size = _ref$size === void 0 ? defaultLoaderSize : _ref$size;
2757
3004
  var theme = /*#__PURE__*/useTheme();
2758
3005
  var colorHex = theme.kitt.typography.colors[color];
2759
3006
  return /*#__PURE__*/jsx(ActivityIndicator, {
@@ -2923,159 +3170,6 @@ function Message(_ref) {
2923
3170
  });
2924
3171
  }
2925
3172
 
2926
- function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2927
-
2928
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2929
- // Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
2930
- var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
2931
- displayName: "Overlay__OverlayPressable"
2932
- })(function (_ref) {
2933
- var theme = _ref.theme;
2934
- return _objectSpread$5(_objectSpread$5({}, StyleSheet.absoluteFillObject), {}, {
2935
- backgroundColor: theme.kitt.colors.overlay.dark
2936
- });
2937
- });
2938
- function Overlay(_ref2) {
2939
- var onPress = _ref2.onPress;
2940
- return /*#__PURE__*/jsx(OverlayPressable, {
2941
- accessibilityRole: "none",
2942
- onPress: onPress,
2943
- children: /*#__PURE__*/jsx(View, {})
2944
- });
2945
- }
2946
-
2947
- var BodyView = /*#__PURE__*/styled.View.withConfig({
2948
- displayName: "Body__BodyView"
2949
- })(["padding:", "px ", "px;"], function (_ref) {
2950
- var theme = _ref.theme;
2951
- return theme.kitt.spacing * 6;
2952
- }, function (_ref2) {
2953
- var theme = _ref2.theme;
2954
- return theme.kitt.spacing * 4;
2955
- });
2956
- function ModalBody(_ref3) {
2957
- var children = _ref3.children;
2958
- return /*#__PURE__*/jsx(ScrollView, {
2959
- children: /*#__PURE__*/jsx(BodyView, {
2960
- children: children
2961
- })
2962
- });
2963
- }
2964
-
2965
- var FooterView = /*#__PURE__*/styled.View.withConfig({
2966
- displayName: "Footer__FooterView"
2967
- })(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
2968
- var theme = _ref.theme;
2969
- return theme.kitt.spacing * 4;
2970
- }, function (_ref2) {
2971
- var theme = _ref2.theme;
2972
- return theme.kitt.colors.separator;
2973
- });
2974
- function ModalFooter(_ref3) {
2975
- var children = _ref3.children;
2976
- return /*#__PURE__*/jsx(FooterView, {
2977
- children: children
2978
- });
2979
- }
2980
-
2981
- var OnCloseContext = /*#__PURE__*/createContext(function () {});
2982
-
2983
- var HeaderView = /*#__PURE__*/styled.View.withConfig({
2984
- displayName: "Header__HeaderView"
2985
- })(["position:relative;padding:", "px;display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-bottom-color:", ";min-height:57px;"], function (_ref) {
2986
- var theme = _ref.theme;
2987
- return theme.kitt.spacing * 2;
2988
- }, function (_ref2) {
2989
- var theme = _ref2.theme;
2990
- return theme.kitt.colors.separator;
2991
- });
2992
- var LeftIconView = /*#__PURE__*/styled.View.withConfig({
2993
- displayName: "Header__LeftIconView"
2994
- })(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
2995
- var theme = _ref3.theme;
2996
- return theme.kitt.spacing * 2;
2997
- });
2998
- var RightIconView = /*#__PURE__*/styled.View.withConfig({
2999
- displayName: "Header__RightIconView"
3000
- })(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
3001
- var theme = _ref4.theme;
3002
- return theme.kitt.spacing * 2;
3003
- });
3004
- var TitleView = /*#__PURE__*/styled.View.withConfig({
3005
- displayName: "Header__TitleView"
3006
- })(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
3007
- var theme = _ref5.theme,
3008
- isIconLeft = _ref5.isIconLeft;
3009
- return isIconLeft ? 0 : theme.kitt.spacing * 2;
3010
- });
3011
- function ModalHeader(_ref6) {
3012
- var left = _ref6.left,
3013
- right = _ref6.right,
3014
- children = _ref6.children;
3015
- var onClose = useContext(OnCloseContext);
3016
- var isIconLeft = !!left;
3017
- return /*#__PURE__*/jsxs(HeaderView, {
3018
- children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
3019
- children: left
3020
- }), /*#__PURE__*/jsx(TitleView, {
3021
- isIconLeft: isIconLeft,
3022
- children: children
3023
- }), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
3024
- children: /*#__PURE__*/jsx(IconButton, {
3025
- icon: /*#__PURE__*/jsx(XIcon, {}),
3026
- onPress: onClose
3027
- })
3028
- })]
3029
- });
3030
- }
3031
-
3032
- var ModalView = /*#__PURE__*/styled.View.withConfig({
3033
- displayName: "Modal__ModalView"
3034
- })(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
3035
- var theme = _ref.theme;
3036
- return theme.kitt.spacing * 20;
3037
- }, function (_ref2) {
3038
- var theme = _ref2.theme;
3039
- return theme.kitt.spacing * 4;
3040
- });
3041
- var ContentView = /*#__PURE__*/styled.View.withConfig({
3042
- displayName: "Modal__ContentView"
3043
- })(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
3044
- var theme = _ref3.theme;
3045
- return theme.kitt.card.borderRadius;
3046
- }, function (_ref4) {
3047
- var theme = _ref4.theme;
3048
- return theme.kitt.colors.uiBackgroundLight;
3049
- });
3050
- function Modal(_ref5) {
3051
- var visible = _ref5.visible,
3052
- children = _ref5.children,
3053
- onClose = _ref5.onClose,
3054
- onEntered = _ref5.onEntered,
3055
- onExited = _ref5.onExited;
3056
- return /*#__PURE__*/jsx(OnCloseContext.Provider, {
3057
- value: onClose,
3058
- children: /*#__PURE__*/jsx(Modal$1, {
3059
- transparent: true,
3060
- animationType: "fade",
3061
- visible: visible,
3062
- onShow: onEntered,
3063
- onDismiss: onExited,
3064
- onRequestClose: onClose,
3065
- children: /*#__PURE__*/jsxs(ModalView, {
3066
- children: [/*#__PURE__*/jsx(Overlay, {
3067
- onPress: onClose
3068
- }), /*#__PURE__*/jsx(ContentView, {
3069
- children: children
3070
- })]
3071
- })
3072
- })
3073
- });
3074
- }
3075
- Modal.Header = ModalHeader;
3076
- Modal.Body = ModalBody;
3077
- Modal.Footer = ModalFooter;
3078
-
3079
3173
  function Notification(_ref) {
3080
3174
  var type = _ref.type,
3081
3175
  children = _ref.children,
@@ -3109,7 +3203,7 @@ var Container$2 = /*#__PURE__*/styled.View.withConfig({
3109
3203
  var theme = _ref2.theme;
3110
3204
  return theme.kitt.skeleton.flareColor;
3111
3205
  });
3112
- var AnimatedLinearGradient = Animated$1.createAnimatedComponent(LinearGradient);
3206
+ var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
3113
3207
  function SkeletonContent(_ref3) {
3114
3208
  var isLoading = _ref3.isLoading,
3115
3209
  width = _ref3.width;
@@ -3394,13 +3488,9 @@ function Story(_ref) {
3394
3488
  });
3395
3489
  }
3396
3490
 
3397
- var _excluded$2 = ["title", "children", "internalIsDemoSection"],
3398
- _excluded2 = ["title", "children"],
3491
+ var _excluded$3 = ["title", "children", "internalIsDemoSection"],
3492
+ _excluded2$1 = ["title", "children"],
3399
3493
  _excluded3 = ["title", "children"];
3400
-
3401
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3402
-
3403
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3404
3494
  var StyledSection = /*#__PURE__*/styled.View.withConfig({
3405
3495
  displayName: "StorySection__StyledSection"
3406
3496
  })(["margin-bottom:32px;"]);
@@ -3408,10 +3498,10 @@ function StorySection(_ref) {
3408
3498
  var title = _ref.title,
3409
3499
  children = _ref.children,
3410
3500
  internalIsDemoSection = _ref.internalIsDemoSection,
3411
- props = _objectWithoutProperties(_ref, _excluded$2);
3501
+ props = _objectWithoutProperties(_ref, _excluded$3);
3412
3502
 
3413
3503
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
3414
- return /*#__PURE__*/jsxs(StyledSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3504
+ return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
3415
3505
  children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
3416
3506
  children: title
3417
3507
  }), children]
@@ -3424,9 +3514,9 @@ var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
3424
3514
  function SubSection(_ref2) {
3425
3515
  var title = _ref2.title,
3426
3516
  children = _ref2.children,
3427
- props = _objectWithoutProperties(_ref2, _excluded2);
3517
+ props = _objectWithoutProperties(_ref2, _excluded2$1);
3428
3518
 
3429
- return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3519
+ return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
3430
3520
  children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
3431
3521
  children: title
3432
3522
  }), children]
@@ -3442,7 +3532,7 @@ function BlockSection(_ref3) {
3442
3532
  children = _ref3.children,
3443
3533
  props = _objectWithoutProperties(_ref3, _excluded3);
3444
3534
 
3445
- return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$4(_objectSpread$4({}, props), {}, {
3535
+ return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread(_objectSpread({}, props), {}, {
3446
3536
  children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
3447
3537
  children: title
3448
3538
  }), children]
@@ -3556,7 +3646,7 @@ function StoryGridCol(_ref2) {
3556
3646
  return null;
3557
3647
  }
3558
3648
 
3559
- return /*#__PURE__*/jsxs(Fragment$1, {
3649
+ return /*#__PURE__*/jsxs(Fragment, {
3560
3650
  children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
3561
3651
  numberOfLines: 1,
3562
3652
  color: titleColor,
@@ -3665,7 +3755,7 @@ function ModalDateTimePicker(_ref2) {
3665
3755
  setCurrentValue(value);
3666
3756
  onClose();
3667
3757
  },
3668
- children: visible ? /*#__PURE__*/jsxs(Fragment$1, {
3758
+ children: visible ? /*#__PURE__*/jsxs(Fragment, {
3669
3759
  children: [title ? /*#__PURE__*/jsx(Title, {
3670
3760
  children: title
3671
3761
  }) : null, /*#__PURE__*/jsx(Modal.Body, {
@@ -3792,9 +3882,6 @@ function TimePicker(_ref) {
3792
3882
  });
3793
3883
  }
3794
3884
 
3795
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3796
-
3797
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3798
3885
  var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
3799
3886
  displayName: "TooltipView__StyledTooltipView"
3800
3887
  })(["align-items:center;"]);
@@ -3816,7 +3903,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
3816
3903
 
3817
3904
  function ArrowView(props) {
3818
3905
  var theme = /*#__PURE__*/useTheme();
3819
- return /*#__PURE__*/jsx(View, _objectSpread$3(_objectSpread$3({}, props), {}, {
3906
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
3820
3907
  children: /*#__PURE__*/jsx(TooltipArrowIcon, {
3821
3908
  color: theme.kitt.tooltip.backgroundColor
3822
3909
  })
@@ -3852,9 +3939,6 @@ function TooltipView(_ref7) {
3852
3939
 
3853
3940
  var tooltipDefaultPosition = 'top';
3854
3941
 
3855
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3856
-
3857
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3858
3942
  // Since the tooltip use absolute positionning, we need a parent to provide the relative root
3859
3943
  var TooltipContainer = /*#__PURE__*/styled.View.withConfig({
3860
3944
  displayName: "Tooltip__TooltipContainer"
@@ -3941,12 +4025,12 @@ function Tooltip(_ref) {
3941
4025
  ref: floating,
3942
4026
  accessibilityElementsHidden: !pressed.value,
3943
4027
  importantForAccessibility: pressed.value === true ? 'auto' : 'no-hide-descendants',
3944
- style: _objectSpread$2(_objectSpread$2({}, StyleSheet.absoluteFillObject), {}, {
4028
+ style: _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
3945
4029
  top: y && position === 'bottom' ? y : undefined,
3946
4030
  bottom: y && position === 'top' ? y : undefined,
3947
4031
  left: x !== null && x !== void 0 ? x : 0
3948
4032
  }),
3949
- children: /*#__PURE__*/jsx(Animated$1.View, {
4033
+ children: /*#__PURE__*/jsx(Animated.View, {
3950
4034
  style: [opacityStyles],
3951
4035
  children: /*#__PURE__*/jsx(TooltipView, {
3952
4036
  position: position,
@@ -3984,11 +4068,7 @@ function TypographyEmoji(_ref2) {
3984
4068
  });
3985
4069
  }
3986
4070
 
3987
- var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
3988
-
3989
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3990
-
3991
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4071
+ var _excluded$2 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
3992
4072
  var TypographyLinkWebWrapper = undefined;
3993
4073
  var StyledLink = /*#__PURE__*/styled.Text.withConfig({
3994
4074
  displayName: "TypographyLink__StyledLink"
@@ -4012,9 +4092,9 @@ function TypographyLink(_ref4) {
4012
4092
  href = _ref4.href,
4013
4093
  hrefAttrs = _ref4.hrefAttrs,
4014
4094
  onPress = _ref4.onPress,
4015
- otherProps = _objectWithoutProperties(_ref4, _excluded$1);
4095
+ otherProps = _objectWithoutProperties(_ref4, _excluded$2);
4016
4096
 
4017
- return /*#__PURE__*/jsx(Typography, _objectSpread$1(_objectSpread$1({}, otherProps), {}, {
4097
+ return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
4018
4098
  accessibilityRole: "none",
4019
4099
  children: /*#__PURE__*/jsx(StyleWebWrapper, {
4020
4100
  as: TypographyLinkWebWrapper,
@@ -4036,6 +4116,39 @@ function TypographyLink(_ref4) {
4036
4116
  }));
4037
4117
  }
4038
4118
 
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
+
4039
4152
  var hex2rgba = function (hex) {
4040
4153
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4041
4154
  var r = parseInt(hex.slice(1, 3), 16);
@@ -4074,9 +4187,6 @@ function MatchWindowSize(_ref) {
4074
4187
  return children;
4075
4188
  }
4076
4189
 
4077
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4078
-
4079
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4080
4190
  // type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
4081
4191
  // type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
4082
4192
  // export function withTheme<Props extends { theme: DefaultTheme }, C>(
@@ -4098,5 +4208,5 @@ function withTheme(WrappedComponent) {
4098
4208
  });
4099
4209
  }
4100
4210
 
4101
- 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, 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 };
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 };
4102
4212
  //# sourceMappingURL=index-browser-all.es.android.js.map