@bifold/core 2.4.5 → 2.5.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/lib/commonjs/contexts/reducers/store.js +3 -2
- package/lib/commonjs/contexts/reducers/store.js.map +1 -1
- package/lib/commonjs/index.js +119 -104
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/screens/AttemptLockout.js +27 -35
- package/lib/commonjs/screens/AttemptLockout.js.map +1 -1
- package/lib/commonjs/screens/ContactDetails.js +1 -1
- package/lib/commonjs/screens/ContactDetails.js.map +1 -1
- package/lib/commonjs/screens/CredentialDetails.js +1 -1
- package/lib/commonjs/screens/CredentialDetails.js.map +1 -1
- package/lib/commonjs/screens/JSONDetails.js +6 -3
- package/lib/commonjs/screens/JSONDetails.js.map +1 -1
- package/lib/commonjs/screens/MobileVerifierLoading.js +4 -3
- package/lib/commonjs/screens/MobileVerifierLoading.js.map +1 -1
- package/lib/commonjs/screens/PINCreate.js +3 -10
- package/lib/commonjs/screens/PINCreate.js.map +1 -1
- package/lib/commonjs/screens/WhatAreContacts.js +3 -2
- package/lib/commonjs/screens/WhatAreContacts.js.map +1 -1
- package/lib/module/contexts/reducers/store.js +3 -2
- package/lib/module/contexts/reducers/store.js.map +1 -1
- package/lib/module/index.js +42 -45
- package/lib/module/index.js.map +1 -1
- package/lib/module/screens/AttemptLockout.js +28 -36
- package/lib/module/screens/AttemptLockout.js.map +1 -1
- package/lib/module/screens/ContactDetails.js +1 -1
- package/lib/module/screens/ContactDetails.js.map +1 -1
- package/lib/module/screens/CredentialDetails.js +1 -1
- package/lib/module/screens/CredentialDetails.js.map +1 -1
- package/lib/module/screens/JSONDetails.js +6 -3
- package/lib/module/screens/JSONDetails.js.map +1 -1
- package/lib/module/screens/MobileVerifierLoading.js +4 -3
- package/lib/module/screens/MobileVerifierLoading.js.map +1 -1
- package/lib/module/screens/PINCreate.js +3 -10
- package/lib/module/screens/PINCreate.js.map +1 -1
- package/lib/module/screens/WhatAreContacts.js +3 -2
- package/lib/module/screens/WhatAreContacts.js.map +1 -1
- package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +57 -61
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/AttemptLockout.d.ts.map +1 -1
- package/lib/typescript/src/screens/JSONDetails.d.ts.map +1 -1
- package/lib/typescript/src/screens/MobileVerifierLoading.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINCreate.d.ts.map +1 -1
- package/lib/typescript/src/screens/WhatAreContacts.d.ts.map +1 -1
- package/lib/typescript/src/types/navigators.d.ts +1 -1
- package/lib/typescript/src/types/navigators.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/App.tsx +0 -79
- package/src/animated-components.ts +0 -30
- package/src/assets/fonts/MaterialIcons.ttf +0 -0
- package/src/assets/icons/code.svg +0 -4
- package/src/assets/icons/large-arrow.svg +0 -5
- package/src/assets/icons/pencil.svg +0 -15
- package/src/assets/icons/trash.svg +0 -31
- package/src/assets/img/Artwork_1024x1024.png +0 -0
- package/src/assets/img/HistoryCardAcceptedIcon.svg +0 -4
- package/src/assets/img/HistoryCardExpiredIcon.svg +0 -4
- package/src/assets/img/HistoryCardRevokedIcon.svg +0 -4
- package/src/assets/img/HistoryInformationSentIcon.svg +0 -4
- package/src/assets/img/HistoryPinUpdatedIcon.svg +0 -4
- package/src/assets/img/IconChevronRight.svg +0 -5
- package/src/assets/img/activity-indicator-circle.svg +0 -90
- package/src/assets/img/app-lockout.svg +0 -1
- package/src/assets/img/biometrics.svg +0 -74
- package/src/assets/img/chat-loading.svg +0 -1
- package/src/assets/img/check-in-circle.svg +0 -18
- package/src/assets/img/connection-pending.svg +0 -112
- package/src/assets/img/contact-book.svg +0 -21
- package/src/assets/img/credential-card.svg +0 -18
- package/src/assets/img/credential-declined.svg +0 -28
- package/src/assets/img/credential-in-hand.svg +0 -48
- package/src/assets/img/credential-list.svg +0 -60
- package/src/assets/img/credential-pending.svg +0 -96
- package/src/assets/img/credential-success.svg +0 -48
- package/src/assets/img/delete-notification.svg +0 -1
- package/src/assets/img/empty-wallet.svg +0 -23
- package/src/assets/img/error-filled.svg +0 -12
- package/src/assets/img/exclamation-mark.svg +0 -17
- package/src/assets/img/home-center-img.svg +0 -71
- package/src/assets/img/icon-credential-offer-dark.svg +0 -7
- package/src/assets/img/icon-credential-offer-light.svg +0 -7
- package/src/assets/img/icon-info-recieved-dark.svg +0 -8
- package/src/assets/img/icon-info-recieved-light.svg +0 -8
- package/src/assets/img/icon-info-sent-dark.svg +0 -8
- package/src/assets/img/icon-info-sent-light.svg +0 -8
- package/src/assets/img/icon-proof-request-dark.svg +0 -11
- package/src/assets/img/icon-proof-request-light.svg +0 -11
- package/src/assets/img/information-received.svg +0 -1
- package/src/assets/img/logo-large.png +0 -0
- package/src/assets/img/logo-large@2x.png +0 -0
- package/src/assets/img/logo-large@3x.png +0 -0
- package/src/assets/img/logo.svg +0 -15
- package/src/assets/img/message-text-icon-outline.svg +0 -1
- package/src/assets/img/message-text-icon.svg +0 -1
- package/src/assets/img/no_information_shared.svg +0 -36
- package/src/assets/img/preface.svg +0 -15
- package/src/assets/img/proof-declined.svg +0 -66
- package/src/assets/img/proof-pending.svg +0 -61
- package/src/assets/img/proof-success.svg +0 -72
- package/src/assets/img/push-notifications.svg +0 -1
- package/src/assets/img/qrcode-scan-icon.svg +0 -1
- package/src/assets/img/scan-share.svg +0 -102
- package/src/assets/img/secure-check.svg +0 -4
- package/src/assets/img/secure-image.svg +0 -64
- package/src/assets/img/update-available.svg +0 -26
- package/src/assets/img/verifier-request-declined.svg +0 -34
- package/src/assets/img/wallet-back.svg +0 -20
- package/src/assets/img/wallet-front.svg +0 -32
- package/src/assets/img/wallet-icon-outline.svg +0 -1
- package/src/assets/img/wallet-icon.svg +0 -1
- package/src/assets/img/wallet.svg +0 -43
- package/src/assets/oca-bundles.json +0 -174
- package/src/components/animated/ButtonLoading.tsx +0 -32
- package/src/components/animated/ConnectionLoading.tsx +0 -53
- package/src/components/animated/CredentialAdded.tsx +0 -72
- package/src/components/animated/CredentialPending.tsx +0 -63
- package/src/components/animated/LoadingIndicator.tsx +0 -49
- package/src/components/animated/PresentationLoading.tsx +0 -52
- package/src/components/animated/RecordLoading.tsx +0 -75
- package/src/components/animated/SendingProof.tsx +0 -53
- package/src/components/animated/SentProof.tsx +0 -72
- package/src/components/buttons/Button-api.tsx +0 -46
- package/src/components/buttons/Button.tsx +0 -125
- package/src/components/buttons/HeaderHome.tsx +0 -25
- package/src/components/buttons/IconButton.tsx +0 -93
- package/src/components/buttons/InfoIcon.tsx +0 -35
- package/src/components/buttons/SettingsMenu.tsx +0 -26
- package/src/components/buttons/ToggleButton.tsx +0 -93
- package/src/components/buttons/index.ts +0 -4
- package/src/components/chat/ActionSlider.tsx +0 -104
- package/src/components/chat/ChatActions.tsx +0 -33
- package/src/components/chat/ChatBubble.tsx +0 -20
- package/src/components/chat/ChatEvent.tsx +0 -31
- package/src/components/chat/ChatMessage.tsx +0 -142
- package/src/components/chat/MessageInput.tsx +0 -46
- package/src/components/chat/index.ts +0 -4
- package/src/components/forms/WalletNameForm.tsx +0 -148
- package/src/components/index.ts +0 -4
- package/src/components/inputs/BiometryControl.tsx +0 -190
- package/src/components/inputs/BulletPoint.tsx +0 -32
- package/src/components/inputs/CheckBoxRow.tsx +0 -67
- package/src/components/inputs/InlineErrorText.tsx +0 -60
- package/src/components/inputs/LimitedTextInput.tsx +0 -71
- package/src/components/inputs/PINInput.tsx +0 -175
- package/src/components/inputs/SingleSelectBlock.tsx +0 -53
- package/src/components/listItems/ContactCredentialListItem.tsx +0 -79
- package/src/components/listItems/ContactListItem.tsx +0 -121
- package/src/components/listItems/NotificationListItem.tsx +0 -514
- package/src/components/misc/AvatarView.tsx +0 -33
- package/src/components/misc/CardWatermark.tsx +0 -52
- package/src/components/misc/ConnectionAlert.tsx +0 -123
- package/src/components/misc/ConnectionImage.tsx +0 -45
- package/src/components/misc/ContentGradient.tsx +0 -40
- package/src/components/misc/CredentialCard.tsx +0 -161
- package/src/components/misc/CredentialCard10.tsx +0 -329
- package/src/components/misc/CredentialCard11.tsx +0 -701
- package/src/components/misc/CredentialCard11ActionFooter.tsx +0 -55
- package/src/components/misc/CredentialCard11Issuer.tsx +0 -74
- package/src/components/misc/CredentialCard11Logo.tsx +0 -61
- package/src/components/misc/EmptyList.tsx +0 -27
- package/src/components/misc/EmptyListContacts.tsx +0 -55
- package/src/components/misc/ErrorBoundary.tsx +0 -200
- package/src/components/misc/FauxHeader.tsx +0 -75
- package/src/components/misc/InfoBox.tsx +0 -283
- package/src/components/misc/NoNewUpdates.tsx +0 -38
- package/src/components/misc/PINHeader.tsx +0 -25
- package/src/components/misc/PINValidationHelper.tsx +0 -48
- package/src/components/misc/Pagination.tsx +0 -114
- package/src/components/misc/QRRenderer.tsx +0 -53
- package/src/components/misc/QRScanner.tsx +0 -395
- package/src/components/misc/QRScannerTorch.tsx +0 -74
- package/src/components/misc/ScanCamera.tsx +0 -86
- package/src/components/misc/ScanTab.tsx +0 -45
- package/src/components/misc/SharedProofData.tsx +0 -98
- package/src/components/misc/UnorderedList.tsx +0 -28
- package/src/components/misc/VerifierCredentialCard.tsx +0 -378
- package/src/components/misc/index.ts +0 -2
- package/src/components/modals/AlertModal.tsx +0 -42
- package/src/components/modals/AppGuideModal.tsx +0 -142
- package/src/components/modals/CameraDisclosureModal.tsx +0 -126
- package/src/components/modals/CommonRemoveModal.tsx +0 -337
- package/src/components/modals/DeveloperModal.tsx +0 -32
- package/src/components/modals/DismissiblePopupModal.tsx +0 -169
- package/src/components/modals/ErrorModal.tsx +0 -107
- package/src/components/modals/ImageModal.tsx +0 -80
- package/src/components/modals/NetInfoModal.tsx +0 -35
- package/src/components/modals/PopupModal.tsx +0 -56
- package/src/components/modals/ProofCancelModal.tsx +0 -79
- package/src/components/modals/SafeAreaModal.tsx +0 -17
- package/src/components/record/Record.tsx +0 -100
- package/src/components/record/RecordBinaryField.tsx +0 -55
- package/src/components/record/RecordDateIntField.tsx +0 -63
- package/src/components/record/RecordField.tsx +0 -154
- package/src/components/record/RecordFooter.tsx +0 -17
- package/src/components/record/RecordHeader.tsx +0 -17
- package/src/components/record/RecordRemove.tsx +0 -66
- package/src/components/texts/HeaderTitle.tsx +0 -25
- package/src/components/texts/HighlightTextBox.tsx +0 -41
- package/src/components/texts/InfoTextBox.tsx +0 -129
- package/src/components/texts/Link.tsx +0 -41
- package/src/components/texts/Text.tsx +0 -21
- package/src/components/texts/ThemedText.tsx +0 -24
- package/src/components/toast/BaseToast.tsx +0 -128
- package/src/components/toast/ToastConfig.tsx +0 -21
- package/src/components/tour/AttachTourStep.tsx +0 -73
- package/src/components/tour/CredentialOfferTourSteps.tsx +0 -41
- package/src/components/tour/CredentialsTourSteps.tsx +0 -41
- package/src/components/tour/HomeTourSteps.tsx +0 -104
- package/src/components/tour/ProofRequestTourSteps.tsx +0 -41
- package/src/components/tour/SpotCutout.tsx +0 -65
- package/src/components/tour/TourBox.tsx +0 -255
- package/src/components/tour/TourOverlay.tsx +0 -134
- package/src/components/views/Banner.tsx +0 -181
- package/src/components/views/CredentialCardLogo.tsx +0 -77
- package/src/components/views/CredentialDetailPrimaryHeader.tsx +0 -107
- package/src/components/views/CredentialDetailSecondaryHeader.tsx +0 -60
- package/src/components/views/HeaderWithBanner.tsx +0 -17
- package/src/components/views/HomeFooterView.tsx +0 -110
- package/src/components/views/HomeHeaderView.tsx +0 -12
- package/src/components/views/KeyboardView.tsx +0 -41
- package/src/components/views/LoadingPlaceholder.tsx +0 -168
- package/src/components/views/LoadingView.tsx +0 -29
- package/src/components/views/ProgressBar.tsx +0 -53
- package/src/components/views/PushNotificationsContent.tsx +0 -51
- package/src/components/views/PushNotificationsDisabledContent.tsx +0 -47
- package/src/configs/ledgers/indy/index.ts +0 -8
- package/src/configs/ledgers/indy/ledgers.json +0 -51
- package/src/constants.ts +0 -107
- package/src/container-api.ts +0 -247
- package/src/container-impl.ts +0 -243
- package/src/contexts/activity.tsx +0 -145
- package/src/contexts/animated-components.ts +0 -9
- package/src/contexts/auth.tsx +0 -240
- package/src/contexts/index.ts +0 -3
- package/src/contexts/navigation.tsx +0 -19
- package/src/contexts/network.tsx +0 -125
- package/src/contexts/reducers/index.ts +0 -3
- package/src/contexts/reducers/store.ts +0 -754
- package/src/contexts/store.tsx +0 -103
- package/src/contexts/theme.tsx +0 -51
- package/src/contexts/tour/tour-context.tsx +0 -160
- package/src/contexts/tour/tour-provider.tsx +0 -160
- package/src/hooks/bundle-resolver.ts +0 -95
- package/src/hooks/chat-messages.tsx +0 -263
- package/src/hooks/connections.ts +0 -37
- package/src/hooks/credential-card-styles.ts +0 -144
- package/src/hooks/credentials.ts +0 -11
- package/src/hooks/deep-links.ts +0 -49
- package/src/hooks/developer-mode.ts +0 -25
- package/src/hooks/lockout.ts +0 -77
- package/src/hooks/notifications.ts +0 -108
- package/src/hooks/oob.ts +0 -17
- package/src/hooks/proof-request-templates.ts +0 -40
- package/src/hooks/proofs.ts +0 -32
- package/src/hooks/screen-capture.ts +0 -52
- package/src/hooks/useBifoldAgentSetup.ts +0 -169
- package/src/hooks/useOnboardingState.ts +0 -53
- package/src/hooks/usePINValidation.ts +0 -98
- package/src/index.ts +0 -239
- package/src/layout/ScreenLayout.tsx +0 -53
- package/src/localization/en/en.json +0 -951
- package/src/localization/en/index.ts +0 -3
- package/src/localization/fr/fr.json +0 -933
- package/src/localization/fr/index.ts +0 -3
- package/src/localization/index.ts +0 -66
- package/src/localization/pt-br/index.ts +0 -3
- package/src/localization/pt-br/pt-br.json +0 -911
- package/src/modules/history/context/historyManager.tsx +0 -247
- package/src/modules/history/index.ts +0 -2
- package/src/modules/history/navigation/HistoryStack.tsx +0 -29
- package/src/modules/history/services/queue.service.tsx +0 -31
- package/src/modules/history/types/index.ts +0 -92
- package/src/modules/history/ui/HistoryPage.tsx +0 -133
- package/src/modules/history/ui/HistorySettings.tsx +0 -183
- package/src/modules/history/ui/assets/img/HistoryCardAcceptedIcon.svg +0 -4
- package/src/modules/history/ui/assets/img/HistoryCardExpiredIcon.svg +0 -4
- package/src/modules/history/ui/assets/img/HistoryCardRevokedIcon.svg +0 -4
- package/src/modules/history/ui/assets/img/HistoryInformationSentIcon.svg +0 -4
- package/src/modules/history/ui/assets/img/HistoryPinUpdatedIcon.svg +0 -4
- package/src/modules/history/ui/assets/img/IconChevronRight.svg +0 -3
- package/src/modules/history/ui/components/BulletPoint.tsx +0 -49
- package/src/modules/history/ui/components/HistoryListItem.tsx +0 -251
- package/src/modules/history/ui/components/HistoryMenu.tsx +0 -25
- package/src/modules/history/ui/components/SingleSelectBlock.tsx +0 -72
- package/src/modules/openid/components/CredentialRowCard.tsx +0 -64
- package/src/modules/openid/components/OpenIDCredentialCard.tsx +0 -276
- package/src/modules/openid/context/OpenIDCredentialRecordProvider.tsx +0 -296
- package/src/modules/openid/display.tsx +0 -467
- package/src/modules/openid/displayProof.tsx +0 -86
- package/src/modules/openid/hooks/openid.tsx +0 -111
- package/src/modules/openid/metadata.tsx +0 -59
- package/src/modules/openid/offerResolve.tsx +0 -281
- package/src/modules/openid/resolverProof.tsx +0 -286
- package/src/modules/openid/screens/OpenIDCredentialDetails.tsx +0 -214
- package/src/modules/openid/screens/OpenIDCredentialOffer.tsx +0 -192
- package/src/modules/openid/screens/OpenIDProofChangeCredential.tsx +0 -133
- package/src/modules/openid/screens/OpenIDProofPresentation.tsx +0 -423
- package/src/modules/openid/types.tsx +0 -111
- package/src/modules/openid/utils/utils.tsx +0 -119
- package/src/navigators/ConnectStack.tsx +0 -68
- package/src/navigators/ContactStack.tsx +0 -91
- package/src/navigators/CredentialStack.tsx +0 -48
- package/src/navigators/DeliveryStack.tsx +0 -76
- package/src/navigators/HomeStack.tsx +0 -37
- package/src/navigators/MainStack.tsx +0 -146
- package/src/navigators/NotificationStack.tsx +0 -56
- package/src/navigators/OnboardingScreens.ts +0 -142
- package/src/navigators/OnboardingStack.tsx +0 -205
- package/src/navigators/ProofRequestStack.tsx +0 -113
- package/src/navigators/RootStack.tsx +0 -71
- package/src/navigators/SettingStack.tsx +0 -174
- package/src/navigators/TabStack.tsx +0 -304
- package/src/navigators/defaultLayoutOptions.tsx +0 -17
- package/src/navigators/defaultStackOptions.tsx +0 -102
- package/src/navigators/index.ts +0 -27
- package/src/onboarding.ts +0 -90
- package/src/screens/AttemptLockout.tsx +0 -153
- package/src/screens/AutoLock.tsx +0 -140
- package/src/screens/Biometry.tsx +0 -54
- package/src/screens/Chat.tsx +0 -141
- package/src/screens/ConfigureMediator.tsx +0 -160
- package/src/screens/Connection.tsx +0 -394
- package/src/screens/ContactDetails.tsx +0 -350
- package/src/screens/CredentialDetails.tsx +0 -473
- package/src/screens/CredentialOffer.tsx +0 -334
- package/src/screens/CredentialOfferAccept.tsx +0 -189
- package/src/screens/DataRetention.tsx +0 -91
- package/src/screens/Developer.tsx +0 -289
- package/src/screens/Home.tsx +0 -173
- package/src/screens/JSONDetails.tsx +0 -102
- package/src/screens/Language.tsx +0 -97
- package/src/screens/ListContacts.tsx +0 -112
- package/src/screens/ListCredentials.tsx +0 -135
- package/src/screens/ListProofRequests.tsx +0 -148
- package/src/screens/MobileVerifierLoading.tsx +0 -106
- package/src/screens/NameWallet.tsx +0 -9
- package/src/screens/Onboarding.tsx +0 -162
- package/src/screens/OnboardingPages.tsx +0 -160
- package/src/screens/PINChange.tsx +0 -249
- package/src/screens/PINCreate.tsx +0 -185
- package/src/screens/PINEnter.tsx +0 -432
- package/src/screens/PINExplainer.tsx +0 -85
- package/src/screens/PINVerify.tsx +0 -195
- package/src/screens/PasteUrl.tsx +0 -140
- package/src/screens/Preface.tsx +0 -78
- package/src/screens/ProofChangeCredential.tsx +0 -179
- package/src/screens/ProofDetails.tsx +0 -348
- package/src/screens/ProofRequest.tsx +0 -999
- package/src/screens/ProofRequestAccept.tsx +0 -133
- package/src/screens/ProofRequestDetails.tsx +0 -270
- package/src/screens/ProofRequestUsageHistory.tsx +0 -152
- package/src/screens/ProofRequesting.tsx +0 -245
- package/src/screens/PushNotifications.tsx +0 -59
- package/src/screens/RenameContact.tsx +0 -155
- package/src/screens/RenameWallet.tsx +0 -26
- package/src/screens/Scan.tsx +0 -145
- package/src/screens/ScanHelp.tsx +0 -48
- package/src/screens/Settings.tsx +0 -415
- package/src/screens/Splash.tsx +0 -80
- package/src/screens/Terms.tsx +0 -127
- package/src/screens/ToggleBiometry.tsx +0 -153
- package/src/screens/TogglePushNotifications.tsx +0 -118
- package/src/screens/Tours.tsx +0 -93
- package/src/screens/UpdateAvailable.tsx +0 -119
- package/src/screens/WhatAreContacts.tsx +0 -71
- package/src/services/bifoldLogger.ts +0 -3
- package/src/services/keychain.ts +0 -184
- package/src/services/logger.ts +0 -89
- package/src/services/storage.ts +0 -136
- package/src/theme-builder.ts +0 -157
- package/src/theme.interface.ts +0 -580
- package/src/theme.ts +0 -1346
- package/src/types/attempt-lockout-config.ts +0 -8
- package/src/types/attestation.ts +0 -17
- package/src/types/chat.ts +0 -4
- package/src/types/config.ts +0 -64
- package/src/types/contact-details.ts +0 -5
- package/src/types/credential-list-footer.ts +0 -3
- package/src/types/credential-status.ts +0 -3
- package/src/types/credentials.ts +0 -7
- package/src/types/decline.ts +0 -5
- package/src/types/error.ts +0 -40
- package/src/types/fn.ts +0 -2
- package/src/types/genesis.ts +0 -35
- package/src/types/index.ts +0 -2
- package/src/types/metadata.ts +0 -16
- package/src/types/navigators.ts +0 -239
- package/src/types/notification.ts +0 -24
- package/src/types/permissions.ts +0 -2
- package/src/types/proof-items.ts +0 -32
- package/src/types/react-i18next.d.ts +0 -10
- package/src/types/remove.ts +0 -8
- package/src/types/security.ts +0 -32
- package/src/types/settings.ts +0 -28
- package/src/types/state.ts +0 -97
- package/src/types/tour.ts +0 -20
- package/src/types/version-check.ts +0 -18
- package/src/utils/PINValidation.ts +0 -98
- package/src/utils/agent.ts +0 -128
- package/src/utils/anonCredsProofRequestMapper.ts +0 -205
- package/src/utils/contacts.ts +0 -59
- package/src/utils/cred-def.ts +0 -33
- package/src/utils/credential.ts +0 -37
- package/src/utils/crypto.ts +0 -12
- package/src/utils/fileCache.ts +0 -152
- package/src/utils/helpers.ts +0 -1292
- package/src/utils/ledger.ts +0 -212
- package/src/utils/luminance.ts +0 -40
- package/src/utils/mediatorhelpers.ts +0 -71
- package/src/utils/migration.ts +0 -40
- package/src/utils/network.tsx +0 -55
- package/src/utils/oca.ts +0 -173
- package/src/utils/parsers.tsx +0 -111
- package/src/utils/proofBundle.ts +0 -220
- package/src/utils/schema.ts +0 -28
- package/src/utils/testable.ts +0 -17
package/src/theme.ts
DELETED
|
@@ -1,1346 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, ViewStyle } from 'react-native'
|
|
2
|
-
import { SvgProps } from 'react-native-svg'
|
|
3
|
-
|
|
4
|
-
import Arrow from './assets/icons/large-arrow.svg'
|
|
5
|
-
import IconDelete from './assets/icons/trash.svg'
|
|
6
|
-
import IconEdit from './assets/icons/pencil.svg'
|
|
7
|
-
import IconCode from './assets/icons/code.svg'
|
|
8
|
-
import ActivityIndicator from './assets/img/activity-indicator-circle.svg'
|
|
9
|
-
import AppLockout from './assets/img/app-lockout.svg'
|
|
10
|
-
import Biometrics from './assets/img/biometrics.svg'
|
|
11
|
-
import ContactBook from './assets/img/contact-book.svg'
|
|
12
|
-
import CredentialDeclined from './assets/img/credential-declined.svg'
|
|
13
|
-
import DeleteNotification from './assets/img/delete-notification.svg'
|
|
14
|
-
import EmptyWallet from './assets/img/empty-wallet.svg'
|
|
15
|
-
import IconCredentialOfferDark from './assets/img/icon-credential-offer-dark.svg'
|
|
16
|
-
import IconCredentialOfferLight from './assets/img/icon-credential-offer-light.svg'
|
|
17
|
-
import IconInfoRecievedDark from './assets/img/icon-info-recieved-dark.svg'
|
|
18
|
-
import IconInfoRecievedLight from './assets/img/icon-info-recieved-light.svg'
|
|
19
|
-
import IconInfoSentDark from './assets/img/icon-info-sent-dark.svg'
|
|
20
|
-
import IconInfoSentLight from './assets/img/icon-info-sent-light.svg'
|
|
21
|
-
import IconProofRequestDark from './assets/img/icon-proof-request-dark.svg'
|
|
22
|
-
import IconProofRequestLight from './assets/img/icon-proof-request-light.svg'
|
|
23
|
-
import Logo from './assets/img/logo.svg'
|
|
24
|
-
import NoInfoShared from './assets/img/no_information_shared.svg'
|
|
25
|
-
import Preface from './assets/img/preface.svg'
|
|
26
|
-
import UpdateAvailable from './assets/img/update-available.svg'
|
|
27
|
-
import ProofRequestDeclined from './assets/img/proof-declined.svg'
|
|
28
|
-
import VerifierRequestDeclined from './assets/img/verifier-request-declined.svg'
|
|
29
|
-
import Wallet from './assets/img/wallet.svg'
|
|
30
|
-
import CheckInCircle from './assets/img/check-in-circle.svg'
|
|
31
|
-
import CredentialCard from './assets/img/credential-card.svg'
|
|
32
|
-
import WalletBack from './assets/img/wallet-back.svg'
|
|
33
|
-
import WalletFront from './assets/img/wallet-front.svg'
|
|
34
|
-
import CredentialInHand from './assets/img/credential-in-hand.svg'
|
|
35
|
-
import CredentialList from './assets/img/credential-list.svg'
|
|
36
|
-
import ScanShare from './assets/img/scan-share.svg'
|
|
37
|
-
import SecureCheck from './assets/img/secure-check.svg'
|
|
38
|
-
import SecureImage from './assets/img/secure-image.svg'
|
|
39
|
-
import InformationReceived from './assets/img/information-received.svg'
|
|
40
|
-
import PushNotificationImg from './assets/img/push-notifications.svg'
|
|
41
|
-
import ChatLoading from './assets/img/chat-loading.svg'
|
|
42
|
-
import HistoryCardAcceptedIcon from './assets/img/HistoryCardAcceptedIcon.svg'
|
|
43
|
-
import HistoryCardExpiredIcon from './assets/img/HistoryCardExpiredIcon.svg'
|
|
44
|
-
import HistoryCardRevokedIcon from './assets/img/HistoryCardRevokedIcon.svg'
|
|
45
|
-
import HistoryInformationSentIcon from './assets/img/HistoryInformationSentIcon.svg'
|
|
46
|
-
import HistoryPinUpdatedIcon from './assets/img/HistoryPinUpdatedIcon.svg'
|
|
47
|
-
import IconChevronRight from './assets/img/IconChevronRight.svg'
|
|
48
|
-
import HomeCenterImg from './assets/img/home-center-img.svg'
|
|
49
|
-
import IconWarning from './assets/img/exclamation-mark.svg'
|
|
50
|
-
import IconError from './assets/img/error-filled.svg'
|
|
51
|
-
import TabOneFocusedIcon from './assets/img/message-text-icon.svg'
|
|
52
|
-
import TabOneIcon from './assets/img/message-text-icon-outline.svg'
|
|
53
|
-
import TabTwoIcon from './assets/img/qrcode-scan-icon.svg'
|
|
54
|
-
import TabThreeFocusedIcon from './assets/img/wallet-icon.svg'
|
|
55
|
-
import TabThreeIcon from './assets/img/wallet-icon-outline.svg'
|
|
56
|
-
import React from 'react'
|
|
57
|
-
import {
|
|
58
|
-
IChatTheme,
|
|
59
|
-
IHomeTheme,
|
|
60
|
-
IInputs,
|
|
61
|
-
ISettingsTheme,
|
|
62
|
-
ITabTheme,
|
|
63
|
-
ITextTheme,
|
|
64
|
-
IOnboardingTheme,
|
|
65
|
-
IDialogTheme,
|
|
66
|
-
ILoadingTheme,
|
|
67
|
-
IPINInputTheme,
|
|
68
|
-
IInlineInputMessage,
|
|
69
|
-
IButtons,
|
|
70
|
-
IListItems,
|
|
71
|
-
} from './theme.interface'
|
|
72
|
-
|
|
73
|
-
export interface ISVGAssets {
|
|
74
|
-
activityIndicator: React.FC<SvgProps>
|
|
75
|
-
appLockout: React.FC<SvgProps>
|
|
76
|
-
biometrics: React.FC<SvgProps>
|
|
77
|
-
contactBook: React.FC<SvgProps>
|
|
78
|
-
credentialDeclined: React.FC<SvgProps>
|
|
79
|
-
deleteNotification: React.FC<SvgProps>
|
|
80
|
-
emptyWallet: React.FC<SvgProps>
|
|
81
|
-
logo: React.FC<SvgProps>
|
|
82
|
-
proofRequestDeclined: React.FC<SvgProps>
|
|
83
|
-
arrow: React.FC<SvgProps>
|
|
84
|
-
iconCredentialOfferDark: React.FC<SvgProps>
|
|
85
|
-
iconCredentialOfferLight: React.FC<SvgProps>
|
|
86
|
-
iconInfoRecievedDark: React.FC<SvgProps>
|
|
87
|
-
iconInfoRecievedLight: React.FC<SvgProps>
|
|
88
|
-
iconInfoSentDark: React.FC<SvgProps>
|
|
89
|
-
iconInfoSentLight: React.FC<SvgProps>
|
|
90
|
-
iconProofRequestDark: React.FC<SvgProps>
|
|
91
|
-
iconProofRequestLight: React.FC<SvgProps>
|
|
92
|
-
preface: React.FC<SvgProps>
|
|
93
|
-
updateAvailable: React.FC<SvgProps>
|
|
94
|
-
verifierRequestDeclined: React.FC<SvgProps>
|
|
95
|
-
noInfoShared: React.FC<SvgProps>
|
|
96
|
-
wallet: React.FC<SvgProps>
|
|
97
|
-
checkInCircle: React.FC<SvgProps>
|
|
98
|
-
credentialCard: React.FC<SvgProps>
|
|
99
|
-
walletBack: React.FC<SvgProps>
|
|
100
|
-
walletFront: React.FC<SvgProps>
|
|
101
|
-
credentialInHand: React.FC<SvgProps>
|
|
102
|
-
credentialList: React.FC<SvgProps>
|
|
103
|
-
scanShare: React.FC<SvgProps>
|
|
104
|
-
secureCheck: React.FC<SvgProps>
|
|
105
|
-
secureImage: React.FC<SvgProps>
|
|
106
|
-
informationReceived: React.FC<SvgProps>
|
|
107
|
-
pushNotificationImg: React.FC<SvgProps>
|
|
108
|
-
chatLoading: React.FC<SvgProps>
|
|
109
|
-
historyCardAcceptedIcon: React.FC<SvgProps>
|
|
110
|
-
historyCardDeclinedIcon: React.FC<SvgProps>
|
|
111
|
-
historyCardExpiredIcon: React.FC<SvgProps>
|
|
112
|
-
historyCardRemovedIcon: React.FC<SvgProps>
|
|
113
|
-
historyCardRevokedIcon: React.FC<SvgProps>
|
|
114
|
-
historyCardUpdatesIcon: React.FC<SvgProps>
|
|
115
|
-
historyPinUpdatedIcon: React.FC<SvgProps>
|
|
116
|
-
historyInformationSentIcon: React.FC<SvgProps>
|
|
117
|
-
historyInformationNotSentIcon: React.FC<SvgProps>
|
|
118
|
-
historyConnectionIcon: React.FC<SvgProps>
|
|
119
|
-
historyConnectionRemovedIcon: React.FC<SvgProps>
|
|
120
|
-
historyActivateBiometryIcon: React.FC<SvgProps>
|
|
121
|
-
historyDeactivateBiometryIcon: React.FC<SvgProps>
|
|
122
|
-
iconChevronRight: React.FC<SvgProps>
|
|
123
|
-
homeCenterImg: React.FC<SvgProps>
|
|
124
|
-
iconDelete: React.FC<SvgProps>
|
|
125
|
-
iconEdit: React.FC<SvgProps>
|
|
126
|
-
iconWarning: React.FC<SvgProps>
|
|
127
|
-
iconError: React.FC<SvgProps>
|
|
128
|
-
iconCode: React.FC<SvgProps>
|
|
129
|
-
tabOneIcon: React.FC<SvgProps>
|
|
130
|
-
tabOneFocusedIcon: React.FC<SvgProps>
|
|
131
|
-
tabTwoIcon: React.FC<SvgProps>
|
|
132
|
-
tabThreeIcon: React.FC<SvgProps>
|
|
133
|
-
tabThreeFocusedIcon: React.FC<SvgProps>
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface ISpacing {
|
|
137
|
-
xs: number
|
|
138
|
-
sm: number
|
|
139
|
-
md: number
|
|
140
|
-
lg: number
|
|
141
|
-
xl: number
|
|
142
|
-
xxl: number
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface IFontAttributes {
|
|
146
|
-
fontFamily?: string
|
|
147
|
-
fontStyle?: 'normal' | 'italic'
|
|
148
|
-
fontSize: number
|
|
149
|
-
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
|
|
150
|
-
color: string
|
|
151
|
-
lineHeight?: number
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface IInputAttributes {
|
|
155
|
-
padding?: number
|
|
156
|
-
borderRadius?: number
|
|
157
|
-
fontSize?: number
|
|
158
|
-
backgroundColor?: string
|
|
159
|
-
color?: string
|
|
160
|
-
borderWidth?: number
|
|
161
|
-
borderColor?: string
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export interface ISemanticColors {
|
|
165
|
-
error: string
|
|
166
|
-
success: string
|
|
167
|
-
focus: string
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface INotificationColors {
|
|
171
|
-
success: string
|
|
172
|
-
successBorder: string
|
|
173
|
-
successIcon: string
|
|
174
|
-
successText: string
|
|
175
|
-
info: string
|
|
176
|
-
infoBorder: string
|
|
177
|
-
infoIcon: string
|
|
178
|
-
infoText: string
|
|
179
|
-
warn: string
|
|
180
|
-
warnBorder: string
|
|
181
|
-
warnIcon: string
|
|
182
|
-
warnText: string
|
|
183
|
-
error: string
|
|
184
|
-
errorBorder: string
|
|
185
|
-
errorIcon: string
|
|
186
|
-
errorText: string
|
|
187
|
-
popupOverlay: string
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export interface IGrayscaleColors {
|
|
191
|
-
black: string
|
|
192
|
-
darkGrey: string
|
|
193
|
-
mediumGrey: string
|
|
194
|
-
lightGrey: string
|
|
195
|
-
veryLightGrey: string
|
|
196
|
-
white: string
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface IErrorColors {
|
|
200
|
-
error: string
|
|
201
|
-
warning: string
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface IColorPalette {
|
|
205
|
-
brand: IBrandColors
|
|
206
|
-
semantic: ISemanticColors
|
|
207
|
-
notification: INotificationColors
|
|
208
|
-
grayscale: IGrayscaleColors
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface IAssets {
|
|
212
|
-
svg: ISVGAssets
|
|
213
|
-
img: {
|
|
214
|
-
logoPrimary: any
|
|
215
|
-
logoSecondary: any
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export const borderRadius = 4
|
|
220
|
-
export const heavyOpacity = 0.7
|
|
221
|
-
export const mediumOpacity = 0.5
|
|
222
|
-
export const lightOpacity = 0.35
|
|
223
|
-
export const zeroOpacity = 0.0
|
|
224
|
-
export const borderWidth = 2
|
|
225
|
-
export const maxFontSizeMultiplier = 2
|
|
226
|
-
|
|
227
|
-
const Spacing: ISpacing = {
|
|
228
|
-
xs: 4,
|
|
229
|
-
sm: 8,
|
|
230
|
-
md: 16,
|
|
231
|
-
lg: 24,
|
|
232
|
-
xl: 32,
|
|
233
|
-
xxl: 40,
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
const GrayscaleColors: IGrayscaleColors = {
|
|
237
|
-
black: '#000000',
|
|
238
|
-
darkGrey: '#313132',
|
|
239
|
-
mediumGrey: '#606060',
|
|
240
|
-
lightGrey: '#D3D3D3',
|
|
241
|
-
veryLightGrey: '#F2F2F2',
|
|
242
|
-
white: '#FFFFFF',
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const InlineErrorMessageColors: IErrorColors = {
|
|
246
|
-
error: '#ff0000',
|
|
247
|
-
warning: '#ff9000',
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
const BrandColors = {
|
|
251
|
-
primary: '#42803E',
|
|
252
|
-
primaryDisabled: `rgba(53, 130, 63, ${lightOpacity})`,
|
|
253
|
-
secondary: '#FFFFFFFF',
|
|
254
|
-
secondaryDisabled: `rgba(53, 130, 63, ${heavyOpacity})`,
|
|
255
|
-
tertiary: '#FFFFFFFF',
|
|
256
|
-
tertiaryDisabled: `rgba(53, 130, 63, ${heavyOpacity})`,
|
|
257
|
-
primaryLight: `rgba(53, 130, 63, ${lightOpacity})`,
|
|
258
|
-
highlight: '#FCBA19',
|
|
259
|
-
primaryBackground: '#000000',
|
|
260
|
-
secondaryBackground: '#313132',
|
|
261
|
-
tertiaryBackground: '#313132',
|
|
262
|
-
modalPrimary: '#42803E',
|
|
263
|
-
modalSecondary: '#FFFFFFFF',
|
|
264
|
-
modalTertiary: '#FFFFFFFF',
|
|
265
|
-
modalPrimaryBackground: '#000000',
|
|
266
|
-
modalSecondaryBackground: '#313132',
|
|
267
|
-
modalTertiaryBackground: '#313132',
|
|
268
|
-
modalIcon: GrayscaleColors.white,
|
|
269
|
-
unorderedList: GrayscaleColors.white,
|
|
270
|
-
unorderedListModal: GrayscaleColors.white,
|
|
271
|
-
link: '#42803E',
|
|
272
|
-
credentialLink: '#42803E',
|
|
273
|
-
text: GrayscaleColors.white,
|
|
274
|
-
icon: GrayscaleColors.white,
|
|
275
|
-
headerIcon: GrayscaleColors.white,
|
|
276
|
-
headerText: GrayscaleColors.white,
|
|
277
|
-
buttonText: GrayscaleColors.white,
|
|
278
|
-
tabBarInactive: GrayscaleColors.white,
|
|
279
|
-
inlineError: InlineErrorMessageColors.error,
|
|
280
|
-
inlineWarning: InlineErrorMessageColors.warning,
|
|
281
|
-
}
|
|
282
|
-
export type IBrandColors = typeof BrandColors
|
|
283
|
-
|
|
284
|
-
const SemanticColors: ISemanticColors = {
|
|
285
|
-
error: '#D8292F',
|
|
286
|
-
success: '#2E8540',
|
|
287
|
-
focus: '#3399FF',
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
const NotificationColors: INotificationColors = {
|
|
291
|
-
success: '#313132',
|
|
292
|
-
successBorder: '#2E8540',
|
|
293
|
-
successIcon: '#2E8540',
|
|
294
|
-
successText: '#FFFFFF',
|
|
295
|
-
info: '#313132',
|
|
296
|
-
infoBorder: '#0099FF',
|
|
297
|
-
infoIcon: '#0099FF',
|
|
298
|
-
infoText: '#FFFFFF',
|
|
299
|
-
warn: '#313132',
|
|
300
|
-
warnBorder: '#FCBA19',
|
|
301
|
-
warnIcon: '#FCBA19',
|
|
302
|
-
warnText: '#FFFFFF',
|
|
303
|
-
error: '#313132',
|
|
304
|
-
errorBorder: '#D8292F',
|
|
305
|
-
errorIcon: '#D8292F',
|
|
306
|
-
errorText: '#FFFFFF',
|
|
307
|
-
popupOverlay: `rgba(0, 0, 0, ${mediumOpacity})`,
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export const ColorPalette: IColorPalette = {
|
|
311
|
-
brand: BrandColors,
|
|
312
|
-
semantic: SemanticColors,
|
|
313
|
-
notification: NotificationColors,
|
|
314
|
-
grayscale: GrayscaleColors,
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Creates a text theme based on the provided color pallet.
|
|
319
|
-
*
|
|
320
|
-
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
321
|
-
* @returns {*} {ITextTheme} - The created text theme
|
|
322
|
-
*/
|
|
323
|
-
export function createTextTheme(theme: { ColorPalette: IColorPalette }): ITextTheme {
|
|
324
|
-
return StyleSheet.create({
|
|
325
|
-
headingOne: {
|
|
326
|
-
fontSize: 38,
|
|
327
|
-
fontWeight: 'bold',
|
|
328
|
-
color: theme.ColorPalette.brand.text,
|
|
329
|
-
},
|
|
330
|
-
headingTwo: {
|
|
331
|
-
fontSize: 32,
|
|
332
|
-
fontWeight: 'bold',
|
|
333
|
-
color: theme.ColorPalette.brand.text,
|
|
334
|
-
},
|
|
335
|
-
headingThree: {
|
|
336
|
-
fontSize: 26,
|
|
337
|
-
fontWeight: 'bold',
|
|
338
|
-
color: theme.ColorPalette.brand.text,
|
|
339
|
-
},
|
|
340
|
-
headingFour: {
|
|
341
|
-
fontSize: 21,
|
|
342
|
-
fontWeight: 'bold',
|
|
343
|
-
color: theme.ColorPalette.brand.text,
|
|
344
|
-
},
|
|
345
|
-
normal: {
|
|
346
|
-
fontSize: 18,
|
|
347
|
-
fontWeight: 'normal',
|
|
348
|
-
color: theme.ColorPalette.brand.text,
|
|
349
|
-
},
|
|
350
|
-
bold: {
|
|
351
|
-
fontSize: 18,
|
|
352
|
-
fontWeight: 'bold',
|
|
353
|
-
color: theme.ColorPalette.brand.text,
|
|
354
|
-
},
|
|
355
|
-
label: {
|
|
356
|
-
fontSize: 14,
|
|
357
|
-
fontWeight: 'bold',
|
|
358
|
-
color: theme.ColorPalette.brand.text,
|
|
359
|
-
},
|
|
360
|
-
labelTitle: {
|
|
361
|
-
fontSize: 16,
|
|
362
|
-
fontWeight: 'bold',
|
|
363
|
-
color: theme.ColorPalette.brand.text,
|
|
364
|
-
},
|
|
365
|
-
labelSubtitle: {
|
|
366
|
-
fontSize: 14,
|
|
367
|
-
fontWeight: 'normal',
|
|
368
|
-
color: theme.ColorPalette.brand.text,
|
|
369
|
-
},
|
|
370
|
-
labelText: {
|
|
371
|
-
fontSize: 10,
|
|
372
|
-
fontWeight: 'normal',
|
|
373
|
-
fontStyle: 'italic',
|
|
374
|
-
color: theme.ColorPalette.brand.text,
|
|
375
|
-
},
|
|
376
|
-
caption: {
|
|
377
|
-
fontSize: 14,
|
|
378
|
-
fontWeight: 'normal',
|
|
379
|
-
color: theme.ColorPalette.brand.text,
|
|
380
|
-
},
|
|
381
|
-
title: {
|
|
382
|
-
fontSize: 20,
|
|
383
|
-
fontWeight: 'bold',
|
|
384
|
-
color: theme.ColorPalette.brand.text,
|
|
385
|
-
},
|
|
386
|
-
headerTitle: {
|
|
387
|
-
fontSize: 28,
|
|
388
|
-
fontWeight: 'bold',
|
|
389
|
-
color: theme.ColorPalette.brand.headerText,
|
|
390
|
-
},
|
|
391
|
-
modalNormal: {
|
|
392
|
-
fontSize: 18,
|
|
393
|
-
fontWeight: 'normal',
|
|
394
|
-
color: theme.ColorPalette.grayscale.white,
|
|
395
|
-
},
|
|
396
|
-
modalTitle: {
|
|
397
|
-
fontSize: 24,
|
|
398
|
-
fontWeight: 'bold',
|
|
399
|
-
color: theme.ColorPalette.grayscale.white,
|
|
400
|
-
},
|
|
401
|
-
modalHeadingOne: {
|
|
402
|
-
fontSize: 38,
|
|
403
|
-
color: theme.ColorPalette.grayscale.white,
|
|
404
|
-
fontWeight: 'bold',
|
|
405
|
-
},
|
|
406
|
-
modalHeadingThree: {
|
|
407
|
-
fontSize: 26,
|
|
408
|
-
color: theme.ColorPalette.grayscale.white,
|
|
409
|
-
fontWeight: 'bold',
|
|
410
|
-
},
|
|
411
|
-
popupModalText: {
|
|
412
|
-
fontSize: 18,
|
|
413
|
-
fontWeight: 'normal',
|
|
414
|
-
color: theme.ColorPalette.grayscale.white,
|
|
415
|
-
},
|
|
416
|
-
settingsText: {
|
|
417
|
-
fontSize: 21,
|
|
418
|
-
fontWeight: 'normal',
|
|
419
|
-
color: theme.ColorPalette.brand.text,
|
|
420
|
-
},
|
|
421
|
-
inlineErrorText: {
|
|
422
|
-
fontSize: 16,
|
|
423
|
-
fontWeight: 'normal',
|
|
424
|
-
color: theme.ColorPalette.brand.inlineError,
|
|
425
|
-
},
|
|
426
|
-
inlineWarningText: {
|
|
427
|
-
fontSize: 16,
|
|
428
|
-
fontWeight: 'normal',
|
|
429
|
-
color: theme.ColorPalette.brand.inlineWarning,
|
|
430
|
-
},
|
|
431
|
-
})
|
|
432
|
-
}
|
|
433
|
-
export const TextTheme = createTextTheme({ ColorPalette })
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Creates a theme for inputs based on the provided color pallet and text theme.
|
|
437
|
-
*
|
|
438
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme; borderRadius: number }} theme - The theme object containing the color pallet, text theme, and border radius
|
|
439
|
-
* @returns {*} {IInputs} - The created inputs theme
|
|
440
|
-
*/
|
|
441
|
-
export function createInputsTheme(theme: {
|
|
442
|
-
ColorPalette: IColorPalette
|
|
443
|
-
TextTheme: ITextTheme
|
|
444
|
-
borderRadius: number
|
|
445
|
-
}): IInputs {
|
|
446
|
-
return StyleSheet.create({
|
|
447
|
-
label: {
|
|
448
|
-
...theme.TextTheme.label,
|
|
449
|
-
},
|
|
450
|
-
textInput: {
|
|
451
|
-
padding: 10,
|
|
452
|
-
borderRadius,
|
|
453
|
-
fontSize: 16,
|
|
454
|
-
backgroundColor: theme.ColorPalette.brand.primaryBackground,
|
|
455
|
-
color: theme.ColorPalette.notification.infoText,
|
|
456
|
-
borderWidth: 2,
|
|
457
|
-
borderColor: theme.ColorPalette.brand.secondary,
|
|
458
|
-
},
|
|
459
|
-
singleSelectText: {
|
|
460
|
-
...theme.TextTheme.normal,
|
|
461
|
-
},
|
|
462
|
-
singleSelectIcon: {
|
|
463
|
-
color: theme.ColorPalette.grayscale.white,
|
|
464
|
-
},
|
|
465
|
-
checkBoxColor: {
|
|
466
|
-
color: theme.ColorPalette.brand.primary,
|
|
467
|
-
},
|
|
468
|
-
checkBoxText: {
|
|
469
|
-
...theme.TextTheme.normal,
|
|
470
|
-
},
|
|
471
|
-
inputSelected: {
|
|
472
|
-
borderColor: theme.ColorPalette.brand.primary,
|
|
473
|
-
},
|
|
474
|
-
singleSelect: {
|
|
475
|
-
padding: 12,
|
|
476
|
-
borderRadius: theme.borderRadius * 2,
|
|
477
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
478
|
-
},
|
|
479
|
-
})
|
|
480
|
-
}
|
|
481
|
-
export const Inputs = createInputsTheme({ ColorPalette, TextTheme, borderRadius })
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Creates a theme for buttons based on the provided color pallet and text theme.
|
|
485
|
-
*
|
|
486
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
487
|
-
* @returns {*} {IButtons} - The created buttons theme
|
|
488
|
-
*/
|
|
489
|
-
export function createButtonsTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): IButtons {
|
|
490
|
-
const textStyles = StyleSheet.create({
|
|
491
|
-
criticalText: {
|
|
492
|
-
...theme.TextTheme.bold,
|
|
493
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
494
|
-
textAlign: 'center',
|
|
495
|
-
},
|
|
496
|
-
criticalTextDisabled: {
|
|
497
|
-
...theme.TextTheme.bold,
|
|
498
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
499
|
-
textAlign: 'center',
|
|
500
|
-
},
|
|
501
|
-
primaryText: {
|
|
502
|
-
...theme.TextTheme.bold,
|
|
503
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
504
|
-
textAlign: 'center',
|
|
505
|
-
},
|
|
506
|
-
primaryTextDisabled: {
|
|
507
|
-
...theme.TextTheme.bold,
|
|
508
|
-
textAlign: 'center',
|
|
509
|
-
},
|
|
510
|
-
secondaryText: {
|
|
511
|
-
...theme.TextTheme.bold,
|
|
512
|
-
color: theme.ColorPalette.brand.primary,
|
|
513
|
-
textAlign: 'center',
|
|
514
|
-
},
|
|
515
|
-
secondaryTextDisabled: {
|
|
516
|
-
...theme.TextTheme.bold,
|
|
517
|
-
color: theme.ColorPalette.brand.secondaryDisabled,
|
|
518
|
-
textAlign: 'center',
|
|
519
|
-
},
|
|
520
|
-
tertiaryText: {
|
|
521
|
-
...theme.TextTheme.bold,
|
|
522
|
-
color: theme.ColorPalette.brand.primary,
|
|
523
|
-
textAlign: 'center',
|
|
524
|
-
},
|
|
525
|
-
tertiaryTextDisabled: {
|
|
526
|
-
...theme.TextTheme.bold,
|
|
527
|
-
color: theme.ColorPalette.brand.tertiaryDisabled,
|
|
528
|
-
textAlign: 'center',
|
|
529
|
-
},
|
|
530
|
-
modalCriticalText: {
|
|
531
|
-
...theme.TextTheme.bold,
|
|
532
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
533
|
-
textAlign: 'center',
|
|
534
|
-
},
|
|
535
|
-
modalCriticalTextDisabled: {
|
|
536
|
-
...theme.TextTheme.bold,
|
|
537
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
538
|
-
textAlign: 'center',
|
|
539
|
-
},
|
|
540
|
-
modalPrimaryText: {
|
|
541
|
-
...theme.TextTheme.bold,
|
|
542
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
543
|
-
textAlign: 'center',
|
|
544
|
-
},
|
|
545
|
-
modalPrimaryTextDisabled: {
|
|
546
|
-
...theme.TextTheme.bold,
|
|
547
|
-
color: theme.ColorPalette.brand.buttonText,
|
|
548
|
-
textAlign: 'center',
|
|
549
|
-
},
|
|
550
|
-
modalSecondaryText: {
|
|
551
|
-
...theme.TextTheme.bold,
|
|
552
|
-
color: theme.ColorPalette.brand.modalPrimary,
|
|
553
|
-
textAlign: 'center',
|
|
554
|
-
},
|
|
555
|
-
modalSecondaryTextDisabled: {
|
|
556
|
-
...theme.TextTheme.bold,
|
|
557
|
-
color: theme.ColorPalette.brand.secondaryDisabled,
|
|
558
|
-
textAlign: 'center',
|
|
559
|
-
},
|
|
560
|
-
modalTertiaryText: {
|
|
561
|
-
...theme.TextTheme.bold,
|
|
562
|
-
color: theme.ColorPalette.brand.modalPrimary,
|
|
563
|
-
textAlign: 'center',
|
|
564
|
-
},
|
|
565
|
-
modalTertiaryTextDisabled: {
|
|
566
|
-
...theme.TextTheme.bold,
|
|
567
|
-
color: theme.ColorPalette.brand.tertiaryDisabled,
|
|
568
|
-
textAlign: 'center',
|
|
569
|
-
},
|
|
570
|
-
})
|
|
571
|
-
|
|
572
|
-
const viewStyles = StyleSheet.create({
|
|
573
|
-
critical: {
|
|
574
|
-
padding: 16,
|
|
575
|
-
borderRadius: 4,
|
|
576
|
-
backgroundColor: theme.ColorPalette.semantic.error,
|
|
577
|
-
},
|
|
578
|
-
criticalDisabled: {
|
|
579
|
-
padding: 16,
|
|
580
|
-
borderRadius: 4,
|
|
581
|
-
backgroundColor: `rgba(216, 41, 47, ${lightOpacity})`,
|
|
582
|
-
},
|
|
583
|
-
primary: {
|
|
584
|
-
padding: 16,
|
|
585
|
-
borderRadius: 4,
|
|
586
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
587
|
-
},
|
|
588
|
-
primaryDisabled: {
|
|
589
|
-
padding: 16,
|
|
590
|
-
borderRadius: 4,
|
|
591
|
-
backgroundColor: theme.ColorPalette.brand.primaryDisabled,
|
|
592
|
-
},
|
|
593
|
-
secondary: {
|
|
594
|
-
padding: 16,
|
|
595
|
-
borderRadius: 4,
|
|
596
|
-
borderWidth: 2,
|
|
597
|
-
borderColor: theme.ColorPalette.brand.primary,
|
|
598
|
-
},
|
|
599
|
-
secondaryDisabled: {
|
|
600
|
-
padding: 16,
|
|
601
|
-
borderRadius: 4,
|
|
602
|
-
borderWidth: 2,
|
|
603
|
-
borderColor: theme.ColorPalette.brand.secondaryDisabled,
|
|
604
|
-
},
|
|
605
|
-
tertiary: {
|
|
606
|
-
padding: 16,
|
|
607
|
-
},
|
|
608
|
-
tertiaryDisabled: {
|
|
609
|
-
padding: 16,
|
|
610
|
-
},
|
|
611
|
-
modalCritical: {
|
|
612
|
-
padding: 16,
|
|
613
|
-
borderRadius: 4,
|
|
614
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
615
|
-
},
|
|
616
|
-
modalCriticalDisabled: {
|
|
617
|
-
padding: 16,
|
|
618
|
-
borderRadius: 4,
|
|
619
|
-
backgroundColor: theme.ColorPalette.brand.primaryDisabled,
|
|
620
|
-
},
|
|
621
|
-
modalPrimary: {
|
|
622
|
-
padding: 16,
|
|
623
|
-
borderRadius: 4,
|
|
624
|
-
backgroundColor: theme.ColorPalette.brand.modalPrimary,
|
|
625
|
-
},
|
|
626
|
-
modalPrimaryDisabled: {
|
|
627
|
-
padding: 16,
|
|
628
|
-
borderRadius: 4,
|
|
629
|
-
backgroundColor: theme.ColorPalette.brand.primaryDisabled,
|
|
630
|
-
},
|
|
631
|
-
modalSecondary: {
|
|
632
|
-
padding: 16,
|
|
633
|
-
borderRadius: 4,
|
|
634
|
-
borderWidth: 2,
|
|
635
|
-
borderColor: theme.ColorPalette.brand.modalPrimary,
|
|
636
|
-
},
|
|
637
|
-
modalSecondaryDisabled: {
|
|
638
|
-
padding: 16,
|
|
639
|
-
borderRadius: 4,
|
|
640
|
-
borderWidth: 2,
|
|
641
|
-
borderColor: theme.ColorPalette.brand.secondaryDisabled,
|
|
642
|
-
},
|
|
643
|
-
modalTertiary: {
|
|
644
|
-
padding: 16,
|
|
645
|
-
},
|
|
646
|
-
modalTertiaryDisabled: {
|
|
647
|
-
padding: 16,
|
|
648
|
-
},
|
|
649
|
-
})
|
|
650
|
-
|
|
651
|
-
return { ...textStyles, ...viewStyles }
|
|
652
|
-
}
|
|
653
|
-
export const Buttons = createButtonsTheme({ ColorPalette, TextTheme })
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Creates a theme for list items based on the provided color pallet and text theme.
|
|
657
|
-
*
|
|
658
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
659
|
-
* @returns {*} {IListItems} - The created list items theme
|
|
660
|
-
*/
|
|
661
|
-
export function createListItemsTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): IListItems {
|
|
662
|
-
const testStyles = StyleSheet.create({
|
|
663
|
-
credentialTitle: {
|
|
664
|
-
...theme.TextTheme.headingFour,
|
|
665
|
-
},
|
|
666
|
-
credentialDetails: {
|
|
667
|
-
...theme.TextTheme.caption,
|
|
668
|
-
},
|
|
669
|
-
credentialOfferTitle: {
|
|
670
|
-
...theme.TextTheme.modalHeadingThree,
|
|
671
|
-
fontWeight: 'normal',
|
|
672
|
-
},
|
|
673
|
-
credentialOfferDetails: {
|
|
674
|
-
...theme.TextTheme.normal,
|
|
675
|
-
},
|
|
676
|
-
credentialIconColor: {
|
|
677
|
-
color: theme.ColorPalette.notification.infoText,
|
|
678
|
-
},
|
|
679
|
-
contactTitle: {
|
|
680
|
-
color: theme.ColorPalette.brand.text,
|
|
681
|
-
},
|
|
682
|
-
contactDate: {
|
|
683
|
-
color: theme.ColorPalette.brand.text,
|
|
684
|
-
marginTop: 10,
|
|
685
|
-
},
|
|
686
|
-
contactIcon: {
|
|
687
|
-
color: theme.ColorPalette.grayscale.white,
|
|
688
|
-
},
|
|
689
|
-
recordAttributeLabel: {
|
|
690
|
-
...theme.TextTheme.bold,
|
|
691
|
-
},
|
|
692
|
-
recordLink: {
|
|
693
|
-
color: theme.ColorPalette.brand.link,
|
|
694
|
-
},
|
|
695
|
-
recordAttributeText: {
|
|
696
|
-
...theme.TextTheme.normal,
|
|
697
|
-
},
|
|
698
|
-
proofIcon: {
|
|
699
|
-
...theme.TextTheme.headingOne,
|
|
700
|
-
},
|
|
701
|
-
proofError: {
|
|
702
|
-
color: theme.ColorPalette.semantic.error,
|
|
703
|
-
},
|
|
704
|
-
avatarText: {
|
|
705
|
-
...theme.TextTheme.headingTwo,
|
|
706
|
-
fontWeight: 'normal',
|
|
707
|
-
},
|
|
708
|
-
avatarCircle: {
|
|
709
|
-
borderRadius: theme.TextTheme.headingTwo.fontSize,
|
|
710
|
-
borderColor: theme.TextTheme.headingTwo.color,
|
|
711
|
-
width: (theme.TextTheme.headingTwo.fontSize ?? 32) * 2,
|
|
712
|
-
height: (theme.TextTheme.headingTwo.fontSize ?? 32) * 2,
|
|
713
|
-
},
|
|
714
|
-
requestTemplateIconColor: {
|
|
715
|
-
color: theme.ColorPalette.notification.infoText,
|
|
716
|
-
},
|
|
717
|
-
requestTemplateTitle: {
|
|
718
|
-
color: theme.ColorPalette.grayscale.black,
|
|
719
|
-
fontWeight: 'bold',
|
|
720
|
-
fontSize: 16,
|
|
721
|
-
},
|
|
722
|
-
requestTemplateDetails: {
|
|
723
|
-
color: theme.ColorPalette.grayscale.black,
|
|
724
|
-
fontWeight: 'normal',
|
|
725
|
-
fontSize: 16,
|
|
726
|
-
},
|
|
727
|
-
requestTemplateZkpLabel: {
|
|
728
|
-
color: theme.ColorPalette.grayscale.mediumGrey,
|
|
729
|
-
fontSize: 12,
|
|
730
|
-
},
|
|
731
|
-
requestTemplateIcon: {
|
|
732
|
-
color: theme.ColorPalette.grayscale.black,
|
|
733
|
-
fontSize: 36,
|
|
734
|
-
},
|
|
735
|
-
requestTemplateDate: {
|
|
736
|
-
color: theme.ColorPalette.grayscale.mediumGrey,
|
|
737
|
-
fontSize: 10,
|
|
738
|
-
},
|
|
739
|
-
})
|
|
740
|
-
|
|
741
|
-
const viewStyles = StyleSheet.create({
|
|
742
|
-
credentialBackground: {
|
|
743
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
744
|
-
},
|
|
745
|
-
credentialOfferBackground: {
|
|
746
|
-
backgroundColor: theme.ColorPalette.brand.modalPrimaryBackground,
|
|
747
|
-
},
|
|
748
|
-
revoked: {
|
|
749
|
-
backgroundColor: theme.ColorPalette.notification.error,
|
|
750
|
-
borderColor: theme.ColorPalette.notification.errorBorder,
|
|
751
|
-
},
|
|
752
|
-
contactBackground: {
|
|
753
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
754
|
-
},
|
|
755
|
-
contactIconBackground: {
|
|
756
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
757
|
-
},
|
|
758
|
-
recordContainer: {
|
|
759
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
760
|
-
},
|
|
761
|
-
recordBorder: {
|
|
762
|
-
borderBottomColor: theme.ColorPalette.brand.primaryBackground,
|
|
763
|
-
},
|
|
764
|
-
emptyList: {
|
|
765
|
-
...theme.TextTheme.normal,
|
|
766
|
-
},
|
|
767
|
-
requestTemplateBackground: {
|
|
768
|
-
backgroundColor: theme.ColorPalette.grayscale.white,
|
|
769
|
-
},
|
|
770
|
-
})
|
|
771
|
-
|
|
772
|
-
return { ...testStyles, ...viewStyles }
|
|
773
|
-
}
|
|
774
|
-
export const ListItems = createListItemsTheme({ ColorPalette, TextTheme })
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Creates a theme for tabs based on the provided color pallet and text theme.
|
|
778
|
-
*
|
|
779
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
780
|
-
* @returns {*} {ITabTheme} - The created tab theme
|
|
781
|
-
*/
|
|
782
|
-
export function createTabTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): ITabTheme {
|
|
783
|
-
const textStyles = StyleSheet.create({
|
|
784
|
-
tabBarTextStyle: {
|
|
785
|
-
...theme.TextTheme.labelSubtitle,
|
|
786
|
-
paddingBottom: 5,
|
|
787
|
-
},
|
|
788
|
-
tabBarButtonIconStyle: {
|
|
789
|
-
color: theme.ColorPalette.brand.headerIcon,
|
|
790
|
-
},
|
|
791
|
-
})
|
|
792
|
-
|
|
793
|
-
const viewStyles = StyleSheet.create({
|
|
794
|
-
tabBarStyle: {
|
|
795
|
-
height: 60,
|
|
796
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
797
|
-
shadowOffset: { width: 0, height: -3 },
|
|
798
|
-
shadowRadius: 6,
|
|
799
|
-
shadowColor: theme.ColorPalette.grayscale.black,
|
|
800
|
-
shadowOpacity: 0.1,
|
|
801
|
-
borderTopWidth: 0,
|
|
802
|
-
paddingBottom: 0,
|
|
803
|
-
},
|
|
804
|
-
tabBarContainerStyle: {
|
|
805
|
-
flex: 1,
|
|
806
|
-
justifyContent: 'center',
|
|
807
|
-
alignItems: 'center',
|
|
808
|
-
},
|
|
809
|
-
focusTabIconStyle: {
|
|
810
|
-
height: 60,
|
|
811
|
-
width: 60,
|
|
812
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
813
|
-
borderRadius: 60,
|
|
814
|
-
justifyContent: 'center',
|
|
815
|
-
alignItems: 'center',
|
|
816
|
-
},
|
|
817
|
-
focusTabActiveTintColor: {
|
|
818
|
-
backgroundColor: theme.ColorPalette.brand.secondary,
|
|
819
|
-
},
|
|
820
|
-
})
|
|
821
|
-
|
|
822
|
-
return {
|
|
823
|
-
...textStyles,
|
|
824
|
-
...viewStyles,
|
|
825
|
-
tabBarActiveTintColor: theme.ColorPalette.brand.primary,
|
|
826
|
-
tabBarInactiveTintColor: theme.ColorPalette.brand.tabBarInactive,
|
|
827
|
-
tabBarSecondaryBackgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
export const TabTheme = createTabTheme({ ColorPalette, TextTheme })
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
* Creates a navigation theme based on the provided color pallet.
|
|
834
|
-
*
|
|
835
|
-
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
836
|
-
* @returns {*} {INavigationTheme} - The created navigation theme
|
|
837
|
-
*/
|
|
838
|
-
export function createNavigationTheme(theme: { ColorPalette: IColorPalette }) {
|
|
839
|
-
return {
|
|
840
|
-
dark: true,
|
|
841
|
-
colors: {
|
|
842
|
-
primary: theme.ColorPalette.brand.primary,
|
|
843
|
-
background: theme.ColorPalette.brand.primaryBackground,
|
|
844
|
-
card: theme.ColorPalette.brand.primary,
|
|
845
|
-
text: theme.ColorPalette.grayscale.white,
|
|
846
|
-
border: theme.ColorPalette.grayscale.white,
|
|
847
|
-
notification: theme.ColorPalette.grayscale.white,
|
|
848
|
-
},
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
export type INavigationTheme = ReturnType<typeof createNavigationTheme>
|
|
852
|
-
export const NavigationTheme = createNavigationTheme({ ColorPalette })
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* Creates a home theme based on the provided color pallet and text theme.
|
|
856
|
-
*
|
|
857
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
858
|
-
* @returns {*} {IHomeTheme} - The created home theme
|
|
859
|
-
*/
|
|
860
|
-
export function createHomeTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): IHomeTheme {
|
|
861
|
-
return StyleSheet.create({
|
|
862
|
-
welcomeHeader: {
|
|
863
|
-
...theme.TextTheme.headingOne,
|
|
864
|
-
},
|
|
865
|
-
credentialMsg: {
|
|
866
|
-
...theme.TextTheme.normal,
|
|
867
|
-
},
|
|
868
|
-
notificationsHeader: {
|
|
869
|
-
...theme.TextTheme.headingThree,
|
|
870
|
-
},
|
|
871
|
-
noNewUpdatesText: {
|
|
872
|
-
...theme.TextTheme.normal,
|
|
873
|
-
color: theme.ColorPalette.notification.infoText,
|
|
874
|
-
},
|
|
875
|
-
link: {
|
|
876
|
-
...theme.TextTheme.normal,
|
|
877
|
-
color: theme.ColorPalette.brand.link,
|
|
878
|
-
},
|
|
879
|
-
})
|
|
880
|
-
}
|
|
881
|
-
export const HomeTheme = createHomeTheme({ ColorPalette, TextTheme })
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Creates a settings theme based on the provided color pallet and text theme.
|
|
885
|
-
*
|
|
886
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
887
|
-
* @returns {*} {ISettingsTheme} - The created settings theme
|
|
888
|
-
*/
|
|
889
|
-
export function createSettingsTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): ISettingsTheme {
|
|
890
|
-
const settingsTheme = StyleSheet.create({
|
|
891
|
-
groupHeader: {
|
|
892
|
-
...theme.TextTheme.normal,
|
|
893
|
-
marginBottom: 8,
|
|
894
|
-
},
|
|
895
|
-
text: {
|
|
896
|
-
...theme.TextTheme.caption,
|
|
897
|
-
color: theme.ColorPalette.grayscale.white,
|
|
898
|
-
},
|
|
899
|
-
})
|
|
900
|
-
|
|
901
|
-
return {
|
|
902
|
-
...settingsTheme,
|
|
903
|
-
groupBackground: theme.ColorPalette.brand.secondaryBackground,
|
|
904
|
-
iconColor: theme.ColorPalette.brand.text,
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
export const SettingsTheme = createSettingsTheme({ ColorPalette, TextTheme })
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Creates a chat theme based on the provided color pallet and text theme.
|
|
911
|
-
*
|
|
912
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
913
|
-
* @returns {*} {IChatTheme} - The created chat theme
|
|
914
|
-
*/
|
|
915
|
-
export function createChatTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): IChatTheme {
|
|
916
|
-
const textStyles = StyleSheet.create({
|
|
917
|
-
timeStyleLeft: {
|
|
918
|
-
color: theme.ColorPalette.grayscale.lightGrey,
|
|
919
|
-
fontSize: 12,
|
|
920
|
-
marginTop: 8,
|
|
921
|
-
},
|
|
922
|
-
timeStyleRight: {
|
|
923
|
-
color: theme.ColorPalette.grayscale.lightGrey,
|
|
924
|
-
fontSize: 12,
|
|
925
|
-
marginTop: 8,
|
|
926
|
-
},
|
|
927
|
-
leftText: {
|
|
928
|
-
color: theme.ColorPalette.brand.secondary,
|
|
929
|
-
fontSize: theme.TextTheme.normal.fontSize,
|
|
930
|
-
},
|
|
931
|
-
leftTextHighlighted: {
|
|
932
|
-
...theme.TextTheme.bold,
|
|
933
|
-
color: theme.ColorPalette.brand.secondary,
|
|
934
|
-
},
|
|
935
|
-
rightText: {
|
|
936
|
-
color: theme.ColorPalette.brand.secondary,
|
|
937
|
-
fontSize: theme.TextTheme.normal.fontSize,
|
|
938
|
-
},
|
|
939
|
-
rightTextHighlighted: {
|
|
940
|
-
...theme.TextTheme.bold,
|
|
941
|
-
color: theme.ColorPalette.brand.secondary,
|
|
942
|
-
},
|
|
943
|
-
inputText: {
|
|
944
|
-
lineHeight: undefined,
|
|
945
|
-
fontWeight: '500',
|
|
946
|
-
fontSize: theme.TextTheme.normal.fontSize,
|
|
947
|
-
},
|
|
948
|
-
openButtonTextStyle: {
|
|
949
|
-
fontSize: theme.TextTheme.normal.fontSize,
|
|
950
|
-
fontWeight: 'bold',
|
|
951
|
-
textAlign: 'center',
|
|
952
|
-
},
|
|
953
|
-
documentIcon: {
|
|
954
|
-
color: theme.ColorPalette.grayscale.white,
|
|
955
|
-
},
|
|
956
|
-
})
|
|
957
|
-
|
|
958
|
-
const viewStyles = StyleSheet.create({
|
|
959
|
-
containerStyle: {
|
|
960
|
-
marginBottom: 16,
|
|
961
|
-
marginLeft: 16,
|
|
962
|
-
marginRight: 16,
|
|
963
|
-
flexDirection: 'column',
|
|
964
|
-
alignItems: 'flex-start',
|
|
965
|
-
alignSelf: 'flex-end',
|
|
966
|
-
},
|
|
967
|
-
leftBubble: {
|
|
968
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
969
|
-
borderRadius: 4,
|
|
970
|
-
padding: 16,
|
|
971
|
-
marginLeft: 16,
|
|
972
|
-
},
|
|
973
|
-
rightBubble: {
|
|
974
|
-
backgroundColor: theme.ColorPalette.brand.primaryLight,
|
|
975
|
-
borderRadius: 4,
|
|
976
|
-
padding: 16,
|
|
977
|
-
marginRight: 16,
|
|
978
|
-
},
|
|
979
|
-
sendContainer: {
|
|
980
|
-
marginBottom: 4,
|
|
981
|
-
paddingHorizontal: 4,
|
|
982
|
-
justifyContent: 'center',
|
|
983
|
-
},
|
|
984
|
-
openButtonStyle: {
|
|
985
|
-
borderRadius: 32,
|
|
986
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
987
|
-
paddingTop: 8,
|
|
988
|
-
paddingBottom: 8,
|
|
989
|
-
paddingLeft: 16,
|
|
990
|
-
paddingRight: 16,
|
|
991
|
-
marginTop: 16,
|
|
992
|
-
},
|
|
993
|
-
documentIconContainer: {
|
|
994
|
-
backgroundColor: theme.ColorPalette.brand.primary,
|
|
995
|
-
alignSelf: 'flex-start',
|
|
996
|
-
borderRadius: 4,
|
|
997
|
-
marginBottom: 16,
|
|
998
|
-
justifyContent: 'center',
|
|
999
|
-
alignItems: 'center',
|
|
1000
|
-
width: 50,
|
|
1001
|
-
height: 50,
|
|
1002
|
-
},
|
|
1003
|
-
inputToolbar: {
|
|
1004
|
-
backgroundColor: theme.ColorPalette.brand.secondary,
|
|
1005
|
-
shadowColor: theme.ColorPalette.brand.primaryDisabled,
|
|
1006
|
-
borderRadius: 10,
|
|
1007
|
-
},
|
|
1008
|
-
})
|
|
1009
|
-
|
|
1010
|
-
return {
|
|
1011
|
-
...textStyles,
|
|
1012
|
-
...viewStyles,
|
|
1013
|
-
placeholderText: theme.ColorPalette.grayscale.lightGrey,
|
|
1014
|
-
sendEnabled: theme.ColorPalette.brand.primary,
|
|
1015
|
-
sendDisabled: theme.ColorPalette.brand.primaryDisabled,
|
|
1016
|
-
options: theme.ColorPalette.brand.primary,
|
|
1017
|
-
optionsText: theme.ColorPalette.grayscale.black,
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
export const ChatTheme = createChatTheme({ ColorPalette, TextTheme })
|
|
1021
|
-
|
|
1022
|
-
/**
|
|
1023
|
-
* Creates an onboarding theme based on the provided color pallet and text theme.
|
|
1024
|
-
*
|
|
1025
|
-
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
1026
|
-
* @returns {*} {IOnboardingTheme} - The created onboarding theme
|
|
1027
|
-
*/
|
|
1028
|
-
export function createOnboardingTheme(theme: { ColorPalette: IColorPalette; TextTheme: ITextTheme }): IOnboardingTheme {
|
|
1029
|
-
const textStyles = StyleSheet.create({
|
|
1030
|
-
pagerDot: {
|
|
1031
|
-
borderColor: theme.ColorPalette.brand.primary,
|
|
1032
|
-
},
|
|
1033
|
-
pagerDotActive: {
|
|
1034
|
-
color: theme.ColorPalette.brand.primary,
|
|
1035
|
-
},
|
|
1036
|
-
pagerDotInactive: {
|
|
1037
|
-
color: theme.ColorPalette.brand.secondary,
|
|
1038
|
-
},
|
|
1039
|
-
pagerNavigationButton: {
|
|
1040
|
-
color: theme.ColorPalette.brand.primary,
|
|
1041
|
-
fontWeight: 'bold',
|
|
1042
|
-
fontSize: 18,
|
|
1043
|
-
},
|
|
1044
|
-
headerText: {
|
|
1045
|
-
...theme.TextTheme.bold,
|
|
1046
|
-
},
|
|
1047
|
-
bodyText: {
|
|
1048
|
-
...theme.TextTheme.normal,
|
|
1049
|
-
},
|
|
1050
|
-
})
|
|
1051
|
-
|
|
1052
|
-
const viewStyles = StyleSheet.create({
|
|
1053
|
-
container: {
|
|
1054
|
-
backgroundColor: theme.ColorPalette.brand.primaryBackground,
|
|
1055
|
-
},
|
|
1056
|
-
carouselContainer: {
|
|
1057
|
-
backgroundColor: theme.ColorPalette.brand.primaryBackground,
|
|
1058
|
-
},
|
|
1059
|
-
})
|
|
1060
|
-
|
|
1061
|
-
return {
|
|
1062
|
-
...textStyles,
|
|
1063
|
-
...viewStyles,
|
|
1064
|
-
headerTintColor: ColorPalette.grayscale.white,
|
|
1065
|
-
imageDisplayOptions: {
|
|
1066
|
-
fill: ColorPalette.notification.infoText,
|
|
1067
|
-
},
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
export const OnboardingTheme = createOnboardingTheme({ ColorPalette, TextTheme })
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* Creates a dialog theme based on the provided color pallet.
|
|
1074
|
-
*
|
|
1075
|
-
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
1076
|
-
* @returns {*} {IDialogTheme} - The created dialog theme
|
|
1077
|
-
*/
|
|
1078
|
-
export function createDialogTheme(theme: { ColorPalette: IColorPalette }): IDialogTheme {
|
|
1079
|
-
return StyleSheet.create({
|
|
1080
|
-
modalView: {
|
|
1081
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
1082
|
-
},
|
|
1083
|
-
titleText: {
|
|
1084
|
-
color: theme.ColorPalette.grayscale.white,
|
|
1085
|
-
},
|
|
1086
|
-
description: {
|
|
1087
|
-
color: theme.ColorPalette.grayscale.white,
|
|
1088
|
-
},
|
|
1089
|
-
closeButtonIcon: {
|
|
1090
|
-
color: theme.ColorPalette.grayscale.white,
|
|
1091
|
-
},
|
|
1092
|
-
carouselButtonText: {
|
|
1093
|
-
color: theme.ColorPalette.grayscale.white,
|
|
1094
|
-
},
|
|
1095
|
-
})
|
|
1096
|
-
}
|
|
1097
|
-
export const DialogTheme = createDialogTheme({ ColorPalette })
|
|
1098
|
-
|
|
1099
|
-
export function createLoadingTheme(theme: { ColorPalette: IColorPalette }): ILoadingTheme {
|
|
1100
|
-
return {
|
|
1101
|
-
backgroundColor: theme.ColorPalette.brand.modalPrimaryBackground,
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
export const LoadingTheme = createLoadingTheme({ ColorPalette })
|
|
1105
|
-
|
|
1106
|
-
// NOTE: If ColorPalette or TextTheme is needed in this theme,
|
|
1107
|
-
// we can convert this to a function like the others.
|
|
1108
|
-
const PINEnterTheme = {
|
|
1109
|
-
image: {
|
|
1110
|
-
alignSelf: 'center',
|
|
1111
|
-
marginBottom: 20,
|
|
1112
|
-
},
|
|
1113
|
-
}
|
|
1114
|
-
export type IPINEnterTheme = typeof PINEnterTheme
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* Creates a theme for PIN input based on the provided color pallet.
|
|
1118
|
-
*
|
|
1119
|
-
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
1120
|
-
* @returns {*} {IPINInputTheme} - The created PIN input theme
|
|
1121
|
-
*/
|
|
1122
|
-
export function createPINInputTheme(theme: { ColorPalette: IColorPalette }): IPINInputTheme {
|
|
1123
|
-
const textStyles = StyleSheet.create({
|
|
1124
|
-
cellText: {
|
|
1125
|
-
color: theme.ColorPalette.brand.text,
|
|
1126
|
-
},
|
|
1127
|
-
icon: {
|
|
1128
|
-
color: theme.ColorPalette.brand.headerIcon,
|
|
1129
|
-
},
|
|
1130
|
-
})
|
|
1131
|
-
|
|
1132
|
-
const viewStyles = StyleSheet.create({
|
|
1133
|
-
cell: {
|
|
1134
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
1135
|
-
borderColor: theme.ColorPalette.brand.secondary,
|
|
1136
|
-
borderWidth: 1,
|
|
1137
|
-
},
|
|
1138
|
-
focussedCell: {
|
|
1139
|
-
borderColor: theme.ColorPalette.brand.headerIcon,
|
|
1140
|
-
},
|
|
1141
|
-
codeFieldRoot: {
|
|
1142
|
-
justifyContent: 'flex-start',
|
|
1143
|
-
alignItems: 'center',
|
|
1144
|
-
},
|
|
1145
|
-
labelAndFieldContainer: {
|
|
1146
|
-
flexDirection: 'row',
|
|
1147
|
-
borderRadius: 5,
|
|
1148
|
-
paddingHorizontal: 12,
|
|
1149
|
-
paddingVertical: 4,
|
|
1150
|
-
alignItems: 'center',
|
|
1151
|
-
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
1152
|
-
borderColor: theme.ColorPalette.brand.secondary,
|
|
1153
|
-
borderWidth: 1,
|
|
1154
|
-
},
|
|
1155
|
-
})
|
|
1156
|
-
|
|
1157
|
-
return { ...textStyles, ...viewStyles }
|
|
1158
|
-
}
|
|
1159
|
-
export const PINInputTheme = createPINInputTheme({ ColorPalette })
|
|
1160
|
-
|
|
1161
|
-
const CredentialCardShadowTheme = {
|
|
1162
|
-
shadowColor: '#000',
|
|
1163
|
-
shadowOffset: {
|
|
1164
|
-
width: 1,
|
|
1165
|
-
height: 1,
|
|
1166
|
-
},
|
|
1167
|
-
shadowOpacity: 0.3,
|
|
1168
|
-
} satisfies ViewStyle
|
|
1169
|
-
|
|
1170
|
-
const SelectedCredTheme = {
|
|
1171
|
-
borderWidth: 5,
|
|
1172
|
-
borderRadius: 15,
|
|
1173
|
-
borderColor: ColorPalette.semantic.focus,
|
|
1174
|
-
} satisfies ViewStyle
|
|
1175
|
-
|
|
1176
|
-
export const Assets = {
|
|
1177
|
-
svg: {
|
|
1178
|
-
activityIndicator: ActivityIndicator,
|
|
1179
|
-
appLockout: AppLockout,
|
|
1180
|
-
biometrics: Biometrics,
|
|
1181
|
-
credentialDeclined: CredentialDeclined,
|
|
1182
|
-
deleteNotification: DeleteNotification,
|
|
1183
|
-
emptyWallet: EmptyWallet,
|
|
1184
|
-
contactBook: ContactBook,
|
|
1185
|
-
logo: Logo,
|
|
1186
|
-
proofRequestDeclined: ProofRequestDeclined,
|
|
1187
|
-
arrow: Arrow,
|
|
1188
|
-
iconCredentialOfferDark: IconCredentialOfferDark,
|
|
1189
|
-
iconCredentialOfferLight: IconCredentialOfferLight,
|
|
1190
|
-
iconInfoRecievedDark: IconInfoRecievedDark,
|
|
1191
|
-
iconInfoRecievedLight: IconInfoRecievedLight,
|
|
1192
|
-
iconInfoSentDark: IconInfoSentDark,
|
|
1193
|
-
iconInfoSentLight: IconInfoSentLight,
|
|
1194
|
-
iconProofRequestDark: IconProofRequestDark,
|
|
1195
|
-
iconProofRequestLight: IconProofRequestLight,
|
|
1196
|
-
preface: Preface,
|
|
1197
|
-
updateAvailable: UpdateAvailable,
|
|
1198
|
-
verifierRequestDeclined: VerifierRequestDeclined,
|
|
1199
|
-
noInfoShared: NoInfoShared,
|
|
1200
|
-
wallet: Wallet,
|
|
1201
|
-
checkInCircle: CheckInCircle,
|
|
1202
|
-
credentialCard: CredentialCard,
|
|
1203
|
-
walletBack: WalletBack,
|
|
1204
|
-
walletFront: WalletFront,
|
|
1205
|
-
credentialInHand: CredentialInHand,
|
|
1206
|
-
credentialList: CredentialList,
|
|
1207
|
-
scanShare: ScanShare,
|
|
1208
|
-
secureCheck: SecureCheck,
|
|
1209
|
-
secureImage: SecureImage,
|
|
1210
|
-
informationReceived: InformationReceived,
|
|
1211
|
-
pushNotificationImg: PushNotificationImg,
|
|
1212
|
-
chatLoading: ChatLoading,
|
|
1213
|
-
historyCardAcceptedIcon: HistoryCardAcceptedIcon,
|
|
1214
|
-
historyCardDeclinedIcon: HistoryCardRevokedIcon,
|
|
1215
|
-
historyCardExpiredIcon: HistoryCardExpiredIcon,
|
|
1216
|
-
historyCardRemovedIcon: HistoryCardRevokedIcon,
|
|
1217
|
-
historyCardRevokedIcon: HistoryCardRevokedIcon,
|
|
1218
|
-
historyCardUpdatesIcon: HistoryCardAcceptedIcon,
|
|
1219
|
-
historyPinUpdatedIcon: HistoryPinUpdatedIcon,
|
|
1220
|
-
historyInformationSentIcon: HistoryInformationSentIcon,
|
|
1221
|
-
historyInformationNotSentIcon: HistoryCardRevokedIcon,
|
|
1222
|
-
historyConnectionIcon: HistoryCardAcceptedIcon,
|
|
1223
|
-
historyConnectionRemovedIcon: HistoryCardRevokedIcon,
|
|
1224
|
-
historyActivateBiometryIcon: HistoryCardAcceptedIcon,
|
|
1225
|
-
historyDeactivateBiometryIcon: HistoryCardRevokedIcon,
|
|
1226
|
-
iconChevronRight: IconChevronRight,
|
|
1227
|
-
homeCenterImg: HomeCenterImg,
|
|
1228
|
-
iconDelete: IconDelete,
|
|
1229
|
-
iconEdit: IconEdit,
|
|
1230
|
-
iconCode: IconCode,
|
|
1231
|
-
iconError: IconError,
|
|
1232
|
-
iconWarning: IconWarning,
|
|
1233
|
-
tabOneIcon: TabOneIcon,
|
|
1234
|
-
tabOneFocusedIcon: TabOneFocusedIcon,
|
|
1235
|
-
tabTwoIcon: TabTwoIcon,
|
|
1236
|
-
tabThreeIcon: TabThreeIcon,
|
|
1237
|
-
tabThreeFocusedIcon: TabThreeFocusedIcon,
|
|
1238
|
-
},
|
|
1239
|
-
img: {
|
|
1240
|
-
logoPrimary: {
|
|
1241
|
-
src: require('./assets/img/logo-large.png'),
|
|
1242
|
-
aspectRatio: 1,
|
|
1243
|
-
height: '33%',
|
|
1244
|
-
width: '33%',
|
|
1245
|
-
resizeMode: 'contain',
|
|
1246
|
-
},
|
|
1247
|
-
logoSecondary: {
|
|
1248
|
-
src: require('./assets/img/logo-large.png'),
|
|
1249
|
-
aspectRatio: 1,
|
|
1250
|
-
height: 120,
|
|
1251
|
-
width: 120,
|
|
1252
|
-
resizeMode: 'contain',
|
|
1253
|
-
},
|
|
1254
|
-
},
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* Creates a theme for inline messages in inputs based on the provided text theme and assets.
|
|
1259
|
-
*
|
|
1260
|
-
* @param {{ TextTheme: ITextTheme; Assets: IAssets }} theme - The theme object containing the text theme and assets
|
|
1261
|
-
* @return {*} {IInlineInputMessage} - The created inline input message theme
|
|
1262
|
-
*/
|
|
1263
|
-
export function createInputInlineMessageTheme(theme: { TextTheme: ITextTheme; Assets: IAssets }): IInlineInputMessage {
|
|
1264
|
-
return {
|
|
1265
|
-
inlineErrorText: { ...theme.TextTheme.inlineErrorText },
|
|
1266
|
-
InlineErrorIcon: theme.Assets.svg.iconError,
|
|
1267
|
-
inlineWarningText: { ...theme.TextTheme.inlineWarningText },
|
|
1268
|
-
InlineWarningIcon: theme.Assets.svg.iconWarning,
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
export const InputInlineMessage = createInputInlineMessageTheme({ TextTheme, Assets })
|
|
1272
|
-
|
|
1273
|
-
export interface ITheme {
|
|
1274
|
-
themeName: string
|
|
1275
|
-
Spacing: ISpacing
|
|
1276
|
-
ColorPalette: IColorPalette
|
|
1277
|
-
TextTheme: ITextTheme
|
|
1278
|
-
InputInlineMessage: IInlineInputMessage
|
|
1279
|
-
Inputs: IInputs
|
|
1280
|
-
Buttons: IButtons
|
|
1281
|
-
ListItems: IListItems
|
|
1282
|
-
TabTheme: ITabTheme
|
|
1283
|
-
NavigationTheme: INavigationTheme
|
|
1284
|
-
HomeTheme: IHomeTheme
|
|
1285
|
-
SettingsTheme: ISettingsTheme
|
|
1286
|
-
ChatTheme: IChatTheme
|
|
1287
|
-
OnboardingTheme: IOnboardingTheme
|
|
1288
|
-
DialogTheme: IDialogTheme
|
|
1289
|
-
LoadingTheme: ILoadingTheme
|
|
1290
|
-
PINEnterTheme: IPINEnterTheme
|
|
1291
|
-
PINInputTheme: IPINInputTheme
|
|
1292
|
-
CredentialCardShadowTheme: ViewStyle
|
|
1293
|
-
SelectedCredTheme: ViewStyle
|
|
1294
|
-
heavyOpacity: typeof heavyOpacity
|
|
1295
|
-
borderRadius: typeof borderRadius
|
|
1296
|
-
borderWidth: typeof borderWidth
|
|
1297
|
-
maxFontSizeMultiplier: number
|
|
1298
|
-
Assets: IAssets
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
export const bifoldTheme: ITheme = {
|
|
1302
|
-
themeName: 'bifold',
|
|
1303
|
-
Spacing,
|
|
1304
|
-
ColorPalette,
|
|
1305
|
-
TextTheme,
|
|
1306
|
-
InputInlineMessage,
|
|
1307
|
-
Inputs,
|
|
1308
|
-
Buttons,
|
|
1309
|
-
ListItems,
|
|
1310
|
-
TabTheme,
|
|
1311
|
-
NavigationTheme,
|
|
1312
|
-
HomeTheme,
|
|
1313
|
-
SettingsTheme,
|
|
1314
|
-
ChatTheme,
|
|
1315
|
-
OnboardingTheme,
|
|
1316
|
-
DialogTheme,
|
|
1317
|
-
LoadingTheme,
|
|
1318
|
-
PINEnterTheme,
|
|
1319
|
-
PINInputTheme,
|
|
1320
|
-
CredentialCardShadowTheme,
|
|
1321
|
-
SelectedCredTheme,
|
|
1322
|
-
heavyOpacity,
|
|
1323
|
-
borderRadius,
|
|
1324
|
-
borderWidth,
|
|
1325
|
-
maxFontSizeMultiplier,
|
|
1326
|
-
Assets,
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
export const themes: ITheme[] = [bifoldTheme]
|
|
1330
|
-
|
|
1331
|
-
// Backwards compatible exports
|
|
1332
|
-
export type {
|
|
1333
|
-
ITextTheme,
|
|
1334
|
-
IInlineInputMessage,
|
|
1335
|
-
IInputs,
|
|
1336
|
-
IButtons,
|
|
1337
|
-
IListItems,
|
|
1338
|
-
ITabTheme,
|
|
1339
|
-
IHomeTheme,
|
|
1340
|
-
ISettingsTheme,
|
|
1341
|
-
IChatTheme,
|
|
1342
|
-
IOnboardingTheme,
|
|
1343
|
-
IDialogTheme,
|
|
1344
|
-
ILoadingTheme,
|
|
1345
|
-
IPINInputTheme,
|
|
1346
|
-
} from './theme.interface'
|