@techlabi/kycrazy-ui-kit 0.48.0-beta.2 → 0.48.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.
@@ -26,6 +26,7 @@ type BusinessAddressFormData = z.infer<typeof businessAddressSchema>;
26
26
  type AddressData = BusinessAddressFormData;
27
27
  interface AddressStepProps {
28
28
  data: AddressData;
29
+ isBusinessAddress: boolean;
29
30
  onDataChange: (data: Partial<AddressData>) => void;
30
31
  onContinue: (formData: AddressData) => void;
31
32
  onBack: () => void;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface DoneStepProps {
3
- onDoneClick: () => void;
3
+ onDoneClick?: () => void;
4
4
  }
5
5
  declare const DoneStep: React.FC<DoneStepProps>;
6
6
  export default DoneStep;
@@ -13,13 +13,6 @@ export interface KYCrazyProps {
13
13
  onComplete: (token: string, data: KYCRequestData | KYBRequestData) => void;
14
14
  onDoneClick?: () => void;
15
15
  }
16
- export type KYCPersonalDetails = {
17
- full_name: string;
18
- email: string;
19
- selfie_photo: File;
20
- id_photo: File;
21
- id_photo_back?: File;
22
- };
23
16
  export type KYCPersonalAddress = {
24
17
  street: string;
25
18
  number: string;
@@ -29,7 +22,11 @@ export type KYCPersonalAddress = {
29
22
  state?: string;
30
23
  };
31
24
  export type KYCRequestData = {
32
- personal_details: KYCPersonalDetails;
25
+ full_name: string;
26
+ email: string;
27
+ selfie_photo: File;
28
+ id_photo: File;
29
+ id_photo_back?: File;
33
30
  personal_address: KYCPersonalAddress;
34
31
  };
35
32
  export type KYBPersonalDetails = {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A modern React component library for KYC",
5
5
  "author": "TechLabi",
6
- "version": "0.48.0-beta.2",
6
+ "version": "0.48.0",
7
7
  "type": "module",
8
8
  "types": "dist/types/index.d.ts",
9
9
  "style": "dist/style.css",