@appolabs/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4021 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +765 -0
- package/dist/index.d.ts +765 -0
- package/dist/index.js +3707 -0
- package/dist/index.js.map +1 -0
- package/dist/tailwind/preset.cjs +178 -0
- package/dist/tailwind/preset.js +143 -0
- package/package.json +145 -0
- package/src/styles/globals.css +13 -0
- package/src/styles/variables.css +102 -0
- package/tailwind/preset.ts +141 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,4021 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var clsx = require('clsx');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
var React36 = require('react');
|
|
6
|
+
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
7
|
+
var lucideReact = require('lucide-react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
10
|
+
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
11
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
12
|
+
var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
|
|
13
|
+
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
14
|
+
var reactDayPicker = require('react-day-picker');
|
|
15
|
+
var useEmblaCarousel = require('embla-carousel-react');
|
|
16
|
+
var RechartsPrimitive = require('recharts');
|
|
17
|
+
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
18
|
+
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
19
|
+
var cmdk = require('cmdk');
|
|
20
|
+
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
21
|
+
var ContextMenuPrimitive = require('@radix-ui/react-context-menu');
|
|
22
|
+
var vaul = require('vaul');
|
|
23
|
+
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
24
|
+
var reactHookForm = require('react-hook-form');
|
|
25
|
+
var LabelPrimitive = require('@radix-ui/react-label');
|
|
26
|
+
var HoverCardPrimitive = require('@radix-ui/react-hover-card');
|
|
27
|
+
var inputOtp = require('input-otp');
|
|
28
|
+
var MenubarPrimitive = require('@radix-ui/react-menubar');
|
|
29
|
+
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
30
|
+
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
31
|
+
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
32
|
+
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
33
|
+
var ResizablePrimitive = require('react-resizable-panels');
|
|
34
|
+
var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
|
|
35
|
+
var SelectPrimitive = require('@radix-ui/react-select');
|
|
36
|
+
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
37
|
+
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
38
|
+
var SliderPrimitive = require('@radix-ui/react-slider');
|
|
39
|
+
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
40
|
+
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
41
|
+
var ToastPrimitives = require('@radix-ui/react-toast');
|
|
42
|
+
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
43
|
+
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
44
|
+
|
|
45
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
46
|
+
|
|
47
|
+
function _interopNamespace(e) {
|
|
48
|
+
if (e && e.__esModule) return e;
|
|
49
|
+
var n = Object.create(null);
|
|
50
|
+
if (e) {
|
|
51
|
+
Object.keys(e).forEach(function (k) {
|
|
52
|
+
if (k !== 'default') {
|
|
53
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
54
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return e[k]; }
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
n.default = e;
|
|
62
|
+
return Object.freeze(n);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var React36__namespace = /*#__PURE__*/_interopNamespace(React36);
|
|
66
|
+
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
67
|
+
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
68
|
+
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
69
|
+
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
70
|
+
var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
71
|
+
var RechartsPrimitive__namespace = /*#__PURE__*/_interopNamespace(RechartsPrimitive);
|
|
72
|
+
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
73
|
+
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
74
|
+
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
75
|
+
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
|
76
|
+
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
77
|
+
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
78
|
+
var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
|
|
79
|
+
var MenubarPrimitive__namespace = /*#__PURE__*/_interopNamespace(MenubarPrimitive);
|
|
80
|
+
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
81
|
+
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
82
|
+
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
83
|
+
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
84
|
+
var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
|
|
85
|
+
var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
|
|
86
|
+
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
87
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
88
|
+
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
89
|
+
var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
|
|
90
|
+
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
91
|
+
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
92
|
+
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
93
|
+
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
|
|
94
|
+
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
95
|
+
|
|
96
|
+
function cn(...inputs) {
|
|
97
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
98
|
+
}
|
|
99
|
+
var MOBILE_BREAKPOINT = 768;
|
|
100
|
+
function useIsMobile() {
|
|
101
|
+
const [isMobile, setIsMobile] = React36__namespace.useState(void 0);
|
|
102
|
+
React36__namespace.useEffect(() => {
|
|
103
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
104
|
+
const onChange = () => {
|
|
105
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
106
|
+
};
|
|
107
|
+
mql.addEventListener("change", onChange);
|
|
108
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
109
|
+
return () => mql.removeEventListener("change", onChange);
|
|
110
|
+
}, []);
|
|
111
|
+
return !!isMobile;
|
|
112
|
+
}
|
|
113
|
+
var TOAST_LIMIT = 1;
|
|
114
|
+
var TOAST_REMOVE_DELAY = 1e6;
|
|
115
|
+
var count = 0;
|
|
116
|
+
function genId() {
|
|
117
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
118
|
+
return count.toString();
|
|
119
|
+
}
|
|
120
|
+
var toastTimeouts = /* @__PURE__ */ new Map();
|
|
121
|
+
var addToRemoveQueue = (toastId) => {
|
|
122
|
+
if (toastTimeouts.has(toastId)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const timeout = setTimeout(() => {
|
|
126
|
+
toastTimeouts.delete(toastId);
|
|
127
|
+
dispatch({
|
|
128
|
+
type: "REMOVE_TOAST",
|
|
129
|
+
toastId
|
|
130
|
+
});
|
|
131
|
+
}, TOAST_REMOVE_DELAY);
|
|
132
|
+
toastTimeouts.set(toastId, timeout);
|
|
133
|
+
};
|
|
134
|
+
var reducer = (state, action) => {
|
|
135
|
+
switch (action.type) {
|
|
136
|
+
case "ADD_TOAST":
|
|
137
|
+
return {
|
|
138
|
+
...state,
|
|
139
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
140
|
+
};
|
|
141
|
+
case "UPDATE_TOAST":
|
|
142
|
+
return {
|
|
143
|
+
...state,
|
|
144
|
+
toasts: state.toasts.map(
|
|
145
|
+
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
146
|
+
)
|
|
147
|
+
};
|
|
148
|
+
case "DISMISS_TOAST": {
|
|
149
|
+
const { toastId } = action;
|
|
150
|
+
if (toastId) {
|
|
151
|
+
addToRemoveQueue(toastId);
|
|
152
|
+
} else {
|
|
153
|
+
state.toasts.forEach((toast2) => {
|
|
154
|
+
addToRemoveQueue(toast2.id);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
...state,
|
|
159
|
+
toasts: state.toasts.map(
|
|
160
|
+
(t) => t.id === toastId || toastId === void 0 ? {
|
|
161
|
+
...t,
|
|
162
|
+
open: false
|
|
163
|
+
} : t
|
|
164
|
+
)
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
case "REMOVE_TOAST":
|
|
168
|
+
if (action.toastId === void 0) {
|
|
169
|
+
return {
|
|
170
|
+
...state,
|
|
171
|
+
toasts: []
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
...state,
|
|
176
|
+
toasts: state.toasts.filter((t) => t.id !== action.toastId)
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
var listeners = [];
|
|
181
|
+
var memoryState = { toasts: [] };
|
|
182
|
+
function dispatch(action) {
|
|
183
|
+
memoryState = reducer(memoryState, action);
|
|
184
|
+
listeners.forEach((listener) => {
|
|
185
|
+
listener(memoryState);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function toast({ ...props }) {
|
|
189
|
+
const id = genId();
|
|
190
|
+
const update = (props2) => dispatch({
|
|
191
|
+
type: "UPDATE_TOAST",
|
|
192
|
+
toast: { ...props2, id }
|
|
193
|
+
});
|
|
194
|
+
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
195
|
+
dispatch({
|
|
196
|
+
type: "ADD_TOAST",
|
|
197
|
+
toast: {
|
|
198
|
+
...props,
|
|
199
|
+
id,
|
|
200
|
+
open: true,
|
|
201
|
+
onOpenChange: (open) => {
|
|
202
|
+
if (!open) dismiss();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
return {
|
|
207
|
+
id,
|
|
208
|
+
dismiss,
|
|
209
|
+
update
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function useToast() {
|
|
213
|
+
const [state, setState] = React36__namespace.useState(memoryState);
|
|
214
|
+
React36__namespace.useEffect(() => {
|
|
215
|
+
listeners.push(setState);
|
|
216
|
+
return () => {
|
|
217
|
+
const index = listeners.indexOf(setState);
|
|
218
|
+
if (index > -1) {
|
|
219
|
+
listeners.splice(index, 1);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}, [state]);
|
|
223
|
+
return {
|
|
224
|
+
...state,
|
|
225
|
+
toast,
|
|
226
|
+
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
var Accordion = AccordionPrimitive__namespace.Root;
|
|
230
|
+
var AccordionItem = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
231
|
+
AccordionPrimitive__namespace.Item,
|
|
232
|
+
{
|
|
233
|
+
ref,
|
|
234
|
+
className: cn("border-b", className),
|
|
235
|
+
...props
|
|
236
|
+
}
|
|
237
|
+
));
|
|
238
|
+
AccordionItem.displayName = "AccordionItem";
|
|
239
|
+
var AccordionTrigger = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
240
|
+
AccordionPrimitive__namespace.Trigger,
|
|
241
|
+
{
|
|
242
|
+
ref,
|
|
243
|
+
className: cn(
|
|
244
|
+
"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
|
|
245
|
+
className
|
|
246
|
+
),
|
|
247
|
+
...props,
|
|
248
|
+
children: [
|
|
249
|
+
children,
|
|
250
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
) }));
|
|
254
|
+
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
255
|
+
var AccordionContent = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
256
|
+
AccordionPrimitive__namespace.Content,
|
|
257
|
+
{
|
|
258
|
+
ref,
|
|
259
|
+
className: "overflow-hidden text-base transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
260
|
+
...props,
|
|
261
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pb-4 pt-0", className), children })
|
|
262
|
+
}
|
|
263
|
+
));
|
|
264
|
+
AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
|
|
265
|
+
var alertVariants = classVarianceAuthority.cva(
|
|
266
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
267
|
+
{
|
|
268
|
+
variants: {
|
|
269
|
+
variant: {
|
|
270
|
+
default: "bg-background text-foreground",
|
|
271
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
defaultVariants: {
|
|
275
|
+
variant: "default"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
var Alert = React36__namespace.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
+
"div",
|
|
281
|
+
{
|
|
282
|
+
ref,
|
|
283
|
+
role: "alert",
|
|
284
|
+
className: cn(alertVariants({ variant }), className),
|
|
285
|
+
...props
|
|
286
|
+
}
|
|
287
|
+
));
|
|
288
|
+
Alert.displayName = "Alert";
|
|
289
|
+
var AlertTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
290
|
+
"h5",
|
|
291
|
+
{
|
|
292
|
+
ref,
|
|
293
|
+
className: cn("mb-1 font-medium leading-none tracking-tight", className),
|
|
294
|
+
...props
|
|
295
|
+
}
|
|
296
|
+
));
|
|
297
|
+
AlertTitle.displayName = "AlertTitle";
|
|
298
|
+
var AlertDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
299
|
+
"div",
|
|
300
|
+
{
|
|
301
|
+
ref,
|
|
302
|
+
className: cn("text-base [&_p]:leading-relaxed", className),
|
|
303
|
+
...props
|
|
304
|
+
}
|
|
305
|
+
));
|
|
306
|
+
AlertDescription.displayName = "AlertDescription";
|
|
307
|
+
var buttonVariants = classVarianceAuthority.cva(
|
|
308
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
309
|
+
{
|
|
310
|
+
variants: {
|
|
311
|
+
variant: {
|
|
312
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
313
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
314
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
315
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
316
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
317
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
318
|
+
},
|
|
319
|
+
size: {
|
|
320
|
+
default: "h-10 px-4 py-2",
|
|
321
|
+
sm: "h-9 rounded-md px-3",
|
|
322
|
+
lg: "h-11 rounded-md px-8",
|
|
323
|
+
icon: "h-10 w-10"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
defaultVariants: {
|
|
327
|
+
variant: "default",
|
|
328
|
+
size: "default"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
var Button = React36__namespace.forwardRef(
|
|
333
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
334
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
335
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
336
|
+
Comp,
|
|
337
|
+
{
|
|
338
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
339
|
+
ref,
|
|
340
|
+
...props
|
|
341
|
+
}
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
);
|
|
345
|
+
Button.displayName = "Button";
|
|
346
|
+
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
347
|
+
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
348
|
+
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
349
|
+
var AlertDialogOverlay = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
350
|
+
AlertDialogPrimitive__namespace.Overlay,
|
|
351
|
+
{
|
|
352
|
+
className: cn(
|
|
353
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
354
|
+
className
|
|
355
|
+
),
|
|
356
|
+
...props,
|
|
357
|
+
ref
|
|
358
|
+
}
|
|
359
|
+
));
|
|
360
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
361
|
+
var AlertDialogContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
362
|
+
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
363
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
364
|
+
AlertDialogPrimitive__namespace.Content,
|
|
365
|
+
{
|
|
366
|
+
ref,
|
|
367
|
+
className: cn(
|
|
368
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
369
|
+
className
|
|
370
|
+
),
|
|
371
|
+
...props
|
|
372
|
+
}
|
|
373
|
+
)
|
|
374
|
+
] }));
|
|
375
|
+
AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
|
|
376
|
+
var AlertDialogHeader = ({
|
|
377
|
+
className,
|
|
378
|
+
...props
|
|
379
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
380
|
+
"div",
|
|
381
|
+
{
|
|
382
|
+
className: cn(
|
|
383
|
+
"flex flex-col space-y-2 text-center sm:text-left",
|
|
384
|
+
className
|
|
385
|
+
),
|
|
386
|
+
...props
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
390
|
+
var AlertDialogFooter = ({
|
|
391
|
+
className,
|
|
392
|
+
...props
|
|
393
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
394
|
+
"div",
|
|
395
|
+
{
|
|
396
|
+
className: cn(
|
|
397
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
398
|
+
className
|
|
399
|
+
),
|
|
400
|
+
...props
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
404
|
+
var AlertDialogTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
405
|
+
AlertDialogPrimitive__namespace.Title,
|
|
406
|
+
{
|
|
407
|
+
ref,
|
|
408
|
+
className: cn("text-lg font-semibold", className),
|
|
409
|
+
...props
|
|
410
|
+
}
|
|
411
|
+
));
|
|
412
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
413
|
+
var AlertDialogDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
414
|
+
AlertDialogPrimitive__namespace.Description,
|
|
415
|
+
{
|
|
416
|
+
ref,
|
|
417
|
+
className: cn("text-base text-muted-foreground", className),
|
|
418
|
+
...props
|
|
419
|
+
}
|
|
420
|
+
));
|
|
421
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
422
|
+
var AlertDialogAction = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
423
|
+
AlertDialogPrimitive__namespace.Action,
|
|
424
|
+
{
|
|
425
|
+
ref,
|
|
426
|
+
className: cn(buttonVariants(), className),
|
|
427
|
+
...props
|
|
428
|
+
}
|
|
429
|
+
));
|
|
430
|
+
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
431
|
+
var AlertDialogCancel = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
|
+
AlertDialogPrimitive__namespace.Cancel,
|
|
433
|
+
{
|
|
434
|
+
ref,
|
|
435
|
+
className: cn(
|
|
436
|
+
buttonVariants({ variant: "outline" }),
|
|
437
|
+
"mt-2 sm:mt-0",
|
|
438
|
+
className
|
|
439
|
+
),
|
|
440
|
+
...props
|
|
441
|
+
}
|
|
442
|
+
));
|
|
443
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
444
|
+
var AnimatedBackground = React36__namespace.forwardRef(
|
|
445
|
+
({ className, variant = "default", showOrbs = true, showGrid = false, children, ...props }, ref) => {
|
|
446
|
+
const isDashboard = variant === "dashboard";
|
|
447
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
448
|
+
"div",
|
|
449
|
+
{
|
|
450
|
+
ref,
|
|
451
|
+
className: cn(
|
|
452
|
+
"relative min-h-screen overflow-hidden",
|
|
453
|
+
// Light mode backgrounds
|
|
454
|
+
variant === "default" && "bg-gradient-to-br from-slate-50 via-white to-slate-100",
|
|
455
|
+
variant === "subtle" && "bg-gradient-to-br from-blue-50/50 via-white to-violet-50/50",
|
|
456
|
+
variant === "vibrant" && "bg-gradient-to-br from-blue-100 via-white to-violet-100",
|
|
457
|
+
variant === "dashboard" && "bg-background",
|
|
458
|
+
// Dark mode backgrounds
|
|
459
|
+
!isDashboard && "dark:from-slate-950 dark:via-slate-900 dark:to-slate-950",
|
|
460
|
+
className
|
|
461
|
+
),
|
|
462
|
+
...props,
|
|
463
|
+
children: [
|
|
464
|
+
isDashboard && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 bg-mesh-gradient" }),
|
|
465
|
+
showGrid && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 bg-grid-pattern" }),
|
|
466
|
+
showOrbs && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
467
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
468
|
+
"div",
|
|
469
|
+
{
|
|
470
|
+
className: cn(
|
|
471
|
+
"pointer-events-none absolute rounded-full bg-gradient-to-br blur-3xl",
|
|
472
|
+
isDashboard ? "-left-32 -top-32 h-64 w-64 from-blue-500/10 to-violet-500/10 dark:from-blue-500/20 dark:to-violet-500/15" : "-left-40 -top-40 h-80 w-80 from-blue-400/20 to-violet-500/20 dark:from-blue-500/10 dark:to-violet-500/10",
|
|
473
|
+
"animate-float"
|
|
474
|
+
)
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
478
|
+
"div",
|
|
479
|
+
{
|
|
480
|
+
className: cn(
|
|
481
|
+
"pointer-events-none absolute rounded-full bg-gradient-to-br blur-3xl animate-float",
|
|
482
|
+
isDashboard ? "-right-32 top-1/3 h-72 w-72 from-violet-500/10 to-purple-500/10 dark:from-violet-500/15 dark:to-purple-500/10" : "-right-40 top-1/4 h-96 w-96 from-violet-400/20 to-pink-500/20 dark:from-violet-500/10 dark:to-pink-500/10"
|
|
483
|
+
),
|
|
484
|
+
style: { animationDelay: "-2s" }
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
!isDashboard && /* @__PURE__ */ jsxRuntime.jsx(
|
|
488
|
+
"div",
|
|
489
|
+
{
|
|
490
|
+
className: "pointer-events-none absolute -bottom-20 left-1/3 h-72 w-72 rounded-full bg-gradient-to-br from-blue-500/15 to-cyan-400/15 blur-3xl animate-float dark:from-blue-600/10 dark:to-cyan-500/10",
|
|
491
|
+
style: { animationDelay: "-4s" }
|
|
492
|
+
}
|
|
493
|
+
)
|
|
494
|
+
] }),
|
|
495
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-10", children })
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
);
|
|
501
|
+
AnimatedBackground.displayName = "AnimatedBackground";
|
|
502
|
+
var GradientOrb = React36__namespace.forwardRef(
|
|
503
|
+
({
|
|
504
|
+
className,
|
|
505
|
+
color = "blue",
|
|
506
|
+
size = "md",
|
|
507
|
+
position = "center",
|
|
508
|
+
blur = "lg",
|
|
509
|
+
animate = true,
|
|
510
|
+
...props
|
|
511
|
+
}, ref) => {
|
|
512
|
+
const colorClasses = {
|
|
513
|
+
blue: "from-blue-400/30 to-blue-600/20 dark:from-blue-500/15 dark:to-blue-700/10",
|
|
514
|
+
violet: "from-violet-400/30 to-violet-500/20 dark:from-violet-500/15 dark:to-violet-600/10",
|
|
515
|
+
pink: "from-pink-400/30 to-pink-600/20 dark:from-pink-500/15 dark:to-pink-700/10",
|
|
516
|
+
cyan: "from-cyan-400/30 to-cyan-600/20 dark:from-cyan-500/15 dark:to-cyan-700/10"
|
|
517
|
+
};
|
|
518
|
+
const sizeClasses = {
|
|
519
|
+
sm: "h-32 w-32",
|
|
520
|
+
md: "h-64 w-64",
|
|
521
|
+
lg: "h-96 w-96",
|
|
522
|
+
xl: "h-[32rem] w-[32rem]"
|
|
523
|
+
};
|
|
524
|
+
const positionClasses = {
|
|
525
|
+
"top-left": "-left-20 -top-20",
|
|
526
|
+
"top-right": "-right-20 -top-20",
|
|
527
|
+
"bottom-left": "-left-20 -bottom-20",
|
|
528
|
+
"bottom-right": "-right-20 -bottom-20",
|
|
529
|
+
"center": "left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
530
|
+
};
|
|
531
|
+
const blurClasses = {
|
|
532
|
+
sm: "blur-xl",
|
|
533
|
+
md: "blur-2xl",
|
|
534
|
+
lg: "blur-3xl",
|
|
535
|
+
xl: "blur-[100px]"
|
|
536
|
+
};
|
|
537
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
538
|
+
"div",
|
|
539
|
+
{
|
|
540
|
+
ref,
|
|
541
|
+
className: cn(
|
|
542
|
+
"pointer-events-none absolute rounded-full bg-gradient-to-br",
|
|
543
|
+
colorClasses[color],
|
|
544
|
+
sizeClasses[size],
|
|
545
|
+
positionClasses[position],
|
|
546
|
+
blurClasses[blur],
|
|
547
|
+
animate && "animate-float",
|
|
548
|
+
className
|
|
549
|
+
),
|
|
550
|
+
...props
|
|
551
|
+
}
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
GradientOrb.displayName = "GradientOrb";
|
|
556
|
+
var AspectRatio = AspectRatioPrimitive__namespace.Root;
|
|
557
|
+
var Avatar = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
558
|
+
AvatarPrimitive__namespace.Root,
|
|
559
|
+
{
|
|
560
|
+
ref,
|
|
561
|
+
className: cn(
|
|
562
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
563
|
+
className
|
|
564
|
+
),
|
|
565
|
+
...props
|
|
566
|
+
}
|
|
567
|
+
));
|
|
568
|
+
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
569
|
+
var AvatarImage = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
570
|
+
AvatarPrimitive__namespace.Image,
|
|
571
|
+
{
|
|
572
|
+
ref,
|
|
573
|
+
className: cn("aspect-square h-full w-full", className),
|
|
574
|
+
...props
|
|
575
|
+
}
|
|
576
|
+
));
|
|
577
|
+
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
578
|
+
var AvatarFallback = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
579
|
+
AvatarPrimitive__namespace.Fallback,
|
|
580
|
+
{
|
|
581
|
+
ref,
|
|
582
|
+
className: cn(
|
|
583
|
+
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
584
|
+
className
|
|
585
|
+
),
|
|
586
|
+
...props
|
|
587
|
+
}
|
|
588
|
+
));
|
|
589
|
+
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
590
|
+
var badgeVariants = classVarianceAuthority.cva(
|
|
591
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
592
|
+
{
|
|
593
|
+
variants: {
|
|
594
|
+
variant: {
|
|
595
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
596
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
597
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
598
|
+
outline: "text-foreground"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
defaultVariants: {
|
|
602
|
+
variant: "default"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
);
|
|
606
|
+
function Badge({ className, variant, ...props }) {
|
|
607
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
608
|
+
}
|
|
609
|
+
var Breadcrumb = React36__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
610
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
611
|
+
var BreadcrumbList = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
612
|
+
"ol",
|
|
613
|
+
{
|
|
614
|
+
ref,
|
|
615
|
+
className: cn(
|
|
616
|
+
"flex flex-wrap items-center gap-1.5 break-words text-base text-muted-foreground sm:gap-2.5",
|
|
617
|
+
className
|
|
618
|
+
),
|
|
619
|
+
...props
|
|
620
|
+
}
|
|
621
|
+
));
|
|
622
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
623
|
+
var BreadcrumbItem = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
624
|
+
"li",
|
|
625
|
+
{
|
|
626
|
+
ref,
|
|
627
|
+
className: cn("inline-flex items-center gap-1.5", className),
|
|
628
|
+
...props
|
|
629
|
+
}
|
|
630
|
+
));
|
|
631
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
632
|
+
var BreadcrumbLink = React36__namespace.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
633
|
+
const Comp = asChild ? reactSlot.Slot : "a";
|
|
634
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
635
|
+
Comp,
|
|
636
|
+
{
|
|
637
|
+
ref,
|
|
638
|
+
className: cn("transition-colors hover:text-foreground", className),
|
|
639
|
+
...props
|
|
640
|
+
}
|
|
641
|
+
);
|
|
642
|
+
});
|
|
643
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
644
|
+
var BreadcrumbPage = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
645
|
+
"span",
|
|
646
|
+
{
|
|
647
|
+
ref,
|
|
648
|
+
role: "link",
|
|
649
|
+
"aria-disabled": "true",
|
|
650
|
+
"aria-current": "page",
|
|
651
|
+
className: cn("font-normal text-foreground", className),
|
|
652
|
+
...props
|
|
653
|
+
}
|
|
654
|
+
));
|
|
655
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
656
|
+
var BreadcrumbSeparator = ({
|
|
657
|
+
children,
|
|
658
|
+
className,
|
|
659
|
+
...props
|
|
660
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
661
|
+
"li",
|
|
662
|
+
{
|
|
663
|
+
role: "presentation",
|
|
664
|
+
"aria-hidden": "true",
|
|
665
|
+
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
666
|
+
...props,
|
|
667
|
+
children: children ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, {})
|
|
668
|
+
}
|
|
669
|
+
);
|
|
670
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
671
|
+
var BreadcrumbEllipsis = ({
|
|
672
|
+
className,
|
|
673
|
+
...props
|
|
674
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
675
|
+
"span",
|
|
676
|
+
{
|
|
677
|
+
role: "presentation",
|
|
678
|
+
"aria-hidden": "true",
|
|
679
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
680
|
+
...props,
|
|
681
|
+
children: [
|
|
682
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }),
|
|
683
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More" })
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
);
|
|
687
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
688
|
+
function Calendar({
|
|
689
|
+
className,
|
|
690
|
+
classNames,
|
|
691
|
+
showOutsideDays = true,
|
|
692
|
+
...props
|
|
693
|
+
}) {
|
|
694
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
695
|
+
reactDayPicker.DayPicker,
|
|
696
|
+
{
|
|
697
|
+
showOutsideDays,
|
|
698
|
+
className: cn("p-3", className),
|
|
699
|
+
classNames: {
|
|
700
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
701
|
+
month: "space-y-4",
|
|
702
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
703
|
+
caption_label: "text-base font-medium",
|
|
704
|
+
nav: "space-x-1 flex items-center",
|
|
705
|
+
nav_button: cn(
|
|
706
|
+
buttonVariants({ variant: "outline" }),
|
|
707
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
708
|
+
),
|
|
709
|
+
nav_button_previous: "absolute left-1",
|
|
710
|
+
nav_button_next: "absolute right-1",
|
|
711
|
+
table: "w-full border-collapse space-y-1",
|
|
712
|
+
head_row: "flex",
|
|
713
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
714
|
+
row: "flex w-full mt-2",
|
|
715
|
+
cell: "h-9 w-9 text-center text-base p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
716
|
+
day: cn(
|
|
717
|
+
buttonVariants({ variant: "ghost" }),
|
|
718
|
+
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
719
|
+
),
|
|
720
|
+
day_range_end: "day-range-end",
|
|
721
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
722
|
+
day_today: "bg-accent text-accent-foreground",
|
|
723
|
+
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
724
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
725
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
726
|
+
day_hidden: "invisible",
|
|
727
|
+
...classNames
|
|
728
|
+
},
|
|
729
|
+
components: {
|
|
730
|
+
Chevron: ({ orientation }) => {
|
|
731
|
+
const Icon2 = orientation === "left" ? lucideReact.ChevronLeft : lucideReact.ChevronRight;
|
|
732
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "h-4 w-4" });
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
...props
|
|
736
|
+
}
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
Calendar.displayName = "Calendar";
|
|
740
|
+
var Card = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
741
|
+
"div",
|
|
742
|
+
{
|
|
743
|
+
ref,
|
|
744
|
+
className: cn(
|
|
745
|
+
"flex flex-col rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
746
|
+
className
|
|
747
|
+
),
|
|
748
|
+
...props
|
|
749
|
+
}
|
|
750
|
+
));
|
|
751
|
+
Card.displayName = "Card";
|
|
752
|
+
var CardHeader = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
753
|
+
"div",
|
|
754
|
+
{
|
|
755
|
+
ref,
|
|
756
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
757
|
+
...props
|
|
758
|
+
}
|
|
759
|
+
));
|
|
760
|
+
CardHeader.displayName = "CardHeader";
|
|
761
|
+
var CardTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
762
|
+
"h3",
|
|
763
|
+
{
|
|
764
|
+
ref,
|
|
765
|
+
className: cn(
|
|
766
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
767
|
+
className
|
|
768
|
+
),
|
|
769
|
+
...props
|
|
770
|
+
}
|
|
771
|
+
));
|
|
772
|
+
CardTitle.displayName = "CardTitle";
|
|
773
|
+
var CardDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
774
|
+
"p",
|
|
775
|
+
{
|
|
776
|
+
ref,
|
|
777
|
+
className: cn("text-base text-muted-foreground", className),
|
|
778
|
+
...props
|
|
779
|
+
}
|
|
780
|
+
));
|
|
781
|
+
CardDescription.displayName = "CardDescription";
|
|
782
|
+
var CardContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex-1 p-6 pt-0", className), ...props }));
|
|
783
|
+
CardContent.displayName = "CardContent";
|
|
784
|
+
var CardFooter = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
785
|
+
"div",
|
|
786
|
+
{
|
|
787
|
+
ref,
|
|
788
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
789
|
+
...props
|
|
790
|
+
}
|
|
791
|
+
));
|
|
792
|
+
CardFooter.displayName = "CardFooter";
|
|
793
|
+
var CarouselContext = React36__namespace.createContext(null);
|
|
794
|
+
function useCarousel() {
|
|
795
|
+
const context = React36__namespace.useContext(CarouselContext);
|
|
796
|
+
if (!context) {
|
|
797
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
798
|
+
}
|
|
799
|
+
return context;
|
|
800
|
+
}
|
|
801
|
+
var Carousel = React36__namespace.forwardRef(
|
|
802
|
+
({
|
|
803
|
+
orientation = "horizontal",
|
|
804
|
+
opts,
|
|
805
|
+
setApi,
|
|
806
|
+
plugins,
|
|
807
|
+
className,
|
|
808
|
+
children,
|
|
809
|
+
...props
|
|
810
|
+
}, ref) => {
|
|
811
|
+
const [carouselRef, api] = useEmblaCarousel__default.default(
|
|
812
|
+
{
|
|
813
|
+
...opts,
|
|
814
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
815
|
+
},
|
|
816
|
+
plugins
|
|
817
|
+
);
|
|
818
|
+
const [canScrollPrev, setCanScrollPrev] = React36__namespace.useState(false);
|
|
819
|
+
const [canScrollNext, setCanScrollNext] = React36__namespace.useState(false);
|
|
820
|
+
const onSelect = React36__namespace.useCallback((api2) => {
|
|
821
|
+
if (!api2) {
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
825
|
+
setCanScrollNext(api2.canScrollNext());
|
|
826
|
+
}, []);
|
|
827
|
+
const scrollPrev = React36__namespace.useCallback(() => {
|
|
828
|
+
api?.scrollPrev();
|
|
829
|
+
}, [api]);
|
|
830
|
+
const scrollNext = React36__namespace.useCallback(() => {
|
|
831
|
+
api?.scrollNext();
|
|
832
|
+
}, [api]);
|
|
833
|
+
const handleKeyDown = React36__namespace.useCallback(
|
|
834
|
+
(event) => {
|
|
835
|
+
if (event.key === "ArrowLeft") {
|
|
836
|
+
event.preventDefault();
|
|
837
|
+
scrollPrev();
|
|
838
|
+
} else if (event.key === "ArrowRight") {
|
|
839
|
+
event.preventDefault();
|
|
840
|
+
scrollNext();
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
[scrollPrev, scrollNext]
|
|
844
|
+
);
|
|
845
|
+
React36__namespace.useEffect(() => {
|
|
846
|
+
if (!api || !setApi) {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
setApi(api);
|
|
850
|
+
}, [api, setApi]);
|
|
851
|
+
React36__namespace.useEffect(() => {
|
|
852
|
+
if (!api) {
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
onSelect(api);
|
|
856
|
+
api.on("reInit", onSelect);
|
|
857
|
+
api.on("select", onSelect);
|
|
858
|
+
return () => {
|
|
859
|
+
api?.off("select", onSelect);
|
|
860
|
+
};
|
|
861
|
+
}, [api, onSelect]);
|
|
862
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
863
|
+
CarouselContext.Provider,
|
|
864
|
+
{
|
|
865
|
+
value: {
|
|
866
|
+
carouselRef,
|
|
867
|
+
api,
|
|
868
|
+
opts,
|
|
869
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
870
|
+
scrollPrev,
|
|
871
|
+
scrollNext,
|
|
872
|
+
canScrollPrev,
|
|
873
|
+
canScrollNext
|
|
874
|
+
},
|
|
875
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
876
|
+
"div",
|
|
877
|
+
{
|
|
878
|
+
ref,
|
|
879
|
+
onKeyDownCapture: handleKeyDown,
|
|
880
|
+
className: cn("relative", className),
|
|
881
|
+
role: "region",
|
|
882
|
+
"aria-roledescription": "carousel",
|
|
883
|
+
...props,
|
|
884
|
+
children
|
|
885
|
+
}
|
|
886
|
+
)
|
|
887
|
+
}
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
);
|
|
891
|
+
Carousel.displayName = "Carousel";
|
|
892
|
+
var CarouselContent = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
893
|
+
const { carouselRef, orientation } = useCarousel();
|
|
894
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
895
|
+
"div",
|
|
896
|
+
{
|
|
897
|
+
ref,
|
|
898
|
+
className: cn(
|
|
899
|
+
"flex",
|
|
900
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
901
|
+
className
|
|
902
|
+
),
|
|
903
|
+
...props
|
|
904
|
+
}
|
|
905
|
+
) });
|
|
906
|
+
});
|
|
907
|
+
CarouselContent.displayName = "CarouselContent";
|
|
908
|
+
var CarouselItem = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
909
|
+
const { orientation } = useCarousel();
|
|
910
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
911
|
+
"div",
|
|
912
|
+
{
|
|
913
|
+
ref,
|
|
914
|
+
role: "group",
|
|
915
|
+
"aria-roledescription": "slide",
|
|
916
|
+
className: cn(
|
|
917
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
918
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
919
|
+
className
|
|
920
|
+
),
|
|
921
|
+
...props
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
});
|
|
925
|
+
CarouselItem.displayName = "CarouselItem";
|
|
926
|
+
var CarouselPrevious = React36__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
927
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
928
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
929
|
+
Button,
|
|
930
|
+
{
|
|
931
|
+
ref,
|
|
932
|
+
variant,
|
|
933
|
+
size,
|
|
934
|
+
className: cn(
|
|
935
|
+
"absolute h-8 w-8 rounded-full",
|
|
936
|
+
orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
937
|
+
className
|
|
938
|
+
),
|
|
939
|
+
disabled: !canScrollPrev,
|
|
940
|
+
onClick: scrollPrev,
|
|
941
|
+
...props,
|
|
942
|
+
children: [
|
|
943
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "h-4 w-4" }),
|
|
944
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
);
|
|
948
|
+
});
|
|
949
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
950
|
+
var CarouselNext = React36__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
951
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
952
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
953
|
+
Button,
|
|
954
|
+
{
|
|
955
|
+
ref,
|
|
956
|
+
variant,
|
|
957
|
+
size,
|
|
958
|
+
className: cn(
|
|
959
|
+
"absolute h-8 w-8 rounded-full",
|
|
960
|
+
orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
961
|
+
className
|
|
962
|
+
),
|
|
963
|
+
disabled: !canScrollNext,
|
|
964
|
+
onClick: scrollNext,
|
|
965
|
+
...props,
|
|
966
|
+
children: [
|
|
967
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-4 w-4" }),
|
|
968
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
);
|
|
972
|
+
});
|
|
973
|
+
CarouselNext.displayName = "CarouselNext";
|
|
974
|
+
var THEMES = { light: "", dark: ".dark" };
|
|
975
|
+
var ChartContext = React36__namespace.createContext(null);
|
|
976
|
+
function useChart() {
|
|
977
|
+
const context = React36__namespace.useContext(ChartContext);
|
|
978
|
+
if (!context) {
|
|
979
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
980
|
+
}
|
|
981
|
+
return context;
|
|
982
|
+
}
|
|
983
|
+
var ChartContainer = React36__namespace.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
984
|
+
const uniqueId = React36__namespace.useId();
|
|
985
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
986
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
987
|
+
"div",
|
|
988
|
+
{
|
|
989
|
+
"data-chart": chartId,
|
|
990
|
+
ref,
|
|
991
|
+
className: cn(
|
|
992
|
+
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
|
|
993
|
+
className
|
|
994
|
+
),
|
|
995
|
+
...props,
|
|
996
|
+
children: [
|
|
997
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChartStyle, { id: chartId, config }),
|
|
998
|
+
/* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive__namespace.ResponsiveContainer, { children })
|
|
999
|
+
]
|
|
1000
|
+
}
|
|
1001
|
+
) });
|
|
1002
|
+
});
|
|
1003
|
+
ChartContainer.displayName = "Chart";
|
|
1004
|
+
var ChartStyle = ({ id, config }) => {
|
|
1005
|
+
const colorConfig = Object.entries(config).filter(
|
|
1006
|
+
([_, config2]) => config2.theme || config2.color
|
|
1007
|
+
);
|
|
1008
|
+
if (!colorConfig.length) {
|
|
1009
|
+
return null;
|
|
1010
|
+
}
|
|
1011
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1012
|
+
"style",
|
|
1013
|
+
{
|
|
1014
|
+
dangerouslySetInnerHTML: {
|
|
1015
|
+
__html: Object.entries(THEMES).map(
|
|
1016
|
+
([theme, prefix]) => `
|
|
1017
|
+
${prefix} [data-chart=${id}] {
|
|
1018
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
1019
|
+
const color = itemConfig.theme?.[theme] || itemConfig.color;
|
|
1020
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
1021
|
+
}).join("\n")}
|
|
1022
|
+
}
|
|
1023
|
+
`
|
|
1024
|
+
).join("\n")
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
);
|
|
1028
|
+
};
|
|
1029
|
+
var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
|
|
1030
|
+
var ChartTooltipContent = React36__namespace.forwardRef(
|
|
1031
|
+
({
|
|
1032
|
+
active,
|
|
1033
|
+
payload,
|
|
1034
|
+
className,
|
|
1035
|
+
indicator = "dot",
|
|
1036
|
+
hideLabel = false,
|
|
1037
|
+
hideIndicator = false,
|
|
1038
|
+
label,
|
|
1039
|
+
labelFormatter,
|
|
1040
|
+
labelClassName,
|
|
1041
|
+
formatter,
|
|
1042
|
+
color,
|
|
1043
|
+
nameKey,
|
|
1044
|
+
labelKey
|
|
1045
|
+
}, ref) => {
|
|
1046
|
+
const { config } = useChart();
|
|
1047
|
+
const tooltipLabel = React36__namespace.useMemo(() => {
|
|
1048
|
+
if (hideLabel || !payload?.length) {
|
|
1049
|
+
return null;
|
|
1050
|
+
}
|
|
1051
|
+
const [item] = payload;
|
|
1052
|
+
const key = `${labelKey || item.dataKey || item.name || "value"}`;
|
|
1053
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1054
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1055
|
+
if (labelFormatter) {
|
|
1056
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
1057
|
+
}
|
|
1058
|
+
if (!value) {
|
|
1059
|
+
return null;
|
|
1060
|
+
}
|
|
1061
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("font-medium", labelClassName), children: value });
|
|
1062
|
+
}, [
|
|
1063
|
+
label,
|
|
1064
|
+
labelFormatter,
|
|
1065
|
+
payload,
|
|
1066
|
+
hideLabel,
|
|
1067
|
+
labelClassName,
|
|
1068
|
+
config,
|
|
1069
|
+
labelKey
|
|
1070
|
+
]);
|
|
1071
|
+
if (!active || !payload?.length) {
|
|
1072
|
+
return null;
|
|
1073
|
+
}
|
|
1074
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1075
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1076
|
+
"div",
|
|
1077
|
+
{
|
|
1078
|
+
ref,
|
|
1079
|
+
className: cn(
|
|
1080
|
+
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
1081
|
+
className
|
|
1082
|
+
),
|
|
1083
|
+
children: [
|
|
1084
|
+
!nestLabel ? tooltipLabel : null,
|
|
1085
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
1086
|
+
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1087
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1088
|
+
const indicatorColor = color || item.payload.fill || item.color;
|
|
1089
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1090
|
+
"div",
|
|
1091
|
+
{
|
|
1092
|
+
className: cn(
|
|
1093
|
+
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
1094
|
+
indicator === "dot" && "items-center"
|
|
1095
|
+
),
|
|
1096
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1097
|
+
itemConfig?.icon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1098
|
+
"div",
|
|
1099
|
+
{
|
|
1100
|
+
className: cn(
|
|
1101
|
+
"shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
|
|
1102
|
+
{
|
|
1103
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
1104
|
+
"w-1": indicator === "line",
|
|
1105
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
1106
|
+
"my-0.5": nestLabel && indicator === "dashed"
|
|
1107
|
+
}
|
|
1108
|
+
),
|
|
1109
|
+
style: {
|
|
1110
|
+
"--color-bg": indicatorColor,
|
|
1111
|
+
"--color-border": indicatorColor
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
),
|
|
1115
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1116
|
+
"div",
|
|
1117
|
+
{
|
|
1118
|
+
className: cn(
|
|
1119
|
+
"flex flex-1 justify-between leading-none",
|
|
1120
|
+
nestLabel ? "items-end" : "items-center"
|
|
1121
|
+
),
|
|
1122
|
+
children: [
|
|
1123
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1.5", children: [
|
|
1124
|
+
nestLabel ? tooltipLabel : null,
|
|
1125
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
1126
|
+
] }),
|
|
1127
|
+
item.value && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
1128
|
+
]
|
|
1129
|
+
}
|
|
1130
|
+
)
|
|
1131
|
+
] })
|
|
1132
|
+
},
|
|
1133
|
+
item.dataKey
|
|
1134
|
+
);
|
|
1135
|
+
}) })
|
|
1136
|
+
]
|
|
1137
|
+
}
|
|
1138
|
+
);
|
|
1139
|
+
}
|
|
1140
|
+
);
|
|
1141
|
+
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1142
|
+
var ChartLegend = RechartsPrimitive__namespace.Legend;
|
|
1143
|
+
var ChartLegendContent = React36__namespace.forwardRef(
|
|
1144
|
+
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1145
|
+
const { config } = useChart();
|
|
1146
|
+
if (!payload?.length) {
|
|
1147
|
+
return null;
|
|
1148
|
+
}
|
|
1149
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1150
|
+
"div",
|
|
1151
|
+
{
|
|
1152
|
+
ref,
|
|
1153
|
+
className: cn(
|
|
1154
|
+
"flex items-center justify-center gap-4",
|
|
1155
|
+
verticalAlign === "top" ? "pb-3" : "pt-3",
|
|
1156
|
+
className
|
|
1157
|
+
),
|
|
1158
|
+
children: payload.map((item) => {
|
|
1159
|
+
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1160
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1161
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1162
|
+
"div",
|
|
1163
|
+
{
|
|
1164
|
+
className: cn(
|
|
1165
|
+
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
1166
|
+
),
|
|
1167
|
+
children: [
|
|
1168
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsxRuntime.jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1169
|
+
"div",
|
|
1170
|
+
{
|
|
1171
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
1172
|
+
style: {
|
|
1173
|
+
backgroundColor: item.color
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
),
|
|
1177
|
+
itemConfig?.label
|
|
1178
|
+
]
|
|
1179
|
+
},
|
|
1180
|
+
item.value
|
|
1181
|
+
);
|
|
1182
|
+
})
|
|
1183
|
+
}
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
);
|
|
1187
|
+
ChartLegendContent.displayName = "ChartLegend";
|
|
1188
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
1189
|
+
if (typeof payload !== "object" || payload === null) {
|
|
1190
|
+
return void 0;
|
|
1191
|
+
}
|
|
1192
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
1193
|
+
let configLabelKey = key;
|
|
1194
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
1195
|
+
configLabelKey = payload[key];
|
|
1196
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
1197
|
+
configLabelKey = payloadPayload[key];
|
|
1198
|
+
}
|
|
1199
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1200
|
+
}
|
|
1201
|
+
var Checkbox = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1202
|
+
CheckboxPrimitive__namespace.Root,
|
|
1203
|
+
{
|
|
1204
|
+
ref,
|
|
1205
|
+
className: cn(
|
|
1206
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
1207
|
+
className
|
|
1208
|
+
),
|
|
1209
|
+
...props,
|
|
1210
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1211
|
+
CheckboxPrimitive__namespace.Indicator,
|
|
1212
|
+
{
|
|
1213
|
+
className: cn("flex items-center justify-center text-current"),
|
|
1214
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" })
|
|
1215
|
+
}
|
|
1216
|
+
)
|
|
1217
|
+
}
|
|
1218
|
+
));
|
|
1219
|
+
Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
|
|
1220
|
+
var Collapsible = CollapsiblePrimitive__namespace.Root;
|
|
1221
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive__namespace.CollapsibleTrigger;
|
|
1222
|
+
var CollapsibleContent2 = CollapsiblePrimitive__namespace.CollapsibleContent;
|
|
1223
|
+
var Dialog = DialogPrimitive__namespace.Root;
|
|
1224
|
+
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
1225
|
+
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
1226
|
+
var DialogClose = DialogPrimitive__namespace.Close;
|
|
1227
|
+
var DialogOverlay = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1228
|
+
DialogPrimitive__namespace.Overlay,
|
|
1229
|
+
{
|
|
1230
|
+
ref,
|
|
1231
|
+
className: cn(
|
|
1232
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1233
|
+
className
|
|
1234
|
+
),
|
|
1235
|
+
...props
|
|
1236
|
+
}
|
|
1237
|
+
));
|
|
1238
|
+
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
1239
|
+
var DialogContent = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
1240
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
1241
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1242
|
+
DialogPrimitive__namespace.Content,
|
|
1243
|
+
{
|
|
1244
|
+
ref,
|
|
1245
|
+
className: cn(
|
|
1246
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
1247
|
+
className
|
|
1248
|
+
),
|
|
1249
|
+
...props,
|
|
1250
|
+
children: [
|
|
1251
|
+
children,
|
|
1252
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1253
|
+
DialogPrimitive__namespace.Close,
|
|
1254
|
+
{
|
|
1255
|
+
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
1256
|
+
children: [
|
|
1257
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
1258
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
1261
|
+
)
|
|
1262
|
+
]
|
|
1263
|
+
}
|
|
1264
|
+
)
|
|
1265
|
+
] }));
|
|
1266
|
+
DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
1267
|
+
var DialogHeader = ({
|
|
1268
|
+
className,
|
|
1269
|
+
...props
|
|
1270
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1271
|
+
"div",
|
|
1272
|
+
{
|
|
1273
|
+
className: cn(
|
|
1274
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
1275
|
+
className
|
|
1276
|
+
),
|
|
1277
|
+
...props
|
|
1278
|
+
}
|
|
1279
|
+
);
|
|
1280
|
+
DialogHeader.displayName = "DialogHeader";
|
|
1281
|
+
var DialogFooter = ({
|
|
1282
|
+
className,
|
|
1283
|
+
...props
|
|
1284
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1285
|
+
"div",
|
|
1286
|
+
{
|
|
1287
|
+
className: cn(
|
|
1288
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
1289
|
+
className
|
|
1290
|
+
),
|
|
1291
|
+
...props
|
|
1292
|
+
}
|
|
1293
|
+
);
|
|
1294
|
+
DialogFooter.displayName = "DialogFooter";
|
|
1295
|
+
var DialogTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1296
|
+
DialogPrimitive__namespace.Title,
|
|
1297
|
+
{
|
|
1298
|
+
ref,
|
|
1299
|
+
className: cn(
|
|
1300
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
1301
|
+
className
|
|
1302
|
+
),
|
|
1303
|
+
...props
|
|
1304
|
+
}
|
|
1305
|
+
));
|
|
1306
|
+
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
1307
|
+
var DialogDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1308
|
+
DialogPrimitive__namespace.Description,
|
|
1309
|
+
{
|
|
1310
|
+
ref,
|
|
1311
|
+
className: cn("text-base text-muted-foreground", className),
|
|
1312
|
+
...props
|
|
1313
|
+
}
|
|
1314
|
+
));
|
|
1315
|
+
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
1316
|
+
var Command = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1317
|
+
cmdk.Command,
|
|
1318
|
+
{
|
|
1319
|
+
ref,
|
|
1320
|
+
className: cn(
|
|
1321
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
1322
|
+
className
|
|
1323
|
+
),
|
|
1324
|
+
...props
|
|
1325
|
+
}
|
|
1326
|
+
));
|
|
1327
|
+
Command.displayName = cmdk.Command.displayName;
|
|
1328
|
+
var CommandDialog = ({ children, ...props }) => {
|
|
1329
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg rounded-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1330
|
+
Command,
|
|
1331
|
+
{
|
|
1332
|
+
className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
1333
|
+
children
|
|
1334
|
+
}
|
|
1335
|
+
) }) });
|
|
1336
|
+
};
|
|
1337
|
+
var CommandInput = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1338
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1339
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1340
|
+
cmdk.Command.Input,
|
|
1341
|
+
{
|
|
1342
|
+
ref,
|
|
1343
|
+
className: cn(
|
|
1344
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1345
|
+
className
|
|
1346
|
+
),
|
|
1347
|
+
...props
|
|
1348
|
+
}
|
|
1349
|
+
)
|
|
1350
|
+
] }));
|
|
1351
|
+
CommandInput.displayName = cmdk.Command.Input.displayName;
|
|
1352
|
+
var CommandList = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1353
|
+
cmdk.Command.List,
|
|
1354
|
+
{
|
|
1355
|
+
ref,
|
|
1356
|
+
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
1357
|
+
...props
|
|
1358
|
+
}
|
|
1359
|
+
));
|
|
1360
|
+
CommandList.displayName = cmdk.Command.List.displayName;
|
|
1361
|
+
var CommandEmpty = React36__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1362
|
+
cmdk.Command.Empty,
|
|
1363
|
+
{
|
|
1364
|
+
ref,
|
|
1365
|
+
className: "py-6 text-center text-base",
|
|
1366
|
+
...props
|
|
1367
|
+
}
|
|
1368
|
+
));
|
|
1369
|
+
CommandEmpty.displayName = cmdk.Command.Empty.displayName;
|
|
1370
|
+
var CommandGroup = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1371
|
+
cmdk.Command.Group,
|
|
1372
|
+
{
|
|
1373
|
+
ref,
|
|
1374
|
+
className: cn(
|
|
1375
|
+
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
1376
|
+
className
|
|
1377
|
+
),
|
|
1378
|
+
...props
|
|
1379
|
+
}
|
|
1380
|
+
));
|
|
1381
|
+
CommandGroup.displayName = cmdk.Command.Group.displayName;
|
|
1382
|
+
var CommandSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
|
+
cmdk.Command.Separator,
|
|
1384
|
+
{
|
|
1385
|
+
ref,
|
|
1386
|
+
className: cn("-mx-1 h-px bg-border", className),
|
|
1387
|
+
...props
|
|
1388
|
+
}
|
|
1389
|
+
));
|
|
1390
|
+
CommandSeparator.displayName = cmdk.Command.Separator.displayName;
|
|
1391
|
+
var CommandItem = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1392
|
+
cmdk.Command.Item,
|
|
1393
|
+
{
|
|
1394
|
+
ref,
|
|
1395
|
+
className: cn(
|
|
1396
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
1397
|
+
className
|
|
1398
|
+
),
|
|
1399
|
+
...props
|
|
1400
|
+
}
|
|
1401
|
+
));
|
|
1402
|
+
CommandItem.displayName = cmdk.Command.Item.displayName;
|
|
1403
|
+
var CommandShortcut = ({
|
|
1404
|
+
className,
|
|
1405
|
+
...props
|
|
1406
|
+
}) => {
|
|
1407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1408
|
+
"span",
|
|
1409
|
+
{
|
|
1410
|
+
className: cn(
|
|
1411
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1412
|
+
className
|
|
1413
|
+
),
|
|
1414
|
+
...props
|
|
1415
|
+
}
|
|
1416
|
+
);
|
|
1417
|
+
};
|
|
1418
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
1419
|
+
var ContextMenu = ContextMenuPrimitive__namespace.Root;
|
|
1420
|
+
var ContextMenuTrigger = ContextMenuPrimitive__namespace.Trigger;
|
|
1421
|
+
var ContextMenuGroup = ContextMenuPrimitive__namespace.Group;
|
|
1422
|
+
var ContextMenuPortal = ContextMenuPrimitive__namespace.Portal;
|
|
1423
|
+
var ContextMenuSub = ContextMenuPrimitive__namespace.Sub;
|
|
1424
|
+
var ContextMenuRadioGroup = ContextMenuPrimitive__namespace.RadioGroup;
|
|
1425
|
+
var ContextMenuSubTrigger = React36__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1426
|
+
ContextMenuPrimitive__namespace.SubTrigger,
|
|
1427
|
+
{
|
|
1428
|
+
ref,
|
|
1429
|
+
className: cn(
|
|
1430
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
1431
|
+
inset && "pl-8",
|
|
1432
|
+
className
|
|
1433
|
+
),
|
|
1434
|
+
...props,
|
|
1435
|
+
children: [
|
|
1436
|
+
children,
|
|
1437
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
1438
|
+
]
|
|
1439
|
+
}
|
|
1440
|
+
));
|
|
1441
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1442
|
+
var ContextMenuSubContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
|
+
ContextMenuPrimitive__namespace.SubContent,
|
|
1444
|
+
{
|
|
1445
|
+
ref,
|
|
1446
|
+
className: cn(
|
|
1447
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1448
|
+
className
|
|
1449
|
+
),
|
|
1450
|
+
...props
|
|
1451
|
+
}
|
|
1452
|
+
));
|
|
1453
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive__namespace.SubContent.displayName;
|
|
1454
|
+
var ContextMenuContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1455
|
+
ContextMenuPrimitive__namespace.Content,
|
|
1456
|
+
{
|
|
1457
|
+
ref,
|
|
1458
|
+
className: cn(
|
|
1459
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1460
|
+
className
|
|
1461
|
+
),
|
|
1462
|
+
...props
|
|
1463
|
+
}
|
|
1464
|
+
) }));
|
|
1465
|
+
ContextMenuContent.displayName = ContextMenuPrimitive__namespace.Content.displayName;
|
|
1466
|
+
var ContextMenuItem = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1467
|
+
ContextMenuPrimitive__namespace.Item,
|
|
1468
|
+
{
|
|
1469
|
+
ref,
|
|
1470
|
+
className: cn(
|
|
1471
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1472
|
+
inset && "pl-8",
|
|
1473
|
+
className
|
|
1474
|
+
),
|
|
1475
|
+
...props
|
|
1476
|
+
}
|
|
1477
|
+
));
|
|
1478
|
+
ContextMenuItem.displayName = ContextMenuPrimitive__namespace.Item.displayName;
|
|
1479
|
+
var ContextMenuCheckboxItem = React36__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1480
|
+
ContextMenuPrimitive__namespace.CheckboxItem,
|
|
1481
|
+
{
|
|
1482
|
+
ref,
|
|
1483
|
+
className: cn(
|
|
1484
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1485
|
+
className
|
|
1486
|
+
),
|
|
1487
|
+
checked,
|
|
1488
|
+
...props,
|
|
1489
|
+
children: [
|
|
1490
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
1491
|
+
children
|
|
1492
|
+
]
|
|
1493
|
+
}
|
|
1494
|
+
));
|
|
1495
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1496
|
+
var ContextMenuRadioItem = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1497
|
+
ContextMenuPrimitive__namespace.RadioItem,
|
|
1498
|
+
{
|
|
1499
|
+
ref,
|
|
1500
|
+
className: cn(
|
|
1501
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1502
|
+
className
|
|
1503
|
+
),
|
|
1504
|
+
...props,
|
|
1505
|
+
children: [
|
|
1506
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1507
|
+
children
|
|
1508
|
+
]
|
|
1509
|
+
}
|
|
1510
|
+
));
|
|
1511
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive__namespace.RadioItem.displayName;
|
|
1512
|
+
var ContextMenuLabel = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1513
|
+
ContextMenuPrimitive__namespace.Label,
|
|
1514
|
+
{
|
|
1515
|
+
ref,
|
|
1516
|
+
className: cn(
|
|
1517
|
+
"px-2 py-1.5 text-base font-semibold text-foreground",
|
|
1518
|
+
inset && "pl-8",
|
|
1519
|
+
className
|
|
1520
|
+
),
|
|
1521
|
+
...props
|
|
1522
|
+
}
|
|
1523
|
+
));
|
|
1524
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive__namespace.Label.displayName;
|
|
1525
|
+
var ContextMenuSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1526
|
+
ContextMenuPrimitive__namespace.Separator,
|
|
1527
|
+
{
|
|
1528
|
+
ref,
|
|
1529
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
1530
|
+
...props
|
|
1531
|
+
}
|
|
1532
|
+
));
|
|
1533
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive__namespace.Separator.displayName;
|
|
1534
|
+
var ContextMenuShortcut = ({
|
|
1535
|
+
className,
|
|
1536
|
+
...props
|
|
1537
|
+
}) => {
|
|
1538
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1539
|
+
"span",
|
|
1540
|
+
{
|
|
1541
|
+
className: cn(
|
|
1542
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
1543
|
+
className
|
|
1544
|
+
),
|
|
1545
|
+
...props
|
|
1546
|
+
}
|
|
1547
|
+
);
|
|
1548
|
+
};
|
|
1549
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1550
|
+
var Drawer = ({
|
|
1551
|
+
shouldScaleBackground = true,
|
|
1552
|
+
...props
|
|
1553
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1554
|
+
vaul.Drawer.Root,
|
|
1555
|
+
{
|
|
1556
|
+
shouldScaleBackground,
|
|
1557
|
+
...props
|
|
1558
|
+
}
|
|
1559
|
+
);
|
|
1560
|
+
Drawer.displayName = "Drawer";
|
|
1561
|
+
var DrawerTrigger = vaul.Drawer.Trigger;
|
|
1562
|
+
var DrawerPortal = vaul.Drawer.Portal;
|
|
1563
|
+
var DrawerClose = vaul.Drawer.Close;
|
|
1564
|
+
var DrawerOverlay = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1565
|
+
vaul.Drawer.Overlay,
|
|
1566
|
+
{
|
|
1567
|
+
ref,
|
|
1568
|
+
className: cn("fixed inset-0 z-50 bg-black/80", className),
|
|
1569
|
+
...props
|
|
1570
|
+
}
|
|
1571
|
+
));
|
|
1572
|
+
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
1573
|
+
var DrawerContent = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
1574
|
+
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
1575
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1576
|
+
vaul.Drawer.Content,
|
|
1577
|
+
{
|
|
1578
|
+
ref,
|
|
1579
|
+
className: cn(
|
|
1580
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
1581
|
+
className
|
|
1582
|
+
),
|
|
1583
|
+
...props,
|
|
1584
|
+
children: [
|
|
1585
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
1586
|
+
children
|
|
1587
|
+
]
|
|
1588
|
+
}
|
|
1589
|
+
)
|
|
1590
|
+
] }));
|
|
1591
|
+
DrawerContent.displayName = "DrawerContent";
|
|
1592
|
+
var DrawerHeader = ({
|
|
1593
|
+
className,
|
|
1594
|
+
...props
|
|
1595
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1596
|
+
"div",
|
|
1597
|
+
{
|
|
1598
|
+
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
1599
|
+
...props
|
|
1600
|
+
}
|
|
1601
|
+
);
|
|
1602
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
1603
|
+
var DrawerFooter = ({
|
|
1604
|
+
className,
|
|
1605
|
+
...props
|
|
1606
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1607
|
+
"div",
|
|
1608
|
+
{
|
|
1609
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
1610
|
+
...props
|
|
1611
|
+
}
|
|
1612
|
+
);
|
|
1613
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
1614
|
+
var DrawerTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1615
|
+
vaul.Drawer.Title,
|
|
1616
|
+
{
|
|
1617
|
+
ref,
|
|
1618
|
+
className: cn(
|
|
1619
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
1620
|
+
className
|
|
1621
|
+
),
|
|
1622
|
+
...props
|
|
1623
|
+
}
|
|
1624
|
+
));
|
|
1625
|
+
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
1626
|
+
var DrawerDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1627
|
+
vaul.Drawer.Description,
|
|
1628
|
+
{
|
|
1629
|
+
ref,
|
|
1630
|
+
className: cn("text-base text-muted-foreground", className),
|
|
1631
|
+
...props
|
|
1632
|
+
}
|
|
1633
|
+
));
|
|
1634
|
+
DrawerDescription.displayName = vaul.Drawer.Description.displayName;
|
|
1635
|
+
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
1636
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
1637
|
+
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
1638
|
+
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1639
|
+
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1640
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1641
|
+
var DropdownMenuSubTrigger = React36__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1642
|
+
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1643
|
+
{
|
|
1644
|
+
ref,
|
|
1645
|
+
className: cn(
|
|
1646
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1647
|
+
inset && "pl-8",
|
|
1648
|
+
className
|
|
1649
|
+
),
|
|
1650
|
+
...props,
|
|
1651
|
+
children: [
|
|
1652
|
+
children,
|
|
1653
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
1654
|
+
]
|
|
1655
|
+
}
|
|
1656
|
+
));
|
|
1657
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1658
|
+
var DropdownMenuSubContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1659
|
+
DropdownMenuPrimitive__namespace.SubContent,
|
|
1660
|
+
{
|
|
1661
|
+
ref,
|
|
1662
|
+
className: cn(
|
|
1663
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1664
|
+
className
|
|
1665
|
+
),
|
|
1666
|
+
...props
|
|
1667
|
+
}
|
|
1668
|
+
));
|
|
1669
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1670
|
+
var DropdownMenuContent = React36__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1671
|
+
DropdownMenuPrimitive__namespace.Content,
|
|
1672
|
+
{
|
|
1673
|
+
ref,
|
|
1674
|
+
sideOffset,
|
|
1675
|
+
className: cn(
|
|
1676
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1677
|
+
className
|
|
1678
|
+
),
|
|
1679
|
+
...props
|
|
1680
|
+
}
|
|
1681
|
+
) }));
|
|
1682
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1683
|
+
var DropdownMenuItem = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1684
|
+
DropdownMenuPrimitive__namespace.Item,
|
|
1685
|
+
{
|
|
1686
|
+
ref,
|
|
1687
|
+
className: cn(
|
|
1688
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1689
|
+
inset && "pl-8",
|
|
1690
|
+
className
|
|
1691
|
+
),
|
|
1692
|
+
...props
|
|
1693
|
+
}
|
|
1694
|
+
));
|
|
1695
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1696
|
+
var DropdownMenuCheckboxItem = React36__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1697
|
+
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1698
|
+
{
|
|
1699
|
+
ref,
|
|
1700
|
+
className: cn(
|
|
1701
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1702
|
+
className
|
|
1703
|
+
),
|
|
1704
|
+
checked,
|
|
1705
|
+
...props,
|
|
1706
|
+
children: [
|
|
1707
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
1708
|
+
children
|
|
1709
|
+
]
|
|
1710
|
+
}
|
|
1711
|
+
));
|
|
1712
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1713
|
+
var DropdownMenuRadioItem = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1714
|
+
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1715
|
+
{
|
|
1716
|
+
ref,
|
|
1717
|
+
className: cn(
|
|
1718
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1719
|
+
className
|
|
1720
|
+
),
|
|
1721
|
+
...props,
|
|
1722
|
+
children: [
|
|
1723
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1724
|
+
children
|
|
1725
|
+
]
|
|
1726
|
+
}
|
|
1727
|
+
));
|
|
1728
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1729
|
+
var DropdownMenuLabel = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
|
+
DropdownMenuPrimitive__namespace.Label,
|
|
1731
|
+
{
|
|
1732
|
+
ref,
|
|
1733
|
+
className: cn(
|
|
1734
|
+
"px-2 py-1.5 text-base font-semibold",
|
|
1735
|
+
inset && "pl-8",
|
|
1736
|
+
className
|
|
1737
|
+
),
|
|
1738
|
+
...props
|
|
1739
|
+
}
|
|
1740
|
+
));
|
|
1741
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1742
|
+
var DropdownMenuSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1743
|
+
DropdownMenuPrimitive__namespace.Separator,
|
|
1744
|
+
{
|
|
1745
|
+
ref,
|
|
1746
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1747
|
+
...props
|
|
1748
|
+
}
|
|
1749
|
+
));
|
|
1750
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
1751
|
+
var DropdownMenuShortcut = ({
|
|
1752
|
+
className,
|
|
1753
|
+
...props
|
|
1754
|
+
}) => {
|
|
1755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1756
|
+
"span",
|
|
1757
|
+
{
|
|
1758
|
+
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
1759
|
+
...props
|
|
1760
|
+
}
|
|
1761
|
+
);
|
|
1762
|
+
};
|
|
1763
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1764
|
+
var labelVariants = classVarianceAuthority.cva(
|
|
1765
|
+
"text-base font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1766
|
+
);
|
|
1767
|
+
var Label3 = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1768
|
+
LabelPrimitive__namespace.Root,
|
|
1769
|
+
{
|
|
1770
|
+
ref,
|
|
1771
|
+
className: cn(labelVariants(), className),
|
|
1772
|
+
...props
|
|
1773
|
+
}
|
|
1774
|
+
));
|
|
1775
|
+
Label3.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
1776
|
+
var Form = reactHookForm.FormProvider;
|
|
1777
|
+
var FormFieldContext = React36__namespace.createContext(
|
|
1778
|
+
{}
|
|
1779
|
+
);
|
|
1780
|
+
var FormField = ({
|
|
1781
|
+
...props
|
|
1782
|
+
}) => {
|
|
1783
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
1784
|
+
};
|
|
1785
|
+
var useFormField = () => {
|
|
1786
|
+
const fieldContext = React36__namespace.useContext(FormFieldContext);
|
|
1787
|
+
const itemContext = React36__namespace.useContext(FormItemContext);
|
|
1788
|
+
const { getFieldState, formState } = reactHookForm.useFormContext();
|
|
1789
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1790
|
+
if (!fieldContext) {
|
|
1791
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
1792
|
+
}
|
|
1793
|
+
const { id } = itemContext;
|
|
1794
|
+
return {
|
|
1795
|
+
id,
|
|
1796
|
+
name: fieldContext.name,
|
|
1797
|
+
formItemId: `${id}-form-item`,
|
|
1798
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
1799
|
+
formMessageId: `${id}-form-item-message`,
|
|
1800
|
+
...fieldState
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
var FormItemContext = React36__namespace.createContext(
|
|
1804
|
+
{}
|
|
1805
|
+
);
|
|
1806
|
+
var FormItem = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1807
|
+
const id = React36__namespace.useId();
|
|
1808
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1809
|
+
});
|
|
1810
|
+
FormItem.displayName = "FormItem";
|
|
1811
|
+
var FormLabel = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1812
|
+
const { error, formItemId } = useFormField();
|
|
1813
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
|
+
Label3,
|
|
1815
|
+
{
|
|
1816
|
+
ref,
|
|
1817
|
+
className: cn(error && "text-destructive", className),
|
|
1818
|
+
htmlFor: formItemId,
|
|
1819
|
+
...props
|
|
1820
|
+
}
|
|
1821
|
+
);
|
|
1822
|
+
});
|
|
1823
|
+
FormLabel.displayName = "FormLabel";
|
|
1824
|
+
var FormControl = React36__namespace.forwardRef(({ ...props }, ref) => {
|
|
1825
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1826
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1827
|
+
reactSlot.Slot,
|
|
1828
|
+
{
|
|
1829
|
+
ref,
|
|
1830
|
+
id: formItemId,
|
|
1831
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
1832
|
+
"aria-invalid": !!error,
|
|
1833
|
+
...props
|
|
1834
|
+
}
|
|
1835
|
+
);
|
|
1836
|
+
});
|
|
1837
|
+
FormControl.displayName = "FormControl";
|
|
1838
|
+
var FormDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1839
|
+
const { formDescriptionId } = useFormField();
|
|
1840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1841
|
+
"p",
|
|
1842
|
+
{
|
|
1843
|
+
ref,
|
|
1844
|
+
id: formDescriptionId,
|
|
1845
|
+
className: cn("text-base text-muted-foreground", className),
|
|
1846
|
+
...props
|
|
1847
|
+
}
|
|
1848
|
+
);
|
|
1849
|
+
});
|
|
1850
|
+
FormDescription.displayName = "FormDescription";
|
|
1851
|
+
var FormMessage = React36__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
1852
|
+
const { error, formMessageId } = useFormField();
|
|
1853
|
+
const body = error ? String(error?.message) : children;
|
|
1854
|
+
if (!body) {
|
|
1855
|
+
return null;
|
|
1856
|
+
}
|
|
1857
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1858
|
+
"p",
|
|
1859
|
+
{
|
|
1860
|
+
ref,
|
|
1861
|
+
id: formMessageId,
|
|
1862
|
+
className: cn("text-base font-medium text-destructive", className),
|
|
1863
|
+
...props,
|
|
1864
|
+
children: body
|
|
1865
|
+
}
|
|
1866
|
+
);
|
|
1867
|
+
});
|
|
1868
|
+
FormMessage.displayName = "FormMessage";
|
|
1869
|
+
var glassCardVariants = classVarianceAuthority.cva(
|
|
1870
|
+
"rounded-2xl border backdrop-blur-xl transition-all duration-300",
|
|
1871
|
+
{
|
|
1872
|
+
variants: {
|
|
1873
|
+
variant: {
|
|
1874
|
+
default: [
|
|
1875
|
+
"bg-white/70 border-gray-200/50 shadow-sm",
|
|
1876
|
+
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg"
|
|
1877
|
+
],
|
|
1878
|
+
elevated: [
|
|
1879
|
+
"bg-white/80 border-gray-200/50 shadow-lg",
|
|
1880
|
+
"dark:bg-white/5 dark:border-white/10 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]"
|
|
1881
|
+
],
|
|
1882
|
+
interactive: [
|
|
1883
|
+
"bg-white/70 border-gray-200/50 shadow-sm cursor-pointer",
|
|
1884
|
+
"hover:bg-white/90 hover:border-gray-300/60 hover:shadow-md hover:-translate-y-0.5",
|
|
1885
|
+
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg",
|
|
1886
|
+
"dark:hover:bg-white/10 dark:hover:border-white/20 dark:hover:shadow-[0_8px_32px_rgba(139,92,246,0.15)]"
|
|
1887
|
+
],
|
|
1888
|
+
hero: [
|
|
1889
|
+
"bg-gradient-to-br from-white/80 via-white/70 to-purple-50/50 border-gray-200/50 shadow-lg",
|
|
1890
|
+
"dark:from-white/10 dark:via-white/5 dark:to-purple-900/10 dark:border-white/10"
|
|
1891
|
+
],
|
|
1892
|
+
stat: [
|
|
1893
|
+
"bg-white/60 border-gray-200/40 shadow-sm",
|
|
1894
|
+
"dark:bg-white/[0.03] dark:border-white/[0.08]"
|
|
1895
|
+
]
|
|
1896
|
+
},
|
|
1897
|
+
padding: {
|
|
1898
|
+
none: "",
|
|
1899
|
+
sm: "p-4",
|
|
1900
|
+
default: "p-6",
|
|
1901
|
+
lg: "p-8"
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
defaultVariants: {
|
|
1905
|
+
variant: "default",
|
|
1906
|
+
padding: "none"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
);
|
|
1910
|
+
var GlassCard = React36__namespace.forwardRef(
|
|
1911
|
+
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1912
|
+
"div",
|
|
1913
|
+
{
|
|
1914
|
+
ref,
|
|
1915
|
+
className: cn(glassCardVariants({ variant, padding, className })),
|
|
1916
|
+
...props
|
|
1917
|
+
}
|
|
1918
|
+
)
|
|
1919
|
+
);
|
|
1920
|
+
GlassCard.displayName = "GlassCard";
|
|
1921
|
+
var GlassCardHeader = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1922
|
+
"div",
|
|
1923
|
+
{
|
|
1924
|
+
ref,
|
|
1925
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
1926
|
+
...props
|
|
1927
|
+
}
|
|
1928
|
+
));
|
|
1929
|
+
GlassCardHeader.displayName = "GlassCardHeader";
|
|
1930
|
+
var GlassCardTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1931
|
+
"h3",
|
|
1932
|
+
{
|
|
1933
|
+
ref,
|
|
1934
|
+
className: cn(
|
|
1935
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
1936
|
+
className
|
|
1937
|
+
),
|
|
1938
|
+
...props
|
|
1939
|
+
}
|
|
1940
|
+
));
|
|
1941
|
+
GlassCardTitle.displayName = "GlassCardTitle";
|
|
1942
|
+
var GlassCardDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
|
+
"p",
|
|
1944
|
+
{
|
|
1945
|
+
ref,
|
|
1946
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
1947
|
+
...props
|
|
1948
|
+
}
|
|
1949
|
+
));
|
|
1950
|
+
GlassCardDescription.displayName = "GlassCardDescription";
|
|
1951
|
+
var GlassCardContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1952
|
+
GlassCardContent.displayName = "GlassCardContent";
|
|
1953
|
+
var GlassCardFooter = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1954
|
+
"div",
|
|
1955
|
+
{
|
|
1956
|
+
ref,
|
|
1957
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
1958
|
+
...props
|
|
1959
|
+
}
|
|
1960
|
+
));
|
|
1961
|
+
GlassCardFooter.displayName = "GlassCardFooter";
|
|
1962
|
+
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
1963
|
+
var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
|
|
1964
|
+
var HoverCardContent = React36__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1965
|
+
HoverCardPrimitive__namespace.Content,
|
|
1966
|
+
{
|
|
1967
|
+
ref,
|
|
1968
|
+
align,
|
|
1969
|
+
sideOffset,
|
|
1970
|
+
className: cn(
|
|
1971
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1972
|
+
className
|
|
1973
|
+
),
|
|
1974
|
+
...props
|
|
1975
|
+
}
|
|
1976
|
+
));
|
|
1977
|
+
HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
|
|
1978
|
+
var Input = React36__namespace.forwardRef(
|
|
1979
|
+
({ className, type, ...props }, ref) => {
|
|
1980
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1981
|
+
"input",
|
|
1982
|
+
{
|
|
1983
|
+
type,
|
|
1984
|
+
className: cn(
|
|
1985
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1986
|
+
className
|
|
1987
|
+
),
|
|
1988
|
+
ref,
|
|
1989
|
+
...props
|
|
1990
|
+
}
|
|
1991
|
+
);
|
|
1992
|
+
}
|
|
1993
|
+
);
|
|
1994
|
+
Input.displayName = "Input";
|
|
1995
|
+
var InputOTP = React36__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1996
|
+
inputOtp.OTPInput,
|
|
1997
|
+
{
|
|
1998
|
+
ref,
|
|
1999
|
+
containerClassName: cn(
|
|
2000
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
2001
|
+
containerClassName
|
|
2002
|
+
),
|
|
2003
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
2004
|
+
...props
|
|
2005
|
+
}
|
|
2006
|
+
));
|
|
2007
|
+
InputOTP.displayName = "InputOTP";
|
|
2008
|
+
var InputOTPGroup = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2009
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2010
|
+
var InputOTPSlot = React36__namespace.forwardRef(({ index, className, ...props }, ref) => {
|
|
2011
|
+
const inputOTPContext = React36__namespace.useContext(inputOtp.OTPInputContext);
|
|
2012
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2013
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2014
|
+
"div",
|
|
2015
|
+
{
|
|
2016
|
+
ref,
|
|
2017
|
+
className: cn(
|
|
2018
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-base transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
|
2019
|
+
isActive && "z-10 ring-2 ring-ring ring-offset-background",
|
|
2020
|
+
className
|
|
2021
|
+
),
|
|
2022
|
+
...props,
|
|
2023
|
+
children: [
|
|
2024
|
+
char,
|
|
2025
|
+
hasFakeCaret && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
2026
|
+
]
|
|
2027
|
+
}
|
|
2028
|
+
);
|
|
2029
|
+
});
|
|
2030
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2031
|
+
var InputOTPSeparator = React36__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Dot, {}) }));
|
|
2032
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2033
|
+
var sizes = {
|
|
2034
|
+
sm: { height: 24 },
|
|
2035
|
+
md: { height: 32 },
|
|
2036
|
+
lg: { height: 40 },
|
|
2037
|
+
xl: { height: 48 }
|
|
2038
|
+
};
|
|
2039
|
+
function Logo({ size = "md", className = "", src, alt = "Logo" }) {
|
|
2040
|
+
const height = sizes[size].height;
|
|
2041
|
+
if (!src) {
|
|
2042
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2043
|
+
"div",
|
|
2044
|
+
{
|
|
2045
|
+
className: `flex items-center justify-center rounded bg-muted text-muted-foreground ${className}`,
|
|
2046
|
+
style: { height: `${height}px`, width: `${height * 3}px` },
|
|
2047
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium", children: "Logo" })
|
|
2048
|
+
}
|
|
2049
|
+
);
|
|
2050
|
+
}
|
|
2051
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex items-center ${className}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2052
|
+
"img",
|
|
2053
|
+
{
|
|
2054
|
+
src,
|
|
2055
|
+
alt,
|
|
2056
|
+
style: { height: `${height}px` },
|
|
2057
|
+
className: "max-w-none"
|
|
2058
|
+
}
|
|
2059
|
+
) });
|
|
2060
|
+
}
|
|
2061
|
+
var MenubarMenu = MenubarPrimitive__namespace.Menu;
|
|
2062
|
+
var MenubarGroup = MenubarPrimitive__namespace.Group;
|
|
2063
|
+
var MenubarPortal = MenubarPrimitive__namespace.Portal;
|
|
2064
|
+
var MenubarSub = MenubarPrimitive__namespace.Sub;
|
|
2065
|
+
var MenubarRadioGroup = MenubarPrimitive__namespace.RadioGroup;
|
|
2066
|
+
var Menubar = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2067
|
+
MenubarPrimitive__namespace.Root,
|
|
2068
|
+
{
|
|
2069
|
+
ref,
|
|
2070
|
+
className: cn(
|
|
2071
|
+
"flex h-10 items-center space-x-1 rounded-md border bg-background p-1",
|
|
2072
|
+
className
|
|
2073
|
+
),
|
|
2074
|
+
...props
|
|
2075
|
+
}
|
|
2076
|
+
));
|
|
2077
|
+
Menubar.displayName = MenubarPrimitive__namespace.Root.displayName;
|
|
2078
|
+
var MenubarTrigger = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2079
|
+
MenubarPrimitive__namespace.Trigger,
|
|
2080
|
+
{
|
|
2081
|
+
ref,
|
|
2082
|
+
className: cn(
|
|
2083
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-base font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
2084
|
+
className
|
|
2085
|
+
),
|
|
2086
|
+
...props
|
|
2087
|
+
}
|
|
2088
|
+
));
|
|
2089
|
+
MenubarTrigger.displayName = MenubarPrimitive__namespace.Trigger.displayName;
|
|
2090
|
+
var MenubarSubTrigger = React36__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2091
|
+
MenubarPrimitive__namespace.SubTrigger,
|
|
2092
|
+
{
|
|
2093
|
+
ref,
|
|
2094
|
+
className: cn(
|
|
2095
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
2096
|
+
inset && "pl-8",
|
|
2097
|
+
className
|
|
2098
|
+
),
|
|
2099
|
+
...props,
|
|
2100
|
+
children: [
|
|
2101
|
+
children,
|
|
2102
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
2103
|
+
]
|
|
2104
|
+
}
|
|
2105
|
+
));
|
|
2106
|
+
MenubarSubTrigger.displayName = MenubarPrimitive__namespace.SubTrigger.displayName;
|
|
2107
|
+
var MenubarSubContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2108
|
+
MenubarPrimitive__namespace.SubContent,
|
|
2109
|
+
{
|
|
2110
|
+
ref,
|
|
2111
|
+
className: cn(
|
|
2112
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2113
|
+
className
|
|
2114
|
+
),
|
|
2115
|
+
...props
|
|
2116
|
+
}
|
|
2117
|
+
));
|
|
2118
|
+
MenubarSubContent.displayName = MenubarPrimitive__namespace.SubContent.displayName;
|
|
2119
|
+
var MenubarContent = React36__namespace.forwardRef(
|
|
2120
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2121
|
+
MenubarPrimitive__namespace.Content,
|
|
2122
|
+
{
|
|
2123
|
+
ref,
|
|
2124
|
+
align,
|
|
2125
|
+
alignOffset,
|
|
2126
|
+
sideOffset,
|
|
2127
|
+
className: cn(
|
|
2128
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2129
|
+
className
|
|
2130
|
+
),
|
|
2131
|
+
...props
|
|
2132
|
+
}
|
|
2133
|
+
) })
|
|
2134
|
+
);
|
|
2135
|
+
MenubarContent.displayName = MenubarPrimitive__namespace.Content.displayName;
|
|
2136
|
+
var MenubarItem = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2137
|
+
MenubarPrimitive__namespace.Item,
|
|
2138
|
+
{
|
|
2139
|
+
ref,
|
|
2140
|
+
className: cn(
|
|
2141
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2142
|
+
inset && "pl-8",
|
|
2143
|
+
className
|
|
2144
|
+
),
|
|
2145
|
+
...props
|
|
2146
|
+
}
|
|
2147
|
+
));
|
|
2148
|
+
MenubarItem.displayName = MenubarPrimitive__namespace.Item.displayName;
|
|
2149
|
+
var MenubarCheckboxItem = React36__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2150
|
+
MenubarPrimitive__namespace.CheckboxItem,
|
|
2151
|
+
{
|
|
2152
|
+
ref,
|
|
2153
|
+
className: cn(
|
|
2154
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2155
|
+
className
|
|
2156
|
+
),
|
|
2157
|
+
checked,
|
|
2158
|
+
...props,
|
|
2159
|
+
children: [
|
|
2160
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
2161
|
+
children
|
|
2162
|
+
]
|
|
2163
|
+
}
|
|
2164
|
+
));
|
|
2165
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive__namespace.CheckboxItem.displayName;
|
|
2166
|
+
var MenubarRadioItem = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2167
|
+
MenubarPrimitive__namespace.RadioItem,
|
|
2168
|
+
{
|
|
2169
|
+
ref,
|
|
2170
|
+
className: cn(
|
|
2171
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2172
|
+
className
|
|
2173
|
+
),
|
|
2174
|
+
...props,
|
|
2175
|
+
children: [
|
|
2176
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2177
|
+
children
|
|
2178
|
+
]
|
|
2179
|
+
}
|
|
2180
|
+
));
|
|
2181
|
+
MenubarRadioItem.displayName = MenubarPrimitive__namespace.RadioItem.displayName;
|
|
2182
|
+
var MenubarLabel = React36__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2183
|
+
MenubarPrimitive__namespace.Label,
|
|
2184
|
+
{
|
|
2185
|
+
ref,
|
|
2186
|
+
className: cn(
|
|
2187
|
+
"px-2 py-1.5 text-base font-semibold",
|
|
2188
|
+
inset && "pl-8",
|
|
2189
|
+
className
|
|
2190
|
+
),
|
|
2191
|
+
...props
|
|
2192
|
+
}
|
|
2193
|
+
));
|
|
2194
|
+
MenubarLabel.displayName = MenubarPrimitive__namespace.Label.displayName;
|
|
2195
|
+
var MenubarSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2196
|
+
MenubarPrimitive__namespace.Separator,
|
|
2197
|
+
{
|
|
2198
|
+
ref,
|
|
2199
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
2200
|
+
...props
|
|
2201
|
+
}
|
|
2202
|
+
));
|
|
2203
|
+
MenubarSeparator.displayName = MenubarPrimitive__namespace.Separator.displayName;
|
|
2204
|
+
var MenubarShortcut = ({
|
|
2205
|
+
className,
|
|
2206
|
+
...props
|
|
2207
|
+
}) => {
|
|
2208
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2209
|
+
"span",
|
|
2210
|
+
{
|
|
2211
|
+
className: cn(
|
|
2212
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
2213
|
+
className
|
|
2214
|
+
),
|
|
2215
|
+
...props
|
|
2216
|
+
}
|
|
2217
|
+
);
|
|
2218
|
+
};
|
|
2219
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2220
|
+
var NavigationMenu = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2221
|
+
NavigationMenuPrimitive__namespace.Root,
|
|
2222
|
+
{
|
|
2223
|
+
ref,
|
|
2224
|
+
className: cn(
|
|
2225
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
|
2226
|
+
className
|
|
2227
|
+
),
|
|
2228
|
+
...props,
|
|
2229
|
+
children: [
|
|
2230
|
+
children,
|
|
2231
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
|
|
2232
|
+
]
|
|
2233
|
+
}
|
|
2234
|
+
));
|
|
2235
|
+
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
2236
|
+
var NavigationMenuList = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2237
|
+
NavigationMenuPrimitive__namespace.List,
|
|
2238
|
+
{
|
|
2239
|
+
ref,
|
|
2240
|
+
className: cn(
|
|
2241
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
|
2242
|
+
className
|
|
2243
|
+
),
|
|
2244
|
+
...props
|
|
2245
|
+
}
|
|
2246
|
+
));
|
|
2247
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
2248
|
+
var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
2249
|
+
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
2250
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-base font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
2251
|
+
);
|
|
2252
|
+
var NavigationMenuTrigger = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2253
|
+
NavigationMenuPrimitive__namespace.Trigger,
|
|
2254
|
+
{
|
|
2255
|
+
ref,
|
|
2256
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
2257
|
+
...props,
|
|
2258
|
+
children: [
|
|
2259
|
+
children,
|
|
2260
|
+
" ",
|
|
2261
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2262
|
+
lucideReact.ChevronDown,
|
|
2263
|
+
{
|
|
2264
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
2265
|
+
"aria-hidden": "true"
|
|
2266
|
+
}
|
|
2267
|
+
)
|
|
2268
|
+
]
|
|
2269
|
+
}
|
|
2270
|
+
));
|
|
2271
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
2272
|
+
var NavigationMenuContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2273
|
+
NavigationMenuPrimitive__namespace.Content,
|
|
2274
|
+
{
|
|
2275
|
+
ref,
|
|
2276
|
+
className: cn(
|
|
2277
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
|
|
2278
|
+
className
|
|
2279
|
+
),
|
|
2280
|
+
...props
|
|
2281
|
+
}
|
|
2282
|
+
));
|
|
2283
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
2284
|
+
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
2285
|
+
var NavigationMenuViewport = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2286
|
+
NavigationMenuPrimitive__namespace.Viewport,
|
|
2287
|
+
{
|
|
2288
|
+
className: cn(
|
|
2289
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
2290
|
+
className
|
|
2291
|
+
),
|
|
2292
|
+
ref,
|
|
2293
|
+
...props
|
|
2294
|
+
}
|
|
2295
|
+
) }));
|
|
2296
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
2297
|
+
var NavigationMenuIndicator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2298
|
+
NavigationMenuPrimitive__namespace.Indicator,
|
|
2299
|
+
{
|
|
2300
|
+
ref,
|
|
2301
|
+
className: cn(
|
|
2302
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
2303
|
+
className
|
|
2304
|
+
),
|
|
2305
|
+
...props,
|
|
2306
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
2307
|
+
}
|
|
2308
|
+
));
|
|
2309
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
2310
|
+
function Pagination({
|
|
2311
|
+
currentPage,
|
|
2312
|
+
totalPages,
|
|
2313
|
+
onPageChange,
|
|
2314
|
+
showInfo = false,
|
|
2315
|
+
totalItems = 0,
|
|
2316
|
+
itemsPerPage = 10,
|
|
2317
|
+
className
|
|
2318
|
+
}) {
|
|
2319
|
+
if (totalPages <= 1) return null;
|
|
2320
|
+
const getVisiblePages = () => {
|
|
2321
|
+
const pages = [];
|
|
2322
|
+
const maxVisible = 5;
|
|
2323
|
+
if (totalPages <= maxVisible) {
|
|
2324
|
+
for (let i = 1; i <= totalPages; i++) {
|
|
2325
|
+
pages.push(i);
|
|
2326
|
+
}
|
|
2327
|
+
} else {
|
|
2328
|
+
if (currentPage <= 3) {
|
|
2329
|
+
for (let i = 1; i <= 4; i++) {
|
|
2330
|
+
pages.push(i);
|
|
2331
|
+
}
|
|
2332
|
+
pages.push("ellipsis");
|
|
2333
|
+
pages.push(totalPages);
|
|
2334
|
+
} else if (currentPage >= totalPages - 2) {
|
|
2335
|
+
pages.push(1);
|
|
2336
|
+
pages.push("ellipsis");
|
|
2337
|
+
for (let i = totalPages - 3; i <= totalPages; i++) {
|
|
2338
|
+
pages.push(i);
|
|
2339
|
+
}
|
|
2340
|
+
} else {
|
|
2341
|
+
pages.push(1);
|
|
2342
|
+
pages.push("ellipsis");
|
|
2343
|
+
for (let i = currentPage - 1; i <= currentPage + 1; i++) {
|
|
2344
|
+
pages.push(i);
|
|
2345
|
+
}
|
|
2346
|
+
pages.push("ellipsis");
|
|
2347
|
+
pages.push(totalPages);
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
return pages;
|
|
2351
|
+
};
|
|
2352
|
+
const startItem = (currentPage - 1) * itemsPerPage + 1;
|
|
2353
|
+
const endItem = Math.min(currentPage * itemsPerPage, totalItems);
|
|
2354
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-4", className), children: [
|
|
2355
|
+
showInfo && totalItems > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-gray-700", children: [
|
|
2356
|
+
"Mostrando ",
|
|
2357
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: startItem }),
|
|
2358
|
+
" - ",
|
|
2359
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2360
|
+
"span",
|
|
2361
|
+
{
|
|
2362
|
+
className: "font-medium",
|
|
2363
|
+
children: endItem
|
|
2364
|
+
}
|
|
2365
|
+
),
|
|
2366
|
+
" di",
|
|
2367
|
+
" ",
|
|
2368
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: totalItems }),
|
|
2369
|
+
" risultati"
|
|
2370
|
+
] }),
|
|
2371
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-1", children: [
|
|
2372
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2373
|
+
Button,
|
|
2374
|
+
{
|
|
2375
|
+
variant: "outline",
|
|
2376
|
+
size: "sm",
|
|
2377
|
+
onClick: () => onPageChange(currentPage - 1),
|
|
2378
|
+
disabled: currentPage === 1,
|
|
2379
|
+
className: "h-9 w-9 p-0",
|
|
2380
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" })
|
|
2381
|
+
}
|
|
2382
|
+
),
|
|
2383
|
+
getVisiblePages().map((page, index) => /* @__PURE__ */ jsxRuntime.jsx(React36__namespace.default.Fragment, { children: page === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-9 w-9 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4 text-gray-400" }) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
|
+
Button,
|
|
2385
|
+
{
|
|
2386
|
+
variant: currentPage === page ? "default" : "outline",
|
|
2387
|
+
size: "sm",
|
|
2388
|
+
onClick: () => onPageChange(page),
|
|
2389
|
+
className: "h-9 w-9 p-0",
|
|
2390
|
+
children: page
|
|
2391
|
+
}
|
|
2392
|
+
) }, index)),
|
|
2393
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2394
|
+
Button,
|
|
2395
|
+
{
|
|
2396
|
+
variant: "outline",
|
|
2397
|
+
size: "sm",
|
|
2398
|
+
onClick: () => onPageChange(currentPage + 1),
|
|
2399
|
+
disabled: currentPage === totalPages,
|
|
2400
|
+
className: "h-9 w-9 p-0",
|
|
2401
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
|
|
2402
|
+
}
|
|
2403
|
+
)
|
|
2404
|
+
] })
|
|
2405
|
+
] });
|
|
2406
|
+
}
|
|
2407
|
+
var Popover = PopoverPrimitive__namespace.Root;
|
|
2408
|
+
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2409
|
+
var PopoverContent = React36__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2410
|
+
PopoverPrimitive__namespace.Content,
|
|
2411
|
+
{
|
|
2412
|
+
ref,
|
|
2413
|
+
align,
|
|
2414
|
+
sideOffset,
|
|
2415
|
+
className: cn(
|
|
2416
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2417
|
+
className
|
|
2418
|
+
),
|
|
2419
|
+
...props
|
|
2420
|
+
}
|
|
2421
|
+
) }));
|
|
2422
|
+
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
2423
|
+
var Progress = React36__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2424
|
+
ProgressPrimitive__namespace.Root,
|
|
2425
|
+
{
|
|
2426
|
+
ref,
|
|
2427
|
+
className: cn(
|
|
2428
|
+
"relative h-4 w-full overflow-hidden rounded-full bg-secondary",
|
|
2429
|
+
className
|
|
2430
|
+
),
|
|
2431
|
+
...props,
|
|
2432
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2433
|
+
ProgressPrimitive__namespace.Indicator,
|
|
2434
|
+
{
|
|
2435
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
2436
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
2437
|
+
}
|
|
2438
|
+
)
|
|
2439
|
+
}
|
|
2440
|
+
));
|
|
2441
|
+
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
2442
|
+
var RadioGroup4 = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2443
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2444
|
+
RadioGroupPrimitive__namespace.Root,
|
|
2445
|
+
{
|
|
2446
|
+
className: cn("grid gap-2", className),
|
|
2447
|
+
...props,
|
|
2448
|
+
ref
|
|
2449
|
+
}
|
|
2450
|
+
);
|
|
2451
|
+
});
|
|
2452
|
+
RadioGroup4.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
2453
|
+
var RadioGroupItem = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2454
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2455
|
+
RadioGroupPrimitive__namespace.Item,
|
|
2456
|
+
{
|
|
2457
|
+
ref,
|
|
2458
|
+
className: cn(
|
|
2459
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2460
|
+
className
|
|
2461
|
+
),
|
|
2462
|
+
...props,
|
|
2463
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
2464
|
+
}
|
|
2465
|
+
);
|
|
2466
|
+
});
|
|
2467
|
+
RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
2468
|
+
var ResizablePanelGroup = ({
|
|
2469
|
+
className,
|
|
2470
|
+
...props
|
|
2471
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2472
|
+
ResizablePrimitive__namespace.PanelGroup,
|
|
2473
|
+
{
|
|
2474
|
+
className: cn(
|
|
2475
|
+
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
2476
|
+
className
|
|
2477
|
+
),
|
|
2478
|
+
...props
|
|
2479
|
+
}
|
|
2480
|
+
);
|
|
2481
|
+
var ResizablePanel = ResizablePrimitive__namespace.Panel;
|
|
2482
|
+
var ResizableHandle = ({
|
|
2483
|
+
withHandle,
|
|
2484
|
+
className,
|
|
2485
|
+
...props
|
|
2486
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2487
|
+
ResizablePrimitive__namespace.PanelResizeHandle,
|
|
2488
|
+
{
|
|
2489
|
+
className: cn(
|
|
2490
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
2491
|
+
className
|
|
2492
|
+
),
|
|
2493
|
+
...props,
|
|
2494
|
+
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
2495
|
+
}
|
|
2496
|
+
);
|
|
2497
|
+
var ScrollArea = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2498
|
+
ScrollAreaPrimitive__namespace.Root,
|
|
2499
|
+
{
|
|
2500
|
+
ref,
|
|
2501
|
+
className: cn("relative overflow-hidden", className),
|
|
2502
|
+
...props,
|
|
2503
|
+
children: [
|
|
2504
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
2505
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
2506
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
2507
|
+
]
|
|
2508
|
+
}
|
|
2509
|
+
));
|
|
2510
|
+
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
2511
|
+
var ScrollBar = React36__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2512
|
+
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
2513
|
+
{
|
|
2514
|
+
ref,
|
|
2515
|
+
orientation,
|
|
2516
|
+
className: cn(
|
|
2517
|
+
"flex touch-none select-none transition-colors",
|
|
2518
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
2519
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
2520
|
+
className
|
|
2521
|
+
),
|
|
2522
|
+
...props,
|
|
2523
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
2524
|
+
}
|
|
2525
|
+
));
|
|
2526
|
+
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
2527
|
+
var Select = SelectPrimitive__namespace.Root;
|
|
2528
|
+
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
2529
|
+
var SelectValue = SelectPrimitive__namespace.Value;
|
|
2530
|
+
var SelectTrigger = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2531
|
+
SelectPrimitive__namespace.Trigger,
|
|
2532
|
+
{
|
|
2533
|
+
ref,
|
|
2534
|
+
className: cn(
|
|
2535
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
2536
|
+
className
|
|
2537
|
+
),
|
|
2538
|
+
...props,
|
|
2539
|
+
children: [
|
|
2540
|
+
children,
|
|
2541
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
2542
|
+
]
|
|
2543
|
+
}
|
|
2544
|
+
));
|
|
2545
|
+
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
2546
|
+
var SelectScrollUpButton = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2547
|
+
SelectPrimitive__namespace.ScrollUpButton,
|
|
2548
|
+
{
|
|
2549
|
+
ref,
|
|
2550
|
+
className: cn(
|
|
2551
|
+
"flex cursor-default items-center justify-center py-1",
|
|
2552
|
+
className
|
|
2553
|
+
),
|
|
2554
|
+
...props,
|
|
2555
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "h-4 w-4" })
|
|
2556
|
+
}
|
|
2557
|
+
));
|
|
2558
|
+
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
2559
|
+
var SelectScrollDownButton = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2560
|
+
SelectPrimitive__namespace.ScrollDownButton,
|
|
2561
|
+
{
|
|
2562
|
+
ref,
|
|
2563
|
+
className: cn(
|
|
2564
|
+
"flex cursor-default items-center justify-center py-1",
|
|
2565
|
+
className
|
|
2566
|
+
),
|
|
2567
|
+
...props,
|
|
2568
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" })
|
|
2569
|
+
}
|
|
2570
|
+
));
|
|
2571
|
+
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
2572
|
+
var SelectContent = React36__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2573
|
+
SelectPrimitive__namespace.Content,
|
|
2574
|
+
{
|
|
2575
|
+
ref,
|
|
2576
|
+
className: cn(
|
|
2577
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2578
|
+
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
2579
|
+
className
|
|
2580
|
+
),
|
|
2581
|
+
position,
|
|
2582
|
+
...props,
|
|
2583
|
+
children: [
|
|
2584
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
|
|
2585
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2586
|
+
SelectPrimitive__namespace.Viewport,
|
|
2587
|
+
{
|
|
2588
|
+
className: cn(
|
|
2589
|
+
"p-1",
|
|
2590
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
2591
|
+
),
|
|
2592
|
+
children
|
|
2593
|
+
}
|
|
2594
|
+
),
|
|
2595
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
|
|
2596
|
+
]
|
|
2597
|
+
}
|
|
2598
|
+
) }));
|
|
2599
|
+
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
2600
|
+
var SelectLabel = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2601
|
+
SelectPrimitive__namespace.Label,
|
|
2602
|
+
{
|
|
2603
|
+
ref,
|
|
2604
|
+
className: cn("py-1.5 pl-8 pr-2 text-base font-semibold", className),
|
|
2605
|
+
...props
|
|
2606
|
+
}
|
|
2607
|
+
));
|
|
2608
|
+
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
2609
|
+
var SelectItem = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2610
|
+
SelectPrimitive__namespace.Item,
|
|
2611
|
+
{
|
|
2612
|
+
ref,
|
|
2613
|
+
className: cn(
|
|
2614
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-base outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
2615
|
+
className
|
|
2616
|
+
),
|
|
2617
|
+
...props,
|
|
2618
|
+
children: [
|
|
2619
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
|
|
2620
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
2621
|
+
]
|
|
2622
|
+
}
|
|
2623
|
+
));
|
|
2624
|
+
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
2625
|
+
var SelectSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2626
|
+
SelectPrimitive__namespace.Separator,
|
|
2627
|
+
{
|
|
2628
|
+
ref,
|
|
2629
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
2630
|
+
...props
|
|
2631
|
+
}
|
|
2632
|
+
));
|
|
2633
|
+
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
2634
|
+
var Separator5 = React36__namespace.forwardRef(
|
|
2635
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2636
|
+
SeparatorPrimitive__namespace.Root,
|
|
2637
|
+
{
|
|
2638
|
+
ref,
|
|
2639
|
+
decorative,
|
|
2640
|
+
orientation,
|
|
2641
|
+
className: cn(
|
|
2642
|
+
"shrink-0 bg-border",
|
|
2643
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
2644
|
+
className
|
|
2645
|
+
),
|
|
2646
|
+
...props
|
|
2647
|
+
}
|
|
2648
|
+
)
|
|
2649
|
+
);
|
|
2650
|
+
Separator5.displayName = SeparatorPrimitive__namespace.Root.displayName;
|
|
2651
|
+
var Sheet = DialogPrimitive__namespace.Root;
|
|
2652
|
+
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
2653
|
+
var SheetClose = DialogPrimitive__namespace.Close;
|
|
2654
|
+
var SheetPortal = DialogPrimitive__namespace.Portal;
|
|
2655
|
+
var SheetOverlay = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2656
|
+
DialogPrimitive__namespace.Overlay,
|
|
2657
|
+
{
|
|
2658
|
+
className: cn(
|
|
2659
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
2660
|
+
className
|
|
2661
|
+
),
|
|
2662
|
+
...props,
|
|
2663
|
+
ref
|
|
2664
|
+
}
|
|
2665
|
+
));
|
|
2666
|
+
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
2667
|
+
var sheetVariants = classVarianceAuthority.cva(
|
|
2668
|
+
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
2669
|
+
{
|
|
2670
|
+
variants: {
|
|
2671
|
+
side: {
|
|
2672
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
2673
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
2674
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
2675
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
2676
|
+
}
|
|
2677
|
+
},
|
|
2678
|
+
defaultVariants: {
|
|
2679
|
+
side: "right"
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
);
|
|
2683
|
+
var SheetContent = React36__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
2684
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
2685
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2686
|
+
DialogPrimitive__namespace.Content,
|
|
2687
|
+
{
|
|
2688
|
+
ref,
|
|
2689
|
+
className: cn(sheetVariants({ side }), className),
|
|
2690
|
+
...props,
|
|
2691
|
+
children: [
|
|
2692
|
+
children,
|
|
2693
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2694
|
+
DialogPrimitive__namespace.Close,
|
|
2695
|
+
{
|
|
2696
|
+
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
2697
|
+
children: [
|
|
2698
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
2699
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
2700
|
+
]
|
|
2701
|
+
}
|
|
2702
|
+
)
|
|
2703
|
+
]
|
|
2704
|
+
}
|
|
2705
|
+
)
|
|
2706
|
+
] }));
|
|
2707
|
+
SheetContent.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
2708
|
+
var SheetHeader = ({
|
|
2709
|
+
className,
|
|
2710
|
+
...props
|
|
2711
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2712
|
+
"div",
|
|
2713
|
+
{
|
|
2714
|
+
className: cn(
|
|
2715
|
+
"flex flex-col space-y-2 text-center sm:text-left",
|
|
2716
|
+
className
|
|
2717
|
+
),
|
|
2718
|
+
...props
|
|
2719
|
+
}
|
|
2720
|
+
);
|
|
2721
|
+
SheetHeader.displayName = "SheetHeader";
|
|
2722
|
+
var SheetFooter = ({
|
|
2723
|
+
className,
|
|
2724
|
+
...props
|
|
2725
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2726
|
+
"div",
|
|
2727
|
+
{
|
|
2728
|
+
className: cn(
|
|
2729
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
2730
|
+
className
|
|
2731
|
+
),
|
|
2732
|
+
...props
|
|
2733
|
+
}
|
|
2734
|
+
);
|
|
2735
|
+
SheetFooter.displayName = "SheetFooter";
|
|
2736
|
+
var SheetTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2737
|
+
DialogPrimitive__namespace.Title,
|
|
2738
|
+
{
|
|
2739
|
+
ref,
|
|
2740
|
+
className: cn("text-lg font-semibold text-foreground", className),
|
|
2741
|
+
...props
|
|
2742
|
+
}
|
|
2743
|
+
));
|
|
2744
|
+
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
2745
|
+
var SheetDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2746
|
+
DialogPrimitive__namespace.Description,
|
|
2747
|
+
{
|
|
2748
|
+
ref,
|
|
2749
|
+
className: cn("text-base text-muted-foreground", className),
|
|
2750
|
+
...props
|
|
2751
|
+
}
|
|
2752
|
+
));
|
|
2753
|
+
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
2754
|
+
function Skeleton({
|
|
2755
|
+
className,
|
|
2756
|
+
...props
|
|
2757
|
+
}) {
|
|
2758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2759
|
+
"div",
|
|
2760
|
+
{
|
|
2761
|
+
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
2762
|
+
...props
|
|
2763
|
+
}
|
|
2764
|
+
);
|
|
2765
|
+
}
|
|
2766
|
+
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
2767
|
+
var Tooltip2 = TooltipPrimitive__namespace.Root;
|
|
2768
|
+
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
2769
|
+
var TooltipContent = React36__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2770
|
+
TooltipPrimitive__namespace.Content,
|
|
2771
|
+
{
|
|
2772
|
+
ref,
|
|
2773
|
+
sideOffset,
|
|
2774
|
+
className: cn(
|
|
2775
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-2.5 py-1 text-xs text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2776
|
+
className
|
|
2777
|
+
),
|
|
2778
|
+
...props
|
|
2779
|
+
}
|
|
2780
|
+
));
|
|
2781
|
+
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
2782
|
+
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
2783
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2784
|
+
var SIDEBAR_WIDTH = "16rem";
|
|
2785
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2786
|
+
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2787
|
+
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2788
|
+
var SidebarContext = React36__namespace.createContext(null);
|
|
2789
|
+
function useSidebar() {
|
|
2790
|
+
const context = React36__namespace.useContext(SidebarContext);
|
|
2791
|
+
if (!context) {
|
|
2792
|
+
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2793
|
+
}
|
|
2794
|
+
return context;
|
|
2795
|
+
}
|
|
2796
|
+
var SidebarProvider = React36__namespace.forwardRef(
|
|
2797
|
+
({
|
|
2798
|
+
defaultOpen = true,
|
|
2799
|
+
open: openProp,
|
|
2800
|
+
onOpenChange: setOpenProp,
|
|
2801
|
+
className,
|
|
2802
|
+
style,
|
|
2803
|
+
children,
|
|
2804
|
+
...props
|
|
2805
|
+
}, ref) => {
|
|
2806
|
+
const isMobile = useIsMobile();
|
|
2807
|
+
const [openMobile, setOpenMobile] = React36__namespace.useState(false);
|
|
2808
|
+
const [_open, _setOpen] = React36__namespace.useState(defaultOpen);
|
|
2809
|
+
const open = openProp ?? _open;
|
|
2810
|
+
const setOpen = React36__namespace.useCallback(
|
|
2811
|
+
(value) => {
|
|
2812
|
+
if (setOpenProp) {
|
|
2813
|
+
return setOpenProp?.(
|
|
2814
|
+
typeof value === "function" ? value(open) : value
|
|
2815
|
+
);
|
|
2816
|
+
}
|
|
2817
|
+
_setOpen(value);
|
|
2818
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
2819
|
+
},
|
|
2820
|
+
[setOpenProp, open]
|
|
2821
|
+
);
|
|
2822
|
+
const toggleSidebar = React36__namespace.useCallback(() => {
|
|
2823
|
+
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2824
|
+
}, [isMobile, setOpen, setOpenMobile]);
|
|
2825
|
+
React36__namespace.useEffect(() => {
|
|
2826
|
+
const handleKeyDown = (event) => {
|
|
2827
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2828
|
+
event.preventDefault();
|
|
2829
|
+
toggleSidebar();
|
|
2830
|
+
}
|
|
2831
|
+
};
|
|
2832
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
2833
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2834
|
+
}, [toggleSidebar]);
|
|
2835
|
+
const state = open ? "expanded" : "collapsed";
|
|
2836
|
+
const contextValue = React36__namespace.useMemo(
|
|
2837
|
+
() => ({
|
|
2838
|
+
state,
|
|
2839
|
+
open,
|
|
2840
|
+
setOpen,
|
|
2841
|
+
isMobile,
|
|
2842
|
+
openMobile,
|
|
2843
|
+
setOpenMobile,
|
|
2844
|
+
toggleSidebar
|
|
2845
|
+
}),
|
|
2846
|
+
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2847
|
+
);
|
|
2848
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2849
|
+
"div",
|
|
2850
|
+
{
|
|
2851
|
+
style: {
|
|
2852
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
2853
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
2854
|
+
...style
|
|
2855
|
+
},
|
|
2856
|
+
className: cn(
|
|
2857
|
+
"group/sidebar-wrapper flex min-h-svh w-full text-sidebar-foreground has-[[data-variant=inset]]:bg-sidebar",
|
|
2858
|
+
className
|
|
2859
|
+
),
|
|
2860
|
+
ref,
|
|
2861
|
+
...props,
|
|
2862
|
+
children
|
|
2863
|
+
}
|
|
2864
|
+
) }) });
|
|
2865
|
+
}
|
|
2866
|
+
);
|
|
2867
|
+
SidebarProvider.displayName = "SidebarProvider";
|
|
2868
|
+
var Sidebar = React36__namespace.forwardRef(
|
|
2869
|
+
({
|
|
2870
|
+
side = "left",
|
|
2871
|
+
variant = "sidebar",
|
|
2872
|
+
collapsible = "offcanvas",
|
|
2873
|
+
className,
|
|
2874
|
+
children,
|
|
2875
|
+
...props
|
|
2876
|
+
}, ref) => {
|
|
2877
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
2878
|
+
if (collapsible === "none") {
|
|
2879
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2880
|
+
"div",
|
|
2881
|
+
{
|
|
2882
|
+
className: cn(
|
|
2883
|
+
"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
|
|
2884
|
+
className
|
|
2885
|
+
),
|
|
2886
|
+
ref,
|
|
2887
|
+
...props,
|
|
2888
|
+
children
|
|
2889
|
+
}
|
|
2890
|
+
);
|
|
2891
|
+
}
|
|
2892
|
+
if (isMobile) {
|
|
2893
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2894
|
+
SheetContent,
|
|
2895
|
+
{
|
|
2896
|
+
"data-sidebar": "sidebar",
|
|
2897
|
+
"data-mobile": "true",
|
|
2898
|
+
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
2899
|
+
style: {
|
|
2900
|
+
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
2901
|
+
},
|
|
2902
|
+
side,
|
|
2903
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
2904
|
+
}
|
|
2905
|
+
) });
|
|
2906
|
+
}
|
|
2907
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2908
|
+
"div",
|
|
2909
|
+
{
|
|
2910
|
+
ref,
|
|
2911
|
+
className: "group peer hidden md:block",
|
|
2912
|
+
"data-state": state,
|
|
2913
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
2914
|
+
"data-variant": variant,
|
|
2915
|
+
"data-side": side,
|
|
2916
|
+
children: [
|
|
2917
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2918
|
+
"div",
|
|
2919
|
+
{
|
|
2920
|
+
className: cn(
|
|
2921
|
+
"duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
|
|
2922
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
2923
|
+
"group-data-[side=right]:rotate-180",
|
|
2924
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
2925
|
+
)
|
|
2926
|
+
}
|
|
2927
|
+
),
|
|
2928
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2929
|
+
"div",
|
|
2930
|
+
{
|
|
2931
|
+
className: cn(
|
|
2932
|
+
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
|
|
2933
|
+
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
2934
|
+
// Adjust the padding for floating and inset variants.
|
|
2935
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
2936
|
+
className
|
|
2937
|
+
),
|
|
2938
|
+
...props,
|
|
2939
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2940
|
+
"div",
|
|
2941
|
+
{
|
|
2942
|
+
"data-sidebar": "sidebar",
|
|
2943
|
+
className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
2944
|
+
children
|
|
2945
|
+
}
|
|
2946
|
+
)
|
|
2947
|
+
}
|
|
2948
|
+
)
|
|
2949
|
+
]
|
|
2950
|
+
}
|
|
2951
|
+
);
|
|
2952
|
+
}
|
|
2953
|
+
);
|
|
2954
|
+
Sidebar.displayName = "Sidebar";
|
|
2955
|
+
var SidebarTrigger = React36__namespace.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2956
|
+
const { toggleSidebar } = useSidebar();
|
|
2957
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2958
|
+
Button,
|
|
2959
|
+
{
|
|
2960
|
+
ref,
|
|
2961
|
+
"data-sidebar": "trigger",
|
|
2962
|
+
variant: "ghost",
|
|
2963
|
+
size: "icon",
|
|
2964
|
+
className: cn("h-7 w-7", className),
|
|
2965
|
+
onClick: (event) => {
|
|
2966
|
+
onClick?.(event);
|
|
2967
|
+
toggleSidebar();
|
|
2968
|
+
},
|
|
2969
|
+
...props,
|
|
2970
|
+
children: [
|
|
2971
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, {}),
|
|
2972
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
2973
|
+
]
|
|
2974
|
+
}
|
|
2975
|
+
);
|
|
2976
|
+
});
|
|
2977
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2978
|
+
var SidebarRail = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2979
|
+
const { toggleSidebar } = useSidebar();
|
|
2980
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2981
|
+
"button",
|
|
2982
|
+
{
|
|
2983
|
+
ref,
|
|
2984
|
+
"data-sidebar": "rail",
|
|
2985
|
+
"aria-label": "Toggle Sidebar",
|
|
2986
|
+
tabIndex: -1,
|
|
2987
|
+
onClick: toggleSidebar,
|
|
2988
|
+
title: "Toggle Sidebar",
|
|
2989
|
+
className: cn(
|
|
2990
|
+
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
2991
|
+
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
2992
|
+
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
2993
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
|
|
2994
|
+
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
2995
|
+
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
2996
|
+
className
|
|
2997
|
+
),
|
|
2998
|
+
...props
|
|
2999
|
+
}
|
|
3000
|
+
);
|
|
3001
|
+
});
|
|
3002
|
+
SidebarRail.displayName = "SidebarRail";
|
|
3003
|
+
var SidebarInset = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3004
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3005
|
+
"main",
|
|
3006
|
+
{
|
|
3007
|
+
ref,
|
|
3008
|
+
className: cn(
|
|
3009
|
+
"relative flex min-h-svh flex-1 flex-col bg-background",
|
|
3010
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
3011
|
+
className
|
|
3012
|
+
),
|
|
3013
|
+
...props
|
|
3014
|
+
}
|
|
3015
|
+
);
|
|
3016
|
+
});
|
|
3017
|
+
SidebarInset.displayName = "SidebarInset";
|
|
3018
|
+
var SidebarInput = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3019
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3020
|
+
Input,
|
|
3021
|
+
{
|
|
3022
|
+
ref,
|
|
3023
|
+
"data-sidebar": "input",
|
|
3024
|
+
className: cn(
|
|
3025
|
+
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
|
|
3026
|
+
className
|
|
3027
|
+
),
|
|
3028
|
+
...props
|
|
3029
|
+
}
|
|
3030
|
+
);
|
|
3031
|
+
});
|
|
3032
|
+
SidebarInput.displayName = "SidebarInput";
|
|
3033
|
+
var SidebarHeader = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3034
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3035
|
+
"div",
|
|
3036
|
+
{
|
|
3037
|
+
ref,
|
|
3038
|
+
"data-sidebar": "header",
|
|
3039
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
3040
|
+
...props
|
|
3041
|
+
}
|
|
3042
|
+
);
|
|
3043
|
+
});
|
|
3044
|
+
SidebarHeader.displayName = "SidebarHeader";
|
|
3045
|
+
var SidebarFooter = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3046
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3047
|
+
"div",
|
|
3048
|
+
{
|
|
3049
|
+
ref,
|
|
3050
|
+
"data-sidebar": "footer",
|
|
3051
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
3052
|
+
...props
|
|
3053
|
+
}
|
|
3054
|
+
);
|
|
3055
|
+
});
|
|
3056
|
+
SidebarFooter.displayName = "SidebarFooter";
|
|
3057
|
+
var SidebarSeparator = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3058
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3059
|
+
Separator5,
|
|
3060
|
+
{
|
|
3061
|
+
ref,
|
|
3062
|
+
"data-sidebar": "separator",
|
|
3063
|
+
className: cn("mx-2 w-auto bg-sidebar-border", className),
|
|
3064
|
+
...props
|
|
3065
|
+
}
|
|
3066
|
+
);
|
|
3067
|
+
});
|
|
3068
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3069
|
+
var SidebarContent = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3070
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3071
|
+
"div",
|
|
3072
|
+
{
|
|
3073
|
+
ref,
|
|
3074
|
+
"data-sidebar": "content",
|
|
3075
|
+
className: cn(
|
|
3076
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
3077
|
+
className
|
|
3078
|
+
),
|
|
3079
|
+
...props
|
|
3080
|
+
}
|
|
3081
|
+
);
|
|
3082
|
+
});
|
|
3083
|
+
SidebarContent.displayName = "SidebarContent";
|
|
3084
|
+
var SidebarGroup = React36__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3085
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3086
|
+
"div",
|
|
3087
|
+
{
|
|
3088
|
+
ref,
|
|
3089
|
+
"data-sidebar": "group",
|
|
3090
|
+
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
3091
|
+
...props
|
|
3092
|
+
}
|
|
3093
|
+
);
|
|
3094
|
+
});
|
|
3095
|
+
SidebarGroup.displayName = "SidebarGroup";
|
|
3096
|
+
var SidebarGroupLabel = React36__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3097
|
+
const Comp = asChild ? reactSlot.Slot : "div";
|
|
3098
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3099
|
+
Comp,
|
|
3100
|
+
{
|
|
3101
|
+
ref,
|
|
3102
|
+
"data-sidebar": "group-label",
|
|
3103
|
+
className: cn(
|
|
3104
|
+
"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3105
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
3106
|
+
className
|
|
3107
|
+
),
|
|
3108
|
+
...props
|
|
3109
|
+
}
|
|
3110
|
+
);
|
|
3111
|
+
});
|
|
3112
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3113
|
+
var SidebarGroupAction = React36__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3114
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
3115
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3116
|
+
Comp,
|
|
3117
|
+
{
|
|
3118
|
+
ref,
|
|
3119
|
+
"data-sidebar": "group-action",
|
|
3120
|
+
className: cn(
|
|
3121
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3122
|
+
// Increases the hit area of the button on mobile.
|
|
3123
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
3124
|
+
"group-data-[collapsible=icon]:hidden",
|
|
3125
|
+
className
|
|
3126
|
+
),
|
|
3127
|
+
...props
|
|
3128
|
+
}
|
|
3129
|
+
);
|
|
3130
|
+
});
|
|
3131
|
+
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3132
|
+
var SidebarGroupContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3133
|
+
"div",
|
|
3134
|
+
{
|
|
3135
|
+
ref,
|
|
3136
|
+
"data-sidebar": "group-content",
|
|
3137
|
+
className: cn("w-full text-base", className),
|
|
3138
|
+
...props
|
|
3139
|
+
}
|
|
3140
|
+
));
|
|
3141
|
+
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3142
|
+
var SidebarMenu = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3143
|
+
"ul",
|
|
3144
|
+
{
|
|
3145
|
+
ref,
|
|
3146
|
+
"data-sidebar": "menu",
|
|
3147
|
+
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
3148
|
+
...props
|
|
3149
|
+
}
|
|
3150
|
+
));
|
|
3151
|
+
SidebarMenu.displayName = "SidebarMenu";
|
|
3152
|
+
var SidebarMenuItem = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3153
|
+
"li",
|
|
3154
|
+
{
|
|
3155
|
+
ref,
|
|
3156
|
+
"data-sidebar": "menu-item",
|
|
3157
|
+
className: cn("group/menu-item relative", className),
|
|
3158
|
+
...props
|
|
3159
|
+
}
|
|
3160
|
+
));
|
|
3161
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3162
|
+
var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
3163
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-base outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3164
|
+
{
|
|
3165
|
+
variants: {
|
|
3166
|
+
variant: {
|
|
3167
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
3168
|
+
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
3169
|
+
},
|
|
3170
|
+
size: {
|
|
3171
|
+
default: "h-8 text-base",
|
|
3172
|
+
sm: "h-7 text-xs",
|
|
3173
|
+
lg: "h-12 text-base group-data-[collapsible=icon]:!p-0"
|
|
3174
|
+
}
|
|
3175
|
+
},
|
|
3176
|
+
defaultVariants: {
|
|
3177
|
+
variant: "default",
|
|
3178
|
+
size: "default"
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
);
|
|
3182
|
+
var SidebarMenuButton = React36__namespace.forwardRef(
|
|
3183
|
+
({
|
|
3184
|
+
asChild = false,
|
|
3185
|
+
isActive = false,
|
|
3186
|
+
variant = "default",
|
|
3187
|
+
size = "default",
|
|
3188
|
+
tooltip,
|
|
3189
|
+
className,
|
|
3190
|
+
...props
|
|
3191
|
+
}, ref) => {
|
|
3192
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
3193
|
+
const { isMobile, state } = useSidebar();
|
|
3194
|
+
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3195
|
+
Comp,
|
|
3196
|
+
{
|
|
3197
|
+
ref,
|
|
3198
|
+
"data-sidebar": "menu-button",
|
|
3199
|
+
"data-size": size,
|
|
3200
|
+
"data-active": isActive,
|
|
3201
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
3202
|
+
...props
|
|
3203
|
+
}
|
|
3204
|
+
);
|
|
3205
|
+
if (!tooltip) {
|
|
3206
|
+
return button;
|
|
3207
|
+
}
|
|
3208
|
+
if (typeof tooltip === "string") {
|
|
3209
|
+
tooltip = {
|
|
3210
|
+
children: tooltip
|
|
3211
|
+
};
|
|
3212
|
+
}
|
|
3213
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip2, { children: [
|
|
3214
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: button }),
|
|
3215
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3216
|
+
TooltipContent,
|
|
3217
|
+
{
|
|
3218
|
+
side: "right",
|
|
3219
|
+
align: "center",
|
|
3220
|
+
hidden: state !== "collapsed" || isMobile,
|
|
3221
|
+
...tooltip
|
|
3222
|
+
}
|
|
3223
|
+
)
|
|
3224
|
+
] });
|
|
3225
|
+
}
|
|
3226
|
+
);
|
|
3227
|
+
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3228
|
+
var SidebarMenuAction = React36__namespace.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3229
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
3230
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3231
|
+
Comp,
|
|
3232
|
+
{
|
|
3233
|
+
ref,
|
|
3234
|
+
"data-sidebar": "menu-action",
|
|
3235
|
+
className: cn(
|
|
3236
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3237
|
+
// Increases the hit area of the button on mobile.
|
|
3238
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
3239
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
3240
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3241
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3242
|
+
"group-data-[collapsible=icon]:hidden",
|
|
3243
|
+
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
|
|
3244
|
+
className
|
|
3245
|
+
),
|
|
3246
|
+
...props
|
|
3247
|
+
}
|
|
3248
|
+
);
|
|
3249
|
+
});
|
|
3250
|
+
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3251
|
+
var SidebarMenuBadge = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3252
|
+
"div",
|
|
3253
|
+
{
|
|
3254
|
+
ref,
|
|
3255
|
+
"data-sidebar": "menu-badge",
|
|
3256
|
+
className: cn(
|
|
3257
|
+
"absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none",
|
|
3258
|
+
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
3259
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
3260
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
3261
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
3262
|
+
"group-data-[collapsible=icon]:hidden",
|
|
3263
|
+
className
|
|
3264
|
+
),
|
|
3265
|
+
...props
|
|
3266
|
+
}
|
|
3267
|
+
));
|
|
3268
|
+
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3269
|
+
var SidebarMenuSkeleton = React36__namespace.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3270
|
+
const width = React36__namespace.useMemo(() => {
|
|
3271
|
+
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3272
|
+
}, []);
|
|
3273
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3274
|
+
"div",
|
|
3275
|
+
{
|
|
3276
|
+
ref,
|
|
3277
|
+
"data-sidebar": "menu-skeleton",
|
|
3278
|
+
className: cn("rounded-md h-8 flex gap-2 px-2 items-center", className),
|
|
3279
|
+
...props,
|
|
3280
|
+
children: [
|
|
3281
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3282
|
+
Skeleton,
|
|
3283
|
+
{
|
|
3284
|
+
className: "size-4 rounded-md",
|
|
3285
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
3286
|
+
}
|
|
3287
|
+
),
|
|
3288
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3289
|
+
Skeleton,
|
|
3290
|
+
{
|
|
3291
|
+
className: "h-4 flex-1 max-w-[--skeleton-width]",
|
|
3292
|
+
"data-sidebar": "menu-skeleton-text",
|
|
3293
|
+
style: {
|
|
3294
|
+
"--skeleton-width": width
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
)
|
|
3298
|
+
]
|
|
3299
|
+
}
|
|
3300
|
+
);
|
|
3301
|
+
});
|
|
3302
|
+
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3303
|
+
var SidebarMenuSub = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3304
|
+
"ul",
|
|
3305
|
+
{
|
|
3306
|
+
ref,
|
|
3307
|
+
"data-sidebar": "menu-sub",
|
|
3308
|
+
className: cn(
|
|
3309
|
+
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
|
|
3310
|
+
"group-data-[collapsible=icon]:hidden",
|
|
3311
|
+
className
|
|
3312
|
+
),
|
|
3313
|
+
...props
|
|
3314
|
+
}
|
|
3315
|
+
));
|
|
3316
|
+
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3317
|
+
var SidebarMenuSubItem = React36__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, ...props }));
|
|
3318
|
+
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3319
|
+
var SidebarMenuSubButton = React36__namespace.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3320
|
+
const Comp = asChild ? reactSlot.Slot : "a";
|
|
3321
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3322
|
+
Comp,
|
|
3323
|
+
{
|
|
3324
|
+
ref,
|
|
3325
|
+
"data-sidebar": "menu-sub-button",
|
|
3326
|
+
"data-size": size,
|
|
3327
|
+
"data-active": isActive,
|
|
3328
|
+
className: cn(
|
|
3329
|
+
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
3330
|
+
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
3331
|
+
size === "sm" && "text-xs",
|
|
3332
|
+
size === "md" && "text-base",
|
|
3333
|
+
"group-data-[collapsible=icon]:hidden",
|
|
3334
|
+
className
|
|
3335
|
+
),
|
|
3336
|
+
...props
|
|
3337
|
+
}
|
|
3338
|
+
);
|
|
3339
|
+
});
|
|
3340
|
+
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
3341
|
+
function SimpleTabs({ tabs, activeTab, onTabChange }) {
|
|
3342
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1 rounded-lg bg-muted/50 p-1", children: tabs.map((tab) => {
|
|
3343
|
+
const isActive = activeTab === tab.id;
|
|
3344
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3345
|
+
"button",
|
|
3346
|
+
{
|
|
3347
|
+
onClick: () => onTabChange(tab.id),
|
|
3348
|
+
className: `
|
|
3349
|
+
flex flex-1 items-center justify-center rounded-md px-4 py-2.5 text-sm font-medium transition-all
|
|
3350
|
+
${isActive ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"}
|
|
3351
|
+
`,
|
|
3352
|
+
children: tab.label
|
|
3353
|
+
},
|
|
3354
|
+
tab.id
|
|
3355
|
+
);
|
|
3356
|
+
}) });
|
|
3357
|
+
}
|
|
3358
|
+
var Slider = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3359
|
+
SliderPrimitive__namespace.Root,
|
|
3360
|
+
{
|
|
3361
|
+
ref,
|
|
3362
|
+
className: cn(
|
|
3363
|
+
"relative flex w-full touch-none select-none items-center",
|
|
3364
|
+
className
|
|
3365
|
+
),
|
|
3366
|
+
...props,
|
|
3367
|
+
children: [
|
|
3368
|
+
/* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Range, { className: "absolute h-full bg-primary" }) }),
|
|
3369
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3370
|
+
SliderPrimitive__namespace.Thumb,
|
|
3371
|
+
{
|
|
3372
|
+
className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
3373
|
+
}
|
|
3374
|
+
)
|
|
3375
|
+
]
|
|
3376
|
+
}
|
|
3377
|
+
));
|
|
3378
|
+
Slider.displayName = SliderPrimitive__namespace.Root.displayName;
|
|
3379
|
+
var statusBadgeVariants = classVarianceAuthority.cva(
|
|
3380
|
+
"inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium transition-colors",
|
|
3381
|
+
{
|
|
3382
|
+
variants: {
|
|
3383
|
+
status: {
|
|
3384
|
+
pending: "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-400",
|
|
3385
|
+
new: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400",
|
|
3386
|
+
ready: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",
|
|
3387
|
+
completed: "bg-violet-100 text-violet-800 dark:bg-violet-900/30 dark:text-violet-400",
|
|
3388
|
+
not_published: "bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400",
|
|
3389
|
+
waiting_publication: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",
|
|
3390
|
+
published: "bg-emerald-100 text-emerald-800 dark:bg-emerald-900/30 dark:text-emerald-400",
|
|
3391
|
+
waiting_deletion: "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"
|
|
3392
|
+
}
|
|
3393
|
+
},
|
|
3394
|
+
defaultVariants: {
|
|
3395
|
+
status: "pending"
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
);
|
|
3399
|
+
var statusLabels = {
|
|
3400
|
+
pending: "In preparazione",
|
|
3401
|
+
new: "Creata",
|
|
3402
|
+
ready: "Pronta",
|
|
3403
|
+
completed: "Completata",
|
|
3404
|
+
not_published: "Not Published",
|
|
3405
|
+
waiting_publication: "Publishing...",
|
|
3406
|
+
published: "Published",
|
|
3407
|
+
waiting_deletion: "Deleting..."
|
|
3408
|
+
};
|
|
3409
|
+
var statusIcons = {
|
|
3410
|
+
pending: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative flex h-2 w-2", children: [
|
|
3411
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75" }),
|
|
3412
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-amber-500" })
|
|
3413
|
+
] }),
|
|
3414
|
+
new: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex rounded-full h-2 w-2 bg-blue-500" }),
|
|
3415
|
+
ready: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex rounded-full h-2 w-2 bg-green-500" }),
|
|
3416
|
+
completed: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex rounded-full h-2 w-2 bg-violet-500" }),
|
|
3417
|
+
not_published: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex rounded-full h-2 w-2 bg-gray-400" }),
|
|
3418
|
+
waiting_publication: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative flex h-2 w-2", children: [
|
|
3419
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-yellow-400 opacity-75" }),
|
|
3420
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-yellow-500" })
|
|
3421
|
+
] }),
|
|
3422
|
+
published: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex rounded-full h-2 w-2 bg-emerald-500" }),
|
|
3423
|
+
waiting_deletion: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative flex h-2 w-2", children: [
|
|
3424
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75" }),
|
|
3425
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-red-500" })
|
|
3426
|
+
] })
|
|
3427
|
+
};
|
|
3428
|
+
function StatusBadge({
|
|
3429
|
+
className,
|
|
3430
|
+
status,
|
|
3431
|
+
showIcon = true,
|
|
3432
|
+
label,
|
|
3433
|
+
...props
|
|
3434
|
+
}) {
|
|
3435
|
+
const statusKey = status || "pending";
|
|
3436
|
+
const displayLabel = label || statusLabels[statusKey] || statusKey;
|
|
3437
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3438
|
+
"div",
|
|
3439
|
+
{
|
|
3440
|
+
className: cn(statusBadgeVariants({ status }), className),
|
|
3441
|
+
...props,
|
|
3442
|
+
children: [
|
|
3443
|
+
showIcon && statusIcons[statusKey],
|
|
3444
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: displayLabel })
|
|
3445
|
+
]
|
|
3446
|
+
}
|
|
3447
|
+
);
|
|
3448
|
+
}
|
|
3449
|
+
var Switch = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3450
|
+
SwitchPrimitives__namespace.Root,
|
|
3451
|
+
{
|
|
3452
|
+
className: cn(
|
|
3453
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
3454
|
+
className
|
|
3455
|
+
),
|
|
3456
|
+
...props,
|
|
3457
|
+
ref,
|
|
3458
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3459
|
+
SwitchPrimitives__namespace.Thumb,
|
|
3460
|
+
{
|
|
3461
|
+
className: cn(
|
|
3462
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
3463
|
+
)
|
|
3464
|
+
}
|
|
3465
|
+
)
|
|
3466
|
+
}
|
|
3467
|
+
));
|
|
3468
|
+
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
3469
|
+
var Table = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3470
|
+
"table",
|
|
3471
|
+
{
|
|
3472
|
+
ref,
|
|
3473
|
+
className: cn("w-full caption-bottom text-base", className),
|
|
3474
|
+
...props
|
|
3475
|
+
}
|
|
3476
|
+
) }));
|
|
3477
|
+
Table.displayName = "Table";
|
|
3478
|
+
var TableHeader = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3479
|
+
TableHeader.displayName = "TableHeader";
|
|
3480
|
+
var TableBody = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3481
|
+
"tbody",
|
|
3482
|
+
{
|
|
3483
|
+
ref,
|
|
3484
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
3485
|
+
...props
|
|
3486
|
+
}
|
|
3487
|
+
));
|
|
3488
|
+
TableBody.displayName = "TableBody";
|
|
3489
|
+
var TableFooter = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3490
|
+
"tfoot",
|
|
3491
|
+
{
|
|
3492
|
+
ref,
|
|
3493
|
+
className: cn(
|
|
3494
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
3495
|
+
className
|
|
3496
|
+
),
|
|
3497
|
+
...props
|
|
3498
|
+
}
|
|
3499
|
+
));
|
|
3500
|
+
TableFooter.displayName = "TableFooter";
|
|
3501
|
+
var TableRow = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3502
|
+
"tr",
|
|
3503
|
+
{
|
|
3504
|
+
ref,
|
|
3505
|
+
className: cn(
|
|
3506
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
3507
|
+
className
|
|
3508
|
+
),
|
|
3509
|
+
...props
|
|
3510
|
+
}
|
|
3511
|
+
));
|
|
3512
|
+
TableRow.displayName = "TableRow";
|
|
3513
|
+
var TableHead = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3514
|
+
"th",
|
|
3515
|
+
{
|
|
3516
|
+
ref,
|
|
3517
|
+
className: cn(
|
|
3518
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
3519
|
+
className
|
|
3520
|
+
),
|
|
3521
|
+
...props
|
|
3522
|
+
}
|
|
3523
|
+
));
|
|
3524
|
+
TableHead.displayName = "TableHead";
|
|
3525
|
+
var TableCell = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3526
|
+
"td",
|
|
3527
|
+
{
|
|
3528
|
+
ref,
|
|
3529
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
3530
|
+
...props
|
|
3531
|
+
}
|
|
3532
|
+
));
|
|
3533
|
+
TableCell.displayName = "TableCell";
|
|
3534
|
+
var TableCaption = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3535
|
+
"caption",
|
|
3536
|
+
{
|
|
3537
|
+
ref,
|
|
3538
|
+
className: cn("mt-4 text-base text-muted-foreground", className),
|
|
3539
|
+
...props
|
|
3540
|
+
}
|
|
3541
|
+
));
|
|
3542
|
+
TableCaption.displayName = "TableCaption";
|
|
3543
|
+
var Tabs = TabsPrimitive__namespace.Root;
|
|
3544
|
+
var TabsList = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto pb-1 hide-scrollbar", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3545
|
+
TabsPrimitive__namespace.List,
|
|
3546
|
+
{
|
|
3547
|
+
ref,
|
|
3548
|
+
className: cn(
|
|
3549
|
+
"inline-flex items-center justify-start rounded-md bg-muted p-1 text-muted-foreground",
|
|
3550
|
+
className
|
|
3551
|
+
),
|
|
3552
|
+
...props
|
|
3553
|
+
}
|
|
3554
|
+
) }));
|
|
3555
|
+
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3556
|
+
var TabsTrigger = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3557
|
+
TabsPrimitive__namespace.Trigger,
|
|
3558
|
+
{
|
|
3559
|
+
ref,
|
|
3560
|
+
className: cn(
|
|
3561
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-base font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
3562
|
+
className
|
|
3563
|
+
),
|
|
3564
|
+
...props
|
|
3565
|
+
}
|
|
3566
|
+
));
|
|
3567
|
+
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3568
|
+
var TabsContent = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3569
|
+
TabsPrimitive__namespace.Content,
|
|
3570
|
+
{
|
|
3571
|
+
ref,
|
|
3572
|
+
className: cn(
|
|
3573
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
3574
|
+
className
|
|
3575
|
+
),
|
|
3576
|
+
...props
|
|
3577
|
+
}
|
|
3578
|
+
));
|
|
3579
|
+
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3580
|
+
var Textarea = React36__namespace.forwardRef(
|
|
3581
|
+
({ className, ...props }, ref) => {
|
|
3582
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3583
|
+
"textarea",
|
|
3584
|
+
{
|
|
3585
|
+
className: cn(
|
|
3586
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
3587
|
+
className
|
|
3588
|
+
),
|
|
3589
|
+
ref,
|
|
3590
|
+
...props
|
|
3591
|
+
}
|
|
3592
|
+
);
|
|
3593
|
+
}
|
|
3594
|
+
);
|
|
3595
|
+
Textarea.displayName = "Textarea";
|
|
3596
|
+
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
3597
|
+
var ToastViewport = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3598
|
+
ToastPrimitives__namespace.Viewport,
|
|
3599
|
+
{
|
|
3600
|
+
ref,
|
|
3601
|
+
className: cn(
|
|
3602
|
+
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
3603
|
+
className
|
|
3604
|
+
),
|
|
3605
|
+
...props
|
|
3606
|
+
}
|
|
3607
|
+
));
|
|
3608
|
+
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
3609
|
+
var toastVariants = classVarianceAuthority.cva(
|
|
3610
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
3611
|
+
{
|
|
3612
|
+
variants: {
|
|
3613
|
+
variant: {
|
|
3614
|
+
default: "border bg-background text-foreground",
|
|
3615
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
3616
|
+
}
|
|
3617
|
+
},
|
|
3618
|
+
defaultVariants: {
|
|
3619
|
+
variant: "default"
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
);
|
|
3623
|
+
var Toast = React36__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
3624
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3625
|
+
ToastPrimitives__namespace.Root,
|
|
3626
|
+
{
|
|
3627
|
+
ref,
|
|
3628
|
+
className: cn(toastVariants({ variant }), className),
|
|
3629
|
+
...props
|
|
3630
|
+
}
|
|
3631
|
+
);
|
|
3632
|
+
});
|
|
3633
|
+
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
3634
|
+
var ToastAction = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3635
|
+
ToastPrimitives__namespace.Action,
|
|
3636
|
+
{
|
|
3637
|
+
ref,
|
|
3638
|
+
className: cn(
|
|
3639
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
|
|
3640
|
+
className
|
|
3641
|
+
),
|
|
3642
|
+
...props
|
|
3643
|
+
}
|
|
3644
|
+
));
|
|
3645
|
+
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
3646
|
+
var ToastClose = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3647
|
+
ToastPrimitives__namespace.Close,
|
|
3648
|
+
{
|
|
3649
|
+
ref,
|
|
3650
|
+
className: cn(
|
|
3651
|
+
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
3652
|
+
className
|
|
3653
|
+
),
|
|
3654
|
+
"toast-close": "",
|
|
3655
|
+
...props,
|
|
3656
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
|
|
3657
|
+
}
|
|
3658
|
+
));
|
|
3659
|
+
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
3660
|
+
var ToastTitle = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3661
|
+
ToastPrimitives__namespace.Title,
|
|
3662
|
+
{
|
|
3663
|
+
ref,
|
|
3664
|
+
className: cn("text-base font-semibold", className),
|
|
3665
|
+
...props
|
|
3666
|
+
}
|
|
3667
|
+
));
|
|
3668
|
+
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
3669
|
+
var ToastDescription = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3670
|
+
ToastPrimitives__namespace.Description,
|
|
3671
|
+
{
|
|
3672
|
+
ref,
|
|
3673
|
+
className: cn("text-base opacity-90", className),
|
|
3674
|
+
...props
|
|
3675
|
+
}
|
|
3676
|
+
));
|
|
3677
|
+
ToastDescription.displayName = ToastPrimitives__namespace.Description.displayName;
|
|
3678
|
+
function Toaster() {
|
|
3679
|
+
const { toasts } = useToast();
|
|
3680
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ToastProvider, { children: [
|
|
3681
|
+
toasts.map(function({ id, title, description, action, ...props }) {
|
|
3682
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Toast, { ...props, children: [
|
|
3683
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-1", children: [
|
|
3684
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title }),
|
|
3685
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
3686
|
+
] }),
|
|
3687
|
+
action,
|
|
3688
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
3689
|
+
] }, id);
|
|
3690
|
+
}),
|
|
3691
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
3692
|
+
] });
|
|
3693
|
+
}
|
|
3694
|
+
var toggleVariants = classVarianceAuthority.cva(
|
|
3695
|
+
"inline-flex items-center justify-center rounded-md text-base font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
3696
|
+
{
|
|
3697
|
+
variants: {
|
|
3698
|
+
variant: {
|
|
3699
|
+
default: "bg-transparent",
|
|
3700
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
3701
|
+
},
|
|
3702
|
+
size: {
|
|
3703
|
+
default: "h-10 px-3",
|
|
3704
|
+
sm: "h-9 px-2.5",
|
|
3705
|
+
lg: "h-11 px-5"
|
|
3706
|
+
}
|
|
3707
|
+
},
|
|
3708
|
+
defaultVariants: {
|
|
3709
|
+
variant: "default",
|
|
3710
|
+
size: "default"
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
);
|
|
3714
|
+
var Toggle = React36__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3715
|
+
TogglePrimitive__namespace.Root,
|
|
3716
|
+
{
|
|
3717
|
+
ref,
|
|
3718
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
3719
|
+
...props
|
|
3720
|
+
}
|
|
3721
|
+
));
|
|
3722
|
+
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
3723
|
+
var ToggleGroupContext = React36__namespace.createContext({
|
|
3724
|
+
size: "default",
|
|
3725
|
+
variant: "default"
|
|
3726
|
+
});
|
|
3727
|
+
var ToggleGroup = React36__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3728
|
+
ToggleGroupPrimitive__namespace.Root,
|
|
3729
|
+
{
|
|
3730
|
+
ref,
|
|
3731
|
+
className: cn("flex items-center justify-center gap-1", className),
|
|
3732
|
+
...props,
|
|
3733
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
3734
|
+
}
|
|
3735
|
+
));
|
|
3736
|
+
ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
|
|
3737
|
+
var ToggleGroupItem = React36__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3738
|
+
const context = React36__namespace.useContext(ToggleGroupContext);
|
|
3739
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3740
|
+
ToggleGroupPrimitive__namespace.Item,
|
|
3741
|
+
{
|
|
3742
|
+
ref,
|
|
3743
|
+
className: cn(
|
|
3744
|
+
toggleVariants({
|
|
3745
|
+
variant: context.variant || variant,
|
|
3746
|
+
size: context.size || size
|
|
3747
|
+
}),
|
|
3748
|
+
className
|
|
3749
|
+
),
|
|
3750
|
+
...props,
|
|
3751
|
+
children
|
|
3752
|
+
}
|
|
3753
|
+
);
|
|
3754
|
+
});
|
|
3755
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
|
|
3756
|
+
|
|
3757
|
+
exports.Accordion = Accordion;
|
|
3758
|
+
exports.AccordionContent = AccordionContent;
|
|
3759
|
+
exports.AccordionItem = AccordionItem;
|
|
3760
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
3761
|
+
exports.Alert = Alert;
|
|
3762
|
+
exports.AlertDescription = AlertDescription;
|
|
3763
|
+
exports.AlertDialog = AlertDialog;
|
|
3764
|
+
exports.AlertDialogAction = AlertDialogAction;
|
|
3765
|
+
exports.AlertDialogCancel = AlertDialogCancel;
|
|
3766
|
+
exports.AlertDialogContent = AlertDialogContent;
|
|
3767
|
+
exports.AlertDialogDescription = AlertDialogDescription;
|
|
3768
|
+
exports.AlertDialogFooter = AlertDialogFooter;
|
|
3769
|
+
exports.AlertDialogHeader = AlertDialogHeader;
|
|
3770
|
+
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
3771
|
+
exports.AlertDialogPortal = AlertDialogPortal;
|
|
3772
|
+
exports.AlertDialogTitle = AlertDialogTitle;
|
|
3773
|
+
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
3774
|
+
exports.AlertTitle = AlertTitle;
|
|
3775
|
+
exports.AnimatedBackground = AnimatedBackground;
|
|
3776
|
+
exports.AspectRatio = AspectRatio;
|
|
3777
|
+
exports.Avatar = Avatar;
|
|
3778
|
+
exports.AvatarFallback = AvatarFallback;
|
|
3779
|
+
exports.AvatarImage = AvatarImage;
|
|
3780
|
+
exports.Badge = Badge;
|
|
3781
|
+
exports.Breadcrumb = Breadcrumb;
|
|
3782
|
+
exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
|
|
3783
|
+
exports.BreadcrumbItem = BreadcrumbItem;
|
|
3784
|
+
exports.BreadcrumbLink = BreadcrumbLink;
|
|
3785
|
+
exports.BreadcrumbList = BreadcrumbList;
|
|
3786
|
+
exports.BreadcrumbPage = BreadcrumbPage;
|
|
3787
|
+
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
|
3788
|
+
exports.Button = Button;
|
|
3789
|
+
exports.Calendar = Calendar;
|
|
3790
|
+
exports.Card = Card;
|
|
3791
|
+
exports.CardContent = CardContent;
|
|
3792
|
+
exports.CardDescription = CardDescription;
|
|
3793
|
+
exports.CardFooter = CardFooter;
|
|
3794
|
+
exports.CardHeader = CardHeader;
|
|
3795
|
+
exports.CardTitle = CardTitle;
|
|
3796
|
+
exports.Carousel = Carousel;
|
|
3797
|
+
exports.CarouselContent = CarouselContent;
|
|
3798
|
+
exports.CarouselItem = CarouselItem;
|
|
3799
|
+
exports.CarouselNext = CarouselNext;
|
|
3800
|
+
exports.CarouselPrevious = CarouselPrevious;
|
|
3801
|
+
exports.ChartContainer = ChartContainer;
|
|
3802
|
+
exports.ChartLegend = ChartLegend;
|
|
3803
|
+
exports.ChartLegendContent = ChartLegendContent;
|
|
3804
|
+
exports.ChartStyle = ChartStyle;
|
|
3805
|
+
exports.ChartTooltip = ChartTooltip;
|
|
3806
|
+
exports.ChartTooltipContent = ChartTooltipContent;
|
|
3807
|
+
exports.Checkbox = Checkbox;
|
|
3808
|
+
exports.Collapsible = Collapsible;
|
|
3809
|
+
exports.CollapsibleContent = CollapsibleContent2;
|
|
3810
|
+
exports.CollapsibleTrigger = CollapsibleTrigger2;
|
|
3811
|
+
exports.Command = Command;
|
|
3812
|
+
exports.CommandDialog = CommandDialog;
|
|
3813
|
+
exports.CommandEmpty = CommandEmpty;
|
|
3814
|
+
exports.CommandGroup = CommandGroup;
|
|
3815
|
+
exports.CommandInput = CommandInput;
|
|
3816
|
+
exports.CommandItem = CommandItem;
|
|
3817
|
+
exports.CommandList = CommandList;
|
|
3818
|
+
exports.CommandSeparator = CommandSeparator;
|
|
3819
|
+
exports.CommandShortcut = CommandShortcut;
|
|
3820
|
+
exports.ContextMenu = ContextMenu;
|
|
3821
|
+
exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
|
|
3822
|
+
exports.ContextMenuContent = ContextMenuContent;
|
|
3823
|
+
exports.ContextMenuGroup = ContextMenuGroup;
|
|
3824
|
+
exports.ContextMenuItem = ContextMenuItem;
|
|
3825
|
+
exports.ContextMenuLabel = ContextMenuLabel;
|
|
3826
|
+
exports.ContextMenuPortal = ContextMenuPortal;
|
|
3827
|
+
exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
|
|
3828
|
+
exports.ContextMenuRadioItem = ContextMenuRadioItem;
|
|
3829
|
+
exports.ContextMenuSeparator = ContextMenuSeparator;
|
|
3830
|
+
exports.ContextMenuShortcut = ContextMenuShortcut;
|
|
3831
|
+
exports.ContextMenuSub = ContextMenuSub;
|
|
3832
|
+
exports.ContextMenuSubContent = ContextMenuSubContent;
|
|
3833
|
+
exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
|
|
3834
|
+
exports.ContextMenuTrigger = ContextMenuTrigger;
|
|
3835
|
+
exports.Dialog = Dialog;
|
|
3836
|
+
exports.DialogClose = DialogClose;
|
|
3837
|
+
exports.DialogContent = DialogContent;
|
|
3838
|
+
exports.DialogDescription = DialogDescription;
|
|
3839
|
+
exports.DialogFooter = DialogFooter;
|
|
3840
|
+
exports.DialogHeader = DialogHeader;
|
|
3841
|
+
exports.DialogOverlay = DialogOverlay;
|
|
3842
|
+
exports.DialogPortal = DialogPortal;
|
|
3843
|
+
exports.DialogTitle = DialogTitle;
|
|
3844
|
+
exports.DialogTrigger = DialogTrigger;
|
|
3845
|
+
exports.Drawer = Drawer;
|
|
3846
|
+
exports.DrawerClose = DrawerClose;
|
|
3847
|
+
exports.DrawerContent = DrawerContent;
|
|
3848
|
+
exports.DrawerDescription = DrawerDescription;
|
|
3849
|
+
exports.DrawerFooter = DrawerFooter;
|
|
3850
|
+
exports.DrawerHeader = DrawerHeader;
|
|
3851
|
+
exports.DrawerOverlay = DrawerOverlay;
|
|
3852
|
+
exports.DrawerPortal = DrawerPortal;
|
|
3853
|
+
exports.DrawerTitle = DrawerTitle;
|
|
3854
|
+
exports.DrawerTrigger = DrawerTrigger;
|
|
3855
|
+
exports.DropdownMenu = DropdownMenu;
|
|
3856
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
3857
|
+
exports.DropdownMenuContent = DropdownMenuContent;
|
|
3858
|
+
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
3859
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
|
3860
|
+
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
3861
|
+
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
3862
|
+
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
3863
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
3864
|
+
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
3865
|
+
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
3866
|
+
exports.DropdownMenuSub = DropdownMenuSub;
|
|
3867
|
+
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
3868
|
+
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
3869
|
+
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
3870
|
+
exports.Form = Form;
|
|
3871
|
+
exports.FormControl = FormControl;
|
|
3872
|
+
exports.FormDescription = FormDescription;
|
|
3873
|
+
exports.FormField = FormField;
|
|
3874
|
+
exports.FormItem = FormItem;
|
|
3875
|
+
exports.FormLabel = FormLabel;
|
|
3876
|
+
exports.FormMessage = FormMessage;
|
|
3877
|
+
exports.GlassCard = GlassCard;
|
|
3878
|
+
exports.GlassCardContent = GlassCardContent;
|
|
3879
|
+
exports.GlassCardDescription = GlassCardDescription;
|
|
3880
|
+
exports.GlassCardFooter = GlassCardFooter;
|
|
3881
|
+
exports.GlassCardHeader = GlassCardHeader;
|
|
3882
|
+
exports.GlassCardTitle = GlassCardTitle;
|
|
3883
|
+
exports.GradientOrb = GradientOrb;
|
|
3884
|
+
exports.HoverCard = HoverCard;
|
|
3885
|
+
exports.HoverCardContent = HoverCardContent;
|
|
3886
|
+
exports.HoverCardTrigger = HoverCardTrigger;
|
|
3887
|
+
exports.Input = Input;
|
|
3888
|
+
exports.InputOTP = InputOTP;
|
|
3889
|
+
exports.InputOTPGroup = InputOTPGroup;
|
|
3890
|
+
exports.InputOTPSeparator = InputOTPSeparator;
|
|
3891
|
+
exports.InputOTPSlot = InputOTPSlot;
|
|
3892
|
+
exports.Label = Label3;
|
|
3893
|
+
exports.Logo = Logo;
|
|
3894
|
+
exports.Menubar = Menubar;
|
|
3895
|
+
exports.MenubarCheckboxItem = MenubarCheckboxItem;
|
|
3896
|
+
exports.MenubarContent = MenubarContent;
|
|
3897
|
+
exports.MenubarGroup = MenubarGroup;
|
|
3898
|
+
exports.MenubarItem = MenubarItem;
|
|
3899
|
+
exports.MenubarLabel = MenubarLabel;
|
|
3900
|
+
exports.MenubarMenu = MenubarMenu;
|
|
3901
|
+
exports.MenubarPortal = MenubarPortal;
|
|
3902
|
+
exports.MenubarRadioGroup = MenubarRadioGroup;
|
|
3903
|
+
exports.MenubarRadioItem = MenubarRadioItem;
|
|
3904
|
+
exports.MenubarSeparator = MenubarSeparator;
|
|
3905
|
+
exports.MenubarShortcut = MenubarShortcut;
|
|
3906
|
+
exports.MenubarSub = MenubarSub;
|
|
3907
|
+
exports.MenubarSubContent = MenubarSubContent;
|
|
3908
|
+
exports.MenubarSubTrigger = MenubarSubTrigger;
|
|
3909
|
+
exports.MenubarTrigger = MenubarTrigger;
|
|
3910
|
+
exports.NavigationMenu = NavigationMenu;
|
|
3911
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
3912
|
+
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
3913
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
3914
|
+
exports.NavigationMenuLink = NavigationMenuLink;
|
|
3915
|
+
exports.NavigationMenuList = NavigationMenuList;
|
|
3916
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
3917
|
+
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
3918
|
+
exports.Pagination = Pagination;
|
|
3919
|
+
exports.Popover = Popover;
|
|
3920
|
+
exports.PopoverContent = PopoverContent;
|
|
3921
|
+
exports.PopoverTrigger = PopoverTrigger;
|
|
3922
|
+
exports.Progress = Progress;
|
|
3923
|
+
exports.RadioGroup = RadioGroup4;
|
|
3924
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
3925
|
+
exports.ResizableHandle = ResizableHandle;
|
|
3926
|
+
exports.ResizablePanel = ResizablePanel;
|
|
3927
|
+
exports.ResizablePanelGroup = ResizablePanelGroup;
|
|
3928
|
+
exports.ScrollArea = ScrollArea;
|
|
3929
|
+
exports.ScrollBar = ScrollBar;
|
|
3930
|
+
exports.Select = Select;
|
|
3931
|
+
exports.SelectContent = SelectContent;
|
|
3932
|
+
exports.SelectGroup = SelectGroup;
|
|
3933
|
+
exports.SelectItem = SelectItem;
|
|
3934
|
+
exports.SelectLabel = SelectLabel;
|
|
3935
|
+
exports.SelectScrollDownButton = SelectScrollDownButton;
|
|
3936
|
+
exports.SelectScrollUpButton = SelectScrollUpButton;
|
|
3937
|
+
exports.SelectSeparator = SelectSeparator;
|
|
3938
|
+
exports.SelectTrigger = SelectTrigger;
|
|
3939
|
+
exports.SelectValue = SelectValue;
|
|
3940
|
+
exports.Separator = Separator5;
|
|
3941
|
+
exports.Sheet = Sheet;
|
|
3942
|
+
exports.SheetClose = SheetClose;
|
|
3943
|
+
exports.SheetContent = SheetContent;
|
|
3944
|
+
exports.SheetDescription = SheetDescription;
|
|
3945
|
+
exports.SheetFooter = SheetFooter;
|
|
3946
|
+
exports.SheetHeader = SheetHeader;
|
|
3947
|
+
exports.SheetOverlay = SheetOverlay;
|
|
3948
|
+
exports.SheetPortal = SheetPortal;
|
|
3949
|
+
exports.SheetTitle = SheetTitle;
|
|
3950
|
+
exports.SheetTrigger = SheetTrigger;
|
|
3951
|
+
exports.Sidebar = Sidebar;
|
|
3952
|
+
exports.SidebarContent = SidebarContent;
|
|
3953
|
+
exports.SidebarFooter = SidebarFooter;
|
|
3954
|
+
exports.SidebarGroup = SidebarGroup;
|
|
3955
|
+
exports.SidebarGroupAction = SidebarGroupAction;
|
|
3956
|
+
exports.SidebarGroupContent = SidebarGroupContent;
|
|
3957
|
+
exports.SidebarGroupLabel = SidebarGroupLabel;
|
|
3958
|
+
exports.SidebarHeader = SidebarHeader;
|
|
3959
|
+
exports.SidebarInput = SidebarInput;
|
|
3960
|
+
exports.SidebarInset = SidebarInset;
|
|
3961
|
+
exports.SidebarMenu = SidebarMenu;
|
|
3962
|
+
exports.SidebarMenuAction = SidebarMenuAction;
|
|
3963
|
+
exports.SidebarMenuBadge = SidebarMenuBadge;
|
|
3964
|
+
exports.SidebarMenuButton = SidebarMenuButton;
|
|
3965
|
+
exports.SidebarMenuItem = SidebarMenuItem;
|
|
3966
|
+
exports.SidebarMenuSkeleton = SidebarMenuSkeleton;
|
|
3967
|
+
exports.SidebarMenuSub = SidebarMenuSub;
|
|
3968
|
+
exports.SidebarMenuSubButton = SidebarMenuSubButton;
|
|
3969
|
+
exports.SidebarMenuSubItem = SidebarMenuSubItem;
|
|
3970
|
+
exports.SidebarProvider = SidebarProvider;
|
|
3971
|
+
exports.SidebarRail = SidebarRail;
|
|
3972
|
+
exports.SidebarSeparator = SidebarSeparator;
|
|
3973
|
+
exports.SidebarTrigger = SidebarTrigger;
|
|
3974
|
+
exports.SimpleTabs = SimpleTabs;
|
|
3975
|
+
exports.Skeleton = Skeleton;
|
|
3976
|
+
exports.Slider = Slider;
|
|
3977
|
+
exports.StatusBadge = StatusBadge;
|
|
3978
|
+
exports.Switch = Switch;
|
|
3979
|
+
exports.Table = Table;
|
|
3980
|
+
exports.TableBody = TableBody;
|
|
3981
|
+
exports.TableCaption = TableCaption;
|
|
3982
|
+
exports.TableCell = TableCell;
|
|
3983
|
+
exports.TableFooter = TableFooter;
|
|
3984
|
+
exports.TableHead = TableHead;
|
|
3985
|
+
exports.TableHeader = TableHeader;
|
|
3986
|
+
exports.TableRow = TableRow;
|
|
3987
|
+
exports.Tabs = Tabs;
|
|
3988
|
+
exports.TabsContent = TabsContent;
|
|
3989
|
+
exports.TabsList = TabsList;
|
|
3990
|
+
exports.TabsTrigger = TabsTrigger;
|
|
3991
|
+
exports.Textarea = Textarea;
|
|
3992
|
+
exports.Toast = Toast;
|
|
3993
|
+
exports.ToastAction = ToastAction;
|
|
3994
|
+
exports.ToastClose = ToastClose;
|
|
3995
|
+
exports.ToastDescription = ToastDescription;
|
|
3996
|
+
exports.ToastProvider = ToastProvider;
|
|
3997
|
+
exports.ToastTitle = ToastTitle;
|
|
3998
|
+
exports.ToastViewport = ToastViewport;
|
|
3999
|
+
exports.Toaster = Toaster;
|
|
4000
|
+
exports.Toggle = Toggle;
|
|
4001
|
+
exports.ToggleGroup = ToggleGroup;
|
|
4002
|
+
exports.ToggleGroupItem = ToggleGroupItem;
|
|
4003
|
+
exports.Tooltip = Tooltip2;
|
|
4004
|
+
exports.TooltipContent = TooltipContent;
|
|
4005
|
+
exports.TooltipProvider = TooltipProvider;
|
|
4006
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
4007
|
+
exports.badgeVariants = badgeVariants;
|
|
4008
|
+
exports.buttonVariants = buttonVariants;
|
|
4009
|
+
exports.cn = cn;
|
|
4010
|
+
exports.glassCardVariants = glassCardVariants;
|
|
4011
|
+
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
4012
|
+
exports.statusBadgeVariants = statusBadgeVariants;
|
|
4013
|
+
exports.statusLabels = statusLabels;
|
|
4014
|
+
exports.toast = toast;
|
|
4015
|
+
exports.toggleVariants = toggleVariants;
|
|
4016
|
+
exports.useFormField = useFormField;
|
|
4017
|
+
exports.useIsMobile = useIsMobile;
|
|
4018
|
+
exports.useSidebar = useSidebar;
|
|
4019
|
+
exports.useToast = useToast;
|
|
4020
|
+
//# sourceMappingURL=index.cjs.map
|
|
4021
|
+
//# sourceMappingURL=index.cjs.map
|