@vllnt/ui 0.4.0-canary.sha73b1ad7 → 0.4.0-canary.sha7a491b3
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.
- package/CHANGELOG.md +30 -2
- package/dist/components/atoms/dialog/dialog.js +1 -1
- package/dist/components/atoms/text/text.js +28 -25
- package/dist/components/molecules/ai-artifact/ai-artifact.js +2 -12
- package/dist/components/molecules/completion-dialog/completion-dialog.js +1 -1
- package/dist/components/molecules/copy-button/use-copy-to-clipboard.js +10 -12
- package/dist/index.d.ts +46 -7
- package/dist/index.js +2 -0
- package/dist/lib/copy-text.js +64 -0
- package/package.json +3 -2
- package/styles.css +1 -1
- package/themes/default.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,8 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
0.3.0). The release cut adds the version heading and its date.
|
|
9
|
+
## [0.4.0] - 2026-11-20
|
|
11
10
|
|
|
12
11
|
### Added
|
|
13
12
|
|
|
@@ -93,6 +92,15 @@ These entries ship in 0.4.0, which is not published yet (the latest release is
|
|
|
93
92
|
that contains them (the registry pins `^0.3.0`, which does not).
|
|
94
93
|
`registry:integrity` now fails when a registry item imports a name that
|
|
95
94
|
`@vllnt/ui` does not export. (#543)
|
|
95
|
+
- **`copyText` helper** - `copyText(value): Promise<boolean>` is exported from
|
|
96
|
+
`@vllnt/ui`. It writes through the Clipboard API, falls back to a temporary
|
|
97
|
+
textarea and `document.execCommand("copy")` when that API is missing or
|
|
98
|
+
rejects, and resolves to `false` when neither path works. (#576)
|
|
99
|
+
- **Text `family` prop** - `family="mono"` sets body copy in `--font-mono`
|
|
100
|
+
(JetBrains Mono by default) with the same scale: `size="base"` 16/1.6,
|
|
101
|
+
`size="lead"` 18/1.7. The default stays `family="sans"`. (#666)
|
|
102
|
+
- **`@vllnt/ui/package.json` export** - tools can read the package manifest
|
|
103
|
+
(for example its version) without `ERR_PACKAGE_PATH_NOT_EXPORTED`. (#665)
|
|
96
104
|
|
|
97
105
|
### Changed
|
|
98
106
|
|
|
@@ -206,12 +214,31 @@ These entries ship in 0.4.0, which is not published yet (the latest release is
|
|
|
206
214
|
the ScrollArea viewport is a tab stop only while its content scrolls.
|
|
207
215
|
- TreeView supports Home / End, ArrowRight to the first child and ArrowLeft
|
|
208
216
|
to the parent, and keeps the active row in view.
|
|
217
|
+
- **Core caption and label weights match the Penpot library** -
|
|
218
|
+
`font.weight.caption` is 400 (was 500) and `font.weight.label` /
|
|
219
|
+
`--font-weight-label` is 500 (was 600). No shipped web component reads
|
|
220
|
+
them; read `--font-weight-label` directly and labels get lighter. The Maia
|
|
221
|
+
theme keeps its Ink scale (caption 500, label 600). Radius is unchanged:
|
|
222
|
+
`radius.control` 6 and `radius.surface` 8 are the shared role names. (#669)
|
|
209
223
|
|
|
210
224
|
### Fixed
|
|
211
225
|
|
|
212
226
|
- **Tap targets** - the NavbarSaas links, the Breadcrumb crumbs, the
|
|
213
227
|
TableOfContents buttons and the Sidebar family heading link are at least
|
|
214
228
|
24 px tall (WCAG 2.5.8); they were 20 px.
|
|
229
|
+
- **Close button target size** - the close buttons of `DialogContent`,
|
|
230
|
+
`SheetContent` and `CompletionDialog` were 16 px. They are at least 24 x 24 px
|
|
231
|
+
around the same 16 px icon (WCAG 2.5.8). (#576)
|
|
232
|
+
- **Copy without the Clipboard API** - `useCopyToClipboard` (so `CopyButton`,
|
|
233
|
+
`CodeBlock`, `Terminal` and the other copy controls) and
|
|
234
|
+
`AIArtifactCopyButton` fall back to a temporary textarea and
|
|
235
|
+
`document.execCommand("copy")` when `navigator.clipboard` is missing (plain
|
|
236
|
+
http, such as a Tailnet IP) or `writeText` rejects. The fallback works inside
|
|
237
|
+
modal dialogs, alert dialogs, native `dialog` elements and modal menus, keeps
|
|
238
|
+
the text the user had selected on the page, and returns focus only when it
|
|
239
|
+
came from the keyboard. `copied` stays `false` when both paths fail.
|
|
240
|
+
`FlowDiagram` copies a PNG, so it has no text fallback and keeps reporting
|
|
241
|
+
"Copy failed". (#576)
|
|
215
242
|
- **Accordion accessibility** - each trigger now has `aria-controls` pointing
|
|
216
243
|
at its panel, and each panel is a `region` labelled by its trigger. Closed
|
|
217
244
|
panels are `inert`, so screen readers no longer read closed answers and Tab
|
|
@@ -402,6 +429,7 @@ These entries ship in 0.4.0, which is not published yet (the latest release is
|
|
|
402
429
|
|
|
403
430
|
- Initial public publish to the public npm registry.
|
|
404
431
|
|
|
432
|
+
[0.4.0]: https://github.com/vllnt/ui/releases/tag/v0.4.0
|
|
405
433
|
[0.3.0]: https://github.com/vllnt/ui/releases/tag/v0.3.0
|
|
406
434
|
[0.2.1]: https://github.com/vllnt/ui/releases/tag/v0.2.1
|
|
407
435
|
[0.2.0]: https://github.com/vllnt/ui/releases/tag/v0.2.0
|
|
@@ -43,7 +43,7 @@ const DialogContent = ({
|
|
|
43
43
|
...props,
|
|
44
44
|
children: [
|
|
45
45
|
children,
|
|
46
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-
|
|
46
|
+
/* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "absolute right-3 top-3 inline-flex min-h-6 min-w-6 items-center justify-center rounded-sm p-1 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
47
47
|
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
48
48
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
49
49
|
] })
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
import { createElement } from "react";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { cn } from "../../../lib/utils.js";
|
|
4
|
-
const textVariants = cva(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const textVariants = cva("text-foreground", {
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
family: "sans",
|
|
7
|
+
size: "base",
|
|
8
|
+
tone: "default",
|
|
9
|
+
weight: "normal"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
family: {
|
|
13
|
+
mono: "font-[family-name:var(--font-mono)]",
|
|
14
|
+
sans: "font-[family-name:var(--font-sans)]"
|
|
11
15
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
semibold: "font-semibold"
|
|
27
|
-
}
|
|
16
|
+
size: {
|
|
17
|
+
base: "text-[length:var(--font-size-body)] leading-[var(--line-height-body)]",
|
|
18
|
+
caption: "text-[length:var(--font-size-caption)] leading-[var(--line-height-caption)]",
|
|
19
|
+
lead: "text-[length:var(--font-size-body-lg)] leading-[var(--line-height-body-lg)]",
|
|
20
|
+
small: "text-[length:var(--font-size-body-sm)] leading-[var(--line-height-body-sm)]"
|
|
21
|
+
},
|
|
22
|
+
tone: {
|
|
23
|
+
default: "",
|
|
24
|
+
muted: "text-muted-foreground"
|
|
25
|
+
},
|
|
26
|
+
weight: {
|
|
27
|
+
medium: "font-medium",
|
|
28
|
+
normal: "font-normal",
|
|
29
|
+
semibold: "font-semibold"
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
);
|
|
32
|
+
});
|
|
31
33
|
const Text = ({
|
|
32
34
|
as = "p",
|
|
33
35
|
className,
|
|
36
|
+
family,
|
|
34
37
|
ref,
|
|
35
38
|
size,
|
|
36
39
|
tone,
|
|
37
40
|
weight,
|
|
38
41
|
...props
|
|
39
42
|
}) => createElement(as, {
|
|
40
|
-
className: cn(textVariants({ size, tone, weight }), className),
|
|
43
|
+
className: cn(textVariants({ family, size, tone, weight }), className),
|
|
41
44
|
ref,
|
|
42
45
|
...props
|
|
43
46
|
});
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
Minimize2,
|
|
18
18
|
Pencil
|
|
19
19
|
} from "lucide-react";
|
|
20
|
+
import { copyText } from "../../../lib/copy-text.js";
|
|
20
21
|
import { cn } from "../../../lib/utils.js";
|
|
21
22
|
import { Badge } from "../../atoms/badge/badge.js";
|
|
22
23
|
import { Button } from "../../atoms/button/button.js";
|
|
@@ -92,17 +93,6 @@ function buildFilename({
|
|
|
92
93
|
const safeBase = slug.length > 0 ? slug : "artifact";
|
|
93
94
|
return `${safeBase}.${pickExtension(type, language)}`;
|
|
94
95
|
}
|
|
95
|
-
async function writeToClipboard(value) {
|
|
96
|
-
if (typeof navigator === "undefined" || typeof navigator.clipboard?.writeText !== "function") {
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
try {
|
|
100
|
-
await navigator.clipboard.writeText(value);
|
|
101
|
-
return true;
|
|
102
|
-
} catch {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
96
|
function downloadValueAsFile(value, filename) {
|
|
107
97
|
if (typeof document === "undefined") return;
|
|
108
98
|
const blob = new Blob([value], { type: "text/plain;charset=utf-8" });
|
|
@@ -167,7 +157,7 @@ function useArtifactController(options) {
|
|
|
167
157
|
[filename, language, title, type]
|
|
168
158
|
);
|
|
169
159
|
const copy = useCallback(async () => {
|
|
170
|
-
const ok = await
|
|
160
|
+
const ok = await copyText(value);
|
|
171
161
|
if (!ok) return false;
|
|
172
162
|
flagCopied();
|
|
173
163
|
return true;
|
|
@@ -12,7 +12,7 @@ function DialogCloseButton({
|
|
|
12
12
|
DialogPrimitive.Close,
|
|
13
13
|
{
|
|
14
14
|
"aria-label": "Close",
|
|
15
|
-
className: "absolute right-
|
|
15
|
+
className: "absolute right-3 top-3 inline-flex min-h-6 min-w-6 items-center justify-center rounded-sm p-1 opacity-70 hover:opacity-100 transition-opacity focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
16
16
|
children: closeIcon ?? /* @__PURE__ */ jsx(
|
|
17
17
|
"svg",
|
|
18
18
|
{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { copyText } from "../../../lib/copy-text.js";
|
|
3
4
|
const FALLBACK_TIMEOUT_MS = 2e3;
|
|
4
5
|
function useCopyToClipboard(options = {}) {
|
|
5
6
|
const { timeout = FALLBACK_TIMEOUT_MS } = options;
|
|
@@ -18,20 +19,17 @@ function useCopyToClipboard(options = {}) {
|
|
|
18
19
|
}, []);
|
|
19
20
|
const copy = useCallback(
|
|
20
21
|
async (value) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
await navigator.clipboard.writeText(value);
|
|
26
|
-
if (timerRef.current !== void 0) clearTimeout(timerRef.current);
|
|
27
|
-
setCopied(true);
|
|
28
|
-
timerRef.current = setTimeout(() => {
|
|
29
|
-
setCopied(false);
|
|
30
|
-
}, timeout);
|
|
31
|
-
return true;
|
|
32
|
-
} catch {
|
|
22
|
+
const ok = await copyText(value);
|
|
23
|
+
if (timerRef.current !== void 0) clearTimeout(timerRef.current);
|
|
24
|
+
if (!ok) {
|
|
25
|
+
setCopied(false);
|
|
33
26
|
return false;
|
|
34
27
|
}
|
|
28
|
+
setCopied(true);
|
|
29
|
+
timerRef.current = setTimeout(() => {
|
|
30
|
+
setCopied(false);
|
|
31
|
+
}, timeout);
|
|
32
|
+
return true;
|
|
35
33
|
},
|
|
36
34
|
[timeout]
|
|
37
35
|
);
|
package/dist/index.d.ts
CHANGED
|
@@ -5143,8 +5143,9 @@ type CopyButtonProps = {
|
|
|
5143
5143
|
* Click-to-copy button with confirmation feedback.
|
|
5144
5144
|
*
|
|
5145
5145
|
* Composes {@link Button} and {@link Tooltip}. Copies `value` to the clipboard
|
|
5146
|
-
* via the async Clipboard API
|
|
5147
|
-
* visually hidden
|
|
5146
|
+
* via the async Clipboard API, or a textarea copy where that API is missing
|
|
5147
|
+
* (plain http), and announces success to assistive tech via a visually hidden
|
|
5148
|
+
* status region.
|
|
5148
5149
|
*
|
|
5149
5150
|
* @example
|
|
5150
5151
|
* ```tsx
|
|
@@ -5179,7 +5180,11 @@ type UseCopyToClipboardOptions = {
|
|
|
5179
5180
|
type UseCopyToClipboardResult = {
|
|
5180
5181
|
/** True for `timeout` ms after the most recent successful copy. */
|
|
5181
5182
|
copied: boolean;
|
|
5182
|
-
/**
|
|
5183
|
+
/**
|
|
5184
|
+
* Writes `value` to the clipboard. Resolves to `true` on success. Resolves to
|
|
5185
|
+
* `false` when the copy fails and sets `copied` back to `false`. Falls back
|
|
5186
|
+
* to a textarea copy where the async Clipboard API is missing (plain http).
|
|
5187
|
+
*/
|
|
5183
5188
|
copy: (value: string) => Promise<boolean>;
|
|
5184
5189
|
/** Clears the `copied` flag and pending timer. */
|
|
5185
5190
|
reset: () => void;
|
|
@@ -14180,6 +14185,7 @@ declare const PanelFooter: {
|
|
|
14180
14185
|
* compose the same token-driven styles onto bespoke elements.
|
|
14181
14186
|
*/
|
|
14182
14187
|
declare const textVariants: (props?: ({
|
|
14188
|
+
family?: "mono" | "sans" | null | undefined;
|
|
14183
14189
|
size?: "base" | "caption" | "lead" | "small" | null | undefined;
|
|
14184
14190
|
tone?: "default" | "muted" | null | undefined;
|
|
14185
14191
|
weight?: "medium" | "normal" | "semibold" | null | undefined;
|
|
@@ -14193,17 +14199,21 @@ type TextProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof textVar
|
|
|
14193
14199
|
};
|
|
14194
14200
|
/**
|
|
14195
14201
|
* Body text whose family, scale, and weight come from theme-overridable tokens
|
|
14196
|
-
* (`--font-sans`, `--font-size-body*`). Polymorphic via `as`.
|
|
14197
|
-
* the rendered element.
|
|
14202
|
+
* (`--font-sans` or `--font-mono`, `--font-size-body*`). Polymorphic via `as`.
|
|
14203
|
+
* Forwards `ref` to the rendered element.
|
|
14204
|
+
*
|
|
14205
|
+
* `family="mono"` sets the same scale in the mono family (JetBrains Mono by
|
|
14206
|
+
* default): `size="base"` is 16/1.6 and `size="lead"` 18/1.7.
|
|
14198
14207
|
*
|
|
14199
14208
|
* Use `tone="muted"` on the default `background`; on `muted`/`card` surfaces the
|
|
14200
14209
|
* muted foreground can fall below WCAG AA contrast for body text.
|
|
14201
14210
|
*
|
|
14202
14211
|
* @example
|
|
14203
14212
|
* <Text size="lead" tone="muted">Intro copy</Text>
|
|
14213
|
+
* <Text family="mono" size="lead">Mono intro copy</Text>
|
|
14204
14214
|
*/
|
|
14205
14215
|
declare const Text: {
|
|
14206
|
-
({ as, className, ref, size, tone, weight, ...props }: TextProps): react.DetailedReactHTMLElement<{
|
|
14216
|
+
({ as, className, family, ref, size, tone, weight, ...props }: TextProps): react.DetailedReactHTMLElement<{
|
|
14207
14217
|
children?: react.ReactNode | undefined;
|
|
14208
14218
|
dangerouslySetInnerHTML?: {
|
|
14209
14219
|
__html: string | TrustedHTML;
|
|
@@ -14950,6 +14960,35 @@ declare const DEFAULT_THEME_PRESET: ThemePresetName;
|
|
|
14950
14960
|
/** Narrowing guard for an arbitrary string to a known preset name. */
|
|
14951
14961
|
declare function isThemePresetName(value: string): value is ThemePresetName;
|
|
14952
14962
|
|
|
14963
|
+
/**
|
|
14964
|
+
* Writes `value` to the clipboard and resolves to `true` on success.
|
|
14965
|
+
*
|
|
14966
|
+
* Uses the async Clipboard API, which browsers hide outside secure contexts
|
|
14967
|
+
* (https, localhost). When the API is absent (plain http, such as a Tailnet IP)
|
|
14968
|
+
* or `writeText` rejects, it falls back to a temporary off-screen textarea and
|
|
14969
|
+
* `document.execCommand("copy")`. The textarea mounts inside the focused
|
|
14970
|
+
* element, or next to it when that element is a form control: a modal focus
|
|
14971
|
+
* trap (dialog, alert dialog, menu) or an inert page would otherwise take the
|
|
14972
|
+
* selection back and leave the clipboard unchanged. The fallback gives back the
|
|
14973
|
+
* text the user had selected on the page. It also gives back focus when it
|
|
14974
|
+
* came from the keyboard (`:focus-visible`), but not focus a pointer click
|
|
14975
|
+
* gave: restoring that fires focus handlers late, and the tooltip of a
|
|
14976
|
+
* button the pointer already left would open and stay open. Resolves to
|
|
14977
|
+
* `false` when neither path works.
|
|
14978
|
+
*
|
|
14979
|
+
* Call it from a user gesture such as a click handler; browsers refuse
|
|
14980
|
+
* clipboard writes otherwise.
|
|
14981
|
+
*
|
|
14982
|
+
* @param value - The text to copy.
|
|
14983
|
+
* @returns Whether the text reached the clipboard.
|
|
14984
|
+
*
|
|
14985
|
+
* @example
|
|
14986
|
+
* ```ts
|
|
14987
|
+
* const ok = await copyText(apiKey)
|
|
14988
|
+
* ```
|
|
14989
|
+
*/
|
|
14990
|
+
declare function copyText(value: string): Promise<boolean>;
|
|
14991
|
+
|
|
14953
14992
|
/** Format a percentage change with a leading "+" for gains: `+1.20%` / `-3.40%`. */
|
|
14954
14993
|
declare function formatChange(change: number): string;
|
|
14955
14994
|
/** Coerce a Date, timestamp, or date string into a new Date instance. */
|
|
@@ -15165,5 +15204,5 @@ declare function useThemePreset(): UseThemePresetResult;
|
|
|
15165
15204
|
|
|
15166
15205
|
declare function cn(...inputs: ClassValue[]): string;
|
|
15167
15206
|
|
|
15168
|
-
export { AIArtifact, AIArtifactContent, AIArtifactCopyButton, AIArtifactDownloadButton, AIArtifactEditButton, AIArtifactFullscreenButton, AIArtifactToolbar, AIArtifactVersion, AIArtifactVersions, AIChatInput, AIMessageBubble, AISidebar, AISidebarClose, AISidebarContent, AISidebarFooter, AISidebarHeader, AISidebarProvider, AISidebarTitle, AISidebarTrigger, AISourceCitation, AIStreamingText, AIToolCallDisplay, AccessMatrix, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityHeatmap, ActivityLog, AgentActivity, AgentStep, AgentStepDetail, AgentStepDuration, AgentStepProgress, AgentStepTitle, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertPulse, AlertTitle, AnchorPort, AnimatedBeam, AnimatedGridPattern, AnimatedList, AnimatedTabs, AnimatedTestimonials, AnimatedText, AnimatedTooltip, Annotation, ApprovalRequest, AreaChart, AspectRatio, AutoReload, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Banner, BannerAction, BarChart, BeforeAfter, BentoCard, BentoGrid, Blockquote, BlogCard, BlurReveal, BorderBeam, BottomActivityStrip, BottomBar, Breadcrumb, Button, ButtonGroup, CHECKLIST_PROGRESS_EVENT, CUSTOM_THEME_NAME, Calendar, Callout, CandlestickChart, CanvasShell, CanvasView, Card, CardContent, CardDescription, CardFlip, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryFilter, ChainOfThought, ChatDockSection, Checkbox, CheckboxGroup, CheckboxGroupItem, Checklist, ChoroplethLegend, ChoroplethMap, ChoroplethTooltip, ChronoEvent, ChronologicalTimeline, CivilizationCard, CivilizationComparison, CodeBlock, CodePlayground, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentPin, CommonMistake, Comparison, CompletionDialog, ConnectorEdge, Content, ContentCard$1 as ContentCard, ContentIntro, ContextLens, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContributionGraph, ConversationEmpty, ConversationHeader, ConversationLoading, ConversationMessages, ConversationScrollButton, ConversationSuggestions, ConversationThread, ConversationTitle, CookieConsent, CopyButton, CountdownTimer, CreditBadge, CtaBand, Curriculum, CurriculumLesson, CurriculumModule, Cursor, DEFAULT_THEME_PRESET, DataList, DataListItem, DataListLabel, DataListValue, DataTableComponent as DataTable, DateField, DatePicker, DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Dock, DockIcon, DocumentSiblingNav, DotPattern, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeLabel, EmptyState, EraColumn, EraComparison, EraDomain, EraFigure, EraHighlight, Exercise, ExpandableCards, FAQ, FAQItem, Field, FieldControl, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetContent, FieldsetLegend, FileTree, FileUpload, FilterBar, Flashcard, FloatingActionButton, FloatingNavbar, FloatingToolbar, FlowCanvas, FlowControls, FlowDiagram, FlowErrorBoundary, FlowFullscreen, FollowMode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GanttChart, GaugeChart, GeographyQuizMap, GeographyQuizMapPrompt, GeographyQuizMapResults, GeographyQuizMapScore, GlassCard, GlassPanel, GlassProgress, Globe3D, GlobeArc, GlobeMarker, Glossary, Grid, GroupHull, H1, H2, H3, H4, HandoffBeacon, Heading, HeatMapOverlay, HeatOverlay, Highlight, HistoricTimeline, HistoricalFigureCard, HorizontalScrollRow, HoverCard, HoverCardContent, HoverCardTrigger, InfinitePlane, InlineCode, InlineInput, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InteractiveTimeline, InteractiveTimelineFilter, InteractiveTimelineToday, InteractiveTimelineToolbar, InteractiveTimelineZoomIn, InteractiveTimelineZoomOut, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, JarvisDock, Kbd, KeyConcept, KeyboardShortcutsHelp, KnowledgeCheck, LANGUAGE_NAMES, Label, LangProvider, Lead, LearningObjectives, LeftRail, LineChart, Link, LiquidGlass, List, ListBox, ListBoxItem, LiveCursor, LiveFeed, MDXContent, Magnetic, MagneticButton, Map2D, MapControls, MapLayer, MapMarker, MapMarkerIcon, MapPopup, MapTimeline, MapTimelineControls, MapTimelineEvent, MapTimelineLayer, MapTimelinePlayButton, MapTimelineSlider, MapZoomIn, MapZoomOut, MarketTreemap, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meteors, Meter, MetricCluster, MetricGauge, MiniMapPanel, ModelComparison, ModelComparisonColumn, ModelComparisonMeta, ModelComparisonVote, ModelSelector, MultiSelect, MultiSelectLasso, Muted, NativeSelect, NavbarSaas, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NewsletterSignup, NumberInput, NumberTicker, ObjectCard, ObjectHandle, ObjectInspector, OrderBook, OrderSummary, OverviewBoard, OverviewCard, P, Pagination, Panel, PanelBody, PanelDescription, PanelFooter, PanelHeader, PanelTitle, ParallelTimeline, Particles, PasswordInput, PhoneInput, PieChart, PlanBadge, PlaybackGhost, PolicyDeliveryPanel, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Prerequisites, PresenceStack, PresenceSyncIndicator, PricingPlan, PricingTable, PrimarySourceAnnotation, PrimarySourceAnnotations, PrimarySourceContext, PrimarySourceMetadata, PrimarySourceQuestions, PrimarySourceRotate, PrimarySourceToolbar, PrimarySourceTranscription, PrimarySourceViewer, PrimarySourceZoomIn, PrimarySourceZoomOut, ProTip, ProfileSection, ProgressBar, ContentCard as ProgressCard, ProgressTracker, ProgressTrackerBadge, ProgressTrackerModule, ProgressTrackerModules, ProgressTrackerOverview, ProgressTrackerStat, ProgressTrackerStats, ProgressiveBlur, PromptInput, PromptTemplates, PropertySection, Prose, PullQuote, QrCode, Quiz, RadarChart, RadioGroup, RadioGroupItem, RangeCalendar, Rating, Reasoning, RelationshipInspector, ResizableHandle, ResizablePanel, ResizablePanelGroup, RevealText, RightDock, RoleBadge, RouteMap, RoutingAssignmentPanel, RunTimeline, RuntimeOverviewPanel, STATUS_TONES, SankeyChart, ScopeSelector, ScrambleText, Scrim, ScrollArea, ScrollBar, ScrollProgress, SearchBar, SearchDialog, SearchField, SegmentedControl, SegmentedControlItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectionHalo, SelectionPresence, Separator, SettingsList, SettingsListItem, SeverityBadge, ShareDialog, ShareDialogPeople, ShareSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerButton, ShimmerText, ShineBorder, ShinyButton, Sidebar, SidebarProvider, SidebarToggle, SimpleTerminal, Skeleton, Slider, Slideshow, SnapGuides, SocialFAB, Sparkles, SparklineGrid, Spinner, SpinningText, SpotlightCard, StatCard, StateBadgeOverlay, StaticCode, StatusBoard, StatusIndicator, Step, StepByStep, StepNavigation, Stepper, StickyMetric, StoryMap, StoryMapChapter, SubscriptionCard, Summary, Switch, THEME_CUSTOM_CSS_STORAGE_KEY, THEME_CUSTOM_STYLE_ID, THEME_PRESETS, THEME_PRESET_STORAGE_KEY, TLDRSection, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableOfContentsPanel, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagGroup, TagGroupItem, TagsInput, Terminal, Text, TextAnimate, TextField, TextReveal, TextShimmer, Textarea, ThemePresetProvider, ThemeProvider, ThemeSwitcher, ThemeToggle, ThinkingBlock, ThreadBubble, ThresholdRing, TickerTape, TiltCard, TimeField, TimePicker, Timeline, TimelineItem, TimelineScrubber, Toast, ToastAction, ToastClose, ToastDescription, ToastTitle, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, Tour, TransactionList, TransactionListPinned, TransactionListSubscriptionRow, TreeView, TruncatedText, TutorialCard, TutorialComplete, TutorialFilters, TutorialIntroContent, TutorialMDX, Typewriter, UnicodeSpinner, UsageBreakdown, VideoEmbed, ViewSwitcher, ViewportBookmarks, WalletCard, Watchlist, WorkspaceSwitcher, WorldBreadcrumbs, WorldClockBar, ZoomHUD, alertVariants, avatarGroupVariants, avatarItemVariants, badgeVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, cookieConsentVariants, dataListItemVariants, dataListVariants, navVariants as documentSiblingNavVariants, dotVariants, emptyStateVariants, fieldVariants, focusCalendarDay, formatChange, formatTransactionAmount, formatTransactionDate, getOtherLanguage, inputGroupAddonVariants, inputGroupVariants, isStatusTone, isThemePresetName, itemVariants, kbdVariants, linkVariants, mdxComponents, meterFillVariants, moveRovingFocus, navigationMenuTriggerStyle, reducer as newsletterSignupReducer, normalizeDate, parseChecklistStorageValue, segmentedControlItemVariants, segmentedControlVariants, setCustomTheme, setThemePreset, severityBadgeVariants, statCardVariants, statusDotVariants, statusIndicatorVariants, textVariants, timelineVariants, toggleVariants, typographyVariants, useAIArtifact, useAISidebar, useAgentStepStatus, useBodyScrollLock, useCopyToClipboard, useDebounce, useEraColumnColor, useEscapeKey, useEventCallback, useFlowDiagram, useFocusContainment, useFormField, useHorizontalScroll, useLiveDate, useMobile, useMounted, useProgressTrackerContext, useReturnFocus, useSidebar, useSocialFab, useThemePreset, useTimelineOrientation };
|
|
15207
|
+
export { AIArtifact, AIArtifactContent, AIArtifactCopyButton, AIArtifactDownloadButton, AIArtifactEditButton, AIArtifactFullscreenButton, AIArtifactToolbar, AIArtifactVersion, AIArtifactVersions, AIChatInput, AIMessageBubble, AISidebar, AISidebarClose, AISidebarContent, AISidebarFooter, AISidebarHeader, AISidebarProvider, AISidebarTitle, AISidebarTrigger, AISourceCitation, AIStreamingText, AIToolCallDisplay, AccessMatrix, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityHeatmap, ActivityLog, AgentActivity, AgentStep, AgentStepDetail, AgentStepDuration, AgentStepProgress, AgentStepTitle, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertPulse, AlertTitle, AnchorPort, AnimatedBeam, AnimatedGridPattern, AnimatedList, AnimatedTabs, AnimatedTestimonials, AnimatedText, AnimatedTooltip, Annotation, ApprovalRequest, AreaChart, AspectRatio, AutoReload, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Banner, BannerAction, BarChart, BeforeAfter, BentoCard, BentoGrid, Blockquote, BlogCard, BlurReveal, BorderBeam, BottomActivityStrip, BottomBar, Breadcrumb, Button, ButtonGroup, CHECKLIST_PROGRESS_EVENT, CUSTOM_THEME_NAME, Calendar, Callout, CandlestickChart, CanvasShell, CanvasView, Card, CardContent, CardDescription, CardFlip, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryFilter, ChainOfThought, ChatDockSection, Checkbox, CheckboxGroup, CheckboxGroupItem, Checklist, ChoroplethLegend, ChoroplethMap, ChoroplethTooltip, ChronoEvent, ChronologicalTimeline, CivilizationCard, CivilizationComparison, CodeBlock, CodePlayground, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentPin, CommonMistake, Comparison, CompletionDialog, ConnectorEdge, Content, ContentCard$1 as ContentCard, ContentIntro, ContextLens, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContributionGraph, ConversationEmpty, ConversationHeader, ConversationLoading, ConversationMessages, ConversationScrollButton, ConversationSuggestions, ConversationThread, ConversationTitle, CookieConsent, CopyButton, CountdownTimer, CreditBadge, CtaBand, Curriculum, CurriculumLesson, CurriculumModule, Cursor, DEFAULT_THEME_PRESET, DataList, DataListItem, DataListLabel, DataListValue, DataTableComponent as DataTable, DateField, DatePicker, DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Dock, DockIcon, DocumentSiblingNav, DotPattern, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EdgeLabel, EmptyState, EraColumn, EraComparison, EraDomain, EraFigure, EraHighlight, Exercise, ExpandableCards, FAQ, FAQItem, Field, FieldControl, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetContent, FieldsetLegend, FileTree, FileUpload, FilterBar, Flashcard, FloatingActionButton, FloatingNavbar, FloatingToolbar, FlowCanvas, FlowControls, FlowDiagram, FlowErrorBoundary, FlowFullscreen, FollowMode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GanttChart, GaugeChart, GeographyQuizMap, GeographyQuizMapPrompt, GeographyQuizMapResults, GeographyQuizMapScore, GlassCard, GlassPanel, GlassProgress, Globe3D, GlobeArc, GlobeMarker, Glossary, Grid, GroupHull, H1, H2, H3, H4, HandoffBeacon, Heading, HeatMapOverlay, HeatOverlay, Highlight, HistoricTimeline, HistoricalFigureCard, HorizontalScrollRow, HoverCard, HoverCardContent, HoverCardTrigger, InfinitePlane, InlineCode, InlineInput, Input, InputGroup, InputGroupAddon, InputGroupInput, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InteractiveTimeline, InteractiveTimelineFilter, InteractiveTimelineToday, InteractiveTimelineToolbar, InteractiveTimelineZoomIn, InteractiveTimelineZoomOut, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, JarvisDock, Kbd, KeyConcept, KeyboardShortcutsHelp, KnowledgeCheck, LANGUAGE_NAMES, Label, LangProvider, Lead, LearningObjectives, LeftRail, LineChart, Link, LiquidGlass, List, ListBox, ListBoxItem, LiveCursor, LiveFeed, MDXContent, Magnetic, MagneticButton, Map2D, MapControls, MapLayer, MapMarker, MapMarkerIcon, MapPopup, MapTimeline, MapTimelineControls, MapTimelineEvent, MapTimelineLayer, MapTimelinePlayButton, MapTimelineSlider, MapZoomIn, MapZoomOut, MarketTreemap, Marquee, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Meteors, Meter, MetricCluster, MetricGauge, MiniMapPanel, ModelComparison, ModelComparisonColumn, ModelComparisonMeta, ModelComparisonVote, ModelSelector, MultiSelect, MultiSelectLasso, Muted, NativeSelect, NavbarSaas, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NewsletterSignup, NumberInput, NumberTicker, ObjectCard, ObjectHandle, ObjectInspector, OrderBook, OrderSummary, OverviewBoard, OverviewCard, P, Pagination, Panel, PanelBody, PanelDescription, PanelFooter, PanelHeader, PanelTitle, ParallelTimeline, Particles, PasswordInput, PhoneInput, PieChart, PlanBadge, PlaybackGhost, PolicyDeliveryPanel, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Prerequisites, PresenceStack, PresenceSyncIndicator, PricingPlan, PricingTable, PrimarySourceAnnotation, PrimarySourceAnnotations, PrimarySourceContext, PrimarySourceMetadata, PrimarySourceQuestions, PrimarySourceRotate, PrimarySourceToolbar, PrimarySourceTranscription, PrimarySourceViewer, PrimarySourceZoomIn, PrimarySourceZoomOut, ProTip, ProfileSection, ProgressBar, ContentCard as ProgressCard, ProgressTracker, ProgressTrackerBadge, ProgressTrackerModule, ProgressTrackerModules, ProgressTrackerOverview, ProgressTrackerStat, ProgressTrackerStats, ProgressiveBlur, PromptInput, PromptTemplates, PropertySection, Prose, PullQuote, QrCode, Quiz, RadarChart, RadioGroup, RadioGroupItem, RangeCalendar, Rating, Reasoning, RelationshipInspector, ResizableHandle, ResizablePanel, ResizablePanelGroup, RevealText, RightDock, RoleBadge, RouteMap, RoutingAssignmentPanel, RunTimeline, RuntimeOverviewPanel, STATUS_TONES, SankeyChart, ScopeSelector, ScrambleText, Scrim, ScrollArea, ScrollBar, ScrollProgress, SearchBar, SearchDialog, SearchField, SegmentedControl, SegmentedControlItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectionHalo, SelectionPresence, Separator, SettingsList, SettingsListItem, SeverityBadge, ShareDialog, ShareDialogPeople, ShareSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerButton, ShimmerText, ShineBorder, ShinyButton, Sidebar, SidebarProvider, SidebarToggle, SimpleTerminal, Skeleton, Slider, Slideshow, SnapGuides, SocialFAB, Sparkles, SparklineGrid, Spinner, SpinningText, SpotlightCard, StatCard, StateBadgeOverlay, StaticCode, StatusBoard, StatusIndicator, Step, StepByStep, StepNavigation, Stepper, StickyMetric, StoryMap, StoryMapChapter, SubscriptionCard, Summary, Switch, THEME_CUSTOM_CSS_STORAGE_KEY, THEME_CUSTOM_STYLE_ID, THEME_PRESETS, THEME_PRESET_STORAGE_KEY, TLDRSection, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableOfContentsPanel, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagGroup, TagGroupItem, TagsInput, Terminal, Text, TextAnimate, TextField, TextReveal, TextShimmer, Textarea, ThemePresetProvider, ThemeProvider, ThemeSwitcher, ThemeToggle, ThinkingBlock, ThreadBubble, ThresholdRing, TickerTape, TiltCard, TimeField, TimePicker, Timeline, TimelineItem, TimelineScrubber, Toast, ToastAction, ToastClose, ToastDescription, ToastTitle, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarSeparator, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, Tour, TransactionList, TransactionListPinned, TransactionListSubscriptionRow, TreeView, TruncatedText, TutorialCard, TutorialComplete, TutorialFilters, TutorialIntroContent, TutorialMDX, Typewriter, UnicodeSpinner, UsageBreakdown, VideoEmbed, ViewSwitcher, ViewportBookmarks, WalletCard, Watchlist, WorkspaceSwitcher, WorldBreadcrumbs, WorldClockBar, ZoomHUD, alertVariants, avatarGroupVariants, avatarItemVariants, badgeVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, cookieConsentVariants, copyText, dataListItemVariants, dataListVariants, navVariants as documentSiblingNavVariants, dotVariants, emptyStateVariants, fieldVariants, focusCalendarDay, formatChange, formatTransactionAmount, formatTransactionDate, getOtherLanguage, inputGroupAddonVariants, inputGroupVariants, isStatusTone, isThemePresetName, itemVariants, kbdVariants, linkVariants, mdxComponents, meterFillVariants, moveRovingFocus, navigationMenuTriggerStyle, reducer as newsletterSignupReducer, normalizeDate, parseChecklistStorageValue, segmentedControlItemVariants, segmentedControlVariants, setCustomTheme, setThemePreset, severityBadgeVariants, statCardVariants, statusDotVariants, statusIndicatorVariants, textVariants, timelineVariants, toggleVariants, typographyVariants, useAIArtifact, useAISidebar, useAgentStepStatus, useBodyScrollLock, useCopyToClipboard, useDebounce, useEraColumnColor, useEscapeKey, useEventCallback, useFlowDiagram, useFocusContainment, useFormField, useHorizontalScroll, useLiveDate, useMobile, useMounted, useProgressTrackerContext, useReturnFocus, useSidebar, useSocialFab, useThemePreset, useTimelineOrientation };
|
|
15169
15208
|
export type { AIArtifactLabels, AIArtifactProps, AIArtifactType, AIArtifactVersionProps, AIChatInputProps, AIMessageBubbleProps, AISidebarLabels, AISidebarPosition, AISidebarProps, AISidebarProviderProps, AISidebarTriggerProps, AISourceCitationProps, AIStreamingTextProps, AIToolCallDisplayProps, AIToolCallStatus, AccessMatrixChangeHandler, AccessMatrixLabels, AccessMatrixMode, AccessMatrixPermission, AccessMatrixProps, AccessMatrixState, AccessMatrixSubject, AccessMatrixValue, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, ActivityEvent, ActivityHeatmapItem, ActivityHeatmapProps, ActivityLogItem, ActivityLogProps, ActivityLogTone, ActivityStripTone, AgentActivityLabels, AgentActivityProps, AgentActivityStatus, AgentStepDetailProps, AgentStepDurationProps, AgentStepProgressProps, AgentStepProps, AgentStepStatus, AgentStepTitleProps, AlertPulseLabels, AlertPulseProps, AlertPulseSeverity, AnchorPortProps, AnimatedBeamProps, AnimatedGridPatternProps, AnimatedListProps, AnimatedTab, AnimatedTabsProps, AnimatedTestimonialsProps, AnimatedTextProps, AnimatedTooltipProps, AnnotationColor, AnnotationProps, AnnotationRegion, ApprovalRequestLabels, ApprovalRequestPlacement, ApprovalRequestProps, ApprovalRequestRemember, ApprovalRequestRisk, ApprovalRequestStatus, AreaChartProps, AutoReloadLabels, AutoReloadProps, AutoReloadSavePayload, AvatarGroupItem, AvatarGroupProps, AvatarPresence, AvatarProps, AvatarShape, AvatarSize, BadgeProps, BannerActionProps, BannerProps, BannerVariant, BarChartProps, BeforeAfterProps, BentoCardProps, BentoGridProps, BlockquoteProps, BlurRevealProps, BorderBeamProps, BottomActivityStripLabels, BottomActivityStripProps, BottomBarProps, BreadcrumbItem, BreadcrumbLabels, BreadcrumbProps, ButtonGroupProps, ButtonProps, CalendarProps, CalloutProps, CalloutVariant, CandlestickChartProps, CandlestickDatum, CanvasShellInsets, CanvasShellProps, CanvasShellRouteConfig, CanvasViewHandle, CanvasViewProps, CanvasViewport, CardFlipProps, CarouselApi, CarouselProps, CategoryFilterProps, ChainOfThoughtProps, ChainOfThoughtStatus, ChainOfThoughtStep, ChatDockMessage, ChatDockSectionProps, CheckboxGroupItemProps, CheckboxGroupProps, ChecklistItem, ChecklistProps, ChoroplethColorScale, ChoroplethLegendProps, ChoroplethMapLabels, ChoroplethMapProps, ChoroplethRegion, ChoroplethTooltipProps, ChronoEventProps, ChronoMedia, ChronologicalTimelineProps, CivilizationCardColor, CivilizationCardEra, CivilizationCardLabels, CivilizationCardProps, CivilizationComparisonProps, CodeBlockProps, CodePlaygroundProps, ColorPickerProps, ComboboxOption, ComboboxProps, CommandDialogProps, CommentPinLabels, CommentPinProps, CommentPinState, CommonMistakeProps, ComparisonProps, CompletionDialogProps, ConnectorEdgePoint, ConnectorEdgeProps, ContentIntroLabels, ContentIntroProps, ContentIntroSection, ContentMeta, ContentProgress, ContentSection, ContentSectionMinimal, ContextLensFocus, ContextLensLabels, ContextLensProps, ContributionDay, ContributionGraphProps, ConversationEmptyProps, ConversationHeaderProps, ConversationLoadingProps, ConversationMessage, ConversationMessagesProps, ConversationScrollButtonProps, ConversationSuggestionsProps, ConversationThreadProps, ConversationTitleProps, CookieConsentActions, CookieConsentLabels, CookieConsentLayout, CookieConsentProps, CopyButtonProps, CopyButtonVariant, CopyStatus, CountdownTimerProps, CreditBadgeProps, CreditBadgeStatus, CtaBandProps, CtaBandTone, CurriculumLessonProps, CurriculumModuleProps, CurriculumProps, CursorProps, CustomTheme, DataListItemProps, DataListProps, DataTableFilter, DataTableFilterOption, DataTableProps, DateFieldProps, DatePickerProps, DateRangePickerProps, DifficultyLevel, DisplayElement, DisplayProps, DockIconProps, DockProps, DocumentSiblingNavLink, DocumentSiblingNavProps, DocumentSiblingNavVariant, DotPatternProps, EdgeLabelProps, EmptyStateProps, EmptyStateSize, EraColor, EraColumnProps, EraComparisonProps, EraDomainProps, EraFigureProps, EraHighlightProps, ExerciseProps, ExpandableCardItem, ExpandableCardsProps, FAQItemProps, FAQProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldLabelProps, FieldProps, FieldsetContentProps, FieldsetLegendProps, FieldsetProps, FileTreeProps, FileUploadProps, FilterBarLabels, FilterBarProps, FilterOption, FilterUpdates, FlashcardProps, FloatingActionButtonProps, FloatingNavbarProps, FloatingToolbarAction, FloatingToolbarLabels, FloatingToolbarProps, FlowControlsProps, FlowDiagramEdge, FlowDiagramNode, FlowDiagramProps, FlowFullscreenProps, FollowModeColor, FollowModeLabels, FollowModeProps, FormProps, GanttChartLabels, GanttChartProps, GanttColor, GanttGroup, GanttMilestone, GanttScale, GanttTask, GaugeChartProps, GeoJSONPolygon, GeoPosition$4 as GeoPosition, GeographyQuizMapLabels, GeographyQuizMapProps, GlassCardProps, GlassPanelProps, GlassProgressProps, Globe3DLabels, Globe3DProps, GlobeArcProps, GlobeColor, GlobeCoord, GlobeMarkerProps, GlossaryProps, GridColumns, GridGap, GridProps, GroupHullProps, HandoffBeaconLabels, HandoffBeaconLevel, HandoffBeaconProps, HeadingLevel, HeadingProps$1 as HeadingProps, HeadingTag, HeatGradient, HeatMapOverlayLabels, HeatMapOverlayProps, HeatMapPoint, HeatOverlayLabels, HeatOverlayProps, HeatOverlayTone, HeatPoint, HighlightProps, HistoricCategory, HistoricColor, HistoricEra, HistoricEvent, HistoricPeriod, HistoricTimelineLabels, HistoricTimelineProps, HistoricalFigureCardConnection, HistoricalFigureCardLabels, HistoricalFigureCardLifeEvent, HistoricalFigureCardProps, HistoricalFigureCardQuote, HorizontalScrollRowProps, InfinitePlaneLabels, InfinitePlanePattern, InfinitePlaneProps, InlineCodeProps, InlineInputProps, InputGroupAddonProps, InputGroupInputProps, InputGroupProps, InteractiveTimelineCategory, InteractiveTimelineColor, InteractiveTimelineEvent, InteractiveTimelineFilterProps, InteractiveTimelineLabels, InteractiveTimelineProps, InteractiveTimelineTrack, ItemActionsProps, ItemContentProps, ItemDescriptionProps, ItemMediaProps, ItemProps, ItemTitleProps, JarvisDockAction, JarvisDockLabels, JarvisDockProps, JarvisDockTone, KbdProps, KeyConceptProps, KeyboardShortcut, KeyboardShortcutsHelpProps, KnowledgeCheckAnswer, KnowledgeCheckLabels, KnowledgeCheckOption, KnowledgeCheckProps, KnowledgeCheckQuestion, KnowledgeCheckQuestionType, KnowledgeCheckScore, LangProviderProps, LassoRect, LearningObjectivesProps, LeftRailProps, LessonDifficulty, LessonStatus, LineChartProps, LinkProps, LiquidGlassProps, ListBoxItemProps, ListBoxProps, ListBoxSelectionMode, ListProps, LiveCursorLabels, LiveCursorProps, LiveFeedEvent, LiveFeedProps, MDXContentProps, MagneticButtonProps, MagneticProps, Map2DLabels, Map2DProps, MapLayerProps, MapMarkerProps, MapPopupProps, MapTimelineColor, MapTimelineEventProps, MapTimelineGeometry, MapTimelineLabels, MapTimelineLayerProps, MapTimelineProps, MarketTreemapItem, MarketTreemapProps, MarqueeLabels, MarqueeProps, MeteorsProps, MeterProps, MetricClusterAnchor, MetricClusterEntry, MetricClusterLabels, MetricClusterProps, MetricClusterTone, MetricGaugeProps, MetricGaugeThreshold, MiniMapMarker, MiniMapPanelProps, ModelComparisonColumnProps, ModelComparisonLabels, ModelComparisonMetaProps, ModelComparisonProps, ModelComparisonVoteProps, ModelComparisonVoteValue, ModelInfo, ModelSelectorProps, MultiSelectLassoLabels, MultiSelectLassoProps, MultiSelectOption, MultiSelectProps, NativeSelectProps, NavItem, NavbarSaasProps, NewsletterSignupLabels, NewsletterSignupProps, NewsletterSignupStatus, NewsletterSignupVariant, NumberInputProps, NumberTickerProps, ObjectCardAction, ObjectCardMetric, ObjectCardProps, ObjectHandleProps, ObjectInspectorKind, ObjectInspectorLabels, ObjectInspectorProps, ObjectInspectorStatus, OrderBookLevel, OrderBookProps, OrderSummaryLayout, OrderSummaryLine, OrderSummaryPromo, OrderSummaryPromoLabels, OrderSummaryPromoStatus, OrderSummaryProps, OverviewBoardItem, OverviewBoardProps, OverviewCardProps, OverviewCardTone, PaginationLabels, PaginationProps, PanelDescriptionProps, PanelProps, PanelTitleProps, ParagraphProps, ParallelTimelineColor, ParallelTimelineEra, ParallelTimelineEvent, ParallelTimelineLabels, ParallelTimelineProps, ParallelTimelineTrack, ParticlesProps, PasswordInputProps, PhoneCountry, PhoneInputProps, PieChartProps, PieDatum, PlanBadgeProps, PlanBadgeState, PlanBadgeTier, PlatformConfig, PlaybackGhostKind, PlaybackGhostLabels, PlaybackGhostProps, PolicyDeliveryPanelLabels, PolicyDeliveryPanelProps, PolicyEntry, PolicyStatus, PrerequisitesProps, PresenceStackLabels, PresenceStackProps, PresenceStatus, PresenceSyncIndicatorLabels, PresenceSyncIndicatorProps, PresenceSyncState, PresenceUser, PricingFeature, PricingPeriod, PricingPlanCta, PricingPlanProps, PricingTableProps, PrimarySource, PrimarySourceAnnotationProps, PrimarySourceViewerLabels, PrimarySourceViewerProps, ProTipProps, ProTipVariant, ProfileSectionProps, ProgressBarMode, ProgressBarProps, ProgressBarSize, ProgressBarTone, ContentCardProgress as ProgressCardProgress, ContentCardProps as ProgressCardProps, ProgressTrackerBadgeProps, ProgressTrackerModuleItem, ProgressTrackerModuleProps, ProgressTrackerModuleStatus, ProgressTrackerModulesProps, ProgressTrackerOverviewProps, ProgressTrackerProps, ProgressTrackerStatProps, ProgressTrackerStatsProps, ProgressiveBlurDirection, ProgressiveBlurProps, PromptInputProps, PromptTemplate, PromptTemplateCategory, PromptTemplatesLabels, PromptTemplatesProps, PropertyEntry, PropertySectionLabels, PropertySectionProps, ProseProps, PullQuoteProps, QrCodeLevel, QrCodeProps, QuizAnswer, QuizOption, QuizProps, QuizQuestion, QuizRegion, RadarChartProps, RadarDatum, RangeCalendarProps, RatingProps, ReasoningProps, RelationshipDirection, RelationshipEdge, RelationshipInspectorLabels, RelationshipInspectorProps, ReturnFocusHandlers, RevealDirection, RevealTextProps, RightDockProps, RoleBadgeProps, RoleBadgeRole, RouteColor, RouteLineStyle, RouteMapLabels, RouteMapProps, RouteWaypoint, RoutingAssignment, RoutingAssignmentPanelLabels, RoutingAssignmentPanelProps, RoutingRole, RovingFocusOptions, RovingOrientation, RunPhaseState, RunTimelineLabels, RunTimelineLane, RunTimelinePhase, RunTimelineProps, RuntimeMetric, RuntimeMetricTone, RuntimeMetricTrend, RuntimeOverviewPanelLabels, RuntimeOverviewPanelProps, SankeyChartProps, SankeyLink, SankeyNode, ScopeSelectorNode, ScopeSelectorProps, ScopeSelectorSelection, ScrambleTextProps, ScrimProps, ScrollProgressProps, SearchBarProps, SearchDialogProps, SearchFieldProps, SearchItem, SegmentedControlItemProps, SegmentedControlProps, SelectionBounds, SelectionHaloLabels, SelectionHaloProps, SelectionPresenceLabels, SelectionPresenceProps, SettingsListItemProps, SettingsListProps, SeverityBadgeLevel, SeverityBadgeProps, ShareDialogLabels, ShareDialogPeopleKind, ShareDialogPeopleLabels, ShareDialogPeopleLayout, ShareDialogPeoplePerson, ShareDialogPeopleProps, ShareDialogPeopleRole, SharePlatform as ShareDialogPlatform, ShareDialogProps, SharePlatform$1 as SharePlatform, SharePlatformConfig, ShareSectionProps, SheetContentProps, SheetLabels, ShimmerButtonProps, ShimmerTextProps, ShineBorderProps, ShinyButtonProps, SidebarItem, SidebarProps, SidebarSection, SidebarToggleProps, SimpleTerminalProps, SlideshowLabels, SlideshowProps, SlideshowSection, SnapGuide, SnapGuidesLabels, SnapGuidesProps, SocialFabActionConfig, SocialFabLabels, SocialFabProps, SparklesProps, SparklineGridItem, SparklineGridProps, SpinnerProps, SpinningTextProps, SpotlightCardProps, StatCardProps, StateBadgeAnchor, StateBadgeOverlayLabels, StateBadgeOverlayProps, StateBadgeState, StaticCodeProps, StatusBoardItem, StatusBoardProps, StatusBoardStatus, StatusIndicatorProps, StatusTone, StepByStepProps, StepNavigationProps, StepProps, StepperProps, StepperStep, StickyMetricAnchor, StickyMetricLabels, StickyMetricProps, StickyMetricTone, StoryMapChapterProps, StoryMapColor, StoryMapLabels, StoryMapMedia, StoryMapProps, SubscriptionCardProps, SubscriptionCardStatus, SubscriptionInterval, SubscriptionStatus, SummaryProps, SupportedLanguage, TLDRSectionProps, TOCSection, TableOfContentsPanelProps, TableOfContentsProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TabsVariant, TagGroupItemProps, TagGroupLabels, TagGroupProps, TagSelectionMode, TagsInputProps, TerminalLine, TerminalProps, Testimonial, TextAnimateAnimation, TextAnimateProps, TextElement, TextFieldProps, TextProps, TextRevealProps, TextShimmerProps, TextareaProps, ThemePreset, ThemePresetName, ThemePresetProviderProps, ThemeSwitcherProps, ThemeToggleProps, ThinkingBlockProps, ThreadBubbleLabels, ThreadBubbleProps, ThreadMessage, ThresholdRingLabels, ThresholdRingProps, ThresholdRingTone, TickerTapeItem, TickerTapeLabels, TickerTapeProps, TiltCardProps, TimeFieldProps, TimePickerProps, TimelineColor, TimelineItemProps, TimelineItemStatus, TimelineLabels, TimelineOrientation, TimelineProps, TimelineScrubberLabels, TimelineScrubberProps, TimelineScrubberTone, TimelineTick, ToastProps, ToolCall, ToolbarOrientation, ToolbarProps, ToolbarSeparatorProps, TooltipSide, TopBarProps, TourProps, TourStep, Transaction, TransactionListLabels, TransactionListPinnedProps, TransactionListProps, TransactionListSubscriptionRowProps, TransactionType, TreeNode, TreeViewLabels, TreeViewProps, TreeViewSelectionMode, TruncatedTextProps, TutorialCardLabels, TutorialCardMeta, TutorialCardProgress, TutorialCardProps, TutorialCompleteLabels, TutorialCompleteProps, TutorialCompleteRelatedContent, TutorialCompleteSection, TutorialFiltersLabels, TutorialFiltersProps, TutorialIntroContentProps, TutorialMDXProps, TypewriterProps, HeadingProps as TypographyHeadingProps, TypographyVariant, SupportedLanguage as UISupportedLanguage, UnicodeSpinnerAnimation, UnicodeSpinnerProps, UsageBreakdownItem, UsageBreakdownProps, UsageBreakdownTone, UseCopyToClipboardOptions, UseCopyToClipboardResult, UseFlowDiagramOptions, UseFlowDiagramReturn, UseThemePresetResult, VideoEmbedProps, ViewOption, ViewSwitcherProps, ViewportBookmark, ViewportBookmarksLabels, ViewportBookmarksProps, WalletCardProps, WatchlistItem, WatchlistProps, WorkspaceOption, WorkspaceSwitcherProps, WorldBreadcrumbsLabels, WorldBreadcrumbsProps, WorldClockBarProps, WorldClockBarZone, WorldCrumb, WorldCrumbKind, ZoomHUDProps };
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
THEME_PRESET_STORAGE_KEY,
|
|
13
13
|
THEME_PRESETS
|
|
14
14
|
} from "./lib/theme-presets.js";
|
|
15
|
+
import { copyText } from "./lib/copy-text.js";
|
|
15
16
|
import { formatChange, normalizeDate } from "./lib/format.js";
|
|
16
17
|
import {
|
|
17
18
|
isStatusTone,
|
|
@@ -49,6 +50,7 @@ export {
|
|
|
49
50
|
THEME_PRESETS,
|
|
50
51
|
THEME_PRESET_STORAGE_KEY,
|
|
51
52
|
cn,
|
|
53
|
+
copyText,
|
|
52
54
|
focusCalendarDay,
|
|
53
55
|
formatChange,
|
|
54
56
|
getOtherLanguage,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const CANNOT_HOLD_FIELD = "button,input,select,textarea,svg,svg *";
|
|
2
|
+
function runCopyCommand() {
|
|
3
|
+
const execute = Reflect.get(document, "execCommand");
|
|
4
|
+
if (typeof execute !== "function") return false;
|
|
5
|
+
const copied = Reflect.apply(execute, document, ["copy"]);
|
|
6
|
+
return copied === true;
|
|
7
|
+
}
|
|
8
|
+
function createCopyField(value) {
|
|
9
|
+
const field = document.createElement("textarea");
|
|
10
|
+
field.value = value;
|
|
11
|
+
field.readOnly = true;
|
|
12
|
+
field.style.cssText = "font-size:16px;left:-9999px;opacity:0;position:fixed;top:0";
|
|
13
|
+
return field;
|
|
14
|
+
}
|
|
15
|
+
function findHost(focused) {
|
|
16
|
+
const host = focused?.closest(`:not(${CANNOT_HOLD_FIELD})`);
|
|
17
|
+
return host instanceof HTMLElement && document.body.contains(host) ? host : document.body;
|
|
18
|
+
}
|
|
19
|
+
function saveSelection() {
|
|
20
|
+
const selection = document.getSelection();
|
|
21
|
+
if (!selection) return [];
|
|
22
|
+
return Array.from(
|
|
23
|
+
{ length: selection.rangeCount },
|
|
24
|
+
(_, index) => selection.getRangeAt(index)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
function restoreSelection(ranges) {
|
|
28
|
+
const selection = document.getSelection();
|
|
29
|
+
if (!selection) return;
|
|
30
|
+
selection.removeAllRanges();
|
|
31
|
+
ranges.forEach((range) => {
|
|
32
|
+
selection.addRange(range);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function copyWithTextarea(value) {
|
|
36
|
+
if (typeof document === "undefined") return false;
|
|
37
|
+
const previous = document.activeElement;
|
|
38
|
+
const refocus = previous instanceof HTMLElement && previous.matches(":focus-visible") ? previous : void 0;
|
|
39
|
+
const selection = saveSelection();
|
|
40
|
+
const field = createCopyField(value);
|
|
41
|
+
findHost(previous).append(field);
|
|
42
|
+
try {
|
|
43
|
+
field.focus({ preventScroll: true });
|
|
44
|
+
field.setSelectionRange(0, value.length);
|
|
45
|
+
return runCopyCommand();
|
|
46
|
+
} catch {
|
|
47
|
+
return false;
|
|
48
|
+
} finally {
|
|
49
|
+
field.remove();
|
|
50
|
+
restoreSelection(selection);
|
|
51
|
+
refocus?.focus({ preventScroll: true });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function copyText(value) {
|
|
55
|
+
try {
|
|
56
|
+
await navigator.clipboard.writeText(value);
|
|
57
|
+
return true;
|
|
58
|
+
} catch {
|
|
59
|
+
return copyWithTextarea(value);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
copyText
|
|
64
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/ui",
|
|
3
|
-
"version": "0.4.0-canary.
|
|
3
|
+
"version": "0.4.0-canary.sha7a491b3",
|
|
4
4
|
"description": "React components on Radix UI and Tailwind CSS, for humans and AI agents. Installs from a shadcn registry. MCP server and llms.txt at ui.vllnt.com.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vllnt",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"./styles.css": "./styles.css",
|
|
50
50
|
"./themes/default.css": "./themes/default.css",
|
|
51
51
|
"./themes/presets.css": "./themes/presets.css",
|
|
52
|
-
"./themes/products.css": "./themes/products.css"
|
|
52
|
+
"./themes/products.css": "./themes/products.css",
|
|
53
|
+
"./package.json": "./package.json"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"registry": "https://registry.npmjs.org",
|
package/styles.css
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
48
48
|
--font-weight-heading: 600;
|
|
49
49
|
--font-weight-display: 600;
|
|
50
|
-
--font-weight-label:
|
|
50
|
+
--font-weight-label: 500;
|
|
51
51
|
--font-size-display: 3.75rem;
|
|
52
52
|
--line-height-display: 1.05;
|
|
53
53
|
--font-size-h1: 3rem;
|
package/themes/default.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
35
35
|
--font-weight-heading: 600;
|
|
36
36
|
--font-weight-display: 600;
|
|
37
|
-
--font-weight-label:
|
|
37
|
+
--font-weight-label: 500;
|
|
38
38
|
--font-size-display: 3.75rem;
|
|
39
39
|
--line-height-display: 1.05;
|
|
40
40
|
--font-size-h1: 3rem;
|