@nuxt/ui 2.18.4 → 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 (79) 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 +8 -7
  7. package/dist/runtime/components/data/Table.vue.d.ts +2016 -12
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +1124 -10
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +1449 -11
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +118 -10
  11. package/dist/runtime/components/elements/AvatarGroup.d.ts +12 -6
  12. package/dist/runtime/components/elements/Badge.vue.d.ts +45 -9
  13. package/dist/runtime/components/elements/Button.vue.d.ts +367 -14
  14. package/dist/runtime/components/elements/ButtonGroup.d.ts +107 -6
  15. package/dist/runtime/components/elements/Carousel.vue.d.ts +970 -10
  16. package/dist/runtime/components/elements/Chip.vue.d.ts +46 -9
  17. package/dist/runtime/components/elements/Dropdown.vue.d.ts +784 -13
  18. package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
  19. package/dist/runtime/components/elements/Kbd.vue.d.ts +28 -9
  20. package/dist/runtime/components/elements/Link.vue +1 -0
  21. package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
  22. package/dist/runtime/components/elements/Meter.vue.d.ts +136 -11
  23. package/dist/runtime/components/elements/MeterGroup.d.ts +60 -6
  24. package/dist/runtime/components/elements/Progress.vue.d.ts +89 -12
  25. package/dist/runtime/components/forms/Checkbox.vue.d.ts +33 -12
  26. package/dist/runtime/components/forms/Form.vue +4 -3
  27. package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
  28. package/dist/runtime/components/forms/FormGroup.vue.d.ts +39 -11
  29. package/dist/runtime/components/forms/Input.vue +1 -2
  30. package/dist/runtime/components/forms/Input.vue.d.ts +176 -14
  31. package/dist/runtime/components/forms/InputMenu.vue.d.ts +957 -20
  32. package/dist/runtime/components/forms/Radio.vue.d.ts +32 -12
  33. package/dist/runtime/components/forms/RadioGroup.vue +1 -1
  34. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +245 -14
  35. package/dist/runtime/components/forms/Range.vue.d.ts +79 -13
  36. package/dist/runtime/components/forms/Select.vue.d.ts +171 -12
  37. package/dist/runtime/components/forms/SelectMenu.vue +1 -1
  38. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +1163 -19
  39. package/dist/runtime/components/forms/Textarea.vue +3 -0
  40. package/dist/runtime/components/forms/Textarea.vue.d.ts +129 -14
  41. package/dist/runtime/components/forms/Toggle.vue.d.ts +211 -12
  42. package/dist/runtime/components/layout/Card.vue.d.ts +35 -9
  43. package/dist/runtime/components/layout/Container.vue.d.ts +17 -9
  44. package/dist/runtime/components/layout/Divider.vue.d.ts +528 -11
  45. package/dist/runtime/components/layout/Skeleton.vue.d.ts +17 -9
  46. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +302 -9
  47. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1971 -13
  48. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +625 -5
  49. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +898 -9
  50. package/dist/runtime/components/navigation/Pagination.vue +4 -0
  51. package/dist/runtime/components/navigation/Pagination.vue.d.ts +981 -11
  52. package/dist/runtime/components/navigation/Tabs.vue +4 -0
  53. package/dist/runtime/components/navigation/Tabs.vue.d.ts +274 -14
  54. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1666 -9
  55. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +45 -12
  56. package/dist/runtime/components/overlays/Modal.vue +2 -2
  57. package/dist/runtime/components/overlays/Modal.vue.d.ts +392 -13
  58. package/dist/runtime/components/overlays/Notification.vue.d.ts +1459 -12
  59. package/dist/runtime/components/overlays/Notifications.vue.d.ts +1746 -10
  60. package/dist/runtime/components/overlays/Popover.vue.d.ts +165 -14
  61. package/dist/runtime/components/overlays/Slideover.vue +3 -3
  62. package/dist/runtime/components/overlays/Slideover.vue.d.ts +391 -13
  63. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +168 -12
  64. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  65. package/dist/runtime/composables/useFormGroup.js +4 -2
  66. package/dist/runtime/composables/useModal.d.ts +1 -1
  67. package/dist/runtime/composables/usePopper.d.ts +262 -1
  68. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  69. package/dist/runtime/composables/useSlideover.d.ts +1 -1
  70. package/dist/runtime/composables/useUI.d.ts +2 -2
  71. package/dist/runtime/composables/useUI.js +1 -1
  72. package/dist/runtime/plugins/colors.js +3 -3
  73. package/dist/runtime/types/command-palette.d.ts +2 -2
  74. package/dist/runtime/ui.config/elements/button.js +9 -9
  75. package/dist/runtime/ui.config/elements/carousel.js +1 -1
  76. package/dist/runtime/ui.config/navigation/tabs.js +1 -1
  77. package/dist/runtime/utils/index.d.ts +1 -0
  78. package/dist/runtime/utils/index.js +5 -1
  79. package/package.json +27 -29
@@ -1,5 +1,5 @@
1
1
  import type { PropType, ComputedRef } from 'vue';
2
- import type { SelectSize, SelectColor, SelectVariant, Strategy } from '../../types/index.js';
2
+ import type { SelectSize, SelectColor, SelectVariant, Strategy, DeepPartial } from '../../types/index.js';
3
3
  declare const config: {
4
4
  form: string;
5
5
  placeholder: string;
@@ -110,7 +110,7 @@ declare const config: {
110
110
  };
111
111
  };
112
112
  };
113
- declare const _default: import("vue").DefineComponent<{
113
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
114
114
  modelValue: {
115
115
  type: (StringConstructor | NumberConstructor | ObjectConstructor)[];
116
116
  default: string;
@@ -203,12 +203,12 @@ declare const _default: import("vue").DefineComponent<{
203
203
  default: () => "";
204
204
  };
205
205
  ui: {
206
- type: PropType<Partial<typeof config> & {
206
+ type: PropType<DeepPartial<typeof config> & {
207
207
  strategy?: Strategy;
208
208
  }>;
209
209
  default: () => {};
210
210
  };
211
- }, {
211
+ }>, {
212
212
  ui: ComputedRef<{
213
213
  form: string;
214
214
  placeholder: string;
@@ -342,7 +342,7 @@ declare const _default: import("vue").DefineComponent<{
342
342
  trailingWrapperIconClass: ComputedRef<string>;
343
343
  onInput: (event: Event) => void;
344
344
  onChange: (event: Event) => void;
345
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
345
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
346
346
  modelValue: {
347
347
  type: (StringConstructor | NumberConstructor | ObjectConstructor)[];
348
348
  default: string;
@@ -435,24 +435,137 @@ declare const _default: import("vue").DefineComponent<{
435
435
  default: () => "";
436
436
  };
437
437
  ui: {
438
- type: PropType<Partial<typeof config> & {
438
+ type: PropType<DeepPartial<typeof config> & {
439
439
  strategy?: Strategy;
440
440
  }>;
441
441
  default: () => {};
442
442
  };
443
- }>> & {
443
+ }>> & Readonly<{
444
444
  onChange?: (...args: any[]) => any;
445
445
  "onUpdate:modelValue"?: (...args: any[]) => any;
446
- }, {
446
+ }>, {
447
447
  name: string;
448
- size: SelectSize;
449
448
  required: boolean;
449
+ size: SelectSize;
450
450
  class: any;
451
+ disabled: boolean;
451
452
  leading: boolean;
452
453
  color: SelectColor;
453
454
  variant: SelectVariant;
454
- disabled: boolean;
455
- ui: {};
455
+ ui: {
456
+ form?: string;
457
+ placeholder?: string;
458
+ default?: DeepPartial<{
459
+ size: string;
460
+ color: string;
461
+ variant: string;
462
+ loadingIcon: string;
463
+ trailingIcon: string;
464
+ }, any>;
465
+ wrapper?: string;
466
+ base?: string;
467
+ rounded?: string;
468
+ file?: DeepPartial<{
469
+ base: string;
470
+ }, any>;
471
+ size?: DeepPartial<{
472
+ '2xs': string;
473
+ xs: string;
474
+ sm: string;
475
+ md: string;
476
+ lg: string;
477
+ xl: string;
478
+ }, any>;
479
+ gap?: DeepPartial<{
480
+ '2xs': string;
481
+ xs: string;
482
+ sm: string;
483
+ md: string;
484
+ lg: string;
485
+ xl: string;
486
+ }, any>;
487
+ padding?: DeepPartial<{
488
+ '2xs': string;
489
+ xs: string;
490
+ sm: string;
491
+ md: string;
492
+ lg: string;
493
+ xl: string;
494
+ }, any>;
495
+ leading?: DeepPartial<{
496
+ padding: {
497
+ '2xs': string;
498
+ xs: string;
499
+ sm: string;
500
+ md: string;
501
+ lg: string;
502
+ xl: string;
503
+ };
504
+ }, any>;
505
+ trailing?: DeepPartial<{
506
+ padding: {
507
+ '2xs': string;
508
+ xs: string;
509
+ sm: string;
510
+ md: string;
511
+ lg: string;
512
+ xl: string;
513
+ };
514
+ }, any>;
515
+ color?: DeepPartial<{
516
+ white: {
517
+ outline: string;
518
+ };
519
+ gray: {
520
+ outline: string;
521
+ };
522
+ }, any>;
523
+ variant?: DeepPartial<{
524
+ outline: string;
525
+ none: string;
526
+ }, any>;
527
+ icon?: DeepPartial<{
528
+ base: string;
529
+ color: string;
530
+ loading: string;
531
+ size: {
532
+ '2xs': string;
533
+ xs: string;
534
+ sm: string;
535
+ md: string;
536
+ lg: string;
537
+ xl: string;
538
+ };
539
+ leading: {
540
+ wrapper: string;
541
+ pointer: string;
542
+ padding: {
543
+ '2xs': string;
544
+ xs: string;
545
+ sm: string;
546
+ md: string;
547
+ lg: string;
548
+ xl: string;
549
+ };
550
+ };
551
+ trailing: {
552
+ wrapper: string;
553
+ pointer: string;
554
+ padding: {
555
+ '2xs': string;
556
+ xs: string;
557
+ sm: string;
558
+ md: string;
559
+ lg: string;
560
+ xl: string;
561
+ };
562
+ };
563
+ }, any>;
564
+ } & {
565
+ [key: string]: any;
566
+ } & {
567
+ strategy?: Strategy;
568
+ };
456
569
  id: string;
457
570
  icon: string;
458
571
  options: unknown[];
@@ -467,5 +580,51 @@ declare const _default: import("vue").DefineComponent<{
467
580
  optionAttribute: string;
468
581
  valueAttribute: string;
469
582
  selectClass: string;
470
- }, {}>;
583
+ }, {}, {
584
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
585
+ name: {
586
+ type: StringConstructor;
587
+ required: true;
588
+ };
589
+ mode: {
590
+ type: PropType<"svg" | "css">;
591
+ required: false;
592
+ default: any;
593
+ };
594
+ size: {
595
+ type: (StringConstructor | NumberConstructor)[];
596
+ required: false;
597
+ default: any;
598
+ };
599
+ customize: {
600
+ type: FunctionConstructor;
601
+ required: false;
602
+ default: any;
603
+ };
604
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
605
+ name: {
606
+ type: StringConstructor;
607
+ required: true;
608
+ };
609
+ mode: {
610
+ type: PropType<"svg" | "css">;
611
+ required: false;
612
+ default: any;
613
+ };
614
+ size: {
615
+ type: (StringConstructor | NumberConstructor)[];
616
+ required: false;
617
+ default: any;
618
+ };
619
+ customize: {
620
+ type: FunctionConstructor;
621
+ required: false;
622
+ default: any;
623
+ };
624
+ }>> & Readonly<{}>, {
625
+ mode: "svg" | "css";
626
+ size: string | number;
627
+ customize: Function;
628
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
629
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
471
630
  export default _default;
@@ -393,7 +393,7 @@ export default defineComponent({
393
393
  variant?.replaceAll("{color}", color.value),
394
394
  (isLeading.value || slots.leading) && ui.value.leading.padding[size.value],
395
395
  (isTrailing.value || slots.trailing) && ui.value.trailing.padding[size.value]
396
- ), props.placeholder && !props.modelValue && ui.value.placeholder, props.selectClass);
396
+ ), props.placeholder && (!props.modelValue || Array.isArray(props.modelValue) && !props.modelValue.length) && ui.value.placeholder, props.selectClass);
397
397
  });
398
398
  const isLeading = computed(() => {
399
399
  return props.icon && props.leading || props.icon && !props.trailing || props.loading && !props.trailing || props.leadingIcon;