@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,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { UITextInputMask } from "../molecules/index.js";
|
|
5
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
6
|
+
import { theme } from "../../../theme.js";
|
|
7
|
+
import { UIIcon, UIText, UIStack } from "../atoms/index.js";
|
|
8
|
+
import { StyleSheet } from 'react-native';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const UIFormTextInputMask = /*#__PURE__*/React.forwardRef(({
|
|
11
|
+
name,
|
|
12
|
+
containerStyle,
|
|
13
|
+
onChangeText: onChangeTextProp,
|
|
14
|
+
formContainerStyle,
|
|
15
|
+
mask,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
const [value, setValue] = React.useState('');
|
|
19
|
+
const {
|
|
20
|
+
control,
|
|
21
|
+
formState: {
|
|
22
|
+
errors
|
|
23
|
+
}
|
|
24
|
+
} = useFormContext();
|
|
25
|
+
const {
|
|
26
|
+
field
|
|
27
|
+
} = useController({
|
|
28
|
+
name,
|
|
29
|
+
control
|
|
30
|
+
});
|
|
31
|
+
const hasError = Boolean(errors[name]);
|
|
32
|
+
const onChangeText = React.useCallback((formatted, extracted, obfuscated) => {
|
|
33
|
+
field.onChange(extracted);
|
|
34
|
+
setValue(formatted);
|
|
35
|
+
onChangeTextProp?.(formatted, extracted, obfuscated);
|
|
36
|
+
}, [field, onChangeTextProp]);
|
|
37
|
+
React.useEffect(() => {
|
|
38
|
+
setValue(field.value);
|
|
39
|
+
}, [field.value]);
|
|
40
|
+
return /*#__PURE__*/_jsxs(UIStack, {
|
|
41
|
+
style: [styles.container, formContainerStyle],
|
|
42
|
+
children: [/*#__PURE__*/_jsx(UITextInputMask, {
|
|
43
|
+
ref: ref,
|
|
44
|
+
value: value,
|
|
45
|
+
onChangeText: onChangeText,
|
|
46
|
+
mask: mask,
|
|
47
|
+
containerStyle: [hasError && {
|
|
48
|
+
borderColor: theme.color.feedback.red['500']
|
|
49
|
+
}, containerStyle],
|
|
50
|
+
...props
|
|
51
|
+
}), hasError && /*#__PURE__*/_jsxs(UIStack, {
|
|
52
|
+
horizontal: true,
|
|
53
|
+
center: true,
|
|
54
|
+
children: [/*#__PURE__*/_jsx(UIText, {
|
|
55
|
+
color: "feedback-red-500",
|
|
56
|
+
children: errors[name]?.message?.toString()
|
|
57
|
+
}), /*#__PURE__*/_jsx(UIIcon, {
|
|
58
|
+
name: "warning",
|
|
59
|
+
color: theme.color.feedback.red['500']
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
const styles = StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
flexGrow: 1
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=UIFormTextInputMask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","UITextInputMask","useController","useFormContext","theme","UIIcon","UIText","UIStack","StyleSheet","jsx","_jsx","jsxs","_jsxs","UIFormTextInputMask","forwardRef","name","containerStyle","onChangeText","onChangeTextProp","formContainerStyle","mask","props","ref","value","setValue","useState","control","formState","errors","field","hasError","Boolean","useCallback","formatted","extracted","obfuscated","onChange","useEffect","style","styles","container","children","borderColor","color","feedback","red","horizontal","center","message","toString","create","flexGrow"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIFormTextInputMask.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,uBAAc;AAC9C,SAASC,aAAa,EAAEC,cAAc,QAAQ,iBAAiB;AAC/D,SAASC,KAAK,QAAQ,mBAAgB;AACtC,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAClD,SAASC,UAAU,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1D,OAAO,MAAMC,mBAAmB,gBAAGb,KAAK,CAACc,UAAU,CACjD,CACE;EACEC,IAAI;EACJC,cAAc;EACdC,YAAY,EAAEC,gBAAgB;EAC9BC,kBAAkB;EAClBC,IAAI;EACJ,GAAGC;AACL,CA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AAQ,iBACPlB,KAAA,CAACL,OAAO;MAACuC,UAAU;MAACC,MAAM;MAAAN,QAAA,gBACxB/B,IAAA,CAACJ,MAAM;QAACqC,KAAK,EAAC,kBAAkB;QAAAF,QAAA,EAC7Bb,MAAM,CAACb,IAAI,CAAC,EAAEiC,OAAO,EAAEC,QAAQ,CAAC;MAAC,CAC5B,CAAC,eACTvC,IAAA,CAACL,MAAM;QAACU,IAAI,EAAC,SAAS;QAAC4B,KAAK,EAAEvC,KAAK,CAACuC,KAAK,CAACC,QAAQ,CAACC,GAAG,CAAC,KAAK;MAAE,CAAE,CAAC;IAAA,CAC1D,CACV;EAAA,CACM,CAAC;AAEd,CACF,CAAC;AAED,MAAMN,MAAM,GAAG/B,UAAU,CAAC0C,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { UIIcon, UIText, UIStack } from "../atoms/index.js";
|
|
6
|
+
import { UIButton } from "../molecules/index.js";
|
|
7
|
+
import { theme } from "../../../theme.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export const UIRow = ({
|
|
10
|
+
label,
|
|
11
|
+
icon,
|
|
12
|
+
value,
|
|
13
|
+
pressable,
|
|
14
|
+
disabled,
|
|
15
|
+
style,
|
|
16
|
+
contentStyle,
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
if (typeof value === 'string' || typeof value === 'number') value = /*#__PURE__*/_jsx(UIText, {
|
|
20
|
+
children: value
|
|
21
|
+
});
|
|
22
|
+
return /*#__PURE__*/_jsx(UIButton, {
|
|
23
|
+
disabled: !pressable || disabled,
|
|
24
|
+
style: [styles.button, style],
|
|
25
|
+
...props,
|
|
26
|
+
children: /*#__PURE__*/_jsxs(UIStack, {
|
|
27
|
+
horizontal: true,
|
|
28
|
+
center: true,
|
|
29
|
+
style: [styles.container, contentStyle],
|
|
30
|
+
children: [/*#__PURE__*/_jsxs(UIStack, {
|
|
31
|
+
size: "lg",
|
|
32
|
+
horizontal: true,
|
|
33
|
+
center: true,
|
|
34
|
+
children: [icon && /*#__PURE__*/_jsx(UIIcon, {
|
|
35
|
+
name: icon,
|
|
36
|
+
size: 24,
|
|
37
|
+
color: theme.color.neutral.mid['60']
|
|
38
|
+
}), /*#__PURE__*/_jsx(UIText, {
|
|
39
|
+
children: label
|
|
40
|
+
})]
|
|
41
|
+
}), value]
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const styles = StyleSheet.create({
|
|
46
|
+
container: {
|
|
47
|
+
justifyContent: 'space-between',
|
|
48
|
+
paddingHorizontal: 24,
|
|
49
|
+
paddingVertical: 20
|
|
50
|
+
},
|
|
51
|
+
button: {
|
|
52
|
+
padding: 0
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=UIRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","React","UIIcon","UIText","UIStack","UIButton","theme","jsx","_jsx","jsxs","_jsxs","UIRow","label","icon","value","pressable","disabled","style","contentStyle","props","children","styles","button","horizontal","center","container","size","name","color","neutral","mid","create","justifyContent","paddingHorizontal","paddingVertical","padding"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UIRow.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,mBAAU;AAElD,SAASC,QAAQ,QAAQ,uBAAc;AACvC,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUvC,OAAO,MAAM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+1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { UIInputIcon, UITextInput } from "../molecules/index.js";
|
|
5
|
+
import { theme } from "../../../theme.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const UISearchInput = ({
|
|
8
|
+
placeholder,
|
|
9
|
+
startIcon,
|
|
10
|
+
containerStyle,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
return /*#__PURE__*/_jsx(UITextInput, {
|
|
14
|
+
variant: "outlined",
|
|
15
|
+
placeholder: placeholder ?? 'Insira o termo da busca...',
|
|
16
|
+
startIcon: startIcon ?? /*#__PURE__*/_jsx(UIInputIcon, {
|
|
17
|
+
name: "search",
|
|
18
|
+
size: 20,
|
|
19
|
+
position: "start",
|
|
20
|
+
color: theme.color.brand.violet['500']
|
|
21
|
+
}),
|
|
22
|
+
containerStyle: [styles.container, containerStyle],
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
container: {
|
|
28
|
+
backgroundColor: theme.color.neutral.light['20'],
|
|
29
|
+
borderColor: theme.color.neutral.light['20'],
|
|
30
|
+
borderRadius: 28
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=UISearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","UIInputIcon","UITextInput","theme","jsx","_jsx","UISearchInput","placeholder","startIcon","containerStyle","props","variant","name","size","position","color","brand","violet","styles","container","create","backgroundColor","neutral","light","borderColor","borderRadius"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UISearchInput.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,EAAEC,WAAW,QAAQ,uBAAc;AACvD,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAKvC,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,WAAW;EACXC,SAAS;EACTC,cAAc;EACd,GAAGC;AACE,CAAC,KAAK;EACX,oBACEL,IAAA,CAACH,WAAW;IACVS,OAAO,EAAC,UAAU;IAClBJ,WAAW,EAAEA,WAAW,IAAI,4BAA6B;IACzDC,SAAS,EACPA,SAAS,iBACPH,IAAA,CAACJ,WAAW;MACVW,IAAI,EAAC,QAAQ;MACbC,IAAI,EAAE,EAAG;MACTC,QAAQ,EAAC,OAAO;MAChBC,KAAK,EAAEZ,KAAK,CAACY,KAAK,CAACC,KAAK,CAACC,MAAM,CAAC,KAAK;IAAE,CACxC,CAEJ;IACDR,cAAc,EAAE,CAACS,MAAM,CAACC,SAAS,EAAEV,cAAc,CAAE;IAAA,GAC/CC;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAMQ,MAAM,GAAGlB,UAAU,CAACoB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,eAAe,EAAElB,KAAK,CAACY,KAAK,CAACO,OAAO,CAACC,KAAK,CAAC,IAAI,CAAC;IAChDC,WAAW,EAAErB,KAAK,CAACY,KAAK,CAACO,OAAO,CAACC,KAAK,CAAC,IAAI,CAAC;IAC5CE,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { UIButton, UIChip, UIList } from "../molecules/index.js";
|
|
5
|
+
import { UIIcon, UISeparator, UISpacer, UIStack, UIText } from "../atoms/index.js";
|
|
6
|
+
import { theme } from "../../../theme.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export const UISelectChip = ({
|
|
9
|
+
data,
|
|
10
|
+
getItemLabel,
|
|
11
|
+
getItemKey,
|
|
12
|
+
selected,
|
|
13
|
+
onSelect,
|
|
14
|
+
onReset,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
return /*#__PURE__*/_jsx(UIList, {
|
|
18
|
+
horizontal: true,
|
|
19
|
+
data: data,
|
|
20
|
+
renderItem: ({
|
|
21
|
+
item
|
|
22
|
+
}) => {
|
|
23
|
+
const isSelected = getItemKey(selected) === getItemKey(item);
|
|
24
|
+
return /*#__PURE__*/_jsx(UIButton, {
|
|
25
|
+
onPress: () => onSelect(item),
|
|
26
|
+
style: styles.button,
|
|
27
|
+
children: /*#__PURE__*/_jsx(UIChip, {
|
|
28
|
+
content: /*#__PURE__*/_jsxs(UIStack, {
|
|
29
|
+
horizontal: true,
|
|
30
|
+
center: true,
|
|
31
|
+
children: [isSelected && /*#__PURE__*/_jsx(UIIcon, {
|
|
32
|
+
name: "check-alt",
|
|
33
|
+
color: theme.color.neutral.light['00']
|
|
34
|
+
}), /*#__PURE__*/_jsx(UIText, {
|
|
35
|
+
weight: "500",
|
|
36
|
+
color: isSelected ? 'neutral-light-00' : 'neutral-mid-60',
|
|
37
|
+
children: getItemLabel(item)
|
|
38
|
+
})]
|
|
39
|
+
}),
|
|
40
|
+
color: isSelected ? 'brand-violet-500' : 'neutral-light-05',
|
|
41
|
+
borderColor: isSelected ? 'brand-violet-500' : 'neutral-light-50',
|
|
42
|
+
style: styles.chip
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
ItemSeparatorComponent: () => /*#__PURE__*/_jsx(UISpacer, {
|
|
47
|
+
horizontal: true
|
|
48
|
+
}),
|
|
49
|
+
ListHeaderComponent: () => /*#__PURE__*/_jsxs(UIStack, {
|
|
50
|
+
horizontal: true,
|
|
51
|
+
center: true,
|
|
52
|
+
size: "md",
|
|
53
|
+
style: styles.header,
|
|
54
|
+
children: [/*#__PURE__*/_jsx(UIButton, {
|
|
55
|
+
onPress: () => onReset(),
|
|
56
|
+
style: styles.button,
|
|
57
|
+
children: /*#__PURE__*/_jsx(UIChip, {
|
|
58
|
+
content: /*#__PURE__*/_jsxs(UIStack, {
|
|
59
|
+
horizontal: true,
|
|
60
|
+
center: true,
|
|
61
|
+
children: [!selected && /*#__PURE__*/_jsx(UIIcon, {
|
|
62
|
+
name: "check-alt",
|
|
63
|
+
color: theme.color.neutral.light['00']
|
|
64
|
+
}), /*#__PURE__*/_jsx(UIText, {
|
|
65
|
+
weight: "500",
|
|
66
|
+
color: !selected ? 'neutral-light-00' : 'neutral-mid-60',
|
|
67
|
+
children: "Todos"
|
|
68
|
+
})]
|
|
69
|
+
}),
|
|
70
|
+
color: !selected ? 'brand-violet-500' : 'neutral-light-05',
|
|
71
|
+
borderColor: !selected ? 'brand-violet-500' : 'neutral-light-50',
|
|
72
|
+
style: styles.chip
|
|
73
|
+
})
|
|
74
|
+
}), /*#__PURE__*/_jsx(UISeparator, {
|
|
75
|
+
horizontal: false
|
|
76
|
+
})]
|
|
77
|
+
}),
|
|
78
|
+
...props
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
const styles = StyleSheet.create({
|
|
82
|
+
chip: {
|
|
83
|
+
paddingTop: 6,
|
|
84
|
+
paddingBottom: 6,
|
|
85
|
+
paddingHorizontal: 16
|
|
86
|
+
},
|
|
87
|
+
header: {
|
|
88
|
+
marginRight: 8
|
|
89
|
+
},
|
|
90
|
+
button: {
|
|
91
|
+
padding: 0
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=UISelectChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","UIButton","UIChip","UIList","UIIcon","UISeparator","UISpacer","UIStack","UIText","theme","jsx","_jsx","jsxs","_jsxs","UISelectChip","data","getItemLabel","getItemKey","selected","onSelect","onReset","props","horizontal","renderItem","item","isSelected","onPress","style","styles","button","children","content","center","name","color","neutral","light","weight","borderColor","chip","ItemSeparatorComponent","ListHeaderComponent","size","header","create","paddingTop","paddingBottom","paddingHorizontal","marginRight","padding"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UISelectChip.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,QAAQ,EAAEC,MAAM,EAAEC,MAAM,QAAQ,uBAAc;AACvD,SAASC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AACzE,SAASC,KAAK,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAavC,OAAO,MAAMC,YAAY,GAAGA,CAAK;EAC/BC,IAAI;EACJC,YAAY;EACZC,UAAU;EACVC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACP,GAAGC;AACK,CAAC,KAAK;EACd,oBACEV,IAAA,CAACR,MAAM;IACLmB,UAAU;IACVP,IAAI,EAAEA,IAAK;IACXQ,UAAU,EAAEA,CAAC;MAAEC;IAAK,CAAC,KAAK;MACxB,MAAMC,UAAU,GAAGR,UAAU,CAACC,QAAQ,CAAC,KAAKD,UAAU,CAACO,IAAI,CAAC;MAC5D,oBACEb,IAAA,CAACV,QAAQ;QAACyB,OAAO,EAAEA,CAAA,KAAMP,QAAQ,CAACK,IAAI,CAAE;QAACG,KAAK,EAAEC,MAAM,CAACC,MAAO;QAAAC,QAAA,eAC5DnB,IAAA,CAACT,MAAM;UACL6B,OAAO,eACLlB,KAAA,CAACN,OAAO;YAACe,UAAU;YAACU,MAAM;YAAAF,QAAA,GACvBL,UAAU,iBACTd,IAAA,CAACP,MAAM;cACL6B,IAAI,EAAC,WAAW;cAChBC,KAAK,EAAEzB,KAAK,CAACyB,KAAK,CAACC,OAAO,CAACC,KAAK,CAAC,IAAI;YAAE,CACxC,CACF,eACDzB,IAAA,CAACH,MAAM;cACL6B,MAAM,EAAC,KAAK;cACZH,KAAK,EAAET,UAAU,GAAG,kBAAkB,GAAG,gBAAiB;cAAAK,QAAA,EAEzDd,YAAY,CAACQ,IAAI;YAAC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AACiB,UAAU,EAAE;MAAM,CAAE,CAAC;IAAA,CAC3B,CACT;IAAA,GACED;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAMO,MAAM,GAAG5B,UAAU,CAAC4C,MAAM,CAAC;EAC/BL,IAAI,EAAE;IACJM,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,iBAAiB,EAAE;EACrB,CAAC;EACDJ,MAAM,EAAE;IACNK,WAAW,EAAE;EACf,CAAC;EACDnB,MAAM,EAAE;IACNoB,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Canvas, Path, Skia, notifyChange, useCanvasRef } from '@shopify/react-native-skia';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Dimensions, Image, StyleSheet } from 'react-native';
|
|
6
|
+
import ReactNativeBlobUtil from 'react-native-blob-util';
|
|
7
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
8
|
+
import { useSharedValue } from 'react-native-reanimated';
|
|
9
|
+
import { UIIcon, UISeparator, UIStack, UIText } from "../atoms/index.js";
|
|
10
|
+
import { UIButton } from "../molecules/index.js";
|
|
11
|
+
import { theme } from "../../../theme.js";
|
|
12
|
+
import { scheduleOnRN } from 'react-native-worklets';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const {
|
|
15
|
+
width
|
|
16
|
+
} = Dimensions.get('window');
|
|
17
|
+
const SNAPSHOT_PARAMS = {
|
|
18
|
+
height: 250,
|
|
19
|
+
width,
|
|
20
|
+
x: 0,
|
|
21
|
+
y: 0
|
|
22
|
+
};
|
|
23
|
+
export const UISignature = ({
|
|
24
|
+
ref,
|
|
25
|
+
initialImage,
|
|
26
|
+
disabled = false,
|
|
27
|
+
label = 'Assinatura',
|
|
28
|
+
onReset,
|
|
29
|
+
onTouchStart,
|
|
30
|
+
testID,
|
|
31
|
+
accessibilityLabel,
|
|
32
|
+
labelSize = 14,
|
|
33
|
+
containerStyle,
|
|
34
|
+
signatureStyle
|
|
35
|
+
}) => {
|
|
36
|
+
const canvasRef = useCanvasRef();
|
|
37
|
+
const currentPath = useSharedValue(Skia.Path.Make().moveTo(0, 0));
|
|
38
|
+
const [isDirty, setIsDirty] = React.useState(false);
|
|
39
|
+
const [image, setImage] = React.useState(initialImage ?? null);
|
|
40
|
+
const resetSignature = () => {
|
|
41
|
+
onReset?.();
|
|
42
|
+
currentPath.value = Skia.Path.Make().moveTo(0, 0);
|
|
43
|
+
setImage(null);
|
|
44
|
+
};
|
|
45
|
+
const onSave = async () => {
|
|
46
|
+
const image = canvasRef.current?.makeImageSnapshot(SNAPSHOT_PARAMS);
|
|
47
|
+
if (!image) return;
|
|
48
|
+
const name = `${Date.now()}.png`;
|
|
49
|
+
const path = ReactNativeBlobUtil.fs.dirs.DCIMDir + `/signatures/${name}`;
|
|
50
|
+
const base64 = image.encodeToBase64();
|
|
51
|
+
await ReactNativeBlobUtil.fs.writeFile(path, base64, 'base64');
|
|
52
|
+
const values = {
|
|
53
|
+
name,
|
|
54
|
+
uri: `file://${path}`,
|
|
55
|
+
type: 'image/png'
|
|
56
|
+
};
|
|
57
|
+
setImage(values);
|
|
58
|
+
return values;
|
|
59
|
+
};
|
|
60
|
+
const pan = Gesture.Pan().enabled(!disabled).averageTouches(true).maxPointers(1).minDistance(1).onStart(e => {
|
|
61
|
+
currentPath.value.moveTo(e.x, e.y);
|
|
62
|
+
currentPath.value.lineTo(e.x, e.y);
|
|
63
|
+
notifyChange(currentPath);
|
|
64
|
+
if (onTouchStart) scheduleOnRN(onTouchStart);
|
|
65
|
+
}).onUpdate(e => {
|
|
66
|
+
scheduleOnRN(setIsDirty, true);
|
|
67
|
+
currentPath.value.lineTo(e.x, e.y);
|
|
68
|
+
notifyChange(currentPath);
|
|
69
|
+
});
|
|
70
|
+
React.useImperativeHandle(ref, () => ({
|
|
71
|
+
isDirty,
|
|
72
|
+
save: onSave,
|
|
73
|
+
reset: resetSignature
|
|
74
|
+
}));
|
|
75
|
+
React.useEffect(() => {
|
|
76
|
+
if (initialImage) {
|
|
77
|
+
setImage(initialImage);
|
|
78
|
+
}
|
|
79
|
+
}, [initialImage]);
|
|
80
|
+
const {
|
|
81
|
+
height,
|
|
82
|
+
width
|
|
83
|
+
} = StyleSheet.flatten(signatureStyle ?? {});
|
|
84
|
+
return /*#__PURE__*/_jsxs(UIStack, {
|
|
85
|
+
style: [styles.signatureContainer, containerStyle],
|
|
86
|
+
children: [image ? /*#__PURE__*/_jsx(Image, {
|
|
87
|
+
source: image,
|
|
88
|
+
style: [styles.image, Boolean(width) && {
|
|
89
|
+
width
|
|
90
|
+
}, Boolean(height) && {
|
|
91
|
+
height
|
|
92
|
+
}]
|
|
93
|
+
}) : /*#__PURE__*/_jsx(GestureDetector, {
|
|
94
|
+
gesture: pan,
|
|
95
|
+
children: /*#__PURE__*/_jsx(Canvas, {
|
|
96
|
+
ref: canvasRef,
|
|
97
|
+
testID: testID,
|
|
98
|
+
accessibilityLabel: accessibilityLabel,
|
|
99
|
+
style: [styles.container, signatureStyle],
|
|
100
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
101
|
+
path: currentPath,
|
|
102
|
+
strokeWidth: 5,
|
|
103
|
+
style: "stroke",
|
|
104
|
+
color: "#000"
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
}), /*#__PURE__*/_jsxs(UIStack, {
|
|
108
|
+
style: styles.underline,
|
|
109
|
+
children: [/*#__PURE__*/_jsx(UISeparator, {
|
|
110
|
+
color: "neutral-light-50",
|
|
111
|
+
style: styles.separator
|
|
112
|
+
}), /*#__PURE__*/_jsx(UIText, {
|
|
113
|
+
size: labelSize,
|
|
114
|
+
children: label
|
|
115
|
+
})]
|
|
116
|
+
}), /*#__PURE__*/_jsx(UIButton, {
|
|
117
|
+
style: styles.clear,
|
|
118
|
+
onPress: resetSignature,
|
|
119
|
+
disabled: disabled,
|
|
120
|
+
children: /*#__PURE__*/_jsx(UIIcon, {
|
|
121
|
+
name: "close"
|
|
122
|
+
})
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
const styles = StyleSheet.create({
|
|
127
|
+
container: {
|
|
128
|
+
flex: 1,
|
|
129
|
+
position: 'relative'
|
|
130
|
+
},
|
|
131
|
+
image: {
|
|
132
|
+
height: 250,
|
|
133
|
+
width: '100%'
|
|
134
|
+
},
|
|
135
|
+
signatureContainer: {
|
|
136
|
+
height: 250,
|
|
137
|
+
borderWidth: 1,
|
|
138
|
+
borderRadius: 10,
|
|
139
|
+
borderColor: theme.color.neutral.light[50],
|
|
140
|
+
overflow: 'hidden',
|
|
141
|
+
position: 'relative'
|
|
142
|
+
},
|
|
143
|
+
clear: {
|
|
144
|
+
position: 'absolute',
|
|
145
|
+
top: 0,
|
|
146
|
+
right: 0
|
|
147
|
+
},
|
|
148
|
+
underline: {
|
|
149
|
+
position: 'absolute',
|
|
150
|
+
width: '100%',
|
|
151
|
+
paddingHorizontal: 20,
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
bottom: 20
|
|
154
|
+
},
|
|
155
|
+
separator: {
|
|
156
|
+
opacity: 1
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
//# sourceMappingURL=UISignature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Canvas","Path","Skia","notifyChange","useCanvasRef","React","Dimensions","Image","StyleSheet","ReactNativeBlobUtil","Gesture","GestureDetector","useSharedValue","UIIcon","UISeparator","UIStack","UIText","UIButton","theme","scheduleOnRN","jsx","_jsx","jsxs","_jsxs","width","get","SNAPSHOT_PARAMS","height","x","y","UISignature","ref","initialImage","disabled","label","onReset","onTouchStart","testID","accessibilityLabel","labelSize","containerStyle","signatureStyle","canvasRef","currentPath","Make","moveTo","isDirty","setIsDirty","useState","image","setImage","resetSignature","value","onSave","current","makeImageSnapshot","name","Date","now","path","fs","dirs","DCIMDir","base64","encodeToBase64","writeFile","values","uri","type","pan","Pan","enabled","averageTouches","maxPointers","minDistance","onStart","e","lineTo","onUpdate","useImperativeHandle","save","reset","useEffect","flatten","style","styles","signatureContainer","children","source","Boolean","gesture","container","strokeWidth","color","underline","separator","size","clear","onPress","create","flex","position","borderWidth","borderRadius","borderColor","neutral","light","overflow","top","right","paddingHorizontal","alignItems","bottom","opacity"],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/UISignature.tsx"],"mappings":";;AAAA,SACEA,MAAM,EACNC,IAAI,EACJC,IAAI,EACJC,YAAY,EACZC,YAAY,QACP,4BAA4B;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAC5D,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,SAASC,OAAO,EAAEC,eAAe,QAAQ,8BAA8B;AACvE,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,MAAM,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,mBAAU;AAC/D,SAASC,QAAQ,QAAQ,uBAAc;AACvC,SAASC,KAAK,QAAQ,mBAAgB;AAEtC,SAASC,YAAY,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErD,MAAM;EAAEC;AAAM,CAAC,GAAGlB,UAAU,CAACmB,GAAG,CAAC,QAAQ,CAAC;AAE1C,MAAMC,eAAe,GAAG;EACtBC,MAAM,EAAE,GAAG;EACXH,KAAK;EACLI,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE;AACL,CAAC;AAuBD,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,GAAG;EACHC,YAAY;EACZC,QAAQ,GAAG,KAAK;EAChBC,KAAK,GAAG,YAAY;EACpBC,OAAO;EACPC,YAAY;EACZC,MAAM;EACNC,kBAAkB;EAClBC,SAAS,GAAG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MAAM;QAAC2C,IAAI,EAAC;MAAO,CAAE;IAAC,CACf,CAAC;EAAA,CACJ,CAAC;AAEd,CAAC;AAED,MAAM6B,MAAM,GAAG7E,UAAU,CAAC2F,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDpD,KAAK,EAAE;IAAEtB,MAAM,EAAE,GAAG;IAAEH,KAAK,EAAE;EAAO,CAAC;EACrC8D,kBAAkB,EAAE;IAClB3D,MAAM,EAAE,GAAG;IACX2E,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEtF,KAAK,CAAC2E,KAAK,CAACY,OAAO,CAACC,KAAK,CAAC,EAAE,CAAC;IAC1CC,QAAQ,EAAE,QAAQ;IAClBN,QAAQ,EAAE;EACZ,CAAC;EACDJ,KAAK,EAAE;IACLI,QAAQ,EAAE,UAAU;IACpBO,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE;EACT,CAAC;EACDf,SAAS,EAAE;IACTO,QAAQ,EAAE,UAAU;IACpB7E,KAAK,EAAE,MAAM;IACbsF,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE;EACV,CAAC;EACDjB,SAAS,EAAE;IACTkB,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
6
|
+
import Animated, { Extrapolation, clamp, interpolate, runOnJS, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
7
|
+
import { UIStack, UIText } from "../atoms/index.js";
|
|
8
|
+
import { UIButton } from "../molecules/index.js";
|
|
9
|
+
import { theme } from "../../../theme.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
export const UISlideButton = ({
|
|
12
|
+
children,
|
|
13
|
+
helperText,
|
|
14
|
+
onPress
|
|
15
|
+
}) => {
|
|
16
|
+
const [containerWidth, setContainerWidth] = React.useState(0);
|
|
17
|
+
const [buttonWidth, setButtonWidth] = React.useState(0);
|
|
18
|
+
const animation = useSharedValue(0);
|
|
19
|
+
const max = containerWidth - buttonWidth;
|
|
20
|
+
const buttonAnimatedStyle = useAnimatedStyle(() => {
|
|
21
|
+
return {
|
|
22
|
+
transform: [{
|
|
23
|
+
translateX: interpolate(animation.value, [0, 1], [0, max])
|
|
24
|
+
}]
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
const labelAnimatedStyle = useAnimatedStyle(() => {
|
|
28
|
+
return {
|
|
29
|
+
opacity: interpolate(animation.value, [0, 1], [1, -1.5], Extrapolation.CLAMP)
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
const pan = Gesture.Pan().onUpdate(event => {
|
|
33
|
+
animation.value = interpolate(clamp(event.translationX, 0, max), [0, max], [0, 1]);
|
|
34
|
+
}).onEnd(() => {
|
|
35
|
+
if (animation.value > 0.9) {
|
|
36
|
+
if (onPress) {
|
|
37
|
+
runOnJS(onPress)();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
animation.value = withSpring(0, {
|
|
41
|
+
clamp: {
|
|
42
|
+
min: 0
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
return /*#__PURE__*/_jsxs(UIStack, {
|
|
47
|
+
style: styles.container,
|
|
48
|
+
onLayout: event => {
|
|
49
|
+
setContainerWidth(event.nativeEvent.layout.width);
|
|
50
|
+
},
|
|
51
|
+
children: [helperText && /*#__PURE__*/_jsx(Animated.View, {
|
|
52
|
+
style: [styles.text, labelAnimatedStyle],
|
|
53
|
+
children: /*#__PURE__*/_jsx(UIText, {
|
|
54
|
+
weight: "600",
|
|
55
|
+
children: helperText
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/_jsx(GestureDetector, {
|
|
58
|
+
gesture: pan,
|
|
59
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
60
|
+
style: buttonAnimatedStyle,
|
|
61
|
+
children: /*#__PURE__*/_jsx(UIButton, {
|
|
62
|
+
variant: "contained",
|
|
63
|
+
style: styles.button,
|
|
64
|
+
onLayout: event => {
|
|
65
|
+
setButtonWidth(event.nativeEvent.layout.width);
|
|
66
|
+
},
|
|
67
|
+
children: children
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
const styles = StyleSheet.create({
|
|
74
|
+
container: {
|
|
75
|
+
backgroundColor: theme.color.neutral.light['20'],
|
|
76
|
+
borderRadius: 16
|
|
77
|
+
},
|
|
78
|
+
button: {
|
|
79
|
+
alignSelf: 'flex-start'
|
|
80
|
+
},
|
|
81
|
+
text: {
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
alignSelf: 'center',
|
|
84
|
+
top: '50%',
|
|
85
|
+
transform: [{
|
|
86
|
+
translateY: -10
|
|
87
|
+
}]
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=UISlideButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Gesture","GestureDetector","Animated","Extrapolation","clamp","interpolate","runOnJS","useAnimatedStyle","useSharedValue","withSpring","UIStack","UIText","UIButton","theme","jsx","_jsx","jsxs","_jsxs","UISlideButton","children","helperText","onPress","containerWidth","setContainerWidth","useState","buttonWidth","setButtonWidth","animation","max","buttonAnimatedStyle","transform","translateX","value","labelAnimatedStyle","opacity","CLAMP","pan","Pan","onUpdate","event","translationX","onEnd","min","style","styles","container","onLayout","nativeEvent","layout","width","View","text","weight","gesture","variant","button","create","backgroundColor","color","neutral","light","borderRadius","alignSelf","position","top","translateY"],"sourceRoot":"../../../../../src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P,KAAK,EAAEd,mBAAoB;QAAAV,QAAA,eACxCJ,IAAA,CAACH,QAAQ;UACP0C,OAAO,EAAC,WAAW;UACnBX,KAAK,EAAEC,MAAM,CAACW,MAAO;UACrBT,QAAQ,EAAGP,KAAK,IAAK;YACnBb,cAAc,CAACa,KAAK,CAACQ,WAAW,CAACC,MAAM,CAACC,KAAK,CAAC;UAChD,CAAE;UAAA9B,QAAA,EAEDA;QAAQ,CACD;MAAC,CACE;IAAC,CACD,CAAC;EAAA,CACX,CAAC;AAEd,CAAC;AAED,MAAMyB,MAAM,GAAG7C,UAAU,CAACyD,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,eAAe,EAAE5C,KAAK,CAAC6C,KAAK,CAACC,OAAO,CAACC,KAAK,CAAC,IAAI,CAAC;IAChDC,YAAY,EAAE;EAChB,CAAC;EACDN,MAAM,EAAE;IACNO,SAAS,EAAE;EACb,CAAC;EACDX,IAAI,EAAE;IACJY,QAAQ,EAAE,UAAU;IACpBD,SAAS,EAAE,QAAQ;IACnBE,GAAG,EAAE,KAAK;IACVlC,SAAS,EAAE,CAAC;MAAEmC,UAAU,EAAE,CAAC;IAAG,CAAC;EACjC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export * from "./UIForm.js";
|
|
4
|
+
export * from "./UIFormTextInput.js";
|
|
5
|
+
export * from "./UICard.js";
|
|
6
|
+
export * from "./UIFormButton.js";
|
|
7
|
+
export * from "./UIRow.js";
|
|
8
|
+
export * from "./UIComment.js";
|
|
9
|
+
export * from "./UIFormRadioInput.js";
|
|
10
|
+
export * from "./UIAppBarAction.js";
|
|
11
|
+
export * from "./UIAppBar.js";
|
|
12
|
+
export * from "./UIFormDatetimeInput.js";
|
|
13
|
+
export * from "./UIFormCheckboxInput.js";
|
|
14
|
+
export * from "./UIFormRadioInput.js";
|
|
15
|
+
export * from "./UIFormMultiselectInput.js";
|
|
16
|
+
export * from "./UIFormSelectInput.js";
|
|
17
|
+
export * from "./UIFormTextInputMask.js";
|
|
18
|
+
export * from "./UIFormCurrencyInput.js";
|
|
19
|
+
export * from "./UISlideButton.js";
|
|
20
|
+
export * from "./UISearchInput.js";
|
|
21
|
+
export * from "./UISelectChip.js";
|
|
22
|
+
export * from "./UIErrorBoundary.js";
|
|
23
|
+
export * from "./UISignature.js";
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["presentation/components/organisms/index.ts"],"mappings":";;AAAA,cAAc,aAAU;AACxB,cAAc,sBAAmB;AACjC,cAAc,aAAU;AACxB,cAAc,mBAAgB;AAC9B,cAAc,YAAS;AACvB,cAAc,gBAAa;AAC3B,cAAc,uBAAoB;AAClC,cAAc,qBAAkB;AAChC,cAAc,eAAY;AAC1B,cAAc,0BAAuB;AACrC,cAAc,0BAAuB;AACrC,cAAc,uBAAoB;AAClC,cAAc,6BAA0B;AACxC,cAAc,wBAAqB;AACnC,cAAc,0BAAuB;AACrC,cAAc,0BAAuB;AACrC,cAAc,oBAAiB;AAC/B,cAAc,oBAAiB;AAC/B,cAAc,mBAAgB;AAC9B,cAAc,sBAAmB;AACjC,cAAc,kBAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["presentation/components/permissions/index.ts"],"mappings":";;AAAA,cAAc,0BAAuB","ignoreList":[]}
|