@techlabi/kycrazy-ui-kit 0.58.0 → 0.59.0-beta.1

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.
Files changed (96) hide show
  1. package/dist/{index.umd.js → assets/index-TY26BbJ5.js} +104 -84
  2. package/dist/index.html +16 -0
  3. package/package.json +1 -1
  4. package/dist/index.es.js +0 -37186
  5. package/dist/types/App.d.ts +0 -3
  6. package/dist/types/components/CameraShotStep.d.ts +0 -13
  7. package/dist/types/components/KYB.d.ts +0 -3
  8. package/dist/types/components/KYC.d.ts +0 -3
  9. package/dist/types/components/operations/finaliseKYB.d.ts +0 -23
  10. package/dist/types/components/operations/updateSection.d.ts +0 -9
  11. package/dist/types/components/steps/AddressStep.d.ts +0 -36
  12. package/dist/types/components/steps/DocumentSelectionStep.d.ts +0 -17
  13. package/dist/types/components/steps/DoneStep.d.ts +0 -6
  14. package/dist/types/components/steps/KycStepCardHeader.d.ts +0 -7
  15. package/dist/types/components/steps/LandingStep.d.ts +0 -8
  16. package/dist/types/components/steps/ProcessingStep.d.ts +0 -7
  17. package/dist/types/components/steps/kyb/BusinessInformationStep.d.ts +0 -43
  18. package/dist/types/components/steps/kyb/CompanyActivityStep.d.ts +0 -32
  19. package/dist/types/components/steps/kyb/CompanyDocumentsStep.d.ts +0 -13
  20. package/dist/types/components/steps/kyb/PersonalDetailsStep.d.ts +0 -44
  21. package/dist/types/components/steps/kyb/QuestionaryStep.d.ts +0 -93
  22. package/dist/types/components/steps/kyc/NameStep.d.ts +0 -20
  23. package/dist/types/components/steps/kyc/PreSelfieStep.d.ts +0 -7
  24. package/dist/types/components/steps/kyc/VerifyStep.d.ts +0 -10
  25. package/dist/types/components/ui/CountrySelect.d.ts +0 -11
  26. package/dist/types/components/ui/FileUpploadField.d.ts +0 -22
  27. package/dist/types/components/ui/Loading.d.ts +0 -1
  28. package/dist/types/components/ui/MccCodeSelect.d.ts +0 -13
  29. package/dist/types/components/ui/PhoneNumberInput.d.ts +0 -9
  30. package/dist/types/components/ui/SelectWithCustomOption.d.ts +0 -12
  31. package/dist/types/components/ui/accordion.d.ts +0 -7
  32. package/dist/types/components/ui/alert-dialog.d.ts +0 -20
  33. package/dist/types/components/ui/alert.d.ts +0 -8
  34. package/dist/types/components/ui/aspect-ratio.d.ts +0 -3
  35. package/dist/types/components/ui/avatar.d.ts +0 -6
  36. package/dist/types/components/ui/badge.d.ts +0 -9
  37. package/dist/types/components/ui/breadcrumb.d.ts +0 -19
  38. package/dist/types/components/ui/button.d.ts +0 -11
  39. package/dist/types/components/ui/calendar.d.ts +0 -10
  40. package/dist/types/components/ui/card.d.ts +0 -8
  41. package/dist/types/components/ui/carousel.d.ts +0 -18
  42. package/dist/types/components/ui/chart.d.ts +0 -62
  43. package/dist/types/components/ui/checkbox.d.ts +0 -4
  44. package/dist/types/components/ui/collapsible.d.ts +0 -5
  45. package/dist/types/components/ui/command.d.ts +0 -82
  46. package/dist/types/components/ui/context-menu.d.ts +0 -27
  47. package/dist/types/components/ui/dialog.d.ts +0 -19
  48. package/dist/types/components/ui/drawer.d.ts +0 -22
  49. package/dist/types/components/ui/dropdown-menu.d.ts +0 -27
  50. package/dist/types/components/ui/form.d.ts +0 -23
  51. package/dist/types/components/ui/hover-card.d.ts +0 -6
  52. package/dist/types/components/ui/input-otp.d.ts +0 -34
  53. package/dist/types/components/ui/input.d.ts +0 -3
  54. package/dist/types/components/ui/label.d.ts +0 -5
  55. package/dist/types/components/ui/navigation-menu.d.ts +0 -12
  56. package/dist/types/components/ui/pagination.d.ts +0 -28
  57. package/dist/types/components/ui/popover.d.ts +0 -9
  58. package/dist/types/components/ui/progress.d.ts +0 -4
  59. package/dist/types/components/ui/radio-group.d.ts +0 -5
  60. package/dist/types/components/ui/resizable.d.ts +0 -23
  61. package/dist/types/components/ui/scroll-area.d.ts +0 -5
  62. package/dist/types/components/ui/select.d.ts +0 -13
  63. package/dist/types/components/ui/separator.d.ts +0 -4
  64. package/dist/types/components/ui/sheet.d.ts +0 -25
  65. package/dist/types/components/ui/sidebar.d.ts +0 -66
  66. package/dist/types/components/ui/skeleton.d.ts +0 -2
  67. package/dist/types/components/ui/slider.d.ts +0 -4
  68. package/dist/types/components/ui/sonner.d.ts +0 -4
  69. package/dist/types/components/ui/switch.d.ts +0 -4
  70. package/dist/types/components/ui/table.d.ts +0 -10
  71. package/dist/types/components/ui/tabs.d.ts +0 -7
  72. package/dist/types/components/ui/textarea.d.ts +0 -5
  73. package/dist/types/components/ui/toast.d.ts +0 -15
  74. package/dist/types/components/ui/toaster.d.ts +0 -1
  75. package/dist/types/components/ui/toggle-group.d.ts +0 -12
  76. package/dist/types/components/ui/toggle.d.ts +0 -12
  77. package/dist/types/components/ui/tooltip.d.ts +0 -7
  78. package/dist/types/components/ui/use-toast.d.ts +0 -2
  79. package/dist/types/context/ApiContext.d.ts +0 -11
  80. package/dist/types/hooks/use-camera.d.ts +0 -20
  81. package/dist/types/hooks/use-is-mobile.d.ts +0 -1
  82. package/dist/types/hooks/use-mcc-codes.d.ts +0 -5
  83. package/dist/types/hooks/use-mobile.d.ts +0 -1
  84. package/dist/types/hooks/use-settings.d.ts +0 -2
  85. package/dist/types/hooks/use-toast.d.ts +0 -44
  86. package/dist/types/index.d.ts +0 -2
  87. package/dist/types/lib/utils.d.ts +0 -2
  88. package/dist/types/main.d.ts +0 -0
  89. package/dist/types/types.d.ts +0 -116
  90. package/dist/types/utils/convertHeicToJpeg.d.ts +0 -1
  91. package/dist/types/utils/fonrmatFIleSize.d.ts +0 -1
  92. package/dist/types/utils/handleError.d.ts +0 -1
  93. package/dist/types/utils/imageValidator.d.ts +0 -23
  94. package/dist/types/utils/utils.d.ts +0 -2
  95. package/dist/types/utils/validateFiles.d.ts +0 -10
  96. /package/dist/{style.css → assets/index-CVYuvRYe.css} +0 -0
@@ -1,3 +0,0 @@
1
- import { KYCrazyProps } from './types';
2
- declare const App: React.FC<KYCrazyProps>;
3
- export default App;
@@ -1,13 +0,0 @@
1
- import { KYBStep, KYCStep } from '../types';
2
- import { documentIds } from './steps/DocumentSelectionStep';
3
- declare const CameraShotStep: ({ currentStep, onRetake, onConfirm, onBack, title, description, frameType, documentTypeId, }: {
4
- currentStep: KYCStep | KYBStep;
5
- onRetake: () => void;
6
- onConfirm: (file: File, onProgress: (percent: number) => void) => Promise<void>;
7
- onBack: () => void;
8
- title: string;
9
- description: string;
10
- frameType: "circular" | "rectangular";
11
- documentTypeId?: documentIds;
12
- }) => import("react/jsx-runtime").JSX.Element;
13
- export default CameraShotStep;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { KYCrazyProps } from '../types';
3
- export declare const KYB: React.FC<KYCrazyProps>;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { KYCrazyProps } from '../types';
3
- export declare const KYC: React.FC<KYCrazyProps>;
@@ -1,23 +0,0 @@
1
- import { KYBStep } from '../../types';
2
- import { documentIds } from '../steps/DocumentSelectionStep';
3
- interface ValidateAndSubmitProps {
4
- kybId: string | null;
5
- apiEndpoint: string;
6
- apiKey: string;
7
- personalDetails: any;
8
- selectedDocumentType: documentIds | '';
9
- businessInformation: any;
10
- businessAddress: any;
11
- companyActivity: any;
12
- questionary: any;
13
- companyDocuments: any;
14
- settingsData: any;
15
- setCurrentStep: (step: KYBStep) => void;
16
- toast: (options: {
17
- title: string;
18
- description: string;
19
- variant: 'destructive';
20
- }) => void;
21
- }
22
- export declare const finaliseKYB: ({ kybId, apiEndpoint, apiKey, personalDetails, selectedDocumentType, businessInformation, businessAddress, companyActivity, questionary, companyDocuments, settingsData, setCurrentStep, toast, }: ValidateAndSubmitProps) => Promise<boolean>;
23
- export {};
@@ -1,9 +0,0 @@
1
- export type ComplianceFlow = 'kyc' | 'kyb';
2
- export interface UpdateSectionOptions {
3
- apiEndpoint: string;
4
- apiKey: string;
5
- id: string;
6
- flow: ComplianceFlow;
7
- onProgress?: (percent: number) => void;
8
- }
9
- export declare const updateSection: (section: string, data: Record<string, any>, files: Record<string, File | File[] | null | undefined>, opts: UpdateSectionOptions, signal?: AbortSignal) => Promise<boolean>;
@@ -1,36 +0,0 @@
1
- import { default as React } from 'react';
2
- import { z } from 'zod';
3
- declare const businessAddressSchema: z.ZodObject<{
4
- street: z.ZodString;
5
- number: z.ZodOptional<z.ZodString>;
6
- postal_code: z.ZodString;
7
- city: z.ZodString;
8
- address_country: z.ZodString;
9
- state: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- number?: string;
12
- state?: string;
13
- street?: string;
14
- postal_code?: string;
15
- city?: string;
16
- address_country?: string;
17
- }, {
18
- number?: string;
19
- state?: string;
20
- street?: string;
21
- postal_code?: string;
22
- city?: string;
23
- address_country?: string;
24
- }>;
25
- type BusinessAddressFormData = z.infer<typeof businessAddressSchema>;
26
- type AddressData = BusinessAddressFormData;
27
- interface AddressStepProps {
28
- data: AddressData;
29
- isBusinessAddress: boolean;
30
- onDataChange: (data: Partial<AddressData>) => void;
31
- onContinue: (formData: AddressData) => void;
32
- onBack: () => void;
33
- renderProgress: () => React.ReactNode;
34
- }
35
- declare const AddressStep: React.FC<AddressStepProps>;
36
- export default AddressStep;
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DocumentSelectionStepProps {
3
- selectedDocumentType: string;
4
- onDocumentTypeChange: (type: documentIds) => void;
5
- onContinue: () => void;
6
- onBack: () => void;
7
- renderProgress: () => React.ReactNode;
8
- }
9
- export declare const documentTypes: {
10
- id: string;
11
- title: string;
12
- description: string;
13
- icon: React.ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
- }[];
15
- export type documentIds = 'id' | 'license' | 'passport' | 'voterId';
16
- declare const DocumentSelectionStep: React.FC<DocumentSelectionStepProps>;
17
- export default DocumentSelectionStep;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DoneStepProps {
3
- onDoneClick?: () => void;
4
- }
5
- declare const DoneStep: React.FC<DoneStepProps>;
6
- export default DoneStep;
@@ -1,7 +0,0 @@
1
- interface KycStepCardHeaderProps {
2
- title: string;
3
- subTitle: string;
4
- onBack: () => void;
5
- }
6
- declare const KycStepCardHeader: React.FC<KycStepCardHeaderProps>;
7
- export default KycStepCardHeader;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- interface LandingStepProps {
3
- title?: string;
4
- subtitle?: string;
5
- onContinue: () => void;
6
- }
7
- declare const LandingStep: React.FC<LandingStepProps>;
8
- export default LandingStep;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ProcessingStepProps {
3
- onComplete: () => Promise<void> | void;
4
- onError?: () => void;
5
- }
6
- declare const ProcessingStep: React.FC<ProcessingStepProps>;
7
- export default ProcessingStep;
@@ -1,43 +0,0 @@
1
- import { default as React } from 'react';
2
- import { z } from 'zod';
3
- import { KYBBusinessInformation } from '../../../types';
4
- declare const businessInformationSchema: z.ZodObject<{
5
- registration_number: z.ZodString;
6
- mcc_code: z.ZodString;
7
- country: z.ZodString;
8
- company_name: z.ZodString;
9
- tax_identity_number: z.ZodString;
10
- doing_business_as: z.ZodString;
11
- corporate_type: z.ZodString;
12
- date_of_establishment: z.ZodDate;
13
- }, "strip", z.ZodTypeAny, {
14
- country?: string;
15
- registration_number?: string;
16
- mcc_code?: string;
17
- company_name?: string;
18
- tax_identity_number?: string;
19
- doing_business_as?: string;
20
- corporate_type?: string;
21
- date_of_establishment?: Date;
22
- }, {
23
- country?: string;
24
- registration_number?: string;
25
- mcc_code?: string;
26
- company_name?: string;
27
- tax_identity_number?: string;
28
- doing_business_as?: string;
29
- corporate_type?: string;
30
- date_of_establishment?: Date;
31
- }>;
32
- type BusinessInformationFormData = z.infer<typeof businessInformationSchema>;
33
- interface BusinessInformationStepProps {
34
- data: KYBBusinessInformation;
35
- onDataChange: (data: Partial<BusinessInformationFormData>) => void;
36
- onContinue: (formData: BusinessInformationFormData) => void;
37
- onBack: () => void;
38
- renderProgress: () => React.ReactNode;
39
- apiEndpoint: string;
40
- apiKey: string;
41
- }
42
- declare const BusinessInformationStep: React.FC<BusinessInformationStepProps>;
43
- export default BusinessInformationStep;
@@ -1,32 +0,0 @@
1
- import { default as React } from 'react';
2
- import { z } from 'zod';
3
- import { KYBCompanyActivity } from '../../../types';
4
- declare const companyActivitySchema: z.ZodObject<{
5
- industry: z.ZodString;
6
- business_model: z.ZodString;
7
- avg_transaction_size: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
8
- monthly_sales_volume: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
- website_url: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- industry?: string;
12
- business_model?: string;
13
- avg_transaction_size?: string;
14
- monthly_sales_volume?: string;
15
- website_url?: string;
16
- }, {
17
- industry?: string;
18
- business_model?: string;
19
- avg_transaction_size?: string;
20
- monthly_sales_volume?: string;
21
- website_url?: string;
22
- }>;
23
- type CompanyActivityFormData = z.infer<typeof companyActivitySchema>;
24
- interface CompanyActivityStepProps {
25
- data: KYBCompanyActivity;
26
- onDataChange: (data: Partial<CompanyActivityFormData>) => void;
27
- onContinue: (formData: CompanyActivityFormData) => void;
28
- onBack: () => void;
29
- renderProgress: () => React.ReactNode;
30
- }
31
- declare const CompanyActivityStep: React.FC<CompanyActivityStepProps>;
32
- export default CompanyActivityStep;
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { KYBCompanyDocuments } from '../../../types';
3
- type DocumentFieldKey = 'bank_statement' | 'company_structure' | 'certificate_of_registration' | 'business_license' | 'void_cheque';
4
- interface CompanyDocumentsStepProps {
5
- data: KYBCompanyDocuments;
6
- onDataChange: (data: Partial<Record<DocumentFieldKey, File[]>>) => void;
7
- onContinue: (formData: Record<DocumentFieldKey, File[]>) => void;
8
- onBack: () => void;
9
- renderProgress: () => React.ReactNode;
10
- companyDocumentsTypes?: DocumentFieldKey[];
11
- }
12
- declare const CompanyDocumentsStep: React.FC<CompanyDocumentsStepProps>;
13
- export default CompanyDocumentsStep;
@@ -1,44 +0,0 @@
1
- import { default as React } from 'react';
2
- import { z } from 'zod';
3
- import { KYBPersonalDetails } from '../../../types';
4
- declare const personalDetailsSchema: z.ZodEffects<z.ZodObject<{
5
- full_name: z.ZodString;
6
- title: z.ZodString;
7
- email: z.ZodOptional<z.ZodString>;
8
- birth: z.ZodEffects<z.ZodDate, Date, Date>;
9
- phone_number: z.ZodEffects<z.ZodString, string, string>;
10
- }, "strip", z.ZodTypeAny, {
11
- title?: string;
12
- email?: string;
13
- birth?: Date;
14
- full_name?: string;
15
- phone_number?: string;
16
- }, {
17
- title?: string;
18
- email?: string;
19
- birth?: Date;
20
- full_name?: string;
21
- phone_number?: string;
22
- }>, {
23
- title?: string;
24
- email?: string;
25
- birth?: Date;
26
- full_name?: string;
27
- phone_number?: string;
28
- }, {
29
- title?: string;
30
- email?: string;
31
- birth?: Date;
32
- full_name?: string;
33
- phone_number?: string;
34
- }>;
35
- type PersonalDetailsFormData = z.infer<typeof personalDetailsSchema>;
36
- interface PersonalDetailsStepProps {
37
- data: KYBPersonalDetails;
38
- onDataChange: (data: Partial<PersonalDetailsFormData>) => void;
39
- onContinue: (formData: PersonalDetailsFormData) => void;
40
- onBack: () => void;
41
- renderProgress: () => React.ReactNode;
42
- }
43
- declare const PersonalDetailsStep: React.FC<PersonalDetailsStepProps>;
44
- export default PersonalDetailsStep;
@@ -1,93 +0,0 @@
1
- import { default as React } from 'react';
2
- import { z } from 'zod';
3
- declare const questionarySchema: z.ZodEffects<z.ZodObject<{
4
- inventory_maintained: z.ZodString;
5
- offsite_address: z.ZodOptional<z.ZodString>;
6
- fulfillment_agreement: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
7
- other_companies_involved: z.ZodString;
8
- other_fulfillment_agreement: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
9
- recurring_services: z.ZodString;
10
- recurring_services_description: z.ZodOptional<z.ZodString>;
11
- fulfillment_time: z.ZodString;
12
- delivery_time: z.ZodString;
13
- charge_time: z.ZodString;
14
- return_policy: z.ZodString;
15
- bankruptcy_filed: z.ZodString;
16
- was_terminated_from_card_acceptance: z.ZodString;
17
- has_coa: z.ZodString;
18
- coa_document: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
19
- }, "strip", z.ZodTypeAny, {
20
- inventory_maintained?: string;
21
- offsite_address?: string;
22
- fulfillment_agreement?: File;
23
- other_companies_involved?: string;
24
- other_fulfillment_agreement?: File;
25
- recurring_services?: string;
26
- recurring_services_description?: string;
27
- fulfillment_time?: string;
28
- delivery_time?: string;
29
- charge_time?: string;
30
- return_policy?: string;
31
- bankruptcy_filed?: string;
32
- was_terminated_from_card_acceptance?: string;
33
- has_coa?: string;
34
- coa_document?: File;
35
- }, {
36
- inventory_maintained?: string;
37
- offsite_address?: string;
38
- fulfillment_agreement?: File;
39
- other_companies_involved?: string;
40
- other_fulfillment_agreement?: File;
41
- recurring_services?: string;
42
- recurring_services_description?: string;
43
- fulfillment_time?: string;
44
- delivery_time?: string;
45
- charge_time?: string;
46
- return_policy?: string;
47
- bankruptcy_filed?: string;
48
- was_terminated_from_card_acceptance?: string;
49
- has_coa?: string;
50
- coa_document?: File;
51
- }>, {
52
- inventory_maintained?: string;
53
- offsite_address?: string;
54
- fulfillment_agreement?: File;
55
- other_companies_involved?: string;
56
- other_fulfillment_agreement?: File;
57
- recurring_services?: string;
58
- recurring_services_description?: string;
59
- fulfillment_time?: string;
60
- delivery_time?: string;
61
- charge_time?: string;
62
- return_policy?: string;
63
- bankruptcy_filed?: string;
64
- was_terminated_from_card_acceptance?: string;
65
- has_coa?: string;
66
- coa_document?: File;
67
- }, {
68
- inventory_maintained?: string;
69
- offsite_address?: string;
70
- fulfillment_agreement?: File;
71
- other_companies_involved?: string;
72
- other_fulfillment_agreement?: File;
73
- recurring_services?: string;
74
- recurring_services_description?: string;
75
- fulfillment_time?: string;
76
- delivery_time?: string;
77
- charge_time?: string;
78
- return_policy?: string;
79
- bankruptcy_filed?: string;
80
- was_terminated_from_card_acceptance?: string;
81
- has_coa?: string;
82
- coa_document?: File;
83
- }>;
84
- type QuestionaryFormData = z.infer<typeof questionarySchema>;
85
- interface QuestionaryStepProps {
86
- data: QuestionaryFormData;
87
- onDataChange: (data: Partial<QuestionaryFormData>) => void;
88
- onContinue: (formData: QuestionaryFormData) => void;
89
- onBack: () => void;
90
- renderProgress: () => React.ReactNode;
91
- }
92
- declare const QuestionaryStep: React.FC<QuestionaryStepProps>;
93
- export default QuestionaryStep;
@@ -1,20 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- interface NameStepProps {
3
- fullName: string;
4
- email: string;
5
- phone?: string;
6
- birth?: Date;
7
- taxIdentificationNumber?: string;
8
- country?: string;
9
- onContinue: (data: {
10
- fullName: string;
11
- email: string;
12
- phone: string;
13
- birth: Date;
14
- tax_identification_number?: string;
15
- country?: string;
16
- }) => void;
17
- renderProgress: () => ReactNode;
18
- }
19
- declare const NameStep: FC<NameStepProps>;
20
- export default NameStep;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface PreSelfieStepProps {
3
- onContinue: () => void;
4
- onBack: () => void;
5
- }
6
- declare const PreSelfieStep: React.FC<PreSelfieStepProps>;
7
- export default PreSelfieStep;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface VerifyStepProps {
3
- fullName: string;
4
- email: string;
5
- phone: string;
6
- onComplete: () => void;
7
- onStartOver: () => void;
8
- }
9
- declare const VerifyStep: React.FC<VerifyStepProps>;
10
- export default VerifyStep;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- export type CountrySelectProps = {
3
- value: string;
4
- onValueChange: (value: string) => void;
5
- placeholder?: string;
6
- disabled?: boolean;
7
- className?: string;
8
- 'data-testid'?: string;
9
- };
10
- export declare const CountrySelect: React.ForwardRefExoticComponent<CountrySelectProps & React.RefAttributes<HTMLButtonElement>>;
11
- export default CountrySelect;
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- interface FileUploadFieldProps {
3
- label: string;
4
- error?: string;
5
- hint?: string;
6
- required?: boolean;
7
- accept?: string;
8
- multiple?: boolean;
9
- maxSize?: number;
10
- maxFiles?: number;
11
- disabled?: boolean;
12
- containerClassName?: string;
13
- isFormatHintVisible?: boolean;
14
- onHeicConversionStart?: (promise: Promise<void>) => void;
15
- isSubmitting?: boolean;
16
- className?: string;
17
- id?: string;
18
- onFileSelect?: (files: FileList | File[] | null) => void;
19
- placeholder?: string;
20
- }
21
- export declare const FileUploadField: React.ForwardRefExoticComponent<FileUploadFieldProps & React.RefAttributes<HTMLInputElement>>;
22
- export {};
@@ -1 +0,0 @@
1
- export declare const Loading: () => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- export type MccCodeSelectProps = {
3
- value: string;
4
- onValueChange: (value: string) => void;
5
- apiEndpoint: string;
6
- apiKey: string;
7
- placeholder?: string;
8
- disabled?: boolean;
9
- className?: string;
10
- 'data-testid'?: string;
11
- };
12
- export declare const MccCodeSelect: React.ForwardRefExoticComponent<MccCodeSelectProps & React.RefAttributes<HTMLButtonElement>>;
13
- export default MccCodeSelect;
@@ -1,9 +0,0 @@
1
- import { FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { CountryCode } from 'libphonenumber-js';
3
- interface Props<T extends FieldValues> extends UseControllerProps<T> {
4
- placeholder?: string;
5
- defaultCountry?: CountryCode;
6
- className?: string;
7
- }
8
- export declare const PhoneNumberInput: <T extends FieldValues>({ placeholder, defaultCountry, className, ...controllerProps }: Props<T>) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,12 +0,0 @@
1
- type Props = {
2
- value: string;
3
- onValueChange: (value: string) => void;
4
- options: {
5
- value: string;
6
- label: string;
7
- }[];
8
- placeholder?: string;
9
- name: string;
10
- };
11
- declare const SelectWithCustomOption: React.FC<Props>;
12
- export default SelectWithCustomOption;
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
- declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
- declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
- declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
- declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const AlertDialogHeader: {
9
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- declare const AlertDialogFooter: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,8 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: {
4
- variant?: "default" | "destructive";
5
- } & import('class-variance-authority/types').ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
6
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
- export { Alert, AlertTitle, AlertDescription };
@@ -1,3 +0,0 @@
1
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
- declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
3
- export { AspectRatio };
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
- declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
- export { Avatar, AvatarImage, AvatarFallback };
@@ -1,9 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const badgeVariants: (props?: {
4
- variant?: "default" | "destructive" | "outline" | "secondary";
5
- } & import('class-variance-authority/types').ClassProp) => string;
6
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
- }
8
- declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
- export { Badge, badgeVariants };
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
3
- separator?: React.ReactNode;
4
- } & React.RefAttributes<HTMLElement>>;
5
- declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
- declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
7
- declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
8
- asChild?: boolean;
9
- } & React.RefAttributes<HTMLAnchorElement>>;
10
- declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
- declare const BreadcrumbSeparator: {
12
- ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
13
- displayName: string;
14
- };
15
- declare const BreadcrumbEllipsis: {
16
- ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
17
- displayName: string;
18
- };
19
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,11 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const buttonVariants: (props?: {
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
5
- size?: "default" | "sm" | "lg" | "icon";
6
- } & import('class-variance-authority/types').ClassProp) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
- asChild?: boolean;
9
- }
10
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
- export { Button, buttonVariants };
@@ -1,10 +0,0 @@
1
- import { DayPicker } from 'react-day-picker';
2
- import * as React from 'react';
3
- export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
- declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps & {
5
- onChange?: React.ChangeEventHandler<HTMLSelectElement>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- declare namespace Calendar {
8
- var displayName: string;
9
- }
10
- export { Calendar };
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
- declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
- declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
- declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
- declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };