@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
@@ -11,7 +11,7 @@ import _typeof from '@babel/runtime/helpers/typeof';
11
11
  import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
12
12
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
13
13
  import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
14
- import { Animated, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
14
+ import { Animated, Easing, ScrollView as ScrollView$2, View as View$2, StyleSheet, Modal, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
15
15
  export { useWindowDimensions as useWindowSize } from 'react-native';
16
16
  import { createPortal } from 'react-dom';
17
17
  import { CSSTransition } from 'react-transition-group';
@@ -873,15 +873,15 @@ var card = {
873
873
  }
874
874
  };
875
875
 
876
- var webAnimationContentDuration$2 = 400;
877
- var webAnimationContentEasing$2 = {
876
+ var webAnimationContentDuration$1 = 400;
877
+ var webAnimationContentEasing$1 = {
878
878
  x1: 0.77,
879
879
  y1: 0,
880
880
  x2: 0.175,
881
881
  y2: 1
882
882
  };
883
- var webAnimationOverlayDuration$2 = 250;
884
- var webAnimationOverlayEasing$2 = {
883
+ var webAnimationOverlayDuration$1 = 250;
884
+ var webAnimationOverlayEasing$1 = {
885
885
  x1: 0.42,
886
886
  y1: 0,
887
887
  x2: 1,
@@ -916,12 +916,12 @@ var cardModal = {
916
916
  },
917
917
  animation: {
918
918
  overlay: {
919
- duration: webAnimationOverlayDuration$2,
920
- easing: webAnimationOverlayEasing$2
919
+ duration: webAnimationOverlayDuration$1,
920
+ easing: webAnimationOverlayEasing$1
921
921
  },
922
922
  content: {
923
- duration: webAnimationContentDuration$2,
924
- easing: webAnimationContentEasing$2
923
+ duration: webAnimationContentDuration$1,
924
+ easing: webAnimationContentEasing$1
925
925
  }
926
926
  }
927
927
  };
@@ -977,15 +977,15 @@ var choices = {
977
977
  }
978
978
  };
979
979
 
980
- var webAnimationContentDuration$1 = 400;
981
- var webAnimationContentEasing$1 = {
980
+ var webAnimationContentDuration = 400;
981
+ var webAnimationContentEasing = {
982
982
  x1: 0.77,
983
983
  y1: 0,
984
984
  x2: 0.175,
985
985
  y2: 1
986
986
  };
987
- var webAnimationOverlayDuration$1 = 250;
988
- var webAnimationOverlayEasing$1 = {
987
+ var webAnimationOverlayDuration = 250;
988
+ var webAnimationOverlayEasing = {
989
989
  x1: 0.42,
990
990
  y1: 0,
991
991
  x2: 1,
@@ -1007,12 +1007,12 @@ var dialogModal = {
1007
1007
  },
1008
1008
  animation: {
1009
1009
  overlay: {
1010
- duration: webAnimationOverlayDuration$1,
1011
- easing: webAnimationOverlayEasing$1
1010
+ duration: webAnimationOverlayDuration,
1011
+ easing: webAnimationOverlayEasing
1012
1012
  },
1013
1013
  content: {
1014
- duration: webAnimationContentDuration$1,
1015
- easing: webAnimationContentEasing$1
1014
+ duration: webAnimationContentDuration,
1015
+ easing: webAnimationContentEasing
1016
1016
  }
1017
1017
  }
1018
1018
  };
@@ -1921,20 +1921,6 @@ var forms = {
1921
1921
  timePicker: timePicker
1922
1922
  };
1923
1923
 
1924
- var webAnimationContentDuration = 600;
1925
- var webAnimationContentEasing = {
1926
- x1: 0.77,
1927
- y1: 0,
1928
- x2: 0.175,
1929
- y2: 1
1930
- };
1931
- var webAnimationOverlayDuration = 250;
1932
- var webAnimationOverlayEasing = {
1933
- x1: 0.42,
1934
- y1: 0,
1935
- x2: 1,
1936
- y2: 1
1937
- };
1938
1924
  var fullscreenModal = {
1939
1925
  header: {
1940
1926
  height: 56
@@ -1948,12 +1934,22 @@ var fullscreenModal = {
1948
1934
  },
1949
1935
  animation: {
1950
1936
  overlay: {
1951
- duration: webAnimationOverlayDuration,
1952
- easing: webAnimationOverlayEasing
1937
+ duration: 250,
1938
+ easing: {
1939
+ x1: 0.42,
1940
+ y1: 0,
1941
+ x2: 1,
1942
+ y2: 1
1943
+ }
1953
1944
  },
1954
1945
  content: {
1955
- duration: webAnimationContentDuration,
1956
- easing: webAnimationContentEasing
1946
+ duration: 600,
1947
+ easing: {
1948
+ x1: 0.77,
1949
+ y1: 0,
1950
+ x2: 0.175,
1951
+ y2: 1
1952
+ }
1957
1953
  }
1958
1954
  }
1959
1955
  };
@@ -4393,17 +4389,17 @@ var contentAnimationClassNames = {
4393
4389
  exit: contentAnimatioExit,
4394
4390
  exitActive: contentAnimatioExitActive
4395
4391
  };
4396
- var opacityEnter$1 = "kitt-u_opacityEnter_o1ae40dx";
4397
- var opacityEnterActive$1 = "kitt-u_opacityEnterActive_o1t4vl7b";
4398
- var opacityExit$1 = "kitt-u_opacityExit_ogyytm1";
4399
- var opacityExitActive$1 = "kitt-u_opacityExitActive_o18xvk52";
4400
- var opacityClassNames$1 = {
4401
- appear: opacityEnter$1,
4402
- appearActive: opacityEnterActive$1,
4403
- enter: opacityEnter$1,
4404
- enterActive: opacityEnterActive$1,
4405
- exit: opacityExit$1,
4406
- exitActive: opacityExitActive$1
4392
+ var opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
4393
+ var opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
4394
+ var opacityExit = "kitt-u_opacityExit_ogyytm1";
4395
+ var opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
4396
+ var opacityClassNames = {
4397
+ appear: opacityEnter,
4398
+ appearActive: opacityEnterActive,
4399
+ enter: opacityEnter,
4400
+ enterActive: opacityEnterActive,
4401
+ exit: opacityExit,
4402
+ exitActive: opacityExitActive
4407
4403
  };
4408
4404
  function CardModalAnimation(_ref) {
4409
4405
  var children = _ref.children,
@@ -4437,7 +4433,7 @@ function CardModalAnimation(_ref) {
4437
4433
  children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
4438
4434
  nodeRef: overlayRef,
4439
4435
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4440
- classNames: opacityClassNames$1,
4436
+ classNames: opacityClassNames,
4441
4437
  children: /*#__PURE__*/jsx(Overlay, {
4442
4438
  ref: overlayRef,
4443
4439
  onPress: onClose
@@ -4742,9 +4738,7 @@ function AnimatedChoiceItemView(_ref) {
4742
4738
  isPressed = _ref.isPressed,
4743
4739
  isDisabled = _ref.isDisabled,
4744
4740
  isSelected = _ref.isSelected,
4745
- hasError = _ref.hasError,
4746
- _ref$shouldExpand = _ref.shouldExpand,
4747
- shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand;
4741
+ hasError = _ref.hasError;
4748
4742
  var theme = useTheme();
4749
4743
  return /*#__PURE__*/jsx(View, {
4750
4744
  position: "relative",
@@ -4762,8 +4756,6 @@ function AnimatedChoiceItemView(_ref) {
4762
4756
  isPressed: isPressed
4763
4757
  }),
4764
4758
  padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4765
- flexGrow: shouldExpand ? 1 : undefined,
4766
- flexShrink: shouldExpand ? 1 : undefined,
4767
4759
  _web: {
4768
4760
  style: {
4769
4761
  transitionProperty: theme.kitt.choices.item.transition.property,
@@ -4800,8 +4792,6 @@ function ChoiceItem(_ref) {
4800
4792
  value = _ref.value,
4801
4793
  selected = _ref.selected,
4802
4794
  disabled = _ref.disabled,
4803
- _ref$shouldExpand = _ref.shouldExpand,
4804
- shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
4805
4795
  _children = _ref.children,
4806
4796
  isPressedInternal = _ref.isPressedInternal,
4807
4797
  isHoveredInternal = _ref.isHoveredInternal,
@@ -4835,8 +4825,6 @@ function ChoiceItem(_ref) {
4835
4825
  checked: selected
4836
4826
  },
4837
4827
  style: style,
4838
- flexGrow: shouldExpand ? 1 : undefined,
4839
- flexShrink: shouldExpand ? 1 : undefined,
4840
4828
  onBlur: onBlur,
4841
4829
  onFocus: onFocus,
4842
4830
  onPress: function (e) {
@@ -4855,8 +4843,6 @@ function ChoiceItem(_ref) {
4855
4843
  });
4856
4844
  return /*#__PURE__*/jsxs(VStack, {
4857
4845
  space: "kitt.2",
4858
- flexGrow: shouldExpand ? 1 : undefined,
4859
- flexShrink: shouldExpand ? 1 : undefined,
4860
4846
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4861
4847
  animatedStyles: backgroundStyles,
4862
4848
  isHovered: isHovered || isHoveredInternal,
@@ -4864,13 +4850,10 @@ function ChoiceItem(_ref) {
4864
4850
  isSelected: selected,
4865
4851
  isPressed: isPressed || isPressedInternal,
4866
4852
  hasError: hasError,
4867
- shouldExpand: shouldExpand,
4868
4853
  size: size,
4869
4854
  children: [/*#__PURE__*/jsxs(Stack, {
4870
4855
  alignItems: "center",
4871
4856
  space: "kitt.2",
4872
- flexGrow: shouldExpand ? 1 : undefined,
4873
- flexShrink: shouldExpand ? 1 : undefined,
4874
4857
  children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
4875
4858
  color: textColor,
4876
4859
  icon: icon
@@ -4899,43 +4882,33 @@ function ChoiceItem(_ref) {
4899
4882
  function ChoiceItemContainer(_ref) {
4900
4883
  var children = _ref.children,
4901
4884
  direction = _ref.direction,
4902
- shouldExpand = _ref.shouldExpand,
4903
4885
  isLast = _ref.isLast;
4904
4886
  var currentItemMarginValue = isLast ? undefined : 'kitt.3';
4905
- var directionFlexProps = direction === 'row' ? {
4887
+ var flexProps = direction === 'row' ? {
4906
4888
  flexGrow: 1,
4907
4889
  flexShrink: 1,
4908
4890
  flexBasis: 0
4909
4891
  } : {};
4910
- var shouldExpandFlexProps = shouldExpand ? {
4911
- flexGrow: 1,
4912
- flexShrink: 1
4913
- } : {};
4914
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
4892
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
4915
4893
  marginRight: direction === 'row' ? currentItemMarginValue : undefined,
4916
4894
  marginBottom: direction === 'column' ? currentItemMarginValue : undefined
4917
- }, directionFlexProps), shouldExpandFlexProps), {}, {
4895
+ }, flexProps), {}, {
4918
4896
  children: children
4919
4897
  }));
4920
4898
  }
4921
4899
 
4922
- var _excluded$D = ["direction", "shouldExpand", "contentContainerStyle"];
4900
+ var _excluded$D = ["direction", "contentContainerStyle"];
4923
4901
  function ChoicesContainer(_ref) {
4924
4902
  var direction = _ref.direction,
4925
- shouldExpand = _ref.shouldExpand,
4926
4903
  contentContainerStyle = _ref.contentContainerStyle,
4927
4904
  props = _objectWithoutProperties(_ref, _excluded$D);
4928
- var shouldExpandFlexProps = shouldExpand ? {
4929
- flexGrow: 1,
4930
- flexShrink: 1
4931
- } : {};
4932
4905
  if (direction === 'row') {
4933
- return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
4906
+ return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
4934
4907
  horizontal: true,
4935
- contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle
4936
- }, props), shouldExpandFlexProps));
4908
+ contentContainerStyle: contentContainerStyle
4909
+ }, props));
4937
4910
  }
4938
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), shouldExpandFlexProps));
4911
+ return /*#__PURE__*/jsx(View$2, _objectSpread({}, props));
4939
4912
  }
4940
4913
 
4941
4914
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -4947,8 +4920,6 @@ function Choices(_ref2) {
4947
4920
  _ref2$direction = _ref2.direction,
4948
4921
  direction = _ref2$direction === void 0 ? 'column' : _ref2$direction,
4949
4922
  disabled = _ref2.disabled,
4950
- _ref2$shouldExpand = _ref2.shouldExpand,
4951
- shouldExpand = _ref2$shouldExpand === void 0 ? false : _ref2$shouldExpand,
4952
4923
  children = _ref2.children,
4953
4924
  value = _ref2.value,
4954
4925
  onPress = _ref2.onPress,
@@ -4967,7 +4938,6 @@ function Choices(_ref2) {
4967
4938
  var sharedProps = {
4968
4939
  type: type,
4969
4940
  disabled: disabled,
4970
- shouldExpand: shouldExpand,
4971
4941
  onPress: !isForm ? onPress : undefined,
4972
4942
  onChange: isForm ? function (newValue) {
4973
4943
  setCurrentValue(newValue);
@@ -4979,7 +4949,6 @@ function Choices(_ref2) {
4979
4949
  };
4980
4950
  return /*#__PURE__*/jsx(ChoicesContainer, {
4981
4951
  direction: direction,
4982
- shouldExpand: shouldExpand,
4983
4952
  testID: testID,
4984
4953
  id: id,
4985
4954
  style: style,
@@ -4990,7 +4959,6 @@ function Choices(_ref2) {
4990
4959
  }, sharedProps));
4991
4960
  return /*#__PURE__*/jsx(ChoiceItemContainer, {
4992
4961
  direction: direction,
4993
- shouldExpand: shouldExpand,
4994
4962
  isLast: index === childrenArray.length - 1,
4995
4963
  children: element
4996
4964
  }, child.key);
@@ -7953,30 +7921,24 @@ function FullscreenModalFooter(_ref) {
7953
7921
  }));
7954
7922
  }
7955
7923
 
7924
+ var styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
7925
+
7956
7926
  var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7957
- var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7958
- var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7959
- var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7960
- var slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7961
- var slideInClassNames = {
7962
- appear: slideInFromBottomEnter,
7963
- appearActive: slideInFromBottomEnterActive,
7964
- enter: slideInFromBottomEnter,
7965
- enterActive: slideInFromBottomEnterActive,
7966
- exit: slideInFromBottomExit,
7967
- exitActive: slideInFromBottomExitActive
7927
+ var overlayClassNames = {
7928
+ appear: styles$1['overlay-enter'],
7929
+ appearActive: styles$1['overlay-enter-active'],
7930
+ enter: styles$1['overlay-enter'],
7931
+ enterActive: styles$1['overlay-enter-active'],
7932
+ exit: styles$1['overlay-exit'],
7933
+ exitActive: styles$1['overlay-exit-active']
7968
7934
  };
7969
- var opacityEnter = "kitt-u_opacityEnter_okm44hr";
7970
- var opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7971
- var opacityExit = "kitt-u_opacityExit_o14r8iix";
7972
- var opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7973
- var opacityClassNames = {
7974
- appear: opacityEnter,
7975
- appearActive: opacityEnterActive,
7976
- enter: opacityEnter,
7977
- enterActive: opacityEnterActive,
7978
- exit: opacityExit,
7979
- exitActive: opacityExitActive
7935
+ var slideInClassNames = {
7936
+ appear: styles$1['content-enter'],
7937
+ appearActive: styles$1['content-enter-active'],
7938
+ enter: styles$1['content-enter'],
7939
+ enterActive: styles$1['content-enter-active'],
7940
+ exit: styles$1['content-exit'],
7941
+ exitActive: styles$1['content-exit-active']
7980
7942
  };
7981
7943
  function FullscreenModalAnimation(_ref) {
7982
7944
  var children = _ref.children,
@@ -8004,28 +7966,41 @@ function FullscreenModalAnimation(_ref) {
8004
7966
  appear: appear,
8005
7967
  unmountOnExit: unmountOnExit
8006
7968
  };
8007
- return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({}, props), {}, {
8008
- children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
8009
- nodeRef: overlayRef,
8010
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
8011
- classNames: opacityClassNames,
8012
- children: /*#__PURE__*/jsx(Overlay, {
8013
- ref: overlayRef,
8014
- onPress: onClose
8015
- })
8016
- })), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
8017
- nodeRef: contentRef,
8018
- timeout: isAnimationEnabled ? animation.content.duration : 0,
8019
- classNames: slideInClassNames,
8020
- onEnter: onEnter,
8021
- onEntered: onEntered,
8022
- onExit: onExit,
8023
- onExited: onExited,
8024
- children: /*#__PURE__*/jsx(View, {
8025
- ref: contentRef,
8026
- children: children
8027
- })
8028
- }))]
7969
+
7970
+ // CSS custom properties for theme-based animation values
7971
+ var overlayEasing = animation.overlay.easing;
7972
+ var contentEasing = animation.content.easing;
7973
+ var cssVariables = {
7974
+ '--overlay-duration': "".concat(animation.overlay.duration, "ms"),
7975
+ '--overlay-easing': "cubic-bezier(".concat(overlayEasing.x1, ", ").concat(overlayEasing.y1, ", ").concat(overlayEasing.x2, ", ").concat(overlayEasing.y2, ")"),
7976
+ '--content-duration': "".concat(animation.content.duration, "ms"),
7977
+ '--content-easing': "cubic-bezier(".concat(contentEasing.x1, ", ").concat(contentEasing.y1, ", ").concat(contentEasing.x2, ", ").concat(contentEasing.y2, ")")
7978
+ };
7979
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7980
+ children: /*#__PURE__*/jsxs("div", {
7981
+ style: cssVariables,
7982
+ children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
7983
+ nodeRef: overlayRef,
7984
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7985
+ classNames: overlayClassNames,
7986
+ children: /*#__PURE__*/jsx(Overlay, {
7987
+ ref: overlayRef,
7988
+ onPress: onClose
7989
+ })
7990
+ })), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
7991
+ nodeRef: contentRef,
7992
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7993
+ classNames: slideInClassNames,
7994
+ onEnter: onEnter,
7995
+ onEntered: onEntered,
7996
+ onExit: onExit,
7997
+ onExited: onExited,
7998
+ children: /*#__PURE__*/jsx(View, {
7999
+ ref: contentRef,
8000
+ children: children
8001
+ })
8002
+ }))]
8003
+ })
8029
8004
  }));
8030
8005
  }
8031
8006