@elementor/editor-controls 3.32.0-39 → 3.32.0-41
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 +18 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/components/section-content.tsx +1 -1
- package/src/components/unstable-repeater/actions/tooltip-add-item-action.tsx +1 -1
- package/src/components/unstable-repeater/header/header.tsx +8 -2
- package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -1117,7 +1117,7 @@ var import_i18n4 = require("@wordpress/i18n");
|
|
|
1117
1117
|
// src/components/section-content.tsx
|
|
1118
1118
|
var React18 = __toESM(require("react"));
|
|
1119
1119
|
var import_ui13 = require("@elementor/ui");
|
|
1120
|
-
var SectionContent = ({ gap =
|
|
1120
|
+
var SectionContent = ({ gap = 0.5, sx, children }) => /* @__PURE__ */ React18.createElement(import_ui13.Stack, { gap, sx: { ...sx } }, children);
|
|
1121
1121
|
|
|
1122
1122
|
// src/controls/color-control.tsx
|
|
1123
1123
|
var React19 = __toESM(require("react"));
|
|
@@ -3434,7 +3434,7 @@ var TooltipAddItemAction = ({
|
|
|
3434
3434
|
}) => {
|
|
3435
3435
|
const { addItem } = useRepeaterContext();
|
|
3436
3436
|
const onClick = (ev) => addItem(ev, { index: newItemIndex });
|
|
3437
|
-
return /* @__PURE__ */ React50.createElement(ConditionalToolTip, { content: tooltipContent, enable: enableTooltip }, /* @__PURE__ */ React50.createElement(import_ui42.Box,
|
|
3437
|
+
return /* @__PURE__ */ React50.createElement(ConditionalToolTip, { content: tooltipContent, enable: enableTooltip }, /* @__PURE__ */ React50.createElement(import_ui42.Box, { sx: { ml: "auto" } }, /* @__PURE__ */ React50.createElement(
|
|
3438
3438
|
import_ui42.IconButton,
|
|
3439
3439
|
{
|
|
3440
3440
|
size: SIZE4,
|
|
@@ -3602,7 +3602,20 @@ var TransformBaseControl = ({ anchorRef }) => {
|
|
|
3602
3602
|
// src/components/unstable-repeater/header/header.tsx
|
|
3603
3603
|
var Header = ({ label, children }) => {
|
|
3604
3604
|
const { value } = useBoundProp();
|
|
3605
|
-
return /* @__PURE__ */ React54.createElement(
|
|
3605
|
+
return /* @__PURE__ */ React54.createElement(
|
|
3606
|
+
import_ui46.Stack,
|
|
3607
|
+
{
|
|
3608
|
+
direction: "row",
|
|
3609
|
+
justifyContent: "start",
|
|
3610
|
+
alignItems: "center",
|
|
3611
|
+
gap: 1,
|
|
3612
|
+
sx: { marginInlineEnd: -0.75, py: 0.25 }
|
|
3613
|
+
},
|
|
3614
|
+
/* @__PURE__ */ React54.createElement(import_ui46.Typography, { component: "label", variant: "caption", color: "text.secondary", sx: { lineHeight: 1 } }, label),
|
|
3615
|
+
/* @__PURE__ */ React54.createElement(RepeaterHeaderActionsSlot, { value }),
|
|
3616
|
+
/* @__PURE__ */ React54.createElement(SlotChildren, { whitelist: [TransformBaseControl, TooltipAddItemAction], sorted: true }, children),
|
|
3617
|
+
/* @__PURE__ */ React54.createElement(ControlAdornments, null)
|
|
3618
|
+
);
|
|
3606
3619
|
};
|
|
3607
3620
|
|
|
3608
3621
|
// src/components/unstable-repeater/items/items-container.tsx
|
|
@@ -4200,8 +4213,8 @@ var ItemIconImage = ({ value }) => {
|
|
|
4200
4213
|
{
|
|
4201
4214
|
image: imageUrl,
|
|
4202
4215
|
sx: (theme) => ({
|
|
4203
|
-
height: "
|
|
4204
|
-
width: "
|
|
4216
|
+
height: "1rem",
|
|
4217
|
+
width: "1rem",
|
|
4205
4218
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
4206
4219
|
outline: `1px solid ${theme.palette.action.disabled}`
|
|
4207
4220
|
})
|