import type { VNode } from 'vue'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/description-list'; import type { AvatarProps, ButtonProps, IconComponent } from '../types'; import type { DynamicSlots } from '../types/utils'; import type { ComponentConfig } from '../types/tv'; type DescriptionList = ComponentConfig; export interface DescriptionListItem { label?: string; /** * Display an icon on the left side. * @IconComponent */ icon?: IconComponent; avatar?: AvatarProps; slot?: string; description?: string; /** * The orientation between the content and the actions. * @defaultValue 'vertical' */ orientation?: DescriptionList['variants']['orientation']; /** * Display a list of actions: * - under the description when orientation is `vertical` * - next to the description when orientation is `horizontal` * `{ size: 'xs' }`{lang="ts"} */ actions?: ButtonProps[]; class?: any; b24ui?: Pick; [key: string]: any; } export interface DescriptionListProps { legend?: string; text?: string; /** * The key used to get the label from the item. * @defaultValue 'label' */ labelKey?: string; /** * The key used to get the description from the item. * @defaultValue 'description' */ descriptionKey?: string; items?: T[]; /** * @defaultValue 'md' */ size?: DescriptionList['variants']['size']; class?: any; b24ui?: DescriptionList['slots']; } type SlotProps = (props: { item: T; index: number; b24ui: DescriptionList['b24ui']; }) => VNode[]; export type DescriptionListSlots = { 'legend'?(props?: { b24ui: DescriptionList['b24ui']; }): VNode[]; 'text'?(props?: { b24ui: DescriptionList['b24ui']; }): VNode[]; 'leading'?: SlotProps; 'label'?: SlotProps; 'description'?: SlotProps; 'actions'?: SlotProps; 'content-top'?: SlotProps; 'content'?: SlotProps; 'content-bottom'?: SlotProps; 'footer'?(props?: { b24ui: DescriptionList['b24ui']; }): VNode[]; } & 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: DescriptionListSlots; emit: {}; }>) => 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]; }) & {};