@techlabi/kycrazy-ui-kit 0.22.0 → 0.24.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.
@@ -0,0 +1,11 @@
1
+ import { KYBStep, KYCStep } from '../types';
2
+ declare const CameraShotStep: ({ currentStep, onRetake, onConfirm, onBack, title, description, frameType, }: {
3
+ currentStep: KYCStep | KYBStep;
4
+ onRetake: () => void;
5
+ onConfirm: (file: File) => void;
6
+ onBack: () => void;
7
+ title: string;
8
+ description: string;
9
+ frameType: string;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ export default CameraShotStep;
@@ -7,14 +7,17 @@ declare const businessAddressSchema: z.ZodObject<{
7
7
  postal_code: z.ZodString;
8
8
  city: z.ZodString;
9
9
  address_country: z.ZodString;
10
+ state: z.ZodString;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  number?: string;
13
+ state?: string;
12
14
  street?: string;
13
15
  postal_code?: string;
14
16
  city?: string;
15
17
  address_country?: string;
16
18
  }, {
17
19
  number?: string;
20
+ state?: string;
18
21
  street?: string;
19
22
  postal_code?: string;
20
23
  city?: string;
@@ -1,5 +1,5 @@
1
- export type KYCStep = 'landing' | 'name' | 'document-selection' | 'selfie' | 'selfie-confirm' | 'pre-selfie' | 'id-front' | 'id-front-confirm' | 'id-back' | 'id-back-confirm' | 'verify' | 'processing' | 'done';
2
- export type KYBStep = 'landing' | 'personal-details' | 'selfie' | 'selfie-confirm' | 'pre-selfie' | 'id-front' | 'id-front-confirm' | 'id-back' | 'id-back-confirm' | 'business-information' | 'business-address' | 'company-activity' | 'company-documents' | 'processing' | 'done';
1
+ export type KYCStep = 'landing' | 'name' | 'document-selection' | 'selfie' | 'pre-selfie' | 'id-front' | 'id-back' | 'verify' | 'processing' | 'done';
2
+ export type KYBStep = 'landing' | 'personal-details' | 'selfie' | 'pre-selfie' | 'id-front' | 'id-back' | 'business-information' | 'business-address' | 'company-activity' | 'company-documents' | 'processing' | 'done';
3
3
  export interface KYCrazyProps {
4
4
  apiEndpoint: string;
5
5
  apiKey: string;
@@ -36,6 +36,7 @@ export type KYBBusinessAddress = {
36
36
  postal_code: string;
37
37
  city: string;
38
38
  address_country: string;
39
+ state?: string;
39
40
  };
40
41
  export type KYBCompanyActivity = {
41
42
  industry: string;
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.22.0",
6
+ "version": "0.24.0",
7
7
  "type": "module",
8
8
  "types": "dist/types/index.d.ts",
9
9
  "style": "dist/style.css",
@@ -80,7 +80,6 @@
80
80
  "react-dom": "^18.3.1",
81
81
  "react-hook-form": "^7.61.1",
82
82
  "react-resizable-panels": "^2.1.9",
83
- "react-router-dom": "^6.30.1",
84
83
  "recharts": "^2.15.4",
85
84
  "sonner": "^1.7.4",
86
85
  "tailwind-merge": "^2.6.0",
@@ -90,7 +89,8 @@
90
89
  "zod": "^3.25.76"
91
90
  },
92
91
  "peerDependencies": {
93
- "@tanstack/react-query": "^5.64.2"
92
+ "@tanstack/react-query": "^5.64.2",
93
+ "react-router-dom": "^6.20.1"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@eslint/js": "^9.32.0",
@@ -1,10 +0,0 @@
1
- import { KYBStep, KYCStep } from '../types';
2
- declare const CameraCard: ({ acceptedFile, currentStep, setCurrentStep, setSelfiePhoto, setIdCardFront, setIdCardBack, }: {
3
- acceptedFile?: File | null;
4
- currentStep: KYCStep;
5
- setCurrentStep: (step: KYCStep | KYBStep) => void;
6
- setSelfiePhoto: (file: File | null) => void;
7
- setIdCardFront: (file: File | null) => void;
8
- setIdCardBack: (file: File | null) => void;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export default CameraCard;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface PhotoConfirmationStepProps {
3
- photo: File;
4
- onRetake: () => void;
5
- onConfirm: () => void;
6
- onBack: () => void;
7
- renderProgress: () => React.ReactNode;
8
- }
9
- declare const PhotoConfirmationStep: React.FC<PhotoConfirmationStepProps>;
10
- export default PhotoConfirmationStep;