@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.
- package/CHANGELOG.md +13 -2
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +94 -76
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +94 -76
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +94 -76
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +38 -9
- package/dist/index-node-22.17.cjs.web.js +161 -135
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +94 -76
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +38 -9
- package/dist/index-node-22.17.es.web.mjs +161 -135
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +97 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +162 -135
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -39
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -39
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -39
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -39
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -39
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -39
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -39
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -39
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +38 -9
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +0 -4
- 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
|
-
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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$
|
|
859
|
-
const webAnimationContentEasing$
|
|
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$
|
|
866
|
-
const webAnimationOverlayEasing$
|
|
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$
|
|
902
|
-
easing: webAnimationOverlayEasing$
|
|
901
|
+
duration: webAnimationOverlayDuration$1,
|
|
902
|
+
easing: webAnimationOverlayEasing$1
|
|
903
903
|
},
|
|
904
904
|
content: {
|
|
905
|
-
duration: webAnimationContentDuration$
|
|
906
|
-
easing: webAnimationContentEasing$
|
|
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
|
|
963
|
-
const webAnimationContentEasing
|
|
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
|
|
970
|
-
const webAnimationOverlayEasing
|
|
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
|
|
993
|
-
easing: webAnimationOverlayEasing
|
|
992
|
+
duration: webAnimationOverlayDuration,
|
|
993
|
+
easing: webAnimationOverlayEasing
|
|
994
994
|
},
|
|
995
995
|
content: {
|
|
996
|
-
duration: webAnimationContentDuration
|
|
997
|
-
easing: webAnimationContentEasing
|
|
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:
|
|
1056
|
-
borderRadius:
|
|
1057
|
-
height:
|
|
1058
|
-
width:
|
|
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:
|
|
1934
|
-
easing:
|
|
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:
|
|
1938
|
-
easing:
|
|
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
|
|
4356
|
-
const opacityEnterActive
|
|
4357
|
-
const opacityExit
|
|
4358
|
-
const opacityExitActive
|
|
4359
|
-
const opacityClassNames
|
|
4360
|
-
appear: opacityEnter
|
|
4361
|
-
appearActive: opacityEnterActive
|
|
4362
|
-
enter: opacityEnter
|
|
4363
|
-
enterActive: opacityEnterActive
|
|
4364
|
-
exit: opacityExit
|
|
4365
|
-
exitActive: opacityExitActive
|
|
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
|
|
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
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
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__*/
|
|
5396
|
-
children:
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
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
|
|
7741
|
-
|
|
7742
|
-
const
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
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
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
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
|
-
|
|
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:
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
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
|
|