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

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 (89) hide show
  1. package/dist/{KanbanLayout-DGHT9E0N.js → KanbanLayout-BJFmisAk.js} +1 -1
  2. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  3. package/dist/components/AppContainer/components/DesktopNavbar.d.ts +1 -1
  4. package/dist/components/AppContainer/components/MenuUserDropdown.d.ts +2 -0
  5. package/dist/components/AppContainer/types.d.ts +4 -1
  6. package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +5 -0
  7. package/dist/components/BouncingLogo/BouncingLogo.d.ts +3 -0
  8. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts +2 -2
  9. package/dist/components/CommentComposer/index.d.ts +2 -1
  10. package/dist/components/CommentsPanel/index.d.ts +2 -1
  11. package/dist/components/CommentsPanel/types.d.ts +0 -5
  12. package/dist/components/EmojiPicker/EmojiPicker.d.ts +2 -1
  13. package/dist/components/FormViewer/FormViewer.d.ts +8 -0
  14. package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
  15. package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
  16. package/dist/components/FormViewer/components/Container.d.ts +5 -0
  17. package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
  18. package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
  19. package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
  20. package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
  21. package/dist/components/FormViewer/components/Step.d.ts +6 -0
  22. package/dist/components/FormViewer/components/StepDescription.d.ts +6 -0
  23. package/dist/components/FormViewer/components/StepTitle.d.ts +6 -0
  24. package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
  25. package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +6 -0
  26. package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +9 -0
  27. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
  28. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +6 -0
  29. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
  30. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +6 -0
  31. package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +6 -0
  32. package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +6 -0
  33. package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
  34. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
  35. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +6 -0
  36. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
  37. package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
  38. package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
  39. package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
  40. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
  41. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +6 -0
  42. package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
  43. package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
  44. package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
  45. package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
  46. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
  47. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
  48. package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
  49. package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
  50. package/dist/components/FormViewer/components/fields/StartField.d.ts +6 -0
  51. package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
  52. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
  53. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
  54. package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
  55. package/dist/components/FormViewer/constants/defaultTheme.d.ts +2 -0
  56. package/dist/components/FormViewer/helpers/conditions.d.ts +285 -0
  57. package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
  58. package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
  59. package/dist/components/FormViewer/helpers/helpers.d.ts +283 -0
  60. package/dist/components/FormViewer/helpers/index.d.ts +7 -0
  61. package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
  62. package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
  63. package/dist/components/FormViewer/helpers/steps.d.ts +298 -0
  64. package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
  65. package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
  66. package/dist/components/FormViewer/hooks/index.d.ts +6 -0
  67. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +206 -0
  68. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +281 -0
  69. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
  70. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +145 -0
  71. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
  72. package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
  73. package/dist/components/FormViewer/index.d.ts +8 -0
  74. package/dist/components/FormViewer/store/formStore.d.ts +1357 -0
  75. package/dist/components/FormViewer/store/formStoreApi.d.ts +659 -0
  76. package/dist/components/FormViewer/store/selectors.d.ts +80491 -0
  77. package/dist/components/FormViewer/types/form.d.ts +58 -0
  78. package/dist/components/FormViewer/types/schemes.d.ts +7595 -0
  79. package/dist/components/InviteModal/InviteModal.d.ts +2 -0
  80. package/dist/components/InviteModal/slice.d.ts +13 -0
  81. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +1 -0
  82. package/dist/helpers/getFileType.d.ts +2 -1
  83. package/dist/helpers/isAppMode.d.ts +2 -0
  84. package/dist/hooks/useEvent.d.ts +1 -0
  85. package/dist/{index-BI1_FPl_.js → index-Cj-dmalk.js} +42701 -9664
  86. package/dist/index.d.ts +8 -0
  87. package/dist/index.js +77 -4
  88. package/dist/index.umd.cjs +59 -59
  89. package/package.json +1 -1
@@ -0,0 +1,298 @@
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
+ otherOption?: boolean | undefined;
99
+ } | {
100
+ id: string;
101
+ options: {
102
+ label: string;
103
+ id: string;
104
+ }[];
105
+ controlType: "multipleChoice";
106
+ title?: string | undefined;
107
+ description?: string | undefined;
108
+ icon?: string | undefined;
109
+ required?: boolean | undefined;
110
+ variableName?: string | undefined;
111
+ showInput?: boolean | undefined;
112
+ otherOption?: boolean | undefined;
113
+ minOptions?: number | undefined;
114
+ maxOptions?: number | undefined;
115
+ } | {
116
+ id: string;
117
+ options: {
118
+ label: string;
119
+ id: string;
120
+ image?: string | undefined;
121
+ }[];
122
+ controlType: "pictureChoice";
123
+ title?: string | undefined;
124
+ description?: string | undefined;
125
+ icon?: string | undefined;
126
+ required?: boolean | undefined;
127
+ variableName?: string | undefined;
128
+ showInput?: boolean | undefined;
129
+ } | {
130
+ id: string;
131
+ options: {
132
+ label: string;
133
+ id: string;
134
+ }[];
135
+ controlType: "dropdown";
136
+ title?: string | undefined;
137
+ description?: string | undefined;
138
+ icon?: string | undefined;
139
+ placeholder?: string | undefined;
140
+ required?: boolean | undefined;
141
+ variableName?: string | undefined;
142
+ } | {
143
+ id: string;
144
+ controlType: "email";
145
+ title?: string | undefined;
146
+ description?: string | undefined;
147
+ icon?: string | undefined;
148
+ placeholder?: string | undefined;
149
+ required?: boolean | undefined;
150
+ variableName?: string | undefined;
151
+ } | {
152
+ id: string;
153
+ controlType: "location";
154
+ title?: string | undefined;
155
+ description?: string | undefined;
156
+ icon?: string | undefined;
157
+ placeholder?: string | undefined;
158
+ required?: boolean | undefined;
159
+ variableName?: string | undefined;
160
+ } | {
161
+ id: string;
162
+ controlType: "phone";
163
+ title?: string | undefined;
164
+ description?: string | undefined;
165
+ icon?: string | undefined;
166
+ placeholder?: string | undefined;
167
+ required?: boolean | undefined;
168
+ variableName?: string | undefined;
169
+ } | {
170
+ id: string;
171
+ controlType: "slider";
172
+ title?: string | undefined;
173
+ description?: string | undefined;
174
+ icon?: string | undefined;
175
+ max?: number | undefined;
176
+ min?: number | undefined;
177
+ required?: boolean | undefined;
178
+ variableName?: string | undefined;
179
+ } | {
180
+ id: string;
181
+ controlType: "upload";
182
+ title?: string | undefined;
183
+ description?: string | undefined;
184
+ icon?: string | undefined;
185
+ multiple?: boolean | undefined;
186
+ accept?: string[] | undefined;
187
+ required?: boolean | undefined;
188
+ maxSize?: number | undefined;
189
+ maxFiles?: number | undefined;
190
+ variableName?: string | undefined;
191
+ minFiles?: number | undefined;
192
+ } | {
193
+ id: string;
194
+ controlType: "yesNo";
195
+ title?: string | undefined;
196
+ description?: string | undefined;
197
+ icon?: string | undefined;
198
+ required?: boolean | undefined;
199
+ variableName?: string | undefined;
200
+ yesLabel?: string | undefined;
201
+ noLabel?: string | undefined;
202
+ } | {
203
+ id: string;
204
+ controlType: "rating";
205
+ title?: string | undefined;
206
+ description?: string | undefined;
207
+ required?: boolean | undefined;
208
+ count?: number | undefined;
209
+ variableName?: string | undefined;
210
+ })[];
211
+ trigger: string;
212
+ position?: {
213
+ x: number;
214
+ y: number;
215
+ } | undefined;
216
+ media?: {
217
+ video?: string | undefined;
218
+ image?: string | undefined;
219
+ color?: string | undefined;
220
+ size?: number | undefined;
221
+ layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
222
+ blur?: number | undefined;
223
+ brightness?: number | undefined;
224
+ videoThumb?: string | undefined;
225
+ } | undefined;
226
+ theme?: {
227
+ input?: {
228
+ backgroundColor?: string | undefined;
229
+ borderColor?: string | undefined;
230
+ } | undefined;
231
+ title?: {
232
+ color?: string | undefined;
233
+ fontSize?: number | undefined;
234
+ fontWeight?: number | undefined;
235
+ fontFamily?: string | undefined;
236
+ } | undefined;
237
+ size?: "sm" | "md" | "lg" | undefined;
238
+ description?: {
239
+ color?: string | undefined;
240
+ fontSize?: number | undefined;
241
+ fontWeight?: number | undefined;
242
+ fontFamily?: string | undefined;
243
+ } | undefined;
244
+ align?: "center" | "end" | "start" | undefined;
245
+ background?: {
246
+ image?: string | undefined;
247
+ color?: string | undefined;
248
+ opacity?: number | undefined;
249
+ blur?: number | undefined;
250
+ brightness?: number | undefined;
251
+ fit?: string | undefined;
252
+ blendMode?: string | undefined;
253
+ } | undefined;
254
+ container?: {
255
+ color?: string | undefined;
256
+ opacity?: number | undefined;
257
+ backgroundImage?: string | undefined;
258
+ blur?: number | undefined;
259
+ shadowSize?: number | undefined;
260
+ shadowColor?: string | undefined;
261
+ } | undefined;
262
+ borderRadius?: "sm" | "md" | "lg" | undefined;
263
+ font?: {
264
+ color?: string | undefined;
265
+ fontSize?: number | undefined;
266
+ fontWeight?: number | undefined;
267
+ fontFamily?: string | undefined;
268
+ } | undefined;
269
+ listStyle?: string | undefined;
270
+ primaryColor?: string | undefined;
271
+ customCSS?: string | undefined;
272
+ } | undefined;
273
+ isStart?: boolean | undefined;
274
+ isEnd?: boolean | undefined;
275
+ autoSubmit?: boolean | undefined;
276
+ confirmLabel?: string | undefined;
277
+ conditions?: {
278
+ operator: string;
279
+ trigger: string;
280
+ controlId: string;
281
+ compareValue?: string | undefined;
282
+ }[] | undefined;
283
+ } | undefined;
284
+ export declare const DEFAULT_END_STEP_ID = "__end_step__";
285
+ export declare const DEFAULT_START_STEP_ID = "__start_step__";
286
+ export declare const getDefaultStartStep: (t: TFunction) => StepData;
287
+ export declare const getDefaultEndStep: (t: TFunction) => StepData;
288
+ export declare const DEFAULT_MIN = 0;
289
+ export declare const DEFAULT_OPTIONS_MIN = 1;
290
+ export declare const DEFAULT_MAX = 9999;
291
+ export declare const DEFAULT_OPTION_MAX_LENGTH = 99;
292
+ export declare const CREATE_CONDITION_FORM_ID = "CREATE_CONDITION_FORM";
293
+ export declare const EDIT_CONDITION_FORM_ID = "EDIT_CONDITION_FORM";
294
+ export declare const MAX_OPTIONS_COUNT = 20;
295
+ export declare const getDefaultDropdownOptions: (t: TFunction) => string;
296
+ export declare const getRandomId: () => string;
297
+ export declare const DEFAULT_MEDIA_BRIGHTNESS = 100;
298
+ 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,206 @@
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
+ otherOption?: boolean | undefined;
95
+ } | {
96
+ id: string;
97
+ options: {
98
+ label: string;
99
+ id: string;
100
+ }[];
101
+ controlType: "multipleChoice";
102
+ title?: string | undefined;
103
+ description?: string | undefined;
104
+ icon?: string | undefined;
105
+ required?: boolean | undefined;
106
+ variableName?: string | undefined;
107
+ showInput?: boolean | undefined;
108
+ otherOption?: 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
+ } | null;