@oxyhq/services 5.26.4 → 5.27.0
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/dist/web/oxy-services.esm.js +2 -0
- package/dist/web/oxy-services.esm.js.map +1 -0
- package/dist/web/types/assets/icons/OxyServices.d.ts +28 -0
- package/dist/web/types/assets/illustrations/HighFive.d.ts +8 -0
- package/dist/web/types/constants/version.d.ts +13 -0
- package/dist/web/types/core/AuthManager.d.ts +143 -0
- package/dist/web/types/core/CrossDomainAuth.d.ts +160 -0
- package/dist/web/types/core/HttpService.d.ts +163 -0
- package/dist/web/types/core/OxyServices.base.d.ts +126 -0
- package/dist/web/types/core/OxyServices.d.ts +81 -0
- package/dist/web/types/core/OxyServices.errors.d.ts +11 -0
- package/dist/web/types/core/index.d.ts +20 -0
- package/dist/web/types/core/mixins/OxyServices.analytics.d.ts +66 -0
- package/dist/web/types/core/mixins/OxyServices.assets.d.ts +135 -0
- package/dist/web/types/core/mixins/OxyServices.auth.d.ts +186 -0
- package/dist/web/types/core/mixins/OxyServices.developer.d.ts +99 -0
- package/dist/web/types/core/mixins/OxyServices.devices.d.ts +96 -0
- package/dist/web/types/core/mixins/OxyServices.features.d.ts +228 -0
- package/dist/web/types/core/mixins/OxyServices.fedcm.d.ts +200 -0
- package/dist/web/types/core/mixins/OxyServices.karma.d.ts +85 -0
- package/dist/web/types/core/mixins/OxyServices.language.d.ts +81 -0
- package/dist/web/types/core/mixins/OxyServices.location.d.ts +64 -0
- package/dist/web/types/core/mixins/OxyServices.payment.d.ts +111 -0
- package/dist/web/types/core/mixins/OxyServices.popup.d.ts +205 -0
- package/dist/web/types/core/mixins/OxyServices.privacy.d.ts +122 -0
- package/dist/web/types/core/mixins/OxyServices.redirect.d.ts +245 -0
- package/dist/web/types/core/mixins/OxyServices.security.d.ts +78 -0
- package/dist/web/types/core/mixins/OxyServices.user.d.ts +184 -0
- package/dist/web/types/core/mixins/OxyServices.utility.d.ts +93 -0
- package/dist/web/types/core/mixins/index.d.ts +30 -0
- package/dist/web/types/core/mixins/mixinHelpers.d.ts +31 -0
- package/dist/web/types/crypto/index.d.ts +11 -0
- package/dist/web/types/crypto/keyManager.d.ts +189 -0
- package/dist/web/types/crypto/polyfill.d.ts +12 -0
- package/dist/web/types/crypto/recoveryPhrase.d.ts +58 -0
- package/dist/web/types/crypto/signatureService.d.ts +86 -0
- package/dist/web/types/i18n/index.d.ts +3 -0
- package/dist/web/types/index.d.ts +62 -0
- package/dist/web/types/lib/sonner-safe.d.ts +8 -0
- package/dist/web/types/lib/sonner.d.ts +11 -0
- package/dist/web/types/lib/sonner.web.d.ts +14 -0
- package/dist/web/types/models/interfaces.d.ts +415 -0
- package/dist/web/types/models/session.d.ts +27 -0
- package/dist/web/types/node/index.d.ts +9 -0
- package/dist/web/types/shared/index.d.ts +28 -0
- package/dist/web/types/shared/utils/colorUtils.d.ts +104 -0
- package/dist/web/types/shared/utils/debugUtils.d.ts +48 -0
- package/dist/web/types/shared/utils/errorUtils.d.ts +97 -0
- package/dist/web/types/shared/utils/index.d.ts +13 -0
- package/dist/web/types/shared/utils/networkUtils.d.ts +139 -0
- package/dist/web/types/shared/utils/themeUtils.d.ts +90 -0
- package/dist/web/types/ui/client.d.ts +33 -0
- package/dist/web/types/ui/components/ActivityIndicator.d.ts +44 -0
- package/dist/web/types/ui/components/AnimationExample.d.ts +3 -0
- package/dist/web/types/ui/components/AutoHeightScrollView.d.ts +22 -0
- package/dist/web/types/ui/components/Avatar.d.ts +60 -0
- package/dist/web/types/ui/components/BottomSheet.d.ts +28 -0
- package/dist/web/types/ui/components/BottomSheetRouter.d.ts +8 -0
- package/dist/web/types/ui/components/CrossFadeIcon.d.ts +26 -0
- package/dist/web/types/ui/components/EmptyState.d.ts +7 -0
- package/dist/web/types/ui/components/ErrorBoundary.d.ts +30 -0
- package/dist/web/types/ui/components/FollowButton.d.ts +17 -0
- package/dist/web/types/ui/components/FontLoader.d.ts +14 -0
- package/dist/web/types/ui/components/GroupedItem.d.ts +23 -0
- package/dist/web/types/ui/components/GroupedSection.d.ts +24 -0
- package/dist/web/types/ui/components/Header.d.ts +37 -0
- package/dist/web/types/ui/components/HelperText.d.ts +46 -0
- package/dist/web/types/ui/components/Icon.d.ts +59 -0
- package/dist/web/types/ui/components/IconButton/IconButton.d.ts +98 -0
- package/dist/web/types/ui/components/IconButton/utils.d.ts +18 -0
- package/dist/web/types/ui/components/LoadingState.d.ts +8 -0
- package/dist/web/types/ui/components/OxyLogo.d.ts +28 -0
- package/dist/web/types/ui/components/OxyPayButton.d.ts +28 -0
- package/dist/web/types/ui/components/OxyProvider.d.ts +33 -0
- package/dist/web/types/ui/components/OxySignInButton.d.ts +64 -0
- package/dist/web/types/ui/components/ProfileCard.d.ts +17 -0
- package/dist/web/types/ui/components/QuickActions.d.ts +14 -0
- package/dist/web/types/ui/components/Section.d.ts +11 -0
- package/dist/web/types/ui/components/SectionTitle.d.ts +9 -0
- package/dist/web/types/ui/components/SettingRow.d.ts +19 -0
- package/dist/web/types/ui/components/SignInModal.d.ts +17 -0
- package/dist/web/types/ui/components/StepBasedScreen.d.ts +25 -0
- package/dist/web/types/ui/components/Surface.d.ts +75 -0
- package/dist/web/types/ui/components/TextField/Addons/Outline.d.ts +15 -0
- package/dist/web/types/ui/components/TextField/Addons/Underline.d.ts +18 -0
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldAdornment.d.ts +44 -0
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldAffix.d.ts +72 -0
- package/dist/web/types/ui/components/TextField/Adornment/TextFieldIcon.d.ts +77 -0
- package/dist/web/types/ui/components/TextField/Adornment/enums.d.ts +12 -0
- package/dist/web/types/ui/components/TextField/Adornment/types.d.ts +11 -0
- package/dist/web/types/ui/components/TextField/Adornment/utils.d.ts +11 -0
- package/dist/web/types/ui/components/TextField/Label/InputLabel.d.ts +4 -0
- package/dist/web/types/ui/components/TextField/Label/LabelBackground.d.ts +3 -0
- package/dist/web/types/ui/components/TextField/TextFieldFlat.d.ts +3 -0
- package/dist/web/types/ui/components/TextField/TextFieldOutlined.d.ts +3 -0
- package/dist/web/types/ui/components/TextField/constants.d.ts +31 -0
- package/dist/web/types/ui/components/TextField/helpers.d.ts +96 -0
- package/dist/web/types/ui/components/TextField/types.d.ts +155 -0
- package/dist/web/types/ui/components/TextField.d.ts +191 -0
- package/dist/web/types/ui/components/TouchableRipple/Pressable.d.ts +12 -0
- package/dist/web/types/ui/components/TouchableRipple/TouchableRipple.d.ts +61 -0
- package/dist/web/types/ui/components/TouchableRipple/utils.d.ts +10 -0
- package/dist/web/types/ui/components/Typography/AnimatedText.d.ts +34 -0
- package/dist/web/types/ui/components/Typography/types.d.ts +18 -0
- package/dist/web/types/ui/components/WebOxyProvider.d.ts +51 -0
- package/dist/web/types/ui/components/feedback/FormInput.d.ts +19 -0
- package/dist/web/types/ui/components/feedback/ProgressIndicator.d.ts +10 -0
- package/dist/web/types/ui/components/feedback/constants.d.ts +4 -0
- package/dist/web/types/ui/components/feedback/feedbackStyles.d.ts +279 -0
- package/dist/web/types/ui/components/feedback/index.d.ts +6 -0
- package/dist/web/types/ui/components/feedback/types.d.ts +45 -0
- package/dist/web/types/ui/components/feedback/useFeedbackForm.d.ts +8 -0
- package/dist/web/types/ui/components/fileManagement/AnimatedButton.d.ts +15 -0
- package/dist/web/types/ui/components/fileManagement/FileDetailsModal.d.ts +14 -0
- package/dist/web/types/ui/components/fileManagement/FileViewer.d.ts +17 -0
- package/dist/web/types/ui/components/fileManagement/UploadPreview.d.ts +20 -0
- package/dist/web/types/ui/components/fileManagement/styles.d.ts +859 -0
- package/dist/web/types/ui/components/icon/FAIRWalletIcon.d.ts +8 -0
- package/dist/web/types/ui/components/icon/OxyIcon.d.ts +9 -0
- package/dist/web/types/ui/components/icon/index.d.ts +3 -0
- package/dist/web/types/ui/components/index.d.ts +16 -0
- package/dist/web/types/ui/components/internal/GroupedPillButtons.d.ts +17 -0
- package/dist/web/types/ui/components/internal/PinInput.d.ts +22 -0
- package/dist/web/types/ui/components/modals/DeleteAccountModal.d.ts +18 -0
- package/dist/web/types/ui/components/modals/index.d.ts +1 -0
- package/dist/web/types/ui/components/payment/PaymentDetailsStep.d.ts +20 -0
- package/dist/web/types/ui/components/payment/PaymentMethodStep.d.ts +13 -0
- package/dist/web/types/ui/components/payment/PaymentReviewStep.d.ts +15 -0
- package/dist/web/types/ui/components/payment/PaymentSuccessStep.d.ts +9 -0
- package/dist/web/types/ui/components/payment/PaymentSummaryStep.d.ts +14 -0
- package/dist/web/types/ui/components/payment/constants.d.ts +6 -0
- package/dist/web/types/ui/components/payment/index.d.ts +8 -0
- package/dist/web/types/ui/components/payment/paymentStyles.d.ts +395 -0
- package/dist/web/types/ui/components/payment/types.d.ts +39 -0
- package/dist/web/types/ui/components/photogrid/JustifiedPhotoGrid.d.ts +26 -0
- package/dist/web/types/ui/components/styles/overlay.d.ts +3 -0
- package/dist/web/types/ui/components/styles/shadow.d.ts +2 -0
- package/dist/web/types/ui/components/theming.d.ts +7 -0
- package/dist/web/types/ui/components/types.d.ts +79 -0
- package/dist/web/types/ui/components/utils/forwardRef.d.ts +11 -0
- package/dist/web/types/ui/components/utils/hasTouchHandler.d.ts +5 -0
- package/dist/web/types/ui/components/utils/roundLayoutSize.d.ts +1 -0
- package/dist/web/types/ui/components/utils/splitStyles.d.ts +19 -0
- package/dist/web/types/ui/constants/iconColors.d.ts +129 -0
- package/dist/web/types/ui/constants/spacing.d.ts +32 -0
- package/dist/web/types/ui/constants/theme.d.ts +96 -0
- package/dist/web/types/ui/context/OxyContext.d.ts +74 -0
- package/dist/web/types/ui/context/ThemeContext.d.ts +18 -0
- package/dist/web/types/ui/context/hooks/useAuthOperations.d.ts +39 -0
- package/dist/web/types/ui/context/hooks/useDeviceManagement.d.ts +26 -0
- package/dist/web/types/ui/context/hooks/useLanguageManagement.d.ts +24 -0
- package/dist/web/types/ui/context/hooks/useSessionManagement.d.ts +40 -0
- package/dist/web/types/ui/hooks/index.d.ts +6 -0
- package/dist/web/types/ui/hooks/mutations/index.d.ts +8 -0
- package/dist/web/types/ui/hooks/mutations/mutationFactory.d.ts +75 -0
- package/dist/web/types/ui/hooks/mutations/useAccountMutations.d.ts +68 -0
- package/dist/web/types/ui/hooks/mutations/useServicesMutations.d.ts +22 -0
- package/dist/web/types/ui/hooks/queries/index.d.ts +10 -0
- package/dist/web/types/ui/hooks/queries/queryKeys.d.ts +64 -0
- package/dist/web/types/ui/hooks/queries/useAccountQueries.d.ts +42 -0
- package/dist/web/types/ui/hooks/queries/useSecurityQueries.d.ts +14 -0
- package/dist/web/types/ui/hooks/queries/useServicesQueries.d.ts +31 -0
- package/dist/web/types/ui/hooks/queryClient.d.ts +18 -0
- package/dist/web/types/ui/hooks/useAssets.d.ts +34 -0
- package/dist/web/types/ui/hooks/useAsyncAction.d.ts +50 -0
- package/dist/web/types/ui/hooks/useAuth.d.ts +73 -0
- package/dist/web/types/ui/hooks/useColorScheme.d.ts +7 -0
- package/dist/web/types/ui/hooks/useDeviceManagement.d.ts +26 -0
- package/dist/web/types/ui/hooks/useFileDownloadUrl.d.ts +18 -0
- package/dist/web/types/ui/hooks/useFileFiltering.d.ts +28 -0
- package/dist/web/types/ui/hooks/useFollow.d.ts +61 -0
- package/dist/web/types/ui/hooks/useFollow.types.d.ts +32 -0
- package/dist/web/types/ui/hooks/useI18n.d.ts +4 -0
- package/dist/web/types/ui/hooks/useLanguageManagement.d.ts +24 -0
- package/dist/web/types/ui/hooks/useProfileEditing.d.ts +35 -0
- package/dist/web/types/ui/hooks/useQueryClient.d.ts +6 -0
- package/dist/web/types/ui/hooks/useSessionManagement.d.ts +40 -0
- package/dist/web/types/ui/hooks/useSessionSocket.d.ts +13 -0
- package/dist/web/types/ui/hooks/useSettingToggle.d.ts +56 -0
- package/dist/web/types/ui/hooks/useStorage.d.ts +15 -0
- package/dist/web/types/ui/hooks/useThemeColors.d.ts +93 -0
- package/dist/web/types/ui/hooks/useThemeStyles.d.ts +44 -0
- package/dist/web/types/ui/hooks/useWebSSO.d.ts +57 -0
- package/dist/web/types/ui/index.d.ts +7 -0
- package/dist/web/types/ui/isFrontend.d.ts +2 -0
- package/dist/web/types/ui/navigation/bottomSheetManager.d.ts +26 -0
- package/dist/web/types/ui/navigation/routes.d.ts +5 -0
- package/dist/web/types/ui/screens/AccountCenterScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/AccountOverviewScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/AccountSettingsScreen.d.ts +7 -0
- package/dist/web/types/ui/screens/AccountSwitcherScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/AccountVerificationScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/AppInfoScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/EditProfileFieldScreen.d.ts +12 -0
- package/dist/web/types/ui/screens/FAQScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/FeedbackScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/FileManagementScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/FollowersListScreen.d.ts +8 -0
- package/dist/web/types/ui/screens/FollowingListScreen.d.ts +8 -0
- package/dist/web/types/ui/screens/HelpSupportScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/HistoryViewScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/LanguageSelectorScreen.d.ts +6 -0
- package/dist/web/types/ui/screens/LearnMoreUsernamesScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/LegalDocumentsScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/OxyAuthScreen.d.ts +16 -0
- package/dist/web/types/ui/screens/PaymentGatewayScreen.d.ts +14 -0
- package/dist/web/types/ui/screens/PremiumSubscriptionScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/PrivacySettingsScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/ProfileScreen.d.ts +8 -0
- package/dist/web/types/ui/screens/SavesCollectionsScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/SearchSettingsScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/SessionManagementScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/UserLinksScreen.d.ts +14 -0
- package/dist/web/types/ui/screens/UserListScreen.d.ts +10 -0
- package/dist/web/types/ui/screens/WelcomeNewUserScreen.d.ts +12 -0
- package/dist/web/types/ui/screens/karma/KarmaAboutScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/karma/KarmaCenterScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/karma/KarmaFAQScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/karma/KarmaLeaderboardScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/karma/KarmaRewardsScreen.d.ts +4 -0
- package/dist/web/types/ui/screens/karma/KarmaRulesScreen.d.ts +4 -0
- package/dist/web/types/ui/server.d.ts +42 -0
- package/dist/web/types/ui/stores/accountStore.d.ts +33 -0
- package/dist/web/types/ui/stores/assetStore.d.ts +53 -0
- package/dist/web/types/ui/stores/authStore.d.ts +16 -0
- package/dist/web/types/ui/stores/fileStore.d.ts +30 -0
- package/dist/web/types/ui/stores/followStore.d.ts +24 -0
- package/dist/web/types/ui/styles/authStyles.d.ts +331 -0
- package/dist/web/types/ui/styles/fonts.d.ts +20 -0
- package/dist/web/types/ui/styles/index.d.ts +4 -0
- package/dist/web/types/ui/styles/spacing.d.ts +48 -0
- package/dist/web/types/ui/styles/theme.d.ts +67 -0
- package/dist/web/types/ui/types/fileManagement.d.ts +40 -0
- package/dist/web/types/ui/types/navigation.d.ts +36 -0
- package/dist/web/types/ui/utils/authHelpers.d.ts +98 -0
- package/dist/web/types/ui/utils/avatarUtils.d.ts +33 -0
- package/dist/web/types/ui/utils/colorUtils.d.ts +9 -0
- package/dist/web/types/ui/utils/confirmAction.d.ts +6 -0
- package/dist/web/types/ui/utils/errorHandlers.d.ts +34 -0
- package/dist/web/types/ui/utils/fileManagement.d.ts +86 -0
- package/dist/web/types/ui/utils/iconNames.d.ts +111 -0
- package/dist/web/types/ui/utils/sessionHelpers.d.ts +63 -0
- package/dist/web/types/ui/utils/storageHelpers.d.ts +27 -0
- package/dist/web/types/ui/utils/themeUtils.d.ts +10 -0
- package/dist/web/types/ui/utils/userUtils.d.ts +28 -0
- package/dist/web/types/utils/apiUtils.d.ts +53 -0
- package/dist/web/types/utils/asyncUtils.d.ts +58 -0
- package/dist/web/types/utils/cache.d.ts +127 -0
- package/dist/web/types/utils/deviceManager.d.ts +65 -0
- package/dist/web/types/utils/errorUtils.d.ts +46 -0
- package/dist/web/types/utils/hookUtils.d.ts +101 -0
- package/dist/web/types/utils/index.d.ts +6 -0
- package/dist/web/types/utils/languageUtils.d.ts +37 -0
- package/dist/web/types/utils/loggerUtils.d.ts +48 -0
- package/dist/web/types/utils/platform.d.ts +40 -0
- package/dist/web/types/utils/platformInit.d.ts +8 -0
- package/dist/web/types/utils/requestUtils.d.ts +123 -0
- package/dist/web/types/utils/sessionUtils.d.ts +54 -0
- package/dist/web/types/utils/validationUtils.d.ts +85 -0
- package/dist/web/types/web/WebOxyContext.d.ts +151 -0
- package/dist/web/types/web/index.d.ts +52 -0
- package/dist/web/types/web.d.ts +53 -0
- package/package.json +20 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
interface FAIRWalletIconProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
declare const FAIRWalletIcon: React.FC<FAIRWalletIconProps>;
|
|
8
|
+
export default FAIRWalletIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as ProfileCard } from './ProfileCard';
|
|
2
|
+
export { default as Section } from './Section';
|
|
3
|
+
export { default as SectionTitle } from './SectionTitle';
|
|
4
|
+
export { default as GroupedItem } from './GroupedItem';
|
|
5
|
+
export { default as GroupedSection } from './GroupedSection';
|
|
6
|
+
export { default as QuickActions } from './QuickActions';
|
|
7
|
+
export { default as Header, getHeaderHeight } from './Header';
|
|
8
|
+
export { default as LoadingState } from './LoadingState';
|
|
9
|
+
export { default as EmptyState } from './EmptyState';
|
|
10
|
+
export { default as SettingRow } from './SettingRow';
|
|
11
|
+
export { default as Avatar } from './Avatar';
|
|
12
|
+
export { default as FollowButton } from './FollowButton';
|
|
13
|
+
export { FontLoader, setupFonts } from './FontLoader';
|
|
14
|
+
export { default as OxyLogo } from './OxyLogo';
|
|
15
|
+
export { default as OxySignInButton } from './OxySignInButton';
|
|
16
|
+
export { default as OxyPayButton } from './OxyPayButton';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface ButtonConfig {
|
|
3
|
+
text: string;
|
|
4
|
+
onPress: () => void;
|
|
5
|
+
icon?: string;
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'transparent';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
testID?: string;
|
|
10
|
+
}
|
|
11
|
+
interface GroupedPillButtonsProps {
|
|
12
|
+
buttons: ButtonConfig[];
|
|
13
|
+
colors: any;
|
|
14
|
+
gap?: number;
|
|
15
|
+
}
|
|
16
|
+
declare const GroupedPillButtons: React.FC<GroupedPillButtonsProps>;
|
|
17
|
+
export default GroupedPillButtons;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PinInputColors {
|
|
3
|
+
primary: string;
|
|
4
|
+
secondary?: string;
|
|
5
|
+
background: string;
|
|
6
|
+
inputBackground: string;
|
|
7
|
+
text: string;
|
|
8
|
+
border: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PinInputProps {
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (val: string) => void;
|
|
13
|
+
length?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
colors: PinInputColors;
|
|
17
|
+
}
|
|
18
|
+
export interface PinInputHandle {
|
|
19
|
+
focus: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare const PinInput: React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<PinInputHandle>>;
|
|
22
|
+
export default PinInput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DeleteAccountModalProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
username: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onDelete: (password: string) => Promise<void>;
|
|
7
|
+
colors: {
|
|
8
|
+
background: string;
|
|
9
|
+
text: string;
|
|
10
|
+
secondaryText: string;
|
|
11
|
+
border: string;
|
|
12
|
+
danger: string;
|
|
13
|
+
inputBackground: string;
|
|
14
|
+
};
|
|
15
|
+
t: (key: string, params?: Record<string, string>) => string | undefined;
|
|
16
|
+
}
|
|
17
|
+
declare const DeleteAccountModal: React.FC<DeleteAccountModalProps>;
|
|
18
|
+
export default DeleteAccountModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DeleteAccountModal } from './DeleteAccountModal';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CardDetails, PaymentColors, PaymentStepAnimations } from './types';
|
|
3
|
+
interface PaymentDetailsStepProps {
|
|
4
|
+
paymentMethod: string;
|
|
5
|
+
cardDetails: CardDetails;
|
|
6
|
+
onCardDetailsChange: (details: CardDetails) => void;
|
|
7
|
+
colors: PaymentColors;
|
|
8
|
+
animations: PaymentStepAnimations;
|
|
9
|
+
faircoinAddress: string;
|
|
10
|
+
isMobile: boolean;
|
|
11
|
+
qrSize: number;
|
|
12
|
+
onBack: () => void;
|
|
13
|
+
onNext: () => void;
|
|
14
|
+
QRCodeComponent?: React.ComponentType<{
|
|
15
|
+
value?: string;
|
|
16
|
+
size?: number;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
declare const PaymentDetailsStep: React.FC<PaymentDetailsStepProps>;
|
|
20
|
+
export default PaymentDetailsStep;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PaymentMethod, PaymentColors, PaymentStepAnimations } from './types';
|
|
3
|
+
interface PaymentMethodStepProps {
|
|
4
|
+
availablePaymentMethods: PaymentMethod[];
|
|
5
|
+
selectedMethod: string;
|
|
6
|
+
onSelectMethod: (method: string) => void;
|
|
7
|
+
colors: PaymentColors;
|
|
8
|
+
animations: PaymentStepAnimations;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
onNext: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const PaymentMethodStep: React.FC<PaymentMethodStepProps>;
|
|
13
|
+
export default PaymentMethodStep;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CardDetails, PaymentColors, PaymentStepAnimations } from './types';
|
|
3
|
+
interface PaymentReviewStepProps {
|
|
4
|
+
amount: string | number;
|
|
5
|
+
currency: string;
|
|
6
|
+
paymentMethod: string;
|
|
7
|
+
cardDetails: CardDetails;
|
|
8
|
+
colors: PaymentColors;
|
|
9
|
+
animations: PaymentStepAnimations;
|
|
10
|
+
isPaying: boolean;
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
onPay: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const PaymentReviewStep: React.FC<PaymentReviewStepProps>;
|
|
15
|
+
export default PaymentReviewStep;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PaymentColors, PaymentStepAnimations } from './types';
|
|
3
|
+
interface PaymentSuccessStepProps {
|
|
4
|
+
colors: PaymentColors;
|
|
5
|
+
animations: PaymentStepAnimations;
|
|
6
|
+
onDone: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PaymentSuccessStep: React.FC<PaymentSuccessStepProps>;
|
|
9
|
+
export default PaymentSuccessStep;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PaymentItem, PaymentColors, PaymentStepAnimations } from './types';
|
|
3
|
+
interface PaymentSummaryStepProps {
|
|
4
|
+
paymentItems: PaymentItem[];
|
|
5
|
+
amount: string | number;
|
|
6
|
+
currency: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
colors: PaymentColors;
|
|
9
|
+
animations: PaymentStepAnimations;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
onNext: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const PaymentSummaryStep: React.FC<PaymentSummaryStepProps>;
|
|
14
|
+
export default PaymentSummaryStep;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PaymentMethod } from './types';
|
|
2
|
+
export declare const PAYMENT_METHODS: PaymentMethod[];
|
|
3
|
+
export declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
4
|
+
export declare const CURRENCY_NAMES: Record<string, string>;
|
|
5
|
+
export declare const getCurrencySymbol: (currency: string) => string;
|
|
6
|
+
export declare const getCurrencyName: (currency: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as PaymentSummaryStep } from './PaymentSummaryStep';
|
|
2
|
+
export { default as PaymentMethodStep } from './PaymentMethodStep';
|
|
3
|
+
export { default as PaymentDetailsStep } from './PaymentDetailsStep';
|
|
4
|
+
export { default as PaymentReviewStep } from './PaymentReviewStep';
|
|
5
|
+
export { default as PaymentSuccessStep } from './PaymentSuccessStep';
|
|
6
|
+
export { createPaymentStyles } from './paymentStyles';
|
|
7
|
+
export { PAYMENT_METHODS, CURRENCY_SYMBOLS, CURRENCY_NAMES, getCurrencySymbol, getCurrencyName } from './constants';
|
|
8
|
+
export type { PaymentItem, PaymentGatewayResult, CardDetails, PaymentMethod, PaymentStepAnimations, PaymentColors } from './types';
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import type { PaymentColors } from './types';
|
|
2
|
+
export declare const createPaymentStyles: (colors: PaymentColors) => {
|
|
3
|
+
container: {
|
|
4
|
+
flex: number;
|
|
5
|
+
};
|
|
6
|
+
content: {
|
|
7
|
+
flex: number;
|
|
8
|
+
padding: number;
|
|
9
|
+
};
|
|
10
|
+
stepContainer: {
|
|
11
|
+
justifyContent: "flex-start";
|
|
12
|
+
alignItems: "flex-start";
|
|
13
|
+
width: "100%";
|
|
14
|
+
};
|
|
15
|
+
section: {
|
|
16
|
+
marginBottom: number;
|
|
17
|
+
width: "100%";
|
|
18
|
+
};
|
|
19
|
+
sectionTitle: {
|
|
20
|
+
fontSize: number;
|
|
21
|
+
fontWeight: "600";
|
|
22
|
+
color: string;
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
};
|
|
26
|
+
errorContainer: {
|
|
27
|
+
flex: number;
|
|
28
|
+
justifyContent: "center";
|
|
29
|
+
alignItems: "center";
|
|
30
|
+
padding: number;
|
|
31
|
+
};
|
|
32
|
+
errorText: {
|
|
33
|
+
fontSize: number;
|
|
34
|
+
color: string;
|
|
35
|
+
marginBottom: number;
|
|
36
|
+
};
|
|
37
|
+
summaryCard: {
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
borderRadius: number;
|
|
40
|
+
padding: number;
|
|
41
|
+
marginBottom: number;
|
|
42
|
+
alignItems: "center";
|
|
43
|
+
width: "100%";
|
|
44
|
+
};
|
|
45
|
+
summaryCardContent: {
|
|
46
|
+
alignItems: "center";
|
|
47
|
+
width: "100%";
|
|
48
|
+
};
|
|
49
|
+
summaryCardIcon: {
|
|
50
|
+
marginBottom: number;
|
|
51
|
+
};
|
|
52
|
+
summaryCardMainTitle: {
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
fontWeight: "bold";
|
|
55
|
+
fontSize: number;
|
|
56
|
+
color: string;
|
|
57
|
+
marginBottom: number;
|
|
58
|
+
textAlign: "center";
|
|
59
|
+
letterSpacing: number;
|
|
60
|
+
};
|
|
61
|
+
summaryCardSubtitle: {
|
|
62
|
+
fontSize: number;
|
|
63
|
+
color: string;
|
|
64
|
+
textAlign: "center";
|
|
65
|
+
marginBottom: number;
|
|
66
|
+
width: "100%";
|
|
67
|
+
};
|
|
68
|
+
summaryCardItems: {
|
|
69
|
+
width: "100%";
|
|
70
|
+
marginBottom: number;
|
|
71
|
+
};
|
|
72
|
+
summaryItemPrice: {
|
|
73
|
+
color: string;
|
|
74
|
+
fontWeight: "600";
|
|
75
|
+
fontSize: number;
|
|
76
|
+
};
|
|
77
|
+
summaryCardAmount: {
|
|
78
|
+
alignItems: "center";
|
|
79
|
+
width: "100%";
|
|
80
|
+
marginBottom: number;
|
|
81
|
+
};
|
|
82
|
+
summaryCardAmountLabel: {
|
|
83
|
+
fontSize: number;
|
|
84
|
+
color: string;
|
|
85
|
+
textAlign: "center";
|
|
86
|
+
marginBottom: number;
|
|
87
|
+
};
|
|
88
|
+
summaryCardAmountValue: {
|
|
89
|
+
fontSize: number;
|
|
90
|
+
fontWeight: "bold";
|
|
91
|
+
color: string;
|
|
92
|
+
textAlign: "center";
|
|
93
|
+
marginBottom: number;
|
|
94
|
+
fontFamily: string;
|
|
95
|
+
};
|
|
96
|
+
summaryCardAmountDescription: {
|
|
97
|
+
fontSize: number;
|
|
98
|
+
color: string;
|
|
99
|
+
textAlign: "center";
|
|
100
|
+
lineHeight: number;
|
|
101
|
+
};
|
|
102
|
+
summaryCardDivider: {
|
|
103
|
+
height: number;
|
|
104
|
+
backgroundColor: string;
|
|
105
|
+
marginVertical: number;
|
|
106
|
+
width: "100%";
|
|
107
|
+
};
|
|
108
|
+
summaryCardTotalSection: {
|
|
109
|
+
width: "100%";
|
|
110
|
+
marginBottom: number;
|
|
111
|
+
};
|
|
112
|
+
summaryCardTotalRow: {
|
|
113
|
+
flexDirection: "row";
|
|
114
|
+
justifyContent: "space-between";
|
|
115
|
+
alignItems: "center";
|
|
116
|
+
paddingVertical: number;
|
|
117
|
+
};
|
|
118
|
+
summaryCardTotalLabel: {
|
|
119
|
+
fontSize: number;
|
|
120
|
+
color: string;
|
|
121
|
+
fontWeight: "500";
|
|
122
|
+
};
|
|
123
|
+
summaryCardTotalValue: {
|
|
124
|
+
fontSize: number;
|
|
125
|
+
color: string;
|
|
126
|
+
fontWeight: "600";
|
|
127
|
+
};
|
|
128
|
+
cardPaymentCard: {
|
|
129
|
+
backgroundColor: string;
|
|
130
|
+
borderRadius: number;
|
|
131
|
+
padding: number;
|
|
132
|
+
marginBottom: number;
|
|
133
|
+
alignItems: "center";
|
|
134
|
+
width: "100%";
|
|
135
|
+
};
|
|
136
|
+
cardPaymentContent: {
|
|
137
|
+
alignItems: "center";
|
|
138
|
+
width: "100%";
|
|
139
|
+
};
|
|
140
|
+
cardPaymentIcon: {
|
|
141
|
+
marginBottom: number;
|
|
142
|
+
};
|
|
143
|
+
cardPaymentMainTitle: {
|
|
144
|
+
fontFamily: string;
|
|
145
|
+
fontWeight: "bold";
|
|
146
|
+
fontSize: number;
|
|
147
|
+
color: string;
|
|
148
|
+
marginBottom: number;
|
|
149
|
+
textAlign: "center";
|
|
150
|
+
letterSpacing: number;
|
|
151
|
+
};
|
|
152
|
+
cardPaymentSubtitle: {
|
|
153
|
+
fontSize: number;
|
|
154
|
+
color: string;
|
|
155
|
+
textAlign: "center";
|
|
156
|
+
marginBottom: number;
|
|
157
|
+
width: "100%";
|
|
158
|
+
};
|
|
159
|
+
cardPaymentFields: {
|
|
160
|
+
width: "100%";
|
|
161
|
+
marginBottom: number;
|
|
162
|
+
};
|
|
163
|
+
cardPaymentWaiting: {
|
|
164
|
+
fontSize: number;
|
|
165
|
+
color: string;
|
|
166
|
+
textAlign: "center";
|
|
167
|
+
marginBottom: number;
|
|
168
|
+
};
|
|
169
|
+
cardRowInfo: {
|
|
170
|
+
flexDirection: "row";
|
|
171
|
+
alignItems: "center";
|
|
172
|
+
marginBottom: number;
|
|
173
|
+
};
|
|
174
|
+
cardRowIcon: {
|
|
175
|
+
marginRight: number;
|
|
176
|
+
};
|
|
177
|
+
cardRowText: {
|
|
178
|
+
fontSize: number;
|
|
179
|
+
color: string;
|
|
180
|
+
};
|
|
181
|
+
cardFieldContainer: {
|
|
182
|
+
marginBottom: number;
|
|
183
|
+
};
|
|
184
|
+
cardFieldRow: {
|
|
185
|
+
flexDirection: "row";
|
|
186
|
+
gap: number;
|
|
187
|
+
};
|
|
188
|
+
cardFieldHalfLeft: {
|
|
189
|
+
flex: number;
|
|
190
|
+
marginRight: number;
|
|
191
|
+
};
|
|
192
|
+
cardFieldHalfRight: {
|
|
193
|
+
flex: number;
|
|
194
|
+
marginLeft: number;
|
|
195
|
+
};
|
|
196
|
+
oxyPayCard: {
|
|
197
|
+
backgroundColor: string;
|
|
198
|
+
borderRadius: number;
|
|
199
|
+
padding: number;
|
|
200
|
+
marginBottom: number;
|
|
201
|
+
alignItems: "center";
|
|
202
|
+
width: "100%";
|
|
203
|
+
};
|
|
204
|
+
oxyPayContent: {
|
|
205
|
+
alignItems: "center";
|
|
206
|
+
width: "100%";
|
|
207
|
+
};
|
|
208
|
+
oxyPayIcon: {
|
|
209
|
+
marginBottom: number;
|
|
210
|
+
};
|
|
211
|
+
oxyPayMainTitle: {
|
|
212
|
+
fontFamily: string;
|
|
213
|
+
fontWeight: "bold";
|
|
214
|
+
fontSize: number;
|
|
215
|
+
color: string;
|
|
216
|
+
marginBottom: number;
|
|
217
|
+
textAlign: "center";
|
|
218
|
+
letterSpacing: number;
|
|
219
|
+
};
|
|
220
|
+
oxyPaySubtitle: {
|
|
221
|
+
fontSize: number;
|
|
222
|
+
color: string;
|
|
223
|
+
textAlign: "center";
|
|
224
|
+
marginBottom: number;
|
|
225
|
+
};
|
|
226
|
+
oxyPayBalanceBox: {
|
|
227
|
+
backgroundColor: string;
|
|
228
|
+
borderRadius: number;
|
|
229
|
+
padding: number;
|
|
230
|
+
marginTop: number;
|
|
231
|
+
};
|
|
232
|
+
oxyPayBalanceText: {
|
|
233
|
+
color: string;
|
|
234
|
+
fontWeight: "600";
|
|
235
|
+
};
|
|
236
|
+
oxyPayWaiting: {
|
|
237
|
+
fontSize: number;
|
|
238
|
+
color: string;
|
|
239
|
+
textAlign: "center";
|
|
240
|
+
marginBottom: number;
|
|
241
|
+
};
|
|
242
|
+
faircoinCard: {
|
|
243
|
+
backgroundColor: string;
|
|
244
|
+
borderRadius: number;
|
|
245
|
+
padding: number;
|
|
246
|
+
marginBottom: number;
|
|
247
|
+
alignItems: "center";
|
|
248
|
+
width: "100%";
|
|
249
|
+
};
|
|
250
|
+
faircoinContent: {
|
|
251
|
+
alignItems: "center";
|
|
252
|
+
width: "100%";
|
|
253
|
+
};
|
|
254
|
+
faircoinIcon: {
|
|
255
|
+
marginBottom: number;
|
|
256
|
+
};
|
|
257
|
+
faircoinMainTitle: {
|
|
258
|
+
fontFamily: string;
|
|
259
|
+
fontWeight: "bold";
|
|
260
|
+
fontSize: number;
|
|
261
|
+
color: string;
|
|
262
|
+
marginBottom: number;
|
|
263
|
+
textAlign: "center";
|
|
264
|
+
letterSpacing: number;
|
|
265
|
+
};
|
|
266
|
+
faircoinSubtitle: {
|
|
267
|
+
color: string;
|
|
268
|
+
fontWeight: "700";
|
|
269
|
+
fontSize: number;
|
|
270
|
+
marginBottom: number;
|
|
271
|
+
textAlign: "center";
|
|
272
|
+
letterSpacing: number;
|
|
273
|
+
};
|
|
274
|
+
faircoinScanText: {
|
|
275
|
+
color: string;
|
|
276
|
+
fontWeight: "600";
|
|
277
|
+
fontSize: number;
|
|
278
|
+
marginBottom: number;
|
|
279
|
+
};
|
|
280
|
+
faircoinQRCard: {
|
|
281
|
+
width: number;
|
|
282
|
+
height: number;
|
|
283
|
+
backgroundColor: string;
|
|
284
|
+
borderRadius: number;
|
|
285
|
+
justifyContent: "center";
|
|
286
|
+
alignItems: "center";
|
|
287
|
+
marginBottom: number;
|
|
288
|
+
padding: number;
|
|
289
|
+
borderWidth: number;
|
|
290
|
+
borderColor: string;
|
|
291
|
+
shadowColor: string;
|
|
292
|
+
shadowOffset: {
|
|
293
|
+
width: number;
|
|
294
|
+
height: number;
|
|
295
|
+
};
|
|
296
|
+
shadowOpacity: number;
|
|
297
|
+
shadowRadius: number;
|
|
298
|
+
elevation: number;
|
|
299
|
+
position: "relative";
|
|
300
|
+
};
|
|
301
|
+
faircoinQRBadge: {
|
|
302
|
+
position: "absolute";
|
|
303
|
+
bottom: number;
|
|
304
|
+
right: number;
|
|
305
|
+
backgroundColor: string;
|
|
306
|
+
borderRadius: number;
|
|
307
|
+
padding: number;
|
|
308
|
+
shadowColor: string;
|
|
309
|
+
shadowOffset: {
|
|
310
|
+
width: number;
|
|
311
|
+
height: number;
|
|
312
|
+
};
|
|
313
|
+
shadowOpacity: number;
|
|
314
|
+
shadowRadius: number;
|
|
315
|
+
elevation: number;
|
|
316
|
+
};
|
|
317
|
+
faircoinTitle: {
|
|
318
|
+
fontSize: number;
|
|
319
|
+
marginBottom: number;
|
|
320
|
+
color: string;
|
|
321
|
+
fontWeight: "600";
|
|
322
|
+
textAlign: "center";
|
|
323
|
+
};
|
|
324
|
+
faircoinAddress: {
|
|
325
|
+
color: string;
|
|
326
|
+
fontSize: number;
|
|
327
|
+
textAlign: "center";
|
|
328
|
+
marginTop: number;
|
|
329
|
+
marginBottom: number;
|
|
330
|
+
};
|
|
331
|
+
faircoinButton: {
|
|
332
|
+
flexDirection: "row";
|
|
333
|
+
alignItems: "center";
|
|
334
|
+
alignSelf: "center";
|
|
335
|
+
backgroundColor: string;
|
|
336
|
+
borderRadius: number;
|
|
337
|
+
paddingHorizontal: number;
|
|
338
|
+
paddingVertical: number;
|
|
339
|
+
marginTop: number;
|
|
340
|
+
marginBottom: number;
|
|
341
|
+
};
|
|
342
|
+
faircoinButtonText: {
|
|
343
|
+
color: string;
|
|
344
|
+
fontWeight: "600";
|
|
345
|
+
fontSize: number;
|
|
346
|
+
};
|
|
347
|
+
faircoinWaiting: {
|
|
348
|
+
fontSize: number;
|
|
349
|
+
color: string;
|
|
350
|
+
textAlign: "center";
|
|
351
|
+
marginBottom: number;
|
|
352
|
+
};
|
|
353
|
+
faircoinPlaceholder: {
|
|
354
|
+
fontSize: number;
|
|
355
|
+
color: string;
|
|
356
|
+
textAlign: "center";
|
|
357
|
+
};
|
|
358
|
+
successCard: {
|
|
359
|
+
backgroundColor: string;
|
|
360
|
+
borderRadius: number;
|
|
361
|
+
padding: number;
|
|
362
|
+
marginBottom: number;
|
|
363
|
+
alignItems: "center";
|
|
364
|
+
width: "100%";
|
|
365
|
+
};
|
|
366
|
+
successContent: {
|
|
367
|
+
alignItems: "center";
|
|
368
|
+
width: "100%";
|
|
369
|
+
};
|
|
370
|
+
successIcon: {
|
|
371
|
+
marginBottom: number;
|
|
372
|
+
};
|
|
373
|
+
successMainTitle: {
|
|
374
|
+
fontFamily: string;
|
|
375
|
+
fontWeight: "bold";
|
|
376
|
+
fontSize: number;
|
|
377
|
+
color: string;
|
|
378
|
+
marginBottom: number;
|
|
379
|
+
textAlign: "center";
|
|
380
|
+
letterSpacing: number;
|
|
381
|
+
};
|
|
382
|
+
successSubtitle: {
|
|
383
|
+
fontSize: number;
|
|
384
|
+
color: string;
|
|
385
|
+
textAlign: "center";
|
|
386
|
+
marginBottom: number;
|
|
387
|
+
width: "100%";
|
|
388
|
+
};
|
|
389
|
+
successMessage: {
|
|
390
|
+
fontSize: number;
|
|
391
|
+
color: string;
|
|
392
|
+
textAlign: "center";
|
|
393
|
+
marginBottom: number;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Animated } from 'react-native';
|
|
2
|
+
export type PaymentItem = {
|
|
3
|
+
type: 'product' | 'subscription' | 'service' | 'fee' | string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
period?: string;
|
|
8
|
+
price: number;
|
|
9
|
+
currency?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface PaymentGatewayResult {
|
|
12
|
+
success: boolean;
|
|
13
|
+
details?: Record<string, string | number | boolean | null>;
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CardDetails {
|
|
17
|
+
number: string;
|
|
18
|
+
expiry: string;
|
|
19
|
+
cvv: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PaymentMethod {
|
|
22
|
+
key: string;
|
|
23
|
+
label: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
description: string;
|
|
26
|
+
}
|
|
27
|
+
export interface PaymentStepAnimations {
|
|
28
|
+
fadeAnim: Animated.Value;
|
|
29
|
+
slideAnim: Animated.Value;
|
|
30
|
+
scaleAnim: Animated.Value;
|
|
31
|
+
}
|
|
32
|
+
export interface PaymentColors {
|
|
33
|
+
primary: string;
|
|
34
|
+
text: string;
|
|
35
|
+
secondaryText: string;
|
|
36
|
+
border: string;
|
|
37
|
+
success?: string;
|
|
38
|
+
background?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FileMetadata } from '../../../models/interfaces';
|
|
3
|
+
export interface JustifiedPhotoGridProps {
|
|
4
|
+
photos: FileMetadata[];
|
|
5
|
+
photoDimensions: {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
loadPhotoDimensions: (photos: FileMetadata[]) => Promise<void>;
|
|
12
|
+
createJustifiedRows: (photos: FileMetadata[], containerWidth: number) => FileMetadata[][];
|
|
13
|
+
renderJustifiedPhotoItem: (photo: FileMetadata, width: number, height: number, isLast: boolean) => React.ReactElement;
|
|
14
|
+
renderSimplePhotoItem: (photo: FileMetadata, index: number) => React.ReactElement;
|
|
15
|
+
textColor: string;
|
|
16
|
+
/**
|
|
17
|
+
* Full available width from parent. If omitted, component will measure itself and adapt responsively.
|
|
18
|
+
*/
|
|
19
|
+
containerWidth?: number;
|
|
20
|
+
gap?: number;
|
|
21
|
+
minRowHeight?: number;
|
|
22
|
+
maxRowHeight?: number;
|
|
23
|
+
dateFormatLocale?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const _default: React.NamedExoticComponent<JustifiedPhotoGridProps>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
export declare const isAnimatedValue: (it: number | string | Animated.AnimatedInterpolation<number | string>) => it is Animated.Value;
|
|
3
|
+
export default function overlay<T extends Animated.Value | number>(elevation: T, surfaceColor?: string): T extends number ? string : Animated.AnimatedInterpolation<number | string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InternalTheme } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Adapter to convert services theming to react-native-paper's InternalTheme format
|
|
4
|
+
*/
|
|
5
|
+
export declare const useInternalTheme: (themeOverrides?: (Partial<InternalTheme> & {
|
|
6
|
+
dark?: boolean;
|
|
7
|
+
}) | "light" | "dark") => InternalTheme;
|