@zealicsolutions/web-ui 0.1.24 → 0.1.25
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Select/types.d.ts +1 -1
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +1 -1
- 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/cjs/src/organisms/Consent/Consent.d.ts +3 -1
- package/dist/cjs/src/organisms/Consent/Consent.stories.d.ts +1 -1
- package/dist/cjs/src/organisms/Consent/ConsentCapture.d.ts +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Select/types.d.ts +1 -1
- package/dist/esm/src/fieldsConfiguration/types.d.ts +1 -1
- 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/esm/src/organisms/Consent/Consent.d.ts +3 -1
- package/dist/esm/src/organisms/Consent/Consent.stories.d.ts +1 -1
- package/dist/esm/src/organisms/Consent/ConsentCapture.d.ts +5 -5
- package/dist/index.d.ts +11 -5
- package/package.json +1 -1
@@ -1,14 +1,17 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { ConsentProps } from 'organisms';
|
2
3
|
import type { Callback } from 'typescript';
|
3
4
|
import { UIFields } from '../../fieldsConfiguration';
|
4
5
|
export declare type AcquisitionFormProps<T extends object> = {
|
5
6
|
fields: UIFields<T>;
|
7
|
+
consents: ConsentProps[];
|
6
8
|
logoUrl: string;
|
7
9
|
isLoading?: boolean;
|
10
|
+
isSubmitDisabled?: boolean;
|
8
11
|
title: string;
|
9
12
|
description?: string;
|
10
13
|
buttonText?: string;
|
11
14
|
onSubmit: (values: T) => void;
|
12
15
|
onLinkButtonClick?: Callback;
|
13
16
|
};
|
14
|
-
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
17
|
+
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, 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, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
6
|
+
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
|
@@ -3,7 +3,9 @@ import { CSSProperties } from 'styled-components';
|
|
3
3
|
import { ConsentCaptureProps } from './ConsentCapture';
|
4
4
|
export declare type ConsentProps<T extends string = string> = {
|
5
5
|
text: string;
|
6
|
+
isRequired?: boolean;
|
6
7
|
consentCaptureProps: ConsentCaptureProps<T>;
|
7
8
|
containerStyles?: CSSProperties;
|
9
|
+
clearStyles?: boolean;
|
8
10
|
};
|
9
|
-
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, }: ConsentProps<T>) => JSX.Element;
|
11
|
+
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { Consent as ConsentComponent } from './Consent';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({ text, consentCaptureProps, containerStyles, }: import("./Consent").ConsentProps<T>) => JSX.Element;
|
6
|
+
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("./Consent").ConsentProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Consent: ComponentStory<typeof ConsentComponent>;
|
@@ -1,14 +1,15 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ButtonProps, RadioButtonsProps } from 'atoms';
|
3
|
-
declare type ButtonCaptureProps = {
|
3
|
+
export declare type ButtonCaptureProps = {
|
4
4
|
type: 'button';
|
5
|
-
|
5
|
+
acceptButton: ButtonProps;
|
6
6
|
denyButton: ButtonProps;
|
7
7
|
};
|
8
|
-
declare type RadioButtonsCaptureProps<T extends string> = {
|
8
|
+
export declare type RadioButtonsCaptureProps<T extends string> = {
|
9
9
|
type: 'radioButton';
|
10
|
+
acceptValue: T;
|
10
11
|
} & RadioButtonsProps<T>;
|
11
|
-
declare type CheckboxCaptureProps = {
|
12
|
+
export declare type CheckboxCaptureProps = {
|
12
13
|
type: 'checkbox';
|
13
14
|
label: string;
|
14
15
|
value: boolean;
|
@@ -16,4 +17,3 @@ declare type CheckboxCaptureProps = {
|
|
16
17
|
};
|
17
18
|
export declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
18
19
|
export declare const ConsentCapture: <T extends string>(props: ConsentCaptureProps<T>) => JSX.Element;
|
19
|
-
export {};
|