@zealicsolutions/web-ui 0.3.53 → 0.3.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/containers/Container.d.ts +3 -2
  4. package/dist/cjs/src/containers/FormOrganismItem.d.ts +2 -1
  5. package/dist/cjs/src/containers/MoleculeItem.d.ts +2 -1
  6. package/dist/cjs/src/containers/OrganismItem.d.ts +2 -1
  7. package/dist/cjs/src/containers/types/moleculeTypes.d.ts +2 -2
  8. package/dist/cjs/src/containers/types/types.d.ts +2 -0
  9. package/dist/cjs/src/molecules/Consent/Consent.d.ts +1 -1
  10. package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -1
  11. package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
  12. package/dist/cjs/src/molecules/Video/Video.d.ts +2 -1
  13. package/dist/cjs/src/molecules/Video/Video.stories.d.ts +1 -1
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/src/containers/Container.d.ts +3 -2
  17. package/dist/esm/src/containers/FormOrganismItem.d.ts +2 -1
  18. package/dist/esm/src/containers/MoleculeItem.d.ts +2 -1
  19. package/dist/esm/src/containers/OrganismItem.d.ts +2 -1
  20. package/dist/esm/src/containers/types/moleculeTypes.d.ts +2 -2
  21. package/dist/esm/src/containers/types/types.d.ts +2 -0
  22. package/dist/esm/src/molecules/Consent/Consent.d.ts +1 -1
  23. package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -1
  24. package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
  25. package/dist/esm/src/molecules/Video/Video.d.ts +2 -1
  26. package/dist/esm/src/molecules/Video/Video.stories.d.ts +1 -1
  27. package/dist/index.d.ts +24 -17
  28. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { ContainerComponentProps, ContainerProps } from 'containers';
2
2
  import { Dispatch, ReactNode, SetStateAction } from 'react';
3
3
  import { AnyObject } from 'typescript';
4
- export declare const Container: ({ children, wide, compact, type, props, id, metadata, }: Partial<{
4
+ export declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile: isMobileProp, }: Partial<{
5
5
  type: import("containers").ContainerType;
6
6
  containerTemplateType: "row_content_container";
7
7
  wide: Partial<{
@@ -53,12 +53,13 @@ export declare const Container: ({ children, wide, compact, type, props, id, met
53
53
  activeOrganismIds: string[];
54
54
  }>;
55
55
  metadata: AnyObject;
56
+ isMobile: boolean;
56
57
  }> & {
57
58
  children?: ReactNode;
58
59
  } & {
59
60
  id: string;
60
61
  }) => JSX.Element;
61
- export declare const ContainerComponent: ({ config, tabsProps, id, type, items, metadata, formData, setFormData, }: ContainerComponentProps & {
62
+ export declare const ContainerComponent: ({ config, tabsProps, id, type, items, metadata, formData, setFormData, isMobile, }: ContainerComponentProps & {
62
63
  formData?: AnyObject | undefined;
63
64
  setFormData?: Dispatch<SetStateAction<AnyObject>> | undefined;
64
65
  }) => JSX.Element | null;
@@ -6,5 +6,6 @@ export declare type FormOrganismItemProps = {
6
6
  activeChildrenIds: string[];
7
7
  formData?: AnyObject;
8
8
  setFormData?: Dispatch<SetStateAction<AnyObject>>;
9
+ isMobile?: boolean;
9
10
  };
10
- export declare const FormOrganismItem: ({ formData, setFormData, ...props }: FormOrganismItemProps) => JSX.Element | null;
11
+ export declare const FormOrganismItem: ({ formData, setFormData, isMobile, ...props }: FormOrganismItemProps) => JSX.Element | null;
@@ -4,6 +4,7 @@ import { TabGroupProps } from 'molecules';
4
4
  export declare const getFullLink: (url: string) => string;
5
5
  export declare const navigateToPage: (url: string) => void;
6
6
  export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
7
- export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id: moleculeId, formData, setFormData, }: Molecule & {
7
+ export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id: moleculeId, formData, setFormData, isMobile, }: Molecule & {
8
8
  tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
9
+ isMobile?: boolean | undefined;
9
10
  }) => JSX.Element | null;
@@ -7,5 +7,6 @@ export declare type OrganismItemProps = {
7
7
  tabsProps?: Pick<TabGroupProps, 'tabs' | 'activeTabKey' | 'onTabChange'>;
8
8
  formData?: AnyObject;
9
9
  setFormData?: Dispatch<SetStateAction<AnyObject>>;
10
+ isMobile?: boolean;
10
11
  };
11
- export declare const OrganismItem: ({ item, tabsProps, formData, setFormData }: OrganismItemProps) => JSX.Element | null;
12
+ export declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { LinkVariant, SelectOption } from 'atoms';
2
- import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ConsentProps, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
2
+ import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
3
3
  import { Dispatch, SetStateAction } from 'react';
4
4
  import { UseFormReturn } from 'react-hook-form';
5
5
  import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
@@ -208,7 +208,7 @@ export interface ConsentFieldMolecule extends BaseMolecule {
208
208
  attributes: Partial<{
209
209
  consent: Partial<{
210
210
  attributeType: 'consent';
211
- consent: ConsentProps;
211
+ consent: ConsentType;
212
212
  required: BooleanAttributes;
213
213
  }>;
214
214
  conditionConfig: ConditionConfigAttributes;
@@ -49,6 +49,7 @@ export declare type ContainerProps = PropsWithChildren<Partial<{
49
49
  compact: AdditionalContainerProps;
50
50
  props: ContainerPropsType;
51
51
  metadata: AnyObject;
52
+ isMobile: boolean;
52
53
  }>>;
53
54
  export declare type ContainerComponentProps = {
54
55
  id: string;
@@ -64,6 +65,7 @@ export declare type ContainerComponentProps = {
64
65
  metadata?: AnyObject;
65
66
  attributes?: AnyObject;
66
67
  containerLibraryId?: string;
68
+ isMobile?: boolean;
67
69
  };
68
70
  export declare type CriteriaType = 'operator' | 'condition';
69
71
  export declare type ConditionCriteria = {
@@ -4,7 +4,7 @@ import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
4
4
  import { CSSProperties } from 'styled-components';
5
5
  export declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
6
6
  export declare type DefaultSelectionType = 'confirmation' | 'rejection';
7
- export declare type Consent = {
7
+ export declare type ConsentType = {
8
8
  id: string;
9
9
  name: string;
10
10
  acknowledgment: CustomDescendant[];
@@ -24,5 +24,6 @@ export declare type TabGroupProps<T = string, K = string> = {
24
24
  selectedTabIndicatorColor?: ThemeColors | string;
25
25
  wide?: AdditionalTabContainerProps;
26
26
  compact?: AdditionalTabContainerProps;
27
+ isMobile?: boolean;
27
28
  };
28
- export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
29
+ export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, isMobile: isMobileProp, ...props }: TabGroupProps<T, K>) => JSX.Element;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { TabGroupProps } from './TabGroup';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
6
+ component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, isMobile: isMobileProp, ...props }: TabGroupProps<T, K>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const TabGroup: StoryFn<TabGroupProps>;
@@ -6,6 +6,7 @@ export declare type VideoProps = {
6
6
  src: string;
7
7
  } & Partial<{
8
8
  width: number;
9
+ height: number;
9
10
  autoplay: boolean;
10
11
  enableCoverImage: boolean;
11
12
  coverImageSrc: string;
@@ -13,4 +14,4 @@ export declare type VideoProps = {
13
14
  styles: StylesType;
14
15
  template: FeedContentTemplateTypes;
15
16
  }>;
16
- export declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, styles, }: VideoProps) => JSX.Element | null;
17
+ export declare const Video: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, }: VideoProps) => JSX.Element | null;
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
3
3
  import { Video as VideoComponent } from './Video';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, styles, }: import("./Video").VideoProps) => JSX.Element | null;
6
+ component: ({ style, src, width, height, template, autoplay, enableCoverImage, coverImageSrc, styles, }: import("./Video").VideoProps) => JSX.Element | null;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Video: StoryFn<typeof VideoComponent>;