@nuxt/ui 2.22.0 → 2.22.1

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.22.0",
3
+ "version": "2.22.1",
4
4
  "configKey": "ui",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.10.0"
package/dist/module.mjs CHANGED
@@ -5,7 +5,7 @@ import { defu } from 'defu';
5
5
  import { setGlobalColors } from '../dist/runtime/utils/colors.js';
6
6
 
7
7
  const name = "@nuxt/ui";
8
- const version = "2.22.0";
8
+ const version = "2.22.1";
9
9
 
10
10
  function createTemplates(nuxt = useNuxt()) {
11
11
  const template = addTemplate({
@@ -5,7 +5,7 @@
5
5
  </slot>
6
6
 
7
7
  <slot>
8
- <span v-if="label">
8
+ <span v-if="label !== void 0 && label !== null">
9
9
  {{ label }}
10
10
  </span>
11
11
  </slot>
@@ -5,7 +5,7 @@
5
5
  </slot>
6
6
 
7
7
  <slot>
8
- <span v-if="label" :class="[truncate ? ui.truncate : '']">
8
+ <span v-if="label !== void 0 && label !== null" :class="[truncate ? ui.truncate : '']">
9
9
  {{ label }}
10
10
  </span>
11
11
  </slot>
@@ -1,4 +1,4 @@
1
- import { type PropType } from 'vue';
1
+ import type { PropType } from 'vue';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  as: {
4
4
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { type PropType } from 'vue';
1
+ import type { PropType } from 'vue';
2
2
  import type { Schema as JoiSchema } from 'joi';
3
3
  import type { ObjectSchema as YupObjectSchema } from 'yup';
4
4
  import type { StandardSchemaV1 } from '@standard-schema/spec';
@@ -63,7 +63,7 @@
63
63
  />
64
64
  <span v-else-if="option.chip" :class="uiMenu.option.chip.base" :style="{ background: `#${option.chip}` }" />
65
65
 
66
- <span class="truncate">{{ ['string', 'number'].includes(typeof option) ? option : accessor(option, optionAttribute) }}</span>
66
+ <span class="truncate">{{ ["string", "number"].includes(typeof option) ? option : accessor(option, optionAttribute) }}</span>
67
67
  </slot>
68
68
  </div>
69
69
 
@@ -75,7 +75,7 @@
75
75
 
76
76
  <p v-if="query && !filteredOptions.length" :class="uiMenu.option.empty">
77
77
  <slot name="option-empty" :query="query">
78
- {{ uiMenu.default.optionEmpty.label.replace('{query}', query) }}
78
+ {{ uiMenu.default.optionEmpty.label.replace("{query}", query) }}
79
79
  </slot>
80
80
  </p>
81
81
  <p v-else-if="!filteredOptions.length" :class="uiMenu.empty">
@@ -38,7 +38,7 @@
38
38
 
39
39
  <slot name="label" :selected="selected">
40
40
  <span v-if="label" :class="uiMenu.label">{{ label }}</span>
41
- <span v-else :class="uiMenu.label">{{ placeholder || '\xA0' }}</span>
41
+ <span v-else :class="uiMenu.label">{{ placeholder || "\xA0" }}</span>
42
42
  </slot>
43
43
 
44
44
  <span v-if="isTrailing && trailingIconName || $slots.trailing" :class="trailingWrapperIconClass">
@@ -87,7 +87,7 @@
87
87
  />
88
88
  <span v-else-if="option.chip" :class="uiMenu.option.chip.base" :style="{ background: `#${option.chip}` }" />
89
89
 
90
- <span class="truncate">{{ ['string', 'number'].includes(typeof option) ? option : accessor(option, optionAttribute) }}</span>
90
+ <span class="truncate">{{ ["string", "number"].includes(typeof option) ? option : accessor(option, optionAttribute) }}</span>
91
91
  </slot>
92
92
  </div>
93
93
 
@@ -101,14 +101,14 @@
101
101
  <li :class="[uiMenu.option.base, uiMenu.option.rounded, uiMenu.option.padding, uiMenu.option.size, uiMenu.option.color, active ? uiMenu.option.active : uiMenu.option.inactive]">
102
102
  <div :class="uiMenu.option.container">
103
103
  <slot name="option-create" :option="createOption" :active="active" :selected="optionSelected">
104
- <span :class="uiMenu.option.create">Create "{{ typeof createOption === 'string' ? createOption : accessor(createOption, optionAttribute) }}"</span>
104
+ <span :class="uiMenu.option.create">Create "{{ typeof createOption === "string" ? createOption : accessor(createOption, optionAttribute) }}"</span>
105
105
  </slot>
106
106
  </div>
107
107
  </li>
108
108
  </component>
109
109
  <p v-else-if="searchable && query && !filteredOptions?.length" :class="uiMenu.option.empty">
110
110
  <slot name="option-empty" :query="query">
111
- {{ uiMenu.default.optionEmpty.label.replace('{query}', query) }}
111
+ {{ uiMenu.default.optionEmpty.label.replace("{query}", query) }}
112
112
  </slot>
113
113
  </p>
114
114
  <p v-else-if="!filteredOptions?.length" :class="uiMenu.empty">
@@ -1,2 +1,2 @@
1
- import { type Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
2
  export declare const useCarouselScroll: (el: Ref<HTMLElement>) => void;
@@ -1,14 +1,14 @@
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
- {}
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
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
- {}
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
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
- {}
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
+ : {}
@@ -18,8 +18,8 @@ export type NestedKeyOf<ObjectType extends Record<string, any>> = {
18
18
  : Key
19
19
  }[keyof ObjectType]
20
20
 
21
- type DeepKey<T, Keys extends string[]> =
22
- Keys extends [infer First, ...infer Rest]
21
+ type DeepKey<T, Keys extends string[]>
22
+ = Keys extends [infer First, ...infer Rest]
23
23
  ? First extends keyof T
24
24
  ? Rest extends string[]
25
25
  ? DeepKey<T[First], Rest>
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
3
  "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
4
- "version": "2.22.0",
5
- "packageManager": "pnpm@10.9.0",
4
+ "version": "2.22.1",
5
+ "packageManager": "pnpm@10.13.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/nuxt/ui.git"
@@ -44,19 +44,19 @@
44
44
  "@headlessui/tailwindcss": "^0.2.2",
45
45
  "@headlessui/vue": "^1.7.23",
46
46
  "@iconify-json/heroicons": "^1.2.2",
47
- "@nuxt/icon": "^1.12.0",
48
- "@nuxt/kit": "^3.16.2",
47
+ "@nuxt/icon": "^1.15.0",
48
+ "@nuxt/kit": "^4.0.0",
49
49
  "@nuxtjs/color-mode": "^3.5.2",
50
- "@nuxtjs/tailwindcss": "^6.13.2",
50
+ "@nuxtjs/tailwindcss": "^6.14.0",
51
51
  "@popperjs/core": "^2.11.8",
52
52
  "@standard-schema/spec": "^1.0.0",
53
53
  "@tailwindcss/aspect-ratio": "^0.4.2",
54
54
  "@tailwindcss/container-queries": "^0.1.1",
55
55
  "@tailwindcss/forms": "^0.5.10",
56
56
  "@tailwindcss/typography": "^0.5.16",
57
- "@vueuse/core": "^13.1.0",
58
- "@vueuse/integrations": "^13.1.0",
59
- "@vueuse/math": "^13.1.0",
57
+ "@vueuse/core": "^13.5.0",
58
+ "@vueuse/integrations": "^13.5.0",
59
+ "@vueuse/math": "^13.5.0",
60
60
  "defu": "^6.1.4",
61
61
  "fuse.js": "^7.1.0",
62
62
  "ohash": "^2.0.11",
@@ -66,19 +66,19 @@
66
66
  "tailwindcss": "^3.4.17"
67
67
  },
68
68
  "devDependencies": {
69
- "@nuxt/eslint-config": "^1.3.0",
69
+ "@nuxt/eslint-config": "^1.5.2",
70
70
  "@nuxt/module-builder": "^1.0.1",
71
- "@nuxt/test-utils": "^3.17.2",
71
+ "@nuxt/test-utils": "^3.19.2",
72
72
  "@release-it/conventional-changelog": "^10.0.1",
73
73
  "@vue/test-utils": "^2.4.6",
74
- "eslint": "^9.25.0",
75
- "happy-dom": "^17.4.4",
76
- "nuxt": "^3.16.2",
77
- "release-it": "^19.0.1",
74
+ "eslint": "^9.31.0",
75
+ "happy-dom": "^18.0.1",
76
+ "nuxt": "^4.0.0",
77
+ "release-it": "^19.0.3",
78
78
  "typescript": "^5.8.3",
79
- "vitest": "^3.1.1",
79
+ "vitest": "^3.2.4",
80
80
  "vitest-environment-nuxt": "^1.0.1",
81
- "vue-tsc": "^2.1.10"
81
+ "vue-tsc": "^3.0.1"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "joi": "^17.13.0",
@@ -108,7 +108,11 @@
108
108
  "@nuxt/ui": "workspace:*",
109
109
  "@nuxt/content": "2.13.2",
110
110
  "@nuxtjs/mdc": "0.9.0",
111
- "chokidar": "3.6.0",
112
- "vue-tsc": "2.1.10"
111
+ "@vueuse/core": "^13.5.0",
112
+ "@vueuse/integrations": "^13.5.0",
113
+ "@vueuse/math": "^13.5.0",
114
+ "@vueuse/nuxt": "13.1.0",
115
+ "unimport": "4.1.1",
116
+ "chokidar": "3.6.0"
113
117
  }
114
118
  }