@techlabi/kycrazy-ui-kit 0.18.0 → 0.20.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 +12 -12
- package/dist/index.es.js +947 -897
- package/dist/index.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/types/components/ui/calendar.d.ts +4 -2
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -41,13 +41,12 @@ import KYCrazy from '@techlabi/kycrazy-ui-kit';
|
|
|
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
|
|
45
|
-
apiKey="ak_test_0987654321zyxwvutsrqponmlkjihgfedcba"
|
|
46
|
-
apiEndpoint="http://localhost:8080"
|
|
44
|
+
<KYCrazy
|
|
45
|
+
apiKey="ak_test_0987654321zyxwvutsrqponmlkjihgfedcba"
|
|
46
|
+
apiEndpoint="http://localhost:8080"
|
|
47
47
|
isKYB={true}
|
|
48
|
-
onComplete={(token: string, data: KYCRequestData | KYBRequestData) => {
|
|
49
|
-
|
|
50
|
-
}} />
|
|
48
|
+
onComplete={(token: string, data: KYCRequestData | KYBRequestData) => {}}
|
|
49
|
+
/>
|
|
51
50
|
</div>
|
|
52
51
|
);
|
|
53
52
|
}
|
|
@@ -55,9 +54,10 @@ function App() {
|
|
|
55
54
|
|
|
56
55
|
## 🎨 Props
|
|
57
56
|
|
|
58
|
-
| Prop | Type
|
|
59
|
-
| ------------- |
|
|
60
|
-
|
|
|
61
|
-
| `apiEndpoint` | `string`
|
|
62
|
-
| `apiKey` | `string`
|
|
63
|
-
| `isKYB` | `boolean`
|
|
57
|
+
| Prop | Type | Default | Description |
|
|
58
|
+
| ------------- | ---------- | ------- | ------------------------------------------------------------------------------------- |
|
|
59
|
+
| |
|
|
60
|
+
| `apiEndpoint` | `string` | - | provide backend API endpoint where the data will be posted upon KYC verification flow |
|
|
61
|
+
| `apiKey` | `string` | - | provide API key to access backend |
|
|
62
|
+
| `isKYB` | `boolean` | false | use in KYB mode |
|
|
63
|
+
| `onComplete` | `function` | - | Complete function |
|