@ornikar/kitt-universal 25.47.1 → 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.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 +20 -0
- package/dist/definitions/CardModal2/CardModal2.d.ts +19 -0
- package/dist/definitions/CardModal2/CardModal2.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +8 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +4 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +7 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +8 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +11 -0
- package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +8 -0
- package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +7 -0
- package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +7 -0
- package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +1 -0
- package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +20 -0
- package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +18 -0
- package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +8 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +8 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +9 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +8 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +8 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +22 -0
- package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +7 -0
- package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +1 -0
- package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +10 -0
- package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +1 -0
- package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +23 -0
- package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +1 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +8 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +1 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +7 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +1 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +7 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +1 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +7 -0
- package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +1 -0
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +2 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +6 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +1028 -294
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +1028 -294
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +807 -76
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.css +8 -0
- package/dist/index-node-20.10.cjs.web.js +777 -120
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +805 -77
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.css +8 -0
- package/dist/index-node-20.10.es.web.mjs +776 -122
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +897 -152
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +778 -120
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +8 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -13,7 +13,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
|
13
13
|
import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
15
|
import { CSSTransition } from 'react-transition-group';
|
|
16
|
-
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
16
|
+
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, StyleSheet, useWindowDimensions, Modal } from 'react-native';
|
|
17
17
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
18
18
|
import { parse } from '@twemoji/parser';
|
|
19
19
|
import Downshift, { useSelect } from 'downshift';
|
|
@@ -2627,7 +2627,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2627
2627
|
});
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
var _excluded$
|
|
2630
|
+
var _excluded$11 = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2631
2631
|
function ActionCard(_ref) {
|
|
2632
2632
|
var children = _ref.children,
|
|
2633
2633
|
_ref$variant = _ref.variant,
|
|
@@ -2640,7 +2640,7 @@ function ActionCard(_ref) {
|
|
|
2640
2640
|
isHovered = _ref.isHovered,
|
|
2641
2641
|
isPressed = _ref.isPressed,
|
|
2642
2642
|
isFocused = _ref.isFocused,
|
|
2643
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2643
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
2644
2644
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2645
2645
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2646
2646
|
borderRadius: borderRadius,
|
|
@@ -2989,7 +2989,7 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
|
|
|
2989
2989
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
2990
2990
|
};
|
|
2991
2991
|
|
|
2992
|
-
var _excluded$
|
|
2992
|
+
var _excluded$10 = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2993
2993
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
2994
2994
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
2995
2995
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3044,7 +3044,7 @@ function Typography(_ref) {
|
|
|
3044
3044
|
} : _ref$type,
|
|
3045
3045
|
variant = _ref.variant,
|
|
3046
3046
|
color = _ref.color,
|
|
3047
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
3047
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$10);
|
|
3048
3048
|
var sx = useSx();
|
|
3049
3049
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3050
3050
|
var defaultColor = useTypographyDefaultColor();
|
|
@@ -3160,7 +3160,7 @@ function Icon(_ref) {
|
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
3162
3162
|
|
|
3163
|
-
var _excluded
|
|
3163
|
+
var _excluded$$ = ["color", "size"],
|
|
3164
3164
|
_excluded2$6 = ["color"];
|
|
3165
3165
|
function getIconSizeConfigKeyFromTypeName(breakpointName) {
|
|
3166
3166
|
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
@@ -3181,7 +3181,7 @@ function createNativeBaseIconSize(type) {
|
|
|
3181
3181
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3182
3182
|
var color = _ref.color,
|
|
3183
3183
|
size = _ref.size,
|
|
3184
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3184
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
3185
3185
|
var ancestorType = useTypographyAncestorType();
|
|
3186
3186
|
var iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
|
|
3187
3187
|
var colorValue = getTypographyColorValue(color);
|
|
@@ -3234,7 +3234,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed) {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
};
|
|
3236
3236
|
|
|
3237
|
-
var _excluded$
|
|
3237
|
+
var _excluded$_ = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing"];
|
|
3238
3238
|
function ButtonIcon(_ref) {
|
|
3239
3239
|
var icon = _ref.icon,
|
|
3240
3240
|
color = _ref.color,
|
|
@@ -3311,7 +3311,7 @@ function ButtonContent(_ref3) {
|
|
|
3311
3311
|
isPressed = _ref3.isPressed;
|
|
3312
3312
|
_ref3.isFocused;
|
|
3313
3313
|
var innerSpacing = _ref3.innerSpacing,
|
|
3314
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
3314
|
+
props = _objectWithoutProperties(_ref3, _excluded$_);
|
|
3315
3315
|
var color = isDisabled ? 'black-light' : getButtonTextColorByType(type, variant, isHovered, isPressed);
|
|
3316
3316
|
return /*#__PURE__*/jsx(View, {
|
|
3317
3317
|
_web: {
|
|
@@ -3544,7 +3544,7 @@ function LoaderIcon(_ref) {
|
|
|
3544
3544
|
});
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
|
-
var _excluded$
|
|
3547
|
+
var _excluded$Z = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3548
3548
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3549
3549
|
var as = _ref.as,
|
|
3550
3550
|
onPress = _ref.onPress,
|
|
@@ -3555,7 +3555,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3555
3555
|
base: true,
|
|
3556
3556
|
medium: false
|
|
3557
3557
|
} : _ref$stretch,
|
|
3558
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3558
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
3559
3559
|
var _useState = useState(false),
|
|
3560
3560
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3561
3561
|
isLoading = _useState2[0],
|
|
@@ -3628,7 +3628,7 @@ function ActionsButton(_ref) {
|
|
|
3628
3628
|
}, props));
|
|
3629
3629
|
}
|
|
3630
3630
|
|
|
3631
|
-
var _excluded$
|
|
3631
|
+
var _excluded$Y = ["children", "layout", "reversed"];
|
|
3632
3632
|
function getCurrentLayout(layout) {
|
|
3633
3633
|
if (!layout) return {
|
|
3634
3634
|
base: 'stretch',
|
|
@@ -3660,7 +3660,7 @@ function Actions(_ref) {
|
|
|
3660
3660
|
reversed = _ref$reversed === void 0 ? {
|
|
3661
3661
|
base: false
|
|
3662
3662
|
} : _ref$reversed,
|
|
3663
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3663
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
3664
3664
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
3665
3665
|
base: !!reversed
|
|
3666
3666
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3713,7 +3713,7 @@ function getInitials(firstname, lastname) {
|
|
|
3713
3713
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
3714
3714
|
}
|
|
3715
3715
|
|
|
3716
|
-
var _excluded$
|
|
3716
|
+
var _excluded$X = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3717
3717
|
function AvatarContent(_ref) {
|
|
3718
3718
|
var size = _ref.size,
|
|
3719
3719
|
src = _ref.src,
|
|
@@ -3776,7 +3776,7 @@ function Avatar(_ref2) {
|
|
|
3776
3776
|
height = _ref2.height,
|
|
3777
3777
|
dark = _ref2.dark,
|
|
3778
3778
|
disabled = _ref2.disabled,
|
|
3779
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3779
|
+
props = _objectWithoutProperties(_ref2, _excluded$X);
|
|
3780
3780
|
var currentSize = getCurrentSize({
|
|
3781
3781
|
size: size,
|
|
3782
3782
|
sizeVariant: sizeVariant
|
|
@@ -3971,30 +3971,30 @@ function CardModalRotationContainer(props) {
|
|
|
3971
3971
|
}, props));
|
|
3972
3972
|
}
|
|
3973
3973
|
|
|
3974
|
-
var _excluded$
|
|
3975
|
-
var contentAnimationEnter$
|
|
3976
|
-
var contentAnimatioEnterActive$
|
|
3977
|
-
var contentAnimatioExit$
|
|
3978
|
-
var contentAnimatioExitActive$
|
|
3979
|
-
var contentAnimationClassNames$
|
|
3980
|
-
appear: contentAnimationEnter$
|
|
3981
|
-
appearActive: contentAnimatioEnterActive$
|
|
3982
|
-
enter: contentAnimationEnter$
|
|
3983
|
-
enterActive: contentAnimatioEnterActive$
|
|
3984
|
-
exit: contentAnimatioExit$
|
|
3985
|
-
exitActive: contentAnimatioExitActive$
|
|
3974
|
+
var _excluded$W = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
3975
|
+
var contentAnimationEnter$2 = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
3976
|
+
var contentAnimatioEnterActive$2 = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
3977
|
+
var contentAnimatioExit$2 = "kitt-u_contentAnimatioExit_cyjczep";
|
|
3978
|
+
var contentAnimatioExitActive$2 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
|
|
3979
|
+
var contentAnimationClassNames$2 = {
|
|
3980
|
+
appear: contentAnimationEnter$2,
|
|
3981
|
+
appearActive: contentAnimatioEnterActive$2,
|
|
3982
|
+
enter: contentAnimationEnter$2,
|
|
3983
|
+
enterActive: contentAnimatioEnterActive$2,
|
|
3984
|
+
exit: contentAnimatioExit$2,
|
|
3985
|
+
exitActive: contentAnimatioExitActive$2
|
|
3986
3986
|
};
|
|
3987
|
-
var opacityEnter$
|
|
3988
|
-
var opacityEnterActive$
|
|
3989
|
-
var opacityExit$
|
|
3990
|
-
var opacityExitActive$
|
|
3991
|
-
var opacityClassNames$
|
|
3992
|
-
appear: opacityEnter$
|
|
3993
|
-
appearActive: opacityEnterActive$
|
|
3994
|
-
enter: opacityEnter$
|
|
3995
|
-
enterActive: opacityEnterActive$
|
|
3996
|
-
exit: opacityExit$
|
|
3997
|
-
exitActive: opacityExitActive$
|
|
3987
|
+
var opacityEnter$3 = "kitt-u_opacityEnter_o1ae40dx";
|
|
3988
|
+
var opacityEnterActive$3 = "kitt-u_opacityEnterActive_o1t4vl7b";
|
|
3989
|
+
var opacityExit$3 = "kitt-u_opacityExit_ogyytm1";
|
|
3990
|
+
var opacityExitActive$3 = "kitt-u_opacityExitActive_o18xvk52";
|
|
3991
|
+
var opacityClassNames$3 = {
|
|
3992
|
+
appear: opacityEnter$3,
|
|
3993
|
+
appearActive: opacityEnterActive$3,
|
|
3994
|
+
enter: opacityEnter$3,
|
|
3995
|
+
enterActive: opacityEnterActive$3,
|
|
3996
|
+
exit: opacityExit$3,
|
|
3997
|
+
exitActive: opacityExitActive$3
|
|
3998
3998
|
};
|
|
3999
3999
|
function CardModalAnimation(_ref) {
|
|
4000
4000
|
var children = _ref.children,
|
|
@@ -4010,7 +4010,7 @@ function CardModalAnimation(_ref) {
|
|
|
4010
4010
|
onExit = _ref.onExit,
|
|
4011
4011
|
onExited = _ref.onExited,
|
|
4012
4012
|
onClose = _ref.onClose,
|
|
4013
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4013
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
4014
4014
|
var theme = useTheme();
|
|
4015
4015
|
var animation = theme.kitt.cardModal.animation;
|
|
4016
4016
|
var sharedProps = {
|
|
@@ -4023,13 +4023,13 @@ function CardModalAnimation(_ref) {
|
|
|
4023
4023
|
justifyContent: "center",
|
|
4024
4024
|
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
4025
4025
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4026
|
-
classNames: opacityClassNames$
|
|
4026
|
+
classNames: opacityClassNames$3,
|
|
4027
4027
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4028
4028
|
onPress: onClose
|
|
4029
4029
|
})
|
|
4030
4030
|
})), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
4031
4031
|
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
4032
|
-
classNames: contentAnimationClassNames$
|
|
4032
|
+
classNames: contentAnimationClassNames$2,
|
|
4033
4033
|
onEnter: onEnter,
|
|
4034
4034
|
onEntered: onEntered,
|
|
4035
4035
|
onExit: onExit,
|
|
@@ -4043,13 +4043,13 @@ function CardModalAnimation(_ref) {
|
|
|
4043
4043
|
}));
|
|
4044
4044
|
}
|
|
4045
4045
|
|
|
4046
|
-
var _excluded$
|
|
4046
|
+
var _excluded$V = ["children", "visible", "onClose", "onExited"];
|
|
4047
4047
|
function CardModalBehaviour(_ref) {
|
|
4048
4048
|
var children = _ref.children,
|
|
4049
4049
|
visible = _ref.visible,
|
|
4050
4050
|
onClose = _ref.onClose,
|
|
4051
4051
|
onExited = _ref.onExited,
|
|
4052
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4052
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
4053
4053
|
var _useState = useState(visible),
|
|
4054
4054
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4055
4055
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4074,7 +4074,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4074
4074
|
});
|
|
4075
4075
|
}
|
|
4076
4076
|
|
|
4077
|
-
var _excluded$
|
|
4077
|
+
var _excluded$U = ["children", "paddingX", "paddingY"];
|
|
4078
4078
|
function CardModalBody(_ref) {
|
|
4079
4079
|
var children = _ref.children,
|
|
4080
4080
|
_ref$paddingX = _ref.paddingX,
|
|
@@ -4084,7 +4084,7 @@ function CardModalBody(_ref) {
|
|
|
4084
4084
|
} : _ref$paddingX,
|
|
4085
4085
|
_ref$paddingY = _ref.paddingY,
|
|
4086
4086
|
paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
|
|
4087
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4087
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
4088
4088
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4089
4089
|
showsVerticalScrollIndicator: false,
|
|
4090
4090
|
_contentContainerStyle: {
|
|
@@ -4096,7 +4096,7 @@ function CardModalBody(_ref) {
|
|
|
4096
4096
|
}));
|
|
4097
4097
|
}
|
|
4098
4098
|
|
|
4099
|
-
var _excluded$
|
|
4099
|
+
var _excluded$T = ["children", "padding", "hasSeparator"];
|
|
4100
4100
|
function CardModalFooter(_ref) {
|
|
4101
4101
|
var children = _ref.children,
|
|
4102
4102
|
_ref$padding = _ref.padding,
|
|
@@ -4106,7 +4106,7 @@ function CardModalFooter(_ref) {
|
|
|
4106
4106
|
} : _ref$padding,
|
|
4107
4107
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4108
4108
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4109
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4109
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
4110
4110
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4111
4111
|
marginTop: "kitt.2",
|
|
4112
4112
|
padding: padding,
|
|
@@ -4120,7 +4120,7 @@ function CardModalFooter(_ref) {
|
|
|
4120
4120
|
}));
|
|
4121
4121
|
}
|
|
4122
4122
|
|
|
4123
|
-
var _excluded$
|
|
4123
|
+
var _excluded$S = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4124
4124
|
function CardModalHeader(_ref) {
|
|
4125
4125
|
var children = _ref.children,
|
|
4126
4126
|
title = _ref.title,
|
|
@@ -4133,7 +4133,7 @@ function CardModalHeader(_ref) {
|
|
|
4133
4133
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4134
4134
|
right = _ref.right,
|
|
4135
4135
|
left = _ref.left,
|
|
4136
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4136
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
4137
4137
|
var defaultContainerPadding = {
|
|
4138
4138
|
base: 'kitt.4',
|
|
4139
4139
|
medium: 'kitt.6'
|
|
@@ -4171,7 +4171,7 @@ function CardModalHeader(_ref) {
|
|
|
4171
4171
|
}));
|
|
4172
4172
|
}
|
|
4173
4173
|
|
|
4174
|
-
var _excluded$
|
|
4174
|
+
var _excluded$R = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
|
|
4175
4175
|
function CardModal(_ref) {
|
|
4176
4176
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4177
4177
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4184,7 +4184,7 @@ function CardModal(_ref) {
|
|
|
4184
4184
|
footer = _ref.footer,
|
|
4185
4185
|
_ref$contentContainer = _ref.contentContainer,
|
|
4186
4186
|
ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
|
|
4187
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4187
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
4188
4188
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4189
4189
|
overflow: "hidden",
|
|
4190
4190
|
backgroundColor: backgroundColor,
|
|
@@ -4206,6 +4206,245 @@ CardModal.Header = CardModalHeader;
|
|
|
4206
4206
|
CardModal.Footer = CardModalFooter;
|
|
4207
4207
|
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
4208
4208
|
|
|
4209
|
+
function CardModal2RotationContainer(props) {
|
|
4210
|
+
return /*#__PURE__*/jsx(View, _objectSpread({
|
|
4211
|
+
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4212
|
+
paddingY: "kitt.cardModal.overlayPadding.vertical",
|
|
4213
|
+
maxWidth: "kitt.cardModal.maxWidthWithPadding",
|
|
4214
|
+
width: "100%",
|
|
4215
|
+
maxHeight: "100%",
|
|
4216
|
+
_web: {
|
|
4217
|
+
maxHeight: '100svh'
|
|
4218
|
+
}
|
|
4219
|
+
}, props));
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
var _excluded$Q = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4223
|
+
var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c1qvsvvv";
|
|
4224
|
+
var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_c1ka3ql7";
|
|
4225
|
+
var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cn78c68";
|
|
4226
|
+
var contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_c14lwu6p";
|
|
4227
|
+
var contentAnimationClassNames$1 = {
|
|
4228
|
+
appear: contentAnimationEnter$1,
|
|
4229
|
+
appearActive: contentAnimatioEnterActive$1,
|
|
4230
|
+
enter: contentAnimationEnter$1,
|
|
4231
|
+
enterActive: contentAnimatioEnterActive$1,
|
|
4232
|
+
exit: contentAnimatioExit$1,
|
|
4233
|
+
exitActive: contentAnimatioExitActive$1
|
|
4234
|
+
};
|
|
4235
|
+
var opacityEnter$2 = "kitt-u_opacityEnter_o1sh7i4q";
|
|
4236
|
+
var opacityEnterActive$2 = "kitt-u_opacityEnterActive_ow4hztn";
|
|
4237
|
+
var opacityExit$2 = "kitt-u_opacityExit_o1ct2t80";
|
|
4238
|
+
var opacityExitActive$2 = "kitt-u_opacityExitActive_ov5hhc8";
|
|
4239
|
+
var opacityClassNames$2 = {
|
|
4240
|
+
appear: opacityEnter$2,
|
|
4241
|
+
appearActive: opacityEnterActive$2,
|
|
4242
|
+
enter: opacityEnter$2,
|
|
4243
|
+
enterActive: opacityEnterActive$2,
|
|
4244
|
+
exit: opacityExit$2,
|
|
4245
|
+
exitActive: opacityExitActive$2
|
|
4246
|
+
};
|
|
4247
|
+
function CardModal2Animation(_ref) {
|
|
4248
|
+
var children = _ref.children,
|
|
4249
|
+
_ref$appear = _ref.appear,
|
|
4250
|
+
appear = _ref$appear === void 0 ? true : _ref$appear,
|
|
4251
|
+
visible = _ref.visible,
|
|
4252
|
+
_ref$unmountOnExit = _ref.unmountOnExit,
|
|
4253
|
+
unmountOnExit = _ref$unmountOnExit === void 0 ? true : _ref$unmountOnExit,
|
|
4254
|
+
_ref$isAnimationEnabl = _ref.isAnimationEnabled,
|
|
4255
|
+
isAnimationEnabled = _ref$isAnimationEnabl === void 0 ? true : _ref$isAnimationEnabl,
|
|
4256
|
+
onEnter = _ref.onEnter,
|
|
4257
|
+
onEntered = _ref.onEntered,
|
|
4258
|
+
onExit = _ref.onExit,
|
|
4259
|
+
onExited = _ref.onExited,
|
|
4260
|
+
onClose = _ref.onClose,
|
|
4261
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
4262
|
+
var theme = useTheme();
|
|
4263
|
+
var animation = theme.kitt.cardModal.animation;
|
|
4264
|
+
var sharedProps = {
|
|
4265
|
+
"in": visible,
|
|
4266
|
+
appear: appear,
|
|
4267
|
+
unmountOnExit: unmountOnExit
|
|
4268
|
+
};
|
|
4269
|
+
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4270
|
+
height: "100%",
|
|
4271
|
+
justifyContent: "center",
|
|
4272
|
+
children: [/*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
4273
|
+
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4274
|
+
classNames: opacityClassNames$2,
|
|
4275
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
4276
|
+
onPress: onClose
|
|
4277
|
+
})
|
|
4278
|
+
})), /*#__PURE__*/jsx(CSSTransition, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
4279
|
+
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
4280
|
+
classNames: contentAnimationClassNames$1,
|
|
4281
|
+
onEnter: onEnter,
|
|
4282
|
+
onEntered: onEntered,
|
|
4283
|
+
onExit: onExit,
|
|
4284
|
+
onExited: onExited,
|
|
4285
|
+
children: /*#__PURE__*/jsx(CardModal2RotationContainer, {
|
|
4286
|
+
alignItems: "center",
|
|
4287
|
+
margin: "auto",
|
|
4288
|
+
children: children
|
|
4289
|
+
})
|
|
4290
|
+
}))]
|
|
4291
|
+
}));
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
var _excluded$P = ["children", "visible", "onClose", "onExited"];
|
|
4295
|
+
function CardModal2Behaviour(_ref) {
|
|
4296
|
+
var children = _ref.children,
|
|
4297
|
+
visible = _ref.visible,
|
|
4298
|
+
onClose = _ref.onClose,
|
|
4299
|
+
onExited = _ref.onExited,
|
|
4300
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
4301
|
+
var _useState = useState(visible),
|
|
4302
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4303
|
+
isModalBehaviourVisible = _useState2[0],
|
|
4304
|
+
setIsModalBehaviourVisible = _useState2[1];
|
|
4305
|
+
useEffect(function () {
|
|
4306
|
+
if (visible === true) {
|
|
4307
|
+
setIsModalBehaviourVisible(true);
|
|
4308
|
+
}
|
|
4309
|
+
}, [visible]);
|
|
4310
|
+
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
4311
|
+
visible: isModalBehaviourVisible,
|
|
4312
|
+
onClose: onClose,
|
|
4313
|
+
children: /*#__PURE__*/jsx(CardModal2Animation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4314
|
+
visible: visible,
|
|
4315
|
+
onExited: function handleExitAnimationDone() {
|
|
4316
|
+
if (onExited) onExited();
|
|
4317
|
+
setIsModalBehaviourVisible(false);
|
|
4318
|
+
},
|
|
4319
|
+
onClose: onClose,
|
|
4320
|
+
children: children
|
|
4321
|
+
}))
|
|
4322
|
+
});
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
var _excluded$O = ["children", "paddingX", "paddingY"];
|
|
4326
|
+
function CardModal2Body(_ref) {
|
|
4327
|
+
var children = _ref.children,
|
|
4328
|
+
_ref$paddingX = _ref.paddingX,
|
|
4329
|
+
paddingX = _ref$paddingX === void 0 ? {
|
|
4330
|
+
base: 'kitt.4',
|
|
4331
|
+
medium: 'kitt.6'
|
|
4332
|
+
} : _ref$paddingX,
|
|
4333
|
+
_ref$paddingY = _ref.paddingY,
|
|
4334
|
+
paddingY = _ref$paddingY === void 0 ? 'kitt.4' : _ref$paddingY,
|
|
4335
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4336
|
+
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4337
|
+
showsVerticalScrollIndicator: false,
|
|
4338
|
+
_contentContainerStyle: {
|
|
4339
|
+
paddingX: paddingX,
|
|
4340
|
+
paddingY: paddingY
|
|
4341
|
+
}
|
|
4342
|
+
}, props), {}, {
|
|
4343
|
+
children: children
|
|
4344
|
+
}));
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
var _excluded$N = ["children", "padding", "hasSeparator"];
|
|
4348
|
+
function CardModal2Footer(_ref) {
|
|
4349
|
+
var children = _ref.children,
|
|
4350
|
+
_ref$padding = _ref.padding,
|
|
4351
|
+
padding = _ref$padding === void 0 ? {
|
|
4352
|
+
base: 'kitt.4',
|
|
4353
|
+
medium: 'kitt.2'
|
|
4354
|
+
} : _ref$padding,
|
|
4355
|
+
_ref$hasSeparator = _ref.hasSeparator,
|
|
4356
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4357
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
4358
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4359
|
+
marginTop: "kitt.2",
|
|
4360
|
+
padding: padding,
|
|
4361
|
+
borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4362
|
+
borderColor: "kitt.separator",
|
|
4363
|
+
alignItems: {
|
|
4364
|
+
base: undefined,
|
|
4365
|
+
medium: 'flex-end'
|
|
4366
|
+
},
|
|
4367
|
+
children: children
|
|
4368
|
+
}));
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
var _excluded$M = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4372
|
+
function CardModal2Header(_ref) {
|
|
4373
|
+
var children = _ref.children,
|
|
4374
|
+
title = _ref.title,
|
|
4375
|
+
_ref$paddingBottom = _ref.paddingBottom,
|
|
4376
|
+
paddingBottom = _ref$paddingBottom === void 0 ? {
|
|
4377
|
+
base: 'kitt.4',
|
|
4378
|
+
medium: 'kitt.2'
|
|
4379
|
+
} : _ref$paddingBottom,
|
|
4380
|
+
_ref$hasSeparator = _ref.hasSeparator,
|
|
4381
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4382
|
+
right = _ref.right,
|
|
4383
|
+
left = _ref.left,
|
|
4384
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
4385
|
+
var defaultContainerPadding = {
|
|
4386
|
+
base: 'kitt.4',
|
|
4387
|
+
medium: 'kitt.6'
|
|
4388
|
+
};
|
|
4389
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4390
|
+
padding: paddingBottom,
|
|
4391
|
+
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4392
|
+
borderColor: "kitt.separator",
|
|
4393
|
+
justifyContent: "center",
|
|
4394
|
+
width: "100%",
|
|
4395
|
+
height: "kitt.cardModal.header.height",
|
|
4396
|
+
paddingRight: right ? 'kitt.2' : defaultContainerPadding,
|
|
4397
|
+
paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
|
|
4398
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
4399
|
+
alignItems: "center",
|
|
4400
|
+
flexDirection: "row",
|
|
4401
|
+
justifyContent: !children && !left ? 'flex-end' : 'space-between',
|
|
4402
|
+
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4403
|
+
width: "kitt.iconButton.width",
|
|
4404
|
+
children: left
|
|
4405
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4406
|
+
flexGrow: "1",
|
|
4407
|
+
paddingRight: right ? 'kitt.2' : 0,
|
|
4408
|
+
paddingLeft: left ? 'kitt.2' : 0,
|
|
4409
|
+
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4410
|
+
textAlign: !left && right ? 'left' : 'center',
|
|
4411
|
+
variant: "bold",
|
|
4412
|
+
children: title
|
|
4413
|
+
}) : null, children]
|
|
4414
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
4415
|
+
width: "kitt.iconButton.width",
|
|
4416
|
+
children: right
|
|
4417
|
+
}) : null]
|
|
4418
|
+
})
|
|
4419
|
+
}));
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4422
|
+
var _excluded$L = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
|
|
4423
|
+
function CardModal2(_ref) {
|
|
4424
|
+
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4425
|
+
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
4426
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
4427
|
+
maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
|
|
4428
|
+
withoutShadow = _ref.withoutShadow,
|
|
4429
|
+
children = _ref.children,
|
|
4430
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4431
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4432
|
+
overflow: "hidden",
|
|
4433
|
+
backgroundColor: backgroundColor,
|
|
4434
|
+
shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
|
|
4435
|
+
borderRadius: "kitt.cardModal.borderRadius",
|
|
4436
|
+
width: "100%",
|
|
4437
|
+
maxHeight: "100%",
|
|
4438
|
+
maxWidth: maxWidth,
|
|
4439
|
+
minHeight: "kitt.cardModal.minHeight",
|
|
4440
|
+
children: children
|
|
4441
|
+
}));
|
|
4442
|
+
}
|
|
4443
|
+
CardModal2.Body = CardModal2Body;
|
|
4444
|
+
CardModal2.Header = CardModal2Header;
|
|
4445
|
+
CardModal2.Footer = CardModal2Footer;
|
|
4446
|
+
CardModal2.Behaviour = CardModal2Behaviour;
|
|
4447
|
+
|
|
4209
4448
|
function getBackgroundColor$6(_ref) {
|
|
4210
4449
|
var isDisabled = _ref.isDisabled,
|
|
4211
4450
|
isSelected = _ref.isSelected,
|
|
@@ -4382,11 +4621,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4382
4621
|
}));
|
|
4383
4622
|
}
|
|
4384
4623
|
|
|
4385
|
-
var _excluded$
|
|
4624
|
+
var _excluded$K = ["direction", "contentContainerStyle"];
|
|
4386
4625
|
function ChoicesContainer(_ref) {
|
|
4387
4626
|
var direction = _ref.direction,
|
|
4388
4627
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4389
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4628
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4390
4629
|
if (direction === 'row') {
|
|
4391
4630
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4392
4631
|
horizontal: true,
|
|
@@ -4463,7 +4702,7 @@ var ChoicesElements = {
|
|
|
4463
4702
|
ButtonChoices: ButtonChoices
|
|
4464
4703
|
};
|
|
4465
4704
|
|
|
4466
|
-
var _excluded$
|
|
4705
|
+
var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4467
4706
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4468
4707
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4469
4708
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -4502,7 +4741,7 @@ function DialogModalAnimation(_ref) {
|
|
|
4502
4741
|
onExit = _ref.onExit,
|
|
4503
4742
|
onExited = _ref.onExited,
|
|
4504
4743
|
onClose = _ref.onClose,
|
|
4505
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4744
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4506
4745
|
var theme = useTheme();
|
|
4507
4746
|
var animation = theme.kitt.dialogModal.animation;
|
|
4508
4747
|
var sharedProps = {
|
|
@@ -4537,13 +4776,13 @@ function DialogModalAnimation(_ref) {
|
|
|
4537
4776
|
}));
|
|
4538
4777
|
}
|
|
4539
4778
|
|
|
4540
|
-
var _excluded$
|
|
4779
|
+
var _excluded$I = ["children", "visible", "onClose", "onExited"];
|
|
4541
4780
|
function DialogModalBehaviour(_ref) {
|
|
4542
4781
|
var children = _ref.children,
|
|
4543
4782
|
visible = _ref.visible,
|
|
4544
4783
|
onClose = _ref.onClose,
|
|
4545
4784
|
onExited = _ref.onExited,
|
|
4546
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4785
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4547
4786
|
var _useState = useState(visible),
|
|
4548
4787
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4549
4788
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4574,7 +4813,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4574
4813
|
});
|
|
4575
4814
|
}
|
|
4576
4815
|
|
|
4577
|
-
var _excluded$
|
|
4816
|
+
var _excluded$H = ["stretch"];
|
|
4578
4817
|
function DialogModal(_ref) {
|
|
4579
4818
|
var illustration = _ref.illustration,
|
|
4580
4819
|
title = _ref.title,
|
|
@@ -4614,7 +4853,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
4614
4853
|
function DialogModalButton(_ref2) {
|
|
4615
4854
|
var _ref2$stretch = _ref2.stretch,
|
|
4616
4855
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
4617
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4856
|
+
props = _objectWithoutProperties(_ref2, _excluded$H);
|
|
4618
4857
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
4619
4858
|
stretch: stretch
|
|
4620
4859
|
}, props));
|
|
@@ -4651,7 +4890,7 @@ function Emoji(_ref) {
|
|
|
4651
4890
|
});
|
|
4652
4891
|
}
|
|
4653
4892
|
|
|
4654
|
-
var _excluded$
|
|
4893
|
+
var _excluded$G = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
4655
4894
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
4656
4895
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
4657
4896
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -4661,7 +4900,7 @@ function ExternalAppLink(_ref) {
|
|
|
4661
4900
|
appValue = _ref.appValue,
|
|
4662
4901
|
onPress = _ref.onPress,
|
|
4663
4902
|
onOpenAppError = _ref.onOpenAppError,
|
|
4664
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4903
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
4665
4904
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4666
4905
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4667
4906
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -4756,14 +4995,14 @@ var defaultOpenLinkBehavior = {
|
|
|
4756
4995
|
web: 'targetBlank'
|
|
4757
4996
|
};
|
|
4758
4997
|
|
|
4759
|
-
var _excluded$
|
|
4998
|
+
var _excluded$F = ["as", "href", "openLinkBehavior", "onPress"];
|
|
4760
4999
|
function ExternalLink(_ref) {
|
|
4761
5000
|
var Component = _ref.as,
|
|
4762
5001
|
href = _ref.href,
|
|
4763
5002
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
4764
5003
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
4765
5004
|
onPress = _ref.onPress,
|
|
4766
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5005
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
4767
5006
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
4768
5007
|
accessibilityRole: "link",
|
|
4769
5008
|
href: href,
|
|
@@ -4839,7 +5078,7 @@ function InputTextContainer(props) {
|
|
|
4839
5078
|
}, props));
|
|
4840
5079
|
}
|
|
4841
5080
|
|
|
4842
|
-
var _excluded$
|
|
5081
|
+
var _excluded$E = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
4843
5082
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
4844
5083
|
var id = _ref.id,
|
|
4845
5084
|
right = _ref.right;
|
|
@@ -4860,7 +5099,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4860
5099
|
multiline = _ref.multiline,
|
|
4861
5100
|
height = _ref.height,
|
|
4862
5101
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
4863
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5102
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4864
5103
|
var theme = useTheme();
|
|
4865
5104
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
4866
5105
|
base: 'body'
|
|
@@ -4984,10 +5223,10 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
4984
5223
|
});
|
|
4985
5224
|
}
|
|
4986
5225
|
|
|
4987
|
-
var _excluded$
|
|
5226
|
+
var _excluded$D = ["children"];
|
|
4988
5227
|
function AutocompleteOption(_ref) {
|
|
4989
5228
|
var children = _ref.children,
|
|
4990
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5229
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4991
5230
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
4992
5231
|
paddingX: {
|
|
4993
5232
|
base: 'kitt.2',
|
|
@@ -4999,7 +5238,7 @@ function AutocompleteOption(_ref) {
|
|
|
4999
5238
|
}));
|
|
5000
5239
|
}
|
|
5001
5240
|
|
|
5002
|
-
var _excluded$
|
|
5241
|
+
var _excluded$C = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5003
5242
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5004
5243
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5005
5244
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5033,7 +5272,7 @@ function Autocomplete(_ref) {
|
|
|
5033
5272
|
_ref$zIndex = _ref.zIndex,
|
|
5034
5273
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5035
5274
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5036
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5275
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5037
5276
|
var childrenArray = Children.toArray(_children);
|
|
5038
5277
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5039
5278
|
return {
|
|
@@ -5240,7 +5479,7 @@ function getBorderColor$1(_ref) {
|
|
|
5240
5479
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5241
5480
|
}
|
|
5242
5481
|
|
|
5243
|
-
var _excluded$
|
|
5482
|
+
var _excluded$B = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5244
5483
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5245
5484
|
var checked = _ref.checked,
|
|
5246
5485
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5250,7 +5489,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5250
5489
|
onChange = _ref.onChange,
|
|
5251
5490
|
onBlur = _ref.onBlur,
|
|
5252
5491
|
onFocus = _ref.onFocus,
|
|
5253
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5492
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5254
5493
|
var theme = useTheme();
|
|
5255
5494
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5256
5495
|
hitSlop: hitSlop
|
|
@@ -5566,7 +5805,7 @@ function PartContainer(_ref) {
|
|
|
5566
5805
|
});
|
|
5567
5806
|
}
|
|
5568
5807
|
|
|
5569
|
-
var _excluded$
|
|
5808
|
+
var _excluded$A = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
5570
5809
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5571
5810
|
var id = _ref.id,
|
|
5572
5811
|
value = _ref.value,
|
|
@@ -5584,7 +5823,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5584
5823
|
onBlur = _ref.onBlur,
|
|
5585
5824
|
onFocus = _ref.onFocus,
|
|
5586
5825
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
5587
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
5826
|
+
_objectWithoutProperties(_ref, _excluded$A);
|
|
5588
5827
|
var monthRef = useRef(null);
|
|
5589
5828
|
var yearRef = useRef(null);
|
|
5590
5829
|
var defaultValue = value;
|
|
@@ -5724,10 +5963,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5724
5963
|
});
|
|
5725
5964
|
});
|
|
5726
5965
|
|
|
5727
|
-
var _excluded$
|
|
5966
|
+
var _excluded$z = ["value"];
|
|
5728
5967
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5729
5968
|
var value = _ref.value,
|
|
5730
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5969
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5731
5970
|
// in apps, final-form can give a string value that will break the component
|
|
5732
5971
|
var currentValue = value || undefined;
|
|
5733
5972
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6312,7 +6551,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6312
6551
|
};
|
|
6313
6552
|
}
|
|
6314
6553
|
|
|
6315
|
-
var _excluded$
|
|
6554
|
+
var _excluded$y = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6316
6555
|
function InputAddress(_ref) {
|
|
6317
6556
|
var initialValue = _ref.initialValue,
|
|
6318
6557
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -6320,7 +6559,7 @@ function InputAddress(_ref) {
|
|
|
6320
6559
|
errorElement = _ref.errorElement,
|
|
6321
6560
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
6322
6561
|
_onChange = _ref.onChange,
|
|
6323
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6562
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
6324
6563
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
6325
6564
|
state = _useGoogleMapsAutocom.state,
|
|
6326
6565
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -6417,10 +6656,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6417
6656
|
}, props));
|
|
6418
6657
|
});
|
|
6419
6658
|
|
|
6420
|
-
var _excluded$
|
|
6659
|
+
var _excluded$x = ["onChange"];
|
|
6421
6660
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6422
6661
|
var onChange = _ref.onChange,
|
|
6423
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6662
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
6424
6663
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6425
6664
|
ref: ref
|
|
6426
6665
|
}, props), {}, {
|
|
@@ -6437,11 +6676,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6437
6676
|
}));
|
|
6438
6677
|
});
|
|
6439
6678
|
|
|
6440
|
-
var _excluded$
|
|
6679
|
+
var _excluded$w = ["isPasswordDefaultVisible", "right"];
|
|
6441
6680
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6442
6681
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
6443
6682
|
right = _ref.right,
|
|
6444
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6683
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6445
6684
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
6446
6685
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6447
6686
|
isVisible = _useState2[0],
|
|
@@ -6469,7 +6708,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6469
6708
|
}));
|
|
6470
6709
|
});
|
|
6471
6710
|
|
|
6472
|
-
var _excluded$
|
|
6711
|
+
var _excluded$v = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
6473
6712
|
function isPhoneNumberValid(number) {
|
|
6474
6713
|
return isValidNumber(number);
|
|
6475
6714
|
}
|
|
@@ -6483,7 +6722,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6483
6722
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
6484
6723
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
6485
6724
|
onChange = _ref.onChange,
|
|
6486
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6725
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6487
6726
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
6488
6727
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6489
6728
|
ref: ref
|
|
@@ -6917,7 +7156,7 @@ function RadioButton(_ref) {
|
|
|
6917
7156
|
});
|
|
6918
7157
|
}
|
|
6919
7158
|
|
|
6920
|
-
var _excluded$
|
|
7159
|
+
var _excluded$u = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
6921
7160
|
function RadioButtonGroupItem(_ref) {
|
|
6922
7161
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
6923
7162
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -6930,7 +7169,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
6930
7169
|
onFocus = _ref2.onFocus,
|
|
6931
7170
|
onBlur = _ref2.onBlur,
|
|
6932
7171
|
onChange = _ref2.onChange,
|
|
6933
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7172
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
6934
7173
|
var _useState = useState(value),
|
|
6935
7174
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6936
7175
|
currentValue = _useState2[0],
|
|
@@ -6962,12 +7201,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
6962
7201
|
}
|
|
6963
7202
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
6964
7203
|
|
|
6965
|
-
var _excluded$
|
|
7204
|
+
var _excluded$t = ["helper", "limit"];
|
|
6966
7205
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6967
7206
|
var _props$value, _props$value2;
|
|
6968
7207
|
var helper = _ref.helper,
|
|
6969
7208
|
limit = _ref.limit,
|
|
6970
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7209
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6971
7210
|
var shouldDisplayLimit = limit && limit > 0;
|
|
6972
7211
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
6973
7212
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -7126,7 +7365,7 @@ function ToggleAnimated(_ref) {
|
|
|
7126
7365
|
});
|
|
7127
7366
|
}
|
|
7128
7367
|
|
|
7129
|
-
var _excluded$
|
|
7368
|
+
var _excluded$s = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
7130
7369
|
var getLabelTypographyType = function (size) {
|
|
7131
7370
|
return size === 'medium' ? 'body' : 'body-medium';
|
|
7132
7371
|
};
|
|
@@ -7148,7 +7387,7 @@ function Toggle(_ref) {
|
|
|
7148
7387
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
7149
7388
|
_ref$onChange = _ref.onChange,
|
|
7150
7389
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
7151
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7390
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
7152
7391
|
var theme = useKittTheme();
|
|
7153
7392
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
7154
7393
|
alignItems: "center"
|
|
@@ -7187,13 +7426,13 @@ function Toggle(_ref) {
|
|
|
7187
7426
|
}));
|
|
7188
7427
|
}
|
|
7189
7428
|
|
|
7190
|
-
var _excluded$
|
|
7429
|
+
var _excluded$r = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
7191
7430
|
function FullscreenModalBody(_ref) {
|
|
7192
7431
|
var children = _ref.children,
|
|
7193
7432
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
7194
7433
|
style = _ref.style,
|
|
7195
7434
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
7196
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7435
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
7197
7436
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7198
7437
|
bottom = _useSafeAreaInsets.bottom,
|
|
7199
7438
|
top = _useSafeAreaInsets.top;
|
|
@@ -7210,14 +7449,14 @@ function FullscreenModalBody(_ref) {
|
|
|
7210
7449
|
}));
|
|
7211
7450
|
}
|
|
7212
7451
|
|
|
7213
|
-
var _excluded$
|
|
7452
|
+
var _excluded$q = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7214
7453
|
function FullscreenModalFooter(_ref) {
|
|
7215
7454
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
7216
7455
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
7217
7456
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
7218
7457
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7219
7458
|
children = _ref.children,
|
|
7220
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7459
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
7221
7460
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7222
7461
|
bottom = _useSafeAreaInsets.bottom;
|
|
7223
7462
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -7234,7 +7473,7 @@ function FullscreenModalFooter(_ref) {
|
|
|
7234
7473
|
}));
|
|
7235
7474
|
}
|
|
7236
7475
|
|
|
7237
|
-
var _excluded$
|
|
7476
|
+
var _excluded$p = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7238
7477
|
var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
|
|
7239
7478
|
var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
|
|
7240
7479
|
var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
|
|
@@ -7273,7 +7512,7 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7273
7512
|
onExit = _ref.onExit,
|
|
7274
7513
|
onExited = _ref.onExited,
|
|
7275
7514
|
onClose = _ref.onClose,
|
|
7276
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7515
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
7277
7516
|
var theme = useTheme();
|
|
7278
7517
|
var animation = theme.kitt.fullscreenModal.animation;
|
|
7279
7518
|
var sharedProps = {
|
|
@@ -7300,13 +7539,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7300
7539
|
}));
|
|
7301
7540
|
}
|
|
7302
7541
|
|
|
7303
|
-
var _excluded$
|
|
7542
|
+
var _excluded$o = ["children", "visible", "onClose", "onExited"];
|
|
7304
7543
|
function FullscreenModalBehaviour(_ref) {
|
|
7305
7544
|
var children = _ref.children,
|
|
7306
7545
|
visible = _ref.visible,
|
|
7307
7546
|
onClose = _ref.onClose,
|
|
7308
7547
|
onExited = _ref.onExited,
|
|
7309
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7548
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
7310
7549
|
var _useState = useState(visible),
|
|
7311
7550
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7312
7551
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -7353,7 +7592,7 @@ function FullscreenModalContainer(_ref) {
|
|
|
7353
7592
|
});
|
|
7354
7593
|
}
|
|
7355
7594
|
|
|
7356
|
-
var _excluded$
|
|
7595
|
+
var _excluded$n = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
7357
7596
|
function FullscreenModalHeader(_ref) {
|
|
7358
7597
|
var _ref$hasSeparator = _ref.hasSeparator,
|
|
7359
7598
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
@@ -7364,7 +7603,7 @@ function FullscreenModalHeader(_ref) {
|
|
|
7364
7603
|
left = _ref.left,
|
|
7365
7604
|
_ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
7366
7605
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
7367
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7606
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7368
7607
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7369
7608
|
top = _useSafeAreaInsets.top;
|
|
7370
7609
|
var hasRight = Boolean(right);
|
|
@@ -7446,6 +7685,331 @@ FullscreenModal.Footer = FullscreenModalFooter;
|
|
|
7446
7685
|
FullscreenModal.Body = FullscreenModalBody;
|
|
7447
7686
|
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
7448
7687
|
|
|
7688
|
+
function NativeOpacityAnimation(_ref) {
|
|
7689
|
+
var visible = _ref.visible,
|
|
7690
|
+
children = _ref.children;
|
|
7691
|
+
var theme = useTheme();
|
|
7692
|
+
var opacityStyle = useAnimatedStyle(function () {
|
|
7693
|
+
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.overlay,
|
|
7694
|
+
duration = _theme$kitt$fullscree.duration,
|
|
7695
|
+
easing = _theme$kitt$fullscree.easing;
|
|
7696
|
+
var _easing = _slicedToArray(easing, 4),
|
|
7697
|
+
x1 = _easing[0],
|
|
7698
|
+
y1 = _easing[1],
|
|
7699
|
+
x2 = _easing[2],
|
|
7700
|
+
y2 = _easing[3];
|
|
7701
|
+
return {
|
|
7702
|
+
opacity: withTiming(visible ? 1 : 0, {
|
|
7703
|
+
duration: duration,
|
|
7704
|
+
easing: Easing.bezier(x1, y1, x2, y2)
|
|
7705
|
+
})
|
|
7706
|
+
};
|
|
7707
|
+
});
|
|
7708
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
7709
|
+
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
7710
|
+
children: children
|
|
7711
|
+
});
|
|
7712
|
+
}
|
|
7713
|
+
|
|
7714
|
+
function NativeSlideInAnimation(_ref) {
|
|
7715
|
+
var visible = _ref.visible,
|
|
7716
|
+
children = _ref.children,
|
|
7717
|
+
onEntered = _ref.onEntered,
|
|
7718
|
+
onExited = _ref.onExited;
|
|
7719
|
+
var theme = useTheme();
|
|
7720
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
7721
|
+
wHeight = _useWindowDimensions.height;
|
|
7722
|
+
var hasRunAnimationRef = useRef(false);
|
|
7723
|
+
function handleAnimationFinished() {
|
|
7724
|
+
if (visible) {
|
|
7725
|
+
if (onEntered) onEntered();
|
|
7726
|
+
hasRunAnimationRef.current = true;
|
|
7727
|
+
}
|
|
7728
|
+
|
|
7729
|
+
// Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
|
|
7730
|
+
if (!visible && hasRunAnimationRef.current) onExited();
|
|
7731
|
+
}
|
|
7732
|
+
var translateStyle = useAnimatedStyle(function () {
|
|
7733
|
+
var _theme$kitt$fullscree = theme.kitt.fullscreenModal.animation.content,
|
|
7734
|
+
duration = _theme$kitt$fullscree.duration,
|
|
7735
|
+
easing = _theme$kitt$fullscree.easing;
|
|
7736
|
+
var _easing = _slicedToArray(easing, 4),
|
|
7737
|
+
x1 = _easing[0],
|
|
7738
|
+
y1 = _easing[1],
|
|
7739
|
+
x2 = _easing[2],
|
|
7740
|
+
y2 = _easing[3];
|
|
7741
|
+
return {
|
|
7742
|
+
transform: [{
|
|
7743
|
+
translateY: withTiming(visible ? 0 : wHeight, {
|
|
7744
|
+
duration: duration,
|
|
7745
|
+
easing: Easing.bezier(x1, y1, x2, y2)
|
|
7746
|
+
}, function (isFinished) {
|
|
7747
|
+
if (!isFinished) return;
|
|
7748
|
+
runOnJS(handleAnimationFinished)();
|
|
7749
|
+
})
|
|
7750
|
+
}]
|
|
7751
|
+
};
|
|
7752
|
+
});
|
|
7753
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
7754
|
+
style: [{
|
|
7755
|
+
transform: [{
|
|
7756
|
+
translateY: wHeight
|
|
7757
|
+
}]
|
|
7758
|
+
}, translateStyle, {
|
|
7759
|
+
width: '100%',
|
|
7760
|
+
flex: 1
|
|
7761
|
+
}],
|
|
7762
|
+
children: children
|
|
7763
|
+
});
|
|
7764
|
+
}
|
|
7765
|
+
|
|
7766
|
+
function FullscreenModal2Animation(_ref) {
|
|
7767
|
+
var visible = _ref.visible,
|
|
7768
|
+
children = _ref.children,
|
|
7769
|
+
onEnter = _ref.onEnter,
|
|
7770
|
+
onEntered = _ref.onEntered,
|
|
7771
|
+
onExit = _ref.onExit,
|
|
7772
|
+
onExited = _ref.onExited;
|
|
7773
|
+
var _useState = useState(visible),
|
|
7774
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7775
|
+
isModalVisible = _useState2[0],
|
|
7776
|
+
setIsModalVisible = _useState2[1];
|
|
7777
|
+
var _useState3 = useState(false),
|
|
7778
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
7779
|
+
isContentVisible = _useState4[0],
|
|
7780
|
+
setIsContentVisible = _useState4[1];
|
|
7781
|
+
var handleAnimationExited = function () {
|
|
7782
|
+
setIsModalVisible(false);
|
|
7783
|
+
// Android doesn't handle the onDismiss callback on the modal, we need to call it manually
|
|
7784
|
+
};
|
|
7785
|
+
|
|
7786
|
+
// When parent visibility is set to false, in order to have our exit animation we must in this order :
|
|
7787
|
+
// 1 - run the exit animation
|
|
7788
|
+
// 2 - once it is done, unmount the Modal
|
|
7789
|
+
useEffect(function () {
|
|
7790
|
+
if (!(!visible && isContentVisible)) return;
|
|
7791
|
+
if (onExit) onExit();
|
|
7792
|
+
setIsContentVisible(false);
|
|
7793
|
+
}, [visible, isContentVisible, onExit]);
|
|
7794
|
+
return /*#__PURE__*/jsx(Modal, {
|
|
7795
|
+
transparent: true,
|
|
7796
|
+
supportedOrientations: ['landscape', 'portrait'],
|
|
7797
|
+
visible: isModalVisible,
|
|
7798
|
+
onShow: function onShow() {
|
|
7799
|
+
if (onEnter) onEnter();
|
|
7800
|
+
setIsContentVisible(true);
|
|
7801
|
+
},
|
|
7802
|
+
onDismiss: function onDismiss() {
|
|
7803
|
+
if (onExited) onExited();
|
|
7804
|
+
},
|
|
7805
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
7806
|
+
position: "relative",
|
|
7807
|
+
flexGrow: 1,
|
|
7808
|
+
justifyContent: "center",
|
|
7809
|
+
alignItems: "center",
|
|
7810
|
+
children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
|
|
7811
|
+
visible: isContentVisible,
|
|
7812
|
+
children: /*#__PURE__*/jsx(Overlay, {
|
|
7813
|
+
onPress: handleAnimationExited
|
|
7814
|
+
})
|
|
7815
|
+
}), /*#__PURE__*/jsx(NativeSlideInAnimation, {
|
|
7816
|
+
visible: isContentVisible,
|
|
7817
|
+
onExited: handleAnimationExited,
|
|
7818
|
+
onEntered: onEntered,
|
|
7819
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7820
|
+
flexGrow: 1,
|
|
7821
|
+
children: children
|
|
7822
|
+
})
|
|
7823
|
+
})]
|
|
7824
|
+
})
|
|
7825
|
+
});
|
|
7826
|
+
}
|
|
7827
|
+
|
|
7828
|
+
var _excluded$m = ["children", "visible", "onClose", "onExited"];
|
|
7829
|
+
function FullscreenModal2Behaviour(_ref) {
|
|
7830
|
+
var children = _ref.children,
|
|
7831
|
+
visible = _ref.visible,
|
|
7832
|
+
onClose = _ref.onClose,
|
|
7833
|
+
onExited = _ref.onExited,
|
|
7834
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7835
|
+
var _useState = useState(visible),
|
|
7836
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
7837
|
+
isModalBehaviourVisible = _useState2[0],
|
|
7838
|
+
setIsModalBehaviourVisible = _useState2[1];
|
|
7839
|
+
useEffect(function () {
|
|
7840
|
+
if (visible === true) {
|
|
7841
|
+
setIsModalBehaviourVisible(true);
|
|
7842
|
+
}
|
|
7843
|
+
}, [visible]);
|
|
7844
|
+
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
7845
|
+
visible: isModalBehaviourVisible,
|
|
7846
|
+
onClose: onClose,
|
|
7847
|
+
children: /*#__PURE__*/jsx(FullscreenModal2Animation, _objectSpread(_objectSpread({}, props), {}, {
|
|
7848
|
+
visible: visible,
|
|
7849
|
+
onExited: function handleExitAnimationDone() {
|
|
7850
|
+
if (onExited) onExited();
|
|
7851
|
+
setIsModalBehaviourVisible(false);
|
|
7852
|
+
},
|
|
7853
|
+
children: children
|
|
7854
|
+
}))
|
|
7855
|
+
});
|
|
7856
|
+
}
|
|
7857
|
+
|
|
7858
|
+
var _excluded$l = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
7859
|
+
function FullscreenModal2Body(_ref) {
|
|
7860
|
+
var children = _ref.children,
|
|
7861
|
+
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
7862
|
+
style = _ref.style,
|
|
7863
|
+
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
7864
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7865
|
+
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7866
|
+
bottom = _useSafeAreaInsets.bottom,
|
|
7867
|
+
top = _useSafeAreaInsets.top;
|
|
7868
|
+
var _useTheme = useTheme(),
|
|
7869
|
+
verticalPadding = _useTheme.kitt.fullscreenModal.body.verticalPadding;
|
|
7870
|
+
var paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
7871
|
+
var paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
7872
|
+
return /*#__PURE__*/jsx(View, {
|
|
7873
|
+
flexGrow: 1,
|
|
7874
|
+
flexShrink: 1,
|
|
7875
|
+
justifyContent: "space-between",
|
|
7876
|
+
children: /*#__PURE__*/jsx(ScrollView$1, {
|
|
7877
|
+
bounces: false,
|
|
7878
|
+
contentContainerStyle: {
|
|
7879
|
+
flexGrow: 1,
|
|
7880
|
+
position: 'relative'
|
|
7881
|
+
},
|
|
7882
|
+
children: /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
7883
|
+
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
7884
|
+
paddingTop: paddingTop,
|
|
7885
|
+
paddingBottom: paddingBottom,
|
|
7886
|
+
style: style,
|
|
7887
|
+
children: children
|
|
7888
|
+
}))
|
|
7889
|
+
})
|
|
7890
|
+
});
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7893
|
+
function FullscreenModal2Container(_ref) {
|
|
7894
|
+
var children = _ref.children,
|
|
7895
|
+
backgroundColor = _ref.backgroundColor;
|
|
7896
|
+
return /*#__PURE__*/jsx(View, {
|
|
7897
|
+
position: "relative",
|
|
7898
|
+
flexGrow: 1,
|
|
7899
|
+
flexShrink: 1,
|
|
7900
|
+
flexBasis: "100%"
|
|
7901
|
+
/*
|
|
7902
|
+
Here we are setting the same min and max height because on web the content was overflowing and not scrolling
|
|
7903
|
+
minHeight is needed to make the modal fullscreen
|
|
7904
|
+
maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
|
|
7905
|
+
We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
|
|
7906
|
+
*/,
|
|
7907
|
+
_web: {
|
|
7908
|
+
minHeight: '100svh',
|
|
7909
|
+
maxHeight: '100svh'
|
|
7910
|
+
},
|
|
7911
|
+
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'kitt.uiBackgroundLight',
|
|
7912
|
+
children: children
|
|
7913
|
+
});
|
|
7914
|
+
}
|
|
7915
|
+
|
|
7916
|
+
var _excluded$k = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7917
|
+
function FullscreenModal2Footer(_ref) {
|
|
7918
|
+
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
7919
|
+
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
7920
|
+
_ref$hasSeparator = _ref.hasSeparator,
|
|
7921
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7922
|
+
children = _ref.children,
|
|
7923
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7924
|
+
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7925
|
+
bottom = _useSafeAreaInsets.bottom;
|
|
7926
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7927
|
+
borderTopColor: "kitt.separator",
|
|
7928
|
+
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
7929
|
+
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7930
|
+
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
7931
|
+
paddingX: "kitt.fullscreenModal.horizontalPadding"
|
|
7932
|
+
}, props), {}, {
|
|
7933
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7934
|
+
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7935
|
+
children: children
|
|
7936
|
+
})
|
|
7937
|
+
}));
|
|
7938
|
+
}
|
|
7939
|
+
|
|
7940
|
+
var _excluded$j = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
7941
|
+
function FullscreenModal2Header(_ref) {
|
|
7942
|
+
var _ref$hasSeparator = _ref.hasSeparator,
|
|
7943
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7944
|
+
isTransparent = _ref.isTransparent,
|
|
7945
|
+
title = _ref.title,
|
|
7946
|
+
children = _ref.children,
|
|
7947
|
+
right = _ref.right,
|
|
7948
|
+
left = _ref.left,
|
|
7949
|
+
_ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
7950
|
+
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
7951
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7952
|
+
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7953
|
+
top = _useSafeAreaInsets.top;
|
|
7954
|
+
var hasRight = Boolean(right);
|
|
7955
|
+
var hasLeft = Boolean(left);
|
|
7956
|
+
var hasContent = Boolean(title || children);
|
|
7957
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7958
|
+
backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
|
|
7959
|
+
minHeight: "kitt.fullscreenModal.header.height",
|
|
7960
|
+
width: "100%",
|
|
7961
|
+
justifyContent: "center",
|
|
7962
|
+
paddingTop: shouldHandleTopNotch ? top : undefined,
|
|
7963
|
+
paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
7964
|
+
paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
7965
|
+
borderBottomColor: "kitt.separator",
|
|
7966
|
+
borderBottomWidth: hasSeparator ? 1 : undefined
|
|
7967
|
+
}, props), {}, {
|
|
7968
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
7969
|
+
flexDirection: "row",
|
|
7970
|
+
alignItems: "center",
|
|
7971
|
+
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
7972
|
+
children: [left ? /*#__PURE__*/jsx(View, {
|
|
7973
|
+
width: "kitt.iconButton.width",
|
|
7974
|
+
children: left
|
|
7975
|
+
}) : null, title ? /*#__PURE__*/jsx(View, {
|
|
7976
|
+
flexGrow: 1,
|
|
7977
|
+
flexShrink: 1,
|
|
7978
|
+
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7979
|
+
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
7980
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7981
|
+
variant: "bold",
|
|
7982
|
+
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
7983
|
+
children: title
|
|
7984
|
+
})
|
|
7985
|
+
}) : null, children ? /*#__PURE__*/jsx(View, {
|
|
7986
|
+
flexGrow: 1,
|
|
7987
|
+
flexShrink: 1,
|
|
7988
|
+
alignItems: "center",
|
|
7989
|
+
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7990
|
+
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
7991
|
+
children: children
|
|
7992
|
+
}) : null, right || left ? /*#__PURE__*/jsx(View, {
|
|
7993
|
+
width: "kitt.iconButton.width",
|
|
7994
|
+
children: right
|
|
7995
|
+
}) : null]
|
|
7996
|
+
})
|
|
7997
|
+
}));
|
|
7998
|
+
}
|
|
7999
|
+
|
|
8000
|
+
function FullscreenModal2(_ref) {
|
|
8001
|
+
var backgroundColor = _ref.backgroundColor,
|
|
8002
|
+
children = _ref.children;
|
|
8003
|
+
return /*#__PURE__*/jsx(FullscreenModal2Container, {
|
|
8004
|
+
backgroundColor: backgroundColor,
|
|
8005
|
+
children: children
|
|
8006
|
+
});
|
|
8007
|
+
}
|
|
8008
|
+
FullscreenModal2.Header = FullscreenModal2Header;
|
|
8009
|
+
FullscreenModal2.Footer = FullscreenModal2Footer;
|
|
8010
|
+
FullscreenModal2.Body = FullscreenModal2Body;
|
|
8011
|
+
FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
|
|
8012
|
+
|
|
7449
8013
|
function GroupTags(_ref) {
|
|
7450
8014
|
var children = _ref.children,
|
|
7451
8015
|
size = _ref.size;
|
|
@@ -7677,7 +8241,7 @@ function Highlight(_ref) {
|
|
|
7677
8241
|
});
|
|
7678
8242
|
}
|
|
7679
8243
|
|
|
7680
|
-
var _excluded$
|
|
8244
|
+
var _excluded$i = ["color", "isDisabled"];
|
|
7681
8245
|
function getBackgroundColor$2(color, isDisabled) {
|
|
7682
8246
|
if (isDisabled) {
|
|
7683
8247
|
return 'kitt.iconButton.disabled.backgroundColor';
|
|
@@ -7697,7 +8261,7 @@ function getBackgroundColor$2(color, isDisabled) {
|
|
|
7697
8261
|
function Background(_ref) {
|
|
7698
8262
|
var color = _ref.color,
|
|
7699
8263
|
isDisabled = _ref.isDisabled,
|
|
7700
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8264
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7701
8265
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
7702
8266
|
width: "100%",
|
|
7703
8267
|
height: "100%",
|
|
@@ -7975,10 +8539,10 @@ function useKittMapConfig() {
|
|
|
7975
8539
|
return context;
|
|
7976
8540
|
}
|
|
7977
8541
|
|
|
7978
|
-
var _excluded$
|
|
8542
|
+
var _excluded$h = ["children"];
|
|
7979
8543
|
function ListItemContent(_ref) {
|
|
7980
8544
|
var children = _ref.children,
|
|
7981
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8545
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
7982
8546
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7983
8547
|
alignSelf: "center",
|
|
7984
8548
|
flexBasis: "0%",
|
|
@@ -7989,14 +8553,14 @@ function ListItemContent(_ref) {
|
|
|
7989
8553
|
}));
|
|
7990
8554
|
}
|
|
7991
8555
|
|
|
7992
|
-
var _excluded$
|
|
8556
|
+
var _excluded$g = ["children", "side"],
|
|
7993
8557
|
_excluded2$3 = ["children", "align"];
|
|
7994
8558
|
// Handles the vertical alignment of the side elements of the list item
|
|
7995
8559
|
function ListItemSideContainer(_ref) {
|
|
7996
8560
|
var children = _ref.children,
|
|
7997
8561
|
_ref$side = _ref.side,
|
|
7998
8562
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
7999
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8563
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
8000
8564
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8001
8565
|
flexDirection: "row",
|
|
8002
8566
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -8017,7 +8581,7 @@ function ListItemSideContent(_ref2) {
|
|
|
8017
8581
|
}));
|
|
8018
8582
|
}
|
|
8019
8583
|
|
|
8020
|
-
var _excluded$
|
|
8584
|
+
var _excluded$f = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
8021
8585
|
function ListItem(_ref) {
|
|
8022
8586
|
var children = _ref.children,
|
|
8023
8587
|
withPadding = _ref.withPadding,
|
|
@@ -8025,7 +8589,7 @@ function ListItem(_ref) {
|
|
|
8025
8589
|
left = _ref.left,
|
|
8026
8590
|
right = _ref.right,
|
|
8027
8591
|
onPress = _ref.onPress,
|
|
8028
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8592
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
8029
8593
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
8030
8594
|
var wrapperProps = onPress ? _objectSpread({
|
|
8031
8595
|
accessibilityRole: 'button',
|
|
@@ -8191,7 +8755,7 @@ var getBackgroundColor$1 = function (_ref) {
|
|
|
8191
8755
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
|
|
8192
8756
|
};
|
|
8193
8757
|
|
|
8194
|
-
var _excluded$
|
|
8758
|
+
var _excluded$e = ["onPress", "testID"];
|
|
8195
8759
|
var MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
8196
8760
|
MapMarkerVariantEnum["HOME"] = "home";
|
|
8197
8761
|
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
@@ -8257,7 +8821,7 @@ function StaticMapMarker$1(_ref) {
|
|
|
8257
8821
|
function MapMarker(_ref2) {
|
|
8258
8822
|
var onPress = _ref2.onPress,
|
|
8259
8823
|
testID = _ref2.testID,
|
|
8260
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8824
|
+
props = _objectWithoutProperties(_ref2, _excluded$e);
|
|
8261
8825
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
8262
8826
|
testID: testID,
|
|
8263
8827
|
onPress: onPress,
|
|
@@ -10874,7 +11438,7 @@ function KittNativeBaseProvider(_ref) {
|
|
|
10874
11438
|
});
|
|
10875
11439
|
}
|
|
10876
11440
|
|
|
10877
|
-
var _excluded$
|
|
11441
|
+
var _excluded$d = ["scrollEnabled", "ListHeaderComponent", "ListFooterComponent", "data", "numColumns", "ListHeaderComponentStyle", "ListFooterComponentStyle", "contentContainerStyle", "keyExtractor", "renderItem"];
|
|
10878
11442
|
function NativeOnlyFlatList(_ref) {
|
|
10879
11443
|
var scrollEnabled = _ref.scrollEnabled,
|
|
10880
11444
|
ListHeaderComponent = _ref.ListHeaderComponent,
|
|
@@ -10889,7 +11453,7 @@ function NativeOnlyFlatList(_ref) {
|
|
|
10889
11453
|
return index.toString();
|
|
10890
11454
|
} : _ref$keyExtractor,
|
|
10891
11455
|
renderItem = _ref.renderItem,
|
|
10892
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11456
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
10893
11457
|
return /*#__PURE__*/jsxs(ScrollView$1, _objectSpread(_objectSpread({
|
|
10894
11458
|
scrollEnabled: scrollEnabled,
|
|
10895
11459
|
contentContainerStyle: contentContainerStyle
|
|
@@ -10919,7 +11483,7 @@ function NativeOnlyFlatList(_ref) {
|
|
|
10919
11483
|
}));
|
|
10920
11484
|
}
|
|
10921
11485
|
|
|
10922
|
-
var _excluded$
|
|
11486
|
+
var _excluded$c = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
10923
11487
|
function NavigationModalBehaviour(_ref) {
|
|
10924
11488
|
var children = _ref.children,
|
|
10925
11489
|
visible = _ref.visible,
|
|
@@ -10929,7 +11493,7 @@ function NavigationModalBehaviour(_ref) {
|
|
|
10929
11493
|
onEnter = _ref.onEnter,
|
|
10930
11494
|
onExit = _ref.onExit,
|
|
10931
11495
|
onClose = _ref.onClose,
|
|
10932
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11496
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
10933
11497
|
var AnimationComponent = useBreakpointValue({
|
|
10934
11498
|
base: FullscreenModalAnimation,
|
|
10935
11499
|
small: CardModalAnimation
|
|
@@ -10993,32 +11557,126 @@ function NavigationModal(_ref) {
|
|
|
10993
11557
|
contentContainer: contentContainer
|
|
10994
11558
|
});
|
|
10995
11559
|
}
|
|
10996
|
-
function Header(props) {
|
|
11560
|
+
function Header$1(props) {
|
|
10997
11561
|
var Component = useBreakpointValue({
|
|
10998
11562
|
base: FullscreenModal.Header,
|
|
10999
11563
|
small: CardModal.Header
|
|
11000
11564
|
});
|
|
11001
11565
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11002
11566
|
}
|
|
11003
|
-
function Body(props) {
|
|
11567
|
+
function Body$1(props) {
|
|
11004
11568
|
var Component = useBreakpointValue({
|
|
11005
11569
|
base: FullscreenModal.Body,
|
|
11006
11570
|
small: CardModal.Body
|
|
11007
11571
|
});
|
|
11008
11572
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11009
11573
|
}
|
|
11010
|
-
function Footer(props) {
|
|
11574
|
+
function Footer$1(props) {
|
|
11011
11575
|
var Component = useBreakpointValue({
|
|
11012
11576
|
base: FullscreenModal.Footer,
|
|
11013
11577
|
small: CardModal.Footer
|
|
11014
11578
|
});
|
|
11015
11579
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11016
11580
|
}
|
|
11017
|
-
NavigationModal.Header = Header;
|
|
11018
|
-
NavigationModal.Body = Body;
|
|
11019
|
-
NavigationModal.Footer = Footer;
|
|
11581
|
+
NavigationModal.Header = Header$1;
|
|
11582
|
+
NavigationModal.Body = Body$1;
|
|
11583
|
+
NavigationModal.Footer = Footer$1;
|
|
11020
11584
|
NavigationModal.ModalBehaviour = NavigationModalBehaviour;
|
|
11021
11585
|
|
|
11586
|
+
var _excluded$b = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11587
|
+
function NavigationModal2Behaviour(_ref) {
|
|
11588
|
+
var children = _ref.children,
|
|
11589
|
+
visible = _ref.visible,
|
|
11590
|
+
_ref$appear = _ref.appear,
|
|
11591
|
+
appear = _ref$appear === void 0 ? true : _ref$appear,
|
|
11592
|
+
onExited = _ref.onExited,
|
|
11593
|
+
onEnter = _ref.onEnter,
|
|
11594
|
+
onExit = _ref.onExit,
|
|
11595
|
+
onClose = _ref.onClose,
|
|
11596
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
11597
|
+
var AnimationComponent = useBreakpointValue({
|
|
11598
|
+
base: FullscreenModal2Animation,
|
|
11599
|
+
small: CardModal2Animation
|
|
11600
|
+
});
|
|
11601
|
+
var _useState = useState(visible),
|
|
11602
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
11603
|
+
isModalBehaviourVisible = _useState2[0],
|
|
11604
|
+
setIsModalBehaviourVisible = _useState2[1];
|
|
11605
|
+
var _useState3 = useState(appear),
|
|
11606
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
11607
|
+
shouldAppear = _useState4[0],
|
|
11608
|
+
setShouldAppear = _useState4[1];
|
|
11609
|
+
useEffect(function () {
|
|
11610
|
+
if (visible === true) {
|
|
11611
|
+
setIsModalBehaviourVisible(true);
|
|
11612
|
+
}
|
|
11613
|
+
}, [visible]);
|
|
11614
|
+
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
11615
|
+
visible: isModalBehaviourVisible,
|
|
11616
|
+
onClose: onClose,
|
|
11617
|
+
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
11618
|
+
appear: shouldAppear,
|
|
11619
|
+
visible: visible,
|
|
11620
|
+
onEnter: function handleEnter() {
|
|
11621
|
+
if (onEnter) onEnter();
|
|
11622
|
+
|
|
11623
|
+
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
11624
|
+
setShouldAppear(false);
|
|
11625
|
+
},
|
|
11626
|
+
onExit: function handleExit() {
|
|
11627
|
+
if (onExit) onExit();
|
|
11628
|
+
|
|
11629
|
+
// Reset appear value to its original value for future modal display
|
|
11630
|
+
setShouldAppear(appear);
|
|
11631
|
+
},
|
|
11632
|
+
onExited: function handleExitAnimationDone() {
|
|
11633
|
+
if (onExited) onExited();
|
|
11634
|
+
setIsModalBehaviourVisible(false);
|
|
11635
|
+
},
|
|
11636
|
+
onClose: onClose,
|
|
11637
|
+
children: children
|
|
11638
|
+
}))
|
|
11639
|
+
});
|
|
11640
|
+
}
|
|
11641
|
+
|
|
11642
|
+
function NavigationModal2(_ref) {
|
|
11643
|
+
var backgroundColor = _ref.backgroundColor,
|
|
11644
|
+
children = _ref.children;
|
|
11645
|
+
var Component = useBreakpointValue({
|
|
11646
|
+
base: FullscreenModal2,
|
|
11647
|
+
small: CardModal2
|
|
11648
|
+
});
|
|
11649
|
+
return /*#__PURE__*/jsx(Component, {
|
|
11650
|
+
backgroundColor: backgroundColor,
|
|
11651
|
+
children: children
|
|
11652
|
+
});
|
|
11653
|
+
}
|
|
11654
|
+
function Header(props) {
|
|
11655
|
+
var Component = useBreakpointValue({
|
|
11656
|
+
base: FullscreenModal2.Header,
|
|
11657
|
+
small: CardModal2.Header
|
|
11658
|
+
});
|
|
11659
|
+
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11660
|
+
}
|
|
11661
|
+
function Body(props) {
|
|
11662
|
+
var Component = useBreakpointValue({
|
|
11663
|
+
base: FullscreenModal2.Body,
|
|
11664
|
+
small: CardModal2.Body
|
|
11665
|
+
});
|
|
11666
|
+
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11667
|
+
}
|
|
11668
|
+
function Footer(props) {
|
|
11669
|
+
var Component = useBreakpointValue({
|
|
11670
|
+
base: FullscreenModal2.Footer,
|
|
11671
|
+
small: CardModal2.Footer
|
|
11672
|
+
});
|
|
11673
|
+
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
11674
|
+
}
|
|
11675
|
+
NavigationModal2.Header = Header;
|
|
11676
|
+
NavigationModal2.Body = Body;
|
|
11677
|
+
NavigationModal2.Footer = Footer;
|
|
11678
|
+
NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
|
|
11679
|
+
|
|
11022
11680
|
function Notification(_ref) {
|
|
11023
11681
|
var type = _ref.type,
|
|
11024
11682
|
children = _ref.children,
|
|
@@ -13241,5 +13899,5 @@ function VerticalSteps(_ref) {
|
|
|
13241
13899
|
VerticalSteps.Step = Step;
|
|
13242
13900
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13243
13901
|
|
|
13244
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13902
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, CardModal2, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, FullscreenModal2, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, NavigationModal2, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13245
13903
|
//# sourceMappingURL=index.es.web.js.map
|