@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.0 → 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.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 (47) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  4. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
  5. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
  7. package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
  8. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  9. package/dist/index-metro.es.android.js +94 -76
  10. package/dist/index-metro.es.android.js.map +1 -1
  11. package/dist/index-metro.es.ios.js +94 -76
  12. package/dist/index-metro.es.ios.js.map +1 -1
  13. package/dist/index-node-22.17.cjs.js +94 -76
  14. package/dist/index-node-22.17.cjs.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.web.css +38 -9
  16. package/dist/index-node-22.17.cjs.web.js +161 -135
  17. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  18. package/dist/index-node-22.17.es.mjs +94 -76
  19. package/dist/index-node-22.17.es.mjs.map +1 -1
  20. package/dist/index-node-22.17.es.web.css +38 -9
  21. package/dist/index-node-22.17.es.web.mjs +161 -135
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +97 -78
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +162 -135
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/linaria-themes-metro.es.android.js +34 -39
  28. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.ios.js +34 -39
  30. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.cjs.js +34 -39
  32. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.web.js +34 -39
  34. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.es.mjs +34 -39
  36. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.web.mjs +34 -39
  38. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  39. package/dist/linaria-themes.es.js +34 -39
  40. package/dist/linaria-themes.es.js.map +1 -1
  41. package/dist/linaria-themes.es.web.js +34 -39
  42. package/dist/linaria-themes.es.web.js.map +1 -1
  43. package/dist/styles.css +38 -9
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
  47. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +0 -1
@@ -6,15 +6,44 @@
6
6
  .kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
- .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
10
- .kitt-u_slideInFromBottomEnter_s1717rto{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}
11
- .kitt-u_slideInFromBottomEnterActive_sux6xgc{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform 600ms cubic-bezier(0.77,0,0.175,1);-webkit-transition:transform 600ms cubic-bezier(0.77,0,0.175,1);transition:transform 600ms cubic-bezier(0.77,0,0.175,1);}
12
- .kitt-u_slideInFromBottomExit_sl0lsxt{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}
13
- .kitt-u_slideInFromBottomExitActive_srlzzmu{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform 600ms cubic-bezier(0.77,0,0.175,1);-webkit-transition:transform 600ms cubic-bezier(0.77,0,0.175,1);transition:transform 600ms cubic-bezier(0.77,0,0.175,1);}
14
- .kitt-u_opacityEnter_okm44hr{opacity:0;}
15
- .kitt-u_opacityEnterActive_o2w8t0i{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
16
- .kitt-u_opacityExit_o14r8iix{opacity:1;}
17
- .kitt-u_opacityExitActive_oim72y2{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
9
+ /* Overlay animation styles - uses CSS variables for theme values */
10
+ .FullscreenModalAnimation-module_overlay-enter__L1J1X {
11
+ opacity: 0;
12
+ }
13
+
14
+ .FullscreenModalAnimation-module_overlay-enter-active__gDEVb {
15
+ opacity: 1;
16
+ transition: opacity var(--overlay-duration) var(--overlay-easing);
17
+ }
18
+
19
+ .FullscreenModalAnimation-module_overlay-exit__Qx1WE {
20
+ opacity: 1;
21
+ }
22
+
23
+ .FullscreenModalAnimation-module_overlay-exit-active__lFR3x {
24
+ opacity: 0;
25
+ transition: opacity var(--overlay-duration) var(--overlay-easing);
26
+ }
27
+
28
+ /* Content animation styles - uses CSS variables for theme values */
29
+ .FullscreenModalAnimation-module_content-enter__JmCWa {
30
+ transform: translateY(100%);
31
+ }
32
+
33
+ .FullscreenModalAnimation-module_content-enter-active__iaNRs {
34
+ transform: translateY(0);
35
+ transition: transform var(--content-duration) var(--content-easing);
36
+ }
37
+
38
+ .FullscreenModalAnimation-module_content-exit__hB0wY {
39
+ transform: translateY(0);
40
+ }
41
+
42
+ .FullscreenModalAnimation-module_content-exit-active__BPVPo {
43
+ transform: translateY(100%);
44
+ transition: transform var(--content-duration) var(--content-easing);
45
+ }
46
+
18
47
  .kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
19
48
  .kitt-u_enterActive_e1jmsjrm{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
20
49
  .kitt-u_exit_e1mwnccz{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;}
@@ -855,15 +855,15 @@ const card = {
855
855
  }
856
856
  };
857
857
 
858
- const webAnimationContentDuration$2 = 400;
859
- const webAnimationContentEasing$2 = {
858
+ const webAnimationContentDuration$1 = 400;
859
+ const webAnimationContentEasing$1 = {
860
860
  x1: 0.77,
861
861
  y1: 0,
862
862
  x2: 0.175,
863
863
  y2: 1
864
864
  };
865
- const webAnimationOverlayDuration$2 = 250;
866
- const webAnimationOverlayEasing$2 = {
865
+ const webAnimationOverlayDuration$1 = 250;
866
+ const webAnimationOverlayEasing$1 = {
867
867
  x1: 0.42,
868
868
  y1: 0,
869
869
  x2: 1,
@@ -898,12 +898,12 @@ const cardModal = {
898
898
  },
899
899
  animation: {
900
900
  overlay: {
901
- duration: webAnimationOverlayDuration$2,
902
- easing: webAnimationOverlayEasing$2
901
+ duration: webAnimationOverlayDuration$1,
902
+ easing: webAnimationOverlayEasing$1
903
903
  },
904
904
  content: {
905
- duration: webAnimationContentDuration$2,
906
- easing: webAnimationContentEasing$2
905
+ duration: webAnimationContentDuration$1,
906
+ easing: webAnimationContentEasing$1
907
907
  }
908
908
  }
909
909
  };
@@ -959,15 +959,15 @@ const choices = {
959
959
  }
960
960
  };
961
961
 
962
- const webAnimationContentDuration$1 = 400;
963
- const webAnimationContentEasing$1 = {
962
+ const webAnimationContentDuration = 400;
963
+ const webAnimationContentEasing = {
964
964
  x1: 0.77,
965
965
  y1: 0,
966
966
  x2: 0.175,
967
967
  y2: 1
968
968
  };
969
- const webAnimationOverlayDuration$1 = 250;
970
- const webAnimationOverlayEasing$1 = {
969
+ const webAnimationOverlayDuration = 250;
970
+ const webAnimationOverlayEasing = {
971
971
  x1: 0.42,
972
972
  y1: 0,
973
973
  x2: 1,
@@ -989,12 +989,12 @@ const dialogModal = {
989
989
  },
990
990
  animation: {
991
991
  overlay: {
992
- duration: webAnimationOverlayDuration$1,
993
- easing: webAnimationOverlayEasing$1
992
+ duration: webAnimationOverlayDuration,
993
+ easing: webAnimationOverlayEasing
994
994
  },
995
995
  content: {
996
- duration: webAnimationContentDuration$1,
997
- easing: webAnimationContentEasing$1
996
+ duration: webAnimationContentDuration,
997
+ easing: webAnimationContentEasing
998
998
  }
999
999
  }
1000
1000
  };
@@ -1052,10 +1052,10 @@ const autocomplete = {
1052
1052
  };
1053
1053
 
1054
1054
  const checkbox = {
1055
- borderWidth: 1,
1056
- borderRadius: 4,
1057
- height: 24,
1058
- width: 24,
1055
+ borderWidth: 2,
1056
+ borderRadius: 5,
1057
+ height: 20,
1058
+ width: 20,
1059
1059
  iconSize: 14,
1060
1060
  markColor: colors.uiBackgroundLight,
1061
1061
  textSpacing: 10,
@@ -1118,7 +1118,6 @@ const inputStatesStyle = {
1118
1118
  color: deepPurpleColorPalette.black
1119
1119
  },
1120
1120
  hover: {
1121
- backgroundColor: deepPurpleColorPalette['beige.1'],
1122
1121
  borderColor: deepPurpleColorPalette['beige.4'],
1123
1122
  color: deepPurpleColorPalette.black
1124
1123
  },
@@ -1903,20 +1902,6 @@ const forms = {
1903
1902
  timePicker
1904
1903
  };
1905
1904
 
1906
- const webAnimationContentDuration = 600;
1907
- const webAnimationContentEasing = {
1908
- x1: 0.77,
1909
- y1: 0,
1910
- x2: 0.175,
1911
- y2: 1
1912
- };
1913
- const webAnimationOverlayDuration = 250;
1914
- const webAnimationOverlayEasing = {
1915
- x1: 0.42,
1916
- y1: 0,
1917
- x2: 1,
1918
- y2: 1
1919
- };
1920
1905
  const fullscreenModal = {
1921
1906
  header: {
1922
1907
  height: 56
@@ -1930,12 +1915,22 @@ const fullscreenModal = {
1930
1915
  },
1931
1916
  animation: {
1932
1917
  overlay: {
1933
- duration: webAnimationOverlayDuration,
1934
- easing: webAnimationOverlayEasing
1918
+ duration: 250,
1919
+ easing: {
1920
+ x1: 0.42,
1921
+ y1: 0,
1922
+ x2: 1,
1923
+ y2: 1
1924
+ }
1935
1925
  },
1936
1926
  content: {
1937
- duration: webAnimationContentDuration,
1938
- easing: webAnimationContentEasing
1927
+ duration: 600,
1928
+ easing: {
1929
+ x1: 0.77,
1930
+ y1: 0,
1931
+ x2: 0.175,
1932
+ y2: 1
1933
+ }
1939
1934
  }
1940
1935
  }
1941
1936
  };
@@ -4352,17 +4347,17 @@ const contentAnimationClassNames = {
4352
4347
  exit: contentAnimatioExit,
4353
4348
  exitActive: contentAnimatioExitActive
4354
4349
  };
4355
- const opacityEnter$1 = "kitt-u_opacityEnter_o1ae40dx";
4356
- const opacityEnterActive$1 = "kitt-u_opacityEnterActive_o1t4vl7b";
4357
- const opacityExit$1 = "kitt-u_opacityExit_ogyytm1";
4358
- const opacityExitActive$1 = "kitt-u_opacityExitActive_o18xvk52";
4359
- const opacityClassNames$1 = {
4360
- appear: opacityEnter$1,
4361
- appearActive: opacityEnterActive$1,
4362
- enter: opacityEnter$1,
4363
- enterActive: opacityEnterActive$1,
4364
- exit: opacityExit$1,
4365
- exitActive: opacityExitActive$1
4350
+ const opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
4351
+ const opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
4352
+ const opacityExit = "kitt-u_opacityExit_ogyytm1";
4353
+ const opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
4354
+ const opacityClassNames = {
4355
+ appear: opacityEnter,
4356
+ appearActive: opacityEnterActive,
4357
+ enter: opacityEnter,
4358
+ enterActive: opacityEnterActive,
4359
+ exit: opacityExit,
4360
+ exitActive: opacityExitActive
4366
4361
  };
4367
4362
  function CardModalAnimation({
4368
4363
  children,
@@ -4398,7 +4393,7 @@ function CardModalAnimation({
4398
4393
  ...sharedProps,
4399
4394
  nodeRef: overlayRef,
4400
4395
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4401
- classNames: opacityClassNames$1,
4396
+ classNames: opacityClassNames,
4402
4397
  children: /*#__PURE__*/jsx(Overlay, {
4403
4398
  ref: overlayRef,
4404
4399
  onPress: onClose
@@ -5364,11 +5359,30 @@ function InputPressable({
5364
5359
  });
5365
5360
  }
5366
5361
 
5367
- const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5368
- function InputTextContainer(props) {
5369
- return /*#__PURE__*/jsx("div", {
5370
- className: inputTextContainer,
5371
- ...props
5362
+ function InputTextContainer({
5363
+ children,
5364
+ isHovered
5365
+ }) {
5366
+ const theme = useTheme();
5367
+ const sx = useSx();
5368
+ const styles = sx({
5369
+ borderRadius: input.borderRadius
5370
+ });
5371
+ const animatedBackground = useAnimatedStyle(() => {
5372
+ const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5373
+ const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5374
+ return {
5375
+ backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5376
+ duration: 200
5377
+ })
5378
+ };
5379
+ }, [isHovered, theme]);
5380
+ return /*#__PURE__*/jsx(Animated$1.View, {
5381
+ style: [styles, animatedBackground],
5382
+ children: /*#__PURE__*/jsx(View, {
5383
+ position: "relative",
5384
+ children: children
5385
+ })
5372
5386
  });
5373
5387
  }
5374
5388
 
@@ -5392,39 +5406,44 @@ const InputText = /*#__PURE__*/forwardRef(({
5392
5406
  const fontSizeForNativeBase = createNativeBaseFontSize({
5393
5407
  base: 'body-m'
5394
5408
  });
5395
- return /*#__PURE__*/jsxs(InputTextContainer, {
5396
- children: [/*#__PURE__*/jsx(Input, {
5397
- ref: ref,
5398
- multiline: multiline,
5399
- id: id,
5400
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5401
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5402
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5403
- inputMode: inputMode,
5404
- autoComplete: autoComplete,
5405
- autoCorrect: autoCorrect,
5406
- textContentType: textContentType,
5407
- fontSize: fontSizeForNativeBase,
5408
- lineHeight:
5409
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5410
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5411
- fontSizeForNativeBase,
5412
- fontWeight: "bodies.regular",
5413
- fontFamily: "bodies.regular",
5414
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5415
- variant: variant,
5416
- ...props,
5417
- height: multiline ? height : 'kitt.forms.input.minHeight',
5418
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5419
- }), right ? /*#__PURE__*/jsx(View, {
5420
- position: "absolute",
5421
- right: 0,
5422
- top: 0,
5423
- bottom: 0,
5424
- justifyContent: "center",
5425
- padding: theme.kitt.forms.input.rightContainer.padding,
5426
- children: right
5427
- }) : null]
5409
+ return /*#__PURE__*/jsx(Pressable, {
5410
+ children: ({
5411
+ isHovered
5412
+ }) => /*#__PURE__*/jsxs(InputTextContainer, {
5413
+ isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5414
+ children: [/*#__PURE__*/jsx(Input, {
5415
+ ref: ref,
5416
+ multiline: multiline,
5417
+ id: id,
5418
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5419
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5420
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5421
+ inputMode: inputMode,
5422
+ autoComplete: autoComplete,
5423
+ autoCorrect: autoCorrect,
5424
+ textContentType: textContentType,
5425
+ fontSize: fontSizeForNativeBase,
5426
+ lineHeight:
5427
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5428
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5429
+ fontSizeForNativeBase,
5430
+ fontWeight: "bodies.regular",
5431
+ fontFamily: "bodies.regular",
5432
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5433
+ variant: variant,
5434
+ ...props,
5435
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5436
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5437
+ }), right ? /*#__PURE__*/jsx(View, {
5438
+ position: "absolute",
5439
+ right: 0,
5440
+ top: 0,
5441
+ bottom: 0,
5442
+ justifyContent: "center",
5443
+ padding: theme.kitt.forms.input.rightContainer.padding,
5444
+ children: right
5445
+ }) : null]
5446
+ })
5428
5447
  });
5429
5448
  });
5430
5449
 
@@ -7737,29 +7756,23 @@ function FullscreenModalFooter({
7737
7756
  });
7738
7757
  }
7739
7758
 
7740
- const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7741
- const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7742
- const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7743
- const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7744
- const slideInClassNames = {
7745
- appear: slideInFromBottomEnter,
7746
- appearActive: slideInFromBottomEnterActive,
7747
- enter: slideInFromBottomEnter,
7748
- enterActive: slideInFromBottomEnterActive,
7749
- exit: slideInFromBottomExit,
7750
- exitActive: slideInFromBottomExitActive
7759
+ const 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"};
7760
+
7761
+ const overlayClassNames = {
7762
+ appear: styles$1['overlay-enter'],
7763
+ appearActive: styles$1['overlay-enter-active'],
7764
+ enter: styles$1['overlay-enter'],
7765
+ enterActive: styles$1['overlay-enter-active'],
7766
+ exit: styles$1['overlay-exit'],
7767
+ exitActive: styles$1['overlay-exit-active']
7751
7768
  };
7752
- const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7753
- const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7754
- const opacityExit = "kitt-u_opacityExit_o14r8iix";
7755
- const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7756
- const opacityClassNames = {
7757
- appear: opacityEnter,
7758
- appearActive: opacityEnterActive,
7759
- enter: opacityEnter,
7760
- enterActive: opacityEnterActive,
7761
- exit: opacityExit,
7762
- exitActive: opacityExitActive
7769
+ const slideInClassNames = {
7770
+ appear: styles$1['content-enter'],
7771
+ appearActive: styles$1['content-enter-active'],
7772
+ enter: styles$1['content-enter'],
7773
+ enterActive: styles$1['content-enter-active'],
7774
+ exit: styles$1['content-exit'],
7775
+ exitActive: styles$1['content-exit-active']
7763
7776
  };
7764
7777
  function FullscreenModalAnimation({
7765
7778
  children,
@@ -7787,31 +7800,44 @@ function FullscreenModalAnimation({
7787
7800
  appear,
7788
7801
  unmountOnExit
7789
7802
  };
7790
- return /*#__PURE__*/jsxs(View, {
7803
+
7804
+ // CSS custom properties for theme-based animation values
7805
+ const overlayEasing = animation.overlay.easing;
7806
+ const contentEasing = animation.content.easing;
7807
+ const cssVariables = {
7808
+ '--overlay-duration': `${animation.overlay.duration}ms`,
7809
+ '--overlay-easing': `cubic-bezier(${overlayEasing.x1}, ${overlayEasing.y1}, ${overlayEasing.x2}, ${overlayEasing.y2})`,
7810
+ '--content-duration': `${animation.content.duration}ms`,
7811
+ '--content-easing': `cubic-bezier(${contentEasing.x1}, ${contentEasing.y1}, ${contentEasing.x2}, ${contentEasing.y2})`
7812
+ };
7813
+ return /*#__PURE__*/jsx(View, {
7791
7814
  ...props,
7792
- children: [/*#__PURE__*/jsx(CSSTransition, {
7793
- ...sharedProps,
7794
- nodeRef: overlayRef,
7795
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7796
- classNames: opacityClassNames,
7797
- children: /*#__PURE__*/jsx(Overlay, {
7798
- ref: overlayRef,
7799
- onPress: onClose
7800
- })
7801
- }), /*#__PURE__*/jsx(CSSTransition, {
7802
- ...sharedProps,
7803
- nodeRef: contentRef,
7804
- timeout: isAnimationEnabled ? animation.content.duration : 0,
7805
- classNames: slideInClassNames,
7806
- onEnter: onEnter,
7807
- onEntered: onEntered,
7808
- onExit: onExit,
7809
- onExited: onExited,
7810
- children: /*#__PURE__*/jsx(View, {
7811
- ref: contentRef,
7812
- children: children
7813
- })
7814
- })]
7815
+ children: /*#__PURE__*/jsxs("div", {
7816
+ style: cssVariables,
7817
+ children: [/*#__PURE__*/jsx(CSSTransition, {
7818
+ ...sharedProps,
7819
+ nodeRef: overlayRef,
7820
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7821
+ classNames: overlayClassNames,
7822
+ children: /*#__PURE__*/jsx(Overlay, {
7823
+ ref: overlayRef,
7824
+ onPress: onClose
7825
+ })
7826
+ }), /*#__PURE__*/jsx(CSSTransition, {
7827
+ ...sharedProps,
7828
+ nodeRef: contentRef,
7829
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7830
+ classNames: slideInClassNames,
7831
+ onEnter: onEnter,
7832
+ onEntered: onEntered,
7833
+ onExit: onExit,
7834
+ onExited: onExited,
7835
+ children: /*#__PURE__*/jsx(View, {
7836
+ ref: contentRef,
7837
+ children: children
7838
+ })
7839
+ })]
7840
+ })
7815
7841
  });
7816
7842
  }
7817
7843