import type { VNode } from 'vue'; import type { RatingRootProps, RatingRootEmits } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/input-rating'; import type { IconComponent } from '../types/icons'; import type { ComponentConfig } from '../types/tv'; type InputRating = ComponentConfig; export interface InputRatingProps extends Pick { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** The id of the rating. */ id?: string; /** * Make the rating readonly (non-interactive). * @defaultValue false */ readonly?: boolean; /** * The icon displayed for each rating value. * @defaultValue icons.star * @IconComponent */ icon?: IconComponent; /** * The icon displayed for empty rating values. Defaults to `icon` when not provided. * @IconComponent */ emptyIcon?: IconComponent; /** * @defaultValue 'air-primary' */ color?: InputRating['variants']['color']; /** * @defaultValue 'md' */ size?: InputRating['variants']['size']; /** * The orientation of the rating. * @defaultValue 'horizontal' */ orientation?: InputRating['variants']['orientation']; class?: any; b24ui?: InputRating['slots']; } export interface InputRatingEmits extends RatingRootEmits { change: [event: Event]; } export interface InputRatingSlots { /** Rendered for each item. `filled` is `false` for the empty background layer and `true` for the highlighted overlay. */ item?(props: { index: number; filled: boolean; }): VNode[]; } declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: __VLS_WithSlots any; "update:modelValue": (payload: number) => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ onChange?: ((event: Event) => any) | undefined; "onUpdate:modelValue"?: ((payload: number) => any) | undefined; }>, { length: number; readonly: boolean; step: 1 | 0.5 | 0.25 | 0.1; orientation: InputRating["variants"]["orientation"]; defaultValue: number; clearable: boolean; hoverable: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputRatingSlots>; type __VLS_WithSlots = T & { new (): { $slots: S; }; };