@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.0 → 32.3.1-canary.e5e3462569f2f32f91e8d06437eb0642c84cb55f.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 +11 -2
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +2 -1
- 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 +2 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +2 -1
- 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 +69 -48
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +69 -48
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +70 -46
- 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 +135 -104
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +71 -47
- 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 +136 -105
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +72 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +135 -104
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -38
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -38
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -38
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -38
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -38
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -38
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -38
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -38
- 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
package/dist/index.es.web.js
CHANGED
|
@@ -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,
|
|
14
|
+
import { Animated, Easing, 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$
|
|
877
|
-
var webAnimationContentEasing$
|
|
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$
|
|
884
|
-
var webAnimationOverlayEasing$
|
|
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$
|
|
920
|
-
easing: webAnimationOverlayEasing$
|
|
919
|
+
duration: webAnimationOverlayDuration$1,
|
|
920
|
+
easing: webAnimationOverlayEasing$1
|
|
921
921
|
},
|
|
922
922
|
content: {
|
|
923
|
-
duration: webAnimationContentDuration$
|
|
924
|
-
easing: webAnimationContentEasing$
|
|
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
|
|
981
|
-
var webAnimationContentEasing
|
|
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
|
|
988
|
-
var webAnimationOverlayEasing
|
|
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
|
|
1011
|
-
easing: webAnimationOverlayEasing
|
|
1010
|
+
duration: webAnimationOverlayDuration,
|
|
1011
|
+
easing: webAnimationOverlayEasing
|
|
1012
1012
|
},
|
|
1013
1013
|
content: {
|
|
1014
|
-
duration: webAnimationContentDuration
|
|
1015
|
-
easing: webAnimationContentEasing
|
|
1014
|
+
duration: webAnimationContentDuration,
|
|
1015
|
+
easing: webAnimationContentEasing
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
@@ -1070,10 +1070,10 @@ var autocomplete = {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
|
|
1072
1072
|
var checkbox = {
|
|
1073
|
-
borderWidth:
|
|
1074
|
-
borderRadius:
|
|
1075
|
-
height:
|
|
1076
|
-
width:
|
|
1073
|
+
borderWidth: 2,
|
|
1074
|
+
borderRadius: 5,
|
|
1075
|
+
height: 20,
|
|
1076
|
+
width: 20,
|
|
1077
1077
|
iconSize: 14,
|
|
1078
1078
|
markColor: colors.uiBackgroundLight,
|
|
1079
1079
|
textSpacing: 10,
|
|
@@ -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:
|
|
1952
|
-
easing:
|
|
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:
|
|
1956
|
-
easing:
|
|
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
|
|
4397
|
-
var opacityEnterActive
|
|
4398
|
-
var opacityExit
|
|
4399
|
-
var opacityExitActive
|
|
4400
|
-
var opacityClassNames
|
|
4401
|
-
appear: opacityEnter
|
|
4402
|
-
appearActive: opacityEnterActive
|
|
4403
|
-
enter: opacityEnter
|
|
4404
|
-
enterActive: opacityEnterActive
|
|
4405
|
-
exit: opacityExit
|
|
4406
|
-
exitActive: opacityExitActive
|
|
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
|
|
4436
|
+
classNames: opacityClassNames,
|
|
4441
4437
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4442
4438
|
ref: overlayRef,
|
|
4443
4439
|
onPress: onClose
|
|
@@ -4742,7 +4738,9 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4742
4738
|
isPressed = _ref.isPressed,
|
|
4743
4739
|
isDisabled = _ref.isDisabled,
|
|
4744
4740
|
isSelected = _ref.isSelected,
|
|
4745
|
-
hasError = _ref.hasError
|
|
4741
|
+
hasError = _ref.hasError,
|
|
4742
|
+
_ref$shouldExpand = _ref.shouldExpand,
|
|
4743
|
+
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand;
|
|
4746
4744
|
var theme = useTheme();
|
|
4747
4745
|
return /*#__PURE__*/jsx(View, {
|
|
4748
4746
|
position: "relative",
|
|
@@ -4760,6 +4758,8 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4760
4758
|
isPressed: isPressed
|
|
4761
4759
|
}),
|
|
4762
4760
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4761
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4762
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4763
4763
|
_web: {
|
|
4764
4764
|
style: {
|
|
4765
4765
|
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
@@ -4796,6 +4796,8 @@ function ChoiceItem(_ref) {
|
|
|
4796
4796
|
value = _ref.value,
|
|
4797
4797
|
selected = _ref.selected,
|
|
4798
4798
|
disabled = _ref.disabled,
|
|
4799
|
+
_ref$shouldExpand = _ref.shouldExpand,
|
|
4800
|
+
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
|
|
4799
4801
|
_children = _ref.children,
|
|
4800
4802
|
isPressedInternal = _ref.isPressedInternal,
|
|
4801
4803
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
@@ -4829,6 +4831,8 @@ function ChoiceItem(_ref) {
|
|
|
4829
4831
|
checked: selected
|
|
4830
4832
|
},
|
|
4831
4833
|
style: style,
|
|
4834
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4835
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4832
4836
|
onBlur: onBlur,
|
|
4833
4837
|
onFocus: onFocus,
|
|
4834
4838
|
onPress: function (e) {
|
|
@@ -4847,6 +4851,8 @@ function ChoiceItem(_ref) {
|
|
|
4847
4851
|
});
|
|
4848
4852
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4849
4853
|
space: "kitt.2",
|
|
4854
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4855
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4850
4856
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4851
4857
|
animatedStyles: backgroundStyles,
|
|
4852
4858
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4854,10 +4860,13 @@ function ChoiceItem(_ref) {
|
|
|
4854
4860
|
isSelected: selected,
|
|
4855
4861
|
isPressed: isPressed || isPressedInternal,
|
|
4856
4862
|
hasError: hasError,
|
|
4863
|
+
shouldExpand: shouldExpand,
|
|
4857
4864
|
size: size,
|
|
4858
4865
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
4859
4866
|
alignItems: "center",
|
|
4860
4867
|
space: "kitt.2",
|
|
4868
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4869
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4861
4870
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
4862
4871
|
color: textColor,
|
|
4863
4872
|
icon: icon
|
|
@@ -4886,33 +4895,43 @@ function ChoiceItem(_ref) {
|
|
|
4886
4895
|
function ChoiceItemContainer(_ref) {
|
|
4887
4896
|
var children = _ref.children,
|
|
4888
4897
|
direction = _ref.direction,
|
|
4898
|
+
shouldExpand = _ref.shouldExpand,
|
|
4889
4899
|
isLast = _ref.isLast;
|
|
4890
4900
|
var currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
4891
|
-
var
|
|
4901
|
+
var directionFlexProps = direction === 'row' ? {
|
|
4892
4902
|
flexGrow: 1,
|
|
4893
4903
|
flexShrink: 1,
|
|
4894
4904
|
flexBasis: 0
|
|
4895
4905
|
} : {};
|
|
4896
|
-
|
|
4906
|
+
var shouldExpandFlexProps = shouldExpand ? {
|
|
4907
|
+
flexGrow: 1,
|
|
4908
|
+
flexShrink: 1
|
|
4909
|
+
} : {};
|
|
4910
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
|
|
4897
4911
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
4898
4912
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined
|
|
4899
|
-
},
|
|
4913
|
+
}, directionFlexProps), shouldExpandFlexProps), {}, {
|
|
4900
4914
|
children: children
|
|
4901
4915
|
}));
|
|
4902
4916
|
}
|
|
4903
4917
|
|
|
4904
|
-
var _excluded$D = ["direction", "contentContainerStyle"];
|
|
4918
|
+
var _excluded$D = ["direction", "shouldExpand", "contentContainerStyle"];
|
|
4905
4919
|
function ChoicesContainer(_ref) {
|
|
4906
4920
|
var direction = _ref.direction,
|
|
4921
|
+
shouldExpand = _ref.shouldExpand,
|
|
4907
4922
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4908
4923
|
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4924
|
+
var shouldExpandFlexProps = shouldExpand ? {
|
|
4925
|
+
flexGrow: 1,
|
|
4926
|
+
flexShrink: 1
|
|
4927
|
+
} : {};
|
|
4909
4928
|
if (direction === 'row') {
|
|
4910
|
-
return /*#__PURE__*/jsx(ScrollView
|
|
4929
|
+
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4911
4930
|
horizontal: true,
|
|
4912
|
-
contentContainerStyle: contentContainerStyle
|
|
4913
|
-
}, props));
|
|
4931
|
+
contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle
|
|
4932
|
+
}, props), shouldExpandFlexProps));
|
|
4914
4933
|
}
|
|
4915
|
-
return /*#__PURE__*/jsx(View
|
|
4934
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), shouldExpandFlexProps));
|
|
4916
4935
|
}
|
|
4917
4936
|
|
|
4918
4937
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4924,6 +4943,8 @@ function Choices(_ref2) {
|
|
|
4924
4943
|
_ref2$direction = _ref2.direction,
|
|
4925
4944
|
direction = _ref2$direction === void 0 ? 'column' : _ref2$direction,
|
|
4926
4945
|
disabled = _ref2.disabled,
|
|
4946
|
+
_ref2$shouldExpand = _ref2.shouldExpand,
|
|
4947
|
+
shouldExpand = _ref2$shouldExpand === void 0 ? false : _ref2$shouldExpand,
|
|
4927
4948
|
children = _ref2.children,
|
|
4928
4949
|
value = _ref2.value,
|
|
4929
4950
|
onPress = _ref2.onPress,
|
|
@@ -4942,6 +4963,7 @@ function Choices(_ref2) {
|
|
|
4942
4963
|
var sharedProps = {
|
|
4943
4964
|
type: type,
|
|
4944
4965
|
disabled: disabled,
|
|
4966
|
+
shouldExpand: shouldExpand,
|
|
4945
4967
|
onPress: !isForm ? onPress : undefined,
|
|
4946
4968
|
onChange: isForm ? function (newValue) {
|
|
4947
4969
|
setCurrentValue(newValue);
|
|
@@ -4953,6 +4975,7 @@ function Choices(_ref2) {
|
|
|
4953
4975
|
};
|
|
4954
4976
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
4955
4977
|
direction: direction,
|
|
4978
|
+
shouldExpand: shouldExpand,
|
|
4956
4979
|
testID: testID,
|
|
4957
4980
|
id: id,
|
|
4958
4981
|
style: style,
|
|
@@ -4963,6 +4986,7 @@ function Choices(_ref2) {
|
|
|
4963
4986
|
}, sharedProps));
|
|
4964
4987
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
4965
4988
|
direction: direction,
|
|
4989
|
+
shouldExpand: shouldExpand,
|
|
4966
4990
|
isLast: index === childrenArray.length - 1,
|
|
4967
4991
|
children: element
|
|
4968
4992
|
}, child.key);
|
|
@@ -7925,30 +7949,24 @@ function FullscreenModalFooter(_ref) {
|
|
|
7925
7949
|
}));
|
|
7926
7950
|
}
|
|
7927
7951
|
|
|
7952
|
+
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"};
|
|
7953
|
+
|
|
7928
7954
|
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7929
|
-
var
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
enter: slideInFromBottomEnter,
|
|
7937
|
-
enterActive: slideInFromBottomEnterActive,
|
|
7938
|
-
exit: slideInFromBottomExit,
|
|
7939
|
-
exitActive: slideInFromBottomExitActive
|
|
7955
|
+
var overlayClassNames = {
|
|
7956
|
+
appear: styles$1['overlay-enter'],
|
|
7957
|
+
appearActive: styles$1['overlay-enter-active'],
|
|
7958
|
+
enter: styles$1['overlay-enter'],
|
|
7959
|
+
enterActive: styles$1['overlay-enter-active'],
|
|
7960
|
+
exit: styles$1['overlay-exit'],
|
|
7961
|
+
exitActive: styles$1['overlay-exit-active']
|
|
7940
7962
|
};
|
|
7941
|
-
var
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
enter: opacityEnter,
|
|
7949
|
-
enterActive: opacityEnterActive,
|
|
7950
|
-
exit: opacityExit,
|
|
7951
|
-
exitActive: opacityExitActive
|
|
7963
|
+
var slideInClassNames = {
|
|
7964
|
+
appear: styles$1['content-enter'],
|
|
7965
|
+
appearActive: styles$1['content-enter-active'],
|
|
7966
|
+
enter: styles$1['content-enter'],
|
|
7967
|
+
enterActive: styles$1['content-enter-active'],
|
|
7968
|
+
exit: styles$1['content-exit'],
|
|
7969
|
+
exitActive: styles$1['content-exit-active']
|
|
7952
7970
|
};
|
|
7953
7971
|
function FullscreenModalAnimation(_ref) {
|
|
7954
7972
|
var children = _ref.children,
|
|
@@ -7976,28 +7994,41 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7976
7994
|
appear: appear,
|
|
7977
7995
|
unmountOnExit: unmountOnExit
|
|
7978
7996
|
};
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
7997
|
+
|
|
7998
|
+
// CSS custom properties for theme-based animation values
|
|
7999
|
+
var overlayEasing = animation.overlay.easing;
|
|
8000
|
+
var contentEasing = animation.content.easing;
|
|
8001
|
+
var cssVariables = {
|
|
8002
|
+
'--overlay-duration': "".concat(animation.overlay.duration, "ms"),
|
|
8003
|
+
'--overlay-easing': "cubic-bezier(".concat(overlayEasing.x1, ", ").concat(overlayEasing.y1, ", ").concat(overlayEasing.x2, ", ").concat(overlayEasing.y2, ")"),
|
|
8004
|
+
'--content-duration': "".concat(animation.content.duration, "ms"),
|
|
8005
|
+
'--content-easing': "cubic-bezier(".concat(contentEasing.x1, ", ").concat(contentEasing.y1, ", ").concat(contentEasing.x2, ", ").concat(contentEasing.y2, ")")
|
|
8006
|
+
};
|
|
8007
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
8008
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
8009
|
+
style: cssVariables,
|
|
8010
|
+
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
8011
|
+
nodeRef: overlayRef,
|
|
8012
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
8013
|
+
classNames: overlayClassNames,
|
|
8014
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
8015
|
+
ref: overlayRef,
|
|
8016
|
+
onPress: onClose
|
|
8017
|
+
})
|
|
8018
|
+
})), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
8019
|
+
nodeRef: contentRef,
|
|
8020
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
8021
|
+
classNames: slideInClassNames,
|
|
8022
|
+
onEnter: onEnter,
|
|
8023
|
+
onEntered: onEntered,
|
|
8024
|
+
onExit: onExit,
|
|
8025
|
+
onExited: onExited,
|
|
8026
|
+
children: /*#__PURE__*/jsx(View, {
|
|
8027
|
+
ref: contentRef,
|
|
8028
|
+
children: children
|
|
8029
|
+
})
|
|
8030
|
+
}))]
|
|
8031
|
+
})
|
|
8001
8032
|
}));
|
|
8002
8033
|
}
|
|
8003
8034
|
|