@oxyhq/services 6.9.32 → 6.9.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ui/components/Avatar.js +5 -3
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheet.js +2 -2
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +3 -4
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +13 -65
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +12 -18
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +11 -18
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/HelperText.js +6 -14
- package/lib/commonjs/ui/components/HelperText.js.map +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +4 -2
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +13 -20
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -1
- package/lib/commonjs/ui/components/QuickActions.js +9 -13
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +2 -8
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +10 -16
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +6 -4
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +6 -4
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +36 -51
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +68 -82
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +35 -48
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +22 -34
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/theming.js +14 -1
- package/lib/commonjs/ui/components/theming.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +15 -27
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +44 -49
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +22 -29
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +2 -25
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +20 -40
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +28 -24
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +25 -29
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +26 -27
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +70 -108
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +106 -119
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +13 -10
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +13 -10
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +9 -13
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +19 -20
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +16 -14
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +33 -60
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -5
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +10 -16
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +65 -69
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +79 -110
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +16 -13
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +13 -17
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +17 -30
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +6 -12
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +41 -35
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +15 -14
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +7 -12
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +25 -23
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +9 -17
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +6 -11
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +18 -22
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +6 -11
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/components/Avatar.js +5 -3
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +2 -2
- package/lib/module/ui/components/BottomSheet.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +3 -4
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +12 -64
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +12 -18
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/Header.js +11 -18
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +6 -15
- package/lib/module/ui/components/HelperText.js.map +1 -1
- package/lib/module/ui/components/OxyLogo.js +4 -2
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +13 -20
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/QuickActions.js +9 -13
- package/lib/module/ui/components/QuickActions.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +2 -8
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +10 -16
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/TextField/TextFieldFlat.js +6 -4
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +1 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +6 -4
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +36 -51
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +68 -82
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +35 -48
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +22 -34
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/theming.js +15 -2
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +14 -26
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +45 -50
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +21 -28
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +2 -25
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +21 -41
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +28 -24
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +25 -29
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +26 -27
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +70 -108
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +106 -119
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +13 -10
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +13 -10
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +9 -13
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +19 -20
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +16 -14
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +33 -60
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +2 -5
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +10 -16
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +65 -69
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +77 -108
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +16 -13
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +13 -17
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +17 -30
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +6 -12
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +39 -33
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +15 -14
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +7 -12
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +25 -23
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +8 -16
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +6 -11
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +17 -21
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +6 -11
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/theming.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts +0 -11
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/HelperText.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/QuickActions.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SectionTitle.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +2 -2
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +2 -2
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +2 -2
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/theming.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -1
- package/lib/typescript/nativewind-env.d.ts +1 -0
- package/package.json +8 -2
- package/src/nativewind-env.d.ts +1 -0
- package/src/ui/components/Avatar.tsx +3 -3
- package/src/ui/components/BottomSheet.tsx +2 -3
- package/src/ui/components/BottomSheetRouter.tsx +2 -2
- package/src/ui/components/FollowButton.tsx +14 -50
- package/src/ui/components/GroupedItem.tsx +8 -15
- package/src/ui/components/Header.tsx +7 -15
- package/src/ui/components/HelperText.tsx +4 -15
- package/src/ui/components/OxyLogo.tsx +2 -2
- package/src/ui/components/ProfileCard.tsx +14 -17
- package/src/ui/components/QuickActions.tsx +12 -14
- package/src/ui/components/SectionTitle.tsx +1 -7
- package/src/ui/components/SignInModal.tsx +4 -6
- package/src/ui/components/TextField/TextFieldFlat.tsx +4 -4
- package/src/ui/components/TextField/TextFieldOutlined.tsx +4 -4
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +23 -22
- package/src/ui/components/fileManagement/FileViewer.tsx +57 -45
- package/src/ui/components/fileManagement/UploadPreview.tsx +23 -28
- package/src/ui/components/modals/DeleteAccountModal.tsx +13 -12
- package/src/ui/components/theming.tsx +15 -2
- package/src/ui/screens/AccountCenterScreen.tsx +10 -13
- package/src/ui/screens/AccountOverviewScreen.tsx +39 -39
- package/src/ui/screens/AccountSettingsScreen.tsx +15 -19
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -23
- package/src/ui/screens/AccountVerificationScreen.tsx +15 -33
- package/src/ui/screens/AppInfoScreen.tsx +28 -24
- package/src/ui/screens/EditProfileFieldScreen.tsx +24 -26
- package/src/ui/screens/FAQScreen.tsx +23 -23
- package/src/ui/screens/FeedbackScreen.tsx +47 -38
- package/src/ui/screens/FileManagementScreen.tsx +102 -116
- package/src/ui/screens/HelpSupportScreen.tsx +12 -8
- package/src/ui/screens/HistoryViewScreen.tsx +12 -8
- package/src/ui/screens/LanguageSelectorScreen.tsx +8 -11
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +17 -17
- package/src/ui/screens/LegalDocumentsScreen.tsx +14 -10
- package/src/ui/screens/OxyAuthScreen.tsx +17 -27
- package/src/ui/screens/PaymentGatewayScreen.tsx +1 -3
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +10 -7
- package/src/ui/screens/PrivacySettingsScreen.tsx +63 -65
- package/src/ui/screens/ProfileScreen.tsx +54 -58
- package/src/ui/screens/SavesCollectionsScreen.tsx +15 -11
- package/src/ui/screens/SearchSettingsScreen.tsx +11 -13
- package/src/ui/screens/SessionManagementScreen.tsx +12 -12
- package/src/ui/screens/UserLinksScreen.tsx +4 -8
- package/src/ui/screens/UserListScreen.tsx +34 -46
- package/src/ui/screens/WelcomeNewUserScreen.tsx +11 -6
- package/src/ui/screens/karma/KarmaAboutScreen.tsx +6 -10
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +23 -19
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +7 -14
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +5 -9
- package/src/ui/screens/karma/KarmaRewardsScreen.tsx +15 -17
- package/src/ui/screens/karma/KarmaRulesScreen.tsx +5 -9
|
@@ -6,18 +6,7 @@ import {
|
|
|
6
6
|
StyleSheet,
|
|
7
7
|
type TextStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
// Helper function for text color
|
|
12
|
-
const getTextColor = (colors: ReturnType<typeof useThemeColors>, disabled?: boolean, type?: 'error' | 'info') => {
|
|
13
|
-
if (type === 'error') {
|
|
14
|
-
return colors.error;
|
|
15
|
-
}
|
|
16
|
-
if (disabled) {
|
|
17
|
-
return `${colors.secondaryText}80`; // Add opacity
|
|
18
|
-
}
|
|
19
|
-
return colors.secondaryText;
|
|
20
|
-
};
|
|
9
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
21
10
|
|
|
22
11
|
export type HelperTextProps = {
|
|
23
12
|
/**
|
|
@@ -73,7 +62,7 @@ const HelperText = ({
|
|
|
73
62
|
maxFontSizeMultiplier = 1.5,
|
|
74
63
|
...rest
|
|
75
64
|
}: HelperTextProps) => {
|
|
76
|
-
const colors =
|
|
65
|
+
const { colors } = useTheme();
|
|
77
66
|
const { current: shown } = React.useRef<Animated.Value>(
|
|
78
67
|
new Animated.Value(visible ? 1 : 0)
|
|
79
68
|
);
|
|
@@ -109,9 +98,9 @@ const HelperText = ({
|
|
|
109
98
|
return colors.error;
|
|
110
99
|
}
|
|
111
100
|
if (disabled) {
|
|
112
|
-
return `${colors.
|
|
101
|
+
return `${colors.textSecondary}80`; // Add opacity
|
|
113
102
|
}
|
|
114
|
-
return colors.
|
|
103
|
+
return colors.textSecondary;
|
|
115
104
|
};
|
|
116
105
|
|
|
117
106
|
const textColor = getTextColor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import Svg, { Circle, Path } from 'react-native-svg';
|
|
3
3
|
import type { ViewStyle } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
5
5
|
|
|
6
6
|
interface OxyLogoProps {
|
|
7
7
|
width?: number;
|
|
@@ -37,7 +37,7 @@ export const OxyLogo: React.FC<OxyLogoProps> = ({
|
|
|
37
37
|
theme = 'light'
|
|
38
38
|
}) => {
|
|
39
39
|
// Get colors from theme
|
|
40
|
-
const themeColors =
|
|
40
|
+
const { colors: themeColors } = useTheme();
|
|
41
41
|
|
|
42
42
|
// Use theme primary color if no fillColor is provided
|
|
43
43
|
const primaryColor = fillColor || themeColors.primary;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
4
5
|
import { useI18n } from '../hooks/useI18n';
|
|
5
6
|
import Avatar from './Avatar';
|
|
6
7
|
import { useOxy } from '../context/OxyContext';
|
|
7
8
|
import { useFileDownloadUrl } from '../hooks';
|
|
8
9
|
import { fontFamilies } from '../styles/fonts';
|
|
9
|
-
import { useThemeStyles } from '../hooks/useThemeStyles';
|
|
10
|
-
import { useColorScheme } from '../hooks/useColorScheme';
|
|
11
10
|
|
|
12
11
|
interface ProfileCardProps {
|
|
13
12
|
user: {
|
|
@@ -29,24 +28,22 @@ const ProfileCard: React.FC<ProfileCardProps> = ({
|
|
|
29
28
|
onClosePress,
|
|
30
29
|
showCloseButton = false,
|
|
31
30
|
}) => {
|
|
32
|
-
const
|
|
33
|
-
const themeStyles = useThemeStyles(theme, colorScheme);
|
|
31
|
+
const { colors } = useTheme();
|
|
34
32
|
const { oxyServices } = useOxy();
|
|
35
33
|
const { t } = useI18n();
|
|
36
|
-
const textColor = themeStyles.textColor;
|
|
37
|
-
const secondaryBackgroundColor = themeStyles.secondaryBackgroundColor;
|
|
38
|
-
const primaryColor = '#0066CC';
|
|
39
34
|
|
|
40
35
|
const avatarUrl = useFileDownloadUrl(oxyServices, user?.avatar, { variant: 'thumb' }).url || undefined;
|
|
41
36
|
|
|
42
37
|
return (
|
|
43
38
|
<View style={styles.headerSection}>
|
|
44
|
-
<View
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
<View
|
|
40
|
+
className="bg-secondary"
|
|
41
|
+
style={[
|
|
42
|
+
styles.profileCard,
|
|
43
|
+
styles.firstGroupedItem,
|
|
44
|
+
styles.lastGroupedItem,
|
|
45
|
+
]}
|
|
46
|
+
>
|
|
50
47
|
<View style={styles.userProfile}>
|
|
51
48
|
<Avatar
|
|
52
49
|
uri={user?.avatar ? avatarUrl : undefined}
|
|
@@ -55,9 +52,9 @@ const ProfileCard: React.FC<ProfileCardProps> = ({
|
|
|
55
52
|
theme={theme}
|
|
56
53
|
/>
|
|
57
54
|
<View style={styles.userInfo}>
|
|
58
|
-
<Text style={
|
|
55
|
+
<Text className="text-foreground" style={styles.userName}>{user.username}</Text>
|
|
59
56
|
{user.email && (
|
|
60
|
-
<Text style={
|
|
57
|
+
<Text className="text-muted-foreground" style={styles.userEmail}>
|
|
61
58
|
{user.email}
|
|
62
59
|
</Text>
|
|
63
60
|
)}
|
|
@@ -66,7 +63,7 @@ const ProfileCard: React.FC<ProfileCardProps> = ({
|
|
|
66
63
|
style={styles.editProfileButton}
|
|
67
64
|
onPress={onEditPress}
|
|
68
65
|
>
|
|
69
|
-
<Text style={
|
|
66
|
+
<Text className="text-primary" style={styles.editProfileText}>
|
|
70
67
|
{t('editProfile.title') || 'Edit Profile'}
|
|
71
68
|
</Text>
|
|
72
69
|
</TouchableOpacity>
|
|
@@ -75,7 +72,7 @@ const ProfileCard: React.FC<ProfileCardProps> = ({
|
|
|
75
72
|
</View>
|
|
76
73
|
{showCloseButton && onClosePress && (
|
|
77
74
|
<TouchableOpacity style={styles.closeButton} onPress={onClosePress}>
|
|
78
|
-
<Ionicons name="close" size={24} color={
|
|
75
|
+
<Ionicons name="close" size={24} color={colors.text} />
|
|
79
76
|
</TouchableOpacity>
|
|
80
77
|
)}
|
|
81
78
|
</View>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
|
-
import {
|
|
5
|
-
import { useColorScheme } from '../hooks/useColorScheme';
|
|
4
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
6
5
|
|
|
7
6
|
interface QuickAction {
|
|
8
7
|
id: string;
|
|
@@ -18,31 +17,30 @@ interface QuickActionsProps {
|
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
const QuickActions: React.FC<QuickActionsProps> = ({ actions, theme }) => {
|
|
21
|
-
const
|
|
22
|
-
const themeStyles = useThemeStyles(theme, colorScheme);
|
|
23
|
-
const textColor = themeStyles.textColor;
|
|
24
|
-
const secondaryBackgroundColor = themeStyles.secondaryBackgroundColor;
|
|
20
|
+
const { isDark } = useTheme();
|
|
25
21
|
|
|
26
22
|
return (
|
|
27
|
-
<View
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
<View
|
|
24
|
+
className="bg-secondary"
|
|
25
|
+
style={[
|
|
26
|
+
styles.quickActionsContainer,
|
|
27
|
+
styles.firstGroupedItem,
|
|
28
|
+
styles.lastGroupedItem,
|
|
29
|
+
]}
|
|
30
|
+
>
|
|
33
31
|
<View style={styles.quickActionsRow}>
|
|
34
32
|
{actions.map((action) => (
|
|
35
33
|
<View key={action.id} style={styles.quickActionItem}>
|
|
36
34
|
<TouchableOpacity
|
|
37
35
|
style={[
|
|
38
36
|
styles.quickActionCircle,
|
|
39
|
-
{ backgroundColor:
|
|
37
|
+
{ backgroundColor: isDark ? 'rgba(255,255,255,0.08)' : 'rgba(0,0,0,0.03)' }
|
|
40
38
|
]}
|
|
41
39
|
onPress={action.onPress}
|
|
42
40
|
>
|
|
43
41
|
<Ionicons name={action.icon as React.ComponentProps<typeof Ionicons>['name']} size={24} color={action.iconColor} />
|
|
44
42
|
</TouchableOpacity>
|
|
45
|
-
<Text style={
|
|
43
|
+
<Text className="text-foreground" style={styles.quickActionText}>{action.title}</Text>
|
|
46
44
|
</View>
|
|
47
45
|
))}
|
|
48
46
|
</View>
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { Text, StyleSheet, type StyleProp, type TextStyle } from 'react-native';
|
|
3
3
|
import { fontFamilies } from '../styles/fonts';
|
|
4
|
-
import { useColorScheme } from '../hooks/useColorScheme';
|
|
5
|
-
import { normalizeColorScheme } from '../utils/themeUtils';
|
|
6
|
-
import { useThemeStyles } from '../hooks/useThemeStyles';
|
|
7
4
|
|
|
8
5
|
interface SectionTitleProps {
|
|
9
6
|
title: string;
|
|
@@ -12,11 +9,8 @@ interface SectionTitleProps {
|
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
const SectionTitle: React.FC<SectionTitleProps> = ({ title, theme, style }) => {
|
|
15
|
-
const colorScheme = normalizeColorScheme(useColorScheme(), theme);
|
|
16
|
-
const themeStyles = useThemeStyles(theme || colorScheme, colorScheme);
|
|
17
|
-
|
|
18
12
|
return (
|
|
19
|
-
<Text style={[styles.sectionTitle,
|
|
13
|
+
<Text className="text-foreground" style={[styles.sectionTitle, style]}>
|
|
20
14
|
{title}
|
|
21
15
|
</Text>
|
|
22
16
|
);
|
|
@@ -358,8 +358,8 @@ const SignInModal: React.FC = () => {
|
|
|
358
358
|
{/* Header */}
|
|
359
359
|
<View style={styles.header}>
|
|
360
360
|
<OxyLogo width={56} height={56} />
|
|
361
|
-
<Text style={
|
|
362
|
-
<Text style={
|
|
361
|
+
<Text className="text-foreground" style={styles.title}>Sign in with Oxy</Text>
|
|
362
|
+
<Text className="text-muted-foreground" style={styles.subtitle}>
|
|
363
363
|
Scan with Oxy Accounts app or use the button below
|
|
364
364
|
</Text>
|
|
365
365
|
</View>
|
|
@@ -367,13 +367,13 @@ const SignInModal: React.FC = () => {
|
|
|
367
367
|
{isLoading ? (
|
|
368
368
|
<View style={styles.loadingContainer}>
|
|
369
369
|
<Loading size="large" />
|
|
370
|
-
<Text style={
|
|
370
|
+
<Text className="text-muted-foreground" style={styles.loadingText}>
|
|
371
371
|
Preparing sign in...
|
|
372
372
|
</Text>
|
|
373
373
|
</View>
|
|
374
374
|
) : error ? (
|
|
375
375
|
<View style={styles.errorContainer}>
|
|
376
|
-
<Text style={
|
|
376
|
+
<Text className="text-destructive" style={styles.errorText}>{error}</Text>
|
|
377
377
|
<Button onPress={handleRefresh}>Try Again</Button>
|
|
378
378
|
</View>
|
|
379
379
|
) : (
|
|
@@ -462,13 +462,11 @@ const styles = StyleSheet.create({
|
|
|
462
462
|
fontSize: 28,
|
|
463
463
|
fontWeight: 'bold',
|
|
464
464
|
marginTop: 16,
|
|
465
|
-
color: 'white',
|
|
466
465
|
},
|
|
467
466
|
subtitle: {
|
|
468
467
|
fontSize: 15,
|
|
469
468
|
marginTop: 8,
|
|
470
469
|
textAlign: 'center',
|
|
471
|
-
color: 'rgba(255, 255, 255, 0.7)',
|
|
472
470
|
},
|
|
473
471
|
qrContainer: {
|
|
474
472
|
padding: 20,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
View,
|
|
9
9
|
Animated,
|
|
10
10
|
} from 'react-native';
|
|
11
|
-
import {
|
|
11
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
12
12
|
|
|
13
13
|
import { Underline } from './Addons/Underline';
|
|
14
14
|
import { AdornmentSide, AdornmentType, InputMode } from './Adornment/enums';
|
|
@@ -158,17 +158,17 @@ const TextInputFlat = ({
|
|
|
158
158
|
theme,
|
|
159
159
|
});
|
|
160
160
|
|
|
161
|
-
const
|
|
161
|
+
const { colors: bloomColors } = useTheme();
|
|
162
162
|
|
|
163
163
|
const containerStyle = {
|
|
164
|
-
backgroundColor:
|
|
164
|
+
backgroundColor: bloomColors.backgroundSecondary,
|
|
165
165
|
borderTopLeftRadius: theme.roundness,
|
|
166
166
|
borderTopRightRadius: theme.roundness,
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
// Override text color with theme color (unless custom textColor prop is provided)
|
|
170
170
|
// If disabled, keep the original inputTextColor which handles opacity correctly
|
|
171
|
-
const finalInputTextColor = textColor ?? (disabled ? inputTextColor :
|
|
171
|
+
const finalInputTextColor = textColor ?? (disabled ? inputTextColor : bloomColors.text);
|
|
172
172
|
|
|
173
173
|
const labelScale = MINIMIZED_LABEL_FONT_SIZE / fontSize;
|
|
174
174
|
const fontScale = MAXIMIZED_LABEL_FONT_SIZE / fontSize;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
type ColorValue,
|
|
11
11
|
type LayoutChangeEvent,
|
|
12
12
|
} from 'react-native';
|
|
13
|
-
import {
|
|
13
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
14
14
|
|
|
15
15
|
import { Outline } from './Addons/Outline';
|
|
16
16
|
import { AdornmentType, AdornmentSide } from './Adornment/enums';
|
|
@@ -89,7 +89,7 @@ const TextInputOutlined = ({
|
|
|
89
89
|
const { INPUT_PADDING_HORIZONTAL, MIN_HEIGHT, ADORNMENT_OFFSET, MIN_WIDTH } =
|
|
90
90
|
getConstants(isV3);
|
|
91
91
|
|
|
92
|
-
const
|
|
92
|
+
const { colors: bloomColors } = useTheme();
|
|
93
93
|
|
|
94
94
|
const {
|
|
95
95
|
fontSize: fontSizeStyle,
|
|
@@ -101,7 +101,7 @@ const TextInputOutlined = ({
|
|
|
101
101
|
...viewStyle
|
|
102
102
|
} = (StyleSheet.flatten(style) || {}) as TextStyle;
|
|
103
103
|
|
|
104
|
-
const backgroundColor = styleBackgroundColor ??
|
|
104
|
+
const backgroundColor = styleBackgroundColor ?? bloomColors.background;
|
|
105
105
|
const fontSize = fontSizeStyle || MAXIMIZED_LABEL_FONT_SIZE;
|
|
106
106
|
// Always set a minimum lineHeight to prevent text cutoff
|
|
107
107
|
// Use at least 1.4x fontSize for better text spacing
|
|
@@ -127,7 +127,7 @@ const TextInputOutlined = ({
|
|
|
127
127
|
|
|
128
128
|
// Override text color with theme color (unless custom textColor prop is provided)
|
|
129
129
|
// If disabled, keep the original inputTextColor which handles opacity correctly
|
|
130
|
-
const finalInputTextColor = textColor ?? (disabled ? inputTextColor :
|
|
130
|
+
const finalInputTextColor = textColor ?? (disabled ? inputTextColor : bloomColors.text);
|
|
131
131
|
|
|
132
132
|
const densePaddingTop = label ? LABEL_PADDING_TOP_DENSE : 0;
|
|
133
133
|
const paddingTop = label ? LABEL_PADDING_TOP : 0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity, Modal, ScrollView } from 'react-native';
|
|
3
3
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
|
+
import { useTheme } from '@oxyhq/bloom/theme';
|
|
4
5
|
import type { FileMetadata } from '@oxyhq/core';
|
|
5
6
|
import { formatFileSize, getFileIcon } from '../../utils/fileManagement';
|
|
6
7
|
import { fileManagementStyles } from './styles';
|
|
7
|
-
import type { ThemeStyles } from '../../hooks/useThemeStyles';
|
|
8
8
|
|
|
9
9
|
interface FileDetailsModalProps {
|
|
10
10
|
visible: boolean;
|
|
@@ -12,8 +12,9 @@ interface FileDetailsModalProps {
|
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
onDownload: (fileId: string, filename: string) => void;
|
|
14
14
|
onDelete: (fileId: string, filename: string) => void;
|
|
15
|
-
themeStyles: ThemeStyles;
|
|
16
15
|
isOwner: boolean;
|
|
16
|
+
/** @deprecated No longer used. Colors are sourced from useTheme() internally. */
|
|
17
|
+
themeStyles?: unknown;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export const FileDetailsModal: React.FC<FileDetailsModalProps> = ({
|
|
@@ -22,11 +23,9 @@ export const FileDetailsModal: React.FC<FileDetailsModalProps> = ({
|
|
|
22
23
|
onClose,
|
|
23
24
|
onDownload,
|
|
24
25
|
onDelete,
|
|
25
|
-
themeStyles,
|
|
26
26
|
isOwner,
|
|
27
27
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
const borderColor = themeStyles.borderColor;
|
|
28
|
+
const { colors } = useTheme();
|
|
30
29
|
|
|
31
30
|
if (!file) return null;
|
|
32
31
|
|
|
@@ -37,66 +36,66 @@ export const FileDetailsModal: React.FC<FileDetailsModalProps> = ({
|
|
|
37
36
|
presentationStyle="pageSheet"
|
|
38
37
|
onRequestClose={onClose}
|
|
39
38
|
>
|
|
40
|
-
<View style={
|
|
41
|
-
<View style={
|
|
39
|
+
<View className="bg-background" style={fileManagementStyles.modalContainer}>
|
|
40
|
+
<View className="border-b border-border" style={fileManagementStyles.modalHeader}>
|
|
42
41
|
<TouchableOpacity
|
|
43
42
|
style={fileManagementStyles.modalCloseButton}
|
|
44
43
|
onPress={onClose}
|
|
45
44
|
>
|
|
46
|
-
<Ionicons name="close" size={24} color={
|
|
45
|
+
<Ionicons name="close" size={24} color={colors.text} />
|
|
47
46
|
</TouchableOpacity>
|
|
48
|
-
<Text style={
|
|
47
|
+
<Text className="text-foreground" style={fileManagementStyles.modalTitle}>File Details</Text>
|
|
49
48
|
<View style={fileManagementStyles.modalPlaceholder} />
|
|
50
49
|
</View>
|
|
51
50
|
|
|
52
51
|
<ScrollView style={fileManagementStyles.modalContent}>
|
|
53
|
-
<View style={
|
|
52
|
+
<View className="bg-secondary border-border" style={fileManagementStyles.fileDetailCard}>
|
|
54
53
|
<View style={fileManagementStyles.fileDetailIcon}>
|
|
55
54
|
<Ionicons
|
|
56
55
|
name={getFileIcon(file.contentType) as React.ComponentProps<typeof Ionicons>['name']}
|
|
57
56
|
size={64}
|
|
58
|
-
color={
|
|
57
|
+
color={colors.primary}
|
|
59
58
|
/>
|
|
60
59
|
</View>
|
|
61
60
|
|
|
62
|
-
<Text style={
|
|
61
|
+
<Text className="text-foreground" style={fileManagementStyles.fileDetailName}>
|
|
63
62
|
{file.filename}
|
|
64
63
|
</Text>
|
|
65
64
|
|
|
66
65
|
<View style={fileManagementStyles.fileDetailInfo}>
|
|
67
66
|
<View style={fileManagementStyles.detailRow}>
|
|
68
|
-
<Text style={
|
|
67
|
+
<Text className="text-muted-foreground" style={fileManagementStyles.detailLabel}>
|
|
69
68
|
Size:
|
|
70
69
|
</Text>
|
|
71
|
-
<Text style={
|
|
70
|
+
<Text className="text-foreground" style={fileManagementStyles.detailValue}>
|
|
72
71
|
{formatFileSize(file.length)}
|
|
73
72
|
</Text>
|
|
74
73
|
</View>
|
|
75
74
|
|
|
76
75
|
<View style={fileManagementStyles.detailRow}>
|
|
77
|
-
<Text style={
|
|
76
|
+
<Text className="text-muted-foreground" style={fileManagementStyles.detailLabel}>
|
|
78
77
|
Type:
|
|
79
78
|
</Text>
|
|
80
|
-
<Text style={
|
|
79
|
+
<Text className="text-foreground" style={fileManagementStyles.detailValue}>
|
|
81
80
|
{file.contentType}
|
|
82
81
|
</Text>
|
|
83
82
|
</View>
|
|
84
83
|
|
|
85
84
|
<View style={fileManagementStyles.detailRow}>
|
|
86
|
-
<Text style={
|
|
85
|
+
<Text className="text-muted-foreground" style={fileManagementStyles.detailLabel}>
|
|
87
86
|
Uploaded:
|
|
88
87
|
</Text>
|
|
89
|
-
<Text style={
|
|
88
|
+
<Text className="text-foreground" style={fileManagementStyles.detailValue}>
|
|
90
89
|
{new Date(file.uploadDate).toLocaleString()}
|
|
91
90
|
</Text>
|
|
92
91
|
</View>
|
|
93
92
|
|
|
94
93
|
{file.metadata?.description && (
|
|
95
94
|
<View style={fileManagementStyles.detailRow}>
|
|
96
|
-
<Text style={
|
|
95
|
+
<Text className="text-muted-foreground" style={fileManagementStyles.detailLabel}>
|
|
97
96
|
Description:
|
|
98
97
|
</Text>
|
|
99
|
-
<Text style={
|
|
98
|
+
<Text className="text-foreground" style={fileManagementStyles.detailValue}>
|
|
100
99
|
{file.metadata.description}
|
|
101
100
|
</Text>
|
|
102
101
|
</View>
|
|
@@ -105,7 +104,8 @@ export const FileDetailsModal: React.FC<FileDetailsModalProps> = ({
|
|
|
105
104
|
|
|
106
105
|
<View style={fileManagementStyles.modalActions}>
|
|
107
106
|
<TouchableOpacity
|
|
108
|
-
|
|
107
|
+
className="bg-primary"
|
|
108
|
+
style={fileManagementStyles.modalActionButton}
|
|
109
109
|
onPress={() => {
|
|
110
110
|
onDownload(file.id, file.filename);
|
|
111
111
|
onClose();
|
|
@@ -117,7 +117,8 @@ export const FileDetailsModal: React.FC<FileDetailsModalProps> = ({
|
|
|
117
117
|
|
|
118
118
|
{isOwner && (
|
|
119
119
|
<TouchableOpacity
|
|
120
|
-
|
|
120
|
+
className="bg-destructive"
|
|
121
|
+
style={fileManagementStyles.modalActionButton}
|
|
121
122
|
onPress={() => {
|
|
122
123
|
onClose();
|
|
123
124
|
onDelete(file.id, file.filename);
|