UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

33 lines (32 loc) 2.63 kB
import * as React from "react"; import { NumberInputComponentProps, NumberInputProps } from "./NumberInput.types"; export declare const NumberInputComponent: React.ForwardRefExoticComponent<{ label?: React.ReactNode; description?: React.ReactNode; error?: React.ReactNode; disabled?: boolean | undefined; size?: import("@mantine/core").MantineSize | undefined; radius?: import("@mantine/core").MantineSize | undefined; value?: number | undefined; min?: number | undefined; max?: number | undefined; step?: number | undefined; precision?: number | undefined; removeTrailingZeros?: boolean | undefined; hideControls?: boolean | undefined; onChange?: ((value: import("../../state/components/number-input/reducer").NumberInputTValue) => void) | undefined; icon?: React.ReactNode; format?: "decimal" | "percent" | "currency" | undefined; currency?: "AUD" | "CAD" | "CLP" | "CNY" | "COP" | "GBP" | "HKD" | "INR" | "JPY" | "KRW" | "MYR" | "MXN" | "NZD" | "NOK" | "PHP" | "SGD" | "TWD" | "USD" | "ZAR" | "ARS" | "BRL" | "CHF" | "DKK" | "EUR" | "ILS" | "PLN" | undefined; variant?: "unstyled" | "default" | undefined; sx?: import("@mantine/core").CSSObject | undefined; classNames?: Partial<Record<import("@mantine/core").NumberInputStylesNames, string>> | undefined; } & import("../layout/layout.types").CommonLayoutProps & import("../styling.types").CommonStylingProps & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "error" | "type" | "value" | "ref" | "size" | "classNames" | "variant" | "sx" | "label" | "defaultValue" | "onChange" | "radius" | keyof import("../layout/layout.types").CommonLayoutProps | keyof import("../styling.types").CommonStylingProps | "step" | "max" | "min" | "format" | "disabled" | "description" | "icon" | "currency" | "precision" | "removeTrailingZeros" | "hideControls"> & React.RefAttributes<HTMLInputElement>>; export declare const NumberInput: React.ForwardRefExoticComponent<{ id?: string | undefined; defaultValue?: number | undefined; defaultDisabled?: boolean | undefined; } & import("../../state/components/input/types").InputProps<import("../../state/components/number-input/reducer").NumberInputTValue, import("../../state/components/number-input/reducer").NumberInputTValue> & Omit<NumberInputComponentProps, "defaultValue" | "id" | "defaultDisabled"> & React.RefAttributes<HTMLInputElement>>; export declare const NumberInputWithoutRef: (props: NumberInputProps & { innerRef: React.Ref<HTMLInputElement>; }) => import("react/jsx-runtime").JSX.Element;