@bifold/core 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/App.js +1 -1
- package/lib/commonjs/App.js.map +1 -1
- package/lib/commonjs/components/animated/ButtonLoading.js +2 -2
- package/lib/commonjs/components/animated/ButtonLoading.js.map +1 -1
- package/lib/commonjs/components/animated/ConnectionLoading.js +3 -3
- package/lib/commonjs/components/animated/ConnectionLoading.js.map +1 -1
- package/lib/commonjs/components/animated/LoadingIndicator.js +2 -2
- package/lib/commonjs/components/animated/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/animated/PresentationLoading.js +3 -3
- package/lib/commonjs/components/animated/PresentationLoading.js.map +1 -1
- package/lib/commonjs/components/animated/RecordLoading.js +5 -5
- package/lib/commonjs/components/animated/RecordLoading.js.map +1 -1
- package/lib/commonjs/components/animated/SendingProof.js +3 -3
- package/lib/commonjs/components/animated/SendingProof.js.map +1 -1
- package/lib/commonjs/components/animated/SentProof.js +3 -3
- package/lib/commonjs/components/animated/SentProof.js.map +1 -1
- package/lib/commonjs/components/buttons/Button.js +1 -1
- package/lib/commonjs/components/buttons/Button.js.map +1 -1
- package/lib/commonjs/components/buttons/IconButton.js +3 -3
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
- package/lib/commonjs/components/buttons/ToggleButton.js +3 -3
- package/lib/commonjs/components/buttons/ToggleButton.js.map +1 -1
- package/lib/commonjs/components/chat/ActionSlider.js +3 -3
- package/lib/commonjs/components/chat/ActionSlider.js.map +1 -1
- package/lib/commonjs/components/forms/WalletNameForm.js +2 -2
- package/lib/commonjs/components/forms/WalletNameForm.js.map +1 -1
- package/lib/commonjs/components/inputs/BiometryControl.js +2 -2
- package/lib/commonjs/components/inputs/BiometryControl.js.map +1 -1
- package/lib/commonjs/components/inputs/BulletPoint.js +2 -2
- package/lib/commonjs/components/inputs/BulletPoint.js.map +1 -1
- package/lib/commonjs/components/listItems/ContactCredentialListItem.js +3 -3
- package/lib/commonjs/components/listItems/ContactCredentialListItem.js.map +1 -1
- package/lib/commonjs/components/listItems/ContactListItem.js +2 -2
- package/lib/commonjs/components/listItems/ContactListItem.js.map +1 -1
- package/lib/commonjs/components/listItems/NotificationListItem.js +22 -22
- package/lib/commonjs/components/listItems/NotificationListItem.js.map +1 -1
- package/lib/commonjs/components/misc/ConnectionAlert.js +5 -5
- package/lib/commonjs/components/misc/ConnectionAlert.js.map +1 -1
- package/lib/commonjs/components/misc/ConnectionImage.js +3 -3
- package/lib/commonjs/components/misc/ConnectionImage.js.map +1 -1
- package/lib/commonjs/components/misc/CredentialCard.js +2 -2
- package/lib/commonjs/components/misc/CredentialCard.js.map +1 -1
- package/lib/commonjs/components/misc/CredentialCard10.js +6 -6
- package/lib/commonjs/components/misc/CredentialCard10.js.map +1 -1
- package/lib/commonjs/components/misc/CredentialCard11.js +12 -12
- package/lib/commonjs/components/misc/CredentialCard11.js.map +1 -1
- package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js +3 -3
- package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js.map +1 -1
- package/lib/commonjs/components/misc/EmptyList.js +2 -2
- package/lib/commonjs/components/misc/EmptyList.js.map +1 -1
- package/lib/commonjs/components/misc/EmptyListContacts.js +2 -2
- package/lib/commonjs/components/misc/EmptyListContacts.js.map +1 -1
- package/lib/commonjs/components/misc/FauxHeader.js +2 -2
- package/lib/commonjs/components/misc/FauxHeader.js.map +1 -1
- package/lib/commonjs/components/misc/InfoBox.js +29 -29
- package/lib/commonjs/components/misc/InfoBox.js.map +1 -1
- package/lib/commonjs/components/misc/NoNewUpdates.js +2 -2
- package/lib/commonjs/components/misc/NoNewUpdates.js.map +1 -1
- package/lib/commonjs/components/misc/PINValidationHelper.js +3 -3
- package/lib/commonjs/components/misc/PINValidationHelper.js.map +1 -1
- package/lib/commonjs/components/misc/QRRenderer.js +2 -2
- package/lib/commonjs/components/misc/QRRenderer.js.map +1 -1
- package/lib/commonjs/components/misc/QRScanner.js +3 -3
- package/lib/commonjs/components/misc/QRScanner.js.map +1 -1
- package/lib/commonjs/components/misc/QRScannerTorch.js +4 -4
- package/lib/commonjs/components/misc/QRScannerTorch.js.map +1 -1
- package/lib/commonjs/components/misc/SharedProofData.js +2 -2
- package/lib/commonjs/components/misc/SharedProofData.js.map +1 -1
- package/lib/commonjs/components/misc/UnorderedList.js +3 -3
- package/lib/commonjs/components/misc/UnorderedList.js.map +1 -1
- package/lib/commonjs/components/misc/VerifierCredentialCard.js +7 -7
- package/lib/commonjs/components/misc/VerifierCredentialCard.js.map +1 -1
- package/lib/commonjs/components/modals/AppGuideModal.js +7 -7
- package/lib/commonjs/components/modals/AppGuideModal.js.map +1 -1
- package/lib/commonjs/components/modals/CameraDisclosureModal.js +4 -4
- package/lib/commonjs/components/modals/CameraDisclosureModal.js.map +1 -1
- package/lib/commonjs/components/modals/CommonRemoveModal.js +7 -7
- package/lib/commonjs/components/modals/CommonRemoveModal.js.map +1 -1
- package/lib/commonjs/components/modals/DismissiblePopupModal.js +7 -7
- package/lib/commonjs/components/modals/DismissiblePopupModal.js.map +1 -1
- package/lib/commonjs/components/modals/ErrorModal.js +4 -4
- package/lib/commonjs/components/modals/ErrorModal.js.map +1 -1
- package/lib/commonjs/components/modals/ImageModal.js +4 -4
- package/lib/commonjs/components/modals/ImageModal.js.map +1 -1
- package/lib/commonjs/components/modals/PopupModal.js +2 -2
- package/lib/commonjs/components/modals/PopupModal.js.map +1 -1
- package/lib/commonjs/components/modals/ProofCancelModal.js +2 -2
- package/lib/commonjs/components/modals/ProofCancelModal.js.map +1 -1
- package/lib/commonjs/components/record/RecordFooter.js +2 -2
- package/lib/commonjs/components/record/RecordFooter.js.map +1 -1
- package/lib/commonjs/components/record/RecordHeader.js +2 -2
- package/lib/commonjs/components/record/RecordHeader.js.map +1 -1
- package/lib/commonjs/components/record/RecordRemove.js +5 -5
- package/lib/commonjs/components/record/RecordRemove.js.map +1 -1
- package/lib/commonjs/components/texts/HighlightTextBox.js +3 -3
- package/lib/commonjs/components/texts/HighlightTextBox.js.map +1 -1
- package/lib/commonjs/components/texts/InfoTextBox.js +17 -17
- package/lib/commonjs/components/texts/InfoTextBox.js.map +1 -1
- package/lib/commonjs/components/texts/Link.js +2 -2
- package/lib/commonjs/components/texts/Link.js.map +1 -1
- package/lib/commonjs/components/toast/BaseToast.js +17 -17
- package/lib/commonjs/components/toast/BaseToast.js.map +1 -1
- package/lib/commonjs/components/tour/CredentialOfferTourSteps.js +2 -2
- package/lib/commonjs/components/tour/CredentialOfferTourSteps.js.map +1 -1
- package/lib/commonjs/components/tour/CredentialsTourSteps.js +2 -2
- package/lib/commonjs/components/tour/CredentialsTourSteps.js.map +1 -1
- package/lib/commonjs/components/tour/HomeTourSteps.js +6 -6
- package/lib/commonjs/components/tour/HomeTourSteps.js.map +1 -1
- package/lib/commonjs/components/tour/ProofRequestTourSteps.js +2 -2
- package/lib/commonjs/components/tour/ProofRequestTourSteps.js.map +1 -1
- package/lib/commonjs/components/tour/TourBox.js +6 -6
- package/lib/commonjs/components/tour/TourBox.js.map +1 -1
- package/lib/commonjs/components/views/Banner.js +19 -9
- package/lib/commonjs/components/views/Banner.js.map +1 -1
- package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js +3 -3
- package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js.map +1 -1
- package/lib/commonjs/components/views/KeyboardView.js +2 -2
- package/lib/commonjs/components/views/KeyboardView.js.map +1 -1
- package/lib/commonjs/components/views/ProgressBar.js +3 -3
- package/lib/commonjs/components/views/ProgressBar.js.map +1 -1
- package/lib/commonjs/contexts/reducers/store.js +2 -1
- package/lib/commonjs/contexts/reducers/store.js.map +1 -1
- package/lib/commonjs/hooks/chat-messages.js +3 -3
- package/lib/commonjs/hooks/chat-messages.js.map +1 -1
- package/lib/commonjs/hooks/credential-card-styles.js +4 -4
- package/lib/commonjs/hooks/credential-card-styles.js.map +1 -1
- package/lib/commonjs/index.js +11 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/history/ui/HistoryPage.js +2 -2
- package/lib/commonjs/modules/history/ui/HistoryPage.js.map +1 -1
- package/lib/commonjs/modules/history/ui/HistorySettings.js +2 -2
- package/lib/commonjs/modules/history/ui/HistorySettings.js.map +1 -1
- package/lib/commonjs/modules/history/ui/components/HistoryListItem.js +2 -2
- package/lib/commonjs/modules/history/ui/components/HistoryListItem.js.map +1 -1
- package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js +5 -5
- package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js.map +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js +2 -2
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js +2 -2
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js +2 -2
- package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js +4 -4
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
- package/lib/commonjs/navigators/TabStack.js +2 -2
- package/lib/commonjs/navigators/TabStack.js.map +1 -1
- package/lib/commonjs/navigators/defaultStackOptions.js +3 -3
- package/lib/commonjs/navigators/defaultStackOptions.js.map +1 -1
- package/lib/commonjs/screens/AttemptLockout.js +2 -2
- package/lib/commonjs/screens/AttemptLockout.js.map +1 -1
- package/lib/commonjs/screens/AutoLock.js +7 -7
- package/lib/commonjs/screens/AutoLock.js.map +1 -1
- package/lib/commonjs/screens/ConfigureMediator.js +7 -7
- package/lib/commonjs/screens/ConfigureMediator.js.map +1 -1
- package/lib/commonjs/screens/ContactDetails.js +9 -9
- package/lib/commonjs/screens/ContactDetails.js.map +1 -1
- package/lib/commonjs/screens/CredentialDetails.js +16 -16
- package/lib/commonjs/screens/CredentialDetails.js.map +1 -1
- package/lib/commonjs/screens/CredentialOffer.js +2 -2
- package/lib/commonjs/screens/CredentialOffer.js.map +1 -1
- package/lib/commonjs/screens/DataRetention.js +11 -11
- package/lib/commonjs/screens/DataRetention.js.map +1 -1
- package/lib/commonjs/screens/Developer.js +29 -29
- package/lib/commonjs/screens/Developer.js.map +1 -1
- package/lib/commonjs/screens/Home.js +2 -2
- package/lib/commonjs/screens/Home.js.map +1 -1
- package/lib/commonjs/screens/JSONDetails.js +3 -3
- package/lib/commonjs/screens/JSONDetails.js.map +1 -1
- package/lib/commonjs/screens/Language.js +7 -7
- package/lib/commonjs/screens/Language.js.map +1 -1
- package/lib/commonjs/screens/ListContacts.js +3 -3
- package/lib/commonjs/screens/ListContacts.js.map +1 -1
- package/lib/commonjs/screens/ListCredentials.js +2 -2
- package/lib/commonjs/screens/ListCredentials.js.map +1 -1
- package/lib/commonjs/screens/ListProofRequests.js +2 -2
- package/lib/commonjs/screens/ListProofRequests.js.map +1 -1
- package/lib/commonjs/screens/MobileVerifierLoading.js +3 -3
- package/lib/commonjs/screens/MobileVerifierLoading.js.map +1 -1
- package/lib/commonjs/screens/PINChange.js +2 -2
- package/lib/commonjs/screens/PINChange.js.map +1 -1
- package/lib/commonjs/screens/PINCreate.js +5 -3
- package/lib/commonjs/screens/PINCreate.js.map +1 -1
- package/lib/commonjs/screens/PINEnter.js +3 -3
- package/lib/commonjs/screens/PINEnter.js.map +1 -1
- package/lib/commonjs/screens/PINExplainer.js +3 -3
- package/lib/commonjs/screens/PINExplainer.js.map +1 -1
- package/lib/commonjs/screens/PINVerify.js +2 -2
- package/lib/commonjs/screens/PINVerify.js.map +1 -1
- package/lib/commonjs/screens/PasteUrl.js +4 -4
- package/lib/commonjs/screens/PasteUrl.js.map +1 -1
- package/lib/commonjs/screens/ProofChangeCredential.js +2 -2
- package/lib/commonjs/screens/ProofChangeCredential.js.map +1 -1
- package/lib/commonjs/screens/ProofDetails.js +3 -3
- package/lib/commonjs/screens/ProofDetails.js.map +1 -1
- package/lib/commonjs/screens/ProofRequest.js +7 -7
- package/lib/commonjs/screens/ProofRequest.js.map +1 -1
- package/lib/commonjs/screens/ProofRequestAccept.js +3 -3
- package/lib/commonjs/screens/ProofRequestAccept.js.map +1 -1
- package/lib/commonjs/screens/ProofRequestDetails.js +4 -4
- package/lib/commonjs/screens/ProofRequestDetails.js.map +1 -1
- package/lib/commonjs/screens/ProofRequestUsageHistory.js +2 -2
- package/lib/commonjs/screens/ProofRequestUsageHistory.js.map +1 -1
- package/lib/commonjs/screens/ProofRequesting.js +5 -5
- package/lib/commonjs/screens/ProofRequesting.js.map +1 -1
- package/lib/commonjs/screens/RenameContact.js +2 -2
- package/lib/commonjs/screens/RenameContact.js.map +1 -1
- package/lib/commonjs/screens/Settings.js +5 -5
- package/lib/commonjs/screens/Settings.js.map +1 -1
- package/lib/commonjs/screens/Splash.js +2 -2
- package/lib/commonjs/screens/Splash.js.map +1 -1
- package/lib/commonjs/screens/ToggleBiometry.js +2 -2
- package/lib/commonjs/screens/ToggleBiometry.js.map +1 -1
- package/lib/commonjs/screens/TogglePushNotifications.js +5 -5
- package/lib/commonjs/screens/TogglePushNotifications.js.map +1 -1
- package/lib/commonjs/screens/Tours.js +5 -5
- package/lib/commonjs/screens/Tours.js.map +1 -1
- package/lib/commonjs/screens/UpdateAvailable.js +2 -2
- package/lib/commonjs/screens/UpdateAvailable.js.map +1 -1
- package/lib/commonjs/screens/WhatAreContacts.js +2 -2
- package/lib/commonjs/screens/WhatAreContacts.js.map +1 -1
- package/lib/commonjs/services/logger.js +27 -35
- package/lib/commonjs/services/logger.js.map +1 -1
- package/lib/commonjs/theme-builder.js +140 -0
- package/lib/commonjs/theme-builder.js.map +1 -0
- package/lib/commonjs/theme.interface.js +6 -0
- package/lib/commonjs/theme.interface.js.map +1 -0
- package/lib/commonjs/theme.js +904 -670
- package/lib/commonjs/theme.js.map +1 -1
- package/lib/commonjs/utils/credential.js +3 -3
- package/lib/commonjs/utils/credential.js.map +1 -1
- package/lib/commonjs/utils/mediatorhelpers.js +16 -12
- package/lib/commonjs/utils/mediatorhelpers.js.map +1 -1
- package/lib/module/App.js +1 -1
- package/lib/module/App.js.map +1 -1
- package/lib/module/components/animated/ButtonLoading.js +2 -2
- package/lib/module/components/animated/ButtonLoading.js.map +1 -1
- package/lib/module/components/animated/ConnectionLoading.js +3 -3
- package/lib/module/components/animated/ConnectionLoading.js.map +1 -1
- package/lib/module/components/animated/LoadingIndicator.js +2 -2
- package/lib/module/components/animated/LoadingIndicator.js.map +1 -1
- package/lib/module/components/animated/PresentationLoading.js +3 -3
- package/lib/module/components/animated/PresentationLoading.js.map +1 -1
- package/lib/module/components/animated/RecordLoading.js +5 -5
- package/lib/module/components/animated/RecordLoading.js.map +1 -1
- package/lib/module/components/animated/SendingProof.js +3 -3
- package/lib/module/components/animated/SendingProof.js.map +1 -1
- package/lib/module/components/animated/SentProof.js +3 -3
- package/lib/module/components/animated/SentProof.js.map +1 -1
- package/lib/module/components/buttons/Button.js +1 -1
- package/lib/module/components/buttons/Button.js.map +1 -1
- package/lib/module/components/buttons/IconButton.js +3 -3
- package/lib/module/components/buttons/IconButton.js.map +1 -1
- package/lib/module/components/buttons/ToggleButton.js +3 -3
- package/lib/module/components/buttons/ToggleButton.js.map +1 -1
- package/lib/module/components/chat/ActionSlider.js +3 -3
- package/lib/module/components/chat/ActionSlider.js.map +1 -1
- package/lib/module/components/forms/WalletNameForm.js +2 -2
- package/lib/module/components/forms/WalletNameForm.js.map +1 -1
- package/lib/module/components/inputs/BiometryControl.js +2 -2
- package/lib/module/components/inputs/BiometryControl.js.map +1 -1
- package/lib/module/components/inputs/BulletPoint.js +2 -2
- package/lib/module/components/inputs/BulletPoint.js.map +1 -1
- package/lib/module/components/listItems/ContactCredentialListItem.js +3 -3
- package/lib/module/components/listItems/ContactCredentialListItem.js.map +1 -1
- package/lib/module/components/listItems/ContactListItem.js +2 -2
- package/lib/module/components/listItems/ContactListItem.js.map +1 -1
- package/lib/module/components/listItems/NotificationListItem.js +22 -22
- package/lib/module/components/listItems/NotificationListItem.js.map +1 -1
- package/lib/module/components/misc/ConnectionAlert.js +5 -5
- package/lib/module/components/misc/ConnectionAlert.js.map +1 -1
- package/lib/module/components/misc/ConnectionImage.js +3 -3
- package/lib/module/components/misc/ConnectionImage.js.map +1 -1
- package/lib/module/components/misc/CredentialCard.js +2 -2
- package/lib/module/components/misc/CredentialCard.js.map +1 -1
- package/lib/module/components/misc/CredentialCard10.js +6 -6
- package/lib/module/components/misc/CredentialCard10.js.map +1 -1
- package/lib/module/components/misc/CredentialCard11.js +12 -12
- package/lib/module/components/misc/CredentialCard11.js.map +1 -1
- package/lib/module/components/misc/CredentialCard11ActionFooter.js +3 -3
- package/lib/module/components/misc/CredentialCard11ActionFooter.js.map +1 -1
- package/lib/module/components/misc/EmptyList.js +2 -2
- package/lib/module/components/misc/EmptyList.js.map +1 -1
- package/lib/module/components/misc/EmptyListContacts.js +2 -2
- package/lib/module/components/misc/EmptyListContacts.js.map +1 -1
- package/lib/module/components/misc/FauxHeader.js +2 -2
- package/lib/module/components/misc/FauxHeader.js.map +1 -1
- package/lib/module/components/misc/InfoBox.js +29 -29
- package/lib/module/components/misc/InfoBox.js.map +1 -1
- package/lib/module/components/misc/NoNewUpdates.js +2 -2
- package/lib/module/components/misc/NoNewUpdates.js.map +1 -1
- package/lib/module/components/misc/PINValidationHelper.js +3 -3
- package/lib/module/components/misc/PINValidationHelper.js.map +1 -1
- package/lib/module/components/misc/QRRenderer.js +2 -2
- package/lib/module/components/misc/QRRenderer.js.map +1 -1
- package/lib/module/components/misc/QRScanner.js +3 -3
- package/lib/module/components/misc/QRScanner.js.map +1 -1
- package/lib/module/components/misc/QRScannerTorch.js +4 -4
- package/lib/module/components/misc/QRScannerTorch.js.map +1 -1
- package/lib/module/components/misc/SharedProofData.js +2 -2
- package/lib/module/components/misc/SharedProofData.js.map +1 -1
- package/lib/module/components/misc/UnorderedList.js +3 -3
- package/lib/module/components/misc/UnorderedList.js.map +1 -1
- package/lib/module/components/misc/VerifierCredentialCard.js +7 -7
- package/lib/module/components/misc/VerifierCredentialCard.js.map +1 -1
- package/lib/module/components/modals/AppGuideModal.js +7 -7
- package/lib/module/components/modals/AppGuideModal.js.map +1 -1
- package/lib/module/components/modals/CameraDisclosureModal.js +4 -4
- package/lib/module/components/modals/CameraDisclosureModal.js.map +1 -1
- package/lib/module/components/modals/CommonRemoveModal.js +7 -7
- package/lib/module/components/modals/CommonRemoveModal.js.map +1 -1
- package/lib/module/components/modals/DismissiblePopupModal.js +7 -7
- package/lib/module/components/modals/DismissiblePopupModal.js.map +1 -1
- package/lib/module/components/modals/ErrorModal.js +4 -4
- package/lib/module/components/modals/ErrorModal.js.map +1 -1
- package/lib/module/components/modals/ImageModal.js +4 -4
- package/lib/module/components/modals/ImageModal.js.map +1 -1
- package/lib/module/components/modals/PopupModal.js +2 -2
- package/lib/module/components/modals/PopupModal.js.map +1 -1
- package/lib/module/components/modals/ProofCancelModal.js +2 -2
- package/lib/module/components/modals/ProofCancelModal.js.map +1 -1
- package/lib/module/components/record/RecordFooter.js +2 -2
- package/lib/module/components/record/RecordFooter.js.map +1 -1
- package/lib/module/components/record/RecordHeader.js +2 -2
- package/lib/module/components/record/RecordHeader.js.map +1 -1
- package/lib/module/components/record/RecordRemove.js +5 -5
- package/lib/module/components/record/RecordRemove.js.map +1 -1
- package/lib/module/components/texts/HighlightTextBox.js +3 -3
- package/lib/module/components/texts/HighlightTextBox.js.map +1 -1
- package/lib/module/components/texts/InfoTextBox.js +17 -17
- package/lib/module/components/texts/InfoTextBox.js.map +1 -1
- package/lib/module/components/texts/Link.js +2 -2
- package/lib/module/components/texts/Link.js.map +1 -1
- package/lib/module/components/toast/BaseToast.js +17 -17
- package/lib/module/components/toast/BaseToast.js.map +1 -1
- package/lib/module/components/tour/CredentialOfferTourSteps.js +2 -2
- package/lib/module/components/tour/CredentialOfferTourSteps.js.map +1 -1
- package/lib/module/components/tour/CredentialsTourSteps.js +2 -2
- package/lib/module/components/tour/CredentialsTourSteps.js.map +1 -1
- package/lib/module/components/tour/HomeTourSteps.js +6 -6
- package/lib/module/components/tour/HomeTourSteps.js.map +1 -1
- package/lib/module/components/tour/ProofRequestTourSteps.js +2 -2
- package/lib/module/components/tour/ProofRequestTourSteps.js.map +1 -1
- package/lib/module/components/tour/TourBox.js +6 -6
- package/lib/module/components/tour/TourBox.js.map +1 -1
- package/lib/module/components/views/Banner.js +19 -9
- package/lib/module/components/views/Banner.js.map +1 -1
- package/lib/module/components/views/CredentialDetailPrimaryHeader.js +3 -3
- package/lib/module/components/views/CredentialDetailPrimaryHeader.js.map +1 -1
- package/lib/module/components/views/KeyboardView.js +2 -2
- package/lib/module/components/views/KeyboardView.js.map +1 -1
- package/lib/module/components/views/ProgressBar.js +3 -3
- package/lib/module/components/views/ProgressBar.js.map +1 -1
- package/lib/module/contexts/reducers/store.js +2 -1
- package/lib/module/contexts/reducers/store.js.map +1 -1
- package/lib/module/hooks/chat-messages.js +3 -3
- package/lib/module/hooks/chat-messages.js.map +1 -1
- package/lib/module/hooks/credential-card-styles.js +4 -4
- package/lib/module/hooks/credential-card-styles.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/history/ui/HistoryPage.js +2 -2
- package/lib/module/modules/history/ui/HistoryPage.js.map +1 -1
- package/lib/module/modules/history/ui/HistorySettings.js +2 -2
- package/lib/module/modules/history/ui/HistorySettings.js.map +1 -1
- package/lib/module/modules/history/ui/components/HistoryListItem.js +2 -2
- package/lib/module/modules/history/ui/components/HistoryListItem.js.map +1 -1
- package/lib/module/modules/openid/components/OpenIDCredentialCard.js +5 -5
- package/lib/module/modules/openid/components/OpenIDCredentialCard.js.map +1 -1
- package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js +2 -2
- package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -1
- package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js +2 -2
- package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -1
- package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js +2 -2
- package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js +4 -4
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
- package/lib/module/navigators/TabStack.js +2 -2
- package/lib/module/navigators/TabStack.js.map +1 -1
- package/lib/module/navigators/defaultStackOptions.js +3 -3
- package/lib/module/navigators/defaultStackOptions.js.map +1 -1
- package/lib/module/screens/AttemptLockout.js +2 -2
- package/lib/module/screens/AttemptLockout.js.map +1 -1
- package/lib/module/screens/AutoLock.js +7 -7
- package/lib/module/screens/AutoLock.js.map +1 -1
- package/lib/module/screens/ConfigureMediator.js +7 -7
- package/lib/module/screens/ConfigureMediator.js.map +1 -1
- package/lib/module/screens/ContactDetails.js +9 -9
- package/lib/module/screens/ContactDetails.js.map +1 -1
- package/lib/module/screens/CredentialDetails.js +16 -16
- package/lib/module/screens/CredentialDetails.js.map +1 -1
- package/lib/module/screens/CredentialOffer.js +2 -2
- package/lib/module/screens/CredentialOffer.js.map +1 -1
- package/lib/module/screens/DataRetention.js +11 -11
- package/lib/module/screens/DataRetention.js.map +1 -1
- package/lib/module/screens/Developer.js +29 -29
- package/lib/module/screens/Developer.js.map +1 -1
- package/lib/module/screens/Home.js +2 -2
- package/lib/module/screens/Home.js.map +1 -1
- package/lib/module/screens/JSONDetails.js +3 -3
- package/lib/module/screens/JSONDetails.js.map +1 -1
- package/lib/module/screens/Language.js +7 -7
- package/lib/module/screens/Language.js.map +1 -1
- package/lib/module/screens/ListContacts.js +3 -3
- package/lib/module/screens/ListContacts.js.map +1 -1
- package/lib/module/screens/ListCredentials.js +2 -2
- package/lib/module/screens/ListCredentials.js.map +1 -1
- package/lib/module/screens/ListProofRequests.js +2 -2
- package/lib/module/screens/ListProofRequests.js.map +1 -1
- package/lib/module/screens/MobileVerifierLoading.js +3 -3
- package/lib/module/screens/MobileVerifierLoading.js.map +1 -1
- package/lib/module/screens/PINChange.js +2 -2
- package/lib/module/screens/PINChange.js.map +1 -1
- package/lib/module/screens/PINCreate.js +5 -3
- package/lib/module/screens/PINCreate.js.map +1 -1
- package/lib/module/screens/PINEnter.js +3 -3
- package/lib/module/screens/PINEnter.js.map +1 -1
- package/lib/module/screens/PINExplainer.js +3 -3
- package/lib/module/screens/PINExplainer.js.map +1 -1
- package/lib/module/screens/PINVerify.js +2 -2
- package/lib/module/screens/PINVerify.js.map +1 -1
- package/lib/module/screens/PasteUrl.js +4 -4
- package/lib/module/screens/PasteUrl.js.map +1 -1
- package/lib/module/screens/ProofChangeCredential.js +2 -2
- package/lib/module/screens/ProofChangeCredential.js.map +1 -1
- package/lib/module/screens/ProofDetails.js +3 -3
- package/lib/module/screens/ProofDetails.js.map +1 -1
- package/lib/module/screens/ProofRequest.js +7 -7
- package/lib/module/screens/ProofRequest.js.map +1 -1
- package/lib/module/screens/ProofRequestAccept.js +3 -3
- package/lib/module/screens/ProofRequestAccept.js.map +1 -1
- package/lib/module/screens/ProofRequestDetails.js +4 -4
- package/lib/module/screens/ProofRequestDetails.js.map +1 -1
- package/lib/module/screens/ProofRequestUsageHistory.js +2 -2
- package/lib/module/screens/ProofRequestUsageHistory.js.map +1 -1
- package/lib/module/screens/ProofRequesting.js +5 -5
- package/lib/module/screens/ProofRequesting.js.map +1 -1
- package/lib/module/screens/RenameContact.js +2 -2
- package/lib/module/screens/RenameContact.js.map +1 -1
- package/lib/module/screens/Settings.js +5 -5
- package/lib/module/screens/Settings.js.map +1 -1
- package/lib/module/screens/Splash.js +2 -2
- package/lib/module/screens/Splash.js.map +1 -1
- package/lib/module/screens/ToggleBiometry.js +2 -2
- package/lib/module/screens/ToggleBiometry.js.map +1 -1
- package/lib/module/screens/TogglePushNotifications.js +5 -5
- package/lib/module/screens/TogglePushNotifications.js.map +1 -1
- package/lib/module/screens/Tours.js +5 -5
- package/lib/module/screens/Tours.js.map +1 -1
- package/lib/module/screens/UpdateAvailable.js +2 -2
- package/lib/module/screens/UpdateAvailable.js.map +1 -1
- package/lib/module/screens/WhatAreContacts.js +2 -2
- package/lib/module/screens/WhatAreContacts.js.map +1 -1
- package/lib/module/services/logger.js +27 -35
- package/lib/module/services/logger.js.map +1 -1
- package/lib/module/theme-builder.js +133 -0
- package/lib/module/theme-builder.js.map +1 -0
- package/lib/module/theme.interface.js +2 -0
- package/lib/module/theme.interface.js.map +1 -0
- package/lib/module/theme.js +888 -669
- package/lib/module/theme.js.map +1 -1
- package/lib/module/utils/credential.js +3 -3
- package/lib/module/utils/credential.js.map +1 -1
- package/lib/module/utils/mediatorhelpers.js +16 -12
- package/lib/module/utils/mediatorhelpers.js.map +1 -1
- package/lib/typescript/src/components/buttons/IconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/misc/CredentialCard11.d.ts.map +1 -1
- package/lib/typescript/src/components/views/Banner.d.ts.map +1 -1
- package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
- package/lib/typescript/src/hooks/credential-card-styles.d.ts +375 -13
- package/lib/typescript/src/hooks/credential-card-styles.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +5 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/defaultStackOptions.d.ts +1 -1
- package/lib/typescript/src/navigators/defaultStackOptions.d.ts.map +1 -1
- package/lib/typescript/src/screens/Developer.d.ts.map +1 -1
- package/lib/typescript/src/services/logger.d.ts +8 -7
- package/lib/typescript/src/services/logger.d.ts.map +1 -1
- package/lib/typescript/src/theme-builder.d.ts +68 -0
- package/lib/typescript/src/theme-builder.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +204 -702
- package/lib/typescript/src/theme.d.ts.map +1 -1
- package/lib/typescript/src/theme.interface.d.ts +557 -0
- package/lib/typescript/src/theme.interface.d.ts.map +1 -0
- package/lib/typescript/src/utils/credential.d.ts +1 -1
- package/lib/typescript/src/utils/credential.d.ts.map +1 -1
- package/lib/typescript/src/utils/mediatorhelpers.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/App.tsx +1 -1
- package/src/components/animated/ButtonLoading.tsx +2 -2
- package/src/components/animated/ConnectionLoading.tsx +3 -3
- package/src/components/animated/LoadingIndicator.tsx +2 -2
- package/src/components/animated/PresentationLoading.tsx +3 -3
- package/src/components/animated/RecordLoading.tsx +5 -5
- package/src/components/animated/SendingProof.tsx +3 -3
- package/src/components/animated/SentProof.tsx +3 -3
- package/src/components/buttons/Button.tsx +1 -1
- package/src/components/buttons/IconButton.tsx +5 -3
- package/src/components/buttons/ToggleButton.tsx +3 -3
- package/src/components/chat/ActionSlider.tsx +3 -3
- package/src/components/forms/WalletNameForm.tsx +2 -2
- package/src/components/inputs/BiometryControl.tsx +2 -2
- package/src/components/inputs/BulletPoint.tsx +2 -2
- package/src/components/listItems/ContactCredentialListItem.tsx +3 -3
- package/src/components/listItems/ContactListItem.tsx +2 -2
- package/src/components/listItems/NotificationListItem.tsx +22 -22
- package/src/components/misc/ConnectionAlert.tsx +5 -5
- package/src/components/misc/ConnectionImage.tsx +3 -3
- package/src/components/misc/CredentialCard.tsx +2 -2
- package/src/components/misc/CredentialCard10.tsx +6 -6
- package/src/components/misc/CredentialCard11.tsx +16 -12
- package/src/components/misc/CredentialCard11ActionFooter.tsx +3 -3
- package/src/components/misc/EmptyList.tsx +2 -2
- package/src/components/misc/EmptyListContacts.tsx +2 -2
- package/src/components/misc/FauxHeader.tsx +2 -2
- package/src/components/misc/InfoBox.tsx +29 -29
- package/src/components/misc/NoNewUpdates.tsx +2 -2
- package/src/components/misc/PINValidationHelper.tsx +3 -3
- package/src/components/misc/QRRenderer.tsx +2 -2
- package/src/components/misc/QRScanner.tsx +3 -3
- package/src/components/misc/QRScannerTorch.tsx +4 -4
- package/src/components/misc/SharedProofData.tsx +2 -2
- package/src/components/misc/UnorderedList.tsx +3 -3
- package/src/components/misc/VerifierCredentialCard.tsx +7 -7
- package/src/components/modals/AppGuideModal.tsx +7 -7
- package/src/components/modals/CameraDisclosureModal.tsx +4 -4
- package/src/components/modals/CommonRemoveModal.tsx +7 -7
- package/src/components/modals/DismissiblePopupModal.tsx +7 -7
- package/src/components/modals/ErrorModal.tsx +4 -4
- package/src/components/modals/ImageModal.tsx +4 -4
- package/src/components/modals/PopupModal.tsx +2 -2
- package/src/components/modals/ProofCancelModal.tsx +2 -2
- package/src/components/record/RecordFooter.tsx +2 -2
- package/src/components/record/RecordHeader.tsx +2 -2
- package/src/components/record/RecordRemove.tsx +5 -5
- package/src/components/texts/HighlightTextBox.tsx +3 -3
- package/src/components/texts/InfoTextBox.tsx +17 -17
- package/src/components/texts/Link.tsx +2 -2
- package/src/components/toast/BaseToast.tsx +17 -17
- package/src/components/tour/CredentialOfferTourSteps.tsx +2 -2
- package/src/components/tour/CredentialsTourSteps.tsx +2 -2
- package/src/components/tour/HomeTourSteps.tsx +6 -6
- package/src/components/tour/ProofRequestTourSteps.tsx +2 -2
- package/src/components/tour/TourBox.tsx +6 -6
- package/src/components/views/Banner.tsx +21 -14
- package/src/components/views/CredentialDetailPrimaryHeader.tsx +4 -4
- package/src/components/views/KeyboardView.tsx +2 -2
- package/src/components/views/ProgressBar.tsx +3 -3
- package/src/contexts/reducers/store.ts +4 -1
- package/src/hooks/chat-messages.tsx +3 -3
- package/src/hooks/credential-card-styles.ts +4 -4
- package/src/index.ts +5 -3
- package/src/modules/history/ui/HistoryPage.tsx +2 -2
- package/src/modules/history/ui/HistorySettings.tsx +2 -2
- package/src/modules/history/ui/components/HistoryListItem.tsx +2 -2
- package/src/modules/openid/components/OpenIDCredentialCard.tsx +5 -5
- package/src/modules/openid/screens/OpenIDCredentialDetails.tsx +2 -2
- package/src/modules/openid/screens/OpenIDCredentialOffer.tsx +2 -2
- package/src/modules/openid/screens/OpenIDProofChangeCredential.tsx +2 -2
- package/src/modules/openid/screens/OpenIDProofPresentation.tsx +4 -4
- package/src/navigators/TabStack.tsx +2 -2
- package/src/navigators/defaultStackOptions.tsx +3 -3
- package/src/screens/AttemptLockout.tsx +2 -2
- package/src/screens/AutoLock.tsx +7 -7
- package/src/screens/ConfigureMediator.tsx +7 -7
- package/src/screens/ContactDetails.tsx +9 -9
- package/src/screens/CredentialDetails.tsx +16 -16
- package/src/screens/CredentialOffer.tsx +2 -2
- package/src/screens/DataRetention.tsx +11 -11
- package/src/screens/Developer.tsx +24 -22
- package/src/screens/Home.tsx +2 -2
- package/src/screens/JSONDetails.tsx +3 -3
- package/src/screens/Language.tsx +7 -7
- package/src/screens/ListContacts.tsx +3 -3
- package/src/screens/ListCredentials.tsx +2 -2
- package/src/screens/ListProofRequests.tsx +2 -2
- package/src/screens/MobileVerifierLoading.tsx +3 -3
- package/src/screens/PINChange.tsx +2 -2
- package/src/screens/PINCreate.tsx +3 -3
- package/src/screens/PINEnter.tsx +3 -3
- package/src/screens/PINExplainer.tsx +3 -3
- package/src/screens/PINVerify.tsx +2 -2
- package/src/screens/PasteUrl.tsx +4 -4
- package/src/screens/ProofChangeCredential.tsx +2 -2
- package/src/screens/ProofDetails.tsx +3 -3
- package/src/screens/ProofRequest.tsx +7 -7
- package/src/screens/ProofRequestAccept.tsx +3 -3
- package/src/screens/ProofRequestDetails.tsx +4 -4
- package/src/screens/ProofRequestUsageHistory.tsx +2 -2
- package/src/screens/ProofRequesting.tsx +5 -5
- package/src/screens/RenameContact.tsx +2 -2
- package/src/screens/Settings.tsx +5 -5
- package/src/screens/Splash.tsx +2 -2
- package/src/screens/ToggleBiometry.tsx +2 -2
- package/src/screens/TogglePushNotifications.tsx +4 -4
- package/src/screens/Tours.tsx +5 -5
- package/src/screens/UpdateAvailable.tsx +2 -2
- package/src/screens/WhatAreContacts.tsx +2 -2
- package/src/services/logger.ts +35 -14
- package/src/theme-builder.ts +157 -0
- package/src/theme.interface.ts +580 -0
- package/src/theme.ts +881 -774
- package/src/utils/credential.ts +3 -3
- package/src/utils/mediatorhelpers.ts +23 -12
|
@@ -103,7 +103,7 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
103
103
|
}) => {
|
|
104
104
|
const [dimensions, setDimensions] = useState({ cardWidth: 0, cardHeight: 0 })
|
|
105
105
|
const { i18n, t } = useTranslation()
|
|
106
|
-
const {
|
|
106
|
+
const { ColorPalette, ListItems } = useTheme()
|
|
107
107
|
const [flaggedAttributes, setFlaggedAttributes] = useState<string[]>()
|
|
108
108
|
const [allPI, setAllPI] = useState<boolean>()
|
|
109
109
|
const credentialConnectionLabel = useCredentialConnectionLabel(credential)
|
|
@@ -152,18 +152,18 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
152
152
|
const navigation = useNavigation()
|
|
153
153
|
|
|
154
154
|
const backgroundColorIfRevoked = (backgroundColor?: string) =>
|
|
155
|
-
credentialErrors.includes(CredentialErrors.Revoked) ?
|
|
155
|
+
credentialErrors.includes(CredentialErrors.Revoked) ? ColorPalette.notification.errorBorder : backgroundColor
|
|
156
156
|
|
|
157
157
|
const fontColorWithHighContrast = () => {
|
|
158
158
|
if (proof && brandingOverlayType === BrandingOverlayType.Branding10) {
|
|
159
|
-
return
|
|
159
|
+
return ColorPalette.grayscale.mediumGrey
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
const c =
|
|
163
|
-
backgroundColorIfRevoked(overlay.brandingOverlay?.primaryBackgroundColor) ??
|
|
163
|
+
backgroundColorIfRevoked(overlay.brandingOverlay?.primaryBackgroundColor) ?? ColorPalette.grayscale.lightGrey
|
|
164
164
|
const shade = shadeIsLightOrDark(c)
|
|
165
165
|
|
|
166
|
-
return shade == Shade.Light ?
|
|
166
|
+
return shade == Shade.Light ? ColorPalette.grayscale.darkGrey : ColorPalette.grayscale.lightGrey
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const parseAttribute = useCallback(
|
|
@@ -317,7 +317,7 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
317
317
|
variant="bold"
|
|
318
318
|
style={[
|
|
319
319
|
styles.textContainer,
|
|
320
|
-
{ color: warn ?
|
|
320
|
+
{ color: warn ? ColorPalette.notification.warnText : styles.textContainer.color },
|
|
321
321
|
]}
|
|
322
322
|
testID={testIdWithKey('AttributeValue')}
|
|
323
323
|
>
|
|
@@ -354,7 +354,7 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
354
354
|
testID={testIdWithKey('AttributeNameWarningIcon')}
|
|
355
355
|
style={{ paddingTop: 2, paddingHorizontal: 2 }}
|
|
356
356
|
name="warning"
|
|
357
|
-
color={
|
|
357
|
+
color={ColorPalette.notification.warnIcon}
|
|
358
358
|
size={ListItems.recordAttributeText.fontSize}
|
|
359
359
|
/>
|
|
360
360
|
)}
|
|
@@ -385,7 +385,9 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
385
385
|
text={t('ProofRequest.ChangeCredential')}
|
|
386
386
|
testID={'ChangeCredential'}
|
|
387
387
|
textColor={
|
|
388
|
-
isBranding11
|
|
388
|
+
isBranding11
|
|
389
|
+
? credentialTextColor(ColorPalette, overlay.brandingOverlay?.primaryBackgroundColor)
|
|
390
|
+
: undefined
|
|
389
391
|
}
|
|
390
392
|
/>
|
|
391
393
|
)
|
|
@@ -397,7 +399,9 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
397
399
|
text={t('ProofRequest.GetThisCredential')}
|
|
398
400
|
testID={'GetThisCredential'}
|
|
399
401
|
textColor={
|
|
400
|
-
isBranding11
|
|
402
|
+
isBranding11
|
|
403
|
+
? credentialTextColor(ColorPalette, overlay.brandingOverlay?.primaryBackgroundColor)
|
|
404
|
+
: undefined
|
|
401
405
|
}
|
|
402
406
|
/>
|
|
403
407
|
)
|
|
@@ -425,7 +429,7 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
425
429
|
styles.textContainer,
|
|
426
430
|
styles.credentialName,
|
|
427
431
|
{
|
|
428
|
-
color: allPI && proof ?
|
|
432
|
+
color: allPI && proof ? ColorPalette.notification.warnText : styles.textContainer.color,
|
|
429
433
|
},
|
|
430
434
|
]}
|
|
431
435
|
>
|
|
@@ -578,13 +582,13 @@ const CredentialCard11: React.FC<CredentialCard11Props> = ({
|
|
|
578
582
|
style={[
|
|
579
583
|
styles.statusContainer,
|
|
580
584
|
{
|
|
581
|
-
backgroundColor: status === 'error' ?
|
|
585
|
+
backgroundColor: status === 'error' ? ColorPalette.notification.error : ColorPalette.notification.warn,
|
|
582
586
|
},
|
|
583
587
|
]}
|
|
584
588
|
>
|
|
585
589
|
<Icon
|
|
586
590
|
size={0.7 * logoHeight}
|
|
587
|
-
style={{ color: status === 'error' ?
|
|
591
|
+
style={{ color: status === 'error' ? ColorPalette.semantic.error : ColorPalette.notification.warnIcon }}
|
|
588
592
|
name={status}
|
|
589
593
|
/>
|
|
590
594
|
</View>
|
|
@@ -15,13 +15,13 @@ interface CredentialActionFooterProps {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const CredentialActionFooter = ({ onPress, text, testID, textColor }: CredentialActionFooterProps) => {
|
|
18
|
-
const {
|
|
18
|
+
const { ColorPalette, TextTheme } = useTheme()
|
|
19
19
|
const styles = StyleSheet.create({
|
|
20
20
|
seperator: {
|
|
21
21
|
width: '100%',
|
|
22
22
|
height: 2,
|
|
23
23
|
marginVertical: 10,
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: ColorPalette.grayscale.lightGrey,
|
|
25
25
|
},
|
|
26
26
|
touchable: {
|
|
27
27
|
display: 'flex',
|
|
@@ -32,7 +32,7 @@ const CredentialActionFooter = ({ onPress, text, testID, textColor }: Credential
|
|
|
32
32
|
credActionText: {
|
|
33
33
|
fontSize: 20,
|
|
34
34
|
fontWeight: TextTheme.bold.fontWeight,
|
|
35
|
-
color: textColor ??
|
|
35
|
+
color: textColor ?? ColorPalette.brand.link,
|
|
36
36
|
},
|
|
37
37
|
})
|
|
38
38
|
|
|
@@ -12,10 +12,10 @@ export interface EmptyListProps {
|
|
|
12
12
|
|
|
13
13
|
const EmptyList: React.FC<EmptyListProps> = ({ message }) => {
|
|
14
14
|
const { t } = useTranslation()
|
|
15
|
-
const { ListItems, Assets,
|
|
15
|
+
const { ListItems, Assets, ColorPalette } = useTheme()
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
<View style={{ paddingTop: 100, height: '100%', backgroundColor:
|
|
18
|
+
<View style={{ paddingTop: 100, height: '100%', backgroundColor: ColorPalette.brand.primaryBackground }}>
|
|
19
19
|
<Assets.svg.emptyWallet fill={ListItems.emptyList.color} height={100} />
|
|
20
20
|
<ThemedText style={[ListItems.emptyList, { textAlign: 'center' }]} testID={testIdWithKey('NoneYet')}>
|
|
21
21
|
{message || t('Global.NoneYet!')}
|
|
@@ -14,7 +14,7 @@ export interface EmptyListProps {
|
|
|
14
14
|
|
|
15
15
|
const EmptyListContacts: React.FC<EmptyListProps> = ({ navigation }) => {
|
|
16
16
|
const { t } = useTranslation()
|
|
17
|
-
const { ListItems, Assets,
|
|
17
|
+
const { ListItems, Assets, ColorPalette } = useTheme()
|
|
18
18
|
const styles = StyleSheet.create({
|
|
19
19
|
container: {
|
|
20
20
|
flex: 1,
|
|
@@ -23,7 +23,7 @@ const EmptyListContacts: React.FC<EmptyListProps> = ({ navigation }) => {
|
|
|
23
23
|
alignItems: 'center',
|
|
24
24
|
padding: 40,
|
|
25
25
|
paddingTop: 100,
|
|
26
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: ColorPalette.brand.primaryBackground,
|
|
27
27
|
},
|
|
28
28
|
text: {
|
|
29
29
|
textAlign: 'center',
|
|
@@ -14,7 +14,7 @@ interface FauxHeaderProps {
|
|
|
14
14
|
|
|
15
15
|
// Used for modals that we want to look like regular screens
|
|
16
16
|
const FauxHeader: React.FC<FauxHeaderProps> = ({ title, onBackPressed }) => {
|
|
17
|
-
const {
|
|
17
|
+
const { ColorPalette, Spacing, NavigationTheme } = useTheme()
|
|
18
18
|
const { t } = useTranslation()
|
|
19
19
|
const styles = StyleSheet.create({
|
|
20
20
|
header: {
|
|
@@ -22,7 +22,7 @@ const FauxHeader: React.FC<FauxHeaderProps> = ({ title, onBackPressed }) => {
|
|
|
22
22
|
elevation: 0,
|
|
23
23
|
shadowOffset: { width: 0, height: 6 },
|
|
24
24
|
shadowRadius: 6,
|
|
25
|
-
shadowColor:
|
|
25
|
+
shadowColor: ColorPalette.grayscale.black,
|
|
26
26
|
shadowOpacity: 0.15,
|
|
27
27
|
zIndex: 2,
|
|
28
28
|
borderWidth: 0,
|
|
@@ -61,13 +61,13 @@ const InfoBox: React.FC<InfoBoxProps> = ({
|
|
|
61
61
|
}) => {
|
|
62
62
|
const { width } = useWindowDimensions()
|
|
63
63
|
const { t } = useTranslation()
|
|
64
|
-
const { TextTheme,
|
|
64
|
+
const { TextTheme, ColorPalette } = useTheme()
|
|
65
65
|
const [showDetails, setShowDetails] = useState<boolean>(renderShowDetails)
|
|
66
66
|
const [{ showDetailsInfo }] = useServices([TOKENS.CONFIG])
|
|
67
67
|
const styles = StyleSheet.create({
|
|
68
68
|
container: {
|
|
69
|
-
backgroundColor:
|
|
70
|
-
borderColor:
|
|
69
|
+
backgroundColor: ColorPalette.brand.modalPrimaryBackground,
|
|
70
|
+
borderColor: ColorPalette.notification.infoBorder,
|
|
71
71
|
borderRadius: 5,
|
|
72
72
|
borderWidth: 1,
|
|
73
73
|
padding: 10,
|
|
@@ -89,12 +89,12 @@ const InfoBox: React.FC<InfoBoxProps> = ({
|
|
|
89
89
|
marginLeft: 7,
|
|
90
90
|
flexShrink: 1,
|
|
91
91
|
alignSelf: 'center',
|
|
92
|
-
color:
|
|
92
|
+
color: ColorPalette.notification.infoText,
|
|
93
93
|
},
|
|
94
94
|
bodyText: {
|
|
95
95
|
flexShrink: 1,
|
|
96
96
|
marginVertical: 16,
|
|
97
|
-
color:
|
|
97
|
+
color: ColorPalette.notification.infoText,
|
|
98
98
|
},
|
|
99
99
|
icon: {
|
|
100
100
|
marginRight: 10,
|
|
@@ -102,82 +102,82 @@ const InfoBox: React.FC<InfoBoxProps> = ({
|
|
|
102
102
|
},
|
|
103
103
|
showDetailsText: {
|
|
104
104
|
fontWeight: TextTheme.normal.fontWeight,
|
|
105
|
-
color:
|
|
105
|
+
color: ColorPalette.brand.link,
|
|
106
106
|
},
|
|
107
107
|
})
|
|
108
108
|
let iconName = 'info'
|
|
109
|
-
let iconColor =
|
|
109
|
+
let iconColor = ColorPalette.notification.infoIcon
|
|
110
110
|
|
|
111
111
|
switch (notificationType) {
|
|
112
112
|
case InfoBoxType.Info:
|
|
113
113
|
iconName = 'info'
|
|
114
|
-
iconColor =
|
|
114
|
+
iconColor = ColorPalette.notification.infoIcon
|
|
115
115
|
styles.container = {
|
|
116
116
|
...styles.container,
|
|
117
|
-
backgroundColor:
|
|
118
|
-
borderColor:
|
|
117
|
+
backgroundColor: ColorPalette.notification.info,
|
|
118
|
+
borderColor: ColorPalette.notification.infoBorder,
|
|
119
119
|
}
|
|
120
120
|
styles.headerText = {
|
|
121
121
|
...styles.headerText,
|
|
122
|
-
color:
|
|
122
|
+
color: ColorPalette.notification.infoText,
|
|
123
123
|
}
|
|
124
124
|
styles.bodyText = {
|
|
125
125
|
...styles.bodyText,
|
|
126
|
-
color:
|
|
126
|
+
color: ColorPalette.notification.infoText,
|
|
127
127
|
}
|
|
128
128
|
break
|
|
129
129
|
|
|
130
130
|
case InfoBoxType.Success:
|
|
131
131
|
iconName = 'check-circle'
|
|
132
|
-
iconColor =
|
|
132
|
+
iconColor = ColorPalette.notification.successIcon
|
|
133
133
|
styles.container = {
|
|
134
134
|
...styles.container,
|
|
135
|
-
backgroundColor:
|
|
136
|
-
borderColor:
|
|
135
|
+
backgroundColor: ColorPalette.notification.success,
|
|
136
|
+
borderColor: ColorPalette.notification.successBorder,
|
|
137
137
|
}
|
|
138
138
|
styles.headerText = {
|
|
139
139
|
...styles.headerText,
|
|
140
|
-
color:
|
|
140
|
+
color: ColorPalette.notification.successText,
|
|
141
141
|
}
|
|
142
142
|
styles.bodyText = {
|
|
143
143
|
...styles.bodyText,
|
|
144
|
-
color:
|
|
144
|
+
color: ColorPalette.notification.successText,
|
|
145
145
|
}
|
|
146
146
|
break
|
|
147
147
|
|
|
148
148
|
case InfoBoxType.Warn:
|
|
149
149
|
iconName = 'warning'
|
|
150
|
-
iconColor =
|
|
150
|
+
iconColor = ColorPalette.notification.warnIcon
|
|
151
151
|
styles.container = {
|
|
152
152
|
...styles.container,
|
|
153
|
-
backgroundColor:
|
|
154
|
-
borderColor:
|
|
153
|
+
backgroundColor: ColorPalette.notification.warn,
|
|
154
|
+
borderColor: ColorPalette.notification.warnBorder,
|
|
155
155
|
}
|
|
156
156
|
styles.headerText = {
|
|
157
157
|
...styles.headerText,
|
|
158
|
-
color:
|
|
158
|
+
color: ColorPalette.notification.warnText,
|
|
159
159
|
}
|
|
160
160
|
styles.bodyText = {
|
|
161
161
|
...styles.bodyText,
|
|
162
|
-
color:
|
|
162
|
+
color: ColorPalette.notification.warnText,
|
|
163
163
|
}
|
|
164
164
|
break
|
|
165
165
|
|
|
166
166
|
case InfoBoxType.Error:
|
|
167
167
|
iconName = 'error'
|
|
168
|
-
iconColor =
|
|
168
|
+
iconColor = ColorPalette.notification.errorIcon
|
|
169
169
|
styles.container = {
|
|
170
170
|
...styles.container,
|
|
171
|
-
backgroundColor:
|
|
172
|
-
borderColor:
|
|
171
|
+
backgroundColor: ColorPalette.notification.error,
|
|
172
|
+
borderColor: ColorPalette.notification.errorBorder,
|
|
173
173
|
}
|
|
174
174
|
styles.headerText = {
|
|
175
175
|
...styles.headerText,
|
|
176
|
-
color:
|
|
176
|
+
color: ColorPalette.notification.errorText,
|
|
177
177
|
}
|
|
178
178
|
styles.bodyText = {
|
|
179
179
|
...styles.bodyText,
|
|
180
|
-
color:
|
|
180
|
+
color: ColorPalette.notification.errorText,
|
|
181
181
|
}
|
|
182
182
|
break
|
|
183
183
|
|
|
@@ -207,7 +207,7 @@ const InfoBox: React.FC<InfoBoxProps> = ({
|
|
|
207
207
|
onPress={onClosePressed}
|
|
208
208
|
hitSlop={hitSlop}
|
|
209
209
|
>
|
|
210
|
-
<Icon name={'close'} size={iconSize} color={
|
|
210
|
+
<Icon name={'close'} size={iconSize} color={ColorPalette.notification.infoIcon} />
|
|
211
211
|
</TouchableOpacity>
|
|
212
212
|
</View>
|
|
213
213
|
)}
|
|
@@ -233,7 +233,7 @@ const InfoBox: React.FC<InfoBoxProps> = ({
|
|
|
233
233
|
<ThemedText variant="title" style={styles.showDetailsText}>
|
|
234
234
|
{t('Global.ShowDetails')}{' '}
|
|
235
235
|
</ThemedText>
|
|
236
|
-
<Icon name="chevron-right" size={iconSize} color={
|
|
236
|
+
<Icon name="chevron-right" size={iconSize} color={ColorPalette.brand.link} />
|
|
237
237
|
</View>
|
|
238
238
|
</TouchableOpacity>
|
|
239
239
|
)}
|
|
@@ -9,12 +9,12 @@ import { ThemedText } from '../texts/ThemedText'
|
|
|
9
9
|
|
|
10
10
|
const NoNewUpdates: React.FC = () => {
|
|
11
11
|
const { t } = useTranslation()
|
|
12
|
-
const { HomeTheme,
|
|
12
|
+
const { HomeTheme, ColorPalette } = useTheme()
|
|
13
13
|
const styles = StyleSheet.create({
|
|
14
14
|
noNewUpdatesContainer: {
|
|
15
15
|
paddingHorizontal: 20,
|
|
16
16
|
paddingVertical: 20,
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: ColorPalette.brand.secondaryBackground,
|
|
18
18
|
},
|
|
19
19
|
noNewUpdatesText: {
|
|
20
20
|
...HomeTheme.noNewUpdatesText,
|
|
@@ -15,7 +15,7 @@ const iconSize = 24
|
|
|
15
15
|
|
|
16
16
|
const PINValidationHelper: React.FC<PINValidationHelperProps> = ({ validations }) => {
|
|
17
17
|
const { t } = useTranslation()
|
|
18
|
-
const {
|
|
18
|
+
const { ColorPalette } = useTheme()
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<View style={{ marginBottom: 16 }}>
|
|
@@ -26,14 +26,14 @@ const PINValidationHelper: React.FC<PINValidationHelperProps> = ({ validations }
|
|
|
26
26
|
accessibilityLabel={t('PINCreate.Helper.ClearIcon')}
|
|
27
27
|
name="clear"
|
|
28
28
|
size={iconSize}
|
|
29
|
-
color={
|
|
29
|
+
color={ColorPalette.notification.errorIcon}
|
|
30
30
|
/>
|
|
31
31
|
) : (
|
|
32
32
|
<Icon
|
|
33
33
|
accessibilityLabel={t('PINCreate.Helper.CheckIcon')}
|
|
34
34
|
name="check"
|
|
35
35
|
size={iconSize}
|
|
36
|
-
color={
|
|
36
|
+
color={ColorPalette.notification.successIcon}
|
|
37
37
|
/>
|
|
38
38
|
)}
|
|
39
39
|
<ThemedText style={{ paddingLeft: 4 }}>
|
|
@@ -17,7 +17,7 @@ interface QRRendererProps {
|
|
|
17
17
|
const QRRenderer: React.FC<QRRendererProps> = ({ value, onError, size }) => {
|
|
18
18
|
const { width } = useWindowDimensions()
|
|
19
19
|
const { t } = useTranslation()
|
|
20
|
-
const {
|
|
20
|
+
const { ColorPalette } = useTheme()
|
|
21
21
|
|
|
22
22
|
const styles = StyleSheet.create({
|
|
23
23
|
container: {
|
|
@@ -26,7 +26,7 @@ const QRRenderer: React.FC<QRRendererProps> = ({ value, onError, size }) => {
|
|
|
26
26
|
backgroundColor: 'white',
|
|
27
27
|
},
|
|
28
28
|
errorMessage: {
|
|
29
|
-
color:
|
|
29
|
+
color: ColorPalette.semantic.error,
|
|
30
30
|
textAlign: 'center',
|
|
31
31
|
},
|
|
32
32
|
})
|
|
@@ -50,7 +50,7 @@ const QRScanner: React.FC<Props> = ({
|
|
|
50
50
|
const { agent } = useAgent()
|
|
51
51
|
const { width } = useWindowDimensions()
|
|
52
52
|
const { t } = useTranslation()
|
|
53
|
-
const {
|
|
53
|
+
const { ColorPalette, TextTheme, TabTheme } = useTheme()
|
|
54
54
|
const [store] = useStore()
|
|
55
55
|
const [{ showScanHelp, showScanButton, showScanErrorButton = true }] = useServices([TOKENS.CONFIG])
|
|
56
56
|
const [firstTabActive, setFirstTabActive] = useState(!defaultToConnect)
|
|
@@ -69,7 +69,7 @@ const QRScanner: React.FC<Props> = ({
|
|
|
69
69
|
},
|
|
70
70
|
mainSafeArea: {
|
|
71
71
|
flex: 1,
|
|
72
|
-
backgroundColor:
|
|
72
|
+
backgroundColor: ColorPalette.brand.secondaryBackground,
|
|
73
73
|
},
|
|
74
74
|
bottomSafeArea: {
|
|
75
75
|
flex: 0,
|
|
@@ -121,7 +121,7 @@ const QRScanner: React.FC<Props> = ({
|
|
|
121
121
|
// no properties needed, this is just a helpful label
|
|
122
122
|
bottomButtonsContainer: {},
|
|
123
123
|
icon: {
|
|
124
|
-
color:
|
|
124
|
+
color: ColorPalette.grayscale.white,
|
|
125
125
|
padding: 4,
|
|
126
126
|
},
|
|
127
127
|
textStyle: {
|
|
@@ -13,7 +13,7 @@ interface Props extends React.PropsWithChildren {
|
|
|
13
13
|
onPress?: () => void
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
function createStyles({
|
|
16
|
+
function createStyles({ ColorPalette }: ITheme) {
|
|
17
17
|
return StyleSheet.create({
|
|
18
18
|
container: {
|
|
19
19
|
width: 24,
|
|
@@ -21,7 +21,7 @@ function createStyles({ ColorPallet }: ITheme) {
|
|
|
21
21
|
justifyContent: 'center',
|
|
22
22
|
alignItems: 'center',
|
|
23
23
|
borderWidth: 1,
|
|
24
|
-
borderColor:
|
|
24
|
+
borderColor: ColorPalette.grayscale.white,
|
|
25
25
|
borderRadius: 24,
|
|
26
26
|
marginBottom: 50,
|
|
27
27
|
},
|
|
@@ -41,7 +41,7 @@ const TorchButton: React.FC<Props> = ({ active, onPress, children }) => {
|
|
|
41
41
|
accessibilityLabel={active ? t('Scan.TorchOn') : t('Scan.TorchOff')}
|
|
42
42
|
accessibilityRole={'button'}
|
|
43
43
|
testID={testIdWithKey('ScanTorch')}
|
|
44
|
-
style={[styles.container, { backgroundColor: active ? theme.
|
|
44
|
+
style={[styles.container, { backgroundColor: active ? theme.ColorPalette.grayscale.white : undefined }]}
|
|
45
45
|
onPress={onPress}
|
|
46
46
|
hitSlop={hitSlop}
|
|
47
47
|
>
|
|
@@ -56,7 +56,7 @@ const TorchIcon: React.FC<Props> = ({ active }) => {
|
|
|
56
56
|
return (
|
|
57
57
|
<Icon
|
|
58
58
|
name={active ? 'flash-on' : 'flash-off'}
|
|
59
|
-
color={active ? theme.
|
|
59
|
+
color={active ? theme.ColorPalette.grayscale.black : theme.ColorPalette.grayscale.white}
|
|
60
60
|
size={24}
|
|
61
61
|
style={styles.icon}
|
|
62
62
|
/>
|
|
@@ -16,7 +16,7 @@ interface SharedProofDataProps {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const SharedDataCard: React.FC<{ sharedData: GroupedSharedProofDataItem }> = ({ sharedData }) => {
|
|
19
|
-
const {
|
|
19
|
+
const { ColorPalette } = useTheme()
|
|
20
20
|
const [attributes, setAttributes] = useState<Field[]>([])
|
|
21
21
|
useEffect(() => {
|
|
22
22
|
const attributes = buildFieldsFromSharedAnonCredsProof(sharedData.data)
|
|
@@ -30,7 +30,7 @@ const SharedDataCard: React.FC<{ sharedData: GroupedSharedProofDataItem }> = ({
|
|
|
30
30
|
displayItems={attributes}
|
|
31
31
|
style={
|
|
32
32
|
bundleResolver.getBrandingOverlayType() === BrandingOverlayType.Branding10
|
|
33
|
-
? { backgroundColor:
|
|
33
|
+
? { backgroundColor: ColorPalette.brand.secondaryBackground }
|
|
34
34
|
: undefined
|
|
35
35
|
}
|
|
36
36
|
credDefId={sharedData.identifiers.cred_def_id}
|
|
@@ -9,15 +9,15 @@ type UnorderedListProps = {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const UnorderedList: React.FC<UnorderedListProps> = ({ unorderedListItems }) => {
|
|
12
|
-
const {
|
|
12
|
+
const { ColorPalette } = useTheme()
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
15
|
<>
|
|
16
16
|
{unorderedListItems.map((item: string, i: number) => {
|
|
17
17
|
return (
|
|
18
18
|
<View key={i} style={{ display: 'flex', flexDirection: 'row', marginBottom: 5 }}>
|
|
19
|
-
<ThemedText style={{ color:
|
|
20
|
-
<ThemedText style={{ color:
|
|
19
|
+
<ThemedText style={{ color: ColorPalette.brand.unorderedList, paddingLeft: 5 }}>{`\u2022`}</ThemedText>
|
|
20
|
+
<ThemedText style={{ color: ColorPalette.brand.unorderedList, paddingLeft: 5, flex: 1 }}>{item}</ThemedText>
|
|
21
21
|
</View>
|
|
22
22
|
)
|
|
23
23
|
})}
|
|
@@ -57,7 +57,7 @@ const VerifierCredentialCard: React.FC<VerifierCredentialCardProps> = ({
|
|
|
57
57
|
}) => {
|
|
58
58
|
const [dimensions, setDimensions] = useState({ cardWidth: 0, cardHeight: 0 })
|
|
59
59
|
const { i18n, t } = useTranslation()
|
|
60
|
-
const {
|
|
60
|
+
const { ColorPalette, TextTheme } = useTheme()
|
|
61
61
|
const [bundleResolver] = useServices([TOKENS.UTIL_OCA_RESOLVER])
|
|
62
62
|
const [overlay, setOverlay] = useState<CredentialOverlay<BrandingOverlay>>({})
|
|
63
63
|
const isBranding10 = brandingOverlayType === BrandingOverlayType.Branding10
|
|
@@ -74,9 +74,9 @@ const VerifierCredentialCard: React.FC<VerifierCredentialCardProps> = ({
|
|
|
74
74
|
}, {})
|
|
75
75
|
|
|
76
76
|
const getCardWatermarkTextColor = (background?: string) => {
|
|
77
|
-
if (isBranding10) return
|
|
78
|
-
const shade = shadeIsLightOrDark(background ??
|
|
79
|
-
return shade == Shade.Light ?
|
|
77
|
+
if (isBranding10) return ColorPalette.grayscale.mediumGrey
|
|
78
|
+
const shade = shadeIsLightOrDark(background ?? ColorPalette.grayscale.lightGrey)
|
|
79
|
+
return shade == Shade.Light ? ColorPalette.grayscale.darkGrey : ColorPalette.grayscale.lightGrey
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
const parseAttribute = (item: (Attribute & Predicate) | undefined) => {
|
|
@@ -160,7 +160,7 @@ const VerifierCredentialCard: React.FC<VerifierCredentialCardProps> = ({
|
|
|
160
160
|
const PredicateItem: React.FC<{
|
|
161
161
|
item: Predicate
|
|
162
162
|
}> = ({ item }) => {
|
|
163
|
-
const {
|
|
163
|
+
const { ColorPalette } = useTheme()
|
|
164
164
|
const label = (item.label || item.name)!
|
|
165
165
|
const ylabel = overlay.bundle?.labelOverlay?.attributeLabels[label] ?? startCase(label)
|
|
166
166
|
const [currentValue, setCurrentValue] = useState(`${item.pValue ?? ''}`)
|
|
@@ -169,7 +169,7 @@ const VerifierCredentialCard: React.FC<VerifierCredentialCardProps> = ({
|
|
|
169
169
|
input: {
|
|
170
170
|
textAlign: 'center',
|
|
171
171
|
textAlignVertical: 'bottom',
|
|
172
|
-
borderBottomColor:
|
|
172
|
+
borderBottomColor: ColorPalette.grayscale.black,
|
|
173
173
|
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
174
174
|
borderBottomWidth: 1,
|
|
175
175
|
lineHeight: 19,
|
|
@@ -196,7 +196,7 @@ const VerifierCredentialCard: React.FC<VerifierCredentialCardProps> = ({
|
|
|
196
196
|
</ThemedText>
|
|
197
197
|
<View style={{ flexDirection: 'row', flexWrap: 'wrap', alignItems: 'flex-end' }}>
|
|
198
198
|
{item.satisfied && !preview ? (
|
|
199
|
-
<Icon style={{ marginRight: 5 }} size={24} name={'check-circle'} color={
|
|
199
|
+
<Icon style={{ marginRight: 5 }} size={24} name={'check-circle'} color={ColorPalette.semantic.success} />
|
|
200
200
|
) : null}
|
|
201
201
|
<ThemedText variant="bold" style={[styles.textContainer, predicateStyles.predicateType]}>
|
|
202
202
|
{item.pType}
|
|
@@ -32,24 +32,24 @@ const AppGuideModal: React.FC<AppGuideModalProps> = ({
|
|
|
32
32
|
}) => {
|
|
33
33
|
const { height, width } = useWindowDimensions()
|
|
34
34
|
const { t } = useTranslation()
|
|
35
|
-
const {
|
|
35
|
+
const { ColorPalette } = useTheme()
|
|
36
36
|
const iconSize = 30
|
|
37
37
|
const dismissIconName = 'clear'
|
|
38
|
-
const iconColor =
|
|
38
|
+
const iconColor = ColorPalette.notification.infoIcon
|
|
39
39
|
|
|
40
40
|
const styles = StyleSheet.create({
|
|
41
41
|
modalCenter: {
|
|
42
42
|
flex: 1,
|
|
43
43
|
justifyContent: 'center',
|
|
44
44
|
alignItems: 'center',
|
|
45
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: ColorPalette.notification.popupOverlay,
|
|
46
46
|
padding: 10,
|
|
47
47
|
minHeight: height,
|
|
48
48
|
minWidth: width,
|
|
49
49
|
},
|
|
50
50
|
container: {
|
|
51
|
-
backgroundColor:
|
|
52
|
-
borderColor:
|
|
51
|
+
backgroundColor: ColorPalette.notification.info,
|
|
52
|
+
borderColor: ColorPalette.notification.infoBorder,
|
|
53
53
|
borderRadius: 5,
|
|
54
54
|
borderWidth: 1,
|
|
55
55
|
padding: 20,
|
|
@@ -66,12 +66,12 @@ const AppGuideModal: React.FC<AppGuideModalProps> = ({
|
|
|
66
66
|
headerText: {
|
|
67
67
|
alignSelf: 'flex-start',
|
|
68
68
|
flexWrap: 'wrap',
|
|
69
|
-
color:
|
|
69
|
+
color: ColorPalette.notification.infoText,
|
|
70
70
|
},
|
|
71
71
|
bodyText: {
|
|
72
72
|
flexShrink: 1,
|
|
73
73
|
marginVertical: 16,
|
|
74
|
-
color:
|
|
74
|
+
color: ColorPalette.notification.infoText,
|
|
75
75
|
},
|
|
76
76
|
dismissIcon: {
|
|
77
77
|
alignSelf: 'center',
|
|
@@ -24,19 +24,19 @@ const CameraDisclosureModal: React.FC<CameraDisclosureModalProps> = ({ requestCa
|
|
|
24
24
|
const [modalVisible, setModalVisible] = useState(true)
|
|
25
25
|
const [showSettingsPopup, setShowSettingsPopup] = useState(false)
|
|
26
26
|
const [requestInProgress, setRequestInProgress] = useState(false)
|
|
27
|
-
const {
|
|
27
|
+
const { ColorPalette } = useTheme()
|
|
28
28
|
|
|
29
29
|
const styles = StyleSheet.create({
|
|
30
30
|
container: {
|
|
31
31
|
height: '100%',
|
|
32
|
-
backgroundColor:
|
|
32
|
+
backgroundColor: ColorPalette.brand.modalPrimaryBackground,
|
|
33
33
|
padding: 20,
|
|
34
34
|
},
|
|
35
35
|
messageText: {
|
|
36
36
|
marginTop: 30,
|
|
37
37
|
},
|
|
38
38
|
controlsContainer: {
|
|
39
|
-
backgroundColor:
|
|
39
|
+
backgroundColor: ColorPalette.brand.modalPrimaryBackground,
|
|
40
40
|
marginTop: 'auto',
|
|
41
41
|
margin: 20,
|
|
42
42
|
},
|
|
@@ -85,7 +85,7 @@ const CameraDisclosureModal: React.FC<CameraDisclosureModalProps> = ({ requestCa
|
|
|
85
85
|
onDismissPressed={onOpenSettingsDismissed}
|
|
86
86
|
/>
|
|
87
87
|
)}
|
|
88
|
-
<SafeAreaView style={{ backgroundColor:
|
|
88
|
+
<SafeAreaView style={{ backgroundColor: ColorPalette.brand.modalPrimaryBackground }}>
|
|
89
89
|
<ScrollView style={styles.container}>
|
|
90
90
|
<ThemedText variant="modalHeadingOne" testID={testIdWithKey('AllowCameraUse')} accessibilityRole="header">
|
|
91
91
|
{t('CameraDisclosure.AllowCameraUse')}
|