1 | import * as React from 'react';
|
2 | import type { FormControlProps } from './FormControl';
|
3 | type ContextFromPropsKey = 'color' | 'disabled' | 'error' | 'fullWidth' | 'hiddenLabel' | 'margin' | 'onBlur' | 'onFocus' | 'required' | 'size' | 'variant';
|
4 | export interface FormControlState extends Pick<FormControlProps, ContextFromPropsKey> {
|
5 | adornedStart: boolean;
|
6 | filled: boolean;
|
7 | focused: boolean;
|
8 | onEmpty: () => void;
|
9 | onFilled: () => void;
|
10 | registerEffect: () => void;
|
11 | setAdornedStart: React.Dispatch<React.SetStateAction<boolean>>;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | declare const FormControlContext: React.Context<FormControlState | undefined>;
|
17 | export default FormControlContext;
|