@procivis/one-react-native-components 0.1.63 → 0.2.54

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 (1229) hide show
  1. package/README.md +17 -6
  2. package/lib/commonjs/components/backup/index.js +17 -0
  3. package/lib/commonjs/components/backup/index.js.map +1 -0
  4. package/lib/commonjs/components/backup/preview-credentials.js +42 -0
  5. package/lib/commonjs/components/backup/preview-credentials.js.map +1 -0
  6. package/lib/commonjs/components/credential/credential.js +63 -0
  7. package/lib/commonjs/components/credential/credential.js.map +1 -0
  8. package/lib/commonjs/components/credential/index.js +17 -0
  9. package/lib/commonjs/components/credential/index.js.map +1 -0
  10. package/lib/commonjs/components/entity/EntityButtons.js +69 -0
  11. package/lib/commonjs/components/entity/EntityButtons.js.map +1 -0
  12. package/lib/commonjs/components/entity/entity-attributes.js +52 -0
  13. package/lib/commonjs/components/entity/entity-attributes.js.map +1 -0
  14. package/lib/commonjs/components/entity/entity-details-with-buttons.js +91 -0
  15. package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -0
  16. package/lib/commonjs/components/entity/entity-details.js +74 -0
  17. package/lib/commonjs/components/entity/entity-details.js.map +1 -0
  18. package/lib/commonjs/components/entity/index.js +27 -0
  19. package/lib/commonjs/components/entity/index.js.map +1 -0
  20. package/lib/commonjs/components/index.js +61 -0
  21. package/lib/commonjs/components/index.js.map +1 -0
  22. package/lib/commonjs/components/navigation/header-buttons.js +82 -0
  23. package/lib/commonjs/components/navigation/header-buttons.js.map +1 -0
  24. package/lib/commonjs/components/navigation/index.js +17 -0
  25. package/lib/commonjs/components/navigation/index.js.map +1 -0
  26. package/lib/commonjs/components/proof-request/group.js +36 -0
  27. package/lib/commonjs/components/proof-request/group.js.map +1 -0
  28. package/lib/commonjs/components/proof-request/index.js +39 -0
  29. package/lib/commonjs/components/proof-request/index.js.map +1 -0
  30. package/lib/commonjs/components/proof-request/select-credential.js +49 -0
  31. package/lib/commonjs/components/proof-request/select-credential.js.map +1 -0
  32. package/lib/commonjs/components/proof-request/share-credential.js +163 -0
  33. package/lib/commonjs/components/proof-request/share-credential.js.map +1 -0
  34. package/lib/commonjs/index.js +8 -261
  35. package/lib/commonjs/index.js.map +1 -1
  36. package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +81 -0
  37. package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -0
  38. package/lib/commonjs/ui-components/blur/blur-view.js +76 -0
  39. package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -0
  40. package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -0
  41. package/lib/commonjs/ui-components/buttons/button.js +153 -0
  42. package/lib/commonjs/ui-components/buttons/button.js.map +1 -0
  43. package/lib/commonjs/ui-components/buttons/connectivity-button.js +82 -0
  44. package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -0
  45. package/lib/commonjs/ui-components/credential/card/credential-card.js +183 -0
  46. package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -0
  47. package/lib/commonjs/ui-components/credential/card/credential-details-card.js +199 -0
  48. package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -0
  49. package/lib/commonjs/ui-components/credential/card/credential-header.js +173 -0
  50. package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -0
  51. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +124 -0
  52. package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -0
  53. package/lib/commonjs/ui-components/credential/card/index.js +91 -0
  54. package/lib/commonjs/ui-components/credential/card/index.js.map +1 -0
  55. package/lib/commonjs/ui-components/credential/credential-attribute-item.js +289 -0
  56. package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -0
  57. package/lib/commonjs/ui-components/credential/selector.js +79 -0
  58. package/lib/commonjs/ui-components/credential/selector.js.map +1 -0
  59. package/lib/commonjs/ui-components/detail/detail.js +84 -0
  60. package/lib/commonjs/ui-components/detail/detail.js.map +1 -0
  61. package/lib/commonjs/ui-components/entity/avatar.js +106 -0
  62. package/lib/commonjs/ui-components/entity/avatar.js.map +1 -0
  63. package/lib/commonjs/ui-components/entity/entity-cluster.js +75 -0
  64. package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -0
  65. package/lib/commonjs/ui-components/header/header.js +105 -0
  66. package/lib/commonjs/ui-components/header/header.js.map +1 -0
  67. package/lib/commonjs/ui-components/header/navigation-header.js +148 -0
  68. package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -0
  69. package/lib/commonjs/ui-components/history/data-item.js +70 -0
  70. package/lib/commonjs/ui-components/history/data-item.js.map +1 -0
  71. package/lib/commonjs/ui-components/history/history-list-item.js +90 -0
  72. package/lib/commonjs/ui-components/history/history-list-item.js.map +1 -0
  73. package/lib/commonjs/ui-components/history/history-section-header.js +49 -0
  74. package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -0
  75. package/lib/commonjs/ui-components/icons/entity.js +52 -0
  76. package/lib/commonjs/ui-components/icons/entity.js.map +1 -0
  77. package/lib/commonjs/ui-components/index.js +281 -0
  78. package/lib/commonjs/ui-components/index.js.map +1 -0
  79. package/lib/commonjs/ui-components/input/selection-input.js +102 -0
  80. package/lib/commonjs/ui-components/input/selection-input.js.map +1 -0
  81. package/lib/commonjs/ui-components/input/text-input.js +195 -0
  82. package/lib/commonjs/ui-components/input/text-input.js.map +1 -0
  83. package/lib/commonjs/ui-components/loader/loader.js +140 -0
  84. package/lib/commonjs/ui-components/loader/loader.js.map +1 -0
  85. package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +238 -0
  86. package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
  87. package/lib/commonjs/ui-components/pin/index.js +47 -0
  88. package/lib/commonjs/ui-components/pin/index.js.map +1 -0
  89. package/lib/commonjs/ui-components/pin/keypad.js +201 -0
  90. package/lib/commonjs/ui-components/pin/keypad.js.map +1 -0
  91. package/lib/commonjs/ui-components/pin/pin-code-screen.js +162 -0
  92. package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -0
  93. package/lib/commonjs/ui-components/pin/pin-lock-animation.js +824 -0
  94. package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -0
  95. package/lib/commonjs/ui-components/pin/pin-lock.js +83 -0
  96. package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -0
  97. package/lib/commonjs/ui-components/screens/backup-screen.js +87 -0
  98. package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -0
  99. package/lib/commonjs/ui-components/screens/image-preview-screen.js +92 -0
  100. package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -0
  101. package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +172 -0
  102. package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -0
  103. package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +120 -0
  104. package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
  105. package/lib/commonjs/ui-components/screens/scroll-view-screen.js +94 -0
  106. package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -0
  107. package/lib/commonjs/ui-components/screens/section-list-screen.js +67 -0
  108. package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -0
  109. package/lib/commonjs/ui-components/searchbar/search-bar.js +99 -0
  110. package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -0
  111. package/lib/commonjs/utils/array.js +10 -0
  112. package/lib/commonjs/utils/array.js.map +1 -0
  113. package/lib/commonjs/utils/backup.js +12 -0
  114. package/lib/commonjs/utils/backup.js.map +1 -0
  115. package/lib/commonjs/utils/date.js +98 -1
  116. package/lib/commonjs/utils/date.js.map +1 -1
  117. package/lib/commonjs/utils/hooks/connectivity/connectivity.js +148 -0
  118. package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -0
  119. package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +56 -0
  120. package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -0
  121. package/lib/commonjs/utils/hooks/core/backup.js +155 -0
  122. package/lib/commonjs/utils/hooks/core/backup.js.map +1 -0
  123. package/lib/commonjs/utils/hooks/core/core-config.js +19 -0
  124. package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -0
  125. package/lib/commonjs/utils/hooks/core/core-context.js +72 -0
  126. package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -0
  127. package/lib/commonjs/utils/hooks/core/core-init.js +91 -0
  128. package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -0
  129. package/lib/commonjs/utils/hooks/core/credential-schemas.js +111 -0
  130. package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -0
  131. package/lib/commonjs/utils/hooks/core/credentials.js +170 -0
  132. package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -0
  133. package/lib/commonjs/utils/hooks/core/dids.js +35 -0
  134. package/lib/commonjs/utils/hooks/core/dids.js.map +1 -0
  135. package/lib/commonjs/utils/hooks/core/error-code.js +15 -0
  136. package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -0
  137. package/lib/commonjs/utils/hooks/core/history.js +65 -0
  138. package/lib/commonjs/utils/hooks/core/history.js.map +1 -0
  139. package/lib/commonjs/utils/hooks/core/index.js +138 -0
  140. package/lib/commonjs/utils/hooks/core/index.js.map +1 -0
  141. package/lib/commonjs/utils/hooks/core/proof-schemas.js +132 -0
  142. package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -0
  143. package/lib/commonjs/utils/hooks/core/proofs.js +336 -0
  144. package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -0
  145. package/lib/commonjs/utils/hooks/core/query.js +25 -0
  146. package/lib/commonjs/utils/hooks/core/query.js.map +1 -0
  147. package/lib/commonjs/utils/hooks/core/trust-entity.js +95 -0
  148. package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -0
  149. package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js +51 -0
  150. package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
  151. package/lib/commonjs/utils/hooks/http/client.js +20 -0
  152. package/lib/commonjs/utils/hooks/http/client.js.map +1 -0
  153. package/lib/commonjs/utils/hooks/index.js +85 -11
  154. package/lib/commonjs/utils/hooks/index.js.map +1 -1
  155. package/lib/commonjs/utils/hooks/navigation/before-remove.js +28 -0
  156. package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -0
  157. package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js +34 -0
  158. package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -0
  159. package/lib/commonjs/utils/hooks/navigation/deep-link.js +46 -0
  160. package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -0
  161. package/lib/commonjs/utils/hooks/navigation/index.js +50 -0
  162. package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -0
  163. package/lib/commonjs/utils/hooks/navigation/open-settings.js +43 -0
  164. package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -0
  165. package/lib/commonjs/utils/hooks/pin-security/pin-security.js +87 -0
  166. package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -0
  167. package/lib/commonjs/utils/hooks/revocation/credential-status.js +67 -0
  168. package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -0
  169. package/lib/commonjs/utils/index.js +119 -45
  170. package/lib/commonjs/utils/index.js.map +1 -1
  171. package/lib/commonjs/utils/parsers/credential-images.js +86 -0
  172. package/lib/commonjs/utils/parsers/credential-images.js.map +1 -0
  173. package/lib/commonjs/utils/parsers/credential-sharing.js +255 -0
  174. package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -0
  175. package/lib/commonjs/utils/parsers/credential.js +323 -0
  176. package/lib/commonjs/utils/parsers/credential.js.map +1 -0
  177. package/lib/commonjs/utils/parsers/index.js +50 -0
  178. package/lib/commonjs/utils/parsers/index.js.map +1 -0
  179. package/lib/commonjs/utils/parsers/query.js +103 -0
  180. package/lib/commonjs/utils/parsers/query.js.map +1 -0
  181. package/lib/commonjs/utils/reporting.js +86 -0
  182. package/lib/commonjs/utils/reporting.js.map +1 -0
  183. package/lib/commonjs/utils/string.js +20 -0
  184. package/lib/commonjs/utils/string.js.map +1 -0
  185. package/lib/commonjs/utils/useMemoAsync.js +1 -1
  186. package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
  187. package/lib/commonjs/utils/uuid.js +16 -0
  188. package/lib/commonjs/utils/uuid.js.map +1 -0
  189. package/lib/module/components/backup/index.js +2 -0
  190. package/lib/module/components/backup/index.js.map +1 -0
  191. package/lib/module/components/backup/preview-credentials.js +34 -0
  192. package/lib/module/components/backup/preview-credentials.js.map +1 -0
  193. package/lib/module/components/credential/credential.js +55 -0
  194. package/lib/module/components/credential/credential.js.map +1 -0
  195. package/lib/module/components/credential/index.js +2 -0
  196. package/lib/module/components/credential/index.js.map +1 -0
  197. package/lib/module/components/entity/EntityButtons.js +60 -0
  198. package/lib/module/components/entity/EntityButtons.js.map +1 -0
  199. package/lib/module/components/entity/entity-attributes.js +43 -0
  200. package/lib/module/components/entity/entity-attributes.js.map +1 -0
  201. package/lib/module/components/entity/entity-details-with-buttons.js +81 -0
  202. package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -0
  203. package/lib/module/components/entity/entity-details.js +64 -0
  204. package/lib/module/components/entity/entity-details.js.map +1 -0
  205. package/lib/module/components/entity/index.js +3 -0
  206. package/lib/module/components/entity/index.js.map +1 -0
  207. package/lib/module/components/index.js +6 -0
  208. package/lib/module/components/index.js.map +1 -0
  209. package/lib/module/components/navigation/header-buttons.js +70 -0
  210. package/lib/module/components/navigation/header-buttons.js.map +1 -0
  211. package/lib/module/components/navigation/index.js +2 -0
  212. package/lib/module/components/navigation/index.js.map +1 -0
  213. package/lib/module/components/proof-request/group.js +28 -0
  214. package/lib/module/components/proof-request/group.js.map +1 -0
  215. package/lib/module/components/proof-request/index.js +4 -0
  216. package/lib/module/components/proof-request/index.js.map +1 -0
  217. package/lib/module/components/proof-request/select-credential.js +41 -0
  218. package/lib/module/components/proof-request/select-credential.js.map +1 -0
  219. package/lib/module/components/proof-request/share-credential.js +154 -0
  220. package/lib/module/components/proof-request/share-credential.js.map +1 -0
  221. package/lib/module/index.js +2 -25
  222. package/lib/module/index.js.map +1 -1
  223. package/lib/module/ui-components/accessibility/accessibilityHistory.js +71 -0
  224. package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -0
  225. package/lib/module/ui-components/blur/blur-view.js +67 -0
  226. package/lib/module/ui-components/blur/blur-view.js.map +1 -0
  227. package/lib/module/ui-components/buttons/back-button.js.map +1 -0
  228. package/lib/module/ui-components/buttons/button.js +143 -0
  229. package/lib/module/ui-components/buttons/button.js.map +1 -0
  230. package/lib/module/ui-components/buttons/connectivity-button.js +73 -0
  231. package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -0
  232. package/lib/module/ui-components/credential/card/credential-card.js +171 -0
  233. package/lib/module/ui-components/credential/card/credential-card.js.map +1 -0
  234. package/lib/module/ui-components/credential/card/credential-details-card.js +189 -0
  235. package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -0
  236. package/lib/module/ui-components/credential/card/credential-header.js +163 -0
  237. package/lib/module/ui-components/credential/card/credential-header.js.map +1 -0
  238. package/lib/module/ui-components/credential/card/credential-image-carousel.js +113 -0
  239. package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -0
  240. package/lib/module/ui-components/credential/card/index.js +11 -0
  241. package/lib/module/ui-components/credential/card/index.js.map +1 -0
  242. package/lib/module/ui-components/credential/credential-attribute-item.js +279 -0
  243. package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -0
  244. package/lib/module/ui-components/credential/selector.js +70 -0
  245. package/lib/module/ui-components/credential/selector.js.map +1 -0
  246. package/lib/module/ui-components/detail/detail.js +75 -0
  247. package/lib/module/ui-components/detail/detail.js.map +1 -0
  248. package/lib/module/ui-components/entity/avatar.js +96 -0
  249. package/lib/module/ui-components/entity/avatar.js.map +1 -0
  250. package/lib/module/ui-components/entity/entity-cluster.js +65 -0
  251. package/lib/module/ui-components/entity/entity-cluster.js.map +1 -0
  252. package/lib/module/ui-components/header/header.js +97 -0
  253. package/lib/module/ui-components/header/header.js.map +1 -0
  254. package/lib/module/ui-components/header/navigation-header.js +138 -0
  255. package/lib/module/ui-components/header/navigation-header.js.map +1 -0
  256. package/lib/module/ui-components/history/data-item.js +60 -0
  257. package/lib/module/ui-components/history/data-item.js.map +1 -0
  258. package/lib/module/ui-components/history/history-list-item.js +80 -0
  259. package/lib/module/ui-components/history/history-list-item.js.map +1 -0
  260. package/lib/module/ui-components/history/history-section-header.js +42 -0
  261. package/lib/module/ui-components/history/history-section-header.js.map +1 -0
  262. package/lib/module/ui-components/icons/entity.js +43 -0
  263. package/lib/module/ui-components/icons/entity.js.map +1 -0
  264. package/lib/module/ui-components/index.js +26 -0
  265. package/lib/module/ui-components/index.js.map +1 -0
  266. package/lib/module/ui-components/input/selection-input.js +92 -0
  267. package/lib/module/ui-components/input/selection-input.js.map +1 -0
  268. package/lib/module/ui-components/input/text-input.js +185 -0
  269. package/lib/module/ui-components/input/text-input.js.map +1 -0
  270. package/lib/module/ui-components/loader/loader.js +130 -0
  271. package/lib/module/ui-components/loader/loader.js.map +1 -0
  272. package/lib/module/ui-components/nerd-view/nerd-mode-item.js +227 -0
  273. package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
  274. package/lib/module/ui-components/pin/index.js +5 -0
  275. package/lib/module/ui-components/pin/index.js.map +1 -0
  276. package/lib/module/ui-components/pin/keypad.js +191 -0
  277. package/lib/module/ui-components/pin/keypad.js.map +1 -0
  278. package/lib/module/ui-components/pin/pin-code-screen.js +152 -0
  279. package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -0
  280. package/lib/module/ui-components/pin/pin-lock-animation.js +817 -0
  281. package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -0
  282. package/lib/module/ui-components/pin/pin-lock.js +73 -0
  283. package/lib/module/ui-components/pin/pin-lock.js.map +1 -0
  284. package/lib/module/ui-components/screens/backup-screen.js +78 -0
  285. package/lib/module/ui-components/screens/backup-screen.js.map +1 -0
  286. package/lib/module/ui-components/screens/image-preview-screen.js +83 -0
  287. package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -0
  288. package/lib/module/ui-components/screens/nerd-mode-screen.js +161 -0
  289. package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -0
  290. package/lib/module/ui-components/screens/qr-code-scanner-screen.js +110 -0
  291. package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
  292. package/lib/module/ui-components/screens/scroll-view-screen.js +86 -0
  293. package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -0
  294. package/lib/module/ui-components/screens/section-list-screen.js +59 -0
  295. package/lib/module/ui-components/screens/section-list-screen.js.map +1 -0
  296. package/lib/module/ui-components/searchbar/search-bar.js +89 -0
  297. package/lib/module/ui-components/searchbar/search-bar.js.map +1 -0
  298. package/lib/module/utils/array.js +4 -0
  299. package/lib/module/utils/array.js.map +1 -0
  300. package/lib/module/utils/backup.js +5 -0
  301. package/lib/module/utils/backup.js.map +1 -0
  302. package/lib/module/utils/date.js +89 -1
  303. package/lib/module/utils/date.js.map +1 -1
  304. package/lib/module/utils/hooks/connectivity/connectivity.js +136 -0
  305. package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -0
  306. package/lib/module/utils/hooks/connectivity/connectivity.test.js +54 -0
  307. package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -0
  308. package/lib/module/utils/hooks/core/backup.js +143 -0
  309. package/lib/module/utils/hooks/core/backup.js.map +1 -0
  310. package/lib/module/utils/hooks/core/core-config.js +12 -0
  311. package/lib/module/utils/hooks/core/core-config.js.map +1 -0
  312. package/lib/module/utils/hooks/core/core-context.js +62 -0
  313. package/lib/module/utils/hooks/core/core-context.js.map +1 -0
  314. package/lib/module/utils/hooks/core/core-init.js +82 -0
  315. package/lib/module/utils/hooks/core/core-init.js.map +1 -0
  316. package/lib/module/utils/hooks/core/credential-schemas.js +95 -0
  317. package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -0
  318. package/lib/module/utils/hooks/core/credentials.js +155 -0
  319. package/lib/module/utils/hooks/core/credentials.js.map +1 -0
  320. package/lib/module/utils/hooks/core/dids.js +27 -0
  321. package/lib/module/utils/hooks/core/dids.js.map +1 -0
  322. package/lib/module/utils/hooks/core/error-code.js +8 -0
  323. package/lib/module/utils/hooks/core/error-code.js.map +1 -0
  324. package/lib/module/utils/hooks/core/history.js +57 -0
  325. package/lib/module/utils/hooks/core/history.js.map +1 -0
  326. package/lib/module/utils/hooks/core/index.js +13 -0
  327. package/lib/module/utils/hooks/core/index.js.map +1 -0
  328. package/lib/module/utils/hooks/core/proof-schemas.js +115 -0
  329. package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -0
  330. package/lib/module/utils/hooks/core/proofs.js +312 -0
  331. package/lib/module/utils/hooks/core/proofs.js.map +1 -0
  332. package/lib/module/utils/hooks/core/query.js +18 -0
  333. package/lib/module/utils/hooks/core/query.js.map +1 -0
  334. package/lib/module/utils/hooks/core/trust-entity.js +84 -0
  335. package/lib/module/utils/hooks/core/trust-entity.js.map +1 -0
  336. package/lib/module/utils/hooks/credential-card/credential-card-expanding.js +43 -0
  337. package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
  338. package/lib/module/utils/hooks/http/client.js +13 -0
  339. package/lib/module/utils/hooks/http/client.js.map +1 -0
  340. package/lib/module/utils/hooks/index.js +8 -4
  341. package/lib/module/utils/hooks/index.js.map +1 -1
  342. package/lib/module/utils/hooks/navigation/before-remove.js +21 -0
  343. package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -0
  344. package/lib/module/utils/hooks/navigation/close-button-timeout.js +27 -0
  345. package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -0
  346. package/lib/module/utils/hooks/navigation/deep-link.js +38 -0
  347. package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -0
  348. package/lib/module/utils/hooks/navigation/index.js +5 -0
  349. package/lib/module/utils/hooks/navigation/index.js.map +1 -0
  350. package/lib/module/utils/hooks/navigation/open-settings.js +36 -0
  351. package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -0
  352. package/lib/module/utils/hooks/pin-security/pin-security.js +80 -0
  353. package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -0
  354. package/lib/module/utils/hooks/revocation/credential-status.js +61 -0
  355. package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -0
  356. package/lib/module/utils/index.js +11 -5
  357. package/lib/module/utils/index.js.map +1 -1
  358. package/lib/module/utils/parsers/credential-images.js +78 -0
  359. package/lib/module/utils/parsers/credential-images.js.map +1 -0
  360. package/lib/module/utils/parsers/credential-sharing.js +242 -0
  361. package/lib/module/utils/parsers/credential-sharing.js.map +1 -0
  362. package/lib/module/utils/parsers/credential.js +304 -0
  363. package/lib/module/utils/parsers/credential.js.map +1 -0
  364. package/lib/module/utils/parsers/index.js +5 -0
  365. package/lib/module/utils/parsers/index.js.map +1 -0
  366. package/lib/module/utils/parsers/query.js +91 -0
  367. package/lib/module/utils/parsers/query.js.map +1 -0
  368. package/lib/module/utils/reporting.js +76 -0
  369. package/lib/module/utils/reporting.js.map +1 -0
  370. package/lib/module/utils/string.js +10 -0
  371. package/lib/module/utils/string.js.map +1 -0
  372. package/lib/module/utils/useMemoAsync.js +1 -1
  373. package/lib/module/utils/useMemoAsync.js.map +1 -1
  374. package/lib/module/utils/uuid.js +9 -0
  375. package/lib/module/utils/uuid.js.map +1 -0
  376. package/lib/typescript/components/backup/index.d.ts +1 -0
  377. package/lib/typescript/components/backup/preview-credentials.d.ts +11 -0
  378. package/lib/typescript/components/credential/credential.d.ts +16 -0
  379. package/lib/typescript/components/credential/index.d.ts +1 -0
  380. package/lib/typescript/components/entity/EntityButtons.d.ts +14 -0
  381. package/lib/typescript/components/entity/entity-attributes.d.ts +12 -0
  382. package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +18 -0
  383. package/lib/typescript/components/entity/entity-details.d.ts +19 -0
  384. package/lib/typescript/components/entity/index.d.ts +2 -0
  385. package/lib/typescript/components/index.d.ts +5 -0
  386. package/lib/typescript/components/navigation/header-buttons.d.ts +21 -0
  387. package/lib/typescript/components/navigation/index.d.ts +1 -0
  388. package/lib/typescript/components/proof-request/group.d.ts +2 -0
  389. package/lib/typescript/components/proof-request/index.d.ts +3 -0
  390. package/lib/typescript/components/proof-request/select-credential.d.ts +14 -0
  391. package/lib/typescript/components/proof-request/share-credential.d.ts +27 -0
  392. package/lib/typescript/index.d.ts +2 -25
  393. package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +13 -0
  394. package/lib/typescript/ui-components/buttons/back-button.d.ts +9 -0
  395. package/lib/typescript/ui-components/credential/card/credential-card.d.ts +25 -0
  396. package/lib/typescript/ui-components/credential/card/index.d.ts +10 -0
  397. package/lib/typescript/ui-components/credential/credential-attribute-item.d.ts +49 -0
  398. package/lib/typescript/ui-components/entity/avatar.d.ts +11 -0
  399. package/lib/typescript/ui-components/entity/entity-cluster.d.ts +13 -0
  400. package/lib/typescript/ui-components/index.d.ts +25 -0
  401. package/lib/typescript/ui-components/pin/index.d.ts +4 -0
  402. package/lib/typescript/ui-components/pin/pin-lock-animation.d.ts +731 -0
  403. package/lib/typescript/ui-components/pin/pin-lock.d.ts +13 -0
  404. package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +49 -0
  405. package/lib/typescript/ui-components/text/typography.d.ts +112 -0
  406. package/lib/typescript/utils/array.d.ts +1 -0
  407. package/lib/typescript/utils/backup.d.ts +1 -0
  408. package/lib/typescript/utils/date.d.ts +32 -0
  409. package/lib/typescript/utils/hooks/connectivity/connectivity.d.ts +27 -0
  410. package/lib/typescript/utils/hooks/connectivity/connectivity.test.d.ts +1 -0
  411. package/lib/typescript/utils/hooks/core/backup.d.ts +12 -0
  412. package/lib/typescript/utils/hooks/core/core-config.d.ts +1 -0
  413. package/lib/typescript/utils/hooks/core/core-context.d.ts +15 -0
  414. package/lib/typescript/utils/hooks/core/core-init.d.ts +3 -0
  415. package/lib/typescript/utils/hooks/core/credential-schemas.d.ts +11 -0
  416. package/lib/typescript/utils/hooks/core/credentials.d.ts +18 -0
  417. package/lib/typescript/utils/hooks/core/dids.d.ts +3 -0
  418. package/lib/typescript/utils/hooks/core/error-code.d.ts +6 -0
  419. package/lib/typescript/utils/hooks/core/history.d.ts +6 -0
  420. package/lib/typescript/utils/hooks/core/index.d.ts +12 -0
  421. package/lib/typescript/utils/hooks/core/proof-schemas.d.ts +14 -0
  422. package/lib/typescript/utils/hooks/core/proofs.d.ts +37 -0
  423. package/lib/typescript/utils/hooks/core/query.d.ts +2 -0
  424. package/lib/typescript/utils/hooks/core/trust-entity.d.ts +6 -0
  425. package/lib/typescript/utils/hooks/credential-card/credential-card-expanding.d.ts +10 -0
  426. package/lib/typescript/utils/hooks/http/client.d.ts +2 -0
  427. package/lib/typescript/utils/hooks/index.d.ts +8 -4
  428. package/lib/typescript/utils/hooks/navigation/before-remove.d.ts +1 -0
  429. package/lib/typescript/utils/hooks/navigation/close-button-timeout.d.ts +3 -0
  430. package/lib/typescript/utils/hooks/navigation/deep-link.d.ts +2 -0
  431. package/lib/typescript/utils/hooks/navigation/index.d.ts +4 -0
  432. package/lib/typescript/utils/hooks/navigation/open-settings.d.ts +6 -0
  433. package/lib/typescript/utils/hooks/pin-security/pin-security.d.ts +6 -0
  434. package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +7 -0
  435. package/lib/typescript/utils/index.d.ts +11 -5
  436. package/lib/typescript/utils/parsers/credential-images.d.ts +3 -0
  437. package/lib/typescript/utils/parsers/credential-sharing.d.ts +16 -0
  438. package/lib/typescript/utils/parsers/credential.d.ts +76 -0
  439. package/lib/typescript/utils/parsers/index.d.ts +4 -0
  440. package/lib/typescript/utils/parsers/query.d.ts +7 -0
  441. package/lib/typescript/utils/ref.d.ts +1 -1
  442. package/lib/typescript/utils/reporting.d.ts +4 -0
  443. package/lib/typescript/utils/string.d.ts +4 -0
  444. package/lib/typescript/utils/uuid.d.ts +6 -0
  445. package/package.json +29 -2
  446. package/src/components/backup/index.ts +1 -0
  447. package/src/components/backup/preview-credentials.tsx +38 -0
  448. package/src/components/credential/credential.tsx +72 -0
  449. package/src/components/credential/index.ts +1 -0
  450. package/src/components/entity/EntityButtons.tsx +79 -0
  451. package/src/components/entity/entity-attributes.tsx +62 -0
  452. package/src/components/entity/entity-details-with-buttons.tsx +98 -0
  453. package/src/components/entity/entity-details.tsx +85 -0
  454. package/src/components/entity/index.ts +3 -0
  455. package/src/components/index.ts +5 -0
  456. package/src/components/navigation/header-buttons.tsx +64 -0
  457. package/src/components/navigation/index.ts +1 -0
  458. package/src/components/proof-request/group.tsx +26 -0
  459. package/src/components/proof-request/index.ts +3 -0
  460. package/src/components/proof-request/select-credential.tsx +48 -0
  461. package/src/components/proof-request/share-credential.tsx +194 -0
  462. package/src/index.ts +2 -25
  463. package/src/ui-components/accessibility/accessibilityHistory.tsx +77 -0
  464. package/src/ui-components/blur/blur-view.tsx +82 -0
  465. package/src/ui-components/buttons/back-button.tsx +30 -0
  466. package/src/ui-components/buttons/button.tsx +169 -0
  467. package/src/ui-components/buttons/connectivity-button.tsx +95 -0
  468. package/src/ui-components/credential/card/credential-card.stories.tsx +54 -0
  469. package/src/ui-components/credential/card/credential-card.tsx +189 -0
  470. package/src/ui-components/credential/card/credential-details-card.stories.tsx +299 -0
  471. package/src/ui-components/credential/card/credential-details-card.tsx +242 -0
  472. package/src/ui-components/credential/card/credential-header.stories.tsx +50 -0
  473. package/src/ui-components/credential/card/credential-header.tsx +196 -0
  474. package/src/ui-components/credential/card/credential-image-carousel.tsx +113 -0
  475. package/src/ui-components/credential/card/index.ts +16 -0
  476. package/src/ui-components/credential/credential-attribute-item.tsx +373 -0
  477. package/src/ui-components/credential/selector.tsx +64 -0
  478. package/src/ui-components/detail/detail.stories.tsx +65 -0
  479. package/src/ui-components/detail/detail.tsx +98 -0
  480. package/src/ui-components/entity/avatar.tsx +100 -0
  481. package/src/ui-components/entity/entity-cluster.tsx +82 -0
  482. package/src/ui-components/header/header.stories.tsx +59 -0
  483. package/src/ui-components/header/header.tsx +105 -0
  484. package/src/ui-components/header/navigation-header.stories.tsx +56 -0
  485. package/src/ui-components/header/navigation-header.tsx +147 -0
  486. package/src/ui-components/history/data-item.tsx +79 -0
  487. package/src/ui-components/history/history-list-item.tsx +102 -0
  488. package/src/ui-components/history/history-section-header.tsx +44 -0
  489. package/src/ui-components/icons/entity.tsx +31 -0
  490. package/src/ui-components/index.ts +25 -0
  491. package/src/ui-components/input/selection-input.tsx +112 -0
  492. package/src/ui-components/input/text-input.tsx +253 -0
  493. package/src/ui-components/loader/loader.tsx +171 -0
  494. package/src/ui-components/nerd-view/nerd-mode-item.tsx +299 -0
  495. package/src/ui-components/pin/index.ts +5 -0
  496. package/src/ui-components/pin/keypad.tsx +166 -0
  497. package/src/ui-components/pin/pin-code-screen.tsx +195 -0
  498. package/src/ui-components/pin/pin-lock-animation.tsx +500 -0
  499. package/src/ui-components/pin/pin-lock.tsx +82 -0
  500. package/src/ui-components/screens/backup-screen.tsx +92 -0
  501. package/src/ui-components/screens/image-preview-screen.stories.tsx +28 -0
  502. package/src/ui-components/screens/image-preview-screen.tsx +82 -0
  503. package/src/ui-components/screens/nerd-mode-screen.tsx +214 -0
  504. package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +37 -0
  505. package/src/ui-components/screens/qr-code-scanner-screen.tsx +124 -0
  506. package/src/ui-components/screens/scroll-view-screen.tsx +91 -0
  507. package/src/ui-components/screens/section-list-screen.tsx +61 -0
  508. package/src/ui-components/searchbar/search-bar.tsx +94 -0
  509. package/src/ui-components/text/typography.stories.tsx +70 -0
  510. package/src/utils/array.ts +3 -0
  511. package/src/utils/backup.ts +5 -0
  512. package/src/utils/date.ts +105 -1
  513. package/src/utils/hooks/connectivity/connectivity.test.ts +87 -0
  514. package/src/utils/hooks/connectivity/connectivity.ts +162 -0
  515. package/src/utils/hooks/core/backup.ts +140 -0
  516. package/src/utils/hooks/core/core-config.ts +13 -0
  517. package/src/utils/hooks/core/core-context.tsx +101 -0
  518. package/src/utils/hooks/core/core-init.ts +92 -0
  519. package/src/utils/hooks/core/credential-schemas.ts +110 -0
  520. package/src/utils/hooks/core/credentials.ts +171 -0
  521. package/src/utils/hooks/core/dids.ts +28 -0
  522. package/src/utils/hooks/core/error-code.ts +6 -0
  523. package/src/utils/hooks/core/history.ts +85 -0
  524. package/src/utils/hooks/core/index.ts +12 -0
  525. package/src/utils/hooks/core/proof-schemas.ts +130 -0
  526. package/src/utils/hooks/core/proofs.ts +351 -0
  527. package/src/utils/hooks/core/query.ts +19 -0
  528. package/src/utils/hooks/core/trust-entity.ts +109 -0
  529. package/src/utils/hooks/credential-card/credential-card-expanding.tsx +45 -0
  530. package/src/utils/hooks/http/client.ts +13 -0
  531. package/src/utils/hooks/index.ts +8 -5
  532. package/src/utils/hooks/navigation/before-remove.tsx +22 -0
  533. package/src/utils/hooks/navigation/close-button-timeout.tsx +29 -0
  534. package/src/utils/hooks/navigation/deep-link.ts +40 -0
  535. package/src/utils/hooks/navigation/index.ts +4 -0
  536. package/src/utils/hooks/navigation/open-settings.ts +40 -0
  537. package/src/utils/hooks/pin-security/pin-security.ts +99 -0
  538. package/src/utils/hooks/revocation/credential-status.ts +44 -0
  539. package/src/utils/index.ts +11 -14
  540. package/src/utils/parsers/credential-images.tsx +78 -0
  541. package/src/utils/parsers/credential-sharing.tsx +366 -0
  542. package/src/utils/parsers/credential.ts +365 -0
  543. package/src/utils/parsers/index.ts +4 -0
  544. package/src/utils/parsers/query.tsx +80 -0
  545. package/src/utils/reporting.ts +84 -0
  546. package/src/utils/string.ts +17 -0
  547. package/src/utils/useMemoAsync.ts +1 -1
  548. package/src/utils/uuid.ts +8 -0
  549. package/lib/commonjs/accessibility/accessibilityHistory.js +0 -81
  550. package/lib/commonjs/accessibility/accessibilityHistory.js.map +0 -1
  551. package/lib/commonjs/blur/blur-view.js +0 -76
  552. package/lib/commonjs/blur/blur-view.js.map +0 -1
  553. package/lib/commonjs/buttons/back-button.js.map +0 -1
  554. package/lib/commonjs/buttons/button.js +0 -153
  555. package/lib/commonjs/buttons/button.js.map +0 -1
  556. package/lib/commonjs/buttons/connectivity-button.js +0 -82
  557. package/lib/commonjs/buttons/connectivity-button.js.map +0 -1
  558. package/lib/commonjs/credential/card/credential-card.js +0 -189
  559. package/lib/commonjs/credential/card/credential-card.js.map +0 -1
  560. package/lib/commonjs/credential/card/credential-details-card.js +0 -201
  561. package/lib/commonjs/credential/card/credential-details-card.js.map +0 -1
  562. package/lib/commonjs/credential/card/credential-header.js +0 -172
  563. package/lib/commonjs/credential/card/credential-header.js.map +0 -1
  564. package/lib/commonjs/credential/card/credential-image-carousel.js +0 -124
  565. package/lib/commonjs/credential/card/credential-image-carousel.js.map +0 -1
  566. package/lib/commonjs/credential/card/index.js +0 -85
  567. package/lib/commonjs/credential/card/index.js.map +0 -1
  568. package/lib/commonjs/credential/credential-attribute-item.js +0 -289
  569. package/lib/commonjs/credential/credential-attribute-item.js.map +0 -1
  570. package/lib/commonjs/credential/selector.js +0 -79
  571. package/lib/commonjs/credential/selector.js.map +0 -1
  572. package/lib/commonjs/detail/detail.js +0 -84
  573. package/lib/commonjs/detail/detail.js.map +0 -1
  574. package/lib/commonjs/entity/avatar.js +0 -96
  575. package/lib/commonjs/entity/avatar.js.map +0 -1
  576. package/lib/commonjs/entity/entity-cluster.js +0 -66
  577. package/lib/commonjs/entity/entity-cluster.js.map +0 -1
  578. package/lib/commonjs/header/header.js +0 -105
  579. package/lib/commonjs/header/header.js.map +0 -1
  580. package/lib/commonjs/header/navigation-header.js +0 -148
  581. package/lib/commonjs/header/navigation-header.js.map +0 -1
  582. package/lib/commonjs/history/data-item.js +0 -70
  583. package/lib/commonjs/history/data-item.js.map +0 -1
  584. package/lib/commonjs/history/history-list-item.js +0 -90
  585. package/lib/commonjs/history/history-list-item.js.map +0 -1
  586. package/lib/commonjs/history/history-section-header.js +0 -49
  587. package/lib/commonjs/history/history-section-header.js.map +0 -1
  588. package/lib/commonjs/icons/entity.js +0 -34
  589. package/lib/commonjs/icons/entity.js.map +0 -1
  590. package/lib/commonjs/input/selection-input.js +0 -102
  591. package/lib/commonjs/input/selection-input.js.map +0 -1
  592. package/lib/commonjs/input/text-input.js +0 -195
  593. package/lib/commonjs/input/text-input.js.map +0 -1
  594. package/lib/commonjs/loader/loader.js +0 -140
  595. package/lib/commonjs/loader/loader.js.map +0 -1
  596. package/lib/commonjs/nerd-view/nerd-mode-item.js +0 -235
  597. package/lib/commonjs/nerd-view/nerd-mode-item.js.map +0 -1
  598. package/lib/commonjs/pin/index.js +0 -32
  599. package/lib/commonjs/pin/index.js.map +0 -1
  600. package/lib/commonjs/pin/keypad.js +0 -201
  601. package/lib/commonjs/pin/keypad.js.map +0 -1
  602. package/lib/commonjs/pin/pin-code-screen.js +0 -162
  603. package/lib/commonjs/pin/pin-code-screen.js.map +0 -1
  604. package/lib/commonjs/screens/backup-screen.js +0 -87
  605. package/lib/commonjs/screens/backup-screen.js.map +0 -1
  606. package/lib/commonjs/screens/image-preview-screen.js +0 -92
  607. package/lib/commonjs/screens/image-preview-screen.js.map +0 -1
  608. package/lib/commonjs/screens/nerd-mode-screen.js +0 -142
  609. package/lib/commonjs/screens/nerd-mode-screen.js.map +0 -1
  610. package/lib/commonjs/screens/qr-code-scanner-screen.js +0 -120
  611. package/lib/commonjs/screens/qr-code-scanner-screen.js.map +0 -1
  612. package/lib/commonjs/screens/scroll-view-screen.js +0 -94
  613. package/lib/commonjs/screens/scroll-view-screen.js.map +0 -1
  614. package/lib/commonjs/screens/section-list-screen.js +0 -67
  615. package/lib/commonjs/screens/section-list-screen.js.map +0 -1
  616. package/lib/commonjs/searchbar/search-bar.js +0 -99
  617. package/lib/commonjs/searchbar/search-bar.js.map +0 -1
  618. package/lib/module/accessibility/accessibilityHistory.js +0 -71
  619. package/lib/module/accessibility/accessibilityHistory.js.map +0 -1
  620. package/lib/module/blur/blur-view.js +0 -67
  621. package/lib/module/blur/blur-view.js.map +0 -1
  622. package/lib/module/buttons/back-button.js.map +0 -1
  623. package/lib/module/buttons/button.js +0 -143
  624. package/lib/module/buttons/button.js.map +0 -1
  625. package/lib/module/buttons/connectivity-button.js +0 -73
  626. package/lib/module/buttons/connectivity-button.js.map +0 -1
  627. package/lib/module/credential/card/credential-card.js +0 -177
  628. package/lib/module/credential/card/credential-card.js.map +0 -1
  629. package/lib/module/credential/card/credential-details-card.js +0 -191
  630. package/lib/module/credential/card/credential-details-card.js.map +0 -1
  631. package/lib/module/credential/card/credential-header.js +0 -162
  632. package/lib/module/credential/card/credential-header.js.map +0 -1
  633. package/lib/module/credential/card/credential-image-carousel.js +0 -113
  634. package/lib/module/credential/card/credential-image-carousel.js.map +0 -1
  635. package/lib/module/credential/card/index.js +0 -11
  636. package/lib/module/credential/card/index.js.map +0 -1
  637. package/lib/module/credential/credential-attribute-item.js +0 -279
  638. package/lib/module/credential/credential-attribute-item.js.map +0 -1
  639. package/lib/module/credential/selector.js +0 -70
  640. package/lib/module/credential/selector.js.map +0 -1
  641. package/lib/module/detail/detail.js +0 -75
  642. package/lib/module/detail/detail.js.map +0 -1
  643. package/lib/module/entity/avatar.js +0 -86
  644. package/lib/module/entity/avatar.js.map +0 -1
  645. package/lib/module/entity/entity-cluster.js +0 -56
  646. package/lib/module/entity/entity-cluster.js.map +0 -1
  647. package/lib/module/header/header.js +0 -97
  648. package/lib/module/header/header.js.map +0 -1
  649. package/lib/module/header/navigation-header.js +0 -138
  650. package/lib/module/header/navigation-header.js.map +0 -1
  651. package/lib/module/history/data-item.js +0 -60
  652. package/lib/module/history/data-item.js.map +0 -1
  653. package/lib/module/history/history-list-item.js +0 -80
  654. package/lib/module/history/history-list-item.js.map +0 -1
  655. package/lib/module/history/history-section-header.js +0 -42
  656. package/lib/module/history/history-section-header.js.map +0 -1
  657. package/lib/module/icons/entity.js +0 -25
  658. package/lib/module/icons/entity.js.map +0 -1
  659. package/lib/module/input/selection-input.js +0 -92
  660. package/lib/module/input/selection-input.js.map +0 -1
  661. package/lib/module/input/text-input.js +0 -185
  662. package/lib/module/input/text-input.js.map +0 -1
  663. package/lib/module/loader/loader.js +0 -130
  664. package/lib/module/loader/loader.js.map +0 -1
  665. package/lib/module/nerd-view/nerd-mode-item.js +0 -224
  666. package/lib/module/nerd-view/nerd-mode-item.js.map +0 -1
  667. package/lib/module/pin/index.js +0 -4
  668. package/lib/module/pin/index.js.map +0 -1
  669. package/lib/module/pin/keypad.js +0 -191
  670. package/lib/module/pin/keypad.js.map +0 -1
  671. package/lib/module/pin/pin-code-screen.js +0 -152
  672. package/lib/module/pin/pin-code-screen.js.map +0 -1
  673. package/lib/module/screens/backup-screen.js +0 -78
  674. package/lib/module/screens/backup-screen.js.map +0 -1
  675. package/lib/module/screens/image-preview-screen.js +0 -83
  676. package/lib/module/screens/image-preview-screen.js.map +0 -1
  677. package/lib/module/screens/nerd-mode-screen.js +0 -132
  678. package/lib/module/screens/nerd-mode-screen.js.map +0 -1
  679. package/lib/module/screens/qr-code-scanner-screen.js +0 -110
  680. package/lib/module/screens/qr-code-scanner-screen.js.map +0 -1
  681. package/lib/module/screens/scroll-view-screen.js +0 -86
  682. package/lib/module/screens/scroll-view-screen.js.map +0 -1
  683. package/lib/module/screens/section-list-screen.js +0 -59
  684. package/lib/module/screens/section-list-screen.js.map +0 -1
  685. package/lib/module/searchbar/search-bar.js +0 -89
  686. package/lib/module/searchbar/search-bar.js.map +0 -1
  687. package/lib/typescript/accessibility/accessibilityHistory.d.ts +0 -13
  688. package/lib/typescript/buttons/back-button.d.ts +0 -9
  689. package/lib/typescript/credential/card/credential-card.d.ts +0 -22
  690. package/lib/typescript/credential/card/index.d.ts +0 -10
  691. package/lib/typescript/credential/credential-attribute-item.d.ts +0 -48
  692. package/lib/typescript/entity/avatar.d.ts +0 -10
  693. package/lib/typescript/entity/entity-cluster.d.ts +0 -12
  694. package/lib/typescript/pin/index.d.ts +0 -3
  695. package/lib/typescript/screens/nerd-mode-screen.d.ts +0 -22
  696. package/lib/typescript/text/typography.d.ts +0 -112
  697. package/src/accessibility/accessibilityHistory.tsx +0 -77
  698. package/src/blur/blur-view.tsx +0 -82
  699. package/src/buttons/back-button.tsx +0 -31
  700. package/src/buttons/button.tsx +0 -169
  701. package/src/buttons/connectivity-button.tsx +0 -95
  702. package/src/credential/card/credential-card.stories.tsx +0 -52
  703. package/src/credential/card/credential-card.tsx +0 -195
  704. package/src/credential/card/credential-details-card.stories.tsx +0 -268
  705. package/src/credential/card/credential-details-card.tsx +0 -242
  706. package/src/credential/card/credential-header.stories.tsx +0 -50
  707. package/src/credential/card/credential-header.tsx +0 -195
  708. package/src/credential/card/credential-image-carousel.tsx +0 -113
  709. package/src/credential/card/index.ts +0 -11
  710. package/src/credential/credential-attribute-item.tsx +0 -372
  711. package/src/credential/selector.tsx +0 -64
  712. package/src/detail/detail.stories.tsx +0 -65
  713. package/src/detail/detail.tsx +0 -98
  714. package/src/entity/avatar.tsx +0 -87
  715. package/src/entity/entity-cluster.tsx +0 -72
  716. package/src/header/header.stories.tsx +0 -59
  717. package/src/header/header.tsx +0 -105
  718. package/src/header/navigation-header.stories.tsx +0 -56
  719. package/src/header/navigation-header.tsx +0 -147
  720. package/src/history/data-item.tsx +0 -79
  721. package/src/history/history-list-item.tsx +0 -102
  722. package/src/history/history-section-header.tsx +0 -44
  723. package/src/icons/entity.tsx +0 -21
  724. package/src/input/selection-input.tsx +0 -112
  725. package/src/input/text-input.tsx +0 -253
  726. package/src/loader/loader.tsx +0 -169
  727. package/src/nerd-view/nerd-mode-item.tsx +0 -296
  728. package/src/pin/index.ts +0 -4
  729. package/src/pin/keypad.tsx +0 -166
  730. package/src/pin/pin-code-screen.tsx +0 -195
  731. package/src/screens/backup-screen.tsx +0 -92
  732. package/src/screens/image-preview-screen.stories.tsx +0 -28
  733. package/src/screens/image-preview-screen.tsx +0 -82
  734. package/src/screens/nerd-mode-screen.tsx +0 -150
  735. package/src/screens/qr-code-scanner-screen.stories.tsx +0 -37
  736. package/src/screens/qr-code-scanner-screen.tsx +0 -124
  737. package/src/screens/scroll-view-screen.tsx +0 -91
  738. package/src/screens/section-list-screen.tsx +0 -61
  739. package/src/searchbar/search-bar.tsx +0 -94
  740. package/src/text/typography.stories.tsx +0 -70
  741. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibility.js +0 -0
  742. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibility.js.map +0 -0
  743. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.js +0 -0
  744. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.js.map +0 -0
  745. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibilityLanguage.js +0 -0
  746. /package/lib/commonjs/{accessibility → ui-components/accessibility}/accessibilityLanguage.js.map +0 -0
  747. /package/lib/commonjs/{accessibility → ui-components/accessibility}/index.js +0 -0
  748. /package/lib/commonjs/{accessibility → ui-components/accessibility}/index.js.map +0 -0
  749. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  750. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  751. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  752. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/index.js +0 -0
  753. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/index.js.map +0 -0
  754. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  755. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
  756. /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale.test.js.map +0 -0
  757. /package/lib/commonjs/{action-modal → ui-components/action-modal}/ActionModal.js +0 -0
  758. /package/lib/commonjs/{action-modal → ui-components/action-modal}/ActionModal.js.map +0 -0
  759. /package/lib/commonjs/{action-modal → ui-components/action-modal}/index.js +0 -0
  760. /package/lib/commonjs/{action-modal → ui-components/action-modal}/index.js.map +0 -0
  761. /package/lib/commonjs/{activity-indicator → ui-components/activity-indicator}/activity-indicator.js +0 -0
  762. /package/lib/commonjs/{activity-indicator → ui-components/activity-indicator}/activity-indicator.js.map +0 -0
  763. /package/lib/commonjs/{activity-indicator → ui-components/activity-indicator}/index.js +0 -0
  764. /package/lib/commonjs/{activity-indicator → ui-components/activity-indicator}/index.js.map +0 -0
  765. /package/lib/commonjs/{blur → ui-components/blur}/index.js +0 -0
  766. /package/lib/commonjs/{blur → ui-components/blur}/index.js.map +0 -0
  767. /package/lib/commonjs/{buttons → ui-components/buttons}/back-button.js +0 -0
  768. /package/lib/commonjs/{buttons → ui-components/buttons}/filter-button.js +0 -0
  769. /package/lib/commonjs/{buttons → ui-components/buttons}/filter-button.js.map +0 -0
  770. /package/lib/commonjs/{buttons → ui-components/buttons}/ghost-button.js +0 -0
  771. /package/lib/commonjs/{buttons → ui-components/buttons}/ghost-button.js.map +0 -0
  772. /package/lib/commonjs/{buttons → ui-components/buttons}/index.js +0 -0
  773. /package/lib/commonjs/{buttons → ui-components/buttons}/index.js.map +0 -0
  774. /package/lib/commonjs/{buttons → ui-components/buttons}/scan-button.js +0 -0
  775. /package/lib/commonjs/{buttons → ui-components/buttons}/scan-button.js.map +0 -0
  776. /package/lib/commonjs/{camera → ui-components/camera}/camera-overlay.js +0 -0
  777. /package/lib/commonjs/{camera → ui-components/camera}/camera-overlay.js.map +0 -0
  778. /package/lib/commonjs/{camera → ui-components/camera}/index.js +0 -0
  779. /package/lib/commonjs/{camera → ui-components/camera}/index.js.map +0 -0
  780. /package/lib/commonjs/{camera → ui-components/camera}/qr-code-scanner.js +0 -0
  781. /package/lib/commonjs/{camera → ui-components/camera}/qr-code-scanner.js.map +0 -0
  782. /package/lib/commonjs/{control → ui-components/control}/checkbox.js +0 -0
  783. /package/lib/commonjs/{control → ui-components/control}/checkbox.js.map +0 -0
  784. /package/lib/commonjs/{control → ui-components/control}/index.js +0 -0
  785. /package/lib/commonjs/{control → ui-components/control}/index.js.map +0 -0
  786. /package/lib/commonjs/{control → ui-components/control}/switch.js +0 -0
  787. /package/lib/commonjs/{control → ui-components/control}/switch.js.map +0 -0
  788. /package/lib/commonjs/{credential → ui-components/credential}/card/credential-details-list-item.js +0 -0
  789. /package/lib/commonjs/{credential → ui-components/credential}/card/credential-details-list-item.js.map +0 -0
  790. /package/lib/commonjs/{credential → ui-components/credential}/credential-carousel-images.js +0 -0
  791. /package/lib/commonjs/{credential → ui-components/credential}/credential-carousel-images.js.map +0 -0
  792. /package/lib/commonjs/{credential → ui-components/credential}/index.js +0 -0
  793. /package/lib/commonjs/{credential → ui-components/credential}/index.js.map +0 -0
  794. /package/lib/commonjs/{credential → ui-components/credential}/selector-status.js +0 -0
  795. /package/lib/commonjs/{credential → ui-components/credential}/selector-status.js.map +0 -0
  796. /package/lib/commonjs/{detail → ui-components/detail}/index.js +0 -0
  797. /package/lib/commonjs/{detail → ui-components/detail}/index.js.map +0 -0
  798. /package/lib/commonjs/{entity → ui-components/entity}/index.js +0 -0
  799. /package/lib/commonjs/{entity → ui-components/entity}/index.js.map +0 -0
  800. /package/lib/commonjs/{header → ui-components/header}/focus-aware-status-bar.js +0 -0
  801. /package/lib/commonjs/{header → ui-components/header}/focus-aware-status-bar.js.map +0 -0
  802. /package/lib/commonjs/{header → ui-components/header}/foldable-header.js +0 -0
  803. /package/lib/commonjs/{header → ui-components/header}/foldable-header.js.map +0 -0
  804. /package/lib/commonjs/{header → ui-components/header}/index.js +0 -0
  805. /package/lib/commonjs/{header → ui-components/header}/index.js.map +0 -0
  806. /package/lib/commonjs/{history → ui-components/history}/history-section-list-item.js +0 -0
  807. /package/lib/commonjs/{history → ui-components/history}/history-section-list-item.js.map +0 -0
  808. /package/lib/commonjs/{history → ui-components/history}/index.js +0 -0
  809. /package/lib/commonjs/{history → ui-components/history}/index.js.map +0 -0
  810. /package/lib/commonjs/{icons → ui-components/icons}/connectivity.js +0 -0
  811. /package/lib/commonjs/{icons → ui-components/icons}/connectivity.js.map +0 -0
  812. /package/lib/commonjs/{icons → ui-components/icons}/credential.js +0 -0
  813. /package/lib/commonjs/{icons → ui-components/icons}/credential.js.map +0 -0
  814. /package/lib/commonjs/{icons → ui-components/icons}/history.js +0 -0
  815. /package/lib/commonjs/{icons → ui-components/icons}/history.js.map +0 -0
  816. /package/lib/commonjs/{icons → ui-components/icons}/icons.js +0 -0
  817. /package/lib/commonjs/{icons → ui-components/icons}/icons.js.map +0 -0
  818. /package/lib/commonjs/{icons → ui-components/icons}/index.js +0 -0
  819. /package/lib/commonjs/{icons → ui-components/icons}/index.js.map +0 -0
  820. /package/lib/commonjs/{icons → ui-components/icons}/input.js +0 -0
  821. /package/lib/commonjs/{icons → ui-components/icons}/input.js.map +0 -0
  822. /package/lib/commonjs/{icons → ui-components/icons}/keypad.js +0 -0
  823. /package/lib/commonjs/{icons → ui-components/icons}/keypad.js.map +0 -0
  824. /package/lib/commonjs/{icons → ui-components/icons}/loader.js +0 -0
  825. /package/lib/commonjs/{icons → ui-components/icons}/loader.js.map +0 -0
  826. /package/lib/commonjs/{icons → ui-components/icons}/nerd-view.js +0 -0
  827. /package/lib/commonjs/{icons → ui-components/icons}/nerd-view.js.map +0 -0
  828. /package/lib/commonjs/{icons → ui-components/icons}/selector.js +0 -0
  829. /package/lib/commonjs/{icons → ui-components/icons}/selector.js.map +0 -0
  830. /package/lib/commonjs/{icons → ui-components/icons}/wallet.js +0 -0
  831. /package/lib/commonjs/{icons → ui-components/icons}/wallet.js.map +0 -0
  832. /package/lib/commonjs/{image → ui-components/image}/image-or-component.js +0 -0
  833. /package/lib/commonjs/{image → ui-components/image}/image-or-component.js.map +0 -0
  834. /package/lib/commonjs/{image → ui-components/image}/index.js +0 -0
  835. /package/lib/commonjs/{image → ui-components/image}/index.js.map +0 -0
  836. /package/lib/commonjs/{input → ui-components/input}/index.js +0 -0
  837. /package/lib/commonjs/{input → ui-components/input}/index.js.map +0 -0
  838. /package/lib/commonjs/{input → ui-components/input}/radio-group.js +0 -0
  839. /package/lib/commonjs/{input → ui-components/input}/radio-group.js.map +0 -0
  840. /package/lib/commonjs/{list → ui-components/list}/index.js +0 -0
  841. /package/lib/commonjs/{list → ui-components/list}/index.js.map +0 -0
  842. /package/lib/commonjs/{list → ui-components/list}/list-section-header.js +0 -0
  843. /package/lib/commonjs/{list → ui-components/list}/list-section-header.js.map +0 -0
  844. /package/lib/commonjs/{list → ui-components/list}/list-title-header.js +0 -0
  845. /package/lib/commonjs/{list → ui-components/list}/list-title-header.js.map +0 -0
  846. /package/lib/commonjs/{loader → ui-components/loader}/index.js +0 -0
  847. /package/lib/commonjs/{loader → ui-components/loader}/index.js.map +0 -0
  848. /package/lib/commonjs/{loader → ui-components/loader}/loading-result.js +0 -0
  849. /package/lib/commonjs/{loader → ui-components/loader}/loading-result.js.map +0 -0
  850. /package/lib/commonjs/{nerd-view → ui-components/nerd-view}/index.js +0 -0
  851. /package/lib/commonjs/{nerd-view → ui-components/nerd-view}/index.js.map +0 -0
  852. /package/lib/commonjs/{pin → ui-components/pin}/pins.js +0 -0
  853. /package/lib/commonjs/{pin → ui-components/pin}/pins.js.map +0 -0
  854. /package/lib/commonjs/{screens → ui-components/screens}/index.js +0 -0
  855. /package/lib/commonjs/{screens → ui-components/screens}/index.js.map +0 -0
  856. /package/lib/commonjs/{searchbar → ui-components/searchbar}/animated-search-bar.js +0 -0
  857. /package/lib/commonjs/{searchbar → ui-components/searchbar}/animated-search-bar.js.map +0 -0
  858. /package/lib/commonjs/{searchbar → ui-components/searchbar}/index.js +0 -0
  859. /package/lib/commonjs/{searchbar → ui-components/searchbar}/index.js.map +0 -0
  860. /package/lib/commonjs/{settings → ui-components/settings}/button-setting.js +0 -0
  861. /package/lib/commonjs/{settings → ui-components/settings}/button-setting.js.map +0 -0
  862. /package/lib/commonjs/{settings → ui-components/settings}/index.js +0 -0
  863. /package/lib/commonjs/{settings → ui-components/settings}/index.js.map +0 -0
  864. /package/lib/commonjs/{settings → ui-components/settings}/setting-item-separator.js +0 -0
  865. /package/lib/commonjs/{settings → ui-components/settings}/setting-item-separator.js.map +0 -0
  866. /package/lib/commonjs/{settings → ui-components/settings}/setting-item.js +0 -0
  867. /package/lib/commonjs/{settings → ui-components/settings}/setting-item.js.map +0 -0
  868. /package/lib/commonjs/{settings → ui-components/settings}/settings-button.js +0 -0
  869. /package/lib/commonjs/{settings → ui-components/settings}/settings-button.js.map +0 -0
  870. /package/lib/commonjs/{settings → ui-components/settings}/switch-setting.js +0 -0
  871. /package/lib/commonjs/{settings → ui-components/settings}/switch-setting.js.map +0 -0
  872. /package/lib/commonjs/{state → ui-components/state}/error-screen.js +0 -0
  873. /package/lib/commonjs/{state → ui-components/state}/error-screen.js.map +0 -0
  874. /package/lib/commonjs/{state → ui-components/state}/index.js +0 -0
  875. /package/lib/commonjs/{state → ui-components/state}/index.js.map +0 -0
  876. /package/lib/commonjs/{text → ui-components/text}/base.js +0 -0
  877. /package/lib/commonjs/{text → ui-components/text}/base.js.map +0 -0
  878. /package/lib/commonjs/{text → ui-components/text}/font.js +0 -0
  879. /package/lib/commonjs/{text → ui-components/text}/font.js.map +0 -0
  880. /package/lib/commonjs/{text → ui-components/text}/index.js +0 -0
  881. /package/lib/commonjs/{text → ui-components/text}/index.js.map +0 -0
  882. /package/lib/commonjs/{text → ui-components/text}/typography.js +0 -0
  883. /package/lib/commonjs/{text → ui-components/text}/typography.js.map +0 -0
  884. /package/lib/commonjs/{theme → ui-components/theme}/color-scheme-context.js +0 -0
  885. /package/lib/commonjs/{theme → ui-components/theme}/color-scheme-context.js.map +0 -0
  886. /package/lib/commonjs/{theme → ui-components/theme}/color-scheme.js +0 -0
  887. /package/lib/commonjs/{theme → ui-components/theme}/color-scheme.js.map +0 -0
  888. /package/lib/commonjs/{theme → ui-components/theme}/index.js +0 -0
  889. /package/lib/commonjs/{theme → ui-components/theme}/index.js.map +0 -0
  890. /package/lib/module/{accessibility → ui-components/accessibility}/accessibility.js +0 -0
  891. /package/lib/module/{accessibility → ui-components/accessibility}/accessibility.js.map +0 -0
  892. /package/lib/module/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.js +0 -0
  893. /package/lib/module/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.js.map +0 -0
  894. /package/lib/module/{accessibility → ui-components/accessibility}/accessibilityLanguage.js +0 -0
  895. /package/lib/module/{accessibility → ui-components/accessibility}/accessibilityLanguage.js.map +0 -0
  896. /package/lib/module/{accessibility → ui-components/accessibility}/index.js +0 -0
  897. /package/lib/module/{accessibility → ui-components/accessibility}/index.js.map +0 -0
  898. /package/lib/module/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  899. /package/lib/module/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  900. /package/lib/module/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  901. /package/lib/module/{accessibility → ui-components/accessibility}/locale/index.js +0 -0
  902. /package/lib/module/{accessibility → ui-components/accessibility}/locale/index.js.map +0 -0
  903. /package/lib/module/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  904. /package/lib/module/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
  905. /package/lib/module/{accessibility → ui-components/accessibility}/locale.test.js.map +0 -0
  906. /package/lib/module/{action-modal → ui-components/action-modal}/ActionModal.js +0 -0
  907. /package/lib/module/{action-modal → ui-components/action-modal}/ActionModal.js.map +0 -0
  908. /package/lib/module/{action-modal → ui-components/action-modal}/index.js +0 -0
  909. /package/lib/module/{action-modal → ui-components/action-modal}/index.js.map +0 -0
  910. /package/lib/module/{activity-indicator → ui-components/activity-indicator}/activity-indicator.js +0 -0
  911. /package/lib/module/{activity-indicator → ui-components/activity-indicator}/activity-indicator.js.map +0 -0
  912. /package/lib/module/{activity-indicator → ui-components/activity-indicator}/index.js +0 -0
  913. /package/lib/module/{activity-indicator → ui-components/activity-indicator}/index.js.map +0 -0
  914. /package/lib/module/{blur → ui-components/blur}/index.js +0 -0
  915. /package/lib/module/{blur → ui-components/blur}/index.js.map +0 -0
  916. /package/lib/module/{buttons → ui-components/buttons}/back-button.js +0 -0
  917. /package/lib/module/{buttons → ui-components/buttons}/filter-button.js +0 -0
  918. /package/lib/module/{buttons → ui-components/buttons}/filter-button.js.map +0 -0
  919. /package/lib/module/{buttons → ui-components/buttons}/ghost-button.js +0 -0
  920. /package/lib/module/{buttons → ui-components/buttons}/ghost-button.js.map +0 -0
  921. /package/lib/module/{buttons → ui-components/buttons}/index.js +0 -0
  922. /package/lib/module/{buttons → ui-components/buttons}/index.js.map +0 -0
  923. /package/lib/module/{buttons → ui-components/buttons}/scan-button.js +0 -0
  924. /package/lib/module/{buttons → ui-components/buttons}/scan-button.js.map +0 -0
  925. /package/lib/module/{camera → ui-components/camera}/camera-overlay.js +0 -0
  926. /package/lib/module/{camera → ui-components/camera}/camera-overlay.js.map +0 -0
  927. /package/lib/module/{camera → ui-components/camera}/index.js +0 -0
  928. /package/lib/module/{camera → ui-components/camera}/index.js.map +0 -0
  929. /package/lib/module/{camera → ui-components/camera}/qr-code-scanner.js +0 -0
  930. /package/lib/module/{camera → ui-components/camera}/qr-code-scanner.js.map +0 -0
  931. /package/lib/module/{control → ui-components/control}/checkbox.js +0 -0
  932. /package/lib/module/{control → ui-components/control}/checkbox.js.map +0 -0
  933. /package/lib/module/{control → ui-components/control}/index.js +0 -0
  934. /package/lib/module/{control → ui-components/control}/index.js.map +0 -0
  935. /package/lib/module/{control → ui-components/control}/switch.js +0 -0
  936. /package/lib/module/{control → ui-components/control}/switch.js.map +0 -0
  937. /package/lib/module/{credential → ui-components/credential}/card/credential-details-list-item.js +0 -0
  938. /package/lib/module/{credential → ui-components/credential}/card/credential-details-list-item.js.map +0 -0
  939. /package/lib/module/{credential → ui-components/credential}/credential-carousel-images.js +0 -0
  940. /package/lib/module/{credential → ui-components/credential}/credential-carousel-images.js.map +0 -0
  941. /package/lib/module/{credential → ui-components/credential}/index.js +0 -0
  942. /package/lib/module/{credential → ui-components/credential}/index.js.map +0 -0
  943. /package/lib/module/{credential → ui-components/credential}/selector-status.js +0 -0
  944. /package/lib/module/{credential → ui-components/credential}/selector-status.js.map +0 -0
  945. /package/lib/module/{detail → ui-components/detail}/index.js +0 -0
  946. /package/lib/module/{detail → ui-components/detail}/index.js.map +0 -0
  947. /package/lib/module/{entity → ui-components/entity}/index.js +0 -0
  948. /package/lib/module/{entity → ui-components/entity}/index.js.map +0 -0
  949. /package/lib/module/{header → ui-components/header}/focus-aware-status-bar.js +0 -0
  950. /package/lib/module/{header → ui-components/header}/focus-aware-status-bar.js.map +0 -0
  951. /package/lib/module/{header → ui-components/header}/foldable-header.js +0 -0
  952. /package/lib/module/{header → ui-components/header}/foldable-header.js.map +0 -0
  953. /package/lib/module/{header → ui-components/header}/index.js +0 -0
  954. /package/lib/module/{header → ui-components/header}/index.js.map +0 -0
  955. /package/lib/module/{history → ui-components/history}/history-section-list-item.js +0 -0
  956. /package/lib/module/{history → ui-components/history}/history-section-list-item.js.map +0 -0
  957. /package/lib/module/{history → ui-components/history}/index.js +0 -0
  958. /package/lib/module/{history → ui-components/history}/index.js.map +0 -0
  959. /package/lib/module/{icons → ui-components/icons}/connectivity.js +0 -0
  960. /package/lib/module/{icons → ui-components/icons}/connectivity.js.map +0 -0
  961. /package/lib/module/{icons → ui-components/icons}/credential.js +0 -0
  962. /package/lib/module/{icons → ui-components/icons}/credential.js.map +0 -0
  963. /package/lib/module/{icons → ui-components/icons}/history.js +0 -0
  964. /package/lib/module/{icons → ui-components/icons}/history.js.map +0 -0
  965. /package/lib/module/{icons → ui-components/icons}/icons.js +0 -0
  966. /package/lib/module/{icons → ui-components/icons}/icons.js.map +0 -0
  967. /package/lib/module/{icons → ui-components/icons}/index.js +0 -0
  968. /package/lib/module/{icons → ui-components/icons}/index.js.map +0 -0
  969. /package/lib/module/{icons → ui-components/icons}/input.js +0 -0
  970. /package/lib/module/{icons → ui-components/icons}/input.js.map +0 -0
  971. /package/lib/module/{icons → ui-components/icons}/keypad.js +0 -0
  972. /package/lib/module/{icons → ui-components/icons}/keypad.js.map +0 -0
  973. /package/lib/module/{icons → ui-components/icons}/loader.js +0 -0
  974. /package/lib/module/{icons → ui-components/icons}/loader.js.map +0 -0
  975. /package/lib/module/{icons → ui-components/icons}/nerd-view.js +0 -0
  976. /package/lib/module/{icons → ui-components/icons}/nerd-view.js.map +0 -0
  977. /package/lib/module/{icons → ui-components/icons}/selector.js +0 -0
  978. /package/lib/module/{icons → ui-components/icons}/selector.js.map +0 -0
  979. /package/lib/module/{icons → ui-components/icons}/wallet.js +0 -0
  980. /package/lib/module/{icons → ui-components/icons}/wallet.js.map +0 -0
  981. /package/lib/module/{image → ui-components/image}/image-or-component.js +0 -0
  982. /package/lib/module/{image → ui-components/image}/image-or-component.js.map +0 -0
  983. /package/lib/module/{image → ui-components/image}/index.js +0 -0
  984. /package/lib/module/{image → ui-components/image}/index.js.map +0 -0
  985. /package/lib/module/{input → ui-components/input}/index.js +0 -0
  986. /package/lib/module/{input → ui-components/input}/index.js.map +0 -0
  987. /package/lib/module/{input → ui-components/input}/radio-group.js +0 -0
  988. /package/lib/module/{input → ui-components/input}/radio-group.js.map +0 -0
  989. /package/lib/module/{list → ui-components/list}/index.js +0 -0
  990. /package/lib/module/{list → ui-components/list}/index.js.map +0 -0
  991. /package/lib/module/{list → ui-components/list}/list-section-header.js +0 -0
  992. /package/lib/module/{list → ui-components/list}/list-section-header.js.map +0 -0
  993. /package/lib/module/{list → ui-components/list}/list-title-header.js +0 -0
  994. /package/lib/module/{list → ui-components/list}/list-title-header.js.map +0 -0
  995. /package/lib/module/{loader → ui-components/loader}/index.js +0 -0
  996. /package/lib/module/{loader → ui-components/loader}/index.js.map +0 -0
  997. /package/lib/module/{loader → ui-components/loader}/loading-result.js +0 -0
  998. /package/lib/module/{loader → ui-components/loader}/loading-result.js.map +0 -0
  999. /package/lib/module/{nerd-view → ui-components/nerd-view}/index.js +0 -0
  1000. /package/lib/module/{nerd-view → ui-components/nerd-view}/index.js.map +0 -0
  1001. /package/lib/module/{pin → ui-components/pin}/pins.js +0 -0
  1002. /package/lib/module/{pin → ui-components/pin}/pins.js.map +0 -0
  1003. /package/lib/module/{screens → ui-components/screens}/index.js +0 -0
  1004. /package/lib/module/{screens → ui-components/screens}/index.js.map +0 -0
  1005. /package/lib/module/{searchbar → ui-components/searchbar}/animated-search-bar.js +0 -0
  1006. /package/lib/module/{searchbar → ui-components/searchbar}/animated-search-bar.js.map +0 -0
  1007. /package/lib/module/{searchbar → ui-components/searchbar}/index.js +0 -0
  1008. /package/lib/module/{searchbar → ui-components/searchbar}/index.js.map +0 -0
  1009. /package/lib/module/{settings → ui-components/settings}/button-setting.js +0 -0
  1010. /package/lib/module/{settings → ui-components/settings}/button-setting.js.map +0 -0
  1011. /package/lib/module/{settings → ui-components/settings}/index.js +0 -0
  1012. /package/lib/module/{settings → ui-components/settings}/index.js.map +0 -0
  1013. /package/lib/module/{settings → ui-components/settings}/setting-item-separator.js +0 -0
  1014. /package/lib/module/{settings → ui-components/settings}/setting-item-separator.js.map +0 -0
  1015. /package/lib/module/{settings → ui-components/settings}/setting-item.js +0 -0
  1016. /package/lib/module/{settings → ui-components/settings}/setting-item.js.map +0 -0
  1017. /package/lib/module/{settings → ui-components/settings}/settings-button.js +0 -0
  1018. /package/lib/module/{settings → ui-components/settings}/settings-button.js.map +0 -0
  1019. /package/lib/module/{settings → ui-components/settings}/switch-setting.js +0 -0
  1020. /package/lib/module/{settings → ui-components/settings}/switch-setting.js.map +0 -0
  1021. /package/lib/module/{state → ui-components/state}/error-screen.js +0 -0
  1022. /package/lib/module/{state → ui-components/state}/error-screen.js.map +0 -0
  1023. /package/lib/module/{state → ui-components/state}/index.js +0 -0
  1024. /package/lib/module/{state → ui-components/state}/index.js.map +0 -0
  1025. /package/lib/module/{text → ui-components/text}/base.js +0 -0
  1026. /package/lib/module/{text → ui-components/text}/base.js.map +0 -0
  1027. /package/lib/module/{text → ui-components/text}/font.js +0 -0
  1028. /package/lib/module/{text → ui-components/text}/font.js.map +0 -0
  1029. /package/lib/module/{text → ui-components/text}/index.js +0 -0
  1030. /package/lib/module/{text → ui-components/text}/index.js.map +0 -0
  1031. /package/lib/module/{text → ui-components/text}/typography.js +0 -0
  1032. /package/lib/module/{text → ui-components/text}/typography.js.map +0 -0
  1033. /package/lib/module/{theme → ui-components/theme}/color-scheme-context.js +0 -0
  1034. /package/lib/module/{theme → ui-components/theme}/color-scheme-context.js.map +0 -0
  1035. /package/lib/module/{theme → ui-components/theme}/color-scheme.js +0 -0
  1036. /package/lib/module/{theme → ui-components/theme}/color-scheme.js.map +0 -0
  1037. /package/lib/module/{theme → ui-components/theme}/index.js +0 -0
  1038. /package/lib/module/{theme → ui-components/theme}/index.js.map +0 -0
  1039. /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibility.d.ts +0 -0
  1040. /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.d.ts +0 -0
  1041. /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibilityLanguage.d.ts +0 -0
  1042. /package/lib/typescript/{accessibility → ui-components/accessibility}/index.d.ts +0 -0
  1043. /package/lib/typescript/{accessibility → ui-components/accessibility}/locale/index.d.ts +0 -0
  1044. /package/lib/typescript/{accessibility → ui-components/accessibility}/locale.test.d.ts +0 -0
  1045. /package/lib/typescript/{action-modal → ui-components/action-modal}/ActionModal.d.ts +0 -0
  1046. /package/lib/typescript/{action-modal → ui-components/action-modal}/index.d.ts +0 -0
  1047. /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/activity-indicator.d.ts +0 -0
  1048. /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/index.d.ts +0 -0
  1049. /package/lib/typescript/{blur → ui-components/blur}/blur-view.d.ts +0 -0
  1050. /package/lib/typescript/{blur → ui-components/blur}/index.d.ts +0 -0
  1051. /package/lib/typescript/{buttons → ui-components/buttons}/button.d.ts +0 -0
  1052. /package/lib/typescript/{buttons → ui-components/buttons}/connectivity-button.d.ts +0 -0
  1053. /package/lib/typescript/{buttons → ui-components/buttons}/filter-button.d.ts +0 -0
  1054. /package/lib/typescript/{buttons → ui-components/buttons}/ghost-button.d.ts +0 -0
  1055. /package/lib/typescript/{buttons → ui-components/buttons}/index.d.ts +0 -0
  1056. /package/lib/typescript/{buttons → ui-components/buttons}/scan-button.d.ts +0 -0
  1057. /package/lib/typescript/{camera → ui-components/camera}/camera-overlay.d.ts +0 -0
  1058. /package/lib/typescript/{camera → ui-components/camera}/index.d.ts +0 -0
  1059. /package/lib/typescript/{camera → ui-components/camera}/qr-code-scanner.d.ts +0 -0
  1060. /package/lib/typescript/{control → ui-components/control}/checkbox.d.ts +0 -0
  1061. /package/lib/typescript/{control → ui-components/control}/index.d.ts +0 -0
  1062. /package/lib/typescript/{control → ui-components/control}/switch.d.ts +0 -0
  1063. /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-card.d.ts +0 -0
  1064. /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-list-item.d.ts +0 -0
  1065. /package/lib/typescript/{credential → ui-components/credential}/card/credential-header.d.ts +0 -0
  1066. /package/lib/typescript/{credential → ui-components/credential}/card/credential-image-carousel.d.ts +0 -0
  1067. /package/lib/typescript/{credential → ui-components/credential}/credential-carousel-images.d.ts +0 -0
  1068. /package/lib/typescript/{credential → ui-components/credential}/index.d.ts +0 -0
  1069. /package/lib/typescript/{credential → ui-components/credential}/selector-status.d.ts +0 -0
  1070. /package/lib/typescript/{credential → ui-components/credential}/selector.d.ts +0 -0
  1071. /package/lib/typescript/{detail → ui-components/detail}/detail.d.ts +0 -0
  1072. /package/lib/typescript/{detail → ui-components/detail}/index.d.ts +0 -0
  1073. /package/lib/typescript/{entity → ui-components/entity}/index.d.ts +0 -0
  1074. /package/lib/typescript/{header → ui-components/header}/focus-aware-status-bar.d.ts +0 -0
  1075. /package/lib/typescript/{header → ui-components/header}/foldable-header.d.ts +0 -0
  1076. /package/lib/typescript/{header → ui-components/header}/header.d.ts +0 -0
  1077. /package/lib/typescript/{header → ui-components/header}/index.d.ts +0 -0
  1078. /package/lib/typescript/{header → ui-components/header}/navigation-header.d.ts +0 -0
  1079. /package/lib/typescript/{history → ui-components/history}/data-item.d.ts +0 -0
  1080. /package/lib/typescript/{history → ui-components/history}/history-list-item.d.ts +0 -0
  1081. /package/lib/typescript/{history → ui-components/history}/history-section-header.d.ts +0 -0
  1082. /package/lib/typescript/{history → ui-components/history}/history-section-list-item.d.ts +0 -0
  1083. /package/lib/typescript/{history → ui-components/history}/index.d.ts +0 -0
  1084. /package/lib/typescript/{icons → ui-components/icons}/connectivity.d.ts +0 -0
  1085. /package/lib/typescript/{icons → ui-components/icons}/credential.d.ts +0 -0
  1086. /package/lib/typescript/{icons → ui-components/icons}/entity.d.ts +0 -0
  1087. /package/lib/typescript/{icons → ui-components/icons}/history.d.ts +0 -0
  1088. /package/lib/typescript/{icons → ui-components/icons}/icons.d.ts +0 -0
  1089. /package/lib/typescript/{icons → ui-components/icons}/index.d.ts +0 -0
  1090. /package/lib/typescript/{icons → ui-components/icons}/input.d.ts +0 -0
  1091. /package/lib/typescript/{icons → ui-components/icons}/keypad.d.ts +0 -0
  1092. /package/lib/typescript/{icons → ui-components/icons}/loader.d.ts +0 -0
  1093. /package/lib/typescript/{icons → ui-components/icons}/nerd-view.d.ts +0 -0
  1094. /package/lib/typescript/{icons → ui-components/icons}/selector.d.ts +0 -0
  1095. /package/lib/typescript/{icons → ui-components/icons}/wallet.d.ts +0 -0
  1096. /package/lib/typescript/{image → ui-components/image}/image-or-component.d.ts +0 -0
  1097. /package/lib/typescript/{image → ui-components/image}/index.d.ts +0 -0
  1098. /package/lib/typescript/{input → ui-components/input}/index.d.ts +0 -0
  1099. /package/lib/typescript/{input → ui-components/input}/radio-group.d.ts +0 -0
  1100. /package/lib/typescript/{input → ui-components/input}/selection-input.d.ts +0 -0
  1101. /package/lib/typescript/{input → ui-components/input}/text-input.d.ts +0 -0
  1102. /package/lib/typescript/{list → ui-components/list}/index.d.ts +0 -0
  1103. /package/lib/typescript/{list → ui-components/list}/list-section-header.d.ts +0 -0
  1104. /package/lib/typescript/{list → ui-components/list}/list-title-header.d.ts +0 -0
  1105. /package/lib/typescript/{loader → ui-components/loader}/index.d.ts +0 -0
  1106. /package/lib/typescript/{loader → ui-components/loader}/loader.d.ts +0 -0
  1107. /package/lib/typescript/{loader → ui-components/loader}/loading-result.d.ts +0 -0
  1108. /package/lib/typescript/{nerd-view → ui-components/nerd-view}/index.d.ts +0 -0
  1109. /package/lib/typescript/{nerd-view → ui-components/nerd-view}/nerd-mode-item.d.ts +0 -0
  1110. /package/lib/typescript/{pin → ui-components/pin}/keypad.d.ts +0 -0
  1111. /package/lib/typescript/{pin → ui-components/pin}/pin-code-screen.d.ts +0 -0
  1112. /package/lib/typescript/{pin → ui-components/pin}/pins.d.ts +0 -0
  1113. /package/lib/typescript/{screens → ui-components/screens}/backup-screen.d.ts +0 -0
  1114. /package/lib/typescript/{screens → ui-components/screens}/image-preview-screen.d.ts +0 -0
  1115. /package/lib/typescript/{screens → ui-components/screens}/index.d.ts +0 -0
  1116. /package/lib/typescript/{screens → ui-components/screens}/qr-code-scanner-screen.d.ts +0 -0
  1117. /package/lib/typescript/{screens → ui-components/screens}/scroll-view-screen.d.ts +0 -0
  1118. /package/lib/typescript/{screens → ui-components/screens}/section-list-screen.d.ts +0 -0
  1119. /package/lib/typescript/{searchbar → ui-components/searchbar}/animated-search-bar.d.ts +0 -0
  1120. /package/lib/typescript/{searchbar → ui-components/searchbar}/index.d.ts +0 -0
  1121. /package/lib/typescript/{searchbar → ui-components/searchbar}/search-bar.d.ts +0 -0
  1122. /package/lib/typescript/{settings → ui-components/settings}/button-setting.d.ts +0 -0
  1123. /package/lib/typescript/{settings → ui-components/settings}/index.d.ts +0 -0
  1124. /package/lib/typescript/{settings → ui-components/settings}/setting-item-separator.d.ts +0 -0
  1125. /package/lib/typescript/{settings → ui-components/settings}/setting-item.d.ts +0 -0
  1126. /package/lib/typescript/{settings → ui-components/settings}/settings-button.d.ts +0 -0
  1127. /package/lib/typescript/{settings → ui-components/settings}/switch-setting.d.ts +0 -0
  1128. /package/lib/typescript/{state → ui-components/state}/error-screen.d.ts +0 -0
  1129. /package/lib/typescript/{state → ui-components/state}/index.d.ts +0 -0
  1130. /package/lib/typescript/{text → ui-components/text}/base.d.ts +0 -0
  1131. /package/lib/typescript/{text → ui-components/text}/font.d.ts +0 -0
  1132. /package/lib/typescript/{text → ui-components/text}/index.d.ts +0 -0
  1133. /package/lib/typescript/{theme → ui-components/theme}/color-scheme-context.d.ts +0 -0
  1134. /package/lib/typescript/{theme → ui-components/theme}/color-scheme.d.ts +0 -0
  1135. /package/lib/typescript/{theme → ui-components/theme}/index.d.ts +0 -0
  1136. /package/src/{accessibility → ui-components/accessibility}/accessibility.ts +0 -0
  1137. /package/src/{accessibility → ui-components/accessibility}/accessibilityHistoryWrappers.tsx +0 -0
  1138. /package/src/{accessibility → ui-components/accessibility}/accessibilityLanguage.tsx +0 -0
  1139. /package/src/{accessibility → ui-components/accessibility}/index.ts +0 -0
  1140. /package/src/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
  1141. /package/src/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
  1142. /package/src/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
  1143. /package/src/{accessibility → ui-components/accessibility}/locale/index.ts +0 -0
  1144. /package/src/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
  1145. /package/src/{accessibility → ui-components/accessibility}/locale.test.ts +0 -0
  1146. /package/src/{action-modal → ui-components/action-modal}/ActionModal.stories.tsx +0 -0
  1147. /package/src/{action-modal → ui-components/action-modal}/ActionModal.tsx +0 -0
  1148. /package/src/{action-modal → ui-components/action-modal}/index.ts +0 -0
  1149. /package/src/{activity-indicator → ui-components/activity-indicator}/activity-indicator.stories.tsx +0 -0
  1150. /package/src/{activity-indicator → ui-components/activity-indicator}/activity-indicator.tsx +0 -0
  1151. /package/src/{activity-indicator → ui-components/activity-indicator}/index.ts +0 -0
  1152. /package/src/{blur → ui-components/blur}/index.ts +0 -0
  1153. /package/src/{buttons → ui-components/buttons}/back-button.stories.tsx +0 -0
  1154. /package/src/{buttons → ui-components/buttons}/button.stories.tsx +0 -0
  1155. /package/src/{buttons → ui-components/buttons}/connectivity-button.stories.tsx +0 -0
  1156. /package/src/{buttons → ui-components/buttons}/filter-button.tsx +0 -0
  1157. /package/src/{buttons → ui-components/buttons}/ghost-button.stories.tsx +0 -0
  1158. /package/src/{buttons → ui-components/buttons}/ghost-button.tsx +0 -0
  1159. /package/src/{buttons → ui-components/buttons}/index.ts +0 -0
  1160. /package/src/{buttons → ui-components/buttons}/scan-button.stories.tsx +0 -0
  1161. /package/src/{buttons → ui-components/buttons}/scan-button.tsx +0 -0
  1162. /package/src/{camera → ui-components/camera}/camera-overlay.tsx +0 -0
  1163. /package/src/{camera → ui-components/camera}/index.tsx +0 -0
  1164. /package/src/{camera → ui-components/camera}/qr-code-scanner.tsx +0 -0
  1165. /package/src/{control → ui-components/control}/checkbox.stories.tsx +0 -0
  1166. /package/src/{control → ui-components/control}/checkbox.tsx +0 -0
  1167. /package/src/{control → ui-components/control}/index.ts +0 -0
  1168. /package/src/{control → ui-components/control}/switch.stories.tsx +0 -0
  1169. /package/src/{control → ui-components/control}/switch.tsx +0 -0
  1170. /package/src/{credential → ui-components/credential}/card/credential-details-list-item.tsx +0 -0
  1171. /package/src/{credential → ui-components/credential}/credential-carousel-images.tsx +0 -0
  1172. /package/src/{credential → ui-components/credential}/index.ts +0 -0
  1173. /package/src/{credential → ui-components/credential}/selector-status.ts +0 -0
  1174. /package/src/{credential → ui-components/credential}/selector.stories.tsx +0 -0
  1175. /package/src/{detail → ui-components/detail}/index.tsx +0 -0
  1176. /package/src/{entity → ui-components/entity}/avatar.stories.tsx +0 -0
  1177. /package/src/{entity → ui-components/entity}/entity-cluster.stories.tsx +0 -0
  1178. /package/src/{entity → ui-components/entity}/index.ts +0 -0
  1179. /package/src/{header → ui-components/header}/focus-aware-status-bar.tsx +0 -0
  1180. /package/src/{header → ui-components/header}/foldable-header.tsx +0 -0
  1181. /package/src/{header → ui-components/header}/index.ts +0 -0
  1182. /package/src/{history → ui-components/history}/history-section-list-item.tsx +0 -0
  1183. /package/src/{history → ui-components/history}/index.ts +0 -0
  1184. /package/src/{icons → ui-components/icons}/connectivity.tsx +0 -0
  1185. /package/src/{icons → ui-components/icons}/credential.tsx +0 -0
  1186. /package/src/{icons → ui-components/icons}/history.tsx +0 -0
  1187. /package/src/{icons → ui-components/icons}/icons.tsx +0 -0
  1188. /package/src/{icons → ui-components/icons}/index.ts +0 -0
  1189. /package/src/{icons → ui-components/icons}/input.tsx +0 -0
  1190. /package/src/{icons → ui-components/icons}/keypad.tsx +0 -0
  1191. /package/src/{icons → ui-components/icons}/loader.tsx +0 -0
  1192. /package/src/{icons → ui-components/icons}/nerd-view.tsx +0 -0
  1193. /package/src/{icons → ui-components/icons}/selector.tsx +0 -0
  1194. /package/src/{icons → ui-components/icons}/wallet.tsx +0 -0
  1195. /package/src/{image → ui-components/image}/image-or-component.tsx +0 -0
  1196. /package/src/{image → ui-components/image}/index.tsx +0 -0
  1197. /package/src/{input → ui-components/input}/index.ts +0 -0
  1198. /package/src/{input → ui-components/input}/radio-group.tsx +0 -0
  1199. /package/src/{input → ui-components/input}/selection-input.stories.tsx +0 -0
  1200. /package/src/{list → ui-components/list}/index.ts +0 -0
  1201. /package/src/{list → ui-components/list}/list-section-header.tsx +0 -0
  1202. /package/src/{list → ui-components/list}/list-title-header.tsx +0 -0
  1203. /package/src/{loader → ui-components/loader}/index.ts +0 -0
  1204. /package/src/{loader → ui-components/loader}/loader.stories.tsx +0 -0
  1205. /package/src/{loader → ui-components/loader}/loading-result.stories.tsx +0 -0
  1206. /package/src/{loader → ui-components/loader}/loading-result.tsx +0 -0
  1207. /package/src/{nerd-view → ui-components/nerd-view}/index.ts +0 -0
  1208. /package/src/{pin → ui-components/pin}/pin-code-screen.stories.tsx +0 -0
  1209. /package/src/{pin → ui-components/pin}/pins.tsx +0 -0
  1210. /package/src/{screens → ui-components/screens}/index.ts +0 -0
  1211. /package/src/{searchbar → ui-components/searchbar}/animated-search-bar.tsx +0 -0
  1212. /package/src/{searchbar → ui-components/searchbar}/index.ts +0 -0
  1213. /package/src/{searchbar → ui-components/searchbar}/search-bar.stories.tsx +0 -0
  1214. /package/src/{settings → ui-components/settings}/button-setting.tsx +0 -0
  1215. /package/src/{settings → ui-components/settings}/index.ts +0 -0
  1216. /package/src/{settings → ui-components/settings}/setting-item-separator.tsx +0 -0
  1217. /package/src/{settings → ui-components/settings}/setting-item.tsx +0 -0
  1218. /package/src/{settings → ui-components/settings}/settings-button.tsx +0 -0
  1219. /package/src/{settings → ui-components/settings}/switch-setting.tsx +0 -0
  1220. /package/src/{state → ui-components/state}/error-screen.stories.tsx +0 -0
  1221. /package/src/{state → ui-components/state}/error-screen.tsx +0 -0
  1222. /package/src/{state → ui-components/state}/index.ts +0 -0
  1223. /package/src/{text → ui-components/text}/base.tsx +0 -0
  1224. /package/src/{text → ui-components/text}/font.ts +0 -0
  1225. /package/src/{text → ui-components/text}/index.ts +0 -0
  1226. /package/src/{text → ui-components/text}/typography.tsx +0 -0
  1227. /package/src/{theme → ui-components/theme}/color-scheme-context.tsx +0 -0
  1228. /package/src/{theme → ui-components/theme}/color-scheme.ts +0 -0
  1229. /package/src/{theme → ui-components/theme}/index.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useMemo","useState","Image","StyleSheet","View","concatTestID","TouchableOpacity","BlurView","ImageOrComponent","Typography","useAppColorScheme","CredentialHeader","CarouselComponent","CredentialCardShadow","shadowColor","shadowOffset","height","width","shadowOpacity","shadowRadius","CredentialCardRatio","CredentialCard","_ref","_header$color","cardCarouselImages","cardImage","color","credentialId","header","notice","onCardPress","onHeaderPress","style","testID","colorScheme","tappableHeaderHeight","setTappableHeaderHeight","cardSize","setCardSize","onCardLayoutChange","event","nativeEvent","layout","onHeaderLayoutChange","headerPressHandler","cardPressHandler","noticeIconView","noticeIcon","undefined","isValidElement","NoticeIconComponent","createElement","shouldShowCarousel","onLayout","styles","card","source","imageSource","image","String","backgroundColor","cardButton","onPress","marginTop","imagesToRender","carouselSize","activeOpacity","disabled","_extends","blurStyle","noticeTextWrapper","text","preset","noticeText","create","borderRadius","overflow","position","aspectRatio","top","bottom","columnGap","flexDirection","justifyContent","paddingBottom","paddingHorizontal","paddingTop","marginVertical","flex"],"sources":["credential-card.tsx"],"sourcesContent":["import React, { FC, useCallback, useMemo, useState } from 'react';\nimport { ColorValue, Image, LayoutChangeEvent, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { concatTestID } from '../../../utils/testID';\nimport { TouchableOpacity } from '../../accessibility/accessibilityHistoryWrappers';\nimport BlurView from '../../blur/blur-view';\nimport ImageOrComponent, { ImageOrComponentSource } from '../../image/image-or-component';\nimport Typography from '../../text/typography';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\nimport CredentialHeader, { CredentialHeaderProps } from './credential-header';\nimport CarouselComponent, { CarouselImage } from './credential-image-carousel';\n\nexport const CredentialCardShadow: Pick<ViewStyle, 'shadowColor' | 'shadowOffset' | 'shadowOpacity' | 'shadowRadius'> =\n {\n shadowColor: '#10274226',\n shadowOffset: {\n height: 5,\n width: 0,\n },\n shadowOpacity: 1,\n shadowRadius: 7,\n };\n\nexport const CredentialCardRatio = 18 / 11;\n\nexport type CredentialCardNotice = {\n text: string;\n noticeIcon?: React.ComponentType<any> | React.ReactElement;\n};\n\nexport type CredentialCardProps = {\n cardCarouselImages?: CarouselImage[];\n cardImage?: ImageOrComponentSource;\n color?: ColorValue;\n credentialId?: string;\n header: CredentialHeaderProps;\n notice?: CredentialCardNotice;\n onCardPress?: (credentialId?: string) => void;\n onHeaderPress?: (credentialId?: string) => void;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n};\n\nconst CredentialCard: FC<CredentialCardProps> = ({\n cardCarouselImages = [],\n cardImage,\n color = '#5A69F3',\n credentialId,\n header,\n notice,\n onCardPress,\n onHeaderPress,\n style,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n const [tappableHeaderHeight, setTappableHeaderHeight] = useState<number>();\n const [cardSize, setCardSize] = useState<{ height: number; width: number }>();\n\n const onCardLayoutChange = useCallback((event: LayoutChangeEvent) => {\n const { width, height } = event.nativeEvent.layout;\n setCardSize({ width, height });\n }, []);\n\n const onHeaderLayoutChange = useCallback((event: LayoutChangeEvent) => {\n setTappableHeaderHeight(event.nativeEvent.layout.height);\n }, []);\n\n const headerPressHandler = useCallback(() => {\n onHeaderPress?.(credentialId);\n }, [credentialId, onHeaderPress]);\n\n const cardPressHandler = useCallback(() => {\n onCardPress?.(credentialId);\n }, [credentialId, onCardPress]);\n\n const noticeIconView: React.ReactElement | undefined = useMemo(() => {\n if (!notice?.noticeIcon) {\n return undefined;\n }\n if (React.isValidElement(notice.noticeIcon)) {\n return notice.noticeIcon;\n } else {\n const NoticeIconComponent = notice.noticeIcon as React.ComponentType<any>;\n return <NoticeIconComponent />;\n }\n }, [notice?.noticeIcon]);\n\n const shouldShowCarousel = cardSize?.width && cardSize.height;\n return (\n <View onLayout={onCardLayoutChange} style={[styles.card, style]} testID={testID}>\n {cardImage ? (\n 'imageSource' in cardImage ? (\n <View style={styles.cardImage}>\n <Image testID={concatTestID(testID, 'imageSource')} source={cardImage.imageSource} style={styles.image} />\n </View>\n ) : (\n <ImageOrComponent testID={concatTestID(testID, 'cardImage')} source={cardImage} style={styles.cardImage} />\n )\n ) : (\n <View\n testID={concatTestID(testID, 'cardBackgroundColor', String(color))}\n style={[styles.cardImage, { backgroundColor: color }]}\n />\n )}\n {onCardPress && <TouchableOpacity style={styles.cardButton} onPress={cardPressHandler} />}\n {shouldShowCarousel ? (\n <CarouselComponent\n style={{ marginTop: tappableHeaderHeight ?? 0 }}\n imagesToRender={cardCarouselImages ?? []}\n carouselSize={{\n width: cardSize.width,\n height: cardSize.height - (tappableHeaderHeight ?? 0),\n }}\n testID={concatTestID(testID, 'carousel')}\n />\n ) : null}\n <TouchableOpacity\n onLayout={onHeaderLayoutChange}\n activeOpacity={0.9}\n disabled={!onHeaderPress}\n onPress={headerPressHandler}\n style={styles.header}>\n <CredentialHeader {...header} color={header.color ?? color} testID={concatTestID(testID, 'header')} />\n </TouchableOpacity>\n {notice && (\n <BlurView blurStyle=\"soft\" style={[styles.notice]} testID={concatTestID(testID, 'notice')}>\n {noticeIconView && <View style={styles.noticeIcon}>{noticeIconView}</View>}\n <View style={styles.noticeTextWrapper}>\n <Typography\n color={colorScheme.text}\n preset=\"xs/line-height-small\"\n style={styles.noticeText}\n testID={concatTestID(testID, 'notice.text')}>\n {notice.text}\n </Typography>\n </View>\n </BlurView>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n card: {\n borderRadius: 10,\n overflow: 'hidden',\n },\n cardButton: {\n height: '100%',\n position: 'absolute',\n width: '100%',\n },\n cardImage: {\n aspectRatio: CredentialCardRatio,\n width: '100%',\n },\n header: {\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n image: {\n height: '100%',\n width: '100%',\n },\n notice: {\n bottom: 0,\n columnGap: 6,\n flexDirection: 'row',\n justifyContent: 'flex-start',\n paddingBottom: 6,\n paddingHorizontal: 12,\n paddingTop: 2,\n position: 'absolute',\n width: '100%',\n },\n noticeIcon: {\n marginTop: 4,\n },\n noticeText: {\n marginVertical: 5,\n },\n noticeTextWrapper: {\n flex: 1,\n },\n});\n\nexport default CredentialCard;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAQC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SAAqBC,KAAK,EAAgCC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE3G,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,gBAAgB,QAAQ,kDAAkD;AACnF,OAAOC,QAAQ,MAAM,sBAAsB;AAC3C,OAAOC,g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,EAAE;EACZ,CAAC;EACDf,UAAU,EAAE;IACV7C,MAAM,EAAE,MAAM;IACd6D,QAAQ,EAAE,UAAU;IACpB5D,KAAK,EAAE;EACT,CAAC;EACDQ,SAAS,EAAE;IACTqD,WAAW,EAAE1D,mBAAmB;IAChCH,KAAK,EAAE;EACT,CAAC;EACDW,MAAM,EAAE;IACNiD,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAE,CAAC;IACN9D,KAAK,EAAE;EACT,CAAC;EACDyC,KAAK,EAAE;IACL1C,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE;EACT,CAAC;EACDY,MAAM,EAAE;IACNmD,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,CAAC;IACZC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,aAAa,EAAE,CAAC;IAChBC,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,CAAC;IACbT,QAAQ,EAAE,UAAU;IACpB5D,KAAK,EAAE;EACT,CAAC;EACD8B,UAAU,EAAE;IACVgB,SAAS,EAAE;EACb,CAAC;EACDU,UAAU,EAAE;IACVc,cAAc,EAAE;EAClB,CAAC;EACDjB,iBAAiB,EAAE;IACjBkB,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAenE,cAAc"}
@@ -0,0 +1,189 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
3
+ import { StyleSheet, View } from 'react-native';
4
+ import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
5
+ import { concatTestID } from '../../../utils/testID';
6
+ import { Button, ButtonType } from '../../buttons';
7
+ import { DownIcon, UpIcon } from '../../icons/credential';
8
+ import { useAppColorScheme } from '../../theme/color-scheme-context';
9
+ import CredentialAttributeItem from '../credential-attribute-item';
10
+ import CredentialCard from './credential-card';
11
+ const PREVIEW_ATTRIBUTES_COUNT = 3;
12
+ const CredentialDetailsCard = _ref => {
13
+ var _header$accessory;
14
+ let {
15
+ animate = true,
16
+ attributes,
17
+ card,
18
+ expanded,
19
+ footer,
20
+ onImagePreview,
21
+ onAttributeSelected,
22
+ style,
23
+ showAllButtonLabel,
24
+ testID,
25
+ ...viewProps
26
+ } = _ref;
27
+ const colorScheme = useAppColorScheme();
28
+ const [previewAttributesHeight, setPreviewAttributesHeight] = useState();
29
+ const [fullAttributesHeight, setFullAttributesHeight] = useState();
30
+ const [buttonViewHeight, setButtonViewHeight] = useState();
31
+ const [allAttributesRendered, setAllAttributesRendered] = useState(attributes && attributes.length <= PREVIEW_ATTRIBUTES_COUNT || !showAllButtonLabel);
32
+ const CaretIcon = expanded ? UpIcon : DownIcon;
33
+ const currentHeight = useSharedValue(undefined);
34
+ const previewAttributes = attributes ? attributes.slice(0, PREVIEW_ATTRIBUTES_COUNT) : [];
35
+ const extraAttributes = useMemo(() => attributes ? attributes.slice(PREVIEW_ATTRIBUTES_COUNT) : [], [attributes]);
36
+ useEffect(() => {
37
+ if (!extraAttributes || allAttributesRendered) {
38
+ setButtonViewHeight(0);
39
+ }
40
+ }, [extraAttributes, allAttributesRendered]);
41
+ useEffect(() => {
42
+ if (extraAttributes.length === 0) {
43
+ const viewStyle = StyleSheet.flatten([styles.allAttributesWrapper, footer && styles.allAttributesWrapperWithFooter]);
44
+ const padding = viewStyle.paddingBottom;
45
+ setFullAttributesHeight(padding);
46
+ }
47
+ }, [extraAttributes, footer]);
48
+ useEffect(() => {
49
+ if (previewAttributesHeight === undefined || buttonViewHeight === undefined) {
50
+ return;
51
+ }
52
+ if (allAttributesRendered && fullAttributesHeight === undefined) {
53
+ return;
54
+ }
55
+ const additionalAttributesHeight = fullAttributesHeight !== null && fullAttributesHeight !== void 0 ? fullAttributesHeight : 0;
56
+ const additionalHeight = allAttributesRendered ? additionalAttributesHeight : buttonViewHeight;
57
+ const newHeight = expanded ? previewAttributesHeight + additionalHeight : 0;
58
+ if (currentHeight.value === undefined || !animate) {
59
+ currentHeight.value = newHeight;
60
+ return;
61
+ }
62
+ const duration = !expanded ? 250 : allAttributesRendered ? previewAttributes.length * 50 : extraAttributes.length * 50;
63
+ currentHeight.value = withTiming(newHeight, {
64
+ duration
65
+ });
66
+ }, [allAttributesRendered, buttonViewHeight, currentHeight, animate, expanded, extraAttributes.length, fullAttributesHeight, previewAttributes.length, previewAttributesHeight]);
67
+ const credentialAttributesStyle = useAnimatedStyle(() => {
68
+ if (currentHeight.value === undefined) {
69
+ if (expanded) {
70
+ return {};
71
+ }
72
+ return {
73
+ height: 0
74
+ };
75
+ }
76
+ return {
77
+ height: currentHeight.value
78
+ };
79
+ });
80
+ const onPreviewAttrContentLayout = useCallback(event => {
81
+ setPreviewAttributesHeight(event.nativeEvent.layout.height);
82
+ }, []);
83
+ const onFullAttrContentLayout = useCallback(event => {
84
+ setFullAttributesHeight(event.nativeEvent.layout.height);
85
+ }, []);
86
+ const onButtonViewLayout = useCallback(event => {
87
+ setButtonViewHeight(event.nativeEvent.layout.height);
88
+ }, []);
89
+ const footerView = useMemo(() => {
90
+ if (!footer) {
91
+ return undefined;
92
+ }
93
+ if ( /*#__PURE__*/React.isValidElement(footer)) {
94
+ return footer;
95
+ } else {
96
+ const FooterComponent = footer;
97
+ return /*#__PURE__*/React.createElement(FooterComponent, null);
98
+ }
99
+ }, [footer]);
100
+ const {
101
+ header,
102
+ ...cardProps
103
+ } = card;
104
+ const renderExtraAttributes = allAttributesRendered || previewAttributesHeight !== undefined && currentHeight.value !== undefined;
105
+ return /*#__PURE__*/React.createElement(View, _extends({
106
+ style: [styles.detailsCard, {
107
+ backgroundColor: colorScheme.white
108
+ }, style]
109
+ }, viewProps, {
110
+ testID: concatTestID(card.testID, expanded ? 'expanded' : 'collapsed')
111
+ }), /*#__PURE__*/React.createElement(CredentialCard, _extends({}, cardProps, {
112
+ header: {
113
+ ...header,
114
+ accessory: (_header$accessory = header.accessory) !== null && _header$accessory !== void 0 ? _header$accessory : CaretIcon
115
+ },
116
+ style: [styles.card, cardProps.style]
117
+ })), previewAttributes.length > 0 && /*#__PURE__*/React.createElement(Animated.View, {
118
+ style: [styles.attributesAnimatedWrapper, credentialAttributesStyle]
119
+ }, /*#__PURE__*/React.createElement(View, {
120
+ style: styles.attributesWrapper
121
+ }, /*#__PURE__*/React.createElement(View, {
122
+ onLayout: onPreviewAttrContentLayout,
123
+ style: styles.previewAttributesWrapper
124
+ }, previewAttributes.map((attribute, idx) => /*#__PURE__*/React.createElement(CredentialAttributeItem, _extends({
125
+ key: attribute.id,
126
+ last: !footerView && !extraAttributes.length && idx === previewAttributes.length - 1,
127
+ testID: concatTestID(testID, 'attribute', idx.toString()),
128
+ onImagePreview: onImagePreview,
129
+ onPress: onAttributeSelected
130
+ }, attribute)))), !allAttributesRendered && extraAttributes.length > 0 && /*#__PURE__*/React.createElement(View, {
131
+ style: styles.allAttributesWrapper,
132
+ onLayout: onButtonViewLayout
133
+ }, /*#__PURE__*/React.createElement(Button, {
134
+ onPress: () => setAllAttributesRendered(true),
135
+ type: ButtonType.Secondary,
136
+ testID: concatTestID(testID, 'showAllAttributesButton'),
137
+ title: showAllButtonLabel
138
+ })), renderExtraAttributes && /*#__PURE__*/React.createElement(View, {
139
+ style: [styles.allAttributesWrapper, footerView && styles.allAttributesWrapperWithFooter],
140
+ onLayout: onFullAttrContentLayout
141
+ }, extraAttributes.map((attribute, index, _ref2) => {
142
+ let {
143
+ length
144
+ } = _ref2;
145
+ return /*#__PURE__*/React.createElement(CredentialAttributeItem, _extends({
146
+ key: attribute.id,
147
+ last: !footerView && index === length - 1,
148
+ testID: concatTestID(testID, 'attribute', index.toString()),
149
+ onImagePreview: onImagePreview,
150
+ onPress: onAttributeSelected
151
+ }, attribute));
152
+ })))), footerView ? /*#__PURE__*/React.createElement(View, {
153
+ style: styles.footer
154
+ }, footerView) : null);
155
+ };
156
+ const styles = StyleSheet.create({
157
+ allAttributesWrapper: {
158
+ paddingBottom: 12,
159
+ paddingHorizontal: 4,
160
+ width: '100%'
161
+ },
162
+ allAttributesWrapperWithFooter: {
163
+ paddingBottom: 0
164
+ },
165
+ attributesAnimatedWrapper: {
166
+ overflow: 'hidden'
167
+ },
168
+ attributesWrapper: {
169
+ paddingTop: 7,
170
+ position: 'absolute',
171
+ width: '100%'
172
+ },
173
+ card: {
174
+ borderRadius: 0
175
+ },
176
+ detailsCard: {
177
+ borderRadius: 10,
178
+ overflow: 'hidden'
179
+ },
180
+ footer: {
181
+ marginTop: 12
182
+ },
183
+ previewAttributesWrapper: {
184
+ paddingHorizontal: 4,
185
+ width: '100%'
186
+ }
187
+ });
188
+ export default CredentialDetailsCard;
189
+ //# sourceMappingURL=credential-details-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useEffect","useMemo","useState","StyleSheet","View","Animated","useAnimatedStyle","useSharedValue","withTiming","concatTestID","Button","ButtonType","DownIcon","UpIcon","useAppColorScheme","CredentialAttributeItem","CredentialCard","PREVIEW_ATTRIBUTES_COUNT","CredentialDetailsCard","_ref","_header$accessory","animate","attributes","card","expanded","footer","onImagePreview","onAttributeSelected","style","showAllButtonLabel","testID","viewProps","colorScheme","previewAttributesHeight","setPreviewAttributesHeight","fullAttributesHeight","setFullAttributesHeight","buttonViewHeight","setButtonViewHeight","allAttributesRendered","setAllAttributesRendered","length","CaretIcon","currentHeight","undefined","previewAttributes","slice","extraAttributes","viewStyle","flatten","styles","allAttributesWrapper","allAttributesWrapperWithFooter","padding","paddingBottom","additionalAttributesHeight","additionalHeight","newHeight","value","duration","credentialAttributesStyle","height","onPreviewAttrContentLayout","event","nativeEvent","layout","onFullAttrContentLayout","onButtonViewLayout","footerView","isValidElement","FooterComponent","createElement","header","cardProps","renderExtraAttributes","_extends","detailsCard","backgroundColor","white","accessory","attributesAnimatedWrapper","attributesWrapper","onLayout","previewAttributesWrapper","map","attribute","idx","key","id","last","toString","onPress","type","Secondary","title","index","_ref2","create","paddingHorizontal","width","overflow","paddingTop","position","borderRadius","marginTop"],"sources":["credential-details-card.tsx"],"sourcesContent":["import React, { ComponentType, FC, ReactElement, useCallback, useEffect, useMemo, useState } from 'react';\nimport { ImageSourcePropType, LayoutChangeEvent, StyleSheet, View, ViewProps } from 'react-native';\nimport Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\n\nimport { concatTestID } from '../../../utils/testID';\nimport { Button, ButtonType } from '../../buttons';\nimport { DownIcon, UpIcon } from '../../icons/credential';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\nimport CredentialAttributeItem, { CredentialAttribute } from '../credential-attribute-item';\nimport CredentialCard, { CredentialCardProps } from './credential-card';\n\nexport type CredentialDetailsCardProps = ViewProps & {\n animate?: boolean;\n attributes: CredentialAttribute[] | false;\n card: CredentialCardProps;\n expanded?: boolean;\n footer?: ComponentType<any> | ReactElement;\n onImagePreview?: (name: string, image: ImageSourcePropType) => void;\n onAttributeSelected?: (id: string, selected: boolean) => void;\n showAllButtonLabel?: string;\n};\n\nconst PREVIEW_ATTRIBUTES_COUNT = 3;\n\nconst CredentialDetailsCard: FC<CredentialDetailsCardProps> = ({\n animate = true,\n attributes,\n card,\n expanded,\n footer,\n onImagePreview,\n onAttributeSelected,\n style,\n showAllButtonLabel,\n testID,\n ...viewProps\n}) => {\n const colorScheme = useAppColorScheme();\n const [previewAttributesHeight, setPreviewAttributesHeight] = useState<number>();\n const [fullAttributesHeight, setFullAttributesHeight] = useState<number>();\n const [buttonViewHeight, setButtonViewHeight] = useState<number>();\n\n const [allAttributesRendered, setAllAttributesRendered] = useState<boolean>(\n (attributes && attributes.length <= PREVIEW_ATTRIBUTES_COUNT) || !showAllButtonLabel,\n );\n\n const CaretIcon = expanded ? UpIcon : DownIcon;\n\n const currentHeight = useSharedValue<number | undefined>(undefined);\n\n const previewAttributes = attributes ? attributes.slice(0, PREVIEW_ATTRIBUTES_COUNT) : [];\n const extraAttributes = useMemo(() => (attributes ? attributes.slice(PREVIEW_ATTRIBUTES_COUNT) : []), [attributes]);\n\n useEffect(() => {\n if (!extraAttributes || allAttributesRendered) {\n setButtonViewHeight(0);\n }\n }, [extraAttributes, allAttributesRendered]);\n\n useEffect(() => {\n if (extraAttributes.length === 0) {\n const viewStyle = StyleSheet.flatten([\n styles.allAttributesWrapper,\n footer && styles.allAttributesWrapperWithFooter,\n ]);\n const padding = viewStyle.paddingBottom;\n setFullAttributesHeight(padding);\n }\n }, [extraAttributes, footer]);\n\n useEffect(() => {\n if (previewAttributesHeight === undefined || buttonViewHeight === undefined) {\n return;\n }\n if (allAttributesRendered && fullAttributesHeight === undefined) {\n return;\n }\n\n const additionalAttributesHeight = fullAttributesHeight ?? 0;\n const additionalHeight = allAttributesRendered ? additionalAttributesHeight : buttonViewHeight;\n const newHeight = expanded ? previewAttributesHeight + additionalHeight : 0;\n\n if (currentHeight.value === undefined || !animate) {\n currentHeight.value = newHeight;\n return;\n }\n\n const duration = !expanded\n ? 250\n : allAttributesRendered\n ? previewAttributes.length * 50\n : extraAttributes.length * 50;\n currentHeight.value = withTiming(newHeight, {\n duration,\n });\n }, [\n allAttributesRendered,\n buttonViewHeight,\n currentHeight,\n animate,\n expanded,\n extraAttributes.length,\n fullAttributesHeight,\n previewAttributes.length,\n previewAttributesHeight,\n ]);\n\n const credentialAttributesStyle = useAnimatedStyle(() => {\n if (currentHeight.value === undefined) {\n if (expanded) {\n return {};\n }\n return {\n height: 0,\n };\n }\n return {\n height: currentHeight.value,\n };\n });\n\n const onPreviewAttrContentLayout = useCallback((event: LayoutChangeEvent) => {\n setPreviewAttributesHeight(event.nativeEvent.layout.height);\n }, []);\n\n const onFullAttrContentLayout = useCallback((event: LayoutChangeEvent) => {\n setFullAttributesHeight(event.nativeEvent.layout.height);\n }, []);\n\n const onButtonViewLayout = useCallback((event: LayoutChangeEvent) => {\n setButtonViewHeight(event.nativeEvent.layout.height);\n }, []);\n\n const footerView: ReactElement | undefined = useMemo(() => {\n if (!footer) {\n return undefined;\n }\n if (React.isValidElement(footer)) {\n return footer;\n } else {\n const FooterComponent = footer as React.ComponentType<any>;\n return <FooterComponent />;\n }\n }, [footer]);\n\n const { header, ...cardProps } = card;\n\n const renderExtraAttributes =\n allAttributesRendered || (previewAttributesHeight !== undefined && currentHeight.value !== undefined);\n return (\n <View\n style={[styles.detailsCard, { backgroundColor: colorScheme.white }, style]}\n {...viewProps}\n testID={concatTestID(card.testID, expanded ? 'expanded' : 'collapsed')}>\n <CredentialCard\n {...cardProps}\n header={{ ...header, accessory: header.accessory ?? CaretIcon }}\n style={[styles.card, cardProps.style]}\n />\n {previewAttributes.length > 0 && (\n <Animated.View style={[styles.attributesAnimatedWrapper, credentialAttributesStyle]}>\n <View style={styles.attributesWrapper}>\n <View onLayout={onPreviewAttrContentLayout} style={styles.previewAttributesWrapper}>\n {previewAttributes.map((attribute, idx) => (\n <CredentialAttributeItem\n key={attribute.id}\n last={!footerView && !extraAttributes.length && idx === previewAttributes.length - 1}\n testID={concatTestID(testID, 'attribute', idx.toString())}\n onImagePreview={onImagePreview}\n onPress={onAttributeSelected}\n {...attribute}\n />\n ))}\n </View>\n {!allAttributesRendered && extraAttributes.length > 0 && (\n <View style={styles.allAttributesWrapper} onLayout={onButtonViewLayout}>\n <Button\n onPress={() => setAllAttributesRendered(true)}\n type={ButtonType.Secondary}\n testID={concatTestID(testID, 'showAllAttributesButton')}\n title={showAllButtonLabel!}\n />\n </View>\n )}\n {renderExtraAttributes && (\n <View\n style={[styles.allAttributesWrapper, footerView && styles.allAttributesWrapperWithFooter]}\n onLayout={onFullAttrContentLayout}>\n {extraAttributes.map((attribute, index, { length }) => (\n <CredentialAttributeItem\n key={attribute.id}\n last={!footerView && index === length - 1}\n testID={concatTestID(testID, 'attribute', index.toString())}\n onImagePreview={onImagePreview}\n onPress={onAttributeSelected}\n {...attribute}\n />\n ))}\n </View>\n )}\n </View>\n </Animated.View>\n )}\n {footerView ? <View style={styles.footer}>{footerView}</View> : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n allAttributesWrapper: {\n paddingBottom: 12,\n paddingHorizontal: 4,\n width: '100%',\n },\n allAttributesWrapperWithFooter: {\n paddingBottom: 0,\n },\n attributesAnimatedWrapper: {\n overflow: 'hidden',\n },\n attributesWrapper: {\n paddingTop: 7,\n position: 'absolute',\n width: '100%',\n },\n card: {\n borderRadius: 0,\n },\n detailsCard: {\n borderRadius: 10,\n overflow: 'hidden',\n },\n footer: {\n marginTop: 12,\n },\n previewAttributesWrapper: {\n paddingHorizontal: 4,\n width: '100%',\n },\n});\n\nexport default CredentialDetailsCard;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAqCC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzG,SAAiDC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAClG,OAAOC,QAAQ,IAAIC,gBAAgB,EAAEC,cAAc,EAAEC,UAAU,QAAQ,yBAAyB;AAEhG,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,MAAM,EAAEC,UAAU,QAAQ,eAAe;AAClD,SAASC,QAAQ,EAAEC,MAAM,QAAQ,wBAAwB;AACzD,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,OAAOC,uBAAuB,MAA+B,8BAA8B;AAC3F,OAAOC,cAAc,MAA+B,mBAAmB;AAavE,MAAMC,wBAAwB,GAAG,CAAC;AAElC,MAAMC,qBAAqD,GAAGC,IAAA,IAYxD;EAAA,IAAAC,iBAAA;EAAA,IAZyD;IAC7DC,OAAO,GAAG,IAAI;IACdC,UAAU;IACVC,IAAI;IACJC,QAAQ;IACRC,MAAM;IACNC,cAAc;IACdC,mBAAmB;IACnBC,KAAK;IACLC,kBAAkB;IAClBC,MAAM;IACN,GAAGC;EACL,CAAC,GAAAZ,IAAA;EACC,MAAMa,WAAW,GAAGlB,iBAAiB,EAAE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,UAAU,CAAQ,GAAG,IAAI,CAC/D;AAEX,CAAC;AAED,MAAMlB,MAAM,GAAG/C,UAAU,CAAC8F,MAAM,CAAC;EAC/B9C,oBAAoB,EAAE;IACpBG,aAAa,EAAE,EAAE;IACjB4C,iBAAiB,EAAE,CAAC;IACpBC,KAAK,EAAE;EACT,CAAC;EACD/C,8BAA8B,EAAE;IAC9BE,aAAa,EAAE;EACjB,CAAC;EACD0B,yBAAyB,EAAE;IACzBoB,QAAQ,EAAE;EACZ,CAAC;EACDnB,iBAAiB,EAAE;IACjBoB,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE,UAAU;IACpBH,KAAK,EAAE;EACT,CAAC;EACD5E,IAAI,EAAE;IACJgF,YAAY,EAAE;EAChB,CAAC;EACD3B,WAAW,EAAE;IACX2B,YAAY,EAAE,EAAE;IAChBH,QAAQ,EAAE;EACZ,CAAC;EACD3E,MAAM,EAAE;IACN+E,SAAS,EAAE;EACb,CAAC;EACDrB,wBAAwB,EAAE;IACxBe,iBAAiB,EAAE,CAAC;IACpBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAejF,qBAAqB"}
@@ -0,0 +1,163 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useMemo } from 'react';
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { concatTestID } from '../../../utils/testID';
5
+ import BlurView from '../../blur/blur-view';
6
+ import ImageOrComponent from '../../image/image-or-component';
7
+ import Typography from '../../text/typography';
8
+ import { useAppColorScheme } from '../../theme/color-scheme-context';
9
+ const CredentialHeader = _ref => {
10
+ let {
11
+ accessory,
12
+ blur = true,
13
+ color = '#5A69F3',
14
+ credentialDetailPrimary,
15
+ credentialDetailSecondary,
16
+ credentialDetailTestID,
17
+ credentialDetailErrorColor,
18
+ credentialName,
19
+ icon,
20
+ iconLabelColor = '#FFFFFF',
21
+ statusIcon,
22
+ style,
23
+ testID
24
+ } = _ref;
25
+ const colorScheme = useAppColorScheme();
26
+ const statusIconView = useMemo(() => {
27
+ if (!statusIcon) {
28
+ return undefined;
29
+ }
30
+ if ( /*#__PURE__*/React.isValidElement(statusIcon)) {
31
+ return statusIcon;
32
+ } else {
33
+ const StatusIconComponent = statusIcon;
34
+ return /*#__PURE__*/React.createElement(StatusIconComponent, null);
35
+ }
36
+ }, [statusIcon]);
37
+ const accessoryView = useMemo(() => {
38
+ if (!accessory) {
39
+ return undefined;
40
+ }
41
+ if ( /*#__PURE__*/React.isValidElement(accessory)) {
42
+ return accessory;
43
+ } else {
44
+ const AccessoryComponent = accessory;
45
+ return /*#__PURE__*/React.createElement(AccessoryComponent, null);
46
+ }
47
+ }, [accessory]);
48
+ const DetailText = useMemo(() => {
49
+ const commonProps = {
50
+ color: credentialDetailErrorColor ? colorScheme.error : colorScheme.text,
51
+ ellipsizeMode: 'tail',
52
+ numberOfLines: 1,
53
+ preset: 'xs',
54
+ style: styles.detailText
55
+ };
56
+ return /*#__PURE__*/React.createElement(View, {
57
+ style: styles.detailTextContainer
58
+ }, /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
59
+ testID: credentialDetailTestID !== null && credentialDetailTestID !== void 0 ? credentialDetailTestID : concatTestID(testID, 'primaryDetail')
60
+ }), credentialDetailPrimary), credentialDetailSecondary ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
61
+ style: styles.interpunct
62
+ }), '·'), /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
63
+ testID: concatTestID(testID, 'secondaryDetail')
64
+ }), credentialDetailSecondary)) : null);
65
+ }, [credentialDetailPrimary, credentialDetailSecondary, colorScheme, testID, credentialDetailErrorColor, credentialDetailTestID]);
66
+ return /*#__PURE__*/React.createElement(View, {
67
+ style: [styles.container, {
68
+ backgroundColor: blur ? undefined : colorScheme.white
69
+ }, style],
70
+ testID: testID
71
+ }, blur && /*#__PURE__*/React.createElement(BlurView, {
72
+ blurStyle: "strong",
73
+ style: StyleSheet.absoluteFill
74
+ }), /*#__PURE__*/React.createElement(View, {
75
+ style: [styles.imageContainer, {
76
+ backgroundColor: color
77
+ }]
78
+ }, icon ? /*#__PURE__*/React.createElement(ImageOrComponent, {
79
+ testID: concatTestID(testID, 'logoIcon'),
80
+ source: icon,
81
+ style: styles.image
82
+ }) : /*#__PURE__*/React.createElement(View, {
83
+ testID: concatTestID(testID, 'logoBackgroundColor', String(color))
84
+ }, /*#__PURE__*/React.createElement(View, {
85
+ testID: concatTestID(testID, 'logoTextColor', String(iconLabelColor))
86
+ }, /*#__PURE__*/React.createElement(Typography, {
87
+ testID: concatTestID(testID, 'logoName'),
88
+ color: iconLabelColor,
89
+ preset: "m",
90
+ style: styles.imagePlaceholder
91
+ }, credentialName.substring(0, 1))))), statusIconView && /*#__PURE__*/React.createElement(View, {
92
+ style: styles.statusIconWrapper
93
+ }, statusIconView), /*#__PURE__*/React.createElement(View, {
94
+ style: styles.text
95
+ }, /*#__PURE__*/React.createElement(Typography, {
96
+ testID: concatTestID(testID, 'name'),
97
+ color: colorScheme.text,
98
+ ellipsizeMode: 'tail',
99
+ numberOfLines: 1,
100
+ preset: "regular",
101
+ style: styles.nameText
102
+ }, credentialName), DetailText), accessoryView && /*#__PURE__*/React.createElement(View, {
103
+ style: styles.accessory
104
+ }, accessoryView));
105
+ };
106
+ const styles = StyleSheet.create({
107
+ accessory: {
108
+ alignItems: 'center',
109
+ height: 44,
110
+ justifyContent: 'center',
111
+ width: 44
112
+ },
113
+ container: {
114
+ alignItems: 'center',
115
+ flexDirection: 'row',
116
+ height: 60,
117
+ padding: 8
118
+ },
119
+ detailText: {
120
+ flex: 1,
121
+ opacity: 0.7
122
+ },
123
+ detailTextContainer: {
124
+ flexDirection: 'row',
125
+ marginTop: -1
126
+ },
127
+ image: {
128
+ height: 44,
129
+ width: 44
130
+ },
131
+ imageContainer: {
132
+ alignItems: 'center',
133
+ borderRadius: 5,
134
+ height: 44,
135
+ justifyContent: 'center',
136
+ marginRight: 8,
137
+ overflow: 'hidden',
138
+ width: 44
139
+ },
140
+ imagePlaceholder: {
141
+ paddingLeft: 1,
142
+ paddingTop: 3,
143
+ textTransform: 'uppercase'
144
+ },
145
+ interpunct: {
146
+ marginHorizontal: 12,
147
+ opacity: 0.5
148
+ },
149
+ nameText: {
150
+ marginTop: 2
151
+ },
152
+ statusIconWrapper: {
153
+ bottom: 3,
154
+ left: 36,
155
+ position: 'absolute'
156
+ },
157
+ text: {
158
+ flex: 1,
159
+ justifyContent: 'center'
160
+ }
161
+ });
162
+ export default CredentialHeader;
163
+ //# sourceMappingURL=credential-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","StyleSheet","View","concatTestID","BlurView","ImageOrComponent","Typography","useAppColorScheme","CredentialHeader","_ref","accessory","blur","color","credentialDetailPrimary","credentialDetailSecondary","credentialDetailTestID","credentialDetailErrorColor","credentialName","icon","iconLabelColor","statusIcon","style","testID","colorScheme","statusIconView","undefined","isValidElement","StatusIconComponent","createElement","accessoryView","AccessoryComponent","DetailText","commonProps","error","text","ellipsizeMode","numberOfLines","preset","styles","detailText","detailTextContainer","_extends","Fragment","interpunct","container","backgroundColor","white","blurStyle","absoluteFill","imageContainer","source","image","String","imagePlaceholder","substring","statusIconWrapper","nameText","create","alignItems","height","justifyContent","width","flexDirection","padding","flex","opacity","marginTop","borderRadius","marginRight","overflow","paddingLeft","paddingTop","textTransform","marginHorizontal","bottom","left","position"],"sources":["credential-header.tsx"],"sourcesContent":["import React, { FC, useMemo } from 'react';\nimport { AccessibilityProps, ColorValue, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { concatTestID } from '../../../utils/testID';\nimport BlurView from '../../blur/blur-view';\nimport ImageOrComponent, { ImageOrComponentSource } from '../../image/image-or-component';\nimport Typography, { TypographyProps } from '../../text/typography';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\n\nexport interface CredentialHeaderProps extends AccessibilityProps {\n accessory?: React.ComponentType<any> | React.ReactElement;\n blur?: boolean;\n color?: ColorValue;\n credentialDetailPrimary: string;\n credentialDetailSecondary?: string;\n credentialDetailTestID?: string;\n credentialDetailErrorColor?: boolean;\n credentialName: string;\n icon?: ImageOrComponentSource;\n iconLabelColor?: ColorValue;\n statusIcon?: React.ComponentType<any> | React.ReactElement;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\nconst CredentialHeader: FC<CredentialHeaderProps> = ({\n accessory,\n blur = true,\n color = '#5A69F3',\n credentialDetailPrimary,\n credentialDetailSecondary,\n credentialDetailTestID,\n credentialDetailErrorColor,\n credentialName,\n icon,\n iconLabelColor = '#FFFFFF',\n statusIcon,\n style,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n\n const statusIconView: React.ReactElement | undefined = useMemo(() => {\n if (!statusIcon) {\n return undefined;\n }\n if (React.isValidElement(statusIcon)) {\n return statusIcon;\n } else {\n const StatusIconComponent = statusIcon as React.ComponentType<any>;\n return <StatusIconComponent />;\n }\n }, [statusIcon]);\n\n const accessoryView: React.ReactElement | undefined = useMemo(() => {\n if (!accessory) {\n return undefined;\n }\n if (React.isValidElement(accessory)) {\n return accessory;\n } else {\n const AccessoryComponent = accessory as React.ComponentType<any>;\n return <AccessoryComponent />;\n }\n }, [accessory]);\n\n const DetailText = useMemo(() => {\n const commonProps: TypographyProps = {\n color: credentialDetailErrorColor ? colorScheme.error : colorScheme.text,\n ellipsizeMode: 'tail',\n numberOfLines: 1,\n preset: 'xs',\n style: styles.detailText,\n };\n return (\n <View style={styles.detailTextContainer}>\n <Typography {...commonProps} testID={credentialDetailTestID ?? concatTestID(testID, 'primaryDetail')}>\n {credentialDetailPrimary}\n </Typography>\n {credentialDetailSecondary ? (\n <>\n <Typography {...commonProps} style={styles.interpunct}>\n {'·'}\n </Typography>\n <Typography {...commonProps} testID={concatTestID(testID, 'secondaryDetail')}>\n {credentialDetailSecondary}\n </Typography>\n </>\n ) : null}\n </View>\n );\n }, [\n credentialDetailPrimary,\n credentialDetailSecondary,\n colorScheme,\n testID,\n credentialDetailErrorColor,\n credentialDetailTestID,\n ]);\n\n return (\n <View style={[styles.container, { backgroundColor: blur ? undefined : colorScheme.white }, style]} testID={testID}>\n {blur && <BlurView blurStyle=\"strong\" style={StyleSheet.absoluteFill} />}\n <View style={[styles.imageContainer, { backgroundColor: color }]}>\n {icon ? (\n <ImageOrComponent testID={concatTestID(testID, 'logoIcon')} source={icon} style={styles.image} />\n ) : (\n <View testID={concatTestID(testID, 'logoBackgroundColor', String(color))}>\n <View testID={concatTestID(testID, 'logoTextColor', String(iconLabelColor))}>\n <Typography\n testID={concatTestID(testID, 'logoName')}\n color={iconLabelColor}\n preset=\"m\"\n style={styles.imagePlaceholder}>\n {credentialName.substring(0, 1)}\n </Typography>\n </View>\n </View>\n )}\n </View>\n {statusIconView && <View style={styles.statusIconWrapper}>{statusIconView}</View>}\n <View style={styles.text}>\n <Typography\n testID={concatTestID(testID, 'name')}\n color={colorScheme.text}\n ellipsizeMode={'tail'}\n numberOfLines={1}\n preset=\"regular\"\n style={styles.nameText}>\n {credentialName}\n </Typography>\n {DetailText}\n </View>\n {accessoryView && <View style={styles.accessory}>{accessoryView}</View>}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n accessory: {\n alignItems: 'center',\n height: 44,\n justifyContent: 'center',\n width: 44,\n },\n container: {\n alignItems: 'center',\n flexDirection: 'row',\n height: 60,\n padding: 8,\n },\n detailText: {\n flex: 1,\n opacity: 0.7,\n },\n detailTextContainer: {\n flexDirection: 'row',\n marginTop: -1,\n },\n image: {\n height: 44,\n width: 44,\n },\n imageContainer: {\n alignItems: 'center',\n borderRadius: 5,\n height: 44,\n justifyContent: 'center',\n marginRight: 8,\n overflow: 'hidden',\n width: 44,\n },\n imagePlaceholder: {\n paddingLeft: 1,\n paddingTop: 3,\n textTransform: 'uppercase',\n },\n interpunct: {\n marginHorizontal: 12,\n opacity: 0.5,\n },\n nameText: {\n marginTop: 2,\n },\n statusIconWrapper: {\n bottom: 3,\n left: 36,\n position: 'absolute',\n },\n text: {\n flex: 1,\n justifyContent: 'center',\n },\n});\n\nexport default CredentialHeader;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAQC,OAAO,QAAQ,OAAO;AAC1C,SAAoDC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAErG,SAASC,YAAY,QAAQ,uBAAuB;AACpD,OAAOC,QAAQ,MAAM,sBAAsB;AAC3C,OAAOC,gBAAgB,MAAkC,gCAAgC;AACzF,OAAOC,UAAU,MAA2B,uBAAuB;AACnE,SAASC,iBAAiB,QAAQ,kCAAkC;AAkBpE,MAAMC,gBAA2C,GAAGC,IAAA,IAc9C;EAAA,IAd+C;IACnDC,SAAS;IACTC,IAAI,GAAG,IAAI;IACXC,KAAK,GAAG,SAAS;IACjBC,uBAAuB;IACvBC,yBAAyB;IACzBC,sBAAsB;IACtBC,0BAA0B;IAC1BC,cAAc;IACdC,IAAI;IACJC,cAAc,GAAG,SAAS;IAC1BC,UAAU;IACVC,KAAK;IACLC;EACF,CAAC,GAAAb,IAAA;EACC,MAAMc,WAAW,GAAGhB,iBAAiB,EAAE;EAEvC,MAAMiB,cAA8C,GAAGxB,OAAO,CAAC,MAAM;IACnE,IAAI,CAACoB,UAAU,EAAE;MACf,OAAOK,SAAS;IAClB;IACA,kBAAI1B,KAAK,CAAC2B,cAAc,CAACN,UAAU,CAAC,EAAE;MACpC,OAAOA,UAAU;IACnB,CAAC,MAAM;MACL,MAAMO,mBAAmB,GAAGP,UAAsC;MAClE,oBAAOrB,KAAA,CAAA6B,aAAA,CAACD,mBAAmB,OAAG;IAChC;EACF,CAAC,EAAE,CAACP,UAAU,CAAC,CAAC;EAEhB,MAAMS,aAA6C,GAAG7B,OAAO,CAAC,MAAM;IAClE,IAAI,CAACU,SAAS,EAAE;M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IACVE,KAAK,EAAE;EACT,CAAC;EACDZ,cAAc,EAAE;IACdS,UAAU,EAAE,QAAQ;IACpBS,YAAY,EAAE,CAAC;IACfR,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBQ,WAAW,EAAE,CAAC;IACdC,QAAQ,EAAE,QAAQ;IAClBR,KAAK,EAAE;EACT,CAAC;EACDR,gBAAgB,EAAE;IAChBiB,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB,CAAC;EACD7B,UAAU,EAAE;IACV8B,gBAAgB,EAAE,EAAE;IACpBR,OAAO,EAAE;EACX,CAAC;EACDT,QAAQ,EAAE;IACRU,SAAS,EAAE;EACb,CAAC;EACDX,iBAAiB,EAAE;IACjBmB,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,EAAE;IACRC,QAAQ,EAAE;EACZ,CAAC;EACD1C,IAAI,EAAE;IACJ8B,IAAI,EAAE,CAAC;IACPJ,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAepD,gBAAgB"}
@@ -0,0 +1,113 @@
1
+ import React, { useState } from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+ import Carousel from 'react-native-reanimated-carousel';
4
+ import Svg, { Circle } from 'react-native-svg';
5
+ import { concatTestID } from '../../../utils';
6
+ export let CarouselImageType;
7
+ (function (CarouselImageType) {
8
+ CarouselImageType["Barcode"] = "Barcode";
9
+ CarouselImageType["QrCode"] = "QrCode";
10
+ CarouselImageType["MRZ"] = "MRZ";
11
+ CarouselImageType["Photo"] = "Photo";
12
+ })(CarouselImageType || (CarouselImageType = {}));
13
+ const CarouselComponent = _ref => {
14
+ let {
15
+ carouselSize,
16
+ imagesToRender,
17
+ style,
18
+ testID
19
+ } = _ref;
20
+ const [selectedDot, setSelectedDot] = useState(0);
21
+ if (!carouselSize.width || !carouselSize.height) {
22
+ return null;
23
+ }
24
+ const numberOfSlides = imagesToRender.length;
25
+ if (!numberOfSlides) {
26
+ return null;
27
+ }
28
+ return /*#__PURE__*/React.createElement(View, {
29
+ style: [styles.container, style]
30
+ }, /*#__PURE__*/React.createElement(Carousel, {
31
+ width: carouselSize.width,
32
+ onSnapToItem: setSelectedDot,
33
+ height: carouselSize.height,
34
+ enabled: numberOfSlides >= 2,
35
+ data: imagesToRender,
36
+ testID: testID,
37
+ renderItem: _ref2 => {
38
+ let {
39
+ item: {
40
+ type,
41
+ element
42
+ }
43
+ } = _ref2;
44
+ return /*#__PURE__*/React.createElement(View, {
45
+ style: styles.carouselItem
46
+ }, /*#__PURE__*/React.createElement(View, {
47
+ style: [styles[type]]
48
+ }, element));
49
+ }
50
+ }), numberOfSlides >= 2 ? /*#__PURE__*/React.createElement(View, {
51
+ style: styles.pageDotContainer
52
+ }, imagesToRender.map((_, index) => /*#__PURE__*/React.createElement(Svg, {
53
+ key: index,
54
+ width: "8",
55
+ height: "8",
56
+ viewBox: "0 0 8 8",
57
+ fill: "none"
58
+ }, /*#__PURE__*/React.createElement(Circle, {
59
+ testID: concatTestID(testID, 'dot', index.toString()),
60
+ cx: "4.5",
61
+ cy: "4",
62
+ r: "4",
63
+ fill: "white",
64
+ fillOpacity: selectedDot === index ? 0.8 : 0.2
65
+ })))) : null);
66
+ };
67
+ const styles = StyleSheet.create({
68
+ // eslint-disable-next-line react-native/no-unused-styles
69
+ Barcode: {
70
+ borderRadius: 4,
71
+ height: '50%',
72
+ width: '80%'
73
+ },
74
+ // eslint-disable-next-line react-native/no-unused-styles
75
+ MRZ: {
76
+ height: '50%',
77
+ width: '100%'
78
+ },
79
+ // eslint-disable-next-line react-native/no-unused-styles
80
+ Photo: {
81
+ aspectRatio: 1,
82
+ borderColor: '#FFFFFF',
83
+ borderRadius: 100,
84
+ borderWidth: 2,
85
+ height: '70%',
86
+ overflow: 'hidden'
87
+ },
88
+ // eslint-disable-next-line react-native/no-unused-styles
89
+ QrCode: {
90
+ aspectRatio: 1,
91
+ borderRadius: 4,
92
+ height: '70%'
93
+ },
94
+ carouselItem: {
95
+ alignItems: 'center',
96
+ height: '100%',
97
+ justifyContent: 'center',
98
+ width: '100%'
99
+ },
100
+ container: {
101
+ flex: 1,
102
+ position: 'absolute',
103
+ width: '100%'
104
+ },
105
+ pageDotContainer: {
106
+ bottom: 15,
107
+ columnGap: 8,
108
+ flexDirection: 'row',
109
+ justifyContent: 'center'
110
+ }
111
+ });
112
+ export default CarouselComponent;
113
+ //# sourceMappingURL=credential-image-carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","StyleSheet","View","Carousel","Svg","Circle","concatTestID","CarouselImageType","CarouselComponent","_ref","carouselSize","imagesToRender","style","testID","selectedDot","setSelectedDot","width","height","numberOfSlides","length","createElement","styles","container","onSnapToItem","enabled","data","renderItem","_ref2","item","type","element","carouselItem","pageDotContainer","map","_","index","key","viewBox","fill","toString","cx","cy","r","fillOpacity","create","Barcode","borderRadius","MRZ","Photo","aspectRatio","borderColor","borderWidth","overflow","QrCode","alignItems","justifyContent","flex","position","bottom","columnGap","flexDirection"],"sources":["credential-image-carousel.tsx"],"sourcesContent":["import React, { FC, useState } from 'react';\nimport { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\nimport Carousel from 'react-native-reanimated-carousel';\nimport Svg, { Circle } from 'react-native-svg';\n\nimport { concatTestID } from '../../../utils';\n\nexport enum CarouselImageType {\n Barcode = 'Barcode',\n QrCode = 'QrCode',\n MRZ = 'MRZ',\n Photo = 'Photo',\n}\n\nexport type CarouselImage = {\n type: CarouselImageType;\n element: React.ReactElement;\n};\n\ntype CarouselProps = {\n carouselSize: { width: number; height: number };\n imagesToRender: CarouselImage[];\n style?: StyleProp<ViewStyle>;\n testID?: string;\n};\n\nconst CarouselComponent: FC<CarouselProps> = ({ carouselSize, imagesToRender, style, testID }) => {\n const [selectedDot, setSelectedDot] = useState(0);\n\n if (!carouselSize.width || !carouselSize.height) {\n return null;\n }\n\n const numberOfSlides = imagesToRender.length;\n\n if (!numberOfSlides) {\n return null;\n }\n\n return (\n <View style={[styles.container, style]}>\n <Carousel\n width={carouselSize.width}\n onSnapToItem={setSelectedDot}\n height={carouselSize.height}\n enabled={numberOfSlides >= 2}\n data={imagesToRender}\n testID={testID}\n renderItem={({ item: { type, element } }) => (\n <View style={styles.carouselItem}>\n <View style={[styles[type]]}>{element}</View>\n </View>\n )}\n />\n {numberOfSlides >= 2 ? (\n <View style={styles.pageDotContainer}>\n {imagesToRender.map((_, index) => (\n <Svg key={index} width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" fill=\"none\">\n <Circle\n testID={concatTestID(testID, 'dot', index.toString())}\n cx=\"4.5\"\n cy=\"4\"\n r=\"4\"\n fill=\"white\"\n fillOpacity={selectedDot === index ? 0.8 : 0.2}\n />\n </Svg>\n ))}\n </View>\n ) : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n // eslint-disable-next-line react-native/no-unused-styles\n Barcode: { borderRadius: 4, height: '50%', width: '80%' },\n // eslint-disable-next-line react-native/no-unused-styles\n MRZ: {\n height: '50%',\n width: '100%',\n },\n // eslint-disable-next-line react-native/no-unused-styles\n Photo: {\n aspectRatio: 1,\n borderColor: '#FFFFFF',\n borderRadius: 100,\n borderWidth: 2,\n height: '70%',\n overflow: 'hidden',\n },\n // eslint-disable-next-line react-native/no-unused-styles\n QrCode: { aspectRatio: 1, borderRadius: 4, height: '70%' },\n carouselItem: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n container: {\n flex: 1,\n position: 'absolute',\n width: '100%',\n },\n pageDotContainer: {\n bottom: 15,\n columnGap: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n },\n});\n\nexport default CarouselComponent;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAQC,QAAQ,QAAQ,OAAO;AAC3C,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACrE,OAAOC,QAAQ,MAAM,kCAAkC;AACvD,OAAOC,GAAG,IAAIC,MAAM,QAAQ,kBA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7B,MAAM,EAAE;EAAM,CAAC;EAC1Dc,YAAY,EAAE;IACZuB,UAAU,EAAE,QAAQ;IACpBrC,MAAM,EAAE,MAAM;IACdsC,cAAc,EAAE,QAAQ;IACxBvC,KAAK,EAAE;EACT,CAAC;EACDM,SAAS,EAAE;IACTkC,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,UAAU;IACpBzC,KAAK,EAAE;EACT,CAAC;EACDgB,gBAAgB,EAAE;IAChB0B,MAAM,EAAE,EAAE;IACVC,SAAS,EAAE,CAAC;IACZC,aAAa,EAAE,KAAK;IACpBL,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAe/C,iBAAiB"}
@@ -0,0 +1,11 @@
1
+ import CredentialCard, { CredentialCardNotice, CredentialCardProps, CredentialCardRatio, CredentialCardShadow } from './credential-card';
2
+ import CredentialDetailsCard, { CredentialDetailsCardProps } from './credential-details-card';
3
+ import CredentialDetailsCardListItem, { CredentialDetailsCardListItemProps } from './credential-details-list-item';
4
+ import CredentialHeader, { CredentialHeaderProps } from './credential-header';
5
+ import { CarouselImage, CarouselImageType } from './credential-image-carousel';
6
+ export { CarouselImage, CarouselImageType };
7
+ export { CredentialCard, CredentialCardNotice, CredentialCardProps, CredentialCardRatio, CredentialCardShadow };
8
+ export { CredentialDetailsCard, CredentialDetailsCardProps };
9
+ export { CredentialDetailsCardListItem, CredentialDetailsCardListItemProps };
10
+ export { CredentialHeader, CredentialHeaderProps };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CredentialCard","CredentialCardNotice","CredentialCardProps","CredentialCardRatio","CredentialCardShadow","CredentialDetailsCard","CredentialDetailsCardProps","CredentialDetailsCardListItem","CredentialDetailsCardListItemProps","CredentialHeader","CredentialHeaderProps","CarouselImage","CarouselImageType"],"sources":["index.ts"],"sourcesContent":["import CredentialCard, {\n CredentialCardNotice,\n CredentialCardProps,\n CredentialCardRatio,\n CredentialCardShadow,\n} from './credential-card';\nimport CredentialDetailsCard, { CredentialDetailsCardProps } from './credential-details-card';\nimport CredentialDetailsCardListItem, { CredentialDetailsCardListItemProps } from './credential-details-list-item';\nimport CredentialHeader, { CredentialHeaderProps } from './credential-header';\nimport { CarouselImage, CarouselImageType } from './credential-image-carousel';\n\nexport { CarouselImage, CarouselImageType };\nexport { CredentialCard, CredentialCardNotice, CredentialCardProps, CredentialCardRatio, CredentialCardShadow };\nexport { CredentialDetailsCard, CredentialDetailsCardProps };\nexport { CredentialDetailsCardListItem, CredentialDetailsCardListItemProps };\nexport { CredentialHeader, CredentialHeaderProps };\n"],"mappings":"AAAA,OAAOA,cAAc,IACnBC,oBAAoB,EACpBC,mBAAmB,EACnBC,mBAAmB,EACnBC,oBAAoB,QACf,mBAAmB;AAC1B,OAAOC,qBAAqB,IAAIC,0BAA0B,QAAQ,2BAA2B;AAC7F,OAAOC,6BAA6B,IAAIC,kCAAkC,QAAQ,gCAAgC;AAClH,OAAOC,gBAAgB,IAAIC,qBAAqB,QAAQ,qBAAqB;AAC7E,SAASC,aAAa,EAAEC,iBAAiB,QAAQ,6BAA6B;AAE9E,SAASD,aAAa,EAAEC,iBAAiB;AACzC,SAASZ,cAAc,EAAEC,oBAAoB,EAAEC,mBAAmB,EAAEC,mBAAmB,EAAEC,oBAAoB;AAC7G,SAASC,qBAAqB,EAAEC,0BAA0B;AAC1D,SAASC,6BAA6B,EAAEC,kCAAkC;AAC1E,SAASC,gBAAgB,EAAEC,qBAAqB"}