@elementor/editor-controls 3.35.0-473 → 3.35.0-475

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 CHANGED
@@ -12,8 +12,9 @@ type ImageControlProps = {
12
12
  label: string;
13
13
  value: string;
14
14
  }[];
15
+ label?: string;
15
16
  };
16
- declare const ImageControl: ControlComponent$1<({ sizes }: ImageControlProps) => React$1.JSX.Element>;
17
+ declare const ImageControl: ControlComponent$1<({ sizes, label }: ImageControlProps) => React$1.JSX.Element>;
17
18
 
18
19
  declare const TextControl: ControlComponent$1<({ placeholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
19
20
  placeholder?: string;
package/dist/index.d.ts CHANGED
@@ -12,8 +12,9 @@ type ImageControlProps = {
12
12
  label: string;
13
13
  value: string;
14
14
  }[];
15
+ label?: string;
15
16
  };
16
- declare const ImageControl: ControlComponent$1<({ sizes }: ImageControlProps) => React$1.JSX.Element>;
17
+ declare const ImageControl: ControlComponent$1<({ sizes, label }: ImageControlProps) => React$1.JSX.Element>;
17
18
 
18
19
  declare const TextControl: ControlComponent$1<({ placeholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
19
20
  placeholder?: string;
package/dist/index.js CHANGED
@@ -578,9 +578,9 @@ var SelectControl = createControl(
578
578
  );
579
579
 
580
580
  // src/controls/image-control.tsx
581
- var ImageControl = createControl(({ sizes }) => {
581
+ var ImageControl = createControl(({ sizes, label = (0, import_i18n2.__)("Image", "elementor") }) => {
582
582
  const propContext = useBoundProp(import_editor_props3.imagePropTypeUtil);
583
- return /* @__PURE__ */ React14.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React14.createElement(import_ui7.Stack, { gap: 1.5 }, /* @__PURE__ */ React14.createElement(ControlLabel, null, (0, import_i18n2.__)("Image", "elementor")), /* @__PURE__ */ React14.createElement(ImageSrcControl, null), /* @__PURE__ */ React14.createElement(import_ui7.Grid, { container: true, gap: 1.5, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React14.createElement(import_ui7.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React14.createElement(ControlFormLabel, null, (0, import_i18n2.__)("Resolution", "elementor"))), /* @__PURE__ */ React14.createElement(import_ui7.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React14.createElement(ImageSizeControl, { sizes })))));
583
+ return /* @__PURE__ */ React14.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React14.createElement(import_ui7.Stack, { gap: 1.5 }, /* @__PURE__ */ React14.createElement(ControlLabel, null, label), /* @__PURE__ */ React14.createElement(ImageSrcControl, null), /* @__PURE__ */ React14.createElement(import_ui7.Grid, { container: true, gap: 1.5, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React14.createElement(import_ui7.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React14.createElement(ControlFormLabel, null, (0, import_i18n2.__)("Resolution", "elementor"))), /* @__PURE__ */ React14.createElement(import_ui7.Grid, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React14.createElement(ImageSizeControl, { sizes })))));
584
584
  });
585
585
  var ImageSrcControl = () => {
586
586
  const { data: allowSvgUpload } = useUnfilteredFilesUpload();