@lumx/react 4.9.0-next.17 → 4.9.0-next.18

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/index.d.ts CHANGED
@@ -1889,6 +1889,7 @@ interface RawInputTextProps$1 extends HasTheme, HasClassName {
1889
1889
  name?: string | undefined;
1890
1890
  ref?: CommonRef;
1891
1891
  handleChange?: (value: string, name?: string, event?: any) => void;
1892
+ handleInput?: (value: string, name?: string, event?: any) => void;
1892
1893
  }
1893
1894
 
1894
1895
  type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
@@ -1914,6 +1915,7 @@ interface RawInputTextareaProps$1 extends HasTheme, HasClassName {
1914
1915
  name?: string | undefined;
1915
1916
  ref?: CommonRef;
1916
1917
  handleChange?: (value: string, name?: string, event?: any) => void;
1918
+ handleInput?: (value: string, name?: string, event?: any) => void;
1917
1919
  }
1918
1920
 
1919
1921
  type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
package/index.js CHANGED
@@ -7016,6 +7016,7 @@ const RawInputText$1 = props => {
7016
7016
  theme,
7017
7017
  value,
7018
7018
  handleChange,
7019
+ handleInput,
7019
7020
  type = DEFAULT_PROPS$10.type,
7020
7021
  name,
7021
7022
  ref,
@@ -7024,6 +7025,9 @@ const RawInputText$1 = props => {
7024
7025
  const handleOnChange = evt => {
7025
7026
  handleChange?.(evt.target.value, name, evt);
7026
7027
  };
7028
+ const handleOnInput = evt => {
7029
+ handleInput?.(evt.target.value, name, evt);
7030
+ };
7027
7031
  return /*#__PURE__*/jsx("input", {
7028
7032
  ...forwardedProps,
7029
7033
  name: name,
@@ -7034,6 +7038,7 @@ const RawInputText$1 = props => {
7034
7038
  text: true
7035
7039
  })),
7036
7040
  onChange: handleOnChange,
7041
+ onInput: handleOnInput,
7037
7042
  value: value
7038
7043
  });
7039
7044
  };
@@ -7082,6 +7087,7 @@ const RawInputTextarea$1 = props => {
7082
7087
  theme,
7083
7088
  value,
7084
7089
  handleChange,
7090
+ handleInput,
7085
7091
  rows = DEFAULT_PROPS$$.rows,
7086
7092
  name,
7087
7093
  ref,
@@ -7090,6 +7096,9 @@ const RawInputTextarea$1 = props => {
7090
7096
  const handleOnChange = evt => {
7091
7097
  handleChange?.(evt.target.value, name, evt);
7092
7098
  };
7099
+ const handleOnInput = evt => {
7100
+ handleInput?.(evt.target.value, name, evt);
7101
+ };
7093
7102
  return /*#__PURE__*/jsx("textarea", {
7094
7103
  ...forwardedProps,
7095
7104
  name: name,
@@ -7099,6 +7108,7 @@ const RawInputTextarea$1 = props => {
7099
7108
  textarea: true
7100
7109
  })),
7101
7110
  onChange: handleOnChange,
7111
+ onInput: handleOnInput,
7102
7112
  value: value,
7103
7113
  rows: rows
7104
7114
  });