@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;}
|
|
@@ -3,7 +3,7 @@ import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, I
|
|
|
3
3
|
export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'native-base';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
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';
|
|
6
|
-
import { Animated, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
6
|
+
import { Animated, Easing, ScrollView as ScrollView$2, View as View$2, StyleSheet, Modal, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
7
7
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import { CSSTransition } from 'react-transition-group';
|
|
@@ -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
|
};
|
|
@@ -1903,20 +1903,6 @@ const forms = {
|
|
|
1903
1903
|
timePicker
|
|
1904
1904
|
};
|
|
1905
1905
|
|
|
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
1906
|
const fullscreenModal = {
|
|
1921
1907
|
header: {
|
|
1922
1908
|
height: 56
|
|
@@ -1930,12 +1916,22 @@ const fullscreenModal = {
|
|
|
1930
1916
|
},
|
|
1931
1917
|
animation: {
|
|
1932
1918
|
overlay: {
|
|
1933
|
-
duration:
|
|
1934
|
-
easing:
|
|
1919
|
+
duration: 250,
|
|
1920
|
+
easing: {
|
|
1921
|
+
x1: 0.42,
|
|
1922
|
+
y1: 0,
|
|
1923
|
+
x2: 1,
|
|
1924
|
+
y2: 1
|
|
1925
|
+
}
|
|
1935
1926
|
},
|
|
1936
1927
|
content: {
|
|
1937
|
-
duration:
|
|
1938
|
-
easing:
|
|
1928
|
+
duration: 600,
|
|
1929
|
+
easing: {
|
|
1930
|
+
x1: 0.77,
|
|
1931
|
+
y1: 0,
|
|
1932
|
+
x2: 0.175,
|
|
1933
|
+
y2: 1
|
|
1934
|
+
}
|
|
1939
1935
|
}
|
|
1940
1936
|
}
|
|
1941
1937
|
};
|
|
@@ -4352,17 +4348,17 @@ const contentAnimationClassNames = {
|
|
|
4352
4348
|
exit: contentAnimatioExit,
|
|
4353
4349
|
exitActive: contentAnimatioExitActive
|
|
4354
4350
|
};
|
|
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
|
|
4351
|
+
const opacityEnter = "kitt-u_opacityEnter_o1ae40dx";
|
|
4352
|
+
const opacityEnterActive = "kitt-u_opacityEnterActive_o1t4vl7b";
|
|
4353
|
+
const opacityExit = "kitt-u_opacityExit_ogyytm1";
|
|
4354
|
+
const opacityExitActive = "kitt-u_opacityExitActive_o18xvk52";
|
|
4355
|
+
const opacityClassNames = {
|
|
4356
|
+
appear: opacityEnter,
|
|
4357
|
+
appearActive: opacityEnterActive,
|
|
4358
|
+
enter: opacityEnter,
|
|
4359
|
+
enterActive: opacityEnterActive,
|
|
4360
|
+
exit: opacityExit,
|
|
4361
|
+
exitActive: opacityExitActive
|
|
4366
4362
|
};
|
|
4367
4363
|
function CardModalAnimation({
|
|
4368
4364
|
children,
|
|
@@ -4398,7 +4394,7 @@ function CardModalAnimation({
|
|
|
4398
4394
|
...sharedProps,
|
|
4399
4395
|
nodeRef: overlayRef,
|
|
4400
4396
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4401
|
-
classNames: opacityClassNames
|
|
4397
|
+
classNames: opacityClassNames,
|
|
4402
4398
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4403
4399
|
ref: overlayRef,
|
|
4404
4400
|
onPress: onClose
|
|
@@ -4701,8 +4697,7 @@ function AnimatedChoiceItemView({
|
|
|
4701
4697
|
isPressed,
|
|
4702
4698
|
isDisabled,
|
|
4703
4699
|
isSelected,
|
|
4704
|
-
hasError
|
|
4705
|
-
shouldExpand = false
|
|
4700
|
+
hasError
|
|
4706
4701
|
}) {
|
|
4707
4702
|
const theme = useTheme();
|
|
4708
4703
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -4721,8 +4716,6 @@ function AnimatedChoiceItemView({
|
|
|
4721
4716
|
isPressed
|
|
4722
4717
|
}),
|
|
4723
4718
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4724
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4725
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4726
4719
|
_web: {
|
|
4727
4720
|
style: {
|
|
4728
4721
|
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
@@ -4758,7 +4751,6 @@ function ChoiceItem({
|
|
|
4758
4751
|
value,
|
|
4759
4752
|
selected,
|
|
4760
4753
|
disabled,
|
|
4761
|
-
shouldExpand = false,
|
|
4762
4754
|
children,
|
|
4763
4755
|
isPressedInternal,
|
|
4764
4756
|
isHoveredInternal,
|
|
@@ -4794,8 +4786,6 @@ function ChoiceItem({
|
|
|
4794
4786
|
checked: selected
|
|
4795
4787
|
},
|
|
4796
4788
|
style: style,
|
|
4797
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4798
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4799
4789
|
onBlur: onBlur,
|
|
4800
4790
|
onFocus: onFocus,
|
|
4801
4791
|
onPress: e => {
|
|
@@ -4815,8 +4805,6 @@ function ChoiceItem({
|
|
|
4815
4805
|
});
|
|
4816
4806
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4817
4807
|
space: "kitt.2",
|
|
4818
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4819
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4820
4808
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4821
4809
|
animatedStyles: backgroundStyles,
|
|
4822
4810
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4824,13 +4812,10 @@ function ChoiceItem({
|
|
|
4824
4812
|
isSelected: selected,
|
|
4825
4813
|
isPressed: isPressed || isPressedInternal,
|
|
4826
4814
|
hasError: hasError,
|
|
4827
|
-
shouldExpand: shouldExpand,
|
|
4828
4815
|
size: size,
|
|
4829
4816
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
4830
4817
|
alignItems: "center",
|
|
4831
4818
|
space: "kitt.2",
|
|
4832
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4833
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4834
4819
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
4835
4820
|
color: textColor,
|
|
4836
4821
|
icon: icon
|
|
@@ -4859,49 +4844,36 @@ function ChoiceItem({
|
|
|
4859
4844
|
function ChoiceItemContainer({
|
|
4860
4845
|
children,
|
|
4861
4846
|
direction,
|
|
4862
|
-
shouldExpand,
|
|
4863
4847
|
isLast
|
|
4864
4848
|
}) {
|
|
4865
4849
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
4866
|
-
const
|
|
4850
|
+
const flexProps = direction === 'row' ? {
|
|
4867
4851
|
flexGrow: 1,
|
|
4868
4852
|
flexShrink: 1,
|
|
4869
4853
|
flexBasis: 0
|
|
4870
4854
|
} : {};
|
|
4871
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4872
|
-
flexGrow: 1,
|
|
4873
|
-
flexShrink: 1
|
|
4874
|
-
} : {};
|
|
4875
4855
|
return /*#__PURE__*/jsx(View, {
|
|
4876
4856
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
4877
4857
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
4878
|
-
...
|
|
4879
|
-
...shouldExpandFlexProps,
|
|
4858
|
+
...flexProps,
|
|
4880
4859
|
children: children
|
|
4881
4860
|
});
|
|
4882
4861
|
}
|
|
4883
4862
|
|
|
4884
4863
|
function ChoicesContainer({
|
|
4885
4864
|
direction,
|
|
4886
|
-
shouldExpand,
|
|
4887
4865
|
contentContainerStyle,
|
|
4888
4866
|
...props
|
|
4889
4867
|
}) {
|
|
4890
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4891
|
-
flexGrow: 1,
|
|
4892
|
-
flexShrink: 1
|
|
4893
|
-
} : {};
|
|
4894
4868
|
if (direction === 'row') {
|
|
4895
|
-
return /*#__PURE__*/jsx(ScrollView, {
|
|
4869
|
+
return /*#__PURE__*/jsx(ScrollView$2, {
|
|
4896
4870
|
horizontal: true,
|
|
4897
|
-
contentContainerStyle:
|
|
4898
|
-
...props
|
|
4899
|
-
...shouldExpandFlexProps
|
|
4871
|
+
contentContainerStyle: contentContainerStyle,
|
|
4872
|
+
...props
|
|
4900
4873
|
});
|
|
4901
4874
|
}
|
|
4902
|
-
return /*#__PURE__*/jsx(View, {
|
|
4903
|
-
...props
|
|
4904
|
-
...shouldExpandFlexProps
|
|
4875
|
+
return /*#__PURE__*/jsx(View$2, {
|
|
4876
|
+
...props
|
|
4905
4877
|
});
|
|
4906
4878
|
}
|
|
4907
4879
|
|
|
@@ -4913,7 +4885,6 @@ function Choices({
|
|
|
4913
4885
|
type,
|
|
4914
4886
|
direction = 'column',
|
|
4915
4887
|
disabled,
|
|
4916
|
-
shouldExpand = false,
|
|
4917
4888
|
children,
|
|
4918
4889
|
value,
|
|
4919
4890
|
onPress,
|
|
@@ -4930,7 +4901,6 @@ function Choices({
|
|
|
4930
4901
|
const sharedProps = {
|
|
4931
4902
|
type,
|
|
4932
4903
|
disabled,
|
|
4933
|
-
shouldExpand,
|
|
4934
4904
|
onPress: !isForm ? onPress : undefined,
|
|
4935
4905
|
onChange: isForm ? newValue => {
|
|
4936
4906
|
setCurrentValue(newValue);
|
|
@@ -4942,7 +4912,6 @@ function Choices({
|
|
|
4942
4912
|
};
|
|
4943
4913
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
4944
4914
|
direction: direction,
|
|
4945
|
-
shouldExpand: shouldExpand,
|
|
4946
4915
|
testID: testID,
|
|
4947
4916
|
id: id,
|
|
4948
4917
|
style: style,
|
|
@@ -4954,7 +4923,6 @@ function Choices({
|
|
|
4954
4923
|
});
|
|
4955
4924
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
4956
4925
|
direction: direction,
|
|
4957
|
-
shouldExpand: shouldExpand,
|
|
4958
4926
|
isLast: index === childrenArray.length - 1,
|
|
4959
4927
|
children: element
|
|
4960
4928
|
}, child.key);
|
|
@@ -7765,29 +7733,23 @@ function FullscreenModalFooter({
|
|
|
7765
7733
|
});
|
|
7766
7734
|
}
|
|
7767
7735
|
|
|
7768
|
-
const
|
|
7769
|
-
|
|
7770
|
-
const
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
exit: slideInFromBottomExit,
|
|
7778
|
-
exitActive: slideInFromBottomExitActive
|
|
7736
|
+
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"};
|
|
7737
|
+
|
|
7738
|
+
const overlayClassNames = {
|
|
7739
|
+
appear: styles$1['overlay-enter'],
|
|
7740
|
+
appearActive: styles$1['overlay-enter-active'],
|
|
7741
|
+
enter: styles$1['overlay-enter'],
|
|
7742
|
+
enterActive: styles$1['overlay-enter-active'],
|
|
7743
|
+
exit: styles$1['overlay-exit'],
|
|
7744
|
+
exitActive: styles$1['overlay-exit-active']
|
|
7779
7745
|
};
|
|
7780
|
-
const
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
enter: opacityEnter,
|
|
7788
|
-
enterActive: opacityEnterActive,
|
|
7789
|
-
exit: opacityExit,
|
|
7790
|
-
exitActive: opacityExitActive
|
|
7746
|
+
const slideInClassNames = {
|
|
7747
|
+
appear: styles$1['content-enter'],
|
|
7748
|
+
appearActive: styles$1['content-enter-active'],
|
|
7749
|
+
enter: styles$1['content-enter'],
|
|
7750
|
+
enterActive: styles$1['content-enter-active'],
|
|
7751
|
+
exit: styles$1['content-exit'],
|
|
7752
|
+
exitActive: styles$1['content-exit-active']
|
|
7791
7753
|
};
|
|
7792
7754
|
function FullscreenModalAnimation({
|
|
7793
7755
|
children,
|
|
@@ -7815,31 +7777,44 @@ function FullscreenModalAnimation({
|
|
|
7815
7777
|
appear,
|
|
7816
7778
|
unmountOnExit
|
|
7817
7779
|
};
|
|
7818
|
-
|
|
7780
|
+
|
|
7781
|
+
// CSS custom properties for theme-based animation values
|
|
7782
|
+
const overlayEasing = animation.overlay.easing;
|
|
7783
|
+
const contentEasing = animation.content.easing;
|
|
7784
|
+
const cssVariables = {
|
|
7785
|
+
'--overlay-duration': `${animation.overlay.duration}ms`,
|
|
7786
|
+
'--overlay-easing': `cubic-bezier(${overlayEasing.x1}, ${overlayEasing.y1}, ${overlayEasing.x2}, ${overlayEasing.y2})`,
|
|
7787
|
+
'--content-duration': `${animation.content.duration}ms`,
|
|
7788
|
+
'--content-easing': `cubic-bezier(${contentEasing.x1}, ${contentEasing.y1}, ${contentEasing.x2}, ${contentEasing.y2})`
|
|
7789
|
+
};
|
|
7790
|
+
return /*#__PURE__*/jsx(View, {
|
|
7819
7791
|
...props,
|
|
7820
|
-
children:
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
children:
|
|
7841
|
-
|
|
7842
|
-
|
|
7792
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
7793
|
+
style: cssVariables,
|
|
7794
|
+
children: [/*#__PURE__*/jsx(CSSTransition, {
|
|
7795
|
+
...sharedProps,
|
|
7796
|
+
nodeRef: overlayRef,
|
|
7797
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
7798
|
+
classNames: overlayClassNames,
|
|
7799
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
7800
|
+
ref: overlayRef,
|
|
7801
|
+
onPress: onClose
|
|
7802
|
+
})
|
|
7803
|
+
}), /*#__PURE__*/jsx(CSSTransition, {
|
|
7804
|
+
...sharedProps,
|
|
7805
|
+
nodeRef: contentRef,
|
|
7806
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7807
|
+
classNames: slideInClassNames,
|
|
7808
|
+
onEnter: onEnter,
|
|
7809
|
+
onEntered: onEntered,
|
|
7810
|
+
onExit: onExit,
|
|
7811
|
+
onExited: onExited,
|
|
7812
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7813
|
+
ref: contentRef,
|
|
7814
|
+
children: children
|
|
7815
|
+
})
|
|
7816
|
+
})]
|
|
7817
|
+
})
|
|
7843
7818
|
});
|
|
7844
7819
|
}
|
|
7845
7820
|
|