@sanctum-key/react-native-sdk 1.0.0

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.
Files changed (708) hide show
  1. package/README.md +278 -0
  2. package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/results.bin +1 -0
  3. package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
  5. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +69 -0
  6. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  7. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  8. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  9. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  10. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  11. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
  12. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
  13. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  14. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  15. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  16. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  17. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  18. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
  19. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
  20. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
  21. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +110 -0
  22. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +69 -0
  23. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  24. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  25. package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
  26. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  27. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
  28. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  29. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  30. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  31. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  32. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  33. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  34. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  35. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  36. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  37. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  38. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  39. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  40. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  41. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  42. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  43. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  44. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  45. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  46. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  47. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  48. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  109. package/android/build/outputs/logs/manifest-merger-debug-report.txt +101 -0
  110. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  111. package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-react-native-sdk_debug.kotlin_module +0 -0
  112. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
  113. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
  114. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
  115. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
  116. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
  117. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
  118. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
  119. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
  120. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
  121. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
  122. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
  123. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
  129. package/android/build.gradle +43 -0
  130. package/android/src/main/AndroidManifest.xml +49 -0
  131. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
  132. package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
  133. package/android/src/main/res/xml/file_paths.xml +15 -0
  134. package/build/App.d.ts +3 -0
  135. package/build/App.d.ts.map +1 -0
  136. package/build/App.js +9 -0
  137. package/build/App.js.map +1 -0
  138. package/build/TransfergratisSdk.types.d.ts +32 -0
  139. package/build/TransfergratisSdk.types.d.ts.map +1 -0
  140. package/build/TransfergratisSdk.types.js +2 -0
  141. package/build/TransfergratisSdk.types.js.map +1 -0
  142. package/build/TransfergratisSdkModule.d.ts +21 -0
  143. package/build/TransfergratisSdkModule.d.ts.map +1 -0
  144. package/build/TransfergratisSdkModule.js +4 -0
  145. package/build/TransfergratisSdkModule.js.map +1 -0
  146. package/build/TransfergratisSdkModule.web.d.ts +20 -0
  147. package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
  148. package/build/TransfergratisSdkModule.web.js +25 -0
  149. package/build/TransfergratisSdkModule.web.js.map +1 -0
  150. package/build/TransfergratisSdkView.d.ts +4 -0
  151. package/build/TransfergratisSdkView.d.ts.map +1 -0
  152. package/build/TransfergratisSdkView.js +7 -0
  153. package/build/TransfergratisSdkView.js.map +1 -0
  154. package/build/TransfergratisSdkView.web.d.ts +4 -0
  155. package/build/TransfergratisSdkView.web.d.ts.map +1 -0
  156. package/build/TransfergratisSdkView.web.js +11 -0
  157. package/build/TransfergratisSdkView.web.js.map +1 -0
  158. package/build/api/axios.d.ts +30 -0
  159. package/build/api/axios.d.ts.map +1 -0
  160. package/build/api/axios.js +92 -0
  161. package/build/api/axios.js.map +1 -0
  162. package/build/components/Camera/index.d.ts +2 -0
  163. package/build/components/Camera/index.d.ts.map +1 -0
  164. package/build/components/Camera/index.js +2 -0
  165. package/build/components/Camera/index.js.map +1 -0
  166. package/build/components/Camera/index.web.d.ts +2 -0
  167. package/build/components/Camera/index.web.d.ts.map +1 -0
  168. package/build/components/Camera/index.web.js +2 -0
  169. package/build/components/Camera/index.web.js.map +1 -0
  170. package/build/components/Camera/types.d.ts +2 -0
  171. package/build/components/Camera/types.d.ts.map +1 -0
  172. package/build/components/Camera/types.js +2 -0
  173. package/build/components/Camera/types.js.map +1 -0
  174. package/build/components/ConfigurableKYCFlow.d.ts +11 -0
  175. package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
  176. package/build/components/ConfigurableKYCFlow.js +257 -0
  177. package/build/components/ConfigurableKYCFlow.js.map +1 -0
  178. package/build/components/CustomCameraExample.d.ts +10 -0
  179. package/build/components/CustomCameraExample.d.ts.map +1 -0
  180. package/build/components/CustomCameraExample.js +232 -0
  181. package/build/components/CustomCameraExample.js.map +1 -0
  182. package/build/components/EnhancedCameraView.d.ts +4 -0
  183. package/build/components/EnhancedCameraView.d.ts.map +1 -0
  184. package/build/components/EnhancedCameraView.js +393 -0
  185. package/build/components/EnhancedCameraView.js.map +1 -0
  186. package/build/components/EnhancedCameraView.web.d.ts +4 -0
  187. package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
  188. package/build/components/EnhancedCameraView.web.js +499 -0
  189. package/build/components/EnhancedCameraView.web.js.map +1 -0
  190. package/build/components/FileUpload.d.ts +13 -0
  191. package/build/components/FileUpload.d.ts.map +1 -0
  192. package/build/components/FileUpload.js +216 -0
  193. package/build/components/FileUpload.js.map +1 -0
  194. package/build/components/KYCElementRenderer.d.ts +14 -0
  195. package/build/components/KYCElementRenderer.d.ts.map +1 -0
  196. package/build/components/KYCElementRenderer.js +31 -0
  197. package/build/components/KYCElementRenderer.js.map +1 -0
  198. package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts +12 -0
  199. package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +1 -0
  200. package/build/components/KYCElements/AdditionalDocumentsTemplate.js +283 -0
  201. package/build/components/KYCElements/AdditionalDocumentsTemplate.js.map +1 -0
  202. package/build/components/KYCElements/CameraCapture.d.ts +11 -0
  203. package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
  204. package/build/components/KYCElements/CameraCapture.js +219 -0
  205. package/build/components/KYCElements/CameraCapture.js.map +1 -0
  206. package/build/components/KYCElements/CompletionStep.d.ts +10 -0
  207. package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
  208. package/build/components/KYCElements/CompletionStep.js +147 -0
  209. package/build/components/KYCElements/CompletionStep.js.map +1 -0
  210. package/build/components/KYCElements/CountrySelection.d.ts +11 -0
  211. package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
  212. package/build/components/KYCElements/CountrySelection.js +147 -0
  213. package/build/components/KYCElements/CountrySelection.js.map +1 -0
  214. package/build/components/KYCElements/CountrySelectionTemplate.d.ts +15 -0
  215. package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
  216. package/build/components/KYCElements/CountrySelectionTemplate.js +438 -0
  217. package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
  218. package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
  219. package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
  220. package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
  221. package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
  222. package/build/components/KYCElements/EmailVerificationTemplate.d.ts +12 -0
  223. package/build/components/KYCElements/EmailVerificationTemplate.d.ts.map +1 -0
  224. package/build/components/KYCElements/EmailVerificationTemplate.js +212 -0
  225. package/build/components/KYCElements/EmailVerificationTemplate.js.map +1 -0
  226. package/build/components/KYCElements/FileUpload.d.ts +11 -0
  227. package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
  228. package/build/components/KYCElements/FileUpload.js +268 -0
  229. package/build/components/KYCElements/FileUpload.js.map +1 -0
  230. package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
  231. package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
  232. package/build/components/KYCElements/FileUploadTemplate.js +331 -0
  233. package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
  234. package/build/components/KYCElements/IDCardCapture.d.ts +19 -0
  235. package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
  236. package/build/components/KYCElements/IDCardCapture.js +877 -0
  237. package/build/components/KYCElements/IDCardCapture.js.map +1 -0
  238. package/build/components/KYCElements/InitializationStep.d.ts +5 -0
  239. package/build/components/KYCElements/InitializationStep.d.ts.map +1 -0
  240. package/build/components/KYCElements/InitializationStep.js +41 -0
  241. package/build/components/KYCElements/InitializationStep.js.map +1 -0
  242. package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
  243. package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
  244. package/build/components/KYCElements/LocationCaptureTemplate.js +318 -0
  245. package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
  246. package/build/components/KYCElements/OrientationVideoCapture.d.ts +14 -0
  247. package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
  248. package/build/components/KYCElements/OrientationVideoCapture.js +534 -0
  249. package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
  250. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +14 -0
  251. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
  252. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +504 -0
  253. package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
  254. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +14 -0
  255. package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
  256. package/build/components/KYCElements/OrientationVideoCaptureFinal.js +430 -0
  257. package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
  258. package/build/components/KYCElements/PersonalInformationTemplate.d.ts +12 -0
  259. package/build/components/KYCElements/PersonalInformationTemplate.d.ts.map +1 -0
  260. package/build/components/KYCElements/PersonalInformationTemplate.js +120 -0
  261. package/build/components/KYCElements/PersonalInformationTemplate.js.map +1 -0
  262. package/build/components/KYCElements/PhoneVerificationTemplate.d.ts +12 -0
  263. package/build/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -0
  264. package/build/components/KYCElements/PhoneVerificationTemplate.js +185 -0
  265. package/build/components/KYCElements/PhoneVerificationTemplate.js.map +1 -0
  266. package/build/components/KYCElements/ReviewSubmitTemplate.d.ts +12 -0
  267. package/build/components/KYCElements/ReviewSubmitTemplate.d.ts.map +1 -0
  268. package/build/components/KYCElements/ReviewSubmitTemplate.js +171 -0
  269. package/build/components/KYCElements/ReviewSubmitTemplate.js.map +1 -0
  270. package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
  271. package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
  272. package/build/components/KYCElements/SelfieCapture.js +236 -0
  273. package/build/components/KYCElements/SelfieCapture.js.map +1 -0
  274. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +16 -0
  275. package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
  276. package/build/components/KYCElements/SelfieCaptureTemplate.js +568 -0
  277. package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
  278. package/build/components/KYCElements/VerificationProgressTemplate.d.ts +12 -0
  279. package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -0
  280. package/build/components/KYCElements/VerificationProgressTemplate.js +195 -0
  281. package/build/components/KYCElements/VerificationProgressTemplate.js.map +1 -0
  282. package/build/components/KYCElements/VerificationStep.d.ts +10 -0
  283. package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
  284. package/build/components/KYCElements/VerificationStep.js +199 -0
  285. package/build/components/KYCElements/VerificationStep.js.map +1 -0
  286. package/build/components/KYCElements/WelcomeTemplate.d.ts +12 -0
  287. package/build/components/KYCElements/WelcomeTemplate.d.ts.map +1 -0
  288. package/build/components/KYCElements/WelcomeTemplate.js +244 -0
  289. package/build/components/KYCElements/WelcomeTemplate.js.map +1 -0
  290. package/build/components/KYCExample.d.ts +3 -0
  291. package/build/components/KYCExample.d.ts.map +1 -0
  292. package/build/components/KYCExample.js +247 -0
  293. package/build/components/KYCExample.js.map +1 -0
  294. package/build/components/KYCFlow.d.ts +3 -0
  295. package/build/components/KYCFlow.d.ts.map +1 -0
  296. package/build/components/KYCFlow.js +308 -0
  297. package/build/components/KYCFlow.js.map +1 -0
  298. package/build/components/NativeCameraView.d.ts +11 -0
  299. package/build/components/NativeCameraView.d.ts.map +1 -0
  300. package/build/components/NativeCameraView.js +27 -0
  301. package/build/components/NativeCameraView.js.map +1 -0
  302. package/build/components/OverLay/IdCard.d.ts +4 -0
  303. package/build/components/OverLay/IdCard.d.ts.map +1 -0
  304. package/build/components/OverLay/IdCard.js +185 -0
  305. package/build/components/OverLay/IdCard.js.map +1 -0
  306. package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
  307. package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
  308. package/build/components/OverLay/SelfieOverlay.js +169 -0
  309. package/build/components/OverLay/SelfieOverlay.js.map +1 -0
  310. package/build/components/OverLay/StepOverlay.d.ts +9 -0
  311. package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
  312. package/build/components/OverLay/StepOverlay.js +53 -0
  313. package/build/components/OverLay/StepOverlay.js.map +1 -0
  314. package/build/components/OverLay/type.d.ts +98 -0
  315. package/build/components/OverLay/type.d.ts.map +1 -0
  316. package/build/components/OverLay/type.js +2 -0
  317. package/build/components/OverLay/type.js.map +1 -0
  318. package/build/components/ProgressIndicator.d.ts +8 -0
  319. package/build/components/ProgressIndicator.d.ts.map +1 -0
  320. package/build/components/ProgressIndicator.js +48 -0
  321. package/build/components/ProgressIndicator.js.map +1 -0
  322. package/build/components/SelfieCapture.d.ts +3 -0
  323. package/build/components/SelfieCapture.d.ts.map +1 -0
  324. package/build/components/SelfieCapture.js +197 -0
  325. package/build/components/SelfieCapture.js.map +1 -0
  326. package/build/components/SimpleExample.d.ts +3 -0
  327. package/build/components/SimpleExample.d.ts.map +1 -0
  328. package/build/components/SimpleExample.js +89 -0
  329. package/build/components/SimpleExample.js.map +1 -0
  330. package/build/components/Svgs/GpsIcon.d.ts +3 -0
  331. package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
  332. package/build/components/Svgs/GpsIcon.js +9 -0
  333. package/build/components/Svgs/GpsIcon.js.map +1 -0
  334. package/build/components/Svgs/Schield.d.ts +3 -0
  335. package/build/components/Svgs/Schield.d.ts.map +1 -0
  336. package/build/components/Svgs/Schield.js +22 -0
  337. package/build/components/Svgs/Schield.js.map +1 -0
  338. package/build/components/Svgs/directionArrow.gif +0 -0
  339. package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
  340. package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
  341. package/build/components/Svgs/frontSelfieIcon.js +11 -0
  342. package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
  343. package/build/components/Svgs/scanningLine.d.ts +9 -0
  344. package/build/components/Svgs/scanningLine.d.ts.map +1 -0
  345. package/build/components/Svgs/scanningLine.js +61 -0
  346. package/build/components/Svgs/scanningLine.js.map +1 -0
  347. package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
  348. package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
  349. package/build/components/Svgs/sideSelfieIcon.js +9 -0
  350. package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
  351. package/build/components/TemplateKYCExample.d.ts +22 -0
  352. package/build/components/TemplateKYCExample.d.ts.map +1 -0
  353. package/build/components/TemplateKYCExample.js +155 -0
  354. package/build/components/TemplateKYCExample.js.map +1 -0
  355. package/build/components/TemplateKYCFlowRefactored.d.ts +26 -0
  356. package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
  357. package/build/components/TemplateKYCFlowRefactored.js +359 -0
  358. package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
  359. package/build/components/VisionCameraView.d.ts +22 -0
  360. package/build/components/VisionCameraView.d.ts.map +1 -0
  361. package/build/components/VisionCameraView.js +142 -0
  362. package/build/components/VisionCameraView.js.map +1 -0
  363. package/build/components/example/CameraCaptureEx.d.ts +4 -0
  364. package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
  365. package/build/components/example/CameraCaptureEx.js +219 -0
  366. package/build/components/example/CameraCaptureEx.js.map +1 -0
  367. package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
  368. package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
  369. package/build/components/example/CameraCaptureExAdvanced.js +229 -0
  370. package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
  371. package/build/components/example/CameraCaptureExScan.d.ts +3 -0
  372. package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
  373. package/build/components/example/CameraCaptureExScan.js +213 -0
  374. package/build/components/example/CameraCaptureExScan.js.map +1 -0
  375. package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
  376. package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
  377. package/build/components/example/CameraCaptureExSimple.js +138 -0
  378. package/build/components/example/CameraCaptureExSimple.js.map +1 -0
  379. package/build/components/example/DynamicTemplateExample.d.ts +10 -0
  380. package/build/components/example/DynamicTemplateExample.d.ts.map +1 -0
  381. package/build/components/example/DynamicTemplateExample.js +241 -0
  382. package/build/components/example/DynamicTemplateExample.js.map +1 -0
  383. package/build/components/example/OrientationVideoExample.d.ts +4 -0
  384. package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
  385. package/build/components/example/OrientationVideoExample.js +325 -0
  386. package/build/components/example/OrientationVideoExample.js.map +1 -0
  387. package/build/components/example/SelfieCaptureEx.d.ts +4 -0
  388. package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
  389. package/build/components/example/SelfieCaptureEx.js +238 -0
  390. package/build/components/example/SelfieCaptureEx.js.map +1 -0
  391. package/build/components/ui/Button.d.ts +37 -0
  392. package/build/components/ui/Button.d.ts.map +1 -0
  393. package/build/components/ui/Button.js +194 -0
  394. package/build/components/ui/Button.js.map +1 -0
  395. package/build/components/ui/ButtonExample.d.ts +4 -0
  396. package/build/components/ui/ButtonExample.d.ts.map +1 -0
  397. package/build/components/ui/ButtonExample.js +209 -0
  398. package/build/components/ui/ButtonExample.js.map +1 -0
  399. package/build/components/ui/ButtonStyles.d.ts +521 -0
  400. package/build/components/ui/ButtonStyles.d.ts.map +1 -0
  401. package/build/components/ui/ButtonStyles.js +429 -0
  402. package/build/components/ui/ButtonStyles.js.map +1 -0
  403. package/build/config/KYCConfig.d.ts +14 -0
  404. package/build/config/KYCConfig.d.ts.map +1 -0
  405. package/build/config/KYCConfig.js +26 -0
  406. package/build/config/KYCConfig.js.map +1 -0
  407. package/build/config/KYCConfigs.d.ts +7 -0
  408. package/build/config/KYCConfigs.d.ts.map +1 -0
  409. package/build/config/KYCConfigs.js +516 -0
  410. package/build/config/KYCConfigs.js.map +1 -0
  411. package/build/config/allowedDomains.d.ts +30 -0
  412. package/build/config/allowedDomains.d.ts.map +1 -0
  413. package/build/config/allowedDomains.js +112 -0
  414. package/build/config/allowedDomains.js.map +1 -0
  415. package/build/config/countriesData.d.ts +3 -0
  416. package/build/config/countriesData.d.ts.map +1 -0
  417. package/build/config/countriesData.js +80 -0
  418. package/build/config/countriesData.js.map +1 -0
  419. package/build/config/region_mapping.d.ts +3 -0
  420. package/build/config/region_mapping.d.ts.map +1 -0
  421. package/build/config/region_mapping.js +736 -0
  422. package/build/config/region_mapping.js.map +1 -0
  423. package/build/hooks/useI18n.d.ts +11 -0
  424. package/build/hooks/useI18n.d.ts.map +1 -0
  425. package/build/hooks/useI18n.js +37 -0
  426. package/build/hooks/useI18n.js.map +1 -0
  427. package/build/hooks/useKYC.d.ts +15 -0
  428. package/build/hooks/useKYC.d.ts.map +1 -0
  429. package/build/hooks/useKYC.js +103 -0
  430. package/build/hooks/useKYC.js.map +1 -0
  431. package/build/hooks/useKYCFlow.d.ts +3 -0
  432. package/build/hooks/useKYCFlow.d.ts.map +1 -0
  433. package/build/hooks/useKYCFlow.js +221 -0
  434. package/build/hooks/useKYCFlow.js.map +1 -0
  435. package/build/hooks/useLocation.d.ts +32 -0
  436. package/build/hooks/useLocation.d.ts.map +1 -0
  437. package/build/hooks/useLocation.js +165 -0
  438. package/build/hooks/useLocation.js.map +1 -0
  439. package/build/hooks/useOrientationVideo.d.ts +10 -0
  440. package/build/hooks/useOrientationVideo.d.ts.map +1 -0
  441. package/build/hooks/useOrientationVideo.js +118 -0
  442. package/build/hooks/useOrientationVideo.js.map +1 -0
  443. package/build/hooks/useRealtimeVerifier.d.ts +28 -0
  444. package/build/hooks/useRealtimeVerifier.d.ts.map +1 -0
  445. package/build/hooks/useRealtimeVerifier.js +91 -0
  446. package/build/hooks/useRealtimeVerifier.js.map +1 -0
  447. package/build/hooks/useTemplateKYCFlow.d.ts +48 -0
  448. package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
  449. package/build/hooks/useTemplateKYCFlow.js +910 -0
  450. package/build/hooks/useTemplateKYCFlow.js.map +1 -0
  451. package/build/hooks/useTemplateLoader.d.ts +14 -0
  452. package/build/hooks/useTemplateLoader.d.ts.map +1 -0
  453. package/build/hooks/useTemplateLoader.js +85 -0
  454. package/build/hooks/useTemplateLoader.js.map +1 -0
  455. package/build/i18n/en/index.d.ts +233 -0
  456. package/build/i18n/en/index.d.ts.map +1 -0
  457. package/build/i18n/en/index.js +261 -0
  458. package/build/i18n/en/index.js.map +1 -0
  459. package/build/i18n/fr/index.d.ts +219 -0
  460. package/build/i18n/fr/index.d.ts.map +1 -0
  461. package/build/i18n/fr/index.js +246 -0
  462. package/build/i18n/fr/index.js.map +1 -0
  463. package/build/i18n/index.d.ts +10 -0
  464. package/build/i18n/index.d.ts.map +1 -0
  465. package/build/i18n/index.js +56 -0
  466. package/build/i18n/index.js.map +1 -0
  467. package/build/i18n/types.d.ts +162 -0
  468. package/build/i18n/types.d.ts.map +1 -0
  469. package/build/i18n/types.js +3 -0
  470. package/build/i18n/types.js.map +1 -0
  471. package/build/i18n/usage-example.d.ts +4 -0
  472. package/build/i18n/usage-example.d.ts.map +1 -0
  473. package/build/i18n/usage-example.js +189 -0
  474. package/build/i18n/usage-example.js.map +1 -0
  475. package/build/index.d.ts +11 -0
  476. package/build/index.d.ts.map +1 -0
  477. package/build/index.js +17 -0
  478. package/build/index.js.map +1 -0
  479. package/build/modules/api/CardAuthentification.d.ts +72 -0
  480. package/build/modules/api/CardAuthentification.d.ts.map +1 -0
  481. package/build/modules/api/CardAuthentification.js +487 -0
  482. package/build/modules/api/CardAuthentification.js.map +1 -0
  483. package/build/modules/api/KYCService.d.ts +116 -0
  484. package/build/modules/api/KYCService.d.ts.map +1 -0
  485. package/build/modules/api/KYCService.js +526 -0
  486. package/build/modules/api/KYCService.js.map +1 -0
  487. package/build/modules/api/SelfieVerification.d.ts +5 -0
  488. package/build/modules/api/SelfieVerification.d.ts.map +1 -0
  489. package/build/modules/api/SelfieVerification.js +25 -0
  490. package/build/modules/api/SelfieVerification.js.map +1 -0
  491. package/build/modules/api/TemplateService.d.ts +44 -0
  492. package/build/modules/api/TemplateService.d.ts.map +1 -0
  493. package/build/modules/api/TemplateService.js +146 -0
  494. package/build/modules/api/TemplateService.js.map +1 -0
  495. package/build/modules/api/backendApi.d.ts +2 -0
  496. package/build/modules/api/backendApi.d.ts.map +1 -0
  497. package/build/modules/api/backendApi.js +6 -0
  498. package/build/modules/api/backendApi.js.map +1 -0
  499. package/build/modules/api/types.d.ts +53 -0
  500. package/build/modules/api/types.d.ts.map +1 -0
  501. package/build/modules/api/types.js +2 -0
  502. package/build/modules/api/types.js.map +1 -0
  503. package/build/modules/camera/NativeCameraModule.d.ts +52 -0
  504. package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
  505. package/build/modules/camera/NativeCameraModule.js +149 -0
  506. package/build/modules/camera/NativeCameraModule.js.map +1 -0
  507. package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
  508. package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
  509. package/build/modules/camera/UnifiedCameraModule.js +125 -0
  510. package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
  511. package/build/modules/camera/VisionCameraModule.d.ts +62 -0
  512. package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
  513. package/build/modules/camera/VisionCameraModule.js +313 -0
  514. package/build/modules/camera/VisionCameraModule.js.map +1 -0
  515. package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
  516. package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
  517. package/build/modules/camera/VisionCameraModule.web.js +589 -0
  518. package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
  519. package/build/modules/camera/index.d.ts +5 -0
  520. package/build/modules/camera/index.d.ts.map +1 -0
  521. package/build/modules/camera/index.js +4 -0
  522. package/build/modules/camera/index.js.map +1 -0
  523. package/build/stores/kycStore.d.ts +55 -0
  524. package/build/stores/kycStore.d.ts.map +1 -0
  525. package/build/stores/kycStore.js +98 -0
  526. package/build/stores/kycStore.js.map +1 -0
  527. package/build/types/KYC.types.d.ts +643 -0
  528. package/build/types/KYC.types.d.ts.map +1 -0
  529. package/build/types/KYC.types.js +25 -0
  530. package/build/types/KYC.types.js.map +1 -0
  531. package/build/types/env.types.d.ts +13 -0
  532. package/build/types/env.types.d.ts.map +1 -0
  533. package/build/types/env.types.js +2 -0
  534. package/build/types/env.types.js.map +1 -0
  535. package/build/utils/cropByObb.d.ts +37 -0
  536. package/build/utils/cropByObb.d.ts.map +1 -0
  537. package/build/utils/cropByObb.js +215 -0
  538. package/build/utils/cropByObb.js.map +1 -0
  539. package/build/utils/deviceDetection.d.ts +6 -0
  540. package/build/utils/deviceDetection.d.ts.map +1 -0
  541. package/build/utils/deviceDetection.js +12 -0
  542. package/build/utils/deviceDetection.js.map +1 -0
  543. package/build/utils/get-document-type-info.d.ts +13 -0
  544. package/build/utils/get-document-type-info.d.ts.map +1 -0
  545. package/build/utils/get-document-type-info.js +59 -0
  546. package/build/utils/get-document-type-info.js.map +1 -0
  547. package/build/utils/logger.d.ts +12 -0
  548. package/build/utils/logger.d.ts.map +1 -0
  549. package/build/utils/logger.js +45 -0
  550. package/build/utils/logger.js.map +1 -0
  551. package/build/utils/pathToBase64.d.ts +3 -0
  552. package/build/utils/pathToBase64.d.ts.map +1 -0
  553. package/build/utils/pathToBase64.js +65 -0
  554. package/build/utils/pathToBase64.js.map +1 -0
  555. package/build/utils/platformAlert.d.ts +20 -0
  556. package/build/utils/platformAlert.d.ts.map +1 -0
  557. package/build/utils/platformAlert.js +67 -0
  558. package/build/utils/platformAlert.js.map +1 -0
  559. package/build/utils/remove-duplicate.d.ts +2 -0
  560. package/build/utils/remove-duplicate.d.ts.map +1 -0
  561. package/build/utils/remove-duplicate.js +4 -0
  562. package/build/utils/remove-duplicate.js.map +1 -0
  563. package/build/utils/template-transformer.d.ts +10 -0
  564. package/build/utils/template-transformer.d.ts.map +1 -0
  565. package/build/utils/template-transformer.js +365 -0
  566. package/build/utils/template-transformer.js.map +1 -0
  567. package/build/web/WebKYCEntry.d.ts +9 -0
  568. package/build/web/WebKYCEntry.d.ts.map +1 -0
  569. package/build/web/WebKYCEntry.js +288 -0
  570. package/build/web/WebKYCEntry.js.map +1 -0
  571. package/build/web/index.d.ts +2 -0
  572. package/build/web/index.d.ts.map +1 -0
  573. package/build/web/index.js +2 -0
  574. package/build/web/index.js.map +1 -0
  575. package/expo-module.config.json +9 -0
  576. package/ios/TransfergratisSdk.podspec +31 -0
  577. package/ios/TransfergratisSdkModule.swift +409 -0
  578. package/package.json +71 -0
  579. package/plugin/build/index.d.ts +5 -0
  580. package/plugin/build/index.js +12 -0
  581. package/plugin/build/withLocation.d.ts +9 -0
  582. package/plugin/build/withLocation.js +77 -0
  583. package/plugin/build/withRemovePermissions.d.ts +3 -0
  584. package/plugin/build/withRemovePermissions.js +67 -0
  585. package/plugin/build/withVisionCamera.d.ts +8 -0
  586. package/plugin/build/withVisionCamera.js +68 -0
  587. package/plugin/src/index.ts +5 -0
  588. package/plugin/src/withLocation.ts +109 -0
  589. package/plugin/src/withRemovePermissions.js +85 -0
  590. package/plugin/src/withRemovePermissions.ts +83 -0
  591. package/plugin/src/withVisionCamera.js +88 -0
  592. package/plugin/src/withVisionCamera.ts +97 -0
  593. package/plugin/tsconfig.json +17 -0
  594. package/plugin/tsconfig.tsbuildinfo +1 -0
  595. package/plugin.js +19 -0
  596. package/src/App.tsx +9 -0
  597. package/src/TransfergratisSdk.types.ts +30 -0
  598. package/src/TransfergratisSdkModule.ts +16 -0
  599. package/src/TransfergratisSdkModule.web.ts +31 -0
  600. package/src/TransfergratisSdkView.tsx +11 -0
  601. package/src/TransfergratisSdkView.web.tsx +15 -0
  602. package/src/api/axios.ts +144 -0
  603. package/src/components/Camera/index.tsx +0 -0
  604. package/src/components/Camera/index.web.tsx +0 -0
  605. package/src/components/Camera/types.ts +0 -0
  606. package/src/components/ConfigurableKYCFlow.tsx +334 -0
  607. package/src/components/CustomCameraExample.tsx +274 -0
  608. package/src/components/EnhancedCameraView.tsx +482 -0
  609. package/src/components/EnhancedCameraView.web.tsx +597 -0
  610. package/src/components/FileUpload.tsx +249 -0
  611. package/src/components/KYCElementRenderer.tsx +106 -0
  612. package/src/components/KYCElements/AdditionalDocumentsTemplate.tsx +346 -0
  613. package/src/components/KYCElements/CameraCapture.tsx +268 -0
  614. package/src/components/KYCElements/CompletionStep.tsx +161 -0
  615. package/src/components/KYCElements/CountrySelection.tsx +177 -0
  616. package/src/components/KYCElements/CountrySelectionTemplate.tsx +526 -0
  617. package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
  618. package/src/components/KYCElements/EmailVerificationTemplate.tsx +278 -0
  619. package/src/components/KYCElements/FileUpload.tsx +318 -0
  620. package/src/components/KYCElements/FileUploadTemplate.tsx +395 -0
  621. package/src/components/KYCElements/IDCardCapture.tsx +1053 -0
  622. package/src/components/KYCElements/InitializationStep.tsx +53 -0
  623. package/src/components/KYCElements/LocationCaptureTemplate.tsx +378 -0
  624. package/src/components/KYCElements/OrientationVideoCapture.tsx +649 -0
  625. package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +616 -0
  626. package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +534 -0
  627. package/src/components/KYCElements/PersonalInformationTemplate.tsx +158 -0
  628. package/src/components/KYCElements/PhoneVerificationTemplate.tsx +253 -0
  629. package/src/components/KYCElements/ReviewSubmitTemplate.tsx +201 -0
  630. package/src/components/KYCElements/SelfieCapture.tsx +284 -0
  631. package/src/components/KYCElements/SelfieCaptureTemplate.tsx +662 -0
  632. package/src/components/KYCElements/VerificationProgressTemplate.tsx +247 -0
  633. package/src/components/KYCElements/VerificationStep.tsx +234 -0
  634. package/src/components/KYCElements/WelcomeTemplate.tsx +290 -0
  635. package/src/components/KYCExample.tsx +297 -0
  636. package/src/components/KYCFlow.tsx +377 -0
  637. package/src/components/NativeCameraView.tsx +47 -0
  638. package/src/components/OverLay/IdCard.tsx +277 -0
  639. package/src/components/OverLay/SelfieOverlay.tsx +211 -0
  640. package/src/components/OverLay/StepOverlay.tsx +64 -0
  641. package/src/components/OverLay/type.ts +91 -0
  642. package/src/components/ProgressIndicator.tsx +62 -0
  643. package/src/components/SelfieCapture.tsx +244 -0
  644. package/src/components/SimpleExample.tsx +92 -0
  645. package/src/components/Svgs/GpsIcon.tsx +12 -0
  646. package/src/components/Svgs/Schield.tsx +26 -0
  647. package/src/components/Svgs/directionArrow.gif +0 -0
  648. package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
  649. package/src/components/Svgs/scanningLine.tsx +88 -0
  650. package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
  651. package/src/components/TemplateKYCExample.tsx +194 -0
  652. package/src/components/TemplateKYCFlowRefactored.tsx +473 -0
  653. package/src/components/VisionCameraView.tsx +197 -0
  654. package/src/components/example/CameraCaptureEx.tsx +335 -0
  655. package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
  656. package/src/components/example/CameraCaptureExScan.tsx +336 -0
  657. package/src/components/example/CameraCaptureExSimple.tsx +215 -0
  658. package/src/components/example/DynamicTemplateExample.tsx +289 -0
  659. package/src/components/example/OrientationVideoExample.tsx +380 -0
  660. package/src/components/example/SelfieCaptureEx.tsx +358 -0
  661. package/src/components/ui/Button.tsx +328 -0
  662. package/src/components/ui/ButtonExample.tsx +318 -0
  663. package/src/components/ui/ButtonStyles.ts +465 -0
  664. package/src/config/KYCConfig.ts +34 -0
  665. package/src/config/KYCConfigs.ts +528 -0
  666. package/src/config/allowedDomains.ts +133 -0
  667. package/src/config/countriesData.ts +85 -0
  668. package/src/config/region_mapping.json +735 -0
  669. package/src/config/region_mapping.ts +737 -0
  670. package/src/hooks/useI18n.ts +53 -0
  671. package/src/hooks/useKYC.ts +131 -0
  672. package/src/hooks/useKYCFlow.ts +248 -0
  673. package/src/hooks/useLocation.ts +221 -0
  674. package/src/hooks/useOrientationVideo.ts +149 -0
  675. package/src/hooks/useRealtimeVerifier.ts +128 -0
  676. package/src/hooks/useTemplateKYCFlow.tsx +1051 -0
  677. package/src/hooks/useTemplateLoader.ts +102 -0
  678. package/src/i18n/README.md +288 -0
  679. package/src/i18n/en/index.ts +275 -0
  680. package/src/i18n/fr/index.ts +260 -0
  681. package/src/i18n/index.ts +65 -0
  682. package/src/i18n/types.ts +182 -0
  683. package/src/i18n/usage-example.tsx +202 -0
  684. package/src/index.ts +25 -0
  685. package/src/modules/api/CardAuthentification.ts +589 -0
  686. package/src/modules/api/KYCService.ts +666 -0
  687. package/src/modules/api/SelfieVerification.ts +33 -0
  688. package/src/modules/api/TemplateService.ts +168 -0
  689. package/src/modules/api/backendApi.ts +8 -0
  690. package/src/modules/api/types.ts +59 -0
  691. package/src/modules/camera/NativeCameraModule.ts +170 -0
  692. package/src/modules/camera/UnifiedCameraModule.ts +160 -0
  693. package/src/modules/camera/VisionCameraModule.ts +334 -0
  694. package/src/modules/camera/VisionCameraModule.web.ts +679 -0
  695. package/src/modules/camera/index.ts +6 -0
  696. package/src/stores/kycStore.ts +161 -0
  697. package/src/types/KYC.types.ts +837 -0
  698. package/src/types/env.types.ts +13 -0
  699. package/src/utils/cropByObb.ts +254 -0
  700. package/src/utils/deviceDetection.ts +11 -0
  701. package/src/utils/get-document-type-info.ts +62 -0
  702. package/src/utils/logger.ts +48 -0
  703. package/src/utils/pathToBase64.ts +63 -0
  704. package/src/utils/platformAlert.ts +86 -0
  705. package/src/utils/remove-duplicate.ts +3 -0
  706. package/src/utils/template-transformer.ts +445 -0
  707. package/src/web/WebKYCEntry.tsx +375 -0
  708. package/src/web/index.ts +1 -0
@@ -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,k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,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,QAAQ;KACtB;IACD,oBAAoB,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,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAChH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAGpC,IAAI,CA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AAW,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: '#F8F9FA',
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":["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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: '#F8F9FA',\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,4 @@
1
+ import React from 'react';
2
+ declare const ButtonExample: React.FC;
3
+ export default ButtonExample;
4
+ //# sourceMappingURL=ButtonExample.d.ts.map
@@ -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"}
@@ -0,0 +1,209 @@
1
+ import React, { useState } from 'react';
2
+ import { View, Text, StyleSheet, ScrollView } from 'react-native';
3
+ import { Button, buttonIcons } from './Button';
4
+ const ButtonExample = () => {
5
+ const [loading, setLoading] = useState(false);
6
+ const handlePress = () => {
7
+ console.log('Button pressed!');
8
+ };
9
+ const handleLoadingPress = () => {
10
+ setLoading(true);
11
+ setTimeout(() => setLoading(false), 2000);
12
+ };
13
+ return (<ScrollView style={styles.container}>
14
+ <Text style={styles.title}>Composant Button</Text>
15
+
16
+ {/* Variantes de base */}
17
+ <View style={styles.section}>
18
+ <Text style={styles.sectionTitle}>Variantes</Text>
19
+
20
+ <Button title="Primary" onPress={handlePress} variant="primary"/>
21
+ <Button title="Secondary" onPress={handlePress} variant="secondary"/>
22
+ <Button title="Outline" onPress={handlePress} variant="outline"/>
23
+ <Button title="Ghost" onPress={handlePress} variant="ghost"/>
24
+ <Button title="Danger" onPress={handlePress} variant="danger"/>
25
+ <Button title="Success" onPress={handlePress} variant="success"/>
26
+ <Button title="Warning" onPress={handlePress} variant="warning"/>
27
+ </View>
28
+
29
+ {/* Tailles */}
30
+ <View style={styles.section}>
31
+ <Text style={styles.sectionTitle}>Tailles</Text>
32
+
33
+ <Button title="Small" onPress={handlePress} size="small"/>
34
+ <Button title="Medium (default)" onPress={handlePress}/>
35
+ <Button title="Large" onPress={handlePress} size="large"/>
36
+ </View>
37
+
38
+ {/* Icônes */}
39
+ <View style={styles.section}>
40
+ <Text style={styles.sectionTitle}>Icônes</Text>
41
+
42
+ <Button title="Avec icône gauche" icon={buttonIcons.camera} onPress={handlePress}/>
43
+ <Button title="Avec icône droite" icon="→" iconPosition="right" onPress={handlePress}/>
44
+ <Button title="Icône seulement" icon={buttonIcons.plus} style={styles.iconOnlyButton} onPress={handlePress}/>
45
+ </View>
46
+
47
+ {/* États */}
48
+ <View style={styles.section}>
49
+ <Text style={styles.sectionTitle}>États</Text>
50
+
51
+ <Button title="Normal" onPress={handlePress}/>
52
+ <Button title="Désactivé" onPress={handlePress} disabled/>
53
+ <Button title="Chargement" onPress={handleLoadingPress} loading={loading}/>
54
+ </View>
55
+
56
+ {/* Styles spéciaux */}
57
+ <View style={styles.section}>
58
+ <Text style={styles.sectionTitle}>Styles spéciaux</Text>
59
+
60
+ <Button title="Pleine largeur" onPress={handlePress} fullWidth/>
61
+ <Button title="Arrondi" onPress={handlePress} rounded/>
62
+ <Button title="Style personnalisé" onPress={handlePress} style={styles.customButton} textStyle={styles.customText}/>
63
+ </View>
64
+
65
+ {/* Composants prédéfinis */}
66
+ <View style={styles.section}>
67
+ <Text style={styles.sectionTitle}>Composants prédéfinis</Text>
68
+
69
+ <View style={styles.row}>
70
+ <Button title="Retour" icon="←" variant="ghost" onPress={handlePress}/>
71
+ <Button title="Suivant" icon="→" variant="primary" onPress={handlePress}/>
72
+ </View>
73
+
74
+ <View style={styles.row}>
75
+ <Button title="Soumettre" variant="primary" size="large" fullWidth onPress={handlePress}/>
76
+ <Button title="Annuler" variant="secondary" onPress={handlePress}/>
77
+ </View>
78
+ </View>
79
+
80
+ {/* Boutons d'action */}
81
+ <View style={styles.section}>
82
+ <Text style={styles.sectionTitle}>Boutons d'action</Text>
83
+
84
+ <View style={styles.row}>
85
+ <Button title="Éditer" icon={buttonIcons.edit} variant="warning" onPress={handlePress}/>
86
+ <Button title="Supprimer" icon={buttonIcons.delete} variant="danger" onPress={handlePress}/>
87
+ </View>
88
+
89
+ <View style={styles.row}>
90
+ <Button title="Partager" icon={buttonIcons.share} variant="info" onPress={handlePress}/>
91
+ <Button title="Télécharger" icon={buttonIcons.download} variant="success" onPress={handlePress}/>
92
+ </View>
93
+ </View>
94
+
95
+ {/* Boutons de navigation */}
96
+ <View style={styles.section}>
97
+ <Text style={styles.sectionTitle}>Navigation</Text>
98
+
99
+ <View style={styles.row}>
100
+ <Button title="Accueil" icon={buttonIcons.home} variant="ghost" onPress={handlePress}/>
101
+ <Button title="Paramètres" icon={buttonIcons.settings} variant="ghost" onPress={handlePress}/>
102
+ </View>
103
+
104
+ <View style={styles.row}>
105
+ <Button title="Rechercher" icon={buttonIcons.search} variant="primary" onPress={handlePress}/>
106
+ <Button title="Filtrer" icon={buttonIcons.filter} variant="secondary" onPress={handlePress}/>
107
+ </View>
108
+ </View>
109
+
110
+ {/* Boutons de formulaire */}
111
+ <View style={styles.section}>
112
+ <Text style={styles.sectionTitle}>Formulaire</Text>
113
+
114
+ <Button title="Se connecter" icon={buttonIcons.user} variant="primary" size="large" fullWidth onPress={handlePress}/>
115
+
116
+ <View style={styles.row}>
117
+ <Button title="S'inscrire" variant="outline" onPress={handlePress}/>
118
+ <Button title="Mot de passe oublié" variant="ghost" onPress={handlePress}/>
119
+ </View>
120
+ </View>
121
+
122
+ {/* Boutons de statut */}
123
+ <View style={styles.section}>
124
+ <Text style={styles.sectionTitle}>Statuts</Text>
125
+
126
+ <View style={styles.row}>
127
+ <Button title="En cours" icon={buttonIcons.clock} variant="warning" size="small" onPress={handlePress}/>
128
+ <Button title="Terminé" icon={buttonIcons.check} variant="success" size="small" onPress={handlePress}/>
129
+ <Button title="Erreur" icon={buttonIcons.error} variant="danger" size="small" onPress={handlePress}/>
130
+ </View>
131
+ </View>
132
+
133
+ {/* Boutons flottants */}
134
+ <View style={styles.section}>
135
+ <Text style={styles.sectionTitle}>Boutons flottants</Text>
136
+
137
+ <View style={styles.floatingContainer}>
138
+ <Button title="" icon={buttonIcons.plus} variant="primary" rounded style={styles.floatingButton} onPress={handlePress}/>
139
+ </View>
140
+ </View>
141
+ </ScrollView>);
142
+ };
143
+ const styles = StyleSheet.create({
144
+ container: {
145
+ flex: 1,
146
+ padding: 20,
147
+ backgroundColor: '#f5f5f5',
148
+ },
149
+ title: {
150
+ fontSize: 24,
151
+ fontWeight: 'bold',
152
+ color: '#333',
153
+ marginBottom: 20,
154
+ textAlign: 'center',
155
+ },
156
+ section: {
157
+ marginBottom: 30,
158
+ },
159
+ sectionTitle: {
160
+ fontSize: 18,
161
+ fontWeight: '600',
162
+ color: '#333',
163
+ marginBottom: 15,
164
+ },
165
+ row: {
166
+ flexDirection: 'row',
167
+ justifyContent: 'space-between',
168
+ marginBottom: 10,
169
+ },
170
+ iconOnlyButton: {
171
+ width: 56,
172
+ height: 56,
173
+ borderRadius: 28,
174
+ paddingHorizontal: 0,
175
+ alignSelf: 'center',
176
+ },
177
+ customButton: {
178
+ backgroundColor: '#8B5CF6',
179
+ borderColor: '#8B5CF6',
180
+ borderRadius: 20,
181
+ paddingVertical: 16,
182
+ paddingHorizontal: 32,
183
+ },
184
+ customText: {
185
+ color: '#FFFFFF',
186
+ fontSize: 18,
187
+ fontWeight: '700',
188
+ },
189
+ floatingContainer: {
190
+ height: 100,
191
+ position: 'relative',
192
+ backgroundColor: '#fff',
193
+ borderRadius: 12,
194
+ padding: 20,
195
+ justifyContent: 'center',
196
+ alignItems: 'center',
197
+ },
198
+ floatingButton: {
199
+ position: 'absolute',
200
+ bottom: 20,
201
+ right: 20,
202
+ width: 56,
203
+ height: 56,
204
+ borderRadius: 28,
205
+ paddingHorizontal: 0,
206
+ },
207
+ });
208
+ export default ButtonExample;
209
+ //# sourceMappingURL=ButtonExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExample.js","sourceRoot":"","sources":["../../../src/components/ui/ButtonExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA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AAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,CAAC;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,SAAS;QACtB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;KACtB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,iBAAiB,EAAE;QACjB,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,UAAU;QACpB,eAAe,EAAE,MAAM;QACvB,YAAY,EAAE,EAAE;QAChB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,CAAC;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { View, Text, StyleSheet, ScrollView } from 'react-native';\nimport { \n Button, \n buttonIcons \n} from './Button';\n\nconst ButtonExample: React.FC = () => {\n const [loading, setLoading] = useState(false);\n\n const handlePress = () => {\n console.log('Button pressed!');\n };\n\n const handleLoadingPress = () => {\n setLoading(true);\n setTimeout(() => setLoading(false), 2000);\n };\n\n return (\n <ScrollView style={styles.container}>\n <Text style={styles.title}>Composant Button</Text>\n \n {/* Variantes de base */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Variantes</Text>\n \n <Button title=\"Primary\" onPress={handlePress} variant=\"primary\" />\n <Button title=\"Secondary\" onPress={handlePress} variant=\"secondary\" />\n <Button title=\"Outline\" onPress={handlePress} variant=\"outline\" />\n <Button title=\"Ghost\" onPress={handlePress} variant=\"ghost\" />\n <Button title=\"Danger\" onPress={handlePress} variant=\"danger\" />\n <Button title=\"Success\" onPress={handlePress} variant=\"success\" />\n <Button title=\"Warning\" onPress={handlePress} variant=\"warning\" />\n </View>\n\n {/* Tailles */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Tailles</Text>\n \n <Button title=\"Small\" onPress={handlePress} size=\"small\" />\n <Button title=\"Medium (default)\" onPress={handlePress} />\n <Button title=\"Large\" onPress={handlePress} size=\"large\" />\n </View>\n\n {/* Icônes */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Icônes</Text>\n \n <Button \n title=\"Avec icône gauche\" \n icon={buttonIcons.camera}\n onPress={handlePress} \n />\n <Button \n title=\"Avec icône droite\" \n icon=\"→\"\n iconPosition=\"right\"\n onPress={handlePress} \n />\n <Button \n title=\"Icône seulement\" \n icon={buttonIcons.plus}\n style={styles.iconOnlyButton}\n onPress={handlePress} \n />\n </View>\n\n {/* États */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>États</Text>\n \n <Button title=\"Normal\" onPress={handlePress} />\n <Button title=\"Désactivé\" onPress={handlePress} disabled />\n <Button title=\"Chargement\" onPress={handleLoadingPress} loading={loading} />\n </View>\n\n {/* Styles spéciaux */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Styles spéciaux</Text>\n \n <Button title=\"Pleine largeur\" onPress={handlePress} fullWidth />\n <Button title=\"Arrondi\" onPress={handlePress} rounded />\n <Button \n title=\"Style personnalisé\" \n onPress={handlePress} \n style={styles.customButton}\n textStyle={styles.customText}\n />\n </View>\n\n {/* Composants prédéfinis */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Composants prédéfinis</Text>\n \n <View style={styles.row}>\n <Button title=\"Retour\" icon=\"←\" variant=\"ghost\" onPress={handlePress} />\n <Button title=\"Suivant\" icon=\"→\" variant=\"primary\" onPress={handlePress} />\n </View>\n \n <View style={styles.row}>\n <Button title=\"Soumettre\" variant=\"primary\" size=\"large\" fullWidth onPress={handlePress} />\n <Button title=\"Annuler\" variant=\"secondary\" onPress={handlePress} />\n </View>\n </View>\n\n {/* Boutons d'action */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Boutons d'action</Text>\n \n <View style={styles.row}>\n <Button \n title=\"Éditer\" \n icon={buttonIcons.edit}\n variant=\"warning\"\n onPress={handlePress} \n />\n <Button \n title=\"Supprimer\" \n icon={buttonIcons.delete}\n variant=\"danger\"\n onPress={handlePress} \n />\n </View>\n \n <View style={styles.row}>\n <Button \n title=\"Partager\" \n icon={buttonIcons.share}\n variant=\"info\"\n onPress={handlePress} \n />\n <Button \n title=\"Télécharger\" \n icon={buttonIcons.download}\n variant=\"success\"\n onPress={handlePress} \n />\n </View>\n </View>\n\n {/* Boutons de navigation */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Navigation</Text>\n \n <View style={styles.row}>\n <Button \n title=\"Accueil\" \n icon={buttonIcons.home}\n variant=\"ghost\"\n onPress={handlePress} \n />\n <Button \n title=\"Paramètres\" \n icon={buttonIcons.settings}\n variant=\"ghost\"\n onPress={handlePress} \n />\n </View>\n \n <View style={styles.row}>\n <Button \n title=\"Rechercher\" \n icon={buttonIcons.search}\n variant=\"primary\"\n onPress={handlePress} \n />\n <Button \n title=\"Filtrer\" \n icon={buttonIcons.filter}\n variant=\"secondary\"\n onPress={handlePress} \n />\n </View>\n </View>\n\n {/* Boutons de formulaire */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Formulaire</Text>\n \n <Button \n title=\"Se connecter\" \n icon={buttonIcons.user}\n variant=\"primary\"\n size=\"large\"\n fullWidth\n onPress={handlePress} \n />\n \n <View style={styles.row}>\n <Button \n title=\"S'inscrire\" \n variant=\"outline\"\n onPress={handlePress} \n />\n <Button \n title=\"Mot de passe oublié\" \n variant=\"ghost\"\n onPress={handlePress} \n />\n </View>\n </View>\n\n {/* Boutons de statut */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Statuts</Text>\n \n <View style={styles.row}>\n <Button \n title=\"En cours\" \n icon={buttonIcons.clock}\n variant=\"warning\"\n size=\"small\"\n onPress={handlePress} \n />\n <Button \n title=\"Terminé\" \n icon={buttonIcons.check}\n variant=\"success\"\n size=\"small\"\n onPress={handlePress} \n />\n <Button \n title=\"Erreur\" \n icon={buttonIcons.error}\n variant=\"danger\"\n size=\"small\"\n onPress={handlePress} \n />\n </View>\n </View>\n\n {/* Boutons flottants */}\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Boutons flottants</Text>\n \n <View style={styles.floatingContainer}>\n <Button \n title=\"\" \n icon={buttonIcons.plus}\n variant=\"primary\"\n rounded\n style={styles.floatingButton}\n onPress={handlePress} \n />\n </View>\n </View>\n </ScrollView>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n padding: 20,\n backgroundColor: '#f5f5f5',\n },\n title: {\n fontSize: 24,\n fontWeight: 'bold',\n color: '#333',\n marginBottom: 20,\n textAlign: 'center',\n },\n section: {\n marginBottom: 30,\n },\n sectionTitle: {\n fontSize: 18,\n fontWeight: '600',\n color: '#333',\n marginBottom: 15,\n },\n row: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n marginBottom: 10,\n },\n iconOnlyButton: {\n width: 56,\n height: 56,\n borderRadius: 28,\n paddingHorizontal: 0,\n alignSelf: 'center',\n },\n customButton: {\n backgroundColor: '#8B5CF6',\n borderColor: '#8B5CF6',\n borderRadius: 20,\n paddingVertical: 16,\n paddingHorizontal: 32,\n },\n customText: {\n color: '#FFFFFF',\n fontSize: 18,\n fontWeight: '700',\n },\n floatingContainer: {\n height: 100,\n position: 'relative',\n backgroundColor: '#fff',\n borderRadius: 12,\n padding: 20,\n justifyContent: 'center',\n alignItems: 'center',\n },\n floatingButton: {\n position: 'absolute',\n bottom: 20,\n right: 20,\n width: 56,\n height: 56,\n borderRadius: 28,\n paddingHorizontal: 0,\n },\n});\n\nexport default ButtonExample; "]}