@zealicsolutions/web-ui 0.3.18 → 0.3.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/cjs/index.js +4 -4
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/containers/Container.d.ts +38 -2
  4. package/dist/cjs/src/containers/FormStepContainer.d.ts +4 -2
  5. package/dist/cjs/src/containers/types/moleculeTypes.d.ts +15 -4
  6. package/dist/cjs/src/contexts/FormStepContext/FormStepContext.d.ts +12 -0
  7. package/dist/cjs/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
  8. package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
  9. package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
  10. package/dist/cjs/src/contexts/OrganismContext/utils.d.ts +3 -0
  11. package/dist/cjs/src/contexts/hooks/index.d.ts +4 -0
  12. package/dist/cjs/src/contexts/hooks/useFormStepContext.d.ts +1 -0
  13. package/dist/cjs/src/contexts/hooks/useOrganismContext.d.ts +1 -0
  14. package/dist/cjs/src/molecules/Consent/Consent.d.ts +28 -0
  15. package/dist/cjs/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
  16. package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
  17. package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
  18. package/dist/{esm/src/organisms → cjs/src/molecules}/Consent/consentMock.d.ts +2 -2
  19. package/dist/cjs/src/molecules/index.d.ts +1 -0
  20. package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
  21. package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
  22. package/dist/cjs/src/organisms/FeedContent/styles.d.ts +1 -1
  23. package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
  24. package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
  25. package/dist/cjs/src/organisms/index.d.ts +0 -1
  26. package/dist/esm/index.js +4 -4
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/src/containers/Container.d.ts +38 -2
  29. package/dist/esm/src/containers/FormStepContainer.d.ts +4 -2
  30. package/dist/esm/src/containers/types/moleculeTypes.d.ts +15 -4
  31. package/dist/esm/src/contexts/FormStepContext/FormStepContext.d.ts +12 -0
  32. package/dist/esm/src/contexts/FormStepContext/FormStepContextProvider.d.ts +5 -0
  33. package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +8 -0
  34. package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +6 -0
  35. package/dist/esm/src/contexts/OrganismContext/utils.d.ts +3 -0
  36. package/dist/esm/src/contexts/hooks/index.d.ts +4 -0
  37. package/dist/esm/src/contexts/hooks/useFormStepContext.d.ts +1 -0
  38. package/dist/esm/src/contexts/hooks/useOrganismContext.d.ts +1 -0
  39. package/dist/esm/src/molecules/Consent/Consent.d.ts +28 -0
  40. package/dist/esm/src/{organisms → molecules}/Consent/Consent.stories.d.ts +2 -2
  41. package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/ConsentCapture.d.ts +2 -1
  42. package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +3 -0
  43. package/dist/{cjs/src/organisms → esm/src/molecules}/Consent/consentMock.d.ts +2 -2
  44. package/dist/esm/src/molecules/index.d.ts +1 -0
  45. package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
  46. package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
  47. package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -1
  48. package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
  49. package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
  50. package/dist/esm/src/organisms/index.d.ts +0 -1
  51. package/dist/index.d.ts +88 -39
  52. package/package.json +1 -1
  53. package/dist/cjs/src/organisms/Consent/Consent.d.ts +0 -11
  54. package/dist/esm/src/organisms/Consent/Consent.d.ts +0 -11
@@ -1,4 +1,40 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, ContainerProps } from 'containers';
3
- export declare const Container: ({ children, wide, compact, type, props }: ContainerProps) => JSX.Element;
4
- export declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps) => JSX.Element | null;
3
+ export declare const Container: ({ children, wide, compact, type, props, id, }: Partial<{
4
+ type: import("containers").ContainerType;
5
+ wide: Partial<{
6
+ containerStyle: import("styled-components").CSSProperties;
7
+ containerProps: Partial<{
8
+ position: import("containers").ContainerPositionType;
9
+ scrollBehaviour: import("containers").ContainerScrollBehaviourType;
10
+ cornerRadius: number;
11
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
12
+ formProps: import("containers").FormContainerProps;
13
+ formStepProps: import("containers").FormStepContainerProps;
14
+ }>;
15
+ }>;
16
+ compact: Partial<{
17
+ containerStyle: import("styled-components").CSSProperties;
18
+ containerProps: Partial<{
19
+ position: import("containers").ContainerPositionType;
20
+ scrollBehaviour: import("containers").ContainerScrollBehaviourType;
21
+ cornerRadius: number;
22
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
23
+ formProps: import("containers").FormContainerProps;
24
+ formStepProps: import("containers").FormStepContainerProps;
25
+ }>;
26
+ }>;
27
+ props: Partial<{
28
+ position: import("containers").ContainerPositionType;
29
+ scrollBehaviour: import("containers").ContainerScrollBehaviourType;
30
+ cornerRadius: number;
31
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
32
+ formProps: import("containers").FormContainerProps;
33
+ formStepProps: import("containers").FormStepContainerProps;
34
+ }>;
35
+ }> & {
36
+ children?: import("react").ReactNode;
37
+ } & {
38
+ id: string;
39
+ }) => JSX.Element;
40
+ export declare const ContainerComponent: ({ type, items, config, tabsProps, id, }: ContainerComponentProps) => JSX.Element | null;
@@ -1,4 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FormStepContainerProps } from 'containers';
3
- export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>>;
4
- export declare const FormStepContainer: ({ formStepName, order, conditionConfig, children, }: StepContainerProps) => JSX.Element;
3
+ export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
4
+ id: string;
5
+ };
6
+ export declare const FormStepContainer: ({ formStepName, order, conditionConfig, id, }: StepContainerProps) => JSX.Element | null;
@@ -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 declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
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,12 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export declare type FormStepContextType = {
3
+ steps: number;
4
+ currentStep: number;
5
+ goToNextStep: () => void;
6
+ goToPrevStep: () => void;
7
+ reset: () => void;
8
+ canGoToNextStep: boolean;
9
+ canGoToPrevStep: boolean;
10
+ setStep: Dispatch<SetStateAction<number>>;
11
+ };
12
+ export declare const FormStepContext: import("react").Context<FormStepContextType>;
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
3
+ initSteps: number;
4
+ }>>;
5
+ export declare const FormStepContextProvider: ({ initSteps, children, }: FormStepContextProviderProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ContainerComponentProps, Molecule } from 'containers';
3
+ import { GroupedMoleculesByStep } from './utils';
4
+ export declare type OrganismContextType = {
5
+ items: (ContainerComponentProps | Molecule)[];
6
+ groupedMoleculeByStep: GroupedMoleculesByStep;
7
+ };
8
+ export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ContainerComponentProps, Molecule } from 'containers';
3
+ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
4
+ initItems: (ContainerComponentProps | Molecule)[];
5
+ }>>;
6
+ export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ContainerComponentProps, Molecule } from 'containers';
2
+ export declare type GroupedMoleculesByStep = Map<string, Molecule[]>;
3
+ export declare const groupMoleculesByFormStep: (items: (ContainerComponentProps | Molecule)[]) => GroupedMoleculesByStep;
@@ -0,0 +1,4 @@
1
+ export { useFormStepContext } from './useFormStepContext';
2
+ export { useButtonActionsContext } from './useButtonActionsContext';
3
+ export { useMlrRichTextViewerContext } from './useMlrRichTextViewerContext';
4
+ export { useOrganismContext } from './useOrganismContext';
@@ -0,0 +1 @@
1
+ export declare const useFormStepContext: () => import("contexts/FormStepContext/FormStepContext").FormStepContextType;
@@ -0,0 +1 @@
1
+ export declare const useOrganismContext: () => import("contexts/OrganismContext/OrganismContext").OrganismContextType;
@@ -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 './Consent';
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("./Consent").ConsentProps<T>) => JSX.Element;
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: (value: boolean) => void;
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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ConsentFieldMolecule } from 'containers';
3
+ export declare const ConsentMolecule: (attributes: ConsentFieldMolecule['attributes']) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ConsentProps } from 'organisms';
2
- import { ConsentCaptureProps } from 'organisms/Consent/ConsentCapture';
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;
@@ -28,3 +28,4 @@ export * from './Caruser/Carousel';
28
28
  export * from './TextMolecule/TextMolecule';
29
29
  export * from './Button/Button';
30
30
  export * from './ZealUIModal/ZealUIModal';
31
+ export * from './Consent/Consent';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { UIFields } from 'fieldsConfiguration';
3
- import { ConsentProps } from 'organisms';
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 { ComponentStory } from '@storybook/react';
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: ComponentStory<typeof AcquisitionFormComponent>;
9
+ export declare const AcquisitionForm: StoryFn<typeof AcquisitionFormComponent>;
@@ -15,5 +15,5 @@ export declare const CloseButton: import("styled-components").StyledComponent<"d
15
15
  disabled?: boolean | undefined;
16
16
  } & {
17
17
  children?: import("react").ReactNode;
18
- } & Pick<FeedContentProps, "withCloseIcon" | "feedContentTemplate">, never>;
18
+ } & Pick<FeedContentProps, "feedContentTemplate" | "withCloseIcon">, never>;
19
19
  export declare const PdfWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<FeedContentProps, "showDefaultDocumentStyles">, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { UIFields } from 'fieldsConfiguration';
3
- import { ConsentProps } from 'organisms/Consent/Consent';
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 { ComponentStory } from '@storybook/react';
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: ComponentStory<typeof LoginFormComponent>;
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, RadioButtonsProps as RadioButtonsProps$1, InputProps as InputProps$1, SelectProps as SelectProps$1, RegularImageProps as RegularImageProps$1, TextButtonProps as TextButtonProps$1, TabTheme as TabTheme$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, HeroImageProps as HeroImageProps$1, ColumnsProps as ColumnsProps$1, EmphasizedTextProps as EmphasizedTextProps$1, TabGroupProps as TabGroupProps$1, AvatarDropdownProps as AvatarDropdownProps$1, ButtonProps as ButtonProps$1, FeedContentHeaderProps as FeedContentHeaderProps$1, AlertProps as AlertProps$1, BottomNaVBarItemProps as BottomNaVBarItemProps$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 } from 'molecules';
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$1, FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
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';
@@ -37,11 +37,14 @@ import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
37
37
  import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
38
38
  import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
39
39
  import * as contexts_ButtonActionsContext_ButtonActionsContext from 'contexts/ButtonActionsContext/ButtonActionsContext';
40
- import { ContainerComponentProps as ContainerComponentProps$1, ConditionConfig as ConditionConfig$1, ContainerProps as ContainerProps$1, Molecule as Molecule$1 } from 'containers';
40
+ import * as containers from 'containers';
41
+ import { ContainerComponentProps as ContainerComponentProps$1, ConditionConfig as ConditionConfig$1, Molecule as Molecule$1 } from 'containers';
41
42
  export * from 'helpers/constants';
42
43
  import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
44
+ import { CustomDescendant } from 'atoms/RichTextViewer/types';
45
+ import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
43
46
  import * as containers_types_types from 'containers/types/types';
44
- import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
47
+ import { ContainerProps as ContainerProps$1 } from 'containers/types/types';
45
48
 
46
49
  declare type TouchableOpacityProps = PropsWithChildren<{
47
50
  activeOpacity?: number;
@@ -709,32 +712,6 @@ declare type HeaderProps<T = string> = (HeaderAProps<T> & {
709
712
  });
710
713
  declare const Header: <T extends string | number>(props: HeaderProps<T>) => JSX.Element;
711
714
 
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
715
  declare type ProcessTrackerStatus = 'complete' | 'incomplete' | 'in_progress';
739
716
  declare type ProcessTrackerProps = {
740
717
  title?: Nullable<string>;
@@ -834,7 +811,7 @@ interface Helpers {
834
811
  }
835
812
  declare const useStep: (maxStep: number) => [number, Helpers];
836
813
 
837
- declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$1[]) => boolean;
814
+ declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$3[]) => boolean;
838
815
 
839
816
  declare const defaultTheme: DefaultTheme;
840
817
 
@@ -1416,8 +1393,69 @@ declare const IconWrapper: styled_components.StyledComponent<"div", styled_compo
1416
1393
  children?: React__default.ReactNode;
1417
1394
  }, never>;
1418
1395
 
1419
- declare const Container: ({ children, wide, compact, type, props }: ContainerProps$1) => JSX.Element;
1420
- declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
1396
+ declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
1397
+ declare type DefaultSelectionType = 'confirmation' | 'rejection';
1398
+ declare type ConsentProps<T extends string = string> = {
1399
+ text: string;
1400
+ isRequired?: boolean;
1401
+ consentCaptureProps: ConsentCaptureProps<T>;
1402
+ containerStyles?: CSSProperties;
1403
+ clearStyles?: boolean;
1404
+ };
1405
+ declare type Consent = {
1406
+ id: string;
1407
+ name: string;
1408
+ acknowledgment: CustomDescendant[];
1409
+ methodOfCapture: ConsentCaptureMethod;
1410
+ description: string;
1411
+ language: CustomDescendant[];
1412
+ expiration: string;
1413
+ confirmationButtonText: string;
1414
+ rejectionButtonText: string;
1415
+ defaultSelection: DefaultSelectionType;
1416
+ value?: DefaultSelectionType | boolean;
1417
+ isRequired?: boolean;
1418
+ };
1419
+ declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
1420
+
1421
+ declare const Container: ({ children, wide, compact, type, props, id, }: Partial<{
1422
+ type: containers.ContainerType;
1423
+ wide: Partial<{
1424
+ containerStyle: styled_components.CSSProperties;
1425
+ containerProps: Partial<{
1426
+ position: containers.ContainerPositionType;
1427
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
1428
+ cornerRadius: number;
1429
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1430
+ formProps: containers.FormContainerProps;
1431
+ formStepProps: containers.FormStepContainerProps;
1432
+ }>;
1433
+ }>;
1434
+ compact: Partial<{
1435
+ containerStyle: styled_components.CSSProperties;
1436
+ containerProps: Partial<{
1437
+ position: containers.ContainerPositionType;
1438
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
1439
+ cornerRadius: number;
1440
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1441
+ formProps: containers.FormContainerProps;
1442
+ formStepProps: containers.FormStepContainerProps;
1443
+ }>;
1444
+ }>;
1445
+ props: Partial<{
1446
+ position: containers.ContainerPositionType;
1447
+ scrollBehaviour: containers.ContainerScrollBehaviourType;
1448
+ cornerRadius: number;
1449
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
1450
+ formProps: containers.FormContainerProps;
1451
+ formStepProps: containers.FormStepContainerProps;
1452
+ }>;
1453
+ }> & {
1454
+ children?: React$1.ReactNode;
1455
+ } & {
1456
+ id: string;
1457
+ }) => JSX.Element;
1458
+ declare const ContainerComponent: ({ type, items, config, tabsProps, id, }: ContainerComponentProps$1) => JSX.Element | null;
1421
1459
 
1422
1460
  declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
1423
1461
  declare type DownloadFile = {
@@ -1489,6 +1527,7 @@ interface DataConnectionAttributes {
1489
1527
  dataModelField: {
1490
1528
  id: string;
1491
1529
  fieldName: string;
1530
+ code: string;
1492
1531
  };
1493
1532
  }
1494
1533
  interface ConditionConfigAttributes {
@@ -1496,7 +1535,7 @@ interface ConditionConfigAttributes {
1496
1535
  attributeType: 'condition_config';
1497
1536
  conditionConfig: ConditionConfig;
1498
1537
  }
1499
- declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field';
1538
+ declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent';
1500
1539
  interface BaseMolecule {
1501
1540
  id: string;
1502
1541
  instance: 'molecule';
@@ -1619,7 +1658,17 @@ interface CheckboxFieldMolecule extends BaseMolecule {
1619
1658
  } & CheckboxFieldProps$1>;
1620
1659
  };
1621
1660
  }
1622
- declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
1661
+ interface ConsentFieldMolecule extends BaseMolecule {
1662
+ type: 'consent';
1663
+ attributes: {
1664
+ consent: {
1665
+ attributeType: 'consent';
1666
+ consent: Consent$1;
1667
+ required: BooleanAttributes;
1668
+ };
1669
+ };
1670
+ }
1671
+ declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
1623
1672
  form?: UseFormReturn<any>;
1624
1673
  };
1625
1674
 
@@ -1684,7 +1733,7 @@ declare type ConditionConfig = Nullable<{
1684
1733
  criteriaList: ConditionCriteria[];
1685
1734
  }>;
1686
1735
 
1687
- declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$2, "type"> & {
1736
+ declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$1, "type"> & {
1688
1737
  containerProps?: Partial<{
1689
1738
  position: containers_types_types.ContainerPositionType;
1690
1739
  scrollBehaviour: containers_types_types.ContainerScrollBehaviourType;
@@ -1700,4 +1749,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
1700
1749
  tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
1701
1750
  }) => JSX.Element | null;
1702
1751
 
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 };
1752
+ 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
@@ -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;