naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
1,296 lines (1,295 loc) • 118 kB
TypeScript
import type { FormValidationStatus } from '../../form/src/public-types';
import type { OnUpdateValue, Size } from './interface';
import { type InputHTMLAttributes, type PropType, type SlotsType, type VNode } from 'vue';
import { type ExtractPublicPropTypes, type MaybeArray } from '../../_utils';
export declare const inputNumberProps: {
autofocus: BooleanConstructor;
loading: {
type: BooleanConstructor;
default: undefined;
};
placeholder: StringConstructor;
defaultValue: {
type: PropType<number | null>;
default: null;
};
value: PropType<number | null>;
step: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
min: (StringConstructor | NumberConstructor)[];
max: (StringConstructor | NumberConstructor)[];
size: PropType<Size>;
disabled: {
type: PropType<boolean | undefined>;
default: undefined;
};
validator: PropType<(value: number) => boolean>;
bordered: {
type: PropType<boolean | undefined>;
default: undefined;
};
showButton: {
type: BooleanConstructor;
default: boolean;
};
buttonPlacement: {
type: PropType<"right" | "both">;
default: string;
};
inputProps: PropType<InputHTMLAttributes>;
readonly: BooleanConstructor;
clearable: BooleanConstructor;
keyboard: {
type: PropType<{
ArrowUp?: boolean;
ArrowDown?: boolean;
}>;
default: {};
};
updateValueOnInput: {
type: BooleanConstructor;
default: boolean;
};
round: {
type: PropType<boolean | undefined>;
default: undefined;
};
parse: PropType<(input: string) => number | null>;
format: PropType<(value: number | null) => string>;
precision: NumberConstructor;
status: PropType<FormValidationStatus>;
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
onChange: PropType<MaybeArray<OnUpdateValue>>;
theme: PropType<import("../../_mixins").Theme<"InputNumber", {
iconColorDisabled: string;
}, {
Button: import("../../_mixins").Theme<"Button", {
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
borderRadiusTiny: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
opacityDisabled: string;
colorOpacitySecondary: string;
colorOpacitySecondaryHover: string;
colorOpacitySecondaryPressed: string;
colorSecondary: string;
colorSecondaryHover: string;
colorSecondaryPressed: string;
colorTertiary: string;
colorTertiaryHover: string;
colorTertiaryPressed: string;
colorQuaternary: string;
colorQuaternaryHover: string;
colorQuaternaryPressed: string;
color: string;
colorHover: string;
colorPressed: string;
colorFocus: string;
colorDisabled: string;
textColor: string;
textColorTertiary: string;
textColorHover: string;
textColorPressed: string;
textColorFocus: string;
textColorDisabled: string;
textColorText: string;
textColorTextHover: string;
textColorTextPressed: string;
textColorTextFocus: string;
textColorTextDisabled: string;
textColorGhost: string;
textColorGhostHover: string;
textColorGhostPressed: string;
textColorGhostFocus: string;
textColorGhostDisabled: string;
border: string;
borderHover: string;
borderPressed: string;
borderFocus: string;
borderDisabled: string;
rippleColor: string;
colorPrimary: string;
colorHoverPrimary: string;
colorPressedPrimary: string;
colorFocusPrimary: string;
colorDisabledPrimary: string;
textColorPrimary: string;
textColorHoverPrimary: string;
textColorPressedPrimary: string;
textColorFocusPrimary: string;
textColorDisabledPrimary: string;
textColorTextPrimary: string;
textColorTextHoverPrimary: string;
textColorTextPressedPrimary: string;
textColorTextFocusPrimary: string;
textColorTextDisabledPrimary: string;
textColorGhostPrimary: string;
textColorGhostHoverPrimary: string;
textColorGhostPressedPrimary: string;
textColorGhostFocusPrimary: string;
textColorGhostDisabledPrimary: string;
borderPrimary: string;
borderHoverPrimary: string;
borderPressedPrimary: string;
borderFocusPrimary: string;
borderDisabledPrimary: string;
rippleColorPrimary: string;
colorInfo: string;
colorHoverInfo: string;
colorPressedInfo: string;
colorFocusInfo: string;
colorDisabledInfo: string;
textColorInfo: string;
textColorHoverInfo: string;
textColorPressedInfo: string;
textColorFocusInfo: string;
textColorDisabledInfo: string;
textColorTextInfo: string;
textColorTextHoverInfo: string;
textColorTextPressedInfo: string;
textColorTextFocusInfo: string;
textColorTextDisabledInfo: string;
textColorGhostInfo: string;
textColorGhostHoverInfo: string;
textColorGhostPressedInfo: string;
textColorGhostFocusInfo: string;
textColorGhostDisabledInfo: string;
borderInfo: string;
borderHoverInfo: string;
borderPressedInfo: string;
borderFocusInfo: string;
borderDisabledInfo: string;
rippleColorInfo: string;
colorSuccess: string;
colorHoverSuccess: string;
colorPressedSuccess: string;
colorFocusSuccess: string;
colorDisabledSuccess: string;
textColorSuccess: string;
textColorHoverSuccess: string;
textColorPressedSuccess: string;
textColorFocusSuccess: string;
textColorDisabledSuccess: string;
textColorTextSuccess: string;
textColorTextHoverSuccess: string;
textColorTextPressedSuccess: string;
textColorTextFocusSuccess: string;
textColorTextDisabledSuccess: string;
textColorGhostSuccess: string;
textColorGhostHoverSuccess: string;
textColorGhostPressedSuccess: string;
textColorGhostFocusSuccess: string;
textColorGhostDisabledSuccess: string;
borderSuccess: string;
borderHoverSuccess: string;
borderPressedSuccess: string;
borderFocusSuccess: string;
borderDisabledSuccess: string;
rippleColorSuccess: string;
colorWarning: string;
colorHoverWarning: string;
colorPressedWarning: string;
colorFocusWarning: string;
colorDisabledWarning: string;
textColorWarning: string;
textColorHoverWarning: string;
textColorPressedWarning: string;
textColorFocusWarning: string;
textColorDisabledWarning: string;
textColorTextWarning: string;
textColorTextHoverWarning: string;
textColorTextPressedWarning: string;
textColorTextFocusWarning: string;
textColorTextDisabledWarning: string;
textColorGhostWarning: string;
textColorGhostHoverWarning: string;
textColorGhostPressedWarning: string;
textColorGhostFocusWarning: string;
textColorGhostDisabledWarning: string;
borderWarning: string;
borderHoverWarning: string;
borderPressedWarning: string;
borderFocusWarning: string;
borderDisabledWarning: string;
rippleColorWarning: string;
colorError: string;
colorHoverError: string;
colorPressedError: string;
colorFocusError: string;
colorDisabledError: string;
textColorError: string;
textColorHoverError: string;
textColorPressedError: string;
textColorFocusError: string;
textColorDisabledError: string;
textColorTextError: string;
textColorTextHoverError: string;
textColorTextPressedError: string;
textColorTextFocusError: string;
textColorTextDisabledError: string;
textColorGhostError: string;
textColorGhostHoverError: string;
textColorGhostPressedError: string;
textColorGhostFocusError: string;
textColorGhostDisabledError: string;
borderError: string;
borderHoverError: string;
borderPressedError: string;
borderFocusError: string;
borderDisabledError: string;
rippleColorError: string;
waveOpacity: string;
fontWeight: string;
fontWeightStrong: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
paddingRoundTiny: string;
paddingRoundSmall: string;
paddingRoundMedium: string;
paddingRoundLarge: string;
iconMarginTiny: string;
iconMarginSmall: string;
iconMarginMedium: string;
iconMarginLarge: string;
iconSizeTiny: string;
iconSizeSmall: string;
iconSizeMedium: string;
iconSizeLarge: string;
rippleDuration: string;
}, any>;
Input: import("../../_mixins").Theme<"Input", {
fontWeight: string;
countTextColorDisabled: string;
countTextColor: string;
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
lineHeight: string;
lineHeightTextarea: string;
borderRadius: string;
iconSize: string;
groupLabelColor: string;
groupLabelTextColor: string;
textColor: string;
textColorDisabled: string;
textDecorationColor: string;
caretColor: string;
placeholderColor: string;
placeholderColorDisabled: string;
color: string;
colorDisabled: string;
colorFocus: string;
groupLabelBorder: string;
border: string;
borderHover: string;
borderDisabled: string;
borderFocus: string;
boxShadowFocus: string;
loadingColor: string;
loadingColorWarning: string;
borderWarning: string;
borderHoverWarning: string;
colorFocusWarning: string;
borderFocusWarning: string;
boxShadowFocusWarning: string;
caretColorWarning: string;
loadingColorError: string;
borderError: string;
borderHoverError: string;
colorFocusError: string;
borderFocusError: string;
boxShadowFocusError: string;
caretColorError: string;
clearColor: string;
clearColorHover: string;
clearColorPressed: string;
iconColor: string;
iconColorDisabled: string;
iconColorHover: string;
iconColorPressed: string;
suffixTextColor: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
clearSize: string;
}, any>;
}>>;
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
iconColorDisabled: string;
}, {
Button: import("../../_mixins").Theme<"Button", {
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
borderRadiusTiny: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
opacityDisabled: string;
colorOpacitySecondary: string;
colorOpacitySecondaryHover: string;
colorOpacitySecondaryPressed: string;
colorSecondary: string;
colorSecondaryHover: string;
colorSecondaryPressed: string;
colorTertiary: string;
colorTertiaryHover: string;
colorTertiaryPressed: string;
colorQuaternary: string;
colorQuaternaryHover: string;
colorQuaternaryPressed: string;
color: string;
colorHover: string;
colorPressed: string;
colorFocus: string;
colorDisabled: string;
textColor: string;
textColorTertiary: string;
textColorHover: string;
textColorPressed: string;
textColorFocus: string;
textColorDisabled: string;
textColorText: string;
textColorTextHover: string;
textColorTextPressed: string;
textColorTextFocus: string;
textColorTextDisabled: string;
textColorGhost: string;
textColorGhostHover: string;
textColorGhostPressed: string;
textColorGhostFocus: string;
textColorGhostDisabled: string;
border: string;
borderHover: string;
borderPressed: string;
borderFocus: string;
borderDisabled: string;
rippleColor: string;
colorPrimary: string;
colorHoverPrimary: string;
colorPressedPrimary: string;
colorFocusPrimary: string;
colorDisabledPrimary: string;
textColorPrimary: string;
textColorHoverPrimary: string;
textColorPressedPrimary: string;
textColorFocusPrimary: string;
textColorDisabledPrimary: string;
textColorTextPrimary: string;
textColorTextHoverPrimary: string;
textColorTextPressedPrimary: string;
textColorTextFocusPrimary: string;
textColorTextDisabledPrimary: string;
textColorGhostPrimary: string;
textColorGhostHoverPrimary: string;
textColorGhostPressedPrimary: string;
textColorGhostFocusPrimary: string;
textColorGhostDisabledPrimary: string;
borderPrimary: string;
borderHoverPrimary: string;
borderPressedPrimary: string;
borderFocusPrimary: string;
borderDisabledPrimary: string;
rippleColorPrimary: string;
colorInfo: string;
colorHoverInfo: string;
colorPressedInfo: string;
colorFocusInfo: string;
colorDisabledInfo: string;
textColorInfo: string;
textColorHoverInfo: string;
textColorPressedInfo: string;
textColorFocusInfo: string;
textColorDisabledInfo: string;
textColorTextInfo: string;
textColorTextHoverInfo: string;
textColorTextPressedInfo: string;
textColorTextFocusInfo: string;
textColorTextDisabledInfo: string;
textColorGhostInfo: string;
textColorGhostHoverInfo: string;
textColorGhostPressedInfo: string;
textColorGhostFocusInfo: string;
textColorGhostDisabledInfo: string;
borderInfo: string;
borderHoverInfo: string;
borderPressedInfo: string;
borderFocusInfo: string;
borderDisabledInfo: string;
rippleColorInfo: string;
colorSuccess: string;
colorHoverSuccess: string;
colorPressedSuccess: string;
colorFocusSuccess: string;
colorDisabledSuccess: string;
textColorSuccess: string;
textColorHoverSuccess: string;
textColorPressedSuccess: string;
textColorFocusSuccess: string;
textColorDisabledSuccess: string;
textColorTextSuccess: string;
textColorTextHoverSuccess: string;
textColorTextPressedSuccess: string;
textColorTextFocusSuccess: string;
textColorTextDisabledSuccess: string;
textColorGhostSuccess: string;
textColorGhostHoverSuccess: string;
textColorGhostPressedSuccess: string;
textColorGhostFocusSuccess: string;
textColorGhostDisabledSuccess: string;
borderSuccess: string;
borderHoverSuccess: string;
borderPressedSuccess: string;
borderFocusSuccess: string;
borderDisabledSuccess: string;
rippleColorSuccess: string;
colorWarning: string;
colorHoverWarning: string;
colorPressedWarning: string;
colorFocusWarning: string;
colorDisabledWarning: string;
textColorWarning: string;
textColorHoverWarning: string;
textColorPressedWarning: string;
textColorFocusWarning: string;
textColorDisabledWarning: string;
textColorTextWarning: string;
textColorTextHoverWarning: string;
textColorTextPressedWarning: string;
textColorTextFocusWarning: string;
textColorTextDisabledWarning: string;
textColorGhostWarning: string;
textColorGhostHoverWarning: string;
textColorGhostPressedWarning: string;
textColorGhostFocusWarning: string;
textColorGhostDisabledWarning: string;
borderWarning: string;
borderHoverWarning: string;
borderPressedWarning: string;
borderFocusWarning: string;
borderDisabledWarning: string;
rippleColorWarning: string;
colorError: string;
colorHoverError: string;
colorPressedError: string;
colorFocusError: string;
colorDisabledError: string;
textColorError: string;
textColorHoverError: string;
textColorPressedError: string;
textColorFocusError: string;
textColorDisabledError: string;
textColorTextError: string;
textColorTextHoverError: string;
textColorTextPressedError: string;
textColorTextFocusError: string;
textColorTextDisabledError: string;
textColorGhostError: string;
textColorGhostHoverError: string;
textColorGhostPressedError: string;
textColorGhostFocusError: string;
textColorGhostDisabledError: string;
borderError: string;
borderHoverError: string;
borderPressedError: string;
borderFocusError: string;
borderDisabledError: string;
rippleColorError: string;
waveOpacity: string;
fontWeight: string;
fontWeightStrong: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
paddingRoundTiny: string;
paddingRoundSmall: string;
paddingRoundMedium: string;
paddingRoundLarge: string;
iconMarginTiny: string;
iconMarginSmall: string;
iconMarginMedium: string;
iconMarginLarge: string;
iconSizeTiny: string;
iconSizeSmall: string;
iconSizeMedium: string;
iconSizeLarge: string;
rippleDuration: string;
}, any>;
Input: import("../../_mixins").Theme<"Input", {
fontWeight: string;
countTextColorDisabled: string;
countTextColor: string;
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
lineHeight: string;
lineHeightTextarea: string;
borderRadius: string;
iconSize: string;
groupLabelColor: string;
groupLabelTextColor: string;
textColor: string;
textColorDisabled: string;
textDecorationColor: string;
caretColor: string;
placeholderColor: string;
placeholderColorDisabled: string;
color: string;
colorDisabled: string;
colorFocus: string;
groupLabelBorder: string;
border: string;
borderHover: string;
borderDisabled: string;
borderFocus: string;
boxShadowFocus: string;
loadingColor: string;
loadingColorWarning: string;
borderWarning: string;
borderHoverWarning: string;
colorFocusWarning: string;
borderFocusWarning: string;
boxShadowFocusWarning: string;
caretColorWarning: string;
loadingColorError: string;
borderError: string;
borderHoverError: string;
colorFocusError: string;
borderFocusError: string;
boxShadowFocusError: string;
caretColorError: string;
clearColor: string;
clearColorHover: string;
clearColorPressed: string;
iconColor: string;
iconColorDisabled: string;
iconColorHover: string;
iconColorPressed: string;
suffixTextColor: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
clearSize: string;
}, any>;
}>>>;
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
iconColorDisabled: string;
}, {
Button: import("../../_mixins").Theme<"Button", {
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
borderRadiusTiny: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
opacityDisabled: string;
colorOpacitySecondary: string;
colorOpacitySecondaryHover: string;
colorOpacitySecondaryPressed: string;
colorSecondary: string;
colorSecondaryHover: string;
colorSecondaryPressed: string;
colorTertiary: string;
colorTertiaryHover: string;
colorTertiaryPressed: string;
colorQuaternary: string;
colorQuaternaryHover: string;
colorQuaternaryPressed: string;
color: string;
colorHover: string;
colorPressed: string;
colorFocus: string;
colorDisabled: string;
textColor: string;
textColorTertiary: string;
textColorHover: string;
textColorPressed: string;
textColorFocus: string;
textColorDisabled: string;
textColorText: string;
textColorTextHover: string;
textColorTextPressed: string;
textColorTextFocus: string;
textColorTextDisabled: string;
textColorGhost: string;
textColorGhostHover: string;
textColorGhostPressed: string;
textColorGhostFocus: string;
textColorGhostDisabled: string;
border: string;
borderHover: string;
borderPressed: string;
borderFocus: string;
borderDisabled: string;
rippleColor: string;
colorPrimary: string;
colorHoverPrimary: string;
colorPressedPrimary: string;
colorFocusPrimary: string;
colorDisabledPrimary: string;
textColorPrimary: string;
textColorHoverPrimary: string;
textColorPressedPrimary: string;
textColorFocusPrimary: string;
textColorDisabledPrimary: string;
textColorTextPrimary: string;
textColorTextHoverPrimary: string;
textColorTextPressedPrimary: string;
textColorTextFocusPrimary: string;
textColorTextDisabledPrimary: string;
textColorGhostPrimary: string;
textColorGhostHoverPrimary: string;
textColorGhostPressedPrimary: string;
textColorGhostFocusPrimary: string;
textColorGhostDisabledPrimary: string;
borderPrimary: string;
borderHoverPrimary: string;
borderPressedPrimary: string;
borderFocusPrimary: string;
borderDisabledPrimary: string;
rippleColorPrimary: string;
colorInfo: string;
colorHoverInfo: string;
colorPressedInfo: string;
colorFocusInfo: string;
colorDisabledInfo: string;
textColorInfo: string;
textColorHoverInfo: string;
textColorPressedInfo: string;
textColorFocusInfo: string;
textColorDisabledInfo: string;
textColorTextInfo: string;
textColorTextHoverInfo: string;
textColorTextPressedInfo: string;
textColorTextFocusInfo: string;
textColorTextDisabledInfo: string;
textColorGhostInfo: string;
textColorGhostHoverInfo: string;
textColorGhostPressedInfo: string;
textColorGhostFocusInfo: string;
textColorGhostDisabledInfo: string;
borderInfo: string;
borderHoverInfo: string;
borderPressedInfo: string;
borderFocusInfo: string;
borderDisabledInfo: string;
rippleColorInfo: string;
colorSuccess: string;
colorHoverSuccess: string;
colorPressedSuccess: string;
colorFocusSuccess: string;
colorDisabledSuccess: string;
textColorSuccess: string;
textColorHoverSuccess: string;
textColorPressedSuccess: string;
textColorFocusSuccess: string;
textColorDisabledSuccess: string;
textColorTextSuccess: string;
textColorTextHoverSuccess: string;
textColorTextPressedSuccess: string;
textColorTextFocusSuccess: string;
textColorTextDisabledSuccess: string;
textColorGhostSuccess: string;
textColorGhostHoverSuccess: string;
textColorGhostPressedSuccess: string;
textColorGhostFocusSuccess: string;
textColorGhostDisabledSuccess: string;
borderSuccess: string;
borderHoverSuccess: string;
borderPressedSuccess: string;
borderFocusSuccess: string;
borderDisabledSuccess: string;
rippleColorSuccess: string;
colorWarning: string;
colorHoverWarning: string;
colorPressedWarning: string;
colorFocusWarning: string;
colorDisabledWarning: string;
textColorWarning: string;
textColorHoverWarning: string;
textColorPressedWarning: string;
textColorFocusWarning: string;
textColorDisabledWarning: string;
textColorTextWarning: string;
textColorTextHoverWarning: string;
textColorTextPressedWarning: string;
textColorTextFocusWarning: string;
textColorTextDisabledWarning: string;
textColorGhostWarning: string;
textColorGhostHoverWarning: string;
textColorGhostPressedWarning: string;
textColorGhostFocusWarning: string;
textColorGhostDisabledWarning: string;
borderWarning: string;
borderHoverWarning: string;
borderPressedWarning: string;
borderFocusWarning: string;
borderDisabledWarning: string;
rippleColorWarning: string;
colorError: string;
colorHoverError: string;
colorPressedError: string;
colorFocusError: string;
colorDisabledError: string;
textColorError: string;
textColorHoverError: string;
textColorPressedError: string;
textColorFocusError: string;
textColorDisabledError: string;
textColorTextError: string;
textColorTextHoverError: string;
textColorTextPressedError: string;
textColorTextFocusError: string;
textColorTextDisabledError: string;
textColorGhostError: string;
textColorGhostHoverError: string;
textColorGhostPressedError: string;
textColorGhostFocusError: string;
textColorGhostDisabledError: string;
borderError: string;
borderHoverError: string;
borderPressedError: string;
borderFocusError: string;
borderDisabledError: string;
rippleColorError: string;
waveOpacity: string;
fontWeight: string;
fontWeightStrong: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
paddingRoundTiny: string;
paddingRoundSmall: string;
paddingRoundMedium: string;
paddingRoundLarge: string;
iconMarginTiny: string;
iconMarginSmall: string;
iconMarginMedium: string;
iconMarginLarge: string;
iconSizeTiny: string;
iconSizeSmall: string;
iconSizeMedium: string;
iconSizeLarge: string;
rippleDuration: string;
}, any>;
Input: import("../../_mixins").Theme<"Input", {
fontWeight: string;
countTextColorDisabled: string;
countTextColor: string;
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
lineHeight: string;
lineHeightTextarea: string;
borderRadius: string;
iconSize: string;
groupLabelColor: string;
groupLabelTextColor: string;
textColor: string;
textColorDisabled: string;
textDecorationColor: string;
caretColor: string;
placeholderColor: string;
placeholderColorDisabled: string;
color: string;
colorDisabled: string;
colorFocus: string;
groupLabelBorder: string;
border: string;
borderHover: string;
borderDisabled: string;
borderFocus: string;
boxShadowFocus: string;
loadingColor: string;
loadingColorWarning: string;
borderWarning: string;
borderHoverWarning: string;
colorFocusWarning: string;
borderFocusWarning: string;
boxShadowFocusWarning: string;
caretColorWarning: string;
loadingColorError: string;
borderError: string;
borderHoverError: string;
colorFocusError: string;
borderFocusError: string;
boxShadowFocusError: string;
caretColorError: string;
clearColor: string;
clearColorHover: string;
clearColorPressed: string;
iconColor: string;
iconColorDisabled: string;
iconColorHover: string;
iconColorPressed: string;
suffixTextColor: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
clearSize: string;
}, any>;
}>>>;
};
export type InputNumberProps = ExtractPublicPropTypes<typeof inputNumberProps>;
export interface InputNumberSlots {
'add-icon'?: () => VNode[];
'minus-icon'?: () => VNode[];
prefix?: () => VNode[];
suffix?: () => VNode[];
}
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
autofocus: BooleanConstructor;
loading: {
type: BooleanConstructor;
default: undefined;
};
placeholder: StringConstructor;
defaultValue: {
type: PropType<number | null>;
default: null;
};
value: PropType<number | null>;
step: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
min: (StringConstructor | NumberConstructor)[];
max: (StringConstructor | NumberConstructor)[];
size: PropType<Size>;
disabled: {
type: PropType<boolean | undefined>;
default: undefined;
};
validator: PropType<(value: number) => boolean>;
bordered: {
type: PropType<boolean | undefined>;
default: undefined;
};
showButton: {
type: BooleanConstructor;
default: boolean;
};
buttonPlacement: {
type: PropType<"right" | "both">;
default: string;
};
inputProps: PropType<InputHTMLAttributes>;
readonly: BooleanConstructor;
clearable: BooleanConstructor;
keyboard: {
type: PropType<{
ArrowUp?: boolean;
ArrowDown?: boolean;
}>;
default: {};
};
updateValueOnInput: {
type: BooleanConstructor;
default: boolean;
};
round: {
type: PropType<boolean | undefined>;
default: undefined;
};
parse: PropType<(input: string) => number | null>;
format: PropType<(value: number | null) => string>;
precision: NumberConstructor;
status: PropType<FormValidationStatus>;
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
onChange: PropType<MaybeArray<OnUpdateValue>>;
theme: PropType<import("../../_mixins").Theme<"InputNumber", {
iconColorDisabled: string;
}, {
Button: import("../../_mixins").Theme<"Button", {
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
borderRadiusTiny: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
opacityDisabled: string;
colorOpacitySecondary: string;
colorOpacitySecondaryHover: string;
colorOpacitySecondaryPressed: string;
colorSecondary: string;
colorSecondaryHover: string;
colorSecondaryPressed: string;
colorTertiary: string;
colorTertiaryHover: string;
colorTertiaryPressed: string;
colorQuaternary: string;
colorQuaternaryHover: string;
colorQuaternaryPressed: string;
color: string;
colorHover: string;
colorPressed: string;
colorFocus: string;
colorDisabled: string;
textColor: string;
textColorTertiary: string;
textColorHover: string;
textColorPressed: string;
textColorFocus: string;
textColorDisabled: string;
textColorText: string;
textColorTextHover: string;
textColorTextPressed: string;
textColorTextFocus: string;
textColorTextDisabled: string;
textColorGhost: string;
textColorGhostHover: string;
textColorGhostPressed: string;
textColorGhostFocus: string;
textColorGhostDisabled: string;
border: string;
borderHover: string;
borderPressed: string;
borderFocus: string;
borderDisabled: string;
rippleColor: string;
colorPrimary: string;
colorHoverPrimary: string;
colorPressedPrimary: string;
colorFocusPrimary: string;
colorDisabledPrimary: string;
textColorPrimary: string;
textColorHoverPrimary: string;
textColorPressedPrimary: string;
textColorFocusPrimary: string;
textColorDisabledPrimary: string;
textColorTextPrimary: string;
textColorTextHoverPrimary: string;
textColorTextPressedPrimary: string;
textColorTextFocusPrimary: string;
textColorTextDisabledPrimary: string;
textColorGhostPrimary: string;
textColorGhostHoverPrimary: string;
textColorGhostPressedPrimary: string;
textColorGhostFocusPrimary: string;
textColorGhostDisabledPrimary: string;
borderPrimary: string;
borderHoverPrimary: string;
borderPressedPrimary: string;
borderFocusPrimary: string;
borderDisabledPrimary: string;
rippleColorPrimary: string;
colorInfo: string;
colorHoverInfo: string;
colorPressedInfo: string;
colorFocusInfo: string;
colorDisabledInfo: string;
textColorInfo: string;
textColorHoverInfo: string;
textColorPressedInfo: string;
textColorFocusInfo: string;
textColorDisabledInfo: string;
textColorTextInfo: string;
textColorTextHoverInfo: string;
textColorTextPressedInfo: string;
textColorTextFocusInfo: string;
textColorTextDisabledInfo: string;
textColorGhostInfo: string;
textColorGhostHoverInfo: string;
textColorGhostPressedInfo: string;
textColorGhostFocusInfo: string;
textColorGhostDisabledInfo: string;
borderInfo: string;
borderHoverInfo: string;
borderPressedInfo: string;
borderFocusInfo: string;
borderDisabledInfo: string;
rippleColorInfo: string;
colorSuccess: string;
colorHoverSuccess: string;
colorPressedSuccess: string;
colorFocusSuccess: string;
colorDisabledSuccess: string;
textColorSuccess: string;
textColorHoverSuccess: string;
textColorPressedSuccess: string;
textColorFocusSuccess: string;
textColorDisabledSuccess: string;
textColorTextSuccess: string;
textColorTextHoverSuccess: string;
textColorTextPressedSuccess: string;
textColorTextFocusSuccess: string;
textColorTextDisabledSuccess: string;
textColorGhostSuccess: string;
textColorGhostHoverSuccess: string;
textColorGhostPressedSuccess: string;
textColorGhostFocusSuccess: string;
textColorGhostDisabledSuccess: string;
borderSuccess: string;
borderHoverSuccess: string;
borderPressedSuccess: string;
borderFocusSuccess: string;
borderDisabledSuccess: string;
rippleColorSuccess: string;
colorWarning: string;
colorHoverWarning: string;
colorPressedWarning: string;
colorFocusWarning: string;
colorDisabledWarning: string;
textColorWarning: string;
textColorHoverWarning: string;
textColorPressedWarning: string;
textColorFocusWarning: string;
textColorDisabledWarning: string;
textColorTextWarning: string;
textColorTextHoverWarning: string;
textColorTextPressedWarning: string;
textColorTextFocusWarning: string;
textColorTextDisabledWarning: string;
textColorGhostWarning: string;
textColorGhostHoverWarning: string;
textColorGhostPressedWarning: string;
textColorGhostFocusWarning: string;
textColorGhostDisabledWarning: string;
borderWarning: string;
borderHoverWarning: string;
borderPressedWarning: string;
borderFocusWarning: string;
borderDisabledWarning: string;
rippleColorWarning: string;
colorError: string;
colorHoverError: string;
colorPressedError: string;
colorFocusError: string;
colorDisabledError: string;
textColorError: string;
textColorHoverError: string;
textColorPressedError: string;
textColorFocusError: string;
textColorDisabledError: string;
textColorTextError: string;
textColorTextHoverError: string;
textColorTextPressedError: string;
textColorTextFocusError: string;
textColorTextDisabledError: string;
textColorGhostError: string;
textColorGhostHoverError: string;
textColorGhostPressedError: string;
textColorGhostFocusError: string;
textColorGhostDisabledError: string;
borderError: string;
borderHoverError: string;
borderPressedError: string;
borderFocusError: string;
borderDisabledError: string;
rippleColorError: string;
waveOpacity: string;
fontWeight: string;
fontWeightStrong: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
paddingRoundTiny: string;
paddingRoundSmall: string;
paddingRoundMedium: string;
paddingRoundLarge: string;
iconMarginTiny: string;
iconMarginSmall: string;
iconMarginMedium: string;
iconMarginLarge: string;
iconSizeTiny: string;
iconSizeSmall: string;
iconSizeMedium: string;
iconSizeLarge: string;
rippleDuration: string;
}, any>;
Input: import("../../_mixins").Theme<"Input", {
fontWeight: string;
countTextColorDisabled: string;
countTextColor: string;
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
lineHeight: string;
lineHeightTextarea: string;
borderRadius: string;
iconSize: string;
groupLabelColor: string;
groupLabelTextColor: string;
textColor: string;
textColorDisabled: string;
textDecorationColor: string;
caretColor: string;
placeholderColor: string;
placeholderColorDisabled: string;
color: string;
colorDisabled: string;
colorFocus: string;
groupLabelBorder: string;
border: string;
borderHover: string;
borderDisabled: string;
borderFocus: string;
boxShadowFocus: string;
loadingColor: string;
loadingColorWarning: string;
borderWarning: string;
borderHoverWarning: string;
colorFocusWarning: string;
borderFocusWarning: string;
boxShadowFocusWarning: string;
caretColorWarning: string;
loadingColorError: string;
borderError: string;
borderHoverError: string;
colorFocusError: string;
borderFocusError: string;
boxShadowFocusError: string;
caretColorError: string;
clearColor: string;
clearColorHover: string;
clearColorPressed: string;
iconColor: string;
iconColorDisabled: string;
iconColorHover: string;
iconColorPressed: string;
suffixTextColor: string;
paddingTiny: string;
paddingSmall: string;
paddingMedium: string;
paddingLarge: string;
clearSize: string;
}, any>;
}>>;
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"InputNumber", {
iconColorDisabled: string;
}, {
Button: import("../../_mixins").Theme<"Button", {
heightTiny: string;
heightSmall: string;
heightMedium: string;
heightLarge: string;
borderRadiusTiny: string;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
fontSizeTiny: string;
fontSizeSmall: string;
fontSizeMedium: string;
fontSizeLarge: string;
opacityDisabled: string;
colorOpacitySecondary: string;
colorOpacitySecondaryHover: string;
colorOpacitySecondaryPressed: string;
colorSecondary: string;
colorSecondaryHover: string;
colorSecondaryPressed: string;
colorTertiary: string;
colorTertiaryHover: string;
colorTertiaryPressed: string;
colorQuaternary: string;
colorQuaternaryHover: string;
colorQuaternaryPressed: string;
color: string;
colorHover: string;
colorPressed: string;
colorFocus: string;
colorDisabled: string;
textColor: string;
textColorTertiary: string;
textColorHover: string;
textColorPressed: string;
textColorFocus: string;
textColorDisabled: string;
textColorText: string;
textColorTextHover: string;
textColorTextPressed: string;
textColorTextFocus: string;
textColorTextDisabled: string;
textColorGhost: string;
textColorGhostHover: string;
textColorGhostPressed: string;
textColorGhostFocus: string;
textColorGhostDisabled: string;
border: string;
borderHover: string;
borderPressed: string;
borderFocus: string;
borderDisabled: string;
rippleColor: string;
colorPrimary: string;
colorHoverPrimary: string;
colorPressedPrimary: string;
colorFocusPrimary: string;
colorDisabledPrimary: string;
textColorPrimary: string;
textColorHoverPrimary: string;
textColorPressedPrimary: string;
textColorFocusPrimary: string;
textColorDisabledPrimary: string;
textColorTextPrimary: string;
textColorTextHoverPrimary: string;
textColorTextPressedPrimary: string;
textColorTextFocusPrimary: string;
textColorTextDisabledPrimary: string;
textColorGhostPrimary: string;
textColorGhostHoverPrimary: string;
textColorGhostPressedPrimary: string;
textColorGhostFocusPrimary: string;