@framingui/ui 0.6.5 → 0.6.7
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 +30 -31
- package/dist/chunk-VV6WUMYC.mjs +170 -0
- package/dist/index.d.mts +26 -9
- package/dist/index.mjs +318 -261
- package/dist/src/components/card.d.ts.map +1 -1
- package/dist/src/components/card.js.map +1 -1
- package/dist/src/components/sheet.d.ts +1 -1
- package/dist/src/components/sheet.d.ts.map +1 -1
- package/dist/src/components/sheet.js.map +1 -1
- package/dist/src/components/sidebar.d.ts.map +1 -1
- package/dist/src/components/sidebar.js.map +1 -1
- package/dist/src/components/skeleton.d.ts.map +1 -1
- package/dist/src/components/skeleton.js.map +1 -1
- package/dist/src/components/table.d.ts.map +1 -1
- package/dist/src/components/table.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/templates/auth/login.d.ts.map +1 -1
- package/dist/src/templates/auth/login.js.map +1 -1
- package/dist/src/templates/auth/signup.d.ts.map +1 -1
- package/dist/src/templates/auth/signup.js.map +1 -1
- package/dist/src/templates/auth/verification.d.ts.map +1 -1
- package/dist/src/templates/auth/verification.js.map +1 -1
- package/dist/src/templates/core/landing.d.ts.map +1 -1
- package/dist/src/templates/core/landing.js +1 -1
- package/dist/src/templates/core/landing.js.map +1 -1
- package/dist/src/templates/core/profile.d.ts.map +1 -1
- package/dist/src/templates/core/profile.js +1 -1
- package/dist/src/templates/core/profile.js.map +1 -1
- package/dist/src/templates/feedback/loading.d.ts.map +1 -1
- package/dist/src/templates/feedback/loading.js +1 -1
- package/dist/src/templates/feedback/loading.js.map +1 -1
- package/dist/src/templates/feedback/success.d.ts.map +1 -1
- package/dist/src/templates/feedback/success.js.map +1 -1
- package/dist/src/theme-loader.d.ts +3 -0
- package/dist/src/theme-loader.d.ts.map +1 -0
- package/dist/src/theme-loader.js +2 -0
- package/dist/src/theme-loader.js.map +1 -0
- package/dist/templates/index.mjs +1 -1
- package/dist/theme-loader.d.mts +71 -0
- package/dist/theme-loader.mjs +150 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -14
- package/LICENSE +0 -21
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Separator,
|
|
13
13
|
buttonVariants,
|
|
14
14
|
cn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VV6WUMYC.mjs";
|
|
16
16
|
|
|
17
17
|
// src/lib/tokens.ts
|
|
18
18
|
var tokenVars = {
|
|
@@ -81,6 +81,77 @@ function extractTokenName(token) {
|
|
|
81
81
|
return match ? match[1] : "";
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
// src/primitives/heading.tsx
|
|
85
|
+
import * as React from "react";
|
|
86
|
+
import { cva } from "class-variance-authority";
|
|
87
|
+
import { jsx } from "react/jsx-runtime";
|
|
88
|
+
var headingVariants = cva("font-semibold tracking-tight", {
|
|
89
|
+
variants: {
|
|
90
|
+
level: {
|
|
91
|
+
1: "text-4xl lg:text-5xl",
|
|
92
|
+
2: "text-3xl lg:text-4xl",
|
|
93
|
+
3: "text-2xl lg:text-3xl",
|
|
94
|
+
4: "text-xl lg:text-2xl",
|
|
95
|
+
5: "text-lg lg:text-xl",
|
|
96
|
+
6: "text-base lg:text-lg"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
level: 1
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
var Heading = React.forwardRef(
|
|
104
|
+
({ className, level = 1, ...props }, ref) => {
|
|
105
|
+
const Comp = `h${level}`;
|
|
106
|
+
return /* @__PURE__ */ jsx(
|
|
107
|
+
Comp,
|
|
108
|
+
{
|
|
109
|
+
className: cn(headingVariants({ level, className }), "text-[var(--heading-foreground)]"),
|
|
110
|
+
ref,
|
|
111
|
+
...props
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
Heading.displayName = "Heading";
|
|
117
|
+
|
|
118
|
+
// src/primitives/text.tsx
|
|
119
|
+
import * as React2 from "react";
|
|
120
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
121
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
122
|
+
var textVariants = cva2("", {
|
|
123
|
+
variants: {
|
|
124
|
+
variant: {
|
|
125
|
+
body: "text-[var(--text-body-color)]",
|
|
126
|
+
caption: "text-[var(--text-caption-color)]",
|
|
127
|
+
label: "text-[var(--text-label-color)]",
|
|
128
|
+
code: "font-mono text-[var(--text-code-color)]"
|
|
129
|
+
},
|
|
130
|
+
size: {
|
|
131
|
+
sm: "text-sm",
|
|
132
|
+
default: "text-base",
|
|
133
|
+
lg: "text-lg"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
defaultVariants: {
|
|
137
|
+
variant: "body",
|
|
138
|
+
size: "default"
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var Text = React2.forwardRef(
|
|
142
|
+
({ className, variant, size, as: Comp = "span", ...props }, ref) => {
|
|
143
|
+
return /* @__PURE__ */ jsx2(
|
|
144
|
+
Comp,
|
|
145
|
+
{
|
|
146
|
+
className: cn(textVariants({ variant, size, className })),
|
|
147
|
+
ref,
|
|
148
|
+
...props
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
Text.displayName = "Text";
|
|
154
|
+
|
|
84
155
|
// src/lib/theme-loader.ts
|
|
85
156
|
function oklchToCSS(color) {
|
|
86
157
|
return `oklch(${color.l} ${color.c} ${color.h})`;
|
|
@@ -316,9 +387,9 @@ function getMotionTransition(transition, motionSafe) {
|
|
|
316
387
|
}
|
|
317
388
|
|
|
318
389
|
// src/components/badge.tsx
|
|
319
|
-
import { cva } from "class-variance-authority";
|
|
320
|
-
import { jsx } from "react/jsx-runtime";
|
|
321
|
-
var badgeVariants =
|
|
390
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
391
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
392
|
+
var badgeVariants = cva3(
|
|
322
393
|
"inline-flex items-center rounded-[var(--radius-full)] border px-[var(--spacing-3)] py-[var(--spacing-1)] text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--border-ring)] focus:ring-offset-2",
|
|
323
394
|
{
|
|
324
395
|
variants: {
|
|
@@ -335,14 +406,14 @@ var badgeVariants = cva(
|
|
|
335
406
|
}
|
|
336
407
|
);
|
|
337
408
|
function Badge({ className, variant, ...props }) {
|
|
338
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsx3("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
339
410
|
}
|
|
340
411
|
|
|
341
412
|
// src/components/avatar.tsx
|
|
342
|
-
import * as
|
|
413
|
+
import * as React3 from "react";
|
|
343
414
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
344
|
-
import { jsx as
|
|
345
|
-
var Avatar =
|
|
415
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
416
|
+
var Avatar = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
346
417
|
AvatarPrimitive.Root,
|
|
347
418
|
{
|
|
348
419
|
ref,
|
|
@@ -355,7 +426,7 @@ var Avatar = React.forwardRef(({ className, children, ...props }, ref) => /* @__
|
|
|
355
426
|
}
|
|
356
427
|
));
|
|
357
428
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
358
|
-
var AvatarImage =
|
|
429
|
+
var AvatarImage = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
359
430
|
AvatarPrimitive.Image,
|
|
360
431
|
{
|
|
361
432
|
ref,
|
|
@@ -364,7 +435,7 @@ var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
364
435
|
}
|
|
365
436
|
));
|
|
366
437
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
367
|
-
var AvatarFallback =
|
|
438
|
+
var AvatarFallback = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
368
439
|
AvatarPrimitive.Fallback,
|
|
369
440
|
{
|
|
370
441
|
ref,
|
|
@@ -378,11 +449,11 @@ var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
378
449
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
379
450
|
|
|
380
451
|
// src/components/checkbox.tsx
|
|
381
|
-
import * as
|
|
452
|
+
import * as React4 from "react";
|
|
382
453
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
383
454
|
import { Check } from "lucide-react";
|
|
384
|
-
import { jsx as
|
|
385
|
-
var Checkbox =
|
|
455
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
456
|
+
var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
386
457
|
CheckboxPrimitive.Root,
|
|
387
458
|
{
|
|
388
459
|
ref,
|
|
@@ -391,18 +462,18 @@ var Checkbox = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
391
462
|
className
|
|
392
463
|
),
|
|
393
464
|
...props,
|
|
394
|
-
children: /* @__PURE__ */
|
|
465
|
+
children: /* @__PURE__ */ jsx5(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx5(Check, { className: "h-4 w-4" }) })
|
|
395
466
|
}
|
|
396
467
|
));
|
|
397
468
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
398
469
|
|
|
399
470
|
// src/components/radio-group.tsx
|
|
400
|
-
import * as
|
|
471
|
+
import * as React5 from "react";
|
|
401
472
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
402
473
|
import { Circle } from "lucide-react";
|
|
403
|
-
import { jsx as
|
|
404
|
-
var RadioGroup =
|
|
405
|
-
return /* @__PURE__ */
|
|
474
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
475
|
+
var RadioGroup = React5.forwardRef(({ className, ...props }, ref) => {
|
|
476
|
+
return /* @__PURE__ */ jsx6(
|
|
406
477
|
RadioGroupPrimitive.Root,
|
|
407
478
|
{
|
|
408
479
|
className: cn("grid gap-[var(--spacing-2)]", className),
|
|
@@ -412,8 +483,8 @@ var RadioGroup = React3.forwardRef(({ className, ...props }, ref) => {
|
|
|
412
483
|
);
|
|
413
484
|
});
|
|
414
485
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
415
|
-
var RadioGroupItem =
|
|
416
|
-
return /* @__PURE__ */
|
|
486
|
+
var RadioGroupItem = React5.forwardRef(({ className, ...props }, ref) => {
|
|
487
|
+
return /* @__PURE__ */ jsx6(
|
|
417
488
|
RadioGroupPrimitive.Item,
|
|
418
489
|
{
|
|
419
490
|
ref,
|
|
@@ -422,17 +493,17 @@ var RadioGroupItem = React3.forwardRef(({ className, ...props }, ref) => {
|
|
|
422
493
|
className
|
|
423
494
|
),
|
|
424
495
|
...props,
|
|
425
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ jsx6(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx6(Circle, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
426
497
|
}
|
|
427
498
|
);
|
|
428
499
|
});
|
|
429
500
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
430
501
|
|
|
431
502
|
// src/components/switch.tsx
|
|
432
|
-
import * as
|
|
503
|
+
import * as React6 from "react";
|
|
433
504
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
434
|
-
import { jsx as
|
|
435
|
-
var Switch =
|
|
505
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
506
|
+
var Switch = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
436
507
|
SwitchPrimitives.Root,
|
|
437
508
|
{
|
|
438
509
|
className: cn(
|
|
@@ -441,7 +512,7 @@ var Switch = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
441
512
|
),
|
|
442
513
|
...props,
|
|
443
514
|
ref,
|
|
444
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ jsx7(
|
|
445
516
|
SwitchPrimitives.Thumb,
|
|
446
517
|
{
|
|
447
518
|
className: cn(
|
|
@@ -454,11 +525,11 @@ var Switch = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
454
525
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
455
526
|
|
|
456
527
|
// src/components/textarea.tsx
|
|
457
|
-
import * as
|
|
458
|
-
import { jsx as
|
|
459
|
-
var Textarea =
|
|
528
|
+
import * as React7 from "react";
|
|
529
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
530
|
+
var Textarea = React7.forwardRef(
|
|
460
531
|
({ className, ...props }, ref) => {
|
|
461
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ jsx8(
|
|
462
533
|
"textarea",
|
|
463
534
|
{
|
|
464
535
|
className: cn(
|
|
@@ -474,39 +545,36 @@ var Textarea = React5.forwardRef(
|
|
|
474
545
|
Textarea.displayName = "Textarea";
|
|
475
546
|
|
|
476
547
|
// src/components/skeleton.tsx
|
|
477
|
-
import { jsx as
|
|
548
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
478
549
|
function Skeleton({ className, ...props }) {
|
|
479
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ jsx9(
|
|
480
551
|
"div",
|
|
481
552
|
{
|
|
482
|
-
className: cn(
|
|
483
|
-
"animate-pulse rounded-[var(--radius-md)] bg-[var(--bg-muted)]",
|
|
484
|
-
className
|
|
485
|
-
),
|
|
553
|
+
className: cn("animate-pulse rounded-[var(--radius-md)] bg-[var(--bg-muted)]", className),
|
|
486
554
|
...props
|
|
487
555
|
}
|
|
488
556
|
);
|
|
489
557
|
}
|
|
490
558
|
|
|
491
559
|
// src/components/scroll-area.tsx
|
|
492
|
-
import * as
|
|
560
|
+
import * as React8 from "react";
|
|
493
561
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
494
|
-
import { jsx as
|
|
495
|
-
var ScrollArea =
|
|
562
|
+
import { jsx as jsx10, jsxs } from "react/jsx-runtime";
|
|
563
|
+
var ScrollArea = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
496
564
|
ScrollAreaPrimitive.Root,
|
|
497
565
|
{
|
|
498
566
|
ref,
|
|
499
567
|
className: cn("relative overflow-hidden", className),
|
|
500
568
|
...props,
|
|
501
569
|
children: [
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ jsx10(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
571
|
+
/* @__PURE__ */ jsx10(ScrollBar, {}),
|
|
572
|
+
/* @__PURE__ */ jsx10(ScrollAreaPrimitive.Corner, {})
|
|
505
573
|
]
|
|
506
574
|
}
|
|
507
575
|
));
|
|
508
576
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
509
|
-
var ScrollBar =
|
|
577
|
+
var ScrollBar = React8.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
510
578
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
511
579
|
{
|
|
512
580
|
ref,
|
|
@@ -518,20 +586,20 @@ var ScrollBar = React6.forwardRef(({ className, orientation = "vertical", ...pro
|
|
|
518
586
|
className
|
|
519
587
|
),
|
|
520
588
|
...props,
|
|
521
|
-
children: /* @__PURE__ */
|
|
589
|
+
children: /* @__PURE__ */ jsx10(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-[var(--radius-full)] bg-[var(--border-default)]" })
|
|
522
590
|
}
|
|
523
591
|
));
|
|
524
592
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
525
593
|
|
|
526
594
|
// src/components/select.tsx
|
|
527
|
-
import * as
|
|
595
|
+
import * as React9 from "react";
|
|
528
596
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
529
597
|
import { Check as Check2, ChevronDown, ChevronUp } from "lucide-react";
|
|
530
|
-
import { jsx as
|
|
598
|
+
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
531
599
|
var Select = SelectPrimitive.Root;
|
|
532
600
|
var SelectGroup = SelectPrimitive.Group;
|
|
533
601
|
var SelectValue = SelectPrimitive.Value;
|
|
534
|
-
var SelectTrigger =
|
|
602
|
+
var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
535
603
|
SelectPrimitive.Trigger,
|
|
536
604
|
{
|
|
537
605
|
ref,
|
|
@@ -542,32 +610,32 @@ var SelectTrigger = React7.forwardRef(({ className, children, ...props }, ref) =
|
|
|
542
610
|
...props,
|
|
543
611
|
children: [
|
|
544
612
|
children,
|
|
545
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx11(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
546
614
|
]
|
|
547
615
|
}
|
|
548
616
|
));
|
|
549
617
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
550
|
-
var SelectScrollUpButton =
|
|
618
|
+
var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
551
619
|
SelectPrimitive.ScrollUpButton,
|
|
552
620
|
{
|
|
553
621
|
ref,
|
|
554
622
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
555
623
|
...props,
|
|
556
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ jsx11(ChevronUp, { className: "h-4 w-4" })
|
|
557
625
|
}
|
|
558
626
|
));
|
|
559
627
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
560
|
-
var SelectScrollDownButton =
|
|
628
|
+
var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
561
629
|
SelectPrimitive.ScrollDownButton,
|
|
562
630
|
{
|
|
563
631
|
ref,
|
|
564
632
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
565
633
|
...props,
|
|
566
|
-
children: /* @__PURE__ */
|
|
634
|
+
children: /* @__PURE__ */ jsx11(ChevronDown, { className: "h-4 w-4" })
|
|
567
635
|
}
|
|
568
636
|
));
|
|
569
637
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
570
|
-
var SelectContent =
|
|
638
|
+
var SelectContent = React9.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx11(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
571
639
|
SelectPrimitive.Content,
|
|
572
640
|
{
|
|
573
641
|
ref,
|
|
@@ -579,8 +647,8 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
|
|
|
579
647
|
position,
|
|
580
648
|
...props,
|
|
581
649
|
children: [
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ jsx11(SelectScrollUpButton, {}),
|
|
651
|
+
/* @__PURE__ */ jsx11(
|
|
584
652
|
SelectPrimitive.Viewport,
|
|
585
653
|
{
|
|
586
654
|
className: cn(
|
|
@@ -590,12 +658,12 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
|
|
|
590
658
|
children
|
|
591
659
|
}
|
|
592
660
|
),
|
|
593
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ jsx11(SelectScrollDownButton, {})
|
|
594
662
|
]
|
|
595
663
|
}
|
|
596
664
|
) }));
|
|
597
665
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
598
|
-
var SelectLabel =
|
|
666
|
+
var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
599
667
|
SelectPrimitive.Label,
|
|
600
668
|
{
|
|
601
669
|
ref,
|
|
@@ -607,7 +675,7 @@ var SelectLabel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
607
675
|
}
|
|
608
676
|
));
|
|
609
677
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
610
|
-
var SelectItem =
|
|
678
|
+
var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
611
679
|
SelectPrimitive.Item,
|
|
612
680
|
{
|
|
613
681
|
ref,
|
|
@@ -617,13 +685,13 @@ var SelectItem = React7.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
617
685
|
),
|
|
618
686
|
...props,
|
|
619
687
|
children: [
|
|
620
|
-
/* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ jsx11("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx11(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx11(Check2, { className: "h-4 w-4" }) }) }),
|
|
689
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.ItemText, { children })
|
|
622
690
|
]
|
|
623
691
|
}
|
|
624
692
|
));
|
|
625
693
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
626
|
-
var SelectSeparator =
|
|
694
|
+
var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
627
695
|
SelectPrimitive.Separator,
|
|
628
696
|
{
|
|
629
697
|
ref,
|
|
@@ -634,15 +702,15 @@ var SelectSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
634
702
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
635
703
|
|
|
636
704
|
// src/components/dialog.tsx
|
|
637
|
-
import * as
|
|
705
|
+
import * as React10 from "react";
|
|
638
706
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
639
707
|
import { X } from "lucide-react";
|
|
640
|
-
import { jsx as
|
|
708
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
641
709
|
var Dialog = DialogPrimitive.Root;
|
|
642
710
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
643
711
|
var DialogPortal = DialogPrimitive.Portal;
|
|
644
712
|
var DialogClose = DialogPrimitive.Close;
|
|
645
|
-
var DialogOverlay =
|
|
713
|
+
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
646
714
|
DialogPrimitive.Overlay,
|
|
647
715
|
{
|
|
648
716
|
ref,
|
|
@@ -654,8 +722,8 @@ var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
654
722
|
}
|
|
655
723
|
));
|
|
656
724
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
657
|
-
var DialogContent =
|
|
658
|
-
/* @__PURE__ */
|
|
725
|
+
var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
|
|
726
|
+
/* @__PURE__ */ jsx12(DialogOverlay, {}),
|
|
659
727
|
/* @__PURE__ */ jsxs3(
|
|
660
728
|
DialogPrimitive.Content,
|
|
661
729
|
{
|
|
@@ -668,17 +736,17 @@ var DialogContent = React8.forwardRef(({ className, children, ...props }, ref) =
|
|
|
668
736
|
children: [
|
|
669
737
|
children,
|
|
670
738
|
/* @__PURE__ */ jsxs3(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500", children: [
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ jsx12(X, { className: "h-4 w-4" }),
|
|
740
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
|
|
673
741
|
] })
|
|
674
742
|
]
|
|
675
743
|
}
|
|
676
744
|
)
|
|
677
745
|
] }));
|
|
678
746
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
679
|
-
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
747
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx12("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
680
748
|
DialogHeader.displayName = "DialogHeader";
|
|
681
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
749
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
|
|
682
750
|
"div",
|
|
683
751
|
{
|
|
684
752
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -686,7 +754,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx10(
|
|
|
686
754
|
}
|
|
687
755
|
);
|
|
688
756
|
DialogFooter.displayName = "DialogFooter";
|
|
689
|
-
var DialogTitle =
|
|
757
|
+
var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
690
758
|
DialogPrimitive.Title,
|
|
691
759
|
{
|
|
692
760
|
ref,
|
|
@@ -695,7 +763,7 @@ var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
695
763
|
}
|
|
696
764
|
));
|
|
697
765
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
698
|
-
var DialogDescription =
|
|
766
|
+
var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
699
767
|
DialogPrimitive.Description,
|
|
700
768
|
{
|
|
701
769
|
ref,
|
|
@@ -706,17 +774,17 @@ var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
706
774
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
707
775
|
|
|
708
776
|
// src/components/dropdown-menu.tsx
|
|
709
|
-
import * as
|
|
777
|
+
import * as React11 from "react";
|
|
710
778
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
711
779
|
import { Check as Check3, ChevronRight, Circle as Circle2 } from "lucide-react";
|
|
712
|
-
import { jsx as
|
|
780
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
713
781
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
714
782
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
715
783
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
716
784
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
717
785
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
718
786
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
719
|
-
var DropdownMenuSubTrigger =
|
|
787
|
+
var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
720
788
|
DropdownMenuPrimitive.SubTrigger,
|
|
721
789
|
{
|
|
722
790
|
ref,
|
|
@@ -728,12 +796,12 @@ var DropdownMenuSubTrigger = React9.forwardRef(({ className, inset, children, ..
|
|
|
728
796
|
...props,
|
|
729
797
|
children: [
|
|
730
798
|
children,
|
|
731
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
732
800
|
]
|
|
733
801
|
}
|
|
734
802
|
));
|
|
735
803
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
736
|
-
var DropdownMenuSubContent =
|
|
804
|
+
var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
737
805
|
DropdownMenuPrimitive.SubContent,
|
|
738
806
|
{
|
|
739
807
|
ref,
|
|
@@ -745,7 +813,7 @@ var DropdownMenuSubContent = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
745
813
|
}
|
|
746
814
|
));
|
|
747
815
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
748
|
-
var DropdownMenuContent =
|
|
816
|
+
var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
|
|
749
817
|
DropdownMenuPrimitive.Content,
|
|
750
818
|
{
|
|
751
819
|
ref,
|
|
@@ -758,7 +826,7 @@ var DropdownMenuContent = React9.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
758
826
|
}
|
|
759
827
|
) }));
|
|
760
828
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
761
|
-
var DropdownMenuItem =
|
|
829
|
+
var DropdownMenuItem = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
762
830
|
DropdownMenuPrimitive.Item,
|
|
763
831
|
{
|
|
764
832
|
ref,
|
|
@@ -771,7 +839,7 @@ var DropdownMenuItem = React9.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
771
839
|
}
|
|
772
840
|
));
|
|
773
841
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
774
|
-
var DropdownMenuCheckboxItem =
|
|
842
|
+
var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
775
843
|
DropdownMenuPrimitive.CheckboxItem,
|
|
776
844
|
{
|
|
777
845
|
ref,
|
|
@@ -782,13 +850,13 @@ var DropdownMenuCheckboxItem = React9.forwardRef(({ className, children, checked
|
|
|
782
850
|
checked,
|
|
783
851
|
...props,
|
|
784
852
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Check3, { className: "h-4 w-4" }) }) }),
|
|
786
854
|
children
|
|
787
855
|
]
|
|
788
856
|
}
|
|
789
857
|
));
|
|
790
858
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
791
|
-
var DropdownMenuRadioItem =
|
|
859
|
+
var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
792
860
|
DropdownMenuPrimitive.RadioItem,
|
|
793
861
|
{
|
|
794
862
|
ref,
|
|
@@ -798,13 +866,13 @@ var DropdownMenuRadioItem = React9.forwardRef(({ className, children, ...props }
|
|
|
798
866
|
),
|
|
799
867
|
...props,
|
|
800
868
|
children: [
|
|
801
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ jsx13("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx13(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx13(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
802
870
|
children
|
|
803
871
|
]
|
|
804
872
|
}
|
|
805
873
|
));
|
|
806
874
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
807
|
-
var DropdownMenuLabel =
|
|
875
|
+
var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
808
876
|
DropdownMenuPrimitive.Label,
|
|
809
877
|
{
|
|
810
878
|
ref,
|
|
@@ -817,7 +885,7 @@ var DropdownMenuLabel = React9.forwardRef(({ className, inset, ...props }, ref)
|
|
|
817
885
|
}
|
|
818
886
|
));
|
|
819
887
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
820
|
-
var DropdownMenuSeparator =
|
|
888
|
+
var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
821
889
|
DropdownMenuPrimitive.Separator,
|
|
822
890
|
{
|
|
823
891
|
ref,
|
|
@@ -827,35 +895,32 @@ var DropdownMenuSeparator = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
827
895
|
));
|
|
828
896
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
829
897
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
830
|
-
return /* @__PURE__ */
|
|
898
|
+
return /* @__PURE__ */ jsx13("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
831
899
|
};
|
|
832
900
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
833
901
|
|
|
834
902
|
// src/components/table.tsx
|
|
835
|
-
import * as
|
|
836
|
-
import { jsx as
|
|
837
|
-
var Table =
|
|
838
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
903
|
+
import * as React12 from "react";
|
|
904
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
905
|
+
var Table = React12.forwardRef(
|
|
906
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx14("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx14("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
839
907
|
);
|
|
840
908
|
Table.displayName = "Table";
|
|
841
|
-
var TableHeader =
|
|
909
|
+
var TableHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
842
910
|
TableHeader.displayName = "TableHeader";
|
|
843
|
-
var TableBody =
|
|
911
|
+
var TableBody = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
844
912
|
TableBody.displayName = "TableBody";
|
|
845
|
-
var TableFooter =
|
|
913
|
+
var TableFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
846
914
|
"tfoot",
|
|
847
915
|
{
|
|
848
916
|
ref,
|
|
849
|
-
className: cn(
|
|
850
|
-
"border-t bg-[var(--bg-muted)]/50 font-medium [&>tr]:last:border-b-0",
|
|
851
|
-
className
|
|
852
|
-
),
|
|
917
|
+
className: cn("border-t bg-[var(--bg-muted)]/50 font-medium [&>tr]:last:border-b-0", className),
|
|
853
918
|
...props
|
|
854
919
|
}
|
|
855
920
|
));
|
|
856
921
|
TableFooter.displayName = "TableFooter";
|
|
857
|
-
var TableRow =
|
|
858
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
922
|
+
var TableRow = React12.forwardRef(
|
|
923
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
859
924
|
"tr",
|
|
860
925
|
{
|
|
861
926
|
ref,
|
|
@@ -868,7 +933,7 @@ var TableRow = React10.forwardRef(
|
|
|
868
933
|
)
|
|
869
934
|
);
|
|
870
935
|
TableRow.displayName = "TableRow";
|
|
871
|
-
var TableHead =
|
|
936
|
+
var TableHead = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
872
937
|
"th",
|
|
873
938
|
{
|
|
874
939
|
ref,
|
|
@@ -880,37 +945,31 @@ var TableHead = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
880
945
|
}
|
|
881
946
|
));
|
|
882
947
|
TableHead.displayName = "TableHead";
|
|
883
|
-
var TableCell =
|
|
948
|
+
var TableCell = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
884
949
|
"td",
|
|
885
950
|
{
|
|
886
951
|
ref,
|
|
887
|
-
className: cn(
|
|
888
|
-
"p-[var(--spacing-4)] align-middle [&:has([role=checkbox])]:pr-0",
|
|
889
|
-
className
|
|
890
|
-
),
|
|
952
|
+
className: cn("p-[var(--spacing-4)] align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
891
953
|
...props
|
|
892
954
|
}
|
|
893
955
|
));
|
|
894
956
|
TableCell.displayName = "TableCell";
|
|
895
|
-
var TableCaption =
|
|
957
|
+
var TableCaption = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
896
958
|
"caption",
|
|
897
959
|
{
|
|
898
960
|
ref,
|
|
899
|
-
className: cn(
|
|
900
|
-
"mt-[var(--spacing-4)] text-sm text-[var(--bg-muted-foreground)]",
|
|
901
|
-
className
|
|
902
|
-
),
|
|
961
|
+
className: cn("mt-[var(--spacing-4)] text-sm text-[var(--bg-muted-foreground)]", className),
|
|
903
962
|
...props
|
|
904
963
|
}
|
|
905
964
|
));
|
|
906
965
|
TableCaption.displayName = "TableCaption";
|
|
907
966
|
|
|
908
967
|
// src/components/tabs.tsx
|
|
909
|
-
import * as
|
|
968
|
+
import * as React13 from "react";
|
|
910
969
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
911
|
-
import { jsx as
|
|
970
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
912
971
|
var Tabs = TabsPrimitive.Root;
|
|
913
|
-
var TabsList =
|
|
972
|
+
var TabsList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
914
973
|
TabsPrimitive.List,
|
|
915
974
|
{
|
|
916
975
|
ref,
|
|
@@ -922,7 +981,7 @@ var TabsList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
922
981
|
}
|
|
923
982
|
));
|
|
924
983
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
925
|
-
var TabsTrigger =
|
|
984
|
+
var TabsTrigger = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
926
985
|
TabsPrimitive.Trigger,
|
|
927
986
|
{
|
|
928
987
|
ref,
|
|
@@ -934,7 +993,7 @@ var TabsTrigger = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
934
993
|
}
|
|
935
994
|
));
|
|
936
995
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
937
|
-
var TabsContent =
|
|
996
|
+
var TabsContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
938
997
|
TabsPrimitive.Content,
|
|
939
998
|
{
|
|
940
999
|
ref,
|
|
@@ -948,13 +1007,13 @@ var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
948
1007
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
949
1008
|
|
|
950
1009
|
// src/components/toast.tsx
|
|
951
|
-
import * as
|
|
1010
|
+
import * as React14 from "react";
|
|
952
1011
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
953
|
-
import { cva as
|
|
1012
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
954
1013
|
import { X as X2 } from "lucide-react";
|
|
955
|
-
import { jsx as
|
|
1014
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
956
1015
|
var ToastProvider = ToastPrimitives.Provider;
|
|
957
|
-
var ToastViewport =
|
|
1016
|
+
var ToastViewport = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
958
1017
|
ToastPrimitives.Viewport,
|
|
959
1018
|
{
|
|
960
1019
|
ref,
|
|
@@ -966,7 +1025,7 @@ var ToastViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
966
1025
|
}
|
|
967
1026
|
));
|
|
968
1027
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
969
|
-
var toastVariants =
|
|
1028
|
+
var toastVariants = cva4(
|
|
970
1029
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-[var(--spacing-4)] overflow-hidden rounded-[var(--radius-md)] border border-[var(--border-default)] p-[var(--spacing-6)] pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
971
1030
|
{
|
|
972
1031
|
variants: {
|
|
@@ -980,8 +1039,8 @@ var toastVariants = cva2(
|
|
|
980
1039
|
}
|
|
981
1040
|
}
|
|
982
1041
|
);
|
|
983
|
-
var Toast =
|
|
984
|
-
return /* @__PURE__ */
|
|
1042
|
+
var Toast = React14.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1043
|
+
return /* @__PURE__ */ jsx16(
|
|
985
1044
|
ToastPrimitives.Root,
|
|
986
1045
|
{
|
|
987
1046
|
ref,
|
|
@@ -991,7 +1050,7 @@ var Toast = React12.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
991
1050
|
);
|
|
992
1051
|
});
|
|
993
1052
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
994
|
-
var ToastAction =
|
|
1053
|
+
var ToastAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
995
1054
|
ToastPrimitives.Action,
|
|
996
1055
|
{
|
|
997
1056
|
ref,
|
|
@@ -1003,7 +1062,7 @@ var ToastAction = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1003
1062
|
}
|
|
1004
1063
|
));
|
|
1005
1064
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1006
|
-
var ToastClose =
|
|
1065
|
+
var ToastClose = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1007
1066
|
ToastPrimitives.Close,
|
|
1008
1067
|
{
|
|
1009
1068
|
ref,
|
|
@@ -1013,13 +1072,13 @@ var ToastClose = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1013
1072
|
),
|
|
1014
1073
|
"toast-close": "",
|
|
1015
1074
|
...props,
|
|
1016
|
-
children: /* @__PURE__ */
|
|
1075
|
+
children: /* @__PURE__ */ jsx16(X2, { className: "h-4 w-4" })
|
|
1017
1076
|
}
|
|
1018
1077
|
));
|
|
1019
1078
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1020
|
-
var ToastTitle =
|
|
1079
|
+
var ToastTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
1021
1080
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1022
|
-
var ToastDescription =
|
|
1081
|
+
var ToastDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1023
1082
|
ToastPrimitives.Description,
|
|
1024
1083
|
{
|
|
1025
1084
|
ref,
|
|
@@ -1030,13 +1089,13 @@ var ToastDescription = React12.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1030
1089
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1031
1090
|
|
|
1032
1091
|
// src/components/tooltip.tsx
|
|
1033
|
-
import * as
|
|
1092
|
+
import * as React15 from "react";
|
|
1034
1093
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1035
|
-
import { jsx as
|
|
1094
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1036
1095
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1037
1096
|
var Tooltip = TooltipPrimitive.Root;
|
|
1038
1097
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1039
|
-
var TooltipContent =
|
|
1098
|
+
var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1040
1099
|
TooltipPrimitive.Content,
|
|
1041
1100
|
{
|
|
1042
1101
|
ref,
|
|
@@ -1051,12 +1110,12 @@ var TooltipContent = React13.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1051
1110
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1052
1111
|
|
|
1053
1112
|
// src/components/popover.tsx
|
|
1054
|
-
import * as
|
|
1113
|
+
import * as React16 from "react";
|
|
1055
1114
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1056
|
-
import { jsx as
|
|
1115
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1057
1116
|
var Popover = PopoverPrimitive.Root;
|
|
1058
1117
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1059
|
-
var PopoverContent =
|
|
1118
|
+
var PopoverContent = React16.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx18(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
|
|
1060
1119
|
PopoverPrimitive.Content,
|
|
1061
1120
|
{
|
|
1062
1121
|
ref,
|
|
@@ -1072,16 +1131,16 @@ var PopoverContent = React14.forwardRef(({ className, align = "center", sideOffs
|
|
|
1072
1131
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1073
1132
|
|
|
1074
1133
|
// src/components/sheet.tsx
|
|
1075
|
-
import * as
|
|
1134
|
+
import * as React17 from "react";
|
|
1076
1135
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
1077
|
-
import { cva as
|
|
1136
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
1078
1137
|
import { X as X3 } from "lucide-react";
|
|
1079
|
-
import { jsx as
|
|
1138
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1080
1139
|
var Sheet = SheetPrimitive.Root;
|
|
1081
1140
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1082
1141
|
var SheetClose = SheetPrimitive.Close;
|
|
1083
1142
|
var SheetPortal = SheetPrimitive.Portal;
|
|
1084
|
-
var SheetOverlay =
|
|
1143
|
+
var SheetOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1085
1144
|
SheetPrimitive.Overlay,
|
|
1086
1145
|
{
|
|
1087
1146
|
className: cn(
|
|
@@ -1093,7 +1152,7 @@ var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1093
1152
|
}
|
|
1094
1153
|
));
|
|
1095
1154
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
1096
|
-
var sheetVariants =
|
|
1155
|
+
var sheetVariants = cva5(
|
|
1097
1156
|
"fixed z-50 gap-[var(--spacing-4)] bg-[var(--bg-background)] p-[var(--spacing-6)] shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1098
1157
|
{
|
|
1099
1158
|
variants: {
|
|
@@ -1109,29 +1168,26 @@ var sheetVariants = cva3(
|
|
|
1109
1168
|
}
|
|
1110
1169
|
}
|
|
1111
1170
|
);
|
|
1112
|
-
var SheetContent =
|
|
1113
|
-
/* @__PURE__ */
|
|
1171
|
+
var SheetContent = React17.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(SheetPortal, { children: [
|
|
1172
|
+
/* @__PURE__ */ jsx19(SheetOverlay, {}),
|
|
1114
1173
|
/* @__PURE__ */ jsxs5(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
1115
1174
|
children,
|
|
1116
1175
|
/* @__PURE__ */ jsxs5(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-[var(--radius-sm)] opacity-70 ring-offset-[var(--bg-background)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--border-ring)] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-[var(--bg-secondary)]", children: [
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ jsx19(X3, { className: "h-4 w-4" }),
|
|
1177
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
1119
1178
|
] })
|
|
1120
1179
|
] })
|
|
1121
1180
|
] }));
|
|
1122
1181
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
1123
|
-
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1182
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx19(
|
|
1124
1183
|
"div",
|
|
1125
1184
|
{
|
|
1126
|
-
className: cn(
|
|
1127
|
-
"flex flex-col space-y-[var(--spacing-2)] text-center sm:text-left",
|
|
1128
|
-
className
|
|
1129
|
-
),
|
|
1185
|
+
className: cn("flex flex-col space-y-[var(--spacing-2)] text-center sm:text-left", className),
|
|
1130
1186
|
...props
|
|
1131
1187
|
}
|
|
1132
1188
|
);
|
|
1133
1189
|
SheetHeader.displayName = "SheetHeader";
|
|
1134
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1190
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx19(
|
|
1135
1191
|
"div",
|
|
1136
1192
|
{
|
|
1137
1193
|
className: cn(
|
|
@@ -1142,7 +1198,7 @@ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx17(
|
|
|
1142
1198
|
}
|
|
1143
1199
|
);
|
|
1144
1200
|
SheetFooter.displayName = "SheetFooter";
|
|
1145
|
-
var SheetTitle =
|
|
1201
|
+
var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1146
1202
|
SheetPrimitive.Title,
|
|
1147
1203
|
{
|
|
1148
1204
|
ref,
|
|
@@ -1151,7 +1207,7 @@ var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1151
1207
|
}
|
|
1152
1208
|
));
|
|
1153
1209
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1154
|
-
var SheetDescription =
|
|
1210
|
+
var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1155
1211
|
SheetPrimitive.Description,
|
|
1156
1212
|
{
|
|
1157
1213
|
ref,
|
|
@@ -1162,13 +1218,13 @@ var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1162
1218
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
1163
1219
|
|
|
1164
1220
|
// src/components/alert-dialog.tsx
|
|
1165
|
-
import * as
|
|
1221
|
+
import * as React18 from "react";
|
|
1166
1222
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1167
|
-
import { jsx as
|
|
1223
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1168
1224
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1169
1225
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1170
1226
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1171
|
-
var AlertDialogOverlay =
|
|
1227
|
+
var AlertDialogOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1172
1228
|
AlertDialogPrimitive.Overlay,
|
|
1173
1229
|
{
|
|
1174
1230
|
className: cn(
|
|
@@ -1180,9 +1236,9 @@ var AlertDialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1180
1236
|
}
|
|
1181
1237
|
));
|
|
1182
1238
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1183
|
-
var AlertDialogContent =
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1239
|
+
var AlertDialogContent = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs6(AlertDialogPortal, { children: [
|
|
1240
|
+
/* @__PURE__ */ jsx20(AlertDialogOverlay, {}),
|
|
1241
|
+
/* @__PURE__ */ jsx20(
|
|
1186
1242
|
AlertDialogPrimitive.Content,
|
|
1187
1243
|
{
|
|
1188
1244
|
ref,
|
|
@@ -1195,9 +1251,9 @@ var AlertDialogContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1195
1251
|
)
|
|
1196
1252
|
] }));
|
|
1197
1253
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
1198
|
-
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1254
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx20("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
1199
1255
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1200
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1256
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx20(
|
|
1201
1257
|
"div",
|
|
1202
1258
|
{
|
|
1203
1259
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1205,7 +1261,7 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx18(
|
|
|
1205
1261
|
}
|
|
1206
1262
|
);
|
|
1207
1263
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1208
|
-
var AlertDialogTitle =
|
|
1264
|
+
var AlertDialogTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1209
1265
|
AlertDialogPrimitive.Title,
|
|
1210
1266
|
{
|
|
1211
1267
|
ref,
|
|
@@ -1214,7 +1270,7 @@ var AlertDialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1214
1270
|
}
|
|
1215
1271
|
));
|
|
1216
1272
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
1217
|
-
var AlertDialogDescription =
|
|
1273
|
+
var AlertDialogDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1218
1274
|
AlertDialogPrimitive.Description,
|
|
1219
1275
|
{
|
|
1220
1276
|
ref,
|
|
@@ -1223,9 +1279,9 @@ var AlertDialogDescription = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
1223
1279
|
}
|
|
1224
1280
|
));
|
|
1225
1281
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
1226
|
-
var AlertDialogAction =
|
|
1282
|
+
var AlertDialogAction = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
1227
1283
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1228
|
-
var AlertDialogCancel =
|
|
1284
|
+
var AlertDialogCancel = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1229
1285
|
AlertDialogPrimitive.Cancel,
|
|
1230
1286
|
{
|
|
1231
1287
|
ref,
|
|
@@ -1236,10 +1292,10 @@ var AlertDialogCancel = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1236
1292
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1237
1293
|
|
|
1238
1294
|
// src/components/progress.tsx
|
|
1239
|
-
import * as
|
|
1295
|
+
import * as React19 from "react";
|
|
1240
1296
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1241
|
-
import { jsx as
|
|
1242
|
-
var Progress =
|
|
1297
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1298
|
+
var Progress = React19.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1243
1299
|
ProgressPrimitive.Root,
|
|
1244
1300
|
{
|
|
1245
1301
|
ref,
|
|
@@ -1252,7 +1308,7 @@ var Progress = React17.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
1252
1308
|
className
|
|
1253
1309
|
),
|
|
1254
1310
|
...props,
|
|
1255
|
-
children: /* @__PURE__ */
|
|
1311
|
+
children: /* @__PURE__ */ jsx21(
|
|
1256
1312
|
ProgressPrimitive.Indicator,
|
|
1257
1313
|
{
|
|
1258
1314
|
className: "h-full w-full flex-1 bg-[var(--bg-primary)] transition-all",
|
|
@@ -1264,10 +1320,10 @@ var Progress = React17.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
1264
1320
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1265
1321
|
|
|
1266
1322
|
// src/components/sidebar.tsx
|
|
1267
|
-
import * as
|
|
1268
|
-
import { cva as
|
|
1269
|
-
import { jsx as
|
|
1270
|
-
var sidebarVariants =
|
|
1323
|
+
import * as React20 from "react";
|
|
1324
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
1325
|
+
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1326
|
+
var sidebarVariants = cva6(
|
|
1271
1327
|
"flex flex-col border-r border-[var(--border-default)] bg-[var(--bg-background)] transition-all duration-300",
|
|
1272
1328
|
{
|
|
1273
1329
|
variants: {
|
|
@@ -1287,7 +1343,7 @@ var sidebarVariants = cva4(
|
|
|
1287
1343
|
}
|
|
1288
1344
|
}
|
|
1289
1345
|
);
|
|
1290
|
-
var sidebarHeaderVariants =
|
|
1346
|
+
var sidebarHeaderVariants = cva6(
|
|
1291
1347
|
"flex items-center gap-[var(--spacing-2)] border-b border-[var(--border-default)] bg-[var(--bg-card)] p-[var(--spacing-4)]",
|
|
1292
1348
|
{
|
|
1293
1349
|
variants: {
|
|
@@ -1302,7 +1358,7 @@ var sidebarHeaderVariants = cva4(
|
|
|
1302
1358
|
}
|
|
1303
1359
|
}
|
|
1304
1360
|
);
|
|
1305
|
-
var sidebarContentVariants =
|
|
1361
|
+
var sidebarContentVariants = cva6("flex-1 overflow-y-auto p-[var(--spacing-4)]", {
|
|
1306
1362
|
variants: {
|
|
1307
1363
|
spacing: {
|
|
1308
1364
|
default: "space-y-[var(--spacing-2)]",
|
|
@@ -1314,7 +1370,7 @@ var sidebarContentVariants = cva4("flex-1 overflow-y-auto p-[var(--spacing-4)]",
|
|
|
1314
1370
|
spacing: "default"
|
|
1315
1371
|
}
|
|
1316
1372
|
});
|
|
1317
|
-
var sidebarItemVariants =
|
|
1373
|
+
var sidebarItemVariants = cva6(
|
|
1318
1374
|
"flex w-full items-center gap-[var(--spacing-3)] rounded-[var(--radius-md)] px-[var(--spacing-3)] py-[var(--spacing-2)] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
1319
1375
|
{
|
|
1320
1376
|
variants: {
|
|
@@ -1328,24 +1384,21 @@ var sidebarItemVariants = cva4(
|
|
|
1328
1384
|
}
|
|
1329
1385
|
}
|
|
1330
1386
|
);
|
|
1331
|
-
var sidebarSectionVariants =
|
|
1387
|
+
var sidebarSectionVariants = cva6("space-y-[var(--spacing-1)]", {
|
|
1332
1388
|
variants: {}
|
|
1333
1389
|
});
|
|
1334
|
-
var sidebarSectionTitleVariants =
|
|
1390
|
+
var sidebarSectionTitleVariants = cva6(
|
|
1335
1391
|
"px-[var(--spacing-3)] py-[var(--spacing-2)] text-xs font-semibold uppercase tracking-wider text-[var(--text-muted-foreground)]",
|
|
1336
1392
|
{
|
|
1337
1393
|
variants: {}
|
|
1338
1394
|
}
|
|
1339
1395
|
);
|
|
1340
|
-
var sidebarFooterVariants =
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}
|
|
1345
|
-
);
|
|
1346
|
-
var Sidebar = React18.forwardRef(
|
|
1396
|
+
var sidebarFooterVariants = cva6("border-t border-[var(--border-default)] p-[var(--spacing-4)]", {
|
|
1397
|
+
variants: {}
|
|
1398
|
+
});
|
|
1399
|
+
var Sidebar = React20.forwardRef(
|
|
1347
1400
|
({ className, variant, size, collapsed, ...props }, ref) => {
|
|
1348
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsx22(
|
|
1349
1402
|
"div",
|
|
1350
1403
|
{
|
|
1351
1404
|
ref,
|
|
@@ -1358,19 +1411,19 @@ var Sidebar = React18.forwardRef(
|
|
|
1358
1411
|
}
|
|
1359
1412
|
);
|
|
1360
1413
|
Sidebar.displayName = "Sidebar";
|
|
1361
|
-
var SidebarHeader =
|
|
1414
|
+
var SidebarHeader = React20.forwardRef(
|
|
1362
1415
|
({ className, size, ...props }, ref) => {
|
|
1363
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarHeaderVariants({ size, className })), ...props });
|
|
1364
1417
|
}
|
|
1365
1418
|
);
|
|
1366
1419
|
SidebarHeader.displayName = "SidebarHeader";
|
|
1367
|
-
var SidebarContent =
|
|
1420
|
+
var SidebarContent = React20.forwardRef(
|
|
1368
1421
|
({ className, spacing, ...props }, ref) => {
|
|
1369
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarContentVariants({ spacing, className })), ...props });
|
|
1370
1423
|
}
|
|
1371
1424
|
);
|
|
1372
1425
|
SidebarContent.displayName = "SidebarContent";
|
|
1373
|
-
var SidebarItem =
|
|
1426
|
+
var SidebarItem = React20.forwardRef(
|
|
1374
1427
|
({ className, variant, icon, badge, children, active, ...props }, ref) => {
|
|
1375
1428
|
return /* @__PURE__ */ jsxs7(
|
|
1376
1429
|
"button",
|
|
@@ -1379,25 +1432,25 @@ var SidebarItem = React18.forwardRef(
|
|
|
1379
1432
|
className: cn(sidebarItemVariants({ variant: active ? "active" : variant, className })),
|
|
1380
1433
|
...props,
|
|
1381
1434
|
children: [
|
|
1382
|
-
icon && /* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
badge && /* @__PURE__ */
|
|
1435
|
+
icon && /* @__PURE__ */ jsx22("span", { className: "flex-shrink-0", children: icon }),
|
|
1436
|
+
/* @__PURE__ */ jsx22("span", { className: "flex-1 truncate text-left", children }),
|
|
1437
|
+
badge && /* @__PURE__ */ jsx22("span", { className: "flex-shrink-0", children: badge })
|
|
1385
1438
|
]
|
|
1386
1439
|
}
|
|
1387
1440
|
);
|
|
1388
1441
|
}
|
|
1389
1442
|
);
|
|
1390
1443
|
SidebarItem.displayName = "SidebarItem";
|
|
1391
|
-
var SidebarSection =
|
|
1444
|
+
var SidebarSection = React20.forwardRef(
|
|
1392
1445
|
({ className, title, collapsed, children, ...props }, ref) => {
|
|
1393
|
-
const [isCollapsed, setIsCollapsed] =
|
|
1394
|
-
|
|
1446
|
+
const [isCollapsed, setIsCollapsed] = React20.useState(collapsed ?? false);
|
|
1447
|
+
React20.useEffect(() => {
|
|
1395
1448
|
if (collapsed !== void 0) {
|
|
1396
1449
|
setIsCollapsed(collapsed);
|
|
1397
1450
|
}
|
|
1398
1451
|
}, [collapsed]);
|
|
1399
1452
|
return /* @__PURE__ */ jsxs7("div", { ref, className: cn(sidebarSectionVariants({ className })), ...props, children: [
|
|
1400
|
-
title && /* @__PURE__ */
|
|
1453
|
+
title && /* @__PURE__ */ jsx22(
|
|
1401
1454
|
"button",
|
|
1402
1455
|
{
|
|
1403
1456
|
className: cn(
|
|
@@ -1408,7 +1461,7 @@ var SidebarSection = React18.forwardRef(
|
|
|
1408
1461
|
"aria-expanded": !isCollapsed,
|
|
1409
1462
|
children: /* @__PURE__ */ jsxs7("span", { className: "flex items-center justify-between", children: [
|
|
1410
1463
|
title,
|
|
1411
|
-
/* @__PURE__ */
|
|
1464
|
+
/* @__PURE__ */ jsx22(
|
|
1412
1465
|
"span",
|
|
1413
1466
|
{
|
|
1414
1467
|
className: cn("transition-transform", isCollapsed ? "rotate-0" : "rotate-90"),
|
|
@@ -1419,30 +1472,30 @@ var SidebarSection = React18.forwardRef(
|
|
|
1419
1472
|
] })
|
|
1420
1473
|
}
|
|
1421
1474
|
),
|
|
1422
|
-
!isCollapsed && /* @__PURE__ */
|
|
1475
|
+
!isCollapsed && /* @__PURE__ */ jsx22("div", { className: "space-y-[var(--spacing-1)]", children })
|
|
1423
1476
|
] });
|
|
1424
1477
|
}
|
|
1425
1478
|
);
|
|
1426
1479
|
SidebarSection.displayName = "SidebarSection";
|
|
1427
|
-
var SidebarSectionTitle =
|
|
1480
|
+
var SidebarSectionTitle = React20.forwardRef(
|
|
1428
1481
|
({ className, ...props }, ref) => {
|
|
1429
|
-
return /* @__PURE__ */
|
|
1482
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarSectionTitleVariants({ className })), ...props });
|
|
1430
1483
|
}
|
|
1431
1484
|
);
|
|
1432
1485
|
SidebarSectionTitle.displayName = "SidebarSectionTitle";
|
|
1433
|
-
var SidebarFooter =
|
|
1486
|
+
var SidebarFooter = React20.forwardRef(
|
|
1434
1487
|
({ className, ...props }, ref) => {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarFooterVariants({ className })), ...props });
|
|
1436
1489
|
}
|
|
1437
1490
|
);
|
|
1438
1491
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1439
1492
|
|
|
1440
1493
|
// src/components/navigation-menu.tsx
|
|
1441
|
-
import * as
|
|
1494
|
+
import * as React21 from "react";
|
|
1442
1495
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1443
|
-
import { cva as
|
|
1444
|
-
import { jsx as
|
|
1445
|
-
var NavigationMenu =
|
|
1496
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
1497
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1498
|
+
var NavigationMenu = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
1446
1499
|
NavigationMenuPrimitive.Root,
|
|
1447
1500
|
{
|
|
1448
1501
|
ref,
|
|
@@ -1450,12 +1503,12 @@ var NavigationMenu = React19.forwardRef(({ className, children, ...props }, ref)
|
|
|
1450
1503
|
...props,
|
|
1451
1504
|
children: [
|
|
1452
1505
|
children,
|
|
1453
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx23(NavigationMenuViewport, {})
|
|
1454
1507
|
]
|
|
1455
1508
|
}
|
|
1456
1509
|
));
|
|
1457
1510
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1458
|
-
var NavigationMenuList =
|
|
1511
|
+
var NavigationMenuList = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1459
1512
|
NavigationMenuPrimitive.List,
|
|
1460
1513
|
{
|
|
1461
1514
|
ref,
|
|
@@ -1468,10 +1521,10 @@ var NavigationMenuList = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1468
1521
|
));
|
|
1469
1522
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1470
1523
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1471
|
-
var navigationMenuTriggerStyle =
|
|
1524
|
+
var navigationMenuTriggerStyle = cva7(
|
|
1472
1525
|
"group inline-flex h-10 w-max items-center justify-center rounded-[var(--radius-md)] bg-[var(--bg-background)] px-[var(--spacing-4)] py-[var(--spacing-2)] text-sm font-medium transition-colors hover:bg-[var(--bg-accent)] hover:text-[var(--bg-accent-foreground)] focus:bg-[var(--bg-accent)] focus:text-[var(--bg-accent-foreground)] focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-[var(--bg-accent)]/50 data-[state=open]:bg-[var(--bg-accent)]/50"
|
|
1473
1526
|
);
|
|
1474
|
-
var NavigationMenuTrigger =
|
|
1527
|
+
var NavigationMenuTrigger = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
1475
1528
|
NavigationMenuPrimitive.Trigger,
|
|
1476
1529
|
{
|
|
1477
1530
|
ref,
|
|
@@ -1480,7 +1533,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1480
1533
|
children: [
|
|
1481
1534
|
children,
|
|
1482
1535
|
" ",
|
|
1483
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ jsx23(
|
|
1484
1537
|
"svg",
|
|
1485
1538
|
{
|
|
1486
1539
|
width: "12",
|
|
@@ -1490,7 +1543,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1490
1543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1491
1544
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1492
1545
|
"aria-hidden": "true",
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1546
|
+
children: /* @__PURE__ */ jsx23(
|
|
1494
1547
|
"path",
|
|
1495
1548
|
{
|
|
1496
1549
|
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
@@ -1506,7 +1559,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1506
1559
|
}
|
|
1507
1560
|
));
|
|
1508
1561
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1509
|
-
var NavigationMenuContent =
|
|
1562
|
+
var NavigationMenuContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1510
1563
|
NavigationMenuPrimitive.Content,
|
|
1511
1564
|
{
|
|
1512
1565
|
ref,
|
|
@@ -1519,7 +1572,7 @@ var NavigationMenuContent = React19.forwardRef(({ className, ...props }, ref) =>
|
|
|
1519
1572
|
));
|
|
1520
1573
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1521
1574
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1522
|
-
var NavigationMenuViewport =
|
|
1575
|
+
var NavigationMenuViewport = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx23(
|
|
1523
1576
|
NavigationMenuPrimitive.Viewport,
|
|
1524
1577
|
{
|
|
1525
1578
|
className: cn(
|
|
@@ -1531,7 +1584,7 @@ var NavigationMenuViewport = React19.forwardRef(({ className, ...props }, ref) =
|
|
|
1531
1584
|
}
|
|
1532
1585
|
) }));
|
|
1533
1586
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1534
|
-
var NavigationMenuIndicator =
|
|
1587
|
+
var NavigationMenuIndicator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1535
1588
|
NavigationMenuPrimitive.Indicator,
|
|
1536
1589
|
{
|
|
1537
1590
|
ref,
|
|
@@ -1540,16 +1593,16 @@ var NavigationMenuIndicator = React19.forwardRef(({ className, ...props }, ref)
|
|
|
1540
1593
|
className
|
|
1541
1594
|
),
|
|
1542
1595
|
...props,
|
|
1543
|
-
children: /* @__PURE__ */
|
|
1596
|
+
children: /* @__PURE__ */ jsx23("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-[var(--border-default)] shadow-md" })
|
|
1544
1597
|
}
|
|
1545
1598
|
));
|
|
1546
1599
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1547
1600
|
|
|
1548
1601
|
// src/components/breadcrumb.tsx
|
|
1549
|
-
import * as
|
|
1550
|
-
import { cva as
|
|
1551
|
-
import { jsx as
|
|
1552
|
-
var breadcrumbVariants =
|
|
1602
|
+
import * as React22 from "react";
|
|
1603
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
1604
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1605
|
+
var breadcrumbVariants = cva8("flex items-center gap-[var(--spacing-2)]", {
|
|
1553
1606
|
variants: {
|
|
1554
1607
|
size: {
|
|
1555
1608
|
sm: "text-xs",
|
|
@@ -1561,13 +1614,13 @@ var breadcrumbVariants = cva6("flex items-center gap-[var(--spacing-2)]", {
|
|
|
1561
1614
|
size: "default"
|
|
1562
1615
|
}
|
|
1563
1616
|
});
|
|
1564
|
-
var breadcrumbListVariants =
|
|
1617
|
+
var breadcrumbListVariants = cva8("flex flex-wrap items-center gap-1.5 break-words", {
|
|
1565
1618
|
variants: {}
|
|
1566
1619
|
});
|
|
1567
|
-
var breadcrumbItemVariants =
|
|
1620
|
+
var breadcrumbItemVariants = cva8("inline-flex items-center gap-1.5", {
|
|
1568
1621
|
variants: {}
|
|
1569
1622
|
});
|
|
1570
|
-
var breadcrumbLinkVariants =
|
|
1623
|
+
var breadcrumbLinkVariants = cva8(
|
|
1571
1624
|
"transition-colors hover:text-[var(--bg-foreground)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-ring)] focus-visible:ring-offset-2 rounded-[var(--radius-sm)]",
|
|
1572
1625
|
{
|
|
1573
1626
|
variants: {
|
|
@@ -1581,18 +1634,18 @@ var breadcrumbLinkVariants = cva6(
|
|
|
1581
1634
|
}
|
|
1582
1635
|
}
|
|
1583
1636
|
);
|
|
1584
|
-
var breadcrumbSeparatorVariants =
|
|
1637
|
+
var breadcrumbSeparatorVariants = cva8("text-[var(--text-muted-foreground)] select-none", {
|
|
1585
1638
|
variants: {}
|
|
1586
1639
|
});
|
|
1587
|
-
var breadcrumbEllipsisVariants =
|
|
1640
|
+
var breadcrumbEllipsisVariants = cva8(
|
|
1588
1641
|
"inline-flex h-9 w-9 items-center justify-center text-[var(--text-muted-foreground)]",
|
|
1589
1642
|
{
|
|
1590
1643
|
variants: {}
|
|
1591
1644
|
}
|
|
1592
1645
|
);
|
|
1593
|
-
var Breadcrumb =
|
|
1646
|
+
var Breadcrumb = React22.forwardRef(
|
|
1594
1647
|
({ className, size, separator: _separator = "/", ...props }, ref) => {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ jsx24(
|
|
1596
1649
|
"nav",
|
|
1597
1650
|
{
|
|
1598
1651
|
ref,
|
|
@@ -1604,18 +1657,18 @@ var Breadcrumb = React20.forwardRef(
|
|
|
1604
1657
|
}
|
|
1605
1658
|
);
|
|
1606
1659
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1607
|
-
var BreadcrumbList =
|
|
1608
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1660
|
+
var BreadcrumbList = React22.forwardRef(
|
|
1661
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24("ol", { ref, className: cn(breadcrumbListVariants({ className })), ...props })
|
|
1609
1662
|
);
|
|
1610
1663
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1611
|
-
var BreadcrumbItem =
|
|
1612
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1664
|
+
var BreadcrumbItem = React22.forwardRef(
|
|
1665
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24("li", { ref, className: cn(breadcrumbItemVariants({ className })), ...props })
|
|
1613
1666
|
);
|
|
1614
1667
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1615
|
-
var BreadcrumbLink =
|
|
1668
|
+
var BreadcrumbLink = React22.forwardRef(
|
|
1616
1669
|
({ className, active, asChild = false, ...props }, ref) => {
|
|
1617
|
-
const Comp = asChild ?
|
|
1618
|
-
return /* @__PURE__ */
|
|
1670
|
+
const Comp = asChild ? React22.Fragment : "a";
|
|
1671
|
+
return /* @__PURE__ */ jsx24(
|
|
1619
1672
|
Comp,
|
|
1620
1673
|
{
|
|
1621
1674
|
ref: asChild ? void 0 : ref,
|
|
@@ -1628,8 +1681,8 @@ var BreadcrumbLink = React20.forwardRef(
|
|
|
1628
1681
|
}
|
|
1629
1682
|
);
|
|
1630
1683
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1631
|
-
var BreadcrumbPage =
|
|
1632
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1684
|
+
var BreadcrumbPage = React22.forwardRef(
|
|
1685
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1633
1686
|
"span",
|
|
1634
1687
|
{
|
|
1635
1688
|
ref,
|
|
@@ -1646,8 +1699,8 @@ var BreadcrumbPage = React20.forwardRef(
|
|
|
1646
1699
|
)
|
|
1647
1700
|
);
|
|
1648
1701
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
1649
|
-
var BreadcrumbSeparator =
|
|
1650
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
1702
|
+
var BreadcrumbSeparator = React22.forwardRef(
|
|
1703
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1651
1704
|
"li",
|
|
1652
1705
|
{
|
|
1653
1706
|
ref,
|
|
@@ -1660,7 +1713,7 @@ var BreadcrumbSeparator = React20.forwardRef(
|
|
|
1660
1713
|
)
|
|
1661
1714
|
);
|
|
1662
1715
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1663
|
-
var BreadcrumbEllipsis =
|
|
1716
|
+
var BreadcrumbEllipsis = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
1664
1717
|
"span",
|
|
1665
1718
|
{
|
|
1666
1719
|
ref,
|
|
@@ -1669,7 +1722,7 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1669
1722
|
className: cn(breadcrumbEllipsisVariants({ className })),
|
|
1670
1723
|
...props,
|
|
1671
1724
|
children: [
|
|
1672
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ jsx24(
|
|
1673
1726
|
"svg",
|
|
1674
1727
|
{
|
|
1675
1728
|
width: "15",
|
|
@@ -1678,7 +1731,7 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1678
1731
|
fill: "none",
|
|
1679
1732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1680
1733
|
"aria-hidden": "true",
|
|
1681
|
-
children: /* @__PURE__ */
|
|
1734
|
+
children: /* @__PURE__ */ jsx24(
|
|
1682
1735
|
"path",
|
|
1683
1736
|
{
|
|
1684
1737
|
d: "M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",
|
|
@@ -1689,17 +1742,17 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1689
1742
|
)
|
|
1690
1743
|
}
|
|
1691
1744
|
),
|
|
1692
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ jsx24("span", { className: "sr-only", children: "More" })
|
|
1693
1746
|
]
|
|
1694
1747
|
}
|
|
1695
1748
|
));
|
|
1696
1749
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
1697
1750
|
|
|
1698
1751
|
// src/components/command.tsx
|
|
1699
|
-
import * as
|
|
1752
|
+
import * as React23 from "react";
|
|
1700
1753
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1701
|
-
import { jsx as
|
|
1702
|
-
var Command =
|
|
1754
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1755
|
+
var Command = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1703
1756
|
CommandPrimitive,
|
|
1704
1757
|
{
|
|
1705
1758
|
ref,
|
|
@@ -1715,24 +1768,24 @@ var CommandDialog = ({
|
|
|
1715
1768
|
children,
|
|
1716
1769
|
...props
|
|
1717
1770
|
}) => {
|
|
1718
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ jsx25(
|
|
1719
1772
|
CommandPrimitive.Dialog,
|
|
1720
1773
|
{
|
|
1721
1774
|
...props,
|
|
1722
1775
|
className: cn(
|
|
1723
1776
|
"fixed inset-0 z-50 bg-[var(--bg-background)]/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
1724
1777
|
),
|
|
1725
|
-
children: /* @__PURE__ */
|
|
1778
|
+
children: /* @__PURE__ */ jsx25("div", { className: "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[var(--border-default)] bg-[var(--bg-background)] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", children: /* @__PURE__ */ jsx25(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--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 }) })
|
|
1726
1779
|
}
|
|
1727
1780
|
);
|
|
1728
1781
|
};
|
|
1729
|
-
var CommandInput =
|
|
1782
|
+
var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1730
1783
|
"div",
|
|
1731
1784
|
{
|
|
1732
1785
|
className: "flex items-center border-b border-[var(--border-default)] px-3",
|
|
1733
1786
|
"cmdk-input-wrapper": "",
|
|
1734
1787
|
children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsx25(
|
|
1736
1789
|
"svg",
|
|
1737
1790
|
{
|
|
1738
1791
|
width: "15",
|
|
@@ -1741,7 +1794,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1741
1794
|
fill: "none",
|
|
1742
1795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1743
1796
|
className: "mr-2 h-4 w-4 shrink-0 opacity-50",
|
|
1744
|
-
children: /* @__PURE__ */
|
|
1797
|
+
children: /* @__PURE__ */ jsx25(
|
|
1745
1798
|
"path",
|
|
1746
1799
|
{
|
|
1747
1800
|
d: "M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",
|
|
@@ -1752,7 +1805,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1752
1805
|
)
|
|
1753
1806
|
}
|
|
1754
1807
|
),
|
|
1755
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsx25(
|
|
1756
1809
|
CommandPrimitive.Input,
|
|
1757
1810
|
{
|
|
1758
1811
|
ref,
|
|
@@ -1767,7 +1820,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1767
1820
|
}
|
|
1768
1821
|
));
|
|
1769
1822
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1770
|
-
var CommandList =
|
|
1823
|
+
var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1771
1824
|
CommandPrimitive.List,
|
|
1772
1825
|
{
|
|
1773
1826
|
ref,
|
|
@@ -1776,7 +1829,7 @@ var CommandList = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1776
1829
|
}
|
|
1777
1830
|
));
|
|
1778
1831
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1779
|
-
var CommandEmpty =
|
|
1832
|
+
var CommandEmpty = React23.forwardRef((props, ref) => /* @__PURE__ */ jsx25(
|
|
1780
1833
|
CommandPrimitive.Empty,
|
|
1781
1834
|
{
|
|
1782
1835
|
ref,
|
|
@@ -1785,7 +1838,7 @@ var CommandEmpty = React21.forwardRef((props, ref) => /* @__PURE__ */ jsx23(
|
|
|
1785
1838
|
}
|
|
1786
1839
|
));
|
|
1787
1840
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1788
|
-
var CommandGroup =
|
|
1841
|
+
var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1789
1842
|
CommandPrimitive.Group,
|
|
1790
1843
|
{
|
|
1791
1844
|
ref,
|
|
@@ -1797,7 +1850,7 @@ var CommandGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1797
1850
|
}
|
|
1798
1851
|
));
|
|
1799
1852
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1800
|
-
var CommandSeparator =
|
|
1853
|
+
var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1801
1854
|
CommandPrimitive.Separator,
|
|
1802
1855
|
{
|
|
1803
1856
|
ref,
|
|
@@ -1806,7 +1859,7 @@ var CommandSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1806
1859
|
}
|
|
1807
1860
|
));
|
|
1808
1861
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1809
|
-
var CommandItem =
|
|
1862
|
+
var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1810
1863
|
CommandPrimitive.Item,
|
|
1811
1864
|
{
|
|
1812
1865
|
ref,
|
|
@@ -1819,7 +1872,7 @@ var CommandItem = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1819
1872
|
));
|
|
1820
1873
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1821
1874
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1822
|
-
return /* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ jsx25(
|
|
1823
1876
|
"span",
|
|
1824
1877
|
{
|
|
1825
1878
|
className: cn(
|
|
@@ -1834,9 +1887,9 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
1834
1887
|
|
|
1835
1888
|
// src/components/calendar.tsx
|
|
1836
1889
|
import { DayPicker } from "react-day-picker";
|
|
1837
|
-
import { jsx as
|
|
1890
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1838
1891
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
1839
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ jsx26(
|
|
1840
1893
|
DayPicker,
|
|
1841
1894
|
{
|
|
1842
1895
|
showOutsideDays,
|
|
@@ -1880,7 +1933,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1880
1933
|
components: {
|
|
1881
1934
|
Chevron: ({ orientation }) => {
|
|
1882
1935
|
if (orientation === "left") {
|
|
1883
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsx26(
|
|
1884
1937
|
"svg",
|
|
1885
1938
|
{
|
|
1886
1939
|
width: "15",
|
|
@@ -1889,7 +1942,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1889
1942
|
fill: "none",
|
|
1890
1943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1891
1944
|
className: "h-4 w-4",
|
|
1892
|
-
children: /* @__PURE__ */
|
|
1945
|
+
children: /* @__PURE__ */ jsx26(
|
|
1893
1946
|
"path",
|
|
1894
1947
|
{
|
|
1895
1948
|
d: "M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",
|
|
@@ -1901,7 +1954,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1901
1954
|
}
|
|
1902
1955
|
);
|
|
1903
1956
|
}
|
|
1904
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsx26(
|
|
1905
1958
|
"svg",
|
|
1906
1959
|
{
|
|
1907
1960
|
width: "15",
|
|
@@ -1910,7 +1963,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1910
1963
|
fill: "none",
|
|
1911
1964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1912
1965
|
className: "h-4 w-4",
|
|
1913
|
-
children: /* @__PURE__ */
|
|
1966
|
+
children: /* @__PURE__ */ jsx26(
|
|
1914
1967
|
"path",
|
|
1915
1968
|
{
|
|
1916
1969
|
d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
|
|
@@ -1994,6 +2047,7 @@ export {
|
|
|
1994
2047
|
DropdownMenuSubContent,
|
|
1995
2048
|
DropdownMenuSubTrigger,
|
|
1996
2049
|
DropdownMenuTrigger,
|
|
2050
|
+
Heading,
|
|
1997
2051
|
Input,
|
|
1998
2052
|
Label,
|
|
1999
2053
|
NavigationMenu,
|
|
@@ -2054,6 +2108,7 @@ export {
|
|
|
2054
2108
|
TabsContent,
|
|
2055
2109
|
TabsList,
|
|
2056
2110
|
TabsTrigger,
|
|
2111
|
+
Text,
|
|
2057
2112
|
Textarea,
|
|
2058
2113
|
Toast,
|
|
2059
2114
|
ToastAction,
|
|
@@ -2073,6 +2128,7 @@ export {
|
|
|
2073
2128
|
fadeVariants,
|
|
2074
2129
|
getCurrentThemeId,
|
|
2075
2130
|
getMotionTransition,
|
|
2131
|
+
headingVariants,
|
|
2076
2132
|
injectThemeCSS,
|
|
2077
2133
|
isTokenReference,
|
|
2078
2134
|
motionTokens,
|
|
@@ -2083,6 +2139,7 @@ export {
|
|
|
2083
2139
|
setThemeId,
|
|
2084
2140
|
sidebarVariants,
|
|
2085
2141
|
slideVariants,
|
|
2142
|
+
textVariants,
|
|
2086
2143
|
themeToCSS,
|
|
2087
2144
|
tokenVars,
|
|
2088
2145
|
transitions,
|