@nuxt/ui 3.1.3 → 3.3.0

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 (208) hide show
  1. package/.nuxt/ui/avatar.ts +1 -1
  2. package/.nuxt/ui/button.ts +42 -42
  3. package/.nuxt/ui/card.ts +1 -1
  4. package/.nuxt/ui/carousel.ts +1 -1
  5. package/.nuxt/ui/command-palette.ts +3 -1
  6. package/.nuxt/ui/drawer.ts +1 -1
  7. package/.nuxt/ui/file-upload.ts +290 -0
  8. package/.nuxt/ui/index.ts +3 -0
  9. package/.nuxt/ui/input-menu.ts +24 -10
  10. package/.nuxt/ui/input-tags.ts +310 -0
  11. package/.nuxt/ui/kbd.ts +167 -3
  12. package/.nuxt/ui/modal.ts +1 -1
  13. package/.nuxt/ui/navigation-menu.ts +1 -1
  14. package/.nuxt/ui/select-menu.ts +11 -6
  15. package/.nuxt/ui/select.ts +11 -6
  16. package/.nuxt/ui/table.ts +11 -2
  17. package/.nuxt/ui/tabs.ts +4 -2
  18. package/.nuxt/ui/timeline.ts +321 -0
  19. package/.nuxt/ui/toast.ts +8 -15
  20. package/.nuxt/ui/toaster.ts +1 -1
  21. package/.nuxt/ui/tooltip.ts +1 -1
  22. package/cli/templates.mjs +11 -7
  23. package/dist/module.d.mts +15 -1
  24. package/dist/module.json +1 -1
  25. package/dist/module.mjs +3 -3
  26. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  27. package/dist/runtime/components/Alert.vue +0 -1
  28. package/dist/runtime/components/Alert.vue.d.ts +2 -2
  29. package/dist/runtime/components/App.vue.d.ts +1 -1
  30. package/dist/runtime/components/Avatar.vue +10 -2
  31. package/dist/runtime/components/Avatar.vue.d.ts +3 -1
  32. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  33. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  34. package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
  35. package/dist/runtime/components/Button.vue +6 -6
  36. package/dist/runtime/components/Button.vue.d.ts +1 -5
  37. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  38. package/dist/runtime/components/Calendar.vue +4 -1
  39. package/dist/runtime/components/Calendar.vue.d.ts +1 -1
  40. package/dist/runtime/components/Card.vue.d.ts +1 -1
  41. package/dist/runtime/components/Carousel.vue +19 -16
  42. package/dist/runtime/components/Carousel.vue.d.ts +1 -1
  43. package/dist/runtime/components/Checkbox.vue +1 -1
  44. package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
  45. package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
  46. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  47. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  48. package/dist/runtime/components/ColorPicker.vue +1 -2
  49. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  50. package/dist/runtime/components/CommandPalette.vue +84 -16
  51. package/dist/runtime/components/CommandPalette.vue.d.ts +38 -9
  52. package/dist/runtime/components/Container.vue.d.ts +1 -1
  53. package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
  54. package/dist/runtime/components/ContextMenuContent.vue.d.ts +5 -21
  55. package/dist/runtime/components/Drawer.vue +4 -4
  56. package/dist/runtime/components/Drawer.vue.d.ts +6 -1
  57. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
  58. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +12 -25
  59. package/dist/runtime/components/FileUpload.vue +242 -0
  60. package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
  61. package/dist/runtime/components/Form.vue +6 -6
  62. package/dist/runtime/components/Form.vue.d.ts +15 -13
  63. package/dist/runtime/components/FormField.vue +2 -2
  64. package/dist/runtime/components/FormField.vue.d.ts +4 -4
  65. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  66. package/dist/runtime/components/Input.vue +10 -7
  67. package/dist/runtime/components/Input.vue.d.ts +9 -9
  68. package/dist/runtime/components/InputMenu.vue +17 -10
  69. package/dist/runtime/components/InputMenu.vue.d.ts +19 -16
  70. package/dist/runtime/components/InputNumber.vue +3 -2
  71. package/dist/runtime/components/InputNumber.vue.d.ts +5 -5
  72. package/dist/runtime/components/InputTags.vue +161 -0
  73. package/dist/runtime/components/InputTags.vue.d.ts +185 -0
  74. package/dist/runtime/components/Kbd.vue +2 -1
  75. package/dist/runtime/components/Kbd.vue.d.ts +5 -1
  76. package/dist/runtime/components/Link.vue +6 -5
  77. package/dist/runtime/components/Link.vue.d.ts +1 -3
  78. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  79. package/dist/runtime/components/Modal.vue +14 -13
  80. package/dist/runtime/components/Modal.vue.d.ts +16 -6
  81. package/dist/runtime/components/NavigationMenu.vue +19 -17
  82. package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
  83. package/dist/runtime/components/OverlayProvider.vue +2 -2
  84. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  85. package/dist/runtime/components/Pagination.vue +1 -1
  86. package/dist/runtime/components/Pagination.vue.d.ts +1 -2
  87. package/dist/runtime/components/PinInput.vue +4 -3
  88. package/dist/runtime/components/PinInput.vue.d.ts +22 -19
  89. package/dist/runtime/components/Popover.vue +2 -1
  90. package/dist/runtime/components/Popover.vue.d.ts +8 -2
  91. package/dist/runtime/components/Progress.vue +2 -1
  92. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  93. package/dist/runtime/components/RadioGroup.vue +3 -3
  94. package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
  95. package/dist/runtime/components/Select.vue +23 -4
  96. package/dist/runtime/components/Select.vue.d.ts +108 -2
  97. package/dist/runtime/components/SelectMenu.vue +33 -11
  98. package/dist/runtime/components/SelectMenu.vue.d.ts +106 -2
  99. package/dist/runtime/components/Separator.vue.d.ts +1 -1
  100. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  101. package/dist/runtime/components/Slideover.vue +14 -13
  102. package/dist/runtime/components/Slideover.vue.d.ts +16 -6
  103. package/dist/runtime/components/Slider.vue.d.ts +5 -5
  104. package/dist/runtime/components/Stepper.vue.d.ts +1 -1
  105. package/dist/runtime/components/Switch.vue.d.ts +1 -1
  106. package/dist/runtime/components/Table.vue +90 -9
  107. package/dist/runtime/components/Table.vue.d.ts +30 -12
  108. package/dist/runtime/components/Tabs.vue +24 -4
  109. package/dist/runtime/components/Tabs.vue.d.ts +12 -4
  110. package/dist/runtime/components/Textarea.vue +10 -7
  111. package/dist/runtime/components/Textarea.vue.d.ts +14 -12
  112. package/dist/runtime/components/Timeline.vue +92 -0
  113. package/dist/runtime/components/Timeline.vue.d.ts +70 -0
  114. package/dist/runtime/components/Toast.vue +16 -9
  115. package/dist/runtime/components/Toast.vue.d.ts +14 -13
  116. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  117. package/dist/runtime/components/Tooltip.vue +2 -1
  118. package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
  119. package/dist/runtime/components/Tree.vue +6 -4
  120. package/dist/runtime/components/Tree.vue.d.ts +2 -2
  121. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  122. package/dist/runtime/composables/defineLocale.js +4 -0
  123. package/dist/runtime/composables/defineShortcuts.js +7 -5
  124. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  125. package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
  126. package/dist/runtime/composables/useFileUpload.d.ts +19 -0
  127. package/dist/runtime/composables/useFileUpload.js +63 -0
  128. package/dist/runtime/composables/useFormField.d.ts +3 -6
  129. package/dist/runtime/composables/useFormField.js +5 -2
  130. package/dist/runtime/composables/useKbd.d.ts +1 -1
  131. package/dist/runtime/composables/useLocale.js +2 -2
  132. package/dist/runtime/composables/useOverlay.d.ts +30 -2
  133. package/dist/runtime/composables/useOverlay.js +8 -7
  134. package/dist/runtime/composables/usePortal.d.ts +1 -1
  135. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  136. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  137. package/dist/runtime/inertia/stubs.d.ts +1 -0
  138. package/dist/runtime/inertia/stubs.js +4 -2
  139. package/dist/runtime/locale/ar.js +4 -2
  140. package/dist/runtime/locale/az.js +3 -1
  141. package/dist/runtime/locale/bg.js +3 -1
  142. package/dist/runtime/locale/bn.js +3 -1
  143. package/dist/runtime/locale/ca.js +3 -1
  144. package/dist/runtime/locale/ckb.js +4 -2
  145. package/dist/runtime/locale/cs.js +3 -1
  146. package/dist/runtime/locale/da.js +3 -1
  147. package/dist/runtime/locale/de.js +3 -1
  148. package/dist/runtime/locale/el.js +3 -1
  149. package/dist/runtime/locale/en.js +3 -1
  150. package/dist/runtime/locale/es.js +3 -1
  151. package/dist/runtime/locale/et.js +3 -1
  152. package/dist/runtime/locale/fa_ir.js +3 -1
  153. package/dist/runtime/locale/fi.js +3 -1
  154. package/dist/runtime/locale/fr.js +3 -1
  155. package/dist/runtime/locale/he.js +3 -1
  156. package/dist/runtime/locale/hi.js +4 -2
  157. package/dist/runtime/locale/hu.js +3 -1
  158. package/dist/runtime/locale/hy.js +3 -1
  159. package/dist/runtime/locale/id.js +3 -1
  160. package/dist/runtime/locale/index.d.ts +1 -0
  161. package/dist/runtime/locale/index.js +1 -0
  162. package/dist/runtime/locale/it.js +3 -1
  163. package/dist/runtime/locale/ja.js +3 -1
  164. package/dist/runtime/locale/kk.js +3 -1
  165. package/dist/runtime/locale/km.js +4 -2
  166. package/dist/runtime/locale/ko.js +3 -1
  167. package/dist/runtime/locale/ky.js +3 -1
  168. package/dist/runtime/locale/lb.d.ts +3 -0
  169. package/dist/runtime/locale/lb.js +56 -0
  170. package/dist/runtime/locale/lt.js +3 -1
  171. package/dist/runtime/locale/mn.js +3 -1
  172. package/dist/runtime/locale/ms.js +3 -1
  173. package/dist/runtime/locale/nb_no.js +3 -1
  174. package/dist/runtime/locale/nl.js +3 -1
  175. package/dist/runtime/locale/pl.js +3 -1
  176. package/dist/runtime/locale/pt.js +3 -1
  177. package/dist/runtime/locale/pt_br.js +3 -1
  178. package/dist/runtime/locale/ro.js +3 -1
  179. package/dist/runtime/locale/ru.js +3 -1
  180. package/dist/runtime/locale/sk.js +3 -1
  181. package/dist/runtime/locale/sl.js +3 -1
  182. package/dist/runtime/locale/sv.js +3 -1
  183. package/dist/runtime/locale/th.js +3 -1
  184. package/dist/runtime/locale/tj.js +3 -1
  185. package/dist/runtime/locale/tr.js +3 -1
  186. package/dist/runtime/locale/ug_cn.js +3 -1
  187. package/dist/runtime/locale/uk.js +3 -1
  188. package/dist/runtime/locale/ur.js +3 -1
  189. package/dist/runtime/locale/uz.js +3 -1
  190. package/dist/runtime/locale/vi.js +3 -1
  191. package/dist/runtime/locale/zh_cn.js +3 -1
  192. package/dist/runtime/locale/zh_tw.js +3 -1
  193. package/dist/runtime/types/form.d.ts +11 -10
  194. package/dist/runtime/types/index.d.ts +3 -0
  195. package/dist/runtime/types/index.js +3 -0
  196. package/dist/runtime/types/locale.d.ts +2 -0
  197. package/dist/runtime/types/utils.d.ts +3 -0
  198. package/dist/runtime/utils/index.d.ts +1 -0
  199. package/dist/runtime/utils/index.js +9 -0
  200. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  201. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  202. package/dist/runtime/vue/stubs.d.ts +1 -0
  203. package/dist/runtime/vue/stubs.js +3 -1
  204. package/dist/shared/{ui.Bix4DSU4.mjs → ui.BkSj2DmF.mjs} +560 -55
  205. package/dist/unplugin.d.mts +2 -0
  206. package/dist/unplugin.mjs +6 -3
  207. package/dist/vite.mjs +1 -1
  208. package/package.json +37 -38
@@ -41,7 +41,7 @@ export default {
41
41
  "content": "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
42
42
  "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
43
43
  "group": "p-1 isolate",
44
- "empty": "py-2 text-center text-sm text-muted",
44
+ "empty": "text-center text-muted",
45
45
  "label": "font-semibold text-highlighted",
46
46
  "separator": "-mx-1 my-1 h-px bg-border",
47
47
  "item": [
@@ -65,8 +65,8 @@ export default {
65
65
  "inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
66
66
  "transition-colors"
67
67
  ],
68
- "tagsItemDeleteIcon": "",
69
- "tagsInput": ""
68
+ "tagsItemDeleteIcon": "shrink-0",
69
+ "tagsInput": "flex-1 border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
70
70
  },
71
71
  "variants": {
72
72
  "buttonGroup": {
@@ -95,7 +95,8 @@ export default {
95
95
  "itemLeadingChipSize": "sm",
96
96
  "itemTrailingIcon": "size-4",
97
97
  "tagsItem": "text-[10px]/3",
98
- "tagsItemDeleteIcon": "size-3"
98
+ "tagsItemDeleteIcon": "size-3",
99
+ "empty": "p-1 text-xs"
99
100
  },
100
101
  "sm": {
101
102
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
@@ -112,7 +113,8 @@ export default {
112
113
  "itemLeadingChipSize": "sm",
113
114
  "itemTrailingIcon": "size-4",
114
115
  "tagsItem": "text-[10px]/3",
115
- "tagsItemDeleteIcon": "size-3"
116
+ "tagsItemDeleteIcon": "size-3",
117
+ "empty": "p-1.5 text-xs"
116
118
  },
117
119
  "md": {
118
120
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
@@ -129,7 +131,8 @@ export default {
129
131
  "itemLeadingChipSize": "md",
130
132
  "itemTrailingIcon": "size-5",
131
133
  "tagsItem": "text-xs",
132
- "tagsItemDeleteIcon": "size-3.5"
134
+ "tagsItemDeleteIcon": "size-3.5",
135
+ "empty": "p-1.5 text-sm"
133
136
  },
134
137
  "lg": {
135
138
  "base": "px-3 py-2 text-sm gap-2",
@@ -146,7 +149,8 @@ export default {
146
149
  "itemLeadingChipSize": "md",
147
150
  "itemTrailingIcon": "size-5",
148
151
  "tagsItem": "text-xs",
149
- "tagsItemDeleteIcon": "size-3.5"
152
+ "tagsItemDeleteIcon": "size-3.5",
153
+ "empty": "p-2 text-sm"
150
154
  },
151
155
  "xl": {
152
156
  "base": "px-3 py-2 text-base gap-2",
@@ -163,7 +167,8 @@ export default {
163
167
  "itemLeadingChipSize": "lg",
164
168
  "itemTrailingIcon": "size-6",
165
169
  "tagsItem": "text-sm",
166
- "tagsItemDeleteIcon": "size-4"
170
+ "tagsItemDeleteIcon": "size-4",
171
+ "empty": "p-2 text-base"
167
172
  }
168
173
  },
169
174
  "variant": {
@@ -199,8 +204,7 @@ export default {
199
204
  },
200
205
  "multiple": {
201
206
  "true": {
202
- "root": "flex-wrap",
203
- "tagsInput": "border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
207
+ "root": "flex-wrap"
204
208
  },
205
209
  "false": {
206
210
  "base": "w-full border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
@@ -208,6 +212,16 @@ export default {
208
212
  }
209
213
  },
210
214
  "compoundVariants": [
215
+ {
216
+ "variant": "soft" as typeof variant[number],
217
+ "multiple": true,
218
+ "class": "has-focus:bg-elevated"
219
+ },
220
+ {
221
+ "variant": "ghost" as typeof variant[number],
222
+ "multiple": true,
223
+ "class": "has-focus:bg-elevated"
224
+ },
211
225
  {
212
226
  "color": "primary" as typeof color[number],
213
227
  "multiple": true,
@@ -0,0 +1,310 @@
1
+ const size = [
2
+ "xs",
3
+ "sm",
4
+ "md",
5
+ "lg",
6
+ "xl"
7
+ ] as const
8
+
9
+ const variant = [
10
+ "outline",
11
+ "soft",
12
+ "subtle",
13
+ "ghost",
14
+ "none"
15
+ ] as const
16
+
17
+ const color = [
18
+ "primary",
19
+ "secondary",
20
+ "success",
21
+ "info",
22
+ "warning",
23
+ "error",
24
+ "neutral"
25
+ ] as const
26
+
27
+ export default {
28
+ "slots": {
29
+ "root": [
30
+ "relative inline-flex items-center",
31
+ "flex-wrap"
32
+ ],
33
+ "base": [
34
+ "rounded-md",
35
+ "transition-colors"
36
+ ],
37
+ "leading": "absolute inset-y-0 start-0 flex items-center",
38
+ "leadingIcon": "shrink-0 text-dimmed",
39
+ "leadingAvatar": "shrink-0",
40
+ "leadingAvatarSize": "",
41
+ "trailing": "absolute inset-y-0 end-0 flex items-center",
42
+ "trailingIcon": "shrink-0 text-dimmed",
43
+ "item": "px-1.5 py-0.5 rounded-sm font-medium inline-flex items-center gap-0.5 ring ring-inset ring-accented bg-elevated text-default data-disabled:cursor-not-allowed data-disabled:opacity-75 wrap-anywhere data-[state=\"active\"]:bg-accented",
44
+ "itemText": "",
45
+ "itemDelete": [
46
+ "inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
47
+ "transition-colors"
48
+ ],
49
+ "itemDeleteIcon": "shrink-0",
50
+ "input": "flex-1 border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
51
+ },
52
+ "variants": {
53
+ "buttonGroup": {
54
+ "horizontal": {
55
+ "root": "group has-focus-visible:z-[1]",
56
+ "base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
57
+ },
58
+ "vertical": {
59
+ "root": "group has-focus-visible:z-[1]",
60
+ "base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
61
+ }
62
+ },
63
+ "size": {
64
+ "xs": {
65
+ "base": "px-2 py-1 text-xs gap-1",
66
+ "leading": "ps-2",
67
+ "trailing": "pe-2",
68
+ "leadingIcon": "size-4",
69
+ "leadingAvatarSize": "3xs",
70
+ "trailingIcon": "size-4",
71
+ "item": "text-[10px]/3",
72
+ "itemDeleteIcon": "size-3"
73
+ },
74
+ "sm": {
75
+ "base": "px-2.5 py-1.5 text-xs gap-1.5",
76
+ "leading": "ps-2.5",
77
+ "trailing": "pe-2.5",
78
+ "leadingIcon": "size-4",
79
+ "leadingAvatarSize": "3xs",
80
+ "trailingIcon": "size-4",
81
+ "item": "text-[10px]/3",
82
+ "itemDeleteIcon": "size-3"
83
+ },
84
+ "md": {
85
+ "base": "px-2.5 py-1.5 text-sm gap-1.5",
86
+ "leading": "ps-2.5",
87
+ "trailing": "pe-2.5",
88
+ "leadingIcon": "size-5",
89
+ "leadingAvatarSize": "2xs",
90
+ "trailingIcon": "size-5",
91
+ "item": "text-xs",
92
+ "itemDeleteIcon": "size-3.5"
93
+ },
94
+ "lg": {
95
+ "base": "px-3 py-2 text-sm gap-2",
96
+ "leading": "ps-3",
97
+ "trailing": "pe-3",
98
+ "leadingIcon": "size-5",
99
+ "leadingAvatarSize": "2xs",
100
+ "trailingIcon": "size-5",
101
+ "item": "text-xs",
102
+ "itemDeleteIcon": "size-3.5"
103
+ },
104
+ "xl": {
105
+ "base": "px-3 py-2 text-base gap-2",
106
+ "leading": "ps-3",
107
+ "trailing": "pe-3",
108
+ "leadingIcon": "size-6",
109
+ "leadingAvatarSize": "xs",
110
+ "trailingIcon": "size-6",
111
+ "item": "text-sm",
112
+ "itemDeleteIcon": "size-4"
113
+ }
114
+ },
115
+ "variant": {
116
+ "outline": "text-highlighted bg-default ring ring-inset ring-accented",
117
+ "soft": "text-highlighted bg-elevated/50 hover:bg-elevated has-focus:bg-elevated disabled:bg-elevated/50",
118
+ "subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
119
+ "ghost": "text-highlighted bg-transparent hover:bg-elevated has-focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
120
+ "none": "text-highlighted bg-transparent"
121
+ },
122
+ "color": {
123
+ "primary": "",
124
+ "secondary": "",
125
+ "success": "",
126
+ "info": "",
127
+ "warning": "",
128
+ "error": "",
129
+ "neutral": ""
130
+ },
131
+ "leading": {
132
+ "true": ""
133
+ },
134
+ "trailing": {
135
+ "true": ""
136
+ },
137
+ "loading": {
138
+ "true": ""
139
+ },
140
+ "highlight": {
141
+ "true": ""
142
+ },
143
+ "type": {
144
+ "file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
145
+ }
146
+ },
147
+ "compoundVariants": [
148
+ {
149
+ "color": "primary" as typeof color[number],
150
+ "variant": [
151
+ "outline" as typeof variant[number],
152
+ "subtle" as typeof variant[number]
153
+ ],
154
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-primary"
155
+ },
156
+ {
157
+ "color": "secondary" as typeof color[number],
158
+ "variant": [
159
+ "outline" as typeof variant[number],
160
+ "subtle" as typeof variant[number]
161
+ ],
162
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-secondary"
163
+ },
164
+ {
165
+ "color": "success" as typeof color[number],
166
+ "variant": [
167
+ "outline" as typeof variant[number],
168
+ "subtle" as typeof variant[number]
169
+ ],
170
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-success"
171
+ },
172
+ {
173
+ "color": "info" as typeof color[number],
174
+ "variant": [
175
+ "outline" as typeof variant[number],
176
+ "subtle" as typeof variant[number]
177
+ ],
178
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-info"
179
+ },
180
+ {
181
+ "color": "warning" as typeof color[number],
182
+ "variant": [
183
+ "outline" as typeof variant[number],
184
+ "subtle" as typeof variant[number]
185
+ ],
186
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-warning"
187
+ },
188
+ {
189
+ "color": "error" as typeof color[number],
190
+ "variant": [
191
+ "outline" as typeof variant[number],
192
+ "subtle" as typeof variant[number]
193
+ ],
194
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-error"
195
+ },
196
+ {
197
+ "color": "primary" as typeof color[number],
198
+ "highlight": true,
199
+ "class": "ring ring-inset ring-primary"
200
+ },
201
+ {
202
+ "color": "secondary" as typeof color[number],
203
+ "highlight": true,
204
+ "class": "ring ring-inset ring-secondary"
205
+ },
206
+ {
207
+ "color": "success" as typeof color[number],
208
+ "highlight": true,
209
+ "class": "ring ring-inset ring-success"
210
+ },
211
+ {
212
+ "color": "info" as typeof color[number],
213
+ "highlight": true,
214
+ "class": "ring ring-inset ring-info"
215
+ },
216
+ {
217
+ "color": "warning" as typeof color[number],
218
+ "highlight": true,
219
+ "class": "ring ring-inset ring-warning"
220
+ },
221
+ {
222
+ "color": "error" as typeof color[number],
223
+ "highlight": true,
224
+ "class": "ring ring-inset ring-error"
225
+ },
226
+ {
227
+ "color": "neutral" as typeof color[number],
228
+ "variant": [
229
+ "outline" as typeof variant[number],
230
+ "subtle" as typeof variant[number]
231
+ ],
232
+ "class": "has-focus-visible:ring-2 has-focus-visible:ring-inset has-focus-visible:ring-inverted"
233
+ },
234
+ {
235
+ "color": "neutral" as typeof color[number],
236
+ "highlight": true,
237
+ "class": "ring ring-inset ring-inverted"
238
+ },
239
+ {
240
+ "leading": true,
241
+ "size": "xs" as typeof size[number],
242
+ "class": "ps-7"
243
+ },
244
+ {
245
+ "leading": true,
246
+ "size": "sm" as typeof size[number],
247
+ "class": "ps-8"
248
+ },
249
+ {
250
+ "leading": true,
251
+ "size": "md" as typeof size[number],
252
+ "class": "ps-9"
253
+ },
254
+ {
255
+ "leading": true,
256
+ "size": "lg" as typeof size[number],
257
+ "class": "ps-10"
258
+ },
259
+ {
260
+ "leading": true,
261
+ "size": "xl" as typeof size[number],
262
+ "class": "ps-11"
263
+ },
264
+ {
265
+ "trailing": true,
266
+ "size": "xs" as typeof size[number],
267
+ "class": "pe-7"
268
+ },
269
+ {
270
+ "trailing": true,
271
+ "size": "sm" as typeof size[number],
272
+ "class": "pe-8"
273
+ },
274
+ {
275
+ "trailing": true,
276
+ "size": "md" as typeof size[number],
277
+ "class": "pe-9"
278
+ },
279
+ {
280
+ "trailing": true,
281
+ "size": "lg" as typeof size[number],
282
+ "class": "pe-10"
283
+ },
284
+ {
285
+ "trailing": true,
286
+ "size": "xl" as typeof size[number],
287
+ "class": "pe-11"
288
+ },
289
+ {
290
+ "loading": true,
291
+ "leading": true,
292
+ "class": {
293
+ "leadingIcon": "animate-spin"
294
+ }
295
+ },
296
+ {
297
+ "loading": true,
298
+ "leading": false,
299
+ "trailing": true,
300
+ "class": {
301
+ "trailingIcon": "animate-spin"
302
+ }
303
+ }
304
+ ],
305
+ "defaultVariants": {
306
+ "size": "md" as typeof size[number],
307
+ "color": "primary" as typeof color[number],
308
+ "variant": "outline" as typeof variant[number]
309
+ }
310
+ }
package/.nuxt/ui/kbd.ts CHANGED
@@ -1,6 +1,17 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
1
11
  const variant = [
2
12
  "solid",
3
13
  "outline",
14
+ "soft",
4
15
  "subtle"
5
16
  ] as const
6
17
 
@@ -13,10 +24,20 @@ const size = [
13
24
  export default {
14
25
  "base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",
15
26
  "variants": {
27
+ "color": {
28
+ "primary": "",
29
+ "secondary": "",
30
+ "success": "",
31
+ "info": "",
32
+ "warning": "",
33
+ "error": "",
34
+ "neutral": ""
35
+ },
16
36
  "variant": {
17
- "solid": "bg-inverted text-inverted",
18
- "outline": "bg-default text-highlighted ring ring-inset ring-accented",
19
- "subtle": "bg-elevated text-default ring ring-inset ring-accented"
37
+ "solid": "",
38
+ "outline": "",
39
+ "soft": "",
40
+ "subtle": ""
20
41
  },
21
42
  "size": {
22
43
  "sm": "h-4 min-w-[16px] text-[10px]",
@@ -24,8 +45,151 @@ export default {
24
45
  "lg": "h-6 min-w-[24px] text-[12px]"
25
46
  }
26
47
  },
48
+ "compoundVariants": [
49
+ {
50
+ "color": "primary" as typeof color[number],
51
+ "variant": "solid" as typeof variant[number],
52
+ "class": "text-inverted bg-primary"
53
+ },
54
+ {
55
+ "color": "secondary" as typeof color[number],
56
+ "variant": "solid" as typeof variant[number],
57
+ "class": "text-inverted bg-secondary"
58
+ },
59
+ {
60
+ "color": "success" as typeof color[number],
61
+ "variant": "solid" as typeof variant[number],
62
+ "class": "text-inverted bg-success"
63
+ },
64
+ {
65
+ "color": "info" as typeof color[number],
66
+ "variant": "solid" as typeof variant[number],
67
+ "class": "text-inverted bg-info"
68
+ },
69
+ {
70
+ "color": "warning" as typeof color[number],
71
+ "variant": "solid" as typeof variant[number],
72
+ "class": "text-inverted bg-warning"
73
+ },
74
+ {
75
+ "color": "error" as typeof color[number],
76
+ "variant": "solid" as typeof variant[number],
77
+ "class": "text-inverted bg-error"
78
+ },
79
+ {
80
+ "color": "primary" as typeof color[number],
81
+ "variant": "outline" as typeof variant[number],
82
+ "class": "ring ring-inset ring-primary/50 text-primary"
83
+ },
84
+ {
85
+ "color": "secondary" as typeof color[number],
86
+ "variant": "outline" as typeof variant[number],
87
+ "class": "ring ring-inset ring-secondary/50 text-secondary"
88
+ },
89
+ {
90
+ "color": "success" as typeof color[number],
91
+ "variant": "outline" as typeof variant[number],
92
+ "class": "ring ring-inset ring-success/50 text-success"
93
+ },
94
+ {
95
+ "color": "info" as typeof color[number],
96
+ "variant": "outline" as typeof variant[number],
97
+ "class": "ring ring-inset ring-info/50 text-info"
98
+ },
99
+ {
100
+ "color": "warning" as typeof color[number],
101
+ "variant": "outline" as typeof variant[number],
102
+ "class": "ring ring-inset ring-warning/50 text-warning"
103
+ },
104
+ {
105
+ "color": "error" as typeof color[number],
106
+ "variant": "outline" as typeof variant[number],
107
+ "class": "ring ring-inset ring-error/50 text-error"
108
+ },
109
+ {
110
+ "color": "primary" as typeof color[number],
111
+ "variant": "soft" as typeof variant[number],
112
+ "class": "text-primary bg-primary/10"
113
+ },
114
+ {
115
+ "color": "secondary" as typeof color[number],
116
+ "variant": "soft" as typeof variant[number],
117
+ "class": "text-secondary bg-secondary/10"
118
+ },
119
+ {
120
+ "color": "success" as typeof color[number],
121
+ "variant": "soft" as typeof variant[number],
122
+ "class": "text-success bg-success/10"
123
+ },
124
+ {
125
+ "color": "info" as typeof color[number],
126
+ "variant": "soft" as typeof variant[number],
127
+ "class": "text-info bg-info/10"
128
+ },
129
+ {
130
+ "color": "warning" as typeof color[number],
131
+ "variant": "soft" as typeof variant[number],
132
+ "class": "text-warning bg-warning/10"
133
+ },
134
+ {
135
+ "color": "error" as typeof color[number],
136
+ "variant": "soft" as typeof variant[number],
137
+ "class": "text-error bg-error/10"
138
+ },
139
+ {
140
+ "color": "primary" as typeof color[number],
141
+ "variant": "subtle" as typeof variant[number],
142
+ "class": "text-primary ring ring-inset ring-primary/25 bg-primary/10"
143
+ },
144
+ {
145
+ "color": "secondary" as typeof color[number],
146
+ "variant": "subtle" as typeof variant[number],
147
+ "class": "text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"
148
+ },
149
+ {
150
+ "color": "success" as typeof color[number],
151
+ "variant": "subtle" as typeof variant[number],
152
+ "class": "text-success ring ring-inset ring-success/25 bg-success/10"
153
+ },
154
+ {
155
+ "color": "info" as typeof color[number],
156
+ "variant": "subtle" as typeof variant[number],
157
+ "class": "text-info ring ring-inset ring-info/25 bg-info/10"
158
+ },
159
+ {
160
+ "color": "warning" as typeof color[number],
161
+ "variant": "subtle" as typeof variant[number],
162
+ "class": "text-warning ring ring-inset ring-warning/25 bg-warning/10"
163
+ },
164
+ {
165
+ "color": "error" as typeof color[number],
166
+ "variant": "subtle" as typeof variant[number],
167
+ "class": "text-error ring ring-inset ring-error/25 bg-error/10"
168
+ },
169
+ {
170
+ "color": "neutral" as typeof color[number],
171
+ "variant": "solid" as typeof variant[number],
172
+ "class": "text-inverted bg-inverted"
173
+ },
174
+ {
175
+ "color": "neutral" as typeof color[number],
176
+ "variant": "outline" as typeof variant[number],
177
+ "class": "ring ring-inset ring-accented text-default bg-default"
178
+ },
179
+ {
180
+ "color": "neutral" as typeof color[number],
181
+ "variant": "soft" as typeof variant[number],
182
+ "class": "text-default bg-elevated"
183
+ },
184
+ {
185
+ "color": "neutral" as typeof color[number],
186
+ "variant": "subtle" as typeof variant[number],
187
+ "class": "ring ring-inset ring-accented text-default bg-elevated"
188
+ }
189
+ ],
27
190
  "defaultVariants": {
28
191
  "variant": "outline" as typeof variant[number],
192
+ "color": "neutral" as typeof color[number],
29
193
  "size": "md" as typeof size[number]
30
194
  }
31
195
  }
package/.nuxt/ui/modal.ts CHANGED
@@ -22,7 +22,7 @@ export default {
22
22
  "content": "inset-0"
23
23
  },
24
24
  "false": {
25
- "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-lg shadow-lg ring ring-default"
25
+ "content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-lg shadow-lg ring ring-default overflow-hidden"
26
26
  }
27
27
  }
28
28
  }
@@ -118,7 +118,7 @@ export default {
118
118
  "childList": "grid p-2",
119
119
  "childLink": "px-3 py-2 gap-2 before:inset-x-px before:inset-y-0",
120
120
  "childLinkLabel": "font-medium",
121
- "content": "absolute top-0 left-0 w-full"
121
+ "content": "absolute top-0 left-0 w-full max-h-[70vh] overflow-y-auto"
122
122
  },
123
123
  "vertical": {
124
124
  "root": "flex-col",
@@ -45,7 +45,7 @@ export default {
45
45
  ],
46
46
  "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
47
47
  "group": "p-1 isolate",
48
- "empty": "py-2 text-center text-sm text-muted",
48
+ "empty": "text-center text-muted",
49
49
  "label": "font-semibold text-highlighted",
50
50
  "separator": "-mx-1 my-1 h-px bg-border",
51
51
  "item": [
@@ -85,7 +85,8 @@ export default {
85
85
  "itemLeadingAvatarSize": "3xs",
86
86
  "itemLeadingChip": "size-4",
87
87
  "itemLeadingChipSize": "sm",
88
- "itemTrailingIcon": "size-4"
88
+ "itemTrailingIcon": "size-4",
89
+ "empty": "p-1 text-xs"
89
90
  },
90
91
  "sm": {
91
92
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
@@ -100,7 +101,8 @@ export default {
100
101
  "itemLeadingAvatarSize": "3xs",
101
102
  "itemLeadingChip": "size-4",
102
103
  "itemLeadingChipSize": "sm",
103
- "itemTrailingIcon": "size-4"
104
+ "itemTrailingIcon": "size-4",
105
+ "empty": "p-1.5 text-xs"
104
106
  },
105
107
  "md": {
106
108
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
@@ -115,7 +117,8 @@ export default {
115
117
  "itemLeadingAvatarSize": "2xs",
116
118
  "itemLeadingChip": "size-5",
117
119
  "itemLeadingChipSize": "md",
118
- "itemTrailingIcon": "size-5"
120
+ "itemTrailingIcon": "size-5",
121
+ "empty": "p-1.5 text-sm"
119
122
  },
120
123
  "lg": {
121
124
  "base": "px-3 py-2 text-sm gap-2",
@@ -130,7 +133,8 @@ export default {
130
133
  "itemLeadingAvatarSize": "2xs",
131
134
  "itemLeadingChip": "size-5",
132
135
  "itemLeadingChipSize": "md",
133
- "itemTrailingIcon": "size-5"
136
+ "itemTrailingIcon": "size-5",
137
+ "empty": "p-2 text-sm"
134
138
  },
135
139
  "xl": {
136
140
  "base": "px-3 py-2 text-base gap-2",
@@ -145,7 +149,8 @@ export default {
145
149
  "itemLeadingAvatarSize": "xs",
146
150
  "itemLeadingChip": "size-6",
147
151
  "itemLeadingChipSize": "lg",
148
- "itemTrailingIcon": "size-6"
152
+ "itemTrailingIcon": "size-6",
153
+ "empty": "p-2 text-base"
149
154
  }
150
155
  },
151
156
  "variant": {