@bitrix24/b24ui-nuxt 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/meta.d.mts +77776 -42923
- package/dist/meta.mjs +77776 -42923
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Advice.d.vue.ts +1 -1
- package/dist/runtime/components/Advice.vue +1 -3
- package/dist/runtime/components/Advice.vue.d.ts +1 -1
- package/dist/runtime/components/App.d.vue.ts +1 -1
- package/dist/runtime/components/App.vue +2 -1
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.d.vue.ts +2 -1
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/Button.vue +1 -0
- package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -2
- package/dist/runtime/components/ChatPrompt.vue +5 -5
- package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -2
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +5 -5
- package/dist/runtime/components/ChatPromptSubmit.vue +53 -4
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +5 -5
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/CommandPalette.vue +5 -4
- package/dist/runtime/components/DashboardSearch.d.vue.ts +3 -6
- package/dist/runtime/components/DashboardSearch.vue +2 -3
- package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -6
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -3
- package/dist/runtime/components/DashboardSearchButton.vue +44 -6
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -3
- package/dist/runtime/components/Error.d.vue.ts +1 -1
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.d.vue.ts +3 -2
- package/dist/runtime/components/FileUpload.vue +9 -9
- package/dist/runtime/components/FileUpload.vue.d.ts +3 -2
- package/dist/runtime/components/Form.d.vue.ts +2 -1
- package/dist/runtime/components/Form.vue.d.ts +2 -1
- package/dist/runtime/components/Input.d.vue.ts +7 -7
- package/dist/runtime/components/Input.vue +2 -2
- package/dist/runtime/components/Input.vue.d.ts +7 -7
- package/dist/runtime/components/InputDate.d.vue.ts +115 -0
- package/dist/runtime/components/InputDate.vue +198 -0
- package/dist/runtime/components/InputDate.vue.d.ts +115 -0
- package/dist/runtime/components/InputMenu.d.vue.ts +7 -128
- package/dist/runtime/components/InputMenu.vue +3 -3
- package/dist/runtime/components/InputMenu.vue.d.ts +7 -128
- package/dist/runtime/components/InputNumber.d.vue.ts +25 -124
- package/dist/runtime/components/InputNumber.vue +3 -3
- package/dist/runtime/components/InputNumber.vue.d.ts +25 -124
- package/dist/runtime/components/InputTags.d.vue.ts +6 -109
- package/dist/runtime/components/InputTags.vue +8 -8
- package/dist/runtime/components/InputTags.vue.d.ts +6 -109
- package/dist/runtime/components/InputTime.d.vue.ts +99 -0
- package/dist/runtime/components/InputTime.vue +170 -0
- package/dist/runtime/components/InputTime.vue.d.ts +99 -0
- package/dist/runtime/components/Link.d.vue.ts +4 -49
- package/dist/runtime/components/Link.vue +1 -0
- package/dist/runtime/components/Link.vue.d.ts +4 -49
- package/dist/runtime/components/Modal.d.vue.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -2
- package/dist/runtime/components/Pagination.vue.d.ts +2 -2
- package/dist/runtime/components/PinInput.d.vue.ts +3 -3
- package/dist/runtime/components/PinInput.vue.d.ts +3 -3
- package/dist/runtime/components/Progress.d.vue.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/Select.d.vue.ts +6 -107
- package/dist/runtime/components/Select.vue +3 -3
- package/dist/runtime/components/Select.vue.d.ts +6 -107
- package/dist/runtime/components/SelectMenu.d.vue.ts +7 -106
- package/dist/runtime/components/SelectMenu.vue +3 -3
- package/dist/runtime/components/SelectMenu.vue.d.ts +7 -106
- package/dist/runtime/components/Slideover.d.vue.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +1 -1
- package/dist/runtime/components/Switch.d.vue.ts +2 -1
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +5 -4
- package/dist/runtime/components/Table.vue +4 -3
- package/dist/runtime/components/Table.vue.d.ts +5 -4
- package/dist/runtime/components/Textarea.d.vue.ts +7 -6
- package/dist/runtime/components/Textarea.vue +2 -2
- package/dist/runtime/components/Textarea.vue.d.ts +7 -6
- package/dist/runtime/components/Toast.vue +5 -5
- package/dist/runtime/components/Toaster.d.vue.ts +1 -1
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -4
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeButton.vue +54 -6
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +4 -3
- package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +4 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +47 -5
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
- package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +29 -5
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +3 -6
- package/dist/runtime/components/content/ContentSearch.vue +2 -3
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +3 -6
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -3
- package/dist/runtime/components/content/ContentSearchButton.vue +43 -5
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -3
- package/dist/runtime/components/content/ContentSurround.vue +7 -1
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +11 -7
- package/dist/runtime/components/locale/LocaleSelect.vue +50 -6
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +11 -7
- package/dist/runtime/components/prose/Callout.vue +4 -0
- package/dist/runtime/composables/index.d.ts +8 -0
- package/dist/runtime/composables/index.js +8 -0
- package/dist/runtime/composables/useFileUpload.d.ts +2 -1
- package/dist/runtime/composables/useFileUpload.js +13 -4
- package/dist/runtime/inertia/components/Link.d.vue.ts +17 -10
- package/dist/runtime/inertia/components/Link.vue +8 -6
- package/dist/runtime/inertia/components/Link.vue.d.ts +17 -10
- package/dist/runtime/inertia/stubs.d.ts +1 -1
- package/dist/runtime/types/html.d.ts +8 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/input.d.ts +5 -5
- package/dist/runtime/types/utils.d.ts +2 -0
- package/dist/runtime/utils/content.d.ts +2 -2
- package/dist/runtime/utils/dashboard.d.ts +1 -1
- package/dist/runtime/utils/link.d.ts +1 -0
- package/dist/runtime/utils/link.js +40 -24
- package/dist/runtime/vue/components/Link.d.vue.ts +8 -37
- package/dist/runtime/vue/components/Link.vue +6 -11
- package/dist/runtime/vue/components/Link.vue.d.ts +8 -37
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +2 -2
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +55 -5
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +2 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +46 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +24 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +2 -2
- package/dist/runtime/vue/stubs.js +1 -1
- package/dist/shared/{b24ui-nuxt.4XNR9Ysu.mjs → b24ui-nuxt.CXLCGBie.mjs} +135 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -14
|
@@ -36,9 +36,11 @@ export * from '../components/FileUpload.vue';
|
|
|
36
36
|
export * from '../components/Form.vue';
|
|
37
37
|
export * from '../components/FormField.vue';
|
|
38
38
|
export * from '../components/Input.vue';
|
|
39
|
+
export * from '../components/InputDate.vue';
|
|
39
40
|
export * from '../components/InputMenu.vue';
|
|
40
41
|
export * from '../components/InputNumber.vue';
|
|
41
42
|
export * from '../components/InputTags.vue';
|
|
43
|
+
export * from '../components/InputTime.vue';
|
|
42
44
|
export * from '../components/Kbd.vue';
|
|
43
45
|
export * from '../components/Link.vue';
|
|
44
46
|
export * from '../components/Modal.vue';
|
|
@@ -36,9 +36,11 @@ export * from "../components/FileUpload.vue";
|
|
|
36
36
|
export * from "../components/Form.vue";
|
|
37
37
|
export * from "../components/FormField.vue";
|
|
38
38
|
export * from "../components/Input.vue";
|
|
39
|
+
export * from "../components/InputDate.vue";
|
|
39
40
|
export * from "../components/InputMenu.vue";
|
|
40
41
|
export * from "../components/InputNumber.vue";
|
|
41
42
|
export * from "../components/InputTags.vue";
|
|
43
|
+
export * from "../components/InputTime.vue";
|
|
42
44
|
export * from "../components/Kbd.vue";
|
|
43
45
|
export * from "../components/Link.vue";
|
|
44
46
|
export * from "../components/Modal.vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface ModelModifiers {
|
|
2
|
-
string?: boolean;
|
|
3
|
-
number?: boolean;
|
|
4
|
-
trim?: boolean;
|
|
1
|
+
export interface ModelModifiers<T = any> {
|
|
2
|
+
string?: string extends T ? boolean : never;
|
|
3
|
+
number?: number extends T ? boolean : never;
|
|
4
|
+
trim?: string extends T ? boolean : never;
|
|
5
5
|
lazy?: boolean;
|
|
6
|
-
nullable?: boolean;
|
|
6
|
+
nullable?: null extends T ? boolean : never;
|
|
7
7
|
optional?: boolean;
|
|
8
8
|
}
|
|
@@ -42,4 +42,6 @@ export type StringOrVNode = string | VNode | (() => VNode);
|
|
|
42
42
|
export type EmitsToProps<T> = {
|
|
43
43
|
[K in keyof T as `on${Capitalize<string & K>}`]: T[K] extends [...args: infer Args] ? (...args: Args) => void : never;
|
|
44
44
|
};
|
|
45
|
+
export type NonUnion<T> = [T] extends [infer U] ? _NonUnion<U, U> : never;
|
|
46
|
+
type _NonUnion<T, U> = U extends any ? [T] extends [U] ? unknown : never : never;
|
|
45
47
|
export {};
|
|
@@ -4,13 +4,13 @@ type MapContentNavigationItemOptions = {
|
|
|
4
4
|
labelAttribute?: string;
|
|
5
5
|
deep?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, "
|
|
7
|
+
export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, "path" | "title"> & {
|
|
8
8
|
label?: string;
|
|
9
9
|
to?: string;
|
|
10
10
|
type?: string;
|
|
11
11
|
icon?: IconComponent;
|
|
12
12
|
};
|
|
13
|
-
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "
|
|
13
|
+
export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "path" | "title"> & {
|
|
14
14
|
label?: string;
|
|
15
15
|
to?: string;
|
|
16
16
|
type?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import type { UseLoadingProps } from '../composables/useLoading';
|
|
3
|
-
export interface DashboardContext extends Pick<UseLoadingProps, 'storage' | 'storageKey'> {
|
|
3
|
+
export interface DashboardContext extends /** @vue-ignore */ Pick<UseLoadingProps, 'storage' | 'storageKey'> {
|
|
4
4
|
contextId?: string;
|
|
5
5
|
sidebarOpen?: Ref<boolean>;
|
|
6
6
|
isLoading?: Ref<boolean>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../types';
|
|
2
|
+
export declare const linkKeys: readonly ["active", "activeClass", "ariaCurrentValue", "as", "disabled", "download", "exact", "exactActiveClass", "exactHash", "exactQuery", "external", "form", "formaction", "formenctype", "formmethod", "formnovalidate", "formtarget", "href", "hreflang", "inactiveClass", "media", "noPrefetch", "noRel", "onClick", "ping", "prefetch", "prefetchOn", "prefetchedClass", "referrerpolicy", "rel", "replace", "target", "title", "to", "trailingSlash", "type", "viewTransition"];
|
|
2
3
|
export declare function pickLinkProps(link: LinkProps & {
|
|
3
4
|
[key: string]: any;
|
|
4
5
|
}): import("@vueuse/shared").ReactivePickReturn<LinkProps & {
|
|
@@ -1,34 +1,50 @@
|
|
|
1
1
|
import { reactivePick } from "@vueuse/core";
|
|
2
2
|
import { isEqual, diff } from "ohash/utils";
|
|
3
|
+
export const linkKeys = [
|
|
4
|
+
"active",
|
|
5
|
+
"activeClass",
|
|
6
|
+
"ariaCurrentValue",
|
|
7
|
+
"as",
|
|
8
|
+
"disabled",
|
|
9
|
+
"download",
|
|
10
|
+
"exact",
|
|
11
|
+
"exactActiveClass",
|
|
12
|
+
"exactHash",
|
|
13
|
+
"exactQuery",
|
|
14
|
+
"external",
|
|
15
|
+
"form",
|
|
16
|
+
"formaction",
|
|
17
|
+
"formenctype",
|
|
18
|
+
"formmethod",
|
|
19
|
+
"formnovalidate",
|
|
20
|
+
"formtarget",
|
|
21
|
+
"href",
|
|
22
|
+
"hreflang",
|
|
23
|
+
"inactiveClass",
|
|
24
|
+
"media",
|
|
25
|
+
"noPrefetch",
|
|
26
|
+
"noRel",
|
|
27
|
+
"onClick",
|
|
28
|
+
"ping",
|
|
29
|
+
"prefetch",
|
|
30
|
+
"prefetchOn",
|
|
31
|
+
"prefetchedClass",
|
|
32
|
+
"referrerpolicy",
|
|
33
|
+
"rel",
|
|
34
|
+
"replace",
|
|
35
|
+
"target",
|
|
36
|
+
"title",
|
|
37
|
+
"to",
|
|
38
|
+
"trailingSlash",
|
|
39
|
+
"type",
|
|
40
|
+
"viewTransition"
|
|
41
|
+
];
|
|
3
42
|
export function pickLinkProps(link) {
|
|
4
43
|
const keys = Object.keys(link);
|
|
5
44
|
const ariaKeys = keys.filter((key) => key.startsWith("aria-"));
|
|
6
45
|
const dataKeys = keys.filter((key) => key.startsWith("data-"));
|
|
7
46
|
const propsToInclude = [
|
|
8
|
-
|
|
9
|
-
"activeClass",
|
|
10
|
-
"ariaCurrentValue",
|
|
11
|
-
"as",
|
|
12
|
-
"disabled",
|
|
13
|
-
"exact",
|
|
14
|
-
"exactActiveClass",
|
|
15
|
-
"exactHash",
|
|
16
|
-
"exactQuery",
|
|
17
|
-
"external",
|
|
18
|
-
"href",
|
|
19
|
-
"download",
|
|
20
|
-
"inactiveClass",
|
|
21
|
-
"noPrefetch",
|
|
22
|
-
"noRel",
|
|
23
|
-
"prefetch",
|
|
24
|
-
"prefetchedClass",
|
|
25
|
-
"rel",
|
|
26
|
-
"replace",
|
|
27
|
-
"target",
|
|
28
|
-
"to",
|
|
29
|
-
"type",
|
|
30
|
-
"title",
|
|
31
|
-
"onClick",
|
|
47
|
+
...linkKeys,
|
|
32
48
|
...ariaKeys,
|
|
33
49
|
...dataKeys
|
|
34
50
|
];
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
interface
|
|
1
|
+
import type { RouterLinkProps } from 'vue-router';
|
|
2
|
+
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
+
export interface LinkProps extends Omit<RouterLinkProps, 'custom'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The element or component this component should render as when not a link.
|
|
6
|
+
* @defaultValue 'button'
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
as?: any;
|
|
8
9
|
/**
|
|
9
10
|
* An alias for `to`. If used with `to`, `href` will be ignored
|
|
10
11
|
*/
|
|
11
|
-
href?:
|
|
12
|
+
href?: LinkProps['to'];
|
|
12
13
|
/**
|
|
13
14
|
* Forces the link to be considered as external (true) or internal (false). This is helpful to handle edge-cases
|
|
14
15
|
*/
|
|
@@ -21,36 +22,6 @@ interface NuxtLinkProps extends Omit<RouterLinkProps, 'to'> {
|
|
|
21
22
|
* A rel attribute value to apply on the link. Defaults to "noopener noreferrer" for external links.
|
|
22
23
|
*/
|
|
23
24
|
rel?: 'noopener' | 'noreferrer' | 'nofollow' | 'sponsored' | 'ugc' | (string & {}) | null;
|
|
24
|
-
/**
|
|
25
|
-
* If set to true, no rel attribute will be added to the link
|
|
26
|
-
*/
|
|
27
|
-
noRel?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* A class to apply to links that have been prefetched.
|
|
30
|
-
*/
|
|
31
|
-
prefetchedClass?: string;
|
|
32
|
-
/**
|
|
33
|
-
* When enabled will prefetch middleware, layouts and payloads of links in the viewport.
|
|
34
|
-
*/
|
|
35
|
-
prefetch?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Allows controlling when to prefetch links. By default, prefetch is triggered only on visibility.
|
|
38
|
-
*/
|
|
39
|
-
prefetchOn?: 'visibility' | 'interaction' | Partial<{
|
|
40
|
-
visibility: boolean;
|
|
41
|
-
interaction: boolean;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Escape hatch to disable `prefetch` attribute.
|
|
45
|
-
*/
|
|
46
|
-
noPrefetch?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface LinkProps extends NuxtLinkProps {
|
|
49
|
-
/**
|
|
50
|
-
* The element or component this component should render as when not a link.
|
|
51
|
-
* @defaultValue 'button'
|
|
52
|
-
*/
|
|
53
|
-
as?: any;
|
|
54
25
|
/**
|
|
55
26
|
* The type of the button when not a link.
|
|
56
27
|
* @defaultValue 'button'
|
|
@@ -82,9 +53,9 @@ export interface LinkSlots {
|
|
|
82
53
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
83
54
|
as: any;
|
|
84
55
|
type: "reset" | "submit" | "button";
|
|
56
|
+
active: boolean;
|
|
85
57
|
activeClass: string;
|
|
86
58
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
87
|
-
active: boolean;
|
|
88
59
|
inactiveClass: string;
|
|
89
60
|
isAction: boolean;
|
|
90
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -13,10 +13,14 @@ import { useRoute, RouterLink } from "vue-router";
|
|
|
13
13
|
import { useAppConfig } from "#imports";
|
|
14
14
|
import { tv } from "../../utils/tv";
|
|
15
15
|
import { isPartiallyEqual } from "../../utils/link";
|
|
16
|
-
import B24LinkBase from "
|
|
16
|
+
import B24LinkBase from "../../components/LinkBase.vue";
|
|
17
17
|
defineOptions({ inheritAttrs: false });
|
|
18
18
|
const props = defineProps({
|
|
19
19
|
as: { type: null, required: false, default: "button" },
|
|
20
|
+
href: { type: null, required: false },
|
|
21
|
+
external: { type: Boolean, required: false },
|
|
22
|
+
target: { type: [String, Object, null], required: false },
|
|
23
|
+
rel: { type: [String, Object, null], required: false },
|
|
20
24
|
type: { type: null, required: false, default: "button" },
|
|
21
25
|
disabled: { type: Boolean, required: false },
|
|
22
26
|
active: { type: Boolean, required: false, default: void 0 },
|
|
@@ -28,20 +32,11 @@ const props = defineProps({
|
|
|
28
32
|
isAction: { type: Boolean, required: false, default: false },
|
|
29
33
|
raw: { type: Boolean, required: false },
|
|
30
34
|
class: { type: null, required: false },
|
|
31
|
-
to: { type: null, required: false },
|
|
32
|
-
href: { type: null, required: false },
|
|
33
|
-
external: { type: Boolean, required: false },
|
|
34
|
-
target: { type: [String, Object, null], required: false },
|
|
35
|
-
rel: { type: [String, Object, null], required: false },
|
|
36
|
-
noRel: { type: Boolean, required: false },
|
|
37
|
-
prefetchedClass: { type: String, required: false },
|
|
38
|
-
prefetch: { type: Boolean, required: false },
|
|
39
|
-
prefetchOn: { type: [String, Object], required: false },
|
|
40
|
-
noPrefetch: { type: Boolean, required: false },
|
|
41
35
|
activeClass: { type: String, required: false, default: "" },
|
|
42
36
|
exactActiveClass: { type: String, required: false },
|
|
43
37
|
ariaCurrentValue: { type: String, required: false, default: "page" },
|
|
44
38
|
viewTransition: { type: Boolean, required: false },
|
|
39
|
+
to: { type: null, required: true },
|
|
45
40
|
replace: { type: Boolean, required: false }
|
|
46
41
|
});
|
|
47
42
|
defineSlots();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
interface
|
|
1
|
+
import type { RouterLinkProps } from 'vue-router';
|
|
2
|
+
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
+
export interface LinkProps extends Omit<RouterLinkProps, 'custom'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The element or component this component should render as when not a link.
|
|
6
|
+
* @defaultValue 'button'
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
as?: any;
|
|
8
9
|
/**
|
|
9
10
|
* An alias for `to`. If used with `to`, `href` will be ignored
|
|
10
11
|
*/
|
|
11
|
-
href?:
|
|
12
|
+
href?: LinkProps['to'];
|
|
12
13
|
/**
|
|
13
14
|
* Forces the link to be considered as external (true) or internal (false). This is helpful to handle edge-cases
|
|
14
15
|
*/
|
|
@@ -21,36 +22,6 @@ interface NuxtLinkProps extends Omit<RouterLinkProps, 'to'> {
|
|
|
21
22
|
* A rel attribute value to apply on the link. Defaults to "noopener noreferrer" for external links.
|
|
22
23
|
*/
|
|
23
24
|
rel?: 'noopener' | 'noreferrer' | 'nofollow' | 'sponsored' | 'ugc' | (string & {}) | null;
|
|
24
|
-
/**
|
|
25
|
-
* If set to true, no rel attribute will be added to the link
|
|
26
|
-
*/
|
|
27
|
-
noRel?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* A class to apply to links that have been prefetched.
|
|
30
|
-
*/
|
|
31
|
-
prefetchedClass?: string;
|
|
32
|
-
/**
|
|
33
|
-
* When enabled will prefetch middleware, layouts and payloads of links in the viewport.
|
|
34
|
-
*/
|
|
35
|
-
prefetch?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Allows controlling when to prefetch links. By default, prefetch is triggered only on visibility.
|
|
38
|
-
*/
|
|
39
|
-
prefetchOn?: 'visibility' | 'interaction' | Partial<{
|
|
40
|
-
visibility: boolean;
|
|
41
|
-
interaction: boolean;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Escape hatch to disable `prefetch` attribute.
|
|
45
|
-
*/
|
|
46
|
-
noPrefetch?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface LinkProps extends NuxtLinkProps {
|
|
49
|
-
/**
|
|
50
|
-
* The element or component this component should render as when not a link.
|
|
51
|
-
* @defaultValue 'button'
|
|
52
|
-
*/
|
|
53
|
-
as?: any;
|
|
54
25
|
/**
|
|
55
26
|
* The type of the button when not a link.
|
|
56
27
|
* @defaultValue 'button'
|
|
@@ -82,9 +53,9 @@ export interface LinkSlots {
|
|
|
82
53
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
83
54
|
as: any;
|
|
84
55
|
type: "reset" | "submit" | "button";
|
|
56
|
+
active: boolean;
|
|
85
57
|
activeClass: string;
|
|
86
58
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
87
|
-
active: boolean;
|
|
88
59
|
inactiveClass: string;
|
|
89
60
|
isAction: boolean;
|
|
90
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ButtonProps } from '../../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "
|
|
9
|
+
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -4,15 +4,62 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
|
+
import { useForwardProps } from "reka-ui";
|
|
8
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
7
9
|
import { useColorMode } from "#imports";
|
|
8
10
|
import { useLocale } from "../../../composables/useLocale";
|
|
9
11
|
import icons from "../../../dictionary/icons";
|
|
10
12
|
import B24Button from "../../../components/Button.vue";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
defineOptions({ inheritAttrs: false });
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
color: { type: null, required: false, default: "air-tertiary-no-accent" },
|
|
16
|
+
label: { type: String, required: false },
|
|
17
|
+
activeColor: { type: null, required: false },
|
|
18
|
+
depth: { type: null, required: false },
|
|
19
|
+
activeDepth: { type: null, required: false },
|
|
20
|
+
size: { type: null, required: false },
|
|
21
|
+
rounded: { type: Boolean, required: false },
|
|
22
|
+
block: { type: Boolean, required: false },
|
|
23
|
+
loadingAuto: { type: Boolean, required: false },
|
|
24
|
+
normalCase: { type: Boolean, required: false },
|
|
25
|
+
useWait: { type: Boolean, required: false },
|
|
26
|
+
useClock: { type: Boolean, required: false },
|
|
27
|
+
useDropdown: { type: Boolean, required: false },
|
|
28
|
+
onClick: { type: [Function, Array], required: false },
|
|
29
|
+
class: { type: null, required: false },
|
|
30
|
+
activeClass: { type: String, required: false },
|
|
31
|
+
inactiveClass: { type: String, required: false },
|
|
32
|
+
b24ui: { type: null, required: false },
|
|
33
|
+
icon: { type: [Function, Object], required: false },
|
|
34
|
+
avatar: { type: Object, required: false },
|
|
35
|
+
loading: { type: Boolean, required: false },
|
|
36
|
+
as: { type: null, required: false },
|
|
37
|
+
type: { type: null, required: false },
|
|
38
|
+
disabled: { type: Boolean, required: false },
|
|
39
|
+
active: { type: Boolean, required: false },
|
|
40
|
+
exact: { type: Boolean, required: false },
|
|
41
|
+
exactQuery: { type: [Boolean, String], required: false },
|
|
42
|
+
exactHash: { type: Boolean, required: false },
|
|
43
|
+
isAction: { type: Boolean, required: false },
|
|
44
|
+
to: { type: null, required: false },
|
|
45
|
+
href: { type: null, required: false },
|
|
46
|
+
external: { type: Boolean, required: false },
|
|
47
|
+
target: { type: [String, Object, null], required: false },
|
|
48
|
+
rel: { type: [String, Object, null], required: false },
|
|
49
|
+
noRel: { type: Boolean, required: false },
|
|
50
|
+
prefetchedClass: { type: String, required: false },
|
|
51
|
+
prefetch: { type: Boolean, required: false },
|
|
52
|
+
prefetchOn: { type: [String, Object], required: false },
|
|
53
|
+
noPrefetch: { type: Boolean, required: false },
|
|
54
|
+
trailingSlash: { type: String, required: false },
|
|
55
|
+
exactActiveClass: { type: String, required: false },
|
|
56
|
+
ariaCurrentValue: { type: String, required: false },
|
|
57
|
+
viewTransition: { type: Boolean, required: false },
|
|
58
|
+
replace: { type: Boolean, required: false }
|
|
13
59
|
});
|
|
14
60
|
const { t } = useLocale();
|
|
15
61
|
const colorMode = useColorMode();
|
|
62
|
+
const buttonProps = useForwardProps(reactiveOmit(props, "icon"));
|
|
16
63
|
const isDark = computed({
|
|
17
64
|
get() {
|
|
18
65
|
return colorMode.value === "dark";
|
|
@@ -25,9 +72,12 @@ const isDark = computed({
|
|
|
25
72
|
|
|
26
73
|
<template>
|
|
27
74
|
<B24Button
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
75
|
+
v-bind="{
|
|
76
|
+
...buttonProps,
|
|
77
|
+
'icon': props.icon || (isDark ? icons.dark : icons.light),
|
|
78
|
+
'aria-label': isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark'),
|
|
79
|
+
...$attrs
|
|
80
|
+
}"
|
|
31
81
|
@click="isDark = !isDark"
|
|
32
82
|
/>
|
|
33
83
|
</template>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ButtonProps } from '../../../types';
|
|
2
|
-
export interface ColorModeButtonProps extends
|
|
2
|
+
export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
|
|
3
3
|
/**
|
|
4
4
|
* @defaultValue 'air-tertiary-no-accent'
|
|
5
5
|
*/
|
|
6
6
|
color?: ButtonProps['color'];
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
|
|
9
|
-
color: "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "
|
|
9
|
+
color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { SelectMenuProps } from '../../../types';
|
|
2
|
-
export interface ColorModeSelectProps extends
|
|
1
|
+
import type { SelectMenuProps, SelectMenuItem } from '../../../types';
|
|
2
|
+
export interface ColorModeSelectProps extends Omit<SelectMenuProps<SelectMenuItem[]>, 'icon' | 'items' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
5
|
+
searchInput: boolean | import("../../../types").InputProps;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
7
|
declare const _default: typeof __VLS_export;
|
|
6
8
|
export default _default;
|
|
@@ -4,14 +4,58 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
|
+
import { useForwardProps } from "reka-ui";
|
|
7
8
|
import { useColorMode } from "#imports";
|
|
8
9
|
import { useLocale } from "../../../composables/useLocale";
|
|
9
10
|
import icons from "../../../dictionary/icons";
|
|
10
11
|
import B24SelectMenu from "../../../components/SelectMenu.vue";
|
|
11
12
|
defineOptions({ inheritAttrs: false });
|
|
12
|
-
defineProps({
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
id: { type: String, required: false },
|
|
15
|
+
placeholder: { type: String, required: false },
|
|
16
|
+
searchInput: { type: [Boolean, Object], required: false, default: false },
|
|
17
|
+
color: { type: null, required: false },
|
|
18
|
+
size: { type: null, required: false },
|
|
19
|
+
noPadding: { type: Boolean, required: false },
|
|
20
|
+
noBorder: { type: Boolean, required: false },
|
|
21
|
+
underline: { type: Boolean, required: false },
|
|
22
|
+
rounded: { type: Boolean, required: false },
|
|
23
|
+
tag: { type: String, required: false },
|
|
24
|
+
tagColor: { type: null, required: false },
|
|
25
|
+
required: { type: Boolean, required: false },
|
|
26
|
+
trailingIcon: { type: [Function, Object], required: false },
|
|
27
|
+
selectedIcon: { type: [Function, Object], required: false },
|
|
28
|
+
content: { type: Object, required: false },
|
|
29
|
+
arrow: { type: [Boolean, Object], required: false },
|
|
30
|
+
portal: { type: [Boolean, String], required: false, skipCheck: true },
|
|
31
|
+
virtualize: { type: [Boolean, Object], required: false },
|
|
32
|
+
valueKey: { type: null, required: false },
|
|
33
|
+
labelKey: { type: null, required: false },
|
|
34
|
+
descriptionKey: { type: null, required: false },
|
|
35
|
+
defaultValue: { type: null, required: false },
|
|
36
|
+
multiple: { type: Boolean, required: false },
|
|
37
|
+
highlight: { type: Boolean, required: false },
|
|
38
|
+
createItem: { type: [Boolean, String, Object], required: false },
|
|
39
|
+
filterFields: { type: Array, required: false },
|
|
40
|
+
ignoreFilter: { type: Boolean, required: false },
|
|
41
|
+
autofocus: { type: Boolean, required: false },
|
|
42
|
+
autofocusDelay: { type: Number, required: false },
|
|
43
|
+
class: { type: null, required: false },
|
|
44
|
+
b24ui: { type: null, required: false },
|
|
45
|
+
open: { type: Boolean, required: false },
|
|
46
|
+
defaultOpen: { type: Boolean, required: false },
|
|
47
|
+
disabled: { type: Boolean, required: false },
|
|
48
|
+
name: { type: String, required: false },
|
|
49
|
+
resetSearchTermOnBlur: { type: Boolean, required: false },
|
|
50
|
+
resetSearchTermOnSelect: { type: Boolean, required: false },
|
|
51
|
+
highlightOnHover: { type: Boolean, required: false },
|
|
52
|
+
avatar: { type: Object, required: false },
|
|
53
|
+
loading: { type: Boolean, required: false },
|
|
54
|
+
trailing: { type: Boolean, required: false }
|
|
55
|
+
});
|
|
13
56
|
const { t } = useLocale();
|
|
14
57
|
const colorMode = useColorMode();
|
|
58
|
+
const selectMenuProps = useForwardProps(props);
|
|
15
59
|
const items = computed(() => [
|
|
16
60
|
{ label: t("colorMode.system"), value: "system", icon: icons.system },
|
|
17
61
|
{ label: t("colorMode.light"), value: "light", icon: icons.light },
|
|
@@ -31,8 +75,7 @@ const preference = computed({
|
|
|
31
75
|
<B24SelectMenu
|
|
32
76
|
v-model="preference"
|
|
33
77
|
:icon="preference?.icon"
|
|
34
|
-
|
|
35
|
-
v-bind="$attrs"
|
|
78
|
+
v-bind="{ ...selectMenuProps, ...$attrs }"
|
|
36
79
|
:items="items"
|
|
37
80
|
/>
|
|
38
81
|
</template>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { SelectMenuProps } from '../../../types';
|
|
2
|
-
export interface ColorModeSelectProps extends
|
|
1
|
+
import type { SelectMenuProps, SelectMenuItem } from '../../../types';
|
|
2
|
+
export interface ColorModeSelectProps extends Omit<SelectMenuProps<SelectMenuItem[]>, 'icon' | 'items' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
5
|
+
searchInput: boolean | import("../../../types").InputProps;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
7
|
declare const _default: typeof __VLS_export;
|
|
6
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SwitchProps } from '../../../types';
|
|
2
|
-
export interface ColorModeSwitchProps extends
|
|
2
|
+
export interface ColorModeSwitchProps extends Omit<SwitchProps, 'checkedIcon' | 'uncheckedIcon' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<ColorModeSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,14 +4,32 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
|
+
import { useForwardProps } from "reka-ui";
|
|
7
8
|
import { useColorMode } from "#imports";
|
|
8
9
|
import { useLocale } from "../../../composables/useLocale";
|
|
9
10
|
import icons from "../../../dictionary/icons";
|
|
10
11
|
import B24Switch from "../../../components/Switch.vue";
|
|
11
12
|
defineOptions({ inheritAttrs: false });
|
|
12
|
-
defineProps({
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
as: { type: null, required: false },
|
|
15
|
+
color: { type: null, required: false },
|
|
16
|
+
size: { type: null, required: false },
|
|
17
|
+
loading: { type: Boolean, required: false },
|
|
18
|
+
loadingIcon: { type: [Function, Object], required: false },
|
|
19
|
+
label: { type: String, required: false },
|
|
20
|
+
description: { type: String, required: false },
|
|
21
|
+
class: { type: null, required: false },
|
|
22
|
+
b24ui: { type: null, required: false },
|
|
23
|
+
disabled: { type: Boolean, required: false },
|
|
24
|
+
id: { type: String, required: false },
|
|
25
|
+
name: { type: String, required: false },
|
|
26
|
+
required: { type: Boolean, required: false },
|
|
27
|
+
value: { type: String, required: false },
|
|
28
|
+
defaultValue: { type: Boolean, required: false }
|
|
29
|
+
});
|
|
13
30
|
const { t } = useLocale();
|
|
14
31
|
const colorMode = useColorMode();
|
|
32
|
+
const switchProps = useForwardProps(props);
|
|
15
33
|
const isDark = computed({
|
|
16
34
|
get() {
|
|
17
35
|
return colorMode.value === "dark";
|
|
@@ -27,7 +45,10 @@ const isDark = computed({
|
|
|
27
45
|
v-model="isDark"
|
|
28
46
|
:checked-icon="icons.dark"
|
|
29
47
|
:unchecked-icon="icons.light"
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
v-bind="{
|
|
49
|
+
...switchProps,
|
|
50
|
+
'aria-label': isDark ? t('colorMode.switchToLight') : t('colorMode.switchToDark'),
|
|
51
|
+
...$attrs
|
|
52
|
+
}"
|
|
32
53
|
/>
|
|
33
54
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SwitchProps } from '../../../types';
|
|
2
|
-
export interface ColorModeSwitchProps extends
|
|
2
|
+
export interface ColorModeSwitchProps extends Omit<SwitchProps, 'checkedIcon' | 'uncheckedIcon' | 'modelValue'> {
|
|
3
3
|
}
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<ColorModeSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,7 +20,7 @@ export declare const useColorMode: () => {
|
|
|
20
20
|
preference?: undefined;
|
|
21
21
|
readonly value?: undefined;
|
|
22
22
|
} | {
|
|
23
|
-
preference:
|
|
23
|
+
preference: import("@vueuse/core").BasicColorMode | "system";
|
|
24
24
|
readonly value: import("@vueuse/core").BasicColorMode;
|
|
25
25
|
forced: boolean;
|
|
26
26
|
};
|
|
@@ -36,7 +36,7 @@ export declare const useState: <T>(key: string, init: () => T) => Ref<T>;
|
|
|
36
36
|
export declare function useNuxtApp(): {
|
|
37
37
|
isHydrating: boolean;
|
|
38
38
|
payload: {
|
|
39
|
-
serverRendered:
|
|
39
|
+
serverRendered: any;
|
|
40
40
|
};
|
|
41
41
|
hooks: import("hookable").Hookable<Record<string, any>, string>;
|
|
42
42
|
hook: <NameT extends string>(name: NameT, function_: any, options?: {
|