@ssplib/react-components 0.0.338 → 0.0.339

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.
@@ -25,6 +25,8 @@ interface InputOwnProps {
25
25
  inputMaxLength?: number;
26
26
  /** Validação customizada */
27
27
  customValidate?: (value: string, form: Record<string, any>) => string | undefined;
28
+ /** Valor observado externamente: quando informado, o campo é sincronizado com esse valor (ex.: watchValue={context.formWatch('outroCampo')}) */
29
+ watchValue?: string;
28
30
  /** Props do Grid container */
29
31
  gridProps?: Omit<GridProps, 'item' | 'xs' | 'sm' | 'md'>;
30
32
  /** Props do InputLabel */
@@ -36,6 +38,6 @@ interface GridLayoutProps {
36
38
  md?: GridProps['md'];
37
39
  }
38
40
  export type InputProps = InputOwnProps & GridLayoutProps & Omit<TextFieldProps, OmittedTextFieldProps | keyof InputOwnProps>;
39
- export declare function Input({ type, name, title, required, numberMask, customPlaceholder, defaultValue, inputMinLength, inputMaxLength, customValidate, xs, sm, md, gridProps, labelProps, disabled, sx, InputProps: inputPropsFromUser, InputLabelProps: inputLabelPropsFromUser, ...textFieldProps }: InputProps): JSX.Element;
41
+ export declare function Input({ type, name, title, required, numberMask, customPlaceholder, defaultValue, inputMinLength, inputMaxLength, customValidate, watchValue, xs, sm, md, gridProps, labelProps, disabled, sx, InputProps: inputPropsFromUser, InputLabelProps: inputLabelPropsFromUser, ...textFieldProps }: InputProps): JSX.Element;
40
42
  declare const _default: React.MemoExoticComponent<typeof Input>;
41
43
  export default _default;