@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
64 lines (63 loc) • 2.37 kB
text/typescript
import type { ContentNavigationItem } from '@nuxt/content';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/content/content-surround';
import type { IconComponent } from '../../types';
import type { ComponentConfig } from '../../types/tv';
type ContentSurround = ComponentConfig<typeof theme, AppConfig, 'contentSurround'>;
export interface ContentSurroundLink extends ContentNavigationItem {
description?: string;
/**
* @IconComponent
*/
icon?: IconComponent;
class?: any;
b24ui?: Pick<ContentSurround['slots'], 'link' | 'linkLeading' | 'linkLeadingIcon' | 'linkTitle' | 'linkDescription'>;
}
export interface ContentSurroundProps<T extends ContentSurroundLink = ContentSurroundLink> {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/**
* The icon displayed in the prev link.
* @defaultValue icons.arrowLeft
* @IconComponent
*/
prevIcon?: IconComponent;
/**
* The icon displayed in the next link.
* @defaultValue icons.arrowRight
* @IconComponent
*/
nextIcon?: IconComponent;
surround?: T[];
class?: any;
b24ui?: ContentSurround['slots'];
}
type SlotProps<T> = (props: {
link: T;
b24ui: ContentSurround['b24ui'];
}) => any;
export interface ContentSurroundSlots<T extends ContentSurroundLink = ContentSurroundLink> {
'link': SlotProps<T>;
'link-leading': SlotProps<T>;
'link-title': SlotProps<T>;
'link-description': SlotProps<T>;
}
declare const __VLS_export: <T extends ContentSurroundLink>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
props: __VLS_PrettifyLocal<ContentSurroundProps<T>> & import("vue").PublicProps & (typeof globalThis extends {
__VLS_PROPS_FALLBACK: infer P;
} ? P : {});
expose: (exposed: {}) => void;
attrs: any;
slots: ContentSurroundSlots<T>;
emit: {};
}>) => import("vue").VNode & {
__ctx?: Awaited<typeof __VLS_setup>;
};
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_PrettifyLocal<T> = {
[K in keyof T as K]: T[K];
} & {};