@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.
Files changed (103) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.d.ts +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +1 -1
  5. package/dist/runtime/components/data/Table.vue.d.ts +1 -1
  6. package/dist/runtime/components/elements/Alert.vue.d.ts +3 -3
  7. package/dist/runtime/components/elements/Avatar.vue.d.ts +2 -2
  8. package/dist/runtime/components/elements/Badge.vue.d.ts +1 -1
  9. package/dist/runtime/components/elements/Button.vue.d.ts +14 -14
  10. package/dist/runtime/components/elements/Chip.vue.d.ts +3 -3
  11. package/dist/runtime/components/elements/Dropdown.vue.d.ts +1 -1
  12. package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
  13. package/dist/runtime/components/elements/Meter.vue.d.ts +1 -1
  14. package/dist/runtime/components/elements/MeterGroup.d.ts +1 -1
  15. package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
  16. package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -2
  17. package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
  18. package/dist/runtime/components/forms/FormGroup.vue.d.ts +1 -1
  19. package/dist/runtime/components/forms/Input.vue.d.ts +4 -4
  20. package/dist/runtime/components/forms/InputMenu.vue.d.ts +5 -5
  21. package/dist/runtime/components/forms/Radio.vue.d.ts +2 -2
  22. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +2 -2
  23. package/dist/runtime/components/forms/Range.vue.d.ts +2 -2
  24. package/dist/runtime/components/forms/Select.vue.d.ts +4 -4
  25. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +5 -5
  26. package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
  27. package/dist/runtime/components/forms/Toggle.vue.d.ts +1 -1
  28. package/dist/runtime/components/layout/Divider.vue.d.ts +2 -2
  29. package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
  30. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
  31. package/dist/runtime/components/overlays/Modal.vue.d.ts +1 -1
  32. package/dist/runtime/components/overlays/Notification.vue.d.ts +3 -3
  33. package/dist/runtime/components/overlays/Popover.vue.d.ts +1 -1
  34. package/dist/runtime/components/overlays/Slideover.vue.d.ts +2 -2
  35. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
  36. package/dist/runtime/composables/usePopper.d.ts +6 -6
  37. package/dist/runtime/types/accordion.d.ts +7 -6
  38. package/dist/runtime/types/alert.d.ts +10 -8
  39. package/dist/runtime/types/avatar.d.ts +15 -13
  40. package/dist/runtime/types/badge.d.ts +13 -11
  41. package/dist/runtime/types/breadcrumb.d.ts +8 -6
  42. package/dist/runtime/types/button.d.ts +29 -27
  43. package/dist/runtime/types/chip.d.ts +13 -11
  44. package/dist/runtime/types/clipboard.d.ts +1 -7
  45. package/dist/runtime/types/command-palette.d.ts +25 -23
  46. package/dist/runtime/types/component.d.ts +14 -17
  47. package/dist/runtime/types/divider.d.ts +3 -2
  48. package/dist/runtime/types/dropdown.d.ts +13 -12
  49. package/dist/runtime/types/form-group.d.ts +5 -4
  50. package/dist/runtime/types/form.d.ts +28 -29
  51. package/dist/runtime/types/horizontal-navigation.d.ts +11 -10
  52. package/dist/runtime/types/index.js +31 -31
  53. package/dist/runtime/types/input.d.ts +8 -7
  54. package/dist/runtime/types/kbd.d.ts +5 -4
  55. package/dist/runtime/types/link.d.ts +10 -9
  56. package/dist/runtime/types/meter.d.ts +5 -4
  57. package/dist/runtime/types/modal.d.ts +15 -13
  58. package/dist/runtime/types/notification.d.ts +20 -17
  59. package/dist/runtime/types/popper.d.ts +15 -13
  60. package/dist/runtime/types/progress.d.ts +6 -5
  61. package/dist/runtime/types/range.d.ts +7 -6
  62. package/dist/runtime/types/select.d.ts +8 -7
  63. package/dist/runtime/types/slideover.d.ts +12 -10
  64. package/dist/runtime/types/tabs.d.ts +6 -6
  65. package/dist/runtime/types/textarea.d.ts +8 -7
  66. package/dist/runtime/types/toggle.d.ts +7 -6
  67. package/dist/runtime/types/tooltip.d.ts +5 -5
  68. package/dist/runtime/types/utils.d.ts +31 -11
  69. package/dist/runtime/types/vertical-navigation.d.ts +11 -10
  70. package/dist/runtime/utils/link.d.ts +1 -1
  71. package/package.json +6 -6
  72. package/dist/runtime/types/accordion.js +0 -0
  73. package/dist/runtime/types/alert.js +0 -0
  74. package/dist/runtime/types/avatar.js +0 -0
  75. package/dist/runtime/types/badge.js +0 -0
  76. package/dist/runtime/types/breadcrumb.js +0 -0
  77. package/dist/runtime/types/button.js +0 -0
  78. package/dist/runtime/types/chip.js +0 -0
  79. package/dist/runtime/types/clipboard.js +0 -0
  80. package/dist/runtime/types/command-palette.js +0 -0
  81. package/dist/runtime/types/component.js +0 -0
  82. package/dist/runtime/types/divider.js +0 -0
  83. package/dist/runtime/types/dropdown.js +0 -0
  84. package/dist/runtime/types/form-group.js +0 -0
  85. package/dist/runtime/types/form.js +0 -0
  86. package/dist/runtime/types/horizontal-navigation.js +0 -0
  87. package/dist/runtime/types/input.js +0 -0
  88. package/dist/runtime/types/kbd.js +0 -0
  89. package/dist/runtime/types/link.js +0 -0
  90. package/dist/runtime/types/meter.js +0 -0
  91. package/dist/runtime/types/modal.js +0 -0
  92. package/dist/runtime/types/notification.js +0 -0
  93. package/dist/runtime/types/popper.js +0 -0
  94. package/dist/runtime/types/progress.js +0 -0
  95. package/dist/runtime/types/range.js +0 -0
  96. package/dist/runtime/types/select.js +0 -0
  97. package/dist/runtime/types/slideover.js +0 -0
  98. package/dist/runtime/types/tabs.js +0 -0
  99. package/dist/runtime/types/textarea.js +0 -0
  100. package/dist/runtime/types/toggle.js +0 -0
  101. package/dist/runtime/types/tooltip.js +0 -0
  102. package/dist/runtime/types/utils.js +0 -0
  103. package/dist/runtime/types/vertical-navigation.js +0 -0
@@ -1,5 +1,6 @@
1
- import { progress } from '../ui.config.js';
2
- import colors from '#ui-colors';
3
- export type ProgressSize = keyof typeof progress.progress.size;
4
- export type ProgressAnimation = keyof typeof progress.animation;
5
- export type ProgressColor = typeof colors[number];
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.js';
2
- import type { ExtractDeepKey } from '.';
3
- import type { AppConfig } from 'nuxt/schema';
4
- import colors from '#ui-colors';
5
- export type RangeSize = keyof typeof range.size | ExtractDeepKey<AppConfig, ['ui', 'range', 'size']>;
6
- export type RangeColor = typeof colors[number];
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.js';
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
- import colors from '#ui-colors';
4
- import type { AppConfig } from 'nuxt/schema';
5
- export type SelectSize = keyof typeof select.size | ExtractDeepKey<AppConfig, ['ui', 'select', 'size']>;
6
- export type SelectColor = keyof typeof select.color | ExtractDeepKey<AppConfig, ['ui', 'select', 'color']> | typeof colors[number];
7
- export type SelectVariant = keyof typeof select.variant | ExtractDeepKey<AppConfig, ['ui', 'select', 'variant']> | NestedKeyOf<typeof select.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'select', 'color']>>;
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
- ui?: any;
4
- side?: 'right' | 'left';
5
- transition?: boolean;
6
- appear?: boolean;
7
- overlay?: boolean;
8
- preventClose?: boolean;
9
- modelValue?: boolean;
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
- component: Component | string;
13
- props: Slideover;
14
+ component: Component | string
15
+ props: Slideover
14
16
  }
@@ -1,8 +1,8 @@
1
1
  export interface TabItem {
2
- label: string;
3
- icon?: string;
4
- slot?: string;
5
- disabled?: boolean;
6
- content?: string;
7
- [key: string]: any;
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.js';
2
- import type { NestedKeyOf, ExtractDeepKey, ExtractDeepObject } from '.';
3
- import colors from '#ui-colors';
4
- import type { AppConfig } from 'nuxt/schema';
5
- export type TextareaSize = keyof typeof textarea.size | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'size']>;
6
- export type TextareaColor = keyof typeof textarea.color | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'color']> | typeof colors[number];
7
- export type TextareaVariant = keyof typeof textarea.variant | ExtractDeepKey<AppConfig, ['ui', 'textarea', 'variant']> | NestedKeyOf<typeof textarea.color> | NestedKeyOf<ExtractDeepObject<AppConfig, ['ui', 'textarea', 'color']>>;
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.js';
2
- import type { ExtractDeepKey } from '.';
3
- import type { AppConfig } from 'nuxt/schema';
4
- import colors from '#ui-colors';
5
- export type ToggleSize = keyof typeof toggle.size | ExtractDeepKey<AppConfig, ['ui', 'toggle', 'size']>;
6
- export type ToggleColor = typeof colors[number];
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,7 +1,7 @@
1
1
  export interface Tooltip {
2
- text?: string;
3
- prevent?: boolean;
4
- shortcuts?: string[];
5
- openDelay?: number;
6
- closeDelay?: number;
2
+ text?: string
3
+ prevent?: boolean
4
+ shortcuts?: string[]
5
+ openDelay?: number
6
+ closeDelay?: number
7
7
  }
@@ -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
- [key: string]: TightMap | O;
4
+ [key: string]: TightMap | O
4
5
  }
6
+
5
7
  export type DeepPartial<T, O = any> = {
6
- [P in keyof T]?: T[P] extends object ? DeepPartial<T[P], O> : T[P];
8
+ [P in keyof T]?: T[P] extends object
9
+ ? DeepPartial<T[P], O>
10
+ : T[P];
7
11
  } & {
8
- [key: string]: O | TightMap<O>;
9
- };
12
+ [key: string]: O | TightMap<O>
13
+ }
14
+
10
15
  export type NestedKeyOf<ObjectType extends Record<string, any>> = {
11
- [Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any> ? NestedKeyOf<ObjectType[Key]> : Key;
12
- }[keyof ObjectType];
13
- type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest] ? First extends keyof T ? Rest extends string[] ? DeepKey<T[First], Rest> : never : never : T;
14
- export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? keyof Result : never : never;
15
- export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? Result : never : never;
16
- export {};
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.js';
2
- import type { Avatar } from './avatar.js';
3
- import type { Badge } from './badge.js';
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
- label: string;
6
- labelClass?: string;
7
- icon?: string;
8
- iconClass?: string;
9
- avatar?: Avatar;
10
- click?: (...args: any[]) => void;
11
- badge?: string | number | Badge;
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
  }
@@ -18,7 +18,7 @@ export declare const nuxtLinkProps: {
18
18
  readonly required: false;
19
19
  };
20
20
  readonly rel: {
21
- readonly type: PropType<NuxtLinkProps["rel"]>;
21
+ readonly type: PropType<any>;
22
22
  readonly default: any;
23
23
  readonly required: false;
24
24
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.18.2",
4
- "packageManager": "pnpm@9.5.0",
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.22",
40
- "@nuxt/icon": "^1.3.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.3.13",
61
+ "@nuxt/eslint-config": "^0.4.0",
62
62
  "@nuxt/module-builder": "^0.8.1",
63
- "@nuxt/test-utils": "^3.13.1",
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