@oxyhq/services 19.0.1 → 19.1.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/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/commonjs/assets/icons/OxyServices.js +7 -7
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/index.js +56 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +121 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/commonjs/ui/client.js +10 -17
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +28 -92
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +127 -241
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js +22 -18
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +4 -6
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyOAuthCallback.js +45 -0
- package/lib/commonjs/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/commonjs/ui/components/OxyPayButton.js +20 -71
- package/lib/commonjs/ui/components/OxyPayButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +3 -3
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +30 -135
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +4 -2
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +99 -0
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js +7 -10
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +14 -9
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +55 -55
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js +13 -13
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +129 -260
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/oxyContextHelpers.js +64 -0
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/commonjs/ui/{components/TextField/Adornment/types.js → context/oxyContextTypes.js} +1 -1
- package/lib/commonjs/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +91 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/commonjs/ui/hooks/queryClient.js +9 -18
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +7 -5
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +2 -0
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +10 -17
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +5 -44
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +9 -8
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js +8 -19
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +8 -8
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +0 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +59 -1105
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +9 -49
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +6 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +21 -20
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +4 -4
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +3 -3
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +7 -8
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +114 -0
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +512 -0
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +59 -0
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +475 -0
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js +67 -0
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +3 -3
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +4 -5
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +2 -2
- package/lib/commonjs/ui/utils/crossOriginRestore.js +109 -0
- package/lib/commonjs/ui/utils/crossOriginRestore.js.map +1 -0
- package/lib/commonjs/ui/utils/deviceCredential.js +23 -0
- package/lib/commonjs/ui/utils/deviceCredential.js.map +1 -0
- package/lib/commonjs/ui/utils/oauthReturn.js +82 -0
- package/lib/commonjs/ui/utils/oauthReturn.js.map +1 -0
- package/lib/commonjs/ui/utils/storageHelpers.js +1 -2
- package/lib/commonjs/ui/utils/storageHelpers.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.tsx +5 -12
- package/lib/module/assets/icons/OxyServices.js +7 -7
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/index.js +10 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +116 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -0
- package/lib/module/ui/client.js +3 -4
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +28 -92
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/Header.js +127 -241
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialog.js +22 -18
- package/lib/module/ui/components/OxyAccountDialog.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +4 -5
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyOAuthCallback.js +41 -0
- package/lib/module/ui/components/OxyOAuthCallback.js.map +1 -0
- package/lib/module/ui/components/OxyPayButton.js +21 -71
- package/lib/module/ui/components/OxyPayButton.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +3 -3
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +34 -139
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +5 -3
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +95 -0
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -0
- package/lib/module/ui/components/RequireOxyAuth.js +7 -9
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +9 -9
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +20 -23
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +6 -6
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js +14 -8
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js +54 -54
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js +13 -13
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +128 -259
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/oxyContextHelpers.js +57 -0
- package/lib/module/ui/context/oxyContextHelpers.js.map +1 -0
- package/lib/module/ui/context/oxyContextTypes.js +4 -0
- package/lib/module/ui/context/oxyContextTypes.js.map +1 -0
- package/lib/module/ui/context/useOxyAccountGraph.js +87 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -0
- package/lib/module/ui/hooks/queryClient.js +8 -17
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +7 -5
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +2 -0
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +2 -3
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +4 -41
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +8 -7
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +2 -3
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js +7 -18
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +8 -8
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +0 -1
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +53 -1098
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +9 -8
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +0 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +5 -4
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +11 -51
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -7
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +247 -224
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +19 -18
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +3 -3
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +12 -11
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +3 -2
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +2 -2
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +6 -6
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js +110 -0
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +509 -0
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js +55 -0
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +471 -0
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -0
- package/lib/module/ui/screens/fileManagement/shared.js +58 -0
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -0
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +4 -7
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +3 -2
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js +2 -3
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +2 -2
- package/lib/module/ui/utils/crossOriginRestore.js +101 -0
- package/lib/module/ui/utils/crossOriginRestore.js.map +1 -0
- package/lib/module/ui/utils/deviceCredential.js +18 -0
- package/lib/module/ui/utils/deviceCredential.js.map +1 -0
- package/lib/module/ui/utils/oauthReturn.js +78 -0
- package/lib/module/ui/utils/oauthReturn.js.map +1 -0
- package/lib/module/ui/utils/storageHelpers.js +1 -2
- package/lib/module/ui/utils/storageHelpers.js.map +1 -1
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +11 -6
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/client.d.ts +3 -4
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Header.d.ts +16 -21
- package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/commonjs/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +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.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -3
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.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/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.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/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +2 -3
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/commonjs/ui/utils/crossOriginRestore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/commonjs/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts +25 -0
- package/lib/typescript/commonjs/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts.map +1 -1
- package/lib/typescript/module/assets/icons/OxyServices.d.ts +0 -5
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +11 -6
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +29 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/client.d.ts +3 -4
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Header.d.ts +16 -21
- package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +3 -7
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts +11 -0
- package/lib/typescript/module/ui/components/OxyOAuthCallback.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts +0 -13
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts +33 -0
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +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.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -10
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -185
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +7 -0
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +123 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +26 -0
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +2 -3
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +7 -5
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -3
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +4 -34
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.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/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.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/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts +40 -0
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +38 -0
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +25 -0
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts +39 -0
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts +34 -0
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +2 -3
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +2 -2
- package/lib/typescript/module/ui/types/navigation.d.ts +2 -18
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts +24 -0
- package/lib/typescript/module/ui/utils/crossOriginRestore.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts +8 -0
- package/lib/typescript/module/ui/utils/deviceCredential.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts +25 -0
- package/lib/typescript/module/ui/utils/oauthReturn.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts +0 -11
- package/lib/typescript/module/ui/utils/storageHelpers.d.ts.map +1 -1
- package/package.json +29 -17
- package/src/assets/icons/OxyServices.tsx +5 -12
- package/src/index.ts +16 -10
- package/src/ui/boot/runProviderColdBoot.ts +150 -0
- package/src/ui/client.ts +3 -4
- package/src/ui/components/FollowButton.tsx +30 -95
- package/src/ui/components/Header.tsx +135 -405
- package/src/ui/components/OxyAccountDialog.tsx +18 -16
- package/src/ui/components/OxyConsentScreen.tsx +2 -2
- package/src/ui/components/OxyOAuthCallback.tsx +38 -0
- package/src/ui/components/OxyPayButton.tsx +11 -60
- package/src/ui/components/OxyProvider.tsx +3 -3
- package/src/ui/components/OxySignInButton.tsx +35 -134
- package/src/ui/components/ProfileButton.tsx +8 -3
- package/src/ui/components/ProfileSummaryCard.tsx +123 -0
- package/src/ui/components/RequireOxyAuth.tsx +3 -3
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +1 -3
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +9 -9
- package/src/ui/components/fileManagement/FileViewer.tsx +20 -22
- package/src/ui/components/fileManagement/UploadPreview.tsx +6 -6
- package/src/ui/components/modals/DeleteAccountModal.tsx +7 -7
- package/src/ui/components/payment/PaymentDetailsStep.tsx +49 -39
- package/src/ui/components/payment/PaymentSummaryStep.tsx +4 -1
- package/src/ui/components/payment/paymentStyles.ts +14 -14
- package/src/ui/components/payment/types.ts +6 -10
- package/src/ui/context/OxyContext.tsx +136 -470
- package/src/ui/context/oxyContextHelpers.ts +58 -0
- package/src/ui/context/oxyContextTypes.ts +124 -0
- package/src/ui/context/useOxyAccountGraph.ts +114 -0
- package/src/ui/hooks/queryClient.ts +9 -20
- package/src/ui/hooks/useAuth.ts +7 -5
- package/src/ui/hooks/useSessionManagement.ts +2 -0
- package/src/ui/index.ts +2 -3
- package/src/ui/navigation/accountDialogManager.ts +4 -40
- package/src/ui/screens/ConnectedAppsScreen.tsx +8 -11
- package/src/ui/screens/EditProfileFieldScreen.tsx +2 -3
- package/src/ui/screens/EditProfileScreen.tsx +8 -14
- package/src/ui/screens/FAQScreen.tsx +7 -8
- package/src/ui/screens/FeedbackScreen.tsx +0 -1
- package/src/ui/screens/FileManagementScreen.tsx +54 -1158
- package/src/ui/screens/HistoryViewScreen.tsx +4 -4
- package/src/ui/screens/LanguageSelectorScreen.tsx +0 -1
- package/src/ui/screens/LegalDocumentsScreen.tsx +4 -3
- package/src/ui/screens/ManageAccountScreen.tsx +14 -47
- package/src/ui/screens/PaymentGatewayScreen.tsx +3 -7
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +33 -31
- package/src/ui/screens/PrivacySettingsScreen.tsx +14 -16
- package/src/ui/screens/ProfileScreen.tsx +3 -3
- package/src/ui/screens/SavesCollectionsScreen.tsx +11 -12
- package/src/ui/screens/SearchSettingsScreen.tsx +2 -2
- package/src/ui/screens/UserListScreen.tsx +2 -2
- package/src/ui/screens/WelcomeNewUserScreen.tsx +6 -7
- package/src/ui/screens/fileManagement/FileListSection.tsx +126 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +611 -0
- package/src/ui/screens/fileManagement/UploadBar.tsx +48 -0
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +497 -0
- package/src/ui/screens/fileManagement/shared.ts +65 -0
- package/src/ui/screens/trust/TrustCenterScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustFAQScreen.tsx +4 -10
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +2 -2
- package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -2
- package/src/ui/server.ts +2 -3
- package/src/ui/session/createSessionClient.ts +2 -2
- package/src/ui/types/navigation.ts +2 -18
- package/src/ui/utils/crossOriginRestore.ts +129 -0
- package/src/ui/utils/deviceCredential.ts +17 -0
- package/src/ui/utils/oauthReturn.ts +101 -0
- package/src/ui/utils/storageHelpers.ts +0 -12
- package/lib/commonjs/ui/components/ActivityIndicator.js +0 -203
- package/lib/commonjs/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/AutoHeightScrollView.js +0 -46
- package/lib/commonjs/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -181
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/CrossFadeIcon.js +0 -106
- package/lib/commonjs/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/commonjs/ui/components/EmptyState.js +0 -41
- package/lib/commonjs/ui/components/EmptyState.js.map +0 -1
- package/lib/commonjs/ui/components/HelperText.js +0 -95
- package/lib/commonjs/ui/components/HelperText.js.map +0 -1
- package/lib/commonjs/ui/components/Icon.js +0 -112
- package/lib/commonjs/ui/components/Icon.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -153
- package/lib/commonjs/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/commonjs/ui/components/IconButton/utils.js +0 -155
- package/lib/commonjs/ui/components/IconButton/utils.js.map +0 -1
- package/lib/commonjs/ui/components/LoadingState.js +0 -47
- package/lib/commonjs/ui/components/LoadingState.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -110
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -134
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -84
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/StepBasedScreen.js +0 -423
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/commonjs/ui/components/Surface.js +0 -258
- package/lib/commonjs/ui/components/Surface.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js +0 -46
- package/lib/commonjs/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js +0 -53
- package/lib/commonjs/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -153
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js +0 -144
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js +0 -137
- package/lib/commonjs/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js +0 -22
- package/lib/commonjs/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js +0 -62
- package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js +0 -176
- package/lib/commonjs/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js +0 -84
- package/lib/commonjs/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js +0 -381
- package/lib/commonjs/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js +0 -365
- package/lib/commonjs/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/constants.js +0 -50
- package/lib/commonjs/ui/components/TextField/constants.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/helpers.js +0 -489
- package/lib/commonjs/ui/components/TextField/helpers.js.map +0 -1
- package/lib/commonjs/ui/components/TextField/types.js +0 -6
- package/lib/commonjs/ui/components/TextField/types.js.map +0 -1
- package/lib/commonjs/ui/components/TextField.js +0 -335
- package/lib/commonjs/ui/components/TextField.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js +0 -12
- package/lib/commonjs/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +0 -258
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js +0 -107
- package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/commonjs/ui/components/TouchableRipple/utils.js +0 -56
- package/lib/commonjs/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/AnimatedText.js +0 -59
- package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/commonjs/ui/components/Typography/types.js +0 -26
- package/lib/commonjs/ui/components/Typography/types.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +0 -33
- package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -26
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/theming.js +0 -128
- package/lib/commonjs/ui/components/theming.js.map +0 -1
- package/lib/commonjs/ui/components/types.js +0 -6
- package/lib/commonjs/ui/components/types.js.map +0 -1
- package/lib/commonjs/ui/components/utils/forwardRef.js +0 -18
- package/lib/commonjs/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/commonjs/ui/constants/iconColors.js +0 -84
- package/lib/commonjs/ui/constants/iconColors.js.map +0 -1
- package/lib/commonjs/ui/constants/theme.js +0 -124
- package/lib/commonjs/ui/constants/theme.js.map +0 -1
- package/lib/commonjs/ui/context/ThemeContext.js +0 -36
- package/lib/commonjs/ui/context/ThemeContext.js.map +0 -1
- package/lib/commonjs/ui/hooks/useColorScheme.js +0 -29
- package/lib/commonjs/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/commonjs/ui/styles/authStyles.js +0 -334
- package/lib/commonjs/ui/styles/authStyles.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -153
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/module/ui/components/ActivityIndicator.js +0 -198
- package/lib/module/ui/components/ActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/AutoHeightScrollView.js +0 -41
- package/lib/module/ui/components/AutoHeightScrollView.js.map +0 -1
- package/lib/module/ui/components/Avatar.js +0 -177
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/CrossFadeIcon.js +0 -101
- package/lib/module/ui/components/CrossFadeIcon.js.map +0 -1
- package/lib/module/ui/components/EmptyState.js +0 -36
- package/lib/module/ui/components/EmptyState.js.map +0 -1
- package/lib/module/ui/components/HelperText.js +0 -90
- package/lib/module/ui/components/HelperText.js.map +0 -1
- package/lib/module/ui/components/Icon.js +0 -106
- package/lib/module/ui/components/Icon.js.map +0 -1
- package/lib/module/ui/components/IconButton/IconButton.js +0 -148
- package/lib/module/ui/components/IconButton/IconButton.js.map +0 -1
- package/lib/module/ui/components/IconButton/utils.js +0 -149
- package/lib/module/ui/components/IconButton/utils.js.map +0 -1
- package/lib/module/ui/components/LoadingState.js +0 -42
- package/lib/module/ui/components/LoadingState.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -104
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -129
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -80
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/StepBasedScreen.js +0 -418
- package/lib/module/ui/components/StepBasedScreen.js.map +0 -1
- package/lib/module/ui/components/Surface.js +0 -252
- package/lib/module/ui/components/Surface.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Outline.js +0 -40
- package/lib/module/ui/components/TextField/Addons/Outline.js.map +0 -1
- package/lib/module/ui/components/TextField/Addons/Underline.js +0 -47
- package/lib/module/ui/components/TextField/Addons/Underline.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +0 -146
- package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js +0 -141
- package/lib/module/ui/components/TextField/Adornment/TextFieldAffix.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js +0 -135
- package/lib/module/ui/components/TextField/Adornment/TextFieldIcon.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/enums.js +0 -18
- package/lib/module/ui/components/TextField/Adornment/enums.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/types.js +0 -4
- package/lib/module/ui/components/TextField/Adornment/types.js.map +0 -1
- package/lib/module/ui/components/TextField/Adornment/utils.js +0 -57
- package/lib/module/ui/components/TextField/Adornment/utils.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/InputLabel.js +0 -171
- package/lib/module/ui/components/TextField/Label/InputLabel.js.map +0 -1
- package/lib/module/ui/components/TextField/Label/LabelBackground.js +0 -78
- package/lib/module/ui/components/TextField/Label/LabelBackground.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldFlat.js +0 -376
- package/lib/module/ui/components/TextField/TextFieldFlat.js.map +0 -1
- package/lib/module/ui/components/TextField/TextFieldOutlined.js +0 -359
- package/lib/module/ui/components/TextField/TextFieldOutlined.js.map +0 -1
- package/lib/module/ui/components/TextField/constants.js +0 -46
- package/lib/module/ui/components/TextField/constants.js.map +0 -1
- package/lib/module/ui/components/TextField/helpers.js +0 -471
- package/lib/module/ui/components/TextField/helpers.js.map +0 -1
- package/lib/module/ui/components/TextField/types.js +0 -4
- package/lib/module/ui/components/TextField/types.js.map +0 -1
- package/lib/module/ui/components/TextField.js +0 -329
- package/lib/module/ui/components/TextField.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/Pressable.js +0 -9
- package/lib/module/ui/components/TouchableRipple/Pressable.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +0 -253
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js +0 -101
- package/lib/module/ui/components/TouchableRipple/TouchableRipple.native.js.map +0 -1
- package/lib/module/ui/components/TouchableRipple/utils.js +0 -50
- package/lib/module/ui/components/TouchableRipple/utils.js.map +0 -1
- package/lib/module/ui/components/Typography/AnimatedText.js +0 -54
- package/lib/module/ui/components/Typography/AnimatedText.js.map +0 -1
- package/lib/module/ui/components/Typography/types.js +0 -22
- package/lib/module/ui/components/Typography/types.js.map +0 -1
- package/lib/module/ui/components/feedback/ProgressIndicator.js +0 -28
- package/lib/module/ui/components/feedback/ProgressIndicator.js.map +0 -1
- package/lib/module/ui/components/icon/OxyIcon.js +0 -22
- package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/module/ui/components/theming.js +0 -123
- package/lib/module/ui/components/theming.js.map +0 -1
- package/lib/module/ui/components/types.js +0 -4
- package/lib/module/ui/components/types.js.map +0 -1
- package/lib/module/ui/components/utils/forwardRef.js +0 -13
- package/lib/module/ui/components/utils/forwardRef.js.map +0 -1
- package/lib/module/ui/constants/iconColors.js +0 -78
- package/lib/module/ui/constants/iconColors.js.map +0 -1
- package/lib/module/ui/constants/theme.js +0 -120
- package/lib/module/ui/constants/theme.js.map +0 -1
- package/lib/module/ui/context/ThemeContext.js +0 -29
- package/lib/module/ui/context/ThemeContext.js.map +0 -1
- package/lib/module/ui/hooks/useColorScheme.js +0 -26
- package/lib/module/ui/hooks/useColorScheme.js.map +0 -1
- package/lib/module/ui/styles/authStyles.js +0 -329
- package/lib/module/ui/styles/authStyles.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -147
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/commonjs/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/commonjs/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/commonjs/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/commonjs/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/commonjs/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/commonjs/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/commonjs/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/commonjs/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/commonjs/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/commonjs/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/commonjs/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/theming.d.ts +0 -8
- package/lib/typescript/commonjs/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/types.d.ts +0 -81
- package/lib/typescript/commonjs/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/commonjs/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/commonjs/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/commonjs/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/commonjs/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/commonjs/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +0 -45
- package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts +0 -23
- package/lib/typescript/module/ui/components/AutoHeightScrollView.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Avatar.d.ts +0 -61
- package/lib/typescript/module/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +0 -28
- package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/EmptyState.d.ts +0 -8
- package/lib/typescript/module/ui/components/EmptyState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/HelperText.d.ts +0 -47
- package/lib/typescript/module/ui/components/HelperText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Icon.d.ts +0 -61
- package/lib/typescript/module/ui/components/Icon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +0 -99
- package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts +0 -19
- package/lib/typescript/module/ui/components/IconButton/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/LoadingState.d.ts +0 -9
- package/lib/typescript/module/ui/components/LoadingState.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/OxyLogo.d.ts +0 -16
- package/lib/typescript/module/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ProfileCard.d.ts +0 -21
- package/lib/typescript/module/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/module/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts +0 -28
- package/lib/typescript/module/ui/components/StepBasedScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Surface.d.ts +0 -76
- package/lib/typescript/module/ui/components/Surface.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +0 -17
- package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +0 -20
- package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +0 -45
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +0 -73
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +0 -78
- package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts +0 -13
- package/lib/typescript/module/ui/components/TextField/Adornment/enums.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts +0 -12
- package/lib/typescript/module/ui/components/TextField/Adornment/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/InputLabel.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/Label/LabelBackground.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldFlat.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts +0 -5
- package/lib/typescript/module/ui/components/TextField/TextFieldOutlined.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/constants.d.ts +0 -32
- package/lib/typescript/module/ui/components/TextField/constants.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts +0 -97
- package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField/types.d.ts +0 -155
- package/lib/typescript/module/ui/components/TextField/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TextField.d.ts +0 -192
- package/lib/typescript/module/ui/components/TextField.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts +0 -13
- package/lib/typescript/module/ui/components/TouchableRipple/Pressable.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +0 -62
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +0 -25
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts +0 -11
- package/lib/typescript/module/ui/components/TouchableRipple/utils.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +0 -35
- package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/Typography/types.d.ts +0 -19
- package/lib/typescript/module/ui/components/Typography/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts +0 -11
- package/lib/typescript/module/ui/components/feedback/ProgressIndicator.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/module/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/theming.d.ts +0 -8
- package/lib/typescript/module/ui/components/theming.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/types.d.ts +0 -81
- package/lib/typescript/module/ui/components/types.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts +0 -12
- package/lib/typescript/module/ui/components/utils/forwardRef.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/iconColors.d.ts +0 -130
- package/lib/typescript/module/ui/constants/iconColors.d.ts.map +0 -1
- package/lib/typescript/module/ui/constants/theme.d.ts +0 -98
- package/lib/typescript/module/ui/constants/theme.d.ts.map +0 -1
- package/lib/typescript/module/ui/context/ThemeContext.d.ts +0 -19
- package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts +0 -8
- package/lib/typescript/module/ui/hooks/useColorScheme.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/authStyles.d.ts +0 -328
- package/lib/typescript/module/ui/styles/authStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/styles/theme.d.ts +0 -75
- package/lib/typescript/module/ui/styles/theme.d.ts.map +0 -1
- package/src/ui/components/ActivityIndicator.tsx +0 -254
- package/src/ui/components/AutoHeightScrollView.tsx +0 -50
- package/src/ui/components/Avatar.tsx +0 -284
- package/src/ui/components/CrossFadeIcon.tsx +0 -140
- package/src/ui/components/EmptyState.tsx +0 -39
- package/src/ui/components/HelperText.tsx +0 -149
- package/src/ui/components/Icon.tsx +0 -189
- package/src/ui/components/IconButton/IconButton.tsx +0 -232
- package/src/ui/components/IconButton/utils.ts +0 -190
- package/src/ui/components/LoadingState.tsx +0 -46
- package/src/ui/components/OxyLogo.tsx +0 -82
- package/src/ui/components/ProfileCard.tsx +0 -137
- package/src/ui/components/QuickActions.tsx +0 -91
- package/src/ui/components/StepBasedScreen.tsx +0 -499
- package/src/ui/components/Surface.tsx +0 -384
- package/src/ui/components/TextField/Addons/Outline.tsx +0 -64
- package/src/ui/components/TextField/Addons/Underline.tsx +0 -78
- package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +0 -205
- package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +0 -212
- package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +0 -195
- package/src/ui/components/TextField/Adornment/enums.tsx +0 -12
- package/src/ui/components/TextField/Adornment/types.tsx +0 -11
- package/src/ui/components/TextField/Adornment/utils.ts +0 -66
- package/src/ui/components/TextField/Label/InputLabel.tsx +0 -219
- package/src/ui/components/TextField/Label/LabelBackground.tsx +0 -100
- package/src/ui/components/TextField/TextFieldFlat.tsx +0 -488
- package/src/ui/components/TextField/TextFieldOutlined.tsx +0 -464
- package/src/ui/components/TextField/constants.tsx +0 -48
- package/src/ui/components/TextField/helpers.tsx +0 -611
- package/src/ui/components/TextField/types.tsx +0 -160
- package/src/ui/components/TextField.tsx +0 -574
- package/src/ui/components/TouchableRipple/Pressable.tsx +0 -42
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +0 -146
- package/src/ui/components/TouchableRipple/TouchableRipple.tsx +0 -347
- package/src/ui/components/TouchableRipple/utils.ts +0 -66
- package/src/ui/components/Typography/AnimatedText.tsx +0 -106
- package/src/ui/components/Typography/types.tsx +0 -22
- package/src/ui/components/feedback/ProgressIndicator.tsx +0 -35
- package/src/ui/components/icon/OxyIcon.tsx +0 -31
- package/src/ui/components/theming.tsx +0 -126
- package/src/ui/components/types.tsx +0 -93
- package/src/ui/components/utils/forwardRef.tsx +0 -23
- package/src/ui/constants/iconColors.ts +0 -88
- package/src/ui/constants/theme.ts +0 -121
- package/src/ui/context/ThemeContext.tsx +0 -41
- package/src/ui/context/__tests__/OxyContext.coldBoot.test.tsx +0 -166
- package/src/ui/hooks/useColorScheme.ts +0 -24
- package/src/ui/styles/authStyles.ts +0 -348
- package/src/ui/styles/theme.ts +0 -169
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Animated, TextInput as NativeTextInput } from 'react-native';
|
|
5
|
-
import TextFieldAffix from "./TextField/Adornment/TextFieldAffix.js";
|
|
6
|
-
import TextFieldIcon from "./TextField/Adornment/TextFieldIcon.js";
|
|
7
|
-
import TextFieldFlat from "./TextField/TextFieldFlat.js";
|
|
8
|
-
import TextFieldOutlined from "./TextField/TextFieldOutlined.js";
|
|
9
|
-
import { useInternalTheme } from "./theming.js";
|
|
10
|
-
import { forwardRef } from "./utils/forwardRef.js";
|
|
11
|
-
import { roundLayoutSize } from "./utils/roundLayoutSize.js";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const BLUR_ANIMATION_DURATION = 180;
|
|
14
|
-
const FOCUS_ANIMATION_DURATION = 150;
|
|
15
|
-
const DefaultRenderer = props => /*#__PURE__*/_jsx(NativeTextInput, {
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A component to allow users to input text.
|
|
21
|
-
*
|
|
22
|
-
* ## Usage
|
|
23
|
-
* ```js
|
|
24
|
-
* import * as React from 'react';
|
|
25
|
-
* import { TextField } from './TextField';
|
|
26
|
-
*
|
|
27
|
-
* const MyComponent = () => {
|
|
28
|
-
* const [text, setText] = React.useState("");
|
|
29
|
-
*
|
|
30
|
-
* return (
|
|
31
|
-
* <TextField
|
|
32
|
-
* label="Email"
|
|
33
|
-
* value={text}
|
|
34
|
-
* onChangeText={text => setText(text)}
|
|
35
|
-
* />
|
|
36
|
-
* );
|
|
37
|
-
* };
|
|
38
|
-
*
|
|
39
|
-
* export default MyComponent;
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @extends TextInput props https://reactnative.dev/docs/textinput#props
|
|
43
|
-
*/
|
|
44
|
-
const TextField = forwardRef(({
|
|
45
|
-
mode = 'flat',
|
|
46
|
-
dense = false,
|
|
47
|
-
disabled = false,
|
|
48
|
-
error: errorProp = false,
|
|
49
|
-
multiline = false,
|
|
50
|
-
editable = true,
|
|
51
|
-
contentStyle,
|
|
52
|
-
render = DefaultRenderer,
|
|
53
|
-
theme: themeOverrides,
|
|
54
|
-
...rest
|
|
55
|
-
}, ref) => {
|
|
56
|
-
const theme = useInternalTheme(themeOverrides);
|
|
57
|
-
const isControlled = rest.value !== undefined;
|
|
58
|
-
const validInputValue = isControlled ? rest.value : rest.defaultValue;
|
|
59
|
-
const {
|
|
60
|
-
current: labeled
|
|
61
|
-
} = React.useRef(new Animated.Value(validInputValue ? 0 : 1));
|
|
62
|
-
const {
|
|
63
|
-
current: error
|
|
64
|
-
} = React.useRef(new Animated.Value(errorProp ? 1 : 0));
|
|
65
|
-
const [focused, setFocused] = React.useState(false);
|
|
66
|
-
const [displayPlaceholder, setDisplayPlaceholder] = React.useState(false);
|
|
67
|
-
const [uncontrolledValue, setUncontrolledValue] = React.useState(validInputValue);
|
|
68
|
-
// Use value from props instead of local state when input is controlled
|
|
69
|
-
const value = isControlled ? rest.value : uncontrolledValue;
|
|
70
|
-
const [labelTextLayout, setLabelTextLayout] = React.useState({
|
|
71
|
-
width: 33
|
|
72
|
-
});
|
|
73
|
-
const [inputContainerLayout, setInputContainerLayout] = React.useState({
|
|
74
|
-
width: 65
|
|
75
|
-
});
|
|
76
|
-
const [labelLayout, setLabelLayout] = React.useState({
|
|
77
|
-
measured: false,
|
|
78
|
-
width: 0,
|
|
79
|
-
height: 0
|
|
80
|
-
});
|
|
81
|
-
const [leftLayout, setLeftLayout] = React.useState({
|
|
82
|
-
width: null,
|
|
83
|
-
height: null
|
|
84
|
-
});
|
|
85
|
-
const [rightLayout, setRightLayout] = React.useState({
|
|
86
|
-
width: null,
|
|
87
|
-
height: null
|
|
88
|
-
});
|
|
89
|
-
const timer = React.useRef(undefined);
|
|
90
|
-
const root = React.useRef(null);
|
|
91
|
-
const {
|
|
92
|
-
scale
|
|
93
|
-
} = theme.animation;
|
|
94
|
-
React.useImperativeHandle(ref, () => ({
|
|
95
|
-
focus: () => root.current?.focus(),
|
|
96
|
-
clear: () => root.current?.clear(),
|
|
97
|
-
setNativeProps: args => root.current?.setNativeProps(args),
|
|
98
|
-
isFocused: () => root.current?.isFocused() || false,
|
|
99
|
-
blur: () => root.current?.blur(),
|
|
100
|
-
forceFocus: () => root.current?.focus(),
|
|
101
|
-
setSelection: (start, end) => root.current?.setSelection(start, end)
|
|
102
|
-
}));
|
|
103
|
-
React.useEffect(() => {
|
|
104
|
-
// When the input has an error, we wiggle the label and apply error styles
|
|
105
|
-
if (errorProp) {
|
|
106
|
-
// show error
|
|
107
|
-
Animated.timing(error, {
|
|
108
|
-
toValue: 1,
|
|
109
|
-
duration: FOCUS_ANIMATION_DURATION * scale,
|
|
110
|
-
// To prevent this - https://github.com/callstack/react-native-paper/issues/941
|
|
111
|
-
useNativeDriver: true
|
|
112
|
-
}).start();
|
|
113
|
-
} else {
|
|
114
|
-
Animated.timing(error, {
|
|
115
|
-
toValue: 0,
|
|
116
|
-
duration: BLUR_ANIMATION_DURATION * scale,
|
|
117
|
-
// To prevent this - https://github.com/callstack/react-native-paper/issues/941
|
|
118
|
-
useNativeDriver: true
|
|
119
|
-
}).start();
|
|
120
|
-
}
|
|
121
|
-
}, [errorProp, scale, error]);
|
|
122
|
-
React.useEffect(() => {
|
|
123
|
-
// Show placeholder text only if the input is focused, or there's no label
|
|
124
|
-
// We don't show placeholder if there's a label because the label acts as placeholder
|
|
125
|
-
// When focused, the label moves up, so we can show a placeholder
|
|
126
|
-
if (focused || !rest.label) {
|
|
127
|
-
// If the user wants to use the contextMenu, when changing the placeholder, the contextMenu is closed
|
|
128
|
-
// This is a workaround to mitigate this behavior in scenarios where the placeholder is not specified.
|
|
129
|
-
if (rest.placeholder) {
|
|
130
|
-
// Display placeholder in a delay to offset the label animation
|
|
131
|
-
// If we show it immediately, they'll overlap and look ugly
|
|
132
|
-
timer.current = setTimeout(() => setDisplayPlaceholder(true), 50);
|
|
133
|
-
}
|
|
134
|
-
} else {
|
|
135
|
-
// hidePlaceholder
|
|
136
|
-
setDisplayPlaceholder(false);
|
|
137
|
-
}
|
|
138
|
-
return () => {
|
|
139
|
-
if (timer.current) {
|
|
140
|
-
clearTimeout(timer.current);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}, [focused, rest.label, rest.placeholder]);
|
|
144
|
-
React.useEffect(() => {
|
|
145
|
-
labeled.stopAnimation();
|
|
146
|
-
// The label should be minimized if the text input is focused, or has text
|
|
147
|
-
// In minimized mode, the label moves up and becomes small
|
|
148
|
-
// workaround for animated regression for react native > 0.61
|
|
149
|
-
// https://github.com/callstack/react-native-paper/pull/1440
|
|
150
|
-
if (value || focused) {
|
|
151
|
-
// minimize label
|
|
152
|
-
Animated.timing(labeled, {
|
|
153
|
-
toValue: 0,
|
|
154
|
-
duration: BLUR_ANIMATION_DURATION * scale,
|
|
155
|
-
// To prevent this - https://github.com/callstack/react-native-paper/issues/941
|
|
156
|
-
useNativeDriver: true
|
|
157
|
-
}).start();
|
|
158
|
-
} else {
|
|
159
|
-
// restore label
|
|
160
|
-
Animated.timing(labeled, {
|
|
161
|
-
toValue: 1,
|
|
162
|
-
duration: FOCUS_ANIMATION_DURATION * scale,
|
|
163
|
-
// To prevent this - https://github.com/callstack/react-native-paper/issues/941
|
|
164
|
-
useNativeDriver: true
|
|
165
|
-
}).start();
|
|
166
|
-
}
|
|
167
|
-
}, [focused, value, labeled, scale]);
|
|
168
|
-
const onLeftAffixLayoutChange = React.useCallback(event => {
|
|
169
|
-
const height = roundLayoutSize(event.nativeEvent.layout.height);
|
|
170
|
-
const width = roundLayoutSize(event.nativeEvent.layout.width);
|
|
171
|
-
if (width !== leftLayout.width || height !== leftLayout.height) {
|
|
172
|
-
setLeftLayout({
|
|
173
|
-
width,
|
|
174
|
-
height
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}, [leftLayout.height, leftLayout.width]);
|
|
178
|
-
const onRightAffixLayoutChange = React.useCallback(event => {
|
|
179
|
-
const width = roundLayoutSize(event.nativeEvent.layout.width);
|
|
180
|
-
const height = roundLayoutSize(event.nativeEvent.layout.height);
|
|
181
|
-
if (width !== rightLayout.width || height !== rightLayout.height) {
|
|
182
|
-
setRightLayout({
|
|
183
|
-
width,
|
|
184
|
-
height
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}, [rightLayout.height, rightLayout.width]);
|
|
188
|
-
const handleFocus = args => {
|
|
189
|
-
if (disabled || !editable) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
setFocused(true);
|
|
193
|
-
rest.onFocus?.(args);
|
|
194
|
-
};
|
|
195
|
-
const handleBlur = args => {
|
|
196
|
-
if (!editable) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
setFocused(false);
|
|
200
|
-
rest.onBlur?.(args);
|
|
201
|
-
};
|
|
202
|
-
const handleChangeText = value => {
|
|
203
|
-
if (!editable || disabled) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (!isControlled) {
|
|
207
|
-
// Keep track of value in local state when input is not controlled
|
|
208
|
-
setUncontrolledValue(value);
|
|
209
|
-
}
|
|
210
|
-
rest.onChangeText?.(value);
|
|
211
|
-
};
|
|
212
|
-
const handleLayoutAnimatedText = React.useCallback(e => {
|
|
213
|
-
const width = roundLayoutSize(e.nativeEvent.layout.width);
|
|
214
|
-
const height = roundLayoutSize(e.nativeEvent.layout.height);
|
|
215
|
-
if (width !== labelLayout.width || height !== labelLayout.height) {
|
|
216
|
-
setLabelLayout({
|
|
217
|
-
width,
|
|
218
|
-
height,
|
|
219
|
-
measured: true
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}, [labelLayout.height, labelLayout.width]);
|
|
223
|
-
const handleLabelTextLayout = React.useCallback(({
|
|
224
|
-
nativeEvent
|
|
225
|
-
}) => {
|
|
226
|
-
setLabelTextLayout({
|
|
227
|
-
width: nativeEvent.lines.reduce((acc, line) => acc + Math.ceil(line.width), 0)
|
|
228
|
-
});
|
|
229
|
-
}, []);
|
|
230
|
-
const handleInputContainerLayout = React.useCallback(({
|
|
231
|
-
nativeEvent: {
|
|
232
|
-
layout
|
|
233
|
-
}
|
|
234
|
-
}) => {
|
|
235
|
-
setInputContainerLayout({
|
|
236
|
-
width: layout.width
|
|
237
|
-
});
|
|
238
|
-
}, []);
|
|
239
|
-
const forceFocus = React.useCallback(() => root.current?.focus(), []);
|
|
240
|
-
const {
|
|
241
|
-
maxFontSizeMultiplier = 1.5
|
|
242
|
-
} = rest;
|
|
243
|
-
const scaledLabel = !!(value || focused);
|
|
244
|
-
if (mode === 'outlined') {
|
|
245
|
-
return /*#__PURE__*/_jsx(TextFieldOutlined, {
|
|
246
|
-
dense: dense,
|
|
247
|
-
disabled: disabled,
|
|
248
|
-
error: errorProp,
|
|
249
|
-
multiline: multiline,
|
|
250
|
-
editable: editable,
|
|
251
|
-
render: render,
|
|
252
|
-
...rest,
|
|
253
|
-
theme: theme,
|
|
254
|
-
value: value,
|
|
255
|
-
parentState: {
|
|
256
|
-
labeled,
|
|
257
|
-
error,
|
|
258
|
-
focused,
|
|
259
|
-
displayPlaceholder,
|
|
260
|
-
value,
|
|
261
|
-
labelTextLayout,
|
|
262
|
-
labelLayout,
|
|
263
|
-
leftLayout,
|
|
264
|
-
rightLayout,
|
|
265
|
-
inputContainerLayout
|
|
266
|
-
},
|
|
267
|
-
innerRef: ref => {
|
|
268
|
-
root.current = ref;
|
|
269
|
-
},
|
|
270
|
-
onFocus: handleFocus,
|
|
271
|
-
forceFocus: forceFocus,
|
|
272
|
-
onBlur: handleBlur,
|
|
273
|
-
onChangeText: handleChangeText,
|
|
274
|
-
onLayoutAnimatedText: handleLayoutAnimatedText,
|
|
275
|
-
onInputLayout: handleInputContainerLayout,
|
|
276
|
-
onLabelTextLayout: handleLabelTextLayout,
|
|
277
|
-
onLeftAffixLayoutChange: onLeftAffixLayoutChange,
|
|
278
|
-
onRightAffixLayoutChange: onRightAffixLayoutChange,
|
|
279
|
-
maxFontSizeMultiplier: maxFontSizeMultiplier,
|
|
280
|
-
contentStyle: contentStyle,
|
|
281
|
-
scaledLabel: scaledLabel
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
return /*#__PURE__*/_jsx(TextFieldFlat, {
|
|
285
|
-
dense: dense,
|
|
286
|
-
disabled: disabled,
|
|
287
|
-
error: errorProp,
|
|
288
|
-
multiline: multiline,
|
|
289
|
-
editable: editable,
|
|
290
|
-
render: render,
|
|
291
|
-
...rest,
|
|
292
|
-
theme: theme,
|
|
293
|
-
value: value,
|
|
294
|
-
parentState: {
|
|
295
|
-
labeled,
|
|
296
|
-
error,
|
|
297
|
-
focused,
|
|
298
|
-
displayPlaceholder,
|
|
299
|
-
value,
|
|
300
|
-
labelTextLayout,
|
|
301
|
-
labelLayout,
|
|
302
|
-
leftLayout,
|
|
303
|
-
rightLayout,
|
|
304
|
-
inputContainerLayout
|
|
305
|
-
},
|
|
306
|
-
innerRef: ref => {
|
|
307
|
-
root.current = ref;
|
|
308
|
-
},
|
|
309
|
-
onFocus: handleFocus,
|
|
310
|
-
forceFocus: forceFocus,
|
|
311
|
-
onBlur: handleBlur,
|
|
312
|
-
onInputLayout: handleInputContainerLayout,
|
|
313
|
-
onChangeText: handleChangeText,
|
|
314
|
-
onLayoutAnimatedText: handleLayoutAnimatedText,
|
|
315
|
-
onLabelTextLayout: handleLabelTextLayout,
|
|
316
|
-
onLeftAffixLayoutChange: onLeftAffixLayoutChange,
|
|
317
|
-
onRightAffixLayoutChange: onRightAffixLayoutChange,
|
|
318
|
-
maxFontSizeMultiplier: maxFontSizeMultiplier,
|
|
319
|
-
contentStyle: contentStyle,
|
|
320
|
-
scaledLabel: scaledLabel
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
// @component ./TextField/Adornment/TextFieldIcon.tsx
|
|
324
|
-
TextField.Icon = TextFieldIcon;
|
|
325
|
-
|
|
326
|
-
// @component ./TextField/Adornment/TextFieldAffix.tsx
|
|
327
|
-
TextField.Affix = TextFieldAffix;
|
|
328
|
-
export default TextField;
|
|
329
|
-
//# sourceMappingURL=TextField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Animated","TextInput","NativeTextInput","TextFieldAffix","TextFieldIcon","TextFieldFlat","TextFieldOutlined","useInternalTheme","forwardRef","roundLayoutSize","jsx","_jsx","BLUR_ANIMATION_DURATION","FOCUS_ANIMATION_DURATION","DefaultRenderer","props","TextField","mode","dense","disabled","error","errorProp","multiline","editable","contentStyle","render","theme","themeOverrides","rest","ref","isControlled","value","undefined","validInputValue","defaultValue","current","labeled","useRef","Value","focused","setFocused","useState","displayPlaceholder","setDisplayPlaceholder","uncontrolledValue","setUncontrolledValue","labelTextLayout","setLabelTextLayout","width","inputContainerLayout","setInputContainerLayout","labelLayout","setLabelLayout","measured","height","leftLayout","setLeftLayout","rightLayout","setRightLayout","timer","root","scale","animation","useImperativeHandle","focus","clear","setNativeProps","args","isFocused","blur","forceFocus","setSelection","start","end","useEffect","timing","toValue","duration","useNativeDriver","label","placeholder","setTimeout","clearTimeout","stopAnimation","onLeftAffixLayoutChange","useCallback","event","nativeEvent","layout","onRightAffixLayoutChange","handleFocus","onFocus","handleBlur","onBlur","handleChangeText","onChangeText","handleLayoutAnimatedText","e","handleLabelTextLayout","lines","reduce","acc","line","Math","ceil","handleInputContainerLayout","maxFontSizeMultiplier","scaledLabel","parentState","innerRef","onLayoutAnimatedText","onInputLayout","onLabelTextLayout","Icon","Affix"],"sourceRoot":"../../../../src","sources":["ui/components/TextField.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EAGRC,SAAS,IAAIC,eAAe,QAKvB,cAAc;AAErB,OAAOC,cAAc,MAEd,yCAAsC;AAC7C,OAAOC,aAAa,MAEb,wCAAqC;AAC5C,OAAOC,aAAa,MAAM,8BAA2B;AACrD,OAAOC,iBAAiB,MAAM,kCAA+B;AAE7D,SAASC,gBAAgB,QAAQ,cAAW;AAE5C,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,eAAe,QAAQ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IAAA,CAACN,aAAa;IACZa,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEC,SAAU;IACjBC,SAAS,EAAEA,SAAU;IACrBC,QAAQ,EAAEA,QAAS;IACnBE,MAAM,EAAEA,MAAO;IAAA,GACXG,IAAI;IACRF,KAAK,EAAEA,KAAM;IACbK,KAAK,EAAEA,KAAM;IACb6E,WAAW,EAAE;MACXxE,OAAO;MACPhB,KAAK;MACLmB,OAAO;MACPG,kBAAkB;MAClBX,KAAK;MACLe,eAAe;MACfK,WAAW;MACXI,UAAU;MACVE,WAAW;MACXR;IACF,CAAE;IACF4D,QAAQ,EAAGhF,GAAG,IAAK;MACjB+B,IAAI,CAACzB,OAAO,GAAGN,GAAG;IACpB,CAAE;IACF8D,OAAO,EAAED,WAAY;IACrBpB,UAAU,EAAEA,UAAW;IACvBuB,MAAM,EAAED,UAAW;IACnBmB,aAAa,EAAEN,0BAA2B;IAC1CV,YAAY,EAAED,gBAAiB;IAC/BgB,oBAAoB,EAAEd,wBAAyB;IAC/CgB,iBAAiB,EAAEd,qBAAsB;IACzCd,uBAAuB,EAAEA,uBAAwB;IACjDK,wBAAwB,EAAEA,wBAAyB;IACnDiB,qBAAqB,EAAEA,qBAAsB;IAC7ClF,YAAY,EAAEA,YAAa;IAC3BmF,WAAW,EAAEA;EAAY,CAC1B,CAAC;AAEN,CACF,CAAwB;AACxB;AACA3F,SAAS,CAACiG,IAAI,GAAG7G,aAAa;;AAE9B;AACAY,SAAS,CAACkG,KAAK,GAAG/G,cAAc;AAEhC,eAAea,SAAS","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Pressable as PressableNative } from 'react-native';
|
|
4
|
-
|
|
5
|
-
// This component is added to support type-safe hover and focus states on web
|
|
6
|
-
// https://necolas.github.io/react-native-web/docs/pressable/
|
|
7
|
-
|
|
8
|
-
export const Pressable = PressableNative;
|
|
9
|
-
//# sourceMappingURL=Pressable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","PressableNative"],"sourceRoot":"../../../../../src","sources":["ui/components/TouchableRipple/Pressable.tsx"],"mappings":";;AAQA,SAASA,SAAS,IAAIC,eAAe,QAAQ,cAAc;;AAE3D;AACA;;AA2BA,OAAO,MAAMD,SAGZ,GAAGC,eAAsB","ignoreList":[]}
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Platform, StyleSheet } from 'react-native';
|
|
5
|
-
import { Pressable } from "./Pressable.js";
|
|
6
|
-
import { getTouchableRippleColors } from "./utils.js";
|
|
7
|
-
import { useInternalTheme } from "../theming.js";
|
|
8
|
-
import { forwardRef } from "../utils/forwardRef.js";
|
|
9
|
-
import hasTouchHandler from "../utils/hasTouchHandler.js";
|
|
10
|
-
|
|
11
|
-
// Settings context not needed - removed dependency
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const SettingsContext = /*#__PURE__*/React.createContext({
|
|
14
|
-
rippleEffectEnabled: true
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// Color manipulation utilities (simplified without color package)
|
|
18
|
-
const hexToRgb = hex => {
|
|
19
|
-
const r = Number.parseInt(hex.slice(1, 3), 16);
|
|
20
|
-
const g = Number.parseInt(hex.slice(3, 5), 16);
|
|
21
|
-
const b = Number.parseInt(hex.slice(5, 7), 16);
|
|
22
|
-
return [r, g, b];
|
|
23
|
-
};
|
|
24
|
-
const fadeColor = (color, alpha) => {
|
|
25
|
-
const [r, g, b] = hexToRgb(color);
|
|
26
|
-
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
27
|
-
};
|
|
28
|
-
const colorUtil = hex => ({
|
|
29
|
-
fade: alpha => ({
|
|
30
|
-
rgb: () => ({
|
|
31
|
-
string: () => fadeColor(hex, alpha)
|
|
32
|
-
})
|
|
33
|
-
}),
|
|
34
|
-
rgb: () => ({
|
|
35
|
-
string: () => hex
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* A wrapper for views that should respond to touches.
|
|
40
|
-
* Provides a material "ink ripple" interaction effect for supported platforms (>= Android Lollipop).
|
|
41
|
-
* On unsupported platforms, it falls back to a highlight effect.
|
|
42
|
-
*
|
|
43
|
-
* ## Usage
|
|
44
|
-
* ```js
|
|
45
|
-
* import * as React from 'react';
|
|
46
|
-
* import { View } from 'react-native';
|
|
47
|
-
* import { Text, TouchableRipple } from 'react-native-paper';
|
|
48
|
-
*
|
|
49
|
-
* const MyComponent = () => (
|
|
50
|
-
* <TouchableRipple
|
|
51
|
-
* onPress={() => console.log('Pressed')}
|
|
52
|
-
* rippleColor="rgba(0, 0, 0, .32)"
|
|
53
|
-
* >
|
|
54
|
-
* <Text>Press anywhere</Text>
|
|
55
|
-
* </TouchableRipple>
|
|
56
|
-
* );
|
|
57
|
-
*
|
|
58
|
-
* export default MyComponent;
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @extends Pressable props https://reactnative.dev/docs/Pressable#props
|
|
62
|
-
*/
|
|
63
|
-
const TouchableRipple = ({
|
|
64
|
-
style,
|
|
65
|
-
background: _background,
|
|
66
|
-
borderless = false,
|
|
67
|
-
disabled: disabledProp,
|
|
68
|
-
rippleColor,
|
|
69
|
-
underlayColor: _underlayColor,
|
|
70
|
-
children,
|
|
71
|
-
theme: themeOverrides,
|
|
72
|
-
...rest
|
|
73
|
-
}, ref) => {
|
|
74
|
-
const theme = useInternalTheme(themeOverrides);
|
|
75
|
-
const {
|
|
76
|
-
calculatedRippleColor
|
|
77
|
-
} = getTouchableRippleColors({
|
|
78
|
-
theme,
|
|
79
|
-
rippleColor
|
|
80
|
-
});
|
|
81
|
-
const hoverColor = colorUtil(typeof calculatedRippleColor === 'string' ? calculatedRippleColor : '#000000').fade(0.5).rgb().string();
|
|
82
|
-
const {
|
|
83
|
-
rippleEffectEnabled
|
|
84
|
-
} = React.useContext(SettingsContext);
|
|
85
|
-
const {
|
|
86
|
-
onPress,
|
|
87
|
-
onLongPress,
|
|
88
|
-
onPressIn,
|
|
89
|
-
onPressOut
|
|
90
|
-
} = rest;
|
|
91
|
-
const handlePressIn = React.useCallback(e => {
|
|
92
|
-
onPressIn?.(e);
|
|
93
|
-
if (rippleEffectEnabled) {
|
|
94
|
-
const {
|
|
95
|
-
centered
|
|
96
|
-
} = rest;
|
|
97
|
-
const button = e.currentTarget;
|
|
98
|
-
const style = window.getComputedStyle(button);
|
|
99
|
-
const dimensions = button.getBoundingClientRect();
|
|
100
|
-
let touchX;
|
|
101
|
-
let touchY;
|
|
102
|
-
const {
|
|
103
|
-
changedTouches,
|
|
104
|
-
touches
|
|
105
|
-
} = e.nativeEvent;
|
|
106
|
-
const touch = touches?.[0] ?? changedTouches?.[0];
|
|
107
|
-
|
|
108
|
-
// If centered or it was pressed using keyboard - enter or space
|
|
109
|
-
if (centered || !touch) {
|
|
110
|
-
touchX = dimensions.width / 2;
|
|
111
|
-
touchY = dimensions.height / 2;
|
|
112
|
-
} else {
|
|
113
|
-
touchX = touch.locationX ?? e.pageX;
|
|
114
|
-
touchY = touch.locationY ?? e.pageY;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Get the size of the button to determine how big the ripple should be
|
|
118
|
-
const size = centered ?
|
|
119
|
-
// If ripple is always centered, we don't need to make it too big
|
|
120
|
-
Math.min(dimensions.width, dimensions.height) * 1.5 :
|
|
121
|
-
// Otherwise make it twice as big so clicking on one end spreads ripple to other
|
|
122
|
-
Math.max(dimensions.width, dimensions.height) * 2;
|
|
123
|
-
|
|
124
|
-
// Create a container for our ripple effect so we don't need to change the parent's style
|
|
125
|
-
const container = document.createElement('span');
|
|
126
|
-
container.setAttribute('data-paper-ripple', '');
|
|
127
|
-
Object.assign(container.style, {
|
|
128
|
-
position: 'absolute',
|
|
129
|
-
pointerEvents: 'none',
|
|
130
|
-
top: '0',
|
|
131
|
-
left: '0',
|
|
132
|
-
right: '0',
|
|
133
|
-
bottom: '0',
|
|
134
|
-
borderTopLeftRadius: style.borderTopLeftRadius,
|
|
135
|
-
borderTopRightRadius: style.borderTopRightRadius,
|
|
136
|
-
borderBottomRightRadius: style.borderBottomRightRadius,
|
|
137
|
-
borderBottomLeftRadius: style.borderBottomLeftRadius,
|
|
138
|
-
overflow: centered ? 'visible' : 'hidden'
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
// Create span to show the ripple effect
|
|
142
|
-
const ripple = document.createElement('span');
|
|
143
|
-
Object.assign(ripple.style, {
|
|
144
|
-
position: 'absolute',
|
|
145
|
-
pointerEvents: 'none',
|
|
146
|
-
backgroundColor: calculatedRippleColor,
|
|
147
|
-
borderRadius: '50%',
|
|
148
|
-
/* Transition configuration */
|
|
149
|
-
transitionProperty: 'transform opacity',
|
|
150
|
-
transitionDuration: `${Math.min(size * 1.5, 350)}ms`,
|
|
151
|
-
transitionTimingFunction: 'linear',
|
|
152
|
-
transformOrigin: 'center',
|
|
153
|
-
/* We'll animate these properties */
|
|
154
|
-
transform: 'translate3d(-50%, -50%, 0) scale3d(0.1, 0.1, 0.1)',
|
|
155
|
-
opacity: '0.5',
|
|
156
|
-
// Position the ripple where cursor was
|
|
157
|
-
left: `${touchX}px`,
|
|
158
|
-
top: `${touchY}px`,
|
|
159
|
-
width: `${size}px`,
|
|
160
|
-
height: `${size}px`
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
// Finally, append it to DOM
|
|
164
|
-
container.appendChild(ripple);
|
|
165
|
-
button.appendChild(container);
|
|
166
|
-
|
|
167
|
-
// rAF runs in the same frame as the event handler
|
|
168
|
-
// Use double rAF to ensure the transition class is added in next frame
|
|
169
|
-
// This will make sure that the transition animation is triggered
|
|
170
|
-
requestAnimationFrame(() => {
|
|
171
|
-
requestAnimationFrame(() => {
|
|
172
|
-
Object.assign(ripple.style, {
|
|
173
|
-
transform: 'translate3d(-50%, -50%, 0) scale3d(1, 1, 1)',
|
|
174
|
-
opacity: '1'
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}, [onPressIn, rest, rippleEffectEnabled, calculatedRippleColor]);
|
|
180
|
-
const handlePressOut = React.useCallback(e => {
|
|
181
|
-
onPressOut?.(e);
|
|
182
|
-
if (rippleEffectEnabled) {
|
|
183
|
-
const containers = e.currentTarget.querySelectorAll('[data-paper-ripple]');
|
|
184
|
-
requestAnimationFrame(() => {
|
|
185
|
-
requestAnimationFrame(() => {
|
|
186
|
-
containers.forEach(container => {
|
|
187
|
-
const ripple = container.firstChild;
|
|
188
|
-
Object.assign(ripple.style, {
|
|
189
|
-
transitionDuration: '250ms',
|
|
190
|
-
opacity: 0
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
// Finally remove the span after the transition
|
|
194
|
-
setTimeout(() => {
|
|
195
|
-
const {
|
|
196
|
-
parentNode
|
|
197
|
-
} = container;
|
|
198
|
-
if (parentNode) {
|
|
199
|
-
parentNode.removeChild(container);
|
|
200
|
-
}
|
|
201
|
-
}, 500);
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
}, [onPressOut, rippleEffectEnabled]);
|
|
207
|
-
const hasPassedTouchHandler = hasTouchHandler({
|
|
208
|
-
onPress,
|
|
209
|
-
onLongPress,
|
|
210
|
-
onPressIn,
|
|
211
|
-
onPressOut
|
|
212
|
-
});
|
|
213
|
-
const disabled = disabledProp || !hasPassedTouchHandler;
|
|
214
|
-
return /*#__PURE__*/_jsx(Pressable, {
|
|
215
|
-
...rest,
|
|
216
|
-
ref: ref,
|
|
217
|
-
onPressIn: handlePressIn,
|
|
218
|
-
onPressOut: handlePressOut,
|
|
219
|
-
disabled: disabled,
|
|
220
|
-
style: state => [styles.touchable, borderless && styles.borderless,
|
|
221
|
-
// focused state is not ready yet: https://github.com/necolas/react-native-web/issues/1849
|
|
222
|
-
// state.focused && { backgroundColor: ___ },
|
|
223
|
-
state.hovered && {
|
|
224
|
-
backgroundColor: hoverColor
|
|
225
|
-
}, disabled && styles.disabled, typeof style === 'function' ? style(state) : style],
|
|
226
|
-
children: state => React.Children.only(typeof children === 'function' ? children(state) : children)
|
|
227
|
-
});
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Whether ripple effect is supported.
|
|
232
|
-
*/
|
|
233
|
-
TouchableRipple.supported = true;
|
|
234
|
-
const styles = StyleSheet.create({
|
|
235
|
-
touchable: {
|
|
236
|
-
position: 'relative',
|
|
237
|
-
...(Platform.OS === 'web' && {
|
|
238
|
-
cursor: 'pointer',
|
|
239
|
-
transition: '150ms background-color'
|
|
240
|
-
})
|
|
241
|
-
},
|
|
242
|
-
disabled: {
|
|
243
|
-
...(Platform.OS === 'web' && {
|
|
244
|
-
cursor: 'auto'
|
|
245
|
-
})
|
|
246
|
-
},
|
|
247
|
-
borderless: {
|
|
248
|
-
overflow: 'hidden'
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
const Component = forwardRef(TouchableRipple);
|
|
252
|
-
export default Component;
|
|
253
|
-
//# sourceMappingURL=TouchableRipple.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","Pressable","getTouchableRippleColors","useInternalTheme","forwardRef","hasTouchHandler","jsx","_jsx","SettingsContext","createContext","rippleEffectEnabled","hexToRgb","hex","r","Number","parseInt","slice","g","b","fadeColor","color","alpha","colorUtil","fade","rgb","string","TouchableRipple","style","background","_background","borderless","disabled","disabledProp","rippleColor","underlayColor","_underlayColor","children","theme","themeOverrides","rest","ref","calculatedRippleColor","hoverColor","useContext","onPress","onLongPress","onPressIn","onPressOut","handlePressIn","useCallback","e","centered","button","currentTarget","window","getComputedStyle","dimensions","getBoundingClientRect","touchX","touchY","changedTouches","touches","nativeEvent","touch","width","height","locationX","pageX","locationY","pageY","size","Math","min","max","container","document","createElement","setAttribute","Object","assign","position","pointerEvents","top","left","right","bottom","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","overflow","ripple","backgroundColor","borderRadius","transitionProperty","transitionDuration","transitionTimingFunction","transformOrigin","transform","opacity","appendChild","requestAnimationFrame","handlePressOut","containers","querySelectorAll","forEach","firstChild","setTimeout","parentNode","removeChild","hasPassedTouchHandler","state","styles","touchable","hovered","Children","only","supported","create","OS","cursor","transition","Component"],"sourceRoot":"../../../../../src","sources":["ui/components/TouchableRipple/TouchableRipple.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAGEC,QAAQ,EAERC,UAAU,QAGL,cAAc;AAGrB,SAASC,SAAS,QAAQ,gBAAa;AACvC,SAASC,wBAAwB,QAAQ,YAAS;AAClD,SAASC,gBAAgB,QAAQ,eAAY;AAE7C,SAASC,UAAU,QAAQ,wBAAqB;AAChD,OAAOC,eAAe,MAAM,6BAA0B;;AAEtD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,eAAe,gBAAGV,KAAK,CAACW,aAAa,CAAC;EAAEC,mBAAmB,EAAE;AAAK,CAAC,CAAC;;AAE1E;AACA,MAAMC,QAAQ,GAAIC,GAAW,IAA+B;EAC1D,MAAMC,CAAC,GAAGC,MAAM,CAACC,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC9C,MAAMC,CAAC,GAAGH,MAAM,CAACC,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC9C,MAAME,CAAC,GAAGJ,MAAM,CAACC,QAAQ,CAACH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC9C,OAAO,CAACH,CAAC,EAAEI,CAAC,EAAEC,CAAC,CAAC;AAClB,CAAC;A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