@zealicsolutions/web-ui 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 {};