UNPKG

@agendize/design-system

Version:
53 lines 2.21 kB
import { Selectable } from "../list/viewModel"; export declare const ListItemAppearAnimationValues: string[]; export type ListItemAppearAnimationType = typeof ListItemAppearAnimationValues[number]; export declare const ListItemHoverAnimationValues: string[]; export type ListItemHoverAnimationType = typeof ListItemHoverAnimationValues[number]; export declare const ListItemBackgroundValues: string[]; export type ListItemBackgroundType = typeof ListItemBackgroundValues[number]; export interface ListItemProperties { id?: string; title?: string; subTitle?: string; ariaLabel: string; secondSubTitle?: string; hasBorder?: boolean; hasPadding?: boolean; selectable?: Selectable; checked?: boolean; clickable?: boolean; object?: any; type?: string; hoverAnimation?: ListItemHoverAnimationType; appearAnimation?: ListItemAppearAnimationType; background?: ListItemBackgroundType; endSlotPosition?: 'center' | 'start' | 'end'; disabled?: boolean; loading?: boolean; index?: number; titleProperties?: ListItemTitlePropertiesOptional; subtitleProperties?: ListItemTitlePropertiesOptional; secondSubtitleProperties?: ListItemTitlePropertiesOptional; tags?: { title: string; }[]; applyTittleAttribute?: boolean; applyTitleAsTooltip?: boolean; } type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>; type DefaultListItemTitlePropertiesValues = Pick<ListItemTitleProperties, 'title' | 'type' | 'nowrap' | 'through' | 'tooltip' | 'tooltipLabel' | 'icon'>; export type ListItemTitlePropertiesOptional = Optional<ListItemTitleProperties, keyof DefaultListItemTitlePropertiesValues>; export interface ListItemTitleProperties { title: string; icon: string | undefined; tooltipLabel?: string; nowrap: boolean; through: boolean; tooltip: boolean; twoLines?: boolean; type: ListItemTitleType; } export declare function generateListItemTitleProperties(type: ListItemTitleType, optional?: ListItemTitlePropertiesOptional, title?: string): ListItemTitleProperties; type ListItemTitleType = 'primary' | 'secondary'; export {}; //# sourceMappingURL=viewModel.d.ts.map