@layers-app/shared 0.0.39-comments.2 → 0.0.39-froms-01

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.
Files changed (92) hide show
  1. package/dist/{KanbanLayout-DGHT9E0N.js → KanbanLayout-D5Ex3f-G.js} +1 -1
  2. package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +5 -0
  3. package/dist/components/BouncingLogo/BouncingLogo.d.ts +3 -0
  4. package/dist/components/CommentComposer/index.d.ts +8 -10
  5. package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +1 -5
  6. package/dist/components/CommentsPanel/components/{CommentTabFilter.d.ts → CommentFilterMenu.d.ts} +1 -2
  7. package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +4 -3
  8. package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +2 -5
  9. package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +1 -2
  10. package/dist/components/CommentsPanel/components/CommentsMultiSelectUsers.d.ts +6 -0
  11. package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +4 -3
  12. package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +1 -5
  13. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +5 -9
  14. package/dist/components/CommentsPanel/components/RemoveConfirmModal.d.ts +11 -0
  15. package/dist/components/CommentsPanel/index.d.ts +6 -10
  16. package/dist/components/CommentsPanel/store.d.ts +1 -7
  17. package/dist/components/CommentsPanel/types.d.ts +57 -157
  18. package/dist/components/CommentsPanel/utils.d.ts +5 -11
  19. package/dist/components/FormViewer/FormViewer.d.ts +8 -0
  20. package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
  21. package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
  22. package/dist/components/FormViewer/components/Container.d.ts +5 -0
  23. package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
  24. package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
  25. package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
  26. package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
  27. package/dist/components/FormViewer/components/Step.d.ts +5 -0
  28. package/dist/components/FormViewer/components/StepDescription.d.ts +5 -0
  29. package/dist/components/FormViewer/components/StepTitle.d.ts +5 -0
  30. package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
  31. package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +5 -0
  32. package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +8 -0
  33. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
  34. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +5 -0
  35. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
  36. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +5 -0
  37. package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +5 -0
  38. package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +5 -0
  39. package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
  40. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
  41. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +5 -0
  42. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
  43. package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
  44. package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
  45. package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
  46. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
  47. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +5 -0
  48. package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
  49. package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
  50. package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
  51. package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
  52. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
  53. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
  54. package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
  55. package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
  56. package/dist/components/FormViewer/components/fields/StartField.d.ts +5 -0
  57. package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
  58. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
  59. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
  60. package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
  61. package/dist/components/FormViewer/helpers/conditions.d.ts +281 -0
  62. package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
  63. package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
  64. package/dist/components/FormViewer/helpers/helpers.d.ts +279 -0
  65. package/dist/components/FormViewer/helpers/index.d.ts +7 -0
  66. package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
  67. package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
  68. package/dist/components/FormViewer/helpers/steps.d.ts +294 -0
  69. package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
  70. package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
  71. package/dist/components/FormViewer/hooks/index.d.ts +6 -0
  72. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +204 -0
  73. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +277 -0
  74. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
  75. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +145 -0
  76. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
  77. package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
  78. package/dist/components/FormViewer/index.d.ts +8 -0
  79. package/dist/components/FormViewer/store/formStore.d.ts +149 -0
  80. package/dist/components/FormViewer/store/formStoreApi.d.ts +36 -0
  81. package/dist/components/FormViewer/store/selectors.d.ts +75757 -0
  82. package/dist/components/FormViewer/types/form.d.ts +58 -0
  83. package/dist/components/FormViewer/types/schemes.d.ts +7591 -0
  84. package/dist/hooks/useEvent.d.ts +1 -0
  85. package/dist/{index-BI1_FPl_.js → index-BVdsep1X.js} +50439 -18306
  86. package/dist/index.d.ts +2 -2
  87. package/dist/index.js +68 -4
  88. package/dist/index.umd.cjs +59 -59
  89. package/package.json +1 -1
  90. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +0 -12
  91. package/dist/components/CommentFilterMenu/index.d.ts +0 -9
  92. package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
@@ -0,0 +1,204 @@
1
+ export declare const useActiveControl: () => {
2
+ id: string;
3
+ controlType: "text";
4
+ title?: string | undefined;
5
+ description?: string | undefined;
6
+ icon?: string | undefined;
7
+ maxLength?: number | undefined;
8
+ minLength?: number | undefined;
9
+ placeholder?: string | undefined;
10
+ required?: boolean | undefined;
11
+ variableName?: string | undefined;
12
+ } | {
13
+ id: string;
14
+ controlType: "longText";
15
+ title?: string | undefined;
16
+ description?: string | undefined;
17
+ icon?: string | undefined;
18
+ maxLength?: number | undefined;
19
+ minLength?: number | undefined;
20
+ placeholder?: string | undefined;
21
+ required?: boolean | undefined;
22
+ variableName?: string | undefined;
23
+ } | {
24
+ id: string;
25
+ controlType: "button";
26
+ label?: string | undefined;
27
+ link?: string | undefined;
28
+ title?: string | undefined;
29
+ description?: string | undefined;
30
+ buttons?: any[] | undefined;
31
+ width?: number | undefined;
32
+ orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
33
+ required?: boolean | undefined;
34
+ showIconButton?: boolean | undefined;
35
+ buttonIcon?: string | undefined;
36
+ alignButton?: "center" | "end" | "start" | undefined;
37
+ enableTooltip?: boolean | undefined;
38
+ fullWidthMobile?: boolean | undefined;
39
+ } | {
40
+ id: string;
41
+ controlType: "date";
42
+ title?: string | undefined;
43
+ description?: string | undefined;
44
+ icon?: string | undefined;
45
+ placeholder?: string | undefined;
46
+ required?: boolean | undefined;
47
+ minDate?: string | undefined;
48
+ maxDate?: string | undefined;
49
+ variableName?: string | undefined;
50
+ } | {
51
+ id: string;
52
+ controlType: "start";
53
+ label?: string | undefined;
54
+ title?: string | undefined;
55
+ description?: string | undefined;
56
+ icon?: string | undefined;
57
+ required?: boolean | undefined;
58
+ showIconButton?: boolean | undefined;
59
+ buttonIcon?: string | undefined;
60
+ showButton?: boolean | undefined;
61
+ } | {
62
+ id: string;
63
+ controlType: "confirm";
64
+ label?: string | undefined;
65
+ link?: string | undefined;
66
+ title?: string | undefined;
67
+ description?: string | undefined;
68
+ required?: boolean | undefined;
69
+ buttonIcon?: string | undefined;
70
+ showButton?: boolean | undefined;
71
+ } | {
72
+ id: string;
73
+ controlType: "number";
74
+ title?: string | undefined;
75
+ description?: string | undefined;
76
+ icon?: string | undefined;
77
+ max?: number | undefined;
78
+ min?: number | undefined;
79
+ placeholder?: string | undefined;
80
+ required?: boolean | undefined;
81
+ variableName?: string | undefined;
82
+ } | {
83
+ id: string;
84
+ options: {
85
+ label: string;
86
+ id: string;
87
+ }[];
88
+ controlType: "choice";
89
+ title?: string | undefined;
90
+ description?: string | undefined;
91
+ required?: boolean | undefined;
92
+ variableName?: string | undefined;
93
+ showInput?: boolean | undefined;
94
+ } | {
95
+ id: string;
96
+ options: {
97
+ label: string;
98
+ id: string;
99
+ }[];
100
+ controlType: "multipleChoice";
101
+ title?: string | undefined;
102
+ description?: string | undefined;
103
+ icon?: string | undefined;
104
+ required?: boolean | undefined;
105
+ variableName?: string | undefined;
106
+ showInput?: boolean | undefined;
107
+ minOptions?: number | undefined;
108
+ maxOptions?: number | undefined;
109
+ } | {
110
+ id: string;
111
+ options: {
112
+ label: string;
113
+ id: string;
114
+ image?: string | undefined;
115
+ }[];
116
+ controlType: "pictureChoice";
117
+ title?: string | undefined;
118
+ description?: string | undefined;
119
+ icon?: string | undefined;
120
+ required?: boolean | undefined;
121
+ variableName?: string | undefined;
122
+ showInput?: boolean | undefined;
123
+ } | {
124
+ id: string;
125
+ options: {
126
+ label: string;
127
+ id: string;
128
+ }[];
129
+ controlType: "dropdown";
130
+ title?: string | undefined;
131
+ description?: string | undefined;
132
+ icon?: string | undefined;
133
+ placeholder?: string | undefined;
134
+ required?: boolean | undefined;
135
+ variableName?: string | undefined;
136
+ } | {
137
+ id: string;
138
+ controlType: "email";
139
+ title?: string | undefined;
140
+ description?: string | undefined;
141
+ icon?: string | undefined;
142
+ placeholder?: string | undefined;
143
+ required?: boolean | undefined;
144
+ variableName?: string | undefined;
145
+ } | {
146
+ id: string;
147
+ controlType: "location";
148
+ title?: string | undefined;
149
+ description?: string | undefined;
150
+ icon?: string | undefined;
151
+ placeholder?: string | undefined;
152
+ required?: boolean | undefined;
153
+ variableName?: string | undefined;
154
+ } | {
155
+ id: string;
156
+ controlType: "phone";
157
+ title?: string | undefined;
158
+ description?: string | undefined;
159
+ icon?: string | undefined;
160
+ placeholder?: string | undefined;
161
+ required?: boolean | undefined;
162
+ variableName?: string | undefined;
163
+ } | {
164
+ id: string;
165
+ controlType: "slider";
166
+ title?: string | undefined;
167
+ description?: string | undefined;
168
+ icon?: string | undefined;
169
+ max?: number | undefined;
170
+ min?: number | undefined;
171
+ required?: boolean | undefined;
172
+ variableName?: string | undefined;
173
+ } | {
174
+ id: string;
175
+ controlType: "upload";
176
+ title?: string | undefined;
177
+ description?: string | undefined;
178
+ icon?: string | undefined;
179
+ multiple?: boolean | undefined;
180
+ accept?: string[] | undefined;
181
+ required?: boolean | undefined;
182
+ maxSize?: number | undefined;
183
+ maxFiles?: number | undefined;
184
+ variableName?: string | undefined;
185
+ minFiles?: number | undefined;
186
+ } | {
187
+ id: string;
188
+ controlType: "yesNo";
189
+ title?: string | undefined;
190
+ description?: string | undefined;
191
+ icon?: string | undefined;
192
+ required?: boolean | undefined;
193
+ variableName?: string | undefined;
194
+ yesLabel?: string | undefined;
195
+ noLabel?: string | undefined;
196
+ } | {
197
+ id: string;
198
+ controlType: "rating";
199
+ title?: string | undefined;
200
+ description?: string | undefined;
201
+ required?: boolean | undefined;
202
+ count?: number | undefined;
203
+ variableName?: string | undefined;
204
+ } | null;
@@ -0,0 +1,277 @@
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
+ } | {
97
+ id: string;
98
+ options: {
99
+ label: string;
100
+ id: string;
101
+ }[];
102
+ controlType: "multipleChoice";
103
+ title?: string | undefined;
104
+ description?: string | undefined;
105
+ icon?: string | undefined;
106
+ required?: boolean | undefined;
107
+ variableName?: string | undefined;
108
+ showInput?: boolean | undefined;
109
+ minOptions?: number | undefined;
110
+ maxOptions?: number | undefined;
111
+ } | {
112
+ id: string;
113
+ options: {
114
+ label: string;
115
+ id: string;
116
+ image?: string | undefined;
117
+ }[];
118
+ controlType: "pictureChoice";
119
+ title?: string | undefined;
120
+ description?: string | undefined;
121
+ icon?: string | undefined;
122
+ required?: boolean | undefined;
123
+ variableName?: string | undefined;
124
+ showInput?: boolean | undefined;
125
+ } | {
126
+ id: string;
127
+ options: {
128
+ label: string;
129
+ id: string;
130
+ }[];
131
+ controlType: "dropdown";
132
+ title?: string | undefined;
133
+ description?: string | undefined;
134
+ icon?: string | undefined;
135
+ placeholder?: string | undefined;
136
+ required?: boolean | undefined;
137
+ variableName?: string | undefined;
138
+ } | {
139
+ id: string;
140
+ controlType: "email";
141
+ title?: string | undefined;
142
+ description?: string | undefined;
143
+ icon?: string | undefined;
144
+ placeholder?: string | undefined;
145
+ required?: boolean | undefined;
146
+ variableName?: string | undefined;
147
+ } | {
148
+ id: string;
149
+ controlType: "location";
150
+ title?: string | undefined;
151
+ description?: string | undefined;
152
+ icon?: string | undefined;
153
+ placeholder?: string | undefined;
154
+ required?: boolean | undefined;
155
+ variableName?: string | undefined;
156
+ } | {
157
+ id: string;
158
+ controlType: "phone";
159
+ title?: string | undefined;
160
+ description?: string | undefined;
161
+ icon?: string | undefined;
162
+ placeholder?: string | undefined;
163
+ required?: boolean | undefined;
164
+ variableName?: string | undefined;
165
+ } | {
166
+ id: string;
167
+ controlType: "slider";
168
+ title?: string | undefined;
169
+ description?: string | undefined;
170
+ icon?: string | undefined;
171
+ max?: number | undefined;
172
+ min?: number | undefined;
173
+ required?: boolean | undefined;
174
+ variableName?: string | undefined;
175
+ } | {
176
+ id: string;
177
+ controlType: "upload";
178
+ title?: string | undefined;
179
+ description?: string | undefined;
180
+ icon?: string | undefined;
181
+ multiple?: boolean | undefined;
182
+ accept?: string[] | undefined;
183
+ required?: boolean | undefined;
184
+ maxSize?: number | undefined;
185
+ maxFiles?: number | undefined;
186
+ variableName?: string | undefined;
187
+ minFiles?: number | undefined;
188
+ } | {
189
+ id: string;
190
+ controlType: "yesNo";
191
+ title?: string | undefined;
192
+ description?: string | undefined;
193
+ icon?: string | undefined;
194
+ required?: boolean | undefined;
195
+ variableName?: string | undefined;
196
+ yesLabel?: string | undefined;
197
+ noLabel?: string | undefined;
198
+ } | {
199
+ id: string;
200
+ controlType: "rating";
201
+ title?: string | undefined;
202
+ description?: string | undefined;
203
+ required?: boolean | undefined;
204
+ count?: number | undefined;
205
+ variableName?: string | undefined;
206
+ })[];
207
+ trigger: string;
208
+ media?: {
209
+ video?: string | undefined;
210
+ image?: string | undefined;
211
+ color?: string | undefined;
212
+ size?: number | undefined;
213
+ layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
214
+ blur?: number | undefined;
215
+ brightness?: number | undefined;
216
+ videoThumb?: string | undefined;
217
+ } | undefined;
218
+ theme?: {
219
+ input?: {
220
+ backgroundColor?: string | undefined;
221
+ borderColor?: string | undefined;
222
+ } | undefined;
223
+ title?: {
224
+ color?: string | undefined;
225
+ fontSize?: number | undefined;
226
+ fontWeight?: number | undefined;
227
+ fontFamily?: string | undefined;
228
+ } | undefined;
229
+ size?: "sm" | "md" | "lg" | undefined;
230
+ description?: {
231
+ color?: string | undefined;
232
+ fontSize?: number | undefined;
233
+ fontWeight?: number | undefined;
234
+ fontFamily?: string | undefined;
235
+ } | undefined;
236
+ align?: "center" | "end" | "start" | undefined;
237
+ background?: {
238
+ image?: string | undefined;
239
+ color?: string | undefined;
240
+ opacity?: number | undefined;
241
+ blur?: number | undefined;
242
+ brightness?: number | undefined;
243
+ fit?: string | undefined;
244
+ blendMode?: string | undefined;
245
+ } | undefined;
246
+ container?: {
247
+ color?: string | undefined;
248
+ opacity?: number | undefined;
249
+ backgroundImage?: string | undefined;
250
+ shadow?: {
251
+ color?: string | undefined;
252
+ size?: number | undefined;
253
+ } | undefined;
254
+ blur?: number | undefined;
255
+ } | undefined;
256
+ borderRadius?: "sm" | "md" | "lg" | undefined;
257
+ font?: {
258
+ color?: string | undefined;
259
+ fontSize?: number | undefined;
260
+ fontWeight?: number | undefined;
261
+ fontFamily?: string | undefined;
262
+ } | undefined;
263
+ listStyle?: string | undefined;
264
+ primaryColor?: string | undefined;
265
+ customCSS?: string | undefined;
266
+ } | undefined;
267
+ confirmLabel?: string | undefined;
268
+ isStart?: boolean | undefined;
269
+ isEnd?: boolean | undefined;
270
+ autoSubmit?: boolean | undefined;
271
+ conditions?: {
272
+ operator: string;
273
+ trigger: string;
274
+ controlId: string;
275
+ compareValue?: string | undefined;
276
+ }[] | undefined;
277
+ } | 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,145 @@
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: string & {}]: string | undefined;
86
+ sm?: string | undefined;
87
+ xs?: string | undefined;
88
+ md?: string | undefined;
89
+ lg?: string | undefined;
90
+ xl?: string | undefined;
91
+ } | undefined;
92
+ fontSizes?: {
93
+ [x: string & {}]: string | undefined;
94
+ sm?: string | undefined;
95
+ xs?: string | undefined;
96
+ md?: string | undefined;
97
+ lg?: string | undefined;
98
+ xl?: string | undefined;
99
+ } | undefined;
100
+ lineHeights?: {
101
+ [x: string & {}]: string | undefined;
102
+ sm?: string | undefined;
103
+ xs?: string | undefined;
104
+ md?: string | undefined;
105
+ lg?: string | undefined;
106
+ xl?: string | undefined;
107
+ } | undefined;
108
+ breakpoints?: {
109
+ [x: string & {}]: string | undefined;
110
+ sm?: string | undefined;
111
+ xs?: string | undefined;
112
+ md?: string | undefined;
113
+ lg?: string | undefined;
114
+ xl?: string | undefined;
115
+ } | undefined;
116
+ shadows?: {
117
+ [x: string & {}]: string | undefined;
118
+ sm?: string | undefined;
119
+ xs?: string | undefined;
120
+ md?: string | undefined;
121
+ lg?: string | undefined;
122
+ xl?: string | undefined;
123
+ } | undefined;
124
+ respectReducedMotion?: boolean | undefined;
125
+ cursorType?: "default" | "pointer" | undefined;
126
+ defaultGradient?: {
127
+ from?: string | undefined;
128
+ to?: string | undefined;
129
+ deg?: number | undefined;
130
+ } | undefined;
131
+ activeClassName?: string | undefined;
132
+ focusClassName?: string | undefined;
133
+ components?: {
134
+ [x: string]: {
135
+ classNames?: any;
136
+ styles?: any;
137
+ vars?: any;
138
+ defaultProps?: any;
139
+ } | undefined;
140
+ } | undefined;
141
+ other?: {
142
+ [x: string]: any;
143
+ } | undefined;
144
+ };
145
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useFormMobile: () => {
2
+ ref: import('react').RefObject<any>;
3
+ isMobile: boolean;
4
+ };
@@ -0,0 +1,2 @@
1
+ export declare const useInterpolateText: (text?: string | null, disabled?: boolean) => string;
2
+ export declare const useInterpolate: () => (text?: string | null) => string;
@@ -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';