@timbal-ai/timbal-react 1.4.0 → 1.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.
- package/CHANGELOG.md +14 -0
- package/README.md +18 -4
- package/dist/app.cjs +3532 -1483
- package/dist/app.d.cts +75 -30
- package/dist/app.d.ts +75 -30
- package/dist/app.esm.js +29 -7
- package/dist/{chart-artifact-CMnDys2t.d.ts → chart-artifact-2OTDTRwM.d.ts} +194 -40
- package/dist/{chart-artifact-C8-Py6lc.d.cts → chart-artifact-CS3qyGIY.d.cts} +194 -40
- package/dist/chat.cjs +264 -107
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.esm.js +4 -3
- package/dist/chunk-5ECRZ5O7.esm.js +899 -0
- package/dist/{chunk-QU7ET55D.esm.js → chunk-AZL2WANO.esm.js} +320 -177
- package/dist/{chunk-OH23AX2V.esm.js → chunk-B4XAC4G7.esm.js} +430 -780
- package/dist/chunk-EDEKQYSU.esm.js +10 -0
- package/dist/{chunk-GQBYZRD7.esm.js → chunk-IGHBLJV3.esm.js} +38 -27
- package/dist/{chunk-OFWC4MIY.esm.js → chunk-JYDJRGDE.esm.js} +5 -3
- package/dist/{chunk-VOWNCS3F.esm.js → chunk-SZDYIRMB.esm.js} +1567 -490
- package/dist/chunk-TZI3ID3C.esm.js +232 -0
- package/dist/{chunk-THBA27QY.esm.js → chunk-WMKPT5BV.esm.js} +242 -123
- package/dist/{chunk-VXMM2HX7.esm.js → chunk-ZNYAETFD.esm.js} +1 -1
- package/dist/{circular-progress-Ci8L-Hfa.d.cts → circular-progress-CDsJwIPF.d.cts} +19 -77
- package/dist/{circular-progress-Ci8L-Hfa.d.ts → circular-progress-CDsJwIPF.d.ts} +19 -77
- package/dist/index.cjs +5506 -3626
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.esm.js +45 -33
- package/dist/kanban-U5xNe9py.d.cts +212 -0
- package/dist/kanban-U5xNe9py.d.ts +212 -0
- package/dist/{layout-BTJyU8wd.d.ts → layout-B8r6Jbat.d.ts} +1 -1
- package/dist/{layout-C2G-FcER.d.cts → layout-Cu7Ijn04.d.cts} +1 -1
- package/dist/site.cjs +358 -0
- package/dist/site.d.cts +184 -0
- package/dist/site.d.ts +184 -0
- package/dist/site.esm.js +322 -0
- package/dist/studio.cjs +702 -343
- package/dist/studio.d.cts +1 -1
- package/dist/studio.d.ts +1 -1
- package/dist/studio.esm.js +7 -5
- package/dist/styles.css +56 -0
- package/dist/{timbal-v2-button-CNfdwGq4.d.cts → timbal-v2-button-B7vPs7gg.d.cts} +2 -2
- package/dist/{timbal-v2-button-CNfdwGq4.d.ts → timbal-v2-button-B7vPs7gg.d.ts} +2 -2
- package/dist/ui.cjs +1504 -659
- package/dist/ui.d.cts +11 -4
- package/dist/ui.d.ts +11 -4
- package/dist/ui.esm.js +35 -26
- package/dist/{welcome-DXqsGTwH.d.ts → welcome-DduQAC4K.d.ts} +4 -0
- package/dist/{welcome-BFGRoNfK.d.cts → welcome-NXZlcihe.d.cts} +4 -0
- package/package.json +9 -1
- package/dist/button-BoyX5pM_.d.cts +0 -18
- package/dist/button-BoyX5pM_.d.ts +0 -18
- package/dist/chunk-UCGVL7ZY.esm.js +0 -52
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ElementType, ReactNode, FC } from 'react';
|
|
4
|
-
import { Tooltip as Tooltip$1,
|
|
4
|
+
import { Tooltip as Tooltip$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Popover as Popover$1, Select as Select$1, Label as Label$1, Checkbox as Checkbox$1, Switch as Switch$1, RadioGroup as RadioGroup$1, Form as Form$1, AspectRatio as AspectRatio$1, Toolbar as Toolbar$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, unstable_OneTimePasswordField, Accordion as Accordion$1, Separator as Separator$1, Slider as Slider$1, Progress as Progress$1, AlertDialog as AlertDialog$1, Collapsible as Collapsible$1, ScrollArea as ScrollArea$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, HoverCard as HoverCard$1, ContextMenu as ContextMenu$1, Toast as Toast$1 } from 'radix-ui';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { Command as Command$1 } from 'cmdk';
|
|
7
7
|
import { DayPicker, DayButton } from 'react-day-picker';
|
|
@@ -12,40 +12,6 @@ declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Roo
|
|
|
12
12
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
14
14
|
|
|
15
|
-
type AvatarVariant = "muted" | "secondary" | "primary" | "chart";
|
|
16
|
-
/**
|
|
17
|
-
* Action-button chrome for initials — matches `Button variant="secondary"` (elevated
|
|
18
|
-
* gradient, border, shadow, foreground text). `variant="primary"` / `"chart"` use this too.
|
|
19
|
-
*/
|
|
20
|
-
declare const AVATAR_PRIMARY_FALLBACK_CLASS: string;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Name retained for API stability — returns Action-button (secondary) surface.
|
|
23
|
-
*/
|
|
24
|
-
declare function avatarChartVariantClass(_seed?: string): string;
|
|
25
|
-
declare const AVATAR_SIZE_CLASS: {
|
|
26
|
-
readonly default: "size-8";
|
|
27
|
-
readonly sm: "size-6";
|
|
28
|
-
readonly lg: "size-10";
|
|
29
|
-
};
|
|
30
|
-
declare function Avatar({ className, size, variant: rootVariant, children, ...props }: React.ComponentProps<typeof Avatar$1.Root> & {
|
|
31
|
-
size?: keyof typeof AVATAR_SIZE_CLASS;
|
|
32
|
-
/**
|
|
33
|
-
* `secondary` / `primary` / `chart` — elevated Action-button chrome on the root.
|
|
34
|
-
* Prefer `secondary`; `primary` is an alias for the same look (not dark primary CTA).
|
|
35
|
-
*/
|
|
36
|
-
variant?: AvatarVariant;
|
|
37
|
-
}): react_jsx_runtime.JSX.Element;
|
|
38
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
39
|
-
declare function AvatarFallback({ className, variant, seed: _seed, children, style, ...props }: React.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
40
|
-
/**
|
|
41
|
-
* `secondary` — Action button look (`Button variant="secondary"`).
|
|
42
|
-
* `primary` / `chart` — same as `secondary` (aliases for prompts).
|
|
43
|
-
*/
|
|
44
|
-
variant?: AvatarVariant;
|
|
45
|
-
/** Reserved for API compatibility; color no longer varies by seed. */
|
|
46
|
-
seed?: string;
|
|
47
|
-
}): react_jsx_runtime.JSX.Element;
|
|
48
|
-
|
|
49
15
|
declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
50
16
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
51
17
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -388,8 +354,9 @@ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog$1
|
|
|
388
354
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
389
355
|
declare const sheetContentVariants: (props?: ({
|
|
390
356
|
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
357
|
+
size?: "default" | "sm" | "lg" | "md" | "xl" | "full" | "2xl" | null | undefined;
|
|
391
358
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
392
|
-
declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof sheetContentVariants> & {
|
|
359
|
+
declare function SheetContent({ className, children, side, size, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof sheetContentVariants> & {
|
|
393
360
|
showCloseButton?: boolean;
|
|
394
361
|
}): react_jsx_runtime.JSX.Element;
|
|
395
362
|
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
@@ -568,26 +535,7 @@ interface StepperProps extends Omit<React.ComponentProps<"ol">, "children"> {
|
|
|
568
535
|
*/
|
|
569
536
|
declare function Stepper({ steps, current, orientation, className, ...props }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
570
537
|
|
|
571
|
-
type
|
|
572
|
-
interface TimelineItem {
|
|
573
|
-
id: string;
|
|
574
|
-
title: React.ReactNode;
|
|
575
|
-
description?: React.ReactNode;
|
|
576
|
-
/** Right-aligned timestamp / meta. */
|
|
577
|
-
meta?: React.ReactNode;
|
|
578
|
-
tone?: TimelineTone;
|
|
579
|
-
/** Custom node inside the marker (e.g. an icon). */
|
|
580
|
-
icon?: React.ReactNode;
|
|
581
|
-
}
|
|
582
|
-
interface TimelineProps extends Omit<React.ComponentProps<"ol">, "children"> {
|
|
583
|
-
items: TimelineItem[];
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Vertical event log — a marker rail with a title, optional description, and
|
|
587
|
-
* trailing meta per entry. Presentational; pass already-formatted timestamps.
|
|
588
|
-
*/
|
|
589
|
-
declare function Timeline({ items, className, ...props }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
590
|
-
|
|
538
|
+
type RatingTone = "amber" | "primary" | "success" | "warn" | "danger";
|
|
591
539
|
interface RatingProps {
|
|
592
540
|
/** Controlled value (number of filled units). */
|
|
593
541
|
value?: number;
|
|
@@ -600,6 +548,8 @@ interface RatingProps {
|
|
|
600
548
|
readOnly?: boolean;
|
|
601
549
|
disabled?: boolean;
|
|
602
550
|
size?: "sm" | "md" | "lg";
|
|
551
|
+
/** Fill color for filled units. Default: `"amber"`. */
|
|
552
|
+
tone?: RatingTone;
|
|
603
553
|
/** Accessible group label. Default: `"Rating"`. */
|
|
604
554
|
label?: string;
|
|
605
555
|
className?: string;
|
|
@@ -608,7 +558,7 @@ interface RatingProps {
|
|
|
608
558
|
* Star rating — interactive (keyboard + hover preview) or read-only. Controlled
|
|
609
559
|
* via `value`/`onChange` or uncontrolled with `defaultValue`.
|
|
610
560
|
*/
|
|
611
|
-
declare function Rating({ value: valueProp, defaultValue, onChange, max, readOnly, disabled, size, label, className, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
561
|
+
declare function Rating({ value: valueProp, defaultValue, onChange, max, readOnly, disabled, size, tone, label, className, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
612
562
|
|
|
613
563
|
interface NumberFieldProps extends Omit<React.ComponentProps<"input">, "value" | "defaultValue" | "onChange" | "size" | "type"> {
|
|
614
564
|
value?: number;
|
|
@@ -628,6 +578,7 @@ interface NumberFieldProps extends Omit<React.ComponentProps<"input">, "value" |
|
|
|
628
578
|
*/
|
|
629
579
|
declare function NumberField({ value: valueProp, defaultValue, onValueChange, min, max, step, size, disabled, ariaLabel, className, ...inputProps }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
630
580
|
|
|
581
|
+
type TagInputSize = "sm" | "default";
|
|
631
582
|
interface TagInputProps {
|
|
632
583
|
/** Controlled tags. */
|
|
633
584
|
value?: string[];
|
|
@@ -641,6 +592,8 @@ interface TagInputProps {
|
|
|
641
592
|
dedupe?: boolean;
|
|
642
593
|
max?: number;
|
|
643
594
|
disabled?: boolean;
|
|
595
|
+
/** Control height. Default `"default"`. */
|
|
596
|
+
size?: TagInputSize;
|
|
644
597
|
ariaLabel?: string;
|
|
645
598
|
className?: string;
|
|
646
599
|
inputClassName?: string;
|
|
@@ -650,24 +603,7 @@ interface TagInputProps {
|
|
|
650
603
|
* removes the last tag on Backspace when empty, and each chip has its own
|
|
651
604
|
* remove button. Controlled via `value`/`onChange` or uncontrolled.
|
|
652
605
|
*/
|
|
653
|
-
declare function TagInput({ value: valueProp, defaultValue, onChange, placeholder, separators, dedupe, max, disabled, ariaLabel, className, inputClassName, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
654
|
-
|
|
655
|
-
type BannerTone = "default" | "primary" | "success" | "warn" | "danger";
|
|
656
|
-
interface BannerProps extends Omit<React.ComponentProps<"div">, "title"> {
|
|
657
|
-
tone?: BannerTone;
|
|
658
|
-
icon?: React.ReactNode;
|
|
659
|
-
title?: React.ReactNode;
|
|
660
|
-
/** Right-aligned actions (buttons, links). */
|
|
661
|
-
actions?: React.ReactNode;
|
|
662
|
-
/** Show a dismiss button; fires `onDismiss`. */
|
|
663
|
-
onDismiss?: () => void;
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* Page-level announcement bar — a full-width, dismissible notice with a tone, an
|
|
667
|
-
* optional leading icon, message, and trailing actions. For in-flow form/field
|
|
668
|
-
* messages use `Alert` instead.
|
|
669
|
-
*/
|
|
670
|
-
declare function Banner({ tone, icon, title, actions, onDismiss, className, children, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
606
|
+
declare function TagInput({ value: valueProp, defaultValue, onChange, placeholder, separators, dedupe, max, disabled, size, ariaLabel, className, inputClassName, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
671
607
|
|
|
672
608
|
interface CopyButtonProps extends Omit<React.ComponentProps<"button">, "value" | "children"> {
|
|
673
609
|
/** Text to write to the clipboard. */
|
|
@@ -685,11 +621,17 @@ interface CopyButtonProps extends Omit<React.ComponentProps<"button">, "value" |
|
|
|
685
621
|
*/
|
|
686
622
|
declare function CopyButton({ value, timeout, onCopied, className, children, onClick, ...props }: CopyButtonProps): react_jsx_runtime.JSX.Element;
|
|
687
623
|
|
|
624
|
+
type SnippetVariant = "muted" | "outline" | "ghost";
|
|
625
|
+
type SnippetSize = "sm" | "default";
|
|
688
626
|
interface SnippetProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
689
627
|
/** Code / command to display and copy. */
|
|
690
628
|
children: string;
|
|
691
629
|
/** Leading prompt symbol for command snippets (e.g. `"$"`). */
|
|
692
630
|
symbol?: string;
|
|
631
|
+
/** Surface style. Default `"muted"`. */
|
|
632
|
+
variant?: SnippetVariant;
|
|
633
|
+
/** Size. Default `"default"`. */
|
|
634
|
+
size?: SnippetSize;
|
|
693
635
|
/** Hide the copy button. */
|
|
694
636
|
hideCopy?: boolean;
|
|
695
637
|
}
|
|
@@ -698,7 +640,7 @@ interface SnippetProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
|
698
640
|
* button. Single-line and monospaced; for multi-line code blocks render a
|
|
699
641
|
* `<pre>` yourself and drop a `CopyButton` in the corner.
|
|
700
642
|
*/
|
|
701
|
-
declare function Snippet({ children, symbol, hideCopy, className, ...props }: SnippetProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
declare function Snippet({ children, symbol, variant, size, hideCopy, className, ...props }: SnippetProps): react_jsx_runtime.JSX.Element;
|
|
702
644
|
|
|
703
645
|
interface CircularProgressProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
704
646
|
/** Current value. Omit (or pass `null`) for an indeterminate spinner ring. */
|
|
@@ -721,4 +663,4 @@ interface CircularProgressProps extends Omit<React.ComponentProps<"div">, "child
|
|
|
721
663
|
*/
|
|
722
664
|
declare function CircularProgress({ value, max, size, thickness, showLabel, label, tone, className, ...props }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
723
665
|
|
|
724
|
-
export {
|
|
666
|
+
export { ComboboxSeparator as $, Accordion as A, Badge as B, BreadcrumbSeparator as C, CONTROL_SIZE as D, Calendar as E, CalendarDayButton as F, Card as G, CardContent as H, CardDescription as I, CardFooter as J, CardHeader as K, CardTitle as L, Checkbox as M, CircularProgress as N, type CircularProgressProps as O, Collapsible as P, CollapsibleContent as Q, CollapsibleTrigger as R, Combobox as S, ComboboxAnchor as T, ComboboxCommand as U, ComboboxContent as V, ComboboxEmpty as W, ComboboxGroup as X, ComboboxInput as Y, ComboboxItem as Z, ComboboxList as _, AccordionContent as a, FormLabel as a$, ComboboxShortcut as a0, ComboboxTrigger as a1, Command as a2, CommandDialog as a3, CommandEmpty as a4, CommandGroup as a5, CommandInput as a6, CommandItem as a7, CommandList as a8, CommandSeparator as a9, DialogClose as aA, DialogContent as aB, DialogDescription as aC, DialogFooter as aD, DialogHeader as aE, DialogOverlay as aF, DialogPortal as aG, DialogTitle as aH, DialogTrigger as aI, DropdownMenu as aJ, DropdownMenuCheckboxItem as aK, DropdownMenuContent as aL, DropdownMenuGroup as aM, DropdownMenuItem as aN, DropdownMenuLabel as aO, DropdownMenuRadioGroup as aP, DropdownMenuRadioItem as aQ, DropdownMenuSeparator as aR, DropdownMenuShortcut as aS, DropdownMenuSub as aT, DropdownMenuSubContent as aU, DropdownMenuSubTrigger as aV, DropdownMenuTrigger as aW, Form as aX, FormControl as aY, FormField as aZ, FormItem as a_, CommandShortcut as aa, ContextMenu as ab, ContextMenuCheckboxItem as ac, ContextMenuContent as ad, ContextMenuGroup as ae, ContextMenuItem as af, ContextMenuLabel as ag, ContextMenuRadioGroup as ah, ContextMenuRadioItem as ai, ContextMenuSeparator as aj, ContextMenuShortcut as ak, ContextMenuSub as al, ContextMenuSubContent as am, ContextMenuSubTrigger as an, ContextMenuTrigger as ao, type ControlClassOptions as ap, type ControlShape as aq, type ControlSize as ar, CopyButton as as, type CopyButtonProps as at, DatePicker as au, DatePickerButton as av, DatePickerCalendar as aw, DatePickerContent as ax, DatePickerTrigger as ay, Dialog as az, AccordionItem as b, ScrollArea as b$, FormMessage as b0, FormSubmit as b1, HoverCard as b2, HoverCardContent as b3, HoverCardTrigger as b4, Input as b5, InputGroup as b6, InputGroupAddon as b7, InputGroupInput as b8, InputGroupText as b9, NavigationMenuItem as bA, NavigationMenuLink as bB, NavigationMenuList as bC, NavigationMenuTrigger as bD, NavigationMenuViewport as bE, NumberField as bF, type NumberFieldProps as bG, Pagination as bH, PaginationContent as bI, PaginationEllipsis as bJ, PaginationItem as bK, PaginationLink as bL, PaginationNext as bM, PaginationPrevious as bN, type PillSegmentedTab as bO, PillSegmentedTabs as bP, type PillSegmentedTabsProps as bQ, Popover as bR, PopoverAnchor as bS, PopoverContent as bT, PopoverTrigger as bU, Progress as bV, RadioGroup as bW, RadioGroupItem as bX, Rating as bY, type RatingProps as bZ, type RatingTone as b_, InputOTP as ba, InputOTPGroup as bb, InputOTPHiddenInput as bc, InputOTPSeparator as bd, InputOTPSlot as be, Kbd as bf, KbdGroup as bg, Label as bh, MemoPillSegmentedTabs as bi, Menubar as bj, MenubarCheckboxItem as bk, MenubarContent as bl, MenubarItem as bm, MenubarLabel as bn, MenubarMenu as bo, MenubarRadioGroup as bp, MenubarRadioItem as bq, MenubarSeparator as br, MenubarShortcut as bs, MenubarSub as bt, MenubarSubContent as bu, MenubarSubTrigger as bv, MenubarTrigger as bw, NavigationMenu as bx, NavigationMenuContent as by, NavigationMenuIndicator as bz, AccordionTrigger as c, Tooltip as c$, ScrollBar as c0, Select as c1, SelectContent as c2, SelectGroup as c3, SelectItem as c4, SelectLabel as c5, SelectScrollDownButton as c6, SelectScrollUpButton as c7, SelectSeparator as c8, SelectTrigger as c9, TableFooter as cA, TableHead as cB, TableHeader as cC, TableRow as cD, TagInput as cE, type TagInputProps as cF, type TagInputSize as cG, type TextShimmerProps as cH, Textarea as cI, Toast as cJ, ToastAction as cK, ToastClose as cL, ToastDescription as cM, type ToastProps as cN, ToastProvider as cO, ToastTitle as cP, ToastViewport as cQ, Toaster as cR, Toggle as cS, ToggleGroup as cT, ToggleGroupItem as cU, Toolbar as cV, ToolbarButton as cW, ToolbarLink as cX, ToolbarSeparator as cY, ToolbarToggleGroup as cZ, ToolbarToggleItem as c_, SelectValue as ca, Separator as cb, Sheet as cc, SheetClose as cd, SheetContent as ce, SheetDescription as cf, SheetFooter as cg, SheetHeader as ch, SheetTitle as ci, SheetTrigger as cj, Shimmer as ck, Skeleton as cl, Slider as cm, Snippet as cn, type SnippetProps as co, type SnippetSize as cp, type SnippetVariant as cq, Spinner as cr, Stepper as cs, type StepperProps as ct, type StepperStep as cu, Switch as cv, Table as cw, TableBody as cx, TableCaption as cy, TableCell as cz, Alert as d, TooltipContent as d0, TooltipProvider as d1, TooltipTrigger as d2, alertVariants as d3, badgeVariants as d4, controlClass as d5, controlSurfaceClass as d6, formatPickerDate as d7, navigationMenuTriggerStyle as d8, overlayAnimationClass as d9, overlayItemClass as da, overlayListPanelClass as db, overlaySurfaceClass as dc, toast as dd, toggleVariants as de, useToast as df, AlertDescription as e, AlertDialog as f, AlertDialogAction as g, AlertDialogCancel as h, AlertDialogContent as i, AlertDialogDescription as j, AlertDialogFooter as k, AlertDialogHeader as l, AlertDialogOverlay as m, AlertDialogPortal as n, AlertDialogTitle as o, AlertDialogTrigger as p, AlertTitle as q, AspectRatio as r, AvatarGroup as s, type AvatarGroupProps as t, Breadcrumb as u, BreadcrumbEllipsis as v, BreadcrumbItem as w, BreadcrumbLink as x, BreadcrumbList as y, BreadcrumbPage as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ElementType, ReactNode, FC } from 'react';
|
|
4
|
-
import { Tooltip as Tooltip$1,
|
|
4
|
+
import { Tooltip as Tooltip$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Popover as Popover$1, Select as Select$1, Label as Label$1, Checkbox as Checkbox$1, Switch as Switch$1, RadioGroup as RadioGroup$1, Form as Form$1, AspectRatio as AspectRatio$1, Toolbar as Toolbar$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, unstable_OneTimePasswordField, Accordion as Accordion$1, Separator as Separator$1, Slider as Slider$1, Progress as Progress$1, AlertDialog as AlertDialog$1, Collapsible as Collapsible$1, ScrollArea as ScrollArea$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, HoverCard as HoverCard$1, ContextMenu as ContextMenu$1, Toast as Toast$1 } from 'radix-ui';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { Command as Command$1 } from 'cmdk';
|
|
7
7
|
import { DayPicker, DayButton } from 'react-day-picker';
|
|
@@ -12,40 +12,6 @@ declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Roo
|
|
|
12
12
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
13
13
|
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof Tooltip$1.Content>): react_jsx_runtime.JSX.Element;
|
|
14
14
|
|
|
15
|
-
type AvatarVariant = "muted" | "secondary" | "primary" | "chart";
|
|
16
|
-
/**
|
|
17
|
-
* Action-button chrome for initials — matches `Button variant="secondary"` (elevated
|
|
18
|
-
* gradient, border, shadow, foreground text). `variant="primary"` / `"chart"` use this too.
|
|
19
|
-
*/
|
|
20
|
-
declare const AVATAR_PRIMARY_FALLBACK_CLASS: string;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Name retained for API stability — returns Action-button (secondary) surface.
|
|
23
|
-
*/
|
|
24
|
-
declare function avatarChartVariantClass(_seed?: string): string;
|
|
25
|
-
declare const AVATAR_SIZE_CLASS: {
|
|
26
|
-
readonly default: "size-8";
|
|
27
|
-
readonly sm: "size-6";
|
|
28
|
-
readonly lg: "size-10";
|
|
29
|
-
};
|
|
30
|
-
declare function Avatar({ className, size, variant: rootVariant, children, ...props }: React.ComponentProps<typeof Avatar$1.Root> & {
|
|
31
|
-
size?: keyof typeof AVATAR_SIZE_CLASS;
|
|
32
|
-
/**
|
|
33
|
-
* `secondary` / `primary` / `chart` — elevated Action-button chrome on the root.
|
|
34
|
-
* Prefer `secondary`; `primary` is an alias for the same look (not dark primary CTA).
|
|
35
|
-
*/
|
|
36
|
-
variant?: AvatarVariant;
|
|
37
|
-
}): react_jsx_runtime.JSX.Element;
|
|
38
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
39
|
-
declare function AvatarFallback({ className, variant, seed: _seed, children, style, ...props }: React.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
40
|
-
/**
|
|
41
|
-
* `secondary` — Action button look (`Button variant="secondary"`).
|
|
42
|
-
* `primary` / `chart` — same as `secondary` (aliases for prompts).
|
|
43
|
-
*/
|
|
44
|
-
variant?: AvatarVariant;
|
|
45
|
-
/** Reserved for API compatibility; color no longer varies by seed. */
|
|
46
|
-
seed?: string;
|
|
47
|
-
}): react_jsx_runtime.JSX.Element;
|
|
48
|
-
|
|
49
15
|
declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
50
16
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
51
17
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
@@ -388,8 +354,9 @@ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Dialog$1
|
|
|
388
354
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
389
355
|
declare const sheetContentVariants: (props?: ({
|
|
390
356
|
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
357
|
+
size?: "default" | "sm" | "lg" | "md" | "xl" | "full" | "2xl" | null | undefined;
|
|
391
358
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
392
|
-
declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof sheetContentVariants> & {
|
|
359
|
+
declare function SheetContent({ className, children, side, size, showCloseButton, ...props }: React.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof sheetContentVariants> & {
|
|
393
360
|
showCloseButton?: boolean;
|
|
394
361
|
}): react_jsx_runtime.JSX.Element;
|
|
395
362
|
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
@@ -568,26 +535,7 @@ interface StepperProps extends Omit<React.ComponentProps<"ol">, "children"> {
|
|
|
568
535
|
*/
|
|
569
536
|
declare function Stepper({ steps, current, orientation, className, ...props }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
570
537
|
|
|
571
|
-
type
|
|
572
|
-
interface TimelineItem {
|
|
573
|
-
id: string;
|
|
574
|
-
title: React.ReactNode;
|
|
575
|
-
description?: React.ReactNode;
|
|
576
|
-
/** Right-aligned timestamp / meta. */
|
|
577
|
-
meta?: React.ReactNode;
|
|
578
|
-
tone?: TimelineTone;
|
|
579
|
-
/** Custom node inside the marker (e.g. an icon). */
|
|
580
|
-
icon?: React.ReactNode;
|
|
581
|
-
}
|
|
582
|
-
interface TimelineProps extends Omit<React.ComponentProps<"ol">, "children"> {
|
|
583
|
-
items: TimelineItem[];
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Vertical event log — a marker rail with a title, optional description, and
|
|
587
|
-
* trailing meta per entry. Presentational; pass already-formatted timestamps.
|
|
588
|
-
*/
|
|
589
|
-
declare function Timeline({ items, className, ...props }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
590
|
-
|
|
538
|
+
type RatingTone = "amber" | "primary" | "success" | "warn" | "danger";
|
|
591
539
|
interface RatingProps {
|
|
592
540
|
/** Controlled value (number of filled units). */
|
|
593
541
|
value?: number;
|
|
@@ -600,6 +548,8 @@ interface RatingProps {
|
|
|
600
548
|
readOnly?: boolean;
|
|
601
549
|
disabled?: boolean;
|
|
602
550
|
size?: "sm" | "md" | "lg";
|
|
551
|
+
/** Fill color for filled units. Default: `"amber"`. */
|
|
552
|
+
tone?: RatingTone;
|
|
603
553
|
/** Accessible group label. Default: `"Rating"`. */
|
|
604
554
|
label?: string;
|
|
605
555
|
className?: string;
|
|
@@ -608,7 +558,7 @@ interface RatingProps {
|
|
|
608
558
|
* Star rating — interactive (keyboard + hover preview) or read-only. Controlled
|
|
609
559
|
* via `value`/`onChange` or uncontrolled with `defaultValue`.
|
|
610
560
|
*/
|
|
611
|
-
declare function Rating({ value: valueProp, defaultValue, onChange, max, readOnly, disabled, size, label, className, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
561
|
+
declare function Rating({ value: valueProp, defaultValue, onChange, max, readOnly, disabled, size, tone, label, className, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
612
562
|
|
|
613
563
|
interface NumberFieldProps extends Omit<React.ComponentProps<"input">, "value" | "defaultValue" | "onChange" | "size" | "type"> {
|
|
614
564
|
value?: number;
|
|
@@ -628,6 +578,7 @@ interface NumberFieldProps extends Omit<React.ComponentProps<"input">, "value" |
|
|
|
628
578
|
*/
|
|
629
579
|
declare function NumberField({ value: valueProp, defaultValue, onValueChange, min, max, step, size, disabled, ariaLabel, className, ...inputProps }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
630
580
|
|
|
581
|
+
type TagInputSize = "sm" | "default";
|
|
631
582
|
interface TagInputProps {
|
|
632
583
|
/** Controlled tags. */
|
|
633
584
|
value?: string[];
|
|
@@ -641,6 +592,8 @@ interface TagInputProps {
|
|
|
641
592
|
dedupe?: boolean;
|
|
642
593
|
max?: number;
|
|
643
594
|
disabled?: boolean;
|
|
595
|
+
/** Control height. Default `"default"`. */
|
|
596
|
+
size?: TagInputSize;
|
|
644
597
|
ariaLabel?: string;
|
|
645
598
|
className?: string;
|
|
646
599
|
inputClassName?: string;
|
|
@@ -650,24 +603,7 @@ interface TagInputProps {
|
|
|
650
603
|
* removes the last tag on Backspace when empty, and each chip has its own
|
|
651
604
|
* remove button. Controlled via `value`/`onChange` or uncontrolled.
|
|
652
605
|
*/
|
|
653
|
-
declare function TagInput({ value: valueProp, defaultValue, onChange, placeholder, separators, dedupe, max, disabled, ariaLabel, className, inputClassName, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
654
|
-
|
|
655
|
-
type BannerTone = "default" | "primary" | "success" | "warn" | "danger";
|
|
656
|
-
interface BannerProps extends Omit<React.ComponentProps<"div">, "title"> {
|
|
657
|
-
tone?: BannerTone;
|
|
658
|
-
icon?: React.ReactNode;
|
|
659
|
-
title?: React.ReactNode;
|
|
660
|
-
/** Right-aligned actions (buttons, links). */
|
|
661
|
-
actions?: React.ReactNode;
|
|
662
|
-
/** Show a dismiss button; fires `onDismiss`. */
|
|
663
|
-
onDismiss?: () => void;
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* Page-level announcement bar — a full-width, dismissible notice with a tone, an
|
|
667
|
-
* optional leading icon, message, and trailing actions. For in-flow form/field
|
|
668
|
-
* messages use `Alert` instead.
|
|
669
|
-
*/
|
|
670
|
-
declare function Banner({ tone, icon, title, actions, onDismiss, className, children, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
606
|
+
declare function TagInput({ value: valueProp, defaultValue, onChange, placeholder, separators, dedupe, max, disabled, size, ariaLabel, className, inputClassName, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
671
607
|
|
|
672
608
|
interface CopyButtonProps extends Omit<React.ComponentProps<"button">, "value" | "children"> {
|
|
673
609
|
/** Text to write to the clipboard. */
|
|
@@ -685,11 +621,17 @@ interface CopyButtonProps extends Omit<React.ComponentProps<"button">, "value" |
|
|
|
685
621
|
*/
|
|
686
622
|
declare function CopyButton({ value, timeout, onCopied, className, children, onClick, ...props }: CopyButtonProps): react_jsx_runtime.JSX.Element;
|
|
687
623
|
|
|
624
|
+
type SnippetVariant = "muted" | "outline" | "ghost";
|
|
625
|
+
type SnippetSize = "sm" | "default";
|
|
688
626
|
interface SnippetProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
689
627
|
/** Code / command to display and copy. */
|
|
690
628
|
children: string;
|
|
691
629
|
/** Leading prompt symbol for command snippets (e.g. `"$"`). */
|
|
692
630
|
symbol?: string;
|
|
631
|
+
/** Surface style. Default `"muted"`. */
|
|
632
|
+
variant?: SnippetVariant;
|
|
633
|
+
/** Size. Default `"default"`. */
|
|
634
|
+
size?: SnippetSize;
|
|
693
635
|
/** Hide the copy button. */
|
|
694
636
|
hideCopy?: boolean;
|
|
695
637
|
}
|
|
@@ -698,7 +640,7 @@ interface SnippetProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
|
698
640
|
* button. Single-line and monospaced; for multi-line code blocks render a
|
|
699
641
|
* `<pre>` yourself and drop a `CopyButton` in the corner.
|
|
700
642
|
*/
|
|
701
|
-
declare function Snippet({ children, symbol, hideCopy, className, ...props }: SnippetProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
declare function Snippet({ children, symbol, variant, size, hideCopy, className, ...props }: SnippetProps): react_jsx_runtime.JSX.Element;
|
|
702
644
|
|
|
703
645
|
interface CircularProgressProps extends Omit<React.ComponentProps<"div">, "children"> {
|
|
704
646
|
/** Current value. Omit (or pass `null`) for an indeterminate spinner ring. */
|
|
@@ -721,4 +663,4 @@ interface CircularProgressProps extends Omit<React.ComponentProps<"div">, "child
|
|
|
721
663
|
*/
|
|
722
664
|
declare function CircularProgress({ value, max, size, thickness, showLabel, label, tone, className, ...props }: CircularProgressProps): react_jsx_runtime.JSX.Element;
|
|
723
665
|
|
|
724
|
-
export {
|
|
666
|
+
export { ComboboxSeparator as $, Accordion as A, Badge as B, BreadcrumbSeparator as C, CONTROL_SIZE as D, Calendar as E, CalendarDayButton as F, Card as G, CardContent as H, CardDescription as I, CardFooter as J, CardHeader as K, CardTitle as L, Checkbox as M, CircularProgress as N, type CircularProgressProps as O, Collapsible as P, CollapsibleContent as Q, CollapsibleTrigger as R, Combobox as S, ComboboxAnchor as T, ComboboxCommand as U, ComboboxContent as V, ComboboxEmpty as W, ComboboxGroup as X, ComboboxInput as Y, ComboboxItem as Z, ComboboxList as _, AccordionContent as a, FormLabel as a$, ComboboxShortcut as a0, ComboboxTrigger as a1, Command as a2, CommandDialog as a3, CommandEmpty as a4, CommandGroup as a5, CommandInput as a6, CommandItem as a7, CommandList as a8, CommandSeparator as a9, DialogClose as aA, DialogContent as aB, DialogDescription as aC, DialogFooter as aD, DialogHeader as aE, DialogOverlay as aF, DialogPortal as aG, DialogTitle as aH, DialogTrigger as aI, DropdownMenu as aJ, DropdownMenuCheckboxItem as aK, DropdownMenuContent as aL, DropdownMenuGroup as aM, DropdownMenuItem as aN, DropdownMenuLabel as aO, DropdownMenuRadioGroup as aP, DropdownMenuRadioItem as aQ, DropdownMenuSeparator as aR, DropdownMenuShortcut as aS, DropdownMenuSub as aT, DropdownMenuSubContent as aU, DropdownMenuSubTrigger as aV, DropdownMenuTrigger as aW, Form as aX, FormControl as aY, FormField as aZ, FormItem as a_, CommandShortcut as aa, ContextMenu as ab, ContextMenuCheckboxItem as ac, ContextMenuContent as ad, ContextMenuGroup as ae, ContextMenuItem as af, ContextMenuLabel as ag, ContextMenuRadioGroup as ah, ContextMenuRadioItem as ai, ContextMenuSeparator as aj, ContextMenuShortcut as ak, ContextMenuSub as al, ContextMenuSubContent as am, ContextMenuSubTrigger as an, ContextMenuTrigger as ao, type ControlClassOptions as ap, type ControlShape as aq, type ControlSize as ar, CopyButton as as, type CopyButtonProps as at, DatePicker as au, DatePickerButton as av, DatePickerCalendar as aw, DatePickerContent as ax, DatePickerTrigger as ay, Dialog as az, AccordionItem as b, ScrollArea as b$, FormMessage as b0, FormSubmit as b1, HoverCard as b2, HoverCardContent as b3, HoverCardTrigger as b4, Input as b5, InputGroup as b6, InputGroupAddon as b7, InputGroupInput as b8, InputGroupText as b9, NavigationMenuItem as bA, NavigationMenuLink as bB, NavigationMenuList as bC, NavigationMenuTrigger as bD, NavigationMenuViewport as bE, NumberField as bF, type NumberFieldProps as bG, Pagination as bH, PaginationContent as bI, PaginationEllipsis as bJ, PaginationItem as bK, PaginationLink as bL, PaginationNext as bM, PaginationPrevious as bN, type PillSegmentedTab as bO, PillSegmentedTabs as bP, type PillSegmentedTabsProps as bQ, Popover as bR, PopoverAnchor as bS, PopoverContent as bT, PopoverTrigger as bU, Progress as bV, RadioGroup as bW, RadioGroupItem as bX, Rating as bY, type RatingProps as bZ, type RatingTone as b_, InputOTP as ba, InputOTPGroup as bb, InputOTPHiddenInput as bc, InputOTPSeparator as bd, InputOTPSlot as be, Kbd as bf, KbdGroup as bg, Label as bh, MemoPillSegmentedTabs as bi, Menubar as bj, MenubarCheckboxItem as bk, MenubarContent as bl, MenubarItem as bm, MenubarLabel as bn, MenubarMenu as bo, MenubarRadioGroup as bp, MenubarRadioItem as bq, MenubarSeparator as br, MenubarShortcut as bs, MenubarSub as bt, MenubarSubContent as bu, MenubarSubTrigger as bv, MenubarTrigger as bw, NavigationMenu as bx, NavigationMenuContent as by, NavigationMenuIndicator as bz, AccordionTrigger as c, Tooltip as c$, ScrollBar as c0, Select as c1, SelectContent as c2, SelectGroup as c3, SelectItem as c4, SelectLabel as c5, SelectScrollDownButton as c6, SelectScrollUpButton as c7, SelectSeparator as c8, SelectTrigger as c9, TableFooter as cA, TableHead as cB, TableHeader as cC, TableRow as cD, TagInput as cE, type TagInputProps as cF, type TagInputSize as cG, type TextShimmerProps as cH, Textarea as cI, Toast as cJ, ToastAction as cK, ToastClose as cL, ToastDescription as cM, type ToastProps as cN, ToastProvider as cO, ToastTitle as cP, ToastViewport as cQ, Toaster as cR, Toggle as cS, ToggleGroup as cT, ToggleGroupItem as cU, Toolbar as cV, ToolbarButton as cW, ToolbarLink as cX, ToolbarSeparator as cY, ToolbarToggleGroup as cZ, ToolbarToggleItem as c_, SelectValue as ca, Separator as cb, Sheet as cc, SheetClose as cd, SheetContent as ce, SheetDescription as cf, SheetFooter as cg, SheetHeader as ch, SheetTitle as ci, SheetTrigger as cj, Shimmer as ck, Skeleton as cl, Slider as cm, Snippet as cn, type SnippetProps as co, type SnippetSize as cp, type SnippetVariant as cq, Spinner as cr, Stepper as cs, type StepperProps as ct, type StepperStep as cu, Switch as cv, Table as cw, TableBody as cx, TableCaption as cy, TableCell as cz, Alert as d, TooltipContent as d0, TooltipProvider as d1, TooltipTrigger as d2, alertVariants as d3, badgeVariants as d4, controlClass as d5, controlSurfaceClass as d6, formatPickerDate as d7, navigationMenuTriggerStyle as d8, overlayAnimationClass as d9, overlayItemClass as da, overlayListPanelClass as db, overlaySurfaceClass as dc, toast as dd, toggleVariants as de, useToast as df, AlertDescription as e, AlertDialog as f, AlertDialogAction as g, AlertDialogCancel as h, AlertDialogContent as i, AlertDialogDescription as j, AlertDialogFooter as k, AlertDialogHeader as l, AlertDialogOverlay as m, AlertDialogPortal as n, AlertDialogTitle as o, AlertDialogTrigger as p, AlertTitle as q, AspectRatio as r, AvatarGroup as s, type AvatarGroupProps as t, Breadcrumb as u, BreadcrumbEllipsis as v, BreadcrumbItem as w, BreadcrumbLink as x, BreadcrumbList as y, BreadcrumbPage as z };
|