@nuxt/ui 3.3.6 → 3.3.7

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": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "docs": "https://ui3.nuxt.com/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
@@ -8,6 +8,6 @@
8
8
  },
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
- "unbuild": "3.6.0"
11
+ "unbuild": "3.6.1"
12
12
  }
13
13
  }
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
8
8
  import 'knitwork';
9
9
 
10
10
  const name = "@nuxt/ui";
11
- const version = "3.3.6";
11
+ const version = "3.3.7";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -42,7 +42,7 @@ const props = defineProps({
42
42
  disabled: { type: Boolean, required: false },
43
43
  modelValue: { type: null, required: false, default: "" },
44
44
  defaultValue: { type: null, required: false },
45
- highlightOnHover: { type: Boolean, required: false },
45
+ highlightOnHover: { type: Boolean, required: false, default: true },
46
46
  selectionBehavior: { type: String, required: false },
47
47
  loading: { type: Boolean, required: false },
48
48
  loadingIcon: { type: String, required: false }
@@ -35,7 +35,7 @@ const props = defineProps({
35
35
  required: { type: Boolean, required: false },
36
36
  disabled: { type: Boolean, required: false },
37
37
  fileIcon: { type: String, required: false },
38
- fileDelete: { type: [Boolean, Object], required: false },
38
+ fileDelete: { type: [Boolean, Object], required: false, default: true },
39
39
  fileDeleteIcon: { type: String, required: false },
40
40
  class: { type: null, required: false },
41
41
  ui: { type: null, required: false }
@@ -162,6 +162,7 @@ defineExpose({
162
162
 
163
163
  <slot name="file-trailing" :file="file" :index="index">
164
164
  <UButton
165
+ v-if="fileDelete"
165
166
  color="neutral"
166
167
  v-bind="{
167
168
  ...layout === 'grid' ? {
@@ -199,7 +200,7 @@ defineExpose({
199
200
  :class="ui.base({ class: props.ui?.base })"
200
201
  :tabindex="interactive && !disabled ? 0 : -1"
201
202
  @click="interactive && !disabled && open()"
202
- @keydown.prevent
203
+ @keydown.space.prevent
203
204
  @keyup.enter.space="interactive && !disabled && open()"
204
205
  >
205
206
  <ReuseFilesTemplate v-if="position === 'inside'" />
@@ -119,7 +119,7 @@ function getAccordionDefaultValue(list, level = 0) {
119
119
  <UIcon v-if="item.target === '_blank' && externalIcon !== false" :name="typeof externalIcon === 'string' ? externalIcon : appConfig.ui.icons.external" :class="ui.linkLabelExternalIcon({ class: [props.ui?.linkLabelExternalIcon, item.ui?.linkLabelExternalIcon], active })" />
120
120
  </span>
121
121
 
122
- <component :is="orientation === 'vertical' && item.children?.length && !collapsed ? AccordionTrigger : 'span'" v-if="(!collapsed || orientation !== 'vertical') && (item.badge || orientation === 'horizontal' && (item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content']) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing'])" as="span" :class="ui.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })" @click.stop.prevent>
122
+ <component :is="orientation === 'vertical' && item.children?.length && !collapsed ? AccordionTrigger : 'span'" v-if="(!collapsed || orientation !== 'vertical') && (item.badge !== void 0 || orientation === 'horizontal' && (item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content']) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing'])" as="span" :class="ui.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })" @click.stop.prevent>
123
123
  <slot :name="item.slot ? `${item.slot}-trailing` : 'item-trailing'" :item="item" :active="active" :index="index">
124
124
  <UBadge
125
125
  v-if="item.badge !== void 0"
@@ -70,10 +70,10 @@ export interface ToastSlots {
70
70
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
71
71
  height: import("vue").Ref<number, number>;
72
72
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
- resume: () => any;
74
73
  pause: () => any;
75
74
  "update:open": (value: boolean) => any;
76
75
  escapeKeyDown: (event: KeyboardEvent) => any;
76
+ resume: () => any;
77
77
  swipeStart: (event: {
78
78
  currentTarget: EventTarget & HTMLElement;
79
79
  } & Omit<CustomEvent<{
@@ -111,10 +111,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastP
111
111
  };
112
112
  }>, "currentTarget">) => any;
113
113
  }, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{
114
- onResume?: (() => any) | undefined;
115
114
  onPause?: (() => any) | undefined;
116
115
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
117
116
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
117
+ onResume?: (() => any) | undefined;
118
118
  onSwipeStart?: ((event: {
119
119
  currentTarget: EventTarget & HTMLElement;
120
120
  } & Omit<CustomEvent<{
@@ -70,10 +70,10 @@ export interface ToastSlots {
70
70
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
71
71
  height: import("vue").Ref<number, number>;
72
72
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
73
- resume: () => any;
74
73
  pause: () => any;
75
74
  "update:open": (value: boolean) => any;
76
75
  escapeKeyDown: (event: KeyboardEvent) => any;
76
+ resume: () => any;
77
77
  swipeStart: (event: {
78
78
  currentTarget: EventTarget & HTMLElement;
79
79
  } & Omit<CustomEvent<{
@@ -111,10 +111,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastP
111
111
  };
112
112
  }>, "currentTarget">) => any;
113
113
  }, string, import("vue").PublicProps, Readonly<ToastProps> & Readonly<{
114
- onResume?: (() => any) | undefined;
115
114
  onPause?: (() => any) | undefined;
116
115
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
117
116
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
117
+ onResume?: (() => any) | undefined;
118
118
  onSwipeStart?: ((event: {
119
119
  currentTarget: EventTarget & HTMLElement;
120
120
  } & Omit<CustomEvent<{
@@ -24,12 +24,13 @@ const props = defineProps({
24
24
  ui: { type: null, required: false },
25
25
  label: { type: String, required: false },
26
26
  duration: { type: Number, required: false, default: 5e3 },
27
+ disableSwipe: { type: Boolean, required: false },
27
28
  swipeThreshold: { type: Number, required: false }
28
29
  });
29
30
  defineSlots();
30
31
  const { toasts, remove } = useToast();
31
32
  const appConfig = useAppConfig();
32
- const providerProps = useForwardProps(reactivePick(props, "duration", "label", "swipeThreshold"));
33
+ const providerProps = useForwardProps(reactivePick(props, "duration", "label", "swipeThreshold", "disableSwipe"));
33
34
  const portalProps = usePortal(toRef(() => props.portal));
34
35
  const swipeDirection = computed(() => {
35
36
  switch (props.position) {
@@ -29,26 +29,31 @@ const props = defineProps({
29
29
  external: { type: Boolean, required: false },
30
30
  target: { type: [String, Object, null], required: false },
31
31
  ariaCurrentValue: { type: String, required: false },
32
- data: { type: Object, required: false },
32
+ data: { type: null, required: false },
33
33
  method: { type: String, required: false },
34
- headers: { type: Object, required: false },
34
+ replace: { type: Boolean, required: false },
35
35
  preserveScroll: { type: [Boolean, String, Function], required: false },
36
36
  preserveState: { type: [Boolean, String, Function], required: false },
37
- replace: { type: Boolean, required: false },
37
+ preserveUrl: { type: Boolean, required: false },
38
38
  only: { type: Array, required: false },
39
39
  except: { type: Array, required: false },
40
- onCancelToken: { type: Function, required: false },
40
+ headers: { type: Object, required: false },
41
+ queryStringArrayFormat: { type: String, required: false },
42
+ async: { type: Boolean, required: false },
41
43
  onBefore: { type: Function, required: false },
44
+ onBeforeUpdate: { type: Function, required: false },
42
45
  onStart: { type: Function, required: false },
43
46
  onProgress: { type: Function, required: false },
44
47
  onFinish: { type: Function, required: false },
45
48
  onCancel: { type: Function, required: false },
46
49
  onSuccess: { type: Function, required: false },
47
50
  onError: { type: Function, required: false },
48
- queryStringArrayFormat: { type: String, required: false },
49
- async: { type: Boolean, required: false },
51
+ onPrefetched: { type: Function, required: false },
52
+ onPrefetching: { type: Function, required: false },
53
+ onCancelToken: { type: Function, required: false },
50
54
  prefetch: { type: [Boolean, String, Array], required: false },
51
- cacheFor: { type: [Number, String, Array], required: false }
55
+ cacheFor: { type: [Number, String, Array], required: false },
56
+ cacheTags: { type: [String, Array], required: false }
52
57
  });
53
58
  defineSlots();
54
59
  const page = usePage();
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": "3.3.6",
5
- "packageManager": "pnpm@10.17.1",
4
+ "version": "3.3.7",
5
+ "packageManager": "pnpm@10.18.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/nuxt/ui.git"
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "dependencies": {
114
114
  "@iconify/vue": "^5.0.0",
115
- "@internationalized/date": "^3.9.0",
115
+ "@internationalized/date": "^3.10.0",
116
116
  "@internationalized/number": "^3.6.5",
117
117
  "@nuxt/fonts": "^0.11.4",
118
118
  "@nuxt/icon": "^1.15.0",
@@ -120,10 +120,10 @@
120
120
  "@nuxt/schema": "^4.1.2",
121
121
  "@nuxtjs/color-mode": "^3.5.2",
122
122
  "@standard-schema/spec": "^1.0.0",
123
- "@tailwindcss/postcss": "^4.1.14",
124
- "@tailwindcss/vite": "^4.1.14",
123
+ "@tailwindcss/postcss": "^4.1.16",
124
+ "@tailwindcss/vite": "^4.1.16",
125
125
  "@tanstack/vue-table": "^8.21.3",
126
- "@unhead/vue": "^2.0.17",
126
+ "@unhead/vue": "^2.0.19",
127
127
  "@vueuse/core": "^13.9.0",
128
128
  "@vueuse/integrations": "^13.9.0",
129
129
  "colortranslator": "^5.0.0",
@@ -143,17 +143,17 @@
143
143
  "mlly": "^1.8.0",
144
144
  "ohash": "^2.0.11",
145
145
  "pathe": "^2.0.3",
146
- "reka-ui": "2.5.1",
146
+ "reka-ui": "2.6.0",
147
147
  "scule": "^1.3.0",
148
148
  "tailwind-merge": "^3.3.1",
149
149
  "tailwind-variants": "^3.1.1",
150
- "tailwindcss": "^4.1.14",
150
+ "tailwindcss": "^4.1.16",
151
151
  "tinyglobby": "^0.2.15",
152
152
  "unplugin": "^2.3.10",
153
- "unplugin-auto-import": "^19.3.0",
154
- "unplugin-vue-components": "^28.8.0",
153
+ "unplugin-auto-import": "^20.2.0",
154
+ "unplugin-vue-components": "^30.0.0",
155
155
  "vaul-vue": "0.4.1",
156
- "vue-component-type-helpers": "^3.1.0"
156
+ "vue-component-type-helpers": "^3.1.1"
157
157
  },
158
158
  "devDependencies": {
159
159
  "@nuxt/eslint-config": "^1.9.0",
@@ -162,13 +162,13 @@
162
162
  "@release-it/conventional-changelog": "^10.0.1",
163
163
  "@vue/test-utils": "^2.4.6",
164
164
  "embla-carousel": "^8.6.0",
165
- "eslint": "^9.36.0",
166
- "happy-dom": "^19.0.2",
165
+ "eslint": "^9.38.0",
166
+ "happy-dom": "^20.0.7",
167
167
  "nuxt": "^4.1.2",
168
168
  "release-it": "^19.0.5",
169
169
  "vitest": "^3.2.4",
170
170
  "vitest-environment-nuxt": "^1.0.1",
171
- "vue-tsc": "^3.1.0"
171
+ "vue-tsc": "^3.1.1"
172
172
  },
173
173
  "peerDependencies": {
174
174
  "@inertiajs/vue3": "^2.0.7",
@@ -207,11 +207,12 @@
207
207
  "@nuxt/kit": "^4.1.2",
208
208
  "@nuxt/module-builder": "1.0.1",
209
209
  "@nuxt/ui": "workspace:*",
210
- "chokidar": "3.6.0",
211
210
  "debug": "4.3.7",
212
211
  "typescript": "5.8.3",
213
212
  "unimport": "4.1.1",
214
- "unplugin": "^2.3.10"
213
+ "unplugin": "^2.3.10",
214
+ "unplugin-auto-import": "^20.2.0",
215
+ "unplugin-vue-components": "^30.0.0"
215
216
  },
216
217
  "keywords": [
217
218
  "nuxt-ui",