@techlabi/kycrazy-ui-kit 0.54.0-beta.1 → 0.54.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.
- package/CHANGELOG.md +6 -0
- package/README.md +13 -5
- package/dist/index.es.js +11298 -11098
- package/dist/index.umd.js +69 -69
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ Mobile-first design, multi-language support, and instant pass/fail results keep
|
|
|
34
34
|
|
|
35
35
|
## 📖 Usage
|
|
36
36
|
|
|
37
|
+
Important: this package ships a precompiled stylesheet. Import the compiled CSS from the package in your consumer app, then import the component JS. This ensures Tailwind utilities and any third‑party CSS used by the components are applied correctly.
|
|
38
|
+
|
|
37
39
|
```tsx
|
|
38
40
|
import '@techlabi/kycrazy-ui-kit/style.css';
|
|
39
41
|
import KYCrazy from '@techlabi/kycrazy-ui-kit';
|
|
@@ -45,12 +47,18 @@ function App() {
|
|
|
45
47
|
apiKey="ak_test_0987654321zyxwvutsrqponmlkjihgfedcba"
|
|
46
48
|
apiEndpoint="http://localhost:8080"
|
|
47
49
|
isKYB={true}
|
|
48
|
-
userEmail={user.email}
|
|
49
|
-
userId={user.id}
|
|
50
|
+
userEmail={user.email}
|
|
51
|
+
userId={user.id}
|
|
50
52
|
fullName={user.fullName} // optional
|
|
51
|
-
hideCompanyActivity={true}
|
|
52
|
-
hideQuestionary={true}
|
|
53
|
-
companyDocumentsTypes={[
|
|
53
|
+
hideCompanyActivity={true} // optional
|
|
54
|
+
hideQuestionary={true} // optional
|
|
55
|
+
companyDocumentsTypes={[
|
|
56
|
+
'bank_statement',
|
|
57
|
+
'company_structure',
|
|
58
|
+
'certificate_of_registration',
|
|
59
|
+
'business_license',
|
|
60
|
+
'void_cheque',
|
|
61
|
+
]} // optional
|
|
54
62
|
onComplete={(token: string, data: KYCRequestData | KYBRequestData) => {}}
|
|
55
63
|
onDoneClick={() => {}}
|
|
56
64
|
/>
|