@zealicsolutions/web-ui 0.4.31 → 0.4.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/hooks/useSetFormData.d.ts +1 -1
- package/dist/cjs/src/containers/hooks/useStateModifierHandler.d.ts +1 -1
- package/dist/cjs/src/containers/mock-data.d.ts +278 -0
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +2 -1
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +17 -3
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +1 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +4 -3
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.d.ts +5 -3
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +1 -1
- package/dist/esm/index.js +12 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/hooks/useSetFormData.d.ts +1 -1
- package/dist/esm/src/containers/hooks/useStateModifierHandler.d.ts +1 -1
- package/dist/esm/src/containers/mock-data.d.ts +278 -0
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +2 -1
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +17 -3
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +1 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +4 -3
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.d.ts +5 -3
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +1 -1
- package/dist/index.d.ts +25 -7
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DataConnectionValues } from 'containers/types/moleculeTypes';
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
3
|
-
import { AnyObject } from 'typescript';
|
3
|
+
import type { AnyObject } from 'typescript';
|
4
4
|
declare type UseSetFormDataProps<DefaultValueType> = Partial<{
|
5
5
|
defaultValue: DefaultValueType;
|
6
6
|
dataModelField: DataConnectionValues;
|
@@ -16,3 +16,281 @@ export declare const DataField: ContainerComponentProps;
|
|
16
16
|
export declare const LogInPermanentPage: ContainerComponentProps;
|
17
17
|
export declare const stateObjectButton: ContainerComponentProps;
|
18
18
|
export declare const stateObjectLink: ContainerComponentProps;
|
19
|
+
export declare const popUP: {
|
20
|
+
id: string;
|
21
|
+
config: {
|
22
|
+
size: string;
|
23
|
+
styles: {};
|
24
|
+
};
|
25
|
+
content: {
|
26
|
+
embedded: {
|
27
|
+
instance: string;
|
28
|
+
type: string;
|
29
|
+
items: {
|
30
|
+
instance: string;
|
31
|
+
config: {
|
32
|
+
compact: {
|
33
|
+
containerProps: {};
|
34
|
+
containerStyle: {
|
35
|
+
display: string;
|
36
|
+
gap: string;
|
37
|
+
width: string;
|
38
|
+
flexDirection: string;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
wide: {
|
42
|
+
containerProps: {};
|
43
|
+
containerStyle: {
|
44
|
+
display: string;
|
45
|
+
gap: string;
|
46
|
+
width: string;
|
47
|
+
flexDirection: string;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
props: {
|
51
|
+
formStepProps: {
|
52
|
+
formStepName: string;
|
53
|
+
order: number;
|
54
|
+
conditionConfig: null;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
type: string;
|
59
|
+
items: {
|
60
|
+
type: string;
|
61
|
+
config: {
|
62
|
+
wide: {
|
63
|
+
containerProps: {};
|
64
|
+
containerStyle: {
|
65
|
+
display: string;
|
66
|
+
gap: string;
|
67
|
+
width: string;
|
68
|
+
flexDirection: string;
|
69
|
+
};
|
70
|
+
};
|
71
|
+
compact: {
|
72
|
+
containerProps: {};
|
73
|
+
containerStyle: {
|
74
|
+
display: string;
|
75
|
+
gap: string;
|
76
|
+
width: string;
|
77
|
+
flexDirection: string;
|
78
|
+
};
|
79
|
+
};
|
80
|
+
};
|
81
|
+
items: {
|
82
|
+
id: string;
|
83
|
+
moleculeLibraryId: string;
|
84
|
+
instance: string;
|
85
|
+
type: string;
|
86
|
+
metadata: {};
|
87
|
+
config: {};
|
88
|
+
attributes: {
|
89
|
+
label: {
|
90
|
+
required: boolean;
|
91
|
+
isRichText: boolean;
|
92
|
+
attributeType: string;
|
93
|
+
showRichTextToolbar: boolean;
|
94
|
+
text: string;
|
95
|
+
id: string;
|
96
|
+
};
|
97
|
+
required: {
|
98
|
+
attributeType: string;
|
99
|
+
value: boolean;
|
100
|
+
id: string;
|
101
|
+
};
|
102
|
+
dataModelField: {
|
103
|
+
attributeType: string;
|
104
|
+
required: boolean;
|
105
|
+
dataModelField: {
|
106
|
+
dataModelFieldId: string;
|
107
|
+
entitySubtypeId: string;
|
108
|
+
dataFieldName: string;
|
109
|
+
entitySubtypeName: string;
|
110
|
+
defaultValue: null;
|
111
|
+
format: {
|
112
|
+
id: string;
|
113
|
+
label: string;
|
114
|
+
value: string;
|
115
|
+
code: string;
|
116
|
+
config: {
|
117
|
+
dataModelFieldType: string;
|
118
|
+
};
|
119
|
+
};
|
120
|
+
};
|
121
|
+
id: string;
|
122
|
+
};
|
123
|
+
conditionConfig: {
|
124
|
+
attributeType: string;
|
125
|
+
conditionConfig: {
|
126
|
+
criteriaList: never[];
|
127
|
+
segmentationType: string;
|
128
|
+
};
|
129
|
+
id: string;
|
130
|
+
};
|
131
|
+
};
|
132
|
+
}[];
|
133
|
+
metadata: {};
|
134
|
+
instance: string;
|
135
|
+
fields: {
|
136
|
+
id: string;
|
137
|
+
type: string;
|
138
|
+
values: {
|
139
|
+
id: string;
|
140
|
+
createdAt: string;
|
141
|
+
updatedAt: string;
|
142
|
+
name: string;
|
143
|
+
type: string;
|
144
|
+
previewImageUrl: string;
|
145
|
+
attributes: {
|
146
|
+
label: {
|
147
|
+
required: boolean;
|
148
|
+
isRichText: boolean;
|
149
|
+
attributeType: string;
|
150
|
+
showRichTextToolbar: boolean;
|
151
|
+
};
|
152
|
+
required: {
|
153
|
+
attributeType: string;
|
154
|
+
};
|
155
|
+
dataModelField: {
|
156
|
+
id: string;
|
157
|
+
attributeType: string;
|
158
|
+
required: boolean;
|
159
|
+
dataModelField: {
|
160
|
+
dataModelFieldId: string;
|
161
|
+
entitySubtypeId: string;
|
162
|
+
dataFieldName: string;
|
163
|
+
entitySubtypeName: string;
|
164
|
+
defaultValue: null;
|
165
|
+
format: {
|
166
|
+
id: string;
|
167
|
+
label: string;
|
168
|
+
value: string;
|
169
|
+
code: string;
|
170
|
+
config: {
|
171
|
+
dataModelFieldType: string;
|
172
|
+
};
|
173
|
+
};
|
174
|
+
};
|
175
|
+
};
|
176
|
+
conditionConfig: {
|
177
|
+
id: string;
|
178
|
+
attributeType: string;
|
179
|
+
conditionConfig: {
|
180
|
+
id: string;
|
181
|
+
criteriaList: never[];
|
182
|
+
segmentationType: string;
|
183
|
+
};
|
184
|
+
};
|
185
|
+
};
|
186
|
+
config: {};
|
187
|
+
metadata: {
|
188
|
+
group: string[];
|
189
|
+
};
|
190
|
+
deleted: boolean;
|
191
|
+
moleculeId: string;
|
192
|
+
moleculeLibraryId: string;
|
193
|
+
label: {
|
194
|
+
type: string;
|
195
|
+
children: {
|
196
|
+
text: string;
|
197
|
+
}[];
|
198
|
+
}[];
|
199
|
+
showRichTextToolbar: boolean;
|
200
|
+
conditionConfig: {
|
201
|
+
id: string;
|
202
|
+
criteriaList: never[];
|
203
|
+
segmentationType: string;
|
204
|
+
};
|
205
|
+
dataModelField: {
|
206
|
+
name: string;
|
207
|
+
dataModelFieldId: string;
|
208
|
+
entitySubtypeId: string;
|
209
|
+
dataFieldName: string;
|
210
|
+
entitySubtypeName: string;
|
211
|
+
defaultValue: null;
|
212
|
+
format: {
|
213
|
+
id: string;
|
214
|
+
label: string;
|
215
|
+
value: string;
|
216
|
+
code: string;
|
217
|
+
config: {
|
218
|
+
dataModelFieldType: string;
|
219
|
+
};
|
220
|
+
};
|
221
|
+
};
|
222
|
+
labelRequired: boolean;
|
223
|
+
dataModelFieldRequired: boolean;
|
224
|
+
};
|
225
|
+
instance: string;
|
226
|
+
previewImageUrl: string;
|
227
|
+
moleculeLibraryId: string;
|
228
|
+
attributes: {
|
229
|
+
label: {
|
230
|
+
required: boolean;
|
231
|
+
isRichText: boolean;
|
232
|
+
attributeType: string;
|
233
|
+
showRichTextToolbar: boolean;
|
234
|
+
};
|
235
|
+
required: {
|
236
|
+
attributeType: string;
|
237
|
+
};
|
238
|
+
dataModelField: {
|
239
|
+
required: boolean;
|
240
|
+
attributeType: string;
|
241
|
+
};
|
242
|
+
conditionConfig: {
|
243
|
+
attributeType: string;
|
244
|
+
};
|
245
|
+
};
|
246
|
+
idForFrontend: string;
|
247
|
+
}[];
|
248
|
+
containerLibraryId: string;
|
249
|
+
id: string;
|
250
|
+
}[];
|
251
|
+
metadata: {
|
252
|
+
validation: string;
|
253
|
+
};
|
254
|
+
organismLibraryContainerId: string;
|
255
|
+
containerLibraryId: string;
|
256
|
+
id: string;
|
257
|
+
}[];
|
258
|
+
config: {
|
259
|
+
compact: {
|
260
|
+
containerProps: {};
|
261
|
+
containerStyle: {
|
262
|
+
padding: string;
|
263
|
+
};
|
264
|
+
};
|
265
|
+
wide: {
|
266
|
+
containerProps: {};
|
267
|
+
containerStyle: {
|
268
|
+
padding: string;
|
269
|
+
};
|
270
|
+
};
|
271
|
+
props: {
|
272
|
+
formProps: {
|
273
|
+
mode: string;
|
274
|
+
};
|
275
|
+
styles: {
|
276
|
+
display: string;
|
277
|
+
flexDirection: string;
|
278
|
+
gap: string;
|
279
|
+
padding: string;
|
280
|
+
};
|
281
|
+
};
|
282
|
+
};
|
283
|
+
metadata: {
|
284
|
+
validation: string;
|
285
|
+
display: {
|
286
|
+
type: string;
|
287
|
+
itemsPerStep: number;
|
288
|
+
};
|
289
|
+
};
|
290
|
+
organismLibraryContainerId: string;
|
291
|
+
containerLibraryId: string;
|
292
|
+
id: string;
|
293
|
+
}[];
|
294
|
+
isi: null;
|
295
|
+
};
|
296
|
+
};
|
@@ -4,8 +4,9 @@ export declare type ButtonActionsContextType = {
|
|
4
4
|
actionContent?: ContainerComponentProps;
|
5
5
|
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
6
|
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
7
|
isDrawerVisible: boolean;
|
9
8
|
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
9
|
+
setActivePopUpById: (id: string) => void;
|
10
|
+
onCloseModal: (id: string) => void;
|
10
11
|
};
|
11
12
|
export declare const ButtonActionsContext: import("react").Context<ButtonActionsContextType>;
|
@@ -1,11 +1,25 @@
|
|
1
1
|
import { Dispatch, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import {
|
2
|
+
import { AnyObject } from 'typescript';
|
3
|
+
import { ContainerComponentProps, Molecule } from 'containers';
|
4
|
+
export declare type PopupPropsType = {
|
5
|
+
id: string;
|
6
|
+
config: {
|
7
|
+
styles?: AnyObject;
|
8
|
+
size?: 'large' | 'medium';
|
9
|
+
};
|
10
|
+
content: {
|
11
|
+
embedded?: (ContainerComponentProps | Molecule)[];
|
12
|
+
isi?: ContainerComponentProps | Molecule;
|
13
|
+
};
|
14
|
+
};
|
3
15
|
export declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
|
4
16
|
actionContent: ContainerComponentProps;
|
5
17
|
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
18
|
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
19
|
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
9
20
|
isDrawerVisible: boolean;
|
21
|
+
setActivePopUpById: (id: string) => void;
|
22
|
+
onCloseModal: (id: string) => void;
|
23
|
+
popupProps?: PopupPropsType[];
|
10
24
|
}>>;
|
11
|
-
export declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
|
25
|
+
export declare const ButtonActionsProvider: ({ children, popupProps }: ButtonActionsProviderProps) => JSX.Element;
|
@@ -23,5 +23,6 @@ export declare type OrganismContextType = {
|
|
23
23
|
validations?: PasswordRuleValidation[];
|
24
24
|
editable?: boolean;
|
25
25
|
isFormInEditMode?: boolean;
|
26
|
+
organismMetadata?: AnyObject;
|
26
27
|
};
|
27
28
|
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
1
2
|
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
+
import type { AnyObject } from 'typescript';
|
2
4
|
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
3
|
-
import { PropsWithChildren } from 'react';
|
4
|
-
import { AnyObject } from 'typescript';
|
5
5
|
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
6
6
|
initItems: (ContainerComponentProps | Molecule)[];
|
7
7
|
formId: string;
|
@@ -12,5 +12,6 @@ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
|
12
12
|
validations: PasswordRuleValidation[];
|
13
13
|
editable: boolean;
|
14
14
|
isFormInEditMode?: boolean;
|
15
|
+
organismMetadata?: AnyObject;
|
15
16
|
}>>;
|
16
|
-
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isFormInEditMode, }: FormStepContextProviderProps) => JSX.Element;
|
17
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isFormInEditMode, organismMetadata, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import { ModalProps as MUIModalProps } from '@mui/material';
|
2
2
|
import React, { KeyboardEvent, PropsWithChildren } from 'react';
|
3
3
|
import { CSSProperties } from 'styled-components';
|
4
|
-
import type {
|
4
|
+
import type { OverrideStyles } from 'typescript';
|
5
5
|
export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'open'>> & {
|
6
6
|
padding?: number | string;
|
7
7
|
wrapperStyles?: CSSProperties;
|
8
8
|
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
9
9
|
modalStyles?: CSSProperties;
|
10
|
-
|
10
|
+
size?: string;
|
11
|
+
popupId: string;
|
12
|
+
onClose: (popupId: string) => void;
|
11
13
|
};
|
12
|
-
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
14
|
+
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, size, popupId, ...rest }: ZealUIModalProps) => JSX.Element;
|
13
15
|
export declare const ModalWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
14
16
|
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
15
17
|
activeOpacity?: number | undefined;
|
@@ -2,7 +2,7 @@ import type { StoryFn } from '@storybook/react';
|
|
2
2
|
import { ZealUIModal as ZealUIModalComponent } from './ZealUIModal';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
|
5
|
+
component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, size, popupId, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const ZealUIModal: StoryFn<typeof ZealUIModalComponent>;
|