@elementor/editor-controls 3.33.0-274 → 3.33.0-275
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/repeater/repeater.tsx +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -488,7 +488,7 @@ type BaseItemSettings<T> = {
|
|
|
488
488
|
value: T;
|
|
489
489
|
}>;
|
|
490
490
|
Content: RepeaterItemContent<T>;
|
|
491
|
-
actions?: React$1.ReactNode;
|
|
491
|
+
actions?: (value: T) => React$1.ReactNode;
|
|
492
492
|
};
|
|
493
493
|
type SortableItemSettings<T> = BaseItemSettings<T> & {
|
|
494
494
|
getId: ({ item, index }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ type BaseItemSettings<T> = {
|
|
|
488
488
|
value: T;
|
|
489
489
|
}>;
|
|
490
490
|
Content: RepeaterItemContent<T>;
|
|
491
|
-
actions?: React$1.ReactNode;
|
|
491
|
+
actions?: (value: T) => React$1.ReactNode;
|
|
492
492
|
};
|
|
493
493
|
type SortableItemSettings<T> = BaseItemSettings<T> & {
|
|
494
494
|
getId: ({ item, index }: {
|
package/dist/index.js
CHANGED
|
@@ -6013,7 +6013,8 @@ var Repeater3 = ({
|
|
|
6013
6013
|
showDuplicate,
|
|
6014
6014
|
showToggle,
|
|
6015
6015
|
showRemove,
|
|
6016
|
-
actions: itemSettings.actions
|
|
6016
|
+
actions: itemSettings.actions,
|
|
6017
|
+
value
|
|
6017
6018
|
},
|
|
6018
6019
|
(props) => /* @__PURE__ */ React102.createElement(
|
|
6019
6020
|
itemSettings.Content,
|
|
@@ -6041,7 +6042,8 @@ var RepeaterItem = ({
|
|
|
6041
6042
|
showToggle,
|
|
6042
6043
|
showRemove,
|
|
6043
6044
|
disabled,
|
|
6044
|
-
actions
|
|
6045
|
+
actions,
|
|
6046
|
+
value
|
|
6045
6047
|
}) => {
|
|
6046
6048
|
const { popoverState, popoverProps, ref, setRef } = usePopover(openOnMount, onOpen);
|
|
6047
6049
|
const duplicateLabel = (0, import_i18n50.__)("Duplicate", "elementor");
|
|
@@ -6056,7 +6058,7 @@ var RepeaterItem = ({
|
|
|
6056
6058
|
"aria-label": (0, import_i18n50.__)("Open item", "elementor"),
|
|
6057
6059
|
...(0, import_ui87.bindTrigger)(popoverState),
|
|
6058
6060
|
startIcon,
|
|
6059
|
-
actions: /* @__PURE__ */ React102.createElement(React102.Fragment, null, showDuplicate && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React102.createElement(import_icons34.CopyIcon, { fontSize: SIZE9 }))), showToggle && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React102.createElement(import_icons34.EyeOffIcon, { fontSize: SIZE9 }) : /* @__PURE__ */ React102.createElement(import_icons34.EyeIcon, { fontSize: SIZE9 }))), actions, showRemove && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React102.createElement(import_icons34.XIcon, { fontSize: SIZE9 }))))
|
|
6061
|
+
actions: /* @__PURE__ */ React102.createElement(React102.Fragment, null, showDuplicate && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React102.createElement(import_icons34.CopyIcon, { fontSize: SIZE9 }))), showToggle && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React102.createElement(import_icons34.EyeOffIcon, { fontSize: SIZE9 }) : /* @__PURE__ */ React102.createElement(import_icons34.EyeIcon, { fontSize: SIZE9 }))), actions?.(value), showRemove && /* @__PURE__ */ React102.createElement(import_ui87.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(import_ui87.IconButton, { size: SIZE9, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React102.createElement(import_icons34.XIcon, { fontSize: SIZE9 }))))
|
|
6060
6062
|
}
|
|
6061
6063
|
), /* @__PURE__ */ React102.createElement(RepeaterPopover, { width: ref?.getBoundingClientRect().width, ...popoverProps, anchorEl: ref }, /* @__PURE__ */ React102.createElement(import_ui87.Box, null, children({ anchorEl: ref }))));
|
|
6062
6064
|
};
|