UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

28 lines (27 loc) 1.74 kB
import * as React from "react"; import type * as Common from "../common/types"; import type { Theme } from "../defaultTheme"; import defaultTheme from "../defaultTheme"; import type { Props } from "./types"; interface StyledFieldProps extends React.PropsWithChildren<Partial<Props>> { component: string; className?: string; spaceAfter?: Common.SpaceAfterSizes; theme: Theme; htmlFor?: string; $width?: string; onMouseEnter?: (e: React.MouseEvent<HTMLInputElement>) => void; onMouseLeave?: (e: React.MouseEvent<HTMLInputElement>) => void; } export declare const Field: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<StyledFieldProps & React.RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>; export declare const FakeInput: import("styled-components").StyledComponent<({ children, className }: any) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export declare const InputContainer: import("styled-components").StyledComponent<({ children, className, labelRef }: any) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; export declare const Prefix: import("styled-components").StyledComponent<({ children, className, iconRef }: any) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; interface StyledInputProps extends Partial<Props> { min: number; max: number; theme: typeof defaultTheme; } export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, StyledInputProps, never>; declare const InputField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>; export default InputField;