@nuxt/ui 2.18.2 → 2.18.4
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/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/Table.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +2 -3
- package/dist/runtime/components/elements/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +15 -15
- package/dist/runtime/components/elements/ButtonGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Chip.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Meter.vue.d.ts +2 -2
- package/dist/runtime/components/elements/MeterGroup.d.ts +2 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Form.vue +2 -5
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +5 -5
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Radio.vue.d.ts +3 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Select.vue.d.ts +5 -5
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Textarea.vue.d.ts +4 -4
- package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +3 -3
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Tabs.vue +5 -2
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -4
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +5 -5
- package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Slideover.vue +1 -1
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.js +13 -17
- package/dist/runtime/composables/usePopper.d.ts +6 -6
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/plugins/colors.js +3 -3
- package/dist/runtime/types/accordion.d.ts +7 -6
- package/dist/runtime/types/alert.d.ts +10 -8
- package/dist/runtime/types/avatar.d.ts +15 -13
- package/dist/runtime/types/badge.d.ts +13 -11
- package/dist/runtime/types/breadcrumb.d.ts +8 -6
- package/dist/runtime/types/button.d.ts +29 -27
- package/dist/runtime/types/chip.d.ts +13 -11
- package/dist/runtime/types/clipboard.d.ts +1 -7
- package/dist/runtime/types/command-palette.d.ts +25 -23
- package/dist/runtime/types/component.d.ts +14 -17
- package/dist/runtime/types/divider.d.ts +3 -2
- package/dist/runtime/types/dropdown.d.ts +13 -12
- package/dist/runtime/types/form-group.d.ts +5 -4
- package/dist/runtime/types/form.d.ts +28 -29
- package/dist/runtime/types/horizontal-navigation.d.ts +11 -10
- package/dist/runtime/types/index.js +31 -31
- package/dist/runtime/types/input.d.ts +8 -7
- package/dist/runtime/types/kbd.d.ts +5 -4
- package/dist/runtime/types/link.d.ts +10 -9
- package/dist/runtime/types/meter.d.ts +5 -4
- package/dist/runtime/types/modal.d.ts +15 -13
- package/dist/runtime/types/notification.d.ts +20 -17
- package/dist/runtime/types/popper.d.ts +15 -13
- package/dist/runtime/types/progress.d.ts +6 -5
- package/dist/runtime/types/range.d.ts +7 -6
- package/dist/runtime/types/select.d.ts +8 -7
- package/dist/runtime/types/slideover.d.ts +12 -10
- package/dist/runtime/types/tabs.d.ts +6 -6
- package/dist/runtime/types/textarea.d.ts +8 -7
- package/dist/runtime/types/toggle.d.ts +7 -6
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/utils.d.ts +31 -11
- package/dist/runtime/types/vertical-navigation.d.ts +11 -10
- package/dist/runtime/utils/colors.js +75 -67
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/package.json +6 -6
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.js +0 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { chip } from '../ui.config
|
|
2
|
-
import colors from '#ui-colors'
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
import { chip } from '../ui.config'
|
|
2
|
+
import colors from '#ui-colors'
|
|
3
|
+
|
|
4
|
+
export type ChipSize = keyof typeof chip.size
|
|
5
|
+
export type ChipColor = 'gray' | typeof colors[number]
|
|
6
|
+
export type ChipPosition = keyof typeof chip.position
|
|
7
|
+
|
|
6
8
|
export interface Chip {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
size?: ChipSize
|
|
10
|
+
color?: ChipColor
|
|
11
|
+
position?: ChipPosition
|
|
12
|
+
text?: string
|
|
13
|
+
inset?: boolean
|
|
14
|
+
show?: boolean
|
|
13
15
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export interface ClipboardPlugin {
|
|
2
|
-
|
|
3
|
-
title?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
}, failure?: {
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
}) => void;
|
|
2
|
+
copy: (text: string, success?: { title?: string, description?: string }, failure?: { title?: string, description?: string }) => void
|
|
9
3
|
}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import Fuse from 'fuse.js'
|
|
2
|
-
import type { Avatar } from './avatar
|
|
1
|
+
import Fuse from 'fuse.js'
|
|
2
|
+
import type { Avatar } from './avatar'
|
|
3
|
+
|
|
3
4
|
export interface Command {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
id: string | number
|
|
6
|
+
prefix?: string
|
|
7
|
+
suffix?: string
|
|
8
|
+
icon?: string
|
|
9
|
+
iconClass?: string
|
|
10
|
+
avatar?: Avatar
|
|
11
|
+
chip?: string
|
|
12
|
+
disabled?: boolean
|
|
13
|
+
shortcuts?: string[]
|
|
14
|
+
group?: string
|
|
15
|
+
score?: number
|
|
16
|
+
matches?: Fuse.FuseResultMatch[]
|
|
17
|
+
[key: string]: any
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
export interface Group {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
key: string
|
|
22
|
+
active?: string
|
|
23
|
+
inactive?: string
|
|
24
|
+
commands?: Command[]
|
|
25
|
+
search?: (...args: any[]) => any[] | Promise<any[]>
|
|
26
|
+
filter?: (...args: any[]) => Command[]
|
|
27
|
+
static?: Boolean
|
|
28
|
+
[key: string]: any
|
|
27
29
|
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
export type ComponentProps<T> =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type ComponentEmit<T> =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
attrs: any;
|
|
16
|
-
emit: infer E;
|
|
17
|
-
}, ...args: any) => any ? NonNullable<E> : {};
|
|
1
|
+
export type ComponentProps<T> =
|
|
2
|
+
T extends new () => { $props: infer P } ? NonNullable<P> :
|
|
3
|
+
T extends (props: infer P, ...args: any) => any ? P :
|
|
4
|
+
{}
|
|
5
|
+
|
|
6
|
+
export type ComponentSlots<T> =
|
|
7
|
+
T extends new () => { $slots: infer S } ? NonNullable<S> :
|
|
8
|
+
T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any }, ...args: any) => any ? NonNullable<S> :
|
|
9
|
+
{}
|
|
10
|
+
|
|
11
|
+
export type ComponentEmit<T> =
|
|
12
|
+
T extends new () => { $emit: infer E } ? NonNullable<E> :
|
|
13
|
+
T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E }, ...args: any) => any ? NonNullable<E> :
|
|
14
|
+
{}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { divider } from '#ui/ui.config'
|
|
2
|
-
|
|
1
|
+
import { divider } from '#ui/ui.config'
|
|
2
|
+
|
|
3
|
+
export type DividerSize = keyof typeof divider.border.size.horizontal | keyof typeof divider.border.size.vertical
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type { NuxtLinkProps } from '#app'
|
|
2
|
-
import type { Avatar } from './avatar
|
|
1
|
+
import type { NuxtLinkProps } from '#app'
|
|
2
|
+
import type { Avatar } from './avatar'
|
|
3
|
+
|
|
3
4
|
export interface DropdownItem extends NuxtLinkProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
label: string
|
|
6
|
+
labelClass?: string
|
|
7
|
+
slot?: string
|
|
8
|
+
icon?: string
|
|
9
|
+
iconClass?: string
|
|
10
|
+
avatar?: Avatar
|
|
11
|
+
shortcuts?: string[]
|
|
12
|
+
disabled?: boolean
|
|
13
|
+
class?: string
|
|
14
|
+
click?: (...args: any[]) => void
|
|
14
15
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { formGroup } from '../ui.config
|
|
2
|
-
import type { ExtractDeepKey } from '.'
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
-
|
|
1
|
+
import { formGroup } from '../ui.config'
|
|
2
|
+
import type { ExtractDeepKey } from '.'
|
|
3
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
+
|
|
5
|
+
export type FormGroupSize = keyof typeof formGroup.size | ExtractDeepKey<AppConfig, ['ui', 'formGroup', 'size']>
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import type { Ref } from 'vue'
|
|
1
|
+
import type { Ref } from 'vue'
|
|
2
|
+
|
|
2
3
|
export interface FormError<T extends string = string> {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
path: T
|
|
5
|
+
message: string
|
|
5
6
|
}
|
|
7
|
+
|
|
6
8
|
export interface FormErrorWithId extends FormError {
|
|
7
|
-
|
|
9
|
+
id: string
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
export interface Form<T> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
errors: Ref<FormError[]>;
|
|
18
|
-
setErrors(errs: FormError[], path?: string): void;
|
|
19
|
-
getErrors(path?: string): FormError[];
|
|
20
|
-
submit(): Promise<void>;
|
|
13
|
+
validate(path?: string | string[], opts?: { silent?: true }): Promise<T | false>;
|
|
14
|
+
validate(path?: string | string[], opts?: { silent?: false }): Promise<T>;
|
|
15
|
+
clear(path?: string): void
|
|
16
|
+
errors: Ref<FormError[]>
|
|
17
|
+
setErrors(errs: FormError[], path?: string): void
|
|
18
|
+
getErrors(path?: string): FormError[]
|
|
19
|
+
submit(): Promise<void>
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export type FormEventType = 'blur' | 'input' | 'change' | 'submit';
|
|
21
|
+
|
|
22
|
+
export type FormSubmitEvent<T> = SubmitEvent & { data: T }
|
|
23
|
+
export type FormErrorEvent = SubmitEvent & { errors: FormErrorWithId[] }
|
|
24
|
+
|
|
25
|
+
export type FormEventType = 'blur' | 'input' | 'change' | 'submit'
|
|
26
|
+
|
|
29
27
|
export interface FormEvent {
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
type: FormEventType
|
|
29
|
+
path?: string
|
|
32
30
|
}
|
|
31
|
+
|
|
33
32
|
export interface InjectedFormGroupValue {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
inputId: Ref<string | undefined>
|
|
34
|
+
name: Ref<string>
|
|
35
|
+
size: Ref<string | number | symbol>
|
|
36
|
+
error: Ref<string | boolean | undefined>
|
|
37
|
+
eagerValidation: Ref<boolean>
|
|
39
38
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { Link } from './link
|
|
2
|
-
import type { Avatar } from './avatar
|
|
3
|
-
import type { Badge } from './badge
|
|
1
|
+
import type { Link } from './link'
|
|
2
|
+
import type { Avatar } from './avatar'
|
|
3
|
+
import type { Badge } from './badge'
|
|
4
|
+
|
|
4
5
|
export interface HorizontalNavigationLink extends Link {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
label: string
|
|
7
|
+
labelClass?: string
|
|
8
|
+
icon?: string
|
|
9
|
+
iconClass?: string
|
|
10
|
+
avatar?: Avatar
|
|
11
|
+
click?: (...args: any[]) => void
|
|
12
|
+
badge?: string | number | Badge
|
|
12
13
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export * from "./accordion
|
|
2
|
-
export * from "./alert
|
|
3
|
-
export * from "./avatar
|
|
4
|
-
export * from "./badge
|
|
5
|
-
export * from "./breadcrumb
|
|
6
|
-
export * from "./button
|
|
7
|
-
export * from "./chip
|
|
8
|
-
export * from "./clipboard
|
|
9
|
-
export * from "./command-palette
|
|
10
|
-
export * from "./divider
|
|
11
|
-
export * from "./dropdown
|
|
12
|
-
export * from "./form-group
|
|
13
|
-
export * from "./form
|
|
14
|
-
export * from "./horizontal-navigation
|
|
15
|
-
export * from "./input
|
|
16
|
-
export * from "./kbd
|
|
17
|
-
export * from "./link
|
|
18
|
-
export * from "./meter
|
|
19
|
-
export * from "./modal
|
|
20
|
-
export * from "./slideover
|
|
21
|
-
export * from "./notification
|
|
22
|
-
export * from "./popper
|
|
23
|
-
export * from "./progress
|
|
24
|
-
export * from "./range
|
|
25
|
-
export * from "./select
|
|
26
|
-
export * from "./tabs
|
|
27
|
-
export * from "./textarea
|
|
28
|
-
export * from "./toggle
|
|
29
|
-
export * from "./tooltip
|
|
30
|
-
export * from "./vertical-navigation
|
|
31
|
-
export * from "./utils
|
|
1
|
+
export * from "./accordion";
|
|
2
|
+
export * from "./alert";
|
|
3
|
+
export * from "./avatar";
|
|
4
|
+
export * from "./badge";
|
|
5
|
+
export * from "./breadcrumb";
|
|
6
|
+
export * from "./button";
|
|
7
|
+
export * from "./chip";
|
|
8
|
+
export * from "./clipboard";
|
|
9
|
+
export * from "./command-palette";
|
|
10
|
+
export * from "./divider";
|
|
11
|
+
export * from "./dropdown";
|
|
12
|
+
export * from "./form-group";
|
|
13
|
+
export * from "./form";
|
|
14
|
+
export * from "./horizontal-navigation";
|
|
15
|
+
export * from "./input";
|
|
16
|
+
export * from "./kbd";
|
|
17
|
+
export * from "./link";
|
|
18
|
+
export * from "./meter";
|
|
19
|
+
export * from "./modal";
|
|
20
|
+
export * from "./slideover";
|
|
21
|
+
export * from "./notification";
|
|
22
|
+
export * from "./popper";
|
|
23
|
+
export * from "./progress";
|
|
24
|
+
export * from "./range";
|
|
25
|
+
export * from "./select";
|
|
26
|
+
export * from "./tabs";
|
|
27
|
+
export * from "./textarea";
|
|
28
|
+
export * from "./toggle";
|
|
29
|
+
export * from "./tooltip";
|
|
30
|
+
export * from "./vertical-navigation";
|
|
31
|
+
export * from "./utils";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { input } from '../ui.config
|
|
2
|
-
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
-
import colors from '#ui-colors'
|
|
4
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
1
|
+
import { input } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type InputSize = keyof typeof input.size | ExtractDeepKey<AppConfig, ['ui', 'input', 'size']>
|
|
7
|
+
export type InputColor = keyof typeof input.color | ExtractDeepKey<AppConfig, ['ui', 'input', 'color']> | typeof colors[number]
|
|
8
|
+
export type InputVariant = keyof typeof input.variant | ExtractDeepKey<AppConfig, ['ui', 'input', 'variant']> | NestedKeyOf<typeof input.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'input', 'color']>>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { kbd } from '../ui.config
|
|
2
|
-
import type { ExtractDeepKey } from '.'
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
-
|
|
1
|
+
import { kbd } from '../ui.config'
|
|
2
|
+
import type { ExtractDeepKey } from '.'
|
|
3
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
+
|
|
5
|
+
export type KbdSize = keyof typeof kbd.size | ExtractDeepKey<AppConfig, ['ui', 'kbd', 'size']>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { NuxtLinkProps } from '#app'
|
|
1
|
+
import type { NuxtLinkProps } from '#app'
|
|
2
|
+
|
|
2
3
|
export interface Link extends NuxtLinkProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
as?: string
|
|
5
|
+
type?: string
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
active?: boolean
|
|
8
|
+
exact?: boolean
|
|
9
|
+
exactQuery?: boolean
|
|
10
|
+
exactHash?: boolean
|
|
11
|
+
inactiveClass?: string
|
|
11
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { meter } from '../ui.config
|
|
2
|
-
import colors from '#ui-colors'
|
|
3
|
-
|
|
4
|
-
export type
|
|
1
|
+
import { meter } from '../ui.config'
|
|
2
|
+
import colors from '#ui-colors'
|
|
3
|
+
|
|
4
|
+
export type MeterSize = keyof typeof meter.meter.size
|
|
5
|
+
export type MeterColor = keyof typeof meter.color | typeof colors[number]
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import type { Component } from 'vue'
|
|
1
|
+
import type { Component } from 'vue'
|
|
2
|
+
|
|
2
3
|
export interface Modal {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
appear?: boolean
|
|
5
|
+
overlay?: boolean
|
|
6
|
+
transition?: boolean
|
|
7
|
+
preventClose?: boolean
|
|
8
|
+
fullscreen?: boolean
|
|
9
|
+
class?: string | Object | string[]
|
|
10
|
+
ui?: any
|
|
11
|
+
onClose?: () => void
|
|
12
|
+
onClosePrevented?: () => void
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
export interface ModalState {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
16
|
+
component: Component | string
|
|
17
|
+
props: Modal
|
|
18
|
+
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import type { Avatar } from './avatar
|
|
2
|
-
import type { Button } from './button
|
|
3
|
-
import colors from '#ui-colors'
|
|
4
|
-
|
|
1
|
+
import type { Avatar } from './avatar'
|
|
2
|
+
import type { Button } from './button'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
|
|
5
|
+
export type NotificationColor = 'gray' | typeof colors[number]
|
|
6
|
+
|
|
5
7
|
export interface NotificationAction extends Button {
|
|
6
|
-
|
|
8
|
+
click?: (...args: any[]) => void
|
|
7
9
|
}
|
|
10
|
+
|
|
8
11
|
export interface Notification {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
id: string
|
|
13
|
+
title: string
|
|
14
|
+
description?: string
|
|
15
|
+
icon?: string
|
|
16
|
+
avatar?: Avatar
|
|
17
|
+
closeButton?: Button
|
|
18
|
+
timeout: number
|
|
19
|
+
actions?: NotificationAction[]
|
|
20
|
+
click?: (...args: any[]) => void
|
|
21
|
+
callback?: (...args: any[]) => void
|
|
22
|
+
color?: NotificationColor
|
|
23
|
+
ui?: any
|
|
21
24
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import type { Placement, PositioningStrategy } from '@popperjs/core'
|
|
1
|
+
import type { Placement, PositioningStrategy } from '@popperjs/core'
|
|
2
|
+
|
|
2
3
|
export interface PopperOptions {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
// Workaround for weak types: https://mariusschulz.com/blog/weak-type-detection-in-typescript#workarounds-for-weak-types
|
|
5
|
+
[key: string]: unknown
|
|
6
|
+
locked?: boolean
|
|
7
|
+
overflowPadding?: number
|
|
8
|
+
offsetDistance?: number
|
|
9
|
+
offsetSkid?: number
|
|
10
|
+
placement?: Placement
|
|
11
|
+
strategy?: PositioningStrategy
|
|
12
|
+
gpuAcceleration?: boolean
|
|
13
|
+
adaptive?: boolean
|
|
14
|
+
scroll?: boolean
|
|
15
|
+
resize?: boolean
|
|
16
|
+
arrow?: boolean
|
|
15
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { progress } from '../ui.config
|
|
2
|
-
import colors from '#ui-colors'
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
import { progress } from '../ui.config'
|
|
2
|
+
import colors from '#ui-colors'
|
|
3
|
+
|
|
4
|
+
export type ProgressSize = keyof typeof progress.progress.size
|
|
5
|
+
export type ProgressAnimation = keyof typeof progress.animation
|
|
6
|
+
export type ProgressColor = typeof colors[number]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { range } from '../ui.config
|
|
2
|
-
import type { ExtractDeepKey } from '.'
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
-
import colors from '#ui-colors'
|
|
5
|
-
|
|
6
|
-
export type
|
|
1
|
+
import { range } from '../ui.config'
|
|
2
|
+
import type { ExtractDeepKey } from '.'
|
|
3
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
+
import colors from '#ui-colors'
|
|
5
|
+
|
|
6
|
+
export type RangeSize = keyof typeof range.size | ExtractDeepKey<AppConfig, ['ui', 'range', 'size']>
|
|
7
|
+
export type RangeColor = typeof colors[number]
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { select } from '../ui.config
|
|
2
|
-
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
-
import colors from '#ui-colors'
|
|
4
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
1
|
+
import { select } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>
|
|
7
|
+
export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number]
|
|
8
|
+
export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import type { Component } from 'vue'
|
|
1
|
+
import type { Component } from 'vue'
|
|
2
|
+
|
|
2
3
|
export interface Slideover {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
ui?: any
|
|
5
|
+
side?: 'right' | 'left'
|
|
6
|
+
transition?: boolean
|
|
7
|
+
appear?: boolean
|
|
8
|
+
overlay?: boolean
|
|
9
|
+
preventClose?: boolean
|
|
10
|
+
modelValue?: boolean
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
export interface SlideoverState {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
component: Component | string
|
|
15
|
+
props: Slideover
|
|
14
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface TabItem {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
label: string
|
|
3
|
+
icon?: string
|
|
4
|
+
slot?: string
|
|
5
|
+
disabled?: boolean
|
|
6
|
+
content?: string
|
|
7
|
+
[key: string]: any
|
|
8
8
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { textarea } from '../ui.config
|
|
2
|
-
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
-
import colors from '#ui-colors'
|
|
4
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
1
|
+
import { textarea } from '../ui.config'
|
|
2
|
+
import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.'
|
|
3
|
+
import colors from '#ui-colors'
|
|
4
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
5
|
+
|
|
6
|
+
export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>
|
|
7
|
+
export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number]
|
|
8
|
+
export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { toggle } from '../ui.config
|
|
2
|
-
import type { ExtractDeepKey } from '.'
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
-
import colors from '#ui-colors'
|
|
5
|
-
|
|
6
|
-
export type
|
|
1
|
+
import { toggle } from '../ui.config'
|
|
2
|
+
import type { ExtractDeepKey } from '.'
|
|
3
|
+
import type { AppConfig } from 'nuxt/schema'
|
|
4
|
+
import colors from '#ui-colors'
|
|
5
|
+
|
|
6
|
+
export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>
|
|
7
|
+
export type ToggleColor = typeof colors[number]
|