UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

66 lines (63 loc) 2.32 kB
import * as _nuxt_schema from '@nuxt/schema'; import { HookResult } from '@nuxt/schema'; import { ColorModeTypeLight } from '../dist/runtime/types/index.js'; export * from '../dist/runtime/types/index.js'; interface ModuleOptions { /** * Enable or disable `@vueuse/core` color-mode integration * @memo We not use `@nuxtjs/color-mode` * @defaultValue `true` * @link https://bitrix24.github.io/b24ui/docs/getting-started/installation/nuxt/#colormode */ colorMode?: boolean; colorModeTypeLight?: ColorModeTypeLight; version?: string; /** * Customize how the theme is generated * @see https://bitrix24.github.io/b24ui/docs/getting-started/theme/design-system/ */ theme?: { /** * Prefix for Tailwind CSS utility classes * @see https://bitrix24.github.io/b24ui/docs/getting-started/installation/nuxt/#themeprefix * @example 'tw' */ prefix?: string; }; /** * Force the import of prose components even if `@nuxtjs/mdc` or `@nuxt/content` are not installed * @defaultValue true */ mdc?: boolean; /** * Force the import of content & prose components even if `@nuxt/content` is not installed * @defaultValue false */ content?: boolean; /** * Experimental features */ experimental?: { /** * Enable automatic component detection for tree-shaking * Only generates theme files for components actually used in your app * - `true`: Enable automatic detection * - `string[]`: Enable detection and include additional components (useful for dynamic components) * @defaultValue false * @example true * @example ['Modal', 'Dropdown'] */ componentDetection?: boolean | string[]; }; } declare module '#app' { interface RuntimeNuxtHooks { 'dashboard:search:toggle': () => HookResult; 'dashboard:sidebar:toggle': () => HookResult; 'dashboard:sidebar:collapse': (value: boolean) => HookResult; 'dashboard:content:load': (value: boolean, contextId?: string) => HookResult; } } declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>; export { _default as default }; export type { ModuleOptions };