@codefast/ui 0.2.46-canary.3 → 0.2.46-canary.4
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/CHANGELOG.md +13 -0
- package/dist/cjs/components/accordion.cjs +2 -97
- package/dist/cjs/components/accordion.cjs.map +1 -0
- package/dist/cjs/components/alert-dialog.cjs +2 -155
- package/dist/cjs/components/alert-dialog.cjs.map +1 -0
- package/dist/cjs/components/alert.cjs +2 -81
- package/dist/cjs/components/alert.cjs.map +1 -0
- package/dist/cjs/components/aspect-ratio.cjs +2 -43
- package/dist/cjs/components/aspect-ratio.cjs.map +1 -0
- package/dist/cjs/components/avatar.cjs +2 -65
- package/dist/cjs/components/avatar.cjs.map +1 -0
- package/dist/cjs/components/badge.cjs +2 -66
- package/dist/cjs/components/badge.cjs.map +1 -0
- package/dist/cjs/components/blockquote.cjs +2 -44
- package/dist/cjs/components/blockquote.cjs.map +1 -0
- package/dist/cjs/components/box.cjs +2 -44
- package/dist/cjs/components/box.cjs.map +1 -0
- package/dist/cjs/components/breadcrumb.cjs +2 -125
- package/dist/cjs/components/breadcrumb.cjs.map +1 -0
- package/dist/cjs/components/button.cjs +2 -83
- package/dist/cjs/components/button.cjs.map +1 -0
- package/dist/cjs/components/calendar.cjs +2 -165
- package/dist/cjs/components/calendar.cjs.map +1 -0
- package/dist/cjs/components/card.cjs +2 -105
- package/dist/cjs/components/card.cjs.map +1 -0
- package/dist/cjs/components/carousel.cjs +2 -206
- package/dist/cjs/components/carousel.cjs.map +1 -0
- package/dist/cjs/components/chart.cjs +2 -242
- package/dist/cjs/components/chart.cjs.map +1 -0
- package/dist/cjs/components/checkbox-cards.cjs +2 -69
- package/dist/cjs/components/checkbox-cards.cjs.map +1 -0
- package/dist/cjs/components/checkbox-group.cjs +2 -63
- package/dist/cjs/components/checkbox-group.cjs.map +1 -0
- package/dist/cjs/components/checkbox.cjs +2 -53
- package/dist/cjs/components/checkbox.cjs.map +1 -0
- package/dist/cjs/components/code.cjs +2 -44
- package/dist/cjs/components/code.cjs.map +1 -0
- package/dist/cjs/components/collapsible.cjs +2 -61
- package/dist/cjs/components/collapsible.cjs.map +1 -0
- package/dist/cjs/components/command.cjs +2 -167
- package/dist/cjs/components/command.cjs.map +1 -0
- package/dist/cjs/components/container.cjs +2 -46
- package/dist/cjs/components/container.cjs.map +1 -0
- package/dist/cjs/components/context-menu.cjs +2 -218
- package/dist/cjs/components/context-menu.cjs.map +1 -0
- package/dist/cjs/components/dialog.cjs +2 -164
- package/dist/cjs/components/dialog.cjs.map +1 -0
- package/dist/cjs/components/drawer.cjs +2 -143
- package/dist/cjs/components/drawer.cjs.map +1 -0
- package/dist/cjs/components/dropdown-menu.cjs +2 -219
- package/dist/cjs/components/dropdown-menu.cjs.map +1 -0
- package/dist/cjs/components/em.cjs +2 -44
- package/dist/cjs/components/em.cjs.map +1 -0
- package/dist/cjs/components/form.cjs +2 -151
- package/dist/cjs/components/form.cjs.map +1 -0
- package/dist/cjs/components/heading.cjs +2 -44
- package/dist/cjs/components/heading.cjs.map +1 -0
- package/dist/cjs/components/hover-card.cjs +2 -77
- package/dist/cjs/components/hover-card.cjs.map +1 -0
- package/dist/cjs/components/inline.cjs +2 -44
- package/dist/cjs/components/inline.cjs.map +1 -0
- package/dist/cjs/components/input-date.cjs +1 -18
- package/dist/cjs/components/input-number.cjs +2 -109
- package/dist/cjs/components/input-number.cjs.map +1 -0
- package/dist/cjs/components/input-otp.cjs +2 -102
- package/dist/cjs/components/input-otp.cjs.map +1 -0
- package/dist/cjs/components/input-password.cjs +2 -88
- package/dist/cjs/components/input-password.cjs.map +1 -0
- package/dist/cjs/components/input-search.cjs +2 -94
- package/dist/cjs/components/input-search.cjs.map +1 -0
- package/dist/cjs/components/input-time.cjs +1 -18
- package/dist/cjs/components/input.cjs +2 -73
- package/dist/cjs/components/input.cjs.map +1 -0
- package/dist/cjs/components/kbd.cjs +2 -46
- package/dist/cjs/components/kbd.cjs.map +1 -0
- package/dist/cjs/components/label.cjs +2 -45
- package/dist/cjs/components/label.cjs.map +1 -0
- package/dist/cjs/components/menubar.cjs +2 -232
- package/dist/cjs/components/menubar.cjs.map +1 -0
- package/dist/cjs/components/navigation-menu.cjs +2 -146
- package/dist/cjs/components/navigation-menu.cjs.map +1 -0
- package/dist/cjs/components/pagination.cjs +2 -139
- package/dist/cjs/components/pagination.cjs.map +1 -0
- package/dist/cjs/components/popover.cjs +2 -86
- package/dist/cjs/components/popover.cjs.map +1 -0
- package/dist/cjs/components/pre.cjs +2 -44
- package/dist/cjs/components/pre.cjs.map +1 -0
- package/dist/cjs/components/progress-circle.cjs +2 -181
- package/dist/cjs/components/progress-circle.cjs.map +1 -0
- package/dist/cjs/components/progress.cjs +2 -52
- package/dist/cjs/components/progress.cjs.map +1 -0
- package/dist/cjs/components/quote.cjs +2 -44
- package/dist/cjs/components/quote.cjs.map +1 -0
- package/dist/cjs/components/radio-cards.cjs +2 -66
- package/dist/cjs/components/radio-cards.cjs.map +1 -0
- package/dist/cjs/components/radio-group.cjs +2 -59
- package/dist/cjs/components/radio-group.cjs.map +1 -0
- package/dist/cjs/components/radio.cjs +2 -47
- package/dist/cjs/components/radio.cjs.map +1 -0
- package/dist/cjs/components/resizable.cjs +2 -71
- package/dist/cjs/components/resizable.cjs.map +1 -0
- package/dist/cjs/components/scroll-area.cjs +2 -137
- package/dist/cjs/components/scroll-area.cjs.map +1 -0
- package/dist/cjs/components/section.cjs +2 -44
- package/dist/cjs/components/section.cjs.map +1 -0
- package/dist/cjs/components/select.cjs +2 -180
- package/dist/cjs/components/select.cjs.map +1 -0
- package/dist/cjs/components/separator.cjs +2 -79
- package/dist/cjs/components/separator.cjs.map +1 -0
- package/dist/cjs/components/sheet.cjs +2 -181
- package/dist/cjs/components/sheet.cjs.map +1 -0
- package/dist/cjs/components/sidebar.cjs +2 -504
- package/dist/cjs/components/sidebar.cjs.map +1 -0
- package/dist/cjs/components/skeleton.cjs +2 -44
- package/dist/cjs/components/skeleton.cjs.map +1 -0
- package/dist/cjs/components/slider.cjs +2 -79
- package/dist/cjs/components/slider.cjs.map +1 -0
- package/dist/cjs/components/sonner.cjs +2 -57
- package/dist/cjs/components/sonner.cjs.map +1 -0
- package/dist/cjs/components/spinner.cjs +2 -75
- package/dist/cjs/components/spinner.cjs.map +1 -0
- package/dist/cjs/components/strong.cjs +2 -44
- package/dist/cjs/components/strong.cjs.map +1 -0
- package/dist/cjs/components/switch.cjs +2 -49
- package/dist/cjs/components/switch.cjs.map +1 -0
- package/dist/cjs/components/table.cjs +2 -118
- package/dist/cjs/components/table.cjs.map +1 -0
- package/dist/cjs/components/tabs.cjs +2 -74
- package/dist/cjs/components/tabs.cjs.map +1 -0
- package/dist/cjs/components/text.cjs +2 -44
- package/dist/cjs/components/text.cjs.map +1 -0
- package/dist/cjs/components/textarea.cjs +2 -44
- package/dist/cjs/components/textarea.cjs.map +1 -0
- package/dist/cjs/components/toggle-group.cjs +2 -90
- package/dist/cjs/components/toggle-group.cjs.map +1 -0
- package/dist/cjs/components/toggle.cjs +2 -75
- package/dist/cjs/components/toggle.cjs.map +1 -0
- package/dist/cjs/components/tooltip.cjs +2 -87
- package/dist/cjs/components/tooltip.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -681
- package/dist/cjs/lib/logger.cjs +2 -128
- package/dist/cjs/lib/logger.cjs.map +1 -0
- package/dist/cjs/lib/utils.cjs +2 -44
- package/dist/cjs/lib/utils.cjs.map +1 -0
- package/dist/esm/components/accordion.js +2 -51
- package/dist/esm/components/accordion.js.map +1 -0
- package/dist/esm/components/alert-dialog.js +2 -94
- package/dist/esm/components/alert-dialog.js.map +1 -0
- package/dist/esm/components/alert.js +2 -41
- package/dist/esm/components/alert.js.map +1 -0
- package/dist/esm/components/aspect-ratio.js +2 -9
- package/dist/esm/components/aspect-ratio.js.map +1 -0
- package/dist/esm/components/avatar.js +2 -25
- package/dist/esm/components/avatar.js.map +1 -0
- package/dist/esm/components/badge.js +2 -29
- package/dist/esm/components/badge.js.map +1 -0
- package/dist/esm/components/blockquote.js +2 -10
- package/dist/esm/components/blockquote.js.map +1 -0
- package/dist/esm/components/box.js +2 -10
- package/dist/esm/components/box.js.map +1 -0
- package/dist/esm/components/breadcrumb.js +2 -73
- package/dist/esm/components/breadcrumb.js.map +1 -0
- package/dist/esm/components/button.js +2 -46
- package/dist/esm/components/button.js.map +1 -0
- package/dist/esm/components/calendar.js +2 -125
- package/dist/esm/components/calendar.js.map +1 -0
- package/dist/esm/components/card.js +2 -53
- package/dist/esm/components/card.js.map +1 -0
- package/dist/esm/components/carousel.js +2 -147
- package/dist/esm/components/carousel.js.map +1 -0
- package/dist/esm/components/chart.js +2 -190
- package/dist/esm/components/chart.js.map +1 -0
- package/dist/esm/components/checkbox-cards.js +2 -32
- package/dist/esm/components/checkbox-cards.js.map +1 -0
- package/dist/esm/components/checkbox-group.js +2 -26
- package/dist/esm/components/checkbox-group.js.map +1 -0
- package/dist/esm/components/checkbox.js +2 -19
- package/dist/esm/components/checkbox.js.map +1 -0
- package/dist/esm/components/code.js +2 -10
- package/dist/esm/components/code.js.map +1 -0
- package/dist/esm/components/collapsible.js +2 -21
- package/dist/esm/components/collapsible.js.map +1 -0
- package/dist/esm/components/command.js +2 -106
- package/dist/esm/components/command.js.map +1 -0
- package/dist/esm/components/container.js +2 -12
- package/dist/esm/components/container.js.map +1 -0
- package/dist/esm/components/context-menu.js +2 -142
- package/dist/esm/components/context-menu.js.map +1 -0
- package/dist/esm/components/dialog.js +2 -106
- package/dist/esm/components/dialog.js.map +1 -0
- package/dist/esm/components/drawer.js +2 -85
- package/dist/esm/components/drawer.js.map +1 -0
- package/dist/esm/components/dropdown-menu.js +2 -143
- package/dist/esm/components/dropdown-menu.js.map +1 -0
- package/dist/esm/components/em.js +2 -10
- package/dist/esm/components/em.js.map +1 -0
- package/dist/esm/components/form.js +2 -96
- package/dist/esm/components/form.js.map +1 -0
- package/dist/esm/components/heading.js +2 -10
- package/dist/esm/components/heading.js.map +1 -0
- package/dist/esm/components/hover-card.js +2 -34
- package/dist/esm/components/hover-card.js.map +1 -0
- package/dist/esm/components/inline.js +2 -10
- package/dist/esm/components/inline.js.map +1 -0
- package/dist/esm/components/input-number.js +2 -72
- package/dist/esm/components/input-number.js.map +1 -0
- package/dist/esm/components/input-otp.js +2 -53
- package/dist/esm/components/input-otp.js.map +1 -0
- package/dist/esm/components/input-password.js +2 -51
- package/dist/esm/components/input-password.js.map +1 -0
- package/dist/esm/components/input-search.js +2 -57
- package/dist/esm/components/input-search.js.map +1 -0
- package/dist/esm/components/input.js +2 -33
- package/dist/esm/components/input.js.map +1 -0
- package/dist/esm/components/kbd.js +2 -12
- package/dist/esm/components/kbd.js.map +1 -0
- package/dist/esm/components/label.js +2 -11
- package/dist/esm/components/label.js.map +1 -0
- package/dist/esm/components/menubar.js +2 -153
- package/dist/esm/components/menubar.js.map +1 -0
- package/dist/esm/components/navigation-menu.js +2 -94
- package/dist/esm/components/navigation-menu.js.map +1 -0
- package/dist/esm/components/pagination.js +2 -87
- package/dist/esm/components/pagination.js.map +1 -0
- package/dist/esm/components/popover.js +2 -40
- package/dist/esm/components/popover.js.map +1 -0
- package/dist/esm/components/pre.js +2 -10
- package/dist/esm/components/pre.js.map +1 -0
- package/dist/esm/components/progress-circle.js +2 -147
- package/dist/esm/components/progress-circle.js.map +1 -0
- package/dist/esm/components/progress.js +2 -18
- package/dist/esm/components/progress.js.map +1 -0
- package/dist/esm/components/quote.js +2 -10
- package/dist/esm/components/quote.js.map +1 -0
- package/dist/esm/components/radio-cards.js +2 -29
- package/dist/esm/components/radio-cards.js.map +1 -0
- package/dist/esm/components/radio-group.js +2 -22
- package/dist/esm/components/radio-group.js.map +1 -0
- package/dist/esm/components/radio.js +2 -13
- package/dist/esm/components/radio.js.map +1 -0
- package/dist/esm/components/resizable.js +2 -31
- package/dist/esm/components/resizable.js.map +1 -0
- package/dist/esm/components/scroll-area.js +2 -100
- package/dist/esm/components/scroll-area.js.map +1 -0
- package/dist/esm/components/section.js +2 -10
- package/dist/esm/components/section.js.map +1 -0
- package/dist/esm/components/select.js +2 -119
- package/dist/esm/components/select.js.map +1 -0
- package/dist/esm/components/separator.js +2 -42
- package/dist/esm/components/separator.js.map +1 -0
- package/dist/esm/components/sheet.js +2 -123
- package/dist/esm/components/sheet.js.map +1 -0
- package/dist/esm/components/sidebar.js +2 -401
- package/dist/esm/components/sidebar.js.map +1 -0
- package/dist/esm/components/skeleton.js +2 -10
- package/dist/esm/components/skeleton.js.map +1 -0
- package/dist/esm/components/slider.js +2 -45
- package/dist/esm/components/slider.js.map +1 -0
- package/dist/esm/components/sonner.js +2 -19
- package/dist/esm/components/sonner.js.map +1 -0
- package/dist/esm/components/spinner.js +2 -41
- package/dist/esm/components/spinner.js.map +1 -0
- package/dist/esm/components/strong.js +2 -10
- package/dist/esm/components/strong.js.map +1 -0
- package/dist/esm/components/switch.js +2 -15
- package/dist/esm/components/switch.js.map +1 -0
- package/dist/esm/components/table.js +2 -63
- package/dist/esm/components/table.js.map +1 -0
- package/dist/esm/components/tabs.js +2 -31
- package/dist/esm/components/tabs.js.map +1 -0
- package/dist/esm/components/text.js +2 -10
- package/dist/esm/components/text.js.map +1 -0
- package/dist/esm/components/textarea.js +2 -10
- package/dist/esm/components/textarea.js.map +1 -0
- package/dist/esm/components/toggle-group.js +2 -53
- package/dist/esm/components/toggle-group.js.map +1 -0
- package/dist/esm/components/toggle.js +2 -38
- package/dist/esm/components/toggle.js.map +1 -0
- package/dist/esm/components/tooltip.js +2 -44
- package/dist/esm/components/tooltip.js.map +1 -0
- package/dist/esm/index.js +1 -70
- package/dist/esm/lib/logger.js +2 -81
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/utils.js +2 -8
- package/dist/esm/lib/utils.js.map +1 -0
- package/package.json +8 -8
|
@@ -1,164 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
DialogHeader: ()=>DialogHeader,
|
|
28
|
-
DialogClose: ()=>DialogClose,
|
|
29
|
-
Dialog: ()=>Dialog,
|
|
30
|
-
DialogFooter: ()=>DialogFooter,
|
|
31
|
-
DialogContent: ()=>DialogContent,
|
|
32
|
-
DialogBody: ()=>DialogBody,
|
|
33
|
-
DialogDescription: ()=>DialogDescription,
|
|
34
|
-
DialogTrigger: ()=>DialogTrigger,
|
|
35
|
-
DialogTitle: ()=>DialogTitle
|
|
36
|
-
});
|
|
37
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
38
|
-
const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
|
|
39
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
40
|
-
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
41
|
-
const utils_cjs_namespaceObject = require("../lib/utils.cjs");
|
|
42
|
-
function Dialog({ ...props }) {
|
|
43
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root, {
|
|
44
|
-
"data-slot": "dialog",
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function DialogTrigger({ ...props }) {
|
|
49
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger, {
|
|
50
|
-
"data-slot": "dialog-trigger",
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function DialogContent({ children, className, classNames, ...props }) {
|
|
55
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal, {
|
|
56
|
-
children: [
|
|
57
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay, {
|
|
58
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50", classNames?.overlay),
|
|
59
|
-
"data-slot": "dialog-overlay"
|
|
60
|
-
}),
|
|
61
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Content, {
|
|
62
|
-
className: (0, utils_cjs_namespaceObject.cn)("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4", classNames?.wrapper),
|
|
63
|
-
"data-slot": "dialog-content-wrapper",
|
|
64
|
-
...props,
|
|
65
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
66
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl", classNames?.content, className),
|
|
67
|
-
"data-slot": "dialog-content",
|
|
68
|
-
children: [
|
|
69
|
-
children,
|
|
70
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close, {
|
|
71
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
72
|
-
className: [
|
|
73
|
-
"absolute right-2.5 top-2.5 size-7",
|
|
74
|
-
classNames?.close
|
|
75
|
-
],
|
|
76
|
-
size: "icon",
|
|
77
|
-
variant: "ghost"
|
|
78
|
-
}),
|
|
79
|
-
"data-slot": "dialog-close",
|
|
80
|
-
children: [
|
|
81
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon, {
|
|
82
|
-
className: "size-4"
|
|
83
|
-
}),
|
|
84
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
85
|
-
className: "sr-only",
|
|
86
|
-
children: "Close"
|
|
87
|
-
})
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
})
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function DialogHeader({ className, ...props }) {
|
|
97
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
|
|
98
|
-
className: (0, utils_cjs_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left", className),
|
|
99
|
-
"data-slot": "dialog-header",
|
|
100
|
-
...props
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function DialogBody({ className, ...props }) {
|
|
104
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
|
|
105
|
-
className: (0, utils_cjs_namespaceObject.cn)("overflow-auto px-6 py-2", className),
|
|
106
|
-
"data-slot": "dialog-body",
|
|
107
|
-
...props
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function DialogFooter({ className, ...props }) {
|
|
111
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("footer", {
|
|
112
|
-
className: (0, utils_cjs_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end", className),
|
|
113
|
-
"data-slot": "dialog-footer",
|
|
114
|
-
...props
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function DialogTitle({ className, ...props }) {
|
|
118
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title, {
|
|
119
|
-
className: (0, utils_cjs_namespaceObject.cn)("text-lg font-semibold leading-none tracking-tight", className),
|
|
120
|
-
"data-slot": "dialog-title",
|
|
121
|
-
...props
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function DialogDescription({ className, ...props }) {
|
|
125
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description, {
|
|
126
|
-
className: (0, utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm", className),
|
|
127
|
-
"data-slot": "dialog-description",
|
|
128
|
-
...props
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function DialogClose({ className, size, variant = "outline", ...props }) {
|
|
132
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close, {
|
|
133
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
134
|
-
className,
|
|
135
|
-
size,
|
|
136
|
-
variant
|
|
137
|
-
}),
|
|
138
|
-
"data-slot": "dialog-close",
|
|
139
|
-
...props
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
exports.Dialog = __webpack_exports__.Dialog;
|
|
143
|
-
exports.DialogBody = __webpack_exports__.DialogBody;
|
|
144
|
-
exports.DialogClose = __webpack_exports__.DialogClose;
|
|
145
|
-
exports.DialogContent = __webpack_exports__.DialogContent;
|
|
146
|
-
exports.DialogDescription = __webpack_exports__.DialogDescription;
|
|
147
|
-
exports.DialogFooter = __webpack_exports__.DialogFooter;
|
|
148
|
-
exports.DialogHeader = __webpack_exports__.DialogHeader;
|
|
149
|
-
exports.DialogTitle = __webpack_exports__.DialogTitle;
|
|
150
|
-
exports.DialogTrigger = __webpack_exports__.DialogTrigger;
|
|
151
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
152
|
-
"Dialog",
|
|
153
|
-
"DialogBody",
|
|
154
|
-
"DialogClose",
|
|
155
|
-
"DialogContent",
|
|
156
|
-
"DialogDescription",
|
|
157
|
-
"DialogFooter",
|
|
158
|
-
"DialogHeader",
|
|
159
|
-
"DialogTitle",
|
|
160
|
-
"DialogTrigger"
|
|
161
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
162
|
-
Object.defineProperty(exports, '__esModule', {
|
|
163
|
-
value: true
|
|
164
|
-
});
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogHeader:()=>DialogHeader,DialogClose:()=>DialogClose,Dialog:()=>Dialog,DialogFooter:()=>DialogFooter,DialogContent:()=>DialogContent,DialogBody:()=>DialogBody,DialogDescription:()=>DialogDescription,DialogTrigger:()=>DialogTrigger,DialogTitle:()=>DialogTitle});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_dialog_namespaceObject=require("@radix-ui/react-dialog"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("./button.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Dialog({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root,{"data-slot":"dialog",...e})}function DialogTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger,{"data-slot":"dialog-trigger",...e})}function DialogContent({children:e,className:a,classNames:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay,{className:(0,utils_cjs_namespaceObject.cn)("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50",t?.overlay),"data-slot":"dialog-overlay"}),(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",t?.wrapper),"data-slot":"dialog-content-wrapper",...o,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",t?.content,a),"data-slot":"dialog-content",children:[e,(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["absolute right-2.5 top-2.5 size-7",t?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Close"})]})]})})]})}function DialogHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("header",{className:(0,utils_cjs_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",e),"data-slot":"dialog-header",...a})}function DialogBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"dialog-body",...a})}function DialogFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("footer",{className:(0,utils_cjs_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a})}function DialogTitle({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title,{className:(0,utils_cjs_namespaceObject.cn)("text-lg font-semibold leading-none tracking-tight",e),"data-slot":"dialog-title",...a})}function DialogDescription({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...a})}function DialogClose({className:e,size:a,variant:t="outline",...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:a,variant:t}),"data-slot":"dialog-close",...o})}for(var __webpack_i__ in exports.Dialog=__webpack_exports__.Dialog,exports.DialogBody=__webpack_exports__.DialogBody,exports.DialogClose=__webpack_exports__.DialogClose,exports.DialogContent=__webpack_exports__.DialogContent,exports.DialogDescription=__webpack_exports__.DialogDescription,exports.DialogFooter=__webpack_exports__.DialogFooter,exports.DialogHeader=__webpack_exports__.DialogHeader,exports.DialogTitle=__webpack_exports__.DialogTitle,exports.DialogTrigger=__webpack_exports__.DialogTrigger,__webpack_exports__)-1===["Dialog","DialogBody","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogTitle","DialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
|
+
//# sourceMappingURL=dialog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/dialog.cjs","sources":["webpack://@codefast/ui/./src/components/dialog.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from \"react\";\n\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { XIcon } from \"lucide-react\";\n\nimport type { VariantProps } from \"@/lib/utils\";\n\nimport { buttonVariants } from \"@/components/button\";\nimport { cn } from \"@/lib/utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n \"bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50\",\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n \"data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4\",\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n \"bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl\",\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: [\"absolute right-2.5 top-2.5 size-7\", classNames?.close],\n size: \"icon\",\n variant: \"ghost\",\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return (\n <header\n className={cn(\"flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left\", className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return <main className={cn(\"overflow-auto px-6 py-2\", className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return (\n <footer\n className={cn(\"flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end\", className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn(\"text-lg font-semibold leading-none tracking-tight\", className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn(\"text-muted-foreground text-sm\", className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = \"outline\",\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, \"ref\"> & {\n size?: VariantProps<typeof buttonVariants>[\"size\"];\n variant?: VariantProps<typeof buttonVariants>[\"variant\"];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","props","DialogPrimitive","DialogTrigger","DialogContent","children","className","classNames","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"k0CAcA,SAASA,OAAO,CAAE,GAAGC,EAAoD,EACvE,MAAO,oCAACC,6BAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,A,EAC3D,CAMA,SAASE,cAAc,CAAE,GAAGF,EAAuD,EACjF,MAAO,oCAACC,6BAAAA,OAAuB,EAAC,YAAU,iBAAkB,GAAGD,CAAK,A,EACtE,CAMA,SAASG,cAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,WAAAA,CAAU,CACV,GAAGN,EAQJ,EACC,MACE,qCAACC,6BAAAA,MAAsB,E,UACrB,oCAACA,6BAAAA,OAAuB,EACtB,UAAWM,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,+GACAD,GAAY,SAEd,YAAU,gB,GAEZ,oCAACL,6BAAAA,OAAuB,EACtB,UAAWM,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,qfACAD,GAAY,SAEd,YAAU,yBACT,GAAGN,CAAK,C,SAET,qCAAC,OACC,UAAWO,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,yIACAD,GAAY,QACZD,GAEF,YAAU,iB,UAETD,EACD,qCAACH,6BAAAA,KAAqB,EACpB,UAAWO,AAAAA,GAAAA,oCAAAA,cAAAA,AAAAA,EAAe,CACxB,UAAW,CAAC,oCAAqCF,GAAY,MAAM,CACnE,KAAM,OACN,QAAS,OACX,GACA,YAAU,e,UAEV,oCAACG,sCAAAA,KAAKA,CAAAA,CAAC,UAAU,Q,GACjB,oCAAC,QAAK,UAAU,U,SAAU,O,aAMtC,CAMA,SAASC,aAAa,CAAEL,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAClE,MACE,oCAAC,UACC,UAAWO,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,yEAA0EF,GACxF,YAAU,gBACT,GAAGL,CAAK,A,EAGf,CAMA,SAASW,WAAW,CAAEN,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAChE,MAAO,oCAAC,QAAK,UAAWO,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,0BAA2BF,GAAY,YAAU,cAAe,GAAGL,CAAK,A,EACrG,CAMA,SAASY,aAAa,CAAEP,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAClE,MACE,oCAAC,UACC,UAAWO,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,iFAAkFF,GAChG,YAAU,gBACT,GAAGL,CAAK,A,EAGf,CAMA,SAASa,YAAY,CAAER,UAAAA,CAAS,CAAE,GAAGL,EAAqD,EACxF,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWM,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,oDAAqDF,GACnE,YAAU,eACT,GAAGL,CAAK,A,EAGf,CAMA,SAASc,kBAAkB,CAAET,UAAAA,CAAS,CAAE,GAAGL,EAA2D,EACpG,MACE,oCAACC,6BAAAA,WAA2B,EAC1B,UAAWM,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,gCAAiCF,GAC/C,YAAU,qBACT,GAAGL,CAAK,A,EAGf,CAMA,SAASe,YAAY,CACnBV,UAAAA,CAAS,CACTW,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGjB,EAIJ,EACC,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWO,AAAAA,GAAAA,oCAAAA,cAAAA,AAAAA,EAAe,CAAEH,UAAAA,EAAWW,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,eACT,GAAGjB,CAAK,A,EAGf,C"}
|
|
@@ -1,144 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
(()=>{
|
|
5
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
6
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: definition[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.r = (exports1)=>{
|
|
17
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
18
|
-
value: 'Module'
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
21
|
-
value: true
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
})();
|
|
25
|
-
var __webpack_exports__ = {};
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
DrawerFooter: ()=>DrawerFooter,
|
|
29
|
-
DrawerBody: ()=>DrawerBody,
|
|
30
|
-
DrawerContent: ()=>DrawerContent,
|
|
31
|
-
Drawer: ()=>Drawer,
|
|
32
|
-
DrawerClose: ()=>DrawerClose,
|
|
33
|
-
DrawerTrigger: ()=>DrawerTrigger,
|
|
34
|
-
DrawerHeader: ()=>DrawerHeader,
|
|
35
|
-
DrawerTitle: ()=>DrawerTitle,
|
|
36
|
-
DrawerDescription: ()=>DrawerDescription
|
|
37
|
-
});
|
|
38
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
-
const external_vaul_namespaceObject = require("vaul");
|
|
40
|
-
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
41
|
-
const utils_cjs_namespaceObject = require("../lib/utils.cjs");
|
|
42
|
-
function Drawer({ shouldScaleBackground = true, ...props }) {
|
|
43
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root, {
|
|
44
|
-
"data-slot": "drawer",
|
|
45
|
-
shouldScaleBackground: shouldScaleBackground,
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function DrawerTrigger({ ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Trigger, {
|
|
51
|
-
"data-slot": "drawer-trigger",
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function DrawerContent({ children, className, classNames, ...props }) {
|
|
56
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Portal, {
|
|
57
|
-
children: [
|
|
58
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay, {
|
|
59
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-popover-overlay fixed inset-0 z-50", classNames?.overlay),
|
|
60
|
-
"data-slot": "drawer-overlay"
|
|
61
|
-
}),
|
|
62
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content, {
|
|
63
|
-
className: (0, utils_cjs_namespaceObject.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm", classNames?.content, className),
|
|
64
|
-
"data-slot": "drawer-content",
|
|
65
|
-
...props,
|
|
66
|
-
children: [
|
|
67
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
68
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block", classNames?.handle)
|
|
69
|
-
}),
|
|
70
|
-
children
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function DrawerHeader({ className, ...props }) {
|
|
77
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
78
|
-
className: (0, utils_cjs_namespaceObject.cn)("flex flex-col gap-1.5 p-4", className),
|
|
79
|
-
"data-slot": "drawer-header",
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function DrawerBody({ className, ...props }) {
|
|
84
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
|
|
85
|
-
className: (0, utils_cjs_namespaceObject.cn)("overflow-auto px-4 py-2", className),
|
|
86
|
-
"data-slot": "drawer-body",
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function DrawerFooter({ className, ...props }) {
|
|
91
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
92
|
-
className: (0, utils_cjs_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4", className),
|
|
93
|
-
"data-slot": "drawer-footer",
|
|
94
|
-
...props
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function DrawerTitle({ className, ...props }) {
|
|
98
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title, {
|
|
99
|
-
className: (0, utils_cjs_namespaceObject.cn)("text-foreground font-semibold", className),
|
|
100
|
-
"data-slot": "drawer-title",
|
|
101
|
-
...props
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function DrawerDescription({ className, ...props }) {
|
|
105
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description, {
|
|
106
|
-
className: (0, utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm", className),
|
|
107
|
-
"data-slot": "drawer-description",
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function DrawerClose({ className, size, variant = "outline", ...props }) {
|
|
112
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Close, {
|
|
113
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
114
|
-
className,
|
|
115
|
-
size,
|
|
116
|
-
variant
|
|
117
|
-
}),
|
|
118
|
-
"data-slot": "drawer-close",
|
|
119
|
-
...props
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
exports.Drawer = __webpack_exports__.Drawer;
|
|
123
|
-
exports.DrawerBody = __webpack_exports__.DrawerBody;
|
|
124
|
-
exports.DrawerClose = __webpack_exports__.DrawerClose;
|
|
125
|
-
exports.DrawerContent = __webpack_exports__.DrawerContent;
|
|
126
|
-
exports.DrawerDescription = __webpack_exports__.DrawerDescription;
|
|
127
|
-
exports.DrawerFooter = __webpack_exports__.DrawerFooter;
|
|
128
|
-
exports.DrawerHeader = __webpack_exports__.DrawerHeader;
|
|
129
|
-
exports.DrawerTitle = __webpack_exports__.DrawerTitle;
|
|
130
|
-
exports.DrawerTrigger = __webpack_exports__.DrawerTrigger;
|
|
131
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
132
|
-
"Drawer",
|
|
133
|
-
"DrawerBody",
|
|
134
|
-
"DrawerClose",
|
|
135
|
-
"DrawerContent",
|
|
136
|
-
"DrawerDescription",
|
|
137
|
-
"DrawerFooter",
|
|
138
|
-
"DrawerHeader",
|
|
139
|
-
"DrawerTitle",
|
|
140
|
-
"DrawerTrigger"
|
|
141
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
142
|
-
Object.defineProperty(exports, '__esModule', {
|
|
143
|
-
value: true
|
|
144
|
-
});
|
|
2
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var a in r)__webpack_require__.o(r,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DrawerFooter:()=>DrawerFooter,DrawerBody:()=>DrawerBody,DrawerContent:()=>DrawerContent,Drawer:()=>Drawer,DrawerClose:()=>DrawerClose,DrawerTrigger:()=>DrawerTrigger,DrawerHeader:()=>DrawerHeader,DrawerTitle:()=>DrawerTitle,DrawerDescription:()=>DrawerDescription});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_vaul_namespaceObject=require("vaul"),external_button_cjs_namespaceObject=require("./button.cjs"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Drawer({shouldScaleBackground:e=!0,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root,{"data-slot":"drawer",shouldScaleBackground:e,...r})}function DrawerTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Trigger,{"data-slot":"drawer-trigger",...e})}function DrawerContent({children:e,className:r,classNames:a,...t}){return(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay,{className:(0,utils_cjs_namespaceObject.cn)("bg-popover-overlay fixed inset-0 z-50",a?.overlay),"data-slot":"drawer-overlay"}),(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content,{className:(0,utils_cjs_namespaceObject.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",a?.content,r),"data-slot":"drawer-content",...t,children:[(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",a?.handle)}),e]})]})}function DrawerHeader({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex flex-col gap-1.5 p-4",e),"data-slot":"drawer-header",...r})}function DrawerBody({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,utils_cjs_namespaceObject.cn)("overflow-auto px-4 py-2",e),"data-slot":"drawer-body",...r})}function DrawerFooter({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4",e),"data-slot":"drawer-footer",...r})}function DrawerTitle({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title,{className:(0,utils_cjs_namespaceObject.cn)("text-foreground font-semibold",e),"data-slot":"drawer-title",...r})}function DrawerDescription({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description,{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"drawer-description",...r})}function DrawerClose({className:e,size:r,variant:a="outline",...t}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:r,variant:a}),"data-slot":"drawer-close",...t})}for(var __webpack_i__ in exports.Drawer=__webpack_exports__.Drawer,exports.DrawerBody=__webpack_exports__.DrawerBody,exports.DrawerClose=__webpack_exports__.DrawerClose,exports.DrawerContent=__webpack_exports__.DrawerContent,exports.DrawerDescription=__webpack_exports__.DrawerDescription,exports.DrawerFooter=__webpack_exports__.DrawerFooter,exports.DrawerHeader=__webpack_exports__.DrawerHeader,exports.DrawerTitle=__webpack_exports__.DrawerTitle,exports.DrawerTrigger=__webpack_exports__.DrawerTrigger,__webpack_exports__)-1===["Drawer","DrawerBody","DrawerClose","DrawerContent","DrawerDescription","DrawerFooter","DrawerHeader","DrawerTitle","DrawerTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
3
|
+
//# sourceMappingURL=drawer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/drawer.cjs","sources":["webpack://@codefast/ui/./src/components/drawer.tsx"],"sourcesContent":["\n\nimport type { ComponentProps, JSX } from \"react\";\n\nimport { Drawer as DrawerPrimitive } from \"vaul\";\n\nimport type { VariantProps } from \"@/lib/utils\";\n\nimport { buttonVariants } from \"@/components/button\";\nimport { cn } from \"@/lib/utils\";\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\nfunction Drawer({ shouldScaleBackground = true, ...props }: ComponentProps<typeof DrawerPrimitive.Root>): JSX.Element {\n return <DrawerPrimitive.Root data-slot=\"drawer\" shouldScaleBackground={shouldScaleBackground} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>): JSX.Element {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\nfunction DrawerContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Content> & {\n classNames?: {\n content?: string;\n handle?: string;\n overlay?: string;\n };\n}): JSX.Element {\n return (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay\n className={cn(\"bg-popover-overlay fixed inset-0 z-50\", classNames?.overlay)}\n data-slot=\"drawer-overlay\"\n />\n <DrawerPrimitive.Content\n className={cn(\n \"group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm\",\n classNames?.content,\n className,\n )}\n data-slot=\"drawer-content\"\n {...props}\n >\n <div\n className={cn(\n \"bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block\",\n classNames?.handle,\n )}\n />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return <div className={cn(\"flex flex-col gap-1.5 p-4\", className)} data-slot=\"drawer-header\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\nfunction DrawerBody({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return <main className={cn(\"overflow-auto px-4 py-2\", className)} data-slot=\"drawer-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<\"div\">): JSX.Element {\n return <div className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)} data-slot=\"drawer-footer\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): JSX.Element {\n return (\n <DrawerPrimitive.Title\n className={cn(\"text-foreground font-semibold\", className)}\n data-slot=\"drawer-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\nfunction DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): JSX.Element {\n return (\n <DrawerPrimitive.Description\n className={cn(\"text-muted-foreground text-sm\", className)}\n data-slot=\"drawer-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\nfunction DrawerClose({\n className,\n size,\n variant = \"outline\",\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>[\"size\"];\n variant?: VariantProps<typeof buttonVariants>[\"variant\"];\n}): JSX.Element {\n return (\n <DrawerPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n};\n"],"names":["Drawer","shouldScaleBackground","props","DrawerPrimitive","DrawerTrigger","DrawerContent","children","className","classNames","cn","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","DrawerClose","size","variant","buttonVariants"],"mappings":";mvCAeA,SAASA,OAAO,CAAEC,sBAAAA,EAAwB,EAAI,CAAE,GAAGC,EAAoD,EACrG,MAAO,oCAACC,8BAAAA,MAAAA,CAAAA,IAAoB,EAAC,YAAU,SAAS,sBAAuBF,EAAwB,GAAGC,CAAK,EACzG,CAMA,SAASE,cAAc,CAAE,GAAGF,EAAuD,EACjF,MAAO,oCAACC,8BAAAA,MAAAA,CAAAA,OAAuB,EAAC,YAAU,iBAAkB,GAAGD,CAAK,EACtE,CAMA,SAASG,cAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,WAAAA,CAAU,CACV,GAAGN,EAOJ,EACC,MACE,qCAACC,8BAAAA,MAAAA,CAAAA,MAAsB,E,UACrB,oCAACA,8BAAAA,MAAAA,CAAAA,OAAuB,EACtB,UAAWM,GAAAA,0BAAAA,EAAAA,EAAG,wCAAyCD,GAAY,SACnE,YAAU,gB,GAEZ,qCAACL,8BAAAA,MAAAA,CAAAA,OAAuB,EACtB,UAAWM,GAAAA,0BAAAA,EAAAA,EACT,81BACAD,GAAY,QACZD,GAEF,YAAU,iBACT,GAAGL,CAAK,C,UAET,oCAAC,OACC,UAAWO,GAAAA,0BAAAA,EAAAA,EACT,+HACAD,GAAY,O,GAGfF,E,KAIT,CAMA,SAASI,aAAa,CAAEH,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAClE,MAAO,oCAAC,OAAI,UAAWO,GAAAA,0BAAAA,EAAAA,EAAG,4BAA6BF,GAAY,YAAU,gBAAiB,GAAGL,CAAK,EACxG,CAMA,SAASS,WAAW,CAAEJ,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAChE,MAAO,oCAAC,QAAK,UAAWO,GAAAA,0BAAAA,EAAAA,EAAG,0BAA2BF,GAAY,YAAU,cAAe,GAAGL,CAAK,EACrG,CAMA,SAASU,aAAa,CAAEL,UAAAA,CAAS,CAAE,GAAGL,EAA8B,EAClE,MAAO,oCAAC,OAAI,UAAWO,GAAAA,0BAAAA,EAAAA,EAAG,kCAAmCF,GAAY,YAAU,gBAAiB,GAAGL,CAAK,EAC9G,CAMA,SAASW,YAAY,CAAEN,UAAAA,CAAS,CAAE,GAAGL,EAAqD,EACxF,MACE,oCAACC,8BAAAA,MAAAA,CAAAA,KAAqB,EACpB,UAAWM,GAAAA,0BAAAA,EAAAA,EAAG,gCAAiCF,GAC/C,YAAU,eACT,GAAGL,CAAK,EAGf,CAMA,SAASY,kBAAkB,CAAEP,UAAAA,CAAS,CAAE,GAAGL,EAA2D,EACpG,MACE,oCAACC,8BAAAA,MAAAA,CAAAA,WAA2B,EAC1B,UAAWM,GAAAA,0BAAAA,EAAAA,EAAG,gCAAiCF,GAC/C,YAAU,qBACT,GAAGL,CAAK,EAGf,CAMA,SAASa,YAAY,CACnBR,UAAAA,CAAS,CACTS,KAAAA,CAAI,CACJC,QAAAA,EAAU,SAAS,CACnB,GAAGf,EAIJ,EACC,MACE,oCAACC,8BAAAA,MAAAA,CAAAA,KAAqB,EACpB,UAAWe,GAAAA,oCAAAA,cAAAA,EAAe,CAAEX,UAAAA,EAAWS,KAAAA,EAAMC,QAAAA,CAAQ,GACrD,YAAU,eACT,GAAGf,CAAK,EAGf,C"}
|
|
@@ -1,219 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
DropdownMenuSubTrigger: ()=>DropdownMenuSubTrigger,
|
|
28
|
-
DropdownMenuGroup: ()=>DropdownMenuGroup,
|
|
29
|
-
DropdownMenuItem: ()=>DropdownMenuItem,
|
|
30
|
-
DropdownMenuShortcut: ()=>DropdownMenuShortcut,
|
|
31
|
-
DropdownMenuSubContent: ()=>DropdownMenuSubContent,
|
|
32
|
-
DropdownMenuRadioItem: ()=>DropdownMenuRadioItem,
|
|
33
|
-
DropdownMenuSeparator: ()=>DropdownMenuSeparator,
|
|
34
|
-
DropdownMenuArrow: ()=>DropdownMenuArrow,
|
|
35
|
-
DropdownMenuRadioGroup: ()=>DropdownMenuRadioGroup,
|
|
36
|
-
DropdownMenu: ()=>DropdownMenu,
|
|
37
|
-
DropdownMenuCheckboxItem: ()=>DropdownMenuCheckboxItem,
|
|
38
|
-
DropdownMenuContent: ()=>DropdownMenuContent,
|
|
39
|
-
DropdownMenuLabel: ()=>DropdownMenuLabel,
|
|
40
|
-
DropdownMenuTrigger: ()=>DropdownMenuTrigger,
|
|
41
|
-
DropdownMenuSub: ()=>DropdownMenuSub
|
|
42
|
-
});
|
|
43
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
44
|
-
const react_dropdown_menu_namespaceObject = require("@radix-ui/react-dropdown-menu");
|
|
45
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
46
|
-
const utils_cjs_namespaceObject = require("../lib/utils.cjs");
|
|
47
|
-
function DropdownMenu({ ...props }) {
|
|
48
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root, {
|
|
49
|
-
"data-slot": "dropdown-menu",
|
|
50
|
-
...props
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function DropdownMenuTrigger({ ...props }) {
|
|
54
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger, {
|
|
55
|
-
"data-slot": "dropdown-menu-trigger",
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function DropdownMenuGroup({ ...props }) {
|
|
60
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group, {
|
|
61
|
-
"data-slot": "dropdown-menu-group",
|
|
62
|
-
...props
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function DropdownMenuSub({ ...props }) {
|
|
66
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub, {
|
|
67
|
-
"data-slot": "dropdown-menu-sub",
|
|
68
|
-
...props
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function DropdownMenuRadioGroup({ ...props }) {
|
|
72
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup, {
|
|
73
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
74
|
-
...props
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
|
|
78
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger, {
|
|
79
|
-
className: (0, utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm", className),
|
|
80
|
-
"data-inset": inset,
|
|
81
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
82
|
-
...props,
|
|
83
|
-
children: [
|
|
84
|
-
children,
|
|
85
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
|
|
86
|
-
className: "ml-auto size-4"
|
|
87
|
-
})
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function DropdownMenuSubContent({ className, ...props }) {
|
|
92
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
|
|
93
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent, {
|
|
94
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg", className),
|
|
95
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
96
|
-
...props
|
|
97
|
-
})
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
101
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
|
|
102
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content, {
|
|
103
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg", className),
|
|
104
|
-
"data-slot": "dropdown-menu-content",
|
|
105
|
-
sideOffset: sideOffset,
|
|
106
|
-
...props
|
|
107
|
-
})
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function DropdownMenuItem({ className, inset, variant, ...props }) {
|
|
111
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item, {
|
|
112
|
-
className: (0, utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0", className),
|
|
113
|
-
"data-inset": inset,
|
|
114
|
-
"data-slot": "dropdown-menu-item",
|
|
115
|
-
"data-variant": variant,
|
|
116
|
-
...props
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
|
|
120
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem, {
|
|
121
|
-
checked: checked,
|
|
122
|
-
className: (0, utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground outline-hidden group/dropdown-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0", className),
|
|
123
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
124
|
-
...props,
|
|
125
|
-
children: [
|
|
126
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
127
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
128
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
|
|
129
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
|
|
130
|
-
className: "size-4"
|
|
131
|
-
})
|
|
132
|
-
})
|
|
133
|
-
}),
|
|
134
|
-
children
|
|
135
|
-
]
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
function DropdownMenuRadioItem({ children, className, ...props }) {
|
|
139
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem, {
|
|
140
|
-
className: (0, utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground outline-hidden group/dropdown-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0", className),
|
|
141
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
142
|
-
...props,
|
|
143
|
-
children: [
|
|
144
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
145
|
-
className: "absolute left-2 flex items-center justify-center",
|
|
146
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
|
|
147
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon, {
|
|
148
|
-
className: "size-4 fill-current"
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
}),
|
|
152
|
-
children
|
|
153
|
-
]
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
157
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label, {
|
|
158
|
-
className: (0, utils_cjs_namespaceObject.cn)("data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold", className),
|
|
159
|
-
"data-inset": inset,
|
|
160
|
-
"data-slot": "dropdown-menu-label",
|
|
161
|
-
...props
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function DropdownMenuSeparator({ className, ...props }) {
|
|
165
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator, {
|
|
166
|
-
className: (0, utils_cjs_namespaceObject.cn)("bg-border mx-2 my-1 h-px", className),
|
|
167
|
-
"data-slot": "dropdown-menu-separator",
|
|
168
|
-
...props
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
function DropdownMenuShortcut({ className, ...props }) {
|
|
172
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
173
|
-
className: (0, utils_cjs_namespaceObject.cn)("text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest", className),
|
|
174
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
175
|
-
...props
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
function DropdownMenuArrow({ className, ...props }) {
|
|
179
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Arrow, {
|
|
180
|
-
className: (0, utils_cjs_namespaceObject.cn)("fill-popover", className),
|
|
181
|
-
"data-slot": "dropdown-menu-arrow",
|
|
182
|
-
...props
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
exports.DropdownMenu = __webpack_exports__.DropdownMenu;
|
|
186
|
-
exports.DropdownMenuArrow = __webpack_exports__.DropdownMenuArrow;
|
|
187
|
-
exports.DropdownMenuCheckboxItem = __webpack_exports__.DropdownMenuCheckboxItem;
|
|
188
|
-
exports.DropdownMenuContent = __webpack_exports__.DropdownMenuContent;
|
|
189
|
-
exports.DropdownMenuGroup = __webpack_exports__.DropdownMenuGroup;
|
|
190
|
-
exports.DropdownMenuItem = __webpack_exports__.DropdownMenuItem;
|
|
191
|
-
exports.DropdownMenuLabel = __webpack_exports__.DropdownMenuLabel;
|
|
192
|
-
exports.DropdownMenuRadioGroup = __webpack_exports__.DropdownMenuRadioGroup;
|
|
193
|
-
exports.DropdownMenuRadioItem = __webpack_exports__.DropdownMenuRadioItem;
|
|
194
|
-
exports.DropdownMenuSeparator = __webpack_exports__.DropdownMenuSeparator;
|
|
195
|
-
exports.DropdownMenuShortcut = __webpack_exports__.DropdownMenuShortcut;
|
|
196
|
-
exports.DropdownMenuSub = __webpack_exports__.DropdownMenuSub;
|
|
197
|
-
exports.DropdownMenuSubContent = __webpack_exports__.DropdownMenuSubContent;
|
|
198
|
-
exports.DropdownMenuSubTrigger = __webpack_exports__.DropdownMenuSubTrigger;
|
|
199
|
-
exports.DropdownMenuTrigger = __webpack_exports__.DropdownMenuTrigger;
|
|
200
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
201
|
-
"DropdownMenu",
|
|
202
|
-
"DropdownMenuArrow",
|
|
203
|
-
"DropdownMenuCheckboxItem",
|
|
204
|
-
"DropdownMenuContent",
|
|
205
|
-
"DropdownMenuGroup",
|
|
206
|
-
"DropdownMenuItem",
|
|
207
|
-
"DropdownMenuLabel",
|
|
208
|
-
"DropdownMenuRadioGroup",
|
|
209
|
-
"DropdownMenuRadioItem",
|
|
210
|
-
"DropdownMenuSeparator",
|
|
211
|
-
"DropdownMenuShortcut",
|
|
212
|
-
"DropdownMenuSub",
|
|
213
|
-
"DropdownMenuSubContent",
|
|
214
|
-
"DropdownMenuSubTrigger",
|
|
215
|
-
"DropdownMenuTrigger"
|
|
216
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
217
|
-
Object.defineProperty(exports, '__esModule', {
|
|
218
|
-
value: true
|
|
219
|
-
});
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DropdownMenuSubTrigger:()=>DropdownMenuSubTrigger,DropdownMenuGroup:()=>DropdownMenuGroup,DropdownMenuItem:()=>DropdownMenuItem,DropdownMenuShortcut:()=>DropdownMenuShortcut,DropdownMenuSubContent:()=>DropdownMenuSubContent,DropdownMenuRadioItem:()=>DropdownMenuRadioItem,DropdownMenuSeparator:()=>DropdownMenuSeparator,DropdownMenuArrow:()=>DropdownMenuArrow,DropdownMenuRadioGroup:()=>DropdownMenuRadioGroup,DropdownMenu:()=>DropdownMenu,DropdownMenuCheckboxItem:()=>DropdownMenuCheckboxItem,DropdownMenuContent:()=>DropdownMenuContent,DropdownMenuLabel:()=>DropdownMenuLabel,DropdownMenuTrigger:()=>DropdownMenuTrigger,DropdownMenuSub:()=>DropdownMenuSub});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_dropdown_menu_namespaceObject=require("@radix-ui/react-dropdown-menu"),external_lucide_react_namespaceObject=require("lucide-react"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function DropdownMenu({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root,{"data-slot":"dropdown-menu",...e})}function DropdownMenuTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function DropdownMenuGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group,{"data-slot":"dropdown-menu-group",...e})}function DropdownMenuSub({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub,{"data-slot":"dropdown-menu-sub",...e})}function DropdownMenuRadioGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function DropdownMenuSubTrigger({children:e,className:t,inset:o,...n}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger,{className:(0,utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm",t),"data-inset":o,"data-slot":"dropdown-menu-sub-trigger",...n,children:[e,(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon,{className:"ml-auto size-4"})]})}function DropdownMenuSubContent({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent,{className:(0,utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-sub-content",...t})})}function DropdownMenuContent({className:e,sideOffset:t=4,...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-content",sideOffset:t,...o})})}function DropdownMenuItem({className:e,inset:t,variant:o,...n}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item,{className:(0,utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-inset":t,"data-slot":"dropdown-menu-item","data-variant":o,...n})}function DropdownMenuCheckboxItem({checked:e,children:t,className:o,...n}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem,{checked:e,className:(0,utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground outline-hidden group/dropdown-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",o),"data-slot":"dropdown-menu-checkbox-item",...n,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute left-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon,{className:"size-4"})})}),t]})}function DropdownMenuRadioItem({children:e,className:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem,{className:(0,utils_cjs_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground outline-hidden group/dropdown-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",t),"data-slot":"dropdown-menu-radio-item",...o,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute left-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon,{className:"size-4 fill-current"})})}),e]})}function DropdownMenuLabel({className:e,inset:t,...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label,{className:(0,utils_cjs_namespaceObject.cn)("data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold",e),"data-inset":t,"data-slot":"dropdown-menu-label",...o})}function DropdownMenuSeparator({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator,{className:(0,utils_cjs_namespaceObject.cn)("bg-border mx-2 my-1 h-px",e),"data-slot":"dropdown-menu-separator",...t})}function DropdownMenuShortcut({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,utils_cjs_namespaceObject.cn)("text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest",e),"data-slot":"dropdown-menu-shortcut",...t})}function DropdownMenuArrow({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Arrow,{className:(0,utils_cjs_namespaceObject.cn)("fill-popover",e),"data-slot":"dropdown-menu-arrow",...t})}for(var __webpack_i__ in exports.DropdownMenu=__webpack_exports__.DropdownMenu,exports.DropdownMenuArrow=__webpack_exports__.DropdownMenuArrow,exports.DropdownMenuCheckboxItem=__webpack_exports__.DropdownMenuCheckboxItem,exports.DropdownMenuContent=__webpack_exports__.DropdownMenuContent,exports.DropdownMenuGroup=__webpack_exports__.DropdownMenuGroup,exports.DropdownMenuItem=__webpack_exports__.DropdownMenuItem,exports.DropdownMenuLabel=__webpack_exports__.DropdownMenuLabel,exports.DropdownMenuRadioGroup=__webpack_exports__.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=__webpack_exports__.DropdownMenuRadioItem,exports.DropdownMenuSeparator=__webpack_exports__.DropdownMenuSeparator,exports.DropdownMenuShortcut=__webpack_exports__.DropdownMenuShortcut,exports.DropdownMenuSub=__webpack_exports__.DropdownMenuSub,exports.DropdownMenuSubContent=__webpack_exports__.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=__webpack_exports__.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=__webpack_exports__.DropdownMenuTrigger,__webpack_exports__)-1===["DropdownMenu","DropdownMenuArrow","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
|
|
2
|
+
//# sourceMappingURL=dropdown-menu.cjs.map
|