@plyaz/ui 0.7.9 → 0.7.11
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/dist/Button-BBFJyA3y.js +89 -0
- package/dist/Button-oW9LiTe6.cjs +39 -0
- package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
- package/dist/Skeleton-Cj9Od_Nd.js +37 -0
- package/dist/Textarea-CLBbcfr_.cjs +24 -0
- package/dist/Textarea-nx_ki3Gv.js +837 -0
- package/dist/client/accordion.cjs.js +1 -0
- package/dist/client/accordion.es.js +62 -0
- package/dist/client/alert-dialog.cjs.js +1 -0
- package/dist/client/alert-dialog.es.js +127 -0
- package/dist/client/avatar.cjs.js +1 -0
- package/dist/client/avatar.es.js +41 -0
- package/dist/client/calendar.cjs.js +1 -0
- package/dist/client/calendar.es.js +160 -0
- package/dist/client/carousel.cjs.js +1 -0
- package/dist/client/carousel.es.js +170 -0
- package/dist/client/checkbox.cjs.js +1 -0
- package/dist/client/checkbox.es.js +28 -0
- package/dist/client/combobox.cjs.js +1 -0
- package/dist/client/combobox.es.js +77 -0
- package/dist/client/command.cjs.js +1 -0
- package/dist/client/command.es.js +143 -0
- package/dist/client/context-menu.cjs.js +1 -0
- package/dist/client/context-menu.es.js +200 -0
- package/dist/client/dialog.cjs.js +1 -0
- package/dist/client/dialog.es.js +122 -0
- package/dist/client/drawer.cjs.js +1 -0
- package/dist/client/drawer.es.js +117 -0
- package/dist/client/dropdown-menu.cjs.js +1 -0
- package/dist/client/dropdown-menu.es.js +204 -0
- package/dist/client/hover-card.cjs.js +1 -0
- package/dist/client/hover-card.es.js +34 -0
- package/dist/client/input-otp.cjs.js +1 -0
- package/dist/client/input-otp.es.js +55 -0
- package/dist/client/label.cjs.js +1 -0
- package/dist/client/label.es.js +19 -0
- package/dist/client/menu-bar.cjs.js +1 -0
- package/dist/client/menu-bar.es.js +229 -0
- package/dist/client/popover.cjs.js +1 -0
- package/dist/client/popover.es.js +38 -0
- package/dist/client/progress.cjs.js +1 -0
- package/dist/client/progress.es.js +29 -0
- package/dist/client/radio-group.cjs.js +1 -0
- package/dist/client/radio-group.es.js +45 -0
- package/dist/client/reveal-text.cjs.js +1 -0
- package/dist/client/reveal-text.es.js +5066 -0
- package/dist/client/scroll-area.cjs.js +1 -0
- package/dist/client/scroll-area.es.js +60 -0
- package/dist/client/sheet.cjs.js +1 -0
- package/dist/client/sheet.es.js +117 -0
- package/dist/client/slider.cjs.js +1 -0
- package/dist/client/slider.es.js +63 -0
- package/dist/client/switch.cjs.js +1 -0
- package/dist/client/switch.es.js +28 -0
- package/dist/client/tabs.cjs.js +1 -0
- package/dist/client/tabs.es.js +55 -0
- package/dist/client/toaster.cjs.js +1 -0
- package/dist/client/toaster.es.js +22 -0
- package/dist/client/toggle.cjs.js +1 -0
- package/dist/client/toggle.es.js +43 -0
- package/dist/client/tooltip.cjs.js +1 -0
- package/dist/client/tooltip.es.js +51 -0
- package/dist/client.cjs.js +1 -93
- package/dist/client.es.js +495 -21191
- package/dist/index.cjs.js +15 -16
- package/dist/index.es.js +312 -558
- package/dist/types/client/accordion.d.ts +2 -0
- package/dist/types/client/alert-dialog.d.ts +2 -0
- package/dist/types/client/avatar.d.ts +2 -0
- package/dist/types/client/calendar.d.ts +2 -0
- package/dist/types/client/carousel.d.ts +2 -0
- package/dist/types/client/checkbox.d.ts +2 -0
- package/dist/types/client/combobox.d.ts +2 -0
- package/dist/types/client/command.d.ts +2 -0
- package/dist/types/client/context-menu.d.ts +2 -0
- package/dist/types/client/dialog.d.ts +2 -0
- package/dist/types/client/drawer.d.ts +2 -0
- package/dist/types/client/dropdown-menu.d.ts +2 -0
- package/dist/types/client/hover-card.d.ts +2 -0
- package/dist/types/client/input-otp.d.ts +2 -0
- package/dist/types/client/label.d.ts +2 -0
- package/dist/types/client/menu-bar.d.ts +2 -0
- package/dist/types/client/popover.d.ts +2 -0
- package/dist/types/client/progress.d.ts +2 -0
- package/dist/types/client/radio-group.d.ts +2 -0
- package/dist/types/client/reveal-text.d.ts +2 -0
- package/dist/types/client/scroll-area.d.ts +2 -0
- package/dist/types/client/sheet.d.ts +2 -0
- package/dist/types/client/slider.d.ts +2 -0
- package/dist/types/client/switch.d.ts +2 -0
- package/dist/types/client/tabs.d.ts +2 -0
- package/dist/types/client/toaster.d.ts +2 -0
- package/dist/types/client/toggle.d.ts +2 -0
- package/dist/types/client/tooltip.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/types/components/Label/Label.stories.d.ts +1 -1
- package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/Select/Select.stories.d.ts +0 -3
- package/dist/types/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils-B6yFEsav.js +8 -0
- package/dist/utils-IjLH3w2e.cjs +1 -0
- package/package.json +186 -1
- package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
- package/dist/Skeleton-CnBXKh2c.js +0 -3511
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import { ChevronsUpDownIcon as y, CheckIcon as N } from "lucide-react";
|
|
4
|
+
import { c as l } from "../utils-B6yFEsav.js";
|
|
5
|
+
import "../Textarea-nx_ki3Gv.js";
|
|
6
|
+
import { B as S } from "../Button-BBFJyA3y.js";
|
|
7
|
+
import "@radix-ui/react-select";
|
|
8
|
+
import "next-intl";
|
|
9
|
+
import "@radix-ui/react-slot";
|
|
10
|
+
import "@radix-ui/react-separator";
|
|
11
|
+
import { Command as I, CommandInput as j, CommandList as O, CommandEmpty as P, CommandGroup as k, CommandItem as B } from "./command.es.js";
|
|
12
|
+
import { Popover as z, PopoverTrigger as D, PopoverContent as E } from "./popover.es.js";
|
|
13
|
+
function M({
|
|
14
|
+
options: a,
|
|
15
|
+
value: m,
|
|
16
|
+
onValueChange: t,
|
|
17
|
+
placeholder: s = "Select option...",
|
|
18
|
+
searchPlaceholder: d = "Search...",
|
|
19
|
+
emptyText: p = "No option found.",
|
|
20
|
+
disabled: f = !1,
|
|
21
|
+
triggerClassName: h,
|
|
22
|
+
contentClassName: u,
|
|
23
|
+
buttonVariant: b = "outline",
|
|
24
|
+
buttonSize: v = "default"
|
|
25
|
+
}) {
|
|
26
|
+
const [i, n] = x.useState(!1), c = a.find((e) => e.value === m), C = (e) => {
|
|
27
|
+
const w = e === m ? "" : e;
|
|
28
|
+
t == null || t(w), n(!1);
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ r(z, { open: i, onOpenChange: n, children: [
|
|
31
|
+
/* @__PURE__ */ o(D, { asChild: !0, children: /* @__PURE__ */ r(
|
|
32
|
+
S,
|
|
33
|
+
{
|
|
34
|
+
variant: b,
|
|
35
|
+
size: v,
|
|
36
|
+
role: "combobox",
|
|
37
|
+
"aria-expanded": i,
|
|
38
|
+
disabled: f,
|
|
39
|
+
className: l("w-full justify-between", h),
|
|
40
|
+
children: [
|
|
41
|
+
c ? c.label : s,
|
|
42
|
+
/* @__PURE__ */ o(y, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
) }),
|
|
46
|
+
/* @__PURE__ */ o(E, { className: l("w-full p-0", u), children: /* @__PURE__ */ r(I, { children: [
|
|
47
|
+
/* @__PURE__ */ o(j, { placeholder: d }),
|
|
48
|
+
/* @__PURE__ */ r(O, { children: [
|
|
49
|
+
/* @__PURE__ */ o(P, { children: p }),
|
|
50
|
+
/* @__PURE__ */ o(k, { children: a.map((e) => /* @__PURE__ */ r(
|
|
51
|
+
B,
|
|
52
|
+
{
|
|
53
|
+
value: e.value,
|
|
54
|
+
disabled: e.disabled,
|
|
55
|
+
onSelect: () => C(e.value),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ o(
|
|
58
|
+
N,
|
|
59
|
+
{
|
|
60
|
+
className: l(
|
|
61
|
+
"mr-2 h-4 w-4",
|
|
62
|
+
m === e.value ? "opacity-100" : "opacity-0"
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
e.label
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
e.value
|
|
70
|
+
)) })
|
|
71
|
+
] })
|
|
72
|
+
] }) })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
M as Combobox
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("cmdk"),u=require("lucide-react"),n=require("../utils-IjLH3w2e.cjs"),d=require("./dialog.cjs.js");function m({className:e,...o}){return t.jsx(a.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}function l({title:e="Command Palette",description:o="Search for a command to run...",children:r,className:s,showCloseButton:c=!0,...i}){return t.jsxs(d.Dialog,{...i,children:[t.jsxs(d.DialogHeader,{className:"sr-only",children:[t.jsx(d.DialogTitle,{children:e}),t.jsx(d.DialogDescription,{children:o})]}),t.jsx(d.DialogContent,{className:n.cn("overflow-hidden p-0",s),showCloseButton:c,children:t.jsx(m,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:r})})]})}function p({className:e,...o}){return t.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[t.jsx(u.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),t.jsx(a.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...o})]})}function g({className:e,...o}){return t.jsx(a.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}function x({...e}){return t.jsx(a.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function h({className:e,...o}){return t.jsx(a.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o})}function f({className:e,...o}){return t.jsx(a.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",e),...o})}function C({className:e,...o}){return t.jsx(a.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function _({className:e,...o}){return t.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}exports.Command=m;exports.CommandDialog=l;exports.CommandEmpty=x;exports.CommandGroup=h;exports.CommandInput=p;exports.CommandItem=C;exports.CommandList=g;exports.CommandSeparator=f;exports.CommandShortcut=_;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { Command as n } from "cmdk";
|
|
3
|
+
import { SearchIcon as i } from "lucide-react";
|
|
4
|
+
import { c as a } from "../utils-B6yFEsav.js";
|
|
5
|
+
import { Dialog as l, DialogHeader as u, DialogTitle as p, DialogDescription as g, DialogContent as f } from "./dialog.es.js";
|
|
6
|
+
function h({ className: e, ...t }) {
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
|
+
n,
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "command",
|
|
11
|
+
className: a(
|
|
12
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
13
|
+
e
|
|
14
|
+
),
|
|
15
|
+
...t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function y({
|
|
20
|
+
title: e = "Command Palette",
|
|
21
|
+
description: t = "Search for a command to run...",
|
|
22
|
+
children: r,
|
|
23
|
+
className: m,
|
|
24
|
+
showCloseButton: s = !0,
|
|
25
|
+
...c
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ d(l, { ...c, children: [
|
|
28
|
+
/* @__PURE__ */ d(u, { className: "sr-only", children: [
|
|
29
|
+
/* @__PURE__ */ o(p, { children: e }),
|
|
30
|
+
/* @__PURE__ */ o(g, { children: t })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ o(
|
|
33
|
+
f,
|
|
34
|
+
{
|
|
35
|
+
className: a("overflow-hidden p-0", m),
|
|
36
|
+
showCloseButton: s,
|
|
37
|
+
children: /* @__PURE__ */ o(h, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r })
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
function C({
|
|
43
|
+
className: e,
|
|
44
|
+
...t
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ d("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [
|
|
47
|
+
/* @__PURE__ */ o(i, { className: "size-4 shrink-0 opacity-50" }),
|
|
48
|
+
/* @__PURE__ */ o(
|
|
49
|
+
n.Input,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "command-input",
|
|
52
|
+
className: a(
|
|
53
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
54
|
+
e
|
|
55
|
+
),
|
|
56
|
+
...t
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
function N({ className: e, ...t }) {
|
|
62
|
+
return /* @__PURE__ */ o(
|
|
63
|
+
n.List,
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "command-list",
|
|
66
|
+
className: a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
|
|
67
|
+
...t
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
function b({ ...e }) {
|
|
72
|
+
return /* @__PURE__ */ o(
|
|
73
|
+
n.Empty,
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "command-empty",
|
|
76
|
+
className: "py-6 text-center text-sm",
|
|
77
|
+
...e
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function D({
|
|
82
|
+
className: e,
|
|
83
|
+
...t
|
|
84
|
+
}) {
|
|
85
|
+
return /* @__PURE__ */ o(
|
|
86
|
+
n.Group,
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "command-group",
|
|
89
|
+
className: a(
|
|
90
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
91
|
+
e
|
|
92
|
+
),
|
|
93
|
+
...t
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
function I({
|
|
98
|
+
className: e,
|
|
99
|
+
...t
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ o(
|
|
102
|
+
n.Separator,
|
|
103
|
+
{
|
|
104
|
+
"data-slot": "command-separator",
|
|
105
|
+
className: a("bg-border -mx-1 h-px", e),
|
|
106
|
+
...t
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
function S({ className: e, ...t }) {
|
|
111
|
+
return /* @__PURE__ */ o(
|
|
112
|
+
n.Item,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "command-item",
|
|
115
|
+
className: a(
|
|
116
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
117
|
+
e
|
|
118
|
+
),
|
|
119
|
+
...t
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function z({ className: e, ...t }) {
|
|
124
|
+
return /* @__PURE__ */ o(
|
|
125
|
+
"span",
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "command-shortcut",
|
|
128
|
+
className: a("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
129
|
+
...t
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
h as Command,
|
|
135
|
+
y as CommandDialog,
|
|
136
|
+
b as CommandEmpty,
|
|
137
|
+
D as CommandGroup,
|
|
138
|
+
C as CommandInput,
|
|
139
|
+
S as CommandItem,
|
|
140
|
+
N as CommandList,
|
|
141
|
+
I as CommandSeparator,
|
|
142
|
+
z as CommandShortcut
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@radix-ui/react-context-menu"),i=require("lucide-react"),s=require("../utils-IjLH3w2e.cjs");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const o=d(u);function c({...t}){return e.jsx(o.Root,{"data-slot":"context-menu",...t})}function l({...t}){return e.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function x({...t}){return e.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function m({...t}){return e.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function f({...t}){return e.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function p({...t}){return e.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function g({className:t,inset:n,children:a,...r}){return e.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[a,e.jsx(i.ChevronRightIcon,{className:"ml-auto"})]})}function v({className:t,...n}){return e.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:s.cn("bg-popover text-popover-foreground 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-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function b({className:t,...n}){return e.jsx(o.Portal,{children:e.jsx(o.Content,{"data-slot":"context-menu-content",className:s.cn("bg-popover text-popover-foreground 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-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function C({className:t,inset:n,variant:a="default",...r}){return e.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":a,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function h({className:t,children:n,checked:a,...r}){return e.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:a,...r,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(o.ItemIndicator,{children:e.jsx(i.CheckIcon,{className:"size-4"})})}),n]})}function M({className:t,children:n,...a}){return e.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsx(o.ItemIndicator,{children:e.jsx(i.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function j({className:t,inset:n,...a}){return e.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:s.cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...a})}function z({className:t,...n}){return e.jsx(o.Separator,{"data-slot":"context-menu-separator",className:s.cn("bg-border -mx-1 my-1 h-px",t),...n})}function S({className:t,...n}){return e.jsx("span",{"data-slot":"context-menu-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n})}exports.ContextMenu=c;exports.ContextMenuCheckboxItem=h;exports.ContextMenuContent=b;exports.ContextMenuGroup=x;exports.ContextMenuItem=C;exports.ContextMenuLabel=j;exports.ContextMenuPortal=m;exports.ContextMenuRadioGroup=p;exports.ContextMenuRadioItem=M;exports.ContextMenuSeparator=z;exports.ContextMenuShortcut=S;exports.ContextMenuSub=f;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=l;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-context-menu";
|
|
3
|
+
import { CheckIcon as d, CircleIcon as c, ChevronRightIcon as u } from "lucide-react";
|
|
4
|
+
import { c as s } from "../utils-B6yFEsav.js";
|
|
5
|
+
function x({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "context-menu", ...t });
|
|
7
|
+
}
|
|
8
|
+
function p({
|
|
9
|
+
...t
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "context-menu-trigger", ...t });
|
|
12
|
+
}
|
|
13
|
+
function g({ ...t }) {
|
|
14
|
+
return /* @__PURE__ */ e(o.Group, { "data-slot": "context-menu-group", ...t });
|
|
15
|
+
}
|
|
16
|
+
function v({ ...t }) {
|
|
17
|
+
return /* @__PURE__ */ e(o.Portal, { "data-slot": "context-menu-portal", ...t });
|
|
18
|
+
}
|
|
19
|
+
function b({ ...t }) {
|
|
20
|
+
return /* @__PURE__ */ e(o.Sub, { "data-slot": "context-menu-sub", ...t });
|
|
21
|
+
}
|
|
22
|
+
function h({
|
|
23
|
+
...t
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ e(o.RadioGroup, { "data-slot": "context-menu-radio-group", ...t });
|
|
26
|
+
}
|
|
27
|
+
function C({
|
|
28
|
+
className: t,
|
|
29
|
+
inset: n,
|
|
30
|
+
children: a,
|
|
31
|
+
...r
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ i(
|
|
34
|
+
o.SubTrigger,
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "context-menu-sub-trigger",
|
|
37
|
+
"data-inset": n,
|
|
38
|
+
className: s(
|
|
39
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
40
|
+
t
|
|
41
|
+
),
|
|
42
|
+
...r,
|
|
43
|
+
children: [
|
|
44
|
+
a,
|
|
45
|
+
/* @__PURE__ */ e(u, { className: "ml-auto" })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function z({
|
|
51
|
+
className: t,
|
|
52
|
+
...n
|
|
53
|
+
}) {
|
|
54
|
+
return /* @__PURE__ */ e(
|
|
55
|
+
o.SubContent,
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "context-menu-sub-content",
|
|
58
|
+
className: s(
|
|
59
|
+
"bg-popover text-popover-foreground 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-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
60
|
+
t
|
|
61
|
+
),
|
|
62
|
+
...n
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function M({
|
|
67
|
+
className: t,
|
|
68
|
+
...n
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(
|
|
71
|
+
o.Content,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "context-menu-content",
|
|
74
|
+
className: s(
|
|
75
|
+
"bg-popover text-popover-foreground 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-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
76
|
+
t
|
|
77
|
+
),
|
|
78
|
+
...n
|
|
79
|
+
}
|
|
80
|
+
) });
|
|
81
|
+
}
|
|
82
|
+
function N({
|
|
83
|
+
className: t,
|
|
84
|
+
inset: n,
|
|
85
|
+
variant: a = "default",
|
|
86
|
+
...r
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ e(
|
|
89
|
+
o.Item,
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "context-menu-item",
|
|
92
|
+
"data-inset": n,
|
|
93
|
+
"data-variant": a,
|
|
94
|
+
className: s(
|
|
95
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
96
|
+
t
|
|
97
|
+
),
|
|
98
|
+
...r
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function I({
|
|
103
|
+
className: t,
|
|
104
|
+
children: n,
|
|
105
|
+
checked: a,
|
|
106
|
+
...r
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ i(
|
|
109
|
+
o.CheckboxItem,
|
|
110
|
+
{
|
|
111
|
+
"data-slot": "context-menu-checkbox-item",
|
|
112
|
+
className: s(
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
114
|
+
t
|
|
115
|
+
),
|
|
116
|
+
checked: a,
|
|
117
|
+
...r,
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(d, { className: "size-4" }) }) }),
|
|
120
|
+
n
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function _({
|
|
126
|
+
className: t,
|
|
127
|
+
children: n,
|
|
128
|
+
...a
|
|
129
|
+
}) {
|
|
130
|
+
return /* @__PURE__ */ i(
|
|
131
|
+
o.RadioItem,
|
|
132
|
+
{
|
|
133
|
+
"data-slot": "context-menu-radio-item",
|
|
134
|
+
className: s(
|
|
135
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
136
|
+
t
|
|
137
|
+
),
|
|
138
|
+
...a,
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ e("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(c, { className: "size-2 fill-current" }) }) }),
|
|
141
|
+
n
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
function y({
|
|
147
|
+
className: t,
|
|
148
|
+
inset: n,
|
|
149
|
+
...a
|
|
150
|
+
}) {
|
|
151
|
+
return /* @__PURE__ */ e(
|
|
152
|
+
o.Label,
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "context-menu-label",
|
|
155
|
+
"data-inset": n,
|
|
156
|
+
className: s("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
|
|
157
|
+
...a
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function k({
|
|
162
|
+
className: t,
|
|
163
|
+
...n
|
|
164
|
+
}) {
|
|
165
|
+
return /* @__PURE__ */ e(
|
|
166
|
+
o.Separator,
|
|
167
|
+
{
|
|
168
|
+
"data-slot": "context-menu-separator",
|
|
169
|
+
className: s("bg-border -mx-1 my-1 h-px", t),
|
|
170
|
+
...n
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
function S({ className: t, ...n }) {
|
|
175
|
+
return /* @__PURE__ */ e(
|
|
176
|
+
"span",
|
|
177
|
+
{
|
|
178
|
+
"data-slot": "context-menu-shortcut",
|
|
179
|
+
className: s("text-muted-foreground ml-auto text-xs tracking-widest", t),
|
|
180
|
+
...n
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
export {
|
|
185
|
+
x as ContextMenu,
|
|
186
|
+
I as ContextMenuCheckboxItem,
|
|
187
|
+
M as ContextMenuContent,
|
|
188
|
+
g as ContextMenuGroup,
|
|
189
|
+
N as ContextMenuItem,
|
|
190
|
+
y as ContextMenuLabel,
|
|
191
|
+
v as ContextMenuPortal,
|
|
192
|
+
h as ContextMenuRadioGroup,
|
|
193
|
+
_ as ContextMenuRadioItem,
|
|
194
|
+
k as ContextMenuSeparator,
|
|
195
|
+
S as ContextMenuShortcut,
|
|
196
|
+
b as ContextMenuSub,
|
|
197
|
+
z as ContextMenuSubContent,
|
|
198
|
+
C as ContextMenuSubTrigger,
|
|
199
|
+
p as ContextMenuTrigger
|
|
200
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),i=require("../utils-IjLH3w2e.cjs");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=g(d);function u({...t}){return a.jsx(o.Root,{"data-slot":"dialog",...t})}function f({...t}){return a.jsx(o.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return a.jsx(o.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return a.jsx(o.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return a.jsx(o.Overlay,{"data-slot":"dialog-overlay",className:i.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function x({className:t,children:e,showCloseButton:n=!0,...s}){return a.jsxs(r,{"data-slot":"dialog-portal",children:[a.jsx(l,{}),a.jsxs(o.Content,{"data-slot":"dialog-content",className:i.cn("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border border-subtle p-6 shadow-lg duration-200 sm:max-w-lg",t),...s,children:[e,n&&a.jsxs(o.Close,{"data-slot":"dialog-close",className:"ring-offset-background cursor-pointer text-secondary focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-primary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(c.XIcon,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-header",className:i.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function D({className:t,...e}){return a.jsx("div",{"data-slot":"dialog-footer",className:i.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsx(o.Title,{"data-slot":"dialog-title",className:i.cn("text-primary-foreground text-lg font-semibold",t),...e})}function b({className:t,...e}){return a.jsx(o.Description,{"data-slot":"dialog-description",className:i.cn("text-secondary-foreground text-sm",t),...e})}exports.Dialog=u;exports.DialogClose=p;exports.DialogContent=x;exports.DialogDescription=b;exports.DialogFooter=D;exports.DialogHeader=m;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=j;exports.DialogTrigger=f;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "@radix-ui/react-dialog";
|
|
3
|
+
import { XIcon as l } from "lucide-react";
|
|
4
|
+
import { c as n } from "../utils-B6yFEsav.js";
|
|
5
|
+
function m({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ a(e.Root, { "data-slot": "dialog", ...t });
|
|
7
|
+
}
|
|
8
|
+
function p({ ...t }) {
|
|
9
|
+
return /* @__PURE__ */ a(e.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
10
|
+
}
|
|
11
|
+
function d({ ...t }) {
|
|
12
|
+
return /* @__PURE__ */ a(e.Portal, { "data-slot": "dialog-portal", ...t });
|
|
13
|
+
}
|
|
14
|
+
function x({ ...t }) {
|
|
15
|
+
return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...t });
|
|
16
|
+
}
|
|
17
|
+
function c({
|
|
18
|
+
className: t,
|
|
19
|
+
...o
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
e.Overlay,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "dialog-overlay",
|
|
25
|
+
className: n(
|
|
26
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
27
|
+
t
|
|
28
|
+
),
|
|
29
|
+
...o
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function v({
|
|
34
|
+
className: t,
|
|
35
|
+
children: o,
|
|
36
|
+
showCloseButton: s = !0,
|
|
37
|
+
...i
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ r(d, { "data-slot": "dialog-portal", children: [
|
|
40
|
+
/* @__PURE__ */ a(c, {}),
|
|
41
|
+
/* @__PURE__ */ r(
|
|
42
|
+
e.Content,
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "dialog-content",
|
|
45
|
+
className: n(
|
|
46
|
+
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-md border border-subtle p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
47
|
+
t
|
|
48
|
+
),
|
|
49
|
+
...i,
|
|
50
|
+
children: [
|
|
51
|
+
o,
|
|
52
|
+
s && /* @__PURE__ */ r(
|
|
53
|
+
e.Close,
|
|
54
|
+
{
|
|
55
|
+
"data-slot": "dialog-close",
|
|
56
|
+
className: "ring-offset-background cursor-pointer text-secondary focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-primary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ a(l, {}),
|
|
59
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
function y({ className: t, ...o }) {
|
|
69
|
+
return /* @__PURE__ */ a(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "dialog-header",
|
|
73
|
+
className: n("flex flex-col gap-2 text-center sm:text-left", t),
|
|
74
|
+
...o
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
function D({ className: t, ...o }) {
|
|
79
|
+
return /* @__PURE__ */ a(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
"data-slot": "dialog-footer",
|
|
83
|
+
className: n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
84
|
+
...o
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
function b({ className: t, ...o }) {
|
|
89
|
+
return /* @__PURE__ */ a(
|
|
90
|
+
e.Title,
|
|
91
|
+
{
|
|
92
|
+
"data-slot": "dialog-title",
|
|
93
|
+
className: n("text-primary-foreground text-lg font-semibold", t),
|
|
94
|
+
...o
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
function h({
|
|
99
|
+
className: t,
|
|
100
|
+
...o
|
|
101
|
+
}) {
|
|
102
|
+
return /* @__PURE__ */ a(
|
|
103
|
+
e.Description,
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "dialog-description",
|
|
106
|
+
className: n("text-secondary-foreground text-sm", t),
|
|
107
|
+
...o
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
m as Dialog,
|
|
113
|
+
x as DialogClose,
|
|
114
|
+
v as DialogContent,
|
|
115
|
+
h as DialogDescription,
|
|
116
|
+
D as DialogFooter,
|
|
117
|
+
y as DialogHeader,
|
|
118
|
+
c as DialogOverlay,
|
|
119
|
+
d as DialogPortal,
|
|
120
|
+
b as DialogTitle,
|
|
121
|
+
p as DialogTrigger
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("vaul"),d=require("../utils-IjLH3w2e.cjs");function l({...r}){return a.jsx(e.Drawer.Root,{"data-slot":"drawer",...r})}function c({...r}){return a.jsx(e.Drawer.Trigger,{"data-slot":"drawer-trigger",...r})}function o({...r}){return a.jsx(e.Drawer.Portal,{"data-slot":"drawer-portal",...r})}function s({...r}){return a.jsx(e.Drawer.Close,{"data-slot":"drawer-close",...r})}function n({className:r,...t}){return a.jsx(e.Drawer.Overlay,{"data-slot":"drawer-overlay",className:d.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",r),...t})}function w({className:r,children:t,...i}){return a.jsxs(o,{"data-slot":"drawer-portal",children:[a.jsx(n,{}),a.jsxs(e.Drawer.Content,{"data-slot":"drawer-content",className:d.cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",r),...i,children:[a.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),t]})]})}function u({className:r,...t}){return a.jsx("div",{"data-slot":"drawer-header",className:d.cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",r),...t})}function m({className:r,...t}){return a.jsx("div",{"data-slot":"drawer-footer",className:d.cn("mt-auto flex flex-col gap-2 p-4",r),...t})}function v({className:r,...t}){return a.jsx(e.Drawer.Title,{"data-slot":"drawer-title",className:d.cn("text-foreground font-semibold",r),...t})}function x({className:r,...t}){return a.jsx(e.Drawer.Description,{"data-slot":"drawer-description",className:d.cn("text-muted-foreground text-sm",r),...t})}exports.Drawer=l;exports.DrawerClose=s;exports.DrawerContent=w;exports.DrawerDescription=x;exports.DrawerFooter=m;exports.DrawerHeader=u;exports.DrawerOverlay=n;exports.DrawerPortal=o;exports.DrawerTitle=v;exports.DrawerTrigger=c;
|