@layers-app/shared 0.4.0 → 0.4.2

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 (156) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  3. package/dist/components/AppContainer/AppContainer.d.ts +6 -1
  4. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  11. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
  12. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
  13. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
  16. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  17. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +96 -64
  18. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  19. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +76 -67
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
  23. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
  26. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +7 -0
  27. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
  28. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +17 -0
  29. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
  30. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
  32. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +34 -22
  33. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  34. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
  35. package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
  36. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  37. package/dist/components/ColorPicker/ColorPicker.js +109 -83
  38. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  39. package/dist/components/ColorPicker/ColorPickerList.js +62 -63
  40. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  41. package/dist/components/ColorPicker/ColorPickerToolbar.js +128 -120
  42. package/dist/components/ColorPicker/icons.js +3 -3
  43. package/dist/components/ColorPicker/types.d.ts +3 -1
  44. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  45. package/dist/components/ColorPicker/types.js +11 -5
  46. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  47. package/dist/components/CommentComposer/CommentEditorHotkeys.js +55 -45
  48. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  49. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  50. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  51. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  52. package/dist/components/EntityIcon.d.ts.map +1 -1
  53. package/dist/components/EntityIcon.js +43 -33
  54. package/dist/components/FilePicker/FilePicker.d.ts +3 -1
  55. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  56. package/dist/components/FilePicker/FilePicker.js +44 -42
  57. package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -1
  58. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  59. package/dist/components/FilePicker/FilePickerUpload.js +28 -28
  60. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  61. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  62. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  63. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  64. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  65. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
  66. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  67. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
  68. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  69. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  70. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  71. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  72. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  73. package/dist/components/FormViewer/types/form.d.ts +1 -1
  74. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  75. package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
  76. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  77. package/dist/components/FormViewer/types/schemes.js +1 -1
  78. package/dist/components/GroupAvatar/index.d.ts +3 -1
  79. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  80. package/dist/components/GroupAvatar/index.js +24 -21
  81. package/dist/components/LanguagePicker/LanguagePicker.d.ts +13 -3
  82. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  83. package/dist/components/LanguagePicker/LanguagePicker.js +65 -43
  84. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  85. package/dist/components/NavMenu/NavMenu.d.ts +3 -1
  86. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  87. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  88. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  89. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
  90. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  91. package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
  92. package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
  93. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  94. package/dist/components/NewColorPicker/components/Target.js +48 -43
  95. package/dist/components/Notification/Notification.js +3 -1
  96. package/dist/components/Notification/NotificationCard.d.ts +3 -1
  97. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  98. package/dist/components/Notification/NotificationCard.js +87 -86
  99. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +6 -1
  100. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -1
  101. package/dist/components/OnboardingTour/OnboardingTourFooter.js +39 -21
  102. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +4 -5
  103. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  104. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +83 -119
  105. package/dist/components/OnboardingTour/index.d.ts +1 -1
  106. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  107. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +4 -0
  108. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  109. package/dist/components/OnboardingTour/useOnboardingTour.js +65 -36
  110. package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
  111. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  112. package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
  113. package/dist/components/UserAvatar/index.d.ts +2 -1
  114. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  115. package/dist/components/UserAvatar/index.js +42 -32
  116. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  117. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  118. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
  119. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  120. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  121. package/dist/config/brand.d.ts +2 -0
  122. package/dist/config/brand.d.ts.map +1 -1
  123. package/dist/config/brand.js +28 -22
  124. package/dist/config/envConfig.d.ts +12 -0
  125. package/dist/config/envConfig.d.ts.map +1 -1
  126. package/dist/config/envConfig.js +21 -13
  127. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  128. package/dist/helpers/getFileIcons.js +63 -45
  129. package/dist/helpers/getFileType.d.ts +1 -1
  130. package/dist/helpers/getFileType.d.ts.map +1 -1
  131. package/dist/helpers/getFileType.js +29 -8
  132. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  133. package/dist/helpers/offlineSuppression.d.ts +3 -0
  134. package/dist/helpers/offlineSuppression.d.ts.map +1 -0
  135. package/dist/helpers/offlineSuppression.js +8 -0
  136. package/dist/helpers/platform.d.ts +1 -1
  137. package/dist/helpers/platform.d.ts.map +1 -1
  138. package/dist/helpers/platform.js +5 -4
  139. package/dist/helpers/showNotifications.d.ts.map +1 -1
  140. package/dist/helpers/showNotifications.js +30 -29
  141. package/dist/hooks/useOutsideClick.d.ts +1 -1
  142. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  143. package/dist/index.css +1 -1
  144. package/dist/index.d.ts +1 -0
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +462 -451
  147. package/dist/lang/locales/ui_en.json.js +1 -1
  148. package/dist/lang/locales/ui_es.json.js +1 -1
  149. package/dist/lang/locales/ui_ru.json.js +1 -1
  150. package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
  151. package/dist/store/featureProgress.d.ts +3 -6
  152. package/dist/store/featureProgress.d.ts.map +1 -1
  153. package/dist/store/featureProgress.js +56 -22
  154. package/dist/store/plansModal.d.ts.map +1 -1
  155. package/dist/store/plansModal.js +10 -10
  156. package/package.json +13 -13
@@ -37,11 +37,11 @@ export declare const getFirstStep: (steps: StepData[]) => {
37
37
  max?: number | undefined;
38
38
  } | {
39
39
  id: string;
40
+ controlType: "multipleChoice";
40
41
  options: {
41
- id: string;
42
42
  label: string;
43
+ id: string;
43
44
  }[];
44
- controlType: "multipleChoice";
45
45
  title?: string | undefined;
46
46
  description?: string | undefined;
47
47
  icon?: string | undefined;
@@ -58,16 +58,16 @@ export declare const getFirstStep: (steps: StepData[]) => {
58
58
  description?: string | undefined;
59
59
  icon?: string | undefined;
60
60
  required?: boolean | undefined;
61
- variableName?: string | undefined;
62
61
  min?: number | undefined;
63
62
  max?: number | undefined;
63
+ variableName?: string | undefined;
64
64
  } | {
65
65
  id: string;
66
+ controlType: "dropdown";
66
67
  options: {
67
- id: string;
68
68
  label: string;
69
+ id: string;
69
70
  }[];
70
- controlType: "dropdown";
71
71
  title?: string | undefined;
72
72
  description?: string | undefined;
73
73
  icon?: string | undefined;
@@ -76,25 +76,25 @@ export declare const getFirstStep: (steps: StepData[]) => {
76
76
  variableName?: string | undefined;
77
77
  } | {
78
78
  id: string;
79
+ controlType: "choice";
79
80
  options: {
80
- id: string;
81
81
  label: string;
82
+ id: string;
82
83
  }[];
83
- controlType: "choice";
84
84
  title?: string | undefined;
85
85
  description?: string | undefined;
86
86
  required?: boolean | undefined;
87
- variableName?: string | undefined;
88
87
  showInput?: boolean | undefined;
88
+ variableName?: string | undefined;
89
89
  otherOption?: boolean | undefined;
90
90
  } | {
91
91
  id: string;
92
+ controlType: "pictureChoice";
92
93
  options: {
93
- id: string;
94
94
  label: string;
95
+ id: string;
95
96
  image?: string | undefined;
96
97
  }[];
97
- controlType: "pictureChoice";
98
98
  title?: string | undefined;
99
99
  description?: string | undefined;
100
100
  icon?: string | undefined;
@@ -107,13 +107,13 @@ export declare const getFirstStep: (steps: StepData[]) => {
107
107
  title?: string | undefined;
108
108
  description?: string | undefined;
109
109
  icon?: string | undefined;
110
- required?: boolean | undefined;
111
- variableName?: string | undefined;
112
110
  multiple?: boolean | undefined;
113
111
  maxFiles?: number | undefined;
114
112
  minFiles?: number | undefined;
115
113
  accept?: string[] | undefined;
116
114
  maxSize?: number | undefined;
115
+ required?: boolean | undefined;
116
+ variableName?: string | undefined;
117
117
  } | {
118
118
  id: string;
119
119
  controlType: "location";
@@ -147,10 +147,10 @@ export declare const getFirstStep: (steps: StepData[]) => {
147
147
  title?: string | undefined;
148
148
  description?: string | undefined;
149
149
  icon?: string | undefined;
150
- required?: boolean | undefined;
151
- variableName?: string | undefined;
152
150
  yesLabel?: string | undefined;
153
151
  noLabel?: string | undefined;
152
+ required?: boolean | undefined;
153
+ variableName?: string | undefined;
154
154
  } | {
155
155
  id: string;
156
156
  controlType: "longText";
@@ -169,9 +169,9 @@ export declare const getFirstStep: (steps: StepData[]) => {
169
169
  description?: string | undefined;
170
170
  icon?: string | undefined;
171
171
  required?: boolean | undefined;
172
- label?: string | undefined;
173
172
  showButton?: boolean | undefined;
174
173
  buttonIcon?: string | undefined;
174
+ label?: string | undefined;
175
175
  showIconButton?: boolean | undefined;
176
176
  } | {
177
177
  id: string;
@@ -179,25 +179,25 @@ export declare const getFirstStep: (steps: StepData[]) => {
179
179
  title?: string | undefined;
180
180
  description?: string | undefined;
181
181
  required?: boolean | undefined;
182
- label?: string | undefined;
183
182
  showButton?: boolean | undefined;
184
183
  buttonIcon?: string | undefined;
185
184
  link?: string | undefined;
185
+ label?: string | undefined;
186
186
  } | {
187
187
  id: string;
188
188
  controlType: "button";
189
189
  title?: string | undefined;
190
190
  description?: string | undefined;
191
- required?: boolean | undefined;
192
191
  label?: string | undefined;
193
- buttonIcon?: string | undefined;
194
- showIconButton?: boolean | undefined;
195
192
  link?: string | undefined;
193
+ showIconButton?: boolean | undefined;
194
+ buttonIcon?: string | undefined;
196
195
  alignButton?: "start" | "center" | "end" | undefined;
197
196
  buttons?: any[] | undefined;
198
197
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
199
198
  width?: number | undefined;
200
199
  enableTooltip?: boolean | undefined;
200
+ required?: boolean | undefined;
201
201
  fullWidthMobile?: boolean | undefined;
202
202
  } | {
203
203
  id: string;
@@ -214,9 +214,9 @@ export declare const getFirstStep: (steps: StepData[]) => {
214
214
  autoSubmit?: boolean | undefined;
215
215
  confirmLabel?: string | undefined;
216
216
  media?: {
217
- image?: string | undefined;
218
217
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
219
218
  brightness?: number | undefined;
219
+ image?: string | undefined;
220
220
  video?: string | undefined;
221
221
  videoThumb?: string | undefined;
222
222
  color?: string | undefined;
@@ -224,52 +224,52 @@ export declare const getFirstStep: (steps: StepData[]) => {
224
224
  blur?: number | undefined;
225
225
  } | undefined;
226
226
  conditions?: {
227
- trigger: string;
228
227
  controlId: string;
229
228
  operator: string;
229
+ trigger: string;
230
230
  compareValue?: string | undefined;
231
231
  }[] | undefined;
232
232
  theme?: {
233
+ size?: "sm" | "md" | "lg" | undefined;
234
+ align?: "start" | "center" | "end" | undefined;
235
+ listStyle?: string | undefined;
236
+ borderRadius?: "sm" | "md" | "lg" | undefined;
237
+ primaryColor?: string | undefined;
233
238
  title?: {
234
- color?: string | undefined;
235
239
  fontSize?: number | undefined;
236
240
  fontWeight?: number | undefined;
237
241
  fontFamily?: string | undefined;
242
+ color?: string | undefined;
238
243
  } | undefined;
239
244
  description?: {
240
- color?: string | undefined;
241
245
  fontSize?: number | undefined;
242
246
  fontWeight?: number | undefined;
243
247
  fontFamily?: string | undefined;
244
- } | undefined;
245
- background?: {
246
- image?: string | undefined;
247
- brightness?: number | undefined;
248
248
  color?: string | undefined;
249
- blur?: number | undefined;
250
- opacity?: number | undefined;
251
- fit?: string | undefined;
252
- blendMode?: string | undefined;
253
249
  } | undefined;
254
- size?: "sm" | "md" | "lg" | undefined;
255
- align?: "start" | "center" | "end" | undefined;
256
- listStyle?: string | undefined;
257
- borderRadius?: "sm" | "md" | "lg" | undefined;
258
- primaryColor?: string | undefined;
259
250
  font?: {
260
- color?: string | undefined;
261
251
  fontSize?: number | undefined;
262
252
  fontWeight?: number | undefined;
263
253
  fontFamily?: string | undefined;
254
+ color?: string | undefined;
264
255
  } | undefined;
265
256
  container?: {
266
257
  color?: string | undefined;
267
- blur?: number | undefined;
268
258
  opacity?: number | undefined;
259
+ blur?: number | undefined;
269
260
  backgroundImage?: string | undefined;
270
261
  shadowSize?: number | undefined;
271
262
  shadowColor?: string | undefined;
272
263
  } | undefined;
264
+ background?: {
265
+ color?: string | undefined;
266
+ image?: string | undefined;
267
+ blur?: number | undefined;
268
+ brightness?: number | undefined;
269
+ opacity?: number | undefined;
270
+ fit?: string | undefined;
271
+ blendMode?: string | undefined;
272
+ } | undefined;
273
273
  input?: {
274
274
  backgroundColor?: string | undefined;
275
275
  borderColor?: string | undefined;
@@ -33,11 +33,11 @@ export declare const useActiveControl: () => {
33
33
  max?: number | undefined;
34
34
  } | {
35
35
  id: string;
36
+ controlType: "multipleChoice";
36
37
  options: {
37
- id: string;
38
38
  label: string;
39
+ id: string;
39
40
  }[];
40
- controlType: "multipleChoice";
41
41
  title?: string | undefined;
42
42
  description?: string | undefined;
43
43
  icon?: string | undefined;
@@ -54,16 +54,16 @@ export declare const useActiveControl: () => {
54
54
  description?: string | undefined;
55
55
  icon?: string | undefined;
56
56
  required?: boolean | undefined;
57
- variableName?: string | undefined;
58
57
  min?: number | undefined;
59
58
  max?: number | undefined;
59
+ variableName?: string | undefined;
60
60
  } | {
61
61
  id: string;
62
+ controlType: "dropdown";
62
63
  options: {
63
- id: string;
64
64
  label: string;
65
+ id: string;
65
66
  }[];
66
- controlType: "dropdown";
67
67
  title?: string | undefined;
68
68
  description?: string | undefined;
69
69
  icon?: string | undefined;
@@ -72,25 +72,25 @@ export declare const useActiveControl: () => {
72
72
  variableName?: string | undefined;
73
73
  } | {
74
74
  id: string;
75
+ controlType: "choice";
75
76
  options: {
76
- id: string;
77
77
  label: string;
78
+ id: string;
78
79
  }[];
79
- controlType: "choice";
80
80
  title?: string | undefined;
81
81
  description?: string | undefined;
82
82
  required?: boolean | undefined;
83
- variableName?: string | undefined;
84
83
  showInput?: boolean | undefined;
84
+ variableName?: string | undefined;
85
85
  otherOption?: boolean | undefined;
86
86
  } | {
87
87
  id: string;
88
+ controlType: "pictureChoice";
88
89
  options: {
89
- id: string;
90
90
  label: string;
91
+ id: string;
91
92
  image?: string | undefined;
92
93
  }[];
93
- controlType: "pictureChoice";
94
94
  title?: string | undefined;
95
95
  description?: string | undefined;
96
96
  icon?: string | undefined;
@@ -103,13 +103,13 @@ export declare const useActiveControl: () => {
103
103
  title?: string | undefined;
104
104
  description?: string | undefined;
105
105
  icon?: string | undefined;
106
- required?: boolean | undefined;
107
- variableName?: string | undefined;
108
106
  multiple?: boolean | undefined;
109
107
  maxFiles?: number | undefined;
110
108
  minFiles?: number | undefined;
111
109
  accept?: string[] | undefined;
112
110
  maxSize?: number | undefined;
111
+ required?: boolean | undefined;
112
+ variableName?: string | undefined;
113
113
  } | {
114
114
  id: string;
115
115
  controlType: "location";
@@ -143,10 +143,10 @@ export declare const useActiveControl: () => {
143
143
  title?: string | undefined;
144
144
  description?: string | undefined;
145
145
  icon?: string | undefined;
146
- required?: boolean | undefined;
147
- variableName?: string | undefined;
148
146
  yesLabel?: string | undefined;
149
147
  noLabel?: string | undefined;
148
+ required?: boolean | undefined;
149
+ variableName?: string | undefined;
150
150
  } | {
151
151
  id: string;
152
152
  controlType: "longText";
@@ -165,9 +165,9 @@ export declare const useActiveControl: () => {
165
165
  description?: string | undefined;
166
166
  icon?: string | undefined;
167
167
  required?: boolean | undefined;
168
- label?: string | undefined;
169
168
  showButton?: boolean | undefined;
170
169
  buttonIcon?: string | undefined;
170
+ label?: string | undefined;
171
171
  showIconButton?: boolean | undefined;
172
172
  } | {
173
173
  id: string;
@@ -175,25 +175,25 @@ export declare const useActiveControl: () => {
175
175
  title?: string | undefined;
176
176
  description?: string | undefined;
177
177
  required?: boolean | undefined;
178
- label?: string | undefined;
179
178
  showButton?: boolean | undefined;
180
179
  buttonIcon?: string | undefined;
181
180
  link?: string | undefined;
181
+ label?: string | undefined;
182
182
  } | {
183
183
  id: string;
184
184
  controlType: "button";
185
185
  title?: string | undefined;
186
186
  description?: string | undefined;
187
- required?: boolean | undefined;
188
187
  label?: string | undefined;
189
- buttonIcon?: string | undefined;
190
- showIconButton?: boolean | undefined;
191
188
  link?: string | undefined;
189
+ showIconButton?: boolean | undefined;
190
+ buttonIcon?: string | undefined;
192
191
  alignButton?: "start" | "center" | "end" | undefined;
193
192
  buttons?: any[] | undefined;
194
193
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
195
194
  width?: number | undefined;
196
195
  enableTooltip?: boolean | undefined;
196
+ required?: boolean | undefined;
197
197
  fullWidthMobile?: boolean | undefined;
198
198
  } | {
199
199
  id: string;
@@ -35,11 +35,11 @@ export declare const useActiveStep: () => {
35
35
  max?: number | undefined;
36
36
  } | {
37
37
  id: string;
38
+ controlType: "multipleChoice";
38
39
  options: {
39
- id: string;
40
40
  label: string;
41
+ id: string;
41
42
  }[];
42
- controlType: "multipleChoice";
43
43
  title?: string | undefined;
44
44
  description?: string | undefined;
45
45
  icon?: string | undefined;
@@ -56,16 +56,16 @@ export declare const useActiveStep: () => {
56
56
  description?: string | undefined;
57
57
  icon?: string | undefined;
58
58
  required?: boolean | undefined;
59
- variableName?: string | undefined;
60
59
  min?: number | undefined;
61
60
  max?: number | undefined;
61
+ variableName?: string | undefined;
62
62
  } | {
63
63
  id: string;
64
+ controlType: "dropdown";
64
65
  options: {
65
- id: string;
66
66
  label: string;
67
+ id: string;
67
68
  }[];
68
- controlType: "dropdown";
69
69
  title?: string | undefined;
70
70
  description?: string | undefined;
71
71
  icon?: string | undefined;
@@ -74,25 +74,25 @@ export declare const useActiveStep: () => {
74
74
  variableName?: string | undefined;
75
75
  } | {
76
76
  id: string;
77
+ controlType: "choice";
77
78
  options: {
78
- id: string;
79
79
  label: string;
80
+ id: string;
80
81
  }[];
81
- controlType: "choice";
82
82
  title?: string | undefined;
83
83
  description?: string | undefined;
84
84
  required?: boolean | undefined;
85
- variableName?: string | undefined;
86
85
  showInput?: boolean | undefined;
86
+ variableName?: string | undefined;
87
87
  otherOption?: boolean | undefined;
88
88
  } | {
89
89
  id: string;
90
+ controlType: "pictureChoice";
90
91
  options: {
91
- id: string;
92
92
  label: string;
93
+ id: string;
93
94
  image?: string | undefined;
94
95
  }[];
95
- controlType: "pictureChoice";
96
96
  title?: string | undefined;
97
97
  description?: string | undefined;
98
98
  icon?: string | undefined;
@@ -105,13 +105,13 @@ export declare const useActiveStep: () => {
105
105
  title?: string | undefined;
106
106
  description?: string | undefined;
107
107
  icon?: string | undefined;
108
- required?: boolean | undefined;
109
- variableName?: string | undefined;
110
108
  multiple?: boolean | undefined;
111
109
  maxFiles?: number | undefined;
112
110
  minFiles?: number | undefined;
113
111
  accept?: string[] | undefined;
114
112
  maxSize?: number | undefined;
113
+ required?: boolean | undefined;
114
+ variableName?: string | undefined;
115
115
  } | {
116
116
  id: string;
117
117
  controlType: "location";
@@ -145,10 +145,10 @@ export declare const useActiveStep: () => {
145
145
  title?: string | undefined;
146
146
  description?: string | undefined;
147
147
  icon?: string | undefined;
148
- required?: boolean | undefined;
149
- variableName?: string | undefined;
150
148
  yesLabel?: string | undefined;
151
149
  noLabel?: string | undefined;
150
+ required?: boolean | undefined;
151
+ variableName?: string | undefined;
152
152
  } | {
153
153
  id: string;
154
154
  controlType: "longText";
@@ -167,9 +167,9 @@ export declare const useActiveStep: () => {
167
167
  description?: string | undefined;
168
168
  icon?: string | undefined;
169
169
  required?: boolean | undefined;
170
- label?: string | undefined;
171
170
  showButton?: boolean | undefined;
172
171
  buttonIcon?: string | undefined;
172
+ label?: string | undefined;
173
173
  showIconButton?: boolean | undefined;
174
174
  } | {
175
175
  id: string;
@@ -177,25 +177,25 @@ export declare const useActiveStep: () => {
177
177
  title?: string | undefined;
178
178
  description?: string | undefined;
179
179
  required?: boolean | undefined;
180
- label?: string | undefined;
181
180
  showButton?: boolean | undefined;
182
181
  buttonIcon?: string | undefined;
183
182
  link?: string | undefined;
183
+ label?: string | undefined;
184
184
  } | {
185
185
  id: string;
186
186
  controlType: "button";
187
187
  title?: string | undefined;
188
188
  description?: string | undefined;
189
- required?: boolean | undefined;
190
189
  label?: string | undefined;
191
- buttonIcon?: string | undefined;
192
- showIconButton?: boolean | undefined;
193
190
  link?: string | undefined;
191
+ showIconButton?: boolean | undefined;
192
+ buttonIcon?: string | undefined;
194
193
  alignButton?: "start" | "center" | "end" | undefined;
195
194
  buttons?: any[] | undefined;
196
195
  orientation?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
197
196
  width?: number | undefined;
198
197
  enableTooltip?: boolean | undefined;
198
+ required?: boolean | undefined;
199
199
  fullWidthMobile?: boolean | undefined;
200
200
  } | {
201
201
  id: string;
@@ -212,9 +212,9 @@ export declare const useActiveStep: () => {
212
212
  autoSubmit?: boolean | undefined;
213
213
  confirmLabel?: string | undefined;
214
214
  media?: {
215
- image?: string | undefined;
216
215
  layout?: "content" | "left" | "right" | "top" | "bottom" | "fullLeft" | "fullRight" | "fullTop" | "fullBottom" | "background" | undefined;
217
216
  brightness?: number | undefined;
217
+ image?: string | undefined;
218
218
  video?: string | undefined;
219
219
  videoThumb?: string | undefined;
220
220
  color?: string | undefined;
@@ -222,52 +222,52 @@ export declare const useActiveStep: () => {
222
222
  blur?: number | undefined;
223
223
  } | undefined;
224
224
  conditions?: {
225
- trigger: string;
226
225
  controlId: string;
227
226
  operator: string;
227
+ trigger: string;
228
228
  compareValue?: string | undefined;
229
229
  }[] | undefined;
230
230
  theme?: {
231
+ size?: "sm" | "md" | "lg" | undefined;
232
+ align?: "start" | "center" | "end" | undefined;
233
+ listStyle?: string | undefined;
234
+ borderRadius?: "sm" | "md" | "lg" | undefined;
235
+ primaryColor?: string | undefined;
231
236
  title?: {
232
- color?: string | undefined;
233
237
  fontSize?: number | undefined;
234
238
  fontWeight?: number | undefined;
235
239
  fontFamily?: string | undefined;
240
+ color?: string | undefined;
236
241
  } | undefined;
237
242
  description?: {
238
- color?: string | undefined;
239
243
  fontSize?: number | undefined;
240
244
  fontWeight?: number | undefined;
241
245
  fontFamily?: string | undefined;
242
- } | undefined;
243
- background?: {
244
- image?: string | undefined;
245
- brightness?: number | undefined;
246
246
  color?: string | undefined;
247
- blur?: number | undefined;
248
- opacity?: number | undefined;
249
- fit?: string | undefined;
250
- blendMode?: string | undefined;
251
247
  } | undefined;
252
- size?: "sm" | "md" | "lg" | undefined;
253
- align?: "start" | "center" | "end" | undefined;
254
- listStyle?: string | undefined;
255
- borderRadius?: "sm" | "md" | "lg" | undefined;
256
- primaryColor?: string | undefined;
257
248
  font?: {
258
- color?: string | undefined;
259
249
  fontSize?: number | undefined;
260
250
  fontWeight?: number | undefined;
261
251
  fontFamily?: string | undefined;
252
+ color?: string | undefined;
262
253
  } | undefined;
263
254
  container?: {
264
255
  color?: string | undefined;
265
- blur?: number | undefined;
266
256
  opacity?: number | undefined;
257
+ blur?: number | undefined;
267
258
  backgroundImage?: string | undefined;
268
259
  shadowSize?: number | undefined;
269
260
  shadowColor?: string | undefined;
270
261
  } | undefined;
262
+ background?: {
263
+ color?: string | undefined;
264
+ image?: string | undefined;
265
+ blur?: number | undefined;
266
+ brightness?: number | undefined;
267
+ opacity?: number | undefined;
268
+ fit?: string | undefined;
269
+ blendMode?: string | undefined;
270
+ } | undefined;
271
271
  input?: {
272
272
  backgroundColor?: string | undefined;
273
273
  borderColor?: string | undefined;
@@ -106,6 +106,12 @@ export declare const useFormGlobalTheme: ({ innerId }: {
106
106
  xs?: string | undefined;
107
107
  xl?: string | undefined;
108
108
  } | undefined;
109
+ fontWeights?: {
110
+ [x: string & {}]: string | undefined;
111
+ bold?: string | undefined;
112
+ medium?: string | undefined;
113
+ regular?: string | undefined;
114
+ } | undefined;
109
115
  breakpoints?: {
110
116
  [x: string & {}]: string | undefined;
111
117
  sm?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useFormGlobalTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useFormGlobalTheme.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,kBAAkB,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIlE,CAAC"}
1
+ {"version":3,"file":"useFormGlobalTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useFormGlobalTheme.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,kBAAkB,GAAI,aAAa;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIlE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { useMemo as r } from "react";
2
2
  import { generateColors as a } from "@mantine/colors-generator";
3
- import { createTheme as d, DEFAULT_THEME as u, Flex as l, ActionIcon as m, ThemeIcon as f, Card as c, InputError as p, Progress as x, Select as z, NumberInput as b, Textarea as P, TextInput as h, Button as R, Text as T, Title as g } from "@mantine/core";
3
+ import { createTheme as u, DEFAULT_THEME as d, Flex as l, ActionIcon as m, ThemeIcon as f, Card as c, InputError as p, Progress as x, Select as z, NumberInput as b, Textarea as P, TextInput as h, Button as R, Text as T, Title as g } from "@mantine/core";
4
4
  import { DateInput as y } from "@mantine/dates";
5
5
  import { scopeCustomCss as F } from "../helpers/cssScoping.js";
6
6
  import { useFormViewerStore as I } from "../store/formStore.js";
@@ -8,8 +8,8 @@ import { themeReselect as S } from "../store/selectors.js";
8
8
  const B = ({ innerId: t }) => {
9
9
  const { useStore: s } = I(), e = s(S), i = r(() => {
10
10
  const n = a(e?.primaryColor || ""), o = "custom";
11
- return d({
12
- ...u,
11
+ return u({
12
+ ...d,
13
13
  fontFamily: `"${e.font?.fontFamily || "Roboto"}", sans-serif`,
14
14
  // fontWeight: theme.font?.fontWeight,
15
15
  headings: {
@@ -17,6 +17,7 @@ const B = ({ innerId: t }) => {
17
17
  fontFamily: `"${e.font?.fontFamily || "Roboto"}", sans-serif`
18
18
  },
19
19
  primaryColor: "custom",
20
+ autoContrast: !0,
20
21
  colors: {
21
22
  custom: n
22
23
  },
@@ -1,5 +1,5 @@
1
1
  export declare const useFormMobile: () => {
2
- ref: import("react").RefObject<any>;
2
+ ref: (node: HTMLElement | null) => void;
3
3
  isMobile: boolean;
4
4
  };
5
5
  //# sourceMappingURL=useFormMobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormMobile.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useFormMobile.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;;;CAazB,CAAC"}
1
+ {"version":3,"file":"useFormMobile.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useFormMobile.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,QAAO;IAAE,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAa5F,CAAC"}