@micromag/fields 0.3.832 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.d.ts ADDED
@@ -0,0 +1,932 @@
1
+ import { FieldsManager, Badge as Badge$1, ImageMedia, Answer, AudioMedia, BoxStyle, FormField, CallToAction as CallToAction$1, ActiveForm, TextElement as TextElement$2, SelectOption, ClosedCaptionsMedia, Conversation as Conversation$1, CustomAnswer as CustomAnswer$1, FormErrors, Message, Label as Label$1, ObjectFitSize as ObjectFitSize$1, FontMedia, Font, GeoPosition as GeoPosition$1, GridLayout as GridLayout$1, InputElement, Media, MediaType, Errors, FormControlSize, VideoMedia } from '@micromag/core';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import React from 'react';
4
+
5
+ declare const manager: FieldsManager;
6
+
7
+ interface AdFormatFieldProps {
8
+ types?: string[];
9
+ value?: string | null;
10
+ className?: string | null;
11
+ onChange?: ((...args: unknown[]) => void) | null;
12
+ }
13
+ declare function AdFormatField({ types, value, className, onChange, }: AdFormatFieldProps): react_jsx_runtime.JSX.Element;
14
+
15
+ interface AlignHorizontalProps {
16
+ value?: 'left' | 'middle' | 'right' | null;
17
+ className?: string | null;
18
+ onChange?: ((...args: unknown[]) => void) | null;
19
+ }
20
+ declare function AlignHorizontal({ value, className, onChange, }: AlignHorizontalProps): react_jsx_runtime.JSX.Element;
21
+
22
+ interface AlignVerticalProps {
23
+ value?: 'top' | 'bottom' | 'middle' | null;
24
+ defaultValue?: 'top' | 'bottom' | 'middle' | null;
25
+ className?: string | null;
26
+ onChange?: ((...args: unknown[]) => void) | null;
27
+ }
28
+ declare function AlignVertical({ value, defaultValue, className, onChange, }: AlignVerticalProps): react_jsx_runtime.JSX.Element;
29
+
30
+ interface AlignmentProps {
31
+ alignment?: {
32
+ horizontal?: 'left' | 'right' | 'middle';
33
+ vertical?: 'top' | 'bottom' | 'middle';
34
+ };
35
+ value?: {
36
+ horizontal?: 'left' | 'right' | 'middle';
37
+ vertical?: 'top' | 'bottom' | 'middle';
38
+ } | null;
39
+ className?: string | null;
40
+ onChange?: ((...args: unknown[]) => void) | null;
41
+ }
42
+ declare function Alignment({ alignment, value, className, onChange, }: AlignmentProps): react_jsx_runtime.JSX.Element;
43
+
44
+ interface AlternativeProps {
45
+ value?: Badge$1 | null;
46
+ className?: string | null;
47
+ onChange?: ((...args: unknown[]) => void) | null;
48
+ }
49
+ declare function Alternative({ value, className, onChange, fields, toggleLabel, ...props }: AlternativeProps): react_jsx_runtime.JSX.Element;
50
+
51
+ interface AnswerFieldProps {
52
+ value?: {
53
+ text?: string;
54
+ image?: ImageMedia;
55
+ } | null;
56
+ isForm?: boolean;
57
+ className?: string | null;
58
+ }
59
+ declare function AnswerField({ value, isForm, className, ...props }: AnswerFieldProps): react_jsx_runtime.JSX.Element;
60
+
61
+ interface AnswersFieldProps {
62
+ value?: Answer[] | null;
63
+ }
64
+ declare function AnswersField({ value: value, ...props }: AnswersFieldProps): react_jsx_runtime.JSX.Element;
65
+
66
+ interface AudioFieldProps {
67
+ value?: AudioMedia | null;
68
+ }
69
+ declare function AudioField({ value: value, ...props }: AudioFieldProps): react_jsx_runtime.JSX.Element;
70
+ declare namespace AudioField {
71
+ var withForm: boolean;
72
+ }
73
+
74
+ interface AutocompleteFieldProps {
75
+ items?: {
76
+ label?: string;
77
+ value?: number | string;
78
+ }[];
79
+ value?: string | null;
80
+ searchOptions?: {
81
+ isCaseSensitive?: boolean;
82
+ includeScore?: boolean;
83
+ includeMatches?: boolean;
84
+ minMatchCharLength?: number;
85
+ shouldSort?: boolean;
86
+ threshold?: number;
87
+ distance?: number;
88
+ };
89
+ maxResults?: number;
90
+ showEmpty?: boolean;
91
+ placeholder?: string | null;
92
+ className?: string | null;
93
+ onChange?: ((...args: unknown[]) => void) | null;
94
+ children?: React.ReactNode | null;
95
+ }
96
+ declare function AutocompleteField({ items, value, searchOptions, maxResults, showEmpty, placeholder, className, onChange, children, }: AutocompleteFieldProps): react_jsx_runtime.JSX.Element;
97
+
98
+ interface BadgeProps {
99
+ value?: Badge$1 | null;
100
+ className?: string | null;
101
+ onChange?: ((...args: unknown[]) => void) | null;
102
+ }
103
+ declare function Badge({ value, className, onChange, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
104
+
105
+ interface BorderRadiusProps {
106
+ value?: string | null;
107
+ sizes?: number[];
108
+ className?: string | null;
109
+ onChange?: ((...args: unknown[]) => void) | null;
110
+ }
111
+ declare function BorderRadius({ value, sizes, className, onChange, }: BorderRadiusProps): react_jsx_runtime.JSX.Element;
112
+
113
+ interface BorderStyleProps {
114
+ types?: string[];
115
+ value?: string | null;
116
+ className?: string | null;
117
+ onChange?: ((...args: unknown[]) => void) | null;
118
+ }
119
+ declare function BorderStyle({ types, value, className, onChange, }: BorderStyleProps): react_jsx_runtime.JSX.Element;
120
+
121
+ interface BorderWidthProps {
122
+ value?: string | null;
123
+ sizes?: number[];
124
+ className?: string | null;
125
+ onChange?: ((...args: unknown[]) => void) | null;
126
+ }
127
+ declare function BorderWidth({ value, sizes, className, onChange, }: BorderWidthProps): react_jsx_runtime.JSX.Element;
128
+
129
+ interface BoxStyleFormProps {
130
+ value?: BoxStyle | null;
131
+ fields?: FormField[] | null;
132
+ isForm?: boolean | null;
133
+ isHorizontal?: boolean;
134
+ withAlignment?: boolean;
135
+ className?: string;
136
+ onChange?: ((...args: unknown[]) => void) | null;
137
+ closeForm?: ((...args: unknown[]) => void) | null;
138
+ }
139
+ declare function BoxStyleForm({ value, fields, onChange, closeForm, withAlignment, isForm, ...props }: BoxStyleFormProps): react_jsx_runtime.JSX.Element;
140
+ declare namespace BoxStyleForm {
141
+ var withForm: boolean;
142
+ }
143
+
144
+ interface ButtonLayoutProps {
145
+ types?: string[];
146
+ value?: string | null;
147
+ defaultValue?: string | null;
148
+ className?: string | null;
149
+ onChange?: ((...args: unknown[]) => void) | null;
150
+ }
151
+ declare function ButtonLayout({ types, value, defaultValue, className, onChange, }: ButtonLayoutProps): react_jsx_runtime.JSX.Element;
152
+
153
+ interface CallToActionProps {
154
+ value?: CallToAction$1 | null;
155
+ className?: string | null;
156
+ onChange?: ((...args: unknown[]) => void) | null;
157
+ }
158
+ declare function CallToAction({ value, className, onChange, ...props }: CallToActionProps): react_jsx_runtime.JSX.Element;
159
+
160
+ interface CallToActionFormProps {
161
+ value?: ActiveForm | null;
162
+ className?: string | null;
163
+ onChange?: ((...args: unknown[]) => void) | null;
164
+ }
165
+ declare function CallToActionForm({ value, isForm, className, onChange, ...props }: CallToActionFormProps): react_jsx_runtime.JSX.Element;
166
+
167
+ interface ToggleSectionProps {
168
+ value?: Record<string, unknown> | null;
169
+ toggleField?: string | null;
170
+ className?: string | null;
171
+ onChange?: ((...args: unknown[]) => void) | null;
172
+ }
173
+ declare function ToggleSection({ value, toggleField, className, onChange, ...props }: ToggleSectionProps): react_jsx_runtime.JSX.Element;
174
+
175
+ interface DateFieldProps {
176
+ name?: string | null;
177
+ value?: number | null;
178
+ withTime?: boolean;
179
+ placeholder?: string | null;
180
+ className?: string | null;
181
+ onChange?: ((...args: unknown[]) => void) | null;
182
+ }
183
+ declare function DateField({ name, value, placeholder, className, withTime, onChange, }: DateFieldProps): react_jsx_runtime.JSX.Element;
184
+
185
+ interface DateElementProps {
186
+ name?: string | null;
187
+ value?: TextElement$2 | null;
188
+ withTime?: boolean;
189
+ placeholder?: string | null;
190
+ onChange?: ((...args: unknown[]) => void) | null;
191
+ }
192
+ declare function DateElement({ name, value, withTime, onChange, placeholder, }: DateElementProps): react_jsx_runtime.JSX.Element;
193
+
194
+ interface ShareIncentiveProps {
195
+ value?: CallToAction$1 | null;
196
+ className?: string | null;
197
+ onChange?: ((...args: unknown[]) => void) | null;
198
+ }
199
+ declare function ShareIncentive({ value, className, onChange, ...props }: ShareIncentiveProps): react_jsx_runtime.JSX.Element;
200
+
201
+ interface ShareIncentiveFormProps {
202
+ value?: ActiveForm | null;
203
+ className?: string | null;
204
+ onChange?: ((...args: unknown[]) => void) | null;
205
+ }
206
+ declare function ShareIncentiveForm({ value, isForm, className, onChange, ...props }: ShareIncentiveFormProps): react_jsx_runtime.JSX.Element;
207
+
208
+ interface CardLayoutProps {
209
+ types?: string[];
210
+ value?: string | null;
211
+ className?: string | null;
212
+ onChange?: ((...args: unknown[]) => void) | null;
213
+ }
214
+ declare function CardLayout({ types, value, className, onChange, }: CardLayoutProps): react_jsx_runtime.JSX.Element;
215
+
216
+ interface CheckboxesProps {
217
+ name?: string | null;
218
+ value?: string[] | null;
219
+ singleChoice?: boolean;
220
+ options?: SelectOption[];
221
+ className?: string | null;
222
+ buttonClassName?: string | null;
223
+ onChange?: ((...args: unknown[]) => void) | null;
224
+ }
225
+ declare function Checkboxes({ name, value, singleChoice, options, className, buttonClassName, onChange, }: CheckboxesProps): react_jsx_runtime.JSX.Element;
226
+
227
+ interface ClosedCaptionFieldProps {
228
+ value?: ClosedCaptionsMedia | null;
229
+ }
230
+ declare function ClosedCaptionField({ value: value, ...props }: ClosedCaptionFieldProps): react_jsx_runtime.JSX.Element;
231
+ declare namespace ClosedCaptionField {
232
+ var withForm: boolean;
233
+ }
234
+
235
+ interface ColorFieldProps {
236
+ value?: {
237
+ color?: string;
238
+ alpha?: number;
239
+ } | null;
240
+ isForm?: boolean;
241
+ isHorizontal?: boolean;
242
+ canClear?: boolean;
243
+ disableAlpha?: boolean;
244
+ className?: string;
245
+ onChange?: ((...args: unknown[]) => void) | null;
246
+ closeForm?: ((...args: unknown[]) => void) | null;
247
+ }
248
+ declare function ColorField({ value, onChange, closeForm, disableAlpha, canClear, ...props }: ColorFieldProps): react_jsx_runtime.JSX.Element;
249
+ declare namespace ColorField {
250
+ var withForm: boolean;
251
+ }
252
+
253
+ interface ColorPickerFieldProps {
254
+ value?: {
255
+ color?: string;
256
+ alpha?: number;
257
+ } | null;
258
+ disableAlpha?: boolean;
259
+ className?: string | null;
260
+ onChange?: ((...args: unknown[]) => void) | null;
261
+ }
262
+ declare function ColorPickerField({ value, disableAlpha, className, onChange, }: ColorPickerFieldProps): react_jsx_runtime.JSX.Element;
263
+
264
+ declare function ContainerStyleField(props: any): react_jsx_runtime.JSX.Element;
265
+
266
+ interface ConversationProps {
267
+ value?: Conversation$1 | null;
268
+ fields?: FormField[] | null;
269
+ name: string;
270
+ className?: string | null;
271
+ onChange?: ((...args: unknown[]) => void) | null;
272
+ }
273
+ declare function Conversation({ value, fields, name, className, onChange, ...props }: ConversationProps): react_jsx_runtime.JSX.Element;
274
+
275
+ interface CustomAnswerProps {
276
+ value?: CustomAnswer$1 | null;
277
+ className?: string | null;
278
+ onChange?: ((...args: unknown[]) => void) | null;
279
+ }
280
+ declare function CustomAnswer({ value, className, onChange, ...props }: CustomAnswerProps): react_jsx_runtime.JSX.Element;
281
+
282
+ interface ElementFieldProps {
283
+ name?: string | null;
284
+ fields?: FormField[];
285
+ value?: Record<string, unknown> | null;
286
+ isList?: boolean;
287
+ gotoFieldForm?: ((...args: unknown[]) => void) | null;
288
+ closeFieldForm?: ((...args: unknown[]) => void) | null;
289
+ onChange?: ((...args: unknown[]) => void) | null;
290
+ }
291
+ declare function ElementField({ name, fields: formFields, value, gotoFieldForm, closeFieldForm, isList, onChange, }: ElementFieldProps): react_jsx_runtime.JSX.Element;
292
+
293
+ declare function ElementList(props: any): react_jsx_runtime.JSX.Element;
294
+
295
+ interface FieldsProps {
296
+ name?: string | null;
297
+ fields?: FormField[];
298
+ excludedFields?: string[] | null;
299
+ value?: Record<string, unknown> | null;
300
+ errors?: FormErrors | null;
301
+ withBorders?: boolean;
302
+ gotoFieldForm?: ((...args: unknown[]) => void) | null;
303
+ closeFieldForm?: ((...args: unknown[]) => void) | null;
304
+ nullEmptyObject?: boolean;
305
+ isHorizontal?: boolean | null;
306
+ isList?: boolean;
307
+ isFlushList?: boolean;
308
+ canClear?: boolean;
309
+ onChange?: ((...args: unknown[]) => void) | null;
310
+ className?: string | null;
311
+ fieldClassName?: string | null;
312
+ labelClassName?: string | null;
313
+ components?: Record<string, Component> | null;
314
+ fieldsProps?: Record<string, unknown> | null;
315
+ fieldProps?: Record<string, unknown> | null;
316
+ }
317
+ declare function Fields({ name: namespace, fields, excludedFields, value, errors, withBorders, gotoFieldForm, closeFieldForm, nullEmptyObject, isHorizontal: globalIsHorizontal, isList, isFlushList, canClear, onChange, className, fieldClassName, labelClassName, components, fieldsProps, fieldProps, }: FieldsProps): react_jsx_runtime.JSX.Element;
318
+
319
+ interface FieldWithFormProps {
320
+ value?: unknown | null;
321
+ isForm?: boolean;
322
+ canClear?: boolean;
323
+ label?: React.ReactNode | Message | null;
324
+ thumbnail?: React.ReactNode | null;
325
+ labelPath?: string;
326
+ withTitleLabel?: boolean;
327
+ thumbnailPath?: string;
328
+ noValueLabel?: Label$1 | null;
329
+ isHorizontal?: boolean;
330
+ children?: React.ReactNode | null;
331
+ field?: FormField | null;
332
+ className?: string | null;
333
+ onChange?: ((...args: unknown[]) => void) | null;
334
+ closeForm?: ((...args: unknown[]) => void) | null;
335
+ }
336
+ declare function FieldWithForm({ value, isForm, canClear, noValueLabel, label, labelPath, withTitleLabel, thumbnail, thumbnailPath, isHorizontal, className, onChange, closeForm, children, field, ...props }: FieldWithFormProps): any;
337
+ declare namespace FieldWithForm {
338
+ var withForm: boolean;
339
+ }
340
+
341
+ interface ObjectFitSizeProps {
342
+ values?: ObjectFitSize$1[];
343
+ value?: ObjectFitSize$1 | null;
344
+ className?: string | null;
345
+ onChange?: ((...args: unknown[]) => void) | null;
346
+ }
347
+ declare function ObjectFitSize({ values, value, className, onChange, }: ObjectFitSizeProps): react_jsx_runtime.JSX.Element;
348
+
349
+ interface FontFieldProps {
350
+ value?: FontMedia | null;
351
+ }
352
+ declare function FontField({ value: value, ...props }: FontFieldProps): react_jsx_runtime.JSX.Element;
353
+ declare namespace FontField {
354
+ var withForm: boolean;
355
+ }
356
+
357
+ interface FontFamilyProps {
358
+ value?: Font | null;
359
+ isForm?: boolean;
360
+ isHorizontal?: boolean;
361
+ canClear?: boolean;
362
+ maxFontsVisible?: number;
363
+ className?: string;
364
+ onChange?: ((...args: unknown[]) => void) | null;
365
+ closeForm?: ((...args: unknown[]) => void) | null;
366
+ }
367
+ declare function FontFamily({ value, onChange, closeForm, maxFontsVisible, isForm, canClear, ...props }: FontFamilyProps): react_jsx_runtime.JSX.Element;
368
+ declare namespace FontFamily {
369
+ var withForm: boolean;
370
+ }
371
+
372
+ interface FontsFieldProps {
373
+ value?: ImageMedia[] | null;
374
+ }
375
+ declare function FontsField({ value: value, ...props }: FontsFieldProps): react_jsx_runtime.JSX.Element;
376
+
377
+ interface FontSizeProps {
378
+ sizes?: number[];
379
+ }
380
+ declare function FontSize({ sizes, ...props }: FontSizeProps): react_jsx_runtime.JSX.Element;
381
+ declare namespace FontSize {
382
+ var isHorizontal: boolean;
383
+ }
384
+
385
+ interface FontStylesProps$1 {
386
+ value?: Record<string, unknown> | null;
387
+ options?: {
388
+ value?: string;
389
+ label?: React.ReactNode;
390
+ }[];
391
+ onChange?: ((...args: unknown[]) => void) | null;
392
+ }
393
+ declare function FontStyles$1({ value, options, onChange, ...props }: FontStylesProps$1): react_jsx_runtime.JSX.Element;
394
+
395
+ interface FontStyleTransformProps {
396
+ value?: Record<string, unknown> | null;
397
+ transformName?: string;
398
+ onChange?: ((...args: unknown[]) => void) | null;
399
+ }
400
+ declare function FontStyleTransform({ value, transformName, onChange, ...props }: FontStyleTransformProps): react_jsx_runtime.JSX.Element;
401
+ declare namespace FontStyleTransform {
402
+ var isHorizontal: boolean;
403
+ }
404
+
405
+ interface FontStylesProps {
406
+ value?: Record<string, unknown> | null;
407
+ fontStyleName?: string;
408
+ alignName?: string;
409
+ className?: string | null;
410
+ onChange?: ((...args: unknown[]) => void) | null;
411
+ }
412
+ declare function FontStyles({ value, fontStyleName, alignName, className, onChange, }: FontStylesProps): react_jsx_runtime.JSX.Element;
413
+
414
+ interface FontWeightProps {
415
+ value?: string | null;
416
+ sizes?: number[];
417
+ className?: string | null;
418
+ onChange?: ((...args: unknown[]) => void) | null;
419
+ }
420
+ declare function FontWeight({ value, sizes, className, onChange, }: FontWeightProps): react_jsx_runtime.JSX.Element;
421
+
422
+ interface GeoPositionProps {
423
+ value?: GeoPosition$1 | null;
424
+ defaultCenter?: GeoPosition$1;
425
+ defaultZoom?: number;
426
+ className?: string | null;
427
+ onChange?: ((...args: unknown[]) => void) | null;
428
+ }
429
+ declare function GeoPosition({ value, defaultCenter, defaultZoom, className, onChange, }: GeoPositionProps): react_jsx_runtime.JSX.Element;
430
+
431
+ interface GridLayoutProps {
432
+ grids?: GridLayout$1[];
433
+ value?: {
434
+ rows?: number;
435
+ columns?: number[];
436
+ }[] | null;
437
+ className?: string | null;
438
+ onChange?: ((...args: unknown[]) => void) | null;
439
+ }
440
+ declare function GridLayout({ grids, value, className, onChange, }: GridLayoutProps): react_jsx_runtime.JSX.Element;
441
+
442
+ interface ImageFieldProps {
443
+ value?: ImageMedia | null;
444
+ }
445
+ declare function ImageField({ value: value, ...props }: ImageFieldProps): react_jsx_runtime.JSX.Element;
446
+ declare namespace ImageField {
447
+ var withForm: boolean;
448
+ }
449
+
450
+ interface ImagesFieldProps {
451
+ value?: ImageMedia[] | null;
452
+ }
453
+ declare function ImagesField({ value: value, ...props }: ImagesFieldProps): react_jsx_runtime.JSX.Element;
454
+
455
+ declare function ImageStyleField(props: any): react_jsx_runtime.JSX.Element;
456
+
457
+ interface ImagesWithCaptionFieldProps {
458
+ value?: ImageMedia[] | null;
459
+ }
460
+ declare function ImagesWithCaptionField({ value: value, ...props }: ImagesWithCaptionFieldProps): react_jsx_runtime.JSX.Element;
461
+
462
+ interface TextElementProps$1 {
463
+ value?: InputElement | null;
464
+ multiline?: boolean;
465
+ onChange?: ((...args: unknown[]) => void) | null;
466
+ }
467
+ declare function TextElement$1({ value, onChange, multiline, ...props }: TextElementProps$1): react_jsx_runtime.JSX.Element;
468
+
469
+ interface InputGroupProps {
470
+ prepend?: React.ReactNode | null;
471
+ children?: React.ReactNode | null;
472
+ append?: React.ReactNode | null;
473
+ size?: null | 'sm' | 'lg';
474
+ className?: string | null;
475
+ }
476
+ declare function InputGroup({ prepend, children, append, size, className, }: InputGroupProps): react_jsx_runtime.JSX.Element;
477
+
478
+ interface ItemsFieldProps {
479
+ name?: string | null;
480
+ value?: Record<string, unknown>[] | null;
481
+ getDefaultValue?: ((...args: unknown[]) => void) | null;
482
+ noItemLabel?: Label$1;
483
+ addItemLabel?: Label$1;
484
+ itemFieldLabel?: (...args: unknown[]) => void | Label;
485
+ itemComponent?: unknown | null;
486
+ itemsField?: FormField | null;
487
+ itemsProps?: Record<string, unknown> | null;
488
+ className?: string | null;
489
+ withoutSort?: boolean;
490
+ withoutAddItem?: boolean;
491
+ withoutDeleteItem?: boolean;
492
+ isFieldForm?: boolean;
493
+ gotoFieldForm?: ((...args: unknown[]) => void) | null;
494
+ closeFieldForm?: ((...args: unknown[]) => void) | null;
495
+ onChange?: ((...args: unknown[]) => void) | null;
496
+ }
497
+ declare function ItemsField({ name, value, getDefaultValue, noItemLabel, addItemLabel, itemFieldLabel, itemComponent, itemsField, itemsProps, className, withoutSort, withoutAddItem, withoutDeleteItem, onChange, isFieldForm, gotoFieldForm, closeFieldForm, ...props }: ItemsFieldProps): react_jsx_runtime.JSX.Element;
498
+
499
+ interface KeypadLayoutProps {
500
+ value?: {
501
+ color?: string;
502
+ alpha?: number;
503
+ } | null;
504
+ className?: string;
505
+ onChange?: ((...args: unknown[]) => void) | null;
506
+ closeForm?: ((...args: unknown[]) => void) | null;
507
+ }
508
+ declare function KeypadLayout({ value, onChange, closeForm, ...props }: KeypadLayoutProps): react_jsx_runtime.JSX.Element;
509
+
510
+ interface KeypadLayoutFormProps {
511
+ value?: {
512
+ color?: string;
513
+ alpha?: number;
514
+ } | null;
515
+ isForm?: boolean | null;
516
+ isHorizontal?: boolean;
517
+ className?: string;
518
+ onChange?: ((...args: unknown[]) => void) | null;
519
+ closeForm?: ((...args: unknown[]) => void) | null;
520
+ }
521
+ declare function KeypadLayoutForm({ value, isForm, onChange, closeForm, ...props }: KeypadLayoutFormProps): react_jsx_runtime.JSX.Element;
522
+
523
+ declare function MapField(props: any): react_jsx_runtime.JSX.Element;
524
+
525
+ interface MarginFieldProps {
526
+ value?: number | null;
527
+ unit?: string;
528
+ direction?: 'top' | 'bottom';
529
+ min?: number;
530
+ max?: number;
531
+ marksStep?: number;
532
+ className?: string | null;
533
+ onChange?: ((...args: unknown[]) => void) | null;
534
+ }
535
+ declare function MarginField({ value, unit, direction, min, max, marksStep, className, onChange, }: MarginFieldProps): react_jsx_runtime.JSX.Element;
536
+ declare namespace MarginField {
537
+ var isHorizontal: boolean;
538
+ }
539
+
540
+ interface MarkerFieldProps {
541
+ value?: {
542
+ text?: string;
543
+ } | null;
544
+ isForm?: boolean;
545
+ className?: string | null;
546
+ }
547
+ declare function MarkerField({ isForm, value, className, ...props }: MarkerFieldProps): react_jsx_runtime.JSX.Element;
548
+
549
+ declare function MarkersField(props: any): react_jsx_runtime.JSX.Element;
550
+
551
+ interface MediaFieldProps {
552
+ onChange?: ((...args: unknown[]) => void) | null;
553
+ closeForm?: ((...args: unknown[]) => void) | null;
554
+ }
555
+ declare function MediaField({ closeForm, onChange, ...props }: MediaFieldProps): react_jsx_runtime.JSX.Element;
556
+ declare namespace MediaField {
557
+ var withForm: boolean;
558
+ }
559
+
560
+ interface MediaModalProps {
561
+ title?: string | null;
562
+ value?: Media | null;
563
+ type?: string | null;
564
+ noValueLabel?: Label$1;
565
+ isHorizontal?: boolean;
566
+ onChange?: ((...args: unknown[]) => void) | null;
567
+ onRequestClose?: ((...args: unknown[]) => void) | null;
568
+ multiple?: boolean;
569
+ thumbnail?: React.ReactNode | null;
570
+ thumbnailPath?: string;
571
+ className?: string | null;
572
+ buttonsClassName?: string | null;
573
+ }
574
+ declare function MediaModal({ title, value, type, noValueLabel, isHorizontal, isForm, onChange, onRequestClose, multiple, thumbnail, thumbnailPath, className, buttonsClassName, ...props }: MediaModalProps): react_jsx_runtime.JSX.Element;
575
+ declare namespace MediaModal {
576
+ var withModal: boolean;
577
+ }
578
+
579
+ interface MediaThumbnailProps {
580
+ value?: unknown | null;
581
+ isForm?: boolean;
582
+ onChange?: ((...args: unknown[]) => void) | null;
583
+ className?: string | null;
584
+ }
585
+ declare function MediaThumbnail({ value, onChange, className, isForm, ...props }: MediaThumbnailProps): react_jsx_runtime.JSX.Element;
586
+
587
+ interface MessageFieldProps {
588
+ type?: MediaType | MediaType[] | null;
589
+ value?: Media | null;
590
+ fields?: FormField[] | null;
591
+ noValueLabel?: Label$1;
592
+ withoutThumbnail?: boolean;
593
+ onChange?: ((...args: unknown[]) => void) | null;
594
+ closeForm?: ((...args: unknown[]) => void) | null;
595
+ }
596
+ declare function MessageField({ type, value, fields, noValueLabel, withoutThumbnail, onChange, closeForm, ...props }: MessageFieldProps): react_jsx_runtime.JSX.Element;
597
+ declare namespace MessageField {
598
+ var withForm: boolean;
599
+ }
600
+
601
+ interface NumberFieldProps {
602
+ name?: string | null;
603
+ value?: number | null;
604
+ min?: number | null;
605
+ max?: number | null;
606
+ step?: number;
607
+ floatStep?: number;
608
+ float?: boolean;
609
+ dataList?: number[] | null;
610
+ autoComplete?: boolean;
611
+ fullWidth?: boolean;
612
+ placeholder?: string | null;
613
+ className?: string | null;
614
+ onChange?: ((...args: unknown[]) => void) | null;
615
+ }
616
+ declare function NumberField({ name, value, min, max, step, floatStep, float, dataList, autoComplete, fullWidth, placeholder, className, onChange, }: NumberFieldProps): react_jsx_runtime.JSX.Element;
617
+
618
+ interface NumberWithIconProps {
619
+ icon?: React.ReactNode | unknown | null;
620
+ iconRotation?: number;
621
+ isHorizontal?: boolean;
622
+ className?: string | null;
623
+ }
624
+ declare function NumberWithIcon({ icon, iconRotation, isHorizontal, className, ...props }: NumberWithIconProps): react_jsx_runtime.JSX.Element;
625
+ declare namespace NumberWithIcon {
626
+ var isHorizontal: boolean;
627
+ }
628
+
629
+ interface PaddingFieldProps {
630
+ value?: string | {
631
+ top?: string;
632
+ left?: string;
633
+ bottom?: string;
634
+ right?: string;
635
+ } | null;
636
+ isForm?: boolean;
637
+ isHorizontal?: boolean;
638
+ className?: string;
639
+ onChange?: ((...args: unknown[]) => void) | null;
640
+ closeForm?: ((...args: unknown[]) => void) | null;
641
+ }
642
+ declare function PaddingField({ value, isForm, onChange, closeForm, ...props }: PaddingFieldProps): react_jsx_runtime.JSX.Element;
643
+ declare namespace PaddingField {
644
+ var withForm: boolean;
645
+ }
646
+
647
+ declare function Position({ name, value, axisOptions: vertical, crossOptions: horizontal, className, buttonClassName, onChange, }: {
648
+ name?: any;
649
+ value?: any;
650
+ axisOptions?: string[];
651
+ crossOptions?: string[];
652
+ className?: any;
653
+ buttonClassName?: any;
654
+ onChange?: any;
655
+ }): react_jsx_runtime.JSX.Element;
656
+
657
+ declare function QuestionField(props: any): react_jsx_runtime.JSX.Element;
658
+
659
+ interface RadiosProps {
660
+ name?: string | null;
661
+ value?: string | null;
662
+ options?: SelectOption[];
663
+ withBackground?: boolean;
664
+ className?: string | null;
665
+ buttonClassName?: string | null;
666
+ activeClassName?: string | null;
667
+ onChange?: ((...args: unknown[]) => void) | null;
668
+ uncheckable?: boolean;
669
+ }
670
+ declare function Radios({ name, value, options, withBackground, className, buttonClassName, activeClassName, onChange, uncheckable, }: RadiosProps): react_jsx_runtime.JSX.Element;
671
+
672
+ interface ScreenLayoutFieldProps {
673
+ value?: string | null;
674
+ screenState?: string | null;
675
+ className?: string | null;
676
+ onChange?: ((...args: unknown[]) => void) | null;
677
+ }
678
+ declare function ScreenLayoutField({ value, screenState, className, onChange, ...props }: ScreenLayoutFieldProps): react_jsx_runtime.JSX.Element;
679
+
680
+ interface SelectFieldProps {
681
+ value?: string | null;
682
+ options?: SelectOption[];
683
+ disabled?: boolean;
684
+ className?: string | null;
685
+ onChange?: ((...args: unknown[]) => void) | null;
686
+ }
687
+ declare function SelectField({ value, options, disabled, className, onChange, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
688
+
689
+ interface SelectAdvancedFieldProps {
690
+ name?: string | null;
691
+ value?: string | null;
692
+ options?: SelectOption[];
693
+ withoutReset?: boolean;
694
+ disabled?: boolean;
695
+ className?: string | null;
696
+ onChange?: ((...args: unknown[]) => void) | null;
697
+ }
698
+ declare function SelectAdvancedField({ name, value, options, withoutReset, disabled, className, onChange, ...props }: SelectAdvancedFieldProps): react_jsx_runtime.JSX.Element;
699
+
700
+ interface ShadowAngleProps {
701
+ types?: string[];
702
+ value?: string | null;
703
+ className?: string | null;
704
+ onChange?: ((...args: unknown[]) => void) | null;
705
+ }
706
+ declare function ShadowAngle({ types, value, className, onChange, }: ShadowAngleProps): react_jsx_runtime.JSX.Element;
707
+
708
+ interface SlideFieldProps {
709
+ value?: {
710
+ text?: string;
711
+ image?: ImageMedia;
712
+ } | null;
713
+ isForm?: boolean;
714
+ className?: string | null;
715
+ }
716
+ declare function SlideField({ value, isForm, className, ...props }: SlideFieldProps): react_jsx_runtime.JSX.Element;
717
+
718
+ interface SliderFieldProps {
719
+ value?: string | null;
720
+ min?: number;
721
+ max?: number;
722
+ marks?: Record<string, Record<string, unknown>>;
723
+ marksStep?: number | null;
724
+ marksCount?: number | null;
725
+ marksStyle?: Record<string, unknown>;
726
+ unit?: string | null;
727
+ withInput?: boolean;
728
+ className?: string | null;
729
+ onChange?: ((...args: unknown[]) => void) | null;
730
+ }
731
+ declare function SliderField({ value, min, max, marks, marksStep, marksCount, marksStyle, unit, withInput, className, onChange, }: SliderFieldProps): react_jsx_runtime.JSX.Element;
732
+
733
+ interface SliderPixelFieldProps$1 {
734
+ unit?: string;
735
+ withInput?: boolean;
736
+ }
737
+ declare function SliderPixelField$1({ unit: unit, withInput: withInput, ...props }: SliderPixelFieldProps$1): react_jsx_runtime.JSX.Element;
738
+
739
+ interface SliderPixelFieldProps {
740
+ unit?: string;
741
+ withInput?: boolean;
742
+ }
743
+ declare function SliderPixelField({ unit: unit, withInput: withInput, ...props }: SliderPixelFieldProps): react_jsx_runtime.JSX.Element;
744
+
745
+ interface SliderPointFieldProps {
746
+ unit?: string;
747
+ withInput?: boolean;
748
+ }
749
+ declare function SliderPointField({ unit: unit, withInput: withInput, ...props }: SliderPointFieldProps): react_jsx_runtime.JSX.Element;
750
+
751
+ declare function SlidesField(props: any): react_jsx_runtime.JSX.Element;
752
+
753
+ interface SpacingProps {
754
+ value?: number | null;
755
+ className?: string | null;
756
+ onChange?: ((...args: unknown[]) => void) | null;
757
+ }
758
+ declare function Spacing({ value, className, onChange, ...props }: SpacingProps): react_jsx_runtime.JSX.Element;
759
+
760
+ interface StaticFieldProps {
761
+ value?: string | number | unknown[] | null;
762
+ name?: string | null;
763
+ className?: string | null;
764
+ }
765
+ declare function StaticField({ value, name, className }: StaticFieldProps): react_jsx_runtime.JSX.Element;
766
+
767
+ interface TargetFieldProps {
768
+ options?: string[];
769
+ isForm?: boolean;
770
+ value?: string | null;
771
+ className?: string | null;
772
+ onChange?: ((...args: unknown[]) => void) | null;
773
+ }
774
+ declare function TargetField({ options, value, isForm, className, onChange, }: TargetFieldProps): react_jsx_runtime.JSX.Element;
775
+ declare namespace TargetField {
776
+ var withForm: boolean;
777
+ }
778
+
779
+ declare const _default: any;
780
+
781
+ interface TextareaFieldProps {
782
+ id?: string | null;
783
+ value?: string | number | null;
784
+ errors?: Errors | null;
785
+ required?: boolean;
786
+ className?: string | null;
787
+ onChange?: ((...args: unknown[]) => void) | null;
788
+ }
789
+ declare function TextareaField({ id, value, errors, required, className, onChange, }: TextareaFieldProps): react_jsx_runtime.JSX.Element;
790
+
791
+ interface TextEditorFieldProps {
792
+ value?: string | null;
793
+ size?: FormControlSize | null;
794
+ className?: string | null;
795
+ onChange?: ((...args: unknown[]) => void) | null;
796
+ inline?: boolean;
797
+ withHighlightColors?: boolean;
798
+ withFullEditor?: boolean;
799
+ withoutLink?: boolean;
800
+ textStyle?: Record<string, unknown> | null;
801
+ editorConfig?: Record<string, unknown>;
802
+ onFocus?: ((...args: unknown[]) => void) | null;
803
+ disabled?: boolean;
804
+ }
805
+ declare function TextEditorField({ value, size, className, textStyle, editorConfig, inline, withHighlightColors, withFullEditor, withoutLink, onChange, onFocus, disabled, }: TextEditorFieldProps): react_jsx_runtime.JSX.Element;
806
+
807
+ interface TextElementProps {
808
+ value?: TextElement$2 | null;
809
+ inline?: boolean;
810
+ textOnly?: boolean;
811
+ onChange?: ((...args: unknown[]) => void) | null;
812
+ onFocus?: ((...args: unknown[]) => void) | null;
813
+ disabled?: boolean;
814
+ }
815
+ declare function TextElement({ value, onChange, inline, textOnly, onFocus, disabled, ...props }: TextElementProps): react_jsx_runtime.JSX.Element;
816
+
817
+ interface TextModalProps {
818
+ title?: string | null;
819
+ value?: {
820
+ body?: string;
821
+ } | null;
822
+ editorConfig?: Record<string, unknown> | null;
823
+ inline?: boolean;
824
+ withHighlightColors?: boolean;
825
+ onChange?: ((...args: unknown[]) => void) | null;
826
+ onRequestClose?: ((...args: unknown[]) => void) | null;
827
+ className?: string | null;
828
+ }
829
+ declare function TextModal({ title, value, editorConfig, inline, withHighlightColors, className, onRequestClose, onChange, ...props }: TextModalProps): react_jsx_runtime.JSX.Element;
830
+
831
+ interface TextTransformProps {
832
+ value?: Record<string, unknown> | null;
833
+ options?: Record<string, unknown>[];
834
+ onChange?: ((...args: unknown[]) => void) | null;
835
+ }
836
+ declare function TextTransform({ value, options, onChange, ...props }: TextTransformProps): react_jsx_runtime.JSX.Element;
837
+ declare namespace TextTransform {
838
+ var isHorizontal: boolean;
839
+ }
840
+
841
+ interface TextStyleFormProps {
842
+ value?: {
843
+ color?: string;
844
+ alpha?: number;
845
+ } | null;
846
+ fields?: {
847
+ id?: string;
848
+ }[];
849
+ isForm?: boolean;
850
+ isHorizontal?: boolean;
851
+ sections?: string[] | null;
852
+ className?: string;
853
+ onChange?: ((...args: unknown[]) => void) | null;
854
+ closeForm?: ((...args: unknown[]) => void) | null;
855
+ }
856
+ declare function TextStyleForm({ value, fields, sections, onChange, closeForm, isForm, ...props }: TextStyleFormProps): react_jsx_runtime.JSX.Element;
857
+ declare namespace TextStyleForm {
858
+ var withForm: boolean;
859
+ }
860
+
861
+ interface ToggleFieldProps {
862
+ value?: boolean | null;
863
+ defaultValue?: boolean | null;
864
+ className?: string | null;
865
+ onChange?: ((...args: unknown[]) => void) | null;
866
+ }
867
+ declare function ToggleField({ value, defaultValue, className, onChange, }: ToggleFieldProps): react_jsx_runtime.JSX.Element;
868
+ declare namespace ToggleField {
869
+ var isHorizontal: boolean;
870
+ }
871
+
872
+ interface TokensProps {
873
+ value?: unknown[] | null;
874
+ onChange?: ((...args: unknown[]) => void) | null;
875
+ options?: (Record<string, unknown> | string)[];
876
+ loadOptions?: ((...args: unknown[]) => void) | null;
877
+ getOptionLabel?: (...args: unknown[]) => void;
878
+ getOptionValue?: (...args: unknown[]) => void;
879
+ getNewOptionData?: (...args: unknown[]) => void;
880
+ className?: string | null;
881
+ }
882
+ declare function Tokens({ value, options, loadOptions, getOptionLabel, getOptionValue, getNewOptionData, onChange, className, }: TokensProps): react_jsx_runtime.JSX.Element;
883
+
884
+ interface TrueFalseProps {
885
+ value?: Record<string, unknown> | null;
886
+ options?: {
887
+ value?: string;
888
+ label?: React.ReactNode;
889
+ }[];
890
+ onChange?: ((...args: unknown[]) => void) | null;
891
+ }
892
+ declare function TrueFalse({ value, options, onChange, ...props }: TrueFalseProps): react_jsx_runtime.JSX.Element;
893
+
894
+ interface UrlFieldProps {
895
+ value?: string | null;
896
+ schemes?: string[];
897
+ className?: string | null;
898
+ onChange?: ((...args: unknown[]) => void) | null;
899
+ }
900
+ declare function UrlField({ schemes, value, className, onChange, }: UrlFieldProps): react_jsx_runtime.JSX.Element;
901
+
902
+ interface VideoFieldProps {
903
+ value?: VideoMedia | null;
904
+ }
905
+ declare function VideoField({ value: value, ...props }: VideoFieldProps): react_jsx_runtime.JSX.Element;
906
+ declare namespace VideoField {
907
+ var withForm: boolean;
908
+ }
909
+
910
+ interface VisualFieldProps {
911
+ value?: VideoMedia | null;
912
+ }
913
+ declare function VisualField({ value: value, ...props }: VisualFieldProps): react_jsx_runtime.JSX.Element;
914
+ declare namespace VisualField {
915
+ var withForm: boolean;
916
+ }
917
+
918
+ interface VisualsFieldProps {
919
+ value?: ImageMedia[] | null;
920
+ }
921
+ declare function VisualsField({ value: value, ...props }: VisualsFieldProps): react_jsx_runtime.JSX.Element;
922
+
923
+ interface VisualsWithCaptionFieldProps {
924
+ value?: ImageMedia[] | null;
925
+ }
926
+ declare function VisualsWithCaptionField({ value: value, ...props }: VisualsWithCaptionFieldProps): react_jsx_runtime.JSX.Element;
927
+
928
+ declare function FieldsProvider({ children }: {
929
+ children: any;
930
+ }): react_jsx_runtime.JSX.Element;
931
+
932
+ export { AdFormatField as AdFormat, AlignHorizontal, AlignVertical, Alignment, Alternative, AnswerField as Answer, AnswersField as Answers, AudioField as Audio, AutocompleteField as Autocomplete, Badge, BorderRadius, BorderStyle, BorderWidth, BoxStyleForm, ButtonLayout, CallToAction, CallToActionForm, CardLayout, Checkboxes, ClosedCaptionField as ClosedCaptions, ColorField as Color, ColorPickerField as ColorPicker, ContainerStyleField as ContainerStyle, Conversation, CustomAnswer, DateField as Date, DateElement, ElementField as Element, ElementList, FieldWithForm, Fields, FieldsProvider, ObjectFitSize as Fit, FontField as Font, FontFamily, FontSize, FontStyles$1 as FontStyle, FontStyleTransform, FontStyles as FontStyleWithAlign, FontWeight, FontsField as Fonts, GeoPosition, GridLayout, ImageField as Image, ImageStyleField as ImageStyle, ImagesField as Images, ImagesWithCaptionField as ImagesWithCaption, TextElement$1 as InputElement, InputGroup, ItemsField as Items, KeypadLayout, KeypadLayoutForm, MapField as Map, MarginField as Margin, MarkerField as Marker, MarkersField as Markers, MediaField as Media, MediaModal, MediaThumbnail, MessageField as Message, NumberField as Number, NumberWithIcon, PaddingField as Padding, Position, QuestionField as Question, Radios, ScreenLayoutField as ScreenLayout, SelectField as Select, SelectAdvancedField as SelectAdvanced, ShadowAngle, ShareIncentive, ShareIncentiveForm, SlideField as Slide, SliderField as Slider, SliderPixelField$1 as SliderPercentage, SliderPixelField as SliderPixel, SliderPointField as SliderPoint, SlidesField as Slides, Spacing, StaticField, TargetField as Target, _default as Text, TextEditorField as TextEditor, TextElement, TextModal, TextStyleForm, TextTransform, TextareaField as Textarea, ToggleField as Toggle, ToggleSection, Tokens, TrueFalse, UrlField as Url, VideoField as Video, VisualField as Visual, VisualsField as Visuals, VisualsWithCaptionField as VisualsWithCaption, manager as default, manager };