UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

55 lines 1.95 kB
import { GrowthBehavior, ErrorType } from '@workday/canvas-kit-react/common'; import { CSProps } from '@workday/canvas-kit-styling'; export interface TextInputProps extends GrowthBehavior, CSProps { /** * The type of error associated with the TextInput (if applicable). */ error?: ErrorType; /** * The width of the TextInput. */ width?: number | string; } export declare const textInputStencil: import("@workday/canvas-kit-styling").Stencil<{ grow: { true: { width: string; resize: string; }; false: { width: string; }; }; error: { error: { borderColor: "--cnvs-brand-common-error-inner"; borderWidth: string; backgroundColor: "--cnvs-brand-error-lightest"; '&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': { borderColor: "--cnvs-brand-common-error-inner"; }; '&:is(:focus-visible, .focus):not([disabled])': { boxShadow: string; outlineOffset: string; }; }; caution: { borderColor: "--cnvs-brand-common-alert-outer"; boxShadow: string; backgroundColor: "--cnvs-brand-alert-lightest"; '&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled]))': { borderColor: "--cnvs-brand-common-alert-outer"; }; '&:is(:focus-visible, .focus):not([disabled])': { boxShadow: string; }; outlineOffset: string; }; }; }, {}, { width: string; }, never, never>; export declare const TextInput: import("@workday/canvas-kit-react/common").ElementComponent<"input", TextInputProps> & { ErrorType: typeof ErrorType; }; //# sourceMappingURL=TextInput.d.ts.map