@elementor/editor-controls 3.33.0-140 → 3.33.0-142
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 +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +563 -515
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +517 -470
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/select-control-wrapper.tsx +67 -0
- package/src/controls/select-control.tsx +2 -3
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -23,10 +23,10 @@ declare const TextControl: ControlComponent<({ placeholder, error, inputValue, i
|
|
|
23
23
|
sx?: SxProps;
|
|
24
24
|
}) => React$1.JSX.Element>;
|
|
25
25
|
|
|
26
|
-
type Props$
|
|
26
|
+
type Props$6 = {
|
|
27
27
|
placeholder?: string;
|
|
28
28
|
};
|
|
29
|
-
declare const TextAreaControl: ControlComponent<({ placeholder }: Props$
|
|
29
|
+
declare const TextAreaControl: ControlComponent<({ placeholder }: Props$6) => React$1.JSX.Element>;
|
|
30
30
|
|
|
31
31
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh"];
|
|
32
32
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -81,12 +81,20 @@ type SelectOption = {
|
|
|
81
81
|
value: StringPropValue['value'];
|
|
82
82
|
disabled?: boolean;
|
|
83
83
|
};
|
|
84
|
-
type
|
|
84
|
+
type SelectControlProps = {
|
|
85
85
|
options: SelectOption[];
|
|
86
86
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
87
87
|
MenuProps?: SelectProps['MenuProps'];
|
|
88
88
|
};
|
|
89
|
-
declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }:
|
|
89
|
+
declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: SelectControlProps) => React$1.JSX.Element>;
|
|
90
|
+
|
|
91
|
+
declare const collectionMethods: {
|
|
92
|
+
readonly 'off-canvas': () => SelectOption[];
|
|
93
|
+
};
|
|
94
|
+
type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
|
|
95
|
+
collectionId?: keyof typeof collectionMethods;
|
|
96
|
+
};
|
|
97
|
+
declare const SelectControlWrapper: ControlComponent<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
|
|
90
98
|
|
|
91
99
|
type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
92
100
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
@@ -535,4 +543,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
535
543
|
};
|
|
536
544
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
537
545
|
|
|
538
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
|
546
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, 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, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ declare const TextControl: ControlComponent<({ placeholder, error, inputValue, i
|
|
|
23
23
|
sx?: SxProps;
|
|
24
24
|
}) => React$1.JSX.Element>;
|
|
25
25
|
|
|
26
|
-
type Props$
|
|
26
|
+
type Props$6 = {
|
|
27
27
|
placeholder?: string;
|
|
28
28
|
};
|
|
29
|
-
declare const TextAreaControl: ControlComponent<({ placeholder }: Props$
|
|
29
|
+
declare const TextAreaControl: ControlComponent<({ placeholder }: Props$6) => React$1.JSX.Element>;
|
|
30
30
|
|
|
31
31
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh"];
|
|
32
32
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -81,12 +81,20 @@ type SelectOption = {
|
|
|
81
81
|
value: StringPropValue['value'];
|
|
82
82
|
disabled?: boolean;
|
|
83
83
|
};
|
|
84
|
-
type
|
|
84
|
+
type SelectControlProps = {
|
|
85
85
|
options: SelectOption[];
|
|
86
86
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
87
87
|
MenuProps?: SelectProps['MenuProps'];
|
|
88
88
|
};
|
|
89
|
-
declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }:
|
|
89
|
+
declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: SelectControlProps) => React$1.JSX.Element>;
|
|
90
|
+
|
|
91
|
+
declare const collectionMethods: {
|
|
92
|
+
readonly 'off-canvas': () => SelectOption[];
|
|
93
|
+
};
|
|
94
|
+
type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
|
|
95
|
+
collectionId?: keyof typeof collectionMethods;
|
|
96
|
+
};
|
|
97
|
+
declare const SelectControlWrapper: ControlComponent<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
|
|
90
98
|
|
|
91
99
|
type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
92
100
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
@@ -535,4 +543,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
535
543
|
};
|
|
536
544
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
537
545
|
|
|
538
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
|
546
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, 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, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|