@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 } from 'vue';
2
- import type { AvatarSize, AvatarChipColor, AvatarChipPosition, Strategy } from '../../types/index.js';
2
+ import type { AvatarSize, AvatarChipColor, AvatarChipPosition, Strategy, DeepPartial } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: string;
5
5
  background: string;
@@ -59,7 +59,7 @@ declare const config: {
59
59
  chipPosition: string;
60
60
  };
61
61
  };
62
- declare const _default: import("vue").DefineComponent<{
62
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
63
63
  as: {
64
64
  type: (StringConstructor | ObjectConstructor)[];
65
65
  default: string;
@@ -108,12 +108,12 @@ declare const _default: import("vue").DefineComponent<{
108
108
  default: () => "";
109
109
  };
110
110
  ui: {
111
- type: PropType<Partial<typeof config> & {
111
+ type: PropType<DeepPartial<typeof config> & {
112
112
  strategy?: Strategy;
113
113
  }>;
114
114
  default: () => {};
115
115
  };
116
- }, {
116
+ }>, {
117
117
  ui: import("vue").ComputedRef<{
118
118
  wrapper: string;
119
119
  background: string;
@@ -182,9 +182,9 @@ declare const _default: import("vue").DefineComponent<{
182
182
  chipClass: import("vue").ComputedRef<string>;
183
183
  url: import("vue").ComputedRef<string>;
184
184
  placeholder: import("vue").ComputedRef<string>;
185
- error: import("vue").Ref<boolean>;
185
+ error: import("vue").Ref<boolean, boolean>;
186
186
  onError: () => void;
187
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
187
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
188
188
  as: {
189
189
  type: (StringConstructor | ObjectConstructor)[];
190
190
  default: string;
@@ -233,23 +233,131 @@ declare const _default: import("vue").DefineComponent<{
233
233
  default: () => "";
234
234
  };
235
235
  ui: {
236
- type: PropType<Partial<typeof config> & {
236
+ type: PropType<DeepPartial<typeof config> & {
237
237
  strategy?: Strategy;
238
238
  }>;
239
239
  default: () => {};
240
240
  };
241
- }>>, {
241
+ }>> & Readonly<{}>, {
242
242
  size: AvatarSize;
243
243
  class: any;
244
244
  as: string | Record<string, any>;
245
245
  text: string;
246
246
  alt: string;
247
- ui: {};
247
+ ui: {
248
+ wrapper?: string;
249
+ background?: string;
250
+ rounded?: string;
251
+ text?: string;
252
+ placeholder?: string;
253
+ size?: DeepPartial<{
254
+ '3xs': string;
255
+ '2xs': string;
256
+ xs: string;
257
+ sm: string;
258
+ md: string;
259
+ lg: string;
260
+ xl: string;
261
+ '2xl': string;
262
+ '3xl': string;
263
+ }, any>;
264
+ chip?: DeepPartial<{
265
+ base: string;
266
+ background: string;
267
+ position: {
268
+ 'top-right': string;
269
+ 'bottom-right': string;
270
+ 'top-left': string;
271
+ 'bottom-left': string;
272
+ };
273
+ size: {
274
+ '3xs': string;
275
+ '2xs': string;
276
+ xs: string;
277
+ sm: string;
278
+ md: string;
279
+ lg: string;
280
+ xl: string;
281
+ '2xl': string;
282
+ '3xl': string;
283
+ };
284
+ }, any>;
285
+ icon?: DeepPartial<{
286
+ base: string;
287
+ size: {
288
+ '3xs': string;
289
+ '2xs': string;
290
+ xs: string;
291
+ sm: string;
292
+ md: string;
293
+ lg: string;
294
+ xl: string;
295
+ '2xl': string;
296
+ '3xl': string;
297
+ };
298
+ }, any>;
299
+ default?: DeepPartial<{
300
+ size: string;
301
+ icon: any;
302
+ chipColor: any;
303
+ chipPosition: string;
304
+ }, any>;
305
+ } & {
306
+ [key: string]: any;
307
+ } & {
308
+ strategy?: Strategy;
309
+ };
248
310
  icon: string;
249
311
  src: string | boolean;
250
312
  chipColor: AvatarChipColor;
251
313
  chipPosition: "top-right" | "bottom-right" | "top-left" | "bottom-left";
252
314
  chipText: string | number;
253
315
  imgClass: string;
254
- }, {}>;
316
+ }, {}, {
317
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
318
+ name: {
319
+ type: StringConstructor;
320
+ required: true;
321
+ };
322
+ mode: {
323
+ type: PropType<"svg" | "css">;
324
+ required: false;
325
+ default: any;
326
+ };
327
+ size: {
328
+ type: (StringConstructor | NumberConstructor)[];
329
+ required: false;
330
+ default: any;
331
+ };
332
+ customize: {
333
+ type: FunctionConstructor;
334
+ required: false;
335
+ default: any;
336
+ };
337
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
338
+ name: {
339
+ type: StringConstructor;
340
+ required: true;
341
+ };
342
+ mode: {
343
+ type: PropType<"svg" | "css">;
344
+ required: false;
345
+ default: any;
346
+ };
347
+ size: {
348
+ type: (StringConstructor | NumberConstructor)[];
349
+ required: false;
350
+ default: any;
351
+ };
352
+ customize: {
353
+ type: FunctionConstructor;
354
+ required: false;
355
+ default: any;
356
+ };
357
+ }>> & Readonly<{}>, {
358
+ mode: "svg" | "css";
359
+ size: string | number;
360
+ customize: Function;
361
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
362
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
255
363
  export default _default;
@@ -5,7 +5,7 @@ declare const avatarGroupConfig: {
5
5
  ring: string;
6
6
  margin: string;
7
7
  };
8
- declare const _default: import("@vue/runtime-core").DefineComponent<{
8
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
9
  size: {
10
10
  type: PropType<AvatarSize>;
11
11
  default: any;
@@ -25,9 +25,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
25
25
  }>;
26
26
  default: () => {};
27
27
  };
28
- }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
28
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
29
  [key: string]: any;
30
- }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
30
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
31
  size: {
32
32
  type: PropType<AvatarSize>;
33
33
  default: any;
@@ -47,10 +47,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
47
47
  }>;
48
48
  default: () => {};
49
49
  };
50
- }>>, {
50
+ }>> & Readonly<{}>, {
51
51
  size: AvatarSize;
52
- ui: {};
52
+ ui: Partial<{
53
+ wrapper: string;
54
+ ring: string;
55
+ margin: string;
56
+ }> & {
57
+ strategy?: Strategy;
58
+ };
53
59
  class: any;
54
60
  max: number;
55
- }, {}>;
61
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
56
62
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { BadgeColor, BadgeSize, BadgeVariant, Strategy } from '../../types/index.js';
2
+ import type { BadgeColor, BadgeSize, BadgeVariant, DeepPartial, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  base: string;
5
5
  rounded: string;
@@ -33,7 +33,7 @@ declare const config: {
33
33
  color: string;
34
34
  };
35
35
  };
36
- declare const _default: import("vue").DefineComponent<{
36
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
37
37
  size: {
38
38
  type: PropType<BadgeSize>;
39
39
  default: () => string;
@@ -58,17 +58,17 @@ declare const _default: import("vue").DefineComponent<{
58
58
  default: () => "";
59
59
  };
60
60
  ui: {
61
- type: PropType<Partial<typeof config> & {
61
+ type: PropType<DeepPartial<typeof config> & {
62
62
  strategy?: Strategy;
63
63
  }>;
64
64
  default: () => {};
65
65
  };
66
- }, {
66
+ }>, {
67
67
  attrs: import("vue").ComputedRef<Pick<{
68
68
  [x: string]: unknown;
69
69
  }, string>>;
70
70
  badgeClass: import("vue").ComputedRef<string>;
71
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
71
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
72
  size: {
73
73
  type: PropType<BadgeSize>;
74
74
  default: () => string;
@@ -93,17 +93,53 @@ declare const _default: import("vue").DefineComponent<{
93
93
  default: () => "";
94
94
  };
95
95
  ui: {
96
- type: PropType<Partial<typeof config> & {
96
+ type: PropType<DeepPartial<typeof config> & {
97
97
  strategy?: Strategy;
98
98
  }>;
99
99
  default: () => {};
100
100
  };
101
- }>>, {
101
+ }>> & Readonly<{}>, {
102
102
  size: BadgeSize;
103
103
  class: any;
104
104
  color: BadgeColor;
105
105
  variant: BadgeVariant;
106
106
  label: string | number;
107
- ui: {};
108
- }, {}>;
107
+ ui: {
108
+ base?: string;
109
+ rounded?: string;
110
+ font?: string;
111
+ size?: DeepPartial<{
112
+ xs: string;
113
+ sm: string;
114
+ md: string;
115
+ lg: string;
116
+ }, any>;
117
+ color?: DeepPartial<{
118
+ white: {
119
+ solid: string;
120
+ };
121
+ gray: {
122
+ solid: string;
123
+ };
124
+ black: {
125
+ solid: string;
126
+ };
127
+ }, any>;
128
+ variant?: DeepPartial<{
129
+ solid: string;
130
+ outline: string;
131
+ soft: string;
132
+ subtle: string;
133
+ }, any>;
134
+ default?: DeepPartial<{
135
+ size: string;
136
+ variant: string;
137
+ color: string;
138
+ }, any>;
139
+ } & {
140
+ [key: string]: any;
141
+ } & {
142
+ strategy?: Strategy;
143
+ };
144
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
109
145
  export default _default;