@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,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Snackbar = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactI18next = require("react-i18next");
9
+ var _reactNativePaper = require("react-native-paper");
10
+ 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); }
11
+ 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; }
12
+ const useAlertHook = () => {
13
+ const [isVisible, setIsVisible] = (0, _react.useState)(false);
14
+ const [params, setParams] = (0, _react.useState)({});
15
+ const {
16
+ title = '',
17
+ action
18
+ } = params;
19
+ const show = (0, _react.useCallback)(parameters => {
20
+ setParams(parameters);
21
+ setIsVisible(true);
22
+ }, []);
23
+ const hide = (0, _react.useCallback)(() => {
24
+ setIsVisible(false);
25
+ }, []);
26
+ return {
27
+ isVisible,
28
+ show,
29
+ hide,
30
+ title,
31
+ action
32
+ };
33
+ };
34
+ let rootLevelRef = null;
35
+ const Snackbar = () => {
36
+ const {
37
+ t
38
+ } = (0, _reactI18next.useTranslation)();
39
+ const {
40
+ isVisible,
41
+ show,
42
+ hide,
43
+ title,
44
+ action
45
+ } = useAlertHook();
46
+ const ref = _react.default.useRef(null);
47
+ _react.default.useImperativeHandle(ref, _react.default.useCallback(() => ({
48
+ show
49
+ }), [show]));
50
+ _react.default.useEffect(() => {
51
+ rootLevelRef = ref.current;
52
+ }, [ref]);
53
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Snackbar, {
54
+ visible: isVisible,
55
+ onDismiss: hide,
56
+ action: action ?? {
57
+ label: t('close'),
58
+ onPress: hide
59
+ }
60
+ }, title);
61
+ };
62
+ exports.Snackbar = Snackbar;
63
+ Snackbar.displayName = 'Snackbar';
64
+
65
+ //@ts-ignore
66
+ Snackbar.show = params => {
67
+ rootLevelRef?.show(params);
68
+ };
69
+ //# sourceMappingURL=Snackbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactI18next","_reactNativePaper","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","useAlertHook","isVisible","setIsVisible","useState","params","setParams","title","action","show","useCallback","parameters","hide","rootLevelRef","Snackbar","useTranslation","ref","React","useRef","useImperativeHandle","useEffect","current","createElement","visible","onDismiss","label","onPress","exports","displayName"],"sourceRoot":"../../../src","sources":["components/Snackbar.tsx"],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Surface = 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 Surface = ({
13
+ ...rest
14
+ }) => {
15
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
16
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Surface, props);
17
+ };
18
+ exports.Surface = Surface;
19
+ //# sourceMappingURL=Surface.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","Surface","rest","props","useRestyle","createElement","exports"],"sourceRoot":"../../../src","sources":["components/Surface.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,OAAO,GAAGA,CAAC;EAAE,GAAGC;AAAY,CAAC,KAAK;EAC7C,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACZ,gBAAgB,EAASU,IAAI,CAAC;EAEvD,oBAAOlB,MAAA,CAAAO,OAAA,CAAAc,aAAA,CAAClB,iBAAA,CAAAc,OAAC,EAAKE,KAAQ,CAAC;AACzB,CAAC;AAACG,OAAA,CAAAL,OAAA,GAAAA,OAAA"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Text = 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.color, _restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.opacity, _restyle.typography, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
12
+ const Text = ({
13
+ children,
14
+ ...rest
15
+ }) => {
16
+ const restyleProps = (0, _restyle.useRestyle)(restyleFunctions, rest);
17
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Text, restyleProps, children);
18
+ };
19
+ exports.Text = Text;
20
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativePaper","_restyle","obj","__esModule","default","restyleFunctions","composeRestyleFunctions","color","spacing","spacingShorthand","layout","position","opacity","typography","border","backgroundColor","backgroundColorShorthand","Text","children","rest","restyleProps","useRestyle","createElement","exports"],"sourceRoot":"../../../src","sources":["components/Text.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAuB0B,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAe1B,MAAMG,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,cAAK,EACLC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,gBAAO,EACPC,mBAAU,EACVC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAOK,MAAMC,IAAsC,GAAGA,CAAC;EACrDC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAG,IAAAC,mBAAU,EAAChB,gBAAgB,EAAEc,IAAI,CAAC;EAEvD,oBACEtB,MAAA,CAAAO,OAAA,CAAAkB,aAAA,CAACtB,iBAAA,CAAAiB,IAAC,EAAMG,YAAY,EACjBF,QACA,CAAC;AAER,CAAC;AAACK,OAAA,CAAAN,IAAA,GAAAA,IAAA"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextInputStyled = exports.TextInput = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNativePaper = require("react-native-paper");
9
+ var _View = require("./View");
10
+ var _IconButton = require("./IconButton");
11
+ var _Text = require("./Text");
12
+ var _restyle = require("@shopify/restyle");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ 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); }
15
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
16
+ const TextInputStyled = ({
17
+ ...rest
18
+ }) => {
19
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
20
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.TextInput, props);
21
+ };
22
+ exports.TextInputStyled = TextInputStyled;
23
+ const TextInput = ({
24
+ errorMessage,
25
+ secureTextEntry,
26
+ ...rest
27
+ }) => {
28
+ const [status, setStatus] = _react.default.useState('checked');
29
+ const onButtonToggle = () => {
30
+ setStatus(status === 'checked' ? 'unchecked' : 'checked');
31
+ };
32
+ const shouldShowPassword = status === 'checked';
33
+ const theme = (0, _reactNativePaper.useTheme)();
34
+ return /*#__PURE__*/_react.default.createElement(_View.View, null, /*#__PURE__*/_react.default.createElement(_View.View, {
35
+ justifyContent: "center"
36
+ }, /*#__PURE__*/_react.default.createElement(TextInputStyled, _extends({
37
+ width: "100%",
38
+ secureTextEntry: shouldShowPassword && secureTextEntry
39
+ }, rest)), secureTextEntry && /*#__PURE__*/_react.default.createElement(_View.View, {
40
+ pt: "4",
41
+ justifyContent: "center",
42
+ alignSelf: "flex-end",
43
+ position: "absolute",
44
+ width: 48
45
+ }, /*#__PURE__*/_react.default.createElement(_reactNativePaper.ToggleButton, {
46
+ icon: shouldShowPassword ? 'eye' : 'eye-off',
47
+ size: 20,
48
+ onPress: onButtonToggle
49
+ }))), !!errorMessage && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_View.View, {
50
+ flexDirection: "row",
51
+ alignItems: "center",
52
+ pb: "2"
53
+ }, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, {
54
+ icon: "alert-circle-outline",
55
+ size: 14,
56
+ width: 20,
57
+ margin: "0",
58
+ iconColor: theme.colors.error
59
+ }), /*#__PURE__*/_react.default.createElement(_Text.Text, {
60
+ variant: "bodySmall",
61
+ color: "error"
62
+ }, errorMessage))));
63
+ };
64
+ exports.TextInput = TextInput;
65
+ //# sourceMappingURL=TextInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativePaper","_View","_IconButton","_Text","_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","TextInputStyled","rest","props","useRestyle","createElement","TextInput","exports","errorMessage","secureTextEntry","status","setStatus","React","useState","onButtonToggle","shouldShowPassword","theme","useTheme","View","justifyContent","width","pt","alignSelf","ToggleButton","icon","size","onPress","Fragment","flexDirection","alignItems","pb","IconButton","margin","iconColor","colors","error","Text","variant","color"],"sourceRoot":"../../../src","sources":["components/TextInput.tsx"],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToggleButton = 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 ToggleButton = ({
13
+ ...rest
14
+ }) => {
15
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
16
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.ToggleButton, props);
17
+ };
18
+ exports.ToggleButton = ToggleButton;
19
+ //# sourceMappingURL=ToggleButton.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","ToggleButton","rest","props","useRestyle","createElement","exports"],"sourceRoot":"../../../src","sources":["components/ToggleButton.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,YAAY,GAAGA,CAAC;EAAE,GAAGC;AAAY,CAAC,KAAK;EAClD,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACZ,gBAAgB,EAASU,IAAW,CAAC;EAE9D,oBAAOlB,MAAA,CAAAO,OAAA,CAAAc,aAAA,CAAClB,iBAAA,CAAAc,YAAE,EAAME,KAAkB,CAAC;AACrC,CAAC;AAACG,OAAA,CAAAL,YAAA,GAAAA,YAAA"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Video = 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 _reactNativeVideo = _interopRequireDefault(require("react-native-video"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ 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); }
14
+ 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; }
15
+ 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); }
16
+ const Video = ({
17
+ ...rest
18
+ }) => {
19
+ const [status, setStatus] = (0, _react.useState)('loading');
20
+ return /*#__PURE__*/_react.default.createElement(_View.View, {
21
+ flex: 1
22
+ }, /*#__PURE__*/_react.default.createElement(_reactNativeVideo.default, _extends({}, rest, {
23
+ onLoad: () => {
24
+ setStatus('success');
25
+ },
26
+ onError: () => {
27
+ setStatus('failed');
28
+ }
29
+ })), /*#__PURE__*/_react.default.createElement(_View.View, {
30
+ top: 0,
31
+ bottom: 0,
32
+ right: 0,
33
+ left: 0,
34
+ position: "absolute",
35
+ alignItems: "center",
36
+ justifyContent: "center"
37
+ }, status === 'loading' && /*#__PURE__*/_react.default.createElement(_reactNativePaper.ActivityIndicator, null), status === 'failed' && /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, {
38
+ icon: "image-broken-variant"
39
+ })));
40
+ };
41
+ exports.Video = Video;
42
+ //# sourceMappingURL=Video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_View","require","_react","_interopRequireWildcard","_reactNativePaper","_IconButton","_reactNativeVideo","_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","Video","rest","status","setStatus","useState","createElement","View","flex","onLoad","onError","top","bottom","right","left","position","alignItems","justifyContent","ActivityIndicator","IconButton","icon","exports"],"sourceRoot":"../../../src","sources":["components/Video.tsx"],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.View = 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
+ const restyleFunctions = (0, _restyle.composeRestyleFunctions)([_restyle.spacing, _restyle.spacingShorthand, _restyle.layout, _restyle.position, _restyle.shadow, _restyle.opacity, _restyle.border, _restyle.backgroundColor, _restyle.backgroundColorShorthand]);
12
+ const View = ({
13
+ children,
14
+ ...rest
15
+ }) => {
16
+ const props = (0, _restyle.useRestyle)(restyleFunctions, rest);
17
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, props, children);
18
+ };
19
+ exports.View = View;
20
+ //# sourceMappingURL=View.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_restyle","obj","__esModule","default","restyleFunctions","composeRestyleFunctions","spacing","spacingShorthand","layout","position","shadow","opacity","border","backgroundColor","backgroundColorShorthand","View","children","rest","props","useRestyle","createElement","exports"],"sourceRoot":"../../../src","sources":["components/View.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAqB0B,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAa1B,MAAMG,gBAAgB,GAAG,IAAAC,gCAAuB,EAA0B,CACxEC,gBAAO,EACPC,yBAAgB,EAChBC,eAAM,EACNC,iBAAQ,EACRC,eAAM,EACNC,gBAAO,EACPC,eAAM,EACNC,wBAAe,EACfC,iCAAwB,CACzB,CAAC;AAIK,MAAMC,IAAI,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAY,CAAC,KAAK;EACpD,MAAMC,KAAK,GAAG,IAAAC,mBAAU,EAACf,gBAAgB,EAAEa,IAAI,CAAC;EAEhD,oBAAOrB,MAAA,CAAAO,OAAA,CAAAiB,aAAA,CAACrB,YAAA,CAAAgB,IAAC,EAAKG,KAAK,EAAGF,QAAY,CAAC;AACrC,CAAC;AAACK,OAAA,CAAAN,IAAA,GAAAA,IAAA"}
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Alert", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Alert.Alert;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Badge", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Badge.Badge;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "BottomSheet", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _BottomSheet.BottomSheet;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "Button", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _Button.Button;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "Card", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _Card.Card;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "Divider", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _Divider.Divider;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "FAB", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _FAB.FAB;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "Header", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _Header.Header;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "IconButton", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _IconButton.IconButton;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "Image", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _Image.Image;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "KeyboardAvoidingView", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _KeyboardAvoidingView.KeyboardAvoidingView;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "LineLoader", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _LineLoader.LineLoader;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "LinkButton", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _LinkButton.LinkButton;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "OtpInputs", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _OtpInputs.OtpInputs;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "ParentView", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _ParentView.ParentView;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "Searchbar", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _Searchbar.Searchbar;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "SelectionDialog", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _SelectionDialog.SelectionDialog;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "Snackbar", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _Snackbar.Snackbar;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "Surface", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _Surface.Surface;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "Text", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _Text.Text;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "TextInput", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _TextInput.TextInput;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "ToggleButton", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _ToggleButton.ToggleButton;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "Video", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _Video.Video;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "View", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _View.View;
148
+ }
149
+ });
150
+ var _Alert = require("./Alert");
151
+ var _Badge = require("./Badge");
152
+ var _BottomSheet = require("./BottomSheet");
153
+ var _Button = require("./Button");
154
+ var _Card = require("./Card");
155
+ var _Divider = require("./Divider");
156
+ var _FAB = require("./FAB");
157
+ var _Header = require("./Header");
158
+ var _IconButton = require("./IconButton");
159
+ var _Image = require("./Image");
160
+ var _KeyboardAvoidingView = require("./KeyboardAvoidingView");
161
+ var _LineLoader = require("./LineLoader");
162
+ var _LinkButton = require("./LinkButton");
163
+ var _OtpInputs = require("./OtpInputs");
164
+ var _ParentView = require("./ParentView");
165
+ var _Searchbar = require("./Searchbar");
166
+ var _SelectionDialog = require("./SelectionDialog");
167
+ var _Snackbar = require("./Snackbar");
168
+ var _Surface = require("./Surface");
169
+ var _Text = require("./Text");
170
+ var _TextInput = require("./TextInput");
171
+ var _ToggleButton = require("./ToggleButton");
172
+ var _Video = require("./Video");
173
+ var _View = require("./View");
174
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Alert","require","_Badge","_BottomSheet","_Button","_Card","_Divider","_FAB","_Header","_IconButton","_Image","_KeyboardAvoidingView","_LineLoader","_LinkButton","_OtpInputs","_ParentView","_Searchbar","_SelectionDialog","_Snackbar","_Surface","_Text","_TextInput","_ToggleButton","_Video","_View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AACA,IAAAY,WAAA,GAAAZ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,WAAA,GAAAd,OAAA;AACA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,gBAAA,GAAAhB,OAAA;AACA,IAAAiB,SAAA,GAAAjB,OAAA;AACA,IAAAkB,QAAA,GAAAlB,OAAA;AACA,IAAAmB,KAAA,GAAAnB,OAAA;AACA,IAAAoB,UAAA,GAAApB,OAAA;AACA,IAAAqB,aAAA,GAAArB,OAAA;AACA,IAAAsB,MAAA,GAAAtB,OAAA;AACA,IAAAuB,KAAA,GAAAvB,OAAA"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ multiply: true
8
+ };
9
+ exports.multiply = multiply;
10
+ var _components = require("./components");
11
+ Object.keys(_components).forEach(function (key) {
12
+ if (key === "default" || key === "__esModule") return;
13
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
14
+ if (key in exports && exports[key] === _components[key]) return;
15
+ Object.defineProperty(exports, key, {
16
+ enumerable: true,
17
+ get: function () {
18
+ return _components[key];
19
+ }
20
+ });
21
+ });
22
+ var _auth = require("./auth");
23
+ Object.keys(_auth).forEach(function (key) {
24
+ if (key === "default" || key === "__esModule") return;
25
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
+ if (key in exports && exports[key] === _auth[key]) return;
27
+ Object.defineProperty(exports, key, {
28
+ enumerable: true,
29
+ get: function () {
30
+ return _auth[key];
31
+ }
32
+ });
33
+ });
34
+ function multiply(a, b) {
35
+ return Promise.resolve(a * b);
36
+ }
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_components","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_auth","multiply","a","b","Promise","resolve"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,KAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,KAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,KAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,KAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AAJO,SAASU,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAmB;EAC9D,OAAOC,OAAO,CAACC,OAAO,CAACH,CAAC,GAAGC,CAAC,CAAC;AAC/B"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateRestyleComponentsTheme = void 0;
7
+ var _restyle = require("@shopify/restyle");
8
+ var _theme = require("./theme");
9
+ var _tokens = require("./tokens");
10
+ const units = {};
11
+ new Array(1000).fill(0).forEach((_, index) => {
12
+ units[index + ''] = index;
13
+ });
14
+ const generateRestyleComponentsTheme = ({
15
+ theme
16
+ }) => {
17
+ // Restyle does not support elevation color as object
18
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
19
+ let {
20
+ elevation,
21
+ ...colors
22
+ } = {
23
+ ...theme.colors
24
+ };
25
+ return (0, _restyle.createTheme)({
26
+ colors: {
27
+ transparent: 'transparent',
28
+ ...colors
29
+ },
30
+ textVariants: _tokens.typescale,
31
+ spacing: units,
32
+ breakpoints: {
33
+ phone: 0
34
+ },
35
+ zIndices: units,
36
+ borderRadii: units
37
+ });
38
+ };
39
+ exports.generateRestyleComponentsTheme = generateRestyleComponentsTheme;
40
+ const dummyTheme = generateRestyleComponentsTheme({
41
+ theme: _theme.CustomLightTheme
42
+ });
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_restyle","require","_theme","_tokens","units","Array","fill","forEach","_","index","generateRestyleComponentsTheme","theme","elevation","colors","createTheme","transparent","textVariants","typescale","spacing","breakpoints","phone","zIndices","borderRadii","exports","dummyTheme","CustomLightTheme"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,MAAMG,KAA6B,GAAG,CAAC,CAAC;AAExC,IAAIC,KAAK,CAAC,IAAI,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;EAC5CL,KAAK,CAACK,KAAK,GAAG,EAAE,CAAC,GAAGA,KAAK;AAC3B,CAAC,CAAC;AAEK,MAAMC,8BAA8B,GAAGA,CAAC;EAC7CC;AAGF,CAAC,KAAK;EACJ;EACA;EACA,IAAI;IAAEC,SAAS;IAAE,GAAGC;EAAO,CAAC,GAAG;IAAE,GAAGF,KAAK,CAACE;EAAO,CAAC;EAClD,OAAO,IAAAC,oBAAW,EAAC;IACjBD,MAAM,EAAE;MACNE,WAAW,EAAE,aAAa;MAC1B,GAAGF;IACL,CAAC;IACDG,YAAY,EAAEC,iBAAS;IACvBC,OAAO,EAAEd,KAAK;IACde,WAAW,EAAE;MACXC,KAAK,EAAE;IACT,CAAC;IACDC,QAAQ,EAAEjB,KAAK;IACfkB,WAAW,EAAElB;EACf,CAAC,CAAC;AACJ,CAAC;AAACmB,OAAA,CAAAb,8BAAA,GAAAA,8BAAA;AACF,MAAMc,UAAU,GAAGd,8BAA8B,CAAC;EAChDC,KAAK,EAAEc;AACT,CAAC,CAAC"}