UNPKG

@trail-ui/react

Version:
40 lines (37 loc) 2.29 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import react__default from 'react'; import { GroupProps, LabelProps, TextProps, TextFieldProps, FieldErrorProps, InputProps, TextAreaProps, SearchFieldProps as SearchFieldProps$1 } from 'react-aria-components'; declare const LabeledGroup: react__default.ForwardRefExoticComponent<GroupProps & react__default.RefAttributes<HTMLDivElement>>; declare function Label({ requiredHint, isDisabled, ...props }: LabelProps & { requiredHint?: boolean; isDisabled?: boolean; }): react_jsx_runtime.JSX.Element; declare function WithLabelContext({ children, }: { children: (context: { 'aria-labelledBy'?: string; } | null) => react__default.ReactNode; }): react__default.ReactNode; declare const DescriptionContext: react__default.Context<{ 'aria-describedby'?: string; } | null>; declare function WithDescriptionContext({ children, }: { children: (context: { 'aria-describedby'?: string; } | null) => react__default.ReactNode; }): react__default.ReactNode; declare function DescriptionProvider({ children }: { children: react__default.ReactNode; }): react_jsx_runtime.JSX.Element; declare function Description({ className, ...props }: TextProps): react_jsx_runtime.JSX.Element; declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element; declare function FieldError(props: FieldErrorProps): react_jsx_runtime.JSX.Element; declare const InputFieldGroup: react__default.ForwardRefExoticComponent<GroupProps & react__default.RefAttributes<HTMLDivElement>>; declare const Input: react__default.ForwardRefExoticComponent<InputProps & react__default.RefAttributes<HTMLInputElement>>; declare function TextArea(props: TextAreaProps): react_jsx_runtime.JSX.Element; interface SearchFieldProps extends SearchFieldProps$1 { } declare function SearchField(props: SearchFieldProps): react_jsx_runtime.JSX.Element; declare function SearchInput({ className, ...props }: InputProps & { className?: GroupProps['className']; }): react_jsx_runtime.JSX.Element; export { Description, DescriptionContext, DescriptionProvider, FieldError, Input, InputFieldGroup, Label, LabeledGroup, SearchField, SearchFieldProps, SearchInput, TextArea, TextField, WithDescriptionContext, WithLabelContext };