@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,199 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { BackHandler, Keyboard, StyleSheet, View } from 'react-native';
5
+ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
6
+ import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';
7
+ import Animated, { Easing, Extrapolation, interpolate, runOnJS, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming } from 'react-native-reanimated';
8
+ import { Portal } from '@gorhom/portal';
9
+ import { UIBackdrop, UIIcon, UIStack, UIText } from "../atoms/index.js";
10
+ import { UIButton } from "./UIButton.js";
11
+ import { theme } from "../../../theme.js";
12
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const ANIMATION_DURATION = 300;
15
+ const ANIMATION_OPTIONS = {
16
+ duration: ANIMATION_DURATION,
17
+ easing: Easing.out(Easing.cubic)
18
+ };
19
+ const NO_OFFSET = 0;
20
+ export const UIActionSheet = ({
21
+ visible,
22
+ title,
23
+ onRequestClose,
24
+ children,
25
+ zIndexOffset,
26
+ disabledKeyboardOffset,
27
+ noPaddingBottom = false,
28
+ estimatedHeight,
29
+ getFullHeight,
30
+ style
31
+ }) => {
32
+ const [open, setOpen] = React.useState(visible);
33
+ const progress = useSharedValue(0);
34
+ const bodyHeight = useSharedValue(estimatedHeight ?? 0);
35
+ const headerHeight = useSharedValue(0);
36
+ const insets = useSafeAreaInsets();
37
+ const height = useDerivedValue(() => {
38
+ if (getFullHeight) {
39
+ runOnJS(getFullHeight)(bodyHeight.value + headerHeight.value);
40
+ }
41
+ return bodyHeight.value + headerHeight.value;
42
+ });
43
+ const {
44
+ height: keyboardHeight
45
+ } = useReanimatedKeyboardAnimation();
46
+ const animatedStyle = useAnimatedStyle(() => {
47
+ const keyboardOffset = disabledKeyboardOffset ? NO_OFFSET : Math.abs(keyboardHeight.value);
48
+ return {
49
+ transform: [{
50
+ translateY: -progress.value * height.value - keyboardOffset
51
+ }]
52
+ };
53
+ });
54
+ const onGesture = Gesture.Pan().onUpdate(e => {
55
+ 'worklet';
56
+
57
+ const newPosition = e.translationY * 0.9;
58
+ progress.value = interpolate(newPosition, [0, height.value], [0, -1], Extrapolation.CLAMP);
59
+ }).onEnd(e => {
60
+ 'worklet';
61
+
62
+ const keepOpen = e.translationY < height.value * 0.5;
63
+ if (keepOpen) {
64
+ progress.value = withTiming(0, ANIMATION_OPTIONS);
65
+ } else if (onRequestClose) {
66
+ runOnJS(onRequestClose)();
67
+ }
68
+ });
69
+ React.useEffect(() => {
70
+ if (visible) {
71
+ progress.value = withTiming(0, ANIMATION_OPTIONS);
72
+ setOpen(true);
73
+ } else {
74
+ progress.value = withTiming(-1, ANIMATION_OPTIONS, finished => {
75
+ if (finished) {
76
+ runOnJS(setOpen)(false);
77
+ }
78
+ });
79
+ }
80
+ }, [progress, visible]);
81
+ React.useEffect(() => {
82
+ if (!open) Keyboard.dismiss();
83
+ }, [open]);
84
+ React.useEffect(() => {
85
+ const subscription = BackHandler.addEventListener('hardwareBackPress', () => {
86
+ if (open) {
87
+ onRequestClose?.();
88
+ return true;
89
+ }
90
+ return;
91
+ });
92
+ return () => subscription.remove();
93
+ }, [open, onRequestClose]);
94
+ if (!open) return null;
95
+ return /*#__PURE__*/_jsxs(Portal, {
96
+ hostName: "sheet",
97
+ children: [/*#__PURE__*/_jsx(UIBackdrop, {
98
+ visible: visible,
99
+ onPress: onRequestClose,
100
+ animationDuration: ANIMATION_DURATION,
101
+ style: [{
102
+ zIndex: 10 + (zIndexOffset ? zIndexOffset + 5 : 0)
103
+ }]
104
+ }), /*#__PURE__*/_jsxs(Animated.View, {
105
+ style: [styles.container, animatedStyle, {
106
+ bottom: 0,
107
+ paddingBottom: Math.max(0, insets.bottom)
108
+ }, {
109
+ zIndex: 15 + (zIndexOffset ?? 0)
110
+ }, style],
111
+ children: [/*#__PURE__*/_jsxs(UIStack, {
112
+ onLayout: e => {
113
+ headerHeight.value = e.nativeEvent.layout.height;
114
+ },
115
+ children: [/*#__PURE__*/_jsx(GestureDetector, {
116
+ gesture: onGesture,
117
+ children: /*#__PURE__*/_jsx(View, {
118
+ style: styles.gestureBarContainer,
119
+ children: /*#__PURE__*/_jsx(View, {
120
+ style: styles.gestureBar
121
+ })
122
+ })
123
+ }), /*#__PURE__*/_jsxs(UIStack, {
124
+ horizontal: true,
125
+ center: true,
126
+ style: styles.titleContainer,
127
+ children: [/*#__PURE__*/_jsx(UIText, {
128
+ size: 16,
129
+ weight: "600",
130
+ style: styles.title,
131
+ children: title
132
+ }), /*#__PURE__*/_jsx(UIButton, {
133
+ borderless: true,
134
+ testID: "action-sheet-close",
135
+ accessibilityLabel: "action-sheet-close",
136
+ onPress: onRequestClose,
137
+ style: styles.close,
138
+ children: /*#__PURE__*/_jsx(UIIcon, {
139
+ name: "close",
140
+ size: 20
141
+ })
142
+ })]
143
+ })]
144
+ }), /*#__PURE__*/_jsx(Animated.View, {
145
+ onLayout: e => {
146
+ bodyHeight.value = e.nativeEvent.layout.height;
147
+ },
148
+ style: !noPaddingBottom && styles.body,
149
+ children: children
150
+ })]
151
+ })]
152
+ });
153
+ };
154
+ const styles = StyleSheet.create({
155
+ container: {
156
+ zIndex: 15,
157
+ backgroundColor: '#fff',
158
+ position: 'absolute',
159
+ left: 0,
160
+ right: 0,
161
+ bottom: 0,
162
+ borderTopLeftRadius: 17,
163
+ borderTopRightRadius: 17
164
+ },
165
+ gestureBarContainer: {
166
+ paddingVertical: 5
167
+ },
168
+ gestureBar: {
169
+ width: 45,
170
+ height: 4,
171
+ borderRadius: 2,
172
+ backgroundColor: theme.color.neutral.light['50'],
173
+ marginVertical: 16,
174
+ alignSelf: 'center'
175
+ },
176
+ title: {
177
+ marginVertical: 8,
178
+ marginHorizontal: 80,
179
+ flex: 1,
180
+ textAlign: 'center'
181
+ },
182
+ close: {
183
+ position: 'absolute',
184
+ right: 4,
185
+ top: -10
186
+ },
187
+ titleContainer: {
188
+ width: '100%',
189
+ justifyContent: 'center',
190
+ position: 'relative'
191
+ },
192
+ body: {
193
+ paddingBottom: 32
194
+ },
195
+ dev: {
196
+ marginVertical: 8
197
+ }
198
+ });
199
+ //# sourceMappingURL=UIActionSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","BackHandler","Keyboard","StyleSheet","View","Gesture","GestureDetector","useReanimatedKeyboardAnimation","Animated","Easing","Extrapolation","interpolate","runOnJS","useAnimatedStyle","useDerivedValue","useSharedValue","withTiming","Portal","UIBackdrop","UIIcon","UIStack","UIText","UIButton","theme","useSafeAreaInsets","jsx","_jsx","jsxs","_jsxs","ANIMATION_DURATION","ANIMATION_OPTIONS","duration","easing","out","cubic","NO_OFFSET","UIActionSheet","visible","title","onRequestClose","children","zIndexOffset","disabledKeyboardOffset","noPaddingBottom","estimatedHeight","getFullHeight","style","open","setOpen","useState","progress","bodyHeight","headerHeight","insets","height","value","keyboardHeight","animatedStyle","keyboardOffset","Math","abs","transform","translateY","onGesture","Pan","onUpdate","e","newPosition","translationY","CLAMP","onEnd","keepOpen","useEffect","finished","dismiss","subscription","addEventListener","remove","hostName","onPress","animationDuration","zIndex","styles","container","bottom","paddingBottom","max","onLayout","nativeEvent","layout","gesture","gestureBarContainer","gestureBar","horizontal","center","titleContainer","size","weight","borderless","testID","accessibilityLabel","close","name","body","create","backgroundColor","position","left","right","borderTopLeftRadius","borderTopRightRadius","paddingVertical","width","borderRadius","color","neutral","light","marginVertical","alignSelf","marginHorizontal","flex","textAlign","top","justifyContent","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,SAAS,EAAE;EACb,CAAC;EACDhF,KAAK,EAAE;IACL+E,cAAc,EAAE,CAAC;IACjBE,gBAAgB,EAAE,EAAE;IACpBC,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE;EACb,CAAC;EACDpB,KAAK,EAAE;IAAEK,QAAQ,EAAE,UAAU;IAAEE,KAAK,EAAE,CAAC;IAAEc,GAAG,EAAE,CAAC;EAAG,CAAC;EACnD3B,cAAc,EAAE;IACdiB,KAAK,EAAE,MAAM;IACbW,cAAc,EAAE,QAAQ;IACxBjB,QAAQ,EAAE;EACZ,CAAC;EACDH,IAAI,EAAE;IACJlB,aAAa,EAAE;EACjB,CAAC;EACDuC,GAAG,EAAE;IACHP,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+
3
+ import { Pressable, StyleSheet, View } from 'react-native';
4
+ import { UIText } from "../atoms/UIText.js";
5
+ import { getThemeColor, theme } from "../../../theme.js";
6
+ import { UILoading } from "../atoms/index.js";
7
+ import React from 'react';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const getTextColor = (variant, disabled) => {
10
+ if (disabled) return 'neutral-mid-60';
11
+ const variantToTextColor = {
12
+ contained: 'neutral-light-00',
13
+ outlined: 'neutral-dark-80',
14
+ text: 'neutral-dark-80'
15
+ };
16
+ return variantToTextColor[variant];
17
+ };
18
+ const getRippleColor = variant => {
19
+ const variantToRippleColor = {
20
+ contained: 'rgba(0, 0, 0, 0.1)',
21
+ outlined: 'rgba(0, 0, 0, 0.05)',
22
+ text: 'rgba(0, 0, 0, 0.05)'
23
+ };
24
+ return variantToRippleColor[variant];
25
+ };
26
+ const getLoadingColor = variant => {
27
+ const variantToRippleColor = {
28
+ contained: 'neutral-light-50',
29
+ outlined: 'neutral-light-50',
30
+ text: 'neutral-light-50'
31
+ };
32
+ return variantToRippleColor[variant];
33
+ };
34
+ export const UIButton = ({
35
+ children,
36
+ style,
37
+ textStyle,
38
+ variant = 'text',
39
+ color: themeColor = 'brand-violet-500',
40
+ borderless,
41
+ loading,
42
+ disabled,
43
+ loadingColor: definedLoadingColor,
44
+ rippleColor: definedRippleColor,
45
+ textColor: definedTextColor,
46
+ wrapperStyle: definedWrapperStyle,
47
+ ...props
48
+ }) => {
49
+ const textColor = definedTextColor || getTextColor(variant, disabled);
50
+ const rippleColor = definedRippleColor || getRippleColor(variant);
51
+ const loadingColor = definedLoadingColor || getLoadingColor(variant);
52
+ const {
53
+ wrapperStyle,
54
+ buttonStyle
55
+ } = React.useMemo(() => {
56
+ if (!style) return {};
57
+ const {
58
+ borderRadius = 16,
59
+ borderTopLeftRadius,
60
+ borderTopRightRadius,
61
+ borderBottomLeftRadius,
62
+ borderBottomRightRadius,
63
+ alignSelf,
64
+ margin,
65
+ marginTop,
66
+ marginVertical,
67
+ marginHorizontal,
68
+ marginBottom,
69
+ marginLeft,
70
+ marginRight,
71
+ position,
72
+ top,
73
+ right,
74
+ bottom,
75
+ left,
76
+ zIndex,
77
+ transform,
78
+ ...buttonStyle
79
+ } = StyleSheet.flatten(style);
80
+ return {
81
+ wrapperStyle: {
82
+ borderRadius,
83
+ margin,
84
+ marginVertical,
85
+ marginHorizontal,
86
+ marginTop,
87
+ marginLeft,
88
+ marginRight,
89
+ marginBottom,
90
+ position,
91
+ top,
92
+ bottom,
93
+ right,
94
+ left,
95
+ zIndex,
96
+ transform,
97
+ borderTopLeftRadius,
98
+ borderTopRightRadius,
99
+ borderBottomLeftRadius,
100
+ borderBottomRightRadius,
101
+ alignSelf
102
+ },
103
+ buttonStyle: {
104
+ ...buttonStyle,
105
+ borderTopLeftRadius,
106
+ borderTopRightRadius,
107
+ borderBottomLeftRadius,
108
+ borderBottomRightRadius,
109
+ borderRadius
110
+ }
111
+ };
112
+ }, [style]);
113
+ if (typeof children === 'string') {
114
+ children = /*#__PURE__*/_jsx(UIText, {
115
+ color: textColor,
116
+ align: "center",
117
+ weight: "500",
118
+ style: textStyle,
119
+ children: children
120
+ });
121
+ }
122
+ return /*#__PURE__*/_jsx(View, {
123
+ style: [styles.wrapper, wrapperStyle, definedWrapperStyle],
124
+ children: /*#__PURE__*/_jsx(Pressable, {
125
+ accessible: true,
126
+ android_ripple: {
127
+ borderless,
128
+ color: rippleColor
129
+ },
130
+ style: [styles.common, styles[variant], variant === 'contained' && {
131
+ backgroundColor: getThemeColor(themeColor)
132
+ }, variant === 'outlined' && {
133
+ borderColor: getThemeColor(themeColor)
134
+ }, (disabled || loading) && styles[`${variant}-disabled`], buttonStyle],
135
+ disabled: disabled || loading,
136
+ ...props,
137
+ children: loading ? /*#__PURE__*/_jsx(UILoading, {
138
+ color: loadingColor,
139
+ size: 20
140
+ }) : children
141
+ })
142
+ });
143
+ };
144
+ const styles = StyleSheet.create({
145
+ 'common': {
146
+ borderRadius: 16,
147
+ padding: 18,
148
+ borderWidth: 1
149
+ },
150
+ 'wrapper': {
151
+ overflow: 'hidden',
152
+ borderRadius: 16
153
+ },
154
+ 'text': {
155
+ borderColor: 'transparent'
156
+ },
157
+ 'contained': {
158
+ backgroundColor: theme.color.brand.violet['500'],
159
+ borderColor: 'transparent'
160
+ },
161
+ 'outlined': {
162
+ borderColor: theme.color.neutral.light['00'],
163
+ borderWidth: 1
164
+ },
165
+ 'contained-disabled': {
166
+ backgroundColor: theme.color.neutral.light['10']
167
+ },
168
+ 'outlined-disabled': {
169
+ borderColor: '#ccc'
170
+ },
171
+ 'text-disabled': {}
172
+ });
173
+ //# sourceMappingURL=UIButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Pressable","StyleSheet","View","UIText","getThemeColor","theme","UILoading","React","jsx","_jsx","getTextColor","variant","disabled","variantToTextColor","contained","outlined","text","getRippleColor","variantToRippleColor","getLoadingColor","UIButton","children","style","textStyle","color","themeColor","borderless","loading","loadingColor","definedLoadingColor","rippleColor","definedRippleColor","textColor","definedTextColor","wrapperStyle","definedWrapperStyle","props","buttonStyle","useMemo","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","alignSelf","margin","marginTop","marginVertical","marginHorizontal","marginBottom","marginLeft","marginRight","position","top","right","bottom","left","zIndex","transform","flatten","align","weight","styles","wrapper","accessible","android_ripple","common","backgroundColor","borderColor","size","create","padding","borderWidth","overflow","brand","violet","neutral","light"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIButton.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG1D,SAASC,MAAM,QAAQ,oBAAiB;AACxC,SAASC,aAAa,EAAEC,KAAK,QAAyB,mBAAgB;AACtE,SAASC,SAAS,QAAQ,mBAAU;AACpC,OAAOC,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAc1B,MAAMC,YAAY,GAAGA,CACnBC,OAAmC,EACnCC,QAAoC,KACjC;EACH,IAAIA,QAAQ,EAAE,OAAO,gBAAgB;EACrC,MAAMC,kBAEL,GAAG;IACFC,SAAS,EAAE,kBAAkB;IAC7BC,QAAQ,EAAE,iBAAiB;IAC3BC,IAAI,EAAE;EACR,CAAC;EACD,OAAOH,kBAAkB,CAACF,OAAO,CAAC;AACpC,CAAC;AAED,MAAMM,cAAc,GAAIN,OAAmC,IAAK;EAC9D,MAAMO,oBAEL,GAAG;IACFJ,SAAS,EAAE,oBAAoB;IAC/BC,QAAQ,EAAE,qBAAqB;IAC/BC,IAAI,EAAE;EACR,CAAC;EACD,OAAOE,oBAAoB,CAACP,OAAO,CAAC;AACtC,CAAC;AAED,MAAMQ,eAAe,GAAIR,OAAmC,IAAK;EAC/D,MAAMO,oBAEL,GAAG;IACFJ,SAAS,EAAE,kBAAkB;IAC7BC,QAAQ,EAAE,kBAAkB;IAC5BC,IAAI,EAAE;EACR,CAAC;EACD,OAAOE,oBAAoB,CAACP,OAAO,CAAC;AACtC,CAAC;AAED,OAAO,MAAMS,QAAQ,GAAGA,CAAC;EACvBC,QAAQ;EACRC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,CAAC;AAEX,CAAC;AAED,MAAMyC,MAAM,GAAG7D,UAAU,CAACqE,MAAM,CAAC;EAC/B,QAAQ,EAAE;IACR/B,YAAY,EAAE,EAAE;IAChBgC,OAAO,EAAE,EAAE;IACXC,WAAW,EAAE;EACf,CAAC;EACD,SAAS,EAAE;IAAEC,QAAQ,EAAE,QAAQ;IAAElC,YAAY,EAAE;EAAG,CAAC;EACnD,MAAM,EAAE;IACN6B,WAAW,EAAE;EACf,CAAC;EACD,WAAW,EAAE;IACXD,eAAe,EAAE9D,KAAK,CAACmB,KAAK,CAACkD,KAAK,CAACC,MAAM,CAAC,KAAK,CAAC;IAChDP,WAAW,EAAE;EACf,CAAC;EACD,UAAU,EAAE;IAAEA,WAAW,EAAE/D,KAAK,CAACmB,KAAK,CAACoD,OAAO,CAACC,KAAK,CAAC,IAAI,CAAC;IAAEL,WAAW,EAAE;EAAE,CAAC;EAC5E,oBAAoB,EAAE;IACpBL,eAAe,EAAE9D,KAAK,CAACmB,KAAK,CAACoD,OAAO,CAACC,KAAK,CAAC,IAAI;EACjD,CAAC;EACD,mBAAmB,EAAE;IACnBT,WAAW,EAAE;EACf,CAAC;EACD,eAAe,EAAE,CAAC;AACpB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import React from 'react';
5
+ import { UIButton } from "./UIButton.js";
6
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const UIButtonCTA = ({
9
+ wrapperStyle,
10
+ style,
11
+ bottom = 32,
12
+ ...props
13
+ }) => {
14
+ const insets = useSafeAreaInsets();
15
+ return /*#__PURE__*/_jsx(UIButton, {
16
+ wrapperStyle: [styles.wrapper, {
17
+ bottom: Math.max(insets.bottom + bottom, bottom)
18
+ }, wrapperStyle],
19
+ style: style,
20
+ ...props
21
+ });
22
+ };
23
+ const styles = StyleSheet.create({
24
+ wrapper: {
25
+ position: 'absolute',
26
+ zIndex: 24,
27
+ bottom: 0,
28
+ alignSelf: 'center'
29
+ }
30
+ });
31
+ //# sourceMappingURL=UIButtonCTA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","React","UIButton","useSafeAreaInsets","jsx","_jsx","UIButtonCTA","wrapperStyle","style","bottom","props","insets","styles","wrapper","Math","max","create","position","zIndex","alignSelf"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIButtonCTA.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,iBAAiB,QAAQ,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMnE,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,YAAY;EACZC,KAAK;EACLC,MAAM,GAAG,EAAE;EACX,GAAGC;AACE,CAAC,KAAK;EACX,MAAMC,MAAM,GAAGR,iBAAiB,CAAC,CAAC;EAElC,oBACEE,IAAA,CAACH,QAAQ;IACPK,YAAY,EAAE,CACZK,MAAM,CAACC,OAAO,EACd;MAAEJ,MAAM,EAAEK,IAAI,CAACC,GAAG,CAACJ,MAAM,CAACF,MAAM,GAAGA,MAAM,EAAEA,MAAM;IAAE,CAAC,EACpDF,YAAY,CACZ;IACFC,KAAK,EAAEA,KAAM;IAAA,GACTE;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAME,MAAM,GAAGZ,UAAU,CAACgB,MAAM,CAAC;EAC/BH,OAAO,EAAE;IACPI,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,EAAE;IACVT,MAAM,EAAE,CAAC;IACTU,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import { UIIcon, UIText, UIStack } from "../atoms/index.js";
6
+ import { UIButton } from "./index.js";
7
+ import { theme } from "../../../theme.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const UICheckboxInput = ({
10
+ label,
11
+ selected,
12
+ style,
13
+ selectedColor,
14
+ checkboxSize,
15
+ labelSize,
16
+ iconSize,
17
+ color,
18
+ variant = 'text',
19
+ ...props
20
+ }) => {
21
+ return /*#__PURE__*/_jsx(UIButton, {
22
+ style: [styles.button, variant === 'contained' && selected && styles.contained, style],
23
+ ...props,
24
+ children: /*#__PURE__*/_jsxs(UIStack, {
25
+ horizontal: true,
26
+ center: true,
27
+ children: [/*#__PURE__*/_jsx(View, {
28
+ style: [styles.checkbox, Boolean(color) && {
29
+ borderColor: color
30
+ }, Boolean(checkboxSize) && {
31
+ width: checkboxSize,
32
+ height: checkboxSize
33
+ }, selected && (selectedColor ? {
34
+ backgroundColor: selectedColor
35
+ } : styles.selected)],
36
+ children: selected && /*#__PURE__*/_jsx(UIIcon, {
37
+ name: "check-alt",
38
+ size: iconSize,
39
+ color: theme.color.neutral.light['10']
40
+ })
41
+ }), /*#__PURE__*/_jsx(UIText, {
42
+ weight: "500",
43
+ size: labelSize,
44
+ style: [Boolean(color) && {
45
+ color: color
46
+ }, selected && {
47
+ color: selectedColor || theme.color.brand.violet['500']
48
+ }],
49
+ children: label
50
+ })]
51
+ })
52
+ });
53
+ };
54
+ const styles = StyleSheet.create({
55
+ checkbox: {
56
+ width: 20,
57
+ height: 20,
58
+ borderColor: theme.color.neutral.light['50'],
59
+ borderWidth: 2,
60
+ borderRadius: 4,
61
+ alignItems: 'center',
62
+ justifyContent: 'center',
63
+ marginRight: 10
64
+ },
65
+ selected: {
66
+ backgroundColor: theme.color.brand.violet['500'],
67
+ borderColor: theme.color.brand.violet['500']
68
+ },
69
+ dot: {
70
+ width: 12,
71
+ height: 12,
72
+ borderRadius: 6,
73
+ backgroundColor: theme.color.brand.violet['500']
74
+ },
75
+ button: {
76
+ paddingHorizontal: 16,
77
+ paddingVertical: 12,
78
+ borderRadius: 8
79
+ },
80
+ contained: {
81
+ backgroundColor: theme.color.neutral.light['10']
82
+ }
83
+ });
84
+ //# sourceMappingURL=UICheckboxInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","StyleSheet","View","UIIcon","UIText","UIStack","UIButton","theme","jsx","_jsx","jsxs","_jsxs","UICheckboxInput","label","selected","style","selectedColor","checkboxSize","labelSize","iconSize","color","variant","props","styles","button","contained","children","horizontal","center","checkbox","Boolean","borderColor","width","height","backgroundColor","name","size","neutral","light","weight","brand","violet","create","borderWidth","borderRadius","alignItems","justifyContent","marginRight","dot","paddingHorizontal","paddingVertical"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UICheckboxInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAClD,SAASC,QAAQ,QAAQ,YAAG;AAC5B,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAavC,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,aAAa;EACbC,YAAY;EACZC,SAAS;EACTC,QAAQ;EACRC,KAAK;EACLC,OAAO,GAAG,MAAM;EAChB,GAAGC;AACE,CAAC,KAAK;EACX,oBACEb,IAAA,CAACH,QAAQ;IACPS,KAAK,EAAE,CACLQ,MAAM,CAACC,MAAM,EACbH,OAAO,KAAK,WAAW,IAAIP,QAAQ,IAAIS,MAAM,CAACE,SAAS,EACvDV,KAAK,CACL;IAAA,GACEO,KAAK;IAAAI,QAAA,eAETf,KAAA,CAACN,OAAO;MAACsB,UAAU;MAACC,MAAM;MAAAF,QAAA,gBACxBjB,IAAA,CAACP,IAAI;QACHa,KAAK,EAAE,CAC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eAAe,EAAE3B,KAAK,CAACa,KAAK,CAACoB,KAAK,CAACC,MAAM,CAAC,KAAK,CAAC;IAChDV,WAAW,EAAExB,KAAK,CAACa,KAAK,CAACoB,KAAK,CAACC,MAAM,CAAC,KAAK;EAC7C,CAAC;EACDO,GAAG,EAAE;IACHhB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVW,YAAY,EAAE,CAAC;IACfV,eAAe,EAAE3B,KAAK,CAACa,KAAK,CAACoB,KAAK,CAACC,MAAM,CAAC,KAAK;EACjD,CAAC;EACDjB,MAAM,EAAE;IAAEyB,iBAAiB,EAAE,EAAE;IAAEC,eAAe,EAAE,EAAE;IAAEN,YAAY,EAAE;EAAE,CAAC;EACvEnB,SAAS,EAAE;IACTS,eAAe,EAAE3B,KAAK,CAACa,KAAK,CAACiB,OAAO,CAACC,KAAK,CAAC,IAAI;EACjD;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import React from 'react';
5
+ import { UIText } from "../atoms/index.js";
6
+ import { getThemeColor } from "../../../theme.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const UIChip = ({
9
+ label,
10
+ content,
11
+ color: themeColor = 'brand-violet-500',
12
+ textColor = 'neutral-light-00',
13
+ borderColor: themeBorderColor,
14
+ style,
15
+ ...props
16
+ }) => {
17
+ let contentNode = null;
18
+ const color = getThemeColor(themeColor);
19
+ const borderColor = getThemeColor(themeBorderColor);
20
+ if (label) contentNode = /*#__PURE__*/_jsx(UIText, {
21
+ color: textColor,
22
+ weight: "600",
23
+ style: styles.label,
24
+ children: label
25
+ });
26
+ if (content) contentNode = content;
27
+ return /*#__PURE__*/_jsx(View, {
28
+ style: [styles.chip, {
29
+ backgroundColor: color,
30
+ borderColor: borderColor
31
+ }, style],
32
+ ...props,
33
+ children: contentNode
34
+ });
35
+ };
36
+ const styles = StyleSheet.create({
37
+ chip: {
38
+ borderRadius: 24,
39
+ paddingTop: 2,
40
+ paddingBottom: 2,
41
+ paddingHorizontal: 16,
42
+ borderWidth: 1,
43
+ borderStyle: 'solid'
44
+ },
45
+ label: {
46
+ fontSize: 12
47
+ }
48
+ });
49
+ //# sourceMappingURL=UIChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","React","UIText","getThemeColor","jsx","_jsx","UIChip","label","content","color","themeColor","textColor","borderColor","themeBorderColor","style","props","contentNode","weight","styles","children","chip","backgroundColor","create","borderRadius","paddingTop","paddingBottom","paddingHorizontal","borderWidth","borderStyle","fontSize"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIChip.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,mBAAU;AACjC,SAASC,aAAa,QAAyB,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAchE,OAAO,MAAMC,MAAM,GAAGA,CAAC;EACrBC,KAAK;EACLC,OAAO;EACPC,KAAK,EAAEC,UAAU,GAAG,kBAAkB;EAC3BC,SAAS,GAAG,kBAAkB;EACzCC,WAAW,EAAEC,gBAAgB;EAC7BC,KAAK;EACL,GAAGC;AACE,CAAC,KAAK;EACX,IAAIC,WAA4B,GAAG,IAAI;EAEvC,MAAMP,KAAK,GAAGN,aAAa,CAACO,UAAU,CAAC;EACvC,MAAME,WAAW,GAAGT,aAAa,CAACU,gBAAgB,CAAC;EAEnD,IAAIN,KAAK,EACPS,WAAW,gBACTX,IAAA,CAACH,MAAM;IAACO,KAAK,EAAEE,SAAU;IAACM,MAAM,EAAC,KAAK;IAACH,KAAK,EAAEI,MAAM,CAACX,KAAM;IAAAY,QAAA,EACxDZ;EAAK,CACA,CACT;EACH,IAAIC,OAAO,EAAEQ,WAAW,GAAGR,OAAO;EAElC,oBACEH,IAAA,CAACL,IAAI;IACHc,KAAK,EAAE,CACLI,MAAM,CAACE,IAAI,EACX;MACEC,eAAe,EAAEZ,KAAK;MACtBG,WAAW,EAAEA;IACf,CAAC,EACDE,KAAK,CACL;IAAA,GACEC,KAAK;IAAAI,QAAA,EAERH;EAAW,CACR,CAAC;AAEX,CAAC;AAED,MAAME,MAAM,GAAGnB,UAAU,CAACuB,MAAM,CAAC;EAC/BF,IAAI,EAAE;IACJG,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,iBAAiB,EAAE,EAAE;IACrBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE;EACf,CAAC;EACDrB,KAAK,EAAE;IACLsB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ import CurrencyInput from 'react-native-currency-input';
4
+ import { UITextInput } from "./UITextInput.js";
5
+ import React from 'react';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const UICurrencyInput = ({
8
+ value: valueProp,
9
+ onChangeValue,
10
+ precision = 2,
11
+ ...props
12
+ }) => {
13
+ const [value, setValue] = React.useState(valueProp ?? null);
14
+ React.useEffect(() => {
15
+ setValue(valueProp ?? null);
16
+ }, [valueProp]);
17
+ return /*#__PURE__*/_jsx(CurrencyInput, {
18
+ value: value,
19
+ onChangeValue: value => {
20
+ onChangeValue?.(value);
21
+ setValue(value);
22
+ },
23
+ delimiter: ".",
24
+ separator: ",",
25
+ precision: precision,
26
+ renderTextInput: textInputProps => /*#__PURE__*/_jsx(UITextInput, {
27
+ ...props,
28
+ ...textInputProps
29
+ })
30
+ });
31
+ };
32
+ //# sourceMappingURL=UICurrencyInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CurrencyInput","UITextInput","React","jsx","_jsx","UICurrencyInput","value","valueProp","onChangeValue","precision","props","setValue","useState","useEffect","delimiter","separator","renderTextInput","textInputProps"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UICurrencyInput.tsx"],"mappings":";;AAAA,OAAOA,aAAa,MAAM,6BAA6B;AACvD,SAASC,WAAW,QAAQ,kBAAe;AAC3C,OAAOC,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAa1B,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,KAAK,EAAEC,SAAS;EAChBC,aAAa;EACbC,SAAS,GAAG,CAAC;EACb,GAAGC;AACE,CAAC,KAAK;EACX,MAAM,CAACJ,KAAK,EAAEK,QAAQ,CAAC,GAAGT,KAAK,CAACU,QAAQ,CAACL,SAAS,IAAI,IAAI,CAAC;EAE3DL,KAAK,CAACW,SAAS,CAAC,MAAM;IACpBF,QAAQ,CAACJ,SAAS,IAAI,IAAI,CAAC;EAC7B,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;EAEf,oBACEH,IAAA,CAACJ,aAAa;IACZM,KAAK,EAAEA,KAAM;IACbE,aAAa,EAAGF,KAAK,IAAK;MACxBE,aAAa,GAAGF,KAAK,CAAC;MACtBK,QAAQ,CAACL,KAAK,CAAC;IACjB,CAAE;IACFQ,SAAS,EAAC,GAAG;IACbC,SAAS,EAAC,GAAG;IACbN,SAAS,EAAEA,SAAU;IACrBO,eAAe,EAAGC,cAAc,iBAC9Bb,IAAA,CAACH,WAAW;MAAA,GAAKS,KAAK;MAAA,GAAMO;IAAc,CAAG;EAC7C,CACH,CAAC;AAEN,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { FlatList, StyleSheet } from 'react-native';
4
+ import { UILoading } from "../atoms/index.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const UIDataList = ({
7
+ loading,
8
+ showsHorizontalScrollIndicator = false,
9
+ showsVerticalScrollIndicator = false,
10
+ ...props
11
+ }) => {
12
+ if (loading) return /*#__PURE__*/_jsx(UILoading, {
13
+ style: styles.loading
14
+ });
15
+ return /*#__PURE__*/_jsx(FlatList, {
16
+ showsHorizontalScrollIndicator: showsHorizontalScrollIndicator,
17
+ showsVerticalScrollIndicator: showsVerticalScrollIndicator,
18
+ ...props
19
+ });
20
+ };
21
+ const styles = StyleSheet.create({
22
+ loading: {
23
+ marginTop: 24
24
+ }
25
+ });
26
+ //# sourceMappingURL=UIDataList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlatList","StyleSheet","UILoading","jsx","_jsx","UIDataList","loading","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","props","style","styles","create","marginTop"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIDataList.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,SAAS,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQrC,OAAO,MAAMC,UAAU,GAAGA,CAAgB;EACxCC,OAAO;EACPC,8BAA8B,GAAG,KAAK;EACtCC,4BAA4B,GAAG,KAAK;EACpC,GAAGC;AACK,CAAC,KAAK;EACd,IAAIH,OAAO,EAAE,oBAAOF,IAAA,CAACF,SAAS;IAACQ,KAAK,EAAEC,MAAM,CAACL;EAAQ,CAAE,CAAC;EAExD,oBACEF,IAAA,CAACJ,QAAQ;IACPO,8BAA8B,EAAEA,8BAA+B;IAC/DC,4BAA4B,EAAEA,4BAA6B;IAAA,GACvDC;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAME,MAAM,GAAGV,UAAU,CAACW,MAAM,CAAC;EAC/BN,OAAO,EAAE;IAAEO,SAAS,EAAE;EAAG;AAC3B,CAAC,CAAC","ignoreList":[]}