@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.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
- package/src/controls-registry/element-controls/accordion-items-control/accordion-items-control.tsx +12 -1
- package/src/controls-registry/element-controls/tabs-control/tabs-control.tsx +12 -3
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
|
-
|
|
6875
|
-
|
|
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);
|