@layers-app/shared 0.2.8 → 0.3.1

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 (168) hide show
  1. package/dist/api/giphy/slice.d.ts +1 -1
  2. package/dist/api/giphy/slice.d.ts.map +1 -1
  3. package/dist/api/unsplash/slice.d.ts +1 -1
  4. package/dist/api/unsplash/slice.d.ts.map +1 -1
  5. package/dist/assets/default-workspace-avatar.jpg.js +4 -0
  6. package/dist/assets/layers-logo-full.svg.js +2 -3
  7. package/dist/assets/layers-logo-full.svg2.js +5 -0
  8. package/dist/assets/layers-logo-icon.svg.js +2 -3
  9. package/dist/assets/layers-logo-icon.svg2.js +5 -0
  10. package/dist/assets/projects/figureA.svg.js +4 -0
  11. package/dist/assets/projects/figureB.svg.js +4 -0
  12. package/dist/assets/qwebchannel.d.ts +15 -0
  13. package/dist/assets/qwebchannel.d.ts.map +1 -0
  14. package/dist/assets/taskPriorities/high.svg.js +5 -0
  15. package/dist/assets/taskPriorities/low.svg.js +5 -0
  16. package/dist/assets/taskPriorities/none.svg.js +5 -0
  17. package/dist/assets/taskPriorities/normal.svg.js +5 -0
  18. package/dist/assets/taskPriorities/urgent.svg.js +5 -0
  19. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  20. package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
  21. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
  22. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
  23. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
  24. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
  25. package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
  26. package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
  27. package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
  28. package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
  29. package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
  30. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  31. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  32. package/dist/components/AppContainer/AppContainer.js +37 -36
  33. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  34. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
  35. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  36. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +120 -120
  37. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  38. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  39. package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
  40. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  41. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
  42. package/dist/components/AppContainer/types.d.ts +3 -0
  43. package/dist/components/AppContainer/types.d.ts.map +1 -1
  44. package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
  45. package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
  46. package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
  47. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  48. package/dist/components/CommentComposer/index.js +115 -111
  49. package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
  50. package/dist/components/CommunitiesDialog/index.js +47 -46
  51. package/dist/components/Copyright/index.d.ts.map +1 -1
  52. package/dist/components/Copyright/index.js +8 -7
  53. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  54. package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
  55. package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
  56. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  57. package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
  58. package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
  59. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  60. package/dist/components/EmojiPicker/IconsPanel.js +47 -45
  61. package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
  62. package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
  63. package/dist/components/EntityIcon.d.ts +3 -3
  64. package/dist/components/EntityIcon.d.ts.map +1 -1
  65. package/dist/components/EntityIcon.js +59 -35
  66. package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
  67. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  68. package/dist/components/EntityTitle/EntityTitle.js +34 -34
  69. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  70. package/dist/components/FilePicker/FilePicker.d.ts +1 -1
  71. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  72. package/dist/components/FilePicker/FilePicker.js +144 -152
  73. package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
  74. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  75. package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
  76. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  77. package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
  78. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  79. package/dist/components/FilePicker/FilePickerLink.js +16 -16
  80. package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
  81. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  82. package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
  83. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  84. package/dist/components/FilePicker/FilePickerUpload.js +44 -42
  85. package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
  86. package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
  87. package/dist/components/FilePicker/api/giphyApi.js +11 -14
  88. package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
  89. package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
  90. package/dist/components/FilePicker/api/unsplashApi.js +14 -19
  91. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  92. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
  93. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  94. package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
  95. package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
  96. package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
  97. package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
  98. package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
  99. package/dist/components/FormViewer/helpers/steps.js +22 -21
  100. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
  101. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
  102. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
  103. package/dist/components/FormViewer/store/formStore.d.ts +357 -357
  104. package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
  105. package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
  106. package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
  107. package/dist/components/Logotype.d.ts +6 -4
  108. package/dist/components/Logotype.d.ts.map +1 -1
  109. package/dist/components/Logotype.js +62 -30
  110. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  111. package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
  112. package/dist/components/NavMenu/types.d.ts +1 -0
  113. package/dist/components/NavMenu/types.d.ts.map +1 -1
  114. package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
  115. package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
  116. package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
  117. package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
  118. package/dist/components/TreeIndent/TreeIndent.js +15 -0
  119. package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
  120. package/dist/components/TreeIndent/index.d.ts +2 -0
  121. package/dist/components/TreeIndent/index.d.ts.map +1 -0
  122. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +6 -6
  123. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  124. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
  125. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  126. package/dist/config/brand.d.ts +49 -0
  127. package/dist/config/brand.d.ts.map +1 -0
  128. package/dist/config/brand.js +77 -0
  129. package/dist/config/envConfig.d.ts +110 -0
  130. package/dist/config/envConfig.d.ts.map +1 -0
  131. package/dist/config/envConfig.js +48 -0
  132. package/dist/constants.d.ts +1 -1
  133. package/dist/constants.d.ts.map +1 -1
  134. package/dist/constants.js +19 -7
  135. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  136. package/dist/helpers/getFileIcons.js +34 -29
  137. package/dist/helpers/getFileType.d.ts +1 -1
  138. package/dist/helpers/getFileType.d.ts.map +1 -1
  139. package/dist/helpers/getFileType.js +3 -3
  140. package/dist/helpers/hotjar.d.ts.map +1 -1
  141. package/dist/helpers/hotjar.js +11 -7
  142. package/dist/helpers/platform.js +4 -4
  143. package/dist/helpers/showNotifications.d.ts +3 -0
  144. package/dist/helpers/showNotifications.d.ts.map +1 -1
  145. package/dist/helpers/showNotifications.js +79 -44
  146. package/dist/hooks/useDateFnsLocale.d.ts +2 -0
  147. package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
  148. package/dist/hooks/useDateFnsLocale.js +9 -8
  149. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  150. package/dist/hooks/useDateUtils.js +19 -19
  151. package/dist/hooks/useDisableWindowScroll.js +3 -3
  152. package/dist/hooks/useFormatDistance.d.ts.map +1 -1
  153. package/dist/hooks/useFormatDistance.js +6 -6
  154. package/dist/hooks/useNumberQueryParam.d.ts +1 -1
  155. package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
  156. package/dist/index.css +1 -1
  157. package/dist/index.d.ts +5 -0
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +505 -487
  160. package/dist/lang/locales/ui_en.json.js +1 -1
  161. package/dist/lang/locales/ui_es.json.js +5 -5
  162. package/dist/lang/locales/ui_ru.json.js +5 -5
  163. package/dist/utils/formatStorage.d.ts +9 -0
  164. package/dist/utils/formatStorage.d.ts.map +1 -1
  165. package/dist/utils/formatStorage.js +14 -10
  166. package/package.json +3 -6
  167. package/dist/assets/svg/default_icon.svg.js +0 -4
  168. package/dist/assets/svg/layers-logo-full.svg.js +0 -4
@@ -2,7 +2,6 @@ import { UseFormReturnType } from '@mantine/form';
2
2
  import { StepsFormValues } from '../hooks/useCreateFormContext';
3
3
  import { ControlType, OperatorType, StepData } from '../types/form';
4
4
  export declare const getNextStep: (step: StepData, steps: StepData[], form: UseFormReturnType<StepsFormValues>) => {
5
- trigger: string;
6
5
  id: string;
7
6
  controls: ({
8
7
  id: string;
@@ -15,33 +14,6 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
15
14
  minLength?: number | undefined;
16
15
  maxLength?: number | undefined;
17
16
  variableName?: string | undefined;
18
- } | {
19
- id: string;
20
- controlType: "longText";
21
- title?: string | undefined;
22
- description?: string | undefined;
23
- icon?: string | undefined;
24
- required?: boolean | undefined;
25
- placeholder?: string | undefined;
26
- minLength?: number | undefined;
27
- maxLength?: number | undefined;
28
- variableName?: string | undefined;
29
- } | {
30
- id: string;
31
- controlType: "button";
32
- title?: string | undefined;
33
- description?: string | undefined;
34
- required?: boolean | undefined;
35
- label?: string | undefined;
36
- link?: string | undefined;
37
- showIconButton?: boolean | undefined;
38
- buttonIcon?: string | undefined;
39
- alignButton?: "start" | "center" | "end" | undefined;
40
- buttons?: any[] | undefined;
41
- orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
42
- width?: number | undefined;
43
- enableTooltip?: boolean | undefined;
44
- fullWidthMobile?: boolean | undefined;
45
17
  } | {
46
18
  id: string;
47
19
  controlType: "date";
@@ -55,72 +27,74 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
55
27
  maxDate?: string | undefined;
56
28
  } | {
57
29
  id: string;
58
- controlType: "start";
30
+ controlType: "number";
59
31
  title?: string | undefined;
60
32
  description?: string | undefined;
61
33
  icon?: string | undefined;
62
34
  required?: boolean | undefined;
63
- label?: string | undefined;
64
- showIconButton?: boolean | undefined;
65
- buttonIcon?: string | undefined;
66
- showButton?: boolean | undefined;
35
+ placeholder?: string | undefined;
36
+ variableName?: string | undefined;
37
+ min?: number | undefined;
38
+ max?: number | undefined;
67
39
  } | {
68
40
  id: string;
69
- controlType: "confirm";
41
+ options: {
42
+ id: string;
43
+ label: string;
44
+ }[];
45
+ controlType: "multipleChoice";
70
46
  title?: string | undefined;
71
47
  description?: string | undefined;
48
+ icon?: string | undefined;
72
49
  required?: boolean | undefined;
73
- label?: string | undefined;
74
- link?: string | undefined;
75
- buttonIcon?: string | undefined;
76
- showButton?: boolean | undefined;
50
+ variableName?: string | undefined;
51
+ minOptions?: number | undefined;
52
+ maxOptions?: number | undefined;
53
+ showInput?: boolean | undefined;
54
+ otherOption?: boolean | undefined;
77
55
  } | {
78
56
  id: string;
79
- controlType: "number";
57
+ controlType: "slider";
80
58
  title?: string | undefined;
81
59
  description?: string | undefined;
82
60
  icon?: string | undefined;
83
61
  required?: boolean | undefined;
84
- placeholder?: string | undefined;
85
62
  variableName?: string | undefined;
86
63
  min?: number | undefined;
87
64
  max?: number | undefined;
88
65
  } | {
66
+ id: string;
89
67
  options: {
90
68
  id: string;
91
69
  label: string;
92
70
  }[];
93
- id: string;
94
- controlType: "choice";
71
+ controlType: "dropdown";
95
72
  title?: string | undefined;
96
73
  description?: string | undefined;
74
+ icon?: string | undefined;
97
75
  required?: boolean | undefined;
76
+ placeholder?: string | undefined;
98
77
  variableName?: string | undefined;
99
- showInput?: boolean | undefined;
100
- otherOption?: boolean | undefined;
101
78
  } | {
79
+ id: string;
102
80
  options: {
103
81
  id: string;
104
82
  label: string;
105
83
  }[];
106
- id: string;
107
- controlType: "multipleChoice";
84
+ controlType: "choice";
108
85
  title?: string | undefined;
109
86
  description?: string | undefined;
110
- icon?: string | undefined;
111
87
  required?: boolean | undefined;
112
88
  variableName?: string | undefined;
113
89
  showInput?: boolean | undefined;
114
90
  otherOption?: boolean | undefined;
115
- minOptions?: number | undefined;
116
- maxOptions?: number | undefined;
117
91
  } | {
92
+ id: string;
118
93
  options: {
119
94
  id: string;
120
95
  label: string;
121
96
  image?: string | undefined;
122
97
  }[];
123
- id: string;
124
98
  controlType: "pictureChoice";
125
99
  title?: string | undefined;
126
100
  description?: string | undefined;
@@ -129,21 +103,21 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
129
103
  variableName?: string | undefined;
130
104
  showInput?: boolean | undefined;
131
105
  } | {
132
- options: {
133
- id: string;
134
- label: string;
135
- }[];
136
106
  id: string;
137
- controlType: "dropdown";
107
+ controlType: "upload";
138
108
  title?: string | undefined;
139
109
  description?: string | undefined;
140
110
  icon?: string | undefined;
141
111
  required?: boolean | undefined;
142
- placeholder?: string | undefined;
143
112
  variableName?: string | undefined;
113
+ multiple?: boolean | undefined;
114
+ maxFiles?: number | undefined;
115
+ minFiles?: number | undefined;
116
+ accept?: string[] | undefined;
117
+ maxSize?: number | undefined;
144
118
  } | {
145
119
  id: string;
146
- controlType: "email";
120
+ controlType: "location";
147
121
  title?: string | undefined;
148
122
  description?: string | undefined;
149
123
  icon?: string | undefined;
@@ -152,7 +126,7 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
152
126
  variableName?: string | undefined;
153
127
  } | {
154
128
  id: string;
155
- controlType: "location";
129
+ controlType: "phone";
156
130
  title?: string | undefined;
157
131
  description?: string | undefined;
158
132
  icon?: string | undefined;
@@ -161,7 +135,7 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
161
135
  variableName?: string | undefined;
162
136
  } | {
163
137
  id: string;
164
- controlType: "phone";
138
+ controlType: "email";
165
139
  title?: string | undefined;
166
140
  description?: string | undefined;
167
141
  icon?: string | undefined;
@@ -170,37 +144,62 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
170
144
  variableName?: string | undefined;
171
145
  } | {
172
146
  id: string;
173
- controlType: "slider";
147
+ controlType: "yesNo";
174
148
  title?: string | undefined;
175
149
  description?: string | undefined;
176
150
  icon?: string | undefined;
177
151
  required?: boolean | undefined;
178
152
  variableName?: string | undefined;
179
- min?: number | undefined;
180
- max?: number | undefined;
153
+ yesLabel?: string | undefined;
154
+ noLabel?: string | undefined;
181
155
  } | {
182
156
  id: string;
183
- controlType: "upload";
157
+ controlType: "longText";
184
158
  title?: string | undefined;
185
159
  description?: string | undefined;
186
160
  icon?: string | undefined;
187
161
  required?: boolean | undefined;
162
+ placeholder?: string | undefined;
163
+ minLength?: number | undefined;
164
+ maxLength?: number | undefined;
188
165
  variableName?: string | undefined;
189
- multiple?: boolean | undefined;
190
- maxFiles?: number | undefined;
191
- minFiles?: number | undefined;
192
- accept?: string[] | undefined;
193
- maxSize?: number | undefined;
194
166
  } | {
195
167
  id: string;
196
- controlType: "yesNo";
168
+ controlType: "start";
197
169
  title?: string | undefined;
198
170
  description?: string | undefined;
199
171
  icon?: string | undefined;
200
172
  required?: boolean | undefined;
201
- variableName?: string | undefined;
202
- yesLabel?: string | undefined;
203
- noLabel?: string | undefined;
173
+ label?: string | undefined;
174
+ showButton?: boolean | undefined;
175
+ buttonIcon?: string | undefined;
176
+ showIconButton?: boolean | undefined;
177
+ } | {
178
+ id: string;
179
+ controlType: "confirm";
180
+ title?: string | undefined;
181
+ description?: string | undefined;
182
+ required?: boolean | undefined;
183
+ label?: string | undefined;
184
+ showButton?: boolean | undefined;
185
+ buttonIcon?: string | undefined;
186
+ link?: string | undefined;
187
+ } | {
188
+ id: string;
189
+ controlType: "button";
190
+ title?: string | undefined;
191
+ description?: string | undefined;
192
+ required?: boolean | undefined;
193
+ label?: string | undefined;
194
+ buttonIcon?: string | undefined;
195
+ showIconButton?: boolean | undefined;
196
+ link?: string | undefined;
197
+ alignButton?: "start" | "center" | "end" | undefined;
198
+ buttons?: any[] | undefined;
199
+ orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
200
+ width?: number | undefined;
201
+ enableTooltip?: boolean | undefined;
202
+ fullWidthMobile?: boolean | undefined;
204
203
  } | {
205
204
  id: string;
206
205
  controlType: "rating";
@@ -210,14 +209,15 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
210
209
  variableName?: string | undefined;
211
210
  count?: number | undefined;
212
211
  })[];
212
+ trigger: string;
213
213
  isStart?: boolean | undefined;
214
214
  isEnd?: boolean | undefined;
215
215
  autoSubmit?: boolean | undefined;
216
216
  confirmLabel?: string | undefined;
217
217
  media?: {
218
+ image?: string | undefined;
218
219
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
219
220
  brightness?: number | undefined;
220
- image?: string | undefined;
221
221
  video?: string | undefined;
222
222
  videoThumb?: string | undefined;
223
223
  color?: string | undefined;
@@ -225,22 +225,12 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
225
225
  blur?: number | undefined;
226
226
  } | undefined;
227
227
  conditions?: {
228
+ trigger: string;
228
229
  controlId: string;
229
230
  operator: string;
230
- trigger: string;
231
231
  compareValue?: string | undefined;
232
232
  }[] | undefined;
233
233
  theme?: {
234
- background?: {
235
- brightness?: number | undefined;
236
- image?: string | undefined;
237
- color?: string | undefined;
238
- blur?: number | undefined;
239
- opacity?: number | undefined;
240
- fit?: string | undefined;
241
- blendMode?: string | undefined;
242
- } | undefined;
243
- size?: "sm" | "md" | "lg" | undefined;
244
234
  title?: {
245
235
  color?: string | undefined;
246
236
  fontSize?: number | undefined;
@@ -253,6 +243,16 @@ export declare const getNextStep: (step: StepData, steps: StepData[], form: UseF
253
243
  fontWeight?: number | undefined;
254
244
  fontFamily?: string | undefined;
255
245
  } | undefined;
246
+ background?: {
247
+ image?: string | undefined;
248
+ brightness?: number | undefined;
249
+ color?: string | undefined;
250
+ blur?: number | undefined;
251
+ opacity?: number | undefined;
252
+ fit?: string | undefined;
253
+ blendMode?: string | undefined;
254
+ } | undefined;
255
+ size?: "sm" | "md" | "lg" | undefined;
256
256
  align?: "start" | "center" | "end" | undefined;
257
257
  listStyle?: string | undefined;
258
258
  borderRadius?: "sm" | "md" | "lg" | undefined;
@@ -1,7 +1,6 @@
1
1
  import { StepData, ThemeData } from '../types/form';
2
2
  export declare const mergeTheme: (theme: Partial<ThemeData>, updatedTheme: Partial<ThemeData>) => Partial<ThemeData>;
3
3
  export declare const sortSteps: (steps: StepData[]) => {
4
- trigger: string;
5
4
  id: string;
6
5
  controls: ({
7
6
  id: string;
@@ -14,33 +13,6 @@ export declare const sortSteps: (steps: StepData[]) => {
14
13
  minLength?: number | undefined;
15
14
  maxLength?: number | undefined;
16
15
  variableName?: string | undefined;
17
- } | {
18
- id: string;
19
- controlType: "longText";
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- icon?: string | undefined;
23
- required?: boolean | undefined;
24
- placeholder?: string | undefined;
25
- minLength?: number | undefined;
26
- maxLength?: number | undefined;
27
- variableName?: string | undefined;
28
- } | {
29
- id: string;
30
- controlType: "button";
31
- title?: string | undefined;
32
- description?: string | undefined;
33
- required?: boolean | undefined;
34
- label?: string | undefined;
35
- link?: string | undefined;
36
- showIconButton?: boolean | undefined;
37
- buttonIcon?: string | undefined;
38
- alignButton?: "start" | "center" | "end" | undefined;
39
- buttons?: any[] | undefined;
40
- orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
41
- width?: number | undefined;
42
- enableTooltip?: boolean | undefined;
43
- fullWidthMobile?: boolean | undefined;
44
16
  } | {
45
17
  id: string;
46
18
  controlType: "date";
@@ -54,72 +26,74 @@ export declare const sortSteps: (steps: StepData[]) => {
54
26
  maxDate?: string | undefined;
55
27
  } | {
56
28
  id: string;
57
- controlType: "start";
29
+ controlType: "number";
58
30
  title?: string | undefined;
59
31
  description?: string | undefined;
60
32
  icon?: string | undefined;
61
33
  required?: boolean | undefined;
62
- label?: string | undefined;
63
- showIconButton?: boolean | undefined;
64
- buttonIcon?: string | undefined;
65
- showButton?: boolean | undefined;
34
+ placeholder?: string | undefined;
35
+ variableName?: string | undefined;
36
+ min?: number | undefined;
37
+ max?: number | undefined;
66
38
  } | {
67
39
  id: string;
68
- controlType: "confirm";
40
+ options: {
41
+ id: string;
42
+ label: string;
43
+ }[];
44
+ controlType: "multipleChoice";
69
45
  title?: string | undefined;
70
46
  description?: string | undefined;
47
+ icon?: string | undefined;
71
48
  required?: boolean | undefined;
72
- label?: string | undefined;
73
- link?: string | undefined;
74
- buttonIcon?: string | undefined;
75
- showButton?: boolean | undefined;
49
+ variableName?: string | undefined;
50
+ minOptions?: number | undefined;
51
+ maxOptions?: number | undefined;
52
+ showInput?: boolean | undefined;
53
+ otherOption?: boolean | undefined;
76
54
  } | {
77
55
  id: string;
78
- controlType: "number";
56
+ controlType: "slider";
79
57
  title?: string | undefined;
80
58
  description?: string | undefined;
81
59
  icon?: string | undefined;
82
60
  required?: boolean | undefined;
83
- placeholder?: string | undefined;
84
61
  variableName?: string | undefined;
85
62
  min?: number | undefined;
86
63
  max?: number | undefined;
87
64
  } | {
65
+ id: string;
88
66
  options: {
89
67
  id: string;
90
68
  label: string;
91
69
  }[];
92
- id: string;
93
- controlType: "choice";
70
+ controlType: "dropdown";
94
71
  title?: string | undefined;
95
72
  description?: string | undefined;
73
+ icon?: string | undefined;
96
74
  required?: boolean | undefined;
75
+ placeholder?: string | undefined;
97
76
  variableName?: string | undefined;
98
- showInput?: boolean | undefined;
99
- otherOption?: boolean | undefined;
100
77
  } | {
78
+ id: string;
101
79
  options: {
102
80
  id: string;
103
81
  label: string;
104
82
  }[];
105
- id: string;
106
- controlType: "multipleChoice";
83
+ controlType: "choice";
107
84
  title?: string | undefined;
108
85
  description?: string | undefined;
109
- icon?: string | undefined;
110
86
  required?: boolean | undefined;
111
87
  variableName?: string | undefined;
112
88
  showInput?: boolean | undefined;
113
89
  otherOption?: boolean | undefined;
114
- minOptions?: number | undefined;
115
- maxOptions?: number | undefined;
116
90
  } | {
91
+ id: string;
117
92
  options: {
118
93
  id: string;
119
94
  label: string;
120
95
  image?: string | undefined;
121
96
  }[];
122
- id: string;
123
97
  controlType: "pictureChoice";
124
98
  title?: string | undefined;
125
99
  description?: string | undefined;
@@ -128,21 +102,21 @@ export declare const sortSteps: (steps: StepData[]) => {
128
102
  variableName?: string | undefined;
129
103
  showInput?: boolean | undefined;
130
104
  } | {
131
- options: {
132
- id: string;
133
- label: string;
134
- }[];
135
105
  id: string;
136
- controlType: "dropdown";
106
+ controlType: "upload";
137
107
  title?: string | undefined;
138
108
  description?: string | undefined;
139
109
  icon?: string | undefined;
140
110
  required?: boolean | undefined;
141
- placeholder?: string | undefined;
142
111
  variableName?: string | undefined;
112
+ multiple?: boolean | undefined;
113
+ maxFiles?: number | undefined;
114
+ minFiles?: number | undefined;
115
+ accept?: string[] | undefined;
116
+ maxSize?: number | undefined;
143
117
  } | {
144
118
  id: string;
145
- controlType: "email";
119
+ controlType: "location";
146
120
  title?: string | undefined;
147
121
  description?: string | undefined;
148
122
  icon?: string | undefined;
@@ -151,7 +125,7 @@ export declare const sortSteps: (steps: StepData[]) => {
151
125
  variableName?: string | undefined;
152
126
  } | {
153
127
  id: string;
154
- controlType: "location";
128
+ controlType: "phone";
155
129
  title?: string | undefined;
156
130
  description?: string | undefined;
157
131
  icon?: string | undefined;
@@ -160,7 +134,7 @@ export declare const sortSteps: (steps: StepData[]) => {
160
134
  variableName?: string | undefined;
161
135
  } | {
162
136
  id: string;
163
- controlType: "phone";
137
+ controlType: "email";
164
138
  title?: string | undefined;
165
139
  description?: string | undefined;
166
140
  icon?: string | undefined;
@@ -169,37 +143,62 @@ export declare const sortSteps: (steps: StepData[]) => {
169
143
  variableName?: string | undefined;
170
144
  } | {
171
145
  id: string;
172
- controlType: "slider";
146
+ controlType: "yesNo";
173
147
  title?: string | undefined;
174
148
  description?: string | undefined;
175
149
  icon?: string | undefined;
176
150
  required?: boolean | undefined;
177
151
  variableName?: string | undefined;
178
- min?: number | undefined;
179
- max?: number | undefined;
152
+ yesLabel?: string | undefined;
153
+ noLabel?: string | undefined;
180
154
  } | {
181
155
  id: string;
182
- controlType: "upload";
156
+ controlType: "longText";
183
157
  title?: string | undefined;
184
158
  description?: string | undefined;
185
159
  icon?: string | undefined;
186
160
  required?: boolean | undefined;
161
+ placeholder?: string | undefined;
162
+ minLength?: number | undefined;
163
+ maxLength?: number | undefined;
187
164
  variableName?: string | undefined;
188
- multiple?: boolean | undefined;
189
- maxFiles?: number | undefined;
190
- minFiles?: number | undefined;
191
- accept?: string[] | undefined;
192
- maxSize?: number | undefined;
193
165
  } | {
194
166
  id: string;
195
- controlType: "yesNo";
167
+ controlType: "start";
196
168
  title?: string | undefined;
197
169
  description?: string | undefined;
198
170
  icon?: string | undefined;
199
171
  required?: boolean | undefined;
200
- variableName?: string | undefined;
201
- yesLabel?: string | undefined;
202
- noLabel?: string | undefined;
172
+ label?: string | undefined;
173
+ showButton?: boolean | undefined;
174
+ buttonIcon?: string | undefined;
175
+ showIconButton?: boolean | undefined;
176
+ } | {
177
+ id: string;
178
+ controlType: "confirm";
179
+ title?: string | undefined;
180
+ description?: string | undefined;
181
+ required?: boolean | undefined;
182
+ label?: string | undefined;
183
+ showButton?: boolean | undefined;
184
+ buttonIcon?: string | undefined;
185
+ link?: string | undefined;
186
+ } | {
187
+ id: string;
188
+ controlType: "button";
189
+ title?: string | undefined;
190
+ description?: string | undefined;
191
+ required?: boolean | undefined;
192
+ label?: string | undefined;
193
+ buttonIcon?: string | undefined;
194
+ showIconButton?: boolean | undefined;
195
+ link?: string | undefined;
196
+ alignButton?: "start" | "center" | "end" | undefined;
197
+ buttons?: any[] | undefined;
198
+ orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
199
+ width?: number | undefined;
200
+ enableTooltip?: boolean | undefined;
201
+ fullWidthMobile?: boolean | undefined;
203
202
  } | {
204
203
  id: string;
205
204
  controlType: "rating";
@@ -209,14 +208,15 @@ export declare const sortSteps: (steps: StepData[]) => {
209
208
  variableName?: string | undefined;
210
209
  count?: number | undefined;
211
210
  })[];
211
+ trigger: string;
212
212
  isStart?: boolean | undefined;
213
213
  isEnd?: boolean | undefined;
214
214
  autoSubmit?: boolean | undefined;
215
215
  confirmLabel?: string | undefined;
216
216
  media?: {
217
+ image?: string | undefined;
217
218
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
218
219
  brightness?: number | undefined;
219
- image?: string | undefined;
220
220
  video?: string | undefined;
221
221
  videoThumb?: string | undefined;
222
222
  color?: string | undefined;
@@ -224,22 +224,12 @@ export declare const sortSteps: (steps: StepData[]) => {
224
224
  blur?: number | undefined;
225
225
  } | undefined;
226
226
  conditions?: {
227
+ trigger: string;
227
228
  controlId: string;
228
229
  operator: string;
229
- trigger: string;
230
230
  compareValue?: string | undefined;
231
231
  }[] | undefined;
232
232
  theme?: {
233
- background?: {
234
- brightness?: number | undefined;
235
- image?: string | undefined;
236
- color?: string | undefined;
237
- blur?: number | undefined;
238
- opacity?: number | undefined;
239
- fit?: string | undefined;
240
- blendMode?: string | undefined;
241
- } | undefined;
242
- size?: "sm" | "md" | "lg" | undefined;
243
233
  title?: {
244
234
  color?: string | undefined;
245
235
  fontSize?: number | undefined;
@@ -252,6 +242,16 @@ export declare const sortSteps: (steps: StepData[]) => {
252
242
  fontWeight?: number | undefined;
253
243
  fontFamily?: string | undefined;
254
244
  } | undefined;
245
+ background?: {
246
+ image?: string | undefined;
247
+ brightness?: number | undefined;
248
+ color?: string | undefined;
249
+ blur?: number | undefined;
250
+ opacity?: number | undefined;
251
+ fit?: string | undefined;
252
+ blendMode?: string | undefined;
253
+ } | undefined;
254
+ size?: "sm" | "md" | "lg" | undefined;
255
255
  align?: "start" | "center" | "end" | undefined;
256
256
  listStyle?: string | undefined;
257
257
  borderRadius?: "sm" | "md" | "lg" | undefined;