import type { VNode } from 'vue'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/progress-group'; import type { IconComponent } from '../types/icons'; import type { DynamicSlots } from '../types/utils'; import type { ComponentConfig } from '../types/tv'; type ProgressGroup = ComponentConfig; export interface ProgressGroupItem { label?: string; /** * @IconComponent */ icon?: IconComponent; /** The part of `max` this segment takes up. */ value?: number; /** * @defaultValue 'air-primary' */ color?: ProgressGroup['variants']['color']; slot?: string; class?: any; b24ui?: Pick; [key: string]: any; } export interface ProgressGroupProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; items?: T[]; /** * The value all items add up to, used to compute each segment's share of the track. * @defaultValue 100 */ max?: number; /** Display the summed progress value. */ status?: boolean; /** * @defaultValue 'md' */ size?: ProgressGroup['variants']['size']; /** * @defaultValue 'air-primary' */ color?: ProgressGroup['variants']['color']; /** * The orientation of the progress bar. * @defaultValue 'horizontal' */ orientation?: ProgressGroup['variants']['orientation']; class?: any; b24ui?: ProgressGroup['slots']; } type SlotProps = (props: { item: T; index: number; percent: number; }) => VNode[]; export type ProgressGroupSlots = { 'status'?: (props: { percent: number; }) => VNode[]; 'item'?: SlotProps; 'item-leading'?: SlotProps; 'item-label'?: SlotProps; 'item-trailing'?: SlotProps; } & DynamicSlots; declare const _default: typeof __VLS_export; export default _default; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: {}) => void; attrs: any; slots: ProgressGroupSlots; emit: {}; }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};