@kiosinc/commons-rn 0.1.7

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 (338) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +31 -0
  3. package/lib/commonjs/auth/api/authentication.js +20 -0
  4. package/lib/commonjs/auth/api/authentication.js.map +1 -0
  5. package/lib/commonjs/auth/appLogo.svg +9 -0
  6. package/lib/commonjs/auth/hooks/useAuthenticateRequests.js +52 -0
  7. package/lib/commonjs/auth/hooks/useAuthenticateRequests.js.map +1 -0
  8. package/lib/commonjs/auth/hooks/useAuthentication.js +89 -0
  9. package/lib/commonjs/auth/hooks/useAuthentication.js.map +1 -0
  10. package/lib/commonjs/auth/index.js +33 -0
  11. package/lib/commonjs/auth/index.js.map +1 -0
  12. package/lib/commonjs/auth/providers/authentication/AuthenticationProvider.js +57 -0
  13. package/lib/commonjs/auth/providers/authentication/AuthenticationProvider.js.map +1 -0
  14. package/lib/commonjs/auth/providers/authentication/actions/authentication.actions.js +13 -0
  15. package/lib/commonjs/auth/providers/authentication/actions/authentication.actions.js.map +1 -0
  16. package/lib/commonjs/auth/providers/authentication/index.js +50 -0
  17. package/lib/commonjs/auth/providers/authentication/index.js.map +1 -0
  18. package/lib/commonjs/auth/providers/authentication/reducer/authentication.reducer.js +21 -0
  19. package/lib/commonjs/auth/providers/authentication/reducer/authentication.reducer.js.map +1 -0
  20. package/lib/commonjs/auth/providers/authentication/types/authentication.types.js +11 -0
  21. package/lib/commonjs/auth/providers/authentication/types/authentication.types.js.map +1 -0
  22. package/lib/commonjs/auth/screens/LoginScreen.js +131 -0
  23. package/lib/commonjs/auth/screens/LoginScreen.js.map +1 -0
  24. package/lib/commonjs/auth/screens/ResetPassword.js +90 -0
  25. package/lib/commonjs/auth/screens/ResetPassword.js.map +1 -0
  26. package/lib/commonjs/auth/screens/ResetPasswordInstructionsSent.js +34 -0
  27. package/lib/commonjs/auth/screens/ResetPasswordInstructionsSent.js.map +1 -0
  28. package/lib/commonjs/auth/screens/SignUp.js +176 -0
  29. package/lib/commonjs/auth/screens/SignUp.js.map +1 -0
  30. package/lib/commonjs/auth/screens/SignUpPassword.js +103 -0
  31. package/lib/commonjs/auth/screens/SignUpPassword.js.map +1 -0
  32. package/lib/commonjs/auth/screens/VerifyPhoneNumber.js +95 -0
  33. package/lib/commonjs/auth/screens/VerifyPhoneNumber.js.map +1 -0
  34. package/lib/commonjs/auth/screens/index.js +37 -0
  35. package/lib/commonjs/auth/screens/index.js.map +1 -0
  36. package/lib/commonjs/auth/screens/validators.js +39 -0
  37. package/lib/commonjs/auth/screens/validators.js.map +1 -0
  38. package/lib/commonjs/components/Alert.js +109 -0
  39. package/lib/commonjs/components/Alert.js.map +1 -0
  40. package/lib/commonjs/components/Badge.js +20 -0
  41. package/lib/commonjs/components/Badge.js.map +1 -0
  42. package/lib/commonjs/components/BottomSheet.js +60 -0
  43. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  44. package/lib/commonjs/components/Button.js +20 -0
  45. package/lib/commonjs/components/Button.js.map +1 -0
  46. package/lib/commonjs/components/Card.js +19 -0
  47. package/lib/commonjs/components/Card.js.map +1 -0
  48. package/lib/commonjs/components/Divider.js +19 -0
  49. package/lib/commonjs/components/Divider.js.map +1 -0
  50. package/lib/commonjs/components/FAB.js +19 -0
  51. package/lib/commonjs/components/FAB.js.map +1 -0
  52. package/lib/commonjs/components/Header.js +73 -0
  53. package/lib/commonjs/components/Header.js.map +1 -0
  54. package/lib/commonjs/components/IconButton.js +19 -0
  55. package/lib/commonjs/components/IconButton.js.map +1 -0
  56. package/lib/commonjs/components/Image.js +45 -0
  57. package/lib/commonjs/components/Image.js.map +1 -0
  58. package/lib/commonjs/components/KeyboardAvoidingView.js +23 -0
  59. package/lib/commonjs/components/KeyboardAvoidingView.js.map +1 -0
  60. package/lib/commonjs/components/LineLoader.js +61 -0
  61. package/lib/commonjs/components/LineLoader.js.map +1 -0
  62. package/lib/commonjs/components/LinkButton.js +32 -0
  63. package/lib/commonjs/components/LinkButton.js.map +1 -0
  64. package/lib/commonjs/components/OtpInputs.js +97 -0
  65. package/lib/commonjs/components/OtpInputs.js.map +1 -0
  66. package/lib/commonjs/components/ParentView.js +81 -0
  67. package/lib/commonjs/components/ParentView.js.map +1 -0
  68. package/lib/commonjs/components/Searchbar.js +22 -0
  69. package/lib/commonjs/components/Searchbar.js.map +1 -0
  70. package/lib/commonjs/components/SelectionDialog.js +130 -0
  71. package/lib/commonjs/components/SelectionDialog.js.map +1 -0
  72. package/lib/commonjs/components/Snackbar.js +69 -0
  73. package/lib/commonjs/components/Snackbar.js.map +1 -0
  74. package/lib/commonjs/components/Surface.js +19 -0
  75. package/lib/commonjs/components/Surface.js.map +1 -0
  76. package/lib/commonjs/components/Text.js +20 -0
  77. package/lib/commonjs/components/Text.js.map +1 -0
  78. package/lib/commonjs/components/TextInput.js +65 -0
  79. package/lib/commonjs/components/TextInput.js.map +1 -0
  80. package/lib/commonjs/components/ToggleButton.js +19 -0
  81. package/lib/commonjs/components/ToggleButton.js.map +1 -0
  82. package/lib/commonjs/components/Video.js +42 -0
  83. package/lib/commonjs/components/Video.js.map +1 -0
  84. package/lib/commonjs/components/View.js +20 -0
  85. package/lib/commonjs/components/View.js.map +1 -0
  86. package/lib/commonjs/components/index.js +174 -0
  87. package/lib/commonjs/components/index.js.map +1 -0
  88. package/lib/commonjs/index.js +37 -0
  89. package/lib/commonjs/index.js.map +1 -0
  90. package/lib/commonjs/theme/index.js +43 -0
  91. package/lib/commonjs/theme/index.js.map +1 -0
  92. package/lib/commonjs/theme/theme.js +126 -0
  93. package/lib/commonjs/theme/theme.js.map +1 -0
  94. package/lib/commonjs/theme/tokens.js +204 -0
  95. package/lib/commonjs/theme/tokens.js.map +1 -0
  96. package/lib/commonjs/types/index.d.js +2 -0
  97. package/lib/commonjs/types/index.d.js.map +1 -0
  98. package/lib/commonjs/types/svg.d.js +2 -0
  99. package/lib/commonjs/types/svg.d.js.map +1 -0
  100. package/lib/module/auth/api/authentication.js +11 -0
  101. package/lib/module/auth/api/authentication.js.map +1 -0
  102. package/lib/module/auth/appLogo.svg +9 -0
  103. package/lib/module/auth/hooks/useAuthenticateRequests.js +44 -0
  104. package/lib/module/auth/hooks/useAuthenticateRequests.js.map +1 -0
  105. package/lib/module/auth/hooks/useAuthentication.js +81 -0
  106. package/lib/module/auth/hooks/useAuthentication.js.map +1 -0
  107. package/lib/module/auth/index.js +5 -0
  108. package/lib/module/auth/index.js.map +1 -0
  109. package/lib/module/auth/providers/authentication/AuthenticationProvider.js +45 -0
  110. package/lib/module/auth/providers/authentication/AuthenticationProvider.js.map +1 -0
  111. package/lib/module/auth/providers/authentication/actions/authentication.actions.js +6 -0
  112. package/lib/module/auth/providers/authentication/actions/authentication.actions.js.map +1 -0
  113. package/lib/module/auth/providers/authentication/index.js +5 -0
  114. package/lib/module/auth/providers/authentication/index.js.map +1 -0
  115. package/lib/module/auth/providers/authentication/reducer/authentication.reducer.js +14 -0
  116. package/lib/module/auth/providers/authentication/reducer/authentication.reducer.js.map +1 -0
  117. package/lib/module/auth/providers/authentication/types/authentication.types.js +5 -0
  118. package/lib/module/auth/providers/authentication/types/authentication.types.js.map +1 -0
  119. package/lib/module/auth/screens/LoginScreen.js +121 -0
  120. package/lib/module/auth/screens/LoginScreen.js.map +1 -0
  121. package/lib/module/auth/screens/ResetPassword.js +82 -0
  122. package/lib/module/auth/screens/ResetPassword.js.map +1 -0
  123. package/lib/module/auth/screens/ResetPasswordInstructionsSent.js +26 -0
  124. package/lib/module/auth/screens/ResetPasswordInstructionsSent.js.map +1 -0
  125. package/lib/module/auth/screens/SignUp.js +168 -0
  126. package/lib/module/auth/screens/SignUp.js.map +1 -0
  127. package/lib/module/auth/screens/SignUpPassword.js +95 -0
  128. package/lib/module/auth/screens/SignUpPassword.js.map +1 -0
  129. package/lib/module/auth/screens/VerifyPhoneNumber.js +87 -0
  130. package/lib/module/auth/screens/VerifyPhoneNumber.js.map +1 -0
  131. package/lib/module/auth/screens/index.js +29 -0
  132. package/lib/module/auth/screens/index.js.map +1 -0
  133. package/lib/module/auth/screens/validators.js +31 -0
  134. package/lib/module/auth/screens/validators.js.map +1 -0
  135. package/lib/module/components/Alert.js +100 -0
  136. package/lib/module/components/Alert.js.map +1 -0
  137. package/lib/module/components/Badge.js +12 -0
  138. package/lib/module/components/Badge.js.map +1 -0
  139. package/lib/module/components/BottomSheet.js +52 -0
  140. package/lib/module/components/BottomSheet.js.map +1 -0
  141. package/lib/module/components/Button.js +12 -0
  142. package/lib/module/components/Button.js.map +1 -0
  143. package/lib/module/components/Card.js +11 -0
  144. package/lib/module/components/Card.js.map +1 -0
  145. package/lib/module/components/Divider.js +11 -0
  146. package/lib/module/components/Divider.js.map +1 -0
  147. package/lib/module/components/FAB.js +11 -0
  148. package/lib/module/components/FAB.js.map +1 -0
  149. package/lib/module/components/Header.js +66 -0
  150. package/lib/module/components/Header.js.map +1 -0
  151. package/lib/module/components/IconButton.js +11 -0
  152. package/lib/module/components/IconButton.js.map +1 -0
  153. package/lib/module/components/Image.js +35 -0
  154. package/lib/module/components/Image.js.map +1 -0
  155. package/lib/module/components/KeyboardAvoidingView.js +15 -0
  156. package/lib/module/components/KeyboardAvoidingView.js.map +1 -0
  157. package/lib/module/components/LineLoader.js +52 -0
  158. package/lib/module/components/LineLoader.js.map +1 -0
  159. package/lib/module/components/LinkButton.js +24 -0
  160. package/lib/module/components/LinkButton.js.map +1 -0
  161. package/lib/module/components/OtpInputs.js +87 -0
  162. package/lib/module/components/OtpInputs.js.map +1 -0
  163. package/lib/module/components/ParentView.js +72 -0
  164. package/lib/module/components/ParentView.js.map +1 -0
  165. package/lib/module/components/Searchbar.js +14 -0
  166. package/lib/module/components/Searchbar.js.map +1 -0
  167. package/lib/module/components/SelectionDialog.js +121 -0
  168. package/lib/module/components/SelectionDialog.js.map +1 -0
  169. package/lib/module/components/Snackbar.js +60 -0
  170. package/lib/module/components/Snackbar.js.map +1 -0
  171. package/lib/module/components/Surface.js +11 -0
  172. package/lib/module/components/Surface.js.map +1 -0
  173. package/lib/module/components/Text.js +12 -0
  174. package/lib/module/components/Text.js.map +1 -0
  175. package/lib/module/components/TextInput.js +56 -0
  176. package/lib/module/components/TextInput.js.map +1 -0
  177. package/lib/module/components/ToggleButton.js +11 -0
  178. package/lib/module/components/ToggleButton.js.map +1 -0
  179. package/lib/module/components/Video.js +32 -0
  180. package/lib/module/components/Video.js.map +1 -0
  181. package/lib/module/components/View.js +12 -0
  182. package/lib/module/components/View.js.map +1 -0
  183. package/lib/module/components/index.js +25 -0
  184. package/lib/module/components/index.js.map +1 -0
  185. package/lib/module/index.js +6 -0
  186. package/lib/module/index.js.map +1 -0
  187. package/lib/module/theme/index.js +36 -0
  188. package/lib/module/theme/index.js.map +1 -0
  189. package/lib/module/theme/theme.js +119 -0
  190. package/lib/module/theme/theme.js.map +1 -0
  191. package/lib/module/theme/tokens.js +198 -0
  192. package/lib/module/theme/tokens.js.map +1 -0
  193. package/lib/module/types/index.d.js +2 -0
  194. package/lib/module/types/index.d.js.map +1 -0
  195. package/lib/module/types/svg.d.js +2 -0
  196. package/lib/module/types/svg.d.js.map +1 -0
  197. package/lib/typescript/src/auth/api/authentication.d.ts +4 -0
  198. package/lib/typescript/src/auth/api/authentication.d.ts.map +1 -0
  199. package/lib/typescript/src/auth/hooks/useAuthenticateRequests.d.ts +2 -0
  200. package/lib/typescript/src/auth/hooks/useAuthenticateRequests.d.ts.map +1 -0
  201. package/lib/typescript/src/auth/hooks/useAuthentication.d.ts +19 -0
  202. package/lib/typescript/src/auth/hooks/useAuthentication.d.ts.map +1 -0
  203. package/lib/typescript/src/auth/index.d.ts +5 -0
  204. package/lib/typescript/src/auth/index.d.ts.map +1 -0
  205. package/lib/typescript/src/auth/providers/authentication/AuthenticationProvider.d.ts +8 -0
  206. package/lib/typescript/src/auth/providers/authentication/AuthenticationProvider.d.ts.map +1 -0
  207. package/lib/typescript/src/auth/providers/authentication/actions/authentication.actions.d.ts +3 -0
  208. package/lib/typescript/src/auth/providers/authentication/actions/authentication.actions.d.ts.map +1 -0
  209. package/lib/typescript/src/auth/providers/authentication/index.d.ts +5 -0
  210. package/lib/typescript/src/auth/providers/authentication/index.d.ts.map +1 -0
  211. package/lib/typescript/src/auth/providers/authentication/reducer/authentication.reducer.d.ts +3 -0
  212. package/lib/typescript/src/auth/providers/authentication/reducer/authentication.reducer.d.ts.map +1 -0
  213. package/lib/typescript/src/auth/providers/authentication/types/authentication.types.d.ts +15 -0
  214. package/lib/typescript/src/auth/providers/authentication/types/authentication.types.d.ts.map +1 -0
  215. package/lib/typescript/src/auth/screens/LoginScreen.d.ts +3 -0
  216. package/lib/typescript/src/auth/screens/LoginScreen.d.ts.map +1 -0
  217. package/lib/typescript/src/auth/screens/ResetPassword.d.ts +3 -0
  218. package/lib/typescript/src/auth/screens/ResetPassword.d.ts.map +1 -0
  219. package/lib/typescript/src/auth/screens/ResetPasswordInstructionsSent.d.ts +8 -0
  220. package/lib/typescript/src/auth/screens/ResetPasswordInstructionsSent.d.ts.map +1 -0
  221. package/lib/typescript/src/auth/screens/SignUp.d.ts +9 -0
  222. package/lib/typescript/src/auth/screens/SignUp.d.ts.map +1 -0
  223. package/lib/typescript/src/auth/screens/SignUpPassword.d.ts +8 -0
  224. package/lib/typescript/src/auth/screens/SignUpPassword.d.ts.map +1 -0
  225. package/lib/typescript/src/auth/screens/VerifyPhoneNumber.d.ts +8 -0
  226. package/lib/typescript/src/auth/screens/VerifyPhoneNumber.d.ts.map +1 -0
  227. package/lib/typescript/src/auth/screens/index.d.ts +3 -0
  228. package/lib/typescript/src/auth/screens/index.d.ts.map +1 -0
  229. package/lib/typescript/src/auth/screens/validators.d.ts +36 -0
  230. package/lib/typescript/src/auth/screens/validators.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Alert.d.ts +19 -0
  232. package/lib/typescript/src/components/Alert.d.ts.map +1 -0
  233. package/lib/typescript/src/components/Badge.d.ts +9 -0
  234. package/lib/typescript/src/components/Badge.d.ts.map +1 -0
  235. package/lib/typescript/src/components/BottomSheet.d.ts +7 -0
  236. package/lib/typescript/src/components/BottomSheet.d.ts.map +1 -0
  237. package/lib/typescript/src/components/Button.d.ts +9 -0
  238. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  239. package/lib/typescript/src/components/Card.d.ts +9 -0
  240. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  241. package/lib/typescript/src/components/Divider.d.ts +9 -0
  242. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  243. package/lib/typescript/src/components/FAB.d.ts +9 -0
  244. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  245. package/lib/typescript/src/components/Header.d.ts +18 -0
  246. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  247. package/lib/typescript/src/components/IconButton.d.ts +9 -0
  248. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  249. package/lib/typescript/src/components/Image.d.ts +9 -0
  250. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  251. package/lib/typescript/src/components/KeyboardAvoidingView.d.ts +9 -0
  252. package/lib/typescript/src/components/KeyboardAvoidingView.d.ts.map +1 -0
  253. package/lib/typescript/src/components/LineLoader.d.ts +10 -0
  254. package/lib/typescript/src/components/LineLoader.d.ts.map +1 -0
  255. package/lib/typescript/src/components/LinkButton.d.ts +9 -0
  256. package/lib/typescript/src/components/LinkButton.d.ts.map +1 -0
  257. package/lib/typescript/src/components/OtpInputs.d.ts +18 -0
  258. package/lib/typescript/src/components/OtpInputs.d.ts.map +1 -0
  259. package/lib/typescript/src/components/ParentView.d.ts +19 -0
  260. package/lib/typescript/src/components/ParentView.d.ts.map +1 -0
  261. package/lib/typescript/src/components/Searchbar.d.ts +9 -0
  262. package/lib/typescript/src/components/Searchbar.d.ts.map +1 -0
  263. package/lib/typescript/src/components/SelectionDialog.d.ts +20 -0
  264. package/lib/typescript/src/components/SelectionDialog.d.ts.map +1 -0
  265. package/lib/typescript/src/components/Snackbar.d.ts +15 -0
  266. package/lib/typescript/src/components/Snackbar.d.ts.map +1 -0
  267. package/lib/typescript/src/components/Surface.d.ts +9 -0
  268. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  269. package/lib/typescript/src/components/Text.d.ts +13 -0
  270. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  271. package/lib/typescript/src/components/TextInput.d.ts +12 -0
  272. package/lib/typescript/src/components/TextInput.d.ts.map +1 -0
  273. package/lib/typescript/src/components/ToggleButton.d.ts +9 -0
  274. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  275. package/lib/typescript/src/components/Video.d.ts +4 -0
  276. package/lib/typescript/src/components/Video.d.ts.map +1 -0
  277. package/lib/typescript/src/components/View.d.ts +9 -0
  278. package/lib/typescript/src/components/View.d.ts.map +1 -0
  279. package/lib/typescript/src/components/index.d.ts +25 -0
  280. package/lib/typescript/src/components/index.d.ts.map +1 -0
  281. package/lib/typescript/src/index.d.ts +4 -0
  282. package/lib/typescript/src/index.d.ts.map +1 -0
  283. package/lib/typescript/src/theme/index.d.ts +284 -0
  284. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  285. package/lib/typescript/src/theme/theme.d.ts +4 -0
  286. package/lib/typescript/src/theme/theme.d.ts.map +1 -0
  287. package/lib/typescript/src/theme/tokens.d.ts +371 -0
  288. package/lib/typescript/src/theme/tokens.d.ts.map +1 -0
  289. package/package.json +191 -0
  290. package/src/auth/api/authentication.ts +13 -0
  291. package/src/auth/appLogo.svg +9 -0
  292. package/src/auth/hooks/useAuthenticateRequests.ts +56 -0
  293. package/src/auth/hooks/useAuthentication.ts +106 -0
  294. package/src/auth/index.ts +4 -0
  295. package/src/auth/providers/authentication/AuthenticationProvider.tsx +68 -0
  296. package/src/auth/providers/authentication/actions/authentication.actions.ts +10 -0
  297. package/src/auth/providers/authentication/index.ts +4 -0
  298. package/src/auth/providers/authentication/reducer/authentication.reducer.ts +21 -0
  299. package/src/auth/providers/authentication/types/authentication.types.ts +17 -0
  300. package/src/auth/screens/LoginScreen.tsx +140 -0
  301. package/src/auth/screens/ResetPassword.tsx +85 -0
  302. package/src/auth/screens/ResetPasswordInstructionsSent.tsx +32 -0
  303. package/src/auth/screens/SignUp.tsx +176 -0
  304. package/src/auth/screens/SignUpPassword.tsx +124 -0
  305. package/src/auth/screens/VerifyPhoneNumber.tsx +100 -0
  306. package/src/auth/screens/index.tsx +26 -0
  307. package/src/auth/screens/validators.ts +73 -0
  308. package/src/components/Alert.tsx +157 -0
  309. package/src/components/Badge.tsx +50 -0
  310. package/src/components/BottomSheet.tsx +72 -0
  311. package/src/components/Button.tsx +47 -0
  312. package/src/components/Card.tsx +47 -0
  313. package/src/components/Divider.tsx +47 -0
  314. package/src/components/FAB.tsx +47 -0
  315. package/src/components/Header.tsx +123 -0
  316. package/src/components/IconButton.tsx +47 -0
  317. package/src/components/Image.tsx +78 -0
  318. package/src/components/KeyboardAvoidingView.tsx +55 -0
  319. package/src/components/LineLoader.tsx +70 -0
  320. package/src/components/LinkButton.tsx +64 -0
  321. package/src/components/OtpInputs.tsx +149 -0
  322. package/src/components/ParentView.tsx +164 -0
  323. package/src/components/Searchbar.tsx +47 -0
  324. package/src/components/SelectionDialog.tsx +191 -0
  325. package/src/components/Snackbar.tsx +83 -0
  326. package/src/components/Surface.tsx +47 -0
  327. package/src/components/Text.tsx +70 -0
  328. package/src/components/TextInput.tsx +116 -0
  329. package/src/components/ToggleButton.tsx +47 -0
  330. package/src/components/Video.tsx +37 -0
  331. package/src/components/View.tsx +55 -0
  332. package/src/components/index.ts +24 -0
  333. package/src/index.tsx +5 -0
  334. package/src/theme/index.ts +37 -0
  335. package/src/theme/theme.ts +125 -0
  336. package/src/theme/tokens.ts +209 -0
  337. package/src/types/index.d.ts +1 -0
  338. package/src/types/svg.d.ts +4 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.IconButton = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _restyle = require("@shopify/restyle");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
12
+ const IconButton = ({
13
+ ...rest
14
+ }) => {
15
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
16
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.IconButton, props);
17
+ };
18
+ exports.IconButton = IconButton;
19
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativePaper","_restyle","obj","__esModule","default","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","IconButton","rest","props","useRestyle","createElement","exports"],"sourceRoot":"../../../src","sources":["components/IconButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAiB0B,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAW1B,MAAMG,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAIK,MAAMC,UAAU,GAAGA,CAAC;EAAE,GAAGC;AAAY,CAAC,KAAK;EAChD,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACZ,gBAAgB,EAASU,IAAI,CAAC;EAEvD,oBAAOlB,MAAA,CAAAO,OAAA,CAAAc,aAAA,CAAClB,iBAAA,CAAAc,UAAC,EAAKE,KAAQ,CAAC;AACzB,CAAC;AAACG,OAAA,CAAAL,UAAA,GAAAA,UAAA"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Image = void 0;
7
+ var _View = require("./View");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNativePaper = require("react-native-paper");
10
+ var _IconButton = require("./IconButton");
11
+ var _restyle = require("@shopify/restyle");
12
+ var _reactNativeFastImage = _interopRequireDefault(require("react-native-fast-image"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ 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); }
17
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
18
+ const Image = ({
19
+ ...rest
20
+ }) => {
21
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
22
+ const [status, setStatus] = (0, _react.useState)('loading');
23
+ return /*#__PURE__*/_react.default.createElement(_View.View, {
24
+ flex: 1
25
+ }, /*#__PURE__*/_react.default.createElement(_View.View, {
26
+ top: 0,
27
+ bottom: 0,
28
+ right: 0,
29
+ left: 0,
30
+ position: "absolute",
31
+ alignItems: "center",
32
+ justifyContent: "center"
33
+ }, status === 'loading' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.ActivityIndicator, null), status === 'failed' && /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, {
34
+ icon: "image-broken-variant"
35
+ })), /*#__PURE__*/_react.default.createElement(_reactNativeFastImage.default, _extends({}, props, {
36
+ onLoad: () => {
37
+ setStatus('success');
38
+ },
39
+ onError: () => {
40
+ setStatus('failed');
41
+ }
42
+ })));
43
+ };
44
+ exports.Image = Image;
45
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_View","require","_react","_interopRequireWildcard","_reactNativePaper","_IconButton","_restyle","_reactNativeFastImage","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","Image","rest","props","useRestyle","status","setStatus","useState","createElement","View","flex","top","bottom","right","left","alignItems","justifyContent","ActivityIndicator","IconButton","icon","onLoad","onError","exports"],"sourceRoot":"../../../src","sources":["components/Image.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAmBA,IAAAM,qBAAA,GAAAC,sBAAA,CAAAP,OAAA;AAAyE,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AAE,CAAC,EAC7CZ,MAAM,KAAK,QAAQ,iBAAInD,MAAA,CAAAS,OAAA,CAAA6C,aAAA,CAACnD,WAAA,CAAA6D,UAAU;IAACC,IAAI,EAAC;EAAsB,CAAE,CAC7D,CAAC,eACPjE,MAAA,CAAAS,OAAA,CAAA6C,aAAA,CAACjD,qBAAA,CAAAI,OAAS,EAAAoB,QAAA,KACJoB,KAAK;IACTiB,MAAM,EAAEA,CAAA,KAAM;MACZd,SAAS,CAAC,SAAS,CAAC;IACtB,CAAE;IACFe,OAAO,EAAEA,CAAA,KAAM;MACbf,SAAS,CAAC,QAAQ,CAAC;IACrB;EAAE,EACH,CACG,CAAC;AAEX,CAAC;AAACgB,OAAA,CAAArB,KAAA,GAAAA,KAAA"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.KeyboardAvoidingView = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _restyle = require("@shopify/restyle");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ 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); }
12
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
13
+ const KeyboardAvoidingView = ({
14
+ children,
15
+ ...rest
16
+ }) => {
17
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
18
+ return /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, _extends({
19
+ behavior: "padding"
20
+ }, props), children);
21
+ };
22
+ exports.KeyboardAvoidingView = KeyboardAvoidingView;
23
+ //# sourceMappingURL=KeyboardAvoidingView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_restyle","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","KeyboardAvoidingView","children","rest","props","useRestyle","createElement","behavior","exports"],"sourceRoot":"../../../src","sources":["components/KeyboardAvoidingView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAiB0B,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAW1B,MAAMQ,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAIK,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAY,CAAC,KAAK;EACpE,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACb,gBAAgB,EAAEW,IAAI,CAAC;EAEhD,oBACEjC,MAAA,CAAAO,OAAA,CAAA6B,aAAA,CAACjC,YAAA,CAAA4B,oBAAE,EAAAvB,QAAA;IAAC6B,QAAQ,EAAC;EAAS,GAAKH,KAAK,GAC7BF,QACC,CAAC;AAET,CAAC;AAACM,OAAA,CAAAP,oBAAA,GAAAA,oBAAA"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LineLoader = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativePaper = require("react-native-paper");
10
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ const LineLoader = ({
14
+ backgroundColor,
15
+ foregroundColor,
16
+ height = 4,
17
+ progress = 0
18
+ }) => {
19
+ const theme = (0, _reactNativePaper.useTheme)();
20
+ const animatedProgress = (0, _reactNativeReanimated.useSharedValue)(0);
21
+ (0, _react.useEffect)(() => {
22
+ animatedProgress.value = (0, _reactNativeReanimated.withTiming)(progress, {
23
+ duration: 500,
24
+ easing: _reactNativeReanimated.Easing.linear
25
+ });
26
+ // eslint-disable-next-line react-hooks/exhaustive-deps
27
+ }, [progress]);
28
+ const lineStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
29
+ return {
30
+ width: `${animatedProgress.value * 100}%`,
31
+ backgroundColor: foregroundColor ?? theme.colors.primary,
32
+ height
33
+ };
34
+ });
35
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
36
+ style: [styles.container, {
37
+ height
38
+ }]
39
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
40
+ style: [styles.background, {
41
+ backgroundColor: backgroundColor ?? theme.colors.onSurfaceDisabled
42
+ }]
43
+ }), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
44
+ style: [styles.line, lineStyle]
45
+ }));
46
+ };
47
+ exports.LineLoader = LineLoader;
48
+ const styles = _reactNative.StyleSheet.create({
49
+ container: {
50
+ overflow: 'hidden'
51
+ },
52
+ background: {
53
+ flex: 1
54
+ },
55
+ line: {
56
+ position: 'absolute',
57
+ top: 0,
58
+ left: 0
59
+ }
60
+ });
61
+ //# sourceMappingURL=LineLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_reactNativeReanimated","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LineLoader","backgroundColor","foregroundColor","height","progress","theme","useTheme","animatedProgress","useSharedValue","useEffect","value","withTiming","duration","easing","Easing","linear","lineStyle","useAnimatedStyle","width","colors","primary","createElement","View","style","styles","container","background","onSurfaceDisabled","line","exports","StyleSheet","create","overflow","flex","position","top","left"],"sourceRoot":"../../../src","sources":["components/LineLoader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAJ,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TO,QAAQ,EAAE;EACZ,CAAC;EACDN,UAAU,EAAE;IACVO,IAAI,EAAE;EACR,CAAC;EACDL,IAAI,EAAE;IACJM,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LinkButton = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _restyle = require("@shopify/restyle");
10
+ var _reactNative = require("react-native");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ 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); }
13
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
14
+ const LinkButton = ({
15
+ children,
16
+ ...rest
17
+ }) => {
18
+ const restyleProps = (0, _restyle.useRestyle)(restyleFunctions, rest);
19
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, _extends({
20
+ labelStyle: {
21
+ ...styles.underline,
22
+ ...(restyleProps.labelStyle ? restyleProps.labelStyle : {})
23
+ }
24
+ }, restyleProps), children);
25
+ };
26
+ exports.LinkButton = LinkButton;
27
+ const styles = _reactNative.StyleSheet.create({
28
+ underline: {
29
+ textDecorationLine: 'underline'
30
+ }
31
+ });
32
+ //# sourceMappingURL=LinkButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativePaper","_restyle","_reactNative","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","LinkButton","children","rest","restyleProps","useRestyle","createElement","Button","labelStyle","styles","underline","exports","StyleSheet","create","textDecorationLine"],"sourceRoot":"../../../src","sources":["components/LinkButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAmBA,IAAAG,YAAA,GAAAH,OAAA;AAA0C,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAU1C,MAAMQ,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAIK,MAAMC,UAA+B,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAK,CAAC,KAAK;EACxE,MAAMC,YAAY,GAAG,IAAAC,mBAAU,EAACb,gBAAgB,EAAEW,IAAI,CAAC;EAEvD,oBACElC,MAAA,CAAAQ,OAAA,CAAA6B,aAAA,CAAClC,iBAAA,CAAAmC,MAAC,EAAA7B,QAAA;IACA8B,UAAU,EAAE;MACV,GAAGC,MAAM,CAACC,SAAS;MACnB,IAAKN,YAAY,CAACI,UAAU,GACvBJ,YAAY,CAACI,UAAU,GACxB,CAAC,CAAC;IACR;EAAE,GACEJ,YAAY,GAEfF,QACA,CAAC;AAER,CAAC;AAACS,OAAA,CAAAV,UAAA,GAAAA,UAAA;AAEF,MAAMQ,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IAAEI,kBAAkB,EAAE;EAAY;AAC/C,CAAC,CAAC"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextInput = exports.OtpInputs = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNativePaper = require("react-native-paper");
10
+ var _index = require("../index");
11
+ var _restyle = require("@shopify/restyle");
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
15
+ const TextInput = ({
16
+ ...rest
17
+ }) => {
18
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
19
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, props);
20
+ };
21
+ exports.TextInput = TextInput;
22
+ const OtpInputs = ({
23
+ handleChange = () => {},
24
+ numberOfInputs = 4,
25
+ error = false,
26
+ code = ''
27
+ }) => {
28
+ const inputRef = _react.default.useRef();
29
+ const theme = (0, _reactNativePaper.useTheme)();
30
+ (0, _react.useEffect)(() => {
31
+ // Must run after animations for keyboard to automatically open
32
+ _reactNative.InteractionManager.runAfterInteractions(() => {
33
+ if (inputRef?.current) {
34
+ inputRef.current.focus();
35
+ }
36
+ });
37
+ }, [inputRef]);
38
+ return /*#__PURE__*/_react.default.createElement(_index.View, {
39
+ overflow: "hidden"
40
+ }, /*#__PURE__*/_react.default.createElement(_index.View, {
41
+ alignItems: "center",
42
+ flexDirection: "row",
43
+ justifyContent: "center"
44
+ }, Array(numberOfInputs).fill('').map((_number, index) => /*#__PURE__*/_react.default.createElement(_index.View, {
45
+ key: index,
46
+ borderColor: code[index] ? 'primary' : 'outline',
47
+ borderWidth: 1,
48
+ margin: "2",
49
+ borderRadius: "8",
50
+ backgroundColor: "background",
51
+ justifyContent: "center",
52
+ alignItems: "center",
53
+ minHeight: 42,
54
+ minWidth: 42
55
+ }, /*#__PURE__*/_react.default.createElement(_index.Text, {
56
+ borderColor: "primary"
57
+ // @ts-ignore
58
+ ,
59
+ accessibilityLabel: "otp",
60
+ color: error ? 'error' : 'onBackground',
61
+ fontSize: 20,
62
+ style: theme.fonts.bodyLarge
63
+ }, code[index] || ''))), /*#__PURE__*/_react.default.createElement(TextInput, {
64
+ textContentType: "oneTimeCode",
65
+ autoFocus: true,
66
+ keyboardType: "phone-pad",
67
+ ref: inputRef,
68
+ mode: "flat",
69
+ autoComplete: "one-time-code",
70
+ selectionColor: "transparent",
71
+ value: code || '',
72
+ onChangeText: value => {
73
+ if (!isNaN(Number(value))) {
74
+ if (value.length <= numberOfInputs) {
75
+ handleChange && handleChange(value);
76
+ }
77
+ if (value.length >= numberOfInputs) {
78
+ return _reactNative.Keyboard.dismiss();
79
+ }
80
+ }
81
+ return null;
82
+ },
83
+ style: styles.hiddenFont,
84
+ backgroundColor: "transparent",
85
+ bottom: -10,
86
+ width: "100%",
87
+ height: 60,
88
+ position: "absolute"
89
+ })));
90
+ };
91
+ exports.OtpInputs = OtpInputs;
92
+ const styles = _reactNative.StyleSheet.create({
93
+ hiddenFont: {
94
+ fontSize: 0.001
95
+ }
96
+ });
97
+ //# sourceMappingURL=OtpInputs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativePaper","_index","_restyle","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","TextInput","rest","props","useRestyle","createElement","exports","OtpInputs","handleChange","numberOfInputs","error","code","inputRef","React","useRef","theme","useTheme","useEffect","InteractionManager","runAfterInteractions","current","focus","View","overflow","alignItems","flexDirection","justifyContent","Array","fill","map","_number","index","key","borderColor","borderWidth","margin","borderRadius","minHeight","minWidth","Text","accessibilityLabel","color","fontSize","style","fonts","bodyLarge","textContentType","autoFocus","keyboardType","ref","mode","autoComplete","selectionColor","value","onChangeText","isNaN","Number","length","Keyboard","dismiss","styles","hiddenFont","bottom","width","height","StyleSheet","create"],"sourceRoot":"../../../src","sources":["components/OtpInputs.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAiB0B,SAAAM,yBAAAC,CAA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hB,KAAK,EAAEiB,MAAM,CAACC,UAAW;IACzB9D,eAAe,EAAC,aAAa;IAC7B+D,MAAM,EAAE,CAAC,EAAG;IACZC,KAAK,EAAC,MAAM;IACZC,MAAM,EAAE,EAAG;IACXnE,QAAQ,EAAC;EAAU,CACpB,CACG,CACF,CAAC;AAEX,CAAC;AAACS,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAEF,MAAMqD,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,UAAU,EAAE;IAAEnB,QAAQ,EAAE;EAAM;AAChC,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ParentView = void 0;
7
+ exports.useKeyboard = useKeyboard;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
11
+ var _components = require("../components");
12
+ var _reactNativePaper = require("react-native-paper");
13
+ var _restyle = require("@shopify/restyle");
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ 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); }
17
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
18
+ function useKeyboard() {
19
+ const [keyboardHeight, setKeyboardHeight] = (0, _react.useState)(0);
20
+ function onKeyboardDidShow(e) {
21
+ setKeyboardHeight(e.endCoordinates.height);
22
+ }
23
+ function onKeyboardDidHide() {
24
+ setKeyboardHeight(0);
25
+ }
26
+ (0, _react.useEffect)(() => {
27
+ const keyboardDidShowListener = _reactNative.Keyboard.addListener('keyboardDidShow', onKeyboardDidShow);
28
+ const keyboardDidHideListener = _reactNative.Keyboard.addListener('keyboardDidHide', onKeyboardDidHide);
29
+ return () => {
30
+ keyboardDidHideListener.remove();
31
+ keyboardDidShowListener.remove();
32
+ };
33
+ }, []);
34
+ return keyboardHeight;
35
+ }
36
+ const ParentView = ({
37
+ children,
38
+ bg,
39
+ topInset = true,
40
+ rightInset = true,
41
+ leftInset = true,
42
+ bottomInset = true,
43
+ shouldDismissKeyboardOnTap = true,
44
+ ...rest
45
+ }) => {
46
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
47
+ const keyboardHeight = useKeyboard();
48
+ const safeAreaViewProps = {
49
+ edges: [...(topInset ? ['top'] : []), ...(rightInset ? ['right'] : []), ...(leftInset ? ['left'] : [])]
50
+ };
51
+ const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
52
+ const handleOnTouchStart = e => {
53
+ if (keyboardHeight && e?.target?._internalFiberInstanceHandleDEV?.elementType?.indexOf('TextInput') === -1) {
54
+ _reactNative.Keyboard.dismiss();
55
+ }
56
+ };
57
+ const theme = (0, _reactNativePaper.useTheme)();
58
+ return /*#__PURE__*/_react.default.createElement(_reactNativeSafeAreaContext.SafeAreaView, _extends({
59
+ style: [style.safeAreaView, {
60
+ backgroundColor: theme.colors.background
61
+ }]
62
+ }, safeAreaViewProps), /*#__PURE__*/_react.default.createElement(_reactNative.StatusBar, {
63
+ barStyle: theme.dark ? 'light-content' : 'dark-content',
64
+ translucent: true,
65
+ backgroundColor: "transparent"
66
+ }), /*#__PURE__*/_react.default.createElement(_components.View, _extends({
67
+ flex: 1,
68
+ bg: bg ?? 'background'
69
+ }, props, bottomInset && {
70
+ pb: insets.bottom
71
+ }, shouldDismissKeyboardOnTap ? {
72
+ onTouchStart: handleOnTouchStart
73
+ } : {}), children));
74
+ };
75
+ exports.ParentView = ParentView;
76
+ const style = _reactNative.StyleSheet.create({
77
+ safeAreaView: {
78
+ flex: 1
79
+ }
80
+ });
81
+ //# sourceMappingURL=ParentView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_components","_reactNativePaper","_restyle","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","useKeyboard","keyboardHeight","setKeyboardHeight","useState","onKeyboardDidShow","endCoordinates","height","onKeyboardDidHide","useEffect","keyboardDidShowListener","Keyboard","addListener","keyboardDidHideListener","remove","ParentView","children","bg","topInset","rightInset","leftInset","bottomInset","shouldDismissKeyboardOnTap","rest","props","useRestyle","safeAreaViewProps","edges","insets","useSafeAreaInsets","handleOnTouchStart","_internalFiberInstanceHandleDEV","elementType","indexOf","dismiss","theme","useTheme","createElement","SafeAreaView","style","safeAreaView","colors","background","StatusBar","barStyle","dark","translucent","View","flex","pb","bottom","onTouchStart","exports","StyleSheet","create"],"sourceRoot":"../../../src","sources":["components/ParentView.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAMA,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AsF,SAAS;IACRC,QAAQ,EAAET,KAAK,CAACU,IAAI,GAAG,eAAe,GAAG,cAAe;IACxDC,WAAW;IACX/C,eAAe,EAAC;EAAa,CAC9B,CAAC,eACF7C,MAAA,CAAAc,OAAA,CAAAqE,aAAA,CAAC9E,WAAA,CAAAwF,IAAI,EAAAhE,QAAA;IACHiE,IAAI,EAAE,CAAE;IACR/B,EAAE,EAAEA,EAAE,IAAI;EAAa,GAClBO,KAAK,EACLH,WAAW,IAAI;IAAE4B,EAAE,EAAErB,MAAM,CAACsB;EAAO,CAAC,EACpC5B,0BAA0B,GAC3B;IAAE6B,YAAY,EAAErB;EAAmB,CAAC,GACpC,CAAC,CAAC,GAELd,QACG,CACM,CAAC;AAEnB,CAAC;AAACoC,OAAA,CAAArC,UAAA,GAAAA,UAAA;AAEF,MAAMwB,KAAK,GAAGc,uBAAU,CAACC,MAAM,CAAC;EAC9Bd,YAAY,EAAE;IACZQ,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Searchbar = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _restyle = require("@shopify/restyle");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ 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); }
12
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
13
+ const Searchbar = ({
14
+ ...rest
15
+ }) => {
16
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
17
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Searchbar, _extends({}, props, {
18
+ right: null
19
+ }));
20
+ };
21
+ exports.Searchbar = Searchbar;
22
+ //# sourceMappingURL=Searchbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativePaper","_restyle","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","border","backgroundColor","backgroundColorShorthand","Searchbar","rest","props","useRestyle","createElement","right","exports"],"sourceRoot":"../../../src","sources":["components/Searchbar.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAiB0B,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAW1B,MAAMQ,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAIK,MAAMC,SAAS,GAAGA,CAAC;EAAE,GAAGC;AAAY,CAAC,KAAK;EAC/C,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACZ,gBAAgB,EAASU,IAAI,CAAC;EAEvD,oBAAOhC,MAAA,CAAAO,OAAA,CAAA4B,aAAA,CAAChC,iBAAA,CAAA4B,SAAC,EAAAvB,QAAA,KAAKyB,KAAK;IAAEG,KAAK,EAAE;EAAY,EAAE,CAAC;AAC7C,CAAC;AAACC,OAAA,CAAAN,SAAA,GAAAA,SAAA"}
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SelectionDialog = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _i18next = require("i18next");
10
+ var _Button = require("./Button");
11
+ var _View = require("./View");
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const useSelectionDialogHook = () => {
15
+ const [isVisible, setIsVisible] = (0, _react.useState)(false);
16
+ const [params, setParams] = (0, _react.useState)({});
17
+ const {
18
+ title = '',
19
+ description = '',
20
+ isDismissable = true,
21
+ buttons = [],
22
+ selectionOptions = []
23
+ } = params;
24
+ const show = (0, _react.useCallback)(parameters => {
25
+ setParams(parameters);
26
+ setIsVisible(true);
27
+ }, []);
28
+ const hide = (0, _react.useCallback)(() => {
29
+ setIsVisible(false);
30
+ }, []);
31
+ return {
32
+ isVisible,
33
+ show,
34
+ hide,
35
+ title,
36
+ description,
37
+ isDismissable,
38
+ buttons,
39
+ selectionOptions
40
+ };
41
+ };
42
+ let rootLevelRef = null;
43
+ const SelectionDialog = () => {
44
+ const {
45
+ isVisible,
46
+ show,
47
+ hide,
48
+ buttons,
49
+ isDismissable,
50
+ selectionOptions,
51
+ title,
52
+ description
53
+ } = useSelectionDialogHook();
54
+ const theme = (0, _reactNativePaper.useTheme)();
55
+ const [selectedOptionIndex, setSelectedOptionIndex] = (0, _react.useState)(0);
56
+ (0, _react.useEffect)(() => {
57
+ if (isVisible) {
58
+ setSelectedOptionIndex(0);
59
+ }
60
+ }, [isVisible]);
61
+ const [button1 = {
62
+ label: (0, _i18next.t)('ok'),
63
+ onPress: () => {},
64
+ mode: 'text'
65
+ }, button2, button3] = buttons;
66
+ const ref = _react.default.useRef(null);
67
+ _react.default.useImperativeHandle(ref, _react.default.useCallback(() => ({
68
+ show
69
+ }), [show]));
70
+ _react.default.useEffect(() => {
71
+ rootLevelRef = ref.current;
72
+ }, [ref]);
73
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Dialog, {
74
+ style: {
75
+ backgroundColor: theme.colors.background
76
+ },
77
+ dismissable: isDismissable,
78
+ dismissableBackButton: isDismissable,
79
+ onDismiss: () => {
80
+ if (isVisible) {
81
+ hide();
82
+ }
83
+ },
84
+ visible: isVisible
85
+ }, Boolean(title) && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Dialog.Content, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
86
+ variant: "titleMedium"
87
+ }, title)), Boolean(description) && /*#__PURE__*/_react.default.createElement(_reactNativePaper.Dialog.Content, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
88
+ variant: "bodyMedium"
89
+ }, description)), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Dialog.Content, null, selectionOptions.map((option, index) => {
90
+ return /*#__PURE__*/_react.default.createElement(_View.View, {
91
+ flexDirection: "row",
92
+ alignItems: "center"
93
+ }, /*#__PURE__*/_react.default.createElement(_reactNativePaper.RadioButton.Android, {
94
+ value: "",
95
+ status: selectedOptionIndex === index ? 'checked' : 'unchecked',
96
+ onPress: () => setSelectedOptionIndex(index)
97
+ }), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, {
98
+ variant: "bodyMedium"
99
+ }, option));
100
+ })), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Dialog.Actions, null, button3 && /*#__PURE__*/_react.default.createElement(_Button.Button, {
101
+ mx: "8",
102
+ mode: button3?.mode || 'text',
103
+ onPress: () => {
104
+ hide();
105
+ button3?.onPress?.(selectedOptionIndex);
106
+ }
107
+ }, button3.label), button2 && /*#__PURE__*/_react.default.createElement(_Button.Button, {
108
+ ml: "2",
109
+ mode: button2?.mode || 'text',
110
+ onPress: () => {
111
+ hide();
112
+ button2?.onPress?.(selectedOptionIndex);
113
+ }
114
+ }, button2?.label), button1 && /*#__PURE__*/_react.default.createElement(_Button.Button, {
115
+ ml: "2",
116
+ mode: button1?.mode || 'text',
117
+ onPress: () => {
118
+ hide();
119
+ button1?.onPress?.(selectedOptionIndex);
120
+ }
121
+ }, button1.label)));
122
+ };
123
+ exports.SelectionDialog = SelectionDialog;
124
+ SelectionDialog.displayName = 'SelectionDialog';
125
+
126
+ //@ts-ignore
127
+ SelectionDialog.show = params => {
128
+ rootLevelRef?.show(params);
129
+ };
130
+ //# sourceMappingURL=SelectionDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativePaper","_i18next","_Button","_View","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","useSelectionDialogHook","isVisible","setIsVisible","useState","params","setParams","title","description","isDismissable","buttons","selectionOptions","show","useCallback","parameters","hide","rootLevelRef","SelectionDialog","theme","useTheme","selectedOptionIndex","setSelectedOptionIndex","useEffect","button1","label","onPress","mode","button2","button3","ref","React","useRef","useImperativeHandle","current","createElement","Dialog","style","backgroundColor","colors","background","dismissable","dismissableBackButton","onDismiss","visible","Boolean","Content","Text","variant","map","option","index","View","flexDirection","alignItems","RadioButton","Android","value","status","Actions","Button","mx","ml","exports","displayName"],"sourceRoot":"../../../src","sources":["components/SelectionDialog.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAA8B,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GA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