@dcodegroup-au/dsg-vue
Version:
Front-end Vue/Tailwind DSG for UntitledUI.
59 lines (58 loc) • 2.28 kB
TypeScript
/**
* ------------------------------------------------
* # Setup: Props
* ------------------------------------------------
*/
export type DsgAvatarSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
export type DsgAvatarTheme = "activity" | "verified" | "logo" | "tile" | "profile-photo" | "profile-photo-verified";
export interface DsgAvatarProps {
profileUri?: string;
fullName?: string;
size?: DsgAvatarSize;
theme?: DsgAvatarTheme;
isOnline?: boolean;
uri?: string | undefined;
classes?: string;
companyLogoUri?: string | undefined;
preventDefault?: boolean;
title?: string;
subText?: string;
noFocus?: boolean;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
'dsg-avatar--background'?(_: {}): any;
'dsg-avatar--status'?(_: {}): any;
'dsg-avatar--title'?(_: {}): any;
'dsg-avatar--subtext'?(_: {}): any;
};
refs: {
avatarLink: HTMLAnchorElement;
avatarImageWrapperEl: HTMLDivElement;
};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<DsgAvatarProps, {
setUserActiveStatus: (activeStatus: boolean) => void;
toggleFocus: (focus: boolean) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"avatar-clicked": (clickEvent: Event) => any;
"before-change-status": (oldStatus: boolean, newStatus: boolean) => any;
"after-change-status": (status: boolean) => any;
}, string, import('vue').PublicProps, Readonly<DsgAvatarProps> & Readonly<{
"onAvatar-clicked"?: ((clickEvent: Event) => any) | undefined;
"onBefore-change-status"?: ((oldStatus: boolean, newStatus: boolean) => any) | undefined;
"onAfter-change-status"?: ((status: boolean) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
avatarLink: HTMLAnchorElement;
avatarImageWrapperEl: HTMLDivElement;
}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};