@elementor/editor-controls 4.1.0-817 → 4.1.0-819

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
@@ -190,13 +190,14 @@ type ToggleControlProps<T extends PropValue> = {
190
190
  };
191
191
  declare const ToggleControl: ControlComponent$1<({ options, fullWidth, size, exclusive, maxItems, convertOptions, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
192
192
 
193
- declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, }: {
193
+ declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, disabled: inputDisabled, }: {
194
194
  placeholder?: string;
195
195
  max?: number;
196
196
  min?: number;
197
197
  step?: number;
198
198
  shouldForceInt?: boolean;
199
199
  startIcon?: React$1.ReactNode;
200
+ disabled?: boolean;
200
201
  }) => React$1.JSX.Element>;
201
202
 
202
203
  type MultiSizePropValue = Record<PropKey, PropValue>;
package/dist/index.d.ts CHANGED
@@ -190,13 +190,14 @@ type ToggleControlProps<T extends PropValue> = {
190
190
  };
191
191
  declare const ToggleControl: ControlComponent$1<({ options, fullWidth, size, exclusive, maxItems, convertOptions, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
192
192
 
193
- declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, }: {
193
+ declare const NumberControl: ControlComponent$1<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, startIcon, disabled: inputDisabled, }: {
194
194
  placeholder?: string;
195
195
  max?: number;
196
196
  min?: number;
197
197
  step?: number;
198
198
  shouldForceInt?: boolean;
199
199
  startIcon?: React$1.ReactNode;
200
+ disabled?: boolean;
200
201
  }) => React$1.JSX.Element>;
201
202
 
202
203
  type MultiSizePropValue = Record<PropKey, PropValue>;
package/dist/index.js CHANGED
@@ -2951,7 +2951,8 @@ var NumberControl = createControl(
2951
2951
  min = -Number.MAX_SAFE_INTEGER,
2952
2952
  step = 1,
2953
2953
  shouldForceInt = false,
2954
- startIcon
2954
+ startIcon,
2955
+ disabled: inputDisabled
2955
2956
  }) => {
2956
2957
  const { value, setValue, placeholder, disabled, restoreValue, propType } = useBoundProp(import_editor_props19.numberPropTypeUtil);
2957
2958
  const handleChange = (event) => {
@@ -2977,14 +2978,14 @@ var NumberControl = createControl(
2977
2978
  size: "tiny",
2978
2979
  type: "number",
2979
2980
  fullWidth: true,
2980
- disabled,
2981
+ disabled: inputDisabled ?? disabled,
2981
2982
  value: isEmptyOrNaN(value) ? "" : value,
2982
2983
  onInput: handleChange,
2983
2984
  onBlur: restoreValue,
2984
2985
  placeholder: labelPlaceholder ?? (isEmptyOrNaN(placeholder) ? "" : String(placeholder)),
2985
2986
  inputProps: { step, min },
2986
2987
  InputProps: {
2987
- startAdornment: startIcon ? /* @__PURE__ */ React56.createElement(import_ui41.InputAdornment, { position: "start", disabled }, startIcon) : void 0,
2988
+ startAdornment: startIcon ? /* @__PURE__ */ React56.createElement(import_ui41.InputAdornment, { position: "start", disabled: inputDisabled ?? disabled }, startIcon) : void 0,
2988
2989
  endAdornment: renderSuffix(propType)
2989
2990
  }
2990
2991
  }