native-pytech 1.0.129 → 1.0.131

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 (407) hide show
  1. package/dist/app/assets/components/removeCircle.d.ts +2 -0
  2. package/dist/app/assets/components/removeCircle.js +2 -0
  3. package/dist/app/assets/components/reorderThreeOutline.d.ts +2 -0
  4. package/dist/app/assets/components/reorderThreeOutline.js +2 -0
  5. package/dist/app/assets/ionicons.d.ts +2 -0
  6. package/dist/app/assets/ionicons.js +2 -0
  7. package/dist/app/colorPage.d.ts +1 -0
  8. package/dist/app/colorPage.js +1 -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/formats.d.ts +1 -0
  24. package/dist/app/constants/formats.js +1 -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/editPage.d.ts +1 -0
  30. package/dist/app/editPage.js +1 -0
  31. package/dist/app/footer.d.ts +2 -0
  32. package/dist/app/footer.js +2 -0
  33. package/dist/app/login.d.ts +2 -0
  34. package/dist/app/login.js +2 -0
  35. package/dist/app/page.d.ts +2 -0
  36. package/dist/app/page.js +2 -0
  37. package/dist/app/pickerPage.d.ts +1 -0
  38. package/dist/app/pickerPage.js +1 -0
  39. package/dist/app/providers/app.d.ts +2 -0
  40. package/dist/app/providers/app.js +2 -0
  41. package/dist/app/segmentedControl.d.ts +2 -0
  42. package/dist/app/segmentedControl.js +2 -0
  43. package/dist/app/sql.d.ts +2 -0
  44. package/dist/app/sql.js +2 -0
  45. package/dist/app/supabase.d.ts +2 -0
  46. package/dist/app/supabase.js +2 -0
  47. package/dist/app/swiftui.d.ts +1 -0
  48. package/dist/app/swiftui.js +1 -0
  49. package/dist/app/table.d.ts +2 -0
  50. package/dist/app/table.js +2 -0
  51. package/dist/index.d.ts +8 -0
  52. package/dist/index.js +8 -0
  53. package/dist/libs/assets/components/RemoveCircle.d.ts +6 -0
  54. package/dist/libs/assets/components/RemoveCircle.js +25 -0
  55. package/dist/libs/assets/components/ReorderThreeOutline.d.ts +5 -0
  56. package/dist/libs/assets/components/ReorderThreeOutline.js +15 -0
  57. package/dist/libs/assets/ionicons/Ionicons.d.ts +35 -0
  58. package/dist/libs/assets/ionicons/Ionicons.js +16 -0
  59. package/dist/libs/assets/ionicons/index.d.ts +6 -0
  60. package/dist/libs/assets/ionicons/index.js +23 -0
  61. package/dist/libs/colorPage/index.d.ts +1 -0
  62. package/dist/libs/colorPage/index.js +1 -0
  63. package/dist/libs/colorPage/src/Content/index.android.d.ts +4 -0
  64. package/dist/libs/colorPage/src/Content/index.android.js +13 -0
  65. package/dist/libs/colorPage/src/Content/index.d.ts +3 -0
  66. package/dist/libs/colorPage/src/Content/index.ios.d.ts +4 -0
  67. package/dist/libs/colorPage/src/Content/index.ios.js +16 -0
  68. package/dist/libs/colorPage/src/Content/index.js +1 -0
  69. package/dist/libs/colorPage/src/Content/types.d.ts +10 -0
  70. package/dist/libs/colorPage/src/Content/types.js +1 -0
  71. package/dist/libs/colorPage/src/Item/index.android.d.ts +4 -0
  72. package/dist/libs/colorPage/src/Item/index.android.js +40 -0
  73. package/dist/libs/colorPage/src/Item/index.d.ts +3 -0
  74. package/dist/libs/colorPage/src/Item/index.ios.d.ts +4 -0
  75. package/dist/libs/colorPage/src/Item/index.ios.js +31 -0
  76. package/dist/libs/colorPage/src/Item/index.js +1 -0
  77. package/dist/libs/colorPage/src/Item/types.d.ts +13 -0
  78. package/dist/libs/colorPage/src/Item/types.js +1 -0
  79. package/dist/libs/colorPage/src/Page/index.d.ts +4 -0
  80. package/dist/libs/colorPage/src/Page/index.js +17 -0
  81. package/dist/libs/colorPage/src/Page/types.d.ts +27 -0
  82. package/dist/libs/colorPage/src/Page/types.js +1 -0
  83. package/dist/libs/components/CloseButton.d.ts +9 -0
  84. package/dist/libs/components/CloseButton.js +18 -0
  85. package/dist/libs/components/Gradient/components/Gradient/index.d.ts +4 -0
  86. package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +4 -0
  87. package/dist/libs/components/Gradient/components/Gradient/index.ios.js +35 -0
  88. package/dist/libs/components/Gradient/components/Gradient/index.js +32 -0
  89. package/dist/libs/components/Gradient/components/Gradient/types.d.ts +30 -0
  90. package/dist/libs/components/Gradient/components/Gradient/types.js +1 -0
  91. package/dist/libs/components/Gradient/components/Icon.d.ts +21 -0
  92. package/dist/libs/components/Gradient/components/Icon.js +1 -0
  93. package/dist/libs/components/Gradient/constants.d.ts +97 -0
  94. package/dist/libs/components/Gradient/constants.js +98 -0
  95. package/dist/libs/components/Gradient/index.d.ts +3 -0
  96. package/dist/libs/components/Gradient/index.js +2 -0
  97. package/dist/libs/components/Link.d.ts +13 -0
  98. package/dist/libs/components/Link.js +20 -0
  99. package/dist/libs/components/Text.d.ts +6 -0
  100. package/dist/libs/components/Text.js +11 -0
  101. package/dist/libs/components/Theme.d.ts +9 -0
  102. package/dist/libs/components/Theme.js +10 -0
  103. package/dist/libs/constants/colors.d.ts +218 -0
  104. package/dist/libs/constants/colors.js +170 -0
  105. package/dist/libs/constants/consts.d.ts +13 -0
  106. package/dist/libs/constants/consts.js +23 -0
  107. package/dist/libs/constants/formats.d.ts +11 -0
  108. package/dist/libs/constants/formats.js +84 -0
  109. package/dist/libs/constants/hooks.d.ts +8 -0
  110. package/dist/libs/constants/hooks.js +59 -0
  111. package/dist/libs/constants/utils.d.ts +12 -0
  112. package/dist/libs/constants/utils.js +75 -0
  113. package/dist/libs/editPage/index.d.ts +9 -0
  114. package/dist/libs/editPage/index.js +7 -0
  115. package/dist/libs/editPage/src/components/Item/index.d.ts +3 -0
  116. package/dist/libs/editPage/src/components/Item/index.ios.d.ts +4 -0
  117. package/dist/libs/editPage/src/components/Item/index.ios.js +12 -0
  118. package/dist/libs/editPage/src/components/Item/index.js +1 -0
  119. package/dist/libs/editPage/src/components/Item/types.d.ts +14 -0
  120. package/dist/libs/editPage/src/components/Item/types.js +1 -0
  121. package/dist/libs/editPage/src/components/ItemDate/index.d.ts +3 -0
  122. package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +4 -0
  123. package/dist/libs/editPage/src/components/ItemDate/index.ios.js +29 -0
  124. package/dist/libs/editPage/src/components/ItemDate/index.js +1 -0
  125. package/dist/libs/editPage/src/components/ItemDate/types.d.ts +25 -0
  126. package/dist/libs/editPage/src/components/ItemDate/types.js +1 -0
  127. package/dist/libs/editPage/src/components/Screen/index.d.ts +4 -0
  128. package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +4 -0
  129. package/dist/libs/editPage/src/components/Screen/index.ios.js +8 -0
  130. package/dist/libs/editPage/src/components/Screen/index.js +1 -0
  131. package/dist/libs/editPage/src/components/Screen/types.d.ts +27 -0
  132. package/dist/libs/editPage/src/components/Screen/types.js +1 -0
  133. package/dist/libs/editPage/src/components/TextField/index.d.ts +3 -0
  134. package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +4 -0
  135. package/dist/libs/editPage/src/components/TextField/index.ios.js +35 -0
  136. package/dist/libs/editPage/src/components/TextField/index.js +1 -0
  137. package/dist/libs/editPage/src/components/TextField/types.d.ts +32 -0
  138. package/dist/libs/editPage/src/components/TextField/types.js +1 -0
  139. package/dist/libs/editPage/src/components/Wrapper/index.d.ts +4 -0
  140. package/dist/libs/editPage/src/components/Wrapper/index.js +84 -0
  141. package/dist/libs/editPage/src/components/Wrapper/types.d.ts +23 -0
  142. package/dist/libs/editPage/src/components/Wrapper/types.js +1 -0
  143. package/dist/libs/editPage/src/context/page.d.ts +13 -0
  144. package/dist/libs/editPage/src/context/page.js +2 -0
  145. package/dist/libs/footer/index.d.ts +1 -0
  146. package/dist/libs/footer/index.js +1 -0
  147. package/dist/libs/footer/src/components/Background/index.d.ts +4 -0
  148. package/dist/libs/footer/src/components/Background/index.ios.d.ts +4 -0
  149. package/dist/libs/footer/src/components/Background/index.ios.js +22 -0
  150. package/dist/libs/footer/src/components/Background/index.js +21 -0
  151. package/dist/libs/footer/src/components/Button/Text.d.ts +3 -0
  152. package/dist/libs/footer/src/components/Button/Text.js +18 -0
  153. package/dist/libs/footer/src/components/Button/index.d.ts +3 -0
  154. package/dist/libs/footer/src/components/Button/index.ios.d.ts +4 -0
  155. package/dist/libs/footer/src/components/Button/index.ios.js +30 -0
  156. package/dist/libs/footer/src/components/Button/index.js +55 -0
  157. package/dist/libs/footer/src/components/Button/types.d.ts +22 -0
  158. package/dist/libs/footer/src/components/Button/types.js +1 -0
  159. package/dist/libs/footer/src/components/Footer/index.d.ts +6 -0
  160. package/dist/libs/footer/src/components/Footer/index.ios.d.ts +7 -0
  161. package/dist/libs/footer/src/components/Footer/index.ios.js +9 -0
  162. package/dist/libs/footer/src/components/Footer/index.js +38 -0
  163. package/dist/libs/footer/src/components/View.d.ts +5 -0
  164. package/dist/libs/footer/src/components/View.js +11 -0
  165. package/dist/libs/footer/src/constants.d.ts +20 -0
  166. package/dist/libs/footer/src/constants.js +21 -0
  167. package/dist/libs/footer/src/index.d.ts +9 -0
  168. package/dist/libs/footer/src/index.js +7 -0
  169. package/dist/libs/login/index.d.ts +3 -0
  170. package/dist/libs/login/index.js +3 -0
  171. package/dist/libs/login/src/Pages/Home/index.d.ts +3 -0
  172. package/dist/libs/login/src/Pages/Home/index.js +20 -0
  173. package/dist/libs/login/src/Pages/Home/types.d.ts +19 -0
  174. package/dist/libs/login/src/Pages/Home/types.js +1 -0
  175. package/dist/libs/login/src/Pages/Perfil.d.ts +5 -0
  176. package/dist/libs/login/src/Pages/Perfil.js +19 -0
  177. package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +9 -0
  178. package/dist/libs/login/src/Pages/SignIn/Form/Input.js +10 -0
  179. package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +6 -0
  180. package/dist/libs/login/src/Pages/SignIn/Form/index.js +34 -0
  181. package/dist/libs/login/src/Pages/SignIn/index.d.ts +3 -0
  182. package/dist/libs/login/src/Pages/SignIn/index.js +149 -0
  183. package/dist/libs/login/src/Pages/SignIn/types.d.ts +31 -0
  184. package/dist/libs/login/src/Pages/SignIn/types.js +1 -0
  185. package/dist/libs/login/src/Pages/index.d.ts +3 -0
  186. package/dist/libs/login/src/Pages/index.js +3 -0
  187. package/dist/libs/login/src/Pages/utils.d.ts +22 -0
  188. package/dist/libs/login/src/Pages/utils.js +24 -0
  189. package/dist/libs/login/src/Screen/Container.d.ts +4 -0
  190. package/dist/libs/login/src/Screen/Container.ios.d.ts +4 -0
  191. package/dist/libs/login/src/Screen/Container.ios.js +20 -0
  192. package/dist/libs/login/src/Screen/Container.js +25 -0
  193. package/dist/libs/login/src/Screen/components/Gradient.d.ts +6 -0
  194. package/dist/libs/login/src/Screen/components/Gradient.js +23 -0
  195. package/dist/libs/login/src/Screen/components/Input/index.d.ts +4 -0
  196. package/dist/libs/login/src/Screen/components/Input/index.js +128 -0
  197. package/dist/libs/login/src/Screen/components/Input/types.d.ts +46 -0
  198. package/dist/libs/login/src/Screen/components/Input/types.js +1 -0
  199. package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +4 -0
  200. package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +11 -0
  201. package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +4 -0
  202. package/dist/libs/login/src/Screen/components/SvgPytech.js +11 -0
  203. package/dist/libs/login/src/Screen/components/index.d.ts +4 -0
  204. package/dist/libs/login/src/Screen/components/index.js +4 -0
  205. package/dist/libs/login/src/Screen/index.d.ts +4 -0
  206. package/dist/libs/login/src/Screen/index.js +59 -0
  207. package/dist/libs/login/src/Screen/types.d.ts +14 -0
  208. package/dist/libs/login/src/Screen/types.js +1 -0
  209. package/dist/libs/login/src/constants.d.ts +98 -0
  210. package/dist/libs/login/src/constants.js +48 -0
  211. package/dist/libs/page/index.d.ts +1 -0
  212. package/dist/libs/page/index.js +1 -0
  213. package/dist/libs/page/src/components/Page/index.android.d.ts +4 -0
  214. package/dist/libs/page/src/components/Page/index.android.js +11 -0
  215. package/dist/libs/page/src/components/Page/index.d.ts +4 -0
  216. package/dist/libs/page/src/components/Page/index.js +7 -0
  217. package/dist/libs/page/src/components/PageWrapper/index.d.ts +6 -0
  218. package/dist/libs/page/src/components/PageWrapper/index.js +13 -0
  219. package/dist/libs/page/src/components/PageWrapper/types.d.ts +16 -0
  220. package/dist/libs/page/src/components/PageWrapper/types.js +1 -0
  221. package/dist/libs/page/src/components/Subtitle.d.ts +5 -0
  222. package/dist/libs/page/src/components/Subtitle.js +9 -0
  223. package/dist/libs/page/src/components/WithIcon/index.d.ts +3 -0
  224. package/dist/libs/page/src/components/WithIcon/index.js +47 -0
  225. package/dist/libs/page/src/components/WithIcon/types.d.ts +15 -0
  226. package/dist/libs/page/src/components/WithIcon/types.js +1 -0
  227. package/dist/libs/page/src/constants.d.ts +12 -0
  228. package/dist/libs/page/src/constants.js +12 -0
  229. package/dist/libs/pickerPage/index.d.ts +7 -0
  230. package/dist/libs/pickerPage/index.js +5 -0
  231. package/dist/libs/pickerPage/src/components/Content/index.d.ts +4 -0
  232. package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +4 -0
  233. package/dist/libs/pickerPage/src/components/Content/index.ios.js +19 -0
  234. package/dist/libs/pickerPage/src/components/Content/index.js +14 -0
  235. package/dist/libs/pickerPage/src/components/Content/types.d.ts +3 -0
  236. package/dist/libs/pickerPage/src/components/Content/types.js +1 -0
  237. package/dist/libs/pickerPage/src/components/Item/index.d.ts +4 -0
  238. package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +8 -0
  239. package/dist/libs/pickerPage/src/components/Item/index.ios.js +8 -0
  240. package/dist/libs/pickerPage/src/components/Item/index.js +16 -0
  241. package/dist/libs/pickerPage/src/components/Item/types.d.ts +28 -0
  242. package/dist/libs/pickerPage/src/components/Item/types.js +1 -0
  243. package/dist/libs/pickerPage/src/components/Page/index.d.ts +4 -0
  244. package/dist/libs/pickerPage/src/components/Page/index.js +22 -0
  245. package/dist/libs/pickerPage/src/components/Page/types.d.ts +30 -0
  246. package/dist/libs/pickerPage/src/components/Page/types.js +1 -0
  247. package/dist/libs/pickerPage/src/context/page.d.ts +7 -0
  248. package/dist/libs/pickerPage/src/context/page.js +2 -0
  249. package/dist/libs/providers/App/index.d.ts +10 -0
  250. package/dist/libs/providers/App/index.js +58 -0
  251. package/dist/libs/providers/App/types.d.ts +35 -0
  252. package/dist/libs/providers/App/types.js +1 -0
  253. package/dist/libs/providers/constants.d.ts +10 -0
  254. package/dist/libs/providers/constants.js +10 -0
  255. package/dist/libs/segmentedControl/index.d.ts +2 -0
  256. package/dist/libs/segmentedControl/index.js +2 -0
  257. package/dist/libs/segmentedControl/src/colors.d.ts +15 -0
  258. package/dist/libs/segmentedControl/src/colors.js +16 -0
  259. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +4 -0
  260. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +79 -0
  261. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +28 -0
  262. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +1 -0
  263. package/dist/libs/segmentedControl/src/components/Container/index.d.ts +4 -0
  264. package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +4 -0
  265. package/dist/libs/segmentedControl/src/components/Container/index.ios.js +15 -0
  266. package/dist/libs/segmentedControl/src/components/Container/index.js +18 -0
  267. package/dist/libs/segmentedControl/src/components/Container/types.d.ts +16 -0
  268. package/dist/libs/segmentedControl/src/components/Container/types.js +1 -0
  269. package/dist/libs/segmentedControl/src/components/Item/index.d.ts +4 -0
  270. package/dist/libs/segmentedControl/src/components/Item/index.js +26 -0
  271. package/dist/libs/segmentedControl/src/components/Item/types.d.ts +20 -0
  272. package/dist/libs/segmentedControl/src/components/Item/types.js +1 -0
  273. package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +4 -0
  274. package/dist/libs/segmentedControl/src/components/Segmented/index.js +93 -0
  275. package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +12 -0
  276. package/dist/libs/segmentedControl/src/components/Segmented/types.js +1 -0
  277. package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +4 -0
  278. package/dist/libs/segmentedControl/src/components/Wrapper/index.js +21 -0
  279. package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +38 -0
  280. package/dist/libs/segmentedControl/src/components/Wrapper/types.js +1 -0
  281. package/dist/libs/segmentedControl/src/context/shared.d.ts +11 -0
  282. package/dist/libs/segmentedControl/src/context/shared.js +13 -0
  283. package/dist/libs/segmentedControl/src/utils.d.ts +10 -0
  284. package/dist/libs/segmentedControl/src/utils.js +29 -0
  285. package/dist/libs/sql/index.d.ts +4 -0
  286. package/dist/libs/sql/index.js +4 -0
  287. package/dist/libs/sql/src/init.d.ts +24 -0
  288. package/dist/libs/sql/src/init.js +31 -0
  289. package/dist/libs/sql/src/queryLocal.d.ts +6 -0
  290. package/dist/libs/sql/src/queryLocal.js +15 -0
  291. package/dist/libs/sql/src/utils.d.ts +11 -0
  292. package/dist/libs/sql/src/utils.js +60 -0
  293. package/dist/libs/supabase/index.d.ts +4 -0
  294. package/dist/libs/supabase/index.js +2 -0
  295. package/dist/libs/supabase/src/clients/admin/config.d.ts +2 -0
  296. package/dist/libs/supabase/src/clients/admin/config.js +18 -0
  297. package/dist/libs/supabase/src/clients/admin/index.d.ts +9 -0
  298. package/dist/libs/supabase/src/clients/admin/index.js +7 -0
  299. package/dist/libs/supabase/src/clients/admin/utils.d.ts +5 -0
  300. package/dist/libs/supabase/src/clients/admin/utils.js +6 -0
  301. package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
  302. package/dist/libs/supabase/src/clients/app/config.js +31 -0
  303. package/dist/libs/supabase/src/clients/app/index.d.ts +16 -0
  304. package/dist/libs/supabase/src/clients/app/index.js +7 -0
  305. package/dist/libs/supabase/src/clients/app/utils.d.ts +12 -0
  306. package/dist/libs/supabase/src/clients/app/utils.js +10 -0
  307. package/dist/libs/supabase/src/utils/index.d.ts +20 -0
  308. package/dist/libs/supabase/src/utils/index.js +23 -0
  309. package/dist/libs/supabase/src/utils/types.d.ts +22 -0
  310. package/dist/libs/supabase/src/utils/types.js +1 -0
  311. package/dist/libs/swiftui/index.d.ts +9 -0
  312. package/dist/libs/swiftui/index.js +9 -0
  313. package/dist/libs/swiftui/src/components/Dialog/index.d.ts +4 -0
  314. package/dist/libs/swiftui/src/components/Dialog/index.js +22 -0
  315. package/dist/libs/swiftui/src/components/Dialog/types.d.ts +21 -0
  316. package/dist/libs/swiftui/src/components/Dialog/types.js +1 -0
  317. package/dist/libs/swiftui/src/components/Host.d.ts +6 -0
  318. package/dist/libs/swiftui/src/components/Host.js +5 -0
  319. package/dist/libs/swiftui/src/components/Icon.d.ts +10 -0
  320. package/dist/libs/swiftui/src/components/Icon.js +8 -0
  321. package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +25 -0
  322. package/dist/libs/swiftui/src/components/IconSection/Icon.js +26 -0
  323. package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +7 -0
  324. package/dist/libs/swiftui/src/components/IconSection/Section.js +17 -0
  325. package/dist/libs/swiftui/src/components/IconSection/index.d.ts +7 -0
  326. package/dist/libs/swiftui/src/components/IconSection/index.js +5 -0
  327. package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +10 -0
  328. package/dist/libs/swiftui/src/components/List/BaseList/index.js +20 -0
  329. package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +16 -0
  330. package/dist/libs/swiftui/src/components/List/BaseList/types.js +1 -0
  331. package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +4 -0
  332. package/dist/libs/swiftui/src/components/List/Editable/List/index.js +19 -0
  333. package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +16 -0
  334. package/dist/libs/swiftui/src/components/List/Editable/List/types.js +1 -0
  335. package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +5 -0
  336. package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +36 -0
  337. package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +42 -0
  338. package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +1 -0
  339. package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +7 -0
  340. package/dist/libs/swiftui/src/components/List/Editable/index.js +5 -0
  341. package/dist/libs/swiftui/src/components/List/index.d.ts +7 -0
  342. package/dist/libs/swiftui/src/components/List/index.js +5 -0
  343. package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +4 -0
  344. package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +14 -0
  345. package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +4 -0
  346. package/dist/libs/swiftui/src/components/NavigationLink/index.js +14 -0
  347. package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +31 -0
  348. package/dist/libs/swiftui/src/components/NavigationLink/types.js +1 -0
  349. package/dist/libs/swiftui/src/components/Picker.d.ts +11 -0
  350. package/dist/libs/swiftui/src/components/Picker.js +14 -0
  351. package/dist/libs/swiftui/src/components/Text.d.ts +6 -0
  352. package/dist/libs/swiftui/src/components/Text.js +10 -0
  353. package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +22 -0
  354. package/dist/libs/swiftui/src/components/TextSubtitle.js +9 -0
  355. package/dist/libs/swiftui/src/context/ListEditable.d.ts +7 -0
  356. package/dist/libs/swiftui/src/context/ListEditable.js +2 -0
  357. package/dist/libs/table/index.d.ts +5 -0
  358. package/dist/libs/table/index.js +5 -0
  359. package/dist/libs/table/src/components/Borders.d.ts +6 -0
  360. package/dist/libs/table/src/components/Borders.js +84 -0
  361. package/dist/libs/table/src/components/Delete/index.d.ts +4 -0
  362. package/dist/libs/table/src/components/Delete/index.js +141 -0
  363. package/dist/libs/table/src/components/Delete/types.d.ts +27 -0
  364. package/dist/libs/table/src/components/Delete/types.js +1 -0
  365. package/dist/libs/table/src/components/Detail.d.ts +4 -0
  366. package/dist/libs/table/src/components/Detail.js +11 -0
  367. package/dist/libs/table/src/components/Option/index.d.ts +6 -0
  368. package/dist/libs/table/src/components/Option/index.js +106 -0
  369. package/dist/libs/table/src/components/Option/types.d.ts +61 -0
  370. package/dist/libs/table/src/components/Option/types.js +1 -0
  371. package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +6 -0
  372. package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +14 -0
  373. package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +6 -0
  374. package/dist/libs/table/src/components/OptionComponents/dragIcon.js +18 -0
  375. package/dist/libs/table/src/components/OptionComponents/icon.d.ts +10 -0
  376. package/dist/libs/table/src/components/OptionComponents/icon.js +12 -0
  377. package/dist/libs/table/src/components/OptionComponents/image.d.ts +9 -0
  378. package/dist/libs/table/src/components/OptionComponents/image.js +12 -0
  379. package/dist/libs/table/src/components/OptionComponents/index.d.ts +8 -0
  380. package/dist/libs/table/src/components/OptionComponents/index.js +8 -0
  381. package/dist/libs/table/src/components/OptionComponents/text.d.ts +22 -0
  382. package/dist/libs/table/src/components/OptionComponents/text.js +20 -0
  383. package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +25 -0
  384. package/dist/libs/table/src/components/OptionComponents/textInput.js +49 -0
  385. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +8 -0
  386. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +10 -0
  387. package/dist/libs/table/src/components/OptionComponents/textView.d.ts +14 -0
  388. package/dist/libs/table/src/components/OptionComponents/textView.js +18 -0
  389. package/dist/libs/table/src/components/OptionWrapper/index.d.ts +3 -0
  390. package/dist/libs/table/src/components/OptionWrapper/index.js +9 -0
  391. package/dist/libs/table/src/components/OptionWrapper/types.d.ts +37 -0
  392. package/dist/libs/table/src/components/OptionWrapper/types.js +1 -0
  393. package/dist/libs/table/src/components/Table/index.d.ts +3 -0
  394. package/dist/libs/table/src/components/Table/index.js +90 -0
  395. package/dist/libs/table/src/components/Table/types.d.ts +70 -0
  396. package/dist/libs/table/src/components/Table/types.js +1 -0
  397. package/dist/libs/table/src/components/Wrapper.d.ts +4 -0
  398. package/dist/libs/table/src/components/Wrapper.js +49 -0
  399. package/dist/libs/table/src/constants.d.ts +108 -0
  400. package/dist/libs/table/src/constants.js +107 -0
  401. package/dist/libs/table/src/context/borders.d.ts +10 -0
  402. package/dist/libs/table/src/context/borders.js +11 -0
  403. package/dist/libs/table/src/context/delete.d.ts +1 -0
  404. package/dist/libs/table/src/context/delete.js +2 -0
  405. package/dist/libs/table/src/context/table.d.ts +21 -0
  406. package/dist/libs/table/src/context/table.js +4 -0
  407. package/package.json +1 -1
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Below are the colors that are used in the app. The colors are defined in the light and dark mode.
3
+ * There are many other ways to style your app. For example, [Nativewind](https://www.nativewind.dev/), [Tamagui](https://tamagui.dev/), [unistyles](https://reactnativeunistyles.vercel.app), etc.
4
+ */
5
+ const tintColorLight = '#0a7ea4';
6
+ const tintColorDark = '#fff';
7
+ const Colors = {
8
+ light: {
9
+ text: 'black',
10
+ textInvert: 'white',
11
+ background: '#fff',
12
+ tint: tintColorLight,
13
+ icon: 'hsl(206, 6.30%, 43.50%)',
14
+ tabIconDefault: '#687076',
15
+ tabIconSelected: tintColorLight,
16
+ focusColor: '#0076df',
17
+ text2: 'hsl(0, 0%, 10%)',
18
+ borderColorError: '#e30000',
19
+ backgroundColor2Error: '#fff2f4',
20
+ backgroundColor: 'white',
21
+ backgroundColor2: 'white',
22
+ description: 'hsl(240, 1.70%, 53.30%)',
23
+ borderColor: 'rgba(150, 150, 150, 1)',
24
+ borderColor9: 'rgba(150, 150, 150, 0.9)',
25
+ borderColor8: 'rgba(150, 150, 150, 0.8)',
26
+ borderColor7: 'rgba(150, 150, 150, 0.7)',
27
+ borderColor6: 'rgba(150, 150, 150, 0.6)',
28
+ borderColor5: 'rgba(150, 150, 150, 0.5)',
29
+ borderColor4: 'rgba(150, 150, 150, 0.4)',
30
+ borderColor3: 'rgba(150, 150, 150, 0.3)',
31
+ borderColor2: 'rgba(150, 150, 150, 0.2)',
32
+ borderColor1: 'rgba(150, 150, 150, 0.1)',
33
+ backgroundColor3: '#f1eff5',
34
+ backgroundColorContactos: 'white',
35
+ backgroundColorModal: 'hsl(252, 22%, 95%)',
36
+ backgroundColorModal2: 'white',
37
+ FiltroColorSeleccionado: 'hsl(240, 1.70%, 23.10%)',
38
+ FiltroIconoSeleccionado: 'white',
39
+ FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 91.40%)',
40
+ FiltroIconoNoSeleccionado: '#7d7d7f',
41
+ FiltroColorMensaje: 'hsl(252, 22%, 95%)',
42
+ SearchBar: '#f4f4f4',
43
+ SearchBarText: '#86868a',
44
+ text2Libretas: 'hsl(240, 1%, 55%)',
45
+ contLibretas: 'white',
46
+ contTable: 'white',
47
+ contTableModal: 'white',
48
+ contTableModal2: 'hsl(252, 22%, 95%)',
49
+ contTableLight: 'hsl(252, 22%, 95%)',
50
+ contLibretasPressed: 'hsl(252, 5%, 81%)',
51
+ skeletonGradientStart: 'hsl(0, 0.00%, 100%)',
52
+ skeletonGradientEnd: 'hsl(0, 0.00%, 91.40%)',
53
+ skeletonGradientStart2: 'hsl(0, 0.00%, 80%)',
54
+ skeletonGradientEnd2: 'hsl(0, 0.00%, 70%)',
55
+ pildoraVacia: 'hsl(252, 22%, 95%)',
56
+ contTableLightBlue: 'hsl(190, 79%, 94%)',
57
+ pressableLightBlue: 'hsl(189, 82%, 89%)',
58
+ contTableOrange: 'hsl(37, 76.50%, 90%)',
59
+ pressableOrange: 'hsl(36, 80%, 85%)'
60
+ },
61
+ dark: {
62
+ text: 'white',
63
+ textInvert: 'black',
64
+ background: '#151718',
65
+ tint: tintColorDark,
66
+ icon: '#9BA1A6',
67
+ tabIconDefault: '#9BA1A6',
68
+ tabIconSelected: tintColorDark,
69
+ focusColor: '#0076df',
70
+ text2: 'hsl(0, 0%, 90%)',
71
+ borderColorError: '#ff3037',
72
+ backgroundColor2Error: '#300',
73
+ backgroundColor: 'hsl(240, 3.40%, 11.40%)',
74
+ backgroundColor2: 'hsl(240, 2.60%, 14.90%)',
75
+ description: 'hsl(228, 2.70%, 63.30%)',
76
+ borderColor: 'rgba(150, 150, 150, 1)',
77
+ borderColor9: 'rgba(150, 150, 150, 0.9)',
78
+ borderColor8: 'rgba(150, 150, 150, 0.8)',
79
+ borderColor7: 'rgba(150, 150, 150, 0.7)',
80
+ borderColor6: 'rgba(150, 150, 150, 0.6)',
81
+ borderColor5: 'rgba(150, 150, 150, 0.5)',
82
+ borderColor4: 'rgba(150, 150, 150, 0.4)',
83
+ borderColor3: 'rgba(150, 150, 150, 0.3)',
84
+ borderColor2: 'rgba(150, 150, 150, 0.2)',
85
+ borderColor1: 'rgba(150, 150, 150, 0.1)',
86
+ backgroundColor3: '#000000',
87
+ backgroundColorContactos: 'hsl(0, 0%, 0%)',
88
+ backgroundColorModal: 'hsl(240, 3%, 11%)',
89
+ backgroundColorModal2: 'hsl(240, 3%, 11%)',
90
+ FiltroColorSeleccionado: 'white',
91
+ FiltroIconoSeleccionado: 'hsl(240, 3.40%, 11.40%)',
92
+ FiltroColorNoSeleccionado: 'hsl(0, 0.00%, 14.90%)',
93
+ FiltroIconoNoSeleccionado: 'hsl(228, 2.70%, 63.30%)',
94
+ FiltroColorMensaje: 'hsl(0, 0.00%, 14.90%)',
95
+ SearchBar: '#f4f4f4',
96
+ SearchBarText: '#86868a',
97
+ text2Libretas: 'hsl(252, 3%, 62%)',
98
+ contLibretas: 'hsl(240, 3%, 11%)',
99
+ contTable: 'hsl(240, 3%, 11%)',
100
+ contTableModal: 'hsl(240, 2%, 18%)',
101
+ contTableModal2: 'hsl(240, 2%, 18%)',
102
+ contTableLight: 'hsl(240, 2%, 18%)',
103
+ contLibretasPressed: 'hsl(240, 2%, 22%)',
104
+ skeletonGradientStart: 'hsl(0, 0.00%, 14.90%)',
105
+ skeletonGradientEnd: 'hsl(0, 0.00%, 24.90%)',
106
+ skeletonGradientStart2: 'hsl(0, 0.00%, 14.90%)',
107
+ skeletonGradientEnd2: 'hsl(0, 0.00%, 24.90%)',
108
+ pildoraVacia: 'hsl(240, 3%, 11%)',
109
+ contTableLightBlue: 'hsl(195, 62%, 13%)',
110
+ pressableLightBlue: 'hsl(193, 63%, 18%)',
111
+ contTableOrange: 'hsl(38, 63.60%, 17.30%)',
112
+ pressableOrange: 'hsl(36, 64.60%, 22.30%)'
113
+ },
114
+ perfil: {
115
+ default: { dark: '#7580ba', light: '#b1c6e4' },
116
+ rojo: { dark: '#b12309', light: '#ff856a' },
117
+ amarillo: { dark: '#c97c00', light: '#ffe535' },
118
+ azul_oscuro: { dark: '#0f236d', light: '#6a7ec9' },
119
+ naranja: { dark: '#9c4d00', light: '#ffba53' },
120
+ marron_claro: { dark: '#75582e', light: '#e4c79d' },
121
+ verde_agua: { dark: '#105951', light: '#80c3ba' },
122
+ marron_oscuro: { dark: '#4f2a00', light: '#aa855a' },
123
+ rosa: { dark: '#892466', light: '#f08bcc' },
124
+ azul_claro: { dark: '#334696', light: '#9eb1ff' },
125
+ violeta: { dark: '#482d76', light: '#ac90d9' },
126
+ celeste_oscuro: { dark: '#005095', light: '#6dbfff' },
127
+ gris: { dark: '#445255', light: '#b0bec1' },
128
+ celeste_claro: { dark: '#237286', light: '#98e7fb' },
129
+ verde_oscuro: { dark: '#215b1d', light: '#8ac487' },
130
+ verde_claro: { dark: '#4b5f13', light: '#bbce82' }
131
+ },
132
+ filtros: {
133
+ azul: 'hsl(208, 75.80%, 57.80%)',
134
+ verde: 'hsl(140, 39.70%, 46.90%)',
135
+ violeta: 'hsl(243, 31.80%, 58.60%)',
136
+ rosa: 'hsl(337, 61.50%, 57.30%)',
137
+ naranja: ' hsl(28, 72.40%, 56.10%)',
138
+ amarillo: 'hsl(48, 64.30%, 45.70%)',
139
+ celeste: 'hsl(190, 65.20%, 53.40%)',
140
+ rojo: 'hsl(3, 97.70%, 65.30%)',
141
+ light: {
142
+ azul_bg: 'hsl(208, 75.80%, 95%)',
143
+ verde_bg: 'hsl(140, 33%, 89%)',
144
+ violeta_bg: 'hsl(244, 33%, 92%)',
145
+ rosa_bg: 'hsl(340, 71%, 92%)',
146
+ naranja_bg: 'hsl(28, 72.40%, 95%)',
147
+ amarillo_bg: 'hsl(48, 64.30%, 95%)',
148
+ celeste_bg: 'hsl(190, 65.20%, 95%)',
149
+ },
150
+ dark: {
151
+ azul_bg: 'hsl(208, 75.80%, 10%)',
152
+ verde_bg: 'hsl(144, 45%, 9%)',
153
+ violeta_bg: 'hsl(240, 21%, 11%)',
154
+ rosa_bg: 'hsl(339, 45%, 11%)',
155
+ naranja_bg: 'hsl(28, 72.40%, 10%)',
156
+ amarillo_bg: 'hsl(48, 64.30%, 10%)',
157
+ celeste_bg: 'hsl(190, 65.20%, 10%)',
158
+ }
159
+ },
160
+ especiales: {
161
+ azul: 'hsl(207, 100%, 50%)',
162
+ rojo: 'hsl(358, 100%, 62%)',
163
+ rosa_claro: 'hsl(329, 86.5%, 74.4%)',
164
+ verde: 'hsl(135, 58.70%, 49.40%)',
165
+ verde_claro: 'hsl(132, 65%, 64%)',
166
+ celeste: 'hsl(179, 100%, 76%)',
167
+ azul_pressed: 'hsl(197, 100%, 50%)',
168
+ }
169
+ };
170
+ export default Colors;
@@ -0,0 +1,13 @@
1
+ import { NativeStackNavigationOptions } from "expo-router/build/react-navigation/native-stack/types";
2
+ export declare const deviceTier: "low" | "medium" | "high";
3
+ export declare const isLowTier: boolean;
4
+ type ExpoEnv = {
5
+ SUPABASE_USERNAME_LOGIN: string;
6
+ SUPABASE_PASSWORD_LOGIN: string;
7
+ SUPABASE_URL: string;
8
+ SUPABASE_KEY: string;
9
+ SUPABASE_SERVICE_ROLE_KEY: string;
10
+ };
11
+ export declare const expoEnv: Partial<ExpoEnv>;
12
+ export declare const screenOptions: NativeStackNavigationOptions;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import { Platform } from 'react-native';
2
+ import Utils from './utils';
3
+ import Constants from 'expo-constants';
4
+ export const deviceTier = Utils._getDeviceTier();
5
+ export const isLowTier = Platform.OS === 'android' && deviceTier === 'low';
6
+ const getExpoEnv = () => {
7
+ const expoEnv = Constants.expoConfig?.extra || {};
8
+ return {
9
+ SUPABASE_USERNAME_LOGIN: expoEnv.SUPABASE_USERNAME_LOGIN || process.env.SUPABASE_USERNAME_LOGIN,
10
+ SUPABASE_PASSWORD_LOGIN: expoEnv.SUPABASE_PASSWORD_LOGIN || process.env.SUPABASE_PASSWORD_LOGIN,
11
+ SUPABASE_URL: expoEnv.SUPABASE_URL || process.env.SUPABASE_URL,
12
+ SUPABASE_KEY: expoEnv.SUPABASE_KEY || process.env.SUPABASE_KEY,
13
+ SUPABASE_SERVICE_ROLE_KEY: expoEnv.SUPABASE_SERVICE_ROLE_KEY || process.env.SUPABASE_SERVICE_ROLE_KEY,
14
+ };
15
+ };
16
+ export const expoEnv = getExpoEnv();
17
+ export const screenOptions = {
18
+ headerTitleAlign: "center",
19
+ headerBackButtonMenuEnabled: true,
20
+ headerBackButtonDisplayMode: 'minimal',
21
+ headerTransparent: Platform.OS === 'ios',
22
+ headerLargeTitle: true,
23
+ };
@@ -0,0 +1,11 @@
1
+ declare function numberToTextCurrency(value: number): string;
2
+ declare const Formats: {
3
+ numberToText: (value: number) => string;
4
+ TextToNumber: (value: string) => number;
5
+ numberToTextCurrency: typeof numberToTextCurrency;
6
+ capitalizeText: (string: string) => string;
7
+ phoneToText: (phone: number | string) => string;
8
+ dateToText: (value: string) => string;
9
+ dateToTextFormat: (date: Date, format?: string) => string;
10
+ };
11
+ export default Formats;
@@ -0,0 +1,84 @@
1
+ import { format as DateFormatter } from 'date-fns';
2
+ const formatter = new Intl.NumberFormat('es-AR');
3
+ const numberToText = (value) => {
4
+ const abs = formatter.format(Math.abs(value));
5
+ return value < 0 ? `(${abs})` : abs;
6
+ };
7
+ const TextToNumber = (value) => {
8
+ const trimmed = value.trim();
9
+ const isNegative = /^\(.*\)$/.test(trimmed);
10
+ const normalized = trimmed
11
+ .replace(/[()]/g, '')
12
+ .replace(/\./g, '')
13
+ .replace(',', '.');
14
+ const parsed = Number.parseFloat(normalized);
15
+ if (Number.isNaN(parsed))
16
+ return 0;
17
+ return isNegative ? -parsed : parsed;
18
+ };
19
+ function numberToTextCurrency(value) {
20
+ return new Intl.NumberFormat('es-AR', {
21
+ style: 'currency',
22
+ currency: 'ARS',
23
+ minimumFractionDigits: 0, // <- no obliga decimales
24
+ maximumFractionDigits: 2 // <- si vienen, los respeta
25
+ }).format(Number(value));
26
+ }
27
+ const dateToText = (value) => {
28
+ const [year, month, day] = value.split('-').map(Number);
29
+ const date = new Date(year, month - 1, day);
30
+ const monthText = new Intl.DateTimeFormat('es-AR', {
31
+ month: 'long',
32
+ }).format(date);
33
+ const dayText = new Intl.DateTimeFormat('es-AR', {
34
+ day: '2-digit',
35
+ }).format(date);
36
+ const yearText = new Intl.DateTimeFormat('es-AR', {
37
+ year: 'numeric',
38
+ }).format(date);
39
+ return `${monthText} ${dayText}, ${yearText}`;
40
+ };
41
+ const capitalizeText = (string) => {
42
+ return string.charAt(0).toUpperCase() + string.slice(1);
43
+ };
44
+ const phoneToText = (phone) => {
45
+ const digits = phone.toString().replace(/\D/g, '');
46
+ if (!digits)
47
+ return '';
48
+ const formattedPart = digits.slice(0, 13);
49
+ const extra = digits.slice(13);
50
+ let base = formattedPart;
51
+ if (formattedPart.length > 4) {
52
+ const right = formattedPart.slice(-4);
53
+ const left = formattedPart.slice(0, -4);
54
+ if (formattedPart.length <= 8) {
55
+ base = `${left}-${right}`;
56
+ }
57
+ else {
58
+ const prefix = formattedPart.slice(0, -8);
59
+ const middle = formattedPart.slice(-8, -4);
60
+ const p3 = prefix.slice(-2);
61
+ const p2 = prefix.slice(-3, -2);
62
+ const p1 = prefix.slice(0, -3);
63
+ base = [p1, p2, p3, `${middle}-${right}`]
64
+ .filter(Boolean)
65
+ .join(' ');
66
+ }
67
+ }
68
+ return extra ? `${base}${extra}` : base;
69
+ };
70
+ const dateToTextFormat = (date, format = 'YYYY-MM-DD') => {
71
+ const _format = format.replaceAll('Y', 'y').replaceAll('m', 'M').replaceAll('D', 'd');
72
+ return DateFormatter(date, _format);
73
+ };
74
+ // ------------------- Export -------------------
75
+ const Formats = {
76
+ numberToText,
77
+ TextToNumber,
78
+ numberToTextCurrency,
79
+ capitalizeText,
80
+ phoneToText,
81
+ dateToText,
82
+ dateToTextFormat,
83
+ };
84
+ export default Formats;
@@ -0,0 +1,8 @@
1
+ declare const Hooks: {
2
+ useEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
3
+ useLayoutEffectWithoutFirstRender: (effect: () => void, deps: any[]) => void;
4
+ useAsyncEffect: (effect: (isMounted: () => boolean) => Promise<void>, deps: any[]) => void;
5
+ useAsyncFocusEffect: (effect: (isMounted: () => boolean) => Promise<void>) => void;
6
+ useAsyncFocusEffectWithoutFirstRender: (effect: (isMounted: () => boolean) => Promise<void>) => void;
7
+ };
8
+ export default Hooks;
@@ -0,0 +1,59 @@
1
+ import { useCallback, useEffect, useLayoutEffect, useRef } from 'react';
2
+ import { useFocusEffect } from 'expo-router';
3
+ const useEffectWithoutFirstRender = (effect, deps) => {
4
+ const isFirstRender = useRef(true);
5
+ useEffect(() => {
6
+ if (isFirstRender.current) {
7
+ isFirstRender.current = false;
8
+ return;
9
+ }
10
+ return effect();
11
+ }, deps);
12
+ };
13
+ const useLayoutEffectWithoutFirstRender = (effect, deps) => {
14
+ const isFirstRender = useRef(true);
15
+ useLayoutEffect(() => {
16
+ if (isFirstRender.current) {
17
+ isFirstRender.current = false;
18
+ return;
19
+ }
20
+ return effect();
21
+ }, deps);
22
+ };
23
+ const useAsyncEffect = (effect, deps) => {
24
+ useEffect(() => {
25
+ let mounted = true;
26
+ const isMounted = () => mounted;
27
+ effect(isMounted);
28
+ return () => { mounted = false; };
29
+ }, deps);
30
+ };
31
+ const useAsyncFocusEffect = (effect) => {
32
+ useFocusEffect(useCallback(() => {
33
+ let mounted = true;
34
+ const isMounted = () => mounted;
35
+ void effect(isMounted);
36
+ return () => { mounted = false; };
37
+ }, [effect]));
38
+ };
39
+ const useAsyncFocusEffectWithoutFirstRender = (effect) => {
40
+ const isFirstFocus = useRef(true);
41
+ useFocusEffect(useCallback(() => {
42
+ let mounted = true;
43
+ const isMounted = () => mounted;
44
+ if (isFirstFocus.current)
45
+ isFirstFocus.current = false;
46
+ else
47
+ void effect(isMounted);
48
+ return () => { mounted = false; };
49
+ }, [effect]));
50
+ };
51
+ // ------------------- Export -------------------
52
+ const Hooks = {
53
+ useEffectWithoutFirstRender,
54
+ useLayoutEffectWithoutFirstRender,
55
+ useAsyncEffect,
56
+ useAsyncFocusEffect,
57
+ useAsyncFocusEffectWithoutFirstRender,
58
+ };
59
+ export default Hooks;
@@ -0,0 +1,12 @@
1
+ import { StyleProp } from 'react-native';
2
+ import React from 'react';
3
+ declare const Utils: {
4
+ addProps: (element: React.ReactElement | null, additionalStyles?: StyleProp<any>, extraProps?: Record<string, any>) => React.ReactElement | null;
5
+ isValidMail: (mail: string) => boolean;
6
+ applyOpacity: (color: string, opacity: number) => string;
7
+ adjustLightness: (color: string, percentage: number) => string;
8
+ _getDeviceTier: () => "low" | "medium" | "high";
9
+ createCtx: <T>() => readonly [React.Provider<T | null>, () => T];
10
+ createUseContext: <T>(context: React.Context<T | null>) => T;
11
+ };
12
+ export default Utils;
@@ -0,0 +1,75 @@
1
+ import { Platform } from 'react-native';
2
+ import React, { createContext as reactCreateContext, useContext } from 'react';
3
+ import * as Device from 'expo-device';
4
+ import { hsla, parseToHsla, parseToRgba } from 'color2k';
5
+ const addProps = (element, additionalStyles = [], extraProps = {}) => {
6
+ if (!React.isValidElement(element))
7
+ return null;
8
+ return React.cloneElement(element, {
9
+ style: [
10
+ element.props.style,
11
+ ...additionalStyles
12
+ ],
13
+ ...extraProps
14
+ });
15
+ };
16
+ const isValidMail = (mail) => {
17
+ return mail.includes('@') && mail.endsWith('.com');
18
+ };
19
+ const applyOpacity = (color, opacity) => {
20
+ try {
21
+ const [r, g, b] = parseToRgba(color); // ignoro alpha original
22
+ return `rgba(${r}, ${g}, ${b}, ${opacity})`;
23
+ }
24
+ catch (e) {
25
+ console.error('Color inválido:', color);
26
+ return color;
27
+ }
28
+ };
29
+ const adjustLightness = (color, percentage) => {
30
+ try {
31
+ const [h, s, l, a] = parseToHsla(color);
32
+ // Ajustar luminosidad: percentage puede ser positivo (aclarar) o negativo (oscurecer)
33
+ // l está en rango 0-1, percentage es de -100 a +100
34
+ const newL = Math.max(0, Math.min(1, l + (percentage / 100)));
35
+ return hsla(h, s, newL, a);
36
+ }
37
+ catch (e) {
38
+ console.error('Color inválido:', color);
39
+ return color;
40
+ }
41
+ };
42
+ const _getDeviceTier = () => {
43
+ if (Platform.OS !== 'android')
44
+ return 'high';
45
+ const ramGB = Device.totalMemory
46
+ ? Device.totalMemory / 1024 / 1024 / 1024
47
+ : 0;
48
+ if (ramGB > 0 && ramGB <= 4)
49
+ return 'low';
50
+ if (ramGB <= 6)
51
+ return 'medium';
52
+ return 'high';
53
+ };
54
+ const createCtx = () => {
55
+ const context = reactCreateContext(null);
56
+ const useCtx = () => createUseContext(context);
57
+ return [context.Provider, useCtx];
58
+ };
59
+ const createUseContext = (context) => {
60
+ const ctx = useContext(context);
61
+ if (!ctx)
62
+ throw new Error('useContext debe usarse dentro de un context.Provider');
63
+ return ctx;
64
+ };
65
+ // ------------------- Export -------------------
66
+ const Utils = {
67
+ addProps,
68
+ isValidMail,
69
+ applyOpacity,
70
+ adjustLightness,
71
+ _getDeviceTier,
72
+ createCtx,
73
+ createUseContext,
74
+ };
75
+ export default Utils;
@@ -0,0 +1,9 @@
1
+ import Wrapper from './src/components/Wrapper';
2
+ import Item from './src/components/Item';
3
+ import ItemDate from './src/components/ItemDate';
4
+ type Component = typeof Wrapper & {
5
+ Item: typeof Item;
6
+ ItemDate: typeof ItemDate;
7
+ };
8
+ declare const Screen: Component;
9
+ export default Screen;
@@ -0,0 +1,7 @@
1
+ import Wrapper from './src/components/Wrapper';
2
+ import Item from './src/components/Item';
3
+ import ItemDate from './src/components/ItemDate';
4
+ const Screen = Wrapper;
5
+ Screen.Item = Item;
6
+ Screen.ItemDate = ItemDate;
7
+ export default Screen;
@@ -0,0 +1,3 @@
1
+ import type Props from './types';
2
+ declare const _default: ({ ...props }: Props) => null;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type Props from './types';
3
+ declare const _default: React.MemoExoticComponent<({ label, minLengthSpacer, ...textFieldProps }: Props) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { HStack, Spacer, Text } from '@expo/ui/swift-ui';
2
+ import React, { memo } from 'react';
3
+ import TextField from '../TextField';
4
+ export default memo(({ label, minLengthSpacer, ...textFieldProps }) => {
5
+ if (!label)
6
+ return <TextField {...textFieldProps}/>;
7
+ return (<HStack>
8
+ <Text>{label}</Text>
9
+ <Spacer minLength={minLengthSpacer}/>
10
+ <TextField {...textFieldProps}/>
11
+ </HStack>);
12
+ });
@@ -0,0 +1 @@
1
+ export default ({ ...props }) => null;
@@ -0,0 +1,14 @@
1
+ import type TextFieldProps from '../TextField/types';
2
+ type Props = TextFieldProps & {
3
+ /**
4
+ Text to display on the left of the text field.
5
+ If not provided, the item will be only a text field.
6
+ */
7
+ label?: string;
8
+ /**
9
+ Minimum length of the spacer between the title and the text field.
10
+ If the title is not provided, will not be displayed.
11
+ */
12
+ minLengthSpacer?: number;
13
+ };
14
+ export default Props;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type Props from './types';
2
+ declare const _default: ({ ...props }: Props) => null;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type Props from './types';
3
+ declare const _default: React.MemoExoticComponent<({ itemKey, label, defaultValue, minDate, maxDate, }: Props) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { Section, DatePicker } from '@expo/ui/swift-ui';
2
+ import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
3
+ import { environment } from '@expo/ui/swift-ui/modifiers';
4
+ import { usePage } from '../../context/page';
5
+ export default memo(({ itemKey, label, defaultValue, minDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100)), maxDate = new Date(), }) => {
6
+ const { store, registerItem } = usePage();
7
+ const [selection, setSelection] = useState(defaultValue);
8
+ // Key
9
+ const keyRef = useRef(itemKey);
10
+ useEffect(() => {
11
+ keyRef.current = registerItem(itemKey);
12
+ }, []);
13
+ // Hooks
14
+ useEffect(() => setSelection(defaultValue), [defaultValue]);
15
+ const onValueChange = useCallback((value) => {
16
+ setSelection(value);
17
+ store.values[keyRef.current ?? 0].set({
18
+ value: value,
19
+ hasChanged: value.getTime() !== defaultValue?.getTime(),
20
+ isValid: true,
21
+ });
22
+ }, []);
23
+ return (<Section>
24
+ <DatePicker title={label} selection={selection} onDateChange={onValueChange} modifiers={[environment('locale', 'es_ES')]} range={{
25
+ start: minDate,
26
+ end: maxDate,
27
+ }}/>
28
+ </Section>);
29
+ });
@@ -0,0 +1 @@
1
+ export default ({ ...props }) => null;
@@ -0,0 +1,25 @@
1
+ type Props = {
2
+ /**
3
+ identification key of the item.
4
+ */
5
+ itemKey?: string;
6
+ /**
7
+ Title of the date picker.
8
+ */
9
+ label?: string;
10
+ /**
11
+ Default value of the date picker.
12
+ */
13
+ defaultValue?: Date;
14
+ /**
15
+ Minimum date allowed.
16
+ @default 100 years ago
17
+ */
18
+ minDate?: Date;
19
+ /**
20
+ Maximum date allowed.
21
+ @default today
22
+ */
23
+ maxDate?: Date;
24
+ };
25
+ export default Props;
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => null;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ children }: {
2
+ children: React.ReactNode;
3
+ }) => import("react").JSX.Element;
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { Host, List, Section } from '@expo/ui/swift-ui';
2
+ export default ({ children }) => (<Host style={{ flex: 1 }}>
3
+ <List>
4
+ <Section>
5
+ {children}
6
+ </Section>
7
+ </List>
8
+ </Host>);
@@ -0,0 +1 @@
1
+ export default ({ children }) => null;
@@ -0,0 +1,27 @@
1
+ type Props<T> = {
2
+ /**
3
+ The data items to be rendered inside the list.
4
+ @default []
5
+ */
6
+ data?: T[];
7
+ /**
8
+ The function to render the item.
9
+ */
10
+ renderItem?: (item: T) => React.ReactNode;
11
+ /**
12
+ Function to be called when the user saves the changes.
13
+ If the function returns false, the user will not be redirected to the previous screen.
14
+ */
15
+ onSave?: (values: (string | null | Date)[]) => boolean | Promise<boolean>;
16
+ };
17
+ export type Value = {
18
+ value: string | null | Date | undefined;
19
+ hasChanged: boolean;
20
+ isValid: boolean;
21
+ };
22
+ export type Values = Record<number, Value>;
23
+ export type Store = {
24
+ values: Values;
25
+ saveEnabled: boolean;
26
+ };
27
+ export default Props;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type Props from './types';
2
+ declare const _default: ({ ...props }: Props) => null;
3
+ export default _default;