@elementor/editor-editing-panel 4.4.0-1092 → 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.js CHANGED
@@ -6249,7 +6249,12 @@ var AccordionItemsControl = ({ label }) => {
6249
6249
  );
6250
6250
  };
6251
6251
  var ItemLabel = ({ value }) => {
6252
- return /* @__PURE__ */ React96.createElement(import_ui48.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React96.createElement("span", null, value?.title));
6252
+ return /* @__PURE__ */ React96.createElement(import_ui48.Stack, { 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));
6253
+ };
6254
+ var AccordionItemRepeaterLabel = ({ elementId, fallbackTitle }) => {
6255
+ const editorSettings = (0, import_editor_elements19.useElementEditorSettings)(elementId);
6256
+ const label = editorSettings?.title ?? fallbackTitle ?? "";
6257
+ return /* @__PURE__ */ React96.createElement("span", null, label);
6253
6258
  };
6254
6259
  var ItemContent = ({ value }) => {
6255
6260
  if (!value.id) {
@@ -6871,8 +6876,12 @@ var TabsControlContent = ({ label }) => {
6871
6876
  );
6872
6877
  };
6873
6878
  var ItemLabel3 = ({ value, index }) => {
6874
- const elementTitle = value?.title;
6875
- return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React98.createElement("span", null, elementTitle), /* @__PURE__ */ React98.createElement(ItemDefaultTab, { index }));
6879
+ return /* @__PURE__ */ React98.createElement(import_ui50.Stack, { 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 }));
6880
+ };
6881
+ var TabRepeaterLabel = ({ elementId, fallbackTitle }) => {
6882
+ const editorSettings = (0, import_editor_elements25.useElementEditorSettings)(elementId);
6883
+ const label = editorSettings?.title ?? fallbackTitle ?? "";
6884
+ return /* @__PURE__ */ React98.createElement("span", null, label);
6876
6885
  };
6877
6886
  var ItemDefaultTab = ({ index }) => {
6878
6887
  const { value: defaultItem } = (0, import_editor_controls61.useBoundProp)(import_editor_props25.numberPropTypeUtil);