@techlabi/kycrazy-ui-kit 0.15.0 → 0.17.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/README.md +9 -8
- package/dist/index.es.js +12340 -2914
- package/dist/index.umd.js +99 -14
- package/dist/style.css +1 -1
- package/dist/types/App.d.ts +2 -1
- package/dist/types/components/KYB.d.ts +3 -0
- package/dist/types/components/KYC.d.ts +3 -0
- package/dist/types/components/steps/LandingStep.d.ts +2 -0
- package/dist/types/components/steps/kyb/BusinessAddressStep.d.ts +37 -0
- package/dist/types/components/steps/kyb/BusinessInformationStep.d.ts +41 -0
- package/dist/types/components/steps/kyb/CompanyActivityStep.d.ts +33 -0
- package/dist/types/components/steps/kyb/CompanyDocumentsStep.d.ts +29 -0
- package/dist/types/components/steps/kyb/PersonalDetailsStep.d.ts +33 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +56 -0
- package/package.json +1 -1
- package/dist/types/components/KYCrazy.d.ts +0 -7
- /package/dist/types/components/steps/{shared/KycStepCardHeader.d.ts → KycStepCardHeader.d.ts} +0 -0
- /package/dist/types/components/steps/{DocumentSelectionStep.d.ts → kyc/DocumentSelectionStep.d.ts} +0 -0
- /package/dist/types/components/steps/{NameStep.d.ts → kyc/NameStep.d.ts} +0 -0
- /package/dist/types/components/steps/{PhotoConfirmationStep.d.ts → kyc/PhotoConfirmationStep.d.ts} +0 -0
- /package/dist/types/components/steps/{PreSelfieStep.d.ts → kyc/PreSelfieStep.d.ts} +0 -0
- /package/dist/types/components/steps/{VerifyStep.d.ts → kyc/VerifyStep.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -35,13 +35,13 @@ Mobile-first design, multi-language support, and instant pass/fail results keep
|
|
|
35
35
|
## 📖 Usage
|
|
36
36
|
|
|
37
37
|
```tsx
|
|
38
|
-
import
|
|
39
|
-
import KYCrazy from
|
|
38
|
+
import '@techlabi/kycrazy-ui-kit/style.css';
|
|
39
|
+
import KYCrazy from '@techlabi/kycrazy-ui-kit';
|
|
40
40
|
|
|
41
41
|
function App() {
|
|
42
42
|
return (
|
|
43
43
|
<div className="bg-muted/30 flex items-center justify-center p-4 mt-2">
|
|
44
|
-
<KYCrazy />
|
|
44
|
+
<KYCrazy apiKey="ak_test_0987654321zyxwvutsrqponmlkjihgfedcba" apiEndpoint="http://localhost:8080" />
|
|
45
45
|
</div>
|
|
46
46
|
);
|
|
47
47
|
}
|
|
@@ -49,8 +49,9 @@ function App() {
|
|
|
49
49
|
|
|
50
50
|
## 🎨 Props
|
|
51
51
|
|
|
52
|
-
| Prop
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
52
|
+
| Prop | Type | Default | Description |
|
|
53
|
+
| ------------- | --------- | ------- | ------------------------------------------------------------------------------------- |
|
|
54
|
+
| |
|
|
55
|
+
| `apiEndpoint` | `string` | - | provide backend API endpoint where the data will be posted upon KYC verification flow |
|
|
56
|
+
| `apiKey` | `string` | - | provide API key to access backend |
|
|
57
|
+
| `isKYB` | `boolean` | - | use in KYB mode |
|