@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0ab4b84: Alignment for the controls (right-side) settings & styles tabs
8
+
3
9
  ## 0.25.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -931,16 +931,28 @@ var Repeater = ({
931
931
  });
932
932
  });
933
933
  };
934
- return /* @__PURE__ */ React23.createElement(SectionContent, null, /* @__PURE__ */ React23.createElement(import_ui17.Stack, { direction: "row", justifyContent: "start", alignItems: "center", gap: 1 }, /* @__PURE__ */ React23.createElement(import_ui17.Typography, { component: "label", variant: "caption", color: "text.secondary" }, label), /* @__PURE__ */ React23.createElement(ControlAdornments, null), /* @__PURE__ */ React23.createElement(
935
- import_ui17.IconButton,
934
+ return /* @__PURE__ */ React23.createElement(SectionContent, null, /* @__PURE__ */ React23.createElement(
935
+ import_ui17.Stack,
936
936
  {
937
- sx: { ml: "auto" },
938
- size: SIZE,
939
- onClick: addRepeaterItem,
940
- "aria-label": (0, import_i18n4.__)("Add item", "elementor")
937
+ direction: "row",
938
+ justifyContent: "start",
939
+ alignItems: "center",
940
+ gap: 1,
941
+ sx: { marginInlineEnd: -0.75 }
941
942
  },
942
- /* @__PURE__ */ React23.createElement(import_icons3.PlusIcon, { fontSize: SIZE })
943
- )), 0 < uniqueKeys.length && /* @__PURE__ */ React23.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key, index) => {
943
+ /* @__PURE__ */ React23.createElement(import_ui17.Typography, { component: "label", variant: "caption", color: "text.secondary" }, label),
944
+ /* @__PURE__ */ React23.createElement(ControlAdornments, null),
945
+ /* @__PURE__ */ React23.createElement(
946
+ import_ui17.IconButton,
947
+ {
948
+ sx: { ml: "auto" },
949
+ size: SIZE,
950
+ onClick: addRepeaterItem,
951
+ "aria-label": (0, import_i18n4.__)("Add item", "elementor")
952
+ },
953
+ /* @__PURE__ */ React23.createElement(import_icons3.PlusIcon, { fontSize: SIZE })
954
+ )
955
+ ), 0 < uniqueKeys.length && /* @__PURE__ */ React23.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key, index) => {
944
956
  const value = items[index];
945
957
  if (!value) {
946
958
  return null;
@@ -1923,7 +1935,8 @@ var LinkControl = createControl((props) => {
1923
1935
  direction: "row",
1924
1936
  sx: {
1925
1937
  justifyContent: "space-between",
1926
- alignItems: "center"
1938
+ alignItems: "center",
1939
+ marginInlineEnd: -0.75
1927
1940
  }
1928
1941
  },
1929
1942
  /* @__PURE__ */ React34.createElement(ControlFormLabel, null, (0, import_i18n9.__)("Link", "elementor")),
@@ -1962,7 +1975,7 @@ var SwitchControl = ({ disabled }) => {
1962
1975
  opacity: 0
1963
1976
  }
1964
1977
  } : {};
1965
- return /* @__PURE__ */ React34.createElement(import_ui27.Grid, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React34.createElement(import_ui27.Grid, { item: true }, /* @__PURE__ */ React34.createElement(ControlFormLabel, null, (0, import_i18n9.__)("Open in a new tab", "elementor"))), /* @__PURE__ */ React34.createElement(import_ui27.Grid, { item: true }, /* @__PURE__ */ React34.createElement(import_ui27.Switch, { checked: value, onClick, disabled, inputProps })));
1978
+ return /* @__PURE__ */ React34.createElement(import_ui27.Grid, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React34.createElement(import_ui27.Grid, { item: true }, /* @__PURE__ */ React34.createElement(ControlFormLabel, null, (0, import_i18n9.__)("Open in a new tab", "elementor"))), /* @__PURE__ */ React34.createElement(import_ui27.Grid, { item: true, sx: { marginInlineEnd: -1 } }, /* @__PURE__ */ React34.createElement(import_ui27.Switch, { checked: value, onClick, disabled, inputProps })));
1966
1979
  };
1967
1980
  async function fetchOptions(ajaxUrl, params) {
1968
1981
  if (!params || !ajaxUrl) {