import type { NumberFieldRootProps } from 'reka-ui'; import type { VNode } from 'vue'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/input-number'; import type { ButtonProps, BadgeProps, IconComponent, LinkPropsKeys } from '../types'; import type { InputHTMLAttributes } from '../types/html'; import type { ModelModifiers } from '../types/input'; import type { ComponentConfig } from '../types/tv'; type InputNumber = ComponentConfig; type InputNumberValue = number | null; type ApplyModifiers> = T | (Mod extends { optional: true; } ? undefined : never); export interface InputNumberProps = Pick> extends Pick, /** @vue-ignore */ Omit { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** The placeholder text when the input is empty. */ placeholder?: string; color?: InputNumber['variants']['color']; size?: InputNumber['variants']['size']; /** * Removes all borders (rings) * @defaultValue false */ noBorder?: boolean; /** * Removes all borders (rings) except the bottom one * @defaultValue false */ underline?: boolean; /** * Rounds the corners of the input * @defaultValue false */ rounded?: boolean; tag?: string; /** * @defaultValue 'air-primary' */ tagColor?: BadgeProps['color']; /** Highlight the ring color like a focus state. */ highlight?: boolean; /** Keep the mobile text size on all breakpoints. (Left for backward compatibility.) */ fixed?: boolean; /** * The orientation of the input number. * @defaultValue 'horizontal' */ orientation?: InputNumber['variants']['orientation']; /** * Configure the increment button. The `size` is inherited. * @defaultValue { color: 'air-tertiary-no-accent' } */ increment?: boolean | Omit; /** * The icon displayed to increment the value. * @defaultValue icons.plus * @IconComponent */ incrementIcon?: IconComponent; /** Disable the increment button. */ incrementDisabled?: boolean; /** * Configure the decrement button. The `size` is inherited. * @defaultValue { color: 'air-tertiary-no-accent' } */ decrement?: boolean | Omit; /** * The icon displayed to decrement the value. * @defaultValue icons.minus * @IconComponent */ decrementIcon?: IconComponent; /** Disable the decrement button. */ decrementDisabled?: boolean; autofocus?: boolean; autofocusDelay?: number; defaultValue?: NonNullable; modelValue?: ApplyModifiers; modelModifiers?: Mod; class?: any; b24ui?: InputNumber['slots']; } export interface InputNumberEmits = Pick> { 'update:modelValue': [value: ApplyModifiers]; 'blur': [event: FocusEvent]; 'change': [event: Event]; } export interface InputNumberSlots { increment?(props?: {}): VNode[]; decrement?(props?: {}): VNode[]; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: = Pick>(__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal & { onBlur?: ((event: FocusEvent) => any) | undefined; onChange?: ((event: Event) => any) | undefined; "onUpdate:modelValue"?: ((value: ApplyModifiers) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef<{ inputRef: Readonly>; }>) => void; attrs: any; slots: InputNumberSlots; emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: ApplyModifiers) => void); }>) => import("vue").VNode & { __ctx?: Awaited; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};