fina-react-ds 1.0.2 → 1.0.3
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/components/alert-dialog.js +160 -0
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +153 -143
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +130 -0
- package/package.json +1 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var e = (t, a) => f(t, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { Root as i, Portal as s, Overlay as d, Trigger as g, Content as m, Title as u, Description as p, Action as x, Cancel as D } from "../node_modules/@radix-ui/react-alert-dialog/dist/index.js";
|
|
5
|
+
import { cn as l } from "../lib/utils.js";
|
|
6
|
+
import { buttonVariants as r } from "./button.js";
|
|
7
|
+
function C({
|
|
8
|
+
...t
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ o(i, { "data-slot": "alert-dialog", ...t });
|
|
11
|
+
}
|
|
12
|
+
e(C, "AlertDialog");
|
|
13
|
+
function h({
|
|
14
|
+
...t
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ o(g, { "data-slot": "alert-dialog-trigger", ...t });
|
|
17
|
+
}
|
|
18
|
+
e(h, "AlertDialogTrigger");
|
|
19
|
+
function A({
|
|
20
|
+
...t
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ o(s, { "data-slot": "alert-dialog-portal", ...t });
|
|
23
|
+
}
|
|
24
|
+
e(A, "AlertDialogPortal");
|
|
25
|
+
function v({
|
|
26
|
+
className: t,
|
|
27
|
+
...a
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ o(
|
|
30
|
+
d,
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "alert-dialog-overlay",
|
|
33
|
+
className: l(
|
|
34
|
+
"fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:fixed fc:inset-0 fc:z-50 fc:bg-black/50",
|
|
35
|
+
t
|
|
36
|
+
),
|
|
37
|
+
...a
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
e(v, "AlertDialogOverlay");
|
|
42
|
+
function z({
|
|
43
|
+
className: t,
|
|
44
|
+
...a
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ n(A, { children: [
|
|
47
|
+
/* @__PURE__ */ o(v, {}),
|
|
48
|
+
/* @__PURE__ */ o(
|
|
49
|
+
m,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "alert-dialog-content",
|
|
52
|
+
className: l(
|
|
53
|
+
"fc:bg-card fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:fixed fc:top-[50%] fc:left-[50%] fc:z-50 fc:grid fc:w-full fc:max-w-[calc(100%-2rem)] fc:translate-x-[-50%] fc:translate-y-[-50%] fc:gap-4 fc:rounded-lg fc:border fc:p-6 fc:shadow-lg fc:duration-200 fc:sm:max-w-lg",
|
|
54
|
+
t
|
|
55
|
+
),
|
|
56
|
+
...a
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
e(z, "AlertDialogContent");
|
|
62
|
+
function j({
|
|
63
|
+
className: t,
|
|
64
|
+
...a
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ o(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
"data-slot": "alert-dialog-header",
|
|
70
|
+
className: l("fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left", t),
|
|
71
|
+
...a
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
e(j, "AlertDialogHeader");
|
|
76
|
+
function O({
|
|
77
|
+
className: t,
|
|
78
|
+
...a
|
|
79
|
+
}) {
|
|
80
|
+
return /* @__PURE__ */ o(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "alert-dialog-footer",
|
|
84
|
+
className: l(
|
|
85
|
+
"fc:flex fc:flex-col-reverse fc:gap-2 fc:sm:flex-row fc:sm:justify-end",
|
|
86
|
+
t
|
|
87
|
+
),
|
|
88
|
+
...a
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
e(O, "AlertDialogFooter");
|
|
93
|
+
function P({
|
|
94
|
+
className: t,
|
|
95
|
+
...a
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ o(
|
|
98
|
+
u,
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "alert-dialog-title",
|
|
101
|
+
className: l("fc:text-lg fc:font-semibold", t),
|
|
102
|
+
...a
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
e(P, "AlertDialogTitle");
|
|
107
|
+
function k({
|
|
108
|
+
className: t,
|
|
109
|
+
...a
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ o(
|
|
112
|
+
p,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "alert-dialog-description",
|
|
115
|
+
className: l("fc:text-muted fc:text-sm", t),
|
|
116
|
+
...a
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
e(k, "AlertDialogDescription");
|
|
121
|
+
function R({
|
|
122
|
+
color: t = "primary",
|
|
123
|
+
className: a,
|
|
124
|
+
...c
|
|
125
|
+
}) {
|
|
126
|
+
return /* @__PURE__ */ o(
|
|
127
|
+
x,
|
|
128
|
+
{
|
|
129
|
+
className: l(r({ color: t }), a),
|
|
130
|
+
...c
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
e(R, "AlertDialogAction");
|
|
135
|
+
function F({
|
|
136
|
+
className: t,
|
|
137
|
+
...a
|
|
138
|
+
}) {
|
|
139
|
+
return /* @__PURE__ */ o(
|
|
140
|
+
D,
|
|
141
|
+
{
|
|
142
|
+
className: l(r({ variant: "ghost", color: "dark" }), t),
|
|
143
|
+
...a
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
e(F, "AlertDialogCancel");
|
|
148
|
+
export {
|
|
149
|
+
C as AlertDialog,
|
|
150
|
+
R as AlertDialogAction,
|
|
151
|
+
F as AlertDialogCancel,
|
|
152
|
+
z as AlertDialogContent,
|
|
153
|
+
k as AlertDialogDescription,
|
|
154
|
+
O as AlertDialogFooter,
|
|
155
|
+
j as AlertDialogHeader,
|
|
156
|
+
v as AlertDialogOverlay,
|
|
157
|
+
A as AlertDialogPortal,
|
|
158
|
+
P as AlertDialogTitle,
|
|
159
|
+
h as AlertDialogTrigger
|
|
160
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
declare const alertVariants: (props?: ({
|
|
3
|
-
variant?: "info" | "
|
|
3
|
+
variant?: "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
declare function Alert({ variant, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
declare const badgeVariants: (props?: ({
|
|
3
|
-
variant?: "
|
|
3
|
+
variant?: "primary" | "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
6
6
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
declare const buttonVariants: (props?: ({
|
|
3
|
-
color?: "
|
|
4
|
-
variant?: "
|
|
3
|
+
color?: "primary" | "info" | "success" | "warning" | "destructive" | "dark" | null | undefined;
|
|
4
|
+
variant?: "contained" | "outline" | "ghost" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, color, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -43,7 +43,7 @@ declare function SidebarGroupContent({ className, ...props }: React.ComponentPro
|
|
|
43
43
|
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
44
44
|
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
46
|
-
variant?: "
|
|
46
|
+
variant?: "outline" | "default" | null | undefined;
|
|
47
47
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
48
48
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
49
49
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from "./components/alert-dialog";
|
|
2
2
|
export { Alert, AlertTitle, AlertDescription } from "./components/alert";
|
|
3
3
|
export { Badge } from "./components/badge";
|
|
4
4
|
export { Button, buttonVariants } from "./components/button";
|
package/dist/index.js
CHANGED
|
@@ -1,145 +1,155 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Alert as
|
|
3
|
-
import { Badge as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { Calendar as
|
|
7
|
-
import { Card as
|
|
8
|
-
import { Checkbox as
|
|
9
|
-
import { DatePicker as
|
|
10
|
-
import { Dialog as
|
|
11
|
-
import { DropdownMenu as
|
|
12
|
-
import { Input as
|
|
13
|
-
import { Label as
|
|
14
|
-
import { Pagination as
|
|
15
|
-
import { Popover as
|
|
16
|
-
import { Select as
|
|
17
|
-
import { Separator as
|
|
18
|
-
import { Sheet as
|
|
19
|
-
import { Sidebar as
|
|
20
|
-
import { SimplePagination as
|
|
21
|
-
import { SimpleTooltip as
|
|
22
|
-
import { Skeleton as
|
|
23
|
-
import { Switch as
|
|
24
|
-
import { Toaster as
|
|
25
|
-
import { Table as
|
|
26
|
-
import { Tabs as
|
|
27
|
-
import { Textarea as
|
|
28
|
-
import { Tooltip as
|
|
1
|
+
import { AlertDialog as r, AlertDialogAction as t, AlertDialogCancel as a, AlertDialogContent as i, AlertDialogDescription as n, AlertDialogFooter as l, AlertDialogHeader as p, AlertDialogOverlay as d, AlertDialogPortal as g, AlertDialogTitle as b, AlertDialogTrigger as S } from "./components/alert-dialog.js";
|
|
2
|
+
import { Alert as D, AlertDescription as m, AlertTitle as T } from "./components/alert.js";
|
|
3
|
+
import { Badge as f } from "./components/badge.js";
|
|
4
|
+
import { Button as M, buttonVariants as A } from "./components/button.js";
|
|
5
|
+
import { Avatar as P, AvatarFallback as c, AvatarImage as w } from "./components/avatar.js";
|
|
6
|
+
import { Calendar as v } from "./components/calendar.js";
|
|
7
|
+
import { Card as k, CardAction as B, CardContent as F, CardDescription as H, CardFooter as G, CardHeader as L, CardTitle as y } from "./components/card.js";
|
|
8
|
+
import { Checkbox as O } from "./components/checkbox.js";
|
|
9
|
+
import { DatePicker as N } from "./components/date-picker.js";
|
|
10
|
+
import { Dialog as j, DialogClose as q, DialogContent as z, DialogDescription as J, DialogFooter as K, DialogHeader as Q, DialogOverlay as U, DialogPortal as W, DialogTitle as X, DialogTrigger as Y } from "./components/dialog.js";
|
|
11
|
+
import { DropdownMenu as _, DropdownMenuCheckboxItem as $, DropdownMenuContent as ee, DropdownMenuGroup as oe, DropdownMenuItem as re, DropdownMenuLabel as te, DropdownMenuPortal as ae, DropdownMenuRadioGroup as ie, DropdownMenuRadioItem as ne, DropdownMenuSeparator as le, DropdownMenuShortcut as pe, DropdownMenuSub as de, DropdownMenuSubContent as ge, DropdownMenuSubTrigger as be, DropdownMenuTrigger as Se } from "./components/dropdown-menu.js";
|
|
12
|
+
import { Input as De } from "./components/input.js";
|
|
13
|
+
import { Label as Te } from "./components/label.js";
|
|
14
|
+
import { Pagination as fe, PaginationContent as Ce, PaginationEllipsis as Me, PaginationItem as Ae, PaginationLink as se, PaginationNext as Pe, PaginationPrevious as ce } from "./components/pagination.js";
|
|
15
|
+
import { Popover as he, PopoverAnchor as ve, PopoverContent as Ie, PopoverTrigger as ke } from "./components/popover.js";
|
|
16
|
+
import { Select as Fe } from "./components/select.js";
|
|
17
|
+
import { Separator as Ge } from "./components/separator.js";
|
|
18
|
+
import { Sheet as ye, SheetBody as Re, SheetClose as Oe, SheetContent as Ee, SheetDescription as Ne, SheetFooter as Ve, SheetHeader as je, SheetTitle as qe, SheetTrigger as ze } from "./components/sheet.js";
|
|
19
|
+
import { Sidebar as Ke, SidebarContent as Qe, SidebarFooter as Ue, SidebarGroup as We, SidebarGroupAction as Xe, SidebarGroupContent as Ye, SidebarGroupLabel as Ze, SidebarHeader as _e, SidebarInput as $e, SidebarInset as eo, SidebarMenu as oo, SidebarMenuAction as ro, SidebarMenuBadge as to, SidebarMenuButton as ao, SidebarMenuItem as io, SidebarMenuSkeleton as no, SidebarMenuSub as lo, SidebarMenuSubButton as po, SidebarMenuSubItem as go, SidebarProvider as bo, SidebarRail as So, SidebarSeparator as uo, SidebarTrigger as Do, useSidebar as mo } from "./components/sidebar.js";
|
|
20
|
+
import { SimplePagination as xo } from "./components/simple-pagination.js";
|
|
21
|
+
import { SimpleTooltip as Co } from "./components/simple-tooltip.js";
|
|
22
|
+
import { Skeleton as Ao } from "./components/skeleton.js";
|
|
23
|
+
import { Switch as Po } from "./components/switch.js";
|
|
24
|
+
import { Toaster as wo } from "./components/sonner.js";
|
|
25
|
+
import { Table as vo, TableBody as Io, TableCaption as ko, TableCell as Bo, TableFooter as Fo, TableHead as Ho, TableHeader as Go, TableRow as Lo } from "./components/table.js";
|
|
26
|
+
import { Tabs as Ro, TabsContent as Oo, TabsList as Eo, TabsTrigger as No } from "./components/tabs.js";
|
|
27
|
+
import { Textarea as jo } from "./components/textarea.js";
|
|
28
|
+
import { Tooltip as zo, TooltipContent as Jo, TooltipProvider as Ko, TooltipTrigger as Qo } from "./components/tooltip.js";
|
|
29
29
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Oe as
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
Ao as
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
30
|
+
D as Alert,
|
|
31
|
+
m as AlertDescription,
|
|
32
|
+
r as AlertDialog,
|
|
33
|
+
t as AlertDialogAction,
|
|
34
|
+
a as AlertDialogCancel,
|
|
35
|
+
i as AlertDialogContent,
|
|
36
|
+
n as AlertDialogDescription,
|
|
37
|
+
l as AlertDialogFooter,
|
|
38
|
+
p as AlertDialogHeader,
|
|
39
|
+
d as AlertDialogOverlay,
|
|
40
|
+
g as AlertDialogPortal,
|
|
41
|
+
b as AlertDialogTitle,
|
|
42
|
+
S as AlertDialogTrigger,
|
|
43
|
+
T as AlertTitle,
|
|
44
|
+
P as Avatar,
|
|
45
|
+
c as AvatarFallback,
|
|
46
|
+
w as AvatarImage,
|
|
47
|
+
f as Badge,
|
|
48
|
+
M as Button,
|
|
49
|
+
v as Calendar,
|
|
50
|
+
k as Card,
|
|
51
|
+
B as CardAction,
|
|
52
|
+
F as CardContent,
|
|
53
|
+
H as CardDescription,
|
|
54
|
+
G as CardFooter,
|
|
55
|
+
L as CardHeader,
|
|
56
|
+
y as CardTitle,
|
|
57
|
+
O as Checkbox,
|
|
58
|
+
N as DatePicker,
|
|
59
|
+
j as Dialog,
|
|
60
|
+
q as DialogClose,
|
|
61
|
+
z as DialogContent,
|
|
62
|
+
J as DialogDescription,
|
|
63
|
+
K as DialogFooter,
|
|
64
|
+
Q as DialogHeader,
|
|
65
|
+
U as DialogOverlay,
|
|
66
|
+
W as DialogPortal,
|
|
67
|
+
X as DialogTitle,
|
|
68
|
+
Y as DialogTrigger,
|
|
69
|
+
_ as DropdownMenu,
|
|
70
|
+
$ as DropdownMenuCheckboxItem,
|
|
71
|
+
ee as DropdownMenuContent,
|
|
72
|
+
oe as DropdownMenuGroup,
|
|
73
|
+
re as DropdownMenuItem,
|
|
74
|
+
te as DropdownMenuLabel,
|
|
75
|
+
ae as DropdownMenuPortal,
|
|
76
|
+
ie as DropdownMenuRadioGroup,
|
|
77
|
+
ne as DropdownMenuRadioItem,
|
|
78
|
+
le as DropdownMenuSeparator,
|
|
79
|
+
pe as DropdownMenuShortcut,
|
|
80
|
+
de as DropdownMenuSub,
|
|
81
|
+
ge as DropdownMenuSubContent,
|
|
82
|
+
be as DropdownMenuSubTrigger,
|
|
83
|
+
Se as DropdownMenuTrigger,
|
|
84
|
+
De as Input,
|
|
85
|
+
Te as Label,
|
|
86
|
+
fe as Pagination,
|
|
87
|
+
Ce as PaginationContent,
|
|
88
|
+
Me as PaginationEllipsis,
|
|
89
|
+
Ae as PaginationItem,
|
|
90
|
+
se as PaginationLink,
|
|
91
|
+
Pe as PaginationNext,
|
|
92
|
+
ce as PaginationPrevious,
|
|
93
|
+
he as Popover,
|
|
94
|
+
ve as PopoverAnchor,
|
|
95
|
+
Ie as PopoverContent,
|
|
96
|
+
ke as PopoverTrigger,
|
|
97
|
+
Fe as Select,
|
|
98
|
+
Ge as Separator,
|
|
99
|
+
ye as Sheet,
|
|
100
|
+
Re as SheetBody,
|
|
101
|
+
Oe as SheetClose,
|
|
102
|
+
Ee as SheetContent,
|
|
103
|
+
Ne as SheetDescription,
|
|
104
|
+
Ve as SheetFooter,
|
|
105
|
+
je as SheetHeader,
|
|
106
|
+
qe as SheetTitle,
|
|
107
|
+
ze as SheetTrigger,
|
|
108
|
+
Ke as Sidebar,
|
|
109
|
+
Qe as SidebarContent,
|
|
110
|
+
Ue as SidebarFooter,
|
|
111
|
+
We as SidebarGroup,
|
|
112
|
+
Xe as SidebarGroupAction,
|
|
113
|
+
Ye as SidebarGroupContent,
|
|
114
|
+
Ze as SidebarGroupLabel,
|
|
115
|
+
_e as SidebarHeader,
|
|
116
|
+
$e as SidebarInput,
|
|
117
|
+
eo as SidebarInset,
|
|
118
|
+
oo as SidebarMenu,
|
|
119
|
+
ro as SidebarMenuAction,
|
|
120
|
+
to as SidebarMenuBadge,
|
|
121
|
+
ao as SidebarMenuButton,
|
|
122
|
+
io as SidebarMenuItem,
|
|
123
|
+
no as SidebarMenuSkeleton,
|
|
124
|
+
lo as SidebarMenuSub,
|
|
125
|
+
po as SidebarMenuSubButton,
|
|
126
|
+
go as SidebarMenuSubItem,
|
|
127
|
+
bo as SidebarProvider,
|
|
128
|
+
So as SidebarRail,
|
|
129
|
+
uo as SidebarSeparator,
|
|
130
|
+
Do as SidebarTrigger,
|
|
131
|
+
xo as SimplePagination,
|
|
132
|
+
Co as SimpleTooltip,
|
|
133
|
+
Ao as Skeleton,
|
|
134
|
+
Po as Switch,
|
|
135
|
+
vo as Table,
|
|
136
|
+
Io as TableBody,
|
|
137
|
+
ko as TableCaption,
|
|
138
|
+
Bo as TableCell,
|
|
139
|
+
Fo as TableFooter,
|
|
140
|
+
Ho as TableHead,
|
|
141
|
+
Go as TableHeader,
|
|
142
|
+
Lo as TableRow,
|
|
143
|
+
Ro as Tabs,
|
|
144
|
+
Oo as TabsContent,
|
|
145
|
+
Eo as TabsList,
|
|
146
|
+
No as TabsTrigger,
|
|
147
|
+
jo as Textarea,
|
|
148
|
+
wo as Toaster,
|
|
149
|
+
zo as Tooltip,
|
|
150
|
+
Jo as TooltipContent,
|
|
151
|
+
Ko as TooltipProvider,
|
|
152
|
+
Qo as TooltipTrigger,
|
|
153
|
+
A as buttonVariants,
|
|
154
|
+
mo as useSidebar
|
|
145
155
|
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var s = (e, o) => M(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { createContextScope as x } from "../../react-context/dist/index.js";
|
|
5
|
+
import { useComposedRefs as v } from "../../react-compose-refs/dist/index.js";
|
|
6
|
+
import { createDialogScope as f, Root as I, Portal as L, Overlay as $, Trigger as F, WarningProvider as G, Content as j, Title as W, Description as Y, Close as D } from "../../react-dialog/dist/index.js";
|
|
7
|
+
import { composeEventHandlers as q } from "../../primitive/dist/index.js";
|
|
8
|
+
import { createSlottable as B } from "../../react-slot/dist/index.js";
|
|
9
|
+
import { jsx as i, jsxs as H } from "react/jsx-runtime";
|
|
10
|
+
var m = "AlertDialog", [V, ne] = x(m, [
|
|
11
|
+
f
|
|
12
|
+
]), n = f(), y = /* @__PURE__ */ s((e) => {
|
|
13
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
14
|
+
return /* @__PURE__ */ i(I, { ...t, ...r, modal: !0 });
|
|
15
|
+
}, "AlertDialog");
|
|
16
|
+
y.displayName = m;
|
|
17
|
+
var k = "AlertDialogTrigger", _ = l.forwardRef(
|
|
18
|
+
(e, o) => {
|
|
19
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
20
|
+
return /* @__PURE__ */ i(F, { ...a, ...t, ref: o });
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
_.displayName = k;
|
|
24
|
+
var z = "AlertDialogPortal", N = /* @__PURE__ */ s((e) => {
|
|
25
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
26
|
+
return /* @__PURE__ */ i(L, { ...t, ...r });
|
|
27
|
+
}, "AlertDialogPortal");
|
|
28
|
+
N.displayName = z;
|
|
29
|
+
var J = "AlertDialogOverlay", R = l.forwardRef(
|
|
30
|
+
(e, o) => {
|
|
31
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
32
|
+
return /* @__PURE__ */ i($, { ...a, ...t, ref: o });
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
R.displayName = J;
|
|
36
|
+
var c = "AlertDialogContent", [K, Q] = V(c), U = B("AlertDialogContent"), C = l.forwardRef(
|
|
37
|
+
(e, o) => {
|
|
38
|
+
const { __scopeAlertDialog: r, children: t, ...a } = e, d = n(r), g = l.useRef(null), w = v(o, g), u = l.useRef(null);
|
|
39
|
+
return /* @__PURE__ */ i(
|
|
40
|
+
G,
|
|
41
|
+
{
|
|
42
|
+
contentName: c,
|
|
43
|
+
titleName: h,
|
|
44
|
+
docsSlug: "alert-dialog",
|
|
45
|
+
children: /* @__PURE__ */ i(K, { scope: r, cancelRef: u, children: /* @__PURE__ */ H(
|
|
46
|
+
j,
|
|
47
|
+
{
|
|
48
|
+
role: "alertdialog",
|
|
49
|
+
...d,
|
|
50
|
+
...a,
|
|
51
|
+
ref: w,
|
|
52
|
+
onOpenAutoFocus: q(a.onOpenAutoFocus, (p) => {
|
|
53
|
+
var A;
|
|
54
|
+
p.preventDefault(), (A = u.current) == null || A.focus({ preventScroll: !0 });
|
|
55
|
+
}),
|
|
56
|
+
onPointerDownOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onPointerDownOutside"),
|
|
57
|
+
onInteractOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onInteractOutside"),
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ i(U, { children: t }),
|
|
60
|
+
/* @__PURE__ */ i(Z, { contentRef: g })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
) })
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
C.displayName = c;
|
|
69
|
+
var h = "AlertDialogTitle", E = l.forwardRef(
|
|
70
|
+
(e, o) => {
|
|
71
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
72
|
+
return /* @__PURE__ */ i(W, { ...a, ...t, ref: o });
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
E.displayName = h;
|
|
76
|
+
var S = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
77
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
78
|
+
return /* @__PURE__ */ i(Y, { ...a, ...t, ref: o });
|
|
79
|
+
});
|
|
80
|
+
P.displayName = S;
|
|
81
|
+
var X = "AlertDialogAction", T = l.forwardRef(
|
|
82
|
+
(e, o) => {
|
|
83
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
84
|
+
return /* @__PURE__ */ i(D, { ...a, ...t, ref: o });
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
T.displayName = X;
|
|
88
|
+
var O = "AlertDialogCancel", b = l.forwardRef(
|
|
89
|
+
(e, o) => {
|
|
90
|
+
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = Q(O, r), d = n(r), g = v(o, a);
|
|
91
|
+
return /* @__PURE__ */ i(D, { ...d, ...t, ref: g });
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
b.displayName = O;
|
|
95
|
+
var Z = /* @__PURE__ */ s(({ contentRef: e }) => {
|
|
96
|
+
const o = `\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
97
|
+
|
|
98
|
+
You can add a description to the \`${c}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
99
|
+
|
|
100
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
101
|
+
|
|
102
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
103
|
+
return l.useEffect(() => {
|
|
104
|
+
var t;
|
|
105
|
+
document.getElementById(
|
|
106
|
+
(t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
|
|
107
|
+
) || console.warn(o);
|
|
108
|
+
}, [o, e]), null;
|
|
109
|
+
}, "DescriptionWarning"), se = y, ce = _, pe = N, ge = R, de = C, ue = T, Ae = b, ve = E, fe = P;
|
|
110
|
+
export {
|
|
111
|
+
ue as Action,
|
|
112
|
+
y as AlertDialog,
|
|
113
|
+
T as AlertDialogAction,
|
|
114
|
+
b as AlertDialogCancel,
|
|
115
|
+
C as AlertDialogContent,
|
|
116
|
+
P as AlertDialogDescription,
|
|
117
|
+
R as AlertDialogOverlay,
|
|
118
|
+
N as AlertDialogPortal,
|
|
119
|
+
E as AlertDialogTitle,
|
|
120
|
+
_ as AlertDialogTrigger,
|
|
121
|
+
Ae as Cancel,
|
|
122
|
+
de as Content,
|
|
123
|
+
fe as Description,
|
|
124
|
+
ge as Overlay,
|
|
125
|
+
pe as Portal,
|
|
126
|
+
se as Root,
|
|
127
|
+
ve as Title,
|
|
128
|
+
ce as Trigger,
|
|
129
|
+
ne as createAlertDialogScope
|
|
130
|
+
};
|