@framingui/ui 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -9
- package/dist/index.mjs +310 -235
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/LICENSE +0 -21
package/dist/index.mjs
CHANGED
|
@@ -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,9 +545,9 @@ 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
553
|
className: cn("animate-pulse rounded-[var(--radius-md)] bg-[var(--bg-muted)]", className),
|
|
@@ -486,24 +557,24 @@ function Skeleton({ className, ...props }) {
|
|
|
486
557
|
}
|
|
487
558
|
|
|
488
559
|
// src/components/scroll-area.tsx
|
|
489
|
-
import * as
|
|
560
|
+
import * as React8 from "react";
|
|
490
561
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
491
|
-
import { jsx as
|
|
492
|
-
var ScrollArea =
|
|
562
|
+
import { jsx as jsx10, jsxs } from "react/jsx-runtime";
|
|
563
|
+
var ScrollArea = React8.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
493
564
|
ScrollAreaPrimitive.Root,
|
|
494
565
|
{
|
|
495
566
|
ref,
|
|
496
567
|
className: cn("relative overflow-hidden", className),
|
|
497
568
|
...props,
|
|
498
569
|
children: [
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ jsx10(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
571
|
+
/* @__PURE__ */ jsx10(ScrollBar, {}),
|
|
572
|
+
/* @__PURE__ */ jsx10(ScrollAreaPrimitive.Corner, {})
|
|
502
573
|
]
|
|
503
574
|
}
|
|
504
575
|
));
|
|
505
576
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
506
|
-
var ScrollBar =
|
|
577
|
+
var ScrollBar = React8.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
507
578
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
508
579
|
{
|
|
509
580
|
ref,
|
|
@@ -515,20 +586,20 @@ var ScrollBar = React6.forwardRef(({ className, orientation = "vertical", ...pro
|
|
|
515
586
|
className
|
|
516
587
|
),
|
|
517
588
|
...props,
|
|
518
|
-
children: /* @__PURE__ */
|
|
589
|
+
children: /* @__PURE__ */ jsx10(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-[var(--radius-full)] bg-[var(--border-default)]" })
|
|
519
590
|
}
|
|
520
591
|
));
|
|
521
592
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
522
593
|
|
|
523
594
|
// src/components/select.tsx
|
|
524
|
-
import * as
|
|
595
|
+
import * as React9 from "react";
|
|
525
596
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
526
597
|
import { Check as Check2, ChevronDown, ChevronUp } from "lucide-react";
|
|
527
|
-
import { jsx as
|
|
598
|
+
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
528
599
|
var Select = SelectPrimitive.Root;
|
|
529
600
|
var SelectGroup = SelectPrimitive.Group;
|
|
530
601
|
var SelectValue = SelectPrimitive.Value;
|
|
531
|
-
var SelectTrigger =
|
|
602
|
+
var SelectTrigger = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
532
603
|
SelectPrimitive.Trigger,
|
|
533
604
|
{
|
|
534
605
|
ref,
|
|
@@ -539,32 +610,32 @@ var SelectTrigger = React7.forwardRef(({ className, children, ...props }, ref) =
|
|
|
539
610
|
...props,
|
|
540
611
|
children: [
|
|
541
612
|
children,
|
|
542
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx11(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
|
|
543
614
|
]
|
|
544
615
|
}
|
|
545
616
|
));
|
|
546
617
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
547
|
-
var SelectScrollUpButton =
|
|
618
|
+
var SelectScrollUpButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
548
619
|
SelectPrimitive.ScrollUpButton,
|
|
549
620
|
{
|
|
550
621
|
ref,
|
|
551
622
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
552
623
|
...props,
|
|
553
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ jsx11(ChevronUp, { className: "h-4 w-4" })
|
|
554
625
|
}
|
|
555
626
|
));
|
|
556
627
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
557
|
-
var SelectScrollDownButton =
|
|
628
|
+
var SelectScrollDownButton = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
558
629
|
SelectPrimitive.ScrollDownButton,
|
|
559
630
|
{
|
|
560
631
|
ref,
|
|
561
632
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
562
633
|
...props,
|
|
563
|
-
children: /* @__PURE__ */
|
|
634
|
+
children: /* @__PURE__ */ jsx11(ChevronDown, { className: "h-4 w-4" })
|
|
564
635
|
}
|
|
565
636
|
));
|
|
566
637
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
567
|
-
var SelectContent =
|
|
638
|
+
var SelectContent = React9.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx11(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
|
|
568
639
|
SelectPrimitive.Content,
|
|
569
640
|
{
|
|
570
641
|
ref,
|
|
@@ -576,8 +647,8 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
|
|
|
576
647
|
position,
|
|
577
648
|
...props,
|
|
578
649
|
children: [
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ jsx11(SelectScrollUpButton, {}),
|
|
651
|
+
/* @__PURE__ */ jsx11(
|
|
581
652
|
SelectPrimitive.Viewport,
|
|
582
653
|
{
|
|
583
654
|
className: cn(
|
|
@@ -587,12 +658,12 @@ var SelectContent = React7.forwardRef(({ className, children, position = "popper
|
|
|
587
658
|
children
|
|
588
659
|
}
|
|
589
660
|
),
|
|
590
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ jsx11(SelectScrollDownButton, {})
|
|
591
662
|
]
|
|
592
663
|
}
|
|
593
664
|
) }));
|
|
594
665
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
595
|
-
var SelectLabel =
|
|
666
|
+
var SelectLabel = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
596
667
|
SelectPrimitive.Label,
|
|
597
668
|
{
|
|
598
669
|
ref,
|
|
@@ -604,7 +675,7 @@ var SelectLabel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
604
675
|
}
|
|
605
676
|
));
|
|
606
677
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
607
|
-
var SelectItem =
|
|
678
|
+
var SelectItem = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
608
679
|
SelectPrimitive.Item,
|
|
609
680
|
{
|
|
610
681
|
ref,
|
|
@@ -614,13 +685,13 @@ var SelectItem = React7.forwardRef(({ className, children, ...props }, ref) => /
|
|
|
614
685
|
),
|
|
615
686
|
...props,
|
|
616
687
|
children: [
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__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 })
|
|
619
690
|
]
|
|
620
691
|
}
|
|
621
692
|
));
|
|
622
693
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
623
|
-
var SelectSeparator =
|
|
694
|
+
var SelectSeparator = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
624
695
|
SelectPrimitive.Separator,
|
|
625
696
|
{
|
|
626
697
|
ref,
|
|
@@ -631,15 +702,15 @@ var SelectSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
631
702
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
632
703
|
|
|
633
704
|
// src/components/dialog.tsx
|
|
634
|
-
import * as
|
|
705
|
+
import * as React10 from "react";
|
|
635
706
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
636
707
|
import { X } from "lucide-react";
|
|
637
|
-
import { jsx as
|
|
708
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
638
709
|
var Dialog = DialogPrimitive.Root;
|
|
639
710
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
640
711
|
var DialogPortal = DialogPrimitive.Portal;
|
|
641
712
|
var DialogClose = DialogPrimitive.Close;
|
|
642
|
-
var DialogOverlay =
|
|
713
|
+
var DialogOverlay = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
643
714
|
DialogPrimitive.Overlay,
|
|
644
715
|
{
|
|
645
716
|
ref,
|
|
@@ -651,8 +722,8 @@ var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
651
722
|
}
|
|
652
723
|
));
|
|
653
724
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
654
|
-
var DialogContent =
|
|
655
|
-
/* @__PURE__ */
|
|
725
|
+
var DialogContent = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortal, { children: [
|
|
726
|
+
/* @__PURE__ */ jsx12(DialogOverlay, {}),
|
|
656
727
|
/* @__PURE__ */ jsxs3(
|
|
657
728
|
DialogPrimitive.Content,
|
|
658
729
|
{
|
|
@@ -665,17 +736,17 @@ var DialogContent = React8.forwardRef(({ className, children, ...props }, ref) =
|
|
|
665
736
|
children: [
|
|
666
737
|
children,
|
|
667
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: [
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ jsx12(X, { className: "h-4 w-4" }),
|
|
740
|
+
/* @__PURE__ */ jsx12("span", { className: "sr-only", children: "Close" })
|
|
670
741
|
] })
|
|
671
742
|
]
|
|
672
743
|
}
|
|
673
744
|
)
|
|
674
745
|
] }));
|
|
675
746
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
676
|
-
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 });
|
|
677
748
|
DialogHeader.displayName = "DialogHeader";
|
|
678
|
-
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
749
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx12(
|
|
679
750
|
"div",
|
|
680
751
|
{
|
|
681
752
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -683,7 +754,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx10(
|
|
|
683
754
|
}
|
|
684
755
|
);
|
|
685
756
|
DialogFooter.displayName = "DialogFooter";
|
|
686
|
-
var DialogTitle =
|
|
757
|
+
var DialogTitle = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
687
758
|
DialogPrimitive.Title,
|
|
688
759
|
{
|
|
689
760
|
ref,
|
|
@@ -692,7 +763,7 @@ var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
692
763
|
}
|
|
693
764
|
));
|
|
694
765
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
695
|
-
var DialogDescription =
|
|
766
|
+
var DialogDescription = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
696
767
|
DialogPrimitive.Description,
|
|
697
768
|
{
|
|
698
769
|
ref,
|
|
@@ -703,17 +774,17 @@ var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
703
774
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
704
775
|
|
|
705
776
|
// src/components/dropdown-menu.tsx
|
|
706
|
-
import * as
|
|
777
|
+
import * as React11 from "react";
|
|
707
778
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
708
779
|
import { Check as Check3, ChevronRight, Circle as Circle2 } from "lucide-react";
|
|
709
|
-
import { jsx as
|
|
780
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
710
781
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
711
782
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
712
783
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
713
784
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
714
785
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
715
786
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
716
|
-
var DropdownMenuSubTrigger =
|
|
787
|
+
var DropdownMenuSubTrigger = React11.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
717
788
|
DropdownMenuPrimitive.SubTrigger,
|
|
718
789
|
{
|
|
719
790
|
ref,
|
|
@@ -725,12 +796,12 @@ var DropdownMenuSubTrigger = React9.forwardRef(({ className, inset, children, ..
|
|
|
725
796
|
...props,
|
|
726
797
|
children: [
|
|
727
798
|
children,
|
|
728
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
729
800
|
]
|
|
730
801
|
}
|
|
731
802
|
));
|
|
732
803
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
733
|
-
var DropdownMenuSubContent =
|
|
804
|
+
var DropdownMenuSubContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
734
805
|
DropdownMenuPrimitive.SubContent,
|
|
735
806
|
{
|
|
736
807
|
ref,
|
|
@@ -742,7 +813,7 @@ var DropdownMenuSubContent = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
742
813
|
}
|
|
743
814
|
));
|
|
744
815
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
745
|
-
var DropdownMenuContent =
|
|
816
|
+
var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
|
|
746
817
|
DropdownMenuPrimitive.Content,
|
|
747
818
|
{
|
|
748
819
|
ref,
|
|
@@ -755,7 +826,7 @@ var DropdownMenuContent = React9.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
755
826
|
}
|
|
756
827
|
) }));
|
|
757
828
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
758
|
-
var DropdownMenuItem =
|
|
829
|
+
var DropdownMenuItem = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
759
830
|
DropdownMenuPrimitive.Item,
|
|
760
831
|
{
|
|
761
832
|
ref,
|
|
@@ -768,7 +839,7 @@ var DropdownMenuItem = React9.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
768
839
|
}
|
|
769
840
|
));
|
|
770
841
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
771
|
-
var DropdownMenuCheckboxItem =
|
|
842
|
+
var DropdownMenuCheckboxItem = React11.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
772
843
|
DropdownMenuPrimitive.CheckboxItem,
|
|
773
844
|
{
|
|
774
845
|
ref,
|
|
@@ -779,13 +850,13 @@ var DropdownMenuCheckboxItem = React9.forwardRef(({ className, children, checked
|
|
|
779
850
|
checked,
|
|
780
851
|
...props,
|
|
781
852
|
children: [
|
|
782
|
-
/* @__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" }) }) }),
|
|
783
854
|
children
|
|
784
855
|
]
|
|
785
856
|
}
|
|
786
857
|
));
|
|
787
858
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
788
|
-
var DropdownMenuRadioItem =
|
|
859
|
+
var DropdownMenuRadioItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
789
860
|
DropdownMenuPrimitive.RadioItem,
|
|
790
861
|
{
|
|
791
862
|
ref,
|
|
@@ -795,13 +866,13 @@ var DropdownMenuRadioItem = React9.forwardRef(({ className, children, ...props }
|
|
|
795
866
|
),
|
|
796
867
|
...props,
|
|
797
868
|
children: [
|
|
798
|
-
/* @__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" }) }) }),
|
|
799
870
|
children
|
|
800
871
|
]
|
|
801
872
|
}
|
|
802
873
|
));
|
|
803
874
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
804
|
-
var DropdownMenuLabel =
|
|
875
|
+
var DropdownMenuLabel = React11.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
805
876
|
DropdownMenuPrimitive.Label,
|
|
806
877
|
{
|
|
807
878
|
ref,
|
|
@@ -814,7 +885,7 @@ var DropdownMenuLabel = React9.forwardRef(({ className, inset, ...props }, ref)
|
|
|
814
885
|
}
|
|
815
886
|
));
|
|
816
887
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
817
|
-
var DropdownMenuSeparator =
|
|
888
|
+
var DropdownMenuSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
818
889
|
DropdownMenuPrimitive.Separator,
|
|
819
890
|
{
|
|
820
891
|
ref,
|
|
@@ -824,22 +895,22 @@ var DropdownMenuSeparator = React9.forwardRef(({ className, ...props }, ref) =>
|
|
|
824
895
|
));
|
|
825
896
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
826
897
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
827
|
-
return /* @__PURE__ */
|
|
898
|
+
return /* @__PURE__ */ jsx13("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
828
899
|
};
|
|
829
900
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
830
901
|
|
|
831
902
|
// src/components/table.tsx
|
|
832
|
-
import * as
|
|
833
|
-
import { jsx as
|
|
834
|
-
var Table =
|
|
835
|
-
({ 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 }) })
|
|
836
907
|
);
|
|
837
908
|
Table.displayName = "Table";
|
|
838
|
-
var TableHeader =
|
|
909
|
+
var TableHeader = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
839
910
|
TableHeader.displayName = "TableHeader";
|
|
840
|
-
var TableBody =
|
|
911
|
+
var TableBody = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
841
912
|
TableBody.displayName = "TableBody";
|
|
842
|
-
var TableFooter =
|
|
913
|
+
var TableFooter = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
843
914
|
"tfoot",
|
|
844
915
|
{
|
|
845
916
|
ref,
|
|
@@ -848,8 +919,8 @@ var TableFooter = React10.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
848
919
|
}
|
|
849
920
|
));
|
|
850
921
|
TableFooter.displayName = "TableFooter";
|
|
851
|
-
var TableRow =
|
|
852
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
922
|
+
var TableRow = React12.forwardRef(
|
|
923
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
853
924
|
"tr",
|
|
854
925
|
{
|
|
855
926
|
ref,
|
|
@@ -862,7 +933,7 @@ var TableRow = React10.forwardRef(
|
|
|
862
933
|
)
|
|
863
934
|
);
|
|
864
935
|
TableRow.displayName = "TableRow";
|
|
865
|
-
var TableHead =
|
|
936
|
+
var TableHead = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
866
937
|
"th",
|
|
867
938
|
{
|
|
868
939
|
ref,
|
|
@@ -874,7 +945,7 @@ var TableHead = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
874
945
|
}
|
|
875
946
|
));
|
|
876
947
|
TableHead.displayName = "TableHead";
|
|
877
|
-
var TableCell =
|
|
948
|
+
var TableCell = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
878
949
|
"td",
|
|
879
950
|
{
|
|
880
951
|
ref,
|
|
@@ -883,7 +954,7 @@ var TableCell = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
883
954
|
}
|
|
884
955
|
));
|
|
885
956
|
TableCell.displayName = "TableCell";
|
|
886
|
-
var TableCaption =
|
|
957
|
+
var TableCaption = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
887
958
|
"caption",
|
|
888
959
|
{
|
|
889
960
|
ref,
|
|
@@ -894,11 +965,11 @@ var TableCaption = React10.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
894
965
|
TableCaption.displayName = "TableCaption";
|
|
895
966
|
|
|
896
967
|
// src/components/tabs.tsx
|
|
897
|
-
import * as
|
|
968
|
+
import * as React13 from "react";
|
|
898
969
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
899
|
-
import { jsx as
|
|
970
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
900
971
|
var Tabs = TabsPrimitive.Root;
|
|
901
|
-
var TabsList =
|
|
972
|
+
var TabsList = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
902
973
|
TabsPrimitive.List,
|
|
903
974
|
{
|
|
904
975
|
ref,
|
|
@@ -910,7 +981,7 @@ var TabsList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
910
981
|
}
|
|
911
982
|
));
|
|
912
983
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
913
|
-
var TabsTrigger =
|
|
984
|
+
var TabsTrigger = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
914
985
|
TabsPrimitive.Trigger,
|
|
915
986
|
{
|
|
916
987
|
ref,
|
|
@@ -922,7 +993,7 @@ var TabsTrigger = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
922
993
|
}
|
|
923
994
|
));
|
|
924
995
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
925
|
-
var TabsContent =
|
|
996
|
+
var TabsContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
926
997
|
TabsPrimitive.Content,
|
|
927
998
|
{
|
|
928
999
|
ref,
|
|
@@ -936,13 +1007,13 @@ var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
936
1007
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
937
1008
|
|
|
938
1009
|
// src/components/toast.tsx
|
|
939
|
-
import * as
|
|
1010
|
+
import * as React14 from "react";
|
|
940
1011
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
941
|
-
import { cva as
|
|
1012
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
942
1013
|
import { X as X2 } from "lucide-react";
|
|
943
|
-
import { jsx as
|
|
1014
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
944
1015
|
var ToastProvider = ToastPrimitives.Provider;
|
|
945
|
-
var ToastViewport =
|
|
1016
|
+
var ToastViewport = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
946
1017
|
ToastPrimitives.Viewport,
|
|
947
1018
|
{
|
|
948
1019
|
ref,
|
|
@@ -954,7 +1025,7 @@ var ToastViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
954
1025
|
}
|
|
955
1026
|
));
|
|
956
1027
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
957
|
-
var toastVariants =
|
|
1028
|
+
var toastVariants = cva4(
|
|
958
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",
|
|
959
1030
|
{
|
|
960
1031
|
variants: {
|
|
@@ -968,8 +1039,8 @@ var toastVariants = cva2(
|
|
|
968
1039
|
}
|
|
969
1040
|
}
|
|
970
1041
|
);
|
|
971
|
-
var Toast =
|
|
972
|
-
return /* @__PURE__ */
|
|
1042
|
+
var Toast = React14.forwardRef(({ className, variant, ...props }, ref) => {
|
|
1043
|
+
return /* @__PURE__ */ jsx16(
|
|
973
1044
|
ToastPrimitives.Root,
|
|
974
1045
|
{
|
|
975
1046
|
ref,
|
|
@@ -979,7 +1050,7 @@ var Toast = React12.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
979
1050
|
);
|
|
980
1051
|
});
|
|
981
1052
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
982
|
-
var ToastAction =
|
|
1053
|
+
var ToastAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
983
1054
|
ToastPrimitives.Action,
|
|
984
1055
|
{
|
|
985
1056
|
ref,
|
|
@@ -991,7 +1062,7 @@ var ToastAction = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
991
1062
|
}
|
|
992
1063
|
));
|
|
993
1064
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
994
|
-
var ToastClose =
|
|
1065
|
+
var ToastClose = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
995
1066
|
ToastPrimitives.Close,
|
|
996
1067
|
{
|
|
997
1068
|
ref,
|
|
@@ -1001,13 +1072,13 @@ var ToastClose = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1001
1072
|
),
|
|
1002
1073
|
"toast-close": "",
|
|
1003
1074
|
...props,
|
|
1004
|
-
children: /* @__PURE__ */
|
|
1075
|
+
children: /* @__PURE__ */ jsx16(X2, { className: "h-4 w-4" })
|
|
1005
1076
|
}
|
|
1006
1077
|
));
|
|
1007
1078
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1008
|
-
var ToastTitle =
|
|
1079
|
+
var ToastTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(ToastPrimitives.Title, { ref, className: cn("text-sm font-semibold", className), ...props }));
|
|
1009
1080
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1010
|
-
var ToastDescription =
|
|
1081
|
+
var ToastDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1011
1082
|
ToastPrimitives.Description,
|
|
1012
1083
|
{
|
|
1013
1084
|
ref,
|
|
@@ -1018,13 +1089,13 @@ var ToastDescription = React12.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1018
1089
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
1019
1090
|
|
|
1020
1091
|
// src/components/tooltip.tsx
|
|
1021
|
-
import * as
|
|
1092
|
+
import * as React15 from "react";
|
|
1022
1093
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1023
|
-
import { jsx as
|
|
1094
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1024
1095
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1025
1096
|
var Tooltip = TooltipPrimitive.Root;
|
|
1026
1097
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1027
|
-
var TooltipContent =
|
|
1098
|
+
var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
1028
1099
|
TooltipPrimitive.Content,
|
|
1029
1100
|
{
|
|
1030
1101
|
ref,
|
|
@@ -1039,12 +1110,12 @@ var TooltipContent = React13.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
1039
1110
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1040
1111
|
|
|
1041
1112
|
// src/components/popover.tsx
|
|
1042
|
-
import * as
|
|
1113
|
+
import * as React16 from "react";
|
|
1043
1114
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1044
|
-
import { jsx as
|
|
1115
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1045
1116
|
var Popover = PopoverPrimitive.Root;
|
|
1046
1117
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1047
|
-
var PopoverContent =
|
|
1118
|
+
var PopoverContent = React16.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx18(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
|
|
1048
1119
|
PopoverPrimitive.Content,
|
|
1049
1120
|
{
|
|
1050
1121
|
ref,
|
|
@@ -1060,16 +1131,16 @@ var PopoverContent = React14.forwardRef(({ className, align = "center", sideOffs
|
|
|
1060
1131
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1061
1132
|
|
|
1062
1133
|
// src/components/sheet.tsx
|
|
1063
|
-
import * as
|
|
1134
|
+
import * as React17 from "react";
|
|
1064
1135
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
1065
|
-
import { cva as
|
|
1136
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
1066
1137
|
import { X as X3 } from "lucide-react";
|
|
1067
|
-
import { jsx as
|
|
1138
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1068
1139
|
var Sheet = SheetPrimitive.Root;
|
|
1069
1140
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1070
1141
|
var SheetClose = SheetPrimitive.Close;
|
|
1071
1142
|
var SheetPortal = SheetPrimitive.Portal;
|
|
1072
|
-
var SheetOverlay =
|
|
1143
|
+
var SheetOverlay = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1073
1144
|
SheetPrimitive.Overlay,
|
|
1074
1145
|
{
|
|
1075
1146
|
className: cn(
|
|
@@ -1081,7 +1152,7 @@ var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1081
1152
|
}
|
|
1082
1153
|
));
|
|
1083
1154
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
1084
|
-
var sheetVariants =
|
|
1155
|
+
var sheetVariants = cva5(
|
|
1085
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",
|
|
1086
1157
|
{
|
|
1087
1158
|
variants: {
|
|
@@ -1097,18 +1168,18 @@ var sheetVariants = cva3(
|
|
|
1097
1168
|
}
|
|
1098
1169
|
}
|
|
1099
1170
|
);
|
|
1100
|
-
var SheetContent =
|
|
1101
|
-
/* @__PURE__ */
|
|
1171
|
+
var SheetContent = React17.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(SheetPortal, { children: [
|
|
1172
|
+
/* @__PURE__ */ jsx19(SheetOverlay, {}),
|
|
1102
1173
|
/* @__PURE__ */ jsxs5(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
1103
1174
|
children,
|
|
1104
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: [
|
|
1105
|
-
/* @__PURE__ */
|
|
1106
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ jsx19(X3, { className: "h-4 w-4" }),
|
|
1177
|
+
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
1107
1178
|
] })
|
|
1108
1179
|
] })
|
|
1109
1180
|
] }));
|
|
1110
1181
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
1111
|
-
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
1182
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx19(
|
|
1112
1183
|
"div",
|
|
1113
1184
|
{
|
|
1114
1185
|
className: cn("flex flex-col space-y-[var(--spacing-2)] text-center sm:text-left", className),
|
|
@@ -1116,7 +1187,7 @@ var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx17(
|
|
|
1116
1187
|
}
|
|
1117
1188
|
);
|
|
1118
1189
|
SheetHeader.displayName = "SheetHeader";
|
|
1119
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1190
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx19(
|
|
1120
1191
|
"div",
|
|
1121
1192
|
{
|
|
1122
1193
|
className: cn(
|
|
@@ -1127,7 +1198,7 @@ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx17(
|
|
|
1127
1198
|
}
|
|
1128
1199
|
);
|
|
1129
1200
|
SheetFooter.displayName = "SheetFooter";
|
|
1130
|
-
var SheetTitle =
|
|
1201
|
+
var SheetTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1131
1202
|
SheetPrimitive.Title,
|
|
1132
1203
|
{
|
|
1133
1204
|
ref,
|
|
@@ -1136,7 +1207,7 @@ var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1136
1207
|
}
|
|
1137
1208
|
));
|
|
1138
1209
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1139
|
-
var SheetDescription =
|
|
1210
|
+
var SheetDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1140
1211
|
SheetPrimitive.Description,
|
|
1141
1212
|
{
|
|
1142
1213
|
ref,
|
|
@@ -1147,13 +1218,13 @@ var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1147
1218
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
1148
1219
|
|
|
1149
1220
|
// src/components/alert-dialog.tsx
|
|
1150
|
-
import * as
|
|
1221
|
+
import * as React18 from "react";
|
|
1151
1222
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1152
|
-
import { jsx as
|
|
1223
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1153
1224
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1154
1225
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1155
1226
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1156
|
-
var AlertDialogOverlay =
|
|
1227
|
+
var AlertDialogOverlay = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1157
1228
|
AlertDialogPrimitive.Overlay,
|
|
1158
1229
|
{
|
|
1159
1230
|
className: cn(
|
|
@@ -1165,9 +1236,9 @@ var AlertDialogOverlay = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1165
1236
|
}
|
|
1166
1237
|
));
|
|
1167
1238
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
1168
|
-
var AlertDialogContent =
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
-
/* @__PURE__ */
|
|
1239
|
+
var AlertDialogContent = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs6(AlertDialogPortal, { children: [
|
|
1240
|
+
/* @__PURE__ */ jsx20(AlertDialogOverlay, {}),
|
|
1241
|
+
/* @__PURE__ */ jsx20(
|
|
1171
1242
|
AlertDialogPrimitive.Content,
|
|
1172
1243
|
{
|
|
1173
1244
|
ref,
|
|
@@ -1180,9 +1251,9 @@ var AlertDialogContent = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1180
1251
|
)
|
|
1181
1252
|
] }));
|
|
1182
1253
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
1183
|
-
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 });
|
|
1184
1255
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1185
|
-
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
1256
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx20(
|
|
1186
1257
|
"div",
|
|
1187
1258
|
{
|
|
1188
1259
|
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
@@ -1190,7 +1261,7 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx18(
|
|
|
1190
1261
|
}
|
|
1191
1262
|
);
|
|
1192
1263
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1193
|
-
var AlertDialogTitle =
|
|
1264
|
+
var AlertDialogTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1194
1265
|
AlertDialogPrimitive.Title,
|
|
1195
1266
|
{
|
|
1196
1267
|
ref,
|
|
@@ -1199,7 +1270,7 @@ var AlertDialogTitle = React16.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1199
1270
|
}
|
|
1200
1271
|
));
|
|
1201
1272
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
1202
|
-
var AlertDialogDescription =
|
|
1273
|
+
var AlertDialogDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1203
1274
|
AlertDialogPrimitive.Description,
|
|
1204
1275
|
{
|
|
1205
1276
|
ref,
|
|
@@ -1208,9 +1279,9 @@ var AlertDialogDescription = React16.forwardRef(({ className, ...props }, ref) =
|
|
|
1208
1279
|
}
|
|
1209
1280
|
));
|
|
1210
1281
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
1211
|
-
var AlertDialogAction =
|
|
1282
|
+
var AlertDialogAction = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
1212
1283
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
1213
|
-
var AlertDialogCancel =
|
|
1284
|
+
var AlertDialogCancel = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
1214
1285
|
AlertDialogPrimitive.Cancel,
|
|
1215
1286
|
{
|
|
1216
1287
|
ref,
|
|
@@ -1221,10 +1292,10 @@ var AlertDialogCancel = React16.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1221
1292
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
1222
1293
|
|
|
1223
1294
|
// src/components/progress.tsx
|
|
1224
|
-
import * as
|
|
1295
|
+
import * as React19 from "react";
|
|
1225
1296
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1226
|
-
import { jsx as
|
|
1227
|
-
var Progress =
|
|
1297
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1298
|
+
var Progress = React19.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1228
1299
|
ProgressPrimitive.Root,
|
|
1229
1300
|
{
|
|
1230
1301
|
ref,
|
|
@@ -1237,7 +1308,7 @@ var Progress = React17.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
1237
1308
|
className
|
|
1238
1309
|
),
|
|
1239
1310
|
...props,
|
|
1240
|
-
children: /* @__PURE__ */
|
|
1311
|
+
children: /* @__PURE__ */ jsx21(
|
|
1241
1312
|
ProgressPrimitive.Indicator,
|
|
1242
1313
|
{
|
|
1243
1314
|
className: "h-full w-full flex-1 bg-[var(--bg-primary)] transition-all",
|
|
@@ -1249,10 +1320,10 @@ var Progress = React17.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
1249
1320
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1250
1321
|
|
|
1251
1322
|
// src/components/sidebar.tsx
|
|
1252
|
-
import * as
|
|
1253
|
-
import { cva as
|
|
1254
|
-
import { jsx as
|
|
1255
|
-
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(
|
|
1256
1327
|
"flex flex-col border-r border-[var(--border-default)] bg-[var(--bg-background)] transition-all duration-300",
|
|
1257
1328
|
{
|
|
1258
1329
|
variants: {
|
|
@@ -1272,7 +1343,7 @@ var sidebarVariants = cva4(
|
|
|
1272
1343
|
}
|
|
1273
1344
|
}
|
|
1274
1345
|
);
|
|
1275
|
-
var sidebarHeaderVariants =
|
|
1346
|
+
var sidebarHeaderVariants = cva6(
|
|
1276
1347
|
"flex items-center gap-[var(--spacing-2)] border-b border-[var(--border-default)] bg-[var(--bg-card)] p-[var(--spacing-4)]",
|
|
1277
1348
|
{
|
|
1278
1349
|
variants: {
|
|
@@ -1287,7 +1358,7 @@ var sidebarHeaderVariants = cva4(
|
|
|
1287
1358
|
}
|
|
1288
1359
|
}
|
|
1289
1360
|
);
|
|
1290
|
-
var sidebarContentVariants =
|
|
1361
|
+
var sidebarContentVariants = cva6("flex-1 overflow-y-auto p-[var(--spacing-4)]", {
|
|
1291
1362
|
variants: {
|
|
1292
1363
|
spacing: {
|
|
1293
1364
|
default: "space-y-[var(--spacing-2)]",
|
|
@@ -1299,7 +1370,7 @@ var sidebarContentVariants = cva4("flex-1 overflow-y-auto p-[var(--spacing-4)]",
|
|
|
1299
1370
|
spacing: "default"
|
|
1300
1371
|
}
|
|
1301
1372
|
});
|
|
1302
|
-
var sidebarItemVariants =
|
|
1373
|
+
var sidebarItemVariants = cva6(
|
|
1303
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",
|
|
1304
1375
|
{
|
|
1305
1376
|
variants: {
|
|
@@ -1313,21 +1384,21 @@ var sidebarItemVariants = cva4(
|
|
|
1313
1384
|
}
|
|
1314
1385
|
}
|
|
1315
1386
|
);
|
|
1316
|
-
var sidebarSectionVariants =
|
|
1387
|
+
var sidebarSectionVariants = cva6("space-y-[var(--spacing-1)]", {
|
|
1317
1388
|
variants: {}
|
|
1318
1389
|
});
|
|
1319
|
-
var sidebarSectionTitleVariants =
|
|
1390
|
+
var sidebarSectionTitleVariants = cva6(
|
|
1320
1391
|
"px-[var(--spacing-3)] py-[var(--spacing-2)] text-xs font-semibold uppercase tracking-wider text-[var(--text-muted-foreground)]",
|
|
1321
1392
|
{
|
|
1322
1393
|
variants: {}
|
|
1323
1394
|
}
|
|
1324
1395
|
);
|
|
1325
|
-
var sidebarFooterVariants =
|
|
1396
|
+
var sidebarFooterVariants = cva6("border-t border-[var(--border-default)] p-[var(--spacing-4)]", {
|
|
1326
1397
|
variants: {}
|
|
1327
1398
|
});
|
|
1328
|
-
var Sidebar =
|
|
1399
|
+
var Sidebar = React20.forwardRef(
|
|
1329
1400
|
({ className, variant, size, collapsed, ...props }, ref) => {
|
|
1330
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsx22(
|
|
1331
1402
|
"div",
|
|
1332
1403
|
{
|
|
1333
1404
|
ref,
|
|
@@ -1340,19 +1411,19 @@ var Sidebar = React18.forwardRef(
|
|
|
1340
1411
|
}
|
|
1341
1412
|
);
|
|
1342
1413
|
Sidebar.displayName = "Sidebar";
|
|
1343
|
-
var SidebarHeader =
|
|
1414
|
+
var SidebarHeader = React20.forwardRef(
|
|
1344
1415
|
({ className, size, ...props }, ref) => {
|
|
1345
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarHeaderVariants({ size, className })), ...props });
|
|
1346
1417
|
}
|
|
1347
1418
|
);
|
|
1348
1419
|
SidebarHeader.displayName = "SidebarHeader";
|
|
1349
|
-
var SidebarContent =
|
|
1420
|
+
var SidebarContent = React20.forwardRef(
|
|
1350
1421
|
({ className, spacing, ...props }, ref) => {
|
|
1351
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarContentVariants({ spacing, className })), ...props });
|
|
1352
1423
|
}
|
|
1353
1424
|
);
|
|
1354
1425
|
SidebarContent.displayName = "SidebarContent";
|
|
1355
|
-
var SidebarItem =
|
|
1426
|
+
var SidebarItem = React20.forwardRef(
|
|
1356
1427
|
({ className, variant, icon, badge, children, active, ...props }, ref) => {
|
|
1357
1428
|
return /* @__PURE__ */ jsxs7(
|
|
1358
1429
|
"button",
|
|
@@ -1361,25 +1432,25 @@ var SidebarItem = React18.forwardRef(
|
|
|
1361
1432
|
className: cn(sidebarItemVariants({ variant: active ? "active" : variant, className })),
|
|
1362
1433
|
...props,
|
|
1363
1434
|
children: [
|
|
1364
|
-
icon && /* @__PURE__ */
|
|
1365
|
-
/* @__PURE__ */
|
|
1366
|
-
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 })
|
|
1367
1438
|
]
|
|
1368
1439
|
}
|
|
1369
1440
|
);
|
|
1370
1441
|
}
|
|
1371
1442
|
);
|
|
1372
1443
|
SidebarItem.displayName = "SidebarItem";
|
|
1373
|
-
var SidebarSection =
|
|
1444
|
+
var SidebarSection = React20.forwardRef(
|
|
1374
1445
|
({ className, title, collapsed, children, ...props }, ref) => {
|
|
1375
|
-
const [isCollapsed, setIsCollapsed] =
|
|
1376
|
-
|
|
1446
|
+
const [isCollapsed, setIsCollapsed] = React20.useState(collapsed ?? false);
|
|
1447
|
+
React20.useEffect(() => {
|
|
1377
1448
|
if (collapsed !== void 0) {
|
|
1378
1449
|
setIsCollapsed(collapsed);
|
|
1379
1450
|
}
|
|
1380
1451
|
}, [collapsed]);
|
|
1381
1452
|
return /* @__PURE__ */ jsxs7("div", { ref, className: cn(sidebarSectionVariants({ className })), ...props, children: [
|
|
1382
|
-
title && /* @__PURE__ */
|
|
1453
|
+
title && /* @__PURE__ */ jsx22(
|
|
1383
1454
|
"button",
|
|
1384
1455
|
{
|
|
1385
1456
|
className: cn(
|
|
@@ -1390,7 +1461,7 @@ var SidebarSection = React18.forwardRef(
|
|
|
1390
1461
|
"aria-expanded": !isCollapsed,
|
|
1391
1462
|
children: /* @__PURE__ */ jsxs7("span", { className: "flex items-center justify-between", children: [
|
|
1392
1463
|
title,
|
|
1393
|
-
/* @__PURE__ */
|
|
1464
|
+
/* @__PURE__ */ jsx22(
|
|
1394
1465
|
"span",
|
|
1395
1466
|
{
|
|
1396
1467
|
className: cn("transition-transform", isCollapsed ? "rotate-0" : "rotate-90"),
|
|
@@ -1401,30 +1472,30 @@ var SidebarSection = React18.forwardRef(
|
|
|
1401
1472
|
] })
|
|
1402
1473
|
}
|
|
1403
1474
|
),
|
|
1404
|
-
!isCollapsed && /* @__PURE__ */
|
|
1475
|
+
!isCollapsed && /* @__PURE__ */ jsx22("div", { className: "space-y-[var(--spacing-1)]", children })
|
|
1405
1476
|
] });
|
|
1406
1477
|
}
|
|
1407
1478
|
);
|
|
1408
1479
|
SidebarSection.displayName = "SidebarSection";
|
|
1409
|
-
var SidebarSectionTitle =
|
|
1480
|
+
var SidebarSectionTitle = React20.forwardRef(
|
|
1410
1481
|
({ className, ...props }, ref) => {
|
|
1411
|
-
return /* @__PURE__ */
|
|
1482
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarSectionTitleVariants({ className })), ...props });
|
|
1412
1483
|
}
|
|
1413
1484
|
);
|
|
1414
1485
|
SidebarSectionTitle.displayName = "SidebarSectionTitle";
|
|
1415
|
-
var SidebarFooter =
|
|
1486
|
+
var SidebarFooter = React20.forwardRef(
|
|
1416
1487
|
({ className, ...props }, ref) => {
|
|
1417
|
-
return /* @__PURE__ */
|
|
1488
|
+
return /* @__PURE__ */ jsx22("div", { ref, className: cn(sidebarFooterVariants({ className })), ...props });
|
|
1418
1489
|
}
|
|
1419
1490
|
);
|
|
1420
1491
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1421
1492
|
|
|
1422
1493
|
// src/components/navigation-menu.tsx
|
|
1423
|
-
import * as
|
|
1494
|
+
import * as React21 from "react";
|
|
1424
1495
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1425
|
-
import { cva as
|
|
1426
|
-
import { jsx as
|
|
1427
|
-
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(
|
|
1428
1499
|
NavigationMenuPrimitive.Root,
|
|
1429
1500
|
{
|
|
1430
1501
|
ref,
|
|
@@ -1432,12 +1503,12 @@ var NavigationMenu = React19.forwardRef(({ className, children, ...props }, ref)
|
|
|
1432
1503
|
...props,
|
|
1433
1504
|
children: [
|
|
1434
1505
|
children,
|
|
1435
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx23(NavigationMenuViewport, {})
|
|
1436
1507
|
]
|
|
1437
1508
|
}
|
|
1438
1509
|
));
|
|
1439
1510
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1440
|
-
var NavigationMenuList =
|
|
1511
|
+
var NavigationMenuList = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1441
1512
|
NavigationMenuPrimitive.List,
|
|
1442
1513
|
{
|
|
1443
1514
|
ref,
|
|
@@ -1450,10 +1521,10 @@ var NavigationMenuList = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1450
1521
|
));
|
|
1451
1522
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1452
1523
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1453
|
-
var navigationMenuTriggerStyle =
|
|
1524
|
+
var navigationMenuTriggerStyle = cva7(
|
|
1454
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"
|
|
1455
1526
|
);
|
|
1456
|
-
var NavigationMenuTrigger =
|
|
1527
|
+
var NavigationMenuTrigger = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(
|
|
1457
1528
|
NavigationMenuPrimitive.Trigger,
|
|
1458
1529
|
{
|
|
1459
1530
|
ref,
|
|
@@ -1462,7 +1533,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1462
1533
|
children: [
|
|
1463
1534
|
children,
|
|
1464
1535
|
" ",
|
|
1465
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ jsx23(
|
|
1466
1537
|
"svg",
|
|
1467
1538
|
{
|
|
1468
1539
|
width: "12",
|
|
@@ -1472,7 +1543,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1472
1543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1473
1544
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1474
1545
|
"aria-hidden": "true",
|
|
1475
|
-
children: /* @__PURE__ */
|
|
1546
|
+
children: /* @__PURE__ */ jsx23(
|
|
1476
1547
|
"path",
|
|
1477
1548
|
{
|
|
1478
1549
|
d: "M2.5 4.5L6 8L9.5 4.5",
|
|
@@ -1488,7 +1559,7 @@ var NavigationMenuTrigger = React19.forwardRef(({ className, children, ...props
|
|
|
1488
1559
|
}
|
|
1489
1560
|
));
|
|
1490
1561
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1491
|
-
var NavigationMenuContent =
|
|
1562
|
+
var NavigationMenuContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1492
1563
|
NavigationMenuPrimitive.Content,
|
|
1493
1564
|
{
|
|
1494
1565
|
ref,
|
|
@@ -1501,7 +1572,7 @@ var NavigationMenuContent = React19.forwardRef(({ className, ...props }, ref) =>
|
|
|
1501
1572
|
));
|
|
1502
1573
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1503
1574
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1504
|
-
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(
|
|
1505
1576
|
NavigationMenuPrimitive.Viewport,
|
|
1506
1577
|
{
|
|
1507
1578
|
className: cn(
|
|
@@ -1513,7 +1584,7 @@ var NavigationMenuViewport = React19.forwardRef(({ className, ...props }, ref) =
|
|
|
1513
1584
|
}
|
|
1514
1585
|
) }));
|
|
1515
1586
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1516
|
-
var NavigationMenuIndicator =
|
|
1587
|
+
var NavigationMenuIndicator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1517
1588
|
NavigationMenuPrimitive.Indicator,
|
|
1518
1589
|
{
|
|
1519
1590
|
ref,
|
|
@@ -1522,16 +1593,16 @@ var NavigationMenuIndicator = React19.forwardRef(({ className, ...props }, ref)
|
|
|
1522
1593
|
className
|
|
1523
1594
|
),
|
|
1524
1595
|
...props,
|
|
1525
|
-
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" })
|
|
1526
1597
|
}
|
|
1527
1598
|
));
|
|
1528
1599
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1529
1600
|
|
|
1530
1601
|
// src/components/breadcrumb.tsx
|
|
1531
|
-
import * as
|
|
1532
|
-
import { cva as
|
|
1533
|
-
import { jsx as
|
|
1534
|
-
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)]", {
|
|
1535
1606
|
variants: {
|
|
1536
1607
|
size: {
|
|
1537
1608
|
sm: "text-xs",
|
|
@@ -1543,13 +1614,13 @@ var breadcrumbVariants = cva6("flex items-center gap-[var(--spacing-2)]", {
|
|
|
1543
1614
|
size: "default"
|
|
1544
1615
|
}
|
|
1545
1616
|
});
|
|
1546
|
-
var breadcrumbListVariants =
|
|
1617
|
+
var breadcrumbListVariants = cva8("flex flex-wrap items-center gap-1.5 break-words", {
|
|
1547
1618
|
variants: {}
|
|
1548
1619
|
});
|
|
1549
|
-
var breadcrumbItemVariants =
|
|
1620
|
+
var breadcrumbItemVariants = cva8("inline-flex items-center gap-1.5", {
|
|
1550
1621
|
variants: {}
|
|
1551
1622
|
});
|
|
1552
|
-
var breadcrumbLinkVariants =
|
|
1623
|
+
var breadcrumbLinkVariants = cva8(
|
|
1553
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)]",
|
|
1554
1625
|
{
|
|
1555
1626
|
variants: {
|
|
@@ -1563,18 +1634,18 @@ var breadcrumbLinkVariants = cva6(
|
|
|
1563
1634
|
}
|
|
1564
1635
|
}
|
|
1565
1636
|
);
|
|
1566
|
-
var breadcrumbSeparatorVariants =
|
|
1637
|
+
var breadcrumbSeparatorVariants = cva8("text-[var(--text-muted-foreground)] select-none", {
|
|
1567
1638
|
variants: {}
|
|
1568
1639
|
});
|
|
1569
|
-
var breadcrumbEllipsisVariants =
|
|
1640
|
+
var breadcrumbEllipsisVariants = cva8(
|
|
1570
1641
|
"inline-flex h-9 w-9 items-center justify-center text-[var(--text-muted-foreground)]",
|
|
1571
1642
|
{
|
|
1572
1643
|
variants: {}
|
|
1573
1644
|
}
|
|
1574
1645
|
);
|
|
1575
|
-
var Breadcrumb =
|
|
1646
|
+
var Breadcrumb = React22.forwardRef(
|
|
1576
1647
|
({ className, size, separator: _separator = "/", ...props }, ref) => {
|
|
1577
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ jsx24(
|
|
1578
1649
|
"nav",
|
|
1579
1650
|
{
|
|
1580
1651
|
ref,
|
|
@@ -1586,18 +1657,18 @@ var Breadcrumb = React20.forwardRef(
|
|
|
1586
1657
|
}
|
|
1587
1658
|
);
|
|
1588
1659
|
Breadcrumb.displayName = "Breadcrumb";
|
|
1589
|
-
var BreadcrumbList =
|
|
1590
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1660
|
+
var BreadcrumbList = React22.forwardRef(
|
|
1661
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24("ol", { ref, className: cn(breadcrumbListVariants({ className })), ...props })
|
|
1591
1662
|
);
|
|
1592
1663
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
1593
|
-
var BreadcrumbItem =
|
|
1594
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1664
|
+
var BreadcrumbItem = React22.forwardRef(
|
|
1665
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24("li", { ref, className: cn(breadcrumbItemVariants({ className })), ...props })
|
|
1595
1666
|
);
|
|
1596
1667
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
1597
|
-
var BreadcrumbLink =
|
|
1668
|
+
var BreadcrumbLink = React22.forwardRef(
|
|
1598
1669
|
({ className, active, asChild = false, ...props }, ref) => {
|
|
1599
|
-
const Comp = asChild ?
|
|
1600
|
-
return /* @__PURE__ */
|
|
1670
|
+
const Comp = asChild ? React22.Fragment : "a";
|
|
1671
|
+
return /* @__PURE__ */ jsx24(
|
|
1601
1672
|
Comp,
|
|
1602
1673
|
{
|
|
1603
1674
|
ref: asChild ? void 0 : ref,
|
|
@@ -1610,8 +1681,8 @@ var BreadcrumbLink = React20.forwardRef(
|
|
|
1610
1681
|
}
|
|
1611
1682
|
);
|
|
1612
1683
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
1613
|
-
var BreadcrumbPage =
|
|
1614
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
1684
|
+
var BreadcrumbPage = React22.forwardRef(
|
|
1685
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1615
1686
|
"span",
|
|
1616
1687
|
{
|
|
1617
1688
|
ref,
|
|
@@ -1628,8 +1699,8 @@ var BreadcrumbPage = React20.forwardRef(
|
|
|
1628
1699
|
)
|
|
1629
1700
|
);
|
|
1630
1701
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
1631
|
-
var BreadcrumbSeparator =
|
|
1632
|
-
({ children, className, ...props }, ref) => /* @__PURE__ */
|
|
1702
|
+
var BreadcrumbSeparator = React22.forwardRef(
|
|
1703
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1633
1704
|
"li",
|
|
1634
1705
|
{
|
|
1635
1706
|
ref,
|
|
@@ -1642,7 +1713,7 @@ var BreadcrumbSeparator = React20.forwardRef(
|
|
|
1642
1713
|
)
|
|
1643
1714
|
);
|
|
1644
1715
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
1645
|
-
var BreadcrumbEllipsis =
|
|
1716
|
+
var BreadcrumbEllipsis = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
1646
1717
|
"span",
|
|
1647
1718
|
{
|
|
1648
1719
|
ref,
|
|
@@ -1651,7 +1722,7 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1651
1722
|
className: cn(breadcrumbEllipsisVariants({ className })),
|
|
1652
1723
|
...props,
|
|
1653
1724
|
children: [
|
|
1654
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ jsx24(
|
|
1655
1726
|
"svg",
|
|
1656
1727
|
{
|
|
1657
1728
|
width: "15",
|
|
@@ -1660,7 +1731,7 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1660
1731
|
fill: "none",
|
|
1661
1732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1662
1733
|
"aria-hidden": "true",
|
|
1663
|
-
children: /* @__PURE__ */
|
|
1734
|
+
children: /* @__PURE__ */ jsx24(
|
|
1664
1735
|
"path",
|
|
1665
1736
|
{
|
|
1666
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",
|
|
@@ -1671,17 +1742,17 @@ var BreadcrumbEllipsis = React20.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1671
1742
|
)
|
|
1672
1743
|
}
|
|
1673
1744
|
),
|
|
1674
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ jsx24("span", { className: "sr-only", children: "More" })
|
|
1675
1746
|
]
|
|
1676
1747
|
}
|
|
1677
1748
|
));
|
|
1678
1749
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
1679
1750
|
|
|
1680
1751
|
// src/components/command.tsx
|
|
1681
|
-
import * as
|
|
1752
|
+
import * as React23 from "react";
|
|
1682
1753
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1683
|
-
import { jsx as
|
|
1684
|
-
var Command =
|
|
1754
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1755
|
+
var Command = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1685
1756
|
CommandPrimitive,
|
|
1686
1757
|
{
|
|
1687
1758
|
ref,
|
|
@@ -1697,24 +1768,24 @@ var CommandDialog = ({
|
|
|
1697
1768
|
children,
|
|
1698
1769
|
...props
|
|
1699
1770
|
}) => {
|
|
1700
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ jsx25(
|
|
1701
1772
|
CommandPrimitive.Dialog,
|
|
1702
1773
|
{
|
|
1703
1774
|
...props,
|
|
1704
1775
|
className: cn(
|
|
1705
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"
|
|
1706
1777
|
),
|
|
1707
|
-
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 }) })
|
|
1708
1779
|
}
|
|
1709
1780
|
);
|
|
1710
1781
|
};
|
|
1711
|
-
var CommandInput =
|
|
1782
|
+
var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs10(
|
|
1712
1783
|
"div",
|
|
1713
1784
|
{
|
|
1714
1785
|
className: "flex items-center border-b border-[var(--border-default)] px-3",
|
|
1715
1786
|
"cmdk-input-wrapper": "",
|
|
1716
1787
|
children: [
|
|
1717
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsx25(
|
|
1718
1789
|
"svg",
|
|
1719
1790
|
{
|
|
1720
1791
|
width: "15",
|
|
@@ -1723,7 +1794,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1723
1794
|
fill: "none",
|
|
1724
1795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1725
1796
|
className: "mr-2 h-4 w-4 shrink-0 opacity-50",
|
|
1726
|
-
children: /* @__PURE__ */
|
|
1797
|
+
children: /* @__PURE__ */ jsx25(
|
|
1727
1798
|
"path",
|
|
1728
1799
|
{
|
|
1729
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",
|
|
@@ -1734,7 +1805,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1734
1805
|
)
|
|
1735
1806
|
}
|
|
1736
1807
|
),
|
|
1737
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsx25(
|
|
1738
1809
|
CommandPrimitive.Input,
|
|
1739
1810
|
{
|
|
1740
1811
|
ref,
|
|
@@ -1749,7 +1820,7 @@ var CommandInput = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1749
1820
|
}
|
|
1750
1821
|
));
|
|
1751
1822
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
1752
|
-
var CommandList =
|
|
1823
|
+
var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1753
1824
|
CommandPrimitive.List,
|
|
1754
1825
|
{
|
|
1755
1826
|
ref,
|
|
@@ -1758,7 +1829,7 @@ var CommandList = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1758
1829
|
}
|
|
1759
1830
|
));
|
|
1760
1831
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
1761
|
-
var CommandEmpty =
|
|
1832
|
+
var CommandEmpty = React23.forwardRef((props, ref) => /* @__PURE__ */ jsx25(
|
|
1762
1833
|
CommandPrimitive.Empty,
|
|
1763
1834
|
{
|
|
1764
1835
|
ref,
|
|
@@ -1767,7 +1838,7 @@ var CommandEmpty = React21.forwardRef((props, ref) => /* @__PURE__ */ jsx23(
|
|
|
1767
1838
|
}
|
|
1768
1839
|
));
|
|
1769
1840
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
1770
|
-
var CommandGroup =
|
|
1841
|
+
var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1771
1842
|
CommandPrimitive.Group,
|
|
1772
1843
|
{
|
|
1773
1844
|
ref,
|
|
@@ -1779,7 +1850,7 @@ var CommandGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1779
1850
|
}
|
|
1780
1851
|
));
|
|
1781
1852
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
1782
|
-
var CommandSeparator =
|
|
1853
|
+
var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1783
1854
|
CommandPrimitive.Separator,
|
|
1784
1855
|
{
|
|
1785
1856
|
ref,
|
|
@@ -1788,7 +1859,7 @@ var CommandSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1788
1859
|
}
|
|
1789
1860
|
));
|
|
1790
1861
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
1791
|
-
var CommandItem =
|
|
1862
|
+
var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
1792
1863
|
CommandPrimitive.Item,
|
|
1793
1864
|
{
|
|
1794
1865
|
ref,
|
|
@@ -1801,7 +1872,7 @@ var CommandItem = React21.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1801
1872
|
));
|
|
1802
1873
|
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
1803
1874
|
var CommandShortcut = ({ className, ...props }) => {
|
|
1804
|
-
return /* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ jsx25(
|
|
1805
1876
|
"span",
|
|
1806
1877
|
{
|
|
1807
1878
|
className: cn(
|
|
@@ -1816,9 +1887,9 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
1816
1887
|
|
|
1817
1888
|
// src/components/calendar.tsx
|
|
1818
1889
|
import { DayPicker } from "react-day-picker";
|
|
1819
|
-
import { jsx as
|
|
1890
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1820
1891
|
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
1821
|
-
return /* @__PURE__ */
|
|
1892
|
+
return /* @__PURE__ */ jsx26(
|
|
1822
1893
|
DayPicker,
|
|
1823
1894
|
{
|
|
1824
1895
|
showOutsideDays,
|
|
@@ -1862,7 +1933,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1862
1933
|
components: {
|
|
1863
1934
|
Chevron: ({ orientation }) => {
|
|
1864
1935
|
if (orientation === "left") {
|
|
1865
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsx26(
|
|
1866
1937
|
"svg",
|
|
1867
1938
|
{
|
|
1868
1939
|
width: "15",
|
|
@@ -1871,7 +1942,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1871
1942
|
fill: "none",
|
|
1872
1943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1873
1944
|
className: "h-4 w-4",
|
|
1874
|
-
children: /* @__PURE__ */
|
|
1945
|
+
children: /* @__PURE__ */ jsx26(
|
|
1875
1946
|
"path",
|
|
1876
1947
|
{
|
|
1877
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",
|
|
@@ -1883,7 +1954,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1883
1954
|
}
|
|
1884
1955
|
);
|
|
1885
1956
|
}
|
|
1886
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ jsx26(
|
|
1887
1958
|
"svg",
|
|
1888
1959
|
{
|
|
1889
1960
|
width: "15",
|
|
@@ -1892,7 +1963,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
1892
1963
|
fill: "none",
|
|
1893
1964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1894
1965
|
className: "h-4 w-4",
|
|
1895
|
-
children: /* @__PURE__ */
|
|
1966
|
+
children: /* @__PURE__ */ jsx26(
|
|
1896
1967
|
"path",
|
|
1897
1968
|
{
|
|
1898
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",
|
|
@@ -1976,6 +2047,7 @@ export {
|
|
|
1976
2047
|
DropdownMenuSubContent,
|
|
1977
2048
|
DropdownMenuSubTrigger,
|
|
1978
2049
|
DropdownMenuTrigger,
|
|
2050
|
+
Heading,
|
|
1979
2051
|
Input,
|
|
1980
2052
|
Label,
|
|
1981
2053
|
NavigationMenu,
|
|
@@ -2036,6 +2108,7 @@ export {
|
|
|
2036
2108
|
TabsContent,
|
|
2037
2109
|
TabsList,
|
|
2038
2110
|
TabsTrigger,
|
|
2111
|
+
Text,
|
|
2039
2112
|
Textarea,
|
|
2040
2113
|
Toast,
|
|
2041
2114
|
ToastAction,
|
|
@@ -2055,6 +2128,7 @@ export {
|
|
|
2055
2128
|
fadeVariants,
|
|
2056
2129
|
getCurrentThemeId,
|
|
2057
2130
|
getMotionTransition,
|
|
2131
|
+
headingVariants,
|
|
2058
2132
|
injectThemeCSS,
|
|
2059
2133
|
isTokenReference,
|
|
2060
2134
|
motionTokens,
|
|
@@ -2065,6 +2139,7 @@ export {
|
|
|
2065
2139
|
setThemeId,
|
|
2066
2140
|
sidebarVariants,
|
|
2067
2141
|
slideVariants,
|
|
2142
|
+
textVariants,
|
|
2068
2143
|
themeToCSS,
|
|
2069
2144
|
tokenVars,
|
|
2070
2145
|
transitions,
|