@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
|
@@ -728,19 +728,19 @@ const button = {
|
|
|
728
728
|
},
|
|
729
729
|
danger: {
|
|
730
730
|
default: {
|
|
731
|
-
backgroundColor: lateOceanColorPalette.
|
|
732
|
-
pressedBackgroundColor: lateOceanColorPalette.
|
|
733
|
-
hoverBackgroundColor: lateOceanColorPalette.
|
|
734
|
-
focusBorderColor: lateOceanColorPalette.
|
|
731
|
+
backgroundColor: lateOceanColorPalette['coral.3'],
|
|
732
|
+
pressedBackgroundColor: lateOceanColorPalette['coral.4'],
|
|
733
|
+
hoverBackgroundColor: lateOceanColorPalette['coral.4'],
|
|
734
|
+
focusBorderColor: lateOceanColorPalette['coral.4']
|
|
735
735
|
},
|
|
736
736
|
ghost: {
|
|
737
737
|
backgroundColor: colors.uiBackgroundLight,
|
|
738
|
-
pressedBackgroundColor:
|
|
739
|
-
hoverBackgroundColor:
|
|
740
|
-
focusBorderColor: 'rgba(255, 255, 255, 0.
|
|
741
|
-
color: lateOceanColorPalette.
|
|
742
|
-
hoverColor: lateOceanColorPalette.
|
|
743
|
-
activeColor: lateOceanColorPalette.
|
|
738
|
+
pressedBackgroundColor: colors.uiBackground,
|
|
739
|
+
hoverBackgroundColor: colors.hover,
|
|
740
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
741
|
+
color: lateOceanColorPalette['coral.9'],
|
|
742
|
+
hoverColor: lateOceanColorPalette['coral.9'],
|
|
743
|
+
activeColor: lateOceanColorPalette['coral.9']
|
|
744
744
|
}
|
|
745
745
|
},
|
|
746
746
|
subtle: {
|
|
@@ -2093,7 +2093,7 @@ const typography = {
|
|
|
2093
2093
|
'primary-light': colors.primaryLight,
|
|
2094
2094
|
accent: colors.accent,
|
|
2095
2095
|
success: colors.success,
|
|
2096
|
-
danger:
|
|
2096
|
+
danger: lateOceanColorPalette['coral.9'],
|
|
2097
2097
|
warning: colors.warning
|
|
2098
2098
|
},
|
|
2099
2099
|
types: {
|
|
@@ -2609,7 +2609,7 @@ function ActionCardDisabled({
|
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
|
-
const _excluded$
|
|
2612
|
+
const _excluded$T = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2613
2613
|
function ActionCard(_ref) {
|
|
2614
2614
|
let {
|
|
2615
2615
|
children,
|
|
@@ -2621,7 +2621,7 @@ function ActionCard(_ref) {
|
|
|
2621
2621
|
isPressed,
|
|
2622
2622
|
isFocused
|
|
2623
2623
|
} = _ref,
|
|
2624
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2624
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
2625
2625
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2626
2626
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2627
2627
|
borderRadius: borderRadius,
|
|
@@ -2919,7 +2919,7 @@ const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) =
|
|
|
2919
2919
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
2920
2920
|
};
|
|
2921
2921
|
|
|
2922
|
-
const _excluded$
|
|
2922
|
+
const _excluded$S = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2923
2923
|
const TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
2924
2924
|
const TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
2925
2925
|
const TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -2975,7 +2975,7 @@ function Typography(_ref) {
|
|
|
2975
2975
|
variant,
|
|
2976
2976
|
color
|
|
2977
2977
|
} = _ref,
|
|
2978
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
2978
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$S);
|
|
2979
2979
|
const sx = useSx();
|
|
2980
2980
|
const typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
2981
2981
|
const defaultColor = useTypographyDefaultColor();
|
|
@@ -3088,7 +3088,7 @@ function Icon({
|
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
-
const _excluded
|
|
3091
|
+
const _excluded$R = ["color", "size"],
|
|
3092
3092
|
_excluded2$5 = ["color"];
|
|
3093
3093
|
function getIconSizeConfigKeyFromTypeName(breakpointName) {
|
|
3094
3094
|
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
@@ -3111,7 +3111,7 @@ function TypographyIconSpecifiedColor(_ref) {
|
|
|
3111
3111
|
color,
|
|
3112
3112
|
size
|
|
3113
3113
|
} = _ref,
|
|
3114
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3114
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
3115
3115
|
const ancestorType = useTypographyAncestorType();
|
|
3116
3116
|
const iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
|
|
3117
3117
|
const colorValue = getTypographyColorValue(color);
|
|
@@ -3167,7 +3167,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed) => {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
};
|
|
3169
3169
|
|
|
3170
|
-
const _excluded$
|
|
3170
|
+
const _excluded$Q = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing"];
|
|
3171
3171
|
function ButtonIcon({
|
|
3172
3172
|
icon,
|
|
3173
3173
|
color,
|
|
@@ -3248,7 +3248,7 @@ function ButtonContent(_ref) {
|
|
|
3248
3248
|
isFocused,
|
|
3249
3249
|
innerSpacing
|
|
3250
3250
|
} = _ref,
|
|
3251
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3251
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3252
3252
|
const color = isDisabled ? 'black-light' : getButtonTextColorByType(type, variant, isHovered, isPressed);
|
|
3253
3253
|
return /*#__PURE__*/jsx(View, {
|
|
3254
3254
|
_web: {
|
|
@@ -3554,7 +3554,7 @@ function LoaderIcon({
|
|
|
3554
3554
|
});
|
|
3555
3555
|
}
|
|
3556
3556
|
|
|
3557
|
-
const _excluded$
|
|
3557
|
+
const _excluded$P = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3558
3558
|
const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
3559
3559
|
let {
|
|
3560
3560
|
as,
|
|
@@ -3566,7 +3566,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3566
3566
|
medium: false
|
|
3567
3567
|
}
|
|
3568
3568
|
} = _ref,
|
|
3569
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3569
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3570
3570
|
const [isLoading, setIsLoading] = useState(false);
|
|
3571
3571
|
const mountedRef = useRef(false);
|
|
3572
3572
|
|
|
@@ -3612,7 +3612,7 @@ function ActionsButton(_ref) {
|
|
|
3612
3612
|
}, props));
|
|
3613
3613
|
}
|
|
3614
3614
|
|
|
3615
|
-
const _excluded$
|
|
3615
|
+
const _excluded$O = ["children", "layout", "reversed"];
|
|
3616
3616
|
function getCurrentLayout(layout) {
|
|
3617
3617
|
if (!layout) return {
|
|
3618
3618
|
base: 'stretch',
|
|
@@ -3645,7 +3645,7 @@ function Actions(_ref) {
|
|
|
3645
3645
|
base: false
|
|
3646
3646
|
}
|
|
3647
3647
|
} = _ref,
|
|
3648
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3648
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3649
3649
|
const shouldReverse = typeof reversed === 'boolean' ? {
|
|
3650
3650
|
base: !!reversed
|
|
3651
3651
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3700,7 +3700,7 @@ function getInitials(firstname, lastname) {
|
|
|
3700
3700
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
3701
3701
|
}
|
|
3702
3702
|
|
|
3703
|
-
const _excluded$
|
|
3703
|
+
const _excluded$N = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3704
3704
|
function AvatarContent({
|
|
3705
3705
|
size,
|
|
3706
3706
|
src,
|
|
@@ -3766,7 +3766,7 @@ function Avatar(_ref) {
|
|
|
3766
3766
|
dark,
|
|
3767
3767
|
disabled
|
|
3768
3768
|
} = _ref,
|
|
3769
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3769
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
3770
3770
|
const currentSize = getCurrentSize({
|
|
3771
3771
|
size,
|
|
3772
3772
|
sizeVariant
|
|
@@ -3804,25 +3804,7 @@ function Avatar(_ref) {
|
|
|
3804
3804
|
});
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
3807
|
-
|
|
3808
|
-
* A utility component that returns its children without any modifications.
|
|
3809
|
-
*
|
|
3810
|
-
* This component acts as an identity function for React elements - it simply returns
|
|
3811
|
-
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3812
|
-
* component composition, or as a placeholder in component hierarchies.
|
|
3813
|
-
*
|
|
3814
|
-
* @returns The children as they were passed in, without any wrapper elements
|
|
3815
|
-
*
|
|
3816
|
-
* @example
|
|
3817
|
-
* See CardModal and FullscreenModal for usage examples.
|
|
3818
|
-
*/
|
|
3819
|
-
function IdentityComponent({
|
|
3820
|
-
children
|
|
3821
|
-
}) {
|
|
3822
|
-
return children;
|
|
3823
|
-
}
|
|
3824
|
-
|
|
3825
|
-
const _excluded$W = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
|
|
3807
|
+
const _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3826
3808
|
function BottomSheetComp(_ref, ref) {
|
|
3827
3809
|
let {
|
|
3828
3810
|
children: Content,
|
|
@@ -3830,10 +3812,9 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3830
3812
|
hasBackdrop = true,
|
|
3831
3813
|
hasHandle = true,
|
|
3832
3814
|
enableDynamicSizing = true,
|
|
3833
|
-
snapPoints = ['100%']
|
|
3834
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
3815
|
+
snapPoints = ['100%']
|
|
3835
3816
|
} = _ref,
|
|
3836
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
3817
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
3837
3818
|
const {
|
|
3838
3819
|
top
|
|
3839
3820
|
} = useSafeAreaInsets();
|
|
@@ -3859,9 +3840,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3859
3840
|
}, rest), {}, {
|
|
3860
3841
|
topInset: top,
|
|
3861
3842
|
children: props => /*#__PURE__*/jsx(Wrapper, {
|
|
3862
|
-
children: /*#__PURE__*/jsx(
|
|
3863
|
-
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3864
|
-
})
|
|
3843
|
+
children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, _objectSpread({}, props === null || props === void 0 ? void 0 : props.data)) : Content
|
|
3865
3844
|
})
|
|
3866
3845
|
}));
|
|
3867
3846
|
}
|
|
@@ -3989,7 +3968,7 @@ function CardModalRotationContainer(props) {
|
|
|
3989
3968
|
}, props));
|
|
3990
3969
|
}
|
|
3991
3970
|
|
|
3992
|
-
function NativeOpacityAnimation$
|
|
3971
|
+
function NativeOpacityAnimation$2({
|
|
3993
3972
|
visible,
|
|
3994
3973
|
children,
|
|
3995
3974
|
onExited
|
|
@@ -4026,7 +4005,7 @@ function NativeOpacityAnimation$4({
|
|
|
4026
4005
|
});
|
|
4027
4006
|
}
|
|
4028
4007
|
|
|
4029
|
-
function NativeRotationAnimation$
|
|
4008
|
+
function NativeRotationAnimation$1({
|
|
4030
4009
|
visible,
|
|
4031
4010
|
children,
|
|
4032
4011
|
onEntered,
|
|
@@ -4113,14 +4092,14 @@ function CardModalAnimation({
|
|
|
4113
4092
|
flexGrow: 1,
|
|
4114
4093
|
justifyContent: "center",
|
|
4115
4094
|
alignItems: "center",
|
|
4116
|
-
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$
|
|
4095
|
+
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
|
|
4117
4096
|
visible: isContentVisible,
|
|
4118
4097
|
onExited: handleAnimationExited,
|
|
4119
4098
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
4120
4099
|
onPress: onClose
|
|
4121
4100
|
})
|
|
4122
4101
|
}), /*#__PURE__*/jsx(CardModalRotationContainer, {
|
|
4123
|
-
children: /*#__PURE__*/jsx(NativeRotationAnimation$
|
|
4102
|
+
children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
|
|
4124
4103
|
visible: isContentVisible,
|
|
4125
4104
|
onExited: handleAnimationExited,
|
|
4126
4105
|
onEntered: onEntered,
|
|
@@ -4131,7 +4110,7 @@ function CardModalAnimation({
|
|
|
4131
4110
|
});
|
|
4132
4111
|
}
|
|
4133
4112
|
|
|
4134
|
-
const _excluded$
|
|
4113
|
+
const _excluded$L = ["children", "visible", "onClose", "onExited"];
|
|
4135
4114
|
function CardModalBehaviour(_ref) {
|
|
4136
4115
|
let {
|
|
4137
4116
|
children,
|
|
@@ -4139,7 +4118,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4139
4118
|
onClose,
|
|
4140
4119
|
onExited
|
|
4141
4120
|
} = _ref,
|
|
4142
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4121
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4143
4122
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
4144
4123
|
useEffect(() => {
|
|
4145
4124
|
if (visible === true) {
|
|
@@ -4161,7 +4140,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4161
4140
|
});
|
|
4162
4141
|
}
|
|
4163
4142
|
|
|
4164
|
-
const _excluded$
|
|
4143
|
+
const _excluded$K = ["children", "paddingX", "paddingY"];
|
|
4165
4144
|
function CardModalBody(_ref) {
|
|
4166
4145
|
let {
|
|
4167
4146
|
children,
|
|
@@ -4171,7 +4150,7 @@ function CardModalBody(_ref) {
|
|
|
4171
4150
|
},
|
|
4172
4151
|
paddingY = 'kitt.4'
|
|
4173
4152
|
} = _ref,
|
|
4174
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4153
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4175
4154
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4176
4155
|
showsVerticalScrollIndicator: false,
|
|
4177
4156
|
_contentContainerStyle: {
|
|
@@ -4183,7 +4162,7 @@ function CardModalBody(_ref) {
|
|
|
4183
4162
|
}));
|
|
4184
4163
|
}
|
|
4185
4164
|
|
|
4186
|
-
const _excluded$
|
|
4165
|
+
const _excluded$J = ["children", "padding", "hasSeparator"];
|
|
4187
4166
|
function CardModalFooter(_ref) {
|
|
4188
4167
|
let {
|
|
4189
4168
|
children,
|
|
@@ -4193,323 +4172,7 @@ function CardModalFooter(_ref) {
|
|
|
4193
4172
|
},
|
|
4194
4173
|
hasSeparator = true
|
|
4195
4174
|
} = _ref,
|
|
4196
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4197
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4198
|
-
marginTop: "kitt.2",
|
|
4199
|
-
padding: padding,
|
|
4200
|
-
borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4201
|
-
borderColor: "kitt.separator",
|
|
4202
|
-
alignItems: {
|
|
4203
|
-
base: undefined,
|
|
4204
|
-
medium: 'flex-end'
|
|
4205
|
-
},
|
|
4206
|
-
children: children
|
|
4207
|
-
}));
|
|
4208
|
-
}
|
|
4209
|
-
|
|
4210
|
-
const _excluded$S = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4211
|
-
function CardModalHeader(_ref) {
|
|
4212
|
-
let {
|
|
4213
|
-
children,
|
|
4214
|
-
title,
|
|
4215
|
-
paddingBottom = {
|
|
4216
|
-
base: 'kitt.4',
|
|
4217
|
-
medium: 'kitt.2'
|
|
4218
|
-
},
|
|
4219
|
-
hasSeparator = true,
|
|
4220
|
-
right,
|
|
4221
|
-
left
|
|
4222
|
-
} = _ref,
|
|
4223
|
-
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
4224
|
-
const defaultContainerPadding = {
|
|
4225
|
-
base: 'kitt.4',
|
|
4226
|
-
medium: 'kitt.6'
|
|
4227
|
-
};
|
|
4228
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4229
|
-
padding: paddingBottom,
|
|
4230
|
-
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4231
|
-
borderColor: "kitt.separator",
|
|
4232
|
-
justifyContent: "center",
|
|
4233
|
-
width: "100%",
|
|
4234
|
-
height: "kitt.cardModal.header.height",
|
|
4235
|
-
paddingRight: right ? 'kitt.2' : defaultContainerPadding,
|
|
4236
|
-
paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
|
|
4237
|
-
children: /*#__PURE__*/jsxs(View, {
|
|
4238
|
-
alignItems: "center",
|
|
4239
|
-
flexDirection: "row",
|
|
4240
|
-
justifyContent: !children && !left ? 'flex-end' : 'space-between',
|
|
4241
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4242
|
-
width: "kitt.iconButton.width",
|
|
4243
|
-
children: left
|
|
4244
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4245
|
-
flexGrow: "1",
|
|
4246
|
-
paddingRight: right ? 'kitt.2' : 0,
|
|
4247
|
-
paddingLeft: left ? 'kitt.2' : 0,
|
|
4248
|
-
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4249
|
-
textAlign: !left && right ? 'left' : 'center',
|
|
4250
|
-
variant: "bold",
|
|
4251
|
-
children: title
|
|
4252
|
-
}) : null, children]
|
|
4253
|
-
}), right ? /*#__PURE__*/jsx(View, {
|
|
4254
|
-
width: "kitt.iconButton.width",
|
|
4255
|
-
children: right
|
|
4256
|
-
}) : null]
|
|
4257
|
-
})
|
|
4258
|
-
}));
|
|
4259
|
-
}
|
|
4260
|
-
|
|
4261
|
-
const _excluded$R = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer", "contentContainer"];
|
|
4262
|
-
function CardModal(_ref) {
|
|
4263
|
-
let {
|
|
4264
|
-
backgroundColor = 'kitt.uiBackgroundLight',
|
|
4265
|
-
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4266
|
-
withoutShadow,
|
|
4267
|
-
children,
|
|
4268
|
-
header,
|
|
4269
|
-
body,
|
|
4270
|
-
footer,
|
|
4271
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
4272
|
-
} = _ref,
|
|
4273
|
-
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
4274
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4275
|
-
overflow: "hidden",
|
|
4276
|
-
backgroundColor: backgroundColor,
|
|
4277
|
-
shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
|
|
4278
|
-
borderRadius: "kitt.cardModal.borderRadius",
|
|
4279
|
-
width: "100%",
|
|
4280
|
-
maxHeight: "100%",
|
|
4281
|
-
maxWidth: maxWidth,
|
|
4282
|
-
minHeight: "kitt.cardModal.minHeight",
|
|
4283
|
-
children: /*#__PURE__*/jsx(ContentContainer, {
|
|
4284
|
-
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4285
|
-
children: [header || null, body || null, footer || null]
|
|
4286
|
-
})
|
|
4287
|
-
})
|
|
4288
|
-
}));
|
|
4289
|
-
}
|
|
4290
|
-
CardModal.Body = CardModalBody;
|
|
4291
|
-
CardModal.Header = CardModalHeader;
|
|
4292
|
-
CardModal.Footer = CardModalFooter;
|
|
4293
|
-
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
4294
|
-
|
|
4295
|
-
function CardModal2RotationContainer(props) {
|
|
4296
|
-
return /*#__PURE__*/jsx(View, _objectSpread({
|
|
4297
|
-
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4298
|
-
paddingY: "kitt.cardModal.overlayPadding.vertical",
|
|
4299
|
-
maxWidth: "kitt.cardModal.maxWidthWithPadding",
|
|
4300
|
-
width: "100%",
|
|
4301
|
-
maxHeight: "100%",
|
|
4302
|
-
_web: {
|
|
4303
|
-
maxHeight: '100svh'
|
|
4304
|
-
}
|
|
4305
|
-
}, props));
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4308
|
-
function NativeOpacityAnimation$3({
|
|
4309
|
-
visible,
|
|
4310
|
-
children,
|
|
4311
|
-
onExited
|
|
4312
|
-
}) {
|
|
4313
|
-
const theme = useTheme();
|
|
4314
|
-
const hasRunAnimationRef = useRef(false);
|
|
4315
|
-
function handleAnimationFinished() {
|
|
4316
|
-
if (visible) {
|
|
4317
|
-
hasRunAnimationRef.current = true;
|
|
4318
|
-
}
|
|
4319
|
-
if (!visible && hasRunAnimationRef.current) {
|
|
4320
|
-
onExited();
|
|
4321
|
-
}
|
|
4322
|
-
}
|
|
4323
|
-
const opacityStyle = useAnimatedStyle(() => {
|
|
4324
|
-
const {
|
|
4325
|
-
duration,
|
|
4326
|
-
easing
|
|
4327
|
-
} = theme.kitt.cardModal.animation.overlay;
|
|
4328
|
-
const [x1, y1, x2, y2] = easing;
|
|
4329
|
-
return {
|
|
4330
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
4331
|
-
duration,
|
|
4332
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
4333
|
-
}, isFinished => {
|
|
4334
|
-
if (!isFinished) return;
|
|
4335
|
-
runOnJS(handleAnimationFinished)();
|
|
4336
|
-
})
|
|
4337
|
-
};
|
|
4338
|
-
});
|
|
4339
|
-
return /*#__PURE__*/jsx(Animated.View, {
|
|
4340
|
-
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
4341
|
-
children: children
|
|
4342
|
-
});
|
|
4343
|
-
}
|
|
4344
|
-
|
|
4345
|
-
function NativeRotationAnimation$1({
|
|
4346
|
-
visible,
|
|
4347
|
-
children,
|
|
4348
|
-
onEntered,
|
|
4349
|
-
onExited
|
|
4350
|
-
}) {
|
|
4351
|
-
const theme = useTheme();
|
|
4352
|
-
const hasRunAnimationRef = useRef(false);
|
|
4353
|
-
const rotation = useSharedValue(0.8);
|
|
4354
|
-
function handleAnimationFinished() {
|
|
4355
|
-
if (visible) {
|
|
4356
|
-
if (onEntered) onEntered();
|
|
4357
|
-
hasRunAnimationRef.current = true;
|
|
4358
|
-
}
|
|
4359
|
-
if (!visible && hasRunAnimationRef.current) onExited();
|
|
4360
|
-
}
|
|
4361
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
4362
|
-
const {
|
|
4363
|
-
duration,
|
|
4364
|
-
easing
|
|
4365
|
-
} = theme.kitt.cardModal.animation.content;
|
|
4366
|
-
const [x1, y1, x2, y2] = easing;
|
|
4367
|
-
rotation.value = withTiming(visible ? 0 : 5, {
|
|
4368
|
-
duration,
|
|
4369
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
4370
|
-
}, isFinished => {
|
|
4371
|
-
if (!isFinished) return;
|
|
4372
|
-
runOnJS(handleAnimationFinished)();
|
|
4373
|
-
});
|
|
4374
|
-
return {
|
|
4375
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
4376
|
-
duration,
|
|
4377
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
4378
|
-
}),
|
|
4379
|
-
transform: [{
|
|
4380
|
-
scale: withTiming(visible ? 1 : 0.8, {
|
|
4381
|
-
duration,
|
|
4382
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
4383
|
-
})
|
|
4384
|
-
}, {
|
|
4385
|
-
rotateZ: `${rotation.value}deg`
|
|
4386
|
-
}]
|
|
4387
|
-
};
|
|
4388
|
-
});
|
|
4389
|
-
return /*#__PURE__*/jsx(Animated.View, {
|
|
4390
|
-
style: [animatedStyle],
|
|
4391
|
-
children: children
|
|
4392
|
-
});
|
|
4393
|
-
}
|
|
4394
|
-
|
|
4395
|
-
function CardModal2Animation({
|
|
4396
|
-
visible,
|
|
4397
|
-
children,
|
|
4398
|
-
onEnter,
|
|
4399
|
-
onEntered,
|
|
4400
|
-
onExit,
|
|
4401
|
-
onExited,
|
|
4402
|
-
onClose
|
|
4403
|
-
}) {
|
|
4404
|
-
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
4405
|
-
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
4406
|
-
const handleAnimationExited = () => {
|
|
4407
|
-
setIsModalVisible(false);
|
|
4408
|
-
// Android doesn't handle the onDismiss callback on the modal, we need to call it manually
|
|
4409
|
-
if (Platform.OS === 'android' && onExited) onExited();
|
|
4410
|
-
};
|
|
4411
|
-
useEffect(() => {
|
|
4412
|
-
if (!(!visible && isContentVisible)) return;
|
|
4413
|
-
if (onExit) onExit();
|
|
4414
|
-
setIsContentVisible(false);
|
|
4415
|
-
}, [visible, isContentVisible, onExit]);
|
|
4416
|
-
return /*#__PURE__*/jsx(Modal, {
|
|
4417
|
-
transparent: true,
|
|
4418
|
-
supportedOrientations: ['landscape', 'portrait'],
|
|
4419
|
-
visible: isModalVisible,
|
|
4420
|
-
onShow: () => {
|
|
4421
|
-
if (onEnter) onEnter();
|
|
4422
|
-
setIsContentVisible(true);
|
|
4423
|
-
},
|
|
4424
|
-
onDismiss: () => {
|
|
4425
|
-
if (onExited) onExited();
|
|
4426
|
-
},
|
|
4427
|
-
children: /*#__PURE__*/jsxs(View, {
|
|
4428
|
-
position: "relative",
|
|
4429
|
-
flexGrow: 1,
|
|
4430
|
-
justifyContent: "center",
|
|
4431
|
-
alignItems: "center",
|
|
4432
|
-
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$3, {
|
|
4433
|
-
visible: isContentVisible,
|
|
4434
|
-
onExited: handleAnimationExited,
|
|
4435
|
-
children: /*#__PURE__*/jsx(Overlay, {
|
|
4436
|
-
onPress: onClose
|
|
4437
|
-
})
|
|
4438
|
-
}), /*#__PURE__*/jsx(CardModal2RotationContainer, {
|
|
4439
|
-
children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
|
|
4440
|
-
visible: isContentVisible,
|
|
4441
|
-
onExited: handleAnimationExited,
|
|
4442
|
-
onEntered: onEntered,
|
|
4443
|
-
children: children
|
|
4444
|
-
})
|
|
4445
|
-
})]
|
|
4446
|
-
})
|
|
4447
|
-
});
|
|
4448
|
-
}
|
|
4449
|
-
|
|
4450
|
-
const _excluded$Q = ["children", "visible", "onClose", "onExited"];
|
|
4451
|
-
function CardModal2Behaviour(_ref) {
|
|
4452
|
-
let {
|
|
4453
|
-
children,
|
|
4454
|
-
visible,
|
|
4455
|
-
onClose,
|
|
4456
|
-
onExited
|
|
4457
|
-
} = _ref,
|
|
4458
|
-
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
4459
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
4460
|
-
useEffect(() => {
|
|
4461
|
-
if (visible === true) {
|
|
4462
|
-
setIsModalBehaviourVisible(true);
|
|
4463
|
-
}
|
|
4464
|
-
}, [visible]);
|
|
4465
|
-
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
4466
|
-
visible: isModalBehaviourVisible,
|
|
4467
|
-
onClose: onClose,
|
|
4468
|
-
children: /*#__PURE__*/jsx(CardModal2Animation, _objectSpread(_objectSpread({}, props), {}, {
|
|
4469
|
-
visible: visible,
|
|
4470
|
-
onExited: () => {
|
|
4471
|
-
if (onExited) onExited();
|
|
4472
|
-
setIsModalBehaviourVisible(false);
|
|
4473
|
-
},
|
|
4474
|
-
onClose: onClose,
|
|
4475
|
-
children: children
|
|
4476
|
-
}))
|
|
4477
|
-
});
|
|
4478
|
-
}
|
|
4479
|
-
|
|
4480
|
-
const _excluded$P = ["children", "paddingX", "paddingY"];
|
|
4481
|
-
function CardModal2Body(_ref) {
|
|
4482
|
-
let {
|
|
4483
|
-
children,
|
|
4484
|
-
paddingX = {
|
|
4485
|
-
base: 'kitt.4',
|
|
4486
|
-
medium: 'kitt.6'
|
|
4487
|
-
},
|
|
4488
|
-
paddingY = 'kitt.4'
|
|
4489
|
-
} = _ref,
|
|
4490
|
-
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
4491
|
-
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4492
|
-
showsVerticalScrollIndicator: false,
|
|
4493
|
-
_contentContainerStyle: {
|
|
4494
|
-
paddingX,
|
|
4495
|
-
paddingY
|
|
4496
|
-
}
|
|
4497
|
-
}, props), {}, {
|
|
4498
|
-
children: children
|
|
4499
|
-
}));
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
const _excluded$O = ["children", "padding", "hasSeparator"];
|
|
4503
|
-
function CardModal2Footer(_ref) {
|
|
4504
|
-
let {
|
|
4505
|
-
children,
|
|
4506
|
-
padding = {
|
|
4507
|
-
base: 'kitt.4',
|
|
4508
|
-
medium: 'kitt.2'
|
|
4509
|
-
},
|
|
4510
|
-
hasSeparator = true
|
|
4511
|
-
} = _ref,
|
|
4512
|
-
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4175
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4513
4176
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4514
4177
|
marginTop: "kitt.2",
|
|
4515
4178
|
padding: padding,
|
|
@@ -4523,8 +4186,8 @@ function CardModal2Footer(_ref) {
|
|
|
4523
4186
|
}));
|
|
4524
4187
|
}
|
|
4525
4188
|
|
|
4526
|
-
const _excluded$
|
|
4527
|
-
function
|
|
4189
|
+
const _excluded$I = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4190
|
+
function CardModalHeader(_ref) {
|
|
4528
4191
|
let {
|
|
4529
4192
|
children,
|
|
4530
4193
|
title,
|
|
@@ -4536,7 +4199,7 @@ function CardModal2Header(_ref) {
|
|
|
4536
4199
|
right,
|
|
4537
4200
|
left
|
|
4538
4201
|
} = _ref,
|
|
4539
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4202
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4540
4203
|
const defaultContainerPadding = {
|
|
4541
4204
|
base: 'kitt.4',
|
|
4542
4205
|
medium: 'kitt.6'
|
|
@@ -4574,15 +4237,18 @@ function CardModal2Header(_ref) {
|
|
|
4574
4237
|
}));
|
|
4575
4238
|
}
|
|
4576
4239
|
|
|
4577
|
-
const _excluded$
|
|
4578
|
-
function
|
|
4240
|
+
const _excluded$H = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4241
|
+
function CardModal(_ref) {
|
|
4579
4242
|
let {
|
|
4580
4243
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
4581
4244
|
maxWidth = 'kitt.cardModal.maxWidth',
|
|
4582
4245
|
withoutShadow,
|
|
4583
|
-
children
|
|
4246
|
+
children,
|
|
4247
|
+
header,
|
|
4248
|
+
body,
|
|
4249
|
+
footer
|
|
4584
4250
|
} = _ref,
|
|
4585
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4251
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4586
4252
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4587
4253
|
overflow: "hidden",
|
|
4588
4254
|
backgroundColor: backgroundColor,
|
|
@@ -4592,13 +4258,15 @@ function CardModal2(_ref) {
|
|
|
4592
4258
|
maxHeight: "100%",
|
|
4593
4259
|
maxWidth: maxWidth,
|
|
4594
4260
|
minHeight: "kitt.cardModal.minHeight",
|
|
4595
|
-
children: children
|
|
4261
|
+
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
4262
|
+
children: [header || null, body || null, footer || null]
|
|
4263
|
+
})
|
|
4596
4264
|
}));
|
|
4597
4265
|
}
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4266
|
+
CardModal.Body = CardModalBody;
|
|
4267
|
+
CardModal.Header = CardModalHeader;
|
|
4268
|
+
CardModal.Footer = CardModalFooter;
|
|
4269
|
+
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
4602
4270
|
|
|
4603
4271
|
function getBackgroundColor$5({
|
|
4604
4272
|
isDisabled,
|
|
@@ -4813,13 +4481,13 @@ function ChoiceItemContainer({
|
|
|
4813
4481
|
}));
|
|
4814
4482
|
}
|
|
4815
4483
|
|
|
4816
|
-
const _excluded$
|
|
4484
|
+
const _excluded$G = ["direction", "contentContainerStyle"];
|
|
4817
4485
|
function ChoicesContainer(_ref) {
|
|
4818
4486
|
let {
|
|
4819
4487
|
direction,
|
|
4820
4488
|
contentContainerStyle
|
|
4821
4489
|
} = _ref,
|
|
4822
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4490
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4823
4491
|
if (direction === 'row') {
|
|
4824
4492
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4825
4493
|
horizontal: true,
|
|
@@ -4893,7 +4561,7 @@ const ChoicesElements = {
|
|
|
4893
4561
|
ButtonChoices
|
|
4894
4562
|
};
|
|
4895
4563
|
|
|
4896
|
-
function NativeOpacityAnimation$
|
|
4564
|
+
function NativeOpacityAnimation$1({
|
|
4897
4565
|
visible,
|
|
4898
4566
|
children,
|
|
4899
4567
|
onExited
|
|
@@ -5017,7 +4685,7 @@ function DialogModalAnimation({
|
|
|
5017
4685
|
flexGrow: 1,
|
|
5018
4686
|
justifyContent: "center",
|
|
5019
4687
|
alignItems: "center",
|
|
5020
|
-
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$
|
|
4688
|
+
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
5021
4689
|
visible: isContentVisible,
|
|
5022
4690
|
onExited: handleAnimationExited,
|
|
5023
4691
|
children: /*#__PURE__*/jsx(Overlay, {
|
|
@@ -5037,7 +4705,7 @@ function DialogModalAnimation({
|
|
|
5037
4705
|
});
|
|
5038
4706
|
}
|
|
5039
4707
|
|
|
5040
|
-
const _excluded$
|
|
4708
|
+
const _excluded$F = ["children", "visible", "onClose", "onExited"];
|
|
5041
4709
|
function DialogModalBehaviour(_ref) {
|
|
5042
4710
|
let {
|
|
5043
4711
|
children,
|
|
@@ -5045,7 +4713,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5045
4713
|
onClose,
|
|
5046
4714
|
onExited
|
|
5047
4715
|
} = _ref,
|
|
5048
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4716
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5049
4717
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
5050
4718
|
useEffect(() => {
|
|
5051
4719
|
if (visible === true) {
|
|
@@ -5073,7 +4741,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5073
4741
|
});
|
|
5074
4742
|
}
|
|
5075
4743
|
|
|
5076
|
-
const _excluded$
|
|
4744
|
+
const _excluded$E = ["stretch"];
|
|
5077
4745
|
function DialogModal({
|
|
5078
4746
|
illustration,
|
|
5079
4747
|
title,
|
|
@@ -5115,7 +4783,7 @@ function DialogModalButton(_ref) {
|
|
|
5115
4783
|
let {
|
|
5116
4784
|
stretch = true
|
|
5117
4785
|
} = _ref,
|
|
5118
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4786
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5119
4787
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5120
4788
|
stretch: stretch
|
|
5121
4789
|
}, props));
|
|
@@ -5149,7 +4817,7 @@ function Emoji({
|
|
|
5149
4817
|
});
|
|
5150
4818
|
}
|
|
5151
4819
|
|
|
5152
|
-
const _excluded$
|
|
4820
|
+
const _excluded$D = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5153
4821
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5154
4822
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5155
4823
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5161,7 +4829,7 @@ function ExternalAppLink(_ref) {
|
|
|
5161
4829
|
onPress,
|
|
5162
4830
|
onOpenAppError
|
|
5163
4831
|
} = _ref,
|
|
5164
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4832
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
5165
4833
|
const href = `${appScheme}:${appValue}`;
|
|
5166
4834
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
|
|
5167
4835
|
href: href
|
|
@@ -5255,7 +4923,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5255
4923
|
};
|
|
5256
4924
|
}
|
|
5257
4925
|
|
|
5258
|
-
const _excluded$
|
|
4926
|
+
const _excluded$C = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5259
4927
|
function ExternalLink(_ref) {
|
|
5260
4928
|
let {
|
|
5261
4929
|
as: Component,
|
|
@@ -5265,7 +4933,7 @@ function ExternalLink(_ref) {
|
|
|
5265
4933
|
// eslint-disable-next-line no-console
|
|
5266
4934
|
onOpenLinkError = console.error
|
|
5267
4935
|
} = _ref,
|
|
5268
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4936
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5269
4937
|
const openExternalLink = useOpenExternalLink();
|
|
5270
4938
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5271
4939
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5324,7 +4992,7 @@ function InputTextContainer({
|
|
|
5324
4992
|
});
|
|
5325
4993
|
}
|
|
5326
4994
|
|
|
5327
|
-
const _excluded$
|
|
4995
|
+
const _excluded$B = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5328
4996
|
const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5329
4997
|
let {
|
|
5330
4998
|
id,
|
|
@@ -5341,7 +5009,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5341
5009
|
height,
|
|
5342
5010
|
onSubmitEditing
|
|
5343
5011
|
} = _ref,
|
|
5344
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5012
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5345
5013
|
const theme = useTheme();
|
|
5346
5014
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5347
5015
|
base: 'body'
|
|
@@ -5466,12 +5134,12 @@ function AutocompleteItemsListContainer({
|
|
|
5466
5134
|
});
|
|
5467
5135
|
}
|
|
5468
5136
|
|
|
5469
|
-
const _excluded$
|
|
5137
|
+
const _excluded$A = ["children"];
|
|
5470
5138
|
function AutocompleteOption(_ref) {
|
|
5471
5139
|
let {
|
|
5472
5140
|
children
|
|
5473
5141
|
} = _ref,
|
|
5474
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5142
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5475
5143
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5476
5144
|
paddingX: {
|
|
5477
5145
|
base: 'kitt.2',
|
|
@@ -5483,7 +5151,7 @@ function AutocompleteOption(_ref) {
|
|
|
5483
5151
|
}));
|
|
5484
5152
|
}
|
|
5485
5153
|
|
|
5486
|
-
const _excluded$
|
|
5154
|
+
const _excluded$z = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5487
5155
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5488
5156
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5489
5157
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5525,7 +5193,7 @@ function Autocomplete(_ref) {
|
|
|
5525
5193
|
zIndex = 1000,
|
|
5526
5194
|
maxItemContainerHeight
|
|
5527
5195
|
} = _ref,
|
|
5528
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5196
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5529
5197
|
const childrenArray = Children.toArray(children);
|
|
5530
5198
|
const items = childrenArray.filter(isReactElement).map(child => ({
|
|
5531
5199
|
child,
|
|
@@ -5746,7 +5414,7 @@ function getBorderColor$1({
|
|
|
5746
5414
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5747
5415
|
}
|
|
5748
5416
|
|
|
5749
|
-
const _excluded$
|
|
5417
|
+
const _excluded$y = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5750
5418
|
const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5751
5419
|
let {
|
|
5752
5420
|
checked,
|
|
@@ -5757,7 +5425,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5757
5425
|
onBlur,
|
|
5758
5426
|
onFocus
|
|
5759
5427
|
} = _ref,
|
|
5760
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5428
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5761
5429
|
const theme = useTheme();
|
|
5762
5430
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5763
5431
|
hitSlop: hitSlop
|
|
@@ -6086,7 +5754,7 @@ function PartContainer({
|
|
|
6086
5754
|
});
|
|
6087
5755
|
}
|
|
6088
5756
|
|
|
6089
|
-
const _excluded$
|
|
5757
|
+
const _excluded$x = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6090
5758
|
const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6091
5759
|
let {
|
|
6092
5760
|
id,
|
|
@@ -6106,7 +5774,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6106
5774
|
onFocus,
|
|
6107
5775
|
onSubmitEditing
|
|
6108
5776
|
} = _ref;
|
|
6109
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
5777
|
+
_objectWithoutProperties(_ref, _excluded$x);
|
|
6110
5778
|
const monthRef = useRef(null);
|
|
6111
5779
|
const yearRef = useRef(null);
|
|
6112
5780
|
const defaultValue = value;
|
|
@@ -6307,7 +5975,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
6307
5975
|
});
|
|
6308
5976
|
});
|
|
6309
5977
|
|
|
6310
|
-
const _excluded$
|
|
5978
|
+
const _excluded$w = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6311
5979
|
const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6312
5980
|
let {
|
|
6313
5981
|
onBlur,
|
|
@@ -6318,7 +5986,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6318
5986
|
value,
|
|
6319
5987
|
onChange
|
|
6320
5988
|
} = _ref,
|
|
6321
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5989
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
6322
5990
|
const [isFocused, setIsFocused] = useState(false);
|
|
6323
5991
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6324
5992
|
const handleClose = () => {
|
|
@@ -6388,7 +6056,7 @@ function PlatformDateTimePicker({
|
|
|
6388
6056
|
}));
|
|
6389
6057
|
}
|
|
6390
6058
|
|
|
6391
|
-
const _excluded$
|
|
6059
|
+
const _excluded$v = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6392
6060
|
function ModalTitle({
|
|
6393
6061
|
children
|
|
6394
6062
|
}) {
|
|
@@ -6409,7 +6077,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6409
6077
|
onClose,
|
|
6410
6078
|
onChange
|
|
6411
6079
|
} = _ref,
|
|
6412
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6080
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6413
6081
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6414
6082
|
|
|
6415
6083
|
// Prevent unsynced value between the modal and its parent state
|
|
@@ -6452,7 +6120,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6452
6120
|
});
|
|
6453
6121
|
}
|
|
6454
6122
|
|
|
6455
|
-
const _excluded$
|
|
6123
|
+
const _excluded$u = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6456
6124
|
const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6457
6125
|
let {
|
|
6458
6126
|
value,
|
|
@@ -6468,7 +6136,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6468
6136
|
onFocus,
|
|
6469
6137
|
onBlur
|
|
6470
6138
|
} = _ref,
|
|
6471
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6139
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6472
6140
|
const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
|
|
6473
6141
|
const [isFocused, setIsFocused] = useState(false);
|
|
6474
6142
|
const [currentValue, setCurrentValue] = useState(value);
|
|
@@ -6506,7 +6174,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6506
6174
|
});
|
|
6507
6175
|
});
|
|
6508
6176
|
|
|
6509
|
-
const _excluded$
|
|
6177
|
+
const _excluded$t = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6510
6178
|
const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6511
6179
|
let {
|
|
6512
6180
|
value,
|
|
@@ -6516,7 +6184,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6516
6184
|
onChange,
|
|
6517
6185
|
onBlur
|
|
6518
6186
|
} = _ref,
|
|
6519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6187
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6520
6188
|
if (Platform.OS === 'android') {
|
|
6521
6189
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6522
6190
|
ref: ref,
|
|
@@ -6538,7 +6206,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6538
6206
|
}, props));
|
|
6539
6207
|
});
|
|
6540
6208
|
|
|
6541
|
-
const _excluded$
|
|
6209
|
+
const _excluded$s = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6542
6210
|
const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6543
6211
|
let {
|
|
6544
6212
|
fillMode = 'native',
|
|
@@ -6546,7 +6214,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6546
6214
|
value,
|
|
6547
6215
|
onSubmitEditing
|
|
6548
6216
|
} = _ref,
|
|
6549
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6217
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6550
6218
|
// in apps, final-form can give a string value that will break the component
|
|
6551
6219
|
const currentValue = value || undefined;
|
|
6552
6220
|
if (fillMode === 'keyboard') {
|
|
@@ -6618,12 +6286,12 @@ function ImagePicker({
|
|
|
6618
6286
|
});
|
|
6619
6287
|
}
|
|
6620
6288
|
|
|
6621
|
-
const _excluded$
|
|
6289
|
+
const _excluded$r = ["children"];
|
|
6622
6290
|
function ListItemContent(_ref) {
|
|
6623
6291
|
let {
|
|
6624
6292
|
children
|
|
6625
6293
|
} = _ref,
|
|
6626
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6294
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
6627
6295
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6628
6296
|
alignSelf: "center",
|
|
6629
6297
|
flexBasis: "0%",
|
|
@@ -6634,7 +6302,7 @@ function ListItemContent(_ref) {
|
|
|
6634
6302
|
}));
|
|
6635
6303
|
}
|
|
6636
6304
|
|
|
6637
|
-
const _excluded$
|
|
6305
|
+
const _excluded$q = ["children", "side"],
|
|
6638
6306
|
_excluded2$2 = ["children", "align"];
|
|
6639
6307
|
// Handles the vertical alignment of the side elements of the list item
|
|
6640
6308
|
function ListItemSideContainer(_ref) {
|
|
@@ -6642,7 +6310,7 @@ function ListItemSideContainer(_ref) {
|
|
|
6642
6310
|
children,
|
|
6643
6311
|
side = 'left'
|
|
6644
6312
|
} = _ref,
|
|
6645
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6313
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6646
6314
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6647
6315
|
flexDirection: "row",
|
|
6648
6316
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6664,7 +6332,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6664
6332
|
}));
|
|
6665
6333
|
}
|
|
6666
6334
|
|
|
6667
|
-
const _excluded$
|
|
6335
|
+
const _excluded$p = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6668
6336
|
function ListItem(_ref) {
|
|
6669
6337
|
let {
|
|
6670
6338
|
children,
|
|
@@ -6674,7 +6342,7 @@ function ListItem(_ref) {
|
|
|
6674
6342
|
right,
|
|
6675
6343
|
onPress
|
|
6676
6344
|
} = _ref,
|
|
6677
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6345
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6678
6346
|
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6679
6347
|
const wrapperProps = onPress ? _objectSpread({
|
|
6680
6348
|
accessibilityRole: 'button',
|
|
@@ -6707,12 +6375,12 @@ ListItem.Content = ListItemContent;
|
|
|
6707
6375
|
ListItem.SideContent = ListItemSideContent;
|
|
6708
6376
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6709
6377
|
|
|
6710
|
-
const _excluded$
|
|
6378
|
+
const _excluded$o = ["title"];
|
|
6711
6379
|
function BottomSheetActionsItem(_ref) {
|
|
6712
6380
|
let {
|
|
6713
6381
|
title
|
|
6714
6382
|
} = _ref,
|
|
6715
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6383
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6716
6384
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6717
6385
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6718
6386
|
withPadding: true,
|
|
@@ -7207,7 +6875,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7207
6875
|
};
|
|
7208
6876
|
}
|
|
7209
6877
|
|
|
7210
|
-
const _excluded$
|
|
6878
|
+
const _excluded$n = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7211
6879
|
function InputAddress(_ref) {
|
|
7212
6880
|
let {
|
|
7213
6881
|
initialValue,
|
|
@@ -7216,7 +6884,7 @@ function InputAddress(_ref) {
|
|
|
7216
6884
|
emptyResultsElement,
|
|
7217
6885
|
onChange
|
|
7218
6886
|
} = _ref,
|
|
7219
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6887
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7220
6888
|
const {
|
|
7221
6889
|
state,
|
|
7222
6890
|
onInputChange,
|
|
@@ -7312,12 +6980,12 @@ const InputIban = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7312
6980
|
}, props));
|
|
7313
6981
|
});
|
|
7314
6982
|
|
|
7315
|
-
const _excluded$
|
|
6983
|
+
const _excluded$m = ["onChange"];
|
|
7316
6984
|
const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7317
6985
|
let {
|
|
7318
6986
|
onChange
|
|
7319
6987
|
} = _ref,
|
|
7320
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6988
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7321
6989
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7322
6990
|
ref: ref
|
|
7323
6991
|
}, props), {}, {
|
|
@@ -7334,13 +7002,13 @@ const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7334
7002
|
}));
|
|
7335
7003
|
});
|
|
7336
7004
|
|
|
7337
|
-
const _excluded$
|
|
7005
|
+
const _excluded$l = ["isPasswordDefaultVisible", "right"];
|
|
7338
7006
|
const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7339
7007
|
let {
|
|
7340
7008
|
isPasswordDefaultVisible,
|
|
7341
7009
|
right
|
|
7342
7010
|
} = _ref,
|
|
7343
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7011
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7344
7012
|
const [isVisible, setIsVisible] = useState(Boolean(isPasswordDefaultVisible));
|
|
7345
7013
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7346
7014
|
ref: ref
|
|
@@ -7361,7 +7029,7 @@ const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7361
7029
|
}));
|
|
7362
7030
|
});
|
|
7363
7031
|
|
|
7364
|
-
const _excluded$
|
|
7032
|
+
const _excluded$k = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
7365
7033
|
function isPhoneNumberValid(number) {
|
|
7366
7034
|
return isValidNumber(number);
|
|
7367
7035
|
}
|
|
@@ -7375,7 +7043,7 @@ const InputPhone = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7375
7043
|
phoneNumberLength = 10,
|
|
7376
7044
|
onChange
|
|
7377
7045
|
} = _ref,
|
|
7378
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7046
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7379
7047
|
const currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
7380
7048
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7381
7049
|
ref: ref
|
|
@@ -7825,7 +7493,7 @@ function RadioButton({
|
|
|
7825
7493
|
});
|
|
7826
7494
|
}
|
|
7827
7495
|
|
|
7828
|
-
const _excluded$
|
|
7496
|
+
const _excluded$j = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7829
7497
|
function RadioButtonGroupItem(_ref) {
|
|
7830
7498
|
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7831
7499
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7840,7 +7508,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7840
7508
|
onBlur,
|
|
7841
7509
|
onChange
|
|
7842
7510
|
} = _ref2,
|
|
7843
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7511
|
+
props = _objectWithoutProperties(_ref2, _excluded$j);
|
|
7844
7512
|
const [currentValue, setCurrentValue] = useState(value);
|
|
7845
7513
|
const handleChange = newValue => {
|
|
7846
7514
|
if (disabled) return;
|
|
@@ -7869,14 +7537,14 @@ function RadioButtonGroup(_ref2) {
|
|
|
7869
7537
|
}
|
|
7870
7538
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7871
7539
|
|
|
7872
|
-
const _excluded$
|
|
7540
|
+
const _excluded$i = ["helper", "limit"];
|
|
7873
7541
|
const TextArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7874
7542
|
var _props$value, _props$value2;
|
|
7875
7543
|
let {
|
|
7876
7544
|
helper,
|
|
7877
7545
|
limit
|
|
7878
7546
|
} = _ref,
|
|
7879
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7547
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7880
7548
|
const shouldDisplayLimit = limit && limit > 0;
|
|
7881
7549
|
const isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7882
7550
|
const limitContainerAnimatedStyle = useAnimatedStyle(() => ({
|
|
@@ -8032,7 +7700,7 @@ function ToggleAnimated({
|
|
|
8032
7700
|
});
|
|
8033
7701
|
}
|
|
8034
7702
|
|
|
8035
|
-
const _excluded$
|
|
7703
|
+
const _excluded$h = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8036
7704
|
const getLabelTypographyType = size => {
|
|
8037
7705
|
return size === 'medium' ? 'body' : 'body-medium';
|
|
8038
7706
|
};
|
|
@@ -8048,7 +7716,7 @@ function Toggle(_ref) {
|
|
|
8048
7716
|
value = false,
|
|
8049
7717
|
onChange = () => {}
|
|
8050
7718
|
} = _ref,
|
|
8051
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7719
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
8052
7720
|
const theme = useKittTheme();
|
|
8053
7721
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
8054
7722
|
alignItems: "center"
|
|
@@ -8086,7 +7754,7 @@ function Toggle(_ref) {
|
|
|
8086
7754
|
}));
|
|
8087
7755
|
}
|
|
8088
7756
|
|
|
8089
|
-
const _excluded$
|
|
7757
|
+
const _excluded$g = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
8090
7758
|
function FullscreenModalBody(_ref) {
|
|
8091
7759
|
let {
|
|
8092
7760
|
children,
|
|
@@ -8094,7 +7762,7 @@ function FullscreenModalBody(_ref) {
|
|
|
8094
7762
|
style,
|
|
8095
7763
|
shouldHandleTopNotch
|
|
8096
7764
|
} = _ref,
|
|
8097
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7765
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8098
7766
|
const {
|
|
8099
7767
|
bottom,
|
|
8100
7768
|
top
|
|
@@ -8119,311 +7787,31 @@ function FullscreenModalBody(_ref) {
|
|
|
8119
7787
|
}));
|
|
8120
7788
|
}
|
|
8121
7789
|
|
|
8122
|
-
const _excluded$
|
|
8123
|
-
function FullscreenModalFooter(_ref) {
|
|
8124
|
-
let {
|
|
8125
|
-
shouldHandleBottomNotch = true,
|
|
8126
|
-
hasSeparator = true,
|
|
8127
|
-
children
|
|
8128
|
-
} = _ref,
|
|
8129
|
-
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
8130
|
-
const {
|
|
8131
|
-
bottom
|
|
8132
|
-
} = useSafeAreaInsets();
|
|
8133
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8134
|
-
borderTopColor: "kitt.separator",
|
|
8135
|
-
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
8136
|
-
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8137
|
-
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
8138
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding"
|
|
8139
|
-
}, props), {}, {
|
|
8140
|
-
children: /*#__PURE__*/jsx(View, {
|
|
8141
|
-
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8142
|
-
children: children
|
|
8143
|
-
})
|
|
8144
|
-
}));
|
|
8145
|
-
}
|
|
8146
|
-
|
|
8147
|
-
function NativeOpacityAnimation$1({
|
|
8148
|
-
visible,
|
|
8149
|
-
children
|
|
8150
|
-
}) {
|
|
8151
|
-
const theme = useTheme();
|
|
8152
|
-
const opacityStyle = useAnimatedStyle(() => {
|
|
8153
|
-
const {
|
|
8154
|
-
duration,
|
|
8155
|
-
easing
|
|
8156
|
-
} = theme.kitt.fullscreenModal.animation.overlay;
|
|
8157
|
-
const [x1, y1, x2, y2] = easing;
|
|
8158
|
-
return {
|
|
8159
|
-
opacity: withTiming(visible ? 1 : 0, {
|
|
8160
|
-
duration,
|
|
8161
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
8162
|
-
})
|
|
8163
|
-
};
|
|
8164
|
-
});
|
|
8165
|
-
return /*#__PURE__*/jsx(Animated.View, {
|
|
8166
|
-
style: [StyleSheet.absoluteFillObject, opacityStyle],
|
|
8167
|
-
children: children
|
|
8168
|
-
});
|
|
8169
|
-
}
|
|
8170
|
-
|
|
8171
|
-
function NativeSlideInAnimation$1({
|
|
8172
|
-
visible,
|
|
8173
|
-
children,
|
|
8174
|
-
onEntered,
|
|
8175
|
-
onExited
|
|
8176
|
-
}) {
|
|
8177
|
-
const theme = useTheme();
|
|
8178
|
-
const {
|
|
8179
|
-
height: wHeight
|
|
8180
|
-
} = useWindowDimensions();
|
|
8181
|
-
const hasRunAnimationRef = useRef(false);
|
|
8182
|
-
function handleAnimationFinished() {
|
|
8183
|
-
if (visible) {
|
|
8184
|
-
if (onEntered) onEntered();
|
|
8185
|
-
hasRunAnimationRef.current = true;
|
|
8186
|
-
}
|
|
8187
|
-
|
|
8188
|
-
// Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
|
|
8189
|
-
if (!visible && hasRunAnimationRef.current) onExited();
|
|
8190
|
-
}
|
|
8191
|
-
const translateStyle = useAnimatedStyle(() => {
|
|
8192
|
-
const {
|
|
8193
|
-
duration,
|
|
8194
|
-
easing
|
|
8195
|
-
} = theme.kitt.fullscreenModal.animation.content;
|
|
8196
|
-
const [x1, y1, x2, y2] = easing;
|
|
8197
|
-
return {
|
|
8198
|
-
transform: [{
|
|
8199
|
-
translateY: withTiming(visible ? 0 : wHeight, {
|
|
8200
|
-
duration,
|
|
8201
|
-
easing: Easing$1.bezier(x1, y1, x2, y2)
|
|
8202
|
-
}, isFinished => {
|
|
8203
|
-
if (!isFinished) return;
|
|
8204
|
-
runOnJS(handleAnimationFinished)();
|
|
8205
|
-
})
|
|
8206
|
-
}]
|
|
8207
|
-
};
|
|
8208
|
-
});
|
|
8209
|
-
return /*#__PURE__*/jsx(Animated.View, {
|
|
8210
|
-
style: [{
|
|
8211
|
-
transform: [{
|
|
8212
|
-
translateY: wHeight
|
|
8213
|
-
}]
|
|
8214
|
-
}, translateStyle, {
|
|
8215
|
-
width: '100%',
|
|
8216
|
-
flex: 1
|
|
8217
|
-
}],
|
|
8218
|
-
children: children
|
|
8219
|
-
});
|
|
8220
|
-
}
|
|
8221
|
-
|
|
8222
|
-
function FullscreenModalAnimation({
|
|
8223
|
-
visible,
|
|
8224
|
-
children,
|
|
8225
|
-
onEnter,
|
|
8226
|
-
onEntered,
|
|
8227
|
-
onExit,
|
|
8228
|
-
onExited
|
|
8229
|
-
}) {
|
|
8230
|
-
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
8231
|
-
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
8232
|
-
const handleAnimationExited = () => {
|
|
8233
|
-
setIsModalVisible(false);
|
|
8234
|
-
// Android doesn't handle the onDismiss callback on the modal, we need to call it manually
|
|
8235
|
-
if (Platform.OS === 'android' && onExited) onExited();
|
|
8236
|
-
};
|
|
8237
|
-
|
|
8238
|
-
// When parent visibility is set to false, in order to have our exit animation we must in this order :
|
|
8239
|
-
// 1 - run the exit animation
|
|
8240
|
-
// 2 - once it is done, unmount the Modal
|
|
8241
|
-
useEffect(() => {
|
|
8242
|
-
if (!(!visible && isContentVisible)) return;
|
|
8243
|
-
if (onExit) onExit();
|
|
8244
|
-
setIsContentVisible(false);
|
|
8245
|
-
}, [visible, isContentVisible, onExit]);
|
|
8246
|
-
return /*#__PURE__*/jsx(Modal, {
|
|
8247
|
-
transparent: true,
|
|
8248
|
-
supportedOrientations: ['landscape', 'portrait'],
|
|
8249
|
-
visible: isModalVisible,
|
|
8250
|
-
onShow: () => {
|
|
8251
|
-
if (onEnter) onEnter();
|
|
8252
|
-
setIsContentVisible(true);
|
|
8253
|
-
},
|
|
8254
|
-
onDismiss: () => {
|
|
8255
|
-
if (onExited) onExited();
|
|
8256
|
-
},
|
|
8257
|
-
children: /*#__PURE__*/jsxs(View, {
|
|
8258
|
-
position: "relative",
|
|
8259
|
-
flexGrow: 1,
|
|
8260
|
-
justifyContent: "center",
|
|
8261
|
-
alignItems: "center",
|
|
8262
|
-
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
8263
|
-
visible: isContentVisible,
|
|
8264
|
-
children: /*#__PURE__*/jsx(Overlay, {
|
|
8265
|
-
onPress: handleAnimationExited
|
|
8266
|
-
})
|
|
8267
|
-
}), /*#__PURE__*/jsx(NativeSlideInAnimation$1, {
|
|
8268
|
-
visible: isContentVisible,
|
|
8269
|
-
onExited: handleAnimationExited,
|
|
8270
|
-
onEntered: onEntered,
|
|
8271
|
-
children: /*#__PURE__*/jsx(View, {
|
|
8272
|
-
flexGrow: 1,
|
|
8273
|
-
children: children
|
|
8274
|
-
})
|
|
8275
|
-
})]
|
|
8276
|
-
})
|
|
8277
|
-
});
|
|
8278
|
-
}
|
|
8279
|
-
|
|
8280
|
-
const _excluded$j = ["children", "visible", "onClose", "onExited"];
|
|
8281
|
-
function FullscreenModalBehaviour(_ref) {
|
|
8282
|
-
let {
|
|
8283
|
-
children,
|
|
8284
|
-
visible,
|
|
8285
|
-
onClose,
|
|
8286
|
-
onExited
|
|
8287
|
-
} = _ref,
|
|
8288
|
-
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
8289
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
8290
|
-
useEffect(() => {
|
|
8291
|
-
if (visible === true) {
|
|
8292
|
-
setIsModalBehaviourVisible(true);
|
|
8293
|
-
}
|
|
8294
|
-
}, [visible]);
|
|
8295
|
-
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
8296
|
-
visible: isModalBehaviourVisible,
|
|
8297
|
-
onClose: onClose,
|
|
8298
|
-
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
8299
|
-
visible: visible,
|
|
8300
|
-
onExited: () => {
|
|
8301
|
-
if (onExited) onExited();
|
|
8302
|
-
setIsModalBehaviourVisible(false);
|
|
8303
|
-
},
|
|
8304
|
-
children: children
|
|
8305
|
-
}))
|
|
8306
|
-
});
|
|
8307
|
-
}
|
|
8308
|
-
|
|
8309
|
-
function FullscreenModalContainer({
|
|
8310
|
-
children,
|
|
8311
|
-
backgroundColor
|
|
8312
|
-
}) {
|
|
8313
|
-
return /*#__PURE__*/jsx(View, {
|
|
8314
|
-
position: "relative",
|
|
8315
|
-
flexGrow: 1,
|
|
8316
|
-
flexShrink: 1,
|
|
8317
|
-
flexBasis: "100%"
|
|
8318
|
-
/*
|
|
8319
|
-
Here we are setting the same min and max height because on web the content was overflowing and not scrolling
|
|
8320
|
-
minHeight is needed to make the modal fullscreen
|
|
8321
|
-
maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
|
|
8322
|
-
We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
|
|
8323
|
-
*/,
|
|
8324
|
-
_web: {
|
|
8325
|
-
minHeight: '100svh',
|
|
8326
|
-
maxHeight: '100svh'
|
|
8327
|
-
},
|
|
8328
|
-
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'kitt.uiBackgroundLight',
|
|
8329
|
-
children: children
|
|
8330
|
-
});
|
|
8331
|
-
}
|
|
8332
|
-
|
|
8333
|
-
const _excluded$i = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
8334
|
-
function FullscreenModalHeader(_ref) {
|
|
7790
|
+
const _excluded$f = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7791
|
+
function FullscreenModalFooter(_ref) {
|
|
8335
7792
|
let {
|
|
7793
|
+
shouldHandleBottomNotch = true,
|
|
8336
7794
|
hasSeparator = true,
|
|
8337
|
-
|
|
8338
|
-
title,
|
|
8339
|
-
children,
|
|
8340
|
-
right,
|
|
8341
|
-
left,
|
|
8342
|
-
shouldHandleTopNotch = true
|
|
7795
|
+
children
|
|
8343
7796
|
} = _ref,
|
|
8344
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7797
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8345
7798
|
const {
|
|
8346
|
-
|
|
7799
|
+
bottom
|
|
8347
7800
|
} = useSafeAreaInsets();
|
|
8348
|
-
const hasRight = Boolean(right);
|
|
8349
|
-
const hasLeft = Boolean(left);
|
|
8350
|
-
const hasContent = Boolean(title || children);
|
|
8351
7801
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
8358
|
-
paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
8359
|
-
borderBottomColor: "kitt.separator",
|
|
8360
|
-
borderBottomWidth: hasSeparator ? 1 : undefined
|
|
7802
|
+
borderTopColor: "kitt.separator",
|
|
7803
|
+
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
7804
|
+
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7805
|
+
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
7806
|
+
paddingX: "kitt.fullscreenModal.horizontalPadding"
|
|
8361
7807
|
}, props), {}, {
|
|
8362
|
-
children: /*#__PURE__*/
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
8366
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
8367
|
-
width: "kitt.iconButton.width",
|
|
8368
|
-
children: left
|
|
8369
|
-
}) : null, title ? /*#__PURE__*/jsx(View, {
|
|
8370
|
-
flexGrow: 1,
|
|
8371
|
-
flexShrink: 1,
|
|
8372
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8373
|
-
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
8374
|
-
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8375
|
-
variant: "bold",
|
|
8376
|
-
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
8377
|
-
children: title
|
|
8378
|
-
})
|
|
8379
|
-
}) : null, children ? /*#__PURE__*/jsx(View, {
|
|
8380
|
-
flexGrow: 1,
|
|
8381
|
-
flexShrink: 1,
|
|
8382
|
-
alignItems: "center",
|
|
8383
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8384
|
-
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
8385
|
-
children: children
|
|
8386
|
-
}) : null, right || left ? /*#__PURE__*/jsx(View, {
|
|
8387
|
-
width: "kitt.iconButton.width",
|
|
8388
|
-
children: right
|
|
8389
|
-
}) : null]
|
|
7808
|
+
children: /*#__PURE__*/jsx(View, {
|
|
7809
|
+
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
7810
|
+
children: children
|
|
8390
7811
|
})
|
|
8391
7812
|
}));
|
|
8392
7813
|
}
|
|
8393
7814
|
|
|
8394
|
-
function FullscreenModal({
|
|
8395
|
-
body,
|
|
8396
|
-
header,
|
|
8397
|
-
footer,
|
|
8398
|
-
backgroundColor,
|
|
8399
|
-
contentContainer: ContentContainer = IdentityComponent
|
|
8400
|
-
}) {
|
|
8401
|
-
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8402
|
-
backgroundColor: backgroundColor,
|
|
8403
|
-
children: /*#__PURE__*/jsxs(ContentContainer, {
|
|
8404
|
-
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8405
|
-
children: header
|
|
8406
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8407
|
-
flexGrow: 1,
|
|
8408
|
-
flexShrink: 1,
|
|
8409
|
-
justifyContent: "space-between",
|
|
8410
|
-
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8411
|
-
bounces: false,
|
|
8412
|
-
contentContainerStyle: {
|
|
8413
|
-
flexGrow: 1,
|
|
8414
|
-
position: 'relative'
|
|
8415
|
-
},
|
|
8416
|
-
children: body
|
|
8417
|
-
}), footer || null]
|
|
8418
|
-
})]
|
|
8419
|
-
})
|
|
8420
|
-
});
|
|
8421
|
-
}
|
|
8422
|
-
FullscreenModal.Header = FullscreenModalHeader;
|
|
8423
|
-
FullscreenModal.Footer = FullscreenModalFooter;
|
|
8424
|
-
FullscreenModal.Body = FullscreenModalBody;
|
|
8425
|
-
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
8426
|
-
|
|
8427
7815
|
function NativeOpacityAnimation({
|
|
8428
7816
|
visible,
|
|
8429
7817
|
children
|
|
@@ -8499,7 +7887,7 @@ function NativeSlideInAnimation({
|
|
|
8499
7887
|
});
|
|
8500
7888
|
}
|
|
8501
7889
|
|
|
8502
|
-
function
|
|
7890
|
+
function FullscreenModalAnimation({
|
|
8503
7891
|
visible,
|
|
8504
7892
|
children,
|
|
8505
7893
|
onEnter,
|
|
@@ -8557,15 +7945,15 @@ function FullscreenModal2Animation({
|
|
|
8557
7945
|
});
|
|
8558
7946
|
}
|
|
8559
7947
|
|
|
8560
|
-
const _excluded$
|
|
8561
|
-
function
|
|
7948
|
+
const _excluded$e = ["children", "visible", "onClose", "onExited"];
|
|
7949
|
+
function FullscreenModalBehaviour(_ref) {
|
|
8562
7950
|
let {
|
|
8563
7951
|
children,
|
|
8564
7952
|
visible,
|
|
8565
7953
|
onClose,
|
|
8566
7954
|
onExited
|
|
8567
7955
|
} = _ref,
|
|
8568
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7956
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
8569
7957
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
8570
7958
|
useEffect(() => {
|
|
8571
7959
|
if (visible === true) {
|
|
@@ -8575,7 +7963,7 @@ function FullscreenModal2Behaviour(_ref) {
|
|
|
8575
7963
|
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
8576
7964
|
visible: isModalBehaviourVisible,
|
|
8577
7965
|
onClose: onClose,
|
|
8578
|
-
children: /*#__PURE__*/jsx(
|
|
7966
|
+
children: /*#__PURE__*/jsx(FullscreenModalAnimation, _objectSpread(_objectSpread({}, props), {}, {
|
|
8579
7967
|
visible: visible,
|
|
8580
7968
|
onExited: () => {
|
|
8581
7969
|
if (onExited) onExited();
|
|
@@ -8586,52 +7974,7 @@ function FullscreenModal2Behaviour(_ref) {
|
|
|
8586
7974
|
});
|
|
8587
7975
|
}
|
|
8588
7976
|
|
|
8589
|
-
|
|
8590
|
-
function FullscreenModal2Body(_ref) {
|
|
8591
|
-
let {
|
|
8592
|
-
children,
|
|
8593
|
-
shouldHandleBottomNotch,
|
|
8594
|
-
style,
|
|
8595
|
-
shouldHandleTopNotch
|
|
8596
|
-
} = _ref,
|
|
8597
|
-
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8598
|
-
const {
|
|
8599
|
-
bottom,
|
|
8600
|
-
top
|
|
8601
|
-
} = useSafeAreaInsets();
|
|
8602
|
-
const {
|
|
8603
|
-
kitt: {
|
|
8604
|
-
fullscreenModal: {
|
|
8605
|
-
body: {
|
|
8606
|
-
verticalPadding
|
|
8607
|
-
}
|
|
8608
|
-
}
|
|
8609
|
-
}
|
|
8610
|
-
} = useTheme();
|
|
8611
|
-
const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
|
|
8612
|
-
const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
|
|
8613
|
-
return /*#__PURE__*/jsx(View, {
|
|
8614
|
-
flexGrow: 1,
|
|
8615
|
-
flexShrink: 1,
|
|
8616
|
-
justifyContent: "space-between",
|
|
8617
|
-
children: /*#__PURE__*/jsx(ScrollView$1, {
|
|
8618
|
-
bounces: false,
|
|
8619
|
-
contentContainerStyle: {
|
|
8620
|
-
flexGrow: 1,
|
|
8621
|
-
position: 'relative'
|
|
8622
|
-
},
|
|
8623
|
-
children: /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
8624
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding",
|
|
8625
|
-
paddingTop: paddingTop,
|
|
8626
|
-
paddingBottom: paddingBottom,
|
|
8627
|
-
style: style,
|
|
8628
|
-
children: children
|
|
8629
|
-
}))
|
|
8630
|
-
})
|
|
8631
|
-
});
|
|
8632
|
-
}
|
|
8633
|
-
|
|
8634
|
-
function FullscreenModal2Container({
|
|
7977
|
+
function FullscreenModalContainer({
|
|
8635
7978
|
children,
|
|
8636
7979
|
backgroundColor
|
|
8637
7980
|
}) {
|
|
@@ -8655,33 +7998,8 @@ function FullscreenModal2Container({
|
|
|
8655
7998
|
});
|
|
8656
7999
|
}
|
|
8657
8000
|
|
|
8658
|
-
const _excluded$
|
|
8659
|
-
function
|
|
8660
|
-
let {
|
|
8661
|
-
shouldHandleBottomNotch = true,
|
|
8662
|
-
hasSeparator = true,
|
|
8663
|
-
children
|
|
8664
|
-
} = _ref,
|
|
8665
|
-
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8666
|
-
const {
|
|
8667
|
-
bottom
|
|
8668
|
-
} = useSafeAreaInsets();
|
|
8669
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
8670
|
-
borderTopColor: "kitt.separator",
|
|
8671
|
-
borderTopWidth: hasSeparator ? 1 : undefined,
|
|
8672
|
-
paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8673
|
-
paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
|
|
8674
|
-
paddingX: "kitt.fullscreenModal.horizontalPadding"
|
|
8675
|
-
}, props), {}, {
|
|
8676
|
-
children: /*#__PURE__*/jsx(View, {
|
|
8677
|
-
paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
|
|
8678
|
-
children: children
|
|
8679
|
-
})
|
|
8680
|
-
}));
|
|
8681
|
-
}
|
|
8682
|
-
|
|
8683
|
-
const _excluded$e = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
8684
|
-
function FullscreenModal2Header(_ref) {
|
|
8001
|
+
const _excluded$d = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
8002
|
+
function FullscreenModalHeader(_ref) {
|
|
8685
8003
|
let {
|
|
8686
8004
|
hasSeparator = true,
|
|
8687
8005
|
isTransparent,
|
|
@@ -8691,7 +8009,7 @@ function FullscreenModal2Header(_ref) {
|
|
|
8691
8009
|
left,
|
|
8692
8010
|
shouldHandleTopNotch = true
|
|
8693
8011
|
} = _ref,
|
|
8694
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8012
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
8695
8013
|
const {
|
|
8696
8014
|
top
|
|
8697
8015
|
} = useSafeAreaInsets();
|
|
@@ -8741,19 +8059,35 @@ function FullscreenModal2Header(_ref) {
|
|
|
8741
8059
|
}));
|
|
8742
8060
|
}
|
|
8743
8061
|
|
|
8744
|
-
function
|
|
8745
|
-
|
|
8746
|
-
|
|
8062
|
+
function FullscreenModal({
|
|
8063
|
+
body,
|
|
8064
|
+
header,
|
|
8065
|
+
footer,
|
|
8066
|
+
backgroundColor
|
|
8747
8067
|
}) {
|
|
8748
|
-
return /*#__PURE__*/
|
|
8068
|
+
return /*#__PURE__*/jsxs(FullscreenModalContainer, {
|
|
8749
8069
|
backgroundColor: backgroundColor,
|
|
8750
|
-
children:
|
|
8070
|
+
children: [header ? /*#__PURE__*/jsx(View, {
|
|
8071
|
+
children: header
|
|
8072
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
8073
|
+
flexGrow: 1,
|
|
8074
|
+
flexShrink: 1,
|
|
8075
|
+
justifyContent: "space-between",
|
|
8076
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
8077
|
+
bounces: false,
|
|
8078
|
+
contentContainerStyle: {
|
|
8079
|
+
flexGrow: 1,
|
|
8080
|
+
position: 'relative'
|
|
8081
|
+
},
|
|
8082
|
+
children: body
|
|
8083
|
+
}), footer || null]
|
|
8084
|
+
})]
|
|
8751
8085
|
});
|
|
8752
8086
|
}
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8087
|
+
FullscreenModal.Header = FullscreenModalHeader;
|
|
8088
|
+
FullscreenModal.Footer = FullscreenModalFooter;
|
|
8089
|
+
FullscreenModal.Body = FullscreenModalBody;
|
|
8090
|
+
FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
|
|
8757
8091
|
|
|
8758
8092
|
function GroupTags({
|
|
8759
8093
|
children,
|
|
@@ -9008,7 +8342,7 @@ function Highlight({
|
|
|
9008
8342
|
});
|
|
9009
8343
|
}
|
|
9010
8344
|
|
|
9011
|
-
const _excluded$
|
|
8345
|
+
const _excluded$c = ["color", "isDisabled"];
|
|
9012
8346
|
function getBackgroundColor$1(color, isDisabled) {
|
|
9013
8347
|
if (isDisabled) {
|
|
9014
8348
|
return 'kitt.iconButton.disabled.backgroundColor';
|
|
@@ -9030,7 +8364,7 @@ function Background(_ref) {
|
|
|
9030
8364
|
color,
|
|
9031
8365
|
isDisabled
|
|
9032
8366
|
} = _ref,
|
|
9033
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8367
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
9034
8368
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
9035
8369
|
width: "100%",
|
|
9036
8370
|
height: "100%",
|
|
@@ -9431,7 +8765,7 @@ const getBackgroundColor = ({
|
|
|
9431
8765
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint.default;
|
|
9432
8766
|
};
|
|
9433
8767
|
|
|
9434
|
-
const _excluded$
|
|
8768
|
+
const _excluded$b = ["onPress", "testID"];
|
|
9435
8769
|
let MapMarkerVariantEnum = /*#__PURE__*/function (MapMarkerVariantEnum) {
|
|
9436
8770
|
MapMarkerVariantEnum["HOME"] = "home";
|
|
9437
8771
|
MapMarkerVariantEnum["MEETING_POINT"] = "meetingPoint";
|
|
@@ -9501,7 +8835,7 @@ function MapMarker(_ref) {
|
|
|
9501
8835
|
onPress,
|
|
9502
8836
|
testID
|
|
9503
8837
|
} = _ref,
|
|
9504
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8838
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
9505
8839
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9506
8840
|
testID: testID,
|
|
9507
8841
|
onPress: onPress,
|
|
@@ -12113,7 +11447,7 @@ function KittNativeBaseProvider({
|
|
|
12113
11447
|
});
|
|
12114
11448
|
}
|
|
12115
11449
|
|
|
12116
|
-
const _excluded$
|
|
11450
|
+
const _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
12117
11451
|
function NavigationModalBehaviour(_ref) {
|
|
12118
11452
|
let {
|
|
12119
11453
|
children,
|
|
@@ -12124,7 +11458,7 @@ function NavigationModalBehaviour(_ref) {
|
|
|
12124
11458
|
onExit,
|
|
12125
11459
|
onClose
|
|
12126
11460
|
} = _ref,
|
|
12127
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11461
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
12128
11462
|
const AnimationComponent = useBreakpointValue({
|
|
12129
11463
|
base: FullscreenModalAnimation,
|
|
12130
11464
|
small: CardModalAnimation
|
|
@@ -12168,8 +11502,7 @@ function NavigationModal({
|
|
|
12168
11502
|
body,
|
|
12169
11503
|
backgroundColor,
|
|
12170
11504
|
footer,
|
|
12171
|
-
header
|
|
12172
|
-
contentContainer
|
|
11505
|
+
header
|
|
12173
11506
|
}) {
|
|
12174
11507
|
const Component = useBreakpointValue({
|
|
12175
11508
|
base: FullscreenModal,
|
|
@@ -12179,126 +11512,35 @@ function NavigationModal({
|
|
|
12179
11512
|
body: body,
|
|
12180
11513
|
backgroundColor: backgroundColor,
|
|
12181
11514
|
footer: footer,
|
|
12182
|
-
header: header
|
|
12183
|
-
contentContainer: contentContainer
|
|
11515
|
+
header: header
|
|
12184
11516
|
});
|
|
12185
11517
|
}
|
|
12186
|
-
function Header
|
|
11518
|
+
function Header(props) {
|
|
12187
11519
|
const Component = useBreakpointValue({
|
|
12188
11520
|
base: FullscreenModal.Header,
|
|
12189
11521
|
small: CardModal.Header
|
|
12190
11522
|
});
|
|
12191
11523
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12192
11524
|
}
|
|
12193
|
-
function Body
|
|
11525
|
+
function Body(props) {
|
|
12194
11526
|
const Component = useBreakpointValue({
|
|
12195
11527
|
base: FullscreenModal.Body,
|
|
12196
11528
|
small: CardModal.Body
|
|
12197
11529
|
});
|
|
12198
11530
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12199
11531
|
}
|
|
12200
|
-
function Footer
|
|
11532
|
+
function Footer(props) {
|
|
12201
11533
|
const Component = useBreakpointValue({
|
|
12202
11534
|
base: FullscreenModal.Footer,
|
|
12203
11535
|
small: CardModal.Footer
|
|
12204
11536
|
});
|
|
12205
11537
|
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12206
11538
|
}
|
|
12207
|
-
NavigationModal.Header = Header
|
|
12208
|
-
NavigationModal.Body = Body
|
|
12209
|
-
NavigationModal.Footer = Footer
|
|
11539
|
+
NavigationModal.Header = Header;
|
|
11540
|
+
NavigationModal.Body = Body;
|
|
11541
|
+
NavigationModal.Footer = Footer;
|
|
12210
11542
|
NavigationModal.ModalBehaviour = NavigationModalBehaviour;
|
|
12211
11543
|
|
|
12212
|
-
const _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
12213
|
-
function NavigationModal2Behaviour(_ref) {
|
|
12214
|
-
let {
|
|
12215
|
-
children,
|
|
12216
|
-
visible,
|
|
12217
|
-
appear = true,
|
|
12218
|
-
onExited,
|
|
12219
|
-
onEnter,
|
|
12220
|
-
onExit,
|
|
12221
|
-
onClose
|
|
12222
|
-
} = _ref,
|
|
12223
|
-
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
12224
|
-
const AnimationComponent = useBreakpointValue({
|
|
12225
|
-
base: FullscreenModal2Animation,
|
|
12226
|
-
small: CardModal2Animation
|
|
12227
|
-
});
|
|
12228
|
-
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
12229
|
-
const [shouldAppear, setShouldAppear] = useState(appear);
|
|
12230
|
-
useEffect(() => {
|
|
12231
|
-
if (visible === true) {
|
|
12232
|
-
setIsModalBehaviourVisible(true);
|
|
12233
|
-
}
|
|
12234
|
-
}, [visible]);
|
|
12235
|
-
return /*#__PURE__*/jsx(ModalBehaviour, {
|
|
12236
|
-
visible: isModalBehaviourVisible,
|
|
12237
|
-
onClose: onClose,
|
|
12238
|
-
children: /*#__PURE__*/jsx(AnimationComponent, _objectSpread(_objectSpread({}, props), {}, {
|
|
12239
|
-
appear: shouldAppear,
|
|
12240
|
-
visible: visible,
|
|
12241
|
-
onEnter: () => {
|
|
12242
|
-
if (onEnter) onEnter();
|
|
12243
|
-
|
|
12244
|
-
// Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
|
|
12245
|
-
setShouldAppear(false);
|
|
12246
|
-
},
|
|
12247
|
-
onExit: () => {
|
|
12248
|
-
if (onExit) onExit();
|
|
12249
|
-
|
|
12250
|
-
// Reset appear value to its original value for future modal display
|
|
12251
|
-
setShouldAppear(appear);
|
|
12252
|
-
},
|
|
12253
|
-
onExited: () => {
|
|
12254
|
-
if (onExited) onExited();
|
|
12255
|
-
setIsModalBehaviourVisible(false);
|
|
12256
|
-
},
|
|
12257
|
-
onClose: onClose,
|
|
12258
|
-
children: children
|
|
12259
|
-
}))
|
|
12260
|
-
});
|
|
12261
|
-
}
|
|
12262
|
-
|
|
12263
|
-
function NavigationModal2({
|
|
12264
|
-
backgroundColor,
|
|
12265
|
-
children
|
|
12266
|
-
}) {
|
|
12267
|
-
const Component = useBreakpointValue({
|
|
12268
|
-
base: FullscreenModal2,
|
|
12269
|
-
small: CardModal2
|
|
12270
|
-
});
|
|
12271
|
-
return /*#__PURE__*/jsx(Component, {
|
|
12272
|
-
backgroundColor: backgroundColor,
|
|
12273
|
-
children: children
|
|
12274
|
-
});
|
|
12275
|
-
}
|
|
12276
|
-
function Header(props) {
|
|
12277
|
-
const Component = useBreakpointValue({
|
|
12278
|
-
base: FullscreenModal2.Header,
|
|
12279
|
-
small: CardModal2.Header
|
|
12280
|
-
});
|
|
12281
|
-
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12282
|
-
}
|
|
12283
|
-
function Body(props) {
|
|
12284
|
-
const Component = useBreakpointValue({
|
|
12285
|
-
base: FullscreenModal2.Body,
|
|
12286
|
-
small: CardModal2.Body
|
|
12287
|
-
});
|
|
12288
|
-
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12289
|
-
}
|
|
12290
|
-
function Footer(props) {
|
|
12291
|
-
const Component = useBreakpointValue({
|
|
12292
|
-
base: FullscreenModal2.Footer,
|
|
12293
|
-
small: CardModal2.Footer
|
|
12294
|
-
});
|
|
12295
|
-
return /*#__PURE__*/jsx(Component, _objectSpread({}, props));
|
|
12296
|
-
}
|
|
12297
|
-
NavigationModal2.Header = Header;
|
|
12298
|
-
NavigationModal2.Body = Body;
|
|
12299
|
-
NavigationModal2.Footer = Footer;
|
|
12300
|
-
NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
|
|
12301
|
-
|
|
12302
11544
|
function Notification({
|
|
12303
11545
|
type,
|
|
12304
11546
|
children,
|
|
@@ -14693,5 +13935,5 @@ function VerticalSteps(_ref) {
|
|
|
14693
13935
|
VerticalSteps.Step = Step;
|
|
14694
13936
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14695
13937
|
|
|
14696
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal,
|
|
13938
|
+
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, FlatList as 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 };
|
|
14697
13939
|
//# sourceMappingURL=index-metro.es.android.js.map
|