@ornikar/kitt-universal 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.0 → 25.50.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 -4
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +2 -3
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts +2 -3
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -3
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +0 -6
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +175 -933
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +175 -933
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +108 -863
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.css +0 -8
- package/dist/index-node-20.10.cjs.web.js +64 -747
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +109 -861
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.css +0 -8
- package/dist/index-node-20.10.es.web.mjs +66 -746
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +177 -946
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +152 -837
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +11 -11
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +11 -11
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +11 -11
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +11 -11
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +11 -11
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +11 -11
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +11 -11
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +11 -11
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +0 -8
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/CardModal2/CardModal2.d.ts +0 -19
- package/dist/definitions/CardModal2/CardModal2.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +0 -8
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +0 -4
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +0 -7
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +0 -8
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +0 -11
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +0 -8
- package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +0 -7
- package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +0 -7
- package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +0 -1
- package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +0 -20
- package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +0 -18
- package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +0 -8
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +0 -8
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +0 -9
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +0 -8
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +0 -8
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +0 -22
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +0 -7
- package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +0 -1
- package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +0 -10
- package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +0 -1
- package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +0 -23
- package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +0 -1
- package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +0 -8
- package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +0 -1
- package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +0 -7
- package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +0 -1
- package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +0 -7
- package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +0 -1
- package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +0 -7
- package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +0 -1
- package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
- package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
|
@@ -748,19 +748,19 @@ const button = {
|
|
|
748
748
|
},
|
|
749
749
|
danger: {
|
|
750
750
|
default: {
|
|
751
|
-
backgroundColor: lateOceanColorPalette.
|
|
752
|
-
pressedBackgroundColor: lateOceanColorPalette.
|
|
753
|
-
hoverBackgroundColor: lateOceanColorPalette.
|
|
754
|
-
focusBorderColor: lateOceanColorPalette.
|
|
751
|
+
backgroundColor: lateOceanColorPalette['coral.3'],
|
|
752
|
+
pressedBackgroundColor: lateOceanColorPalette['coral.4'],
|
|
753
|
+
hoverBackgroundColor: lateOceanColorPalette['coral.4'],
|
|
754
|
+
focusBorderColor: lateOceanColorPalette['coral.4']
|
|
755
755
|
},
|
|
756
756
|
ghost: {
|
|
757
757
|
backgroundColor: colors.uiBackgroundLight,
|
|
758
|
-
pressedBackgroundColor:
|
|
759
|
-
hoverBackgroundColor:
|
|
760
|
-
focusBorderColor: 'rgba(255, 255, 255, 0.
|
|
761
|
-
color: lateOceanColorPalette.
|
|
762
|
-
hoverColor: lateOceanColorPalette.
|
|
763
|
-
activeColor: lateOceanColorPalette.
|
|
758
|
+
pressedBackgroundColor: colors.uiBackground,
|
|
759
|
+
hoverBackgroundColor: colors.hover,
|
|
760
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
761
|
+
color: lateOceanColorPalette['coral.9'],
|
|
762
|
+
hoverColor: lateOceanColorPalette['coral.9'],
|
|
763
|
+
activeColor: lateOceanColorPalette['coral.9']
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
766
|
subtle: {
|
|
@@ -2113,7 +2113,7 @@ const typography = {
|
|
|
2113
2113
|
'primary-light': colors.primaryLight,
|
|
2114
2114
|
accent: colors.accent,
|
|
2115
2115
|
success: colors.success,
|
|
2116
|
-
danger:
|
|
2116
|
+
danger: lateOceanColorPalette['coral.9'],
|
|
2117
2117
|
warning: colors.warning
|
|
2118
2118
|
},
|
|
2119
2119
|
types: {
|
|
@@ -3824,24 +3824,6 @@ function Avatar({
|
|
|
3824
3824
|
});
|
|
3825
3825
|
}
|
|
3826
3826
|
|
|
3827
|
-
/**
|
|
3828
|
-
* A utility component that returns its children without any modifications.
|
|
3829
|
-
*
|
|
3830
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3831
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3832
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3833
|
-
*
|
|
3834
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3835
|
-
*
|
|
3836
|
-
* @example
|
|
3837
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3838
|
-
*/
|
|
3839
|
-
function IdentityComponent({
|
|
3840
|
-
children
|
|
3841
|
-
}) {
|
|
3842
|
-
return children;
|
|
3843
|
-
}
|
|
3844
|
-
|
|
3845
3827
|
function BottomSheetComp({
|
|
3846
3828
|
children: Content,
|
|
3847
3829
|
hasScrollView = false,
|
|
@@ -3849,7 +3831,6 @@ function BottomSheetComp({
|
|
|
3849
3831
|
hasHandle = true,
|
|
3850
3832
|
enableDynamicSizing = true,
|
|
3851
3833
|
snapPoints = ['100%'],
|
|
3852
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
3853
3834
|
...rest
|
|
3854
3835
|
}, ref) {
|
|
3855
3836
|
const {
|
|
@@ -3880,11 +3861,9 @@ function BottomSheetComp({
|
|
|
3880
3861
|
...rest,
|
|
3881
3862
|
topInset: top,
|
|
3882
3863
|
children: props => /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
3883
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
}) : Content
|
|
3887
|
-
})
|
|
3864
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsxRuntime.jsx(Content, {
|
|
3865
|
+
...props?.data
|
|
3866
|
+
}) : Content
|
|
3888
3867
|
})
|
|
3889
3868
|
});
|
|
3890
3869
|
}
|
|
@@ -3989,330 +3968,19 @@ ModalBehaviour.CloseButton = CloseButton;
|
|
|
3989
3968
|
function Overlay({
|
|
3990
3969
|
onPress
|
|
3991
3970
|
}) {
|
|
3992
|
-
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
3993
|
-
accessibilityRole: "none",
|
|
3994
|
-
position: "absolute",
|
|
3995
|
-
top: "0",
|
|
3996
|
-
left: "0",
|
|
3997
|
-
right: "0",
|
|
3998
|
-
bottom: "0",
|
|
3999
|
-
backgroundColor: "kitt.overlay.dark",
|
|
4000
|
-
onPress: onPress
|
|
4001
|
-
});
|
|
4002
|
-
}
|
|
4003
|
-
|
|
4004
|
-
function CardModalRotationContainer(props) {
|
|
4005
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4006
|
-
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4007
|
-
paddingY: "kitt.cardModal.overlayPadding.vertical",
|
|
4008
|
-
maxWidth: "kitt.cardModal.maxWidthWithPadding",
|
|
4009
|
-
width: "100%",
|
|
4010
|
-
maxHeight: "100%",
|
|
4011
|
-
_web: {
|
|
4012
|
-
maxHeight: '100svh'
|
|
4013
|
-
},
|
|
4014
|
-
...props
|
|
4015
|
-
});
|
|
4016
|
-
}
|
|
4017
|
-
|
|
4018
|
-
function NativeOpacityAnimation$4({
|
|
4019
|
-
visible,
|
|
4020
|
-
children,
|
|
4021
|
-
onExited
|
|
4022
|
-
}) {
|
|
4023
|
-
const theme = useTheme();
|
|
4024
|
-
const hasRunAnimationRef = React.useRef(false);
|
|
4025
|
-
function handleAnimationFinished() {
|
|
4026
|
-
if (visible) {
|
|
4027
|
-
hasRunAnimationRef.current = true;
|
|
4028
|
-
}
|
|
4029
|
-
if (!visible && hasRunAnimationRef.current) {
|
|
4030
|
-
onExited();
|
|
4031
|
-
}
|
|
4032
|
-
}
|
|
4033
|
-
const opacityStyle = Animated.useAnimatedStyle(() => {
|
|
4034
|
-
const {
|
|
4035
|
-
duration,
|
|
4036
|
-
easing
|
|
4037
|
-
} = theme.kitt.cardModal.animation.overlay;
|
|
4038
|
-
const [x1, y1, x2, y2] = easing;
|
|
4039
|
-
return {
|
|
4040
|
-
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
4041
|
-
duration,
|
|
4042
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
4043
|
-
}, isFinished => {
|
|
4044
|
-
if (!isFinished) return;
|
|
4045
|
-
Animated.runOnJS(handleAnimationFinished)();
|
|
4046
|
-
})
|
|
4047
|
-
};
|
|
4048
|
-
});
|
|
4049
|
-
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4050
|
-
style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
|
|
4051
|
-
children: children
|
|
4052
|
-
});
|
|
4053
|
-
}
|
|
4054
|
-
|
|
4055
|
-
function NativeRotationAnimation$2({
|
|
4056
|
-
visible,
|
|
4057
|
-
children,
|
|
4058
|
-
onEntered,
|
|
4059
|
-
onExited
|
|
4060
|
-
}) {
|
|
4061
|
-
const theme = useTheme();
|
|
4062
|
-
const hasRunAnimationRef = React.useRef(false);
|
|
4063
|
-
const rotation = Animated.useSharedValue(0.8);
|
|
4064
|
-
function handleAnimationFinished() {
|
|
4065
|
-
if (visible) {
|
|
4066
|
-
if (onEntered) onEntered();
|
|
4067
|
-
hasRunAnimationRef.current = true;
|
|
4068
|
-
}
|
|
4069
|
-
if (!visible && hasRunAnimationRef.current) onExited();
|
|
4070
|
-
}
|
|
4071
|
-
const animatedStyle = Animated.useAnimatedStyle(() => {
|
|
4072
|
-
const {
|
|
4073
|
-
duration,
|
|
4074
|
-
easing
|
|
4075
|
-
} = theme.kitt.cardModal.animation.content;
|
|
4076
|
-
const [x1, y1, x2, y2] = easing;
|
|
4077
|
-
rotation.value = Animated.withTiming(visible ? 0 : 5, {
|
|
4078
|
-
duration,
|
|
4079
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
4080
|
-
}, isFinished => {
|
|
4081
|
-
if (!isFinished) return;
|
|
4082
|
-
Animated.runOnJS(handleAnimationFinished)();
|
|
4083
|
-
});
|
|
4084
|
-
return {
|
|
4085
|
-
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
4086
|
-
duration,
|
|
4087
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
4088
|
-
}),
|
|
4089
|
-
transform: [{
|
|
4090
|
-
scale: Animated.withTiming(visible ? 1 : 0.8, {
|
|
4091
|
-
duration,
|
|
4092
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
4093
|
-
})
|
|
4094
|
-
}, {
|
|
4095
|
-
rotateZ: `${rotation.value}deg`
|
|
4096
|
-
}]
|
|
4097
|
-
};
|
|
4098
|
-
});
|
|
4099
|
-
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4100
|
-
style: [animatedStyle],
|
|
4101
|
-
children: children
|
|
4102
|
-
});
|
|
4103
|
-
}
|
|
4104
|
-
|
|
4105
|
-
function CardModalAnimation({
|
|
4106
|
-
visible,
|
|
4107
|
-
children,
|
|
4108
|
-
onEnter,
|
|
4109
|
-
onEntered,
|
|
4110
|
-
onExit,
|
|
4111
|
-
onExited,
|
|
4112
|
-
onClose
|
|
4113
|
-
}) {
|
|
4114
|
-
const [isModalVisible, setIsModalVisible] = React.useState(visible);
|
|
4115
|
-
const [isContentVisible, setIsContentVisible] = React.useState(false);
|
|
4116
|
-
const handleAnimationExited = () => {
|
|
4117
|
-
setIsModalVisible(false);
|
|
4118
|
-
// Android doesn't handle the onDismiss callback on the modal, we need to call it manually
|
|
4119
|
-
if (reactNative.Platform.OS === 'android' && onExited) onExited();
|
|
4120
|
-
};
|
|
4121
|
-
React.useEffect(() => {
|
|
4122
|
-
if (!(!visible && isContentVisible)) return;
|
|
4123
|
-
if (onExit) onExit();
|
|
4124
|
-
setIsContentVisible(false);
|
|
4125
|
-
}, [visible, isContentVisible, onExit]);
|
|
4126
|
-
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
|
|
4127
|
-
transparent: true,
|
|
4128
|
-
supportedOrientations: ['landscape', 'portrait'],
|
|
4129
|
-
visible: isModalVisible,
|
|
4130
|
-
onShow: () => {
|
|
4131
|
-
if (onEnter) onEnter();
|
|
4132
|
-
setIsContentVisible(true);
|
|
4133
|
-
},
|
|
4134
|
-
onDismiss: () => {
|
|
4135
|
-
if (onExited) onExited();
|
|
4136
|
-
},
|
|
4137
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
4138
|
-
position: "relative",
|
|
4139
|
-
flexGrow: 1,
|
|
4140
|
-
justifyContent: "center",
|
|
4141
|
-
alignItems: "center",
|
|
4142
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$4, {
|
|
4143
|
-
visible: isContentVisible,
|
|
4144
|
-
onExited: handleAnimationExited,
|
|
4145
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
4146
|
-
onPress: onClose
|
|
4147
|
-
})
|
|
4148
|
-
}), /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
|
|
4149
|
-
children: /*#__PURE__*/jsxRuntime.jsx(NativeRotationAnimation$2, {
|
|
4150
|
-
visible: isContentVisible,
|
|
4151
|
-
onExited: handleAnimationExited,
|
|
4152
|
-
onEntered: onEntered,
|
|
4153
|
-
children: children
|
|
4154
|
-
})
|
|
4155
|
-
})]
|
|
4156
|
-
})
|
|
4157
|
-
});
|
|
4158
|
-
}
|
|
4159
|
-
|
|
4160
|
-
function CardModalBehaviour({
|
|
4161
|
-
children,
|
|
4162
|
-
visible,
|
|
4163
|
-
onClose,
|
|
4164
|
-
onExited,
|
|
4165
|
-
...props
|
|
4166
|
-
}) {
|
|
4167
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = React.useState(visible);
|
|
4168
|
-
React.useEffect(() => {
|
|
4169
|
-
if (visible === true) {
|
|
4170
|
-
setIsModalBehaviourVisible(true);
|
|
4171
|
-
}
|
|
4172
|
-
}, [visible]);
|
|
4173
|
-
return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
|
|
4174
|
-
visible: isModalBehaviourVisible,
|
|
4175
|
-
onClose: onClose,
|
|
4176
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CardModalAnimation, {
|
|
4177
|
-
...props,
|
|
4178
|
-
visible: visible,
|
|
4179
|
-
onExited: () => {
|
|
4180
|
-
if (onExited) onExited();
|
|
4181
|
-
setIsModalBehaviourVisible(false);
|
|
4182
|
-
},
|
|
4183
|
-
onClose: onClose,
|
|
4184
|
-
children: children
|
|
4185
|
-
})
|
|
4186
|
-
});
|
|
4187
|
-
}
|
|
4188
|
-
|
|
4189
|
-
function CardModalBody({
|
|
4190
|
-
children,
|
|
4191
|
-
paddingX = {
|
|
4192
|
-
base: 'kitt.4',
|
|
4193
|
-
medium: 'kitt.6'
|
|
4194
|
-
},
|
|
4195
|
-
paddingY = 'kitt.4',
|
|
4196
|
-
...props
|
|
4197
|
-
}) {
|
|
4198
|
-
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
4199
|
-
showsVerticalScrollIndicator: false,
|
|
4200
|
-
_contentContainerStyle: {
|
|
4201
|
-
paddingX,
|
|
4202
|
-
paddingY
|
|
4203
|
-
},
|
|
4204
|
-
...props,
|
|
4205
|
-
children: children
|
|
4206
|
-
});
|
|
4207
|
-
}
|
|
4208
|
-
|
|
4209
|
-
function CardModalFooter({
|
|
4210
|
-
children,
|
|
4211
|
-
padding = {
|
|
4212
|
-
base: 'kitt.4',
|
|
4213
|
-
medium: 'kitt.2'
|
|
4214
|
-
},
|
|
4215
|
-
hasSeparator = true,
|
|
4216
|
-
...props
|
|
4217
|
-
}) {
|
|
4218
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4219
|
-
...props,
|
|
4220
|
-
marginTop: "kitt.2",
|
|
4221
|
-
padding: padding,
|
|
4222
|
-
borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4223
|
-
borderColor: "kitt.separator",
|
|
4224
|
-
alignItems: {
|
|
4225
|
-
base: undefined,
|
|
4226
|
-
medium: 'flex-end'
|
|
4227
|
-
},
|
|
4228
|
-
children: children
|
|
4229
|
-
});
|
|
4230
|
-
}
|
|
4231
|
-
|
|
4232
|
-
function CardModalHeader({
|
|
4233
|
-
children,
|
|
4234
|
-
title,
|
|
4235
|
-
paddingBottom = {
|
|
4236
|
-
base: 'kitt.4',
|
|
4237
|
-
medium: 'kitt.2'
|
|
4238
|
-
},
|
|
4239
|
-
hasSeparator = true,
|
|
4240
|
-
right,
|
|
4241
|
-
left,
|
|
4242
|
-
...props
|
|
4243
|
-
}) {
|
|
4244
|
-
const defaultContainerPadding = {
|
|
4245
|
-
base: 'kitt.4',
|
|
4246
|
-
medium: 'kitt.6'
|
|
4247
|
-
};
|
|
4248
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4249
|
-
...props,
|
|
4250
|
-
padding: paddingBottom,
|
|
4251
|
-
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4252
|
-
borderColor: "kitt.separator",
|
|
4253
|
-
justifyContent: "center",
|
|
4254
|
-
width: "100%",
|
|
4255
|
-
height: "kitt.cardModal.header.height",
|
|
4256
|
-
paddingRight: right ? 'kitt.2' : defaultContainerPadding,
|
|
4257
|
-
paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
|
|
4258
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
4259
|
-
alignItems: "center",
|
|
4260
|
-
flexDirection: "row",
|
|
4261
|
-
justifyContent: !children && !left ? 'flex-end' : 'space-between',
|
|
4262
|
-
children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4263
|
-
width: "kitt.iconButton.width",
|
|
4264
|
-
children: left
|
|
4265
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
4266
|
-
flexGrow: "1",
|
|
4267
|
-
paddingRight: right ? 'kitt.2' : 0,
|
|
4268
|
-
paddingLeft: left ? 'kitt.2' : 0,
|
|
4269
|
-
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4270
|
-
textAlign: !left && right ? 'left' : 'center',
|
|
4271
|
-
variant: "bold",
|
|
4272
|
-
children: title
|
|
4273
|
-
}) : null, children]
|
|
4274
|
-
}), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4275
|
-
width: "kitt.iconButton.width",
|
|
4276
|
-
children: right
|
|
4277
|
-
}) : null]
|
|
4278
|
-
})
|
|
4279
|
-
});
|
|
4280
|
-
}
|
|
4281
|
-
|
|
4282
|
-
function CardModal({
|
|
4283
|
-
backgroundColor = 'kitt.uiBackgroundLight',
|
|
4284
|
-
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4285
|
-
withoutShadow,
|
|
4286
|
-
children,
|
|
4287
|
-
header,
|
|
4288
|
-
body,
|
|
4289
|
-
footer,
|
|
4290
|
-
contentContainer: ContentContainer = IdentityComponent,
|
|
4291
|
-
...props
|
|
4292
|
-
}) {
|
|
4293
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4294
|
-
...props,
|
|
4295
|
-
overflow: "hidden",
|
|
4296
|
-
backgroundColor: backgroundColor,
|
|
4297
|
-
shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
|
|
4298
|
-
borderRadius: "kitt.cardModal.borderRadius",
|
|
4299
|
-
width: "100%",
|
|
4300
|
-
maxHeight: "100%",
|
|
4301
|
-
maxWidth: maxWidth,
|
|
4302
|
-
minHeight: "kitt.cardModal.minHeight",
|
|
4303
|
-
children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
|
|
4304
|
-
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4305
|
-
children: [header || null, body || null, footer || null]
|
|
4306
|
-
})
|
|
4307
|
-
})
|
|
3971
|
+
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
3972
|
+
accessibilityRole: "none",
|
|
3973
|
+
position: "absolute",
|
|
3974
|
+
top: "0",
|
|
3975
|
+
left: "0",
|
|
3976
|
+
right: "0",
|
|
3977
|
+
bottom: "0",
|
|
3978
|
+
backgroundColor: "kitt.overlay.dark",
|
|
3979
|
+
onPress: onPress
|
|
4308
3980
|
});
|
|
4309
3981
|
}
|
|
4310
|
-
CardModal.Body = CardModalBody;
|
|
4311
|
-
CardModal.Header = CardModalHeader;
|
|
4312
|
-
CardModal.Footer = CardModalFooter;
|
|
4313
|
-
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
4314
3982
|
|
|
4315
|
-
function
|
|
3983
|
+
function CardModalRotationContainer(props) {
|
|
4316
3984
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4317
3985
|
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4318
3986
|
paddingY: "kitt.cardModal.overlayPadding.vertical",
|
|
@@ -4326,7 +3994,7 @@ function CardModal2RotationContainer(props) {
|
|
|
4326
3994
|
});
|
|
4327
3995
|
}
|
|
4328
3996
|
|
|
4329
|
-
function NativeOpacityAnimation$
|
|
3997
|
+
function NativeOpacityAnimation$2({
|
|
4330
3998
|
visible,
|
|
4331
3999
|
children,
|
|
4332
4000
|
onExited
|
|
@@ -4413,7 +4081,7 @@ function NativeRotationAnimation$1({
|
|
|
4413
4081
|
});
|
|
4414
4082
|
}
|
|
4415
4083
|
|
|
4416
|
-
function
|
|
4084
|
+
function CardModalAnimation({
|
|
4417
4085
|
visible,
|
|
4418
4086
|
children,
|
|
4419
4087
|
onEnter,
|
|
@@ -4450,13 +4118,13 @@ function CardModal2Animation({
|
|
|
4450
4118
|
flexGrow: 1,
|
|
4451
4119
|
justifyContent: "center",
|
|
4452
4120
|
alignItems: "center",
|
|
4453
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$
|
|
4121
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$2, {
|
|
4454
4122
|
visible: isContentVisible,
|
|
4455
4123
|
onExited: handleAnimationExited,
|
|
4456
4124
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
4457
4125
|
onPress: onClose
|
|
4458
4126
|
})
|
|
4459
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
4127
|
+
}), /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
|
|
4460
4128
|
children: /*#__PURE__*/jsxRuntime.jsx(NativeRotationAnimation$1, {
|
|
4461
4129
|
visible: isContentVisible,
|
|
4462
4130
|
onExited: handleAnimationExited,
|
|
@@ -4468,7 +4136,7 @@ function CardModal2Animation({
|
|
|
4468
4136
|
});
|
|
4469
4137
|
}
|
|
4470
4138
|
|
|
4471
|
-
function
|
|
4139
|
+
function CardModalBehaviour({
|
|
4472
4140
|
children,
|
|
4473
4141
|
visible,
|
|
4474
4142
|
onClose,
|
|
@@ -4484,7 +4152,7 @@ function CardModal2Behaviour({
|
|
|
4484
4152
|
return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
|
|
4485
4153
|
visible: isModalBehaviourVisible,
|
|
4486
4154
|
onClose: onClose,
|
|
4487
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
4155
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CardModalAnimation, {
|
|
4488
4156
|
...props,
|
|
4489
4157
|
visible: visible,
|
|
4490
4158
|
onExited: () => {
|
|
@@ -4497,7 +4165,7 @@ function CardModal2Behaviour({
|
|
|
4497
4165
|
});
|
|
4498
4166
|
}
|
|
4499
4167
|
|
|
4500
|
-
function
|
|
4168
|
+
function CardModalBody({
|
|
4501
4169
|
children,
|
|
4502
4170
|
paddingX = {
|
|
4503
4171
|
base: 'kitt.4',
|
|
@@ -4517,7 +4185,7 @@ function CardModal2Body({
|
|
|
4517
4185
|
});
|
|
4518
4186
|
}
|
|
4519
4187
|
|
|
4520
|
-
function
|
|
4188
|
+
function CardModalFooter({
|
|
4521
4189
|
children,
|
|
4522
4190
|
padding = {
|
|
4523
4191
|
base: 'kitt.4',
|
|
@@ -4540,7 +4208,7 @@ function CardModal2Footer({
|
|
|
4540
4208
|
});
|
|
4541
4209
|
}
|
|
4542
4210
|
|
|
4543
|
-
function
|
|
4211
|
+
function CardModalHeader({
|
|
4544
4212
|
children,
|
|
4545
4213
|
title,
|
|
4546
4214
|
paddingBottom = {
|
|
@@ -4590,11 +4258,14 @@ function CardModal2Header({
|
|
|
4590
4258
|
});
|
|
4591
4259
|
}
|
|
4592
4260
|
|
|
4593
|
-
function
|
|
4261
|
+
function CardModal({
|
|
4594
4262
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
4595
4263
|
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4596
4264
|
withoutShadow,
|
|
4597
4265
|
children,
|
|
4266
|
+
header,
|
|
4267
|
+
body,
|
|
4268
|
+
footer,
|
|
4598
4269
|
...props
|
|
4599
4270
|
}) {
|
|
4600
4271
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4607,13 +4278,15 @@ function CardModal2({
|
|
|
4607
4278
|
maxHeight: "100%",
|
|
4608
4279
|
maxWidth: maxWidth,
|
|
4609
4280
|
minHeight: "kitt.cardModal.minHeight",
|
|
4610
|
-
children: children
|
|
4281
|
+
children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
4282
|
+
children: [header || null, body || null, footer || null]
|
|
4283
|
+
})
|
|
4611
4284
|
});
|
|
4612
4285
|
}
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4286
|
+
CardModal.Body = CardModalBody;
|
|
4287
|
+
CardModal.Header = CardModalHeader;
|
|
4288
|
+
CardModal.Footer = CardModalFooter;
|
|
4289
|
+
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
4617
4290
|
|
|
4618
4291
|
function getBackgroundColor$5({
|
|
4619
4292
|
isDisabled,
|
|
@@ -4910,7 +4583,7 @@ const ChoicesElements = {
|
|
|
4910
4583
|
ButtonChoices
|
|
4911
4584
|
};
|
|
4912
4585
|
|
|
4913
|
-
function NativeOpacityAnimation$
|
|
4586
|
+
function NativeOpacityAnimation$1({
|
|
4914
4587
|
visible,
|
|
4915
4588
|
children,
|
|
4916
4589
|
onExited
|
|
@@ -5034,7 +4707,7 @@ function DialogModalAnimation({
|
|
|
5034
4707
|
flexGrow: 1,
|
|
5035
4708
|
justifyContent: "center",
|
|
5036
4709
|
alignItems: "center",
|
|
5037
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$
|
|
4710
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$1, {
|
|
5038
4711
|
visible: isContentVisible,
|
|
5039
4712
|
onExited: handleAnimationExited,
|
|
5040
4713
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
@@ -8097,322 +7770,45 @@ function FullscreenModalBody({
|
|
|
8097
7770
|
kitt: {
|
|
8098
7771
|
fullscreenModal: {
|
|
8099
7772
|
body: {
|
|
8100
|
-
verticalPadding
|
|
8101
|
-
}
|
|
8102
|
-
}
|
|
8103
|
-
}
|
|
8104
|
-
} = useTheme();
|
|
8105
|
-
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8106
|
-
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8107
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8108
|
-
...props,
|
|
8109
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8110
|
-
paddingTop: paddingTop,
|
|
8111
|
-
paddingBottom: paddingBottom,
|
|
8112
|
-
style: style,
|
|
8113
|
-
children: children
|
|
8114
|
-
});
|
|
8115
|
-
}
|
|
8116
|
-
|
|
8117
|
-
function FullscreenModalFooter({
|
|
8118
|
-
shouldHandleBottomNotch = true,
|
|
8119
|
-
hasSeparator = true,
|
|
8120
|
-
children,
|
|
8121
|
-
...props
|
|
8122
|
-
}) {
|
|
8123
|
-
const {
|
|
8124
|
-
bottom
|
|
8125
|
-
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8126
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8127
|
-
borderTopColor: "kitt.separator",
|
|
8128
|
-
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
8129
|
-
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8130
|
-
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
8131
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8132
|
-
...props,
|
|
8133
|
-
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8134
|
-
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8135
|
-
children: children
|
|
8136
|
-
})
|
|
8137
|
-
});
|
|
8138
|
-
}
|
|
8139
|
-
|
|
8140
|
-
function NativeOpacityAnimation$1({
|
|
8141
|
-
visible,
|
|
8142
|
-
children
|
|
8143
|
-
}) {
|
|
8144
|
-
const theme = useTheme();
|
|
8145
|
-
const opacityStyle = Animated.useAnimatedStyle(() => {
|
|
8146
|
-
const {
|
|
8147
|
-
duration,
|
|
8148
|
-
easing
|
|
8149
|
-
} = theme.kitt.fullscreenModal.animation.overlay;
|
|
8150
|
-
const [x1, y1, x2, y2] = easing;
|
|
8151
|
-
return {
|
|
8152
|
-
opacity: Animated.withTiming(visible ? 1 : 0, {
|
|
8153
|
-
duration,
|
|
8154
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
8155
|
-
})
|
|
8156
|
-
};
|
|
8157
|
-
});
|
|
8158
|
-
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
8159
|
-
style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
|
|
8160
|
-
children: children
|
|
8161
|
-
});
|
|
8162
|
-
}
|
|
8163
|
-
|
|
8164
|
-
function NativeSlideInAnimation$1({
|
|
8165
|
-
visible,
|
|
8166
|
-
children,
|
|
8167
|
-
onEntered,
|
|
8168
|
-
onExited
|
|
8169
|
-
}) {
|
|
8170
|
-
const theme = useTheme();
|
|
8171
|
-
const {
|
|
8172
|
-
height: wHeight
|
|
8173
|
-
} = reactNative.useWindowDimensions();
|
|
8174
|
-
const hasRunAnimationRef = React.useRef(false);
|
|
8175
|
-
function handleAnimationFinished() {
|
|
8176
|
-
if (visible) {
|
|
8177
|
-
if (onEntered) onEntered();
|
|
8178
|
-
hasRunAnimationRef.current = true;
|
|
8179
|
-
}
|
|
8180
|
-
|
|
8181
|
-
// Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
|
|
8182
|
-
if (!visible && hasRunAnimationRef.current) onExited();
|
|
8183
|
-
}
|
|
8184
|
-
const translateStyle = Animated.useAnimatedStyle(() => {
|
|
8185
|
-
const {
|
|
8186
|
-
duration,
|
|
8187
|
-
easing
|
|
8188
|
-
} = theme.kitt.fullscreenModal.animation.content;
|
|
8189
|
-
const [x1, y1, x2, y2] = easing;
|
|
8190
|
-
return {
|
|
8191
|
-
transform: [{
|
|
8192
|
-
translateY: Animated.withTiming(visible ? 0 : wHeight, {
|
|
8193
|
-
duration,
|
|
8194
|
-
easing: Animated.Easing.bezier(x1, y1, x2, y2)
|
|
8195
|
-
}, isFinished => {
|
|
8196
|
-
if (!isFinished) return;
|
|
8197
|
-
Animated.runOnJS(handleAnimationFinished)();
|
|
8198
|
-
})
|
|
8199
|
-
}]
|
|
8200
|
-
};
|
|
8201
|
-
});
|
|
8202
|
-
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
8203
|
-
style: [{
|
|
8204
|
-
transform: [{
|
|
8205
|
-
translateY: wHeight
|
|
8206
|
-
}]
|
|
8207
|
-
}, translateStyle, {
|
|
8208
|
-
width: '100%',
|
|
8209
|
-
flex: 1
|
|
8210
|
-
}],
|
|
8211
|
-
children: children
|
|
8212
|
-
});
|
|
8213
|
-
}
|
|
8214
|
-
|
|
8215
|
-
function FullscreenModalAnimation({
|
|
8216
|
-
visible,
|
|
8217
|
-
children,
|
|
8218
|
-
onEnter,
|
|
8219
|
-
onEntered,
|
|
8220
|
-
onExit,
|
|
8221
|
-
onExited
|
|
8222
|
-
}) {
|
|
8223
|
-
const [isModalVisible, setIsModalVisible] = React.useState(visible);
|
|
8224
|
-
const [isContentVisible, setIsContentVisible] = React.useState(false);
|
|
8225
|
-
const handleAnimationExited = () => {
|
|
8226
|
-
setIsModalVisible(false);
|
|
8227
|
-
// Android doesn't handle the onDismiss callback on the modal, we need to call it manually
|
|
8228
|
-
if (reactNative.Platform.OS === 'android' && onExited) onExited();
|
|
8229
|
-
};
|
|
8230
|
-
|
|
8231
|
-
// When parent visibility is set to false, in order to have our exit animation we must in this order :
|
|
8232
|
-
// 1 - run the exit animation
|
|
8233
|
-
// 2 - once it is done, unmount the Modal
|
|
8234
|
-
React.useEffect(() => {
|
|
8235
|
-
if (!(!visible && isContentVisible)) return;
|
|
8236
|
-
if (onExit) onExit();
|
|
8237
|
-
setIsContentVisible(false);
|
|
8238
|
-
}, [visible, isContentVisible, onExit]);
|
|
8239
|
-
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
|
|
8240
|
-
transparent: true,
|
|
8241
|
-
supportedOrientations: ['landscape', 'portrait'],
|
|
8242
|
-
visible: isModalVisible,
|
|
8243
|
-
onShow: () => {
|
|
8244
|
-
if (onEnter) onEnter();
|
|
8245
|
-
setIsContentVisible(true);
|
|
8246
|
-
},
|
|
8247
|
-
onDismiss: () => {
|
|
8248
|
-
if (onExited) onExited();
|
|
8249
|
-
},
|
|
8250
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8251
|
-
position: "relative",
|
|
8252
|
-
flexGrow: 1,
|
|
8253
|
-
justifyContent: "center",
|
|
8254
|
-
alignItems: "center",
|
|
8255
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$1, {
|
|
8256
|
-
visible: isContentVisible,
|
|
8257
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
8258
|
-
onPress: handleAnimationExited
|
|
8259
|
-
})
|
|
8260
|
-
}), /*#__PURE__*/jsxRuntime.jsx(NativeSlideInAnimation$1, {
|
|
8261
|
-
visible: isContentVisible,
|
|
8262
|
-
onExited: handleAnimationExited,
|
|
8263
|
-
onEntered: onEntered,
|
|
8264
|
-
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8265
|
-
flexGrow: 1,
|
|
8266
|
-
children: children
|
|
8267
|
-
})
|
|
8268
|
-
})]
|
|
8269
|
-
})
|
|
8270
|
-
});
|
|
8271
|
-
}
|
|
8272
|
-
|
|
8273
|
-
function FullscreenModalBehaviour({
|
|
8274
|
-
children,
|
|
8275
|
-
visible,
|
|
8276
|
-
onClose,
|
|
8277
|
-
onExited,
|
|
8278
|
-
...props
|
|
8279
|
-
}) {
|
|
8280
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = React.useState(visible);
|
|
8281
|
-
React.useEffect(() => {
|
|
8282
|
-
if (visible === true) {
|
|
8283
|
-
setIsModalBehaviourVisible(true);
|
|
8284
|
-
}
|
|
8285
|
-
}, [visible]);
|
|
8286
|
-
return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
|
|
8287
|
-
visible: isModalBehaviourVisible,
|
|
8288
|
-
onClose: onClose,
|
|
8289
|
-
children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModalAnimation, {
|
|
8290
|
-
...props,
|
|
8291
|
-
visible: visible,
|
|
8292
|
-
onExited: () => {
|
|
8293
|
-
if (onExited) onExited();
|
|
8294
|
-
setIsModalBehaviourVisible(false);
|
|
8295
|
-
},
|
|
8296
|
-
children: children
|
|
8297
|
-
})
|
|
8298
|
-
});
|
|
8299
|
-
}
|
|
8300
|
-
|
|
8301
|
-
function FullscreenModalContainer({
|
|
8302
|
-
children,
|
|
8303
|
-
backgroundColor
|
|
8304
|
-
}) {
|
|
8305
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8306
|
-
position: "relative",
|
|
8307
|
-
flexGrow: 1,
|
|
8308
|
-
flexShrink: 1,
|
|
8309
|
-
flexBasis: "100%"
|
|
8310
|
-
/*
|
|
8311
|
-
Here we are setting the same min and max height because on web the content was overflowing and not scrolling
|
|
8312
|
-
minHeight is needed to make the modal fullscreen
|
|
8313
|
-
maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
|
|
8314
|
-
We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
|
|
8315
|
-
*/,
|
|
8316
|
-
_web: {
|
|
8317
|
-
minHeight: '100svh',
|
|
8318
|
-
maxHeight: '100svh'
|
|
8319
|
-
},
|
|
8320
|
-
backgroundColor: backgroundColor ?? 'kitt.uiBackgroundLight',
|
|
7773
|
+
verticalPadding
|
|
7774
|
+
}
|
|
7775
|
+
}
|
|
7776
|
+
}
|
|
7777
|
+
} = useTheme();
|
|
7778
|
+
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7779
|
+
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7780
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7781
|
+
...props,
|
|
7782
|
+
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7783
|
+
paddingTop: paddingTop,
|
|
7784
|
+
paddingBottom: paddingBottom,
|
|
7785
|
+
style: style,
|
|
8321
7786
|
children: children
|
|
8322
7787
|
});
|
|
8323
7788
|
}
|
|
8324
7789
|
|
|
8325
|
-
function
|
|
7790
|
+
function FullscreenModalFooter({
|
|
7791
|
+
shouldHandleBottomNotch = true,
|
|
8326
7792
|
hasSeparator = true,
|
|
8327
|
-
isTransparent,
|
|
8328
|
-
title,
|
|
8329
7793
|
children,
|
|
8330
|
-
right,
|
|
8331
|
-
left,
|
|
8332
|
-
shouldHandleTopNotch = true,
|
|
8333
7794
|
...props
|
|
8334
7795
|
}) {
|
|
8335
7796
|
const {
|
|
8336
|
-
|
|
7797
|
+
bottom
|
|
8337
7798
|
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8338
|
-
const hasRight = Boolean(right);
|
|
8339
|
-
const hasLeft = Boolean(left);
|
|
8340
|
-
const hasContent = Boolean(title || children);
|
|
8341
7799
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
8348
|
-
paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
8349
|
-
borderBottomColor: "kitt.separator",
|
|
8350
|
-
borderBottomWidth: hasSeparator ? 1 : undefined,
|
|
7800
|
+
borderTopColor: "kitt.separator",
|
|
7801
|
+
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
7802
|
+
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7803
|
+
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
7804
|
+
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8351
7805
|
...props,
|
|
8352
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
8356
|
-
children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8357
|
-
width: "kitt.iconButton.width",
|
|
8358
|
-
children: left
|
|
8359
|
-
}) : null, title ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8360
|
-
flexGrow: 1,
|
|
8361
|
-
flexShrink: 1,
|
|
8362
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8363
|
-
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
8364
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8365
|
-
variant: "bold",
|
|
8366
|
-
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
8367
|
-
children: title
|
|
8368
|
-
})
|
|
8369
|
-
}) : null, children ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8370
|
-
flexGrow: 1,
|
|
8371
|
-
flexShrink: 1,
|
|
8372
|
-
alignItems: "center",
|
|
8373
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8374
|
-
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
8375
|
-
children: children
|
|
8376
|
-
}) : null, right || left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8377
|
-
width: "kitt.iconButton.width",
|
|
8378
|
-
children: right
|
|
8379
|
-
}) : null]
|
|
8380
|
-
})
|
|
8381
|
-
});
|
|
8382
|
-
}
|
|
8383
|
-
|
|
8384
|
-
function FullscreenModal({
|
|
8385
|
-
body,
|
|
8386
|
-
header,
|
|
8387
|
-
footer,
|
|
8388
|
-
backgroundColor,
|
|
8389
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
8390
|
-
}) {
|
|
8391
|
-
return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
|
|
8392
|
-
backgroundColor: backgroundColor,
|
|
8393
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
|
|
8394
|
-
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8395
|
-
children: header
|
|
8396
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8397
|
-
flexGrow: 1,
|
|
8398
|
-
flexShrink: 1,
|
|
8399
|
-
justifyContent: "space-between",
|
|
8400
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8401
|
-
bounces: false,
|
|
8402
|
-
contentContainerStyle: {
|
|
8403
|
-
flexGrow: 1,
|
|
8404
|
-
position: 'relative'
|
|
8405
|
-
},
|
|
8406
|
-
children: body
|
|
8407
|
-
}), footer || null]
|
|
8408
|
-
})]
|
|
7806
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7807
|
+
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7808
|
+
children: children
|
|
8409
7809
|
})
|
|
8410
7810
|
});
|
|
8411
7811
|
}
|
|
8412
|
-
FullscreenModal.Header = FullscreenModalHeader;
|
|
8413
|
-
FullscreenModal.Footer = FullscreenModalFooter;
|
|
8414
|
-
FullscreenModal.Body = FullscreenModalBody;
|
|
8415
|
-
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
8416
7812
|
|
|
8417
7813
|
function NativeOpacityAnimation({
|
|
8418
7814
|
visible,
|
|
@@ -8489,7 +7885,7 @@ function NativeSlideInAnimation({
|
|
|
8489
7885
|
});
|
|
8490
7886
|
}
|
|
8491
7887
|
|
|
8492
|
-
function
|
|
7888
|
+
function FullscreenModalAnimation({
|
|
8493
7889
|
visible,
|
|
8494
7890
|
children,
|
|
8495
7891
|
onEnter,
|
|
@@ -8547,7 +7943,7 @@ function FullscreenModal2Animation({
|
|
|
8547
7943
|
});
|
|
8548
7944
|
}
|
|
8549
7945
|
|
|
8550
|
-
function
|
|
7946
|
+
function FullscreenModalBehaviour({
|
|
8551
7947
|
children,
|
|
8552
7948
|
visible,
|
|
8553
7949
|
onClose,
|
|
@@ -8563,7 +7959,7 @@ function FullscreenModal2Behaviour({
|
|
|
8563
7959
|
return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
|
|
8564
7960
|
visible: isModalBehaviourVisible,
|
|
8565
7961
|
onClose: onClose,
|
|
8566
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
7962
|
+
children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModalAnimation, {
|
|
8567
7963
|
...props,
|
|
8568
7964
|
visible: visible,
|
|
8569
7965
|
onExited: () => {
|
|
@@ -8575,51 +7971,7 @@ function FullscreenModal2Behaviour({
|
|
|
8575
7971
|
});
|
|
8576
7972
|
}
|
|
8577
7973
|
|
|
8578
|
-
function
|
|
8579
|
-
children,
|
|
8580
|
-
shouldHandleBottomNotch,
|
|
8581
|
-
style,
|
|
8582
|
-
shouldHandleTopNotch,
|
|
8583
|
-
...props
|
|
8584
|
-
}) {
|
|
8585
|
-
const {
|
|
8586
|
-
bottom,
|
|
8587
|
-
top
|
|
8588
|
-
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8589
|
-
const {
|
|
8590
|
-
kitt: {
|
|
8591
|
-
fullscreenModal: {
|
|
8592
|
-
body: {
|
|
8593
|
-
verticalPadding
|
|
8594
|
-
}
|
|
8595
|
-
}
|
|
8596
|
-
}
|
|
8597
|
-
} = useTheme();
|
|
8598
|
-
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8599
|
-
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8600
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8601
|
-
flexGrow: 1,
|
|
8602
|
-
flexShrink: 1,
|
|
8603
|
-
justifyContent: "space-between",
|
|
8604
|
-
children: /*#__PURE__*/jsxRuntime.jsx(nativeBase.ScrollView, {
|
|
8605
|
-
bounces: false,
|
|
8606
|
-
contentContainerStyle: {
|
|
8607
|
-
flexGrow: 1,
|
|
8608
|
-
position: 'relative'
|
|
8609
|
-
},
|
|
8610
|
-
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8611
|
-
...props,
|
|
8612
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8613
|
-
paddingTop: paddingTop,
|
|
8614
|
-
paddingBottom: paddingBottom,
|
|
8615
|
-
style: style,
|
|
8616
|
-
children: children
|
|
8617
|
-
})
|
|
8618
|
-
})
|
|
8619
|
-
});
|
|
8620
|
-
}
|
|
8621
|
-
|
|
8622
|
-
function FullscreenModal2Container({
|
|
7974
|
+
function FullscreenModalContainer({
|
|
8623
7975
|
children,
|
|
8624
7976
|
backgroundColor
|
|
8625
7977
|
}) {
|
|
@@ -8643,30 +7995,7 @@ function FullscreenModal2Container({
|
|
|
8643
7995
|
});
|
|
8644
7996
|
}
|
|
8645
7997
|
|
|
8646
|
-
function
|
|
8647
|
-
shouldHandleBottomNotch = true,
|
|
8648
|
-
hasSeparator = true,
|
|
8649
|
-
children,
|
|
8650
|
-
...props
|
|
8651
|
-
}) {
|
|
8652
|
-
const {
|
|
8653
|
-
bottom
|
|
8654
|
-
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8655
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8656
|
-
borderTopColor: "kitt.separator",
|
|
8657
|
-
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
8658
|
-
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8659
|
-
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
8660
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8661
|
-
...props,
|
|
8662
|
-
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8663
|
-
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8664
|
-
children: children
|
|
8665
|
-
})
|
|
8666
|
-
});
|
|
8667
|
-
}
|
|
8668
|
-
|
|
8669
|
-
function FullscreenModal2Header({
|
|
7998
|
+
function FullscreenModalHeader({
|
|
8670
7999
|
hasSeparator = true,
|
|
8671
8000
|
isTransparent,
|
|
8672
8001
|
title,
|
|
@@ -8725,19 +8054,35 @@ function FullscreenModal2Header({
|
|
|
8725
8054
|
});
|
|
8726
8055
|
}
|
|
8727
8056
|
|
|
8728
|
-
function
|
|
8729
|
-
|
|
8730
|
-
|
|
8057
|
+
function FullscreenModal({
|
|
8058
|
+
body,
|
|
8059
|
+
header,
|
|
8060
|
+
footer,
|
|
8061
|
+
backgroundColor
|
|
8731
8062
|
}) {
|
|
8732
|
-
return /*#__PURE__*/jsxRuntime.
|
|
8063
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
|
|
8733
8064
|
backgroundColor: backgroundColor,
|
|
8734
|
-
children:
|
|
8065
|
+
children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8066
|
+
children: header
|
|
8067
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8068
|
+
flexGrow: 1,
|
|
8069
|
+
flexShrink: 1,
|
|
8070
|
+
justifyContent: "space-between",
|
|
8071
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
8072
|
+
bounces: false,
|
|
8073
|
+
contentContainerStyle: {
|
|
8074
|
+
flexGrow: 1,
|
|
8075
|
+
position: 'relative'
|
|
8076
|
+
},
|
|
8077
|
+
children: body
|
|
8078
|
+
}), footer || null]
|
|
8079
|
+
})]
|
|
8735
8080
|
});
|
|
8736
8081
|
}
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8082
|
+
FullscreenModal.Header = FullscreenModalHeader;
|
|
8083
|
+
FullscreenModal.Footer = FullscreenModalFooter;
|
|
8084
|
+
FullscreenModal.Body = FullscreenModalBody;
|
|
8085
|
+
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
8741
8086
|
|
|
8742
8087
|
function GroupTags({
|
|
8743
8088
|
children,
|
|
@@ -12161,8 +11506,7 @@ function NavigationModal({
|
|
|
12161
11506
|
body,
|
|
12162
11507
|
backgroundColor,
|
|
12163
11508
|
footer,
|
|
12164
|
-
header
|
|
12165
|
-
contentContainer
|
|
11509
|
+
header
|
|
12166
11510
|
}) {
|
|
12167
11511
|
const Component = useBreakpointValue({
|
|
12168
11512
|
base: FullscreenModal,
|
|
@@ -12172,11 +11516,10 @@ function NavigationModal({
|
|
|
12172
11516
|
body: body,
|
|
12173
11517
|
backgroundColor: backgroundColor,
|
|
12174
11518
|
footer: footer,
|
|
12175
|
-
header: header
|
|
12176
|
-
contentContainer: contentContainer
|
|
11519
|
+
header: header
|
|
12177
11520
|
});
|
|
12178
11521
|
}
|
|
12179
|
-
function Header
|
|
11522
|
+
function Header(props) {
|
|
12180
11523
|
const Component = useBreakpointValue({
|
|
12181
11524
|
base: FullscreenModal.Header,
|
|
12182
11525
|
small: CardModal.Header
|
|
@@ -12185,7 +11528,7 @@ function Header$1(props) {
|
|
|
12185
11528
|
...props
|
|
12186
11529
|
});
|
|
12187
11530
|
}
|
|
12188
|
-
function Body
|
|
11531
|
+
function Body(props) {
|
|
12189
11532
|
const Component = useBreakpointValue({
|
|
12190
11533
|
base: FullscreenModal.Body,
|
|
12191
11534
|
small: CardModal.Body
|
|
@@ -12194,7 +11537,7 @@ function Body$1(props) {
|
|
|
12194
11537
|
...props
|
|
12195
11538
|
});
|
|
12196
11539
|
}
|
|
12197
|
-
function Footer
|
|
11540
|
+
function Footer(props) {
|
|
12198
11541
|
const Component = useBreakpointValue({
|
|
12199
11542
|
base: FullscreenModal.Footer,
|
|
12200
11543
|
small: CardModal.Footer
|
|
@@ -12203,106 +11546,11 @@ function Footer$1(props) {
|
|
|
12203
11546
|
...props
|
|
12204
11547
|
});
|
|
12205
11548
|
}
|
|
12206
|
-
NavigationModal.Header = Header
|
|
12207
|
-
NavigationModal.Body = Body
|
|
12208
|
-
NavigationModal.Footer = Footer
|
|
11549
|
+
NavigationModal.Header = Header;
|
|
11550
|
+
NavigationModal.Body = Body;
|
|
11551
|
+
NavigationModal.Footer = Footer;
|
|
12209
11552
|
NavigationModal.ModalBehaviour = NavigationModalBehaviour;
|
|
12210
11553
|
|
|
12211
|
-
function NavigationModal2Behaviour({
|
|
12212
|
-
children,
|
|
12213
|
-
visible,
|
|
12214
|
-
appear = true,
|
|
12215
|
-
onExited,
|
|
12216
|
-
onEnter,
|
|
12217
|
-
onExit,
|
|
12218
|
-
onClose,
|
|
12219
|
-
...props
|
|
12220
|
-
}) {
|
|
12221
|
-
const AnimationComponent = useBreakpointValue({
|
|
12222
|
-
base: FullscreenModal2Animation,
|
|
12223
|
-
small: CardModal2Animation
|
|
12224
|
-
});
|
|
12225
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = React.useState(visible);
|
|
12226
|
-
const [shouldAppear, setShouldAppear] = React.useState(appear);
|
|
12227
|
-
React.useEffect(() => {
|
|
12228
|
-
if (visible === true) {
|
|
12229
|
-
setIsModalBehaviourVisible(true);
|
|
12230
|
-
}
|
|
12231
|
-
}, [visible]);
|
|
12232
|
-
return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
|
|
12233
|
-
visible: isModalBehaviourVisible,
|
|
12234
|
-
onClose: onClose,
|
|
12235
|
-
children: /*#__PURE__*/jsxRuntime.jsx(AnimationComponent, {
|
|
12236
|
-
...props,
|
|
12237
|
-
appear: shouldAppear,
|
|
12238
|
-
visible: visible,
|
|
12239
|
-
onEnter: () => {
|
|
12240
|
-
if (onEnter) onEnter();
|
|
12241
|
-
|
|
12242
|
-
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
12243
|
-
setShouldAppear(false);
|
|
12244
|
-
},
|
|
12245
|
-
onExit: () => {
|
|
12246
|
-
if (onExit) onExit();
|
|
12247
|
-
|
|
12248
|
-
// Reset appear value to its original value for future modal display
|
|
12249
|
-
setShouldAppear(appear);
|
|
12250
|
-
},
|
|
12251
|
-
onExited: () => {
|
|
12252
|
-
if (onExited) onExited();
|
|
12253
|
-
setIsModalBehaviourVisible(false);
|
|
12254
|
-
},
|
|
12255
|
-
onClose: onClose,
|
|
12256
|
-
children: children
|
|
12257
|
-
})
|
|
12258
|
-
});
|
|
12259
|
-
}
|
|
12260
|
-
|
|
12261
|
-
function NavigationModal2({
|
|
12262
|
-
backgroundColor,
|
|
12263
|
-
children
|
|
12264
|
-
}) {
|
|
12265
|
-
const Component = useBreakpointValue({
|
|
12266
|
-
base: FullscreenModal2,
|
|
12267
|
-
small: CardModal2
|
|
12268
|
-
});
|
|
12269
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
12270
|
-
backgroundColor: backgroundColor,
|
|
12271
|
-
children: children
|
|
12272
|
-
});
|
|
12273
|
-
}
|
|
12274
|
-
function Header(props) {
|
|
12275
|
-
const Component = useBreakpointValue({
|
|
12276
|
-
base: FullscreenModal2.Header,
|
|
12277
|
-
small: CardModal2.Header
|
|
12278
|
-
});
|
|
12279
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
12280
|
-
...props
|
|
12281
|
-
});
|
|
12282
|
-
}
|
|
12283
|
-
function Body(props) {
|
|
12284
|
-
const Component = useBreakpointValue({
|
|
12285
|
-
base: FullscreenModal2.Body,
|
|
12286
|
-
small: CardModal2.Body
|
|
12287
|
-
});
|
|
12288
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
12289
|
-
...props
|
|
12290
|
-
});
|
|
12291
|
-
}
|
|
12292
|
-
function Footer(props) {
|
|
12293
|
-
const Component = useBreakpointValue({
|
|
12294
|
-
base: FullscreenModal2.Footer,
|
|
12295
|
-
small: CardModal2.Footer
|
|
12296
|
-
});
|
|
12297
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
12298
|
-
...props
|
|
12299
|
-
});
|
|
12300
|
-
}
|
|
12301
|
-
NavigationModal2.Header = Header;
|
|
12302
|
-
NavigationModal2.Body = Body;
|
|
12303
|
-
NavigationModal2.Footer = Footer;
|
|
12304
|
-
NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
|
|
12305
|
-
|
|
12306
11554
|
function Notification({
|
|
12307
11555
|
type,
|
|
12308
11556
|
children,
|
|
@@ -14688,7 +13936,6 @@ exports.Avatar = Avatar;
|
|
|
14688
13936
|
exports.BottomSheet = BottomSheet;
|
|
14689
13937
|
exports.Button = Button;
|
|
14690
13938
|
exports.CardModal = CardModal;
|
|
14691
|
-
exports.CardModal2 = CardModal2;
|
|
14692
13939
|
exports.Center = Center;
|
|
14693
13940
|
exports.Checkbox = Checkbox;
|
|
14694
13941
|
exports.ChoicesElements = ChoicesElements;
|
|
@@ -14703,7 +13950,6 @@ exports.FilePicker = FilePicker;
|
|
|
14703
13950
|
exports.FlatList = FlatList;
|
|
14704
13951
|
exports.Flex = Flex;
|
|
14705
13952
|
exports.FullscreenModal = FullscreenModal;
|
|
14706
|
-
exports.FullscreenModal2 = FullscreenModal2;
|
|
14707
13953
|
exports.GoogleMapsApiKeyProvider = GoogleMapsApiKeyProvider;
|
|
14708
13954
|
exports.GoogleMapsAutocompleteProvider = GoogleMapsAutocompleteProvider;
|
|
14709
13955
|
exports.GroupTags = GroupTags;
|
|
@@ -14743,7 +13989,6 @@ exports.Message = Message;
|
|
|
14743
13989
|
exports.ModalBehaviour = ModalBehaviour;
|
|
14744
13990
|
exports.NativeOnlyFlatList = FlatList;
|
|
14745
13991
|
exports.NavigationModal = NavigationModal;
|
|
14746
|
-
exports.NavigationModal2 = NavigationModal2;
|
|
14747
13992
|
exports.Notification = Notification;
|
|
14748
13993
|
exports.Overlay = Overlay;
|
|
14749
13994
|
exports.PageLoader = PageLoader;
|