@oxyhq/services 6.9.44 → 6.9.46
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/OxyPayButton.js +4 -2
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +6 -5
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +83 -82
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +271 -102
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +76 -121
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +24 -15
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +32 -18
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +5 -4
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/commonjs/ui/components/index.js +0 -35
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +3 -2
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +83 -219
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +26 -13
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +50 -28
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +83 -48
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +11 -10
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +38 -23
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/constants/theme.js +2 -2
- package/lib/commonjs/ui/constants/theme.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +4 -3
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +13 -13
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +117 -142
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +112 -78
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +213 -144
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +26 -14
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +57 -51
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +108 -86
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +109 -130
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +15 -8
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +60 -54
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +12 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +66 -93
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +159 -190
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +20 -22
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +16 -17
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +127 -70
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +13 -29
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +110 -52
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -5
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -21
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/components/OxyPayButton.js +4 -2
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +6 -5
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +84 -83
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +271 -100
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +76 -122
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +24 -15
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +32 -19
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/icon/OxyIcon.js +5 -4
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/module/ui/components/index.js +0 -5
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +3 -2
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +83 -220
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +26 -13
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js +49 -26
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js +84 -48
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js +11 -9
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +38 -22
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/constants/theme.js +2 -2
- package/lib/module/ui/constants/theme.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +4 -3
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +12 -13
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +117 -142
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +112 -78
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +213 -145
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +28 -16
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +48 -42
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +110 -88
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +110 -131
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +16 -9
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +61 -55
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +12 -9
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +66 -94
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +161 -192
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +21 -23
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +17 -18
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +128 -72
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +15 -31
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +110 -52
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +4 -6
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -20
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.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 +3 -4
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +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 +2 -3
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/index.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +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.map +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.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.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/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/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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +0 -4
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -1
- package/lib/typescript/module/ui/components/OxySignInButton.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 +3 -4
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +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 +2 -3
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/index.d.ts +0 -5
- package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +2 -2
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +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.map +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.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.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/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/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/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +0 -4
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/ui/components/OxyPayButton.tsx +5 -3
- package/src/ui/components/OxyProvider.tsx +6 -5
- package/src/ui/components/OxySignInButton.tsx +82 -81
- package/src/ui/components/SignInModal.tsx +186 -42
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +69 -99
- package/src/ui/components/fileManagement/FileViewer.tsx +25 -15
- package/src/ui/components/fileManagement/UploadPreview.tsx +58 -46
- package/src/ui/components/icon/OxyIcon.tsx +5 -4
- package/src/ui/components/index.ts +0 -5
- package/src/ui/components/internal/PinInput.tsx +4 -3
- package/src/ui/components/modals/DeleteAccountModal.tsx +79 -221
- package/src/ui/components/payment/PaymentDetailsStep.tsx +16 -19
- package/src/ui/components/payment/PaymentMethodStep.tsx +33 -35
- package/src/ui/components/payment/PaymentReviewStep.tsx +63 -67
- package/src/ui/components/payment/PaymentSuccessStep.tsx +4 -12
- package/src/ui/components/payment/PaymentSummaryStep.tsx +26 -33
- package/src/ui/constants/theme.ts +2 -2
- package/src/ui/context/hooks/useAuthOperations.ts +4 -3
- package/src/ui/screens/AccountCenterScreen.tsx +36 -139
- package/src/ui/screens/AccountOverviewScreen.tsx +107 -163
- package/src/ui/screens/AccountSettingsScreen.tsx +142 -156
- package/src/ui/screens/AccountSwitcherScreen.tsx +226 -199
- package/src/ui/screens/AccountVerificationScreen.tsx +34 -25
- package/src/ui/screens/FeedbackScreen.tsx +50 -38
- package/src/ui/screens/FileManagementScreen.tsx +88 -88
- package/src/ui/screens/HistoryViewScreen.tsx +79 -207
- package/src/ui/screens/LanguageSelectorScreen.tsx +19 -7
- package/src/ui/screens/LegalDocumentsScreen.tsx +46 -63
- package/src/ui/screens/PaymentGatewayScreen.tsx +11 -12
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +73 -93
- package/src/ui/screens/PrivacySettingsScreen.tsx +81 -193
- package/src/ui/screens/SavesCollectionsScreen.tsx +23 -23
- package/src/ui/screens/SearchSettingsScreen.tsx +11 -19
- package/src/ui/screens/SessionManagementScreen.tsx +130 -76
- package/src/ui/screens/UserLinksScreen.tsx +15 -32
- package/src/ui/screens/WelcomeNewUserScreen.tsx +46 -20
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +4 -6
- package/src/ui/utils/fileManagement.ts +0 -30
- package/lib/commonjs/ui/components/GroupedItem.js +0 -138
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -41
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -39
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -29
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- package/lib/commonjs/ui/components/SettingRow.js +0 -90
- package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +0 -206
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/commonjs/ui/utils/confirmAction.js +0 -28
- package/lib/commonjs/ui/utils/confirmAction.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -135
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -37
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -34
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -25
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/SettingRow.js +0 -85
- package/lib/module/ui/components/SettingRow.js.map +0 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -202
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +0 -1
- package/lib/module/ui/utils/confirmAction.js +0 -25
- package/lib/module/ui/utils/confirmAction.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +0 -30
- package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Section.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts +0 -10
- package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SettingRow.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/SettingRow.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts +0 -24
- package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts +0 -7
- package/lib/typescript/commonjs/ui/utils/confirmAction.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/GroupedItem.d.ts +0 -24
- package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/GroupedSection.d.ts +0 -30
- package/lib/typescript/module/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Section.d.ts +0 -12
- package/lib/typescript/module/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SectionTitle.d.ts +0 -10
- package/lib/typescript/module/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SettingRow.d.ts +0 -20
- package/lib/typescript/module/ui/components/SettingRow.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts +0 -24
- package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
- package/lib/typescript/module/ui/utils/confirmAction.d.ts +0 -7
- package/lib/typescript/module/ui/utils/confirmAction.d.ts.map +0 -1
- package/src/ui/components/GroupedItem.tsx +0 -161
- package/src/ui/components/GroupedSection.tsx +0 -60
- package/src/ui/components/Section.tsx +0 -42
- package/src/ui/components/SectionTitle.tsx +0 -27
- package/src/ui/components/SettingRow.tsx +0 -98
- package/src/ui/components/internal/GroupedPillButtons.tsx +0 -250
- package/src/ui/utils/confirmAction.ts +0 -23
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("@oxyhq/bloom/theme");
|
|
9
10
|
var _fonts = require("../styles/fonts.js");
|
|
10
11
|
var _OxyLogo = _interopRequireDefault(require("./OxyLogo.js"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -27,13 +28,14 @@ const OxyPayButton = ({
|
|
|
27
28
|
color,
|
|
28
29
|
variant = 'white'
|
|
29
30
|
}) => {
|
|
31
|
+
const theme = (0, _theme.useTheme)();
|
|
30
32
|
const [buttonHeight, setButtonHeight] = (0, _react.useState)(52);
|
|
31
33
|
const handlePress = () => {
|
|
32
34
|
console.warn('OxyPayButton: The bottom sheet payment flow has been removed. Provide a custom onPress handler.');
|
|
33
35
|
};
|
|
34
36
|
// Determine background and text color
|
|
35
|
-
const backgroundColor = color || (variant === 'black' ?
|
|
36
|
-
const textColor = variant === 'black' || color && isColorDark(color) ?
|
|
37
|
+
const backgroundColor = color || (variant === 'black' ? theme.colors.text : theme.colors.background);
|
|
38
|
+
const textColor = variant === 'black' || color && isColorDark(color) ? theme.colors.background : '#1b1f0a';
|
|
37
39
|
// Responsive sizing
|
|
38
40
|
const logoWidth = Math.round(buttonHeight * 0.5); // 50% of button height
|
|
39
41
|
const logoHeight = Math.round(buttonHeight * 0.25); // 25% of button height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_fonts","_OxyLogo","_interopRequireDefault","_jsxRuntime","e","__esModule","default","OxyPayButton","style","textStyle","text","disabled","amount","currency","paymentItems","description","onPaymentResult","color","variant","buttonHeight","setButtonHeight","useState","handlePress","console","warn","backgroundColor","textColor","isColorDark","logoWidth","Math","round","logoHeight","fontSize","handleLayout","h","nativeEvent","layout","height","abs","jsx","TouchableOpacity","styles","button","borderColor","borderWidth","buttonDisabled","onPress","activeOpacity","onLayout","children","jsxs","View","buttonContent","size","marginRight","marginTop","fillColor","Text","hex","c","replace","length","split","map","x","join","r","Number","parseInt","substr","g","b","StyleSheet","create","padding","borderRadius","alignItems","justifyContent","flexDirection","minHeight","opacity","oxyLogo","centeredItem","fontFamily","fontFamilies","inter","fontWeight","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyPayButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_theme","_fonts","_OxyLogo","_interopRequireDefault","_jsxRuntime","e","__esModule","default","OxyPayButton","style","textStyle","text","disabled","amount","currency","paymentItems","description","onPaymentResult","color","variant","theme","useTheme","buttonHeight","setButtonHeight","useState","handlePress","console","warn","backgroundColor","colors","background","textColor","isColorDark","logoWidth","Math","round","logoHeight","fontSize","handleLayout","h","nativeEvent","layout","height","abs","jsx","TouchableOpacity","styles","button","borderColor","borderWidth","buttonDisabled","onPress","activeOpacity","onLayout","children","jsxs","View","buttonContent","size","marginRight","marginTop","fillColor","Text","hex","c","replace","length","split","map","x","join","r","Number","parseInt","substr","g","b","StyleSheet","create","padding","borderRadius","alignItems","justifyContent","flexDirection","minHeight","opacity","oxyLogo","centeredItem","fontFamily","fontFamilies","inter","fontWeight","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyPayButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAC,sBAAA,CAAAL,OAAA;AAAgC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAK,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAsBhC;AACA;AACA;AACA;AACA,MAAMG,YAAyC,GAAGA,CAAC;EAC/CC,KAAK;EACLC,SAAS;EACTC,IAAI,GAAG,KAAK;EACZC,QAAQ,GAAG,KAAK;EAChBC,MAAM;EACNC,QAAQ,GAAG,MAAM;EACjBC,YAAY;EACZC,WAAW;EACXC,eAAe;EACfC,KAAK;EACLC,OAAO,GAAG;AACd,CAAC,KAAK;EACF,MAAMC,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C,MAAM,CAACC,QAAQ,CAACT,CAAC,CAACU,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC7C,MAAMC,CAAC,GAAGH,MAAM,CAACC,QAAQ,CAACT,CAAC,CAACU,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC7C,MAAME,CAAC,GAAGJ,MAAM,CAACC,QAAQ,CAACT,CAAC,CAACU,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC7C;EACA,OAAQ,KAAK,GAAGH,CAAC,GAAG,KAAK,GAAGI,CAAC,GAAG,KAAK,GAAGC,CAAC,GAAI,GAAG;AACpD;AAEA,MAAM9B,MAAM,GAAG+B,uBAAU,CAACC,MAAM,CAAC;EAC7B/B,MAAM,EAAE;IACJgC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE;EACf,CAAC;EACDlC,cAAc,EAAE;IACZmC,OAAO,EAAE;EACb,CAAC;EACD5B,aAAa,EAAE;IACX0B,aAAa,EAAE,KAAK;IACpBF,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB,CAAC;EACDI,OAAO,EAAE;IACL;EAAA,CACH;EACDC,YAAY,EAAE;IACVL,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EAChB,CAAC;EACDtE,IAAI,EAAE;IACF6E,UAAU,EAAEC,mBAAY,CAACC,KAAK;IAC9BC,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtF,OAAA,GAEYC,YAAY","ignoreList":[]}
|
|
@@ -23,7 +23,7 @@ const isWeb = _reactNative.Platform.OS === 'web';
|
|
|
23
23
|
// Lazy-load optional components (avoids require() for ESM compatibility).
|
|
24
24
|
// The .then() extracts + casts the default export so that `lazy()` sees
|
|
25
25
|
// `Promise<{ default: ComponentType }>` instead of the full module namespace.
|
|
26
|
-
const LazyBottomSheetRouter = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolve().then(() => _interopRequireWildcard(require('./BottomSheetRouter
|
|
26
|
+
const LazyBottomSheetRouter = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolve().then(() => _interopRequireWildcard(require('./BottomSheetRouter'))).then(mod => ({
|
|
27
27
|
default: mod.default
|
|
28
28
|
}), error => {
|
|
29
29
|
if (__DEV__) {
|
|
@@ -33,7 +33,7 @@ const LazyBottomSheetRouter = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolv
|
|
|
33
33
|
default: () => null
|
|
34
34
|
};
|
|
35
35
|
}));
|
|
36
|
-
const LazySignInModal = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolve().then(() => _interopRequireWildcard(require('./SignInModal
|
|
36
|
+
const LazySignInModal = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolve().then(() => _interopRequireWildcard(require('./SignInModal'))).then(mod => ({
|
|
37
37
|
default: mod.default
|
|
38
38
|
}), () => ({
|
|
39
39
|
default: () => null
|
|
@@ -84,12 +84,13 @@ const OxyProvider = ({
|
|
|
84
84
|
themeMode = 'system',
|
|
85
85
|
colorPreset
|
|
86
86
|
}) => {
|
|
87
|
-
// Dynamic KeyboardProvider for native (avoids require() for ESM compatibility)
|
|
87
|
+
// Dynamic KeyboardProvider for native (avoids require() for ESM compatibility).
|
|
88
|
+
// Literal-string import: Hermes/Metro require static strings in production
|
|
89
|
+
// bundles, not variable expressions or webpackIgnore comments.
|
|
88
90
|
const [KBProvider, setKBProvider] = (0, _react.useState)(null);
|
|
89
91
|
(0, _react.useEffect)(() => {
|
|
90
92
|
if (isWeb) return;
|
|
91
|
-
|
|
92
|
-
(specifier => new Promise(r => r(`${specifier}`)).then(s => _interopRequireWildcard(require(s))))(/* webpackIgnore: true */moduleName).then(mod => setKBProvider(() => mod.KeyboardProvider)).catch(() => {/* KeyboardProvider not available */});
|
|
93
|
+
Promise.resolve().then(() => _interopRequireWildcard(require('react-native-keyboard-controller'))).then(mod => setKBProvider(() => mod.KeyboardProvider)).catch(() => {/* KeyboardProvider not available */});
|
|
93
94
|
}, []);
|
|
94
95
|
const KeyboardWrapper = KBProvider ?? (({
|
|
95
96
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_OxyContext","_reactQuery","_bloom","_FontLoader","_sonner","_queryClient","_storageHelpers","_jsxRuntime","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setupFonts","isWeb","Platform","OS","LazyBottomSheetRouter","lazy","Promise","resolve","then","mod","error","__DEV__","console","LazySignInModal","OxyProvider","oxyServices","children","onAuthStateChange","storageKeyPrefix","baseURL","authWebUrl","authRedirectUri","queryClient","providedQueryClient","themeMode","colorPreset","KBProvider","setKBProvider","useState","useEffect","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_OxyContext","_reactQuery","_bloom","_FontLoader","_sonner","_queryClient","_storageHelpers","_jsxRuntime","_interopRequireWildcard","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setupFonts","isWeb","Platform","OS","LazyBottomSheetRouter","lazy","Promise","resolve","then","mod","error","__DEV__","console","LazySignInModal","OxyProvider","oxyServices","children","onAuthStateChange","storageKeyPrefix","baseURL","authWebUrl","authRedirectUri","queryClient","providedQueryClient","themeMode","colorPreset","KBProvider","setKBProvider","useState","useEffect","KeyboardProvider","catch","KeyboardWrapper","jsx","Fragment","storageRef","useRef","queryClientRef","setQueryClient","current","mounted","createPlatformStorage","storage","client","createQueryClient","warn","handleVisibilityChange","focusManager","setFocused","document","visibilityState","addEventListener","removeEventListener","subscription","AppState","state","remove","cleanup","setupNetworkMonitoring","onlineManager","setOnline","navigator","onLine","handleOnline","handleOffline","window","NetInfo","fetch","isConnected","unsubscribe","coreContent","QueryClientProvider","BloomThemeProvider","mode","jsxs","OxyContextProvider","Suspense","fallback","Toaster","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AAAuF,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAU,wBAAAC,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAH,uBAAA,YAAAA,CAAAC,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA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A,EAACpB,eAAe,IAAE,CAAC;QAAA,CACb,CAAC,eACX,IAAAlC,WAAA,CAAAsD,GAAA,EAACzD,OAAA,CAAAsG,OAAO,IAAE,CAAC;MAAA,CACK;IAAC,CACL;EAAC,CACJ,CACxB;EAED,oBACI,IAAAnG,WAAA,CAAAsD,GAAA,EAACD,eAAe;IAAAhB,QAAA,EACXsD;EAAW,CACC,CAAC;AAE1B,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEauB,WAAW","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _authStore = require("../stores/authStore.js");
|
|
10
10
|
var _shallow = require("zustand/react/shallow");
|
|
11
|
+
var _theme = require("@oxyhq/bloom/theme");
|
|
11
12
|
var _fonts = require("../styles/fonts.js");
|
|
12
13
|
var _OxyLogo = _interopRequireDefault(require("./OxyLogo.js"));
|
|
13
14
|
var _SignInModal = require("./SignInModal.js");
|
|
@@ -15,26 +16,25 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
/**
|
|
17
18
|
* A pre-styled button component for signing in with Oxy identity
|
|
18
|
-
*
|
|
19
|
+
*
|
|
19
20
|
* This component opens the Oxy Auth flow which allows users to authenticate
|
|
20
21
|
* using their Oxy Accounts identity (via QR code or deep link).
|
|
21
|
-
*
|
|
22
|
+
*
|
|
22
23
|
* @example
|
|
23
24
|
* ```tsx
|
|
24
25
|
* // Basic usage
|
|
25
26
|
* <OxySignInButton />
|
|
26
|
-
*
|
|
27
|
+
*
|
|
27
28
|
* // Custom styling
|
|
28
|
-
* <OxySignInButton
|
|
29
|
-
* variant="contained"
|
|
30
|
-
* style={{ marginTop: 20 }}
|
|
31
|
-
* text="Login with Oxy"
|
|
29
|
+
* <OxySignInButton
|
|
30
|
+
* variant="contained"
|
|
31
|
+
* style={{ marginTop: 20 }}
|
|
32
|
+
* text="Login with Oxy"
|
|
32
33
|
* />
|
|
33
|
-
*
|
|
34
|
+
*
|
|
34
35
|
* // Custom handler
|
|
35
36
|
* <OxySignInButton onPress={() => {
|
|
36
37
|
* // Custom authentication flow
|
|
37
|
-
* console.log('Custom auth flow initiated');
|
|
38
38
|
* }} />
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
@@ -47,6 +47,7 @@ const OxySignInButton = ({
|
|
|
47
47
|
disabled = false,
|
|
48
48
|
showWhenAuthenticated = false
|
|
49
49
|
}) => {
|
|
50
|
+
const theme = (0, _theme.useTheme)();
|
|
50
51
|
const {
|
|
51
52
|
isAuthenticated,
|
|
52
53
|
isLoading
|
|
@@ -71,6 +72,68 @@ const OxySignInButton = ({
|
|
|
71
72
|
// Show the full-screen sign-in modal on all platforms
|
|
72
73
|
(0, _SignInModal.showSignInModal)();
|
|
73
74
|
}, [onPress]);
|
|
75
|
+
const themedStyles = (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
76
|
+
button: {
|
|
77
|
+
padding: 14,
|
|
78
|
+
borderRadius: 35,
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
justifyContent: 'center'
|
|
81
|
+
},
|
|
82
|
+
buttonDefault: {
|
|
83
|
+
backgroundColor: '#FFFFFF',
|
|
84
|
+
borderWidth: 1,
|
|
85
|
+
borderColor: theme.colors.borderLight,
|
|
86
|
+
..._reactNative.Platform.select({
|
|
87
|
+
web: {
|
|
88
|
+
boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
|
|
89
|
+
},
|
|
90
|
+
default: {
|
|
91
|
+
shadowColor: '#000000',
|
|
92
|
+
shadowOffset: {
|
|
93
|
+
width: 0,
|
|
94
|
+
height: 2
|
|
95
|
+
},
|
|
96
|
+
shadowOpacity: 0.1,
|
|
97
|
+
shadowRadius: 4,
|
|
98
|
+
elevation: 2
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
buttonOutline: {
|
|
103
|
+
backgroundColor: 'transparent',
|
|
104
|
+
borderWidth: 1,
|
|
105
|
+
borderColor: theme.colors.primary
|
|
106
|
+
},
|
|
107
|
+
buttonContained: {
|
|
108
|
+
backgroundColor: theme.colors.primary
|
|
109
|
+
},
|
|
110
|
+
buttonDisabled: {
|
|
111
|
+
opacity: 0.6
|
|
112
|
+
},
|
|
113
|
+
buttonContent: {
|
|
114
|
+
flexDirection: 'row',
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
justifyContent: 'center'
|
|
117
|
+
},
|
|
118
|
+
text: {
|
|
119
|
+
fontFamily: _fonts.fontFamilies.interSemiBold,
|
|
120
|
+
fontWeight: _reactNative.Platform.OS === 'web' ? '600' : undefined,
|
|
121
|
+
fontSize: 16,
|
|
122
|
+
marginLeft: 10
|
|
123
|
+
},
|
|
124
|
+
textDefault: {
|
|
125
|
+
color: theme.colors.text
|
|
126
|
+
},
|
|
127
|
+
textOutline: {
|
|
128
|
+
color: theme.colors.primary
|
|
129
|
+
},
|
|
130
|
+
textContained: {
|
|
131
|
+
color: '#FFFFFF'
|
|
132
|
+
},
|
|
133
|
+
textDisabled: {
|
|
134
|
+
color: theme.colors.textTertiary
|
|
135
|
+
}
|
|
136
|
+
}), [theme]);
|
|
74
137
|
|
|
75
138
|
// Don't show the button if already authenticated (unless explicitly overridden)
|
|
76
139
|
if (isAuthenticated && !showWhenAuthenticated) return null;
|
|
@@ -80,11 +143,11 @@ const OxySignInButton = ({
|
|
|
80
143
|
const getButtonStyle = () => {
|
|
81
144
|
switch (variant) {
|
|
82
145
|
case 'outline':
|
|
83
|
-
return [
|
|
146
|
+
return [themedStyles.buttonOutline, style];
|
|
84
147
|
case 'contained':
|
|
85
|
-
return [
|
|
148
|
+
return [themedStyles.buttonContained, style];
|
|
86
149
|
default:
|
|
87
|
-
return [
|
|
150
|
+
return [themedStyles.buttonDefault, style];
|
|
88
151
|
}
|
|
89
152
|
};
|
|
90
153
|
|
|
@@ -92,96 +155,34 @@ const OxySignInButton = ({
|
|
|
92
155
|
const getTextStyle = () => {
|
|
93
156
|
switch (variant) {
|
|
94
157
|
case 'outline':
|
|
95
|
-
return [
|
|
158
|
+
return [themedStyles.textOutline, textStyle];
|
|
96
159
|
case 'contained':
|
|
97
|
-
return [
|
|
160
|
+
return [themedStyles.textContained, textStyle];
|
|
98
161
|
default:
|
|
99
|
-
return [
|
|
162
|
+
return [themedStyles.textDefault, textStyle];
|
|
100
163
|
}
|
|
101
164
|
};
|
|
102
165
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
103
|
-
style: [
|
|
166
|
+
style: [themedStyles.button, getButtonStyle(), isButtonDisabled && themedStyles.buttonDisabled],
|
|
104
167
|
onPress: handlePress,
|
|
105
168
|
disabled: isButtonDisabled,
|
|
106
169
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
107
|
-
style:
|
|
170
|
+
style: themedStyles.buttonContent,
|
|
108
171
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
|
|
109
172
|
variant: "icon",
|
|
110
173
|
size: 20,
|
|
111
|
-
fillColor: variant === 'contained' ? 'white' :
|
|
112
|
-
innerFillColor: variant === 'contained' ?
|
|
174
|
+
fillColor: variant === 'contained' ? 'white' : theme.colors.primary,
|
|
175
|
+
innerFillColor: variant === 'contained' ? theme.colors.primary : undefined,
|
|
113
176
|
style: isButtonDisabled ? {
|
|
114
177
|
opacity: 0.6
|
|
115
178
|
} : undefined
|
|
116
179
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
117
|
-
style: [
|
|
180
|
+
style: [themedStyles.text, getTextStyle(), isButtonDisabled && themedStyles.textDisabled],
|
|
118
181
|
children: isLoading || isModalOpen ? 'Signing in...' : text
|
|
119
182
|
})]
|
|
120
183
|
})
|
|
121
184
|
});
|
|
122
185
|
};
|
|
123
186
|
exports.OxySignInButton = OxySignInButton;
|
|
124
|
-
const styles = _reactNative.StyleSheet.create({
|
|
125
|
-
button: {
|
|
126
|
-
padding: 14,
|
|
127
|
-
borderRadius: 35,
|
|
128
|
-
alignItems: 'center',
|
|
129
|
-
justifyContent: 'center'
|
|
130
|
-
},
|
|
131
|
-
buttonDefault: {
|
|
132
|
-
backgroundColor: '#FFFFFF',
|
|
133
|
-
borderWidth: 1,
|
|
134
|
-
borderColor: '#DDDDDD',
|
|
135
|
-
..._reactNative.Platform.select({
|
|
136
|
-
web: {
|
|
137
|
-
boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
|
|
138
|
-
},
|
|
139
|
-
default: {
|
|
140
|
-
shadowColor: '#000000',
|
|
141
|
-
shadowOffset: {
|
|
142
|
-
width: 0,
|
|
143
|
-
height: 2
|
|
144
|
-
},
|
|
145
|
-
shadowOpacity: 0.1,
|
|
146
|
-
shadowRadius: 4,
|
|
147
|
-
elevation: 2
|
|
148
|
-
}
|
|
149
|
-
})
|
|
150
|
-
},
|
|
151
|
-
buttonOutline: {
|
|
152
|
-
backgroundColor: 'transparent',
|
|
153
|
-
borderWidth: 1,
|
|
154
|
-
borderColor: '#d169e5'
|
|
155
|
-
},
|
|
156
|
-
buttonContained: {
|
|
157
|
-
backgroundColor: '#d169e5'
|
|
158
|
-
},
|
|
159
|
-
buttonDisabled: {
|
|
160
|
-
opacity: 0.6
|
|
161
|
-
},
|
|
162
|
-
buttonContent: {
|
|
163
|
-
flexDirection: 'row',
|
|
164
|
-
alignItems: 'center',
|
|
165
|
-
justifyContent: 'center'
|
|
166
|
-
},
|
|
167
|
-
text: {
|
|
168
|
-
fontFamily: _fonts.fontFamilies.interSemiBold,
|
|
169
|
-
fontWeight: _reactNative.Platform.OS === 'web' ? '600' : undefined,
|
|
170
|
-
fontSize: 16,
|
|
171
|
-
marginLeft: 10
|
|
172
|
-
},
|
|
173
|
-
textDefault: {
|
|
174
|
-
color: '#333333'
|
|
175
|
-
},
|
|
176
|
-
textOutline: {
|
|
177
|
-
color: '#d169e5'
|
|
178
|
-
},
|
|
179
|
-
textContained: {
|
|
180
|
-
color: '#FFFFFF'
|
|
181
|
-
},
|
|
182
|
-
textDisabled: {
|
|
183
|
-
color: '#888888'
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
187
|
var _default = exports.default = OxySignInButton;
|
|
187
188
|
//# sourceMappingURL=OxySignInButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_authStore","_shallow","_fonts","_OxyLogo","_interopRequireDefault","_SignInModal","_jsxRuntime","e","__esModule","default","OxySignInButton","variant","onPress","style","textStyle","text","disabled","showWhenAuthenticated","isAuthenticated","isLoading","useAuthStore","useShallow","state","isModalOpen","setIsModalOpen","useState","useEffect","subscribeToSignInModal","handlePress","useCallback","showSignInModal","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_authStore","_shallow","_theme","_fonts","_OxyLogo","_interopRequireDefault","_SignInModal","_jsxRuntime","e","__esModule","default","OxySignInButton","variant","onPress","style","textStyle","text","disabled","showWhenAuthenticated","theme","useTheme","isAuthenticated","isLoading","useAuthStore","useShallow","state","isModalOpen","setIsModalOpen","useState","useEffect","subscribeToSignInModal","handlePress","useCallback","showSignInModal","themedStyles","useMemo","StyleSheet","create","button","padding","borderRadius","alignItems","justifyContent","buttonDefault","backgroundColor","borderWidth","borderColor","colors","borderLight","Platform","select","web","boxShadow","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","buttonOutline","primary","buttonContained","buttonDisabled","opacity","buttonContent","flexDirection","fontFamily","fontFamilies","interSemiBold","fontWeight","OS","undefined","fontSize","marginLeft","textDefault","color","textOutline","textContained","textDisabled","textTertiary","isButtonDisabled","getButtonStyle","getTextStyle","jsx","TouchableOpacity","children","jsxs","View","size","fillColor","innerFillColor","Text","exports","_default"],"sourceRoot":"../../../../src","sources":["ui/components/OxySignInButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;A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