@zealicsolutions/web-ui 0.1.5 → 0.1.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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +3 -5
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +4 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/fieldsConfiguration/types.d.ts +3 -5
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +4 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/index.d.ts +7 -6
- package/package.json +1 -1
@@ -1,9 +1,10 @@
|
|
1
1
|
import { SelectOption } from 'atoms/Select/types';
|
2
2
|
import { ControllerProps } from 'react-hook-form';
|
3
3
|
export declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
|
4
|
-
export declare type FieldTypes = 'input' | 'select' | '
|
5
|
-
export declare type UIField<T = string> = (UIInputField
|
4
|
+
export declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
5
|
+
export declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
6
6
|
name: T;
|
7
|
+
type: FieldTypes;
|
7
8
|
value?: string;
|
8
9
|
label?: string;
|
9
10
|
placeholder?: string;
|
@@ -14,16 +15,13 @@ export declare type UIField<T = string> = (UIInputField | UISelectField | UIChec
|
|
14
15
|
order?: number;
|
15
16
|
};
|
16
17
|
export declare type UIInputField = {
|
17
|
-
type: 'input';
|
18
18
|
inputType?: InputFieldTypes;
|
19
19
|
maxLength?: number;
|
20
20
|
};
|
21
21
|
export declare type UISelectField = {
|
22
|
-
type: 'select';
|
23
22
|
options: SelectOption[];
|
24
23
|
};
|
25
24
|
export declare type UICheckboxField = {
|
26
|
-
type: 'checkbox';
|
27
25
|
checkboxLabel?: string;
|
28
26
|
};
|
29
27
|
export declare type UIFields<T extends object> = UIField<keyof T>[];
|
@@ -5,7 +5,10 @@ export declare type AcquisitionFormProps<T extends object> = {
|
|
5
5
|
fields: UIFields<T>;
|
6
6
|
logoUrl: string;
|
7
7
|
isLoading?: boolean;
|
8
|
+
title: string;
|
9
|
+
description?: string;
|
10
|
+
buttonText?: string;
|
8
11
|
onSubmit: (values: T) => void;
|
9
12
|
onLinkButtonClick?: Callback;
|
10
13
|
};
|
11
|
-
export declare const AcquisitionForm: <T extends object>({ logoUrl, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
14
|
+
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends object>({ logoUrl, fields, onSubmit, onLinkButtonClick, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
6
|
+
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -276,9 +276,10 @@ declare const InputField: ({ control, name, inputProps, styles, labelsProps, def
|
|
276
276
|
declare const getFieldPlaceholder: (type: FieldTypes$1, title?: string) => string;
|
277
277
|
|
278
278
|
declare type InputFieldTypes = 'number' | 'text' | 'email' | 'password';
|
279
|
-
declare type FieldTypes = 'input' | 'select' | '
|
280
|
-
declare type UIField<T = string> = (UIInputField
|
279
|
+
declare type FieldTypes = 'input' | 'select' | 'checkbox';
|
280
|
+
declare type UIField<T = string> = (UIInputField & UISelectField & UICheckboxField) & {
|
281
281
|
name: T;
|
282
|
+
type: FieldTypes;
|
282
283
|
value?: string;
|
283
284
|
label?: string;
|
284
285
|
placeholder?: string;
|
@@ -289,16 +290,13 @@ declare type UIField<T = string> = (UIInputField | UISelectField | UICheckboxFie
|
|
289
290
|
order?: number;
|
290
291
|
};
|
291
292
|
declare type UIInputField = {
|
292
|
-
type: 'input';
|
293
293
|
inputType?: InputFieldTypes;
|
294
294
|
maxLength?: number;
|
295
295
|
};
|
296
296
|
declare type UISelectField = {
|
297
|
-
type: 'select';
|
298
297
|
options: SelectOption$1[];
|
299
298
|
};
|
300
299
|
declare type UICheckboxField = {
|
301
|
-
type: 'checkbox';
|
302
300
|
checkboxLabel?: string;
|
303
301
|
};
|
304
302
|
declare type UIFields<T extends object> = UIField<keyof T>[];
|
@@ -461,10 +459,13 @@ declare type AcquisitionFormProps<T extends object> = {
|
|
461
459
|
fields: UIFields<T>;
|
462
460
|
logoUrl: string;
|
463
461
|
isLoading?: boolean;
|
462
|
+
title: string;
|
463
|
+
description?: string;
|
464
|
+
buttonText?: string;
|
464
465
|
onSubmit: (values: T) => void;
|
465
466
|
onLinkButtonClick?: Callback;
|
466
467
|
};
|
467
|
-
declare const AcquisitionForm: <T extends object>({ logoUrl, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
468
|
+
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
468
469
|
|
469
470
|
declare type LoginFields = {
|
470
471
|
email: string;
|