import React from "react"; import { InputProps } from "./Input"; import { TextFieldProps } from "./TextField"; import { IconButtonProps } from "./IconButton"; /** * Types */ interface StepperProps { /** * The color of the `Input` element. The prop defaults to the value (`'primary'`) * `Stepper`'s color will be mapped on the `inputColor` value. */ inputColor?: InputProps["color"]; /** * The size of the `Input` element. The prop defaults to the value (`'xs'`) */ inputSize?: Exclude; /** * The input element bound to the `Stepper`. */ inputNode?: HTMLInputElement | null; /** * The value of the pressed key. */ keyPress?: React.KeyboardEvent["key"] | null; /** * If `true`, the component is disabled. The prop defaults to the value (`false`). */ disabled?: boolean; /** * Props passing to the upward `IconButton` element in the `Stepper`. */ upButtonProps?: Partial; /** * Props passing to the downward `IconButton` element in the `Stepper`. */ downButtonProps?: Partial; } export interface NumericFieldProps extends Omit { /** * Props passing to the `Stepper` element. */ stepperProps?: StepperProps; } /** * Components */ export declare const Stepper: React.FC; /** * Main */ declare const NumericField: React.FC; export default NumericField;