@procivis/one-react-native-components 0.1.63

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 (767) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +66 -0
  3. package/lib/commonjs/accessibility/accessibility.js +193 -0
  4. package/lib/commonjs/accessibility/accessibility.js.map +1 -0
  5. package/lib/commonjs/accessibility/accessibilityHistory.js +81 -0
  6. package/lib/commonjs/accessibility/accessibilityHistory.js.map +1 -0
  7. package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js +49 -0
  8. package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js.map +1 -0
  9. package/lib/commonjs/accessibility/accessibilityLanguage.js +63 -0
  10. package/lib/commonjs/accessibility/accessibilityLanguage.js.map +1 -0
  11. package/lib/commonjs/accessibility/index.js +129 -0
  12. package/lib/commonjs/accessibility/index.js.map +1 -0
  13. package/lib/commonjs/accessibility/locale/de.json +21 -0
  14. package/lib/commonjs/accessibility/locale/en.json +21 -0
  15. package/lib/commonjs/accessibility/locale/fr.json +21 -0
  16. package/lib/commonjs/accessibility/locale/index.js +21 -0
  17. package/lib/commonjs/accessibility/locale/index.js.map +1 -0
  18. package/lib/commonjs/accessibility/locale/it.json +21 -0
  19. package/lib/commonjs/accessibility/locale.test.js +15 -0
  20. package/lib/commonjs/accessibility/locale.test.js.map +1 -0
  21. package/lib/commonjs/action-modal/ActionModal.js +52 -0
  22. package/lib/commonjs/action-modal/ActionModal.js.map +1 -0
  23. package/lib/commonjs/action-modal/index.js +14 -0
  24. package/lib/commonjs/action-modal/index.js.map +1 -0
  25. package/lib/commonjs/activity-indicator/activity-indicator.js +34 -0
  26. package/lib/commonjs/activity-indicator/activity-indicator.js.map +1 -0
  27. package/lib/commonjs/activity-indicator/index.js +14 -0
  28. package/lib/commonjs/activity-indicator/index.js.map +1 -0
  29. package/lib/commonjs/blur/blur-view.js +76 -0
  30. package/lib/commonjs/blur/blur-view.js.map +1 -0
  31. package/lib/commonjs/blur/index.js +21 -0
  32. package/lib/commonjs/blur/index.js.map +1 -0
  33. package/lib/commonjs/buttons/back-button.js +37 -0
  34. package/lib/commonjs/buttons/back-button.js.map +1 -0
  35. package/lib/commonjs/buttons/button.js +153 -0
  36. package/lib/commonjs/buttons/button.js.map +1 -0
  37. package/lib/commonjs/buttons/connectivity-button.js +82 -0
  38. package/lib/commonjs/buttons/connectivity-button.js.map +1 -0
  39. package/lib/commonjs/buttons/filter-button.js +51 -0
  40. package/lib/commonjs/buttons/filter-button.js.map +1 -0
  41. package/lib/commonjs/buttons/ghost-button.js +62 -0
  42. package/lib/commonjs/buttons/ghost-button.js.map +1 -0
  43. package/lib/commonjs/buttons/index.js +104 -0
  44. package/lib/commonjs/buttons/index.js.map +1 -0
  45. package/lib/commonjs/buttons/scan-button.js +83 -0
  46. package/lib/commonjs/buttons/scan-button.js.map +1 -0
  47. package/lib/commonjs/camera/camera-overlay.js +61 -0
  48. package/lib/commonjs/camera/camera-overlay.js.map +1 -0
  49. package/lib/commonjs/camera/index.js +21 -0
  50. package/lib/commonjs/camera/index.js.map +1 -0
  51. package/lib/commonjs/camera/qr-code-scanner.js +50 -0
  52. package/lib/commonjs/camera/qr-code-scanner.js.map +1 -0
  53. package/lib/commonjs/control/checkbox.js +79 -0
  54. package/lib/commonjs/control/checkbox.js.map +1 -0
  55. package/lib/commonjs/control/index.js +32 -0
  56. package/lib/commonjs/control/index.js.map +1 -0
  57. package/lib/commonjs/control/switch.js +65 -0
  58. package/lib/commonjs/control/switch.js.map +1 -0
  59. package/lib/commonjs/credential/card/credential-card.js +189 -0
  60. package/lib/commonjs/credential/card/credential-card.js.map +1 -0
  61. package/lib/commonjs/credential/card/credential-details-card.js +201 -0
  62. package/lib/commonjs/credential/card/credential-details-card.js.map +1 -0
  63. package/lib/commonjs/credential/card/credential-details-list-item.js +84 -0
  64. package/lib/commonjs/credential/card/credential-details-list-item.js.map +1 -0
  65. package/lib/commonjs/credential/card/credential-header.js +172 -0
  66. package/lib/commonjs/credential/card/credential-header.js.map +1 -0
  67. package/lib/commonjs/credential/card/credential-image-carousel.js +124 -0
  68. package/lib/commonjs/credential/card/credential-image-carousel.js.map +1 -0
  69. package/lib/commonjs/credential/card/index.js +85 -0
  70. package/lib/commonjs/credential/card/index.js.map +1 -0
  71. package/lib/commonjs/credential/credential-attribute-item.js +289 -0
  72. package/lib/commonjs/credential/credential-attribute-item.js.map +1 -0
  73. package/lib/commonjs/credential/credential-carousel-images.js +98 -0
  74. package/lib/commonjs/credential/credential-carousel-images.js.map +1 -0
  75. package/lib/commonjs/credential/index.js +90 -0
  76. package/lib/commonjs/credential/index.js.map +1 -0
  77. package/lib/commonjs/credential/selector-status.js +17 -0
  78. package/lib/commonjs/credential/selector-status.js.map +1 -0
  79. package/lib/commonjs/credential/selector.js +79 -0
  80. package/lib/commonjs/credential/selector.js.map +1 -0
  81. package/lib/commonjs/detail/detail.js +84 -0
  82. package/lib/commonjs/detail/detail.js.map +1 -0
  83. package/lib/commonjs/detail/index.js +14 -0
  84. package/lib/commonjs/detail/index.js.map +1 -0
  85. package/lib/commonjs/entity/avatar.js +96 -0
  86. package/lib/commonjs/entity/avatar.js.map +1 -0
  87. package/lib/commonjs/entity/entity-cluster.js +66 -0
  88. package/lib/commonjs/entity/entity-cluster.js.map +1 -0
  89. package/lib/commonjs/entity/index.js +34 -0
  90. package/lib/commonjs/entity/index.js.map +1 -0
  91. package/lib/commonjs/header/focus-aware-status-bar.js +20 -0
  92. package/lib/commonjs/header/focus-aware-status-bar.js.map +1 -0
  93. package/lib/commonjs/header/foldable-header.js +89 -0
  94. package/lib/commonjs/header/foldable-header.js.map +1 -0
  95. package/lib/commonjs/header/header.js +105 -0
  96. package/lib/commonjs/header/header.js.map +1 -0
  97. package/lib/commonjs/header/index.js +55 -0
  98. package/lib/commonjs/header/index.js.map +1 -0
  99. package/lib/commonjs/header/navigation-header.js +148 -0
  100. package/lib/commonjs/header/navigation-header.js.map +1 -0
  101. package/lib/commonjs/history/data-item.js +70 -0
  102. package/lib/commonjs/history/data-item.js.map +1 -0
  103. package/lib/commonjs/history/history-list-item.js +90 -0
  104. package/lib/commonjs/history/history-list-item.js.map +1 -0
  105. package/lib/commonjs/history/history-section-header.js +49 -0
  106. package/lib/commonjs/history/history-section-header.js.map +1 -0
  107. package/lib/commonjs/history/history-section-list-item.js +47 -0
  108. package/lib/commonjs/history/history-section-list-item.js.map +1 -0
  109. package/lib/commonjs/history/index.js +55 -0
  110. package/lib/commonjs/history/index.js.map +1 -0
  111. package/lib/commonjs/icons/connectivity.js +139 -0
  112. package/lib/commonjs/icons/connectivity.js.map +1 -0
  113. package/lib/commonjs/icons/credential.js +162 -0
  114. package/lib/commonjs/icons/credential.js.map +1 -0
  115. package/lib/commonjs/icons/entity.js +34 -0
  116. package/lib/commonjs/icons/entity.js.map +1 -0
  117. package/lib/commonjs/icons/history.js +408 -0
  118. package/lib/commonjs/icons/history.js.map +1 -0
  119. package/lib/commonjs/icons/icons.js +250 -0
  120. package/lib/commonjs/icons/icons.js.map +1 -0
  121. package/lib/commonjs/icons/index.js +127 -0
  122. package/lib/commonjs/icons/index.js.map +1 -0
  123. package/lib/commonjs/icons/input.js +44 -0
  124. package/lib/commonjs/icons/input.js.map +1 -0
  125. package/lib/commonjs/icons/keypad.js +94 -0
  126. package/lib/commonjs/icons/keypad.js.map +1 -0
  127. package/lib/commonjs/icons/loader.js +180 -0
  128. package/lib/commonjs/icons/loader.js.map +1 -0
  129. package/lib/commonjs/icons/nerd-view.js +123 -0
  130. package/lib/commonjs/icons/nerd-view.js.map +1 -0
  131. package/lib/commonjs/icons/selector.js +56 -0
  132. package/lib/commonjs/icons/selector.js.map +1 -0
  133. package/lib/commonjs/icons/wallet.js +121 -0
  134. package/lib/commonjs/icons/wallet.js.map +1 -0
  135. package/lib/commonjs/image/image-or-component.js +80 -0
  136. package/lib/commonjs/image/image-or-component.js.map +1 -0
  137. package/lib/commonjs/image/index.js +21 -0
  138. package/lib/commonjs/image/index.js.map +1 -0
  139. package/lib/commonjs/index.js +292 -0
  140. package/lib/commonjs/index.js.map +1 -0
  141. package/lib/commonjs/input/index.js +65 -0
  142. package/lib/commonjs/input/index.js.map +1 -0
  143. package/lib/commonjs/input/radio-group.js +95 -0
  144. package/lib/commonjs/input/radio-group.js.map +1 -0
  145. package/lib/commonjs/input/selection-input.js +102 -0
  146. package/lib/commonjs/input/selection-input.js.map +1 -0
  147. package/lib/commonjs/input/text-input.js +195 -0
  148. package/lib/commonjs/input/text-input.js.map +1 -0
  149. package/lib/commonjs/list/index.js +34 -0
  150. package/lib/commonjs/list/index.js.map +1 -0
  151. package/lib/commonjs/list/list-section-header.js +36 -0
  152. package/lib/commonjs/list/list-section-header.js.map +1 -0
  153. package/lib/commonjs/list/list-title-header.js +35 -0
  154. package/lib/commonjs/list/list-title-header.js.map +1 -0
  155. package/lib/commonjs/loader/index.js +40 -0
  156. package/lib/commonjs/loader/index.js.map +1 -0
  157. package/lib/commonjs/loader/loader.js +140 -0
  158. package/lib/commonjs/loader/loader.js.map +1 -0
  159. package/lib/commonjs/loader/loading-result.js +92 -0
  160. package/lib/commonjs/loader/loading-result.js.map +1 -0
  161. package/lib/commonjs/nerd-view/index.js +27 -0
  162. package/lib/commonjs/nerd-view/index.js.map +1 -0
  163. package/lib/commonjs/nerd-view/nerd-mode-item.js +235 -0
  164. package/lib/commonjs/nerd-view/nerd-mode-item.js.map +1 -0
  165. package/lib/commonjs/normalize-color.d.js +2 -0
  166. package/lib/commonjs/normalize-color.d.js.map +1 -0
  167. package/lib/commonjs/pin/index.js +32 -0
  168. package/lib/commonjs/pin/index.js.map +1 -0
  169. package/lib/commonjs/pin/keypad.js +201 -0
  170. package/lib/commonjs/pin/keypad.js.map +1 -0
  171. package/lib/commonjs/pin/pin-code-screen.js +162 -0
  172. package/lib/commonjs/pin/pin-code-screen.js.map +1 -0
  173. package/lib/commonjs/pin/pins.js +54 -0
  174. package/lib/commonjs/pin/pins.js.map +1 -0
  175. package/lib/commonjs/screens/backup-screen.js +87 -0
  176. package/lib/commonjs/screens/backup-screen.js.map +1 -0
  177. package/lib/commonjs/screens/image-preview-screen.js +92 -0
  178. package/lib/commonjs/screens/image-preview-screen.js.map +1 -0
  179. package/lib/commonjs/screens/index.js +98 -0
  180. package/lib/commonjs/screens/index.js.map +1 -0
  181. package/lib/commonjs/screens/nerd-mode-screen.js +142 -0
  182. package/lib/commonjs/screens/nerd-mode-screen.js.map +1 -0
  183. package/lib/commonjs/screens/qr-code-scanner-screen.js +120 -0
  184. package/lib/commonjs/screens/qr-code-scanner-screen.js.map +1 -0
  185. package/lib/commonjs/screens/scroll-view-screen.js +94 -0
  186. package/lib/commonjs/screens/scroll-view-screen.js.map +1 -0
  187. package/lib/commonjs/screens/section-list-screen.js +67 -0
  188. package/lib/commonjs/screens/section-list-screen.js.map +1 -0
  189. package/lib/commonjs/searchbar/animated-search-bar.js +88 -0
  190. package/lib/commonjs/searchbar/animated-search-bar.js.map +1 -0
  191. package/lib/commonjs/searchbar/index.js +34 -0
  192. package/lib/commonjs/searchbar/index.js.map +1 -0
  193. package/lib/commonjs/searchbar/search-bar.js +99 -0
  194. package/lib/commonjs/searchbar/search-bar.js.map +1 -0
  195. package/lib/commonjs/settings/button-setting.js +67 -0
  196. package/lib/commonjs/settings/button-setting.js.map +1 -0
  197. package/lib/commonjs/settings/index.js +73 -0
  198. package/lib/commonjs/settings/index.js.map +1 -0
  199. package/lib/commonjs/settings/setting-item-separator.js +40 -0
  200. package/lib/commonjs/settings/setting-item-separator.js.map +1 -0
  201. package/lib/commonjs/settings/setting-item.js +79 -0
  202. package/lib/commonjs/settings/setting-item.js.map +1 -0
  203. package/lib/commonjs/settings/settings-button.js +35 -0
  204. package/lib/commonjs/settings/settings-button.js.map +1 -0
  205. package/lib/commonjs/settings/switch-setting.js +35 -0
  206. package/lib/commonjs/settings/switch-setting.js.map +1 -0
  207. package/lib/commonjs/state/error-screen.js +71 -0
  208. package/lib/commonjs/state/error-screen.js.map +1 -0
  209. package/lib/commonjs/state/index.js +27 -0
  210. package/lib/commonjs/state/index.js.map +1 -0
  211. package/lib/commonjs/text/base.js +40 -0
  212. package/lib/commonjs/text/base.js.map +1 -0
  213. package/lib/commonjs/text/font.js +64 -0
  214. package/lib/commonjs/text/font.js.map +1 -0
  215. package/lib/commonjs/text/index.js +21 -0
  216. package/lib/commonjs/text/index.js.map +1 -0
  217. package/lib/commonjs/text/typography.js +119 -0
  218. package/lib/commonjs/text/typography.js.map +1 -0
  219. package/lib/commonjs/theme/color-scheme-context.js +52 -0
  220. package/lib/commonjs/theme/color-scheme-context.js.map +1 -0
  221. package/lib/commonjs/theme/color-scheme.js +2 -0
  222. package/lib/commonjs/theme/color-scheme.js.map +1 -0
  223. package/lib/commonjs/theme/index.js +19 -0
  224. package/lib/commonjs/theme/index.js.map +1 -0
  225. package/lib/commonjs/utils/color.js +34 -0
  226. package/lib/commonjs/utils/color.js.map +1 -0
  227. package/lib/commonjs/utils/contrasting-status-bar.js +30 -0
  228. package/lib/commonjs/utils/contrasting-status-bar.js.map +1 -0
  229. package/lib/commonjs/utils/date.js +57 -0
  230. package/lib/commonjs/utils/date.js.map +1 -0
  231. package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js +21 -0
  232. package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js.map +1 -0
  233. package/lib/commonjs/utils/hooks/index.js +20 -0
  234. package/lib/commonjs/utils/hooks/index.js.map +1 -0
  235. package/lib/commonjs/utils/hooks/list/list-content-inset.js +31 -0
  236. package/lib/commonjs/utils/hooks/list/list-content-inset.js.map +1 -0
  237. package/lib/commonjs/utils/index.js +83 -0
  238. package/lib/commonjs/utils/index.js.map +1 -0
  239. package/lib/commonjs/utils/navigation.js +51 -0
  240. package/lib/commonjs/utils/navigation.js.map +1 -0
  241. package/lib/commonjs/utils/ref.js +42 -0
  242. package/lib/commonjs/utils/ref.js.map +1 -0
  243. package/lib/commonjs/utils/testID.js +18 -0
  244. package/lib/commonjs/utils/testID.js.map +1 -0
  245. package/lib/commonjs/utils/testID.test.js +21 -0
  246. package/lib/commonjs/utils/testID.test.js.map +1 -0
  247. package/lib/commonjs/utils/useMemoAsync.js +26 -0
  248. package/lib/commonjs/utils/useMemoAsync.js.map +1 -0
  249. package/lib/module/accessibility/accessibility.js +185 -0
  250. package/lib/module/accessibility/accessibility.js.map +1 -0
  251. package/lib/module/accessibility/accessibilityHistory.js +71 -0
  252. package/lib/module/accessibility/accessibilityHistory.js.map +1 -0
  253. package/lib/module/accessibility/accessibilityHistoryWrappers.js +38 -0
  254. package/lib/module/accessibility/accessibilityHistoryWrappers.js.map +1 -0
  255. package/lib/module/accessibility/accessibilityLanguage.js +53 -0
  256. package/lib/module/accessibility/accessibilityLanguage.js.map +1 -0
  257. package/lib/module/accessibility/index.js +8 -0
  258. package/lib/module/accessibility/index.js.map +1 -0
  259. package/lib/module/accessibility/locale/de.json +21 -0
  260. package/lib/module/accessibility/locale/en.json +21 -0
  261. package/lib/module/accessibility/locale/fr.json +21 -0
  262. package/lib/module/accessibility/locale/index.js +12 -0
  263. package/lib/module/accessibility/locale/index.js.map +1 -0
  264. package/lib/module/accessibility/locale/it.json +21 -0
  265. package/lib/module/accessibility/locale.test.js +13 -0
  266. package/lib/module/accessibility/locale.test.js.map +1 -0
  267. package/lib/module/action-modal/ActionModal.js +44 -0
  268. package/lib/module/action-modal/ActionModal.js.map +1 -0
  269. package/lib/module/action-modal/index.js +3 -0
  270. package/lib/module/action-modal/index.js.map +1 -0
  271. package/lib/module/activity-indicator/activity-indicator.js +24 -0
  272. package/lib/module/activity-indicator/activity-indicator.js.map +1 -0
  273. package/lib/module/activity-indicator/index.js +3 -0
  274. package/lib/module/activity-indicator/index.js.map +1 -0
  275. package/lib/module/blur/blur-view.js +67 -0
  276. package/lib/module/blur/blur-view.js.map +1 -0
  277. package/lib/module/blur/index.js +3 -0
  278. package/lib/module/blur/index.js.map +1 -0
  279. package/lib/module/buttons/back-button.js +28 -0
  280. package/lib/module/buttons/back-button.js.map +1 -0
  281. package/lib/module/buttons/button.js +143 -0
  282. package/lib/module/buttons/button.js.map +1 -0
  283. package/lib/module/buttons/connectivity-button.js +73 -0
  284. package/lib/module/buttons/connectivity-button.js.map +1 -0
  285. package/lib/module/buttons/filter-button.js +43 -0
  286. package/lib/module/buttons/filter-button.js.map +1 -0
  287. package/lib/module/buttons/ghost-button.js +53 -0
  288. package/lib/module/buttons/ghost-button.js.map +1 -0
  289. package/lib/module/buttons/index.js +8 -0
  290. package/lib/module/buttons/index.js.map +1 -0
  291. package/lib/module/buttons/scan-button.js +75 -0
  292. package/lib/module/buttons/scan-button.js.map +1 -0
  293. package/lib/module/camera/camera-overlay.js +51 -0
  294. package/lib/module/camera/camera-overlay.js.map +1 -0
  295. package/lib/module/camera/index.js +3 -0
  296. package/lib/module/camera/index.js.map +1 -0
  297. package/lib/module/camera/qr-code-scanner.js +40 -0
  298. package/lib/module/camera/qr-code-scanner.js.map +1 -0
  299. package/lib/module/control/checkbox.js +70 -0
  300. package/lib/module/control/checkbox.js.map +1 -0
  301. package/lib/module/control/index.js +4 -0
  302. package/lib/module/control/index.js.map +1 -0
  303. package/lib/module/control/switch.js +56 -0
  304. package/lib/module/control/switch.js.map +1 -0
  305. package/lib/module/credential/card/credential-card.js +177 -0
  306. package/lib/module/credential/card/credential-card.js.map +1 -0
  307. package/lib/module/credential/card/credential-details-card.js +191 -0
  308. package/lib/module/credential/card/credential-details-card.js.map +1 -0
  309. package/lib/module/credential/card/credential-details-list-item.js +74 -0
  310. package/lib/module/credential/card/credential-details-list-item.js.map +1 -0
  311. package/lib/module/credential/card/credential-header.js +162 -0
  312. package/lib/module/credential/card/credential-header.js.map +1 -0
  313. package/lib/module/credential/card/credential-image-carousel.js +113 -0
  314. package/lib/module/credential/card/credential-image-carousel.js.map +1 -0
  315. package/lib/module/credential/card/index.js +11 -0
  316. package/lib/module/credential/card/index.js.map +1 -0
  317. package/lib/module/credential/credential-attribute-item.js +279 -0
  318. package/lib/module/credential/credential-attribute-item.js.map +1 -0
  319. package/lib/module/credential/credential-carousel-images.js +86 -0
  320. package/lib/module/credential/credential-carousel-images.js.map +1 -0
  321. package/lib/module/credential/index.js +9 -0
  322. package/lib/module/credential/index.js.map +1 -0
  323. package/lib/module/credential/selector-status.js +10 -0
  324. package/lib/module/credential/selector-status.js.map +1 -0
  325. package/lib/module/credential/selector.js +70 -0
  326. package/lib/module/credential/selector.js.map +1 -0
  327. package/lib/module/detail/detail.js +75 -0
  328. package/lib/module/detail/detail.js.map +1 -0
  329. package/lib/module/detail/index.js +3 -0
  330. package/lib/module/detail/index.js.map +1 -0
  331. package/lib/module/entity/avatar.js +86 -0
  332. package/lib/module/entity/avatar.js.map +1 -0
  333. package/lib/module/entity/entity-cluster.js +56 -0
  334. package/lib/module/entity/entity-cluster.js.map +1 -0
  335. package/lib/module/entity/index.js +5 -0
  336. package/lib/module/entity/index.js.map +1 -0
  337. package/lib/module/header/focus-aware-status-bar.js +12 -0
  338. package/lib/module/header/focus-aware-status-bar.js.map +1 -0
  339. package/lib/module/header/foldable-header.js +79 -0
  340. package/lib/module/header/foldable-header.js.map +1 -0
  341. package/lib/module/header/header.js +97 -0
  342. package/lib/module/header/header.js.map +1 -0
  343. package/lib/module/header/index.js +9 -0
  344. package/lib/module/header/index.js.map +1 -0
  345. package/lib/module/header/navigation-header.js +138 -0
  346. package/lib/module/header/navigation-header.js.map +1 -0
  347. package/lib/module/history/data-item.js +60 -0
  348. package/lib/module/history/data-item.js.map +1 -0
  349. package/lib/module/history/history-list-item.js +80 -0
  350. package/lib/module/history/history-list-item.js.map +1 -0
  351. package/lib/module/history/history-section-header.js +42 -0
  352. package/lib/module/history/history-section-header.js.map +1 -0
  353. package/lib/module/history/history-section-list-item.js +43 -0
  354. package/lib/module/history/history-section-list-item.js.map +1 -0
  355. package/lib/module/history/index.js +9 -0
  356. package/lib/module/history/index.js.map +1 -0
  357. package/lib/module/icons/connectivity.js +125 -0
  358. package/lib/module/icons/connectivity.js.map +1 -0
  359. package/lib/module/icons/credential.js +147 -0
  360. package/lib/module/icons/credential.js.map +1 -0
  361. package/lib/module/icons/entity.js +25 -0
  362. package/lib/module/icons/entity.js.map +1 -0
  363. package/lib/module/icons/history.js +391 -0
  364. package/lib/module/icons/history.js.map +1 -0
  365. package/lib/module/icons/icons.js +231 -0
  366. package/lib/module/icons/icons.js.map +1 -0
  367. package/lib/module/icons/index.js +12 -0
  368. package/lib/module/icons/index.js.map +1 -0
  369. package/lib/module/icons/input.js +33 -0
  370. package/lib/module/icons/input.js.map +1 -0
  371. package/lib/module/icons/keypad.js +81 -0
  372. package/lib/module/icons/keypad.js.map +1 -0
  373. package/lib/module/icons/loader.js +168 -0
  374. package/lib/module/icons/loader.js.map +1 -0
  375. package/lib/module/icons/nerd-view.js +110 -0
  376. package/lib/module/icons/nerd-view.js.map +1 -0
  377. package/lib/module/icons/selector.js +45 -0
  378. package/lib/module/icons/selector.js.map +1 -0
  379. package/lib/module/icons/wallet.js +111 -0
  380. package/lib/module/icons/wallet.js.map +1 -0
  381. package/lib/module/image/image-or-component.js +71 -0
  382. package/lib/module/image/image-or-component.js.map +1 -0
  383. package/lib/module/image/index.js +3 -0
  384. package/lib/module/image/index.js.map +1 -0
  385. package/lib/module/index.js +27 -0
  386. package/lib/module/index.js.map +1 -0
  387. package/lib/module/input/index.js +7 -0
  388. package/lib/module/input/index.js.map +1 -0
  389. package/lib/module/input/radio-group.js +87 -0
  390. package/lib/module/input/radio-group.js.map +1 -0
  391. package/lib/module/input/selection-input.js +92 -0
  392. package/lib/module/input/selection-input.js.map +1 -0
  393. package/lib/module/input/text-input.js +185 -0
  394. package/lib/module/input/text-input.js.map +1 -0
  395. package/lib/module/list/index.js +5 -0
  396. package/lib/module/list/index.js.map +1 -0
  397. package/lib/module/list/list-section-header.js +28 -0
  398. package/lib/module/list/list-section-header.js.map +1 -0
  399. package/lib/module/list/list-title-header.js +27 -0
  400. package/lib/module/list/list-title-header.js.map +1 -0
  401. package/lib/module/loader/index.js +5 -0
  402. package/lib/module/loader/index.js.map +1 -0
  403. package/lib/module/loader/loader.js +130 -0
  404. package/lib/module/loader/loader.js.map +1 -0
  405. package/lib/module/loader/loading-result.js +84 -0
  406. package/lib/module/loader/loading-result.js.map +1 -0
  407. package/lib/module/nerd-view/index.js +3 -0
  408. package/lib/module/nerd-view/index.js.map +1 -0
  409. package/lib/module/nerd-view/nerd-mode-item.js +224 -0
  410. package/lib/module/nerd-view/nerd-mode-item.js.map +1 -0
  411. package/lib/module/normalize-color.d.js +2 -0
  412. package/lib/module/normalize-color.d.js.map +1 -0
  413. package/lib/module/pin/index.js +4 -0
  414. package/lib/module/pin/index.js.map +1 -0
  415. package/lib/module/pin/keypad.js +191 -0
  416. package/lib/module/pin/keypad.js.map +1 -0
  417. package/lib/module/pin/pin-code-screen.js +152 -0
  418. package/lib/module/pin/pin-code-screen.js.map +1 -0
  419. package/lib/module/pin/pins.js +46 -0
  420. package/lib/module/pin/pins.js.map +1 -0
  421. package/lib/module/screens/backup-screen.js +78 -0
  422. package/lib/module/screens/backup-screen.js.map +1 -0
  423. package/lib/module/screens/image-preview-screen.js +83 -0
  424. package/lib/module/screens/image-preview-screen.js.map +1 -0
  425. package/lib/module/screens/index.js +13 -0
  426. package/lib/module/screens/index.js.map +1 -0
  427. package/lib/module/screens/nerd-mode-screen.js +132 -0
  428. package/lib/module/screens/nerd-mode-screen.js.map +1 -0
  429. package/lib/module/screens/qr-code-scanner-screen.js +110 -0
  430. package/lib/module/screens/qr-code-scanner-screen.js.map +1 -0
  431. package/lib/module/screens/scroll-view-screen.js +86 -0
  432. package/lib/module/screens/scroll-view-screen.js.map +1 -0
  433. package/lib/module/screens/section-list-screen.js +59 -0
  434. package/lib/module/screens/section-list-screen.js.map +1 -0
  435. package/lib/module/searchbar/animated-search-bar.js +78 -0
  436. package/lib/module/searchbar/animated-search-bar.js.map +1 -0
  437. package/lib/module/searchbar/index.js +5 -0
  438. package/lib/module/searchbar/index.js.map +1 -0
  439. package/lib/module/searchbar/search-bar.js +89 -0
  440. package/lib/module/searchbar/search-bar.js.map +1 -0
  441. package/lib/module/settings/button-setting.js +57 -0
  442. package/lib/module/settings/button-setting.js.map +1 -0
  443. package/lib/module/settings/index.js +11 -0
  444. package/lib/module/settings/index.js.map +1 -0
  445. package/lib/module/settings/setting-item-separator.js +32 -0
  446. package/lib/module/settings/setting-item-separator.js.map +1 -0
  447. package/lib/module/settings/setting-item.js +69 -0
  448. package/lib/module/settings/setting-item.js.map +1 -0
  449. package/lib/module/settings/settings-button.js +27 -0
  450. package/lib/module/settings/settings-button.js.map +1 -0
  451. package/lib/module/settings/switch-setting.js +27 -0
  452. package/lib/module/settings/switch-setting.js.map +1 -0
  453. package/lib/module/state/error-screen.js +63 -0
  454. package/lib/module/state/error-screen.js.map +1 -0
  455. package/lib/module/state/index.js +3 -0
  456. package/lib/module/state/index.js.map +1 -0
  457. package/lib/module/text/base.js +31 -0
  458. package/lib/module/text/base.js.map +1 -0
  459. package/lib/module/text/font.js +56 -0
  460. package/lib/module/text/font.js.map +1 -0
  461. package/lib/module/text/index.js +3 -0
  462. package/lib/module/text/index.js.map +1 -0
  463. package/lib/module/text/typography.js +111 -0
  464. package/lib/module/text/typography.js.map +1 -0
  465. package/lib/module/theme/color-scheme-context.js +44 -0
  466. package/lib/module/theme/color-scheme-context.js.map +1 -0
  467. package/lib/module/theme/color-scheme.js +2 -0
  468. package/lib/module/theme/color-scheme.js.map +1 -0
  469. package/lib/module/theme/index.js +3 -0
  470. package/lib/module/theme/index.js.map +1 -0
  471. package/lib/module/utils/color.js +23 -0
  472. package/lib/module/utils/color.js.map +1 -0
  473. package/lib/module/utils/contrasting-status-bar.js +21 -0
  474. package/lib/module/utils/contrasting-status-bar.js.map +1 -0
  475. package/lib/module/utils/date.js +51 -0
  476. package/lib/module/utils/date.js.map +1 -0
  477. package/lib/module/utils/hooks/header/on-scroll-header-state.js +14 -0
  478. package/lib/module/utils/hooks/header/on-scroll-header-state.js.map +1 -0
  479. package/lib/module/utils/hooks/index.js +5 -0
  480. package/lib/module/utils/hooks/index.js.map +1 -0
  481. package/lib/module/utils/hooks/list/list-content-inset.js +24 -0
  482. package/lib/module/utils/hooks/list/list-content-inset.js.map +1 -0
  483. package/lib/module/utils/index.js +9 -0
  484. package/lib/module/utils/index.js.map +1 -0
  485. package/lib/module/utils/navigation.js +45 -0
  486. package/lib/module/utils/navigation.js.map +1 -0
  487. package/lib/module/utils/ref.js +35 -0
  488. package/lib/module/utils/ref.js.map +1 -0
  489. package/lib/module/utils/testID.js +12 -0
  490. package/lib/module/utils/testID.js.map +1 -0
  491. package/lib/module/utils/testID.test.js +19 -0
  492. package/lib/module/utils/testID.test.js.map +1 -0
  493. package/lib/module/utils/useMemoAsync.js +20 -0
  494. package/lib/module/utils/useMemoAsync.js.map +1 -0
  495. package/lib/typescript/accessibility/accessibility.d.ts +55 -0
  496. package/lib/typescript/accessibility/accessibilityHistory.d.ts +13 -0
  497. package/lib/typescript/accessibility/accessibilityHistoryWrappers.d.ts +18 -0
  498. package/lib/typescript/accessibility/accessibilityLanguage.d.ts +20 -0
  499. package/lib/typescript/accessibility/index.d.ts +6 -0
  500. package/lib/typescript/accessibility/locale/index.d.ts +90 -0
  501. package/lib/typescript/accessibility/locale.test.d.ts +1 -0
  502. package/lib/typescript/action-modal/ActionModal.d.ts +10 -0
  503. package/lib/typescript/action-modal/index.d.ts +2 -0
  504. package/lib/typescript/activity-indicator/activity-indicator.d.ts +7 -0
  505. package/lib/typescript/activity-indicator/index.d.ts +2 -0
  506. package/lib/typescript/blur/blur-view.d.ts +10 -0
  507. package/lib/typescript/blur/index.d.ts +2 -0
  508. package/lib/typescript/buttons/back-button.d.ts +9 -0
  509. package/lib/typescript/buttons/button.d.ts +22 -0
  510. package/lib/typescript/buttons/connectivity-button.d.ts +17 -0
  511. package/lib/typescript/buttons/filter-button.d.ts +7 -0
  512. package/lib/typescript/buttons/ghost-button.d.ts +11 -0
  513. package/lib/typescript/buttons/index.d.ts +7 -0
  514. package/lib/typescript/buttons/scan-button.d.ts +5 -0
  515. package/lib/typescript/camera/camera-overlay.d.ts +7 -0
  516. package/lib/typescript/camera/index.d.ts +2 -0
  517. package/lib/typescript/camera/qr-code-scanner.d.ts +11 -0
  518. package/lib/typescript/control/checkbox.d.ts +9 -0
  519. package/lib/typescript/control/index.d.ts +3 -0
  520. package/lib/typescript/control/switch.d.ts +7 -0
  521. package/lib/typescript/credential/card/credential-card.d.ts +22 -0
  522. package/lib/typescript/credential/card/credential-details-card.d.ts +16 -0
  523. package/lib/typescript/credential/card/credential-details-list-item.d.ts +9 -0
  524. package/lib/typescript/credential/card/credential-header.d.ts +20 -0
  525. package/lib/typescript/credential/card/credential-image-carousel.d.ts +23 -0
  526. package/lib/typescript/credential/card/index.d.ts +10 -0
  527. package/lib/typescript/credential/credential-attribute-item.d.ts +48 -0
  528. package/lib/typescript/credential/credential-carousel-images.d.ts +19 -0
  529. package/lib/typescript/credential/index.d.ts +8 -0
  530. package/lib/typescript/credential/selector-status.d.ts +8 -0
  531. package/lib/typescript/credential/selector.d.ts +15 -0
  532. package/lib/typescript/detail/detail.d.ts +18 -0
  533. package/lib/typescript/detail/index.d.ts +2 -0
  534. package/lib/typescript/entity/avatar.d.ts +10 -0
  535. package/lib/typescript/entity/entity-cluster.d.ts +12 -0
  536. package/lib/typescript/entity/index.d.ts +4 -0
  537. package/lib/typescript/header/focus-aware-status-bar.d.ts +4 -0
  538. package/lib/typescript/header/foldable-header.d.ts +11 -0
  539. package/lib/typescript/header/header.d.ts +17 -0
  540. package/lib/typescript/header/index.d.ts +8 -0
  541. package/lib/typescript/header/navigation-header.d.ts +15 -0
  542. package/lib/typescript/history/data-item.d.ts +12 -0
  543. package/lib/typescript/history/history-list-item.d.ts +14 -0
  544. package/lib/typescript/history/history-section-header.d.ts +7 -0
  545. package/lib/typescript/history/history-section-list-item.d.ts +7 -0
  546. package/lib/typescript/history/index.d.ts +8 -0
  547. package/lib/typescript/icons/connectivity.d.ts +12 -0
  548. package/lib/typescript/icons/credential.d.ts +9 -0
  549. package/lib/typescript/icons/entity.d.ts +3 -0
  550. package/lib/typescript/icons/history.d.ts +42 -0
  551. package/lib/typescript/icons/icons.d.ts +13 -0
  552. package/lib/typescript/icons/index.d.ts +11 -0
  553. package/lib/typescript/icons/input.d.ts +3 -0
  554. package/lib/typescript/icons/keypad.d.ts +6 -0
  555. package/lib/typescript/icons/loader.d.ts +6 -0
  556. package/lib/typescript/icons/nerd-view.d.ts +7 -0
  557. package/lib/typescript/icons/selector.d.ts +10 -0
  558. package/lib/typescript/icons/wallet.d.ts +4 -0
  559. package/lib/typescript/image/image-or-component.d.ts +16 -0
  560. package/lib/typescript/image/index.d.ts +2 -0
  561. package/lib/typescript/index.d.ts +26 -0
  562. package/lib/typescript/input/index.d.ts +6 -0
  563. package/lib/typescript/input/radio-group.d.ts +23 -0
  564. package/lib/typescript/input/selection-input.d.ts +32 -0
  565. package/lib/typescript/input/text-input.d.ts +31 -0
  566. package/lib/typescript/list/index.d.ts +4 -0
  567. package/lib/typescript/list/list-section-header.d.ts +7 -0
  568. package/lib/typescript/list/list-title-header.d.ts +7 -0
  569. package/lib/typescript/loader/index.d.ts +4 -0
  570. package/lib/typescript/loader/loader.d.ts +14 -0
  571. package/lib/typescript/loader/loading-result.d.ts +16 -0
  572. package/lib/typescript/nerd-view/index.d.ts +2 -0
  573. package/lib/typescript/nerd-view/nerd-mode-item.d.ts +31 -0
  574. package/lib/typescript/pin/index.d.ts +3 -0
  575. package/lib/typescript/pin/keypad.d.ts +16 -0
  576. package/lib/typescript/pin/pin-code-screen.d.ts +32 -0
  577. package/lib/typescript/pin/pins.d.ts +7 -0
  578. package/lib/typescript/screens/backup-screen.d.ts +16 -0
  579. package/lib/typescript/screens/image-preview-screen.d.ts +9 -0
  580. package/lib/typescript/screens/index.d.ts +12 -0
  581. package/lib/typescript/screens/nerd-mode-screen.d.ts +22 -0
  582. package/lib/typescript/screens/qr-code-scanner-screen.d.ts +14 -0
  583. package/lib/typescript/screens/scroll-view-screen.d.ts +13 -0
  584. package/lib/typescript/screens/section-list-screen.d.ts +12 -0
  585. package/lib/typescript/searchbar/animated-search-bar.d.ts +10 -0
  586. package/lib/typescript/searchbar/index.d.ts +4 -0
  587. package/lib/typescript/searchbar/search-bar.d.ts +10 -0
  588. package/lib/typescript/settings/button-setting.d.ts +13 -0
  589. package/lib/typescript/settings/index.d.ts +10 -0
  590. package/lib/typescript/settings/setting-item-separator.d.ts +8 -0
  591. package/lib/typescript/settings/setting-item.d.ts +9 -0
  592. package/lib/typescript/settings/settings-button.d.ts +5 -0
  593. package/lib/typescript/settings/switch-setting.d.ts +13 -0
  594. package/lib/typescript/state/error-screen.d.ts +15 -0
  595. package/lib/typescript/state/index.d.ts +2 -0
  596. package/lib/typescript/text/base.d.ts +20 -0
  597. package/lib/typescript/text/font.d.ts +26 -0
  598. package/lib/typescript/text/index.d.ts +2 -0
  599. package/lib/typescript/text/typography.d.ts +112 -0
  600. package/lib/typescript/theme/color-scheme-context.d.ts +10 -0
  601. package/lib/typescript/theme/color-scheme.d.ts +31 -0
  602. package/lib/typescript/theme/index.d.ts +3 -0
  603. package/lib/typescript/utils/color.d.ts +4 -0
  604. package/lib/typescript/utils/contrasting-status-bar.d.ts +10 -0
  605. package/lib/typescript/utils/date.d.ts +12 -0
  606. package/lib/typescript/utils/hooks/header/on-scroll-header-state.d.ts +5 -0
  607. package/lib/typescript/utils/hooks/index.d.ts +4 -0
  608. package/lib/typescript/utils/hooks/list/list-content-inset.d.ts +8 -0
  609. package/lib/typescript/utils/index.d.ts +8 -0
  610. package/lib/typescript/utils/navigation.d.ts +9 -0
  611. package/lib/typescript/utils/ref.d.ts +11 -0
  612. package/lib/typescript/utils/testID.d.ts +6 -0
  613. package/lib/typescript/utils/testID.test.d.ts +1 -0
  614. package/lib/typescript/utils/useMemoAsync.d.ts +21 -0
  615. package/package.json +240 -0
  616. package/src/accessibility/accessibility.ts +215 -0
  617. package/src/accessibility/accessibilityHistory.tsx +77 -0
  618. package/src/accessibility/accessibilityHistoryWrappers.tsx +80 -0
  619. package/src/accessibility/accessibilityLanguage.tsx +66 -0
  620. package/src/accessibility/index.ts +35 -0
  621. package/src/accessibility/locale/de.json +21 -0
  622. package/src/accessibility/locale/en.json +21 -0
  623. package/src/accessibility/locale/fr.json +21 -0
  624. package/src/accessibility/locale/index.ts +19 -0
  625. package/src/accessibility/locale/it.json +21 -0
  626. package/src/accessibility/locale.test.ts +16 -0
  627. package/src/action-modal/ActionModal.stories.tsx +35 -0
  628. package/src/action-modal/ActionModal.tsx +45 -0
  629. package/src/action-modal/index.ts +3 -0
  630. package/src/activity-indicator/activity-indicator.stories.tsx +21 -0
  631. package/src/activity-indicator/activity-indicator.tsx +25 -0
  632. package/src/activity-indicator/index.ts +3 -0
  633. package/src/blur/blur-view.tsx +82 -0
  634. package/src/blur/index.ts +3 -0
  635. package/src/buttons/back-button.stories.tsx +31 -0
  636. package/src/buttons/back-button.tsx +31 -0
  637. package/src/buttons/button.stories.tsx +29 -0
  638. package/src/buttons/button.tsx +169 -0
  639. package/src/buttons/connectivity-button.stories.tsx +34 -0
  640. package/src/buttons/connectivity-button.tsx +95 -0
  641. package/src/buttons/filter-button.tsx +38 -0
  642. package/src/buttons/ghost-button.stories.tsx +28 -0
  643. package/src/buttons/ghost-button.tsx +56 -0
  644. package/src/buttons/index.ts +24 -0
  645. package/src/buttons/scan-button.stories.tsx +26 -0
  646. package/src/buttons/scan-button.tsx +66 -0
  647. package/src/camera/camera-overlay.tsx +48 -0
  648. package/src/camera/index.tsx +3 -0
  649. package/src/camera/qr-code-scanner.tsx +52 -0
  650. package/src/control/checkbox.stories.tsx +27 -0
  651. package/src/control/checkbox.tsx +81 -0
  652. package/src/control/index.ts +4 -0
  653. package/src/control/switch.stories.tsx +29 -0
  654. package/src/control/switch.tsx +47 -0
  655. package/src/credential/card/credential-card.stories.tsx +52 -0
  656. package/src/credential/card/credential-card.tsx +195 -0
  657. package/src/credential/card/credential-details-card.stories.tsx +268 -0
  658. package/src/credential/card/credential-details-card.tsx +242 -0
  659. package/src/credential/card/credential-details-list-item.tsx +87 -0
  660. package/src/credential/card/credential-header.stories.tsx +50 -0
  661. package/src/credential/card/credential-header.tsx +195 -0
  662. package/src/credential/card/credential-image-carousel.tsx +113 -0
  663. package/src/credential/card/index.ts +11 -0
  664. package/src/credential/credential-attribute-item.tsx +372 -0
  665. package/src/credential/credential-carousel-images.tsx +90 -0
  666. package/src/credential/index.ts +13 -0
  667. package/src/credential/selector-status.ts +8 -0
  668. package/src/credential/selector.stories.tsx +37 -0
  669. package/src/credential/selector.tsx +64 -0
  670. package/src/detail/detail.stories.tsx +65 -0
  671. package/src/detail/detail.tsx +98 -0
  672. package/src/detail/index.tsx +3 -0
  673. package/src/entity/avatar.stories.tsx +39 -0
  674. package/src/entity/avatar.tsx +87 -0
  675. package/src/entity/entity-cluster.stories.tsx +42 -0
  676. package/src/entity/entity-cluster.tsx +72 -0
  677. package/src/entity/index.ts +5 -0
  678. package/src/header/focus-aware-status-bar.tsx +10 -0
  679. package/src/header/foldable-header.tsx +107 -0
  680. package/src/header/header.stories.tsx +59 -0
  681. package/src/header/header.tsx +105 -0
  682. package/src/header/index.ts +9 -0
  683. package/src/header/navigation-header.stories.tsx +56 -0
  684. package/src/header/navigation-header.tsx +147 -0
  685. package/src/history/data-item.tsx +79 -0
  686. package/src/history/history-list-item.tsx +102 -0
  687. package/src/history/history-section-header.tsx +44 -0
  688. package/src/history/history-section-list-item.tsx +41 -0
  689. package/src/history/index.ts +9 -0
  690. package/src/icons/connectivity.tsx +114 -0
  691. package/src/icons/credential.tsx +118 -0
  692. package/src/icons/entity.tsx +21 -0
  693. package/src/icons/history.tsx +378 -0
  694. package/src/icons/icons.tsx +134 -0
  695. package/src/icons/index.ts +11 -0
  696. package/src/icons/input.tsx +29 -0
  697. package/src/icons/keypad.tsx +40 -0
  698. package/src/icons/loader.tsx +117 -0
  699. package/src/icons/nerd-view.tsx +105 -0
  700. package/src/icons/selector.tsx +43 -0
  701. package/src/icons/wallet.tsx +73 -0
  702. package/src/image/image-or-component.tsx +92 -0
  703. package/src/image/index.tsx +3 -0
  704. package/src/index.ts +26 -0
  705. package/src/input/index.ts +7 -0
  706. package/src/input/radio-group.tsx +110 -0
  707. package/src/input/selection-input.stories.tsx +46 -0
  708. package/src/input/selection-input.tsx +112 -0
  709. package/src/input/text-input.tsx +253 -0
  710. package/src/list/index.ts +5 -0
  711. package/src/list/list-section-header.tsx +37 -0
  712. package/src/list/list-title-header.tsx +30 -0
  713. package/src/loader/index.ts +5 -0
  714. package/src/loader/loader.stories.tsx +31 -0
  715. package/src/loader/loader.tsx +169 -0
  716. package/src/loader/loading-result.stories.tsx +67 -0
  717. package/src/loader/loading-result.tsx +93 -0
  718. package/src/nerd-view/index.ts +3 -0
  719. package/src/nerd-view/nerd-mode-item.tsx +296 -0
  720. package/src/normalize-color.d.ts +1 -0
  721. package/src/pin/index.ts +4 -0
  722. package/src/pin/keypad.tsx +166 -0
  723. package/src/pin/pin-code-screen.stories.tsx +80 -0
  724. package/src/pin/pin-code-screen.tsx +195 -0
  725. package/src/pin/pins.tsx +48 -0
  726. package/src/screens/backup-screen.tsx +92 -0
  727. package/src/screens/image-preview-screen.stories.tsx +28 -0
  728. package/src/screens/image-preview-screen.tsx +82 -0
  729. package/src/screens/index.ts +13 -0
  730. package/src/screens/nerd-mode-screen.tsx +150 -0
  731. package/src/screens/qr-code-scanner-screen.stories.tsx +37 -0
  732. package/src/screens/qr-code-scanner-screen.tsx +124 -0
  733. package/src/screens/scroll-view-screen.tsx +91 -0
  734. package/src/screens/section-list-screen.tsx +61 -0
  735. package/src/searchbar/animated-search-bar.tsx +96 -0
  736. package/src/searchbar/index.ts +5 -0
  737. package/src/searchbar/search-bar.stories.tsx +31 -0
  738. package/src/searchbar/search-bar.tsx +94 -0
  739. package/src/settings/button-setting.tsx +72 -0
  740. package/src/settings/index.ts +11 -0
  741. package/src/settings/setting-item-separator.tsx +32 -0
  742. package/src/settings/setting-item.tsx +68 -0
  743. package/src/settings/settings-button.tsx +23 -0
  744. package/src/settings/switch-setting.tsx +33 -0
  745. package/src/state/error-screen.stories.tsx +22 -0
  746. package/src/state/error-screen.tsx +71 -0
  747. package/src/state/index.ts +3 -0
  748. package/src/text/base.tsx +53 -0
  749. package/src/text/font.ts +52 -0
  750. package/src/text/index.ts +3 -0
  751. package/src/text/typography.stories.tsx +70 -0
  752. package/src/text/typography.tsx +117 -0
  753. package/src/theme/color-scheme-context.tsx +48 -0
  754. package/src/theme/color-scheme.ts +31 -0
  755. package/src/theme/index.ts +4 -0
  756. package/src/utils/color.ts +34 -0
  757. package/src/utils/contrasting-status-bar.tsx +21 -0
  758. package/src/utils/date.ts +49 -0
  759. package/src/utils/hooks/header/on-scroll-header-state.tsx +16 -0
  760. package/src/utils/hooks/index.ts +5 -0
  761. package/src/utils/hooks/list/list-content-inset.ts +24 -0
  762. package/src/utils/index.ts +19 -0
  763. package/src/utils/navigation.ts +37 -0
  764. package/src/utils/ref.ts +39 -0
  765. package/src/utils/testID.test.ts +20 -0
  766. package/src/utils/testID.ts +9 -0
  767. package/src/utils/useMemoAsync.ts +50 -0
@@ -0,0 +1,152 @@
1
+ import React, { forwardRef, useImperativeHandle, useState } from 'react';
2
+ import { Animated, Easing, StyleSheet, View } from 'react-native';
3
+ import { SafeAreaView } from 'react-native-safe-area-context';
4
+ import { BackButton } from '../buttons';
5
+ import { Typography } from '../text';
6
+ import { useAppColorScheme } from '../theme';
7
+ import { concatTestID } from '../utils';
8
+ import ContrastingStatusBar from '../utils/contrasting-status-bar';
9
+ import { Keypad } from './keypad';
10
+ import { Pins } from './pins';
11
+ const SHAKE_ITERATIONS = 4;
12
+ const animationConfig = {
13
+ useNativeDriver: true,
14
+ easing: Easing.linear
15
+ };
16
+ export const PinCodeScreen = /*#__PURE__*/forwardRef((_ref, ref) => {
17
+ let {
18
+ testID,
19
+ length,
20
+ instruction,
21
+ title,
22
+ onBack,
23
+ enteredLength,
24
+ error,
25
+ onPressDigit,
26
+ onPressDelete,
27
+ biometry,
28
+ onBiometricPress,
29
+ keypadRef,
30
+ onDeleteAll,
31
+ ...props
32
+ } = _ref;
33
+ const colorScheme = useAppColorScheme();
34
+ const [shakePosition] = useState(() => new Animated.Value(0));
35
+ useImperativeHandle(ref, () => ({
36
+ shakeKeypad: params => {
37
+ const {
38
+ amount = 10,
39
+ duration = 300
40
+ } = params !== null && params !== void 0 ? params : {};
41
+ const partialDuration = duration / SHAKE_ITERATIONS / 4;
42
+ return new Promise(resolve => Animated.loop(Animated.sequence([Animated.timing(shakePosition, {
43
+ ...animationConfig,
44
+ toValue: -amount,
45
+ duration: partialDuration
46
+ }), Animated.timing(shakePosition, {
47
+ ...animationConfig,
48
+ toValue: amount,
49
+ duration: 2 * partialDuration
50
+ }), Animated.timing(shakePosition, {
51
+ ...animationConfig,
52
+ toValue: 0,
53
+ duration: partialDuration
54
+ })]), {
55
+ iterations: SHAKE_ITERATIONS
56
+ }).start(resolve));
57
+ }
58
+ }), [shakePosition]);
59
+ return /*#__PURE__*/React.createElement(SafeAreaView, {
60
+ testID: testID,
61
+ style: [styles.container, {
62
+ backgroundColor: colorScheme.white
63
+ }]
64
+ }, /*#__PURE__*/React.createElement(ContrastingStatusBar, {
65
+ backgroundColor: colorScheme.white
66
+ }), /*#__PURE__*/React.createElement(View, {
67
+ style: styles.backButton
68
+ }, onBack && /*#__PURE__*/React.createElement(BackButton, {
69
+ testID: concatTestID(testID, 'back'),
70
+ onPress: onBack
71
+ })), /*#__PURE__*/React.createElement(View, {
72
+ style: styles.content
73
+ }, /*#__PURE__*/React.createElement(View, {
74
+ style: styles.upperContent
75
+ }, /*#__PURE__*/React.createElement(Typography, {
76
+ testID: concatTestID(testID, 'title'),
77
+ accessible: false,
78
+ color: colorScheme.text,
79
+ align: "center",
80
+ preset: "l",
81
+ style: styles.title
82
+ }, title), /*#__PURE__*/React.createElement(Pins, {
83
+ style: styles.pins,
84
+ enteredLength: enteredLength,
85
+ maxLength: length
86
+ }), instruction ? /*#__PURE__*/React.createElement(Typography, {
87
+ testID: concatTestID(testID, 'instruction'),
88
+ align: "center",
89
+ announcementActive: true,
90
+ onAnnouncementFinished: props.onAccessibilityAnnounced,
91
+ color: colorScheme.text,
92
+ style: styles.instruction
93
+ }, instruction) : null, /*#__PURE__*/React.createElement(Typography, {
94
+ testID: concatTestID(testID, 'error'),
95
+ announcementActive: true,
96
+ accessible: Boolean(error),
97
+ color: colorScheme.error
98
+ }, error !== null && error !== void 0 ? error : '' /* always displayed to keep the same layout */)), /*#__PURE__*/React.createElement(Animated.View, {
99
+ style: [styles.keyboard, {
100
+ transform: [{
101
+ translateX: shakePosition
102
+ }]
103
+ }]
104
+ }, /*#__PURE__*/React.createElement(Keypad, {
105
+ testID: concatTestID(testID, 'keypad'),
106
+ ref: keypadRef,
107
+ onPressDigit: enteredLength < length ? onPressDigit : undefined,
108
+ onPressDelete: enteredLength && enteredLength < length ? onPressDelete : undefined,
109
+ biometry: !enteredLength ? biometry : undefined,
110
+ onBiometricPress: onBiometricPress,
111
+ onDeleteAll: enteredLength && enteredLength < length ? onDeleteAll : undefined
112
+ }))));
113
+ });
114
+ const styles = StyleSheet.create({
115
+ backButton: {
116
+ minHeight: 24,
117
+ paddingHorizontal: 24
118
+ },
119
+ container: {
120
+ flex: 1,
121
+ paddingTop: 8
122
+ },
123
+ content: {
124
+ flex: 1,
125
+ justifyContent: 'space-between',
126
+ paddingHorizontal: 24
127
+ },
128
+ instruction: {
129
+ marginVertical: 24,
130
+ opacity: 0.7
131
+ },
132
+ keyboard: {
133
+ alignItems: 'center',
134
+ flex: 5,
135
+ justifyContent: 'center',
136
+ marginVertical: 24
137
+ },
138
+ pins: {
139
+ paddingHorizontal: 20
140
+ },
141
+ title: {
142
+ marginBottom: 24
143
+ },
144
+ upperContent: {
145
+ alignItems: 'center',
146
+ flex: 3,
147
+ marginTop: 12,
148
+ paddingHorizontal: 20
149
+ }
150
+ });
151
+ PinCodeScreen.displayName = 'PinCodeScreen';
152
+ //# sourceMappingURL=pin-code-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useImperativeHandle","useState","Animated","Easing","StyleSheet","View","SafeAreaView","BackButton","Typography","useAppColorScheme","concatTestID","ContrastingStatusBar","Keypad","Pins","SHAKE_ITERATIONS","animationConfig","useNativeDriver","easing","linear","PinCodeScreen","_ref","ref","testID","length","instruction","title","onBack","enteredLength","error","onPressDigit","onPressDelete","biometry","onBiometricPress","keypadRef","onDeleteAll","props","colorScheme","shakePosition","Value","shakeKeypad","params","amount","duration","partialDuration","Promise","resolve","loop","sequence","timing","toValue","iterations","start","createElement","style","styles","container","backgroundColor","white","backButton","onPress","content","upperContent","accessible","color","text","align","preset","pins","maxLength","announcementActive","onAnnouncementFinished","onAccessibilityAnnounced","Boolean","keyboard","transform","translateX","undefined","create","minHeight","paddingHorizontal","flex","paddingTop","justifyContent","marginVertical","opacity","alignItems","marginBottom","marginTop","displayName"],"sources":["pin-code-screen.tsx"],"sourcesContent":["import React, { forwardRef, Ref, useImperativeHandle, useState } from 'react';\nimport { Animated, Easing, StyleSheet, View } from 'react-native';\nimport { SafeAreaView } from 'react-native-safe-area-context';\n\nimport type { TouchableOpacityRef } from '../accessibility';\nimport { BackButton } from '../buttons';\nimport { Typography } from '../text';\nimport { useAppColorScheme } from '../theme';\nimport { concatTestID } from '../utils';\nimport ContrastingStatusBar from '../utils/contrasting-status-bar';\nimport { Biometry, Keypad } from './keypad';\nimport { Pins } from './pins';\n\nexport type PinCodeScreenProps = {\n title: string;\n\n testID?: string;\n length: number;\n enteredLength: number;\n onBack?: () => void;\n error?: string;\n\n keypadRef?: Ref<TouchableOpacityRef>;\n onPressDigit: (digit: number) => void;\n onPressDelete: () => void;\n onDeleteAll: () => void;\n\n biometry?: Biometry | null;\n onBiometricPress?: () => void;\n} & (\n | {\n instruction: string;\n onAccessibilityAnnounced?: (finished: boolean) => void;\n }\n | {\n instruction?: undefined;\n onAccessibilityAnnounced?: undefined;\n }\n);\n\nexport interface PinCodeScreenActions {\n shakeKeypad: (params?: { amount?: number; duration?: number }) => Promise<{ finished: boolean }>;\n}\nconst SHAKE_ITERATIONS = 4;\nconst animationConfig = {\n useNativeDriver: true,\n easing: Easing.linear,\n};\n\nexport const PinCodeScreen = forwardRef<PinCodeScreenActions, PinCodeScreenProps>(\n (\n {\n testID,\n length,\n instruction,\n title,\n onBack,\n enteredLength,\n error,\n onPressDigit,\n onPressDelete,\n biometry,\n onBiometricPress,\n keypadRef,\n onDeleteAll,\n ...props\n },\n ref,\n ) => {\n const colorScheme = useAppColorScheme();\n const [shakePosition] = useState(() => new Animated.Value(0));\n useImperativeHandle(\n ref,\n () => ({\n shakeKeypad: (params) => {\n const { amount = 10, duration = 300 } = params ?? {};\n const partialDuration = duration / SHAKE_ITERATIONS / 4;\n return new Promise((resolve) =>\n Animated.loop(\n Animated.sequence([\n Animated.timing(shakePosition, { ...animationConfig, toValue: -amount, duration: partialDuration }),\n Animated.timing(shakePosition, {\n ...animationConfig,\n toValue: amount,\n duration: 2 * partialDuration,\n }),\n Animated.timing(shakePosition, { ...animationConfig, toValue: 0, duration: partialDuration }),\n ]),\n { iterations: SHAKE_ITERATIONS },\n ).start(resolve),\n );\n },\n }),\n [shakePosition],\n );\n\n return (\n <SafeAreaView testID={testID} style={[styles.container, { backgroundColor: colorScheme.white }]}>\n <ContrastingStatusBar backgroundColor={colorScheme.white} />\n <View style={styles.backButton}>\n {onBack && <BackButton testID={concatTestID(testID, 'back')} onPress={onBack} />}\n </View>\n <View style={styles.content}>\n <View style={styles.upperContent}>\n <Typography\n testID={concatTestID(testID, 'title')}\n accessible={false}\n color={colorScheme.text}\n align=\"center\"\n preset=\"l\"\n style={styles.title}>\n {title}\n </Typography>\n <Pins style={styles.pins} enteredLength={enteredLength} maxLength={length} />\n {instruction ? (\n <Typography\n testID={concatTestID(testID, 'instruction')}\n align=\"center\"\n announcementActive={true}\n onAnnouncementFinished={props.onAccessibilityAnnounced}\n color={colorScheme.text}\n style={styles.instruction}>\n {instruction}\n </Typography>\n ) : null}\n <Typography\n testID={concatTestID(testID, 'error')}\n announcementActive={true}\n accessible={Boolean(error)}\n color={colorScheme.error}>\n {error ?? '' /* always displayed to keep the same layout */}\n </Typography>\n </View>\n <Animated.View\n style={[\n styles.keyboard,\n {\n transform: [{ translateX: shakePosition }],\n },\n ]}>\n <Keypad\n testID={concatTestID(testID, 'keypad')}\n ref={keypadRef}\n onPressDigit={enteredLength < length ? onPressDigit : undefined}\n onPressDelete={enteredLength && enteredLength < length ? onPressDelete : undefined}\n biometry={!enteredLength ? biometry : undefined}\n onBiometricPress={onBiometricPress}\n onDeleteAll={enteredLength && enteredLength < length ? onDeleteAll : undefined}\n />\n </Animated.View>\n </View>\n </SafeAreaView>\n );\n },\n);\n\nconst styles = StyleSheet.create({\n backButton: {\n minHeight: 24,\n paddingHorizontal: 24,\n },\n container: {\n flex: 1,\n paddingTop: 8,\n },\n content: {\n flex: 1,\n justifyContent: 'space-between',\n paddingHorizontal: 24,\n },\n instruction: {\n marginVertical: 24,\n opacity: 0.7,\n },\n keyboard: {\n alignItems: 'center',\n flex: 5,\n justifyContent: 'center',\n marginVertical: 24,\n },\n pins: {\n paddingHorizontal: 20,\n },\n title: {\n marginBottom: 24,\n },\n upperContent: {\n alignItems: 'center',\n flex: 3,\n marginTop: 12,\n paddingHorizontal: 20,\n },\n});\n\nPinCodeScreen.displayName = 'PinCodeScreen';\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAOC,mBAAmB,EAAEC,QAAQ,QAAQ,OAAO;AAC7E,SAASC,QAAQ,EAAEC,MAAM,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACjE,SAASC,YAAY,QAAQ,gCAAgC;AAG7D,SAASC,UAAU,QAAQ,YAAY;AACvC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,iBAAiB,QAAQ,UAAU;AAC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J,MAAM,GAAGM,YAAY,GAAG+C,SAAU;IAChE9C,aAAa,EAAEH,aAAa,IAAIA,aAAa,GAAGJ,MAAM,GAAGO,aAAa,GAAG8C,SAAU;IACnF7C,QAAQ,EAAE,CAACJ,aAAa,GAAGI,QAAQ,GAAG6C,SAAU;IAChD5C,gBAAgB,EAAEA,gBAAiB;IACnCE,WAAW,EAAEP,aAAa,IAAIA,aAAa,GAAGJ,MAAM,GAAGW,WAAW,GAAG0C;EAAU,EAC/E,CACY,CACX,CACM;AAEnB,CAAC,CACF;AAED,MAAMtB,MAAM,GAAGlD,UAAU,CAACyE,MAAM,CAAC;EAC/BnB,UAAU,EAAE;IACVoB,SAAS,EAAE,EAAE;IACbC,iBAAiB,EAAE;EACrB,CAAC;EACDxB,SAAS,EAAE;IACTyB,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE;EACd,CAAC;EACDrB,OAAO,EAAE;IACPoB,IAAI,EAAE,CAAC;IACPE,cAAc,EAAE,eAAe;IAC/BH,iBAAiB,EAAE;EACrB,CAAC;EACDvD,WAAW,EAAE;IACX2D,cAAc,EAAE,EAAE;IAClBC,OAAO,EAAE;EACX,CAAC;EACDX,QAAQ,EAAE;IACRY,UAAU,EAAE,QAAQ;IACpBL,IAAI,EAAE,CAAC;IACPE,cAAc,EAAE,QAAQ;IACxBC,cAAc,EAAE;EAClB,CAAC;EACDhB,IAAI,EAAE;IACJY,iBAAiB,EAAE;EACrB,CAAC;EACDtD,KAAK,EAAE;IACL6D,YAAY,EAAE;EAChB,CAAC;EACDzB,YAAY,EAAE;IACZwB,UAAU,EAAE,QAAQ;IACpBL,IAAI,EAAE,CAAC;IACPO,SAAS,EAAE,EAAE;IACbR,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEF5D,aAAa,CAACqE,WAAW,GAAG,eAAe"}
@@ -0,0 +1,46 @@
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 from 'react';
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';
5
+ import { useAppColorScheme } from '../theme';
6
+ export const Pins = _ref => {
7
+ let {
8
+ enteredLength,
9
+ maxLength,
10
+ style,
11
+ ...props
12
+ } = _ref;
13
+ const t = useAccessibilityTranslation();
14
+ const colorScheme = useAppColorScheme();
15
+ return /*#__PURE__*/React.createElement(View, _extends({
16
+ style: [styles.pinsWrapper, style],
17
+ accessible: true,
18
+ accessibilityRole: "progressbar",
19
+ accessibilityValue: {
20
+ text: t('accessibility.control.progress', {
21
+ current: enteredLength,
22
+ length: maxLength
23
+ })
24
+ }
25
+ }, props), Array.from({
26
+ length: maxLength
27
+ }).map((_, index) => /*#__PURE__*/React.createElement(View, {
28
+ key: `pin${index}`,
29
+ style: [styles.pin, {
30
+ backgroundColor: enteredLength > index ? colorScheme.black : colorScheme.background
31
+ }]
32
+ })));
33
+ };
34
+ const styles = StyleSheet.create({
35
+ pin: {
36
+ borderRadius: 3,
37
+ height: 10,
38
+ width: 10
39
+ },
40
+ pinsWrapper: {
41
+ flexDirection: 'row',
42
+ justifyContent: 'space-evenly',
43
+ width: '100%'
44
+ }
45
+ });
46
+ //# sourceMappingURL=pins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","useAccessibilityTranslation","useAppColorScheme","Pins","_ref","enteredLength","maxLength","style","props","t","colorScheme","createElement","_extends","styles","pinsWrapper","accessible","accessibilityRole","accessibilityValue","text","current","length","Array","from","map","_","index","key","pin","backgroundColor","black","background","create","borderRadius","height","width","flexDirection","justifyContent"],"sources":["pins.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleSheet, View, ViewProps } from 'react-native';\n\nimport { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';\nimport { useAppColorScheme } from '../theme';\n\nexport interface PinsProps extends ViewProps {\n enteredLength: number;\n maxLength: number;\n}\n\nexport const Pins: FC<PinsProps> = ({ enteredLength, maxLength, style, ...props }) => {\n const t = useAccessibilityTranslation();\n const colorScheme = useAppColorScheme();\n return (\n <View\n style={[styles.pinsWrapper, style]}\n accessible={true}\n accessibilityRole=\"progressbar\"\n accessibilityValue={{ text: t('accessibility.control.progress', { current: enteredLength, length: maxLength }) }}\n {...props}>\n {Array.from({ length: maxLength }).map((_, index) => (\n <View\n key={`pin${index}`}\n style={[\n styles.pin,\n {\n backgroundColor: enteredLength > index ? colorScheme.black : colorScheme.background,\n },\n ]}\n />\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n pin: {\n borderRadius: 3,\n height: 10,\n width: 10,\n },\n pinsWrapper: {\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n width: '100%',\n },\n});\n"],"mappings":";AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE1D,SAASC,2BAA2B,QAAQ,wCAAwC;AACpF,SAASC,iBAAiB,QAAQ,UAAU;AAO5C,OAAO,MAAMC,IAAmB,GAAGC,IAAA,IAAmD;EAAA,IAAlD;IAAEC,aAAa;IAAEC,SAAS;IAAEC,KAAK;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC/E,MAAMK,CAAC,GAAGR,2BAA2B,EAAE;EACvC,MAAMS,WAAW,GAAGR,iBAAiB,EAAE;EACvC,oBACEJ,KAAA,CAAAa,aAAA,CAACX,IAAI,EAAAY,QAAA;IACHL,KAAK,EAAE,CAACM,MAAM,CAACC,WAAW,EAAEP,KAAK,CAAE;IACnCQ,UAAU,EAAE,IAAK;IACjBC,iBAAiB,EAAC,aAAa;IAC/BC,kBAAkB,EAAE;MAAEC,IAAI,EAAET,CAAC,CAAC,gCAAgC,EAAE;QAAEU,OAAO,EAAEd,aAAa;QAAEe,MAAM,EAAEd;MAAU,CAAC;IAAE;EAAE,GAC7GE,KAAK,GACRa,KAAK,CAACC,IAAI,CAAC;IAAEF,MAAM,EAAEd;EAAU,CAAC,CAAC,CAACiB,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,kBAC9C3B,KAAA,CAAAa,aAAA,CAACX,IAAI;IACH0B,GAAG,EAAG,MAAKD,KAAM,EAAE;IACnBlB,KAAK,EAAE,CACLM,MAAM,CAACc,GAAG,EACV;MACEC,eAAe,EAAEvB,aAAa,GAAGoB,KAAK,GAAGf,WAAW,CAACmB,KAAK,GAAGnB,WAAW,CAACoB;IAC3E,CAAC;EACD,EAEL,CAAC,CACG;AAEX,CAAC;AAED,MAAMjB,MAAM,GAAGd,UAAU,CAACgC,MAAM,CAAC;EAC/BJ,GAAG,EAAE;IACHK,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE;EACT,CAAC;EACDpB,WAAW,EAAE;IACXqB,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,cAAc;IAC9BF,KAAK,EAAE;EACT;AACF,CAAC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+ import BackButton from '../buttons/back-button';
4
+ import { Button, ButtonType } from '../buttons/button';
5
+ import ScrollViewScreen from '../screens/scroll-view-screen';
6
+ import Typography from '../text/typography';
7
+ import { useAppColorScheme } from '../theme/color-scheme-context';
8
+ import { concatTestID } from '../utils/testID';
9
+ export let BackupScreenMode;
10
+ (function (BackupScreenMode) {
11
+ BackupScreenMode["Create"] = "create";
12
+ BackupScreenMode["Restore"] = "restore";
13
+ })(BackupScreenMode || (BackupScreenMode = {}));
14
+ const BackupScreen = _ref => {
15
+ let {
16
+ children,
17
+ cta,
18
+ description,
19
+ isCtaDisabled,
20
+ onBack,
21
+ onCta,
22
+ testID,
23
+ title
24
+ } = _ref;
25
+ const colorScheme = useAppColorScheme();
26
+ return /*#__PURE__*/React.createElement(ScrollViewScreen, {
27
+ header: {
28
+ backgroundColor: colorScheme.white,
29
+ leftItem: /*#__PURE__*/React.createElement(BackButton, {
30
+ onPress: onBack,
31
+ testID: concatTestID(testID, 'back')
32
+ }),
33
+ title
34
+ },
35
+ scrollView: {
36
+ testID: concatTestID(testID, 'scroll')
37
+ },
38
+ style: {
39
+ backgroundColor: colorScheme.white
40
+ },
41
+ testID: testID
42
+ }, /*#__PURE__*/React.createElement(View, {
43
+ style: styles.contentWrapper
44
+ }, /*#__PURE__*/React.createElement(View, {
45
+ style: styles.content
46
+ }, /*#__PURE__*/React.createElement(Typography, {
47
+ color: colorScheme.text,
48
+ style: styles.description
49
+ }, description), children), /*#__PURE__*/React.createElement(View, {
50
+ style: styles.bottom
51
+ }, /*#__PURE__*/React.createElement(Button, {
52
+ disabled: isCtaDisabled,
53
+ onPress: onCta,
54
+ testID: concatTestID(testID, 'mainButton'),
55
+ title: cta,
56
+ type: isCtaDisabled ? ButtonType.Border : ButtonType.Primary
57
+ }))));
58
+ };
59
+ const styles = StyleSheet.create({
60
+ bottom: {
61
+ flex: 1,
62
+ justifyContent: 'flex-end',
63
+ minHeight: 84
64
+ },
65
+ content: {
66
+ marginHorizontal: 8
67
+ },
68
+ contentWrapper: {
69
+ flex: 1,
70
+ marginHorizontal: 12
71
+ },
72
+ description: {
73
+ marginBottom: 24,
74
+ opacity: 0.7
75
+ }
76
+ });
77
+ export default BackupScreen;
78
+ //# sourceMappingURL=backup-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","BackButton","Button","ButtonType","ScrollViewScreen","Typography","useAppColorScheme","concatTestID","BackupScreenMode","BackupScreen","_ref","children","cta","description","isCtaDisabled","onBack","onCta","testID","title","colorScheme","createElement","header","backgroundColor","white","leftItem","onPress","scrollView","style","styles","contentWrapper","content","color","text","bottom","disabled","type","Border","Primary","create","flex","justifyContent","minHeight","marginHorizontal","marginBottom","opacity"],"sources":["backup-screen.tsx"],"sourcesContent":["import React, { FC, PropsWithChildren } from 'react';\nimport { StyleSheet, View } from 'react-native';\n\nimport BackButton from '../buttons/back-button';\nimport { Button, ButtonType } from '../buttons/button';\nimport ScrollViewScreen from '../screens/scroll-view-screen';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport { concatTestID } from '../utils/testID';\n\nexport enum BackupScreenMode {\n Create = 'create',\n Restore = 'restore',\n}\n\nexport type BackupScreenProps = PropsWithChildren<{\n cta: string;\n description: string;\n isCtaDisabled?: boolean;\n onBack: () => void;\n onCta: () => void;\n testID: string;\n title: string;\n}>;\n\nconst BackupScreen: FC<BackupScreenProps> = ({\n children,\n cta,\n description,\n isCtaDisabled,\n onBack,\n onCta,\n testID,\n title,\n}) => {\n const colorScheme = useAppColorScheme();\n\n return (\n <ScrollViewScreen\n header={{\n backgroundColor: colorScheme.white,\n leftItem: <BackButton onPress={onBack} testID={concatTestID(testID, 'back')} />,\n title,\n }}\n scrollView={{\n testID: concatTestID(testID, 'scroll'),\n }}\n style={{ backgroundColor: colorScheme.white }}\n testID={testID}>\n <View style={styles.contentWrapper}>\n <View style={styles.content}>\n <Typography color={colorScheme.text} style={styles.description}>\n {description}\n </Typography>\n\n {children}\n </View>\n\n <View style={styles.bottom}>\n <Button\n disabled={isCtaDisabled}\n onPress={onCta}\n testID={concatTestID(testID, 'mainButton')}\n title={cta}\n type={isCtaDisabled ? ButtonType.Border : ButtonType.Primary}\n />\n </View>\n </View>\n </ScrollViewScreen>\n );\n};\n\nconst styles = StyleSheet.create({\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n minHeight: 84,\n },\n content: {\n marginHorizontal: 8,\n },\n contentWrapper: {\n flex: 1,\n marginHorizontal: 12,\n },\n description: {\n marginBottom: 24,\n opacity: 0.7,\n },\n});\n\nexport default BackupScreen;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAiC,OAAO;AACpD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,UAAU,MAAM,wBAAwB;A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AM,CAACf;EAAY,GAC5DA,WAAW,CACD,EAEZF,QAAQ,CACJ,eAEPb,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAAC2B,KAAK,EAAEC,MAAM,CAACK;EAAO,gBACzBnC,KAAA,CAAAsB,aAAA,CAAClB,MAAM;IACLgC,QAAQ,EAAEpB,aAAc;IACxBW,OAAO,EAAET,KAAM;IACfC,MAAM,EAAEV,YAAY,CAACU,MAAM,EAAE,YAAY,CAAE;IAC3CC,KAAK,EAAEN,GAAI;IACXuB,IAAI,EAAErB,aAAa,GAAGX,UAAU,CAACiC,MAAM,GAAGjC,UAAU,CAACkC;EAAQ,EAC7D,CACG,CACF,CACU;AAEvB,CAAC;AAED,MAAMT,MAAM,GAAG7B,UAAU,CAACuC,MAAM,CAAC;EAC/BL,MAAM,EAAE;IACNM,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,UAAU;IAC1BC,SAAS,EAAE;EACb,CAAC;EACDX,OAAO,EAAE;IACPY,gBAAgB,EAAE;EACpB,CAAC;EACDb,cAAc,EAAE;IACdU,IAAI,EAAE,CAAC;IACPG,gBAAgB,EAAE;EACpB,CAAC;EACD7B,WAAW,EAAE;IACX8B,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAenC,YAAY"}
@@ -0,0 +1,83 @@
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, useState } from 'react';
3
+ import { Image, StyleSheet, View } from 'react-native';
4
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
+ import { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';
6
+ import { NavigationHeader } from '../header';
7
+ import { CloseIcon } from '../icons';
8
+ import { useAppColorScheme } from '../theme';
9
+ import { concatTestID, ContrastingStatusBar } from '../utils';
10
+ const ImagePreviewScreen = _ref => {
11
+ let {
12
+ image,
13
+ onClose,
14
+ title,
15
+ testID,
16
+ style,
17
+ ...viewProps
18
+ } = _ref;
19
+ const colorScheme = useAppColorScheme();
20
+ const insets = useSafeAreaInsets();
21
+ const [imageSize, setImageSize] = useState();
22
+ const layoutHandler = useCallback(event => {
23
+ const {
24
+ width,
25
+ height
26
+ } = event.nativeEvent.layout;
27
+ setImageSize({
28
+ height,
29
+ width
30
+ });
31
+ }, []);
32
+ return /*#__PURE__*/React.createElement(View, _extends({
33
+ style: [styles.screen, {
34
+ backgroundColor: colorScheme.nerdView.background
35
+ }, style],
36
+ testID: testID
37
+ }, viewProps), /*#__PURE__*/React.createElement(ContrastingStatusBar, {
38
+ backgroundColor: colorScheme.nerdView.background
39
+ }), /*#__PURE__*/React.createElement(NavigationHeader, {
40
+ backgroundColor: "transparent",
41
+ blurred: false,
42
+ leftItem: /*#__PURE__*/React.createElement(TouchableOpacity, {
43
+ onPress: onClose,
44
+ testID: concatTestID(testID, 'close')
45
+ }, /*#__PURE__*/React.createElement(CloseIcon, {
46
+ color: colorScheme.white
47
+ })),
48
+ style: {
49
+ paddingTop: insets.top
50
+ },
51
+ title: title,
52
+ titleColor: colorScheme.white,
53
+ testID: concatTestID(testID, 'header')
54
+ }), /*#__PURE__*/React.createElement(View, {
55
+ onLayout: layoutHandler,
56
+ style: styles.imageContainer
57
+ }, imageSize && /*#__PURE__*/React.createElement(Image, {
58
+ accessibilityLabel: title,
59
+ accessibilityRole: "image",
60
+ accessible: true,
61
+ resizeMethod: "resize",
62
+ resizeMode: "contain",
63
+ source: image,
64
+ style: [styles.image, imageSize],
65
+ testID: concatTestID(testID, 'image')
66
+ })));
67
+ };
68
+ const styles = StyleSheet.create({
69
+ image: {
70
+ position: 'absolute'
71
+ },
72
+ imageContainer: {
73
+ alignItems: 'center',
74
+ flex: 1,
75
+ justifyContent: 'center',
76
+ marginHorizontal: 18
77
+ },
78
+ screen: {
79
+ flex: 1
80
+ }
81
+ });
82
+ export default ImagePreviewScreen;
83
+ //# sourceMappingURL=image-preview-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useState","Image","StyleSheet","View","useSafeAreaInsets","TouchableOpacity","NavigationHeader","CloseIcon","useAppColorScheme","concatTestID","ContrastingStatusBar","ImagePreviewScreen","_ref","image","onClose","title","testID","style","viewProps","colorScheme","insets","imageSize","setImageSize","layoutHandler","event","width","height","nativeEvent","layout","createElement","_extends","styles","screen","backgroundColor","nerdView","background","blurred","leftItem","onPress","color","white","paddingTop","top","titleColor","onLayout","imageContainer","accessibilityLabel","accessibilityRole","accessible","resizeMethod","resizeMode","source","create","position","alignItems","flex","justifyContent","marginHorizontal"],"sources":["image-preview-screen.tsx"],"sourcesContent":["import React, { FC, useCallback, useState } from 'react';\nimport { Image, ImageSourcePropType, ImageStyle, LayoutChangeEvent, StyleSheet, View, ViewProps } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { NavigationHeader } from '../header';\nimport { CloseIcon } from '../icons';\nimport { useAppColorScheme } from '../theme';\nimport { concatTestID, ContrastingStatusBar } from '../utils';\n\nexport type ImagePreviewScreenProps = ViewProps & {\n image: ImageSourcePropType;\n onClose: () => void;\n title: string;\n};\n\nconst ImagePreviewScreen: FC<ImagePreviewScreenProps> = ({ image, onClose, title, testID, style, ...viewProps }) => {\n const colorScheme = useAppColorScheme();\n const insets = useSafeAreaInsets();\n\n const [imageSize, setImageSize] = useState<ImageStyle>();\n const layoutHandler = useCallback((event: LayoutChangeEvent) => {\n const { width, height } = event.nativeEvent.layout;\n setImageSize({ height, width });\n }, []);\n\n return (\n <View\n style={[styles.screen, { backgroundColor: colorScheme.nerdView.background }, style]}\n testID={testID}\n {...viewProps}>\n <ContrastingStatusBar backgroundColor={colorScheme.nerdView.background} />\n <NavigationHeader\n backgroundColor=\"transparent\"\n blurred={false}\n leftItem={\n <TouchableOpacity onPress={onClose} testID={concatTestID(testID, 'close')}>\n <CloseIcon color={colorScheme.white} />\n </TouchableOpacity>\n }\n style={{\n paddingTop: insets.top,\n }}\n title={title}\n titleColor={colorScheme.white}\n testID={concatTestID(testID, 'header')}\n />\n\n <View onLayout={layoutHandler} style={styles.imageContainer}>\n {imageSize && (\n <Image\n accessibilityLabel={title}\n accessibilityRole=\"image\"\n accessible={true}\n resizeMethod=\"resize\"\n resizeMode=\"contain\"\n source={image}\n style={[styles.image, imageSize]}\n testID={concatTestID(testID, 'image')}\n />\n )}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n image: {\n position: 'absolute',\n },\n imageContainer: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n marginHorizontal: 18,\n },\n screen: {\n flex: 1,\n },\n});\n\nexport default ImagePreviewScreen;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAQC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SAASC,KAAK,EAAsDC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACrH,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,YAAY,EAAEC,oBAAoB,QAAQ,UAAU;AAQ7D,MAAMC,kBAA+C,GAAGC,IAAA,IAA4D;EAAA,IAA3D;IAAEC,KAAK;IAAEC,OAAO;IAAEC,KAAK;IAAEC,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAU,CAAC,GAAAN,IAAA;EAC7G,MAAMO,WAAW,GAAGX,iBAAiB,EAAE;EACvC,MAAMY,MAAM,GAAGhB,iBAAiB,EAAE;EAElC,MAAM,CAACiB,SAAS,EAAEC,YAAY,CAAC,GAAGtB,QAAQ,EAAc;EACxD,MAAMuB,aAAa,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IACJ6C,kBAAkB,EAAE/B,KAAM;IAC1BgC,iBAAiB,EAAC,OAAO;IACzBC,UAAU,EAAE,IAAK;IACjBC,YAAY,EAAC,QAAQ;IACrBC,UAAU,EAAC,SAAS;IACpBC,MAAM,EAAEtC,KAAM;IACdI,KAAK,EAAE,CAACc,MAAM,CAAClB,KAAK,EAAEQ,SAAS,CAAE;IACjCL,MAAM,EAAEP,YAAY,CAACO,MAAM,EAAE,OAAO;EAAE,EAEzC,CACI,CACF;AAEX,CAAC;AAED,MAAMe,MAAM,GAAG7B,UAAU,CAACkD,MAAM,CAAC;EAC/BvC,KAAK,EAAE;IACLwC,QAAQ,EAAE;EACZ,CAAC;EACDR,cAAc,EAAE;IACdS,UAAU,EAAE,QAAQ;IACpBC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,gBAAgB,EAAE;EACpB,CAAC;EACDzB,MAAM,EAAE;IACNuB,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAe5C,kBAAkB"}
@@ -0,0 +1,13 @@
1
+ import BackupScreen, { BackupScreenMode, BackupScreenProps } from './backup-screen';
2
+ import ImagePreviewScreen, { ImagePreviewScreenProps } from './image-preview-screen';
3
+ import NerdModeScreen, { NerdModeScreenProps, NerdModeSection } from './nerd-mode-screen';
4
+ import QRCodeScannerScreen, { QRCodeScannerScreenProps } from './qr-code-scanner-screen';
5
+ import ScrollViewScreen, { ScrollViewScreenProps } from './scroll-view-screen';
6
+ import SectionListScreen, { SectionListScreenProps } from './section-list-screen';
7
+ export { BackupScreen, BackupScreenMode, BackupScreenProps };
8
+ export { ImagePreviewScreen, ImagePreviewScreenProps };
9
+ export { NerdModeScreen, NerdModeScreenProps, NerdModeSection };
10
+ export { QRCodeScannerScreen, QRCodeScannerScreenProps };
11
+ export { ScrollViewScreen, ScrollViewScreenProps };
12
+ export { SectionListScreen, SectionListScreenProps };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BackupScreen","BackupScreenMode","BackupScreenProps","ImagePreviewScreen","ImagePreviewScreenProps","NerdModeScreen","NerdModeScreenProps","NerdModeSection","QRCodeScannerScreen","QRCodeScannerScreenProps","ScrollViewScreen","ScrollViewScreenProps","SectionListScreen","SectionListScreenProps"],"sources":["index.ts"],"sourcesContent":["import BackupScreen, { BackupScreenMode, BackupScreenProps } from './backup-screen';\nimport ImagePreviewScreen, { ImagePreviewScreenProps } from './image-preview-screen';\nimport NerdModeScreen, { NerdModeScreenProps, NerdModeSection } from './nerd-mode-screen';\nimport QRCodeScannerScreen, { QRCodeScannerScreenProps } from './qr-code-scanner-screen';\nimport ScrollViewScreen, { ScrollViewScreenProps } from './scroll-view-screen';\nimport SectionListScreen, { SectionListScreenProps } from './section-list-screen';\n\nexport { BackupScreen, BackupScreenMode, BackupScreenProps };\nexport { ImagePreviewScreen, ImagePreviewScreenProps };\nexport { NerdModeScreen, NerdModeScreenProps, NerdModeSection };\nexport { QRCodeScannerScreen, QRCodeScannerScreenProps };\nexport { ScrollViewScreen, ScrollViewScreenProps };\nexport { SectionListScreen, SectionListScreenProps };\n"],"mappings":"AAAA,OAAOA,YAAY,IAAIC,gBAAgB,EAAEC,iBAAiB,QAAQ,iBAAiB;AACnF,OAAOC,kBAAkB,IAAIC,uBAAuB,QAAQ,wBAAwB;AACpF,OAAOC,cAAc,IAAIC,mBAAmB,EAAEC,eAAe,QAAQ,oBAAoB;AACzF,OAAOC,mBAAmB,IAAIC,wBAAwB,QAAQ,0BAA0B;AACxF,OAAOC,gBAAgB,IAAIC,qBAAqB,QAAQ,sBAAsB;AAC9E,OAAOC,iBAAiB,IAAIC,sBAAsB,QAAQ,uBAAuB;AAEjF,SAASb,YAAY,EAAEC,gBAAgB,EAAEC,iBAAiB;AAC1D,SAASC,kBAAkB,EAAEC,uBAAuB;AACpD,SAASC,cAAc,EAAEC,mBAAmB,EAAEC,eAAe;AAC7D,SAASC,mBAAmB,EAAEC,wBAAwB;AACtD,SAASC,gBAAgB,EAAEC,qBAAqB;AAChD,SAASC,iBAAiB,EAAEC,sBAAsB"}
@@ -0,0 +1,132 @@
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, { useState } from 'react';
3
+ import { SectionList, StyleSheet, View } from 'react-native';
4
+ import { TouchableOpacity } from 'react-native-gesture-handler';
5
+ import Animated, { useAnimatedScrollHandler, useSharedValue } from 'react-native-reanimated';
6
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
+ import NerdModeItem from '..//nerd-view/nerd-mode-item';
8
+ import EntityCluster from '../entity/entity-cluster';
9
+ import NavigationHeader from '../header/navigation-header';
10
+ import { CloseIcon } from '../icons/icons';
11
+ import Typography from '../text/typography';
12
+ import { useAppColorScheme } from '../theme/color-scheme-context';
13
+ import ContrastingStatusBar from '../utils/contrasting-status-bar';
14
+ import { concatTestID } from '../utils/testID';
15
+ const styles = StyleSheet.create({
16
+ entityCluster: {
17
+ paddingHorizontal: 24,
18
+ paddingVertical: 20
19
+ },
20
+ sectionHeaderContainer: {
21
+ justifyContent: 'center',
22
+ marginTop: 20,
23
+ paddingVertical: 16
24
+ },
25
+ sectionHeaderText: {
26
+ opacity: 0.7,
27
+ paddingHorizontal: 20
28
+ }
29
+ });
30
+ const AnimatedSectionList = Animated.createAnimatedComponent(SectionList);
31
+ const NerdModeScreen = _ref => {
32
+ let {
33
+ sections,
34
+ labels,
35
+ onClose,
36
+ onCopyToClipboard,
37
+ entityCluster,
38
+ testID,
39
+ title
40
+ } = _ref;
41
+ const insets = useSafeAreaInsets();
42
+ const colorScheme = useAppColorScheme();
43
+ const scrollOffset = useSharedValue(0);
44
+ const [expandedAttributes, setExpandedAttributes] = useState(0);
45
+
46
+ // This is a bit of a hack. It's used to notify attributes that another attribute has been expanded
47
+ // which will allow them to update their scroll offset accordingly.
48
+ const onExpand = expanded => {
49
+ setExpandedAttributes(prev => expanded ? prev + 1 : prev - 1);
50
+ };
51
+ const onScroll = useAnimatedScrollHandler({
52
+ onScroll: _ref2 => {
53
+ let {
54
+ contentOffset
55
+ } = _ref2;
56
+ scrollOffset.value = contentOffset.y;
57
+ }
58
+ });
59
+ const lastElementsForSection = sections.reduce((acc, _ref3) => {
60
+ let {
61
+ title: sectionTitle,
62
+ data
63
+ } = _ref3;
64
+ const lastElement = data[data.length - 1];
65
+ return {
66
+ ...acc,
67
+ [sectionTitle]: lastElement.attributeKey
68
+ };
69
+ }, {});
70
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ContrastingStatusBar, {
71
+ backgroundColor: colorScheme.nerdView.background
72
+ }), /*#__PURE__*/React.createElement(NavigationHeader, {
73
+ leftItem: /*#__PURE__*/React.createElement(TouchableOpacity, {
74
+ onPress: onClose,
75
+ testID: concatTestID(testID, 'closeIcon')
76
+ }, /*#__PURE__*/React.createElement(CloseIcon, {
77
+ color: colorScheme.white
78
+ })),
79
+ style: {
80
+ backgroundColor: colorScheme.nerdView.background,
81
+ paddingTop: insets.top
82
+ },
83
+ title: title,
84
+ titleColor: colorScheme.white
85
+ }), /*#__PURE__*/React.createElement(AnimatedSectionList, {
86
+ ListHeaderComponent: entityCluster ? /*#__PURE__*/React.createElement(EntityCluster, {
87
+ entityName: entityCluster === null || entityCluster === void 0 ? void 0 : entityCluster.entityName,
88
+ style: [styles.entityCluster, {
89
+ backgroundColor: colorScheme.nerdView.background
90
+ }],
91
+ testID: concatTestID(testID, 'entityCluster'),
92
+ textColor: colorScheme.white
93
+ }) : null,
94
+ onScroll: onScroll,
95
+ renderItem: _ref4 => {
96
+ let {
97
+ item,
98
+ section
99
+ } = _ref4;
100
+ return /*#__PURE__*/React.createElement(NerdModeItem, _extends({}, item, {
101
+ expandedAttributes: expandedAttributes,
102
+ labels: labels,
103
+ last: lastElementsForSection[section.title] === item.attributeKey,
104
+ onCopyToClipboard: onCopyToClipboard,
105
+ onExpand: onExpand,
106
+ scrollOffset: scrollOffset,
107
+ testID: concatTestID(testID, item.testID)
108
+ }));
109
+ },
110
+ renderSectionHeader: _ref5 => {
111
+ let {
112
+ section
113
+ } = _ref5;
114
+ return /*#__PURE__*/React.createElement(View, {
115
+ style: styles.sectionHeaderContainer,
116
+ testID: concatTestID(testID, section.title)
117
+ }, /*#__PURE__*/React.createElement(Typography, {
118
+ color: colorScheme.white,
119
+ style: styles.sectionHeaderText
120
+ }, section.title));
121
+ },
122
+ scrollEventThrottle: 16,
123
+ sections: sections,
124
+ stickySectionHeadersEnabled: false,
125
+ style: {
126
+ backgroundColor: colorScheme.nerdView.background
127
+ },
128
+ testID: testID
129
+ }));
130
+ };
131
+ export default NerdModeScreen;
132
+ //# sourceMappingURL=nerd-mode-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","SectionList","StyleSheet","View","TouchableOpacity","Animated","useAnimatedScrollHandler","useSharedValue","useSafeAreaInsets","NerdModeItem","EntityCluster","NavigationHeader","CloseIcon","Typography","useAppColorScheme","ContrastingStatusBar","concatTestID","styles","create","entityCluster","paddingHorizontal","paddingVertical","sectionHeaderContainer","justifyContent","marginTop","sectionHeaderText","opacity","AnimatedSectionList","createAnimatedComponent","NerdModeScreen","_ref","sections","labels","onClose","onCopyToClipboard","testID","title","insets","colorScheme","scrollOffset","expandedAttributes","setExpandedAttributes","onExpand","expanded","prev","onScroll","_ref2","contentOffset","value","y","lastElementsForSection","reduce","acc","_ref3","sectionTitle","data","lastElement","length","attributeKey","createElement","Fragment","backgroundColor","nerdView","background","leftItem","onPress","color","white","style","paddingTop","top","titleColor","ListHeaderComponent","entityName","textColor","renderItem","_ref4","item","section","_extends","last","renderSectionHeader","_ref5","scrollEventThrottle","stickySectionHeadersEnabled"],"sources":["nerd-mode-screen.tsx"],"sourcesContent":["import React, { FunctionComponent, useState } from 'react';\nimport { SectionList, StyleSheet, View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\nimport Animated, { useAnimatedScrollHandler, useSharedValue } from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport NerdModeItem, { NerdModeItemProps } from '..//nerd-view/nerd-mode-item';\nimport EntityCluster from '../entity/entity-cluster';\nimport NavigationHeader from '../header/navigation-header';\nimport { CloseIcon } from '../icons/icons';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport ContrastingStatusBar from '../utils/contrasting-status-bar';\nimport { concatTestID } from '../utils/testID';\n\nconst styles = StyleSheet.create({\n entityCluster: {\n paddingHorizontal: 24,\n paddingVertical: 20,\n },\n sectionHeaderContainer: {\n justifyContent: 'center',\n marginTop: 20,\n paddingVertical: 16,\n },\n sectionHeaderText: {\n opacity: 0.7,\n paddingHorizontal: 20,\n },\n});\n\nexport type NerdModeSection = {\n data: Array<Omit<NerdModeItemProps, 'labels' | 'onCopyToClipboard'>>;\n title: string;\n};\n\nexport type NerdModeScreenProps = {\n entityCluster?: {\n entityName: string;\n };\n labels: {\n expand: string;\n collapse: string;\n };\n onClose: () => void;\n onCopyToClipboard: (value: string) => void;\n sections: NerdModeSection[];\n testID: string;\n title: string;\n};\n\nconst AnimatedSectionList = Animated.createAnimatedComponent(\n SectionList<Omit<NerdModeItemProps, 'labels' | 'onCopyToClipboard'>>,\n);\nconst NerdModeScreen: FunctionComponent<NerdModeScreenProps> = ({\n sections,\n labels,\n onClose,\n onCopyToClipboard,\n entityCluster,\n testID,\n title,\n}) => {\n const insets = useSafeAreaInsets();\n const colorScheme = useAppColorScheme();\n const scrollOffset = useSharedValue(0);\n const [expandedAttributes, setExpandedAttributes] = useState(0);\n\n // This is a bit of a hack. It's used to notify attributes that another attribute has been expanded\n // which will allow them to update their scroll offset accordingly.\n const onExpand = (expanded: boolean) => {\n setExpandedAttributes((prev) => (expanded ? prev + 1 : prev - 1));\n };\n\n const onScroll = useAnimatedScrollHandler({\n onScroll: ({ contentOffset }) => {\n scrollOffset.value = contentOffset.y;\n },\n });\n\n const lastElementsForSection = sections.reduce((acc, { title: sectionTitle, data }) => {\n const lastElement = data[data.length - 1];\n return { ...acc, [sectionTitle]: lastElement.attributeKey };\n }, {} as Record<string, string>);\n\n return (\n <>\n <ContrastingStatusBar backgroundColor={colorScheme.nerdView.background} />\n <NavigationHeader\n leftItem={\n <TouchableOpacity onPress={onClose} testID={concatTestID(testID, 'closeIcon')}>\n <CloseIcon color={colorScheme.white} />\n </TouchableOpacity>\n }\n style={{\n backgroundColor: colorScheme.nerdView.background,\n paddingTop: insets.top,\n }}\n title={title}\n titleColor={colorScheme.white}\n />\n <AnimatedSectionList\n ListHeaderComponent={\n entityCluster ? (\n <EntityCluster\n entityName={entityCluster?.entityName}\n style={[\n styles.entityCluster,\n {\n backgroundColor: colorScheme.nerdView.background,\n },\n ]}\n testID={concatTestID(testID, 'entityCluster')}\n textColor={colorScheme.white}\n />\n ) : null\n }\n onScroll={onScroll}\n renderItem={({ item, section }) => (\n <NerdModeItem\n {...item}\n expandedAttributes={expandedAttributes}\n labels={labels}\n last={lastElementsForSection[section.title] === item.attributeKey}\n onCopyToClipboard={onCopyToClipboard}\n onExpand={onExpand}\n scrollOffset={scrollOffset}\n testID={concatTestID(testID, item.testID)}\n />\n )}\n renderSectionHeader={({ section }) => {\n return (\n <View style={styles.sectionHeaderContainer} testID={concatTestID(testID, section.title)}>\n <Typography color={colorScheme.white} style={styles.sectionHeaderText}>\n {section.title}\n </Typography>\n </View>\n );\n }}\n scrollEventThrottle={16}\n sections={sections}\n stickySectionHeadersEnabled={false}\n style={{ backgroundColor: colorScheme.nerdView.background }}\n testID={testID}\n />\n </>\n );\n};\n\nexport default NerdModeScreen;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAuBC,QAAQ,QAAQ,OAAO;AAC1D,SAASC,WAAW,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC5D,SAASC,gBAAg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