@navegarti/rn-design-system 0.2.0

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 (470) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +37 -0
  3. package/lib/module/api/axios-adapter.js +174 -0
  4. package/lib/module/api/axios-adapter.js.map +1 -0
  5. package/lib/module/api/errors.js +91 -0
  6. package/lib/module/api/errors.js.map +1 -0
  7. package/lib/module/api/index.js +30 -0
  8. package/lib/module/api/index.js.map +1 -0
  9. package/lib/module/api/retry-strategy.js +68 -0
  10. package/lib/module/api/retry-strategy.js.map +1 -0
  11. package/lib/module/api/stores/auth-store.js +26 -0
  12. package/lib/module/api/stores/auth-store.js.map +1 -0
  13. package/lib/module/api/types.js +4 -0
  14. package/lib/module/api/types.js.map +1 -0
  15. package/lib/module/api.js +10 -0
  16. package/lib/module/api.js.map +1 -0
  17. package/lib/module/components/Button/index.js +32 -0
  18. package/lib/module/components/Button/index.js.map +1 -0
  19. package/lib/module/components/Button/styles.js +27 -0
  20. package/lib/module/components/Button/styles.js.map +1 -0
  21. package/lib/module/components/Carousel/components/dot.js +42 -0
  22. package/lib/module/components/Carousel/components/dot.js.map +1 -0
  23. package/lib/module/components/Carousel/components/footer.js +22 -0
  24. package/lib/module/components/Carousel/components/footer.js.map +1 -0
  25. package/lib/module/components/Carousel/components/list.js +55 -0
  26. package/lib/module/components/Carousel/components/list.js.map +1 -0
  27. package/lib/module/components/Carousel/components/pagination.js +29 -0
  28. package/lib/module/components/Carousel/components/pagination.js.map +1 -0
  29. package/lib/module/components/Carousel/components/see-all-button.js +24 -0
  30. package/lib/module/components/Carousel/components/see-all-button.js.map +1 -0
  31. package/lib/module/components/Carousel/context.js +15 -0
  32. package/lib/module/components/Carousel/context.js.map +1 -0
  33. package/lib/module/components/Carousel/index.js +142 -0
  34. package/lib/module/components/Carousel/index.js.map +1 -0
  35. package/lib/module/components/Carousel/styles.js +10 -0
  36. package/lib/module/components/Carousel/styles.js.map +1 -0
  37. package/lib/module/components/Carousel/types.js +4 -0
  38. package/lib/module/components/Carousel/types.js.map +1 -0
  39. package/lib/module/components/Checkbox/index.js +34 -0
  40. package/lib/module/components/Checkbox/index.js.map +1 -0
  41. package/lib/module/components/Checkbox/styles.js +9 -0
  42. package/lib/module/components/Checkbox/styles.js.map +1 -0
  43. package/lib/module/components/FAB/components/extended-fab.js +17 -0
  44. package/lib/module/components/FAB/components/extended-fab.js.map +1 -0
  45. package/lib/module/components/FAB/index.js +24 -0
  46. package/lib/module/components/FAB/index.js.map +1 -0
  47. package/lib/module/components/FAB/styles.js +40 -0
  48. package/lib/module/components/FAB/styles.js.map +1 -0
  49. package/lib/module/components/FAB/utils.js +49 -0
  50. package/lib/module/components/FAB/utils.js.map +1 -0
  51. package/lib/module/components/Flex/index.js +4 -0
  52. package/lib/module/components/Flex/index.js.map +1 -0
  53. package/lib/module/components/Flex/styles.js +31 -0
  54. package/lib/module/components/Flex/styles.js.map +1 -0
  55. package/lib/module/components/FormLabel/index.js +10 -0
  56. package/lib/module/components/FormLabel/index.js.map +1 -0
  57. package/lib/module/components/FormLabel/styles.js +10 -0
  58. package/lib/module/components/FormLabel/styles.js.map +1 -0
  59. package/lib/module/components/Input/components/input-control.js +25 -0
  60. package/lib/module/components/Input/components/input-control.js.map +1 -0
  61. package/lib/module/components/Input/components/input-error.js +17 -0
  62. package/lib/module/components/Input/components/input-error.js.map +1 -0
  63. package/lib/module/components/Input/components/input-field.js +48 -0
  64. package/lib/module/components/Input/components/input-field.js.map +1 -0
  65. package/lib/module/components/Input/components/input-icon.js +10 -0
  66. package/lib/module/components/Input/components/input-icon.js.map +1 -0
  67. package/lib/module/components/Input/components/input-password-toggle.js +30 -0
  68. package/lib/module/components/Input/components/input-password-toggle.js.map +1 -0
  69. package/lib/module/components/Input/components/input-root.js +45 -0
  70. package/lib/module/components/Input/components/input-root.js.map +1 -0
  71. package/lib/module/components/Input/context.js +12 -0
  72. package/lib/module/components/Input/context.js.map +1 -0
  73. package/lib/module/components/Input/index.js +18 -0
  74. package/lib/module/components/Input/index.js.map +1 -0
  75. package/lib/module/components/Input/styles.js +40 -0
  76. package/lib/module/components/Input/styles.js.map +1 -0
  77. package/lib/module/components/Input/utils.js +24 -0
  78. package/lib/module/components/Input/utils.js.map +1 -0
  79. package/lib/module/components/Margin/index.js +4 -0
  80. package/lib/module/components/Margin/index.js.map +1 -0
  81. package/lib/module/components/Margin/styles.js +15 -0
  82. package/lib/module/components/Margin/styles.js.map +1 -0
  83. package/lib/module/components/OTPInput/index.js +85 -0
  84. package/lib/module/components/OTPInput/index.js.map +1 -0
  85. package/lib/module/components/OTPInput/styles.js +23 -0
  86. package/lib/module/components/OTPInput/styles.js.map +1 -0
  87. package/lib/module/components/OTPInput/utils.js +24 -0
  88. package/lib/module/components/OTPInput/utils.js.map +1 -0
  89. package/lib/module/components/Padding/index.js +4 -0
  90. package/lib/module/components/Padding/index.js.map +1 -0
  91. package/lib/module/components/Padding/styles.js +15 -0
  92. package/lib/module/components/Padding/styles.js.map +1 -0
  93. package/lib/module/components/Radio/components/radio-item.js +52 -0
  94. package/lib/module/components/Radio/components/radio-item.js.map +1 -0
  95. package/lib/module/components/Radio/context.js +5 -0
  96. package/lib/module/components/Radio/context.js.map +1 -0
  97. package/lib/module/components/Radio/index.js +30 -0
  98. package/lib/module/components/Radio/index.js.map +1 -0
  99. package/lib/module/components/Radio/styles.js +33 -0
  100. package/lib/module/components/Radio/styles.js.map +1 -0
  101. package/lib/module/components/Radio/utils.js +15 -0
  102. package/lib/module/components/Radio/utils.js.map +1 -0
  103. package/lib/module/components/Select/components/error-icon.js +8 -0
  104. package/lib/module/components/Select/components/error-icon.js.map +1 -0
  105. package/lib/module/components/Select/components/select-error.js +17 -0
  106. package/lib/module/components/Select/components/select-error.js.map +1 -0
  107. package/lib/module/components/Select/components/select-field.js +67 -0
  108. package/lib/module/components/Select/components/select-field.js.map +1 -0
  109. package/lib/module/components/Select/context.js +12 -0
  110. package/lib/module/components/Select/context.js.map +1 -0
  111. package/lib/module/components/Select/index.js +26 -0
  112. package/lib/module/components/Select/index.js.map +1 -0
  113. package/lib/module/components/Select/styles.js +15 -0
  114. package/lib/module/components/Select/styles.js.map +1 -0
  115. package/lib/module/components/Skeleton/index.js +44 -0
  116. package/lib/module/components/Skeleton/index.js.map +1 -0
  117. package/lib/module/components/Switch/index.js +55 -0
  118. package/lib/module/components/Switch/index.js.map +1 -0
  119. package/lib/module/components/Switch/styles.js +31 -0
  120. package/lib/module/components/Switch/styles.js.map +1 -0
  121. package/lib/module/components/Switch/utils.js +12 -0
  122. package/lib/module/components/Switch/utils.js.map +1 -0
  123. package/lib/module/components/Text/index.js +4 -0
  124. package/lib/module/components/Text/index.js.map +1 -0
  125. package/lib/module/components/Text/styles.js +25 -0
  126. package/lib/module/components/Text/styles.js.map +1 -0
  127. package/lib/module/components.js +23 -0
  128. package/lib/module/components.js.map +1 -0
  129. package/lib/module/form.js +10 -0
  130. package/lib/module/form.js.map +1 -0
  131. package/lib/module/formValidators/ZodTypeValidator.js +38 -0
  132. package/lib/module/formValidators/ZodTypeValidator.js.map +1 -0
  133. package/lib/module/formValidators/index.js +8 -0
  134. package/lib/module/formValidators/index.js.map +1 -0
  135. package/lib/module/formValidators/types.js +4 -0
  136. package/lib/module/formValidators/types.js.map +1 -0
  137. package/lib/module/hooks/useAppIsActive.js +20 -0
  138. package/lib/module/hooks/useAppIsActive.js.map +1 -0
  139. package/lib/module/hooks/useAppSecurity.js +26 -0
  140. package/lib/module/hooks/useAppSecurity.js.map +1 -0
  141. package/lib/module/hooks/useNetworkStatus.js +55 -0
  142. package/lib/module/hooks/useNetworkStatus.js.map +1 -0
  143. package/lib/module/hooks/useStatusBar.js +26 -0
  144. package/lib/module/hooks/useStatusBar.js.map +1 -0
  145. package/lib/module/hooks.js +12 -0
  146. package/lib/module/hooks.js.map +1 -0
  147. package/lib/module/index.js +53 -0
  148. package/lib/module/index.js.map +1 -0
  149. package/lib/module/libs/tanstack-form.js +5 -0
  150. package/lib/module/libs/tanstack-form.js.map +1 -0
  151. package/lib/module/package.json +1 -0
  152. package/lib/module/utils/camelCase.js +7 -0
  153. package/lib/module/utils/camelCase.js.map +1 -0
  154. package/lib/module/utils/camelCaseJSONKeys.js +29 -0
  155. package/lib/module/utils/camelCaseJSONKeys.js.map +1 -0
  156. package/lib/module/utils/capitalizeWord.js +5 -0
  157. package/lib/module/utils/capitalizeWord.js.map +1 -0
  158. package/lib/module/utils/createLinkingPhoneNumberString.js +10 -0
  159. package/lib/module/utils/createLinkingPhoneNumberString.js.map +1 -0
  160. package/lib/module/utils/dateFormatters.js +34 -0
  161. package/lib/module/utils/dateFormatters.js.map +1 -0
  162. package/lib/module/utils/debounce.js +12 -0
  163. package/lib/module/utils/debounce.js.map +1 -0
  164. package/lib/module/utils/deepLinkParser.js +117 -0
  165. package/lib/module/utils/deepLinkParser.js.map +1 -0
  166. package/lib/module/utils/getAge.js +13 -0
  167. package/lib/module/utils/getAge.js.map +1 -0
  168. package/lib/module/utils/getOnlyNumbers.js +4 -0
  169. package/lib/module/utils/getOnlyNumbers.js.map +1 -0
  170. package/lib/module/utils/isArray.js +7 -0
  171. package/lib/module/utils/isArray.js.map +1 -0
  172. package/lib/module/utils/isObject.js +7 -0
  173. package/lib/module/utils/isObject.js.map +1 -0
  174. package/lib/module/utils/masks.js +5 -0
  175. package/lib/module/utils/masks.js.map +1 -0
  176. package/lib/module/utils/priceFormatter.js +9 -0
  177. package/lib/module/utils/priceFormatter.js.map +1 -0
  178. package/lib/module/utils/removeTextAccents.js +5 -0
  179. package/lib/module/utils/removeTextAccents.js.map +1 -0
  180. package/lib/module/utils/shadowStyledIos.js +8 -0
  181. package/lib/module/utils/shadowStyledIos.js.map +1 -0
  182. package/lib/module/utils/sortBy.js +18 -0
  183. package/lib/module/utils/sortBy.js.map +1 -0
  184. package/lib/module/utils/uniqBy.js +15 -0
  185. package/lib/module/utils/uniqBy.js.map +1 -0
  186. package/lib/module/utils/userFullnameInitialsExtractor.js +19 -0
  187. package/lib/module/utils/userFullnameInitialsExtractor.js.map +1 -0
  188. package/lib/module/utils.js +26 -0
  189. package/lib/module/utils.js.map +1 -0
  190. package/lib/typescript/package.json +1 -0
  191. package/lib/typescript/src/api/axios-adapter.d.ts +61 -0
  192. package/lib/typescript/src/api/axios-adapter.d.ts.map +1 -0
  193. package/lib/typescript/src/api/errors.d.ts +63 -0
  194. package/lib/typescript/src/api/errors.d.ts.map +1 -0
  195. package/lib/typescript/src/api/index.d.ts +21 -0
  196. package/lib/typescript/src/api/index.d.ts.map +1 -0
  197. package/lib/typescript/src/api/retry-strategy.d.ts +21 -0
  198. package/lib/typescript/src/api/retry-strategy.d.ts.map +1 -0
  199. package/lib/typescript/src/api/stores/auth-store.d.ts +15 -0
  200. package/lib/typescript/src/api/stores/auth-store.d.ts.map +1 -0
  201. package/lib/typescript/src/api/types.d.ts +68 -0
  202. package/lib/typescript/src/api/types.d.ts.map +1 -0
  203. package/lib/typescript/src/api.d.ts +8 -0
  204. package/lib/typescript/src/api.d.ts.map +1 -0
  205. package/lib/typescript/src/components/Button/index.d.ts +478 -0
  206. package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Button/styles.d.ts +318 -0
  208. package/lib/typescript/src/components/Button/styles.d.ts.map +1 -0
  209. package/lib/typescript/src/components/Carousel/components/dot.d.ts +7 -0
  210. package/lib/typescript/src/components/Carousel/components/dot.d.ts.map +1 -0
  211. package/lib/typescript/src/components/Carousel/components/footer.d.ts +6 -0
  212. package/lib/typescript/src/components/Carousel/components/footer.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Carousel/components/list.d.ts +8 -0
  214. package/lib/typescript/src/components/Carousel/components/list.d.ts.map +1 -0
  215. package/lib/typescript/src/components/Carousel/components/pagination.d.ts +2 -0
  216. package/lib/typescript/src/components/Carousel/components/pagination.d.ts.map +1 -0
  217. package/lib/typescript/src/components/Carousel/components/see-all-button.d.ts +7 -0
  218. package/lib/typescript/src/components/Carousel/components/see-all-button.d.ts.map +1 -0
  219. package/lib/typescript/src/components/Carousel/context.d.ts +4 -0
  220. package/lib/typescript/src/components/Carousel/context.d.ts.map +1 -0
  221. package/lib/typescript/src/components/Carousel/index.d.ts +394 -0
  222. package/lib/typescript/src/components/Carousel/index.d.ts.map +1 -0
  223. package/lib/typescript/src/components/Carousel/styles.d.ts +79 -0
  224. package/lib/typescript/src/components/Carousel/styles.d.ts.map +1 -0
  225. package/lib/typescript/src/components/Carousel/types.d.ts +40 -0
  226. package/lib/typescript/src/components/Carousel/types.d.ts.map +1 -0
  227. package/lib/typescript/src/components/Checkbox/index.d.ts +10 -0
  228. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  229. package/lib/typescript/src/components/Checkbox/styles.d.ts +154 -0
  230. package/lib/typescript/src/components/Checkbox/styles.d.ts.map +1 -0
  231. package/lib/typescript/src/components/FAB/components/extended-fab.d.ts +3 -0
  232. package/lib/typescript/src/components/FAB/components/extended-fab.d.ts.map +1 -0
  233. package/lib/typescript/src/components/FAB/index.d.ts +8 -0
  234. package/lib/typescript/src/components/FAB/index.d.ts.map +1 -0
  235. package/lib/typescript/src/components/FAB/styles.d.ts +807 -0
  236. package/lib/typescript/src/components/FAB/styles.d.ts.map +1 -0
  237. package/lib/typescript/src/components/FAB/utils.d.ts +19 -0
  238. package/lib/typescript/src/components/FAB/utils.d.ts.map +1 -0
  239. package/lib/typescript/src/components/Flex/index.d.ts +2 -0
  240. package/lib/typescript/src/components/Flex/index.d.ts.map +1 -0
  241. package/lib/typescript/src/components/Flex/styles.d.ts +135 -0
  242. package/lib/typescript/src/components/Flex/styles.d.ts.map +1 -0
  243. package/lib/typescript/src/components/FormLabel/index.d.ts +3 -0
  244. package/lib/typescript/src/components/FormLabel/index.d.ts.map +1 -0
  245. package/lib/typescript/src/components/FormLabel/styles.d.ts +158 -0
  246. package/lib/typescript/src/components/FormLabel/styles.d.ts.map +1 -0
  247. package/lib/typescript/src/components/Input/components/input-control.d.ts +3 -0
  248. package/lib/typescript/src/components/Input/components/input-control.d.ts.map +1 -0
  249. package/lib/typescript/src/components/Input/components/input-error.d.ts +3 -0
  250. package/lib/typescript/src/components/Input/components/input-error.d.ts.map +1 -0
  251. package/lib/typescript/src/components/Input/components/input-field.d.ts +7 -0
  252. package/lib/typescript/src/components/Input/components/input-field.d.ts.map +1 -0
  253. package/lib/typescript/src/components/Input/components/input-icon.d.ts +3 -0
  254. package/lib/typescript/src/components/Input/components/input-icon.d.ts.map +1 -0
  255. package/lib/typescript/src/components/Input/components/input-password-toggle.d.ts +2 -0
  256. package/lib/typescript/src/components/Input/components/input-password-toggle.d.ts.map +1 -0
  257. package/lib/typescript/src/components/Input/components/input-root.d.ts +9 -0
  258. package/lib/typescript/src/components/Input/components/input-root.d.ts.map +1 -0
  259. package/lib/typescript/src/components/Input/context.d.ts +15 -0
  260. package/lib/typescript/src/components/Input/context.d.ts.map +1 -0
  261. package/lib/typescript/src/components/Input/index.d.ts +17 -0
  262. package/lib/typescript/src/components/Input/index.d.ts.map +1 -0
  263. package/lib/typescript/src/components/Input/styles.d.ts +738 -0
  264. package/lib/typescript/src/components/Input/styles.d.ts.map +1 -0
  265. package/lib/typescript/src/components/Input/utils.d.ts +3 -0
  266. package/lib/typescript/src/components/Input/utils.d.ts.map +1 -0
  267. package/lib/typescript/src/components/Margin/index.d.ts +2 -0
  268. package/lib/typescript/src/components/Margin/index.d.ts.map +1 -0
  269. package/lib/typescript/src/components/Margin/styles.d.ts +144 -0
  270. package/lib/typescript/src/components/Margin/styles.d.ts.map +1 -0
  271. package/lib/typescript/src/components/OTPInput/index.d.ts +18 -0
  272. package/lib/typescript/src/components/OTPInput/index.d.ts.map +1 -0
  273. package/lib/typescript/src/components/OTPInput/styles.d.ts +214 -0
  274. package/lib/typescript/src/components/OTPInput/styles.d.ts.map +1 -0
  275. package/lib/typescript/src/components/OTPInput/utils.d.ts +3 -0
  276. package/lib/typescript/src/components/OTPInput/utils.d.ts.map +1 -0
  277. package/lib/typescript/src/components/Padding/index.d.ts +2 -0
  278. package/lib/typescript/src/components/Padding/index.d.ts.map +1 -0
  279. package/lib/typescript/src/components/Padding/styles.d.ts +144 -0
  280. package/lib/typescript/src/components/Padding/styles.d.ts.map +1 -0
  281. package/lib/typescript/src/components/Radio/components/radio-item.d.ts +8 -0
  282. package/lib/typescript/src/components/Radio/components/radio-item.d.ts.map +1 -0
  283. package/lib/typescript/src/components/Radio/context.d.ts +8 -0
  284. package/lib/typescript/src/components/Radio/context.d.ts.map +1 -0
  285. package/lib/typescript/src/components/Radio/index.d.ts +86 -0
  286. package/lib/typescript/src/components/Radio/index.d.ts.map +1 -0
  287. package/lib/typescript/src/components/Radio/styles.d.ts +348 -0
  288. package/lib/typescript/src/components/Radio/styles.d.ts.map +1 -0
  289. package/lib/typescript/src/components/Radio/utils.d.ts +2 -0
  290. package/lib/typescript/src/components/Radio/utils.d.ts.map +1 -0
  291. package/lib/typescript/src/components/Select/components/error-icon.d.ts +2 -0
  292. package/lib/typescript/src/components/Select/components/error-icon.d.ts.map +1 -0
  293. package/lib/typescript/src/components/Select/components/select-error.d.ts +3 -0
  294. package/lib/typescript/src/components/Select/components/select-error.d.ts.map +1 -0
  295. package/lib/typescript/src/components/Select/components/select-field.d.ts +5 -0
  296. package/lib/typescript/src/components/Select/components/select-field.d.ts.map +1 -0
  297. package/lib/typescript/src/components/Select/context.d.ts +7 -0
  298. package/lib/typescript/src/components/Select/context.d.ts.map +1 -0
  299. package/lib/typescript/src/components/Select/index.d.ts +11 -0
  300. package/lib/typescript/src/components/Select/index.d.ts.map +1 -0
  301. package/lib/typescript/src/components/Select/styles.d.ts +315 -0
  302. package/lib/typescript/src/components/Select/styles.d.ts.map +1 -0
  303. package/lib/typescript/src/components/Skeleton/index.d.ts +11 -0
  304. package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
  305. package/lib/typescript/src/components/Switch/index.d.ts +11 -0
  306. package/lib/typescript/src/components/Switch/index.d.ts.map +1 -0
  307. package/lib/typescript/src/components/Switch/styles.d.ts +344 -0
  308. package/lib/typescript/src/components/Switch/styles.d.ts.map +1 -0
  309. package/lib/typescript/src/components/Switch/utils.d.ts +2 -0
  310. package/lib/typescript/src/components/Switch/utils.d.ts.map +1 -0
  311. package/lib/typescript/src/components/Text/index.d.ts +3 -0
  312. package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
  313. package/lib/typescript/src/components/Text/styles.d.ts +169 -0
  314. package/lib/typescript/src/components/Text/styles.d.ts.map +1 -0
  315. package/lib/typescript/src/components.d.ts +20 -0
  316. package/lib/typescript/src/components.d.ts.map +1 -0
  317. package/lib/typescript/src/form.d.ts +7 -0
  318. package/lib/typescript/src/form.d.ts.map +1 -0
  319. package/lib/typescript/src/formValidators/ZodTypeValidator.d.ts +11 -0
  320. package/lib/typescript/src/formValidators/ZodTypeValidator.d.ts.map +1 -0
  321. package/lib/typescript/src/formValidators/index.d.ts +4 -0
  322. package/lib/typescript/src/formValidators/index.d.ts.map +1 -0
  323. package/lib/typescript/src/formValidators/types.d.ts +16 -0
  324. package/lib/typescript/src/formValidators/types.d.ts.map +1 -0
  325. package/lib/typescript/src/hooks/useAppIsActive.d.ts +2 -0
  326. package/lib/typescript/src/hooks/useAppIsActive.d.ts.map +1 -0
  327. package/lib/typescript/src/hooks/useAppSecurity.d.ts +8 -0
  328. package/lib/typescript/src/hooks/useAppSecurity.d.ts.map +1 -0
  329. package/lib/typescript/src/hooks/useNetworkStatus.d.ts +7 -0
  330. package/lib/typescript/src/hooks/useNetworkStatus.d.ts.map +1 -0
  331. package/lib/typescript/src/hooks/useStatusBar.d.ts +7 -0
  332. package/lib/typescript/src/hooks/useStatusBar.d.ts.map +1 -0
  333. package/lib/typescript/src/hooks.d.ts +9 -0
  334. package/lib/typescript/src/hooks.d.ts.map +1 -0
  335. package/lib/typescript/src/index.d.ts +45 -0
  336. package/lib/typescript/src/index.d.ts.map +1 -0
  337. package/lib/typescript/src/libs/tanstack-form.d.ts +3 -0
  338. package/lib/typescript/src/libs/tanstack-form.d.ts.map +1 -0
  339. package/lib/typescript/src/utils/camelCase.d.ts +2 -0
  340. package/lib/typescript/src/utils/camelCase.d.ts.map +1 -0
  341. package/lib/typescript/src/utils/camelCaseJSONKeys.d.ts +3 -0
  342. package/lib/typescript/src/utils/camelCaseJSONKeys.d.ts.map +1 -0
  343. package/lib/typescript/src/utils/capitalizeWord.d.ts +3 -0
  344. package/lib/typescript/src/utils/capitalizeWord.d.ts.map +1 -0
  345. package/lib/typescript/src/utils/createLinkingPhoneNumberString.d.ts +3 -0
  346. package/lib/typescript/src/utils/createLinkingPhoneNumberString.d.ts.map +1 -0
  347. package/lib/typescript/src/utils/dateFormatters.d.ts +7 -0
  348. package/lib/typescript/src/utils/dateFormatters.d.ts.map +1 -0
  349. package/lib/typescript/src/utils/debounce.d.ts +2 -0
  350. package/lib/typescript/src/utils/debounce.d.ts.map +1 -0
  351. package/lib/typescript/src/utils/deepLinkParser.d.ts +7 -0
  352. package/lib/typescript/src/utils/deepLinkParser.d.ts.map +1 -0
  353. package/lib/typescript/src/utils/getAge.d.ts +2 -0
  354. package/lib/typescript/src/utils/getAge.d.ts.map +1 -0
  355. package/lib/typescript/src/utils/getOnlyNumbers.d.ts +2 -0
  356. package/lib/typescript/src/utils/getOnlyNumbers.d.ts.map +1 -0
  357. package/lib/typescript/src/utils/isArray.d.ts +2 -0
  358. package/lib/typescript/src/utils/isArray.d.ts.map +1 -0
  359. package/lib/typescript/src/utils/isObject.d.ts +2 -0
  360. package/lib/typescript/src/utils/isObject.d.ts.map +1 -0
  361. package/lib/typescript/src/utils/masks.d.ts +3 -0
  362. package/lib/typescript/src/utils/masks.d.ts.map +1 -0
  363. package/lib/typescript/src/utils/priceFormatter.d.ts +2 -0
  364. package/lib/typescript/src/utils/priceFormatter.d.ts.map +1 -0
  365. package/lib/typescript/src/utils/removeTextAccents.d.ts +3 -0
  366. package/lib/typescript/src/utils/removeTextAccents.d.ts.map +1 -0
  367. package/lib/typescript/src/utils/shadowStyledIos.d.ts +3 -0
  368. package/lib/typescript/src/utils/shadowStyledIos.d.ts.map +1 -0
  369. package/lib/typescript/src/utils/sortBy.d.ts +2 -0
  370. package/lib/typescript/src/utils/sortBy.d.ts.map +1 -0
  371. package/lib/typescript/src/utils/uniqBy.d.ts +2 -0
  372. package/lib/typescript/src/utils/uniqBy.d.ts.map +1 -0
  373. package/lib/typescript/src/utils/userFullnameInitialsExtractor.d.ts +3 -0
  374. package/lib/typescript/src/utils/userFullnameInitialsExtractor.d.ts.map +1 -0
  375. package/lib/typescript/src/utils.d.ts +23 -0
  376. package/lib/typescript/src/utils.d.ts.map +1 -0
  377. package/package.json +234 -0
  378. package/src/api/axios-adapter.ts +272 -0
  379. package/src/api/errors.ts +113 -0
  380. package/src/api/index.ts +27 -0
  381. package/src/api/retry-strategy.ts +86 -0
  382. package/src/api/stores/auth-store.ts +26 -0
  383. package/src/api/types.ts +91 -0
  384. package/src/api.tsx +17 -0
  385. package/src/components/Button/index.tsx +35 -0
  386. package/src/components/Button/styles.ts +28 -0
  387. package/src/components/Carousel/components/dot.tsx +43 -0
  388. package/src/components/Carousel/components/footer.tsx +21 -0
  389. package/src/components/Carousel/components/list.tsx +81 -0
  390. package/src/components/Carousel/components/pagination.tsx +16 -0
  391. package/src/components/Carousel/components/see-all-button.tsx +25 -0
  392. package/src/components/Carousel/context.tsx +19 -0
  393. package/src/components/Carousel/index.tsx +191 -0
  394. package/src/components/Carousel/styles.ts +8 -0
  395. package/src/components/Carousel/types.ts +45 -0
  396. package/src/components/Checkbox/index.tsx +42 -0
  397. package/src/components/Checkbox/styles.ts +7 -0
  398. package/src/components/FAB/components/extended-fab.tsx +17 -0
  399. package/src/components/FAB/index.tsx +22 -0
  400. package/src/components/FAB/styles.ts +61 -0
  401. package/src/components/FAB/utils.ts +45 -0
  402. package/src/components/Flex/index.tsx +1 -0
  403. package/src/components/Flex/styles.ts +47 -0
  404. package/src/components/FormLabel/index.tsx +6 -0
  405. package/src/components/FormLabel/styles.ts +8 -0
  406. package/src/components/Input/components/input-control.tsx +20 -0
  407. package/src/components/Input/components/input-error.tsx +14 -0
  408. package/src/components/Input/components/input-field.tsx +55 -0
  409. package/src/components/Input/components/input-icon.tsx +7 -0
  410. package/src/components/Input/components/input-password-toggle.tsx +19 -0
  411. package/src/components/Input/components/input-root.tsx +55 -0
  412. package/src/components/Input/context.tsx +26 -0
  413. package/src/components/Input/index.tsx +17 -0
  414. package/src/components/Input/styles.ts +45 -0
  415. package/src/components/Input/utils.ts +27 -0
  416. package/src/components/Margin/index.tsx +1 -0
  417. package/src/components/Margin/styles.ts +23 -0
  418. package/src/components/OTPInput/index.tsx +116 -0
  419. package/src/components/OTPInput/styles.ts +23 -0
  420. package/src/components/OTPInput/utils.ts +31 -0
  421. package/src/components/Padding/index.tsx +1 -0
  422. package/src/components/Padding/styles.ts +23 -0
  423. package/src/components/Radio/components/radio-item.tsx +53 -0
  424. package/src/components/Radio/context.tsx +10 -0
  425. package/src/components/Radio/index.tsx +32 -0
  426. package/src/components/Radio/styles.ts +38 -0
  427. package/src/components/Radio/utils.ts +19 -0
  428. package/src/components/Select/components/error-icon.tsx +3 -0
  429. package/src/components/Select/components/select-error.tsx +14 -0
  430. package/src/components/Select/components/select-field.tsx +72 -0
  431. package/src/components/Select/context.tsx +17 -0
  432. package/src/components/Select/index.tsx +24 -0
  433. package/src/components/Select/styles.ts +15 -0
  434. package/src/components/Skeleton/index.tsx +60 -0
  435. package/src/components/Switch/index.tsx +61 -0
  436. package/src/components/Switch/styles.ts +32 -0
  437. package/src/components/Switch/utils.ts +15 -0
  438. package/src/components/Text/index.tsx +2 -0
  439. package/src/components/Text/styles.ts +44 -0
  440. package/src/components.tsx +20 -0
  441. package/src/form.tsx +7 -0
  442. package/src/formValidators/ZodTypeValidator.ts +58 -0
  443. package/src/formValidators/index.ts +8 -0
  444. package/src/formValidators/types.ts +21 -0
  445. package/src/hooks/useAppIsActive.ts +28 -0
  446. package/src/hooks/useAppSecurity.tsx +35 -0
  447. package/src/hooks/useNetworkStatus.ts +75 -0
  448. package/src/hooks/useStatusBar.ts +34 -0
  449. package/src/hooks.tsx +9 -0
  450. package/src/index.tsx +50 -0
  451. package/src/libs/tanstack-form.tsx +3 -0
  452. package/src/utils/camelCase.ts +6 -0
  453. package/src/utils/camelCaseJSONKeys.ts +31 -0
  454. package/src/utils/capitalizeWord.ts +4 -0
  455. package/src/utils/createLinkingPhoneNumberString.ts +13 -0
  456. package/src/utils/dateFormatters.ts +48 -0
  457. package/src/utils/debounce.ts +15 -0
  458. package/src/utils/deepLinkParser.ts +88 -0
  459. package/src/utils/getAge.ts +12 -0
  460. package/src/utils/getOnlyNumbers.ts +1 -0
  461. package/src/utils/isArray.ts +4 -0
  462. package/src/utils/isObject.ts +4 -0
  463. package/src/utils/masks.ts +3 -0
  464. package/src/utils/priceFormatter.ts +11 -0
  465. package/src/utils/removeTextAccents.ts +4 -0
  466. package/src/utils/shadowStyledIos.ts +6 -0
  467. package/src/utils/sortBy.ts +21 -0
  468. package/src/utils/uniqBy.ts +20 -0
  469. package/src/utils/userFullnameInitialsExtractor.ts +23 -0
  470. package/src/utils.tsx +23 -0
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ import NetInfo from '@react-native-community/netinfo';
4
+ import { onlineManager } from '@tanstack/react-query';
5
+ import { useEffect, useSyncExternalStore } from 'react';
6
+ import { Alert } from 'react-native';
7
+ let snapshot = {
8
+ isConnected: true,
9
+ isInternetReachable: null
10
+ };
11
+ const listeners = new Set();
12
+ let started = false;
13
+ const emit = () => {
14
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: .
15
+ listeners.forEach(listener => listener());
16
+ };
17
+ const ensureStarted = () => {
18
+ if (started) {
19
+ return;
20
+ }
21
+ started = true;
22
+ NetInfo.addEventListener(state => {
23
+ const next = {
24
+ isConnected: Boolean(state.isConnected),
25
+ isInternetReachable: state.isInternetReachable ?? null
26
+ };
27
+ onlineManager.setOnline(next.isConnected);
28
+ if (snapshot.isConnected !== next.isConnected || snapshot.isInternetReachable !== next.isInternetReachable) {
29
+ snapshot = next;
30
+ emit();
31
+ }
32
+ });
33
+ };
34
+ const subscribe = listener => {
35
+ ensureStarted();
36
+ listeners.add(listener);
37
+ return () => {
38
+ listeners.delete(listener);
39
+ };
40
+ };
41
+ const getSnapshot = () => snapshot;
42
+ const getServerSnapshot = () => snapshot;
43
+ export const useNetworkStatus = () => useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
44
+ export const useNetworkMonitor = () => {
45
+ const {
46
+ isConnected,
47
+ isInternetReachable
48
+ } = useNetworkStatus();
49
+ useEffect(() => {
50
+ if (isConnected === false && isInternetReachable === false) {
51
+ Alert.alert('Sem conexão com a internet', 'Por favor, verifique sua conexão e tente novamente.');
52
+ }
53
+ }, [isConnected, isInternetReachable]);
54
+ };
55
+ //# sourceMappingURL=useNetworkStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NetInfo","onlineManager","useEffect","useSyncExternalStore","Alert","snapshot","isConnected","isInternetReachable","listeners","Set","started","emit","forEach","listener","ensureStarted","addEventListener","state","next","Boolean","setOnline","subscribe","add","delete","getSnapshot","getServerSnapshot","useNetworkStatus","useNetworkMonitor","alert"],"sourceRoot":"../../../src","sources":["hooks/useNetworkStatus.ts"],"mappings":";;AAAA,OAAOA,OAAO,MAAM,iCAAiC;AACrD,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,SAAS,EAAEC,oBAAoB,QAAQ,OAAO;AACvD,SAASC,KAAK,QAAQ,cAAc;AAOpC,IAAIC,QAA+B,GAAG;EACpCC,WAAW,EAAE,IAAI;EACjBC,mBAAmB,EAAE;AACvB,CAAC;AAED,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAa,CAAC;AACvC,IAAIC,OAAO,GAAG,KAAK;AAEnB,MAAMC,IAAI,GAAGA,CAAA,KAAM;EACjB;EACAH,SAAS,CAACI,OAAO,CAAEC,QAAQ,IAAKA,QAAQ,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAC1B,IAAIJ,OAAO,EAAE;IACX;EACF;EAEAA,OAAO,GAAG,IAAI;EAEdV,OAAO,CAACe,gBAAgB,CAAEC,KAAK,IAAK;IAClC,MAAMC,IAA2B,GAAG;MAClCX,WAAW,EAAEY,OAAO,CAACF,KAAK,CAACV,WAAW,CAAC;MACvCC,mBAAmB,EAAES,KAAK,CAACT,mBAAmB,IAAI;IACpD,CAAC;IAEDN,aAAa,CAACkB,SAAS,CAACF,IAAI,CAACX,WAAW,CAAC;IAEzC,IACED,QAAQ,CAACC,WAAW,KAAKW,IAAI,CAACX,WAAW,IACzCD,QAAQ,CAACE,mBAAmB,KAAKU,IAAI,CAACV,mBAAmB,EACzD;MACAF,QAAQ,GAAGY,IAAI;MACfN,IAAI,CAAC,CAAC;IACR;EACF,CAAC,CAAC;AACJ,CAAC;AAED,MAAMS,SAAS,GAAIP,QAAoB,IAAK;EAC1CC,aAAa,CAAC,CAAC;EACfN,SAAS,CAACa,GAAG,CAACR,QAAQ,CAAC;EACvB,OAAO,MAAM;IACXL,SAAS,CAACc,MAAM,CAACT,QAAQ,CAAC;EAC5B,CAAC;AACH,CAAC;AAED,MAAMU,WAAW,GAAGA,CAAA,KAAMlB,QAAQ;AAElC,MAAMmB,iBAAiB,GAAGA,CAAA,KAAMnB,QAAQ;AAExC,OAAO,MAAMoB,gBAAgB,GAAGA,CAAA,KAC9BtB,oBAAoB,CAACiB,SAAS,EAAEG,WAAW,EAAEC,iBAAiB,CAAC;AAEjE,OAAO,MAAME,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAM;IAAEpB,WAAW;IAAEC;EAAoB,CAAC,GAAGkB,gBAAgB,CAAC,CAAC;EAE/DvB,SAAS,CAAC,MAAM;IACd,IAAII,WAAW,KAAK,KAAK,IAAIC,mBAAmB,KAAK,KAAK,EAAE;MAC1DH,KAAK,CAACuB,KAAK,CACT,4BAA4B,EAC5B,qDACF,CAAC;IACH;EACF,CAAC,EAAE,CAACrB,WAAW,EAAEC,mBAAmB,CAAC,CAAC;AACxC,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { useCallback } from 'react';
4
+ import { Platform, StatusBar } from 'react-native';
5
+ const useStatusBar = () => {
6
+ const setStatusBarLightTheme = useCallback(() => {
7
+ StatusBar.setHidden(false);
8
+ StatusBar.setBarStyle('dark-content');
9
+ if (Platform.OS === 'android') {
10
+ StatusBar.setBackgroundColor('#fff');
11
+ }
12
+ }, []);
13
+ const setStatusBarDarkTheme = useCallback(() => {
14
+ StatusBar.setHidden(false);
15
+ StatusBar.setBarStyle('light-content');
16
+ if (Platform.OS === 'android') {
17
+ StatusBar.setBackgroundColor('#000');
18
+ }
19
+ }, []);
20
+ return {
21
+ setStatusBarLightTheme,
22
+ setStatusBarDarkTheme
23
+ };
24
+ };
25
+ export { useStatusBar };
26
+ //# sourceMappingURL=useStatusBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","Platform","StatusBar","useStatusBar","setStatusBarLightTheme","setHidden","setBarStyle","OS","setBackgroundColor","setStatusBarDarkTheme"],"sourceRoot":"../../../src","sources":["hooks/useStatusBar.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AACnC,SAASC,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAOlD,MAAMC,YAAY,GAAGA,CAAA,KAAqB;EACxC,MAAMC,sBAAsB,GAAGJ,WAAW,CAAC,MAAM;IAC/CE,SAAS,CAACG,SAAS,CAAC,KAAK,CAAC;IAC1BH,SAAS,CAACI,WAAW,CAAC,cAAc,CAAC;IAErC,IAAIL,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;MAC7BL,SAAS,CAACM,kBAAkB,CAAC,MAAM,CAAC;IACtC;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,qBAAqB,GAAGT,WAAW,CAAC,MAAM;IAC9CE,SAAS,CAACG,SAAS,CAAC,KAAK,CAAC;IAC1BH,SAAS,CAACI,WAAW,CAAC,eAAe,CAAC;IAEtC,IAAIL,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;MAC7BL,SAAS,CAACM,kBAAkB,CAAC,MAAM,CAAC;IACtC;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLJ,sBAAsB;IACtBK;EACF,CAAC;AACH,CAAC;AAED,SAASN,YAAY","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Hooks module entry point.
5
+ * Exports all custom hooks from the design system.
6
+ */
7
+
8
+ export { useAppIsActive } from "./hooks/useAppIsActive.js";
9
+ export { useAppSecurity } from "./hooks/useAppSecurity.js";
10
+ export { useNetworkMonitor, useNetworkStatus } from "./hooks/useNetworkStatus.js";
11
+ export { useStatusBar } from "./hooks/useStatusBar.js";
12
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useAppIsActive","useAppSecurity","useNetworkMonitor","useNetworkStatus","useStatusBar"],"sourceRoot":"../../src","sources":["hooks.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,2BAAwB;AACvD,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,6BAA0B;AAC9E,SAASC,YAAY,QAAQ,yBAAsB","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Main entry point for @navegarti/rn-design-system
5
+ * Re-exports all components, utilities, form helpers, and hooks
6
+ */
7
+
8
+ // API
9
+ export * from "./api.js";
10
+ // Components
11
+ export { Button } from "./components/Button/index.js";
12
+ export { Carousel } from "./components/Carousel/index.js";
13
+ export { Checkbox } from "./components/Checkbox/index.js";
14
+ export { FAB } from "./components/FAB/index.js";
15
+ export { Flex } from "./components/Flex/index.js";
16
+ export { FormLabel } from "./components/FormLabel/index.js";
17
+ export { Input } from "./components/Input/index.js";
18
+ export { Margin } from "./components/Margin/index.js";
19
+ export { OTPInput } from "./components/OTPInput/index.js";
20
+ export { Padding } from "./components/Padding/index.js";
21
+ export { Radio } from "./components/Radio/index.js";
22
+ export { Select } from "./components/Select/index.js";
23
+ export { Skeleton } from "./components/Skeleton/index.js";
24
+ export { Switch } from "./components/Switch/index.js";
25
+ export { Text } from "./components/Text/index.js";
26
+ // Form & Validators
27
+ export { formValidators } from "./formValidators/index.js";
28
+ // Hooks
29
+ export { useAppIsActive } from "./hooks/useAppIsActive.js";
30
+ export { useAppSecurity } from "./hooks/useAppSecurity.js";
31
+ export { useNetworkMonitor, useNetworkStatus } from "./hooks/useNetworkStatus.js";
32
+ export { useStatusBar } from "./hooks/useStatusBar.js";
33
+ export { tanstackForm } from "./libs/tanstack-form.js";
34
+ // Utils
35
+ export { camelCase } from "./utils/camelCase.js";
36
+ export { camelCaseJSONKeys } from "./utils/camelCaseJSONKeys.js";
37
+ export { capitalizeWord } from "./utils/capitalizeWord.js";
38
+ export { createLinkingPhoneNumberString } from "./utils/createLinkingPhoneNumberString.js";
39
+ export * from "./utils/dateFormatters.js";
40
+ export { debounce } from "./utils/debounce.js";
41
+ export { deepLinkParser } from "./utils/deepLinkParser.js";
42
+ export { getAge } from "./utils/getAge.js";
43
+ export { getOnlyNumbers } from "./utils/getOnlyNumbers.js";
44
+ export { isArray } from "./utils/isArray.js";
45
+ export { isObject } from "./utils/isObject.js";
46
+ export { Masks } from "./utils/masks.js";
47
+ export { priceFormatter } from "./utils/priceFormatter.js";
48
+ export { removeTextAccents } from "./utils/removeTextAccents.js";
49
+ export { shadowStyledIos } from "./utils/shadowStyledIos.js";
50
+ export { sortBy } from "./utils/sortBy.js";
51
+ export { uniqBy } from "./utils/uniqBy.js";
52
+ export { userFullnameInitialsExtractor } from "./utils/userFullnameInitialsExtractor.js";
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Button","Carousel","Checkbox","FAB","Flex","FormLabel","Input","Margin","OTPInput","Padding","Radio","Select","Skeleton","Switch","Text","formValidators","useAppIsActive","useAppSecurity","useNetworkMonitor","useNetworkStatus","useStatusBar","tanstackForm","camelCase","camelCaseJSONKeys","capitalizeWord","createLinkingPhoneNumberString","debounce","deepLinkParser","getAge","getOnlyNumbers","isArray","isObject","Masks","priceFormatter","removeTextAccents","shadowStyledIos","sortBy","uniqBy","userFullnameInitialsExtractor"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA,cAAc,UAAO;AACrB;AACA,SAASA,MAAM,QAAQ,8BAAqB;AAC5C,SAASC,QAAQ,QAAQ,gCAAuB;AAChD,SAASC,QAAQ,QAAQ,gCAAuB;AAChD,SAASC,GAAG,QAAQ,2BAAkB;AACtC,SAASC,IAAI,QAAQ,4BAAmB;AACxC,SAASC,SAAS,QAAQ,iCAAwB;AAClD,SAASC,KAAK,QAAQ,6BAAoB;AAC1C,SAASC,MAAM,QAAQ,8BAAqB;AAC5C,SAASC,QAAQ,QAAQ,gCAAuB;AAChD,SAASC,OAAO,QAAQ,+BAAsB;AAC9C,SAASC,KAAK,QAAQ,6BAAoB;AAC1C,SAASC,MAAM,QAAQ,8BAAqB;AAC5C,SAASC,QAAQ,QAAQ,gCAAuB;AAChD,SAASC,MAAM,QAAQ,8BAAqB;AAC5C,SAASC,IAAI,QAAQ,4BAAmB;AACxC;AACA,SAASC,cAAc,QAAQ,2BAAkB;AACjD;AACA,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,6BAA0B;AAC9E,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,YAAY,QAAQ,yBAAsB;AACnD;AACA,SAASC,SAAS,QAAQ,sBAAmB;AAC7C,SAASC,iBAAiB,QAAQ,8BAA2B;AAC7D,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,8BAA8B,QAAQ,2CAAwC;AACvF,cAAc,2BAAwB;AACtC,SAASC,QAAQ,QAAQ,qBAAkB;AAC3C,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,MAAM,QAAQ,mBAAgB;AACvC,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,OAAO,QAAQ,oBAAiB;AACzC,SAASC,QAAQ,QAAQ,qBAAkB;AAC3C,SAASC,KAAK,QAAQ,kBAAe;AACrC,SAASC,cAAc,QAAQ,2BAAwB;AACvD,SAASC,iBAAiB,QAAQ,8BAA2B;AAC7D,SAASC,eAAe,QAAQ,4BAAyB;AACzD,SAASC,MAAM,QAAQ,mBAAgB;AACvC,SAASC,MAAM,QAAQ,mBAAgB;AACvC,SAASC,6BAA6B,QAAQ,0CAAuC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import * as tanstackForm from '@tanstack/react-form';
4
+ export { tanstackForm };
5
+ //# sourceMappingURL=tanstack-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["tanstackForm"],"sourceRoot":"../../../src","sources":["libs/tanstack-form.tsx"],"mappings":";;AAAA,OAAO,KAAKA,YAAY,MAAM,sBAAsB;AAEpD,SAASA,YAAY","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ // Utility function to convert strings to camelCase
4
+ export function camelCase(input) {
5
+ return input.replace(/[-_\s]+(.)?/g, (_, c) => c ? c.toUpperCase() : '').replace(/^(.)/, (_, c) => c.toLowerCase());
6
+ }
7
+ //# sourceMappingURL=camelCase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["camelCase","input","replace","_","c","toUpperCase","toLowerCase"],"sourceRoot":"../../../src","sources":["utils/camelCase.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,SAASA,CAACC,KAAa,EAAU;EAC/C,OAAOA,KAAK,CACTC,OAAO,CAAC,cAAc,EAAE,CAACC,CAAC,EAAEC,CAAC,KAAMA,CAAC,GAAGA,CAAC,CAACC,WAAW,CAAC,CAAC,GAAG,EAAG,CAAC,CAC7DH,OAAO,CAAC,MAAM,EAAE,CAACC,CAAC,EAAEC,CAAC,KAAKA,CAAC,CAACE,WAAW,CAAC,CAAC,CAAC;AAC/C","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import { camelCase } from "./camelCase.js";
4
+ import { isArray } from "./isArray.js";
5
+ import { isObject } from "./isObject.js";
6
+ const camelCaseJSONKeys = obj => {
7
+ // Handle primitive types (null, string, number, boolean)
8
+ if (obj === null || typeof obj !== 'object') {
9
+ return obj;
10
+ }
11
+
12
+ // Handle arrays
13
+ if (isArray(obj)) {
14
+ return obj.map(item => camelCaseJSONKeys(item));
15
+ }
16
+
17
+ // Handle objects
18
+ if (isObject(obj)) {
19
+ return Object.entries(obj).reduce((acc, [key, val]) => {
20
+ acc[camelCase(key)] = camelCaseJSONKeys(val);
21
+ return acc;
22
+ }, {});
23
+ }
24
+
25
+ // Fallback for other object types (Date, etc.)
26
+ return obj;
27
+ };
28
+ export { camelCaseJSONKeys };
29
+ //# sourceMappingURL=camelCaseJSONKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["camelCase","isArray","isObject","camelCaseJSONKeys","obj","map","item","Object","entries","reduce","acc","key","val"],"sourceRoot":"../../../src","sources":["utils/camelCaseJSONKeys.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,gBAAa;AACvC,SAASC,OAAO,QAAQ,cAAW;AACnC,SAASC,QAAQ,QAAQ,eAAY;AAErC,MAAMC,iBAAiB,GAAOC,GAAM,IAAc;EAChD;EACA,IAAIA,GAAG,KAAK,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;IAC3C,OAAOA,GAAG;EACZ;;EAEA;EACA,IAAIH,OAAO,CAACG,GAAG,CAAC,EAAE;IAChB,OAAOA,GAAG,CAACC,GAAG,CAAEC,IAAI,IAAKH,iBAAiB,CAACG,IAAI,CAAC,CAAC;EACnD;;EAEA;EACA,IAAIJ,QAAQ,CAACE,GAAG,CAAC,EAAE;IACjB,OAAOG,MAAM,CAACC,OAAO,CAACJ,GAAG,CAAC,CAACK,MAAM,CAC/B,CAACC,GAAG,EAAE,CAACC,GAAG,EAAEC,GAAG,CAAC,KAAK;MACnBF,GAAG,CAACV,SAAS,CAACW,GAAG,CAAC,CAAC,GAAGR,iBAAiB,CAACS,GAAG,CAAC;MAC5C,OAAOF,GAAG;IACZ,CAAC,EACD,CAAC,CACH,CAAC;EACH;;EAEA;EACA,OAAON,GAAG;AACZ,CAAC;AAED,SAASD,iBAAiB","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ const capitalizeWord = str => str.toLowerCase().replace(/(^|\s)\S/g, l => l.toUpperCase());
4
+ export { capitalizeWord };
5
+ //# sourceMappingURL=capitalizeWord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["capitalizeWord","str","toLowerCase","replace","l","toUpperCase"],"sourceRoot":"../../../src","sources":["utils/capitalizeWord.ts"],"mappings":";;AAAA,MAAMA,cAAc,GAAIC,GAAW,IACjCA,GAAG,CAACC,WAAW,CAAC,CAAC,CAACC,OAAO,CAAC,WAAW,EAAGC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAAC,CAAC,CAAC;AAEhE,SAASL,cAAc","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ const createLinkingPhoneNumberString = phoneNumber => {
4
+ if (phoneNumber.startsWith('0800') || phoneNumber.startsWith('+55') || phoneNumber.length === 3) {
5
+ return `tel://${phoneNumber}`;
6
+ }
7
+ return `tel://+55${phoneNumber}`;
8
+ };
9
+ export { createLinkingPhoneNumberString };
10
+ //# sourceMappingURL=createLinkingPhoneNumberString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createLinkingPhoneNumberString","phoneNumber","startsWith","length"],"sourceRoot":"../../../src","sources":["utils/createLinkingPhoneNumberString.ts"],"mappings":";;AAAA,MAAMA,8BAA8B,GAAIC,WAAmB,IAAK;EAC9D,IACEA,WAAW,CAACC,UAAU,CAAC,MAAM,CAAC,IAC9BD,WAAW,CAACC,UAAU,CAAC,KAAK,CAAC,IAC7BD,WAAW,CAACE,MAAM,KAAK,CAAC,EACxB;IACA,OAAO,SAASF,WAAW,EAAE;EAC/B;EAEA,OAAO,YAAYA,WAAW,EAAE;AAClC,CAAC;AAED,SAASD,8BAA8B","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ import { format as fDate, formatRelative as fRelative, parse, parseISO } from 'date-fns';
4
+ import { ptBR } from 'date-fns/locale';
5
+ export const parseDateWithoutSlashs = (date, format = 'ddMMyyyy') => {
6
+ const parsedDate = parse(date, format, new Date());
7
+ return parsedDate;
8
+ };
9
+ export const parseDate = (date, format = 'dd/MM/yyyy') => {
10
+ const parsedDate = parse(date, format, new Date());
11
+ return parsedDate;
12
+ };
13
+ export const format = (date, dateFormat) => {
14
+ try {
15
+ return fDate(parseISO(date), dateFormat || 'dd/MM/yyyy', {
16
+ locale: ptBR
17
+ });
18
+ } catch {
19
+ return new Date().toLocaleDateString();
20
+ }
21
+ };
22
+ export const formatWithoutParse = (date, dateFormat) => fDate(date, dateFormat || 'dd/MM/yyyy', {
23
+ locale: ptBR
24
+ });
25
+ export const formatRelative = date => {
26
+ const parsedDate = fRelative(parseISO(date), new Date(), {
27
+ locale: ptBR
28
+ });
29
+ return parsedDate;
30
+ };
31
+ export const formatDateTime = date => fDate(date, 'dd/MM/yyyy HH:mm', {
32
+ locale: ptBR
33
+ });
34
+ //# sourceMappingURL=dateFormatters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["format","fDate","formatRelative","fRelative","parse","parseISO","ptBR","parseDateWithoutSlashs","date","parsedDate","Date","parseDate","dateFormat","locale","toLocaleDateString","formatWithoutParse","formatDateTime"],"sourceRoot":"../../../src","sources":["utils/dateFormatters.ts"],"mappings":";;AAAA,SACEA,MAAM,IAAIC,KAAK,EACfC,cAAc,IAAIC,SAAS,EAC3BC,KAAK,EACLC,QAAQ,QACH,UAAU;AACjB,SAASC,IAAI,QAAQ,iBAAiB;AAEtC,OAAO,MAAMC,sBAAsB,GAAGA,CACpCC,IAAY,EACZR,MAAM,GAAG,UAAU,KACV;EACT,MAAMS,UAAU,GAAGL,KAAK,CAACI,IAAI,EAAER,MAAM,EAAE,IAAIU,IAAI,CAAC,CAAC,CAAC;EAClD,OAAOD,UAAU;AACnB,CAAC;AAED,OAAO,MAAME,SAAS,GAAGA,CAACH,IAAY,EAAER,MAAM,GAAG,YAAY,KAAW;EACtE,MAAMS,UAAU,GAAGL,KAAK,CAACI,IAAI,EAAER,MAAM,EAAE,IAAIU,IAAI,CAAC,CAAC,CAAC;EAClD,OAAOD,UAAU;AACnB,CAAC;AAED,OAAO,MAAMT,MAAM,GAAGA,CAACQ,IAAY,EAAEI,UAAmB,KAAa;EACnE,IAAI;IACF,OAAOX,KAAK,CAACI,QAAQ,CAACG,IAAI,CAAC,EAAEI,UAAU,IAAI,YAAY,EAAE;MACvDC,MAAM,EAAEP;IACV,CAAC,CAAC;EACJ,CAAC,CAAC,MAAM;IACN,OAAO,IAAII,IAAI,CAAC,CAAC,CAACI,kBAAkB,CAAC,CAAC;EACxC;AACF,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAGA,CAACP,IAAU,EAAEI,UAAmB,KAChEX,KAAK,CAACO,IAAI,EAAEI,UAAU,IAAI,YAAY,EAAE;EACtCC,MAAM,EAAEP;AACV,CAAC,CAAC;AAEJ,OAAO,MAAMJ,cAAc,GAAIM,IAAY,IAAa;EACtD,MAAMC,UAAU,GAAGN,SAAS,CAACE,QAAQ,CAACG,IAAI,CAAC,EAAE,IAAIE,IAAI,CAAC,CAAC,EAAE;IACvDG,MAAM,EAAEP;EACV,CAAC,CAAC;EAEF,OAAOG,UAAU;AACnB,CAAC;AAED,OAAO,MAAMO,cAAc,GAAIR,IAAU,IACvCP,KAAK,CAACO,IAAI,EAAE,kBAAkB,EAAE;EAC9BK,MAAM,EAAEP;AACV,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ // Utility debounce function using ES features
4
+ export function debounce(fn, wait = 0) {
5
+ let timeoutId;
6
+ const debounced = (...args) => {
7
+ clearTimeout(timeoutId);
8
+ timeoutId = setTimeout(() => fn(...args), wait);
9
+ };
10
+ return debounced;
11
+ }
12
+ //# sourceMappingURL=debounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["debounce","fn","wait","timeoutId","debounced","args","clearTimeout","setTimeout"],"sourceRoot":"../../../src","sources":["utils/debounce.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,QAAQA,CACtBC,EAAK,EACLC,IAAI,GAAG,CAAC,EACL;EACH,IAAIC,SAAwC;EAE5C,MAAMC,SAAS,GAAGA,CAAC,GAAGC,IAAmB,KAAK;IAC5CC,YAAY,CAACH,SAAS,CAAC;IAEvBA,SAAS,GAAGI,UAAU,CAAC,MAAMN,EAAE,CAAC,GAAGI,IAAI,CAAC,EAAEH,IAAI,CAAC;EACjD,CAAC;EAED,OAAOE,SAAS;AAClB","ignoreList":[]}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ export const parseDeepLink = url => {
4
+ if (!url) return null;
5
+
6
+ // Remove scheme and leading slashes
7
+ const withoutScheme = url.replace(/^[^:]+:\/\//, '').replace(/^\/+/, '');
8
+ const parts = withoutScheme.split('/').filter(Boolean);
9
+
10
+ // Helper to safely pull a value and strip query string
11
+ const part = index => parts[index] ? decodeURIComponent(String(parts[index]).split('?')[0] ?? '') : undefined;
12
+
13
+ // news links: myriviera://news/:newsType?/:newsId or myriviera://news/:newsId
14
+ if (parts[0] === 'news') {
15
+ if (parts.length === 2) {
16
+ return {
17
+ screen: 'NewsDetail',
18
+ params: {
19
+ newsId: part(1)
20
+ }
21
+ };
22
+ }
23
+ if (parts.length >= 3) {
24
+ const newsType = part(1);
25
+ const newsId = part(2);
26
+ return {
27
+ screen: 'NewsDetail',
28
+ params: {
29
+ newsType,
30
+ newsId
31
+ }
32
+ };
33
+ }
34
+ }
35
+
36
+ // Loyalty detail: myriviera://loyalty/:storeId/:id
37
+ if (parts[0] === 'loyalty' && parts.length >= 3) {
38
+ return {
39
+ screen: 'LoyaltyDetail',
40
+ params: {
41
+ storeId: part(1),
42
+ id: part(2)
43
+ }
44
+ };
45
+ }
46
+
47
+ // Coupon detail: myriviera://coupon/:storeId/:id
48
+ if (parts[0] === 'coupon' && parts.length >= 3) {
49
+ return {
50
+ screen: 'CouponDetail',
51
+ params: {
52
+ storeId: part(1),
53
+ id: part(2)
54
+ }
55
+ };
56
+ }
57
+
58
+ // Newsletter list
59
+ if (parts[0] === 'newsletter') {
60
+ return {
61
+ screen: 'NewsLetterList'
62
+ };
63
+ }
64
+
65
+ // Establishment list by group: myriviera://groupList/:groupId
66
+ if (parts[0] === 'groupList' && parts.length >= 2) {
67
+ return {
68
+ screen: 'EstablishmentList',
69
+ params: {
70
+ groupId: part(1)
71
+ }
72
+ };
73
+ }
74
+
75
+ // Establishment detail: myriviera://group/:id
76
+ if (parts[0] === 'group' && parts.length >= 2) {
77
+ return {
78
+ screen: 'EstablishmentDetail',
79
+ params: {
80
+ id: part(1)
81
+ }
82
+ };
83
+ }
84
+
85
+ // Sports / golf / easter notices
86
+ if (parts[0] === 'sport_event') {
87
+ return {
88
+ screen: 'SportsEventNotice'
89
+ };
90
+ }
91
+ if (parts[0] === 'golf_event') {
92
+ return {
93
+ screen: 'GolfEventNotice'
94
+ };
95
+ }
96
+ if (parts[0] === 'easter_registration') {
97
+ return {
98
+ screen: 'EasterRegistrationNotice'
99
+ };
100
+ }
101
+
102
+ // Tab navigator deep links (e.g. myriviera://tabnavigator/benefits)
103
+ if (parts[0] === 'tabnavigator') {
104
+ // sub-screen mapping (only benefits currently configured)
105
+ if (parts[1] === 'benefits') {
106
+ return {
107
+ screen: 'TabNavigator',
108
+ params: {
109
+ screen: 'Benefits'
110
+ }
111
+ };
112
+ }
113
+ }
114
+ return null;
115
+ };
116
+ export const deepLinkParser = parseDeepLink;
117
+ //# sourceMappingURL=deepLinkParser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["parseDeepLink","url","withoutScheme","replace","parts","split","filter","Boolean","part","index","decodeURIComponent","String","undefined","length","screen","params","newsId","newsType","storeId","id","groupId","deepLinkParser"],"sourceRoot":"../../../src","sources":["utils/deepLinkParser.ts"],"mappings":";;AAMA,OAAO,MAAMA,aAAa,GAAIC,GAAY,IAAqB;EAC7D,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;;EAErB;EACA,MAAMC,aAAa,GAAGD,GAAG,CAACE,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAACA,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;EACxE,MAAMC,KAAK,GAAGF,aAAa,CAACG,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;;EAEtD;EACA,MAAMC,IAAI,GAAIC,KAAa,IACzBL,KAAK,CAACK,KAAK,CAAC,GACRC,kBAAkB,CAACC,MAAM,CAACP,KAAK,CAACK,KAAK,CAAC,CAAC,CAACJ,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAC5DO,SAAS;;EAEf;EACA,IAAIR,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE;IACvB,IAAIA,KAAK,CAACS,MAAM,KAAK,CAAC,EAAE;MACtB,OAAO;QAAEC,MAAM,EAAE,YAAY;QAAEC,MAAM,EAAE;UAAEC,MAAM,EAAER,IAAI,CAAC,CAAC;QAAE;MAAE,CAAC;IAC9D;IAEA,IAAIJ,KAAK,CAACS,MAAM,IAAI,CAAC,EAAE;MACrB,MAAMI,QAAQ,GAAGT,IAAI,CAAC,CAAC,CAAC;MACxB,MAAMQ,MAAM,GAAGR,IAAI,CAAC,CAAC,CAAC;MACtB,OAAO;QAAEM,MAAM,EAAE,YAAY;QAAEC,MAAM,EAAE;UAAEE,QAAQ;UAAED;QAAO;MAAE,CAAC;IAC/D;EACF;;EAEA;EACA,IAAIZ,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,IAAIA,KAAK,CAACS,MAAM,IAAI,CAAC,EAAE;IAC/C,OAAO;MACLC,MAAM,EAAE,eAAe;MACvBC,MAAM,EAAE;QAAEG,OAAO,EAAEV,IAAI,CAAC,CAAC,CAAC;QAAEW,EAAE,EAAEX,IAAI,CAAC,CAAC;MAAE;IAC1C,CAAC;EACH;;EAEA;EACA,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAIA,KAAK,CAACS,MAAM,IAAI,CAAC,EAAE;IAC9C,OAAO;MACLC,MAAM,EAAE,cAAc;MACtBC,MAAM,EAAE;QAAEG,OAAO,EAAEV,IAAI,CAAC,CAAC,CAAC;QAAEW,EAAE,EAAEX,IAAI,CAAC,CAAC;MAAE;IAC1C,CAAC;EACH;;EAEA;EACA,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAK,YAAY,EAAE;IAC7B,OAAO;MAAEU,MAAM,EAAE;IAAiB,CAAC;EACrC;;EAEA;EACA,IAAIV,KAAK,CAAC,CAAC,CAAC,KAAK,WAAW,IAAIA,KAAK,CAACS,MAAM,IAAI,CAAC,EAAE;IACjD,OAAO;MAAEC,MAAM,EAAE,mBAAmB;MAAEC,MAAM,EAAE;QAAEK,OAAO,EAAEZ,IAAI,CAAC,CAAC;MAAE;IAAE,CAAC;EACtE;;EAEA;EACA,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAK,OAAO,IAAIA,KAAK,CAACS,MAAM,IAAI,CAAC,EAAE;IAC7C,OAAO;MAAEC,MAAM,EAAE,qBAAqB;MAAEC,MAAM,EAAE;QAAEI,EAAE,EAAEX,IAAI,CAAC,CAAC;MAAE;IAAE,CAAC;EACnE;;EAEA;EACA,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAK,aAAa,EAAE;IAC9B,OAAO;MAAEU,MAAM,EAAE;IAAoB,CAAC;EACxC;EAEA,IAAIV,KAAK,CAAC,CAAC,CAAC,KAAK,YAAY,EAAE;IAC7B,OAAO;MAAEU,MAAM,EAAE;IAAkB,CAAC;EACtC;EAEA,IAAIV,KAAK,CAAC,CAAC,CAAC,KAAK,qBAAqB,EAAE;IACtC,OAAO;MAAEU,MAAM,EAAE;IAA2B,CAAC;EAC/C;;EAEA;EACA,IAAIV,KAAK,CAAC,CAAC,CAAC,KAAK,cAAc,EAAE;IAC/B;IACA,IAAIA,KAAK,CAAC,CAAC,CAAC,KAAK,UAAU,EAAE;MAC3B,OAAO;QAAEU,MAAM,EAAE,cAAc;QAAEC,MAAM,EAAE;UAAED,MAAM,EAAE;QAAW;MAAE,CAAC;IACnE;EACF;EAEA,OAAO,IAAI;AACb,CAAC;AAED,OAAO,MAAMO,cAAc,GAAGrB,aAAa","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ import { differenceInYears, parse } from 'date-fns';
4
+
5
+ /* birthDate-> 10/01/2000 */
6
+ export const getAge = birthDate => {
7
+ if (!birthDate) {
8
+ return 0;
9
+ }
10
+ const parsedDate = parse(birthDate, 'dd/MM/yyyy', new Date());
11
+ return differenceInYears(new Date(), parsedDate);
12
+ };
13
+ //# sourceMappingURL=getAge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["differenceInYears","parse","getAge","birthDate","parsedDate","Date"],"sourceRoot":"../../../src","sources":["utils/getAge.ts"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,KAAK,QAAQ,UAAU;;AAEnD;AACA,OAAO,MAAMC,MAAM,GAAIC,SAAkB,IAAK;EAC5C,IAAI,CAACA,SAAS,EAAE;IACd,OAAO,CAAC;EACV;EAEA,MAAMC,UAAU,GAAGH,KAAK,CAACE,SAAS,EAAE,YAAY,EAAE,IAAIE,IAAI,CAAC,CAAC,CAAC;EAE7D,OAAOL,iBAAiB,CAAC,IAAIK,IAAI,CAAC,CAAC,EAAED,UAAU,CAAC;AAClD,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export const getOnlyNumbers = value => value.replace(/\D/g, '');
4
+ //# sourceMappingURL=getOnlyNumbers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getOnlyNumbers","value","replace"],"sourceRoot":"../../../src","sources":["utils/getOnlyNumbers.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAIC,KAAa,IAAKA,KAAK,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ // Utility function to check for arrays
4
+ export function isArray(value) {
5
+ return Array.isArray(value);
6
+ }
7
+ //# sourceMappingURL=isArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isArray","value","Array"],"sourceRoot":"../../../src","sources":["utils/isArray.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,OAAOA,CAACC,KAAc,EAAsB;EAC1D,OAAOC,KAAK,CAACF,OAAO,CAACC,KAAK,CAAC;AAC7B","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ // Utility function to check for plain objects (excluding arrays)
4
+ export function isObject(value) {
5
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
6
+ }
7
+ //# sourceMappingURL=isObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isObject","value","Array","isArray"],"sourceRoot":"../../../src","sources":["utils/isObject.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,QAAQA,CAACC,KAAc,EAAoC;EACzE,OAAOA,KAAK,KAAK,IAAI,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC;AAC7E","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import { Masks } from 'react-native-mask-input';
4
+ export { Masks };
5
+ //# sourceMappingURL=masks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Masks"],"sourceRoot":"../../../src","sources":["utils/masks.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,yBAAyB;AAE/C,SAASA,KAAK","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export const priceFormatter = (price, fractionDigits) => new Intl.NumberFormat('pt-BR', {
4
+ style: 'currency',
5
+ currency: 'BRL',
6
+ minimumFractionDigits: Number.isInteger(fractionDigits) ? fractionDigits : 2,
7
+ maximumFractionDigits: Number.isInteger(fractionDigits) ? fractionDigits : 2
8
+ }).format(price);
9
+ //# sourceMappingURL=priceFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["priceFormatter","price","fractionDigits","Intl","NumberFormat","style","currency","minimumFractionDigits","Number","isInteger","maximumFractionDigits","format"],"sourceRoot":"../../../src","sources":["utils/priceFormatter.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAGA,CAACC,KAAa,EAAEC,cAAuB,KACnE,IAAIC,IAAI,CAACC,YAAY,CAAC,OAAO,EAAE;EAC7BC,KAAK,EAAE,UAAU;EACjBC,QAAQ,EAAE,KAAK;EACfC,qBAAqB,EAAEC,MAAM,CAACC,SAAS,CAACP,cAAc,CAAC,GACnDA,cAAc,GACd,CAAC;EACLQ,qBAAqB,EAAEF,MAAM,CAACC,SAAS,CAACP,cAAc,CAAC,GACnDA,cAAc,GACd;AACN,CAAC,CAAC,CAACS,MAAM,CAACV,KAAK,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ const removeTextAccents = (text = '') => text.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
4
+ export { removeTextAccents };
5
+ //# sourceMappingURL=removeTextAccents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["removeTextAccents","text","normalize","replace"],"sourceRoot":"../../../src","sources":["utils/removeTextAccents.ts"],"mappings":";;AAAA,MAAMA,iBAAiB,GAAGA,CAACC,IAAY,GAAG,EAAE,KAC1CA,IAAI,CAACC,SAAS,CAAC,KAAK,CAAC,CAACC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;AAEvD,SAASH,iBAAiB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ const shadowStyledIos = `
4
+ box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.28);
5
+ elevation: 4;
6
+ `;
7
+ export { shadowStyledIos };
8
+ //# sourceMappingURL=shadowStyledIos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shadowStyledIos"],"sourceRoot":"../../../src","sources":["utils/shadowStyledIos.ts"],"mappings":";;AAAA,MAAMA,eAAe,GAAG;AACxB;AACA;AACA,CAAC;AAED,SAASA,eAAe","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ // Utility function to sort array by given keys (properties)
4
+ export function sortBy(array, keys) {
5
+ return [...array].sort((a, b) => keys.reduce((cmp, key) => {
6
+ if (cmp !== 0) return cmp;
7
+ const ai = a[key];
8
+ const bi = b[key];
9
+ if (typeof ai === 'string' && typeof bi === 'string') {
10
+ return ai.localeCompare(bi);
11
+ }
12
+ if (typeof ai === 'number' && typeof bi === 'number') {
13
+ return ai - bi;
14
+ }
15
+ return 0;
16
+ }, 0));
17
+ }
18
+ //# sourceMappingURL=sortBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["sortBy","array","keys","sort","a","b","reduce","cmp","key","ai","bi","localeCompare"],"sourceRoot":"../../../src","sources":["utils/sortBy.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,MAAMA,CAAIC,KAAU,EAAEC,IAAiB,EAAO;EAC5D,OAAO,CAAC,GAAGD,KAAK,CAAC,CAACE,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAC1BH,IAAI,CAACI,MAAM,CAAC,CAACC,GAAG,EAAEC,GAAG,KAAK;IACxB,IAAID,GAAG,KAAK,CAAC,EAAE,OAAOA,GAAG;IAEzB,MAAME,EAAE,GAAGL,CAAC,CAACI,GAAG,CAAC;IACjB,MAAME,EAAE,GAAGL,CAAC,CAACG,GAAG,CAAC;IAEjB,IAAI,OAAOC,EAAE,KAAK,QAAQ,IAAI,OAAOC,EAAE,KAAK,QAAQ,EAAE;MACpD,OAAOD,EAAE,CAACE,aAAa,CAACD,EAAE,CAAC;IAC7B;IAEA,IAAI,OAAOD,EAAE,KAAK,QAAQ,IAAI,OAAOC,EAAE,KAAK,QAAQ,EAAE;MACpD,OAAOD,EAAE,GAAGC,EAAE;IAChB;IAEA,OAAO,CAAC;EACV,CAAC,EAAE,CAAC,CACN,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ // Utility function unique by iteratee using Set
4
+ export function uniqBy(array, iteratee) {
5
+ const seen = new Set();
6
+ return array.filter(item => {
7
+ const key = typeof iteratee === 'function' ? iteratee(item) : item[iteratee];
8
+ if (seen.has(key)) {
9
+ return false;
10
+ }
11
+ seen.add(key);
12
+ return true;
13
+ });
14
+ }
15
+ //# sourceMappingURL=uniqBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["uniqBy","array","iteratee","seen","Set","filter","item","key","has","add"],"sourceRoot":"../../../src","sources":["utils/uniqBy.ts"],"mappings":";;AAAA;AACA,OAAO,SAASA,MAAMA,CACpBC,KAAU,EACVC,QAA0C,EACrC;EACL,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAAU,CAAC;EAE/B,OAAOH,KAAK,CAACI,MAAM,CAAEC,IAAI,IAAK;IAC5B,MAAMC,GAAG,GACP,OAAOL,QAAQ,KAAK,UAAU,GAAGA,QAAQ,CAACI,IAAI,CAAC,GAAGA,IAAI,CAACJ,QAAQ,CAAC;IAElE,IAAIC,IAAI,CAACK,GAAG,CAACD,GAAG,CAAC,EAAE;MACjB,OAAO,KAAK;IACd;IAEAJ,IAAI,CAACM,GAAG,CAACF,GAAG,CAAC;IAEb,OAAO,IAAI;EACb,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ /** biome-ignore-all lint/style/noNonNullAssertion: . */
4
+ export const userFullnameInitialsExtractor = fullname => {
5
+ if (!fullname) {
6
+ return 'VI';
7
+ }
8
+ try {
9
+ const names = fullname.split(' ');
10
+ if (names.length === 1) {
11
+ return fullname.substring(0, 2).toUpperCase();
12
+ }
13
+ const initials = names[0].charAt(0).toUpperCase() + names[names.length - 1].charAt(0).toUpperCase();
14
+ return initials;
15
+ } catch {
16
+ return fullname.substring(0, 2).toUpperCase();
17
+ }
18
+ };
19
+ //# sourceMappingURL=userFullnameInitialsExtractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["userFullnameInitialsExtractor","fullname","names","split","length","substring","toUpperCase","initials","charAt"],"sourceRoot":"../../../src","sources":["utils/userFullnameInitialsExtractor.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,6BAA6B,GACxCC,QAA4B,IACjB;EACX,IAAI,CAACA,QAAQ,EAAE;IACb,OAAO,IAAI;EACb;EAEA,IAAI;IACF,MAAMC,KAAK,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IAEjC,IAAID,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE;MACtB,OAAOH,QAAQ,CAACI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IAC/C;IAEA,MAAMC,QAAQ,GACZL,KAAK,CAAC,CAAC,CAAC,CAAEM,MAAM,CAAC,CAAC,CAAC,CAACF,WAAW,CAAC,CAAC,GACjCJ,KAAK,CAACA,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC,CAAEI,MAAM,CAAC,CAAC,CAAC,CAACF,WAAW,CAAC,CAAC;IAClD,OAAOC,QAAQ;EACjB,CAAC,CAAC,MAAM;IACN,OAAON,QAAQ,CAACI,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAC/C;AACF,CAAC","ignoreList":[]}