@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
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, StyleSheet, Modal, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
14
|
+
import { Animated, Easing, ScrollView as ScrollView$2, View as View$2, 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
|
};
|
|
@@ -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,9 +4738,7 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4742
4738
|
isPressed = _ref.isPressed,
|
|
4743
4739
|
isDisabled = _ref.isDisabled,
|
|
4744
4740
|
isSelected = _ref.isSelected,
|
|
4745
|
-
hasError = _ref.hasError
|
|
4746
|
-
_ref$shouldExpand = _ref.shouldExpand,
|
|
4747
|
-
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand;
|
|
4741
|
+
hasError = _ref.hasError;
|
|
4748
4742
|
var theme = useTheme();
|
|
4749
4743
|
return /*#__PURE__*/jsx(View, {
|
|
4750
4744
|
position: "relative",
|
|
@@ -4762,8 +4756,6 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4762
4756
|
isPressed: isPressed
|
|
4763
4757
|
}),
|
|
4764
4758
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4765
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4766
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4767
4759
|
_web: {
|
|
4768
4760
|
style: {
|
|
4769
4761
|
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
@@ -4800,8 +4792,6 @@ function ChoiceItem(_ref) {
|
|
|
4800
4792
|
value = _ref.value,
|
|
4801
4793
|
selected = _ref.selected,
|
|
4802
4794
|
disabled = _ref.disabled,
|
|
4803
|
-
_ref$shouldExpand = _ref.shouldExpand,
|
|
4804
|
-
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
|
|
4805
4795
|
_children = _ref.children,
|
|
4806
4796
|
isPressedInternal = _ref.isPressedInternal,
|
|
4807
4797
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
@@ -4835,8 +4825,6 @@ function ChoiceItem(_ref) {
|
|
|
4835
4825
|
checked: selected
|
|
4836
4826
|
},
|
|
4837
4827
|
style: style,
|
|
4838
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4839
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4840
4828
|
onBlur: onBlur,
|
|
4841
4829
|
onFocus: onFocus,
|
|
4842
4830
|
onPress: function (e) {
|
|
@@ -4855,8 +4843,6 @@ function ChoiceItem(_ref) {
|
|
|
4855
4843
|
});
|
|
4856
4844
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4857
4845
|
space: "kitt.2",
|
|
4858
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4859
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4860
4846
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4861
4847
|
animatedStyles: backgroundStyles,
|
|
4862
4848
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4864,13 +4850,10 @@ function ChoiceItem(_ref) {
|
|
|
4864
4850
|
isSelected: selected,
|
|
4865
4851
|
isPressed: isPressed || isPressedInternal,
|
|
4866
4852
|
hasError: hasError,
|
|
4867
|
-
shouldExpand: shouldExpand,
|
|
4868
4853
|
size: size,
|
|
4869
4854
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
4870
4855
|
alignItems: "center",
|
|
4871
4856
|
space: "kitt.2",
|
|
4872
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4873
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4874
4857
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
4875
4858
|
color: textColor,
|
|
4876
4859
|
icon: icon
|
|
@@ -4899,43 +4882,33 @@ function ChoiceItem(_ref) {
|
|
|
4899
4882
|
function ChoiceItemContainer(_ref) {
|
|
4900
4883
|
var children = _ref.children,
|
|
4901
4884
|
direction = _ref.direction,
|
|
4902
|
-
shouldExpand = _ref.shouldExpand,
|
|
4903
4885
|
isLast = _ref.isLast;
|
|
4904
4886
|
var currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
4905
|
-
var
|
|
4887
|
+
var flexProps = direction === 'row' ? {
|
|
4906
4888
|
flexGrow: 1,
|
|
4907
4889
|
flexShrink: 1,
|
|
4908
4890
|
flexBasis: 0
|
|
4909
4891
|
} : {};
|
|
4910
|
-
|
|
4911
|
-
flexGrow: 1,
|
|
4912
|
-
flexShrink: 1
|
|
4913
|
-
} : {};
|
|
4914
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
|
|
4892
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
4915
4893
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
4916
4894
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined
|
|
4917
|
-
},
|
|
4895
|
+
}, flexProps), {}, {
|
|
4918
4896
|
children: children
|
|
4919
4897
|
}));
|
|
4920
4898
|
}
|
|
4921
4899
|
|
|
4922
|
-
var _excluded$D = ["direction", "
|
|
4900
|
+
var _excluded$D = ["direction", "contentContainerStyle"];
|
|
4923
4901
|
function ChoicesContainer(_ref) {
|
|
4924
4902
|
var direction = _ref.direction,
|
|
4925
|
-
shouldExpand = _ref.shouldExpand,
|
|
4926
4903
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4927
4904
|
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4928
|
-
var shouldExpandFlexProps = shouldExpand ? {
|
|
4929
|
-
flexGrow: 1,
|
|
4930
|
-
flexShrink: 1
|
|
4931
|
-
} : {};
|
|
4932
4905
|
if (direction === 'row') {
|
|
4933
|
-
return /*#__PURE__*/jsx(ScrollView, _objectSpread(
|
|
4906
|
+
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4934
4907
|
horizontal: true,
|
|
4935
|
-
contentContainerStyle:
|
|
4936
|
-
}, props)
|
|
4908
|
+
contentContainerStyle: contentContainerStyle
|
|
4909
|
+
}, props));
|
|
4937
4910
|
}
|
|
4938
|
-
return /*#__PURE__*/jsx(View, _objectSpread(
|
|
4911
|
+
return /*#__PURE__*/jsx(View$2, _objectSpread({}, props));
|
|
4939
4912
|
}
|
|
4940
4913
|
|
|
4941
4914
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4947,8 +4920,6 @@ function Choices(_ref2) {
|
|
|
4947
4920
|
_ref2$direction = _ref2.direction,
|
|
4948
4921
|
direction = _ref2$direction === void 0 ? 'column' : _ref2$direction,
|
|
4949
4922
|
disabled = _ref2.disabled,
|
|
4950
|
-
_ref2$shouldExpand = _ref2.shouldExpand,
|
|
4951
|
-
shouldExpand = _ref2$shouldExpand === void 0 ? false : _ref2$shouldExpand,
|
|
4952
4923
|
children = _ref2.children,
|
|
4953
4924
|
value = _ref2.value,
|
|
4954
4925
|
onPress = _ref2.onPress,
|
|
@@ -4967,7 +4938,6 @@ function Choices(_ref2) {
|
|
|
4967
4938
|
var sharedProps = {
|
|
4968
4939
|
type: type,
|
|
4969
4940
|
disabled: disabled,
|
|
4970
|
-
shouldExpand: shouldExpand,
|
|
4971
4941
|
onPress: !isForm ? onPress : undefined,
|
|
4972
4942
|
onChange: isForm ? function (newValue) {
|
|
4973
4943
|
setCurrentValue(newValue);
|
|
@@ -4979,7 +4949,6 @@ function Choices(_ref2) {
|
|
|
4979
4949
|
};
|
|
4980
4950
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
4981
4951
|
direction: direction,
|
|
4982
|
-
shouldExpand: shouldExpand,
|
|
4983
4952
|
testID: testID,
|
|
4984
4953
|
id: id,
|
|
4985
4954
|
style: style,
|
|
@@ -4990,7 +4959,6 @@ function Choices(_ref2) {
|
|
|
4990
4959
|
}, sharedProps));
|
|
4991
4960
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
4992
4961
|
direction: direction,
|
|
4993
|
-
shouldExpand: shouldExpand,
|
|
4994
4962
|
isLast: index === childrenArray.length - 1,
|
|
4995
4963
|
children: element
|
|
4996
4964
|
}, child.key);
|
|
@@ -7953,30 +7921,24 @@ function FullscreenModalFooter(_ref) {
|
|
|
7953
7921
|
}));
|
|
7954
7922
|
}
|
|
7955
7923
|
|
|
7924
|
+
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"};
|
|
7925
|
+
|
|
7956
7926
|
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7957
|
-
var
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
enter: slideInFromBottomEnter,
|
|
7965
|
-
enterActive: slideInFromBottomEnterActive,
|
|
7966
|
-
exit: slideInFromBottomExit,
|
|
7967
|
-
exitActive: slideInFromBottomExitActive
|
|
7927
|
+
var overlayClassNames = {
|
|
7928
|
+
appear: styles$1['overlay-enter'],
|
|
7929
|
+
appearActive: styles$1['overlay-enter-active'],
|
|
7930
|
+
enter: styles$1['overlay-enter'],
|
|
7931
|
+
enterActive: styles$1['overlay-enter-active'],
|
|
7932
|
+
exit: styles$1['overlay-exit'],
|
|
7933
|
+
exitActive: styles$1['overlay-exit-active']
|
|
7968
7934
|
};
|
|
7969
|
-
var
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
enter: opacityEnter,
|
|
7977
|
-
enterActive: opacityEnterActive,
|
|
7978
|
-
exit: opacityExit,
|
|
7979
|
-
exitActive: opacityExitActive
|
|
7935
|
+
var slideInClassNames = {
|
|
7936
|
+
appear: styles$1['content-enter'],
|
|
7937
|
+
appearActive: styles$1['content-enter-active'],
|
|
7938
|
+
enter: styles$1['content-enter'],
|
|
7939
|
+
enterActive: styles$1['content-enter-active'],
|
|
7940
|
+
exit: styles$1['content-exit'],
|
|
7941
|
+
exitActive: styles$1['content-exit-active']
|
|
7980
7942
|
};
|
|
7981
7943
|
function FullscreenModalAnimation(_ref) {
|
|
7982
7944
|
var children = _ref.children,
|
|
@@ -8004,28 +7966,41 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8004
7966
|
appear: appear,
|
|
8005
7967
|
unmountOnExit: unmountOnExit
|
|
8006
7968
|
};
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
7969
|
+
|
|
7970
|
+
// CSS custom properties for theme-based animation values
|
|
7971
|
+
var overlayEasing = animation.overlay.easing;
|
|
7972
|
+
var contentEasing = animation.content.easing;
|
|
7973
|
+
var cssVariables = {
|
|
7974
|
+
'--overlay-duration': "".concat(animation.overlay.duration, "ms"),
|
|
7975
|
+
'--overlay-easing': "cubic-bezier(".concat(overlayEasing.x1, ", ").concat(overlayEasing.y1, ", ").concat(overlayEasing.x2, ", ").concat(overlayEasing.y2, ")"),
|
|
7976
|
+
'--content-duration': "".concat(animation.content.duration, "ms"),
|
|
7977
|
+
'--content-easing': "cubic-bezier(".concat(contentEasing.x1, ", ").concat(contentEasing.y1, ", ").concat(contentEasing.x2, ", ").concat(contentEasing.y2, ")")
|
|
7978
|
+
};
|
|
7979
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
7980
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
7981
|
+
style: cssVariables,
|
|
7982
|
+
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
7983
|
+
nodeRef: overlayRef,
|
|
7984
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
7985
|
+
classNames: overlayClassNames,
|
|
7986
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
7987
|
+
ref: overlayRef,
|
|
7988
|
+
onPress: onClose
|
|
7989
|
+
})
|
|
7990
|
+
})), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
7991
|
+
nodeRef: contentRef,
|
|
7992
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7993
|
+
classNames: slideInClassNames,
|
|
7994
|
+
onEnter: onEnter,
|
|
7995
|
+
onEntered: onEntered,
|
|
7996
|
+
onExit: onExit,
|
|
7997
|
+
onExited: onExited,
|
|
7998
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7999
|
+
ref: contentRef,
|
|
8000
|
+
children: children
|
|
8001
|
+
})
|
|
8002
|
+
}))]
|
|
8003
|
+
})
|
|
8029
8004
|
}));
|
|
8030
8005
|
}
|
|
8031
8006
|
|