native-pytech 1.0.1

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 (331) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/app/assets/components/removeCircle.d.ts +2 -0
  4. package/dist/app/assets/components/removeCircle.js +2 -0
  5. package/dist/app/assets/components/reorderThreeOutline.d.ts +2 -0
  6. package/dist/app/assets/components/reorderThreeOutline.js +2 -0
  7. package/dist/app/assets/ionicons.d.ts +2 -0
  8. package/dist/app/assets/ionicons.js +2 -0
  9. package/dist/app/components/closeButton.d.ts +2 -0
  10. package/dist/app/components/closeButton.js +2 -0
  11. package/dist/app/components/gradient.d.ts +2 -0
  12. package/dist/app/components/gradient.js +2 -0
  13. package/dist/app/components/link.d.ts +2 -0
  14. package/dist/app/components/link.js +2 -0
  15. package/dist/app/components/text.d.ts +2 -0
  16. package/dist/app/components/text.js +2 -0
  17. package/dist/app/components/theme.d.ts +2 -0
  18. package/dist/app/components/theme.js +2 -0
  19. package/dist/app/constants/colors.d.ts +2 -0
  20. package/dist/app/constants/colors.js +2 -0
  21. package/dist/app/constants/consts.d.ts +1 -0
  22. package/dist/app/constants/consts.js +1 -0
  23. package/dist/app/constants/handleFontObserver.d.ts +2 -0
  24. package/dist/app/constants/handleFontObserver.js +2 -0
  25. package/dist/app/constants/hooks.d.ts +1 -0
  26. package/dist/app/constants/hooks.js +1 -0
  27. package/dist/app/constants/utils.d.ts +1 -0
  28. package/dist/app/constants/utils.js +1 -0
  29. package/dist/app/footer.d.ts +2 -0
  30. package/dist/app/footer.js +2 -0
  31. package/dist/app/login.d.ts +2 -0
  32. package/dist/app/login.js +2 -0
  33. package/dist/app/page.d.ts +2 -0
  34. package/dist/app/page.js +2 -0
  35. package/dist/app/providers/app.d.ts +2 -0
  36. package/dist/app/providers/app.js +2 -0
  37. package/dist/app/segmentedControl.d.ts +2 -0
  38. package/dist/app/segmentedControl.js +2 -0
  39. package/dist/app/sql.d.ts +2 -0
  40. package/dist/app/sql.js +2 -0
  41. package/dist/app/supabase.d.ts +2 -0
  42. package/dist/app/supabase.js +2 -0
  43. package/dist/app/swiftui.d.ts +1 -0
  44. package/dist/app/swiftui.js +1 -0
  45. package/dist/app/table.d.ts +2 -0
  46. package/dist/app/table.js +2 -0
  47. package/dist/index.d.ts +8 -0
  48. package/dist/index.js +8 -0
  49. package/dist/libs/assets/components/RemoveCircle.d.ts +6 -0
  50. package/dist/libs/assets/components/RemoveCircle.js +25 -0
  51. package/dist/libs/assets/components/ReorderThreeOutline.d.ts +5 -0
  52. package/dist/libs/assets/components/ReorderThreeOutline.js +15 -0
  53. package/dist/libs/assets/images/android-icon-background-nuevo.png +0 -0
  54. package/dist/libs/assets/images/android-icon-background.png +0 -0
  55. package/dist/libs/assets/images/android-icon-foreground-nuevo.png +0 -0
  56. package/dist/libs/assets/images/android-icon-foreground-nuevo2.png +0 -0
  57. package/dist/libs/assets/images/android-icon-foreground.png +0 -0
  58. package/dist/libs/assets/images/android-icon-monochrome.png +0 -0
  59. package/dist/libs/assets/images/arrow.png +0 -0
  60. package/dist/libs/assets/images/check.svg +1 -0
  61. package/dist/libs/assets/images/favicon.ico +0 -0
  62. package/dist/libs/assets/images/favicon.png +0 -0
  63. package/dist/libs/assets/images/flecha-hacia-abajo.png +0 -0
  64. package/dist/libs/assets/images/icon-viejo.png +0 -0
  65. package/dist/libs/assets/images/icon.png +0 -0
  66. package/dist/libs/assets/images/icono_tango.svg +1 -0
  67. package/dist/libs/assets/images/incoming-call.png +0 -0
  68. package/dist/libs/assets/images/incoming.png +0 -0
  69. package/dist/libs/assets/images/login.png +0 -0
  70. package/dist/libs/assets/images/login_apple.svg +28 -0
  71. package/dist/libs/assets/images/login_letras.svg +41 -0
  72. package/dist/libs/assets/images/login_letras_dark.svg +41 -0
  73. package/dist/libs/assets/images/login_sol.svg +59 -0
  74. package/dist/libs/assets/images/login_transparente.png +0 -0
  75. package/dist/libs/assets/images/logo_letras.svg +29 -0
  76. package/dist/libs/assets/images/logo_letras_dark.svg +29 -0
  77. package/dist/libs/assets/images/partial-react-logo.png +0 -0
  78. package/dist/libs/assets/images/pencil.png +0 -0
  79. package/dist/libs/assets/images/react-logo.png +0 -0
  80. package/dist/libs/assets/images/react-logo@2x.png +0 -0
  81. package/dist/libs/assets/images/react-logo@3x.png +0 -0
  82. package/dist/libs/assets/images/remove-circle.svg +4 -0
  83. package/dist/libs/assets/images/splash-icon.png +0 -0
  84. package/dist/libs/assets/images/test.svg +22 -0
  85. package/dist/libs/assets/ionicons/Ionicons.d.ts +35 -0
  86. package/dist/libs/assets/ionicons/Ionicons.js +16 -0
  87. package/dist/libs/assets/ionicons/index.d.ts +6 -0
  88. package/dist/libs/assets/ionicons/index.js +23 -0
  89. package/dist/libs/components/CloseButton.d.ts +9 -0
  90. package/dist/libs/components/CloseButton.js +19 -0
  91. package/dist/libs/components/Gradient/constants.d.ts +80 -0
  92. package/dist/libs/components/Gradient/constants.js +34 -0
  93. package/dist/libs/components/Gradient/index.d.ts +21 -0
  94. package/dist/libs/components/Gradient/index.js +33 -0
  95. package/dist/libs/components/Link.d.ts +13 -0
  96. package/dist/libs/components/Link.js +20 -0
  97. package/dist/libs/components/Text.d.ts +6 -0
  98. package/dist/libs/components/Text.js +11 -0
  99. package/dist/libs/components/Theme.d.ts +9 -0
  100. package/dist/libs/components/Theme.js +10 -0
  101. package/dist/libs/constants/colors.d.ts +218 -0
  102. package/dist/libs/constants/colors.js +170 -0
  103. package/dist/libs/constants/consts.d.ts +13 -0
  104. package/dist/libs/constants/consts.js +23 -0
  105. package/dist/libs/constants/handleFontObserver.d.ts +2 -0
  106. package/dist/libs/constants/handleFontObserver.js +18 -0
  107. package/dist/libs/constants/hooks.d.ts +5 -0
  108. package/dist/libs/constants/hooks.js +50 -0
  109. package/dist/libs/constants/utils.d.ts +10 -0
  110. package/dist/libs/constants/utils.js +69 -0
  111. package/dist/libs/footer/index.d.ts +1 -0
  112. package/dist/libs/footer/index.js +1 -0
  113. package/dist/libs/footer/src/Background/index.d.ts +4 -0
  114. package/dist/libs/footer/src/Background/index.ios.d.ts +4 -0
  115. package/dist/libs/footer/src/Background/index.ios.js +22 -0
  116. package/dist/libs/footer/src/Background/index.js +21 -0
  117. package/dist/libs/footer/src/Button/Text.d.ts +3 -0
  118. package/dist/libs/footer/src/Button/Text.js +18 -0
  119. package/dist/libs/footer/src/Button/index.d.ts +3 -0
  120. package/dist/libs/footer/src/Button/index.ios.d.ts +3 -0
  121. package/dist/libs/footer/src/Button/index.ios.js +52 -0
  122. package/dist/libs/footer/src/Button/index.js +55 -0
  123. package/dist/libs/footer/src/Button/types.d.ts +20 -0
  124. package/dist/libs/footer/src/Button/types.js +1 -0
  125. package/dist/libs/footer/src/constants.d.ts +20 -0
  126. package/dist/libs/footer/src/constants.js +21 -0
  127. package/dist/libs/footer/src/index.d.ts +3 -0
  128. package/dist/libs/footer/src/index.js +40 -0
  129. package/dist/libs/footer/src/types.d.ts +9 -0
  130. package/dist/libs/footer/src/types.js +1 -0
  131. package/dist/libs/login/index.d.ts +3 -0
  132. package/dist/libs/login/index.js +3 -0
  133. package/dist/libs/login/src/Pages/Home/index.d.ts +3 -0
  134. package/dist/libs/login/src/Pages/Home/index.js +20 -0
  135. package/dist/libs/login/src/Pages/Home/types.d.ts +19 -0
  136. package/dist/libs/login/src/Pages/Home/types.js +1 -0
  137. package/dist/libs/login/src/Pages/Perfil.d.ts +5 -0
  138. package/dist/libs/login/src/Pages/Perfil.js +19 -0
  139. package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +9 -0
  140. package/dist/libs/login/src/Pages/SignIn/Form/Input.js +10 -0
  141. package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +6 -0
  142. package/dist/libs/login/src/Pages/SignIn/Form/index.js +34 -0
  143. package/dist/libs/login/src/Pages/SignIn/index.d.ts +3 -0
  144. package/dist/libs/login/src/Pages/SignIn/index.js +149 -0
  145. package/dist/libs/login/src/Pages/SignIn/types.d.ts +31 -0
  146. package/dist/libs/login/src/Pages/SignIn/types.js +1 -0
  147. package/dist/libs/login/src/Pages/index.d.ts +3 -0
  148. package/dist/libs/login/src/Pages/index.js +3 -0
  149. package/dist/libs/login/src/Pages/utils.d.ts +20 -0
  150. package/dist/libs/login/src/Pages/utils.js +49 -0
  151. package/dist/libs/login/src/Screen/Container.d.ts +4 -0
  152. package/dist/libs/login/src/Screen/Container.ios.d.ts +4 -0
  153. package/dist/libs/login/src/Screen/Container.ios.js +20 -0
  154. package/dist/libs/login/src/Screen/Container.js +25 -0
  155. package/dist/libs/login/src/Screen/components/Gradient.d.ts +6 -0
  156. package/dist/libs/login/src/Screen/components/Gradient.js +23 -0
  157. package/dist/libs/login/src/Screen/components/Input/index.d.ts +4 -0
  158. package/dist/libs/login/src/Screen/components/Input/index.js +128 -0
  159. package/dist/libs/login/src/Screen/components/Input/types.d.ts +46 -0
  160. package/dist/libs/login/src/Screen/components/Input/types.js +1 -0
  161. package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +4 -0
  162. package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +11 -0
  163. package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +4 -0
  164. package/dist/libs/login/src/Screen/components/SvgPytech.js +11 -0
  165. package/dist/libs/login/src/Screen/components/index.d.ts +4 -0
  166. package/dist/libs/login/src/Screen/components/index.js +4 -0
  167. package/dist/libs/login/src/Screen/index.d.ts +4 -0
  168. package/dist/libs/login/src/Screen/index.js +59 -0
  169. package/dist/libs/login/src/Screen/types.d.ts +14 -0
  170. package/dist/libs/login/src/Screen/types.js +1 -0
  171. package/dist/libs/login/src/constants.d.ts +98 -0
  172. package/dist/libs/login/src/constants.js +48 -0
  173. package/dist/libs/page/index.d.ts +1 -0
  174. package/dist/libs/page/index.js +1 -0
  175. package/dist/libs/page/src/components/Page/index.android.d.ts +4 -0
  176. package/dist/libs/page/src/components/Page/index.android.js +11 -0
  177. package/dist/libs/page/src/components/Page/index.d.ts +4 -0
  178. package/dist/libs/page/src/components/Page/index.js +7 -0
  179. package/dist/libs/page/src/components/PageWrapper/index.d.ts +6 -0
  180. package/dist/libs/page/src/components/PageWrapper/index.js +13 -0
  181. package/dist/libs/page/src/components/PageWrapper/types.d.ts +16 -0
  182. package/dist/libs/page/src/components/PageWrapper/types.js +1 -0
  183. package/dist/libs/page/src/components/Subtitle.d.ts +5 -0
  184. package/dist/libs/page/src/components/Subtitle.js +9 -0
  185. package/dist/libs/page/src/components/WithIcon/index.d.ts +3 -0
  186. package/dist/libs/page/src/components/WithIcon/index.js +47 -0
  187. package/dist/libs/page/src/components/WithIcon/types.d.ts +15 -0
  188. package/dist/libs/page/src/components/WithIcon/types.js +1 -0
  189. package/dist/libs/page/src/constants.d.ts +12 -0
  190. package/dist/libs/page/src/constants.js +12 -0
  191. package/dist/libs/providers/App/index.d.ts +10 -0
  192. package/dist/libs/providers/App/index.js +62 -0
  193. package/dist/libs/providers/App/types.d.ts +35 -0
  194. package/dist/libs/providers/App/types.js +1 -0
  195. package/dist/libs/providers/constants.d.ts +10 -0
  196. package/dist/libs/providers/constants.js +10 -0
  197. package/dist/libs/segmentedControl/index.d.ts +2 -0
  198. package/dist/libs/segmentedControl/index.js +2 -0
  199. package/dist/libs/segmentedControl/src/colors.d.ts +15 -0
  200. package/dist/libs/segmentedControl/src/colors.js +16 -0
  201. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +4 -0
  202. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +79 -0
  203. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +28 -0
  204. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +1 -0
  205. package/dist/libs/segmentedControl/src/components/Container/index.d.ts +4 -0
  206. package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +4 -0
  207. package/dist/libs/segmentedControl/src/components/Container/index.ios.js +15 -0
  208. package/dist/libs/segmentedControl/src/components/Container/index.js +18 -0
  209. package/dist/libs/segmentedControl/src/components/Container/types.d.ts +16 -0
  210. package/dist/libs/segmentedControl/src/components/Container/types.js +1 -0
  211. package/dist/libs/segmentedControl/src/components/Item/index.d.ts +4 -0
  212. package/dist/libs/segmentedControl/src/components/Item/index.js +26 -0
  213. package/dist/libs/segmentedControl/src/components/Item/types.d.ts +20 -0
  214. package/dist/libs/segmentedControl/src/components/Item/types.js +1 -0
  215. package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +4 -0
  216. package/dist/libs/segmentedControl/src/components/Segmented/index.js +93 -0
  217. package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +12 -0
  218. package/dist/libs/segmentedControl/src/components/Segmented/types.js +1 -0
  219. package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +4 -0
  220. package/dist/libs/segmentedControl/src/components/Wrapper/index.js +21 -0
  221. package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +38 -0
  222. package/dist/libs/segmentedControl/src/components/Wrapper/types.js +1 -0
  223. package/dist/libs/segmentedControl/src/context/shared.d.ts +11 -0
  224. package/dist/libs/segmentedControl/src/context/shared.js +13 -0
  225. package/dist/libs/segmentedControl/src/utils.d.ts +10 -0
  226. package/dist/libs/segmentedControl/src/utils.js +29 -0
  227. package/dist/libs/sql/index.d.ts +4 -0
  228. package/dist/libs/sql/index.js +4 -0
  229. package/dist/libs/sql/src/init.d.ts +24 -0
  230. package/dist/libs/sql/src/init.js +31 -0
  231. package/dist/libs/sql/src/queryLocal.d.ts +6 -0
  232. package/dist/libs/sql/src/queryLocal.js +15 -0
  233. package/dist/libs/sql/src/utils.d.ts +11 -0
  234. package/dist/libs/sql/src/utils.js +56 -0
  235. package/dist/libs/supabase/index.d.ts +4 -0
  236. package/dist/libs/supabase/index.js +2 -0
  237. package/dist/libs/supabase/src/clients/admin/config.d.ts +2 -0
  238. package/dist/libs/supabase/src/clients/admin/config.js +18 -0
  239. package/dist/libs/supabase/src/clients/admin/index.d.ts +8 -0
  240. package/dist/libs/supabase/src/clients/admin/index.js +7 -0
  241. package/dist/libs/supabase/src/clients/admin/utils.d.ts +4 -0
  242. package/dist/libs/supabase/src/clients/admin/utils.js +5 -0
  243. package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
  244. package/dist/libs/supabase/src/clients/app/config.js +30 -0
  245. package/dist/libs/supabase/src/clients/app/index.d.ts +15 -0
  246. package/dist/libs/supabase/src/clients/app/index.js +7 -0
  247. package/dist/libs/supabase/src/clients/app/utils.d.ts +11 -0
  248. package/dist/libs/supabase/src/clients/app/utils.js +9 -0
  249. package/dist/libs/supabase/src/utils/index.d.ts +18 -0
  250. package/dist/libs/supabase/src/utils/index.js +21 -0
  251. package/dist/libs/supabase/src/utils/types.d.ts +20 -0
  252. package/dist/libs/supabase/src/utils/types.js +1 -0
  253. package/dist/libs/swiftui/index.d.ts +7 -0
  254. package/dist/libs/swiftui/index.js +7 -0
  255. package/dist/libs/swiftui/src/Icon.d.ts +10 -0
  256. package/dist/libs/swiftui/src/Icon.js +8 -0
  257. package/dist/libs/swiftui/src/IconSection/Icon.d.ts +27 -0
  258. package/dist/libs/swiftui/src/IconSection/Icon.js +31 -0
  259. package/dist/libs/swiftui/src/IconSection/Section.d.ts +7 -0
  260. package/dist/libs/swiftui/src/IconSection/Section.js +16 -0
  261. package/dist/libs/swiftui/src/IconSection/index.d.ts +7 -0
  262. package/dist/libs/swiftui/src/IconSection/index.js +5 -0
  263. package/dist/libs/swiftui/src/List/Editable/index.d.ts +5 -0
  264. package/dist/libs/swiftui/src/List/Editable/index.js +51 -0
  265. package/dist/libs/swiftui/src/List/Editable/types.d.ts +76 -0
  266. package/dist/libs/swiftui/src/List/Editable/types.js +1 -0
  267. package/dist/libs/swiftui/src/List/index.d.ts +16 -0
  268. package/dist/libs/swiftui/src/List/index.js +21 -0
  269. package/dist/libs/swiftui/src/NavigationLink/Trailing.d.ts +4 -0
  270. package/dist/libs/swiftui/src/NavigationLink/Trailing.js +14 -0
  271. package/dist/libs/swiftui/src/NavigationLink/index.d.ts +4 -0
  272. package/dist/libs/swiftui/src/NavigationLink/index.js +20 -0
  273. package/dist/libs/swiftui/src/NavigationLink/types.d.ts +27 -0
  274. package/dist/libs/swiftui/src/NavigationLink/types.js +1 -0
  275. package/dist/libs/swiftui/src/Picker.d.ts +11 -0
  276. package/dist/libs/swiftui/src/Picker.js +11 -0
  277. package/dist/libs/swiftui/src/Text.d.ts +6 -0
  278. package/dist/libs/swiftui/src/Text.js +7 -0
  279. package/dist/libs/swiftui/src/TextSubtitle.d.ts +22 -0
  280. package/dist/libs/swiftui/src/TextSubtitle.js +9 -0
  281. package/dist/libs/table/index.d.ts +5 -0
  282. package/dist/libs/table/index.js +5 -0
  283. package/dist/libs/table/src/components/Borders.d.ts +6 -0
  284. package/dist/libs/table/src/components/Borders.js +83 -0
  285. package/dist/libs/table/src/components/Delete/index.d.ts +4 -0
  286. package/dist/libs/table/src/components/Delete/index.js +141 -0
  287. package/dist/libs/table/src/components/Delete/types.d.ts +27 -0
  288. package/dist/libs/table/src/components/Delete/types.js +1 -0
  289. package/dist/libs/table/src/components/Detail.d.ts +4 -0
  290. package/dist/libs/table/src/components/Detail.js +11 -0
  291. package/dist/libs/table/src/components/Option/index.d.ts +6 -0
  292. package/dist/libs/table/src/components/Option/index.js +106 -0
  293. package/dist/libs/table/src/components/Option/types.d.ts +61 -0
  294. package/dist/libs/table/src/components/Option/types.js +1 -0
  295. package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +6 -0
  296. package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +14 -0
  297. package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +6 -0
  298. package/dist/libs/table/src/components/OptionComponents/dragIcon.js +18 -0
  299. package/dist/libs/table/src/components/OptionComponents/icon.d.ts +10 -0
  300. package/dist/libs/table/src/components/OptionComponents/icon.js +12 -0
  301. package/dist/libs/table/src/components/OptionComponents/image.d.ts +9 -0
  302. package/dist/libs/table/src/components/OptionComponents/image.js +12 -0
  303. package/dist/libs/table/src/components/OptionComponents/index.d.ts +8 -0
  304. package/dist/libs/table/src/components/OptionComponents/index.js +8 -0
  305. package/dist/libs/table/src/components/OptionComponents/text.d.ts +16 -0
  306. package/dist/libs/table/src/components/OptionComponents/text.js +20 -0
  307. package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +25 -0
  308. package/dist/libs/table/src/components/OptionComponents/textInput.js +49 -0
  309. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +9 -0
  310. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +17 -0
  311. package/dist/libs/table/src/components/OptionComponents/textView.d.ts +14 -0
  312. package/dist/libs/table/src/components/OptionComponents/textView.js +18 -0
  313. package/dist/libs/table/src/components/OptionWrapper/index.d.ts +3 -0
  314. package/dist/libs/table/src/components/OptionWrapper/index.js +9 -0
  315. package/dist/libs/table/src/components/OptionWrapper/types.d.ts +35 -0
  316. package/dist/libs/table/src/components/OptionWrapper/types.js +1 -0
  317. package/dist/libs/table/src/components/Table/index.d.ts +3 -0
  318. package/dist/libs/table/src/components/Table/index.js +90 -0
  319. package/dist/libs/table/src/components/Table/types.d.ts +70 -0
  320. package/dist/libs/table/src/components/Table/types.js +1 -0
  321. package/dist/libs/table/src/components/Wrapper.d.ts +4 -0
  322. package/dist/libs/table/src/components/Wrapper.js +49 -0
  323. package/dist/libs/table/src/constants.d.ts +108 -0
  324. package/dist/libs/table/src/constants.js +107 -0
  325. package/dist/libs/table/src/context/borders.d.ts +10 -0
  326. package/dist/libs/table/src/context/borders.js +11 -0
  327. package/dist/libs/table/src/context/delete.d.ts +1 -0
  328. package/dist/libs/table/src/context/delete.js +2 -0
  329. package/dist/libs/table/src/context/table.d.ts +21 -0
  330. package/dist/libs/table/src/context/table.js +4 -0
  331. package/package.json +73 -0
@@ -0,0 +1,49 @@
1
+ import supabase from "../../../../libs/supabase";
2
+ export const getAbbreviatedName = ({ first_name, last_name, mail }) => {
3
+ // Si tiene "firstname" y "lastname", se usa la primera letra de cada uno
4
+ // Si solo tiene firstname, se usa las primeras dos letras de "firstname"
5
+ // Si solo tiene lastname, se usa las primeras dos letras de "lastname"
6
+ // No tiene ninguno, se usa las primeras dos letras de "mail"
7
+ const f = first_name?.[0] ?? '';
8
+ const l = last_name?.[0] ?? '';
9
+ let name = '';
10
+ if (f && l)
11
+ name = f + l;
12
+ else if (f)
13
+ name = f + (first_name?.[1] ?? f);
14
+ else if (l)
15
+ name = l + (last_name?.[1] ?? l);
16
+ else
17
+ name = mail?.slice(0, 2) ?? '';
18
+ return name.toUpperCase();
19
+ };
20
+ export const handleSubmitLogIn = async ({ username, router }) => {
21
+ username = username.trim();
22
+ const mail = username.includes('@') ? username : `${username}@pytech.com`;
23
+ // Obtengo el user_id
24
+ const { data: dataUsers, error: errorUsers } = await supabase.client.schema('admin').from('users').select('id').eq('mail', mail);
25
+ if (errorUsers)
26
+ return { succeded: false, message: errorUsers.message };
27
+ if (dataUsers.length === 0)
28
+ return { succeded: false, message: 'Revisa la información de la cuenta que ingresaste y vuelve a intentarlo.' };
29
+ // Obtengo los datos del perfil
30
+ const { data, error } = await supabase.client.schema('admin').from('profiles').select('first_name,second_name,last_name,color').eq('user_id', dataUsers[0].id);
31
+ if (error)
32
+ return { succeded: false, message: error.message };
33
+ if (data.length === 0)
34
+ return { succeded: false, message: 'Revisa la información de la cuenta que ingresaste y vuelve a intentarlo.' };
35
+ // Success
36
+ router.push({ pathname: '/login/inicio/perfil', params: { ...data[0], user_id: dataUsers[0].id, mail: mail } });
37
+ return { succeded: true, message: '' };
38
+ };
39
+ export const handleSubmitLogInPerfil = async ({ mail, password }) => {
40
+ password = password.trim();
41
+ const { data, error } = await supabase.logIn({ email: mail, password });
42
+ if (error) {
43
+ if (error.message === 'Invalid login credentials') {
44
+ return { succeded: false, message: 'La contraseña que ingresaste es incorrecta, vuelve a intentarlo.' };
45
+ }
46
+ return { succeded: false, message: error.message };
47
+ }
48
+ return { succeded: true, message: '' };
49
+ };
@@ -0,0 +1,4 @@
1
+ declare const _default: import("react").MemoExoticComponent<({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("react").MemoExoticComponent<({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { useApp } from "../../../../libs/providers/App";
2
+ import { memo } from 'react';
3
+ import { ScrollView, StyleSheet, TouchableWithoutFeedback } from 'react-native';
4
+ import colors from '../constants';
5
+ export default memo(({ children }) => {
6
+ const { colorScheme } = useApp();
7
+ const Theme = colors.theme[colorScheme];
8
+ return (<TouchableWithoutFeedback>
9
+ <ScrollView contentContainerStyle={[styles.pagina, { backgroundColor: Theme.backgroundColor }]} automaticallyAdjustKeyboardInsets={true}>
10
+ {children}
11
+ </ScrollView>
12
+ </TouchableWithoutFeedback>);
13
+ });
14
+ const styles = StyleSheet.create({
15
+ pagina: {
16
+ flex: 1,
17
+ display: 'flex',
18
+ alignItems: 'center',
19
+ }
20
+ });
@@ -0,0 +1,25 @@
1
+ import { useApp } from "../../../../libs/providers/App";
2
+ import { memo } from 'react';
3
+ import { KeyboardAvoidingView, ScrollView, StyleSheet, TouchableWithoutFeedback, useWindowDimensions, View } from 'react-native';
4
+ import colors from '../constants';
5
+ export default memo(({ children }) => {
6
+ const { height } = useWindowDimensions();
7
+ const { colorScheme } = useApp();
8
+ const Theme = colors.theme[colorScheme];
9
+ return (<TouchableWithoutFeedback>
10
+ <KeyboardAvoidingView behavior={'height'} style={{ flex: 1 }}>
11
+ <ScrollView contentContainerStyle={{ minHeight: height, flexGrow: 1 }} keyboardShouldPersistTaps='handled' showsVerticalScrollIndicator={false}>
12
+ <View style={[styles.pagina, { backgroundColor: Theme.backgroundColor }]}>
13
+ {children}
14
+ </View>
15
+ </ScrollView>
16
+ </KeyboardAvoidingView>
17
+ </TouchableWithoutFeedback>);
18
+ });
19
+ const styles = StyleSheet.create({
20
+ pagina: {
21
+ flex: 1,
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ }
25
+ });
@@ -0,0 +1,6 @@
1
+ import { PerfilColorType } from '../../constants';
2
+ declare const _default: import("react").MemoExoticComponent<({ text, color }: {
3
+ text: string;
4
+ color: PerfilColorType;
5
+ }) => import("react").JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { LinearGradient } from "expo-linear-gradient";
2
+ import { Text, StyleSheet } from "react-native";
3
+ import { memo } from "react";
4
+ import colors from '../../constants';
5
+ export default memo(({ text, color = 'default' }) => (<LinearGradient style={styles.container} colors={[colors.perfil[color].light, colors.perfil[color].dark]} start={{ x: 0, y: 0 }} end={{ x: 0, y: 1 }}>
6
+ <Text style={styles.text}>{text}</Text>
7
+ </LinearGradient>));
8
+ const styles = StyleSheet.create({
9
+ container: {
10
+ width: 200,
11
+ height: 200,
12
+ borderRadius: 100,
13
+ justifyContent: 'center',
14
+ alignItems: 'center',
15
+ },
16
+ text: {
17
+ lineHeight: 200,
18
+ fontSize: 90,
19
+ letterSpacing: -2,
20
+ fontWeight: 'bold',
21
+ color: 'white',
22
+ }
23
+ });
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import Props from './types';
3
+ declare const _default: React.MemoExoticComponent<({ placeholder, buttonSend, handleSubmit, messageError, onFocus, onChangeText, onBlur, styleMessageError, ...props }: Props) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,128 @@
1
+ import React, { memo, useEffect, useRef, useState } from 'react';
2
+ import { ActivityIndicator, Image, Keyboard, Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
3
+ import Animated, { Easing, interpolate, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
4
+ import { useApp } from "../../../../../../libs/providers/App";
5
+ import colors from '../../../constants';
6
+ const anim = {
7
+ duration: 400,
8
+ easing: Easing.bezier(0.2, 0.2, 0, 1)
9
+ };
10
+ export default memo(({ placeholder = '', buttonSend = true, handleSubmit, messageError, onFocus, onChangeText, onBlur, styleMessageError, ...props }) => {
11
+ const { colorScheme } = useApp();
12
+ const Theme = colors.theme[colorScheme];
13
+ const valueRef = useRef('');
14
+ const [isFocused, setIsFocused] = useState(false);
15
+ const [isLoading, setIsLoading] = useState(false);
16
+ const [errorMessage, setErrorMessage] = useState(messageError || null);
17
+ const inputRef = useRef(null);
18
+ const animShared = useSharedValue(0);
19
+ // ----------------- Functions-----------------
20
+ const _onFocus = () => {
21
+ setIsFocused(true);
22
+ animShared.value = withTiming(1, { ...anim, duration: 75 });
23
+ onFocus?.();
24
+ };
25
+ const _onBlur = () => {
26
+ setIsFocused(false);
27
+ if (!valueRef.current)
28
+ animShared.value = withTiming(0, { ...anim, duration: 75 });
29
+ onBlur?.();
30
+ };
31
+ const _onChangeText = (text) => {
32
+ valueRef.current = text.toLowerCase();
33
+ onChangeText?.(text);
34
+ };
35
+ const onClickSubmit = () => {
36
+ if (!isLoading) {
37
+ setIsLoading(true);
38
+ _handleSubmit();
39
+ }
40
+ };
41
+ const _handleSubmit = async () => {
42
+ const { succeded, message } = await handleSubmit?.({ value: valueRef.current }) || { succeded: true, message: '' };
43
+ if (!succeded)
44
+ setErrorMessage(message);
45
+ else
46
+ setErrorMessage(null);
47
+ Keyboard.dismiss();
48
+ setIsLoading(false);
49
+ };
50
+ // ----------------- useEffect -----------------
51
+ useEffect(() => {
52
+ setErrorMessage(messageError || null);
53
+ }, [messageError]);
54
+ // ----------------- useAnimatedStyle -----------------
55
+ const animatedStyle = useAnimatedStyle(() => {
56
+ return {
57
+ fontSize: interpolate(animShared.value, [0, 1], [17, 12]),
58
+ paddingTop: interpolate(animShared.value, [0, 1], [15, 5])
59
+ };
60
+ });
61
+ const borderColor = isFocused ? Theme.focus : errorMessage ? Theme.borderColorError : Theme.borderColor5;
62
+ const backgroundColor = errorMessage ? Theme.backgroundColorError : Theme.backgroundColor2;
63
+ return (<View style={{ gap: 10 }}>
64
+ <View onTouchEnd={(e) => e.stopPropagation()} style={[styles.container, { borderColor: borderColor, backgroundColor: backgroundColor }]}>
65
+ <Pressable style={styles.pressable} onPress={() => { inputRef?.current?.focus?.(); }}>
66
+
67
+ <Animated.Text style={[styles.animatedText, { color: errorMessage ? Theme.borderColorError : Theme.borderColor }, animatedStyle]}>
68
+ {placeholder}
69
+ </Animated.Text>
70
+
71
+ <TextInput style={[styles.textInput, { color: Theme.text }]} autoCapitalize='none' autoCorrect={false} {...props} ref={inputRef} onChangeText={_onChangeText} onFocus={_onFocus} onBlur={_onBlur} onSubmitEditing={onClickSubmit}/>
72
+ </Pressable>
73
+
74
+ {buttonSend && (!isLoading ? (<Pressable style={{ paddingHorizontal: 10 }} onPress={onClickSubmit} onTouchStart={onClickSubmit}>
75
+ <View style={[styles.viewImage, { borderColor: Theme.borderColor }]}>
76
+ <Image style={styles.image} tintColor={Theme.borderColor} source={require('../../../../../assets/images/flecha-hacia-abajo.png')}/>
77
+ </View>
78
+ </Pressable>) : (<View style={{ paddingHorizontal: 10 }}>
79
+ <ActivityIndicator size='small' style={{ margin: 'auto' }} color={Theme.borderColor}/>
80
+ </View>))}
81
+ </View>
82
+
83
+ {errorMessage && <Text style={[styles.textError, { color: Theme.borderColorError }, styleMessageError]}>{errorMessage}</Text>}
84
+ </View>);
85
+ });
86
+ const styles = StyleSheet.create({
87
+ container: {
88
+ display: 'flex',
89
+ flexDirection: 'row',
90
+ paddingLeft: 10,
91
+ borderWidth: 1,
92
+ borderRadius: 12
93
+ },
94
+ pressable: {
95
+ flex: 1,
96
+ position: 'relative',
97
+ },
98
+ animatedText: {
99
+ paddingTop: 15,
100
+ position: 'absolute',
101
+ fontSize: 17,
102
+ margin: 'auto',
103
+ cursor: 'text'
104
+ },
105
+ textInput: {
106
+ outlineStyle: 'none',
107
+ paddingTop: 20,
108
+ paddingBottom: 10,
109
+ fontSize: 17,
110
+ },
111
+ viewImage: {
112
+ margin: 'auto',
113
+ borderRadius: '100%',
114
+ borderWidth: 1,
115
+ padding: 5,
116
+ cursor: 'pointer',
117
+ },
118
+ image: {
119
+ margin: 'auto',
120
+ height: 15,
121
+ width: 15,
122
+ transform: [{ rotate: '-90deg' }],
123
+ },
124
+ textError: {
125
+ flex: 1,
126
+ textAlign: 'center',
127
+ }
128
+ });
@@ -0,0 +1,46 @@
1
+ import { StyleProp, TextInputProps, TextStyle } from "react-native";
2
+ type Props = {
3
+ /**
4
+ Texto que aparece como placeholder en el input.
5
+ El valor por defecto es "", no puede ser undefined.
6
+ */
7
+ placeholder?: string;
8
+ /**
9
+ Función asíncrona que se ejecuta cuando se presiona el botón de enviar.
10
+ Tiene que retornar un diccionario con dos propiedades:
11
+ - succeded: boolean
12
+ - message: string
13
+ */
14
+ handleSubmit?: ({ value }: {
15
+ value: string;
16
+ }) => Promise<{
17
+ succeded: boolean;
18
+ message: string;
19
+ }>;
20
+ /**
21
+ Si es true, se muestra el botón de enviar.
22
+ El valor por defecto es true.
23
+ */
24
+ buttonSend?: boolean;
25
+ /**
26
+ Mensaje de error que se muestra debajo del input.
27
+ */
28
+ messageError?: string | null;
29
+ /**
30
+ Estilo del mensaje de error.
31
+ */
32
+ styleMessageError?: StyleProp<TextStyle>;
33
+ /**
34
+ Función que se ejecuta cuando se hace focus en el input.
35
+ */
36
+ onFocus?: () => void;
37
+ /**
38
+ Función que se ejecuta cuando se hace blur en el input.
39
+ */
40
+ onBlur?: () => void;
41
+ /**
42
+ Función que se ejecuta cuando se cambia el texto en el input.
43
+ */
44
+ onChangeText?: (text: string) => void;
45
+ } & Omit<TextInputProps, 'ref' | 'onChangeText' | 'onFocus' | 'onBlur' | 'onSubmitEditing'>;
46
+ export default Props;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("react").MemoExoticComponent<({ size }: {
2
+ size?: number;
3
+ }) => import("react").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { memo } from "react";
2
+ import LogoSvg from '../../../../assets/images/logo_letras.svg';
3
+ import LogoSvgDark from '../../../../assets/images/logo_letras_dark.svg';
4
+ import { useApp } from "../../../../../libs/providers/App";
5
+ export default memo(({ size = 200 }) => {
6
+ const { colorScheme } = useApp();
7
+ const props = { width: size, height: size };
8
+ if (colorScheme === 'dark')
9
+ return <LogoSvgDark {...props}/>;
10
+ return <LogoSvg {...props}/>;
11
+ });
@@ -0,0 +1,4 @@
1
+ declare const _default: import("react").MemoExoticComponent<({ size }: {
2
+ size?: number;
3
+ }) => import("react").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { memo } from "react";
2
+ import LoginSvg from '../../../../assets/images/login_letras.svg';
3
+ import LoginSvgDark from '../../../../assets/images/login_letras_dark.svg';
4
+ import { useApp } from "../../../../../libs/providers/App";
5
+ export default memo(({ size = 200 }) => {
6
+ const { colorScheme } = useApp();
7
+ const props = { width: size, height: size };
8
+ if (colorScheme === 'dark')
9
+ return <LoginSvgDark {...props}/>;
10
+ return <LoginSvg {...props}/>;
11
+ });
@@ -0,0 +1,4 @@
1
+ export { default as Input } from './Input';
2
+ export { default as Gradient } from './Gradient';
3
+ export { default as SvgPytech } from './SvgPytech';
4
+ export { default as SvgLogoPytech } from './SvgLogoPytech';
@@ -0,0 +1,4 @@
1
+ export { default as Input } from './Input';
2
+ export { default as Gradient } from './Gradient';
3
+ export { default as SvgPytech } from './SvgPytech';
4
+ export { default as SvgLogoPytech } from './SvgLogoPytech';
@@ -0,0 +1,4 @@
1
+ import Props, { Component } from './types';
2
+ export { Props };
3
+ declare const LogIn: Component;
4
+ export default LogIn;
@@ -0,0 +1,59 @@
1
+ import { useApp } from "../../../../libs/providers/App";
2
+ import { memo } from 'react';
3
+ import { StyleSheet, Text, useWindowDimensions, View } from 'react-native';
4
+ import colors from '../constants';
5
+ import { Gradient, Input, SvgLogoPytech, SvgPytech } from './components';
6
+ import Container from './Container';
7
+ const LogIn = memo(({ title, subtitle, iconPage, bottomElements, }) => {
8
+ const { height } = useWindowDimensions();
9
+ const { colorScheme } = useApp();
10
+ const Theme = colors.theme[colorScheme];
11
+ return (<Container>
12
+ {iconPage &&
13
+ <View style={{ marginTop: height * 0.18 }}>
14
+ {iconPage}
15
+ </View>}
16
+
17
+ <View style={styles.viewText}>
18
+ <Text style={[styles.title, { color: Theme.text }]}>{title}</Text>
19
+ {subtitle && <Text style={[styles.subtitle, { color: Theme.text2 }]}>{subtitle}</Text>}
20
+ </View>
21
+
22
+ {bottomElements &&
23
+ <View style={styles.viewBottom}>
24
+ {bottomElements}
25
+ </View>}
26
+
27
+ </Container>);
28
+ });
29
+ LogIn.Input = Input;
30
+ LogIn.Gradient = Gradient;
31
+ LogIn.SvgPytech = SvgPytech;
32
+ LogIn.SvgLogoPytech = SvgLogoPytech;
33
+ export default LogIn;
34
+ const styles = StyleSheet.create({
35
+ viewText: {
36
+ marginTop: 32,
37
+ gap: 16,
38
+ width: '70%',
39
+ maxWidth: 400
40
+ },
41
+ title: {
42
+ margin: 'auto',
43
+ textAlign: 'center',
44
+ fontSize: 32,
45
+ fontWeight: 'bold',
46
+ },
47
+ subtitle: {
48
+ margin: 'auto',
49
+ textAlign: 'center',
50
+ fontSize: 17,
51
+ },
52
+ viewBottom: {
53
+ width: '80%',
54
+ maxWidth: 460,
55
+ display: 'flex',
56
+ marginTop: 32,
57
+ gap: 10
58
+ }
59
+ });
@@ -0,0 +1,14 @@
1
+ import { Input, Gradient, SvgPytech, SvgLogoPytech } from './components';
2
+ type Props = {
3
+ title: string;
4
+ subtitle?: string;
5
+ iconPage?: React.ReactNode;
6
+ bottomElements?: React.ReactNode[] | React.ReactNode;
7
+ };
8
+ export type Component = React.MemoExoticComponent<React.FC<Props>> & {
9
+ Gradient: typeof Gradient;
10
+ Input: typeof Input;
11
+ SvgPytech: typeof SvgPytech;
12
+ SvgLogoPytech: typeof SvgLogoPytech;
13
+ };
14
+ export default Props;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,98 @@
1
+ export declare const colors: {
2
+ theme: {
3
+ light: {
4
+ text: string;
5
+ text2: string;
6
+ focus: string;
7
+ backgroundColor: string;
8
+ backgroundColor2: string;
9
+ backgroundColorError: string;
10
+ borderColor: string;
11
+ borderColor5: string;
12
+ borderColorError: string;
13
+ backgroundColorModal2: string;
14
+ };
15
+ dark: {
16
+ text: string;
17
+ text2: string;
18
+ focus: string;
19
+ backgroundColor: string;
20
+ backgroundColor2: string;
21
+ backgroundColorError: string;
22
+ borderColor: string;
23
+ borderColor5: string;
24
+ borderColorError: string;
25
+ backgroundColorModal2: string;
26
+ };
27
+ };
28
+ perfil: {
29
+ default: {
30
+ dark: string;
31
+ light: string;
32
+ };
33
+ rojo: {
34
+ dark: string;
35
+ light: string;
36
+ };
37
+ amarillo: {
38
+ dark: string;
39
+ light: string;
40
+ };
41
+ azul_oscuro: {
42
+ dark: string;
43
+ light: string;
44
+ };
45
+ naranja: {
46
+ dark: string;
47
+ light: string;
48
+ };
49
+ marron_claro: {
50
+ dark: string;
51
+ light: string;
52
+ };
53
+ verde_agua: {
54
+ dark: string;
55
+ light: string;
56
+ };
57
+ marron_oscuro: {
58
+ dark: string;
59
+ light: string;
60
+ };
61
+ rosa: {
62
+ dark: string;
63
+ light: string;
64
+ };
65
+ azul_claro: {
66
+ dark: string;
67
+ light: string;
68
+ };
69
+ violeta: {
70
+ dark: string;
71
+ light: string;
72
+ };
73
+ celeste_oscuro: {
74
+ dark: string;
75
+ light: string;
76
+ };
77
+ gris: {
78
+ dark: string;
79
+ light: string;
80
+ };
81
+ celeste_claro: {
82
+ dark: string;
83
+ light: string;
84
+ };
85
+ verde_oscuro: {
86
+ dark: string;
87
+ light: string;
88
+ };
89
+ verde_claro: {
90
+ dark: string;
91
+ light: string;
92
+ };
93
+ };
94
+ };
95
+ export type ColorSchemeType = 'light' | 'dark';
96
+ export type ThemeType = typeof colors['theme']['light'];
97
+ export type PerfilColorType = keyof typeof colors['perfil'];
98
+ export default colors;
@@ -0,0 +1,48 @@
1
+ import colorsLib from "../../../libs/constants/colors";
2
+ export const colors = {
3
+ theme: {
4
+ light: {
5
+ text: 'hsl(0, 0%, 0%)',
6
+ text2: 'hsl(0, 0%, 10%)',
7
+ focus: 'hsl(208, 100%, 43.70%)',
8
+ backgroundColor: 'hsl(0, 0%, 100%)',
9
+ backgroundColor2: 'hsl(0, 0%, 100%)',
10
+ backgroundColorError: 'hsl(351, 100%, 97.50%)',
11
+ borderColor: 'rgba(150, 150, 150, 1)',
12
+ borderColor5: 'rgba(150, 150, 150, 0.5)',
13
+ borderColorError: 'hsl(0, 100%, 44.50%)',
14
+ backgroundColorModal2: colorsLib.light.backgroundColorModal2
15
+ },
16
+ dark: {
17
+ text: 'hsl(0, 0%, 100%)',
18
+ text2: 'hsl(0, 0%, 90%)',
19
+ focus: 'hsl(208, 100%, 43.70%)',
20
+ backgroundColor: 'hsl(240, 3.40%, 11.40%)',
21
+ backgroundColor2: 'hsl(240, 2.60%, 14.90%)',
22
+ backgroundColorError: 'hsl(0, 100%, 20%)',
23
+ borderColor: 'rgba(150, 150, 150, 1)',
24
+ borderColor5: 'rgba(150, 150, 150, 0.5)',
25
+ borderColorError: 'hsl(358, 100%, 59.40%)',
26
+ backgroundColorModal2: colorsLib.dark.backgroundColorModal2
27
+ },
28
+ },
29
+ perfil: {
30
+ default: { dark: '#7580ba', light: '#b1c6e4' },
31
+ rojo: { dark: '#b12309', light: '#ff856a' },
32
+ amarillo: { dark: '#c97c00', light: '#ffe535' },
33
+ azul_oscuro: { dark: '#0f236d', light: '#6a7ec9' },
34
+ naranja: { dark: '#9c4d00', light: '#ffba53' },
35
+ marron_claro: { dark: '#75582e', light: '#e4c79d' },
36
+ verde_agua: { dark: '#105951', light: '#80c3ba' },
37
+ marron_oscuro: { dark: '#4f2a00', light: '#aa855a' },
38
+ rosa: { dark: '#892466', light: '#f08bcc' },
39
+ azul_claro: { dark: '#334696', light: '#9eb1ff' },
40
+ violeta: { dark: '#482d76', light: '#ac90d9' },
41
+ celeste_oscuro: { dark: '#005095', light: '#6dbfff' },
42
+ gris: { dark: '#445255', light: '#b0bec1' },
43
+ celeste_claro: { dark: '#237286', light: '#98e7fb' },
44
+ verde_oscuro: { dark: '#215b1d', light: '#8ac487' },
45
+ verde_claro: { dark: '#4b5f13', light: '#bbce82' }
46
+ }
47
+ };
48
+ export default colors;
@@ -0,0 +1 @@
1
+ export { default } from './src/components/PageWrapper';
@@ -0,0 +1 @@
1
+ export { default } from './src/components/PageWrapper';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import Props from '../PageWrapper/types';
3
+ declare const _default: React.MemoExoticComponent<({ children, style }: Props) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React, { memo } from 'react';
2
+ import { KeyboardAvoidingView, ScrollView } from 'react-native';
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
4
+ export default memo(({ children, style }) => {
5
+ const { bottom, top } = useSafeAreaInsets();
6
+ return (<KeyboardAvoidingView style={{ flex: 1 }} behavior={'height'} keyboardVerticalOffset={bottom + top}>
7
+ <ScrollView contentContainerStyle={[{ flexGrow: 1 }, style]}>
8
+ {children}
9
+ </ScrollView>
10
+ </KeyboardAvoidingView>);
11
+ });
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import Props from '../PageWrapper/types';
3
+ declare const _default: React.MemoExoticComponent<({ children, style }: Props) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React, { memo } from 'react';
2
+ import { Platform, ScrollView } from 'react-native';
3
+ export default memo(({ children, style }) => {
4
+ return (<ScrollView style={{ flex: 1 }} automaticallyAdjustKeyboardInsets={true} contentContainerStyle={style} showsVerticalScrollIndicator={Platform.OS === 'web' ? false : undefined}>
5
+ {children}
6
+ </ScrollView>);
7
+ });
@@ -0,0 +1,6 @@
1
+ import { Component } from './types';
2
+ /**
3
+ Crea una Página con ScrollView.
4
+ */
5
+ declare const PageComponent: Component;
6
+ export default PageComponent;