@vite-hub/ui 0.7.0 → 0.9.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 (134) hide show
  1. package/README.md +68 -52
  2. package/dist/{Chat-BZxkf3Tt.js → Chat-DYQitDw8.js} +1 -1
  3. package/dist/{ChatMessage-Blr5F-zi.js → ChatMessage-DzjHnxMT.js} +1 -1
  4. package/dist/{CodeBlockTitle-DYrYpc1U.js → CodeBlockTitle-DX13mCTi.js} +1 -1
  5. package/dist/{CommentRow-ViZ7r8nr.js → CommentRow-DLW77qch.js} +2 -2
  6. package/dist/CopyButton-D-g6PWc8.js +188 -0
  7. package/dist/{Markdown-_w7feFzl.js → Markdown-3-Tvy5Kl.js} +1 -1
  8. package/dist/{MarkdownCodeBlock-B4j7x0H6.js → MarkdownCodeBlock-CALGW0iw.js} +1 -1
  9. package/dist/{MessageParts-FVyYZNsn.js → MessageParts-BGSctG7Z.js} +1 -1
  10. package/dist/{MorphText-CYTndbyp.js → MorphText-DAHAswWX.js} +1 -1
  11. package/dist/{RollNumber-Bo2tzfAp.js → RollNumber-CkdLiy2i.js} +1 -1
  12. package/dist/{motion-dPwxx3Wk.js → SwapIcon-Bjkk7WlZ.js} +2 -11
  13. package/dist/{agent-session-DhlTKCQG.js → agent-session-D291hyRk.js} +1 -1
  14. package/dist/{avatar-stack-nQErr0qn.js → avatar-stack-Bi4CJPuU.js} +1 -1
  15. package/dist/{chat-session-hjZRL6jY.js → chat-session-Bl-x4c9b.js} +1 -1
  16. package/dist/{comment-composer-BUt6vbnr.js → comment-composer-BtYrIT5W.js} +14 -19
  17. package/dist/{comment-composer-CIsbz-78.d.ts → comment-composer-PmERtNNb.d.ts} +3 -3
  18. package/dist/{comment-layer-BlVNORgj.d.ts → comment-layer-BgQz1ixK.d.ts} +3 -3
  19. package/dist/{comment-layer-Ck2H24oJ.js → comment-layer-T8hN_7bN.js} +11 -12
  20. package/dist/{comment-panel-Djx-KxVa.d.ts → comment-panel-Vo3m6rHB.d.ts} +2 -2
  21. package/dist/{comment-selection-bar-CxPkJxVl.js → comment-selection-bar-BMFTtI3V.js} +2 -4
  22. package/dist/{comment-selection-bar-CbOEI98x.d.ts → comment-selection-bar-B_bchB2O.d.ts} +1 -1
  23. package/dist/{comment-thread-C_Q4UDaV.js → comment-thread-CAexk1r7.js} +78 -38
  24. package/dist/{comment-thread-X6gYMNay.d.ts → comment-thread-Cp9k80uv.d.ts} +50 -2
  25. package/dist/{comments-B1itauwb.d.ts → comments-BBNiQTxK.d.ts} +12 -14
  26. package/dist/{components-CM5mZe0a.js → components-D44u1fsy.js} +22 -47
  27. package/dist/{config-CFwvNt4Y.js → config-7CiYbXk6.js} +9 -6
  28. package/dist/{config-JmsTI7gs.d.ts → config-BYLPA0Ts.d.ts} +8 -6
  29. package/dist/{drop-field-DKpYQ3tO.js → drop-field-BkoJOWR9.js} +1 -1
  30. package/dist/{editor-DJPUs1nt.js → editor-CE_q2Yzb.js} +89 -49
  31. package/dist/{editor-BsOTjnnN.d.ts → editor-DZxaa6vs.d.ts} +8 -7
  32. package/dist/editor.d.ts +2 -2
  33. package/dist/editor.js +2 -2
  34. package/dist/{hold-to-delete-cOPqQ9FJ.js → hold-to-delete-pyrlKzk0.js} +1 -1
  35. package/dist/{hold-to-delete-CcQbfiQx.js → hold-to-delete-sscThmPW.js} +30 -3
  36. package/dist/icon-component-ofUeRW4L.js +4 -0
  37. package/dist/{index-9Z6Gwtnf.d.ts → index-BlQsW8ZZ.d.ts} +1 -1
  38. package/dist/index.d.ts +32 -39
  39. package/dist/index.js +25 -26
  40. package/dist/{markdown-DDyOdYq_.js → markdown-CqVyNG-h.js} +2 -2
  41. package/dist/markdown-editor.d.ts +1 -1
  42. package/dist/markdown-editor.js +4 -4
  43. package/dist/markdown.js +1 -1
  44. package/dist/motion/core.d.ts +1 -1
  45. package/dist/motion/core.js +4 -4
  46. package/dist/{motion-itHFtXwA.js → motion-C8P5yWaA.js} +1 -1
  47. package/dist/{motion-core-BfIefToe.d.ts → motion-core-BEwxN7Il.d.ts} +4 -2
  48. package/dist/{motion-core-BdTfxAhY.js → motion-core-pkL0M4Y1.js} +57 -115
  49. package/dist/{motion-list-BBbz93WT.js → motion-list-DDVUyVYa.js} +1 -1
  50. package/dist/motion.d.ts +1 -1
  51. package/dist/motion.js +5 -5
  52. package/dist/nuxt.d.ts +2 -4
  53. package/dist/nuxt.js +1 -34
  54. package/dist/parts/components/agent-session.js +1 -1
  55. package/dist/parts/components/avatar-stack.js +1 -1
  56. package/dist/parts/components/chat-message.js +1 -1
  57. package/dist/parts/components/chat-session.js +1 -1
  58. package/dist/parts/components/chat.js +1 -1
  59. package/dist/parts/components/code-block.js +1 -1
  60. package/dist/parts/components/comment-composer.d.ts +1 -1
  61. package/dist/parts/components/comment-composer.js +1 -1
  62. package/dist/parts/components/comment-layer.d.ts +1 -1
  63. package/dist/parts/components/comment-layer.js +1 -1
  64. package/dist/parts/components/comment-panel.d.ts +1 -1
  65. package/dist/parts/components/comment-panel.js +6 -7
  66. package/dist/parts/components/comment-selection-bar.d.ts +1 -1
  67. package/dist/parts/components/comment-selection-bar.js +1 -1
  68. package/dist/parts/components/comment-thread.d.ts +1 -1
  69. package/dist/parts/components/comment-thread.js +1 -1
  70. package/dist/parts/components/comments.d.ts +8 -8
  71. package/dist/parts/components/comments.js +5 -6
  72. package/dist/parts/components/copy-button.js +1 -3
  73. package/dist/parts/components/drop-field.js +1 -1
  74. package/dist/parts/components/hold-to-delete.js +1 -1
  75. package/dist/parts/components/markdown.js +1 -1
  76. package/dist/parts/components/message-parts.js +1 -1
  77. package/dist/parts/components/motion-list.d.ts +1 -1
  78. package/dist/parts/components/motion-list.js +1 -1
  79. package/dist/parts/components/motion.d.ts +2 -2
  80. package/dist/parts/components/motion.js +12 -3
  81. package/dist/parts/components/progress.js +1 -1
  82. package/dist/parts/components/prompt-input.d.ts +1 -1
  83. package/dist/parts/components/sync-status.js +1 -1
  84. package/dist/parts/playground/share.js +0 -1
  85. package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
  86. package/dist/parts/workspace/browser-support-notice.js +4 -4
  87. package/dist/parts/workspace/codemirror.js +0 -4
  88. package/dist/parts/workspace/connect-panel.js +2 -3
  89. package/dist/parts/workspace/file-icons.js +0 -8
  90. package/dist/parts/workspace/runners/web-container.js +2 -2
  91. package/dist/parts/workspace/workspace-bar.d.ts +1 -1
  92. package/dist/parts/workspace/workspace-bar.js +2 -3
  93. package/dist/parts/workspace/workspace-boot-status.js +1 -1
  94. package/dist/parts/workspace/workspace-editor-head.js +2 -3
  95. package/dist/parts/workspace/workspace-examples.js +4 -5
  96. package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
  97. package/dist/parts/workspace/workspace-guide.js +3 -4
  98. package/dist/parts/workspace/workspace-preview.d.ts +1 -1
  99. package/dist/parts/workspace/workspace-preview.js +2 -4
  100. package/dist/parts/workspace/workspace-shell.d.ts +1 -1
  101. package/dist/parts/workspace/workspace-shell.js +2 -7
  102. package/dist/parts/workspace/workspace-sidebar.d.ts +1 -1
  103. package/dist/parts/workspace/workspace-sidebar.js +5 -6
  104. package/dist/parts/workspace/workspace-start.js +2 -3
  105. package/dist/parts/workspace/workspace-steps.js +6 -7
  106. package/dist/parts/workspace/workspace-terminal.js +0 -6
  107. package/dist/parts/workspace/workspace.d.ts +3 -3
  108. package/dist/parts/workspace/workspace.js +15 -18
  109. package/dist/{progress-D_9sG648.js → progress-D7CyDkLW.js} +1 -1
  110. package/dist/{prompt-input-j4OFTF5p.d.ts → prompt-input-DZM3E6WP.d.ts} +2 -2
  111. package/dist/{ring-DoL9jivj.js → ring-C5lNUEAG.js} +1 -1
  112. package/dist/runtime/nuxt-plugin.js +27 -1
  113. package/dist/{stand-ins-CuKM1UH1.js → stand-ins-C2oSoNwV.js} +29 -84
  114. package/dist/styles.css +37 -21
  115. package/dist/{sync-status-BRroyOre.js → sync-status-D27Qt7mk.js} +1 -1
  116. package/dist/theme-focus-ring.css +1 -1
  117. package/dist/{tween-lVMRCUEv.js → tween-DGAmrS3r.js} +4 -2
  118. package/dist/{types-BF_U0tgp.d.ts → types-CMU8Vmew.d.ts} +2 -5
  119. package/dist/{vue-DdYvDVOr.js → vue-D70TZJhJ.js} +1 -1
  120. package/dist/{workspace-boot-status-CyGlJS06.js → workspace-boot-status-BDkpubHd.js} +0 -1
  121. package/dist/{workspace-shell-B4A7CINd.d.ts → workspace-shell-CwEQT_1s.d.ts} +1 -1
  122. package/dist/workspace.d.ts +1 -1
  123. package/dist/workspace.js +1 -1
  124. package/package.json +10 -18
  125. package/dist/CopyButton-Dtg_Oc9_.js +0 -115
  126. package/dist/announce-CJNXaYbT.js +0 -29
  127. package/dist/comment-send.css +0 -267
  128. package/dist/comments-BtD28xEn.js +0 -390
  129. package/dist/nuxt-ui-CPdiTwwD.js +0 -22
  130. package/dist/theme.css +0 -379
  131. package/dist/theme.d.ts +0 -410
  132. package/dist/theme.js +0 -290
  133. package/dist/ui-components-CKQAPI-W.js +0 -7
  134. package/dist/use-copy-DK1SSZkh.js +0 -66
package/dist/theme.d.ts DELETED
@@ -1,410 +0,0 @@
1
- /**
2
- * The ViteHub design system as Nuxt UI app config: Lucide icons, black and white actions, Geist radii, underline tabs,
3
- * and the layered floating surfaces. Pair it with `@vite-hub/ui/theme.css`, which holds the tokens and the one focus
4
- * rule. An app passes it as `appConfig.ui` and merges its own slots over it with `defu`.
5
- */
6
- export declare const vitehubTheme: {
7
- colors: {
8
- error: string;
9
- info: string;
10
- neutral: string;
11
- primary: string;
12
- success: string;
13
- warning: string;
14
- };
15
- icons: {
16
- arrowDown: string;
17
- arrowLeft: string;
18
- arrowRight: string;
19
- arrowUp: string;
20
- caution: string;
21
- check: string;
22
- chevronDoubleLeft: string;
23
- chevronDoubleRight: string;
24
- chevronDown: string;
25
- chevronLeft: string;
26
- chevronRight: string;
27
- chevronUp: string;
28
- close: string;
29
- copy: string;
30
- copyCheck: string;
31
- dark: string;
32
- drag: string;
33
- ellipsis: string;
34
- error: string;
35
- external: string;
36
- eye: string;
37
- eyeOff: string;
38
- file: string;
39
- folder: string;
40
- folderOpen: string;
41
- hash: string;
42
- info: string;
43
- light: string;
44
- loading: string;
45
- menu: string;
46
- minus: string;
47
- panelClose: string;
48
- panelOpen: string;
49
- plus: string;
50
- reload: string;
51
- search: string;
52
- stop: string;
53
- star: string;
54
- success: string;
55
- system: string;
56
- tip: string;
57
- upload: string;
58
- warning: string;
59
- };
60
- alert: {
61
- defaultVariants: {
62
- color: string;
63
- variant: string;
64
- };
65
- slots: {
66
- root: string;
67
- title: string;
68
- description: string;
69
- icon: string;
70
- };
71
- };
72
- badge: {
73
- defaultVariants: {
74
- color: string;
75
- variant: string;
76
- };
77
- slots: {
78
- base: string;
79
- };
80
- variants: {
81
- size: {
82
- xs: {
83
- base: string;
84
- };
85
- sm: {
86
- base: string;
87
- };
88
- };
89
- };
90
- };
91
- kbd: {
92
- variants: {
93
- size: {
94
- sm: string;
95
- md: string;
96
- };
97
- };
98
- };
99
- button: {
100
- defaultVariants: {
101
- color: string;
102
- size: string;
103
- };
104
- slots: {
105
- base: string;
106
- leadingIcon: string;
107
- trailingIcon: string;
108
- };
109
- compoundVariants: {
110
- variant: string;
111
- class: string;
112
- }[];
113
- };
114
- card: {
115
- slots: {
116
- root: string;
117
- header: string;
118
- body: string;
119
- footer: string;
120
- };
121
- };
122
- dropdownMenu: {
123
- slots: {
124
- content: string;
125
- label: string;
126
- itemDescription: string;
127
- };
128
- };
129
- contextMenu: {
130
- slots: {
131
- content: string;
132
- label: string;
133
- itemDescription: string;
134
- };
135
- };
136
- editorSuggestionMenu: {
137
- slots: {
138
- content: string;
139
- };
140
- };
141
- empty: {
142
- slots: {
143
- root: string;
144
- title: string;
145
- description: string;
146
- actions: string;
147
- };
148
- };
149
- input: {
150
- defaultVariants: {
151
- size: string;
152
- };
153
- compoundVariants: ({
154
- variant: string[];
155
- class: string;
156
- fixed?: undefined;
157
- size?: undefined;
158
- } | {
159
- fixed: boolean;
160
- size: string;
161
- class: string;
162
- variant?: undefined;
163
- })[];
164
- slots: {
165
- base: string;
166
- leadingIcon: string;
167
- trailingIcon: string;
168
- };
169
- };
170
- inputMenu: {
171
- defaultVariants: {
172
- size: string;
173
- };
174
- compoundVariants: ({
175
- variant: string[];
176
- class: string;
177
- fixed?: undefined;
178
- size?: undefined;
179
- } | {
180
- fixed: boolean;
181
- size: string;
182
- class: string;
183
- variant?: undefined;
184
- })[];
185
- slots: {
186
- base: string;
187
- content: string;
188
- };
189
- };
190
- inputNumber: {
191
- defaultVariants: {
192
- size: string;
193
- };
194
- compoundVariants: ({
195
- variant: string[];
196
- class: string;
197
- fixed?: undefined;
198
- size?: undefined;
199
- } | {
200
- fixed: boolean;
201
- size: string;
202
- class: string;
203
- variant?: undefined;
204
- })[];
205
- slots: {
206
- base: string;
207
- };
208
- };
209
- inputTags: {
210
- defaultVariants: {
211
- size: string;
212
- };
213
- compoundVariants: ({
214
- variant: string[];
215
- class: {
216
- root: string;
217
- };
218
- fixed?: undefined;
219
- size?: undefined;
220
- } | {
221
- fixed: boolean;
222
- size: string;
223
- class: {
224
- root: string;
225
- };
226
- variant?: undefined;
227
- })[];
228
- slots: {
229
- root: string;
230
- };
231
- };
232
- modal: {
233
- slots: {
234
- content: string;
235
- header: string;
236
- body: string;
237
- footer: string;
238
- close: string;
239
- };
240
- variants: {
241
- overlay: {
242
- true: {
243
- overlay: string;
244
- };
245
- };
246
- transition: {
247
- true: {
248
- overlay: string;
249
- content: string;
250
- };
251
- };
252
- fullscreen: {
253
- false: {
254
- content: string;
255
- };
256
- };
257
- };
258
- };
259
- pageCard: {
260
- slots: {
261
- root: string;
262
- container: string;
263
- leading: string;
264
- leadingIcon: string;
265
- title: string;
266
- description: string;
267
- };
268
- };
269
- popover: {
270
- slots: {
271
- content: string;
272
- };
273
- };
274
- select: {
275
- defaultVariants: {
276
- size: string;
277
- };
278
- compoundVariants: ({
279
- variant: string[];
280
- class: string;
281
- fixed?: undefined;
282
- size?: undefined;
283
- } | {
284
- fixed: boolean;
285
- size: string;
286
- class: string;
287
- variant?: undefined;
288
- })[];
289
- slots: {
290
- base: string;
291
- leadingIcon: string;
292
- trailingIcon: string;
293
- itemLeadingIcon: string;
294
- itemTrailingIcon: string;
295
- content: string;
296
- };
297
- variants: {
298
- position: {
299
- popper: {
300
- content: string;
301
- };
302
- };
303
- };
304
- };
305
- selectMenu: {
306
- defaultVariants: {
307
- size: string;
308
- };
309
- compoundVariants: ({
310
- variant: string[];
311
- class: string;
312
- fixed?: undefined;
313
- size?: undefined;
314
- } | {
315
- fixed: boolean;
316
- size: string;
317
- class: string;
318
- variant?: undefined;
319
- })[];
320
- slots: {
321
- base: string;
322
- content: string;
323
- };
324
- };
325
- slideover: {
326
- slots: {
327
- content: string;
328
- header: string;
329
- body: string;
330
- footer: string;
331
- close: string;
332
- };
333
- variants: {
334
- transition: {
335
- true: {
336
- overlay: string;
337
- };
338
- };
339
- };
340
- compoundVariants: {
341
- transition: boolean;
342
- class: {
343
- content: string;
344
- };
345
- }[];
346
- };
347
- switch: {
348
- slots: {
349
- thumb: string;
350
- };
351
- };
352
- table: {
353
- slots: {
354
- th: string;
355
- td: string;
356
- };
357
- };
358
- tabs: {
359
- defaultVariants: {
360
- color: string;
361
- size: string;
362
- variant: string;
363
- };
364
- slots: {
365
- list: string;
366
- trigger: string;
367
- indicator: string;
368
- };
369
- variants: {
370
- size: {
371
- sm: {
372
- trigger: string;
373
- leadingIcon: string;
374
- };
375
- md: {
376
- trigger: string;
377
- leadingIcon: string;
378
- };
379
- };
380
- };
381
- };
382
- textarea: {
383
- defaultVariants: {
384
- size: string;
385
- };
386
- compoundVariants: {
387
- variant: string[];
388
- class: string;
389
- }[];
390
- slots: {
391
- base: string;
392
- };
393
- };
394
- toast: {
395
- slots: {
396
- root: string;
397
- };
398
- };
399
- toaster: {
400
- slots: {
401
- base: string;
402
- };
403
- };
404
- tooltip: {
405
- slots: {
406
- content: string;
407
- };
408
- };
409
- };
410
- export type ViteHubTheme = typeof vitehubTheme;
package/dist/theme.js DELETED
@@ -1,290 +0,0 @@
1
- // src/theme.ts
2
- const dialogSlots = {
3
- content: "divide-y-0",
4
- header: "min-h-0 shrink-0 px-4 pt-4 pb-2 last:pb-4 sm:px-6 sm:pt-6 sm:pb-3 sm:last:pb-6",
5
- body: "px-4 py-1 last:pb-4 sm:px-6 sm:py-1 sm:last:pb-6",
6
- footer: "justify-end gap-2 px-4 pt-3 pb-4 sm:px-6 sm:pt-5 sm:pb-6",
7
- close: "static ms-auto -me-1 -mt-1 shrink-0 self-start"
8
- };
9
- /**
10
- * The ViteHub design system as Nuxt UI app config: Lucide icons, black and white actions, Geist radii, underline tabs,
11
- * and the layered floating surfaces. Pair it with `@vite-hub/ui/theme.css`, which holds the tokens and the one focus
12
- * rule. An app passes it as `appConfig.ui` and merges its own slots over it with `defu`.
13
- */
14
- const vitehubTheme = {
15
- colors: {
16
- error: "red",
17
- info: "sky",
18
- neutral: "neutral",
19
- primary: "neutral",
20
- success: "emerald",
21
- warning: "amber"
22
- },
23
- icons: {
24
- arrowDown: "i-lucide-arrow-down",
25
- arrowLeft: "i-lucide-arrow-left",
26
- arrowRight: "i-lucide-arrow-right",
27
- arrowUp: "i-lucide-arrow-up",
28
- caution: "i-lucide-triangle-alert",
29
- check: "i-lucide-check",
30
- chevronDoubleLeft: "i-lucide-chevrons-left",
31
- chevronDoubleRight: "i-lucide-chevrons-right",
32
- chevronDown: "i-lucide-chevron-down",
33
- chevronLeft: "i-lucide-chevron-left",
34
- chevronRight: "i-lucide-chevron-right",
35
- chevronUp: "i-lucide-chevron-up",
36
- close: "i-lucide-x",
37
- copy: "i-lucide-copy",
38
- copyCheck: "i-lucide-check",
39
- dark: "i-lucide-moon",
40
- drag: "i-lucide-grip-vertical",
41
- ellipsis: "i-lucide-ellipsis",
42
- error: "i-lucide-circle-alert",
43
- external: "i-lucide-arrow-up-right",
44
- eye: "i-lucide-eye",
45
- eyeOff: "i-lucide-eye-off",
46
- file: "i-lucide-file",
47
- folder: "i-lucide-folder",
48
- folderOpen: "i-lucide-folder-open",
49
- hash: "i-lucide-hash",
50
- info: "i-lucide-info",
51
- light: "i-lucide-sun",
52
- loading: "i-lucide-loader-circle",
53
- menu: "i-lucide-menu",
54
- minus: "i-lucide-minus",
55
- panelClose: "i-lucide-panel-left-close",
56
- panelOpen: "i-lucide-panel-left-open",
57
- plus: "i-lucide-plus",
58
- reload: "i-lucide-refresh-cw",
59
- search: "i-lucide-search",
60
- stop: "i-lucide-square",
61
- star: "i-lucide-star",
62
- success: "i-lucide-circle-check",
63
- system: "i-lucide-monitor",
64
- tip: "i-lucide-lightbulb",
65
- upload: "i-lucide-upload",
66
- warning: "i-lucide-triangle-alert"
67
- },
68
- alert: {
69
- defaultVariants: {
70
- color: "neutral",
71
- variant: "subtle"
72
- },
73
- slots: {
74
- root: "rounded-lg p-3 gap-2",
75
- title: "text-[13px] font-medium",
76
- description: "text-xs leading-5 opacity-100",
77
- icon: "size-4 mt-0.5"
78
- }
79
- },
80
- badge: {
81
- defaultVariants: {
82
- color: "neutral",
83
- variant: "subtle"
84
- },
85
- slots: { base: "font-medium" },
86
- variants: { size: {
87
- xs: { base: "px-1.5 py-0 text-xs/4" },
88
- sm: { base: "px-1.5 py-0.5 text-xs/4" }
89
- } }
90
- },
91
- kbd: { variants: { size: {
92
- sm: "text-xs",
93
- md: "text-xs"
94
- } } },
95
- button: {
96
- defaultVariants: {
97
- color: "neutral",
98
- size: "sm"
99
- },
100
- slots: {
101
- base: "rounded-md font-medium disabled:opacity-50 aria-disabled:opacity-50 transition-[color,background-color,box-shadow] duration-150 ease-out motion-reduce:transition-none",
102
- leadingIcon: "size-4 opacity-80",
103
- trailingIcon: "size-3.5 opacity-75"
104
- },
105
- compoundVariants: [{
106
- variant: "ghost",
107
- class: "aria-pressed:bg-elevated aria-pressed:text-highlighted"
108
- }]
109
- },
110
- card: { slots: {
111
- root: "rounded-lg",
112
- header: "px-4 py-3 sm:px-4",
113
- body: "p-4 sm:p-4",
114
- footer: "px-4 py-3 sm:px-4"
115
- } },
116
- dropdownMenu: { slots: {
117
- content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none",
118
- label: "text-xs font-medium text-muted",
119
- itemDescription: "text-clip whitespace-normal"
120
- } },
121
- contextMenu: { slots: {
122
- content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none",
123
- label: "text-xs font-medium text-muted",
124
- itemDescription: "text-clip whitespace-normal"
125
- } },
126
- editorSuggestionMenu: { slots: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" } },
127
- empty: { slots: {
128
- root: "gap-3 p-5",
129
- title: "text-sm font-medium",
130
- description: "text-xs leading-5",
131
- actions: "mt-1"
132
- } },
133
- input: {
134
- defaultVariants: { size: "sm" },
135
- compoundVariants: [{
136
- variant: ["outline", "subtle"],
137
- class: "focus-visible:ring-2"
138
- }, {
139
- fixed: false,
140
- size: "sm",
141
- class: "md:text-sm/4"
142
- }],
143
- slots: {
144
- base: "pointer-coarse:text-base",
145
- leadingIcon: "size-4 opacity-80",
146
- trailingIcon: "size-3.5 opacity-75"
147
- }
148
- },
149
- inputMenu: {
150
- defaultVariants: { size: "sm" },
151
- compoundVariants: [{
152
- variant: ["outline", "subtle"],
153
- class: "focus-visible:ring-2"
154
- }, {
155
- fixed: false,
156
- size: "sm",
157
- class: "md:text-sm/4"
158
- }],
159
- slots: {
160
- base: "pointer-coarse:text-base",
161
- content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none"
162
- }
163
- },
164
- inputNumber: {
165
- defaultVariants: { size: "sm" },
166
- compoundVariants: [{
167
- variant: ["outline", "subtle"],
168
- class: "focus-visible:ring-2"
169
- }, {
170
- fixed: false,
171
- size: "sm",
172
- class: "md:text-sm/4"
173
- }],
174
- slots: { base: "pointer-coarse:text-base" }
175
- },
176
- inputTags: {
177
- defaultVariants: { size: "sm" },
178
- compoundVariants: [{
179
- variant: ["outline", "subtle"],
180
- class: { root: "has-focus-visible:ring-2" }
181
- }, {
182
- fixed: false,
183
- size: "sm",
184
- class: { root: "md:text-sm/4" }
185
- }],
186
- slots: { root: "pointer-coarse:text-base" }
187
- },
188
- modal: {
189
- slots: { ...dialogSlots },
190
- variants: {
191
- overlay: { true: { overlay: "bg-black/40 dark:bg-black/60" } },
192
- transition: { true: {
193
- overlay: "data-[state=open]:animate-none data-[state=closed]:animate-none",
194
- content: "data-[state=open]:animate-none data-[state=closed]:animate-none"
195
- } },
196
- fullscreen: { false: { content: "max-w-md rounded-xl ring-0 shadow-(--vh-shadow-dialog)" } }
197
- }
198
- },
199
- pageCard: { slots: {
200
- root: "rounded-lg",
201
- container: "gap-0 p-4 sm:p-4",
202
- leading: "mb-3 size-8 justify-center rounded-md bg-elevated/60",
203
- leadingIcon: "size-4 text-muted opacity-80",
204
- title: "text-sm font-medium",
205
- description: "mt-1 text-xs/5 text-muted"
206
- } },
207
- popover: { slots: { content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none" } },
208
- select: {
209
- defaultVariants: { size: "sm" },
210
- compoundVariants: [{
211
- variant: ["outline", "subtle"],
212
- class: "focus-visible:ring-2"
213
- }, {
214
- fixed: false,
215
- size: "sm",
216
- class: "md:text-sm/4"
217
- }],
218
- slots: {
219
- base: "pointer-coarse:text-base",
220
- leadingIcon: "size-4 opacity-80",
221
- trailingIcon: "size-3.5 opacity-75",
222
- itemLeadingIcon: "size-4 opacity-80",
223
- itemTrailingIcon: "size-3.5 opacity-75",
224
- content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md"
225
- },
226
- variants: { position: { popper: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" } } }
227
- },
228
- selectMenu: {
229
- defaultVariants: { size: "sm" },
230
- compoundVariants: [{
231
- variant: ["outline", "subtle"],
232
- class: "focus-visible:ring-2"
233
- }, {
234
- fixed: false,
235
- size: "sm",
236
- class: "md:text-sm/4"
237
- }],
238
- slots: {
239
- base: "pointer-coarse:text-base",
240
- content: "rounded-xl ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=open]:animate-none data-[state=closed]:animate-none"
241
- }
242
- },
243
- slideover: {
244
- slots: { ...dialogSlots },
245
- variants: { transition: { true: { overlay: "data-[state=open]:animate-none data-[state=closed]:animate-none" } } },
246
- compoundVariants: [{
247
- transition: true,
248
- class: { content: "data-[state=open]:animate-none data-[state=closed]:animate-none" }
249
- }]
250
- },
251
- switch: { slots: { thumb: "transition-none data-[state=unchecked]:scale-75" } },
252
- table: { slots: {
253
- th: "h-9 px-2.5 py-2 text-xs font-medium text-muted",
254
- td: "h-9 px-2.5 py-2 text-[13px] tabular-nums text-toned"
255
- } },
256
- tabs: {
257
- defaultVariants: {
258
- color: "neutral",
259
- size: "sm",
260
- variant: "link"
261
- },
262
- slots: {
263
- list: "gap-1",
264
- trigger: "data-[state=inactive]:text-muted data-[state=active]:text-highlighted hover:data-[state=inactive]:not-disabled:text-highlighted",
265
- indicator: "bg-(--ui-text-highlighted) transition-none"
266
- },
267
- variants: { size: {
268
- sm: {
269
- trigger: "h-8 px-2.5 py-0 text-sm gap-1.5",
270
- leadingIcon: "size-4"
271
- },
272
- md: {
273
- trigger: "h-9 px-3 py-0 text-sm gap-1.5",
274
- leadingIcon: "size-4"
275
- }
276
- } }
277
- },
278
- textarea: {
279
- defaultVariants: { size: "sm" },
280
- compoundVariants: [{
281
- variant: ["outline", "subtle"],
282
- class: "focus-visible:ring-2"
283
- }],
284
- slots: { base: "pointer-coarse:text-base" }
285
- },
286
- toast: { slots: { root: "rounded-xl ring-0 shadow-(--vh-shadow-floating)" } },
287
- toaster: { slots: { base: "animate-none! transition-none" } },
288
- tooltip: { slots: { content: "rounded-md ring-0 bg-(--vh-floating) shadow-(--vh-shadow-floating) backdrop-blur-md data-[state=delayed-open]:animate-none data-[state=instant-open]:animate-none data-[state=closed]:animate-none" } }
289
- };
290
- export { vitehubTheme };
@@ -1,7 +0,0 @@
1
- import { getCurrentInstance, inject } from "vue";
2
- // src/internal/ui-components.ts
3
- const uiComponentsKey = Symbol("ViteHubUIComponents");
4
- function useUIComponentOverride(name) {
5
- return inject(uiComponentsKey, void 0)?.[name] ?? getCurrentInstance()?.appContext.components[name];
6
- }
7
- export { useUIComponentOverride as n, uiComponentsKey as t };