vrfi-design-system 1.0.5 → 1.0.7
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/index.d.ts +23 -9
- package/dist/main.es.js +5869 -5868
- package/dist/main.umd.js +77 -77
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthBanner } from '../../views/Auth/AuthBanner';
|
|
1
|
+
import { default as AuthBanner } from '../../views/Auth/AuthBanner';
|
|
2
2
|
import { default as AuthForm } from '../../views/Auth/AuthForm';
|
|
3
3
|
import { AuthFormProps } from './../../views/Auth/AuthForm/index';
|
|
4
4
|
import { BaseOptionType } from 'rc-select/lib/Select';
|
|
@@ -7,12 +7,14 @@ import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
|
|
7
7
|
import { CheckboxGroupProps } from 'antd/es/checkbox';
|
|
8
8
|
import { CheckboxOptionType } from 'antd/lib/checkbox/Group';
|
|
9
9
|
import { ComponentProps } from 'react';
|
|
10
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
10
11
|
import { DatePickerProps as DatePickerProps_2 } from 'antd';
|
|
11
12
|
import { default as default_2 } from 'react';
|
|
12
13
|
import { default as default_3 } from 'dayjs';
|
|
13
14
|
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
14
15
|
import { DrawerProps as DrawerProps_2 } from 'antd';
|
|
15
16
|
import { FC } from 'react';
|
|
17
|
+
import { FieldValues } from 'react-hook-form';
|
|
16
18
|
import { FilterValue } from 'antd/lib/table/interface';
|
|
17
19
|
import { InputProps } from 'antd/lib';
|
|
18
20
|
import { JSX as JSX_2 } from 'react';
|
|
@@ -106,14 +108,13 @@ export declare type CustomAvatarProps = {
|
|
|
106
108
|
|
|
107
109
|
export declare interface CustomInputProps {
|
|
108
110
|
label: string;
|
|
109
|
-
control?: any;
|
|
110
111
|
name: string;
|
|
111
112
|
rules?: Record<string, any>;
|
|
112
113
|
placeholder: string;
|
|
113
114
|
type: string;
|
|
114
115
|
error: string;
|
|
115
116
|
hasError: boolean;
|
|
116
|
-
customOnChange: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field:
|
|
117
|
+
customOnChange: (event: default_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | default_3.Dayjs | null, field: ControllerRenderProps<FieldValues, string>) => void;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
export declare const DatePickerField: {
|
|
@@ -129,8 +130,8 @@ export declare interface DatePickerProps {
|
|
|
129
130
|
export declare function DocumentStatus(props: DocumentStatusTypes): default_2.JSX.Element;
|
|
130
131
|
|
|
131
132
|
declare enum DocumentStatusEnum {
|
|
132
|
-
PENDING = "
|
|
133
|
-
UPLOADED = "
|
|
133
|
+
PENDING = "pending",
|
|
134
|
+
UPLOADED = "uploaded"
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
export declare type DocumentStatusTypes = {
|
|
@@ -153,7 +154,7 @@ export declare interface DrawerProps {
|
|
|
153
154
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
154
155
|
}
|
|
155
156
|
|
|
156
|
-
declare const Dropdown: <ValueType, OptionType extends
|
|
157
|
+
declare const Dropdown: <ValueType, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>({ title, ...props }: DropdownProps<ValueType, OptionType>) => default_2.JSX.Element;
|
|
157
158
|
|
|
158
159
|
export declare const DropdownField: (props: FormDropdown) => default_2.JSX.Element;
|
|
159
160
|
|
|
@@ -215,6 +216,7 @@ export declare const InputField: {
|
|
|
215
216
|
TextArea: ({ label, type, placeholder, hasError, ...rest }: CustomInputProps & TextAreaProps) => default_2.JSX.Element;
|
|
216
217
|
DatePicker: (props: CustomInputProps & DatePickerProps_2 & DatePickerProps_2) => default_2.JSX.Element;
|
|
217
218
|
Radio: (props: CustomInputProps & RadioProps_2) => default_2.JSX.Element;
|
|
219
|
+
Select: (props: SelectPropsBase) => default_2.JSX.Element;
|
|
218
220
|
};
|
|
219
221
|
|
|
220
222
|
export declare const Loader: default_2.FC<LoaderProps>;
|
|
@@ -271,6 +273,18 @@ export declare interface SearchComponentProps {
|
|
|
271
273
|
|
|
272
274
|
export declare const SearchField: FC<SearchComponentProps>;
|
|
273
275
|
|
|
276
|
+
declare interface SelectPropsBase extends SelectProps {
|
|
277
|
+
control: any;
|
|
278
|
+
name: string;
|
|
279
|
+
rules: Record<string, any>;
|
|
280
|
+
error: string;
|
|
281
|
+
hasError: boolean;
|
|
282
|
+
options: {
|
|
283
|
+
key: string;
|
|
284
|
+
label: string;
|
|
285
|
+
}[];
|
|
286
|
+
}
|
|
287
|
+
|
|
274
288
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
275
289
|
|
|
276
290
|
declare interface StepItem extends StepProps {
|
|
@@ -323,9 +337,9 @@ export declare type VerificationStatusProps = {
|
|
|
323
337
|
};
|
|
324
338
|
|
|
325
339
|
declare enum VerificationTypes {
|
|
326
|
-
NEW = "
|
|
327
|
-
VERIFIED = "
|
|
328
|
-
REJECTED = "
|
|
340
|
+
NEW = "new",
|
|
341
|
+
VERIFIED = "verified",
|
|
342
|
+
REJECTED = "rejected"
|
|
329
343
|
}
|
|
330
344
|
|
|
331
345
|
export { }
|