@nuxt/ui 2.18.3 → 2.18.5

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 (76) hide show
  1. package/README.md +1 -1
  2. package/dist/module.d.mts +1 -6
  3. package/dist/module.d.ts +1 -6
  4. package/dist/module.json +2 -2
  5. package/dist/module.mjs +16 -8
  6. package/dist/runtime/components/data/Table.vue +5 -4
  7. package/dist/runtime/components/data/Table.vue.d.ts +1749 -9
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +1014 -9
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +1257 -7
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +53 -7
  11. package/dist/runtime/components/elements/AvatarGroup.d.ts +6 -6
  12. package/dist/runtime/components/elements/Badge.vue.d.ts +6 -6
  13. package/dist/runtime/components/elements/Button.vue.d.ts +280 -10
  14. package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
  15. package/dist/runtime/components/elements/Carousel.vue.d.ts +857 -7
  16. package/dist/runtime/components/elements/Chip.vue.d.ts +6 -6
  17. package/dist/runtime/components/elements/Dropdown.vue.d.ts +639 -10
  18. package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
  19. package/dist/runtime/components/elements/Kbd.vue.d.ts +6 -6
  20. package/dist/runtime/components/elements/Link.vue +1 -0
  21. package/dist/runtime/components/elements/Link.vue.d.ts +8 -8
  22. package/dist/runtime/components/elements/Meter.vue.d.ts +54 -8
  23. package/dist/runtime/components/elements/MeterGroup.d.ts +9 -7
  24. package/dist/runtime/components/elements/Progress.vue.d.ts +9 -9
  25. package/dist/runtime/components/forms/Checkbox.vue.d.ts +9 -9
  26. package/dist/runtime/components/forms/Form.vue +6 -8
  27. package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
  28. package/dist/runtime/components/forms/FormGroup.vue.d.ts +8 -8
  29. package/dist/runtime/components/forms/Input.vue +1 -2
  30. package/dist/runtime/components/forms/Input.vue.d.ts +56 -10
  31. package/dist/runtime/components/forms/InputMenu.vue.d.ts +710 -13
  32. package/dist/runtime/components/forms/Radio.vue.d.ts +9 -9
  33. package/dist/runtime/components/forms/RadioGroup.vue +1 -1
  34. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +188 -8
  35. package/dist/runtime/components/forms/Range.vue.d.ts +10 -10
  36. package/dist/runtime/components/forms/Select.vue.d.ts +55 -9
  37. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +909 -12
  38. package/dist/runtime/components/forms/Textarea.vue +3 -0
  39. package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
  40. package/dist/runtime/components/forms/Toggle.vue.d.ts +143 -9
  41. package/dist/runtime/components/layout/Card.vue.d.ts +6 -6
  42. package/dist/runtime/components/layout/Container.vue.d.ts +6 -6
  43. package/dist/runtime/components/layout/Divider.vue.d.ts +408 -7
  44. package/dist/runtime/components/layout/Skeleton.vue.d.ts +6 -6
  45. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +276 -6
  46. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1729 -9
  47. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +545 -6
  48. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +768 -6
  49. package/dist/runtime/components/navigation/Pagination.vue +4 -0
  50. package/dist/runtime/components/navigation/Pagination.vue.d.ts +859 -9
  51. package/dist/runtime/components/navigation/Tabs.vue +9 -2
  52. package/dist/runtime/components/navigation/Tabs.vue.d.ts +234 -11
  53. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1413 -6
  54. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +9 -9
  55. package/dist/runtime/components/overlays/Modal.vue.d.ts +343 -9
  56. package/dist/runtime/components/overlays/Notification.vue.d.ts +1258 -8
  57. package/dist/runtime/components/overlays/Notifications.vue.d.ts +1541 -11
  58. package/dist/runtime/components/overlays/Popover.vue.d.ts +113 -11
  59. package/dist/runtime/components/overlays/Slideover.vue +2 -2
  60. package/dist/runtime/components/overlays/Slideover.vue.d.ts +343 -9
  61. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +107 -9
  62. package/dist/runtime/composables/useFormGroup.d.ts +2 -2
  63. package/dist/runtime/composables/useFormGroup.js +17 -19
  64. package/dist/runtime/composables/useModal.d.ts +1 -1
  65. package/dist/runtime/composables/usePopper.d.ts +262 -1
  66. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  67. package/dist/runtime/composables/useSlideover.d.ts +1 -1
  68. package/dist/runtime/composables/useUI.d.ts +1 -1
  69. package/dist/runtime/plugins/colors.js +5 -5
  70. package/dist/runtime/types/command-palette.d.ts +2 -2
  71. package/dist/runtime/ui.config/elements/button.js +9 -9
  72. package/dist/runtime/ui.config/elements/carousel.js +1 -1
  73. package/dist/runtime/utils/colors.js +75 -67
  74. package/dist/runtime/utils/index.d.ts +2 -1
  75. package/dist/runtime/utils/index.js +5 -1
  76. package/package.json +26 -28
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { Avatar, DividerSize, Strategy } from '../../types.js';
2
+ import type { Avatar, DividerSize, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: {
5
5
  base: string;
@@ -51,7 +51,7 @@ declare const config: {
51
51
  size: "2xs";
52
52
  };
53
53
  };
54
- declare const _default: import("vue").DefineComponent<{
54
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
55
55
  label: {
56
56
  type: StringConstructor;
57
57
  default: any;
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
89
89
  }>;
90
90
  default: () => {};
91
91
  };
92
- }, {
92
+ }>, {
93
93
  ui: import("vue").ComputedRef<{
94
94
  wrapper: {
95
95
  base: string;
@@ -147,7 +147,7 @@ declare const _default: import("vue").DefineComponent<{
147
147
  wrapperClass: import("vue").ComputedRef<string>;
148
148
  containerClass: import("vue").ComputedRef<string>;
149
149
  borderClass: import("vue").ComputedRef<string>;
150
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
150
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
151
151
  label: {
152
152
  type: StringConstructor;
153
153
  default: any;
@@ -185,14 +185,415 @@ declare const _default: import("vue").DefineComponent<{
185
185
  }>;
186
186
  default: () => {};
187
187
  };
188
- }>>, {
189
- size: DividerSize;
188
+ }>> & Readonly<{}>, {
190
189
  type: "solid" | "dotted" | "dashed";
190
+ size: DividerSize;
191
191
  class: any;
192
192
  avatar: any;
193
193
  label: string;
194
194
  orientation: "horizontal" | "vertical";
195
195
  ui: {};
196
196
  icon: string;
197
- }, {}>;
197
+ }, {}, {
198
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
199
+ name: {
200
+ type: StringConstructor;
201
+ required: true;
202
+ };
203
+ mode: {
204
+ type: PropType<"svg" | "css">;
205
+ required: false;
206
+ default: any;
207
+ };
208
+ size: {
209
+ type: (StringConstructor | NumberConstructor)[];
210
+ required: false;
211
+ default: any;
212
+ };
213
+ customize: {
214
+ type: FunctionConstructor;
215
+ required: false;
216
+ default: any;
217
+ };
218
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
219
+ name: {
220
+ type: StringConstructor;
221
+ required: true;
222
+ };
223
+ mode: {
224
+ type: PropType<"svg" | "css">;
225
+ required: false;
226
+ default: any;
227
+ };
228
+ size: {
229
+ type: (StringConstructor | NumberConstructor)[];
230
+ required: false;
231
+ default: any;
232
+ };
233
+ customize: {
234
+ type: FunctionConstructor;
235
+ required: false;
236
+ default: any;
237
+ };
238
+ }>> & Readonly<{}>, {
239
+ mode: "svg" | "css";
240
+ size: string | number;
241
+ customize: Function;
242
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
243
+ UAvatar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
244
+ as: {
245
+ type: (StringConstructor | ObjectConstructor)[];
246
+ default: string;
247
+ };
248
+ src: {
249
+ type: (StringConstructor | BooleanConstructor)[];
250
+ default: any;
251
+ };
252
+ alt: {
253
+ type: StringConstructor;
254
+ default: any;
255
+ };
256
+ text: {
257
+ type: StringConstructor;
258
+ default: any;
259
+ };
260
+ icon: {
261
+ type: StringConstructor;
262
+ default: () => any;
263
+ };
264
+ size: {
265
+ type: PropType<import("../../types/avatar").AvatarSize>;
266
+ default: () => string;
267
+ validator(value: string): boolean;
268
+ };
269
+ chipColor: {
270
+ type: PropType<import("../../types/avatar").AvatarChipColor>;
271
+ default: () => any;
272
+ validator(value: string): boolean;
273
+ };
274
+ chipPosition: {
275
+ type: PropType<import("../../types/avatar").AvatarChipPosition>;
276
+ default: () => string;
277
+ validator(value: string): boolean;
278
+ };
279
+ chipText: {
280
+ type: (StringConstructor | NumberConstructor)[];
281
+ default: any;
282
+ };
283
+ imgClass: {
284
+ type: StringConstructor;
285
+ default: string;
286
+ };
287
+ class: {
288
+ type: PropType<any>;
289
+ default: () => "";
290
+ };
291
+ ui: {
292
+ type: PropType<Partial<{
293
+ wrapper: string;
294
+ background: string;
295
+ rounded: string;
296
+ text: string;
297
+ placeholder: string;
298
+ size: {
299
+ '3xs': string;
300
+ '2xs': string;
301
+ xs: string;
302
+ sm: string;
303
+ md: string;
304
+ lg: string;
305
+ xl: string;
306
+ '2xl': string;
307
+ '3xl': string;
308
+ };
309
+ chip: {
310
+ base: string;
311
+ background: string;
312
+ position: {
313
+ 'top-right': string;
314
+ 'bottom-right': string;
315
+ 'top-left': string;
316
+ 'bottom-left': string;
317
+ };
318
+ size: {
319
+ '3xs': string;
320
+ '2xs': string;
321
+ xs: string;
322
+ sm: string;
323
+ md: string;
324
+ lg: string;
325
+ xl: string;
326
+ '2xl': string;
327
+ '3xl': string;
328
+ };
329
+ };
330
+ icon: {
331
+ base: string;
332
+ size: {
333
+ '3xs': string;
334
+ '2xs': string;
335
+ xs: string;
336
+ sm: string;
337
+ md: string;
338
+ lg: string;
339
+ xl: string;
340
+ '2xl': string;
341
+ '3xl': string;
342
+ };
343
+ };
344
+ default: {
345
+ size: string;
346
+ icon: any;
347
+ chipColor: any;
348
+ chipPosition: string;
349
+ };
350
+ }> & {
351
+ strategy?: Strategy;
352
+ }>;
353
+ default: () => {};
354
+ };
355
+ }>, {
356
+ ui: import("vue").ComputedRef<{
357
+ wrapper: string;
358
+ background: string;
359
+ rounded: string;
360
+ text: string;
361
+ placeholder: string;
362
+ size: {
363
+ '3xs': string;
364
+ '2xs': string;
365
+ xs: string;
366
+ sm: string;
367
+ md: string;
368
+ lg: string;
369
+ xl: string;
370
+ '2xl': string;
371
+ '3xl': string;
372
+ };
373
+ chip: {
374
+ base: string;
375
+ background: string;
376
+ position: {
377
+ 'top-right': string;
378
+ 'bottom-right': string;
379
+ 'top-left': string;
380
+ 'bottom-left': string;
381
+ };
382
+ size: {
383
+ '3xs': string;
384
+ '2xs': string;
385
+ xs: string;
386
+ sm: string;
387
+ md: string;
388
+ lg: string;
389
+ xl: string;
390
+ '2xl': string;
391
+ '3xl': string;
392
+ };
393
+ };
394
+ icon: {
395
+ base: string;
396
+ size: {
397
+ '3xs': string;
398
+ '2xs': string;
399
+ xs: string;
400
+ sm: string;
401
+ md: string;
402
+ lg: string;
403
+ xl: string;
404
+ '2xl': string;
405
+ '3xl': string;
406
+ };
407
+ };
408
+ default: {
409
+ size: string;
410
+ icon: any;
411
+ chipColor: any;
412
+ chipPosition: string;
413
+ };
414
+ }>;
415
+ attrs: import("vue").ComputedRef<Pick<{
416
+ [x: string]: unknown;
417
+ }, string>>;
418
+ wrapperClass: import("vue").ComputedRef<string>;
419
+ imgClass: import("vue").ComputedRef<string>;
420
+ iconClass: import("vue").ComputedRef<string>;
421
+ chipClass: import("vue").ComputedRef<string>;
422
+ url: import("vue").ComputedRef<string>;
423
+ placeholder: import("vue").ComputedRef<string>;
424
+ error: import("vue").Ref<boolean, boolean>;
425
+ onError: () => void;
426
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
427
+ as: {
428
+ type: (StringConstructor | ObjectConstructor)[];
429
+ default: string;
430
+ };
431
+ src: {
432
+ type: (StringConstructor | BooleanConstructor)[];
433
+ default: any;
434
+ };
435
+ alt: {
436
+ type: StringConstructor;
437
+ default: any;
438
+ };
439
+ text: {
440
+ type: StringConstructor;
441
+ default: any;
442
+ };
443
+ icon: {
444
+ type: StringConstructor;
445
+ default: () => any;
446
+ };
447
+ size: {
448
+ type: PropType<import("../../types/avatar").AvatarSize>;
449
+ default: () => string;
450
+ validator(value: string): boolean;
451
+ };
452
+ chipColor: {
453
+ type: PropType<import("../../types/avatar").AvatarChipColor>;
454
+ default: () => any;
455
+ validator(value: string): boolean;
456
+ };
457
+ chipPosition: {
458
+ type: PropType<import("../../types/avatar").AvatarChipPosition>;
459
+ default: () => string;
460
+ validator(value: string): boolean;
461
+ };
462
+ chipText: {
463
+ type: (StringConstructor | NumberConstructor)[];
464
+ default: any;
465
+ };
466
+ imgClass: {
467
+ type: StringConstructor;
468
+ default: string;
469
+ };
470
+ class: {
471
+ type: PropType<any>;
472
+ default: () => "";
473
+ };
474
+ ui: {
475
+ type: PropType<Partial<{
476
+ wrapper: string;
477
+ background: string;
478
+ rounded: string;
479
+ text: string;
480
+ placeholder: string;
481
+ size: {
482
+ '3xs': string;
483
+ '2xs': string;
484
+ xs: string;
485
+ sm: string;
486
+ md: string;
487
+ lg: string;
488
+ xl: string;
489
+ '2xl': string;
490
+ '3xl': string;
491
+ };
492
+ chip: {
493
+ base: string;
494
+ background: string;
495
+ position: {
496
+ 'top-right': string;
497
+ 'bottom-right': string;
498
+ 'top-left': string;
499
+ 'bottom-left': string;
500
+ };
501
+ size: {
502
+ '3xs': string;
503
+ '2xs': string;
504
+ xs: string;
505
+ sm: string;
506
+ md: string;
507
+ lg: string;
508
+ xl: string;
509
+ '2xl': string;
510
+ '3xl': string;
511
+ };
512
+ };
513
+ icon: {
514
+ base: string;
515
+ size: {
516
+ '3xs': string;
517
+ '2xs': string;
518
+ xs: string;
519
+ sm: string;
520
+ md: string;
521
+ lg: string;
522
+ xl: string;
523
+ '2xl': string;
524
+ '3xl': string;
525
+ };
526
+ };
527
+ default: {
528
+ size: string;
529
+ icon: any;
530
+ chipColor: any;
531
+ chipPosition: string;
532
+ };
533
+ }> & {
534
+ strategy?: Strategy;
535
+ }>;
536
+ default: () => {};
537
+ };
538
+ }>> & Readonly<{}>, {
539
+ size: import("../../types/avatar").AvatarSize;
540
+ class: any;
541
+ as: string | Record<string, any>;
542
+ text: string;
543
+ alt: string;
544
+ ui: {};
545
+ icon: string;
546
+ src: string | boolean;
547
+ chipColor: import("../../types/avatar").AvatarChipColor;
548
+ chipPosition: "top-right" | "bottom-right" | "top-left" | "bottom-left";
549
+ chipText: string | number;
550
+ imgClass: string;
551
+ }, {}, {
552
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
553
+ name: {
554
+ type: StringConstructor;
555
+ required: true;
556
+ };
557
+ mode: {
558
+ type: PropType<"svg" | "css">;
559
+ required: false;
560
+ default: any;
561
+ };
562
+ size: {
563
+ type: (StringConstructor | NumberConstructor)[];
564
+ required: false;
565
+ default: any;
566
+ };
567
+ customize: {
568
+ type: FunctionConstructor;
569
+ required: false;
570
+ default: any;
571
+ };
572
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
573
+ name: {
574
+ type: StringConstructor;
575
+ required: true;
576
+ };
577
+ mode: {
578
+ type: PropType<"svg" | "css">;
579
+ required: false;
580
+ default: any;
581
+ };
582
+ size: {
583
+ type: (StringConstructor | NumberConstructor)[];
584
+ required: false;
585
+ default: any;
586
+ };
587
+ customize: {
588
+ type: FunctionConstructor;
589
+ required: false;
590
+ default: any;
591
+ };
592
+ }>> & Readonly<{}>, {
593
+ mode: "svg" | "css";
594
+ size: string | number;
595
+ customize: Function;
596
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
597
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
598
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
198
599
  export default _default;
@@ -1,11 +1,11 @@
1
1
  import type { PropType } from 'vue';
2
- import type { Strategy } from '../../types.js';
2
+ import type { Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  base: string;
5
5
  background: string;
6
6
  rounded: string;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<{
8
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
9
  as: {
10
10
  type: StringConstructor;
11
11
  default: string;
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  }>;
21
21
  default: () => {};
22
22
  };
23
- }, {
23
+ }>, {
24
24
  ui: import("vue").ComputedRef<{
25
25
  base: string;
26
26
  background: string;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  [x: string]: unknown;
31
31
  }, string>>;
32
32
  skeletonClass: import("vue").ComputedRef<string>;
33
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
34
  as: {
35
35
  type: StringConstructor;
36
36
  default: string;
@@ -45,9 +45,9 @@ declare const _default: import("vue").DefineComponent<{
45
45
  }>;
46
46
  default: () => {};
47
47
  };
48
- }>>, {
48
+ }>> & Readonly<{}>, {
49
49
  class: any;
50
50
  as: string;
51
51
  ui: {};
52
- }, {}>;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
53
  export default _default;