@elementor/editor-controls 3.35.0-474 → 3.35.0-476

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
@@ -480,9 +480,9 @@ var SelectControl = createControl(
480
480
  );
481
481
 
482
482
  // src/controls/image-control.tsx
483
- var ImageControl = createControl(({ sizes }) => {
483
+ var ImageControl = createControl(({ sizes, label = __2("Image", "elementor") }) => {
484
484
  const propContext = useBoundProp(imagePropTypeUtil);
485
- return /* @__PURE__ */ React14.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React14.createElement(Stack3, { gap: 1.5 }, /* @__PURE__ */ React14.createElement(ControlLabel, null, __2("Image", "elementor")), /* @__PURE__ */ React14.createElement(ImageSrcControl, null), /* @__PURE__ */ React14.createElement(Grid, { container: true, gap: 1.5, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React14.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React14.createElement(ControlFormLabel, null, __2("Resolution", "elementor"))), /* @__PURE__ */ React14.createElement(Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React14.createElement(ImageSizeControl, { sizes })))));
485
+ return /* @__PURE__ */ React14.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React14.createElement(Stack3, { gap: 1.5 }, /* @__PURE__ */ React14.createElement(ControlLabel, null, label), /* @__PURE__ */ React14.createElement(ImageSrcControl, null), /* @__PURE__ */ React14.createElement(Grid, { container: true, gap: 1.5, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React14.createElement(Grid, { item: true, xs: 6 }, /* @__PURE__ */ React14.createElement(ControlFormLabel, null, __2("Resolution", "elementor"))), /* @__PURE__ */ React14.createElement(Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React14.createElement(ImageSizeControl, { sizes })))));
486
486
  });
487
487
  var ImageSrcControl = () => {
488
488
  const { data: allowSvgUpload } = useUnfilteredFilesUpload();