@zealicsolutions/web-ui 0.3.22 → 0.3.24
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/MoleculeItem.d.ts +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +20 -20
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +3 -3
- package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +1 -1
- package/dist/cjs/src/molecules/Image/Image.d.ts +1 -1
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +1 -1
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/cjs/src/molecules/Video/Video.d.ts +1 -1
- package/dist/cjs/src/molecules/Video/Video.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/MoleculeItem.d.ts +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +20 -20
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +3 -3
- package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +1 -1
- package/dist/esm/src/molecules/Image/Image.d.ts +1 -1
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +1 -1
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +1 -1
- package/dist/esm/src/molecules/Video/Video.d.ts +1 -1
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +1 -1
- package/dist/index.d.ts +22 -22
- package/package.json +1 -1
@@ -6,4 +6,4 @@ export declare const navigateToPage: (url: string) => void;
|
|
6
6
|
export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
|
7
7
|
export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id: moleculeId, }: Molecule & {
|
8
8
|
tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
9
|
-
}) => JSX.Element;
|
9
|
+
}) => JSX.Element | null;
|
@@ -91,45 +91,45 @@ export interface BaseMolecule {
|
|
91
91
|
}
|
92
92
|
export interface ImageMolecule extends BaseMolecule {
|
93
93
|
type: 'image';
|
94
|
-
attributes: {
|
94
|
+
attributes: Partial<{
|
95
95
|
image: ImageAttributes;
|
96
96
|
altText: Omit<TextAttributes, 'isRichText'>;
|
97
97
|
link: LinkAttributes;
|
98
|
-
}
|
98
|
+
}>;
|
99
99
|
config: {
|
100
100
|
props?: Omit<ImageProps, 'src' | 'link' | 'altText'>;
|
101
101
|
};
|
102
102
|
}
|
103
103
|
export interface TextMoleculeType extends BaseMolecule {
|
104
104
|
type: 'text';
|
105
|
-
attributes: {
|
105
|
+
attributes: Partial<{
|
106
106
|
text: TextAttributes;
|
107
107
|
seoStyle: SelectAttributes;
|
108
108
|
fontVariant: SelectAttributes;
|
109
|
-
}
|
109
|
+
}>;
|
110
110
|
config: {
|
111
111
|
props?: TextMoleculeProps;
|
112
112
|
};
|
113
113
|
}
|
114
114
|
export interface ButtonMolecule extends BaseMolecule {
|
115
115
|
type: 'button';
|
116
|
-
attributes: {
|
116
|
+
attributes: Partial<{
|
117
117
|
title: TextAttributes;
|
118
118
|
action: ActionAttributes;
|
119
|
-
}
|
119
|
+
}>;
|
120
120
|
config: {
|
121
121
|
props?: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
|
122
122
|
};
|
123
123
|
}
|
124
124
|
export interface VideoMolecule extends BaseMolecule {
|
125
125
|
type: 'video';
|
126
|
-
attributes: {
|
126
|
+
attributes: Partial<{
|
127
127
|
video: VideoAttributes;
|
128
128
|
altText: Omit<TextAttributes, 'isRichText'>;
|
129
129
|
autoPlayVideo: BooleanAttributes;
|
130
130
|
enableCoverImage: BooleanAttributes;
|
131
131
|
coverImage: ImageAttributes;
|
132
|
-
}
|
132
|
+
}>;
|
133
133
|
config: {
|
134
134
|
props: Partial<{
|
135
135
|
width: number;
|
@@ -147,13 +147,13 @@ export interface TabGroupMolecule extends BaseMolecule {
|
|
147
147
|
}
|
148
148
|
export interface TextInputMolecule extends BaseMolecule {
|
149
149
|
type: 'input_field';
|
150
|
-
attributes: {
|
150
|
+
attributes: Partial<{
|
151
151
|
label: TextAttributes;
|
152
152
|
required: BooleanAttributes;
|
153
153
|
inputType: SelectAttributes;
|
154
154
|
dataModelField: DataConnectionAttributes;
|
155
155
|
conditionConfig: ConditionConfigAttributes;
|
156
|
-
}
|
156
|
+
}>;
|
157
157
|
config: {
|
158
158
|
props?: Partial<{
|
159
159
|
state: 'default' | 'error';
|
@@ -162,13 +162,13 @@ export interface TextInputMolecule extends BaseMolecule {
|
|
162
162
|
}
|
163
163
|
export interface SelectFieldMolecule extends BaseMolecule {
|
164
164
|
type: 'select_field';
|
165
|
-
attributes: {
|
165
|
+
attributes: Partial<{
|
166
166
|
label: TextAttributes;
|
167
167
|
required: BooleanAttributes;
|
168
168
|
options: IterableAttributes;
|
169
169
|
dataModelField: DataConnectionAttributes;
|
170
170
|
conditionConfig: ConditionConfigAttributes;
|
171
|
-
}
|
171
|
+
}>;
|
172
172
|
config: {
|
173
173
|
props?: Partial<{
|
174
174
|
state: 'default' | 'error';
|
@@ -177,13 +177,13 @@ export interface SelectFieldMolecule extends BaseMolecule {
|
|
177
177
|
}
|
178
178
|
export interface RadioButtonFieldMolecule extends BaseMolecule {
|
179
179
|
type: 'radio_button_field';
|
180
|
-
attributes: {
|
180
|
+
attributes: Partial<{
|
181
181
|
label: TextAttributes;
|
182
182
|
required: BooleanAttributes;
|
183
183
|
options: IterableAttributes;
|
184
184
|
dataModelField: DataConnectionAttributes;
|
185
185
|
conditionConfig: ConditionConfigAttributes;
|
186
|
-
}
|
186
|
+
}>;
|
187
187
|
config: {
|
188
188
|
props?: Partial<{
|
189
189
|
state: 'default' | 'error';
|
@@ -192,13 +192,13 @@ export interface RadioButtonFieldMolecule extends BaseMolecule {
|
|
192
192
|
}
|
193
193
|
export interface CheckboxFieldMolecule extends BaseMolecule {
|
194
194
|
type: 'checkbox_field';
|
195
|
-
attributes: {
|
195
|
+
attributes: Partial<{
|
196
196
|
label: TextAttributes;
|
197
197
|
required: BooleanAttributes;
|
198
198
|
options: IterableAttributes;
|
199
199
|
dataModelField: DataConnectionAttributes;
|
200
200
|
conditionConfig: ConditionConfigAttributes;
|
201
|
-
}
|
201
|
+
}>;
|
202
202
|
config: {
|
203
203
|
props?: Partial<{
|
204
204
|
state: 'default' | 'error';
|
@@ -207,13 +207,13 @@ export interface CheckboxFieldMolecule extends BaseMolecule {
|
|
207
207
|
}
|
208
208
|
export interface ConsentFieldMolecule extends BaseMolecule {
|
209
209
|
type: 'consent';
|
210
|
-
attributes: {
|
211
|
-
consent: {
|
210
|
+
attributes: Partial<{
|
211
|
+
consent: Partial<{
|
212
212
|
attributeType: 'consent';
|
213
213
|
consent: Consent;
|
214
214
|
required: BooleanAttributes;
|
215
|
-
}
|
216
|
-
}
|
215
|
+
}>;
|
216
|
+
}>;
|
217
217
|
}
|
218
218
|
export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule> & {
|
219
219
|
form?: UseFormReturn<any>;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
3
2
|
import { SelectOption } from 'atoms';
|
4
|
-
import type { StylesType } from 'typescript';
|
5
3
|
import { CheckboxInternalConfigProps } from 'atoms/Checkbox/types';
|
6
|
-
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
7
4
|
import { ConditionConfig } from 'containers';
|
5
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
6
|
+
import type { StylesType } from 'typescript';
|
7
|
+
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
8
8
|
export declare type CheckboxesProps = Partial<{
|
9
9
|
checkboxGroupWrapperStyles: StylesType;
|
10
10
|
checkboxFieldWrapperStyles: StylesType;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ConsentFieldMolecule } from 'containers';
|
3
|
-
export declare const ConsentMolecule: (attributes: ConsentFieldMolecule['attributes']) => JSX.Element;
|
3
|
+
export declare const ConsentMolecule: (attributes: ConsentFieldMolecule['attributes']) => JSX.Element | null;
|
@@ -13,4 +13,4 @@ export declare type ImageProps = {
|
|
13
13
|
behaveAs: 'background' | 'regular';
|
14
14
|
styles: StylesType;
|
15
15
|
}>;
|
16
|
-
export declare const Image: ({ src, onClick, 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 | null;
|
@@ -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, onClick, 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 | null;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Image: StoryFn<typeof ImageComponent>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { RadioButtonInternalConfigProps, RadioButtonsProps } from 'atoms';
|
3
|
+
import { ConditionConfig } from 'containers';
|
3
4
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
5
|
import type { StylesType } from 'typescript';
|
5
6
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
-
import { ConditionConfig } from 'containers';
|
7
7
|
export declare type RadioButtonFieldProps<T extends string> = Partial<{
|
8
8
|
name: string;
|
9
9
|
rules: ControllerProps['rules'];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SelectProps } from 'atoms';
|
3
|
+
import { ConditionConfig } from 'containers';
|
3
4
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
5
|
import type { StylesType } from 'typescript';
|
5
6
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
|
-
import { ConditionConfig } from 'containers';
|
7
7
|
export declare type SelectFieldProps = Partial<{
|
8
8
|
selectProps: SelectProps;
|
9
9
|
labelsProps: FieldLabelsProps;
|
@@ -11,4 +11,4 @@ export declare type VideoProps = {
|
|
11
11
|
style: CSSProperties;
|
12
12
|
template: FeedContentTemplateTypes;
|
13
13
|
}>;
|
14
|
-
export declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: VideoProps) => JSX.Element;
|
14
|
+
export declare const Video: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: 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, }: import("./Video").VideoProps) => JSX.Element;
|
6
|
+
component: ({ style, src, width, template, autoplay, enableCoverImage, coverImageSrc, }: import("./Video").VideoProps) => JSX.Element | null;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Video: StoryFn<typeof VideoComponent>;
|