@labpane/ui 1.0.0 → 1.2.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/README.md +27 -12
- package/dist/chunk-NR3PLNO7.js +100 -0
- package/dist/chunk-NR3PLNO7.js.map +7 -0
- package/dist/index.js +6829 -610
- package/dist/index.js.map +4 -4
- package/dist/styles.css +1 -1
- package/dist/terminal.js +1 -1
- package/dist/terminal.js.map +1 -1
- package/dist/ui/alert.d.ts +13 -0
- package/dist/ui/app-menu.d.ts +6 -1
- package/dist/ui/avatar.d.ts +11 -0
- package/dist/ui/badge.d.ts +17 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/browser-layout.d.ts +20 -0
- package/dist/ui/button.d.ts +27 -0
- package/dist/ui/card.d.ts +15 -0
- package/dist/ui/chart-frame.d.ts +4 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/classes.d.ts +5 -0
- package/dist/ui/command.d.ts +82 -0
- package/dist/ui/confirm-dialog.d.ts +28 -0
- package/dist/ui/copy-button.d.ts +7 -0
- package/dist/ui/dialog.d.ts +8 -17
- package/dist/ui/discard-dialog.d.ts +6 -0
- package/dist/ui/email-thread.d.ts +35 -0
- package/dist/ui/empty.d.ts +14 -0
- package/dist/ui/field.d.ts +26 -0
- package/dist/ui/file-input.d.ts +6 -0
- package/dist/ui/flame-graph-model.d.ts +23 -0
- package/dist/ui/flame-graph.d.ts +15 -0
- package/dist/ui/form-fields.d.ts +1 -1
- package/dist/ui/histogram.d.ts +23 -0
- package/dist/ui/index.d.ts +54 -3
- package/dist/ui/input-group.d.ts +28 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/kbd.d.ts +4 -0
- package/dist/ui/label.d.ts +3 -0
- package/dist/ui/menu.d.ts +27 -0
- package/dist/ui/native-select.d.ts +7 -0
- package/dist/ui/nav-tabs.d.ts +7 -0
- package/dist/ui/overlay.d.ts +1 -0
- package/dist/ui/page.d.ts +22 -0
- package/dist/ui/rail.d.ts +16 -0
- package/dist/ui/search-input.d.ts +6 -0
- package/dist/ui/select.d.ts +13 -0
- package/dist/ui/separator.d.ts +6 -0
- package/dist/ui/settings.d.ts +14 -0
- package/dist/ui/sheet.d.ts +20 -0
- package/dist/ui/side-panel.d.ts +23 -0
- package/dist/ui/sidebar.d.ts +81 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/spinner.d.ts +3 -0
- package/dist/ui/stat.d.ts +7 -0
- package/dist/ui/steps.d.ts +7 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/tab-state.d.ts +8 -0
- package/dist/ui/table-layout.d.ts +19 -0
- package/dist/ui/table-model.d.ts +42 -0
- package/dist/ui/table-screen.d.ts +9 -0
- package/dist/ui/table.d.ts +33 -22
- package/dist/ui/tabs.d.ts +13 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/theme.d.ts +22 -0
- package/dist/ui/time-series-chart.d.ts +19 -0
- package/dist/ui/time-series-model.d.ts +90 -0
- package/dist/ui/timing-tracks.d.ts +27 -0
- package/dist/ui/toggle.d.ts +22 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/topbar.d.ts +4 -0
- package/dist/ui/use-chart-width.d.ts +5 -0
- package/dist/ui/use-mobile.d.ts +1 -0
- package/package.json +18 -1
- package/styles.css +123 -0
- package/dist/chunk-3ZY2AVB4.js +0 -434
- package/dist/chunk-3ZY2AVB4.js.map +0 -7
- package/dist/ui/primitives.d.ts +0 -85
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const buttonVariants: {
|
|
3
|
+
default: string;
|
|
4
|
+
destructive: string;
|
|
5
|
+
outline: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
ghost: string;
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
10
|
+
declare const buttonSizes: {
|
|
11
|
+
default: string;
|
|
12
|
+
xs: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
"icon-xs": string;
|
|
17
|
+
"icon-sm": string;
|
|
18
|
+
"icon-lg": string;
|
|
19
|
+
};
|
|
20
|
+
export type ButtonVariant = keyof typeof buttonVariants;
|
|
21
|
+
export type ButtonSize = keyof typeof buttonSizes;
|
|
22
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
23
|
+
variant?: ButtonVariant | null;
|
|
24
|
+
size?: ButtonSize | null;
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
export { Button };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
bordered?: boolean;
|
|
5
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
7
|
+
as?: "h2" | "h3" | "h4" | "div";
|
|
8
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
declare const CardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const CardAction: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const CardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const CardFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Shared surface for interactive charts. Data loading belongs to the caller. */
|
|
3
|
+
declare const ChartFrame: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { ChartFrame };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
package/dist/ui/classes.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { type ClassValue } from "clsx";
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
export declare const focusRing = "labui:focus-visible:border-ring labui:focus-visible:ring-[3px] labui:focus-visible:ring-ring/50";
|
|
4
|
+
export declare const invalidRing = "labui:aria-invalid:border-destructive labui:aria-invalid:ring-destructive/20 labui:dark:aria-invalid:ring-destructive/40";
|
|
5
|
+
export declare const overlay = "labui:fixed labui:inset-0 labui:z-50 labui:bg-overlay labui:data-[state=open]:animate-fade-in labui:data-[state=closed]:animate-fade-out";
|
|
6
|
+
export declare const closeButton: string;
|
|
7
|
+
export declare const inputSurface: string;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Dialog } from "./dialog.js";
|
|
3
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
} & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
21
|
+
title?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
showCloseButton?: boolean;
|
|
25
|
+
}): React.JSX.Element;
|
|
26
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
+
} & {
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
31
|
+
value?: string;
|
|
32
|
+
onValueChange?: (search: string) => void;
|
|
33
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
34
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
37
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
38
|
+
} & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
label?: string;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
53
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
54
|
+
} & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
57
|
+
heading?: React.ReactNode;
|
|
58
|
+
value?: string;
|
|
59
|
+
forceMount?: boolean;
|
|
60
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
62
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
63
|
+
} & {
|
|
64
|
+
asChild?: boolean;
|
|
65
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
66
|
+
alwaysRender?: boolean;
|
|
67
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
71
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
+
} & {
|
|
73
|
+
asChild?: boolean;
|
|
74
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "onSelect" | "value"> & {
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
onSelect?: (value: string) => void;
|
|
77
|
+
value?: string;
|
|
78
|
+
keywords?: string[];
|
|
79
|
+
forceMount?: boolean;
|
|
80
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
82
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type Confirmation = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
match?: "exact" | "loose";
|
|
7
|
+
};
|
|
8
|
+
export type ConfirmDialogProps = {
|
|
9
|
+
trigger?: React.ReactElement;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
title: React.ReactNode;
|
|
14
|
+
name?: string;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
confirmLabel: string;
|
|
17
|
+
cancelLabel?: string;
|
|
18
|
+
pendingLabel?: string;
|
|
19
|
+
tone?: "destructive" | "default";
|
|
20
|
+
warning?: React.ReactNode;
|
|
21
|
+
confirmation?: Confirmation;
|
|
22
|
+
typeToConfirm?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
onConfirm: () => void | Promise<void>;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function matchesConfirmation(value: string, confirmation: Confirmation): boolean;
|
|
28
|
+
export declare function ConfirmDialog({ trigger, open, defaultOpen, onOpenChange, ...props }: ConfirmDialogProps): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Button } from "./button.js";
|
|
3
|
+
export declare function CopyButton({ value, label, className, variant, size, ...props }: Omit<React.ComponentPropsWithoutRef<typeof Button>, "onClick" | "value" | "size"> & {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
7
|
+
}): React.JSX.Element;
|
package/dist/ui/dialog.d.ts
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
declare
|
|
3
|
+
declare function Dialog({ open, defaultOpen, onOpenChange, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
8
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
7
9
|
showCloseButton?: boolean;
|
|
10
|
+
busy?: boolean;
|
|
8
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
12
|
declare const DialogHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> &
|
|
13
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
showCloseButton?: boolean;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
16
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
12
17
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
|
|
14
|
-
export declare function ConfirmDialog({ trigger, title, name, confirmLabel, typeToConfirm, onConfirm, }: {
|
|
15
|
-
trigger: React.ReactElement;
|
|
16
|
-
title: string;
|
|
17
|
-
name: string;
|
|
18
|
-
confirmLabel: string;
|
|
19
|
-
typeToConfirm?: boolean;
|
|
20
|
-
onConfirm: () => Promise<void>;
|
|
21
|
-
}): React.JSX.Element;
|
|
22
|
-
export declare function DiscardDialog({ label, onCancel, onConfirm, onCloseAutoFocus, }: {
|
|
23
|
-
label?: string;
|
|
24
|
-
onCancel: () => void;
|
|
25
|
-
onConfirm: () => void;
|
|
26
|
-
onCloseAutoFocus?: (event: Event) => void;
|
|
27
|
-
}): React.JSX.Element;
|
|
18
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type EmailParticipant = {
|
|
3
|
+
name?: string;
|
|
4
|
+
address?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function EmailIdentity({ name, address }: EmailParticipant): React.JSX.Element;
|
|
7
|
+
declare const EmailThread: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
8
|
+
declare const messageTones: {
|
|
9
|
+
default: string;
|
|
10
|
+
muted: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
};
|
|
13
|
+
export type EmailMessageProps = Omit<React.ComponentPropsWithoutRef<"li">, "children"> & {
|
|
14
|
+
sender: EmailParticipant;
|
|
15
|
+
recipient?: EmailParticipant;
|
|
16
|
+
attribution?: React.ReactNode;
|
|
17
|
+
dateTime?: string;
|
|
18
|
+
dateLabel: string;
|
|
19
|
+
badge?: React.ReactNode;
|
|
20
|
+
tone?: keyof typeof messageTones;
|
|
21
|
+
body: string;
|
|
22
|
+
attachments?: React.ReactNode;
|
|
23
|
+
};
|
|
24
|
+
declare const EmailMessage: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "children"> & {
|
|
25
|
+
sender: EmailParticipant;
|
|
26
|
+
recipient?: EmailParticipant;
|
|
27
|
+
attribution?: React.ReactNode;
|
|
28
|
+
dateTime?: string;
|
|
29
|
+
dateLabel: string;
|
|
30
|
+
badge?: React.ReactNode;
|
|
31
|
+
tone?: keyof typeof messageTones;
|
|
32
|
+
body: string;
|
|
33
|
+
attachments?: React.ReactNode;
|
|
34
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
35
|
+
export { EmailIdentity, EmailMessage, EmailThread };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Empty: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const EmptyHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const emptyMediaVariants: {
|
|
5
|
+
default: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
declare const EmptyMedia: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
variant?: keyof typeof emptyMediaVariants;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const EmptyTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const EmptyDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
declare const EmptyContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const FieldSet: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
3
|
+
declare const FieldLegend: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, "ref"> & {
|
|
4
|
+
variant?: "legend" | "label";
|
|
5
|
+
} & React.RefAttributes<HTMLLegendElement>>;
|
|
6
|
+
declare const FieldGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const fieldOrientations: {
|
|
8
|
+
vertical: string;
|
|
9
|
+
horizontal: string;
|
|
10
|
+
responsive: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Field: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
orientation?: keyof typeof fieldOrientations;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const FieldContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const FieldLabel: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
17
|
+
declare const FieldTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const FieldDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
declare const FieldSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
type FieldErrorItem = {
|
|
21
|
+
message?: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
declare const FieldError: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
+
errors?: FieldErrorItem[];
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const FileInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "type"> & {
|
|
3
|
+
chooseLabel?: string;
|
|
4
|
+
emptyLabel?: string;
|
|
5
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { FileInput };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Inclusive and exclusive values use the same unit supplied to the chart. */
|
|
2
|
+
export type FlameNode = {
|
|
3
|
+
id: string;
|
|
4
|
+
parentId: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
total: number;
|
|
7
|
+
self: number;
|
|
8
|
+
calls: number;
|
|
9
|
+
/** Caller-supplied source or location detail, shown without interpreting it. */
|
|
10
|
+
detail?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
};
|
|
13
|
+
export type FlameRect = {
|
|
14
|
+
node: FlameNode;
|
|
15
|
+
x: number;
|
|
16
|
+
width: number;
|
|
17
|
+
depth: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function indexFlameNodes(nodes: FlameNode[]): Map<string, FlameNode>;
|
|
20
|
+
/** Lays out a caller-provided tree. Horizontal position is alphabetical, not time. */
|
|
21
|
+
export declare function flameLayout(nodes: FlameNode[], focusId: string, width: number): FlameRect[];
|
|
22
|
+
/** Ancestry from the root down to the node, for breadcrumbs and search results. */
|
|
23
|
+
export declare function flamePath(nodes: FlameNode[] | Map<string, FlameNode>, id: string): FlameNode[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type FlameNode } from "./flame-graph-model.js";
|
|
3
|
+
export type { FlameNode } from "./flame-graph-model.js";
|
|
4
|
+
export type FlameGraphProps = {
|
|
5
|
+
nodes: FlameNode[];
|
|
6
|
+
label?: string;
|
|
7
|
+
unit?: string;
|
|
8
|
+
countLabel?: string;
|
|
9
|
+
meanLabel?: string;
|
|
10
|
+
focusId?: string | null;
|
|
11
|
+
onFocusChange?: (id: string | null) => void;
|
|
12
|
+
};
|
|
13
|
+
/** Interactive flame graph over caller-supplied data: hover or focus to inspect, click to zoom. */
|
|
14
|
+
declare const FlameGraph: React.ForwardRefExoticComponent<FlameGraphProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { FlameGraph };
|
package/dist/ui/form-fields.d.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Inclusive integer bounds, with a count of observations in each interval. */
|
|
3
|
+
export type HistogramBin = {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
count: number;
|
|
7
|
+
};
|
|
8
|
+
export type HistogramChartProps = {
|
|
9
|
+
bins: HistogramBin[];
|
|
10
|
+
label: string;
|
|
11
|
+
xLabel: string;
|
|
12
|
+
unit: string;
|
|
13
|
+
selected?: number;
|
|
14
|
+
onSelect: (index: number) => void;
|
|
15
|
+
};
|
|
16
|
+
/** Small presentation-only plot for a table cell. Its caller supplies the button. */
|
|
17
|
+
declare const HistogramSparkline: React.ForwardRefExoticComponent<{
|
|
18
|
+
bins: HistogramBin[];
|
|
19
|
+
label: string;
|
|
20
|
+
} & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
/** Discrete, equal-width bins. Pointer and keyboard inspection share one selection. */
|
|
22
|
+
declare const HistogramChart: React.ForwardRefExoticComponent<HistogramChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export { HistogramChart, HistogramSparkline };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./menu.js";
|
|
1
|
+
export { cn } from "./classes.js";
|
|
2
|
+
export * from "./alert.js";
|
|
4
3
|
export * from "./app-menu.js";
|
|
4
|
+
export * from "./avatar.js";
|
|
5
|
+
export * from "./badge.js";
|
|
6
|
+
export * from "./breadcrumb.js";
|
|
7
|
+
export * from "./browser-layout.js";
|
|
8
|
+
export * from "./button.js";
|
|
9
|
+
export * from "./card.js";
|
|
10
|
+
export * from "./chart-frame.js";
|
|
11
|
+
export * from "./checkbox.js";
|
|
12
|
+
export * from "./command.js";
|
|
13
|
+
export * from "./confirm-dialog.js";
|
|
14
|
+
export * from "./copy-button.js";
|
|
15
|
+
export * from "./dialog.js";
|
|
16
|
+
export * from "./discard-dialog.js";
|
|
17
|
+
export * from "./email-thread.js";
|
|
18
|
+
export * from "./empty.js";
|
|
19
|
+
export * from "./field.js";
|
|
20
|
+
export * from "./file-input.js";
|
|
21
|
+
export * from "./flame-graph.js";
|
|
5
22
|
export * from "./form-fields.js";
|
|
23
|
+
export * from "./histogram.js";
|
|
24
|
+
export * from "./input.js";
|
|
25
|
+
export * from "./input-group.js";
|
|
26
|
+
export * from "./kbd.js";
|
|
27
|
+
export * from "./label.js";
|
|
28
|
+
export * from "./menu.js";
|
|
29
|
+
export * from "./native-select.js";
|
|
30
|
+
export * from "./nav-tabs.js";
|
|
31
|
+
export * from "./page.js";
|
|
32
|
+
export * from "./rail.js";
|
|
33
|
+
export * from "./search-input.js";
|
|
34
|
+
export * from "./select.js";
|
|
35
|
+
export * from "./separator.js";
|
|
36
|
+
export * from "./settings.js";
|
|
37
|
+
export * from "./sheet.js";
|
|
38
|
+
export * from "./side-panel.js";
|
|
39
|
+
export * from "./sidebar.js";
|
|
40
|
+
export * from "./skeleton.js";
|
|
41
|
+
export * from "./spinner.js";
|
|
42
|
+
export * from "./stat.js";
|
|
43
|
+
export * from "./steps.js";
|
|
44
|
+
export * from "./switch.js";
|
|
45
|
+
export * from "./tab-state.js";
|
|
6
46
|
export * from "./table.js";
|
|
47
|
+
export * from "./table-screen.js";
|
|
48
|
+
export * from "./tabs.js";
|
|
49
|
+
export * from "./textarea.js";
|
|
50
|
+
export * from "./theme.js";
|
|
51
|
+
export * from "./time-series-chart.js";
|
|
52
|
+
export * from "./timing-tracks.js";
|
|
53
|
+
export * from "./toggle.js";
|
|
54
|
+
export * from "./tooltip.js";
|
|
55
|
+
export * from "./topbar.js";
|
|
56
|
+
export * from "./use-chart-width.js";
|
|
57
|
+
export * from "./use-mobile.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const InputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const addonAlignments: {
|
|
4
|
+
"inline-start": string;
|
|
5
|
+
"inline-end": string;
|
|
6
|
+
"block-start": string;
|
|
7
|
+
"block-end": string;
|
|
8
|
+
};
|
|
9
|
+
declare const InputGroupAddon: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
align?: keyof typeof addonAlignments;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const groupButtonSizes: {
|
|
13
|
+
xs: string;
|
|
14
|
+
sm: string;
|
|
15
|
+
"icon-xs": string;
|
|
16
|
+
"icon-sm": string;
|
|
17
|
+
};
|
|
18
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
19
|
+
variant?: import("./button.js").ButtonVariant | null;
|
|
20
|
+
size?: import("./button.js").ButtonSize | null;
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref">, "size"> & {
|
|
23
|
+
size?: keyof typeof groupButtonSizes;
|
|
24
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
declare const InputGroupText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
declare const InputGroupInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
declare const InputGroupTextarea: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
28
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
package/dist/ui/kbd.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Kbd: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const KbdGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
export { Kbd, KbdGroup };
|
package/dist/ui/menu.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
3
|
export type MenuAction = {
|
|
3
4
|
label: string;
|
|
4
5
|
onSelect: () => void;
|
|
@@ -14,6 +15,31 @@ export type MenuOption = {
|
|
|
14
15
|
group?: string;
|
|
15
16
|
icon?: React.ReactNode;
|
|
16
17
|
};
|
|
18
|
+
declare function DropdownMenu({ open, defaultOpen, onOpenChange, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
19
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
23
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
25
|
+
inset?: boolean;
|
|
26
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const itemVariants: {
|
|
29
|
+
default: string;
|
|
30
|
+
destructive: string;
|
|
31
|
+
};
|
|
32
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
33
|
+
inset?: boolean;
|
|
34
|
+
variant?: keyof typeof itemVariants;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
39
|
+
inset?: boolean;
|
|
40
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
17
43
|
export declare function MenuContent({ children, className, }: {
|
|
18
44
|
children: React.ReactNode;
|
|
19
45
|
className?: string;
|
|
@@ -31,3 +57,4 @@ export declare function OptionMenu({ trigger, options, onSelect, open, onOpenCha
|
|
|
31
57
|
onOpenChange?: (open: boolean) => void;
|
|
32
58
|
onCloseAutoFocus?: (event: Event) => void;
|
|
33
59
|
}): React.JSX.Element;
|
|
60
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const NativeSelect: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "size"> & {
|
|
3
|
+
size?: "sm" | "default";
|
|
4
|
+
} & React.RefAttributes<HTMLSelectElement>>;
|
|
5
|
+
declare const NativeSelectOption: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & React.RefAttributes<HTMLOptionElement>>;
|
|
6
|
+
declare const NativeSelectOptGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>, "ref"> & React.RefAttributes<HTMLOptGroupElement>>;
|
|
7
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const NavTabs: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const NavTab: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
export { NavTabs, NavTab };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useOverlayOpen(open: boolean | undefined, onOpenChange: ((open: boolean) => void) | undefined, defaultOpen?: boolean): [boolean, (open: boolean) => void];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const PageActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const PageHeaderText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const PageEyebrow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
declare const PageTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
6
|
+
declare const PageDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const PageHeader: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "title"> & {
|
|
8
|
+
title?: React.ReactNode;
|
|
9
|
+
eyebrow?: React.ReactNode;
|
|
10
|
+
description?: React.ReactNode;
|
|
11
|
+
leading?: React.ReactNode;
|
|
12
|
+
actions?: React.ReactNode;
|
|
13
|
+
variant?: "bar";
|
|
14
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
declare const Page: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title"> & {
|
|
16
|
+
title?: React.ReactNode;
|
|
17
|
+
actions?: React.ReactNode;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const Back: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
20
|
+
label: string;
|
|
21
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
22
|
+
export { Back, Page, PageActions, PageDescription, PageEyebrow, PageHeader, PageHeaderText, PageTitle, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Rail: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
side?: "left" | "right";
|
|
4
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
5
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
6
|
+
} & React.RefAttributes<HTMLDivElement>, "ref">, "collapsible"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const RailItem: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
variant?: "default" | "outline";
|
|
11
|
+
size?: "default" | "lg" | "sm";
|
|
12
|
+
tooltip?: string | React.ComponentProps<React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
13
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref">, "isActive"> & {
|
|
14
|
+
active?: boolean;
|
|
15
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export { Rail, RailItem };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const SearchInput: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
3
|
+
onClear?: () => void;
|
|
4
|
+
clearLabel?: string;
|
|
5
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { SearchInput };
|