@oxyhq/services 5.4.0 → 5.4.2
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/package.json +3 -2
- package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +8 -8
- package/src/core/index.ts +103 -0
- package/src/lib/sonner.ts +9 -4
- package/src/ui/components/OxyProvider.tsx +5 -5
- package/src/ui/context/OxyContext.tsx +61 -41
- package/src/ui/screens/AccountManagementDemo.tsx +1 -1
- package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
- package/src/ui/screens/AccountSettingsScreen.tsx +25 -19
- package/src/ui/screens/AppInfoScreen.tsx +5 -5
- package/src/ui/screens/FileManagementScreen.tsx +246 -211
- package/src/ui/screens/SignInScreen.tsx +382 -326
- package/src/ui/screens/SignUpScreen.tsx +443 -273
- package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
- package/lib/commonjs/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +0 -53
- package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/commonjs/constants/version.js +0 -28
- package/lib/commonjs/constants/version.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -1543
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/index.js +0 -160
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/react-native-polyfills.js +0 -181
- package/lib/commonjs/lib/react-native-polyfills.js.map +0 -1
- package/lib/commonjs/lib/sonner-safe.js +0 -41
- package/lib/commonjs/lib/sonner-safe.js.map +0 -1
- package/lib/commonjs/lib/sonner.js +0 -18
- package/lib/commonjs/lib/sonner.js.map +0 -1
- package/lib/commonjs/lib/sonner.web.js +0 -17
- package/lib/commonjs/lib/sonner.web.js.map +0 -1
- package/lib/commonjs/models/interfaces.js +0 -2
- package/lib/commonjs/models/interfaces.js.map +0 -1
- package/lib/commonjs/models/secureSession.js +0 -2
- package/lib/commonjs/models/secureSession.js.map +0 -1
- package/lib/commonjs/node/index.js +0 -54
- package/lib/commonjs/node/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/ui/components/Avatar.js +0 -98
- package/lib/commonjs/ui/components/Avatar.js.map +0 -1
- package/lib/commonjs/ui/components/FollowButton.js +0 -246
- package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
- package/lib/commonjs/ui/components/FontLoader.js +0 -181
- package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedItem.js +0 -109
- package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
- package/lib/commonjs/ui/components/GroupedSection.js +0 -33
- package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
- package/lib/commonjs/ui/components/OxyLogo.js +0 -56
- package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
- package/lib/commonjs/ui/components/OxyProvider.js +0 -517
- package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
- package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileCard.js +0 -124
- package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
- package/lib/commonjs/ui/components/QuickActions.js +0 -87
- package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
- package/lib/commonjs/ui/components/Section.js +0 -36
- package/lib/commonjs/ui/components/Section.js.map +0 -1
- package/lib/commonjs/ui/components/SectionTitle.js +0 -35
- package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
- package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
- package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -27
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
- package/lib/commonjs/ui/components/icon/index.js +0 -14
- package/lib/commonjs/ui/components/icon/index.js.map +0 -1
- package/lib/commonjs/ui/components/index.js +0 -97
- package/lib/commonjs/ui/components/index.js.map +0 -1
- package/lib/commonjs/ui/context/OxyContext.js +0 -568
- package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
- package/lib/commonjs/ui/index.js +0 -128
- package/lib/commonjs/ui/index.js.map +0 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/commonjs/ui/navigation/types.js +0 -6
- package/lib/commonjs/ui/navigation/types.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2497
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
- package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/commonjs/ui/styles/FONTS.md +0 -126
- package/lib/commonjs/ui/styles/fonts.js +0 -84
- package/lib/commonjs/ui/styles/fonts.js.map +0 -1
- package/lib/commonjs/ui/styles/index.js +0 -28
- package/lib/commonjs/ui/styles/index.js.map +0 -1
- package/lib/commonjs/ui/styles/theme.js +0 -121
- package/lib/commonjs/ui/styles/theme.js.map +0 -1
- package/lib/commonjs/utils/deviceManager.js +0 -173
- package/lib/commonjs/utils/deviceManager.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -13
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/polyfills.js +0 -42
- package/lib/commonjs/utils/polyfills.js.map +0 -1
- package/lib/module/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/OxyLogo.svg +0 -1
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +0 -46
- package/lib/module/assets/icons/OxyServices.js.map +0 -1
- package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
- package/lib/module/constants/version.js +0 -21
- package/lib/module/constants/version.js.map +0 -1
- package/lib/module/core/index.js +0 -1517
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/index.js +0 -48
- package/lib/module/index.js.map +0 -1
- package/lib/module/lib/react-native-polyfills.js +0 -179
- package/lib/module/lib/react-native-polyfills.js.map +0 -1
- package/lib/module/lib/sonner-safe.js +0 -37
- package/lib/module/lib/sonner-safe.js.map +0 -1
- package/lib/module/lib/sonner.js +0 -8
- package/lib/module/lib/sonner.js.map +0 -1
- package/lib/module/lib/sonner.web.js +0 -4
- package/lib/module/lib/sonner.web.js.map +0 -1
- package/lib/module/models/interfaces.js +0 -2
- package/lib/module/models/interfaces.js.map +0 -1
- package/lib/module/models/secureSession.js +0 -2
- package/lib/module/models/secureSession.js.map +0 -1
- package/lib/module/node/index.js +0 -23
- package/lib/module/node/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/ui/components/Avatar.js +0 -93
- package/lib/module/ui/components/Avatar.js.map +0 -1
- package/lib/module/ui/components/FollowButton.js +0 -241
- package/lib/module/ui/components/FollowButton.js.map +0 -1
- package/lib/module/ui/components/FontLoader.js +0 -176
- package/lib/module/ui/components/FontLoader.js.map +0 -1
- package/lib/module/ui/components/GroupedItem.js +0 -104
- package/lib/module/ui/components/GroupedItem.js.map +0 -1
- package/lib/module/ui/components/GroupedSection.js +0 -28
- package/lib/module/ui/components/GroupedSection.js.map +0 -1
- package/lib/module/ui/components/OxyLogo.js +0 -49
- package/lib/module/ui/components/OxyLogo.js.map +0 -1
- package/lib/module/ui/components/OxyProvider.js +0 -511
- package/lib/module/ui/components/OxyProvider.js.map +0 -1
- package/lib/module/ui/components/OxySignInButton.js +0 -172
- package/lib/module/ui/components/OxySignInButton.js.map +0 -1
- package/lib/module/ui/components/ProfileCard.js +0 -119
- package/lib/module/ui/components/ProfileCard.js.map +0 -1
- package/lib/module/ui/components/QuickActions.js +0 -82
- package/lib/module/ui/components/QuickActions.js.map +0 -1
- package/lib/module/ui/components/Section.js +0 -31
- package/lib/module/ui/components/Section.js.map +0 -1
- package/lib/module/ui/components/SectionTitle.js +0 -30
- package/lib/module/ui/components/SectionTitle.js.map +0 -1
- package/lib/module/ui/components/bottomSheet/index.js +0 -5
- package/lib/module/ui/components/bottomSheet/index.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/icon/index.js +0 -4
- package/lib/module/ui/components/icon/index.js.map +0 -1
- package/lib/module/ui/components/index.js +0 -18
- package/lib/module/ui/components/index.js.map +0 -1
- package/lib/module/ui/context/OxyContext.js +0 -563
- package/lib/module/ui/context/OxyContext.js.map +0 -1
- package/lib/module/ui/index.js +0 -24
- package/lib/module/ui/index.js.map +0 -1
- package/lib/module/ui/navigation/OxyRouter.js +0 -257
- package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
- package/lib/module/ui/navigation/types.js +0 -4
- package/lib/module/ui/navigation/types.js.map +0 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
- package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
- package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/AppInfoScreen.js +0 -658
- package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
- package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/FileManagementScreen.js +0 -2492
- package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
- package/lib/module/ui/screens/ProfileScreen.js +0 -444
- package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
- package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
- package/lib/module/ui/screens/SignInScreen.js +0 -950
- package/lib/module/ui/screens/SignInScreen.js.map +0 -1
- package/lib/module/ui/screens/SignUpScreen.js +0 -755
- package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
- package/lib/module/ui/styles/FONTS.md +0 -126
- package/lib/module/ui/styles/fonts.js +0 -81
- package/lib/module/ui/styles/fonts.js.map +0 -1
- package/lib/module/ui/styles/index.js +0 -5
- package/lib/module/ui/styles/index.js.map +0 -1
- package/lib/module/ui/styles/theme.js +0 -114
- package/lib/module/ui/styles/theme.js.map +0 -1
- package/lib/module/utils/deviceManager.js +0 -167
- package/lib/module/utils/deviceManager.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/polyfills.js +0 -36
- package/lib/module/utils/polyfills.js.map +0 -1
- package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
- package/lib/typescript/constants/version.d.ts +0 -14
- package/lib/typescript/constants/version.d.ts.map +0 -1
- package/lib/typescript/core/index.d.ts +0 -563
- package/lib/typescript/core/index.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -20
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/lib/react-native-polyfills.d.ts +0 -8
- package/lib/typescript/lib/react-native-polyfills.d.ts.map +0 -1
- package/lib/typescript/lib/sonner-safe.d.ts +0 -11
- package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.d.ts +0 -3
- package/lib/typescript/lib/sonner.d.ts.map +0 -1
- package/lib/typescript/lib/sonner.web.d.ts +0 -2
- package/lib/typescript/lib/sonner.web.d.ts.map +0 -1
- package/lib/typescript/models/interfaces.d.ts +0 -179
- package/lib/typescript/models/interfaces.d.ts.map +0 -1
- package/lib/typescript/models/secureSession.d.ts +0 -27
- package/lib/typescript/models/secureSession.d.ts.map +0 -1
- package/lib/typescript/node/index.d.ts +0 -11
- package/lib/typescript/node/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/Avatar.d.ts +0 -62
- package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
- package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
- package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
- package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
- package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
- package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
- package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
- package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
- package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
- package/lib/typescript/ui/components/Section.d.ts +0 -11
- package/lib/typescript/ui/components/Section.d.ts.map +0 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -10
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
- package/lib/typescript/ui/components/icon/index.d.ts +0 -3
- package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
- package/lib/typescript/ui/components/index.d.ts +0 -13
- package/lib/typescript/ui/components/index.d.ts.map +0 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
- package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
- package/lib/typescript/ui/index.d.ts +0 -15
- package/lib/typescript/ui/index.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
- package/lib/typescript/ui/navigation/types.d.ts +0 -116
- package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -8
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
- package/lib/typescript/ui/styles/fonts.d.ts +0 -21
- package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
- package/lib/typescript/ui/styles/index.d.ts +0 -3
- package/lib/typescript/ui/styles/index.d.ts.map +0 -1
- package/lib/typescript/ui/styles/theme.d.ts +0 -68
- package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
- package/lib/typescript/utils/deviceManager.d.ts +0 -66
- package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -3
- package/lib/typescript/utils/index.d.ts.map +0 -1
- package/lib/typescript/utils/polyfills.d.ts +0 -6
- package/lib/typescript/utils/polyfills.d.ts.map +0 -1
- package/src/lib/react-native-polyfills.ts +0 -219
- package/src/lib/sonner-safe.ts +0 -37
- package/src/lib/sonner.web.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_jsxRuntime","e","__esModule","default","GroupedItem","icon","iconColor","title","subtitle","theme","onPress","isFirst","isLast","showChevron","disabled","customContent","isDarkTheme","textColor","secondaryBackgroundColor","itemStyles","styles","groupedItem","firstGroupedItem","lastGroupedItem","backgroundColor","content","jsxs","View","style","groupedItemContent","children","jsx","Ionicons","name","size","color","actionIcon","actionTextContainer","Text","actionButtonText","actionButtonSubtext","TouchableOpacity","StyleSheet","create","flexDirection","alignItems","justifyContent","marginBottom","overflow","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","padding","width","marginRight","flex","fontSize","fontWeight","lineHeight","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedItem.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _GroupedItem = _interopRequireDefault(require("./GroupedItem"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const GroupedSection = ({
|
|
13
|
-
items,
|
|
14
|
-
theme
|
|
15
|
-
}) => {
|
|
16
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
17
|
-
children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedItem.default, {
|
|
18
|
-
icon: item.icon,
|
|
19
|
-
iconColor: item.iconColor,
|
|
20
|
-
title: item.title,
|
|
21
|
-
subtitle: item.subtitle,
|
|
22
|
-
theme: theme,
|
|
23
|
-
onPress: item.onPress,
|
|
24
|
-
isFirst: index === 0,
|
|
25
|
-
isLast: index === items.length - 1,
|
|
26
|
-
showChevron: item.showChevron,
|
|
27
|
-
disabled: item.disabled,
|
|
28
|
-
customContent: item.customContent
|
|
29
|
-
}, item.id))
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
var _default = exports.default = GroupedSection;
|
|
33
|
-
//# sourceMappingURL=GroupedSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_GroupedItem","_jsxRuntime","e","__esModule","default","GroupedSection","items","theme","jsx","View","children","map","item","index","icon","iconColor","title","subtitle","onPress","isFirst","isLast","length","showChevron","disabled","customContent","id","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedSection.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAwC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAmBxC,MAAMG,cAA6C,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACxE,oBACI,IAAAN,WAAA,CAAAO,GAAA,EAACT,YAAA,CAAAU,IAAI;IAAAC,QAAA,EACAJ,KAAK,CAACK,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACnB,IAAAZ,WAAA,CAAAO,GAAA,EAACR,YAAA,CAAAI,OAAW;MAERU,IAAI,EAAEF,IAAI,CAACE,IAAK;MAChBC,SAAS,EAAEH,IAAI,CAACG,SAAU;MAC1BC,KAAK,EAAEJ,IAAI,CAACI,KAAM;MAClBC,QAAQ,EAAEL,IAAI,CAACK,QAAS;MACxBV,KAAK,EAAEA,KAAM;MACbW,OAAO,EAAEN,IAAI,CAACM,OAAQ;MACtBC,OAAO,EAAEN,KAAK,KAAK,CAAE;MACrBO,MAAM,EAAEP,KAAK,KAAKP,KAAK,CAACe,MAAM,GAAG,CAAE;MACnCC,WAAW,EAAEV,IAAI,CAACU,WAAY;MAC9BC,QAAQ,EAAEX,IAAI,CAACW,QAAS;MACxBC,aAAa,EAAEZ,IAAI,CAACY;IAAc,GAX7BZ,IAAI,CAACa,EAYb,CACJ;EAAC,CACA,CAAC;AAEf,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GAEaC,cAAc","ignoreList":[]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.OxyLogo = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
9
|
-
var _theme = require("../styles/theme");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
/**
|
|
14
|
-
* SVG logo component for Oxy
|
|
15
|
-
* This component renders the Oxy logo as an SVG and uses theme colors by default
|
|
16
|
-
*/
|
|
17
|
-
const OxyLogo = ({
|
|
18
|
-
width = 24,
|
|
19
|
-
height = 24,
|
|
20
|
-
style,
|
|
21
|
-
fillColor,
|
|
22
|
-
secondaryFillColor,
|
|
23
|
-
theme = 'light'
|
|
24
|
-
}) => {
|
|
25
|
-
// Get colors from theme
|
|
26
|
-
const themeColors = (0, _theme.useThemeColors)(theme);
|
|
27
|
-
|
|
28
|
-
// Use theme primary color if no fillColor is provided
|
|
29
|
-
const primaryColor = fillColor || themeColors.primary;
|
|
30
|
-
const innerFillColor = secondaryFillColor || themeColors.background;
|
|
31
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
32
|
-
width: width,
|
|
33
|
-
height: height,
|
|
34
|
-
viewBox: "0 0 294.84 174.42",
|
|
35
|
-
style: style,
|
|
36
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
37
|
-
d: "M241.03 24.83c-3.42-9.32-9.47-19.01-19.05-22.86-6.33-2.55-13.1-2.6-19.49-.26-.52.19-2.22 1.12-2.54 1.12-.22 0-3.3-1.39-4.05-1.61-15.97-4.57-30.37 9.5-39.44 20.8-1.15 1.43-2.29 2.92-3.27 4.48-.35.28-.56-.8-.69-1.06C146.04 12.12 135.23-.4 118.95 1 106.2 2.09 97.86 12.26 96.36 24.5 89.8 16.6 81.31 9.75 71.2 7.08c-15.67-4.13-33.09-.39-45.34 10.17C-3.79 42.81-5.21 97.16 7.9 131.37c9.4 24.5 28.9 43.2 56.85 40.1 11.33-1.25 21.77-5.76 29.87-13.81.13-.03 1.58 1.62 1.9 1.91 2.63 2.38 5.97 4.23 9.43 5.07 17.29 4.17 30.59-11.83 39.99-23.82.21-.05.29.13.41.26 1.22 1.26 2.48 3.38 3.67 4.83 4.4 5.34 10.34 11.44 16.49 14.67 6.58 3.46 14.76 4.48 21.74 1.59 6.43 11.54 20.66 15.21 32.49 9.8 15.49-7.08 28.86-30.53 36.97-45.03 9.26-16.56 18.94-34.11 26.22-51.62 7.51-18.09 19.12-51.35 2.09-67.08-13.19-12.18-31.47-2.47-40.24 9.94l-4.77 6.65z",
|
|
38
|
-
fill: primaryColor
|
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
40
|
-
d: "M241.03 24.83l4.77-6.65c8.77-12.41 27.04-22.12 40.24-9.94 17.03 15.73 5.42 48.99-2.09 67.08-7.27 17.51-16.96 35.06-26.22 51.62-8.11 14.5-21.48 37.95-36.97 45.03-11.83 5.41-26.07 1.74-32.49-9.8-6.98 2.89-15.16 1.87-21.74-1.59-6.15-3.23-12.09-9.34-16.49-14.67-1.19-1.45-2.46-3.56-3.67-4.83-.12-.13-.2-.3-.41-.26-9.4 11.99-22.7 28-39.99 23.82-3.46-.84-6.8-2.69-9.43-5.07-.32-.29-1.77-1.94-1.9-1.91-8.1 8.04-18.53 12.55-29.87 13.81-27.95 3.09-47.46-15.6-56.85-40.1C-5.21 97.16-3.79 42.81 25.86 17.24 38.11 6.68 55.52 2.94 71.2 7.07c10.11 2.67 18.6 9.52 25.16 17.42 1.5-12.24 9.84-22.4 22.59-23.5 16.29-1.4 27.1 11.12 33.56 24.44.13.26.34 1.34.69 1.06.98-1.56 2.12-3.05 3.27-4.48 9.07-11.31 23.46-25.37 39.44-20.8.75.22 3.83 1.61 4.05 1.61.32 0 2.02-.93 2.54-1.12 6.4-2.33 13.16-2.28 19.49.26 9.58 3.85 15.64 13.54 19.05 22.86zm-6.67 48c-.88-9.38-1.79-18.77-3.55-28.03s-6.28-28.62-17.53-29.63-15.8 12.97-16.25 22.08c-.74 15.27 4.07 34.76 8.66 49.33 1.38 4.37 3 10.74 6.08 14.08 2.11 2.28 5.31 4.24 8.25 5.17-7.02 9.48-14.5 19.44-18.34 30.74-2.02 5.96-3.84 17.45 2.68 21.32 9.11 5.41 18.68-5.84 23.72-12.25 5.64-7.18 10.62-15.76 15.13-23.7 7.64-13.46 15.57-27.88 22.11-41.89 6.55-14.02 15.36-34.93 14.36-50.48-.25-3.85-2.02-10.44-6.3-11.53-8.54-2.18-17.65 11.65-21.44 17.8-7.07 11.49-12.42 24.19-17.22 36.77l-.37.21zm-83.67-14.84c-.11.08-.3-.27-.36-.38-.89-1.66-1.61-4.13-2.39-5.94-3.05-7.11-6.55-15.22-10.16-22.01s-11.12-16.46-20.3-12.96-6.07 17.71-4.28 24.7c3.59 13.98 9.21 27.75 14.81 41.02-5.93 11.33-11.94 22.65-17.47 34.19-3.8 7.92-10.58 22.31-4.93 30.54 6.13 8.92 18.44-3.44 22.73-8.57l19.09-23.41.39.27c6.19 10.08 12.58 21.57 21.85 29.14 6.31 5.16 15.72 6.95 17.45-3.38 1.09-6.53-3.31-16.75-5.87-22.86-4.2-10-9.25-19.64-14.62-29.05l-.13-.52c1.51-2.98 3.38-5.75 5.03-8.65 4-7.06 7.7-14.28 11.61-21.39 4.97-9.05 14.77-23.79 13.86-34.3-.31-3.61-2.31-8.51-6.42-8.92-8.41-.84-18.76 11.28-23.48 17.35-6.12 7.86-11.53 16.49-16.43 25.15zM55 20.71c-28.18 1.93-38.49 35.65-39.8 59.2-1.68 30.16 10.02 82.97 50.53 76.2 32.13-5.37 37.37-46.47 34.97-72.86S88.19 18.44 55 20.71zm140.7 93.28c.31.07.32-.1.47-.28 1-1.16 1.69-3.21 2.78-4.4l.06-.37c-3.26-4.14-4.87-9.22-6.52-14.16-1.44-4.32-2.5-8.78-3.91-13.09-.07-.2-.12-.7-.38-.7-1.27 2.82-3.17 5.34-4.31 8.21 4.29 8.08 8.46 16.26 11.81 24.79z",
|
|
41
|
-
fill: primaryColor
|
|
42
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
43
|
-
d: "M55 20.71c33.19-2.27 43.33 36.41 45.7 62.54s-2.84 67.49-34.97 72.86c-40.5 6.77-52.21-46.03-50.53-76.2 1.31-23.56 11.62-57.27 39.8-59.2zm.99 38.66c-4.57.62-7.12 6.56-8.21 10.46-3.47 12.39-1.15 36.95 5.85 47.99 4 6.3 10.59 7.71 14.1.13 5.48-11.82 4.06-35.72-.36-47.87-1.84-5.06-5-11.57-11.38-10.7zM150.69 57.99c4.9-8.66 10.31-17.29 16.43-25.15 4.73-6.07 15.07-18.19 23.48-17.35 4.11.41 6.1 5.31 6.42 8.92.91 10.52-8.89 25.26-13.86 34.3-3.9 7.11-7.61 14.33-11.61 21.39-1.64 2.9-3.52 5.67-5.03 8.65l.13.52c5.37 9.41 10.42 19.05 14.62 29.05 2.57 6.11 6.97 16.33 5.87 22.86-1.73 10.33-11.14 8.54-17.45 3.38-9.27-7.57-15.67-19.07-21.85-29.14l-.39-.27-19.09 23.41c-4.29 5.13-16.6 17.49-22.73 8.57-5.66-8.23 1.13-22.63 4.93-30.54 5.53-11.54 11.54-22.86 17.47-34.19-5.61-13.27-11.22-27.03-14.81-41.02-1.8-6.99-4.69-21.27 4.28-24.7s16.55 5.88 20.3 12.96 7.11 14.9 10.16 22.01c.78 1.81 1.5 4.29 2.39 5.94.06.11.25.46.36.38zM234.36 72.83l.37-.21c4.8-12.59 10.15-25.29 17.22-36.77 3.79-6.16 12.9-19.98 21.44-17.8 4.28 1.09 6.06 7.68 6.3 11.53.99 15.56-7.82 36.47-14.36 50.48-6.54 14.01-14.47 28.42-22.11 41.89-4.51 7.95-9.49 16.53-15.13 23.7-5.03 6.41-14.61 17.66-23.72 12.25-6.52-3.87-4.71-15.36-2.68-21.32 3.84-11.31 11.32-21.27 18.34-30.74-2.94-.93-6.15-2.89-8.25-5.17-3.09-3.34-4.71-9.71-6.08-14.08-4.59-14.57-9.4-34.06-8.66-49.33.44-9.11 4.77-23.11 16.25-22.08s15.83 20.68 17.53 29.63 2.67 18.65 3.55 28.03z",
|
|
44
|
-
fill: innerFillColor
|
|
45
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
46
|
-
d: "M195.7 113.99c-3.35-8.52-7.52-16.71-11.81-24.79 1.14-2.87 3.04-5.39 4.31-8.21.25 0 .31.5.38.7 1.41 4.31 2.47 8.77 3.91 13.09 1.65 4.94 3.26 10.02 6.52 14.16l-.06.37c-1.09 1.19-1.78 3.24-2.78 4.4-.15.17-.16.35-.47.28z",
|
|
47
|
-
fill: primaryColor
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
49
|
-
d: "M55.99 59.37c6.38-.87 9.53 5.65 11.38 10.7 4.42 12.14 5.84 36.05.36 47.87-3.51 7.58-10.1 6.17-14.1-.13-7-11.03-9.32-35.6-5.85-47.99 1.09-3.9 3.64-9.84 8.21-10.46z",
|
|
50
|
-
fill: primaryColor
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
exports.OxyLogo = OxyLogo;
|
|
55
|
-
var _default = exports.default = OxyLogo;
|
|
56
|
-
//# sourceMappingURL=OxyLogo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_theme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OxyLogo","width","height","style","fillColor","secondaryFillColor","theme","themeColors","useThemeColors","primaryColor","primary","innerFillColor","background","jsxs","viewBox","children","jsx","Path","d","fill","exports","_default"],"sourceRoot":"../../../../src","sources":["ui/components/OxyLogo.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
11
|
-
var _OxyContext = require("../context/OxyContext");
|
|
12
|
-
var _OxyRouter = _interopRequireDefault(require("../navigation/OxyRouter"));
|
|
13
|
-
var _FontLoader = require("./FontLoader");
|
|
14
|
-
var _sonner = require("../../lib/sonner");
|
|
15
|
-
var _bottomSheet = require("./bottomSheet");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
-
// Import bottom sheet components directly - no longer a peer dependency
|
|
20
|
-
|
|
21
|
-
// Initialize fonts automatically
|
|
22
|
-
(0, _FontLoader.setupFonts)();
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Enhanced OxyProvider component
|
|
26
|
-
*
|
|
27
|
-
* This component serves two purposes:
|
|
28
|
-
* 1. As a context provider for authentication and session management across the app
|
|
29
|
-
* 2. As a UI component for authentication and account management using a bottom sheet
|
|
30
|
-
*/
|
|
31
|
-
const OxyProvider = props => {
|
|
32
|
-
const {
|
|
33
|
-
oxyServices,
|
|
34
|
-
children,
|
|
35
|
-
contextOnly = false,
|
|
36
|
-
onAuthStateChange,
|
|
37
|
-
storageKeyPrefix,
|
|
38
|
-
showInternalToaster = true,
|
|
39
|
-
...bottomSheetProps
|
|
40
|
-
} = props;
|
|
41
|
-
|
|
42
|
-
// Create internal bottom sheet ref
|
|
43
|
-
const internalBottomSheetRef = (0, _react.useRef)(null);
|
|
44
|
-
|
|
45
|
-
// If contextOnly is true, we just provide the context without the bottom sheet UI
|
|
46
|
-
if (contextOnly) {
|
|
47
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyContext.OxyContextProvider, {
|
|
48
|
-
oxyServices: oxyServices,
|
|
49
|
-
storageKeyPrefix: storageKeyPrefix,
|
|
50
|
-
onAuthStateChange: onAuthStateChange,
|
|
51
|
-
children: children
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Otherwise, provide both the context and the bottom sheet UI
|
|
56
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyContext.OxyContextProvider, {
|
|
57
|
-
oxyServices: oxyServices,
|
|
58
|
-
storageKeyPrefix: storageKeyPrefix,
|
|
59
|
-
onAuthStateChange: onAuthStateChange,
|
|
60
|
-
bottomSheetRef: internalBottomSheetRef,
|
|
61
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FontLoader.FontLoader, {
|
|
62
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
63
|
-
style: styles.gestureHandlerRoot,
|
|
64
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_bottomSheet.BottomSheetModalProvider, {
|
|
65
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.StatusBar, {
|
|
66
|
-
translucent: true,
|
|
67
|
-
backgroundColor: "transparent"
|
|
68
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSafeAreaContext.SafeAreaProvider, {
|
|
69
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(OxyBottomSheet, {
|
|
70
|
-
...bottomSheetProps,
|
|
71
|
-
bottomSheetRef: internalBottomSheetRef,
|
|
72
|
-
oxyServices: oxyServices
|
|
73
|
-
}), children]
|
|
74
|
-
})]
|
|
75
|
-
}), !showInternalToaster && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
76
|
-
style: styles.toasterContainer,
|
|
77
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sonner.Toaster, {
|
|
78
|
-
position: "top-center",
|
|
79
|
-
swipeToDismissDirection: "left",
|
|
80
|
-
offset: 15
|
|
81
|
-
})
|
|
82
|
-
})]
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* OxyBottomSheet component - A bottom sheet-based authentication and account management UI
|
|
90
|
-
*
|
|
91
|
-
* This is the original OxyProvider UI functionality, now extracted into its own component
|
|
92
|
-
* and reimplemented using BottomSheetModal for better Android compatibility
|
|
93
|
-
*/
|
|
94
|
-
const OxyBottomSheet = ({
|
|
95
|
-
oxyServices,
|
|
96
|
-
initialScreen = 'SignIn',
|
|
97
|
-
onClose,
|
|
98
|
-
onAuthenticated,
|
|
99
|
-
theme = 'light',
|
|
100
|
-
customStyles = {},
|
|
101
|
-
bottomSheetRef,
|
|
102
|
-
autoPresent = false,
|
|
103
|
-
showInternalToaster = true
|
|
104
|
-
}) => {
|
|
105
|
-
// Use the internal ref (which is passed as a prop from OxyProvider)
|
|
106
|
-
const modalRef = (0, _react.useRef)(null);
|
|
107
|
-
|
|
108
|
-
// Create a ref to store the navigation function from OxyRouter
|
|
109
|
-
const navigationRef = (0, _react.useRef)(null);
|
|
110
|
-
|
|
111
|
-
// Track content height for dynamic sizing
|
|
112
|
-
const [contentHeight, setContentHeight] = (0, _react.useState)(0);
|
|
113
|
-
const [containerWidth, setContainerWidth] = (0, _react.useState)(800); // Track actual container width
|
|
114
|
-
const screenHeight = _reactNative.Dimensions.get('window').height;
|
|
115
|
-
|
|
116
|
-
// Set up effect to sync the internal ref with our modal ref
|
|
117
|
-
(0, _react.useEffect)(() => {
|
|
118
|
-
if (bottomSheetRef && modalRef.current) {
|
|
119
|
-
// We need to expose certain methods to the internal ref
|
|
120
|
-
const methodsToExpose = ['snapToIndex', 'snapToPosition', 'close', 'expand', 'collapse', 'present', 'dismiss'];
|
|
121
|
-
methodsToExpose.forEach(method => {
|
|
122
|
-
if (modalRef.current && typeof modalRef.current[method] === 'function') {
|
|
123
|
-
// Properly forward methods from modalRef to bottomSheetRef
|
|
124
|
-
// @ts-ignore - We're doing a runtime compatibility layer
|
|
125
|
-
bottomSheetRef.current = bottomSheetRef.current || {};
|
|
126
|
-
// @ts-ignore - Dynamic method assignment
|
|
127
|
-
bottomSheetRef.current[method] = (...args) => {
|
|
128
|
-
// @ts-ignore - Dynamic method call
|
|
129
|
-
return modalRef.current?.[method]?.(...args);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
// Add a method to navigate between screens
|
|
135
|
-
// @ts-ignore - Adding custom method
|
|
136
|
-
bottomSheetRef.current._navigateToScreen = (screenName, props) => {
|
|
137
|
-
console.log(`Navigation requested: ${screenName}`, props);
|
|
138
|
-
|
|
139
|
-
// Try direct navigation function first (most reliable)
|
|
140
|
-
if (navigationRef.current) {
|
|
141
|
-
console.log('Using direct navigation function');
|
|
142
|
-
navigationRef.current(screenName, props);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Fallback to event-based navigation
|
|
147
|
-
if (typeof document !== 'undefined') {
|
|
148
|
-
// For web - use a custom event
|
|
149
|
-
console.log('Using web event navigation');
|
|
150
|
-
const event = new CustomEvent('oxy:navigate', {
|
|
151
|
-
detail: {
|
|
152
|
-
screen: screenName,
|
|
153
|
-
props
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
document.dispatchEvent(event);
|
|
157
|
-
} else {
|
|
158
|
-
// For React Native - use the global variable approach
|
|
159
|
-
console.log('Using React Native global navigation');
|
|
160
|
-
globalThis.oxyNavigateEvent = {
|
|
161
|
-
screen: screenName,
|
|
162
|
-
props
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}, [bottomSheetRef, modalRef]);
|
|
168
|
-
|
|
169
|
-
// Use percentage-based snap points for better cross-platform compatibility
|
|
170
|
-
const [snapPoints, setSnapPoints] = (0, _react.useState)(['60%', '90%']);
|
|
171
|
-
|
|
172
|
-
// Animation values - we'll use these for content animations
|
|
173
|
-
// Start with opacity 1 on Android to avoid visibility issues
|
|
174
|
-
const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(_reactNative.Platform.OS === 'android' ? 1 : 0)).current;
|
|
175
|
-
const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(_reactNative.Platform.OS === 'android' ? 0 : 50)).current;
|
|
176
|
-
const handleScaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
177
|
-
|
|
178
|
-
// Track keyboard status
|
|
179
|
-
const [keyboardVisible, setKeyboardVisible] = (0, _react.useState)(false);
|
|
180
|
-
const [keyboardHeight, setKeyboardHeight] = (0, _react.useState)(0);
|
|
181
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
182
|
-
|
|
183
|
-
// Get the authentication context
|
|
184
|
-
const oxyContext = (0, _OxyContext.useOxy)();
|
|
185
|
-
|
|
186
|
-
// Handle keyboard events
|
|
187
|
-
(0, _react.useEffect)(() => {
|
|
188
|
-
const keyboardWillShowListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', event => {
|
|
189
|
-
// Debounce rapid keyboard events
|
|
190
|
-
if (!keyboardVisible) {
|
|
191
|
-
setKeyboardVisible(true);
|
|
192
|
-
// Get keyboard height from event
|
|
193
|
-
const keyboardHeightValue = event.endCoordinates.height;
|
|
194
|
-
setKeyboardHeight(keyboardHeightValue);
|
|
195
|
-
|
|
196
|
-
// Ensure the bottom sheet remains visible when keyboard opens
|
|
197
|
-
// by adjusting to the highest snap point
|
|
198
|
-
if (modalRef.current) {
|
|
199
|
-
// Use requestAnimationFrame to avoid conflicts
|
|
200
|
-
requestAnimationFrame(() => {
|
|
201
|
-
modalRef.current?.snapToIndex(1);
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
const keyboardWillHideListener = _reactNative.Keyboard.addListener(_reactNative.Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', () => {
|
|
207
|
-
if (keyboardVisible) {
|
|
208
|
-
setKeyboardVisible(false);
|
|
209
|
-
setKeyboardHeight(0);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
// Cleanup listeners
|
|
214
|
-
return () => {
|
|
215
|
-
keyboardWillShowListener.remove();
|
|
216
|
-
keyboardWillHideListener.remove();
|
|
217
|
-
};
|
|
218
|
-
}, [keyboardVisible]);
|
|
219
|
-
|
|
220
|
-
// Present the modal when component mounts, but only if autoPresent is true
|
|
221
|
-
(0, _react.useEffect)(() => {
|
|
222
|
-
// Add expand method that handles presentation and animations
|
|
223
|
-
if (bottomSheetRef && modalRef.current) {
|
|
224
|
-
// Override expand to handle initial presentation
|
|
225
|
-
// @ts-ignore - Dynamic method assignment
|
|
226
|
-
bottomSheetRef.current.expand = () => {
|
|
227
|
-
// Only present if not already presented
|
|
228
|
-
modalRef.current?.present();
|
|
229
|
-
|
|
230
|
-
// Start content animations after presenting
|
|
231
|
-
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
232
|
-
toValue: 1,
|
|
233
|
-
duration: 300,
|
|
234
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
235
|
-
}), _reactNative.Animated.spring(slideAnim, {
|
|
236
|
-
toValue: 0,
|
|
237
|
-
friction: 8,
|
|
238
|
-
tension: 40,
|
|
239
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
240
|
-
})]).start();
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Auto-present if the autoPresent prop is true
|
|
245
|
-
if (autoPresent && modalRef.current) {
|
|
246
|
-
// Small delay to allow everything to initialize
|
|
247
|
-
const timer = setTimeout(() => {
|
|
248
|
-
modalRef.current?.present();
|
|
249
|
-
|
|
250
|
-
// Start content animations after presenting
|
|
251
|
-
_reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
|
|
252
|
-
toValue: 1,
|
|
253
|
-
duration: 300,
|
|
254
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
255
|
-
}), _reactNative.Animated.spring(slideAnim, {
|
|
256
|
-
toValue: 0,
|
|
257
|
-
friction: 8,
|
|
258
|
-
tension: 40,
|
|
259
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
260
|
-
})]).start();
|
|
261
|
-
}, 100);
|
|
262
|
-
return () => clearTimeout(timer);
|
|
263
|
-
}
|
|
264
|
-
}, [bottomSheetRef, modalRef, fadeAnim, slideAnim, autoPresent]);
|
|
265
|
-
|
|
266
|
-
// Handle authentication success from the bottom sheet screens
|
|
267
|
-
const handleAuthenticated = (0, _react.useCallback)(user => {
|
|
268
|
-
// Call the prop callback if provided
|
|
269
|
-
if (onAuthenticated) {
|
|
270
|
-
onAuthenticated(user);
|
|
271
|
-
}
|
|
272
|
-
}, [onAuthenticated]);
|
|
273
|
-
|
|
274
|
-
// Handle indicator animation - subtle pulse effect
|
|
275
|
-
(0, _react.useEffect)(() => {
|
|
276
|
-
const pulseAnimation = _reactNative.Animated.sequence([_reactNative.Animated.timing(handleScaleAnim, {
|
|
277
|
-
toValue: 1.1,
|
|
278
|
-
duration: 300,
|
|
279
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
280
|
-
}), _reactNative.Animated.timing(handleScaleAnim, {
|
|
281
|
-
toValue: 1,
|
|
282
|
-
duration: 300,
|
|
283
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
284
|
-
})]);
|
|
285
|
-
|
|
286
|
-
// Run the animation once when component mounts
|
|
287
|
-
pulseAnimation.start();
|
|
288
|
-
}, []);
|
|
289
|
-
|
|
290
|
-
// Handle backdrop rendering
|
|
291
|
-
const renderBackdrop = (0, _react.useCallback)(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.BottomSheetBackdrop, {
|
|
292
|
-
...props,
|
|
293
|
-
disappearsOnIndex: -1,
|
|
294
|
-
appearsOnIndex: 0,
|
|
295
|
-
opacity: 0.5
|
|
296
|
-
}), []);
|
|
297
|
-
|
|
298
|
-
// Background style based on theme
|
|
299
|
-
const getBackgroundStyle = () => {
|
|
300
|
-
const baseColor = customStyles.backgroundColor || (theme === 'light' ? '#FFFFFF' : '#121212');
|
|
301
|
-
return {
|
|
302
|
-
backgroundColor: baseColor,
|
|
303
|
-
// Make sure there's no transparency
|
|
304
|
-
opacity: 1,
|
|
305
|
-
// Additional Android-specific styles
|
|
306
|
-
..._reactNative.Platform.select({
|
|
307
|
-
android: {
|
|
308
|
-
elevation: 24
|
|
309
|
-
}
|
|
310
|
-
})
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
// Method to adjust snap points from Router
|
|
315
|
-
const adjustSnapPoints = (0, _react.useCallback)(points => {
|
|
316
|
-
// Ensure snap points are high enough when keyboard is visible
|
|
317
|
-
if (keyboardVisible) {
|
|
318
|
-
// If keyboard is visible, make sure we use higher snap points
|
|
319
|
-
// to ensure the sheet content remains visible
|
|
320
|
-
const highestPoint = points[points.length - 1];
|
|
321
|
-
setSnapPoints([highestPoint, highestPoint]);
|
|
322
|
-
} else {
|
|
323
|
-
// If we have content height, use it as a constraint
|
|
324
|
-
if (contentHeight > 0) {
|
|
325
|
-
// Calculate content height as percentage of screen (plus some padding)
|
|
326
|
-
// Clamp to ensure we don't exceed 90% to leave space for UI elements
|
|
327
|
-
const contentHeightPercent = Math.min(Math.ceil(contentHeight / screenHeight * 100), 90);
|
|
328
|
-
const contentHeightPercentStr = `${contentHeightPercent}%`;
|
|
329
|
-
// Use content height for first snap point if it's taller than the default
|
|
330
|
-
const firstPoint = contentHeight / screenHeight > 0.6 ? contentHeightPercentStr : points[0];
|
|
331
|
-
setSnapPoints([firstPoint, points[1] || '90%']);
|
|
332
|
-
} else {
|
|
333
|
-
setSnapPoints(points);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}, [keyboardVisible, contentHeight, screenHeight]);
|
|
337
|
-
|
|
338
|
-
// Handle content layout changes to measure height and width
|
|
339
|
-
const handleContentLayout = (0, _react.useCallback)(event => {
|
|
340
|
-
const {
|
|
341
|
-
height: layoutHeight,
|
|
342
|
-
width: layoutWidth
|
|
343
|
-
} = event.nativeEvent.layout;
|
|
344
|
-
setContentHeight(layoutHeight);
|
|
345
|
-
setContainerWidth(layoutWidth);
|
|
346
|
-
|
|
347
|
-
// Debug: log container dimensions
|
|
348
|
-
console.log('[OxyProvider] Container dimensions (full):', {
|
|
349
|
-
width: layoutWidth,
|
|
350
|
-
height: layoutHeight
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
// Update snap points based on new content height
|
|
354
|
-
if (keyboardVisible) {
|
|
355
|
-
// If keyboard is visible, use the highest snap point
|
|
356
|
-
const highestPoint = snapPoints[snapPoints.length - 1];
|
|
357
|
-
setSnapPoints([highestPoint, highestPoint]);
|
|
358
|
-
} else {
|
|
359
|
-
if (layoutHeight > 0) {
|
|
360
|
-
// Add padding and clamp to reasonable limits
|
|
361
|
-
const contentHeightPercent = Math.min(Math.ceil((layoutHeight + 40) / screenHeight * 100), 90);
|
|
362
|
-
const contentHeightPercentStr = `${contentHeightPercent}%`;
|
|
363
|
-
const firstPoint = layoutHeight / screenHeight > 0.6 ? contentHeightPercentStr : snapPoints[0];
|
|
364
|
-
setSnapPoints([firstPoint, snapPoints[1]]);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}, [keyboardVisible, screenHeight, snapPoints]);
|
|
368
|
-
|
|
369
|
-
// Close the bottom sheet with animation
|
|
370
|
-
const handleClose = (0, _react.useCallback)(() => {
|
|
371
|
-
// Animate content out
|
|
372
|
-
_reactNative.Animated.timing(fadeAnim, {
|
|
373
|
-
toValue: 0,
|
|
374
|
-
duration: _reactNative.Platform.OS === 'android' ? 100 : 200,
|
|
375
|
-
// Faster on Android
|
|
376
|
-
useNativeDriver: _reactNative.Platform.OS === 'ios' // Only use native driver on iOS
|
|
377
|
-
}).start(() => {
|
|
378
|
-
// Dismiss the sheet
|
|
379
|
-
modalRef.current?.dismiss();
|
|
380
|
-
if (onClose) {
|
|
381
|
-
setTimeout(() => {
|
|
382
|
-
onClose();
|
|
383
|
-
}, _reactNative.Platform.OS === 'android' ? 150 : 100);
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
}, [onClose, fadeAnim]);
|
|
387
|
-
|
|
388
|
-
// Handle sheet index changes
|
|
389
|
-
const handleSheetChanges = (0, _react.useCallback)(index => {}, [onClose, handleScaleAnim, keyboardVisible]);
|
|
390
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_bottomSheet.BottomSheetModal, {
|
|
391
|
-
ref: modalRef,
|
|
392
|
-
index: 0,
|
|
393
|
-
snapPoints: snapPoints,
|
|
394
|
-
enablePanDownToClose: true,
|
|
395
|
-
backdropComponent: renderBackdrop,
|
|
396
|
-
backgroundStyle: [getBackgroundStyle(), {
|
|
397
|
-
borderTopLeftRadius: 35,
|
|
398
|
-
borderTopRightRadius: 35
|
|
399
|
-
}],
|
|
400
|
-
handleIndicatorStyle: {
|
|
401
|
-
backgroundColor: customStyles.handleColor || (theme === 'light' ? '#CCCCCC' : '#444444'),
|
|
402
|
-
width: 40,
|
|
403
|
-
height: 4
|
|
404
|
-
},
|
|
405
|
-
onChange: handleSheetChanges,
|
|
406
|
-
style: styles.bottomSheetContainer
|
|
407
|
-
// Adding additional props to improve layout behavior
|
|
408
|
-
,
|
|
409
|
-
keyboardBehavior: "interactive",
|
|
410
|
-
keyboardBlurBehavior: "restore",
|
|
411
|
-
android_keyboardInputMode: "adjustResize",
|
|
412
|
-
enableOverDrag: true,
|
|
413
|
-
enableContentPanningGesture: true,
|
|
414
|
-
enableHandlePanningGesture: true,
|
|
415
|
-
overDragResistanceFactor: 2.5,
|
|
416
|
-
enableBlurKeyboardOnGesture: true
|
|
417
|
-
// Log sheet animations for debugging
|
|
418
|
-
,
|
|
419
|
-
onAnimate: (fromIndex, toIndex) => {
|
|
420
|
-
console.log(`Animating from index ${fromIndex} to ${toIndex}`);
|
|
421
|
-
},
|
|
422
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.BottomSheetScrollView, {
|
|
423
|
-
style: [styles.contentContainer,
|
|
424
|
-
// Override padding if provided in customStyles
|
|
425
|
-
customStyles.contentPadding !== undefined && {
|
|
426
|
-
padding: customStyles.contentPadding
|
|
427
|
-
}],
|
|
428
|
-
onLayout: handleContentLayout,
|
|
429
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
430
|
-
style: styles.centeredContentWrapper,
|
|
431
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
432
|
-
style: [styles.animatedContent,
|
|
433
|
-
// Apply animations - conditionally for Android
|
|
434
|
-
_reactNative.Platform.OS === 'android' ? {
|
|
435
|
-
opacity: 1 // No fade animation on Android
|
|
436
|
-
} : {
|
|
437
|
-
opacity: fadeAnim,
|
|
438
|
-
transform: [{
|
|
439
|
-
translateY: slideAnim
|
|
440
|
-
}]
|
|
441
|
-
}],
|
|
442
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyRouter.default, {
|
|
443
|
-
oxyServices: oxyServices,
|
|
444
|
-
initialScreen: initialScreen,
|
|
445
|
-
onClose: handleClose,
|
|
446
|
-
onAuthenticated: handleAuthenticated,
|
|
447
|
-
theme: theme,
|
|
448
|
-
adjustSnapPoints: adjustSnapPoints,
|
|
449
|
-
navigationRef: navigationRef,
|
|
450
|
-
containerWidth: containerWidth
|
|
451
|
-
})
|
|
452
|
-
})
|
|
453
|
-
})
|
|
454
|
-
}), showInternalToaster && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
455
|
-
style: styles.toasterContainer,
|
|
456
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sonner.Toaster, {
|
|
457
|
-
position: "top-center",
|
|
458
|
-
swipeToDismissDirection: "left"
|
|
459
|
-
})
|
|
460
|
-
})]
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
const styles = _reactNative.StyleSheet.create({
|
|
464
|
-
bottomSheetContainer: {
|
|
465
|
-
maxWidth: 800,
|
|
466
|
-
width: '100%',
|
|
467
|
-
marginHorizontal: 'auto'
|
|
468
|
-
},
|
|
469
|
-
contentContainer: {
|
|
470
|
-
width: '100%',
|
|
471
|
-
borderTopLeftRadius: 35,
|
|
472
|
-
borderTopRightRadius: 35
|
|
473
|
-
},
|
|
474
|
-
centeredContentWrapper: {
|
|
475
|
-
width: '100%',
|
|
476
|
-
marginHorizontal: 'auto'
|
|
477
|
-
},
|
|
478
|
-
animatedContent: {
|
|
479
|
-
width: '100%'
|
|
480
|
-
},
|
|
481
|
-
indicator: {
|
|
482
|
-
width: 40,
|
|
483
|
-
height: 4,
|
|
484
|
-
marginTop: 8,
|
|
485
|
-
marginBottom: 8,
|
|
486
|
-
borderRadius: 35
|
|
487
|
-
},
|
|
488
|
-
errorContainer: {
|
|
489
|
-
flex: 1,
|
|
490
|
-
justifyContent: 'center',
|
|
491
|
-
alignItems: 'center'
|
|
492
|
-
},
|
|
493
|
-
gestureHandlerRoot: {
|
|
494
|
-
flex: 1,
|
|
495
|
-
position: 'relative',
|
|
496
|
-
backgroundColor: 'transparent',
|
|
497
|
-
..._reactNative.Platform.select({
|
|
498
|
-
android: {
|
|
499
|
-
height: '100%',
|
|
500
|
-
width: '100%'
|
|
501
|
-
}
|
|
502
|
-
})
|
|
503
|
-
},
|
|
504
|
-
toasterContainer: {
|
|
505
|
-
position: 'absolute',
|
|
506
|
-
top: 0,
|
|
507
|
-
left: 0,
|
|
508
|
-
right: 0,
|
|
509
|
-
bottom: 0,
|
|
510
|
-
zIndex: 9999,
|
|
511
|
-
elevation: 9999,
|
|
512
|
-
// For Android
|
|
513
|
-
pointerEvents: 'box-none' // Allow touches to pass through to underlying components
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
var _default = exports.default = OxyProvider;
|
|
517
|
-
//# sourceMappingURL=OxyProvider.js.map
|