@elementor/editor-controls 3.32.0-45 → 3.32.0-47
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 +29 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/components/unstable-repeater/header/header.tsx +1 -1
- package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx +2 -0
- package/src/controls/filter-repeater-control.tsx +12 -2
- package/src/controls/repeatable-control.tsx +29 -27
- package/src/controls/transition-control/transition-selector.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1787,7 +1787,12 @@ var FilterRepeaterControl = createControl(({ filterPropName = "filter" }) => {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
));
|
|
1789
1789
|
});
|
|
1790
|
-
var
|
|
1790
|
+
var StyledUnstableColorIndicator = (0, import_ui23.styled)(import_ui23.UnstableColorIndicator)(({ theme }) => ({
|
|
1791
|
+
borderRadius: `${theme.shape.borderRadius / 2}px`
|
|
1792
|
+
}));
|
|
1793
|
+
var ItemIcon2 = ({ value }) => {
|
|
1794
|
+
return isSingleSize(value.value.func.value ?? "") ? /* @__PURE__ */ React30.createElement(React30.Fragment, null) : /* @__PURE__ */ React30.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: value.value.args.value.color.value });
|
|
1795
|
+
};
|
|
1791
1796
|
var ItemLabel2 = ({ value }) => {
|
|
1792
1797
|
return isSingleSize(value.value.func.value ?? "") ? /* @__PURE__ */ React30.createElement(SingleSizeItemLabel, { value }) : /* @__PURE__ */ React30.createElement(DropShadowItemLabel, { value });
|
|
1793
1798
|
};
|
|
@@ -3628,9 +3633,9 @@ var Header = ({ label, children }) => {
|
|
|
3628
3633
|
sx: { marginInlineEnd: -0.75, py: 0.25 }
|
|
3629
3634
|
},
|
|
3630
3635
|
/* @__PURE__ */ React54.createElement(import_ui46.Typography, { component: "label", variant: "caption", color: "text.secondary", sx: { lineHeight: 1 } }, label),
|
|
3636
|
+
/* @__PURE__ */ React54.createElement(ControlAdornments, null),
|
|
3631
3637
|
/* @__PURE__ */ React54.createElement(RepeaterHeaderActionsSlot, { value }),
|
|
3632
|
-
/* @__PURE__ */ React54.createElement(SlotChildren, { whitelist: [TransformBaseControl, TooltipAddItemAction], sorted: true }, children)
|
|
3633
|
-
/* @__PURE__ */ React54.createElement(ControlAdornments, null)
|
|
3638
|
+
/* @__PURE__ */ React54.createElement(SlotChildren, { whitelist: [TransformBaseControl, TooltipAddItemAction], sorted: true }, children)
|
|
3634
3639
|
);
|
|
3635
3640
|
};
|
|
3636
3641
|
|
|
@@ -4220,7 +4225,7 @@ var extractColorFrom = (prop) => {
|
|
|
4220
4225
|
};
|
|
4221
4226
|
var ItemIconColor = ({ value: prop }) => {
|
|
4222
4227
|
const color = extractColorFrom(prop);
|
|
4223
|
-
return /* @__PURE__ */ React67.createElement(
|
|
4228
|
+
return /* @__PURE__ */ React67.createElement(StyledUnstableColorIndicator2, { size: "inherit", component: "span", value: color });
|
|
4224
4229
|
};
|
|
4225
4230
|
var ItemIconImage = ({ value }) => {
|
|
4226
4231
|
const { imageUrl } = useImage(value);
|
|
@@ -4239,7 +4244,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
4239
4244
|
};
|
|
4240
4245
|
var ItemIconGradient = ({ value }) => {
|
|
4241
4246
|
const gradient = getGradientValue(value);
|
|
4242
|
-
return /* @__PURE__ */ React67.createElement(
|
|
4247
|
+
return /* @__PURE__ */ React67.createElement(StyledUnstableColorIndicator2, { size: "inherit", component: "span", value: gradient });
|
|
4243
4248
|
};
|
|
4244
4249
|
var ItemLabel3 = ({ value }) => {
|
|
4245
4250
|
switch (value.$$type) {
|
|
@@ -4275,7 +4280,9 @@ var ImageOverlayContent = () => {
|
|
|
4275
4280
|
const propContext = useBoundProp(import_editor_props31.backgroundImageOverlayPropTypeUtil);
|
|
4276
4281
|
return /* @__PURE__ */ React67.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React67.createElement(PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React67.createElement(ImageControl, { sizes: backgroundResolutionOptions })), /* @__PURE__ */ React67.createElement(PropKeyProvider, { bind: "position" }, /* @__PURE__ */ React67.createElement(BackgroundImageOverlayPosition, null)), /* @__PURE__ */ React67.createElement(PropKeyProvider, { bind: "repeat" }, /* @__PURE__ */ React67.createElement(BackgroundImageOverlayRepeat, null)), /* @__PURE__ */ React67.createElement(PropKeyProvider, { bind: "size" }, /* @__PURE__ */ React67.createElement(BackgroundImageOverlaySize, null)), /* @__PURE__ */ React67.createElement(PropKeyProvider, { bind: "attachment" }, /* @__PURE__ */ React67.createElement(BackgroundImageOverlayAttachment, null)));
|
|
4277
4282
|
};
|
|
4278
|
-
var
|
|
4283
|
+
var StyledUnstableColorIndicator2 = (0, import_ui58.styled)(import_ui58.UnstableColorIndicator)(({ theme }) => ({
|
|
4284
|
+
height: "1rem",
|
|
4285
|
+
width: "1rem",
|
|
4279
4286
|
borderRadius: `${theme.shape.borderRadius / 2}px`
|
|
4280
4287
|
}));
|
|
4281
4288
|
var useImage = (image) => {
|
|
@@ -4363,28 +4370,26 @@ var RepeatableControl = createControl(
|
|
|
4363
4370
|
);
|
|
4364
4371
|
const { propType, value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
4365
4372
|
return /* @__PURE__ */ React69.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React69.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React69.createElement(
|
|
4366
|
-
|
|
4373
|
+
UnstableRepeater,
|
|
4367
4374
|
{
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
initialValues: childPropTypeUtil.create(initialValues || null)
|
|
4375
|
+
initial: childPropTypeUtil.create(initialValues || null),
|
|
4376
|
+
propTypeUtil: childArrayPropTypeUtil
|
|
4377
|
+
},
|
|
4378
|
+
/* @__PURE__ */ React69.createElement(Header, { label: repeaterLabel }, /* @__PURE__ */ React69.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
|
|
4379
|
+
/* @__PURE__ */ React69.createElement(
|
|
4380
|
+
ItemsContainer,
|
|
4381
|
+
{
|
|
4382
|
+
isSortable: false,
|
|
4383
|
+
itemTemplate: /* @__PURE__ */ React69.createElement(Item, { Icon: ItemIcon4, Label: ItemLabel4 })
|
|
4378
4384
|
},
|
|
4379
|
-
showDuplicate,
|
|
4380
|
-
showToggle
|
|
4381
|
-
|
|
4385
|
+
showDuplicate && /* @__PURE__ */ React69.createElement(DuplicateItemAction, null),
|
|
4386
|
+
showToggle && /* @__PURE__ */ React69.createElement(DisableItemAction, null),
|
|
4387
|
+
/* @__PURE__ */ React69.createElement(RemoveItemAction, null)
|
|
4388
|
+
),
|
|
4389
|
+
/* @__PURE__ */ React69.createElement(EditItemPopover, null, /* @__PURE__ */ React69.createElement(Content3, null))
|
|
4382
4390
|
)));
|
|
4383
4391
|
}
|
|
4384
4392
|
);
|
|
4385
|
-
var ItemContent4 = ({ bind }) => {
|
|
4386
|
-
return /* @__PURE__ */ React69.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React69.createElement(Content3, null));
|
|
4387
|
-
};
|
|
4388
4393
|
var ItemIcon4 = () => /* @__PURE__ */ React69.createElement(React69.Fragment, null);
|
|
4389
4394
|
var Content3 = () => {
|
|
4390
4395
|
const { component: ChildControl, props = {} } = useRepeatableControlContext();
|
|
@@ -5076,7 +5081,7 @@ var TransitionSelector = ({ recentlyUsedList }) => {
|
|
|
5076
5081
|
}
|
|
5077
5082
|
return [
|
|
5078
5083
|
{
|
|
5079
|
-
label: (0, import_i18n43.__)("
|
|
5084
|
+
label: (0, import_i18n43.__)("Recently Used", "elementor"),
|
|
5080
5085
|
items: recentItems
|
|
5081
5086
|
},
|
|
5082
5087
|
...filteredItems
|