@elementor/editor-editing-panel 4.4.0-1093 → 4.4.0-1094

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.mjs CHANGED
@@ -6329,7 +6329,12 @@ var AccordionItemsControl = ({ label }) => {
6329
6329
  );
6330
6330
  };
6331
6331
  var ItemLabel = ({ value }) => {
6332
- return /* @__PURE__ */ React96.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React96.createElement("span", null, value?.title));
6332
+ return /* @__PURE__ */ React96.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React96.createElement(AccordionItemRepeaterLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React96.createElement("span", null, value?.title));
6333
+ };
6334
+ var AccordionItemRepeaterLabel = ({ elementId, fallbackTitle }) => {
6335
+ const editorSettings = useElementEditorSettings2(elementId);
6336
+ const label = editorSettings?.title ?? fallbackTitle ?? "";
6337
+ return /* @__PURE__ */ React96.createElement("span", null, label);
6333
6338
  };
6334
6339
  var ItemContent = ({ value }) => {
6335
6340
  if (!value.id) {
@@ -6972,8 +6977,12 @@ var TabsControlContent = ({ label }) => {
6972
6977
  );
6973
6978
  };
6974
6979
  var ItemLabel3 = ({ value, index }) => {
6975
- const elementTitle = value?.title;
6976
- return /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React98.createElement("span", null, elementTitle), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
6980
+ return /* @__PURE__ */ React98.createElement(Stack17, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, value.id ? /* @__PURE__ */ React98.createElement(TabRepeaterLabel, { elementId: value.id, fallbackTitle: value.title }) : /* @__PURE__ */ React98.createElement("span", null, value?.title), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
6981
+ };
6982
+ var TabRepeaterLabel = ({ elementId, fallbackTitle }) => {
6983
+ const editorSettings = useElementEditorSettings4(elementId);
6984
+ const label = editorSettings?.title ?? fallbackTitle ?? "";
6985
+ return /* @__PURE__ */ React98.createElement("span", null, label);
6977
6986
  };
6978
6987
  var ItemDefaultTab = ({ index }) => {
6979
6988
  const { value: defaultItem } = useBoundProp8(numberPropTypeUtil4);