@zezosoft/zezo-ott-react-native-ui-kit 1.0.4 → 1.0.5
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/lib/module/assets/animations/Failed.json +2103 -0
- package/lib/module/assets/animations/Pending.json +522 -0
- package/lib/module/assets/animations/Successful.json +2289 -0
- package/lib/module/components/Alert/AlertDialog.js +208 -0
- package/lib/module/components/Alert/AlertDialog.js.map +1 -0
- package/lib/module/components/Alert/index.js +1 -0
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +270 -0
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +63 -65
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +82 -41
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +2 -0
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +3 -3
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/Button/SecondaryBtn.js +91 -0
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -0
- package/lib/module/components/Button/index.js +2 -0
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -3
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +4 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +1 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +7 -3
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +4 -1
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +12 -28
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +116 -0
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -2
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +1 -0
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +1 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +6 -10
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +17 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +5 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -4
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +2 -2
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +11 -14
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +35 -8
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +117 -0
- package/lib/module/hooks/useSplashCache.js.map +1 -0
- package/lib/module/store/RecentSearchesStore.js +0 -1
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts +18 -0
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts +35 -0
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +4 -3
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +2 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +21 -0
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +11 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -2
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +14 -0
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +2 -2
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +4 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts +22 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +1 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/animations/Failed.json +2103 -0
- package/src/assets/animations/Pending.json +522 -0
- package/src/assets/animations/Successful.json +2289 -0
- package/src/components/Alert/AlertDialog.tsx +247 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +344 -0
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +89 -80
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +90 -40
- package/src/components/Auth/index.ts +2 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +3 -3
- package/src/components/Button/SecondaryBtn.tsx +116 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +4 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +2 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +2 -0
- package/src/components/Content/Card/Styles/Five.tsx +1 -0
- package/src/components/Content/Card/Styles/Four.tsx +1 -0
- package/src/components/Content/Card/Styles/One.tsx +7 -1
- package/src/components/Content/Card/Styles/RotateInOut.tsx +1 -0
- package/src/components/Content/Card/Styles/Six.tsx +2 -0
- package/src/components/Content/Card/Styles/Three.tsx +1 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +1 -0
- package/src/components/Content/Card/Styles/Two.tsx +1 -0
- package/src/components/Content/Card/components/CardPoster.tsx +23 -51
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +109 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +1 -2
- package/src/components/ContentView/ContentView.tsx +1 -0
- package/src/components/ContentView/MoreContentList.tsx +1 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +4 -9
- package/src/components/ContentView/components/HeroBanner.tsx +16 -0
- package/src/components/Logo/Logo.tsx +5 -7
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +1 -8
- package/src/components/Subscription/SubOne.tsx +4 -2
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +13 -15
- package/src/components/User/WatchHistory/WatchHistory.tsx +1 -0
- package/src/components/User/WatchLater/WatchLater.tsx +1 -0
- package/src/components/User/components/UserAvatar.tsx +36 -3
- package/src/hooks/useSplashCache.ts +166 -0
- package/src/store/RecentSearchesStore.ts +0 -1
- package/src/types/content/content-view.types.ts +1 -0
- package/lib/module/hooks/useInitSplashCacheSync.js +0 -116
- package/lib/module/hooks/useInitSplashCacheSync.js.map +0 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +0 -22
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +0 -1
- package/src/hooks/useInitSplashCacheSync.ts +0 -174
|
@@ -2,32 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @author Naresh Dhamu
|
|
5
|
-
* @lastModified
|
|
5
|
+
* @lastModified Fri 17 Oct 2025 at 09:51 PM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, { useEffect, useMemo, useCallback } from 'react';
|
|
9
|
+
import { StatusBar } from 'react-native';
|
|
10
|
+
import Color from 'color';
|
|
9
11
|
import SplashImage from "./components/SplashImage/SplashImage.js";
|
|
10
12
|
import SplashVideo from "./components/SplashVideo/SplashVideo.js";
|
|
11
13
|
import SplashLottie from "./components/SplashLottie/SplashLottie.js";
|
|
12
|
-
import { StatusBar } from 'react-native';
|
|
13
14
|
import { useTheme } from "../../../theme/index.js";
|
|
14
|
-
import { useInitSplashCacheSync } from "../../../hooks/useInitSplashCacheSync.js";
|
|
15
15
|
import { BackgroundLayout } from "../../BackgroundLayout/BackgroundLayout.js";
|
|
16
|
-
import
|
|
16
|
+
import { useSplashCache } from "../../../hooks/useSplashCache.js";
|
|
17
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
const
|
|
18
|
+
const DEFAULT_IMAGE_TIMEOUT = 5;
|
|
19
|
+
const FALLBACK_TIMEOUT = 0.5;
|
|
19
20
|
export const SplashScreen = ({
|
|
20
|
-
splashScreenConfig
|
|
21
|
-
source: splashSource,
|
|
22
|
-
type: splashType = 'image',
|
|
23
|
-
width,
|
|
24
|
-
height,
|
|
25
|
-
isStatic = false,
|
|
26
|
-
screenTime,
|
|
27
|
-
fullscreen = false,
|
|
28
|
-
resizeMode = 'contain',
|
|
29
|
-
backgroundColor: splashBackgroundColor
|
|
30
|
-
},
|
|
21
|
+
splashScreenConfig,
|
|
31
22
|
innerContainerStyle,
|
|
32
23
|
backgroundImage = {
|
|
33
24
|
gradientSplitBackground: 0.4,
|
|
@@ -36,24 +27,34 @@ export const SplashScreen = ({
|
|
|
36
27
|
onRedirect,
|
|
37
28
|
theme: overrideTheme
|
|
38
29
|
}) => {
|
|
39
|
-
const isRemoteSource = useMemo(() => splashSource.startsWith('http'), [splashSource]);
|
|
40
30
|
const {
|
|
41
|
-
|
|
31
|
+
source: splashSource,
|
|
32
|
+
type: splashType = 'image',
|
|
33
|
+
width,
|
|
34
|
+
height,
|
|
35
|
+
isStatic = false,
|
|
36
|
+
screenTime,
|
|
37
|
+
fullscreen = false,
|
|
38
|
+
resizeMode = 'contain',
|
|
39
|
+
backgroundColor: splashBgColor
|
|
40
|
+
} = splashScreenConfig;
|
|
41
|
+
const {
|
|
42
|
+
theme
|
|
42
43
|
} = useTheme(overrideTheme);
|
|
44
|
+
const isRemote = splashSource.startsWith('http');
|
|
43
45
|
const isImageSplash = splashType === 'image';
|
|
44
|
-
const
|
|
46
|
+
const backgroundImageUrl = isImageSplash && backgroundImage.source?.startsWith('http') ? backgroundImage.source : undefined;
|
|
45
47
|
const {
|
|
46
|
-
data
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
logoUrl: isRemoteSource ? splashSource : undefined,
|
|
51
|
-
backgroundUrl: backgroundImageUri
|
|
48
|
+
data
|
|
49
|
+
} = useSplashCache({
|
|
50
|
+
logoUrl: isRemote ? splashSource : undefined,
|
|
51
|
+
backgroundUrl: backgroundImageUrl
|
|
52
52
|
});
|
|
53
|
-
const resolvedSplashUri =
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
const resolvedSplashUri = isRemote && data.logoPath ? data.logoPath : splashSource;
|
|
54
|
+
const displayTimeout = useMemo(() => {
|
|
55
|
+
if (typeof screenTime === 'number' && screenTime > 0) return screenTime;
|
|
56
|
+
if (isImageSplash || isStatic) return DEFAULT_IMAGE_TIMEOUT;
|
|
57
|
+
return 0;
|
|
57
58
|
}, [screenTime, isImageSplash, isStatic]);
|
|
58
59
|
const handleRedirect = useCallback(() => {
|
|
59
60
|
try {
|
|
@@ -63,16 +64,11 @@ export const SplashScreen = ({
|
|
|
63
64
|
}
|
|
64
65
|
}, [onRedirect]);
|
|
65
66
|
useEffect(() => {
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return () => {
|
|
72
|
-
clearTimeout(timer);
|
|
73
|
-
};
|
|
74
|
-
}, [effectiveTimeout, handleRedirect]);
|
|
75
|
-
const splashComponentProps = useMemo(() => ({
|
|
67
|
+
const timeoutSec = displayTimeout > 0 ? displayTimeout : FALLBACK_TIMEOUT;
|
|
68
|
+
const timer = setTimeout(handleRedirect, timeoutSec * 1000);
|
|
69
|
+
return () => clearTimeout(timer);
|
|
70
|
+
}, [displayTimeout, handleRedirect]);
|
|
71
|
+
const splashProps = useMemo(() => ({
|
|
76
72
|
source: resolvedSplashUri,
|
|
77
73
|
width,
|
|
78
74
|
height,
|
|
@@ -80,47 +76,49 @@ export const SplashScreen = ({
|
|
|
80
76
|
resizeMode: resizeMode
|
|
81
77
|
}), [resolvedSplashUri, width, height, fullscreen, resizeMode]);
|
|
82
78
|
const renderSplashContent = useCallback(() => {
|
|
79
|
+
const videoExtensions = ['.mp4', '.mov', '.mkv', '.webm', '.avi', '.3gp'];
|
|
80
|
+
const LOTTIE_EXTENSIONS = ['.json', '.lottie'];
|
|
83
81
|
switch (splashType) {
|
|
84
82
|
case 'video':
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
const isVideoFile = videoExtensions.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext));
|
|
84
|
+
return isVideoFile ? /*#__PURE__*/_jsx(SplashVideo, {
|
|
85
|
+
...splashProps,
|
|
86
|
+
onEnd: displayTimeout ? undefined : handleRedirect
|
|
87
|
+
}) : null;
|
|
89
88
|
case 'lottie-animation':
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
{
|
|
90
|
+
const isLottieFile = LOTTIE_EXTENSIONS.some(ext => resolvedSplashUri.toLowerCase().endsWith(ext));
|
|
91
|
+
return isLottieFile ? /*#__PURE__*/_jsx(SplashLottie, {
|
|
92
|
+
...splashProps,
|
|
93
|
+
onAnimationFinish: displayTimeout ? undefined : handleRedirect
|
|
94
|
+
}) : null;
|
|
95
|
+
}
|
|
94
96
|
case 'image':
|
|
95
97
|
default:
|
|
96
98
|
return /*#__PURE__*/_jsx(SplashImage, {
|
|
97
|
-
...
|
|
99
|
+
...splashProps
|
|
98
100
|
});
|
|
99
101
|
}
|
|
100
|
-
}, [splashType,
|
|
101
|
-
const getSafeBackgroundColor = (inputColor, fallbackColor) => {
|
|
102
|
-
try {
|
|
103
|
-
if (!inputColor) return fallbackColor;
|
|
104
|
-
const parsedColor = Color(inputColor);
|
|
105
|
-
const alpha = parsedColor.alpha(); // 0 to 1
|
|
106
|
-
|
|
107
|
-
if (alpha < 0.8) return fallbackColor; // ✅ your condition
|
|
102
|
+
}, [splashType, resolvedSplashUri, splashProps, displayTimeout, handleRedirect]);
|
|
108
103
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
/** 🎨 Safe Background Color Calculation */
|
|
105
|
+
const safeBgColor = useMemo(() => {
|
|
106
|
+
try {
|
|
107
|
+
if (!splashBgColor) return theme.colors.background;
|
|
108
|
+
const c = Color(splashBgColor);
|
|
109
|
+
return c.alpha() < 0.8 ? theme.colors.background : c.hex();
|
|
110
|
+
} catch {
|
|
111
|
+
return theme.colors.background;
|
|
112
112
|
}
|
|
113
|
-
};
|
|
114
|
-
const
|
|
115
|
-
const isDark = Color(colorToUse).isDark();
|
|
116
|
-
const statusBarStyle = isDark ? 'light-content' : 'dark-content';
|
|
113
|
+
}, [splashBgColor, theme.colors.background]);
|
|
114
|
+
const statusBarStyle = Color(safeBgColor).isDark() ? 'light-content' : 'dark-content';
|
|
117
115
|
return /*#__PURE__*/_jsxs(BackgroundLayout, {
|
|
118
116
|
backgroundImage: isImageSplash ? backgroundImage.source : undefined,
|
|
119
|
-
backgroundColor:
|
|
117
|
+
backgroundColor: splashBgColor,
|
|
120
118
|
resizeMode: backgroundImage.resizeMode ?? 'cover',
|
|
121
119
|
innerContainerStyle: innerContainerStyle,
|
|
122
120
|
onImageError: backgroundImage.onImageError,
|
|
123
|
-
theme:
|
|
121
|
+
theme: theme,
|
|
124
122
|
gradientSplitBackground: backgroundImage.gradientSplitBackground ?? 0.4,
|
|
125
123
|
children: [/*#__PURE__*/_jsx(StatusBar, {
|
|
126
124
|
translucent: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useCallback","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useCallback","StatusBar","Color","SplashImage","SplashVideo","SplashLottie","useTheme","BackgroundLayout","useSplashCache","jsx","_jsx","jsxs","_jsxs","DEFAULT_IMAGE_TIMEOUT","FALLBACK_TIMEOUT","SplashScreen","splashScreenConfig","innerContainerStyle","backgroundImage","gradientSplitBackground","resizeMode","onRedirect","theme","overrideTheme","source","splashSource","type","splashType","width","height","isStatic","screenTime","fullscreen","backgroundColor","splashBgColor","isRemote","startsWith","isImageSplash","backgroundImageUrl","undefined","data","logoUrl","backgroundUrl","resolvedSplashUri","logoPath","displayTimeout","handleRedirect","err","console","error","timeoutSec","timer","setTimeout","clearTimeout","splashProps","renderSplashContent","videoExtensions","LOTTIE_EXTENSIONS","isVideoFile","some","ext","toLowerCase","endsWith","onEnd","isLottieFile","onAnimationFinish","safeBgColor","colors","background","c","alpha","hex","statusBarStyle","isDark","onImageError","children","translucent","barStyle"],"sourceRoot":"../../../../../src","sources":["components/Auth/SplashScreen/SplashScreen.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC9D,SAASC,SAAS,QAAwB,cAAc;AACxD,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,WAAW,MAAM,yCAAsC;AAC9D,OAAOC,WAAW,MAAM,yCAAsC;AAC9D,OAAOC,YAAY,MAAM,2CAAwC;AAEjE,SAASC,QAAQ,QAAQ,yBAAgB;AAGzC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,cAAc,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8B/D,MAAMC,qBAAqB,GAAG,CAAC;AAC/B,MAAMC,gBAAgB,GAAG,GAAG;AAE5B,OAAO,MAAMC,YAAyC,GAAGA,CAAC;EACxDC,kBAAkB;EAClBC,mBAAmB;EACnBC,eAAe,GAAG;IAChBC,uBAAuB,E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,eAAe,CAACE,UAAU,IAAI,OAAQ;IAClDH,mBAAmB,EAAEA,mBAAoB;IACzCyD,YAAY,EAAExD,eAAe,CAACwD,YAAa;IAC3CpD,KAAK,EAAEA,KAAM;IACbH,uBAAuB,EAAED,eAAe,CAACC,uBAAuB,IAAI,GAAI;IAAAwD,QAAA,gBAExEjE,IAAA,CAACT,SAAS;MACR2E,WAAW;MACX3C,eAAe,EAAC,aAAa;MAC7B4C,QAAQ,EAAEL;IAAe,CAC1B,CAAC,EAEDjB,mBAAmB,CAAC,CAAC;EAAA,CACN,CAAC;AAEvB,CAAC","ignoreList":[]}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @author Naresh Dhamu
|
|
5
|
-
* @lastModified
|
|
5
|
+
* @lastModified Thu 17 Oct 2025
|
|
6
6
|
*/
|
|
7
|
-
import React, {
|
|
7
|
+
import React, { useMemo, useCallback, useState } from 'react';
|
|
8
|
+
import { View, StyleSheet, Animated } from 'react-native';
|
|
8
9
|
import Video from 'react-native-video';
|
|
9
10
|
import Display from "../../../../../utils/Display.js";
|
|
10
|
-
import {
|
|
11
|
+
import { useTheme } from "../../../../../theme/index.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
const SplashVideo = ({
|
|
12
14
|
fullscreen,
|
|
13
15
|
height,
|
|
@@ -19,64 +21,103 @@ const SplashVideo = ({
|
|
|
19
21
|
onLoaded,
|
|
20
22
|
onError
|
|
21
23
|
}) => {
|
|
22
|
-
const
|
|
24
|
+
const {
|
|
25
|
+
theme: applyTheme
|
|
26
|
+
} = useTheme();
|
|
27
|
+
const [loaded, setLoaded] = useState(false);
|
|
28
|
+
const fadeAnim = useMemo(() => new Animated.Value(0), []);
|
|
23
29
|
|
|
24
|
-
//
|
|
30
|
+
// Video style
|
|
25
31
|
const videoStyle = useMemo(() => ({
|
|
26
32
|
width: fullscreen ? Display.fullWidth : width,
|
|
27
33
|
height: fullscreen ? Display.fullHeight : height
|
|
28
34
|
}), [fullscreen, width, height]);
|
|
29
35
|
|
|
30
|
-
//
|
|
36
|
+
// Event handlers
|
|
31
37
|
const handleLoadStart = useCallback(() => {
|
|
38
|
+
setLoaded(false);
|
|
39
|
+
fadeAnim.setValue(0); // Reset fade animation
|
|
32
40
|
onLoadStart?.();
|
|
33
|
-
}, [onLoadStart]);
|
|
41
|
+
}, [onLoadStart, fadeAnim]);
|
|
34
42
|
const handleLoad = useCallback(data => {
|
|
43
|
+
setLoaded(true);
|
|
44
|
+
|
|
45
|
+
// Fade-in animation
|
|
46
|
+
Animated.timing(fadeAnim, {
|
|
47
|
+
toValue: 1,
|
|
48
|
+
duration: 400,
|
|
49
|
+
// 0.4s smooth fade
|
|
50
|
+
useNativeDriver: true
|
|
51
|
+
}).start();
|
|
35
52
|
onLoaded?.(data);
|
|
36
|
-
}, [onLoaded]);
|
|
53
|
+
}, [onLoaded, fadeAnim]);
|
|
37
54
|
const handleError = useCallback(e => {
|
|
38
|
-
// More robust error handling
|
|
39
55
|
const error = e?.error?.message || e?.message || e?.error || e || 'Unknown video error';
|
|
40
56
|
console.error('Video playback error:', error);
|
|
57
|
+
setLoaded(false);
|
|
41
58
|
onError?.(error);
|
|
42
59
|
}, [onError]);
|
|
43
60
|
const resolveUri = src => {
|
|
44
61
|
if (!src) return '';
|
|
45
|
-
if (src.startsWith('http') || src.startsWith('https') || src.startsWith('file://'))
|
|
62
|
+
if (src.startsWith('http') || src.startsWith('https') || src.startsWith('file://')) {
|
|
63
|
+
return src;
|
|
64
|
+
}
|
|
46
65
|
return `file://${src}`;
|
|
47
66
|
};
|
|
48
|
-
return /*#__PURE__*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
68
|
+
style: [videoStyle, styles.wrapper, {
|
|
69
|
+
backgroundColor: applyTheme.colors.background
|
|
70
|
+
}],
|
|
71
|
+
children: [!loaded && /*#__PURE__*/_jsx(View, {
|
|
72
|
+
style: [videoStyle, styles.blackLayer, {
|
|
73
|
+
backgroundColor: applyTheme.colors.background
|
|
74
|
+
}]
|
|
75
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
76
|
+
style: [videoStyle, {
|
|
77
|
+
opacity: fadeAnim
|
|
78
|
+
}],
|
|
79
|
+
children: /*#__PURE__*/_jsx(Video, {
|
|
80
|
+
source: {
|
|
81
|
+
uri: resolveUri(source)
|
|
82
|
+
},
|
|
83
|
+
style: videoStyle,
|
|
84
|
+
resizeMode: resizeMode,
|
|
85
|
+
paused: false,
|
|
86
|
+
onLoadStart: handleLoadStart,
|
|
87
|
+
onLoad: handleLoad,
|
|
88
|
+
onError: handleError,
|
|
89
|
+
onEnd: onEnd,
|
|
90
|
+
controlsStyles: {
|
|
91
|
+
hideForward: true,
|
|
92
|
+
hideDuration: true,
|
|
93
|
+
hideFullscreen: true,
|
|
94
|
+
hidePlayPause: true,
|
|
95
|
+
hideNavigationBarOnFullScreenMode: true,
|
|
96
|
+
hideNotificationBarOnFullScreenMode: true,
|
|
97
|
+
hideNext: true,
|
|
98
|
+
hidePosition: true,
|
|
99
|
+
hidePrevious: true,
|
|
100
|
+
hideRewind: true,
|
|
101
|
+
hideSeekBar: true,
|
|
102
|
+
hideSettingButton: true
|
|
103
|
+
},
|
|
104
|
+
ignoreSilentSwitch: "obey",
|
|
105
|
+
playInBackground: false,
|
|
106
|
+
playWhenInactive: false,
|
|
107
|
+
allowsExternalPlayback: false,
|
|
108
|
+
automaticallyWaitsToMinimizeStalling: true
|
|
109
|
+
})
|
|
110
|
+
})]
|
|
79
111
|
});
|
|
80
112
|
};
|
|
113
|
+
const styles = StyleSheet.create({
|
|
114
|
+
wrapper: {
|
|
115
|
+
overflow: 'hidden'
|
|
116
|
+
},
|
|
117
|
+
blackLayer: {
|
|
118
|
+
...StyleSheet.absoluteFillObject,
|
|
119
|
+
zIndex: 1
|
|
120
|
+
}
|
|
121
|
+
});
|
|
81
122
|
export default /*#__PURE__*/React.memo(SplashVideo);
|
|
82
123
|
//# sourceMappingURL=SplashVideo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useCallback","useState","View","StyleSheet","Animated","Video","Display","useTheme","jsx","_jsx","jsxs","_jsxs","SplashVideo","fullscreen","height","source","resizeMode","width","onEnd","onLoadStart","onLoaded","onError","theme","applyTheme","loaded","setLoaded","fadeAnim","Value","videoStyle","fullWidth","fullHeight","handleLoadStart","setValue","handleLoad","data","timing","toValue","duration","useNativeDriver","start","handleError","e","error","message","console","resolveUri","src","startsWith","style","styles","wrapper","backgroundColor","colors","background","children","blackLayer","opacity","uri","paused","onLoad","controlsStyles","hideForward","hideDuration","hideFullscreen","hidePlayPause","hideNavigationBarOnFullScreenMode","hideNotificationBarOnFullScreenMode","hideNext","hidePosition","hidePrevious","hideRewind","hideSeekBar","hideSettingButton","ignoreSilentSwitch","playInBackground","playWhenInactive","allowsExternalPlayback","automaticallyWaitsToMinimizeStalling","create","overflow","absoluteFillObject","zIndex","memo"],"sourceRoot":"../../../../../../../src","sources":["components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,IAAI,EAAEC,UAAU,EAAE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@@
|
|
|
5
5
|
* @lastModified Fri 13 Jun 2025 at 11:11 AM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import AuthProvider from "./AuthProvider/AuthProvider.js";
|
|
8
9
|
import ForgotPassword from "./ForgotPassword/ForgotPassword.js";
|
|
9
10
|
import LoginWithEmail from "./Login/LoginWithEmail.js";
|
|
10
11
|
import LoginWithPhone from "./Login/LoginWithPhone.js";
|
|
@@ -13,6 +14,7 @@ import QrLogin from "./QrLogin/QrLogin.js";
|
|
|
13
14
|
import SignUp from "./SignUp/SignUp.js";
|
|
14
15
|
import { SplashScreen } from "./SplashScreen/SplashScreen.js";
|
|
15
16
|
const Auth = {
|
|
17
|
+
AuthProvider,
|
|
16
18
|
LoginWithEmail,
|
|
17
19
|
LoginWithPhone,
|
|
18
20
|
SignUp,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ForgotPassword","LoginWithEmail","LoginWithPhone","OTP","QrLogin","SignUp","SplashScreen","Auth"],"sourceRoot":"../../../../src","sources":["components/Auth/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,cAAc,MAAM,oCAAiC;AAC5D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,GAAG,MAAM,cAAW;AAC3B,OAAOC,OAAO,MAAM,sBAAmB;AACvC,OAAOC,MAAM,MAAM,oBAAiB;AACpC,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,MAAMC,IAAI,GAAG;
|
|
1
|
+
{"version":3,"names":["AuthProvider","ForgotPassword","LoginWithEmail","LoginWithPhone","OTP","QrLogin","SignUp","SplashScreen","Auth"],"sourceRoot":"../../../../src","sources":["components/Auth/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,YAAY,MAAM,gCAA6B;AACtD,OAAOC,cAAc,MAAM,oCAAiC;AAC5D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,GAAG,MAAM,cAAW;AAC3B,OAAOC,OAAO,MAAM,sBAAmB;AACvC,OAAOC,MAAM,MAAM,oBAAiB;AACpC,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,MAAMC,IAAI,GAAG;EACXR,YAAY;EACZE,cAAc;EACdC,cAAc;EACdG,MAAM;EACNF,GAAG;EACHH,cAAc;EACdM,YAAY;EACZF;AACF,CAAC;AAED,SAASG,IAAI","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useMemo, useCallback } from 'react';
|
|
4
4
|
import { View, StyleSheet, ImageBackground } from 'react-native';
|
|
5
5
|
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
-
import {
|
|
6
|
+
import { useSplashCache } from "../../hooks/useSplashCache.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
export const BackgroundLayout = props => {
|
|
9
9
|
const {
|
|
@@ -18,9 +18,9 @@ export const BackgroundLayout = props => {
|
|
|
18
18
|
} = props;
|
|
19
19
|
const {
|
|
20
20
|
data: {
|
|
21
|
-
localPathBackground
|
|
21
|
+
backgroundPath: localPathBackground
|
|
22
22
|
}
|
|
23
|
-
} =
|
|
23
|
+
} = useSplashCache({
|
|
24
24
|
backgroundUrl: backgroundImageUri || undefined
|
|
25
25
|
});
|
|
26
26
|
const resolvedImageUri = useMemo(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useCallback","View","StyleSheet","ImageBackground","LinearGradient","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useCallback","View","StyleSheet","ImageBackground","LinearGradient","useSplashCache","jsx","_jsx","jsxs","_jsxs","BackgroundLayout","props","children","backgroundImage","backgroundImageUri","backgroundColor","bgColor","gradientSplitBackground","resizeMode","innerContainerStyle","onImageError","theme","data","backgroundPath","localPathBackground","backgroundUrl","undefined","resolvedImageUri","rawPath","isRemoteUrl","startsWith","containerStyle","styles","container","colors","background","handleImageLoadError","e","console","warn","nativeEvent","error","Error","gradientLocations","gradientColors","backgroundLayoutGradient","count","length","baseSteps","locations","map","step","Math","min","slice","last","Array","fill","renderChildren","style","innerContainer","showBackground","Boolean","showGradient","source","uri","imageContainer","imageStyle","onError","start","x","y","end","gradientOverlay","create","flex","width","height","alignSelf","absoluteFillObject","pointerEvents","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["components/BackgroundLayout/BackgroundLayout.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACnD,SACEC,IAAI,EACJC,UAAU,EACVC,eAAe,QAGV,cAAc;AACrB,OAAOC,cAAc,MAAM,8BAA8B;AAEzD,SAASC,cAAc,QAAQ,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa5D,OAAO,MAAMC,gBAAiD,GAAIC,KAAK,IAAK;EAC1E,MAAM;IACJC,QAAQ;IACRC,eAAe,EAAEC,kBAAkB;IACnCC,eAAe,EAAEC,OAAO;IACxBC,uBAAuB,GAAG,GAAG;IAC7BC,UAAU,GAAG,OAAO;IACpBC,mBAAmB;IACnBC,YAAY;IACZC;EACF,CAAC,GAAGV,KAAK;EAET,MAAM;IACJW,IAAI,EAAE;MAAEC,cAAc,EAAEC;IAAoB;EAC9C,CAAC,GAAGnB,cAAc,CAAC;IACjBoB,aAAa,EAAEX,kBAAkB,IAAIY;EACvC,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAG5B,OAAO,CAAC,MAAM;IACrC,IAAI,CAACe,kBAAkB,EAAE,OAAOY,SAAS;IACzC,MAAME,OAAO,GAAGJ,mBAAmB,IAAIV,kBAAkB;IACzD,MAAMe,WAAW,GACfD,OAAO,CAACE,UAAU,CAAC,SAAS,CAAC,IAAIF,OAAO,CAACE,UAAU,CAAC,UAAU,CAAC;IACjE,OAAOD,WAAW,GAAGD,OAAO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C,CAAC,EAAE;UAAE,CAAE;UACxBC,GAAG,EAAE;YAAEF,CAAC,EAAE,GAAG;YAAEC,CAAC,EAAE;UAAE,CAAE;UACtBZ,KAAK,EAAE3B,MAAM,CAACyC;QAAgB,CAC/B,CACF,EACAf,cAAc;MAAA,CACA;IAAC,CACd,CAAC;EAEX;EAEA,oBAAOnD,IAAA,CAACN,IAAI;IAAC0D,KAAK,EAAE5B,cAAe;IAAAnB,QAAA,EAAE8C;EAAc,CAAO,CAAC;AAC7D,CAAC;AAED,MAAM1B,MAAM,GAAG9B,UAAU,CAACwE,MAAM,CAAC;EAC/BzC,SAAS,EAAE;IACT0C,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDX,cAAc,EAAE;IACdS,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDV,UAAU,EAAE;IACVU,MAAM,EAAE,KAAK;IACbD,KAAK,EAAE,MAAM;IACbE,SAAS,EAAE;EACb,CAAe;EACfL,eAAe,EAAE;IACf,GAAGvE,UAAU,CAAC6E,kBAAkB;IAChCC,aAAa,EAAE;EACjB,CAAC;EACDpB,cAAc,EAAE;IACde,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,MAAM;IACbK,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified Mon 06 Oct 2025 at 03:45 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { TouchableOpacity, ActivityIndicator, StyleSheet, View } from 'react-native';
|
|
10
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import { useTheme } from "../../theme/hook/useTheme.js";
|
|
12
|
+
import { Text } from "../Text/index.js";
|
|
13
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
14
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
export const SecondaryBtn = ({
|
|
16
|
+
title,
|
|
17
|
+
onPress,
|
|
18
|
+
loading = false,
|
|
19
|
+
loadingText = 'Loading...',
|
|
20
|
+
disabled = false,
|
|
21
|
+
containerStyle,
|
|
22
|
+
titleStyle,
|
|
23
|
+
leftIcon,
|
|
24
|
+
theme
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
theme: appliedTheme
|
|
28
|
+
} = useTheme(theme);
|
|
29
|
+
const backgroundColor = disabled || loading ? appliedTheme.colors?.buttonDisabled : appliedTheme.colors?.button;
|
|
30
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
31
|
+
onPress: onPress,
|
|
32
|
+
disabled: disabled || loading,
|
|
33
|
+
activeOpacity: 0.8,
|
|
34
|
+
style: [styles.button, {
|
|
35
|
+
backgroundColor
|
|
36
|
+
}, containerStyle],
|
|
37
|
+
accessibilityRole: "button",
|
|
38
|
+
accessibilityState: {
|
|
39
|
+
disabled: disabled || loading
|
|
40
|
+
},
|
|
41
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
42
|
+
style: styles.row,
|
|
43
|
+
children: [leftIcon && /*#__PURE__*/_jsx(View, {
|
|
44
|
+
style: {
|
|
45
|
+
marginRight: scale(8)
|
|
46
|
+
},
|
|
47
|
+
children: leftIcon
|
|
48
|
+
}), loading ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
49
|
+
children: [/*#__PURE__*/_jsx(ActivityIndicator, {
|
|
50
|
+
color: appliedTheme.colors.buttonText,
|
|
51
|
+
style: {
|
|
52
|
+
marginRight: scale(6)
|
|
53
|
+
}
|
|
54
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
55
|
+
style: [styles.text, {
|
|
56
|
+
color: appliedTheme.colors.buttonText,
|
|
57
|
+
opacity: 0.75
|
|
58
|
+
}, titleStyle],
|
|
59
|
+
children: loadingText
|
|
60
|
+
})]
|
|
61
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
style: [styles.text, {
|
|
63
|
+
color: appliedTheme.colors.buttonText
|
|
64
|
+
}, titleStyle],
|
|
65
|
+
children: title
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
button: {
|
|
72
|
+
width: '100%',
|
|
73
|
+
alignSelf: 'stretch',
|
|
74
|
+
paddingVertical: verticalScale(12),
|
|
75
|
+
paddingHorizontal: scale(16),
|
|
76
|
+
borderRadius: scale(6),
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
justifyContent: 'center'
|
|
79
|
+
},
|
|
80
|
+
row: {
|
|
81
|
+
flexDirection: 'row',
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
justifyContent: 'center'
|
|
84
|
+
},
|
|
85
|
+
text: {
|
|
86
|
+
textAlign: 'center',
|
|
87
|
+
fontSize: RFValue(13),
|
|
88
|
+
fontWeight: '600'
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=SecondaryBtn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","ActivityIndicator","StyleSheet","View","scale","verticalScale","useTheme","Text","RFValue","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SecondaryBtn","title","onPress","loading","loadingText","disabled","containerStyle","titleStyle","leftIcon","theme","appliedTheme","backgroundColor","colors","buttonDisabled","button","activeOpacity","style","styles","accessibilityRole","accessibilityState","children","row","marginRight","color","buttonText","text","opacity","create","width","alignSelf","paddingVertical","paddingHorizontal","borderRadius","alignItems","justifyContent","flexDirection","textAlign","fontSize","fontWeight"],"sourceRoot":"../../../../src","sources":["components/Button/SecondaryBtn.tsx"],"mappings":";;AAAA;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AAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE5C,OAAO,CAAC,EAAE,CAAC;IACrB6C,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
import BackBtn from "./BackBtn.js";
|
|
9
9
|
import { PrimaryBtn } from "./PrimaryBtn.js";
|
|
10
|
+
import { SecondaryBtn } from "./SecondaryBtn.js";
|
|
10
11
|
import TextButton from "./TextButton.js";
|
|
11
12
|
const Button = {
|
|
12
13
|
Primary: PrimaryBtn,
|
|
14
|
+
Secondary: SecondaryBtn,
|
|
13
15
|
BackBtn,
|
|
14
16
|
TextButton
|
|
15
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BackBtn","PrimaryBtn","TextButton","Button","Primary"],"sourceRoot":"../../../../src","sources":["components/Button/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,OAAO,MAAM,cAAW;AAC/B,SAASC,UAAU,QAAQ,iBAAc;AACzC,OAAOC,UAAU,MAAM,iBAAc;AAErC,MAAMC,MAAM,GAAG;EACbC,OAAO,
|
|
1
|
+
{"version":3,"names":["BackBtn","PrimaryBtn","SecondaryBtn","TextButton","Button","Primary","Secondary"],"sourceRoot":"../../../../src","sources":["components/Button/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,OAAO,MAAM,cAAW;AAC/B,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,OAAOC,UAAU,MAAM,iBAAc;AAErC,MAAMC,MAAM,GAAG;EACbC,OAAO,EAAEJ,UAAU;EACnBK,SAAS,EAAEJ,YAAY;EACvBF,OAAO;EACPG;AACF,CAAC;AAED,SAASC,MAAM","ignoreList":[]}
|