@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.
Files changed (117) hide show
  1. package/dist/{KanbanLayout-k814Ysrn.js → KanbanLayout-BUnjGOO7.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/hooks/useAppContainerStore.d.ts +5 -3
  6. package/dist/components/AppContainer/types.d.ts +4 -1
  7. package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +5 -0
  8. package/dist/components/BouncingLogo/BouncingLogo.d.ts +3 -0
  9. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts +2 -2
  10. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +12 -0
  11. package/dist/components/CommentComposer/index.d.ts +10 -8
  12. package/dist/components/CommentFilterMenu/index.d.ts +9 -0
  13. package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +5 -1
  14. package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +3 -4
  15. package/dist/components/CommentsPanel/components/{CommentFilterMenu.d.ts → CommentTabFilter.d.ts} +2 -1
  16. package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +5 -2
  17. package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +2 -1
  18. package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +3 -4
  19. package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +5 -1
  20. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +9 -5
  21. package/dist/components/CommentsPanel/index.d.ts +10 -6
  22. package/dist/components/CommentsPanel/store.d.ts +7 -1
  23. package/dist/components/CommentsPanel/types.d.ts +152 -57
  24. package/dist/components/CommentsPanel/utils.d.ts +11 -5
  25. package/dist/components/EntityTitle/EntityTitle.d.ts +2 -1
  26. package/dist/components/FormViewer/FormViewer.d.ts +8 -0
  27. package/dist/components/FormViewer/KeyboardNavigation.d.ts +5 -0
  28. package/dist/components/FormViewer/components/AllSlidesLayout.d.ts +7 -0
  29. package/dist/components/FormViewer/components/Container.d.ts +5 -0
  30. package/dist/components/FormViewer/components/ListFocusBox.d.ts +4 -0
  31. package/dist/components/FormViewer/components/NavControls.d.ts +4 -0
  32. package/dist/components/FormViewer/components/Navigation/Navigation.d.ts +1 -0
  33. package/dist/components/FormViewer/components/OneSlideLayput.d.ts +7 -0
  34. package/dist/components/FormViewer/components/Step.d.ts +6 -0
  35. package/dist/components/FormViewer/components/StepDescription.d.ts +6 -0
  36. package/dist/components/FormViewer/components/StepTitle.d.ts +6 -0
  37. package/dist/components/FormViewer/components/fields/AddOptionButton.d.ts +3 -0
  38. package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.d.ts +6 -0
  39. package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.d.ts +9 -0
  40. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.d.ts +11 -0
  41. package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.d.ts +6 -0
  42. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +12 -0
  43. package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts +6 -0
  44. package/dist/components/FormViewer/components/fields/ConfirmButton.d.ts +6 -0
  45. package/dist/components/FormViewer/components/fields/ConfirmField.d.ts +6 -0
  46. package/dist/components/FormViewer/components/fields/DateField.d.ts +4 -0
  47. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.d.ts +11 -0
  48. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.d.ts +6 -0
  49. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +5 -0
  50. package/dist/components/FormViewer/components/fields/EmailField.d.ts +4 -0
  51. package/dist/components/FormViewer/components/fields/LocationField.d.ts +4 -0
  52. package/dist/components/FormViewer/components/fields/LongTextField.d.ts +4 -0
  53. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.d.ts +12 -0
  54. package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.d.ts +6 -0
  55. package/dist/components/FormViewer/components/fields/NumberField.d.ts +4 -0
  56. package/dist/components/FormViewer/components/fields/PhoneField.d.ts +4 -0
  57. package/dist/components/FormViewer/components/fields/ProgressLine.d.ts +1 -0
  58. package/dist/components/FormViewer/components/fields/RatingField.d.ts +5 -0
  59. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +21 -0
  60. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.d.ts +14 -0
  61. package/dist/components/FormViewer/components/fields/SliderField.d.ts +5 -0
  62. package/dist/components/FormViewer/components/fields/StartButton.d.ts +5 -0
  63. package/dist/components/FormViewer/components/fields/StartField.d.ts +6 -0
  64. package/dist/components/FormViewer/components/fields/TextField.d.ts +4 -0
  65. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts +30 -0
  66. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.d.ts +8 -0
  67. package/dist/components/FormViewer/components/fields/YesNoField.d.ts +4 -0
  68. package/dist/components/FormViewer/constants/defaultTheme.d.ts +2 -0
  69. package/dist/components/FormViewer/helpers/conditions.d.ts +285 -0
  70. package/dist/components/FormViewer/helpers/controls.d.ts +6 -0
  71. package/dist/components/FormViewer/helpers/cssScoping.d.ts +11 -0
  72. package/dist/components/FormViewer/helpers/helpers.d.ts +283 -0
  73. package/dist/components/FormViewer/helpers/index.d.ts +7 -0
  74. package/dist/components/FormViewer/helpers/slides.d.ts +3 -0
  75. package/dist/components/FormViewer/helpers/staticClasses.d.ts +47 -0
  76. package/dist/components/FormViewer/helpers/steps.d.ts +298 -0
  77. package/dist/components/FormViewer/helpers/themeUtils.d.ts +2 -0
  78. package/dist/components/FormViewer/helpers/validation.d.ts +10 -0
  79. package/dist/components/FormViewer/hooks/index.d.ts +6 -0
  80. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +206 -0
  81. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +281 -0
  82. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts +22 -0
  83. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +146 -0
  84. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +4 -0
  85. package/dist/components/FormViewer/hooks/useInterpolateText.d.ts +2 -0
  86. package/dist/components/FormViewer/index.d.ts +8 -0
  87. package/dist/components/FormViewer/store/formStore.d.ts +1357 -0
  88. package/dist/components/FormViewer/store/formStoreApi.d.ts +659 -0
  89. package/dist/components/FormViewer/store/selectors.d.ts +80491 -0
  90. package/dist/components/FormViewer/types/form.d.ts +58 -0
  91. package/dist/components/FormViewer/types/schemes.d.ts +7595 -0
  92. package/dist/components/InviteModal/InviteModal.d.ts +2 -0
  93. package/dist/components/InviteModal/slice.d.ts +13 -0
  94. package/dist/components/NoData/NoData.d.ts +24 -6
  95. package/dist/components/SearchFilters/components/{Date.d.ts → DateFilter.d.ts} +1 -1
  96. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +1 -0
  97. package/dist/components/modals/openRemoveConfirmModal.d.ts +4 -0
  98. package/dist/components/table/hooks/TableProvider.d.ts +5 -3
  99. package/dist/components/table/hooks/useCreateTable.d.ts +5 -3
  100. package/dist/components/table/hooks/useTableStore.d.ts +5 -3
  101. package/dist/components/table/store.d.ts +5 -3
  102. package/dist/helpers/dates.d.ts +1 -0
  103. package/dist/helpers/getFileType.d.ts +2 -1
  104. package/dist/helpers/getPartOfTheDay.d.ts +1 -0
  105. package/dist/helpers/isAppMode.d.ts +2 -0
  106. package/dist/hooks/useEvent.d.ts +1 -0
  107. package/dist/hooks/useMenu.d.ts +4 -4
  108. package/dist/{index-BHgJVazX.js → index-Bo9kCsKS.js} +46265 -12296
  109. package/dist/index.d.ts +13 -0
  110. package/dist/index.js +80 -2
  111. package/dist/index.umd.cjs +59 -59
  112. package/dist/store/timezoneStore.d.ts +5 -3
  113. package/dist/store/workspacesOrder.d.ts +5 -3
  114. package/package.json +11 -11
  115. package/dist/components/CommentsPanel/components/CommentsMultiSelectUsers.d.ts +0 -6
  116. package/dist/components/CommentsPanel/components/RemoveConfirmModal.d.ts +0 -11
  117. package/dist/components/OnBoarding/steps/AddMembers/AddMembers.d.ts +0 -2
@@ -0,0 +1,659 @@
1
+ import { StoreApi, UseBoundStore } from 'zustand';
2
+ import { Condition, ContainerProperties, Control, FormLayout, ParsedFormConfig, SettingsData, StepData, TextProperties, ThemeData } from '../types/form';
3
+ import { FormStoreState, FormViewLayout, FormViewerProps } from './formStore';
4
+ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStoreState>>) => {
5
+ applyTheme: (theme: ThemeData) => void;
6
+ setLayout: (layout: FormViewLayout) => void;
7
+ patchSettingsData: (v: Partial<SettingsData>) => void;
8
+ patchThemeData: (v: Partial<ThemeData>) => void;
9
+ patchContainerTheme: (v: Partial<ContainerProperties>) => void;
10
+ patchTitleProperties: (v: Partial<TextProperties>) => void;
11
+ patchDescriptionProperties: (v: Partial<TextProperties>) => void;
12
+ patchCommonFontProperties: (v: Partial<TextProperties>) => void;
13
+ setSteps: (steps: StepData[]) => void;
14
+ addStep: (step: StepData, index?: number) => void;
15
+ removeStep: (stepId: string) => void;
16
+ updateStep: (stepId: string, updatedStep: Partial<StepData>) => void;
17
+ updateControl: <CONTROL extends Control>(stepId: string, controlId: string, updatedControl: Partial<CONTROL>) => void;
18
+ reorderSteps: (fromId: string, toId: string) => void;
19
+ reorderControls: (stepId: string, activeId: string, overId: string) => void;
20
+ addControl: (stepId: string, newControl: Control) => void;
21
+ removeControl: (stepId: string, controlId: string) => void;
22
+ addCondition: (stepId: string, newCondition: Condition) => void;
23
+ updateCondition: (stepId: string, conditionIndex: number, updatedCondition: Partial<Condition>) => void;
24
+ removeCondition: (stepId: string, conditionIndex: number) => void;
25
+ setIsMobile: (isMobile: boolean) => void;
26
+ setConfig: (config: ParsedFormConfig | null, { silent }?: {
27
+ silent?: boolean;
28
+ }) => void;
29
+ setActiveStepId: (stepId: string) => void;
30
+ setFormLayout: (layout: FormLayout) => void;
31
+ scrollToControl: (controlId: string) => void;
32
+ getConfig: () => Required<{
33
+ theme?: {
34
+ input?: {
35
+ backgroundColor?: string | undefined;
36
+ borderColor?: string | undefined;
37
+ } | undefined;
38
+ title?: {
39
+ color?: string | undefined;
40
+ fontSize?: number | undefined;
41
+ fontWeight?: number | undefined;
42
+ fontFamily?: string | undefined;
43
+ } | undefined;
44
+ size?: "sm" | "md" | "lg" | undefined;
45
+ description?: {
46
+ color?: string | undefined;
47
+ fontSize?: number | undefined;
48
+ fontWeight?: number | undefined;
49
+ fontFamily?: string | undefined;
50
+ } | undefined;
51
+ align?: "center" | "end" | "start" | undefined;
52
+ background?: {
53
+ image?: string | undefined;
54
+ color?: string | undefined;
55
+ opacity?: number | undefined;
56
+ blur?: number | undefined;
57
+ brightness?: number | undefined;
58
+ fit?: string | undefined;
59
+ blendMode?: string | undefined;
60
+ } | undefined;
61
+ container?: {
62
+ color?: string | undefined;
63
+ opacity?: number | undefined;
64
+ backgroundImage?: string | undefined;
65
+ blur?: number | undefined;
66
+ shadowSize?: number | undefined;
67
+ shadowColor?: string | undefined;
68
+ } | undefined;
69
+ borderRadius?: "sm" | "md" | "lg" | undefined;
70
+ font?: {
71
+ color?: string | undefined;
72
+ fontSize?: number | undefined;
73
+ fontWeight?: number | undefined;
74
+ fontFamily?: string | undefined;
75
+ } | undefined;
76
+ listStyle?: string | undefined;
77
+ primaryColor?: string | undefined;
78
+ customCSS?: string | undefined;
79
+ } | undefined;
80
+ settings?: {
81
+ layout: "list" | "slides";
82
+ slideAnimation: "none" | "horizontal" | "vertical";
83
+ freeNav: boolean;
84
+ copyright?: boolean | undefined;
85
+ enterIndicator?: any;
86
+ progressBar?: boolean | undefined;
87
+ navArrows?: boolean | undefined;
88
+ questionNumber?: boolean | undefined;
89
+ mainLanguage?: string | undefined;
90
+ recaptcha?: boolean | undefined;
91
+ } | undefined;
92
+ steps?: {
93
+ id: string;
94
+ controls: ({
95
+ id: string;
96
+ controlType: "text";
97
+ title?: string | undefined;
98
+ description?: string | undefined;
99
+ icon?: string | undefined;
100
+ maxLength?: number | undefined;
101
+ minLength?: number | undefined;
102
+ placeholder?: string | undefined;
103
+ required?: boolean | undefined;
104
+ variableName?: string | undefined;
105
+ } | {
106
+ id: string;
107
+ controlType: "longText";
108
+ title?: string | undefined;
109
+ description?: string | undefined;
110
+ icon?: string | undefined;
111
+ maxLength?: number | undefined;
112
+ minLength?: number | undefined;
113
+ placeholder?: string | undefined;
114
+ required?: boolean | undefined;
115
+ variableName?: string | undefined;
116
+ } | {
117
+ id: string;
118
+ controlType: "button";
119
+ label?: string | undefined;
120
+ link?: string | undefined;
121
+ title?: string | undefined;
122
+ description?: string | undefined;
123
+ buttons?: any[] | undefined;
124
+ width?: number | undefined;
125
+ orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
126
+ required?: boolean | undefined;
127
+ showIconButton?: boolean | undefined;
128
+ buttonIcon?: string | undefined;
129
+ alignButton?: "center" | "end" | "start" | undefined;
130
+ enableTooltip?: boolean | undefined;
131
+ fullWidthMobile?: boolean | undefined;
132
+ } | {
133
+ id: string;
134
+ controlType: "date";
135
+ title?: string | undefined;
136
+ description?: string | undefined;
137
+ icon?: string | undefined;
138
+ placeholder?: string | undefined;
139
+ required?: boolean | undefined;
140
+ minDate?: string | undefined;
141
+ maxDate?: string | undefined;
142
+ variableName?: string | undefined;
143
+ } | {
144
+ id: string;
145
+ controlType: "start";
146
+ label?: string | undefined;
147
+ title?: string | undefined;
148
+ description?: string | undefined;
149
+ icon?: string | undefined;
150
+ required?: boolean | undefined;
151
+ showIconButton?: boolean | undefined;
152
+ buttonIcon?: string | undefined;
153
+ showButton?: boolean | undefined;
154
+ } | {
155
+ id: string;
156
+ controlType: "confirm";
157
+ label?: string | undefined;
158
+ link?: string | undefined;
159
+ title?: string | undefined;
160
+ description?: string | undefined;
161
+ required?: boolean | undefined;
162
+ buttonIcon?: string | undefined;
163
+ showButton?: boolean | undefined;
164
+ } | {
165
+ id: string;
166
+ controlType: "number";
167
+ title?: string | undefined;
168
+ description?: string | undefined;
169
+ icon?: string | undefined;
170
+ max?: number | undefined;
171
+ min?: number | undefined;
172
+ placeholder?: string | undefined;
173
+ required?: boolean | undefined;
174
+ variableName?: string | undefined;
175
+ } | {
176
+ id: string;
177
+ options: {
178
+ label: string;
179
+ id: string;
180
+ }[];
181
+ controlType: "choice";
182
+ title?: string | undefined;
183
+ description?: string | undefined;
184
+ required?: boolean | undefined;
185
+ variableName?: string | undefined;
186
+ showInput?: boolean | undefined;
187
+ otherOption?: boolean | undefined;
188
+ } | {
189
+ id: string;
190
+ options: {
191
+ label: string;
192
+ id: string;
193
+ }[];
194
+ controlType: "multipleChoice";
195
+ title?: string | undefined;
196
+ description?: string | undefined;
197
+ icon?: string | undefined;
198
+ required?: boolean | undefined;
199
+ variableName?: string | undefined;
200
+ showInput?: boolean | undefined;
201
+ otherOption?: boolean | undefined;
202
+ minOptions?: number | undefined;
203
+ maxOptions?: number | undefined;
204
+ } | {
205
+ id: string;
206
+ options: {
207
+ label: string;
208
+ id: string;
209
+ image?: string | undefined;
210
+ }[];
211
+ controlType: "pictureChoice";
212
+ title?: string | undefined;
213
+ description?: string | undefined;
214
+ icon?: string | undefined;
215
+ required?: boolean | undefined;
216
+ variableName?: string | undefined;
217
+ showInput?: boolean | undefined;
218
+ } | {
219
+ id: string;
220
+ options: {
221
+ label: string;
222
+ id: string;
223
+ }[];
224
+ controlType: "dropdown";
225
+ title?: string | undefined;
226
+ description?: string | undefined;
227
+ icon?: string | undefined;
228
+ placeholder?: string | undefined;
229
+ required?: boolean | undefined;
230
+ variableName?: string | undefined;
231
+ } | {
232
+ id: string;
233
+ controlType: "email";
234
+ title?: string | undefined;
235
+ description?: string | undefined;
236
+ icon?: string | undefined;
237
+ placeholder?: string | undefined;
238
+ required?: boolean | undefined;
239
+ variableName?: string | undefined;
240
+ } | {
241
+ id: string;
242
+ controlType: "location";
243
+ title?: string | undefined;
244
+ description?: string | undefined;
245
+ icon?: string | undefined;
246
+ placeholder?: string | undefined;
247
+ required?: boolean | undefined;
248
+ variableName?: string | undefined;
249
+ } | {
250
+ id: string;
251
+ controlType: "phone";
252
+ title?: string | undefined;
253
+ description?: string | undefined;
254
+ icon?: string | undefined;
255
+ placeholder?: string | undefined;
256
+ required?: boolean | undefined;
257
+ variableName?: string | undefined;
258
+ } | {
259
+ id: string;
260
+ controlType: "slider";
261
+ title?: string | undefined;
262
+ description?: string | undefined;
263
+ icon?: string | undefined;
264
+ max?: number | undefined;
265
+ min?: number | undefined;
266
+ required?: boolean | undefined;
267
+ variableName?: string | undefined;
268
+ } | {
269
+ id: string;
270
+ controlType: "upload";
271
+ title?: string | undefined;
272
+ description?: string | undefined;
273
+ icon?: string | undefined;
274
+ multiple?: boolean | undefined;
275
+ accept?: string[] | undefined;
276
+ required?: boolean | undefined;
277
+ maxSize?: number | undefined;
278
+ maxFiles?: number | undefined;
279
+ variableName?: string | undefined;
280
+ minFiles?: number | undefined;
281
+ } | {
282
+ id: string;
283
+ controlType: "yesNo";
284
+ title?: string | undefined;
285
+ description?: string | undefined;
286
+ icon?: string | undefined;
287
+ required?: boolean | undefined;
288
+ variableName?: string | undefined;
289
+ yesLabel?: string | undefined;
290
+ noLabel?: string | undefined;
291
+ } | {
292
+ id: string;
293
+ controlType: "rating";
294
+ title?: string | undefined;
295
+ description?: string | undefined;
296
+ required?: boolean | undefined;
297
+ count?: number | undefined;
298
+ variableName?: string | undefined;
299
+ })[];
300
+ trigger: string;
301
+ position?: {
302
+ x: number;
303
+ y: number;
304
+ } | undefined;
305
+ media?: {
306
+ video?: string | undefined;
307
+ image?: string | undefined;
308
+ color?: string | undefined;
309
+ size?: number | undefined;
310
+ layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
311
+ blur?: number | undefined;
312
+ brightness?: number | undefined;
313
+ videoThumb?: string | undefined;
314
+ } | undefined;
315
+ theme?: {
316
+ input?: {
317
+ backgroundColor?: string | undefined;
318
+ borderColor?: string | undefined;
319
+ } | undefined;
320
+ title?: {
321
+ color?: string | undefined;
322
+ fontSize?: number | undefined;
323
+ fontWeight?: number | undefined;
324
+ fontFamily?: string | undefined;
325
+ } | undefined;
326
+ size?: "sm" | "md" | "lg" | undefined;
327
+ description?: {
328
+ color?: string | undefined;
329
+ fontSize?: number | undefined;
330
+ fontWeight?: number | undefined;
331
+ fontFamily?: string | undefined;
332
+ } | undefined;
333
+ align?: "center" | "end" | "start" | undefined;
334
+ background?: {
335
+ image?: string | undefined;
336
+ color?: string | undefined;
337
+ opacity?: number | undefined;
338
+ blur?: number | undefined;
339
+ brightness?: number | undefined;
340
+ fit?: string | undefined;
341
+ blendMode?: string | undefined;
342
+ } | undefined;
343
+ container?: {
344
+ color?: string | undefined;
345
+ opacity?: number | undefined;
346
+ backgroundImage?: string | undefined;
347
+ blur?: number | undefined;
348
+ shadowSize?: number | undefined;
349
+ shadowColor?: string | undefined;
350
+ } | undefined;
351
+ borderRadius?: "sm" | "md" | "lg" | undefined;
352
+ font?: {
353
+ color?: string | undefined;
354
+ fontSize?: number | undefined;
355
+ fontWeight?: number | undefined;
356
+ fontFamily?: string | undefined;
357
+ } | undefined;
358
+ listStyle?: string | undefined;
359
+ primaryColor?: string | undefined;
360
+ customCSS?: string | undefined;
361
+ } | undefined;
362
+ isStart?: boolean | undefined;
363
+ isEnd?: boolean | undefined;
364
+ autoSubmit?: boolean | undefined;
365
+ confirmLabel?: string | undefined;
366
+ conditions?: {
367
+ operator: string;
368
+ trigger: string;
369
+ controlId: string;
370
+ compareValue?: string | undefined;
371
+ }[] | undefined;
372
+ }[] | undefined;
373
+ listStep?: {
374
+ id: string;
375
+ controls: ({
376
+ id: string;
377
+ controlType: "text";
378
+ title?: string | undefined;
379
+ description?: string | undefined;
380
+ icon?: string | undefined;
381
+ maxLength?: number | undefined;
382
+ minLength?: number | undefined;
383
+ placeholder?: string | undefined;
384
+ required?: boolean | undefined;
385
+ variableName?: string | undefined;
386
+ } | {
387
+ id: string;
388
+ controlType: "longText";
389
+ title?: string | undefined;
390
+ description?: string | undefined;
391
+ icon?: string | undefined;
392
+ maxLength?: number | undefined;
393
+ minLength?: number | undefined;
394
+ placeholder?: string | undefined;
395
+ required?: boolean | undefined;
396
+ variableName?: string | undefined;
397
+ } | {
398
+ id: string;
399
+ controlType: "button";
400
+ label?: string | undefined;
401
+ link?: string | undefined;
402
+ title?: string | undefined;
403
+ description?: string | undefined;
404
+ buttons?: any[] | undefined;
405
+ width?: number | undefined;
406
+ orientation?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
407
+ required?: boolean | undefined;
408
+ showIconButton?: boolean | undefined;
409
+ buttonIcon?: string | undefined;
410
+ alignButton?: "center" | "end" | "start" | undefined;
411
+ enableTooltip?: boolean | undefined;
412
+ fullWidthMobile?: boolean | undefined;
413
+ } | {
414
+ id: string;
415
+ controlType: "date";
416
+ title?: string | undefined;
417
+ description?: string | undefined;
418
+ icon?: string | undefined;
419
+ placeholder?: string | undefined;
420
+ required?: boolean | undefined;
421
+ minDate?: string | undefined;
422
+ maxDate?: string | undefined;
423
+ variableName?: string | undefined;
424
+ } | {
425
+ id: string;
426
+ controlType: "start";
427
+ label?: string | undefined;
428
+ title?: string | undefined;
429
+ description?: string | undefined;
430
+ icon?: string | undefined;
431
+ required?: boolean | undefined;
432
+ showIconButton?: boolean | undefined;
433
+ buttonIcon?: string | undefined;
434
+ showButton?: boolean | undefined;
435
+ } | {
436
+ id: string;
437
+ controlType: "confirm";
438
+ label?: string | undefined;
439
+ link?: string | undefined;
440
+ title?: string | undefined;
441
+ description?: string | undefined;
442
+ required?: boolean | undefined;
443
+ buttonIcon?: string | undefined;
444
+ showButton?: boolean | undefined;
445
+ } | {
446
+ id: string;
447
+ controlType: "number";
448
+ title?: string | undefined;
449
+ description?: string | undefined;
450
+ icon?: string | undefined;
451
+ max?: number | undefined;
452
+ min?: number | undefined;
453
+ placeholder?: string | undefined;
454
+ required?: boolean | undefined;
455
+ variableName?: string | undefined;
456
+ } | {
457
+ id: string;
458
+ options: {
459
+ label: string;
460
+ id: string;
461
+ }[];
462
+ controlType: "choice";
463
+ title?: string | undefined;
464
+ description?: string | undefined;
465
+ required?: boolean | undefined;
466
+ variableName?: string | undefined;
467
+ showInput?: boolean | undefined;
468
+ otherOption?: boolean | undefined;
469
+ } | {
470
+ id: string;
471
+ options: {
472
+ label: string;
473
+ id: string;
474
+ }[];
475
+ controlType: "multipleChoice";
476
+ title?: string | undefined;
477
+ description?: string | undefined;
478
+ icon?: string | undefined;
479
+ required?: boolean | undefined;
480
+ variableName?: string | undefined;
481
+ showInput?: boolean | undefined;
482
+ otherOption?: boolean | undefined;
483
+ minOptions?: number | undefined;
484
+ maxOptions?: number | undefined;
485
+ } | {
486
+ id: string;
487
+ options: {
488
+ label: string;
489
+ id: string;
490
+ image?: string | undefined;
491
+ }[];
492
+ controlType: "pictureChoice";
493
+ title?: string | undefined;
494
+ description?: string | undefined;
495
+ icon?: string | undefined;
496
+ required?: boolean | undefined;
497
+ variableName?: string | undefined;
498
+ showInput?: boolean | undefined;
499
+ } | {
500
+ id: string;
501
+ options: {
502
+ label: string;
503
+ id: string;
504
+ }[];
505
+ controlType: "dropdown";
506
+ title?: string | undefined;
507
+ description?: string | undefined;
508
+ icon?: string | undefined;
509
+ placeholder?: string | undefined;
510
+ required?: boolean | undefined;
511
+ variableName?: string | undefined;
512
+ } | {
513
+ id: string;
514
+ controlType: "email";
515
+ title?: string | undefined;
516
+ description?: string | undefined;
517
+ icon?: string | undefined;
518
+ placeholder?: string | undefined;
519
+ required?: boolean | undefined;
520
+ variableName?: string | undefined;
521
+ } | {
522
+ id: string;
523
+ controlType: "location";
524
+ title?: string | undefined;
525
+ description?: string | undefined;
526
+ icon?: string | undefined;
527
+ placeholder?: string | undefined;
528
+ required?: boolean | undefined;
529
+ variableName?: string | undefined;
530
+ } | {
531
+ id: string;
532
+ controlType: "phone";
533
+ title?: string | undefined;
534
+ description?: string | undefined;
535
+ icon?: string | undefined;
536
+ placeholder?: string | undefined;
537
+ required?: boolean | undefined;
538
+ variableName?: string | undefined;
539
+ } | {
540
+ id: string;
541
+ controlType: "slider";
542
+ title?: string | undefined;
543
+ description?: string | undefined;
544
+ icon?: string | undefined;
545
+ max?: number | undefined;
546
+ min?: number | undefined;
547
+ required?: boolean | undefined;
548
+ variableName?: string | undefined;
549
+ } | {
550
+ id: string;
551
+ controlType: "upload";
552
+ title?: string | undefined;
553
+ description?: string | undefined;
554
+ icon?: string | undefined;
555
+ multiple?: boolean | undefined;
556
+ accept?: string[] | undefined;
557
+ required?: boolean | undefined;
558
+ maxSize?: number | undefined;
559
+ maxFiles?: number | undefined;
560
+ variableName?: string | undefined;
561
+ minFiles?: number | undefined;
562
+ } | {
563
+ id: string;
564
+ controlType: "yesNo";
565
+ title?: string | undefined;
566
+ description?: string | undefined;
567
+ icon?: string | undefined;
568
+ required?: boolean | undefined;
569
+ variableName?: string | undefined;
570
+ yesLabel?: string | undefined;
571
+ noLabel?: string | undefined;
572
+ } | {
573
+ id: string;
574
+ controlType: "rating";
575
+ title?: string | undefined;
576
+ description?: string | undefined;
577
+ required?: boolean | undefined;
578
+ count?: number | undefined;
579
+ variableName?: string | undefined;
580
+ })[];
581
+ trigger: string;
582
+ position?: {
583
+ x: number;
584
+ y: number;
585
+ } | undefined;
586
+ media?: {
587
+ video?: string | undefined;
588
+ image?: string | undefined;
589
+ color?: string | undefined;
590
+ size?: number | undefined;
591
+ layout?: "content" | "top" | "left" | "bottom" | "right" | "background" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | undefined;
592
+ blur?: number | undefined;
593
+ brightness?: number | undefined;
594
+ videoThumb?: string | undefined;
595
+ } | undefined;
596
+ theme?: {
597
+ input?: {
598
+ backgroundColor?: string | undefined;
599
+ borderColor?: string | undefined;
600
+ } | undefined;
601
+ title?: {
602
+ color?: string | undefined;
603
+ fontSize?: number | undefined;
604
+ fontWeight?: number | undefined;
605
+ fontFamily?: string | undefined;
606
+ } | undefined;
607
+ size?: "sm" | "md" | "lg" | undefined;
608
+ description?: {
609
+ color?: string | undefined;
610
+ fontSize?: number | undefined;
611
+ fontWeight?: number | undefined;
612
+ fontFamily?: string | undefined;
613
+ } | undefined;
614
+ align?: "center" | "end" | "start" | undefined;
615
+ background?: {
616
+ image?: string | undefined;
617
+ color?: string | undefined;
618
+ opacity?: number | undefined;
619
+ blur?: number | undefined;
620
+ brightness?: number | undefined;
621
+ fit?: string | undefined;
622
+ blendMode?: string | undefined;
623
+ } | undefined;
624
+ container?: {
625
+ color?: string | undefined;
626
+ opacity?: number | undefined;
627
+ backgroundImage?: string | undefined;
628
+ blur?: number | undefined;
629
+ shadowSize?: number | undefined;
630
+ shadowColor?: string | undefined;
631
+ } | undefined;
632
+ borderRadius?: "sm" | "md" | "lg" | undefined;
633
+ font?: {
634
+ color?: string | undefined;
635
+ fontSize?: number | undefined;
636
+ fontWeight?: number | undefined;
637
+ fontFamily?: string | undefined;
638
+ } | undefined;
639
+ listStyle?: string | undefined;
640
+ primaryColor?: string | undefined;
641
+ customCSS?: string | undefined;
642
+ } | undefined;
643
+ isStart?: boolean | undefined;
644
+ isEnd?: boolean | undefined;
645
+ autoSubmit?: boolean | undefined;
646
+ confirmLabel?: string | undefined;
647
+ conditions?: {
648
+ operator: string;
649
+ trigger: string;
650
+ controlId: string;
651
+ compareValue?: string | undefined;
652
+ }[] | undefined;
653
+ } | undefined;
654
+ }>;
655
+ setProps: (props: FormViewerProps) => void;
656
+ forwardActiveStep: (steps?: number) => void;
657
+ backActiveStep: (steps?: number) => void;
658
+ resetActiveStep: () => void;
659
+ };