@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 React from 'react';
4
+ import { FlatList } from 'react-native';
5
+ import { useCarouselContext } from "../context.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ const CarouselList = ({
8
+ contentContainerStyle,
9
+ snapEnabled = true,
10
+ ...props
11
+ }) => {
12
+ const {
13
+ data,
14
+ gapBetweenItems,
15
+ pageWidth,
16
+ onMomentumScrollEnd,
17
+ listRef,
18
+ renderItem,
19
+ handleScrollBeginDrag,
20
+ calculateSnapOffset,
21
+ centerItems
22
+ } = useCarouselContext();
23
+
24
+ /**
25
+ * Calculate snap offsets to center items (except first and last).
26
+ * Only used when centerItems is true.
27
+ */
28
+ const snapToOffsets = React.useMemo(() => {
29
+ if (data.length === 0 || !snapEnabled || !centerItems) return undefined;
30
+ return data.map((_, index) => calculateSnapOffset(index));
31
+ }, [data, snapEnabled, calculateSnapOffset, centerItems]);
32
+ return /*#__PURE__*/_jsx(FlatList, {
33
+ ref: listRef,
34
+ data: data,
35
+ renderItem: renderItem,
36
+ keyExtractor: (_, index) => `carousel-item-${index}`,
37
+ horizontal: true,
38
+ showsHorizontalScrollIndicator: false,
39
+ contentContainerStyle: [{
40
+ paddingHorizontal: 20,
41
+ columnGap: gapBetweenItems
42
+ }, contentContainerStyle],
43
+ snapToOffsets: centerItems ? snapToOffsets : undefined,
44
+ snapToInterval: !centerItems && snapEnabled ? pageWidth : undefined,
45
+ snapToAlignment: "start",
46
+ decelerationRate: snapEnabled ? 'fast' : 'normal',
47
+ bounces: false,
48
+ scrollEventThrottle: 16,
49
+ onMomentumScrollEnd: onMomentumScrollEnd,
50
+ onScrollBeginDrag: handleScrollBeginDrag,
51
+ ...props
52
+ });
53
+ };
54
+ export { CarouselList };
55
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","FlatList","useCarouselContext","jsx","_jsx","CarouselList","contentContainerStyle","snapEnabled","props","data","gapBetweenItems","pageWidth","onMomentumScrollEnd","listRef","renderItem","handleScrollBeginDrag","calculateSnapOffset","centerItems","snapToOffsets","useMemo","length","undefined","map","_","index","ref","keyExtractor","horizontal","showsHorizontalScrollIndicator","paddingHorizontal","columnGap","snapToInterval","snapToAlignment","decelerationRate","bounces","scrollEventThrottle","onScrollBeginDrag"],"sourceRoot":"../../../../../src","sources":["components/Carousel/components/list.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,QAAQ,QAIH,cAAc;AAErB,SAASC,kBAAkB,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAiBhD,MAAMC,YAAY,GAAGA,CAAK;EACxBC,qBAAqB;EACrBC,WAAW,GAAG,IAAI;EAClB,GAAGC;AACiB,CAAC,KAAK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AC;AAED,SAASH,YAAY","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import { Flex } from "../../Flex/index.js";
4
+ import { useCarouselContext } from "../context.js";
5
+ import { Dot } from "./dot.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const CarouselPagination = () => {
8
+ const {
9
+ data,
10
+ activeIndex,
11
+ goTo
12
+ } = useCarouselContext();
13
+ return /*#__PURE__*/_jsx(Flex, {
14
+ flexDirection: "row",
15
+ gap: 8,
16
+ alignItems: "center",
17
+ flexWrap: "wrap",
18
+ children: Array.from({
19
+ length: data.length
20
+ }).map((_, i) =>
21
+ /*#__PURE__*/
22
+ // biome-ignore lint/suspicious/noArrayIndexKey: No need to use another key instead of index here
23
+ _jsx(Dot, {
24
+ isActive: activeIndex === i,
25
+ onPress: () => goTo(i)
26
+ }, i))
27
+ });
28
+ };
29
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Flex","useCarouselContext","Dot","jsx","_jsx","CarouselPagination","data","activeIndex","goTo","flexDirection","gap","alignItems","flexWrap","children","Array","from","length","map","_","i","isActive","onPress"],"sourceRoot":"../../../../../src","sources":["components/Carousel/components/pagination.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,qBAAY;AACjC,SAASC,kBAAkB,QAAQ,eAAY;AAC/C,SAASC,GAAG,QAAQ,UAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5B,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAK,CAAC,GAAGP,kBAAkB,CAAC,CAAC;EAExD,oBACEG,IAAA,CAACJ,IAAI;IAACS,aAAa,EAAC,KAAK;IAACC,GAAG,EAAE,CAAE;IAACC,UAAU,EAAC,QAAQ;IAACC,QAAQ,EAAC,MAAM;IAAAC,QAAA,EAClEC,KAAK,CAACC,IAAI,CAAC;MAAEC,MAAM,EAAEV,IAAI,CAACU;IAAO,CAAC,CAAC,CAACC,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC;IAAA;IAC5C;IACAf,IAAA,CAACF,GAAG;MAASkB,QAAQ,EAAEb,WAAW,KAAKY,CAAE;MAACE,OAAO,EAAEA,CAAA,KAAMb,IAAI,CAACW,CAAC;IAAE,GAAvDA,CAAyD,CACpE;EAAC,CACE,CAAC;AAEX,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import { ChevronRightIcon } from 'lucide-react-native';
4
+ import { Text } from "../../Text/index.js";
5
+ import { SeeAllButton } from "../styles.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const CarouselSeeAllButton = ({
8
+ color,
9
+ ...props
10
+ }) => {
11
+ return /*#__PURE__*/_jsxs(SeeAllButton, {
12
+ ...props,
13
+ children: [/*#__PURE__*/_jsx(Text, {
14
+ weight: "bold",
15
+ color: color ?? '#014661',
16
+ children: "Ver todos"
17
+ }), /*#__PURE__*/_jsx(ChevronRightIcon, {
18
+ size: 12,
19
+ color: color ?? '#014661'
20
+ })]
21
+ });
22
+ };
23
+ export { CarouselSeeAllButton };
24
+ //# sourceMappingURL=see-all-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ChevronRightIcon","Text","SeeAllButton","jsx","_jsx","jsxs","_jsxs","CarouselSeeAllButton","color","props","children","weight","size"],"sourceRoot":"../../../../../src","sources":["components/Carousel/components/see-all-button.tsx"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,qBAAqB;AAEtD,SAASC,IAAI,QAAQ,qBAAY;AACjC,SAASC,YAAY,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMzC,MAAMC,oBAAoB,GAAGA,CAAC;EAC5BC,KAAK;EACL,GAAGC;AACsB,CAAC,KAAK;EAC/B,oBACEH,KAAA,CAACJ,YAAY;IAAA,GAAKO,KAAK;IAAAC,QAAA,gBACrBN,IAAA,CAACH,IAAI;MAACU,MAAM,EAAC,MAAM;MAACH,KAAK,EAAEA,KAAK,IAAI,SAAU;MAAAE,QAAA,EAAC;IAE/C,CAAM,CAAC,eAEPN,IAAA,CAACJ,gBAAgB;MAACY,IAAI,EAAE,EAAG;MAACJ,KAAK,EAAEA,KAAK,IAAI;IAAU,CAAE,CAAC;EAAA,CAC7C,CAAC;AAEnB,CAAC;AAED,SAASD,oBAAoB","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ import { createContext, useContext } from 'react';
4
+ export const CarouselContext =
5
+ /*#__PURE__*/
6
+ // biome-ignore lint/suspicious/noExplicitAny: No need to specify generic type here
7
+ createContext(null);
8
+ export const useCarouselContext = () => {
9
+ const context = useContext(CarouselContext);
10
+ if (!context) {
11
+ throw new Error('Carousel compound components must be used inside Carousel.');
12
+ }
13
+ return context;
14
+ };
15
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createContext","useContext","CarouselContext","useCarouselContext","context","Error"],"sourceRoot":"../../../../src","sources":["components/Carousel/context.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAIjD,OAAO,MAAMC,eAAe;AAAA;AAC1B;AACAF,aAAa,CAAmC,IAAI,CAAC;AAEvD,OAAO,MAAMG,kBAAkB,GAAGA,CAAA,KAAU;EAC1C,MAAMC,OAAO,GAAGH,UAAU,CAACC,eAAe,CAAC;EAE3C,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,4DACF,CAAC;EACH;EAEA,OAAOD,OAAO;AAChB,CAAC","ignoreList":[]}
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
4
+ import { Dimensions } from 'react-native';
5
+ import { CarouselFooter } from "./components/footer.js";
6
+ import { CarouselList } from "./components/list.js";
7
+ import { CarouselPagination } from "./components/pagination.js";
8
+ import { CarouselSeeAllButton } from "./components/see-all-button.js";
9
+ import { CarouselContext } from "./context.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ const CarouselRoot = ({
12
+ children,
13
+ data,
14
+ itemWidth = Dimensions.get('screen').width * 0.8,
15
+ gapBetweenItems = 10,
16
+ renderItem,
17
+ onSnapToItem,
18
+ defaultIndex,
19
+ autoPlay = false,
20
+ autoPlaySeconds = 3,
21
+ centerItems = false
22
+ }) => {
23
+ const pageWidth = useMemo(() => itemWidth + gapBetweenItems, [gapBetweenItems, itemWidth]);
24
+ const listRef = useRef(null);
25
+ const activeIndexRef = useRef(defaultIndex ?? 0);
26
+ const autoPlayTimerRef = useRef(null);
27
+ const isUserInteracting = useRef(false);
28
+ const [activeIndex, setActiveIndex] = useState(() => defaultIndex ?? 0);
29
+
30
+ /**
31
+ * Calculate the scroll offset for a given index with proper centering.
32
+ * First and last items are not centered, middle items are centered.
33
+ */
34
+ const calculateSnapOffset = useCallback(index => {
35
+ const basePosition = index * pageWidth;
36
+
37
+ // If centerItems is disabled, use default behavior
38
+ if (!centerItems) {
39
+ return basePosition;
40
+ }
41
+ const screenWidth = Dimensions.get('window').width;
42
+ const centerOfScreen = screenWidth / 2;
43
+ const centerOfItem = itemWidth / 2;
44
+ const offsetToCenter = centerOfScreen - centerOfItem - 20;
45
+
46
+ // First item: keep default alignment (left edge with padding)
47
+ if (index === 0) {
48
+ return 0;
49
+ }
50
+
51
+ // Last item: keep default alignment
52
+ if (index === data.length - 1) {
53
+ return basePosition;
54
+ }
55
+
56
+ // Middle items: center them
57
+ return basePosition - offsetToCenter;
58
+ }, [itemWidth, pageWidth, data.length, centerItems]);
59
+ const goTo = useCallback(index => {
60
+ const targetIndex = Math.max(0, Math.min(index, data.length - 1));
61
+ if (activeIndexRef.current !== targetIndex) {
62
+ activeIndexRef.current = targetIndex;
63
+ setActiveIndex(targetIndex);
64
+ }
65
+ listRef.current?.scrollToOffset({
66
+ offset: calculateSnapOffset(targetIndex),
67
+ animated: true
68
+ });
69
+ }, [data.length, calculateSnapOffset]);
70
+ const startAutoPlay = useCallback(() => {
71
+ if (autoPlayTimerRef.current) {
72
+ clearInterval(autoPlayTimerRef.current);
73
+ }
74
+ autoPlayTimerRef.current = setInterval(() => {
75
+ if (!isUserInteracting.current) {
76
+ const nextIndex = (activeIndexRef.current + 1) % data.length;
77
+ goTo(nextIndex);
78
+ }
79
+ }, autoPlaySeconds * 1000);
80
+ }, [autoPlaySeconds, data.length, goTo]);
81
+ const onMomentumScrollEnd = useCallback(e => {
82
+ const {
83
+ x
84
+ } = e.nativeEvent.contentOffset;
85
+ const currentIndex = Math.round(x / pageWidth);
86
+
87
+ // Update active index if changed
88
+ if (activeIndexRef.current !== currentIndex) {
89
+ activeIndexRef.current = currentIndex;
90
+ setActiveIndex(currentIndex);
91
+ }
92
+ isUserInteracting.current = false;
93
+
94
+ // Restart autoPlay after user interaction ends
95
+ if (autoPlay && autoPlayTimerRef.current) {
96
+ startAutoPlay();
97
+ }
98
+ if (onSnapToItem) {
99
+ onSnapToItem(activeIndexRef.current);
100
+ }
101
+ }, [pageWidth, autoPlay, startAutoPlay, onSnapToItem]);
102
+ useEffect(() => {
103
+ if (!autoPlay) return;
104
+ startAutoPlay();
105
+ return () => {
106
+ if (autoPlayTimerRef.current) {
107
+ clearInterval(autoPlayTimerRef.current);
108
+ }
109
+ };
110
+ }, [autoPlay, startAutoPlay]);
111
+ const handleScrollBeginDrag = useCallback(() => {
112
+ isUserInteracting.current = true;
113
+ if (autoPlayTimerRef.current) {
114
+ clearInterval(autoPlayTimerRef.current);
115
+ }
116
+ }, []);
117
+ const value = useMemo(() => ({
118
+ data,
119
+ pageWidth,
120
+ gapBetweenItems,
121
+ activeIndex,
122
+ goTo,
123
+ onMomentumScrollEnd,
124
+ listRef,
125
+ renderItem,
126
+ itemWidth,
127
+ handleScrollBeginDrag,
128
+ calculateSnapOffset,
129
+ centerItems
130
+ }), [data, pageWidth, gapBetweenItems, activeIndex, goTo, onMomentumScrollEnd, renderItem, itemWidth, handleScrollBeginDrag, calculateSnapOffset, centerItems]);
131
+ return /*#__PURE__*/_jsx(CarouselContext.Provider, {
132
+ value: value,
133
+ children: children
134
+ });
135
+ };
136
+ export const Carousel = Object.assign(CarouselRoot, {
137
+ List: CarouselList,
138
+ Footer: CarouselFooter,
139
+ Pagination: CarouselPagination,
140
+ SeeAllButton: CarouselSeeAllButton
141
+ });
142
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useCallback","useEffect","useMemo","useRef","useState","Dimensions","CarouselFooter","CarouselList","CarouselPagination","CarouselSeeAllButton","CarouselContext","jsx","_jsx","CarouselRoot","children","data","itemWidth","get","width","gapBetweenItems","renderItem","onSnapToItem","defaultIndex","autoPlay","autoPlaySeconds","centerItems","pageWidth","listRef","activeIndexRef","autoPlayTimerRef","isUserInteracting","activeIndex","setActiveIndex","calculateSnapOffset","index","basePosition","screenWidth","centerOfScreen","centerOfItem","offsetToCenter","length","goTo","targetIndex","Math","max","min","current","scrollToOffset","offset","animated","startAutoPlay","clearInterval","setInterval","nextIndex","onMomentumScrollEnd","e","x","nativeEvent","contentOffset","currentIndex","round","handleScrollBeginDrag","value","Provider","Carousel","Object","assign","List","Footer","Pagination","SeeAllButton"],"sourceRoot":"../../../../src","sources":["components/Carousel/index.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAMzE,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,YAAY,QAAQ,sBAAmB;AAChD,SAASC,kBAAkB,QAAQ,4BAAyB;AAC5D,SAASC,oBAAoB,QAAQ,gCAA6B;AAClE,SAASC,eAAe,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG5C,MAAMC,YAAY,GAAGA,CAAK;EACxBC,QA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AAmB;IACnB3B,OAAO;IACPP,UAAU;IACVJ,SAAS;IACT6C,qBAAqB;IACrB5B,mBAAmB;IACnBR;EACF,CAAC,CAAC,EACF,CACEV,IAAI,EACJW,SAAS,EACTP,eAAe,EACfY,WAAW,EACXU,IAAI,EACJa,mBAAmB,EACnBlC,UAAU,EACVJ,SAAS,EACT6C,qBAAqB,EACrB5B,mBAAmB,EACnBR,WAAW,CAEf,CAAC;EAED,oBACEb,IAAA,CAACF,eAAe,CAACqD,QAAQ;IAACD,KAAK,EAAEA,KAAM;IAAAhD,QAAA,EACpCA;EAAQ,CACe,CAAC;AAE/B,CAAC;AAED,OAAO,MAAMkD,QAAQ,GAAGC,MAAM,CAACC,MAAM,CAACrD,YAAY,EAAE;EAClDsD,IAAI,EAAE5D,YAAY;EAClB6D,MAAM,EAAE9D,cAAc;EACtB+D,UAAU,EAAE7D,kBAAkB;EAC9B8D,YAAY,EAAE7D;AAChB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import styled from '@emotion/native';
4
+ export const SeeAllButton = styled.TouchableOpacity(() => ({
5
+ flexDirection: 'row',
6
+ gap: 5,
7
+ alignItems: 'center',
8
+ marginLeft: 'auto'
9
+ }));
10
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styled","SeeAllButton","TouchableOpacity","flexDirection","gap","alignItems","marginLeft"],"sourceRoot":"../../../../src","sources":["components/Carousel/styles.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,OAAO,MAAMC,YAAY,GAAGD,MAAM,CAACE,gBAAgB,CAAC,OAAO;EACzDC,aAAa,EAAE,KAAK;EACpBC,GAAG,EAAE,CAAC;EACNC,UAAU,EAAE,QAAQ;EACpBC,UAAU,EAAE;AACd,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Carousel/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ import RNCheckBox from 'expo-checkbox';
4
+ import { Text } from "../Text/index.js";
5
+ import { Container } from "./styles.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const Checkbox = ({
8
+ value,
9
+ onValueChange,
10
+ children,
11
+ containerProps,
12
+ disabled,
13
+ ...props
14
+ }) => {
15
+ return /*#__PURE__*/_jsxs(Container, {
16
+ onPress: () => onValueChange(!value),
17
+ ...containerProps,
18
+ children: [/*#__PURE__*/_jsx(RNCheckBox, {
19
+ value: value,
20
+ onValueChange: onValueChange,
21
+ disabled: disabled,
22
+ color: value ? 'rgb(0, 140, 255)' : undefined,
23
+ ...props
24
+ }), /*#__PURE__*/_jsx(Text, {
25
+ color: disabled ? '#888888' : '#000000',
26
+ style: {
27
+ flexShrink: 1
28
+ },
29
+ children: children
30
+ })]
31
+ });
32
+ };
33
+ export { Checkbox };
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["RNCheckBox","Text","Container","jsx","_jsx","jsxs","_jsxs","Checkbox","value","onValueChange","children","containerProps","disabled","props","onPress","color","undefined","style","flexShrink"],"sourceRoot":"../../../../src","sources":["components/Checkbox/index.tsx"],"mappings":";;AACA,OAAOA,UAAU,MAAM,eAAe;AAEtC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,SAAS,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQrC,MAAMC,QAAQ,GAAGA,CAAC;EAChBC,KAAK;EACLC,aAAa;EACbC,QAAQ;EACRC,cAAc;EACdC,QAAQ;EACR,GAAGC;AACE,CAAC,KAAK;EACX,oBACEP,KAAA,CAACJ,SAAS;IAACY,OAAO,EAAEA,CAAA,KAAML,aAAa,CAAC,CAACD,KAAK,CAAE;IAAA,GAAKG,cAAc;IAAAD,QAAA,gBACjEN,IAAA,CAACJ,UAAU;MACTQ,KAAK,EAAEA,KAAM;MACbC,aAAa,EAAEA,aAAc;MAC7BG,QAAQ,EAAEA,QAAS;MACnBG,KAAK,EAAEP,KAAK,GAAG,kBAAkB,GAAGQ,SAAU;MAAA,GAC1CH;IAAK,CACV,CAAC,eACFT,IAAA,CAACH,IAAI;MACHc,KAAK,EAAEH,QAAQ,GAAG,SAAS,GAAG,SAAU;MACxCK,KAAK,EAAE;QACLC,UAAU,EAAE;MACd,CAAE;MAAAR,QAAA,EAEDA;IAAQ,CACL,CAAC;EAAA,CACE,CAAC;AAEhB,CAAC;AAED,SAASH,QAAQ","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ import styled from '@emotion/native';
4
+ export const Container = styled.Pressable(() => ({
5
+ flexDirection: 'row',
6
+ alignItems: 'center',
7
+ gap: 12
8
+ }));
9
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styled","Container","Pressable","flexDirection","alignItems","gap"],"sourceRoot":"../../../../src","sources":["components/Checkbox/styles.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,OAAO,MAAMC,SAAS,GAAGD,MAAM,CAACE,SAAS,CAAC,OAAO;EAC/CC,aAAa,EAAE,KAAK;EACpBC,UAAU,EAAE,QAAQ;EACpBC,GAAG,EAAE;AACP,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ import { ExtendedFABContainer, FABText } from "../styles.js";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ export const ExtendedFAB = ({
6
+ label,
7
+ labelColor,
8
+ children,
9
+ ...props
10
+ }) => /*#__PURE__*/_jsxs(ExtendedFABContainer, {
11
+ ...props,
12
+ children: [children, /*#__PURE__*/_jsx(FABText, {
13
+ color: labelColor,
14
+ children: label
15
+ })]
16
+ });
17
+ //# sourceMappingURL=extended-fab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExtendedFABContainer","FABText","jsx","_jsx","jsxs","_jsxs","ExtendedFAB","label","labelColor","children","props","color"],"sourceRoot":"../../../../../src","sources":["components/FAB/components/extended-fab.tsx"],"mappings":";;AAAA,SACEA,oBAAoB,EAEpBC,OAAO,QACF,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnB,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACR,GAAGC;AACa,CAAC,kBACjBL,KAAA,CAACL,oBAAoB;EAAA,GAAKU,KAAK;EAAAD,QAAA,GAC5BA,QAAQ,eACTN,IAAA,CAACF,OAAO;IAACU,KAAK,EAAEH,UAAW;IAAAC,QAAA,EAAEF;EAAK,CAAU,CAAC;AAAA,CACzB,CACvB","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import { ExtendedFAB } from "./components/extended-fab.js";
4
+ import { DefaultFABStyle, LargeFAB, SmallFAB } from "./styles.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const DefaultFAB = props => /*#__PURE__*/_jsx(DefaultFABStyle, {
7
+ activeOpacity: 0.9,
8
+ ...props
9
+ });
10
+ const SmallFABComponent = props => /*#__PURE__*/_jsx(SmallFAB, {
11
+ activeOpacity: 0.9,
12
+ ...props
13
+ });
14
+ const LargeFABComponent = props => /*#__PURE__*/_jsx(LargeFAB, {
15
+ activeOpacity: 0.9,
16
+ ...props
17
+ });
18
+ const FAB = Object.assign(DefaultFAB, {
19
+ Small: SmallFABComponent,
20
+ Large: LargeFABComponent,
21
+ Extended: ExtendedFAB
22
+ });
23
+ export { FAB };
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExtendedFAB","DefaultFABStyle","LargeFAB","SmallFAB","jsx","_jsx","DefaultFAB","props","activeOpacity","SmallFABComponent","LargeFABComponent","FAB","Object","assign","Small","Large","Extended"],"sourceRoot":"../../../../src","sources":["components/FAB/index.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,8BAA2B;AACvD,SAASC,eAAe,EAAiBC,QAAQ,EAAEC,QAAQ,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9E,MAAMC,UAAU,GAAIC,KAAe,iBACjCF,IAAA,CAACJ,eAAe;EAACO,aAAa,EAAE,GAAI;EAAA,GAAKD;AAAK,CAAG,CAClD;AAED,MAAME,iBAAiB,GAAIF,KAAe,iBACxCF,IAAA,CAACF,QAAQ;EAACK,aAAa,EAAE,GAAI;EAAA,GAAKD;AAAK,CAAG,CAC3C;AAED,MAAMG,iBAAiB,GAAIH,KAAe,iBACxCF,IAAA,CAACH,QAAQ;EAACM,aAAa,EAAE,GAAI;EAAA,GAAKD;AAAK,CAAG,CAC3C;AAED,MAAMI,GAAG,GAAGC,MAAM,CAACC,MAAM,CAACP,UAAU,EAAE;EACpCQ,KAAK,EAAEL,iBAAiB;EACxBM,KAAK,EAAEL,iBAAiB;EACxBM,QAAQ,EAAEhB;AACZ,CAAC,CAAC;AAEF,SAASW,GAAG","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ import styled from '@emotion/native';
4
+ import { Text } from "../Text/index.js";
5
+ import { getPositionStyle, getSizeStyle } from "./utils.js";
6
+ export const DefaultFABStyle = styled.TouchableOpacity(({
7
+ position,
8
+ size,
9
+ color,
10
+ offset
11
+ }) => ({
12
+ ...getPositionStyle(position, offset),
13
+ ...getSizeStyle(size),
14
+ backgroundColor: color ?? '#fff',
15
+ borderRadius: 999,
16
+ justifyContent: 'center',
17
+ alignItems: 'center',
18
+ boxShadow: '0px 3px 2px rgba(0, 0, 0, 0.28)',
19
+ elevation: 4,
20
+ zIndex: 1000
21
+ }));
22
+ export const SmallFAB = styled(DefaultFABStyle)(() => getSizeStyle('small'));
23
+ export const LargeFAB = styled(DefaultFABStyle)(() => getSizeStyle('large'));
24
+ export const ExtendedFABContainer = styled(DefaultFABStyle)(() => ({
25
+ width: 'auto',
26
+ minWidth: 120,
27
+ paddingHorizontal: 16,
28
+ paddingVertical: 12,
29
+ flexDirection: 'row',
30
+ gap: 8,
31
+ borderRadius: 28 // Pill shape
32
+ }));
33
+ export const FABText = styled(Text)(({
34
+ color
35
+ }) => ({
36
+ color: color ?? '#333',
37
+ fontSize: 14,
38
+ fontWeight: '600'
39
+ }));
40
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styled","Text","getPositionStyle","getSizeStyle","DefaultFABStyle","TouchableOpacity","position","size","color","offset","backgroundColor","borderRadius","justifyContent","alignItems","boxShadow","elevation","zIndex","SmallFAB","LargeFAB","ExtendedFABContainer","width","minWidth","paddingHorizontal","paddingVertical","flexDirection","gap","FABText","fontSize","fontWeight"],"sourceRoot":"../../../../src","sources":["components/FAB/styles.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAGpC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SACEC,gBAAgB,EAChBC,YAAY,QAGP,YAAS;AAmBhB,OAAO,MAAMC,eAAe,GAAGJ,MAAM,CAACK,gBAAgB,CACpD,CAAC;EAAEC,QAAQ;EAAEC,IAAI;EAAEC,KAAK;EAAEC;AAAO,CAAC,MAAM;EACtC,GAAGP,gBAAgB,CAACI,QAAQ,EAAEG,MAAM,CAAC;EACrC,GAAGN,YAAY,CAACI,IAAI,CAAC;EACrBG,eAAe,EAAEF,KAAK,IAAI,MAAM;EAChCG,YAAY,EAAE,GAAG;EACjBC,cAAc,EAAE,QAAQ;EACxBC,UAAU,EAAE,QAAQ;EACpBC,SAAS,EAAE,iCAAiC;EAC5CC,SAAS,EAAE,CAAC;EACZC,MAAM,EAAE;AACV,CAAC,CACH,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAGjB,MAAM,CAACI,eAAe,CAAC,CAAC,MAAMD,YAAY,CAAC,OAAO,CAAC,CAAC;AAE5E,OAAO,MAAMe,QAAQ,GAAGlB,MAAM,CAACI,eAAe,CAAC,CAAC,MAAMD,YAAY,CAAC,OAAO,CAAC,CAAC;AAE5E,OAAO,MAAMgB,oBAAoB,GAAGnB,MAAM,CAACI,eAAe,CAAC,CAAC,OAAO;EACjEgB,KAAK,EAAE,MAAM;EACbC,QAAQ,EAAE,GAAG;EACbC,iBAAiB,EAAE,EAAE;EACrBC,eAAe,EAAE,EAAE;EACnBC,aAAa,EAAE,KAAK;EACpBC,GAAG,EAAE,CAAC;EACNd,YAAY,EAAE,EAAE,CAAE;AACpB,CAAC,CAAC,CAAC;AAEH,OAAO,MAAMe,OAAO,GAAG1B,MAAM,CAACC,IAAI,CAAC,CAAC,CAAC;EAAEO;AAAM,CAAC,MAAM;EAClDA,KAAK,EAAEA,KAAK,IAAI,MAAM;EACtBmB,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ export const getPositionStyle = (position = 'bottom-right', offset) => {
4
+ const horizontalOffset = offset?.horizontal ?? 16;
5
+ const verticalOffset = offset?.vertical ?? 16;
6
+ const safeBottom = 80; // Tab navigation clearance
7
+ const safeTop = 60; // Header clearance
8
+
9
+ const positions = {
10
+ 'top-left': {
11
+ top: safeTop + verticalOffset,
12
+ left: horizontalOffset
13
+ },
14
+ 'top-right': {
15
+ top: safeTop + verticalOffset,
16
+ right: horizontalOffset
17
+ },
18
+ 'bottom-left': {
19
+ bottom: safeBottom + verticalOffset,
20
+ left: horizontalOffset
21
+ },
22
+ 'bottom-right': {
23
+ bottom: safeBottom + verticalOffset,
24
+ right: horizontalOffset
25
+ }
26
+ };
27
+ return {
28
+ position: 'absolute',
29
+ ...positions[position]
30
+ };
31
+ };
32
+ export const getSizeStyle = size => {
33
+ const sizes = {
34
+ small: {
35
+ width: 40,
36
+ height: 40
37
+ },
38
+ regular: {
39
+ width: 56,
40
+ height: 56
41
+ },
42
+ large: {
43
+ width: 72,
44
+ height: 72
45
+ }
46
+ };
47
+ return sizes[size ?? 'regular'];
48
+ };
49
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getPositionStyle","position","offset","horizontalOffset","horizontal","verticalOffset","vertical","safeBottom","safeTop","positions","top","left","right","bottom","getSizeStyle","size","sizes","small","width","height","regular","large"],"sourceRoot":"../../../../src","sources":["components/FAB/utils.ts"],"mappings":";;AAOA,OAAO,MAAMA,gBAAgB,GAAGA,CAC9BC,QAAkB,GAAG,cAAc,EACnCC,MAAmD,KACrC;EACd,MAAMC,gBAAgB,GAAGD,MAAM,EAAEE,UAAU,IAAI,EAAE;EACjD,MAAMC,cAAc,GAAGH,MAAM,EAAEI,QAAQ,IAAI,EAAE;EAE7C,MAAMC,UAAU,GAAG,EAAE,CAAC,CAAC;EACvB,MAAMC,OAAO,GAAG,EAAE,CAAC,CAAC;;EAEpB,MAAMC,SAAS,GAAG;IAChB,UAAU,EAAE;MAAEC,GAAG,EAAEF,OAAO,GAAGH,cAAc;MAAEM,IAAI,EAAER;IAAiB,CAAC;IACrE,WAAW,EAAE;MAAEO,GAAG,EAAEF,OAAO,GAAGH,cAAc;MAAEO,KAAK,EAAET;IAAiB,CAAC;IACvE,aAAa,EAAE;MACbU,MAAM,EAAEN,UAAU,GAAGF,cAAc;MACnCM,IAAI,EAAER;IACR,CAAC;IACD,cAAc,EAAE;MACdU,MAAM,EAAEN,UAAU,GAAGF,cAAc;MACnCO,KAAK,EAAET;IACT;EACF,CAAC;EAED,OAAO;IACLF,QAAQ,EAAE,UAAU;IACpB,GAAGQ,SAAS,CAACR,QAAQ;EACvB,CAAC;AACH,CAAC;AAED,OAAO,MAAMa,YAAY,GAAIC,IAAW,IAAK;EAC3C,MAAMC,KAAK,GAAG;IACZC,KAAK,EAAE;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAG,CAAC;IAChCC,OAAO,EAAE;MAAEF,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAG,CAAC;IAClCE,KAAK,EAAE;MAAEH,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAG;EACjC,CAAC;EAED,OAAOH,KAAK,CAACD,IAAI,IAAI,SAAS,CAAC;AACjC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { Flex } from "./styles.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Flex"],"sourceRoot":"../../../../src","sources":["components/Flex/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,aAAU","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import styled from '@emotion/native';
4
+ export const Flex = styled.View(({
5
+ theme,
6
+ flex,
7
+ flexBasis,
8
+ flexDirection,
9
+ flexGrow,
10
+ flexShrink,
11
+ flexWrap,
12
+ alignContent,
13
+ alignItems,
14
+ alignSelf,
15
+ justifyContent,
16
+ gap
17
+ }) => ({
18
+ theme,
19
+ flex,
20
+ flexBasis,
21
+ flexDirection,
22
+ flexGrow,
23
+ flexShrink,
24
+ flexWrap,
25
+ alignContent,
26
+ alignItems,
27
+ alignSelf,
28
+ justifyContent,
29
+ gap
30
+ }));
31
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styled","Flex","View","theme","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","alignContent","alignItems","alignSelf","justifyContent","gap"],"sourceRoot":"../../../../src","sources":["components/Flex/styles.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AAkBpC,OAAO,MAAMC,IAAI,GAAGD,MAAM,CAACE,IAAI,CAC7B,CAAC;EACCC,KAAK;EACLC,IAAI;EACJC,SAAS;EACTC,aAAa;EACbC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;EACZC,UAAU;EACVC,SAAS;EACTC,cAAc;EACdC;AACF,CAAC,MAAM;EACLX,KAAK;EACLC,IAAI;EACJC,SAAS;EACTC,aAAa;EACbC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;EACZC,UAAU;EACVC,SAAS;EACTC,cAAc;EACdC;AACF,CAAC,CACH,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import { LabelText } from "./styles.js";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const FormLabel = props => {
6
+ return /*#__PURE__*/_jsx(LabelText, {
7
+ ...props
8
+ });
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LabelText","jsx","_jsx","FormLabel","props"],"sourceRoot":"../../../../src","sources":["components/FormLabel/index.tsx"],"mappings":";;AACA,SAASA,SAAS,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,SAAS,GAAIC,KAAgB,IAAK;EAC7C,oBAAOF,IAAA,CAACF,SAAS;IAAA,GAAKI;EAAK,CAAG,CAAC;AACjC,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import styled from '@emotion/native';
4
+ import { Text } from "../Text/index.js";
5
+ export const LabelText = styled(Text)({
6
+ color: '#333333',
7
+ marginBottom: 4,
8
+ fontWeight: '500'
9
+ });
10
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styled","Text","LabelText","color","marginBottom","fontWeight"],"sourceRoot":"../../../../src","sources":["components/FormLabel/styles.ts"],"mappings":";;AAAA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,IAAI,QAAQ,kBAAS;AAE9B,OAAO,MAAMC,SAAS,GAAGF,MAAM,CAACC,IAAI,CAAC,CAAC;EACpCE,KAAK,EAAE,SAAS;EAChBC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE;AACd,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ import { useInputContext } from "../context.js";
4
+ import { InputControlContainer } from "../styles.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const InputControl = ({
7
+ children,
8
+ ...props
9
+ }) => {
10
+ const {
11
+ isFocused,
12
+ handleFocus,
13
+ hasError,
14
+ disabled
15
+ } = useInputContext();
16
+ return /*#__PURE__*/_jsx(InputControlContainer, {
17
+ isFocused: isFocused,
18
+ hasError: hasError,
19
+ onPress: handleFocus,
20
+ disabled: disabled,
21
+ ...props,
22
+ children: children
23
+ });
24
+ };
25
+ //# sourceMappingURL=input-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useInputContext","InputControlContainer","jsx","_jsx","InputControl","children","props","isFocused","handleFocus","hasError","disabled","onPress"],"sourceRoot":"../../../../../src","sources":["components/Input/components/input-control.tsx"],"mappings":";;AAEA,SAASA,eAAe,QAAQ,eAAY;AAC5C,SAASC,qBAAqB,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAsB,CAAC,KAAK;EACtE,MAAM;IAAEC,SAAS;IAAEC,WAAW;IAAEC,QAAQ;IAAEC;EAAS,CAAC,GAAGV,eAAe,CAAC,CAAC;EAExE,oBACEG,IAAA,CAACF,qBAAqB;IACpBM,SAAS,EAAEA,SAAU;IACrBE,QAAQ,EAAEA,QAAS;IACnBE,OAAO,EAAEH,WAAY;IACrBE,QAAQ,EAAEA,QAAS;IAAA,GACfJ,KAAK;IAAAD,QAAA,EAERA;EAAQ,CACY,CAAC;AAE5B,CAAC","ignoreList":[]}