@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
@@ -31,16 +31,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
31
31
  scrollToControl: (controlId: string) => void;
32
32
  getConfig: () => Required<{
33
33
  theme?: {
34
- background?: {
35
- brightness?: number | undefined;
36
- image?: string | undefined;
37
- color?: string | undefined;
38
- blur?: number | undefined;
39
- opacity?: number | undefined;
40
- fit?: string | undefined;
41
- blendMode?: string | undefined;
42
- } | undefined;
43
- size?: "sm" | "md" | "lg" | undefined;
44
34
  title?: {
45
35
  color?: string | undefined;
46
36
  fontSize?: number | undefined;
@@ -53,6 +43,16 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
53
43
  fontWeight?: number | undefined;
54
44
  fontFamily?: string | undefined;
55
45
  } | undefined;
46
+ background?: {
47
+ image?: string | undefined;
48
+ brightness?: number | undefined;
49
+ color?: string | undefined;
50
+ blur?: number | undefined;
51
+ opacity?: number | undefined;
52
+ fit?: string | undefined;
53
+ blendMode?: string | undefined;
54
+ } | undefined;
55
+ size?: "sm" | "md" | "lg" | undefined;
56
56
  align?: "start" | "center" | "end" | undefined;
57
57
  listStyle?: string | undefined;
58
58
  borderRadius?: "sm" | "md" | "lg" | undefined;
@@ -78,7 +78,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
78
78
  customCSS?: string | undefined;
79
79
  } | undefined;
80
80
  steps?: {
81
- trigger: string;
82
81
  id: string;
83
82
  controls: ({
84
83
  id: string;
@@ -91,33 +90,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
91
90
  minLength?: number | undefined;
92
91
  maxLength?: number | undefined;
93
92
  variableName?: string | undefined;
94
- } | {
95
- id: string;
96
- controlType: "longText";
97
- title?: string | undefined;
98
- description?: string | undefined;
99
- icon?: string | undefined;
100
- required?: boolean | undefined;
101
- placeholder?: string | undefined;
102
- minLength?: number | undefined;
103
- maxLength?: number | undefined;
104
- variableName?: string | undefined;
105
- } | {
106
- id: string;
107
- controlType: "button";
108
- title?: string | undefined;
109
- description?: string | undefined;
110
- required?: boolean | undefined;
111
- label?: string | undefined;
112
- link?: string | undefined;
113
- showIconButton?: boolean | undefined;
114
- buttonIcon?: string | undefined;
115
- alignButton?: "start" | "center" | "end" | undefined;
116
- buttons?: any[] | undefined;
117
- orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
118
- width?: number | undefined;
119
- enableTooltip?: boolean | undefined;
120
- fullWidthMobile?: boolean | undefined;
121
93
  } | {
122
94
  id: string;
123
95
  controlType: "date";
@@ -131,72 +103,74 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
131
103
  maxDate?: string | undefined;
132
104
  } | {
133
105
  id: string;
134
- controlType: "start";
106
+ controlType: "number";
135
107
  title?: string | undefined;
136
108
  description?: string | undefined;
137
109
  icon?: string | undefined;
138
110
  required?: boolean | undefined;
139
- label?: string | undefined;
140
- showIconButton?: boolean | undefined;
141
- buttonIcon?: string | undefined;
142
- showButton?: boolean | undefined;
111
+ placeholder?: string | undefined;
112
+ variableName?: string | undefined;
113
+ min?: number | undefined;
114
+ max?: number | undefined;
143
115
  } | {
144
116
  id: string;
145
- controlType: "confirm";
117
+ options: {
118
+ id: string;
119
+ label: string;
120
+ }[];
121
+ controlType: "multipleChoice";
146
122
  title?: string | undefined;
147
123
  description?: string | undefined;
124
+ icon?: string | undefined;
148
125
  required?: boolean | undefined;
149
- label?: string | undefined;
150
- link?: string | undefined;
151
- buttonIcon?: string | undefined;
152
- showButton?: boolean | undefined;
126
+ variableName?: string | undefined;
127
+ minOptions?: number | undefined;
128
+ maxOptions?: number | undefined;
129
+ showInput?: boolean | undefined;
130
+ otherOption?: boolean | undefined;
153
131
  } | {
154
132
  id: string;
155
- controlType: "number";
133
+ controlType: "slider";
156
134
  title?: string | undefined;
157
135
  description?: string | undefined;
158
136
  icon?: string | undefined;
159
137
  required?: boolean | undefined;
160
- placeholder?: string | undefined;
161
138
  variableName?: string | undefined;
162
139
  min?: number | undefined;
163
140
  max?: number | undefined;
164
141
  } | {
142
+ id: string;
165
143
  options: {
166
144
  id: string;
167
145
  label: string;
168
146
  }[];
169
- id: string;
170
- controlType: "choice";
147
+ controlType: "dropdown";
171
148
  title?: string | undefined;
172
149
  description?: string | undefined;
150
+ icon?: string | undefined;
173
151
  required?: boolean | undefined;
152
+ placeholder?: string | undefined;
174
153
  variableName?: string | undefined;
175
- showInput?: boolean | undefined;
176
- otherOption?: boolean | undefined;
177
154
  } | {
155
+ id: string;
178
156
  options: {
179
157
  id: string;
180
158
  label: string;
181
159
  }[];
182
- id: string;
183
- controlType: "multipleChoice";
160
+ controlType: "choice";
184
161
  title?: string | undefined;
185
162
  description?: string | undefined;
186
- icon?: string | undefined;
187
163
  required?: boolean | undefined;
188
164
  variableName?: string | undefined;
189
165
  showInput?: boolean | undefined;
190
166
  otherOption?: boolean | undefined;
191
- minOptions?: number | undefined;
192
- maxOptions?: number | undefined;
193
167
  } | {
168
+ id: string;
194
169
  options: {
195
170
  id: string;
196
171
  label: string;
197
172
  image?: string | undefined;
198
173
  }[];
199
- id: string;
200
174
  controlType: "pictureChoice";
201
175
  title?: string | undefined;
202
176
  description?: string | undefined;
@@ -205,21 +179,21 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
205
179
  variableName?: string | undefined;
206
180
  showInput?: boolean | undefined;
207
181
  } | {
208
- options: {
209
- id: string;
210
- label: string;
211
- }[];
212
182
  id: string;
213
- controlType: "dropdown";
183
+ controlType: "upload";
214
184
  title?: string | undefined;
215
185
  description?: string | undefined;
216
186
  icon?: string | undefined;
217
187
  required?: boolean | undefined;
218
- placeholder?: string | undefined;
219
188
  variableName?: string | undefined;
189
+ multiple?: boolean | undefined;
190
+ maxFiles?: number | undefined;
191
+ minFiles?: number | undefined;
192
+ accept?: string[] | undefined;
193
+ maxSize?: number | undefined;
220
194
  } | {
221
195
  id: string;
222
- controlType: "email";
196
+ controlType: "location";
223
197
  title?: string | undefined;
224
198
  description?: string | undefined;
225
199
  icon?: string | undefined;
@@ -228,7 +202,7 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
228
202
  variableName?: string | undefined;
229
203
  } | {
230
204
  id: string;
231
- controlType: "location";
205
+ controlType: "phone";
232
206
  title?: string | undefined;
233
207
  description?: string | undefined;
234
208
  icon?: string | undefined;
@@ -237,7 +211,7 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
237
211
  variableName?: string | undefined;
238
212
  } | {
239
213
  id: string;
240
- controlType: "phone";
214
+ controlType: "email";
241
215
  title?: string | undefined;
242
216
  description?: string | undefined;
243
217
  icon?: string | undefined;
@@ -246,37 +220,62 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
246
220
  variableName?: string | undefined;
247
221
  } | {
248
222
  id: string;
249
- controlType: "slider";
223
+ controlType: "yesNo";
250
224
  title?: string | undefined;
251
225
  description?: string | undefined;
252
226
  icon?: string | undefined;
253
227
  required?: boolean | undefined;
254
228
  variableName?: string | undefined;
255
- min?: number | undefined;
256
- max?: number | undefined;
229
+ yesLabel?: string | undefined;
230
+ noLabel?: string | undefined;
257
231
  } | {
258
232
  id: string;
259
- controlType: "upload";
233
+ controlType: "longText";
260
234
  title?: string | undefined;
261
235
  description?: string | undefined;
262
236
  icon?: string | undefined;
263
237
  required?: boolean | undefined;
238
+ placeholder?: string | undefined;
239
+ minLength?: number | undefined;
240
+ maxLength?: number | undefined;
264
241
  variableName?: string | undefined;
265
- multiple?: boolean | undefined;
266
- maxFiles?: number | undefined;
267
- minFiles?: number | undefined;
268
- accept?: string[] | undefined;
269
- maxSize?: number | undefined;
270
242
  } | {
271
243
  id: string;
272
- controlType: "yesNo";
244
+ controlType: "start";
273
245
  title?: string | undefined;
274
246
  description?: string | undefined;
275
247
  icon?: string | undefined;
276
248
  required?: boolean | undefined;
277
- variableName?: string | undefined;
278
- yesLabel?: string | undefined;
279
- noLabel?: string | undefined;
249
+ label?: string | undefined;
250
+ showButton?: boolean | undefined;
251
+ buttonIcon?: string | undefined;
252
+ showIconButton?: boolean | undefined;
253
+ } | {
254
+ id: string;
255
+ controlType: "confirm";
256
+ title?: string | undefined;
257
+ description?: string | undefined;
258
+ required?: boolean | undefined;
259
+ label?: string | undefined;
260
+ showButton?: boolean | undefined;
261
+ buttonIcon?: string | undefined;
262
+ link?: string | undefined;
263
+ } | {
264
+ id: string;
265
+ controlType: "button";
266
+ title?: string | undefined;
267
+ description?: string | undefined;
268
+ required?: boolean | undefined;
269
+ label?: string | undefined;
270
+ buttonIcon?: string | undefined;
271
+ showIconButton?: boolean | undefined;
272
+ link?: string | undefined;
273
+ alignButton?: "start" | "center" | "end" | undefined;
274
+ buttons?: any[] | undefined;
275
+ orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
276
+ width?: number | undefined;
277
+ enableTooltip?: boolean | undefined;
278
+ fullWidthMobile?: boolean | undefined;
280
279
  } | {
281
280
  id: string;
282
281
  controlType: "rating";
@@ -286,14 +285,15 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
286
285
  variableName?: string | undefined;
287
286
  count?: number | undefined;
288
287
  })[];
288
+ trigger: string;
289
289
  isStart?: boolean | undefined;
290
290
  isEnd?: boolean | undefined;
291
291
  autoSubmit?: boolean | undefined;
292
292
  confirmLabel?: string | undefined;
293
293
  media?: {
294
+ image?: string | undefined;
294
295
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
295
296
  brightness?: number | undefined;
296
- image?: string | undefined;
297
297
  video?: string | undefined;
298
298
  videoThumb?: string | undefined;
299
299
  color?: string | undefined;
@@ -301,22 +301,12 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
301
301
  blur?: number | undefined;
302
302
  } | undefined;
303
303
  conditions?: {
304
+ trigger: string;
304
305
  controlId: string;
305
306
  operator: string;
306
- trigger: string;
307
307
  compareValue?: string | undefined;
308
308
  }[] | undefined;
309
309
  theme?: {
310
- background?: {
311
- brightness?: number | undefined;
312
- image?: string | undefined;
313
- color?: string | undefined;
314
- blur?: number | undefined;
315
- opacity?: number | undefined;
316
- fit?: string | undefined;
317
- blendMode?: string | undefined;
318
- } | undefined;
319
- size?: "sm" | "md" | "lg" | undefined;
320
310
  title?: {
321
311
  color?: string | undefined;
322
312
  fontSize?: number | undefined;
@@ -329,6 +319,16 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
329
319
  fontWeight?: number | undefined;
330
320
  fontFamily?: string | undefined;
331
321
  } | undefined;
322
+ background?: {
323
+ image?: string | undefined;
324
+ brightness?: number | undefined;
325
+ color?: string | undefined;
326
+ blur?: number | undefined;
327
+ opacity?: number | undefined;
328
+ fit?: string | undefined;
329
+ blendMode?: string | undefined;
330
+ } | undefined;
331
+ size?: "sm" | "md" | "lg" | undefined;
332
332
  align?: "start" | "center" | "end" | undefined;
333
333
  listStyle?: string | undefined;
334
334
  borderRadius?: "sm" | "md" | "lg" | undefined;
@@ -359,7 +359,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
359
359
  } | undefined;
360
360
  }[] | undefined;
361
361
  listStep?: {
362
- trigger: string;
363
362
  id: string;
364
363
  controls: ({
365
364
  id: string;
@@ -372,33 +371,6 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
372
371
  minLength?: number | undefined;
373
372
  maxLength?: number | undefined;
374
373
  variableName?: string | undefined;
375
- } | {
376
- id: string;
377
- controlType: "longText";
378
- title?: string | undefined;
379
- description?: string | undefined;
380
- icon?: string | undefined;
381
- required?: boolean | undefined;
382
- placeholder?: string | undefined;
383
- minLength?: number | undefined;
384
- maxLength?: number | undefined;
385
- variableName?: string | undefined;
386
- } | {
387
- id: string;
388
- controlType: "button";
389
- title?: string | undefined;
390
- description?: string | undefined;
391
- required?: boolean | undefined;
392
- label?: string | undefined;
393
- link?: string | undefined;
394
- showIconButton?: boolean | undefined;
395
- buttonIcon?: string | undefined;
396
- alignButton?: "start" | "center" | "end" | undefined;
397
- buttons?: any[] | undefined;
398
- orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
399
- width?: number | undefined;
400
- enableTooltip?: boolean | undefined;
401
- fullWidthMobile?: boolean | undefined;
402
374
  } | {
403
375
  id: string;
404
376
  controlType: "date";
@@ -412,72 +384,74 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
412
384
  maxDate?: string | undefined;
413
385
  } | {
414
386
  id: string;
415
- controlType: "start";
387
+ controlType: "number";
416
388
  title?: string | undefined;
417
389
  description?: string | undefined;
418
390
  icon?: string | undefined;
419
391
  required?: boolean | undefined;
420
- label?: string | undefined;
421
- showIconButton?: boolean | undefined;
422
- buttonIcon?: string | undefined;
423
- showButton?: boolean | undefined;
392
+ placeholder?: string | undefined;
393
+ variableName?: string | undefined;
394
+ min?: number | undefined;
395
+ max?: number | undefined;
424
396
  } | {
425
397
  id: string;
426
- controlType: "confirm";
398
+ options: {
399
+ id: string;
400
+ label: string;
401
+ }[];
402
+ controlType: "multipleChoice";
427
403
  title?: string | undefined;
428
404
  description?: string | undefined;
405
+ icon?: string | undefined;
429
406
  required?: boolean | undefined;
430
- label?: string | undefined;
431
- link?: string | undefined;
432
- buttonIcon?: string | undefined;
433
- showButton?: boolean | undefined;
407
+ variableName?: string | undefined;
408
+ minOptions?: number | undefined;
409
+ maxOptions?: number | undefined;
410
+ showInput?: boolean | undefined;
411
+ otherOption?: boolean | undefined;
434
412
  } | {
435
413
  id: string;
436
- controlType: "number";
414
+ controlType: "slider";
437
415
  title?: string | undefined;
438
416
  description?: string | undefined;
439
417
  icon?: string | undefined;
440
418
  required?: boolean | undefined;
441
- placeholder?: string | undefined;
442
419
  variableName?: string | undefined;
443
420
  min?: number | undefined;
444
421
  max?: number | undefined;
445
422
  } | {
423
+ id: string;
446
424
  options: {
447
425
  id: string;
448
426
  label: string;
449
427
  }[];
450
- id: string;
451
- controlType: "choice";
428
+ controlType: "dropdown";
452
429
  title?: string | undefined;
453
430
  description?: string | undefined;
431
+ icon?: string | undefined;
454
432
  required?: boolean | undefined;
433
+ placeholder?: string | undefined;
455
434
  variableName?: string | undefined;
456
- showInput?: boolean | undefined;
457
- otherOption?: boolean | undefined;
458
435
  } | {
436
+ id: string;
459
437
  options: {
460
438
  id: string;
461
439
  label: string;
462
440
  }[];
463
- id: string;
464
- controlType: "multipleChoice";
441
+ controlType: "choice";
465
442
  title?: string | undefined;
466
443
  description?: string | undefined;
467
- icon?: string | undefined;
468
444
  required?: boolean | undefined;
469
445
  variableName?: string | undefined;
470
446
  showInput?: boolean | undefined;
471
447
  otherOption?: boolean | undefined;
472
- minOptions?: number | undefined;
473
- maxOptions?: number | undefined;
474
448
  } | {
449
+ id: string;
475
450
  options: {
476
451
  id: string;
477
452
  label: string;
478
453
  image?: string | undefined;
479
454
  }[];
480
- id: string;
481
455
  controlType: "pictureChoice";
482
456
  title?: string | undefined;
483
457
  description?: string | undefined;
@@ -486,21 +460,21 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
486
460
  variableName?: string | undefined;
487
461
  showInput?: boolean | undefined;
488
462
  } | {
489
- options: {
490
- id: string;
491
- label: string;
492
- }[];
493
463
  id: string;
494
- controlType: "dropdown";
464
+ controlType: "upload";
495
465
  title?: string | undefined;
496
466
  description?: string | undefined;
497
467
  icon?: string | undefined;
498
468
  required?: boolean | undefined;
499
- placeholder?: string | undefined;
500
469
  variableName?: string | undefined;
470
+ multiple?: boolean | undefined;
471
+ maxFiles?: number | undefined;
472
+ minFiles?: number | undefined;
473
+ accept?: string[] | undefined;
474
+ maxSize?: number | undefined;
501
475
  } | {
502
476
  id: string;
503
- controlType: "email";
477
+ controlType: "location";
504
478
  title?: string | undefined;
505
479
  description?: string | undefined;
506
480
  icon?: string | undefined;
@@ -509,7 +483,7 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
509
483
  variableName?: string | undefined;
510
484
  } | {
511
485
  id: string;
512
- controlType: "location";
486
+ controlType: "phone";
513
487
  title?: string | undefined;
514
488
  description?: string | undefined;
515
489
  icon?: string | undefined;
@@ -518,7 +492,7 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
518
492
  variableName?: string | undefined;
519
493
  } | {
520
494
  id: string;
521
- controlType: "phone";
495
+ controlType: "email";
522
496
  title?: string | undefined;
523
497
  description?: string | undefined;
524
498
  icon?: string | undefined;
@@ -527,37 +501,62 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
527
501
  variableName?: string | undefined;
528
502
  } | {
529
503
  id: string;
530
- controlType: "slider";
504
+ controlType: "yesNo";
531
505
  title?: string | undefined;
532
506
  description?: string | undefined;
533
507
  icon?: string | undefined;
534
508
  required?: boolean | undefined;
535
509
  variableName?: string | undefined;
536
- min?: number | undefined;
537
- max?: number | undefined;
510
+ yesLabel?: string | undefined;
511
+ noLabel?: string | undefined;
538
512
  } | {
539
513
  id: string;
540
- controlType: "upload";
514
+ controlType: "longText";
541
515
  title?: string | undefined;
542
516
  description?: string | undefined;
543
517
  icon?: string | undefined;
544
518
  required?: boolean | undefined;
519
+ placeholder?: string | undefined;
520
+ minLength?: number | undefined;
521
+ maxLength?: number | undefined;
545
522
  variableName?: string | undefined;
546
- multiple?: boolean | undefined;
547
- maxFiles?: number | undefined;
548
- minFiles?: number | undefined;
549
- accept?: string[] | undefined;
550
- maxSize?: number | undefined;
551
523
  } | {
552
524
  id: string;
553
- controlType: "yesNo";
525
+ controlType: "start";
554
526
  title?: string | undefined;
555
527
  description?: string | undefined;
556
528
  icon?: string | undefined;
557
529
  required?: boolean | undefined;
558
- variableName?: string | undefined;
559
- yesLabel?: string | undefined;
560
- noLabel?: string | undefined;
530
+ label?: string | undefined;
531
+ showButton?: boolean | undefined;
532
+ buttonIcon?: string | undefined;
533
+ showIconButton?: boolean | undefined;
534
+ } | {
535
+ id: string;
536
+ controlType: "confirm";
537
+ title?: string | undefined;
538
+ description?: string | undefined;
539
+ required?: boolean | undefined;
540
+ label?: string | undefined;
541
+ showButton?: boolean | undefined;
542
+ buttonIcon?: string | undefined;
543
+ link?: string | undefined;
544
+ } | {
545
+ id: string;
546
+ controlType: "button";
547
+ title?: string | undefined;
548
+ description?: string | undefined;
549
+ required?: boolean | undefined;
550
+ label?: string | undefined;
551
+ buttonIcon?: string | undefined;
552
+ showIconButton?: boolean | undefined;
553
+ link?: string | undefined;
554
+ alignButton?: "start" | "center" | "end" | undefined;
555
+ buttons?: any[] | undefined;
556
+ orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
557
+ width?: number | undefined;
558
+ enableTooltip?: boolean | undefined;
559
+ fullWidthMobile?: boolean | undefined;
561
560
  } | {
562
561
  id: string;
563
562
  controlType: "rating";
@@ -567,14 +566,15 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
567
566
  variableName?: string | undefined;
568
567
  count?: number | undefined;
569
568
  })[];
569
+ trigger: string;
570
570
  isStart?: boolean | undefined;
571
571
  isEnd?: boolean | undefined;
572
572
  autoSubmit?: boolean | undefined;
573
573
  confirmLabel?: string | undefined;
574
574
  media?: {
575
+ image?: string | undefined;
575
576
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
576
577
  brightness?: number | undefined;
577
- image?: string | undefined;
578
578
  video?: string | undefined;
579
579
  videoThumb?: string | undefined;
580
580
  color?: string | undefined;
@@ -582,22 +582,12 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
582
582
  blur?: number | undefined;
583
583
  } | undefined;
584
584
  conditions?: {
585
+ trigger: string;
585
586
  controlId: string;
586
587
  operator: string;
587
- trigger: string;
588
588
  compareValue?: string | undefined;
589
589
  }[] | undefined;
590
590
  theme?: {
591
- background?: {
592
- brightness?: number | undefined;
593
- image?: string | undefined;
594
- color?: string | undefined;
595
- blur?: number | undefined;
596
- opacity?: number | undefined;
597
- fit?: string | undefined;
598
- blendMode?: string | undefined;
599
- } | undefined;
600
- size?: "sm" | "md" | "lg" | undefined;
601
591
  title?: {
602
592
  color?: string | undefined;
603
593
  fontSize?: number | undefined;
@@ -610,6 +600,16 @@ export declare const createFormStoreApi: (store: UseBoundStore<StoreApi<FormStor
610
600
  fontWeight?: number | undefined;
611
601
  fontFamily?: string | undefined;
612
602
  } | undefined;
603
+ background?: {
604
+ image?: string | undefined;
605
+ brightness?: number | undefined;
606
+ color?: string | undefined;
607
+ blur?: number | undefined;
608
+ opacity?: number | undefined;
609
+ fit?: string | undefined;
610
+ blendMode?: string | undefined;
611
+ } | undefined;
612
+ size?: "sm" | "md" | "lg" | undefined;
613
613
  align?: "start" | "center" | "end" | undefined;
614
614
  listStyle?: string | undefined;
615
615
  borderRadius?: "sm" | "md" | "lg" | undefined;