@zealicsolutions/web-ui 0.3.18 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +15 -4
- package/dist/cjs/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/cjs/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
- package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/cjs/src/molecules/index.d.ts +1 -0
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/index.d.ts +0 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +15 -4
- package/dist/esm/src/molecules/Consent/Consent.d.ts +28 -0
- package/dist/esm/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
- package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
- package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
- package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/consentMock.d.ts +2 -2
- package/dist/esm/src/molecules/index.d.ts +1 -0
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/index.d.ts +0 -1
- package/dist/index.d.ts +46 -34
- package/package.json +1 -1
- package/dist/cjs/src/organisms/Consent/Consent.d.ts +0 -11
- package/dist/esm/src/organisms/Consent/Consent.d.ts +0 -11
@@ -1,9 +1,9 @@
|
|
1
1
|
import { SelectOption } from 'atoms';
|
2
|
-
import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
2
|
+
import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, Consent, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
3
|
+
import { UseFormReturn } from 'react-hook-form';
|
3
4
|
import { CSSProperties } from 'styled-components';
|
4
5
|
import type { AnyObject, Nullable, StrictUnion } from 'typescript';
|
5
6
|
import { ConditionConfig, ContainerComponentProps } from './types';
|
6
|
-
import { UseFormReturn } from 'react-hook-form';
|
7
7
|
export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
8
8
|
export declare type DownloadFile = {
|
9
9
|
url: string;
|
@@ -74,6 +74,7 @@ export interface DataConnectionAttributes {
|
|
74
74
|
dataModelField: {
|
75
75
|
id: string;
|
76
76
|
fieldName: string;
|
77
|
+
code: string;
|
77
78
|
};
|
78
79
|
}
|
79
80
|
export interface ConditionConfigAttributes {
|
@@ -81,7 +82,7 @@ export interface ConditionConfigAttributes {
|
|
81
82
|
attributeType: 'condition_config';
|
82
83
|
conditionConfig: ConditionConfig;
|
83
84
|
}
|
84
|
-
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
|
85
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
|
85
86
|
export interface BaseMolecule {
|
86
87
|
id: string;
|
87
88
|
instance: 'molecule';
|
@@ -204,7 +205,17 @@ export interface CheckboxFieldMolecule extends BaseMolecule {
|
|
204
205
|
} & CheckboxFieldProps>;
|
205
206
|
};
|
206
207
|
}
|
207
|
-
export
|
208
|
+
export interface ConsentFieldMolecule extends BaseMolecule {
|
209
|
+
type: 'consent';
|
210
|
+
attributes: {
|
211
|
+
consent: {
|
212
|
+
attributeType: 'consent';
|
213
|
+
consent: Consent;
|
214
|
+
required: BooleanAttributes;
|
215
|
+
};
|
216
|
+
};
|
217
|
+
}
|
218
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
|
208
219
|
form?: UseFormReturn<any>;
|
209
220
|
};
|
210
221
|
export {};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
3
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
4
|
+
import { CSSProperties } from 'styled-components';
|
5
|
+
export declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
6
|
+
export declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
7
|
+
export declare type Consent = {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
acknowledgment: CustomDescendant[];
|
11
|
+
methodOfCapture: ConsentCaptureMethod;
|
12
|
+
description: string;
|
13
|
+
language: CustomDescendant[];
|
14
|
+
expiration: string;
|
15
|
+
confirmationButtonText: string;
|
16
|
+
rejectionButtonText: string;
|
17
|
+
defaultSelection: DefaultSelectionType;
|
18
|
+
value?: DefaultSelectionType | boolean;
|
19
|
+
isRequired?: boolean;
|
20
|
+
};
|
21
|
+
export declare type ConsentProps<T extends string = string> = {
|
22
|
+
text: string;
|
23
|
+
isRequired?: boolean;
|
24
|
+
consentCaptureProps: ConsentCaptureProps<T>;
|
25
|
+
containerStyles?: CSSProperties;
|
26
|
+
clearStyles?: boolean;
|
27
|
+
};
|
28
|
+
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { Consent as ConsentComponent } from '
|
3
|
+
import { Consent as ConsentComponent } from 'molecules/Consent/Consent';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("
|
6
|
+
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("molecules/Consent/Consent").ConsentProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Consent: StoryFn<typeof ConsentComponent>;
|
@@ -11,10 +11,11 @@ export declare type RadioButtonsCaptureProps<T extends string> = {
|
|
11
11
|
acceptValue: T;
|
12
12
|
} & RadioButtonsProps<T>;
|
13
13
|
export declare type CheckboxCaptureProps = {
|
14
|
+
id: string;
|
14
15
|
type: 'checkbox';
|
15
16
|
label: string;
|
16
17
|
value: boolean;
|
17
|
-
onChange: (
|
18
|
+
onChange: (id: string) => void;
|
18
19
|
};
|
19
20
|
export declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
20
21
|
export declare const ConsentCapture: <T extends string>(props: ConsentCaptureProps<T>) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ConsentProps } from '
|
2
|
-
import { ConsentCaptureProps } from '
|
1
|
+
import { ConsentProps } from 'molecules';
|
2
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
3
3
|
export declare const consentTextMock = "[{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Please read these terms and conditions (\\\"terms and conditions\\\", \\\"terms\\\") carefully before using [website URL] website (\u201Cwebsite\u201D, \\\"service\\\") operated by [company name] (\\\"us\\\", 'we\\\", \\\"our\\\").\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Conditions of use\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you certify that you have read and reviewed this Agreement and that you agree to comply with its terms. If you do not want to be bound by the terms of this Agreement, you are advised to stop using the website accordingly. [company name] only grants use and access of this website, its products, and its services to those who have accepted its terms.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Privacy policy\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Before you continue using our website, we advise you to read our privacy policy [link to privacy policy] regarding our user data collection. It will help you better understand our practices.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Age restriction\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You must be at least 18 (eighteen) years of age before you can use this website. By using this website, you warrant that you are at least 18 years of age and you may legally adhere to this Agreement. [company name] assumes no responsibility for liabilities related to age misrepresentation.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Intellectual property\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree that all materials, products, and services provided on this website are the property of [company name], its affiliates, directors, officers, employees, agents, suppliers, or licensors including all copyrights, trade secrets, trademarks, patents, and other intellectual property. You also agree that you will not reproduce or redistribute the [company name]\u2019s intellectual property in any way, including electronic, digital, or new trademark registrations.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You grant [company name] a royalty-free and non-exclusive license to display, use, copy, transmit, and broadcast the content you upload and publish. For issues regarding intellectual property claims, you should contact the company in order to come to an agreement.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"User accounts\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"As a user of this website, you may be asked to register with us and provide private information. You are responsible for ensuring the accuracy of this information, and you are responsible for maintaining the safety and security of your identifying information. You are also responsible for all activities that occur under your account or password.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"If you think there are any possible issues regarding the security of your account on the website, inform us immediately so we may address them accordingly.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"We reserve all rights to terminate accounts, edit or remove content and cancel orders at our sole discretion.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Applicable law\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you agree that the laws of the [your location], without regard to principles of conflict laws, will govern these terms and conditions, or any dispute of any sort that might come between [company name] and you, or its business partners and associates.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Disputes\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Any dispute related in any way to your use of this website or to products you purchase from us shall be arbitrated by state or federal court [your location] and you consent to exclusive jurisdiction and venue of such courts.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Indemnification\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree to indemnify [company name] and its affiliates and hold [company name] harmless against legal claims and demands that may arise from your use or misuse of our services. We reserve the right to select our own legal counsel.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Limitation on liability\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] is not liable for any damages that may occur to you as a result of your misuse of our website.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] reserves the right to edit, modify, and change this Agreement at any time. We shall let our users know of these changes through electronic mail. This Agreement is an understanding between [company name] and the user, and this supersedes and replaces all prior agreements regarding the use of this website.\"}]}]";
|
4
4
|
export declare const captureButtonPropsMock: ConsentCaptureProps;
|
5
5
|
export declare const captureCheckboxPropsMock: ConsentCaptureProps;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { UIFields } from 'fieldsConfiguration';
|
3
|
-
import { ConsentProps } from '
|
3
|
+
import { ConsentProps } from 'molecules';
|
4
4
|
import type { Callback } from 'typescript';
|
5
5
|
export declare const showAcceptToastMessage: () => void | undefined;
|
6
6
|
export declare type AcquisitionFormProps<T extends object> = {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: <T extends object>({ logoUrl, title, description, buttonText, fields, optionsPresentation, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, isTooltipVisible, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const AcquisitionForm:
|
9
|
+
export declare const AcquisitionForm: StoryFn<typeof AcquisitionFormComponent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { UIFields } from 'fieldsConfiguration';
|
3
|
-
import { ConsentProps } from '
|
3
|
+
import { ConsentProps } from 'molecules/Consent/Consent';
|
4
4
|
import type { Callback } from 'typescript';
|
5
5
|
import { TwoFactorAuthProps } from '../TwoFactorAuth/TwoFactorAuth';
|
6
6
|
import { LoginFields } from './types';
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import {
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
3
|
import { LoginForm as LoginFormComponent } from './LoginForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
|
-
export declare const LoginForm:
|
9
|
+
export declare const LoginForm: StoryFn<typeof LoginFormComponent>;
|
@@ -10,7 +10,6 @@ export * from './ForgotPasswordForm/ForgotPasswordForm';
|
|
10
10
|
export * from './Body/Body';
|
11
11
|
export * from './ISI/ISI';
|
12
12
|
export * from './Header/Header';
|
13
|
-
export * from './Consent/Consent';
|
14
13
|
export * from './ProcessTracker/ProcessTracker';
|
15
14
|
export * from './FeedContentContainer/FeedContentContainer';
|
16
15
|
export * from './DynamicContentZone/DynamicContentZone';
|
package/dist/index.d.ts
CHANGED
@@ -13,20 +13,20 @@ import { ThemeColors as ThemeColors$2, FontSizesTypes as FontSizesTypes$1, Sizes
|
|
13
13
|
import * as react_hook_form from 'react-hook-form';
|
14
14
|
import { ControllerProps, DeepPartial, FieldValues, FormState, Control, UseFormReturn, ValidationMode } from 'react-hook-form';
|
15
15
|
import * as atoms from 'atoms';
|
16
|
-
import { SelectOption as SelectOption$1, TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1,
|
17
|
-
import { InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1,
|
16
|
+
import { SelectOption as SelectOption$1, TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$1, RadioButtonsProps as RadioButtonsProps$1, RadioButtonInternalConfigProps as RadioButtonInternalConfigProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
17
|
+
import { InputFieldProps as InputFieldProps$1, SelectFieldProps as SelectFieldProps$1, FieldSectionProps as FieldSectionProps$1, BaseButtonProps as BaseButtonProps$1, MenuItem as MenuItem$1, ConsentProps as ConsentProps$1, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$1, ButtonProps as ButtonProps$1, MenuItemsProps as MenuItemsProps$1, ImageProps as ImageProps$1, TextMoleculeProps as TextMoleculeProps$1, AdditionalTabContainerProps as AdditionalTabContainerProps$1, RadioButtonFieldProps as RadioButtonFieldProps$1, CheckboxFieldProps as CheckboxFieldProps$1, Consent as Consent$1 } from 'molecules';
|
18
18
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
19
19
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
20
20
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
21
21
|
import { RadioGroup, DrawerProps as DrawerProps$1, ModalProps } from '@mui/material';
|
22
22
|
import { UIFields as UIFields$2, UIField as UIField$1 } from 'fieldsConfiguration';
|
23
23
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
24
|
-
import { ConsentProps as ConsentProps$
|
25
|
-
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
24
|
+
import { ConsentProps as ConsentProps$2 } from 'molecules/Consent/Consent';
|
26
25
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
27
26
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
28
27
|
import { FooterCProps } from 'organisms/Footer/FooterC';
|
29
28
|
import { FooterDProps } from 'organisms/Footer/FooterD';
|
29
|
+
import { FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ConsentProps as ConsentProps$3, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
|
30
30
|
import { FeedContentContainerProps as FeedContentContainerProps$1 } from 'organisms/FeedContentContainer/FeedContentContainer';
|
31
31
|
import { SubscribePanelProps as SubscribePanelProps$1 } from 'organisms/SubscribePanel/type';
|
32
32
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
@@ -40,6 +40,8 @@ import * as contexts_ButtonActionsContext_ButtonActionsContext from 'contexts/Bu
|
|
40
40
|
import { ContainerComponentProps as ContainerComponentProps$1, ConditionConfig as ConditionConfig$1, ContainerProps as ContainerProps$1, Molecule as Molecule$1 } from 'containers';
|
41
41
|
export * from 'helpers/constants';
|
42
42
|
import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
|
43
|
+
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
44
|
+
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
43
45
|
import * as containers_types_types from 'containers/types/types';
|
44
46
|
import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
|
45
47
|
|
@@ -709,32 +711,6 @@ declare type HeaderProps<T = string> = (HeaderAProps<T> & {
|
|
709
711
|
});
|
710
712
|
declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
|
711
713
|
|
712
|
-
declare type ButtonCaptureProps = {
|
713
|
-
type: 'button';
|
714
|
-
acceptButton: ButtonProps$1;
|
715
|
-
denyButton: ButtonProps$1;
|
716
|
-
};
|
717
|
-
declare type RadioButtonsCaptureProps<T extends string> = {
|
718
|
-
type: 'radioButton';
|
719
|
-
acceptValue: T;
|
720
|
-
} & RadioButtonsProps$1<T>;
|
721
|
-
declare type CheckboxCaptureProps = {
|
722
|
-
type: 'checkbox';
|
723
|
-
label: string;
|
724
|
-
value: boolean;
|
725
|
-
onChange: (value: boolean) => void;
|
726
|
-
};
|
727
|
-
declare type ConsentCaptureProps<T extends string = string> = ButtonCaptureProps | RadioButtonsCaptureProps<T> | CheckboxCaptureProps;
|
728
|
-
|
729
|
-
declare type ConsentProps<T extends string = string> = {
|
730
|
-
text: string;
|
731
|
-
isRequired?: boolean;
|
732
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
733
|
-
containerStyles?: CSSProperties;
|
734
|
-
clearStyles?: boolean;
|
735
|
-
};
|
736
|
-
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
737
|
-
|
738
714
|
declare type ProcessTrackerStatus = 'complete' | 'incomplete' | 'in_progress';
|
739
715
|
declare type ProcessTrackerProps = {
|
740
716
|
title?: Nullable<string>;
|
@@ -834,7 +810,7 @@ interface Helpers {
|
|
834
810
|
}
|
835
811
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
836
812
|
|
837
|
-
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$
|
813
|
+
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$3[]) => boolean;
|
838
814
|
|
839
815
|
declare const defaultTheme: DefaultTheme;
|
840
816
|
|
@@ -1416,6 +1392,31 @@ declare const IconWrapper: styled_components.StyledComponent<"div", styled_compo
|
|
1416
1392
|
children?: React__default.ReactNode;
|
1417
1393
|
}, never>;
|
1418
1394
|
|
1395
|
+
declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
1396
|
+
declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
1397
|
+
declare type ConsentProps<T extends string = string> = {
|
1398
|
+
text: string;
|
1399
|
+
isRequired?: boolean;
|
1400
|
+
consentCaptureProps: ConsentCaptureProps<T>;
|
1401
|
+
containerStyles?: CSSProperties;
|
1402
|
+
clearStyles?: boolean;
|
1403
|
+
};
|
1404
|
+
declare type Consent = {
|
1405
|
+
id: string;
|
1406
|
+
name: string;
|
1407
|
+
acknowledgment: CustomDescendant[];
|
1408
|
+
methodOfCapture: ConsentCaptureMethod;
|
1409
|
+
description: string;
|
1410
|
+
language: CustomDescendant[];
|
1411
|
+
expiration: string;
|
1412
|
+
confirmationButtonText: string;
|
1413
|
+
rejectionButtonText: string;
|
1414
|
+
defaultSelection: DefaultSelectionType;
|
1415
|
+
value?: DefaultSelectionType | boolean;
|
1416
|
+
isRequired?: boolean;
|
1417
|
+
};
|
1418
|
+
declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
1419
|
+
|
1419
1420
|
declare const Container: ({ children, wide, compact, type, props }: ContainerProps$1) => JSX.Element;
|
1420
1421
|
declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
|
1421
1422
|
|
@@ -1489,6 +1490,7 @@ interface DataConnectionAttributes {
|
|
1489
1490
|
dataModelField: {
|
1490
1491
|
id: string;
|
1491
1492
|
fieldName: string;
|
1493
|
+
code: string;
|
1492
1494
|
};
|
1493
1495
|
}
|
1494
1496
|
interface ConditionConfigAttributes {
|
@@ -1496,7 +1498,7 @@ interface ConditionConfigAttributes {
|
|
1496
1498
|
attributeType: 'condition_config';
|
1497
1499
|
conditionConfig: ConditionConfig;
|
1498
1500
|
}
|
1499
|
-
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
|
1501
|
+
declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
|
1500
1502
|
interface BaseMolecule {
|
1501
1503
|
id: string;
|
1502
1504
|
instance: 'molecule';
|
@@ -1619,7 +1621,17 @@ interface CheckboxFieldMolecule extends BaseMolecule {
|
|
1619
1621
|
} & CheckboxFieldProps$1>;
|
1620
1622
|
};
|
1621
1623
|
}
|
1622
|
-
|
1624
|
+
interface ConsentFieldMolecule extends BaseMolecule {
|
1625
|
+
type: 'consent';
|
1626
|
+
attributes: {
|
1627
|
+
consent: {
|
1628
|
+
attributeType: 'consent';
|
1629
|
+
consent: Consent$1;
|
1630
|
+
required: BooleanAttributes;
|
1631
|
+
};
|
1632
|
+
};
|
1633
|
+
}
|
1634
|
+
declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
|
1623
1635
|
form?: UseFormReturn<any>;
|
1624
1636
|
};
|
1625
1637
|
|
@@ -1700,4 +1712,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
|
|
1700
1712
|
tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
1701
1713
|
}) => JSX.Element | null;
|
1702
1714
|
|
1703
|
-
export { AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, FormContainerProps, FormStepContainerProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
1715
|
+
export { AcquisitionForm, AcquisitionFormProps, ActionAttributes, ActionTypes, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMolecule, ButtonProps, ButtonType, ButtonVariant, ButtonsWrapper, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CaretIconWrapper, Carousel, CarouselProps, Checkbox, CheckboxField, CheckboxFieldMolecule, CheckboxFieldProps, CheckboxGroup, CheckboxGroupProps, CheckboxProps, CheckboxesProps, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColumnItem, Columns, ColumnsProps, ConditionConfig, ConditionConfigAttributes, ConditionCriteria, Consent, ConsentCaptureMethod, ConsentFieldMolecule, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CriteriaType, CustomValidation, CustomValidationProps, CustomValidationRule, DataConnectionAttributes, DefaultSelectionType, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, DownloadFile, Drawer, DynamicContentZone, DynamicContentZoneProps, DynamicElementProps, EmphasizedText, EmphasizedTextProps, ErrorText, FeedContent, FeedContentContainer, FeedContentContainerProps, FeedContentHeader, FeedContentHeaderProps, FeedTemplateKeys, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FilteredFeedContentType, FontSizesTypes, FontWeight, Footer, FooterContactInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, FormContainerProps, FormStepContainerProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconWrapper, Image, ImageAttributes, ImageMolecule, ImageProps, Input, InputField, InputFieldInternalConfigProps, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, IterableAttributes, LabelInternalConfig, LinkAttributes, LoginForm, LoginFormProps, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, SegmentationType, Select, SelectAttributes, SelectField, SelectFieldMolecule, SelectFieldProps, SelectInternalConfigurationOptions, SelectOption, SelectProps, SelectableCardGroup, SelectableCardGroupProps, SeoTags, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Slide, SlidesWrapper, Spacer, SpacerProps, Spinner, Stepper, StepperProps, StyleWrapper, SubscribePanel, Tab, TabGroup, TabGroupMolecule, TabGroupProps, TabOption, TabProps, TabTheme, TabType, TextAlign, TextAttributes, TextButton, TextButtonProps, TextInputMolecule, TextMolecule, TextMoleculeProps, TextMoleculeType, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipInternalConfig, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoAttributes, VideoMolecule, VideoProps, Wrapper, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|
package/package.json
CHANGED
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CSSProperties } from 'styled-components';
|
3
|
-
import { ConsentCaptureProps } from './ConsentCapture';
|
4
|
-
export declare type ConsentProps<T extends string = string> = {
|
5
|
-
text: string;
|
6
|
-
isRequired?: boolean;
|
7
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
8
|
-
containerStyles?: CSSProperties;
|
9
|
-
clearStyles?: boolean;
|
10
|
-
};
|
11
|
-
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CSSProperties } from 'styled-components';
|
3
|
-
import { ConsentCaptureProps } from './ConsentCapture';
|
4
|
-
export declare type ConsentProps<T extends string = string> = {
|
5
|
-
text: string;
|
6
|
-
isRequired?: boolean;
|
7
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
8
|
-
containerStyles?: CSSProperties;
|
9
|
-
clearStyles?: boolean;
|
10
|
-
};
|
11
|
-
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|