@zealicsolutions/web-ui 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/cjs/index.js +20 -20
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
  4. package/dist/cjs/src/atoms/Buttons/IconButton.d.ts +1 -1
  5. package/dist/cjs/src/containers/MoleculeItem.d.ts +0 -1
  6. package/dist/cjs/src/containers/mock-data.d.ts +0 -1
  7. package/dist/cjs/src/containers/types/moleculeTypes.d.ts +2 -38
  8. package/dist/cjs/src/containers/types/types.d.ts +4 -7
  9. package/dist/cjs/src/contexts/index.d.ts +0 -3
  10. package/dist/cjs/src/molecules/Button/Button.d.ts +2 -1
  11. package/dist/cjs/src/molecules/Button/Button.stories.d.ts +2 -2
  12. package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +18 -1
  13. package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
  14. package/dist/cjs/src/molecules/Image/Image.d.ts +3 -2
  15. package/dist/cjs/src/molecules/Image/Image.stories.d.ts +1 -1
  16. package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +18 -1
  17. package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +18 -1
  18. package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +18 -1
  19. package/dist/cjs/src/molecules/Video/Video.stories.d.ts +1 -1
  20. package/dist/cjs/src/molecules/index.d.ts +0 -1
  21. package/dist/cjs/src/organisms/Consent/Consent.stories.d.ts +2 -2
  22. package/dist/cjs/src/typescript.d.ts +0 -3
  23. package/dist/esm/index.js +3 -3
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
  26. package/dist/esm/src/atoms/Buttons/IconButton.d.ts +1 -1
  27. package/dist/esm/src/containers/MoleculeItem.d.ts +0 -1
  28. package/dist/esm/src/containers/mock-data.d.ts +0 -1
  29. package/dist/esm/src/containers/types/moleculeTypes.d.ts +2 -38
  30. package/dist/esm/src/containers/types/types.d.ts +4 -7
  31. package/dist/esm/src/contexts/index.d.ts +0 -3
  32. package/dist/esm/src/molecules/Button/Button.d.ts +2 -1
  33. package/dist/esm/src/molecules/Button/Button.stories.d.ts +2 -2
  34. package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +18 -1
  35. package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
  36. package/dist/esm/src/molecules/Image/Image.d.ts +3 -2
  37. package/dist/esm/src/molecules/Image/Image.stories.d.ts +1 -1
  38. package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +18 -1
  39. package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +18 -1
  40. package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +18 -1
  41. package/dist/esm/src/molecules/Video/Video.stories.d.ts +1 -1
  42. package/dist/esm/src/molecules/index.d.ts +0 -1
  43. package/dist/esm/src/organisms/Consent/Consent.stories.d.ts +2 -2
  44. package/dist/esm/src/typescript.d.ts +0 -3
  45. package/dist/index.d.ts +10 -86
  46. package/package.json +1 -1
  47. package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +0 -11
  48. package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +0 -11
  49. package/dist/cjs/src/contexts/hooks/useButtonActionsContext.d.ts +0 -1
  50. package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.d.ts +0 -20
  51. package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +0 -9
  52. package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +0 -11
  53. package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +0 -11
  54. package/dist/esm/src/contexts/hooks/useButtonActionsContext.d.ts +0 -1
  55. package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.d.ts +0 -20
  56. package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +0 -9
@@ -1,4 +1,4 @@
1
- import type { StoryFn } from '@storybook/react';
1
+ import type { ComponentStory } from '@storybook/react';
2
2
  import { TextButtonProps } from 'atoms/Buttons/TextButton';
3
3
  import { FC } from 'react';
4
4
  import { IconButton as IconButtonComponent } from './IconButton';
@@ -11,6 +11,6 @@ declare const _default: {
11
11
  }, never>;
12
12
  };
13
13
  export default _default;
14
- export declare const TouchableOpacity: StoryFn<FC<TouchableOpacityProps>>;
15
- export declare const TextButton: StoryFn<FC<TextButtonProps>>;
16
- export declare const IconButton: StoryFn<typeof IconButtonComponent>;
14
+ export declare const TouchableOpacity: ComponentStory<FC<TouchableOpacityProps>>;
15
+ export declare const TextButton: ComponentStory<FC<TextButtonProps>>;
16
+ export declare const IconButton: ComponentStory<typeof IconButtonComponent>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ThemeColors } from 'theme';
3
3
  import { IconNames, TouchableOpacityProps } from 'atoms';
4
- import type { Callback } from 'typescript';
4
+ import { Callback } from 'typescript';
5
5
  export declare type IconButtonProps = {
6
6
  name: IconNames;
7
7
  size?: number;
@@ -3,7 +3,6 @@ import { Molecule } from 'containers';
3
3
  import { TabGroupProps } from 'molecules';
4
4
  export declare const getFullLink: (url: string) => string;
5
5
  export declare const navigateToPage: (url: string) => void;
6
- export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
7
6
  export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id: moleculeId, }: Molecule & {
8
7
  tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
9
8
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { ContainerComponentProps } from 'containers';
2
- export declare const sliderContainerProps: ContainerComponentProps;
3
2
  export declare const formContainerProps: ContainerComponentProps;
4
3
  export declare const columnContainerProps: ContainerComponentProps;
@@ -2,38 +2,12 @@ import { SelectOption } from 'atoms';
2
2
  import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ImageProps, InputFieldProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
3
3
  import { UseFormReturn } from 'react-hook-form';
4
4
  import { CSSProperties } from 'styled-components';
5
- import type { AnyObject, Nullable, StrictUnion } from 'typescript';
6
- import { ContainerComponentProps } from './types';
7
- export declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
8
- export declare type DownloadFile = {
9
- url: string;
10
- name: string;
11
- };
12
- declare type LinkAction = Omit<LinkAttributes, 'attributeType'>;
13
- declare type PopupDrawerAction = ContainerComponentProps;
14
- declare type DownloadAction = DownloadFile;
15
- declare type SubmitAction = AnyObject;
16
- declare type CancelAction = AnyObject;
17
- declare type ResetAction = AnyObject;
18
- declare type DestroyAction = AnyObject;
19
- declare type Action = {
20
- type: ActionTypes;
21
- } & Partial<{
22
- link: LinkAction;
23
- popup: PopupDrawerAction;
24
- drawer: PopupDrawerAction;
25
- download: DownloadAction;
26
- submit: SubmitAction;
27
- cancel: CancelAction;
28
- reset: ResetAction;
29
- destroy: DestroyAction;
30
- }>;
5
+ import type { Nullable, StrictUnion } from 'typescript';
31
6
  export declare type ImageAttributes = {
32
7
  attributeType: 'image';
33
8
  imageSource: string;
34
9
  };
35
10
  export interface TextAttributes {
36
- id?: string;
37
11
  attributeType: 'text';
38
12
  isRichText: boolean;
39
13
  text: string;
@@ -42,10 +16,6 @@ export interface VideoAttributes {
42
16
  attributeType: 'video';
43
17
  videoSource: string;
44
18
  }
45
- export interface ActionAttributes {
46
- attributeType: 'action';
47
- action: Action;
48
- }
49
19
  export interface LinkAttributes {
50
20
  id: string;
51
21
  attributeType: 'link';
@@ -55,7 +25,6 @@ export interface LinkAttributes {
55
25
  name: string;
56
26
  }
57
27
  export interface SelectAttributes {
58
- id?: string;
59
28
  attributeType: 'select';
60
29
  value: string;
61
30
  options: SelectOption[];
@@ -73,10 +42,6 @@ export interface BaseMolecule {
73
42
  id: string;
74
43
  instance: 'molecule';
75
44
  type: MoleculeTypes;
76
- metadata?: AnyObject;
77
- idForFrontend?: string;
78
- moleculeLibraryId?: string;
79
- organismLibraryMoleculeId?: string;
80
45
  }
81
46
  export interface ImageMolecule extends BaseMolecule {
82
47
  type: 'image';
@@ -103,7 +68,7 @@ export interface ButtonMolecule extends BaseMolecule {
103
68
  type: 'button';
104
69
  attributes: {
105
70
  title: TextAttributes;
106
- action: ActionAttributes;
71
+ buttonLink: LinkAttributes;
107
72
  };
108
73
  config: {
109
74
  props: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
@@ -188,4 +153,3 @@ export interface CheckboxFieldMolecule extends BaseMolecule {
188
153
  export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule> & {
189
154
  form?: UseFormReturn<any>;
190
155
  };
191
- export {};
@@ -1,11 +1,11 @@
1
1
  import { TabGroupProps } from 'molecules';
2
2
  import { PropsWithChildren } from 'react';
3
3
  import { CSSProperties } from 'styled-components';
4
- import { ValidationMode } from 'react-hook-form';
5
- import type { AnyObject, StylesType } from 'typescript';
6
4
  import { Molecule } from './moleculeTypes';
5
+ import { ValidationMode } from 'react-hook-form';
6
+ import { StylesType } from 'typescript';
7
7
  export declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
8
- export declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
8
+ export declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
9
9
  export declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
10
10
  export declare type ContainerPropsType = Partial<{
11
11
  position: ContainerPositionType;
@@ -30,14 +30,11 @@ export declare type ContainerComponentProps = {
30
30
  id: string;
31
31
  instance: 'container';
32
32
  type: ContainerType;
33
- items: (ContainerComponentProps | Molecule)[];
34
33
  config: {
35
34
  wide?: AdditionalContainerProps;
36
35
  compact?: AdditionalContainerProps;
37
36
  props?: ContainerPropsType;
38
37
  };
38
+ items: (ContainerComponentProps | Molecule)[];
39
39
  tabsProps?: Pick<TabGroupProps, 'tabs' | 'activeTabKey' | 'onTabChange'>;
40
- metadata?: AnyObject;
41
- attributes?: AnyObject;
42
- containerLibraryId?: string;
43
40
  };
@@ -2,6 +2,3 @@ export * from './MlrRichTextViewerContext/MlrRichTextViewerProvider';
2
2
  export * from './MlrRichTextViewerContext/MlrRichTextViewerContext';
3
3
  export * from './MlrRichTextViewerContext/types';
4
4
  export * from './hooks/useMlrRichTextViewerContext';
5
- export * from './hooks/useButtonActionsContext';
6
- export * from './ButtonActionsContext/ButtonActionsContext';
7
- export * from './ButtonActionsContext/ButtonActionsContextProvider';
@@ -1,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
3
- import type { Callback, StylesType } from 'typescript';
3
+ import type { Callback } from 'typescript';
4
+ import { StylesType } from 'typescript';
4
5
  export declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
5
6
  export declare type ButtonType = 'button' | 'submit' | 'reset';
6
7
  export declare type BaseButtonProps = PropsWithChildren<{
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { StoryFn } from '@storybook/react';
3
- import { Button as ButtonComponent } from 'molecules';
3
+ import { Button as ButtonComponent } from 'molecules/Button/Button';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: import("molecules").ButtonProps) => JSX.Element | null;
6
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Button: StoryFn<typeof ButtonComponent>;
@@ -26,7 +26,24 @@ declare const _default: {
26
26
  }>;
27
27
  labelsProps: import("molecules").FieldLabelsProps;
28
28
  name: string;
29
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
29
+ rules: Omit<Partial<{
30
+ required: string | import("react-hook-form").ValidationRule<boolean>;
31
+ min: import("react-hook-form").ValidationRule<string | number>;
32
+ max: import("react-hook-form").ValidationRule<string | number>;
33
+ maxLength: import("react-hook-form").ValidationRule<number>;
34
+ minLength: import("react-hook-form").ValidationRule<number>;
35
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
36
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
37
+ valueAsNumber: boolean;
38
+ valueAsDate: boolean;
39
+ value: any;
40
+ setValueAs: (value: any) => any;
41
+ shouldUnregister?: boolean | undefined;
42
+ onChange?: ((event: any) => void) | undefined;
43
+ onBlur?: ((event: any) => void) | undefined;
44
+ disabled: boolean;
45
+ deps: string | string[];
46
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
30
47
  control: import("react-hook-form").Control<any, any>;
31
48
  required: boolean;
32
49
  optional: boolean;
@@ -1,4 +1,4 @@
1
- import type { StoryFn } from '@storybook/react';
1
+ import type { ComponentStory } from '@storybook/react';
2
2
  import React from 'react';
3
3
  import { Drawer as DrawerComponent } from './Drawer';
4
4
  declare const _default: {
@@ -6,4 +6,4 @@ declare const _default: {
6
6
  component: ({ children, closeIconColor, ...props }: React.PropsWithChildren<import("./styles").DrawerProps>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
- export declare const Drawer: StoryFn<typeof DrawerComponent>;
9
+ export declare const Drawer: ComponentStory<typeof DrawerComponent>;
@@ -1,15 +1,16 @@
1
1
  /// <reference types="react" />
2
- import { StylesType } from 'typescript';
2
+ import { Callback, StylesType } from 'typescript';
3
3
  export declare type ImageProps = {
4
4
  src: string;
5
5
  } & Partial<{
6
6
  id: string;
7
7
  altText: string;
8
8
  link: string;
9
+ onClick: Callback;
9
10
  width: number;
10
11
  height: number;
11
12
  cornerRadius: number;
12
13
  behaveAs: 'background' | 'regular';
13
14
  styles: StylesType;
14
15
  }>;
15
- export declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
16
+ export declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { Image as ImageComponent } from './Image';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: import("./Image").ImageProps) => JSX.Element;
6
+ component: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: import("./Image").ImageProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Image: StoryFn<typeof ImageComponent>;
@@ -6,7 +6,24 @@ declare const _default: {
6
6
  component: ({ control, name, inputProps, styles, labelsProps, defaultValue, optional, required, rules, }: Partial<{
7
7
  name: string;
8
8
  control: import("react-hook-form").Control<any, any>;
9
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
9
+ rules: Omit<Partial<{
10
+ required: string | import("react-hook-form").ValidationRule<boolean>;
11
+ min: import("react-hook-form").ValidationRule<string | number>;
12
+ max: import("react-hook-form").ValidationRule<string | number>;
13
+ maxLength: import("react-hook-form").ValidationRule<number>;
14
+ minLength: import("react-hook-form").ValidationRule<number>;
15
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
16
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
17
+ valueAsNumber: boolean;
18
+ valueAsDate: boolean;
19
+ value: any;
20
+ setValueAs: (value: any) => any;
21
+ shouldUnregister?: boolean | undefined;
22
+ onChange?: ((event: any) => void) | undefined;
23
+ onBlur?: ((event: any) => void) | undefined;
24
+ disabled: boolean;
25
+ deps: string | string[];
26
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
10
27
  required: boolean;
11
28
  optional: boolean;
12
29
  defaultValue: string;
@@ -5,7 +5,24 @@ declare const _default: {
5
5
  title: string;
6
6
  component: <T extends string>({ name, rules, styles, control, optional, required, labelsProps, defaultValue, radioButtonsProps, }: Partial<{
7
7
  name: string;
8
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
8
+ rules: Omit<Partial<{
9
+ required: string | import("react-hook-form").ValidationRule<boolean>;
10
+ min: import("react-hook-form").ValidationRule<string | number>;
11
+ max: import("react-hook-form").ValidationRule<string | number>;
12
+ maxLength: import("react-hook-form").ValidationRule<number>;
13
+ minLength: import("react-hook-form").ValidationRule<number>;
14
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
15
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
16
+ valueAsNumber: boolean;
17
+ valueAsDate: boolean;
18
+ value: any;
19
+ setValueAs: (value: any) => any;
20
+ shouldUnregister?: boolean | undefined;
21
+ onChange?: ((event: any) => void) | undefined;
22
+ onBlur?: ((event: any) => void) | undefined;
23
+ disabled: boolean;
24
+ deps: string | string[];
25
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
9
26
  styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
10
27
  control: import("react-hook-form").Control<any, any>;
11
28
  optional: boolean;
@@ -20,7 +20,24 @@ declare const _default: {
20
20
  }>;
21
21
  labelsProps: import("..").FieldLabelsProps;
22
22
  name: string;
23
- rules: Omit<import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
23
+ rules: Omit<Partial<{
24
+ required: string | import("react-hook-form").ValidationRule<boolean>;
25
+ min: import("react-hook-form").ValidationRule<string | number>;
26
+ max: import("react-hook-form").ValidationRule<string | number>;
27
+ maxLength: import("react-hook-form").ValidationRule<number>;
28
+ minLength: import("react-hook-form").ValidationRule<number>;
29
+ pattern: import("react-hook-form").ValidationRule<RegExp>;
30
+ validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
31
+ valueAsNumber: boolean;
32
+ valueAsDate: boolean;
33
+ value: any;
34
+ setValueAs: (value: any) => any;
35
+ shouldUnregister?: boolean | undefined;
36
+ onChange?: ((event: any) => void) | undefined;
37
+ onBlur?: ((event: any) => void) | undefined;
38
+ disabled: boolean;
39
+ deps: string | string[];
40
+ }>, "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs"> | undefined;
24
41
  control: import("react-hook-form").Control<any, any>;
25
42
  required: boolean;
26
43
  optional: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { StoryFn } from '@storybook/react';
2
+ import { StoryFn } from '@storybook/react';
3
3
  import { Video as VideoComponent } from './Video';
4
4
  declare const _default: {
5
5
  title: string;
@@ -27,4 +27,3 @@ export * from './Image/Image';
27
27
  export * from './Caruser/Carousel';
28
28
  export * from './TextMolecule/TextMolecule';
29
29
  export * from './Button/Button';
30
- export * from './ZealUIModal/ZealUIModal';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { StoryFn } from '@storybook/react';
2
+ import { ComponentStory } from '@storybook/react';
3
3
  import { Consent as ConsentComponent } from './Consent';
4
4
  declare const _default: {
5
5
  title: string;
6
6
  component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("./Consent").ConsentProps<T>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
- export declare const Consent: StoryFn<typeof ConsentComponent>;
9
+ export declare const Consent: ComponentStory<typeof ConsentComponent>;
@@ -1,5 +1,4 @@
1
1
  import { DefaultTheme, ThemedCssFunction } from 'styled-components';
2
- export declare type FileType = 'image' | 'video' | 'document' | 'audio';
3
2
  export declare type StylesType = ReturnType<ThemedCssFunction<DefaultTheme>>;
4
3
  export declare type StyledTransientProps<T> = {
5
4
  [K in keyof T & string as `$${K}`]: T[K];
@@ -12,6 +11,4 @@ export declare type Nullable<T> = T | null;
12
11
  declare type UnionKeys<T> = T extends any ? keyof T : never;
13
12
  declare type StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;
14
13
  export declare type StrictUnion<T> = StrictUnionHelper<T, T>;
15
- export declare type AnyObject = Record<string, unknown>;
16
- export declare type LooseObject = Record<string, any>;
17
14
  export {};
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import * as React$1 from 'react';
3
- import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType, KeyboardEvent } from 'react';
3
+ import React__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, CSSProperties as CSSProperties$1, ComponentType } from 'react';
4
4
  import * as styled_components from 'styled-components';
5
5
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
6
  import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1, FontSizesTypes as FontSizesTypes$2 } from 'theme';
7
7
  import * as typescript from 'typescript';
8
- import { StylesType, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, AnyObject, StrictUnion } from 'typescript';
8
+ import { StylesType, Callback as Callback$1, OverrideStyles, StyledTransientProps, Nullable, StrictUnion } from 'typescript';
9
9
  import { RefCallBack, Control as Control$1, ControllerProps as ControllerProps$1 } from 'react-hook-form/dist/types';
10
10
  import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
11
11
  import { InputFieldTypes as InputFieldTypes$1, FieldTypes as FieldTypes$1, UIFields as UIFields$2 } from 'fieldsConfiguration/types';
@@ -16,7 +16,7 @@ import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
16
16
  import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
17
17
  import * as atoms from 'atoms';
18
18
  import { TextProps as TextProps$1, IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, AvatarProps as AvatarProps$1, TabProps as TabProps$1, RadioButtonsProps as RadioButtonsProps$1, SelectOption as SelectOption$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';
19
- import { RadioGroup, DrawerProps as DrawerProps$1, ModalProps } from '@mui/material';
19
+ import { RadioGroup, DrawerProps as DrawerProps$1 } from '@mui/material';
20
20
  import { UIFields as UIFields$1, UIField as UIField$1 } from 'fieldsConfiguration';
21
21
  import { MaxRuleValidation, MinRuleValidation, SetPasswordFields } from 'organisms/SetPasswordForm/types';
22
22
  import { ConsentProps as ConsentProps$1, FilteredFeedContentType as FilteredFeedContentType$1, HeroSliderProps as HeroSliderProps$1, ProcessTrackerProps as ProcessTrackerProps$1, ProcessTrackerStatus as ProcessTrackerStatus$1 } from 'organisms';
@@ -36,10 +36,9 @@ import { AlertProps as AlertProps$2 } from 'molecules/Alert/Alert';
36
36
  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
- import * as contexts_ButtonActionsContext_ButtonActionsContext from 'contexts/ButtonActionsContext/ButtonActionsContext';
40
- import { ContainerComponentProps as ContainerComponentProps$1, ContainerProps as ContainerProps$1, Molecule as Molecule$1 } from 'containers';
41
39
  export * from 'helpers/constants';
42
40
  import { CheckboxInternalConfigProps as CheckboxInternalConfigProps$1 } from 'atoms/Checkbox/types';
41
+ import { ContainerProps as ContainerProps$1, ContainerComponentProps as ContainerComponentProps$1, Molecule as Molecule$1 } from 'containers';
43
42
  import * as containers_types_types from 'containers/types/types';
44
43
  import { ContainerProps as ContainerProps$2 } from 'containers/types/types';
45
44
 
@@ -889,28 +888,6 @@ declare type AnnotationsList = {
889
888
 
890
889
  declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
891
890
 
892
- declare const useButtonActionsContext: () => contexts_ButtonActionsContext_ButtonActionsContext.ButtonActionsContextType;
893
-
894
- declare type ButtonActionsContextType = {
895
- actionContent?: ContainerComponentProps$1;
896
- setActionContent: Dispatch<SetStateAction<ContainerComponentProps$1>>;
897
- isModalVisible: boolean;
898
- setModalVisible: Dispatch<SetStateAction<boolean>>;
899
- isDrawerVisible: boolean;
900
- setDrawerVisible: Dispatch<SetStateAction<boolean>>;
901
- };
902
- declare const ButtonActionsContext: React$1.Context<ButtonActionsContextType>;
903
-
904
- declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
905
- actionContent: ContainerComponentProps$1;
906
- setActionContent: Dispatch<SetStateAction<ContainerComponentProps$1>>;
907
- isModalVisible: boolean;
908
- setModalVisible: Dispatch<SetStateAction<boolean>>;
909
- setDrawerVisible: Dispatch<SetStateAction<boolean>>;
910
- isDrawerVisible: boolean;
911
- }>>;
912
- declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
913
-
914
891
  declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
915
892
  declare type LabelInternalConfig = {
916
893
  fontVariant: FontSizesTypes$2;
@@ -1307,13 +1284,14 @@ declare type ImageProps = {
1307
1284
  id: string;
1308
1285
  altText: string;
1309
1286
  link: string;
1287
+ onClick: Callback$1;
1310
1288
  width: number;
1311
1289
  height: number;
1312
1290
  cornerRadius: number;
1313
1291
  behaveAs: 'background' | 'regular';
1314
1292
  styles: StylesType;
1315
1293
  }>;
1316
- declare const Image: ({ src, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
1294
+ declare const Image: ({ src, onClick, link, altText, styles, width, height, id, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
1317
1295
 
1318
1296
  declare type CarouselProps = {
1319
1297
  children: JSX.Element[];
@@ -1384,56 +1362,14 @@ declare type ButtonProps = BaseButtonProps & {
1384
1362
  };
1385
1363
  declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: ButtonProps) => JSX.Element | null;
1386
1364
 
1387
- declare type ZealUIModalProps = PropsWithChildren<Pick<ModalProps, 'open'>> & {
1388
- padding?: number | string;
1389
- wrapperStyles?: CSSProperties;
1390
- onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
1391
- modalStyles?: CSSProperties;
1392
- onClose?: Callback$1;
1393
- };
1394
- declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
1395
- declare const ModalWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, OverrideStyles, never>;
1396
- declare const IconWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, {
1397
- activeOpacity?: number | undefined;
1398
- withoutOpacityEffect?: boolean | undefined;
1399
- disabled?: boolean | undefined;
1400
- } & {
1401
- children?: React__default.ReactNode;
1402
- }, never>;
1403
-
1404
1365
  declare const Container: ({ children, wide, compact, type, props }: ContainerProps$1) => JSX.Element;
1405
1366
  declare const ContainerComponent: ({ type, items, config, tabsProps }: ContainerComponentProps$1) => JSX.Element | null;
1406
1367
 
1407
- declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
1408
- declare type DownloadFile = {
1409
- url: string;
1410
- name: string;
1411
- };
1412
- declare type LinkAction = Omit<LinkAttributes, 'attributeType'>;
1413
- declare type PopupDrawerAction = ContainerComponentProps;
1414
- declare type DownloadAction = DownloadFile;
1415
- declare type SubmitAction = AnyObject;
1416
- declare type CancelAction = AnyObject;
1417
- declare type ResetAction = AnyObject;
1418
- declare type DestroyAction = AnyObject;
1419
- declare type Action = {
1420
- type: ActionTypes;
1421
- } & Partial<{
1422
- link: LinkAction;
1423
- popup: PopupDrawerAction;
1424
- drawer: PopupDrawerAction;
1425
- download: DownloadAction;
1426
- submit: SubmitAction;
1427
- cancel: CancelAction;
1428
- reset: ResetAction;
1429
- destroy: DestroyAction;
1430
- }>;
1431
1368
  declare type ImageAttributes = {
1432
1369
  attributeType: 'image';
1433
1370
  imageSource: string;
1434
1371
  };
1435
1372
  interface TextAttributes {
1436
- id?: string;
1437
1373
  attributeType: 'text';
1438
1374
  isRichText: boolean;
1439
1375
  text: string;
@@ -1442,10 +1378,6 @@ interface VideoAttributes {
1442
1378
  attributeType: 'video';
1443
1379
  videoSource: string;
1444
1380
  }
1445
- interface ActionAttributes {
1446
- attributeType: 'action';
1447
- action: Action;
1448
- }
1449
1381
  interface LinkAttributes {
1450
1382
  id: string;
1451
1383
  attributeType: 'link';
@@ -1455,7 +1387,6 @@ interface LinkAttributes {
1455
1387
  name: string;
1456
1388
  }
1457
1389
  interface SelectAttributes {
1458
- id?: string;
1459
1390
  attributeType: 'select';
1460
1391
  value: string;
1461
1392
  options: SelectOption$1[];
@@ -1473,10 +1404,6 @@ interface BaseMolecule {
1473
1404
  id: string;
1474
1405
  instance: 'molecule';
1475
1406
  type: MoleculeTypes;
1476
- metadata?: AnyObject;
1477
- idForFrontend?: string;
1478
- moleculeLibraryId?: string;
1479
- organismLibraryMoleculeId?: string;
1480
1407
  }
1481
1408
  interface ImageMolecule extends BaseMolecule {
1482
1409
  type: 'image';
@@ -1503,7 +1430,7 @@ interface ButtonMolecule extends BaseMolecule {
1503
1430
  type: 'button';
1504
1431
  attributes: {
1505
1432
  title: TextAttributes;
1506
- action: ActionAttributes;
1433
+ buttonLink: LinkAttributes;
1507
1434
  };
1508
1435
  config: {
1509
1436
  props: Partial<Omit<ButtonProps$1, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
@@ -1590,7 +1517,7 @@ declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMol
1590
1517
  };
1591
1518
 
1592
1519
  declare type ContainerType = 'row' | 'column' | 'slider' | 'form';
1593
- declare type ContainerPositionType = 'fixed' | 'sticky' | 'static' | 'relative';
1520
+ declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
1594
1521
  declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
1595
1522
  declare type ContainerPropsType = Partial<{
1596
1523
  position: ContainerPositionType;
@@ -1615,16 +1542,13 @@ declare type ContainerComponentProps = {
1615
1542
  id: string;
1616
1543
  instance: 'container';
1617
1544
  type: ContainerType;
1618
- items: (ContainerComponentProps | Molecule)[];
1619
1545
  config: {
1620
1546
  wide?: AdditionalContainerProps;
1621
1547
  compact?: AdditionalContainerProps;
1622
1548
  props?: ContainerPropsType;
1623
1549
  };
1550
+ items: (ContainerComponentProps | Molecule)[];
1624
1551
  tabsProps?: Pick<TabGroupProps$1, 'tabs' | 'activeTabKey' | 'onTabChange'>;
1625
- metadata?: AnyObject;
1626
- attributes?: AnyObject;
1627
- containerLibraryId?: string;
1628
1552
  };
1629
1553
 
1630
1554
  declare const ContainerWrapper: styled_components.StyledComponent<"div", styled_components.DefaultTheme, Pick<ContainerProps$2, "type"> & {
@@ -1644,4 +1568,4 @@ declare const OrganismItem: ({ item, tabsProps, }: {
1644
1568
  tabsProps?: Pick<TabGroupProps$1<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
1645
1569
  }) => JSX.Element | null;
1646
1570
 
1647
- 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, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, 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, 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, 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 };
1571
+ export { AcquisitionForm, AcquisitionFormProps, AdditionalContainerProps, AdditionalTabContainerProps, Alert, AlertProps, AnnotationsList, ArrowIconWrapper, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BackgroundImage, BaseButtonProps, BaseMolecule, Body, BodyProps, BooleanAttributes, BottomNaVBarItemProps, BottomNavBarItem, BottomNavBarNavigation, BottomNavBarNavigationProps, BreakpointSizesTypes, Button, 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, Consent, ConsentProps, Container, ContainerComponent, ContainerComponentProps, ContainerPositionType, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerType, ContainerWrapper, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, 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, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HeroImageTemplate, HeroSlider, HeroSliderProps, HeroSliderWrapper, HorizontalButtons, HorizontalButtonsField, HorizontalButtonsProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconButton, IconButtonProps, IconNames, IconProps, 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, Molecule, MoleculeTypes, NavigationDotsWrapper, OrganismItem, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProcessTrackerStatus, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldMolecule, RadioButtonFieldProps, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, RuleLabelInternalConfig, 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, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
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
- import { Dispatch, SetStateAction } from 'react';
2
- import { ContainerComponentProps } from 'containers';
3
- export declare type ButtonActionsContextType = {
4
- actionContent?: ContainerComponentProps;
5
- setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
6
- isModalVisible: boolean;
7
- setModalVisible: Dispatch<SetStateAction<boolean>>;
8
- isDrawerVisible: boolean;
9
- setDrawerVisible: Dispatch<SetStateAction<boolean>>;
10
- };
11
- export declare const ButtonActionsContext: import("react").Context<ButtonActionsContextType>;
@@ -1,11 +0,0 @@
1
- import { Dispatch, PropsWithChildren, SetStateAction } from 'react';
2
- import { ContainerComponentProps } from 'containers';
3
- export declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
4
- actionContent: ContainerComponentProps;
5
- setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
6
- isModalVisible: boolean;
7
- setModalVisible: Dispatch<SetStateAction<boolean>>;
8
- setDrawerVisible: Dispatch<SetStateAction<boolean>>;
9
- isDrawerVisible: boolean;
10
- }>>;
11
- export declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;