@elementor/editor-controls 3.35.0-451 → 3.35.0-452
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +46 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/equal-unequal-sizes-control.tsx +6 -3
- package/src/controls/gap-control.tsx +16 -4
- package/src/controls/linked-dimensions-control.tsx +22 -3
package/dist/index.mjs
CHANGED
|
@@ -2667,7 +2667,8 @@ function EqualUnequalSizesControl({
|
|
|
2667
2667
|
));
|
|
2668
2668
|
}
|
|
2669
2669
|
var MultiSizeValueControl = ({ item, rowRef }) => {
|
|
2670
|
-
|
|
2670
|
+
const { bind, label, icon, ariaLabel } = item;
|
|
2671
|
+
return /* @__PURE__ */ React56.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React56.createElement(Grid8, { item: true, xs: 6 }, /* @__PURE__ */ React56.createElement(Grid8, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React56.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React56.createElement(ControlLabel, null, label)), /* @__PURE__ */ React56.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React56.createElement(SizeControl, { startIcon: icon, ariaLabel, anchorRef: rowRef })))));
|
|
2671
2672
|
};
|
|
2672
2673
|
|
|
2673
2674
|
// src/controls/linked-dimensions-control.tsx
|
|
@@ -2677,7 +2678,7 @@ import { dimensionsPropTypeUtil, sizePropTypeUtil as sizePropTypeUtil3 } from "@
|
|
|
2677
2678
|
import { useActiveBreakpoint as useActiveBreakpoint2 } from "@elementor/editor-responsive";
|
|
2678
2679
|
import { DetachIcon, LinkIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
2679
2680
|
import { Grid as Grid9, Stack as Stack8, Tooltip as Tooltip6 } from "@elementor/ui";
|
|
2680
|
-
import { __ as __18 } from "@wordpress/i18n";
|
|
2681
|
+
import { __ as __18, sprintf as sprintf2 } from "@wordpress/i18n";
|
|
2681
2682
|
var LinkedDimensionsControl = ({ label, isSiteRtl = false, extendedOptions, min }) => {
|
|
2682
2683
|
const gridRowRefs = [useRef9(null), useRef9(null)];
|
|
2683
2684
|
const { disabled: sizeDisabled } = useBoundProp(sizePropTypeUtil3);
|
|
@@ -2754,10 +2755,11 @@ var LinkedDimensionsControl = ({ label, isSiteRtl = false, extendedOptions, min
|
|
|
2754
2755
|
isPlaceholder: hasPlaceholders
|
|
2755
2756
|
},
|
|
2756
2757
|
/* @__PURE__ */ React57.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
2757
|
-
))), getCssDimensionProps(isSiteRtl).map((row, index) => /* @__PURE__ */ React57.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", key: index, ref: gridRowRefs[index] }, row.map(({ icon, ...props }) => /* @__PURE__ */ React57.createElement(Grid9, { container: true, gap: 0.75, alignItems: "center", key: props.bind }, /* @__PURE__ */ React57.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(Label, { ...props })), /* @__PURE__ */ React57.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
2758
|
+
))), getCssDimensionProps(label, isSiteRtl).map((row, index) => /* @__PURE__ */ React57.createElement(Stack8, { direction: "row", gap: 2, flexWrap: "nowrap", key: index, ref: gridRowRefs[index] }, row.map(({ icon, ...props }) => /* @__PURE__ */ React57.createElement(Grid9, { container: true, gap: 0.75, alignItems: "center", key: props.bind }, /* @__PURE__ */ React57.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(Label, { ...props })), /* @__PURE__ */ React57.createElement(Grid9, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
2758
2759
|
Control3,
|
|
2759
2760
|
{
|
|
2760
2761
|
bind: props.bind,
|
|
2762
|
+
ariaLabel: props.ariaLabel,
|
|
2761
2763
|
startIcon: icon,
|
|
2762
2764
|
isLinked,
|
|
2763
2765
|
extendedOptions,
|
|
@@ -2768,6 +2770,7 @@ var LinkedDimensionsControl = ({ label, isSiteRtl = false, extendedOptions, min
|
|
|
2768
2770
|
};
|
|
2769
2771
|
var Control3 = ({
|
|
2770
2772
|
bind,
|
|
2773
|
+
ariaLabel,
|
|
2771
2774
|
startIcon,
|
|
2772
2775
|
isLinked,
|
|
2773
2776
|
extendedOptions,
|
|
@@ -2778,6 +2781,7 @@ var Control3 = ({
|
|
|
2778
2781
|
return /* @__PURE__ */ React57.createElement(
|
|
2779
2782
|
SizeControl,
|
|
2780
2783
|
{
|
|
2784
|
+
ariaLabel,
|
|
2781
2785
|
startIcon,
|
|
2782
2786
|
extendedOptions,
|
|
2783
2787
|
anchorRef,
|
|
@@ -2788,6 +2792,7 @@ var Control3 = ({
|
|
|
2788
2792
|
return /* @__PURE__ */ React57.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React57.createElement(
|
|
2789
2793
|
SizeControl,
|
|
2790
2794
|
{
|
|
2795
|
+
ariaLabel,
|
|
2791
2796
|
startIcon,
|
|
2792
2797
|
extendedOptions,
|
|
2793
2798
|
anchorRef,
|
|
@@ -2798,17 +2803,26 @@ var Control3 = ({
|
|
|
2798
2803
|
var Label = ({ label, bind }) => {
|
|
2799
2804
|
return /* @__PURE__ */ React57.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React57.createElement(ControlLabel, null, label));
|
|
2800
2805
|
};
|
|
2801
|
-
function getCssDimensionProps(isSiteRtl) {
|
|
2806
|
+
function getCssDimensionProps(label, isSiteRtl) {
|
|
2802
2807
|
return [
|
|
2803
2808
|
[
|
|
2804
2809
|
{
|
|
2805
2810
|
bind: "block-start",
|
|
2806
2811
|
label: __18("Top", "elementor"),
|
|
2812
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2813
|
+
ariaLabel: sprintf2(__18("%s top", "elementor"), label),
|
|
2807
2814
|
icon: /* @__PURE__ */ React57.createElement(SideTopIcon, { fontSize: "tiny" })
|
|
2808
2815
|
},
|
|
2809
2816
|
{
|
|
2810
2817
|
bind: "inline-end",
|
|
2811
2818
|
label: isSiteRtl ? __18("Left", "elementor") : __18("Right", "elementor"),
|
|
2819
|
+
ariaLabel: isSiteRtl ? (
|
|
2820
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2821
|
+
sprintf2(__18("%s left", "elementor"), label)
|
|
2822
|
+
) : (
|
|
2823
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2824
|
+
sprintf2(__18("%s right", "elementor"), label)
|
|
2825
|
+
),
|
|
2812
2826
|
icon: isSiteRtl ? /* @__PURE__ */ React57.createElement(SideLeftIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React57.createElement(SideRightIcon, { fontSize: "tiny" })
|
|
2813
2827
|
}
|
|
2814
2828
|
],
|
|
@@ -2816,11 +2830,20 @@ function getCssDimensionProps(isSiteRtl) {
|
|
|
2816
2830
|
{
|
|
2817
2831
|
bind: "block-end",
|
|
2818
2832
|
label: __18("Bottom", "elementor"),
|
|
2833
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2834
|
+
ariaLabel: sprintf2(__18("%s bottom", "elementor"), label),
|
|
2819
2835
|
icon: /* @__PURE__ */ React57.createElement(SideBottomIcon, { fontSize: "tiny" })
|
|
2820
2836
|
},
|
|
2821
2837
|
{
|
|
2822
2838
|
bind: "inline-start",
|
|
2823
2839
|
label: isSiteRtl ? __18("Right", "elementor") : __18("Left", "elementor"),
|
|
2840
|
+
ariaLabel: isSiteRtl ? (
|
|
2841
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2842
|
+
sprintf2(__18("%s right", "elementor"), label)
|
|
2843
|
+
) : (
|
|
2844
|
+
/* translators: %s is the name of the main group (margin or padding) */
|
|
2845
|
+
sprintf2(__18("%s left", "elementor"), label)
|
|
2846
|
+
),
|
|
2824
2847
|
icon: isSiteRtl ? /* @__PURE__ */ React57.createElement(SideRightIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React57.createElement(SideLeftIcon, { fontSize: "tiny" })
|
|
2825
2848
|
}
|
|
2826
2849
|
]
|
|
@@ -3704,17 +3727,34 @@ var GapControl = ({ label }) => {
|
|
|
3704
3727
|
isPlaceholder: hasPlaceholders
|
|
3705
3728
|
},
|
|
3706
3729
|
/* @__PURE__ */ React68.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
3707
|
-
))), /* @__PURE__ */ React68.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React68.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlFormLabel, null, __25("Column", "elementor"))), /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(
|
|
3730
|
+
))), /* @__PURE__ */ React68.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React68.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlFormLabel, null, __25("Column", "elementor"))), /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(
|
|
3731
|
+
Control4,
|
|
3732
|
+
{
|
|
3733
|
+
bind: "column",
|
|
3734
|
+
ariaLabel: __25("Column gap", "elementor"),
|
|
3735
|
+
isLinked,
|
|
3736
|
+
anchorRef: stackRef
|
|
3737
|
+
}
|
|
3738
|
+
))), /* @__PURE__ */ React68.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(ControlFormLabel, null, __25("Row", "elementor"))), /* @__PURE__ */ React68.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React68.createElement(
|
|
3739
|
+
Control4,
|
|
3740
|
+
{
|
|
3741
|
+
bind: "row",
|
|
3742
|
+
ariaLabel: __25("Row gap", "elementor"),
|
|
3743
|
+
isLinked,
|
|
3744
|
+
anchorRef: stackRef
|
|
3745
|
+
}
|
|
3746
|
+
)))));
|
|
3708
3747
|
};
|
|
3709
3748
|
var Control4 = ({
|
|
3710
3749
|
bind,
|
|
3750
|
+
ariaLabel,
|
|
3711
3751
|
isLinked,
|
|
3712
3752
|
anchorRef
|
|
3713
3753
|
}) => {
|
|
3714
3754
|
if (isLinked) {
|
|
3715
|
-
return /* @__PURE__ */ React68.createElement(SizeControl, { anchorRef });
|
|
3755
|
+
return /* @__PURE__ */ React68.createElement(SizeControl, { anchorRef, ariaLabel });
|
|
3716
3756
|
}
|
|
3717
|
-
return /* @__PURE__ */ React68.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React68.createElement(SizeControl, { anchorRef }));
|
|
3757
|
+
return /* @__PURE__ */ React68.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React68.createElement(SizeControl, { anchorRef, ariaLabel }));
|
|
3718
3758
|
};
|
|
3719
3759
|
|
|
3720
3760
|
// src/controls/aspect-ratio-control.tsx
|