@oxyhq/services 5.13.40 → 5.15.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 +130 -54
- package/lib/commonjs/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/commonjs/core/HttpService.js +94 -4
- package/lib/commonjs/core/HttpService.js.map +1 -1
- package/lib/commonjs/core/OxyServices.base.js +3 -1
- package/lib/commonjs/core/OxyServices.base.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +213 -22
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.auth.js +70 -99
- package/lib/commonjs/core/mixins/OxyServices.auth.js.map +1 -1
- package/lib/commonjs/crypto/index.js +33 -0
- package/lib/commonjs/crypto/index.js.map +1 -0
- package/lib/commonjs/crypto/keyManager.js +208 -0
- package/lib/commonjs/crypto/keyManager.js.map +1 -0
- package/lib/commonjs/crypto/recoveryPhrase.js +137 -0
- package/lib/commonjs/crypto/recoveryPhrase.js.map +1 -0
- package/lib/commonjs/crypto/signatureService.js +230 -0
- package/lib/commonjs/crypto/signatureService.js.map +1 -0
- package/lib/commonjs/i18n/locales/en-US.json +4 -0
- package/lib/commonjs/index.js +22 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/ActivityIndicator.js +203 -0
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/AutoHeightScrollView.js +46 -0
- package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +1 -0
- package/lib/commonjs/ui/components/BottomSheet.js +407 -0
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js +366 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -0
- package/lib/commonjs/ui/components/CrossFadeIcon.js +106 -0
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +1 -0
- package/lib/commonjs/ui/components/EmptyState.js +41 -0
- package/lib/commonjs/ui/components/EmptyState.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedItem.js +87 -82
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +25 -25
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +111 -47
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/HelperText.js +103 -0
- package/lib/commonjs/ui/components/HelperText.js.map +1 -0
- package/lib/commonjs/ui/components/Icon.js +109 -0
- package/lib/commonjs/ui/components/Icon.js.map +1 -0
- package/lib/commonjs/ui/components/IconButton/IconButton.js +159 -0
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -0
- package/lib/commonjs/ui/components/IconButton/utils.js +155 -0
- package/lib/commonjs/ui/components/IconButton/utils.js.map +1 -0
- package/lib/commonjs/ui/components/LoadingState.js +47 -0
- package/lib/commonjs/ui/components/LoadingState.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +1 -14
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +41 -372
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +9 -13
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +7 -4
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/QuickActions.js +7 -4
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/Section.js +4 -1
- package/lib/commonjs/ui/components/Section.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +6 -3
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/SettingRow.js +77 -0
- package/lib/commonjs/ui/components/SettingRow.js.map +1 -0
- package/lib/commonjs/ui/components/StepBasedScreen.js +188 -172
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/commonjs/ui/components/Surface.js +258 -0
- package/lib/commonjs/ui/components/Surface.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js +46 -0
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +53 -0
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +155 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +144 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +137 -0
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +22 -0
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/types.js +6 -0
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +62 -0
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +176 -0
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +84 -0
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +377 -0
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +361 -0
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/constants.js +50 -0
- package/lib/commonjs/ui/components/TextField/constants.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/helpers.js +490 -0
- package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -0
- package/lib/commonjs/ui/components/TextField/types.js +6 -0
- package/lib/commonjs/ui/components/TextField/types.js.map +1 -0
- package/lib/commonjs/ui/components/TextField.js +339 -0
- package/lib/commonjs/ui/components/TextField.js.map +1 -0
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +12 -0
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +1 -0
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +258 -0
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -0
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +107 -0
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -0
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +56 -0
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +1 -0
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +62 -0
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -0
- package/lib/commonjs/ui/components/Typography/types.js +26 -0
- package/lib/commonjs/ui/components/Typography/types.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +171 -0
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +409 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +181 -0
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js +868 -0
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +29 -1
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/profile/EditBioModal.js +181 -0
- package/lib/commonjs/ui/components/profile/EditBioModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +207 -0
- package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditEmailModal.js +184 -0
- package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditLinksModal.js +315 -0
- package/lib/commonjs/ui/components/profile/EditLinksModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditLocationModal.js +273 -0
- package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js +180 -0
- package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +1 -0
- package/lib/commonjs/ui/components/profile/TwoFactorSetupModal.js +467 -0
- package/lib/commonjs/ui/components/profile/TwoFactorSetupModal.js.map +1 -0
- package/lib/commonjs/ui/components/styles/overlay.js +85 -0
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -0
- package/lib/commonjs/ui/components/styles/shadow.js +132 -0
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -0
- package/lib/commonjs/ui/components/theming.js +116 -0
- package/lib/commonjs/ui/components/theming.js.map +1 -0
- package/lib/commonjs/ui/components/types.js +2 -0
- package/lib/commonjs/ui/components/types.js.map +1 -0
- package/lib/commonjs/ui/components/utils/forwardRef.js +18 -0
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +1 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js +13 -0
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js +9 -0
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js +50 -0
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/commonjs/ui/constants/iconColors.js +84 -0
- package/lib/commonjs/ui/constants/iconColors.js.map +1 -0
- package/lib/commonjs/ui/constants/spacing.js +50 -0
- package/lib/commonjs/ui/constants/spacing.js.map +1 -0
- package/lib/commonjs/ui/constants/theme.js +123 -0
- package/lib/commonjs/ui/constants/theme.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +198 -853
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/ThemeContext.js +36 -0
- package/lib/commonjs/ui/context/ThemeContext.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +349 -0
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +73 -0
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +112 -0
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js +261 -0
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +1 -0
- package/lib/commonjs/ui/context/hooks/useStorage.js +79 -0
- package/lib/commonjs/ui/context/hooks/useStorage.js.map +1 -0
- package/lib/commonjs/ui/context/utils/errorHandlers.js +90 -0
- package/lib/commonjs/ui/context/utils/errorHandlers.js.map +1 -0
- package/lib/commonjs/ui/context/utils/sessionHelpers.js +103 -0
- package/lib/commonjs/ui/context/utils/sessionHelpers.js.map +1 -0
- package/lib/commonjs/ui/context/utils/storageHelpers.js +119 -0
- package/lib/commonjs/ui/context/utils/storageHelpers.js.map +1 -0
- package/lib/commonjs/ui/hooks/index.js +14 -0
- package/lib/commonjs/ui/hooks/index.js.map +1 -1
- package/lib/commonjs/ui/hooks/use-color-scheme.js +29 -0
- package/lib/commonjs/ui/hooks/use-color-scheme.js.map +1 -0
- package/lib/commonjs/ui/hooks/use-haptic-press.js +21 -0
- package/lib/commonjs/ui/hooks/use-haptic-press.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceManagement.js +73 -0
- package/lib/commonjs/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js +112 -0
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js +123 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js +261 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/commonjs/ui/hooks/useStorage.js +79 -0
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -0
- package/lib/commonjs/ui/hooks/useThemeColors.js +31 -0
- package/lib/commonjs/ui/hooks/useThemeColors.js.map +1 -0
- package/lib/commonjs/ui/hooks/useThemeStyles.js +69 -0
- package/lib/commonjs/ui/hooks/useThemeStyles.js.map +1 -0
- package/lib/commonjs/ui/index.js +1 -4
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js +180 -0
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +80 -154
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +67 -67
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +217 -98
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +514 -429
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +44 -59
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +12 -19
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +36 -43
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +14 -14
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +674 -1968
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +26 -23
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +19 -59
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +79 -170
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +13 -40
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +436 -0
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +18 -24
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +21 -9
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +180 -252
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +7 -5
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +32 -70
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +26 -99
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +24 -16
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +8 -10
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +64 -67
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +11 -8
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +124 -122
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +99 -112
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +12 -9
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +552 -79
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +12 -8
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/styles/authStyles.js +5 -11
- package/lib/commonjs/ui/styles/authStyles.js.map +1 -1
- package/lib/commonjs/ui/styles/spacing.js +60 -2
- package/lib/commonjs/ui/styles/spacing.js.map +1 -1
- package/lib/commonjs/ui/styles/theme.js +1 -1
- package/lib/commonjs/ui/types/fileManagement.js +6 -0
- package/lib/commonjs/ui/types/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/types/navigation.js +6 -0
- package/lib/commonjs/ui/types/navigation.js.map +1 -0
- package/lib/commonjs/ui/utils/colorUtils.js +52 -0
- package/lib/commonjs/ui/utils/colorUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/errorHandlers.js +90 -0
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -0
- package/lib/commonjs/ui/utils/fileManagement.js +181 -0
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js +103 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +119 -0
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -0
- package/lib/commonjs/ui/utils/themeUtils.js +47 -0
- package/lib/commonjs/ui/utils/themeUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/user-utils.js +53 -0
- package/lib/commonjs/ui/utils/user-utils.js.map +1 -0
- package/lib/commonjs/utils/errorUtils.js +14 -4
- package/lib/commonjs/utils/errorUtils.js.map +1 -1
- package/lib/module/assets/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/lib/module/core/HttpService.js +94 -4
- package/lib/module/core/HttpService.js.map +1 -1
- package/lib/module/core/OxyServices.base.js +3 -1
- package/lib/module/core/OxyServices.base.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +212 -20
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.auth.js +70 -99
- package/lib/module/core/mixins/OxyServices.auth.js.map +1 -1
- package/lib/module/crypto/index.js +16 -0
- package/lib/module/crypto/index.js.map +1 -0
- package/lib/module/crypto/keyManager.js +204 -0
- package/lib/module/crypto/keyManager.js.map +1 -0
- package/lib/module/crypto/recoveryPhrase.js +131 -0
- package/lib/module/crypto/recoveryPhrase.js.map +1 -0
- package/lib/module/crypto/signatureService.js +227 -0
- package/lib/module/crypto/signatureService.js.map +1 -0
- package/lib/module/i18n/locales/en-US.json +4 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/ActivityIndicator.js +198 -0
- package/lib/module/ui/components/ActivityIndicator.js.map +1 -0
- package/lib/module/ui/components/AutoHeightScrollView.js +41 -0
- package/lib/module/ui/components/AutoHeightScrollView.js.map +1 -0
- package/lib/module/ui/components/BottomSheet.js +402 -0
- package/lib/module/ui/components/BottomSheet.js.map +1 -0
- package/lib/module/ui/components/BottomSheetRouter.js +356 -0
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -0
- package/lib/module/ui/components/CrossFadeIcon.js +101 -0
- package/lib/module/ui/components/CrossFadeIcon.js.map +1 -0
- package/lib/module/ui/components/EmptyState.js +36 -0
- package/lib/module/ui/components/EmptyState.js.map +1 -0
- package/lib/module/ui/components/GroupedItem.js +88 -82
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +23 -23
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js +109 -46
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +99 -0
- package/lib/module/ui/components/HelperText.js.map +1 -0
- package/lib/module/ui/components/Icon.js +102 -0
- package/lib/module/ui/components/Icon.js.map +1 -0
- package/lib/module/ui/components/IconButton/IconButton.js +153 -0
- package/lib/module/ui/components/IconButton/IconButton.js.map +1 -0
- package/lib/module/ui/components/IconButton/utils.js +149 -0
- package/lib/module/ui/components/IconButton/utils.js.map +1 -0
- package/lib/module/ui/components/LoadingState.js +42 -0
- package/lib/module/ui/components/LoadingState.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +1 -14
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +45 -377
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +9 -13
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +7 -4
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +7 -4
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/Section.js +4 -1
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +6 -3
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/SettingRow.js +72 -0
- package/lib/module/ui/components/SettingRow.js.map +1 -0
- package/lib/module/ui/components/StepBasedScreen.js +190 -174
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -1
- package/lib/module/ui/components/Surface.js +252 -0
- package/lib/module/ui/components/Surface.js.map +1 -0
- package/lib/module/ui/components/TextField/Addons/Outline.js +40 -0
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +1 -0
- package/lib/module/ui/components/TextField/Addons/Underline.js +47 -0
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +148 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +141 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +135 -0
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/enums.js +18 -0
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/types.js +4 -0
- package/lib/module/ui/components/TextField/Adornment/types.js.map +1 -0
- package/lib/module/ui/components/TextField/Adornment/utils.js +57 -0
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -0
- package/lib/module/ui/components/TextField/Label/InputLabel.js +171 -0
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +1 -0
- package/lib/module/ui/components/TextField/Label/LabelBackground.js +78 -0
- package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +1 -0
- package/lib/module/ui/components/TextField/TextFieldFlat.js +372 -0
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +1 -0
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +355 -0
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +1 -0
- package/lib/module/ui/components/TextField/constants.js +46 -0
- package/lib/module/ui/components/TextField/constants.js.map +1 -0
- package/lib/module/ui/components/TextField/helpers.js +472 -0
- package/lib/module/ui/components/TextField/helpers.js.map +1 -0
- package/lib/module/ui/components/TextField/types.js +4 -0
- package/lib/module/ui/components/TextField/types.js.map +1 -0
- package/lib/module/ui/components/TextField.js +333 -0
- package/lib/module/ui/components/TextField.js.map +1 -0
- package/lib/module/ui/components/TouchableRipple/Pressable.js +9 -0
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +1 -0
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +253 -0
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -0
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +101 -0
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +1 -0
- package/lib/module/ui/components/TouchableRipple/utils.js +50 -0
- package/lib/module/ui/components/TouchableRipple/utils.js.map +1 -0
- package/lib/module/ui/components/Typography/AnimatedText.js +56 -0
- package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -0
- package/lib/module/ui/components/Typography/types.js +22 -0
- package/lib/module/ui/components/Typography/types.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +165 -0
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js +402 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js +175 -0
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -0
- package/lib/module/ui/components/fileManagement/styles.js +864 -0
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -0
- package/lib/module/ui/components/index.js +4 -1
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/profile/EditBioModal.js +175 -0
- package/lib/module/ui/components/profile/EditBioModal.js.map +1 -0
- package/lib/module/ui/components/profile/EditDisplayNameModal.js +201 -0
- package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +1 -0
- package/lib/module/ui/components/profile/EditEmailModal.js +178 -0
- package/lib/module/ui/components/profile/EditEmailModal.js.map +1 -0
- package/lib/module/ui/components/profile/EditLinksModal.js +309 -0
- package/lib/module/ui/components/profile/EditLinksModal.js.map +1 -0
- package/lib/module/ui/components/profile/EditLocationModal.js +267 -0
- package/lib/module/ui/components/profile/EditLocationModal.js.map +1 -0
- package/lib/module/ui/components/profile/EditUsernameModal.js +174 -0
- package/lib/module/ui/components/profile/EditUsernameModal.js.map +1 -0
- package/lib/module/ui/components/profile/TwoFactorSetupModal.js +460 -0
- package/lib/module/ui/components/profile/TwoFactorSetupModal.js.map +1 -0
- package/lib/module/ui/components/styles/overlay.js +80 -0
- package/lib/module/ui/components/styles/overlay.js.map +1 -0
- package/lib/module/ui/components/styles/shadow.js +128 -0
- package/lib/module/ui/components/styles/shadow.js.map +1 -0
- package/lib/module/ui/components/theming.js +111 -0
- package/lib/module/ui/components/theming.js.map +1 -0
- package/lib/module/ui/components/types.js +2 -0
- package/lib/module/ui/components/types.js.map +1 -0
- package/lib/module/ui/components/utils/forwardRef.js +13 -0
- package/lib/module/ui/components/utils/forwardRef.js.map +1 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js +9 -0
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js +4 -0
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -0
- package/lib/module/ui/components/utils/splitStyles.js +46 -0
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -0
- package/lib/module/ui/constants/iconColors.js +78 -0
- package/lib/module/ui/constants/iconColors.js.map +1 -0
- package/lib/module/ui/constants/spacing.js +45 -0
- package/lib/module/ui/constants/spacing.js.map +1 -0
- package/lib/module/ui/constants/theme.js +119 -0
- package/lib/module/ui/constants/theme.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +199 -855
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/ThemeContext.js +29 -0
- package/lib/module/ui/context/ThemeContext.js.map +1 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js +344 -0
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -0
- package/lib/module/ui/context/hooks/useDeviceManagement.js +68 -0
- package/lib/module/ui/context/hooks/useDeviceManagement.js.map +1 -0
- package/lib/module/ui/context/hooks/useLanguageManagement.js +107 -0
- package/lib/module/ui/context/hooks/useLanguageManagement.js.map +1 -0
- package/lib/module/ui/context/hooks/useSessionManagement.js +256 -0
- package/lib/module/ui/context/hooks/useSessionManagement.js.map +1 -0
- package/lib/module/ui/context/hooks/useStorage.js +74 -0
- package/lib/module/ui/context/hooks/useStorage.js.map +1 -0
- package/lib/module/ui/context/utils/errorHandlers.js +83 -0
- package/lib/module/ui/context/utils/errorHandlers.js.map +1 -0
- package/lib/module/ui/context/utils/sessionHelpers.js +96 -0
- package/lib/module/ui/context/utils/sessionHelpers.js.map +1 -0
- package/lib/module/ui/context/utils/storageHelpers.js +111 -0
- package/lib/module/ui/context/utils/storageHelpers.js.map +1 -0
- package/lib/module/ui/hooks/index.js +2 -0
- package/lib/module/ui/hooks/index.js.map +1 -1
- package/lib/module/ui/hooks/use-color-scheme.js +26 -0
- package/lib/module/ui/hooks/use-color-scheme.js.map +1 -0
- package/lib/module/ui/hooks/use-haptic-press.js +17 -0
- package/lib/module/ui/hooks/use-haptic-press.js.map +1 -0
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceManagement.js +68 -0
- package/lib/module/ui/hooks/useDeviceManagement.js.map +1 -0
- package/lib/module/ui/hooks/useLanguageManagement.js +107 -0
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -0
- package/lib/module/ui/hooks/useProfileEditing.js +118 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -0
- package/lib/module/ui/hooks/useSessionManagement.js +256 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -0
- package/lib/module/ui/hooks/useStorage.js +74 -0
- package/lib/module/ui/hooks/useStorage.js.map +1 -0
- package/lib/module/ui/hooks/useThemeColors.js +27 -0
- package/lib/module/ui/hooks/useThemeColors.js.map +1 -0
- package/lib/module/ui/hooks/useThemeStyles.js +64 -0
- package/lib/module/ui/hooks/useThemeStyles.js.map +1 -0
- package/lib/module/ui/index.js +2 -4
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js +168 -0
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +77 -152
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +67 -67
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +218 -100
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +515 -430
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +45 -60
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +12 -19
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +36 -43
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +14 -14
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +670 -1965
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +26 -23
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +22 -62
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +80 -171
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +16 -43
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +432 -0
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -0
- package/lib/module/ui/screens/PaymentGatewayScreen.js +18 -24
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +21 -9
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +167 -239
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +7 -5
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +35 -73
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +29 -102
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +24 -16
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +8 -10
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +65 -68
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +11 -8
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +124 -121
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +101 -114
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +12 -9
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +554 -81
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +12 -8
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/styles/authStyles.js +5 -11
- package/lib/module/ui/styles/authStyles.js.map +1 -1
- package/lib/module/ui/styles/spacing.js +12 -2
- package/lib/module/ui/styles/spacing.js.map +1 -1
- package/lib/module/ui/styles/theme.js +1 -1
- package/lib/module/ui/types/fileManagement.js +4 -0
- package/lib/module/ui/types/fileManagement.js.map +1 -0
- package/lib/module/ui/types/navigation.js +4 -0
- package/lib/module/ui/types/navigation.js.map +1 -0
- package/lib/module/ui/utils/colorUtils.js +46 -0
- package/lib/module/ui/utils/colorUtils.js.map +1 -0
- package/lib/module/ui/utils/errorHandlers.js +83 -0
- package/lib/module/ui/utils/errorHandlers.js.map +1 -0
- package/lib/module/ui/utils/fileManagement.js +172 -0
- package/lib/module/ui/utils/fileManagement.js.map +1 -0
- package/lib/module/ui/utils/sessionHelpers.js +96 -0
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +111 -0
- package/lib/module/ui/utils/storageHelpers.js.map +1 -0
- package/lib/module/ui/utils/themeUtils.js +41 -0
- package/lib/module/ui/utils/themeUtils.js.map +1 -0
- package/lib/module/ui/utils/user-utils.js +46 -0
- package/lib/module/ui/utils/user-utils.js.map +1 -0
- package/lib/module/utils/errorUtils.js +14 -4
- package/lib/module/utils/errorUtils.js.map +1 -1
- package/lib/typescript/core/HttpService.d.ts +48 -0
- package/lib/typescript/core/HttpService.d.ts.map +1 -1
- package/lib/typescript/core/OxyServices.base.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts +23 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +70 -42
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.totp.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -1
- package/lib/typescript/core/mixins/index.d.ts +26 -34
- package/lib/typescript/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/crypto/index.d.ts +11 -0
- package/lib/typescript/crypto/index.d.ts.map +1 -0
- package/lib/typescript/crypto/keyManager.d.ts +73 -0
- package/lib/typescript/crypto/keyManager.d.ts.map +1 -0
- package/lib/typescript/crypto/recoveryPhrase.d.ts +57 -0
- package/lib/typescript/crypto/recoveryPhrase.d.ts.map +1 -0
- package/lib/typescript/crypto/signatureService.d.ts +80 -0
- package/lib/typescript/crypto/signatureService.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/interfaces.d.ts +1 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/types/bip39.d.ts +28 -0
- package/lib/typescript/types/color.d.ts +18 -0
- package/lib/typescript/types/elliptic.d.ts +60 -0
- package/lib/typescript/types/expo-crypto.d.ts +28 -0
- package/lib/typescript/types/expo-random.d.ts +8 -0
- package/lib/typescript/types/expo-secure-store.d.ts +20 -0
- package/lib/typescript/types/expo-vector-icons.d.ts +9 -0
- package/lib/typescript/ui/components/ActivityIndicator.d.ts +45 -0
- package/lib/typescript/ui/components/ActivityIndicator.d.ts.map +1 -0
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts +23 -0
- package/lib/typescript/ui/components/AutoHeightScrollView.d.ts.map +1 -0
- package/lib/typescript/ui/components/BottomSheet.d.ts +29 -0
- package/lib/typescript/ui/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts +14 -0
- package/lib/typescript/ui/components/BottomSheetRouter.d.ts.map +1 -0
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts +27 -0
- package/lib/typescript/ui/components/CrossFadeIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/EmptyState.d.ts +8 -0
- package/lib/typescript/ui/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts +5 -9
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +6 -7
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/ui/components/Header.d.ts +6 -1
- package/lib/typescript/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/ui/components/HelperText.d.ts +47 -0
- package/lib/typescript/ui/components/HelperText.d.ts.map +1 -0
- package/lib/typescript/ui/components/Icon.d.ts +60 -0
- package/lib/typescript/ui/components/Icon.d.ts.map +1 -0
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts +99 -0
- package/lib/typescript/ui/components/IconButton/IconButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/IconButton/utils.d.ts +19 -0
- package/lib/typescript/ui/components/IconButton/utils.d.ts.map +1 -0
- package/lib/typescript/ui/components/LoadingState.d.ts +9 -0
- package/lib/typescript/ui/components/LoadingState.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +4 -5
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +3 -8
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -1
- package/lib/typescript/ui/components/Section.d.ts +1 -1
- package/lib/typescript/ui/components/Section.d.ts.map +1 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +1 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -1
- package/lib/typescript/ui/components/SettingRow.d.ts +14 -0
- package/lib/typescript/ui/components/SettingRow.d.ts.map +1 -0
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +3 -2
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -1
- package/lib/typescript/ui/components/Surface.d.ts +76 -0
- package/lib/typescript/ui/components/Surface.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts +16 -0
- package/lib/typescript/ui/components/TextField/Addons/Outline.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts +19 -0
- package/lib/typescript/ui/components/TextField/Addons/Underline.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +45 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts +73 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts +78 -0
- package/lib/typescript/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts +13 -0
- package/lib/typescript/ui/components/TextField/Adornment/enums.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts +12 -0
- package/lib/typescript/ui/components/TextField/Adornment/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts +12 -0
- package/lib/typescript/ui/components/TextField/Adornment/utils.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts +5 -0
- package/lib/typescript/ui/components/TextField/Label/InputLabel.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts +4 -0
- package/lib/typescript/ui/components/TextField/Label/LabelBackground.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts +4 -0
- package/lib/typescript/ui/components/TextField/TextFieldFlat.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts +4 -0
- package/lib/typescript/ui/components/TextField/TextFieldOutlined.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/constants.d.ts +32 -0
- package/lib/typescript/ui/components/TextField/constants.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/helpers.d.ts +97 -0
- package/lib/typescript/ui/components/TextField/helpers.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField/types.d.ts +156 -0
- package/lib/typescript/ui/components/TextField/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/TextField.d.ts +192 -0
- package/lib/typescript/ui/components/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts +13 -0
- package/lib/typescript/ui/components/TouchableRipple/Pressable.d.ts.map +1 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts +62 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts +25 -0
- package/lib/typescript/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -0
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts +11 -0
- package/lib/typescript/ui/components/TouchableRipple/utils.d.ts.map +1 -0
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts +35 -0
- package/lib/typescript/ui/components/Typography/AnimatedText.d.ts.map +1 -0
- package/lib/typescript/ui/components/Typography/types.d.ts +19 -0
- package/lib/typescript/ui/components/Typography/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts +15 -0
- package/lib/typescript/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts +18 -0
- package/lib/typescript/ui/components/fileManagement/FileViewer.d.ts.map +1 -0
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts +21 -0
- package/lib/typescript/ui/components/fileManagement/UploadPreview.d.ts.map +1 -0
- package/lib/typescript/ui/components/fileManagement/styles.d.ts +860 -0
- package/lib/typescript/ui/components/fileManagement/styles.d.ts.map +1 -0
- package/lib/typescript/ui/components/index.d.ts +4 -1
- package/lib/typescript/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/ui/components/profile/EditBioModal.d.ts +11 -0
- package/lib/typescript/ui/components/profile/EditBioModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts +12 -0
- package/lib/typescript/ui/components/profile/EditDisplayNameModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/EditEmailModal.d.ts +11 -0
- package/lib/typescript/ui/components/profile/EditEmailModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/EditLinksModal.d.ts +18 -0
- package/lib/typescript/ui/components/profile/EditLinksModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/EditLocationModal.d.ts +20 -0
- package/lib/typescript/ui/components/profile/EditLocationModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts +11 -0
- package/lib/typescript/ui/components/profile/EditUsernameModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/profile/TwoFactorSetupModal.d.ts +11 -0
- package/lib/typescript/ui/components/profile/TwoFactorSetupModal.d.ts.map +1 -0
- package/lib/typescript/ui/components/styles/overlay.d.ts +4 -0
- package/lib/typescript/ui/components/styles/overlay.d.ts.map +1 -0
- package/lib/typescript/ui/components/styles/shadow.d.ts +3 -0
- package/lib/typescript/ui/components/styles/shadow.d.ts.map +1 -0
- package/lib/typescript/ui/components/theming.d.ts +8 -0
- package/lib/typescript/ui/components/theming.d.ts.map +1 -0
- package/lib/typescript/ui/components/types.d.ts +80 -0
- package/lib/typescript/ui/components/types.d.ts.map +1 -0
- package/lib/typescript/ui/components/utils/forwardRef.d.ts +12 -0
- package/lib/typescript/ui/components/utils/forwardRef.d.ts.map +1 -0
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts +6 -0
- package/lib/typescript/ui/components/utils/hasTouchHandler.d.ts.map +1 -0
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts +2 -0
- package/lib/typescript/ui/components/utils/roundLayoutSize.d.ts.map +1 -0
- package/lib/typescript/ui/components/utils/splitStyles.d.ts +20 -0
- package/lib/typescript/ui/components/utils/splitStyles.d.ts.map +1 -0
- package/lib/typescript/ui/constants/iconColors.d.ts +130 -0
- package/lib/typescript/ui/constants/iconColors.d.ts.map +1 -0
- package/lib/typescript/ui/constants/spacing.d.ts +33 -0
- package/lib/typescript/ui/constants/spacing.d.ts.map +1 -0
- package/lib/typescript/ui/constants/theme.d.ts +97 -0
- package/lib/typescript/ui/constants/theme.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +23 -17
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/context/ThemeContext.d.ts +19 -0
- package/lib/typescript/ui/context/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +51 -0
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts.map +1 -0
- package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/ui/context/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts +25 -0
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts +39 -0
- package/lib/typescript/ui/context/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/ui/context/hooks/useStorage.d.ts +22 -0
- package/lib/typescript/ui/context/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/ui/context/utils/errorHandlers.d.ts +30 -0
- package/lib/typescript/ui/context/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/ui/context/utils/sessionHelpers.d.ts +59 -0
- package/lib/typescript/ui/context/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/ui/context/utils/storageHelpers.d.ts +31 -0
- package/lib/typescript/ui/context/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/index.d.ts +2 -0
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/use-color-scheme.d.ts +8 -0
- package/lib/typescript/ui/hooks/use-color-scheme.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/use-haptic-press.d.ts +8 -0
- package/lib/typescript/ui/hooks/use-haptic-press.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts +27 -0
- package/lib/typescript/ui/hooks/useDeviceManagement.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +25 -0
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts +36 -0
- package/lib/typescript/ui/hooks/useProfileEditing.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts +39 -0
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useStorage.d.ts +22 -0
- package/lib/typescript/ui/hooks/useStorage.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useThemeColors.d.ts +94 -0
- package/lib/typescript/ui/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts +45 -0
- package/lib/typescript/ui/hooks/useThemeStyles.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +2 -2
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts +74 -0
- package/lib/typescript/ui/navigation/bottomSheetManager.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/routes.d.ts +4 -7
- package/lib/typescript/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +1 -36
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts +16 -0
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +1 -2
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/ui/styles/authStyles.d.ts +0 -10
- package/lib/typescript/ui/styles/authStyles.d.ts.map +1 -1
- package/lib/typescript/ui/styles/spacing.d.ts +7 -1
- package/lib/typescript/ui/styles/spacing.d.ts.map +1 -1
- package/lib/typescript/ui/types/fileManagement.d.ts +41 -0
- package/lib/typescript/ui/types/fileManagement.d.ts.map +1 -0
- package/lib/typescript/ui/types/navigation.d.ts +36 -0
- package/lib/typescript/ui/types/navigation.d.ts.map +1 -0
- package/lib/typescript/ui/utils/colorUtils.d.ts +14 -0
- package/lib/typescript/ui/utils/colorUtils.d.ts.map +1 -0
- package/lib/typescript/ui/utils/errorHandlers.d.ts +30 -0
- package/lib/typescript/ui/utils/errorHandlers.d.ts.map +1 -0
- package/lib/typescript/ui/utils/fileManagement.d.ts +39 -0
- package/lib/typescript/ui/utils/fileManagement.d.ts.map +1 -0
- package/lib/typescript/ui/utils/sessionHelpers.d.ts +59 -0
- package/lib/typescript/ui/utils/sessionHelpers.d.ts.map +1 -0
- package/lib/typescript/ui/utils/storageHelpers.d.ts +31 -0
- package/lib/typescript/ui/utils/storageHelpers.d.ts.map +1 -0
- package/lib/typescript/ui/utils/themeUtils.d.ts +24 -0
- package/lib/typescript/ui/utils/themeUtils.d.ts.map +1 -0
- package/lib/typescript/ui/utils/user-utils.d.ts +29 -0
- package/lib/typescript/ui/utils/user-utils.d.ts.map +1 -0
- package/lib/typescript/utils/errorUtils.d.ts.map +1 -1
- package/package.json +26 -15
- package/src/assets/lottie/welcomeheader_background_op1.json +1 -0
- package/src/core/HttpService.ts +97 -4
- package/src/core/OxyServices.base.ts +3 -1
- package/src/core/mixins/OxyServices.assets.ts +225 -27
- package/src/core/mixins/OxyServices.auth.ts +144 -80
- package/src/crypto/index.ts +20 -0
- package/src/crypto/keyManager.ts +213 -0
- package/src/crypto/recoveryPhrase.ts +146 -0
- package/src/crypto/signatureService.ts +258 -0
- package/src/i18n/locales/en-US.json +4 -0
- package/src/index.ts +13 -0
- package/src/models/interfaces.ts +1 -0
- package/src/types/bip39.d.ts +28 -0
- package/src/types/color.d.ts +18 -0
- package/src/types/elliptic.d.ts +60 -0
- package/src/types/expo-crypto.d.ts +28 -0
- package/src/types/expo-random.d.ts +8 -0
- package/src/types/expo-secure-store.d.ts +20 -0
- package/src/types/expo-vector-icons.d.ts +9 -0
- package/src/ui/components/ActivityIndicator.tsx +254 -0
- package/src/ui/components/AutoHeightScrollView.tsx +50 -0
- package/src/ui/components/BottomSheet.tsx +443 -0
- package/src/ui/components/BottomSheetRouter.tsx +407 -0
- package/src/ui/components/CrossFadeIcon.tsx +140 -0
- package/src/ui/components/EmptyState.tsx +39 -0
- package/src/ui/components/GroupedItem.tsx +98 -96
- package/src/ui/components/GroupedSection.tsx +24 -29
- package/src/ui/components/Header.tsx +129 -49
- package/src/ui/components/HelperText.tsx +160 -0
- package/src/ui/components/Icon.tsx +181 -0
- package/src/ui/components/IconButton/IconButton.tsx +235 -0
- package/src/ui/components/IconButton/utils.ts +190 -0
- package/src/ui/components/LoadingState.tsx +46 -0
- package/src/ui/components/OxyPayButton.tsx +1 -12
- package/src/ui/components/OxyProvider.tsx +49 -381
- package/src/ui/components/OxySignInButton.tsx +11 -18
- package/src/ui/components/ProfileCard.tsx +7 -4
- package/src/ui/components/QuickActions.tsx +7 -4
- package/src/ui/components/Section.tsx +6 -2
- package/src/ui/components/SectionTitle.tsx +7 -4
- package/src/ui/components/SettingRow.tsx +76 -0
- package/src/ui/components/StepBasedScreen.tsx +205 -187
- package/src/ui/components/Surface.tsx +384 -0
- package/src/ui/components/TextField/Addons/Outline.tsx +64 -0
- package/src/ui/components/TextField/Addons/Underline.tsx +78 -0
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +208 -0
- package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +212 -0
- package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +195 -0
- package/src/ui/components/TextField/Adornment/enums.tsx +12 -0
- package/src/ui/components/TextField/Adornment/types.tsx +11 -0
- package/src/ui/components/TextField/Adornment/utils.ts +66 -0
- package/src/ui/components/TextField/Label/InputLabel.tsx +219 -0
- package/src/ui/components/TextField/Label/LabelBackground.tsx +100 -0
- package/src/ui/components/TextField/TextFieldFlat.tsx +488 -0
- package/src/ui/components/TextField/TextFieldOutlined.tsx +464 -0
- package/src/ui/components/TextField/constants.tsx +48 -0
- package/src/ui/components/TextField/helpers.tsx +612 -0
- package/src/ui/components/TextField/types.tsx +156 -0
- package/src/ui/components/TextField.tsx +578 -0
- package/src/ui/components/TouchableRipple/Pressable.tsx +41 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +146 -0
- package/src/ui/components/TouchableRipple/TouchableRipple.tsx +347 -0
- package/src/ui/components/TouchableRipple/utils.ts +66 -0
- package/src/ui/components/Typography/AnimatedText.tsx +107 -0
- package/src/ui/components/Typography/types.tsx +22 -0
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +137 -0
- package/src/ui/components/fileManagement/FileViewer.tsx +380 -0
- package/src/ui/components/fileManagement/UploadPreview.tsx +175 -0
- package/src/ui/components/fileManagement/styles.ts +860 -0
- package/src/ui/components/index.ts +4 -1
- package/src/ui/components/profile/EditBioModal.tsx +184 -0
- package/src/ui/components/profile/EditDisplayNameModal.tsx +205 -0
- package/src/ui/components/profile/EditEmailModal.tsx +188 -0
- package/src/ui/components/profile/EditLinksModal.tsx +316 -0
- package/src/ui/components/profile/EditLocationModal.tsx +278 -0
- package/src/ui/components/profile/EditUsernameModal.tsx +183 -0
- package/src/ui/components/profile/TwoFactorSetupModal.tsx +442 -0
- package/src/ui/components/styles/overlay.tsx +88 -0
- package/src/ui/components/styles/shadow.tsx +136 -0
- package/src/ui/components/theming.tsx +114 -0
- package/src/ui/components/types.tsx +90 -0
- package/src/ui/components/utils/forwardRef.tsx +23 -0
- package/src/ui/components/utils/hasTouchHandler.tsx +23 -0
- package/src/ui/components/utils/roundLayoutSize.ts +2 -0
- package/src/ui/components/utils/splitStyles.ts +60 -0
- package/src/ui/constants/iconColors.ts +88 -0
- package/src/ui/constants/spacing.ts +45 -0
- package/src/ui/constants/theme.ts +120 -0
- package/src/ui/context/OxyContext.tsx +276 -894
- package/src/ui/context/ThemeContext.tsx +41 -0
- package/src/ui/context/hooks/useAuthOperations.ts +400 -0
- package/src/ui/context/hooks/useDeviceManagement.ts +108 -0
- package/src/ui/context/hooks/useLanguageManagement.ts +152 -0
- package/src/ui/context/hooks/useSessionManagement.ts +378 -0
- package/src/ui/context/hooks/useStorage.ts +104 -0
- package/src/ui/context/utils/errorHandlers.ts +136 -0
- package/src/ui/context/utils/sessionHelpers.ts +146 -0
- package/src/ui/context/utils/storageHelpers.ts +134 -0
- package/src/ui/hooks/index.ts +3 -1
- package/src/ui/hooks/use-color-scheme.ts +24 -0
- package/src/ui/hooks/use-haptic-press.ts +15 -0
- package/src/ui/hooks/useAssets.ts +1 -1
- package/src/ui/hooks/useDeviceManagement.ts +108 -0
- package/src/ui/hooks/useLanguageManagement.ts +152 -0
- package/src/ui/hooks/useProfileEditing.ts +151 -0
- package/src/ui/hooks/useSessionManagement.ts +378 -0
- package/src/ui/hooks/useStorage.ts +104 -0
- package/src/ui/hooks/useThemeColors.ts +26 -0
- package/src/ui/hooks/useThemeStyles.ts +85 -0
- package/src/ui/index.ts +1 -4
- package/src/ui/navigation/bottomSheetManager.ts +191 -0
- package/src/ui/navigation/routes.ts +107 -189
- package/src/ui/screens/AccountCenterScreen.tsx +67 -63
- package/src/ui/screens/AccountOverviewScreen.tsx +237 -95
- package/src/ui/screens/AccountSettingsScreen.tsx +546 -474
- package/src/ui/screens/AccountSwitcherScreen.tsx +113 -116
- package/src/ui/screens/AccountVerificationScreen.tsx +18 -20
- package/src/ui/screens/AppInfoScreen.tsx +37 -38
- package/src/ui/screens/FeedbackScreen.tsx +15 -12
- package/src/ui/screens/FileManagementScreen.tsx +764 -2026
- package/src/ui/screens/HelpSupportScreen.tsx +30 -23
- package/src/ui/screens/HistoryViewScreen.tsx +25 -56
- package/src/ui/screens/LanguageSelectorScreen.tsx +84 -170
- package/src/ui/screens/LegalDocumentsScreen.tsx +18 -41
- package/src/ui/screens/OxyAuthScreen.tsx +402 -0
- package/src/ui/screens/PaymentGatewayScreen.tsx +20 -22
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +13 -10
- package/src/ui/screens/PrivacySettingsScreen.tsx +150 -198
- package/src/ui/screens/ProfileScreen.tsx +7 -6
- package/src/ui/screens/SavesCollectionsScreen.tsx +39 -62
- package/src/ui/screens/SearchSettingsScreen.tsx +36 -86
- package/src/ui/screens/SessionManagementScreen.tsx +25 -17
- package/src/ui/screens/UserLinksScreen.tsx +10 -11
- package/src/ui/screens/WelcomeNewUserScreen.tsx +41 -41
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +13 -9
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +70 -70
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +96 -96
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +15 -10
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +605 -60
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +14 -9
- package/src/ui/stores/authStore.ts +1 -1
- package/src/ui/styles/authStyles.ts +5 -11
- package/src/ui/styles/spacing.ts +21 -2
- package/src/ui/styles/theme.ts +1 -1
- package/src/ui/types/fileManagement.ts +51 -0
- package/src/ui/types/navigation.ts +61 -0
- package/src/ui/utils/colorUtils.ts +46 -0
- package/src/ui/utils/errorHandlers.ts +136 -0
- package/src/ui/utils/fileManagement.ts +190 -0
- package/src/ui/utils/sessionHelpers.ts +146 -0
- package/src/ui/utils/storageHelpers.ts +134 -0
- package/src/ui/utils/themeUtils.ts +43 -0
- package/src/ui/utils/user-utils.ts +58 -0
- package/src/utils/errorUtils.ts +14 -4
- package/lib/commonjs/ui/components/internal/TextField.js +0 -733
- package/lib/commonjs/ui/components/internal/TextField.js.map +0 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +0 -213
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/commonjs/ui/navigation/types.js +0 -13
- package/lib/commonjs/ui/navigation/types.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -298
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +0 -137
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +0 -270
- package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +0 -229
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js +0 -135
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js +0 -165
- package/lib/commonjs/ui/screens/steps/RecoverResetPasswordStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js +0 -159
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js +0 -144
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js +0 -358
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js +0 -188
- package/lib/commonjs/ui/screens/steps/SignInTotpStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js +0 -509
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js +0 -200
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js +0 -185
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js +0 -138
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js.map +0 -1
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js +0 -150
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/ui/components/internal/TextField.js +0 -729
- package/lib/module/ui/components/internal/TextField.js.map +0 -1
- package/lib/module/ui/navigation/OxyRouter.js +0 -209
- package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/module/ui/navigation/types.js +0 -22
- package/lib/module/ui/navigation/types.js.map +0 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +0 -295
- package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +0 -133
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +0 -1
- package/lib/module/ui/screens/SignInScreen.js +0 -265
- package/lib/module/ui/screens/SignInScreen.js.map +0 -1
- package/lib/module/ui/screens/SignUpScreen.js +0 -224
- package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/module/ui/screens/steps/RecoverRequestStep.js +0 -130
- package/lib/module/ui/screens/steps/RecoverRequestStep.js.map +0 -1
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js +0 -160
- package/lib/module/ui/screens/steps/RecoverResetPasswordStep.js.map +0 -1
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js +0 -154
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js.map +0 -1
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js +0 -139
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignInPasswordStep.js +0 -353
- package/lib/module/ui/screens/steps/SignInPasswordStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignInTotpStep.js +0 -183
- package/lib/module/ui/screens/steps/SignInTotpStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignInUsernameStep.js +0 -504
- package/lib/module/ui/screens/steps/SignInUsernameStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js +0 -195
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js +0 -180
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js +0 -133
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js.map +0 -1
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js +0 -145
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js.map +0 -1
- package/lib/typescript/ui/components/internal/TextField.d.ts +0 -41
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -7
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -141
- package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts +0 -24
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/RecoverResetPasswordStep.d.ts +0 -24
- package/lib/typescript/ui/screens/steps/RecoverResetPasswordStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts +0 -19
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts +0 -26
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts +0 -30
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignInTotpStep.d.ts +0 -19
- package/lib/typescript/ui/screens/steps/SignInTotpStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts +0 -28
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts +0 -26
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts +0 -27
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts +0 -17
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts.map +0 -1
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts +0 -14
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts.map +0 -1
- package/src/ui/components/internal/TextField.tsx +0 -876
- package/src/ui/navigation/OxyRouter.tsx +0 -216
- package/src/ui/navigation/types.ts +0 -164
- package/src/ui/screens/AccountManagementDemo.tsx +0 -297
- package/src/ui/screens/RecoverAccountScreen.tsx +0 -141
- package/src/ui/screens/SignInScreen.tsx +0 -297
- package/src/ui/screens/SignUpScreen.tsx +0 -239
- package/src/ui/screens/steps/RecoverRequestStep.tsx +0 -143
- package/src/ui/screens/steps/RecoverResetPasswordStep.tsx +0 -162
- package/src/ui/screens/steps/RecoverSuccessStep.tsx +0 -148
- package/src/ui/screens/steps/RecoverVerifyStep.tsx +0 -154
- package/src/ui/screens/steps/SignInPasswordStep.tsx +0 -343
- package/src/ui/screens/steps/SignInTotpStep.tsx +0 -163
- package/src/ui/screens/steps/SignInUsernameStep.tsx +0 -560
- package/src/ui/screens/steps/SignUpIdentityStep.tsx +0 -217
- package/src/ui/screens/steps/SignUpSecurityStep.tsx +0 -207
- package/src/ui/screens/steps/SignUpSummaryStep.tsx +0 -155
- package/src/ui/screens/steps/SignUpWelcomeStep.tsx +0 -127
|
@@ -1,876 +0,0 @@
|
|
|
1
|
-
import React, { useState, useCallback, forwardRef, useEffect, useRef, useMemo } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
Text,
|
|
5
|
-
TextInput,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
ActivityIndicator,
|
|
8
|
-
StyleSheet,
|
|
9
|
-
Platform,
|
|
10
|
-
type TextInputProps,
|
|
11
|
-
Animated,
|
|
12
|
-
LayoutChangeEvent,
|
|
13
|
-
AccessibilityInfo,
|
|
14
|
-
type StyleProp,
|
|
15
|
-
type ViewStyle,
|
|
16
|
-
type NativeSyntheticEvent,
|
|
17
|
-
type TargetedEvent,
|
|
18
|
-
type TextInputFocusEventData,
|
|
19
|
-
type FocusEvent,
|
|
20
|
-
type BlurEvent,
|
|
21
|
-
findNodeHandle,
|
|
22
|
-
} from 'react-native';
|
|
23
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
24
|
-
import Svg, { Path } from 'react-native-svg';
|
|
25
|
-
import { fontFamilies } from '../../styles/fonts';
|
|
26
|
-
|
|
27
|
-
// Try to import bottom sheet hooks - will be undefined if not in bottom sheet context
|
|
28
|
-
let useBottomSheetInternal: any;
|
|
29
|
-
try {
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
31
|
-
useBottomSheetInternal = require('@gorhom/bottom-sheet').useBottomSheetInternal;
|
|
32
|
-
} catch {
|
|
33
|
-
// Not available or not in bottom sheet context
|
|
34
|
-
useBottomSheetInternal = null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface TextFieldProps extends Omit<TextInputProps, 'style'> {
|
|
38
|
-
// Basic props
|
|
39
|
-
label?: string;
|
|
40
|
-
variant?: 'filled' | 'outlined' | 'standard';
|
|
41
|
-
color?: 'primary' | 'secondary' | 'error' | 'success' | 'warning';
|
|
42
|
-
|
|
43
|
-
// Leading and trailing elements
|
|
44
|
-
leading?: React.ReactNode | ((props: { color: string; size: number }) => React.ReactNode | null) | null;
|
|
45
|
-
trailing?: React.ReactNode | ((props: { color: string; size: number }) => React.ReactNode | null) | null;
|
|
46
|
-
|
|
47
|
-
// States
|
|
48
|
-
error?: string;
|
|
49
|
-
success?: boolean;
|
|
50
|
-
loading?: boolean;
|
|
51
|
-
disabled?: boolean;
|
|
52
|
-
|
|
53
|
-
// Helper text
|
|
54
|
-
helperText?: string;
|
|
55
|
-
|
|
56
|
-
// Enhanced features
|
|
57
|
-
maxLength?: number;
|
|
58
|
-
showCharacterCount?: boolean;
|
|
59
|
-
inputMask?: 'phone' | 'creditCard' | 'currency' | 'custom';
|
|
60
|
-
customMask?: (value: string) => string;
|
|
61
|
-
formatValue?: (value: string) => string;
|
|
62
|
-
validateOnChange?: boolean;
|
|
63
|
-
debounceMs?: number;
|
|
64
|
-
passwordStrength?: boolean;
|
|
65
|
-
clearable?: boolean;
|
|
66
|
-
|
|
67
|
-
// Mouse events (for web)
|
|
68
|
-
onMouseEnter?: (event: NativeSyntheticEvent<TargetedEvent>) => void;
|
|
69
|
-
onMouseLeave?: (event: NativeSyntheticEvent<TargetedEvent>) => void;
|
|
70
|
-
|
|
71
|
-
// Styling
|
|
72
|
-
style?: StyleProp<ViewStyle>;
|
|
73
|
-
inputContainerStyle?: StyleProp<ViewStyle>;
|
|
74
|
-
inputStyle?: TextInputProps['style'];
|
|
75
|
-
leadingContainerStyle?: StyleProp<ViewStyle>;
|
|
76
|
-
trailingContainerStyle?: StyleProp<ViewStyle>;
|
|
77
|
-
|
|
78
|
-
// Callbacks
|
|
79
|
-
onValidationChange?: (isValid: boolean, value: string) => void;
|
|
80
|
-
onClear?: () => void;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Color palette for different states
|
|
84
|
-
const colorPalette = {
|
|
85
|
-
primary: {
|
|
86
|
-
main: '#d169e5',
|
|
87
|
-
light: '#e8b5f0',
|
|
88
|
-
dark: '#a64db3',
|
|
89
|
-
},
|
|
90
|
-
secondary: {
|
|
91
|
-
main: '#666666',
|
|
92
|
-
light: '#999999',
|
|
93
|
-
dark: '#333333',
|
|
94
|
-
},
|
|
95
|
-
error: {
|
|
96
|
-
main: '#D32F2F',
|
|
97
|
-
light: '#ffcdd2',
|
|
98
|
-
dark: '#b71c1c',
|
|
99
|
-
},
|
|
100
|
-
success: {
|
|
101
|
-
main: '#2E7D32',
|
|
102
|
-
light: '#c8e6c9',
|
|
103
|
-
dark: '#1b5e20',
|
|
104
|
-
},
|
|
105
|
-
warning: {
|
|
106
|
-
main: '#FF9800',
|
|
107
|
-
light: '#ffe0b2',
|
|
108
|
-
dark: '#e65100',
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
// Surface scale for consistent theming
|
|
113
|
-
const surfaceScale = (level: number) => {
|
|
114
|
-
const base = 255;
|
|
115
|
-
const value = Math.round(base - (level * 255));
|
|
116
|
-
return `#${value.toString(16).padStart(2, '0').repeat(3)}`;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// Password strength calculation
|
|
120
|
-
const calculatePasswordStrength = (password: string): { score: number; feedback: string; color: string; label: string } => {
|
|
121
|
-
if (!password) return { score: 0, feedback: '', color: '#E0E0E0', label: '' };
|
|
122
|
-
|
|
123
|
-
let score = 0;
|
|
124
|
-
const feedback: string[] = [];
|
|
125
|
-
|
|
126
|
-
if (password.length >= 8) score += 25;
|
|
127
|
-
else feedback.push('At least 8 characters');
|
|
128
|
-
|
|
129
|
-
if (/[A-Z]/.test(password)) score += 25;
|
|
130
|
-
else feedback.push('One uppercase letter');
|
|
131
|
-
|
|
132
|
-
if (/[a-z]/.test(password)) score += 25;
|
|
133
|
-
else feedback.push('One lowercase letter');
|
|
134
|
-
|
|
135
|
-
if (/[\d\W]/.test(password)) score += 25;
|
|
136
|
-
else feedback.push('One number or special character');
|
|
137
|
-
|
|
138
|
-
const colors = {
|
|
139
|
-
0: '#E0E0E0',
|
|
140
|
-
25: '#D32F2F',
|
|
141
|
-
50: '#FF9800',
|
|
142
|
-
75: '#2196F3',
|
|
143
|
-
100: '#4CAF50'
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
const labels = {
|
|
147
|
-
0: '',
|
|
148
|
-
25: 'Weak',
|
|
149
|
-
50: 'Fair',
|
|
150
|
-
75: 'Good',
|
|
151
|
-
100: 'Strong'
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
return {
|
|
155
|
-
score,
|
|
156
|
-
feedback: score === 100 ? 'Strong password!' : `Missing: ${feedback.join(', ')}`,
|
|
157
|
-
color: colors[score as keyof typeof colors] || colors[0],
|
|
158
|
-
label: labels[score as keyof typeof labels] || ''
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
// Input formatting utilities
|
|
163
|
-
const formatters = {
|
|
164
|
-
phone: (value: string) => {
|
|
165
|
-
const cleaned = value.replace(/\D/g, '');
|
|
166
|
-
const match = cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);
|
|
167
|
-
if (match) return `(${match[1]}) ${match[2]}-${match[3]}`;
|
|
168
|
-
return value;
|
|
169
|
-
},
|
|
170
|
-
creditCard: (value: string) => {
|
|
171
|
-
const cleaned = value.replace(/\D/g, '');
|
|
172
|
-
const match = cleaned.match(/^(\d{4})(\d{4})(\d{4})(\d{4})$/);
|
|
173
|
-
if (match) return `${match[1]} ${match[2]} ${match[3]} ${match[4]}`;
|
|
174
|
-
return value.replace(/(.{4})/g, '$1 ').trim();
|
|
175
|
-
},
|
|
176
|
-
currency: (value: string) => {
|
|
177
|
-
const cleaned = value.replace(/[^\d.]/g, '');
|
|
178
|
-
const num = Number.parseFloat(cleaned);
|
|
179
|
-
return isNaN(num) ? value : `$${num.toFixed(2)}`;
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// Debounce hook
|
|
184
|
-
const useDebounce = (value: string, delay: number) => {
|
|
185
|
-
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
186
|
-
|
|
187
|
-
useEffect(() => {
|
|
188
|
-
const handler = setTimeout(() => {
|
|
189
|
-
setDebouncedValue(value);
|
|
190
|
-
}, delay);
|
|
191
|
-
|
|
192
|
-
return () => {
|
|
193
|
-
clearTimeout(handler);
|
|
194
|
-
};
|
|
195
|
-
}, [value, delay]);
|
|
196
|
-
|
|
197
|
-
return debouncedValue;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
const TextField = forwardRef<TextInput, TextFieldProps>(({
|
|
201
|
-
// Basic props
|
|
202
|
-
label,
|
|
203
|
-
variant = 'filled',
|
|
204
|
-
color = 'primary',
|
|
205
|
-
|
|
206
|
-
// Leading and trailing
|
|
207
|
-
leading,
|
|
208
|
-
trailing,
|
|
209
|
-
|
|
210
|
-
// States
|
|
211
|
-
error,
|
|
212
|
-
success = false,
|
|
213
|
-
loading = false,
|
|
214
|
-
disabled = false,
|
|
215
|
-
|
|
216
|
-
// Helper text
|
|
217
|
-
helperText,
|
|
218
|
-
|
|
219
|
-
// Enhanced features
|
|
220
|
-
maxLength,
|
|
221
|
-
showCharacterCount,
|
|
222
|
-
inputMask,
|
|
223
|
-
customMask,
|
|
224
|
-
formatValue,
|
|
225
|
-
validateOnChange,
|
|
226
|
-
debounceMs = 300,
|
|
227
|
-
passwordStrength = false,
|
|
228
|
-
clearable = false,
|
|
229
|
-
|
|
230
|
-
// Mouse events
|
|
231
|
-
onMouseEnter,
|
|
232
|
-
onMouseLeave,
|
|
233
|
-
|
|
234
|
-
// Styling
|
|
235
|
-
style,
|
|
236
|
-
inputContainerStyle,
|
|
237
|
-
inputStyle,
|
|
238
|
-
leadingContainerStyle,
|
|
239
|
-
trailingContainerStyle,
|
|
240
|
-
|
|
241
|
-
// Callbacks
|
|
242
|
-
onValidationChange,
|
|
243
|
-
onClear,
|
|
244
|
-
|
|
245
|
-
// TextInput props
|
|
246
|
-
placeholder,
|
|
247
|
-
onFocus,
|
|
248
|
-
onBlur,
|
|
249
|
-
onChangeText,
|
|
250
|
-
value = '',
|
|
251
|
-
secureTextEntry,
|
|
252
|
-
...rest
|
|
253
|
-
}, ref) => {
|
|
254
|
-
// State management
|
|
255
|
-
const [focused, setFocused] = useState(false);
|
|
256
|
-
const [hovered, setHovered] = useState(false);
|
|
257
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
258
|
-
const [internalValue, setInternalValue] = useState(value);
|
|
259
|
-
const [isValidating, setIsValidating] = useState(false);
|
|
260
|
-
|
|
261
|
-
// Refs
|
|
262
|
-
const focusAnimation = useRef(new Animated.Value(0)).current;
|
|
263
|
-
const activeAnimation = useRef(new Animated.Value(Boolean(value) ? 1 : 0)).current;
|
|
264
|
-
const inputRef = useRef<TextInput>(null);
|
|
265
|
-
const containerRef = useRef<View>(null);
|
|
266
|
-
const inputLayoutRef = useRef<{ x: number; y: number; width: number; height: number } | null>(null);
|
|
267
|
-
|
|
268
|
-
// Try to get bottom sheet internal context if available
|
|
269
|
-
// Note: We check if the hook exists before calling to avoid errors when not in bottom sheet context
|
|
270
|
-
let bottomSheetInternal: any = null;
|
|
271
|
-
if (useBottomSheetInternal) {
|
|
272
|
-
try {
|
|
273
|
-
bottomSheetInternal = useBottomSheetInternal();
|
|
274
|
-
// Verify it's actually a valid bottom sheet context object
|
|
275
|
-
if (!bottomSheetInternal || typeof bottomSheetInternal !== 'object') {
|
|
276
|
-
bottomSheetInternal = null;
|
|
277
|
-
}
|
|
278
|
-
} catch {
|
|
279
|
-
// Not in bottom sheet context, that's fine - hook will throw if not in provider
|
|
280
|
-
bottomSheetInternal = null;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// Get color palette
|
|
285
|
-
const palette = colorPalette[color] || colorPalette.primary;
|
|
286
|
-
|
|
287
|
-
// Determine if we should show error colors
|
|
288
|
-
const effectiveColor = error ? 'error' : success ? 'success' : color;
|
|
289
|
-
const effectivePalette = colorPalette[effectiveColor] || colorPalette.primary;
|
|
290
|
-
|
|
291
|
-
// Get icon color based on focus state and error state
|
|
292
|
-
const iconColor = error
|
|
293
|
-
? effectivePalette.main // Always show error color when there's an error
|
|
294
|
-
: focused
|
|
295
|
-
? effectivePalette.main
|
|
296
|
-
: surfaceScale(0.62);
|
|
297
|
-
|
|
298
|
-
// Helper function to clone React elements with updated color
|
|
299
|
-
// React 19: ref is now a regular prop, accessed via element.props.ref
|
|
300
|
-
const cloneWithColor = (element: React.ReactNode, color: string): React.ReactNode => {
|
|
301
|
-
if (React.isValidElement(element) && element.type) {
|
|
302
|
-
// React 19: ref is now in props, so we spread all props and override color
|
|
303
|
-
const elementProps = (element as any).props || {};
|
|
304
|
-
return React.cloneElement(element as any, { ...elementProps, color });
|
|
305
|
-
}
|
|
306
|
-
return element;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
// Render leading/trailing elements
|
|
310
|
-
const leadingNode = typeof leading === 'function'
|
|
311
|
-
? leading({ color: iconColor, size: 24 })
|
|
312
|
-
: cloneWithColor(leading, iconColor);
|
|
313
|
-
|
|
314
|
-
const trailingNode = typeof trailing === 'function'
|
|
315
|
-
? trailing({ color: iconColor, size: 24 })
|
|
316
|
-
: cloneWithColor(trailing, iconColor);
|
|
317
|
-
|
|
318
|
-
// Debounced value for validation
|
|
319
|
-
const debouncedValue = useDebounce(internalValue, debounceMs);
|
|
320
|
-
|
|
321
|
-
// Password strength calculation
|
|
322
|
-
const passwordStrengthData = useMemo(() => {
|
|
323
|
-
if (passwordStrength && secureTextEntry && internalValue) {
|
|
324
|
-
return calculatePasswordStrength(internalValue);
|
|
325
|
-
}
|
|
326
|
-
return null;
|
|
327
|
-
}, [passwordStrength, secureTextEntry, internalValue]);
|
|
328
|
-
|
|
329
|
-
// Format input value
|
|
330
|
-
const formatInputValue = useCallback((text: string): string => {
|
|
331
|
-
if (formatValue) return formatValue(text);
|
|
332
|
-
if (inputMask && inputMask !== 'custom' && formatters[inputMask as keyof typeof formatters]) {
|
|
333
|
-
return formatters[inputMask as keyof typeof formatters](text);
|
|
334
|
-
}
|
|
335
|
-
if (customMask) return customMask(text);
|
|
336
|
-
return text;
|
|
337
|
-
}, [formatValue, inputMask, customMask]);
|
|
338
|
-
|
|
339
|
-
// Measure input position for bottom sheet scrolling
|
|
340
|
-
const measureInputPosition = useCallback(() => {
|
|
341
|
-
if (containerRef.current && bottomSheetInternal) {
|
|
342
|
-
containerRef.current.measureLayout(
|
|
343
|
-
bottomSheetInternal.contentWrapper?.current || bottomSheetInternal.scrollableContentRef?.current,
|
|
344
|
-
(x, y, width, height) => {
|
|
345
|
-
inputLayoutRef.current = { x, y, width, height };
|
|
346
|
-
},
|
|
347
|
-
() => {
|
|
348
|
-
// Measurement failed, ignore
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
}
|
|
352
|
-
}, [bottomSheetInternal]);
|
|
353
|
-
|
|
354
|
-
// Handle focus
|
|
355
|
-
const handleFocus = useCallback((event: FocusEvent) => {
|
|
356
|
-
if (disabled) return;
|
|
357
|
-
setFocused(true);
|
|
358
|
-
|
|
359
|
-
// If inside bottom sheet, measure and scroll to input to ensure it's visible above keyboard
|
|
360
|
-
if (bottomSheetInternal && inputRef.current) {
|
|
361
|
-
// Use setTimeout to ensure layout is complete
|
|
362
|
-
setTimeout(() => {
|
|
363
|
-
try {
|
|
364
|
-
measureInputPosition();
|
|
365
|
-
// Scroll to the input position with some padding
|
|
366
|
-
if (inputLayoutRef.current && bottomSheetInternal.scrollTo) {
|
|
367
|
-
bottomSheetInternal.scrollTo({
|
|
368
|
-
y: Math.max(0, inputLayoutRef.current.y - 20), // 20px padding from top
|
|
369
|
-
animated: true,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
} catch (error) {
|
|
373
|
-
// Silently fail if scrollTo is not available or fails
|
|
374
|
-
if (__DEV__) {
|
|
375
|
-
console.debug('Bottom sheet scrollTo failed:', error);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}, 100);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// Convert FocusEvent to the expected type for parent callback
|
|
382
|
-
const syntheticEvent = event as any;
|
|
383
|
-
onFocus?.(syntheticEvent);
|
|
384
|
-
}, [disabled, onFocus, bottomSheetInternal, measureInputPosition]);
|
|
385
|
-
|
|
386
|
-
// Handle blur
|
|
387
|
-
const handleBlur = useCallback((event: BlurEvent) => {
|
|
388
|
-
setFocused(false);
|
|
389
|
-
// Convert BlurEvent to the expected type for parent callback
|
|
390
|
-
const syntheticEvent = event as any;
|
|
391
|
-
onBlur?.(syntheticEvent);
|
|
392
|
-
}, [onBlur]);
|
|
393
|
-
|
|
394
|
-
// Handle mouse events
|
|
395
|
-
const handleMouseEnter = useCallback((event: NativeSyntheticEvent<TargetedEvent>) => {
|
|
396
|
-
onMouseEnter?.(event);
|
|
397
|
-
setHovered(true);
|
|
398
|
-
}, [onMouseEnter]);
|
|
399
|
-
|
|
400
|
-
const handleMouseLeave = useCallback((event: NativeSyntheticEvent<TargetedEvent>) => {
|
|
401
|
-
onMouseLeave?.(event);
|
|
402
|
-
setHovered(false);
|
|
403
|
-
}, [onMouseLeave]);
|
|
404
|
-
|
|
405
|
-
// Handle text change
|
|
406
|
-
const handleChangeText = useCallback((text: string) => {
|
|
407
|
-
const formattedText = formatInputValue(text);
|
|
408
|
-
setInternalValue(formattedText);
|
|
409
|
-
onChangeText?.(formattedText);
|
|
410
|
-
}, [formatInputValue, onChangeText]);
|
|
411
|
-
|
|
412
|
-
// Handle clear
|
|
413
|
-
const handleClear = useCallback(() => {
|
|
414
|
-
setInternalValue('');
|
|
415
|
-
onChangeText?.('');
|
|
416
|
-
onClear?.();
|
|
417
|
-
inputRef.current?.focus();
|
|
418
|
-
}, [onChangeText, onClear]);
|
|
419
|
-
|
|
420
|
-
// Toggle password visibility
|
|
421
|
-
const togglePasswordVisibility = useCallback(() => {
|
|
422
|
-
setShowPassword(prev => !prev);
|
|
423
|
-
}, []);
|
|
424
|
-
|
|
425
|
-
// Animate focus state
|
|
426
|
-
useEffect(() => {
|
|
427
|
-
Animated.timing(focusAnimation, {
|
|
428
|
-
toValue: focused ? 1 : 0,
|
|
429
|
-
duration: 200,
|
|
430
|
-
useNativeDriver: false,
|
|
431
|
-
}).start();
|
|
432
|
-
}, [focused, focusAnimation]);
|
|
433
|
-
|
|
434
|
-
// Animate active state (when focused or has value)
|
|
435
|
-
useEffect(() => {
|
|
436
|
-
const shouldBeActive = focused || Boolean(internalValue);
|
|
437
|
-
Animated.timing(activeAnimation, {
|
|
438
|
-
toValue: shouldBeActive ? 1 : 0,
|
|
439
|
-
duration: 200,
|
|
440
|
-
useNativeDriver: false,
|
|
441
|
-
}).start();
|
|
442
|
-
}, [focused, internalValue, activeAnimation]);
|
|
443
|
-
|
|
444
|
-
// Validation effect
|
|
445
|
-
useEffect(() => {
|
|
446
|
-
if (!validateOnChange || !onValidationChange) return;
|
|
447
|
-
|
|
448
|
-
const timer = setTimeout(() => {
|
|
449
|
-
setIsValidating(true);
|
|
450
|
-
const isValid = !error && debouncedValue.length > 0;
|
|
451
|
-
onValidationChange(isValid, debouncedValue);
|
|
452
|
-
setIsValidating(false);
|
|
453
|
-
}, 100);
|
|
454
|
-
|
|
455
|
-
return () => clearTimeout(timer);
|
|
456
|
-
}, [debouncedValue, validateOnChange, onValidationChange, error]);
|
|
457
|
-
|
|
458
|
-
// Update internal value when prop changes
|
|
459
|
-
useEffect(() => {
|
|
460
|
-
setInternalValue(value);
|
|
461
|
-
}, [value]);
|
|
462
|
-
|
|
463
|
-
// Styles
|
|
464
|
-
const styles = useMemo(() => {
|
|
465
|
-
const isActive = focused || Boolean(internalValue);
|
|
466
|
-
|
|
467
|
-
return StyleSheet.create({
|
|
468
|
-
container: {
|
|
469
|
-
width: '100%',
|
|
470
|
-
marginBottom: 24,
|
|
471
|
-
},
|
|
472
|
-
inputContainer: {
|
|
473
|
-
flexDirection: 'row',
|
|
474
|
-
alignItems: 'center',
|
|
475
|
-
minHeight: variant === 'standard' ? 48 : 56,
|
|
476
|
-
backgroundColor: variant === 'filled'
|
|
477
|
-
? focused
|
|
478
|
-
? surfaceScale(0.08)
|
|
479
|
-
: hovered
|
|
480
|
-
? surfaceScale(0.08)
|
|
481
|
-
: surfaceScale(0.04)
|
|
482
|
-
: 'transparent',
|
|
483
|
-
borderRadius: variant === 'standard' ? 0 : (variant === 'filled' ? 16 : 8),
|
|
484
|
-
borderTopLeftRadius: variant === 'filled' ? 16 : undefined,
|
|
485
|
-
borderTopRightRadius: variant === 'filled' ? 16 : undefined,
|
|
486
|
-
borderBottomLeftRadius: variant === 'filled' ? 0 : undefined,
|
|
487
|
-
borderBottomRightRadius: variant === 'filled' ? 0 : undefined,
|
|
488
|
-
borderWidth: variant === 'outlined' ? (focused ? 2 : 1) : 0,
|
|
489
|
-
borderColor: error
|
|
490
|
-
? effectivePalette.main // Always show error color when there's an error
|
|
491
|
-
: focused
|
|
492
|
-
? effectivePalette.main
|
|
493
|
-
: hovered
|
|
494
|
-
? surfaceScale(0.87)
|
|
495
|
-
: surfaceScale(0.42),
|
|
496
|
-
position: 'relative',
|
|
497
|
-
...Platform.select({
|
|
498
|
-
web: {
|
|
499
|
-
outlineStyle: undefined,
|
|
500
|
-
outlineWidth: 0,
|
|
501
|
-
outlineOffset: 0,
|
|
502
|
-
},
|
|
503
|
-
default: {},
|
|
504
|
-
}),
|
|
505
|
-
},
|
|
506
|
-
input: {
|
|
507
|
-
flex: 1,
|
|
508
|
-
minHeight: variant === 'standard' ? 48 : 56,
|
|
509
|
-
paddingStart: leadingNode ? 12 : variant === 'standard' ? 0 : 16,
|
|
510
|
-
paddingEnd: (trailingNode || clearable || secureTextEntry) ? 12 : variant === 'standard' ? 0 : 16,
|
|
511
|
-
paddingTop: variant === 'filled' && label ? 18 : 0,
|
|
512
|
-
color: surfaceScale(0.87),
|
|
513
|
-
fontSize: 16,
|
|
514
|
-
borderWidth: 0,
|
|
515
|
-
backgroundColor: 'transparent',
|
|
516
|
-
...Platform.select({
|
|
517
|
-
web: {
|
|
518
|
-
border: 'none',
|
|
519
|
-
outlineStyle: undefined,
|
|
520
|
-
outlineWidth: 0,
|
|
521
|
-
outlineOffset: 0,
|
|
522
|
-
boxShadow: 'none',
|
|
523
|
-
'-webkit-appearance': 'none',
|
|
524
|
-
'-moz-appearance': 'none',
|
|
525
|
-
appearance: 'none',
|
|
526
|
-
},
|
|
527
|
-
default: {},
|
|
528
|
-
}),
|
|
529
|
-
},
|
|
530
|
-
leading: {
|
|
531
|
-
justifyContent: 'center',
|
|
532
|
-
alignItems: 'center',
|
|
533
|
-
width: 24,
|
|
534
|
-
height: 24,
|
|
535
|
-
marginStart: variant === 'standard' ? 0 : 12,
|
|
536
|
-
marginVertical: variant === 'standard' ? 12 : 16,
|
|
537
|
-
},
|
|
538
|
-
trailing: {
|
|
539
|
-
flexDirection: 'row',
|
|
540
|
-
justifyContent: 'center',
|
|
541
|
-
alignItems: 'center',
|
|
542
|
-
marginEnd: variant === 'standard' ? 0 : 12,
|
|
543
|
-
marginVertical: variant === 'standard' ? 12 : 16,
|
|
544
|
-
},
|
|
545
|
-
underline: {
|
|
546
|
-
position: 'absolute',
|
|
547
|
-
start: 0,
|
|
548
|
-
end: 0,
|
|
549
|
-
bottom: 0,
|
|
550
|
-
height: 1,
|
|
551
|
-
backgroundColor: error
|
|
552
|
-
? effectivePalette.main // Always show error color when there's an error
|
|
553
|
-
: hovered
|
|
554
|
-
? surfaceScale(0.87)
|
|
555
|
-
: surfaceScale(0.42),
|
|
556
|
-
},
|
|
557
|
-
underlineFocused: {
|
|
558
|
-
position: 'absolute',
|
|
559
|
-
start: 0,
|
|
560
|
-
end: 0,
|
|
561
|
-
bottom: 0,
|
|
562
|
-
height: 2,
|
|
563
|
-
backgroundColor: effectivePalette.main,
|
|
564
|
-
},
|
|
565
|
-
labelContainer: {
|
|
566
|
-
justifyContent: 'center',
|
|
567
|
-
position: 'absolute',
|
|
568
|
-
top: 0,
|
|
569
|
-
start: variant === 'standard' ? (leadingNode ? 36 : 0) : leadingNode ? 48 : 16,
|
|
570
|
-
height: variant === 'standard' ? 48 : 56,
|
|
571
|
-
},
|
|
572
|
-
label: {
|
|
573
|
-
fontSize: 16,
|
|
574
|
-
fontFamily: fontFamilies.phuduSemiBold,
|
|
575
|
-
color: surfaceScale(0.87),
|
|
576
|
-
},
|
|
577
|
-
helperText: {
|
|
578
|
-
fontSize: 12,
|
|
579
|
-
fontFamily: fontFamilies.phuduMedium,
|
|
580
|
-
marginTop: 4,
|
|
581
|
-
marginHorizontal: 16,
|
|
582
|
-
color: surfaceScale(0.6),
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
passwordStrengthContainer: {
|
|
586
|
-
marginTop: 8,
|
|
587
|
-
marginHorizontal: 16,
|
|
588
|
-
},
|
|
589
|
-
passwordStrengthBar: {
|
|
590
|
-
height: 4,
|
|
591
|
-
backgroundColor: '#E0E0E0',
|
|
592
|
-
borderRadius: 2,
|
|
593
|
-
overflow: 'hidden',
|
|
594
|
-
},
|
|
595
|
-
passwordStrengthFill: {
|
|
596
|
-
height: '100%',
|
|
597
|
-
borderRadius: 2,
|
|
598
|
-
},
|
|
599
|
-
passwordStrengthText: {
|
|
600
|
-
fontSize: 11,
|
|
601
|
-
fontWeight: '600',
|
|
602
|
-
marginTop: 4,
|
|
603
|
-
},
|
|
604
|
-
characterCount: {
|
|
605
|
-
fontSize: 11,
|
|
606
|
-
marginTop: 4,
|
|
607
|
-
marginHorizontal: 16,
|
|
608
|
-
textAlign: 'right',
|
|
609
|
-
color: surfaceScale(0.6),
|
|
610
|
-
},
|
|
611
|
-
clearButton: {
|
|
612
|
-
padding: 4,
|
|
613
|
-
marginLeft: 8,
|
|
614
|
-
},
|
|
615
|
-
passwordToggle: {
|
|
616
|
-
padding: 4,
|
|
617
|
-
marginLeft: 8,
|
|
618
|
-
},
|
|
619
|
-
validationIndicator: {
|
|
620
|
-
marginLeft: 8,
|
|
621
|
-
},
|
|
622
|
-
});
|
|
623
|
-
}, [variant, focused, hovered, effectivePalette, leadingNode, trailingNode, clearable, secureTextEntry, label, error, internalValue]);
|
|
624
|
-
|
|
625
|
-
// Character count display
|
|
626
|
-
const characterCount = internalValue.length;
|
|
627
|
-
const showCount = showCharacterCount && maxLength;
|
|
628
|
-
|
|
629
|
-
// Render password strength indicator
|
|
630
|
-
const renderPasswordStrength = () => {
|
|
631
|
-
if (!passwordStrengthData) return null;
|
|
632
|
-
|
|
633
|
-
return (
|
|
634
|
-
<View style={styles.passwordStrengthContainer}>
|
|
635
|
-
<View style={styles.passwordStrengthBar}>
|
|
636
|
-
<View
|
|
637
|
-
style={[
|
|
638
|
-
styles.passwordStrengthFill,
|
|
639
|
-
{
|
|
640
|
-
width: `${passwordStrengthData.score}%`,
|
|
641
|
-
backgroundColor: passwordStrengthData.color
|
|
642
|
-
}
|
|
643
|
-
]}
|
|
644
|
-
/>
|
|
645
|
-
</View>
|
|
646
|
-
<Text style={[styles.passwordStrengthText, { color: passwordStrengthData.color }]}>
|
|
647
|
-
{passwordStrengthData.label}
|
|
648
|
-
</Text>
|
|
649
|
-
</View>
|
|
650
|
-
);
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
// Render character count
|
|
654
|
-
const renderCharacterCount = () => {
|
|
655
|
-
if (!showCount) return null;
|
|
656
|
-
|
|
657
|
-
return (
|
|
658
|
-
<Text style={styles.characterCount}>
|
|
659
|
-
{characterCount}/{maxLength}
|
|
660
|
-
</Text>
|
|
661
|
-
);
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
// Get helper text content (error takes precedence over helper text)
|
|
665
|
-
const helperTextContent = error || helperText;
|
|
666
|
-
|
|
667
|
-
// Render trailing elements
|
|
668
|
-
const renderTrailingElements = () => {
|
|
669
|
-
const elements = [];
|
|
670
|
-
|
|
671
|
-
// Loading indicator
|
|
672
|
-
if (isValidating) {
|
|
673
|
-
elements.push(
|
|
674
|
-
<ActivityIndicator
|
|
675
|
-
key="validating"
|
|
676
|
-
size="small"
|
|
677
|
-
color={effectivePalette.main}
|
|
678
|
-
style={styles.validationIndicator}
|
|
679
|
-
/>
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
// Loading indicator
|
|
684
|
-
if (loading && !isValidating) {
|
|
685
|
-
elements.push(
|
|
686
|
-
<ActivityIndicator
|
|
687
|
-
key="loading"
|
|
688
|
-
size="small"
|
|
689
|
-
color={effectivePalette.main}
|
|
690
|
-
style={styles.validationIndicator}
|
|
691
|
-
/>
|
|
692
|
-
);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
// Success indicator
|
|
696
|
-
if (success && !loading && !isValidating) {
|
|
697
|
-
elements.push(
|
|
698
|
-
<Ionicons
|
|
699
|
-
key="success"
|
|
700
|
-
name="checkmark-circle"
|
|
701
|
-
size={22}
|
|
702
|
-
color={colorPalette.success.main}
|
|
703
|
-
style={styles.validationIndicator}
|
|
704
|
-
/>
|
|
705
|
-
);
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
// Clear button
|
|
709
|
-
if (clearable && internalValue && !secureTextEntry) {
|
|
710
|
-
elements.push(
|
|
711
|
-
<TouchableOpacity
|
|
712
|
-
key="clear"
|
|
713
|
-
style={styles.clearButton}
|
|
714
|
-
onPress={handleClear}
|
|
715
|
-
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
716
|
-
accessibilityLabel="Clear input"
|
|
717
|
-
accessibilityRole="button"
|
|
718
|
-
>
|
|
719
|
-
<Ionicons
|
|
720
|
-
name="close-circle"
|
|
721
|
-
size={20}
|
|
722
|
-
color={iconColor}
|
|
723
|
-
/>
|
|
724
|
-
</TouchableOpacity>
|
|
725
|
-
);
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
// Password toggle
|
|
729
|
-
if (secureTextEntry) {
|
|
730
|
-
elements.push(
|
|
731
|
-
<TouchableOpacity
|
|
732
|
-
key="password"
|
|
733
|
-
style={styles.passwordToggle}
|
|
734
|
-
onPress={togglePasswordVisibility}
|
|
735
|
-
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
736
|
-
accessibilityLabel={showPassword ? "Hide password" : "Show password"}
|
|
737
|
-
accessibilityRole="button"
|
|
738
|
-
>
|
|
739
|
-
<Ionicons
|
|
740
|
-
name={showPassword ? "eye-off" : "eye"}
|
|
741
|
-
size={22}
|
|
742
|
-
color={iconColor}
|
|
743
|
-
/>
|
|
744
|
-
</TouchableOpacity>
|
|
745
|
-
);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
return elements;
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
return (
|
|
752
|
-
<View
|
|
753
|
-
ref={containerRef}
|
|
754
|
-
style={[styles.container, style]}
|
|
755
|
-
{...(Platform.OS === 'web' && { className: 'oxy-textfield-container' })}
|
|
756
|
-
>
|
|
757
|
-
<View
|
|
758
|
-
style={[
|
|
759
|
-
styles.inputContainer,
|
|
760
|
-
inputContainerStyle,
|
|
761
|
-
]}
|
|
762
|
-
{...(Platform.OS === 'web' && {
|
|
763
|
-
onMouseEnter: handleMouseEnter,
|
|
764
|
-
onMouseLeave: handleMouseLeave,
|
|
765
|
-
})}
|
|
766
|
-
>
|
|
767
|
-
{/* Leading element */}
|
|
768
|
-
{leadingNode && (
|
|
769
|
-
<View style={[styles.leading, leadingContainerStyle]}>
|
|
770
|
-
{leadingNode}
|
|
771
|
-
</View>
|
|
772
|
-
)}
|
|
773
|
-
|
|
774
|
-
{/* Text Input */}
|
|
775
|
-
<TextInput
|
|
776
|
-
ref={(r) => {
|
|
777
|
-
if (typeof ref === 'function') {
|
|
778
|
-
ref(r);
|
|
779
|
-
} else if (ref && typeof ref === 'object') {
|
|
780
|
-
// @ts-ignore - React ref assignment
|
|
781
|
-
ref.current = r;
|
|
782
|
-
}
|
|
783
|
-
// @ts-ignore - Internal ref assignment
|
|
784
|
-
inputRef.current = r;
|
|
785
|
-
}}
|
|
786
|
-
style={[styles.input, inputStyle]}
|
|
787
|
-
placeholder={label ? (focused ? placeholder : undefined) : placeholder}
|
|
788
|
-
placeholderTextColor={surfaceScale(0.4)}
|
|
789
|
-
selectionColor={effectivePalette.main}
|
|
790
|
-
onFocus={handleFocus}
|
|
791
|
-
onBlur={handleBlur}
|
|
792
|
-
onChangeText={handleChangeText}
|
|
793
|
-
secureTextEntry={secureTextEntry && !showPassword}
|
|
794
|
-
value={internalValue}
|
|
795
|
-
editable={!disabled}
|
|
796
|
-
maxLength={maxLength}
|
|
797
|
-
{...(Platform.OS === 'web' && { className: 'oxy-textfield-input' })}
|
|
798
|
-
{...rest}
|
|
799
|
-
/>
|
|
800
|
-
|
|
801
|
-
{/* Trailing elements */}
|
|
802
|
-
<View style={[styles.trailing, trailingContainerStyle]}>
|
|
803
|
-
{trailingNode}
|
|
804
|
-
{renderTrailingElements()}
|
|
805
|
-
</View>
|
|
806
|
-
|
|
807
|
-
{/* Underline for filled/standard variants */}
|
|
808
|
-
{(variant === 'filled' || variant === 'standard') && (
|
|
809
|
-
<>
|
|
810
|
-
<View style={[styles.underline, { pointerEvents: 'none' }]} />
|
|
811
|
-
<Animated.View
|
|
812
|
-
style={[
|
|
813
|
-
styles.underlineFocused,
|
|
814
|
-
{ transform: [{ scaleX: focusAnimation }], pointerEvents: 'none' }
|
|
815
|
-
]}
|
|
816
|
-
/>
|
|
817
|
-
</>
|
|
818
|
-
)}
|
|
819
|
-
|
|
820
|
-
{/* Label */}
|
|
821
|
-
{label && (
|
|
822
|
-
<View style={[styles.labelContainer, { pointerEvents: 'none' }]}>
|
|
823
|
-
<Animated.Text
|
|
824
|
-
style={[
|
|
825
|
-
styles.label,
|
|
826
|
-
{
|
|
827
|
-
color: focusAnimation.interpolate({
|
|
828
|
-
inputRange: [0, 1],
|
|
829
|
-
outputRange: [
|
|
830
|
-
error ? effectivePalette.main : surfaceScale(0.87),
|
|
831
|
-
effectivePalette.main
|
|
832
|
-
],
|
|
833
|
-
}),
|
|
834
|
-
fontSize: activeAnimation.interpolate({
|
|
835
|
-
inputRange: [0, 1],
|
|
836
|
-
outputRange: [16, 12],
|
|
837
|
-
}),
|
|
838
|
-
transform: [
|
|
839
|
-
{
|
|
840
|
-
translateY: activeAnimation.interpolate({
|
|
841
|
-
inputRange: [0, 1],
|
|
842
|
-
outputRange: [0, variant === 'filled' ? -12 : variant === 'outlined' ? -28 : -24],
|
|
843
|
-
}),
|
|
844
|
-
},
|
|
845
|
-
],
|
|
846
|
-
},
|
|
847
|
-
]}
|
|
848
|
-
>
|
|
849
|
-
{label}
|
|
850
|
-
</Animated.Text>
|
|
851
|
-
</View>
|
|
852
|
-
)}
|
|
853
|
-
</View>
|
|
854
|
-
|
|
855
|
-
{/* Helper text or error message */}
|
|
856
|
-
{helperTextContent && (
|
|
857
|
-
<Text style={[
|
|
858
|
-
styles.helperText,
|
|
859
|
-
error && { color: effectivePalette.main }
|
|
860
|
-
]}>
|
|
861
|
-
{helperTextContent}
|
|
862
|
-
</Text>
|
|
863
|
-
)}
|
|
864
|
-
|
|
865
|
-
{/* Password strength indicator */}
|
|
866
|
-
{renderPasswordStrength()}
|
|
867
|
-
|
|
868
|
-
{/* Character count */}
|
|
869
|
-
{renderCharacterCount()}
|
|
870
|
-
</View>
|
|
871
|
-
);
|
|
872
|
-
});
|
|
873
|
-
|
|
874
|
-
TextField.displayName = 'TextField';
|
|
875
|
-
|
|
876
|
-
export default TextField;
|