@oxyhq/services 6.9.0 → 6.9.1
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/ActivityIndicator.js +4 -4
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheet.js +6 -6
- package/lib/commonjs/ui/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +70 -3
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +1 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +3 -5
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +1 -1
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedItem.js +1 -4
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +1 -2
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/HelperText.js +2 -2
- package/lib/commonjs/ui/components/HelperText.js.map +1 -1
- package/lib/commonjs/ui/components/Icon.js +5 -5
- package/lib/commonjs/ui/components/Icon.js.map +1 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -2
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +17 -11
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +1 -1
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +6 -8
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +3 -3
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +2 -3
- package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -1
- package/lib/commonjs/ui/components/TextField.js +6 -9
- package/lib/commonjs/ui/components/TextField.js.map +1 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +3 -3
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +12 -15
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +1 -2
- package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +0 -2
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +1 -2
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +0 -2
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +15 -18
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +3 -4
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +1 -2
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +1 -2
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +1 -2
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +1 -2
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +1 -2
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +2 -2
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js +4 -4
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
- package/lib/commonjs/ui/components/styles/shadow.js +58 -63
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
- package/lib/commonjs/ui/components/theming.js +7 -7
- package/lib/commonjs/ui/components/theming.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +1 -2
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/ThemeContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js +11 -27
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/commonjs/ui/index.js +19 -19
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +1 -2
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +2 -3
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +9 -9
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FollowersListScreen.js +0 -1
- package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FollowingListScreen.js +0 -1
- package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +3 -4
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -3
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +10 -11
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +1 -2
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -2
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +5 -5
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js +2 -2
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +2 -2
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/userUtils.js +1 -1
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/module/ui/components/ActivityIndicator.js +4 -4
- package/lib/module/ui/components/ActivityIndicator.js.map +1 -1
- package/lib/module/ui/components/BottomSheet.js +7 -7
- package/lib/module/ui/components/BottomSheet.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +72 -5
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/CrossFadeIcon.js +1 -1
- package/lib/module/ui/components/CrossFadeIcon.js.map +1 -1
- package/lib/module/ui/components/ErrorBoundary.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +3 -5
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +1 -1
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/GroupedItem.js +1 -2
- package/lib/module/ui/components/GroupedItem.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +1 -1
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/HelperText.js +2 -2
- package/lib/module/ui/components/HelperText.js.map +1 -1
- package/lib/module/ui/components/Icon.js +5 -4
- package/lib/module/ui/components/Icon.js.map +1 -1
- package/lib/module/ui/components/IconButton/IconButton.js +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +18 -12
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +1 -1
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +6 -8
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +3 -3
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -1
- package/lib/module/ui/components/TextField/helpers.js +2 -3
- package/lib/module/ui/components/TextField/helpers.js.map +1 -1
- package/lib/module/ui/components/TextField.js +6 -9
- package/lib/module/ui/components/TextField.js.map +1 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +3 -3
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +12 -14
- package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -1
- package/lib/module/ui/components/feedback/FormInput.js +1 -1
- package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js +1 -1
- package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +0 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +0 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -18
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +3 -3
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +2 -2
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js +4 -4
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js +58 -63
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/components/theming.js +7 -7
- package/lib/module/ui/components/theming.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +1 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/ThemeContext.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js +11 -27
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/module/ui/index.js +19 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +1 -1
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +2 -2
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +9 -9
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FollowersListScreen.js +0 -1
- package/lib/module/ui/screens/FollowersListScreen.js.map +1 -1
- package/lib/module/ui/screens/FollowingListScreen.js +0 -1
- package/lib/module/ui/screens/FollowingListScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +3 -3
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +2 -2
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +10 -11
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -2
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +5 -5
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/stores/followStore.js +2 -2
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +2 -2
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/userUtils.js +1 -1
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/GroupedSection.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 +1 -1
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +3 -3
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Surface.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts +3 -3
- package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +1 -1
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +19 -1
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +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/UserListScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +1 -1
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts +1 -1
- package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +1 -1
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +1 -1
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FontLoader.d.ts +1 -1
- package/lib/typescript/module/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/GroupedItem.d.ts +1 -1
- package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/GroupedSection.d.ts +1 -1
- package/lib/typescript/module/ui/components/GroupedSection.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 +1 -1
- package/lib/typescript/module/ui/components/HelperText.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Icon.d.ts +2 -2
- package/lib/typescript/module/ui/components/Icon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +3 -3
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Surface.d.ts +1 -1
- package/lib/typescript/module/ui/components/Surface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +2 -2
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts +1 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TextField.d.ts +3 -3
- package/lib/typescript/module/ui/components/TextField.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +2 -2
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +2 -2
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/styles/shadow.d.ts +1 -1
- package/lib/typescript/module/ui/components/styles/shadow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/ThemeContext.d.ts +1 -1
- package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +19 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +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/UserListScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/types/expo-crypto.d.ts +1 -1
- package/lib/typescript/types/expo-secure-store.d.ts +4 -4
- package/package.json +1 -1
- package/src/types/expo-crypto.d.ts +1 -1
- package/src/types/expo-secure-store.d.ts +4 -4
- package/src/ui/components/ActivityIndicator.tsx +6 -6
- package/src/ui/components/BottomSheet.tsx +11 -12
- package/src/ui/components/BottomSheetRouter.tsx +69 -7
- package/src/ui/components/CrossFadeIcon.tsx +2 -2
- package/src/ui/components/ErrorBoundary.tsx +1 -1
- package/src/ui/components/FollowButton.tsx +3 -5
- package/src/ui/components/FontLoader.tsx +2 -1
- package/src/ui/components/GroupedItem.tsx +3 -3
- package/src/ui/components/GroupedSection.tsx +2 -1
- package/src/ui/components/Header.tsx +1 -1
- package/src/ui/components/HelperText.tsx +5 -5
- package/src/ui/components/Icon.tsx +5 -5
- package/src/ui/components/IconButton/IconButton.tsx +8 -8
- package/src/ui/components/OxyProvider.tsx +16 -10
- package/src/ui/components/SignInModal.tsx +2 -1
- package/src/ui/components/Surface.tsx +4 -4
- package/src/ui/components/TextField/Addons/Outline.tsx +4 -4
- package/src/ui/components/TextField/Addons/Underline.tsx +1 -1
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +5 -8
- package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +6 -6
- package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +4 -4
- package/src/ui/components/TextField/Adornment/utils.ts +3 -3
- package/src/ui/components/TextField/Label/InputLabel.tsx +1 -1
- package/src/ui/components/TextField/TextFieldFlat.tsx +3 -3
- package/src/ui/components/TextField/TextFieldOutlined.tsx +5 -5
- package/src/ui/components/TextField/helpers.tsx +4 -5
- package/src/ui/components/TextField/types.tsx +1 -1
- package/src/ui/components/TextField.tsx +8 -11
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +6 -6
- package/src/ui/components/TouchableRipple/TouchableRipple.tsx +8 -8
- package/src/ui/components/Typography/AnimatedText.tsx +5 -6
- package/src/ui/components/feedback/FormInput.tsx +1 -1
- package/src/ui/components/fileManagement/AnimatedButton.tsx +2 -1
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +2 -1
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/components/internal/GroupedPillButtons.tsx +2 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +4 -3
- package/src/ui/components/payment/PaymentDetailsStep.tsx +2 -1
- package/src/ui/components/payment/PaymentMethodStep.tsx +2 -1
- package/src/ui/components/payment/PaymentReviewStep.tsx +2 -1
- package/src/ui/components/payment/PaymentSuccessStep.tsx +2 -1
- package/src/ui/components/payment/PaymentSummaryStep.tsx +2 -1
- package/src/ui/components/payment/paymentStyles.ts +2 -2
- package/src/ui/components/styles/overlay.tsx +6 -6
- package/src/ui/components/styles/shadow.tsx +9 -14
- package/src/ui/components/theming.tsx +7 -7
- package/src/ui/context/OxyContext.tsx +2 -1
- package/src/ui/context/ThemeContext.tsx +1 -1
- package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
- package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
- package/src/ui/hooks/useAssets.ts +3 -23
- package/src/ui/hooks/useFileFiltering.ts +1 -2
- package/src/ui/index.ts +19 -1
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FAQScreen.tsx +2 -1
- package/src/ui/screens/FeedbackScreen.tsx +3 -2
- package/src/ui/screens/FileManagementScreen.tsx +10 -10
- package/src/ui/screens/FollowersListScreen.tsx +1 -1
- package/src/ui/screens/FollowingListScreen.tsx +1 -1
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +4 -3
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -2
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +5 -7
- package/src/ui/screens/ProfileScreen.tsx +1 -1
- package/src/ui/screens/UserListScreen.tsx +2 -1
- package/src/ui/screens/WelcomeNewUserScreen.tsx +3 -2
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +5 -5
- package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
- package/src/ui/stores/assetStore.ts +1 -1
- package/src/ui/stores/followStore.ts +2 -2
- package/src/ui/utils/avatarUtils.ts +2 -2
- package/src/ui/utils/fileManagement.ts +4 -4
- package/src/ui/utils/userUtils.ts +1 -1
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +0 -73
- package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +0 -112
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +0 -1
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js +0 -279
- package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useDeviceManagement.js +0 -68
- package/lib/module/ui/context/hooks/useDeviceManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useLanguageManagement.js +0 -107
- package/lib/module/ui/context/hooks/useLanguageManagement.js.map +0 -1
- package/lib/module/ui/context/hooks/useSessionManagement.js +0 -274
- package/lib/module/ui/context/hooks/useSessionManagement.js.map +0 -1
- package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts +0 -27
- package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts +0 -25
- package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts +0 -41
- package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts +0 -27
- package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts +0 -25
- package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts +0 -41
- package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts.map +0 -1
- package/src/ui/context/hooks/useDeviceManagement.ts +0 -108
- package/src/ui/context/hooks/useLanguageManagement.ts +0 -152
- package/src/ui/context/hooks/useSessionManagement.ts +0 -399
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
|
-
DimensionValue,
|
|
5
|
-
GestureResponderEvent,
|
|
6
|
-
LayoutChangeEvent,
|
|
4
|
+
type DimensionValue,
|
|
5
|
+
type GestureResponderEvent,
|
|
6
|
+
type LayoutChangeEvent,
|
|
7
7
|
Pressable,
|
|
8
|
-
StyleProp,
|
|
8
|
+
type StyleProp,
|
|
9
9
|
StyleSheet,
|
|
10
10
|
Text,
|
|
11
|
-
TextStyle,
|
|
12
|
-
ViewStyle,
|
|
11
|
+
type TextStyle,
|
|
12
|
+
type ViewStyle,
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
|
|
15
15
|
import { AdornmentSide } from './enums';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
ColorValue,
|
|
4
|
-
GestureResponderEvent,
|
|
5
|
-
StyleProp,
|
|
3
|
+
type ColorValue,
|
|
4
|
+
type GestureResponderEvent,
|
|
5
|
+
type StyleProp,
|
|
6
6
|
StyleSheet,
|
|
7
7
|
View,
|
|
8
|
-
ViewStyle,
|
|
8
|
+
type ViewStyle,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
|
|
11
11
|
import { getIconColor } from './utils';
|
|
@@ -19,9 +19,9 @@ const hexToRgba = (hex: string, alpha: number): string => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
// Handle hex strings
|
|
22
|
-
const r = parseInt(hex.slice(1, 3), 16);
|
|
23
|
-
const g = parseInt(hex.slice(3, 5), 16);
|
|
24
|
-
const b = parseInt(hex.slice(5, 7), 16);
|
|
22
|
+
const r = Number.parseInt(hex.slice(1, 3), 16);
|
|
23
|
+
const g = Number.parseInt(hex.slice(3, 5), 16);
|
|
24
|
+
const b = Number.parseInt(hex.slice(5, 7), 16);
|
|
25
25
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Platform,
|
|
5
5
|
StyleSheet,
|
|
6
6
|
TextInput as NativeTextInput,
|
|
7
|
-
TextStyle,
|
|
7
|
+
type TextStyle,
|
|
8
8
|
View,
|
|
9
9
|
Animated,
|
|
10
10
|
} from 'react-native';
|
|
@@ -13,7 +13,7 @@ import { useThemeColors } from '../../hooks/useThemeColors';
|
|
|
13
13
|
import { Underline } from './Addons/Underline';
|
|
14
14
|
import { AdornmentSide, AdornmentType, InputMode } from './Adornment/enums';
|
|
15
15
|
import TextFieldAdornment, {
|
|
16
|
-
TextFieldAdornmentProps,
|
|
16
|
+
type TextFieldAdornmentProps,
|
|
17
17
|
} from './Adornment/TextFieldAdornment';
|
|
18
18
|
import {
|
|
19
19
|
getAdornmentConfig,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
calculatePadding,
|
|
39
39
|
getConstants,
|
|
40
40
|
getFlatInputColors,
|
|
41
|
-
Padding,
|
|
41
|
+
type Padding,
|
|
42
42
|
} from './helpers';
|
|
43
43
|
import InputLabel from './Label/InputLabel';
|
|
44
44
|
import type { ChildTextInputProps, RenderProps } from './types';
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
StyleSheet,
|
|
7
7
|
I18nManager,
|
|
8
8
|
Platform,
|
|
9
|
-
TextStyle,
|
|
10
|
-
ColorValue,
|
|
11
|
-
LayoutChangeEvent,
|
|
9
|
+
type TextStyle,
|
|
10
|
+
type ColorValue,
|
|
11
|
+
type LayoutChangeEvent,
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
import { useThemeColors } from '../../hooks/useThemeColors';
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ import { AdornmentType, AdornmentSide } from './Adornment/enums';
|
|
|
17
17
|
import TextFieldAdornment, {
|
|
18
18
|
getAdornmentConfig,
|
|
19
19
|
getAdornmentStyleAdjustmentForNativeInput,
|
|
20
|
-
TextFieldAdornmentProps,
|
|
20
|
+
type TextFieldAdornmentProps,
|
|
21
21
|
} from './Adornment/TextFieldAdornment';
|
|
22
22
|
import {
|
|
23
23
|
MAXIMIZED_LABEL_FONT_SIZE,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
calculateInputHeight,
|
|
35
35
|
calculatePadding,
|
|
36
36
|
adjustPaddingOut,
|
|
37
|
-
Padding,
|
|
37
|
+
type Padding,
|
|
38
38
|
calculateOutlinedIconAndAffixTopPosition,
|
|
39
39
|
getOutlinedInputColors,
|
|
40
40
|
getConstants,
|
|
@@ -52,8 +52,8 @@ export type Padding = { paddingTop: number; paddingBottom: number };
|
|
|
52
52
|
|
|
53
53
|
export const calculateLabelTopPosition = (
|
|
54
54
|
labelHeight: number,
|
|
55
|
-
height
|
|
56
|
-
optionalPadding
|
|
55
|
+
height = 0,
|
|
56
|
+
optionalPadding = 0
|
|
57
57
|
): number => {
|
|
58
58
|
const customHeight = height > 0 ? height : 0;
|
|
59
59
|
|
|
@@ -62,7 +62,7 @@ export const calculateLabelTopPosition = (
|
|
|
62
62
|
|
|
63
63
|
export const calculateInputHeight = (
|
|
64
64
|
labelHeight: number,
|
|
65
|
-
height: any
|
|
65
|
+
height: any,
|
|
66
66
|
minHeight: number
|
|
67
67
|
): number => {
|
|
68
68
|
const finalHeight = height > 0 ? height : labelHeight;
|
|
@@ -408,9 +408,8 @@ const getFlatBackgroundColor = ({ theme, disabled }: BaseProps) => {
|
|
|
408
408
|
if (theme.isV3) {
|
|
409
409
|
if (disabled) {
|
|
410
410
|
return color(theme.colors.onSurface).alpha(0.04).rgb().string();
|
|
411
|
-
} else {
|
|
412
|
-
return theme.colors.surfaceVariant;
|
|
413
411
|
}
|
|
412
|
+
return theme.colors.surfaceVariant;
|
|
414
413
|
}
|
|
415
414
|
|
|
416
415
|
if (disabled) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
|
-
LayoutChangeEvent,
|
|
5
|
-
StyleProp,
|
|
4
|
+
type LayoutChangeEvent,
|
|
5
|
+
type StyleProp,
|
|
6
6
|
TextInput as NativeTextInput,
|
|
7
|
-
TextStyle,
|
|
8
|
-
ViewStyle,
|
|
9
|
-
NativeSyntheticEvent,
|
|
10
|
-
TextLayoutEventData,
|
|
7
|
+
type TextStyle,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
type NativeSyntheticEvent,
|
|
10
|
+
type TextLayoutEventData,
|
|
11
11
|
} from 'react-native';
|
|
12
12
|
|
|
13
13
|
import TextFieldAffix, {
|
|
14
|
-
Props as TextFieldAffixProps,
|
|
14
|
+
type Props as TextFieldAffixProps,
|
|
15
15
|
} from './TextField/Adornment/TextFieldAffix';
|
|
16
16
|
import TextFieldIcon, {
|
|
17
|
-
Props as TextFieldIconProps,
|
|
17
|
+
type Props as TextFieldIconProps,
|
|
18
18
|
} from './TextField/Adornment/TextFieldIcon';
|
|
19
19
|
import TextFieldFlat from './TextField/TextFieldFlat';
|
|
20
20
|
import TextFieldOutlined from './TextField/TextFieldOutlined';
|
|
@@ -314,15 +314,12 @@ const TextField = forwardRef<TextFieldHandles, Props>(
|
|
|
314
314
|
useNativeDriver: true,
|
|
315
315
|
}).start();
|
|
316
316
|
} else {
|
|
317
|
-
// hide error
|
|
318
|
-
{
|
|
319
317
|
Animated.timing(error, {
|
|
320
318
|
toValue: 0,
|
|
321
319
|
duration: BLUR_ANIMATION_DURATION * scale,
|
|
322
320
|
// To prevent this - https://github.com/callstack/react-native-paper/issues/941
|
|
323
321
|
useNativeDriver: true,
|
|
324
322
|
}).start();
|
|
325
|
-
}
|
|
326
323
|
}
|
|
327
324
|
}, [errorProp, scale, error]);
|
|
328
325
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
PressableAndroidRippleConfig,
|
|
4
|
-
StyleProp,
|
|
3
|
+
type PressableAndroidRippleConfig,
|
|
4
|
+
type StyleProp,
|
|
5
5
|
Platform,
|
|
6
|
-
ViewStyle,
|
|
6
|
+
type ViewStyle,
|
|
7
7
|
StyleSheet,
|
|
8
|
-
GestureResponderEvent,
|
|
8
|
+
type GestureResponderEvent,
|
|
9
9
|
View,
|
|
10
|
-
ColorValue,
|
|
10
|
+
type ColorValue,
|
|
11
11
|
} from 'react-native';
|
|
12
12
|
|
|
13
13
|
import type { PressableProps } from './Pressable';
|
|
@@ -28,7 +28,7 @@ export type Props = PressableProps & {
|
|
|
28
28
|
background?: PressableAndroidRippleConfig;
|
|
29
29
|
centered?: boolean;
|
|
30
30
|
disabled?: boolean;
|
|
31
|
-
onPress?: (e: GestureResponderEvent) =>
|
|
31
|
+
onPress?: (e: GestureResponderEvent) => undefined | null;
|
|
32
32
|
onLongPress?: (e: GestureResponderEvent) => void;
|
|
33
33
|
onPressIn?: (e: GestureResponderEvent) => void;
|
|
34
34
|
onPressOut?: (e: GestureResponderEvent) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
ColorValue,
|
|
4
|
-
GestureResponderEvent,
|
|
3
|
+
type ColorValue,
|
|
4
|
+
type GestureResponderEvent,
|
|
5
5
|
Platform,
|
|
6
|
-
StyleProp,
|
|
6
|
+
type StyleProp,
|
|
7
7
|
StyleSheet,
|
|
8
|
-
View,
|
|
9
|
-
ViewStyle,
|
|
8
|
+
type View,
|
|
9
|
+
type ViewStyle,
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
|
|
12
12
|
import type { PressableProps, PressableStateCallbackType } from './Pressable';
|
|
@@ -22,9 +22,9 @@ const SettingsContext = React.createContext({ rippleEffectEnabled: true });
|
|
|
22
22
|
|
|
23
23
|
// Color manipulation utilities (simplified without color package)
|
|
24
24
|
const hexToRgb = (hex: string): [number, number, number] => {
|
|
25
|
-
const r = parseInt(hex.slice(1, 3), 16);
|
|
26
|
-
const g = parseInt(hex.slice(3, 5), 16);
|
|
27
|
-
const b = parseInt(hex.slice(5, 7), 16);
|
|
25
|
+
const r = Number.parseInt(hex.slice(1, 3), 16);
|
|
26
|
+
const g = Number.parseInt(hex.slice(3, 5), 16);
|
|
27
|
+
const b = Number.parseInt(hex.slice(5, 7), 16);
|
|
28
28
|
return [r, g, b];
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
4
|
I18nManager,
|
|
5
|
-
StyleProp,
|
|
5
|
+
type StyleProp,
|
|
6
6
|
StyleSheet,
|
|
7
|
-
TextStyle,
|
|
8
|
-
Text,
|
|
7
|
+
type TextStyle,
|
|
8
|
+
type Text,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
|
|
11
11
|
import type { VariantProp } from './types';
|
|
@@ -71,7 +71,7 @@ const AnimatedText = forwardRef<Text & HTMLElement, Props<never>>(
|
|
|
71
71
|
]}
|
|
72
72
|
/>
|
|
73
73
|
);
|
|
74
|
-
}
|
|
74
|
+
}
|
|
75
75
|
const font = !theme.isV3 ? (theme.fonts.regular || theme.fonts.default) : theme.fonts.bodyMedium;
|
|
76
76
|
const textStyle = {
|
|
77
77
|
...font,
|
|
@@ -91,7 +91,6 @@ const AnimatedText = forwardRef<Text & HTMLElement, Props<never>>(
|
|
|
91
91
|
]}
|
|
92
92
|
/>
|
|
93
93
|
);
|
|
94
|
-
}
|
|
95
94
|
}
|
|
96
95
|
);
|
|
97
96
|
|
|
@@ -67,7 +67,7 @@ const FormInput: React.FC<FormInputProps> = React.memo(({
|
|
|
67
67
|
value={value}
|
|
68
68
|
onChangeText={onChangeText}
|
|
69
69
|
placeholder={placeholder}
|
|
70
|
-
placeholderTextColor={colors.secondaryText
|
|
70
|
+
placeholderTextColor={`${colors.secondaryText}60`}
|
|
71
71
|
multiline={multiline}
|
|
72
72
|
numberOfLines={multiline ? numberOfLines : undefined}
|
|
73
73
|
testID={testID}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
2
3
|
import { TouchableOpacity, Animated, Easing } from 'react-native';
|
|
3
4
|
// @ts-ignore - MaterialCommunityIcons is available at runtime
|
|
4
5
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useMemo, useState, useEffect } from 'react';
|
|
2
3
|
import { View, Text, TouchableOpacity, ScrollView, ActivityIndicator, Image } from 'react-native';
|
|
3
4
|
import { Image as ExpoImage } from 'expo-image';
|
|
4
5
|
// @ts-ignore - MaterialCommunityIcons is available at runtime
|
|
@@ -85,7 +85,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
85
85
|
backgroundColor = isDisabled ? '#CCCCCC' : (colors.secondary || colors.primary);
|
|
86
86
|
borderColor = isDisabled ? '#CCCCCC' : (colors.secondary || colors.primary);
|
|
87
87
|
break;
|
|
88
|
-
case 'transparent':
|
|
89
88
|
default:
|
|
90
89
|
backgroundColor = 'transparent';
|
|
91
90
|
borderColor = isDisabled ? '#CCCCCC' : colors.border;
|
|
@@ -117,7 +116,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
117
116
|
case 'secondary':
|
|
118
117
|
textColor = isDisabled ? '#999999' : '#FFFFFF';
|
|
119
118
|
break;
|
|
120
|
-
case 'transparent':
|
|
121
119
|
default:
|
|
122
120
|
textColor = isDisabled ? '#999999' : colors.text;
|
|
123
121
|
break;
|
|
@@ -137,7 +135,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
137
135
|
case 'primary':
|
|
138
136
|
case 'secondary':
|
|
139
137
|
return isDisabled ? '#999999' : '#FFFFFF';
|
|
140
|
-
case 'transparent':
|
|
141
138
|
default:
|
|
142
139
|
return isDisabled ? '#999999' : colors.text;
|
|
143
140
|
}
|
|
@@ -182,7 +179,7 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
182
179
|
)}
|
|
183
180
|
</>
|
|
184
181
|
);
|
|
185
|
-
}
|
|
182
|
+
}if (isFirstButton || isBack) {
|
|
186
183
|
// First button or back button: icon on left, text on right
|
|
187
184
|
return (
|
|
188
185
|
<>
|
|
@@ -198,7 +195,7 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
198
195
|
</Text>
|
|
199
196
|
</>
|
|
200
197
|
);
|
|
201
|
-
}
|
|
198
|
+
}
|
|
202
199
|
// Second button or forward/action button: text on left, icon on right
|
|
203
200
|
return (
|
|
204
201
|
<>
|
|
@@ -214,7 +211,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
|
|
|
214
211
|
)}
|
|
215
212
|
</>
|
|
216
213
|
);
|
|
217
|
-
}
|
|
218
214
|
};
|
|
219
215
|
|
|
220
216
|
return (
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useState, useCallback } from 'react';
|
|
2
3
|
import {
|
|
3
4
|
View,
|
|
4
5
|
Text,
|
|
@@ -97,7 +98,7 @@ const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
|
|
|
97
98
|
</Text>
|
|
98
99
|
|
|
99
100
|
{error && (
|
|
100
|
-
<View style={[styles.errorContainer, { backgroundColor: colors.danger
|
|
101
|
+
<View style={[styles.errorContainer, { backgroundColor: `${colors.danger}20` }]}>
|
|
101
102
|
<Text style={[styles.errorText, { color: colors.danger }]}>
|
|
102
103
|
{error}
|
|
103
104
|
</Text>
|
|
@@ -171,7 +172,7 @@ const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
|
|
|
171
172
|
style={[
|
|
172
173
|
styles.button,
|
|
173
174
|
styles.deleteButton,
|
|
174
|
-
{ backgroundColor: isValid ? colors.danger : colors.danger
|
|
175
|
+
{ backgroundColor: isValid ? colors.danger : `${colors.danger}50` },
|
|
175
176
|
]}
|
|
176
177
|
onPress={handleDelete}
|
|
177
178
|
disabled={!isValid || isDeleting}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { View, Text, Animated, TouchableOpacity, Clipboard, Linking } from 'react-native';
|
|
3
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
5
|
import GroupedPillButtons from '../internal/GroupedPillButtons';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { View, Text, Animated } from 'react-native';
|
|
3
4
|
import { GroupedSection } from '../index';
|
|
4
5
|
import GroupedPillButtons from '../internal/GroupedPillButtons';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { View, Text, Animated } from 'react-native';
|
|
3
4
|
import { GroupedSection } from '../index';
|
|
4
5
|
import GroupedPillButtons from '../internal/GroupedPillButtons';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { View, Text, Animated } from 'react-native';
|
|
3
4
|
import { Ionicons } from '@expo/vector-icons';
|
|
4
5
|
import GroupedPillButtons from '../internal/GroupedPillButtons';
|
|
@@ -230,7 +230,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
230
230
|
marginBottom: 8,
|
|
231
231
|
},
|
|
232
232
|
oxyPayBalanceBox: {
|
|
233
|
-
backgroundColor: colors.primary
|
|
233
|
+
backgroundColor: `${colors.primary}22`,
|
|
234
234
|
borderRadius: 12,
|
|
235
235
|
padding: 8,
|
|
236
236
|
marginTop: 8,
|
|
@@ -333,7 +333,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
|
|
|
333
333
|
flexDirection: 'row',
|
|
334
334
|
alignItems: 'center',
|
|
335
335
|
alignSelf: 'center',
|
|
336
|
-
backgroundColor: colors.primary
|
|
336
|
+
backgroundColor: `${colors.primary}11`,
|
|
337
337
|
borderRadius: 16,
|
|
338
338
|
paddingHorizontal: 16,
|
|
339
339
|
paddingVertical: 8,
|
|
@@ -2,16 +2,16 @@ import { Animated } from 'react-native';
|
|
|
2
2
|
|
|
3
3
|
// Simple hex color manipulation without color package
|
|
4
4
|
const hexToRgb = (hex: string): [number, number, number] => {
|
|
5
|
-
const r = parseInt(hex.slice(1, 3), 16);
|
|
6
|
-
const g = parseInt(hex.slice(3, 5), 16);
|
|
7
|
-
const b = parseInt(hex.slice(5, 7), 16);
|
|
5
|
+
const r = Number.parseInt(hex.slice(1, 3), 16);
|
|
6
|
+
const g = Number.parseInt(hex.slice(3, 5), 16);
|
|
7
|
+
const b = Number.parseInt(hex.slice(5, 7), 16);
|
|
8
8
|
return [r, g, b];
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const rgbToHex = (r: number, g: number, b: number): string => {
|
|
12
12
|
return `#${[r, g, b].map(x => {
|
|
13
13
|
const hex = Math.round(x).toString(16);
|
|
14
|
-
return hex.length === 1 ?
|
|
14
|
+
return hex.length === 1 ? `0${hex}` : hex;
|
|
15
15
|
}).join('')}`;
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -30,7 +30,7 @@ export const isAnimatedValue = (
|
|
|
30
30
|
|
|
31
31
|
export default function overlay<T extends Animated.Value | number>(
|
|
32
32
|
elevation: T,
|
|
33
|
-
surfaceColor
|
|
33
|
+
surfaceColor = '#121212'
|
|
34
34
|
): T extends number ? string : Animated.AnimatedInterpolation<number | string> {
|
|
35
35
|
if (isAnimatedValue(elevation)) {
|
|
36
36
|
const inputRange = [0, 1, 2, 3, 8, 24];
|
|
@@ -48,7 +48,7 @@ export default function overlay<T extends Animated.Value | number>(
|
|
|
48
48
|
return calculateColor(surfaceColor, elevation);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
function calculateColor(surfaceColor: string, elevation
|
|
51
|
+
function calculateColor(surfaceColor: string, elevation = 1) {
|
|
52
52
|
let overlayTransparency: number;
|
|
53
53
|
if (elevation >= 1 && elevation <= 24) {
|
|
54
54
|
overlayTransparency = elevationOverlayTransparency[elevation];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, Platform, ShadowStyleIOS, ViewStyle } from 'react-native';
|
|
1
|
+
import { Animated, Platform, type ShadowStyleIOS, type ViewStyle } from 'react-native';
|
|
2
2
|
|
|
3
3
|
const SHADOW_COLOR = '#000000';
|
|
4
4
|
const SHADOW_OPACITY = 0.24;
|
|
@@ -36,20 +36,20 @@ function v2Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
|
|
|
36
36
|
outputRange: [0, 0.75, 1.5, 3, 8, 24],
|
|
37
37
|
}),
|
|
38
38
|
} as unknown as ShadowStyleIOS;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
return {
|
|
41
41
|
elevation: elevation.interpolate({
|
|
42
42
|
inputRange,
|
|
43
43
|
outputRange: [0, 1, 2, 3, 8, 24],
|
|
44
44
|
}) as unknown as number,
|
|
45
45
|
};
|
|
46
|
-
|
|
47
|
-
} else {
|
|
46
|
+
}
|
|
48
47
|
if (elevation === 0) {
|
|
49
48
|
return {};
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
let height
|
|
51
|
+
let height;
|
|
52
|
+
let radius;
|
|
53
53
|
switch (elevation) {
|
|
54
54
|
case 1:
|
|
55
55
|
height = 0.5;
|
|
@@ -74,12 +74,10 @@ function v2Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
|
|
|
74
74
|
shadowOpacity: SHADOW_OPACITY,
|
|
75
75
|
shadowRadius: radius,
|
|
76
76
|
} as ShadowStyleIOS;
|
|
77
|
-
}
|
|
77
|
+
}
|
|
78
78
|
return {
|
|
79
79
|
elevation: elevation,
|
|
80
80
|
};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowStyleIOS {
|
|
@@ -108,15 +106,14 @@ function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
|
|
|
108
106
|
outputRange: shadowRadius,
|
|
109
107
|
}),
|
|
110
108
|
} as unknown as ShadowStyleIOS;
|
|
111
|
-
}
|
|
109
|
+
}
|
|
112
110
|
return {
|
|
113
111
|
elevation: elevation.interpolate({
|
|
114
112
|
inputRange,
|
|
115
113
|
outputRange: [0, 1, 2, 3, 4, 5],
|
|
116
114
|
}) as unknown as number,
|
|
117
115
|
};
|
|
118
|
-
|
|
119
|
-
} else {
|
|
116
|
+
}
|
|
120
117
|
if (Platform.OS === 'ios') {
|
|
121
118
|
return {
|
|
122
119
|
shadowColor: MD3_SHADOW_COLOR,
|
|
@@ -127,10 +124,8 @@ function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
|
|
|
127
124
|
},
|
|
128
125
|
shadowRadius: shadowRadius[elevation] || 0,
|
|
129
126
|
} as ShadowStyleIOS;
|
|
130
|
-
}
|
|
127
|
+
}
|
|
131
128
|
return {
|
|
132
129
|
elevation: elevation || 0,
|
|
133
130
|
};
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
131
|
}
|
|
@@ -30,17 +30,17 @@ export const useInternalTheme = (
|
|
|
30
30
|
},
|
|
31
31
|
colors: {
|
|
32
32
|
primary: colors.primary,
|
|
33
|
-
primaryContainer: colors.primary
|
|
33
|
+
primaryContainer: `${colors.primary}20`,
|
|
34
34
|
secondary: colors.secondaryText,
|
|
35
|
-
secondaryContainer: colors.secondaryText
|
|
35
|
+
secondaryContainer: `${colors.secondaryText}20`,
|
|
36
36
|
tertiary: colors.primary,
|
|
37
|
-
tertiaryContainer: colors.primary
|
|
37
|
+
tertiaryContainer: `${colors.primary}20`,
|
|
38
38
|
surface: colors.background,
|
|
39
39
|
surfaceVariant: colors.inputBackground,
|
|
40
|
-
surfaceDisabled: colors.secondaryText
|
|
40
|
+
surfaceDisabled: `${colors.secondaryText}40`,
|
|
41
41
|
background: colors.background,
|
|
42
42
|
error: colors.error,
|
|
43
|
-
errorContainer: colors.error
|
|
43
|
+
errorContainer: `${colors.error}20`,
|
|
44
44
|
onPrimary: '#FFFFFF',
|
|
45
45
|
onPrimaryContainer: colors.primary,
|
|
46
46
|
onSecondary: '#FFFFFF',
|
|
@@ -49,12 +49,12 @@ export const useInternalTheme = (
|
|
|
49
49
|
onTertiaryContainer: colors.primary,
|
|
50
50
|
onSurface: colors.text,
|
|
51
51
|
onSurfaceVariant: colors.secondaryText,
|
|
52
|
-
onSurfaceDisabled: colors.secondaryText
|
|
52
|
+
onSurfaceDisabled: `${colors.secondaryText}60`,
|
|
53
53
|
onError: '#FFFFFF',
|
|
54
54
|
onErrorContainer: colors.error,
|
|
55
55
|
onBackground: colors.text,
|
|
56
56
|
outline: colors.border,
|
|
57
|
-
outlineVariant: colors.border
|
|
57
|
+
outlineVariant: `${colors.border}80`,
|
|
58
58
|
inverseSurface: theme === 'dark' ? '#FFFFFF' : '#000000',
|
|
59
59
|
inverseOnSurface: theme === 'dark' ? '#000000' : '#FFFFFF',
|
|
60
60
|
inversePrimary: colors.primary,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* 5. On success: update cache, stores, and invalidate queries
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { QueryClient, UseMutationOptions } from '@tanstack/react-query';
|
|
12
|
+
import type { QueryClient, UseMutationOptions } from '@tanstack/react-query';
|
|
13
13
|
import type { User } from '@oxyhq/core';
|
|
14
14
|
import { queryKeys, invalidateAccountQueries, invalidateUserQueries } from '../queries/queryKeys';
|
|
15
15
|
import { toast } from '../../../lib/sonner';
|