@layers-app/shared 0.0.39 → 0.0.41
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/{KanbanLayout-k814Ysrn.js → KanbanLayout-BUnjGOO7.js} +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +1 -1
- package/dist/components/AppContainer/components/MenuUserDropdown.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +5 -3
- package/dist/components/AppContainer/types.d.ts +4 -1
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +5 -0
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +3 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts +2 -2
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +12 -0
- package/dist/components/CommentComposer/index.d.ts +10 -8
- package/dist/components/CommentFilterMenu/index.d.ts +9 -0
- package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +5 -1
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +3 -4
- package/dist/components/CommentsPanel/components/{CommentFilterMenu.d.ts → CommentTabFilter.d.ts} +2 -1
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +5 -2
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +3 -4
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +5 -1
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +9 -5
- package/dist/components/CommentsPanel/index.d.ts +10 -6
- package/dist/components/CommentsPanel/store.d.ts +7 -1
- package/dist/components/CommentsPanel/types.d.ts +152 -57
- package/dist/components/CommentsPanel/utils.d.ts +11 -5
- package/dist/components/EntityTitle/EntityTitle.d.ts +2 -1
- package/dist/components/FormViewer/FormViewer.d.ts +8 -0
- package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
- package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
- package/dist/components/FormViewer/components/Container.d.ts +5 -0
- package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
- package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
- package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
- package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
- package/dist/components/FormViewer/components/Step.d.ts +6 -0
- package/dist/components/FormViewer/components/StepDescription.d.ts +6 -0
- package/dist/components/FormViewer/components/StepTitle.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
- package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +9 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
- package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
- package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
- package/dist/components/FormViewer/components/fields/StartField.d.ts +6 -0
- package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
- package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
- package/dist/components/FormViewer/constants/defaultTheme.d.ts +2 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +285 -0
- package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
- package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
- package/dist/components/FormViewer/helpers/helpers.d.ts +283 -0
- package/dist/components/FormViewer/helpers/index.d.ts +7 -0
- package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
- package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
- package/dist/components/FormViewer/helpers/steps.d.ts +298 -0
- package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
- package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
- package/dist/components/FormViewer/hooks/index.d.ts +6 -0
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +206 -0
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +281 -0
- package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +146 -0
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
- package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
- package/dist/components/FormViewer/index.d.ts +8 -0
- package/dist/components/FormViewer/store/formStore.d.ts +1357 -0
- package/dist/components/FormViewer/store/formStoreApi.d.ts +659 -0
- package/dist/components/FormViewer/store/selectors.d.ts +80491 -0
- package/dist/components/FormViewer/types/form.d.ts +58 -0
- package/dist/components/FormViewer/types/schemes.d.ts +7595 -0
- package/dist/components/InviteModal/InviteModal.d.ts +2 -0
- package/dist/components/InviteModal/slice.d.ts +13 -0
- package/dist/components/NoData/NoData.d.ts +24 -6
- package/dist/components/SearchFilters/components/{Date.d.ts → DateFilter.d.ts} +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +1 -0
- package/dist/components/modals/openRemoveConfirmModal.d.ts +4 -0
- package/dist/components/table/hooks/TableProvider.d.ts +5 -3
- package/dist/components/table/hooks/useCreateTable.d.ts +5 -3
- package/dist/components/table/hooks/useTableStore.d.ts +5 -3
- package/dist/components/table/store.d.ts +5 -3
- package/dist/helpers/dates.d.ts +1 -0
- package/dist/helpers/getFileType.d.ts +2 -1
- package/dist/helpers/getPartOfTheDay.d.ts +1 -0
- package/dist/helpers/isAppMode.d.ts +2 -0
- package/dist/hooks/useEvent.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +4 -4
- package/dist/{index-BHgJVazX.js → index-Bo9kCsKS.js} +46265 -12296
- package/dist/index.d.ts +13 -0
- package/dist/index.js +80 -2
- package/dist/index.umd.cjs +59 -59
- package/dist/store/timezoneStore.d.ts +5 -3
- package/dist/store/workspacesOrder.d.ts +5 -3
- package/package.json +11 -11
- package/dist/components/CommentsPanel/components/CommentsMultiSelectUsers.d.ts +0 -6
- package/dist/components/CommentsPanel/components/RemoveConfirmModal.d.ts +0 -11
- package/dist/components/OnBoarding/steps/AddMembers/AddMembers.d.ts +0 -2
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
export declare const useActiveStep: () => {
|
|
2
|
+
id: string;
|
|
3
|
+
controls: ({
|
|
4
|
+
id: string;
|
|
5
|
+
controlType: "text";
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
icon?: string | undefined;
|
|
9
|
+
maxLength?: number | undefined;
|
|
10
|
+
minLength?: number | undefined;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
required?: boolean | undefined;
|
|
13
|
+
variableName?: string | undefined;
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
controlType: "longText";
|
|
17
|
+
title?: string | undefined;
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
maxLength?: number | undefined;
|
|
21
|
+
minLength?: number | undefined;
|
|
22
|
+
placeholder?: string | undefined;
|
|
23
|
+
required?: boolean | undefined;
|
|
24
|
+
variableName?: string | undefined;
|
|
25
|
+
} | {
|
|
26
|
+
id: string;
|
|
27
|
+
controlType: "button";
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
link?: string | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
buttons?: any[] | undefined;
|
|
33
|
+
width?: number | undefined;
|
|
34
|
+
orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
35
|
+
required?: boolean | undefined;
|
|
36
|
+
showIconButton?: boolean | undefined;
|
|
37
|
+
buttonIcon?: string | undefined;
|
|
38
|
+
alignButton?: "center" | "end" | "start" | undefined;
|
|
39
|
+
enableTooltip?: boolean | undefined;
|
|
40
|
+
fullWidthMobile?: boolean | undefined;
|
|
41
|
+
} | {
|
|
42
|
+
id: string;
|
|
43
|
+
controlType: "date";
|
|
44
|
+
title?: string | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
icon?: string | undefined;
|
|
47
|
+
placeholder?: string | undefined;
|
|
48
|
+
required?: boolean | undefined;
|
|
49
|
+
minDate?: string | undefined;
|
|
50
|
+
maxDate?: string | undefined;
|
|
51
|
+
variableName?: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
id: string;
|
|
54
|
+
controlType: "start";
|
|
55
|
+
label?: string | undefined;
|
|
56
|
+
title?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
icon?: string | undefined;
|
|
59
|
+
required?: boolean | undefined;
|
|
60
|
+
showIconButton?: boolean | undefined;
|
|
61
|
+
buttonIcon?: string | undefined;
|
|
62
|
+
showButton?: boolean | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
controlType: "confirm";
|
|
66
|
+
label?: string | undefined;
|
|
67
|
+
link?: string | undefined;
|
|
68
|
+
title?: string | undefined;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
required?: boolean | undefined;
|
|
71
|
+
buttonIcon?: string | undefined;
|
|
72
|
+
showButton?: boolean | undefined;
|
|
73
|
+
} | {
|
|
74
|
+
id: string;
|
|
75
|
+
controlType: "number";
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
description?: string | undefined;
|
|
78
|
+
icon?: string | undefined;
|
|
79
|
+
max?: number | undefined;
|
|
80
|
+
min?: number | undefined;
|
|
81
|
+
placeholder?: string | undefined;
|
|
82
|
+
required?: boolean | undefined;
|
|
83
|
+
variableName?: string | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
id: string;
|
|
86
|
+
options: {
|
|
87
|
+
label: string;
|
|
88
|
+
id: string;
|
|
89
|
+
}[];
|
|
90
|
+
controlType: "choice";
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
description?: string | undefined;
|
|
93
|
+
required?: boolean | undefined;
|
|
94
|
+
variableName?: string | undefined;
|
|
95
|
+
showInput?: boolean | undefined;
|
|
96
|
+
otherOption?: boolean | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
id: string;
|
|
99
|
+
options: {
|
|
100
|
+
label: string;
|
|
101
|
+
id: string;
|
|
102
|
+
}[];
|
|
103
|
+
controlType: "multipleChoice";
|
|
104
|
+
title?: string | undefined;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
icon?: string | undefined;
|
|
107
|
+
required?: boolean | undefined;
|
|
108
|
+
variableName?: string | undefined;
|
|
109
|
+
showInput?: boolean | undefined;
|
|
110
|
+
otherOption?: boolean | undefined;
|
|
111
|
+
minOptions?: number | undefined;
|
|
112
|
+
maxOptions?: number | undefined;
|
|
113
|
+
} | {
|
|
114
|
+
id: string;
|
|
115
|
+
options: {
|
|
116
|
+
label: string;
|
|
117
|
+
id: string;
|
|
118
|
+
image?: string | undefined;
|
|
119
|
+
}[];
|
|
120
|
+
controlType: "pictureChoice";
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
description?: string | undefined;
|
|
123
|
+
icon?: string | undefined;
|
|
124
|
+
required?: boolean | undefined;
|
|
125
|
+
variableName?: string | undefined;
|
|
126
|
+
showInput?: boolean | undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
options: {
|
|
130
|
+
label: string;
|
|
131
|
+
id: string;
|
|
132
|
+
}[];
|
|
133
|
+
controlType: "dropdown";
|
|
134
|
+
title?: string | undefined;
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
icon?: string | undefined;
|
|
137
|
+
placeholder?: string | undefined;
|
|
138
|
+
required?: boolean | undefined;
|
|
139
|
+
variableName?: string | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
id: string;
|
|
142
|
+
controlType: "email";
|
|
143
|
+
title?: string | undefined;
|
|
144
|
+
description?: string | undefined;
|
|
145
|
+
icon?: string | undefined;
|
|
146
|
+
placeholder?: string | undefined;
|
|
147
|
+
required?: boolean | undefined;
|
|
148
|
+
variableName?: string | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
id: string;
|
|
151
|
+
controlType: "location";
|
|
152
|
+
title?: string | undefined;
|
|
153
|
+
description?: string | undefined;
|
|
154
|
+
icon?: string | undefined;
|
|
155
|
+
placeholder?: string | undefined;
|
|
156
|
+
required?: boolean | undefined;
|
|
157
|
+
variableName?: string | undefined;
|
|
158
|
+
} | {
|
|
159
|
+
id: string;
|
|
160
|
+
controlType: "phone";
|
|
161
|
+
title?: string | undefined;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
icon?: string | undefined;
|
|
164
|
+
placeholder?: string | undefined;
|
|
165
|
+
required?: boolean | undefined;
|
|
166
|
+
variableName?: string | undefined;
|
|
167
|
+
} | {
|
|
168
|
+
id: string;
|
|
169
|
+
controlType: "slider";
|
|
170
|
+
title?: string | undefined;
|
|
171
|
+
description?: string | undefined;
|
|
172
|
+
icon?: string | undefined;
|
|
173
|
+
max?: number | undefined;
|
|
174
|
+
min?: number | undefined;
|
|
175
|
+
required?: boolean | undefined;
|
|
176
|
+
variableName?: string | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
id: string;
|
|
179
|
+
controlType: "upload";
|
|
180
|
+
title?: string | undefined;
|
|
181
|
+
description?: string | undefined;
|
|
182
|
+
icon?: string | undefined;
|
|
183
|
+
multiple?: boolean | undefined;
|
|
184
|
+
accept?: string[] | undefined;
|
|
185
|
+
required?: boolean | undefined;
|
|
186
|
+
maxSize?: number | undefined;
|
|
187
|
+
maxFiles?: number | undefined;
|
|
188
|
+
variableName?: string | undefined;
|
|
189
|
+
minFiles?: number | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
id: string;
|
|
192
|
+
controlType: "yesNo";
|
|
193
|
+
title?: string | undefined;
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
icon?: string | undefined;
|
|
196
|
+
required?: boolean | undefined;
|
|
197
|
+
variableName?: string | undefined;
|
|
198
|
+
yesLabel?: string | undefined;
|
|
199
|
+
noLabel?: string | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
id: string;
|
|
202
|
+
controlType: "rating";
|
|
203
|
+
title?: string | undefined;
|
|
204
|
+
description?: string | undefined;
|
|
205
|
+
required?: boolean | undefined;
|
|
206
|
+
count?: number | undefined;
|
|
207
|
+
variableName?: string | undefined;
|
|
208
|
+
})[];
|
|
209
|
+
trigger: string;
|
|
210
|
+
position?: {
|
|
211
|
+
x: number;
|
|
212
|
+
y: number;
|
|
213
|
+
} | undefined;
|
|
214
|
+
media?: {
|
|
215
|
+
video?: string | undefined;
|
|
216
|
+
image?: string | undefined;
|
|
217
|
+
color?: string | undefined;
|
|
218
|
+
size?: number | undefined;
|
|
219
|
+
layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
|
|
220
|
+
blur?: number | undefined;
|
|
221
|
+
brightness?: number | undefined;
|
|
222
|
+
videoThumb?: string | undefined;
|
|
223
|
+
} | undefined;
|
|
224
|
+
theme?: {
|
|
225
|
+
input?: {
|
|
226
|
+
backgroundColor?: string | undefined;
|
|
227
|
+
borderColor?: string | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
title?: {
|
|
230
|
+
color?: string | undefined;
|
|
231
|
+
fontSize?: number | undefined;
|
|
232
|
+
fontWeight?: number | undefined;
|
|
233
|
+
fontFamily?: string | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
236
|
+
description?: {
|
|
237
|
+
color?: string | undefined;
|
|
238
|
+
fontSize?: number | undefined;
|
|
239
|
+
fontWeight?: number | undefined;
|
|
240
|
+
fontFamily?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
align?: "center" | "end" | "start" | undefined;
|
|
243
|
+
background?: {
|
|
244
|
+
image?: string | undefined;
|
|
245
|
+
color?: string | undefined;
|
|
246
|
+
opacity?: number | undefined;
|
|
247
|
+
blur?: number | undefined;
|
|
248
|
+
brightness?: number | undefined;
|
|
249
|
+
fit?: string | undefined;
|
|
250
|
+
blendMode?: string | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
container?: {
|
|
253
|
+
color?: string | undefined;
|
|
254
|
+
opacity?: number | undefined;
|
|
255
|
+
backgroundImage?: string | undefined;
|
|
256
|
+
blur?: number | undefined;
|
|
257
|
+
shadowSize?: number | undefined;
|
|
258
|
+
shadowColor?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
borderRadius?: "sm" | "md" | "lg" | undefined;
|
|
261
|
+
font?: {
|
|
262
|
+
color?: string | undefined;
|
|
263
|
+
fontSize?: number | undefined;
|
|
264
|
+
fontWeight?: number | undefined;
|
|
265
|
+
fontFamily?: string | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
listStyle?: string | undefined;
|
|
268
|
+
primaryColor?: string | undefined;
|
|
269
|
+
customCSS?: string | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
isStart?: boolean | undefined;
|
|
272
|
+
isEnd?: boolean | undefined;
|
|
273
|
+
autoSubmit?: boolean | undefined;
|
|
274
|
+
confirmLabel?: string | undefined;
|
|
275
|
+
conditions?: {
|
|
276
|
+
operator: string;
|
|
277
|
+
trigger: string;
|
|
278
|
+
controlId: string;
|
|
279
|
+
compareValue?: string | undefined;
|
|
280
|
+
}[] | undefined;
|
|
281
|
+
} | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { UseFormReturnType } from '@mantine/form';
|
|
3
|
+
import { Direction } from '../types/form';
|
|
4
|
+
type StepsContext = {
|
|
5
|
+
handleNext: () => void;
|
|
6
|
+
handlePrev: () => void;
|
|
7
|
+
anim: Direction;
|
|
8
|
+
form: UseFormReturnType<StepsFormValues>;
|
|
9
|
+
setValue: (controlId: string, value: any, trigger?: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const StepsContext: import('react').Context<StepsContext>;
|
|
12
|
+
export declare const useSteps: () => StepsContext;
|
|
13
|
+
export type StepsFormValues = Record<string, any> & {
|
|
14
|
+
submissionId: string;
|
|
15
|
+
};
|
|
16
|
+
type StepsContextProviderProps = {
|
|
17
|
+
onSubmit?: (values: StepsFormValues) => void;
|
|
18
|
+
onValuesChange?: (values: StepsFormValues) => void;
|
|
19
|
+
};
|
|
20
|
+
/** Используется для хранения данных, которые ввёл пользователь */
|
|
21
|
+
export declare const FormContextProvider: ({ children, ...props }: PropsWithChildren<StepsContextProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export declare const useFormGlobalTheme: ({ innerId }: {
|
|
2
|
+
innerId: string;
|
|
3
|
+
}) => {
|
|
4
|
+
customStyles: string;
|
|
5
|
+
mantineTheme: {
|
|
6
|
+
focusRing?: "auto" | "always" | "never" | undefined;
|
|
7
|
+
scale?: number | undefined;
|
|
8
|
+
fontSmoothing?: boolean | undefined;
|
|
9
|
+
white?: string | undefined;
|
|
10
|
+
black?: string | undefined;
|
|
11
|
+
colors?: {
|
|
12
|
+
[x: string & {}]: import('@mantine/core').MantineColorsTuple | undefined;
|
|
13
|
+
blue?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
14
|
+
cyan?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
15
|
+
gray?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
16
|
+
green?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
17
|
+
indigo?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
18
|
+
lime?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
19
|
+
orange?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
20
|
+
pink?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
21
|
+
red?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
22
|
+
teal?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
23
|
+
violet?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
24
|
+
yellow?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
25
|
+
dark?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
26
|
+
grape?: import('@mantine/core').MantineColorsTuple | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
primaryShade?: import('@mantine/core').MantineColorShade | {
|
|
29
|
+
light?: import('@mantine/core').MantineColorShade | undefined;
|
|
30
|
+
dark?: import('@mantine/core').MantineColorShade | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
primaryColor?: string | undefined;
|
|
33
|
+
variantColorResolver?: import('@mantine/core').VariantColorsResolver | undefined;
|
|
34
|
+
autoContrast?: boolean | undefined;
|
|
35
|
+
luminanceThreshold?: number | undefined;
|
|
36
|
+
fontFamily?: string | undefined;
|
|
37
|
+
fontFamilyMonospace?: string | undefined;
|
|
38
|
+
headings?: {
|
|
39
|
+
fontFamily?: string | undefined;
|
|
40
|
+
fontWeight?: string | undefined;
|
|
41
|
+
textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
|
|
42
|
+
sizes?: {
|
|
43
|
+
h1?: {
|
|
44
|
+
fontSize?: string | undefined;
|
|
45
|
+
fontWeight?: string | undefined;
|
|
46
|
+
lineHeight?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
h2?: {
|
|
49
|
+
fontSize?: string | undefined;
|
|
50
|
+
fontWeight?: string | undefined;
|
|
51
|
+
lineHeight?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
h3?: {
|
|
54
|
+
fontSize?: string | undefined;
|
|
55
|
+
fontWeight?: string | undefined;
|
|
56
|
+
lineHeight?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
h4?: {
|
|
59
|
+
fontSize?: string | undefined;
|
|
60
|
+
fontWeight?: string | undefined;
|
|
61
|
+
lineHeight?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
h5?: {
|
|
64
|
+
fontSize?: string | undefined;
|
|
65
|
+
fontWeight?: string | undefined;
|
|
66
|
+
lineHeight?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
h6?: {
|
|
69
|
+
fontSize?: string | undefined;
|
|
70
|
+
fontWeight?: string | undefined;
|
|
71
|
+
lineHeight?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
radius?: {
|
|
76
|
+
[x: string & {}]: string | undefined;
|
|
77
|
+
sm?: string | undefined;
|
|
78
|
+
xs?: string | undefined;
|
|
79
|
+
md?: string | undefined;
|
|
80
|
+
lg?: string | undefined;
|
|
81
|
+
xl?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
defaultRadius?: import('@mantine/core').MantineRadius | undefined;
|
|
84
|
+
spacing?: {
|
|
85
|
+
[x: number]: string | undefined;
|
|
86
|
+
[x: string & {}]: string | undefined;
|
|
87
|
+
sm?: string | undefined;
|
|
88
|
+
xs?: string | undefined;
|
|
89
|
+
md?: string | undefined;
|
|
90
|
+
lg?: string | undefined;
|
|
91
|
+
xl?: string | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
fontSizes?: {
|
|
94
|
+
[x: string & {}]: string | undefined;
|
|
95
|
+
sm?: string | undefined;
|
|
96
|
+
xs?: string | undefined;
|
|
97
|
+
md?: string | undefined;
|
|
98
|
+
lg?: string | undefined;
|
|
99
|
+
xl?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
lineHeights?: {
|
|
102
|
+
[x: string & {}]: string | undefined;
|
|
103
|
+
sm?: string | undefined;
|
|
104
|
+
xs?: string | undefined;
|
|
105
|
+
md?: string | undefined;
|
|
106
|
+
lg?: string | undefined;
|
|
107
|
+
xl?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
breakpoints?: {
|
|
110
|
+
[x: string & {}]: string | undefined;
|
|
111
|
+
sm?: string | undefined;
|
|
112
|
+
xs?: string | undefined;
|
|
113
|
+
md?: string | undefined;
|
|
114
|
+
lg?: string | undefined;
|
|
115
|
+
xl?: string | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
shadows?: {
|
|
118
|
+
[x: string & {}]: string | undefined;
|
|
119
|
+
sm?: string | undefined;
|
|
120
|
+
xs?: string | undefined;
|
|
121
|
+
md?: string | undefined;
|
|
122
|
+
lg?: string | undefined;
|
|
123
|
+
xl?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
respectReducedMotion?: boolean | undefined;
|
|
126
|
+
cursorType?: "default" | "pointer" | undefined;
|
|
127
|
+
defaultGradient?: {
|
|
128
|
+
from?: string | undefined;
|
|
129
|
+
to?: string | undefined;
|
|
130
|
+
deg?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
activeClassName?: string | undefined;
|
|
133
|
+
focusClassName?: string | undefined;
|
|
134
|
+
components?: {
|
|
135
|
+
[x: string]: {
|
|
136
|
+
classNames?: any;
|
|
137
|
+
styles?: any;
|
|
138
|
+
vars?: any;
|
|
139
|
+
defaultProps?: any;
|
|
140
|
+
} | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
other?: {
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
} | undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './FormViewer';
|
|
2
|
+
export * from './types/form';
|
|
3
|
+
export * from './types/schemes';
|
|
4
|
+
export * from './store/formStore';
|
|
5
|
+
export * from './store/formStoreApi';
|
|
6
|
+
export * from './store/selectors';
|
|
7
|
+
export * from './hooks';
|
|
8
|
+
export * from './helpers';
|