@zealicsolutions/web-ui 0.3.52 → 0.3.54
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.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/Container.d.ts +3 -2
- package/dist/cjs/src/containers/FormOrganismItem.d.ts +2 -1
- package/dist/cjs/src/containers/MoleculeItem.d.ts +2 -1
- package/dist/cjs/src/containers/OrganismItem.d.ts +2 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/cjs/src/containers/types/types.d.ts +2 -0
- package/dist/cjs/src/molecules/Consent/Consent.d.ts +1 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -1
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/Container.d.ts +3 -2
- package/dist/esm/src/containers/FormOrganismItem.d.ts +2 -1
- package/dist/esm/src/containers/MoleculeItem.d.ts +2 -1
- package/dist/esm/src/containers/OrganismItem.d.ts +2 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/esm/src/containers/types/types.d.ts +2 -0
- package/dist/esm/src/molecules/Consent/Consent.d.ts +1 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -1
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +1 -1
- package/dist/index.d.ts +22 -16
- 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,
|
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:
|
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
|
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>;
|