@codefast/ui 0.3.10 → 0.3.11-canary.1
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 +32 -0
- package/README.md +277 -167
- package/dist/components/accordion.d.ts +4 -4
- package/dist/components/accordion.js +5 -5
- package/dist/components/alert-dialog.d.ts +11 -11
- package/dist/components/alert-dialog.js +9 -9
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +5 -5
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/avatar.d.ts +2 -2
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.js +7 -7
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/breadcrumb.js +6 -8
- package/dist/components/button-group.d.ts +5 -5
- package/dist/components/button-group.js +8 -8
- package/dist/components/button.d.ts +6 -6
- package/dist/components/button.js +17 -17
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +35 -35
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.js +7 -7
- package/dist/components/carousel.d.ts +10 -10
- package/dist/components/carousel.js +20 -20
- package/dist/components/chart.d.ts +12 -11
- package/dist/components/chart.js +42 -42
- package/dist/components/checkbox-cards.d.ts +2 -2
- package/dist/components/checkbox-cards.js +2 -2
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/command.d.ts +4 -4
- package/dist/components/command.js +10 -10
- package/dist/components/context-menu.d.ts +4 -4
- package/dist/components/context-menu.js +10 -10
- package/dist/components/dialog.d.ts +10 -10
- package/dist/components/dialog.js +12 -12
- package/dist/components/drawer.d.ts +9 -9
- package/dist/components/drawer.js +9 -9
- package/dist/components/dropdown-menu.d.ts +4 -4
- package/dist/components/dropdown-menu.js +10 -10
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/empty.js +10 -10
- package/dist/components/field.d.ts +14 -14
- package/dist/components/field.js +17 -17
- package/dist/components/form.d.ts +10 -10
- package/dist/components/form.js +8 -8
- package/dist/components/hover-card.d.ts +2 -2
- package/dist/components/hover-card.js +3 -3
- package/dist/components/input-group.d.ts +15 -15
- package/dist/components/input-group.js +20 -20
- package/dist/components/input-number.d.ts +2 -2
- package/dist/components/input-number.js +7 -7
- package/dist/components/input-otp.d.ts +6 -6
- package/dist/components/input-otp.js +4 -4
- package/dist/components/input-password.d.ts +3 -3
- package/dist/components/input-password.js +6 -6
- package/dist/components/input-search.d.ts +3 -3
- package/dist/components/input-search.js +4 -4
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +12 -12
- package/dist/components/item.js +23 -23
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +2 -2
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.d.ts +4 -4
- package/dist/components/menubar.js +13 -13
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +10 -10
- package/dist/components/pagination.d.ts +10 -10
- package/dist/components/pagination.js +6 -6
- package/dist/components/popover.d.ts +3 -3
- package/dist/components/popover.js +3 -3
- package/dist/components/progress-circle.d.ts +5 -5
- package/dist/components/progress-circle.js +22 -22
- package/dist/components/progress.d.ts +2 -2
- package/dist/components/progress.js +2 -2
- package/dist/components/radio-cards.d.ts +2 -2
- package/dist/components/radio-cards.js +3 -3
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +3 -3
- package/dist/components/radio.d.ts +2 -2
- package/dist/components/radio.js +1 -1
- package/dist/components/resizable.d.ts +2 -2
- package/dist/components/resizable.js +3 -3
- package/dist/components/scroll-area.d.ts +5 -5
- package/dist/components/scroll-area.js +31 -31
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.js +9 -9
- package/dist/components/separator.d.ts +5 -5
- package/dist/components/separator.js +9 -9
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +17 -17
- package/dist/components/sidebar.d.ts +31 -31
- package/dist/components/sidebar.js +65 -65
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +4 -4
- package/dist/components/sonner.d.ts +3 -3
- package/dist/components/sonner.js +4 -4
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +5 -5
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +8 -8
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +4 -4
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +5 -5
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.js +8 -8
- package/dist/components/tooltip.d.ts +3 -3
- package/dist/components/tooltip.js +2 -2
- package/dist/css/preset.css +4 -4
- package/dist/css/style.css +3 -3
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +1 -1
- package/dist/hooks/use-media-query.js +3 -3
- package/dist/hooks/use-mutation-observer.d.ts +1 -1
- package/dist/hooks/use-pagination.js +1 -1
- package/dist/index.d.ts +130 -130
- package/dist/primitives/checkbox-group.d.ts +11 -11
- package/dist/primitives/checkbox-group.js +3 -3
- package/dist/primitives/input-number.d.ts +8 -8
- package/dist/primitives/input-number.js +46 -46
- package/dist/primitives/input.d.ts +4 -4
- package/dist/primitives/input.js +7 -7
- package/dist/primitives/progress-circle.d.ts +7 -7
- package/dist/primitives/progress-circle.js +8 -8
- package/package.json +111 -189
- package/dist/components/accordion.cjs +0 -98
- package/dist/components/alert-dialog.cjs +0 -156
- package/dist/components/alert.cjs +0 -84
- package/dist/components/aspect-ratio.cjs +0 -44
- package/dist/components/avatar.cjs +0 -66
- package/dist/components/badge.cjs +0 -67
- package/dist/components/breadcrumb.cjs +0 -127
- package/dist/components/button-group.cjs +0 -87
- package/dist/components/button.cjs +0 -92
- package/dist/components/calendar.cjs +0 -151
- package/dist/components/card.cjs +0 -105
- package/dist/components/carousel.cjs +0 -211
- package/dist/components/chart.cjs +0 -251
- package/dist/components/checkbox-cards.cjs +0 -70
- package/dist/components/checkbox-group.cjs +0 -64
- package/dist/components/checkbox.cjs +0 -54
- package/dist/components/collapsible.cjs +0 -62
- package/dist/components/command.cjs +0 -168
- package/dist/components/context-menu.cjs +0 -219
- package/dist/components/dialog.cjs +0 -165
- package/dist/components/drawer.cjs +0 -144
- package/dist/components/dropdown-menu.cjs +0 -222
- package/dist/components/empty.cjs +0 -113
- package/dist/components/field.cjs +0 -194
- package/dist/components/form.cjs +0 -152
- package/dist/components/hover-card.cjs +0 -78
- package/dist/components/input-group.cjs +0 -156
- package/dist/components/input-number.cjs +0 -99
- package/dist/components/input-otp.cjs +0 -102
- package/dist/components/input-password.cjs +0 -72
- package/dist/components/input-search.cjs +0 -81
- package/dist/components/input.cjs +0 -46
- package/dist/components/item.cjs +0 -186
- package/dist/components/kbd.cjs +0 -54
- package/dist/components/label.cjs +0 -46
- package/dist/components/menubar.cjs +0 -233
- package/dist/components/native-select.cjs +0 -75
- package/dist/components/navigation-menu.cjs +0 -146
- package/dist/components/pagination.cjs +0 -138
- package/dist/components/popover.cjs +0 -87
- package/dist/components/progress-circle.cjs +0 -185
- package/dist/components/progress.cjs +0 -53
- package/dist/components/radio-cards.cjs +0 -67
- package/dist/components/radio-group.cjs +0 -60
- package/dist/components/radio.cjs +0 -48
- package/dist/components/resizable.cjs +0 -72
- package/dist/components/scroll-area.cjs +0 -141
- package/dist/components/select.cjs +0 -181
- package/dist/components/separator.cjs +0 -83
- package/dist/components/sheet.cjs +0 -185
- package/dist/components/sidebar.cjs +0 -507
- package/dist/components/skeleton.cjs +0 -44
- package/dist/components/slider.cjs +0 -80
- package/dist/components/sonner.cjs +0 -58
- package/dist/components/spinner.cjs +0 -76
- package/dist/components/switch.cjs +0 -50
- package/dist/components/table.cjs +0 -118
- package/dist/components/tabs.cjs +0 -76
- package/dist/components/textarea.cjs +0 -44
- package/dist/components/toggle-group.cjs +0 -91
- package/dist/components/toggle.cjs +0 -72
- package/dist/components/tooltip.cjs +0 -91
- package/dist/hooks/use-animated-value.cjs +0 -75
- package/dist/hooks/use-copy-to-clipboard.cjs +0 -58
- package/dist/hooks/use-is-mobile.cjs +0 -40
- package/dist/hooks/use-media-query.cjs +0 -57
- package/dist/hooks/use-mutation-observer.cjs +0 -57
- package/dist/hooks/use-pagination.cjs +0 -93
- package/dist/index.cjs +0 -1081
- package/dist/primitives/checkbox-group.cjs +0 -151
- package/dist/primitives/input-number.cjs +0 -439
- package/dist/primitives/input.cjs +0 -99
- package/dist/primitives/progress-circle.cjs +0 -199
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
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 ("u" > 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
|
-
Command: ()=>Command,
|
|
29
|
-
CommandEmpty: ()=>CommandEmpty,
|
|
30
|
-
CommandGroup: ()=>CommandGroup,
|
|
31
|
-
CommandShortcut: ()=>CommandShortcut,
|
|
32
|
-
CommandSeparator: ()=>CommandSeparator,
|
|
33
|
-
CommandDialog: ()=>CommandDialog,
|
|
34
|
-
CommandInput: ()=>CommandInput,
|
|
35
|
-
CommandItem: ()=>CommandItem,
|
|
36
|
-
CommandList: ()=>CommandList,
|
|
37
|
-
CommandLoading: ()=>CommandLoading
|
|
38
|
-
});
|
|
39
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
41
|
-
const react_visually_hidden_namespaceObject = require("@radix-ui/react-visually-hidden");
|
|
42
|
-
const external_cmdk_namespaceObject = require("cmdk");
|
|
43
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
44
|
-
const external_dialog_cjs_namespaceObject = require("./dialog.cjs");
|
|
45
|
-
function Command({ className, ...props }) {
|
|
46
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command, {
|
|
47
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground flex flex-col overflow-hidden rounded-[inherit] outline-hidden', className),
|
|
48
|
-
"data-slot": "command",
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function CommandDialog({ children, ...props }) {
|
|
53
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.Dialog, {
|
|
54
|
-
"data-slot": "command-dialog",
|
|
55
|
-
...props,
|
|
56
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_dialog_cjs_namespaceObject.DialogContent, {
|
|
57
|
-
className: "rounded-t-lg sm:rounded-lg",
|
|
58
|
-
"data-slot": "command-dialog-content",
|
|
59
|
-
children: [
|
|
60
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_visually_hidden_namespaceObject.VisuallyHidden, {
|
|
61
|
-
children: [
|
|
62
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogTitle, {
|
|
63
|
-
children: "Search command"
|
|
64
|
-
}),
|
|
65
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dialog_cjs_namespaceObject.DialogDescription, {
|
|
66
|
-
children: "Use the search bar to find and select the desired command."
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
}),
|
|
70
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Command, {
|
|
71
|
-
className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",
|
|
72
|
-
children: children
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function CommandInput({ className, ...props }) {
|
|
79
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
80
|
-
"cmdk-input-wrapper": true,
|
|
81
|
-
className: "flex items-center gap-2 border-b px-3",
|
|
82
|
-
"data-slot": "command-input-wrapper",
|
|
83
|
-
children: [
|
|
84
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon, {
|
|
85
|
-
className: "size-4 shrink-0 opacity-50"
|
|
86
|
-
}),
|
|
87
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Input, {
|
|
88
|
-
className: (0, tailwind_variants_namespaceObject.cn)('placeholder:text-muted-foreground flex h-10 w-full text-base outline-hidden disabled:opacity-50 md:text-sm', className),
|
|
89
|
-
"data-slot": "command-input",
|
|
90
|
-
...props
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function CommandList({ className, ...props }) {
|
|
96
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.List, {
|
|
97
|
-
className: (0, tailwind_variants_namespaceObject.cn)('max-h-75 overflow-x-hidden overflow-y-auto', className),
|
|
98
|
-
"data-slot": "command-list",
|
|
99
|
-
...props
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function CommandEmpty({ className, ...props }) {
|
|
103
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Empty, {
|
|
104
|
-
className: (0, tailwind_variants_namespaceObject.cn)('py-6 text-center text-sm', className),
|
|
105
|
-
"data-slot": "command-empty",
|
|
106
|
-
...props
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function CommandGroup({ className, ...props }) {
|
|
110
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Group, {
|
|
111
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium', className),
|
|
112
|
-
"data-slot": "command-group",
|
|
113
|
-
...props
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function CommandSeparator({ className, ...props }) {
|
|
117
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Separator, {
|
|
118
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-border -mx-1 h-px', className),
|
|
119
|
-
"data-slot": "command-separator",
|
|
120
|
-
...props
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
function CommandItem({ className, ...props }) {
|
|
124
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Item, {
|
|
125
|
-
className: (0, tailwind_variants_namespaceObject.cn)("aria-selected:bg-accent aria-selected:text-accent-foreground group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
126
|
-
"data-slot": "command-item",
|
|
127
|
-
...props
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function CommandLoading({ className, ...props }) {
|
|
131
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_cmdk_namespaceObject.Command.Loading, {
|
|
132
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex justify-center p-2', className),
|
|
133
|
-
"data-slot": "command-loading",
|
|
134
|
-
...props
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function CommandShortcut({ className, ...props }) {
|
|
138
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
139
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground ml-auto text-xs tracking-widest', className),
|
|
140
|
-
"data-slot": "command-shortcut",
|
|
141
|
-
...props
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
exports.Command = __webpack_exports__.Command;
|
|
145
|
-
exports.CommandDialog = __webpack_exports__.CommandDialog;
|
|
146
|
-
exports.CommandEmpty = __webpack_exports__.CommandEmpty;
|
|
147
|
-
exports.CommandGroup = __webpack_exports__.CommandGroup;
|
|
148
|
-
exports.CommandInput = __webpack_exports__.CommandInput;
|
|
149
|
-
exports.CommandItem = __webpack_exports__.CommandItem;
|
|
150
|
-
exports.CommandList = __webpack_exports__.CommandList;
|
|
151
|
-
exports.CommandLoading = __webpack_exports__.CommandLoading;
|
|
152
|
-
exports.CommandSeparator = __webpack_exports__.CommandSeparator;
|
|
153
|
-
exports.CommandShortcut = __webpack_exports__.CommandShortcut;
|
|
154
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
155
|
-
"Command",
|
|
156
|
-
"CommandDialog",
|
|
157
|
-
"CommandEmpty",
|
|
158
|
-
"CommandGroup",
|
|
159
|
-
"CommandInput",
|
|
160
|
-
"CommandItem",
|
|
161
|
-
"CommandList",
|
|
162
|
-
"CommandLoading",
|
|
163
|
-
"CommandSeparator",
|
|
164
|
-
"CommandShortcut"
|
|
165
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
166
|
-
Object.defineProperty(exports, '__esModule', {
|
|
167
|
-
value: true
|
|
168
|
-
});
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
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 ("u" > 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
|
-
ContextMenuCheckboxItem: ()=>ContextMenuCheckboxItem,
|
|
29
|
-
ContextMenuContent: ()=>ContextMenuContent,
|
|
30
|
-
ContextMenuRadioItem: ()=>ContextMenuRadioItem,
|
|
31
|
-
ContextMenuGroup: ()=>ContextMenuGroup,
|
|
32
|
-
ContextMenuSubTrigger: ()=>ContextMenuSubTrigger,
|
|
33
|
-
ContextMenuTrigger: ()=>ContextMenuTrigger,
|
|
34
|
-
ContextMenuSubContent: ()=>ContextMenuSubContent,
|
|
35
|
-
ContextMenuArrow: ()=>ContextMenuArrow,
|
|
36
|
-
ContextMenu: ()=>ContextMenu,
|
|
37
|
-
ContextMenuItem: ()=>ContextMenuItem,
|
|
38
|
-
ContextMenuShortcut: ()=>ContextMenuShortcut,
|
|
39
|
-
ContextMenuLabel: ()=>ContextMenuLabel,
|
|
40
|
-
ContextMenuRadioGroup: ()=>ContextMenuRadioGroup,
|
|
41
|
-
ContextMenuSeparator: ()=>ContextMenuSeparator,
|
|
42
|
-
ContextMenuSub: ()=>ContextMenuSub
|
|
43
|
-
});
|
|
44
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
46
|
-
const react_context_menu_namespaceObject = require("@radix-ui/react-context-menu");
|
|
47
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
48
|
-
function ContextMenu({ ...props }) {
|
|
49
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Root, {
|
|
50
|
-
"data-slot": "context-menu",
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function ContextMenuTrigger({ ...props }) {
|
|
55
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Trigger, {
|
|
56
|
-
"data-slot": "context-menu-trigger",
|
|
57
|
-
...props
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function ContextMenuGroup({ ...props }) {
|
|
61
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Group, {
|
|
62
|
-
"data-slot": "context-menu-group",
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function ContextMenuSub({ ...props }) {
|
|
67
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Sub, {
|
|
68
|
-
"data-slot": "context-menu-sub",
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function ContextMenuRadioGroup({ ...props }) {
|
|
73
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.RadioGroup, {
|
|
74
|
-
"data-slot": "context-menu-radio-group",
|
|
75
|
-
...props
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function ContextMenuSubTrigger({ children, className, inset, ...props }) {
|
|
79
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.SubTrigger, {
|
|
80
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
81
|
-
"data-inset": inset,
|
|
82
|
-
"data-slot": "context-menu-sub-trigger",
|
|
83
|
-
...props,
|
|
84
|
-
children: [
|
|
85
|
-
children,
|
|
86
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
|
|
87
|
-
className: "ml-auto size-4"
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function ContextMenuSubContent({ className, ...props }) {
|
|
93
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Portal, {
|
|
94
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.SubContent, {
|
|
95
|
-
className: (0, tailwind_variants_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 ease-ui z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg', className),
|
|
96
|
-
"data-slot": "context-menu-sub-content",
|
|
97
|
-
...props
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
function ContextMenuContent({ className, ...props }) {
|
|
102
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Portal, {
|
|
103
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Content, {
|
|
104
|
-
className: (0, tailwind_variants_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 ease-ui z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-lg', className),
|
|
105
|
-
"data-slot": "context-menu-content",
|
|
106
|
-
...props
|
|
107
|
-
})
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function ContextMenuItem({ className, inset, variant, ...props }) {
|
|
111
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Item, {
|
|
112
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/context-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 items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
113
|
-
"data-inset": inset,
|
|
114
|
-
"data-slot": "context-menu-item",
|
|
115
|
-
"data-variant": variant,
|
|
116
|
-
...props
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function ContextMenuCheckboxItem({ checked, children, className, ...props }) {
|
|
120
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.CheckboxItem, {
|
|
121
|
-
checked: checked,
|
|
122
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
123
|
-
"data-slot": "context-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_context_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 ContextMenuRadioItem({ children, className, ...props }) {
|
|
139
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_context_menu_namespaceObject.RadioItem, {
|
|
140
|
-
className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/context-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
141
|
-
"data-slot": "context-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_context_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 ContextMenuLabel({ className, inset, ...props }) {
|
|
157
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Label, {
|
|
158
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8', className),
|
|
159
|
-
"data-inset": inset,
|
|
160
|
-
"data-slot": "context-menu-label",
|
|
161
|
-
...props
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function ContextMenuSeparator({ className, ...props }) {
|
|
165
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Separator, {
|
|
166
|
-
className: (0, tailwind_variants_namespaceObject.cn)('bg-border mx-2 my-1 h-px', className),
|
|
167
|
-
"data-slot": "context-menu-separator",
|
|
168
|
-
...props
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
function ContextMenuShortcut({ className, ...props }) {
|
|
172
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
173
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground group-data-[variant=destructive]/context-menu-item:text-destructive/80 ml-auto text-xs tracking-widest', className),
|
|
174
|
-
"data-slot": "context-menu-shortcut",
|
|
175
|
-
...props
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
function ContextMenuArrow({ className, ...props }) {
|
|
179
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Arrow, {
|
|
180
|
-
className: (0, tailwind_variants_namespaceObject.cn)('fill-popover', className),
|
|
181
|
-
"data-slot": "context-menu-arrow",
|
|
182
|
-
...props
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
exports.ContextMenu = __webpack_exports__.ContextMenu;
|
|
186
|
-
exports.ContextMenuArrow = __webpack_exports__.ContextMenuArrow;
|
|
187
|
-
exports.ContextMenuCheckboxItem = __webpack_exports__.ContextMenuCheckboxItem;
|
|
188
|
-
exports.ContextMenuContent = __webpack_exports__.ContextMenuContent;
|
|
189
|
-
exports.ContextMenuGroup = __webpack_exports__.ContextMenuGroup;
|
|
190
|
-
exports.ContextMenuItem = __webpack_exports__.ContextMenuItem;
|
|
191
|
-
exports.ContextMenuLabel = __webpack_exports__.ContextMenuLabel;
|
|
192
|
-
exports.ContextMenuRadioGroup = __webpack_exports__.ContextMenuRadioGroup;
|
|
193
|
-
exports.ContextMenuRadioItem = __webpack_exports__.ContextMenuRadioItem;
|
|
194
|
-
exports.ContextMenuSeparator = __webpack_exports__.ContextMenuSeparator;
|
|
195
|
-
exports.ContextMenuShortcut = __webpack_exports__.ContextMenuShortcut;
|
|
196
|
-
exports.ContextMenuSub = __webpack_exports__.ContextMenuSub;
|
|
197
|
-
exports.ContextMenuSubContent = __webpack_exports__.ContextMenuSubContent;
|
|
198
|
-
exports.ContextMenuSubTrigger = __webpack_exports__.ContextMenuSubTrigger;
|
|
199
|
-
exports.ContextMenuTrigger = __webpack_exports__.ContextMenuTrigger;
|
|
200
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
201
|
-
"ContextMenu",
|
|
202
|
-
"ContextMenuArrow",
|
|
203
|
-
"ContextMenuCheckboxItem",
|
|
204
|
-
"ContextMenuContent",
|
|
205
|
-
"ContextMenuGroup",
|
|
206
|
-
"ContextMenuItem",
|
|
207
|
-
"ContextMenuLabel",
|
|
208
|
-
"ContextMenuRadioGroup",
|
|
209
|
-
"ContextMenuRadioItem",
|
|
210
|
-
"ContextMenuSeparator",
|
|
211
|
-
"ContextMenuShortcut",
|
|
212
|
-
"ContextMenuSub",
|
|
213
|
-
"ContextMenuSubContent",
|
|
214
|
-
"ContextMenuSubTrigger",
|
|
215
|
-
"ContextMenuTrigger"
|
|
216
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
217
|
-
Object.defineProperty(exports, '__esModule', {
|
|
218
|
-
value: true
|
|
219
|
-
});
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __webpack_require__ = {};
|
|
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 ("u" > 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
|
-
DialogDescription: ()=>DialogDescription,
|
|
29
|
-
DialogTitle: ()=>DialogTitle,
|
|
30
|
-
DialogHeader: ()=>DialogHeader,
|
|
31
|
-
DialogBody: ()=>DialogBody,
|
|
32
|
-
DialogClose: ()=>DialogClose,
|
|
33
|
-
DialogTrigger: ()=>DialogTrigger,
|
|
34
|
-
DialogContent: ()=>DialogContent,
|
|
35
|
-
Dialog: ()=>Dialog,
|
|
36
|
-
DialogFooter: ()=>DialogFooter
|
|
37
|
-
});
|
|
38
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
-
const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
|
|
40
|
-
const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
|
|
41
|
-
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
42
|
-
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
43
|
-
function Dialog({ ...props }) {
|
|
44
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root, {
|
|
45
|
-
"data-slot": "dialog",
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function DialogTrigger({ ...props }) {
|
|
50
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger, {
|
|
51
|
-
"data-slot": "dialog-trigger",
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function DialogContent({ children, className, classNames, ...props }) {
|
|
56
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal, {
|
|
57
|
-
children: [
|
|
58
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay, {
|
|
59
|
-
className: (0, tailwind_variants_namespaceObject.cn)('data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50', classNames?.overlay),
|
|
60
|
-
"data-slot": "dialog-overlay"
|
|
61
|
-
}),
|
|
62
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Content, {
|
|
63
|
-
className: (0, tailwind_variants_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 ease-ui 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),
|
|
64
|
-
"data-slot": "dialog-content-wrapper",
|
|
65
|
-
...props,
|
|
66
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
67
|
-
className: (0, tailwind_variants_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),
|
|
68
|
-
"data-slot": "dialog-content",
|
|
69
|
-
children: [
|
|
70
|
-
children,
|
|
71
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close, {
|
|
72
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
73
|
-
className: [
|
|
74
|
-
'absolute top-2.5 right-2.5 size-7',
|
|
75
|
-
classNames?.close
|
|
76
|
-
],
|
|
77
|
-
size: 'icon',
|
|
78
|
-
variant: 'ghost'
|
|
79
|
-
}),
|
|
80
|
-
"data-slot": "dialog-close",
|
|
81
|
-
children: [
|
|
82
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon, {
|
|
83
|
-
className: "size-4"
|
|
84
|
-
}),
|
|
85
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
86
|
-
className: "sr-only",
|
|
87
|
-
children: "Close"
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
})
|
|
91
|
-
]
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
]
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function DialogHeader({ className, ...props }) {
|
|
98
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("header", {
|
|
99
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center sm:text-left', className),
|
|
100
|
-
"data-slot": "dialog-header",
|
|
101
|
-
...props
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function DialogBody({ className, ...props }) {
|
|
105
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
|
|
106
|
-
className: (0, tailwind_variants_namespaceObject.cn)('overflow-auto px-6 py-2', className),
|
|
107
|
-
"data-slot": "dialog-body",
|
|
108
|
-
...props
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function DialogFooter({ className, ...props }) {
|
|
112
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("footer", {
|
|
113
|
-
className: (0, tailwind_variants_namespaceObject.cn)('flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6 sm:flex-row sm:justify-end', className),
|
|
114
|
-
"data-slot": "dialog-footer",
|
|
115
|
-
...props
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function DialogTitle({ className, ...props }) {
|
|
119
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title, {
|
|
120
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-lg leading-none font-semibold tracking-tight', className),
|
|
121
|
-
"data-slot": "dialog-title",
|
|
122
|
-
...props
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
function DialogDescription({ className, ...props }) {
|
|
126
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description, {
|
|
127
|
-
className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground text-sm', className),
|
|
128
|
-
"data-slot": "dialog-description",
|
|
129
|
-
...props
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function DialogClose({ className, size, variant = 'outline', ...props }) {
|
|
133
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close, {
|
|
134
|
-
className: (0, external_button_cjs_namespaceObject.buttonVariants)({
|
|
135
|
-
className,
|
|
136
|
-
size,
|
|
137
|
-
variant
|
|
138
|
-
}),
|
|
139
|
-
"data-slot": "dialog-close",
|
|
140
|
-
...props
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
exports.Dialog = __webpack_exports__.Dialog;
|
|
144
|
-
exports.DialogBody = __webpack_exports__.DialogBody;
|
|
145
|
-
exports.DialogClose = __webpack_exports__.DialogClose;
|
|
146
|
-
exports.DialogContent = __webpack_exports__.DialogContent;
|
|
147
|
-
exports.DialogDescription = __webpack_exports__.DialogDescription;
|
|
148
|
-
exports.DialogFooter = __webpack_exports__.DialogFooter;
|
|
149
|
-
exports.DialogHeader = __webpack_exports__.DialogHeader;
|
|
150
|
-
exports.DialogTitle = __webpack_exports__.DialogTitle;
|
|
151
|
-
exports.DialogTrigger = __webpack_exports__.DialogTrigger;
|
|
152
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
153
|
-
"Dialog",
|
|
154
|
-
"DialogBody",
|
|
155
|
-
"DialogClose",
|
|
156
|
-
"DialogContent",
|
|
157
|
-
"DialogDescription",
|
|
158
|
-
"DialogFooter",
|
|
159
|
-
"DialogHeader",
|
|
160
|
-
"DialogTitle",
|
|
161
|
-
"DialogTrigger"
|
|
162
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
163
|
-
Object.defineProperty(exports, '__esModule', {
|
|
164
|
-
value: true
|
|
165
|
-
});
|