@arch-cadre/ui 0.0.33 → 0.0.34
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/build.config.ts +7 -7
- package/package.json +3 -3
- package/dist/components/accordion.cjs +0 -62
- package/dist/components/alert-dialog.cjs +0 -127
- package/dist/components/alert.cjs +0 -58
- package/dist/components/aspect-ratio.cjs +0 -19
- package/dist/components/avatar.cjs +0 -44
- package/dist/components/badge.cjs +0 -41
- package/dist/components/breadcrumb.cjs +0 -106
- package/dist/components/button-group.cjs +0 -65
- package/dist/components/button.cjs +0 -57
- package/dist/components/calendar.cjs +0 -143
- package/dist/components/card.cjs +0 -86
- package/dist/components/checkbox.cjs +0 -28
- package/dist/components/collapsible.cjs +0 -37
- package/dist/components/command.cjs +0 -125
- package/dist/components/context-menu.cjs +0 -188
- package/dist/components/dialog.cjs +0 -123
- package/dist/components/drawer.cjs +0 -118
- package/dist/components/dropdown-menu.cjs +0 -190
- package/dist/components/empty.cjs +0 -92
- package/dist/components/field.cjs +0 -173
- package/dist/components/form.cjs +0 -143
- package/dist/components/hover-card.cjs +0 -46
- package/dist/components/input-group.cjs +0 -130
- package/dist/components/input-otp.cjs +0 -69
- package/dist/components/input.cjs +0 -22
- package/dist/components/item.cjs +0 -168
- package/dist/components/kbd.cjs +0 -31
- package/dist/components/label.cjs +0 -22
- package/dist/components/language-switcher.cjs +0 -43
- package/dist/components/menubar.cjs +0 -207
- package/dist/components/navigation-menu.cjs +0 -113
- package/dist/components/pagination.cjs +0 -106
- package/dist/components/popover.cjs +0 -53
- package/dist/components/progress.cjs +0 -29
- package/dist/components/radio-group.cjs +0 -39
- package/dist/components/scroll-area.cjs +0 -45
- package/dist/components/select.cjs +0 -140
- package/dist/components/separator.cjs +0 -26
- package/dist/components/sheet.cjs +0 -120
- package/dist/components/sidebar.cjs +0 -508
- package/dist/components/skeleton.cjs +0 -20
- package/dist/components/slider.cjs +0 -43
- package/dist/components/sonner.cjs +0 -49
- package/dist/components/spinner.cjs +0 -22
- package/dist/components/switch.cjs +0 -25
- package/dist/components/table.cjs +0 -101
- package/dist/components/tabs.cjs +0 -55
- package/dist/components/textarea.cjs +0 -20
- package/dist/components/toggle-group.cjs +0 -65
- package/dist/components/toggle.cjs +0 -47
- package/dist/components/tooltip.cjs +0 -56
- package/dist/hooks/use-mobile.cjs +0 -23
- package/dist/hooks/use-user.cjs +0 -21
- package/dist/index.cjs +0 -179
- package/dist/lib/utils.cjs +0 -11
- package/dist/logo.cjs +0 -49
- package/dist/postcss.config.cjs +0 -13
- package/dist/providers/auth-provider.cjs +0 -44
- package/dist/providers/index.cjs +0 -47
- package/dist/shared/access-denied.cjs +0 -38
- package/dist/shared/loader.cjs +0 -95
- package/dist/shared/page-loader.cjs +0 -23
- package/dist/shared/scroll-fade-effect.cjs +0 -21
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Dialog = Dialog;
|
|
8
|
-
exports.DialogClose = DialogClose;
|
|
9
|
-
exports.DialogContent = DialogContent;
|
|
10
|
-
exports.DialogDescription = DialogDescription;
|
|
11
|
-
exports.DialogFooter = DialogFooter;
|
|
12
|
-
exports.DialogHeader = DialogHeader;
|
|
13
|
-
exports.DialogOverlay = DialogOverlay;
|
|
14
|
-
exports.DialogPortal = DialogPortal;
|
|
15
|
-
exports.DialogTitle = DialogTitle;
|
|
16
|
-
exports.DialogTrigger = DialogTrigger;
|
|
17
|
-
var _lucideReact = require("lucide-react");
|
|
18
|
-
var _radixUi = require("radix-ui");
|
|
19
|
-
var React = _interopRequireWildcard(require("react"));
|
|
20
|
-
var _utils = require("../lib/utils.cjs");
|
|
21
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
function Dialog({
|
|
24
|
-
...props
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Root, {
|
|
27
|
-
"data-slot": "dialog",
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function DialogTrigger({
|
|
32
|
-
...props
|
|
33
|
-
}) {
|
|
34
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Trigger, {
|
|
35
|
-
"data-slot": "dialog-trigger",
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function DialogPortal({
|
|
40
|
-
...props
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Portal, {
|
|
43
|
-
"data-slot": "dialog-portal",
|
|
44
|
-
...props
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function DialogClose({
|
|
48
|
-
...props
|
|
49
|
-
}) {
|
|
50
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Close, {
|
|
51
|
-
"data-slot": "dialog-close",
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function DialogOverlay({
|
|
56
|
-
className,
|
|
57
|
-
...props
|
|
58
|
-
}) {
|
|
59
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Overlay, {
|
|
60
|
-
"data-slot": "dialog-overlay",
|
|
61
|
-
className: (0, _utils.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", className),
|
|
62
|
-
...props
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function DialogContent({
|
|
66
|
-
className,
|
|
67
|
-
children,
|
|
68
|
-
showCloseButton = true,
|
|
69
|
-
...props
|
|
70
|
-
}) {
|
|
71
|
-
return /* @__PURE__ */React.createElement(DialogPortal, {
|
|
72
|
-
"data-slot": "dialog-portal"
|
|
73
|
-
}, /* @__PURE__ */React.createElement(DialogOverlay, null), /* @__PURE__ */React.createElement(_radixUi.Dialog.Content, {
|
|
74
|
-
"data-slot": "dialog-content",
|
|
75
|
-
className: (0, _utils.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-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg", className),
|
|
76
|
-
...props
|
|
77
|
-
}, children, showCloseButton && /* @__PURE__ */React.createElement(_radixUi.Dialog.Close, {
|
|
78
|
-
"data-slot": "dialog-close",
|
|
79
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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"
|
|
80
|
-
}, /* @__PURE__ */React.createElement(_lucideReact.XIcon, null), /* @__PURE__ */React.createElement("span", {
|
|
81
|
-
className: "sr-only"
|
|
82
|
-
}, "Close"))));
|
|
83
|
-
}
|
|
84
|
-
function DialogHeader({
|
|
85
|
-
className,
|
|
86
|
-
...props
|
|
87
|
-
}) {
|
|
88
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
89
|
-
"data-slot": "dialog-header",
|
|
90
|
-
className: (0, _utils.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
91
|
-
...props
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function DialogFooter({
|
|
95
|
-
className,
|
|
96
|
-
...props
|
|
97
|
-
}) {
|
|
98
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
99
|
-
"data-slot": "dialog-footer",
|
|
100
|
-
className: (0, _utils.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
101
|
-
...props
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function DialogTitle({
|
|
105
|
-
className,
|
|
106
|
-
...props
|
|
107
|
-
}) {
|
|
108
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Title, {
|
|
109
|
-
"data-slot": "dialog-title",
|
|
110
|
-
className: (0, _utils.cn)("text-lg leading-none font-semibold", className),
|
|
111
|
-
...props
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function DialogDescription({
|
|
115
|
-
className,
|
|
116
|
-
...props
|
|
117
|
-
}) {
|
|
118
|
-
return /* @__PURE__ */React.createElement(_radixUi.Dialog.Description, {
|
|
119
|
-
"data-slot": "dialog-description",
|
|
120
|
-
className: (0, _utils.cn)("text-muted-foreground text-sm", className),
|
|
121
|
-
...props
|
|
122
|
-
});
|
|
123
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Drawer = Drawer;
|
|
8
|
-
exports.DrawerClose = DrawerClose;
|
|
9
|
-
exports.DrawerContent = DrawerContent;
|
|
10
|
-
exports.DrawerDescription = DrawerDescription;
|
|
11
|
-
exports.DrawerFooter = DrawerFooter;
|
|
12
|
-
exports.DrawerHeader = DrawerHeader;
|
|
13
|
-
exports.DrawerOverlay = DrawerOverlay;
|
|
14
|
-
exports.DrawerPortal = DrawerPortal;
|
|
15
|
-
exports.DrawerTitle = DrawerTitle;
|
|
16
|
-
exports.DrawerTrigger = DrawerTrigger;
|
|
17
|
-
var React = _interopRequireWildcard(require("react"));
|
|
18
|
-
var _vaul = require("vaul");
|
|
19
|
-
var _utils = require("../lib/utils.cjs");
|
|
20
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
function Drawer({
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Root, {
|
|
26
|
-
"data-slot": "drawer",
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function DrawerTrigger({
|
|
31
|
-
...props
|
|
32
|
-
}) {
|
|
33
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Trigger, {
|
|
34
|
-
"data-slot": "drawer-trigger",
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function DrawerPortal({
|
|
39
|
-
...props
|
|
40
|
-
}) {
|
|
41
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Portal, {
|
|
42
|
-
"data-slot": "drawer-portal",
|
|
43
|
-
...props
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function DrawerClose({
|
|
47
|
-
...props
|
|
48
|
-
}) {
|
|
49
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Close, {
|
|
50
|
-
"data-slot": "drawer-close",
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function DrawerOverlay({
|
|
55
|
-
className,
|
|
56
|
-
...props
|
|
57
|
-
}) {
|
|
58
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Overlay, {
|
|
59
|
-
"data-slot": "drawer-overlay",
|
|
60
|
-
className: (0, _utils.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", className),
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function DrawerContent({
|
|
65
|
-
className,
|
|
66
|
-
children,
|
|
67
|
-
...props
|
|
68
|
-
}) {
|
|
69
|
-
return /* @__PURE__ */React.createElement(DrawerPortal, {
|
|
70
|
-
"data-slot": "drawer-portal"
|
|
71
|
-
}, /* @__PURE__ */React.createElement(DrawerOverlay, null), /* @__PURE__ */React.createElement(_vaul.Drawer.Content, {
|
|
72
|
-
"data-slot": "drawer-content",
|
|
73
|
-
className: (0, _utils.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", className),
|
|
74
|
-
...props
|
|
75
|
-
}, /* @__PURE__ */React.createElement("div", {
|
|
76
|
-
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"
|
|
77
|
-
}), children));
|
|
78
|
-
}
|
|
79
|
-
function DrawerHeader({
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}) {
|
|
83
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
84
|
-
"data-slot": "drawer-header",
|
|
85
|
-
className: (0, _utils.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", className),
|
|
86
|
-
...props
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function DrawerFooter({
|
|
90
|
-
className,
|
|
91
|
-
...props
|
|
92
|
-
}) {
|
|
93
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
94
|
-
"data-slot": "drawer-footer",
|
|
95
|
-
className: (0, _utils.cn)("mt-auto flex flex-col gap-2 p-4", className),
|
|
96
|
-
...props
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
function DrawerTitle({
|
|
100
|
-
className,
|
|
101
|
-
...props
|
|
102
|
-
}) {
|
|
103
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Title, {
|
|
104
|
-
"data-slot": "drawer-title",
|
|
105
|
-
className: (0, _utils.cn)("text-foreground font-semibold", className),
|
|
106
|
-
...props
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function DrawerDescription({
|
|
110
|
-
className,
|
|
111
|
-
...props
|
|
112
|
-
}) {
|
|
113
|
-
return /* @__PURE__ */React.createElement(_vaul.Drawer.Description, {
|
|
114
|
-
"data-slot": "drawer-description",
|
|
115
|
-
className: (0, _utils.cn)("text-muted-foreground text-sm", className),
|
|
116
|
-
...props
|
|
117
|
-
});
|
|
118
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DropdownMenu = DropdownMenu;
|
|
8
|
-
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
9
|
-
exports.DropdownMenuContent = DropdownMenuContent;
|
|
10
|
-
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
11
|
-
exports.DropdownMenuItem = DropdownMenuItem;
|
|
12
|
-
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
13
|
-
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
14
|
-
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
15
|
-
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
16
|
-
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
17
|
-
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
18
|
-
exports.DropdownMenuSub = DropdownMenuSub;
|
|
19
|
-
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
20
|
-
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
21
|
-
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
22
|
-
var _lucideReact = require("lucide-react");
|
|
23
|
-
var _radixUi = require("radix-ui");
|
|
24
|
-
var React = _interopRequireWildcard(require("react"));
|
|
25
|
-
var _utils = require("../lib/utils.cjs");
|
|
26
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
-
function DropdownMenu({
|
|
29
|
-
...props
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Root, {
|
|
32
|
-
"data-slot": "dropdown-menu",
|
|
33
|
-
...props
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function DropdownMenuPortal({
|
|
37
|
-
...props
|
|
38
|
-
}) {
|
|
39
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Portal, {
|
|
40
|
-
"data-slot": "dropdown-menu-portal",
|
|
41
|
-
...props
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function DropdownMenuTrigger({
|
|
45
|
-
...props
|
|
46
|
-
}) {
|
|
47
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Trigger, {
|
|
48
|
-
"data-slot": "dropdown-menu-trigger",
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function DropdownMenuContent({
|
|
53
|
-
className,
|
|
54
|
-
sideOffset = 4,
|
|
55
|
-
...props
|
|
56
|
-
}) {
|
|
57
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Portal, null, /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Content, {
|
|
58
|
-
"data-slot": "dropdown-menu-content",
|
|
59
|
-
sideOffset,
|
|
60
|
-
className: (0, _utils.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-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className),
|
|
61
|
-
...props
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
function DropdownMenuGroup({
|
|
65
|
-
...props
|
|
66
|
-
}) {
|
|
67
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Group, {
|
|
68
|
-
"data-slot": "dropdown-menu-group",
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function DropdownMenuItem({
|
|
73
|
-
className,
|
|
74
|
-
inset,
|
|
75
|
-
variant = "default",
|
|
76
|
-
...props
|
|
77
|
-
}) {
|
|
78
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Item, {
|
|
79
|
-
"data-slot": "dropdown-menu-item",
|
|
80
|
-
"data-inset": inset,
|
|
81
|
-
"data-variant": variant,
|
|
82
|
-
className: (0, _utils.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", className),
|
|
83
|
-
...props
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function DropdownMenuCheckboxItem({
|
|
87
|
-
className,
|
|
88
|
-
children,
|
|
89
|
-
checked,
|
|
90
|
-
...props
|
|
91
|
-
}) {
|
|
92
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.CheckboxItem, {
|
|
93
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
94
|
-
className: (0, _utils.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", className),
|
|
95
|
-
checked,
|
|
96
|
-
...props
|
|
97
|
-
}, /* @__PURE__ */React.createElement("span", {
|
|
98
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
|
|
99
|
-
}, /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.ItemIndicator, null, /* @__PURE__ */React.createElement(_lucideReact.CheckIcon, {
|
|
100
|
-
className: "size-4"
|
|
101
|
-
}))), children);
|
|
102
|
-
}
|
|
103
|
-
function DropdownMenuRadioGroup({
|
|
104
|
-
...props
|
|
105
|
-
}) {
|
|
106
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.RadioGroup, {
|
|
107
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function DropdownMenuRadioItem({
|
|
112
|
-
className,
|
|
113
|
-
children,
|
|
114
|
-
...props
|
|
115
|
-
}) {
|
|
116
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.RadioItem, {
|
|
117
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
118
|
-
className: (0, _utils.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", className),
|
|
119
|
-
...props
|
|
120
|
-
}, /* @__PURE__ */React.createElement("span", {
|
|
121
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
|
|
122
|
-
}, /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.ItemIndicator, null, /* @__PURE__ */React.createElement(_lucideReact.CircleIcon, {
|
|
123
|
-
className: "size-2 fill-current"
|
|
124
|
-
}))), children);
|
|
125
|
-
}
|
|
126
|
-
function DropdownMenuLabel({
|
|
127
|
-
className,
|
|
128
|
-
inset,
|
|
129
|
-
...props
|
|
130
|
-
}) {
|
|
131
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Label, {
|
|
132
|
-
"data-slot": "dropdown-menu-label",
|
|
133
|
-
"data-inset": inset,
|
|
134
|
-
className: (0, _utils.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
|
|
135
|
-
...props
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
function DropdownMenuSeparator({
|
|
139
|
-
className,
|
|
140
|
-
...props
|
|
141
|
-
}) {
|
|
142
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Separator, {
|
|
143
|
-
"data-slot": "dropdown-menu-separator",
|
|
144
|
-
className: (0, _utils.cn)("bg-border -mx-1 my-1 h-px", className),
|
|
145
|
-
...props
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function DropdownMenuShortcut({
|
|
149
|
-
className,
|
|
150
|
-
...props
|
|
151
|
-
}) {
|
|
152
|
-
return /* @__PURE__ */React.createElement("span", {
|
|
153
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
154
|
-
className: (0, _utils.cn)("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
155
|
-
...props
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
function DropdownMenuSub({
|
|
159
|
-
...props
|
|
160
|
-
}) {
|
|
161
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.Sub, {
|
|
162
|
-
"data-slot": "dropdown-menu-sub",
|
|
163
|
-
...props
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function DropdownMenuSubTrigger({
|
|
167
|
-
className,
|
|
168
|
-
inset,
|
|
169
|
-
children,
|
|
170
|
-
...props
|
|
171
|
-
}) {
|
|
172
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.SubTrigger, {
|
|
173
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
174
|
-
"data-inset": inset,
|
|
175
|
-
className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 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", className),
|
|
176
|
-
...props
|
|
177
|
-
}, children, /* @__PURE__ */React.createElement(_lucideReact.ChevronRightIcon, {
|
|
178
|
-
className: "ml-auto size-4"
|
|
179
|
-
}));
|
|
180
|
-
}
|
|
181
|
-
function DropdownMenuSubContent({
|
|
182
|
-
className,
|
|
183
|
-
...props
|
|
184
|
-
}) {
|
|
185
|
-
return /* @__PURE__ */React.createElement(_radixUi.DropdownMenu.SubContent, {
|
|
186
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
187
|
-
className: (0, _utils.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-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
|
|
188
|
-
...props
|
|
189
|
-
});
|
|
190
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Empty = Empty;
|
|
7
|
-
exports.EmptyContent = EmptyContent;
|
|
8
|
-
exports.EmptyDescription = EmptyDescription;
|
|
9
|
-
exports.EmptyHeader = EmptyHeader;
|
|
10
|
-
exports.EmptyMedia = EmptyMedia;
|
|
11
|
-
exports.EmptyTitle = EmptyTitle;
|
|
12
|
-
var _classVarianceAuthority = require("class-variance-authority");
|
|
13
|
-
var React = _interopRequireWildcard(require("react"));
|
|
14
|
-
var _utils = require("../lib/utils.cjs");
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
function Empty({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
22
|
-
"data-slot": "empty",
|
|
23
|
-
className: (0, _utils.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", className),
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function EmptyHeader({
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
32
|
-
"data-slot": "empty-header",
|
|
33
|
-
className: (0, _utils.cn)("flex max-w-sm flex-col items-center gap-2 text-center", className),
|
|
34
|
-
...props
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
const emptyMediaVariants = (0, _classVarianceAuthority.cva)("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
38
|
-
variants: {
|
|
39
|
-
variant: {
|
|
40
|
-
default: "bg-transparent",
|
|
41
|
-
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
variant: "default"
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
function EmptyMedia({
|
|
49
|
-
className,
|
|
50
|
-
variant = "default",
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
54
|
-
"data-slot": "empty-icon",
|
|
55
|
-
"data-variant": variant,
|
|
56
|
-
className: (0, _utils.cn)(emptyMediaVariants({
|
|
57
|
-
variant,
|
|
58
|
-
className
|
|
59
|
-
})),
|
|
60
|
-
...props
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function EmptyTitle({
|
|
64
|
-
className,
|
|
65
|
-
...props
|
|
66
|
-
}) {
|
|
67
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
68
|
-
"data-slot": "empty-title",
|
|
69
|
-
className: (0, _utils.cn)("text-lg font-medium tracking-tight", className),
|
|
70
|
-
...props
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function EmptyDescription({
|
|
74
|
-
className,
|
|
75
|
-
...props
|
|
76
|
-
}) {
|
|
77
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
78
|
-
"data-slot": "empty-description",
|
|
79
|
-
className: (0, _utils.cn)("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", className),
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function EmptyContent({
|
|
84
|
-
className,
|
|
85
|
-
...props
|
|
86
|
-
}) {
|
|
87
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
88
|
-
"data-slot": "empty-content",
|
|
89
|
-
className: (0, _utils.cn)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
|
|
90
|
-
...props
|
|
91
|
-
});
|
|
92
|
-
}
|