@layers-app/shared 0.0.39-comments.2 → 0.0.39-comments.3

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 (77) hide show
  1. package/dist/{KanbanLayout-DGHT9E0N.js → KanbanLayout-C5JdVttk.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/CircleColorPicker/CircleColorPicker.d.ts +2 -2
  5. package/dist/components/CommentsPanel/types.d.ts +0 -5
  6. package/dist/components/FormViewer/FormViewer.d.ts +8 -0
  7. package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
  8. package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
  9. package/dist/components/FormViewer/components/Container.d.ts +5 -0
  10. package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
  11. package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
  12. package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
  13. package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
  14. package/dist/components/FormViewer/components/Step.d.ts +6 -0
  15. package/dist/components/FormViewer/components/StepDescription.d.ts +6 -0
  16. package/dist/components/FormViewer/components/StepTitle.d.ts +6 -0
  17. package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
  18. package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +6 -0
  19. package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +9 -0
  20. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
  21. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +6 -0
  22. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
  23. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +6 -0
  24. package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +6 -0
  25. package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +6 -0
  26. package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
  27. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
  28. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +6 -0
  29. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
  30. package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
  31. package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
  32. package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
  33. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
  34. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +6 -0
  35. package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
  36. package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
  37. package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
  38. package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
  39. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
  40. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
  41. package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
  42. package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
  43. package/dist/components/FormViewer/components/fields/StartField.d.ts +6 -0
  44. package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
  45. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
  46. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
  47. package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
  48. package/dist/components/FormViewer/constants/defaultTheme.d.ts +2 -0
  49. package/dist/components/FormViewer/helpers/conditions.d.ts +279 -0
  50. package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
  51. package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
  52. package/dist/components/FormViewer/helpers/helpers.d.ts +277 -0
  53. package/dist/components/FormViewer/helpers/index.d.ts +7 -0
  54. package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
  55. package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
  56. package/dist/components/FormViewer/helpers/steps.d.ts +292 -0
  57. package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
  58. package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
  59. package/dist/components/FormViewer/hooks/index.d.ts +6 -0
  60. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +204 -0
  61. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +275 -0
  62. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
  63. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +145 -0
  64. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
  65. package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
  66. package/dist/components/FormViewer/index.d.ts +8 -0
  67. package/dist/components/FormViewer/store/formStore.d.ts +112 -0
  68. package/dist/components/FormViewer/store/formStoreApi.d.ts +36 -0
  69. package/dist/components/FormViewer/store/selectors.d.ts +75110 -0
  70. package/dist/components/FormViewer/types/form.d.ts +58 -0
  71. package/dist/components/FormViewer/types/schemes.d.ts +7475 -0
  72. package/dist/hooks/useEvent.d.ts +1 -0
  73. package/dist/{index-BI1_FPl_.js → index-CM1iBMgt.js} +44206 -11726
  74. package/dist/index.d.ts +5 -0
  75. package/dist/index.js +70 -4
  76. package/dist/index.umd.cjs +59 -59
  77. package/package.json +1 -1
@@ -0,0 +1,292 @@
1
+ import { TFunction } from 'i18next';
2
+ import { StepData } from '../types/form';
3
+ export declare const getFirstStep: (steps: StepData[]) => {
4
+ id: string;
5
+ controls: ({
6
+ id: string;
7
+ controlType: "text";
8
+ title?: string | undefined;
9
+ description?: string | undefined;
10
+ icon?: string | undefined;
11
+ maxLength?: number | undefined;
12
+ minLength?: number | undefined;
13
+ placeholder?: string | undefined;
14
+ required?: boolean | undefined;
15
+ variableName?: string | undefined;
16
+ } | {
17
+ id: string;
18
+ controlType: "longText";
19
+ title?: string | undefined;
20
+ description?: string | undefined;
21
+ icon?: string | undefined;
22
+ maxLength?: number | undefined;
23
+ minLength?: number | undefined;
24
+ placeholder?: string | undefined;
25
+ required?: boolean | undefined;
26
+ variableName?: string | undefined;
27
+ } | {
28
+ id: string;
29
+ controlType: "button";
30
+ label?: string | undefined;
31
+ link?: string | undefined;
32
+ title?: string | undefined;
33
+ description?: string | undefined;
34
+ buttons?: any[] | undefined;
35
+ width?: number | undefined;
36
+ orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
37
+ required?: boolean | undefined;
38
+ showIconButton?: boolean | undefined;
39
+ buttonIcon?: string | undefined;
40
+ alignButton?: "center" | "end" | "start" | undefined;
41
+ enableTooltip?: boolean | undefined;
42
+ fullWidthMobile?: boolean | undefined;
43
+ } | {
44
+ id: string;
45
+ controlType: "date";
46
+ title?: string | undefined;
47
+ description?: string | undefined;
48
+ icon?: string | undefined;
49
+ placeholder?: string | undefined;
50
+ required?: boolean | undefined;
51
+ minDate?: string | undefined;
52
+ maxDate?: string | undefined;
53
+ variableName?: string | undefined;
54
+ } | {
55
+ id: string;
56
+ controlType: "start";
57
+ label?: string | undefined;
58
+ title?: string | undefined;
59
+ description?: string | undefined;
60
+ icon?: string | undefined;
61
+ required?: boolean | undefined;
62
+ showIconButton?: boolean | undefined;
63
+ buttonIcon?: string | undefined;
64
+ showButton?: boolean | undefined;
65
+ } | {
66
+ id: string;
67
+ controlType: "confirm";
68
+ label?: string | undefined;
69
+ link?: string | undefined;
70
+ title?: string | undefined;
71
+ description?: string | undefined;
72
+ required?: boolean | undefined;
73
+ buttonIcon?: string | undefined;
74
+ showButton?: boolean | undefined;
75
+ } | {
76
+ id: string;
77
+ controlType: "number";
78
+ title?: string | undefined;
79
+ description?: string | undefined;
80
+ icon?: string | undefined;
81
+ max?: number | undefined;
82
+ min?: number | undefined;
83
+ placeholder?: string | undefined;
84
+ required?: boolean | undefined;
85
+ variableName?: string | undefined;
86
+ } | {
87
+ id: string;
88
+ options: {
89
+ label: string;
90
+ id: string;
91
+ }[];
92
+ controlType: "choice";
93
+ title?: string | undefined;
94
+ description?: string | undefined;
95
+ required?: boolean | undefined;
96
+ variableName?: string | undefined;
97
+ showInput?: boolean | undefined;
98
+ } | {
99
+ id: string;
100
+ options: {
101
+ label: string;
102
+ id: string;
103
+ }[];
104
+ controlType: "multipleChoice";
105
+ title?: string | undefined;
106
+ description?: string | undefined;
107
+ icon?: string | undefined;
108
+ required?: boolean | undefined;
109
+ variableName?: string | undefined;
110
+ showInput?: 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
+ media?: {
211
+ video?: string | undefined;
212
+ image?: string | undefined;
213
+ color?: string | undefined;
214
+ size?: number | undefined;
215
+ layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
216
+ blur?: number | undefined;
217
+ brightness?: number | undefined;
218
+ videoThumb?: string | undefined;
219
+ } | undefined;
220
+ theme?: {
221
+ input?: {
222
+ backgroundColor?: string | undefined;
223
+ borderColor?: string | undefined;
224
+ } | undefined;
225
+ title?: {
226
+ color?: string | undefined;
227
+ fontSize?: number | undefined;
228
+ fontWeight?: number | undefined;
229
+ fontFamily?: string | undefined;
230
+ } | undefined;
231
+ size?: "sm" | "md" | "lg" | undefined;
232
+ description?: {
233
+ color?: string | undefined;
234
+ fontSize?: number | undefined;
235
+ fontWeight?: number | undefined;
236
+ fontFamily?: string | undefined;
237
+ } | undefined;
238
+ align?: "center" | "end" | "start" | undefined;
239
+ background?: {
240
+ image?: string | undefined;
241
+ color?: string | undefined;
242
+ opacity?: number | undefined;
243
+ blur?: number | undefined;
244
+ brightness?: number | undefined;
245
+ fit?: string | undefined;
246
+ blendMode?: string | undefined;
247
+ } | undefined;
248
+ container?: {
249
+ color?: string | undefined;
250
+ opacity?: number | undefined;
251
+ backgroundImage?: string | undefined;
252
+ blur?: number | undefined;
253
+ shadowSize?: number | undefined;
254
+ shadowColor?: string | 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
+ isStart?: boolean | undefined;
268
+ isEnd?: boolean | undefined;
269
+ autoSubmit?: boolean | undefined;
270
+ confirmLabel?: string | undefined;
271
+ conditions?: {
272
+ operator: string;
273
+ trigger: string;
274
+ controlId: string;
275
+ compareValue?: string | undefined;
276
+ }[] | undefined;
277
+ } | undefined;
278
+ export declare const DEFAULT_END_STEP_ID = "__end_step__";
279
+ export declare const DEFAULT_START_STEP_ID = "__start_step__";
280
+ export declare const getDefaultStartStep: (t: TFunction) => StepData;
281
+ export declare const getDefaultEndStep: (t: TFunction) => StepData;
282
+ export declare const DEFAULT_MIN = 0;
283
+ export declare const DEFAULT_OPTIONS_MIN = 1;
284
+ export declare const DEFAULT_MAX = 9999;
285
+ export declare const DEFAULT_OPTION_MAX_LENGTH = 99;
286
+ export declare const CREATE_CONDITION_FORM_ID = "CREATE_CONDITION_FORM";
287
+ export declare const EDIT_CONDITION_FORM_ID = "EDIT_CONDITION_FORM";
288
+ export declare const MAX_OPTIONS_COUNT = 20;
289
+ export declare const getDefaultDropdownOptions: (t: TFunction) => string;
290
+ export declare const getRandomId: () => string;
291
+ export declare const DEFAULT_MEDIA_BRIGHTNESS = 100;
292
+ export declare const DEFAULT_MEDIA_SIZE = 100;
@@ -0,0 +1,2 @@
1
+ import { Align } from '../types/form';
2
+ export declare const alignRelation: Record<Align, string>;
@@ -0,0 +1,10 @@
1
+ import { FileWithPath } from '@mantine/dropzone';
2
+ import { TFunction } from 'i18next';
3
+ import { Control, LongTextControl, TextControl } from '../types/form';
4
+ export declare const useValidation: () => {
5
+ getValidation: (c: Control) => ((v: string) => string | null) | ((v: (string | number)[]) => string | null) | ((v: boolean) => string | null) | ((v: FileWithPath[]) => string | null) | undefined;
6
+ };
7
+ export declare const getTextValidation: (props: Partial<TextControl> | Partial<LongTextControl>, t: TFunction) => (v: string) => string | null;
8
+ export declare const isValidEmail: (v: string) => boolean;
9
+ export declare const isImageUrl: (url: string) => Promise<unknown>;
10
+ export declare const isValidUrl: (urlString: string) => boolean;
@@ -0,0 +1,6 @@
1
+ export * from './useCreateFormContext';
2
+ export * from './useActiveControl';
3
+ export * from './useActiveStep';
4
+ export * from './useCreateFormContext';
5
+ export * from './useFormMobile';
6
+ export * from './useInterpolateText';
@@ -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;