@nuxt/ui 2.18.5 → 2.18.6

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 (56) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/data/Table.vue +3 -3
  4. package/dist/runtime/components/data/Table.vue.d.ts +281 -17
  5. package/dist/runtime/components/elements/Accordion.vue.d.ts +119 -11
  6. package/dist/runtime/components/elements/Alert.vue.d.ts +203 -15
  7. package/dist/runtime/components/elements/Avatar.vue.d.ts +66 -4
  8. package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -1
  9. package/dist/runtime/components/elements/Badge.vue.d.ts +40 -4
  10. package/dist/runtime/components/elements/Button.vue.d.ts +91 -8
  11. package/dist/runtime/components/elements/ButtonGroup.d.ts +103 -2
  12. package/dist/runtime/components/elements/Carousel.vue.d.ts +121 -11
  13. package/dist/runtime/components/elements/Chip.vue.d.ts +41 -4
  14. package/dist/runtime/components/elements/Dropdown.vue.d.ts +152 -10
  15. package/dist/runtime/components/elements/Kbd.vue.d.ts +23 -4
  16. package/dist/runtime/components/elements/Link.vue.d.ts +2 -2
  17. package/dist/runtime/components/elements/Meter.vue.d.ts +83 -4
  18. package/dist/runtime/components/elements/MeterGroup.d.ts +54 -2
  19. package/dist/runtime/components/elements/Progress.vue.d.ts +81 -4
  20. package/dist/runtime/components/forms/Checkbox.vue.d.ts +25 -4
  21. package/dist/runtime/components/forms/FormGroup.vue.d.ts +32 -4
  22. package/dist/runtime/components/forms/Input.vue.d.ts +121 -5
  23. package/dist/runtime/components/forms/InputMenu.vue.d.ts +251 -11
  24. package/dist/runtime/components/forms/Radio.vue.d.ts +24 -4
  25. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +61 -10
  26. package/dist/runtime/components/forms/Range.vue.d.ts +70 -4
  27. package/dist/runtime/components/forms/Select.vue.d.ts +117 -4
  28. package/dist/runtime/components/forms/SelectMenu.vue +1 -1
  29. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +258 -11
  30. package/dist/runtime/components/forms/Textarea.vue.d.ts +120 -5
  31. package/dist/runtime/components/forms/Toggle.vue.d.ts +69 -4
  32. package/dist/runtime/components/layout/Card.vue.d.ts +30 -4
  33. package/dist/runtime/components/layout/Container.vue.d.ts +12 -4
  34. package/dist/runtime/components/layout/Divider.vue.d.ts +124 -8
  35. package/dist/runtime/components/layout/Skeleton.vue.d.ts +12 -4
  36. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +29 -6
  37. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +256 -18
  38. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +87 -6
  39. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +139 -12
  40. package/dist/runtime/components/navigation/Pagination.vue.d.ts +131 -11
  41. package/dist/runtime/components/navigation/Tabs.vue.d.ts +41 -4
  42. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +269 -19
  43. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +37 -4
  44. package/dist/runtime/components/overlays/Modal.vue +2 -2
  45. package/dist/runtime/components/overlays/Modal.vue.d.ts +50 -5
  46. package/dist/runtime/components/overlays/Notification.vue.d.ts +212 -15
  47. package/dist/runtime/components/overlays/Notifications.vue.d.ts +224 -18
  48. package/dist/runtime/components/overlays/Popover.vue.d.ts +53 -4
  49. package/dist/runtime/components/overlays/Slideover.vue +2 -2
  50. package/dist/runtime/components/overlays/Slideover.vue.d.ts +49 -5
  51. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +65 -7
  52. package/dist/runtime/composables/useFormGroup.js +1 -1
  53. package/dist/runtime/composables/useUI.d.ts +2 -2
  54. package/dist/runtime/composables/useUI.js +1 -1
  55. package/dist/runtime/ui.config/navigation/tabs.js +1 -1
  56. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { PopperOptions, Strategy } from '../../types/index.js';
2
+ import type { DeepPartial, PopperOptions, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: string;
5
5
  container: string;
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
81
  default: () => string;
82
82
  };
83
83
  ui: {
84
- type: PropType<Partial<typeof config> & {
84
+ type: PropType<DeepPartial<typeof config> & {
85
85
  strategy?: Strategy;
86
86
  }>;
87
87
  default: () => {};
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
199
199
  default: () => string;
200
200
  };
201
201
  ui: {
202
- type: PropType<Partial<typeof config> & {
202
+ type: PropType<DeepPartial<typeof config> & {
203
203
  strategy?: Strategy;
204
204
  }>;
205
205
  default: () => {};
@@ -211,7 +211,56 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
211
211
  class: any;
212
212
  disabled: boolean;
213
213
  popper: PopperOptions;
214
- ui: {};
214
+ ui: {
215
+ wrapper?: string;
216
+ container?: string;
217
+ trigger?: string;
218
+ width?: string;
219
+ background?: string;
220
+ shadow?: string;
221
+ rounded?: string;
222
+ ring?: string;
223
+ base?: string;
224
+ transition?: DeepPartial<{
225
+ enterActiveClass: string;
226
+ enterFromClass: string;
227
+ enterToClass: string;
228
+ leaveActiveClass: string;
229
+ leaveFromClass: string;
230
+ leaveToClass: string;
231
+ }, any>;
232
+ overlay?: DeepPartial<{
233
+ base: string;
234
+ background: string;
235
+ transition: {
236
+ enterActiveClass: string;
237
+ enterFromClass: string;
238
+ enterToClass: string;
239
+ leaveActiveClass: string;
240
+ leaveFromClass: string;
241
+ leaveToClass: string;
242
+ };
243
+ }, any>;
244
+ popper?: DeepPartial<{
245
+ strategy: string;
246
+ }, any>;
247
+ default?: DeepPartial<{
248
+ openDelay: number;
249
+ closeDelay: number;
250
+ }, any>;
251
+ arrow?: DeepPartial<{
252
+ base: string;
253
+ ring: string;
254
+ rounded: string;
255
+ background: string;
256
+ shadow: string;
257
+ placement: string;
258
+ }, any>;
259
+ } & {
260
+ [key: string]: any;
261
+ } & {
262
+ strategy?: Strategy;
263
+ };
215
264
  overlay: boolean;
216
265
  open: boolean;
217
266
  openDelay: number;
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <TransitionRoot as="template" :appear="appear" :show="isOpen" @after-leave="onAfterLeave">
3
3
  <HDialog :class="[ui.wrapper, { 'justify-end': side === 'right' }, { 'items-end': side === 'bottom' }]" v-bind="attrs" @close="close">
4
- <TransitionChild v-if="overlay" as="template" :appear="appear" v-bind="ui.overlay.transition">
4
+ <TransitionChild v-if="overlay" as="template" :appear="appear" v-bind="ui.overlay.transition" :class="ui.overlay.transition.enterFrom">
5
5
  <div :class="[ui.overlay.base, ui.overlay.background]" />
6
6
  </TransitionChild>
7
7
 
8
- <TransitionChild as="template" :appear="appear" v-bind="transitionClass">
8
+ <TransitionChild as="template" :appear="appear" v-bind="transitionClass" :class="transitionClass.enterFrom">
9
9
  <HDialogPanel :class="[ui.base, sideType === 'horizontal' ? [ui.width, 'h-full'] : [ui.height, 'w-full'], ui.background, ui.ring, ui.rounded, ui.padding, ui.shadow]">
10
10
  <slot />
11
11
  </HDialogPanel>
@@ -1,5 +1,5 @@
1
1
  import type { WritableComputedRef, PropType } from 'vue';
2
- import type { Strategy } from '../../types/index.js';
2
+ import type { DeepPartial, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: string;
5
5
  overlay: {
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
65
65
  default: () => string;
66
66
  };
67
67
  ui: {
68
- type: PropType<Partial<typeof config> & {
68
+ type: PropType<DeepPartial<typeof config> & {
69
69
  strategy?: Strategy;
70
70
  }>;
71
71
  default: () => {};
@@ -109,7 +109,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
109
109
  [x: string]: unknown;
110
110
  }, string>>;
111
111
  isOpen: WritableComputedRef<boolean, boolean>;
112
- transitionClass: import("vue").ComputedRef<{}>;
112
+ transitionClass: import("vue").ComputedRef<{
113
+ enterFrom: any;
114
+ enterTo: string;
115
+ leaveFrom: string;
116
+ leaveTo: any;
117
+ enter: string;
118
+ leave: string;
119
+ }>;
113
120
  sideType: import("vue").ComputedRef<"right" | "horizontal" | "vertical">;
114
121
  onAfterLeave: () => void;
115
122
  close: (value: boolean) => void;
@@ -144,7 +151,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
144
151
  default: () => string;
145
152
  };
146
153
  ui: {
147
- type: PropType<Partial<typeof config> & {
154
+ type: PropType<DeepPartial<typeof config> & {
148
155
  strategy?: Strategy;
149
156
  }>;
150
157
  default: () => {};
@@ -158,7 +165,44 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
158
165
  class: any;
159
166
  appear: boolean;
160
167
  transition: boolean;
161
- ui: {};
168
+ ui: {
169
+ wrapper?: string;
170
+ overlay?: DeepPartial<{
171
+ base: string;
172
+ background: string;
173
+ transition: {
174
+ enter: string;
175
+ enterFrom: string;
176
+ enterTo: string;
177
+ leave: string;
178
+ leaveFrom: string;
179
+ leaveTo: string;
180
+ };
181
+ }, any>;
182
+ base?: string;
183
+ background?: string;
184
+ ring?: string;
185
+ rounded?: string;
186
+ padding?: string;
187
+ shadow?: string;
188
+ width?: string;
189
+ height?: string;
190
+ translate?: DeepPartial<{
191
+ base: string;
192
+ left: string;
193
+ right: string;
194
+ top: string;
195
+ bottom: string;
196
+ }, any>;
197
+ transition?: DeepPartial<{
198
+ enter: string;
199
+ leave: string;
200
+ }, any>;
201
+ } & {
202
+ [key: string]: any;
203
+ } & {
204
+ strategy?: Strategy;
205
+ };
162
206
  overlay: boolean;
163
207
  preventClose: boolean;
164
208
  side: "bottom" | "left" | "right" | "top";
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { PopperOptions, Strategy } from '../../types/index.js';
2
+ import type { DeepPartial, PopperOptions, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: string;
5
5
  container: string;
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  default: () => string;
67
67
  };
68
68
  ui: {
69
- type: PropType<Partial<typeof config> & {
69
+ type: PropType<DeepPartial<typeof config> & {
70
70
  strategy?: Strategy;
71
71
  }>;
72
72
  default: () => {};
@@ -147,7 +147,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
147
147
  default: () => string;
148
148
  };
149
149
  ui: {
150
- type: PropType<Partial<typeof config> & {
150
+ type: PropType<DeepPartial<typeof config> & {
151
151
  strategy?: Strategy;
152
152
  }>;
153
153
  default: () => {};
@@ -156,7 +156,46 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
156
156
  class: any;
157
157
  popper: PopperOptions;
158
158
  text: string;
159
- ui: {};
159
+ ui: {
160
+ wrapper?: string;
161
+ container?: string;
162
+ width?: string;
163
+ background?: string;
164
+ color?: string;
165
+ shadow?: string;
166
+ rounded?: string;
167
+ ring?: string;
168
+ base?: string;
169
+ shortcuts?: string;
170
+ middot?: string;
171
+ transition?: DeepPartial<{
172
+ enterActiveClass: string;
173
+ enterFromClass: string;
174
+ enterToClass: string;
175
+ leaveActiveClass: string;
176
+ leaveFromClass: string;
177
+ leaveToClass: string;
178
+ }, any>;
179
+ popper?: DeepPartial<{
180
+ strategy: string;
181
+ }, any>;
182
+ default?: DeepPartial<{
183
+ openDelay: number;
184
+ closeDelay: number;
185
+ }, any>;
186
+ arrow?: DeepPartial<{
187
+ base: string;
188
+ ring: string;
189
+ rounded: string;
190
+ background: string;
191
+ shadow: string;
192
+ placement: string;
193
+ }, any>;
194
+ } & {
195
+ [key: string]: any;
196
+ } & {
197
+ strategy?: Strategy;
198
+ };
160
199
  openDelay: number;
161
200
  closeDelay: number;
162
201
  shortcuts: string[];
@@ -177,7 +216,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
177
216
  default: () => "";
178
217
  };
179
218
  ui: {
180
- type: PropType<Partial<{
219
+ type: PropType<DeepPartial<{
181
220
  base: string;
182
221
  padding: string;
183
222
  size: {
@@ -233,7 +272,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
233
272
  default: () => "";
234
273
  };
235
274
  ui: {
236
- type: PropType<Partial<{
275
+ type: PropType<DeepPartial<{
237
276
  base: string;
238
277
  padding: string;
239
278
  size: {
@@ -256,7 +295,26 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
256
295
  }>> & Readonly<{}>, {
257
296
  size: import("../../types/kbd").KbdSize;
258
297
  class: any;
259
- ui: {};
298
+ ui: {
299
+ base?: string;
300
+ padding?: string;
301
+ size?: DeepPartial<{
302
+ xs: string;
303
+ sm: string;
304
+ md: string;
305
+ }, any>;
306
+ rounded?: string;
307
+ font?: string;
308
+ background?: string;
309
+ ring?: string;
310
+ default?: DeepPartial<{
311
+ size: string;
312
+ }, any>;
313
+ } & {
314
+ [key: string]: any;
315
+ } & {
316
+ strategy?: Strategy;
317
+ };
260
318
  value: string;
261
319
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
262
320
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -5,7 +5,7 @@ export const useFormGroup = (inputProps, config, bind = true) => {
5
5
  const formGroup = inject("form-group", void 0);
6
6
  const formInputs = inject("form-inputs", void 0);
7
7
  if (formGroup) {
8
- if (!bind || inputProps.legend) {
8
+ if (!bind || inputProps?.legend) {
9
9
  formGroup.inputId.value = void 0;
10
10
  } else if (inputProps?.id) {
11
11
  formGroup.inputId.value = inputProps?.id;
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
- import type { Strategy } from '../types/index.js';
3
- export declare const useUI: <T>(key: any, $ui?: Ref<(Partial<T> & {
2
+ import type { DeepPartial, Strategy } from '../types/index.js';
3
+ export declare const useUI: <T>(key: any, $ui?: Ref<(DeepPartial<T> & {
4
4
  strategy?: Strategy;
5
5
  }) | undefined>, $config?: Ref<T> | T, $wrapperClass?: Ref<string>, withAppConfig?: boolean) => {
6
6
  ui: import("vue").ComputedRef<T>;
@@ -12,7 +12,7 @@ export const useUI = (key, $ui, $config, $wrapperClass, withAppConfig = false) =
12
12
  _ui?.strategy || appConfig.ui?.strategy,
13
13
  _wrapperClass ? { wrapper: _wrapperClass } : {},
14
14
  _ui || {},
15
- process.dev || withAppConfig ? get(appConfig.ui, key, {}) : {},
15
+ import.meta.dev || withAppConfig ? get(appConfig.ui, key, {}) : {},
16
16
  _config || {}
17
17
  );
18
18
  });
@@ -28,7 +28,7 @@ export default {
28
28
  font: "font-medium",
29
29
  rounded: "rounded-md",
30
30
  shadow: "",
31
- icon: "w-4 h-4 flex-shrink-0 mr-2"
31
+ icon: "w-4 h-4 flex-shrink-0 me-2"
32
32
  }
33
33
  }
34
34
  };
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.18.5",
5
- "packageManager": "pnpm@9.10.0",
4
+ "version": "2.18.6",
5
+ "packageManager": "pnpm@9.11.0",
6
6
  "repository": "nuxt/ui",
7
7
  "homepage": "https://ui.nuxt.com",
8
8
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "build:docs": "nuxi generate docs",
27
27
  "lint": "eslint .",
28
28
  "lint:fix": "eslint . --fix",
29
- "typecheck": "vue-tsc --noEmit && nuxi typecheck docs",
29
+ "typecheck": "vue-tsc --noEmit",
30
30
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare docs",
31
31
  "release": "release-it",
32
32
  "test": "vitest"
@@ -67,7 +67,7 @@
67
67
  "nuxt": "^3.13.2",
68
68
  "release-it": "^17.6.0",
69
69
  "unbuild": "^2.0.0",
70
- "valibot": "^0.42.0",
70
+ "valibot": "^0.42.1",
71
71
  "valibot30": "npm:valibot@0.30.0",
72
72
  "valibot31": "npm:valibot@0.31.0",
73
73
  "vitest": "^2.1.1",