vrfi-design-system 1.0.6 → 1.0.8

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/dist/favicon.ico CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { default as AuthBanner } from '../../views/Auth/AuthBanner';
2
+ import { default as AuthForm } from '../../views/Auth/AuthForm';
3
+ import { AuthFormProps } from './../../views/Auth/AuthForm/index';
1
4
  import { BaseOptionType } from 'rc-select/lib/Select';
2
5
  import { ButtonType } from 'antd/lib/button';
3
6
  import { CheckboxChangeEvent } from 'antd/es/checkbox';
@@ -18,9 +21,7 @@ import { JSX as JSX_2 } from 'react';
18
21
  import { LoaderSizes } from '../../../enums/LoaderSizes';
19
22
  import { ModalProps as ModalProps_2 } from 'antd/lib/modal';
20
23
  import { MouseEvent as MouseEvent_2 } from 'react';
21
- import { PasswordProps } from 'antd/es/input';
22
24
  import { Radio as Radio_2 } from 'antd';
23
- import { RadioButtonProps as RadioButtonProps_2 } from 'antd/es/radio/radioButton';
24
25
  import { ReactElement } from 'react';
25
26
  import { ReactNode } from 'react';
26
27
  import { SelectProps } from 'antd';
@@ -34,10 +35,15 @@ import { TablePaginationConfig } from 'antd';
34
35
  import { TableProps } from 'antd/lib/table';
35
36
  import { TableProps as TableProps_2 } from 'rc-table/lib/Table';
36
37
  import { TableProps as TableProps_3 } from 'antd';
37
- import { TextAreaProps } from 'antd/lib/input';
38
38
  import { tooltipPosition } from '../../../enums/tooltipPosition';
39
39
  import { UploadFile } from 'antd/lib/upload/interface';
40
40
 
41
+ export { AuthBanner }
42
+
43
+ export { AuthForm }
44
+
45
+ export { AuthFormProps }
46
+
41
47
  export declare interface AvatarCardProps {
42
48
  name: string;
43
49
  backgroundUrl?: string;
@@ -49,8 +55,8 @@ export declare interface AvatarProps {
49
55
  }
50
56
 
51
57
  declare const enum AvatarSize {
52
- SMALL = "small",
53
- LARGE = "large"
58
+ SMALL = 'small',
59
+ LARGE = 'large'
54
60
  }
55
61
 
56
62
  export declare function AvatarWithDetailsCard(props: AvatarCardProps): default_2.JSX.Element;
@@ -91,7 +97,7 @@ export declare interface CheckboxProps {
91
97
  export declare const CustomAvatar: ({ name, size, imageUrl, isExtra }: CustomAvatarProps) => default_2.JSX.Element;
92
98
 
93
99
  export declare type CustomAvatarProps = {
94
- name?: string;
100
+ name: string;
95
101
  size: AvatarSize;
96
102
  imageUrl?: string;
97
103
  isExtra?: boolean;
@@ -101,11 +107,9 @@ export declare interface CustomInputProps {
101
107
  label: string;
102
108
  name: string;
103
109
  rules?: Record<string, any>;
104
- placeholder: string;
110
+ placeholder?: string;
105
111
  type: string;
106
- error: string;
107
- hasError: boolean;
108
- customOnChange: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
112
+ customonchange?: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
109
113
  }
110
114
 
111
115
  export declare const DatePickerField: {
@@ -121,12 +125,12 @@ export declare interface DatePickerProps {
121
125
  export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
122
126
 
123
127
  declare enum DocumentStatusEnum {
124
- PENDING = "Pending",
125
- UPLOADED = "Uploaded"
128
+ PENDING = "pending",
129
+ UPLOADED = "uploaded"
126
130
  }
127
131
 
128
132
  export declare type DocumentStatusTypes = {
129
- DocumentType: DocumentStatusEnum;
133
+ documentType: DocumentStatusEnum;
130
134
  };
131
135
 
132
136
  export declare const Drawer: FC<DrawerProps>;
@@ -161,13 +165,12 @@ export declare interface ErrorMessageProps {
161
165
  message: string;
162
166
  }
163
167
 
164
- export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadText, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
168
+ export declare const FileUpload: ({ children, actionURL, dragdrop, uploadIcon, uploadHint, fileTypes, multiple, maxCount, handleChange, supportedFileType }: FileUploadProps) => default_2.JSX.Element;
165
169
 
166
170
  export declare interface FileUploadProps {
167
171
  children?: default_2.ReactNode;
168
172
  dragdrop?: boolean;
169
173
  uploadIcon?: ReactNode;
170
- uploadText?: ReactNode;
171
174
  uploadHint?: ReactNode;
172
175
  fileTypes?: string;
173
176
  actionURL?: string;
@@ -201,13 +204,7 @@ export declare interface INotification {
201
204
  type: string;
202
205
  }
203
206
 
204
- export declare const InputField: {
205
- ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & InputProps): default_2.JSX.Element;
206
- password: ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & PasswordProps) => default_2.JSX.Element;
207
- TextArea: ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & TextAreaProps) => default_2.JSX.Element;
208
- DatePicker: (props: CustomInputProps & DatePickerProps_2 & DatePickerProps_2) => default_2.JSX.Element;
209
- Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
210
- };
207
+ export declare const InputField: ({ label, type, placeholder, ...rest }: CustomInputProps & InputProps) => default_2.JSX.Element;
211
208
 
212
209
  export declare const Loader: default_2.FC<LoaderProps>;
213
210
 
@@ -254,11 +251,11 @@ declare interface RadioButtonProps {
254
251
 
255
252
  export declare type RadioProps = RadioButtonProps & ComponentProps<typeof Radio_2.Group>;
256
253
 
257
- declare type RadioProps_2 = RadioButtonProps_2 & ComponentProps<typeof Radio_2.Group>;
258
-
259
254
  export declare interface SearchComponentProps {
260
255
  onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
261
- searchValue: string;
256
+ value: string | number;
257
+ placeholder: string;
258
+ onClear: () => void;
262
259
  }
263
260
 
264
261
  export declare const SearchField: FC<SearchComponentProps>;
@@ -277,13 +274,13 @@ export declare interface StepperProps extends StepsProps {
277
274
  destroyOnChange?: boolean;
278
275
  }
279
276
 
280
- export declare const Table: <T extends object>({ pagination, ...props }: TableProps_3<T>) => default_2.JSX.Element;
277
+ export declare const Table: <T extends object>(props: TableProps_3<T>) => default_2.JSX.Element;
281
278
 
282
279
  export declare const TableComponent: FC<TableComponentProps>;
283
280
 
284
281
  export declare interface TableComponentProps extends TableProps<any> {
285
- className?: string;
286
282
  dataSource: any[] | undefined;
283
+ type?: TableType;
287
284
  pagination?: false | TablePaginationConfig | undefined;
288
285
  loading?: boolean;
289
286
  onRow?: any;
@@ -296,6 +293,11 @@ export declare interface TableComponentProps extends TableProps<any> {
296
293
  size?: SizeType;
297
294
  }
298
295
 
296
+ declare const enum TableType {
297
+ DEFAULT = "default",
298
+ NO_DESIGN = "noDesign",
299
+ }
300
+
299
301
  export declare const Tooltip: FC<TooltipProps>;
300
302
 
301
303
  declare interface TooltipProps {
@@ -315,9 +317,9 @@ export declare type VerificationStatusProps = {
315
317
  };
316
318
 
317
319
  declare enum VerificationTypes {
318
- NEW = "New",
319
- VERIFIED = "Verified",
320
- REJECTED = "Rejected"
320
+ NEW = "new",
321
+ VERIFIED = "verified",
322
+ REJECTED = "rejected"
321
323
  }
322
324
 
323
325
  export { }