@elementor/editor-controls 0.28.2 → 0.29.0
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/CHANGELOG.md +9 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +376 -242
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -174
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/conditional-tooltip.tsx +16 -0
- package/src/components/control-toggle-button-group.tsx +173 -28
- package/src/controls/font-family-control/font-family-control.tsx +10 -8
- package/src/controls/toggle-control.tsx +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @elementor/editor-controls
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ebcf7cc: Prevent redundant on-change trigger, remove tooltip from menu items, render label as content
|
|
8
|
+
- 71d9ffe: Added support for split items in toggle button group and an API for checking if an experiment is active
|
|
9
|
+
- 810db8d: Removed characters added by mistake
|
|
10
|
+
- b150c2b: Wrap font family with Control Action
|
|
11
|
+
|
|
3
12
|
## 0.28.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,7 @@ type Props$3<TValue> = {
|
|
|
66
66
|
justify?: StackProps['justifyContent'];
|
|
67
67
|
size?: ToggleButtonProps['size'];
|
|
68
68
|
items: ToggleButtonGroupItem<TValue | null>[];
|
|
69
|
+
maxItems?: number;
|
|
69
70
|
fullWidth?: boolean;
|
|
70
71
|
} & ({
|
|
71
72
|
exclusive?: false;
|
|
@@ -76,7 +77,7 @@ type Props$3<TValue> = {
|
|
|
76
77
|
value: ExclusiveValue<TValue>;
|
|
77
78
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
78
79
|
});
|
|
79
|
-
declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
|
|
80
|
+
declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
|
|
80
81
|
|
|
81
82
|
type ToggleControlProps<T extends PropValue> = {
|
|
82
83
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -85,8 +86,9 @@ type ToggleControlProps<T extends PropValue> = {
|
|
|
85
86
|
fullWidth?: boolean;
|
|
86
87
|
size?: ToggleButtonProps['size'];
|
|
87
88
|
exclusive?: boolean;
|
|
89
|
+
maxItems?: number;
|
|
88
90
|
};
|
|
89
|
-
declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
|
|
91
|
+
declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
|
|
90
92
|
|
|
91
93
|
declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
|
|
92
94
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ type Props$3<TValue> = {
|
|
|
66
66
|
justify?: StackProps['justifyContent'];
|
|
67
67
|
size?: ToggleButtonProps['size'];
|
|
68
68
|
items: ToggleButtonGroupItem<TValue | null>[];
|
|
69
|
+
maxItems?: number;
|
|
69
70
|
fullWidth?: boolean;
|
|
70
71
|
} & ({
|
|
71
72
|
exclusive?: false;
|
|
@@ -76,7 +77,7 @@ type Props$3<TValue> = {
|
|
|
76
77
|
value: ExclusiveValue<TValue>;
|
|
77
78
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
78
79
|
});
|
|
79
|
-
declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
|
|
80
|
+
declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
|
|
80
81
|
|
|
81
82
|
type ToggleControlProps<T extends PropValue> = {
|
|
82
83
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -85,8 +86,9 @@ type ToggleControlProps<T extends PropValue> = {
|
|
|
85
86
|
fullWidth?: boolean;
|
|
86
87
|
size?: ToggleButtonProps['size'];
|
|
87
88
|
exclusive?: boolean;
|
|
89
|
+
maxItems?: number;
|
|
88
90
|
};
|
|
89
|
-
declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
|
|
91
|
+
declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
|
|
90
92
|
|
|
91
93
|
declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
|
|
92
94
|
placeholder?: string;
|