@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.
- package/CHANGELOG.md +10 -2
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +1 -2
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts +1 -2
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +1 -2
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
- package/dist/definitions/Choices/Choices.d.ts +5 -5
- package/dist/definitions/Choices/Choices.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.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/index-metro.es.android.js +40 -69
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +40 -69
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +38 -70
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +38 -8
- package/dist/index-node-22.17.cjs.web.js +103 -128
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +39 -71
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +38 -8
- package/dist/index-node-22.17.es.web.mjs +104 -129
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +40 -72
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +103 -128
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +30 -34
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +30 -34
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +30 -34
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +30 -34
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +38 -8
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7,14 +7,44 @@
|
|
|
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
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
|
-
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
/* Overlay animation styles - uses CSS variables for theme values */
|
|
11
|
+
.FullscreenModalAnimation-module_overlay-enter__L1J1X {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.FullscreenModalAnimation-module_overlay-enter-active__gDEVb {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transition: opacity var(--overlay-duration) var(--overlay-easing);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.FullscreenModalAnimation-module_overlay-exit__Qx1WE {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.FullscreenModalAnimation-module_overlay-exit-active__lFR3x {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transition: opacity var(--overlay-duration) var(--overlay-easing);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Content animation styles - uses CSS variables for theme values */
|
|
30
|
+
.FullscreenModalAnimation-module_content-enter__JmCWa {
|
|
31
|
+
transform: translateY(100%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.FullscreenModalAnimation-module_content-enter-active__iaNRs {
|
|
35
|
+
transform: translateY(0);
|
|
36
|
+
transition: transform var(--content-duration) var(--content-easing);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.FullscreenModalAnimation-module_content-exit__hB0wY {
|
|
40
|
+
transform: translateY(0);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.FullscreenModalAnimation-module_content-exit-active__BPVPo {
|
|
44
|
+
transform: translateY(100%);
|
|
45
|
+
transition: transform var(--content-duration) var(--content-easing);
|
|
46
|
+
}
|
|
47
|
+
|
|
18
48
|
.kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
|
|
19
49
|
.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
50
|
.kitt-u_exit_e1mwnccz{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;}
|
|
@@ -864,15 +864,15 @@ const card = {
|
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
866
|
|
|
867
|
-
const webAnimationContentDuration$
|
|
868
|
-
const webAnimationContentEasing$
|
|
867
|
+
const webAnimationContentDuration$1 = 400;
|
|
868
|
+
const webAnimationContentEasing$1 = {
|
|
869
869
|
x1: 0.77,
|
|
870
870
|
y1: 0,
|
|
871
871
|
x2: 0.175,
|
|
872
872
|
y2: 1
|
|
873
873
|
};
|
|
874
|
-
const webAnimationOverlayDuration$
|
|
875
|
-
const webAnimationOverlayEasing$
|
|
874
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
875
|
+
const webAnimationOverlayEasing$1 = {
|
|
876
876
|
x1: 0.42,
|
|
877
877
|
y1: 0,
|
|
878
878
|
x2: 1,
|
|
@@ -907,12 +907,12 @@ const cardModal = {
|
|
|
907
907
|
},
|
|
908
908
|
animation: {
|
|
909
909
|
overlay: {
|
|
910
|
-
duration: webAnimationOverlayDuration$
|
|
911
|
-
easing: webAnimationOverlayEasing$
|
|
910
|
+
duration: webAnimationOverlayDuration$1,
|
|
911
|
+
easing: webAnimationOverlayEasing$1
|
|
912
912
|
},
|
|
913
913
|
content: {
|
|
914
|
-
duration: webAnimationContentDuration$
|
|
915
|
-
easing: webAnimationContentEasing$
|
|
914
|
+
duration: webAnimationContentDuration$1,
|
|
915
|
+
easing: webAnimationContentEasing$1
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
};
|
|
@@ -968,15 +968,15 @@ const choices = {
|
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
970
|
|
|
971
|
-
const webAnimationContentDuration
|
|
972
|
-
const webAnimationContentEasing
|
|
971
|
+
const webAnimationContentDuration = 400;
|
|
972
|
+
const webAnimationContentEasing = {
|
|
973
973
|
x1: 0.77,
|
|
974
974
|
y1: 0,
|
|
975
975
|
x2: 0.175,
|
|
976
976
|
y2: 1
|
|
977
977
|
};
|
|
978
|
-
const webAnimationOverlayDuration
|
|
979
|
-
const webAnimationOverlayEasing
|
|
978
|
+
const webAnimationOverlayDuration = 250;
|
|
979
|
+
const webAnimationOverlayEasing = {
|
|
980
980
|
x1: 0.42,
|
|
981
981
|
y1: 0,
|
|
982
982
|
x2: 1,
|
|
@@ -998,12 +998,12 @@ const dialogModal = {
|
|
|
998
998
|
},
|
|
999
999
|
animation: {
|
|
1000
1000
|
overlay: {
|
|
1001
|
-
duration: webAnimationOverlayDuration
|
|
1002
|
-
easing: webAnimationOverlayEasing
|
|
1001
|
+
duration: webAnimationOverlayDuration,
|
|
1002
|
+
easing: webAnimationOverlayEasing
|
|
1003
1003
|
},
|
|
1004
1004
|
content: {
|
|
1005
|
-
duration: webAnimationContentDuration
|
|
1006
|
-
easing: webAnimationContentEasing
|
|
1005
|
+
duration: webAnimationContentDuration,
|
|
1006
|
+
easing: webAnimationContentEasing
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
@@ -1912,20 +1912,6 @@ const forms = {
|
|
|
1912
1912
|
timePicker
|
|
1913
1913
|
};
|
|
1914
1914
|
|
|
1915
|
-
const webAnimationContentDuration = 600;
|
|
1916
|
-
const webAnimationContentEasing = {
|
|
1917
|
-
x1: 0.77,
|
|
1918
|
-
y1: 0,
|
|
1919
|
-
x2: 0.175,
|
|
1920
|
-
y2: 1
|
|
1921
|
-
};
|
|
1922
|
-
const webAnimationOverlayDuration = 250;
|
|
1923
|
-
const webAnimationOverlayEasing = {
|
|
1924
|
-
x1: 0.42,
|
|
1925
|
-
y1: 0,
|
|
1926
|
-
x2: 1,
|
|
1927
|
-
y2: 1
|
|
1928
|
-
};
|
|
1929
1915
|
const fullscreenModal = {
|
|
1930
1916
|
header: {
|
|
1931
1917
|
height: 56
|
|
@@ -1939,12 +1925,22 @@ const fullscreenModal = {
|
|
|
1939
1925
|
},
|
|
1940
1926
|
animation: {
|
|
1941
1927
|
overlay: {
|
|
1942
|
-
duration:
|
|
1943
|
-
easing:
|
|
1928
|
+
duration: 250,
|
|
1929
|
+
easing: {
|
|
1930
|
+
x1: 0.42,
|
|
1931
|
+
y1: 0,
|
|
1932
|
+
x2: 1,
|
|
1933
|
+
y2: 1
|
|
1934
|
+
}
|
|
1944
1935
|
},
|
|
1945
1936
|
content: {
|
|
1946
|
-
duration:
|
|
1947
|
-
easing:
|
|
1937
|
+
duration: 600,
|
|
1938
|
+
easing: {
|
|
1939
|
+
x1: 0.77,
|
|
1940
|
+
y1: 0,
|
|
1941
|
+
x2: 0.175,
|
|
1942
|
+
y2: 1
|
|
1943
|
+
}
|
|
1948
1944
|
}
|
|
1949
1945
|
}
|
|
1950
1946
|
};
|
|
@@ -4361,17 +4357,17 @@ const contentAnimationClassNames = {
|
|
|
4361
4357
|
exit: contentAnimatioExit,
|
|
4362
4358
|
exitActive: contentAnimatioExitActive
|
|
4363
4359
|
};
|
|
4364
|
-
const opacityEnter
|
|
4365
|
-
const opacityEnterActive
|
|
4366
|
-
const opacityExit
|
|
4367
|
-
const opacityExitActive
|
|
4368
|
-
const opacityClassNames
|
|
4369
|
-
appear: opacityEnter
|
|
4370
|
-
appearActive: opacityEnterActive
|
|
4371
|
-
enter: opacityEnter
|
|
4372
|
-
enterActive: opacityEnterActive
|
|
4373
|
-
exit: opacityExit
|
|
4374
|
-
exitActive: opacityExitActive
|
|
4360
|
+
const opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
|
|
4361
|
+
const opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
|
|
4362
|
+
const opacityExit = "kitt-u_opacityExit_ogyytm1";
|
|
4363
|
+
const opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
|
|
4364
|
+
const opacityClassNames = {
|
|
4365
|
+
appear: opacityEnter,
|
|
4366
|
+
appearActive: opacityEnterActive,
|
|
4367
|
+
enter: opacityEnter,
|
|
4368
|
+
enterActive: opacityEnterActive,
|
|
4369
|
+
exit: opacityExit,
|
|
4370
|
+
exitActive: opacityExitActive
|
|
4375
4371
|
};
|
|
4376
4372
|
function CardModalAnimation({
|
|
4377
4373
|
children,
|
|
@@ -4407,7 +4403,7 @@ function CardModalAnimation({
|
|
|
4407
4403
|
...sharedProps,
|
|
4408
4404
|
nodeRef: overlayRef,
|
|
4409
4405
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4410
|
-
classNames: opacityClassNames
|
|
4406
|
+
classNames: opacityClassNames,
|
|
4411
4407
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
4412
4408
|
ref: overlayRef,
|
|
4413
4409
|
onPress: onClose
|
|
@@ -4710,8 +4706,7 @@ function AnimatedChoiceItemView({
|
|
|
4710
4706
|
isPressed,
|
|
4711
4707
|
isDisabled,
|
|
4712
4708
|
isSelected,
|
|
4713
|
-
hasError
|
|
4714
|
-
shouldExpand = false
|
|
4709
|
+
hasError
|
|
4715
4710
|
}) {
|
|
4716
4711
|
const theme = useTheme();
|
|
4717
4712
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4730,8 +4725,6 @@ function AnimatedChoiceItemView({
|
|
|
4730
4725
|
isPressed
|
|
4731
4726
|
}),
|
|
4732
4727
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4733
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4734
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4735
4728
|
_web: {
|
|
4736
4729
|
style: {
|
|
4737
4730
|
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
@@ -4767,7 +4760,6 @@ function ChoiceItem({
|
|
|
4767
4760
|
value,
|
|
4768
4761
|
selected,
|
|
4769
4762
|
disabled,
|
|
4770
|
-
shouldExpand = false,
|
|
4771
4763
|
children,
|
|
4772
4764
|
isPressedInternal,
|
|
4773
4765
|
isHoveredInternal,
|
|
@@ -4803,8 +4795,6 @@ function ChoiceItem({
|
|
|
4803
4795
|
checked: selected
|
|
4804
4796
|
},
|
|
4805
4797
|
style: style,
|
|
4806
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4807
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4808
4798
|
onBlur: onBlur,
|
|
4809
4799
|
onFocus: onFocus,
|
|
4810
4800
|
onPress: e => {
|
|
@@ -4824,8 +4814,6 @@ function ChoiceItem({
|
|
|
4824
4814
|
});
|
|
4825
4815
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4826
4816
|
space: "kitt.2",
|
|
4827
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4828
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4829
4817
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4830
4818
|
animatedStyles: backgroundStyles,
|
|
4831
4819
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4833,13 +4821,10 @@ function ChoiceItem({
|
|
|
4833
4821
|
isSelected: selected,
|
|
4834
4822
|
isPressed: isPressed || isPressedInternal,
|
|
4835
4823
|
hasError: hasError,
|
|
4836
|
-
shouldExpand: shouldExpand,
|
|
4837
4824
|
size: size,
|
|
4838
4825
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
|
|
4839
4826
|
alignItems: "center",
|
|
4840
4827
|
space: "kitt.2",
|
|
4841
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4842
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4843
4828
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
4844
4829
|
color: textColor,
|
|
4845
4830
|
icon: icon
|
|
@@ -4868,49 +4853,36 @@ function ChoiceItem({
|
|
|
4868
4853
|
function ChoiceItemContainer({
|
|
4869
4854
|
children,
|
|
4870
4855
|
direction,
|
|
4871
|
-
shouldExpand,
|
|
4872
4856
|
isLast
|
|
4873
4857
|
}) {
|
|
4874
4858
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
4875
|
-
const
|
|
4859
|
+
const flexProps = direction === 'row' ? {
|
|
4876
4860
|
flexGrow: 1,
|
|
4877
4861
|
flexShrink: 1,
|
|
4878
4862
|
flexBasis: 0
|
|
4879
4863
|
} : {};
|
|
4880
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4881
|
-
flexGrow: 1,
|
|
4882
|
-
flexShrink: 1
|
|
4883
|
-
} : {};
|
|
4884
4864
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4885
4865
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
4886
4866
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
4887
|
-
...
|
|
4888
|
-
...shouldExpandFlexProps,
|
|
4867
|
+
...flexProps,
|
|
4889
4868
|
children: children
|
|
4890
4869
|
});
|
|
4891
4870
|
}
|
|
4892
4871
|
|
|
4893
4872
|
function ChoicesContainer({
|
|
4894
4873
|
direction,
|
|
4895
|
-
shouldExpand,
|
|
4896
4874
|
contentContainerStyle,
|
|
4897
4875
|
...props
|
|
4898
4876
|
}) {
|
|
4899
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4900
|
-
flexGrow: 1,
|
|
4901
|
-
flexShrink: 1
|
|
4902
|
-
} : {};
|
|
4903
4877
|
if (direction === 'row') {
|
|
4904
|
-
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
4878
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
4905
4879
|
horizontal: true,
|
|
4906
|
-
contentContainerStyle:
|
|
4907
|
-
...props
|
|
4908
|
-
...shouldExpandFlexProps
|
|
4880
|
+
contentContainerStyle: contentContainerStyle,
|
|
4881
|
+
...props
|
|
4909
4882
|
});
|
|
4910
4883
|
}
|
|
4911
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4912
|
-
...props
|
|
4913
|
-
...shouldExpandFlexProps
|
|
4884
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
4885
|
+
...props
|
|
4914
4886
|
});
|
|
4915
4887
|
}
|
|
4916
4888
|
|
|
@@ -4922,7 +4894,6 @@ function Choices({
|
|
|
4922
4894
|
type,
|
|
4923
4895
|
direction = 'column',
|
|
4924
4896
|
disabled,
|
|
4925
|
-
shouldExpand = false,
|
|
4926
4897
|
children,
|
|
4927
4898
|
value,
|
|
4928
4899
|
onPress,
|
|
@@ -4939,7 +4910,6 @@ function Choices({
|
|
|
4939
4910
|
const sharedProps = {
|
|
4940
4911
|
type,
|
|
4941
4912
|
disabled,
|
|
4942
|
-
shouldExpand,
|
|
4943
4913
|
onPress: !isForm ? onPress : undefined,
|
|
4944
4914
|
onChange: isForm ? newValue => {
|
|
4945
4915
|
setCurrentValue(newValue);
|
|
@@ -4951,7 +4921,6 @@ function Choices({
|
|
|
4951
4921
|
};
|
|
4952
4922
|
return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
|
|
4953
4923
|
direction: direction,
|
|
4954
|
-
shouldExpand: shouldExpand,
|
|
4955
4924
|
testID: testID,
|
|
4956
4925
|
id: id,
|
|
4957
4926
|
style: style,
|
|
@@ -4963,7 +4932,6 @@ function Choices({
|
|
|
4963
4932
|
});
|
|
4964
4933
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
4965
4934
|
direction: direction,
|
|
4966
|
-
shouldExpand: shouldExpand,
|
|
4967
4935
|
isLast: index === childrenArray.length - 1,
|
|
4968
4936
|
children: element
|
|
4969
4937
|
}, child.key);
|
|
@@ -7774,29 +7742,23 @@ function FullscreenModalFooter({
|
|
|
7774
7742
|
});
|
|
7775
7743
|
}
|
|
7776
7744
|
|
|
7777
|
-
const
|
|
7778
|
-
|
|
7779
|
-
const
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
exit: slideInFromBottomExit,
|
|
7787
|
-
exitActive: slideInFromBottomExitActive
|
|
7745
|
+
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"};
|
|
7746
|
+
|
|
7747
|
+
const overlayClassNames = {
|
|
7748
|
+
appear: styles$1['overlay-enter'],
|
|
7749
|
+
appearActive: styles$1['overlay-enter-active'],
|
|
7750
|
+
enter: styles$1['overlay-enter'],
|
|
7751
|
+
enterActive: styles$1['overlay-enter-active'],
|
|
7752
|
+
exit: styles$1['overlay-exit'],
|
|
7753
|
+
exitActive: styles$1['overlay-exit-active']
|
|
7788
7754
|
};
|
|
7789
|
-
const
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
enter: opacityEnter,
|
|
7797
|
-
enterActive: opacityEnterActive,
|
|
7798
|
-
exit: opacityExit,
|
|
7799
|
-
exitActive: opacityExitActive
|
|
7755
|
+
const slideInClassNames = {
|
|
7756
|
+
appear: styles$1['content-enter'],
|
|
7757
|
+
appearActive: styles$1['content-enter-active'],
|
|
7758
|
+
enter: styles$1['content-enter'],
|
|
7759
|
+
enterActive: styles$1['content-enter-active'],
|
|
7760
|
+
exit: styles$1['content-exit'],
|
|
7761
|
+
exitActive: styles$1['content-exit-active']
|
|
7800
7762
|
};
|
|
7801
7763
|
function FullscreenModalAnimation({
|
|
7802
7764
|
children,
|
|
@@ -7824,31 +7786,44 @@ function FullscreenModalAnimation({
|
|
|
7824
7786
|
appear,
|
|
7825
7787
|
unmountOnExit
|
|
7826
7788
|
};
|
|
7827
|
-
|
|
7789
|
+
|
|
7790
|
+
// CSS custom properties for theme-based animation values
|
|
7791
|
+
const overlayEasing = animation.overlay.easing;
|
|
7792
|
+
const contentEasing = animation.content.easing;
|
|
7793
|
+
const cssVariables = {
|
|
7794
|
+
'--overlay-duration': `${animation.overlay.duration}ms`,
|
|
7795
|
+
'--overlay-easing': `cubic-bezier(${overlayEasing.x1}, ${overlayEasing.y1}, ${overlayEasing.x2}, ${overlayEasing.y2})`,
|
|
7796
|
+
'--content-duration': `${animation.content.duration}ms`,
|
|
7797
|
+
'--content-easing': `cubic-bezier(${contentEasing.x1}, ${contentEasing.y1}, ${contentEasing.x2}, ${contentEasing.y2})`
|
|
7798
|
+
};
|
|
7799
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7828
7800
|
...props,
|
|
7829
|
-
children:
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
children:
|
|
7850
|
-
|
|
7851
|
-
|
|
7801
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7802
|
+
style: cssVariables,
|
|
7803
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
7804
|
+
...sharedProps,
|
|
7805
|
+
nodeRef: overlayRef,
|
|
7806
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
7807
|
+
classNames: overlayClassNames,
|
|
7808
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
7809
|
+
ref: overlayRef,
|
|
7810
|
+
onPress: onClose
|
|
7811
|
+
})
|
|
7812
|
+
}), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
7813
|
+
...sharedProps,
|
|
7814
|
+
nodeRef: contentRef,
|
|
7815
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7816
|
+
classNames: slideInClassNames,
|
|
7817
|
+
onEnter: onEnter,
|
|
7818
|
+
onEntered: onEntered,
|
|
7819
|
+
onExit: onExit,
|
|
7820
|
+
onExited: onExited,
|
|
7821
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7822
|
+
ref: contentRef,
|
|
7823
|
+
children: children
|
|
7824
|
+
})
|
|
7825
|
+
})]
|
|
7826
|
+
})
|
|
7852
7827
|
});
|
|
7853
7828
|
}
|
|
7854
7829
|
|