@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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { SectionList, StyleSheet } from 'react-native';
|
|
4
|
+
import { UILoading } from "../atoms/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const UIDataSectionList = ({
|
|
7
|
+
loading,
|
|
8
|
+
showsHorizontalScrollIndicator = false,
|
|
9
|
+
showsVerticalScrollIndicator = false,
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
if (loading) return /*#__PURE__*/_jsx(UILoading, {
|
|
13
|
+
style: styles.loading
|
|
14
|
+
});
|
|
15
|
+
return /*#__PURE__*/_jsx(SectionList, {
|
|
16
|
+
showsHorizontalScrollIndicator: showsHorizontalScrollIndicator,
|
|
17
|
+
showsVerticalScrollIndicator: showsVerticalScrollIndicator,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const styles = StyleSheet.create({
|
|
22
|
+
loading: {
|
|
23
|
+
marginTop: 24
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=UIDataSectionList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SectionList","StyleSheet","UILoading","jsx","_jsx","UIDataSectionList","loading","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","props","style","styles","create","marginTop"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIDataSectionList.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,UAAU,QAAQ,cAAc;AAEtD,SAASC,SAAS,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQrC,OAAO,MAAMC,iBAAiB,GAAGA,CAAgB;EAC/CC,OAAO;EACPC,8BAA8B,GAAG,KAAK;EACtCC,4BAA4B,GAAG,KAAK;EACpC,GAAGC;AACK,CAAC,KAAK;EACd,IAAIH,OAAO,EAAE,oBAAOF,IAAA,CAACF,SAAS;IAACQ,KAAK,EAAEC,MAAM,CAACL;EAAQ,CAAE,CAAC;EAExD,oBACEF,IAAA,CAACJ,WAAW;IACVO,8BAA8B,EAAEA,8BAA+B;IAC/DC,4BAA4B,EAAEA,4BAA6B;IAAA,GACvDC;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAME,MAAM,GAAGV,UAAU,CAACW,MAAM,CAAC;EAC/BN,OAAO,EAAE;IAAEO,SAAS,EAAE;EAAG;AAC3B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Dimensions, Modal, StyleSheet } from 'react-native';
|
|
5
|
+
import DateTimePicker from 'react-native-ui-datepicker';
|
|
6
|
+
import { UITextInput } from "./UITextInput.js";
|
|
7
|
+
import { UIInputIcon } from "./UIInputIcon.js";
|
|
8
|
+
import { UIBackdrop, UIStack } from "../atoms/index.js";
|
|
9
|
+
import { UIButton } from "./UIButton.js";
|
|
10
|
+
import { theme } from "../../../theme.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
const {
|
|
13
|
+
width
|
|
14
|
+
} = Dimensions.get('window');
|
|
15
|
+
export const UIDatetimeInput = ({
|
|
16
|
+
value,
|
|
17
|
+
mode = 'datetime',
|
|
18
|
+
onSelect,
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
21
|
+
const ref = React.useRef(null);
|
|
22
|
+
const [date, setDate] = React.useState(value ?? new Date());
|
|
23
|
+
const [open, setOpen] = React.useState(false);
|
|
24
|
+
const onOpen = () => {
|
|
25
|
+
ref?.current?.blur();
|
|
26
|
+
setOpen(true);
|
|
27
|
+
};
|
|
28
|
+
const onClose = () => {
|
|
29
|
+
setOpen(false);
|
|
30
|
+
};
|
|
31
|
+
const onPick = date => {
|
|
32
|
+
setDate(date);
|
|
33
|
+
};
|
|
34
|
+
const onConfirm = () => {
|
|
35
|
+
onSelect?.(date);
|
|
36
|
+
onClose();
|
|
37
|
+
};
|
|
38
|
+
const formattedDate = React.useMemo(() => {
|
|
39
|
+
if (mode === 'date') {
|
|
40
|
+
return value?.toLocaleDateString();
|
|
41
|
+
}
|
|
42
|
+
if (mode === 'time') {
|
|
43
|
+
return value?.toLocaleTimeString();
|
|
44
|
+
}
|
|
45
|
+
return value?.toLocaleString();
|
|
46
|
+
}, [mode, value]);
|
|
47
|
+
React.useEffect(() => {
|
|
48
|
+
setDate(value ?? new Date());
|
|
49
|
+
}, [value]);
|
|
50
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
51
|
+
children: [/*#__PURE__*/_jsx(UITextInput, {
|
|
52
|
+
caretHidden: true,
|
|
53
|
+
ref: ref,
|
|
54
|
+
value: formattedDate,
|
|
55
|
+
showSoftInputOnFocus: false,
|
|
56
|
+
onFocus: () => onOpen(),
|
|
57
|
+
endIcon: /*#__PURE__*/_jsx(UIInputIcon, {
|
|
58
|
+
position: "end",
|
|
59
|
+
name: "calendar",
|
|
60
|
+
size: 24
|
|
61
|
+
}),
|
|
62
|
+
...props
|
|
63
|
+
}), /*#__PURE__*/_jsxs(Modal, {
|
|
64
|
+
transparent: true,
|
|
65
|
+
animationType: "fade",
|
|
66
|
+
visible: open,
|
|
67
|
+
onRequestClose: onClose,
|
|
68
|
+
children: [/*#__PURE__*/_jsx(UIStack, {
|
|
69
|
+
center: true,
|
|
70
|
+
justify: "center",
|
|
71
|
+
flex: 1,
|
|
72
|
+
style: styles.modal,
|
|
73
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
74
|
+
style: styles.content,
|
|
75
|
+
children: [/*#__PURE__*/_jsx(DateTimePicker, {
|
|
76
|
+
mode: "single",
|
|
77
|
+
timePicker: mode.includes('time'),
|
|
78
|
+
navigationPosition: "right",
|
|
79
|
+
date: date,
|
|
80
|
+
locale: "pt-BR",
|
|
81
|
+
weekdaysFormat: "short",
|
|
82
|
+
onChange: ({
|
|
83
|
+
date
|
|
84
|
+
}) => {
|
|
85
|
+
onPick(date);
|
|
86
|
+
},
|
|
87
|
+
styles: datePickerStyles
|
|
88
|
+
}), /*#__PURE__*/_jsxs(UIStack, {
|
|
89
|
+
horizontal: true,
|
|
90
|
+
center: true,
|
|
91
|
+
children: [/*#__PURE__*/_jsx(UIButton, {
|
|
92
|
+
onPress: onClose,
|
|
93
|
+
wrapperStyle: styles.button,
|
|
94
|
+
children: "Cancelar"
|
|
95
|
+
}), /*#__PURE__*/_jsx(UIButton, {
|
|
96
|
+
variant: "contained",
|
|
97
|
+
onPress: onConfirm,
|
|
98
|
+
wrapperStyle: styles.button,
|
|
99
|
+
children: "Confirmar"
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
}), /*#__PURE__*/_jsx(UIBackdrop, {
|
|
104
|
+
visible: open,
|
|
105
|
+
onPress: onClose
|
|
106
|
+
})]
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
const datePickerStyles = {
|
|
111
|
+
today: {
|
|
112
|
+
borderWidth: 1,
|
|
113
|
+
borderColor: theme.color.neutral.light['50'],
|
|
114
|
+
borderRadius: 50
|
|
115
|
+
},
|
|
116
|
+
button_prev: {
|
|
117
|
+
borderRadius: 20,
|
|
118
|
+
padding: 10,
|
|
119
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
120
|
+
},
|
|
121
|
+
button_prev_image: {
|
|
122
|
+
tintColor: theme.color.neutral.light['00']
|
|
123
|
+
},
|
|
124
|
+
button_next: {
|
|
125
|
+
borderRadius: 20,
|
|
126
|
+
padding: 10,
|
|
127
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
128
|
+
},
|
|
129
|
+
button_next_image: {
|
|
130
|
+
tintColor: theme.color.neutral.light['00']
|
|
131
|
+
},
|
|
132
|
+
selected: {
|
|
133
|
+
borderRadius: 50,
|
|
134
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
135
|
+
},
|
|
136
|
+
selected_label: {
|
|
137
|
+
color: theme.color.neutral.light['00']
|
|
138
|
+
},
|
|
139
|
+
day_cell: {
|
|
140
|
+
width: 47
|
|
141
|
+
},
|
|
142
|
+
month_selector: {
|
|
143
|
+
minWidth: 60,
|
|
144
|
+
paddingVertical: 4,
|
|
145
|
+
alignItems: 'center',
|
|
146
|
+
backgroundColor: '#f3f3f3',
|
|
147
|
+
paddingHorizontal: 10,
|
|
148
|
+
borderRadius: 4
|
|
149
|
+
},
|
|
150
|
+
year_selector: {
|
|
151
|
+
paddingVertical: 4,
|
|
152
|
+
minWidth: 60,
|
|
153
|
+
backgroundColor: '#f3f3f3',
|
|
154
|
+
paddingHorizontal: 10,
|
|
155
|
+
borderRadius: 4
|
|
156
|
+
},
|
|
157
|
+
time_selector: {
|
|
158
|
+
paddingVertical: 4,
|
|
159
|
+
fontFamily: theme.font.weight.medium,
|
|
160
|
+
backgroundColor: '#f3f3f3',
|
|
161
|
+
paddingHorizontal: 10,
|
|
162
|
+
borderRadius: 4
|
|
163
|
+
},
|
|
164
|
+
year_selector_label: {
|
|
165
|
+
fontFamily: theme.font.weight.medium,
|
|
166
|
+
fontSize: 13
|
|
167
|
+
},
|
|
168
|
+
time_selector_label: {
|
|
169
|
+
fontFamily: theme.font.weight.medium,
|
|
170
|
+
fontSize: 13
|
|
171
|
+
},
|
|
172
|
+
month_selector_label: {
|
|
173
|
+
textTransform: 'capitalize',
|
|
174
|
+
fontFamily: theme.font.weight.medium,
|
|
175
|
+
fontSize: 13
|
|
176
|
+
},
|
|
177
|
+
weekday_label: {
|
|
178
|
+
fontFamily: theme.font.weight.medium,
|
|
179
|
+
fontSize: 13,
|
|
180
|
+
textTransform: 'uppercase'
|
|
181
|
+
},
|
|
182
|
+
day_label: {
|
|
183
|
+
fontFamily: theme.font.weight.medium,
|
|
184
|
+
fontSize: 13
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const styles = StyleSheet.create({
|
|
188
|
+
modal: {
|
|
189
|
+
paddingHorizontal: 20
|
|
190
|
+
},
|
|
191
|
+
content: {
|
|
192
|
+
backgroundColor: '#fff',
|
|
193
|
+
padding: 12,
|
|
194
|
+
borderRadius: 10,
|
|
195
|
+
zIndex: 11,
|
|
196
|
+
minWidth: width - 40
|
|
197
|
+
},
|
|
198
|
+
button: {
|
|
199
|
+
flex: 1
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
//# sourceMappingURL=UIDatetimeInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Dimensions","Modal","StyleSheet","DateTimePicker","UITextInput","UIInputIcon","UIBackdrop","UIStack","UIButton","theme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","width","get","UIDatetimeInput","value","mode","onSelect","props","ref","useRef","date","setDate","useState","Date","open","setOpen","onOpen","current","blur","onClose","onPick","onConfirm","formattedDate","useMemo","toLocaleDateString","toLocaleTimeString","toLocaleString","useEffect","children","caretHidden","showSoftInputOnFocus","onFocus","endIcon","position","name","size","transparent","animationType","visible","onRequestClose","center","justify","flex","style","styles","modal","content","timePicker","includes","navigationPosition","locale","weekdaysFormat","onChange","datePickerStyles","horizontal","onPress","wrapperStyle","button","variant","today","borderWidth","borderColor","color","neutral","light","borderRadius","button_prev","padding","backgroundColor","brand","violet","button_prev_image","tintColor","button_next","button_next_image","selected","selected_label","day_cell","month_selector","minWidth","paddingVertical","alignItems","paddingHorizontal","year_selector","time_selector","fontFamily","font","weight","medium","year_selector_label","fontSize","time_selector_label","month_selector_label","textTransform","weekday_label","day_label","create","zIndex"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIDatetimeInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,KAAK,EAAEC,UAAU,QAAmB,cAAc;AACvE,OAAOC,cAAc,MAAyB,4BAA4B;AAC1E,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,UAAU,EAAEC,OAAO,QAAQ,mBAAU;AAC9C,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAA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MAAM,CAACC,MAAM;IACpCE,QAAQ,EAAE;EACZ,CAAC;EACDI,aAAa,EAAE;IACbT,UAAU,EAAE3F,KAAK,CAAC4F,IAAI,CAACC,MAAM,CAACC,MAAM;IACpCE,QAAQ,EAAE,EAAE;IACZG,aAAa,EAAE;EACjB,CAAC;EACDE,SAAS,EAAE;IACTV,UAAU,EAAE3F,KAAK,CAAC4F,IAAI,CAACC,MAAM,CAACC,MAAM;IACpCE,QAAQ,EAAE;EACZ;AACF,CAAC;AAEH,MAAM9C,MAAM,GAAGzD,UAAU,CAAC6G,MAAM,CAAC;EAC/BnD,KAAK,EAAE;IACLqC,iBAAiB,EAAE;EACrB,CAAC;EACDpC,OAAO,EAAE;IACPsB,eAAe,EAAE,MAAM;IACvBD,OAAO,EAAE,EAAE;IACXF,YAAY,EAAE,EAAE;IAChBgC,MAAM,EAAE,EAAE;IACVlB,QAAQ,EAAE9E,KAAK,GAAG;EACpB,CAAC;EACDwD,MAAM,EAAE;IAAEf,IAAI,EAAE;EAAE;AACpB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { theme } from "../../../theme.js";
|
|
5
|
+
import { UIIcon, UIStack, UIText } from "../atoms/index.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const UIError = ({
|
|
8
|
+
message,
|
|
9
|
+
style,
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
if (!message) return null;
|
|
13
|
+
return /*#__PURE__*/_jsxs(UIStack, {
|
|
14
|
+
horizontal: true,
|
|
15
|
+
center: true,
|
|
16
|
+
style: [styles.error, style],
|
|
17
|
+
...props,
|
|
18
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
19
|
+
color: "feedback-red-500",
|
|
20
|
+
children: message
|
|
21
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
22
|
+
name: "warning",
|
|
23
|
+
color: theme.color.feedback.red['500']
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
error: {
|
|
29
|
+
marginTop: 12
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=UIError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","UIIcon","UIStack","UIText","jsx","_jsx","jsxs","_jsxs","UIError","message","style","props","horizontal","center","styles","error","children","color","name","feedback","red","create","marginTop"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIError.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOnD,OAAO,MAAMC,OAAO,GAAGA,CAAC;EAAEC,OAAO;EAAEC,KAAK;EAAE,GAAGC;AAAa,CAAC,KAAK;EAC9D,IAAI,CAACF,OAAO,EAAE,OAAO,IAAI;EACzB,oBACEF,KAAA,CAACL,OAAO;IAACU,UAAU;IAACC,MAAM;IAACH,KAAK,EAAE,CAACI,MAAM,CAACC,KAAK,EAAEL,KAAK,CAAE;IAAA,GAAKC,KAAK;IAAAK,QAAA,gBAChEX,IAAA,CAACF,MAAM;MAACc,KAAK,EAAC,kBAAkB;MAAAD,QAAA,EAAEP;IAAO,CAAS,CAAC,eACnDJ,IAAA,CAACJ,MAAM;MAACiB,IAAI,EAAC,SAAS;MAACD,KAAK,EAAEjB,KAAK,CAACiB,KAAK,CAACE,QAAQ,CAACC,GAAG,CAAC,KAAK;IAAE,CAAE,CAAC;EAAA,CAC1D,CAAC;AAEd,CAAC;AAED,MAAMN,MAAM,GAAGf,UAAU,CAACsB,MAAM,CAAC;EAC/BN,KAAK,EAAE;IACLO,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ImageBackground, StyleSheet } from 'react-native';
|
|
4
|
+
import { UIIcon, UIStack, UIText } from "../atoms/index.js";
|
|
5
|
+
import { UIButton } from "./UIButton.js";
|
|
6
|
+
import { theme } from "../../../theme.js";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export const UIImage = ({
|
|
10
|
+
uri,
|
|
11
|
+
style,
|
|
12
|
+
imageStyle,
|
|
13
|
+
onRemove,
|
|
14
|
+
removable,
|
|
15
|
+
onError,
|
|
16
|
+
errorMessage,
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
const [hasError, setHasError] = React.useState(false);
|
|
20
|
+
return /*#__PURE__*/_jsxs(ImageBackground, {
|
|
21
|
+
resizeMode: "contain",
|
|
22
|
+
style: [styles.image, style],
|
|
23
|
+
imageStyle: [styles.image, imageStyle],
|
|
24
|
+
source: {
|
|
25
|
+
uri
|
|
26
|
+
},
|
|
27
|
+
onError: event => {
|
|
28
|
+
setHasError(Boolean(event.nativeEvent.error));
|
|
29
|
+
onError?.(event);
|
|
30
|
+
},
|
|
31
|
+
...props,
|
|
32
|
+
children: [hasError && /*#__PURE__*/_jsxs(UIStack, {
|
|
33
|
+
style: styles.error,
|
|
34
|
+
flex: 1,
|
|
35
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
36
|
+
align: "center",
|
|
37
|
+
children: errorMessage ?? 'Erro ao carregar imagem'
|
|
38
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
39
|
+
name: "x-circle"
|
|
40
|
+
})]
|
|
41
|
+
}), removable && /*#__PURE__*/_jsx(UIButton, {
|
|
42
|
+
variant: "contained",
|
|
43
|
+
color: "feedback-red-500",
|
|
44
|
+
style: styles.button,
|
|
45
|
+
onPress: onRemove,
|
|
46
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
47
|
+
horizontal: true,
|
|
48
|
+
center: true,
|
|
49
|
+
style: styles.remove,
|
|
50
|
+
children: [/*#__PURE__*/_jsx(UIIcon, {
|
|
51
|
+
name: "trash",
|
|
52
|
+
color: theme.color.neutral.light['00']
|
|
53
|
+
}), /*#__PURE__*/_jsx(UIText, {
|
|
54
|
+
color: "neutral-light-00",
|
|
55
|
+
size: 12,
|
|
56
|
+
children: "Remover"
|
|
57
|
+
})]
|
|
58
|
+
})
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
const styles = StyleSheet.create({
|
|
63
|
+
image: {
|
|
64
|
+
borderRadius: 8,
|
|
65
|
+
width: 120,
|
|
66
|
+
height: 120
|
|
67
|
+
},
|
|
68
|
+
wrapper: {},
|
|
69
|
+
button: {
|
|
70
|
+
paddingTop: 2,
|
|
71
|
+
paddingBottom: 4,
|
|
72
|
+
paddingHorizontal: 12,
|
|
73
|
+
borderRadius: 0,
|
|
74
|
+
borderBottomLeftRadius: 8,
|
|
75
|
+
borderBottomRightRadius: 8,
|
|
76
|
+
marginTop: 'auto'
|
|
77
|
+
},
|
|
78
|
+
remove: {
|
|
79
|
+
marginHorizontal: 'auto'
|
|
80
|
+
},
|
|
81
|
+
error: {
|
|
82
|
+
justifyContent: 'center',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
paddingHorizontal: 5
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=UIImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ImageBackground","StyleSheet","UIIcon","UIStack","UIText","UIButton","theme","React","jsx","_jsx","jsxs","_jsxs","UIImage","uri","style","imageStyle","onRemove","removable","onError","errorMessage","props","hasError","setHasError","useState","resizeMode","styles","image","source","event","Boolean","nativeEvent","error","children","flex","align","name","variant","color","button","onPress","horizontal","center","remove","neutral","light","size","create","borderRadius","width","height","wrapper","paddingTop","paddingBottom","paddingHorizontal","borderBottomLeftRadius","borderBottomRightRadius","marginTop","marginHorizontal","justifyContent","alignItems"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIImage.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,UAAU,QAAQ,cAAc;AAC1D,SAASC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAClD,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,KAAK,QAAQ,mBAAgB;AACtC,OAAOC,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS1B,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,GAAG;EACHC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACRC,SAAS;EACTC,OAAO;EACPC,YAAY;EACZ,GAAGC;AACE,CAAC,KAAK;EACX,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGf,KAAK,CAACgB,QAAQ,CAAC,KAAK,CAAC;EAErD,oBACEZ,KAAA,CAACX,eAAe;IACdwB,UAAU,EAAC,SAAS;IACpBV,KAAK,EAAE,CAACW,MAAM,CAACC,KAAK,EAAEZ,KAAK,CAAE;IAC7BC,UAAU,EAAE,CAACU,MAAM,CAACC,KAAK,EAAEX,UAAU,CAAE;IACvCY,MAAM,EAAE;MACNd;IACF,CAAE;IACFK,OAAO,EAAGU,KAAK,IAAK;MAClBN,WAAW,CAACO,OAAO,CAACD,KAAK,CAACE,WAAW,CAACC,KAAK,CAAC,CAAC;MAC7Cb,OAAO,GAAGU,KAAK,CAAC;IAClB,CAAE;IAAA,GACER,KAAK;IAAAY,QAAA,GAERX,QAAQ,iBACPV,KAAA,CAACR,OAAO;MAACW,KAAK,EAAEW,MAAM,CAACM,KAAM;MAACE,IAAI,EAAE,CAAE;MAAAD,QAAA,gBACp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C;EACpC1B,KAAK,EAAE;IACL2B,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBN,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Dimensions, Modal, StyleSheet } from 'react-native';
|
|
5
|
+
import DateTimePicker from 'react-native-ui-datepicker';
|
|
6
|
+
import { UIBackdrop, UIIcon, UIStack, UIText } from "../atoms/index.js";
|
|
7
|
+
import { UIButton } from "./UIButton.js";
|
|
8
|
+
import { theme } from "../../../theme.js";
|
|
9
|
+
import { useActionSheet } from "../../domain/utils/index.js";
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
const {
|
|
13
|
+
width
|
|
14
|
+
} = Dimensions.get('window');
|
|
15
|
+
export const UIInlineDatePicker = ({
|
|
16
|
+
label,
|
|
17
|
+
value,
|
|
18
|
+
mode = 'datetime',
|
|
19
|
+
onSelect,
|
|
20
|
+
labelStyle,
|
|
21
|
+
textSize = 16,
|
|
22
|
+
maximumDate,
|
|
23
|
+
minimumDate
|
|
24
|
+
}) => {
|
|
25
|
+
const [date, setDate] = React.useState(value ?? new Date());
|
|
26
|
+
const {
|
|
27
|
+
visible,
|
|
28
|
+
onOpen,
|
|
29
|
+
onClose
|
|
30
|
+
} = useActionSheet();
|
|
31
|
+
const onPick = date => {
|
|
32
|
+
setDate(date);
|
|
33
|
+
};
|
|
34
|
+
const onConfirm = () => {
|
|
35
|
+
onSelect?.(date);
|
|
36
|
+
onClose();
|
|
37
|
+
};
|
|
38
|
+
const formattedDate = React.useMemo(() => {
|
|
39
|
+
if (mode === 'date') {
|
|
40
|
+
return moment(value).calendar(undefined, {
|
|
41
|
+
sameDay: '[Hoje]',
|
|
42
|
+
lastDay: '[Ontem]',
|
|
43
|
+
nextDay: 'DD/MM/YYYY',
|
|
44
|
+
nextWeek: 'DD/MM/YYYY',
|
|
45
|
+
lastWeek: 'DD/MM/YYYY',
|
|
46
|
+
sameElse: 'DD/MM/YYYY'
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (mode === 'time') {
|
|
50
|
+
return moment(value).calendar(undefined, {
|
|
51
|
+
sameDay: 'HH:mm',
|
|
52
|
+
lastDay: 'HH:mm',
|
|
53
|
+
nextDay: 'HH:mm',
|
|
54
|
+
nextWeek: 'HH:mm',
|
|
55
|
+
lastWeek: 'HH:mm',
|
|
56
|
+
sameElse: 'HH:mm'
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return moment(value).calendar(undefined, {
|
|
60
|
+
sameDay: '[Hoje]',
|
|
61
|
+
lastDay: '[Ontem]',
|
|
62
|
+
nextDay: 'DD/MM/YYYY HH:mm',
|
|
63
|
+
nextWeek: 'DD/MM/YYYY HH:mm',
|
|
64
|
+
lastWeek: 'DD/MM/YYYY HH:mm',
|
|
65
|
+
sameElse: 'DD/MM/YYYY HH:mm'
|
|
66
|
+
});
|
|
67
|
+
}, [mode, value]);
|
|
68
|
+
React.useEffect(() => {
|
|
69
|
+
setDate(value ?? new Date());
|
|
70
|
+
}, [value]);
|
|
71
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
72
|
+
children: [/*#__PURE__*/_jsx(UIButton, {
|
|
73
|
+
onPress: onOpen,
|
|
74
|
+
color: "neutral-light-10",
|
|
75
|
+
variant: "contained",
|
|
76
|
+
style: styles.selector,
|
|
77
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
78
|
+
horizontal: true,
|
|
79
|
+
center: true,
|
|
80
|
+
size: "md",
|
|
81
|
+
children: [/*#__PURE__*/_jsx(UIIcon, {
|
|
82
|
+
name: "calendar-alt",
|
|
83
|
+
size: 14,
|
|
84
|
+
color: theme.color.neutral.dark[80]
|
|
85
|
+
}), /*#__PURE__*/_jsxs(UIText, {
|
|
86
|
+
size: textSize,
|
|
87
|
+
weight: "500",
|
|
88
|
+
style: labelStyle,
|
|
89
|
+
children: [label, " ", formattedDate]
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
}), /*#__PURE__*/_jsxs(Modal, {
|
|
93
|
+
transparent: true,
|
|
94
|
+
animationType: "fade",
|
|
95
|
+
visible: visible,
|
|
96
|
+
onRequestClose: onClose,
|
|
97
|
+
children: [/*#__PURE__*/_jsx(UIStack, {
|
|
98
|
+
center: true,
|
|
99
|
+
justify: "center",
|
|
100
|
+
flex: 1,
|
|
101
|
+
style: styles.modal,
|
|
102
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
103
|
+
style: styles.content,
|
|
104
|
+
children: [/*#__PURE__*/_jsx(DateTimePicker, {
|
|
105
|
+
mode: "single",
|
|
106
|
+
timePicker: mode.includes('time'),
|
|
107
|
+
navigationPosition: "right",
|
|
108
|
+
date: date,
|
|
109
|
+
locale: "pt-BR",
|
|
110
|
+
weekdaysFormat: "short",
|
|
111
|
+
maxDate: maximumDate,
|
|
112
|
+
minDate: minimumDate,
|
|
113
|
+
onChange: ({
|
|
114
|
+
date
|
|
115
|
+
}) => {
|
|
116
|
+
onPick(date);
|
|
117
|
+
},
|
|
118
|
+
styles: datePickerStyles
|
|
119
|
+
}), /*#__PURE__*/_jsxs(UIStack, {
|
|
120
|
+
horizontal: true,
|
|
121
|
+
center: true,
|
|
122
|
+
children: [/*#__PURE__*/_jsx(UIButton, {
|
|
123
|
+
onPress: onClose,
|
|
124
|
+
wrapperStyle: styles.button,
|
|
125
|
+
children: "Cancelar"
|
|
126
|
+
}), /*#__PURE__*/_jsx(UIButton, {
|
|
127
|
+
variant: "contained",
|
|
128
|
+
onPress: onConfirm,
|
|
129
|
+
wrapperStyle: styles.button,
|
|
130
|
+
children: "Confirmar"
|
|
131
|
+
})]
|
|
132
|
+
})]
|
|
133
|
+
})
|
|
134
|
+
}), /*#__PURE__*/_jsx(UIBackdrop, {
|
|
135
|
+
visible: visible,
|
|
136
|
+
onPress: onClose
|
|
137
|
+
})]
|
|
138
|
+
})]
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
const datePickerStyles = {
|
|
142
|
+
today: {
|
|
143
|
+
borderWidth: 1,
|
|
144
|
+
borderColor: theme.color.neutral.light['50'],
|
|
145
|
+
borderRadius: 50
|
|
146
|
+
},
|
|
147
|
+
button_prev: {
|
|
148
|
+
borderRadius: 20,
|
|
149
|
+
padding: 10,
|
|
150
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
151
|
+
},
|
|
152
|
+
button_prev_image: {
|
|
153
|
+
tintColor: theme.color.neutral.light['00']
|
|
154
|
+
},
|
|
155
|
+
button_next: {
|
|
156
|
+
borderRadius: 20,
|
|
157
|
+
padding: 10,
|
|
158
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
159
|
+
},
|
|
160
|
+
button_next_image: {
|
|
161
|
+
tintColor: theme.color.neutral.light['00']
|
|
162
|
+
},
|
|
163
|
+
selected: {
|
|
164
|
+
borderRadius: 50,
|
|
165
|
+
backgroundColor: theme.color.brand.violet['500']
|
|
166
|
+
},
|
|
167
|
+
selected_label: {
|
|
168
|
+
color: theme.color.neutral.light['00']
|
|
169
|
+
},
|
|
170
|
+
day_cell: {
|
|
171
|
+
width: 47
|
|
172
|
+
},
|
|
173
|
+
month_selector: {
|
|
174
|
+
minWidth: 60,
|
|
175
|
+
paddingVertical: 4,
|
|
176
|
+
alignItems: 'center',
|
|
177
|
+
backgroundColor: '#f3f3f3',
|
|
178
|
+
paddingHorizontal: 10,
|
|
179
|
+
borderRadius: 4
|
|
180
|
+
},
|
|
181
|
+
year_selector: {
|
|
182
|
+
paddingVertical: 4,
|
|
183
|
+
minWidth: 60,
|
|
184
|
+
backgroundColor: '#f3f3f3',
|
|
185
|
+
paddingHorizontal: 10,
|
|
186
|
+
borderRadius: 4
|
|
187
|
+
},
|
|
188
|
+
time_selector: {
|
|
189
|
+
paddingVertical: 4,
|
|
190
|
+
fontFamily: theme.font.weight.medium,
|
|
191
|
+
backgroundColor: '#f3f3f3',
|
|
192
|
+
paddingHorizontal: 10,
|
|
193
|
+
borderRadius: 4
|
|
194
|
+
},
|
|
195
|
+
year_selector_label: {
|
|
196
|
+
fontFamily: theme.font.weight.medium,
|
|
197
|
+
fontSize: 13
|
|
198
|
+
},
|
|
199
|
+
time_selector_label: {
|
|
200
|
+
fontFamily: theme.font.weight.medium,
|
|
201
|
+
fontSize: 13
|
|
202
|
+
},
|
|
203
|
+
month_selector_label: {
|
|
204
|
+
textTransform: 'capitalize',
|
|
205
|
+
fontFamily: theme.font.weight.medium,
|
|
206
|
+
fontSize: 13
|
|
207
|
+
},
|
|
208
|
+
weekday_label: {
|
|
209
|
+
fontFamily: theme.font.weight.medium,
|
|
210
|
+
fontSize: 13,
|
|
211
|
+
textTransform: 'uppercase'
|
|
212
|
+
},
|
|
213
|
+
day_label: {
|
|
214
|
+
fontFamily: theme.font.weight.medium,
|
|
215
|
+
fontSize: 13
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
const styles = StyleSheet.create({
|
|
219
|
+
modal: {
|
|
220
|
+
paddingHorizontal: 20
|
|
221
|
+
},
|
|
222
|
+
content: {
|
|
223
|
+
backgroundColor: '#fff',
|
|
224
|
+
padding: 12,
|
|
225
|
+
borderRadius: 10,
|
|
226
|
+
zIndex: 11,
|
|
227
|
+
minWidth: width - 40
|
|
228
|
+
},
|
|
229
|
+
value: {
|
|
230
|
+
paddingHorizontal: 6,
|
|
231
|
+
paddingVertical: 4
|
|
232
|
+
},
|
|
233
|
+
label: {
|
|
234
|
+
textDecorationLine: 'underline'
|
|
235
|
+
},
|
|
236
|
+
button: {
|
|
237
|
+
flex: 1
|
|
238
|
+
},
|
|
239
|
+
selector: {
|
|
240
|
+
paddingHorizontal: 8,
|
|
241
|
+
paddingVertical: 4,
|
|
242
|
+
borderRadius: 16
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
//# sourceMappingURL=UIInlineDatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Dimensions","Modal","StyleSheet","DateTimePicker","UIBackdrop","UIIcon","UIStack","UIText","UIButton","theme","useActionSheet","moment","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","width","get","UIInlineDatePicker","label","value","mode","onSelect","labelStyle","textSize","maximumDate","minimumDate","date","setDate","useState","Date","visible","onOpen","onClose","onPick","onConfirm","formattedDate","useMemo","calendar","undefined","sameDay","lastDay","nextDay","nextWeek","lastWeek","sameElse","useEffect","children","onPress","color","variant","style","styles","selector","horizontal","center","size","name","neutral","dark","weight","transparent","animationType","onRequestClose","justify","flex","modal","content","timePicker","includes","navigationPosition","locale","weekdaysFormat","maxDate","minDate","onChange","datePickerStyles","wrapperStyle","button","today","borderWidth","borderColor","light","borderRadius","button_prev","padding","backgroundColor","brand","violet","button_prev_image","tintColor","button_next","button_next_image","selected","selected_label","day_cell","month_selector","minWidth","paddingVertical","alignItems","paddingHorizontal","year_selector","time_selector","fontFamily","font","medium","year_selector_label","fontSize","time_selector_label","month_selector_label","textTransform","weekday_label","day_label","create","zIndex","textDecorationLine"],"sourceRoot":"../../../../../src","sources":["presentation/components/molecules/UIInlineDatePicker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAC5D,OAAOC,cAAc,MAAyB,4BAA4B;AAC1E,SAASC,UAAU,EAAEC,MAAM,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAC9D,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,cAAc,QAAQ,6BAAoB;AACnD,OAAOC,MAAM,MAAM,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAE5B,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E;IAChB+B,MAAM,EAAE,EAAE;IACVjB,QAAQ,EAAEjF,KAAK,GAAG;EACpB,CAAC;EACDI,KAAK,EAAE;IACLgF,iBAAiB,EAAE,CAAC;IACpBF,eAAe,EAAE;EACnB,CAAC;EACD/E,KAAK,EAAE;IACLgG,kBAAkB,EAAE;EACtB,CAAC;EACDrC,MAAM,EAAE;IAAEb,IAAI,EAAE;EAAE,CAAC;EACnBZ,QAAQ,EAAE;IACR+C,iBAAiB,EAAE,CAAC;IACpBF,eAAe,EAAE,CAAC;IAClBf,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { UIIcon } from "../atoms/index.js";
|
|
6
|
+
import { theme } from "../../../theme.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export const UIInputIcon = ({
|
|
9
|
+
position,
|
|
10
|
+
focused,
|
|
11
|
+
color,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /*#__PURE__*/_jsx(View, {
|
|
15
|
+
style: [styles.container, focused && styles.focused, styles[position]],
|
|
16
|
+
children: /*#__PURE__*/_jsx(UIIcon, {
|
|
17
|
+
color: focused ? theme.color.brand.violet['500'] : color,
|
|
18
|
+
...props
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const styles = StyleSheet.create({
|
|
23
|
+
container: {
|
|
24
|
+
backgroundColor: 'transparent',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
justifyContent: 'center'
|
|
27
|
+
},
|
|
28
|
+
start: {
|
|
29
|
+
paddingLeft: 8
|
|
30
|
+
},
|
|
31
|
+
end: {
|
|
32
|
+
paddingRight: 8
|
|
33
|
+
},
|
|
34
|
+
focused: {
|
|
35
|
+
borderColor: theme.color.brand.violet['500']
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=UIInputIcon.js.map
|