@elementor/editor-controls 4.0.0-519 → 4.0.0-520

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
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
3
- import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, Theme, FormLabelProps, Grid } from '@elementor/ui';
3
+ import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
4
4
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, TransformablePropValue, PropType, CreateOptions, SizePropValue } from '@elementor/editor-props';
5
5
  import { StyleDefinitionState } from '@elementor/editor-styles';
6
6
  import { EditorProps, EditorView } from '@tiptap/pm/view';
@@ -578,8 +578,9 @@ type Props$1<TValue> = {
578
578
  onChange: (value: TValue) => void;
579
579
  onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
580
580
  disabled?: boolean;
581
+ InputProps?: TextFieldProps['InputProps'];
581
582
  };
582
- declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, defaultValue, onChange, onBlur, units, }: Props$1<T>) => React$1.JSX.Element;
583
+ declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, defaultValue, onChange, onBlur, units, }: Props$1<T>) => React$1.JSX.Element;
583
584
 
584
585
  type AnyComponentType = ComponentType<any>;
585
586
  declare const brandSymbol: unique symbol;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
3
- import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, Theme, FormLabelProps, Grid } from '@elementor/ui';
3
+ import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
4
4
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, TransformablePropValue, PropType, CreateOptions, SizePropValue } from '@elementor/editor-props';
5
5
  import { StyleDefinitionState } from '@elementor/editor-styles';
6
6
  import { EditorProps, EditorView } from '@tiptap/pm/view';
@@ -578,8 +578,9 @@ type Props$1<TValue> = {
578
578
  onChange: (value: TValue) => void;
579
579
  onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
580
580
  disabled?: boolean;
581
+ InputProps?: TextFieldProps['InputProps'];
581
582
  };
582
- declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, defaultValue, onChange, onBlur, units, }: Props$1<T>) => React$1.JSX.Element;
583
+ declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, defaultValue, onChange, onBlur, units, }: Props$1<T>) => React$1.JSX.Element;
583
584
 
584
585
  type AnyComponentType = ComponentType<any>;
585
586
  declare const brandSymbol: unique symbol;
package/dist/index.js CHANGED
@@ -7034,6 +7034,7 @@ var DEFAULT_VALUE = {
7034
7034
  };
7035
7035
  var UnstableSizeField = ({
7036
7036
  value,
7037
+ InputProps,
7037
7038
  defaultValue,
7038
7039
  onChange,
7039
7040
  onBlur,
@@ -7054,6 +7055,7 @@ var UnstableSizeField = ({
7054
7055
  onBlur,
7055
7056
  onChange: (event) => setSize(event.target.value),
7056
7057
  InputProps: {
7058
+ ...InputProps,
7057
7059
  endAdornment: /* @__PURE__ */ React106.createElement(import_ui91.InputAdornment, { position: "end" }, /* @__PURE__ */ React106.createElement(
7058
7060
  UnitSelect,
7059
7061
  {