@edge-zuq/core 1.2.7

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 (702) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +99 -0
  3. package/lib/module/assets/logo.png +0 -0
  4. package/lib/module/data/errors/http-client-error.js +14 -0
  5. package/lib/module/data/errors/http-client-error.js.map +1 -0
  6. package/lib/module/data/errors/index.js +6 -0
  7. package/lib/module/data/errors/index.js.map +1 -0
  8. package/lib/module/data/errors/save-file-error.js +9 -0
  9. package/lib/module/data/errors/save-file-error.js.map +1 -0
  10. package/lib/module/data/errors/unsupported-platform.js +9 -0
  11. package/lib/module/data/errors/unsupported-platform.js.map +1 -0
  12. package/lib/module/data/models/index.js +6 -0
  13. package/lib/module/data/models/index.js.map +1 -0
  14. package/lib/module/data/models/remote-get-comment-list-model.js +2 -0
  15. package/lib/module/data/models/remote-get-comment-list-model.js.map +1 -0
  16. package/lib/module/data/models/remote-get-image-list-model.js +2 -0
  17. package/lib/module/data/models/remote-get-image-list-model.js.map +1 -0
  18. package/lib/module/data/models/remote-user-model.js +2 -0
  19. package/lib/module/data/models/remote-user-model.js.map +1 -0
  20. package/lib/module/data/protocols/cookie-manager.js +2 -0
  21. package/lib/module/data/protocols/cookie-manager.js.map +1 -0
  22. package/lib/module/data/protocols/download-manager.js +4 -0
  23. package/lib/module/data/protocols/download-manager.js.map +1 -0
  24. package/lib/module/data/protocols/http-client.js +26 -0
  25. package/lib/module/data/protocols/http-client.js.map +1 -0
  26. package/lib/module/data/protocols/index.js +9 -0
  27. package/lib/module/data/protocols/index.js.map +1 -0
  28. package/lib/module/data/protocols/notification-manager.js +4 -0
  29. package/lib/module/data/protocols/notification-manager.js.map +1 -0
  30. package/lib/module/data/protocols/permission-manager.js +4 -0
  31. package/lib/module/data/protocols/permission-manager.js.map +1 -0
  32. package/lib/module/data/protocols/storage.js +4 -0
  33. package/lib/module/data/protocols/storage.js.map +1 -0
  34. package/lib/module/data/use-cases/index.js +6 -0
  35. package/lib/module/data/use-cases/index.js.map +1 -0
  36. package/lib/module/data/use-cases/remote-get-comment-list.js +29 -0
  37. package/lib/module/data/use-cases/remote-get-comment-list.js.map +1 -0
  38. package/lib/module/data/use-cases/remote-get-image-list.js +32 -0
  39. package/lib/module/data/use-cases/remote-get-image-list.js.map +1 -0
  40. package/lib/module/data/use-cases/remote-send-diagnostics.js +20 -0
  41. package/lib/module/data/use-cases/remote-send-diagnostics.js.map +1 -0
  42. package/lib/module/domain/errors/authentication-expired-error.js +9 -0
  43. package/lib/module/domain/errors/authentication-expired-error.js.map +1 -0
  44. package/lib/module/domain/errors/index.js +7 -0
  45. package/lib/module/domain/errors/index.js.map +1 -0
  46. package/lib/module/domain/errors/internal-server-error.js +9 -0
  47. package/lib/module/domain/errors/internal-server-error.js.map +1 -0
  48. package/lib/module/domain/errors/invalid-credentials-error.js +9 -0
  49. package/lib/module/domain/errors/invalid-credentials-error.js.map +1 -0
  50. package/lib/module/domain/errors/no-app-permission-error.js +9 -0
  51. package/lib/module/domain/errors/no-app-permission-error.js.map +1 -0
  52. package/lib/module/domain/models/get-comment-list-model.js +2 -0
  53. package/lib/module/domain/models/get-comment-list-model.js.map +1 -0
  54. package/lib/module/domain/models/get-image-list-model.js +2 -0
  55. package/lib/module/domain/models/get-image-list-model.js.map +1 -0
  56. package/lib/module/domain/models/index.js +6 -0
  57. package/lib/module/domain/models/index.js.map +1 -0
  58. package/lib/module/domain/models/user-model.js +2 -0
  59. package/lib/module/domain/models/user-model.js.map +1 -0
  60. package/lib/module/domain/use-cases/get-comment-list.js +4 -0
  61. package/lib/module/domain/use-cases/get-comment-list.js.map +1 -0
  62. package/lib/module/domain/use-cases/get-image-list.js +4 -0
  63. package/lib/module/domain/use-cases/get-image-list.js.map +1 -0
  64. package/lib/module/domain/use-cases/index.js +9 -0
  65. package/lib/module/domain/use-cases/index.js.map +1 -0
  66. package/lib/module/domain/use-cases/record-request.js +4 -0
  67. package/lib/module/domain/use-cases/record-request.js.map +1 -0
  68. package/lib/module/domain/use-cases/send-diagnostics.js +4 -0
  69. package/lib/module/domain/use-cases/send-diagnostics.js.map +1 -0
  70. package/lib/module/domain/use-cases/user-authentication.js +4 -0
  71. package/lib/module/domain/use-cases/user-authentication.js.map +1 -0
  72. package/lib/module/domain/use-cases/user-logout.js +4 -0
  73. package/lib/module/domain/use-cases/user-logout.js.map +1 -0
  74. package/lib/module/index.js +16 -0
  75. package/lib/module/index.js.map +1 -0
  76. package/lib/module/infra/axios-http-client-adapter.js +199 -0
  77. package/lib/module/infra/axios-http-client-adapter.js.map +1 -0
  78. package/lib/module/infra/index.js +10 -0
  79. package/lib/module/infra/index.js.map +1 -0
  80. package/lib/module/infra/isomorphic-id-manager.js +83 -0
  81. package/lib/module/infra/isomorphic-id-manager.js.map +1 -0
  82. package/lib/module/infra/mmkv-storage-adapter.js +62 -0
  83. package/lib/module/infra/mmkv-storage-adapter.js.map +1 -0
  84. package/lib/module/infra/notifee-notification-manager-adapter.js +69 -0
  85. package/lib/module/infra/notifee-notification-manager-adapter.js.map +1 -0
  86. package/lib/module/infra/offline-mutation-queue.js +210 -0
  87. package/lib/module/infra/offline-mutation-queue.js.map +1 -0
  88. package/lib/module/infra/rnbu-download-manager-adapter.js +31 -0
  89. package/lib/module/infra/rnbu-download-manager-adapter.js.map +1 -0
  90. package/lib/module/infra/rnp-permission-manager-adapter.js +117 -0
  91. package/lib/module/infra/rnp-permission-manager-adapter.js.map +1 -0
  92. package/lib/module/infra/storage-cookie-manager-adapter.js +24 -0
  93. package/lib/module/infra/storage-cookie-manager-adapter.js.map +1 -0
  94. package/lib/module/main/components/index.js +7 -0
  95. package/lib/module/main/components/index.js.map +1 -0
  96. package/lib/module/main/components/request-permissions.js +14 -0
  97. package/lib/module/main/components/request-permissions.js.map +1 -0
  98. package/lib/module/main/factories/infra/download-manager-factory.js +7 -0
  99. package/lib/module/main/factories/infra/download-manager-factory.js.map +1 -0
  100. package/lib/module/main/factories/infra/http-client-factory.js +7 -0
  101. package/lib/module/main/factories/infra/http-client-factory.js.map +1 -0
  102. package/lib/module/main/factories/infra/index.js +10 -0
  103. package/lib/module/main/factories/infra/index.js.map +1 -0
  104. package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js +7 -0
  105. package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js.map +1 -0
  106. package/lib/module/main/factories/infra/notification-manager-factory.js +7 -0
  107. package/lib/module/main/factories/infra/notification-manager-factory.js.map +1 -0
  108. package/lib/module/main/factories/infra/offline-mutation-queue-factory.js +7 -0
  109. package/lib/module/main/factories/infra/offline-mutation-queue-factory.js.map +1 -0
  110. package/lib/module/main/factories/infra/permission-manager-factory.js +7 -0
  111. package/lib/module/main/factories/infra/permission-manager-factory.js.map +1 -0
  112. package/lib/module/main/factories/infra/storage-factory.js +10 -0
  113. package/lib/module/main/factories/infra/storage-factory.js.map +1 -0
  114. package/lib/module/main/factories/use-cases/index.js +6 -0
  115. package/lib/module/main/factories/use-cases/index.js.map +1 -0
  116. package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js +7 -0
  117. package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js.map +1 -0
  118. package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js +7 -0
  119. package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js.map +1 -0
  120. package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js +7 -0
  121. package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js.map +1 -0
  122. package/lib/module/package.json +1 -0
  123. package/lib/module/presentation/components/atoms/UIBackdrop.js +31 -0
  124. package/lib/module/presentation/components/atoms/UIBackdrop.js.map +1 -0
  125. package/lib/module/presentation/components/atoms/UICheckbox.js +47 -0
  126. package/lib/module/presentation/components/atoms/UICheckbox.js.map +1 -0
  127. package/lib/module/presentation/components/atoms/UIDot.js +33 -0
  128. package/lib/module/presentation/components/atoms/UIDot.js.map +1 -0
  129. package/lib/module/presentation/components/atoms/UIIcon.js +1072 -0
  130. package/lib/module/presentation/components/atoms/UIIcon.js.map +1 -0
  131. package/lib/module/presentation/components/atoms/UILoading.js +19 -0
  132. package/lib/module/presentation/components/atoms/UILoading.js.map +1 -0
  133. package/lib/module/presentation/components/atoms/UIPage.js +70 -0
  134. package/lib/module/presentation/components/atoms/UIPage.js.map +1 -0
  135. package/lib/module/presentation/components/atoms/UIProgress.js +54 -0
  136. package/lib/module/presentation/components/atoms/UIProgress.js.map +1 -0
  137. package/lib/module/presentation/components/atoms/UIScrollPage.js +72 -0
  138. package/lib/module/presentation/components/atoms/UIScrollPage.js.map +1 -0
  139. package/lib/module/presentation/components/atoms/UISeparator.js +30 -0
  140. package/lib/module/presentation/components/atoms/UISeparator.js.map +1 -0
  141. package/lib/module/presentation/components/atoms/UISpacer.js +19 -0
  142. package/lib/module/presentation/components/atoms/UISpacer.js.map +1 -0
  143. package/lib/module/presentation/components/atoms/UIStack.js +31 -0
  144. package/lib/module/presentation/components/atoms/UIStack.js.map +1 -0
  145. package/lib/module/presentation/components/atoms/UIText.js +48 -0
  146. package/lib/module/presentation/components/atoms/UIText.js.map +1 -0
  147. package/lib/module/presentation/components/atoms/index.js +15 -0
  148. package/lib/module/presentation/components/atoms/index.js.map +1 -0
  149. package/lib/module/presentation/components/index.js +4 -0
  150. package/lib/module/presentation/components/index.js.map +1 -0
  151. package/lib/module/presentation/components/molecules/UIActionSheet.js +199 -0
  152. package/lib/module/presentation/components/molecules/UIActionSheet.js.map +1 -0
  153. package/lib/module/presentation/components/molecules/UIButton.js +173 -0
  154. package/lib/module/presentation/components/molecules/UIButton.js.map +1 -0
  155. package/lib/module/presentation/components/molecules/UIButtonCTA.js +31 -0
  156. package/lib/module/presentation/components/molecules/UIButtonCTA.js.map +1 -0
  157. package/lib/module/presentation/components/molecules/UICheckboxInput.js +84 -0
  158. package/lib/module/presentation/components/molecules/UICheckboxInput.js.map +1 -0
  159. package/lib/module/presentation/components/molecules/UIChip.js +49 -0
  160. package/lib/module/presentation/components/molecules/UIChip.js.map +1 -0
  161. package/lib/module/presentation/components/molecules/UICurrencyInput.js +32 -0
  162. package/lib/module/presentation/components/molecules/UICurrencyInput.js.map +1 -0
  163. package/lib/module/presentation/components/molecules/UIDataList.js +26 -0
  164. package/lib/module/presentation/components/molecules/UIDataList.js.map +1 -0
  165. package/lib/module/presentation/components/molecules/UIDataSectionList.js +26 -0
  166. package/lib/module/presentation/components/molecules/UIDataSectionList.js.map +1 -0
  167. package/lib/module/presentation/components/molecules/UIDatetimeInput.js +202 -0
  168. package/lib/module/presentation/components/molecules/UIDatetimeInput.js.map +1 -0
  169. package/lib/module/presentation/components/molecules/UIError.js +32 -0
  170. package/lib/module/presentation/components/molecules/UIError.js.map +1 -0
  171. package/lib/module/presentation/components/molecules/UIImage.js +87 -0
  172. package/lib/module/presentation/components/molecules/UIImage.js.map +1 -0
  173. package/lib/module/presentation/components/molecules/UIInlineDatePicker.js +245 -0
  174. package/lib/module/presentation/components/molecules/UIInlineDatePicker.js.map +1 -0
  175. package/lib/module/presentation/components/molecules/UIInputIcon.js +38 -0
  176. package/lib/module/presentation/components/molecules/UIInputIcon.js.map +1 -0
  177. package/lib/module/presentation/components/molecules/UIList.js +16 -0
  178. package/lib/module/presentation/components/molecules/UIList.js.map +1 -0
  179. package/lib/module/presentation/components/molecules/UIRadioInput.js +78 -0
  180. package/lib/module/presentation/components/molecules/UIRadioInput.js.map +1 -0
  181. package/lib/module/presentation/components/molecules/UISectionList.js +16 -0
  182. package/lib/module/presentation/components/molecules/UISectionList.js.map +1 -0
  183. package/lib/module/presentation/components/molecules/UISkeleton.js +54 -0
  184. package/lib/module/presentation/components/molecules/UISkeleton.js.map +1 -0
  185. package/lib/module/presentation/components/molecules/UISwitch.js +65 -0
  186. package/lib/module/presentation/components/molecules/UISwitch.js.map +1 -0
  187. package/lib/module/presentation/components/molecules/UITextInput.js +132 -0
  188. package/lib/module/presentation/components/molecules/UITextInput.js.map +1 -0
  189. package/lib/module/presentation/components/molecules/UITextInputMask.js +133 -0
  190. package/lib/module/presentation/components/molecules/UITextInputMask.js.map +1 -0
  191. package/lib/module/presentation/components/molecules/index.js +23 -0
  192. package/lib/module/presentation/components/molecules/index.js.map +1 -0
  193. package/lib/module/presentation/components/organisms/UIAppBar.js +102 -0
  194. package/lib/module/presentation/components/organisms/UIAppBar.js.map +1 -0
  195. package/lib/module/presentation/components/organisms/UIAppBarAction.js +21 -0
  196. package/lib/module/presentation/components/organisms/UIAppBarAction.js.map +1 -0
  197. package/lib/module/presentation/components/organisms/UICard.js +43 -0
  198. package/lib/module/presentation/components/organisms/UICard.js.map +1 -0
  199. package/lib/module/presentation/components/organisms/UIComment.js +73 -0
  200. package/lib/module/presentation/components/organisms/UIComment.js.map +1 -0
  201. package/lib/module/presentation/components/organisms/UIErrorBoundary.js +68 -0
  202. package/lib/module/presentation/components/organisms/UIErrorBoundary.js.map +1 -0
  203. package/lib/module/presentation/components/organisms/UIForm.js +83 -0
  204. package/lib/module/presentation/components/organisms/UIForm.js.map +1 -0
  205. package/lib/module/presentation/components/organisms/UIFormButton.js +43 -0
  206. package/lib/module/presentation/components/organisms/UIFormButton.js.map +1 -0
  207. package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js +39 -0
  208. package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js.map +1 -0
  209. package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js +65 -0
  210. package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js.map +1 -0
  211. package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js +54 -0
  212. package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js.map +1 -0
  213. package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js +212 -0
  214. package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js.map +1 -0
  215. package/lib/module/presentation/components/organisms/UIFormRadioInput.js +36 -0
  216. package/lib/module/presentation/components/organisms/UIFormRadioInput.js.map +1 -0
  217. package/lib/module/presentation/components/organisms/UIFormSelectInput.js +259 -0
  218. package/lib/module/presentation/components/organisms/UIFormSelectInput.js.map +1 -0
  219. package/lib/module/presentation/components/organisms/UIFormTextInput.js +64 -0
  220. package/lib/module/presentation/components/organisms/UIFormTextInput.js.map +1 -0
  221. package/lib/module/presentation/components/organisms/UIFormTextInputMask.js +69 -0
  222. package/lib/module/presentation/components/organisms/UIFormTextInputMask.js.map +1 -0
  223. package/lib/module/presentation/components/organisms/UIRow.js +55 -0
  224. package/lib/module/presentation/components/organisms/UIRow.js.map +1 -0
  225. package/lib/module/presentation/components/organisms/UISearchInput.js +33 -0
  226. package/lib/module/presentation/components/organisms/UISearchInput.js.map +1 -0
  227. package/lib/module/presentation/components/organisms/UISelectChip.js +94 -0
  228. package/lib/module/presentation/components/organisms/UISelectChip.js.map +1 -0
  229. package/lib/module/presentation/components/organisms/UISignature.js +159 -0
  230. package/lib/module/presentation/components/organisms/UISignature.js.map +1 -0
  231. package/lib/module/presentation/components/organisms/UISlideButton.js +90 -0
  232. package/lib/module/presentation/components/organisms/UISlideButton.js.map +1 -0
  233. package/lib/module/presentation/components/organisms/index.js +24 -0
  234. package/lib/module/presentation/components/organisms/index.js.map +1 -0
  235. package/lib/module/presentation/components/permissions/index.js +4 -0
  236. package/lib/module/presentation/components/permissions/index.js.map +1 -0
  237. package/lib/module/presentation/components/permissions/request-permissions.js +96 -0
  238. package/lib/module/presentation/components/permissions/request-permissions.js.map +1 -0
  239. package/lib/module/presentation/domain/metadata/index.js +5 -0
  240. package/lib/module/presentation/domain/metadata/index.js.map +1 -0
  241. package/lib/module/presentation/domain/metadata/use-comments.js +26 -0
  242. package/lib/module/presentation/domain/metadata/use-comments.js.map +1 -0
  243. package/lib/module/presentation/domain/metadata/use-images.js +26 -0
  244. package/lib/module/presentation/domain/metadata/use-images.js.map +1 -0
  245. package/lib/module/presentation/domain/offline/index.js +12 -0
  246. package/lib/module/presentation/domain/offline/index.js.map +1 -0
  247. package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js +69 -0
  248. package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js.map +1 -0
  249. package/lib/module/presentation/domain/offline/types.js +4 -0
  250. package/lib/module/presentation/domain/offline/types.js.map +1 -0
  251. package/lib/module/presentation/domain/offline/use-infinite-offline-query.js +69 -0
  252. package/lib/module/presentation/domain/offline/use-infinite-offline-query.js.map +1 -0
  253. package/lib/module/presentation/domain/offline/use-offline-id-v2.js +22 -0
  254. package/lib/module/presentation/domain/offline/use-offline-id-v2.js.map +1 -0
  255. package/lib/module/presentation/domain/offline/use-offline-id.js +11 -0
  256. package/lib/module/presentation/domain/offline/use-offline-id.js.map +1 -0
  257. package/lib/module/presentation/domain/offline/use-offline-mutation.js +115 -0
  258. package/lib/module/presentation/domain/offline/use-offline-mutation.js.map +1 -0
  259. package/lib/module/presentation/domain/offline/use-offline-query.js +33 -0
  260. package/lib/module/presentation/domain/offline/use-offline-query.js.map +1 -0
  261. package/lib/module/presentation/domain/offline/use-offline-queue.js +8 -0
  262. package/lib/module/presentation/domain/offline/use-offline-queue.js.map +1 -0
  263. package/lib/module/presentation/domain/offline/utils.js +110 -0
  264. package/lib/module/presentation/domain/offline/utils.js.map +1 -0
  265. package/lib/module/presentation/domain/provider/index.js +4 -0
  266. package/lib/module/presentation/domain/provider/index.js.map +1 -0
  267. package/lib/module/presentation/domain/provider/zuq-core-provider.js +51 -0
  268. package/lib/module/presentation/domain/provider/zuq-core-provider.js.map +1 -0
  269. package/lib/module/presentation/domain/utils/exists.js +6 -0
  270. package/lib/module/presentation/domain/utils/exists.js.map +1 -0
  271. package/lib/module/presentation/domain/utils/index.js +8 -0
  272. package/lib/module/presentation/domain/utils/index.js.map +1 -0
  273. package/lib/module/presentation/domain/utils/react-query.js +10 -0
  274. package/lib/module/presentation/domain/utils/react-query.js.map +1 -0
  275. package/lib/module/presentation/domain/utils/use-action-sheet.js +20 -0
  276. package/lib/module/presentation/domain/utils/use-action-sheet.js.map +1 -0
  277. package/lib/module/presentation/domain/utils/use-signature-ref.js +8 -0
  278. package/lib/module/presentation/domain/utils/use-signature-ref.js.map +1 -0
  279. package/lib/module/presentation/domain/utils/yup.js +5 -0
  280. package/lib/module/presentation/domain/utils/yup.js.map +1 -0
  281. package/lib/module/theme.js +211 -0
  282. package/lib/module/theme.js.map +1 -0
  283. package/lib/typescript/package.json +1 -0
  284. package/lib/typescript/src/data/errors/http-client-error.d.ts +13 -0
  285. package/lib/typescript/src/data/errors/http-client-error.d.ts.map +1 -0
  286. package/lib/typescript/src/data/errors/index.d.ts +4 -0
  287. package/lib/typescript/src/data/errors/index.d.ts.map +1 -0
  288. package/lib/typescript/src/data/errors/save-file-error.d.ts +4 -0
  289. package/lib/typescript/src/data/errors/save-file-error.d.ts.map +1 -0
  290. package/lib/typescript/src/data/errors/unsupported-platform.d.ts +4 -0
  291. package/lib/typescript/src/data/errors/unsupported-platform.d.ts.map +1 -0
  292. package/lib/typescript/src/data/models/index.d.ts +4 -0
  293. package/lib/typescript/src/data/models/index.d.ts.map +1 -0
  294. package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts +16 -0
  295. package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts.map +1 -0
  296. package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts +16 -0
  297. package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts.map +1 -0
  298. package/lib/typescript/src/data/models/remote-user-model.d.ts +14 -0
  299. package/lib/typescript/src/data/models/remote-user-model.d.ts.map +1 -0
  300. package/lib/typescript/src/data/protocols/cookie-manager.d.ts +7 -0
  301. package/lib/typescript/src/data/protocols/cookie-manager.d.ts.map +1 -0
  302. package/lib/typescript/src/data/protocols/download-manager.d.ts +12 -0
  303. package/lib/typescript/src/data/protocols/download-manager.d.ts.map +1 -0
  304. package/lib/typescript/src/data/protocols/http-client.d.ts +52 -0
  305. package/lib/typescript/src/data/protocols/http-client.d.ts.map +1 -0
  306. package/lib/typescript/src/data/protocols/index.d.ts +7 -0
  307. package/lib/typescript/src/data/protocols/index.d.ts.map +1 -0
  308. package/lib/typescript/src/data/protocols/notification-manager.d.ts +17 -0
  309. package/lib/typescript/src/data/protocols/notification-manager.d.ts.map +1 -0
  310. package/lib/typescript/src/data/protocols/permission-manager.d.ts +23 -0
  311. package/lib/typescript/src/data/protocols/permission-manager.d.ts.map +1 -0
  312. package/lib/typescript/src/data/protocols/storage.d.ts +17 -0
  313. package/lib/typescript/src/data/protocols/storage.d.ts.map +1 -0
  314. package/lib/typescript/src/data/use-cases/index.d.ts +4 -0
  315. package/lib/typescript/src/data/use-cases/index.d.ts.map +1 -0
  316. package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts +9 -0
  317. package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts.map +1 -0
  318. package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts +10 -0
  319. package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts.map +1 -0
  320. package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts +11 -0
  321. package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts.map +1 -0
  322. package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts +4 -0
  323. package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts.map +1 -0
  324. package/lib/typescript/src/domain/errors/index.d.ts +5 -0
  325. package/lib/typescript/src/domain/errors/index.d.ts.map +1 -0
  326. package/lib/typescript/src/domain/errors/internal-server-error.d.ts +4 -0
  327. package/lib/typescript/src/domain/errors/internal-server-error.d.ts.map +1 -0
  328. package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts +4 -0
  329. package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts.map +1 -0
  330. package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts +4 -0
  331. package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts.map +1 -0
  332. package/lib/typescript/src/domain/models/get-comment-list-model.d.ts +10 -0
  333. package/lib/typescript/src/domain/models/get-comment-list-model.d.ts.map +1 -0
  334. package/lib/typescript/src/domain/models/get-image-list-model.d.ts +8 -0
  335. package/lib/typescript/src/domain/models/get-image-list-model.d.ts.map +1 -0
  336. package/lib/typescript/src/domain/models/index.d.ts +4 -0
  337. package/lib/typescript/src/domain/models/index.d.ts.map +1 -0
  338. package/lib/typescript/src/domain/models/user-model.d.ts +16 -0
  339. package/lib/typescript/src/domain/models/user-model.d.ts.map +1 -0
  340. package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts +12 -0
  341. package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts.map +1 -0
  342. package/lib/typescript/src/domain/use-cases/get-image-list.d.ts +12 -0
  343. package/lib/typescript/src/domain/use-cases/get-image-list.d.ts.map +1 -0
  344. package/lib/typescript/src/domain/use-cases/index.d.ts +7 -0
  345. package/lib/typescript/src/domain/use-cases/index.d.ts.map +1 -0
  346. package/lib/typescript/src/domain/use-cases/record-request.d.ts +14 -0
  347. package/lib/typescript/src/domain/use-cases/record-request.d.ts.map +1 -0
  348. package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts +15 -0
  349. package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts.map +1 -0
  350. package/lib/typescript/src/domain/use-cases/user-authentication.d.ts +12 -0
  351. package/lib/typescript/src/domain/use-cases/user-authentication.d.ts.map +1 -0
  352. package/lib/typescript/src/domain/use-cases/user-logout.d.ts +10 -0
  353. package/lib/typescript/src/domain/use-cases/user-logout.d.ts.map +1 -0
  354. package/lib/typescript/src/index.d.ts +15 -0
  355. package/lib/typescript/src/index.d.ts.map +1 -0
  356. package/lib/typescript/src/infra/axios-http-client-adapter.d.ts +33 -0
  357. package/lib/typescript/src/infra/axios-http-client-adapter.d.ts.map +1 -0
  358. package/lib/typescript/src/infra/index.d.ts +8 -0
  359. package/lib/typescript/src/infra/index.d.ts.map +1 -0
  360. package/lib/typescript/src/infra/isomorphic-id-manager.d.ts +29 -0
  361. package/lib/typescript/src/infra/isomorphic-id-manager.d.ts.map +1 -0
  362. package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts +18 -0
  363. package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts.map +1 -0
  364. package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts +17 -0
  365. package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts.map +1 -0
  366. package/lib/typescript/src/infra/offline-mutation-queue.d.ts +56 -0
  367. package/lib/typescript/src/infra/offline-mutation-queue.d.ts.map +1 -0
  368. package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts +7 -0
  369. package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts.map +1 -0
  370. package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts +20 -0
  371. package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts.map +1 -0
  372. package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts +12 -0
  373. package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts.map +1 -0
  374. package/lib/typescript/src/main/components/index.d.ts +5 -0
  375. package/lib/typescript/src/main/components/index.d.ts.map +1 -0
  376. package/lib/typescript/src/main/components/request-permissions.d.ts +6 -0
  377. package/lib/typescript/src/main/components/request-permissions.d.ts.map +1 -0
  378. package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts +3 -0
  379. package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts.map +1 -0
  380. package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts +4 -0
  381. package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts.map +1 -0
  382. package/lib/typescript/src/main/factories/infra/index.d.ts +8 -0
  383. package/lib/typescript/src/main/factories/infra/index.d.ts.map +1 -0
  384. package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts +4 -0
  385. package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts.map +1 -0
  386. package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts +4 -0
  387. package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts.map +1 -0
  388. package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts +5 -0
  389. package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts.map +1 -0
  390. package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts +3 -0
  391. package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts.map +1 -0
  392. package/lib/typescript/src/main/factories/infra/storage-factory.d.ts +4 -0
  393. package/lib/typescript/src/main/factories/infra/storage-factory.d.ts.map +1 -0
  394. package/lib/typescript/src/main/factories/use-cases/index.d.ts +4 -0
  395. package/lib/typescript/src/main/factories/use-cases/index.d.ts.map +1 -0
  396. package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts +4 -0
  397. package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts.map +1 -0
  398. package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts +4 -0
  399. package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts.map +1 -0
  400. package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts +4 -0
  401. package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts.map +1 -0
  402. package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts +10 -0
  403. package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts.map +1 -0
  404. package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts +11 -0
  405. package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts.map +1 -0
  406. package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts +10 -0
  407. package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts.map +1 -0
  408. package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts +133 -0
  409. package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts.map +1 -0
  410. package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts +9 -0
  411. package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts.map +1 -0
  412. package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts +20 -0
  413. package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts.map +1 -0
  414. package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts +10 -0
  415. package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts.map +1 -0
  416. package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts +17 -0
  417. package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts.map +1 -0
  418. package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts +10 -0
  419. package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts.map +1 -0
  420. package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts +9 -0
  421. package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts.map +1 -0
  422. package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts +14 -0
  423. package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts.map +1 -0
  424. package/lib/typescript/src/presentation/components/atoms/UIText.d.ts +14 -0
  425. package/lib/typescript/src/presentation/components/atoms/UIText.d.ts.map +1 -0
  426. package/lib/typescript/src/presentation/components/atoms/index.d.ts +13 -0
  427. package/lib/typescript/src/presentation/components/atoms/index.d.ts.map +1 -0
  428. package/lib/typescript/src/presentation/components/index.d.ts +2 -0
  429. package/lib/typescript/src/presentation/components/index.d.ts.map +1 -0
  430. package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts +17 -0
  431. package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts.map +1 -0
  432. package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts +18 -0
  433. package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts.map +1 -0
  434. package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts +8 -0
  435. package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts.map +1 -0
  436. package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts +16 -0
  437. package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts.map +1 -0
  438. package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts +17 -0
  439. package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts.map +1 -0
  440. package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts +11 -0
  441. package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts.map +1 -0
  442. package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts +9 -0
  443. package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts.map +1 -0
  444. package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts +9 -0
  445. package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts.map +1 -0
  446. package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts +10 -0
  447. package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts.map +1 -0
  448. package/lib/typescript/src/presentation/components/molecules/UIError.d.ts +8 -0
  449. package/lib/typescript/src/presentation/components/molecules/UIError.d.ts.map +1 -0
  450. package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts +11 -0
  451. package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts.map +1 -0
  452. package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts +15 -0
  453. package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts.map +1 -0
  454. package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts +9 -0
  455. package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts.map +1 -0
  456. package/lib/typescript/src/presentation/components/molecules/UIList.d.ts +5 -0
  457. package/lib/typescript/src/presentation/components/molecules/UIList.d.ts.map +1 -0
  458. package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts +12 -0
  459. package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts.map +1 -0
  460. package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts +5 -0
  461. package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts.map +1 -0
  462. package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts +8 -0
  463. package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts.map +1 -0
  464. package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts +10 -0
  465. package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts.map +1 -0
  466. package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts +13 -0
  467. package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts.map +1 -0
  468. package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts +16 -0
  469. package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts.map +1 -0
  470. package/lib/typescript/src/presentation/components/molecules/index.d.ts +21 -0
  471. package/lib/typescript/src/presentation/components/molecules/index.d.ts.map +1 -0
  472. package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts +13 -0
  473. package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts.map +1 -0
  474. package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts +6 -0
  475. package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts.map +1 -0
  476. package/lib/typescript/src/presentation/components/organisms/UICard.d.ts +9 -0
  477. package/lib/typescript/src/presentation/components/organisms/UICard.d.ts.map +1 -0
  478. package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts +9 -0
  479. package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts.map +1 -0
  480. package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts +9 -0
  481. package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts.map +1 -0
  482. package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts +13 -0
  483. package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts.map +1 -0
  484. package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts +11 -0
  485. package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts.map +1 -0
  486. package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts +9 -0
  487. package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts.map +1 -0
  488. package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts +11 -0
  489. package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts.map +1 -0
  490. package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts +10 -0
  491. package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts.map +1 -0
  492. package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts +30 -0
  493. package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts.map +1 -0
  494. package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts +9 -0
  495. package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts.map +1 -0
  496. package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts +44 -0
  497. package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts.map +1 -0
  498. package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts +11 -0
  499. package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts.map +1 -0
  500. package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts +11 -0
  501. package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts.map +1 -0
  502. package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts +14 -0
  503. package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts.map +1 -0
  504. package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts +6 -0
  505. package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts.map +1 -0
  506. package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts +13 -0
  507. package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts.map +1 -0
  508. package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts +26 -0
  509. package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts.map +1 -0
  510. package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts +8 -0
  511. package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts.map +1 -0
  512. package/lib/typescript/src/presentation/components/organisms/index.d.ts +22 -0
  513. package/lib/typescript/src/presentation/components/organisms/index.d.ts.map +1 -0
  514. package/lib/typescript/src/presentation/components/permissions/index.d.ts +2 -0
  515. package/lib/typescript/src/presentation/components/permissions/index.d.ts.map +1 -0
  516. package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts +15 -0
  517. package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts.map +1 -0
  518. package/lib/typescript/src/presentation/domain/metadata/index.d.ts +3 -0
  519. package/lib/typescript/src/presentation/domain/metadata/index.d.ts.map +1 -0
  520. package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts +11 -0
  521. package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts.map +1 -0
  522. package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts +11 -0
  523. package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts.map +1 -0
  524. package/lib/typescript/src/presentation/domain/offline/index.d.ts +10 -0
  525. package/lib/typescript/src/presentation/domain/offline/index.d.ts.map +1 -0
  526. package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts +18 -0
  527. package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts.map +1 -0
  528. package/lib/typescript/src/presentation/domain/offline/types.d.ts +18 -0
  529. package/lib/typescript/src/presentation/domain/offline/types.d.ts.map +1 -0
  530. package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts +78 -0
  531. package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts.map +1 -0
  532. package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts +9 -0
  533. package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts.map +1 -0
  534. package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts +3 -0
  535. package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts.map +1 -0
  536. package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts +88 -0
  537. package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts.map +1 -0
  538. package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts +8 -0
  539. package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts.map +1 -0
  540. package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts +10 -0
  541. package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts.map +1 -0
  542. package/lib/typescript/src/presentation/domain/offline/utils.d.ts +18 -0
  543. package/lib/typescript/src/presentation/domain/offline/utils.d.ts.map +1 -0
  544. package/lib/typescript/src/presentation/domain/provider/index.d.ts +2 -0
  545. package/lib/typescript/src/presentation/domain/provider/index.d.ts.map +1 -0
  546. package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts +13 -0
  547. package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts.map +1 -0
  548. package/lib/typescript/src/presentation/domain/utils/exists.d.ts +2 -0
  549. package/lib/typescript/src/presentation/domain/utils/exists.d.ts.map +1 -0
  550. package/lib/typescript/src/presentation/domain/utils/index.d.ts +6 -0
  551. package/lib/typescript/src/presentation/domain/utils/index.d.ts.map +1 -0
  552. package/lib/typescript/src/presentation/domain/utils/react-query.d.ts +5 -0
  553. package/lib/typescript/src/presentation/domain/utils/react-query.d.ts.map +1 -0
  554. package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts +6 -0
  555. package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts.map +1 -0
  556. package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts +15 -0
  557. package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts.map +1 -0
  558. package/lib/typescript/src/presentation/domain/utils/yup.d.ts +3 -0
  559. package/lib/typescript/src/presentation/domain/utils/yup.d.ts.map +1 -0
  560. package/lib/typescript/src/theme.d.ts +214 -0
  561. package/lib/typescript/src/theme.d.ts.map +1 -0
  562. package/package.json +210 -0
  563. package/src/assets/logo.png +0 -0
  564. package/src/data/errors/http-client-error.ts +23 -0
  565. package/src/data/errors/index.ts +3 -0
  566. package/src/data/errors/save-file-error.ts +6 -0
  567. package/src/data/errors/unsupported-platform.ts +6 -0
  568. package/src/data/models/index.ts +3 -0
  569. package/src/data/models/remote-get-comment-list-model.ts +15 -0
  570. package/src/data/models/remote-get-image-list-model.ts +15 -0
  571. package/src/data/models/remote-user-model.ts +13 -0
  572. package/src/data/protocols/cookie-manager.ts +6 -0
  573. package/src/data/protocols/download-manager.ts +13 -0
  574. package/src/data/protocols/http-client.ts +75 -0
  575. package/src/data/protocols/index.ts +6 -0
  576. package/src/data/protocols/notification-manager.ts +17 -0
  577. package/src/data/protocols/permission-manager.ts +46 -0
  578. package/src/data/protocols/storage.ts +18 -0
  579. package/src/data/use-cases/index.ts +3 -0
  580. package/src/data/use-cases/remote-get-comment-list.ts +34 -0
  581. package/src/data/use-cases/remote-get-image-list.ts +40 -0
  582. package/src/data/use-cases/remote-send-diagnostics.ts +20 -0
  583. package/src/domain/errors/authentication-expired-error.ts +6 -0
  584. package/src/domain/errors/index.ts +4 -0
  585. package/src/domain/errors/internal-server-error.ts +6 -0
  586. package/src/domain/errors/invalid-credentials-error.ts +6 -0
  587. package/src/domain/errors/no-app-permission-error.ts +6 -0
  588. package/src/domain/models/get-comment-list-model.ts +9 -0
  589. package/src/domain/models/get-image-list-model.ts +7 -0
  590. package/src/domain/models/index.ts +3 -0
  591. package/src/domain/models/user-model.ts +15 -0
  592. package/src/domain/use-cases/get-comment-list.ts +14 -0
  593. package/src/domain/use-cases/get-image-list.ts +14 -0
  594. package/src/domain/use-cases/index.ts +6 -0
  595. package/src/domain/use-cases/record-request.ts +15 -0
  596. package/src/domain/use-cases/send-diagnostics.ts +15 -0
  597. package/src/domain/use-cases/user-authentication.ts +16 -0
  598. package/src/domain/use-cases/user-logout.ts +10 -0
  599. package/src/index.tsx +29 -0
  600. package/src/infra/axios-http-client-adapter.ts +271 -0
  601. package/src/infra/index.ts +7 -0
  602. package/src/infra/isomorphic-id-manager.ts +107 -0
  603. package/src/infra/mmkv-storage-adapter.ts +73 -0
  604. package/src/infra/notifee-notification-manager-adapter.ts +87 -0
  605. package/src/infra/offline-mutation-queue.ts +280 -0
  606. package/src/infra/rnbu-download-manager-adapter.ts +29 -0
  607. package/src/infra/rnp-permission-manager-adapter.ts +147 -0
  608. package/src/infra/storage-cookie-manager-adapter.ts +29 -0
  609. package/src/main/components/index.ts +4 -0
  610. package/src/main/components/request-permissions.tsx +17 -0
  611. package/src/main/factories/infra/download-manager-factory.ts +6 -0
  612. package/src/main/factories/infra/http-client-factory.ts +9 -0
  613. package/src/main/factories/infra/index.ts +7 -0
  614. package/src/main/factories/infra/isomorphic-id-manager-factory.ts +6 -0
  615. package/src/main/factories/infra/notification-manager-factory.ts +8 -0
  616. package/src/main/factories/infra/offline-mutation-queue-factory.ts +22 -0
  617. package/src/main/factories/infra/permission-manager-factory.ts +6 -0
  618. package/src/main/factories/infra/storage-factory.ts +11 -0
  619. package/src/main/factories/use-cases/index.ts +3 -0
  620. package/src/main/factories/use-cases/remote-get-comment-list-factory.ts +6 -0
  621. package/src/main/factories/use-cases/remote-get-image-list-factory.ts +6 -0
  622. package/src/main/factories/use-cases/remote-send-diagnostics-factory.ts +10 -0
  623. package/src/presentation/components/atoms/UIBackdrop.tsx +35 -0
  624. package/src/presentation/components/atoms/UICheckbox.tsx +58 -0
  625. package/src/presentation/components/atoms/UIDot.tsx +40 -0
  626. package/src/presentation/components/atoms/UIIcon.tsx +1091 -0
  627. package/src/presentation/components/atoms/UILoading.tsx +17 -0
  628. package/src/presentation/components/atoms/UIPage.tsx +92 -0
  629. package/src/presentation/components/atoms/UIProgress.tsx +60 -0
  630. package/src/presentation/components/atoms/UIScrollPage.tsx +87 -0
  631. package/src/presentation/components/atoms/UISeparator.tsx +41 -0
  632. package/src/presentation/components/atoms/UISpacer.tsx +21 -0
  633. package/src/presentation/components/atoms/UIStack.tsx +44 -0
  634. package/src/presentation/components/atoms/UIText.tsx +59 -0
  635. package/src/presentation/components/atoms/index.ts +12 -0
  636. package/src/presentation/components/index.ts +1 -0
  637. package/src/presentation/components/molecules/UIActionSheet.tsx +230 -0
  638. package/src/presentation/components/molecules/UIButton.tsx +192 -0
  639. package/src/presentation/components/molecules/UIButtonCTA.tsx +38 -0
  640. package/src/presentation/components/molecules/UICheckboxInput.tsx +106 -0
  641. package/src/presentation/components/molecules/UIChip.tsx +69 -0
  642. package/src/presentation/components/molecules/UICurrencyInput.tsx +43 -0
  643. package/src/presentation/components/molecules/UIDataList.tsx +30 -0
  644. package/src/presentation/components/molecules/UIDataSectionList.tsx +30 -0
  645. package/src/presentation/components/molecules/UIDatetimeInput.tsx +205 -0
  646. package/src/presentation/components/molecules/UIError.tsx +24 -0
  647. package/src/presentation/components/molecules/UIImage.tsx +85 -0
  648. package/src/presentation/components/molecules/UIInlineDatePicker.tsx +244 -0
  649. package/src/presentation/components/molecules/UIInputIcon.tsx +39 -0
  650. package/src/presentation/components/molecules/UIList.tsx +17 -0
  651. package/src/presentation/components/molecules/UIRadioInput.tsx +97 -0
  652. package/src/presentation/components/molecules/UISectionList.tsx +17 -0
  653. package/src/presentation/components/molecules/UISkeleton.tsx +66 -0
  654. package/src/presentation/components/molecules/UISwitch.tsx +72 -0
  655. package/src/presentation/components/molecules/UITextInput.tsx +160 -0
  656. package/src/presentation/components/molecules/UITextInputMask.tsx +160 -0
  657. package/src/presentation/components/molecules/index.ts +20 -0
  658. package/src/presentation/components/organisms/UIAppBar.tsx +103 -0
  659. package/src/presentation/components/organisms/UIAppBarAction.tsx +13 -0
  660. package/src/presentation/components/organisms/UICard.tsx +48 -0
  661. package/src/presentation/components/organisms/UIComment.tsx +64 -0
  662. package/src/presentation/components/organisms/UIErrorBoundary.tsx +72 -0
  663. package/src/presentation/components/organisms/UIForm.tsx +81 -0
  664. package/src/presentation/components/organisms/UIFormButton.tsx +38 -0
  665. package/src/presentation/components/organisms/UIFormCheckboxInput.tsx +35 -0
  666. package/src/presentation/components/organisms/UIFormCurrencyInput.tsx +65 -0
  667. package/src/presentation/components/organisms/UIFormDatetimeInput.tsx +51 -0
  668. package/src/presentation/components/organisms/UIFormMultiselectInput.tsx +251 -0
  669. package/src/presentation/components/organisms/UIFormRadioInput.tsx +32 -0
  670. package/src/presentation/components/organisms/UIFormSelectInput.tsx +316 -0
  671. package/src/presentation/components/organisms/UIFormTextInput.tsx +62 -0
  672. package/src/presentation/components/organisms/UIFormTextInputMask.tsx +79 -0
  673. package/src/presentation/components/organisms/UIRow.tsx +61 -0
  674. package/src/presentation/components/organisms/UISearchInput.tsx +40 -0
  675. package/src/presentation/components/organisms/UISelectChip.tsx +104 -0
  676. package/src/presentation/components/organisms/UISignature.tsx +194 -0
  677. package/src/presentation/components/organisms/UISlideButton.tsx +112 -0
  678. package/src/presentation/components/organisms/index.ts +21 -0
  679. package/src/presentation/components/permissions/index.ts +1 -0
  680. package/src/presentation/components/permissions/request-permissions.tsx +115 -0
  681. package/src/presentation/domain/metadata/index.ts +2 -0
  682. package/src/presentation/domain/metadata/use-comments.ts +27 -0
  683. package/src/presentation/domain/metadata/use-images.ts +27 -0
  684. package/src/presentation/domain/offline/index.ts +9 -0
  685. package/src/presentation/domain/offline/offline-mutation-queue-provider.tsx +95 -0
  686. package/src/presentation/domain/offline/types.ts +21 -0
  687. package/src/presentation/domain/offline/use-infinite-offline-query.tsx +89 -0
  688. package/src/presentation/domain/offline/use-offline-id-v2.ts +29 -0
  689. package/src/presentation/domain/offline/use-offline-id.ts +12 -0
  690. package/src/presentation/domain/offline/use-offline-mutation.ts +150 -0
  691. package/src/presentation/domain/offline/use-offline-query.ts +55 -0
  692. package/src/presentation/domain/offline/use-offline-queue.ts +6 -0
  693. package/src/presentation/domain/offline/utils.ts +139 -0
  694. package/src/presentation/domain/provider/index.ts +1 -0
  695. package/src/presentation/domain/provider/zuq-core-provider.tsx +52 -0
  696. package/src/presentation/domain/utils/exists.ts +3 -0
  697. package/src/presentation/domain/utils/index.ts +5 -0
  698. package/src/presentation/domain/utils/react-query.ts +10 -0
  699. package/src/presentation/domain/utils/use-action-sheet.ts +21 -0
  700. package/src/presentation/domain/utils/use-signature-ref.ts +19 -0
  701. package/src/presentation/domain/utils/yup.ts +3 -0
  702. package/src/theme.ts +240 -0
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { UIIcon, UIStack, UIText } from "../atoms/index.js";
5
+ import { UIButton } from "../molecules/index.js";
6
+ import { theme } from "../../../theme.js";
7
+ import { useNetInfo } from '@react-native-community/netinfo';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const UIAppBar = ({
10
+ left,
11
+ right,
12
+ title,
13
+ variant = 'left',
14
+ style,
15
+ wrapperStyle,
16
+ titleStyle,
17
+ ...props
18
+ }) => {
19
+ const {
20
+ isConnected
21
+ } = useNetInfo();
22
+ const withBasePadding = !left && !right;
23
+ if (variant === 'center') {
24
+ if (!left) left = /*#__PURE__*/_jsx(UIButton, {
25
+ disabled: true,
26
+ style: styles.empty
27
+ });
28
+ if (!right) right = /*#__PURE__*/_jsx(UIButton, {
29
+ disabled: true,
30
+ style: styles.empty
31
+ });
32
+ }
33
+ return /*#__PURE__*/_jsxs(UIStack, {
34
+ style: [styles.wrapper, wrapperStyle],
35
+ children: [/*#__PURE__*/_jsxs(UIStack, {
36
+ horizontal: true,
37
+ center: true,
38
+ style: [styles.container, withBasePadding && styles.basePadding, style],
39
+ ...props,
40
+ children: [/*#__PURE__*/_jsx(UIStack, {
41
+ style: variant !== 'left' && styles.left,
42
+ children: left
43
+ }), /*#__PURE__*/_jsx(UIText, {
44
+ weight: "600",
45
+ align: "center",
46
+ style: [styles.title, titleStyle],
47
+ children: title
48
+ }), /*#__PURE__*/_jsx(UIStack, {
49
+ style: styles.right,
50
+ children: right
51
+ })]
52
+ }), isConnected === false && /*#__PURE__*/_jsxs(UIStack, {
53
+ horizontal: true,
54
+ center: true,
55
+ justify: "center",
56
+ style: styles.offlineContainer,
57
+ children: [/*#__PURE__*/_jsx(UIIcon, {
58
+ name: "no-wifi",
59
+ color: theme.color.feedback.red['500']
60
+ }), /*#__PURE__*/_jsx(UIText, {
61
+ color: "feedback-red-500",
62
+ children: "Sem conex\xE3o"
63
+ })]
64
+ })]
65
+ });
66
+ };
67
+ const styles = StyleSheet.create({
68
+ container: {
69
+ paddingHorizontal: 4,
70
+ paddingVertical: 4,
71
+ backgroundColor: theme.color.neutral.light['00']
72
+ },
73
+ title: {
74
+ marginHorizontal: 4,
75
+ fontSize: 16,
76
+ flexShrink: 1
77
+ },
78
+ basePadding: {
79
+ paddingVertical: 16,
80
+ paddingHorizontal: 8
81
+ },
82
+ offlineContainer: {
83
+ backgroundColor: theme.color.feedback.red['50'],
84
+ paddingVertical: 4,
85
+ paddingHorizontal: 8
86
+ },
87
+ wrapper: {
88
+ paddingBottom: 6,
89
+ backgroundColor: '#fff'
90
+ },
91
+ left: {
92
+ marginRight: 'auto'
93
+ },
94
+ right: {
95
+ marginLeft: 'auto'
96
+ },
97
+ empty: {
98
+ padding: 12,
99
+ paddingHorizontal: 24
100
+ }
101
+ });
102
+ //# sourceMappingURL=UIAppBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","UIIcon","UIStack","UIText","UIButton","theme","useNetInfo","jsx","_jsx","jsxs","_jsxs","UIAppBar","left","right","title","variant","style","wrapperStyle","titleStyle","props","isConnected","withBasePadding","disabled","styles","empty","wrapper","children","horizontal","center","container","basePadding","weight","align","justify","offlineContainer","name","color","feedback","red","create","paddingHorizontal","paddingVertical","backgroundColor","neutral","light","marginHorizontal","fontSize","flexShrink","paddingBottom","marginRight","marginLeft","padding"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIAppBar.tsx"],"mapp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C,QAAQ,CAACC,GAAG,CAAC,IAAI,CAAC;IAC/CG,eAAe,EAAE,CAAC;IAClBD,iBAAiB,EAAE;EACrB,CAAC;EACDf,OAAO,EAAE;IACPuB,aAAa,EAAE,CAAC;IAChBN,eAAe,EAAE;EACnB,CAAC;EACD9B,IAAI,EAAE;IACJqC,WAAW,EAAE;EACf,CAAC;EACDpC,KAAK,EAAE;IACLqC,UAAU,EAAE;EACd,CAAC;EACD1B,KAAK,EAAE;IACL2B,OAAO,EAAE,EAAE;IACXX,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { UIButton } from "../molecules/index.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const UIAppBarAction = ({
7
+ style,
8
+ ...props
9
+ }) => {
10
+ return /*#__PURE__*/_jsx(UIButton, {
11
+ borderless: true,
12
+ style: [styles.button, style],
13
+ ...props
14
+ });
15
+ };
16
+ const styles = StyleSheet.create({
17
+ button: {
18
+ padding: 12
19
+ }
20
+ });
21
+ //# sourceMappingURL=UIAppBarAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","UIButton","jsx","_jsx","UIAppBarAction","style","props","borderless","styles","button","create","padding"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIAppBarAction.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,QAAQ,QAAQ,uBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAKxC,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAAEC,KAAK;EAAE,GAAGC;AAAa,CAAC,KAAK;EAC5D,oBACEH,IAAA,CAACF,QAAQ;IAACM,UAAU;IAACF,KAAK,EAAE,CAACG,MAAM,CAACC,MAAM,EAAEJ,KAAK,CAAS;IAAA,GAAKC;EAAK,CAAG,CAAC;AAE5E,CAAC;AAED,MAAME,MAAM,GAAGR,UAAU,CAACU,MAAM,CAAC;EAAED,MAAM,EAAE;IAAEE,OAAO,EAAE;EAAG;AAAE,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ import { Platform, StyleSheet } from 'react-native';
4
+ import { UIButton } from "../molecules/index.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const UICard = ({
7
+ style,
8
+ children,
9
+ pressable,
10
+ disabled,
11
+ ...props
12
+ }) => {
13
+ return /*#__PURE__*/_jsx(UIButton, {
14
+ disabled: !pressable || disabled,
15
+ style: [styles.common, styles.card, style],
16
+ ...props,
17
+ children: children
18
+ });
19
+ };
20
+ const styles = StyleSheet.create({
21
+ common: {
22
+ borderRadius: 8
23
+ },
24
+ card: {
25
+ backgroundColor: '#fff',
26
+ shadowColor: '#808080',
27
+ margin: 4,
28
+ ...Platform.select({
29
+ android: {
30
+ elevation: 3
31
+ },
32
+ ios: {
33
+ shadowOffset: {
34
+ width: -2,
35
+ height: 4
36
+ },
37
+ shadowRadius: 3,
38
+ shadowOpacity: 0.8
39
+ }
40
+ })
41
+ }
42
+ });
43
+ //# sourceMappingURL=UICard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","StyleSheet","UIButton","jsx","_jsx","UICard","style","children","pressable","disabled","props","styles","common","card","create","borderRadius","backgroundColor","shadowColor","margin","select","android","elevation","ios","shadowOffset","width","height","shadowRadius","shadowOpacity"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UICard.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,QAAQ,QAAQ,uBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOxC,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,KAAK;EACLC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACR,GAAGC;AACE,CAAC,KAAK;EACX,oBACEN,IAAA,CAACF,QAAQ;IACPO,QAAQ,EAAE,CAACD,SAAS,IAAIC,QAAS;IACjCH,KAAK,EAAE,CAACK,MAAM,CAACC,MAAM,EAAED,MAAM,CAACE,IAAI,EAAEP,KAAK,CAAE;IAAA,GACvCI,KAAK;IAAAH,QAAA,EAERA;EAAQ,CACD,CAAC;AAEf,CAAC;AAED,MAAMI,MAAM,GAAGV,UAAU,CAACa,MAAM,CAAC;EAC/BF,MAAM,EAAE;IACNG,YAAY,EAAE;EAChB,CAAC;EACDF,IAAI,EAAE;IACJG,eAAe,EAAE,MAAM;IACvBC,WAAW,EAAE,SAAS;IACtBC,MAAM,EAAE,CAAC;IACT,GAAGlB,QAAQ,CAACmB,MAAM,CAAY;MAC5BC,OAAO,EAAE;QAAEC,SAAS,EAAE;MAAE,CAAC;MACzBC,GAAG,EAAE;QACHC,YAAY,EAAE;UACZC,KAAK,EAAE,CAAC,CAAC;UACTC,MAAM,EAAE;QACV,CAAC;QACDC,YAAY,EAAE,CAAC;QACfC,aAAa,EAAE;MACjB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, Image } from 'react-native';
4
+ import { UIIcon, UIStack, UIText } from "../atoms/index.js";
5
+ import { formatDistanceToNow } from 'date-fns';
6
+ import { ptBR } from 'date-fns/locale';
7
+ import { theme } from "../../../theme.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const UIComment = ({
10
+ name,
11
+ comment,
12
+ picture,
13
+ date
14
+ }) => {
15
+ return /*#__PURE__*/_jsx(UIStack, {
16
+ style: styles.container,
17
+ children: /*#__PURE__*/_jsxs(UIStack, {
18
+ horizontal: true,
19
+ center: true,
20
+ size: "md",
21
+ children: [picture ? /*#__PURE__*/_jsx(Image, {
22
+ source: {
23
+ uri: picture
24
+ },
25
+ style: styles.user
26
+ }) : /*#__PURE__*/_jsx(UIStack, {
27
+ center: true,
28
+ style: styles.user,
29
+ children: /*#__PURE__*/_jsx(UIIcon, {
30
+ name: "user",
31
+ size: 24,
32
+ color: theme.color.brand.violet['500']
33
+ })
34
+ }), /*#__PURE__*/_jsxs(UIStack, {
35
+ flex: 1,
36
+ children: [/*#__PURE__*/_jsxs(UIStack, {
37
+ horizontal: true,
38
+ center: true,
39
+ size: "md",
40
+ children: [/*#__PURE__*/_jsx(UIText, {
41
+ weight: "500",
42
+ size: 12,
43
+ children: name
44
+ }), date && /*#__PURE__*/_jsx(UIText, {
45
+ size: 12,
46
+ color: "neutral-mid-60",
47
+ children: formatDistanceToNow(date, {
48
+ addSuffix: true,
49
+ locale: ptBR
50
+ })
51
+ })]
52
+ }), /*#__PURE__*/_jsx(UIText, {
53
+ variant: "body",
54
+ color: "neutral-mid-60",
55
+ children: comment
56
+ })]
57
+ })]
58
+ })
59
+ });
60
+ };
61
+ const styles = StyleSheet.create({
62
+ user: {
63
+ backgroundColor: theme.color.neutral.light['10'],
64
+ borderRadius: 20,
65
+ justifyContent: 'center',
66
+ height: 40,
67
+ width: 40
68
+ },
69
+ container: {
70
+ paddingVertical: 8
71
+ }
72
+ });
73
+ //# sourceMappingURL=UIComment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Image","UIIcon","UIStack","UIText","formatDistanceToNow","ptBR","theme","jsx","_jsx","jsxs","_jsxs","UIComment","name","comment","picture","date","style","styles","container","children","horizontal","center","size","source","uri","user","color","brand","violet","flex","weight","addSuffix","locale","variant","create","backgroundColor","neutral","light","borderRadius","justifyContent","height","width","paddingVertical"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIComment.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAChD,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAElD,SAASC,mBAAmB,QAAQ,UAAU;AAC9C,SAASC,IAAI,QAAQ,iBAAiB;AACtC,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,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,CAACL,MAAM;UAAC8B,OAAO,EAAC,MAAM;UAACP,KAAK,EAAC,gBAAgB;UAAAP,QAAA,EAC1CN;QAAO,CACF,CAAC;MAAA,CACF,CAAC;IAAA,CACH;EAAC,CACH,CAAC;AAEd,CAAC;AAED,MAAMI,MAAM,GAAGlB,UAAU,CAACmC,MAAM,CAAC;EAC/BT,IAAI,EAAE;IACJU,eAAe,EAAE7B,KAAK,CAACoB,KAAK,CAACU,OAAO,CAACC,KAAK,CAAC,IAAI,CAAC;IAChDC,YAAY,EAAE,EAAE;IAChBC,cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE;EACT,CAAC;EACDvB,SAAS,EAAE;IACTwB,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import ErrorBoundary from 'react-native-error-boundary';
5
+ import { UIPage, UIStack, UIText } from "../atoms/index.js";
6
+ import { UIAppBar } from "./UIAppBar.js";
7
+ import { UIButton } from "../molecules/index.js";
8
+ import { StyleSheet } from 'react-native';
9
+ import { useMutation } from '@tanstack/react-query';
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ export const UIErrorBoundary = ({
12
+ onRecordError,
13
+ onSendDiagnostics,
14
+ onResetError,
15
+ children
16
+ }) => {
17
+ const sendDiagnostic = useMutation({
18
+ mutationFn: onSendDiagnostics
19
+ });
20
+ return /*#__PURE__*/_jsx(ErrorBoundary, {
21
+ FallbackComponent: ({
22
+ error,
23
+ resetError
24
+ }) => /*#__PURE__*/_jsx(UIPage, {
25
+ appBar: /*#__PURE__*/_jsx(UIAppBar, {
26
+ variant: "center",
27
+ title: "Erro inesperado"
28
+ }),
29
+ children: /*#__PURE__*/_jsxs(UIStack, {
30
+ flex: 1,
31
+ justify: "space-between",
32
+ style: styles.container,
33
+ children: [/*#__PURE__*/_jsxs(UIStack, {
34
+ children: [/*#__PURE__*/_jsxs(UIText, {
35
+ variant: "subtitle",
36
+ children: ["Sentimos muito :", '(']
37
+ }), /*#__PURE__*/_jsx(UIText, {
38
+ color: "neutral-mid-60",
39
+ children: "Um erro inesperado aconteceu no nosso app, gostaria de enviar um diagn\xF3stico para que possamos corrigir o problema?"
40
+ })]
41
+ }), /*#__PURE__*/_jsxs(UIStack, {
42
+ children: [/*#__PURE__*/_jsx(UIButton, {
43
+ onPress: async () => {
44
+ await onResetError();
45
+ resetError();
46
+ },
47
+ children: "Limpar erro"
48
+ }), /*#__PURE__*/_jsx(UIButton, {
49
+ variant: "contained",
50
+ loading: sendDiagnostic.isPending,
51
+ onPress: async () => {
52
+ await sendDiagnostic.mutateAsync(error);
53
+ },
54
+ children: "Enviar diagn\xF3stico"
55
+ })]
56
+ })]
57
+ })
58
+ }),
59
+ onError: onRecordError,
60
+ children: children
61
+ });
62
+ };
63
+ const styles = StyleSheet.create({
64
+ container: {
65
+ paddingBottom: 32
66
+ }
67
+ });
68
+ //# sourceMappingURL=UIErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ErrorBoundary","UIPage","UIStack","UIText","UIAppBar","UIButton","StyleSheet","useMutation","jsx","_jsx","jsxs","_jsxs","UIErrorBoundary","onRecordError","onSendDiagnostics","onResetError","children","sendDiagnostic","mutationFn","FallbackComponent","error","resetError","appBar","variant","title","flex","justify","style","styles","container","color","onPress","loading","isPending","mutateAsync","onError","create","paddingBottom"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIErrorBoundary.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAEb,6BAA6B;AACpC,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAClD,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,QAAQ,QAAQ,uBAAc;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,uBAAuB;AAAC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,KAAK,CAAC;YACzC,CAAE;YAAAJ,QAAA,EACH;UAED,CAAU,CAAC;QAAA,CACJ,CAAC;MAAA,CACH;IAAC,CACJ,CACR;IACFmB,OAAO,EAAEtB,aAAc;IAAAG,QAAA,EAEtBA;EAAQ,CACI,CAAC;AAEpB,CAAC;AAED,MAAMY,MAAM,GAAGtB,UAAU,CAAC8B,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import { FormProvider, useForm } from 'react-hook-form';
6
+ import { UIIcon, UIText, UIStack } from "../atoms/index.js";
7
+ import { theme } from "../../../theme.js";
8
+ import { yupResolver } from '@hookform/resolvers/yup';
9
+ import { yup } from "../../domain/utils/index.js";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const defaultSchema = yup.object();
12
+ const getValueOrFallback = (value, fallback) => {
13
+ if (!value || !Object.keys(value ?? {}).length) return fallback;
14
+ return value;
15
+ };
16
+ export const UIForm = ({
17
+ defaultValues,
18
+ schema,
19
+ children,
20
+ errorProps,
21
+ form,
22
+ ...props
23
+ }) => {
24
+ const {
25
+ formState: {
26
+ errors: errorsBase,
27
+ isDirty: isDirtyBase,
28
+ ...formBaseState
29
+ },
30
+ ...formBase
31
+ } = useForm({
32
+ defaultValues: defaultValues ?? {},
33
+ resolver: yupResolver(schema ?? defaultSchema)
34
+ });
35
+ const {
36
+ formState: {
37
+ errors: errorsProp,
38
+ isDirty: isDirtyProp,
39
+ ...formPropState
40
+ },
41
+ ...formProp
42
+ } = form ?? {
43
+ formState: {}
44
+ };
45
+ const {
46
+ style,
47
+ ...error
48
+ } = errorProps ?? {};
49
+ const formProviderProps = {
50
+ ...getValueOrFallback(formProp, formBase),
51
+ formState: {
52
+ errors: getValueOrFallback(errorsProp, errorsBase),
53
+ isDirty: getValueOrFallback(isDirtyProp, isDirtyBase),
54
+ ...getValueOrFallback(formPropState, formBaseState)
55
+ }
56
+ };
57
+ const errors = errorsProp ?? errorsBase;
58
+ return /*#__PURE__*/_jsx(FormProvider, {
59
+ ...formProviderProps,
60
+ children: /*#__PURE__*/_jsxs(View, {
61
+ ...props,
62
+ children: [children, errors['_formError']?.message?.toString() && /*#__PURE__*/_jsxs(UIStack, {
63
+ horizontal: true,
64
+ center: true,
65
+ style: [styles.error, style],
66
+ ...error,
67
+ children: [/*#__PURE__*/_jsx(UIText, {
68
+ color: "feedback-red-500",
69
+ children: errors['_formError']?.message.toString()
70
+ }), /*#__PURE__*/_jsx(UIIcon, {
71
+ name: "warning",
72
+ color: theme.color.feedback.red['500']
73
+ })]
74
+ })]
75
+ })
76
+ });
77
+ };
78
+ const styles = StyleSheet.create({
79
+ error: {
80
+ marginTop: 12
81
+ }
82
+ });
83
+ //# sourceMappingURL=UIForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","FormProvider","useForm","UIIcon","UIText","UIStack","theme","yupResolver","yup","jsx","_jsx","jsxs","_jsxs","defaultSchema","object","getValueOrFallback","value","fallback","Object","keys","length","UIForm","defaultValues","schema","children","errorProps","form","props","formState","errors","errorsBase","isDirty","isDirtyBase","formBaseState","formBase","resolver","errorsProp","isDirtyProp","formPropState","formProp","style","error","formProviderProps","message","toString","horizontal","center","styles","color","name","feedback","red","create","marginTop"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIForm.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,YAAY,EAAEC,OAAO,QAAQ,iBAAiB;AAEvD,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAClD,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,GAAG,QAA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L,WAAW,CAAC;MACrD,GAAGjB,kBAAkB,CAACuB,aAAa,EAAEL,aAAa;IACpD;EACF,CAAC;EAED,MAAMJ,MAAM,GAAGO,UAAU,IAAIN,UAAU;EAEvC,oBACEpB,IAAA,CAACT,YAAY;IAAA,GAAKyC,iBAAiB;IAAAlB,QAAA,eACjCZ,KAAA,CAACZ,IAAI;MAAA,GAAK2B,KAAK;MAAAH,QAAA,GACZA,QAAQ,EACRK,MAAM,CAAC,YAAY,CAAC,EAAEc,OAAO,EAAEC,QAAQ,CAAC,CAAC,iBACxChC,KAAA,CAACP,OAAO;QAACwC,UAAU;QAACC,MAAM;QAACN,KAAK,EAAE,CAACO,MAAM,CAACN,KAAK,EAAED,KAAK,CAAE;QAAA,GAAKC,KAAK;QAAAjB,QAAA,gBAChEd,IAAA,CAACN,MAAM;UAAC4C,KAAK,EAAC,kBAAkB;UAAAxB,QAAA,EAC7BK,MAAM,CAAC,YAAY,CAAC,EAAEc,OAAO,CAACC,QAAQ,CAAC;QAAC,CACnC,CAAC,eACTlC,IAAA,CAACP,MAAM;UAAC8C,IAAI,EAAC,SAAS;UAACD,KAAK,EAAE1C,KAAK,CAAC0C,KAAK,CAACE,QAAQ,CAACC,GAAG,CAAC,KAAK;QAAE,CAAE,CAAC;MAAA,CAC1D,CACV;IAAA,CACG;EAAC,CACK,CAAC;AAEnB,CAAC;AAED,MAAMJ,MAAM,GAAGhD,UAAU,CAACqD,MAAM,CAAC;EAC/BX,KAAK,EAAE;IACLY,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { UIButton } from "../molecules/index.js";
5
+ import { useFormContext } from 'react-hook-form';
6
+ import { KeyboardController } from 'react-native-keyboard-controller';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const UIFormButton = ({
9
+ onSubmit,
10
+ getErrorMessage,
11
+ resetFormOnSubmit = true,
12
+ ...props
13
+ }) => {
14
+ const {
15
+ handleSubmit,
16
+ setError,
17
+ clearErrors,
18
+ reset
19
+ } = useFormContext();
20
+ const onPress = handleSubmit(async values => {
21
+ try {
22
+ await KeyboardController.dismiss({
23
+ animated: false,
24
+ keepFocus: false
25
+ });
26
+ clearErrors('_formError');
27
+ await onSubmit(values);
28
+ if (resetFormOnSubmit) reset();
29
+ } catch (e) {
30
+ const errorMessage = getErrorMessage?.(e, setError);
31
+ if (errorMessage) setError('_formError', {
32
+ message: errorMessage
33
+ });
34
+ }
35
+ }, () => {
36
+ KeyboardController.dismiss();
37
+ });
38
+ return /*#__PURE__*/_jsx(UIButton, {
39
+ onPress: () => onPress(),
40
+ ...props
41
+ });
42
+ };
43
+ //# sourceMappingURL=UIFormButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","UIButton","useFormContext","KeyboardController","jsx","_jsx","UIFormButton","onSubmit","getErrorMessage","resetFormOnSubmit","props","handleSubmit","setError","clearErrors","reset","onPress","values","dismiss","animated","keepFocus","e","errorMessage","message"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,uBAAc;AACvC,SAA6BC,cAAc,QAAQ,iBAAiB;AACpE,SAASC,kBAAkB,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQtE,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,QAAQ;EACRC,eAAe;EACfC,iBAAiB,GAAG,IAAI;EACxB,GAAGC;AACE,CAAC,KAAK;EACX,MAAM;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,WAAW;IAAEC;EAAM,CAAC,GAAGZ,cAAc,CAAC,CAAC;EAEvE,MAAMa,OAAO,GAAGJ,YAAY,CAC1B,MAAOK,MAAM,IAAK;IAChB,IAAI;MACF,MAAMb,kBAAkB,CAACc,OAAO,CAAC;QAAEC,QAAQ,EAAE,KAAK;QAAEC,SAAS,EAAE;MAAM,CAAC,CAAC;MACvEN,WAAW,CAAC,YAAY,CAAC;MACzB,MAAMN,QAAQ,CAACS,MAAM,CAAC;MACtB,IAAIP,iBAAiB,EAAEK,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC,OAAOM,CAAC,EAAE;MACV,MAAMC,YAAY,GAAGb,eAAe,GAAGY,CAAC,EAAER,QAAQ,CAAC;MACnD,IAAIS,YAAY,EAAET,QAAQ,CAAC,YAAY,EAAE;QAAEU,OAAO,EAAED;MAAa,CAAC,CAAC;IACrE;EACF,CAAC,EACD,MAAM;IACJlB,kBAAkB,CAACc,OAAO,CAAC,CAAC;EAC9B,CACF,CAAC;EAED,oBAAOZ,IAAA,CAACJ,QAAQ;IAACc,OAAO,EAAEA,CAAA,KAAMA,OAAO,CAAC,CAAE;IAAA,GAAKL;EAAK,CAAG,CAAC;AAC1D,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { UICheckboxInput } from "../molecules/index.js";
5
+ import { useController, useFormContext } from 'react-hook-form';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const UIFormCheckboxInput = ({
8
+ name,
9
+ value,
10
+ onPress,
11
+ ...props
12
+ }) => {
13
+ const {
14
+ control
15
+ } = useFormContext();
16
+ const {
17
+ field
18
+ } = useController({
19
+ control,
20
+ name
21
+ });
22
+ return /*#__PURE__*/_jsx(UICheckboxInput, {
23
+ onPress: e => {
24
+ onPress?.(e);
25
+ const {
26
+ value: current,
27
+ onChange
28
+ } = field;
29
+ if (current?.includes(value)) {
30
+ onChange(current?.filter(item => item !== value));
31
+ } else {
32
+ onChange([...(current ?? []), value]);
33
+ }
34
+ },
35
+ selected: field.value?.includes(value),
36
+ ...props
37
+ });
38
+ };
39
+ //# sourceMappingURL=UIFormCheckboxInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","UICheckboxInput","useController","useFormContext","jsx","_jsx","UIFormCheckboxInput","name","value","onPress","props","control","field","e","current","onChange","includes","filter","item","selected"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormCheckboxInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,uBAAc;AAC9C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhE,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,IAAI;EACJC,KAAK;EACLC,OAAO;EACP,GAAGC;AACE,CAAC,KAAK;EACX,MAAM;IAAEC;EAAQ,CAAC,GAAGR,cAAc,CAAC,CAAC;EAEpC,MAAM;IAAES;EAAM,CAAC,GAAGV,aAAa,CAAC;IAAES,OAAO;IAAEJ;EAAK,CAAC,CAAC;EAElD,oBACEF,IAAA,CAACJ,eAAe;IACdQ,OAAO,EAAGI,CAAC,IAAK;MACdJ,OAAO,GAAGI,CAAC,CAAC;MACZ,MAAM;QAAEL,KAAK,EAAEM,OAAO;QAAEC;MAAS,CAAC,GAAGH,KAAK;MAC1C,IAAIE,OAAO,EAAEE,QAAQ,CAACR,KAAK,CAAC,EAAE;QAC5BO,QAAQ,CAACD,OAAO,EAAEG,MAAM,CAAEC,IAAY,IAAKA,IAAI,KAAKV,KAAK,CAAC,CAAC;MAC7D,CAAC,MAAM;QACLO,QAAQ,CAAC,CAAC,IAAID,OAAO,IAAI,EAAE,CAAC,EAAEN,KAAK,CAAC,CAAC;MACvC;IACF,CAAE;IACFW,QAAQ,EAAEP,KAAK,CAACJ,KAAK,EAAEQ,QAAQ,CAACR,KAAK,CAAE;IAAA,GACnCE;EAAK,CACV,CAAC;AAEN,CAAC","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { UICurrencyInput } from "../molecules/index.js";
5
+ import { useController, useFormContext } from 'react-hook-form';
6
+ import { theme } from "../../../theme.js";
7
+ import { UIIcon, UIText, UIStack } from "../atoms/index.js";
8
+ import { StyleSheet } from 'react-native';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export const UIFormCurrencyInput = /*#__PURE__*/React.forwardRef(({
11
+ name,
12
+ containerStyle,
13
+ formContainerStyle,
14
+ onChangeValue,
15
+ ...props
16
+ }, ref) => {
17
+ const [value, setValue] = React.useState(null);
18
+ const {
19
+ control,
20
+ formState: {
21
+ errors
22
+ }
23
+ } = useFormContext();
24
+ const {
25
+ field
26
+ } = useController({
27
+ name,
28
+ control
29
+ });
30
+ const hasError = Boolean(errors[name]);
31
+ React.useEffect(() => {
32
+ setValue(Number(field.value));
33
+ }, [field.value]);
34
+ return /*#__PURE__*/_jsxs(UIStack, {
35
+ style: [styles.container, formContainerStyle],
36
+ children: [/*#__PURE__*/_jsx(UICurrencyInput, {
37
+ ref: ref,
38
+ value: value,
39
+ onChangeValue: value => {
40
+ field.onChange(String(value ?? ''));
41
+ onChangeValue?.(value);
42
+ },
43
+ containerStyle: [hasError && {
44
+ borderColor: theme.color.feedback.red['500']
45
+ }, containerStyle],
46
+ ...props
47
+ }), hasError && /*#__PURE__*/_jsxs(UIStack, {
48
+ horizontal: true,
49
+ center: true,
50
+ children: [/*#__PURE__*/_jsx(UIText, {
51
+ color: "feedback-red-500",
52
+ children: errors[name]?.message?.toString()
53
+ }), /*#__PURE__*/_jsx(UIIcon, {
54
+ name: "warning",
55
+ color: theme.color.feedback.red['500']
56
+ })]
57
+ })]
58
+ });
59
+ });
60
+ const styles = StyleSheet.create({
61
+ container: {
62
+ flexGrow: 1
63
+ }
64
+ });
65
+ //# sourceMappingURL=UIFormCurrencyInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","UICurrencyInput","useController","useFormContext","theme","UIIcon","UIText","UIStack","StyleSheet","jsx","_jsx","jsxs","_jsxs","UIFormCurrencyInput","forwardRef","name","containerStyle","formContainerStyle","onChangeValue","props","ref","value","setValue","useState","control","formState","errors","field","hasError","Boolean","useEffect","Number","style","styles","container","children","onChange","String","borderColor","color","feedback","red","horizontal","center","message","toString","create","flexGrow"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormCurrencyInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,uBAAc;AAC9C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAC/D,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAClD,SAASC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1D,OAAO,MAAMC,mBAAmB,gBAAGb,KAAK,CAACc,UAAU,CACjD,CACE;EAAEC,IAAI;EAAEC,cAAc;EAAEC,kBAAkB;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EACrEC,GAAG,KACA;EACH,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGtB,KAAK,CAACuB,QAAQ,CAAgB,IAAI,CAAC;EAC7D,MAAM;IACJC,OAAO;IACPC,SAAS,EAAE;MAAEC;IAAO;EACtB,CAAC,GAAGvB,cAAc,CAAC,CAAC;EACpB,MAAM;IAAEwB;EAAM,CAAC,GAAGzB,aAAa,CAAC;IAAEa,IAAI;IAAES;EAAQ,CAAC,CAAC;EAElD,MAAMI,QAAQ,GAAGC,OAAO,CAACH,MAAM,CAACX,IAAI,CAAC,CAAC;EAEtCf,KAAK,CAAC8B,SAAS,CAAC,MAAM;IACpBR,QAAQ,CAACS,MAAM,CAACJ,KAAK,CAACN,KAAK,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACM,KAAK,CAACN,KAAK,CAAC,CAAC;EAEjB,oBACET,KAAA,CAACL,OAAO;IAACyB,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEjB,kBAAkB,CAAE;IAAAkB,QAAA,gBACrDzB,IAAA,CAACT,eAAe;MACdmB,GAAG,EAAEA,GAAI;MACTC,KAAK,EAAEA,KAAM;MACbH,aAAa,EAAGG,KAAK,IAAK;QACxBM,KAAK,CAACS,QAAQ,CAACC,MAAM,CAAChB,KAAK,IAAI,EAAE,CAAC,CAAC;QACnCH,aAAa,GAAGG,KAAK,CAAC;MACxB,CAAE;MACFL,cAAc,EAAE,CACdY,QAAQ,IAAI;QACVU,WAAW,EAAElC,KAAK,CAACmC,KAAK,CAACC,QAAQ,CAACC,GAAG,CAAC,KAAK;MAC7C,CAAC,EACDzB,cAAc,CACd;MAAA,GACEG;IAAK,CACV,CAAC,EACDS,QAAQ,iBACPhB,KAAA,CAACL,OAAO;MAACmC,UAAU;MAACC,MAAM;MAAAR,QAAA,gBACxBzB,IAAA,CAACJ,MAAM;QAACiC,KAAK,EAAC,kBAAkB;QAAAJ,QAAA,EAC7BT,MAAM,CAACX,IAAI,CAAC,EAAE6B,OAAO,EAAEC,QAAQ,CAAC;MAAC,CAC5B,CAAC,eACTnC,IAAA,CAACL,MAAM;QAACU,IAAI,EAAC,SAAS;QAACwB,KAAK,EAAEnC,KAAK,CAACmC,KAAK,CAACC,QAAQ,CAACC,GAAG,CAAC,KAAK;MAAE,CAAE,CAAC;IAAA,CAC1D,CACV;EAAA,CACM,CAAC;AAEd,CACF,CAAC;AAED,MAAMR,MAAM,GAAGzB,UAAU,CAACsC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { UIDatetimeInput } from "../molecules/index.js";
5
+ import { useController, useFormContext } from 'react-hook-form';
6
+ import { UIIcon, UIStack, UIText } from "../atoms/index.js";
7
+ import { theme } from "../../../theme.js";
8
+ import { StyleSheet } from 'react-native';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export const UIFormDatetimeInput = ({
11
+ name,
12
+ formContainerStyle,
13
+ ...props
14
+ }) => {
15
+ const {
16
+ control,
17
+ formState: {
18
+ errors
19
+ }
20
+ } = useFormContext();
21
+ const {
22
+ field
23
+ } = useController({
24
+ name,
25
+ control
26
+ });
27
+ const hasError = Boolean(errors[name]);
28
+ return /*#__PURE__*/_jsxs(UIStack, {
29
+ style: [styles.container, formContainerStyle],
30
+ children: [/*#__PURE__*/_jsx(UIDatetimeInput, {
31
+ value: field.value && new Date(field.value),
32
+ onSelect: date => {
33
+ field.onChange(date.getTime());
34
+ },
35
+ ...props
36
+ }), hasError && /*#__PURE__*/_jsxs(UIStack, {
37
+ horizontal: true,
38
+ center: true,
39
+ children: [/*#__PURE__*/_jsx(UIText, {
40
+ color: "feedback-red-500",
41
+ children: errors[name]?.message?.toString()
42
+ }), /*#__PURE__*/_jsx(UIIcon, {
43
+ name: "warning",
44
+ color: theme.color.feedback.red['500']
45
+ })]
46
+ })]
47
+ });
48
+ };
49
+ const styles = StyleSheet.create({
50
+ container: {
51
+ flexGrow: 1
52
+ }
53
+ });
54
+ //# sourceMappingURL=UIFormDatetimeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","UIDatetimeInput","useController","useFormContext","UIIcon","UIStack","UIText","theme","StyleSheet","jsx","_jsx","jsxs","_jsxs","UIFormDatetimeInput","name","formContainerStyle","props","control","formState","errors","field","hasError","Boolean","style","styles","container","children","value","Date","onSelect","date","onChange","getTime","horizontal","center","color","message","toString","feedback","red","create","flexGrow"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormDatetimeInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,uBAAc;AAC9C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAC/D,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAClD,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,UAAU,QAAQ,cAAc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