@nuxt/ui 4.2.0 → 4.2.1

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 (88) hide show
  1. package/.nuxt/ui.css +152 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/components/Accordion.vue +1 -1
  5. package/dist/runtime/components/Alert.vue +2 -2
  6. package/dist/runtime/components/AuthForm.vue +1 -1
  7. package/dist/runtime/components/Avatar.vue +1 -1
  8. package/dist/runtime/components/Badge.vue +3 -3
  9. package/dist/runtime/components/Banner.vue +2 -2
  10. package/dist/runtime/components/Breadcrumb.vue +1 -1
  11. package/dist/runtime/components/Button.vue +4 -4
  12. package/dist/runtime/components/Calendar.vue +4 -4
  13. package/dist/runtime/components/Carousel.vue +2 -2
  14. package/dist/runtime/components/ChatMessage.vue +1 -1
  15. package/dist/runtime/components/ChatMessages.vue +1 -1
  16. package/dist/runtime/components/ChatPrompt.vue +2 -2
  17. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +6 -6
  18. package/dist/runtime/components/ChatPromptSubmit.vue +13 -13
  19. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +6 -6
  20. package/dist/runtime/components/Checkbox.vue +2 -2
  21. package/dist/runtime/components/CheckboxGroup.vue +1 -1
  22. package/dist/runtime/components/CommandPalette.vue +7 -7
  23. package/dist/runtime/components/ContextMenu.vue +3 -3
  24. package/dist/runtime/components/ContextMenuContent.vue +3 -3
  25. package/dist/runtime/components/DashboardNavbar.vue +1 -1
  26. package/dist/runtime/components/DashboardSearch.vue +3 -3
  27. package/dist/runtime/components/DashboardSearchButton.vue +4 -4
  28. package/dist/runtime/components/DashboardSidebarCollapse.vue +4 -4
  29. package/dist/runtime/components/DashboardSidebarToggle.vue +4 -4
  30. package/dist/runtime/components/DropdownMenu.vue +3 -3
  31. package/dist/runtime/components/DropdownMenuContent.vue +3 -3
  32. package/dist/runtime/components/Empty.vue +1 -1
  33. package/dist/runtime/components/FileUpload.vue +3 -3
  34. package/dist/runtime/components/Icon.d.vue.ts +1 -1
  35. package/dist/runtime/components/Icon.vue +1 -1
  36. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  37. package/dist/runtime/components/Input.vue +4 -4
  38. package/dist/runtime/components/InputDate.vue +5 -5
  39. package/dist/runtime/components/InputMenu.vue +6 -6
  40. package/dist/runtime/components/InputNumber.vue +2 -2
  41. package/dist/runtime/components/InputTags.vue +5 -5
  42. package/dist/runtime/components/InputTime.vue +4 -4
  43. package/dist/runtime/components/Link.d.vue.ts +52 -2
  44. package/dist/runtime/components/Link.vue.d.ts +52 -2
  45. package/dist/runtime/components/Modal.vue +1 -1
  46. package/dist/runtime/components/NavigationMenu.vue +2 -2
  47. package/dist/runtime/components/PageCard.vue +1 -1
  48. package/dist/runtime/components/PageFeature.vue +1 -1
  49. package/dist/runtime/components/PageSection.vue +1 -1
  50. package/dist/runtime/components/Pagination.vue +5 -5
  51. package/dist/runtime/components/Select.vue +5 -5
  52. package/dist/runtime/components/SelectMenu.vue +5 -5
  53. package/dist/runtime/components/Separator.vue +1 -1
  54. package/dist/runtime/components/Slideover.vue +1 -1
  55. package/dist/runtime/components/Switch.vue +3 -3
  56. package/dist/runtime/components/Textarea.vue +4 -4
  57. package/dist/runtime/components/Toast.vue +2 -2
  58. package/dist/runtime/components/Tree.vue +3 -3
  59. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +1 -1
  60. package/dist/runtime/components/color-mode/ColorModeButton.vue +5 -4
  61. package/dist/runtime/components/color-mode/ColorModeSelect.vue +4 -4
  62. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -1
  63. package/dist/runtime/components/content/ContentNavigation.vue +1 -1
  64. package/dist/runtime/components/content/ContentSearch.vue +3 -3
  65. package/dist/runtime/components/content/ContentSearchButton.vue +4 -4
  66. package/dist/runtime/components/content/ContentSurround.vue +2 -2
  67. package/dist/runtime/components/content/ContentToc.vue +1 -1
  68. package/dist/runtime/components/locale/LocaleSelect.vue +5 -5
  69. package/dist/runtime/components/prose/Callout.vue +1 -1
  70. package/dist/runtime/components/prose/Card.vue +1 -1
  71. package/dist/runtime/components/prose/CodeCollapse.vue +1 -1
  72. package/dist/runtime/components/prose/CodeIcon.vue +1 -1
  73. package/dist/runtime/components/prose/Collapsible.vue +1 -1
  74. package/dist/runtime/components/prose/Pre.vue +1 -1
  75. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  76. package/dist/runtime/inertia/components/Link.d.vue.ts +5 -2
  77. package/dist/runtime/inertia/components/Link.vue +25 -6
  78. package/dist/runtime/inertia/components/Link.vue.d.ts +5 -2
  79. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +1 -0
  80. package/dist/runtime/inertia/components/LinkBase.vue +5 -2
  81. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -0
  82. package/dist/runtime/vue/components/Icon.vue +1 -1
  83. package/dist/runtime/vue/components/Link.d.vue.ts +4 -2
  84. package/dist/runtime/vue/components/Link.vue +31 -8
  85. package/dist/runtime/vue/components/Link.vue.d.ts +4 -2
  86. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +4 -4
  87. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -1
  88. package/package.json +5 -1
package/.nuxt/ui.css ADDED
@@ -0,0 +1,152 @@
1
+ @source "./ui";
2
+
3
+ @layer base {
4
+ body {
5
+ @apply antialiased text-default bg-default scheme-light dark:scheme-dark;
6
+ }
7
+ }
8
+
9
+ @theme static {
10
+ --color-old-neutral-50: oklch(98.5% 0 0);
11
+ --color-old-neutral-100: oklch(97% 0 0);
12
+ --color-old-neutral-200: oklch(92.2% 0 0);
13
+ --color-old-neutral-300: oklch(87% 0 0);
14
+ --color-old-neutral-400: oklch(70.8% 0 0);
15
+ --color-old-neutral-500: oklch(55.6% 0 0);
16
+ --color-old-neutral-600: oklch(43.9% 0 0);
17
+ --color-old-neutral-700: oklch(37.1% 0 0);
18
+ --color-old-neutral-800: oklch(26.9% 0 0);
19
+ --color-old-neutral-900: oklch(20.5% 0 0);
20
+ --color-old-neutral-950: oklch(14.5% 0 0);
21
+ }
22
+
23
+ @theme default inline {
24
+ --color-primary-50: var(--ui-color-primary-50);
25
+ --color-primary-100: var(--ui-color-primary-100);
26
+ --color-primary-200: var(--ui-color-primary-200);
27
+ --color-primary-300: var(--ui-color-primary-300);
28
+ --color-primary-400: var(--ui-color-primary-400);
29
+ --color-primary-500: var(--ui-color-primary-500);
30
+ --color-primary-600: var(--ui-color-primary-600);
31
+ --color-primary-700: var(--ui-color-primary-700);
32
+ --color-primary-800: var(--ui-color-primary-800);
33
+ --color-primary-900: var(--ui-color-primary-900);
34
+ --color-primary-950: var(--ui-color-primary-950);
35
+ --color-secondary-50: var(--ui-color-secondary-50);
36
+ --color-secondary-100: var(--ui-color-secondary-100);
37
+ --color-secondary-200: var(--ui-color-secondary-200);
38
+ --color-secondary-300: var(--ui-color-secondary-300);
39
+ --color-secondary-400: var(--ui-color-secondary-400);
40
+ --color-secondary-500: var(--ui-color-secondary-500);
41
+ --color-secondary-600: var(--ui-color-secondary-600);
42
+ --color-secondary-700: var(--ui-color-secondary-700);
43
+ --color-secondary-800: var(--ui-color-secondary-800);
44
+ --color-secondary-900: var(--ui-color-secondary-900);
45
+ --color-secondary-950: var(--ui-color-secondary-950);
46
+ --color-success-50: var(--ui-color-success-50);
47
+ --color-success-100: var(--ui-color-success-100);
48
+ --color-success-200: var(--ui-color-success-200);
49
+ --color-success-300: var(--ui-color-success-300);
50
+ --color-success-400: var(--ui-color-success-400);
51
+ --color-success-500: var(--ui-color-success-500);
52
+ --color-success-600: var(--ui-color-success-600);
53
+ --color-success-700: var(--ui-color-success-700);
54
+ --color-success-800: var(--ui-color-success-800);
55
+ --color-success-900: var(--ui-color-success-900);
56
+ --color-success-950: var(--ui-color-success-950);
57
+ --color-info-50: var(--ui-color-info-50);
58
+ --color-info-100: var(--ui-color-info-100);
59
+ --color-info-200: var(--ui-color-info-200);
60
+ --color-info-300: var(--ui-color-info-300);
61
+ --color-info-400: var(--ui-color-info-400);
62
+ --color-info-500: var(--ui-color-info-500);
63
+ --color-info-600: var(--ui-color-info-600);
64
+ --color-info-700: var(--ui-color-info-700);
65
+ --color-info-800: var(--ui-color-info-800);
66
+ --color-info-900: var(--ui-color-info-900);
67
+ --color-info-950: var(--ui-color-info-950);
68
+ --color-warning-50: var(--ui-color-warning-50);
69
+ --color-warning-100: var(--ui-color-warning-100);
70
+ --color-warning-200: var(--ui-color-warning-200);
71
+ --color-warning-300: var(--ui-color-warning-300);
72
+ --color-warning-400: var(--ui-color-warning-400);
73
+ --color-warning-500: var(--ui-color-warning-500);
74
+ --color-warning-600: var(--ui-color-warning-600);
75
+ --color-warning-700: var(--ui-color-warning-700);
76
+ --color-warning-800: var(--ui-color-warning-800);
77
+ --color-warning-900: var(--ui-color-warning-900);
78
+ --color-warning-950: var(--ui-color-warning-950);
79
+ --color-error-50: var(--ui-color-error-50);
80
+ --color-error-100: var(--ui-color-error-100);
81
+ --color-error-200: var(--ui-color-error-200);
82
+ --color-error-300: var(--ui-color-error-300);
83
+ --color-error-400: var(--ui-color-error-400);
84
+ --color-error-500: var(--ui-color-error-500);
85
+ --color-error-600: var(--ui-color-error-600);
86
+ --color-error-700: var(--ui-color-error-700);
87
+ --color-error-800: var(--ui-color-error-800);
88
+ --color-error-900: var(--ui-color-error-900);
89
+ --color-error-950: var(--ui-color-error-950);
90
+ --color-neutral-50: var(--ui-color-neutral-50);
91
+ --color-neutral-100: var(--ui-color-neutral-100);
92
+ --color-neutral-200: var(--ui-color-neutral-200);
93
+ --color-neutral-300: var(--ui-color-neutral-300);
94
+ --color-neutral-400: var(--ui-color-neutral-400);
95
+ --color-neutral-500: var(--ui-color-neutral-500);
96
+ --color-neutral-600: var(--ui-color-neutral-600);
97
+ --color-neutral-700: var(--ui-color-neutral-700);
98
+ --color-neutral-800: var(--ui-color-neutral-800);
99
+ --color-neutral-900: var(--ui-color-neutral-900);
100
+ --color-neutral-950: var(--ui-color-neutral-950);
101
+ --color-primary: var(--ui-primary);
102
+ --color-secondary: var(--ui-secondary);
103
+ --color-success: var(--ui-success);
104
+ --color-info: var(--ui-info);
105
+ --color-warning: var(--ui-warning);
106
+ --color-error: var(--ui-error);
107
+ --radius-xs: calc(var(--ui-radius) * 0.5);
108
+ --radius-sm: var(--ui-radius);
109
+ --radius-md: calc(var(--ui-radius) * 1.5);
110
+ --radius-lg: calc(var(--ui-radius) * 2);
111
+ --radius-xl: calc(var(--ui-radius) * 3);
112
+ --radius-2xl: calc(var(--ui-radius) * 4);
113
+ --radius-3xl: calc(var(--ui-radius) * 6);
114
+ --text-color-dimmed: var(--ui-text-dimmed);
115
+ --text-color-muted: var(--ui-text-muted);
116
+ --text-color-toned: var(--ui-text-toned);
117
+ --text-color-default: var(--ui-text);
118
+ --text-color-highlighted: var(--ui-text-highlighted);
119
+ --text-color-inverted: var(--ui-text-inverted);
120
+ --background-color-default: var(--ui-bg);
121
+ --background-color-muted: var(--ui-bg-muted);
122
+ --background-color-elevated: var(--ui-bg-elevated);
123
+ --background-color-accented: var(--ui-bg-accented);
124
+ --background-color-inverted: var(--ui-bg-inverted);
125
+ --background-color-border: var(--ui-border);
126
+ --border-color-default: var(--ui-border);
127
+ --border-color-muted: var(--ui-border-muted);
128
+ --border-color-accented: var(--ui-border-accented);
129
+ --border-color-inverted: var(--ui-border-inverted);
130
+ --border-color-bg: var(--ui-bg);
131
+ --ring-color-default: var(--ui-border);
132
+ --ring-color-muted: var(--ui-border-muted);
133
+ --ring-color-accented: var(--ui-border-accented);
134
+ --ring-color-inverted: var(--ui-border-inverted);
135
+ --ring-color-bg: var(--ui-bg);
136
+ --ring-offset-color-default: var(--ui-border);
137
+ --ring-offset-color-muted: var(--ui-border-muted);
138
+ --ring-offset-color-accented: var(--ui-border-accented);
139
+ --ring-offset-color-inverted: var(--ui-border-inverted);
140
+ --ring-offset-color-bg: var(--ui-bg);
141
+ --divide-color-default: var(--ui-border);
142
+ --divide-color-muted: var(--ui-border-muted);
143
+ --divide-color-accented: var(--ui-border-accented);
144
+ --divide-color-inverted: var(--ui-border-inverted);
145
+ --divide-color-bg: var(--ui-bg);
146
+ --outline-color-default: var(--ui-border);
147
+ --outline-color-inverted: var(--ui-border-inverted);
148
+ --stroke-default: var(--ui-border);
149
+ --stroke-inverted: var(--ui-border-inverted);
150
+ --fill-default: var(--ui-border);
151
+ --fill-inverted: var(--ui-border-inverted);
152
+ }
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -11,7 +11,7 @@ import 'pathe';
11
11
  import 'tinyglobby';
12
12
 
13
13
  const name = "@nuxt/ui";
14
- const version = "4.2.0";
14
+ const version = "4.2.1";
15
15
 
16
16
  const module = defineNuxtModule({
17
17
  meta: {
@@ -13,7 +13,7 @@ import UIcon from "./Icon.vue";
13
13
  const props = defineProps({
14
14
  as: { type: null, required: false },
15
15
  items: { type: Array, required: false },
16
- trailingIcon: { type: [String, Object], required: false },
16
+ trailingIcon: { type: null, required: false },
17
17
  labelKey: { type: null, required: false, default: "label" },
18
18
  class: { type: null, required: false },
19
19
  ui: { type: null, required: false },
@@ -15,14 +15,14 @@ const props = defineProps({
15
15
  as: { type: null, required: false },
16
16
  title: { type: String, required: false },
17
17
  description: { type: String, required: false },
18
- icon: { type: [String, Object], required: false },
18
+ icon: { type: null, required: false },
19
19
  avatar: { type: Object, required: false },
20
20
  color: { type: null, required: false },
21
21
  variant: { type: null, required: false },
22
22
  orientation: { type: null, required: false, default: "vertical" },
23
23
  actions: { type: Array, required: false },
24
24
  close: { type: [Boolean, Object], required: false },
25
- closeIcon: { type: [String, Object], required: false },
25
+ closeIcon: { type: null, required: false },
26
26
  class: { type: null, required: false },
27
27
  ui: { type: null, required: false }
28
28
  });
@@ -21,7 +21,7 @@ import UPinInput from "./PinInput.vue";
21
21
  defineOptions({ inheritAttrs: false });
22
22
  const props = defineProps({
23
23
  as: { type: null, required: false },
24
- icon: { type: [String, Object], required: false },
24
+ icon: { type: null, required: false },
25
25
  title: { type: String, required: false },
26
26
  description: { type: String, required: false },
27
27
  fields: { type: Array, required: false },
@@ -17,7 +17,7 @@ const props = defineProps({
17
17
  as: { type: null, required: false },
18
18
  src: { type: String, required: false },
19
19
  alt: { type: String, required: false },
20
- icon: { type: [String, Object], required: false },
20
+ icon: { type: null, required: false },
21
21
  text: { type: String, required: false },
22
22
  size: { type: null, required: false },
23
23
  chip: { type: [Boolean, Object], required: false },
@@ -20,12 +20,12 @@ const props = defineProps({
20
20
  square: { type: Boolean, required: false },
21
21
  class: { type: null, required: false },
22
22
  ui: { type: null, required: false },
23
- icon: { type: [String, Object], required: false },
23
+ icon: { type: null, required: false },
24
24
  avatar: { type: Object, required: false },
25
25
  leading: { type: Boolean, required: false },
26
- leadingIcon: { type: [String, Object], required: false },
26
+ leadingIcon: { type: null, required: false },
27
27
  trailing: { type: Boolean, required: false },
28
- trailingIcon: { type: [String, Object], required: false }
28
+ trailingIcon: { type: null, required: false }
29
29
  });
30
30
  const slots = defineSlots();
31
31
  const appConfig = useAppConfig();
@@ -16,14 +16,14 @@ defineOptions({ inheritAttrs: false });
16
16
  const props = defineProps({
17
17
  as: { type: null, required: false },
18
18
  id: { type: String, required: false },
19
- icon: { type: [String, Object], required: false },
19
+ icon: { type: null, required: false },
20
20
  title: { type: String, required: false },
21
21
  actions: { type: Array, required: false },
22
22
  to: { type: null, required: false },
23
23
  target: { type: [String, Object, null], required: false },
24
24
  color: { type: null, required: false },
25
25
  close: { type: [Boolean, Object], required: false },
26
- closeIcon: { type: [String, Object], required: false },
26
+ closeIcon: { type: null, required: false },
27
27
  class: { type: null, required: false },
28
28
  ui: { type: null, required: false }
29
29
  });
@@ -17,7 +17,7 @@ import ULink from "./Link.vue";
17
17
  const props = defineProps({
18
18
  as: { type: null, required: false, default: "nav" },
19
19
  items: { type: Array, required: false },
20
- separatorIcon: { type: [String, Object], required: false },
20
+ separatorIcon: { type: null, required: false },
21
21
  labelKey: { type: null, required: false, default: "label" },
22
22
  class: { type: null, required: false },
23
23
  ui: { type: null, required: false }
@@ -30,14 +30,14 @@ const props = defineProps({
30
30
  onClick: { type: [Function, Array], required: false },
31
31
  class: { type: null, required: false },
32
32
  ui: { type: null, required: false },
33
- icon: { type: [String, Object], required: false },
33
+ icon: { type: null, required: false },
34
34
  avatar: { type: Object, required: false },
35
35
  leading: { type: Boolean, required: false },
36
- leadingIcon: { type: [String, Object], required: false },
36
+ leadingIcon: { type: null, required: false },
37
37
  trailing: { type: Boolean, required: false },
38
- trailingIcon: { type: [String, Object], required: false },
38
+ trailingIcon: { type: null, required: false },
39
39
  loading: { type: Boolean, required: false },
40
- loadingIcon: { type: [String, Object], required: false },
40
+ loadingIcon: { type: null, required: false },
41
41
  as: { type: null, required: false },
42
42
  type: { type: null, required: false },
43
43
  disabled: { type: Boolean, required: false },
@@ -13,13 +13,13 @@ import { tv } from "../utils/tv";
13
13
  import UButton from "./Button.vue";
14
14
  const props = defineProps({
15
15
  as: { type: null, required: false },
16
- nextYearIcon: { type: [String, Object], required: false },
16
+ nextYearIcon: { type: null, required: false },
17
17
  nextYear: { type: Object, required: false },
18
- nextMonthIcon: { type: [String, Object], required: false },
18
+ nextMonthIcon: { type: null, required: false },
19
19
  nextMonth: { type: Object, required: false },
20
- prevYearIcon: { type: [String, Object], required: false },
20
+ prevYearIcon: { type: null, required: false },
21
21
  prevYear: { type: Object, required: false },
22
- prevMonthIcon: { type: [String, Object], required: false },
22
+ prevMonthIcon: { type: null, required: false },
23
23
  prevMonth: { type: Object, required: false },
24
24
  color: { type: null, required: false },
25
25
  variant: { type: null, required: false },
@@ -14,9 +14,9 @@ import UButton from "./Button.vue";
14
14
  const props = defineProps({
15
15
  as: { type: null, required: false },
16
16
  prev: { type: Object, required: false },
17
- prevIcon: { type: [String, Object], required: false },
17
+ prevIcon: { type: null, required: false },
18
18
  next: { type: Object, required: false },
19
- nextIcon: { type: [String, Object], required: false },
19
+ nextIcon: { type: null, required: false },
20
20
  arrows: { type: Boolean, required: false, default: false },
21
21
  dots: { type: Boolean, required: false, default: false },
22
22
  orientation: { type: null, required: false, default: "horizontal" },
@@ -14,7 +14,7 @@ import UAvatar from "./Avatar.vue";
14
14
  import UIcon from "./Icon.vue";
15
15
  const props = defineProps({
16
16
  as: { type: null, required: false, default: "article" },
17
- icon: { type: [String, Object], required: false },
17
+ icon: { type: null, required: false },
18
18
  avatar: { type: Object, required: false },
19
19
  variant: { type: null, required: false },
20
20
  side: { type: null, required: false },
@@ -18,7 +18,7 @@ const props = defineProps({
18
18
  shouldAutoScroll: { type: Boolean, required: false, default: false },
19
19
  shouldScrollToBottom: { type: Boolean, required: false, default: true },
20
20
  autoScroll: { type: [Boolean, Object], required: false, default: true },
21
- autoScrollIcon: { type: [String, Object], required: false },
21
+ autoScrollIcon: { type: null, required: false },
22
22
  user: { type: Object, required: false },
23
23
  assistant: { type: Object, required: false },
24
24
  compact: { type: Boolean, required: false },
@@ -25,10 +25,10 @@ const props = defineProps({
25
25
  autoresize: { type: Boolean, required: false, default: true },
26
26
  autoresizeDelay: { type: Number, required: false },
27
27
  maxrows: { type: Number, required: false },
28
- icon: { type: [String, Object], required: false },
28
+ icon: { type: null, required: false },
29
29
  avatar: { type: Object, required: false },
30
30
  loading: { type: Boolean, required: false },
31
- loadingIcon: { type: [String, Object], required: false },
31
+ loadingIcon: { type: null, required: false },
32
32
  disabled: { type: Boolean, required: false }
33
33
  });
34
34
  const emits = defineEmits(["submit", "close"]);
@@ -74,15 +74,15 @@ export interface ChatPromptSubmitProps extends Omit<ButtonProps, 'icon' | 'color
74
74
  class?: any;
75
75
  }
76
76
  export interface ChatPromptSubmitEmits {
77
- stop: [];
78
- reload: [];
77
+ stop: [event: MouseEvent];
78
+ reload: [event: MouseEvent];
79
79
  }
80
80
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- stop: () => any;
82
- reload: () => any;
81
+ stop: (event: MouseEvent) => any;
82
+ reload: (event: MouseEvent) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<ChatPromptSubmitProps> & Readonly<{
84
- onStop?: (() => any) | undefined;
85
- onReload?: (() => any) | undefined;
84
+ onStop?: ((event: MouseEvent) => any) | undefined;
85
+ onReload?: ((event: MouseEvent) => any) | undefined;
86
86
  }>, {
87
87
  status: ChatStatus;
88
88
  streamingColor: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
@@ -14,16 +14,16 @@ import UButton from "./Button.vue";
14
14
  defineOptions({ inheritAttrs: false });
15
15
  const props = defineProps({
16
16
  status: { type: String, required: false, default: "ready" },
17
- icon: { type: [String, Object], required: false },
17
+ icon: { type: null, required: false },
18
18
  color: { type: null, required: false },
19
19
  variant: { type: null, required: false },
20
- streamingIcon: { type: [String, Object], required: false },
20
+ streamingIcon: { type: null, required: false },
21
21
  streamingColor: { type: null, required: false, default: "neutral" },
22
22
  streamingVariant: { type: null, required: false, default: "subtle" },
23
- submittedIcon: { type: [String, Object], required: false },
23
+ submittedIcon: { type: null, required: false },
24
24
  submittedColor: { type: null, required: false, default: "neutral" },
25
25
  submittedVariant: { type: null, required: false, default: "subtle" },
26
- errorIcon: { type: [String, Object], required: false },
26
+ errorIcon: { type: null, required: false },
27
27
  errorColor: { type: null, required: false, default: "error" },
28
28
  errorVariant: { type: null, required: false, default: "soft" },
29
29
  ui: { type: void 0, required: false },
@@ -38,11 +38,11 @@ const props = defineProps({
38
38
  onClick: { type: [Function, Array], required: false },
39
39
  avatar: { type: Object, required: false },
40
40
  leading: { type: Boolean, required: false },
41
- leadingIcon: { type: [String, Object], required: false },
41
+ leadingIcon: { type: null, required: false },
42
42
  trailing: { type: Boolean, required: false },
43
- trailingIcon: { type: [String, Object], required: false },
43
+ trailingIcon: { type: null, required: false },
44
44
  loading: { type: Boolean, required: false },
45
- loadingIcon: { type: [String, Object], required: false },
45
+ loadingIcon: { type: null, required: false },
46
46
  as: { type: null, required: false },
47
47
  type: { type: null, required: false },
48
48
  disabled: { type: Boolean, required: false },
@@ -84,24 +84,24 @@ const statusButtonProps = computed(() => ({
84
84
  icon: props.submittedIcon || appConfig.ui.icons.stop,
85
85
  color: props.submittedColor,
86
86
  variant: props.submittedVariant,
87
- onClick() {
88
- emits("stop");
87
+ onClick(e) {
88
+ emits("stop", e);
89
89
  }
90
90
  },
91
91
  streaming: {
92
92
  icon: props.streamingIcon || appConfig.ui.icons.stop,
93
93
  color: props.streamingColor,
94
94
  variant: props.streamingVariant,
95
- onClick() {
96
- emits("stop");
95
+ onClick(e) {
96
+ emits("stop", e);
97
97
  }
98
98
  },
99
99
  error: {
100
100
  icon: props.errorIcon || appConfig.ui.icons.reload,
101
101
  color: props.errorColor,
102
102
  variant: props.errorVariant,
103
- onClick() {
104
- emits("reload");
103
+ onClick(e) {
104
+ emits("reload", e);
105
105
  }
106
106
  }
107
107
  })[props.status]);
@@ -74,15 +74,15 @@ export interface ChatPromptSubmitProps extends Omit<ButtonProps, 'icon' | 'color
74
74
  class?: any;
75
75
  }
76
76
  export interface ChatPromptSubmitEmits {
77
- stop: [];
78
- reload: [];
77
+ stop: [event: MouseEvent];
78
+ reload: [event: MouseEvent];
79
79
  }
80
80
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- stop: () => any;
82
- reload: () => any;
81
+ stop: (event: MouseEvent) => any;
82
+ reload: (event: MouseEvent) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<ChatPromptSubmitProps> & Readonly<{
84
- onStop?: (() => any) | undefined;
85
- onReload?: (() => any) | undefined;
84
+ onStop?: ((event: MouseEvent) => any) | undefined;
85
+ onReload?: ((event: MouseEvent) => any) | undefined;
86
86
  }>, {
87
87
  status: ChatStatus;
88
88
  streamingColor: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
@@ -19,8 +19,8 @@ const props = defineProps({
19
19
  variant: { type: null, required: false },
20
20
  size: { type: null, required: false },
21
21
  indicator: { type: null, required: false },
22
- icon: { type: [String, Object], required: false },
23
- indeterminateIcon: { type: [String, Object], required: false },
22
+ icon: { type: null, required: false },
23
+ indeterminateIcon: { type: null, required: false },
24
24
  class: { type: null, required: false },
25
25
  ui: { type: null, required: false },
26
26
  disabled: { type: Boolean, required: false },
@@ -31,7 +31,7 @@ const props = defineProps({
31
31
  required: { type: Boolean, required: false },
32
32
  color: { type: null, required: false },
33
33
  indicator: { type: null, required: false },
34
- icon: { type: [String, Object], required: false }
34
+ icon: { type: null, required: false }
35
35
  });
36
36
  const emits = defineEmits(["update:modelValue", "change"]);
37
37
  const slots = defineSlots();
@@ -26,16 +26,16 @@ import UKbd from "./Kbd.vue";
26
26
  defineOptions({ inheritAttrs: false });
27
27
  const props = defineProps({
28
28
  as: { type: null, required: false },
29
- icon: { type: [String, Object], required: false },
30
- trailingIcon: { type: [String, Object], required: false },
31
- selectedIcon: { type: [String, Object], required: false },
32
- childrenIcon: { type: [String, Object], required: false },
29
+ icon: { type: null, required: false },
30
+ trailingIcon: { type: null, required: false },
31
+ selectedIcon: { type: null, required: false },
32
+ childrenIcon: { type: null, required: false },
33
33
  placeholder: { type: String, required: false },
34
34
  autofocus: { type: Boolean, required: false, default: true },
35
35
  close: { type: [Boolean, Object], required: false },
36
- closeIcon: { type: [String, Object], required: false },
36
+ closeIcon: { type: null, required: false },
37
37
  back: { type: [Boolean, Object], required: false, default: true },
38
- backIcon: { type: [String, Object], required: false },
38
+ backIcon: { type: null, required: false },
39
39
  groups: { type: Array, required: false },
40
40
  fuse: { type: Object, required: false },
41
41
  virtualize: { type: [Boolean, Object], required: false, default: false },
@@ -51,7 +51,7 @@ const props = defineProps({
51
51
  highlightOnHover: { type: Boolean, required: false, default: true },
52
52
  selectionBehavior: { type: String, required: false },
53
53
  loading: { type: Boolean, required: false },
54
- loadingIcon: { type: [String, Object], required: false }
54
+ loadingIcon: { type: null, required: false }
55
55
  });
56
56
  const emits = defineEmits(["update:modelValue", "highlight", "entryFocus", "leave", "update:open"]);
57
57
  const slots = defineSlots();
@@ -13,9 +13,9 @@ import UContextMenuContent from "./ContextMenuContent.vue";
13
13
  const props = defineProps({
14
14
  size: { type: null, required: false },
15
15
  items: { type: null, required: false },
16
- checkedIcon: { type: [String, Object], required: false },
17
- loadingIcon: { type: [String, Object], required: false },
18
- externalIcon: { type: [Boolean, String, Object], required: false, default: true },
16
+ checkedIcon: { type: null, required: false },
17
+ loadingIcon: { type: null, required: false },
18
+ externalIcon: { type: [Boolean, String], required: false, skipCheck: true, default: true },
19
19
  content: { type: Object, required: false },
20
20
  portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
21
21
  labelKey: { type: null, required: false, default: "label" },
@@ -24,9 +24,9 @@ const props = defineProps({
24
24
  sub: { type: Boolean, required: false },
25
25
  labelKey: { type: null, required: true },
26
26
  descriptionKey: { type: null, required: true },
27
- checkedIcon: { type: [String, Object], required: false },
28
- loadingIcon: { type: [String, Object], required: false },
29
- externalIcon: { type: [Boolean, String, Object], required: false },
27
+ checkedIcon: { type: null, required: false },
28
+ loadingIcon: { type: null, required: false },
29
+ externalIcon: { type: [Boolean, String], required: false, skipCheck: true },
30
30
  class: { type: null, required: false },
31
31
  ui: { type: null, required: true },
32
32
  uiOverride: { type: null, required: false },
@@ -14,7 +14,7 @@ import UIcon from "./Icon.vue";
14
14
  defineOptions({ inheritAttrs: false });
15
15
  const props = defineProps({
16
16
  as: { type: null, required: false },
17
- icon: { type: [String, Object], required: false },
17
+ icon: { type: null, required: false },
18
18
  title: { type: String, required: false },
19
19
  toggle: { type: [Boolean, Object], required: false, default: true },
20
20
  toggleSide: { type: String, required: false, default: "left" },
@@ -14,13 +14,13 @@ import { tv } from "../utils/tv";
14
14
  import UCommandPalette from "./CommandPalette.vue";
15
15
  import UModal from "./Modal.vue";
16
16
  const props = defineProps({
17
- icon: { type: [String, Object], required: false },
17
+ icon: { type: null, required: false },
18
18
  placeholder: { type: String, required: false },
19
19
  autofocus: { type: Boolean, required: false },
20
20
  loading: { type: Boolean, required: false },
21
- loadingIcon: { type: [String, Object], required: false },
21
+ loadingIcon: { type: null, required: false },
22
22
  close: { type: [Boolean, Object], required: false, default: true },
23
- closeIcon: { type: [String, Object], required: false },
23
+ closeIcon: { type: null, required: false },
24
24
  shortcut: { type: String, required: false, default: "meta_k" },
25
25
  groups: { type: Array, required: false },
26
26
  fuse: { type: Object, required: false },
@@ -17,7 +17,7 @@ import UKbd from "./Kbd.vue";
17
17
  import UTooltip from "./Tooltip.vue";
18
18
  defineOptions({ inheritAttrs: false });
19
19
  const props = defineProps({
20
- icon: { type: [String, Object], required: false },
20
+ icon: { type: null, required: false },
21
21
  label: { type: String, required: false },
22
22
  color: { type: null, required: false, default: "neutral" },
23
23
  variant: { type: null, required: false },
@@ -35,11 +35,11 @@ const props = defineProps({
35
35
  onClick: { type: [Function, Array], required: false },
36
36
  avatar: { type: Object, required: false },
37
37
  leading: { type: Boolean, required: false },
38
- leadingIcon: { type: [String, Object], required: false },
38
+ leadingIcon: { type: null, required: false },
39
39
  trailing: { type: Boolean, required: false },
40
- trailingIcon: { type: [String, Object], required: false },
40
+ trailingIcon: { type: null, required: false },
41
41
  loading: { type: Boolean, required: false },
42
- loadingIcon: { type: [String, Object], required: false },
42
+ loadingIcon: { type: null, required: false },
43
43
  as: { type: null, required: false },
44
44
  type: { type: null, required: false },
45
45
  disabled: { type: Boolean, required: false },
@@ -25,14 +25,14 @@ const props = defineProps({
25
25
  onClick: { type: [Function, Array], required: false },
26
26
  class: { type: null, required: false },
27
27
  ui: { type: null, required: false },
28
- icon: { type: [String, Object], required: false },
28
+ icon: { type: null, required: false },
29
29
  avatar: { type: Object, required: false },
30
30
  leading: { type: Boolean, required: false },
31
- leadingIcon: { type: [String, Object], required: false },
31
+ leadingIcon: { type: null, required: false },
32
32
  trailing: { type: Boolean, required: false },
33
- trailingIcon: { type: [String, Object], required: false },
33
+ trailingIcon: { type: null, required: false },
34
34
  loading: { type: Boolean, required: false },
35
- loadingIcon: { type: [String, Object], required: false },
35
+ loadingIcon: { type: null, required: false },
36
36
  as: { type: null, required: false },
37
37
  type: { type: null, required: false },
38
38
  disabled: { type: Boolean, required: false },
@@ -26,14 +26,14 @@ const props = defineProps({
26
26
  onClick: { type: [Function, Array], required: false },
27
27
  class: { type: null, required: false },
28
28
  ui: { type: null, required: false },
29
- icon: { type: [String, Object], required: false },
29
+ icon: { type: null, required: false },
30
30
  avatar: { type: Object, required: false },
31
31
  leading: { type: Boolean, required: false },
32
- leadingIcon: { type: [String, Object], required: false },
32
+ leadingIcon: { type: null, required: false },
33
33
  trailing: { type: Boolean, required: false },
34
- trailingIcon: { type: [String, Object], required: false },
34
+ trailingIcon: { type: null, required: false },
35
35
  loading: { type: Boolean, required: false },
36
- loadingIcon: { type: [String, Object], required: false },
36
+ loadingIcon: { type: null, required: false },
37
37
  as: { type: null, required: false },
38
38
  type: { type: null, required: false },
39
39
  disabled: { type: Boolean, required: false },