UNPKG

1.38 kBTypeScriptView Raw
1import * as React from 'react';
2import type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
3import type { InputStatus } from '../_util/statusUtils';
4import type { SizeType } from '../config-provider/SizeContext';
5import type { Variant } from '../form/hooks/useVariants';
6export interface InputNumberProps<T extends ValueType = ValueType> extends Omit<RcInputNumberProps<T>, 'prefix' | 'size' | 'controls'> {
7 prefixCls?: string;
8 rootClassName?: string;
9 addonBefore?: React.ReactNode;
10 addonAfter?: React.ReactNode;
11 prefix?: React.ReactNode;
12 size?: SizeType;
13 disabled?: boolean;
14 /** @deprecated Use `variant` instead. */
15 bordered?: boolean;
16 status?: InputStatus;
17 controls?: boolean | {
18 upIcon?: React.ReactNode;
19 downIcon?: React.ReactNode;
20 };
21 /**
22 * @since 5.13.0
23 * @default "outlined"
24 */
25 variant?: Variant;
26}
27declare const TypedInputNumber: (<T extends ValueType = ValueType>(props: React.PropsWithChildren<InputNumberProps<T>> & React.RefAttributes<HTMLInputElement>) => React.ReactElement) & {
28 displayName?: string | undefined;
29 _InternalPanelDoNotUseOrYouWillBeFired: typeof PureInputNumber;
30};
31/** @private Internal Component. Do not use in your production. */
32declare const PureInputNumber: React.FC<InputNumberProps>;
33export default TypedInputNumber;
34
\No newline at end of file