@hanzo/ui 5.3.35 → 5.3.36
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/bin/create-registry.js +0 -0
- package/bin/npx-registry-mcp.js +0 -0
- package/bin/registry-mcp-wrapper.sh +0 -0
- package/bin/registry-mcp.js +0 -0
- package/bin/start-mcp-server.sh +0 -0
- package/bin/test-mcp.sh +0 -0
- package/dist/3d/button.js +1 -297
- package/dist/3d/button.mjs +1 -272
- package/dist/3d/card.js +1 -233
- package/dist/3d/card.mjs +1 -206
- package/dist/3d/carousel.js +1 -370
- package/dist/3d/carousel.mjs +1 -343
- package/dist/3d/grid.js +1 -361
- package/dist/3d/grid.mjs +1 -336
- package/dist/3d/index.js +1 -1517
- package/dist/3d/index.mjs +1 -1471
- package/dist/3d/marquee.js +1 -351
- package/dist/3d/marquee.mjs +1 -326
- package/dist/3d/pin.js +1 -45
- package/dist/3d/pin.mjs +1 -23
- package/dist/accordion.js +1 -79
- package/dist/accordion.mjs +1 -54
- package/dist/alert-dialog.js +1 -224
- package/dist/alert-dialog.mjs +1 -191
- package/dist/alert.js +1 -97
- package/dist/alert.mjs +1 -91
- package/dist/animation/animated-background.js +1 -423
- package/dist/animation/animated-background.mjs +1 -417
- package/dist/animation/animated-beam.js +1 -118
- package/dist/animation/animated-beam.mjs +1 -96
- package/dist/animation/animated-cursor.js +1 -274
- package/dist/animation/animated-cursor.mjs +1 -269
- package/dist/animation/animated-icon.js +2 -356
- package/dist/animation/animated-icon.mjs +2 -350
- package/dist/animation/animated-list.js +1 -338
- package/dist/animation/animated-list.mjs +1 -332
- package/dist/animation/animated-number.js +1 -282
- package/dist/animation/animated-number.mjs +1 -276
- package/dist/animation/animated-testimonials.js +1 -96
- package/dist/animation/animated-testimonials.mjs +1 -74
- package/dist/animation/animated-tooltip.js +1 -66
- package/dist/animation/animated-tooltip.mjs +1 -44
- package/dist/animation/apple-cards-carousel.js +1 -307
- package/dist/animation/apple-cards-carousel.mjs +1 -284
- package/dist/animation/apple-hello-effect.js +1 -59
- package/dist/animation/apple-hello-effect.mjs +1 -37
- package/dist/animation/index.js +2 -1951
- package/dist/animation/index.mjs +2 -1920
- package/dist/avatar.js +1 -70
- package/dist/avatar.mjs +1 -46
- package/dist/badge.js +1 -60
- package/dist/badge.mjs +1 -54
- package/dist/blocks/index.js +2 -1684
- package/dist/blocks/index.mjs +2 -1645
- package/dist/breadcrumb.js +1 -106
- package/dist/breadcrumb.mjs +1 -98
- package/dist/calendar-ext/index.js +1 -207
- package/dist/calendar-ext/index.mjs +1 -169
- package/dist/calendar.js +1 -193
- package/dist/calendar.mjs +1 -168
- package/dist/carousel.js +1 -282
- package/dist/carousel.mjs +1 -253
- package/dist/charts/index.js +6 -5840
- package/dist/charts/index.mjs +6 -5749
- package/dist/checkbox.js +1 -59
- package/dist/checkbox.mjs +1 -34
- package/dist/code/block.js +2 -225
- package/dist/code/block.mjs +2 -202
- package/dist/code/compare.js +5 -444
- package/dist/code/compare.mjs +5 -421
- package/dist/code/diff.js +12 -429
- package/dist/code/diff.mjs +11 -405
- package/dist/code/editor.js +1 -242
- package/dist/code/editor.mjs +1 -217
- package/dist/code/explorer.js +1 -290
- package/dist/code/explorer.mjs +1 -267
- package/dist/code/index.js +26 -2514
- package/dist/code/index.mjs +24 -2471
- package/dist/code/preview.js +6 -363
- package/dist/code/preview.mjs +6 -340
- package/dist/code/snippet.js +2 -273
- package/dist/code/snippet.mjs +2 -249
- package/dist/code/tabs.js +1 -74
- package/dist/code/tabs.mjs +1 -52
- package/dist/code/terminal.js +3 -436
- package/dist/code/terminal.mjs +3 -413
- package/dist/collapsible.js +1 -32
- package/dist/collapsible.mjs +1 -8
- package/dist/command.js +1 -282
- package/dist/command.mjs +1 -251
- package/dist/context-menu.js +1 -206
- package/dist/context-menu.mjs +1 -170
- package/dist/desktop/hooks.js +1 -223
- package/dist/desktop/hooks.mjs +1 -198
- package/dist/desktop/index.js +1 -685
- package/dist/desktop/index.mjs +1 -657
- package/dist/desktop/spotlight.js +1 -260
- package/dist/desktop/spotlight.mjs +1 -235
- package/dist/desktop/window.js +1 -273
- package/dist/desktop/window.mjs +1 -247
- package/dist/device/index.js +1 -2
- package/dist/device/index.mjs +0 -1
- package/dist/dialog.js +1 -245
- package/dist/dialog.mjs +1 -213
- package/dist/dock/basic.js +1 -173
- package/dist/dock/basic.mjs +1 -150
- package/dist/dock/index.js +1 -647
- package/dist/dock/index.mjs +1 -620
- package/dist/dock/limelight-nav.js +1 -314
- package/dist/dock/limelight-nav.mjs +1 -293
- package/dist/dock/macos.js +1 -140
- package/dist/dock/macos.mjs +1 -117
- package/dist/dock/menu.js +1 -69
- package/dist/dock/menu.mjs +1 -47
- package/dist/dock/message.js +1 -148
- package/dist/dock/message.mjs +1 -126
- package/dist/drawer.js +1 -114
- package/dist/drawer.mjs +1 -102
- package/dist/dropdown-menu.js +1 -201
- package/dist/dropdown-menu.mjs +1 -165
- package/dist/finance/AdvancedChart.js +2 -47
- package/dist/finance/AdvancedChart.mjs +2 -45
- package/dist/finance/CompanyProfile.js +2 -47
- package/dist/finance/CompanyProfile.mjs +2 -45
- package/dist/finance/CryptoScreener.js +2 -44
- package/dist/finance/CryptoScreener.mjs +2 -42
- package/dist/finance/Financials.js +2 -51
- package/dist/finance/Financials.mjs +2 -49
- package/dist/finance/ForexScreener.js +2 -45
- package/dist/finance/ForexScreener.mjs +2 -43
- package/dist/finance/MarketOverview.js +2 -103
- package/dist/finance/MarketOverview.mjs +2 -101
- package/dist/finance/NewsTimeline.js +2 -43
- package/dist/finance/NewsTimeline.mjs +2 -41
- package/dist/finance/OrderEntry.js +1 -130
- package/dist/finance/OrderEntry.mjs +1 -128
- package/dist/finance/OrdersHistory.js +1 -63
- package/dist/finance/OrdersHistory.mjs +1 -61
- package/dist/finance/PositionsList.js +1 -79
- package/dist/finance/PositionsList.mjs +1 -77
- package/dist/finance/StockScreener.js +2 -45
- package/dist/finance/StockScreener.mjs +2 -43
- package/dist/finance/SymbolInfo.js +2 -45
- package/dist/finance/SymbolInfo.mjs +2 -43
- package/dist/finance/TechnicalAnalysis.js +2 -53
- package/dist/finance/TechnicalAnalysis.mjs +2 -51
- package/dist/finance/TickerTape.js +2 -55
- package/dist/finance/TickerTape.mjs +2 -53
- package/dist/finance/TradingPanel.js +1 -190
- package/dist/finance/TradingPanel.mjs +1 -188
- package/dist/finance/index.js +2 -929
- package/dist/finance/index.mjs +2 -913
- package/dist/form/index.js +1 -153
- package/dist/form/index.mjs +1 -123
- package/dist/form.js +1 -171
- package/dist/form.mjs +1 -141
- package/dist/hover-card.js +1 -57
- package/dist/hover-card.mjs +1 -33
- package/dist/index.js +192 -9618
- package/dist/index.mjs +192 -9202
- package/dist/input-otp.js +1 -78
- package/dist/input-otp.mjs +1 -53
- package/dist/kanban/index.js +1 -593
- package/dist/kanban/index.mjs +1 -571
- package/dist/lib/utils.js +1 -28
- package/dist/lib/utils.mjs +1 -24
- package/dist/mermaid/index.js +1 -280
- package/dist/mermaid/index.mjs +1 -253
- package/dist/navigation/index.js +1 -97
- package/dist/navigation/index.mjs +1 -78
- package/dist/navigation-menu.js +1 -148
- package/dist/navigation-menu.mjs +1 -115
- package/dist/pattern/grid-pattern.js +3 -325
- package/dist/pattern/grid-pattern.mjs +3 -302
- package/dist/pattern/index.js +3 -325
- package/dist/pattern/index.mjs +3 -302
- package/dist/popover.js +1 -62
- package/dist/popover.mjs +1 -36
- package/dist/progress.js +1 -61
- package/dist/progress.mjs +1 -36
- package/dist/project/gantt.js +1 -64
- package/dist/project/gantt.mjs +1 -42
- package/dist/project/index.js +1 -635
- package/dist/project/index.mjs +1 -610
- package/dist/project/kanban.js +1 -596
- package/dist/project/kanban.mjs +1 -571
- package/dist/project/list.js +1 -34
- package/dist/project/list.mjs +1 -11
- package/dist/radio-group.js +1 -67
- package/dist/radio-group.mjs +1 -44
- package/dist/resizable.js +1 -71
- package/dist/resizable.mjs +1 -47
- package/dist/scroll-area.js +1 -88
- package/dist/scroll-area.mjs +1 -65
- package/dist/select.js +1 -139
- package/dist/select.mjs +1 -110
- package/dist/separator.js +1 -58
- package/dist/separator.mjs +1 -33
- package/dist/sheet.js +1 -147
- package/dist/sheet.mjs +1 -116
- package/dist/skeleton.js +1 -31
- package/dist/skeleton.mjs +1 -26
- package/dist/slider.js +1 -98
- package/dist/slider.mjs +1 -72
- package/dist/sonner.js +1 -33
- package/dist/sonner.mjs +1 -28
- package/dist/spline/index.js +1 -210
- package/dist/spline/index.mjs +1 -201
- package/dist/spline/media-stack.js +1 -192
- package/dist/spline/media-stack.mjs +1 -184
- package/dist/spline/player.js +1 -36
- package/dist/spline/player.mjs +1 -30
- package/dist/switch.js +1 -61
- package/dist/switch.mjs +1 -36
- package/dist/table.js +1 -109
- package/dist/table.mjs +1 -100
- package/dist/tabs.js +1 -127
- package/dist/tabs.mjs +1 -101
- package/dist/tailwind/index.mjs +1 -2011
- package/dist/textarea.js +1 -77
- package/dist/textarea.mjs +1 -55
- package/dist/toggle-group.js +1 -117
- package/dist/toggle-group.mjs +1 -92
- package/dist/toggle.js +1 -70
- package/dist/toggle.mjs +1 -47
- package/dist/tooltip.js +1 -66
- package/dist/tooltip.mjs +1 -39
- package/dist/types/index.mjs +1 -51
- package/dist/ui/announcement.js +1 -133
- package/dist/ui/announcement.mjs +1 -111
- package/dist/ui/avatar-group.js +1 -87
- package/dist/ui/avatar-group.mjs +1 -64
- package/dist/ui/banner.js +1 -84
- package/dist/ui/banner.mjs +1 -61
- package/dist/ui/cursor.js +1 -77
- package/dist/ui/cursor.mjs +1 -55
- package/dist/ui/index.js +1 -494
- package/dist/ui/index.mjs +1 -461
- package/dist/ui/marquee.js +1 -73
- package/dist/ui/marquee.mjs +1 -51
- package/dist/ui/pill.js +1 -84
- package/dist/ui/pill.mjs +1 -61
- package/dist/ui/spinner.js +1 -27
- package/dist/ui/spinner.mjs +1 -25
- package/dist/ui/tags.js +1 -116
- package/dist/ui/tags.mjs +1 -94
- package/dist/ui/ticker.js +1 -72
- package/dist/ui/ticker.mjs +1 -50
- package/dist/util/index.mjs +1 -404
- package/package.json +28 -27
- package/dist/primitives/index.js +0 -9619
- package/dist/primitives/index.mjs +0 -9203
- package/dist/primitives-export.js +0 -9619
- package/dist/primitives-export.mjs +0 -9203
package/dist/dock/message.mjs
CHANGED
|
@@ -1,127 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { Loader2, X } from 'lucide-react';
|
|
4
|
-
import { clsx } from 'clsx';
|
|
5
|
-
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
7
|
-
import { cva } from 'class-variance-authority';
|
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
12
|
-
function cn(...inputs) {
|
|
13
|
-
return twMerge(clsx(inputs));
|
|
14
|
-
}
|
|
15
|
-
__name(cn, "cn");
|
|
16
|
-
var buttonVariants = cva(
|
|
17
|
-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
variant: {
|
|
21
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
22
|
-
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
23
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
24
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
25
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
26
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
27
|
-
// Keep the additional Hanzo variants for backward compatibility
|
|
28
|
-
primary: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
29
|
-
linkFG: "text-primary underline-offset-4 hover:underline",
|
|
30
|
-
linkMuted: "text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"
|
|
31
|
-
},
|
|
32
|
-
size: {
|
|
33
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
34
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
35
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
36
|
-
icon: "size-9",
|
|
37
|
-
"icon-sm": "size-8",
|
|
38
|
-
"icon-lg": "size-10"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
variant: "default",
|
|
43
|
-
size: "default"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
var Button = React.forwardRef(
|
|
48
|
-
({ className, variant = "default", size = "default", asChild = false, isLoading = false, children, ...props }, ref) => {
|
|
49
|
-
const Comp = asChild ? Slot : "button";
|
|
50
|
-
return /* @__PURE__ */ jsxs(
|
|
51
|
-
Comp,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "button",
|
|
54
|
-
"data-variant": variant,
|
|
55
|
-
"data-size": size,
|
|
56
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
57
|
-
ref,
|
|
58
|
-
...props,
|
|
59
|
-
children: [
|
|
60
|
-
isLoading ? /* @__PURE__ */ jsx(
|
|
61
|
-
Loader2,
|
|
62
|
-
{
|
|
63
|
-
className: cn("h-4 w-4 animate-spin", size !== "icon" && size !== "icon-sm" && size !== "icon-lg" && "mr-2")
|
|
64
|
-
}
|
|
65
|
-
) : null,
|
|
66
|
-
isLoading && (size === "icon" || size === "icon-sm" || size === "icon-lg") ? null : children
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
Button.displayName = "Button";
|
|
73
|
-
var MessageDock = React.forwardRef(
|
|
74
|
-
({ className, messages, onClose, position = "bottom-right", ...props }, ref) => {
|
|
75
|
-
const positionClasses = {
|
|
76
|
-
top: "top-4 left-1/2 -translate-x-1/2",
|
|
77
|
-
bottom: "bottom-4 left-1/2 -translate-x-1/2",
|
|
78
|
-
"top-right": "top-4 right-4",
|
|
79
|
-
"bottom-right": "bottom-4 right-4"
|
|
80
|
-
};
|
|
81
|
-
return /* @__PURE__ */ jsx(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
ref,
|
|
85
|
-
className: cn(
|
|
86
|
-
"fixed z-50 flex flex-col gap-2",
|
|
87
|
-
positionClasses[position],
|
|
88
|
-
className
|
|
89
|
-
),
|
|
90
|
-
...props,
|
|
91
|
-
children: messages.map((message) => /* @__PURE__ */ jsx(
|
|
92
|
-
"div",
|
|
93
|
-
{
|
|
94
|
-
className: cn(
|
|
95
|
-
"min-w-[300px] rounded-lg border p-4 shadow-lg",
|
|
96
|
-
message.type === "success" && "border-green-500 bg-green-50 dark:bg-green-950",
|
|
97
|
-
message.type === "warning" && "border-yellow-500 bg-yellow-50 dark:bg-yellow-950",
|
|
98
|
-
message.type === "error" && "border-red-500 bg-red-50 dark:bg-red-950",
|
|
99
|
-
message.type === "info" && "border-blue-500 bg-blue-50 dark:bg-blue-950",
|
|
100
|
-
!message.type && "bg-background"
|
|
101
|
-
),
|
|
102
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
103
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
104
|
-
/* @__PURE__ */ jsx("h4", { className: "font-medium", children: message.title }),
|
|
105
|
-
message.description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: message.description })
|
|
106
|
-
] }),
|
|
107
|
-
onClose && /* @__PURE__ */ jsx(
|
|
108
|
-
Button,
|
|
109
|
-
{
|
|
110
|
-
variant: "ghost",
|
|
111
|
-
size: "icon",
|
|
112
|
-
className: "h-6 w-6",
|
|
113
|
-
onClick: () => onClose(message.id),
|
|
114
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] })
|
|
118
|
-
},
|
|
119
|
-
message.id
|
|
120
|
-
))
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
MessageDock.displayName = "MessageDock";
|
|
126
|
-
|
|
127
|
-
export { MessageDock };
|
|
2
|
+
import*as p from'react';import {Loader2,X}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {jsxs,jsx}from'react/jsx-runtime';var f=Object.defineProperty;var u=(r,o)=>f(r,"name",{value:o,configurable:true});function n(...r){return twMerge(clsx(r))}u(n,"cn");var k=cva('inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow hover:bg-primary/90",linkFG:"text-primary underline-offset-4 hover:underline",linkMuted:"text-muted-foreground underline-offset-4 hover:underline hover:text-foreground"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),l=p.forwardRef(({className:r,variant:o="default",size:t="default",asChild:s=false,isLoading:a=false,children:d,...c},e)=>jsxs(s?Slot:"button",{"data-slot":"button","data-variant":o,"data-size":t,className:n(k({variant:o,size:t,className:r})),ref:e,...c,children:[a?jsx(Loader2,{className:n("h-4 w-4 animate-spin",t!=="icon"&&t!=="icon-sm"&&t!=="icon-lg"&&"mr-2")}):null,a&&(t==="icon"||t==="icon-sm"||t==="icon-lg")?null:d]}));l.displayName="Button";var B=p.forwardRef(({className:r,messages:o,onClose:t,position:s="bottom-right",...a},d)=>jsx("div",{ref:d,className:n("fixed z-50 flex flex-col gap-2",{top:"top-4 left-1/2 -translate-x-1/2",bottom:"bottom-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-right":"bottom-4 right-4"}[s],r),...a,children:o.map(e=>jsx("div",{className:n("min-w-[300px] rounded-lg border p-4 shadow-lg",e.type==="success"&&"border-green-500 bg-green-50 dark:bg-green-950",e.type==="warning"&&"border-yellow-500 bg-yellow-50 dark:bg-yellow-950",e.type==="error"&&"border-red-500 bg-red-50 dark:bg-red-950",e.type==="info"&&"border-blue-500 bg-blue-50 dark:bg-blue-950",!e.type&&"bg-background"),children:jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxs("div",{className:"flex-1",children:[jsx("h4",{className:"font-medium",children:e.title}),e.description&&jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:e.description})]}),t&&jsx(l,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>t(e.id),children:jsx(X,{className:"h-4 w-4"})})]})},e.id))}));B.displayName="MessageDock";export{B as MessageDock};
|
package/dist/drawer.js
CHANGED
|
@@ -1,115 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var vaul = require('vaul');
|
|
5
|
-
var clsx = require('clsx');
|
|
6
|
-
var tailwindMerge = require('tailwind-merge');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
11
|
-
function cn(...inputs) {
|
|
12
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
13
|
-
}
|
|
14
|
-
__name(cn, "cn");
|
|
15
|
-
var Drawer = /* @__PURE__ */ __name(({
|
|
16
|
-
shouldScaleBackground = false,
|
|
17
|
-
...props
|
|
18
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
-
vaul.Drawer.Root,
|
|
20
|
-
{
|
|
21
|
-
shouldScaleBackground,
|
|
22
|
-
...props
|
|
23
|
-
}
|
|
24
|
-
), "Drawer");
|
|
25
|
-
Drawer.displayName = "Drawer";
|
|
26
|
-
var DrawerTrigger = vaul.Drawer.Trigger;
|
|
27
|
-
var DrawerPortal = vaul.Drawer.Portal;
|
|
28
|
-
var DrawerClose = vaul.Drawer.Close;
|
|
29
|
-
var DrawerHandle = vaul.Drawer.Handle;
|
|
30
|
-
var DrawerOverlay = /* @__PURE__ */ __name(({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
-
vaul.Drawer.Overlay,
|
|
35
|
-
{
|
|
36
|
-
className: cn("fixed inset-0 z-50 bg-black/70", className),
|
|
37
|
-
...props
|
|
38
|
-
}
|
|
39
|
-
), "DrawerOverlay");
|
|
40
|
-
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
41
|
-
var DrawerContent = /* @__PURE__ */ __name(({
|
|
42
|
-
className,
|
|
43
|
-
children,
|
|
44
|
-
...props
|
|
45
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
46
|
-
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
48
|
-
vaul.Drawer.Content,
|
|
49
|
-
{
|
|
50
|
-
className: cn(
|
|
51
|
-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",
|
|
52
|
-
className
|
|
53
|
-
),
|
|
54
|
-
...props,
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300" }),
|
|
57
|
-
children
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] }), "DrawerContent");
|
|
62
|
-
DrawerContent.displayName = "DrawerContent";
|
|
63
|
-
var DrawerHeader = /* @__PURE__ */ __name(({
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pt-5 pb-0", className), ...props }), "DrawerHeader");
|
|
67
|
-
DrawerHeader.displayName = "DrawerHeader";
|
|
68
|
-
var DrawerFooter = /* @__PURE__ */ __name(({
|
|
69
|
-
className,
|
|
70
|
-
...props
|
|
71
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
-
"div",
|
|
73
|
-
{
|
|
74
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
75
|
-
...props
|
|
76
|
-
}
|
|
77
|
-
), "DrawerFooter");
|
|
78
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
79
|
-
var DrawerTitle = /* @__PURE__ */ __name(({
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
-
vaul.Drawer.Title,
|
|
84
|
-
{
|
|
85
|
-
className: cn(
|
|
86
|
-
"text-lg leading-none font-semibold tracking-tight",
|
|
87
|
-
className
|
|
88
|
-
),
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
), "DrawerTitle");
|
|
92
|
-
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
93
|
-
var DrawerDescription = /* @__PURE__ */ __name(({
|
|
94
|
-
className,
|
|
95
|
-
...props
|
|
96
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
-
vaul.Drawer.Description,
|
|
98
|
-
{
|
|
99
|
-
className: cn("text-text-secondary text-sm", className),
|
|
100
|
-
...props
|
|
101
|
-
}
|
|
102
|
-
), "DrawerDescription");
|
|
103
|
-
DrawerDescription.displayName = vaul.Drawer.Description.displayName;
|
|
104
|
-
|
|
105
|
-
exports.Drawer = Drawer;
|
|
106
|
-
exports.DrawerClose = DrawerClose;
|
|
107
|
-
exports.DrawerContent = DrawerContent;
|
|
108
|
-
exports.DrawerDescription = DrawerDescription;
|
|
109
|
-
exports.DrawerFooter = DrawerFooter;
|
|
110
|
-
exports.DrawerHandle = DrawerHandle;
|
|
111
|
-
exports.DrawerHeader = DrawerHeader;
|
|
112
|
-
exports.DrawerOverlay = DrawerOverlay;
|
|
113
|
-
exports.DrawerPortal = DrawerPortal;
|
|
114
|
-
exports.DrawerTitle = DrawerTitle;
|
|
115
|
-
exports.DrawerTrigger = DrawerTrigger;
|
|
2
|
+
'use strict';var vaul=require('vaul'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');var m=Object.defineProperty;var a=(e,t)=>m(e,"name",{value:t,configurable:true});function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}a(i,"cn");var d=a(({shouldScaleBackground:e=false,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var T=vaul.Drawer.Trigger,D=vaul.Drawer.Portal,H=vaul.Drawer.Close,L=vaul.Drawer.Handle,s=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50 bg-black/70",e),...t}),"DrawerOverlay");s.displayName=vaul.Drawer.Overlay.displayName;var w=a(({className:e,children:t,...l})=>jsxRuntime.jsxs(D,{children:[jsxRuntime.jsx(s,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",e),...l,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300"}),t]})]}),"DrawerContent");w.displayName="DrawerContent";var y=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:i("pt-5 pb-0",e),...t}),"DrawerHeader");y.displayName="DrawerHeader";var f=a(({className:e,...t})=>jsxRuntime.jsx("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");f.displayName="DrawerFooter";var u=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Title,{className:i("text-lg leading-none font-semibold tracking-tight",e),...t}),"DrawerTitle");u.displayName=vaul.Drawer.Title.displayName;var g=a(({className:e,...t})=>jsxRuntime.jsx(vaul.Drawer.Description,{className:i("text-text-secondary text-sm",e),...t}),"DrawerDescription");g.displayName=vaul.Drawer.Description.displayName;exports.Drawer=d;exports.DrawerClose=H;exports.DrawerContent=w;exports.DrawerDescription=g;exports.DrawerFooter=f;exports.DrawerHandle=L;exports.DrawerHeader=y;exports.DrawerOverlay=s;exports.DrawerPortal=D;exports.DrawerTitle=u;exports.DrawerTrigger=T;
|
package/dist/drawer.mjs
CHANGED
|
@@ -1,103 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Drawer
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
function cn(...inputs) {
|
|
10
|
-
return twMerge(clsx(inputs));
|
|
11
|
-
}
|
|
12
|
-
__name(cn, "cn");
|
|
13
|
-
var Drawer = /* @__PURE__ */ __name(({
|
|
14
|
-
shouldScaleBackground = false,
|
|
15
|
-
...props
|
|
16
|
-
}) => /* @__PURE__ */ jsx(
|
|
17
|
-
Drawer$1.Root,
|
|
18
|
-
{
|
|
19
|
-
shouldScaleBackground,
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
), "Drawer");
|
|
23
|
-
Drawer.displayName = "Drawer";
|
|
24
|
-
var DrawerTrigger = Drawer$1.Trigger;
|
|
25
|
-
var DrawerPortal = Drawer$1.Portal;
|
|
26
|
-
var DrawerClose = Drawer$1.Close;
|
|
27
|
-
var DrawerHandle = Drawer$1.Handle;
|
|
28
|
-
var DrawerOverlay = /* @__PURE__ */ __name(({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}) => /* @__PURE__ */ jsx(
|
|
32
|
-
Drawer$1.Overlay,
|
|
33
|
-
{
|
|
34
|
-
className: cn("fixed inset-0 z-50 bg-black/70", className),
|
|
35
|
-
...props
|
|
36
|
-
}
|
|
37
|
-
), "DrawerOverlay");
|
|
38
|
-
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
39
|
-
var DrawerContent = /* @__PURE__ */ __name(({
|
|
40
|
-
className,
|
|
41
|
-
children,
|
|
42
|
-
...props
|
|
43
|
-
}) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
44
|
-
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
45
|
-
/* @__PURE__ */ jsxs(
|
|
46
|
-
Drawer$1.Content,
|
|
47
|
-
{
|
|
48
|
-
className: cn(
|
|
49
|
-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",
|
|
50
|
-
className
|
|
51
|
-
),
|
|
52
|
-
...props,
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300" }),
|
|
55
|
-
children
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] }), "DrawerContent");
|
|
60
|
-
DrawerContent.displayName = "DrawerContent";
|
|
61
|
-
var DrawerHeader = /* @__PURE__ */ __name(({
|
|
62
|
-
className,
|
|
63
|
-
...props
|
|
64
|
-
}) => /* @__PURE__ */ jsx("div", { className: cn("pt-5 pb-0", className), ...props }), "DrawerHeader");
|
|
65
|
-
DrawerHeader.displayName = "DrawerHeader";
|
|
66
|
-
var DrawerFooter = /* @__PURE__ */ __name(({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}) => /* @__PURE__ */ jsx(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
), "DrawerFooter");
|
|
76
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
77
|
-
var DrawerTitle = /* @__PURE__ */ __name(({
|
|
78
|
-
className,
|
|
79
|
-
...props
|
|
80
|
-
}) => /* @__PURE__ */ jsx(
|
|
81
|
-
Drawer$1.Title,
|
|
82
|
-
{
|
|
83
|
-
className: cn(
|
|
84
|
-
"text-lg leading-none font-semibold tracking-tight",
|
|
85
|
-
className
|
|
86
|
-
),
|
|
87
|
-
...props
|
|
88
|
-
}
|
|
89
|
-
), "DrawerTitle");
|
|
90
|
-
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
91
|
-
var DrawerDescription = /* @__PURE__ */ __name(({
|
|
92
|
-
className,
|
|
93
|
-
...props
|
|
94
|
-
}) => /* @__PURE__ */ jsx(
|
|
95
|
-
Drawer$1.Description,
|
|
96
|
-
{
|
|
97
|
-
className: cn("text-text-secondary text-sm", className),
|
|
98
|
-
...props
|
|
99
|
-
}
|
|
100
|
-
), "DrawerDescription");
|
|
101
|
-
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
102
|
-
|
|
103
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
2
|
+
import {Drawer}from'vaul';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';var m=Object.defineProperty;var a=(e,t)=>m(e,"name",{value:t,configurable:true});function i(...e){return twMerge(clsx(e))}a(i,"cn");var d=a(({shouldScaleBackground:e=false,...t})=>jsx(Drawer.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var T=Drawer.Trigger,D=Drawer.Portal,H=Drawer.Close,L=Drawer.Handle,s=a(({className:e,...t})=>jsx(Drawer.Overlay,{className:i("fixed inset-0 z-50 bg-black/70",e),...t}),"DrawerOverlay");s.displayName=Drawer.Overlay.displayName;var w=a(({className:e,children:t,...l})=>jsxs(D,{children:[jsx(s,{}),jsxs(Drawer.Content,{className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-gray-500 px-6 pb-6 focus:outline-hidden",e),...l,children:[jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-gray-300"}),t]})]}),"DrawerContent");w.displayName="DrawerContent";var y=a(({className:e,...t})=>jsx("div",{className:i("pt-5 pb-0",e),...t}),"DrawerHeader");y.displayName="DrawerHeader";var f=a(({className:e,...t})=>jsx("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");f.displayName="DrawerFooter";var u=a(({className:e,...t})=>jsx(Drawer.Title,{className:i("text-lg leading-none font-semibold tracking-tight",e),...t}),"DrawerTitle");u.displayName=Drawer.Title.displayName;var g=a(({className:e,...t})=>jsx(Drawer.Description,{className:i("text-text-secondary text-sm",e),...t}),"DrawerDescription");g.displayName=Drawer.Description.displayName;export{d as Drawer,H as DrawerClose,w as DrawerContent,g as DrawerDescription,f as DrawerFooter,L as DrawerHandle,y as DrawerHeader,s as DrawerOverlay,D as DrawerPortal,u as DrawerTitle,T as DrawerTrigger};
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,202 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
5
|
-
var lucideReact = require('lucide-react');
|
|
6
|
-
var clsx = require('clsx');
|
|
7
|
-
var tailwindMerge = require('tailwind-merge');
|
|
8
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
29
|
-
|
|
30
|
-
var __defProp = Object.defineProperty;
|
|
31
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
32
|
-
function cn(...inputs) {
|
|
33
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
34
|
-
}
|
|
35
|
-
__name(cn, "cn");
|
|
36
|
-
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
37
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
38
|
-
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
39
|
-
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
40
|
-
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
41
|
-
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
42
|
-
var DropdownMenuSubTrigger = /* @__PURE__ */ __name(({
|
|
43
|
-
className,
|
|
44
|
-
inset,
|
|
45
|
-
children,
|
|
46
|
-
...props
|
|
47
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
48
|
-
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
49
|
-
{
|
|
50
|
-
className: cn(
|
|
51
|
-
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-xs px-2 py-1.5 text-sm outline-hidden select-none",
|
|
52
|
-
inset && "pl-8",
|
|
53
|
-
className
|
|
54
|
-
),
|
|
55
|
-
...props,
|
|
56
|
-
children: [
|
|
57
|
-
children,
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
), "DropdownMenuSubTrigger");
|
|
62
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
63
|
-
var DropdownMenuSubContent = /* @__PURE__ */ __name(({
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
-
DropdownMenuPrimitive__namespace.SubContent,
|
|
68
|
-
{
|
|
69
|
-
className: cn(
|
|
70
|
-
"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 z-[2000000000] min-w-[8rem] space-y-3 overflow-hidden rounded-md bg-gray-300 text-white shadow-lg",
|
|
71
|
-
className
|
|
72
|
-
),
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
), "DropdownMenuSubContent");
|
|
76
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
77
|
-
var DropdownMenuContent = /* @__PURE__ */ __name(({
|
|
78
|
-
className,
|
|
79
|
-
sideOffset = 4,
|
|
80
|
-
...props
|
|
81
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
-
DropdownMenuPrimitive__namespace.Content,
|
|
83
|
-
{
|
|
84
|
-
className: cn(
|
|
85
|
-
"font-inter border-divider 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 bg-bg-dark z-[2000000000] min-w-[8rem] overflow-hidden rounded-lg border px-4 py-6 text-white shadow-md",
|
|
86
|
-
className
|
|
87
|
-
),
|
|
88
|
-
sideOffset,
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
) }), "DropdownMenuContent");
|
|
92
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
93
|
-
var DropdownMenuItem = /* @__PURE__ */ __name(({
|
|
94
|
-
className,
|
|
95
|
-
inset,
|
|
96
|
-
...props
|
|
97
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
98
|
-
DropdownMenuPrimitive__namespace.Item,
|
|
99
|
-
{
|
|
100
|
-
className: cn(
|
|
101
|
-
"focus:bg-bg-secondary relative flex cursor-default items-center rounded-lg px-2 py-2 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
102
|
-
inset && "pl-8",
|
|
103
|
-
className
|
|
104
|
-
),
|
|
105
|
-
...props
|
|
106
|
-
}
|
|
107
|
-
), "DropdownMenuItem");
|
|
108
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
109
|
-
var DropdownMenuCheckboxItem = /* @__PURE__ */ __name(({
|
|
110
|
-
className,
|
|
111
|
-
children,
|
|
112
|
-
checked,
|
|
113
|
-
...props
|
|
114
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
115
|
-
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
116
|
-
{
|
|
117
|
-
checked,
|
|
118
|
-
className: cn(
|
|
119
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
120
|
-
className
|
|
121
|
-
),
|
|
122
|
-
...props,
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center rounded-xs bg-gray-300", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3 w-3" }) }) }),
|
|
125
|
-
children
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
), "DropdownMenuCheckboxItem");
|
|
129
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
130
|
-
var DropdownMenuRadioItem = /* @__PURE__ */ __name(({
|
|
131
|
-
className,
|
|
132
|
-
children,
|
|
133
|
-
...props
|
|
134
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
-
DropdownMenuPrimitive__namespace.RadioItem,
|
|
136
|
-
{
|
|
137
|
-
className: cn(
|
|
138
|
-
"focus:bg-bg-secondary relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
139
|
-
"hover:bg-bg-secondary data-[state=checked]:bg-bg-secondary",
|
|
140
|
-
className
|
|
141
|
-
),
|
|
142
|
-
...props,
|
|
143
|
-
children
|
|
144
|
-
}
|
|
145
|
-
), "DropdownMenuRadioItem");
|
|
146
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
147
|
-
var DropdownMenuLabel = /* @__PURE__ */ __name(({
|
|
148
|
-
className,
|
|
149
|
-
inset,
|
|
150
|
-
...props
|
|
151
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
-
DropdownMenuPrimitive__namespace.Label,
|
|
153
|
-
{
|
|
154
|
-
className: cn(
|
|
155
|
-
"text-text-secondary text-xs tracking-[2px] uppercase",
|
|
156
|
-
inset && "pl-8",
|
|
157
|
-
className
|
|
158
|
-
),
|
|
159
|
-
...props
|
|
160
|
-
}
|
|
161
|
-
), "DropdownMenuLabel");
|
|
162
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
163
|
-
var DropdownMenuSeparator = /* @__PURE__ */ __name(({
|
|
164
|
-
className,
|
|
165
|
-
...props
|
|
166
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
|
-
DropdownMenuPrimitive__namespace.Separator,
|
|
168
|
-
{
|
|
169
|
-
className: cn("bg-divider -mx-1 my-1 h-px", className),
|
|
170
|
-
...props
|
|
171
|
-
}
|
|
172
|
-
), "DropdownMenuSeparator");
|
|
173
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
174
|
-
var DropdownMenuShortcut = /* @__PURE__ */ __name(({
|
|
175
|
-
className,
|
|
176
|
-
...props
|
|
177
|
-
}) => {
|
|
178
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
179
|
-
"span",
|
|
180
|
-
{
|
|
181
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
182
|
-
...props
|
|
183
|
-
}
|
|
184
|
-
);
|
|
185
|
-
}, "DropdownMenuShortcut");
|
|
186
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
187
|
-
|
|
188
|
-
exports.DropdownMenu = DropdownMenu;
|
|
189
|
-
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
190
|
-
exports.DropdownMenuContent = DropdownMenuContent;
|
|
191
|
-
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
192
|
-
exports.DropdownMenuItem = DropdownMenuItem;
|
|
193
|
-
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
194
|
-
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
195
|
-
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
196
|
-
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
197
|
-
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
198
|
-
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
199
|
-
exports.DropdownMenuSub = DropdownMenuSub;
|
|
200
|
-
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
201
|
-
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
202
|
-
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
2
|
+
'use strict';var e=require('@radix-ui/react-dropdown-menu'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var p=Object.defineProperty;var n=(o,t)=>p(o,"name",{value:t,configurable:true});function a(...o){return tailwindMerge.twMerge(clsx.clsx(o))}n(a,"cn");var k=e__namespace.Root,T=e__namespace.Trigger,L=e__namespace.Group,z=e__namespace.Portal,G=e__namespace.Sub,U=e__namespace.RadioGroup,w=n(({className:o,inset:t,children:r,...d})=>jsxRuntime.jsxs(e__namespace.SubTrigger,{className:a("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-xs px-2 py-1.5 text-sm outline-hidden select-none",t&&"pl-8",o),...d,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}),"DropdownMenuSubTrigger");w.displayName=e__namespace.SubTrigger.displayName;var f=n(({className:o,...t})=>jsxRuntime.jsx(e__namespace.SubContent,{className:a("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 z-[2000000000] min-w-[8rem] space-y-3 overflow-hidden rounded-md bg-gray-300 text-white shadow-lg",o),...t}),"DropdownMenuSubContent");f.displayName=e__namespace.SubContent.displayName;var D=n(({className:o,sideOffset:t=4,...r})=>jsxRuntime.jsx(e__namespace.Portal,{children:jsxRuntime.jsx(e__namespace.Content,{className:a("font-inter border-divider 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 bg-bg-dark z-[2000000000] min-w-[8rem] overflow-hidden rounded-lg border px-4 py-6 text-white shadow-md",o),sideOffset:t,...r})}),"DropdownMenuContent");D.displayName=e__namespace.Content.displayName;var M=n(({className:o,inset:t,...r})=>jsxRuntime.jsx(e__namespace.Item,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-lg px-2 py-2 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",o),...r}),"DropdownMenuItem");M.displayName=e__namespace.Item.displayName;var b=n(({className:o,children:t,checked:r,...d})=>jsxRuntime.jsxs(e__namespace.CheckboxItem,{checked:r,className:a("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...d,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center rounded-xs bg-gray-300",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),t]}),"DropdownMenuCheckboxItem");b.displayName=e__namespace.CheckboxItem.displayName;var P=n(({className:o,children:t,...r})=>jsxRuntime.jsx(e__namespace.RadioItem,{className:a("focus:bg-bg-secondary relative flex cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50","hover:bg-bg-secondary data-[state=checked]:bg-bg-secondary",o),...r,children:t}),"DropdownMenuRadioItem");P.displayName=e__namespace.RadioItem.displayName;var v=n(({className:o,inset:t,...r})=>jsxRuntime.jsx(e__namespace.Label,{className:a("text-text-secondary text-xs tracking-[2px] uppercase",t&&"pl-8",o),...r}),"DropdownMenuLabel");v.displayName=e__namespace.Label.displayName;var g=n(({className:o,...t})=>jsxRuntime.jsx(e__namespace.Separator,{className:a("bg-divider -mx-1 my-1 h-px",o),...t}),"DropdownMenuSeparator");g.displayName=e__namespace.Separator.displayName;var y=n(({className:o,...t})=>jsxRuntime.jsx("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t}),"DropdownMenuShortcut");y.displayName="DropdownMenuShortcut";exports.DropdownMenu=k;exports.DropdownMenuCheckboxItem=b;exports.DropdownMenuContent=D;exports.DropdownMenuGroup=L;exports.DropdownMenuItem=M;exports.DropdownMenuLabel=v;exports.DropdownMenuPortal=z;exports.DropdownMenuRadioGroup=U;exports.DropdownMenuRadioItem=P;exports.DropdownMenuSeparator=g;exports.DropdownMenuShortcut=y;exports.DropdownMenuSub=G;exports.DropdownMenuSubContent=f;exports.DropdownMenuSubTrigger=w;exports.DropdownMenuTrigger=T;
|