@elementor/editor-controls 0.25.0 → 0.26.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 +6 -0
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/repeater.tsx +7 -1
- package/src/controls/link-control.tsx +2 -1
package/dist/index.mjs
CHANGED
|
@@ -884,16 +884,28 @@ var Repeater = ({
|
|
|
884
884
|
});
|
|
885
885
|
});
|
|
886
886
|
};
|
|
887
|
-
return /* @__PURE__ */ React23.createElement(SectionContent, null, /* @__PURE__ */ React23.createElement(
|
|
888
|
-
|
|
887
|
+
return /* @__PURE__ */ React23.createElement(SectionContent, null, /* @__PURE__ */ React23.createElement(
|
|
888
|
+
Stack5,
|
|
889
889
|
{
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
890
|
+
direction: "row",
|
|
891
|
+
justifyContent: "start",
|
|
892
|
+
alignItems: "center",
|
|
893
|
+
gap: 1,
|
|
894
|
+
sx: { marginInlineEnd: -0.75 }
|
|
894
895
|
},
|
|
895
|
-
/* @__PURE__ */ React23.createElement(
|
|
896
|
-
|
|
896
|
+
/* @__PURE__ */ React23.createElement(Typography, { component: "label", variant: "caption", color: "text.secondary" }, label),
|
|
897
|
+
/* @__PURE__ */ React23.createElement(ControlAdornments, null),
|
|
898
|
+
/* @__PURE__ */ React23.createElement(
|
|
899
|
+
IconButton,
|
|
900
|
+
{
|
|
901
|
+
sx: { ml: "auto" },
|
|
902
|
+
size: SIZE,
|
|
903
|
+
onClick: addRepeaterItem,
|
|
904
|
+
"aria-label": __4("Add item", "elementor")
|
|
905
|
+
},
|
|
906
|
+
/* @__PURE__ */ React23.createElement(PlusIcon, { fontSize: SIZE })
|
|
907
|
+
)
|
|
908
|
+
), 0 < uniqueKeys.length && /* @__PURE__ */ React23.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key, index) => {
|
|
897
909
|
const value = items[index];
|
|
898
910
|
if (!value) {
|
|
899
911
|
return null;
|
|
@@ -1911,7 +1923,8 @@ var LinkControl = createControl((props) => {
|
|
|
1911
1923
|
direction: "row",
|
|
1912
1924
|
sx: {
|
|
1913
1925
|
justifyContent: "space-between",
|
|
1914
|
-
alignItems: "center"
|
|
1926
|
+
alignItems: "center",
|
|
1927
|
+
marginInlineEnd: -0.75
|
|
1915
1928
|
}
|
|
1916
1929
|
},
|
|
1917
1930
|
/* @__PURE__ */ React34.createElement(ControlFormLabel, null, __9("Link", "elementor")),
|
|
@@ -1950,7 +1963,7 @@ var SwitchControl = ({ disabled }) => {
|
|
|
1950
1963
|
opacity: 0
|
|
1951
1964
|
}
|
|
1952
1965
|
} : {};
|
|
1953
|
-
return /* @__PURE__ */ React34.createElement(Grid7, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React34.createElement(Grid7, { item: true }, /* @__PURE__ */ React34.createElement(ControlFormLabel, null, __9("Open in a new tab", "elementor"))), /* @__PURE__ */ React34.createElement(Grid7, { item: true }, /* @__PURE__ */ React34.createElement(Switch, { checked: value, onClick, disabled, inputProps })));
|
|
1966
|
+
return /* @__PURE__ */ React34.createElement(Grid7, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React34.createElement(Grid7, { item: true }, /* @__PURE__ */ React34.createElement(ControlFormLabel, null, __9("Open in a new tab", "elementor"))), /* @__PURE__ */ React34.createElement(Grid7, { item: true, sx: { marginInlineEnd: -1 } }, /* @__PURE__ */ React34.createElement(Switch, { checked: value, onClick, disabled, inputProps })));
|
|
1954
1967
|
};
|
|
1955
1968
|
async function fetchOptions(ajaxUrl, params) {
|
|
1956
1969
|
if (!params || !ajaxUrl) {
|