@transfergratis/react-native-sdk 0.1.2
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/README.md +539 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +14 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build.gradle +47 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +28 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
- package/android/src/main/res/xml/file_paths.xml +15 -0
- package/build/App.d.ts +3 -0
- package/build/App.d.ts.map +1 -0
- package/build/App.js +9 -0
- package/build/App.js.map +1 -0
- package/build/TransfergratisSdk.types.d.ts +32 -0
- package/build/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/TransfergratisSdk.types.js +2 -0
- package/build/TransfergratisSdk.types.js.map +1 -0
- package/build/TransfergratisSdkModule.d.ts +21 -0
- package/build/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.js +4 -0
- package/build/TransfergratisSdkModule.js.map +1 -0
- package/build/TransfergratisSdkModule.web.d.ts +20 -0
- package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.web.js +25 -0
- package/build/TransfergratisSdkModule.web.js.map +1 -0
- package/build/TransfergratisSdkView.d.ts +4 -0
- package/build/TransfergratisSdkView.d.ts.map +1 -0
- package/build/TransfergratisSdkView.js +7 -0
- package/build/TransfergratisSdkView.js.map +1 -0
- package/build/TransfergratisSdkView.web.d.ts +4 -0
- package/build/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/TransfergratisSdkView.web.js +11 -0
- package/build/TransfergratisSdkView.web.js.map +1 -0
- package/build/components/Camera/index.d.ts +2 -0
- package/build/components/Camera/index.d.ts.map +1 -0
- package/build/components/Camera/index.js +2 -0
- package/build/components/Camera/index.js.map +1 -0
- package/build/components/Camera/index.web.d.ts +2 -0
- package/build/components/Camera/index.web.d.ts.map +1 -0
- package/build/components/Camera/index.web.js +2 -0
- package/build/components/Camera/index.web.js.map +1 -0
- package/build/components/Camera/types.d.ts +2 -0
- package/build/components/Camera/types.d.ts.map +1 -0
- package/build/components/Camera/types.js +2 -0
- package/build/components/Camera/types.js.map +1 -0
- package/build/components/ConfigurableKYCFlow.d.ts +11 -0
- package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/components/ConfigurableKYCFlow.js +257 -0
- package/build/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/components/CustomCameraExample.d.ts +10 -0
- package/build/components/CustomCameraExample.d.ts.map +1 -0
- package/build/components/CustomCameraExample.js +232 -0
- package/build/components/CustomCameraExample.js.map +1 -0
- package/build/components/EnhancedCameraView.d.ts +44 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +316 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +44 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +399 -0
- package/build/components/EnhancedCameraView.web.js.map +1 -0
- package/build/components/FileUpload.d.ts +13 -0
- package/build/components/FileUpload.d.ts.map +1 -0
- package/build/components/FileUpload.js +216 -0
- package/build/components/FileUpload.js.map +1 -0
- package/build/components/KYCElementRenderer.d.ts +14 -0
- package/build/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/components/KYCElementRenderer.js +31 -0
- package/build/components/KYCElementRenderer.js.map +1 -0
- package/build/components/KYCElements/CameraCapture.d.ts +11 -0
- package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/components/KYCElements/CameraCapture.js +218 -0
- package/build/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/components/KYCElements/CompletionStep.d.ts +10 -0
- package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/components/KYCElements/CompletionStep.js +147 -0
- package/build/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/components/KYCElements/CountrySelection.d.ts +11 -0
- package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelection.js +147 -0
- package/build/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
- package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/components/KYCElements/FileUpload.d.ts +11 -0
- package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/components/KYCElements/FileUpload.js +267 -0
- package/build/components/KYCElements/FileUpload.js.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.js +326 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +421 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
- package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCapture.js +235 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationStep.d.ts +10 -0
- package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationStep.js +199 -0
- package/build/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/components/KYCExample.d.ts +3 -0
- package/build/components/KYCExample.d.ts.map +1 -0
- package/build/components/KYCExample.js +247 -0
- package/build/components/KYCExample.js.map +1 -0
- package/build/components/KYCFlow.d.ts +3 -0
- package/build/components/KYCFlow.d.ts.map +1 -0
- package/build/components/KYCFlow.js +308 -0
- package/build/components/KYCFlow.js.map +1 -0
- package/build/components/NativeCameraView.d.ts +11 -0
- package/build/components/NativeCameraView.d.ts.map +1 -0
- package/build/components/NativeCameraView.js +27 -0
- package/build/components/NativeCameraView.js.map +1 -0
- package/build/components/OverLay/IdCard.d.ts +4 -0
- package/build/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/components/OverLay/IdCard.js +181 -0
- package/build/components/OverLay/IdCard.js.map +1 -0
- package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
- package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/components/OverLay/SelfieOverlay.js +168 -0
- package/build/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/components/OverLay/StepOverlay.d.ts +9 -0
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/components/OverLay/StepOverlay.js +51 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +21 -0
- package/build/components/OverLay/type.d.ts.map +1 -0
- package/build/components/OverLay/type.js +2 -0
- package/build/components/OverLay/type.js.map +1 -0
- package/build/components/ProgressIndicator.d.ts +8 -0
- package/build/components/ProgressIndicator.d.ts.map +1 -0
- package/build/components/ProgressIndicator.js +48 -0
- package/build/components/ProgressIndicator.js.map +1 -0
- package/build/components/SelfieCapture.d.ts +3 -0
- package/build/components/SelfieCapture.d.ts.map +1 -0
- package/build/components/SelfieCapture.js +197 -0
- package/build/components/SelfieCapture.js.map +1 -0
- package/build/components/SimpleExample.d.ts +3 -0
- package/build/components/SimpleExample.d.ts.map +1 -0
- package/build/components/SimpleExample.js +89 -0
- package/build/components/SimpleExample.js.map +1 -0
- package/build/components/Svgs/GpsIcon.d.ts +3 -0
- package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/components/Svgs/GpsIcon.js +9 -0
- package/build/components/Svgs/GpsIcon.js.map +1 -0
- package/build/components/Svgs/Schield.d.ts +3 -0
- package/build/components/Svgs/Schield.d.ts.map +1 -0
- package/build/components/Svgs/Schield.js +22 -0
- package/build/components/Svgs/Schield.js.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.js +11 -0
- package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/components/Svgs/scanningLine.d.ts +9 -0
- package/build/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/components/Svgs/scanningLine.js +61 -0
- package/build/components/Svgs/scanningLine.js.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.js +9 -0
- package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/components/TemplateKYCExample.d.ts +7 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +433 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +210 -0
- package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/components/VisionCameraView.d.ts +22 -0
- package/build/components/VisionCameraView.d.ts.map +1 -0
- package/build/components/VisionCameraView.js +142 -0
- package/build/components/VisionCameraView.js.map +1 -0
- package/build/components/example/CameraCaptureEx.d.ts +4 -0
- package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/components/example/CameraCaptureEx.js +219 -0
- package/build/components/example/CameraCaptureEx.js.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.js +229 -0
- package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/components/example/CameraCaptureExScan.d.ts +3 -0
- package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExScan.js +213 -0
- package/build/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
- package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExSimple.js +138 -0
- package/build/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/components/example/OrientationVideoExample.d.ts +4 -0
- package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/components/example/OrientationVideoExample.js +329 -0
- package/build/components/example/OrientationVideoExample.js.map +1 -0
- package/build/components/example/SelfieCaptureEx.d.ts +4 -0
- package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/components/example/SelfieCaptureEx.js +238 -0
- package/build/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/components/ui/Button.d.ts +37 -0
- package/build/components/ui/Button.d.ts.map +1 -0
- package/build/components/ui/Button.js +194 -0
- package/build/components/ui/Button.js.map +1 -0
- package/build/components/ui/ButtonExample.d.ts +4 -0
- package/build/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/components/ui/ButtonExample.js +209 -0
- package/build/components/ui/ButtonExample.js.map +1 -0
- package/build/components/ui/ButtonStyles.d.ts +521 -0
- package/build/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/components/ui/ButtonStyles.js +429 -0
- package/build/components/ui/ButtonStyles.js.map +1 -0
- package/build/config/KYCConfigs.d.ts +7 -0
- package/build/config/KYCConfigs.d.ts.map +1 -0
- package/build/config/KYCConfigs.js +516 -0
- package/build/config/KYCConfigs.js.map +1 -0
- package/build/hooks/useKYC.d.ts +15 -0
- package/build/hooks/useKYC.d.ts.map +1 -0
- package/build/hooks/useKYC.js +103 -0
- package/build/hooks/useKYC.js.map +1 -0
- package/build/hooks/useKYCFlow.d.ts +3 -0
- package/build/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/hooks/useKYCFlow.js +221 -0
- package/build/hooks/useKYCFlow.js.map +1 -0
- package/build/hooks/useLocation.d.ts +32 -0
- package/build/hooks/useLocation.d.ts.map +1 -0
- package/build/hooks/useLocation.js +165 -0
- package/build/hooks/useLocation.js.map +1 -0
- package/build/hooks/useOrientationVideo.d.ts +10 -0
- package/build/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/hooks/useOrientationVideo.js +117 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +221 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/index.d.ts +34 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +45 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +35 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +119 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/camera/NativeCameraModule.d.ts +52 -0
- package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/modules/camera/NativeCameraModule.js +149 -0
- package/build/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.js +125 -0
- package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.d.ts +62 -0
- package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.js +198 -0
- package/build/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.js +570 -0
- package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/modules/camera/index.d.ts +5 -0
- package/build/modules/camera/index.d.ts.map +1 -0
- package/build/modules/camera/index.js +4 -0
- package/build/modules/camera/index.js.map +1 -0
- package/build/stores/kycStore.d.ts +55 -0
- package/build/stores/kycStore.d.ts.map +1 -0
- package/build/stores/kycStore.js +98 -0
- package/build/stores/kycStore.js.map +1 -0
- package/build/types/KYC.types.d.ts +326 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +2 -0
- package/build/types/KYC.types.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/TransfergratisSdk.podspec +31 -0
- package/ios/TransfergratisSdkModule.swift +409 -0
- package/package.json +67 -0
- package/plugin/build/index.d.ts +4 -0
- package/plugin/build/index.js +10 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +69 -0
- package/plugin/src/index.ts +4 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withVisionCamera.js +89 -0
- package/plugin/src/withVisionCamera.ts +98 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +14 -0
- package/src/App.tsx +9 -0
- package/src/TransfergratisSdk.types.ts +30 -0
- package/src/TransfergratisSdkModule.ts +16 -0
- package/src/TransfergratisSdkModule.web.ts +31 -0
- package/src/TransfergratisSdkView.tsx +11 -0
- package/src/TransfergratisSdkView.web.tsx +15 -0
- package/src/components/Camera/index.tsx +0 -0
- package/src/components/Camera/index.web.tsx +0 -0
- package/src/components/Camera/types.ts +0 -0
- package/src/components/ConfigurableKYCFlow.tsx +334 -0
- package/src/components/CustomCameraExample.tsx +274 -0
- package/src/components/EnhancedCameraView.tsx +421 -0
- package/src/components/EnhancedCameraView.web.tsx +517 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/CameraCapture.tsx +267 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/FileUpload.tsx +317 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
- package/src/components/KYCElements/IDCardCapture.tsx +519 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
- package/src/components/KYCElements/SelfieCapture.tsx +283 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCExample.tsx +297 -0
- package/src/components/KYCFlow.tsx +377 -0
- package/src/components/NativeCameraView.tsx +47 -0
- package/src/components/OverLay/IdCard.tsx +269 -0
- package/src/components/OverLay/SelfieOverlay.tsx +210 -0
- package/src/components/OverLay/StepOverlay.tsx +62 -0
- package/src/components/OverLay/type.ts +21 -0
- package/src/components/ProgressIndicator.tsx +62 -0
- package/src/components/SelfieCapture.tsx +244 -0
- package/src/components/SimpleExample.tsx +92 -0
- package/src/components/Svgs/GpsIcon.tsx +12 -0
- package/src/components/Svgs/Schield.tsx +26 -0
- package/src/components/Svgs/directionArrow.gif +0 -0
- package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
- package/src/components/Svgs/scanningLine.tsx +88 -0
- package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
- package/src/components/TemplateKYCExample.tsx +447 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
- package/src/components/VisionCameraView.tsx +197 -0
- package/src/components/example/CameraCaptureEx.tsx +335 -0
- package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
- package/src/components/example/CameraCaptureExScan.tsx +336 -0
- package/src/components/example/CameraCaptureExSimple.tsx +215 -0
- package/src/components/example/OrientationVideoExample.tsx +384 -0
- package/src/components/example/SelfieCaptureEx.tsx +358 -0
- package/src/components/ui/Button.tsx +328 -0
- package/src/components/ui/ButtonExample.tsx +318 -0
- package/src/components/ui/ButtonStyles.ts +465 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/hooks/useKYC.ts +131 -0
- package/src/hooks/useKYCFlow.ts +248 -0
- package/src/hooks/useLocation.ts +221 -0
- package/src/hooks/useOrientationVideo.ts +148 -0
- package/src/hooks/useTemplateKYCFlow.tsx +292 -0
- package/src/index.ts +72 -0
- package/src/modules/api/KYCService.ts +171 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +217 -0
- package/src/modules/camera/VisionCameraModule.web.ts +661 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +434 -0
- package/src/types/nativewind.d.ts +2 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { StyleSheet, View, Dimensions, Text, Animated, Image } from "react-native";
|
|
2
|
+
import { EnhancedCameraView } from "../EnhancedCameraView";
|
|
3
|
+
import Svg, { Rect, Path, Mask, Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
4
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
5
|
+
const SelfieCaptureEx = () => {
|
|
6
|
+
const { width: screenWidth, height: screenHeight } = Dimensions.get('window');
|
|
7
|
+
const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]
|
|
8
|
+
const [xMin, yMin, xMax, yMax] = bbox;
|
|
9
|
+
const boxWidth = xMax - xMin;
|
|
10
|
+
const boxHeight = yMax - yMin;
|
|
11
|
+
// Animations
|
|
12
|
+
// const instructionAnimation = useRef(new Animated.Value(0)).current;
|
|
13
|
+
const [cornerOpacity, setCornerOpacity] = useState(0.8);
|
|
14
|
+
const [scanLineX, setScanLineX] = useState({
|
|
15
|
+
val: yMin - (40 + 280),
|
|
16
|
+
direction: 'down'
|
|
17
|
+
});
|
|
18
|
+
const [imageUrl, setImageUrl] = useState(null);
|
|
19
|
+
const scanY = useRef(new Animated.Value(yMin)).current;
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
// Animation boucle : descend puis remonte
|
|
22
|
+
Animated.loop(Animated.sequence([
|
|
23
|
+
Animated.timing(scanY, {
|
|
24
|
+
toValue: yMax,
|
|
25
|
+
duration: 2000,
|
|
26
|
+
useNativeDriver: false,
|
|
27
|
+
}),
|
|
28
|
+
Animated.timing(scanY, {
|
|
29
|
+
toValue: yMin,
|
|
30
|
+
duration: 2000,
|
|
31
|
+
useNativeDriver: false,
|
|
32
|
+
}),
|
|
33
|
+
])).start();
|
|
34
|
+
}, [scanY, yMin, yMax]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
// Animation des coins avec setState
|
|
37
|
+
const cornerInterval = setInterval(() => {
|
|
38
|
+
setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);
|
|
39
|
+
}, 800);
|
|
40
|
+
const scanLineInterval = setInterval(() => {
|
|
41
|
+
setScanLineX(prev => {
|
|
42
|
+
const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal
|
|
43
|
+
if (prev.direction === "down") {
|
|
44
|
+
if (newX > yMax - (280 - 40)) {
|
|
45
|
+
return { val: yMax + (40), direction: 'up' };
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return { val: newX, direction: 'down' };
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
if (newX < yMin - (40)) {
|
|
53
|
+
return { val: yMin - (40 + 280), direction: 'down' };
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return { val: newX, direction: 'up' };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}, 2); // Fréquence de mise à jour
|
|
61
|
+
// Démarrer les animations
|
|
62
|
+
return () => {
|
|
63
|
+
clearInterval(cornerInterval);
|
|
64
|
+
clearInterval(scanLineInterval);
|
|
65
|
+
};
|
|
66
|
+
}, [yMin, yMax]);
|
|
67
|
+
if (imageUrl) {
|
|
68
|
+
return (<View style={{
|
|
69
|
+
flex: 1,
|
|
70
|
+
justifyContent: 'center',
|
|
71
|
+
alignItems: 'center',
|
|
72
|
+
}}>
|
|
73
|
+
|
|
74
|
+
<View style={{
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
}}>
|
|
78
|
+
<Image source={{ uri: imageUrl }} style={[styles.image,
|
|
79
|
+
{
|
|
80
|
+
width: boxWidth,
|
|
81
|
+
height: boxHeight,
|
|
82
|
+
marginLeft: -xMin,
|
|
83
|
+
marginTop: -yMin,
|
|
84
|
+
},
|
|
85
|
+
]}/>
|
|
86
|
+
</View>
|
|
87
|
+
|
|
88
|
+
</View>);
|
|
89
|
+
}
|
|
90
|
+
return (<EnhancedCameraView showCamera={true} showSwitchCamera={false} bbox={{
|
|
91
|
+
xMin: 150,
|
|
92
|
+
yMin: 210,
|
|
93
|
+
xMax: 350,
|
|
94
|
+
yMax: 410,
|
|
95
|
+
borderColor: "#2DBD60",
|
|
96
|
+
borderWidth: 3,
|
|
97
|
+
cornerRadius: 8
|
|
98
|
+
}} onCapture={(image) => {
|
|
99
|
+
setImageUrl(image.path ?? null);
|
|
100
|
+
}} overlayComponent={<View style={StyleSheet.absoluteFill}>
|
|
101
|
+
{/* <Animated.View
|
|
102
|
+
style={[
|
|
103
|
+
styles.topIntruction,
|
|
104
|
+
|
|
105
|
+
]}
|
|
106
|
+
>
|
|
107
|
+
<Text style={styles.topIntructionText}>
|
|
108
|
+
💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.
|
|
109
|
+
</Text>
|
|
110
|
+
</Animated.View> */}
|
|
111
|
+
|
|
112
|
+
<Svg height={screenHeight} width={screenWidth} style={styles.svg}>
|
|
113
|
+
<Defs>
|
|
114
|
+
<Mask id="cameraMask">
|
|
115
|
+
{/* Fond blanc - zone visible */}
|
|
116
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="white"/>
|
|
117
|
+
{/* Zone noire - zone masquée (transparente) */}
|
|
118
|
+
<Rect x={xMin} y={yMin} width={boxWidth} height={boxHeight} fill="black"/>
|
|
119
|
+
</Mask>
|
|
120
|
+
</Defs>
|
|
121
|
+
|
|
122
|
+
{/* Overlay semi-transparent avec masque */}
|
|
123
|
+
<Rect x="0" y="0" width={screenWidth} height={screenHeight} fill="rgba(0, 0, 0, 0.5)" mask="url(#cameraMask)"/>
|
|
124
|
+
|
|
125
|
+
{/* Coins de la zone de capture - arrondis avec animation */}
|
|
126
|
+
<Path d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
127
|
+
<Path d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
128
|
+
|
|
129
|
+
<Path d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
130
|
+
<Path d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
131
|
+
|
|
132
|
+
<Path d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
133
|
+
<Path d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
134
|
+
|
|
135
|
+
<Path d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`} stroke="#4CAF50" strokeWidth="8" fill="none" opacity={cornerOpacity}/>
|
|
136
|
+
<Path d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`} stroke="#4CAF50" strokeWidth="8" opacity={cornerOpacity}/>
|
|
137
|
+
|
|
138
|
+
<Defs>
|
|
139
|
+
<LinearGradient id="grad-rect" x1="0%" y1={scanLineX.direction === 'up' ? "100%" : "0%"} x2="0%" y2={scanLineX.direction === 'up' ? "0%" : "100%"}>
|
|
140
|
+
<Stop offset="70%" stopColor="#2DBD60" stopOpacity="0"/>
|
|
141
|
+
<Stop offset="85%" stopColor="#2DBD60" stopOpacity="0.1"/>
|
|
142
|
+
<Stop offset="88%" stopColor="#2DBD60" stopOpacity="0.15"/>
|
|
143
|
+
<Stop offset="90%" stopColor="#2DBD60" stopOpacity="0.2"/>
|
|
144
|
+
<Stop offset="100%" stopColor="#2DBD60" stopOpacity="1"/>
|
|
145
|
+
</LinearGradient>
|
|
146
|
+
</Defs>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<Rect x="0" y={scanLineX.val} width={screenWidth} height="280" rx="0" ry="0" fill="url(#grad-rect)"/>
|
|
150
|
+
</Svg>
|
|
151
|
+
|
|
152
|
+
<View style={styles.bottomIntruction}>
|
|
153
|
+
<Text style={styles.bottomTitle}>
|
|
154
|
+
Mesurez 100cm de hauteur.
|
|
155
|
+
</Text>
|
|
156
|
+
<Text style={styles.bottomSubtitle}>
|
|
157
|
+
Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.
|
|
158
|
+
</Text>
|
|
159
|
+
</View>
|
|
160
|
+
</View>}/>);
|
|
161
|
+
};
|
|
162
|
+
const styles = StyleSheet.create({
|
|
163
|
+
overlay: {
|
|
164
|
+
position: 'absolute',
|
|
165
|
+
top: 0,
|
|
166
|
+
left: 0,
|
|
167
|
+
width: '100%',
|
|
168
|
+
height: '50%',
|
|
169
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
170
|
+
},
|
|
171
|
+
svg: {
|
|
172
|
+
position: 'absolute',
|
|
173
|
+
top: 0,
|
|
174
|
+
left: 0,
|
|
175
|
+
width: '100%',
|
|
176
|
+
height: '100%',
|
|
177
|
+
},
|
|
178
|
+
topIntruction: {
|
|
179
|
+
zIndex: 1000,
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
alignItems: 'center',
|
|
182
|
+
justifyContent: 'center',
|
|
183
|
+
paddingVertical: 20,
|
|
184
|
+
paddingHorizontal: 10,
|
|
185
|
+
marginHorizontal: 20,
|
|
186
|
+
marginTop: 10,
|
|
187
|
+
backgroundColor: "#FDE04730",
|
|
188
|
+
borderColor: "#FDE047",
|
|
189
|
+
borderWidth: 1,
|
|
190
|
+
borderRadius: 10,
|
|
191
|
+
gap: 10,
|
|
192
|
+
},
|
|
193
|
+
topIntructionText: {
|
|
194
|
+
color: '#FDE047',
|
|
195
|
+
fontSize: 14,
|
|
196
|
+
fontWeight: 'bold',
|
|
197
|
+
textAlign: 'center',
|
|
198
|
+
},
|
|
199
|
+
bottomIntruction: {
|
|
200
|
+
position: 'absolute',
|
|
201
|
+
bottom: 0,
|
|
202
|
+
left: 0,
|
|
203
|
+
width: '100%',
|
|
204
|
+
height: '35%',
|
|
205
|
+
paddingHorizontal: 20,
|
|
206
|
+
},
|
|
207
|
+
bottomIntructionTextBold: {
|
|
208
|
+
color: 'white',
|
|
209
|
+
fontSize: 16,
|
|
210
|
+
fontWeight: 'bold',
|
|
211
|
+
textAlign: 'center',
|
|
212
|
+
},
|
|
213
|
+
bottomIntructionText: {
|
|
214
|
+
color: 'white',
|
|
215
|
+
fontSize: 14,
|
|
216
|
+
fontWeight: 'bold',
|
|
217
|
+
textAlign: 'center',
|
|
218
|
+
},
|
|
219
|
+
bottomTitle: {
|
|
220
|
+
color: 'white',
|
|
221
|
+
fontSize: 25,
|
|
222
|
+
fontWeight: 'bold',
|
|
223
|
+
textAlign: 'center',
|
|
224
|
+
},
|
|
225
|
+
bottomSubtitle: {
|
|
226
|
+
color: 'white',
|
|
227
|
+
marginTop: 15,
|
|
228
|
+
fontSize: 14,
|
|
229
|
+
fontWeight: '500',
|
|
230
|
+
textAlign: 'center',
|
|
231
|
+
},
|
|
232
|
+
image: {
|
|
233
|
+
position: 'absolute',
|
|
234
|
+
borderRadius: 10,
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
export default SelfieCaptureEx;
|
|
238
|
+
//# sourceMappingURL=SelfieCaptureEx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfieCaptureEx.js","sourceRoot":"","sources":["../../../src/components/example/SelfieCaptureEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,GAAG,EAAE,EAAG,IAAI,EAAE,IAAI,EAAE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,EAAE;QAClB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,WAAW,EAAE;QACT,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,QAAQ;KACtB;IAGD,KAAK,EAAE;QACH,QAAQ,EAAE,UAAU;QACpB,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC,CAAA;AAEF,eAAe,eAAe,CAAA","sourcesContent":["import { StyleSheet, View, Dimensions, Text, Animated, Image } from \"react-native\"\nimport { EnhancedCameraView } from \"../EnhancedCameraView\"\nimport Svg, { Rect, Path, Mask, Defs, LinearGradient, Stop } from 'react-native-svg';\nimport React, { useEffect, useRef, useState } from 'react';\n\nconst SelfieCaptureEx = () => {\n const { width: screenWidth, height: screenHeight } = Dimensions.get('window');\n\n\n const bbox = [20, 140, 370, 340]; // [xMin, yMin, xMax, yMax]\n const [xMin, yMin, xMax, yMax] = bbox;\n const boxWidth = xMax - xMin;\n const boxHeight = yMax - yMin;\n\n // Animations\n // const instructionAnimation = useRef(new Animated.Value(0)).current;\n\n const [cornerOpacity, setCornerOpacity] = useState(0.8);\n const [scanLineX, setScanLineX] = useState<{\n val: number,\n direction: 'up' | 'down'\n }>({\n val: yMin - (40 + 280),\n direction: 'down'\n });\n const [imageUrl, setImageUrl] = useState<string | null>(null);\n\n const scanY = useRef(new Animated.Value(yMin)).current;\n\n\n useEffect(() => {\n // Animation boucle : descend puis remonte\n Animated.loop(\n Animated.sequence([\n Animated.timing(scanY, {\n toValue: yMax,\n duration: 2000,\n useNativeDriver: false,\n }),\n Animated.timing(scanY, {\n toValue: yMin,\n duration: 2000,\n useNativeDriver: false,\n }),\n ])\n ).start();\n }, [scanY, yMin, yMax]);\n\n useEffect(() => {\n \n // Animation des coins avec setState\n const cornerInterval = setInterval(() => {\n setCornerOpacity(prev => prev === 0.8 ? 1 : 0.8);\n }, 800);\n\n\n const scanLineInterval = setInterval(() => {\n setScanLineX(prev => {\n\n const newX = prev.val + (prev.direction === 'up' ? -1 : 1) * Math.round(Math.random() * 2); // Vitesse de déplacement horizontal \n if (prev.direction === \"down\") {\n if (newX > yMax - (280 - 40)) {\n return { val: yMax + (40), direction: 'up' }\n } else {\n return { val: newX, direction: 'down' }\n }\n } else {\n if (newX < yMin - (40)) {\n return { val: yMin - (40 + 280), direction: 'down' }\n } else {\n return { val: newX, direction: 'up' }\n }\n }\n\n });\n }, 2); // Fréquence de mise à jour\n\n // Démarrer les animations\n\n return () => {\n clearInterval(cornerInterval);\n clearInterval(scanLineInterval);\n };\n }, [yMin, yMax]);\n\n if (imageUrl) {\n return (\n <View style={\n {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center', \n }\n }>\n\n <View style={\n { \n \n justifyContent: 'center',\n alignItems: 'center', \n }\n }>\n <Image\n source={{ uri: imageUrl }}\n style={[styles.image,\n {\n width: boxWidth,\n height: boxHeight,\n marginLeft: -xMin,\n marginTop: -yMin,\n \n },\n ]} />\n </View>\n\n </View>\n )\n }\n\n return (\n <EnhancedCameraView\n showCamera={true}\n showSwitchCamera={false}\n bbox={{\n xMin: 150,\n yMin: 210,\n xMax: 350,\n yMax: 410,\n borderColor: \"#2DBD60\",\n borderWidth: 3,\n cornerRadius: 8\n }}\n onCapture={(image) => {\n setImageUrl(image.path ?? null);\n }}\n overlayComponent={\n <View style={StyleSheet.absoluteFill}>\n {/* <Animated.View\n style={[\n styles.topIntruction,\n\n ]}\n >\n <Text style={styles.topIntructionText}>\n 💡 Alignez le code QR avec la zone de capture • déplacez la caméra pour ajuster la zone de capture • mesurez 100cm de hauteur.\n </Text>\n </Animated.View> */}\n\n <Svg\n height={screenHeight}\n width={screenWidth}\n style={styles.svg}\n >\n <Defs>\n <Mask id=\"cameraMask\">\n {/* Fond blanc - zone visible */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"white\"\n />\n {/* Zone noire - zone masquée (transparente) */}\n <Rect\n x={xMin}\n y={yMin}\n width={boxWidth}\n height={boxHeight}\n fill=\"black\"\n />\n </Mask>\n </Defs>\n\n {/* Overlay semi-transparent avec masque */}\n <Rect\n x=\"0\"\n y=\"0\"\n width={screenWidth}\n height={screenHeight}\n fill=\"rgba(0, 0, 0, 0.5)\"\n mask=\"url(#cameraMask)\"\n />\n\n {/* Coins de la zone de capture - arrondis avec animation */}\n <Path\n d={`M ${xMin + 15} ${yMin} Q ${xMin} ${yMin} ${xMin} ${yMin + 15} L ${xMin} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMin} L ${xMin + 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMin} Q ${xMax} ${yMin} ${xMax} ${yMin + 15} L ${xMax} ${yMin + 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMin} L ${xMax - 15} ${yMin}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMin + 15} ${yMax} Q ${xMin} ${yMax} ${xMin} ${yMax - 15} L ${xMin} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMin + 20} ${yMax} L ${xMin + 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Path\n d={`M ${xMax - 15} ${yMax} Q ${xMax} ${yMax} ${xMax} ${yMax - 15} L ${xMax} ${yMax - 20}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n fill=\"none\"\n opacity={cornerOpacity}\n />\n <Path\n d={`M ${xMax - 20} ${yMax} L ${xMax - 15} ${yMax}`}\n stroke=\"#4CAF50\"\n strokeWidth=\"8\"\n opacity={cornerOpacity}\n />\n\n <Defs>\n <LinearGradient id=\"grad-rect\" x1=\"0%\"\n y1={scanLineX.direction === 'up' ? \"100%\" : \"0%\"} x2=\"0%\"\n y2={scanLineX.direction === 'up' ? \"0%\" : \"100%\"}>\n <Stop offset=\"70%\" stopColor=\"#2DBD60\" stopOpacity=\"0\" />\n <Stop offset=\"85%\" stopColor=\"#2DBD60\" stopOpacity=\"0.1\" />\n <Stop offset=\"88%\" stopColor=\"#2DBD60\" stopOpacity=\"0.15\" />\n <Stop offset=\"90%\" stopColor=\"#2DBD60\" stopOpacity=\"0.2\" />\n <Stop offset=\"100%\" stopColor=\"#2DBD60\" stopOpacity=\"1\" />\n </LinearGradient>\n </Defs>\n\n\n <Rect x=\"0\"\n y={scanLineX.val}\n width={screenWidth}\n height=\"280\"\n rx=\"0\"\n ry=\"0\"\n fill=\"url(#grad-rect)\"\n\n />\n </Svg>\n\n <View style={styles.bottomIntruction}>\n <Text style={styles.bottomTitle}>\n Mesurez 100cm de hauteur.\n </Text>\n <Text style={styles.bottomSubtitle}>\n Ne pas déplacer la caméra pendant la capture. • Ne pas déplacer la caméra pendant la capture.\n </Text>\n </View>\n </View>\n }\n />\n )\n}\n\nconst styles = StyleSheet.create({\n overlay: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '50%',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n svg: {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n },\n topIntruction: {\n zIndex: 1000,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 20,\n paddingHorizontal: 10,\n marginHorizontal: 20,\n marginTop: 10,\n backgroundColor: \"#FDE04730\",\n borderColor: \"#FDE047\",\n borderWidth: 1,\n borderRadius: 10,\n gap: 10,\n },\n topIntructionText: {\n color: '#FDE047',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntruction: {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: '35%',\n paddingHorizontal: 20,\n },\n bottomIntructionTextBold: {\n color: 'white',\n fontSize: 16,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomIntructionText: {\n color: 'white',\n fontSize: 14,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomTitle: {\n color: 'white',\n fontSize: 25,\n fontWeight: 'bold',\n textAlign: 'center',\n },\n bottomSubtitle: {\n color: 'white',\n marginTop: 15,\n fontSize: 14,\n fontWeight: '500',\n textAlign: 'center',\n },\n\n \n image: {\n position: 'absolute',\n borderRadius: 10,\n },\n})\n\nexport default SelfieCaptureEx"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
title: string;
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success' | 'warning' | 'info' | "neutral";
|
|
7
|
+
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
iconPosition?: 'left' | 'right';
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
style?: ViewStyle;
|
|
13
|
+
textStyle?: TextStyle;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
rounded?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
18
|
+
export declare const PrimaryButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
19
|
+
export declare const SecondaryButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
20
|
+
export declare const OutlineButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
21
|
+
export declare const GhostButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
22
|
+
export declare const DangerButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
23
|
+
export declare const SuccessButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
24
|
+
export declare const WarningButton: React.FC<Omit<ButtonProps, 'variant'>>;
|
|
25
|
+
export declare const SmallButton: React.FC<Omit<ButtonProps, 'size'>>;
|
|
26
|
+
export declare const LargeButton: React.FC<Omit<ButtonProps, 'size'>>;
|
|
27
|
+
export declare const IconButton: React.FC<ButtonProps & {
|
|
28
|
+
iconName: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const BackButton: React.FC<Omit<ButtonProps, 'icon' | 'iconPosition' | 'onPress'> & {
|
|
31
|
+
onBack: () => void;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const NextButton: React.FC<Omit<ButtonProps, 'icon' | 'iconPosition'>>;
|
|
34
|
+
export declare const SubmitButton: React.FC<Omit<ButtonProps, 'variant' | 'icon' | 'iconPosition'>>;
|
|
35
|
+
export declare const CancelButton: React.FC<Omit<ButtonProps, 'variant' | 'icon' | 'iconPosition'>>;
|
|
36
|
+
export { buttonIcons } from './ButtonStyles';
|
|
37
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsC,SAAS,EAAE,SAAS,EAAqB,MAAM,cAAc,CAAC;AAG3G,UAAU,WAAW;IAEnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IAGpB,OAA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AAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAEhE,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAE3D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAE3D,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAEnE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAShH,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC,CAQ3E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,cAAc,CAAC,CAOzF,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,cAAc,CAAC,CAMzF,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator } from 'react-native';
|
|
3
|
+
// Configuration des variantes
|
|
4
|
+
const buttonVariants = {
|
|
5
|
+
primary: {
|
|
6
|
+
backgroundColor: '#2DBD60',
|
|
7
|
+
borderColor: '#2DBD60',
|
|
8
|
+
textColor: '#FFFFFF',
|
|
9
|
+
disabledBackground: '#E5E5E5',
|
|
10
|
+
disabledText: '#999999',
|
|
11
|
+
},
|
|
12
|
+
secondary: {
|
|
13
|
+
backgroundColor: '#F8F9FA',
|
|
14
|
+
borderColor: '#E9ECEF',
|
|
15
|
+
textColor: '#495057',
|
|
16
|
+
disabledBackground: '#F8F9FA',
|
|
17
|
+
disabledText: '#ADB5BD',
|
|
18
|
+
},
|
|
19
|
+
outline: {
|
|
20
|
+
backgroundColor: 'transparent',
|
|
21
|
+
borderColor: '#2DBD60',
|
|
22
|
+
textColor: '#2DBD60',
|
|
23
|
+
disabledBackground: 'transparent',
|
|
24
|
+
disabledText: '#ADB5BD',
|
|
25
|
+
},
|
|
26
|
+
ghost: {
|
|
27
|
+
backgroundColor: 'transparent',
|
|
28
|
+
borderColor: 'transparent',
|
|
29
|
+
textColor: '#2DBD60',
|
|
30
|
+
disabledBackground: 'transparent',
|
|
31
|
+
disabledText: '#ADB5BD',
|
|
32
|
+
},
|
|
33
|
+
danger: {
|
|
34
|
+
backgroundColor: '#DC3545',
|
|
35
|
+
borderColor: '#DC3545',
|
|
36
|
+
textColor: '#FFFFFF',
|
|
37
|
+
disabledBackground: '#E5E5E5',
|
|
38
|
+
disabledText: '#999999',
|
|
39
|
+
},
|
|
40
|
+
success: {
|
|
41
|
+
backgroundColor: '#28A745',
|
|
42
|
+
borderColor: '#28A745',
|
|
43
|
+
textColor: '#FFFFFF',
|
|
44
|
+
disabledBackground: '#E5E5E5',
|
|
45
|
+
disabledText: '#999999',
|
|
46
|
+
},
|
|
47
|
+
info: {
|
|
48
|
+
backgroundColor: '#17A2B8',
|
|
49
|
+
borderColor: '#17A2B8',
|
|
50
|
+
textColor: '#FFFFFF',
|
|
51
|
+
disabledBackground: '#E5E5E5',
|
|
52
|
+
disabledText: '#999999',
|
|
53
|
+
},
|
|
54
|
+
warning: {
|
|
55
|
+
backgroundColor: '#FFC107',
|
|
56
|
+
borderColor: '#FFC107',
|
|
57
|
+
textColor: '#212529',
|
|
58
|
+
disabledBackground: '#E5E5E5',
|
|
59
|
+
disabledText: '#999999',
|
|
60
|
+
},
|
|
61
|
+
neutral: {
|
|
62
|
+
backgroundColor: '#6c757d',
|
|
63
|
+
borderColor: '#6c757d',
|
|
64
|
+
textColor: '#FFFFFF',
|
|
65
|
+
disabledBackground: '#E5E5E5',
|
|
66
|
+
disabledText: '#999999',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
// Configuration des tailles
|
|
70
|
+
const buttonSizes = {
|
|
71
|
+
small: {
|
|
72
|
+
paddingVertical: 8,
|
|
73
|
+
paddingHorizontal: 16,
|
|
74
|
+
fontSize: 14,
|
|
75
|
+
borderRadius: 6,
|
|
76
|
+
iconSize: 16,
|
|
77
|
+
},
|
|
78
|
+
medium: {
|
|
79
|
+
paddingVertical: 12,
|
|
80
|
+
paddingHorizontal: 24,
|
|
81
|
+
fontSize: 16,
|
|
82
|
+
borderRadius: 8,
|
|
83
|
+
iconSize: 20,
|
|
84
|
+
},
|
|
85
|
+
large: {
|
|
86
|
+
paddingVertical: 16,
|
|
87
|
+
paddingHorizontal: 32,
|
|
88
|
+
fontSize: 18,
|
|
89
|
+
borderRadius: 12,
|
|
90
|
+
iconSize: 24,
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
export const Button = ({ title, onPress, variant = 'primary', size = 'medium', icon, iconPosition = 'left', disabled = false, loading = false, style, textStyle, fullWidth = false, rounded = false, }) => {
|
|
94
|
+
// Obtenir la configuration de la variante
|
|
95
|
+
const variantConfig = buttonVariants[variant];
|
|
96
|
+
const sizeConfig = buttonSizes[size];
|
|
97
|
+
// Déterminer les styles dynamiques
|
|
98
|
+
const dynamicStyles = {
|
|
99
|
+
backgroundColor: disabled ? variantConfig.disabledBackground : variantConfig.backgroundColor,
|
|
100
|
+
borderColor: variantConfig.borderColor,
|
|
101
|
+
paddingVertical: sizeConfig.paddingVertical,
|
|
102
|
+
paddingHorizontal: sizeConfig.paddingHorizontal,
|
|
103
|
+
borderRadius: rounded ? 50 : sizeConfig.borderRadius,
|
|
104
|
+
width: fullWidth ? '100%' : 'auto',
|
|
105
|
+
borderWidth: variant === 'outline' ? 2 : 0,
|
|
106
|
+
};
|
|
107
|
+
const dynamicTextStyles = {
|
|
108
|
+
color: disabled ? variantConfig.disabledText : variantConfig.textColor,
|
|
109
|
+
fontSize: sizeConfig.fontSize,
|
|
110
|
+
fontWeight: '600',
|
|
111
|
+
};
|
|
112
|
+
// Rendu de l'icône
|
|
113
|
+
const renderIcon = () => {
|
|
114
|
+
if (!icon || loading)
|
|
115
|
+
return null;
|
|
116
|
+
return (<Text style={[styles.icon, { fontSize: sizeConfig.iconSize }]}>
|
|
117
|
+
{icon}
|
|
118
|
+
</Text>);
|
|
119
|
+
};
|
|
120
|
+
// Rendu du contenu
|
|
121
|
+
const renderContent = () => {
|
|
122
|
+
if (loading) {
|
|
123
|
+
return (<>
|
|
124
|
+
<ActivityIndicator size="small" color={variantConfig.textColor} style={styles.loadingSpinner}/>
|
|
125
|
+
<Text style={[styles.text, dynamicTextStyles, textStyle]}>
|
|
126
|
+
Chargement...
|
|
127
|
+
</Text>
|
|
128
|
+
</>);
|
|
129
|
+
}
|
|
130
|
+
if (iconPosition === 'right') {
|
|
131
|
+
return (<>
|
|
132
|
+
<Text style={[styles.text, dynamicTextStyles, textStyle]}>
|
|
133
|
+
{title}
|
|
134
|
+
</Text>
|
|
135
|
+
{renderIcon()}
|
|
136
|
+
</>);
|
|
137
|
+
}
|
|
138
|
+
return (<>
|
|
139
|
+
{renderIcon()}
|
|
140
|
+
<Text style={[styles.text, dynamicTextStyles, textStyle]}>
|
|
141
|
+
{title}
|
|
142
|
+
</Text>
|
|
143
|
+
</>);
|
|
144
|
+
};
|
|
145
|
+
return (<TouchableOpacity style={[styles.button, dynamicStyles, style]} onPress={onPress} disabled={disabled || loading} activeOpacity={0.8}>
|
|
146
|
+
{renderContent()}
|
|
147
|
+
</TouchableOpacity>);
|
|
148
|
+
};
|
|
149
|
+
const styles = StyleSheet.create({
|
|
150
|
+
button: {
|
|
151
|
+
flexDirection: 'row',
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
minHeight: 44,
|
|
155
|
+
shadowColor: '#000',
|
|
156
|
+
shadowOffset: {
|
|
157
|
+
width: 0,
|
|
158
|
+
height: 2,
|
|
159
|
+
},
|
|
160
|
+
shadowOpacity: 0.1,
|
|
161
|
+
shadowRadius: 3.84,
|
|
162
|
+
elevation: 5,
|
|
163
|
+
},
|
|
164
|
+
text: {
|
|
165
|
+
fontWeight: '600',
|
|
166
|
+
textAlign: 'center',
|
|
167
|
+
},
|
|
168
|
+
icon: {
|
|
169
|
+
marginHorizontal: 8,
|
|
170
|
+
},
|
|
171
|
+
loadingSpinner: {
|
|
172
|
+
marginRight: 8,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
// Composants prédéfinis pour des cas d'usage courants
|
|
176
|
+
export const PrimaryButton = (props) => (<Button variant="primary" {...props}/>);
|
|
177
|
+
export const SecondaryButton = (props) => (<Button variant="secondary" {...props}/>);
|
|
178
|
+
export const OutlineButton = (props) => (<Button variant="outline" {...props}/>);
|
|
179
|
+
export const GhostButton = (props) => (<Button variant="ghost" {...props}/>);
|
|
180
|
+
export const DangerButton = (props) => (<Button variant="danger" {...props}/>);
|
|
181
|
+
export const SuccessButton = (props) => (<Button variant="success" {...props}/>);
|
|
182
|
+
export const WarningButton = (props) => (<Button variant="warning" {...props}/>);
|
|
183
|
+
// Composants de taille prédéfinie
|
|
184
|
+
export const SmallButton = (props) => (<Button size="small" {...props}/>);
|
|
185
|
+
export const LargeButton = (props) => (<Button size="large" {...props}/>);
|
|
186
|
+
// Composants avec icônes prédéfinies
|
|
187
|
+
export const IconButton = ({ iconName, ...props }) => (<Button icon={iconName} {...props}/>);
|
|
188
|
+
export const BackButton = ({ onBack, ...props }) => (<Button icon="←" iconPosition="left" onPress={onBack} variant="ghost" size="medium" {...props}/>);
|
|
189
|
+
export const NextButton = (props) => (<Button icon="→" iconPosition="right" variant="primary" size="medium" {...props}/>);
|
|
190
|
+
export const SubmitButton = (props) => (<Button variant="primary" size="large" fullWidth {...props}/>);
|
|
191
|
+
export const CancelButton = (props) => (<Button variant="secondary" size="medium" {...props}/>);
|
|
192
|
+
// Export des icônes depuis ButtonStyles
|
|
193
|
+
export { buttonIcons } from './ButtonStyles';
|
|
194
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/ui/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,UAAU,EAAwB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA6B3G,8BAA8B;AAC9B,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE;QACP,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,SAAS;QAC7B,YAAY,EAAE,SAAS;KACxB;IACD,SAAS,EAAE;QACT,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,SAAS;QAC7B,YAAY,EAAE,SAAS;KACxB;IACD,OAAO,EAAE;QACP,eAAe,EAAE,aAAa;QAC9B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,aAAa;QACjC,YAAY,EAAE,SAAS;KACxB;IACD,KAAK,EAAE;QACL,eAAe,EAAE,aAAa;QAC9B,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,aAAa;QACjC,YAAY,EAAE,SAAS;KACxB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,SAAS;QAC1B,WAAW,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MAAM,CACL,IAAI,CAAC,GAAG,CACR,YAAY,CAAC,MAAM,CACnB,OAAO,CAAC,CAAC,MAAM,CAAC,CAChB,OAAO,CAAC,OAAO,CACf,IAAI,CAAC,QAAQ,CACb,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAyD,CAAC,KAAK,EAAE,EAAE,CAAC,CACzF,CAAC,MAAM,CACL,IAAI,CAAC,GAAG,CACR,YAAY,CAAC,OAAO,CACpB,OAAO,CAAC,SAAS,CACjB,IAAI,CAAC,QAAQ,CACb,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAqE,CAAC,KAAK,EAAE,EAAE,CAAC,CACvG,CAAC,MAAM,CACL,OAAO,CAAC,SAAS,CACjB,IAAI,CAAC,OAAO,CACZ,SAAS,CACT,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAqE,CAAC,KAAK,EAAE,EAAE,CAAC,CACvG,CAAC,MAAM,CACL,OAAO,CAAC,WAAW,CACnB,IAAI,CAAC,QAAQ,CACb,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF,wCAAwC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["import React from 'react';\nimport { TouchableOpacity, Text, StyleSheet, ViewStyle, TextStyle, ActivityIndicator } from 'react-native';\n\n// Types pour les props du bouton\ninterface ButtonProps {\n // Contenu\n title: string;\n onPress: () => void;\n \n // Variantes\n variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success' | 'warning' | 'info' | \"neutral\";\n size?: 'small' | 'medium' | 'large';\n \n // Icône\n icon?: React.ReactNode;\n iconPosition?: 'left' | 'right';\n \n // État\n disabled?: boolean;\n loading?: boolean;\n \n // Style personnalisé\n style?: ViewStyle;\n textStyle?: TextStyle;\n \n // Autres props\n fullWidth?: boolean;\n rounded?: boolean;\n}\n\n// Configuration des variantes\nconst buttonVariants = {\n primary: {\n backgroundColor: '#2DBD60',\n borderColor: '#2DBD60',\n textColor: '#FFFFFF',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n secondary: {\n backgroundColor: '#F8F9FA',\n borderColor: '#E9ECEF',\n textColor: '#495057',\n disabledBackground: '#F8F9FA',\n disabledText: '#ADB5BD',\n },\n outline: {\n backgroundColor: 'transparent',\n borderColor: '#2DBD60',\n textColor: '#2DBD60',\n disabledBackground: 'transparent',\n disabledText: '#ADB5BD',\n },\n ghost: {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n textColor: '#2DBD60',\n disabledBackground: 'transparent',\n disabledText: '#ADB5BD',\n },\n danger: {\n backgroundColor: '#DC3545',\n borderColor: '#DC3545',\n textColor: '#FFFFFF',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n success: {\n backgroundColor: '#28A745',\n borderColor: '#28A745',\n textColor: '#FFFFFF',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n info: {\n backgroundColor: '#17A2B8',\n borderColor: '#17A2B8',\n textColor: '#FFFFFF',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n warning: {\n backgroundColor: '#FFC107',\n borderColor: '#FFC107',\n textColor: '#212529',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n neutral: {\n backgroundColor: '#6c757d',\n borderColor: '#6c757d',\n textColor: '#FFFFFF',\n disabledBackground: '#E5E5E5',\n disabledText: '#999999',\n },\n};\n\n// Configuration des tailles\nconst buttonSizes = {\n small: {\n paddingVertical: 8,\n paddingHorizontal: 16,\n fontSize: 14,\n borderRadius: 6,\n iconSize: 16,\n },\n medium: {\n paddingVertical: 12,\n paddingHorizontal: 24,\n fontSize: 16,\n borderRadius: 8,\n iconSize: 20,\n },\n large: {\n paddingVertical: 16,\n paddingHorizontal: 32,\n fontSize: 18,\n borderRadius: 12,\n iconSize: 24,\n },\n};\n\nexport const Button: React.FC<ButtonProps> = ({\n title,\n onPress,\n variant = 'primary',\n size = 'medium',\n icon,\n iconPosition = 'left',\n disabled = false,\n loading = false,\n style,\n textStyle,\n fullWidth = false,\n rounded = false,\n}) => {\n // Obtenir la configuration de la variante\n const variantConfig = buttonVariants[variant];\n const sizeConfig = buttonSizes[size];\n \n // Déterminer les styles dynamiques\n const dynamicStyles: ViewStyle = {\n backgroundColor: disabled ? variantConfig.disabledBackground : variantConfig.backgroundColor,\n borderColor: variantConfig.borderColor,\n paddingVertical: sizeConfig.paddingVertical,\n paddingHorizontal: sizeConfig.paddingHorizontal,\n borderRadius: rounded ? 50 : sizeConfig.borderRadius,\n width: fullWidth ? '100%' : 'auto',\n borderWidth: variant === 'outline' ? 2 : 0,\n };\n\n const dynamicTextStyles: TextStyle = {\n color: disabled ? variantConfig.disabledText : variantConfig.textColor,\n fontSize: sizeConfig.fontSize,\n fontWeight: '600',\n };\n\n // Rendu de l'icône\n const renderIcon = () => {\n if (!icon || loading) return null;\n \n return (\n <Text style={[styles.icon, { fontSize: sizeConfig.iconSize }]}>\n {icon}\n </Text>\n );\n };\n\n // Rendu du contenu\n const renderContent = () => {\n if (loading) {\n return (\n <>\n <ActivityIndicator \n size=\"small\" \n color={variantConfig.textColor} \n style={styles.loadingSpinner}\n />\n <Text style={[styles.text, dynamicTextStyles, textStyle]}>\n Chargement...\n </Text>\n </>\n );\n }\n\n if (iconPosition === 'right') {\n return (\n <>\n <Text style={[styles.text, dynamicTextStyles, textStyle]}>\n {title}\n </Text>\n {renderIcon()}\n </>\n );\n }\n\n return (\n <>\n {renderIcon()}\n <Text style={[styles.text, dynamicTextStyles, textStyle]}>\n {title}\n </Text>\n </>\n );\n };\n\n return (\n <TouchableOpacity\n style={[styles.button, dynamicStyles, style]}\n onPress={onPress}\n disabled={disabled || loading}\n activeOpacity={0.8}\n >\n {renderContent()}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n button: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n minHeight: 44,\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: 2,\n },\n shadowOpacity: 0.1,\n shadowRadius: 3.84,\n elevation: 5,\n },\n text: {\n fontWeight: '600',\n textAlign: 'center',\n },\n icon: {\n marginHorizontal: 8,\n },\n loadingSpinner: {\n marginRight: 8,\n },\n});\n\n// Composants prédéfinis pour des cas d'usage courants\nexport const PrimaryButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"primary\" {...props} />\n);\n\nexport const SecondaryButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"secondary\" {...props} />\n);\n\nexport const OutlineButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"outline\" {...props} />\n);\n\nexport const GhostButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"ghost\" {...props} />\n);\n\nexport const DangerButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"danger\" {...props} />\n);\n\nexport const SuccessButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"success\" {...props} />\n);\n\nexport const WarningButton: React.FC<Omit<ButtonProps, 'variant'>> = (props) => (\n <Button variant=\"warning\" {...props} />\n);\n\n// Composants de taille prédéfinie\nexport const SmallButton: React.FC<Omit<ButtonProps, 'size'>> = (props) => (\n <Button size=\"small\" {...props} />\n);\n\nexport const LargeButton: React.FC<Omit<ButtonProps, 'size'>> = (props) => (\n <Button size=\"large\" {...props} />\n);\n\n// Composants avec icônes prédéfinies\nexport const IconButton: React.FC<ButtonProps & { iconName: string }> = ({ iconName, ...props }) => (\n <Button icon={iconName} {...props} />\n);\n\nexport const BackButton: React.FC<Omit<ButtonProps, 'icon' | 'iconPosition' | 'onPress'> & { onBack: () => void }> = ({ onBack, ...props }) => (\n <Button \n icon=\"←\" \n iconPosition=\"left\" \n onPress={onBack} \n variant=\"ghost\"\n size=\"medium\"\n {...props} \n />\n);\n\nexport const NextButton: React.FC<Omit<ButtonProps, 'icon' | 'iconPosition'>> = (props) => (\n <Button \n icon=\"→\" \n iconPosition=\"right\" \n variant=\"primary\"\n size=\"medium\"\n {...props} \n />\n);\n\nexport const SubmitButton: React.FC<Omit<ButtonProps, 'variant' | 'icon' | 'iconPosition'>> = (props) => (\n <Button \n variant=\"primary\"\n size=\"large\"\n fullWidth\n {...props} \n />\n);\n\nexport const CancelButton: React.FC<Omit<ButtonProps, 'variant' | 'icon' | 'iconPosition'>> = (props) => (\n <Button \n variant=\"secondary\"\n size=\"medium\"\n {...props} \n />\n);\n\n// Export des icônes depuis ButtonStyles\nexport { buttonIcons } from './ButtonStyles'; "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonExample.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ButtonExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAkP1B,CAAC;AAoEF,eAAe,aAAa,CAAC"}
|