1 | import * as React from 'react';
|
2 | import type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
|
3 | import type { InputStatus } from '../_util/statusUtils';
|
4 | import type { SizeType } from '../config-provider/SizeContext';
|
5 | import type { Variant } from '../form/hooks/useVariants';
|
6 | export 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 |
|
15 | bordered?: boolean;
|
16 | status?: InputStatus;
|
17 | controls?: boolean | {
|
18 | upIcon?: React.ReactNode;
|
19 | downIcon?: React.ReactNode;
|
20 | };
|
21 | |
22 |
|
23 |
|
24 |
|
25 | variant?: Variant;
|
26 | }
|
27 | declare 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. */
|
32 | declare const PureInputNumber: React.FC<InputNumberProps>;
|
33 | export default TypedInputNumber;
|
34 |
|
\ | No newline at end of file |