@oxyhq/services 5.7.5 → 5.8.2
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/README.md +76 -76
- package/lib/commonjs/core/index.js +177 -102
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/index.js +69 -28
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/Avatar.js +15 -6
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +100 -12
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +58 -13
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +7 -1
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +356 -0
- package/lib/commonjs/ui/components/Header.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +28 -7
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +7 -0
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/commonjs/ui/components/internal/TextField.js +606 -546
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -1
- package/lib/commonjs/ui/components/internal/TextField.md +436 -0
- package/lib/commonjs/ui/context/OxyContext.js +181 -199
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/index.js +6 -0
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js +59 -2
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionSocket.js +5 -2
- package/lib/commonjs/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +11 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +6 -6
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +3 -3
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +241 -598
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +1160 -406
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +135 -237
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +246 -463
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +3 -3
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +808 -650
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +214 -37
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +51 -72
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +11 -29
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +30 -303
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +4 -4
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +90 -0
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +19 -31
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +7 -10
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js +11 -5
- package/lib/commonjs/ui/screens/internal/SignUpIdentityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js +11 -4
- package/lib/commonjs/ui/screens/internal/SignUpSecurityStep.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +9 -6
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -30
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +37 -46
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +9 -12
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +9 -12
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +9 -12
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/authStore.js +36 -6
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +106 -1
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +337 -0
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +11 -0
- package/lib/commonjs/ui/styles/index.js.map +1 -1
- package/lib/module/core/index.js +177 -41
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/index.js +24 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +15 -6
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +101 -13
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +59 -14
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +7 -1
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js +351 -0
- package/lib/module/ui/components/Header.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +30 -9
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/index.js +1 -0
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/internal/TextField.js +607 -547
- package/lib/module/ui/components/internal/TextField.js.map +1 -1
- package/lib/module/ui/components/internal/TextField.md +436 -0
- package/lib/module/ui/context/OxyContext.js +180 -198
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/index.js +1 -1
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js +57 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useSessionSocket.js +5 -2
- package/lib/module/ui/hooks/useSessionSocket.js.map +1 -1
- package/lib/module/ui/navigation/OxyRouter.js +11 -1
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +6 -6
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +3 -3
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +242 -597
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +1161 -407
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +135 -237
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +248 -465
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +3 -3
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +809 -651
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +214 -37
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +53 -74
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +11 -29
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +32 -305
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +5 -5
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +85 -0
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -0
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +19 -31
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +7 -10
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js +11 -5
- package/lib/module/ui/screens/internal/SignUpIdentityStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js +11 -4
- package/lib/module/ui/screens/internal/SignUpSecurityStep.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +9 -6
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -30
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +37 -46
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +9 -12
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +9 -12
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +9 -12
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/stores/authStore.js +36 -6
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +106 -1
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +332 -0
- package/lib/module/ui/styles/authStyles.js.map +1 -0
- package/lib/module/ui/styles/index.js +1 -0
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/typescript/core/index.d.ts +68 -24
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +13 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/Avatar.d.ts.map +1 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +6 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +6 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/ui/components/Header.d.ts +24 -0
- package/lib/typescript/ui/components/Header.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/index.d.ts +1 -0
- package/lib/typescript/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/TextField.d.ts +31 -16
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +5 -2
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/index.d.ts +1 -1
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useFollow.d.ts +20 -0
- package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSessionSocket.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/types.d.ts +9 -2
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +5 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts +15 -0
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts +1 -1
- package/lib/typescript/ui/screens/internal/SignInPasswordStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts +0 -1
- package/lib/typescript/ui/screens/internal/SignInUsernameStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignUpIdentityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/internal/SignUpSecurityStep.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +3 -1
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/ui/stores/followStore.d.ts +10 -0
- package/lib/typescript/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/ui/styles/authStyles.d.ts +326 -0
- package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -0
- package/lib/typescript/ui/styles/index.d.ts +1 -0
- package/lib/typescript/ui/styles/index.d.ts.map +1 -1
- package/package.json +1 -4
- package/src/core/index.ts +195 -41
- package/src/index.ts +64 -4
- package/src/ui/components/Avatar.tsx +11 -5
- package/src/ui/components/FollowButton.tsx +95 -11
- package/src/ui/components/GroupedItem.tsx +57 -9
- package/src/ui/components/GroupedSection.tsx +12 -0
- package/src/ui/components/Header.tsx +405 -0
- package/src/ui/components/OxyProvider.tsx +37 -15
- package/src/ui/components/index.ts +1 -0
- package/src/ui/components/internal/GroupedPillButtons.tsx +1 -1
- package/src/ui/components/internal/TextField.md +436 -0
- package/src/ui/components/internal/TextField.tsx +720 -620
- package/src/ui/context/OxyContext.tsx +211 -195
- package/src/ui/hooks/index.ts +1 -1
- package/src/ui/hooks/useFollow.ts +63 -0
- package/src/ui/hooks/useSessionSocket.ts +5 -2
- package/src/ui/navigation/OxyRouter.tsx +11 -1
- package/src/ui/navigation/types.ts +10 -2
- package/src/ui/screens/AccountCenterScreen.tsx +5 -5
- package/src/ui/screens/AccountManagementDemo.tsx +9 -9
- package/src/ui/screens/AccountOverviewScreen.tsx +265 -414
- package/src/ui/screens/AccountSettingsScreen.tsx +1173 -403
- package/src/ui/screens/AccountSwitcherScreen.tsx +158 -202
- package/src/ui/screens/AppInfoScreen.tsx +270 -497
- package/src/ui/screens/FeedbackScreen.tsx +3 -3
- package/src/ui/screens/PaymentGatewayScreen.tsx +668 -365
- package/src/ui/screens/ProfileScreen.tsx +196 -33
- package/src/ui/screens/RecoverAccountScreen.tsx +46 -74
- package/src/ui/screens/SessionManagementScreen.tsx +14 -22
- package/src/ui/screens/SignInScreen.tsx +27 -294
- package/src/ui/screens/SignUpScreen.tsx +5 -5
- package/src/ui/screens/UserLinksScreen.tsx +96 -0
- package/src/ui/screens/internal/SignInPasswordStep.tsx +11 -22
- package/src/ui/screens/internal/SignInUsernameStep.tsx +3 -10
- package/src/ui/screens/internal/SignUpIdentityStep.tsx +2 -5
- package/src/ui/screens/internal/SignUpSecurityStep.tsx +3 -4
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +9 -2
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +1 -20
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +40 -24
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +9 -3
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +9 -3
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +9 -3
- package/src/ui/stores/authStore.ts +34 -7
- package/src/ui/stores/followStore.ts +102 -1
- package/src/ui/styles/authStyles.ts +352 -0
- package/src/ui/styles/index.ts +1 -0
- package/lib/commonjs/core/auth-manager.js +0 -440
- package/lib/commonjs/core/auth-manager.js.map +0 -1
- package/lib/commonjs/core/use-auth.js +0 -244
- package/lib/commonjs/core/use-auth.js.map +0 -1
- package/lib/module/core/auth-manager.js +0 -432
- package/lib/module/core/auth-manager.js.map +0 -1
- package/lib/module/core/use-auth.js +0 -235
- package/lib/module/core/use-auth.js.map +0 -1
- package/lib/typescript/core/auth-manager.d.ts +0 -136
- package/lib/typescript/core/auth-manager.d.ts.map +0 -1
- package/lib/typescript/core/use-auth.d.ts +0 -79
- package/lib/typescript/core/use-auth.d.ts.map +0 -1
- package/src/__tests__/middleware.test.ts +0 -105
- package/src/__tests__/setup.ts +0 -10
- package/src/__tests__/zero-config-auth.test.ts +0 -607
- package/src/core/auth-manager.ts +0 -500
- package/src/core/use-auth.tsx +0 -245
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { Platform, StyleSheet, TextStyle } from 'react-native';
|
|
2
|
+
import { fontFamilies } from './fonts';
|
|
3
|
+
|
|
4
|
+
export interface AuthThemeColors {
|
|
5
|
+
text: string;
|
|
6
|
+
background: string;
|
|
7
|
+
inputBackground: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
border: string;
|
|
11
|
+
error: string;
|
|
12
|
+
success: string;
|
|
13
|
+
warning: string;
|
|
14
|
+
secondaryText: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const createAuthStyles = (colors: AuthThemeColors, theme: string) => StyleSheet.create({
|
|
18
|
+
// Container styles
|
|
19
|
+
container: {
|
|
20
|
+
flex: 1,
|
|
21
|
+
},
|
|
22
|
+
scrollContent: {
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
paddingHorizontal: 24,
|
|
25
|
+
paddingTop: 4,
|
|
26
|
+
paddingBottom: 20,
|
|
27
|
+
},
|
|
28
|
+
stepContainer: {
|
|
29
|
+
flex: 1,
|
|
30
|
+
justifyContent: 'flex-start',
|
|
31
|
+
alignItems: 'flex-start',
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Header styles
|
|
35
|
+
modernHeader: {
|
|
36
|
+
alignItems: 'flex-start',
|
|
37
|
+
width: '100%',
|
|
38
|
+
marginBottom: 24,
|
|
39
|
+
},
|
|
40
|
+
modernTitle: {
|
|
41
|
+
fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
42
|
+
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
43
|
+
fontSize: 62,
|
|
44
|
+
lineHeight: 74.4, // 62 * 1.2
|
|
45
|
+
marginBottom: 18,
|
|
46
|
+
textAlign: 'left',
|
|
47
|
+
letterSpacing: -1,
|
|
48
|
+
},
|
|
49
|
+
modernSubtitle: {
|
|
50
|
+
fontSize: 18,
|
|
51
|
+
lineHeight: 24,
|
|
52
|
+
textAlign: 'left',
|
|
53
|
+
opacity: 0.8,
|
|
54
|
+
},
|
|
55
|
+
welcomeTitle: {
|
|
56
|
+
fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
57
|
+
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
58
|
+
fontSize: 42,
|
|
59
|
+
lineHeight: 50.4, // 42 * 1.2
|
|
60
|
+
marginBottom: 12,
|
|
61
|
+
textAlign: 'left',
|
|
62
|
+
letterSpacing: -1,
|
|
63
|
+
},
|
|
64
|
+
stepTitle: {
|
|
65
|
+
fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
66
|
+
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
67
|
+
fontSize: 42,
|
|
68
|
+
lineHeight: 50.4, // 42 * 1.2
|
|
69
|
+
marginBottom: 12,
|
|
70
|
+
textAlign: 'left',
|
|
71
|
+
letterSpacing: -1,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
// Info and error cards
|
|
75
|
+
modernInfoCard: {
|
|
76
|
+
flexDirection: 'row',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
padding: 16,
|
|
79
|
+
borderRadius: 16,
|
|
80
|
+
marginBottom: 24,
|
|
81
|
+
gap: 12,
|
|
82
|
+
width: '100%',
|
|
83
|
+
},
|
|
84
|
+
modernInfoText: {
|
|
85
|
+
fontSize: 14,
|
|
86
|
+
flex: 1,
|
|
87
|
+
},
|
|
88
|
+
modernErrorCard: {
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
padding: 16,
|
|
92
|
+
borderRadius: 16,
|
|
93
|
+
marginBottom: 24,
|
|
94
|
+
gap: 12,
|
|
95
|
+
width: '100%',
|
|
96
|
+
},
|
|
97
|
+
errorText: {
|
|
98
|
+
fontSize: 14,
|
|
99
|
+
fontWeight: '500',
|
|
100
|
+
flex: 1,
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
// Input styles
|
|
104
|
+
modernInputContainer: {
|
|
105
|
+
width: '100%',
|
|
106
|
+
marginBottom: 24,
|
|
107
|
+
},
|
|
108
|
+
inputWrapper: {
|
|
109
|
+
flexDirection: 'row',
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
height: 56,
|
|
112
|
+
borderRadius: 16,
|
|
113
|
+
paddingHorizontal: 20,
|
|
114
|
+
borderWidth: 2,
|
|
115
|
+
backgroundColor: colors.inputBackground,
|
|
116
|
+
},
|
|
117
|
+
premiumInputWrapper: {
|
|
118
|
+
flexDirection: 'row',
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
height: 56,
|
|
121
|
+
borderRadius: 16,
|
|
122
|
+
paddingHorizontal: 20,
|
|
123
|
+
borderWidth: 2,
|
|
124
|
+
backgroundColor: colors.inputBackground,
|
|
125
|
+
},
|
|
126
|
+
inputIcon: {
|
|
127
|
+
marginRight: 12,
|
|
128
|
+
},
|
|
129
|
+
inputContent: {
|
|
130
|
+
flex: 1,
|
|
131
|
+
},
|
|
132
|
+
modernInput: {
|
|
133
|
+
flex: 1,
|
|
134
|
+
fontSize: 16,
|
|
135
|
+
height: '100%',
|
|
136
|
+
},
|
|
137
|
+
passwordToggle: {
|
|
138
|
+
padding: 4,
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
// Validation styles
|
|
142
|
+
validationIndicator: {
|
|
143
|
+
marginLeft: 8,
|
|
144
|
+
},
|
|
145
|
+
validationSuccessCard: {
|
|
146
|
+
flexDirection: 'row',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
padding: 12,
|
|
149
|
+
borderRadius: 12,
|
|
150
|
+
marginTop: 8,
|
|
151
|
+
gap: 8,
|
|
152
|
+
},
|
|
153
|
+
validationErrorCard: {
|
|
154
|
+
flexDirection: 'row',
|
|
155
|
+
alignItems: 'center',
|
|
156
|
+
padding: 12,
|
|
157
|
+
borderRadius: 12,
|
|
158
|
+
marginTop: 8,
|
|
159
|
+
gap: 8,
|
|
160
|
+
},
|
|
161
|
+
validationCard: {
|
|
162
|
+
flexDirection: 'row',
|
|
163
|
+
alignItems: 'center',
|
|
164
|
+
padding: 12,
|
|
165
|
+
borderRadius: 12,
|
|
166
|
+
marginTop: 8,
|
|
167
|
+
gap: 8,
|
|
168
|
+
},
|
|
169
|
+
validationText: {
|
|
170
|
+
fontSize: 12,
|
|
171
|
+
fontWeight: '500',
|
|
172
|
+
},
|
|
173
|
+
belowInputMessage: {
|
|
174
|
+
flexDirection: 'row',
|
|
175
|
+
alignItems: 'center',
|
|
176
|
+
marginTop: 4,
|
|
177
|
+
marginBottom: 0,
|
|
178
|
+
gap: 6,
|
|
179
|
+
},
|
|
180
|
+
belowInputText: {
|
|
181
|
+
fontSize: 13,
|
|
182
|
+
fontWeight: '500',
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
// Button styles
|
|
186
|
+
modernButton: {
|
|
187
|
+
flexDirection: 'row',
|
|
188
|
+
alignItems: 'center',
|
|
189
|
+
justifyContent: 'center',
|
|
190
|
+
paddingVertical: 18,
|
|
191
|
+
paddingHorizontal: 32,
|
|
192
|
+
borderRadius: 16,
|
|
193
|
+
marginVertical: 8,
|
|
194
|
+
shadowOffset: {
|
|
195
|
+
width: 0,
|
|
196
|
+
height: 4,
|
|
197
|
+
},
|
|
198
|
+
shadowOpacity: 0.3,
|
|
199
|
+
shadowRadius: 8,
|
|
200
|
+
elevation: 6,
|
|
201
|
+
gap: 8,
|
|
202
|
+
width: '100%',
|
|
203
|
+
},
|
|
204
|
+
modernButtonText: {
|
|
205
|
+
color: '#FFFFFF',
|
|
206
|
+
fontSize: 16,
|
|
207
|
+
fontWeight: '600',
|
|
208
|
+
letterSpacing: 0.5,
|
|
209
|
+
},
|
|
210
|
+
buttonIcon: {
|
|
211
|
+
marginLeft: 4,
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
// Label and link styles
|
|
215
|
+
modernLabel: {
|
|
216
|
+
fontSize: 12,
|
|
217
|
+
fontWeight: '500',
|
|
218
|
+
marginBottom: 2,
|
|
219
|
+
},
|
|
220
|
+
modernLinkText: {
|
|
221
|
+
fontSize: 14,
|
|
222
|
+
lineHeight: 20,
|
|
223
|
+
fontWeight: '600',
|
|
224
|
+
textDecorationLine: 'underline',
|
|
225
|
+
},
|
|
226
|
+
footerTextContainer: {
|
|
227
|
+
flexDirection: 'row',
|
|
228
|
+
justifyContent: 'center',
|
|
229
|
+
marginTop: 16,
|
|
230
|
+
},
|
|
231
|
+
footerText: {
|
|
232
|
+
fontSize: 15,
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
// User profile styles
|
|
236
|
+
modernUserProfileContainer: {
|
|
237
|
+
alignItems: 'flex-start',
|
|
238
|
+
paddingVertical: 24,
|
|
239
|
+
},
|
|
240
|
+
avatarContainer: {
|
|
241
|
+
position: 'relative',
|
|
242
|
+
marginBottom: 20,
|
|
243
|
+
},
|
|
244
|
+
modernUserAvatar: {
|
|
245
|
+
borderWidth: 4,
|
|
246
|
+
borderColor: 'rgba(209, 105, 229, 0.2)',
|
|
247
|
+
},
|
|
248
|
+
statusIndicator: {
|
|
249
|
+
position: 'absolute',
|
|
250
|
+
bottom: 4,
|
|
251
|
+
right: 4,
|
|
252
|
+
width: 20,
|
|
253
|
+
height: 20,
|
|
254
|
+
borderRadius: 10,
|
|
255
|
+
borderWidth: 3,
|
|
256
|
+
borderColor: '#FFFFFF',
|
|
257
|
+
},
|
|
258
|
+
modernUserDisplayName: {
|
|
259
|
+
fontFamily: Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
260
|
+
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
261
|
+
fontSize: 42,
|
|
262
|
+
marginBottom: 4,
|
|
263
|
+
textAlign: 'center',
|
|
264
|
+
letterSpacing: -0.5,
|
|
265
|
+
},
|
|
266
|
+
modernUsernameSubtext: {
|
|
267
|
+
fontSize: 20,
|
|
268
|
+
textAlign: 'left',
|
|
269
|
+
marginBottom: 16,
|
|
270
|
+
opacity: 0.7,
|
|
271
|
+
},
|
|
272
|
+
welcomeBackBadge: {
|
|
273
|
+
flexDirection: 'row',
|
|
274
|
+
alignItems: 'center',
|
|
275
|
+
paddingHorizontal: 12,
|
|
276
|
+
paddingVertical: 6,
|
|
277
|
+
borderRadius: 20,
|
|
278
|
+
gap: 6,
|
|
279
|
+
},
|
|
280
|
+
welcomeBackText: {
|
|
281
|
+
fontSize: 12,
|
|
282
|
+
fontWeight: '600',
|
|
283
|
+
textTransform: 'uppercase',
|
|
284
|
+
letterSpacing: 0.5,
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
// Navigation styles
|
|
288
|
+
modernNavigationButtons: {
|
|
289
|
+
flexDirection: 'row',
|
|
290
|
+
justifyContent: 'center',
|
|
291
|
+
marginTop: 16,
|
|
292
|
+
marginBottom: 8,
|
|
293
|
+
width: '100%',
|
|
294
|
+
gap: 8,
|
|
295
|
+
},
|
|
296
|
+
modernBackButton: {
|
|
297
|
+
flexDirection: 'row',
|
|
298
|
+
alignItems: 'center',
|
|
299
|
+
paddingVertical: 12,
|
|
300
|
+
paddingHorizontal: 20,
|
|
301
|
+
borderRadius: 12,
|
|
302
|
+
borderWidth: 1,
|
|
303
|
+
gap: 8,
|
|
304
|
+
},
|
|
305
|
+
modernBackButtonText: {
|
|
306
|
+
fontSize: 16,
|
|
307
|
+
fontWeight: '500',
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
// Security notice
|
|
311
|
+
securityNotice: {
|
|
312
|
+
flexDirection: 'row',
|
|
313
|
+
alignItems: 'center',
|
|
314
|
+
justifyContent: 'center',
|
|
315
|
+
marginTop: 20,
|
|
316
|
+
gap: 6,
|
|
317
|
+
},
|
|
318
|
+
securityText: {
|
|
319
|
+
fontSize: 12,
|
|
320
|
+
fontWeight: '500',
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
// Welcome image container
|
|
324
|
+
welcomeImageContainer: {
|
|
325
|
+
alignItems: 'center',
|
|
326
|
+
justifyContent: 'center',
|
|
327
|
+
marginVertical: 20,
|
|
328
|
+
},
|
|
329
|
+
welcomeText: {
|
|
330
|
+
fontSize: 18,
|
|
331
|
+
lineHeight: 24,
|
|
332
|
+
textAlign: 'left',
|
|
333
|
+
opacity: 0.8,
|
|
334
|
+
marginBottom: 24,
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
// Success styles
|
|
338
|
+
successCard: {
|
|
339
|
+
flexDirection: 'row',
|
|
340
|
+
alignItems: 'center',
|
|
341
|
+
padding: 16,
|
|
342
|
+
borderRadius: 16,
|
|
343
|
+
marginBottom: 24,
|
|
344
|
+
gap: 12,
|
|
345
|
+
width: '100%',
|
|
346
|
+
},
|
|
347
|
+
successText: {
|
|
348
|
+
fontSize: 14,
|
|
349
|
+
fontWeight: '500',
|
|
350
|
+
flex: 1,
|
|
351
|
+
},
|
|
352
|
+
});
|
package/src/ui/styles/index.ts
CHANGED