@elementor/editor-controls 0.29.0 → 0.30.0

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.mjs CHANGED
@@ -723,6 +723,11 @@ function ControlAdornments() {
723
723
  return /* @__PURE__ */ React21.createElement(React21.Fragment, null, items.map(({ Adornment, id }) => /* @__PURE__ */ React21.createElement(Adornment, { key: id })));
724
724
  }
725
725
 
726
+ // src/locations.ts
727
+ import { createReplaceableLocation } from "@elementor/locations";
728
+ var { Slot: RepeaterItemIconSlot, inject: injectIntoRepeaterItemIcon } = createReplaceableLocation();
729
+ var { Slot: RepeaterItemLabelSlot, inject: injectIntoRepeaterItemLabel } = createReplaceableLocation();
730
+
726
731
  // src/components/sortable.tsx
727
732
  import * as React22 from "react";
728
733
  import { GripVerticalIcon } from "@elementor/icons";
@@ -907,8 +912,8 @@ var Repeater = ({
907
912
  RepeaterItem,
908
913
  {
909
914
  disabled: value?.disabled,
910
- label: /* @__PURE__ */ React23.createElement(itemSettings.Label, { value }),
911
- startIcon: /* @__PURE__ */ React23.createElement(itemSettings.Icon, { value }),
915
+ label: /* @__PURE__ */ React23.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React23.createElement(itemSettings.Label, { value })),
916
+ startIcon: /* @__PURE__ */ React23.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React23.createElement(itemSettings.Icon, { value })),
912
917
  removeItem: () => removeRepeaterItem(index),
913
918
  duplicateItem: () => duplicateRepeaterItem(index),
914
919
  toggleDisableItem: () => toggleDisableRepeaterItem(index),
@@ -1002,7 +1007,7 @@ var BoxShadowRepeaterControl = createControl(() => {
1002
1007
  }
1003
1008
  ));
1004
1009
  });
1005
- var ItemIcon = ({ value }) => /* @__PURE__ */ React24.createElement(UnstableColorIndicator, { size: "inherit", component: "span", value: value.value.color.value });
1010
+ var ItemIcon = ({ value }) => /* @__PURE__ */ React24.createElement(UnstableColorIndicator, { size: "inherit", component: "span", value: value.value.color?.value });
1006
1011
  var ItemContent = ({ anchorEl, bind }) => {
1007
1012
  return /* @__PURE__ */ React24.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React24.createElement(Content, { anchorEl }));
1008
1013
  };
@@ -2943,6 +2948,8 @@ export {
2943
2948
  ToggleControl,
2944
2949
  UrlControl,
2945
2950
  createControlReplacementsRegistry,
2951
+ injectIntoRepeaterItemIcon,
2952
+ injectIntoRepeaterItemLabel,
2946
2953
  useBoundProp,
2947
2954
  useControlActions,
2948
2955
  useSyncExternalState