@webstacks/ui 0.3.1 → 0.4.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/README.md +68 -25
- package/dist/Saans Bold-K6RGQSTK.otf +0 -0
- package/dist/Saans Light-Q2IR6YE7.otf +0 -0
- package/dist/Saans Medium-X7H5MZYR.otf +0 -0
- package/dist/Saans Regular-HTDDQ26K.otf +0 -0
- package/dist/Saans SemiBold-5JKBJKUE.otf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Bold-NMOXJFO5.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Bold_Italic-PRYESDKD.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Italic-DBI3BSIS.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Regular-VPGO22AC.ttf +0 -0
- package/dist/index.cjs +531 -496
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3605 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +61 -34
- package/dist/index.d.ts +61 -34
- package/dist/index.js +505 -471
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
// src/components/base-styles.tsx
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function BaseStyles({ children, colorMode = "light" }) {
|
|
7
|
+
const [resolvedMode, setResolvedMode] = React.useState(
|
|
8
|
+
colorMode === "auto" ? "light" : colorMode
|
|
9
|
+
);
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
if (colorMode !== "auto") {
|
|
12
|
+
setResolvedMode(colorMode);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
16
|
+
setResolvedMode(mq.matches ? "dark" : "light");
|
|
17
|
+
const handler = (e) => {
|
|
18
|
+
setResolvedMode(e.matches ? "dark" : "light");
|
|
19
|
+
};
|
|
20
|
+
mq.addEventListener("change", handler);
|
|
21
|
+
return () => mq.removeEventListener("change", handler);
|
|
22
|
+
}, [colorMode]);
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: resolvedMode === "dark" ? "dark" : "",
|
|
27
|
+
"data-color-mode": colorMode,
|
|
28
|
+
"data-light-theme": "light",
|
|
29
|
+
"data-dark-theme": "dark",
|
|
30
|
+
style: { colorScheme: resolvedMode },
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
3
36
|
// src/lib/utils.ts
|
|
4
37
|
import { clsx } from "clsx";
|
|
5
38
|
import { twMerge } from "tailwind-merge";
|
|
@@ -8,11 +41,11 @@ function cn(...inputs) {
|
|
|
8
41
|
}
|
|
9
42
|
|
|
10
43
|
// src/hooks/use-mobile.tsx
|
|
11
|
-
import * as
|
|
44
|
+
import * as React2 from "react";
|
|
12
45
|
var MOBILE_BREAKPOINT = 768;
|
|
13
46
|
function useIsMobile() {
|
|
14
|
-
const [isMobile, setIsMobile] =
|
|
15
|
-
|
|
47
|
+
const [isMobile, setIsMobile] = React2.useState(void 0);
|
|
48
|
+
React2.useEffect(() => {
|
|
16
49
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
17
50
|
const onChange = () => {
|
|
18
51
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -25,7 +58,7 @@ function useIsMobile() {
|
|
|
25
58
|
}
|
|
26
59
|
|
|
27
60
|
// src/hooks/use-toast.ts
|
|
28
|
-
import * as
|
|
61
|
+
import * as React3 from "react";
|
|
29
62
|
var TOAST_LIMIT = 1;
|
|
30
63
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
31
64
|
var count = 0;
|
|
@@ -126,8 +159,8 @@ function toast({ ...props }) {
|
|
|
126
159
|
};
|
|
127
160
|
}
|
|
128
161
|
function useToast() {
|
|
129
|
-
const [state, setState] =
|
|
130
|
-
|
|
162
|
+
const [state, setState] = React3.useState(memoryState);
|
|
163
|
+
React3.useEffect(() => {
|
|
131
164
|
listeners.push(setState);
|
|
132
165
|
return () => {
|
|
133
166
|
const index = listeners.indexOf(setState);
|
|
@@ -144,12 +177,12 @@ function useToast() {
|
|
|
144
177
|
}
|
|
145
178
|
|
|
146
179
|
// src/components/ui/accordion.tsx
|
|
147
|
-
import * as
|
|
180
|
+
import * as React4 from "react";
|
|
148
181
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
149
182
|
import { ChevronDown } from "lucide-react";
|
|
150
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
183
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
151
184
|
var Accordion = AccordionPrimitive.Root;
|
|
152
|
-
var AccordionItem =
|
|
185
|
+
var AccordionItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
153
186
|
AccordionPrimitive.Item,
|
|
154
187
|
{
|
|
155
188
|
ref,
|
|
@@ -158,7 +191,7 @@ var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
158
191
|
}
|
|
159
192
|
));
|
|
160
193
|
AccordionItem.displayName = "AccordionItem";
|
|
161
|
-
var AccordionTrigger =
|
|
194
|
+
var AccordionTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx2(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
162
195
|
AccordionPrimitive.Trigger,
|
|
163
196
|
{
|
|
164
197
|
ref,
|
|
@@ -169,26 +202,26 @@ var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref
|
|
|
169
202
|
...props,
|
|
170
203
|
children: [
|
|
171
204
|
children,
|
|
172
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ jsx2(ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
173
206
|
]
|
|
174
207
|
}
|
|
175
208
|
) }));
|
|
176
209
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
177
|
-
var AccordionContent =
|
|
210
|
+
var AccordionContent = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
178
211
|
AccordionPrimitive.Content,
|
|
179
212
|
{
|
|
180
213
|
ref,
|
|
181
214
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
182
215
|
...props,
|
|
183
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ jsx2("div", { className: cn("pb-4 pt-0", className), children })
|
|
184
217
|
}
|
|
185
218
|
));
|
|
186
219
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
187
220
|
|
|
188
221
|
// src/components/ui/alert.tsx
|
|
189
|
-
import * as
|
|
222
|
+
import * as React5 from "react";
|
|
190
223
|
import { cva } from "class-variance-authority";
|
|
191
|
-
import { jsx as
|
|
224
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
192
225
|
var alertVariants = cva(
|
|
193
226
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
194
227
|
{
|
|
@@ -203,7 +236,7 @@ var alertVariants = cva(
|
|
|
203
236
|
}
|
|
204
237
|
}
|
|
205
238
|
);
|
|
206
|
-
var Alert =
|
|
239
|
+
var Alert = React5.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
207
240
|
"div",
|
|
208
241
|
{
|
|
209
242
|
ref,
|
|
@@ -213,7 +246,7 @@ var Alert = React4.forwardRef(({ className, variant, ...props }, ref) => /* @__P
|
|
|
213
246
|
}
|
|
214
247
|
));
|
|
215
248
|
Alert.displayName = "Alert";
|
|
216
|
-
var AlertTitle =
|
|
249
|
+
var AlertTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
217
250
|
"h5",
|
|
218
251
|
{
|
|
219
252
|
ref,
|
|
@@ -222,7 +255,7 @@ var AlertTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
222
255
|
}
|
|
223
256
|
));
|
|
224
257
|
AlertTitle.displayName = "AlertTitle";
|
|
225
|
-
var AlertDescription =
|
|
258
|
+
var AlertDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
226
259
|
"div",
|
|
227
260
|
{
|
|
228
261
|
ref,
|
|
@@ -233,14 +266,14 @@ var AlertDescription = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
233
266
|
AlertDescription.displayName = "AlertDescription";
|
|
234
267
|
|
|
235
268
|
// src/components/ui/alert-dialog.tsx
|
|
236
|
-
import * as
|
|
269
|
+
import * as React7 from "react";
|
|
237
270
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
238
271
|
|
|
239
272
|
// src/components/ui/button.tsx
|
|
240
|
-
import * as
|
|
273
|
+
import * as React6 from "react";
|
|
241
274
|
import { Slot } from "@radix-ui/react-slot";
|
|
242
275
|
import { cva as cva2 } from "class-variance-authority";
|
|
243
|
-
import { jsx as
|
|
276
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
244
277
|
var buttonVariants = cva2(
|
|
245
278
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
246
279
|
{
|
|
@@ -266,10 +299,10 @@ var buttonVariants = cva2(
|
|
|
266
299
|
}
|
|
267
300
|
}
|
|
268
301
|
);
|
|
269
|
-
var Button =
|
|
302
|
+
var Button = React6.forwardRef(
|
|
270
303
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
271
304
|
const Comp = asChild ? Slot : "button";
|
|
272
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ jsx4(
|
|
273
306
|
Comp,
|
|
274
307
|
{
|
|
275
308
|
className: cn(buttonVariants({ variant, size, className })),
|
|
@@ -282,11 +315,11 @@ var Button = React5.forwardRef(
|
|
|
282
315
|
Button.displayName = "Button";
|
|
283
316
|
|
|
284
317
|
// src/components/ui/alert-dialog.tsx
|
|
285
|
-
import { jsx as
|
|
318
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
286
319
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
287
320
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
288
321
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
289
|
-
var AlertDialogOverlay =
|
|
322
|
+
var AlertDialogOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
290
323
|
AlertDialogPrimitive.Overlay,
|
|
291
324
|
{
|
|
292
325
|
className: cn(
|
|
@@ -298,9 +331,9 @@ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /*
|
|
|
298
331
|
}
|
|
299
332
|
));
|
|
300
333
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
301
|
-
var AlertDialogContent =
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
334
|
+
var AlertDialogContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
|
|
335
|
+
/* @__PURE__ */ jsx5(AlertDialogOverlay, {}),
|
|
336
|
+
/* @__PURE__ */ jsx5(
|
|
304
337
|
AlertDialogPrimitive.Content,
|
|
305
338
|
{
|
|
306
339
|
ref,
|
|
@@ -316,7 +349,7 @@ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
|
316
349
|
var AlertDialogHeader = ({
|
|
317
350
|
className,
|
|
318
351
|
...props
|
|
319
|
-
}) => /* @__PURE__ */
|
|
352
|
+
}) => /* @__PURE__ */ jsx5(
|
|
320
353
|
"div",
|
|
321
354
|
{
|
|
322
355
|
className: cn(
|
|
@@ -330,7 +363,7 @@ AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
|
330
363
|
var AlertDialogFooter = ({
|
|
331
364
|
className,
|
|
332
365
|
...props
|
|
333
|
-
}) => /* @__PURE__ */
|
|
366
|
+
}) => /* @__PURE__ */ jsx5(
|
|
334
367
|
"div",
|
|
335
368
|
{
|
|
336
369
|
className: cn(
|
|
@@ -341,7 +374,7 @@ var AlertDialogFooter = ({
|
|
|
341
374
|
}
|
|
342
375
|
);
|
|
343
376
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
344
|
-
var AlertDialogTitle =
|
|
377
|
+
var AlertDialogTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
345
378
|
AlertDialogPrimitive.Title,
|
|
346
379
|
{
|
|
347
380
|
ref,
|
|
@@ -350,7 +383,7 @@ var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
350
383
|
}
|
|
351
384
|
));
|
|
352
385
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
353
|
-
var AlertDialogDescription =
|
|
386
|
+
var AlertDialogDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
354
387
|
AlertDialogPrimitive.Description,
|
|
355
388
|
{
|
|
356
389
|
ref,
|
|
@@ -359,7 +392,7 @@ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) =>
|
|
|
359
392
|
}
|
|
360
393
|
));
|
|
361
394
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
362
|
-
var AlertDialogAction =
|
|
395
|
+
var AlertDialogAction = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
363
396
|
AlertDialogPrimitive.Action,
|
|
364
397
|
{
|
|
365
398
|
ref,
|
|
@@ -368,7 +401,7 @@ var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
368
401
|
}
|
|
369
402
|
));
|
|
370
403
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
371
|
-
var AlertDialogCancel =
|
|
404
|
+
var AlertDialogCancel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
372
405
|
AlertDialogPrimitive.Cancel,
|
|
373
406
|
{
|
|
374
407
|
ref,
|
|
@@ -387,10 +420,10 @@ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
|
387
420
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
388
421
|
|
|
389
422
|
// src/components/ui/avatar.tsx
|
|
390
|
-
import * as
|
|
423
|
+
import * as React8 from "react";
|
|
391
424
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
392
|
-
import { jsx as
|
|
393
|
-
var Avatar =
|
|
425
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
426
|
+
var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
394
427
|
AvatarPrimitive.Root,
|
|
395
428
|
{
|
|
396
429
|
ref,
|
|
@@ -402,7 +435,7 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
402
435
|
}
|
|
403
436
|
));
|
|
404
437
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
405
|
-
var AvatarImage =
|
|
438
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
406
439
|
AvatarPrimitive.Image,
|
|
407
440
|
{
|
|
408
441
|
ref,
|
|
@@ -411,7 +444,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
411
444
|
}
|
|
412
445
|
));
|
|
413
446
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
414
|
-
var AvatarFallback =
|
|
447
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
415
448
|
AvatarPrimitive.Fallback,
|
|
416
449
|
{
|
|
417
450
|
ref,
|
|
@@ -426,7 +459,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
426
459
|
|
|
427
460
|
// src/components/ui/badge.tsx
|
|
428
461
|
import { cva as cva3 } from "class-variance-authority";
|
|
429
|
-
import { jsx as
|
|
462
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
430
463
|
var badgeVariants = cva3(
|
|
431
464
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
432
465
|
{
|
|
@@ -444,17 +477,17 @@ var badgeVariants = cva3(
|
|
|
444
477
|
}
|
|
445
478
|
);
|
|
446
479
|
function Badge({ className, variant, ...props }) {
|
|
447
|
-
return /* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ jsx7("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
448
481
|
}
|
|
449
482
|
|
|
450
483
|
// src/components/ui/breadcrumb.tsx
|
|
451
|
-
import * as
|
|
484
|
+
import * as React9 from "react";
|
|
452
485
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
453
486
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
454
|
-
import { jsx as
|
|
455
|
-
var Breadcrumb =
|
|
487
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
488
|
+
var Breadcrumb = React9.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx8("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
456
489
|
Breadcrumb.displayName = "Breadcrumb";
|
|
457
|
-
var BreadcrumbList =
|
|
490
|
+
var BreadcrumbList = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
458
491
|
"ol",
|
|
459
492
|
{
|
|
460
493
|
ref,
|
|
@@ -466,7 +499,7 @@ var BreadcrumbList = React8.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
466
499
|
}
|
|
467
500
|
));
|
|
468
501
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
469
|
-
var BreadcrumbItem =
|
|
502
|
+
var BreadcrumbItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
470
503
|
"li",
|
|
471
504
|
{
|
|
472
505
|
ref,
|
|
@@ -475,9 +508,9 @@ var BreadcrumbItem = React8.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
475
508
|
}
|
|
476
509
|
));
|
|
477
510
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
478
|
-
var BreadcrumbLink =
|
|
511
|
+
var BreadcrumbLink = React9.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
479
512
|
const Comp = asChild ? Slot2 : "a";
|
|
480
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsx8(
|
|
481
514
|
Comp,
|
|
482
515
|
{
|
|
483
516
|
ref,
|
|
@@ -487,7 +520,7 @@ var BreadcrumbLink = React8.forwardRef(({ asChild, className, ...props }, ref) =
|
|
|
487
520
|
);
|
|
488
521
|
});
|
|
489
522
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
490
|
-
var BreadcrumbPage =
|
|
523
|
+
var BreadcrumbPage = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
491
524
|
"span",
|
|
492
525
|
{
|
|
493
526
|
ref,
|
|
@@ -503,14 +536,14 @@ var BreadcrumbSeparator = ({
|
|
|
503
536
|
children,
|
|
504
537
|
className,
|
|
505
538
|
...props
|
|
506
|
-
}) => /* @__PURE__ */
|
|
539
|
+
}) => /* @__PURE__ */ jsx8(
|
|
507
540
|
"li",
|
|
508
541
|
{
|
|
509
542
|
role: "presentation",
|
|
510
543
|
"aria-hidden": "true",
|
|
511
544
|
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
512
545
|
...props,
|
|
513
|
-
children: children ?? /* @__PURE__ */
|
|
546
|
+
children: children ?? /* @__PURE__ */ jsx8(ChevronRight, {})
|
|
514
547
|
}
|
|
515
548
|
);
|
|
516
549
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
@@ -525,17 +558,17 @@ var BreadcrumbEllipsis = ({
|
|
|
525
558
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
526
559
|
...props,
|
|
527
560
|
children: [
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ jsx8(MoreHorizontal, { className: "h-4 w-4" }),
|
|
562
|
+
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "More" })
|
|
530
563
|
]
|
|
531
564
|
}
|
|
532
565
|
);
|
|
533
566
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
534
567
|
|
|
535
568
|
// src/components/ui/box.tsx
|
|
536
|
-
import * as
|
|
569
|
+
import * as React10 from "react";
|
|
537
570
|
import { cva as cva4 } from "class-variance-authority";
|
|
538
|
-
import { jsx as
|
|
571
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
539
572
|
var boxVariants = cva4("", {
|
|
540
573
|
variants: {
|
|
541
574
|
padding: {
|
|
@@ -705,7 +738,7 @@ function resolveResponsiveClasses(prop, value) {
|
|
|
705
738
|
}
|
|
706
739
|
return classes;
|
|
707
740
|
}
|
|
708
|
-
var Box =
|
|
741
|
+
var Box = React10.forwardRef(
|
|
709
742
|
({
|
|
710
743
|
as: Comp = "div",
|
|
711
744
|
className,
|
|
@@ -745,7 +778,7 @@ var Box = React9.forwardRef(
|
|
|
745
778
|
...resolveResponsiveClasses("marginStart", marginStart),
|
|
746
779
|
...resolveResponsiveClasses("marginEnd", marginEnd)
|
|
747
780
|
];
|
|
748
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ jsx9(
|
|
749
782
|
Comp,
|
|
750
783
|
{
|
|
751
784
|
ref,
|
|
@@ -762,9 +795,9 @@ var Box = React9.forwardRef(
|
|
|
762
795
|
Box.displayName = "Box";
|
|
763
796
|
|
|
764
797
|
// src/components/ui/grid.tsx
|
|
765
|
-
import * as
|
|
798
|
+
import * as React11 from "react";
|
|
766
799
|
import { cva as cva5 } from "class-variance-authority";
|
|
767
|
-
import { jsx as
|
|
800
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
768
801
|
var gridVariants = cva5("grid", {
|
|
769
802
|
variants: {
|
|
770
803
|
columns: {
|
|
@@ -835,7 +868,7 @@ var columnMap = {
|
|
|
835
868
|
11: "grid-cols-11",
|
|
836
869
|
12: "grid-cols-12"
|
|
837
870
|
};
|
|
838
|
-
var Grid =
|
|
871
|
+
var Grid = React11.forwardRef(
|
|
839
872
|
({ as: Comp = "div", className, columns = 12, gap, gapX, gapY, align, justify, ...props }, ref) => {
|
|
840
873
|
let columnClasses;
|
|
841
874
|
if (typeof columns === "number") {
|
|
@@ -847,7 +880,7 @@ var Grid = React10.forwardRef(
|
|
|
847
880
|
if (columns.wide) classes.push(`lg:${columnMap[columns.wide]}`);
|
|
848
881
|
columnClasses = classes.join(" ");
|
|
849
882
|
}
|
|
850
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx10(
|
|
851
884
|
Comp,
|
|
852
885
|
{
|
|
853
886
|
ref,
|
|
@@ -909,7 +942,7 @@ var spanMap = {
|
|
|
909
942
|
11: "col-span-11",
|
|
910
943
|
12: "col-span-12"
|
|
911
944
|
};
|
|
912
|
-
var GridColumn =
|
|
945
|
+
var GridColumn = React11.forwardRef(
|
|
913
946
|
({ as: Comp = "div", className, span, start, ...props }, ref) => {
|
|
914
947
|
let spanClasses;
|
|
915
948
|
if (typeof span === "number") {
|
|
@@ -923,7 +956,7 @@ var GridColumn = React10.forwardRef(
|
|
|
923
956
|
} else {
|
|
924
957
|
spanClasses = "";
|
|
925
958
|
}
|
|
926
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ jsx10(
|
|
927
960
|
Comp,
|
|
928
961
|
{
|
|
929
962
|
ref,
|
|
@@ -940,9 +973,9 @@ var GridColumn = React10.forwardRef(
|
|
|
940
973
|
GridColumn.displayName = "GridColumn";
|
|
941
974
|
|
|
942
975
|
// src/components/ui/heading.tsx
|
|
943
|
-
import * as
|
|
976
|
+
import * as React12 from "react";
|
|
944
977
|
import { cva as cva6 } from "class-variance-authority";
|
|
945
|
-
import { jsx as
|
|
978
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
946
979
|
var headingVariants = cva6("font-heading scroll-m-24", {
|
|
947
980
|
variants: {
|
|
948
981
|
size: {
|
|
@@ -1027,7 +1060,7 @@ function resolveResponsive(value, map) {
|
|
|
1027
1060
|
}
|
|
1028
1061
|
return classes;
|
|
1029
1062
|
}
|
|
1030
|
-
var Heading =
|
|
1063
|
+
var Heading = React12.forwardRef(
|
|
1031
1064
|
({ as: Tag = "h2", className, size = 2, weight, stretch, letterSpacing, align, variant, ...props }, ref) => {
|
|
1032
1065
|
const isResponsiveSize = typeof size === "object";
|
|
1033
1066
|
const isResponsiveWeight = typeof weight === "object";
|
|
@@ -1035,7 +1068,7 @@ var Heading = React11.forwardRef(
|
|
|
1035
1068
|
...isResponsiveSize ? resolveResponsive(size, sizeMap) : [],
|
|
1036
1069
|
...isResponsiveWeight ? resolveResponsive(weight, weightMap) : []
|
|
1037
1070
|
];
|
|
1038
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ jsx11(
|
|
1039
1072
|
Tag,
|
|
1040
1073
|
{
|
|
1041
1074
|
ref,
|
|
@@ -1060,9 +1093,9 @@ var Heading = React11.forwardRef(
|
|
|
1060
1093
|
Heading.displayName = "Heading";
|
|
1061
1094
|
|
|
1062
1095
|
// src/components/ui/text.tsx
|
|
1063
|
-
import * as
|
|
1096
|
+
import * as React13 from "react";
|
|
1064
1097
|
import { cva as cva7 } from "class-variance-authority";
|
|
1065
|
-
import { jsx as
|
|
1098
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1066
1099
|
var textVariants = cva7("font-body", {
|
|
1067
1100
|
variants: {
|
|
1068
1101
|
size: {
|
|
@@ -1133,7 +1166,7 @@ function resolveResponsive2(value, map) {
|
|
|
1133
1166
|
}
|
|
1134
1167
|
return classes;
|
|
1135
1168
|
}
|
|
1136
|
-
var Text =
|
|
1169
|
+
var Text = React13.forwardRef(
|
|
1137
1170
|
({ as: Comp = "p", className, size = 400, weight, align, variant, ...props }, ref) => {
|
|
1138
1171
|
const isResponsiveSize = typeof size === "object";
|
|
1139
1172
|
const isResponsiveWeight = typeof weight === "object";
|
|
@@ -1141,7 +1174,7 @@ var Text = React12.forwardRef(
|
|
|
1141
1174
|
...isResponsiveSize ? resolveResponsive2(size, sizeMap2) : [],
|
|
1142
1175
|
...isResponsiveWeight ? resolveResponsive2(weight, weightMap2) : []
|
|
1143
1176
|
];
|
|
1144
|
-
return /* @__PURE__ */
|
|
1177
|
+
return /* @__PURE__ */ jsx12(
|
|
1145
1178
|
Comp,
|
|
1146
1179
|
{
|
|
1147
1180
|
ref,
|
|
@@ -1164,9 +1197,9 @@ var Text = React12.forwardRef(
|
|
|
1164
1197
|
Text.displayName = "Text";
|
|
1165
1198
|
|
|
1166
1199
|
// src/components/ui/stack.tsx
|
|
1167
|
-
import * as
|
|
1200
|
+
import * as React14 from "react";
|
|
1168
1201
|
import { cva as cva8 } from "class-variance-authority";
|
|
1169
|
-
import { jsx as
|
|
1202
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1170
1203
|
var stackVariants = cva8("flex", {
|
|
1171
1204
|
variants: {
|
|
1172
1205
|
direction: {
|
|
@@ -1253,7 +1286,7 @@ function resolveResponsive3(value, map) {
|
|
|
1253
1286
|
}
|
|
1254
1287
|
return classes;
|
|
1255
1288
|
}
|
|
1256
|
-
var Stack =
|
|
1289
|
+
var Stack = React14.forwardRef(
|
|
1257
1290
|
({
|
|
1258
1291
|
as: Comp = "div",
|
|
1259
1292
|
className,
|
|
@@ -1275,7 +1308,7 @@ var Stack = React13.forwardRef(
|
|
|
1275
1308
|
const isResponsiveGap = typeof gap === "object";
|
|
1276
1309
|
const isResponsiveAlign = typeof align === "object";
|
|
1277
1310
|
const isResponsiveJustify = typeof justify === "object";
|
|
1278
|
-
return /* @__PURE__ */
|
|
1311
|
+
return /* @__PURE__ */ jsx13(
|
|
1279
1312
|
Comp,
|
|
1280
1313
|
{
|
|
1281
1314
|
ref,
|
|
@@ -1302,14 +1335,14 @@ var Stack = React13.forwardRef(
|
|
|
1302
1335
|
Stack.displayName = "Stack";
|
|
1303
1336
|
|
|
1304
1337
|
// src/components/ui/calendar.tsx
|
|
1305
|
-
import * as
|
|
1338
|
+
import * as React15 from "react";
|
|
1306
1339
|
import {
|
|
1307
1340
|
ChevronDownIcon,
|
|
1308
1341
|
ChevronLeftIcon,
|
|
1309
1342
|
ChevronRightIcon
|
|
1310
1343
|
} from "lucide-react";
|
|
1311
1344
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
1312
|
-
import { jsx as
|
|
1345
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1313
1346
|
function Calendar({
|
|
1314
1347
|
className,
|
|
1315
1348
|
classNames,
|
|
@@ -1321,7 +1354,7 @@ function Calendar({
|
|
|
1321
1354
|
...props
|
|
1322
1355
|
}) {
|
|
1323
1356
|
const defaultClassNames = getDefaultClassNames();
|
|
1324
|
-
return /* @__PURE__ */
|
|
1357
|
+
return /* @__PURE__ */ jsx14(
|
|
1325
1358
|
DayPicker,
|
|
1326
1359
|
{
|
|
1327
1360
|
showOutsideDays,
|
|
@@ -1420,7 +1453,7 @@ function Calendar({
|
|
|
1420
1453
|
},
|
|
1421
1454
|
components: {
|
|
1422
1455
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
1423
|
-
return /* @__PURE__ */
|
|
1456
|
+
return /* @__PURE__ */ jsx14(
|
|
1424
1457
|
"div",
|
|
1425
1458
|
{
|
|
1426
1459
|
"data-slot": "calendar",
|
|
@@ -1432,10 +1465,10 @@ function Calendar({
|
|
|
1432
1465
|
},
|
|
1433
1466
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
1434
1467
|
if (orientation === "left") {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1468
|
+
return /* @__PURE__ */ jsx14(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
1436
1469
|
}
|
|
1437
1470
|
if (orientation === "right") {
|
|
1438
|
-
return /* @__PURE__ */
|
|
1471
|
+
return /* @__PURE__ */ jsx14(
|
|
1439
1472
|
ChevronRightIcon,
|
|
1440
1473
|
{
|
|
1441
1474
|
className: cn("size-4", className2),
|
|
@@ -1443,11 +1476,11 @@ function Calendar({
|
|
|
1443
1476
|
}
|
|
1444
1477
|
);
|
|
1445
1478
|
}
|
|
1446
|
-
return /* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ jsx14(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
1447
1480
|
},
|
|
1448
1481
|
DayButton: CalendarDayButton,
|
|
1449
1482
|
WeekNumber: ({ children, ...props2 }) => {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1483
|
+
return /* @__PURE__ */ jsx14("td", { ...props2, children: /* @__PURE__ */ jsx14("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
|
|
1451
1484
|
},
|
|
1452
1485
|
...components
|
|
1453
1486
|
},
|
|
@@ -1462,11 +1495,11 @@ function CalendarDayButton({
|
|
|
1462
1495
|
...props
|
|
1463
1496
|
}) {
|
|
1464
1497
|
const defaultClassNames = getDefaultClassNames();
|
|
1465
|
-
const ref =
|
|
1466
|
-
|
|
1498
|
+
const ref = React15.useRef(null);
|
|
1499
|
+
React15.useEffect(() => {
|
|
1467
1500
|
if (modifiers.focused) ref.current?.focus();
|
|
1468
1501
|
}, [modifiers.focused]);
|
|
1469
|
-
return /* @__PURE__ */
|
|
1502
|
+
return /* @__PURE__ */ jsx14(
|
|
1470
1503
|
Button,
|
|
1471
1504
|
{
|
|
1472
1505
|
ref,
|
|
@@ -1488,9 +1521,9 @@ function CalendarDayButton({
|
|
|
1488
1521
|
}
|
|
1489
1522
|
|
|
1490
1523
|
// src/components/ui/card.tsx
|
|
1491
|
-
import * as
|
|
1492
|
-
import { jsx as
|
|
1493
|
-
var Card =
|
|
1524
|
+
import * as React16 from "react";
|
|
1525
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1526
|
+
var Card = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1494
1527
|
"div",
|
|
1495
1528
|
{
|
|
1496
1529
|
ref,
|
|
@@ -1502,7 +1535,7 @@ var Card = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1502
1535
|
}
|
|
1503
1536
|
));
|
|
1504
1537
|
Card.displayName = "Card";
|
|
1505
|
-
var CardHeader =
|
|
1538
|
+
var CardHeader = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1506
1539
|
"div",
|
|
1507
1540
|
{
|
|
1508
1541
|
ref,
|
|
@@ -1511,7 +1544,7 @@ var CardHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1511
1544
|
}
|
|
1512
1545
|
));
|
|
1513
1546
|
CardHeader.displayName = "CardHeader";
|
|
1514
|
-
var CardTitle =
|
|
1547
|
+
var CardTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1515
1548
|
"div",
|
|
1516
1549
|
{
|
|
1517
1550
|
ref,
|
|
@@ -1520,7 +1553,7 @@ var CardTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1520
1553
|
}
|
|
1521
1554
|
));
|
|
1522
1555
|
CardTitle.displayName = "CardTitle";
|
|
1523
|
-
var CardDescription =
|
|
1556
|
+
var CardDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1524
1557
|
"div",
|
|
1525
1558
|
{
|
|
1526
1559
|
ref,
|
|
@@ -1529,9 +1562,9 @@ var CardDescription = React15.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1529
1562
|
}
|
|
1530
1563
|
));
|
|
1531
1564
|
CardDescription.displayName = "CardDescription";
|
|
1532
|
-
var CardContent =
|
|
1565
|
+
var CardContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1533
1566
|
CardContent.displayName = "CardContent";
|
|
1534
|
-
var CardFooter =
|
|
1567
|
+
var CardFooter = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1535
1568
|
"div",
|
|
1536
1569
|
{
|
|
1537
1570
|
ref,
|
|
@@ -1542,19 +1575,19 @@ var CardFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1542
1575
|
CardFooter.displayName = "CardFooter";
|
|
1543
1576
|
|
|
1544
1577
|
// src/components/ui/carousel.tsx
|
|
1545
|
-
import * as
|
|
1578
|
+
import * as React17 from "react";
|
|
1546
1579
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1547
1580
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1548
|
-
import { jsx as
|
|
1549
|
-
var CarouselContext =
|
|
1581
|
+
import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1582
|
+
var CarouselContext = React17.createContext(null);
|
|
1550
1583
|
function useCarousel() {
|
|
1551
|
-
const context =
|
|
1584
|
+
const context = React17.useContext(CarouselContext);
|
|
1552
1585
|
if (!context) {
|
|
1553
1586
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1554
1587
|
}
|
|
1555
1588
|
return context;
|
|
1556
1589
|
}
|
|
1557
|
-
var Carousel =
|
|
1590
|
+
var Carousel = React17.forwardRef(
|
|
1558
1591
|
({
|
|
1559
1592
|
orientation = "horizontal",
|
|
1560
1593
|
opts,
|
|
@@ -1571,22 +1604,22 @@ var Carousel = React16.forwardRef(
|
|
|
1571
1604
|
},
|
|
1572
1605
|
plugins
|
|
1573
1606
|
);
|
|
1574
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1575
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1576
|
-
const onSelect =
|
|
1607
|
+
const [canScrollPrev, setCanScrollPrev] = React17.useState(false);
|
|
1608
|
+
const [canScrollNext, setCanScrollNext] = React17.useState(false);
|
|
1609
|
+
const onSelect = React17.useCallback((api2) => {
|
|
1577
1610
|
if (!api2) {
|
|
1578
1611
|
return;
|
|
1579
1612
|
}
|
|
1580
1613
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1581
1614
|
setCanScrollNext(api2.canScrollNext());
|
|
1582
1615
|
}, []);
|
|
1583
|
-
const scrollPrev =
|
|
1616
|
+
const scrollPrev = React17.useCallback(() => {
|
|
1584
1617
|
api?.scrollPrev();
|
|
1585
1618
|
}, [api]);
|
|
1586
|
-
const scrollNext =
|
|
1619
|
+
const scrollNext = React17.useCallback(() => {
|
|
1587
1620
|
api?.scrollNext();
|
|
1588
1621
|
}, [api]);
|
|
1589
|
-
const handleKeyDown =
|
|
1622
|
+
const handleKeyDown = React17.useCallback(
|
|
1590
1623
|
(event) => {
|
|
1591
1624
|
if (event.key === "ArrowLeft") {
|
|
1592
1625
|
event.preventDefault();
|
|
@@ -1598,13 +1631,13 @@ var Carousel = React16.forwardRef(
|
|
|
1598
1631
|
},
|
|
1599
1632
|
[scrollPrev, scrollNext]
|
|
1600
1633
|
);
|
|
1601
|
-
|
|
1634
|
+
React17.useEffect(() => {
|
|
1602
1635
|
if (!api || !setApi) {
|
|
1603
1636
|
return;
|
|
1604
1637
|
}
|
|
1605
1638
|
setApi(api);
|
|
1606
1639
|
}, [api, setApi]);
|
|
1607
|
-
|
|
1640
|
+
React17.useEffect(() => {
|
|
1608
1641
|
if (!api) {
|
|
1609
1642
|
return;
|
|
1610
1643
|
}
|
|
@@ -1615,7 +1648,7 @@ var Carousel = React16.forwardRef(
|
|
|
1615
1648
|
api?.off("select", onSelect);
|
|
1616
1649
|
};
|
|
1617
1650
|
}, [api, onSelect]);
|
|
1618
|
-
return /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ jsx16(
|
|
1619
1652
|
CarouselContext.Provider,
|
|
1620
1653
|
{
|
|
1621
1654
|
value: {
|
|
@@ -1628,7 +1661,7 @@ var Carousel = React16.forwardRef(
|
|
|
1628
1661
|
canScrollPrev,
|
|
1629
1662
|
canScrollNext
|
|
1630
1663
|
},
|
|
1631
|
-
children: /* @__PURE__ */
|
|
1664
|
+
children: /* @__PURE__ */ jsx16(
|
|
1632
1665
|
"div",
|
|
1633
1666
|
{
|
|
1634
1667
|
ref,
|
|
@@ -1645,9 +1678,9 @@ var Carousel = React16.forwardRef(
|
|
|
1645
1678
|
}
|
|
1646
1679
|
);
|
|
1647
1680
|
Carousel.displayName = "Carousel";
|
|
1648
|
-
var CarouselContent =
|
|
1681
|
+
var CarouselContent = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1649
1682
|
const { carouselRef, orientation } = useCarousel();
|
|
1650
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ jsx16("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx16(
|
|
1651
1684
|
"div",
|
|
1652
1685
|
{
|
|
1653
1686
|
ref,
|
|
@@ -1661,9 +1694,9 @@ var CarouselContent = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1661
1694
|
) });
|
|
1662
1695
|
});
|
|
1663
1696
|
CarouselContent.displayName = "CarouselContent";
|
|
1664
|
-
var CarouselItem =
|
|
1697
|
+
var CarouselItem = React17.forwardRef(({ className, ...props }, ref) => {
|
|
1665
1698
|
const { orientation } = useCarousel();
|
|
1666
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsx16(
|
|
1667
1700
|
"div",
|
|
1668
1701
|
{
|
|
1669
1702
|
ref,
|
|
@@ -1679,7 +1712,7 @@ var CarouselItem = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1679
1712
|
);
|
|
1680
1713
|
});
|
|
1681
1714
|
CarouselItem.displayName = "CarouselItem";
|
|
1682
|
-
var CarouselPrevious =
|
|
1715
|
+
var CarouselPrevious = React17.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1683
1716
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1684
1717
|
return /* @__PURE__ */ jsxs4(
|
|
1685
1718
|
Button,
|
|
@@ -1696,14 +1729,14 @@ var CarouselPrevious = React16.forwardRef(({ className, variant = "outline", siz
|
|
|
1696
1729
|
onClick: scrollPrev,
|
|
1697
1730
|
...props,
|
|
1698
1731
|
children: [
|
|
1699
|
-
/* @__PURE__ */
|
|
1700
|
-
/* @__PURE__ */
|
|
1732
|
+
/* @__PURE__ */ jsx16(ArrowLeft, { className: "h-4 w-4" }),
|
|
1733
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Previous slide" })
|
|
1701
1734
|
]
|
|
1702
1735
|
}
|
|
1703
1736
|
);
|
|
1704
1737
|
});
|
|
1705
1738
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1706
|
-
var CarouselNext =
|
|
1739
|
+
var CarouselNext = React17.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1707
1740
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1708
1741
|
return /* @__PURE__ */ jsxs4(
|
|
1709
1742
|
Button,
|
|
@@ -1720,8 +1753,8 @@ var CarouselNext = React16.forwardRef(({ className, variant = "outline", size =
|
|
|
1720
1753
|
onClick: scrollNext,
|
|
1721
1754
|
...props,
|
|
1722
1755
|
children: [
|
|
1723
|
-
/* @__PURE__ */
|
|
1724
|
-
/* @__PURE__ */
|
|
1756
|
+
/* @__PURE__ */ jsx16(ArrowRight, { className: "h-4 w-4" }),
|
|
1757
|
+
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Next slide" })
|
|
1725
1758
|
]
|
|
1726
1759
|
}
|
|
1727
1760
|
);
|
|
@@ -1729,22 +1762,22 @@ var CarouselNext = React16.forwardRef(({ className, variant = "outline", size =
|
|
|
1729
1762
|
CarouselNext.displayName = "CarouselNext";
|
|
1730
1763
|
|
|
1731
1764
|
// src/components/ui/chart.tsx
|
|
1732
|
-
import * as
|
|
1765
|
+
import * as React18 from "react";
|
|
1733
1766
|
import * as RechartsPrimitive from "recharts";
|
|
1734
|
-
import { Fragment, jsx as
|
|
1767
|
+
import { Fragment, jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1735
1768
|
var THEMES = { light: "", dark: ".dark" };
|
|
1736
|
-
var ChartContext =
|
|
1769
|
+
var ChartContext = React18.createContext(null);
|
|
1737
1770
|
function useChart() {
|
|
1738
|
-
const context =
|
|
1771
|
+
const context = React18.useContext(ChartContext);
|
|
1739
1772
|
if (!context) {
|
|
1740
1773
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1741
1774
|
}
|
|
1742
1775
|
return context;
|
|
1743
1776
|
}
|
|
1744
|
-
var ChartContainer =
|
|
1745
|
-
const uniqueId =
|
|
1777
|
+
var ChartContainer = React18.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1778
|
+
const uniqueId = React18.useId();
|
|
1746
1779
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1747
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsx17(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
|
|
1748
1781
|
"div",
|
|
1749
1782
|
{
|
|
1750
1783
|
"data-chart": chartId,
|
|
@@ -1755,8 +1788,8 @@ var ChartContainer = React17.forwardRef(({ id, className, children, config, ...p
|
|
|
1755
1788
|
),
|
|
1756
1789
|
...props,
|
|
1757
1790
|
children: [
|
|
1758
|
-
/* @__PURE__ */
|
|
1759
|
-
/* @__PURE__ */
|
|
1791
|
+
/* @__PURE__ */ jsx17(ChartStyle, { id: chartId, config }),
|
|
1792
|
+
/* @__PURE__ */ jsx17(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1760
1793
|
]
|
|
1761
1794
|
}
|
|
1762
1795
|
) });
|
|
@@ -1769,7 +1802,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1769
1802
|
if (!colorConfig.length) {
|
|
1770
1803
|
return null;
|
|
1771
1804
|
}
|
|
1772
|
-
return /* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ jsx17(
|
|
1773
1806
|
"style",
|
|
1774
1807
|
{
|
|
1775
1808
|
dangerouslySetInnerHTML: {
|
|
@@ -1788,7 +1821,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1788
1821
|
);
|
|
1789
1822
|
};
|
|
1790
1823
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
1791
|
-
var ChartTooltipContent =
|
|
1824
|
+
var ChartTooltipContent = React18.forwardRef(
|
|
1792
1825
|
({
|
|
1793
1826
|
active,
|
|
1794
1827
|
payload,
|
|
@@ -1805,7 +1838,7 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1805
1838
|
labelKey
|
|
1806
1839
|
}, ref) => {
|
|
1807
1840
|
const { config } = useChart();
|
|
1808
|
-
const tooltipLabel =
|
|
1841
|
+
const tooltipLabel = React18.useMemo(() => {
|
|
1809
1842
|
if (hideLabel || !payload?.length) {
|
|
1810
1843
|
return null;
|
|
1811
1844
|
}
|
|
@@ -1814,12 +1847,12 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1814
1847
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1815
1848
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1816
1849
|
if (labelFormatter) {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1850
|
+
return /* @__PURE__ */ jsx17("div", { className: cn(labelClassName), children: labelFormatter(value, payload) });
|
|
1818
1851
|
}
|
|
1819
1852
|
if (!value) {
|
|
1820
1853
|
return null;
|
|
1821
1854
|
}
|
|
1822
|
-
return /* @__PURE__ */
|
|
1855
|
+
return /* @__PURE__ */ jsx17("div", { className: cn(labelClassName), children: value });
|
|
1823
1856
|
}, [
|
|
1824
1857
|
label,
|
|
1825
1858
|
labelFormatter,
|
|
@@ -1843,11 +1876,11 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1843
1876
|
),
|
|
1844
1877
|
children: [
|
|
1845
1878
|
!nestLabel ? tooltipLabel : null,
|
|
1846
|
-
/* @__PURE__ */
|
|
1879
|
+
/* @__PURE__ */ jsx17("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1847
1880
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1848
1881
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1849
1882
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1850
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsx17(
|
|
1851
1884
|
"div",
|
|
1852
1885
|
{
|
|
1853
1886
|
className: cn(
|
|
@@ -1855,7 +1888,7 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1855
1888
|
indicator === "dot" && "items-center"
|
|
1856
1889
|
),
|
|
1857
1890
|
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
1858
|
-
itemConfig?.icon ? /* @__PURE__ */
|
|
1891
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx17(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx17(
|
|
1859
1892
|
"div",
|
|
1860
1893
|
{
|
|
1861
1894
|
className: cn(
|
|
@@ -1883,9 +1916,9 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1883
1916
|
children: [
|
|
1884
1917
|
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1.5", children: [
|
|
1885
1918
|
nestLabel ? tooltipLabel : null,
|
|
1886
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ jsx17("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
1887
1920
|
] }),
|
|
1888
|
-
item.value && /* @__PURE__ */
|
|
1921
|
+
item.value && /* @__PURE__ */ jsx17("span", { className: "font-mono tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
1889
1922
|
]
|
|
1890
1923
|
}
|
|
1891
1924
|
)
|
|
@@ -1901,13 +1934,13 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1901
1934
|
);
|
|
1902
1935
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1903
1936
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1904
|
-
var ChartLegendContent =
|
|
1937
|
+
var ChartLegendContent = React18.forwardRef(
|
|
1905
1938
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1906
1939
|
const { config } = useChart();
|
|
1907
1940
|
if (!payload?.length) {
|
|
1908
1941
|
return null;
|
|
1909
1942
|
}
|
|
1910
|
-
return /* @__PURE__ */
|
|
1943
|
+
return /* @__PURE__ */ jsx17(
|
|
1911
1944
|
"div",
|
|
1912
1945
|
{
|
|
1913
1946
|
ref,
|
|
@@ -1926,7 +1959,7 @@ var ChartLegendContent = React17.forwardRef(
|
|
|
1926
1959
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
1927
1960
|
),
|
|
1928
1961
|
children: [
|
|
1929
|
-
itemConfig?.icon && !hideIcon ? /* @__PURE__ */
|
|
1962
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx17(itemConfig.icon, {}) : /* @__PURE__ */ jsx17(
|
|
1930
1963
|
"div",
|
|
1931
1964
|
{
|
|
1932
1965
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1961,11 +1994,11 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1961
1994
|
}
|
|
1962
1995
|
|
|
1963
1996
|
// src/components/ui/checkbox.tsx
|
|
1964
|
-
import * as
|
|
1997
|
+
import * as React19 from "react";
|
|
1965
1998
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1966
1999
|
import { Check } from "lucide-react";
|
|
1967
|
-
import { jsx as
|
|
1968
|
-
var Checkbox =
|
|
2000
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2001
|
+
var Checkbox = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
1969
2002
|
CheckboxPrimitive.Root,
|
|
1970
2003
|
{
|
|
1971
2004
|
ref,
|
|
@@ -1974,11 +2007,11 @@ var Checkbox = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1974
2007
|
className
|
|
1975
2008
|
),
|
|
1976
2009
|
...props,
|
|
1977
|
-
children: /* @__PURE__ */
|
|
2010
|
+
children: /* @__PURE__ */ jsx18(
|
|
1978
2011
|
CheckboxPrimitive.Indicator,
|
|
1979
2012
|
{
|
|
1980
2013
|
className: cn("grid place-content-center text-current"),
|
|
1981
|
-
children: /* @__PURE__ */
|
|
2014
|
+
children: /* @__PURE__ */ jsx18(Check, { className: "h-4 w-4" })
|
|
1982
2015
|
}
|
|
1983
2016
|
)
|
|
1984
2017
|
}
|
|
@@ -1992,20 +2025,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
1992
2025
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
1993
2026
|
|
|
1994
2027
|
// src/components/ui/command.tsx
|
|
1995
|
-
import * as
|
|
2028
|
+
import * as React21 from "react";
|
|
1996
2029
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1997
2030
|
import { Search } from "lucide-react";
|
|
1998
2031
|
|
|
1999
2032
|
// src/components/ui/dialog.tsx
|
|
2000
|
-
import * as
|
|
2033
|
+
import * as React20 from "react";
|
|
2001
2034
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2002
2035
|
import { X } from "lucide-react";
|
|
2003
|
-
import { jsx as
|
|
2036
|
+
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2004
2037
|
var Dialog = DialogPrimitive.Root;
|
|
2005
2038
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2006
2039
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2007
2040
|
var DialogClose = DialogPrimitive.Close;
|
|
2008
|
-
var DialogOverlay =
|
|
2041
|
+
var DialogOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2009
2042
|
DialogPrimitive.Overlay,
|
|
2010
2043
|
{
|
|
2011
2044
|
ref,
|
|
@@ -2017,8 +2050,8 @@ var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2017
2050
|
}
|
|
2018
2051
|
));
|
|
2019
2052
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2020
|
-
var DialogContent =
|
|
2021
|
-
/* @__PURE__ */
|
|
2053
|
+
var DialogContent = React20.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
|
|
2054
|
+
/* @__PURE__ */ jsx19(DialogOverlay, {}),
|
|
2022
2055
|
/* @__PURE__ */ jsxs6(
|
|
2023
2056
|
DialogPrimitive.Content,
|
|
2024
2057
|
{
|
|
@@ -2031,8 +2064,8 @@ var DialogContent = React19.forwardRef(({ className, children, ...props }, ref)
|
|
|
2031
2064
|
children: [
|
|
2032
2065
|
children,
|
|
2033
2066
|
/* @__PURE__ */ jsxs6(DialogPrimitive.Close, { 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", children: [
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx19(X, { className: "h-4 w-4" }),
|
|
2068
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
2036
2069
|
] })
|
|
2037
2070
|
]
|
|
2038
2071
|
}
|
|
@@ -2042,7 +2075,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
2042
2075
|
var DialogHeader = ({
|
|
2043
2076
|
className,
|
|
2044
2077
|
...props
|
|
2045
|
-
}) => /* @__PURE__ */
|
|
2078
|
+
}) => /* @__PURE__ */ jsx19(
|
|
2046
2079
|
"div",
|
|
2047
2080
|
{
|
|
2048
2081
|
className: cn(
|
|
@@ -2056,7 +2089,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
2056
2089
|
var DialogFooter = ({
|
|
2057
2090
|
className,
|
|
2058
2091
|
...props
|
|
2059
|
-
}) => /* @__PURE__ */
|
|
2092
|
+
}) => /* @__PURE__ */ jsx19(
|
|
2060
2093
|
"div",
|
|
2061
2094
|
{
|
|
2062
2095
|
className: cn(
|
|
@@ -2067,7 +2100,7 @@ var DialogFooter = ({
|
|
|
2067
2100
|
}
|
|
2068
2101
|
);
|
|
2069
2102
|
DialogFooter.displayName = "DialogFooter";
|
|
2070
|
-
var DialogTitle =
|
|
2103
|
+
var DialogTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2071
2104
|
DialogPrimitive.Title,
|
|
2072
2105
|
{
|
|
2073
2106
|
ref,
|
|
@@ -2079,7 +2112,7 @@ var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2079
2112
|
}
|
|
2080
2113
|
));
|
|
2081
2114
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2082
|
-
var DialogDescription =
|
|
2115
|
+
var DialogDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2083
2116
|
DialogPrimitive.Description,
|
|
2084
2117
|
{
|
|
2085
2118
|
ref,
|
|
@@ -2090,8 +2123,8 @@ var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2090
2123
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2091
2124
|
|
|
2092
2125
|
// src/components/ui/command.tsx
|
|
2093
|
-
import { jsx as
|
|
2094
|
-
var Command =
|
|
2126
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2127
|
+
var Command = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2095
2128
|
CommandPrimitive,
|
|
2096
2129
|
{
|
|
2097
2130
|
ref,
|
|
@@ -2104,11 +2137,11 @@ var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2104
2137
|
));
|
|
2105
2138
|
Command.displayName = CommandPrimitive.displayName;
|
|
2106
2139
|
var CommandDialog = ({ children, ...props }) => {
|
|
2107
|
-
return /* @__PURE__ */
|
|
2140
|
+
return /* @__PURE__ */ jsx20(Dialog, { ...props, children: /* @__PURE__ */ jsx20(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx20(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[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", children }) }) });
|
|
2108
2141
|
};
|
|
2109
|
-
var CommandInput =
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2142
|
+
var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs7("div", { className: "flex items-center border-b border-border px-3", "cmdk-input-wrapper": "", children: [
|
|
2143
|
+
/* @__PURE__ */ jsx20(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2144
|
+
/* @__PURE__ */ jsx20(
|
|
2112
2145
|
CommandPrimitive.Input,
|
|
2113
2146
|
{
|
|
2114
2147
|
ref,
|
|
@@ -2121,7 +2154,7 @@ var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2121
2154
|
)
|
|
2122
2155
|
] }));
|
|
2123
2156
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
2124
|
-
var CommandList =
|
|
2157
|
+
var CommandList = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2125
2158
|
CommandPrimitive.List,
|
|
2126
2159
|
{
|
|
2127
2160
|
ref,
|
|
@@ -2130,7 +2163,7 @@ var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2130
2163
|
}
|
|
2131
2164
|
));
|
|
2132
2165
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
2133
|
-
var CommandEmpty =
|
|
2166
|
+
var CommandEmpty = React21.forwardRef((props, ref) => /* @__PURE__ */ jsx20(
|
|
2134
2167
|
CommandPrimitive.Empty,
|
|
2135
2168
|
{
|
|
2136
2169
|
ref,
|
|
@@ -2139,7 +2172,7 @@ var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ jsx19(
|
|
|
2139
2172
|
}
|
|
2140
2173
|
));
|
|
2141
2174
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
2142
|
-
var CommandGroup =
|
|
2175
|
+
var CommandGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2143
2176
|
CommandPrimitive.Group,
|
|
2144
2177
|
{
|
|
2145
2178
|
ref,
|
|
@@ -2151,7 +2184,7 @@ var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2151
2184
|
}
|
|
2152
2185
|
));
|
|
2153
2186
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
2154
|
-
var CommandSeparator =
|
|
2187
|
+
var CommandSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2155
2188
|
CommandPrimitive.Separator,
|
|
2156
2189
|
{
|
|
2157
2190
|
ref,
|
|
@@ -2160,7 +2193,7 @@ var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2160
2193
|
}
|
|
2161
2194
|
));
|
|
2162
2195
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
2163
|
-
var CommandItem =
|
|
2196
|
+
var CommandItem = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2164
2197
|
CommandPrimitive.Item,
|
|
2165
2198
|
{
|
|
2166
2199
|
ref,
|
|
@@ -2176,7 +2209,7 @@ var CommandShortcut = ({
|
|
|
2176
2209
|
className,
|
|
2177
2210
|
...props
|
|
2178
2211
|
}) => {
|
|
2179
|
-
return /* @__PURE__ */
|
|
2212
|
+
return /* @__PURE__ */ jsx20(
|
|
2180
2213
|
"span",
|
|
2181
2214
|
{
|
|
2182
2215
|
className: cn(
|
|
@@ -2190,17 +2223,17 @@ var CommandShortcut = ({
|
|
|
2190
2223
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2191
2224
|
|
|
2192
2225
|
// src/components/ui/context-menu.tsx
|
|
2193
|
-
import * as
|
|
2226
|
+
import * as React22 from "react";
|
|
2194
2227
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
2195
2228
|
import { Check as Check2, ChevronRight as ChevronRight2, Circle } from "lucide-react";
|
|
2196
|
-
import { jsx as
|
|
2229
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2197
2230
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
2198
2231
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
2199
2232
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
2200
2233
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
2201
2234
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
2202
2235
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
2203
|
-
var ContextMenuSubTrigger =
|
|
2236
|
+
var ContextMenuSubTrigger = React22.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
2204
2237
|
ContextMenuPrimitive.SubTrigger,
|
|
2205
2238
|
{
|
|
2206
2239
|
ref,
|
|
@@ -2212,12 +2245,12 @@ var ContextMenuSubTrigger = React21.forwardRef(({ className, inset, children, ..
|
|
|
2212
2245
|
...props,
|
|
2213
2246
|
children: [
|
|
2214
2247
|
children,
|
|
2215
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ jsx21(ChevronRight2, { className: "ml-auto h-4 w-4" })
|
|
2216
2249
|
]
|
|
2217
2250
|
}
|
|
2218
2251
|
));
|
|
2219
2252
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
2220
|
-
var ContextMenuSubContent =
|
|
2253
|
+
var ContextMenuSubContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2221
2254
|
ContextMenuPrimitive.SubContent,
|
|
2222
2255
|
{
|
|
2223
2256
|
ref,
|
|
@@ -2229,7 +2262,7 @@ var ContextMenuSubContent = React21.forwardRef(({ className, ...props }, ref) =>
|
|
|
2229
2262
|
}
|
|
2230
2263
|
));
|
|
2231
2264
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
2232
|
-
var ContextMenuContent =
|
|
2265
|
+
var ContextMenuContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx21(
|
|
2233
2266
|
ContextMenuPrimitive.Content,
|
|
2234
2267
|
{
|
|
2235
2268
|
ref,
|
|
@@ -2241,7 +2274,7 @@ var ContextMenuContent = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2241
2274
|
}
|
|
2242
2275
|
) }));
|
|
2243
2276
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
2244
|
-
var ContextMenuItem =
|
|
2277
|
+
var ContextMenuItem = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2245
2278
|
ContextMenuPrimitive.Item,
|
|
2246
2279
|
{
|
|
2247
2280
|
ref,
|
|
@@ -2254,7 +2287,7 @@ var ContextMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2254
2287
|
}
|
|
2255
2288
|
));
|
|
2256
2289
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
2257
|
-
var ContextMenuCheckboxItem =
|
|
2290
|
+
var ContextMenuCheckboxItem = React22.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
2258
2291
|
ContextMenuPrimitive.CheckboxItem,
|
|
2259
2292
|
{
|
|
2260
2293
|
ref,
|
|
@@ -2265,13 +2298,13 @@ var ContextMenuCheckboxItem = React21.forwardRef(({ className, children, checked
|
|
|
2265
2298
|
checked,
|
|
2266
2299
|
...props,
|
|
2267
2300
|
children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ jsx21("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx21(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx21(Check2, { className: "h-4 w-4" }) }) }),
|
|
2269
2302
|
children
|
|
2270
2303
|
]
|
|
2271
2304
|
}
|
|
2272
2305
|
));
|
|
2273
2306
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
2274
|
-
var ContextMenuRadioItem =
|
|
2307
|
+
var ContextMenuRadioItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
2275
2308
|
ContextMenuPrimitive.RadioItem,
|
|
2276
2309
|
{
|
|
2277
2310
|
ref,
|
|
@@ -2281,13 +2314,13 @@ var ContextMenuRadioItem = React21.forwardRef(({ className, children, ...props }
|
|
|
2281
2314
|
),
|
|
2282
2315
|
...props,
|
|
2283
2316
|
children: [
|
|
2284
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ jsx21("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx21(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx21(Circle, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2285
2318
|
children
|
|
2286
2319
|
]
|
|
2287
2320
|
}
|
|
2288
2321
|
));
|
|
2289
2322
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
2290
|
-
var ContextMenuLabel =
|
|
2323
|
+
var ContextMenuLabel = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2291
2324
|
ContextMenuPrimitive.Label,
|
|
2292
2325
|
{
|
|
2293
2326
|
ref,
|
|
@@ -2300,7 +2333,7 @@ var ContextMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2300
2333
|
}
|
|
2301
2334
|
));
|
|
2302
2335
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2303
|
-
var ContextMenuSeparator =
|
|
2336
|
+
var ContextMenuSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2304
2337
|
ContextMenuPrimitive.Separator,
|
|
2305
2338
|
{
|
|
2306
2339
|
ref,
|
|
@@ -2313,7 +2346,7 @@ var ContextMenuShortcut = ({
|
|
|
2313
2346
|
className,
|
|
2314
2347
|
...props
|
|
2315
2348
|
}) => {
|
|
2316
|
-
return /* @__PURE__ */
|
|
2349
|
+
return /* @__PURE__ */ jsx21(
|
|
2317
2350
|
"span",
|
|
2318
2351
|
{
|
|
2319
2352
|
className: cn(
|
|
@@ -2327,13 +2360,13 @@ var ContextMenuShortcut = ({
|
|
|
2327
2360
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2328
2361
|
|
|
2329
2362
|
// src/components/ui/drawer.tsx
|
|
2330
|
-
import * as
|
|
2363
|
+
import * as React23 from "react";
|
|
2331
2364
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2332
|
-
import { jsx as
|
|
2365
|
+
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2333
2366
|
var Drawer = ({
|
|
2334
2367
|
shouldScaleBackground = true,
|
|
2335
2368
|
...props
|
|
2336
|
-
}) => /* @__PURE__ */
|
|
2369
|
+
}) => /* @__PURE__ */ jsx22(
|
|
2337
2370
|
DrawerPrimitive.Root,
|
|
2338
2371
|
{
|
|
2339
2372
|
shouldScaleBackground,
|
|
@@ -2344,7 +2377,7 @@ Drawer.displayName = "Drawer";
|
|
|
2344
2377
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
2345
2378
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
2346
2379
|
var DrawerClose = DrawerPrimitive.Close;
|
|
2347
|
-
var DrawerOverlay =
|
|
2380
|
+
var DrawerOverlay = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2348
2381
|
DrawerPrimitive.Overlay,
|
|
2349
2382
|
{
|
|
2350
2383
|
ref,
|
|
@@ -2353,8 +2386,8 @@ var DrawerOverlay = React22.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2353
2386
|
}
|
|
2354
2387
|
));
|
|
2355
2388
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
2356
|
-
var DrawerContent =
|
|
2357
|
-
/* @__PURE__ */
|
|
2389
|
+
var DrawerContent = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(DrawerPortal, { children: [
|
|
2390
|
+
/* @__PURE__ */ jsx22(DrawerOverlay, {}),
|
|
2358
2391
|
/* @__PURE__ */ jsxs9(
|
|
2359
2392
|
DrawerPrimitive.Content,
|
|
2360
2393
|
{
|
|
@@ -2365,7 +2398,7 @@ var DrawerContent = React22.forwardRef(({ className, children, ...props }, ref)
|
|
|
2365
2398
|
),
|
|
2366
2399
|
...props,
|
|
2367
2400
|
children: [
|
|
2368
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ jsx22("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2369
2402
|
children
|
|
2370
2403
|
]
|
|
2371
2404
|
}
|
|
@@ -2375,7 +2408,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
2375
2408
|
var DrawerHeader = ({
|
|
2376
2409
|
className,
|
|
2377
2410
|
...props
|
|
2378
|
-
}) => /* @__PURE__ */
|
|
2411
|
+
}) => /* @__PURE__ */ jsx22(
|
|
2379
2412
|
"div",
|
|
2380
2413
|
{
|
|
2381
2414
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
@@ -2386,7 +2419,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
2386
2419
|
var DrawerFooter = ({
|
|
2387
2420
|
className,
|
|
2388
2421
|
...props
|
|
2389
|
-
}) => /* @__PURE__ */
|
|
2422
|
+
}) => /* @__PURE__ */ jsx22(
|
|
2390
2423
|
"div",
|
|
2391
2424
|
{
|
|
2392
2425
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
@@ -2394,7 +2427,7 @@ var DrawerFooter = ({
|
|
|
2394
2427
|
}
|
|
2395
2428
|
);
|
|
2396
2429
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2397
|
-
var DrawerTitle =
|
|
2430
|
+
var DrawerTitle = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2398
2431
|
DrawerPrimitive.Title,
|
|
2399
2432
|
{
|
|
2400
2433
|
ref,
|
|
@@ -2406,7 +2439,7 @@ var DrawerTitle = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2406
2439
|
}
|
|
2407
2440
|
));
|
|
2408
2441
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
2409
|
-
var DrawerDescription =
|
|
2442
|
+
var DrawerDescription = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2410
2443
|
DrawerPrimitive.Description,
|
|
2411
2444
|
{
|
|
2412
2445
|
ref,
|
|
@@ -2417,17 +2450,17 @@ var DrawerDescription = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2417
2450
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
2418
2451
|
|
|
2419
2452
|
// src/components/ui/dropdown-menu.tsx
|
|
2420
|
-
import * as
|
|
2453
|
+
import * as React24 from "react";
|
|
2421
2454
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2422
2455
|
import { Check as Check3, ChevronRight as ChevronRight3, Circle as Circle2 } from "lucide-react";
|
|
2423
|
-
import { jsx as
|
|
2456
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2424
2457
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2425
2458
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2426
2459
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
2427
2460
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
2428
2461
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
2429
2462
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
2430
|
-
var DropdownMenuSubTrigger =
|
|
2463
|
+
var DropdownMenuSubTrigger = React24.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
2431
2464
|
DropdownMenuPrimitive.SubTrigger,
|
|
2432
2465
|
{
|
|
2433
2466
|
ref,
|
|
@@ -2439,12 +2472,12 @@ var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, .
|
|
|
2439
2472
|
...props,
|
|
2440
2473
|
children: [
|
|
2441
2474
|
children,
|
|
2442
|
-
/* @__PURE__ */
|
|
2475
|
+
/* @__PURE__ */ jsx23(ChevronRight3, { className: "ml-auto" })
|
|
2443
2476
|
]
|
|
2444
2477
|
}
|
|
2445
2478
|
));
|
|
2446
2479
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2447
|
-
var DropdownMenuSubContent =
|
|
2480
|
+
var DropdownMenuSubContent = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2448
2481
|
DropdownMenuPrimitive.SubContent,
|
|
2449
2482
|
{
|
|
2450
2483
|
ref,
|
|
@@ -2456,7 +2489,7 @@ var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2456
2489
|
}
|
|
2457
2490
|
));
|
|
2458
2491
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2459
|
-
var DropdownMenuContent =
|
|
2492
|
+
var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx23(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx23(
|
|
2460
2493
|
DropdownMenuPrimitive.Content,
|
|
2461
2494
|
{
|
|
2462
2495
|
ref,
|
|
@@ -2470,7 +2503,7 @@ var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2470
2503
|
}
|
|
2471
2504
|
) }));
|
|
2472
2505
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2473
|
-
var DropdownMenuItem =
|
|
2506
|
+
var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2474
2507
|
DropdownMenuPrimitive.Item,
|
|
2475
2508
|
{
|
|
2476
2509
|
ref,
|
|
@@ -2483,7 +2516,7 @@ var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2483
2516
|
}
|
|
2484
2517
|
));
|
|
2485
2518
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2486
|
-
var DropdownMenuCheckboxItem =
|
|
2519
|
+
var DropdownMenuCheckboxItem = React24.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
2487
2520
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2488
2521
|
{
|
|
2489
2522
|
ref,
|
|
@@ -2494,13 +2527,13 @@ var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checke
|
|
|
2494
2527
|
checked,
|
|
2495
2528
|
...props,
|
|
2496
2529
|
children: [
|
|
2497
|
-
/* @__PURE__ */
|
|
2530
|
+
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(Check3, { className: "h-4 w-4" }) }) }),
|
|
2498
2531
|
children
|
|
2499
2532
|
]
|
|
2500
2533
|
}
|
|
2501
2534
|
));
|
|
2502
2535
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2503
|
-
var DropdownMenuRadioItem =
|
|
2536
|
+
var DropdownMenuRadioItem = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
2504
2537
|
DropdownMenuPrimitive.RadioItem,
|
|
2505
2538
|
{
|
|
2506
2539
|
ref,
|
|
@@ -2510,13 +2543,13 @@ var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props
|
|
|
2510
2543
|
),
|
|
2511
2544
|
...props,
|
|
2512
2545
|
children: [
|
|
2513
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ jsx23("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx23(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx23(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2514
2547
|
children
|
|
2515
2548
|
]
|
|
2516
2549
|
}
|
|
2517
2550
|
));
|
|
2518
2551
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2519
|
-
var DropdownMenuLabel =
|
|
2552
|
+
var DropdownMenuLabel = React24.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2520
2553
|
DropdownMenuPrimitive.Label,
|
|
2521
2554
|
{
|
|
2522
2555
|
ref,
|
|
@@ -2529,7 +2562,7 @@ var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2529
2562
|
}
|
|
2530
2563
|
));
|
|
2531
2564
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2532
|
-
var DropdownMenuSeparator =
|
|
2565
|
+
var DropdownMenuSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2533
2566
|
DropdownMenuPrimitive.Separator,
|
|
2534
2567
|
{
|
|
2535
2568
|
ref,
|
|
@@ -2542,7 +2575,7 @@ var DropdownMenuShortcut = ({
|
|
|
2542
2575
|
className,
|
|
2543
2576
|
...props
|
|
2544
2577
|
}) => {
|
|
2545
|
-
return /* @__PURE__ */
|
|
2578
|
+
return /* @__PURE__ */ jsx23(
|
|
2546
2579
|
"span",
|
|
2547
2580
|
{
|
|
2548
2581
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -2553,7 +2586,7 @@ var DropdownMenuShortcut = ({
|
|
|
2553
2586
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2554
2587
|
|
|
2555
2588
|
// src/components/ui/form.tsx
|
|
2556
|
-
import * as
|
|
2589
|
+
import * as React26 from "react";
|
|
2557
2590
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2558
2591
|
import {
|
|
2559
2592
|
Controller,
|
|
@@ -2562,14 +2595,14 @@ import {
|
|
|
2562
2595
|
} from "react-hook-form";
|
|
2563
2596
|
|
|
2564
2597
|
// src/components/ui/label.tsx
|
|
2565
|
-
import * as
|
|
2598
|
+
import * as React25 from "react";
|
|
2566
2599
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2567
2600
|
import { cva as cva9 } from "class-variance-authority";
|
|
2568
|
-
import { jsx as
|
|
2601
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2569
2602
|
var labelVariants = cva9(
|
|
2570
2603
|
"text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2571
2604
|
);
|
|
2572
|
-
var Label3 =
|
|
2605
|
+
var Label3 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2573
2606
|
LabelPrimitive.Root,
|
|
2574
2607
|
{
|
|
2575
2608
|
ref,
|
|
@@ -2580,17 +2613,17 @@ var Label3 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2580
2613
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2581
2614
|
|
|
2582
2615
|
// src/components/ui/form.tsx
|
|
2583
|
-
import { jsx as
|
|
2616
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2584
2617
|
var Form = FormProvider;
|
|
2585
|
-
var FormFieldContext =
|
|
2618
|
+
var FormFieldContext = React26.createContext(null);
|
|
2586
2619
|
var FormField = ({
|
|
2587
2620
|
...props
|
|
2588
2621
|
}) => {
|
|
2589
|
-
return /* @__PURE__ */
|
|
2622
|
+
return /* @__PURE__ */ jsx25(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx25(Controller, { ...props }) });
|
|
2590
2623
|
};
|
|
2591
2624
|
var useFormField = () => {
|
|
2592
|
-
const fieldContext =
|
|
2593
|
-
const itemContext =
|
|
2625
|
+
const fieldContext = React26.useContext(FormFieldContext);
|
|
2626
|
+
const itemContext = React26.useContext(FormItemContext);
|
|
2594
2627
|
const { getFieldState, formState } = useFormContext();
|
|
2595
2628
|
if (!fieldContext) {
|
|
2596
2629
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2609,15 +2642,15 @@ var useFormField = () => {
|
|
|
2609
2642
|
...fieldState
|
|
2610
2643
|
};
|
|
2611
2644
|
};
|
|
2612
|
-
var FormItemContext =
|
|
2613
|
-
var FormItem =
|
|
2614
|
-
const id =
|
|
2615
|
-
return /* @__PURE__ */
|
|
2645
|
+
var FormItemContext = React26.createContext(null);
|
|
2646
|
+
var FormItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
2647
|
+
const id = React26.useId();
|
|
2648
|
+
return /* @__PURE__ */ jsx25(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx25("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2616
2649
|
});
|
|
2617
2650
|
FormItem.displayName = "FormItem";
|
|
2618
|
-
var FormLabel =
|
|
2651
|
+
var FormLabel = React26.forwardRef(({ className, ...props }, ref) => {
|
|
2619
2652
|
const { error, formItemId } = useFormField();
|
|
2620
|
-
return /* @__PURE__ */
|
|
2653
|
+
return /* @__PURE__ */ jsx25(
|
|
2621
2654
|
Label3,
|
|
2622
2655
|
{
|
|
2623
2656
|
ref,
|
|
@@ -2628,9 +2661,9 @@ var FormLabel = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
2628
2661
|
);
|
|
2629
2662
|
});
|
|
2630
2663
|
FormLabel.displayName = "FormLabel";
|
|
2631
|
-
var FormControl =
|
|
2664
|
+
var FormControl = React26.forwardRef(({ ...props }, ref) => {
|
|
2632
2665
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2633
|
-
return /* @__PURE__ */
|
|
2666
|
+
return /* @__PURE__ */ jsx25(
|
|
2634
2667
|
Slot3,
|
|
2635
2668
|
{
|
|
2636
2669
|
ref,
|
|
@@ -2642,9 +2675,9 @@ var FormControl = React25.forwardRef(({ ...props }, ref) => {
|
|
|
2642
2675
|
);
|
|
2643
2676
|
});
|
|
2644
2677
|
FormControl.displayName = "FormControl";
|
|
2645
|
-
var FormDescription =
|
|
2678
|
+
var FormDescription = React26.forwardRef(({ className, ...props }, ref) => {
|
|
2646
2679
|
const { formDescriptionId } = useFormField();
|
|
2647
|
-
return /* @__PURE__ */
|
|
2680
|
+
return /* @__PURE__ */ jsx25(
|
|
2648
2681
|
"p",
|
|
2649
2682
|
{
|
|
2650
2683
|
ref,
|
|
@@ -2655,13 +2688,13 @@ var FormDescription = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
2655
2688
|
);
|
|
2656
2689
|
});
|
|
2657
2690
|
FormDescription.displayName = "FormDescription";
|
|
2658
|
-
var FormMessage =
|
|
2691
|
+
var FormMessage = React26.forwardRef(({ className, children, ...props }, ref) => {
|
|
2659
2692
|
const { error, formMessageId } = useFormField();
|
|
2660
2693
|
const body = error ? String(error?.message ?? "") : children;
|
|
2661
2694
|
if (!body) {
|
|
2662
2695
|
return null;
|
|
2663
2696
|
}
|
|
2664
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ jsx25(
|
|
2665
2698
|
"p",
|
|
2666
2699
|
{
|
|
2667
2700
|
ref,
|
|
@@ -2675,12 +2708,12 @@ var FormMessage = React25.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2675
2708
|
FormMessage.displayName = "FormMessage";
|
|
2676
2709
|
|
|
2677
2710
|
// src/components/ui/hover-card.tsx
|
|
2678
|
-
import * as
|
|
2711
|
+
import * as React27 from "react";
|
|
2679
2712
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2680
|
-
import { jsx as
|
|
2713
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2681
2714
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2682
2715
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2683
|
-
var HoverCardContent =
|
|
2716
|
+
var HoverCardContent = React27.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
2684
2717
|
HoverCardPrimitive.Content,
|
|
2685
2718
|
{
|
|
2686
2719
|
ref,
|
|
@@ -2696,11 +2729,11 @@ var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOf
|
|
|
2696
2729
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2697
2730
|
|
|
2698
2731
|
// src/components/ui/input.tsx
|
|
2699
|
-
import * as
|
|
2700
|
-
import { jsx as
|
|
2701
|
-
var Input =
|
|
2732
|
+
import * as React28 from "react";
|
|
2733
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2734
|
+
var Input = React28.forwardRef(
|
|
2702
2735
|
({ className, type, ...props }, ref) => {
|
|
2703
|
-
return /* @__PURE__ */
|
|
2736
|
+
return /* @__PURE__ */ jsx27(
|
|
2704
2737
|
"input",
|
|
2705
2738
|
{
|
|
2706
2739
|
type,
|
|
@@ -2717,11 +2750,11 @@ var Input = React27.forwardRef(
|
|
|
2717
2750
|
Input.displayName = "Input";
|
|
2718
2751
|
|
|
2719
2752
|
// src/components/ui/input-otp.tsx
|
|
2720
|
-
import * as
|
|
2753
|
+
import * as React29 from "react";
|
|
2721
2754
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2722
2755
|
import { Minus } from "lucide-react";
|
|
2723
|
-
import { jsx as
|
|
2724
|
-
var InputOTP =
|
|
2756
|
+
import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2757
|
+
var InputOTP = React29.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx28(
|
|
2725
2758
|
OTPInput,
|
|
2726
2759
|
{
|
|
2727
2760
|
ref,
|
|
@@ -2734,10 +2767,10 @@ var InputOTP = React28.forwardRef(({ className, containerClassName, ...props },
|
|
|
2734
2767
|
}
|
|
2735
2768
|
));
|
|
2736
2769
|
InputOTP.displayName = "InputOTP";
|
|
2737
|
-
var InputOTPGroup =
|
|
2770
|
+
var InputOTPGroup = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2738
2771
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2739
|
-
var InputOTPSlot =
|
|
2740
|
-
const inputOTPContext =
|
|
2772
|
+
var InputOTPSlot = React29.forwardRef(({ index, className, ...props }, ref) => {
|
|
2773
|
+
const inputOTPContext = React29.useContext(OTPInputContext);
|
|
2741
2774
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2742
2775
|
return /* @__PURE__ */ jsxs11(
|
|
2743
2776
|
"div",
|
|
@@ -2751,46 +2784,46 @@ var InputOTPSlot = React28.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2751
2784
|
...props,
|
|
2752
2785
|
children: [
|
|
2753
2786
|
char,
|
|
2754
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2787
|
+
hasFakeCaret && /* @__PURE__ */ jsx28("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx28("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
2755
2788
|
]
|
|
2756
2789
|
}
|
|
2757
2790
|
);
|
|
2758
2791
|
});
|
|
2759
2792
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2760
|
-
var InputOTPSeparator =
|
|
2793
|
+
var InputOTPSeparator = React29.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx28("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx28(Minus, {}) }));
|
|
2761
2794
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2762
2795
|
|
|
2763
2796
|
// src/components/ui/menubar.tsx
|
|
2764
|
-
import * as
|
|
2797
|
+
import * as React30 from "react";
|
|
2765
2798
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
2766
2799
|
import { Check as Check4, ChevronRight as ChevronRight4, Circle as Circle3 } from "lucide-react";
|
|
2767
|
-
import { jsx as
|
|
2800
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2768
2801
|
function MenubarMenu({
|
|
2769
2802
|
...props
|
|
2770
2803
|
}) {
|
|
2771
|
-
return /* @__PURE__ */
|
|
2804
|
+
return /* @__PURE__ */ jsx29(MenubarPrimitive.Menu, { ...props });
|
|
2772
2805
|
}
|
|
2773
2806
|
function MenubarGroup({
|
|
2774
2807
|
...props
|
|
2775
2808
|
}) {
|
|
2776
|
-
return /* @__PURE__ */
|
|
2809
|
+
return /* @__PURE__ */ jsx29(MenubarPrimitive.Group, { ...props });
|
|
2777
2810
|
}
|
|
2778
2811
|
function MenubarPortal({
|
|
2779
2812
|
...props
|
|
2780
2813
|
}) {
|
|
2781
|
-
return /* @__PURE__ */
|
|
2814
|
+
return /* @__PURE__ */ jsx29(MenubarPrimitive.Portal, { ...props });
|
|
2782
2815
|
}
|
|
2783
2816
|
function MenubarRadioGroup({
|
|
2784
2817
|
...props
|
|
2785
2818
|
}) {
|
|
2786
|
-
return /* @__PURE__ */
|
|
2819
|
+
return /* @__PURE__ */ jsx29(MenubarPrimitive.RadioGroup, { ...props });
|
|
2787
2820
|
}
|
|
2788
2821
|
function MenubarSub({
|
|
2789
2822
|
...props
|
|
2790
2823
|
}) {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2824
|
+
return /* @__PURE__ */ jsx29(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2792
2825
|
}
|
|
2793
|
-
var Menubar =
|
|
2826
|
+
var Menubar = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2794
2827
|
MenubarPrimitive.Root,
|
|
2795
2828
|
{
|
|
2796
2829
|
ref,
|
|
@@ -2802,7 +2835,7 @@ var Menubar = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2802
2835
|
}
|
|
2803
2836
|
));
|
|
2804
2837
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2805
|
-
var MenubarTrigger =
|
|
2838
|
+
var MenubarTrigger = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2806
2839
|
MenubarPrimitive.Trigger,
|
|
2807
2840
|
{
|
|
2808
2841
|
ref,
|
|
@@ -2814,7 +2847,7 @@ var MenubarTrigger = React29.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2814
2847
|
}
|
|
2815
2848
|
));
|
|
2816
2849
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2817
|
-
var MenubarSubTrigger =
|
|
2850
|
+
var MenubarSubTrigger = React30.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
2818
2851
|
MenubarPrimitive.SubTrigger,
|
|
2819
2852
|
{
|
|
2820
2853
|
ref,
|
|
@@ -2826,12 +2859,12 @@ var MenubarSubTrigger = React29.forwardRef(({ className, inset, children, ...pro
|
|
|
2826
2859
|
...props,
|
|
2827
2860
|
children: [
|
|
2828
2861
|
children,
|
|
2829
|
-
/* @__PURE__ */
|
|
2862
|
+
/* @__PURE__ */ jsx29(ChevronRight4, { className: "ml-auto h-4 w-4" })
|
|
2830
2863
|
]
|
|
2831
2864
|
}
|
|
2832
2865
|
));
|
|
2833
2866
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2834
|
-
var MenubarSubContent =
|
|
2867
|
+
var MenubarSubContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2835
2868
|
MenubarPrimitive.SubContent,
|
|
2836
2869
|
{
|
|
2837
2870
|
ref,
|
|
@@ -2843,8 +2876,8 @@ var MenubarSubContent = React29.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2843
2876
|
}
|
|
2844
2877
|
));
|
|
2845
2878
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2846
|
-
var MenubarContent =
|
|
2847
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
2879
|
+
var MenubarContent = React30.forwardRef(
|
|
2880
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx29(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx29(
|
|
2848
2881
|
MenubarPrimitive.Content,
|
|
2849
2882
|
{
|
|
2850
2883
|
ref,
|
|
@@ -2860,7 +2893,7 @@ var MenubarContent = React29.forwardRef(
|
|
|
2860
2893
|
) })
|
|
2861
2894
|
);
|
|
2862
2895
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2863
|
-
var MenubarItem =
|
|
2896
|
+
var MenubarItem = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2864
2897
|
MenubarPrimitive.Item,
|
|
2865
2898
|
{
|
|
2866
2899
|
ref,
|
|
@@ -2873,7 +2906,7 @@ var MenubarItem = React29.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2873
2906
|
}
|
|
2874
2907
|
));
|
|
2875
2908
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2876
|
-
var MenubarCheckboxItem =
|
|
2909
|
+
var MenubarCheckboxItem = React30.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
2877
2910
|
MenubarPrimitive.CheckboxItem,
|
|
2878
2911
|
{
|
|
2879
2912
|
ref,
|
|
@@ -2884,13 +2917,13 @@ var MenubarCheckboxItem = React29.forwardRef(({ className, children, checked, ..
|
|
|
2884
2917
|
checked,
|
|
2885
2918
|
...props,
|
|
2886
2919
|
children: [
|
|
2887
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ jsx29("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx29(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx29(Check4, { className: "h-4 w-4" }) }) }),
|
|
2888
2921
|
children
|
|
2889
2922
|
]
|
|
2890
2923
|
}
|
|
2891
2924
|
));
|
|
2892
2925
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2893
|
-
var MenubarRadioItem =
|
|
2926
|
+
var MenubarRadioItem = React30.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(
|
|
2894
2927
|
MenubarPrimitive.RadioItem,
|
|
2895
2928
|
{
|
|
2896
2929
|
ref,
|
|
@@ -2900,13 +2933,13 @@ var MenubarRadioItem = React29.forwardRef(({ className, children, ...props }, re
|
|
|
2900
2933
|
),
|
|
2901
2934
|
...props,
|
|
2902
2935
|
children: [
|
|
2903
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsx29("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx29(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx29(Circle3, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2904
2937
|
children
|
|
2905
2938
|
]
|
|
2906
2939
|
}
|
|
2907
2940
|
));
|
|
2908
2941
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2909
|
-
var MenubarLabel =
|
|
2942
|
+
var MenubarLabel = React30.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2910
2943
|
MenubarPrimitive.Label,
|
|
2911
2944
|
{
|
|
2912
2945
|
ref,
|
|
@@ -2919,7 +2952,7 @@ var MenubarLabel = React29.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2919
2952
|
}
|
|
2920
2953
|
));
|
|
2921
2954
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2922
|
-
var MenubarSeparator =
|
|
2955
|
+
var MenubarSeparator = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2923
2956
|
MenubarPrimitive.Separator,
|
|
2924
2957
|
{
|
|
2925
2958
|
ref,
|
|
@@ -2932,7 +2965,7 @@ var MenubarShortcut = ({
|
|
|
2932
2965
|
className,
|
|
2933
2966
|
...props
|
|
2934
2967
|
}) => {
|
|
2935
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ jsx29(
|
|
2936
2969
|
"span",
|
|
2937
2970
|
{
|
|
2938
2971
|
className: cn(
|
|
@@ -2946,12 +2979,12 @@ var MenubarShortcut = ({
|
|
|
2946
2979
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2947
2980
|
|
|
2948
2981
|
// src/components/ui/navigation-menu.tsx
|
|
2949
|
-
import * as
|
|
2982
|
+
import * as React31 from "react";
|
|
2950
2983
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2951
2984
|
import { cva as cva10 } from "class-variance-authority";
|
|
2952
2985
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
2953
|
-
import { jsx as
|
|
2954
|
-
var NavigationMenu =
|
|
2986
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2987
|
+
var NavigationMenu = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2955
2988
|
NavigationMenuPrimitive.Root,
|
|
2956
2989
|
{
|
|
2957
2990
|
ref,
|
|
@@ -2962,12 +2995,12 @@ var NavigationMenu = React30.forwardRef(({ className, children, ...props }, ref)
|
|
|
2962
2995
|
...props,
|
|
2963
2996
|
children: [
|
|
2964
2997
|
children,
|
|
2965
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ jsx30(NavigationMenuViewport, {})
|
|
2966
2999
|
]
|
|
2967
3000
|
}
|
|
2968
3001
|
));
|
|
2969
3002
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2970
|
-
var NavigationMenuList =
|
|
3003
|
+
var NavigationMenuList = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2971
3004
|
NavigationMenuPrimitive.List,
|
|
2972
3005
|
{
|
|
2973
3006
|
ref,
|
|
@@ -2983,7 +3016,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2983
3016
|
var navigationMenuTriggerStyle = cva10(
|
|
2984
3017
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm 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-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
2985
3018
|
);
|
|
2986
|
-
var NavigationMenuTrigger =
|
|
3019
|
+
var NavigationMenuTrigger = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2987
3020
|
NavigationMenuPrimitive.Trigger,
|
|
2988
3021
|
{
|
|
2989
3022
|
ref,
|
|
@@ -2992,7 +3025,7 @@ var NavigationMenuTrigger = React30.forwardRef(({ className, children, ...props
|
|
|
2992
3025
|
children: [
|
|
2993
3026
|
children,
|
|
2994
3027
|
" ",
|
|
2995
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ jsx30(
|
|
2996
3029
|
ChevronDown2,
|
|
2997
3030
|
{
|
|
2998
3031
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -3003,7 +3036,7 @@ var NavigationMenuTrigger = React30.forwardRef(({ className, children, ...props
|
|
|
3003
3036
|
}
|
|
3004
3037
|
));
|
|
3005
3038
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
3006
|
-
var NavigationMenuContent =
|
|
3039
|
+
var NavigationMenuContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
3007
3040
|
NavigationMenuPrimitive.Content,
|
|
3008
3041
|
{
|
|
3009
3042
|
ref,
|
|
@@ -3016,7 +3049,7 @@ var NavigationMenuContent = React30.forwardRef(({ className, ...props }, ref) =>
|
|
|
3016
3049
|
));
|
|
3017
3050
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
3018
3051
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
3019
|
-
var NavigationMenuViewport =
|
|
3052
|
+
var NavigationMenuViewport = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx30(
|
|
3020
3053
|
NavigationMenuPrimitive.Viewport,
|
|
3021
3054
|
{
|
|
3022
3055
|
className: cn(
|
|
@@ -3028,7 +3061,7 @@ var NavigationMenuViewport = React30.forwardRef(({ className, ...props }, ref) =
|
|
|
3028
3061
|
}
|
|
3029
3062
|
) }));
|
|
3030
3063
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
3031
|
-
var NavigationMenuIndicator =
|
|
3064
|
+
var NavigationMenuIndicator = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
3032
3065
|
NavigationMenuPrimitive.Indicator,
|
|
3033
3066
|
{
|
|
3034
3067
|
ref,
|
|
@@ -3037,16 +3070,16 @@ var NavigationMenuIndicator = React30.forwardRef(({ className, ...props }, ref)
|
|
|
3037
3070
|
className
|
|
3038
3071
|
),
|
|
3039
3072
|
...props,
|
|
3040
|
-
children: /* @__PURE__ */
|
|
3073
|
+
children: /* @__PURE__ */ jsx30("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
3041
3074
|
}
|
|
3042
3075
|
));
|
|
3043
3076
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
3044
3077
|
|
|
3045
3078
|
// src/components/ui/pagination.tsx
|
|
3046
|
-
import * as
|
|
3079
|
+
import * as React32 from "react";
|
|
3047
3080
|
import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
3048
|
-
import { jsx as
|
|
3049
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
3081
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3082
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx31(
|
|
3050
3083
|
"nav",
|
|
3051
3084
|
{
|
|
3052
3085
|
role: "navigation",
|
|
@@ -3056,7 +3089,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx30(
|
|
|
3056
3089
|
}
|
|
3057
3090
|
);
|
|
3058
3091
|
Pagination.displayName = "Pagination";
|
|
3059
|
-
var PaginationContent =
|
|
3092
|
+
var PaginationContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3060
3093
|
"ul",
|
|
3061
3094
|
{
|
|
3062
3095
|
ref,
|
|
@@ -3065,14 +3098,14 @@ var PaginationContent = React31.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3065
3098
|
}
|
|
3066
3099
|
));
|
|
3067
3100
|
PaginationContent.displayName = "PaginationContent";
|
|
3068
|
-
var PaginationItem =
|
|
3101
|
+
var PaginationItem = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31("li", { ref, className: cn("", className), ...props }));
|
|
3069
3102
|
PaginationItem.displayName = "PaginationItem";
|
|
3070
3103
|
var PaginationLink = ({
|
|
3071
3104
|
className,
|
|
3072
3105
|
isActive,
|
|
3073
3106
|
size = "icon",
|
|
3074
3107
|
...props
|
|
3075
|
-
}) => /* @__PURE__ */
|
|
3108
|
+
}) => /* @__PURE__ */ jsx31(
|
|
3076
3109
|
"a",
|
|
3077
3110
|
{
|
|
3078
3111
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -3098,8 +3131,8 @@ var PaginationPrevious = ({
|
|
|
3098
3131
|
className: cn("gap-1 pl-2.5", className),
|
|
3099
3132
|
...props,
|
|
3100
3133
|
children: [
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3134
|
+
/* @__PURE__ */ jsx31(ChevronLeft, { className: "h-4 w-4" }),
|
|
3135
|
+
/* @__PURE__ */ jsx31("span", { children: "Previous" })
|
|
3103
3136
|
]
|
|
3104
3137
|
}
|
|
3105
3138
|
);
|
|
@@ -3115,8 +3148,8 @@ var PaginationNext = ({
|
|
|
3115
3148
|
className: cn("gap-1 pr-2.5", className),
|
|
3116
3149
|
...props,
|
|
3117
3150
|
children: [
|
|
3118
|
-
/* @__PURE__ */
|
|
3119
|
-
/* @__PURE__ */
|
|
3151
|
+
/* @__PURE__ */ jsx31("span", { children: "Next" }),
|
|
3152
|
+
/* @__PURE__ */ jsx31(ChevronRight5, { className: "h-4 w-4" })
|
|
3120
3153
|
]
|
|
3121
3154
|
}
|
|
3122
3155
|
);
|
|
@@ -3131,21 +3164,21 @@ var PaginationEllipsis = ({
|
|
|
3131
3164
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3132
3165
|
...props,
|
|
3133
3166
|
children: [
|
|
3134
|
-
/* @__PURE__ */
|
|
3135
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ jsx31(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
3168
|
+
/* @__PURE__ */ jsx31("span", { className: "sr-only", children: "More pages" })
|
|
3136
3169
|
]
|
|
3137
3170
|
}
|
|
3138
3171
|
);
|
|
3139
3172
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3140
3173
|
|
|
3141
3174
|
// src/components/ui/popover.tsx
|
|
3142
|
-
import * as
|
|
3175
|
+
import * as React33 from "react";
|
|
3143
3176
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3144
|
-
import { jsx as
|
|
3177
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3145
3178
|
var Popover = PopoverPrimitive.Root;
|
|
3146
3179
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3147
3180
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
3148
|
-
var PopoverContent =
|
|
3181
|
+
var PopoverContent = React33.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx32(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx32(
|
|
3149
3182
|
PopoverPrimitive.Content,
|
|
3150
3183
|
{
|
|
3151
3184
|
ref,
|
|
@@ -3161,10 +3194,10 @@ var PopoverContent = React32.forwardRef(({ className, align = "center", sideOffs
|
|
|
3161
3194
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3162
3195
|
|
|
3163
3196
|
// src/components/ui/progress.tsx
|
|
3164
|
-
import * as
|
|
3197
|
+
import * as React34 from "react";
|
|
3165
3198
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3166
|
-
import { jsx as
|
|
3167
|
-
var Progress =
|
|
3199
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3200
|
+
var Progress = React34.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
3168
3201
|
ProgressPrimitive.Root,
|
|
3169
3202
|
{
|
|
3170
3203
|
ref,
|
|
@@ -3173,7 +3206,7 @@ var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3173
3206
|
className
|
|
3174
3207
|
),
|
|
3175
3208
|
...props,
|
|
3176
|
-
children: /* @__PURE__ */
|
|
3209
|
+
children: /* @__PURE__ */ jsx33(
|
|
3177
3210
|
ProgressPrimitive.Indicator,
|
|
3178
3211
|
{
|
|
3179
3212
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -3185,12 +3218,12 @@ var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3185
3218
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3186
3219
|
|
|
3187
3220
|
// src/components/ui/radio-group.tsx
|
|
3188
|
-
import * as
|
|
3221
|
+
import * as React35 from "react";
|
|
3189
3222
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3190
3223
|
import { Circle as Circle4 } from "lucide-react";
|
|
3191
|
-
import { jsx as
|
|
3192
|
-
var RadioGroup4 =
|
|
3193
|
-
return /* @__PURE__ */
|
|
3224
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3225
|
+
var RadioGroup4 = React35.forwardRef(({ className, ...props }, ref) => {
|
|
3226
|
+
return /* @__PURE__ */ jsx34(
|
|
3194
3227
|
RadioGroupPrimitive.Root,
|
|
3195
3228
|
{
|
|
3196
3229
|
className: cn("grid gap-2", className),
|
|
@@ -3200,8 +3233,8 @@ var RadioGroup4 = React34.forwardRef(({ className, ...props }, ref) => {
|
|
|
3200
3233
|
);
|
|
3201
3234
|
});
|
|
3202
3235
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
3203
|
-
var RadioGroupItem =
|
|
3204
|
-
return /* @__PURE__ */
|
|
3236
|
+
var RadioGroupItem = React35.forwardRef(({ className, ...props }, ref) => {
|
|
3237
|
+
return /* @__PURE__ */ jsx34(
|
|
3205
3238
|
RadioGroupPrimitive.Item,
|
|
3206
3239
|
{
|
|
3207
3240
|
ref,
|
|
@@ -3210,7 +3243,7 @@ var RadioGroupItem = React34.forwardRef(({ className, ...props }, ref) => {
|
|
|
3210
3243
|
className
|
|
3211
3244
|
),
|
|
3212
3245
|
...props,
|
|
3213
|
-
children: /* @__PURE__ */
|
|
3246
|
+
children: /* @__PURE__ */ jsx34(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx34(Circle4, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
3214
3247
|
}
|
|
3215
3248
|
);
|
|
3216
3249
|
});
|
|
@@ -3223,11 +3256,11 @@ import {
|
|
|
3223
3256
|
Panel,
|
|
3224
3257
|
Separator as Separator4
|
|
3225
3258
|
} from "react-resizable-panels";
|
|
3226
|
-
import { jsx as
|
|
3259
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3227
3260
|
var ResizablePanelGroup = ({
|
|
3228
3261
|
className,
|
|
3229
3262
|
...props
|
|
3230
|
-
}) => /* @__PURE__ */
|
|
3263
|
+
}) => /* @__PURE__ */ jsx35(
|
|
3231
3264
|
Group4,
|
|
3232
3265
|
{
|
|
3233
3266
|
className: cn(
|
|
@@ -3242,7 +3275,7 @@ var ResizableHandle = ({
|
|
|
3242
3275
|
withHandle,
|
|
3243
3276
|
className,
|
|
3244
3277
|
...props
|
|
3245
|
-
}) => /* @__PURE__ */
|
|
3278
|
+
}) => /* @__PURE__ */ jsx35(
|
|
3246
3279
|
Separator4,
|
|
3247
3280
|
{
|
|
3248
3281
|
className: cn(
|
|
@@ -3250,29 +3283,29 @@ var ResizableHandle = ({
|
|
|
3250
3283
|
className
|
|
3251
3284
|
),
|
|
3252
3285
|
...props,
|
|
3253
|
-
children: withHandle && /* @__PURE__ */
|
|
3286
|
+
children: withHandle && /* @__PURE__ */ jsx35("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx35(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
3254
3287
|
}
|
|
3255
3288
|
);
|
|
3256
3289
|
|
|
3257
3290
|
// src/components/ui/scroll-area.tsx
|
|
3258
|
-
import * as
|
|
3291
|
+
import * as React36 from "react";
|
|
3259
3292
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3260
|
-
import { jsx as
|
|
3261
|
-
var ScrollArea =
|
|
3293
|
+
import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3294
|
+
var ScrollArea = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs15(
|
|
3262
3295
|
ScrollAreaPrimitive.Root,
|
|
3263
3296
|
{
|
|
3264
3297
|
ref,
|
|
3265
3298
|
className: cn("relative overflow-hidden", className),
|
|
3266
3299
|
...props,
|
|
3267
3300
|
children: [
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3270
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ jsx36(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
3302
|
+
/* @__PURE__ */ jsx36(ScrollBar, {}),
|
|
3303
|
+
/* @__PURE__ */ jsx36(ScrollAreaPrimitive.Corner, {})
|
|
3271
3304
|
]
|
|
3272
3305
|
}
|
|
3273
3306
|
));
|
|
3274
3307
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3275
|
-
var ScrollBar =
|
|
3308
|
+
var ScrollBar = React36.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
3276
3309
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3277
3310
|
{
|
|
3278
3311
|
ref,
|
|
@@ -3284,20 +3317,20 @@ var ScrollBar = React35.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
3284
3317
|
className
|
|
3285
3318
|
),
|
|
3286
3319
|
...props,
|
|
3287
|
-
children: /* @__PURE__ */
|
|
3320
|
+
children: /* @__PURE__ */ jsx36(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
3288
3321
|
}
|
|
3289
3322
|
));
|
|
3290
3323
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3291
3324
|
|
|
3292
3325
|
// src/components/ui/select.tsx
|
|
3293
|
-
import * as
|
|
3326
|
+
import * as React37 from "react";
|
|
3294
3327
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3295
3328
|
import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
3296
|
-
import { jsx as
|
|
3329
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3297
3330
|
var Select = SelectPrimitive.Root;
|
|
3298
3331
|
var SelectGroup = SelectPrimitive.Group;
|
|
3299
3332
|
var SelectValue = SelectPrimitive.Value;
|
|
3300
|
-
var SelectTrigger =
|
|
3333
|
+
var SelectTrigger = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
3301
3334
|
SelectPrimitive.Trigger,
|
|
3302
3335
|
{
|
|
3303
3336
|
ref,
|
|
@@ -3308,12 +3341,12 @@ var SelectTrigger = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
3308
3341
|
...props,
|
|
3309
3342
|
children: [
|
|
3310
3343
|
children,
|
|
3311
|
-
/* @__PURE__ */
|
|
3344
|
+
/* @__PURE__ */ jsx37(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx37(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
3312
3345
|
]
|
|
3313
3346
|
}
|
|
3314
3347
|
));
|
|
3315
3348
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3316
|
-
var SelectScrollUpButton =
|
|
3349
|
+
var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3317
3350
|
SelectPrimitive.ScrollUpButton,
|
|
3318
3351
|
{
|
|
3319
3352
|
ref,
|
|
@@ -3322,11 +3355,11 @@ var SelectScrollUpButton = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
3322
3355
|
className
|
|
3323
3356
|
),
|
|
3324
3357
|
...props,
|
|
3325
|
-
children: /* @__PURE__ */
|
|
3358
|
+
children: /* @__PURE__ */ jsx37(ChevronUp, { className: "h-4 w-4" })
|
|
3326
3359
|
}
|
|
3327
3360
|
));
|
|
3328
3361
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3329
|
-
var SelectScrollDownButton =
|
|
3362
|
+
var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3330
3363
|
SelectPrimitive.ScrollDownButton,
|
|
3331
3364
|
{
|
|
3332
3365
|
ref,
|
|
@@ -3335,11 +3368,11 @@ var SelectScrollDownButton = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
3335
3368
|
className
|
|
3336
3369
|
),
|
|
3337
3370
|
...props,
|
|
3338
|
-
children: /* @__PURE__ */
|
|
3371
|
+
children: /* @__PURE__ */ jsx37(ChevronDown3, { className: "h-4 w-4" })
|
|
3339
3372
|
}
|
|
3340
3373
|
));
|
|
3341
3374
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3342
|
-
var SelectContent =
|
|
3375
|
+
var SelectContent = React37.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx37(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
|
|
3343
3376
|
SelectPrimitive.Content,
|
|
3344
3377
|
{
|
|
3345
3378
|
ref,
|
|
@@ -3351,8 +3384,8 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
3351
3384
|
position,
|
|
3352
3385
|
...props,
|
|
3353
3386
|
children: [
|
|
3354
|
-
/* @__PURE__ */
|
|
3355
|
-
/* @__PURE__ */
|
|
3387
|
+
/* @__PURE__ */ jsx37(SelectScrollUpButton, {}),
|
|
3388
|
+
/* @__PURE__ */ jsx37(
|
|
3356
3389
|
SelectPrimitive.Viewport,
|
|
3357
3390
|
{
|
|
3358
3391
|
className: cn(
|
|
@@ -3362,12 +3395,12 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
3362
3395
|
children
|
|
3363
3396
|
}
|
|
3364
3397
|
),
|
|
3365
|
-
/* @__PURE__ */
|
|
3398
|
+
/* @__PURE__ */ jsx37(SelectScrollDownButton, {})
|
|
3366
3399
|
]
|
|
3367
3400
|
}
|
|
3368
3401
|
) }));
|
|
3369
3402
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3370
|
-
var SelectLabel =
|
|
3403
|
+
var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3371
3404
|
SelectPrimitive.Label,
|
|
3372
3405
|
{
|
|
3373
3406
|
ref,
|
|
@@ -3376,7 +3409,7 @@ var SelectLabel = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3376
3409
|
}
|
|
3377
3410
|
));
|
|
3378
3411
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3379
|
-
var SelectItem =
|
|
3412
|
+
var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
3380
3413
|
SelectPrimitive.Item,
|
|
3381
3414
|
{
|
|
3382
3415
|
ref,
|
|
@@ -3386,13 +3419,13 @@ var SelectItem = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3386
3419
|
),
|
|
3387
3420
|
...props,
|
|
3388
3421
|
children: [
|
|
3389
|
-
/* @__PURE__ */
|
|
3390
|
-
/* @__PURE__ */
|
|
3422
|
+
/* @__PURE__ */ jsx37("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx37(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx37(Check5, { className: "h-4 w-4" }) }) }),
|
|
3423
|
+
/* @__PURE__ */ jsx37(SelectPrimitive.ItemText, { children })
|
|
3391
3424
|
]
|
|
3392
3425
|
}
|
|
3393
3426
|
));
|
|
3394
3427
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3395
|
-
var SelectSeparator =
|
|
3428
|
+
var SelectSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3396
3429
|
SelectPrimitive.Separator,
|
|
3397
3430
|
{
|
|
3398
3431
|
ref,
|
|
@@ -3403,11 +3436,11 @@ var SelectSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3403
3436
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3404
3437
|
|
|
3405
3438
|
// src/components/ui/separator.tsx
|
|
3406
|
-
import * as
|
|
3439
|
+
import * as React38 from "react";
|
|
3407
3440
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3408
|
-
import { jsx as
|
|
3409
|
-
var Separator6 =
|
|
3410
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
3441
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3442
|
+
var Separator6 = React38.forwardRef(
|
|
3443
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3411
3444
|
SeparatorPrimitive.Root,
|
|
3412
3445
|
{
|
|
3413
3446
|
ref,
|
|
@@ -3425,16 +3458,16 @@ var Separator6 = React37.forwardRef(
|
|
|
3425
3458
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
3426
3459
|
|
|
3427
3460
|
// src/components/ui/sheet.tsx
|
|
3428
|
-
import * as
|
|
3461
|
+
import * as React39 from "react";
|
|
3429
3462
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3430
3463
|
import { cva as cva11 } from "class-variance-authority";
|
|
3431
3464
|
import { X as X2 } from "lucide-react";
|
|
3432
|
-
import { jsx as
|
|
3465
|
+
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3433
3466
|
var Sheet = SheetPrimitive.Root;
|
|
3434
3467
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
3435
3468
|
var SheetClose = SheetPrimitive.Close;
|
|
3436
3469
|
var SheetPortal = SheetPrimitive.Portal;
|
|
3437
|
-
var SheetOverlay =
|
|
3470
|
+
var SheetOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3438
3471
|
SheetPrimitive.Overlay,
|
|
3439
3472
|
{
|
|
3440
3473
|
className: cn(
|
|
@@ -3462,8 +3495,8 @@ var sheetVariants = cva11(
|
|
|
3462
3495
|
}
|
|
3463
3496
|
}
|
|
3464
3497
|
);
|
|
3465
|
-
var SheetContent =
|
|
3466
|
-
/* @__PURE__ */
|
|
3498
|
+
var SheetContent = React39.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(SheetPortal, { children: [
|
|
3499
|
+
/* @__PURE__ */ jsx39(SheetOverlay, {}),
|
|
3467
3500
|
/* @__PURE__ */ jsxs17(
|
|
3468
3501
|
SheetPrimitive.Content,
|
|
3469
3502
|
{
|
|
@@ -3472,8 +3505,8 @@ var SheetContent = React38.forwardRef(({ side = "right", className, children, ..
|
|
|
3472
3505
|
...props,
|
|
3473
3506
|
children: [
|
|
3474
3507
|
/* @__PURE__ */ jsxs17(SheetPrimitive.Close, { 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", children: [
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ jsx39(X2, { className: "h-4 w-4" }),
|
|
3509
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: "Close" })
|
|
3477
3510
|
] }),
|
|
3478
3511
|
children
|
|
3479
3512
|
]
|
|
@@ -3484,7 +3517,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3484
3517
|
var SheetHeader = ({
|
|
3485
3518
|
className,
|
|
3486
3519
|
...props
|
|
3487
|
-
}) => /* @__PURE__ */
|
|
3520
|
+
}) => /* @__PURE__ */ jsx39(
|
|
3488
3521
|
"div",
|
|
3489
3522
|
{
|
|
3490
3523
|
className: cn(
|
|
@@ -3498,7 +3531,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3498
3531
|
var SheetFooter = ({
|
|
3499
3532
|
className,
|
|
3500
3533
|
...props
|
|
3501
|
-
}) => /* @__PURE__ */
|
|
3534
|
+
}) => /* @__PURE__ */ jsx39(
|
|
3502
3535
|
"div",
|
|
3503
3536
|
{
|
|
3504
3537
|
className: cn(
|
|
@@ -3509,7 +3542,7 @@ var SheetFooter = ({
|
|
|
3509
3542
|
}
|
|
3510
3543
|
);
|
|
3511
3544
|
SheetFooter.displayName = "SheetFooter";
|
|
3512
|
-
var SheetTitle =
|
|
3545
|
+
var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3513
3546
|
SheetPrimitive.Title,
|
|
3514
3547
|
{
|
|
3515
3548
|
ref,
|
|
@@ -3518,7 +3551,7 @@ var SheetTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3518
3551
|
}
|
|
3519
3552
|
));
|
|
3520
3553
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3521
|
-
var SheetDescription =
|
|
3554
|
+
var SheetDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3522
3555
|
SheetPrimitive.Description,
|
|
3523
3556
|
{
|
|
3524
3557
|
ref,
|
|
@@ -3529,18 +3562,18 @@ var SheetDescription = React38.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3529
3562
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3530
3563
|
|
|
3531
3564
|
// src/components/ui/sidebar.tsx
|
|
3532
|
-
import * as
|
|
3565
|
+
import * as React41 from "react";
|
|
3533
3566
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3534
3567
|
import { cva as cva12 } from "class-variance-authority";
|
|
3535
3568
|
import { PanelLeft } from "lucide-react";
|
|
3536
3569
|
|
|
3537
3570
|
// src/components/ui/skeleton.tsx
|
|
3538
|
-
import { jsx as
|
|
3571
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3539
3572
|
function Skeleton({
|
|
3540
3573
|
className,
|
|
3541
3574
|
...props
|
|
3542
3575
|
}) {
|
|
3543
|
-
return /* @__PURE__ */
|
|
3576
|
+
return /* @__PURE__ */ jsx40(
|
|
3544
3577
|
"div",
|
|
3545
3578
|
{
|
|
3546
3579
|
className: cn("animate-pulse rounded-md bg-primary/10", className),
|
|
@@ -3550,13 +3583,13 @@ function Skeleton({
|
|
|
3550
3583
|
}
|
|
3551
3584
|
|
|
3552
3585
|
// src/components/ui/tooltip.tsx
|
|
3553
|
-
import * as
|
|
3586
|
+
import * as React40 from "react";
|
|
3554
3587
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3555
|
-
import { jsx as
|
|
3588
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3556
3589
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3557
3590
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3558
3591
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3559
|
-
var TooltipContent =
|
|
3592
|
+
var TooltipContent = React40.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx41(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
|
|
3560
3593
|
TooltipPrimitive.Content,
|
|
3561
3594
|
{
|
|
3562
3595
|
ref,
|
|
@@ -3571,22 +3604,22 @@ var TooltipContent = React39.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
3571
3604
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3572
3605
|
|
|
3573
3606
|
// src/components/ui/sidebar.tsx
|
|
3574
|
-
import { jsx as
|
|
3607
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3575
3608
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3576
3609
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3577
3610
|
var SIDEBAR_WIDTH = "16rem";
|
|
3578
3611
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3579
3612
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3580
3613
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3581
|
-
var SidebarContext =
|
|
3614
|
+
var SidebarContext = React41.createContext(null);
|
|
3582
3615
|
function useSidebar() {
|
|
3583
|
-
const context =
|
|
3616
|
+
const context = React41.useContext(SidebarContext);
|
|
3584
3617
|
if (!context) {
|
|
3585
3618
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3586
3619
|
}
|
|
3587
3620
|
return context;
|
|
3588
3621
|
}
|
|
3589
|
-
var SidebarProvider =
|
|
3622
|
+
var SidebarProvider = React41.forwardRef(
|
|
3590
3623
|
({
|
|
3591
3624
|
defaultOpen = true,
|
|
3592
3625
|
open: openProp,
|
|
@@ -3597,10 +3630,10 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3597
3630
|
...props
|
|
3598
3631
|
}, ref) => {
|
|
3599
3632
|
const isMobile = useIsMobile();
|
|
3600
|
-
const [openMobile, setOpenMobile] =
|
|
3601
|
-
const [_open, _setOpen] =
|
|
3633
|
+
const [openMobile, setOpenMobile] = React41.useState(false);
|
|
3634
|
+
const [_open, _setOpen] = React41.useState(defaultOpen);
|
|
3602
3635
|
const open = openProp ?? _open;
|
|
3603
|
-
const setOpen =
|
|
3636
|
+
const setOpen = React41.useCallback(
|
|
3604
3637
|
(value) => {
|
|
3605
3638
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3606
3639
|
if (setOpenProp) {
|
|
@@ -3612,10 +3645,10 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3612
3645
|
},
|
|
3613
3646
|
[setOpenProp, open]
|
|
3614
3647
|
);
|
|
3615
|
-
const toggleSidebar =
|
|
3648
|
+
const toggleSidebar = React41.useCallback(() => {
|
|
3616
3649
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3617
3650
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3618
|
-
|
|
3651
|
+
React41.useEffect(() => {
|
|
3619
3652
|
const handleKeyDown = (event) => {
|
|
3620
3653
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3621
3654
|
event.preventDefault();
|
|
@@ -3626,7 +3659,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3626
3659
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3627
3660
|
}, [toggleSidebar]);
|
|
3628
3661
|
const state = open ? "expanded" : "collapsed";
|
|
3629
|
-
const contextValue =
|
|
3662
|
+
const contextValue = React41.useMemo(
|
|
3630
3663
|
() => ({
|
|
3631
3664
|
state,
|
|
3632
3665
|
open,
|
|
@@ -3638,7 +3671,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3638
3671
|
}),
|
|
3639
3672
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
3640
3673
|
);
|
|
3641
|
-
return /* @__PURE__ */
|
|
3674
|
+
return /* @__PURE__ */ jsx42(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx42(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx42(
|
|
3642
3675
|
"div",
|
|
3643
3676
|
{
|
|
3644
3677
|
style: {
|
|
@@ -3658,7 +3691,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3658
3691
|
}
|
|
3659
3692
|
);
|
|
3660
3693
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3661
|
-
var Sidebar =
|
|
3694
|
+
var Sidebar = React41.forwardRef(
|
|
3662
3695
|
({
|
|
3663
3696
|
side = "left",
|
|
3664
3697
|
variant = "sidebar",
|
|
@@ -3669,7 +3702,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3669
3702
|
}, ref) => {
|
|
3670
3703
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3671
3704
|
if (collapsible === "none") {
|
|
3672
|
-
return /* @__PURE__ */
|
|
3705
|
+
return /* @__PURE__ */ jsx42(
|
|
3673
3706
|
"div",
|
|
3674
3707
|
{
|
|
3675
3708
|
className: cn(
|
|
@@ -3683,7 +3716,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3683
3716
|
);
|
|
3684
3717
|
}
|
|
3685
3718
|
if (isMobile) {
|
|
3686
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ jsx42(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs18(
|
|
3687
3720
|
SheetContent,
|
|
3688
3721
|
{
|
|
3689
3722
|
"data-sidebar": "sidebar",
|
|
@@ -3695,10 +3728,10 @@ var Sidebar = React40.forwardRef(
|
|
|
3695
3728
|
side,
|
|
3696
3729
|
children: [
|
|
3697
3730
|
/* @__PURE__ */ jsxs18(SheetHeader, { className: "sr-only", children: [
|
|
3698
|
-
/* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3731
|
+
/* @__PURE__ */ jsx42(SheetTitle, { children: "Sidebar" }),
|
|
3732
|
+
/* @__PURE__ */ jsx42(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3700
3733
|
] }),
|
|
3701
|
-
/* @__PURE__ */
|
|
3734
|
+
/* @__PURE__ */ jsx42("div", { className: "flex h-full w-full flex-col", children })
|
|
3702
3735
|
]
|
|
3703
3736
|
}
|
|
3704
3737
|
) });
|
|
@@ -3713,7 +3746,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3713
3746
|
"data-variant": variant,
|
|
3714
3747
|
"data-side": side,
|
|
3715
3748
|
children: [
|
|
3716
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ jsx42(
|
|
3717
3750
|
"div",
|
|
3718
3751
|
{
|
|
3719
3752
|
className: cn(
|
|
@@ -3724,7 +3757,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3724
3757
|
)
|
|
3725
3758
|
}
|
|
3726
3759
|
),
|
|
3727
|
-
/* @__PURE__ */
|
|
3760
|
+
/* @__PURE__ */ jsx42(
|
|
3728
3761
|
"div",
|
|
3729
3762
|
{
|
|
3730
3763
|
className: cn(
|
|
@@ -3735,7 +3768,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3735
3768
|
className
|
|
3736
3769
|
),
|
|
3737
3770
|
...props,
|
|
3738
|
-
children: /* @__PURE__ */
|
|
3771
|
+
children: /* @__PURE__ */ jsx42(
|
|
3739
3772
|
"div",
|
|
3740
3773
|
{
|
|
3741
3774
|
"data-sidebar": "sidebar",
|
|
@@ -3751,7 +3784,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3751
3784
|
}
|
|
3752
3785
|
);
|
|
3753
3786
|
Sidebar.displayName = "Sidebar";
|
|
3754
|
-
var SidebarTrigger =
|
|
3787
|
+
var SidebarTrigger = React41.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3755
3788
|
const { toggleSidebar } = useSidebar();
|
|
3756
3789
|
return /* @__PURE__ */ jsxs18(
|
|
3757
3790
|
Button,
|
|
@@ -3767,16 +3800,16 @@ var SidebarTrigger = React40.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
3767
3800
|
},
|
|
3768
3801
|
...props,
|
|
3769
3802
|
children: [
|
|
3770
|
-
/* @__PURE__ */
|
|
3771
|
-
/* @__PURE__ */
|
|
3803
|
+
/* @__PURE__ */ jsx42(PanelLeft, {}),
|
|
3804
|
+
/* @__PURE__ */ jsx42("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3772
3805
|
]
|
|
3773
3806
|
}
|
|
3774
3807
|
);
|
|
3775
3808
|
});
|
|
3776
3809
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3777
|
-
var SidebarRail =
|
|
3810
|
+
var SidebarRail = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3778
3811
|
const { toggleSidebar } = useSidebar();
|
|
3779
|
-
return /* @__PURE__ */
|
|
3812
|
+
return /* @__PURE__ */ jsx42(
|
|
3780
3813
|
"button",
|
|
3781
3814
|
{
|
|
3782
3815
|
ref,
|
|
@@ -3799,8 +3832,8 @@ var SidebarRail = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3799
3832
|
);
|
|
3800
3833
|
});
|
|
3801
3834
|
SidebarRail.displayName = "SidebarRail";
|
|
3802
|
-
var SidebarInset =
|
|
3803
|
-
return /* @__PURE__ */
|
|
3835
|
+
var SidebarInset = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3836
|
+
return /* @__PURE__ */ jsx42(
|
|
3804
3837
|
"main",
|
|
3805
3838
|
{
|
|
3806
3839
|
ref,
|
|
@@ -3814,8 +3847,8 @@ var SidebarInset = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3814
3847
|
);
|
|
3815
3848
|
});
|
|
3816
3849
|
SidebarInset.displayName = "SidebarInset";
|
|
3817
|
-
var SidebarInput =
|
|
3818
|
-
return /* @__PURE__ */
|
|
3850
|
+
var SidebarInput = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3851
|
+
return /* @__PURE__ */ jsx42(
|
|
3819
3852
|
Input,
|
|
3820
3853
|
{
|
|
3821
3854
|
ref,
|
|
@@ -3829,8 +3862,8 @@ var SidebarInput = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3829
3862
|
);
|
|
3830
3863
|
});
|
|
3831
3864
|
SidebarInput.displayName = "SidebarInput";
|
|
3832
|
-
var SidebarHeader =
|
|
3833
|
-
return /* @__PURE__ */
|
|
3865
|
+
var SidebarHeader = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3866
|
+
return /* @__PURE__ */ jsx42(
|
|
3834
3867
|
"div",
|
|
3835
3868
|
{
|
|
3836
3869
|
ref,
|
|
@@ -3841,8 +3874,8 @@ var SidebarHeader = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3841
3874
|
);
|
|
3842
3875
|
});
|
|
3843
3876
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3844
|
-
var SidebarFooter =
|
|
3845
|
-
return /* @__PURE__ */
|
|
3877
|
+
var SidebarFooter = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3878
|
+
return /* @__PURE__ */ jsx42(
|
|
3846
3879
|
"div",
|
|
3847
3880
|
{
|
|
3848
3881
|
ref,
|
|
@@ -3853,8 +3886,8 @@ var SidebarFooter = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3853
3886
|
);
|
|
3854
3887
|
});
|
|
3855
3888
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3856
|
-
var SidebarSeparator =
|
|
3857
|
-
return /* @__PURE__ */
|
|
3889
|
+
var SidebarSeparator = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3890
|
+
return /* @__PURE__ */ jsx42(
|
|
3858
3891
|
Separator6,
|
|
3859
3892
|
{
|
|
3860
3893
|
ref,
|
|
@@ -3865,8 +3898,8 @@ var SidebarSeparator = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3865
3898
|
);
|
|
3866
3899
|
});
|
|
3867
3900
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3868
|
-
var SidebarContent =
|
|
3869
|
-
return /* @__PURE__ */
|
|
3901
|
+
var SidebarContent = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3902
|
+
return /* @__PURE__ */ jsx42(
|
|
3870
3903
|
"div",
|
|
3871
3904
|
{
|
|
3872
3905
|
ref,
|
|
@@ -3880,8 +3913,8 @@ var SidebarContent = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3880
3913
|
);
|
|
3881
3914
|
});
|
|
3882
3915
|
SidebarContent.displayName = "SidebarContent";
|
|
3883
|
-
var SidebarGroup =
|
|
3884
|
-
return /* @__PURE__ */
|
|
3916
|
+
var SidebarGroup = React41.forwardRef(({ className, ...props }, ref) => {
|
|
3917
|
+
return /* @__PURE__ */ jsx42(
|
|
3885
3918
|
"div",
|
|
3886
3919
|
{
|
|
3887
3920
|
ref,
|
|
@@ -3892,9 +3925,9 @@ var SidebarGroup = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3892
3925
|
);
|
|
3893
3926
|
});
|
|
3894
3927
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3895
|
-
var SidebarGroupLabel =
|
|
3928
|
+
var SidebarGroupLabel = React41.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3896
3929
|
const Comp = asChild ? Slot4 : "div";
|
|
3897
|
-
return /* @__PURE__ */
|
|
3930
|
+
return /* @__PURE__ */ jsx42(
|
|
3898
3931
|
Comp,
|
|
3899
3932
|
{
|
|
3900
3933
|
ref,
|
|
@@ -3909,9 +3942,9 @@ var SidebarGroupLabel = React40.forwardRef(({ className, asChild = false, ...pro
|
|
|
3909
3942
|
);
|
|
3910
3943
|
});
|
|
3911
3944
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3912
|
-
var SidebarGroupAction =
|
|
3945
|
+
var SidebarGroupAction = React41.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3913
3946
|
const Comp = asChild ? Slot4 : "button";
|
|
3914
|
-
return /* @__PURE__ */
|
|
3947
|
+
return /* @__PURE__ */ jsx42(
|
|
3915
3948
|
Comp,
|
|
3916
3949
|
{
|
|
3917
3950
|
ref,
|
|
@@ -3928,7 +3961,7 @@ var SidebarGroupAction = React40.forwardRef(({ className, asChild = false, ...pr
|
|
|
3928
3961
|
);
|
|
3929
3962
|
});
|
|
3930
3963
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3931
|
-
var SidebarGroupContent =
|
|
3964
|
+
var SidebarGroupContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
3932
3965
|
"div",
|
|
3933
3966
|
{
|
|
3934
3967
|
ref,
|
|
@@ -3938,7 +3971,7 @@ var SidebarGroupContent = React40.forwardRef(({ className, ...props }, ref) => /
|
|
|
3938
3971
|
}
|
|
3939
3972
|
));
|
|
3940
3973
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3941
|
-
var SidebarMenu =
|
|
3974
|
+
var SidebarMenu = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
3942
3975
|
"ul",
|
|
3943
3976
|
{
|
|
3944
3977
|
ref,
|
|
@@ -3948,7 +3981,7 @@ var SidebarMenu = React40.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3948
3981
|
}
|
|
3949
3982
|
));
|
|
3950
3983
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3951
|
-
var SidebarMenuItem =
|
|
3984
|
+
var SidebarMenuItem = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
3952
3985
|
"li",
|
|
3953
3986
|
{
|
|
3954
3987
|
ref,
|
|
@@ -3978,7 +4011,7 @@ var sidebarMenuButtonVariants = cva12(
|
|
|
3978
4011
|
}
|
|
3979
4012
|
}
|
|
3980
4013
|
);
|
|
3981
|
-
var SidebarMenuButton =
|
|
4014
|
+
var SidebarMenuButton = React41.forwardRef(
|
|
3982
4015
|
({
|
|
3983
4016
|
asChild = false,
|
|
3984
4017
|
isActive = false,
|
|
@@ -3990,7 +4023,7 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
3990
4023
|
}, ref) => {
|
|
3991
4024
|
const Comp = asChild ? Slot4 : "button";
|
|
3992
4025
|
const { isMobile, state } = useSidebar();
|
|
3993
|
-
const button = /* @__PURE__ */
|
|
4026
|
+
const button = /* @__PURE__ */ jsx42(
|
|
3994
4027
|
Comp,
|
|
3995
4028
|
{
|
|
3996
4029
|
ref,
|
|
@@ -4010,8 +4043,8 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
4010
4043
|
};
|
|
4011
4044
|
}
|
|
4012
4045
|
return /* @__PURE__ */ jsxs18(Tooltip2, { children: [
|
|
4013
|
-
/* @__PURE__ */
|
|
4014
|
-
/* @__PURE__ */
|
|
4046
|
+
/* @__PURE__ */ jsx42(TooltipTrigger, { asChild: true, children: button }),
|
|
4047
|
+
/* @__PURE__ */ jsx42(
|
|
4015
4048
|
TooltipContent,
|
|
4016
4049
|
{
|
|
4017
4050
|
side: "right",
|
|
@@ -4024,9 +4057,9 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
4024
4057
|
}
|
|
4025
4058
|
);
|
|
4026
4059
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4027
|
-
var SidebarMenuAction =
|
|
4060
|
+
var SidebarMenuAction = React41.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
4028
4061
|
const Comp = asChild ? Slot4 : "button";
|
|
4029
|
-
return /* @__PURE__ */
|
|
4062
|
+
return /* @__PURE__ */ jsx42(
|
|
4030
4063
|
Comp,
|
|
4031
4064
|
{
|
|
4032
4065
|
ref,
|
|
@@ -4047,7 +4080,7 @@ var SidebarMenuAction = React40.forwardRef(({ className, asChild = false, showOn
|
|
|
4047
4080
|
);
|
|
4048
4081
|
});
|
|
4049
4082
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
4050
|
-
var SidebarMenuBadge =
|
|
4083
|
+
var SidebarMenuBadge = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
4051
4084
|
"div",
|
|
4052
4085
|
{
|
|
4053
4086
|
ref,
|
|
@@ -4065,8 +4098,8 @@ var SidebarMenuBadge = React40.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4065
4098
|
}
|
|
4066
4099
|
));
|
|
4067
4100
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
4068
|
-
var SidebarMenuSkeleton =
|
|
4069
|
-
const width =
|
|
4101
|
+
var SidebarMenuSkeleton = React41.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
4102
|
+
const width = React41.useMemo(() => {
|
|
4070
4103
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
4071
4104
|
}, []);
|
|
4072
4105
|
return /* @__PURE__ */ jsxs18(
|
|
@@ -4077,14 +4110,14 @@ var SidebarMenuSkeleton = React40.forwardRef(({ className, showIcon = false, ...
|
|
|
4077
4110
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
4078
4111
|
...props,
|
|
4079
4112
|
children: [
|
|
4080
|
-
showIcon && /* @__PURE__ */
|
|
4113
|
+
showIcon && /* @__PURE__ */ jsx42(
|
|
4081
4114
|
Skeleton,
|
|
4082
4115
|
{
|
|
4083
4116
|
className: "size-4 rounded-md",
|
|
4084
4117
|
"data-sidebar": "menu-skeleton-icon"
|
|
4085
4118
|
}
|
|
4086
4119
|
),
|
|
4087
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ jsx42(
|
|
4088
4121
|
Skeleton,
|
|
4089
4122
|
{
|
|
4090
4123
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -4099,7 +4132,7 @@ var SidebarMenuSkeleton = React40.forwardRef(({ className, showIcon = false, ...
|
|
|
4099
4132
|
);
|
|
4100
4133
|
});
|
|
4101
4134
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
4102
|
-
var SidebarMenuSub =
|
|
4135
|
+
var SidebarMenuSub = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
4103
4136
|
"ul",
|
|
4104
4137
|
{
|
|
4105
4138
|
ref,
|
|
@@ -4113,11 +4146,11 @@ var SidebarMenuSub = React40.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4113
4146
|
}
|
|
4114
4147
|
));
|
|
4115
4148
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
4116
|
-
var SidebarMenuSubItem =
|
|
4149
|
+
var SidebarMenuSubItem = React41.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx42("li", { ref, ...props }));
|
|
4117
4150
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
4118
|
-
var SidebarMenuSubButton =
|
|
4151
|
+
var SidebarMenuSubButton = React41.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
4119
4152
|
const Comp = asChild ? Slot4 : "a";
|
|
4120
|
-
return /* @__PURE__ */
|
|
4153
|
+
return /* @__PURE__ */ jsx42(
|
|
4121
4154
|
Comp,
|
|
4122
4155
|
{
|
|
4123
4156
|
ref,
|
|
@@ -4139,10 +4172,10 @@ var SidebarMenuSubButton = React40.forwardRef(({ asChild = false, size = "md", i
|
|
|
4139
4172
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
4140
4173
|
|
|
4141
4174
|
// src/components/ui/slider.tsx
|
|
4142
|
-
import * as
|
|
4175
|
+
import * as React42 from "react";
|
|
4143
4176
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4144
|
-
import { jsx as
|
|
4145
|
-
var Slider =
|
|
4177
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4178
|
+
var Slider = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs19(
|
|
4146
4179
|
SliderPrimitive.Root,
|
|
4147
4180
|
{
|
|
4148
4181
|
ref,
|
|
@@ -4152,8 +4185,8 @@ var Slider = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4152
4185
|
),
|
|
4153
4186
|
...props,
|
|
4154
4187
|
children: [
|
|
4155
|
-
/* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ jsx43(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx43(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
4189
|
+
/* @__PURE__ */ jsx43(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
4157
4190
|
]
|
|
4158
4191
|
}
|
|
4159
4192
|
));
|
|
@@ -4162,10 +4195,10 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
4162
4195
|
// src/components/ui/sonner.tsx
|
|
4163
4196
|
import { useTheme } from "next-themes";
|
|
4164
4197
|
import { Toaster as Sonner } from "sonner";
|
|
4165
|
-
import { jsx as
|
|
4198
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4166
4199
|
var Toaster = ({ ...props }) => {
|
|
4167
4200
|
const { theme = "system" } = useTheme();
|
|
4168
|
-
return /* @__PURE__ */
|
|
4201
|
+
return /* @__PURE__ */ jsx44(
|
|
4169
4202
|
Sonner,
|
|
4170
4203
|
{
|
|
4171
4204
|
theme,
|
|
@@ -4184,10 +4217,10 @@ var Toaster = ({ ...props }) => {
|
|
|
4184
4217
|
};
|
|
4185
4218
|
|
|
4186
4219
|
// src/components/ui/switch.tsx
|
|
4187
|
-
import * as
|
|
4220
|
+
import * as React43 from "react";
|
|
4188
4221
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
4189
|
-
import { jsx as
|
|
4190
|
-
var Switch =
|
|
4222
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4223
|
+
var Switch = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
|
|
4191
4224
|
SwitchPrimitives.Root,
|
|
4192
4225
|
{
|
|
4193
4226
|
className: cn(
|
|
@@ -4196,7 +4229,7 @@ var Switch = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4196
4229
|
),
|
|
4197
4230
|
...props,
|
|
4198
4231
|
ref,
|
|
4199
|
-
children: /* @__PURE__ */
|
|
4232
|
+
children: /* @__PURE__ */ jsx45(
|
|
4200
4233
|
SwitchPrimitives.Thumb,
|
|
4201
4234
|
{
|
|
4202
4235
|
className: cn(
|
|
@@ -4209,9 +4242,9 @@ var Switch = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4209
4242
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
4210
4243
|
|
|
4211
4244
|
// src/components/ui/table.tsx
|
|
4212
|
-
import * as
|
|
4213
|
-
import { jsx as
|
|
4214
|
-
var Table =
|
|
4245
|
+
import * as React44 from "react";
|
|
4246
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4247
|
+
var Table = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx46(
|
|
4215
4248
|
"table",
|
|
4216
4249
|
{
|
|
4217
4250
|
ref,
|
|
@@ -4220,9 +4253,9 @@ var Table = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
4220
4253
|
}
|
|
4221
4254
|
) }));
|
|
4222
4255
|
Table.displayName = "Table";
|
|
4223
|
-
var TableHeader =
|
|
4256
|
+
var TableHeader = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46("thead", { ref, className: cn("[&_tr]:border-b [&_tr]:border-border", className), ...props }));
|
|
4224
4257
|
TableHeader.displayName = "TableHeader";
|
|
4225
|
-
var TableBody =
|
|
4258
|
+
var TableBody = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4226
4259
|
"tbody",
|
|
4227
4260
|
{
|
|
4228
4261
|
ref,
|
|
@@ -4231,7 +4264,7 @@ var TableBody = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4231
4264
|
}
|
|
4232
4265
|
));
|
|
4233
4266
|
TableBody.displayName = "TableBody";
|
|
4234
|
-
var TableFooter =
|
|
4267
|
+
var TableFooter = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4235
4268
|
"tfoot",
|
|
4236
4269
|
{
|
|
4237
4270
|
ref,
|
|
@@ -4243,7 +4276,7 @@ var TableFooter = React43.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4243
4276
|
}
|
|
4244
4277
|
));
|
|
4245
4278
|
TableFooter.displayName = "TableFooter";
|
|
4246
|
-
var TableRow =
|
|
4279
|
+
var TableRow = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4247
4280
|
"tr",
|
|
4248
4281
|
{
|
|
4249
4282
|
ref,
|
|
@@ -4255,7 +4288,7 @@ var TableRow = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4255
4288
|
}
|
|
4256
4289
|
));
|
|
4257
4290
|
TableRow.displayName = "TableRow";
|
|
4258
|
-
var TableHead =
|
|
4291
|
+
var TableHead = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4259
4292
|
"th",
|
|
4260
4293
|
{
|
|
4261
4294
|
ref,
|
|
@@ -4267,7 +4300,7 @@ var TableHead = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4267
4300
|
}
|
|
4268
4301
|
));
|
|
4269
4302
|
TableHead.displayName = "TableHead";
|
|
4270
|
-
var TableCell =
|
|
4303
|
+
var TableCell = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4271
4304
|
"td",
|
|
4272
4305
|
{
|
|
4273
4306
|
ref,
|
|
@@ -4279,7 +4312,7 @@ var TableCell = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4279
4312
|
}
|
|
4280
4313
|
));
|
|
4281
4314
|
TableCell.displayName = "TableCell";
|
|
4282
|
-
var TableCaption =
|
|
4315
|
+
var TableCaption = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4283
4316
|
"caption",
|
|
4284
4317
|
{
|
|
4285
4318
|
ref,
|
|
@@ -4290,11 +4323,11 @@ var TableCaption = React43.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4290
4323
|
TableCaption.displayName = "TableCaption";
|
|
4291
4324
|
|
|
4292
4325
|
// src/components/ui/tabs.tsx
|
|
4293
|
-
import * as
|
|
4326
|
+
import * as React45 from "react";
|
|
4294
4327
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4295
|
-
import { jsx as
|
|
4328
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4296
4329
|
var Tabs = TabsPrimitive.Root;
|
|
4297
|
-
var TabsList =
|
|
4330
|
+
var TabsList = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4298
4331
|
TabsPrimitive.List,
|
|
4299
4332
|
{
|
|
4300
4333
|
ref,
|
|
@@ -4306,7 +4339,7 @@ var TabsList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4306
4339
|
}
|
|
4307
4340
|
));
|
|
4308
4341
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4309
|
-
var TabsTrigger =
|
|
4342
|
+
var TabsTrigger = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4310
4343
|
TabsPrimitive.Trigger,
|
|
4311
4344
|
{
|
|
4312
4345
|
ref,
|
|
@@ -4318,7 +4351,7 @@ var TabsTrigger = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4318
4351
|
}
|
|
4319
4352
|
));
|
|
4320
4353
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4321
|
-
var TabsContent =
|
|
4354
|
+
var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4322
4355
|
TabsPrimitive.Content,
|
|
4323
4356
|
{
|
|
4324
4357
|
ref,
|
|
@@ -4332,10 +4365,10 @@ var TabsContent = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4332
4365
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4333
4366
|
|
|
4334
4367
|
// src/components/ui/textarea.tsx
|
|
4335
|
-
import * as
|
|
4336
|
-
import { jsx as
|
|
4337
|
-
var Textarea =
|
|
4338
|
-
return /* @__PURE__ */
|
|
4368
|
+
import * as React46 from "react";
|
|
4369
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
4370
|
+
var Textarea = React46.forwardRef(({ className, ...props }, ref) => {
|
|
4371
|
+
return /* @__PURE__ */ jsx48(
|
|
4339
4372
|
"textarea",
|
|
4340
4373
|
{
|
|
4341
4374
|
className: cn(
|
|
@@ -4350,13 +4383,13 @@ var Textarea = React45.forwardRef(({ className, ...props }, ref) => {
|
|
|
4350
4383
|
Textarea.displayName = "Textarea";
|
|
4351
4384
|
|
|
4352
4385
|
// src/components/ui/toast.tsx
|
|
4353
|
-
import * as
|
|
4386
|
+
import * as React47 from "react";
|
|
4354
4387
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4355
4388
|
import { cva as cva13 } from "class-variance-authority";
|
|
4356
4389
|
import { X as X3 } from "lucide-react";
|
|
4357
|
-
import { jsx as
|
|
4390
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4358
4391
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4359
|
-
var ToastViewport =
|
|
4392
|
+
var ToastViewport = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
4360
4393
|
ToastPrimitives.Viewport,
|
|
4361
4394
|
{
|
|
4362
4395
|
ref,
|
|
@@ -4382,8 +4415,8 @@ var toastVariants = cva13(
|
|
|
4382
4415
|
}
|
|
4383
4416
|
}
|
|
4384
4417
|
);
|
|
4385
|
-
var Toast =
|
|
4386
|
-
return /* @__PURE__ */
|
|
4418
|
+
var Toast = React47.forwardRef(({ className, variant, ...props }, ref) => {
|
|
4419
|
+
return /* @__PURE__ */ jsx49(
|
|
4387
4420
|
ToastPrimitives.Root,
|
|
4388
4421
|
{
|
|
4389
4422
|
ref,
|
|
@@ -4393,7 +4426,7 @@ var Toast = React46.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
4393
4426
|
);
|
|
4394
4427
|
});
|
|
4395
4428
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
4396
|
-
var ToastAction =
|
|
4429
|
+
var ToastAction = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
4397
4430
|
ToastPrimitives.Action,
|
|
4398
4431
|
{
|
|
4399
4432
|
ref,
|
|
@@ -4405,7 +4438,7 @@ var ToastAction = React46.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4405
4438
|
}
|
|
4406
4439
|
));
|
|
4407
4440
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4408
|
-
var ToastClose =
|
|
4441
|
+
var ToastClose = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
4409
4442
|
ToastPrimitives.Close,
|
|
4410
4443
|
{
|
|
4411
4444
|
ref,
|
|
@@ -4415,11 +4448,11 @@ var ToastClose = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4415
4448
|
),
|
|
4416
4449
|
"toast-close": "",
|
|
4417
4450
|
...props,
|
|
4418
|
-
children: /* @__PURE__ */
|
|
4451
|
+
children: /* @__PURE__ */ jsx49(X3, { className: "h-4 w-4" })
|
|
4419
4452
|
}
|
|
4420
4453
|
));
|
|
4421
4454
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4422
|
-
var ToastTitle =
|
|
4455
|
+
var ToastTitle = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
4423
4456
|
ToastPrimitives.Title,
|
|
4424
4457
|
{
|
|
4425
4458
|
ref,
|
|
@@ -4428,7 +4461,7 @@ var ToastTitle = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4428
4461
|
}
|
|
4429
4462
|
));
|
|
4430
4463
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4431
|
-
var ToastDescription =
|
|
4464
|
+
var ToastDescription = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
4432
4465
|
ToastPrimitives.Description,
|
|
4433
4466
|
{
|
|
4434
4467
|
ref,
|
|
@@ -4439,29 +4472,29 @@ var ToastDescription = React46.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4439
4472
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
4440
4473
|
|
|
4441
4474
|
// src/components/ui/toaster.tsx
|
|
4442
|
-
import { jsx as
|
|
4475
|
+
import { jsx as jsx50, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4443
4476
|
function Toaster2() {
|
|
4444
4477
|
const { toasts } = useToast();
|
|
4445
4478
|
return /* @__PURE__ */ jsxs20(ToastProvider, { children: [
|
|
4446
4479
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
4447
4480
|
return /* @__PURE__ */ jsxs20(Toast, { ...props, children: [
|
|
4448
4481
|
/* @__PURE__ */ jsxs20("div", { className: "grid gap-1", children: [
|
|
4449
|
-
title && /* @__PURE__ */
|
|
4450
|
-
description && /* @__PURE__ */
|
|
4482
|
+
title && /* @__PURE__ */ jsx50(ToastTitle, { children: title }),
|
|
4483
|
+
description && /* @__PURE__ */ jsx50(ToastDescription, { children: description })
|
|
4451
4484
|
] }),
|
|
4452
4485
|
action,
|
|
4453
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ jsx50(ToastClose, {})
|
|
4454
4487
|
] }, id);
|
|
4455
4488
|
}),
|
|
4456
|
-
/* @__PURE__ */
|
|
4489
|
+
/* @__PURE__ */ jsx50(ToastViewport, {})
|
|
4457
4490
|
] });
|
|
4458
4491
|
}
|
|
4459
4492
|
|
|
4460
4493
|
// src/components/ui/toggle.tsx
|
|
4461
|
-
import * as
|
|
4494
|
+
import * as React48 from "react";
|
|
4462
4495
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4463
4496
|
import { cva as cva14 } from "class-variance-authority";
|
|
4464
|
-
import { jsx as
|
|
4497
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4465
4498
|
var toggleVariants = cva14(
|
|
4466
4499
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
4467
4500
|
{
|
|
@@ -4482,7 +4515,7 @@ var toggleVariants = cva14(
|
|
|
4482
4515
|
}
|
|
4483
4516
|
}
|
|
4484
4517
|
);
|
|
4485
|
-
var Toggle =
|
|
4518
|
+
var Toggle = React48.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx51(
|
|
4486
4519
|
TogglePrimitive.Root,
|
|
4487
4520
|
{
|
|
4488
4521
|
ref,
|
|
@@ -4493,26 +4526,26 @@ var Toggle = React47.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
4493
4526
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
4494
4527
|
|
|
4495
4528
|
// src/components/ui/toggle-group.tsx
|
|
4496
|
-
import * as
|
|
4529
|
+
import * as React49 from "react";
|
|
4497
4530
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4498
|
-
import { jsx as
|
|
4499
|
-
var ToggleGroupContext =
|
|
4531
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4532
|
+
var ToggleGroupContext = React49.createContext({
|
|
4500
4533
|
size: "default",
|
|
4501
4534
|
variant: "default"
|
|
4502
4535
|
});
|
|
4503
|
-
var ToggleGroup =
|
|
4536
|
+
var ToggleGroup = React49.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4504
4537
|
ToggleGroupPrimitive.Root,
|
|
4505
4538
|
{
|
|
4506
4539
|
ref,
|
|
4507
4540
|
className: cn("flex items-center justify-center gap-1", className),
|
|
4508
4541
|
...props,
|
|
4509
|
-
children: /* @__PURE__ */
|
|
4542
|
+
children: /* @__PURE__ */ jsx52(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4510
4543
|
}
|
|
4511
4544
|
));
|
|
4512
4545
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
4513
|
-
var ToggleGroupItem =
|
|
4514
|
-
const context =
|
|
4515
|
-
return /* @__PURE__ */
|
|
4546
|
+
var ToggleGroupItem = React49.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4547
|
+
const context = React49.useContext(ToggleGroupContext);
|
|
4548
|
+
return /* @__PURE__ */ jsx52(
|
|
4516
4549
|
ToggleGroupPrimitive.Item,
|
|
4517
4550
|
{
|
|
4518
4551
|
ref,
|
|
@@ -4553,6 +4586,7 @@ export {
|
|
|
4553
4586
|
AvatarFallback,
|
|
4554
4587
|
AvatarImage,
|
|
4555
4588
|
Badge,
|
|
4589
|
+
BaseStyles,
|
|
4556
4590
|
Box,
|
|
4557
4591
|
Breadcrumb,
|
|
4558
4592
|
BreadcrumbEllipsis,
|