@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,110 @@
1
+ import React, { memo, useMemo } from 'react';
2
+ import { Dimensions, StyleSheet, View } from 'react-native';
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
4
+ import { useCameraDevice } from 'react-native-vision-camera';
5
+ import { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';
6
+ import BlurView from '../blur/blur-view';
7
+ import { GhostButton } from '../buttons';
8
+ import CameraOverlay from '../camera/camera-overlay';
9
+ import QRCodeScanner from '../camera/qr-code-scanner';
10
+ import { CloseIcon } from '../icons';
11
+ import { Typography } from '../text';
12
+ import { useAppColorScheme } from '../theme';
13
+ import { ContrastingStatusBar } from '../utils';
14
+ import { colorWithAlphaComponent } from '../utils/color';
15
+ const QRCodeScannerScreen = _ref => {
16
+ let {
17
+ codeTypes,
18
+ footer,
19
+ onQRCodeRead,
20
+ onClose,
21
+ overlayStyle,
22
+ noCameraView = null,
23
+ title
24
+ } = _ref;
25
+ const t = useAccessibilityTranslation();
26
+ const insets = useSafeAreaInsets();
27
+ const colorScheme = useAppColorScheme();
28
+ const footerView = useMemo(() => {
29
+ if (!footer) {
30
+ return undefined;
31
+ }
32
+ if ( /*#__PURE__*/React.isValidElement(footer)) {
33
+ return footer;
34
+ } else {
35
+ const FooterComponent = footer;
36
+ return /*#__PURE__*/React.createElement(FooterComponent, null);
37
+ }
38
+ }, [footer]);
39
+ const minBottomBlurViewHeight = Dimensions.get('window').height * 0.15;
40
+ const device = useCameraDevice('back');
41
+ if (!device) {
42
+ return noCameraView;
43
+ }
44
+ return /*#__PURE__*/React.createElement(View, {
45
+ style: styles.container
46
+ }, /*#__PURE__*/React.createElement(QRCodeScanner, {
47
+ cameraOverlay: /*#__PURE__*/React.createElement(CameraOverlay, {
48
+ style: overlayStyle
49
+ }),
50
+ codeTypes: codeTypes,
51
+ onQRCodeRead: onQRCodeRead,
52
+ style: StyleSheet.absoluteFill
53
+ }), /*#__PURE__*/React.createElement(ContrastingStatusBar, {
54
+ backgroundColor: colorScheme.black
55
+ }), /*#__PURE__*/React.createElement(BlurView, {
56
+ darkMode: true,
57
+ blurStyle: "soft",
58
+ style: [styles.topBlurView, {
59
+ backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5)
60
+ }]
61
+ }, /*#__PURE__*/React.createElement(View, {
62
+ style: [styles.headerSection, {
63
+ top: insets.top
64
+ }]
65
+ }, /*#__PURE__*/React.createElement(GhostButton, {
66
+ icon: /*#__PURE__*/React.createElement(CloseIcon, {
67
+ color: colorScheme.white
68
+ }),
69
+ onPress: onClose,
70
+ accessibilityLabel: t('accessibility.nav.close')
71
+ }))), /*#__PURE__*/React.createElement(BlurView, {
72
+ darkMode: true,
73
+ blurStyle: "soft",
74
+ style: [styles.bottomBlurView, {
75
+ backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5),
76
+ minHeight: minBottomBlurViewHeight,
77
+ paddingBottom: Math.max(insets.bottom, 32)
78
+ }]
79
+ }, /*#__PURE__*/React.createElement(Typography, {
80
+ align: "center",
81
+ style: styles.title,
82
+ color: colorScheme.white
83
+ }, title), footerView));
84
+ };
85
+ const styles = StyleSheet.create({
86
+ bottomBlurView: {
87
+ bottom: 0,
88
+ position: 'absolute',
89
+ width: '100%'
90
+ },
91
+ container: {
92
+ flex: 1
93
+ },
94
+ headerSection: {
95
+ paddingHorizontal: 22,
96
+ paddingTop: 16,
97
+ position: 'absolute'
98
+ },
99
+ title: {
100
+ marginTop: 32
101
+ },
102
+ topBlurView: {
103
+ height: '15%',
104
+ position: 'absolute',
105
+ top: 0,
106
+ width: '100%'
107
+ }
108
+ });
109
+ export default /*#__PURE__*/memo(QRCodeScannerScreen);
110
+ //# sourceMappingURL=qr-code-scanner-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useMemo","Dimensions","StyleSheet","View","useSafeAreaInsets","useCameraDevice","useAccessibilityTranslation","BlurView","GhostButton","CameraOverlay","QRCodeScanner","CloseIcon","Typography","useAppColorScheme","ContrastingStatusBar","colorWithAlphaComponent","QRCodeScannerScreen","_ref","codeTypes","footer","onQRCodeRead","onClose","overlayStyle","noCameraView","title","t","insets","colorScheme","footerView","undefined","isValidElement","FooterComponent","createElement","minBottomBlurViewHeight","get","height","device","style","styles","container","cameraOverlay","absoluteFill","backgroundColor","black","darkMode","blurStyle","topBlurView","headerSection","top","icon","color","white","onPress","accessibilityLabel","bottomBlurView","minHeight","paddingBottom","Math","max","bottom","align","create","position","width","flex","paddingHorizontal","paddingTop","marginTop"],"sources":["qr-code-scanner-screen.tsx"],"sourcesContent":["import React, { FunctionComponent, memo, ReactElement, useMemo } from 'react';\nimport { Dimensions, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { useCameraDevice } from 'react-native-vision-camera';\n\nimport { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';\nimport BlurView from '../blur/blur-view';\nimport { GhostButton } from '../buttons';\nimport CameraOverlay from '../camera/camera-overlay';\nimport QRCodeScanner, { QRCodeScannerProps } from '../camera/qr-code-scanner';\nimport { CloseIcon } from '../icons';\nimport { Typography } from '../text';\nimport { useAppColorScheme } from '../theme';\nimport { ContrastingStatusBar } from '../utils';\nimport { colorWithAlphaComponent } from '../utils/color';\n\nexport interface QRCodeScannerScreenProps {\n codeTypes?: QRCodeScannerProps['codeTypes'];\n footer?: React.ComponentType<any> | React.ReactElement;\n onQRCodeRead: QRCodeScannerProps['onQRCodeRead'];\n onClose: () => void;\n overlayStyle?: StyleProp<ViewStyle>;\n noCameraView?: JSX.Element;\n title: ReactElement | string;\n}\n\nconst QRCodeScannerScreen: FunctionComponent<QRCodeScannerScreenProps> = ({\n codeTypes,\n footer,\n onQRCodeRead,\n onClose,\n overlayStyle,\n noCameraView = null,\n title,\n}) => {\n const t = useAccessibilityTranslation();\n const insets = useSafeAreaInsets();\n const colorScheme = useAppColorScheme();\n\n const footerView: React.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 minBottomBlurViewHeight = Dimensions.get('window').height * 0.15;\n\n const device = useCameraDevice('back');\n if (!device) {\n return noCameraView;\n }\n\n return (\n <View style={styles.container}>\n <QRCodeScanner\n cameraOverlay={<CameraOverlay style={overlayStyle} />}\n codeTypes={codeTypes}\n onQRCodeRead={onQRCodeRead}\n style={StyleSheet.absoluteFill}\n />\n <ContrastingStatusBar backgroundColor={colorScheme.black} />\n <BlurView\n darkMode={true}\n blurStyle=\"soft\"\n style={[styles.topBlurView, { backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5) }]}>\n <View style={[styles.headerSection, { top: insets.top }]}>\n <GhostButton\n icon={<CloseIcon color={colorScheme.white} />}\n onPress={onClose}\n accessibilityLabel={t('accessibility.nav.close')}\n />\n </View>\n </BlurView>\n <BlurView\n darkMode={true}\n blurStyle=\"soft\"\n style={[\n styles.bottomBlurView,\n {\n backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5),\n minHeight: minBottomBlurViewHeight,\n paddingBottom: Math.max(insets.bottom, 32),\n },\n ]}>\n <Typography align=\"center\" style={styles.title} color={colorScheme.white}>\n {title}\n </Typography>\n {footerView}\n </BlurView>\n </View>\n );\n};\nconst styles = StyleSheet.create({\n bottomBlurView: {\n bottom: 0,\n position: 'absolute',\n width: '100%',\n },\n container: {\n flex: 1,\n },\n headerSection: {\n paddingHorizontal: 22,\n paddingTop: 16,\n position: 'absolute',\n },\n title: {\n marginTop: 32,\n },\n topBlurView: {\n height: '15%',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n});\n\nexport default memo(QRCodeScannerScreen);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAuBC,IAAI,EAAgBC,OAAO,QAAQ,OAAO;AAC7E,SAASC,UAAU,EAAaC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjF,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,eAAe,QAAQ,4BAA4B;AAE5D,SAASC,2BAA2B,QAAQ,wCAAwC;AACpF,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,SAASC,WAAW,QAAQ,YAAY;AACxC,OAAOC,aAAa,MAAM,0BAA0B;AACpD,OAAOC,aAAa,MAA8B,2BAA2B;AAC7E,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,oBAAoB,QAAQ,UAAU;AAC/C,SAASC,uBAAuB,QAAQ,gBAAgB;AAYxD,MAAMC,mBAAgE,GAAGC,IAAA,IAQnE;EAAA,IARoE;IACxEC,SAAS;IACTC,MAAM;IACNC,YAAY;IACZC,OAA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EACT,CAAC;EACDxB,SAAS,EAAE;IACTyB,IAAI,EAAE;EACR,CAAC;EACDjB,aAAa,EAAE;IACbkB,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,EAAE;IACdJ,QAAQ,EAAE;EACZ,CAAC;EACDtC,KAAK,EAAE;IACL2C,SAAS,EAAE;EACb,CAAC;EACDrB,WAAW,EAAE;IACXX,MAAM,EAAE,KAAK;IACb2B,QAAQ,EAAE,UAAU;IACpBd,GAAG,EAAE,CAAC;IACNe,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,4BAAehE,IAAI,CAACiB,mBAAmB,CAAC"}
@@ -0,0 +1,86 @@
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 { Platform, ScrollView, StyleSheet, View } from 'react-native';
4
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
+ import NavigationHeader from '../header/navigation-header';
6
+ import ListTitleHeader from '../list/list-title-header';
7
+ import { useAppColorScheme } from '../theme/color-scheme-context';
8
+ import { useOnScrollHeaderState } from '../utils/hooks/header/on-scroll-header-state';
9
+ import { useListContentInset } from '../utils/hooks/list/list-content-inset';
10
+ import { concatTestID } from '../utils/testID';
11
+ const ScrollViewScreen = _ref => {
12
+ let {
13
+ children,
14
+ header,
15
+ modalPresentation,
16
+ scrollView,
17
+ style,
18
+ testID,
19
+ ...viewProps
20
+ } = _ref;
21
+ const colorScheme = useAppColorScheme();
22
+ const {
23
+ top
24
+ } = useSafeAreaInsets();
25
+ const contentInsetsStyle = useListContentInset({
26
+ additionalBottomPadding: 24,
27
+ headerHeight: modalPresentation && Platform.OS === 'ios' ? 63 : 48,
28
+ modalPresentation
29
+ });
30
+ const {
31
+ titleVisible,
32
+ onScroll
33
+ } = useOnScrollHeaderState();
34
+ const {
35
+ contentContainerStyle,
36
+ ...scrollViewProps
37
+ } = scrollView !== null && scrollView !== void 0 ? scrollView : {};
38
+ let headerPaddingStyle;
39
+ if (!modalPresentation || Platform.OS === 'android') {
40
+ headerPaddingStyle = {
41
+ paddingTop: top
42
+ };
43
+ } else if (modalPresentation && !header.modalHandleVisible && Platform.OS === 'ios') {
44
+ headerPaddingStyle = styles.modalHeaderWithoutHandle;
45
+ }
46
+ return /*#__PURE__*/React.createElement(View, _extends({
47
+ style: [styles.container, {
48
+ backgroundColor: colorScheme.background
49
+ }, style],
50
+ testID: testID
51
+ }, viewProps), /*#__PURE__*/React.createElement(ScrollView, _extends({
52
+ contentContainerStyle: [styles.contentContainer, contentInsetsStyle, contentContainerStyle],
53
+ onScroll: onScroll,
54
+ scrollEventThrottle: 100
55
+ }, scrollViewProps), /*#__PURE__*/React.createElement(View, {
56
+ style: styles.content,
57
+ testID: concatTestID(testID, 'content')
58
+ }, !header.static && /*#__PURE__*/React.createElement(ListTitleHeader, {
59
+ title: header.title
60
+ }), children)), /*#__PURE__*/React.createElement(NavigationHeader, _extends({
61
+ animate: true,
62
+ blurred: true,
63
+ style: [styles.header, headerPaddingStyle],
64
+ titleVisible: header.static || titleVisible
65
+ }, header)));
66
+ };
67
+ const styles = StyleSheet.create({
68
+ container: {
69
+ flex: 1
70
+ },
71
+ content: {
72
+ flex: 1
73
+ },
74
+ contentContainer: {
75
+ flexGrow: 1
76
+ },
77
+ header: {
78
+ position: 'absolute',
79
+ width: '100%'
80
+ },
81
+ modalHeaderWithoutHandle: {
82
+ paddingTop: 15
83
+ }
84
+ });
85
+ export default ScrollViewScreen;
86
+ //# sourceMappingURL=scroll-view-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Platform","ScrollView","StyleSheet","View","useSafeAreaInsets","NavigationHeader","ListTitleHeader","useAppColorScheme","useOnScrollHeaderState","useListContentInset","concatTestID","ScrollViewScreen","_ref","children","header","modalPresentation","scrollView","style","testID","viewProps","colorScheme","top","contentInsetsStyle","additionalBottomPadding","headerHeight","OS","titleVisible","onScroll","contentContainerStyle","scrollViewProps","headerPaddingStyle","paddingTop","modalHandleVisible","styles","modalHeaderWithoutHandle","createElement","_extends","container","backgroundColor","background","contentContainer","scrollEventThrottle","content","static","title","animate","blurred","create","flex","flexGrow","position","width"],"sources":["scroll-view-screen.tsx"],"sourcesContent":["import React, { FC, PropsWithChildren } from 'react';\nimport { Platform, ScrollView, ScrollViewProps, StyleSheet, View, ViewProps, ViewStyle } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport NavigationHeader, { NavigationHeaderProps } from '../header/navigation-header';\nimport ListTitleHeader from '../list/list-title-header';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport { useOnScrollHeaderState } from '../utils/hooks/header/on-scroll-header-state';\nimport { useListContentInset } from '../utils/hooks/list/list-content-inset';\nimport { concatTestID } from '../utils/testID';\n\nexport type ScrollViewScreenProps = ViewProps & {\n header: Omit<NavigationHeaderProps, 'animate' | 'blurred' | 'style' | 'title' | 'titleVisible'> & {\n static?: boolean;\n title: string;\n };\n modalPresentation?: boolean;\n scrollView?: Omit<ScrollViewProps, 'onScroll'>;\n};\n\nconst ScrollViewScreen: FC<PropsWithChildren<ScrollViewScreenProps>> = ({\n children,\n header,\n modalPresentation,\n scrollView,\n style,\n testID,\n ...viewProps\n}) => {\n const colorScheme = useAppColorScheme();\n const { top } = useSafeAreaInsets();\n const contentInsetsStyle = useListContentInset({\n additionalBottomPadding: 24,\n headerHeight: modalPresentation && Platform.OS === 'ios' ? 63 : 48,\n modalPresentation,\n });\n const { titleVisible, onScroll } = useOnScrollHeaderState();\n const { contentContainerStyle, ...scrollViewProps } = scrollView ?? {};\n\n let headerPaddingStyle: ViewStyle | undefined;\n if (!modalPresentation || Platform.OS === 'android') {\n headerPaddingStyle = {\n paddingTop: top,\n };\n } else if (modalPresentation && !header.modalHandleVisible && Platform.OS === 'ios') {\n headerPaddingStyle = styles.modalHeaderWithoutHandle;\n }\n\n return (\n <View style={[styles.container, { backgroundColor: colorScheme.background }, style]} testID={testID} {...viewProps}>\n <ScrollView\n contentContainerStyle={[styles.contentContainer, contentInsetsStyle, contentContainerStyle]}\n onScroll={onScroll}\n scrollEventThrottle={100}\n {...scrollViewProps}>\n <View style={styles.content} testID={concatTestID(testID, 'content')}>\n {!header.static && <ListTitleHeader title={header.title} />}\n {children}\n </View>\n </ScrollView>\n <NavigationHeader\n animate\n blurred\n style={[styles.header, headerPaddingStyle]}\n titleVisible={header.static || titleVisible}\n {...header}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n content: {\n flex: 1,\n },\n contentContainer: {\n flexGrow: 1,\n },\n header: {\n position: 'absolute',\n width: '100%',\n },\n modalHeaderWithoutHandle: {\n paddingTop: 15,\n },\n});\n\nexport default ScrollViewScreen;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAiC,OAAO;AACpD,SAASC,QAAQ,EAAEC,UAAU,EAAmBC,UAAU,EAAEC,IAAI,QAA8B,cAAc;AAC5G,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,OAAOC,gBAAgB,MAAiC,6BAA6B;AACrF,OAAOC,eAAe,MAAM,2BAA2B;AACvD,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,SAASC,sBAAsB,QAAQ,8CAA8C;AACrF,SAASC,mBAAmB,QAAQ,wCAAwC;AAC5E,SAASC,YAAY,QAAQ,iBAAiB;AAW9C,MAAMC,gBAA8D,GAAGC,IAAA,IAQjE;EAAA,IARkE;IACtEC,QAAQ;IACRC,MAAM;IACNC,iBAAiB;IACjBC,UAAU;IACVC,KAAK;IACLC,MAAM;IACN,GAAGC;EACL,CAAC,GAAAP,IAAA;EACC,MAAMQ,WAAW,GAAGb,iBAAiB,EAAE;EACvC,MAAM;IAAEc;EAAI,CAAC,GAAGjB,iBAAiB,EAAE;EACnC,MAAMkB,kBAAkB,GAAGb,mBAAmB,CA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CAAC6B,MAAM,iBAAI5C,KAAA,CAAAoC,aAAA,CAAC7B,eAAe;IAACsC,KAAK,EAAE9B,MAAM,CAAC8B;EAAM,EAAG,EAC1D/B,QAAQ,CACJ,CACI,eACbd,KAAA,CAAAoC,aAAA,CAAC9B,gBAAgB,EAAA+B,QAAA;IACfS,OAAO;IACPC,OAAO;IACP7B,KAAK,EAAE,CAACgB,MAAM,CAACnB,MAAM,EAAEgB,kBAAkB,CAAE;IAC3CJ,YAAY,EAAEZ,MAAM,CAAC6B,MAAM,IAAIjB;EAAa,GACxCZ,MAAM,EACV,CACG;AAEX,CAAC;AAED,MAAMmB,MAAM,GAAG/B,UAAU,CAAC6C,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,IAAI,EAAE;EACR,CAAC;EACDN,OAAO,EAAE;IACPM,IAAI,EAAE;EACR,CAAC;EACDR,gBAAgB,EAAE;IAChBS,QAAQ,EAAE;EACZ,CAAC;EACDnC,MAAM,EAAE;IACNoC,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE;EACT,CAAC;EACDjB,wBAAwB,EAAE;IACxBH,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAepB,gBAAgB"}
@@ -0,0 +1,59 @@
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 { SectionList, StyleSheet, View } from 'react-native';
4
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
+ import NavigationHeader from '../header/navigation-header';
6
+ import ListTitleHeader from '../list/list-title-header';
7
+ import { useAppColorScheme } from '../theme/color-scheme-context';
8
+ import { useOnScrollHeaderState } from '../utils/hooks/header/on-scroll-header-state';
9
+ import { useListContentInset } from '../utils/hooks/list/list-content-inset';
10
+ const SectionListScreen = _ref => {
11
+ let {
12
+ header,
13
+ list: {
14
+ contentContainerStyle,
15
+ stickySectionHeadersEnabled,
16
+ ...listProps
17
+ },
18
+ style,
19
+ ...viewProps
20
+ } = _ref;
21
+ const colorScheme = useAppColorScheme();
22
+ const safeAreaInsets = useSafeAreaInsets();
23
+ const contentInsetsStyle = useListContentInset();
24
+ const {
25
+ titleVisible,
26
+ onScroll
27
+ } = useOnScrollHeaderState();
28
+ return /*#__PURE__*/React.createElement(View, _extends({
29
+ style: [styles.container, {
30
+ backgroundColor: colorScheme.background
31
+ }, style]
32
+ }, viewProps), /*#__PURE__*/React.createElement(SectionList, _extends({
33
+ ListHeaderComponent: !header.static ? /*#__PURE__*/React.createElement(ListTitleHeader, {
34
+ title: header.title
35
+ }) : undefined,
36
+ contentContainerStyle: [contentInsetsStyle, contentContainerStyle],
37
+ onScroll: onScroll,
38
+ scrollEventThrottle: 100,
39
+ stickySectionHeadersEnabled: stickySectionHeadersEnabled !== null && stickySectionHeadersEnabled !== void 0 ? stickySectionHeadersEnabled : false
40
+ }, listProps)), /*#__PURE__*/React.createElement(NavigationHeader, _extends({
41
+ animate: true,
42
+ blurred: true,
43
+ style: [styles.header, {
44
+ paddingTop: safeAreaInsets.top
45
+ }],
46
+ titleVisible: header.static || titleVisible
47
+ }, header)));
48
+ };
49
+ const styles = StyleSheet.create({
50
+ container: {
51
+ flex: 1
52
+ },
53
+ header: {
54
+ position: 'absolute',
55
+ width: '100%'
56
+ }
57
+ });
58
+ export default SectionListScreen;
59
+ //# sourceMappingURL=section-list-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","SectionList","StyleSheet","View","useSafeAreaInsets","NavigationHeader","ListTitleHeader","useAppColorScheme","useOnScrollHeaderState","useListContentInset","SectionListScreen","_ref","header","list","contentContainerStyle","stickySectionHeadersEnabled","listProps","style","viewProps","colorScheme","safeAreaInsets","contentInsetsStyle","titleVisible","onScroll","createElement","_extends","styles","container","backgroundColor","background","ListHeaderComponent","static","title","undefined","scrollEventThrottle","animate","blurred","paddingTop","top","create","flex","position","width"],"sources":["section-list-screen.tsx"],"sourcesContent":["import React from 'react';\nimport { SectionList, SectionListProps, StyleSheet, View, ViewProps } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport NavigationHeader, { NavigationHeaderProps } from '../header/navigation-header';\nimport ListTitleHeader from '../list/list-title-header';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport { useOnScrollHeaderState } from '../utils/hooks/header/on-scroll-header-state';\nimport { useListContentInset } from '../utils/hooks/list/list-content-inset';\n\nexport type SectionListScreenProps<ItemT, SectionT> = ViewProps & {\n header: Omit<NavigationHeaderProps, 'animate' | 'blurred' | 'style' | 'title' | 'titleVisible'> & {\n static?: boolean;\n title: string;\n };\n list: Omit<SectionListProps<ItemT, SectionT>, 'ListHeaderComponent' | 'onScroll'>;\n};\n\nconst SectionListScreen = <ItemT, SectionT>({\n header,\n list: { contentContainerStyle, stickySectionHeadersEnabled, ...listProps },\n style,\n ...viewProps\n}: SectionListScreenProps<ItemT, SectionT>) => {\n const colorScheme = useAppColorScheme();\n const safeAreaInsets = useSafeAreaInsets();\n const contentInsetsStyle = useListContentInset();\n const { titleVisible, onScroll } = useOnScrollHeaderState();\n\n return (\n <View style={[styles.container, { backgroundColor: colorScheme.background }, style]} {...viewProps}>\n <SectionList<ItemT, SectionT>\n ListHeaderComponent={!header.static ? <ListTitleHeader title={header.title} /> : undefined}\n contentContainerStyle={[contentInsetsStyle, contentContainerStyle]}\n onScroll={onScroll}\n scrollEventThrottle={100}\n stickySectionHeadersEnabled={stickySectionHeadersEnabled ?? false}\n {...listProps}\n />\n <NavigationHeader\n animate\n blurred\n style={[styles.header, { paddingTop: safeAreaInsets.top }]}\n titleVisible={header.static || titleVisible}\n {...header}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n header: {\n position: 'absolute',\n width: '100%',\n },\n});\n\nexport default SectionListScreen;\n"],"mappings":";AAAA,OAAO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AA3BA,2BAA2B,cAA3BA,2BAA2B,GAAI;EAAM,GAC9DC,SAAS,EACb,eACFhB,KAAA,CAAAwB,aAAA,CAACnB,gBAAgB,EAAAoB,QAAA;IACfU,OAAO;IACPC,OAAO;IACPnB,KAAK,EAAE,CAACS,MAAM,CAACd,MAAM,EAAE;MAAEyB,UAAU,EAAEjB,cAAc,CAACkB;IAAI,CAAC,CAAE;IAC3DhB,YAAY,EAAEV,MAAM,CAACmB,MAAM,IAAIT;EAAa,GACxCV,MAAM,EACV,CACG;AAEX,CAAC;AAED,MAAMc,MAAM,GAAGxB,UAAU,CAACqC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,IAAI,EAAE;EACR,CAAC;EACD5B,MAAM,EAAE;IACN6B,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAehC,iBAAiB"}
@@ -0,0 +1,78 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { Animated, StyleSheet } from 'react-native';
3
+ import SearchBar from './search-bar';
4
+ // Animated search bar, according to
5
+ // https://www.figma.com/design/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=1143-40433&m=dev
6
+
7
+ const AnimatedSearchBar = _ref => {
8
+ let {
9
+ collapsed,
10
+ rightButtonAlwaysVisible = false,
11
+ searchBarProps,
12
+ rightButton
13
+ } = _ref;
14
+ const [rightIconFadeAnimation] = useState(() => new Animated.Value(rightButton && rightButtonAlwaysVisible ? 1.5 : 0));
15
+ const [searchPaddingAnimation] = useState(() => new Animated.Value(0));
16
+ useEffect(() => {
17
+ Animated.timing(searchPaddingAnimation, {
18
+ duration: 250,
19
+ toValue: collapsed ? 1 : 0,
20
+ useNativeDriver: false
21
+ }).start();
22
+ }, [collapsed, searchPaddingAnimation]);
23
+ useEffect(() => {
24
+ if (rightButtonAlwaysVisible) {
25
+ return;
26
+ }
27
+ Animated.timing(rightIconFadeAnimation, {
28
+ duration: 250,
29
+ toValue: collapsed && rightButton ? 1.5 : 0,
30
+ useNativeDriver: false
31
+ }).start();
32
+ }, [rightButtonAlwaysVisible, rightIconFadeAnimation, rightButton, collapsed]);
33
+ const searchBarContainerAnimatedStyle = {
34
+ paddingHorizontal: searchPaddingAnimation.interpolate({
35
+ extrapolate: 'clamp',
36
+ inputRange: [0, 1],
37
+ outputRange: [16, 20]
38
+ })
39
+ };
40
+ const optionsIconAnimatedStyle = {
41
+ opacity: rightIconFadeAnimation.interpolate({
42
+ extrapolate: 'clamp',
43
+ inputRange: [1, 1.5],
44
+ outputRange: [0, 1]
45
+ })
46
+ };
47
+ const searchBarAnimatedStyle = {
48
+ width: rightIconFadeAnimation.interpolate({
49
+ extrapolate: 'clamp',
50
+ inputRange: [0, 1],
51
+ outputRange: ['100%', '88%']
52
+ })
53
+ };
54
+ const {
55
+ style: searchBarStyle,
56
+ ...searchProps
57
+ } = searchBarProps;
58
+ return /*#__PURE__*/React.createElement(Animated.View, {
59
+ style: [styles.searchBarContainer, searchBarContainerAnimatedStyle, searchBarStyle]
60
+ }, /*#__PURE__*/React.createElement(Animated.View, {
61
+ style: searchBarAnimatedStyle
62
+ }, /*#__PURE__*/React.createElement(SearchBar, searchProps)), rightButton && /*#__PURE__*/React.createElement(Animated.View, {
63
+ style: [styles.rightButtonWrapper, optionsIconAnimatedStyle]
64
+ }, rightButton));
65
+ };
66
+ const styles = StyleSheet.create({
67
+ rightButtonWrapper: {
68
+ alignItems: 'flex-end',
69
+ justifyContent: 'center'
70
+ },
71
+ searchBarContainer: {
72
+ flexDirection: 'row',
73
+ justifyContent: 'space-between',
74
+ paddingBottom: 12
75
+ }
76
+ });
77
+ export default AnimatedSearchBar;
78
+ //# sourceMappingURL=animated-search-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","Animated","StyleSheet","SearchBar","AnimatedSearchBar","_ref","collapsed","rightButtonAlwaysVisible","searchBarProps","rightButton","rightIconFadeAnimation","Value","searchPaddingAnimation","timing","duration","toValue","useNativeDriver","start","searchBarContainerAnimatedStyle","paddingHorizontal","interpolate","extrapolate","inputRange","outputRange","optionsIconAnimatedStyle","opacity","searchBarAnimatedStyle","width","style","searchBarStyle","searchProps","createElement","View","styles","searchBarContainer","rightButtonWrapper","create","alignItems","justifyContent","flexDirection","paddingBottom"],"sources":["animated-search-bar.tsx"],"sourcesContent":["import React, { ReactNode, useEffect, useState } from 'react';\nimport { Animated, StyleSheet, ViewStyle } from 'react-native';\n\nimport SearchBar, { SearchBarProps } from './search-bar';\n\nexport type AnimatedSearchBarProps = {\n collapsed: boolean;\n rightButton?: ReactNode;\n rightButtonAlwaysVisible?: boolean;\n searchBarProps: SearchBarProps;\n};\n\n// Animated search bar, according to\n// https://www.figma.com/design/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=1143-40433&m=dev\n\nconst AnimatedSearchBar = ({\n collapsed,\n rightButtonAlwaysVisible = false,\n searchBarProps,\n rightButton,\n}: AnimatedSearchBarProps) => {\n const [rightIconFadeAnimation] = useState(\n () => new Animated.Value(rightButton && rightButtonAlwaysVisible ? 1.5 : 0),\n );\n const [searchPaddingAnimation] = useState(() => new Animated.Value(0));\n\n useEffect(() => {\n Animated.timing(searchPaddingAnimation, {\n duration: 250,\n toValue: collapsed ? 1 : 0,\n useNativeDriver: false,\n }).start();\n }, [collapsed, searchPaddingAnimation]);\n\n useEffect(() => {\n if (rightButtonAlwaysVisible) {\n return;\n }\n\n Animated.timing(rightIconFadeAnimation, {\n duration: 250,\n toValue: collapsed && rightButton ? 1.5 : 0,\n useNativeDriver: false,\n }).start();\n }, [rightButtonAlwaysVisible, rightIconFadeAnimation, rightButton, collapsed]);\n\n const searchBarContainerAnimatedStyle = {\n paddingHorizontal: searchPaddingAnimation.interpolate({\n extrapolate: 'clamp',\n inputRange: [0, 1],\n outputRange: [16, 20],\n }),\n };\n\n const optionsIconAnimatedStyle: Animated.WithAnimatedObject<ViewStyle> = {\n opacity: rightIconFadeAnimation.interpolate({\n extrapolate: 'clamp',\n inputRange: [1, 1.5],\n outputRange: [0, 1],\n }),\n };\n\n const searchBarAnimatedStyle = {\n width: rightIconFadeAnimation.interpolate({\n extrapolate: 'clamp',\n inputRange: [0, 1],\n outputRange: ['100%', '88%'],\n }),\n };\n\n const { style: searchBarStyle, ...searchProps } = searchBarProps;\n return (\n <Animated.View style={[styles.searchBarContainer, searchBarContainerAnimatedStyle, searchBarStyle]}>\n <Animated.View style={searchBarAnimatedStyle}>\n <SearchBar {...searchProps} />\n </Animated.View>\n {rightButton && (\n <Animated.View style={[styles.rightButtonWrapper, optionsIconAnimatedStyle]}>{rightButton}</Animated.View>\n )}\n </Animated.View>\n );\n};\n\nconst styles = StyleSheet.create({\n rightButtonWrapper: {\n alignItems: 'flex-end',\n justifyContent: 'center',\n },\n searchBarContainer: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 12,\n },\n});\n\nexport default AnimatedSearchBar;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAeC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,QAAQ,EAAEC,UAAU,QAAmB,cAAc;AAE9D,OAAOC,SAAS,MAA0B,cAAc;AASxD;AACA;;AAEA,MAAMC,iBAAiB,GAAGC,IAAA,IAKI;EAAA,IALH;IACzBC,SAAS;IACTC,wBAAwB,GAAG,KAAK;IAChCC,cAAc;IACdC;EACsB,CAAC,GAAAJ,IAAA;EACvB,MAAM,CAACK,sBAAsB,CAAC,GAAGV,QAAQ,CACvC,MAAM,IAAIC,QAAQ,CAACU,KAAK,CAACF,WAAW,IAAIF,wBAAwB,GAAG,GAAG,GAAG,CAAC,CAAC,CAC5E;EACD,MAAM,CAACK,sBAAsB,CAAC,GAAGZ,QAAQ,CAAC,MAAM,IAAIC,QAAQ,CAACU,KAAK,CAAC,CAAC,CAAC,CAAC;EAEtEZ,SAAS,CAAC,MAAM;IACdE,QAAQ,CAACY,MAAM,CAACD,sBAAsB,EAAE;MACtCE,QAAQ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C,GAAGtB,cAAc;EAChE,oBACEV,KAAA,CAAAiC,aAAA,CAAC9B,QAAQ,CAAC+B,IAAI;IAACJ,KAAK,EAAE,CAACK,MAAM,CAACC,kBAAkB,EAAEhB,+BAA+B,EAAEW,cAAc;EAAE,gBACjG/B,KAAA,CAAAiC,aAAA,CAAC9B,QAAQ,CAAC+B,IAAI;IAACJ,KAAK,EAAEF;EAAuB,gBAC3C5B,KAAA,CAAAiC,aAAA,CAAC5B,SAAS,EAAK2B,WAAW,CAAI,CAChB,EACfrB,WAAW,iBACVX,KAAA,CAAAiC,aAAA,CAAC9B,QAAQ,CAAC+B,IAAI;IAACJ,KAAK,EAAE,CAACK,MAAM,CAACE,kBAAkB,EAAEX,wBAAwB;EAAE,GAAEf,WAAW,CAC1F,CACa;AAEpB,CAAC;AAED,MAAMwB,MAAM,GAAG/B,UAAU,CAACkC,MAAM,CAAC;EAC/BD,kBAAkB,EAAE;IAClBE,UAAU,EAAE,UAAU;IACtBC,cAAc,EAAE;EAClB,CAAC;EACDJ,kBAAkB,EAAE;IAClBK,aAAa,EAAE,KAAK;IACpBD,cAAc,EAAE,eAAe;IAC/BE,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEF,eAAepC,iBAAiB"}
@@ -0,0 +1,5 @@
1
+ import AnimatedSearchBar, { AnimatedSearchBarProps } from './animated-search-bar';
2
+ import SearchBar, { SearchBarProps } from './search-bar';
3
+ export { AnimatedSearchBar, AnimatedSearchBarProps };
4
+ export { SearchBar, SearchBarProps };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AnimatedSearchBar","AnimatedSearchBarProps","SearchBar","SearchBarProps"],"sources":["index.ts"],"sourcesContent":["import AnimatedSearchBar, { AnimatedSearchBarProps } from './animated-search-bar';\nimport SearchBar, { SearchBarProps } from './search-bar';\n\nexport { AnimatedSearchBar, AnimatedSearchBarProps };\nexport { SearchBar, SearchBarProps };\n"],"mappings":"AAAA,OAAOA,iBAAiB,IAAIC,sBAAsB,QAAQ,uBAAuB;AACjF,OAAOC,SAAS,IAAIC,cAAc,QAAQ,cAAc;AAExD,SAASH,iBAAiB,EAAEC,sBAAsB;AAClD,SAASC,SAAS,EAAEC,cAAc"}
@@ -0,0 +1,89 @@
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, { forwardRef, useCallback } from 'react';
3
+ import { Platform, StyleSheet, TextInput, View } from 'react-native';
4
+ import { TouchableOpacity } from '../accessibility';
5
+ import { CloseIcon, SearchIcon } from '../icons';
6
+ import font from '../text/font';
7
+ import { useAppColorScheme } from '../theme';
8
+ import { concatTestID } from '../utils';
9
+ const hitSlop = {
10
+ top: 10,
11
+ left: 10,
12
+ bottom: 10,
13
+ right: 10
14
+ };
15
+
16
+ // https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=1143-40433&t=HY1KvobxOReLeC8Z-4
17
+ const SearchBar = /*#__PURE__*/forwardRef((_ref, ref) => {
18
+ let {
19
+ style,
20
+ placeholder,
21
+ searchPhrase,
22
+ onSearchPhraseChange,
23
+ testID,
24
+ ...textInputProps
25
+ } = _ref;
26
+ const colorScheme = useAppColorScheme();
27
+ const onClear = useCallback(() => {
28
+ onSearchPhraseChange('');
29
+ }, [onSearchPhraseChange]);
30
+ return /*#__PURE__*/React.createElement(View, {
31
+ style: [styles.container, {
32
+ backgroundColor: colorScheme.white
33
+ }, style]
34
+ }, /*#__PURE__*/React.createElement(SearchIcon, {
35
+ color: colorScheme.text,
36
+ style: styles.searchIcon
37
+ }), /*#__PURE__*/React.createElement(TextInput, _extends({
38
+ accessibilityRole: "search",
39
+ onChangeText: onSearchPhraseChange,
40
+ placeholder: placeholder,
41
+ placeholderTextColor: colorScheme.text,
42
+ ref: ref,
43
+ returnKeyType: "search",
44
+ style: [styles.textInput, {
45
+ color: colorScheme.text
46
+ }],
47
+ value: searchPhrase,
48
+ testID: testID
49
+ }, textInputProps)), searchPhrase && /*#__PURE__*/React.createElement(TouchableOpacity, {
50
+ testID: concatTestID(testID, 'clear'),
51
+ accessibilityRole: "button",
52
+ hitSlop: hitSlop,
53
+ onPress: onClear,
54
+ style: styles.clearButton
55
+ }, /*#__PURE__*/React.createElement(CloseIcon, {
56
+ color: colorScheme.text,
57
+ height: 12,
58
+ width: 12
59
+ })));
60
+ });
61
+ SearchBar.displayName = 'SearchBar';
62
+ const styles = StyleSheet.create({
63
+ clearButton: {
64
+ marginLeft: 6,
65
+ marginRight: 16
66
+ },
67
+ container: {
68
+ alignItems: 'center',
69
+ borderRadius: 20,
70
+ borderWidth: 0,
71
+ flexDirection: 'row',
72
+ height: 40
73
+ },
74
+ searchIcon: {
75
+ marginLeft: 8,
76
+ marginRight: 6
77
+ },
78
+ textInput: {
79
+ ...font.regular,
80
+ flex: 1,
81
+ fontSize: 14,
82
+ height: 40,
83
+ letterSpacing: 0.2,
84
+ lineHeight: 18,
85
+ paddingBottom: Platform.OS === 'ios' ? 2 : undefined
86
+ }
87
+ });
88
+ export default SearchBar;
89
+ //# sourceMappingURL=search-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useCallback","Platform","StyleSheet","TextInput","View","TouchableOpacity","CloseIcon","SearchIcon","font","useAppColorScheme","concatTestID","hitSlop","top","left","bottom","right","SearchBar","_ref","ref","style","placeholder","searchPhrase","onSearchPhraseChange","testID","textInputProps","colorScheme","onClear","createElement","styles","container","backgroundColor","white","color","text","searchIcon","_extends","accessibilityRole","onChangeText","placeholderTextColor","returnKeyType","textInput","value","onPress","clearButton","height","width","displayName","create","marginLeft","marginRight","alignItems","borderRadius","borderWidth","flexDirection","regular","flex","fontSize","letterSpacing","lineHeight","paddingBottom","OS","undefined"],"sources":["search-bar.tsx"],"sourcesContent":["import React, { forwardRef, useCallback } from 'react';\nimport { Insets, Platform, StyleProp, StyleSheet, TextInput, TextInputProps, View, ViewStyle } from 'react-native';\n\nimport { TouchableOpacity } from '../accessibility';\nimport { CloseIcon, SearchIcon } from '../icons';\nimport font from '../text/font';\nimport { useAppColorScheme } from '../theme';\nimport { concatTestID } from '../utils';\n\nexport interface SearchBarProps extends TextInputProps {\n style?: StyleProp<ViewStyle>;\n placeholder?: string;\n searchPhrase: string;\n onSearchPhraseChange: (searchPhrase: string) => void;\n}\n\nconst hitSlop: Insets = { top: 10, left: 10, bottom: 10, right: 10 };\n\n// https://www.figma.com/file/52qDYWUMjXAGre1dcnz5bz/Procivis-One-Wallet?node-id=1143-40433&t=HY1KvobxOReLeC8Z-4\nconst SearchBar = forwardRef<TextInput, SearchBarProps>(\n ({ style, placeholder, searchPhrase, onSearchPhraseChange, testID, ...textInputProps }, ref) => {\n const colorScheme = useAppColorScheme();\n\n const onClear = useCallback(() => {\n onSearchPhraseChange('');\n }, [onSearchPhraseChange]);\n\n return (\n <View\n style={[\n styles.container,\n {\n backgroundColor: colorScheme.white,\n },\n style,\n ]}>\n <SearchIcon color={colorScheme.text} style={styles.searchIcon} />\n <TextInput\n accessibilityRole=\"search\"\n onChangeText={onSearchPhraseChange}\n placeholder={placeholder}\n placeholderTextColor={colorScheme.text}\n ref={ref}\n returnKeyType=\"search\"\n style={[styles.textInput, { color: colorScheme.text }]}\n value={searchPhrase}\n testID={testID}\n {...textInputProps}\n />\n {searchPhrase && (\n <TouchableOpacity\n testID={concatTestID(testID, 'clear')}\n accessibilityRole=\"button\"\n hitSlop={hitSlop}\n onPress={onClear}\n style={styles.clearButton}>\n <CloseIcon color={colorScheme.text} height={12} width={12} />\n </TouchableOpacity>\n )}\n </View>\n );\n },\n);\n\nSearchBar.displayName = 'SearchBar';\n\nconst styles = StyleSheet.create({\n clearButton: {\n marginLeft: 6,\n marginRight: 16,\n },\n container: {\n alignItems: 'center',\n borderRadius: 20,\n borderWidth: 0,\n flexDirection: 'row',\n height: 40,\n },\n searchIcon: {\n marginLeft: 8,\n marginRight: 6,\n },\n textInput: {\n ...font.regular,\n flex: 1,\n fontSize: 14,\n height: 40,\n letterSpacing: 0.2,\n lineHeight: 18,\n paddingBottom: Platform.OS === 'ios' ? 2 : undefined,\n },\n});\n\nexport default SearchBar;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,QAAQ,OAAO;AACtD,SAAiBC,QAAQ,EAAaC,UAAU,EAAEC,SAAS,EAAkBC,IAAI,QAAmB,cAAc;AAElH,SAASC,gBAAgB,QAAQ,kBAAkB;AACnD,SAASC,SAAS,EAAEC,UAAU,QAAQ,UAAU;AAChD,OAAOC,IAAI,MAAM,cAAc;AAC/B,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,YAAY,QAAQ,UAAU;AASvC,MAAMC,OAAe,GAAG;EAAEC,GAAG,EAAE,EAAE;EAAEC,IAAI,EAAE,EAAE;EAAEC,MAAM,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;;AAEpE;AACA,MAAMC,SAAS,gBAAGjB,UAAU,CAC1B,CAAAkB,IAAA,EAAwFC,GAAG,KAAK;EAAA,IAA/F;IAAEC,KAAK;IAAEC,WAAW;IAAEC,YAAY;IAAEC,oBAAoB;IAAEC,MAAM;IAAE,GAAGC;EAAe,CAAC,GAAAP,IAAA;EACpF,MAAMQ,WAAW,GAAGhB,iBAAiB,EAAE;EAEvC,MAAMiB,OAAO,GAAG1B,WAAW,CAAC,MAAM;IAChCsB,oBAAoB,CAAC,EAAE,CAAC;EAC1B,CAAC,EAAE,CAACA,oBAAoB,CAAC,CAAC;EAE1B,oBACExB,KAAA,CAAA6B,aAAA,CAACvB,IAAI;IACHe,KAAK,EAAE,CACLS,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEL,WAAW,CAACM;IAC/B,CAAC,EACDZ,KAAK;EACL,gBACFrB,KAAA,CAAA6B,aAAA,CAACpB,UAAU;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U,EAAE;IACVc,UAAU,EAAE,CAAC;IACbC,WAAW,EAAE;EACf,CAAC;EACDT,SAAS,EAAE;IACT,GAAGhC,IAAI,CAAC8C,OAAO;IACfC,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZZ,MAAM,EAAE,EAAE;IACVa,aAAa,EAAE,GAAG;IAClBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE1D,QAAQ,CAAC2D,EAAE,KAAK,KAAK,GAAG,CAAC,GAAGC;EAC7C;AACF,CAAC,CAAC;AAEF,eAAe7C,SAAS"}
@@ -0,0 +1,57 @@
1
+ import React, { useMemo } from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+ import { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';
4
+ import { NextIcon } from '../icons/wallet';
5
+ import { useAppColorScheme } from '../theme/color-scheme-context';
6
+ import SettingItem from './setting-item';
7
+ const ButtonSetting = _ref => {
8
+ let {
9
+ accessory,
10
+ disabled,
11
+ title,
12
+ onPress,
13
+ icon,
14
+ style,
15
+ testID
16
+ } = _ref;
17
+ const colorScheme = useAppColorScheme();
18
+ const accessoryView = useMemo(() => {
19
+ if (!accessory) {
20
+ return /*#__PURE__*/React.createElement(View, {
21
+ style: styles.arrow
22
+ }, /*#__PURE__*/React.createElement(NextIcon, {
23
+ color: colorScheme.text
24
+ }));
25
+ }
26
+ if ( /*#__PURE__*/React.isValidElement(accessory)) {
27
+ return accessory;
28
+ } else {
29
+ const AccessoryComponent = accessory;
30
+ return /*#__PURE__*/React.createElement(AccessoryComponent, null);
31
+ }
32
+ }, [accessory, colorScheme.text]);
33
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
34
+ disabled: disabled,
35
+ accessibilityRole: "button",
36
+ onPress: onPress,
37
+ style: styles.container,
38
+ testID: testID
39
+ }, /*#__PURE__*/React.createElement(SettingItem, {
40
+ icon: icon,
41
+ style: style,
42
+ title: title
43
+ }, accessoryView));
44
+ };
45
+ const styles = StyleSheet.create({
46
+ arrow: {
47
+ alignItems: 'center',
48
+ height: 24,
49
+ justifyContent: 'center',
50
+ width: 24
51
+ },
52
+ container: {
53
+ width: '100%'
54
+ }
55
+ });
56
+ export default ButtonSetting;
57
+ //# sourceMappingURL=button-setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","StyleSheet","View","TouchableOpacity","NextIcon","useAppColorScheme","SettingItem","ButtonSetting","_ref","accessory","disabled","title","onPress","icon","style","testID","colorScheme","accessoryView","createElement","styles","arrow","color","text","isValidElement","AccessoryComponent","accessibilityRole","container","create","alignItems","height","justifyContent","width"],"sources":["button-setting.tsx"],"sourcesContent":["import React, { ComponentType, FunctionComponent, ReactElement, useMemo } from 'react';\nimport { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { NextIcon } from '../icons/wallet';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport SettingItem from './setting-item';\n\nexport type ButtonSettingProps = {\n accessory?: ComponentType<any> | ReactElement;\n disabled?: boolean;\n icon?: ComponentType<any> | ReactElement;\n onPress: () => void;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n title: string;\n};\n\nconst ButtonSetting: FunctionComponent<ButtonSettingProps> = ({\n accessory,\n disabled,\n title,\n onPress,\n icon,\n style,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n\n const accessoryView: React.ReactElement | undefined = useMemo(() => {\n if (!accessory) {\n return (\n <View style={styles.arrow}>\n <NextIcon color={colorScheme.text} />\n </View>\n );\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, colorScheme.text]);\n\n return (\n <TouchableOpacity\n disabled={disabled}\n accessibilityRole=\"button\"\n onPress={onPress}\n style={styles.container}\n testID={testID}>\n <SettingItem icon={icon} style={style} title={title}>\n {accessoryView}\n </SettingItem>\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n arrow: {\n alignItems: 'center',\n height: 24,\n justifyContent: 'center',\n width: 24,\n },\n container: {\n width: '100%',\n },\n});\n\nexport default ButtonSetting;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAoDC,OAAO,QAAQ,OAAO;AACtF,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAErE,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,OAAOC,WAAW,MAAM,gBAAgB;AAYxC,MAAMC,aAAoD,GAAGC,IAAA,IAQvD;EAAA,IARwD;IAC5DC,SAAS;IACTC,QAAQ;IACRC,KAAK;IACLC,OAAO;IACPC,IAAI;IACJC,KAAK;IACLC;EACF,CAAC,GAAAP,IAAA;EACC,MAAMQ,WAAW,GAAGX,iBAAiB,EAAE;EAEvC,MAAMY,aAA6C,GAAGjB,OAAO,CAAC,MAAM;IAClE,IAAI,CAACS,SAAS,EAAE;MACd,oBACEV,KAAA,CAAAmB,aAAA,CAAChB,IAAI;QAACY,KAAK,EAAEK,MAAM,CAACC;MAAM,gBACxBrB,KAAA,CAAAmB,aAAA,CAACd,QAAQ;QAACiB,KAAK,EAAEL,WAAW,CAACM;MAAK,EAAG,CAChC;IAEX;IACA,kBAAIvB,KAAK,CAACwB,cAAc,CAACd,SAAS,CAAC,EAAE;MACnC,OAAOA,SAAS;IAClB,CAAC,MAAM;MACL,MAAMe,kBAAkB,GAAGf,SAAqC;MAChE,oBAAOV,KAAA,CAAAmB,aAAA,CAACM,kBAAkB,OAAG;IAC/B;EACF,CAAC,EAAE,CAACf,SAAS,EAAEO,WAAW,CAACM,IAAI,CAAC,CAAC;EAEjC,oBACEvB,KAAA,CAAAmB,aAAA,CAACf,gBAAgB;IACfO,QAAQ,EAAEA,QAAS;IACnBe,iBAAiB,EAAC,QAAQ;IAC1Bb,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAEK,MAAM,CAACO,SAAU;IACxBX,MAAM,EAAEA;EAAO,gBACfhB,KAAA,CAAAmB,aAAA,CAACZ,WAAW;IAACO,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA,KAAM;IAACH,KAAK,EAAEA;EAAM,GACjDM,aAAa,CACF,CACG;AAEvB,CAAC;AAED,MAAME,MAAM,GAAGlB,UAAU,CAAC0B,MAAM,CAAC;EAC/BP,KAAK,EAAE;IACLQ,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,KAAK,EAAE;EACT,CAAC;EACDL,SAAS,EAAE;IACTK,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAexB,aAAa"}
@@ -0,0 +1,11 @@
1
+ import ButtonSetting, { ButtonSettingProps } from './button-setting';
2
+ import SettingItem, { SettingItemProps } from './setting-item';
3
+ import SettingItemSeparator, { SettingItemSeparatorProps } from './setting-item-separator';
4
+ import SettingsButton, { SettingsButtonProps } from './settings-button';
5
+ import SwitchSetting, { SwitchSettingProps } from './switch-setting';
6
+ export { ButtonSetting, ButtonSettingProps };
7
+ export { SettingItem, SettingItemProps };
8
+ export { SettingItemSeparator, SettingItemSeparatorProps };
9
+ export { SettingsButton, SettingsButtonProps };
10
+ export { SwitchSetting, SwitchSettingProps };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ButtonSetting","ButtonSettingProps","SettingItem","SettingItemProps","SettingItemSeparator","SettingItemSeparatorProps","SettingsButton","SettingsButtonProps","SwitchSetting","SwitchSettingProps"],"sources":["index.ts"],"sourcesContent":["import ButtonSetting, { ButtonSettingProps } from './button-setting';\nimport SettingItem, { SettingItemProps } from './setting-item';\nimport SettingItemSeparator, { SettingItemSeparatorProps } from './setting-item-separator';\nimport SettingsButton, { SettingsButtonProps } from './settings-button';\nimport SwitchSetting, { SwitchSettingProps } from './switch-setting';\n\nexport { ButtonSetting, ButtonSettingProps };\nexport { SettingItem, SettingItemProps };\nexport { SettingItemSeparator, SettingItemSeparatorProps };\nexport { SettingsButton, SettingsButtonProps };\nexport { SwitchSetting, SwitchSettingProps };\n"],"mappings":"AAAA,OAAOA,aAAa,IAAIC,kBAAkB,QAAQ,kBAAkB;AACpE,OAAOC,WAAW,IAAIC,gBAAgB,QAAQ,gBAAgB;AAC9D,OAAOC,oBAAoB,IAAIC,yBAAyB,QAAQ,0BAA0B;AAC1F,OAAOC,cAAc,IAAIC,mBAAmB,QAAQ,mBAAmB;AACvE,OAAOC,aAAa,IAAIC,kBAAkB,QAAQ,kBAAkB;AAEpE,SAAST,aAAa,EAAEC,kBAAkB;AAC1C,SAASC,WAAW,EAAEC,gBAAgB;AACtC,SAASC,oBAAoB,EAAEC,yBAAyB;AACxD,SAASC,cAAc,EAAEC,mBAAmB;AAC5C,SAASC,aAAa,EAAEC,kBAAkB"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+ import { useAppColorScheme } from '../theme/color-scheme-context';
4
+ const SettingItemSeparator = _ref => {
5
+ let {
6
+ color,
7
+ style
8
+ } = _ref;
9
+ const colorScheme = useAppColorScheme();
10
+ return /*#__PURE__*/React.createElement(View, {
11
+ style: [styles.wrapper, {
12
+ backgroundColor: colorScheme.white
13
+ }, style]
14
+ }, /*#__PURE__*/React.createElement(View, {
15
+ style: [styles.separator, {
16
+ backgroundColor: color !== null && color !== void 0 ? color : colorScheme.background
17
+ }]
18
+ }));
19
+ };
20
+ const styles = StyleSheet.create({
21
+ separator: {
22
+ height: '100%',
23
+ width: '100%'
24
+ },
25
+ wrapper: {
26
+ height: 1,
27
+ marginHorizontal: 16,
28
+ paddingHorizontal: 12
29
+ }
30
+ });
31
+ export default SettingItemSeparator;
32
+ //# sourceMappingURL=setting-item-separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","useAppColorScheme","SettingItemSeparator","_ref","color","style","colorScheme","createElement","styles","wrapper","backgroundColor","white","separator","background","create","height","width","marginHorizontal","paddingHorizontal"],"sources":["setting-item-separator.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ColorValue, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nexport type SettingItemSeparatorProps = {\n color?: ColorValue;\n style?: StyleProp<ViewStyle>;\n};\n\nconst SettingItemSeparator: FC<SettingItemSeparatorProps> = ({ color, style }) => {\n const colorScheme = useAppColorScheme();\n return (\n <View style={[styles.wrapper, { backgroundColor: colorScheme.white }, style]}>\n <View style={[styles.separator, { backgroundColor: color ?? colorScheme.background }]} />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n separator: {\n height: '100%',\n width: '100%',\n },\n wrapper: {\n height: 1,\n marginHorizontal: 16,\n paddingHorizontal: 12,\n },\n});\n\nexport default SettingItemSeparator;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAAgCC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAEjF,SAASC,iBAAiB,QAAQ,+BAA+B;AAOjE,MAAMC,oBAAmD,GAAGC,IAAA,IAAsB;EAAA,IAArB;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAAF,IAAA;EAC3E,MAAMG,WAAW,GAAGL,iBAAiB,EAAE;EACvC,oBACEH,KAAA,CAAAS,aAAA,CAACP,IAAI;IAACK,KAAK,EAAE,CAACG,MAAM,CAACC,OAAO,EAAE;MAAEC,eAAe,EAAEJ,WAAW,CAACK;IAAM,CAAC,EAAEN,KAAK;EAAE,gBAC3EP,KAAA,CAAAS,aAAA,CAACP,IAAI;IAACK,KAAK,EAAE,CAACG,MAAM,CAACI,SAAS,EAAE;MAAEF,eAAe,EAAEN,KAAK,aAALA,KAAK,cAALA,KAAK,GAAIE,WAAW,CAACO;IAAW,CAAC;EAAE,EAAG,CACpF;AAEX,CAAC;AAED,MAAML,MAAM,GAAGT,UAAU,CAACe,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE;EACT,CAAC;EACDP,OAAO,EAAE;IACPM,MAAM,EAAE,CAAC;IACTE,gBAAgB,EAAE,EAAE;IACpBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAEF,eAAehB,oBAAoB"}