@ornikar/kitt-universal 32.1.1-canary.28d1f9f68cb643b8c67559f72df59006a88da1e9.0 → 32.3.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 (51) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +1 -2
  3. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
  4. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
  5. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
  6. package/dist/definitions/Choices/ChoiceItem.d.ts +1 -2
  7. package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
  8. package/dist/definitions/Choices/ChoiceItemContainer.d.ts +1 -2
  9. package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
  10. package/dist/definitions/Choices/Choices.d.ts +5 -5
  11. package/dist/definitions/Choices/Choices.d.ts.map +1 -1
  12. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  13. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
  14. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  15. package/dist/index-metro.es.android.js +40 -69
  16. package/dist/index-metro.es.android.js.map +1 -1
  17. package/dist/index-metro.es.ios.js +40 -69
  18. package/dist/index-metro.es.ios.js.map +1 -1
  19. package/dist/index-node-22.17.cjs.js +38 -70
  20. package/dist/index-node-22.17.cjs.js.map +1 -1
  21. package/dist/index-node-22.17.cjs.web.css +38 -8
  22. package/dist/index-node-22.17.cjs.web.js +103 -128
  23. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  24. package/dist/index-node-22.17.es.mjs +39 -71
  25. package/dist/index-node-22.17.es.mjs.map +1 -1
  26. package/dist/index-node-22.17.es.web.css +38 -8
  27. package/dist/index-node-22.17.es.web.mjs +104 -129
  28. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  29. package/dist/index.es.js +40 -72
  30. package/dist/index.es.js.map +1 -1
  31. package/dist/index.es.web.js +103 -128
  32. package/dist/index.es.web.js.map +1 -1
  33. package/dist/linaria-themes-metro.es.android.js +30 -34
  34. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  35. package/dist/linaria-themes-metro.es.ios.js +30 -34
  36. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  37. package/dist/linaria-themes-node-22.17.cjs.js +30 -34
  38. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  39. package/dist/linaria-themes-node-22.17.cjs.web.js +30 -34
  40. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.es.mjs +30 -34
  42. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  43. package/dist/linaria-themes-node-22.17.es.web.mjs +30 -34
  44. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  45. package/dist/linaria-themes.es.js +30 -34
  46. package/dist/linaria-themes.es.js.map +1 -1
  47. package/dist/linaria-themes.es.web.js +30 -34
  48. package/dist/linaria-themes.es.web.js.map +1 -1
  49. package/dist/styles.css +38 -8
  50. package/dist/tsbuildinfo +1 -1
  51. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -8,7 +8,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
8
  import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
9
9
  import _extends from '@babel/runtime/helpers/extends';
10
10
  import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
11
- import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions, ScrollView as ScrollView$2, PixelRatio } from 'react-native';
11
+ import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions, PixelRatio } from 'react-native';
12
12
  export { useWindowDimensions as useWindowSize } from 'react-native';
13
13
  import _typeof from '@babel/runtime/helpers/typeof';
14
14
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
@@ -875,15 +875,15 @@ var card = {
875
875
  }
876
876
  };
877
877
 
878
- var webAnimationContentDuration$2 = 400;
879
- var webAnimationContentEasing$2 = {
878
+ var webAnimationContentDuration$1 = 400;
879
+ var webAnimationContentEasing$1 = {
880
880
  x1: 0.77,
881
881
  y1: 0,
882
882
  x2: 0.175,
883
883
  y2: 1
884
884
  };
885
- var webAnimationOverlayDuration$2 = 250;
886
- var webAnimationOverlayEasing$2 = {
885
+ var webAnimationOverlayDuration$1 = 250;
886
+ var webAnimationOverlayEasing$1 = {
887
887
  x1: 0.42,
888
888
  y1: 0,
889
889
  x2: 1,
@@ -918,12 +918,12 @@ var cardModal = {
918
918
  },
919
919
  animation: {
920
920
  overlay: {
921
- duration: webAnimationOverlayDuration$2,
922
- easing: webAnimationOverlayEasing$2
921
+ duration: webAnimationOverlayDuration$1,
922
+ easing: webAnimationOverlayEasing$1
923
923
  },
924
924
  content: {
925
- duration: webAnimationContentDuration$2,
926
- easing: webAnimationContentEasing$2
925
+ duration: webAnimationContentDuration$1,
926
+ easing: webAnimationContentEasing$1
927
927
  }
928
928
  }
929
929
  };
@@ -979,15 +979,15 @@ var choices = {
979
979
  }
980
980
  };
981
981
 
982
- var webAnimationContentDuration$1 = 400;
983
- var webAnimationContentEasing$1 = {
982
+ var webAnimationContentDuration = 400;
983
+ var webAnimationContentEasing = {
984
984
  x1: 0.77,
985
985
  y1: 0,
986
986
  x2: 0.175,
987
987
  y2: 1
988
988
  };
989
- var webAnimationOverlayDuration$1 = 250;
990
- var webAnimationOverlayEasing$1 = {
989
+ var webAnimationOverlayDuration = 250;
990
+ var webAnimationOverlayEasing = {
991
991
  x1: 0.42,
992
992
  y1: 0,
993
993
  x2: 1,
@@ -1009,12 +1009,12 @@ var dialogModal = {
1009
1009
  },
1010
1010
  animation: {
1011
1011
  overlay: {
1012
- duration: webAnimationOverlayDuration$1,
1013
- easing: webAnimationOverlayEasing$1
1012
+ duration: webAnimationOverlayDuration,
1013
+ easing: webAnimationOverlayEasing
1014
1014
  },
1015
1015
  content: {
1016
- duration: webAnimationContentDuration$1,
1017
- easing: webAnimationContentEasing$1
1016
+ duration: webAnimationContentDuration,
1017
+ easing: webAnimationContentEasing
1018
1018
  }
1019
1019
  }
1020
1020
  };
@@ -1923,20 +1923,6 @@ var forms = {
1923
1923
  timePicker: timePicker
1924
1924
  };
1925
1925
 
1926
- var webAnimationContentDuration = 600;
1927
- var webAnimationContentEasing = {
1928
- x1: 0.77,
1929
- y1: 0,
1930
- x2: 0.175,
1931
- y2: 1
1932
- };
1933
- var webAnimationOverlayDuration = 250;
1934
- var webAnimationOverlayEasing = {
1935
- x1: 0.42,
1936
- y1: 0,
1937
- x2: 1,
1938
- y2: 1
1939
- };
1940
1926
  var fullscreenModal = {
1941
1927
  header: {
1942
1928
  height: 56
@@ -1950,12 +1936,22 @@ var fullscreenModal = {
1950
1936
  },
1951
1937
  animation: {
1952
1938
  overlay: {
1953
- duration: webAnimationOverlayDuration,
1954
- easing: webAnimationOverlayEasing
1939
+ duration: 250,
1940
+ easing: {
1941
+ x1: 0.42,
1942
+ y1: 0,
1943
+ x2: 1,
1944
+ y2: 1
1945
+ }
1955
1946
  },
1956
1947
  content: {
1957
- duration: webAnimationContentDuration,
1958
- easing: webAnimationContentEasing
1948
+ duration: 600,
1949
+ easing: {
1950
+ x1: 0.77,
1951
+ y1: 0,
1952
+ x2: 0.175,
1953
+ y2: 1
1954
+ }
1959
1955
  }
1960
1956
  }
1961
1957
  };
@@ -4861,8 +4857,6 @@ function AnimatedChoiceItemView(_ref) {
4861
4857
  isDisabled = _ref.isDisabled,
4862
4858
  isSelected = _ref.isSelected,
4863
4859
  hasError = _ref.hasError,
4864
- _ref$shouldExpand = _ref.shouldExpand,
4865
- shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
4866
4860
  animatedStyles = _ref.animatedStyles;
4867
4861
  var sx = useSx();
4868
4862
  var style = sx({
@@ -4880,9 +4874,7 @@ function AnimatedChoiceItemView(_ref) {
4880
4874
  isHovered: isHovered,
4881
4875
  isPressed: isPressed
4882
4876
  }),
4883
- padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4884
- flexGrow: shouldExpand ? 1 : undefined,
4885
- flexShrink: shouldExpand ? 1 : undefined
4877
+ padding: size === 'small' ? 'kitt.2' : 'kitt.4'
4886
4878
  });
4887
4879
  return /*#__PURE__*/jsx(Animated.View, {
4888
4880
  style: [style, animatedStyles],
@@ -4945,8 +4937,6 @@ function ChoiceItem(_ref) {
4945
4937
  value = _ref.value,
4946
4938
  selected = _ref.selected,
4947
4939
  disabled = _ref.disabled,
4948
- _ref$shouldExpand = _ref.shouldExpand,
4949
- shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
4950
4940
  _children = _ref.children,
4951
4941
  isPressedInternal = _ref.isPressedInternal,
4952
4942
  isHoveredInternal = _ref.isHoveredInternal,
@@ -4984,8 +4974,6 @@ function ChoiceItem(_ref) {
4984
4974
  checked: selected
4985
4975
  },
4986
4976
  style: style,
4987
- flexGrow: shouldExpand ? 1 : undefined,
4988
- flexShrink: shouldExpand ? 1 : undefined,
4989
4977
  onBlur: onBlur,
4990
4978
  onFocus: onFocus,
4991
4979
  onPress: function (e) {
@@ -5004,8 +4992,6 @@ function ChoiceItem(_ref) {
5004
4992
  });
5005
4993
  return /*#__PURE__*/jsxs(VStack, {
5006
4994
  space: "kitt.2",
5007
- flexGrow: shouldExpand ? 1 : undefined,
5008
- flexShrink: shouldExpand ? 1 : undefined,
5009
4995
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
5010
4996
  animatedStyles: backgroundStyles,
5011
4997
  isHovered: isHovered || isHoveredInternal,
@@ -5013,13 +4999,10 @@ function ChoiceItem(_ref) {
5013
4999
  isSelected: selected,
5014
5000
  isPressed: isPressed || isPressedInternal,
5015
5001
  hasError: hasError,
5016
- shouldExpand: shouldExpand,
5017
5002
  size: size,
5018
5003
  children: [/*#__PURE__*/jsxs(Stack, {
5019
5004
  alignItems: "center",
5020
5005
  space: "kitt.2",
5021
- flexGrow: shouldExpand ? 1 : undefined,
5022
- flexShrink: shouldExpand ? 1 : undefined,
5023
5006
  children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
5024
5007
  color: textColor,
5025
5008
  icon: icon
@@ -5048,43 +5031,33 @@ function ChoiceItem(_ref) {
5048
5031
  function ChoiceItemContainer(_ref) {
5049
5032
  var children = _ref.children,
5050
5033
  direction = _ref.direction,
5051
- shouldExpand = _ref.shouldExpand,
5052
5034
  isLast = _ref.isLast;
5053
5035
  var currentItemMarginValue = isLast ? undefined : 'kitt.3';
5054
- var directionFlexProps = direction === 'row' ? {
5036
+ var flexProps = direction === 'row' ? {
5055
5037
  flexGrow: 1,
5056
5038
  flexShrink: 1,
5057
5039
  flexBasis: 0
5058
5040
  } : {};
5059
- var shouldExpandFlexProps = shouldExpand ? {
5060
- flexGrow: 1,
5061
- flexShrink: 1
5062
- } : {};
5063
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
5041
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
5064
5042
  marginRight: direction === 'row' ? currentItemMarginValue : undefined,
5065
5043
  marginBottom: direction === 'column' ? currentItemMarginValue : undefined
5066
- }, directionFlexProps), shouldExpandFlexProps), {}, {
5044
+ }, flexProps), {}, {
5067
5045
  children: children
5068
5046
  }));
5069
5047
  }
5070
5048
 
5071
- var _excluded$G = ["direction", "shouldExpand", "contentContainerStyle"];
5049
+ var _excluded$G = ["direction", "contentContainerStyle"];
5072
5050
  function ChoicesContainer(_ref) {
5073
5051
  var direction = _ref.direction,
5074
- shouldExpand = _ref.shouldExpand,
5075
5052
  contentContainerStyle = _ref.contentContainerStyle,
5076
5053
  props = _objectWithoutProperties(_ref, _excluded$G);
5077
- var shouldExpandFlexProps = shouldExpand ? {
5078
- flexGrow: 1,
5079
- flexShrink: 1
5080
- } : {};
5081
5054
  if (direction === 'row') {
5082
- return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
5055
+ return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
5083
5056
  horizontal: true,
5084
- contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle
5085
- }, props), shouldExpandFlexProps));
5057
+ contentContainerStyle: contentContainerStyle
5058
+ }, props));
5086
5059
  }
5087
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), shouldExpandFlexProps));
5060
+ return /*#__PURE__*/jsx(View$2, _objectSpread({}, props));
5088
5061
  }
5089
5062
 
5090
5063
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -5096,8 +5069,6 @@ function Choices(_ref2) {
5096
5069
  _ref2$direction = _ref2.direction,
5097
5070
  direction = _ref2$direction === void 0 ? 'column' : _ref2$direction,
5098
5071
  disabled = _ref2.disabled,
5099
- _ref2$shouldExpand = _ref2.shouldExpand,
5100
- shouldExpand = _ref2$shouldExpand === void 0 ? false : _ref2$shouldExpand,
5101
5072
  children = _ref2.children,
5102
5073
  value = _ref2.value,
5103
5074
  onPress = _ref2.onPress,
@@ -5116,7 +5087,6 @@ function Choices(_ref2) {
5116
5087
  var sharedProps = {
5117
5088
  type: type,
5118
5089
  disabled: disabled,
5119
- shouldExpand: shouldExpand,
5120
5090
  onPress: !isForm ? onPress : undefined,
5121
5091
  onChange: isForm ? function (newValue) {
5122
5092
  setCurrentValue(newValue);
@@ -5128,7 +5098,6 @@ function Choices(_ref2) {
5128
5098
  };
5129
5099
  return /*#__PURE__*/jsx(ChoicesContainer, {
5130
5100
  direction: direction,
5131
- shouldExpand: shouldExpand,
5132
5101
  testID: testID,
5133
5102
  id: id,
5134
5103
  style: style,
@@ -5139,7 +5108,6 @@ function Choices(_ref2) {
5139
5108
  }, sharedProps));
5140
5109
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
5141
5110
  direction: direction,
5142
- shouldExpand: shouldExpand,
5143
5111
  isLast: index === childrenArray.length - 1,
5144
5112
  children: element
5145
5113
  }, child.key);