@elementor/editor-controls 4.1.0-manual → 4.2.0-839
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 +43 -21
- package/dist/index.d.ts +43 -21
- package/dist/index.js +675 -369
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +606 -305
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/components/control-repeater/context/repeater-context.tsx +13 -0
- package/src/components/repeater/repeater.tsx +6 -10
- package/src/controls/attachment-type-control.tsx +36 -0
- package/src/controls/date-range-control.tsx +83 -0
- package/src/controls/date-string-control.tsx +62 -0
- package/src/controls/email-form-action-control.tsx +21 -1
- package/src/controls/image-media-control.tsx +23 -1
- package/src/controls/mention-text-area-control.tsx +32 -11
- package/src/controls/number-control.tsx +4 -2
- package/src/controls/position-control.tsx +7 -0
- package/src/controls/select-control.tsx +1 -1
- package/src/controls/size-control/size-field.tsx +1 -1
- package/src/controls/time-range-control.tsx +49 -0
- package/src/controls/time-string-control.tsx +62 -0
- package/src/controls/transform-control/transform-base-controls/transform-origin-control.tsx +1 -1
- package/src/hooks/use-form-field-suggestions.ts +23 -2
- package/src/hooks/use-repeater-popover-dismiss.ts +53 -0
- package/src/index.ts +4 -0
- package/src/utils/date-time.ts +41 -0
package/dist/index.d.mts
CHANGED
|
@@ -29,23 +29,26 @@ declare const TextControl: ControlComponent$1<({ placeholder: propPlaceholder, e
|
|
|
29
29
|
ariaLabel?: string;
|
|
30
30
|
}) => React$1.JSX.Element>;
|
|
31
31
|
|
|
32
|
-
type Props$
|
|
32
|
+
type Props$d = {
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
ariaLabel?: string;
|
|
35
35
|
};
|
|
36
|
-
declare const TextAreaControl: ControlComponent$1<({ placeholder: propPlaceholder, ariaLabel }: Props$
|
|
36
|
+
declare const TextAreaControl: ControlComponent$1<({ placeholder: propPlaceholder, ariaLabel }: Props$d) => React$1.JSX.Element>;
|
|
37
37
|
|
|
38
38
|
type Suggestion = {
|
|
39
39
|
label: string;
|
|
40
40
|
value: string;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
type
|
|
43
|
+
type TriggerPosition = 'start' | 'auto';
|
|
44
|
+
type Props$c = {
|
|
44
45
|
placeholder?: string;
|
|
45
46
|
ariaLabel?: string;
|
|
46
47
|
suggestions: Suggestion[];
|
|
48
|
+
rows?: number;
|
|
49
|
+
triggerPosition?: TriggerPosition;
|
|
47
50
|
};
|
|
48
|
-
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions }: Props$
|
|
51
|
+
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions, rows, triggerPosition }: Props$c) => React$1.JSX.Element>;
|
|
49
52
|
|
|
50
53
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
51
54
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -128,12 +131,12 @@ type ChipsControlProps = {
|
|
|
128
131
|
};
|
|
129
132
|
declare const ChipsControl: ControlComponent$1<({ options }: ChipsControlProps) => React$1.JSX.Element>;
|
|
130
133
|
|
|
131
|
-
type Props$
|
|
134
|
+
type Props$b = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
132
135
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
133
136
|
anchorEl?: HTMLElement | null;
|
|
134
137
|
id?: string;
|
|
135
138
|
};
|
|
136
|
-
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$
|
|
139
|
+
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$b) => React$1.JSX.Element>;
|
|
137
140
|
|
|
138
141
|
type RenderContentProps = {
|
|
139
142
|
size: ToggleButtonProps['size'];
|
|
@@ -153,7 +156,7 @@ declare const StyledToggleButton: _emotion_styled.StyledComponent<any, {}, {
|
|
|
153
156
|
}>;
|
|
154
157
|
type ExclusiveValue<TValue> = TValue;
|
|
155
158
|
type NonExclusiveValue<TValue> = TValue[];
|
|
156
|
-
type Props$
|
|
159
|
+
type Props$a<TValue> = {
|
|
157
160
|
disabled?: boolean;
|
|
158
161
|
justify?: StackProps['justifyContent'];
|
|
159
162
|
size?: ToggleButtonProps['size'];
|
|
@@ -170,10 +173,10 @@ type Props$9<TValue> = {
|
|
|
170
173
|
value: ExclusiveValue<TValue>;
|
|
171
174
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
172
175
|
});
|
|
173
|
-
declare const ToggleButtonGroupUi: <TValue>(props: Props$
|
|
176
|
+
declare const ToggleButtonGroupUi: <TValue>(props: Props$a<TValue> & {
|
|
174
177
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
175
178
|
}) => React$1.ReactElement;
|
|
176
|
-
declare const ControlToggleButtonGroup: <TValue>(props: Props$
|
|
179
|
+
declare const ControlToggleButtonGroup: <TValue>(props: Props$a<TValue>) => React$1.JSX.Element;
|
|
177
180
|
|
|
178
181
|
type ToggleControlProps<T extends PropValue> = {
|
|
179
182
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -187,13 +190,14 @@ type ToggleControlProps<T extends PropValue> = {
|
|
|
187
190
|
};
|
|
188
191
|
declare const ToggleControl: ControlComponent$1<({ options, fullWidth, size, exclusive, maxItems, convertOptions, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
|
|
189
192
|
|
|
190
|
-
declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, }: {
|
|
193
|
+
declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, disabled: inputDisabled, }: {
|
|
191
194
|
placeholder?: string;
|
|
192
195
|
max?: number;
|
|
193
196
|
min?: number;
|
|
194
197
|
step?: number;
|
|
195
198
|
shouldForceInt?: boolean;
|
|
196
199
|
startIcon?: React$1.ReactNode;
|
|
200
|
+
disabled?: boolean;
|
|
197
201
|
}) => React$1.JSX.Element>;
|
|
198
202
|
|
|
199
203
|
type MultiSizePropValue = Record<PropKey, PropValue>;
|
|
@@ -204,22 +208,22 @@ type Item$1 = {
|
|
|
204
208
|
bind: PropKey;
|
|
205
209
|
};
|
|
206
210
|
type EqualUnequalItems = [Item$1, Item$1, Item$1, Item$1];
|
|
207
|
-
type Props$
|
|
211
|
+
type Props$9<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
208
212
|
label: string;
|
|
209
213
|
icon: ReactNode;
|
|
210
214
|
tooltipLabel: string;
|
|
211
215
|
items: EqualUnequalItems;
|
|
212
216
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
213
217
|
};
|
|
214
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$
|
|
218
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$9<TMultiPropType, TPropValue>): React$1.JSX.Element;
|
|
215
219
|
|
|
216
|
-
type Props$
|
|
220
|
+
type Props$8 = {
|
|
217
221
|
label: string;
|
|
218
222
|
isSiteRtl?: boolean;
|
|
219
223
|
extendedOptions?: ExtendedOption[];
|
|
220
224
|
min?: number;
|
|
221
225
|
};
|
|
222
|
-
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$
|
|
226
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$8) => React$1.JSX.Element;
|
|
223
227
|
|
|
224
228
|
type FontCategory = {
|
|
225
229
|
label: string;
|
|
@@ -272,7 +276,7 @@ type ControlProps<TControlProps = unknown> = TControlProps & {
|
|
|
272
276
|
};
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
type Props$
|
|
279
|
+
type Props$7 = ControlProps<{
|
|
276
280
|
queryOptions: {
|
|
277
281
|
params: Record<string, unknown>;
|
|
278
282
|
url: string;
|
|
@@ -284,21 +288,21 @@ type Props$6 = ControlProps<{
|
|
|
284
288
|
ariaLabel?: string;
|
|
285
289
|
}>;
|
|
286
290
|
type DestinationProp = LinkPropValue['value']['destination'];
|
|
287
|
-
declare const LinkControl: ControlComponent$1<(props: Props$
|
|
291
|
+
declare const LinkControl: ControlComponent$1<(props: Props$7) => React$1.JSX.Element>;
|
|
288
292
|
|
|
289
293
|
type SelectOption = {
|
|
290
294
|
label: string;
|
|
291
295
|
value: StringPropValue['value'];
|
|
292
296
|
disabled?: boolean;
|
|
293
297
|
};
|
|
294
|
-
type Props$
|
|
298
|
+
type Props$6 = ControlProps<{
|
|
295
299
|
options: SelectOption[];
|
|
296
300
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
297
301
|
fallbackLabels?: Record<string, string>;
|
|
298
302
|
}>;
|
|
299
|
-
declare const HtmlTagControl: ControlComponent$1<(props: Props$
|
|
303
|
+
declare const HtmlTagControl: ControlComponent$1<(props: Props$6) => React$1.JSX.Element>;
|
|
300
304
|
|
|
301
|
-
type Props$
|
|
305
|
+
type Props$5 = {
|
|
302
306
|
queryOptions: {
|
|
303
307
|
params: Record<string, unknown>;
|
|
304
308
|
url: string;
|
|
@@ -309,7 +313,7 @@ type Props$4 = {
|
|
|
309
313
|
onSetValue?: (value: DestinationProp | null) => void;
|
|
310
314
|
ariaLabel?: string;
|
|
311
315
|
};
|
|
312
|
-
declare const QueryControl: ControlComponent$1<(props: Props$
|
|
316
|
+
declare const QueryControl: ControlComponent$1<(props: Props$5) => React$1.JSX.Element>;
|
|
313
317
|
|
|
314
318
|
declare const GapControl: ({ label }: {
|
|
315
319
|
label: string;
|
|
@@ -420,6 +424,18 @@ declare const DateTimeControl: ControlComponent$1<({ inputDisabled }: {
|
|
|
420
424
|
inputDisabled?: boolean;
|
|
421
425
|
}) => React$1.JSX.Element>;
|
|
422
426
|
|
|
427
|
+
declare const DateRangeControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
428
|
+
|
|
429
|
+
type TimeStringControlProps = {
|
|
430
|
+
inputDisabled?: boolean;
|
|
431
|
+
ariaLabel?: string;
|
|
432
|
+
error?: boolean;
|
|
433
|
+
coerceInvalidToNull?: boolean;
|
|
434
|
+
};
|
|
435
|
+
declare const TimeStringControl: ControlComponent$1<({ inputDisabled, ariaLabel, error, coerceInvalidToNull }: TimeStringControlProps) => React$1.JSX.Element>;
|
|
436
|
+
|
|
437
|
+
declare const TimeRangeControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
438
|
+
|
|
423
439
|
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, }: {
|
|
424
440
|
sx?: SxProps<Theme>;
|
|
425
441
|
attributes?: Record<string, string>;
|
|
@@ -430,6 +446,12 @@ declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder }: {
|
|
|
430
446
|
toPlaceholder?: string;
|
|
431
447
|
}) => React$1.JSX.Element>;
|
|
432
448
|
|
|
449
|
+
type Props$4 = {
|
|
450
|
+
label?: string;
|
|
451
|
+
options: SelectOption$1[];
|
|
452
|
+
};
|
|
453
|
+
declare const AttachmentTypeControl: ControlComponent$1<({ label, options }: Props$4) => React$1.JSX.Element>;
|
|
454
|
+
|
|
433
455
|
type Action = {
|
|
434
456
|
type: string;
|
|
435
457
|
payload?: object;
|
|
@@ -829,4 +851,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
829
851
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
830
852
|
};
|
|
831
853
|
|
|
832
|
-
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, MentionTextAreaControl, 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, StyledToggleButton, StyledToggleButtonGroup, 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 };
|
|
854
|
+
export { type AdornmentComponent, type AngleUnit$1 as AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, 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, MentionTextAreaControl, 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, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,23 +29,26 @@ declare const TextControl: ControlComponent$1<({ placeholder: propPlaceholder, e
|
|
|
29
29
|
ariaLabel?: string;
|
|
30
30
|
}) => React$1.JSX.Element>;
|
|
31
31
|
|
|
32
|
-
type Props$
|
|
32
|
+
type Props$d = {
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
ariaLabel?: string;
|
|
35
35
|
};
|
|
36
|
-
declare const TextAreaControl: ControlComponent$1<({ placeholder: propPlaceholder, ariaLabel }: Props$
|
|
36
|
+
declare const TextAreaControl: ControlComponent$1<({ placeholder: propPlaceholder, ariaLabel }: Props$d) => React$1.JSX.Element>;
|
|
37
37
|
|
|
38
38
|
type Suggestion = {
|
|
39
39
|
label: string;
|
|
40
40
|
value: string;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
type
|
|
43
|
+
type TriggerPosition = 'start' | 'auto';
|
|
44
|
+
type Props$c = {
|
|
44
45
|
placeholder?: string;
|
|
45
46
|
ariaLabel?: string;
|
|
46
47
|
suggestions: Suggestion[];
|
|
48
|
+
rows?: number;
|
|
49
|
+
triggerPosition?: TriggerPosition;
|
|
47
50
|
};
|
|
48
|
-
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions }: Props$
|
|
51
|
+
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions, rows, triggerPosition }: Props$c) => React$1.JSX.Element>;
|
|
49
52
|
|
|
50
53
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
51
54
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -128,12 +131,12 @@ type ChipsControlProps = {
|
|
|
128
131
|
};
|
|
129
132
|
declare const ChipsControl: ControlComponent$1<({ options }: ChipsControlProps) => React$1.JSX.Element>;
|
|
130
133
|
|
|
131
|
-
type Props$
|
|
134
|
+
type Props$b = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
132
135
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
133
136
|
anchorEl?: HTMLElement | null;
|
|
134
137
|
id?: string;
|
|
135
138
|
};
|
|
136
|
-
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$
|
|
139
|
+
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$b) => React$1.JSX.Element>;
|
|
137
140
|
|
|
138
141
|
type RenderContentProps = {
|
|
139
142
|
size: ToggleButtonProps['size'];
|
|
@@ -153,7 +156,7 @@ declare const StyledToggleButton: _emotion_styled.StyledComponent<any, {}, {
|
|
|
153
156
|
}>;
|
|
154
157
|
type ExclusiveValue<TValue> = TValue;
|
|
155
158
|
type NonExclusiveValue<TValue> = TValue[];
|
|
156
|
-
type Props$
|
|
159
|
+
type Props$a<TValue> = {
|
|
157
160
|
disabled?: boolean;
|
|
158
161
|
justify?: StackProps['justifyContent'];
|
|
159
162
|
size?: ToggleButtonProps['size'];
|
|
@@ -170,10 +173,10 @@ type Props$9<TValue> = {
|
|
|
170
173
|
value: ExclusiveValue<TValue>;
|
|
171
174
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
172
175
|
});
|
|
173
|
-
declare const ToggleButtonGroupUi: <TValue>(props: Props$
|
|
176
|
+
declare const ToggleButtonGroupUi: <TValue>(props: Props$a<TValue> & {
|
|
174
177
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
175
178
|
}) => React$1.ReactElement;
|
|
176
|
-
declare const ControlToggleButtonGroup: <TValue>(props: Props$
|
|
179
|
+
declare const ControlToggleButtonGroup: <TValue>(props: Props$a<TValue>) => React$1.JSX.Element;
|
|
177
180
|
|
|
178
181
|
type ToggleControlProps<T extends PropValue> = {
|
|
179
182
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -187,13 +190,14 @@ type ToggleControlProps<T extends PropValue> = {
|
|
|
187
190
|
};
|
|
188
191
|
declare const ToggleControl: ControlComponent$1<({ options, fullWidth, size, exclusive, maxItems, convertOptions, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
|
|
189
192
|
|
|
190
|
-
declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, }: {
|
|
193
|
+
declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, disabled: inputDisabled, }: {
|
|
191
194
|
placeholder?: string;
|
|
192
195
|
max?: number;
|
|
193
196
|
min?: number;
|
|
194
197
|
step?: number;
|
|
195
198
|
shouldForceInt?: boolean;
|
|
196
199
|
startIcon?: React$1.ReactNode;
|
|
200
|
+
disabled?: boolean;
|
|
197
201
|
}) => React$1.JSX.Element>;
|
|
198
202
|
|
|
199
203
|
type MultiSizePropValue = Record<PropKey, PropValue>;
|
|
@@ -204,22 +208,22 @@ type Item$1 = {
|
|
|
204
208
|
bind: PropKey;
|
|
205
209
|
};
|
|
206
210
|
type EqualUnequalItems = [Item$1, Item$1, Item$1, Item$1];
|
|
207
|
-
type Props$
|
|
211
|
+
type Props$9<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
208
212
|
label: string;
|
|
209
213
|
icon: ReactNode;
|
|
210
214
|
tooltipLabel: string;
|
|
211
215
|
items: EqualUnequalItems;
|
|
212
216
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
213
217
|
};
|
|
214
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$
|
|
218
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$9<TMultiPropType, TPropValue>): React$1.JSX.Element;
|
|
215
219
|
|
|
216
|
-
type Props$
|
|
220
|
+
type Props$8 = {
|
|
217
221
|
label: string;
|
|
218
222
|
isSiteRtl?: boolean;
|
|
219
223
|
extendedOptions?: ExtendedOption[];
|
|
220
224
|
min?: number;
|
|
221
225
|
};
|
|
222
|
-
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$
|
|
226
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$8) => React$1.JSX.Element;
|
|
223
227
|
|
|
224
228
|
type FontCategory = {
|
|
225
229
|
label: string;
|
|
@@ -272,7 +276,7 @@ type ControlProps<TControlProps = unknown> = TControlProps & {
|
|
|
272
276
|
};
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
type Props$
|
|
279
|
+
type Props$7 = ControlProps<{
|
|
276
280
|
queryOptions: {
|
|
277
281
|
params: Record<string, unknown>;
|
|
278
282
|
url: string;
|
|
@@ -284,21 +288,21 @@ type Props$6 = ControlProps<{
|
|
|
284
288
|
ariaLabel?: string;
|
|
285
289
|
}>;
|
|
286
290
|
type DestinationProp = LinkPropValue['value']['destination'];
|
|
287
|
-
declare const LinkControl: ControlComponent$1<(props: Props$
|
|
291
|
+
declare const LinkControl: ControlComponent$1<(props: Props$7) => React$1.JSX.Element>;
|
|
288
292
|
|
|
289
293
|
type SelectOption = {
|
|
290
294
|
label: string;
|
|
291
295
|
value: StringPropValue['value'];
|
|
292
296
|
disabled?: boolean;
|
|
293
297
|
};
|
|
294
|
-
type Props$
|
|
298
|
+
type Props$6 = ControlProps<{
|
|
295
299
|
options: SelectOption[];
|
|
296
300
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
297
301
|
fallbackLabels?: Record<string, string>;
|
|
298
302
|
}>;
|
|
299
|
-
declare const HtmlTagControl: ControlComponent$1<(props: Props$
|
|
303
|
+
declare const HtmlTagControl: ControlComponent$1<(props: Props$6) => React$1.JSX.Element>;
|
|
300
304
|
|
|
301
|
-
type Props$
|
|
305
|
+
type Props$5 = {
|
|
302
306
|
queryOptions: {
|
|
303
307
|
params: Record<string, unknown>;
|
|
304
308
|
url: string;
|
|
@@ -309,7 +313,7 @@ type Props$4 = {
|
|
|
309
313
|
onSetValue?: (value: DestinationProp | null) => void;
|
|
310
314
|
ariaLabel?: string;
|
|
311
315
|
};
|
|
312
|
-
declare const QueryControl: ControlComponent$1<(props: Props$
|
|
316
|
+
declare const QueryControl: ControlComponent$1<(props: Props$5) => React$1.JSX.Element>;
|
|
313
317
|
|
|
314
318
|
declare const GapControl: ({ label }: {
|
|
315
319
|
label: string;
|
|
@@ -420,6 +424,18 @@ declare const DateTimeControl: ControlComponent$1<({ inputDisabled }: {
|
|
|
420
424
|
inputDisabled?: boolean;
|
|
421
425
|
}) => React$1.JSX.Element>;
|
|
422
426
|
|
|
427
|
+
declare const DateRangeControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
428
|
+
|
|
429
|
+
type TimeStringControlProps = {
|
|
430
|
+
inputDisabled?: boolean;
|
|
431
|
+
ariaLabel?: string;
|
|
432
|
+
error?: boolean;
|
|
433
|
+
coerceInvalidToNull?: boolean;
|
|
434
|
+
};
|
|
435
|
+
declare const TimeStringControl: ControlComponent$1<({ inputDisabled, ariaLabel, error, coerceInvalidToNull }: TimeStringControlProps) => React$1.JSX.Element>;
|
|
436
|
+
|
|
437
|
+
declare const TimeRangeControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
438
|
+
|
|
423
439
|
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, }: {
|
|
424
440
|
sx?: SxProps<Theme>;
|
|
425
441
|
attributes?: Record<string, string>;
|
|
@@ -430,6 +446,12 @@ declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder }: {
|
|
|
430
446
|
toPlaceholder?: string;
|
|
431
447
|
}) => React$1.JSX.Element>;
|
|
432
448
|
|
|
449
|
+
type Props$4 = {
|
|
450
|
+
label?: string;
|
|
451
|
+
options: SelectOption$1[];
|
|
452
|
+
};
|
|
453
|
+
declare const AttachmentTypeControl: ControlComponent$1<({ label, options }: Props$4) => React$1.JSX.Element>;
|
|
454
|
+
|
|
433
455
|
type Action = {
|
|
434
456
|
type: string;
|
|
435
457
|
payload?: object;
|
|
@@ -829,4 +851,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
829
851
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
830
852
|
};
|
|
831
853
|
|
|
832
|
-
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, MentionTextAreaControl, 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, StyledToggleButton, StyledToggleButtonGroup, 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 };
|
|
854
|
+
export { type AdornmentComponent, type AngleUnit$1 as AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, 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, MentionTextAreaControl, 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, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, 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 };
|