@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
@@ -143,6 +143,10 @@ export default defineComponent({
143
143
  selectedIndex.value = value;
144
144
  calcMarkerSize(selectedIndex.value);
145
145
  });
146
+ watch(() => props.items, async () => {
147
+ await nextTick();
148
+ calcMarkerSize(selectedIndex.value);
149
+ }, { deep: true });
146
150
  onMounted(async () => {
147
151
  await nextTick();
148
152
  calcMarkerSize(selectedIndex.value);
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { TabItem, Strategy } from '../../types/index.js';
2
+ import type { TabItem, Strategy, DeepPartial } from '../../types/index.js';
3
3
  declare const config: {
4
4
  wrapper: string;
5
5
  container: string;
@@ -34,7 +34,7 @@ declare const config: {
34
34
  };
35
35
  };
36
36
  };
37
- declare const _default: import("vue").DefineComponent<{
37
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
38
38
  modelValue: {
39
39
  type: NumberConstructor;
40
40
  default: any;
@@ -65,12 +65,12 @@ declare const _default: import("vue").DefineComponent<{
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: () => {};
72
72
  };
73
- }, {
73
+ }>, {
74
74
  ui: import("vue").ComputedRef<{
75
75
  wrapper: string;
76
76
  container: string;
@@ -108,12 +108,12 @@ declare const _default: import("vue").DefineComponent<{
108
108
  attrs: import("vue").ComputedRef<Pick<{
109
109
  [x: string]: unknown;
110
110
  }, string>>;
111
- listRef: import("vue").Ref<HTMLElement>;
112
- itemRefs: import("vue").Ref<HTMLElement[]>;
113
- markerRef: import("vue").Ref<HTMLElement>;
114
- selectedIndex: import("vue").Ref<number>;
111
+ listRef: import("vue").Ref<HTMLElement, HTMLElement>;
112
+ itemRefs: import("vue").Ref<HTMLElement[], HTMLElement[]>;
113
+ markerRef: import("vue").Ref<HTMLElement, HTMLElement>;
114
+ selectedIndex: import("vue").Ref<number, number>;
115
115
  onChange: (index: number) => void;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
116
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
117
117
  modelValue: {
118
118
  type: NumberConstructor;
119
119
  default: any;
@@ -144,22 +144,282 @@ declare const _default: import("vue").DefineComponent<{
144
144
  default: () => string;
145
145
  };
146
146
  ui: {
147
- type: PropType<Partial<typeof config> & {
147
+ type: PropType<DeepPartial<typeof config> & {
148
148
  strategy?: Strategy;
149
149
  }>;
150
150
  default: () => {};
151
151
  };
152
- }>> & {
152
+ }>> & Readonly<{
153
153
  onChange?: (...args: any[]) => any;
154
154
  "onUpdate:modelValue"?: (...args: any[]) => any;
155
- }, {
155
+ }>, {
156
156
  class: any;
157
157
  content: boolean;
158
158
  orientation: "horizontal" | "vertical";
159
- ui: {};
159
+ ui: {
160
+ wrapper?: string;
161
+ container?: string;
162
+ base?: string;
163
+ list?: DeepPartial<{
164
+ base: string;
165
+ background: string;
166
+ rounded: string;
167
+ shadow: string;
168
+ padding: string;
169
+ height: string;
170
+ width: string;
171
+ marker: {
172
+ wrapper: string;
173
+ base: string;
174
+ background: string;
175
+ rounded: string;
176
+ shadow: string;
177
+ };
178
+ tab: {
179
+ base: string;
180
+ background: string;
181
+ active: string;
182
+ inactive: string;
183
+ height: string;
184
+ padding: string;
185
+ size: string;
186
+ font: string;
187
+ rounded: string;
188
+ shadow: string;
189
+ icon: string;
190
+ };
191
+ }, any>;
192
+ } & {
193
+ [key: string]: any;
194
+ } & {
195
+ strategy?: Strategy;
196
+ };
160
197
  modelValue: number;
161
198
  unmount: boolean;
162
199
  items: TabItem[];
163
200
  defaultIndex: number;
164
- }, {}>;
201
+ }, {}, {
202
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
203
+ name: {
204
+ type: StringConstructor;
205
+ required: true;
206
+ };
207
+ mode: {
208
+ type: PropType<"svg" | "css">;
209
+ required: false;
210
+ default: any;
211
+ };
212
+ size: {
213
+ type: (StringConstructor | NumberConstructor)[];
214
+ required: false;
215
+ default: any;
216
+ };
217
+ customize: {
218
+ type: FunctionConstructor;
219
+ required: false;
220
+ default: any;
221
+ };
222
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
223
+ name: {
224
+ type: StringConstructor;
225
+ required: true;
226
+ };
227
+ mode: {
228
+ type: PropType<"svg" | "css">;
229
+ required: false;
230
+ default: any;
231
+ };
232
+ size: {
233
+ type: (StringConstructor | NumberConstructor)[];
234
+ required: false;
235
+ default: any;
236
+ };
237
+ customize: {
238
+ type: FunctionConstructor;
239
+ required: false;
240
+ default: any;
241
+ };
242
+ }>> & Readonly<{}>, {
243
+ mode: "svg" | "css";
244
+ size: string | number;
245
+ customize: Function;
246
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
247
+ HTabGroup: import("vue").DefineComponent<{
248
+ as: {
249
+ type: (ObjectConstructor | StringConstructor)[];
250
+ default: string;
251
+ };
252
+ selectedIndex: {
253
+ type: NumberConstructor[];
254
+ default: null;
255
+ };
256
+ defaultIndex: {
257
+ type: NumberConstructor[];
258
+ default: number;
259
+ };
260
+ vertical: {
261
+ type: BooleanConstructor[];
262
+ default: boolean;
263
+ };
264
+ manual: {
265
+ type: BooleanConstructor[];
266
+ default: boolean;
267
+ };
268
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
269
+ [key: string]: any;
270
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
271
+ change: (_index: number) => true;
272
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
273
+ as: {
274
+ type: (ObjectConstructor | StringConstructor)[];
275
+ default: string;
276
+ };
277
+ selectedIndex: {
278
+ type: NumberConstructor[];
279
+ default: null;
280
+ };
281
+ defaultIndex: {
282
+ type: NumberConstructor[];
283
+ default: number;
284
+ };
285
+ vertical: {
286
+ type: BooleanConstructor[];
287
+ default: boolean;
288
+ };
289
+ manual: {
290
+ type: BooleanConstructor[];
291
+ default: boolean;
292
+ };
293
+ }>> & {
294
+ onChange?: ((_index: number) => any) | undefined;
295
+ }, {
296
+ as: string | Record<string, any>;
297
+ vertical: boolean;
298
+ manual: boolean;
299
+ selectedIndex: number;
300
+ defaultIndex: number;
301
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
302
+ HTabList: import("vue").DefineComponent<{
303
+ as: {
304
+ type: (ObjectConstructor | StringConstructor)[];
305
+ default: string;
306
+ };
307
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
308
+ [key: string]: any;
309
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
310
+ [key: string]: any;
311
+ }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
312
+ as: {
313
+ type: (ObjectConstructor | StringConstructor)[];
314
+ default: string;
315
+ };
316
+ }>>, {
317
+ as: string | Record<string, any>;
318
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
319
+ HTab: import("vue").DefineComponent<{
320
+ as: {
321
+ type: (ObjectConstructor | StringConstructor)[];
322
+ default: string;
323
+ };
324
+ disabled: {
325
+ type: BooleanConstructor[];
326
+ default: boolean;
327
+ };
328
+ id: {
329
+ type: StringConstructor;
330
+ default: null;
331
+ };
332
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
333
+ [key: string]: any;
334
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
335
+ [key: string]: any;
336
+ }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
337
+ as: {
338
+ type: (ObjectConstructor | StringConstructor)[];
339
+ default: string;
340
+ };
341
+ disabled: {
342
+ type: BooleanConstructor[];
343
+ default: boolean;
344
+ };
345
+ id: {
346
+ type: StringConstructor;
347
+ default: null;
348
+ };
349
+ }>>, {
350
+ id: string;
351
+ as: string | Record<string, any>;
352
+ disabled: boolean;
353
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
354
+ HTabPanels: import("vue").DefineComponent<{
355
+ as: {
356
+ type: (ObjectConstructor | StringConstructor)[];
357
+ default: string;
358
+ };
359
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
360
+ [key: string]: any;
361
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
362
+ [key: string]: any;
363
+ }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
364
+ as: {
365
+ type: (ObjectConstructor | StringConstructor)[];
366
+ default: string;
367
+ };
368
+ }>>, {
369
+ as: string | Record<string, any>;
370
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
371
+ HTabPanel: import("vue").DefineComponent<{
372
+ as: {
373
+ type: (ObjectConstructor | StringConstructor)[];
374
+ default: string;
375
+ };
376
+ static: {
377
+ type: BooleanConstructor;
378
+ default: boolean;
379
+ };
380
+ unmount: {
381
+ type: BooleanConstructor;
382
+ default: boolean;
383
+ };
384
+ id: {
385
+ type: StringConstructor;
386
+ default: null;
387
+ };
388
+ tabIndex: {
389
+ type: NumberConstructor;
390
+ default: number;
391
+ };
392
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
393
+ [key: string]: any;
394
+ }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
395
+ [key: string]: any;
396
+ }>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
397
+ as: {
398
+ type: (ObjectConstructor | StringConstructor)[];
399
+ default: string;
400
+ };
401
+ static: {
402
+ type: BooleanConstructor;
403
+ default: boolean;
404
+ };
405
+ unmount: {
406
+ type: BooleanConstructor;
407
+ default: boolean;
408
+ };
409
+ id: {
410
+ type: StringConstructor;
411
+ default: null;
412
+ };
413
+ tabIndex: {
414
+ type: NumberConstructor;
415
+ default: number;
416
+ };
417
+ }>>, {
418
+ id: string;
419
+ tabIndex: number;
420
+ as: string | Record<string, any>;
421
+ unmount: boolean;
422
+ static: boolean;
423
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
424
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
165
425
  export default _default;