@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
package/lib/commonjs/theme.js
CHANGED
|
@@ -3,7 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.borderWidth = exports.borderRadius = exports.bifoldTheme = exports.TextTheme = exports.TabTheme = exports.SettingsTheme = exports.PINInputTheme = exports.OnboardingTheme = exports.NavigationTheme = exports.LoadingTheme = exports.ListItems = exports.Inputs = exports.InputInlineMessage = exports.HomeTheme = exports.DialogTheme = exports.ColorPalette = exports.ChatTheme = exports.Buttons = exports.Assets = void 0;
|
|
7
|
+
exports.createButtonsTheme = createButtonsTheme;
|
|
8
|
+
exports.createChatTheme = createChatTheme;
|
|
9
|
+
exports.createDialogTheme = createDialogTheme;
|
|
10
|
+
exports.createHomeTheme = createHomeTheme;
|
|
11
|
+
exports.createInputInlineMessageTheme = createInputInlineMessageTheme;
|
|
12
|
+
exports.createInputsTheme = createInputsTheme;
|
|
13
|
+
exports.createListItemsTheme = createListItemsTheme;
|
|
14
|
+
exports.createLoadingTheme = createLoadingTheme;
|
|
15
|
+
exports.createNavigationTheme = createNavigationTheme;
|
|
16
|
+
exports.createOnboardingTheme = createOnboardingTheme;
|
|
17
|
+
exports.createPINInputTheme = createPINInputTheme;
|
|
18
|
+
exports.createSettingsTheme = createSettingsTheme;
|
|
19
|
+
exports.createTabTheme = createTabTheme;
|
|
20
|
+
exports.createTextTheme = createTextTheme;
|
|
21
|
+
exports.zeroOpacity = exports.themes = exports.mediumOpacity = exports.maxFontSizeMultiplier = exports.lightOpacity = exports.heavyOpacity = void 0;
|
|
7
22
|
var _reactNative = require("react-native");
|
|
8
23
|
var _largeArrow = _interopRequireDefault(require("./assets/icons/large-arrow.svg"));
|
|
9
24
|
var _trash = _interopRequireDefault(require("./assets/icons/trash.svg"));
|
|
@@ -140,678 +155,882 @@ const NotificationColors = {
|
|
|
140
155
|
errorText: '#FFFFFF',
|
|
141
156
|
popupOverlay: `rgba(0, 0, 0, ${mediumOpacity})`
|
|
142
157
|
};
|
|
143
|
-
const
|
|
158
|
+
const ColorPalette = exports.ColorPalette = {
|
|
144
159
|
brand: BrandColors,
|
|
145
160
|
semantic: SemanticColors,
|
|
146
161
|
notification: NotificationColors,
|
|
147
162
|
grayscale: GrayscaleColors
|
|
148
163
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
borderColor: ColorPallet.brand.secondary
|
|
269
|
-
},
|
|
270
|
-
inputSelected: {
|
|
271
|
-
borderColor: ColorPallet.brand.primary
|
|
272
|
-
},
|
|
273
|
-
singleSelect: {
|
|
274
|
-
padding: 12,
|
|
275
|
-
borderRadius: borderRadius * 2,
|
|
276
|
-
backgroundColor: ColorPallet.brand.secondaryBackground
|
|
277
|
-
},
|
|
278
|
-
singleSelectText: {
|
|
279
|
-
...TextTheme.normal
|
|
280
|
-
},
|
|
281
|
-
singleSelectIcon: {
|
|
282
|
-
color: ColorPallet.grayscale.white
|
|
283
|
-
},
|
|
284
|
-
checkBoxColor: {
|
|
285
|
-
color: ColorPallet.brand.primary
|
|
286
|
-
},
|
|
287
|
-
checkBoxText: {
|
|
288
|
-
...TextTheme.normal
|
|
289
|
-
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Creates a text theme based on the provided color pallet.
|
|
167
|
+
*
|
|
168
|
+
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
169
|
+
* @returns {*} {ITextTheme} - The created text theme
|
|
170
|
+
*/
|
|
171
|
+
function createTextTheme(theme) {
|
|
172
|
+
return _reactNative.StyleSheet.create({
|
|
173
|
+
headingOne: {
|
|
174
|
+
fontSize: 38,
|
|
175
|
+
fontWeight: 'bold',
|
|
176
|
+
color: theme.ColorPalette.brand.text
|
|
177
|
+
},
|
|
178
|
+
headingTwo: {
|
|
179
|
+
fontSize: 32,
|
|
180
|
+
fontWeight: 'bold',
|
|
181
|
+
color: theme.ColorPalette.brand.text
|
|
182
|
+
},
|
|
183
|
+
headingThree: {
|
|
184
|
+
fontSize: 26,
|
|
185
|
+
fontWeight: 'bold',
|
|
186
|
+
color: theme.ColorPalette.brand.text
|
|
187
|
+
},
|
|
188
|
+
headingFour: {
|
|
189
|
+
fontSize: 21,
|
|
190
|
+
fontWeight: 'bold',
|
|
191
|
+
color: theme.ColorPalette.brand.text
|
|
192
|
+
},
|
|
193
|
+
normal: {
|
|
194
|
+
fontSize: 18,
|
|
195
|
+
fontWeight: 'normal',
|
|
196
|
+
color: theme.ColorPalette.brand.text
|
|
197
|
+
},
|
|
198
|
+
bold: {
|
|
199
|
+
fontSize: 18,
|
|
200
|
+
fontWeight: 'bold',
|
|
201
|
+
color: theme.ColorPalette.brand.text
|
|
202
|
+
},
|
|
203
|
+
label: {
|
|
204
|
+
fontSize: 14,
|
|
205
|
+
fontWeight: 'bold',
|
|
206
|
+
color: theme.ColorPalette.brand.text
|
|
207
|
+
},
|
|
208
|
+
labelTitle: {
|
|
209
|
+
fontSize: 16,
|
|
210
|
+
fontWeight: 'bold',
|
|
211
|
+
color: theme.ColorPalette.brand.text
|
|
212
|
+
},
|
|
213
|
+
labelSubtitle: {
|
|
214
|
+
fontSize: 14,
|
|
215
|
+
fontWeight: 'normal',
|
|
216
|
+
color: theme.ColorPalette.brand.text
|
|
217
|
+
},
|
|
218
|
+
labelText: {
|
|
219
|
+
fontSize: 10,
|
|
220
|
+
fontWeight: 'normal',
|
|
221
|
+
fontStyle: 'italic',
|
|
222
|
+
color: theme.ColorPalette.brand.text
|
|
223
|
+
},
|
|
224
|
+
caption: {
|
|
225
|
+
fontSize: 14,
|
|
226
|
+
fontWeight: 'normal',
|
|
227
|
+
color: theme.ColorPalette.brand.text
|
|
228
|
+
},
|
|
229
|
+
title: {
|
|
230
|
+
fontSize: 20,
|
|
231
|
+
fontWeight: 'bold',
|
|
232
|
+
color: theme.ColorPalette.brand.text
|
|
233
|
+
},
|
|
234
|
+
headerTitle: {
|
|
235
|
+
fontSize: 28,
|
|
236
|
+
fontWeight: 'bold',
|
|
237
|
+
color: theme.ColorPalette.brand.headerText
|
|
238
|
+
},
|
|
239
|
+
modalNormal: {
|
|
240
|
+
fontSize: 18,
|
|
241
|
+
fontWeight: 'normal',
|
|
242
|
+
color: theme.ColorPalette.grayscale.white
|
|
243
|
+
},
|
|
244
|
+
modalTitle: {
|
|
245
|
+
fontSize: 24,
|
|
246
|
+
fontWeight: 'bold',
|
|
247
|
+
color: theme.ColorPalette.grayscale.white
|
|
248
|
+
},
|
|
249
|
+
modalHeadingOne: {
|
|
250
|
+
fontSize: 38,
|
|
251
|
+
color: theme.ColorPalette.grayscale.white,
|
|
252
|
+
fontWeight: 'bold'
|
|
253
|
+
},
|
|
254
|
+
modalHeadingThree: {
|
|
255
|
+
fontSize: 26,
|
|
256
|
+
color: theme.ColorPalette.grayscale.white,
|
|
257
|
+
fontWeight: 'bold'
|
|
258
|
+
},
|
|
259
|
+
popupModalText: {
|
|
260
|
+
fontSize: 18,
|
|
261
|
+
fontWeight: 'normal',
|
|
262
|
+
color: theme.ColorPalette.grayscale.white
|
|
263
|
+
},
|
|
264
|
+
settingsText: {
|
|
265
|
+
fontSize: 21,
|
|
266
|
+
fontWeight: 'normal',
|
|
267
|
+
color: theme.ColorPalette.brand.text
|
|
268
|
+
},
|
|
269
|
+
inlineErrorText: {
|
|
270
|
+
fontSize: 16,
|
|
271
|
+
fontWeight: 'normal',
|
|
272
|
+
color: theme.ColorPalette.brand.inlineError
|
|
273
|
+
},
|
|
274
|
+
inlineWarningText: {
|
|
275
|
+
fontSize: 16,
|
|
276
|
+
fontWeight: 'normal',
|
|
277
|
+
color: theme.ColorPalette.brand.inlineWarning
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
const TextTheme = exports.TextTheme = createTextTheme({
|
|
282
|
+
ColorPalette
|
|
290
283
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
secondaryText: {
|
|
339
|
-
...TextTheme.bold,
|
|
340
|
-
color: ColorPallet.brand.primary,
|
|
341
|
-
textAlign: 'center'
|
|
342
|
-
},
|
|
343
|
-
secondaryTextDisabled: {
|
|
344
|
-
...TextTheme.bold,
|
|
345
|
-
color: ColorPallet.brand.secondaryDisabled,
|
|
346
|
-
textAlign: 'center'
|
|
347
|
-
},
|
|
348
|
-
tertiary: {
|
|
349
|
-
padding: 16
|
|
350
|
-
},
|
|
351
|
-
tertiaryDisabled: {
|
|
352
|
-
padding: 16
|
|
353
|
-
},
|
|
354
|
-
tertiaryText: {
|
|
355
|
-
...TextTheme.bold,
|
|
356
|
-
color: ColorPallet.brand.primary,
|
|
357
|
-
textAlign: 'center'
|
|
358
|
-
},
|
|
359
|
-
tertiaryTextDisabled: {
|
|
360
|
-
...TextTheme.bold,
|
|
361
|
-
color: ColorPallet.brand.tertiaryDisabled,
|
|
362
|
-
textAlign: 'center'
|
|
363
|
-
},
|
|
364
|
-
modalCritical: {
|
|
365
|
-
padding: 16,
|
|
366
|
-
borderRadius: 4,
|
|
367
|
-
backgroundColor: ColorPallet.brand.primary
|
|
368
|
-
},
|
|
369
|
-
modalCriticalDisabled: {
|
|
370
|
-
padding: 16,
|
|
371
|
-
borderRadius: 4,
|
|
372
|
-
backgroundColor: ColorPallet.brand.primaryDisabled
|
|
373
|
-
},
|
|
374
|
-
modalCriticalText: {
|
|
375
|
-
...TextTheme.bold,
|
|
376
|
-
color: ColorPallet.brand.buttonText,
|
|
377
|
-
textAlign: 'center'
|
|
378
|
-
},
|
|
379
|
-
modalCriticalTextDisabled: {
|
|
380
|
-
...TextTheme.bold,
|
|
381
|
-
color: ColorPallet.brand.buttonText,
|
|
382
|
-
textAlign: 'center'
|
|
383
|
-
},
|
|
384
|
-
modalPrimary: {
|
|
385
|
-
padding: 16,
|
|
386
|
-
borderRadius: 4,
|
|
387
|
-
backgroundColor: ColorPallet.brand.modalPrimary
|
|
388
|
-
},
|
|
389
|
-
modalPrimaryDisabled: {
|
|
390
|
-
padding: 16,
|
|
391
|
-
borderRadius: 4,
|
|
392
|
-
backgroundColor: ColorPallet.brand.primaryDisabled
|
|
393
|
-
},
|
|
394
|
-
modalPrimaryText: {
|
|
395
|
-
...TextTheme.bold,
|
|
396
|
-
color: ColorPallet.brand.buttonText,
|
|
397
|
-
textAlign: 'center'
|
|
398
|
-
},
|
|
399
|
-
modalPrimaryTextDisabled: {
|
|
400
|
-
...TextTheme.bold,
|
|
401
|
-
color: ColorPallet.brand.buttonText,
|
|
402
|
-
textAlign: 'center'
|
|
403
|
-
},
|
|
404
|
-
modalSecondary: {
|
|
405
|
-
padding: 16,
|
|
406
|
-
borderRadius: 4,
|
|
407
|
-
borderWidth: 2,
|
|
408
|
-
borderColor: ColorPallet.brand.modalPrimary
|
|
409
|
-
},
|
|
410
|
-
modalSecondaryDisabled: {
|
|
411
|
-
padding: 16,
|
|
412
|
-
borderRadius: 4,
|
|
413
|
-
borderWidth: 2,
|
|
414
|
-
borderColor: ColorPallet.brand.secondaryDisabled
|
|
415
|
-
},
|
|
416
|
-
modalSecondaryText: {
|
|
417
|
-
...TextTheme.bold,
|
|
418
|
-
color: ColorPallet.brand.modalPrimary,
|
|
419
|
-
textAlign: 'center'
|
|
420
|
-
},
|
|
421
|
-
modalSecondaryTextDisabled: {
|
|
422
|
-
...TextTheme.bold,
|
|
423
|
-
color: ColorPallet.brand.secondaryDisabled,
|
|
424
|
-
textAlign: 'center'
|
|
425
|
-
},
|
|
426
|
-
modalTertiary: {
|
|
427
|
-
padding: 16
|
|
428
|
-
},
|
|
429
|
-
modalTertiaryDisabled: {
|
|
430
|
-
padding: 16
|
|
431
|
-
},
|
|
432
|
-
modalTertiaryText: {
|
|
433
|
-
...TextTheme.bold,
|
|
434
|
-
color: ColorPallet.brand.modalPrimary,
|
|
435
|
-
textAlign: 'center'
|
|
436
|
-
},
|
|
437
|
-
modalTertiaryTextDisabled: {
|
|
438
|
-
...TextTheme.bold,
|
|
439
|
-
color: ColorPallet.brand.tertiaryDisabled,
|
|
440
|
-
textAlign: 'center'
|
|
441
|
-
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Creates a theme for inputs based on the provided color pallet and text theme.
|
|
287
|
+
*
|
|
288
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme; borderRadius: number }} theme - The theme object containing the color pallet, text theme, and border radius
|
|
289
|
+
* @returns {*} {IInputs} - The created inputs theme
|
|
290
|
+
*/
|
|
291
|
+
function createInputsTheme(theme) {
|
|
292
|
+
return _reactNative.StyleSheet.create({
|
|
293
|
+
label: {
|
|
294
|
+
...theme.TextTheme.label
|
|
295
|
+
},
|
|
296
|
+
textInput: {
|
|
297
|
+
padding: 10,
|
|
298
|
+
borderRadius,
|
|
299
|
+
fontSize: 16,
|
|
300
|
+
backgroundColor: theme.ColorPalette.brand.primaryBackground,
|
|
301
|
+
color: theme.ColorPalette.notification.infoText,
|
|
302
|
+
borderWidth: 2,
|
|
303
|
+
borderColor: theme.ColorPalette.brand.secondary
|
|
304
|
+
},
|
|
305
|
+
singleSelectText: {
|
|
306
|
+
...theme.TextTheme.normal
|
|
307
|
+
},
|
|
308
|
+
singleSelectIcon: {
|
|
309
|
+
color: theme.ColorPalette.grayscale.white
|
|
310
|
+
},
|
|
311
|
+
checkBoxColor: {
|
|
312
|
+
color: theme.ColorPalette.brand.primary
|
|
313
|
+
},
|
|
314
|
+
checkBoxText: {
|
|
315
|
+
...theme.TextTheme.normal
|
|
316
|
+
},
|
|
317
|
+
inputSelected: {
|
|
318
|
+
borderColor: theme.ColorPalette.brand.primary
|
|
319
|
+
},
|
|
320
|
+
singleSelect: {
|
|
321
|
+
padding: 12,
|
|
322
|
+
borderRadius: theme.borderRadius * 2,
|
|
323
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
const Inputs = exports.Inputs = createInputsTheme({
|
|
328
|
+
ColorPalette,
|
|
329
|
+
TextTheme,
|
|
330
|
+
borderRadius
|
|
442
331
|
});
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Creates a theme for buttons based on the provided color pallet and text theme.
|
|
335
|
+
*
|
|
336
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
337
|
+
* @returns {*} {IButtons} - The created buttons theme
|
|
338
|
+
*/
|
|
339
|
+
function createButtonsTheme(theme) {
|
|
340
|
+
const textStyles = _reactNative.StyleSheet.create({
|
|
341
|
+
criticalText: {
|
|
342
|
+
...theme.TextTheme.bold,
|
|
343
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
344
|
+
textAlign: 'center'
|
|
345
|
+
},
|
|
346
|
+
criticalTextDisabled: {
|
|
347
|
+
...theme.TextTheme.bold,
|
|
348
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
349
|
+
textAlign: 'center'
|
|
350
|
+
},
|
|
351
|
+
primaryText: {
|
|
352
|
+
...theme.TextTheme.bold,
|
|
353
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
354
|
+
textAlign: 'center'
|
|
355
|
+
},
|
|
356
|
+
primaryTextDisabled: {
|
|
357
|
+
...theme.TextTheme.bold,
|
|
358
|
+
textAlign: 'center'
|
|
359
|
+
},
|
|
360
|
+
secondaryText: {
|
|
361
|
+
...theme.TextTheme.bold,
|
|
362
|
+
color: theme.ColorPalette.brand.primary,
|
|
363
|
+
textAlign: 'center'
|
|
364
|
+
},
|
|
365
|
+
secondaryTextDisabled: {
|
|
366
|
+
...theme.TextTheme.bold,
|
|
367
|
+
color: theme.ColorPalette.brand.secondaryDisabled,
|
|
368
|
+
textAlign: 'center'
|
|
369
|
+
},
|
|
370
|
+
tertiaryText: {
|
|
371
|
+
...theme.TextTheme.bold,
|
|
372
|
+
color: theme.ColorPalette.brand.primary,
|
|
373
|
+
textAlign: 'center'
|
|
374
|
+
},
|
|
375
|
+
tertiaryTextDisabled: {
|
|
376
|
+
...theme.TextTheme.bold,
|
|
377
|
+
color: theme.ColorPalette.brand.tertiaryDisabled,
|
|
378
|
+
textAlign: 'center'
|
|
379
|
+
},
|
|
380
|
+
modalCriticalText: {
|
|
381
|
+
...theme.TextTheme.bold,
|
|
382
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
383
|
+
textAlign: 'center'
|
|
384
|
+
},
|
|
385
|
+
modalCriticalTextDisabled: {
|
|
386
|
+
...theme.TextTheme.bold,
|
|
387
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
388
|
+
textAlign: 'center'
|
|
389
|
+
},
|
|
390
|
+
modalPrimaryText: {
|
|
391
|
+
...theme.TextTheme.bold,
|
|
392
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
393
|
+
textAlign: 'center'
|
|
394
|
+
},
|
|
395
|
+
modalPrimaryTextDisabled: {
|
|
396
|
+
...theme.TextTheme.bold,
|
|
397
|
+
color: theme.ColorPalette.brand.buttonText,
|
|
398
|
+
textAlign: 'center'
|
|
399
|
+
},
|
|
400
|
+
modalSecondaryText: {
|
|
401
|
+
...theme.TextTheme.bold,
|
|
402
|
+
color: theme.ColorPalette.brand.modalPrimary,
|
|
403
|
+
textAlign: 'center'
|
|
404
|
+
},
|
|
405
|
+
modalSecondaryTextDisabled: {
|
|
406
|
+
...theme.TextTheme.bold,
|
|
407
|
+
color: theme.ColorPalette.brand.secondaryDisabled,
|
|
408
|
+
textAlign: 'center'
|
|
409
|
+
},
|
|
410
|
+
modalTertiaryText: {
|
|
411
|
+
...theme.TextTheme.bold,
|
|
412
|
+
color: theme.ColorPalette.brand.modalPrimary,
|
|
413
|
+
textAlign: 'center'
|
|
414
|
+
},
|
|
415
|
+
modalTertiaryTextDisabled: {
|
|
416
|
+
...theme.TextTheme.bold,
|
|
417
|
+
color: theme.ColorPalette.brand.tertiaryDisabled,
|
|
418
|
+
textAlign: 'center'
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
422
|
+
critical: {
|
|
423
|
+
padding: 16,
|
|
424
|
+
borderRadius: 4,
|
|
425
|
+
backgroundColor: theme.ColorPalette.brand.primary
|
|
426
|
+
},
|
|
427
|
+
criticalDisabled: {
|
|
428
|
+
padding: 16,
|
|
429
|
+
borderRadius: 4,
|
|
430
|
+
backgroundColor: theme.ColorPalette.brand.primaryDisabled
|
|
431
|
+
},
|
|
432
|
+
primary: {
|
|
433
|
+
padding: 16,
|
|
434
|
+
borderRadius: 4,
|
|
435
|
+
backgroundColor: theme.ColorPalette.brand.primary
|
|
436
|
+
},
|
|
437
|
+
primaryDisabled: {
|
|
438
|
+
padding: 16,
|
|
439
|
+
borderRadius: 4,
|
|
440
|
+
backgroundColor: theme.ColorPalette.brand.primaryDisabled
|
|
441
|
+
},
|
|
442
|
+
secondary: {
|
|
443
|
+
padding: 16,
|
|
444
|
+
borderRadius: 4,
|
|
445
|
+
borderWidth: 2,
|
|
446
|
+
borderColor: theme.ColorPalette.brand.primary
|
|
447
|
+
},
|
|
448
|
+
secondaryDisabled: {
|
|
449
|
+
padding: 16,
|
|
450
|
+
borderRadius: 4,
|
|
451
|
+
borderWidth: 2,
|
|
452
|
+
borderColor: theme.ColorPalette.brand.secondaryDisabled
|
|
453
|
+
},
|
|
454
|
+
tertiary: {
|
|
455
|
+
padding: 16
|
|
456
|
+
},
|
|
457
|
+
tertiaryDisabled: {
|
|
458
|
+
padding: 16
|
|
459
|
+
},
|
|
460
|
+
modalCritical: {
|
|
461
|
+
padding: 16,
|
|
462
|
+
borderRadius: 4,
|
|
463
|
+
backgroundColor: theme.ColorPalette.brand.primary
|
|
464
|
+
},
|
|
465
|
+
modalCriticalDisabled: {
|
|
466
|
+
padding: 16,
|
|
467
|
+
borderRadius: 4,
|
|
468
|
+
backgroundColor: theme.ColorPalette.brand.primaryDisabled
|
|
469
|
+
},
|
|
470
|
+
modalPrimary: {
|
|
471
|
+
padding: 16,
|
|
472
|
+
borderRadius: 4,
|
|
473
|
+
backgroundColor: theme.ColorPalette.brand.modalPrimary
|
|
474
|
+
},
|
|
475
|
+
modalPrimaryDisabled: {
|
|
476
|
+
padding: 16,
|
|
477
|
+
borderRadius: 4,
|
|
478
|
+
backgroundColor: theme.ColorPalette.brand.primaryDisabled
|
|
479
|
+
},
|
|
480
|
+
modalSecondary: {
|
|
481
|
+
padding: 16,
|
|
482
|
+
borderRadius: 4,
|
|
483
|
+
borderWidth: 2,
|
|
484
|
+
borderColor: theme.ColorPalette.brand.modalPrimary
|
|
485
|
+
},
|
|
486
|
+
modalSecondaryDisabled: {
|
|
487
|
+
padding: 16,
|
|
488
|
+
borderRadius: 4,
|
|
489
|
+
borderWidth: 2,
|
|
490
|
+
borderColor: theme.ColorPalette.brand.secondaryDisabled
|
|
491
|
+
},
|
|
492
|
+
modalTertiary: {
|
|
493
|
+
padding: 16
|
|
494
|
+
},
|
|
495
|
+
modalTertiaryDisabled: {
|
|
496
|
+
padding: 16
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
return {
|
|
500
|
+
...textStyles,
|
|
501
|
+
...viewStyles
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
const Buttons = exports.Buttons = createButtonsTheme({
|
|
505
|
+
ColorPalette,
|
|
506
|
+
TextTheme
|
|
548
507
|
});
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Creates a theme for list items based on the provided color pallet and text theme.
|
|
511
|
+
*
|
|
512
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
513
|
+
* @returns {*} {IListItems} - The created list items theme
|
|
514
|
+
*/
|
|
515
|
+
function createListItemsTheme(theme) {
|
|
516
|
+
const testStyles = _reactNative.StyleSheet.create({
|
|
517
|
+
credentialTitle: {
|
|
518
|
+
...theme.TextTheme.headingFour
|
|
519
|
+
},
|
|
520
|
+
credentialDetails: {
|
|
521
|
+
...theme.TextTheme.caption
|
|
522
|
+
},
|
|
523
|
+
credentialOfferTitle: {
|
|
524
|
+
...theme.TextTheme.modalHeadingThree,
|
|
525
|
+
fontWeight: 'normal'
|
|
526
|
+
},
|
|
527
|
+
credentialOfferDetails: {
|
|
528
|
+
...theme.TextTheme.normal
|
|
529
|
+
},
|
|
530
|
+
credentialIconColor: {
|
|
531
|
+
color: theme.ColorPalette.notification.infoText
|
|
532
|
+
},
|
|
533
|
+
contactTitle: {
|
|
534
|
+
color: theme.ColorPalette.brand.text
|
|
535
|
+
},
|
|
536
|
+
contactDate: {
|
|
537
|
+
color: theme.ColorPalette.brand.text,
|
|
538
|
+
marginTop: 10
|
|
539
|
+
},
|
|
540
|
+
contactIcon: {
|
|
541
|
+
color: theme.ColorPalette.grayscale.white
|
|
542
|
+
},
|
|
543
|
+
recordAttributeLabel: {
|
|
544
|
+
...theme.TextTheme.bold
|
|
545
|
+
},
|
|
546
|
+
recordLink: {
|
|
547
|
+
color: theme.ColorPalette.brand.link
|
|
548
|
+
},
|
|
549
|
+
recordAttributeText: {
|
|
550
|
+
...theme.TextTheme.normal
|
|
551
|
+
},
|
|
552
|
+
proofIcon: {
|
|
553
|
+
...theme.TextTheme.headingOne
|
|
554
|
+
},
|
|
555
|
+
proofError: {
|
|
556
|
+
color: theme.ColorPalette.semantic.error
|
|
557
|
+
},
|
|
558
|
+
avatarText: {
|
|
559
|
+
...theme.TextTheme.headingTwo,
|
|
560
|
+
fontWeight: 'normal'
|
|
561
|
+
},
|
|
562
|
+
avatarCircle: {
|
|
563
|
+
borderRadius: theme.TextTheme.headingTwo.fontSize,
|
|
564
|
+
borderColor: theme.TextTheme.headingTwo.color,
|
|
565
|
+
width: (theme.TextTheme.headingTwo.fontSize ?? 32) * 2,
|
|
566
|
+
height: (theme.TextTheme.headingTwo.fontSize ?? 32) * 2
|
|
567
|
+
},
|
|
568
|
+
requestTemplateIconColor: {
|
|
569
|
+
color: theme.ColorPalette.notification.infoText
|
|
570
|
+
},
|
|
571
|
+
requestTemplateTitle: {
|
|
572
|
+
color: theme.ColorPalette.grayscale.black,
|
|
573
|
+
fontWeight: 'bold',
|
|
574
|
+
fontSize: 16
|
|
575
|
+
},
|
|
576
|
+
requestTemplateDetails: {
|
|
577
|
+
color: theme.ColorPalette.grayscale.black,
|
|
578
|
+
fontWeight: 'normal',
|
|
579
|
+
fontSize: 16
|
|
580
|
+
},
|
|
581
|
+
requestTemplateZkpLabel: {
|
|
582
|
+
color: theme.ColorPalette.grayscale.mediumGrey,
|
|
583
|
+
fontSize: 12
|
|
584
|
+
},
|
|
585
|
+
requestTemplateIcon: {
|
|
586
|
+
color: theme.ColorPalette.grayscale.black,
|
|
587
|
+
fontSize: 36
|
|
588
|
+
},
|
|
589
|
+
requestTemplateDate: {
|
|
590
|
+
color: theme.ColorPalette.grayscale.mediumGrey,
|
|
591
|
+
fontSize: 10
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
595
|
+
credentialBackground: {
|
|
596
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
597
|
+
},
|
|
598
|
+
credentialOfferBackground: {
|
|
599
|
+
backgroundColor: theme.ColorPalette.brand.modalPrimaryBackground
|
|
600
|
+
},
|
|
601
|
+
revoked: {
|
|
602
|
+
backgroundColor: theme.ColorPalette.notification.error,
|
|
603
|
+
borderColor: theme.ColorPalette.notification.errorBorder
|
|
604
|
+
},
|
|
605
|
+
contactBackground: {
|
|
606
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
607
|
+
},
|
|
608
|
+
contactIconBackground: {
|
|
609
|
+
backgroundColor: theme.ColorPalette.brand.primary
|
|
610
|
+
},
|
|
611
|
+
recordContainer: {
|
|
612
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
613
|
+
},
|
|
614
|
+
recordBorder: {
|
|
615
|
+
borderBottomColor: theme.ColorPalette.brand.primaryBackground
|
|
616
|
+
},
|
|
617
|
+
emptyList: {
|
|
618
|
+
...theme.TextTheme.normal
|
|
619
|
+
},
|
|
620
|
+
requestTemplateBackground: {
|
|
621
|
+
backgroundColor: theme.ColorPalette.grayscale.white
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
return {
|
|
625
|
+
...testStyles,
|
|
626
|
+
...viewStyles
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
const ListItems = exports.ListItems = createListItemsTheme({
|
|
630
|
+
ColorPalette,
|
|
631
|
+
TextTheme
|
|
619
632
|
});
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Creates a theme for tabs based on the provided color pallet and text theme.
|
|
636
|
+
*
|
|
637
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
638
|
+
* @returns {*} {ITabTheme} - The created tab theme
|
|
639
|
+
*/
|
|
640
|
+
function createTabTheme(theme) {
|
|
641
|
+
const textStyles = _reactNative.StyleSheet.create({
|
|
642
|
+
tabBarTextStyle: {
|
|
643
|
+
...theme.TextTheme.labelSubtitle,
|
|
644
|
+
paddingBottom: 5
|
|
645
|
+
},
|
|
646
|
+
tabBarButtonIconStyle: {
|
|
647
|
+
color: theme.ColorPalette.brand.headerIcon
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
651
|
+
tabBarStyle: {
|
|
652
|
+
height: 60,
|
|
653
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
654
|
+
shadowOffset: {
|
|
655
|
+
width: 0,
|
|
656
|
+
height: -3
|
|
657
|
+
},
|
|
658
|
+
shadowRadius: 6,
|
|
659
|
+
shadowColor: theme.ColorPalette.grayscale.black,
|
|
660
|
+
shadowOpacity: 0.1,
|
|
661
|
+
borderTopWidth: 0,
|
|
662
|
+
paddingBottom: 0
|
|
663
|
+
},
|
|
664
|
+
tabBarContainerStyle: {
|
|
665
|
+
flex: 1,
|
|
666
|
+
justifyContent: 'center',
|
|
667
|
+
alignItems: 'center'
|
|
668
|
+
},
|
|
669
|
+
focusTabIconStyle: {
|
|
670
|
+
height: 60,
|
|
671
|
+
width: 60,
|
|
672
|
+
backgroundColor: theme.ColorPalette.brand.primary,
|
|
673
|
+
borderRadius: 60,
|
|
674
|
+
justifyContent: 'center',
|
|
675
|
+
alignItems: 'center'
|
|
676
|
+
},
|
|
677
|
+
focusTabActiveTintColor: {
|
|
678
|
+
backgroundColor: theme.ColorPalette.brand.secondary
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
return {
|
|
682
|
+
...textStyles,
|
|
683
|
+
...viewStyles,
|
|
684
|
+
tabBarActiveTintColor: theme.ColorPalette.brand.primary,
|
|
685
|
+
tabBarInactiveTintColor: theme.ColorPalette.brand.tabBarInactive,
|
|
686
|
+
tabBarSecondaryBackgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
const TabTheme = exports.TabTheme = createTabTheme({
|
|
690
|
+
ColorPalette,
|
|
691
|
+
TextTheme
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Creates a navigation theme based on the provided color pallet.
|
|
696
|
+
*
|
|
697
|
+
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
698
|
+
* @returns {*} {INavigationTheme} - The created navigation theme
|
|
699
|
+
*/
|
|
700
|
+
function createNavigationTheme(theme) {
|
|
701
|
+
return {
|
|
702
|
+
dark: true,
|
|
703
|
+
colors: {
|
|
704
|
+
primary: theme.ColorPalette.brand.primary,
|
|
705
|
+
background: theme.ColorPalette.brand.primaryBackground,
|
|
706
|
+
card: theme.ColorPalette.brand.primary,
|
|
707
|
+
text: theme.ColorPalette.grayscale.white,
|
|
708
|
+
border: theme.ColorPalette.grayscale.white,
|
|
709
|
+
notification: theme.ColorPalette.grayscale.white
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
const NavigationTheme = exports.NavigationTheme = createNavigationTheme({
|
|
714
|
+
ColorPalette
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Creates a home theme based on the provided color pallet and text theme.
|
|
719
|
+
*
|
|
720
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
721
|
+
* @returns {*} {IHomeTheme} - The created home theme
|
|
722
|
+
*/
|
|
723
|
+
function createHomeTheme(theme) {
|
|
724
|
+
return _reactNative.StyleSheet.create({
|
|
725
|
+
welcomeHeader: {
|
|
726
|
+
...theme.TextTheme.headingOne
|
|
727
|
+
},
|
|
728
|
+
credentialMsg: {
|
|
729
|
+
...theme.TextTheme.normal
|
|
730
|
+
},
|
|
731
|
+
notificationsHeader: {
|
|
732
|
+
...theme.TextTheme.headingThree
|
|
733
|
+
},
|
|
734
|
+
noNewUpdatesText: {
|
|
735
|
+
...theme.TextTheme.normal,
|
|
736
|
+
color: theme.ColorPalette.notification.infoText
|
|
737
|
+
},
|
|
738
|
+
link: {
|
|
739
|
+
...theme.TextTheme.normal,
|
|
740
|
+
color: theme.ColorPalette.brand.link
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
const HomeTheme = exports.HomeTheme = createHomeTheme({
|
|
745
|
+
ColorPalette,
|
|
746
|
+
TextTheme
|
|
747
|
+
});
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Creates a settings theme based on the provided color pallet and text theme.
|
|
751
|
+
*
|
|
752
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
753
|
+
* @returns {*} {ISettingsTheme} - The created settings theme
|
|
754
|
+
*/
|
|
755
|
+
function createSettingsTheme(theme) {
|
|
756
|
+
const settingsTheme = _reactNative.StyleSheet.create({
|
|
757
|
+
groupHeader: {
|
|
758
|
+
...theme.TextTheme.normal,
|
|
759
|
+
marginBottom: 8
|
|
760
|
+
},
|
|
761
|
+
text: {
|
|
762
|
+
...theme.TextTheme.caption,
|
|
763
|
+
color: theme.ColorPalette.grayscale.white
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
return {
|
|
767
|
+
...settingsTheme,
|
|
768
|
+
groupBackground: theme.ColorPalette.brand.secondaryBackground,
|
|
769
|
+
iconColor: theme.ColorPalette.brand.text
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
const SettingsTheme = exports.SettingsTheme = createSettingsTheme({
|
|
773
|
+
ColorPalette,
|
|
774
|
+
TextTheme
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Creates a chat theme based on the provided color pallet and text theme.
|
|
779
|
+
*
|
|
780
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
781
|
+
* @returns {*} {IChatTheme} - The created chat theme
|
|
782
|
+
*/
|
|
783
|
+
function createChatTheme(theme) {
|
|
784
|
+
const textStyles = _reactNative.StyleSheet.create({
|
|
785
|
+
timeStyleLeft: {
|
|
786
|
+
color: theme.ColorPalette.grayscale.lightGrey,
|
|
787
|
+
fontSize: 12,
|
|
788
|
+
marginTop: 8
|
|
789
|
+
},
|
|
790
|
+
timeStyleRight: {
|
|
791
|
+
color: theme.ColorPalette.grayscale.lightGrey,
|
|
792
|
+
fontSize: 12,
|
|
793
|
+
marginTop: 8
|
|
794
|
+
},
|
|
795
|
+
leftText: {
|
|
796
|
+
color: theme.ColorPalette.brand.secondary,
|
|
797
|
+
fontSize: theme.TextTheme.normal.fontSize
|
|
798
|
+
},
|
|
799
|
+
leftTextHighlighted: {
|
|
800
|
+
...theme.TextTheme.bold,
|
|
801
|
+
color: theme.ColorPalette.brand.secondary
|
|
802
|
+
},
|
|
803
|
+
rightText: {
|
|
804
|
+
color: theme.ColorPalette.brand.secondary,
|
|
805
|
+
fontSize: theme.TextTheme.normal.fontSize
|
|
806
|
+
},
|
|
807
|
+
rightTextHighlighted: {
|
|
808
|
+
...theme.TextTheme.bold,
|
|
809
|
+
color: theme.ColorPalette.brand.secondary
|
|
810
|
+
},
|
|
811
|
+
inputText: {
|
|
812
|
+
lineHeight: undefined,
|
|
813
|
+
fontWeight: '500',
|
|
814
|
+
fontSize: theme.TextTheme.normal.fontSize
|
|
815
|
+
},
|
|
816
|
+
openButtonTextStyle: {
|
|
817
|
+
fontSize: theme.TextTheme.normal.fontSize,
|
|
818
|
+
fontWeight: 'bold',
|
|
819
|
+
textAlign: 'center'
|
|
820
|
+
},
|
|
821
|
+
documentIcon: {
|
|
822
|
+
color: theme.ColorPalette.grayscale.white
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
826
|
+
containerStyle: {
|
|
827
|
+
marginBottom: 16,
|
|
828
|
+
marginLeft: 16,
|
|
829
|
+
marginRight: 16,
|
|
830
|
+
flexDirection: 'column',
|
|
831
|
+
alignItems: 'flex-start',
|
|
832
|
+
alignSelf: 'flex-end'
|
|
833
|
+
},
|
|
834
|
+
leftBubble: {
|
|
835
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
836
|
+
borderRadius: 4,
|
|
837
|
+
padding: 16,
|
|
838
|
+
marginLeft: 16
|
|
839
|
+
},
|
|
840
|
+
rightBubble: {
|
|
841
|
+
backgroundColor: theme.ColorPalette.brand.primaryLight,
|
|
842
|
+
borderRadius: 4,
|
|
843
|
+
padding: 16,
|
|
844
|
+
marginRight: 16
|
|
845
|
+
},
|
|
846
|
+
sendContainer: {
|
|
847
|
+
marginBottom: 4,
|
|
848
|
+
paddingHorizontal: 4,
|
|
849
|
+
justifyContent: 'center'
|
|
850
|
+
},
|
|
851
|
+
openButtonStyle: {
|
|
852
|
+
borderRadius: 32,
|
|
853
|
+
backgroundColor: theme.ColorPalette.brand.primary,
|
|
854
|
+
paddingTop: 8,
|
|
855
|
+
paddingBottom: 8,
|
|
856
|
+
paddingLeft: 16,
|
|
857
|
+
paddingRight: 16,
|
|
858
|
+
marginTop: 16
|
|
859
|
+
},
|
|
860
|
+
documentIconContainer: {
|
|
861
|
+
backgroundColor: theme.ColorPalette.brand.primary,
|
|
862
|
+
alignSelf: 'flex-start',
|
|
863
|
+
borderRadius: 4,
|
|
864
|
+
marginBottom: 16,
|
|
865
|
+
justifyContent: 'center',
|
|
866
|
+
alignItems: 'center',
|
|
867
|
+
width: 50,
|
|
868
|
+
height: 50
|
|
869
|
+
},
|
|
870
|
+
inputToolbar: {
|
|
871
|
+
backgroundColor: theme.ColorPalette.brand.secondary,
|
|
872
|
+
shadowColor: theme.ColorPalette.brand.primaryDisabled,
|
|
873
|
+
borderRadius: 10
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
return {
|
|
877
|
+
...textStyles,
|
|
878
|
+
...viewStyles,
|
|
879
|
+
placeholderText: theme.ColorPalette.grayscale.lightGrey,
|
|
880
|
+
sendEnabled: theme.ColorPalette.brand.primary,
|
|
881
|
+
sendDisabled: theme.ColorPalette.brand.primaryDisabled,
|
|
882
|
+
options: theme.ColorPalette.brand.primary,
|
|
883
|
+
optionsText: theme.ColorPalette.grayscale.black
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
const ChatTheme = exports.ChatTheme = createChatTheme({
|
|
887
|
+
ColorPalette,
|
|
888
|
+
TextTheme
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Creates an onboarding theme based on the provided color pallet and text theme.
|
|
893
|
+
*
|
|
894
|
+
* @param {{ ColorPalette: IColorPalette; TextTheme: ITextTheme }} theme - The theme object containing the color pallet and text theme
|
|
895
|
+
* @returns {*} {IOnboardingTheme} - The created onboarding theme
|
|
896
|
+
*/
|
|
897
|
+
function createOnboardingTheme(theme) {
|
|
898
|
+
const textStyles = _reactNative.StyleSheet.create({
|
|
899
|
+
pagerDot: {
|
|
900
|
+
borderColor: theme.ColorPalette.brand.primary
|
|
901
|
+
},
|
|
902
|
+
pagerDotActive: {
|
|
903
|
+
color: theme.ColorPalette.brand.primary
|
|
904
|
+
},
|
|
905
|
+
pagerDotInactive: {
|
|
906
|
+
color: theme.ColorPalette.brand.secondary
|
|
907
|
+
},
|
|
908
|
+
pagerNavigationButton: {
|
|
909
|
+
color: theme.ColorPalette.brand.primary,
|
|
910
|
+
fontWeight: 'bold',
|
|
911
|
+
fontSize: 18
|
|
912
|
+
},
|
|
913
|
+
headerText: {
|
|
914
|
+
...theme.TextTheme.bold
|
|
915
|
+
},
|
|
916
|
+
bodyText: {
|
|
917
|
+
...theme.TextTheme.normal
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
921
|
+
container: {
|
|
922
|
+
backgroundColor: theme.ColorPalette.brand.primaryBackground
|
|
923
|
+
},
|
|
924
|
+
carouselContainer: {
|
|
925
|
+
backgroundColor: theme.ColorPalette.brand.primaryBackground
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
return {
|
|
929
|
+
...textStyles,
|
|
930
|
+
...viewStyles,
|
|
931
|
+
headerTintColor: ColorPalette.grayscale.white,
|
|
932
|
+
imageDisplayOptions: {
|
|
933
|
+
fill: ColorPalette.notification.infoText
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
const OnboardingTheme = exports.OnboardingTheme = createOnboardingTheme({
|
|
938
|
+
ColorPalette,
|
|
939
|
+
TextTheme
|
|
940
|
+
});
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Creates a dialog theme based on the provided color pallet.
|
|
944
|
+
*
|
|
945
|
+
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
946
|
+
* @returns {*} {IDialogTheme} - The created dialog theme
|
|
947
|
+
*/
|
|
948
|
+
function createDialogTheme(theme) {
|
|
949
|
+
return _reactNative.StyleSheet.create({
|
|
950
|
+
modalView: {
|
|
951
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground
|
|
952
|
+
},
|
|
953
|
+
titleText: {
|
|
954
|
+
color: theme.ColorPalette.grayscale.white
|
|
955
|
+
},
|
|
956
|
+
description: {
|
|
957
|
+
color: theme.ColorPalette.grayscale.white
|
|
958
|
+
},
|
|
959
|
+
closeButtonIcon: {
|
|
960
|
+
color: theme.ColorPalette.grayscale.white
|
|
961
|
+
},
|
|
962
|
+
carouselButtonText: {
|
|
963
|
+
color: theme.ColorPalette.grayscale.white
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
const DialogTheme = exports.DialogTheme = createDialogTheme({
|
|
968
|
+
ColorPalette
|
|
969
|
+
});
|
|
970
|
+
function createLoadingTheme(theme) {
|
|
971
|
+
return {
|
|
972
|
+
backgroundColor: theme.ColorPalette.brand.modalPrimaryBackground
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
const LoadingTheme = exports.LoadingTheme = createLoadingTheme({
|
|
976
|
+
ColorPalette
|
|
977
|
+
});
|
|
978
|
+
|
|
979
|
+
// NOTE: If ColorPalette or TextTheme is needed in this theme,
|
|
980
|
+
// we can convert this to a function like the others.
|
|
779
981
|
const PINEnterTheme = {
|
|
780
982
|
image: {
|
|
781
983
|
alignSelf: 'center',
|
|
782
984
|
marginBottom: 20
|
|
783
985
|
}
|
|
784
986
|
};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
987
|
+
/**
|
|
988
|
+
* Creates a theme for PIN input based on the provided color pallet.
|
|
989
|
+
*
|
|
990
|
+
* @param {{ ColorPalette: IColorPalette }} theme - The theme object containing the color pallet
|
|
991
|
+
* @returns {*} {IPINInputTheme} - The created PIN input theme
|
|
992
|
+
*/
|
|
993
|
+
function createPINInputTheme(theme) {
|
|
994
|
+
const textStyles = _reactNative.StyleSheet.create({
|
|
995
|
+
cellText: {
|
|
996
|
+
color: theme.ColorPalette.brand.text
|
|
997
|
+
},
|
|
998
|
+
icon: {
|
|
999
|
+
color: theme.ColorPalette.brand.headerIcon
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
const viewStyles = _reactNative.StyleSheet.create({
|
|
1003
|
+
cell: {
|
|
1004
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
1005
|
+
borderColor: theme.ColorPalette.brand.secondary,
|
|
1006
|
+
borderWidth: 1
|
|
1007
|
+
},
|
|
1008
|
+
focussedCell: {
|
|
1009
|
+
borderColor: theme.ColorPalette.brand.headerIcon
|
|
1010
|
+
},
|
|
1011
|
+
codeFieldRoot: {
|
|
1012
|
+
justifyContent: 'flex-start',
|
|
1013
|
+
alignItems: 'center'
|
|
1014
|
+
},
|
|
1015
|
+
labelAndFieldContainer: {
|
|
1016
|
+
flexDirection: 'row',
|
|
1017
|
+
borderRadius: 5,
|
|
1018
|
+
paddingHorizontal: 12,
|
|
1019
|
+
paddingVertical: 4,
|
|
1020
|
+
alignItems: 'center',
|
|
1021
|
+
backgroundColor: theme.ColorPalette.brand.secondaryBackground,
|
|
1022
|
+
borderColor: theme.ColorPalette.brand.secondary,
|
|
1023
|
+
borderWidth: 1
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
return {
|
|
1027
|
+
...textStyles,
|
|
1028
|
+
...viewStyles
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
const PINInputTheme = exports.PINInputTheme = createPINInputTheme({
|
|
1032
|
+
ColorPalette
|
|
1033
|
+
});
|
|
815
1034
|
const CredentialCardShadowTheme = {
|
|
816
1035
|
shadowColor: '#000',
|
|
817
1036
|
shadowOffset: {
|
|
@@ -823,7 +1042,7 @@ const CredentialCardShadowTheme = {
|
|
|
823
1042
|
const SelectedCredTheme = {
|
|
824
1043
|
borderWidth: 5,
|
|
825
1044
|
borderRadius: 15,
|
|
826
|
-
borderColor:
|
|
1045
|
+
borderColor: ColorPalette.semantic.focus
|
|
827
1046
|
};
|
|
828
1047
|
const Assets = exports.Assets = {
|
|
829
1048
|
svg: {
|
|
@@ -905,20 +1124,33 @@ const Assets = exports.Assets = {
|
|
|
905
1124
|
}
|
|
906
1125
|
}
|
|
907
1126
|
};
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Creates a theme for inline messages in inputs based on the provided text theme and assets.
|
|
1130
|
+
*
|
|
1131
|
+
* @param {{ TextTheme: ITextTheme; Assets: IAssets }} theme - The theme object containing the text theme and assets
|
|
1132
|
+
* @return {*} {IInlineInputMessage} - The created inline input message theme
|
|
1133
|
+
*/
|
|
1134
|
+
function createInputInlineMessageTheme(theme) {
|
|
1135
|
+
return {
|
|
1136
|
+
inlineErrorText: {
|
|
1137
|
+
...theme.TextTheme.inlineErrorText
|
|
1138
|
+
},
|
|
1139
|
+
InlineErrorIcon: theme.Assets.svg.iconError,
|
|
1140
|
+
inlineWarningText: {
|
|
1141
|
+
...theme.TextTheme.inlineWarningText
|
|
1142
|
+
},
|
|
1143
|
+
InlineWarningIcon: theme.Assets.svg.iconWarning
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
const InputInlineMessage = exports.InputInlineMessage = createInputInlineMessageTheme({
|
|
1147
|
+
TextTheme,
|
|
1148
|
+
Assets
|
|
1149
|
+
});
|
|
918
1150
|
const bifoldTheme = exports.bifoldTheme = {
|
|
919
1151
|
themeName: 'bifold',
|
|
920
1152
|
Spacing,
|
|
921
|
-
|
|
1153
|
+
ColorPalette,
|
|
922
1154
|
TextTheme,
|
|
923
1155
|
InputInlineMessage,
|
|
924
1156
|
Inputs,
|
|
@@ -943,4 +1175,6 @@ const bifoldTheme = exports.bifoldTheme = {
|
|
|
943
1175
|
Assets
|
|
944
1176
|
};
|
|
945
1177
|
const themes = exports.themes = [bifoldTheme];
|
|
1178
|
+
|
|
1179
|
+
// Backwards compatible exports
|
|
946
1180
|
//# sourceMappingURL=theme.js.map
|