@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.
Files changed (603) hide show
  1. package/lib/commonjs/App.js +1 -1
  2. package/lib/commonjs/App.js.map +1 -1
  3. package/lib/commonjs/components/animated/ButtonLoading.js +2 -2
  4. package/lib/commonjs/components/animated/ButtonLoading.js.map +1 -1
  5. package/lib/commonjs/components/animated/ConnectionLoading.js +3 -3
  6. package/lib/commonjs/components/animated/ConnectionLoading.js.map +1 -1
  7. package/lib/commonjs/components/animated/LoadingIndicator.js +2 -2
  8. package/lib/commonjs/components/animated/LoadingIndicator.js.map +1 -1
  9. package/lib/commonjs/components/animated/PresentationLoading.js +3 -3
  10. package/lib/commonjs/components/animated/PresentationLoading.js.map +1 -1
  11. package/lib/commonjs/components/animated/RecordLoading.js +5 -5
  12. package/lib/commonjs/components/animated/RecordLoading.js.map +1 -1
  13. package/lib/commonjs/components/animated/SendingProof.js +3 -3
  14. package/lib/commonjs/components/animated/SendingProof.js.map +1 -1
  15. package/lib/commonjs/components/animated/SentProof.js +3 -3
  16. package/lib/commonjs/components/animated/SentProof.js.map +1 -1
  17. package/lib/commonjs/components/buttons/Button.js +1 -1
  18. package/lib/commonjs/components/buttons/Button.js.map +1 -1
  19. package/lib/commonjs/components/buttons/IconButton.js +3 -3
  20. package/lib/commonjs/components/buttons/IconButton.js.map +1 -1
  21. package/lib/commonjs/components/buttons/ToggleButton.js +3 -3
  22. package/lib/commonjs/components/buttons/ToggleButton.js.map +1 -1
  23. package/lib/commonjs/components/chat/ActionSlider.js +3 -3
  24. package/lib/commonjs/components/chat/ActionSlider.js.map +1 -1
  25. package/lib/commonjs/components/forms/WalletNameForm.js +2 -2
  26. package/lib/commonjs/components/forms/WalletNameForm.js.map +1 -1
  27. package/lib/commonjs/components/inputs/BiometryControl.js +2 -2
  28. package/lib/commonjs/components/inputs/BiometryControl.js.map +1 -1
  29. package/lib/commonjs/components/inputs/BulletPoint.js +2 -2
  30. package/lib/commonjs/components/inputs/BulletPoint.js.map +1 -1
  31. package/lib/commonjs/components/listItems/ContactCredentialListItem.js +3 -3
  32. package/lib/commonjs/components/listItems/ContactCredentialListItem.js.map +1 -1
  33. package/lib/commonjs/components/listItems/ContactListItem.js +2 -2
  34. package/lib/commonjs/components/listItems/ContactListItem.js.map +1 -1
  35. package/lib/commonjs/components/listItems/NotificationListItem.js +22 -22
  36. package/lib/commonjs/components/listItems/NotificationListItem.js.map +1 -1
  37. package/lib/commonjs/components/misc/ConnectionAlert.js +5 -5
  38. package/lib/commonjs/components/misc/ConnectionAlert.js.map +1 -1
  39. package/lib/commonjs/components/misc/ConnectionImage.js +3 -3
  40. package/lib/commonjs/components/misc/ConnectionImage.js.map +1 -1
  41. package/lib/commonjs/components/misc/CredentialCard.js +2 -2
  42. package/lib/commonjs/components/misc/CredentialCard.js.map +1 -1
  43. package/lib/commonjs/components/misc/CredentialCard10.js +6 -6
  44. package/lib/commonjs/components/misc/CredentialCard10.js.map +1 -1
  45. package/lib/commonjs/components/misc/CredentialCard11.js +12 -12
  46. package/lib/commonjs/components/misc/CredentialCard11.js.map +1 -1
  47. package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js +3 -3
  48. package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js.map +1 -1
  49. package/lib/commonjs/components/misc/EmptyList.js +2 -2
  50. package/lib/commonjs/components/misc/EmptyList.js.map +1 -1
  51. package/lib/commonjs/components/misc/EmptyListContacts.js +2 -2
  52. package/lib/commonjs/components/misc/EmptyListContacts.js.map +1 -1
  53. package/lib/commonjs/components/misc/FauxHeader.js +2 -2
  54. package/lib/commonjs/components/misc/FauxHeader.js.map +1 -1
  55. package/lib/commonjs/components/misc/InfoBox.js +29 -29
  56. package/lib/commonjs/components/misc/InfoBox.js.map +1 -1
  57. package/lib/commonjs/components/misc/NoNewUpdates.js +2 -2
  58. package/lib/commonjs/components/misc/NoNewUpdates.js.map +1 -1
  59. package/lib/commonjs/components/misc/PINValidationHelper.js +3 -3
  60. package/lib/commonjs/components/misc/PINValidationHelper.js.map +1 -1
  61. package/lib/commonjs/components/misc/QRRenderer.js +2 -2
  62. package/lib/commonjs/components/misc/QRRenderer.js.map +1 -1
  63. package/lib/commonjs/components/misc/QRScanner.js +3 -3
  64. package/lib/commonjs/components/misc/QRScanner.js.map +1 -1
  65. package/lib/commonjs/components/misc/QRScannerTorch.js +4 -4
  66. package/lib/commonjs/components/misc/QRScannerTorch.js.map +1 -1
  67. package/lib/commonjs/components/misc/SharedProofData.js +2 -2
  68. package/lib/commonjs/components/misc/SharedProofData.js.map +1 -1
  69. package/lib/commonjs/components/misc/UnorderedList.js +3 -3
  70. package/lib/commonjs/components/misc/UnorderedList.js.map +1 -1
  71. package/lib/commonjs/components/misc/VerifierCredentialCard.js +7 -7
  72. package/lib/commonjs/components/misc/VerifierCredentialCard.js.map +1 -1
  73. package/lib/commonjs/components/modals/AppGuideModal.js +7 -7
  74. package/lib/commonjs/components/modals/AppGuideModal.js.map +1 -1
  75. package/lib/commonjs/components/modals/CameraDisclosureModal.js +4 -4
  76. package/lib/commonjs/components/modals/CameraDisclosureModal.js.map +1 -1
  77. package/lib/commonjs/components/modals/CommonRemoveModal.js +7 -7
  78. package/lib/commonjs/components/modals/CommonRemoveModal.js.map +1 -1
  79. package/lib/commonjs/components/modals/DismissiblePopupModal.js +7 -7
  80. package/lib/commonjs/components/modals/DismissiblePopupModal.js.map +1 -1
  81. package/lib/commonjs/components/modals/ErrorModal.js +4 -4
  82. package/lib/commonjs/components/modals/ErrorModal.js.map +1 -1
  83. package/lib/commonjs/components/modals/ImageModal.js +4 -4
  84. package/lib/commonjs/components/modals/ImageModal.js.map +1 -1
  85. package/lib/commonjs/components/modals/PopupModal.js +2 -2
  86. package/lib/commonjs/components/modals/PopupModal.js.map +1 -1
  87. package/lib/commonjs/components/modals/ProofCancelModal.js +2 -2
  88. package/lib/commonjs/components/modals/ProofCancelModal.js.map +1 -1
  89. package/lib/commonjs/components/record/RecordFooter.js +2 -2
  90. package/lib/commonjs/components/record/RecordFooter.js.map +1 -1
  91. package/lib/commonjs/components/record/RecordHeader.js +2 -2
  92. package/lib/commonjs/components/record/RecordHeader.js.map +1 -1
  93. package/lib/commonjs/components/record/RecordRemove.js +5 -5
  94. package/lib/commonjs/components/record/RecordRemove.js.map +1 -1
  95. package/lib/commonjs/components/texts/HighlightTextBox.js +3 -3
  96. package/lib/commonjs/components/texts/HighlightTextBox.js.map +1 -1
  97. package/lib/commonjs/components/texts/InfoTextBox.js +17 -17
  98. package/lib/commonjs/components/texts/InfoTextBox.js.map +1 -1
  99. package/lib/commonjs/components/texts/Link.js +2 -2
  100. package/lib/commonjs/components/texts/Link.js.map +1 -1
  101. package/lib/commonjs/components/toast/BaseToast.js +17 -17
  102. package/lib/commonjs/components/toast/BaseToast.js.map +1 -1
  103. package/lib/commonjs/components/tour/CredentialOfferTourSteps.js +2 -2
  104. package/lib/commonjs/components/tour/CredentialOfferTourSteps.js.map +1 -1
  105. package/lib/commonjs/components/tour/CredentialsTourSteps.js +2 -2
  106. package/lib/commonjs/components/tour/CredentialsTourSteps.js.map +1 -1
  107. package/lib/commonjs/components/tour/HomeTourSteps.js +6 -6
  108. package/lib/commonjs/components/tour/HomeTourSteps.js.map +1 -1
  109. package/lib/commonjs/components/tour/ProofRequestTourSteps.js +2 -2
  110. package/lib/commonjs/components/tour/ProofRequestTourSteps.js.map +1 -1
  111. package/lib/commonjs/components/tour/TourBox.js +6 -6
  112. package/lib/commonjs/components/tour/TourBox.js.map +1 -1
  113. package/lib/commonjs/components/views/Banner.js +19 -9
  114. package/lib/commonjs/components/views/Banner.js.map +1 -1
  115. package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js +3 -3
  116. package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js.map +1 -1
  117. package/lib/commonjs/components/views/KeyboardView.js +2 -2
  118. package/lib/commonjs/components/views/KeyboardView.js.map +1 -1
  119. package/lib/commonjs/components/views/ProgressBar.js +3 -3
  120. package/lib/commonjs/components/views/ProgressBar.js.map +1 -1
  121. package/lib/commonjs/contexts/reducers/store.js +2 -1
  122. package/lib/commonjs/contexts/reducers/store.js.map +1 -1
  123. package/lib/commonjs/hooks/chat-messages.js +3 -3
  124. package/lib/commonjs/hooks/chat-messages.js.map +1 -1
  125. package/lib/commonjs/hooks/credential-card-styles.js +4 -4
  126. package/lib/commonjs/hooks/credential-card-styles.js.map +1 -1
  127. package/lib/commonjs/index.js +11 -3
  128. package/lib/commonjs/index.js.map +1 -1
  129. package/lib/commonjs/modules/history/ui/HistoryPage.js +2 -2
  130. package/lib/commonjs/modules/history/ui/HistoryPage.js.map +1 -1
  131. package/lib/commonjs/modules/history/ui/HistorySettings.js +2 -2
  132. package/lib/commonjs/modules/history/ui/HistorySettings.js.map +1 -1
  133. package/lib/commonjs/modules/history/ui/components/HistoryListItem.js +2 -2
  134. package/lib/commonjs/modules/history/ui/components/HistoryListItem.js.map +1 -1
  135. package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js +5 -5
  136. package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js.map +1 -1
  137. package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js +2 -2
  138. package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -1
  139. package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js +2 -2
  140. package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -1
  141. package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js +2 -2
  142. package/lib/commonjs/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
  143. package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js +4 -4
  144. package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
  145. package/lib/commonjs/navigators/TabStack.js +2 -2
  146. package/lib/commonjs/navigators/TabStack.js.map +1 -1
  147. package/lib/commonjs/navigators/defaultStackOptions.js +3 -3
  148. package/lib/commonjs/navigators/defaultStackOptions.js.map +1 -1
  149. package/lib/commonjs/screens/AttemptLockout.js +2 -2
  150. package/lib/commonjs/screens/AttemptLockout.js.map +1 -1
  151. package/lib/commonjs/screens/AutoLock.js +7 -7
  152. package/lib/commonjs/screens/AutoLock.js.map +1 -1
  153. package/lib/commonjs/screens/ConfigureMediator.js +7 -7
  154. package/lib/commonjs/screens/ConfigureMediator.js.map +1 -1
  155. package/lib/commonjs/screens/ContactDetails.js +9 -9
  156. package/lib/commonjs/screens/ContactDetails.js.map +1 -1
  157. package/lib/commonjs/screens/CredentialDetails.js +16 -16
  158. package/lib/commonjs/screens/CredentialDetails.js.map +1 -1
  159. package/lib/commonjs/screens/CredentialOffer.js +2 -2
  160. package/lib/commonjs/screens/CredentialOffer.js.map +1 -1
  161. package/lib/commonjs/screens/DataRetention.js +11 -11
  162. package/lib/commonjs/screens/DataRetention.js.map +1 -1
  163. package/lib/commonjs/screens/Developer.js +29 -29
  164. package/lib/commonjs/screens/Developer.js.map +1 -1
  165. package/lib/commonjs/screens/Home.js +2 -2
  166. package/lib/commonjs/screens/Home.js.map +1 -1
  167. package/lib/commonjs/screens/JSONDetails.js +3 -3
  168. package/lib/commonjs/screens/JSONDetails.js.map +1 -1
  169. package/lib/commonjs/screens/Language.js +7 -7
  170. package/lib/commonjs/screens/Language.js.map +1 -1
  171. package/lib/commonjs/screens/ListContacts.js +3 -3
  172. package/lib/commonjs/screens/ListContacts.js.map +1 -1
  173. package/lib/commonjs/screens/ListCredentials.js +2 -2
  174. package/lib/commonjs/screens/ListCredentials.js.map +1 -1
  175. package/lib/commonjs/screens/ListProofRequests.js +2 -2
  176. package/lib/commonjs/screens/ListProofRequests.js.map +1 -1
  177. package/lib/commonjs/screens/MobileVerifierLoading.js +3 -3
  178. package/lib/commonjs/screens/MobileVerifierLoading.js.map +1 -1
  179. package/lib/commonjs/screens/PINChange.js +2 -2
  180. package/lib/commonjs/screens/PINChange.js.map +1 -1
  181. package/lib/commonjs/screens/PINCreate.js +5 -3
  182. package/lib/commonjs/screens/PINCreate.js.map +1 -1
  183. package/lib/commonjs/screens/PINEnter.js +3 -3
  184. package/lib/commonjs/screens/PINEnter.js.map +1 -1
  185. package/lib/commonjs/screens/PINExplainer.js +3 -3
  186. package/lib/commonjs/screens/PINExplainer.js.map +1 -1
  187. package/lib/commonjs/screens/PINVerify.js +2 -2
  188. package/lib/commonjs/screens/PINVerify.js.map +1 -1
  189. package/lib/commonjs/screens/PasteUrl.js +4 -4
  190. package/lib/commonjs/screens/PasteUrl.js.map +1 -1
  191. package/lib/commonjs/screens/ProofChangeCredential.js +2 -2
  192. package/lib/commonjs/screens/ProofChangeCredential.js.map +1 -1
  193. package/lib/commonjs/screens/ProofDetails.js +3 -3
  194. package/lib/commonjs/screens/ProofDetails.js.map +1 -1
  195. package/lib/commonjs/screens/ProofRequest.js +7 -7
  196. package/lib/commonjs/screens/ProofRequest.js.map +1 -1
  197. package/lib/commonjs/screens/ProofRequestAccept.js +3 -3
  198. package/lib/commonjs/screens/ProofRequestAccept.js.map +1 -1
  199. package/lib/commonjs/screens/ProofRequestDetails.js +4 -4
  200. package/lib/commonjs/screens/ProofRequestDetails.js.map +1 -1
  201. package/lib/commonjs/screens/ProofRequestUsageHistory.js +2 -2
  202. package/lib/commonjs/screens/ProofRequestUsageHistory.js.map +1 -1
  203. package/lib/commonjs/screens/ProofRequesting.js +5 -5
  204. package/lib/commonjs/screens/ProofRequesting.js.map +1 -1
  205. package/lib/commonjs/screens/RenameContact.js +2 -2
  206. package/lib/commonjs/screens/RenameContact.js.map +1 -1
  207. package/lib/commonjs/screens/Settings.js +5 -5
  208. package/lib/commonjs/screens/Settings.js.map +1 -1
  209. package/lib/commonjs/screens/Splash.js +2 -2
  210. package/lib/commonjs/screens/Splash.js.map +1 -1
  211. package/lib/commonjs/screens/ToggleBiometry.js +2 -2
  212. package/lib/commonjs/screens/ToggleBiometry.js.map +1 -1
  213. package/lib/commonjs/screens/TogglePushNotifications.js +5 -5
  214. package/lib/commonjs/screens/TogglePushNotifications.js.map +1 -1
  215. package/lib/commonjs/screens/Tours.js +5 -5
  216. package/lib/commonjs/screens/Tours.js.map +1 -1
  217. package/lib/commonjs/screens/UpdateAvailable.js +2 -2
  218. package/lib/commonjs/screens/UpdateAvailable.js.map +1 -1
  219. package/lib/commonjs/screens/WhatAreContacts.js +2 -2
  220. package/lib/commonjs/screens/WhatAreContacts.js.map +1 -1
  221. package/lib/commonjs/services/logger.js +27 -35
  222. package/lib/commonjs/services/logger.js.map +1 -1
  223. package/lib/commonjs/theme-builder.js +140 -0
  224. package/lib/commonjs/theme-builder.js.map +1 -0
  225. package/lib/commonjs/theme.interface.js +6 -0
  226. package/lib/commonjs/theme.interface.js.map +1 -0
  227. package/lib/commonjs/theme.js +904 -670
  228. package/lib/commonjs/theme.js.map +1 -1
  229. package/lib/commonjs/utils/credential.js +3 -3
  230. package/lib/commonjs/utils/credential.js.map +1 -1
  231. package/lib/commonjs/utils/mediatorhelpers.js +16 -12
  232. package/lib/commonjs/utils/mediatorhelpers.js.map +1 -1
  233. package/lib/module/App.js +1 -1
  234. package/lib/module/App.js.map +1 -1
  235. package/lib/module/components/animated/ButtonLoading.js +2 -2
  236. package/lib/module/components/animated/ButtonLoading.js.map +1 -1
  237. package/lib/module/components/animated/ConnectionLoading.js +3 -3
  238. package/lib/module/components/animated/ConnectionLoading.js.map +1 -1
  239. package/lib/module/components/animated/LoadingIndicator.js +2 -2
  240. package/lib/module/components/animated/LoadingIndicator.js.map +1 -1
  241. package/lib/module/components/animated/PresentationLoading.js +3 -3
  242. package/lib/module/components/animated/PresentationLoading.js.map +1 -1
  243. package/lib/module/components/animated/RecordLoading.js +5 -5
  244. package/lib/module/components/animated/RecordLoading.js.map +1 -1
  245. package/lib/module/components/animated/SendingProof.js +3 -3
  246. package/lib/module/components/animated/SendingProof.js.map +1 -1
  247. package/lib/module/components/animated/SentProof.js +3 -3
  248. package/lib/module/components/animated/SentProof.js.map +1 -1
  249. package/lib/module/components/buttons/Button.js +1 -1
  250. package/lib/module/components/buttons/Button.js.map +1 -1
  251. package/lib/module/components/buttons/IconButton.js +3 -3
  252. package/lib/module/components/buttons/IconButton.js.map +1 -1
  253. package/lib/module/components/buttons/ToggleButton.js +3 -3
  254. package/lib/module/components/buttons/ToggleButton.js.map +1 -1
  255. package/lib/module/components/chat/ActionSlider.js +3 -3
  256. package/lib/module/components/chat/ActionSlider.js.map +1 -1
  257. package/lib/module/components/forms/WalletNameForm.js +2 -2
  258. package/lib/module/components/forms/WalletNameForm.js.map +1 -1
  259. package/lib/module/components/inputs/BiometryControl.js +2 -2
  260. package/lib/module/components/inputs/BiometryControl.js.map +1 -1
  261. package/lib/module/components/inputs/BulletPoint.js +2 -2
  262. package/lib/module/components/inputs/BulletPoint.js.map +1 -1
  263. package/lib/module/components/listItems/ContactCredentialListItem.js +3 -3
  264. package/lib/module/components/listItems/ContactCredentialListItem.js.map +1 -1
  265. package/lib/module/components/listItems/ContactListItem.js +2 -2
  266. package/lib/module/components/listItems/ContactListItem.js.map +1 -1
  267. package/lib/module/components/listItems/NotificationListItem.js +22 -22
  268. package/lib/module/components/listItems/NotificationListItem.js.map +1 -1
  269. package/lib/module/components/misc/ConnectionAlert.js +5 -5
  270. package/lib/module/components/misc/ConnectionAlert.js.map +1 -1
  271. package/lib/module/components/misc/ConnectionImage.js +3 -3
  272. package/lib/module/components/misc/ConnectionImage.js.map +1 -1
  273. package/lib/module/components/misc/CredentialCard.js +2 -2
  274. package/lib/module/components/misc/CredentialCard.js.map +1 -1
  275. package/lib/module/components/misc/CredentialCard10.js +6 -6
  276. package/lib/module/components/misc/CredentialCard10.js.map +1 -1
  277. package/lib/module/components/misc/CredentialCard11.js +12 -12
  278. package/lib/module/components/misc/CredentialCard11.js.map +1 -1
  279. package/lib/module/components/misc/CredentialCard11ActionFooter.js +3 -3
  280. package/lib/module/components/misc/CredentialCard11ActionFooter.js.map +1 -1
  281. package/lib/module/components/misc/EmptyList.js +2 -2
  282. package/lib/module/components/misc/EmptyList.js.map +1 -1
  283. package/lib/module/components/misc/EmptyListContacts.js +2 -2
  284. package/lib/module/components/misc/EmptyListContacts.js.map +1 -1
  285. package/lib/module/components/misc/FauxHeader.js +2 -2
  286. package/lib/module/components/misc/FauxHeader.js.map +1 -1
  287. package/lib/module/components/misc/InfoBox.js +29 -29
  288. package/lib/module/components/misc/InfoBox.js.map +1 -1
  289. package/lib/module/components/misc/NoNewUpdates.js +2 -2
  290. package/lib/module/components/misc/NoNewUpdates.js.map +1 -1
  291. package/lib/module/components/misc/PINValidationHelper.js +3 -3
  292. package/lib/module/components/misc/PINValidationHelper.js.map +1 -1
  293. package/lib/module/components/misc/QRRenderer.js +2 -2
  294. package/lib/module/components/misc/QRRenderer.js.map +1 -1
  295. package/lib/module/components/misc/QRScanner.js +3 -3
  296. package/lib/module/components/misc/QRScanner.js.map +1 -1
  297. package/lib/module/components/misc/QRScannerTorch.js +4 -4
  298. package/lib/module/components/misc/QRScannerTorch.js.map +1 -1
  299. package/lib/module/components/misc/SharedProofData.js +2 -2
  300. package/lib/module/components/misc/SharedProofData.js.map +1 -1
  301. package/lib/module/components/misc/UnorderedList.js +3 -3
  302. package/lib/module/components/misc/UnorderedList.js.map +1 -1
  303. package/lib/module/components/misc/VerifierCredentialCard.js +7 -7
  304. package/lib/module/components/misc/VerifierCredentialCard.js.map +1 -1
  305. package/lib/module/components/modals/AppGuideModal.js +7 -7
  306. package/lib/module/components/modals/AppGuideModal.js.map +1 -1
  307. package/lib/module/components/modals/CameraDisclosureModal.js +4 -4
  308. package/lib/module/components/modals/CameraDisclosureModal.js.map +1 -1
  309. package/lib/module/components/modals/CommonRemoveModal.js +7 -7
  310. package/lib/module/components/modals/CommonRemoveModal.js.map +1 -1
  311. package/lib/module/components/modals/DismissiblePopupModal.js +7 -7
  312. package/lib/module/components/modals/DismissiblePopupModal.js.map +1 -1
  313. package/lib/module/components/modals/ErrorModal.js +4 -4
  314. package/lib/module/components/modals/ErrorModal.js.map +1 -1
  315. package/lib/module/components/modals/ImageModal.js +4 -4
  316. package/lib/module/components/modals/ImageModal.js.map +1 -1
  317. package/lib/module/components/modals/PopupModal.js +2 -2
  318. package/lib/module/components/modals/PopupModal.js.map +1 -1
  319. package/lib/module/components/modals/ProofCancelModal.js +2 -2
  320. package/lib/module/components/modals/ProofCancelModal.js.map +1 -1
  321. package/lib/module/components/record/RecordFooter.js +2 -2
  322. package/lib/module/components/record/RecordFooter.js.map +1 -1
  323. package/lib/module/components/record/RecordHeader.js +2 -2
  324. package/lib/module/components/record/RecordHeader.js.map +1 -1
  325. package/lib/module/components/record/RecordRemove.js +5 -5
  326. package/lib/module/components/record/RecordRemove.js.map +1 -1
  327. package/lib/module/components/texts/HighlightTextBox.js +3 -3
  328. package/lib/module/components/texts/HighlightTextBox.js.map +1 -1
  329. package/lib/module/components/texts/InfoTextBox.js +17 -17
  330. package/lib/module/components/texts/InfoTextBox.js.map +1 -1
  331. package/lib/module/components/texts/Link.js +2 -2
  332. package/lib/module/components/texts/Link.js.map +1 -1
  333. package/lib/module/components/toast/BaseToast.js +17 -17
  334. package/lib/module/components/toast/BaseToast.js.map +1 -1
  335. package/lib/module/components/tour/CredentialOfferTourSteps.js +2 -2
  336. package/lib/module/components/tour/CredentialOfferTourSteps.js.map +1 -1
  337. package/lib/module/components/tour/CredentialsTourSteps.js +2 -2
  338. package/lib/module/components/tour/CredentialsTourSteps.js.map +1 -1
  339. package/lib/module/components/tour/HomeTourSteps.js +6 -6
  340. package/lib/module/components/tour/HomeTourSteps.js.map +1 -1
  341. package/lib/module/components/tour/ProofRequestTourSteps.js +2 -2
  342. package/lib/module/components/tour/ProofRequestTourSteps.js.map +1 -1
  343. package/lib/module/components/tour/TourBox.js +6 -6
  344. package/lib/module/components/tour/TourBox.js.map +1 -1
  345. package/lib/module/components/views/Banner.js +19 -9
  346. package/lib/module/components/views/Banner.js.map +1 -1
  347. package/lib/module/components/views/CredentialDetailPrimaryHeader.js +3 -3
  348. package/lib/module/components/views/CredentialDetailPrimaryHeader.js.map +1 -1
  349. package/lib/module/components/views/KeyboardView.js +2 -2
  350. package/lib/module/components/views/KeyboardView.js.map +1 -1
  351. package/lib/module/components/views/ProgressBar.js +3 -3
  352. package/lib/module/components/views/ProgressBar.js.map +1 -1
  353. package/lib/module/contexts/reducers/store.js +2 -1
  354. package/lib/module/contexts/reducers/store.js.map +1 -1
  355. package/lib/module/hooks/chat-messages.js +3 -3
  356. package/lib/module/hooks/chat-messages.js.map +1 -1
  357. package/lib/module/hooks/credential-card-styles.js +4 -4
  358. package/lib/module/hooks/credential-card-styles.js.map +1 -1
  359. package/lib/module/index.js +3 -2
  360. package/lib/module/index.js.map +1 -1
  361. package/lib/module/modules/history/ui/HistoryPage.js +2 -2
  362. package/lib/module/modules/history/ui/HistoryPage.js.map +1 -1
  363. package/lib/module/modules/history/ui/HistorySettings.js +2 -2
  364. package/lib/module/modules/history/ui/HistorySettings.js.map +1 -1
  365. package/lib/module/modules/history/ui/components/HistoryListItem.js +2 -2
  366. package/lib/module/modules/history/ui/components/HistoryListItem.js.map +1 -1
  367. package/lib/module/modules/openid/components/OpenIDCredentialCard.js +5 -5
  368. package/lib/module/modules/openid/components/OpenIDCredentialCard.js.map +1 -1
  369. package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js +2 -2
  370. package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -1
  371. package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js +2 -2
  372. package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -1
  373. package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js +2 -2
  374. package/lib/module/modules/openid/screens/OpenIDProofChangeCredential.js.map +1 -1
  375. package/lib/module/modules/openid/screens/OpenIDProofPresentation.js +4 -4
  376. package/lib/module/modules/openid/screens/OpenIDProofPresentation.js.map +1 -1
  377. package/lib/module/navigators/TabStack.js +2 -2
  378. package/lib/module/navigators/TabStack.js.map +1 -1
  379. package/lib/module/navigators/defaultStackOptions.js +3 -3
  380. package/lib/module/navigators/defaultStackOptions.js.map +1 -1
  381. package/lib/module/screens/AttemptLockout.js +2 -2
  382. package/lib/module/screens/AttemptLockout.js.map +1 -1
  383. package/lib/module/screens/AutoLock.js +7 -7
  384. package/lib/module/screens/AutoLock.js.map +1 -1
  385. package/lib/module/screens/ConfigureMediator.js +7 -7
  386. package/lib/module/screens/ConfigureMediator.js.map +1 -1
  387. package/lib/module/screens/ContactDetails.js +9 -9
  388. package/lib/module/screens/ContactDetails.js.map +1 -1
  389. package/lib/module/screens/CredentialDetails.js +16 -16
  390. package/lib/module/screens/CredentialDetails.js.map +1 -1
  391. package/lib/module/screens/CredentialOffer.js +2 -2
  392. package/lib/module/screens/CredentialOffer.js.map +1 -1
  393. package/lib/module/screens/DataRetention.js +11 -11
  394. package/lib/module/screens/DataRetention.js.map +1 -1
  395. package/lib/module/screens/Developer.js +29 -29
  396. package/lib/module/screens/Developer.js.map +1 -1
  397. package/lib/module/screens/Home.js +2 -2
  398. package/lib/module/screens/Home.js.map +1 -1
  399. package/lib/module/screens/JSONDetails.js +3 -3
  400. package/lib/module/screens/JSONDetails.js.map +1 -1
  401. package/lib/module/screens/Language.js +7 -7
  402. package/lib/module/screens/Language.js.map +1 -1
  403. package/lib/module/screens/ListContacts.js +3 -3
  404. package/lib/module/screens/ListContacts.js.map +1 -1
  405. package/lib/module/screens/ListCredentials.js +2 -2
  406. package/lib/module/screens/ListCredentials.js.map +1 -1
  407. package/lib/module/screens/ListProofRequests.js +2 -2
  408. package/lib/module/screens/ListProofRequests.js.map +1 -1
  409. package/lib/module/screens/MobileVerifierLoading.js +3 -3
  410. package/lib/module/screens/MobileVerifierLoading.js.map +1 -1
  411. package/lib/module/screens/PINChange.js +2 -2
  412. package/lib/module/screens/PINChange.js.map +1 -1
  413. package/lib/module/screens/PINCreate.js +5 -3
  414. package/lib/module/screens/PINCreate.js.map +1 -1
  415. package/lib/module/screens/PINEnter.js +3 -3
  416. package/lib/module/screens/PINEnter.js.map +1 -1
  417. package/lib/module/screens/PINExplainer.js +3 -3
  418. package/lib/module/screens/PINExplainer.js.map +1 -1
  419. package/lib/module/screens/PINVerify.js +2 -2
  420. package/lib/module/screens/PINVerify.js.map +1 -1
  421. package/lib/module/screens/PasteUrl.js +4 -4
  422. package/lib/module/screens/PasteUrl.js.map +1 -1
  423. package/lib/module/screens/ProofChangeCredential.js +2 -2
  424. package/lib/module/screens/ProofChangeCredential.js.map +1 -1
  425. package/lib/module/screens/ProofDetails.js +3 -3
  426. package/lib/module/screens/ProofDetails.js.map +1 -1
  427. package/lib/module/screens/ProofRequest.js +7 -7
  428. package/lib/module/screens/ProofRequest.js.map +1 -1
  429. package/lib/module/screens/ProofRequestAccept.js +3 -3
  430. package/lib/module/screens/ProofRequestAccept.js.map +1 -1
  431. package/lib/module/screens/ProofRequestDetails.js +4 -4
  432. package/lib/module/screens/ProofRequestDetails.js.map +1 -1
  433. package/lib/module/screens/ProofRequestUsageHistory.js +2 -2
  434. package/lib/module/screens/ProofRequestUsageHistory.js.map +1 -1
  435. package/lib/module/screens/ProofRequesting.js +5 -5
  436. package/lib/module/screens/ProofRequesting.js.map +1 -1
  437. package/lib/module/screens/RenameContact.js +2 -2
  438. package/lib/module/screens/RenameContact.js.map +1 -1
  439. package/lib/module/screens/Settings.js +5 -5
  440. package/lib/module/screens/Settings.js.map +1 -1
  441. package/lib/module/screens/Splash.js +2 -2
  442. package/lib/module/screens/Splash.js.map +1 -1
  443. package/lib/module/screens/ToggleBiometry.js +2 -2
  444. package/lib/module/screens/ToggleBiometry.js.map +1 -1
  445. package/lib/module/screens/TogglePushNotifications.js +5 -5
  446. package/lib/module/screens/TogglePushNotifications.js.map +1 -1
  447. package/lib/module/screens/Tours.js +5 -5
  448. package/lib/module/screens/Tours.js.map +1 -1
  449. package/lib/module/screens/UpdateAvailable.js +2 -2
  450. package/lib/module/screens/UpdateAvailable.js.map +1 -1
  451. package/lib/module/screens/WhatAreContacts.js +2 -2
  452. package/lib/module/screens/WhatAreContacts.js.map +1 -1
  453. package/lib/module/services/logger.js +27 -35
  454. package/lib/module/services/logger.js.map +1 -1
  455. package/lib/module/theme-builder.js +133 -0
  456. package/lib/module/theme-builder.js.map +1 -0
  457. package/lib/module/theme.interface.js +2 -0
  458. package/lib/module/theme.interface.js.map +1 -0
  459. package/lib/module/theme.js +888 -669
  460. package/lib/module/theme.js.map +1 -1
  461. package/lib/module/utils/credential.js +3 -3
  462. package/lib/module/utils/credential.js.map +1 -1
  463. package/lib/module/utils/mediatorhelpers.js +16 -12
  464. package/lib/module/utils/mediatorhelpers.js.map +1 -1
  465. package/lib/typescript/src/components/buttons/IconButton.d.ts.map +1 -1
  466. package/lib/typescript/src/components/misc/CredentialCard11.d.ts.map +1 -1
  467. package/lib/typescript/src/components/views/Banner.d.ts.map +1 -1
  468. package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
  469. package/lib/typescript/src/hooks/credential-card-styles.d.ts +375 -13
  470. package/lib/typescript/src/hooks/credential-card-styles.d.ts.map +1 -1
  471. package/lib/typescript/src/index.d.ts +5 -4
  472. package/lib/typescript/src/index.d.ts.map +1 -1
  473. package/lib/typescript/src/navigators/defaultStackOptions.d.ts +1 -1
  474. package/lib/typescript/src/navigators/defaultStackOptions.d.ts.map +1 -1
  475. package/lib/typescript/src/screens/Developer.d.ts.map +1 -1
  476. package/lib/typescript/src/services/logger.d.ts +8 -7
  477. package/lib/typescript/src/services/logger.d.ts.map +1 -1
  478. package/lib/typescript/src/theme-builder.d.ts +68 -0
  479. package/lib/typescript/src/theme-builder.d.ts.map +1 -0
  480. package/lib/typescript/src/theme.d.ts +204 -702
  481. package/lib/typescript/src/theme.d.ts.map +1 -1
  482. package/lib/typescript/src/theme.interface.d.ts +557 -0
  483. package/lib/typescript/src/theme.interface.d.ts.map +1 -0
  484. package/lib/typescript/src/utils/credential.d.ts +1 -1
  485. package/lib/typescript/src/utils/credential.d.ts.map +1 -1
  486. package/lib/typescript/src/utils/mediatorhelpers.d.ts.map +1 -1
  487. package/package.json +3 -3
  488. package/src/App.tsx +1 -1
  489. package/src/components/animated/ButtonLoading.tsx +2 -2
  490. package/src/components/animated/ConnectionLoading.tsx +3 -3
  491. package/src/components/animated/LoadingIndicator.tsx +2 -2
  492. package/src/components/animated/PresentationLoading.tsx +3 -3
  493. package/src/components/animated/RecordLoading.tsx +5 -5
  494. package/src/components/animated/SendingProof.tsx +3 -3
  495. package/src/components/animated/SentProof.tsx +3 -3
  496. package/src/components/buttons/Button.tsx +1 -1
  497. package/src/components/buttons/IconButton.tsx +5 -3
  498. package/src/components/buttons/ToggleButton.tsx +3 -3
  499. package/src/components/chat/ActionSlider.tsx +3 -3
  500. package/src/components/forms/WalletNameForm.tsx +2 -2
  501. package/src/components/inputs/BiometryControl.tsx +2 -2
  502. package/src/components/inputs/BulletPoint.tsx +2 -2
  503. package/src/components/listItems/ContactCredentialListItem.tsx +3 -3
  504. package/src/components/listItems/ContactListItem.tsx +2 -2
  505. package/src/components/listItems/NotificationListItem.tsx +22 -22
  506. package/src/components/misc/ConnectionAlert.tsx +5 -5
  507. package/src/components/misc/ConnectionImage.tsx +3 -3
  508. package/src/components/misc/CredentialCard.tsx +2 -2
  509. package/src/components/misc/CredentialCard10.tsx +6 -6
  510. package/src/components/misc/CredentialCard11.tsx +16 -12
  511. package/src/components/misc/CredentialCard11ActionFooter.tsx +3 -3
  512. package/src/components/misc/EmptyList.tsx +2 -2
  513. package/src/components/misc/EmptyListContacts.tsx +2 -2
  514. package/src/components/misc/FauxHeader.tsx +2 -2
  515. package/src/components/misc/InfoBox.tsx +29 -29
  516. package/src/components/misc/NoNewUpdates.tsx +2 -2
  517. package/src/components/misc/PINValidationHelper.tsx +3 -3
  518. package/src/components/misc/QRRenderer.tsx +2 -2
  519. package/src/components/misc/QRScanner.tsx +3 -3
  520. package/src/components/misc/QRScannerTorch.tsx +4 -4
  521. package/src/components/misc/SharedProofData.tsx +2 -2
  522. package/src/components/misc/UnorderedList.tsx +3 -3
  523. package/src/components/misc/VerifierCredentialCard.tsx +7 -7
  524. package/src/components/modals/AppGuideModal.tsx +7 -7
  525. package/src/components/modals/CameraDisclosureModal.tsx +4 -4
  526. package/src/components/modals/CommonRemoveModal.tsx +7 -7
  527. package/src/components/modals/DismissiblePopupModal.tsx +7 -7
  528. package/src/components/modals/ErrorModal.tsx +4 -4
  529. package/src/components/modals/ImageModal.tsx +4 -4
  530. package/src/components/modals/PopupModal.tsx +2 -2
  531. package/src/components/modals/ProofCancelModal.tsx +2 -2
  532. package/src/components/record/RecordFooter.tsx +2 -2
  533. package/src/components/record/RecordHeader.tsx +2 -2
  534. package/src/components/record/RecordRemove.tsx +5 -5
  535. package/src/components/texts/HighlightTextBox.tsx +3 -3
  536. package/src/components/texts/InfoTextBox.tsx +17 -17
  537. package/src/components/texts/Link.tsx +2 -2
  538. package/src/components/toast/BaseToast.tsx +17 -17
  539. package/src/components/tour/CredentialOfferTourSteps.tsx +2 -2
  540. package/src/components/tour/CredentialsTourSteps.tsx +2 -2
  541. package/src/components/tour/HomeTourSteps.tsx +6 -6
  542. package/src/components/tour/ProofRequestTourSteps.tsx +2 -2
  543. package/src/components/tour/TourBox.tsx +6 -6
  544. package/src/components/views/Banner.tsx +21 -14
  545. package/src/components/views/CredentialDetailPrimaryHeader.tsx +4 -4
  546. package/src/components/views/KeyboardView.tsx +2 -2
  547. package/src/components/views/ProgressBar.tsx +3 -3
  548. package/src/contexts/reducers/store.ts +4 -1
  549. package/src/hooks/chat-messages.tsx +3 -3
  550. package/src/hooks/credential-card-styles.ts +4 -4
  551. package/src/index.ts +5 -3
  552. package/src/modules/history/ui/HistoryPage.tsx +2 -2
  553. package/src/modules/history/ui/HistorySettings.tsx +2 -2
  554. package/src/modules/history/ui/components/HistoryListItem.tsx +2 -2
  555. package/src/modules/openid/components/OpenIDCredentialCard.tsx +5 -5
  556. package/src/modules/openid/screens/OpenIDCredentialDetails.tsx +2 -2
  557. package/src/modules/openid/screens/OpenIDCredentialOffer.tsx +2 -2
  558. package/src/modules/openid/screens/OpenIDProofChangeCredential.tsx +2 -2
  559. package/src/modules/openid/screens/OpenIDProofPresentation.tsx +4 -4
  560. package/src/navigators/TabStack.tsx +2 -2
  561. package/src/navigators/defaultStackOptions.tsx +3 -3
  562. package/src/screens/AttemptLockout.tsx +2 -2
  563. package/src/screens/AutoLock.tsx +7 -7
  564. package/src/screens/ConfigureMediator.tsx +7 -7
  565. package/src/screens/ContactDetails.tsx +9 -9
  566. package/src/screens/CredentialDetails.tsx +16 -16
  567. package/src/screens/CredentialOffer.tsx +2 -2
  568. package/src/screens/DataRetention.tsx +11 -11
  569. package/src/screens/Developer.tsx +24 -22
  570. package/src/screens/Home.tsx +2 -2
  571. package/src/screens/JSONDetails.tsx +3 -3
  572. package/src/screens/Language.tsx +7 -7
  573. package/src/screens/ListContacts.tsx +3 -3
  574. package/src/screens/ListCredentials.tsx +2 -2
  575. package/src/screens/ListProofRequests.tsx +2 -2
  576. package/src/screens/MobileVerifierLoading.tsx +3 -3
  577. package/src/screens/PINChange.tsx +2 -2
  578. package/src/screens/PINCreate.tsx +3 -3
  579. package/src/screens/PINEnter.tsx +3 -3
  580. package/src/screens/PINExplainer.tsx +3 -3
  581. package/src/screens/PINVerify.tsx +2 -2
  582. package/src/screens/PasteUrl.tsx +4 -4
  583. package/src/screens/ProofChangeCredential.tsx +2 -2
  584. package/src/screens/ProofDetails.tsx +3 -3
  585. package/src/screens/ProofRequest.tsx +7 -7
  586. package/src/screens/ProofRequestAccept.tsx +3 -3
  587. package/src/screens/ProofRequestDetails.tsx +4 -4
  588. package/src/screens/ProofRequestUsageHistory.tsx +2 -2
  589. package/src/screens/ProofRequesting.tsx +5 -5
  590. package/src/screens/RenameContact.tsx +2 -2
  591. package/src/screens/Settings.tsx +5 -5
  592. package/src/screens/Splash.tsx +2 -2
  593. package/src/screens/ToggleBiometry.tsx +2 -2
  594. package/src/screens/TogglePushNotifications.tsx +4 -4
  595. package/src/screens/Tours.tsx +5 -5
  596. package/src/screens/UpdateAvailable.tsx +2 -2
  597. package/src/screens/WhatAreContacts.tsx +2 -2
  598. package/src/services/logger.ts +35 -14
  599. package/src/theme-builder.ts +157 -0
  600. package/src/theme.interface.ts +580 -0
  601. package/src/theme.ts +881 -774
  602. package/src/utils/credential.ts +3 -3
  603. package/src/utils/mediatorhelpers.ts +23 -12
@@ -3,7 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.zeroOpacity = exports.themes = exports.mediumOpacity = exports.maxFontSizeMultiplier = exports.lightOpacity = exports.heavyOpacity = exports.borderWidth = exports.borderRadius = exports.bifoldTheme = exports.TextTheme = exports.TabTheme = exports.SettingsTheme = exports.OnboardingTheme = exports.NavigationTheme = exports.ListItems = exports.Inputs = exports.HomeTheme = exports.DialogTheme = exports.ColorPallet = exports.ChatTheme = exports.Buttons = exports.Assets = void 0;
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 ColorPallet = exports.ColorPallet = {
158
+ const ColorPalette = exports.ColorPalette = {
144
159
  brand: BrandColors,
145
160
  semantic: SemanticColors,
146
161
  notification: NotificationColors,
147
162
  grayscale: GrayscaleColors
148
163
  };
149
- const TextTheme = exports.TextTheme = {
150
- headingOne: {
151
- fontSize: 38,
152
- fontWeight: 'bold',
153
- color: ColorPallet.brand.text
154
- },
155
- headingTwo: {
156
- fontSize: 32,
157
- fontWeight: 'bold',
158
- color: ColorPallet.brand.text
159
- },
160
- headingThree: {
161
- fontSize: 26,
162
- fontWeight: 'bold',
163
- color: ColorPallet.brand.text
164
- },
165
- headingFour: {
166
- fontSize: 21,
167
- fontWeight: 'bold',
168
- color: ColorPallet.brand.text
169
- },
170
- normal: {
171
- fontSize: 18,
172
- fontWeight: 'normal',
173
- color: ColorPallet.brand.text
174
- },
175
- bold: {
176
- fontSize: 18,
177
- fontWeight: 'bold',
178
- color: ColorPallet.brand.text
179
- },
180
- label: {
181
- fontSize: 14,
182
- fontWeight: 'bold',
183
- color: ColorPallet.brand.text
184
- },
185
- labelTitle: {
186
- fontSize: 16,
187
- fontWeight: 'bold',
188
- color: ColorPallet.brand.text
189
- },
190
- labelSubtitle: {
191
- fontSize: 14,
192
- fontWeight: 'normal',
193
- color: ColorPallet.brand.text
194
- },
195
- labelText: {
196
- fontSize: 10,
197
- fontWeight: 'normal',
198
- fontStyle: 'italic',
199
- color: ColorPallet.brand.text
200
- },
201
- caption: {
202
- fontSize: 14,
203
- fontWeight: 'normal',
204
- color: ColorPallet.brand.text
205
- },
206
- title: {
207
- fontSize: 20,
208
- fontWeight: 'bold',
209
- color: ColorPallet.brand.text
210
- },
211
- headerTitle: {
212
- fontSize: 28,
213
- fontWeight: 'bold',
214
- color: ColorPallet.brand.headerText
215
- },
216
- modalNormal: {
217
- fontSize: 18,
218
- fontWeight: 'normal',
219
- color: ColorPallet.grayscale.white
220
- },
221
- modalTitle: {
222
- fontSize: 24,
223
- fontWeight: 'bold',
224
- color: ColorPallet.grayscale.white
225
- },
226
- modalHeadingOne: {
227
- fontSize: 38,
228
- fontWeight: 'bold',
229
- color: ColorPallet.grayscale.white
230
- },
231
- modalHeadingThree: {
232
- fontSize: 26,
233
- fontWeight: 'bold',
234
- color: ColorPallet.grayscale.white
235
- },
236
- popupModalText: {
237
- fontSize: 18,
238
- fontWeight: 'normal',
239
- color: ColorPallet.grayscale.white
240
- },
241
- settingsText: {
242
- fontSize: 21,
243
- fontWeight: 'normal',
244
- color: ColorPallet.brand.text
245
- },
246
- inlineErrorText: {
247
- fontSize: 16,
248
- fontWeight: 'normal',
249
- color: ColorPallet.brand.inlineError
250
- },
251
- inlineWarningText: {
252
- fontSize: 16,
253
- fontWeight: 'normal',
254
- color: ColorPallet.brand.inlineWarning
255
- }
256
- };
257
- const Inputs = exports.Inputs = _reactNative.StyleSheet.create({
258
- label: {
259
- ...TextTheme.label
260
- },
261
- textInput: {
262
- padding: 10,
263
- borderRadius,
264
- fontSize: 16,
265
- backgroundColor: ColorPallet.brand.primaryBackground,
266
- color: ColorPallet.notification.infoText,
267
- borderWidth: 2,
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
- const Buttons = exports.Buttons = _reactNative.StyleSheet.create({
292
- critical: {
293
- padding: 16,
294
- borderRadius: 4,
295
- backgroundColor: ColorPallet.brand.primary
296
- },
297
- criticalText: {
298
- ...TextTheme.bold,
299
- color: ColorPallet.brand.buttonText,
300
- textAlign: 'center'
301
- },
302
- criticalTextDisabled: {
303
- ...TextTheme.bold,
304
- color: ColorPallet.brand.buttonText,
305
- textAlign: 'center'
306
- },
307
- primary: {
308
- padding: 16,
309
- borderRadius: 4,
310
- backgroundColor: ColorPallet.brand.primary
311
- },
312
- primaryDisabled: {
313
- padding: 16,
314
- borderRadius: 4,
315
- backgroundColor: ColorPallet.brand.primaryDisabled
316
- },
317
- primaryText: {
318
- ...TextTheme.bold,
319
- color: ColorPallet.brand.buttonText,
320
- textAlign: 'center'
321
- },
322
- primaryTextDisabled: {
323
- ...TextTheme.bold,
324
- textAlign: 'center'
325
- },
326
- secondary: {
327
- padding: 16,
328
- borderRadius: 4,
329
- borderWidth: 2,
330
- borderColor: ColorPallet.brand.primary
331
- },
332
- secondaryDisabled: {
333
- padding: 16,
334
- borderRadius: 4,
335
- borderWidth: 2,
336
- borderColor: ColorPallet.brand.secondaryDisabled
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
- const ListItems = exports.ListItems = _reactNative.StyleSheet.create({
444
- credentialBackground: {
445
- backgroundColor: ColorPallet.brand.secondaryBackground
446
- },
447
- credentialTitle: {
448
- ...TextTheme.headingFour
449
- },
450
- credentialDetails: {
451
- ...TextTheme.caption
452
- },
453
- credentialOfferBackground: {
454
- backgroundColor: ColorPallet.brand.modalPrimaryBackground
455
- },
456
- credentialOfferTitle: {
457
- ...TextTheme.modalHeadingThree,
458
- fontWeight: 'normal'
459
- },
460
- credentialOfferDetails: {
461
- ...TextTheme.normal
462
- },
463
- revoked: {
464
- backgroundColor: ColorPallet.notification.error,
465
- borderColor: ColorPallet.notification.errorBorder
466
- },
467
- contactBackground: {
468
- backgroundColor: ColorPallet.brand.secondaryBackground
469
- },
470
- credentialIconColor: {
471
- color: ColorPallet.notification.infoText
472
- },
473
- contactTitle: {
474
- color: ColorPallet.brand.text
475
- },
476
- contactDate: {
477
- color: ColorPallet.brand.text,
478
- marginTop: 10
479
- },
480
- contactIconBackground: {
481
- backgroundColor: ColorPallet.brand.primary
482
- },
483
- contactIcon: {
484
- color: ColorPallet.grayscale.white
485
- },
486
- recordAttributeLabel: {
487
- ...TextTheme.bold
488
- },
489
- recordContainer: {
490
- backgroundColor: ColorPallet.brand.secondaryBackground
491
- },
492
- recordBorder: {
493
- borderBottomColor: ColorPallet.brand.primaryBackground
494
- },
495
- recordLink: {
496
- color: ColorPallet.brand.link
497
- },
498
- recordAttributeText: {
499
- ...TextTheme.normal
500
- },
501
- proofIcon: {
502
- ...TextTheme.headingOne
503
- },
504
- proofError: {
505
- color: ColorPallet.semantic.error
506
- },
507
- avatarText: {
508
- ...TextTheme.headingTwo,
509
- fontWeight: 'normal'
510
- },
511
- avatarCircle: {
512
- borderRadius: TextTheme.headingTwo.fontSize,
513
- borderColor: TextTheme.headingTwo.color,
514
- width: TextTheme.headingTwo.fontSize * 2,
515
- height: TextTheme.headingTwo.fontSize * 2
516
- },
517
- emptyList: {
518
- ...TextTheme.normal
519
- },
520
- requestTemplateBackground: {
521
- backgroundColor: ColorPallet.grayscale.white
522
- },
523
- requestTemplateIconColor: {
524
- color: ColorPallet.notification.infoText
525
- },
526
- requestTemplateTitle: {
527
- color: ColorPallet.grayscale.black,
528
- fontWeight: 'bold',
529
- fontSize: 16
530
- },
531
- requestTemplateDetails: {
532
- color: ColorPallet.grayscale.black,
533
- fontWeight: 'normal',
534
- fontSize: 16
535
- },
536
- requestTemplateZkpLabel: {
537
- color: ColorPallet.grayscale.mediumGrey,
538
- fontSize: 12
539
- },
540
- requestTemplateIcon: {
541
- color: ColorPallet.grayscale.black,
542
- fontSize: 36
543
- },
544
- requestTemplateDate: {
545
- color: ColorPallet.grayscale.mediumGrey,
546
- fontSize: 10
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
- const TabTheme = exports.TabTheme = {
550
- tabBarStyle: {
551
- height: 60,
552
- backgroundColor: ColorPallet.brand.secondaryBackground,
553
- shadowOffset: {
554
- width: 0,
555
- height: -3
556
- },
557
- shadowRadius: 6,
558
- shadowColor: ColorPallet.grayscale.black,
559
- shadowOpacity: 0.1,
560
- borderTopWidth: 0,
561
- paddingBottom: 0
562
- },
563
- tabBarContainerStyle: {
564
- flex: 1,
565
- justifyContent: 'center',
566
- alignItems: 'center'
567
- },
568
- tabBarActiveTintColor: ColorPallet.brand.primary,
569
- tabBarInactiveTintColor: ColorPallet.brand.tabBarInactive,
570
- tabBarTextStyle: {
571
- ...TextTheme.labelSubtitle,
572
- paddingBottom: 5
573
- },
574
- tabBarButtonIconStyle: {
575
- color: ColorPallet.brand.headerIcon
576
- },
577
- focusTabIconStyle: {
578
- height: 60,
579
- width: 60,
580
- backgroundColor: ColorPallet.brand.primary,
581
- borderRadius: 60,
582
- justifyContent: 'center',
583
- alignItems: 'center'
584
- },
585
- focusTabActiveTintColor: {
586
- backgroundColor: ColorPallet.brand.secondary
587
- },
588
- tabBarSecondaryBackgroundColor: ColorPallet.brand.secondaryBackground
589
- };
590
- const NavigationTheme = exports.NavigationTheme = {
591
- dark: true,
592
- colors: {
593
- primary: ColorPallet.brand.primary,
594
- background: ColorPallet.brand.primaryBackground,
595
- card: ColorPallet.brand.primary,
596
- text: ColorPallet.grayscale.white,
597
- border: ColorPallet.grayscale.white,
598
- notification: ColorPallet.grayscale.white
599
- }
600
- };
601
- const HomeTheme = exports.HomeTheme = _reactNative.StyleSheet.create({
602
- welcomeHeader: {
603
- ...TextTheme.headingOne
604
- },
605
- credentialMsg: {
606
- ...TextTheme.normal
607
- },
608
- notificationsHeader: {
609
- ...TextTheme.headingThree
610
- },
611
- noNewUpdatesText: {
612
- ...TextTheme.normal,
613
- color: ColorPallet.notification.infoText
614
- },
615
- link: {
616
- ...TextTheme.normal,
617
- color: ColorPallet.brand.link
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
- const SettingsTheme = exports.SettingsTheme = {
621
- groupHeader: {
622
- ...TextTheme.normal,
623
- marginBottom: 8
624
- },
625
- groupBackground: ColorPallet.brand.secondaryBackground,
626
- iconColor: TextTheme.normal.color,
627
- text: {
628
- ...TextTheme.caption,
629
- color: ColorPallet.grayscale.white
630
- }
631
- };
632
- const ChatTheme = exports.ChatTheme = {
633
- containerStyle: {
634
- marginBottom: 16,
635
- marginLeft: 16,
636
- marginRight: 16,
637
- flexDirection: 'column',
638
- alignItems: 'flex-start',
639
- alignSelf: 'flex-end'
640
- },
641
- leftBubble: {
642
- backgroundColor: ColorPallet.brand.secondaryBackground,
643
- borderRadius: 4,
644
- padding: 16,
645
- marginLeft: 16
646
- },
647
- rightBubble: {
648
- backgroundColor: ColorPallet.brand.primaryLight,
649
- borderRadius: 4,
650
- padding: 16,
651
- marginRight: 16
652
- },
653
- timeStyleLeft: {
654
- color: ColorPallet.grayscale.lightGrey,
655
- fontSize: 12,
656
- marginTop: 8
657
- },
658
- timeStyleRight: {
659
- color: ColorPallet.grayscale.lightGrey,
660
- fontSize: 12,
661
- marginTop: 8
662
- },
663
- leftText: {
664
- color: ColorPallet.brand.secondary,
665
- fontSize: TextTheme.normal.fontSize
666
- },
667
- leftTextHighlighted: {
668
- ...TextTheme.bold,
669
- color: ColorPallet.brand.secondary
670
- },
671
- rightText: {
672
- color: ColorPallet.brand.secondary,
673
- fontSize: TextTheme.normal.fontSize
674
- },
675
- rightTextHighlighted: {
676
- ...TextTheme.bold,
677
- color: ColorPallet.brand.secondary
678
- },
679
- inputToolbar: {
680
- backgroundColor: ColorPallet.brand.secondary,
681
- shadowColor: ColorPallet.brand.primaryDisabled,
682
- borderRadius: 10
683
- },
684
- inputText: {
685
- lineHeight: undefined,
686
- fontWeight: '500',
687
- fontSize: TextTheme.normal.fontSize
688
- },
689
- placeholderText: ColorPallet.grayscale.lightGrey,
690
- sendContainer: {
691
- marginBottom: 4,
692
- paddingHorizontal: 4,
693
- justifyContent: 'center'
694
- },
695
- sendEnabled: ColorPallet.brand.primary,
696
- sendDisabled: ColorPallet.brand.primaryDisabled,
697
- options: ColorPallet.brand.primary,
698
- optionsText: ColorPallet.grayscale.black,
699
- openButtonStyle: {
700
- borderRadius: 32,
701
- backgroundColor: ColorPallet.brand.primary,
702
- paddingTop: 8,
703
- paddingBottom: 8,
704
- paddingLeft: 16,
705
- paddingRight: 16,
706
- marginTop: 16
707
- },
708
- openButtonTextStyle: {
709
- fontSize: TextTheme.normal.fontSize,
710
- fontWeight: 'bold',
711
- textAlign: 'center'
712
- },
713
- documentIconContainer: {
714
- backgroundColor: ColorPallet.brand.primary,
715
- alignSelf: 'flex-start',
716
- borderRadius: 4,
717
- marginBottom: 16,
718
- justifyContent: 'center',
719
- alignItems: 'center',
720
- width: 50,
721
- height: 50
722
- },
723
- documentIcon: {
724
- color: ColorPallet.grayscale.white
725
- }
726
- };
727
- const OnboardingTheme = exports.OnboardingTheme = {
728
- container: {
729
- backgroundColor: ColorPallet.brand.primaryBackground
730
- },
731
- carouselContainer: {
732
- backgroundColor: ColorPallet.brand.primaryBackground
733
- },
734
- pagerDot: {
735
- borderColor: ColorPallet.brand.primary
736
- },
737
- pagerDotActive: {
738
- color: ColorPallet.brand.primary
739
- },
740
- pagerDotInactive: {
741
- color: ColorPallet.brand.secondary
742
- },
743
- pagerNavigationButton: {
744
- color: ColorPallet.brand.primary,
745
- fontWeight: 'bold',
746
- fontSize: 18
747
- },
748
- headerTintColor: ColorPallet.grayscale.white,
749
- headerText: {
750
- ...TextTheme.bold
751
- },
752
- bodyText: {
753
- ...TextTheme.normal
754
- },
755
- imageDisplayOptions: {
756
- fill: ColorPallet.notification.infoText
757
- }
758
- };
759
- const DialogTheme = exports.DialogTheme = {
760
- modalView: {
761
- backgroundColor: ColorPallet.brand.secondaryBackground
762
- },
763
- titleText: {
764
- color: ColorPallet.grayscale.white
765
- },
766
- description: {
767
- color: ColorPallet.grayscale.white
768
- },
769
- closeButtonIcon: {
770
- color: ColorPallet.grayscale.white
771
- },
772
- carouselButtonText: {
773
- color: ColorPallet.grayscale.white
774
- }
775
- };
776
- const LoadingTheme = {
777
- backgroundColor: ColorPallet.brand.modalPrimaryBackground
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
- const PINInputTheme = {
786
- cell: {
787
- backgroundColor: ColorPallet.brand.secondaryBackground,
788
- borderColor: ColorPallet.brand.secondary,
789
- borderWidth: 1
790
- },
791
- focussedCell: {
792
- borderColor: ColorPallet.brand.headerIcon
793
- },
794
- cellText: {
795
- color: ColorPallet.brand.text
796
- },
797
- icon: {
798
- color: ColorPallet.brand.headerIcon
799
- },
800
- codeFieldRoot: {
801
- justifyContent: 'flex-start',
802
- alignItems: 'center'
803
- },
804
- labelAndFieldContainer: {
805
- flexDirection: 'row',
806
- borderRadius: 5,
807
- paddingHorizontal: 12,
808
- paddingVertical: 4,
809
- alignItems: 'center',
810
- backgroundColor: ColorPallet.brand.secondaryBackground,
811
- borderColor: ColorPallet.brand.secondary,
812
- borderWidth: 1
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: ColorPallet.semantic.focus
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
- const InputInlineMessage = {
909
- inlineErrorText: {
910
- ...TextTheme.inlineErrorText
911
- },
912
- InlineErrorIcon: Assets.svg.iconError,
913
- inlineWarningText: {
914
- ...TextTheme.inlineWarningText
915
- },
916
- InlineWarningIcon: Assets.svg.iconWarning
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
- ColorPallet,
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