import * as react from 'react'; import { ElementType, ReactElement, ChangeEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ResponsiveProp } from '../../styling/src/useResponsiveValue.js'; import { OmitInternalProps } from '../../shared/src/types.js'; import { AbstractInputProps } from '../../input/src/types.js'; import { BoxProps } from '../../box/src/Box.js'; import '../../styling/src/BreakpointProvider.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; import '../../group/src/Group.js'; import '../../layout/src/Flex.js'; type AbstractTextInputProps = AbstractInputProps & { /** * [Button](/?path=/docs/button--default-story) component rendered after the value. */ button?: ReactElement; /** * The default value of `value` when uncontrolled. */ defaultValue?: string; /** * Whether or not the input take up the width of its container. */ fluid?: ResponsiveProp; /** * [Icon](/?path=/docs/icon--default-story) component rendered before the value. */ icon?: ReactElement; /** * Whether or not to render a loader. */ loading?: boolean; /** * Called when the input value change. * @param {SyntheticEvent} event - React's original event. * @param {string} value - The new input value. * @returns {void} */ onValueChange?: (event: ChangeEvent, value: string) => void; /** * An input can vary in size. */ size?: ResponsiveProp<"sm" | "md">; /** * A controlled value. */ value?: string | null; /** * Additional props to render on the wrapper element. */ wrapperProps?: Partial; }; declare const DefaultElement = "input"; interface InnerTextInputProps extends AbstractTextInputProps { /** * The type of the input. */ type?: "text" | "password" | "search" | "url" | "tel" | "email"; } declare function InnerTextInput(props: InnerTextInputProps): react_jsx_runtime.JSX.Element; /** * A text input allow a user to enter and edit a text. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/text-input--default-story) */ declare const TextInput: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type TextInputProps = ComponentProps; export { type AbstractTextInputProps, InnerTextInput, type InnerTextInputProps, TextInput, type TextInputProps };