@saleor/macaw-ui
Version:
Saleor's UI component library
29 lines (27 loc) • 900 B
TypeScript
import { ChangeHandler, InputValue } from './types';
import { InputProps } from './Input';
import { LabelVariants } from '../BaseInput';
import { ReactNode } from 'react';
export declare const useStateEvents: (value: InputValue, type: InputProps["type"], changeHandler?: ChangeHandler) => {
handlers: {
onFocus: () => void;
onBlur: () => void;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
};
value: InputValue;
active: boolean;
typed: boolean;
};
type InputWrapperProps = LabelVariants & {
id?: string;
label?: ReactNode;
className?: string;
error?: boolean;
children: ReactNode;
endAdornment?: ReactNode;
};
export declare const InputWrapper: {
({ children, id, typed, active, disabled, size, label, error, className, endAdornment, }: InputWrapperProps): JSX.Element;
displayName: string;
};
export {};