@nuxt/ui 2.18.2 → 2.18.3
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 +1 -1
- package/dist/runtime/components/elements/Alert.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Button.vue.d.ts +14 -14
- package/dist/runtime/components/elements/Chip.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Dropdown.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 +1 -1
- package/dist/runtime/components/elements/MeterGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +4 -4
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +5 -5
- package/dist/runtime/components/forms/Radio.vue.d.ts +2 -2
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Range.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +4 -4
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +5 -5
- package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Modal.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/composables/usePopper.d.ts +6 -6
- 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/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,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]
|
|
@@ -1,16 +1,36 @@
|
|
|
1
|
-
export type Strategy = 'merge' | 'override'
|
|
1
|
+
export type Strategy = 'merge' | 'override'
|
|
2
|
+
|
|
2
3
|
export interface TightMap<O = any> {
|
|
3
|
-
|
|
4
|
+
[key: string]: TightMap | O
|
|
4
5
|
}
|
|
6
|
+
|
|
5
7
|
export type DeepPartial<T, O = any> = {
|
|
6
|
-
|
|
8
|
+
[P in keyof T]?: T[P] extends object
|
|
9
|
+
? DeepPartial<T[P], O>
|
|
10
|
+
: T[P];
|
|
7
11
|
} & {
|
|
8
|
-
|
|
9
|
-
}
|
|
12
|
+
[key: string]: O | TightMap<O>
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
export type NestedKeyOf<ObjectType extends Record<string, any>> = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
[Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any>
|
|
17
|
+
? NestedKeyOf<ObjectType[Key]>
|
|
18
|
+
: Key
|
|
19
|
+
}[keyof ObjectType]
|
|
20
|
+
|
|
21
|
+
type DeepKey<T, Keys extends string[]> =
|
|
22
|
+
Keys extends [infer First, ...infer Rest]
|
|
23
|
+
? First extends keyof T
|
|
24
|
+
? Rest extends string[]
|
|
25
|
+
? DeepKey<T[First], Rest>
|
|
26
|
+
: never
|
|
27
|
+
: never
|
|
28
|
+
: T
|
|
29
|
+
|
|
30
|
+
export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
31
|
+
? Result extends Record<string, any> ? keyof Result : never
|
|
32
|
+
: never
|
|
33
|
+
|
|
34
|
+
export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
|
|
35
|
+
? Result extends Record<string, any> ? Result : never
|
|
36
|
+
: never
|
|
@@ -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 VerticalNavigationLink 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
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.18.
|
|
4
|
-
"packageManager": "pnpm@9.
|
|
3
|
+
"version": "2.18.3",
|
|
4
|
+
"packageManager": "pnpm@9.6.0",
|
|
5
5
|
"repository": "nuxt/ui",
|
|
6
6
|
"homepage": "https://ui.nuxt.com",
|
|
7
7
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@headlessui/tailwindcss": "^0.2.1",
|
|
38
38
|
"@headlessui/vue": "^1.7.22",
|
|
39
|
-
"@iconify-json/heroicons": "^1.1.
|
|
40
|
-
"@nuxt/icon": "^1.
|
|
39
|
+
"@iconify-json/heroicons": "^1.1.23",
|
|
40
|
+
"@nuxt/icon": "^1.4.0",
|
|
41
41
|
"@nuxt/kit": "^3.12.4",
|
|
42
42
|
"@nuxtjs/color-mode": "^3.4.2",
|
|
43
43
|
"@nuxtjs/tailwindcss": "^6.12.1",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"tailwindcss": "^3.4.7"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@nuxt/eslint-config": "^0.
|
|
61
|
+
"@nuxt/eslint-config": "^0.4.0",
|
|
62
62
|
"@nuxt/module-builder": "^0.8.1",
|
|
63
|
-
"@nuxt/test-utils": "^3.
|
|
63
|
+
"@nuxt/test-utils": "^3.14.0",
|
|
64
64
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
65
65
|
"@vue/test-utils": "^2.4.6",
|
|
66
66
|
"eslint": "^8.57.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|