@townco/ui 0.1.6 → 0.1.8
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 +11 -11
- package/dist/core/hooks/index.d.ts +1 -0
- package/dist/core/hooks/index.js +1 -0
- package/dist/core/hooks/use-chat-input.d.ts +17 -17
- package/dist/core/hooks/use-chat-input.js +55 -64
- package/dist/core/hooks/use-chat-messages.d.ts +11 -11
- package/dist/core/hooks/use-chat-messages.js +114 -121
- package/dist/core/hooks/use-chat-session.d.ts +5 -5
- package/dist/core/hooks/use-chat-session.js +80 -78
- package/dist/core/hooks/use-media-query.d.ts +5 -5
- package/dist/core/hooks/use-media-query.js +42 -38
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/schemas/chat.d.ts +56 -83
- package/dist/core/schemas/chat.js +25 -27
- package/dist/core/store/chat-store.d.ts +22 -28
- package/dist/core/store/chat-store.js +50 -59
- package/dist/gui/components/Button.d.ts +7 -23
- package/dist/gui/components/Button.js +27 -40
- package/dist/gui/components/Card.d.ts +7 -26
- package/dist/gui/components/Card.js +8 -54
- package/dist/gui/components/ChatHeader.d.ts +31 -58
- package/dist/gui/components/ChatHeader.js +68 -171
- package/dist/gui/components/ChatInput.d.ts +54 -58
- package/dist/gui/components/ChatInput.js +207 -194
- package/dist/gui/components/ChatInputCommandMenu.d.ts +20 -0
- package/dist/gui/components/ChatInputCommandMenu.js +62 -0
- package/dist/gui/components/ChatLayout.d.ts +41 -71
- package/dist/gui/components/ChatLayout.js +87 -214
- package/dist/gui/components/ChatPanelTabContent.d.ts +9 -18
- package/dist/gui/components/ChatPanelTabContent.js +10 -88
- package/dist/gui/components/ChatSecondaryPanel.d.ts +11 -14
- package/dist/gui/components/ChatSecondaryPanel.js +38 -115
- package/dist/gui/components/ChatSidebar.d.ts +13 -26
- package/dist/gui/components/ChatSidebar.js +14 -48
- package/dist/gui/components/ChatStatus.d.ts +2 -4
- package/dist/gui/components/ChatStatus.js +34 -45
- package/dist/gui/components/Conversation.d.ts +14 -17
- package/dist/gui/components/Conversation.js +83 -143
- package/dist/gui/components/Dialog.d.ts +11 -57
- package/dist/gui/components/Dialog.js +8 -84
- package/dist/gui/components/DropdownMenu.d.ts +20 -101
- package/dist/gui/components/DropdownMenu.js +14 -161
- package/dist/gui/components/HeightTransition.d.ts +7 -12
- package/dist/gui/components/HeightTransition.js +77 -88
- package/dist/gui/components/Input.d.ts +6 -13
- package/dist/gui/components/Input.js +16 -27
- package/dist/gui/components/Label.d.ts +1 -7
- package/dist/gui/components/Label.js +2 -12
- package/dist/gui/components/MarkdownRenderer.d.ts +4 -6
- package/dist/gui/components/MarkdownRenderer.js +81 -178
- package/dist/gui/components/Message.d.ts +22 -25
- package/dist/gui/components/Message.js +97 -44
- package/dist/gui/components/MessageContent.d.ts +22 -29
- package/dist/gui/components/MessageContent.js +85 -157
- package/dist/gui/components/Reasoning.d.ts +24 -30
- package/dist/gui/components/Reasoning.js +60 -187
- package/dist/gui/components/Response.d.ts +9 -11
- package/dist/gui/components/Response.js +90 -229
- package/dist/gui/components/Select.d.ts +10 -69
- package/dist/gui/components/Select.js +12 -118
- package/dist/gui/components/Sonner.d.ts +1 -3
- package/dist/gui/components/Sonner.js +18 -29
- package/dist/gui/components/Tabs.d.ts +4 -24
- package/dist/gui/components/Tabs.js +4 -32
- package/dist/gui/components/Task.d.ts +24 -28
- package/dist/gui/components/Task.js +31 -164
- package/dist/gui/components/Textarea.d.ts +7 -15
- package/dist/gui/components/Textarea.js +46 -63
- package/dist/gui/components/ThinkingBlock.d.ts +10 -20
- package/dist/gui/components/ThinkingBlock.js +35 -134
- package/dist/gui/components/TodoList.d.ts +10 -12
- package/dist/gui/components/TodoList.js +7 -22
- package/dist/gui/components/TodoListItem.d.ts +6 -9
- package/dist/gui/components/TodoListItem.js +4 -18
- package/dist/gui/components/index.d.ts +16 -59
- package/dist/gui/components/index.js +18 -42
- package/dist/gui/lib/utils.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.test.js +1 -0
- package/dist/sdk/client/acp-client.d.ts +76 -88
- package/dist/sdk/client/acp-client.js +217 -215
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/schemas/agent.d.ts +64 -111
- package/dist/sdk/schemas/agent.js +24 -24
- package/dist/sdk/schemas/message.d.ts +147 -245
- package/dist/sdk/schemas/message.js +40 -40
- package/dist/sdk/schemas/session.d.ts +135 -219
- package/dist/sdk/schemas/session.js +27 -27
- package/dist/sdk/transports/http.d.ts +55 -55
- package/dist/sdk/transports/http.js +469 -472
- package/dist/sdk/transports/stdio.d.ts +20 -20
- package/dist/sdk/transports/stdio.js +286 -289
- package/dist/sdk/transports/types.d.ts +42 -42
- package/dist/sdk/transports/websocket.d.ts +12 -12
- package/dist/sdk/transports/websocket.js +46 -52
- package/dist/tui/components/ChatView.d.ts +2 -4
- package/dist/tui/components/ChatView.js +18 -51
- package/dist/tui/components/GameOfLife.js +35 -64
- package/dist/tui/components/InputBox.d.ts +11 -18
- package/dist/tui/components/InputBox.js +10 -70
- package/dist/tui/components/MessageList.d.ts +2 -4
- package/dist/tui/components/MessageList.js +10 -37
- package/dist/tui/components/MultiSelect.d.ts +10 -15
- package/dist/tui/components/MultiSelect.js +73 -116
- package/dist/tui/components/ReadlineInput.d.ts +6 -12
- package/dist/tui/components/ReadlineInput.js +237 -252
- package/dist/tui/components/SingleSelect.d.ts +9 -15
- package/dist/tui/components/SingleSelect.js +43 -84
- package/dist/tui/components/StatusBar.d.ts +6 -11
- package/dist/tui/components/StatusBar.js +67 -102
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +6 -4
- package/src/styles/global.css +2 -0
- package/dist/core/hooks/index.d.ts.map +0 -1
- package/dist/core/hooks/index.js.map +0 -1
- package/dist/core/hooks/use-chat-input.d.ts.map +0 -1
- package/dist/core/hooks/use-chat-input.js.map +0 -1
- package/dist/core/hooks/use-chat-messages.d.ts.map +0 -1
- package/dist/core/hooks/use-chat-messages.js.map +0 -1
- package/dist/core/hooks/use-chat-session.d.ts.map +0 -1
- package/dist/core/hooks/use-chat-session.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/schemas/chat.d.ts.map +0 -1
- package/dist/core/schemas/chat.js.map +0 -1
- package/dist/core/schemas/index.d.ts.map +0 -1
- package/dist/core/schemas/index.js.map +0 -1
- package/dist/core/store/chat-store.d.ts.map +0 -1
- package/dist/core/store/chat-store.js.map +0 -1
- package/dist/gui/components/Button.d.ts.map +0 -1
- package/dist/gui/components/Button.js.map +0 -1
- package/dist/gui/components/Card.d.ts.map +0 -1
- package/dist/gui/components/Card.js.map +0 -1
- package/dist/gui/components/ChatInput.d.ts.map +0 -1
- package/dist/gui/components/ChatInput.js.map +0 -1
- package/dist/gui/components/ChatInterface.d.ts +0 -12
- package/dist/gui/components/ChatInterface.d.ts.map +0 -1
- package/dist/gui/components/ChatInterface.js +0 -204
- package/dist/gui/components/ChatInterface.js.map +0 -1
- package/dist/gui/components/ChatPreview.d.ts +0 -12
- package/dist/gui/components/ChatPreview.d.ts.map +0 -1
- package/dist/gui/components/ChatPreview.js +0 -214
- package/dist/gui/components/ChatPreview.js.map +0 -1
- package/dist/gui/components/ChatSecondaryPanel.d.ts.map +0 -1
- package/dist/gui/components/ChatSecondaryPanel.js.map +0 -1
- package/dist/gui/components/ChatStatus.d.ts.map +0 -1
- package/dist/gui/components/ChatStatus.js.map +0 -1
- package/dist/gui/components/ChatView.d.ts +0 -8
- package/dist/gui/components/ChatView.d.ts.map +0 -1
- package/dist/gui/components/ChatView.js +0 -42
- package/dist/gui/components/ChatView.js.map +0 -1
- package/dist/gui/components/ConfigPanel.d.ts +0 -20
- package/dist/gui/components/ConfigPanel.d.ts.map +0 -1
- package/dist/gui/components/ConfigPanel.js +0 -225
- package/dist/gui/components/ConfigPanel.js.map +0 -1
- package/dist/gui/components/Conversation.d.ts.map +0 -1
- package/dist/gui/components/Conversation.js.map +0 -1
- package/dist/gui/components/Dialog.d.ts.map +0 -1
- package/dist/gui/components/Dialog.js.map +0 -1
- package/dist/gui/components/HeightTransition.d.ts.map +0 -1
- package/dist/gui/components/HeightTransition.js.map +0 -1
- package/dist/gui/components/Input.d.ts.map +0 -1
- package/dist/gui/components/Input.js.map +0 -1
- package/dist/gui/components/InputBox.d.ts +0 -21
- package/dist/gui/components/InputBox.d.ts.map +0 -1
- package/dist/gui/components/InputBox.js +0 -90
- package/dist/gui/components/InputBox.js.map +0 -1
- package/dist/gui/components/Label.d.ts.map +0 -1
- package/dist/gui/components/Label.js.map +0 -1
- package/dist/gui/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/gui/components/MarkdownRenderer.js.map +0 -1
- package/dist/gui/components/Message.d.ts.map +0 -1
- package/dist/gui/components/Message.js.map +0 -1
- package/dist/gui/components/MessageContent.d.ts.map +0 -1
- package/dist/gui/components/MessageContent.js.map +0 -1
- package/dist/gui/components/MessageList.d.ts.map +0 -1
- package/dist/gui/components/MessageList.js.map +0 -1
- package/dist/gui/components/PlaygroundLayout.d.ts +0 -14
- package/dist/gui/components/PlaygroundLayout.d.ts.map +0 -1
- package/dist/gui/components/PlaygroundLayout.js +0 -49
- package/dist/gui/components/PlaygroundLayout.js.map +0 -1
- package/dist/gui/components/Reasoning.d.ts.map +0 -1
- package/dist/gui/components/Reasoning.js.map +0 -1
- package/dist/gui/components/Response.d.ts.map +0 -1
- package/dist/gui/components/Response.js.map +0 -1
- package/dist/gui/components/Select.d.ts.map +0 -1
- package/dist/gui/components/Select.js.map +0 -1
- package/dist/gui/components/StatusBar.d.ts +0 -12
- package/dist/gui/components/StatusBar.d.ts.map +0 -1
- package/dist/gui/components/StatusBar.js +0 -58
- package/dist/gui/components/StatusBar.js.map +0 -1
- package/dist/gui/components/Tabs.d.ts.map +0 -1
- package/dist/gui/components/Tabs.js.map +0 -1
- package/dist/gui/components/Task.d.ts.map +0 -1
- package/dist/gui/components/Task.js.map +0 -1
- package/dist/gui/components/Textarea.d.ts.map +0 -1
- package/dist/gui/components/Textarea.js.map +0 -1
- package/dist/gui/components/ThinkingBlock.d.ts.map +0 -1
- package/dist/gui/components/ThinkingBlock.js.map +0 -1
- package/dist/gui/components/TodoList.d.ts.map +0 -1
- package/dist/gui/components/TodoList.js.map +0 -1
- package/dist/gui/components/TodoListItem.d.ts.map +0 -1
- package/dist/gui/components/TodoListItem.js.map +0 -1
- package/dist/gui/components/index.d.ts.map +0 -1
- package/dist/gui/components/index.js.map +0 -1
- package/dist/gui/index.d.ts.map +0 -1
- package/dist/gui/index.js.map +0 -1
- package/dist/gui/lib/utils.d.ts.map +0 -1
- package/dist/gui/lib/utils.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/sdk/client/acp-client.d.ts.map +0 -1
- package/dist/sdk/client/acp-client.js.map +0 -1
- package/dist/sdk/client/index.d.ts.map +0 -1
- package/dist/sdk/client/index.js.map +0 -1
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/schemas/agent.d.ts.map +0 -1
- package/dist/sdk/schemas/agent.js.map +0 -1
- package/dist/sdk/schemas/index.d.ts.map +0 -1
- package/dist/sdk/schemas/index.js.map +0 -1
- package/dist/sdk/schemas/message.d.ts.map +0 -1
- package/dist/sdk/schemas/message.js.map +0 -1
- package/dist/sdk/schemas/session.d.ts.map +0 -1
- package/dist/sdk/schemas/session.js.map +0 -1
- package/dist/sdk/transports/http.d.ts.map +0 -1
- package/dist/sdk/transports/http.js.map +0 -1
- package/dist/sdk/transports/index.d.ts.map +0 -1
- package/dist/sdk/transports/index.js.map +0 -1
- package/dist/sdk/transports/stdio.d.ts.map +0 -1
- package/dist/sdk/transports/stdio.js.map +0 -1
- package/dist/sdk/transports/types.d.ts.map +0 -1
- package/dist/sdk/transports/types.js.map +0 -1
- package/dist/sdk/transports/websocket.d.ts.map +0 -1
- package/dist/sdk/transports/websocket.js.map +0 -1
- package/dist/tui/components/ChatView.d.ts.map +0 -1
- package/dist/tui/components/ChatView.js.map +0 -1
- package/dist/tui/components/GameOfLife.d.ts.map +0 -1
- package/dist/tui/components/GameOfLife.js.map +0 -1
- package/dist/tui/components/InputBox.d.ts.map +0 -1
- package/dist/tui/components/InputBox.js.map +0 -1
- package/dist/tui/components/MessageList.d.ts.map +0 -1
- package/dist/tui/components/MessageList.js.map +0 -1
- package/dist/tui/components/ReadlineInput.d.ts.map +0 -1
- package/dist/tui/components/ReadlineInput.js.map +0 -1
- package/dist/tui/components/StatusBar.d.ts.map +0 -1
- package/dist/tui/components/StatusBar.js.map +0 -1
- package/dist/tui/components/index.d.ts.map +0 -1
- package/dist/tui/components/index.js.map +0 -1
- package/dist/tui/index.d.ts.map +0 -1
- package/dist/tui/index.js.map +0 -1
|
@@ -1,98 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
3
|
import { X } from "lucide-react";
|
|
3
4
|
import * as React from "react";
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cn } from "../lib/utils.js";
|
|
6
|
-
|
|
7
6
|
const Dialog = DialogPrimitive.Root;
|
|
8
7
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
9
8
|
const DialogPortal = DialogPrimitive.Portal;
|
|
10
9
|
const DialogClose = DialogPrimitive.Close;
|
|
11
|
-
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) =>
|
|
12
|
-
_jsx(DialogPrimitive.Overlay, {
|
|
13
|
-
ref: ref,
|
|
14
|
-
className: cn(
|
|
15
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
16
|
-
className,
|
|
17
|
-
),
|
|
18
|
-
...props,
|
|
19
|
-
}),
|
|
20
|
-
);
|
|
10
|
+
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
|
|
21
11
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
22
|
-
const DialogContent = React.forwardRef(
|
|
23
|
-
({ className, children, ...props }, ref) =>
|
|
24
|
-
_jsxs(DialogPortal, {
|
|
25
|
-
children: [
|
|
26
|
-
_jsx(DialogOverlay, {}),
|
|
27
|
-
_jsxs(DialogPrimitive.Content, {
|
|
28
|
-
ref: ref,
|
|
29
|
-
className: cn(
|
|
30
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
31
|
-
className,
|
|
32
|
-
),
|
|
33
|
-
...props,
|
|
34
|
-
children: [
|
|
35
|
-
children,
|
|
36
|
-
_jsxs(DialogPrimitive.Close, {
|
|
37
|
-
className:
|
|
38
|
-
"absolute right-4 top-4 rounded-sm 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",
|
|
39
|
-
children: [
|
|
40
|
-
_jsx(X, { className: "h-4 w-4" }),
|
|
41
|
-
_jsx("span", { className: "sr-only", children: "Close" }),
|
|
42
|
-
],
|
|
43
|
-
}),
|
|
44
|
-
],
|
|
45
|
-
}),
|
|
46
|
-
],
|
|
47
|
-
}),
|
|
48
|
-
);
|
|
12
|
+
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className), ...props, children: [children, _jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm 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: [_jsx(X, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] })));
|
|
49
13
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
50
|
-
const DialogHeader = ({ className, ...props }) =>
|
|
51
|
-
_jsx("div", {
|
|
52
|
-
className: cn(
|
|
53
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
54
|
-
className,
|
|
55
|
-
),
|
|
56
|
-
...props,
|
|
57
|
-
});
|
|
14
|
+
const DialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }));
|
|
58
15
|
DialogHeader.displayName = "DialogHeader";
|
|
59
|
-
const DialogFooter = ({ className, ...props }) =>
|
|
60
|
-
_jsx("div", {
|
|
61
|
-
className: cn(
|
|
62
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
63
|
-
className,
|
|
64
|
-
),
|
|
65
|
-
...props,
|
|
66
|
-
});
|
|
16
|
+
const DialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
67
17
|
DialogFooter.displayName = "DialogFooter";
|
|
68
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) =>
|
|
69
|
-
_jsx(DialogPrimitive.Title, {
|
|
70
|
-
ref: ref,
|
|
71
|
-
className: cn(
|
|
72
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
73
|
-
className,
|
|
74
|
-
),
|
|
75
|
-
...props,
|
|
76
|
-
}),
|
|
77
|
-
);
|
|
18
|
+
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props })));
|
|
78
19
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
79
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) =>
|
|
80
|
-
_jsx(DialogPrimitive.Description, {
|
|
81
|
-
ref: ref,
|
|
82
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
83
|
-
...props,
|
|
84
|
-
}),
|
|
85
|
-
);
|
|
20
|
+
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
86
21
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
87
|
-
export {
|
|
88
|
-
Dialog,
|
|
89
|
-
DialogPortal,
|
|
90
|
-
DialogOverlay,
|
|
91
|
-
DialogClose,
|
|
92
|
-
DialogTrigger,
|
|
93
|
-
DialogContent,
|
|
94
|
-
DialogHeader,
|
|
95
|
-
DialogFooter,
|
|
96
|
-
DialogTitle,
|
|
97
|
-
DialogDescription,
|
|
98
|
-
};
|
|
22
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -1,108 +1,27 @@
|
|
|
1
1
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<
|
|
5
|
-
|
|
6
|
-
React.RefAttributes<HTMLButtonElement>
|
|
7
|
-
>;
|
|
8
|
-
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<
|
|
9
|
-
DropdownMenuPrimitive.DropdownMenuGroupProps &
|
|
10
|
-
React.RefAttributes<HTMLDivElement>
|
|
11
|
-
>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
6
|
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
13
7
|
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
14
|
-
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
DropdownMenuPrimitive.DropdownMenuSubContentProps &
|
|
30
|
-
React.RefAttributes<HTMLDivElement>,
|
|
31
|
-
"ref"
|
|
32
|
-
> &
|
|
33
|
-
React.RefAttributes<HTMLDivElement>
|
|
34
|
-
>;
|
|
35
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<
|
|
36
|
-
Omit<
|
|
37
|
-
DropdownMenuPrimitive.DropdownMenuContentProps &
|
|
38
|
-
React.RefAttributes<HTMLDivElement>,
|
|
39
|
-
"ref"
|
|
40
|
-
> &
|
|
41
|
-
React.RefAttributes<HTMLDivElement>
|
|
42
|
-
>;
|
|
43
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<
|
|
44
|
-
Omit<
|
|
45
|
-
DropdownMenuPrimitive.DropdownMenuItemProps &
|
|
46
|
-
React.RefAttributes<HTMLDivElement>,
|
|
47
|
-
"ref"
|
|
48
|
-
> & {
|
|
49
|
-
inset?: boolean;
|
|
50
|
-
} & React.RefAttributes<HTMLDivElement>
|
|
51
|
-
>;
|
|
52
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<
|
|
53
|
-
Omit<
|
|
54
|
-
DropdownMenuPrimitive.DropdownMenuCheckboxItemProps &
|
|
55
|
-
React.RefAttributes<HTMLDivElement>,
|
|
56
|
-
"ref"
|
|
57
|
-
> &
|
|
58
|
-
React.RefAttributes<HTMLDivElement>
|
|
59
|
-
>;
|
|
60
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<
|
|
61
|
-
Omit<
|
|
62
|
-
DropdownMenuPrimitive.DropdownMenuRadioItemProps &
|
|
63
|
-
React.RefAttributes<HTMLDivElement>,
|
|
64
|
-
"ref"
|
|
65
|
-
> &
|
|
66
|
-
React.RefAttributes<HTMLDivElement>
|
|
67
|
-
>;
|
|
68
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<
|
|
69
|
-
Omit<
|
|
70
|
-
DropdownMenuPrimitive.DropdownMenuLabelProps &
|
|
71
|
-
React.RefAttributes<HTMLDivElement>,
|
|
72
|
-
"ref"
|
|
73
|
-
> & {
|
|
74
|
-
inset?: boolean;
|
|
75
|
-
} & React.RefAttributes<HTMLDivElement>
|
|
76
|
-
>;
|
|
77
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<
|
|
78
|
-
Omit<
|
|
79
|
-
DropdownMenuPrimitive.DropdownMenuSeparatorProps &
|
|
80
|
-
React.RefAttributes<HTMLDivElement>,
|
|
81
|
-
"ref"
|
|
82
|
-
> &
|
|
83
|
-
React.RefAttributes<HTMLDivElement>
|
|
84
|
-
>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
23
|
declare const DropdownMenuShortcut: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
...props
|
|
89
|
-
}: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
90
|
-
displayName: string;
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
DropdownMenu,
|
|
94
|
-
DropdownMenuTrigger,
|
|
95
|
-
DropdownMenuContent,
|
|
96
|
-
DropdownMenuItem,
|
|
97
|
-
DropdownMenuCheckboxItem,
|
|
98
|
-
DropdownMenuRadioItem,
|
|
99
|
-
DropdownMenuLabel,
|
|
100
|
-
DropdownMenuSeparator,
|
|
101
|
-
DropdownMenuShortcut,
|
|
102
|
-
DropdownMenuGroup,
|
|
103
|
-
DropdownMenuPortal,
|
|
104
|
-
DropdownMenuSub,
|
|
105
|
-
DropdownMenuSubContent,
|
|
106
|
-
DropdownMenuSubTrigger,
|
|
107
|
-
DropdownMenuRadioGroup,
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
108
26
|
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
3
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
3
4
|
import * as React from "react";
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cn } from "../lib/utils.js";
|
|
6
|
-
|
|
7
6
|
/* -------------------------------------------------------------------------------------------------
|
|
8
7
|
* DropdownMenu Root
|
|
9
8
|
* -----------------------------------------------------------------------------------------------*/
|
|
@@ -16,200 +15,54 @@ const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
|
16
15
|
/* -------------------------------------------------------------------------------------------------
|
|
17
16
|
* DropdownMenuSubTrigger
|
|
18
17
|
* -----------------------------------------------------------------------------------------------*/
|
|
19
|
-
const DropdownMenuSubTrigger = React.forwardRef(
|
|
20
|
-
({ className, inset, children, ...props }, ref) =>
|
|
21
|
-
_jsxs(DropdownMenuPrimitive.SubTrigger, {
|
|
22
|
-
ref: ref,
|
|
23
|
-
className: cn(
|
|
24
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
25
|
-
"focus:bg-muted data-[state=open]:bg-muted",
|
|
26
|
-
inset && "pl-8",
|
|
27
|
-
className,
|
|
28
|
-
),
|
|
29
|
-
...props,
|
|
30
|
-
children: [
|
|
31
|
-
children,
|
|
32
|
-
_jsx(ChevronRight, { className: "ml-auto h-4 w-4" }),
|
|
33
|
-
],
|
|
34
|
-
}),
|
|
35
|
-
);
|
|
18
|
+
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.SubTrigger, { ref: ref, className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none", "focus:bg-muted data-[state=open]:bg-muted", inset && "pl-8", className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto h-4 w-4" })] })));
|
|
36
19
|
DropdownMenuSubTrigger.displayName =
|
|
37
|
-
|
|
20
|
+
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
38
21
|
/* -------------------------------------------------------------------------------------------------
|
|
39
22
|
* DropdownMenuSubContent
|
|
40
23
|
* -----------------------------------------------------------------------------------------------*/
|
|
41
|
-
const DropdownMenuSubContent = React.forwardRef(
|
|
42
|
-
({ className, ...props }, ref) =>
|
|
43
|
-
_jsx(DropdownMenuPrimitive.SubContent, {
|
|
44
|
-
ref: ref,
|
|
45
|
-
className: cn(
|
|
46
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 shadow-lg",
|
|
47
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
48
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
49
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
50
|
-
"data-[side=bottom]:slide-in-from-top-2",
|
|
51
|
-
"data-[side=left]:slide-in-from-right-2",
|
|
52
|
-
"data-[side=right]:slide-in-from-left-2",
|
|
53
|
-
"data-[side=top]:slide-in-from-bottom-2",
|
|
54
|
-
className,
|
|
55
|
-
),
|
|
56
|
-
...props,
|
|
57
|
-
}),
|
|
58
|
-
);
|
|
24
|
+
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.SubContent, { ref: ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 shadow-lg", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", className), ...props })));
|
|
59
25
|
DropdownMenuSubContent.displayName =
|
|
60
|
-
|
|
26
|
+
DropdownMenuPrimitive.SubContent.displayName;
|
|
61
27
|
/* -------------------------------------------------------------------------------------------------
|
|
62
28
|
* DropdownMenuContent
|
|
63
29
|
* -----------------------------------------------------------------------------------------------*/
|
|
64
|
-
const DropdownMenuContent = React.forwardRef(
|
|
65
|
-
({ className, sideOffset = 4, ...props }, ref) =>
|
|
66
|
-
_jsx(DropdownMenuPrimitive.Portal, {
|
|
67
|
-
children: _jsx(DropdownMenuPrimitive.Content, {
|
|
68
|
-
ref: ref,
|
|
69
|
-
sideOffset: sideOffset,
|
|
70
|
-
className: cn(
|
|
71
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 shadow-md",
|
|
72
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
73
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
74
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
75
|
-
"data-[side=bottom]:slide-in-from-top-2",
|
|
76
|
-
"data-[side=left]:slide-in-from-right-2",
|
|
77
|
-
"data-[side=right]:slide-in-from-left-2",
|
|
78
|
-
"data-[side=top]:slide-in-from-bottom-2",
|
|
79
|
-
className,
|
|
80
|
-
),
|
|
81
|
-
...props,
|
|
82
|
-
}),
|
|
83
|
-
}),
|
|
84
|
-
);
|
|
30
|
+
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", className), ...props }) })));
|
|
85
31
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
86
32
|
/* -------------------------------------------------------------------------------------------------
|
|
87
33
|
* DropdownMenuItem
|
|
88
34
|
* -----------------------------------------------------------------------------------------------*/
|
|
89
|
-
const DropdownMenuItem = React.forwardRef(
|
|
90
|
-
({ className, inset, ...props }, ref) =>
|
|
91
|
-
_jsx(DropdownMenuPrimitive.Item, {
|
|
92
|
-
ref: ref,
|
|
93
|
-
className: cn(
|
|
94
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors",
|
|
95
|
-
"focus:bg-muted focus:text-foreground",
|
|
96
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
97
|
-
inset && "pl-8",
|
|
98
|
-
className,
|
|
99
|
-
),
|
|
100
|
-
...props,
|
|
101
|
-
}),
|
|
102
|
-
);
|
|
35
|
+
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors", "focus:bg-muted focus:text-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className), ...props })));
|
|
103
36
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
104
37
|
/* -------------------------------------------------------------------------------------------------
|
|
105
38
|
* DropdownMenuCheckboxItem
|
|
106
39
|
* -----------------------------------------------------------------------------------------------*/
|
|
107
|
-
const DropdownMenuCheckboxItem = React.forwardRef(
|
|
108
|
-
({ className, children, ...props }, ref) =>
|
|
109
|
-
_jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
110
|
-
ref: ref,
|
|
111
|
-
className: cn(
|
|
112
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
113
|
-
"focus:bg-muted focus:text-foreground",
|
|
114
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
115
|
-
className,
|
|
116
|
-
),
|
|
117
|
-
...props,
|
|
118
|
-
children: [
|
|
119
|
-
_jsx("span", {
|
|
120
|
-
className:
|
|
121
|
-
"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
122
|
-
children: _jsx(DropdownMenuPrimitive.ItemIndicator, {
|
|
123
|
-
children: _jsx(Check, { className: "h-4 w-4" }),
|
|
124
|
-
}),
|
|
125
|
-
}),
|
|
126
|
-
children,
|
|
127
|
-
],
|
|
128
|
-
}),
|
|
129
|
-
);
|
|
40
|
+
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.CheckboxItem, { ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors", "focus:bg-muted focus:text-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: "h-4 w-4" }) }) }), children] })));
|
|
130
41
|
DropdownMenuCheckboxItem.displayName =
|
|
131
|
-
|
|
42
|
+
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
132
43
|
/* -------------------------------------------------------------------------------------------------
|
|
133
44
|
* DropdownMenuRadioItem
|
|
134
45
|
* -----------------------------------------------------------------------------------------------*/
|
|
135
|
-
const DropdownMenuRadioItem = React.forwardRef(
|
|
136
|
-
({ className, children, ...props }, ref) =>
|
|
137
|
-
_jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
138
|
-
ref: ref,
|
|
139
|
-
className: cn(
|
|
140
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
141
|
-
"focus:bg-muted focus:text-foreground",
|
|
142
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
143
|
-
className,
|
|
144
|
-
),
|
|
145
|
-
...props,
|
|
146
|
-
children: [
|
|
147
|
-
_jsx("span", {
|
|
148
|
-
className:
|
|
149
|
-
"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
150
|
-
children: _jsx(DropdownMenuPrimitive.ItemIndicator, {
|
|
151
|
-
children: _jsx(Circle, { className: "h-2 w-2 fill-current" }),
|
|
152
|
-
}),
|
|
153
|
-
}),
|
|
154
|
-
children,
|
|
155
|
-
],
|
|
156
|
-
}),
|
|
157
|
-
);
|
|
46
|
+
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.RadioItem, { ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors", "focus:bg-muted focus:text-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }), children] })));
|
|
158
47
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
159
48
|
/* -------------------------------------------------------------------------------------------------
|
|
160
49
|
* DropdownMenuLabel
|
|
161
50
|
* -----------------------------------------------------------------------------------------------*/
|
|
162
|
-
const DropdownMenuLabel = React.forwardRef(
|
|
163
|
-
({ className, inset, ...props }, ref) =>
|
|
164
|
-
_jsx(DropdownMenuPrimitive.Label, {
|
|
165
|
-
ref: ref,
|
|
166
|
-
className: cn(
|
|
167
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
168
|
-
inset && "pl-8",
|
|
169
|
-
className,
|
|
170
|
-
),
|
|
171
|
-
...props,
|
|
172
|
-
}),
|
|
173
|
-
);
|
|
51
|
+
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Label, { ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className), ...props })));
|
|
174
52
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
175
53
|
/* -------------------------------------------------------------------------------------------------
|
|
176
54
|
* DropdownMenuSeparator
|
|
177
55
|
* -----------------------------------------------------------------------------------------------*/
|
|
178
|
-
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) =>
|
|
179
|
-
_jsx(DropdownMenuPrimitive.Separator, {
|
|
180
|
-
ref: ref,
|
|
181
|
-
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
182
|
-
...props,
|
|
183
|
-
}),
|
|
184
|
-
);
|
|
56
|
+
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Separator, { ref: ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props })));
|
|
185
57
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
186
58
|
/* -------------------------------------------------------------------------------------------------
|
|
187
59
|
* DropdownMenuShortcut
|
|
188
60
|
* -----------------------------------------------------------------------------------------------*/
|
|
189
61
|
const DropdownMenuShortcut = ({ className, ...props }) => {
|
|
190
|
-
|
|
191
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
192
|
-
...props,
|
|
193
|
-
});
|
|
62
|
+
return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props }));
|
|
194
63
|
};
|
|
195
64
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
196
65
|
/* -------------------------------------------------------------------------------------------------
|
|
197
66
|
* Exports
|
|
198
67
|
* -----------------------------------------------------------------------------------------------*/
|
|
199
|
-
export {
|
|
200
|
-
DropdownMenu,
|
|
201
|
-
DropdownMenuTrigger,
|
|
202
|
-
DropdownMenuContent,
|
|
203
|
-
DropdownMenuItem,
|
|
204
|
-
DropdownMenuCheckboxItem,
|
|
205
|
-
DropdownMenuRadioItem,
|
|
206
|
-
DropdownMenuLabel,
|
|
207
|
-
DropdownMenuSeparator,
|
|
208
|
-
DropdownMenuShortcut,
|
|
209
|
-
DropdownMenuGroup,
|
|
210
|
-
DropdownMenuPortal,
|
|
211
|
-
DropdownMenuSub,
|
|
212
|
-
DropdownMenuSubContent,
|
|
213
|
-
DropdownMenuSubTrigger,
|
|
214
|
-
DropdownMenuRadioGroup,
|
|
215
|
-
};
|
|
68
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
interface HeightTransitionProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
durationMs?: number;
|
|
5
|
+
easing?: string;
|
|
6
|
+
pinContentTo?: "top" | "bottom";
|
|
7
|
+
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function HeightTransition({
|
|
10
|
-
|
|
11
|
-
durationMs,
|
|
12
|
-
easing,
|
|
13
|
-
pinContentTo,
|
|
14
|
-
className,
|
|
15
|
-
}: HeightTransitionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function HeightTransition({ children, durationMs, easing, pinContentTo, className, }: HeightTransitionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|