native-pytech 1.0.125 → 1.0.129

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/package.json +1 -1
  2. package/dist/app/assets/components/removeCircle.d.ts +0 -2
  3. package/dist/app/assets/components/removeCircle.js +0 -2
  4. package/dist/app/assets/components/reorderThreeOutline.d.ts +0 -2
  5. package/dist/app/assets/components/reorderThreeOutline.js +0 -2
  6. package/dist/app/assets/ionicons.d.ts +0 -2
  7. package/dist/app/assets/ionicons.js +0 -2
  8. package/dist/app/colorPage.d.ts +0 -1
  9. package/dist/app/colorPage.js +0 -1
  10. package/dist/app/components/closeButton.d.ts +0 -2
  11. package/dist/app/components/closeButton.js +0 -2
  12. package/dist/app/components/gradient.d.ts +0 -2
  13. package/dist/app/components/gradient.js +0 -2
  14. package/dist/app/components/link.d.ts +0 -2
  15. package/dist/app/components/link.js +0 -2
  16. package/dist/app/components/text.d.ts +0 -2
  17. package/dist/app/components/text.js +0 -2
  18. package/dist/app/components/theme.d.ts +0 -2
  19. package/dist/app/components/theme.js +0 -2
  20. package/dist/app/constants/colors.d.ts +0 -2
  21. package/dist/app/constants/colors.js +0 -2
  22. package/dist/app/constants/consts.d.ts +0 -1
  23. package/dist/app/constants/consts.js +0 -1
  24. package/dist/app/constants/formats.d.ts +0 -1
  25. package/dist/app/constants/formats.js +0 -1
  26. package/dist/app/constants/hooks.d.ts +0 -1
  27. package/dist/app/constants/hooks.js +0 -1
  28. package/dist/app/constants/utils.d.ts +0 -1
  29. package/dist/app/constants/utils.js +0 -1
  30. package/dist/app/editPage.d.ts +0 -1
  31. package/dist/app/editPage.js +0 -1
  32. package/dist/app/footer.d.ts +0 -2
  33. package/dist/app/footer.js +0 -2
  34. package/dist/app/login.d.ts +0 -2
  35. package/dist/app/login.js +0 -2
  36. package/dist/app/page.d.ts +0 -2
  37. package/dist/app/page.js +0 -2
  38. package/dist/app/pickerPage.d.ts +0 -1
  39. package/dist/app/pickerPage.js +0 -1
  40. package/dist/app/providers/app.d.ts +0 -2
  41. package/dist/app/providers/app.js +0 -2
  42. package/dist/app/segmentedControl.d.ts +0 -2
  43. package/dist/app/segmentedControl.js +0 -2
  44. package/dist/app/sql.d.ts +0 -2
  45. package/dist/app/sql.js +0 -2
  46. package/dist/app/supabase.d.ts +0 -2
  47. package/dist/app/supabase.js +0 -2
  48. package/dist/app/swiftui.d.ts +0 -1
  49. package/dist/app/swiftui.js +0 -1
  50. package/dist/app/table.d.ts +0 -2
  51. package/dist/app/table.js +0 -2
  52. package/dist/index.d.ts +0 -8
  53. package/dist/index.js +0 -8
  54. package/dist/libs/assets/components/RemoveCircle.d.ts +0 -6
  55. package/dist/libs/assets/components/RemoveCircle.js +0 -25
  56. package/dist/libs/assets/components/ReorderThreeOutline.d.ts +0 -5
  57. package/dist/libs/assets/components/ReorderThreeOutline.js +0 -15
  58. package/dist/libs/assets/ionicons/Ionicons.d.ts +0 -35
  59. package/dist/libs/assets/ionicons/Ionicons.js +0 -16
  60. package/dist/libs/assets/ionicons/index.d.ts +0 -6
  61. package/dist/libs/assets/ionicons/index.js +0 -23
  62. package/dist/libs/colorPage/index.d.ts +0 -1
  63. package/dist/libs/colorPage/index.js +0 -1
  64. package/dist/libs/colorPage/src/Content/index.android.d.ts +0 -4
  65. package/dist/libs/colorPage/src/Content/index.android.js +0 -13
  66. package/dist/libs/colorPage/src/Content/index.d.ts +0 -3
  67. package/dist/libs/colorPage/src/Content/index.ios.d.ts +0 -4
  68. package/dist/libs/colorPage/src/Content/index.ios.js +0 -16
  69. package/dist/libs/colorPage/src/Content/index.js +0 -1
  70. package/dist/libs/colorPage/src/Content/types.d.ts +0 -10
  71. package/dist/libs/colorPage/src/Content/types.js +0 -1
  72. package/dist/libs/colorPage/src/Item/index.android.d.ts +0 -4
  73. package/dist/libs/colorPage/src/Item/index.android.js +0 -40
  74. package/dist/libs/colorPage/src/Item/index.d.ts +0 -3
  75. package/dist/libs/colorPage/src/Item/index.ios.d.ts +0 -4
  76. package/dist/libs/colorPage/src/Item/index.ios.js +0 -31
  77. package/dist/libs/colorPage/src/Item/index.js +0 -1
  78. package/dist/libs/colorPage/src/Item/types.d.ts +0 -13
  79. package/dist/libs/colorPage/src/Item/types.js +0 -1
  80. package/dist/libs/colorPage/src/Page/index.d.ts +0 -4
  81. package/dist/libs/colorPage/src/Page/index.js +0 -17
  82. package/dist/libs/colorPage/src/Page/types.d.ts +0 -27
  83. package/dist/libs/colorPage/src/Page/types.js +0 -1
  84. package/dist/libs/components/CloseButton.d.ts +0 -9
  85. package/dist/libs/components/CloseButton.js +0 -18
  86. package/dist/libs/components/Gradient/components/Gradient/index.d.ts +0 -4
  87. package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +0 -4
  88. package/dist/libs/components/Gradient/components/Gradient/index.ios.js +0 -35
  89. package/dist/libs/components/Gradient/components/Gradient/index.js +0 -33
  90. package/dist/libs/components/Gradient/components/Gradient/types.d.ts +0 -30
  91. package/dist/libs/components/Gradient/components/Gradient/types.js +0 -1
  92. package/dist/libs/components/Gradient/components/Icon/index.d.ts +0 -3
  93. package/dist/libs/components/Gradient/components/Icon/index.js +0 -1
  94. package/dist/libs/components/Gradient/components/Icon/types.d.ts +0 -16
  95. package/dist/libs/components/Gradient/components/Icon/types.js +0 -1
  96. package/dist/libs/components/Gradient/constants.d.ts +0 -97
  97. package/dist/libs/components/Gradient/constants.js +0 -98
  98. package/dist/libs/components/Gradient/index.d.ts +0 -3
  99. package/dist/libs/components/Gradient/index.js +0 -2
  100. package/dist/libs/components/Link.d.ts +0 -13
  101. package/dist/libs/components/Link.js +0 -20
  102. package/dist/libs/components/Text.d.ts +0 -6
  103. package/dist/libs/components/Text.js +0 -11
  104. package/dist/libs/components/Theme.d.ts +0 -9
  105. package/dist/libs/components/Theme.js +0 -10
  106. package/dist/libs/constants/colors.d.ts +0 -218
  107. package/dist/libs/constants/colors.js +0 -170
  108. package/dist/libs/constants/consts.d.ts +0 -13
  109. package/dist/libs/constants/consts.js +0 -23
  110. package/dist/libs/constants/formats.d.ts +0 -11
  111. package/dist/libs/constants/formats.js +0 -84
  112. package/dist/libs/constants/hooks.d.ts +0 -8
  113. package/dist/libs/constants/hooks.js +0 -59
  114. package/dist/libs/constants/utils.d.ts +0 -12
  115. package/dist/libs/constants/utils.js +0 -75
  116. package/dist/libs/editPage/index.d.ts +0 -9
  117. package/dist/libs/editPage/index.js +0 -7
  118. package/dist/libs/editPage/src/components/Item/index.d.ts +0 -3
  119. package/dist/libs/editPage/src/components/Item/index.ios.d.ts +0 -4
  120. package/dist/libs/editPage/src/components/Item/index.ios.js +0 -12
  121. package/dist/libs/editPage/src/components/Item/index.js +0 -1
  122. package/dist/libs/editPage/src/components/Item/types.d.ts +0 -14
  123. package/dist/libs/editPage/src/components/Item/types.js +0 -1
  124. package/dist/libs/editPage/src/components/ItemDate/index.d.ts +0 -3
  125. package/dist/libs/editPage/src/components/ItemDate/index.ios.d.ts +0 -4
  126. package/dist/libs/editPage/src/components/ItemDate/index.ios.js +0 -29
  127. package/dist/libs/editPage/src/components/ItemDate/index.js +0 -1
  128. package/dist/libs/editPage/src/components/ItemDate/types.d.ts +0 -25
  129. package/dist/libs/editPage/src/components/ItemDate/types.js +0 -1
  130. package/dist/libs/editPage/src/components/Screen/index.d.ts +0 -4
  131. package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +0 -4
  132. package/dist/libs/editPage/src/components/Screen/index.ios.js +0 -8
  133. package/dist/libs/editPage/src/components/Screen/index.js +0 -1
  134. package/dist/libs/editPage/src/components/Screen/types.d.ts +0 -27
  135. package/dist/libs/editPage/src/components/Screen/types.js +0 -1
  136. package/dist/libs/editPage/src/components/TextField/index.d.ts +0 -3
  137. package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +0 -4
  138. package/dist/libs/editPage/src/components/TextField/index.ios.js +0 -35
  139. package/dist/libs/editPage/src/components/TextField/index.js +0 -1
  140. package/dist/libs/editPage/src/components/TextField/types.d.ts +0 -32
  141. package/dist/libs/editPage/src/components/TextField/types.js +0 -1
  142. package/dist/libs/editPage/src/components/Wrapper/index.d.ts +0 -4
  143. package/dist/libs/editPage/src/components/Wrapper/index.js +0 -84
  144. package/dist/libs/editPage/src/components/Wrapper/types.d.ts +0 -23
  145. package/dist/libs/editPage/src/components/Wrapper/types.js +0 -1
  146. package/dist/libs/editPage/src/context/page.d.ts +0 -13
  147. package/dist/libs/editPage/src/context/page.js +0 -2
  148. package/dist/libs/footer/index.d.ts +0 -1
  149. package/dist/libs/footer/index.js +0 -1
  150. package/dist/libs/footer/src/components/Background/index.d.ts +0 -4
  151. package/dist/libs/footer/src/components/Background/index.ios.d.ts +0 -4
  152. package/dist/libs/footer/src/components/Background/index.ios.js +0 -22
  153. package/dist/libs/footer/src/components/Background/index.js +0 -21
  154. package/dist/libs/footer/src/components/Button/Text.d.ts +0 -3
  155. package/dist/libs/footer/src/components/Button/Text.js +0 -18
  156. package/dist/libs/footer/src/components/Button/index.d.ts +0 -3
  157. package/dist/libs/footer/src/components/Button/index.ios.d.ts +0 -4
  158. package/dist/libs/footer/src/components/Button/index.ios.js +0 -30
  159. package/dist/libs/footer/src/components/Button/index.js +0 -55
  160. package/dist/libs/footer/src/components/Button/types.d.ts +0 -22
  161. package/dist/libs/footer/src/components/Button/types.js +0 -1
  162. package/dist/libs/footer/src/components/Footer/index.d.ts +0 -6
  163. package/dist/libs/footer/src/components/Footer/index.ios.d.ts +0 -7
  164. package/dist/libs/footer/src/components/Footer/index.ios.js +0 -9
  165. package/dist/libs/footer/src/components/Footer/index.js +0 -38
  166. package/dist/libs/footer/src/components/View.d.ts +0 -5
  167. package/dist/libs/footer/src/components/View.js +0 -11
  168. package/dist/libs/footer/src/constants.d.ts +0 -20
  169. package/dist/libs/footer/src/constants.js +0 -21
  170. package/dist/libs/footer/src/index.d.ts +0 -9
  171. package/dist/libs/footer/src/index.js +0 -7
  172. package/dist/libs/login/index.d.ts +0 -3
  173. package/dist/libs/login/index.js +0 -3
  174. package/dist/libs/login/src/Pages/Home/index.d.ts +0 -3
  175. package/dist/libs/login/src/Pages/Home/index.js +0 -20
  176. package/dist/libs/login/src/Pages/Home/types.d.ts +0 -19
  177. package/dist/libs/login/src/Pages/Home/types.js +0 -1
  178. package/dist/libs/login/src/Pages/Perfil.d.ts +0 -5
  179. package/dist/libs/login/src/Pages/Perfil.js +0 -19
  180. package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +0 -9
  181. package/dist/libs/login/src/Pages/SignIn/Form/Input.js +0 -10
  182. package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +0 -6
  183. package/dist/libs/login/src/Pages/SignIn/Form/index.js +0 -34
  184. package/dist/libs/login/src/Pages/SignIn/index.d.ts +0 -3
  185. package/dist/libs/login/src/Pages/SignIn/index.js +0 -149
  186. package/dist/libs/login/src/Pages/SignIn/types.d.ts +0 -31
  187. package/dist/libs/login/src/Pages/SignIn/types.js +0 -1
  188. package/dist/libs/login/src/Pages/index.d.ts +0 -3
  189. package/dist/libs/login/src/Pages/index.js +0 -3
  190. package/dist/libs/login/src/Pages/utils.d.ts +0 -22
  191. package/dist/libs/login/src/Pages/utils.js +0 -24
  192. package/dist/libs/login/src/Screen/Container.d.ts +0 -4
  193. package/dist/libs/login/src/Screen/Container.ios.d.ts +0 -4
  194. package/dist/libs/login/src/Screen/Container.ios.js +0 -20
  195. package/dist/libs/login/src/Screen/Container.js +0 -25
  196. package/dist/libs/login/src/Screen/components/Gradient.d.ts +0 -6
  197. package/dist/libs/login/src/Screen/components/Gradient.js +0 -23
  198. package/dist/libs/login/src/Screen/components/Input/index.d.ts +0 -4
  199. package/dist/libs/login/src/Screen/components/Input/index.js +0 -128
  200. package/dist/libs/login/src/Screen/components/Input/types.d.ts +0 -46
  201. package/dist/libs/login/src/Screen/components/Input/types.js +0 -1
  202. package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +0 -4
  203. package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +0 -11
  204. package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +0 -4
  205. package/dist/libs/login/src/Screen/components/SvgPytech.js +0 -11
  206. package/dist/libs/login/src/Screen/components/index.d.ts +0 -4
  207. package/dist/libs/login/src/Screen/components/index.js +0 -4
  208. package/dist/libs/login/src/Screen/index.d.ts +0 -4
  209. package/dist/libs/login/src/Screen/index.js +0 -59
  210. package/dist/libs/login/src/Screen/types.d.ts +0 -14
  211. package/dist/libs/login/src/Screen/types.js +0 -1
  212. package/dist/libs/login/src/constants.d.ts +0 -98
  213. package/dist/libs/login/src/constants.js +0 -48
  214. package/dist/libs/page/index.d.ts +0 -1
  215. package/dist/libs/page/index.js +0 -1
  216. package/dist/libs/page/src/components/Page/index.android.d.ts +0 -4
  217. package/dist/libs/page/src/components/Page/index.android.js +0 -11
  218. package/dist/libs/page/src/components/Page/index.d.ts +0 -4
  219. package/dist/libs/page/src/components/Page/index.js +0 -7
  220. package/dist/libs/page/src/components/PageWrapper/index.d.ts +0 -6
  221. package/dist/libs/page/src/components/PageWrapper/index.js +0 -13
  222. package/dist/libs/page/src/components/PageWrapper/types.d.ts +0 -16
  223. package/dist/libs/page/src/components/PageWrapper/types.js +0 -1
  224. package/dist/libs/page/src/components/Subtitle.d.ts +0 -5
  225. package/dist/libs/page/src/components/Subtitle.js +0 -9
  226. package/dist/libs/page/src/components/WithIcon/index.d.ts +0 -3
  227. package/dist/libs/page/src/components/WithIcon/index.js +0 -47
  228. package/dist/libs/page/src/components/WithIcon/types.d.ts +0 -15
  229. package/dist/libs/page/src/components/WithIcon/types.js +0 -1
  230. package/dist/libs/page/src/constants.d.ts +0 -12
  231. package/dist/libs/page/src/constants.js +0 -12
  232. package/dist/libs/pickerPage/index.d.ts +0 -7
  233. package/dist/libs/pickerPage/index.js +0 -5
  234. package/dist/libs/pickerPage/src/Content/index.d.ts +0 -3
  235. package/dist/libs/pickerPage/src/Content/index.ios.d.ts +0 -4
  236. package/dist/libs/pickerPage/src/Content/index.ios.js +0 -19
  237. package/dist/libs/pickerPage/src/Content/index.js +0 -1
  238. package/dist/libs/pickerPage/src/Content/types.d.ts +0 -3
  239. package/dist/libs/pickerPage/src/Content/types.js +0 -1
  240. package/dist/libs/pickerPage/src/Item/index.d.ts +0 -3
  241. package/dist/libs/pickerPage/src/Item/index.ios.d.ts +0 -8
  242. package/dist/libs/pickerPage/src/Item/index.ios.js +0 -8
  243. package/dist/libs/pickerPage/src/Item/index.js +0 -1
  244. package/dist/libs/pickerPage/src/Item/types.d.ts +0 -23
  245. package/dist/libs/pickerPage/src/Item/types.js +0 -1
  246. package/dist/libs/pickerPage/src/Page/index.d.ts +0 -4
  247. package/dist/libs/pickerPage/src/Page/index.js +0 -22
  248. package/dist/libs/pickerPage/src/Page/types.d.ts +0 -30
  249. package/dist/libs/pickerPage/src/Page/types.js +0 -1
  250. package/dist/libs/providers/App/index.d.ts +0 -10
  251. package/dist/libs/providers/App/index.js +0 -58
  252. package/dist/libs/providers/App/types.d.ts +0 -35
  253. package/dist/libs/providers/App/types.js +0 -1
  254. package/dist/libs/providers/constants.d.ts +0 -10
  255. package/dist/libs/providers/constants.js +0 -10
  256. package/dist/libs/segmentedControl/index.d.ts +0 -2
  257. package/dist/libs/segmentedControl/index.js +0 -2
  258. package/dist/libs/segmentedControl/src/colors.d.ts +0 -15
  259. package/dist/libs/segmentedControl/src/colors.js +0 -16
  260. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +0 -4
  261. package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +0 -79
  262. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +0 -28
  263. package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +0 -1
  264. package/dist/libs/segmentedControl/src/components/Container/index.d.ts +0 -4
  265. package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +0 -4
  266. package/dist/libs/segmentedControl/src/components/Container/index.ios.js +0 -15
  267. package/dist/libs/segmentedControl/src/components/Container/index.js +0 -18
  268. package/dist/libs/segmentedControl/src/components/Container/types.d.ts +0 -16
  269. package/dist/libs/segmentedControl/src/components/Container/types.js +0 -1
  270. package/dist/libs/segmentedControl/src/components/Item/index.d.ts +0 -4
  271. package/dist/libs/segmentedControl/src/components/Item/index.js +0 -26
  272. package/dist/libs/segmentedControl/src/components/Item/types.d.ts +0 -20
  273. package/dist/libs/segmentedControl/src/components/Item/types.js +0 -1
  274. package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +0 -4
  275. package/dist/libs/segmentedControl/src/components/Segmented/index.js +0 -93
  276. package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +0 -12
  277. package/dist/libs/segmentedControl/src/components/Segmented/types.js +0 -1
  278. package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +0 -4
  279. package/dist/libs/segmentedControl/src/components/Wrapper/index.js +0 -21
  280. package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +0 -38
  281. package/dist/libs/segmentedControl/src/components/Wrapper/types.js +0 -1
  282. package/dist/libs/segmentedControl/src/context/shared.d.ts +0 -11
  283. package/dist/libs/segmentedControl/src/context/shared.js +0 -13
  284. package/dist/libs/segmentedControl/src/utils.d.ts +0 -10
  285. package/dist/libs/segmentedControl/src/utils.js +0 -29
  286. package/dist/libs/sql/index.d.ts +0 -4
  287. package/dist/libs/sql/index.js +0 -4
  288. package/dist/libs/sql/src/init.d.ts +0 -24
  289. package/dist/libs/sql/src/init.js +0 -31
  290. package/dist/libs/sql/src/queryLocal.d.ts +0 -6
  291. package/dist/libs/sql/src/queryLocal.js +0 -15
  292. package/dist/libs/sql/src/utils.d.ts +0 -11
  293. package/dist/libs/sql/src/utils.js +0 -60
  294. package/dist/libs/supabase/index.d.ts +0 -4
  295. package/dist/libs/supabase/index.js +0 -2
  296. package/dist/libs/supabase/src/clients/admin/config.d.ts +0 -2
  297. package/dist/libs/supabase/src/clients/admin/config.js +0 -18
  298. package/dist/libs/supabase/src/clients/admin/index.d.ts +0 -9
  299. package/dist/libs/supabase/src/clients/admin/index.js +0 -7
  300. package/dist/libs/supabase/src/clients/admin/utils.d.ts +0 -5
  301. package/dist/libs/supabase/src/clients/admin/utils.js +0 -6
  302. package/dist/libs/supabase/src/clients/app/config.d.ts +0 -3
  303. package/dist/libs/supabase/src/clients/app/config.js +0 -31
  304. package/dist/libs/supabase/src/clients/app/index.d.ts +0 -16
  305. package/dist/libs/supabase/src/clients/app/index.js +0 -7
  306. package/dist/libs/supabase/src/clients/app/utils.d.ts +0 -12
  307. package/dist/libs/supabase/src/clients/app/utils.js +0 -10
  308. package/dist/libs/supabase/src/utils/index.d.ts +0 -20
  309. package/dist/libs/supabase/src/utils/index.js +0 -23
  310. package/dist/libs/supabase/src/utils/types.d.ts +0 -22
  311. package/dist/libs/supabase/src/utils/types.js +0 -1
  312. package/dist/libs/swiftui/index.d.ts +0 -9
  313. package/dist/libs/swiftui/index.js +0 -9
  314. package/dist/libs/swiftui/src/components/Dialog/index.d.ts +0 -4
  315. package/dist/libs/swiftui/src/components/Dialog/index.js +0 -22
  316. package/dist/libs/swiftui/src/components/Dialog/types.d.ts +0 -21
  317. package/dist/libs/swiftui/src/components/Dialog/types.js +0 -1
  318. package/dist/libs/swiftui/src/components/Host.d.ts +0 -6
  319. package/dist/libs/swiftui/src/components/Host.js +0 -5
  320. package/dist/libs/swiftui/src/components/Icon.d.ts +0 -10
  321. package/dist/libs/swiftui/src/components/Icon.js +0 -8
  322. package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +0 -25
  323. package/dist/libs/swiftui/src/components/IconSection/Icon.js +0 -26
  324. package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +0 -7
  325. package/dist/libs/swiftui/src/components/IconSection/Section.js +0 -17
  326. package/dist/libs/swiftui/src/components/IconSection/index.d.ts +0 -7
  327. package/dist/libs/swiftui/src/components/IconSection/index.js +0 -5
  328. package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +0 -10
  329. package/dist/libs/swiftui/src/components/List/BaseList/index.js +0 -20
  330. package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +0 -16
  331. package/dist/libs/swiftui/src/components/List/BaseList/types.js +0 -1
  332. package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +0 -4
  333. package/dist/libs/swiftui/src/components/List/Editable/List/index.js +0 -19
  334. package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +0 -16
  335. package/dist/libs/swiftui/src/components/List/Editable/List/types.js +0 -1
  336. package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +0 -5
  337. package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +0 -36
  338. package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +0 -42
  339. package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +0 -1
  340. package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +0 -7
  341. package/dist/libs/swiftui/src/components/List/Editable/index.js +0 -5
  342. package/dist/libs/swiftui/src/components/List/index.d.ts +0 -7
  343. package/dist/libs/swiftui/src/components/List/index.js +0 -5
  344. package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +0 -4
  345. package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +0 -14
  346. package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +0 -4
  347. package/dist/libs/swiftui/src/components/NavigationLink/index.js +0 -14
  348. package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +0 -31
  349. package/dist/libs/swiftui/src/components/NavigationLink/types.js +0 -1
  350. package/dist/libs/swiftui/src/components/Picker.d.ts +0 -11
  351. package/dist/libs/swiftui/src/components/Picker.js +0 -14
  352. package/dist/libs/swiftui/src/components/Text.d.ts +0 -6
  353. package/dist/libs/swiftui/src/components/Text.js +0 -10
  354. package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +0 -22
  355. package/dist/libs/swiftui/src/components/TextSubtitle.js +0 -9
  356. package/dist/libs/swiftui/src/context/ListEditable.d.ts +0 -7
  357. package/dist/libs/swiftui/src/context/ListEditable.js +0 -2
  358. package/dist/libs/table/index.d.ts +0 -5
  359. package/dist/libs/table/index.js +0 -5
  360. package/dist/libs/table/src/components/Borders.d.ts +0 -6
  361. package/dist/libs/table/src/components/Borders.js +0 -84
  362. package/dist/libs/table/src/components/Delete/index.d.ts +0 -4
  363. package/dist/libs/table/src/components/Delete/index.js +0 -141
  364. package/dist/libs/table/src/components/Delete/types.d.ts +0 -27
  365. package/dist/libs/table/src/components/Delete/types.js +0 -1
  366. package/dist/libs/table/src/components/Detail.d.ts +0 -4
  367. package/dist/libs/table/src/components/Detail.js +0 -11
  368. package/dist/libs/table/src/components/Option/index.d.ts +0 -6
  369. package/dist/libs/table/src/components/Option/index.js +0 -106
  370. package/dist/libs/table/src/components/Option/types.d.ts +0 -61
  371. package/dist/libs/table/src/components/Option/types.js +0 -1
  372. package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +0 -6
  373. package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +0 -14
  374. package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +0 -6
  375. package/dist/libs/table/src/components/OptionComponents/dragIcon.js +0 -18
  376. package/dist/libs/table/src/components/OptionComponents/icon.d.ts +0 -10
  377. package/dist/libs/table/src/components/OptionComponents/icon.js +0 -12
  378. package/dist/libs/table/src/components/OptionComponents/image.d.ts +0 -9
  379. package/dist/libs/table/src/components/OptionComponents/image.js +0 -12
  380. package/dist/libs/table/src/components/OptionComponents/index.d.ts +0 -8
  381. package/dist/libs/table/src/components/OptionComponents/index.js +0 -8
  382. package/dist/libs/table/src/components/OptionComponents/text.d.ts +0 -22
  383. package/dist/libs/table/src/components/OptionComponents/text.js +0 -20
  384. package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +0 -25
  385. package/dist/libs/table/src/components/OptionComponents/textInput.js +0 -49
  386. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +0 -8
  387. package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +0 -10
  388. package/dist/libs/table/src/components/OptionComponents/textView.d.ts +0 -14
  389. package/dist/libs/table/src/components/OptionComponents/textView.js +0 -18
  390. package/dist/libs/table/src/components/OptionWrapper/index.d.ts +0 -3
  391. package/dist/libs/table/src/components/OptionWrapper/index.js +0 -9
  392. package/dist/libs/table/src/components/OptionWrapper/types.d.ts +0 -37
  393. package/dist/libs/table/src/components/OptionWrapper/types.js +0 -1
  394. package/dist/libs/table/src/components/Table/index.d.ts +0 -3
  395. package/dist/libs/table/src/components/Table/index.js +0 -90
  396. package/dist/libs/table/src/components/Table/types.d.ts +0 -70
  397. package/dist/libs/table/src/components/Table/types.js +0 -1
  398. package/dist/libs/table/src/components/Wrapper.d.ts +0 -4
  399. package/dist/libs/table/src/components/Wrapper.js +0 -49
  400. package/dist/libs/table/src/constants.d.ts +0 -108
  401. package/dist/libs/table/src/constants.js +0 -107
  402. package/dist/libs/table/src/context/borders.d.ts +0 -10
  403. package/dist/libs/table/src/context/borders.js +0 -11
  404. package/dist/libs/table/src/context/delete.d.ts +0 -1
  405. package/dist/libs/table/src/context/delete.js +0 -2
  406. package/dist/libs/table/src/context/table.d.ts +0 -21
  407. package/dist/libs/table/src/context/table.js +0 -4
@@ -1,170 +0,0 @@
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;
@@ -1,13 +0,0 @@
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 {};
@@ -1,23 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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;
@@ -1,84 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,59 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,75 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import type Props from './types';
2
- declare const _default: ({ ...props }: Props) => null;
3
- export default _default;
@@ -1,4 +0,0 @@
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;
@@ -1,12 +0,0 @@
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
- });
@@ -1 +0,0 @@
1
- export default ({ ...props }) => null;
@@ -1,14 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import type Props from './types';
2
- declare const _default: ({ ...props }: Props) => null;
3
- export default _default;
@@ -1,4 +0,0 @@
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;
@@ -1,29 +0,0 @@
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
- });
@@ -1 +0,0 @@
1
- export default ({ ...props }) => null;
@@ -1,25 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- declare const _default: ({ children }: {
2
- children: React.ReactNode;
3
- }) => null;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: ({ children }: {
2
- children: React.ReactNode;
3
- }) => import("react").JSX.Element;
4
- export default _default;
@@ -1,8 +0,0 @@
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>);
@@ -1 +0,0 @@
1
- export default ({ children }) => null;
@@ -1,27 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};