UNPKG

@eslamdevui/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

75 lines (74 loc) 2.35 kB
import theme from '#build/ui/changelog-versions'; import type { AppConfig } from '@nuxt/schema'; import type { ComponentConfig, ChangelogVersionProps } from '../types'; import type { SpringOptions } from 'motion-v'; type ChangelogVersions = ComponentConfig<typeof theme, AppConfig, 'changelogVersions'>; export interface ChangelogVersionsProps<T extends ChangelogVersionProps = ChangelogVersionProps> { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; versions?: T[]; /** * Display an indicator bar on the left. * @defaultValue true */ indicator?: boolean; /** * Enable scrolling motion effect on the indicator bar. * `{ damping: 30, restDelta: 0.001 }`{lang="ts-type"} * @defaultValue true * @see https://motion.dev/docs/vue-transitions#spring */ indicatorMotion?: boolean | SpringOptions; class?: any; ui?: ChangelogVersions['slots']; } export interface ChangelogVersionsSlots<T extends ChangelogVersionProps = ChangelogVersionProps> { default(props?: {}): any; indicator(props?: {}): any; header(props: { version: T; }): any; badge(props: { version: T; }): any; date(props: { version: T; }): any; title(props: { version: T; }): any; description(props: { version: T; }): any; image(props: { version: T; }): any; body(props: { version: T; }): any; footer(props: { version: T; }): any; authors(props: { version: T; }): any; actions(props: { version: T; }): any; indicator(props: { version: T; }): any; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionsProps<ChangelogVersionProps>> & Readonly<{}>, { indicator: boolean; indicatorMotion: boolean | SpringOptions; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionsSlots<ChangelogVersionProps>>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };