@oxyhq/services 5.4.2 → 5.4.4
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 +14 -0
- package/lib/commonjs/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +67 -0
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +53 -0
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/constants/version.js +28 -0
- package/lib/commonjs/constants/version.js.map +1 -0
- package/lib/commonjs/core/index.js +1660 -0
- package/lib/commonjs/core/index.js.map +1 -0
- package/lib/commonjs/index.js +160 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/sonner.js +21 -0
- package/lib/commonjs/lib/sonner.js.map +1 -0
- package/lib/commonjs/models/interfaces.js +2 -0
- package/lib/commonjs/models/interfaces.js.map +1 -0
- package/lib/commonjs/models/secureSession.js +2 -0
- package/lib/commonjs/models/secureSession.js.map +1 -0
- package/lib/commonjs/node/createAuth.js +95 -0
- package/lib/commonjs/node/createAuth.js.map +1 -0
- package/lib/commonjs/node/index.js +63 -0
- package/lib/commonjs/node/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/components/Avatar.js +98 -0
- package/lib/commonjs/ui/components/Avatar.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +246 -0
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
- package/lib/commonjs/ui/components/FontLoader.js +181 -0
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedItem.js +109 -0
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedSection.js +33 -0
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
- package/lib/commonjs/ui/components/OxyLogo.js +56 -0
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +522 -0
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +178 -0
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileCard.js +124 -0
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
- package/lib/commonjs/ui/components/QuickActions.js +87 -0
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
- package/lib/commonjs/ui/components/Section.js +36 -0
- package/lib/commonjs/ui/components/Section.js.map +1 -0
- package/lib/commonjs/ui/components/SectionTitle.js +35 -0
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js +37 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js +27 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/index.js +14 -0
- package/lib/commonjs/ui/components/icon/index.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +97 -0
- package/lib/commonjs/ui/components/index.js.map +1 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +576 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +584 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/index.js +136 -0
- package/lib/commonjs/ui/index.js.map +1 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js +269 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/commonjs/ui/navigation/types.js +6 -0
- package/lib/commonjs/ui/navigation/types.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +313 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +299 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +855 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +843 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +788 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js +664 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +636 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2515 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1620 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +450 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +449 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInScreen.js +882 -0
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js +1036 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +88 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +364 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +227 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +148 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +127 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +105 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/commonjs/ui/store/index.js +52 -0
- package/lib/commonjs/ui/store/index.js.map +1 -0
- package/lib/commonjs/ui/styles/FONTS.md +126 -0
- package/lib/commonjs/ui/styles/fonts.js +84 -0
- package/lib/commonjs/ui/styles/fonts.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +28 -0
- package/lib/commonjs/ui/styles/index.js.map +1 -0
- package/lib/commonjs/ui/styles/theme.js +121 -0
- package/lib/commonjs/ui/styles/theme.js.map +1 -0
- package/lib/commonjs/utils/deviceManager.js +173 -0
- package/lib/commonjs/utils/deviceManager.js.map +1 -0
- package/lib/commonjs/utils/index.js +13 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/polyfills.js +42 -0
- package/lib/commonjs/utils/polyfills.js.map +1 -0
- package/lib/module/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +67 -0
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +46 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/illustrations/HighFive.js +55 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/constants/version.js +21 -0
- package/lib/module/constants/version.js.map +1 -0
- package/lib/module/core/index.js +1634 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/index.js +48 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lib/sonner.js +16 -0
- package/lib/module/lib/sonner.js.map +1 -0
- package/lib/module/models/interfaces.js +2 -0
- package/lib/module/models/interfaces.js.map +1 -0
- package/lib/module/models/secureSession.js +2 -0
- package/lib/module/models/secureSession.js.map +1 -0
- package/lib/module/node/createAuth.js +90 -0
- package/lib/module/node/createAuth.js.map +1 -0
- package/lib/module/node/index.js +27 -0
- package/lib/module/node/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/components/Avatar.js +93 -0
- package/lib/module/ui/components/Avatar.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +241 -0
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/FontLoader.js +176 -0
- package/lib/module/ui/components/FontLoader.js.map +1 -0
- package/lib/module/ui/components/GroupedItem.js +104 -0
- package/lib/module/ui/components/GroupedItem.js.map +1 -0
- package/lib/module/ui/components/GroupedSection.js +28 -0
- package/lib/module/ui/components/GroupedSection.js.map +1 -0
- package/lib/module/ui/components/OxyLogo.js +49 -0
- package/lib/module/ui/components/OxyLogo.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +516 -0
- package/lib/module/ui/components/OxyProvider.js.map +1 -0
- package/lib/module/ui/components/OxySignInButton.js +172 -0
- package/lib/module/ui/components/OxySignInButton.js.map +1 -0
- package/lib/module/ui/components/ProfileCard.js +119 -0
- package/lib/module/ui/components/ProfileCard.js.map +1 -0
- package/lib/module/ui/components/QuickActions.js +82 -0
- package/lib/module/ui/components/QuickActions.js.map +1 -0
- package/lib/module/ui/components/Section.js +31 -0
- package/lib/module/ui/components/Section.js.map +1 -0
- package/lib/module/ui/components/SectionTitle.js +30 -0
- package/lib/module/ui/components/SectionTitle.js.map +1 -0
- package/lib/module/ui/components/bottomSheet/index.js +5 -0
- package/lib/module/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/module/ui/components/icon/OxyIcon.js +22 -0
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/module/ui/components/icon/index.js +4 -0
- package/lib/module/ui/components/icon/index.js.map +1 -0
- package/lib/module/ui/components/index.js +18 -0
- package/lib/module/ui/components/index.js.map +1 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +571 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +579 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/index.js +26 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/navigation/OxyRouter.js +262 -0
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/module/ui/navigation/types.js +4 -0
- package/lib/module/ui/navigation/types.js.map +1 -0
- package/lib/module/ui/screens/AccountCenterScreen.js +308 -0
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountManagementDemo.js +296 -0
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js +849 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +837 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js +782 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/module/ui/screens/AppInfoScreen.js +658 -0
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/module/ui/screens/BillingManagementScreen.js +631 -0
- package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +2510 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1615 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +444 -0
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/SessionManagementScreen.js +444 -0
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInScreen.js +876 -0
- package/lib/module/ui/screens/SignInScreen.js.map +1 -0
- package/lib/module/ui/screens/SignUpScreen.js +1030 -0
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +83 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +358 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +222 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +142 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +122 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +100 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/module/ui/store/index.js +44 -0
- package/lib/module/ui/store/index.js.map +1 -0
- package/lib/module/ui/styles/FONTS.md +126 -0
- package/lib/module/ui/styles/fonts.js +81 -0
- package/lib/module/ui/styles/fonts.js.map +1 -0
- package/lib/module/ui/styles/index.js +5 -0
- package/lib/module/ui/styles/index.js.map +1 -0
- package/lib/module/ui/styles/theme.js +114 -0
- package/lib/module/ui/styles/theme.js.map +1 -0
- package/lib/module/utils/deviceManager.js +167 -0
- package/lib/module/utils/deviceManager.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/polyfills.js +36 -0
- package/lib/module/utils/polyfills.js.map +1 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/constants/version.d.ts +14 -0
- package/lib/typescript/constants/version.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +603 -0
- package/lib/typescript/core/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +20 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/lib/sonner.d.ts +6 -0
- package/lib/typescript/lib/sonner.d.ts.map +1 -0
- package/lib/typescript/models/interfaces.d.ts +179 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -0
- package/lib/typescript/models/secureSession.d.ts +27 -0
- package/lib/typescript/models/secureSession.d.ts.map +1 -0
- package/lib/typescript/node/createAuth.d.ts +7 -0
- package/lib/typescript/node/createAuth.d.ts.map +1 -0
- package/lib/typescript/node/index.d.ts +13 -0
- package/lib/typescript/node/index.d.ts.map +1 -0
- package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
- package/lib/typescript/types/express.d.ts +5 -0
- package/lib/typescript/types/react-redux.d.ts +5 -0
- package/lib/typescript/ui/components/Avatar.d.ts +62 -0
- package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts +92 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
- package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts +17 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts +19 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts +12 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts +70 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts +20 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
- package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
- package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
- package/lib/typescript/ui/components/Section.d.ts +11 -0
- package/lib/typescript/ui/components/Section.d.ts.map +1 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +4 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/index.d.ts +3 -0
- package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/index.d.ts +13 -0
- package/lib/typescript/ui/components/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +42 -0
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +17 -0
- package/lib/typescript/ui/index.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +5 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/types.d.ts +116 -0
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +8 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
- package/lib/typescript/ui/store/index.d.ts +19 -0
- package/lib/typescript/ui/store/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/fonts.d.ts +21 -0
- package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/ui/styles/index.d.ts +3 -0
- package/lib/typescript/ui/styles/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/theme.d.ts +68 -0
- package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
- package/lib/typescript/utils/deviceManager.d.ts +66 -0
- package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/polyfills.d.ts +6 -0
- package/lib/typescript/utils/polyfills.d.ts.map +1 -0
- package/package.json +7 -6
- package/src/assets/illustrations/HighFive.tsx +41 -0
- package/src/node/createAuth.ts +116 -0
- package/src/node/index.ts +4 -0
- package/src/types/expo-vector-icons.d.ts +3 -0
- package/src/types/express.d.ts +5 -0
- package/src/types/react-redux.d.ts +5 -0
- package/src/ui/components/OxyProvider.tsx +136 -135
- package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
- package/src/ui/components/internal/TextField.tsx +694 -0
- package/src/ui/index.ts +6 -2
- package/src/ui/navigation/OxyRouter.tsx +8 -3
- package/src/ui/screens/FeedbackScreen.tsx +1042 -0
- package/src/ui/screens/SignInScreen.tsx +179 -222
- package/src/ui/screens/SignUpScreen.tsx +772 -608
- package/src/ui/store/index.ts +51 -0
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _OxyContext = require("../context/OxyContext");
|
|
10
|
+
var _styles = require("../styles");
|
|
11
|
+
var _Avatar = _interopRequireDefault(require("../components/Avatar"));
|
|
12
|
+
var _vectorIcons = require("@expo/vector-icons");
|
|
13
|
+
var _HighFive = _interopRequireDefault(require("../../assets/illustrations/HighFive"));
|
|
14
|
+
var _sonner = require("../../lib/sonner");
|
|
15
|
+
var _GroupedPillButtons = _interopRequireDefault(require("../components/internal/GroupedPillButtons"));
|
|
16
|
+
var _TextField = _interopRequireDefault(require("../components/internal/TextField"));
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
|
+
const SignInScreen = ({
|
|
21
|
+
navigate,
|
|
22
|
+
goBack,
|
|
23
|
+
onAuthenticated,
|
|
24
|
+
theme
|
|
25
|
+
}) => {
|
|
26
|
+
// Form data states
|
|
27
|
+
const [username, setUsername] = (0, _react.useState)('');
|
|
28
|
+
const [password, setPassword] = (0, _react.useState)('');
|
|
29
|
+
const [errorMessage, setErrorMessage] = (0, _react.useState)('');
|
|
30
|
+
const [userProfile, setUserProfile] = (0, _react.useState)(null);
|
|
31
|
+
const [showPassword, setShowPassword] = (0, _react.useState)(false);
|
|
32
|
+
|
|
33
|
+
// Multi-step form states
|
|
34
|
+
const [currentStep, setCurrentStep] = (0, _react.useState)(0);
|
|
35
|
+
const [isInputFocused, setIsInputFocused] = (0, _react.useState)(false);
|
|
36
|
+
const [isValidating, setIsValidating] = (0, _react.useState)(false);
|
|
37
|
+
const [validationStatus, setValidationStatus] = (0, _react.useState)('idle');
|
|
38
|
+
|
|
39
|
+
// Cache for validation results to prevent repeated API calls
|
|
40
|
+
const validationCache = (0, _react.useRef)(new Map());
|
|
41
|
+
const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
42
|
+
const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
43
|
+
const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
44
|
+
const inputScaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
45
|
+
const logoAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
46
|
+
const progressAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0.5)).current;
|
|
47
|
+
const {
|
|
48
|
+
login,
|
|
49
|
+
isLoading,
|
|
50
|
+
user,
|
|
51
|
+
isAuthenticated,
|
|
52
|
+
sessions,
|
|
53
|
+
oxyServices
|
|
54
|
+
} = (0, _OxyContext.useOxy)();
|
|
55
|
+
const colors = (0, _styles.useThemeColors)(theme);
|
|
56
|
+
const commonStyles = (0, _styles.createCommonStyles)(theme);
|
|
57
|
+
|
|
58
|
+
// Check if this should be treated as "Add Account" mode
|
|
59
|
+
const isAddAccountMode = (0, _react.useMemo)(() => user && isAuthenticated && sessions && sessions.length > 0, [user, isAuthenticated, sessions]);
|
|
60
|
+
|
|
61
|
+
// Memoized styles to prevent rerenders
|
|
62
|
+
const styles = (0, _react.useMemo)(() => createStyles(colors, theme), [colors, theme]);
|
|
63
|
+
|
|
64
|
+
// Initialize logo animation
|
|
65
|
+
(0, _react.useEffect)(() => {
|
|
66
|
+
_reactNative.Animated.spring(logoAnim, {
|
|
67
|
+
toValue: 1,
|
|
68
|
+
tension: 50,
|
|
69
|
+
friction: 8,
|
|
70
|
+
useNativeDriver: true
|
|
71
|
+
}).start();
|
|
72
|
+
}, [logoAnim]);
|
|
73
|
+
|
|
74
|
+
// Input focus animations
|
|
75
|
+
const handleInputFocus = (0, _react.useCallback)(() => {
|
|
76
|
+
setIsInputFocused(true);
|
|
77
|
+
_reactNative.Animated.spring(inputScaleAnim, {
|
|
78
|
+
toValue: 1.02,
|
|
79
|
+
useNativeDriver: true
|
|
80
|
+
}).start();
|
|
81
|
+
}, [inputScaleAnim]);
|
|
82
|
+
const handleInputBlur = (0, _react.useCallback)(() => {
|
|
83
|
+
setIsInputFocused(false);
|
|
84
|
+
_reactNative.Animated.spring(inputScaleAnim, {
|
|
85
|
+
toValue: 1,
|
|
86
|
+
useNativeDriver: true
|
|
87
|
+
}).start();
|
|
88
|
+
}, [inputScaleAnim]);
|
|
89
|
+
|
|
90
|
+
// Memoized input change handlers to prevent re-renders
|
|
91
|
+
const handleUsernameChange = (0, _react.useCallback)(text => {
|
|
92
|
+
setUsername(text);
|
|
93
|
+
// Only clear error if we're changing from an invalid state
|
|
94
|
+
if (validationStatus === 'invalid') {
|
|
95
|
+
setErrorMessage('');
|
|
96
|
+
setValidationStatus('idle');
|
|
97
|
+
}
|
|
98
|
+
}, [validationStatus]);
|
|
99
|
+
const handlePasswordChange = (0, _react.useCallback)(text => {
|
|
100
|
+
setPassword(text);
|
|
101
|
+
setErrorMessage(''); // Clear error when user types
|
|
102
|
+
}, []);
|
|
103
|
+
|
|
104
|
+
// Username validation using core services with caching
|
|
105
|
+
const validateUsername = (0, _react.useCallback)(async usernameToValidate => {
|
|
106
|
+
if (!usernameToValidate || usernameToValidate.length < 3) {
|
|
107
|
+
setValidationStatus('invalid');
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Check cache first (cache valid for 5 minutes)
|
|
112
|
+
const cached = validationCache.current.get(usernameToValidate);
|
|
113
|
+
const now = Date.now();
|
|
114
|
+
if (cached && now - cached.timestamp < 5 * 60 * 1000) {
|
|
115
|
+
setUserProfile(cached.profile);
|
|
116
|
+
setValidationStatus('valid');
|
|
117
|
+
setErrorMessage('');
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
setIsValidating(true);
|
|
121
|
+
setValidationStatus('validating');
|
|
122
|
+
try {
|
|
123
|
+
// First check if username exists by trying to get profile
|
|
124
|
+
const profile = await oxyServices.getUserProfileByUsername(usernameToValidate);
|
|
125
|
+
if (profile) {
|
|
126
|
+
const profileData = {
|
|
127
|
+
displayName: profile.name?.full || profile.name?.first || profile.username,
|
|
128
|
+
name: profile.username,
|
|
129
|
+
avatar: profile.avatar,
|
|
130
|
+
id: profile.id
|
|
131
|
+
};
|
|
132
|
+
setUserProfile(profileData);
|
|
133
|
+
setValidationStatus('valid');
|
|
134
|
+
setErrorMessage(''); // Clear any previous errors
|
|
135
|
+
|
|
136
|
+
// Cache the result
|
|
137
|
+
validationCache.current.set(usernameToValidate, {
|
|
138
|
+
profile: profileData,
|
|
139
|
+
timestamp: now
|
|
140
|
+
});
|
|
141
|
+
return true;
|
|
142
|
+
} else {
|
|
143
|
+
setValidationStatus('invalid');
|
|
144
|
+
setErrorMessage('Username not found. Please check your username or sign up.');
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
} catch (error) {
|
|
148
|
+
// If user not found (404), username doesn't exist
|
|
149
|
+
if (error.status === 404 || error.code === 'USER_NOT_FOUND') {
|
|
150
|
+
setValidationStatus('invalid');
|
|
151
|
+
setErrorMessage('Username not found. Please check your username or sign up.');
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// For other errors, show generic message
|
|
156
|
+
console.error('Username validation error:', error);
|
|
157
|
+
setValidationStatus('invalid');
|
|
158
|
+
setErrorMessage('Unable to validate username. Please try again.');
|
|
159
|
+
return false;
|
|
160
|
+
} finally {
|
|
161
|
+
setIsValidating(false);
|
|
162
|
+
}
|
|
163
|
+
}, [oxyServices]);
|
|
164
|
+
|
|
165
|
+
// Debounced username validation - increased debounce time and added better conditions
|
|
166
|
+
(0, _react.useEffect)(() => {
|
|
167
|
+
if (!username || username.length < 3) {
|
|
168
|
+
setValidationStatus('idle');
|
|
169
|
+
setUserProfile(null);
|
|
170
|
+
setErrorMessage(''); // Clear error when input is too short
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Only validate if we haven't already validated this exact username
|
|
175
|
+
if (validationStatus === 'valid' && userProfile?.name === username) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const timeoutId = setTimeout(() => {
|
|
179
|
+
validateUsername(username);
|
|
180
|
+
}, 800); // Increased debounce to 800ms
|
|
181
|
+
|
|
182
|
+
return () => clearTimeout(timeoutId);
|
|
183
|
+
}, [username, validateUsername, validationStatus, userProfile?.name]);
|
|
184
|
+
|
|
185
|
+
// Cleanup cache on unmount and limit cache size
|
|
186
|
+
(0, _react.useEffect)(() => {
|
|
187
|
+
return () => {
|
|
188
|
+
// Clear cache on unmount
|
|
189
|
+
validationCache.current.clear();
|
|
190
|
+
};
|
|
191
|
+
}, []);
|
|
192
|
+
|
|
193
|
+
// Clean up old cache entries periodically (older than 10 minutes)
|
|
194
|
+
(0, _react.useEffect)(() => {
|
|
195
|
+
const cleanupInterval = setInterval(() => {
|
|
196
|
+
const now = Date.now();
|
|
197
|
+
const maxAge = 10 * 60 * 1000; // 10 minutes
|
|
198
|
+
|
|
199
|
+
for (const [key, value] of validationCache.current.entries()) {
|
|
200
|
+
if (now - value.timestamp > maxAge) {
|
|
201
|
+
validationCache.current.delete(key);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// Limit cache size to 50 entries
|
|
206
|
+
if (validationCache.current.size > 50) {
|
|
207
|
+
const entries = Array.from(validationCache.current.entries());
|
|
208
|
+
entries.sort((a, b) => a[1].timestamp - b[1].timestamp);
|
|
209
|
+
const toDelete = entries.slice(0, entries.length - 50);
|
|
210
|
+
toDelete.forEach(([key]) => validationCache.current.delete(key));
|
|
211
|
+
}
|
|
212
|
+
}, 5 * 60 * 1000); // Clean up every 5 minutes
|
|
213
|
+
|
|
214
|
+
return () => clearInterval(cleanupInterval);
|
|
215
|
+
}, []);
|
|
216
|
+
|
|
217
|
+
// Animation functions
|
|
218
|
+
const animateTransition = (0, _react.useCallback)(nextStep => {
|
|
219
|
+
// Scale down current content
|
|
220
|
+
_reactNative.Animated.timing(scaleAnim, {
|
|
221
|
+
toValue: 0.95,
|
|
222
|
+
duration: 150,
|
|
223
|
+
useNativeDriver: true
|
|
224
|
+
}).start();
|
|
225
|
+
|
|
226
|
+
// Fade out
|
|
227
|
+
_reactNative.Animated.timing(fadeAnim, {
|
|
228
|
+
toValue: 0,
|
|
229
|
+
duration: 200,
|
|
230
|
+
useNativeDriver: true
|
|
231
|
+
}).start(() => {
|
|
232
|
+
setCurrentStep(nextStep);
|
|
233
|
+
|
|
234
|
+
// Reset animations
|
|
235
|
+
slideAnim.setValue(-50);
|
|
236
|
+
scaleAnim.setValue(0.95);
|
|
237
|
+
|
|
238
|
+
// Animate in new content
|
|
239
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
240
|
+
toValue: 1,
|
|
241
|
+
duration: 300,
|
|
242
|
+
useNativeDriver: true
|
|
243
|
+
}), _reactNative.Animated.spring(slideAnim, {
|
|
244
|
+
toValue: 0,
|
|
245
|
+
tension: 80,
|
|
246
|
+
friction: 8,
|
|
247
|
+
useNativeDriver: true
|
|
248
|
+
}), _reactNative.Animated.spring(scaleAnim, {
|
|
249
|
+
toValue: 1,
|
|
250
|
+
tension: 80,
|
|
251
|
+
friction: 8,
|
|
252
|
+
useNativeDriver: true
|
|
253
|
+
})]).start();
|
|
254
|
+
});
|
|
255
|
+
}, [fadeAnim, slideAnim, scaleAnim]);
|
|
256
|
+
const nextStep = (0, _react.useCallback)(() => {
|
|
257
|
+
if (currentStep < 1) {
|
|
258
|
+
// Animate progress bar
|
|
259
|
+
_reactNative.Animated.timing(progressAnim, {
|
|
260
|
+
toValue: 1.0,
|
|
261
|
+
duration: 300,
|
|
262
|
+
useNativeDriver: false
|
|
263
|
+
}).start();
|
|
264
|
+
animateTransition(currentStep + 1);
|
|
265
|
+
}
|
|
266
|
+
}, [currentStep, progressAnim, animateTransition]);
|
|
267
|
+
const prevStep = (0, _react.useCallback)(() => {
|
|
268
|
+
if (currentStep > 0) {
|
|
269
|
+
// Animate progress bar
|
|
270
|
+
_reactNative.Animated.timing(progressAnim, {
|
|
271
|
+
toValue: 0.5,
|
|
272
|
+
duration: 300,
|
|
273
|
+
useNativeDriver: false
|
|
274
|
+
}).start();
|
|
275
|
+
animateTransition(currentStep - 1);
|
|
276
|
+
}
|
|
277
|
+
}, [currentStep, progressAnim, animateTransition]);
|
|
278
|
+
|
|
279
|
+
// Custom next handlers for validation
|
|
280
|
+
const handleUsernameContinue = (0, _react.useCallback)(() => {
|
|
281
|
+
if (!username) {
|
|
282
|
+
_sonner.toast.error('Please enter your username.');
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
if (validationStatus !== 'valid' || !userProfile) {
|
|
286
|
+
_sonner.toast.error('Please enter a valid username.');
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
setErrorMessage('');
|
|
290
|
+
nextStep();
|
|
291
|
+
}, [username, validationStatus, userProfile, setErrorMessage, nextStep]);
|
|
292
|
+
const handleSignIn = (0, _react.useCallback)(async () => {
|
|
293
|
+
if (!password) {
|
|
294
|
+
_sonner.toast.error('Please enter your password.');
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (!username || !userProfile) {
|
|
298
|
+
_sonner.toast.error('Please enter a valid username first.');
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
try {
|
|
302
|
+
setErrorMessage('');
|
|
303
|
+
const user = await login(username, password);
|
|
304
|
+
if (onAuthenticated) {
|
|
305
|
+
onAuthenticated(user);
|
|
306
|
+
}
|
|
307
|
+
} catch (error) {
|
|
308
|
+
_sonner.toast.error(error.message || 'Login failed');
|
|
309
|
+
}
|
|
310
|
+
}, [username, password, login, onAuthenticated, setErrorMessage, userProfile]);
|
|
311
|
+
|
|
312
|
+
// Memoized step components
|
|
313
|
+
const renderUsernameStep = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
314
|
+
style: [styles.stepContainer, {
|
|
315
|
+
opacity: fadeAnim,
|
|
316
|
+
transform: [{
|
|
317
|
+
translateX: slideAnim
|
|
318
|
+
}, {
|
|
319
|
+
scale: scaleAnim
|
|
320
|
+
}]
|
|
321
|
+
}],
|
|
322
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HighFive.default, {
|
|
323
|
+
width: 100,
|
|
324
|
+
height: 100
|
|
325
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
326
|
+
style: styles.modernHeader,
|
|
327
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
328
|
+
style: [styles.modernTitle, {
|
|
329
|
+
color: colors.text
|
|
330
|
+
}],
|
|
331
|
+
children: isAddAccountMode ? 'Add Another Account' : 'Sign In'
|
|
332
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
333
|
+
style: [styles.modernSubtitle, {
|
|
334
|
+
color: colors.secondaryText
|
|
335
|
+
}],
|
|
336
|
+
children: isAddAccountMode ? 'Sign in with another account' : 'Sign in to continue your journey'
|
|
337
|
+
})]
|
|
338
|
+
}), isAddAccountMode && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
339
|
+
style: [styles.modernInfoCard, {
|
|
340
|
+
backgroundColor: colors.inputBackground
|
|
341
|
+
}],
|
|
342
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
343
|
+
name: "information-circle",
|
|
344
|
+
size: 20,
|
|
345
|
+
color: colors.primary
|
|
346
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
347
|
+
style: [styles.modernInfoText, {
|
|
348
|
+
color: colors.text
|
|
349
|
+
}],
|
|
350
|
+
children: ["Currently signed in as ", /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
351
|
+
style: {
|
|
352
|
+
fontWeight: 'bold'
|
|
353
|
+
},
|
|
354
|
+
children: user?.username
|
|
355
|
+
})]
|
|
356
|
+
})]
|
|
357
|
+
}), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
358
|
+
style: [styles.modernErrorCard, {
|
|
359
|
+
backgroundColor: '#FF6B6B20'
|
|
360
|
+
}],
|
|
361
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
362
|
+
name: "alert-circle",
|
|
363
|
+
size: 20,
|
|
364
|
+
color: "#FF6B6B"
|
|
365
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
366
|
+
style: [styles.errorText, {
|
|
367
|
+
color: '#FF6B6B'
|
|
368
|
+
}],
|
|
369
|
+
children: errorMessage
|
|
370
|
+
})]
|
|
371
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
372
|
+
style: [styles.modernInputContainer, {
|
|
373
|
+
transform: [{
|
|
374
|
+
scale: inputScaleAnim
|
|
375
|
+
}]
|
|
376
|
+
}],
|
|
377
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
378
|
+
label: "Username",
|
|
379
|
+
icon: "person-outline",
|
|
380
|
+
value: username,
|
|
381
|
+
onChangeText: handleUsernameChange,
|
|
382
|
+
onFocus: handleInputFocus,
|
|
383
|
+
onBlur: handleInputBlur,
|
|
384
|
+
autoCapitalize: "none",
|
|
385
|
+
autoCorrect: false,
|
|
386
|
+
testID: "username-input",
|
|
387
|
+
colors: colors,
|
|
388
|
+
variant: "filled",
|
|
389
|
+
error: validationStatus === 'invalid' && username.length >= 3 ? 'Username not found' : undefined,
|
|
390
|
+
loading: validationStatus === 'validating',
|
|
391
|
+
success: validationStatus === 'valid'
|
|
392
|
+
})
|
|
393
|
+
}), validationStatus === 'valid' && userProfile && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
394
|
+
style: [styles.validationSuccessCard, {
|
|
395
|
+
backgroundColor: colors.success + '10',
|
|
396
|
+
borderWidth: 1,
|
|
397
|
+
borderColor: colors.success + '30',
|
|
398
|
+
padding: 16
|
|
399
|
+
}],
|
|
400
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
401
|
+
style: {
|
|
402
|
+
width: 32,
|
|
403
|
+
height: 32,
|
|
404
|
+
borderRadius: 16,
|
|
405
|
+
backgroundColor: colors.success + '20',
|
|
406
|
+
justifyContent: 'center',
|
|
407
|
+
alignItems: 'center',
|
|
408
|
+
marginRight: 12
|
|
409
|
+
},
|
|
410
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
411
|
+
name: "checkmark-circle",
|
|
412
|
+
size: 16,
|
|
413
|
+
color: colors.success
|
|
414
|
+
})
|
|
415
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
416
|
+
style: {
|
|
417
|
+
flex: 1
|
|
418
|
+
},
|
|
419
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
420
|
+
style: [styles.validationText, {
|
|
421
|
+
color: colors.success,
|
|
422
|
+
fontWeight: '600',
|
|
423
|
+
marginBottom: 2
|
|
424
|
+
}],
|
|
425
|
+
children: ["Welcome back, ", userProfile?.displayName || userProfile?.name || username, "!"]
|
|
426
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
427
|
+
style: [styles.validationText, {
|
|
428
|
+
color: colors.secondaryText,
|
|
429
|
+
fontSize: 11,
|
|
430
|
+
opacity: 0.8
|
|
431
|
+
}],
|
|
432
|
+
children: "Ready to continue where you left off"
|
|
433
|
+
})]
|
|
434
|
+
})]
|
|
435
|
+
}), validationStatus === 'invalid' && username.length >= 3 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
436
|
+
style: [styles.validationErrorCard, {
|
|
437
|
+
backgroundColor: colors.error + '10',
|
|
438
|
+
borderWidth: 1,
|
|
439
|
+
borderColor: colors.error + '30',
|
|
440
|
+
padding: 16
|
|
441
|
+
}],
|
|
442
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
443
|
+
style: {
|
|
444
|
+
width: 32,
|
|
445
|
+
height: 32,
|
|
446
|
+
borderRadius: 16,
|
|
447
|
+
backgroundColor: colors.error + '20',
|
|
448
|
+
justifyContent: 'center',
|
|
449
|
+
alignItems: 'center',
|
|
450
|
+
marginRight: 12
|
|
451
|
+
},
|
|
452
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
453
|
+
name: "alert-circle",
|
|
454
|
+
size: 16,
|
|
455
|
+
color: colors.error
|
|
456
|
+
})
|
|
457
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
458
|
+
style: {
|
|
459
|
+
flex: 1
|
|
460
|
+
},
|
|
461
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
462
|
+
style: [styles.validationText, {
|
|
463
|
+
color: colors.error,
|
|
464
|
+
fontWeight: '600',
|
|
465
|
+
marginBottom: 2
|
|
466
|
+
}],
|
|
467
|
+
children: "Username not found"
|
|
468
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
469
|
+
style: [styles.validationText, {
|
|
470
|
+
color: colors.secondaryText,
|
|
471
|
+
fontSize: 11,
|
|
472
|
+
opacity: 0.8
|
|
473
|
+
}],
|
|
474
|
+
children: "Check spelling or sign up"
|
|
475
|
+
})]
|
|
476
|
+
})]
|
|
477
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
478
|
+
buttons: [{
|
|
479
|
+
text: 'Sign Up',
|
|
480
|
+
onPress: () => navigate('SignUp'),
|
|
481
|
+
icon: 'person-add',
|
|
482
|
+
variant: 'transparent'
|
|
483
|
+
}, {
|
|
484
|
+
text: 'Continue',
|
|
485
|
+
onPress: handleUsernameContinue,
|
|
486
|
+
icon: 'arrow-forward',
|
|
487
|
+
variant: 'primary',
|
|
488
|
+
loading: isValidating,
|
|
489
|
+
testID: 'username-next-button'
|
|
490
|
+
}],
|
|
491
|
+
colors: colors
|
|
492
|
+
})]
|
|
493
|
+
}), [fadeAnim, slideAnim, scaleAnim, colors, isAddAccountMode, user?.username, errorMessage, inputScaleAnim, isInputFocused, username, validationStatus, userProfile, isValidating, handleInputFocus, handleInputBlur, handleUsernameChange, handleUsernameContinue, navigate, styles]);
|
|
494
|
+
const renderPasswordStep = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
495
|
+
style: [styles.stepContainer, {
|
|
496
|
+
opacity: fadeAnim,
|
|
497
|
+
transform: [{
|
|
498
|
+
translateX: slideAnim
|
|
499
|
+
}, {
|
|
500
|
+
scale: scaleAnim
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
504
|
+
style: styles.modernUserProfileContainer,
|
|
505
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
506
|
+
style: [styles.avatarContainer, {
|
|
507
|
+
transform: [{
|
|
508
|
+
scale: logoAnim
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
512
|
+
uri: userProfile?.avatar,
|
|
513
|
+
name: userProfile?.displayName || userProfile?.name || username,
|
|
514
|
+
size: 100,
|
|
515
|
+
theme: theme,
|
|
516
|
+
style: styles.modernUserAvatar
|
|
517
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
518
|
+
style: [styles.statusIndicator, {
|
|
519
|
+
backgroundColor: colors.primary
|
|
520
|
+
}]
|
|
521
|
+
})]
|
|
522
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
523
|
+
style: [styles.modernUserDisplayName, {
|
|
524
|
+
color: colors.text
|
|
525
|
+
}],
|
|
526
|
+
children: userProfile?.displayName || userProfile?.name || username
|
|
527
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
528
|
+
style: [styles.modernUsernameSubtext, {
|
|
529
|
+
color: colors.secondaryText
|
|
530
|
+
}],
|
|
531
|
+
children: ["@", username]
|
|
532
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
533
|
+
style: [styles.welcomeBackBadge, {
|
|
534
|
+
backgroundColor: colors.primary + '15'
|
|
535
|
+
}],
|
|
536
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
537
|
+
name: "checkmark-circle",
|
|
538
|
+
size: 16,
|
|
539
|
+
color: colors.primary
|
|
540
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
541
|
+
style: [styles.welcomeBackText, {
|
|
542
|
+
color: colors.primary
|
|
543
|
+
}],
|
|
544
|
+
children: "Welcome back!"
|
|
545
|
+
})]
|
|
546
|
+
})]
|
|
547
|
+
}), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
548
|
+
style: [styles.modernErrorCard, {
|
|
549
|
+
backgroundColor: '#FF6B6B20'
|
|
550
|
+
}],
|
|
551
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
552
|
+
name: "alert-circle",
|
|
553
|
+
size: 20,
|
|
554
|
+
color: "#FF6B6B"
|
|
555
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
556
|
+
style: [styles.errorText, {
|
|
557
|
+
color: '#FF6B6B'
|
|
558
|
+
}],
|
|
559
|
+
children: errorMessage
|
|
560
|
+
})]
|
|
561
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
562
|
+
style: [styles.modernInputContainer, {
|
|
563
|
+
transform: [{
|
|
564
|
+
scale: inputScaleAnim
|
|
565
|
+
}]
|
|
566
|
+
}],
|
|
567
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, {
|
|
568
|
+
label: "Password",
|
|
569
|
+
icon: "lock-closed-outline",
|
|
570
|
+
value: password,
|
|
571
|
+
onChangeText: handlePasswordChange,
|
|
572
|
+
onFocus: handleInputFocus,
|
|
573
|
+
onBlur: handleInputBlur,
|
|
574
|
+
secureTextEntry: !showPassword,
|
|
575
|
+
autoCapitalize: "none",
|
|
576
|
+
autoCorrect: false,
|
|
577
|
+
testID: "password-input",
|
|
578
|
+
colors: colors,
|
|
579
|
+
variant: "filled",
|
|
580
|
+
error: errorMessage
|
|
581
|
+
})
|
|
582
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedPillButtons.default, {
|
|
583
|
+
buttons: [{
|
|
584
|
+
text: 'Back',
|
|
585
|
+
onPress: prevStep,
|
|
586
|
+
icon: 'arrow-back',
|
|
587
|
+
variant: 'transparent'
|
|
588
|
+
}, {
|
|
589
|
+
text: 'Sign In',
|
|
590
|
+
onPress: handleSignIn,
|
|
591
|
+
icon: 'log-in',
|
|
592
|
+
variant: 'primary',
|
|
593
|
+
loading: isLoading,
|
|
594
|
+
testID: 'login-button'
|
|
595
|
+
}],
|
|
596
|
+
colors: colors
|
|
597
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
598
|
+
style: styles.securityNotice,
|
|
599
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
600
|
+
name: "shield-checkmark",
|
|
601
|
+
size: 14,
|
|
602
|
+
color: colors.secondaryText
|
|
603
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
604
|
+
style: [styles.securityText, {
|
|
605
|
+
color: colors.secondaryText
|
|
606
|
+
}],
|
|
607
|
+
children: "Your data is encrypted and secure"
|
|
608
|
+
})]
|
|
609
|
+
})]
|
|
610
|
+
}), [fadeAnim, slideAnim, scaleAnim, colors, userProfile, username, theme, logoAnim, errorMessage, inputScaleAnim, isInputFocused, password, showPassword, handleInputFocus, handleInputBlur, handlePasswordChange, handleSignIn, isLoading, prevStep, styles]);
|
|
611
|
+
const renderCurrentStep = (0, _react.useCallback)(() => {
|
|
612
|
+
switch (currentStep) {
|
|
613
|
+
case 0:
|
|
614
|
+
return renderUsernameStep;
|
|
615
|
+
case 1:
|
|
616
|
+
return renderPasswordStep;
|
|
617
|
+
default:
|
|
618
|
+
return renderUsernameStep;
|
|
619
|
+
}
|
|
620
|
+
}, [currentStep, renderUsernameStep, renderPasswordStep]);
|
|
621
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.KeyboardAvoidingView, {
|
|
622
|
+
style: [styles.container, {
|
|
623
|
+
backgroundColor: colors.background
|
|
624
|
+
}],
|
|
625
|
+
behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : 'height',
|
|
626
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.StatusBar, {
|
|
627
|
+
barStyle: theme === 'dark' ? 'light-content' : 'dark-content',
|
|
628
|
+
backgroundColor: colors.background
|
|
629
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
630
|
+
contentContainerStyle: styles.scrollContent,
|
|
631
|
+
showsVerticalScrollIndicator: false,
|
|
632
|
+
keyboardShouldPersistTaps: "handled",
|
|
633
|
+
children: renderCurrentStep()
|
|
634
|
+
})]
|
|
635
|
+
});
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
// Memoized styles creation
|
|
639
|
+
const createStyles = (colors, theme) => _reactNative.StyleSheet.create({
|
|
640
|
+
container: {
|
|
641
|
+
flex: 1
|
|
642
|
+
},
|
|
643
|
+
scrollContent: {
|
|
644
|
+
flexGrow: 1,
|
|
645
|
+
paddingHorizontal: 24,
|
|
646
|
+
paddingTop: 4,
|
|
647
|
+
paddingBottom: 20
|
|
648
|
+
},
|
|
649
|
+
stepContainer: {
|
|
650
|
+
flex: 1,
|
|
651
|
+
justifyContent: 'flex-start',
|
|
652
|
+
alignItems: 'flex-start'
|
|
653
|
+
},
|
|
654
|
+
modernHeader: {
|
|
655
|
+
alignItems: 'flex-start',
|
|
656
|
+
width: '100%',
|
|
657
|
+
marginBottom: 24
|
|
658
|
+
},
|
|
659
|
+
modernTitle: {
|
|
660
|
+
fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
|
|
661
|
+
fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
|
|
662
|
+
fontSize: 62,
|
|
663
|
+
lineHeight: 48,
|
|
664
|
+
marginBottom: 18,
|
|
665
|
+
textAlign: 'left',
|
|
666
|
+
letterSpacing: -1
|
|
667
|
+
},
|
|
668
|
+
modernSubtitle: {
|
|
669
|
+
fontSize: 18,
|
|
670
|
+
lineHeight: 24,
|
|
671
|
+
textAlign: 'left',
|
|
672
|
+
opacity: 0.8
|
|
673
|
+
},
|
|
674
|
+
modernInfoCard: {
|
|
675
|
+
flexDirection: 'row',
|
|
676
|
+
alignItems: 'center',
|
|
677
|
+
padding: 16,
|
|
678
|
+
borderRadius: 16,
|
|
679
|
+
marginBottom: 24,
|
|
680
|
+
gap: 12,
|
|
681
|
+
width: '100%'
|
|
682
|
+
},
|
|
683
|
+
modernInfoText: {
|
|
684
|
+
fontSize: 14,
|
|
685
|
+
flex: 1
|
|
686
|
+
},
|
|
687
|
+
modernErrorCard: {
|
|
688
|
+
flexDirection: 'row',
|
|
689
|
+
alignItems: 'center',
|
|
690
|
+
padding: 16,
|
|
691
|
+
borderRadius: 16,
|
|
692
|
+
marginBottom: 24,
|
|
693
|
+
gap: 12,
|
|
694
|
+
width: '100%'
|
|
695
|
+
},
|
|
696
|
+
errorText: {
|
|
697
|
+
fontSize: 14,
|
|
698
|
+
fontWeight: '500',
|
|
699
|
+
flex: 1
|
|
700
|
+
},
|
|
701
|
+
modernInputContainer: {
|
|
702
|
+
width: '100%',
|
|
703
|
+
marginBottom: 24
|
|
704
|
+
},
|
|
705
|
+
inputWrapper: {
|
|
706
|
+
flexDirection: 'row',
|
|
707
|
+
alignItems: 'center',
|
|
708
|
+
height: 56,
|
|
709
|
+
borderRadius: 16,
|
|
710
|
+
paddingHorizontal: 20,
|
|
711
|
+
borderWidth: 2,
|
|
712
|
+
backgroundColor: colors.inputBackground
|
|
713
|
+
},
|
|
714
|
+
inputIcon: {
|
|
715
|
+
marginRight: 12
|
|
716
|
+
},
|
|
717
|
+
modernInput: {
|
|
718
|
+
flex: 1,
|
|
719
|
+
fontSize: 16,
|
|
720
|
+
height: '100%'
|
|
721
|
+
},
|
|
722
|
+
passwordToggle: {
|
|
723
|
+
padding: 4
|
|
724
|
+
},
|
|
725
|
+
validationIndicator: {
|
|
726
|
+
marginLeft: 8
|
|
727
|
+
},
|
|
728
|
+
validationSuccessCard: {
|
|
729
|
+
flexDirection: 'row',
|
|
730
|
+
alignItems: 'center',
|
|
731
|
+
padding: 12,
|
|
732
|
+
borderRadius: 12,
|
|
733
|
+
marginTop: 8,
|
|
734
|
+
gap: 8
|
|
735
|
+
},
|
|
736
|
+
validationErrorCard: {
|
|
737
|
+
flexDirection: 'row',
|
|
738
|
+
alignItems: 'center',
|
|
739
|
+
padding: 12,
|
|
740
|
+
borderRadius: 12,
|
|
741
|
+
marginTop: 8,
|
|
742
|
+
gap: 8
|
|
743
|
+
},
|
|
744
|
+
validationText: {
|
|
745
|
+
fontSize: 12,
|
|
746
|
+
fontWeight: '500'
|
|
747
|
+
},
|
|
748
|
+
modernButton: {
|
|
749
|
+
flexDirection: 'row',
|
|
750
|
+
alignItems: 'center',
|
|
751
|
+
justifyContent: 'center',
|
|
752
|
+
paddingVertical: 18,
|
|
753
|
+
paddingHorizontal: 32,
|
|
754
|
+
borderRadius: 16,
|
|
755
|
+
marginVertical: 8,
|
|
756
|
+
shadowOffset: {
|
|
757
|
+
width: 0,
|
|
758
|
+
height: 4
|
|
759
|
+
},
|
|
760
|
+
shadowOpacity: 0.3,
|
|
761
|
+
shadowRadius: 8,
|
|
762
|
+
elevation: 6,
|
|
763
|
+
gap: 8,
|
|
764
|
+
width: '100%'
|
|
765
|
+
},
|
|
766
|
+
modernButtonText: {
|
|
767
|
+
color: '#FFFFFF',
|
|
768
|
+
fontSize: 16,
|
|
769
|
+
fontWeight: '600',
|
|
770
|
+
letterSpacing: 0.5
|
|
771
|
+
},
|
|
772
|
+
buttonIcon: {
|
|
773
|
+
marginLeft: 4
|
|
774
|
+
},
|
|
775
|
+
// Enhanced Label Styles
|
|
776
|
+
modernLabel: {
|
|
777
|
+
fontSize: 12,
|
|
778
|
+
fontWeight: '500',
|
|
779
|
+
marginBottom: 2
|
|
780
|
+
},
|
|
781
|
+
modernLinkText: {
|
|
782
|
+
fontSize: 14,
|
|
783
|
+
lineHeight: 20,
|
|
784
|
+
fontWeight: '600',
|
|
785
|
+
textDecorationLine: 'underline'
|
|
786
|
+
},
|
|
787
|
+
footerTextContainer: {
|
|
788
|
+
flexDirection: 'row',
|
|
789
|
+
justifyContent: 'center',
|
|
790
|
+
marginTop: 16
|
|
791
|
+
},
|
|
792
|
+
footerText: {
|
|
793
|
+
fontSize: 15
|
|
794
|
+
},
|
|
795
|
+
// Modern User Profile Styles
|
|
796
|
+
modernUserProfileContainer: {
|
|
797
|
+
alignItems: 'center',
|
|
798
|
+
marginBottom: 32,
|
|
799
|
+
paddingVertical: 24
|
|
800
|
+
},
|
|
801
|
+
avatarContainer: {
|
|
802
|
+
position: 'relative',
|
|
803
|
+
marginBottom: 20
|
|
804
|
+
},
|
|
805
|
+
modernUserAvatar: {
|
|
806
|
+
borderWidth: 4,
|
|
807
|
+
borderColor: 'rgba(209, 105, 229, 0.2)'
|
|
808
|
+
},
|
|
809
|
+
statusIndicator: {
|
|
810
|
+
position: 'absolute',
|
|
811
|
+
bottom: 4,
|
|
812
|
+
right: 4,
|
|
813
|
+
width: 20,
|
|
814
|
+
height: 20,
|
|
815
|
+
borderRadius: 10,
|
|
816
|
+
borderWidth: 3,
|
|
817
|
+
borderColor: '#FFFFFF'
|
|
818
|
+
},
|
|
819
|
+
modernUserDisplayName: {
|
|
820
|
+
fontSize: 26,
|
|
821
|
+
fontWeight: '700',
|
|
822
|
+
marginBottom: 4,
|
|
823
|
+
textAlign: 'center',
|
|
824
|
+
letterSpacing: -0.5
|
|
825
|
+
},
|
|
826
|
+
modernUsernameSubtext: {
|
|
827
|
+
fontSize: 16,
|
|
828
|
+
textAlign: 'center',
|
|
829
|
+
marginBottom: 16,
|
|
830
|
+
opacity: 0.7
|
|
831
|
+
},
|
|
832
|
+
welcomeBackBadge: {
|
|
833
|
+
flexDirection: 'row',
|
|
834
|
+
alignItems: 'center',
|
|
835
|
+
paddingHorizontal: 12,
|
|
836
|
+
paddingVertical: 6,
|
|
837
|
+
borderRadius: 20,
|
|
838
|
+
gap: 6
|
|
839
|
+
},
|
|
840
|
+
welcomeBackText: {
|
|
841
|
+
fontSize: 12,
|
|
842
|
+
fontWeight: '600',
|
|
843
|
+
textTransform: 'uppercase',
|
|
844
|
+
letterSpacing: 0.5
|
|
845
|
+
},
|
|
846
|
+
// Modern Navigation
|
|
847
|
+
modernNavigationButtons: {
|
|
848
|
+
flexDirection: 'row',
|
|
849
|
+
justifyContent: 'center',
|
|
850
|
+
marginTop: 16,
|
|
851
|
+
marginBottom: 8,
|
|
852
|
+
width: '100%',
|
|
853
|
+
gap: 8
|
|
854
|
+
},
|
|
855
|
+
modernBackButton: {
|
|
856
|
+
flexDirection: 'row',
|
|
857
|
+
alignItems: 'center',
|
|
858
|
+
paddingVertical: 12,
|
|
859
|
+
paddingHorizontal: 20,
|
|
860
|
+
borderRadius: 12,
|
|
861
|
+
borderWidth: 1,
|
|
862
|
+
gap: 8
|
|
863
|
+
},
|
|
864
|
+
modernBackButtonText: {
|
|
865
|
+
fontSize: 16,
|
|
866
|
+
fontWeight: '500'
|
|
867
|
+
},
|
|
868
|
+
// Security Notice
|
|
869
|
+
securityNotice: {
|
|
870
|
+
flexDirection: 'row',
|
|
871
|
+
alignItems: 'center',
|
|
872
|
+
justifyContent: 'center',
|
|
873
|
+
marginTop: 20,
|
|
874
|
+
gap: 6
|
|
875
|
+
},
|
|
876
|
+
securityText: {
|
|
877
|
+
fontSize: 12,
|
|
878
|
+
fontWeight: '500'
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
var _default = exports.default = SignInScreen;
|
|
882
|
+
//# sourceMappingURL=SignInScreen.js.map
|