@oxyhq/services 5.21.6 → 5.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +201 -2
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/commonjs/core/HttpService.js +87 -2
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +3 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +67 -22
- package/lib/commonjs/crypto/keyManager.js.map +1 -1
- package/lib/commonjs/i18n/locales/en-US.json +3 -3
- package/lib/commonjs/i18n/locales/es-ES.json +240 -19
- package/lib/commonjs/index.js +66 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/Avatar.js +1 -1
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +1 -1
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +34 -34
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +4 -4
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js +1 -1
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +2 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +57 -0
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js +17 -17
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +7 -7
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +177 -0
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -123
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +2 -0
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +273 -1820
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +2 -2
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +640 -0
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +41 -23
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +3 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +5 -4
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/fonts.js +27 -27
- package/lib/commonjs/ui/styles/fonts.js.map +1 -1
- package/lib/commonjs/ui/styles/theme.js +3 -3
- package/lib/commonjs/ui/styles/theme.js.map +1 -1
- package/lib/commonjs/ui/utils/authHelpers.js +164 -0
- package/lib/commonjs/ui/utils/authHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/avatarUtils.js +18 -61
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/web.js +682 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/lib/module/core/HttpService.js +87 -2
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +3 -1
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/crypto/keyManager.js +67 -22
- package/lib/module/crypto/keyManager.js.map +1 -1
- package/lib/module/i18n/locales/en-US.json +3 -3
- package/lib/module/i18n/locales/es-ES.json +240 -19
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +1 -1
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +34 -34
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/Header.js +4 -4
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +1 -1
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +2 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +1 -1
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.js +2 -1
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +2 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +50 -0
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
- package/lib/module/ui/components/fileManagement/styles.js +17 -17
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +7 -7
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +173 -0
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +10 -122
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +2 -32
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +2 -31
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js +72 -0
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +2 -0
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +13 -5
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +277 -1824
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +3 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +2 -2
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +635 -0
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +41 -23
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -3
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +4 -2
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +3 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +11 -12
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +12 -4
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +15 -5
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +3 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +2 -4
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +5 -4
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/fonts.js +27 -27
- package/lib/module/ui/styles/fonts.js.map +1 -1
- package/lib/module/ui/styles/theme.js +3 -3
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/ui/utils/authHelpers.js +154 -0
- package/lib/module/ui/utils/authHelpers.js.map +1 -0
- package/lib/module/ui/utils/avatarUtils.js +18 -61
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/web.js +75 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts +5 -0
- package/lib/typescript/commonjs/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +6 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +54 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -0
- package/lib/typescript/module/core/HttpService.d.ts +5 -0
- package/lib/typescript/module/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +6 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +76 -0
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts +13 -0
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/styles/fonts.d.ts +7 -7
- package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/authHelpers.d.ts +99 -0
- package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +54 -0
- package/lib/typescript/module/web.d.ts.map +1 -0
- package/package.json +27 -41
- package/src/assets/fonts/Inter/Inter_18pt-Black.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Light.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/src/assets/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/src/core/HttpService.ts +91 -0
- package/src/core/mixins/OxyServices.assets.ts +1 -1
- package/src/crypto/keyManager.ts +23 -22
- package/src/i18n/locales/en-US.json +3 -3
- package/src/i18n/locales/es-ES.json +240 -19
- package/src/index.ts +25 -0
- package/src/ui/components/Avatar.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +1 -1
- package/src/ui/components/FontLoader.tsx +34 -34
- package/src/ui/components/Header.tsx +4 -4
- package/src/ui/components/OxyPayButton.tsx +1 -1
- package/src/ui/components/OxySignInButton.tsx +2 -1
- package/src/ui/components/ProfileCard.tsx +1 -1
- package/src/ui/components/SectionTitle.tsx +1 -1
- package/src/ui/components/StepBasedScreen.tsx +2 -1
- package/src/ui/components/feedback/feedbackStyles.ts +2 -1
- package/src/ui/components/fileManagement/AnimatedButton.tsx +56 -0
- package/src/ui/components/fileManagement/styles.ts +17 -17
- package/src/ui/components/payment/paymentStyles.ts +7 -7
- package/src/ui/hooks/mutations/mutationFactory.ts +215 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +48 -136
- package/src/ui/hooks/queries/useAccountQueries.ts +6 -33
- package/src/ui/hooks/queries/useServicesQueries.ts +6 -32
- package/src/ui/hooks/useFileFiltering.ts +115 -0
- package/src/ui/navigation/routes.ts +3 -0
- package/src/ui/screens/AccountCenterScreen.tsx +4 -2
- package/src/ui/screens/AccountOverviewScreen.tsx +13 -5
- package/src/ui/screens/AccountSettingsScreen.tsx +35 -1511
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
- package/src/ui/screens/AccountVerificationScreen.tsx +3 -1
- package/src/ui/screens/AppInfoScreen.tsx +2 -2
- package/src/ui/screens/EditProfileFieldScreen.tsx +685 -0
- package/src/ui/screens/FileManagementScreen.tsx +35 -17
- package/src/ui/screens/HistoryViewScreen.tsx +9 -3
- package/src/ui/screens/LanguageSelectorScreen.tsx +4 -2
- package/src/ui/screens/LegalDocumentsScreen.tsx +3 -1
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +11 -13
- package/src/ui/screens/PrivacySettingsScreen.tsx +12 -4
- package/src/ui/screens/SearchSettingsScreen.tsx +3 -1
- package/src/ui/screens/SessionManagementScreen.tsx +15 -5
- package/src/ui/screens/UserLinksScreen.tsx +3 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +2 -1
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -8
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +3 -3
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +3 -3
- package/src/ui/styles/authStyles.ts +4 -4
- package/src/ui/styles/fonts.ts +26 -26
- package/src/ui/styles/theme.ts +3 -5
- package/src/ui/utils/authHelpers.ts +183 -0
- package/src/ui/utils/avatarUtils.ts +25 -65
- package/src/web.ts +230 -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/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/ui/components/profile/EditBioModal.js +0 -181
- package/lib/commonjs/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +0 -204
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditEmailModal.js +0 -184
- package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditFieldModal.js +0 -412
- package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLinksModal.js +0 -315
- package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditLocationModal.js +0 -273
- package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js +0 -180
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +0 -1
- 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/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/ui/components/profile/EditBioModal.js +0 -175
- package/lib/module/ui/components/profile/EditBioModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditDisplayNameModal.js +0 -198
- package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditEmailModal.js +0 -178
- package/lib/module/ui/components/profile/EditEmailModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditFieldModal.js +0 -406
- package/lib/module/ui/components/profile/EditFieldModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLinksModal.js +0 -309
- package/lib/module/ui/components/profile/EditLinksModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditLocationModal.js +0 -267
- package/lib/module/ui/components/profile/EditLocationModal.js.map +0 -1
- package/lib/module/ui/components/profile/EditUsernameModal.js +0 -174
- package/lib/module/ui/components/profile/EditUsernameModal.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/commonjs/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts +0 -12
- package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +0 -110
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts +0 -18
- package/lib/typescript/module/ui/components/profile/EditLinksModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +0 -20
- package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts +0 -11
- package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +0 -1
- package/src/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/src/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/src/ui/components/profile/EditBioModal.tsx +0 -184
- package/src/ui/components/profile/EditDisplayNameModal.tsx +0 -203
- package/src/ui/components/profile/EditEmailModal.tsx +0 -188
- package/src/ui/components/profile/EditFieldModal.tsx +0 -465
- package/src/ui/components/profile/EditLinksModal.tsx +0 -316
- package/src/ui/components/profile/EditLocationModal.tsx +0 -278
- package/src/ui/components/profile/EditUsernameModal.tsx +0 -183
|
@@ -4,25 +4,25 @@ import { Platform } from 'react-native';
|
|
|
4
4
|
import * as Font from 'expo-font';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Get the
|
|
7
|
+
* Get the Inter font sources for both native and web environments
|
|
8
8
|
* This is specifically designed to work when distributed as an npm package
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const getInterFonts = () => {
|
|
11
11
|
try {
|
|
12
12
|
// For both development and when used as a package
|
|
13
13
|
// Load all static font weights
|
|
14
14
|
return {
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
15
|
+
'Inter-Light': require('../../assets/fonts/Inter/Inter_18pt-Light.ttf'),
|
|
16
|
+
'Inter-Regular': require('../../assets/fonts/Inter/Inter_18pt-Regular.ttf'),
|
|
17
|
+
'Inter-Medium': require('../../assets/fonts/Inter/Inter_18pt-Medium.ttf'),
|
|
18
|
+
'Inter-SemiBold': require('../../assets/fonts/Inter/Inter_18pt-SemiBold.ttf'),
|
|
19
|
+
'Inter-Bold': require('../../assets/fonts/Inter/Inter_18pt-Bold.ttf'),
|
|
20
|
+
'Inter-ExtraBold': require('../../assets/fonts/Inter/Inter_18pt-ExtraBold.ttf'),
|
|
21
|
+
'Inter-Black': require('../../assets/fonts/Inter/Inter_18pt-Black.ttf'),
|
|
22
22
|
};
|
|
23
23
|
} catch (error) {
|
|
24
24
|
if (__DEV__) {
|
|
25
|
-
console.warn('Failed to load
|
|
25
|
+
console.warn('Failed to load Inter fonts:', error);
|
|
26
26
|
}
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
@@ -44,14 +44,14 @@ export const FontLoader = ({
|
|
|
44
44
|
const loadFonts = async () => {
|
|
45
45
|
try {
|
|
46
46
|
// Get all the font weights
|
|
47
|
-
const
|
|
47
|
+
const interFonts = getInterFonts();
|
|
48
48
|
|
|
49
|
-
if (!
|
|
50
|
-
throw new Error('
|
|
49
|
+
if (!interFonts) {
|
|
50
|
+
throw new Error('Inter font files not found');
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
// Load all the static
|
|
54
|
-
await Font.loadAsync(
|
|
53
|
+
// Load all the static Inter fonts with their respective weights
|
|
54
|
+
await Font.loadAsync(interFonts);
|
|
55
55
|
|
|
56
56
|
setFontState('loaded');
|
|
57
57
|
} catch (error) {
|
|
@@ -82,10 +82,10 @@ export const FontLoader = ({
|
|
|
82
82
|
*/
|
|
83
83
|
export const setupFonts = async () => {
|
|
84
84
|
try {
|
|
85
|
-
const
|
|
85
|
+
const interFonts = getInterFonts();
|
|
86
86
|
|
|
87
|
-
if (!
|
|
88
|
-
throw new Error('
|
|
87
|
+
if (!interFonts) {
|
|
88
|
+
throw new Error('Inter font files not found');
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
if (Platform.OS === 'web') {
|
|
@@ -97,44 +97,44 @@ export const setupFonts = async () => {
|
|
|
97
97
|
// Define @font-face rules for each font weight
|
|
98
98
|
const fontFaceRules = `
|
|
99
99
|
@font-face {
|
|
100
|
-
font-family: '
|
|
101
|
-
src: url(${
|
|
100
|
+
font-family: 'Inter';
|
|
101
|
+
src: url(${interFonts['Inter-Light']}) format('truetype');
|
|
102
102
|
font-weight: 300;
|
|
103
103
|
font-style: normal;
|
|
104
104
|
}
|
|
105
105
|
@font-face {
|
|
106
|
-
font-family: '
|
|
107
|
-
src: url(${
|
|
106
|
+
font-family: 'Inter';
|
|
107
|
+
src: url(${interFonts['Inter-Regular']}) format('truetype');
|
|
108
108
|
font-weight: 400;
|
|
109
109
|
font-style: normal;
|
|
110
110
|
}
|
|
111
111
|
@font-face {
|
|
112
|
-
font-family: '
|
|
113
|
-
src: url(${
|
|
112
|
+
font-family: 'Inter';
|
|
113
|
+
src: url(${interFonts['Inter-Medium']}) format('truetype');
|
|
114
114
|
font-weight: 500;
|
|
115
115
|
font-style: normal;
|
|
116
116
|
}
|
|
117
117
|
@font-face {
|
|
118
|
-
font-family: '
|
|
119
|
-
src: url(${
|
|
118
|
+
font-family: 'Inter';
|
|
119
|
+
src: url(${interFonts['Inter-SemiBold']}) format('truetype');
|
|
120
120
|
font-weight: 600;
|
|
121
121
|
font-style: normal;
|
|
122
122
|
}
|
|
123
123
|
@font-face {
|
|
124
|
-
font-family: '
|
|
125
|
-
src: url(${
|
|
124
|
+
font-family: 'Inter';
|
|
125
|
+
src: url(${interFonts['Inter-Bold']}) format('truetype');
|
|
126
126
|
font-weight: 700;
|
|
127
127
|
font-style: normal;
|
|
128
128
|
}
|
|
129
129
|
@font-face {
|
|
130
|
-
font-family: '
|
|
131
|
-
src: url(${
|
|
130
|
+
font-family: 'Inter';
|
|
131
|
+
src: url(${interFonts['Inter-ExtraBold']}) format('truetype');
|
|
132
132
|
font-weight: 800;
|
|
133
133
|
font-style: normal;
|
|
134
134
|
}
|
|
135
135
|
@font-face {
|
|
136
|
-
font-family: '
|
|
137
|
-
src: url(${
|
|
136
|
+
font-family: 'Inter';
|
|
137
|
+
src: url(${interFonts['Inter-Black']}) format('truetype');
|
|
138
138
|
font-weight: 900;
|
|
139
139
|
font-style: normal;
|
|
140
140
|
}
|
|
@@ -143,12 +143,12 @@ export const setupFonts = async () => {
|
|
|
143
143
|
style.textContent = fontFaceRules;
|
|
144
144
|
document.head.appendChild(style);
|
|
145
145
|
if (__DEV__) {
|
|
146
|
-
console.info('All
|
|
146
|
+
console.info('All Inter web fonts have been dynamically loaded');
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
} else {
|
|
150
150
|
// Attempt to load the fonts anyway (this works if the consumer has linked the assets)
|
|
151
|
-
await Font.loadAsync(
|
|
151
|
+
await Font.loadAsync(interFonts);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
return true;
|
|
@@ -417,14 +417,14 @@ const styles = StyleSheet.create({
|
|
|
417
417
|
titleDefault: {
|
|
418
418
|
fontSize: 18,
|
|
419
419
|
fontWeight: '700',
|
|
420
|
-
fontFamily: fontFamilies.
|
|
420
|
+
fontFamily: fontFamilies.interBold,
|
|
421
421
|
letterSpacing: -0.5,
|
|
422
422
|
lineHeight: 22,
|
|
423
423
|
},
|
|
424
424
|
titleLarge: {
|
|
425
425
|
fontSize: 28,
|
|
426
426
|
fontWeight: '800',
|
|
427
|
-
fontFamily: fontFamilies.
|
|
427
|
+
fontFamily: fontFamilies.interExtraBold,
|
|
428
428
|
letterSpacing: -1,
|
|
429
429
|
lineHeight: 34,
|
|
430
430
|
marginBottom: 3,
|
|
@@ -432,7 +432,7 @@ const styles = StyleSheet.create({
|
|
|
432
432
|
titleMinimal: {
|
|
433
433
|
fontSize: 16,
|
|
434
434
|
fontWeight: '600',
|
|
435
|
-
fontFamily: fontFamilies.
|
|
435
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
436
436
|
letterSpacing: -0.3,
|
|
437
437
|
lineHeight: 20,
|
|
438
438
|
},
|
|
@@ -486,7 +486,7 @@ const styles = StyleSheet.create({
|
|
|
486
486
|
actionText: {
|
|
487
487
|
fontSize: 14,
|
|
488
488
|
fontWeight: '600',
|
|
489
|
-
fontFamily: fontFamilies.
|
|
489
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
490
490
|
letterSpacing: -0.2,
|
|
491
491
|
},
|
|
492
492
|
loadingContainer: {
|
|
@@ -2,6 +2,7 @@ import type React from 'react';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { TouchableOpacity, Text, View, StyleSheet, type ViewStyle, type TextStyle, type StyleProp, Platform } from 'react-native';
|
|
4
4
|
import { useAuth } from '../hooks/useAuth';
|
|
5
|
+
import { fontFamilies } from '../styles/fonts';
|
|
5
6
|
import OxyLogo from './OxyLogo';
|
|
6
7
|
|
|
7
8
|
export interface OxySignInButtonProps {
|
|
@@ -198,7 +199,7 @@ const styles = StyleSheet.create({
|
|
|
198
199
|
justifyContent: 'center',
|
|
199
200
|
},
|
|
200
201
|
text: {
|
|
201
|
-
fontFamily:
|
|
202
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
202
203
|
fontWeight: Platform.OS === 'web' ? '600' : undefined,
|
|
203
204
|
fontSize: 16,
|
|
204
205
|
marginLeft: 10,
|
|
@@ -10,6 +10,7 @@ import Animated, {
|
|
|
10
10
|
withTiming,
|
|
11
11
|
} from 'react-native-reanimated';
|
|
12
12
|
import { useThemeColors, createAuthStyles } from '../styles';
|
|
13
|
+
import { fontFamilies } from '../styles/fonts';
|
|
13
14
|
import type { BaseScreenProps, StepController } from '../types/navigation';
|
|
14
15
|
import type { RouteName } from '../types/navigation';
|
|
15
16
|
import { screenContentStyle } from '../constants/spacing';
|
|
@@ -139,7 +140,7 @@ const StepBasedScreen: React.FC<StepBasedScreenProps> = ({
|
|
|
139
140
|
marginBottom: 24,
|
|
140
141
|
},
|
|
141
142
|
modernTitle: {
|
|
142
|
-
fontFamily:
|
|
143
|
+
fontFamily: fontFamilies.interBold,
|
|
143
144
|
fontWeight: Platform.OS === 'web' ? 'bold' as const : undefined,
|
|
144
145
|
fontSize: 42,
|
|
145
146
|
lineHeight: 50.4, // 42 * 1.2
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StyleSheet, Platform, Dimensions } from 'react-native';
|
|
2
2
|
import { screenContentStyle } from '../../constants/spacing';
|
|
3
|
+
import { fontFamilies } from '../../styles/fonts';
|
|
3
4
|
import type { FeedbackColors } from './types';
|
|
4
5
|
|
|
5
6
|
export const createFeedbackStyles = (colors: FeedbackColors) => StyleSheet.create({
|
|
@@ -25,7 +26,7 @@ export const createFeedbackStyles = (colors: FeedbackColors) => StyleSheet.creat
|
|
|
25
26
|
marginBottom: 24,
|
|
26
27
|
},
|
|
27
28
|
stepTitle: {
|
|
28
|
-
fontFamily:
|
|
29
|
+
fontFamily: fontFamilies.interBold,
|
|
29
30
|
fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
|
|
30
31
|
fontSize: 42,
|
|
31
32
|
lineHeight: 48,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { TouchableOpacity, Animated, Easing } from 'react-native';
|
|
3
|
+
// @ts-ignore - MaterialCommunityIcons is available at runtime
|
|
4
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
5
|
+
|
|
6
|
+
interface AnimatedButtonProps {
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
onPress: () => void;
|
|
9
|
+
icon: string;
|
|
10
|
+
primaryColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
style: any;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Animated button component for smooth selection transitions
|
|
17
|
+
* Used in file management views for view mode toggles
|
|
18
|
+
*/
|
|
19
|
+
export const AnimatedButton: React.FC<AnimatedButtonProps> = ({
|
|
20
|
+
isSelected,
|
|
21
|
+
onPress,
|
|
22
|
+
icon,
|
|
23
|
+
primaryColor,
|
|
24
|
+
textColor,
|
|
25
|
+
style,
|
|
26
|
+
}) => {
|
|
27
|
+
const animatedValue = useRef(new Animated.Value(isSelected ? 1 : 0)).current;
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
Animated.timing(animatedValue, {
|
|
31
|
+
toValue: isSelected ? 1 : 0,
|
|
32
|
+
duration: 200,
|
|
33
|
+
easing: Easing.out(Easing.ease),
|
|
34
|
+
useNativeDriver: false,
|
|
35
|
+
}).start();
|
|
36
|
+
}, [isSelected, animatedValue]);
|
|
37
|
+
|
|
38
|
+
const backgroundColor = animatedValue.interpolate({
|
|
39
|
+
inputRange: [0, 1],
|
|
40
|
+
outputRange: ['transparent', primaryColor],
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<TouchableOpacity onPress={onPress} activeOpacity={0.7}>
|
|
45
|
+
<Animated.View style={[style, { backgroundColor }]}>
|
|
46
|
+
<Animated.View>
|
|
47
|
+
<MaterialCommunityIcons
|
|
48
|
+
name={icon as any}
|
|
49
|
+
size={16}
|
|
50
|
+
color={isSelected ? '#FFFFFF' : textColor}
|
|
51
|
+
/>
|
|
52
|
+
</Animated.View>
|
|
53
|
+
</Animated.View>
|
|
54
|
+
</TouchableOpacity>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
@@ -50,14 +50,14 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
50
50
|
headerTitle: {
|
|
51
51
|
fontSize: 22,
|
|
52
52
|
fontWeight: '700',
|
|
53
|
-
fontFamily: fontFamilies.
|
|
53
|
+
fontFamily: fontFamilies.interBold,
|
|
54
54
|
letterSpacing: -0.5,
|
|
55
55
|
lineHeight: 28,
|
|
56
56
|
},
|
|
57
57
|
headerSubtitle: {
|
|
58
58
|
fontSize: 13,
|
|
59
59
|
fontWeight: '500',
|
|
60
|
-
fontFamily: fontFamilies.
|
|
60
|
+
fontFamily: fontFamilies.interMedium,
|
|
61
61
|
marginTop: 2,
|
|
62
62
|
letterSpacing: 0.2,
|
|
63
63
|
},
|
|
@@ -133,7 +133,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
133
133
|
searchInput: {
|
|
134
134
|
flex: 1,
|
|
135
135
|
fontSize: 16,
|
|
136
|
-
fontFamily: fontFamilies.
|
|
136
|
+
fontFamily: fontFamilies.inter,
|
|
137
137
|
lineHeight: 20,
|
|
138
138
|
},
|
|
139
139
|
searchClearButton: {
|
|
@@ -159,14 +159,14 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
159
159
|
statValue: {
|
|
160
160
|
fontSize: 20,
|
|
161
161
|
fontWeight: '800',
|
|
162
|
-
fontFamily: fontFamilies.
|
|
162
|
+
fontFamily: fontFamilies.interBold,
|
|
163
163
|
letterSpacing: -0.5,
|
|
164
164
|
lineHeight: 24,
|
|
165
165
|
},
|
|
166
166
|
statLabel: {
|
|
167
167
|
fontSize: 12,
|
|
168
168
|
fontWeight: '500',
|
|
169
|
-
fontFamily: fontFamilies.
|
|
169
|
+
fontFamily: fontFamilies.interMedium,
|
|
170
170
|
marginTop: 2,
|
|
171
171
|
letterSpacing: 0.2,
|
|
172
172
|
},
|
|
@@ -322,7 +322,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
322
322
|
emptyStateTitle: {
|
|
323
323
|
fontSize: 24,
|
|
324
324
|
fontWeight: 'bold',
|
|
325
|
-
fontFamily: fontFamilies.
|
|
325
|
+
fontFamily: fontFamilies.interBold,
|
|
326
326
|
marginTop: 16,
|
|
327
327
|
marginBottom: 8,
|
|
328
328
|
},
|
|
@@ -362,7 +362,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
362
362
|
modalTitle: {
|
|
363
363
|
fontSize: 18,
|
|
364
364
|
fontWeight: '600',
|
|
365
|
-
fontFamily: fontFamilies.
|
|
365
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
366
366
|
},
|
|
367
367
|
modalPlaceholder: {
|
|
368
368
|
width: 40,
|
|
@@ -383,7 +383,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
383
383
|
fileDetailName: {
|
|
384
384
|
fontSize: 20,
|
|
385
385
|
fontWeight: 'bold',
|
|
386
|
-
fontFamily: fontFamilies.
|
|
386
|
+
fontFamily: fontFamilies.interBold,
|
|
387
387
|
textAlign: 'center',
|
|
388
388
|
marginBottom: 24,
|
|
389
389
|
},
|
|
@@ -442,7 +442,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
442
442
|
uploadPreviewTitle: {
|
|
443
443
|
fontSize: 20,
|
|
444
444
|
fontWeight: '700',
|
|
445
|
-
fontFamily: fontFamilies.
|
|
445
|
+
fontFamily: fontFamilies.interBold,
|
|
446
446
|
},
|
|
447
447
|
uploadPreviewList: {
|
|
448
448
|
flex: 1,
|
|
@@ -476,12 +476,12 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
476
476
|
uploadPreviewName: {
|
|
477
477
|
fontSize: 16,
|
|
478
478
|
fontWeight: '600',
|
|
479
|
-
fontFamily: fontFamilies.
|
|
479
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
480
480
|
marginBottom: 4,
|
|
481
481
|
},
|
|
482
482
|
uploadPreviewMeta: {
|
|
483
483
|
fontSize: 13,
|
|
484
|
-
fontFamily: fontFamilies.
|
|
484
|
+
fontFamily: fontFamilies.inter,
|
|
485
485
|
},
|
|
486
486
|
uploadPreviewRemove: {
|
|
487
487
|
padding: 4,
|
|
@@ -498,7 +498,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
498
498
|
uploadPreviewStatsText: {
|
|
499
499
|
fontSize: 15,
|
|
500
500
|
fontWeight: '600',
|
|
501
|
-
fontFamily: fontFamilies.
|
|
501
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
502
502
|
},
|
|
503
503
|
uploadPreviewActions: {
|
|
504
504
|
flexDirection: 'row',
|
|
@@ -515,7 +515,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
515
515
|
uploadPreviewCancelText: {
|
|
516
516
|
fontSize: 16,
|
|
517
517
|
fontWeight: '600',
|
|
518
|
-
fontFamily: fontFamilies.
|
|
518
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
519
519
|
},
|
|
520
520
|
uploadPreviewConfirmButton: {
|
|
521
521
|
flex: 2,
|
|
@@ -530,7 +530,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
530
530
|
color: '#FFFFFF',
|
|
531
531
|
fontSize: 16,
|
|
532
532
|
fontWeight: '600',
|
|
533
|
-
fontFamily: fontFamilies.
|
|
533
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
534
534
|
},
|
|
535
535
|
fileViewerContainer: {
|
|
536
536
|
flex: 1,
|
|
@@ -570,7 +570,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
570
570
|
fileViewerTitle: {
|
|
571
571
|
fontSize: 18,
|
|
572
572
|
fontWeight: '600',
|
|
573
|
-
fontFamily: fontFamilies.
|
|
573
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
574
574
|
marginBottom: 2,
|
|
575
575
|
},
|
|
576
576
|
fileViewerSubtitle: {
|
|
@@ -661,7 +661,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
661
661
|
unsupportedFileTitle: {
|
|
662
662
|
fontSize: 24,
|
|
663
663
|
fontWeight: 'bold',
|
|
664
|
-
fontFamily: fontFamilies.
|
|
664
|
+
fontFamily: fontFamilies.interBold,
|
|
665
665
|
marginTop: 16,
|
|
666
666
|
marginBottom: 8,
|
|
667
667
|
textAlign: 'center',
|
|
@@ -719,7 +719,7 @@ export const fileManagementStyles = StyleSheet.create({
|
|
|
719
719
|
fileDetailsSectionTitle: {
|
|
720
720
|
fontSize: 18,
|
|
721
721
|
fontWeight: '600',
|
|
722
|
-
fontFamily: fontFamilies.
|
|
722
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
723
723
|
flex: 1,
|
|
724
724
|
},
|
|
725
725
|
fileDetailsSectionHeader: {
|
|
@@ -24,7 +24,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
24
24
|
fontWeight: '600',
|
|
25
25
|
color: colors.text,
|
|
26
26
|
marginBottom: 12,
|
|
27
|
-
fontFamily: fontFamilies.
|
|
27
|
+
fontFamily: fontFamilies.interSemiBold,
|
|
28
28
|
},
|
|
29
29
|
errorContainer: {
|
|
30
30
|
flex: 1,
|
|
@@ -54,7 +54,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
54
54
|
marginBottom: 8,
|
|
55
55
|
},
|
|
56
56
|
summaryCardMainTitle: {
|
|
57
|
-
fontFamily: fontFamilies.
|
|
57
|
+
fontFamily: fontFamilies.interBold,
|
|
58
58
|
fontWeight: 'bold',
|
|
59
59
|
fontSize: 28,
|
|
60
60
|
color: colors.text,
|
|
@@ -95,7 +95,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
95
95
|
color: colors.text,
|
|
96
96
|
textAlign: 'center',
|
|
97
97
|
marginBottom: 8,
|
|
98
|
-
fontFamily: fontFamilies.
|
|
98
|
+
fontFamily: fontFamilies.interBold,
|
|
99
99
|
},
|
|
100
100
|
summaryCardAmountDescription: {
|
|
101
101
|
fontSize: 14,
|
|
@@ -146,7 +146,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
146
146
|
marginBottom: 8,
|
|
147
147
|
},
|
|
148
148
|
cardPaymentMainTitle: {
|
|
149
|
-
fontFamily: fontFamilies.
|
|
149
|
+
fontFamily: fontFamilies.interBold,
|
|
150
150
|
fontWeight: 'bold',
|
|
151
151
|
fontSize: 28,
|
|
152
152
|
color: colors.text,
|
|
@@ -215,7 +215,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
215
215
|
marginBottom: 8,
|
|
216
216
|
},
|
|
217
217
|
oxyPayMainTitle: {
|
|
218
|
-
fontFamily: fontFamilies.
|
|
218
|
+
fontFamily: fontFamilies.interBold,
|
|
219
219
|
fontWeight: 'bold',
|
|
220
220
|
fontSize: 28,
|
|
221
221
|
color: colors.text,
|
|
@@ -262,7 +262,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
262
262
|
marginBottom: 8,
|
|
263
263
|
},
|
|
264
264
|
faircoinMainTitle: {
|
|
265
|
-
fontFamily: fontFamilies.
|
|
265
|
+
fontFamily: fontFamilies.interBold,
|
|
266
266
|
fontWeight: 'bold',
|
|
267
267
|
fontSize: 28,
|
|
268
268
|
color: '#1b1f0a',
|
|
@@ -373,7 +373,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
373
373
|
marginBottom: 8,
|
|
374
374
|
},
|
|
375
375
|
successMainTitle: {
|
|
376
|
-
fontFamily: fontFamilies.
|
|
376
|
+
fontFamily: fontFamilies.interBold,
|
|
377
377
|
fontWeight: 'bold',
|
|
378
378
|
fontSize: 28,
|
|
379
379
|
color: colors.success || '#4BB543',
|