@lumx/react 4.15.0-next.0 → 4.15.0

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
@@ -2022,6 +2022,8 @@ interface RawInputTextProps$1 extends HasTheme, HasClassName {
2022
2022
  ref?: CommonRef;
2023
2023
  handleChange?: (value: string, name?: string, event?: any) => void;
2024
2024
  handleInput?: (value: string, name?: string, event?: any) => void;
2025
+ handleFocus?: (event?: any) => void;
2026
+ handleBlur?: (event?: any) => void;
2025
2027
  }
2026
2028
 
2027
2029
  type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
@@ -2048,6 +2050,8 @@ interface RawInputTextareaProps$1 extends HasTheme, HasClassName {
2048
2050
  ref?: CommonRef;
2049
2051
  handleChange?: (value: string, name?: string, event?: any) => void;
2050
2052
  handleInput?: (value: string, name?: string, event?: any) => void;
2053
+ handleFocus?: (event?: any) => void;
2054
+ handleBlur?: (event?: any) => void;
2051
2055
  }
2052
2056
 
2053
2057
  type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
package/index.js CHANGED
@@ -7740,6 +7740,8 @@ const RawInputText$1 = props => {
7740
7740
  value,
7741
7741
  handleChange,
7742
7742
  handleInput,
7743
+ handleFocus,
7744
+ handleBlur,
7743
7745
  type = DEFAULT_PROPS$11.type,
7744
7746
  name,
7745
7747
  ref,
@@ -7762,6 +7764,8 @@ const RawInputText$1 = props => {
7762
7764
  })),
7763
7765
  onChange: handleOnChange,
7764
7766
  onInput: handleOnInput,
7767
+ onFocus: handleFocus,
7768
+ onBlur: handleBlur,
7765
7769
  value: value
7766
7770
  });
7767
7771
  };
@@ -7775,13 +7779,17 @@ const RawInputText = forwardRef((props, ref) => {
7775
7779
  const {
7776
7780
  theme = defaultTheme,
7777
7781
  onChange,
7782
+ onFocus,
7783
+ onBlur,
7778
7784
  ...restOfProps
7779
7785
  } = props;
7780
7786
  return RawInputText$1({
7781
7787
  ...restOfProps,
7782
7788
  ref,
7783
7789
  theme,
7784
- handleChange: onChange
7790
+ handleChange: onChange,
7791
+ handleFocus: onFocus,
7792
+ handleBlur: onBlur
7785
7793
  });
7786
7794
  });
7787
7795
 
@@ -7811,6 +7819,8 @@ const RawInputTextarea$1 = props => {
7811
7819
  value,
7812
7820
  handleChange,
7813
7821
  handleInput,
7822
+ handleFocus,
7823
+ handleBlur,
7814
7824
  rows = DEFAULT_PROPS$10.rows,
7815
7825
  name,
7816
7826
  ref,
@@ -7832,6 +7842,8 @@ const RawInputTextarea$1 = props => {
7832
7842
  })),
7833
7843
  onChange: handleOnChange,
7834
7844
  onInput: handleOnInput,
7845
+ onFocus: handleFocus,
7846
+ onBlur: handleBlur,
7835
7847
  value: value,
7836
7848
  rows: rows
7837
7849
  });
@@ -7900,6 +7912,8 @@ const RawInputTextarea = forwardRef((props, ref) => {
7900
7912
  minimumRows = DEFAULT_PROPS$$.minimumRows,
7901
7913
  value,
7902
7914
  onChange,
7915
+ onFocus,
7916
+ onBlur,
7903
7917
  ...restOfProps
7904
7918
  } = props;
7905
7919
  const textareaRef = useRef(null);
@@ -7910,7 +7924,9 @@ const RawInputTextarea = forwardRef((props, ref) => {
7910
7924
  theme,
7911
7925
  value,
7912
7926
  rows,
7913
- handleChange: onChange
7927
+ handleChange: onChange,
7928
+ handleFocus: onFocus,
7929
+ handleBlur: onBlur
7914
7930
  });
7915
7931
  });
7916
7932