@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
@@ -143,6 +143,8 @@ export default defineComponent({
143
143
  return;
144
144
  }
145
145
  textarea2.value.rows = props.rows;
146
+ const overflow = textarea2.value.style.overflow;
147
+ textarea2.value.style.overflow = "hidden";
146
148
  const styles = window.getComputedStyle(textarea2.value);
147
149
  const paddingTop = parseInt(styles.paddingTop);
148
150
  const paddingBottom = parseInt(styles.paddingBottom);
@@ -153,6 +155,7 @@ export default defineComponent({
153
155
  if (newRows > props.rows) {
154
156
  textarea2.value.rows = props.maxrows ? Math.min(newRows, props.maxrows) : newRows;
155
157
  }
158
+ textarea2.value.style.overflow = overflow;
156
159
  }
157
160
  };
158
161
  const updateInput = (value) => {
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { TextareaSize, TextareaColor, TextareaVariant, Strategy } from '../../types.js';
2
+ import type { TextareaSize, TextareaColor, TextareaVariant, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  form: string;
5
5
  default: {
@@ -108,7 +108,7 @@ declare const config: {
108
108
  };
109
109
  };
110
110
  };
111
- declare const _default: import("vue").DefineComponent<{
111
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
112
112
  modelValue: {
113
113
  type: (StringConstructor | NumberConstructor)[];
114
114
  default: string;
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  }>;
199
199
  default: () => {};
200
200
  };
201
- }, {
201
+ }>, {
202
202
  ui: import("vue").ComputedRef<{
203
203
  form: string;
204
204
  default: {
@@ -312,12 +312,12 @@ declare const _default: import("vue").DefineComponent<{
312
312
  }, string>>;
313
313
  name: import("vue").ComputedRef<string>;
314
314
  inputId: import("vue").ComputedRef<string>;
315
- textarea: import("vue").Ref<HTMLTextAreaElement>;
315
+ textarea: import("vue").Ref<HTMLTextAreaElement, HTMLTextAreaElement>;
316
316
  textareaClass: import("vue").ComputedRef<string>;
317
317
  onInput: (event: Event) => void;
318
318
  onChange: (event: Event) => void;
319
319
  onBlur: (event: FocusEvent) => void;
320
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
320
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "update:modelValue")[], "blur" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
321
321
  modelValue: {
322
322
  type: (StringConstructor | NumberConstructor)[];
323
323
  default: string;
@@ -407,19 +407,19 @@ declare const _default: import("vue").DefineComponent<{
407
407
  }>;
408
408
  default: () => {};
409
409
  };
410
- }>> & {
410
+ }>> & Readonly<{
411
411
  onBlur?: (...args: any[]) => any;
412
412
  onChange?: (...args: any[]) => any;
413
413
  "onUpdate:modelValue"?: (...args: any[]) => any;
414
- }, {
414
+ }>, {
415
415
  name: string;
416
- size: TextareaSize;
417
416
  required: boolean;
417
+ size: TextareaSize;
418
418
  class: any;
419
+ disabled: boolean;
419
420
  resize: boolean;
420
421
  color: TextareaColor;
421
422
  variant: TextareaVariant;
422
- disabled: boolean;
423
423
  ui: {};
424
424
  id: string;
425
425
  modelValue: string | number;
@@ -432,5 +432,5 @@ declare const _default: import("vue").DefineComponent<{
432
432
  maxrows: number;
433
433
  autoresize: boolean;
434
434
  textareaClass: string;
435
- }, {}>;
435
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
436
436
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { ToggleSize, ToggleColor, Strategy } from '../../types.js';
2
+ import type { ToggleSize, ToggleColor, Strategy } from '../../types/index.js';
3
3
  declare const config: {
4
4
  base: string;
5
5
  rounded: string;
@@ -62,7 +62,7 @@ declare const config: {
62
62
  size: string;
63
63
  };
64
64
  };
65
- declare const _default: import("vue").DefineComponent<{
65
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
66
66
  id: {
67
67
  type: StringConstructor;
68
68
  default: any;
@@ -115,7 +115,7 @@ declare const _default: import("vue").DefineComponent<{
115
115
  }>;
116
116
  default: () => {};
117
117
  };
118
- }, {
118
+ }>, {
119
119
  ui: import("vue").ComputedRef<{
120
120
  base: string;
121
121
  rounded: string;
@@ -183,13 +183,13 @@ declare const _default: import("vue").DefineComponent<{
183
183
  }, string>>;
184
184
  name: import("vue").ComputedRef<string>;
185
185
  inputId: import("vue").ComputedRef<string>;
186
- active: import("vue").WritableComputedRef<boolean>;
186
+ active: import("vue").WritableComputedRef<boolean, boolean>;
187
187
  switchClass: import("vue").ComputedRef<string>;
188
188
  containerClass: import("vue").ComputedRef<string>;
189
189
  onIconClass: import("vue").ComputedRef<string>;
190
190
  offIconClass: import("vue").ComputedRef<string>;
191
191
  loadingIconClass: import("vue").ComputedRef<string>;
192
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
192
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
193
193
  id: {
194
194
  type: StringConstructor;
195
195
  default: any;
@@ -242,15 +242,15 @@ declare const _default: import("vue").DefineComponent<{
242
242
  }>;
243
243
  default: () => {};
244
244
  };
245
- }>> & {
245
+ }>> & Readonly<{
246
246
  onChange?: (...args: any[]) => any;
247
247
  "onUpdate:modelValue"?: (...args: any[]) => any;
248
- }, {
248
+ }>, {
249
249
  name: string;
250
250
  size: ToggleSize;
251
251
  class: any;
252
- color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
253
252
  disabled: boolean;
253
+ color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
254
254
  ui: {};
255
255
  id: string;
256
256
  modelValue: boolean;
@@ -258,5 +258,139 @@ declare const _default: import("vue").DefineComponent<{
258
258
  loadingIcon: string;
259
259
  onIcon: string;
260
260
  offIcon: string;
261
- }, {}>;
261
+ }, {}, {
262
+ HSwitch: import("vue").DefineComponent<{
263
+ as: {
264
+ type: (ObjectConstructor | StringConstructor)[];
265
+ default: string;
266
+ };
267
+ modelValue: {
268
+ type: BooleanConstructor;
269
+ default: undefined;
270
+ };
271
+ defaultChecked: {
272
+ type: BooleanConstructor;
273
+ optional: boolean;
274
+ };
275
+ form: {
276
+ type: StringConstructor;
277
+ optional: boolean;
278
+ };
279
+ name: {
280
+ type: StringConstructor;
281
+ optional: boolean;
282
+ };
283
+ value: {
284
+ type: StringConstructor;
285
+ optional: boolean;
286
+ };
287
+ id: {
288
+ type: StringConstructor;
289
+ default: null;
290
+ };
291
+ disabled: {
292
+ type: BooleanConstructor;
293
+ default: boolean;
294
+ };
295
+ tabIndex: {
296
+ type: NumberConstructor;
297
+ default: number;
298
+ };
299
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
300
+ [key: string]: any;
301
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
302
+ 'update:modelValue': (_value: boolean) => true;
303
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
304
+ as: {
305
+ type: (ObjectConstructor | StringConstructor)[];
306
+ default: string;
307
+ };
308
+ modelValue: {
309
+ type: BooleanConstructor;
310
+ default: undefined;
311
+ };
312
+ defaultChecked: {
313
+ type: BooleanConstructor;
314
+ optional: boolean;
315
+ };
316
+ form: {
317
+ type: StringConstructor;
318
+ optional: boolean;
319
+ };
320
+ name: {
321
+ type: StringConstructor;
322
+ optional: boolean;
323
+ };
324
+ value: {
325
+ type: StringConstructor;
326
+ optional: boolean;
327
+ };
328
+ id: {
329
+ type: StringConstructor;
330
+ default: null;
331
+ };
332
+ disabled: {
333
+ type: BooleanConstructor;
334
+ default: boolean;
335
+ };
336
+ tabIndex: {
337
+ type: NumberConstructor;
338
+ default: number;
339
+ };
340
+ }>> & {
341
+ "onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
342
+ }, {
343
+ id: string;
344
+ tabIndex: number;
345
+ as: string | Record<string, any>;
346
+ disabled: boolean;
347
+ modelValue: boolean;
348
+ defaultChecked: boolean;
349
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
350
+ UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
351
+ name: {
352
+ type: StringConstructor;
353
+ required: true;
354
+ };
355
+ mode: {
356
+ type: PropType<"svg" | "css">;
357
+ required: false;
358
+ default: any;
359
+ };
360
+ size: {
361
+ type: (StringConstructor | NumberConstructor)[];
362
+ required: false;
363
+ default: any;
364
+ };
365
+ customize: {
366
+ type: FunctionConstructor;
367
+ required: false;
368
+ default: any;
369
+ };
370
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
371
+ name: {
372
+ type: StringConstructor;
373
+ required: true;
374
+ };
375
+ mode: {
376
+ type: PropType<"svg" | "css">;
377
+ required: false;
378
+ default: any;
379
+ };
380
+ size: {
381
+ type: (StringConstructor | NumberConstructor)[];
382
+ required: false;
383
+ default: any;
384
+ };
385
+ customize: {
386
+ type: FunctionConstructor;
387
+ required: false;
388
+ default: any;
389
+ };
390
+ }>> & Readonly<{}>, {
391
+ mode: "svg" | "css";
392
+ size: string | number;
393
+ customize: Function;
394
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
395
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
262
396
  export default _default;
@@ -1,5 +1,5 @@
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;
@@ -23,7 +23,7 @@ declare const config: {
23
23
  padding: string;
24
24
  };
25
25
  };
26
- declare const _default: import("vue").DefineComponent<{
26
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
27
27
  as: {
28
28
  type: StringConstructor;
29
29
  default: string;
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
38
38
  }>;
39
39
  default: () => {};
40
40
  };
41
- }, {
41
+ }>, {
42
42
  ui: import("vue").ComputedRef<{
43
43
  base: string;
44
44
  background: string;
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
66
66
  [x: string]: unknown;
67
67
  }, string>>;
68
68
  cardClass: import("vue").ComputedRef<string>;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
69
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  as: {
71
71
  type: StringConstructor;
72
72
  default: string;
@@ -81,9 +81,9 @@ declare const _default: import("vue").DefineComponent<{
81
81
  }>;
82
82
  default: () => {};
83
83
  };
84
- }>>, {
84
+ }>> & Readonly<{}>, {
85
85
  class: any;
86
86
  as: string;
87
87
  ui: {};
88
- }, {}>;
88
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
89
89
  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
  padding: string;
6
6
  constrained: 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
  padding: string;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  [x: string]: unknown;
31
31
  }, string>>;
32
32
  containerClass: 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;