@elementor/editor-controls 4.0.0-683 → 4.0.0-beta5
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/dist/index.d.mts +138 -74
- package/dist/index.d.ts +138 -74
- package/dist/index.js +822 -203
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +799 -185
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/inline-editor.tsx +16 -57
- package/src/controls/email-form-action-control.tsx +5 -5
- package/src/controls/size-control/hooks/use-size-unit-keyboard.tsx +12 -1
- package/src/controls/size-control/hooks/use-size-value.ts +12 -16
- package/src/controls/size-control/size-component.tsx +38 -17
- package/src/controls/size-control/size-field.tsx +37 -13
- package/src/controls/size-control/sync/get-units.ts +15 -1
- package/src/controls/size-control/types.ts +8 -0
- package/src/controls/size-control/unstable-size-control.tsx +86 -0
- package/src/controls/size-control/utils/has-size-value.ts +5 -0
- package/src/controls/size-control/utils/resolve-bound-prop-value.ts +72 -0
- package/src/controls/size-control/utils/resolve-size-value.ts +4 -3
- package/src/controls/size-control/utils/settings/get-default-unit.ts +7 -0
- package/src/controls/size-control/utils/settings/get-prop-type-settings.ts +12 -0
- package/src/controls/size-control/utils/settings/get-size-units.ts +23 -0
- package/src/controls/size-control/utils/should-nullify-value.ts +15 -0
- package/src/controls/svg-media-control.tsx +5 -4
- package/src/controls/transition-control/data.ts +3 -3
- package/src/controls/transition-control/transition-repeater-control.tsx +8 -2
- package/src/index.ts +2 -0
- package/src/controls/size-control/utils/is-numeric-value.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -28,25 +28,25 @@ declare const TextControl: ControlComponent$1<({ placeholder, error, inputValue,
|
|
|
28
28
|
ariaLabel?: string;
|
|
29
29
|
}) => React$1.JSX.Element>;
|
|
30
30
|
|
|
31
|
-
type Props$
|
|
31
|
+
type Props$b = {
|
|
32
32
|
placeholder?: string;
|
|
33
33
|
ariaLabel?: string;
|
|
34
34
|
};
|
|
35
|
-
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$
|
|
35
|
+
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$b) => React$1.JSX.Element>;
|
|
36
36
|
|
|
37
37
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
38
38
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
39
39
|
declare const timeUnits: readonly ["s", "ms"];
|
|
40
40
|
declare const defaultExtendedOptions: readonly ["auto", "custom"];
|
|
41
|
-
type LengthUnit = (typeof lengthUnits)[number];
|
|
42
|
-
type AngleUnit = (typeof angleUnits)[number];
|
|
43
|
-
type TimeUnit = (typeof timeUnits)[number];
|
|
41
|
+
type LengthUnit$1 = (typeof lengthUnits)[number];
|
|
42
|
+
type AngleUnit$1 = (typeof angleUnits)[number];
|
|
43
|
+
type TimeUnit$1 = (typeof timeUnits)[number];
|
|
44
44
|
type ExtendedOption = (typeof defaultExtendedOptions)[number];
|
|
45
|
-
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
46
|
-
declare function isUnitExtendedOption(unit: Unit | ExtendedOption): unit is ExtendedOption;
|
|
45
|
+
type Unit$1 = LengthUnit$1 | AngleUnit$1 | TimeUnit$1;
|
|
46
|
+
declare function isUnitExtendedOption(unit: Unit$1 | ExtendedOption): unit is ExtendedOption;
|
|
47
47
|
|
|
48
|
-
type SizeVariant = 'length' | 'angle' | 'time';
|
|
49
|
-
type UnitProps<T extends readonly Unit[]> = {
|
|
48
|
+
type SizeVariant$1 = 'length' | 'angle' | 'time';
|
|
49
|
+
type UnitProps<T extends readonly Unit$1[]> = {
|
|
50
50
|
units?: T;
|
|
51
51
|
defaultUnit?: T[number];
|
|
52
52
|
};
|
|
@@ -61,18 +61,18 @@ type BaseSizeControlProps = {
|
|
|
61
61
|
id?: string;
|
|
62
62
|
ariaLabel?: string;
|
|
63
63
|
};
|
|
64
|
-
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit[]> & {
|
|
64
|
+
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit$1[]> & {
|
|
65
65
|
variant: 'length';
|
|
66
66
|
};
|
|
67
|
-
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit[]> & {
|
|
67
|
+
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit$1[]> & {
|
|
68
68
|
variant: 'angle';
|
|
69
69
|
};
|
|
70
|
-
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit[]> & {
|
|
70
|
+
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit$1[]> & {
|
|
71
71
|
variant: 'time';
|
|
72
72
|
};
|
|
73
73
|
type SizeControlProps = LengthSizeControlProps | AngleSizeControlProps | TimeSizeControlProps;
|
|
74
74
|
declare const SizeControl: ControlComponent$1<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel, }: Omit<SizeControlProps, "variant"> & {
|
|
75
|
-
variant?: SizeVariant;
|
|
75
|
+
variant?: SizeVariant$1;
|
|
76
76
|
}) => React$1.JSX.Element>;
|
|
77
77
|
|
|
78
78
|
declare const StrokeControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
@@ -114,12 +114,12 @@ type ChipsControlProps = {
|
|
|
114
114
|
};
|
|
115
115
|
declare const ChipsControl: ControlComponent$1<({ options }: ChipsControlProps) => React$1.JSX.Element>;
|
|
116
116
|
|
|
117
|
-
type Props$
|
|
117
|
+
type Props$a = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
118
118
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
119
119
|
anchorEl?: HTMLElement | null;
|
|
120
120
|
id?: string;
|
|
121
121
|
};
|
|
122
|
-
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$
|
|
122
|
+
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$a) => React$1.JSX.Element>;
|
|
123
123
|
|
|
124
124
|
type RenderContentProps = {
|
|
125
125
|
size: ToggleButtonProps['size'];
|
|
@@ -133,7 +133,7 @@ type ToggleButtonGroupItem<TValue> = {
|
|
|
133
133
|
};
|
|
134
134
|
type ExclusiveValue<TValue> = TValue;
|
|
135
135
|
type NonExclusiveValue<TValue> = TValue[];
|
|
136
|
-
type Props$
|
|
136
|
+
type Props$9<TValue> = {
|
|
137
137
|
disabled?: boolean;
|
|
138
138
|
justify?: StackProps['justifyContent'];
|
|
139
139
|
size?: ToggleButtonProps['size'];
|
|
@@ -150,10 +150,10 @@ type Props$7<TValue> = {
|
|
|
150
150
|
value: ExclusiveValue<TValue>;
|
|
151
151
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
152
152
|
});
|
|
153
|
-
declare const ToggleButtonGroupUi: <TValue>(props: Props$
|
|
153
|
+
declare const ToggleButtonGroupUi: <TValue>(props: Props$9<TValue> & {
|
|
154
154
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
155
155
|
}) => React$1.ReactElement;
|
|
156
|
-
declare const ControlToggleButtonGroup: <TValue>(props: Props$
|
|
156
|
+
declare const ControlToggleButtonGroup: <TValue>(props: Props$9<TValue>) => React$1.JSX.Element;
|
|
157
157
|
|
|
158
158
|
type ToggleControlProps<T extends PropValue> = {
|
|
159
159
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -184,22 +184,22 @@ type Item$1 = {
|
|
|
184
184
|
bind: PropKey;
|
|
185
185
|
};
|
|
186
186
|
type EqualUnequalItems = [Item$1, Item$1, Item$1, Item$1];
|
|
187
|
-
type Props$
|
|
187
|
+
type Props$8<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
188
188
|
label: string;
|
|
189
189
|
icon: ReactNode;
|
|
190
190
|
tooltipLabel: string;
|
|
191
191
|
items: EqualUnequalItems;
|
|
192
192
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
193
193
|
};
|
|
194
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$
|
|
194
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$8<TMultiPropType, TPropValue>): React$1.JSX.Element;
|
|
195
195
|
|
|
196
|
-
type Props$
|
|
196
|
+
type Props$7 = {
|
|
197
197
|
label: string;
|
|
198
198
|
isSiteRtl?: boolean;
|
|
199
199
|
extendedOptions?: ExtendedOption[];
|
|
200
200
|
min?: number;
|
|
201
201
|
};
|
|
202
|
-
declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min }: Props$
|
|
202
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min }: Props$7) => React$1.JSX.Element;
|
|
203
203
|
|
|
204
204
|
type FontCategory = {
|
|
205
205
|
label: string;
|
|
@@ -252,7 +252,7 @@ type ControlProps<TControlProps = unknown> = TControlProps & {
|
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
type Props$
|
|
255
|
+
type Props$6 = ControlProps<{
|
|
256
256
|
queryOptions: {
|
|
257
257
|
params: Record<string, unknown>;
|
|
258
258
|
url: string;
|
|
@@ -264,21 +264,21 @@ type Props$4 = ControlProps<{
|
|
|
264
264
|
ariaLabel?: string;
|
|
265
265
|
}>;
|
|
266
266
|
type DestinationProp = LinkPropValue['value']['destination'];
|
|
267
|
-
declare const LinkControl: ControlComponent$1<(props: Props$
|
|
267
|
+
declare const LinkControl: ControlComponent$1<(props: Props$6) => React$1.JSX.Element>;
|
|
268
268
|
|
|
269
269
|
type SelectOption = {
|
|
270
270
|
label: string;
|
|
271
271
|
value: StringPropValue['value'];
|
|
272
272
|
disabled?: boolean;
|
|
273
273
|
};
|
|
274
|
-
type Props$
|
|
274
|
+
type Props$5 = {
|
|
275
275
|
options: SelectOption[];
|
|
276
276
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
277
277
|
fallbackLabels?: Record<string, string>;
|
|
278
278
|
};
|
|
279
|
-
declare const HtmlTagControl: ControlComponent$1<({ options, onChange, fallbackLabels }: Props$
|
|
279
|
+
declare const HtmlTagControl: ControlComponent$1<({ options, onChange, fallbackLabels }: Props$5) => React$1.JSX.Element>;
|
|
280
280
|
|
|
281
|
-
type Props$
|
|
281
|
+
type Props$4 = {
|
|
282
282
|
queryOptions: {
|
|
283
283
|
params: Record<string, unknown>;
|
|
284
284
|
url: string;
|
|
@@ -289,7 +289,7 @@ type Props$2 = {
|
|
|
289
289
|
onSetValue?: (value: DestinationProp | null) => void;
|
|
290
290
|
ariaLabel?: string;
|
|
291
291
|
};
|
|
292
|
-
declare const QueryControl: ControlComponent$1<(props: Props$
|
|
292
|
+
declare const QueryControl: ControlComponent$1<(props: Props$4) => React$1.JSX.Element>;
|
|
293
293
|
|
|
294
294
|
declare const GapControl: ({ label }: {
|
|
295
295
|
label: string;
|
|
@@ -407,47 +407,6 @@ declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props,
|
|
|
407
407
|
|
|
408
408
|
declare const EmailFormActionControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
409
409
|
|
|
410
|
-
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
411
|
-
|
|
412
|
-
declare const DisplayConditionsControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
413
|
-
|
|
414
|
-
declare const AttributesControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
415
|
-
|
|
416
|
-
type PromotionTrackingData = {
|
|
417
|
-
target_name: string;
|
|
418
|
-
target_location?: 'widget_panel' | 'variables_manager';
|
|
419
|
-
location_l1?: string;
|
|
420
|
-
location_l2?: 'style' | 'general' | 'interactions';
|
|
421
|
-
};
|
|
422
|
-
declare const trackViewPromotion: (data: PromotionTrackingData) => void;
|
|
423
|
-
declare const trackUpgradePromotionClick: (data: PromotionTrackingData) => void;
|
|
424
|
-
|
|
425
|
-
type V4PromotionData = {
|
|
426
|
-
title: string;
|
|
427
|
-
content: string;
|
|
428
|
-
image: string;
|
|
429
|
-
ctaUrl: string;
|
|
430
|
-
};
|
|
431
|
-
type V4PromotionKey = 'displayConditions' | 'customCss' | 'attributes';
|
|
432
|
-
|
|
433
|
-
type PromotionTriggerProps = {
|
|
434
|
-
promotionKey: V4PromotionKey;
|
|
435
|
-
children?: ReactNode;
|
|
436
|
-
trackingData: PromotionTrackingData;
|
|
437
|
-
};
|
|
438
|
-
type PromotionTriggerRef = {
|
|
439
|
-
toggle: () => void;
|
|
440
|
-
};
|
|
441
|
-
declare const PromotionTrigger: React$1.ForwardRefExoticComponent<PromotionTriggerProps & React$1.RefAttributes<PromotionTriggerRef>>;
|
|
442
|
-
|
|
443
|
-
type ClearIconButtonProps = {
|
|
444
|
-
onClick?: () => void;
|
|
445
|
-
tooltipText: React$1.ReactNode;
|
|
446
|
-
disabled?: boolean;
|
|
447
|
-
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
448
|
-
};
|
|
449
|
-
declare const ClearIconButton: ({ tooltipText, onClick, disabled, size }: ClearIconButtonProps) => React$1.JSX.Element;
|
|
450
|
-
|
|
451
410
|
type Action = {
|
|
452
411
|
type: string;
|
|
453
412
|
payload?: object;
|
|
@@ -503,6 +462,67 @@ type EnhancedPropKeyContextValue<T, P> = PropKeyContextValue<T, P> & {
|
|
|
503
462
|
declare function useBoundProp<T extends PropValue = PropValue, P extends PropType = PropType>(): EnhancedPropKeyContextValue<T, P>;
|
|
504
463
|
declare function useBoundProp<TKey extends string, TValue extends PropValue>(propTypeUtil: PropTypeUtil<TKey, TValue>): UseBoundProp<TValue>;
|
|
505
464
|
|
|
465
|
+
type LengthUnit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh' | 'ch';
|
|
466
|
+
type AngleUnit = 'deg' | 'rad' | 'grad' | 'turn';
|
|
467
|
+
type TimeUnit = 's' | 'ms';
|
|
468
|
+
type ExtendedSizeOption = 'auto' | 'custom';
|
|
469
|
+
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
470
|
+
type SizeUnit$1 = Unit | ExtendedSizeOption;
|
|
471
|
+
type SizeVariant = 'length' | 'angle' | 'time';
|
|
472
|
+
type SetSizeValue<T> = (value: T, options?: CreateOptions, meta?: SetValueMeta) => void;
|
|
473
|
+
|
|
474
|
+
type Props$3 = {
|
|
475
|
+
placeholder?: string;
|
|
476
|
+
variant?: SizeVariant;
|
|
477
|
+
anchorRef?: RefObject<HTMLDivElement | null>;
|
|
478
|
+
startIcon?: React$1.ReactNode;
|
|
479
|
+
ariaLabel?: string;
|
|
480
|
+
min?: number;
|
|
481
|
+
id?: string;
|
|
482
|
+
};
|
|
483
|
+
declare const UnstableSizeControl: ControlComponent$1<({ variant, placeholder: propPlaceholder, anchorRef, startIcon, ariaLabel, min }: Props$3) => React$1.JSX.Element>;
|
|
484
|
+
|
|
485
|
+
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
486
|
+
|
|
487
|
+
declare const DisplayConditionsControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
488
|
+
|
|
489
|
+
declare const AttributesControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
490
|
+
|
|
491
|
+
type PromotionTrackingData = {
|
|
492
|
+
target_name: string;
|
|
493
|
+
target_location?: 'widget_panel' | 'variables_manager';
|
|
494
|
+
location_l1?: string;
|
|
495
|
+
location_l2?: 'style' | 'general' | 'interactions';
|
|
496
|
+
};
|
|
497
|
+
declare const trackViewPromotion: (data: PromotionTrackingData) => void;
|
|
498
|
+
declare const trackUpgradePromotionClick: (data: PromotionTrackingData) => void;
|
|
499
|
+
|
|
500
|
+
type V4PromotionData = {
|
|
501
|
+
title: string;
|
|
502
|
+
content: string;
|
|
503
|
+
image: string;
|
|
504
|
+
ctaUrl: string;
|
|
505
|
+
};
|
|
506
|
+
type V4PromotionKey = 'displayConditions' | 'customCss' | 'attributes';
|
|
507
|
+
|
|
508
|
+
type PromotionTriggerProps = {
|
|
509
|
+
promotionKey: V4PromotionKey;
|
|
510
|
+
children?: ReactNode;
|
|
511
|
+
trackingData: PromotionTrackingData;
|
|
512
|
+
};
|
|
513
|
+
type PromotionTriggerRef = {
|
|
514
|
+
toggle: () => void;
|
|
515
|
+
};
|
|
516
|
+
declare const PromotionTrigger: React$1.ForwardRefExoticComponent<PromotionTriggerProps & React$1.RefAttributes<PromotionTriggerRef>>;
|
|
517
|
+
|
|
518
|
+
type ClearIconButtonProps = {
|
|
519
|
+
onClick?: () => void;
|
|
520
|
+
tooltipText: React$1.ReactNode;
|
|
521
|
+
disabled?: boolean;
|
|
522
|
+
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
523
|
+
};
|
|
524
|
+
declare const ClearIconButton: ({ tooltipText, onClick, disabled, size }: ClearIconButtonProps) => React$1.JSX.Element;
|
|
525
|
+
|
|
506
526
|
type AnchorEl = HTMLElement | null;
|
|
507
527
|
type RepeaterItem<T> = {
|
|
508
528
|
disabled?: boolean;
|
|
@@ -610,6 +630,7 @@ type InlineEditorProps = {
|
|
|
610
630
|
onEditorCreate?: Dispatch<SetStateAction<Editor | null>>;
|
|
611
631
|
wrapperClassName?: string;
|
|
612
632
|
onSelectionEnd?: (view: EditorView) => void;
|
|
633
|
+
mountElement?: HTMLElement | null;
|
|
613
634
|
};
|
|
614
635
|
declare const InlineEditor: React$1.ForwardRefExoticComponent<InlineEditorProps & React$1.RefAttributes<unknown>>;
|
|
615
636
|
|
|
@@ -620,20 +641,63 @@ type InlineEditorToolbarProps = {
|
|
|
620
641
|
};
|
|
621
642
|
declare const InlineEditorToolbar: ({ editor, elementId, sx }: InlineEditorToolbarProps) => React$1.JSX.Element;
|
|
622
643
|
|
|
623
|
-
type Props$
|
|
644
|
+
type Props$2<TValue> = {
|
|
624
645
|
value: TValue;
|
|
625
|
-
units: Unit[];
|
|
626
|
-
defaultUnit?: Unit;
|
|
646
|
+
units: Unit$1[];
|
|
647
|
+
defaultUnit?: Unit$1;
|
|
627
648
|
onChange: (value: TValue) => void;
|
|
628
649
|
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
629
650
|
disabled?: boolean;
|
|
630
651
|
InputProps?: TextFieldProps['InputProps'];
|
|
631
652
|
startIcon?: React$1.ReactNode;
|
|
632
653
|
};
|
|
633
|
-
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, onChange, onBlur, units, defaultUnit, startIcon, }: Props$
|
|
654
|
+
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, onChange, onBlur, units, defaultUnit, startIcon, }: Props$2<T>) => React$1.JSX.Element;
|
|
634
655
|
|
|
635
656
|
declare const NumberInput: React$1.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps, "ref"> | Omit<_mui_material.OutlinedTextFieldProps, "ref"> | Omit<_mui_material.StandardTextFieldProps, "ref">) & React$1.RefAttributes<unknown>>;
|
|
636
657
|
|
|
658
|
+
type UnitSelectorProps<T extends string> = {
|
|
659
|
+
options: T[];
|
|
660
|
+
value: T;
|
|
661
|
+
onSelect: (value: T) => void;
|
|
662
|
+
isActive: boolean;
|
|
663
|
+
menuItemsAttributes?: {
|
|
664
|
+
[key in T]?: Record<string, unknown>;
|
|
665
|
+
};
|
|
666
|
+
optionLabelOverrides?: {
|
|
667
|
+
[key in T]?: React$1.ReactNode;
|
|
668
|
+
};
|
|
669
|
+
disabled?: boolean;
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
type SizeFieldProps<TValue extends SizePropValue['value'], TUnit extends SizeUnit$1> = {
|
|
673
|
+
units: TUnit[];
|
|
674
|
+
value: TValue | null;
|
|
675
|
+
placeholder?: string;
|
|
676
|
+
defaultUnit?: SizeUnit$1;
|
|
677
|
+
startIcon?: React$1.ReactNode;
|
|
678
|
+
setValue: SetSizeValue<TValue>;
|
|
679
|
+
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
680
|
+
onKeyDown?: (event: React$1.KeyboardEvent<HTMLInputElement>) => void;
|
|
681
|
+
onUnitChange?: (unit: SizeUnit$1) => void;
|
|
682
|
+
disabled?: boolean;
|
|
683
|
+
focused?: boolean;
|
|
684
|
+
ariaLabel?: string;
|
|
685
|
+
min?: number;
|
|
686
|
+
InputProps?: TextFieldProps['InputProps'];
|
|
687
|
+
unitSelectorProps?: Partial<UnitSelectorProps<TUnit>>;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
type SizeValue = SizePropValue['value'];
|
|
691
|
+
type SizeUnit = SizePropValue['value']['unit'];
|
|
692
|
+
type Props$1 = SizeFieldProps<SizeValue, SizeUnit> & {
|
|
693
|
+
anchorRef?: RefObject<HTMLDivElement | null>;
|
|
694
|
+
isUnitActive?: boolean;
|
|
695
|
+
SizeFieldWrapper?: React$1.ComponentType<{
|
|
696
|
+
children: React$1.ReactNode;
|
|
697
|
+
}>;
|
|
698
|
+
};
|
|
699
|
+
declare const SizeComponent: ({ anchorRef, isUnitActive, SizeFieldWrapper, ...sizeFieldProps }: Props$1) => React$1.JSX.Element;
|
|
700
|
+
|
|
637
701
|
type AnyComponentType = ComponentType<any>;
|
|
638
702
|
declare const brandSymbol: unique symbol;
|
|
639
703
|
type ControlComponent$1<TComponent extends AnyComponentType = AnyComponentType> = TComponent & {
|
|
@@ -737,4 +801,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
737
801
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
738
802
|
};
|
|
739
803
|
|
|
740
|
-
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
|
804
|
+
export { type AdornmentComponent, type AngleUnit$1 as AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit$1 as LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit$1 as TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit$1 as Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|