@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.
- package/LICENSE +20 -0
- package/README.md +99 -0
- package/lib/module/assets/logo.png +0 -0
- package/lib/module/data/errors/http-client-error.js +14 -0
- package/lib/module/data/errors/http-client-error.js.map +1 -0
- package/lib/module/data/errors/index.js +6 -0
- package/lib/module/data/errors/index.js.map +1 -0
- package/lib/module/data/errors/save-file-error.js +9 -0
- package/lib/module/data/errors/save-file-error.js.map +1 -0
- package/lib/module/data/errors/unsupported-platform.js +9 -0
- package/lib/module/data/errors/unsupported-platform.js.map +1 -0
- package/lib/module/data/models/index.js +6 -0
- package/lib/module/data/models/index.js.map +1 -0
- package/lib/module/data/models/remote-get-comment-list-model.js +2 -0
- package/lib/module/data/models/remote-get-comment-list-model.js.map +1 -0
- package/lib/module/data/models/remote-get-image-list-model.js +2 -0
- package/lib/module/data/models/remote-get-image-list-model.js.map +1 -0
- package/lib/module/data/models/remote-user-model.js +2 -0
- package/lib/module/data/models/remote-user-model.js.map +1 -0
- package/lib/module/data/protocols/cookie-manager.js +2 -0
- package/lib/module/data/protocols/cookie-manager.js.map +1 -0
- package/lib/module/data/protocols/download-manager.js +4 -0
- package/lib/module/data/protocols/download-manager.js.map +1 -0
- package/lib/module/data/protocols/http-client.js +26 -0
- package/lib/module/data/protocols/http-client.js.map +1 -0
- package/lib/module/data/protocols/index.js +9 -0
- package/lib/module/data/protocols/index.js.map +1 -0
- package/lib/module/data/protocols/notification-manager.js +4 -0
- package/lib/module/data/protocols/notification-manager.js.map +1 -0
- package/lib/module/data/protocols/permission-manager.js +4 -0
- package/lib/module/data/protocols/permission-manager.js.map +1 -0
- package/lib/module/data/protocols/storage.js +4 -0
- package/lib/module/data/protocols/storage.js.map +1 -0
- package/lib/module/data/use-cases/index.js +6 -0
- package/lib/module/data/use-cases/index.js.map +1 -0
- package/lib/module/data/use-cases/remote-get-comment-list.js +29 -0
- package/lib/module/data/use-cases/remote-get-comment-list.js.map +1 -0
- package/lib/module/data/use-cases/remote-get-image-list.js +32 -0
- package/lib/module/data/use-cases/remote-get-image-list.js.map +1 -0
- package/lib/module/data/use-cases/remote-send-diagnostics.js +20 -0
- package/lib/module/data/use-cases/remote-send-diagnostics.js.map +1 -0
- package/lib/module/domain/errors/authentication-expired-error.js +9 -0
- package/lib/module/domain/errors/authentication-expired-error.js.map +1 -0
- package/lib/module/domain/errors/index.js +7 -0
- package/lib/module/domain/errors/index.js.map +1 -0
- package/lib/module/domain/errors/internal-server-error.js +9 -0
- package/lib/module/domain/errors/internal-server-error.js.map +1 -0
- package/lib/module/domain/errors/invalid-credentials-error.js +9 -0
- package/lib/module/domain/errors/invalid-credentials-error.js.map +1 -0
- package/lib/module/domain/errors/no-app-permission-error.js +9 -0
- package/lib/module/domain/errors/no-app-permission-error.js.map +1 -0
- package/lib/module/domain/models/get-comment-list-model.js +2 -0
- package/lib/module/domain/models/get-comment-list-model.js.map +1 -0
- package/lib/module/domain/models/get-image-list-model.js +2 -0
- package/lib/module/domain/models/get-image-list-model.js.map +1 -0
- package/lib/module/domain/models/index.js +6 -0
- package/lib/module/domain/models/index.js.map +1 -0
- package/lib/module/domain/models/user-model.js +2 -0
- package/lib/module/domain/models/user-model.js.map +1 -0
- package/lib/module/domain/use-cases/get-comment-list.js +4 -0
- package/lib/module/domain/use-cases/get-comment-list.js.map +1 -0
- package/lib/module/domain/use-cases/get-image-list.js +4 -0
- package/lib/module/domain/use-cases/get-image-list.js.map +1 -0
- package/lib/module/domain/use-cases/index.js +9 -0
- package/lib/module/domain/use-cases/index.js.map +1 -0
- package/lib/module/domain/use-cases/record-request.js +4 -0
- package/lib/module/domain/use-cases/record-request.js.map +1 -0
- package/lib/module/domain/use-cases/send-diagnostics.js +4 -0
- package/lib/module/domain/use-cases/send-diagnostics.js.map +1 -0
- package/lib/module/domain/use-cases/user-authentication.js +4 -0
- package/lib/module/domain/use-cases/user-authentication.js.map +1 -0
- package/lib/module/domain/use-cases/user-logout.js +4 -0
- package/lib/module/domain/use-cases/user-logout.js.map +1 -0
- package/lib/module/index.js +16 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/infra/axios-http-client-adapter.js +199 -0
- package/lib/module/infra/axios-http-client-adapter.js.map +1 -0
- package/lib/module/infra/index.js +10 -0
- package/lib/module/infra/index.js.map +1 -0
- package/lib/module/infra/isomorphic-id-manager.js +83 -0
- package/lib/module/infra/isomorphic-id-manager.js.map +1 -0
- package/lib/module/infra/mmkv-storage-adapter.js +62 -0
- package/lib/module/infra/mmkv-storage-adapter.js.map +1 -0
- package/lib/module/infra/notifee-notification-manager-adapter.js +69 -0
- package/lib/module/infra/notifee-notification-manager-adapter.js.map +1 -0
- package/lib/module/infra/offline-mutation-queue.js +210 -0
- package/lib/module/infra/offline-mutation-queue.js.map +1 -0
- package/lib/module/infra/rnbu-download-manager-adapter.js +31 -0
- package/lib/module/infra/rnbu-download-manager-adapter.js.map +1 -0
- package/lib/module/infra/rnp-permission-manager-adapter.js +117 -0
- package/lib/module/infra/rnp-permission-manager-adapter.js.map +1 -0
- package/lib/module/infra/storage-cookie-manager-adapter.js +24 -0
- package/lib/module/infra/storage-cookie-manager-adapter.js.map +1 -0
- package/lib/module/main/components/index.js +7 -0
- package/lib/module/main/components/index.js.map +1 -0
- package/lib/module/main/components/request-permissions.js +14 -0
- package/lib/module/main/components/request-permissions.js.map +1 -0
- package/lib/module/main/factories/infra/download-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/download-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/http-client-factory.js +7 -0
- package/lib/module/main/factories/infra/http-client-factory.js.map +1 -0
- package/lib/module/main/factories/infra/index.js +10 -0
- package/lib/module/main/factories/infra/index.js.map +1 -0
- package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/isomorphic-id-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/notification-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/notification-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/offline-mutation-queue-factory.js +7 -0
- package/lib/module/main/factories/infra/offline-mutation-queue-factory.js.map +1 -0
- package/lib/module/main/factories/infra/permission-manager-factory.js +7 -0
- package/lib/module/main/factories/infra/permission-manager-factory.js.map +1 -0
- package/lib/module/main/factories/infra/storage-factory.js +10 -0
- package/lib/module/main/factories/infra/storage-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/index.js +6 -0
- package/lib/module/main/factories/use-cases/index.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-get-comment-list-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-get-image-list-factory.js.map +1 -0
- package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js +7 -0
- package/lib/module/main/factories/use-cases/remote-send-diagnostics-factory.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/presentation/components/atoms/UIBackdrop.js +31 -0
- package/lib/module/presentation/components/atoms/UIBackdrop.js.map +1 -0
- package/lib/module/presentation/components/atoms/UICheckbox.js +47 -0
- package/lib/module/presentation/components/atoms/UICheckbox.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIDot.js +33 -0
- package/lib/module/presentation/components/atoms/UIDot.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIIcon.js +1072 -0
- package/lib/module/presentation/components/atoms/UIIcon.js.map +1 -0
- package/lib/module/presentation/components/atoms/UILoading.js +19 -0
- package/lib/module/presentation/components/atoms/UILoading.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIPage.js +70 -0
- package/lib/module/presentation/components/atoms/UIPage.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIProgress.js +54 -0
- package/lib/module/presentation/components/atoms/UIProgress.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIScrollPage.js +72 -0
- package/lib/module/presentation/components/atoms/UIScrollPage.js.map +1 -0
- package/lib/module/presentation/components/atoms/UISeparator.js +30 -0
- package/lib/module/presentation/components/atoms/UISeparator.js.map +1 -0
- package/lib/module/presentation/components/atoms/UISpacer.js +19 -0
- package/lib/module/presentation/components/atoms/UISpacer.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIStack.js +31 -0
- package/lib/module/presentation/components/atoms/UIStack.js.map +1 -0
- package/lib/module/presentation/components/atoms/UIText.js +48 -0
- package/lib/module/presentation/components/atoms/UIText.js.map +1 -0
- package/lib/module/presentation/components/atoms/index.js +15 -0
- package/lib/module/presentation/components/atoms/index.js.map +1 -0
- package/lib/module/presentation/components/index.js +4 -0
- package/lib/module/presentation/components/index.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIActionSheet.js +199 -0
- package/lib/module/presentation/components/molecules/UIActionSheet.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIButton.js +173 -0
- package/lib/module/presentation/components/molecules/UIButton.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIButtonCTA.js +31 -0
- package/lib/module/presentation/components/molecules/UIButtonCTA.js.map +1 -0
- package/lib/module/presentation/components/molecules/UICheckboxInput.js +84 -0
- package/lib/module/presentation/components/molecules/UICheckboxInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIChip.js +49 -0
- package/lib/module/presentation/components/molecules/UIChip.js.map +1 -0
- package/lib/module/presentation/components/molecules/UICurrencyInput.js +32 -0
- package/lib/module/presentation/components/molecules/UICurrencyInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDataList.js +26 -0
- package/lib/module/presentation/components/molecules/UIDataList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDataSectionList.js +26 -0
- package/lib/module/presentation/components/molecules/UIDataSectionList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js +202 -0
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIError.js +32 -0
- package/lib/module/presentation/components/molecules/UIError.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIImage.js +87 -0
- package/lib/module/presentation/components/molecules/UIImage.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIInlineDatePicker.js +245 -0
- package/lib/module/presentation/components/molecules/UIInlineDatePicker.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIInputIcon.js +38 -0
- package/lib/module/presentation/components/molecules/UIInputIcon.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIList.js +16 -0
- package/lib/module/presentation/components/molecules/UIList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UIRadioInput.js +78 -0
- package/lib/module/presentation/components/molecules/UIRadioInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISectionList.js +16 -0
- package/lib/module/presentation/components/molecules/UISectionList.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISkeleton.js +54 -0
- package/lib/module/presentation/components/molecules/UISkeleton.js.map +1 -0
- package/lib/module/presentation/components/molecules/UISwitch.js +65 -0
- package/lib/module/presentation/components/molecules/UISwitch.js.map +1 -0
- package/lib/module/presentation/components/molecules/UITextInput.js +132 -0
- package/lib/module/presentation/components/molecules/UITextInput.js.map +1 -0
- package/lib/module/presentation/components/molecules/UITextInputMask.js +133 -0
- package/lib/module/presentation/components/molecules/UITextInputMask.js.map +1 -0
- package/lib/module/presentation/components/molecules/index.js +23 -0
- package/lib/module/presentation/components/molecules/index.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIAppBar.js +102 -0
- package/lib/module/presentation/components/organisms/UIAppBar.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIAppBarAction.js +21 -0
- package/lib/module/presentation/components/organisms/UIAppBarAction.js.map +1 -0
- package/lib/module/presentation/components/organisms/UICard.js +43 -0
- package/lib/module/presentation/components/organisms/UICard.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIComment.js +73 -0
- package/lib/module/presentation/components/organisms/UIComment.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIErrorBoundary.js +68 -0
- package/lib/module/presentation/components/organisms/UIErrorBoundary.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIForm.js +83 -0
- package/lib/module/presentation/components/organisms/UIForm.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormButton.js +43 -0
- package/lib/module/presentation/components/organisms/UIFormButton.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js +39 -0
- package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js +65 -0
- package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js +54 -0
- package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js +212 -0
- package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormRadioInput.js +36 -0
- package/lib/module/presentation/components/organisms/UIFormRadioInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js +259 -0
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormTextInput.js +64 -0
- package/lib/module/presentation/components/organisms/UIFormTextInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIFormTextInputMask.js +69 -0
- package/lib/module/presentation/components/organisms/UIFormTextInputMask.js.map +1 -0
- package/lib/module/presentation/components/organisms/UIRow.js +55 -0
- package/lib/module/presentation/components/organisms/UIRow.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISearchInput.js +33 -0
- package/lib/module/presentation/components/organisms/UISearchInput.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISelectChip.js +94 -0
- package/lib/module/presentation/components/organisms/UISelectChip.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISignature.js +159 -0
- package/lib/module/presentation/components/organisms/UISignature.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISlideButton.js +90 -0
- package/lib/module/presentation/components/organisms/UISlideButton.js.map +1 -0
- package/lib/module/presentation/components/organisms/index.js +24 -0
- package/lib/module/presentation/components/organisms/index.js.map +1 -0
- package/lib/module/presentation/components/permissions/index.js +4 -0
- package/lib/module/presentation/components/permissions/index.js.map +1 -0
- package/lib/module/presentation/components/permissions/request-permissions.js +96 -0
- package/lib/module/presentation/components/permissions/request-permissions.js.map +1 -0
- package/lib/module/presentation/domain/metadata/index.js +5 -0
- package/lib/module/presentation/domain/metadata/index.js.map +1 -0
- package/lib/module/presentation/domain/metadata/use-comments.js +26 -0
- package/lib/module/presentation/domain/metadata/use-comments.js.map +1 -0
- package/lib/module/presentation/domain/metadata/use-images.js +26 -0
- package/lib/module/presentation/domain/metadata/use-images.js.map +1 -0
- package/lib/module/presentation/domain/offline/index.js +12 -0
- package/lib/module/presentation/domain/offline/index.js.map +1 -0
- package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js +69 -0
- package/lib/module/presentation/domain/offline/offline-mutation-queue-provider.js.map +1 -0
- package/lib/module/presentation/domain/offline/types.js +4 -0
- package/lib/module/presentation/domain/offline/types.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-infinite-offline-query.js +69 -0
- package/lib/module/presentation/domain/offline/use-infinite-offline-query.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-id-v2.js +22 -0
- package/lib/module/presentation/domain/offline/use-offline-id-v2.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-id.js +11 -0
- package/lib/module/presentation/domain/offline/use-offline-id.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-mutation.js +115 -0
- package/lib/module/presentation/domain/offline/use-offline-mutation.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-query.js +33 -0
- package/lib/module/presentation/domain/offline/use-offline-query.js.map +1 -0
- package/lib/module/presentation/domain/offline/use-offline-queue.js +8 -0
- package/lib/module/presentation/domain/offline/use-offline-queue.js.map +1 -0
- package/lib/module/presentation/domain/offline/utils.js +110 -0
- package/lib/module/presentation/domain/offline/utils.js.map +1 -0
- package/lib/module/presentation/domain/provider/index.js +4 -0
- package/lib/module/presentation/domain/provider/index.js.map +1 -0
- package/lib/module/presentation/domain/provider/zuq-core-provider.js +51 -0
- package/lib/module/presentation/domain/provider/zuq-core-provider.js.map +1 -0
- package/lib/module/presentation/domain/utils/exists.js +6 -0
- package/lib/module/presentation/domain/utils/exists.js.map +1 -0
- package/lib/module/presentation/domain/utils/index.js +8 -0
- package/lib/module/presentation/domain/utils/index.js.map +1 -0
- package/lib/module/presentation/domain/utils/react-query.js +10 -0
- package/lib/module/presentation/domain/utils/react-query.js.map +1 -0
- package/lib/module/presentation/domain/utils/use-action-sheet.js +20 -0
- package/lib/module/presentation/domain/utils/use-action-sheet.js.map +1 -0
- package/lib/module/presentation/domain/utils/use-signature-ref.js +8 -0
- package/lib/module/presentation/domain/utils/use-signature-ref.js.map +1 -0
- package/lib/module/presentation/domain/utils/yup.js +5 -0
- package/lib/module/presentation/domain/utils/yup.js.map +1 -0
- package/lib/module/theme.js +211 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/data/errors/http-client-error.d.ts +13 -0
- package/lib/typescript/src/data/errors/http-client-error.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/index.d.ts +4 -0
- package/lib/typescript/src/data/errors/index.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/save-file-error.d.ts +4 -0
- package/lib/typescript/src/data/errors/save-file-error.d.ts.map +1 -0
- package/lib/typescript/src/data/errors/unsupported-platform.d.ts +4 -0
- package/lib/typescript/src/data/errors/unsupported-platform.d.ts.map +1 -0
- package/lib/typescript/src/data/models/index.d.ts +4 -0
- package/lib/typescript/src/data/models/index.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts +16 -0
- package/lib/typescript/src/data/models/remote-get-comment-list-model.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts +16 -0
- package/lib/typescript/src/data/models/remote-get-image-list-model.d.ts.map +1 -0
- package/lib/typescript/src/data/models/remote-user-model.d.ts +14 -0
- package/lib/typescript/src/data/models/remote-user-model.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/cookie-manager.d.ts +7 -0
- package/lib/typescript/src/data/protocols/cookie-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/download-manager.d.ts +12 -0
- package/lib/typescript/src/data/protocols/download-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/http-client.d.ts +52 -0
- package/lib/typescript/src/data/protocols/http-client.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/index.d.ts +7 -0
- package/lib/typescript/src/data/protocols/index.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/notification-manager.d.ts +17 -0
- package/lib/typescript/src/data/protocols/notification-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/permission-manager.d.ts +23 -0
- package/lib/typescript/src/data/protocols/permission-manager.d.ts.map +1 -0
- package/lib/typescript/src/data/protocols/storage.d.ts +17 -0
- package/lib/typescript/src/data/protocols/storage.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/index.d.ts +4 -0
- package/lib/typescript/src/data/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts +9 -0
- package/lib/typescript/src/data/use-cases/remote-get-comment-list.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts +10 -0
- package/lib/typescript/src/data/use-cases/remote-get-image-list.d.ts.map +1 -0
- package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts +11 -0
- package/lib/typescript/src/data/use-cases/remote-send-diagnostics.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/authentication-expired-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/index.d.ts +5 -0
- package/lib/typescript/src/domain/errors/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/internal-server-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/internal-server-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/invalid-credentials-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts +4 -0
- package/lib/typescript/src/domain/errors/no-app-permission-error.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/get-comment-list-model.d.ts +10 -0
- package/lib/typescript/src/domain/models/get-comment-list-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/get-image-list-model.d.ts +8 -0
- package/lib/typescript/src/domain/models/get-image-list-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/index.d.ts +4 -0
- package/lib/typescript/src/domain/models/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/models/user-model.d.ts +16 -0
- package/lib/typescript/src/domain/models/user-model.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/get-comment-list.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/get-image-list.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/get-image-list.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/index.d.ts +7 -0
- package/lib/typescript/src/domain/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/record-request.d.ts +14 -0
- package/lib/typescript/src/domain/use-cases/record-request.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts +15 -0
- package/lib/typescript/src/domain/use-cases/send-diagnostics.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/user-authentication.d.ts +12 -0
- package/lib/typescript/src/domain/use-cases/user-authentication.d.ts.map +1 -0
- package/lib/typescript/src/domain/use-cases/user-logout.d.ts +10 -0
- package/lib/typescript/src/domain/use-cases/user-logout.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +15 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts +33 -0
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/index.d.ts +8 -0
- package/lib/typescript/src/infra/index.d.ts.map +1 -0
- package/lib/typescript/src/infra/isomorphic-id-manager.d.ts +29 -0
- package/lib/typescript/src/infra/isomorphic-id-manager.d.ts.map +1 -0
- package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts +18 -0
- package/lib/typescript/src/infra/mmkv-storage-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts +17 -0
- package/lib/typescript/src/infra/notifee-notification-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/offline-mutation-queue.d.ts +56 -0
- package/lib/typescript/src/infra/offline-mutation-queue.d.ts.map +1 -0
- package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts +7 -0
- package/lib/typescript/src/infra/rnbu-download-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts +20 -0
- package/lib/typescript/src/infra/rnp-permission-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts +12 -0
- package/lib/typescript/src/infra/storage-cookie-manager-adapter.d.ts.map +1 -0
- package/lib/typescript/src/main/components/index.d.ts +5 -0
- package/lib/typescript/src/main/components/index.d.ts.map +1 -0
- package/lib/typescript/src/main/components/request-permissions.d.ts +6 -0
- package/lib/typescript/src/main/components/request-permissions.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts +3 -0
- package/lib/typescript/src/main/factories/infra/download-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/http-client-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/index.d.ts +8 -0
- package/lib/typescript/src/main/factories/infra/index.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/isomorphic-id-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/notification-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts +5 -0
- package/lib/typescript/src/main/factories/infra/offline-mutation-queue-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts +3 -0
- package/lib/typescript/src/main/factories/infra/permission-manager-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/infra/storage-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/infra/storage-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/index.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/index.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-comment-list-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-get-image-list-factory.d.ts.map +1 -0
- package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts +4 -0
- package/lib/typescript/src/main/factories/use-cases/remote-send-diagnostics-factory.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIBackdrop.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts +11 -0
- package/lib/typescript/src/presentation/components/atoms/UICheckbox.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIDot.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts +133 -0
- package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts +9 -0
- package/lib/typescript/src/presentation/components/atoms/UILoading.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts +20 -0
- package/lib/typescript/src/presentation/components/atoms/UIPage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts +17 -0
- package/lib/typescript/src/presentation/components/atoms/UIScrollPage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts +10 -0
- package/lib/typescript/src/presentation/components/atoms/UISeparator.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts +9 -0
- package/lib/typescript/src/presentation/components/atoms/UISpacer.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts +14 -0
- package/lib/typescript/src/presentation/components/atoms/UIStack.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/UIText.d.ts +14 -0
- package/lib/typescript/src/presentation/components/atoms/UIText.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/atoms/index.d.ts +13 -0
- package/lib/typescript/src/presentation/components/atoms/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/index.d.ts +2 -0
- package/lib/typescript/src/presentation/components/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts +17 -0
- package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts +18 -0
- package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UIButtonCTA.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts +16 -0
- package/lib/typescript/src/presentation/components/molecules/UICheckboxInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts +17 -0
- package/lib/typescript/src/presentation/components/molecules/UIChip.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/molecules/UICurrencyInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIDataSectionList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts +10 -0
- package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIError.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UIError.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts +11 -0
- package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts +15 -0
- package/lib/typescript/src/presentation/components/molecules/UIInlineDatePicker.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts +9 -0
- package/lib/typescript/src/presentation/components/molecules/UIInputIcon.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIList.d.ts +5 -0
- package/lib/typescript/src/presentation/components/molecules/UIList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts +12 -0
- package/lib/typescript/src/presentation/components/molecules/UIRadioInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts +5 -0
- package/lib/typescript/src/presentation/components/molecules/UISectionList.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts +8 -0
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts +10 -0
- package/lib/typescript/src/presentation/components/molecules/UISwitch.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts +13 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts +16 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/molecules/index.d.ts +21 -0
- package/lib/typescript/src/presentation/components/molecules/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBar.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts +6 -0
- package/lib/typescript/src/presentation/components/organisms/UIAppBarAction.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UICard.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UICard.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIComment.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UIForm.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCheckboxInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormCurrencyInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts +10 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormDatetimeInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts +30 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts +9 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormRadioInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts +44 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts +11 -0
- package/lib/typescript/src/presentation/components/organisms/UIFormTextInputMask.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts +14 -0
- package/lib/typescript/src/presentation/components/organisms/UIRow.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts +6 -0
- package/lib/typescript/src/presentation/components/organisms/UISearchInput.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts +13 -0
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts +26 -0
- package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts +8 -0
- package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/index.d.ts +22 -0
- package/lib/typescript/src/presentation/components/organisms/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/permissions/index.d.ts +2 -0
- package/lib/typescript/src/presentation/components/permissions/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts +15 -0
- package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/index.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/metadata/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts +11 -0
- package/lib/typescript/src/presentation/domain/metadata/use-comments.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts +11 -0
- package/lib/typescript/src/presentation/domain/metadata/use-images.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/index.d.ts +10 -0
- package/lib/typescript/src/presentation/domain/offline/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/offline-mutation-queue-provider.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/types.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/types.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts +78 -0
- package/lib/typescript/src/presentation/domain/offline/use-infinite-offline-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts +9 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id-v2.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-id.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts +88 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-mutation.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts +8 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts +10 -0
- package/lib/typescript/src/presentation/domain/offline/use-offline-queue.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/offline/utils.d.ts +18 -0
- package/lib/typescript/src/presentation/domain/offline/utils.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/provider/index.d.ts +2 -0
- package/lib/typescript/src/presentation/domain/provider/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts +13 -0
- package/lib/typescript/src/presentation/domain/provider/zuq-core-provider.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/exists.d.ts +2 -0
- package/lib/typescript/src/presentation/domain/utils/exists.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/index.d.ts +6 -0
- package/lib/typescript/src/presentation/domain/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/react-query.d.ts +5 -0
- package/lib/typescript/src/presentation/domain/utils/react-query.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts +6 -0
- package/lib/typescript/src/presentation/domain/utils/use-action-sheet.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts +15 -0
- package/lib/typescript/src/presentation/domain/utils/use-signature-ref.d.ts.map +1 -0
- package/lib/typescript/src/presentation/domain/utils/yup.d.ts +3 -0
- package/lib/typescript/src/presentation/domain/utils/yup.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +214 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/package.json +210 -0
- package/src/assets/logo.png +0 -0
- package/src/data/errors/http-client-error.ts +23 -0
- package/src/data/errors/index.ts +3 -0
- package/src/data/errors/save-file-error.ts +6 -0
- package/src/data/errors/unsupported-platform.ts +6 -0
- package/src/data/models/index.ts +3 -0
- package/src/data/models/remote-get-comment-list-model.ts +15 -0
- package/src/data/models/remote-get-image-list-model.ts +15 -0
- package/src/data/models/remote-user-model.ts +13 -0
- package/src/data/protocols/cookie-manager.ts +6 -0
- package/src/data/protocols/download-manager.ts +13 -0
- package/src/data/protocols/http-client.ts +75 -0
- package/src/data/protocols/index.ts +6 -0
- package/src/data/protocols/notification-manager.ts +17 -0
- package/src/data/protocols/permission-manager.ts +46 -0
- package/src/data/protocols/storage.ts +18 -0
- package/src/data/use-cases/index.ts +3 -0
- package/src/data/use-cases/remote-get-comment-list.ts +34 -0
- package/src/data/use-cases/remote-get-image-list.ts +40 -0
- package/src/data/use-cases/remote-send-diagnostics.ts +20 -0
- package/src/domain/errors/authentication-expired-error.ts +6 -0
- package/src/domain/errors/index.ts +4 -0
- package/src/domain/errors/internal-server-error.ts +6 -0
- package/src/domain/errors/invalid-credentials-error.ts +6 -0
- package/src/domain/errors/no-app-permission-error.ts +6 -0
- package/src/domain/models/get-comment-list-model.ts +9 -0
- package/src/domain/models/get-image-list-model.ts +7 -0
- package/src/domain/models/index.ts +3 -0
- package/src/domain/models/user-model.ts +15 -0
- package/src/domain/use-cases/get-comment-list.ts +14 -0
- package/src/domain/use-cases/get-image-list.ts +14 -0
- package/src/domain/use-cases/index.ts +6 -0
- package/src/domain/use-cases/record-request.ts +15 -0
- package/src/domain/use-cases/send-diagnostics.ts +15 -0
- package/src/domain/use-cases/user-authentication.ts +16 -0
- package/src/domain/use-cases/user-logout.ts +10 -0
- package/src/index.tsx +29 -0
- package/src/infra/axios-http-client-adapter.ts +271 -0
- package/src/infra/index.ts +7 -0
- package/src/infra/isomorphic-id-manager.ts +107 -0
- package/src/infra/mmkv-storage-adapter.ts +73 -0
- package/src/infra/notifee-notification-manager-adapter.ts +87 -0
- package/src/infra/offline-mutation-queue.ts +280 -0
- package/src/infra/rnbu-download-manager-adapter.ts +29 -0
- package/src/infra/rnp-permission-manager-adapter.ts +147 -0
- package/src/infra/storage-cookie-manager-adapter.ts +29 -0
- package/src/main/components/index.ts +4 -0
- package/src/main/components/request-permissions.tsx +17 -0
- package/src/main/factories/infra/download-manager-factory.ts +6 -0
- package/src/main/factories/infra/http-client-factory.ts +9 -0
- package/src/main/factories/infra/index.ts +7 -0
- package/src/main/factories/infra/isomorphic-id-manager-factory.ts +6 -0
- package/src/main/factories/infra/notification-manager-factory.ts +8 -0
- package/src/main/factories/infra/offline-mutation-queue-factory.ts +22 -0
- package/src/main/factories/infra/permission-manager-factory.ts +6 -0
- package/src/main/factories/infra/storage-factory.ts +11 -0
- package/src/main/factories/use-cases/index.ts +3 -0
- package/src/main/factories/use-cases/remote-get-comment-list-factory.ts +6 -0
- package/src/main/factories/use-cases/remote-get-image-list-factory.ts +6 -0
- package/src/main/factories/use-cases/remote-send-diagnostics-factory.ts +10 -0
- package/src/presentation/components/atoms/UIBackdrop.tsx +35 -0
- package/src/presentation/components/atoms/UICheckbox.tsx +58 -0
- package/src/presentation/components/atoms/UIDot.tsx +40 -0
- package/src/presentation/components/atoms/UIIcon.tsx +1091 -0
- package/src/presentation/components/atoms/UILoading.tsx +17 -0
- package/src/presentation/components/atoms/UIPage.tsx +92 -0
- package/src/presentation/components/atoms/UIProgress.tsx +60 -0
- package/src/presentation/components/atoms/UIScrollPage.tsx +87 -0
- package/src/presentation/components/atoms/UISeparator.tsx +41 -0
- package/src/presentation/components/atoms/UISpacer.tsx +21 -0
- package/src/presentation/components/atoms/UIStack.tsx +44 -0
- package/src/presentation/components/atoms/UIText.tsx +59 -0
- package/src/presentation/components/atoms/index.ts +12 -0
- package/src/presentation/components/index.ts +1 -0
- package/src/presentation/components/molecules/UIActionSheet.tsx +230 -0
- package/src/presentation/components/molecules/UIButton.tsx +192 -0
- package/src/presentation/components/molecules/UIButtonCTA.tsx +38 -0
- package/src/presentation/components/molecules/UICheckboxInput.tsx +106 -0
- package/src/presentation/components/molecules/UIChip.tsx +69 -0
- package/src/presentation/components/molecules/UICurrencyInput.tsx +43 -0
- package/src/presentation/components/molecules/UIDataList.tsx +30 -0
- package/src/presentation/components/molecules/UIDataSectionList.tsx +30 -0
- package/src/presentation/components/molecules/UIDatetimeInput.tsx +205 -0
- package/src/presentation/components/molecules/UIError.tsx +24 -0
- package/src/presentation/components/molecules/UIImage.tsx +85 -0
- package/src/presentation/components/molecules/UIInlineDatePicker.tsx +244 -0
- package/src/presentation/components/molecules/UIInputIcon.tsx +39 -0
- package/src/presentation/components/molecules/UIList.tsx +17 -0
- package/src/presentation/components/molecules/UIRadioInput.tsx +97 -0
- package/src/presentation/components/molecules/UISectionList.tsx +17 -0
- package/src/presentation/components/molecules/UISkeleton.tsx +66 -0
- package/src/presentation/components/molecules/UISwitch.tsx +72 -0
- package/src/presentation/components/molecules/UITextInput.tsx +160 -0
- package/src/presentation/components/molecules/UITextInputMask.tsx +160 -0
- package/src/presentation/components/molecules/index.ts +20 -0
- package/src/presentation/components/organisms/UIAppBar.tsx +103 -0
- package/src/presentation/components/organisms/UIAppBarAction.tsx +13 -0
- package/src/presentation/components/organisms/UICard.tsx +48 -0
- package/src/presentation/components/organisms/UIComment.tsx +64 -0
- package/src/presentation/components/organisms/UIErrorBoundary.tsx +72 -0
- package/src/presentation/components/organisms/UIForm.tsx +81 -0
- package/src/presentation/components/organisms/UIFormButton.tsx +38 -0
- package/src/presentation/components/organisms/UIFormCheckboxInput.tsx +35 -0
- package/src/presentation/components/organisms/UIFormCurrencyInput.tsx +65 -0
- package/src/presentation/components/organisms/UIFormDatetimeInput.tsx +51 -0
- package/src/presentation/components/organisms/UIFormMultiselectInput.tsx +251 -0
- package/src/presentation/components/organisms/UIFormRadioInput.tsx +32 -0
- package/src/presentation/components/organisms/UIFormSelectInput.tsx +316 -0
- package/src/presentation/components/organisms/UIFormTextInput.tsx +62 -0
- package/src/presentation/components/organisms/UIFormTextInputMask.tsx +79 -0
- package/src/presentation/components/organisms/UIRow.tsx +61 -0
- package/src/presentation/components/organisms/UISearchInput.tsx +40 -0
- package/src/presentation/components/organisms/UISelectChip.tsx +104 -0
- package/src/presentation/components/organisms/UISignature.tsx +194 -0
- package/src/presentation/components/organisms/UISlideButton.tsx +112 -0
- package/src/presentation/components/organisms/index.ts +21 -0
- package/src/presentation/components/permissions/index.ts +1 -0
- package/src/presentation/components/permissions/request-permissions.tsx +115 -0
- package/src/presentation/domain/metadata/index.ts +2 -0
- package/src/presentation/domain/metadata/use-comments.ts +27 -0
- package/src/presentation/domain/metadata/use-images.ts +27 -0
- package/src/presentation/domain/offline/index.ts +9 -0
- package/src/presentation/domain/offline/offline-mutation-queue-provider.tsx +95 -0
- package/src/presentation/domain/offline/types.ts +21 -0
- package/src/presentation/domain/offline/use-infinite-offline-query.tsx +89 -0
- package/src/presentation/domain/offline/use-offline-id-v2.ts +29 -0
- package/src/presentation/domain/offline/use-offline-id.ts +12 -0
- package/src/presentation/domain/offline/use-offline-mutation.ts +150 -0
- package/src/presentation/domain/offline/use-offline-query.ts +55 -0
- package/src/presentation/domain/offline/use-offline-queue.ts +6 -0
- package/src/presentation/domain/offline/utils.ts +139 -0
- package/src/presentation/domain/provider/index.ts +1 -0
- package/src/presentation/domain/provider/zuq-core-provider.tsx +52 -0
- package/src/presentation/domain/utils/exists.ts +3 -0
- package/src/presentation/domain/utils/index.ts +5 -0
- package/src/presentation/domain/utils/react-query.ts +10 -0
- package/src/presentation/domain/utils/use-action-sheet.ts +21 -0
- package/src/presentation/domain/utils/use-signature-ref.ts +19 -0
- package/src/presentation/domain/utils/yup.ts +3 -0
- package/src/theme.ts +240 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, TextInput, View } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import { UIIcon, UIText } from '../atoms';
|
|
5
|
+
import { theme } from '../../../theme';
|
|
6
|
+
import { UIButton, UIInputIcon } from '.';
|
|
7
|
+
|
|
8
|
+
type Props = React.ComponentProps<typeof TextInput> & {
|
|
9
|
+
variant?: 'contained' | 'outlined' | 'underline';
|
|
10
|
+
startIcon?: React.ReactElement<React.ComponentProps<typeof UIInputIcon>>;
|
|
11
|
+
endIcon?: React.ReactElement<React.ComponentProps<typeof UIInputIcon>>;
|
|
12
|
+
label?: string;
|
|
13
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const UITextInput = React.forwardRef<TextInput, Props>(
|
|
18
|
+
(
|
|
19
|
+
{
|
|
20
|
+
label,
|
|
21
|
+
style,
|
|
22
|
+
onFocus,
|
|
23
|
+
onBlur,
|
|
24
|
+
variant = 'contained',
|
|
25
|
+
startIcon,
|
|
26
|
+
endIcon,
|
|
27
|
+
containerStyle,
|
|
28
|
+
secureTextEntry,
|
|
29
|
+
wrapperStyle,
|
|
30
|
+
editable = true,
|
|
31
|
+
value,
|
|
32
|
+
...props
|
|
33
|
+
},
|
|
34
|
+
ref
|
|
35
|
+
) => {
|
|
36
|
+
const [hidden, setHidden] = React.useState(secureTextEntry);
|
|
37
|
+
const [focused, setFocused] = React.useState(false);
|
|
38
|
+
|
|
39
|
+
const toggleHidden = () => setHidden((value) => !value);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<View style={wrapperStyle}>
|
|
43
|
+
{label && (
|
|
44
|
+
<UIText
|
|
45
|
+
weight="700"
|
|
46
|
+
variant="label"
|
|
47
|
+
style={[styles.label, focused && styles.labelFocused]}
|
|
48
|
+
>
|
|
49
|
+
{label}
|
|
50
|
+
</UIText>
|
|
51
|
+
)}
|
|
52
|
+
<View
|
|
53
|
+
style={[
|
|
54
|
+
styles.common,
|
|
55
|
+
focused && styles.focused,
|
|
56
|
+
Boolean(startIcon) && styles.startIcon,
|
|
57
|
+
Boolean(endIcon) && styles.endIcon,
|
|
58
|
+
styles[variant],
|
|
59
|
+
containerStyle,
|
|
60
|
+
]}
|
|
61
|
+
>
|
|
62
|
+
{startIcon && React.cloneElement(startIcon, { focused })}
|
|
63
|
+
<TextInput
|
|
64
|
+
accessible
|
|
65
|
+
ref={ref}
|
|
66
|
+
secureTextEntry={hidden}
|
|
67
|
+
value={value}
|
|
68
|
+
placeholderTextColor={theme.color.neutral.mid['60']}
|
|
69
|
+
selectionColor={theme.color.brand.violet['500']}
|
|
70
|
+
editable={editable}
|
|
71
|
+
style={[
|
|
72
|
+
styles.input,
|
|
73
|
+
variant === 'underline' && styles.inputUnderline,
|
|
74
|
+
!editable && Boolean(value) && styles.disabled,
|
|
75
|
+
Boolean(startIcon) && styles.startIcon,
|
|
76
|
+
Boolean(endIcon) && styles.endIcon,
|
|
77
|
+
style,
|
|
78
|
+
]}
|
|
79
|
+
onFocus={(e) => {
|
|
80
|
+
setFocused(true);
|
|
81
|
+
onFocus?.(e);
|
|
82
|
+
}}
|
|
83
|
+
onBlur={(e) => {
|
|
84
|
+
setFocused(false);
|
|
85
|
+
onBlur?.(e);
|
|
86
|
+
}}
|
|
87
|
+
{...props}
|
|
88
|
+
/>
|
|
89
|
+
{secureTextEntry && (
|
|
90
|
+
<UIButton borderless style={styles.hidden} onPress={toggleHidden}>
|
|
91
|
+
<UIIcon name={hidden ? 'eye' : 'eye-off'} />
|
|
92
|
+
</UIButton>
|
|
93
|
+
)}
|
|
94
|
+
{endIcon && React.cloneElement(endIcon, { focused })}
|
|
95
|
+
</View>
|
|
96
|
+
</View>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const styles = StyleSheet.create({
|
|
102
|
+
input: {
|
|
103
|
+
paddingLeft: 16,
|
|
104
|
+
paddingRight: 16,
|
|
105
|
+
fontSize: 14,
|
|
106
|
+
color: '#555',
|
|
107
|
+
flex: 1,
|
|
108
|
+
},
|
|
109
|
+
inputUnderline: {
|
|
110
|
+
paddingHorizontal: 0,
|
|
111
|
+
},
|
|
112
|
+
startIcon: {
|
|
113
|
+
paddingLeft: 12,
|
|
114
|
+
},
|
|
115
|
+
endIcon: {
|
|
116
|
+
paddingRight: 12,
|
|
117
|
+
},
|
|
118
|
+
common: {
|
|
119
|
+
flexDirection: 'row',
|
|
120
|
+
overflow: 'hidden',
|
|
121
|
+
borderRadius: 8,
|
|
122
|
+
alignItems: 'center',
|
|
123
|
+
minHeight: 40,
|
|
124
|
+
},
|
|
125
|
+
label: {
|
|
126
|
+
color: theme.color.neutral.dark['80'],
|
|
127
|
+
marginBottom: theme.spacing.md,
|
|
128
|
+
fontWeight: '600',
|
|
129
|
+
},
|
|
130
|
+
labelFocused: {
|
|
131
|
+
color: theme.color.brand.violet['500'],
|
|
132
|
+
},
|
|
133
|
+
focused: {
|
|
134
|
+
borderColor: theme.color.brand.violet['500'],
|
|
135
|
+
borderBottomColor: theme.color.brand.violet['500'],
|
|
136
|
+
},
|
|
137
|
+
contained: {
|
|
138
|
+
backgroundColor: theme.color.neutral.light['05'],
|
|
139
|
+
borderBottomColor: theme.color.neutral.light['50'],
|
|
140
|
+
borderBottomWidth: 1,
|
|
141
|
+
borderBottomLeftRadius: 0,
|
|
142
|
+
borderBottomRightRadius: 0,
|
|
143
|
+
},
|
|
144
|
+
underline: {
|
|
145
|
+
borderRadius: 0,
|
|
146
|
+
borderBottomWidth: 1,
|
|
147
|
+
borderBottomColor: theme.color.neutral.light['50'],
|
|
148
|
+
paddingLeft: 0,
|
|
149
|
+
},
|
|
150
|
+
outlined: { borderWidth: 1, borderColor: theme.color.neutral.light['50'] },
|
|
151
|
+
hidden: {
|
|
152
|
+
padding: 4,
|
|
153
|
+
paddingTop: 6,
|
|
154
|
+
marginRight: 4,
|
|
155
|
+
},
|
|
156
|
+
disabled: {
|
|
157
|
+
color: theme.color.brand.violet['500'],
|
|
158
|
+
fontWeight: '700',
|
|
159
|
+
},
|
|
160
|
+
});
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import type { StyleProp, TextInput, ViewStyle } from 'react-native';
|
|
4
|
+
import MaskInput, { type Mask } from 'react-native-mask-input';
|
|
5
|
+
import { UIIcon, UIText } from '../atoms';
|
|
6
|
+
import { theme } from '../../../theme';
|
|
7
|
+
import { UIButton, UIInputIcon } from '.';
|
|
8
|
+
|
|
9
|
+
type Props = React.ComponentProps<typeof MaskInput> & {
|
|
10
|
+
variant?: 'contained' | 'outlined' | 'underline';
|
|
11
|
+
startIcon?: React.ReactElement<React.ComponentProps<typeof UIInputIcon>>;
|
|
12
|
+
endIcon?: React.ReactElement<React.ComponentProps<typeof UIInputIcon>>;
|
|
13
|
+
label?: string;
|
|
14
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
mask?: Mask;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const UITextInputMask = React.forwardRef<TextInput, Props>(
|
|
20
|
+
(
|
|
21
|
+
{
|
|
22
|
+
label,
|
|
23
|
+
style,
|
|
24
|
+
onFocus,
|
|
25
|
+
onBlur,
|
|
26
|
+
variant = 'contained',
|
|
27
|
+
startIcon,
|
|
28
|
+
endIcon,
|
|
29
|
+
containerStyle,
|
|
30
|
+
secureTextEntry,
|
|
31
|
+
wrapperStyle,
|
|
32
|
+
mask,
|
|
33
|
+
value,
|
|
34
|
+
editable = true,
|
|
35
|
+
...props
|
|
36
|
+
},
|
|
37
|
+
ref
|
|
38
|
+
) => {
|
|
39
|
+
const [hidden, setHidden] = React.useState(secureTextEntry);
|
|
40
|
+
const [focused, setFocused] = React.useState(false);
|
|
41
|
+
|
|
42
|
+
const toggleHidden = () => setHidden((value) => !value);
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<View style={wrapperStyle}>
|
|
46
|
+
{label && (
|
|
47
|
+
<UIText
|
|
48
|
+
weight="700"
|
|
49
|
+
variant="label"
|
|
50
|
+
style={[styles.label, focused && styles.labelFocused]}
|
|
51
|
+
>
|
|
52
|
+
{label}
|
|
53
|
+
</UIText>
|
|
54
|
+
)}
|
|
55
|
+
<View
|
|
56
|
+
style={[
|
|
57
|
+
styles.common,
|
|
58
|
+
focused && styles.focused,
|
|
59
|
+
styles[variant],
|
|
60
|
+
containerStyle,
|
|
61
|
+
]}
|
|
62
|
+
>
|
|
63
|
+
{startIcon && React.cloneElement(startIcon, { focused })}
|
|
64
|
+
<MaskInput
|
|
65
|
+
ref={ref}
|
|
66
|
+
value={value}
|
|
67
|
+
secureTextEntry={hidden}
|
|
68
|
+
placeholderTextColor={theme.color.neutral.mid['60']}
|
|
69
|
+
selectionColor={theme.color.brand.violet['500']}
|
|
70
|
+
editable={editable}
|
|
71
|
+
style={[
|
|
72
|
+
styles.input,
|
|
73
|
+
variant === 'underline' && styles.inputUnderline,
|
|
74
|
+
Boolean(startIcon) && styles.startIcon,
|
|
75
|
+
Boolean(endIcon) && styles.endIcon,
|
|
76
|
+
!editable && Boolean(value) && styles.disabled,
|
|
77
|
+
style,
|
|
78
|
+
]}
|
|
79
|
+
onFocus={(e) => {
|
|
80
|
+
setFocused(true);
|
|
81
|
+
onFocus?.(e);
|
|
82
|
+
}}
|
|
83
|
+
onBlur={(e) => {
|
|
84
|
+
setFocused(false);
|
|
85
|
+
onBlur?.(e);
|
|
86
|
+
}}
|
|
87
|
+
mask={mask}
|
|
88
|
+
{...props}
|
|
89
|
+
/>
|
|
90
|
+
{secureTextEntry && (
|
|
91
|
+
<UIButton borderless style={styles.hidden} onPress={toggleHidden}>
|
|
92
|
+
<UIIcon name={hidden ? 'eye' : 'eye-off'} />
|
|
93
|
+
</UIButton>
|
|
94
|
+
)}
|
|
95
|
+
{endIcon && React.cloneElement(endIcon, { focused })}
|
|
96
|
+
</View>
|
|
97
|
+
</View>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
const styles = StyleSheet.create({
|
|
103
|
+
input: {
|
|
104
|
+
paddingHorizontal: 16,
|
|
105
|
+
fontSize: 14,
|
|
106
|
+
color: '#555',
|
|
107
|
+
flex: 1,
|
|
108
|
+
},
|
|
109
|
+
inputUnderline: {
|
|
110
|
+
paddingHorizontal: 0,
|
|
111
|
+
},
|
|
112
|
+
startIcon: {
|
|
113
|
+
paddingLeft: 8,
|
|
114
|
+
},
|
|
115
|
+
endIcon: {
|
|
116
|
+
paddingRight: 8,
|
|
117
|
+
},
|
|
118
|
+
common: {
|
|
119
|
+
flexDirection: 'row',
|
|
120
|
+
overflow: 'hidden',
|
|
121
|
+
borderRadius: 8,
|
|
122
|
+
alignItems: 'center',
|
|
123
|
+
minHeight: 40,
|
|
124
|
+
},
|
|
125
|
+
label: {
|
|
126
|
+
color: theme.color.neutral.dark['80'],
|
|
127
|
+
marginBottom: theme.spacing.md,
|
|
128
|
+
fontWeight: '600',
|
|
129
|
+
},
|
|
130
|
+
labelFocused: {
|
|
131
|
+
color: theme.color.brand.violet['500'],
|
|
132
|
+
},
|
|
133
|
+
focused: {
|
|
134
|
+
borderColor: theme.color.brand.violet['500'],
|
|
135
|
+
borderBottomColor: theme.color.brand.violet['500'],
|
|
136
|
+
},
|
|
137
|
+
contained: {
|
|
138
|
+
backgroundColor: theme.color.neutral.light['05'],
|
|
139
|
+
borderBottomColor: theme.color.neutral.light['50'],
|
|
140
|
+
borderBottomWidth: 1,
|
|
141
|
+
borderBottomLeftRadius: 0,
|
|
142
|
+
borderBottomRightRadius: 0,
|
|
143
|
+
},
|
|
144
|
+
underline: {
|
|
145
|
+
borderRadius: 0,
|
|
146
|
+
borderBottomWidth: 1,
|
|
147
|
+
borderBottomColor: theme.color.neutral.light['50'],
|
|
148
|
+
paddingLeft: 0,
|
|
149
|
+
},
|
|
150
|
+
outlined: { borderWidth: 1, borderColor: theme.color.neutral.light['50'] },
|
|
151
|
+
hidden: {
|
|
152
|
+
padding: 4,
|
|
153
|
+
paddingTop: 6,
|
|
154
|
+
marginRight: 4,
|
|
155
|
+
},
|
|
156
|
+
disabled: {
|
|
157
|
+
color: theme.color.brand.violet['500'],
|
|
158
|
+
fontWeight: '700',
|
|
159
|
+
},
|
|
160
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './UITextInput';
|
|
2
|
+
export * from './UIButton';
|
|
3
|
+
export * from './UIActionSheet';
|
|
4
|
+
export * from './UIRadioInput';
|
|
5
|
+
export * from './UIInputIcon';
|
|
6
|
+
export * from './UIChip';
|
|
7
|
+
export * from './UICheckboxInput';
|
|
8
|
+
export * from './UIList';
|
|
9
|
+
export * from './UIImage';
|
|
10
|
+
export * from './UIDataList';
|
|
11
|
+
export * from './UIDatetimeInput';
|
|
12
|
+
export * from './UISwitch';
|
|
13
|
+
export * from './UITextInputMask';
|
|
14
|
+
export * from './UISkeleton';
|
|
15
|
+
export * from './UIError';
|
|
16
|
+
export * from './UICurrencyInput';
|
|
17
|
+
export * from './UIButtonCTA';
|
|
18
|
+
export * from './UIDataSectionList';
|
|
19
|
+
export * from './UISectionList';
|
|
20
|
+
export * from './UIInlineDatePicker';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StyleSheet,
|
|
3
|
+
type StyleProp,
|
|
4
|
+
type TextStyle,
|
|
5
|
+
type ViewStyle,
|
|
6
|
+
} from 'react-native';
|
|
7
|
+
import { UIIcon, UIStack, UIText } from '../atoms';
|
|
8
|
+
import { UIButton } from '../molecules';
|
|
9
|
+
import { theme } from '../../../theme';
|
|
10
|
+
import { useNetInfo } from '@react-native-community/netinfo';
|
|
11
|
+
|
|
12
|
+
type Props = React.ComponentProps<typeof UIStack> & {
|
|
13
|
+
title: string;
|
|
14
|
+
left?: React.ReactNode;
|
|
15
|
+
right?: React.ReactNode;
|
|
16
|
+
variant?: 'left' | 'center';
|
|
17
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
18
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const UIAppBar = ({
|
|
22
|
+
left,
|
|
23
|
+
right,
|
|
24
|
+
title,
|
|
25
|
+
variant = 'left',
|
|
26
|
+
style,
|
|
27
|
+
wrapperStyle,
|
|
28
|
+
titleStyle,
|
|
29
|
+
...props
|
|
30
|
+
}: Props) => {
|
|
31
|
+
const { isConnected } = useNetInfo();
|
|
32
|
+
|
|
33
|
+
const withBasePadding = !left && !right;
|
|
34
|
+
|
|
35
|
+
if (variant === 'center') {
|
|
36
|
+
if (!left) left = <UIButton disabled style={styles.empty} />;
|
|
37
|
+
if (!right) right = <UIButton disabled style={styles.empty} />;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<UIStack style={[styles.wrapper, wrapperStyle]}>
|
|
42
|
+
<UIStack
|
|
43
|
+
horizontal
|
|
44
|
+
center
|
|
45
|
+
style={[styles.container, withBasePadding && styles.basePadding, style]}
|
|
46
|
+
{...props}
|
|
47
|
+
>
|
|
48
|
+
<UIStack style={variant !== 'left' && styles.left}>{left}</UIStack>
|
|
49
|
+
<UIText weight="600" align="center" style={[styles.title, titleStyle]}>
|
|
50
|
+
{title}
|
|
51
|
+
</UIText>
|
|
52
|
+
<UIStack style={styles.right}>{right}</UIStack>
|
|
53
|
+
</UIStack>
|
|
54
|
+
{isConnected === false && (
|
|
55
|
+
<UIStack
|
|
56
|
+
horizontal
|
|
57
|
+
center
|
|
58
|
+
justify="center"
|
|
59
|
+
style={styles.offlineContainer}
|
|
60
|
+
>
|
|
61
|
+
<UIIcon name="no-wifi" color={theme.color.feedback.red['500']} />
|
|
62
|
+
<UIText color="feedback-red-500">Sem conexão</UIText>
|
|
63
|
+
</UIStack>
|
|
64
|
+
)}
|
|
65
|
+
</UIStack>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const styles = StyleSheet.create({
|
|
70
|
+
container: {
|
|
71
|
+
paddingHorizontal: 4,
|
|
72
|
+
paddingVertical: 4,
|
|
73
|
+
backgroundColor: theme.color.neutral.light['00'],
|
|
74
|
+
},
|
|
75
|
+
title: {
|
|
76
|
+
marginHorizontal: 4,
|
|
77
|
+
fontSize: 16,
|
|
78
|
+
flexShrink: 1,
|
|
79
|
+
},
|
|
80
|
+
basePadding: {
|
|
81
|
+
paddingVertical: 16,
|
|
82
|
+
paddingHorizontal: 8,
|
|
83
|
+
},
|
|
84
|
+
offlineContainer: {
|
|
85
|
+
backgroundColor: theme.color.feedback.red['50'],
|
|
86
|
+
paddingVertical: 4,
|
|
87
|
+
paddingHorizontal: 8,
|
|
88
|
+
},
|
|
89
|
+
wrapper: {
|
|
90
|
+
paddingBottom: 6,
|
|
91
|
+
backgroundColor: '#fff',
|
|
92
|
+
},
|
|
93
|
+
left: {
|
|
94
|
+
marginRight: 'auto',
|
|
95
|
+
},
|
|
96
|
+
right: {
|
|
97
|
+
marginLeft: 'auto',
|
|
98
|
+
},
|
|
99
|
+
empty: {
|
|
100
|
+
padding: 12,
|
|
101
|
+
paddingHorizontal: 24,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { UIButton } from '../molecules';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
|
|
5
|
+
type Props = React.ComponentProps<typeof UIButton>;
|
|
6
|
+
|
|
7
|
+
export const UIAppBarAction = ({ style, ...props }: Props) => {
|
|
8
|
+
return (
|
|
9
|
+
<UIButton borderless style={[styles.button, style as any]} {...props} />
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const styles = StyleSheet.create({ button: { padding: 12 } });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { UIButton } from '../molecules';
|
|
4
|
+
|
|
5
|
+
type Props = Parameters<typeof UIButton>[number] & {
|
|
6
|
+
pressable?: boolean;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const UICard = ({
|
|
11
|
+
style,
|
|
12
|
+
children,
|
|
13
|
+
pressable,
|
|
14
|
+
disabled,
|
|
15
|
+
...props
|
|
16
|
+
}: Props) => {
|
|
17
|
+
return (
|
|
18
|
+
<UIButton
|
|
19
|
+
disabled={!pressable || disabled}
|
|
20
|
+
style={[styles.common, styles.card, style]}
|
|
21
|
+
{...props}
|
|
22
|
+
>
|
|
23
|
+
{children}
|
|
24
|
+
</UIButton>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
common: {
|
|
30
|
+
borderRadius: 8,
|
|
31
|
+
},
|
|
32
|
+
card: {
|
|
33
|
+
backgroundColor: '#fff',
|
|
34
|
+
shadowColor: '#808080',
|
|
35
|
+
margin: 4,
|
|
36
|
+
...Platform.select<ViewStyle>({
|
|
37
|
+
android: { elevation: 3 },
|
|
38
|
+
ios: {
|
|
39
|
+
shadowOffset: {
|
|
40
|
+
width: -2,
|
|
41
|
+
height: 4,
|
|
42
|
+
},
|
|
43
|
+
shadowRadius: 3,
|
|
44
|
+
shadowOpacity: 0.8,
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { StyleSheet, Image } from 'react-native';
|
|
2
|
+
import { UIIcon, UIStack, UIText } from '../atoms';
|
|
3
|
+
|
|
4
|
+
import { formatDistanceToNow } from 'date-fns';
|
|
5
|
+
import { ptBR } from 'date-fns/locale';
|
|
6
|
+
import { theme } from '../../../theme';
|
|
7
|
+
|
|
8
|
+
type Props = {
|
|
9
|
+
name: string;
|
|
10
|
+
comment: string;
|
|
11
|
+
picture?: string;
|
|
12
|
+
date?: Date;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const UIComment = ({ name, comment, picture, date }: Props) => {
|
|
16
|
+
return (
|
|
17
|
+
<UIStack style={styles.container}>
|
|
18
|
+
<UIStack horizontal center size="md">
|
|
19
|
+
{picture ? (
|
|
20
|
+
<Image source={{ uri: picture }} style={styles.user} />
|
|
21
|
+
) : (
|
|
22
|
+
<UIStack center style={styles.user}>
|
|
23
|
+
<UIIcon
|
|
24
|
+
name="user"
|
|
25
|
+
size={24}
|
|
26
|
+
color={theme.color.brand.violet['500']}
|
|
27
|
+
/>
|
|
28
|
+
</UIStack>
|
|
29
|
+
)}
|
|
30
|
+
<UIStack flex={1}>
|
|
31
|
+
<UIStack horizontal center size="md">
|
|
32
|
+
<UIText weight="500" size={12}>
|
|
33
|
+
{name}
|
|
34
|
+
</UIText>
|
|
35
|
+
{date && (
|
|
36
|
+
<UIText size={12} color="neutral-mid-60">
|
|
37
|
+
{formatDistanceToNow(date, {
|
|
38
|
+
addSuffix: true,
|
|
39
|
+
locale: ptBR,
|
|
40
|
+
})}
|
|
41
|
+
</UIText>
|
|
42
|
+
)}
|
|
43
|
+
</UIStack>
|
|
44
|
+
<UIText variant="body" color="neutral-mid-60">
|
|
45
|
+
{comment}
|
|
46
|
+
</UIText>
|
|
47
|
+
</UIStack>
|
|
48
|
+
</UIStack>
|
|
49
|
+
</UIStack>
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const styles = StyleSheet.create({
|
|
54
|
+
user: {
|
|
55
|
+
backgroundColor: theme.color.neutral.light['10'],
|
|
56
|
+
borderRadius: 20,
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
height: 40,
|
|
59
|
+
width: 40,
|
|
60
|
+
},
|
|
61
|
+
container: {
|
|
62
|
+
paddingVertical: 8,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ErrorBoundary, {
|
|
3
|
+
type FallbackComponentProps,
|
|
4
|
+
} from 'react-native-error-boundary';
|
|
5
|
+
import { UIPage, UIStack, UIText } from '../atoms';
|
|
6
|
+
import { UIAppBar } from './UIAppBar';
|
|
7
|
+
import { UIButton } from '../molecules';
|
|
8
|
+
import { StyleSheet } from 'react-native';
|
|
9
|
+
import { useMutation } from '@tanstack/react-query';
|
|
10
|
+
|
|
11
|
+
type Props = React.PropsWithChildren<{
|
|
12
|
+
onRecordError: (error: Error, stackTrace: string) => void;
|
|
13
|
+
onSendDiagnostics: (error: Error) => Promise<void>;
|
|
14
|
+
onResetError: () => Promise<void>;
|
|
15
|
+
}>;
|
|
16
|
+
|
|
17
|
+
export const UIErrorBoundary = ({
|
|
18
|
+
onRecordError,
|
|
19
|
+
onSendDiagnostics,
|
|
20
|
+
onResetError,
|
|
21
|
+
children,
|
|
22
|
+
}: Props) => {
|
|
23
|
+
const sendDiagnostic = useMutation({
|
|
24
|
+
mutationFn: onSendDiagnostics,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<ErrorBoundary
|
|
29
|
+
FallbackComponent={({ error, resetError }: FallbackComponentProps) => (
|
|
30
|
+
<UIPage appBar={<UIAppBar variant="center" title="Erro inesperado" />}>
|
|
31
|
+
<UIStack flex={1} justify="space-between" style={styles.container}>
|
|
32
|
+
<UIStack>
|
|
33
|
+
<UIText variant="subtitle">Sentimos muito :{'('}</UIText>
|
|
34
|
+
<UIText color="neutral-mid-60">
|
|
35
|
+
Um erro inesperado aconteceu no nosso app, gostaria de enviar um
|
|
36
|
+
diagnóstico para que possamos corrigir o problema?
|
|
37
|
+
</UIText>
|
|
38
|
+
</UIStack>
|
|
39
|
+
<UIStack>
|
|
40
|
+
<UIButton
|
|
41
|
+
onPress={async () => {
|
|
42
|
+
await onResetError();
|
|
43
|
+
resetError();
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
Limpar erro
|
|
47
|
+
</UIButton>
|
|
48
|
+
<UIButton
|
|
49
|
+
variant="contained"
|
|
50
|
+
loading={sendDiagnostic.isPending}
|
|
51
|
+
onPress={async () => {
|
|
52
|
+
await sendDiagnostic.mutateAsync(error);
|
|
53
|
+
}}
|
|
54
|
+
>
|
|
55
|
+
Enviar diagnóstico
|
|
56
|
+
</UIButton>
|
|
57
|
+
</UIStack>
|
|
58
|
+
</UIStack>
|
|
59
|
+
</UIPage>
|
|
60
|
+
)}
|
|
61
|
+
onError={onRecordError}
|
|
62
|
+
>
|
|
63
|
+
{children}
|
|
64
|
+
</ErrorBoundary>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
container: {
|
|
70
|
+
paddingBottom: 32,
|
|
71
|
+
},
|
|
72
|
+
});
|