@vite-hub/ui 0.4.1 → 0.5.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 (175) hide show
  1. package/README.md +102 -76
  2. package/dist/announce-Cy_Tn9wW.js +32 -0
  3. package/dist/{avatar-stack-DPRFuezh.d.ts → avatar-stack-DXmCQhxd.d.ts} +1 -1
  4. package/dist/{comment-composer-jYv2ULNP.js → comment-composer-D7ZytyER.js} +257 -10
  5. package/dist/{comment-composer-fINL5bxo.d.ts → comment-composer-DvKMTrAi.d.ts} +4 -4
  6. package/dist/{comment-layer-C_sbPIR5.d.ts → comment-layer-GTsLdABl.d.ts} +4 -4
  7. package/dist/{comment-list-BcSaLngS.d.ts → comment-list-BI96empx.d.ts} +2 -2
  8. package/dist/comment-marks.css +18 -22
  9. package/dist/{comment-panel-CfvdRUMX.d.ts → comment-panel-CsKWTms_.d.ts} +2 -2
  10. package/dist/{comment-pin-DHOdRvUw.d.ts → comment-pin-CvwgRSDR.d.ts} +1 -1
  11. package/dist/{comment-row-Bn3nr8l5.js → comment-row-JmTC0uXr.js} +1 -1
  12. package/dist/comment-send-7bg4NEEM.js +277 -0
  13. package/dist/comment-send-C45dHC22.d.ts +25 -0
  14. package/dist/comment-send.css +267 -0
  15. package/dist/comment-thread-B_Sc2QX6.js +797 -0
  16. package/dist/{comment-thread-DKJjmWN0.d.ts → comment-thread-C6U-bsK_.d.ts} +4 -4
  17. package/dist/{comments-D0d26ghV.js → comments-B88zg9gC.js} +1 -1
  18. package/dist/{comments-context-C2lOZyQ5.js → comments-context-DhbIdYQ1.js} +2 -1
  19. package/dist/{config-Dk67emQt.js → config-B1u7zqMB.js} +8 -1
  20. package/dist/{config-DgxBW013.d.ts → config-pHazYdq6.d.ts} +11 -0
  21. package/dist/drop-field-3CDRFFRm.js +163 -0
  22. package/dist/{editor-C_wt4RRV.js → editor-BHYGLgty.js} +42 -3
  23. package/dist/effects-Ql6VzCRa.js +2971 -0
  24. package/dist/headless.d.ts +1 -1
  25. package/dist/headless.js +1 -1
  26. package/dist/hold-to-delete-DjWzRDyY.d.ts +51 -0
  27. package/dist/hold-to-delete-ROLQRZg_.js +434 -0
  28. package/dist/icon-c5Jb_Tl7.d.ts +31 -0
  29. package/dist/{image-preview-C9tdkmEj.js → image-preview-BigoAvb3.js} +2 -2
  30. package/dist/{index-BYRFQfCd.d.ts → index-YUvL2nV8.d.ts} +8 -10
  31. package/dist/index.d.ts +19 -14
  32. package/dist/index.js +45 -44
  33. package/dist/install-D5f6msEU.js +17 -0
  34. package/dist/list-RCbNZ14q.js +271 -0
  35. package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-Dfl2DgPS.js} +1 -1
  36. package/dist/markdown-editor.js +1 -1
  37. package/dist/{message-scroller-jrYN9dG9.d.ts → message-scroller-Bm1YWTeY.d.ts} +2 -2
  38. package/dist/motion/core.d.ts +4 -0
  39. package/dist/motion/core.js +11 -0
  40. package/dist/motion-core-lHRF8PZz.d.ts +456 -0
  41. package/dist/motion.d.ts +16 -0
  42. package/dist/motion.js +13 -0
  43. package/dist/{nuxt-ui-DSQFzq3s.js → nuxt-ui-CgvMzO5v.js} +20 -14
  44. package/dist/nuxt.d.ts +1 -1
  45. package/dist/nuxt.js +12 -3
  46. package/dist/opt-out-b6bnUjIT.js +208 -0
  47. package/dist/parts/components/agent-session.js +1 -1
  48. package/dist/parts/components/attachment.d.ts +1 -1
  49. package/dist/parts/components/attachment.js +1 -1
  50. package/dist/parts/components/avatar-stack.d.ts +1 -1
  51. package/dist/parts/components/avatar-stack.js +2 -1
  52. package/dist/parts/components/bubble.d.ts +1 -1
  53. package/dist/parts/components/chat-session.d.ts +1 -1
  54. package/dist/parts/components/chat.js +2 -2
  55. package/dist/parts/components/code-block.d.ts +1 -1
  56. package/dist/parts/components/code-block.js +1 -1
  57. package/dist/parts/components/comment-composer.d.ts +1 -1
  58. package/dist/parts/components/comment-composer.js +1 -1
  59. package/dist/parts/components/comment-layer.d.ts +1 -1
  60. package/dist/parts/components/comment-layer.js +24 -6
  61. package/dist/parts/components/comment-list.d.ts +1 -1
  62. package/dist/parts/components/comment-list.js +12 -7
  63. package/dist/parts/components/comment-panel.d.ts +1 -1
  64. package/dist/parts/components/comment-panel.js +24 -10
  65. package/dist/parts/components/comment-pin.d.ts +1 -1
  66. package/dist/parts/components/comment-selection-bar.js +3 -2
  67. package/dist/parts/components/comment-send.d.ts +2 -0
  68. package/dist/parts/components/comment-send.js +2 -0
  69. package/dist/parts/components/comment-thread.d.ts +1 -1
  70. package/dist/parts/components/comment-thread.js +2 -597
  71. package/dist/parts/components/comments.d.ts +8 -7
  72. package/dist/parts/components/comments.js +5 -4
  73. package/dist/parts/components/copy-button.d.ts +13 -3
  74. package/dist/parts/components/copy-button.js +226 -1
  75. package/dist/parts/components/device-frame.d.ts +2 -2
  76. package/dist/parts/components/drop-field.d.ts +69 -0
  77. package/dist/parts/components/drop-field.js +77 -0
  78. package/dist/parts/components/filter-search.js +1 -1
  79. package/dist/parts/components/hold-to-delete.d.ts +82 -0
  80. package/dist/parts/components/hold-to-delete.js +76 -0
  81. package/dist/parts/components/markdown-editor.js +1 -1
  82. package/dist/parts/components/markdown-renderer.js +1 -1
  83. package/dist/parts/components/markdown.js +1 -1
  84. package/dist/parts/components/marker.d.ts +1 -1
  85. package/dist/parts/components/message-parts.js +13 -5
  86. package/dist/parts/components/motion-list.d.ts +42 -0
  87. package/dist/parts/components/motion-list.js +42 -0
  88. package/dist/parts/components/motion.d.ts +124 -0
  89. package/dist/parts/components/motion.js +172 -0
  90. package/dist/parts/components/progress.d.ts +41 -0
  91. package/dist/parts/components/progress.js +54 -0
  92. package/dist/parts/components/prompt-input.d.ts +5 -5
  93. package/dist/parts/components/prompt-input.js +3 -3
  94. package/dist/parts/components/relative-time.js +1 -1
  95. package/dist/parts/components/sync-status.js +2 -1
  96. package/dist/parts/components/tool-list.d.ts +1 -1
  97. package/dist/parts/components/trace-run.d.ts +1 -1
  98. package/dist/parts/components/trace-run.js +1 -1
  99. package/dist/parts/components/trace.d.ts +1 -1
  100. package/dist/parts/headless/comments.js +1 -1
  101. package/dist/parts/headless/message-scroller.d.ts +1 -1
  102. package/dist/parts/playground/share.d.ts +36 -2
  103. package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
  104. package/dist/parts/workspace/browser-support-notice.js +12 -4
  105. package/dist/parts/workspace/codemirror.d.ts +9 -0
  106. package/dist/parts/workspace/codemirror.js +37 -4
  107. package/dist/parts/workspace/connect-panel.d.ts +1 -1
  108. package/dist/parts/workspace/connect-panel.js +1 -1
  109. package/dist/parts/workspace/file-icons.d.ts +16 -0
  110. package/dist/parts/workspace/file-icons.js +82 -0
  111. package/dist/parts/workspace/icons.d.ts +1 -0
  112. package/dist/parts/workspace/icons.js +1 -0
  113. package/dist/parts/workspace/runners/render.d.ts +26 -0
  114. package/dist/parts/workspace/runners/render.js +124 -0
  115. package/dist/parts/workspace/runners/web-container.d.ts +29 -0
  116. package/dist/parts/workspace/runners/web-container.js +186 -0
  117. package/dist/parts/workspace/workspace-bar.d.ts +51 -0
  118. package/dist/parts/workspace/workspace-bar.js +51 -0
  119. package/dist/parts/workspace/workspace-editor-head.d.ts +47 -0
  120. package/dist/parts/workspace/workspace-editor-head.js +66 -0
  121. package/dist/parts/workspace/workspace-editor.d.ts +17 -0
  122. package/dist/parts/workspace/workspace-editor.js +29 -3
  123. package/dist/parts/workspace/workspace-examples.d.ts +74 -0
  124. package/dist/parts/workspace/workspace-examples.js +72 -0
  125. package/dist/parts/workspace/workspace-file-link.d.ts +35 -0
  126. package/dist/parts/workspace/workspace-file-link.js +39 -0
  127. package/dist/parts/workspace/workspace-file-tree.d.ts +8 -8
  128. package/dist/parts/workspace/workspace-file-tree.js +26 -19
  129. package/dist/parts/workspace/workspace-guide.d.ts +52 -0
  130. package/dist/parts/workspace/workspace-guide.js +91 -0
  131. package/dist/parts/workspace/workspace-issues.d.ts +46 -0
  132. package/dist/parts/workspace/workspace-issues.js +49 -0
  133. package/dist/parts/workspace/workspace-preview.js +1 -1
  134. package/dist/parts/workspace/workspace-shell.d.ts +2 -88
  135. package/dist/parts/workspace/workspace-shell.js +131 -78
  136. package/dist/parts/workspace/workspace-sidebar.d.ts +75 -0
  137. package/dist/parts/workspace/workspace-sidebar.js +132 -0
  138. package/dist/parts/workspace/workspace-start.d.ts +47 -0
  139. package/dist/parts/workspace/workspace-start.js +60 -0
  140. package/dist/parts/workspace/workspace-status.d.ts +69 -0
  141. package/dist/parts/workspace/workspace-status.js +74 -0
  142. package/dist/parts/workspace/workspace-steps.d.ts +2 -0
  143. package/dist/parts/workspace/workspace-steps.js +128 -0
  144. package/dist/parts/workspace/workspace-task.d.ts +20 -0
  145. package/dist/parts/workspace/workspace-task.js +20 -0
  146. package/dist/parts/workspace/workspace.d.ts +251 -0
  147. package/dist/parts/workspace/workspace.js +665 -0
  148. package/dist/playground.d.ts +1 -1
  149. package/dist/progress-C7afI5vq.js +266 -0
  150. package/dist/registry-D3-ysX7l.js +78 -0
  151. package/dist/{relative-time-BVmjOsYG.js → relative-time-DgSS3zKN.js} +1 -1
  152. package/dist/ring-B7Qxu7zd.js +175 -0
  153. package/dist/runtime/nuxt-plugin.js +2 -2
  154. package/dist/styles.css +586 -573
  155. package/dist/text-BCJflBJf.js +826 -0
  156. package/dist/theme.d.ts +43 -0
  157. package/dist/theme.js +22 -7
  158. package/dist/travel-C87xd5Wh.js +182 -0
  159. package/dist/tween-CO24nMpf.js +62 -0
  160. package/dist/{types-Dj7vp0lZ.d.ts → types-BX64qHlV.d.ts} +1 -1
  161. package/dist/visual-copy-CrVc3z4n.js +15 -0
  162. package/dist/workspace-shell-BJGnoF3p.d.ts +112 -0
  163. package/dist/workspace-steps-Bgph2rpr.d.ts +72 -0
  164. package/dist/workspace.d.ts +16 -3
  165. package/dist/workspace.js +15 -2
  166. package/package.json +21 -10
  167. package/dist/copy-button-CRN3kmSD.js +0 -253
  168. package/dist/icon-swap.css +0 -69
  169. package/dist/parts/playground/highlight.d.ts +0 -5
  170. package/dist/parts/playground/highlight.js +0 -23
  171. package/dist/parts/playground/playground-render.d.ts +0 -126
  172. package/dist/parts/playground/playground-render.js +0 -356
  173. package/dist/parts/workspace/playground-container.d.ts +0 -192
  174. package/dist/parts/workspace/playground-container.js +0 -603
  175. package/dist/share-DM4eNy4q.d.ts +0 -37
@@ -0,0 +1,11 @@
1
+ import { a as rollNumber, i as morphText, l as swapIcon } from "../text-BCJflBJf.js";
2
+ import { c as forceReducedMotion, i as getMotionSlowFactor, l as onReducedMotionChange, o as setMotionSlowFactor, r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "../opt-out-b6bnUjIT.js";
3
+ import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, g as installMotion, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "../effects-Ql6VzCRa.js";
4
+ import { a as listMotionEffects, n as defineMotionEffect, s as motionStateAttributes, u as writeMotionStyle } from "../registry-D3-ysX7l.js";
5
+ import { t as ring } from "../ring-B7Qxu7zd.js";
6
+ import { n as shake, t as travel } from "../travel-C87xd5Wh.js";
7
+ import { t as createMotionList } from "../list-RCbNZ14q.js";
8
+ import { t as createDropField } from "../drop-field-3CDRFFRm.js";
9
+ import { t as createHoldToDelete } from "../hold-to-delete-ROLQRZg_.js";
10
+ import { t as createProgress } from "../progress-C7afI5vq.js";
11
+ export { appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, installMotion, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
@@ -0,0 +1,456 @@
1
+ //#region src/motion/reduced-motion.d.ts
2
+ type ReducedMotionListener = (reduced: boolean) => void;
3
+ /**
4
+ * True when the person asked for less motion. It follows the system setting live. Under it, nothing travels,
5
+ * stretches, or wobbles: springs jump to their target, and helpers use a 150ms crossfade.
6
+ */
7
+ declare function prefersReducedMotion(): boolean;
8
+ /** Calls `listener` each time reduced motion turns on or off. Returns a function that stops it. */
9
+ declare function onReducedMotionChange(listener: ReducedMotionListener): () => void;
10
+ /**
11
+ * Sets reduced motion on or off whatever the system setting is, such as from an app setting or a test page. `undefined`
12
+ * follows the system setting again.
13
+ */
14
+ declare function forceReducedMotion(reduced: boolean | undefined): void;
15
+ //#endregion
16
+ //#region src/motion/registry.d.ts
17
+ /** The attributes whose change the motion layer reports to the `state` hook of an effect. */
18
+ declare const motionStateAttributes: readonly ["aria-checked", "aria-selected", "aria-pressed", "aria-expanded", "aria-valuenow", "aria-valuetext", "data-state", "data-checked", "data-open", "open", "data-leaving"];
19
+ type MotionStateAttribute = (typeof motionStateAttributes)[number];
20
+ type MotionRoot = Document | ShadowRoot | Element;
21
+ interface MotionStateChange {
22
+ attribute: MotionStateAttribute;
23
+ oldValue: string | null;
24
+ value: string | null;
25
+ }
26
+ /** The children or the text of an element changed, such as Vue writing the new label of a button. */
27
+ interface MotionContentChange {
28
+ /** The nodes that the change added, in order. */
29
+ added: Node[];
30
+ /** The nodes that the change removed, in order. */
31
+ removed: Node[];
32
+ /** The text before the change, when the change replaced all of it. */
33
+ oldText: string | undefined;
34
+ }
35
+ /** What a press does next. The motion layer calls it until the pointer or the key goes up. */
36
+ interface MotionPress {
37
+ /** The pointer moved while it was down, such as on a resize handle. Not called for a key press. */
38
+ move?(event: PointerEvent): void;
39
+ /** The pointer or the key went up. Also called on cancellation if there is no `cancel` hook. */
40
+ release(): void;
41
+ /** The pointer left, the press was interrupted, or reduced motion turned on. */
42
+ cancel?(): void;
43
+ }
44
+ /**
45
+ * One effect of the motion layer, for one interaction. The layer finds the element of the interaction by `selector`,
46
+ * walks the composed path so it also finds elements in shadow DOM, and skips everything inside `[data-motion="none"]`.
47
+ *
48
+ * An effect writes only the separate CSS properties `scale`, `translate`, and `rotate`, and `filter` or `opacity` where
49
+ * it needs them, through `writeMotionStyle`, so it adds to a component's own `transform`. It clears what it wrote when
50
+ * its spring settles.
51
+ */
52
+ interface MotionEffect {
53
+ /** A unique name, such as "press". Defining an effect with a name that exists replaces it. */
54
+ name: string;
55
+ /** The elements of the interaction, such as `[role=tab]`. The innermost element on the event path wins. */
56
+ selector: string;
57
+ /** Starts tracking state in an installed root and returns its cleanup. */
58
+ watch?(root: MotionRoot): () => void;
59
+ /**
60
+ * A pointer went down on the element (main button only), or Space or Enter went down while it had focus. Return a
61
+ * `MotionPress` to hear the rest of the press. Not called under reduced motion.
62
+ */
63
+ press?(element: HTMLElement, event: PointerEvent | KeyboardEvent): MotionPress | void;
64
+ /** One of `motionStateAttributes` changed on the element. Also called under reduced motion: keep the meaning. */
65
+ state?(element: HTMLElement, change: MotionStateChange): void;
66
+ /** The element was added to the page, such as a tooltip. Also called under reduced motion: keep the meaning. */
67
+ enter?(element: HTMLElement): void;
68
+ /**
69
+ * The children or the text of the element changed, such as the label or the icon of a button. Also called under
70
+ * reduced motion, and for the changes that effects make themselves: tell them apart by `added`.
71
+ */
72
+ content?(element: HTMLElement | SVGElement, change: MotionContentChange): void;
73
+ }
74
+ /**
75
+ * Adds an effect to the motion layer. Every installed layer runs it from the next interaction on. Returns a function
76
+ * that removes it. When another copy of the module is the shared layer, the effect goes to that copy.
77
+ */
78
+ declare function defineMotionEffect(effect: MotionEffect): () => void;
79
+ /** The effects of the motion layer, in the order they were defined. */
80
+ declare function listMotionEffects(): MotionEffect[];
81
+ /**
82
+ * The CSS properties that the motion layer may write. `clip-path` hides the part of a tooltip that is still behind its
83
+ * trigger. `width` is only for a panel that opens beside the page, as a sidebar does.
84
+ */
85
+ type MotionStyleProperty = "scale" | "translate" | "rotate" | "filter" | "opacity" | "clip-path" | "width";
86
+ /** Writes motion properties inline. An empty string or `null` removes the property, so the stylesheet applies again. */
87
+ declare function writeMotionStyle(element: HTMLElement | SVGElement, values: Partial<Record<MotionStyleProperty, string | null>>): void;
88
+ //#endregion
89
+ //#region src/motion/opt-out.d.ts
90
+ declare function isMotionOff(element: Element): boolean;
91
+ //#endregion
92
+ //#region src/motion/layer.d.ts
93
+ /** What `installMotion` of `@vite-hub/ui/motion/core` runs. */
94
+ interface InstallMotionOptions {
95
+ /**
96
+ * The effects that the install runs, such as `[pressEffect, appearEffect]`. Only these effects go in the bundle.
97
+ * Effects are shared by every install that uses the same copy of the module: an effect that one install adds also
98
+ * runs in the others.
99
+ */
100
+ effects: readonly MotionEffect[];
101
+ }
102
+ /**
103
+ * Starts the motion layer in `root`, the document, a shadow root, or an element and everything in it, with the effects
104
+ * in `options.effects`. The other built-in effects stay out of the bundle. It listens once on the document and reads the composed path, so a press also reaches
105
+ * the shadow roots inside an installed root. Pass a shadow root to also watch the state attributes inside it: an
106
+ * observer does not see into a shadow root. A surface that installs only its own host and shadow roots, such as the
107
+ * page pill, does not move the elements of the page around it.
108
+ *
109
+ * It is safe to call more than once. Returns a function that stops this install. The layer stops when every install
110
+ * has stopped. On the server it does nothing. `installMotion(root?)` of `@vite-hub/ui/motion` is this function with
111
+ * every built-in effect.
112
+ *
113
+ * When another copy of the module installed first, this install and these effects go to that copy, the shared layer,
114
+ * so an element that both copies cover moves once.
115
+ */
116
+ declare function installMotion(root: MotionRoot, options: InstallMotionOptions): () => void;
117
+ //#endregion
118
+ //#region src/motion/effects/index.d.ts
119
+ /**
120
+ * Every built-in effect: what `installMotion()` of `@vite-hub/ui/motion` runs. Add a role effect here, in a file of its
121
+ * own, and export it from `src/motion-core.ts`.
122
+ */
123
+ declare const motionEffects: readonly MotionEffect[];
124
+ //#endregion
125
+ //#region src/motion/effects/check.d.ts
126
+ declare const check: MotionEffect;
127
+ //#endregion
128
+ //#region src/motion/effects/disclosure.d.ts
129
+ declare const disclosure: MotionEffect;
130
+ //#endregion
131
+ //#region src/motion/effects/divider.d.ts
132
+ /**
133
+ * Drag a value (docs/design/motion.md): a divider, `[role=separator]` that a person can drag, from Nuxt UI `USplitter`,
134
+ * `UDashboardPanel`, Reka, ui-sdk and kit `Resizable`, or a plain handle. Past the limit of its panel, the divider
135
+ * stays where its component keeps it and its line bends toward the pointer. On release it springs back straight.
136
+ */
137
+ declare const divider: MotionEffect;
138
+ //#endregion
139
+ //#region src/motion/effects/jelly.d.ts
140
+ declare const jelly: MotionEffect;
141
+ //#endregion
142
+ //#region src/motion/effects/label.d.ts
143
+ /**
144
+ * Rule 4 for every button: when the text-only label of a Nuxt UI button, or of a control with a `[data-slot=label]` child,
145
+ * changes, its letters morph and the button's width follows. The app only changes the label, such as
146
+ * `:label="loading ? 'Publishing' : 'Publish'"`.
147
+ */
148
+ declare const label: MotionEffect;
149
+ /**
150
+ * Rule 5 for every button: when Vue draws another icon into the leading or trailing SVG of a button, such as the
151
+ * spinner of `loading`, a copy of the old icon blurs out where it was and the new one comes in. A spinner draws its
152
+ * stroke. An icon of `@nuxt/icon` in CSS mode changes a class, which the layer does not watch, so it changes at once.
153
+ */
154
+ declare const buttonIcon: MotionEffect;
155
+ //#endregion
156
+ //#region src/motion/effects/leave.d.ts
157
+ /**
158
+ * A mark that leaves while its page keeps it a moment longer, such as a comment pin when one comment shows on its own:
159
+ * the page sets `data-leaving="true"` on it and removes it later. A copy of it folds away in its place, as a removed item
160
+ * of a list does, and the mark itself hides at once, so the time the page keeps it does not matter. When the page shows
161
+ * it again, the copy goes. Under reduced motion the copy fades out in 150ms.
162
+ */
163
+ declare const leave: MotionEffect;
164
+ //#endregion
165
+ //#region src/motion/effects/panel.d.ts
166
+ declare const panel: MotionEffect;
167
+ //#endregion
168
+ //#region src/motion/effects/press.d.ts
169
+ declare const press: MotionEffect;
170
+ //#endregion
171
+ //#region src/motion/effects/select.d.ts
172
+ declare const select: MotionEffect;
173
+ //#endregion
174
+ //#region src/motion/effects/slider.d.ts
175
+ /**
176
+ * Drag a value (docs/design/motion.md): a slider thumb from Nuxt UI `USlider`, Reka, ui-sdk and kit, or a plain
177
+ * `[role=slider]`. Its component puts the thumb at the value. The effect keeps the thumb that people see where it was
178
+ * and springs it there, so a tail trails it with its speed and it stretches along the track. A press on the thumb or
179
+ * on its track holds the thumb, and it grows while it is held.
180
+ */
181
+ declare const slider: MotionEffect;
182
+ //#endregion
183
+ //#region src/motion/effects/switch.d.ts
184
+ declare const switchKnob: MotionEffect;
185
+ //#endregion
186
+ //#region src/motion/effects/toast.d.ts
187
+ /**
188
+ * Something arrives on its own: a toast comes in from its edge of the screen, and the toasts that the list moves make
189
+ * room with a spring. A toast that closes leaves past the side of the screen that the toaster sits at, and the others
190
+ * close the gap. A toast that a person
191
+ * swiped away leaves from where they let go. Under reduced motion a toast crossfades in and out in 150ms, and the others
192
+ * take their new places at once.
193
+ *
194
+ * It is a role effect on the items of a notifications region, so Nuxt UI's `UToast` and ui-sdk's `Toast` both get it.
195
+ */
196
+ declare const toast: MotionEffect;
197
+ //#endregion
198
+ //#region src/motion/effects/tooltip.d.ts
199
+ /**
200
+ * A tooltip appears next to its trigger: it rises from behind its trigger, narrow and without its label, widens to
201
+ * fit, and blurs its label in. When the next trigger opens its tooltip while this one leaves, the new one takes the
202
+ * place, size, and speed of the old one and slides over. A tooltip that closes narrows and sinks back behind its
203
+ * trigger. Under reduced motion it crossfades in 150ms.
204
+ *
205
+ * Floating UI or Reka still places the tooltip. The effect only adds `translate`, `scale`, `clip-path`, `opacity`, and
206
+ * `filter` to that.
207
+ */
208
+ declare const tooltip: MotionEffect;
209
+ /**
210
+ * An element with `data-motion-appear` that is not a tooltip, such as a comment's draft bubble or a tab that comes out
211
+ * of a bar, appears as a tooltip does when it is added to the page, but never takes the place of another one. Its
212
+ * trigger is the nearest element around it, or a sibling, that the attribute's value selects; with an empty value it
213
+ * rises from 8px past its own edge, on the side that `data-side` names. Its parts are revealed, not squeezed, while it
214
+ * widens.
215
+ */
216
+ declare const appear: MotionEffect;
217
+ //#endregion
218
+ //#region src/motion/spring.d.ts
219
+ /** How stiff a spring is and how fast it loses its speed. */
220
+ interface SpringPreset {
221
+ stiffness: number;
222
+ damping: number;
223
+ }
224
+ /** The named springs of docs/design/motion.md. Use them, not numbers of your own. */
225
+ declare const springs: {
226
+ /** Moves and resizes: an indicator that travels, a width that follows its label. */
227
+ readonly snappy: {
228
+ readonly stiffness: 520;
229
+ readonly damping: 34;
230
+ };
231
+ /** Wobbles and settles: a toggled icon, a knob that lands. */
232
+ readonly soft: {
233
+ readonly stiffness: 380;
234
+ readonly damping: 20;
235
+ };
236
+ };
237
+ interface SpringTarget {
238
+ /** Another spring from now on, such as the release of a press. */
239
+ preset?: SpringPreset;
240
+ /** Speed to add, in units of the value per second, such as the speed of a flick. */
241
+ velocity?: number;
242
+ /**
243
+ * Go to the target in this many seconds with an ease-out curve, and not with the spring. Use it for the 150ms
244
+ * crossfade under reduced motion. Without it, a spring jumps to its target under reduced motion.
245
+ */
246
+ tween?: number;
247
+ }
248
+ interface Spring {
249
+ readonly value: number;
250
+ readonly velocity: number;
251
+ readonly target: number;
252
+ /** True while the spring moves. */
253
+ readonly active: boolean;
254
+ /** Moves to `target`. A spring that already moves keeps its speed, so a fast second change never jumps. */
255
+ to(target: number, options?: SpringTarget): void;
256
+ /** Jumps to `value` and stops. */
257
+ set(value: number): void;
258
+ /** Stops where it is. */
259
+ stop(): void;
260
+ }
261
+ /** Called on each frame with the new value and its speed, and once more with the target when the spring settles. */
262
+ type SpringFrame = (value: number, velocity: number) => void;
263
+ /**
264
+ * Makes every spring run `factor` times slower, such as 4 to record at ¼×. 1 is real time. It also slows tweens.
265
+ */
266
+ declare function setMotionSlowFactor(factor: number): void;
267
+ declare function getMotionSlowFactor(): number;
268
+ /**
269
+ * A spring on one number, such as a scale amount or a position in pixels. All springs share one frame loop, which
270
+ * stops when no spring moves. `onFrame` writes the value where it belongs.
271
+ */
272
+ declare function createSpring(initial: number, onFrame: SpringFrame, preset?: SpringPreset): Spring;
273
+ //#endregion
274
+ //#region src/motion/helpers/text.d.ts
275
+ /**
276
+ * Changes the text of `element` letter by letter, as rule 4 of docs/design/motion.md asks: the letters that the old and
277
+ * new text share at the start stay, the other old letters blur out where they are, and the new letters type in one at
278
+ * a time with a short blur. The width of the element follows the letters with a spring and never jumps.
279
+ *
280
+ * Call it again at any time: a new text continues from the letters on screen. The element keeps the final text for
281
+ * screen readers during the morph, and holds plain text again when it ends. Under reduced motion the two texts
282
+ * crossfade in 150ms. Inside `data-motion="none"`, or when the element has no layout, it sets the text at once.
283
+ *
284
+ * Give it an element of its own with no padding, such as the label `<span>` of a button.
285
+ */
286
+ declare function morphText(element: HTMLElement, text: string): void;
287
+ //#endregion
288
+ //#region src/motion/helpers/number.d.ts
289
+ /**
290
+ * Rolls the number in `element` to `value`, as rule 6 of docs/design/motion.md asks: only the digits that change roll,
291
+ * up when the number grows and down when it shrinks. The width of the element follows with a spring. `format` turns the
292
+ * number into its text, such as `n => n.toLocaleString()`. The default is `String`.
293
+ *
294
+ * Call it again at any time: a digit that is still rolling in rolls out from where it is. The element keeps the final
295
+ * text for screen readers, and holds plain text again when the roll ends. Under reduced motion the changed digits
296
+ * crossfade in 150ms. Inside `data-motion="none"`, or before the element is on the page, it sets the text at once.
297
+ */
298
+ declare function rollNumber(element: HTMLElement, value: number, format?: (value: number) => string): void;
299
+ //#endregion
300
+ //#region src/motion/helpers/ring.d.ts
301
+ /**
302
+ * Rings `element` once, as rule 7 of docs/design/motion.md asks for a finished action such as saved, published, or
303
+ * copied: a 5px ring in the border color grows around it and fades. A second call starts the ring again. There is no
304
+ * ring under reduced motion or inside `data-motion="none"`.
305
+ */
306
+ declare function ring(element: HTMLElement): void;
307
+ //#endregion
308
+ //#region src/motion/helpers/shake.d.ts
309
+ /**
310
+ * Shakes `element` from side to side once, when it refuses an action but keeps what the person wrote, such as a comment
311
+ * box that Esc did not close. A second call starts the shake again. Under reduced motion and inside
312
+ * `data-motion="none"` it does nothing: show the refusal with a color instead.
313
+ */
314
+ declare function shake(element: HTMLElement): void;
315
+ //#endregion
316
+ //#region src/motion/helpers/travel.d.ts
317
+ /** A box on the screen, as `getBoundingClientRect()` gives it. */
318
+ interface TravelBox {
319
+ left: number;
320
+ top: number;
321
+ width: number;
322
+ height: number;
323
+ }
324
+ interface TravelOptions {
325
+ /** Where the element starts. Defaults to the last drawn box during a travel, or to the element's own place. */
326
+ from?: TravelBox;
327
+ /**
328
+ * Where the element goes, such as back to the place of the picture when it closes. The element stays there when it
329
+ * lands, until `stop()` or a new travel. Without `to`, the element goes to its own place, and the travel then removes
330
+ * what it wrote.
331
+ */
332
+ to?: TravelBox;
333
+ /** The spring of the travel. Defaults to `springs.snappy`, which moves and resizes. */
334
+ preset?: SpringPreset;
335
+ }
336
+ interface Travel {
337
+ /** True when the element landed, false when the travel stopped, was replaced, or had no motion. */
338
+ done: Promise<boolean>;
339
+ /** Stops the travel and removes what it wrote. */
340
+ stop(): void;
341
+ }
342
+ /**
343
+ * Rule 8 for a thing that moves to a new place: a picture that opens larger from where it is in the page, and goes back
344
+ * there when it closes. The element travels from `from` to its own place, or from where it is to `to`, on a spring for
345
+ * each of its position and its size, and keeps its speed when a new travel starts in the middle of one.
346
+ *
347
+ * The page lays the element out at its new place first; the travel only draws it on the way there, with `translate`
348
+ * and `scale`. Under reduced motion and inside `data-motion="none"` a new travel leaves the element at its own place,
349
+ * and `done` is false. If reduced motion turns on during a travel, it lands at once.
350
+ */
351
+ declare function travel(element: HTMLElement, options: TravelOptions): Travel;
352
+ //#endregion
353
+ //#region src/motion/list.d.ts
354
+ /** Where a new item comes from: one element for every new item, or a function that finds it for each one. */
355
+ type MotionListOrigin = Element | ((item: HTMLElement) => Element | null | undefined);
356
+ interface MotionListOptions {
357
+ /** The items of the list. Defaults to the element children of the container. */
358
+ items?: (container: HTMLElement) => HTMLElement[];
359
+ /**
360
+ * Only the items that stay move. A new item shows at once, and a removed item goes at once. Use it for items that come
361
+ * and go for another reason than an add or a remove, such as the cards of a margin that the scroll brings in.
362
+ */
363
+ movesOnly?: boolean;
364
+ }
365
+ interface MotionListPlay {
366
+ /**
367
+ * Where a new item comes from, such as the row that was duplicated. The new item starts on it and moves to its slot.
368
+ * A new item without an origin grows in its slot.
369
+ */
370
+ origin?: MotionListOrigin | null;
371
+ /** Where a removed item goes, such as the trash. Without it, a removed item folds away in its slot. */
372
+ target?: Element | null;
373
+ }
374
+ interface MotionList {
375
+ /**
376
+ * Reads where each item is. Call it before the list changes: just before, or after the last `play()`, also while the
377
+ * items still move. A change that you only see after it happened, such as a resize, needs the second way.
378
+ */
379
+ measure(): void;
380
+ /**
381
+ * Call it just after the list changed. Each item that moved springs from where `measure()` found it to its new place,
382
+ * a new item grows from its origin or its slot, and a removed item folds away.
383
+ */
384
+ play(options?: MotionListPlay): void;
385
+ /** Stops every motion, clears what the list wrote, and removes the copies of removed items. */
386
+ destroy(): void;
387
+ }
388
+ /**
389
+ * The list mover of docs/design/motion.md: "Items are added, removed, or reordered". It is FLIP with the springs of the
390
+ * motion layer. Call `measure()` before a change and `play()` after it.
391
+ *
392
+ * Neighbors spring to their new place and keep their speed when a second change comes before they settle. A new item
393
+ * grows from its origin, such as the row it duplicates, or from its slot. A removed item folds away, or leaves toward
394
+ * `target`. Items that are off screen before and after the change do not move, so a long list costs one read per item.
395
+ * Under reduced motion nothing travels: a new item and a removed item cross-fade in 150ms. Inside `data-motion="none"`
396
+ * nothing moves.
397
+ */
398
+ declare function createMotionList(container: HTMLElement, options?: MotionListOptions): MotionList;
399
+ //#endregion
400
+ //#region src/motion/progress.d.ts
401
+ type ProgressPhase = "idle" | "fill" | "wave" | "done";
402
+ interface ProgressOptions {
403
+ /** The accessible name of the bar, such as "Upload cover.png". */
404
+ label?: string;
405
+ }
406
+ interface Progress {
407
+ readonly phase: ProgressPhase;
408
+ /**
409
+ * A fraction from 0 to 1 fills the bar, with a head at its end. `null` shows the wave: work runs with no known
410
+ * total, such as a server that makes previews after the upload.
411
+ */
412
+ set(value: number | null): void;
413
+ /** The work is done: the bar fills, its head or wave flattens, and a dot draws into a check. */
414
+ done(): void;
415
+ /** Back to an empty bar. */
416
+ reset(): void;
417
+ /** Stops the motion and removes what the helper added. */
418
+ destroy(): void;
419
+ }
420
+ /**
421
+ * The progress helper of docs/design/motion.md: "Work runs". It draws into `host`: a bar with a head while it fills, a
422
+ * wave while it processes with no known total, and a dot that draws into a check when the work is done.
423
+ *
424
+ * The host gets `role="progressbar"` with `aria-valuenow` from 0 to 100, no `aria-valuenow` during the wave, and
425
+ * `data-phase`. The bar uses `currentColor`, and the rail `--vh-progress-rail` or the Nuxt UI accented border color.
426
+ * Under reduced motion the bar jumps to its value, there is no head or wave, and the check cross-fades in 150ms. Inside
427
+ * `data-motion="none"` the bar jumps and the check shows at once.
428
+ */
429
+ declare function createProgress(host: HTMLElement, options?: ProgressOptions): Progress;
430
+ //#endregion
431
+ //#region src/motion/drop-field.d.ts
432
+ interface DropFieldOptions {
433
+ /** The files that were dropped on the field. */
434
+ onFiles?: (files: File[], event: DragEvent) => void;
435
+ /** The element that draws the dots. Defaults to the field. Use it when the field covers more than the dots. */
436
+ surface?: HTMLElement;
437
+ /** True when the field takes this drag. Defaults to a drag that carries files. */
438
+ accepts?: (event: DragEvent) => boolean;
439
+ }
440
+ interface DropField {
441
+ /** True while a file is over the field. The field also has `data-over` then. */
442
+ readonly over: boolean;
443
+ /** Removes the listeners and the dots. */
444
+ destroy(): void;
445
+ }
446
+ /**
447
+ * The drop field of docs/design/motion.md: "Files are dragged in". A grid of dots behind the content of `surface` leans
448
+ * toward the dragged file and rests again when it leaves or drops. It wraps the native file drop of `field`: the drag
449
+ * events, `dropEffect`, and `onFiles`. A click or a key that opens a file picker stays with the field's own controls.
450
+ *
451
+ * The dots use `--vh-drop-dot`, or the text color of the surface. Under reduced motion and inside `data-motion="none"`
452
+ * the dots stay still; `data-over` still marks the field, so its colors change.
453
+ */
454
+ declare function createDropField(field: HTMLElement, options?: DropFieldOptions): DropField;
455
+ //#endregion
456
+ export { MotionStateChange as $, tooltip as A, jelly as B, SpringPreset as C, setMotionSlowFactor as D, getMotionSlowFactor as E, press as F, InstallMotionOptions as G, disclosure as H, panel as I, MotionContentChange as J, installMotion as K, leave as L, switchKnob as M, slider as N, springs as O, select as P, MotionStateAttribute as Q, buttonIcon as R, SpringFrame as S, createSpring as T, check as U, divider as V, motionEffects as W, MotionPress as X, MotionEffect as Y, MotionRoot as Z, shake as _, ProgressOptions as a, forceReducedMotion as at, morphText as b, MotionList as c, MotionListPlay as d, MotionStyleProperty as et, createMotionList as f, travel as g, TravelOptions as h, Progress as i, writeMotionStyle as it, toast as j, appear as k, MotionListOptions as l, TravelBox as m, DropFieldOptions as n, listMotionEffects as nt, ProgressPhase as o, onReducedMotionChange as ot, Travel as p, isMotionOff as q, createDropField as r, motionStateAttributes as rt, createProgress as s, prefersReducedMotion as st, DropField as t, defineMotionEffect as tt, MotionListOrigin as u, ring as v, SpringTarget as w, Spring as x, rollNumber as y, label as z };
@@ -0,0 +1,16 @@
1
+ import { i as createHoldToDelete, n as HoldToDeleteOptions, r as HoldToDeleteState, t as HoldToDelete } from "./hold-to-delete-DjWzRDyY.js";
2
+ import { i as swapIcon, n as IconExit, r as SwapIconOptions, t as IconEnter } from "./icon-c5Jb_Tl7.js";
3
+ import { $ as MotionStateChange, A as tooltip, B as jelly, C as SpringPreset, D as setMotionSlowFactor, E as getMotionSlowFactor, F as press, G as InstallMotionOptions, H as disclosure, I as panel, J as MotionContentChange, L as leave, M as switchKnob, N as slider, O as springs, P as select, Q as MotionStateAttribute, R as buttonIcon, S as SpringFrame, T as createSpring, U as check, V as divider, W as motionEffects, X as MotionPress, Y as MotionEffect, Z as MotionRoot, _ as shake, a as ProgressOptions, at as forceReducedMotion, b as morphText, c as MotionList, d as MotionListPlay, et as MotionStyleProperty, f as createMotionList, g as travel, h as TravelOptions, i as Progress, it as writeMotionStyle, j as toast, k as appear, l as MotionListOptions, m as TravelBox, n as DropFieldOptions, nt as listMotionEffects, o as ProgressPhase, ot as onReducedMotionChange, p as Travel, q as isMotionOff, r as createDropField, rt as motionStateAttributes, s as createProgress, st as prefersReducedMotion, t as DropField, tt as defineMotionEffect, u as MotionListOrigin, v as ring, w as SpringTarget, x as Spring, y as rollNumber, z as label } from "./motion-core-lHRF8PZz.js";
4
+ //#region src/motion/install.d.ts
5
+ /**
6
+ * Starts the motion layer with every built-in effect: press, toggle, select, drag, and appear motion for every element
7
+ * by its role, in `root`: the document by default, a shadow root, or an element and everything in it. `createViteHubUI()`
8
+ * and the Nuxt module call it for the document. A surface with its own bundle, such as the page pill, takes
9
+ * `installMotion` from `@vite-hub/ui/motion/core` instead and lists the effects it runs, so the others stay out of its
10
+ * bundle.
11
+ *
12
+ * It is safe to call more than once. Returns a function that stops this install. On the server it does nothing.
13
+ */
14
+ export declare function installMotion(root?: MotionRoot): () => void;
15
+ //#endregion
16
+ export { type DropField, type DropFieldOptions, type HoldToDelete, type HoldToDeleteOptions, type HoldToDeleteState, type IconEnter, type IconExit, type InstallMotionOptions, type MotionContentChange, type MotionEffect, type MotionList, type MotionListOptions, type MotionListOrigin, type MotionListPlay, type MotionPress, type MotionRoot, type MotionStateAttribute, type MotionStateChange, type MotionStyleProperty, type Progress, type ProgressOptions, type ProgressPhase, type Spring, type SpringFrame, type SpringPreset, type SpringTarget, type SwapIconOptions, type Travel, type TravelBox, type TravelOptions, appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
package/dist/motion.js ADDED
@@ -0,0 +1,13 @@
1
+ import { a as rollNumber, i as morphText, l as swapIcon } from "./text-BCJflBJf.js";
2
+ import { c as forceReducedMotion, i as getMotionSlowFactor, l as onReducedMotionChange, o as setMotionSlowFactor, r as createSpring, s as springs, t as isMotionOff, u as prefersReducedMotion } from "./opt-out-b6bnUjIT.js";
3
+ import { _ as divider, a as switchKnob, c as press, d as buttonIcon, f as label, h as check, i as toast, l as panel, m as disclosure, n as appear, o as slider, p as jelly, r as tooltip, s as select, t as motionEffects, u as leave } from "./effects-Ql6VzCRa.js";
4
+ import { a as listMotionEffects, n as defineMotionEffect, s as motionStateAttributes, u as writeMotionStyle } from "./registry-D3-ysX7l.js";
5
+ import { t as ring } from "./ring-B7Qxu7zd.js";
6
+ import { t as installMotion } from "./install-D5f6msEU.js";
7
+ import { n as shake, t as travel } from "./travel-C87xd5Wh.js";
8
+ import { t as createMotionList } from "./list-RCbNZ14q.js";
9
+ import { t as createDropField } from "./drop-field-3CDRFFRm.js";
10
+ import { t as createHoldToDelete } from "./hold-to-delete-ROLQRZg_.js";
11
+ import { t as createProgress } from "./progress-C7afI5vq.js";
12
+ import "./motion/core.js";
13
+ export { appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, installMotion, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
@@ -2,21 +2,27 @@ import { defineAsyncComponent, getCurrentInstance, inject } from "vue";
2
2
  import { injectTooltipProviderContext } from "reka-ui";
3
3
  //#region src/internal/nuxt-ui.ts
4
4
  const uiComponentsKey = Symbol("ViteHubUIComponents");
5
+ function lazy(loader) {
6
+ return defineAsyncComponent({
7
+ loader,
8
+ suspensible: false
9
+ });
10
+ }
5
11
  const bundled = {
6
- UBadge: defineAsyncComponent(() => import("@nuxt/ui/components/Badge.vue")),
7
- UButton: defineAsyncComponent(() => import("@nuxt/ui/components/Button.vue")),
8
- UChatReasoning: defineAsyncComponent(() => import("@nuxt/ui/components/ChatReasoning.vue")),
9
- UChatTool: defineAsyncComponent(() => import("@nuxt/ui/components/ChatTool.vue")),
10
- UCollapsible: defineAsyncComponent(() => import("@nuxt/ui/components/Collapsible.vue")),
11
- UDropdownMenu: defineAsyncComponent(() => import("@nuxt/ui/components/DropdownMenu.vue")),
12
- UEditorDragHandle: defineAsyncComponent(() => import("@nuxt/ui/components/EditorDragHandle.vue")),
13
- UEditorSuggestionMenu: defineAsyncComponent(() => import("@nuxt/ui/components/EditorSuggestionMenu.vue")),
14
- UEditorToolbar: defineAsyncComponent(() => import("@nuxt/ui/components/EditorToolbar.vue")),
15
- UIcon: defineAsyncComponent(() => import("@nuxt/ui/runtime/vue/components/Icon.vue")),
16
- UInput: defineAsyncComponent(() => import("@nuxt/ui/components/Input.vue")),
17
- UModal: defineAsyncComponent(() => import("@nuxt/ui/components/Modal.vue")),
18
- UTabs: defineAsyncComponent(() => import("@nuxt/ui/components/Tabs.vue")),
19
- UTooltip: defineAsyncComponent(() => import("@nuxt/ui/components/Tooltip.vue"))
12
+ UBadge: lazy(() => import("@nuxt/ui/components/Badge.vue")),
13
+ UButton: lazy(() => import("@nuxt/ui/components/Button.vue")),
14
+ UChatReasoning: lazy(() => import("@nuxt/ui/components/ChatReasoning.vue")),
15
+ UChatTool: lazy(() => import("@nuxt/ui/components/ChatTool.vue")),
16
+ UCollapsible: lazy(() => import("@nuxt/ui/components/Collapsible.vue")),
17
+ UDropdownMenu: lazy(() => import("@nuxt/ui/components/DropdownMenu.vue")),
18
+ UEditorDragHandle: lazy(() => import("@nuxt/ui/components/EditorDragHandle.vue")),
19
+ UEditorSuggestionMenu: lazy(() => import("@nuxt/ui/components/EditorSuggestionMenu.vue")),
20
+ UEditorToolbar: lazy(() => import("@nuxt/ui/components/EditorToolbar.vue")),
21
+ UIcon: lazy(() => import("@nuxt/ui/runtime/vue/components/Icon.vue")),
22
+ UInput: lazy(() => import("@nuxt/ui/components/Input.vue")),
23
+ UModal: lazy(() => import("@nuxt/ui/components/Modal.vue")),
24
+ UTabs: lazy(() => import("@nuxt/ui/components/Tabs.vue")),
25
+ UTooltip: lazy(() => import("@nuxt/ui/components/Tooltip.vue"))
20
26
  };
21
27
  /**
22
28
  * The component that a part renders for `name`: the one given to `createViteHubUI({ components })`, else one that the
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ViteHubUIOptions, r as ViteHubUIIconOptions } from "./config-DgxBW013.js";
1
+ import { a as ViteHubUIOptions, r as ViteHubUIIconOptions } from "./config-pHazYdq6.js";
2
2
  //#region ../icons/dist/index.d.ts
3
3
  /** Name of an icon in the ViteHub set, such as `kv` for `i-vitehub-kv`. */
4
4
  type ViteHubIconName = "agent" | "auth" | "blob" | "browser" | "bundle" | "cache" | "channels" | "choices" | "cli" | "cms" | "codemods" | "comments" | "compare" | "connections" | "console" | "content" | "database" | "development" | "device" | "docs" | "email" | "env" | "forge" | "forms" | "gateways" | "guides" | "hosts" | "i18n" | "kv" | "logs" | "markdown-template" | "mcp" | "presets" | "queue" | "rate-limit" | "realtime" | "reference" | "runtime" | "sandbox" | "schedule" | "shell" | "skills" | "source" | "start" | "sync" | "ui" | "usage" | "web-container" | "webhooks" | "workflow" | "workspace";
package/dist/nuxt.js CHANGED
@@ -115,6 +115,7 @@ const partFamilies = {
115
115
  "CommentPin",
116
116
  "CommentReply",
117
117
  "CommentSelectionBar",
118
+ "CommentSend",
118
119
  "CommentThread",
119
120
  "CommentToolbar"
120
121
  ],
@@ -161,7 +162,6 @@ const componentNames = [
161
162
  "FileDiff",
162
163
  "FileTree",
163
164
  "DeviceFrame",
164
- "PlaygroundRender",
165
165
  "Markdown",
166
166
  "MessageParts",
167
167
  "MultiFileDiff",
@@ -177,8 +177,15 @@ const componentNames = [
177
177
  "TraceRun",
178
178
  "UnresolvedFile",
179
179
  "CopyButton",
180
+ "MorphText",
181
+ "RollNumber",
182
+ "SwapIcon",
180
183
  "RelativeTime",
181
184
  "Status",
185
+ "MotionList",
186
+ "Progress",
187
+ "DropField",
188
+ "HoldToDelete",
182
189
  ...partFamilies.attachment,
183
190
  ...partFamilies["avatar-stack"],
184
191
  ...partFamilies.bubble,
@@ -199,7 +206,6 @@ const viteHubUIIcons = [
199
206
  "lucide:arrow-up",
200
207
  "lucide:arrow-up-right",
201
208
  "lucide:bold",
202
- "lucide:box",
203
209
  "lucide:brain",
204
210
  "lucide:check",
205
211
  "lucide:chevron-down",
@@ -235,9 +241,9 @@ const viteHubUIIcons = [
235
241
  "lucide:heading-2",
236
242
  "lucide:heading-3",
237
243
  "lucide:image",
244
+ "lucide:inbox",
238
245
  "lucide:info",
239
246
  "lucide:italic",
240
- "lucide:layout-template",
241
247
  "lucide:lightbulb",
242
248
  "lucide:link",
243
249
  "lucide:list",
@@ -251,6 +257,7 @@ const viteHubUIIcons = [
251
257
  "lucide:minus",
252
258
  "lucide:monitor",
253
259
  "lucide:moon",
260
+ "lucide:panel-left",
254
261
  "lucide:panel-left-close",
255
262
  "lucide:panel-left-open",
256
263
  "lucide:panel-right",
@@ -262,6 +269,7 @@ const viteHubUIIcons = [
262
269
  "lucide:refresh-cw",
263
270
  "lucide:rotate-ccw",
264
271
  "lucide:search",
272
+ "lucide:send",
265
273
  "lucide:sparkles",
266
274
  "lucide:square",
267
275
  "lucide:square-code",
@@ -271,6 +279,7 @@ const viteHubUIIcons = [
271
279
  "lucide:strikethrough",
272
280
  "lucide:sun",
273
281
  "lucide:terminal",
282
+ "lucide:text-wrap",
274
283
  "lucide:trash-2",
275
284
  "lucide:triangle-alert",
276
285
  "lucide:type",