@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,192 @@
|
|
|
1
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
2
|
+
import type { ColorValue, TextStyle, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { UIText } from '../atoms/UIText';
|
|
5
|
+
import { getThemeColor, theme, type ThemeColor } from '../../../theme';
|
|
6
|
+
import { UILoading } from '../atoms';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
type Props = React.ComponentProps<typeof Pressable> & {
|
|
10
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
11
|
+
color?: ThemeColor;
|
|
12
|
+
textStyle?: StyleProp<TextStyle>;
|
|
13
|
+
rippleColor?: ColorValue;
|
|
14
|
+
borderless?: boolean;
|
|
15
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
16
|
+
textColor?: ThemeColor;
|
|
17
|
+
loadingColor?: ThemeColor;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const getTextColor = (
|
|
22
|
+
variant: Required<Props>['variant'],
|
|
23
|
+
disabled: boolean | null | undefined
|
|
24
|
+
) => {
|
|
25
|
+
if (disabled) return 'neutral-mid-60';
|
|
26
|
+
const variantToTextColor: {
|
|
27
|
+
[key in typeof variant]: ThemeColor;
|
|
28
|
+
} = {
|
|
29
|
+
contained: 'neutral-light-00',
|
|
30
|
+
outlined: 'neutral-dark-80',
|
|
31
|
+
text: 'neutral-dark-80',
|
|
32
|
+
};
|
|
33
|
+
return variantToTextColor[variant];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const getRippleColor = (variant: Required<Props>['variant']) => {
|
|
37
|
+
const variantToRippleColor: {
|
|
38
|
+
[key in typeof variant]: ColorValue;
|
|
39
|
+
} = {
|
|
40
|
+
contained: 'rgba(0, 0, 0, 0.1)',
|
|
41
|
+
outlined: 'rgba(0, 0, 0, 0.05)',
|
|
42
|
+
text: 'rgba(0, 0, 0, 0.05)',
|
|
43
|
+
};
|
|
44
|
+
return variantToRippleColor[variant];
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const getLoadingColor = (variant: Required<Props>['variant']) => {
|
|
48
|
+
const variantToRippleColor: {
|
|
49
|
+
[key in typeof variant]: ThemeColor;
|
|
50
|
+
} = {
|
|
51
|
+
contained: 'neutral-light-50',
|
|
52
|
+
outlined: 'neutral-light-50',
|
|
53
|
+
text: 'neutral-light-50',
|
|
54
|
+
};
|
|
55
|
+
return variantToRippleColor[variant];
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const UIButton = ({
|
|
59
|
+
children,
|
|
60
|
+
style,
|
|
61
|
+
textStyle,
|
|
62
|
+
variant = 'text',
|
|
63
|
+
color: themeColor = 'brand-violet-500',
|
|
64
|
+
borderless,
|
|
65
|
+
loading,
|
|
66
|
+
disabled,
|
|
67
|
+
loadingColor: definedLoadingColor,
|
|
68
|
+
rippleColor: definedRippleColor,
|
|
69
|
+
textColor: definedTextColor,
|
|
70
|
+
wrapperStyle: definedWrapperStyle,
|
|
71
|
+
...props
|
|
72
|
+
}: Props) => {
|
|
73
|
+
const textColor = definedTextColor || getTextColor(variant, disabled);
|
|
74
|
+
const rippleColor = definedRippleColor || getRippleColor(variant);
|
|
75
|
+
const loadingColor = definedLoadingColor || getLoadingColor(variant);
|
|
76
|
+
|
|
77
|
+
const { wrapperStyle, buttonStyle } = React.useMemo(() => {
|
|
78
|
+
if (!style) return {};
|
|
79
|
+
const {
|
|
80
|
+
borderRadius = 16,
|
|
81
|
+
borderTopLeftRadius,
|
|
82
|
+
borderTopRightRadius,
|
|
83
|
+
borderBottomLeftRadius,
|
|
84
|
+
borderBottomRightRadius,
|
|
85
|
+
alignSelf,
|
|
86
|
+
margin,
|
|
87
|
+
marginTop,
|
|
88
|
+
marginVertical,
|
|
89
|
+
marginHorizontal,
|
|
90
|
+
marginBottom,
|
|
91
|
+
marginLeft,
|
|
92
|
+
marginRight,
|
|
93
|
+
position,
|
|
94
|
+
top,
|
|
95
|
+
right,
|
|
96
|
+
bottom,
|
|
97
|
+
left,
|
|
98
|
+
zIndex,
|
|
99
|
+
transform,
|
|
100
|
+
...buttonStyle
|
|
101
|
+
} = StyleSheet.flatten(style) as ViewStyle;
|
|
102
|
+
return {
|
|
103
|
+
wrapperStyle: {
|
|
104
|
+
borderRadius,
|
|
105
|
+
margin,
|
|
106
|
+
marginVertical,
|
|
107
|
+
marginHorizontal,
|
|
108
|
+
marginTop,
|
|
109
|
+
marginLeft,
|
|
110
|
+
marginRight,
|
|
111
|
+
marginBottom,
|
|
112
|
+
position,
|
|
113
|
+
top,
|
|
114
|
+
bottom,
|
|
115
|
+
right,
|
|
116
|
+
left,
|
|
117
|
+
zIndex,
|
|
118
|
+
transform,
|
|
119
|
+
borderTopLeftRadius,
|
|
120
|
+
borderTopRightRadius,
|
|
121
|
+
borderBottomLeftRadius,
|
|
122
|
+
borderBottomRightRadius,
|
|
123
|
+
alignSelf,
|
|
124
|
+
},
|
|
125
|
+
buttonStyle: {
|
|
126
|
+
...buttonStyle,
|
|
127
|
+
borderTopLeftRadius,
|
|
128
|
+
borderTopRightRadius,
|
|
129
|
+
borderBottomLeftRadius,
|
|
130
|
+
borderBottomRightRadius,
|
|
131
|
+
borderRadius,
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
}, [style]);
|
|
135
|
+
|
|
136
|
+
if (typeof children === 'string') {
|
|
137
|
+
children = (
|
|
138
|
+
<UIText color={textColor} align="center" weight="500" style={textStyle}>
|
|
139
|
+
{children}
|
|
140
|
+
</UIText>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<View style={[styles.wrapper, wrapperStyle, definedWrapperStyle]}>
|
|
146
|
+
<Pressable
|
|
147
|
+
accessible
|
|
148
|
+
android_ripple={{ borderless, color: rippleColor }}
|
|
149
|
+
style={[
|
|
150
|
+
styles.common,
|
|
151
|
+
styles[variant],
|
|
152
|
+
variant === 'contained' && {
|
|
153
|
+
backgroundColor: getThemeColor(themeColor),
|
|
154
|
+
},
|
|
155
|
+
variant === 'outlined' && {
|
|
156
|
+
borderColor: getThemeColor(themeColor),
|
|
157
|
+
},
|
|
158
|
+
(disabled || loading) && styles[`${variant}-disabled`],
|
|
159
|
+
buttonStyle,
|
|
160
|
+
]}
|
|
161
|
+
disabled={disabled || loading}
|
|
162
|
+
{...props}
|
|
163
|
+
>
|
|
164
|
+
{loading ? <UILoading color={loadingColor} size={20} /> : children}
|
|
165
|
+
</Pressable>
|
|
166
|
+
</View>
|
|
167
|
+
);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const styles = StyleSheet.create({
|
|
171
|
+
'common': {
|
|
172
|
+
borderRadius: 16,
|
|
173
|
+
padding: 18,
|
|
174
|
+
borderWidth: 1,
|
|
175
|
+
},
|
|
176
|
+
'wrapper': { overflow: 'hidden', borderRadius: 16 },
|
|
177
|
+
'text': {
|
|
178
|
+
borderColor: 'transparent',
|
|
179
|
+
},
|
|
180
|
+
'contained': {
|
|
181
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
182
|
+
borderColor: 'transparent',
|
|
183
|
+
},
|
|
184
|
+
'outlined': { borderColor: theme.color.neutral.light['00'], borderWidth: 1 },
|
|
185
|
+
'contained-disabled': {
|
|
186
|
+
backgroundColor: theme.color.neutral.light['10'],
|
|
187
|
+
},
|
|
188
|
+
'outlined-disabled': {
|
|
189
|
+
borderColor: '#ccc',
|
|
190
|
+
},
|
|
191
|
+
'text-disabled': {},
|
|
192
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UIButton } from './UIButton';
|
|
4
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
|
+
|
|
6
|
+
type Props = React.ComponentProps<typeof UIButton> & {
|
|
7
|
+
bottom?: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const UIButtonCTA = ({
|
|
11
|
+
wrapperStyle,
|
|
12
|
+
style,
|
|
13
|
+
bottom = 32,
|
|
14
|
+
...props
|
|
15
|
+
}: Props) => {
|
|
16
|
+
const insets = useSafeAreaInsets();
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<UIButton
|
|
20
|
+
wrapperStyle={[
|
|
21
|
+
styles.wrapper,
|
|
22
|
+
{ bottom: Math.max(insets.bottom + bottom, bottom) },
|
|
23
|
+
wrapperStyle,
|
|
24
|
+
]}
|
|
25
|
+
style={style}
|
|
26
|
+
{...props}
|
|
27
|
+
/>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
wrapper: {
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
zIndex: 24,
|
|
35
|
+
bottom: 0,
|
|
36
|
+
alignSelf: 'center',
|
|
37
|
+
},
|
|
38
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import type { ColorValue } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { UIIcon, UIText, UIStack } from '../atoms';
|
|
6
|
+
import { UIButton } from '.';
|
|
7
|
+
import { theme } from '../../../theme';
|
|
8
|
+
|
|
9
|
+
type Props = Omit<React.ComponentProps<typeof UIButton>, 'color'> & {
|
|
10
|
+
label: string;
|
|
11
|
+
color?: ColorValue;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
selectedColor?: ColorValue;
|
|
14
|
+
checkboxSize?: number;
|
|
15
|
+
iconSize?: number;
|
|
16
|
+
labelSize?: number;
|
|
17
|
+
variant?: 'text' | 'contained';
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const UICheckboxInput = ({
|
|
21
|
+
label,
|
|
22
|
+
selected,
|
|
23
|
+
style,
|
|
24
|
+
selectedColor,
|
|
25
|
+
checkboxSize,
|
|
26
|
+
labelSize,
|
|
27
|
+
iconSize,
|
|
28
|
+
color,
|
|
29
|
+
variant = 'text',
|
|
30
|
+
...props
|
|
31
|
+
}: Props) => {
|
|
32
|
+
return (
|
|
33
|
+
<UIButton
|
|
34
|
+
style={[
|
|
35
|
+
styles.button,
|
|
36
|
+
variant === 'contained' && selected && styles.contained,
|
|
37
|
+
style as any,
|
|
38
|
+
]}
|
|
39
|
+
{...props}
|
|
40
|
+
>
|
|
41
|
+
<UIStack horizontal center>
|
|
42
|
+
<View
|
|
43
|
+
style={[
|
|
44
|
+
styles.checkbox,
|
|
45
|
+
Boolean(color) && { borderColor: color },
|
|
46
|
+
Boolean(checkboxSize) && {
|
|
47
|
+
width: checkboxSize,
|
|
48
|
+
height: checkboxSize,
|
|
49
|
+
},
|
|
50
|
+
selected &&
|
|
51
|
+
(selectedColor
|
|
52
|
+
? { backgroundColor: selectedColor }
|
|
53
|
+
: styles.selected),
|
|
54
|
+
]}
|
|
55
|
+
>
|
|
56
|
+
{selected && (
|
|
57
|
+
<UIIcon
|
|
58
|
+
name="check-alt"
|
|
59
|
+
size={iconSize}
|
|
60
|
+
color={theme.color.neutral.light['10']}
|
|
61
|
+
/>
|
|
62
|
+
)}
|
|
63
|
+
</View>
|
|
64
|
+
<UIText
|
|
65
|
+
weight="500"
|
|
66
|
+
size={labelSize}
|
|
67
|
+
style={[
|
|
68
|
+
Boolean(color) && { color: color },
|
|
69
|
+
selected && {
|
|
70
|
+
color: selectedColor || theme.color.brand.violet['500'],
|
|
71
|
+
},
|
|
72
|
+
]}
|
|
73
|
+
>
|
|
74
|
+
{label}
|
|
75
|
+
</UIText>
|
|
76
|
+
</UIStack>
|
|
77
|
+
</UIButton>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const styles = StyleSheet.create({
|
|
82
|
+
checkbox: {
|
|
83
|
+
width: 20,
|
|
84
|
+
height: 20,
|
|
85
|
+
borderColor: theme.color.neutral.light['50'],
|
|
86
|
+
borderWidth: 2,
|
|
87
|
+
borderRadius: 4,
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
marginRight: 10,
|
|
91
|
+
},
|
|
92
|
+
selected: {
|
|
93
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
94
|
+
borderColor: theme.color.brand.violet['500'],
|
|
95
|
+
},
|
|
96
|
+
dot: {
|
|
97
|
+
width: 12,
|
|
98
|
+
height: 12,
|
|
99
|
+
borderRadius: 6,
|
|
100
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
101
|
+
},
|
|
102
|
+
button: { paddingHorizontal: 16, paddingVertical: 12, borderRadius: 8 },
|
|
103
|
+
contained: {
|
|
104
|
+
backgroundColor: theme.color.neutral.light['10'],
|
|
105
|
+
},
|
|
106
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { StyleSheet, View } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UIText } from '../atoms';
|
|
4
|
+
import { getThemeColor, type ThemeColor } from '../../../theme';
|
|
5
|
+
|
|
6
|
+
type Props = (
|
|
7
|
+
| { label: string; content?: React.ReactNode }
|
|
8
|
+
| {
|
|
9
|
+
label?: string;
|
|
10
|
+
content: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
) & {
|
|
13
|
+
color?: ThemeColor;
|
|
14
|
+
textColor?: ThemeColor;
|
|
15
|
+
borderColor?: ThemeColor;
|
|
16
|
+
} & React.ComponentProps<typeof View>;
|
|
17
|
+
|
|
18
|
+
export const UIChip = ({
|
|
19
|
+
label,
|
|
20
|
+
content,
|
|
21
|
+
color: themeColor = 'brand-violet-500',
|
|
22
|
+
textColor: textColor = 'neutral-light-00',
|
|
23
|
+
borderColor: themeBorderColor,
|
|
24
|
+
style,
|
|
25
|
+
...props
|
|
26
|
+
}: Props) => {
|
|
27
|
+
let contentNode: React.ReactNode = null;
|
|
28
|
+
|
|
29
|
+
const color = getThemeColor(themeColor);
|
|
30
|
+
const borderColor = getThemeColor(themeBorderColor);
|
|
31
|
+
|
|
32
|
+
if (label)
|
|
33
|
+
contentNode = (
|
|
34
|
+
<UIText color={textColor} weight="600" style={styles.label}>
|
|
35
|
+
{label}
|
|
36
|
+
</UIText>
|
|
37
|
+
);
|
|
38
|
+
if (content) contentNode = content;
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<View
|
|
42
|
+
style={[
|
|
43
|
+
styles.chip,
|
|
44
|
+
{
|
|
45
|
+
backgroundColor: color,
|
|
46
|
+
borderColor: borderColor,
|
|
47
|
+
},
|
|
48
|
+
style,
|
|
49
|
+
]}
|
|
50
|
+
{...props}
|
|
51
|
+
>
|
|
52
|
+
{contentNode}
|
|
53
|
+
</View>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const styles = StyleSheet.create({
|
|
58
|
+
chip: {
|
|
59
|
+
borderRadius: 24,
|
|
60
|
+
paddingTop: 2,
|
|
61
|
+
paddingBottom: 2,
|
|
62
|
+
paddingHorizontal: 16,
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
borderStyle: 'solid',
|
|
65
|
+
},
|
|
66
|
+
label: {
|
|
67
|
+
fontSize: 12,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import CurrencyInput from 'react-native-currency-input';
|
|
2
|
+
import { UITextInput } from './UITextInput';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
type UITextInputPropsToOmit = 'value' | 'onChangeValue';
|
|
6
|
+
|
|
7
|
+
type Props = Omit<
|
|
8
|
+
React.ComponentProps<typeof UITextInput>,
|
|
9
|
+
UITextInputPropsToOmit
|
|
10
|
+
> & {
|
|
11
|
+
value?: number | null;
|
|
12
|
+
onChangeValue?: (value: number | null) => void;
|
|
13
|
+
precision?: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const UICurrencyInput = ({
|
|
17
|
+
value: valueProp,
|
|
18
|
+
onChangeValue,
|
|
19
|
+
precision = 2,
|
|
20
|
+
...props
|
|
21
|
+
}: Props) => {
|
|
22
|
+
const [value, setValue] = React.useState(valueProp ?? null);
|
|
23
|
+
|
|
24
|
+
React.useEffect(() => {
|
|
25
|
+
setValue(valueProp ?? null);
|
|
26
|
+
}, [valueProp]);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<CurrencyInput
|
|
30
|
+
value={value}
|
|
31
|
+
onChangeValue={(value) => {
|
|
32
|
+
onChangeValue?.(value);
|
|
33
|
+
setValue(value);
|
|
34
|
+
}}
|
|
35
|
+
delimiter="."
|
|
36
|
+
separator=","
|
|
37
|
+
precision={precision}
|
|
38
|
+
renderTextInput={(textInputProps) => (
|
|
39
|
+
<UITextInput {...props} {...textInputProps} />
|
|
40
|
+
)}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FlatList, StyleSheet } from 'react-native';
|
|
2
|
+
import type { FlatListProps } from 'react-native';
|
|
3
|
+
import { UILoading } from '../atoms';
|
|
4
|
+
|
|
5
|
+
type Props<T> = Omit<FlatListProps<T>, 'refreshing' | 'onRefresh'> & {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
refreshing: boolean;
|
|
8
|
+
onRefresh: () => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const UIDataList = <T extends any>({
|
|
12
|
+
loading,
|
|
13
|
+
showsHorizontalScrollIndicator = false,
|
|
14
|
+
showsVerticalScrollIndicator = false,
|
|
15
|
+
...props
|
|
16
|
+
}: Props<T>) => {
|
|
17
|
+
if (loading) return <UILoading style={styles.loading} />;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<FlatList
|
|
21
|
+
showsHorizontalScrollIndicator={showsHorizontalScrollIndicator}
|
|
22
|
+
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
loading: { marginTop: 24 },
|
|
30
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SectionList, StyleSheet } from 'react-native';
|
|
2
|
+
import type { SectionListProps } from 'react-native';
|
|
3
|
+
import { UILoading } from '../atoms';
|
|
4
|
+
|
|
5
|
+
type Props<T> = Omit<SectionListProps<T>, 'refreshing' | 'onRefresh'> & {
|
|
6
|
+
loading: boolean;
|
|
7
|
+
refreshing: boolean;
|
|
8
|
+
onRefresh: () => void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const UIDataSectionList = <T extends any>({
|
|
12
|
+
loading,
|
|
13
|
+
showsHorizontalScrollIndicator = false,
|
|
14
|
+
showsVerticalScrollIndicator = false,
|
|
15
|
+
...props
|
|
16
|
+
}: Props<T>) => {
|
|
17
|
+
if (loading) return <UILoading style={styles.loading} />;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<SectionList
|
|
21
|
+
showsHorizontalScrollIndicator={showsHorizontalScrollIndicator}
|
|
22
|
+
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const styles = StyleSheet.create({
|
|
29
|
+
loading: { marginTop: 24 },
|
|
30
|
+
});
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimensions, Modal, StyleSheet, TextInput } from 'react-native';
|
|
3
|
+
import DateTimePicker, { type DateType } from 'react-native-ui-datepicker';
|
|
4
|
+
import { UITextInput } from './UITextInput';
|
|
5
|
+
import { UIInputIcon } from './UIInputIcon';
|
|
6
|
+
import { UIBackdrop, UIStack } from '../atoms';
|
|
7
|
+
import { UIButton } from './UIButton';
|
|
8
|
+
import { theme } from '../../../theme';
|
|
9
|
+
|
|
10
|
+
const { width } = Dimensions.get('window');
|
|
11
|
+
|
|
12
|
+
type Props = Omit<
|
|
13
|
+
React.ComponentProps<typeof UITextInput>,
|
|
14
|
+
'caretHidden' | 'value'
|
|
15
|
+
> & {
|
|
16
|
+
value?: Date;
|
|
17
|
+
mode?: 'date' | 'time' | 'datetime';
|
|
18
|
+
onSelect?: (date: Date) => void;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const UIDatetimeInput = ({
|
|
22
|
+
value,
|
|
23
|
+
mode = 'datetime',
|
|
24
|
+
onSelect,
|
|
25
|
+
...props
|
|
26
|
+
}: Props) => {
|
|
27
|
+
const ref = React.useRef<TextInput>(null);
|
|
28
|
+
const [date, setDate] = React.useState<DateType>(value ?? new Date());
|
|
29
|
+
const [open, setOpen] = React.useState(false);
|
|
30
|
+
|
|
31
|
+
const onOpen = () => {
|
|
32
|
+
ref?.current?.blur();
|
|
33
|
+
setOpen(true);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const onClose = () => {
|
|
37
|
+
setOpen(false);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const onPick = (date: DateType) => {
|
|
41
|
+
setDate(date);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const onConfirm = () => {
|
|
45
|
+
onSelect?.(date as Date);
|
|
46
|
+
onClose();
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const formattedDate = React.useMemo(() => {
|
|
50
|
+
if (mode === 'date') {
|
|
51
|
+
return value?.toLocaleDateString();
|
|
52
|
+
}
|
|
53
|
+
if (mode === 'time') {
|
|
54
|
+
return value?.toLocaleTimeString();
|
|
55
|
+
}
|
|
56
|
+
return value?.toLocaleString();
|
|
57
|
+
}, [mode, value]);
|
|
58
|
+
|
|
59
|
+
React.useEffect(() => {
|
|
60
|
+
setDate(value ?? new Date());
|
|
61
|
+
}, [value]);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
<UITextInput
|
|
66
|
+
caretHidden
|
|
67
|
+
ref={ref}
|
|
68
|
+
value={formattedDate}
|
|
69
|
+
showSoftInputOnFocus={false}
|
|
70
|
+
onFocus={() => onOpen()}
|
|
71
|
+
endIcon={<UIInputIcon position="end" name="calendar" size={24} />}
|
|
72
|
+
{...props}
|
|
73
|
+
/>
|
|
74
|
+
<Modal
|
|
75
|
+
transparent
|
|
76
|
+
animationType="fade"
|
|
77
|
+
visible={open}
|
|
78
|
+
onRequestClose={onClose}
|
|
79
|
+
>
|
|
80
|
+
<UIStack center justify="center" flex={1} style={styles.modal}>
|
|
81
|
+
<UIStack style={styles.content}>
|
|
82
|
+
<DateTimePicker
|
|
83
|
+
mode="single"
|
|
84
|
+
timePicker={mode.includes('time')}
|
|
85
|
+
navigationPosition="right"
|
|
86
|
+
date={date}
|
|
87
|
+
locale="pt-BR"
|
|
88
|
+
weekdaysFormat="short"
|
|
89
|
+
onChange={({ date }) => {
|
|
90
|
+
onPick(date);
|
|
91
|
+
}}
|
|
92
|
+
styles={datePickerStyles}
|
|
93
|
+
/>
|
|
94
|
+
<UIStack horizontal center>
|
|
95
|
+
<UIButton onPress={onClose} wrapperStyle={styles.button}>
|
|
96
|
+
Cancelar
|
|
97
|
+
</UIButton>
|
|
98
|
+
<UIButton
|
|
99
|
+
variant="contained"
|
|
100
|
+
onPress={onConfirm}
|
|
101
|
+
wrapperStyle={styles.button}
|
|
102
|
+
>
|
|
103
|
+
Confirmar
|
|
104
|
+
</UIButton>
|
|
105
|
+
</UIStack>
|
|
106
|
+
</UIStack>
|
|
107
|
+
</UIStack>
|
|
108
|
+
<UIBackdrop visible={open} onPress={onClose} />
|
|
109
|
+
</Modal>
|
|
110
|
+
</>
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const datePickerStyles: React.ComponentProps<typeof DateTimePicker>['styles'] =
|
|
115
|
+
{
|
|
116
|
+
today: {
|
|
117
|
+
borderWidth: 1,
|
|
118
|
+
borderColor: theme.color.neutral.light['50'],
|
|
119
|
+
borderRadius: 50,
|
|
120
|
+
},
|
|
121
|
+
button_prev: {
|
|
122
|
+
borderRadius: 20,
|
|
123
|
+
padding: 10,
|
|
124
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
125
|
+
},
|
|
126
|
+
button_prev_image: {
|
|
127
|
+
tintColor: theme.color.neutral.light['00'],
|
|
128
|
+
},
|
|
129
|
+
button_next: {
|
|
130
|
+
borderRadius: 20,
|
|
131
|
+
padding: 10,
|
|
132
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
133
|
+
},
|
|
134
|
+
button_next_image: {
|
|
135
|
+
tintColor: theme.color.neutral.light['00'],
|
|
136
|
+
},
|
|
137
|
+
selected: {
|
|
138
|
+
borderRadius: 50,
|
|
139
|
+
backgroundColor: theme.color.brand.violet['500'],
|
|
140
|
+
},
|
|
141
|
+
selected_label: {
|
|
142
|
+
color: theme.color.neutral.light['00'],
|
|
143
|
+
},
|
|
144
|
+
day_cell: {
|
|
145
|
+
width: 47,
|
|
146
|
+
},
|
|
147
|
+
month_selector: {
|
|
148
|
+
minWidth: 60,
|
|
149
|
+
paddingVertical: 4,
|
|
150
|
+
alignItems: 'center',
|
|
151
|
+
backgroundColor: '#f3f3f3',
|
|
152
|
+
paddingHorizontal: 10,
|
|
153
|
+
borderRadius: 4,
|
|
154
|
+
},
|
|
155
|
+
year_selector: {
|
|
156
|
+
paddingVertical: 4,
|
|
157
|
+
minWidth: 60,
|
|
158
|
+
backgroundColor: '#f3f3f3',
|
|
159
|
+
paddingHorizontal: 10,
|
|
160
|
+
borderRadius: 4,
|
|
161
|
+
},
|
|
162
|
+
time_selector: {
|
|
163
|
+
paddingVertical: 4,
|
|
164
|
+
fontFamily: theme.font.weight.medium,
|
|
165
|
+
backgroundColor: '#f3f3f3',
|
|
166
|
+
paddingHorizontal: 10,
|
|
167
|
+
borderRadius: 4,
|
|
168
|
+
},
|
|
169
|
+
year_selector_label: {
|
|
170
|
+
fontFamily: theme.font.weight.medium,
|
|
171
|
+
fontSize: 13,
|
|
172
|
+
},
|
|
173
|
+
time_selector_label: {
|
|
174
|
+
fontFamily: theme.font.weight.medium,
|
|
175
|
+
fontSize: 13,
|
|
176
|
+
},
|
|
177
|
+
month_selector_label: {
|
|
178
|
+
textTransform: 'capitalize',
|
|
179
|
+
fontFamily: theme.font.weight.medium,
|
|
180
|
+
fontSize: 13,
|
|
181
|
+
},
|
|
182
|
+
weekday_label: {
|
|
183
|
+
fontFamily: theme.font.weight.medium,
|
|
184
|
+
fontSize: 13,
|
|
185
|
+
textTransform: 'uppercase',
|
|
186
|
+
},
|
|
187
|
+
day_label: {
|
|
188
|
+
fontFamily: theme.font.weight.medium,
|
|
189
|
+
fontSize: 13,
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const styles = StyleSheet.create({
|
|
194
|
+
modal: {
|
|
195
|
+
paddingHorizontal: 20,
|
|
196
|
+
},
|
|
197
|
+
content: {
|
|
198
|
+
backgroundColor: '#fff',
|
|
199
|
+
padding: 12,
|
|
200
|
+
borderRadius: 10,
|
|
201
|
+
zIndex: 11,
|
|
202
|
+
minWidth: width - 40,
|
|
203
|
+
},
|
|
204
|
+
button: { flex: 1 },
|
|
205
|
+
});
|