@still-void/ui 2.0.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/README.md +41 -7
- package/dist/react/client/index.cjs +310 -197
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +63 -9
- package/dist/react/client/index.d.ts +63 -9
- package/dist/react/client/index.js +315 -197
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +363 -93
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +133 -3
- package/dist/react/index.d.ts +133 -3
- package/dist/react/index.js +359 -92
- package/dist/react/index.js.map +1 -1
- package/dist/shadcn-overrides.css +98 -0
- package/dist/style.css +815 -0
- package/dist/tailwind.css +72 -0
- package/dist/theme.css +33 -11
- package/package.json +13 -3
|
@@ -406,7 +406,7 @@ function ReadingProgress({ target, announce, className, ...rest }) {
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
// src/components/ui/dialog.tsx
|
|
409
|
-
import * as
|
|
409
|
+
import * as React2 from "react";
|
|
410
410
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
411
411
|
|
|
412
412
|
// src/lib/utils.ts
|
|
@@ -416,372 +416,490 @@ function cn(...inputs) {
|
|
|
416
416
|
return twMerge(clsx(inputs));
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
// src/components/ui/icon.tsx
|
|
420
|
+
import * as React from "react";
|
|
421
|
+
|
|
422
|
+
// src/components/ui/icon-set.ts
|
|
423
|
+
import {
|
|
424
|
+
Bars3Icon,
|
|
425
|
+
CheckCircleIcon,
|
|
426
|
+
CheckIcon,
|
|
427
|
+
ChevronDownIcon,
|
|
428
|
+
ChevronLeftIcon,
|
|
429
|
+
ChevronRightIcon,
|
|
430
|
+
ChevronUpIcon,
|
|
431
|
+
DocumentDuplicateIcon,
|
|
432
|
+
ExclamationCircleIcon,
|
|
433
|
+
ExclamationTriangleIcon,
|
|
434
|
+
InformationCircleIcon,
|
|
435
|
+
MagnifyingGlassIcon,
|
|
436
|
+
MoonIcon,
|
|
437
|
+
SunIcon,
|
|
438
|
+
XMarkIcon
|
|
439
|
+
} from "@heroicons/react/24/outline";
|
|
440
|
+
var ICON_GLYPHS = {
|
|
441
|
+
x: XMarkIcon,
|
|
442
|
+
check: CheckIcon,
|
|
443
|
+
"chevron-down": ChevronDownIcon,
|
|
444
|
+
"chevron-up": ChevronUpIcon,
|
|
445
|
+
"chevron-right": ChevronRightIcon,
|
|
446
|
+
"chevron-left": ChevronLeftIcon,
|
|
447
|
+
info: InformationCircleIcon,
|
|
448
|
+
"alert-triangle": ExclamationTriangleIcon,
|
|
449
|
+
"alert-circle": ExclamationCircleIcon,
|
|
450
|
+
"check-circle": CheckCircleIcon,
|
|
451
|
+
copy: DocumentDuplicateIcon,
|
|
452
|
+
sun: SunIcon,
|
|
453
|
+
moon: MoonIcon,
|
|
454
|
+
search: MagnifyingGlassIcon,
|
|
455
|
+
menu: Bars3Icon
|
|
456
|
+
};
|
|
457
|
+
var ICON_NAMES = Object.keys(ICON_GLYPHS);
|
|
458
|
+
var ICON_FALLBACK_NAME = "alert-circle";
|
|
459
|
+
|
|
460
|
+
// src/components/ui/icon.tsx
|
|
461
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
462
|
+
var Icon = React.forwardRef(
|
|
463
|
+
({ name, size = "md", label, className, ...props }, ref) => {
|
|
464
|
+
const Glyph = ICON_GLYPHS[name] ?? ICON_GLYPHS[ICON_FALLBACK_NAME];
|
|
465
|
+
return /* @__PURE__ */ jsx6(
|
|
466
|
+
Glyph,
|
|
467
|
+
{
|
|
468
|
+
...props,
|
|
469
|
+
ref,
|
|
470
|
+
className: cn(
|
|
471
|
+
"sv-icon",
|
|
472
|
+
size === "sm" && "sv-icon--sm",
|
|
473
|
+
size === "lg" && "sv-icon--lg",
|
|
474
|
+
className
|
|
475
|
+
),
|
|
476
|
+
"aria-hidden": label === void 0 ? "true" : void 0,
|
|
477
|
+
role: label === void 0 ? void 0 : "img",
|
|
478
|
+
"aria-label": label
|
|
479
|
+
}
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
);
|
|
483
|
+
Icon.displayName = "Icon";
|
|
484
|
+
|
|
419
485
|
// src/components/ui/dialog.tsx
|
|
420
|
-
import { jsx as
|
|
486
|
+
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
421
487
|
var Dialog = DialogPrimitive.Root;
|
|
422
488
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
423
489
|
var DialogPortal = DialogPrimitive.Portal;
|
|
424
490
|
var DialogClose = DialogPrimitive.Close;
|
|
425
|
-
var DialogOverlay =
|
|
491
|
+
var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
426
492
|
DialogPrimitive.Overlay,
|
|
427
493
|
{
|
|
428
494
|
ref,
|
|
429
|
-
className: cn(
|
|
430
|
-
"fixed inset-0 z-50 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",
|
|
431
|
-
className
|
|
432
|
-
),
|
|
495
|
+
className: cn("sv-overlay", className),
|
|
433
496
|
...props
|
|
434
497
|
}
|
|
435
498
|
));
|
|
436
|
-
DialogOverlay.displayName =
|
|
437
|
-
var DialogContent =
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
499
|
+
DialogOverlay.displayName = "DialogOverlay";
|
|
500
|
+
var DialogContent = React2.forwardRef(({ className, children, showCloseButton = true, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
501
|
+
/* @__PURE__ */ jsx7(DialogOverlay, {}),
|
|
502
|
+
/* @__PURE__ */ jsxs(
|
|
440
503
|
DialogPrimitive.Content,
|
|
441
504
|
{
|
|
442
505
|
ref,
|
|
443
|
-
className: cn(
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
506
|
+
className: cn("sv-dialog", className),
|
|
507
|
+
...props,
|
|
508
|
+
"aria-modal": "true",
|
|
509
|
+
children: [
|
|
510
|
+
children,
|
|
511
|
+
showCloseButton ? /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "sv-dialog__close", children: [
|
|
512
|
+
/* @__PURE__ */ jsx7(Icon, { name: "x" }),
|
|
513
|
+
/* @__PURE__ */ jsx7("span", { className: "sv-sr-only", children: "Close dialog" })
|
|
514
|
+
] }) : null
|
|
515
|
+
]
|
|
448
516
|
}
|
|
449
517
|
)
|
|
450
518
|
] }));
|
|
451
|
-
DialogContent.displayName =
|
|
519
|
+
DialogContent.displayName = "DialogContent";
|
|
452
520
|
var DialogHeader = ({
|
|
453
521
|
className,
|
|
454
522
|
...props
|
|
455
|
-
}) => /* @__PURE__ */
|
|
456
|
-
|
|
523
|
+
}) => /* @__PURE__ */ jsx7("div", { className: cn("sv-dialog__header", className), ...props });
|
|
524
|
+
DialogHeader.displayName = "DialogHeader";
|
|
525
|
+
var DialogFooter = ({
|
|
526
|
+
className,
|
|
527
|
+
...props
|
|
528
|
+
}) => /* @__PURE__ */ jsx7("div", { className: cn("sv-dialog__footer", className), ...props });
|
|
529
|
+
DialogFooter.displayName = "DialogFooter";
|
|
530
|
+
var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
531
|
+
DialogPrimitive.Title,
|
|
457
532
|
{
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
className
|
|
461
|
-
),
|
|
533
|
+
ref,
|
|
534
|
+
className: cn("sv-dialog__title", className),
|
|
462
535
|
...props
|
|
463
536
|
}
|
|
464
|
-
);
|
|
465
|
-
|
|
466
|
-
var
|
|
537
|
+
));
|
|
538
|
+
DialogTitle.displayName = "DialogTitle";
|
|
539
|
+
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
540
|
+
DialogPrimitive.Description,
|
|
541
|
+
{
|
|
542
|
+
ref,
|
|
543
|
+
className: cn("sv-dialog__description", className),
|
|
544
|
+
...props
|
|
545
|
+
}
|
|
546
|
+
));
|
|
547
|
+
DialogDescription.displayName = "DialogDescription";
|
|
548
|
+
|
|
549
|
+
// src/components/ui/alert-dialog.tsx
|
|
550
|
+
import * as React3 from "react";
|
|
551
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
552
|
+
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
553
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
554
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
555
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
556
|
+
var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
557
|
+
AlertDialogPrimitive.Overlay,
|
|
558
|
+
{
|
|
559
|
+
ref,
|
|
560
|
+
className: cn("sv-overlay", className),
|
|
561
|
+
...props
|
|
562
|
+
}
|
|
563
|
+
));
|
|
564
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
565
|
+
var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
|
|
566
|
+
/* @__PURE__ */ jsx8(AlertDialogOverlay, {}),
|
|
567
|
+
/* @__PURE__ */ jsx8(
|
|
568
|
+
AlertDialogPrimitive.Content,
|
|
569
|
+
{
|
|
570
|
+
ref,
|
|
571
|
+
"aria-modal": "true",
|
|
572
|
+
className: cn("sv-dialog", className),
|
|
573
|
+
...props
|
|
574
|
+
}
|
|
575
|
+
)
|
|
576
|
+
] }));
|
|
577
|
+
AlertDialogContent.displayName = "AlertDialogContent";
|
|
578
|
+
var AlertDialogHeader = ({
|
|
579
|
+
className,
|
|
580
|
+
...props
|
|
581
|
+
}) => /* @__PURE__ */ jsx8("div", { className: cn("sv-dialog__header", className), ...props });
|
|
582
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
583
|
+
var AlertDialogFooter = ({
|
|
467
584
|
className,
|
|
468
585
|
...props
|
|
469
|
-
}) => /* @__PURE__ */
|
|
470
|
-
|
|
586
|
+
}) => /* @__PURE__ */ jsx8("div", { className: cn("sv-dialog__footer", className), ...props });
|
|
587
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
588
|
+
var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
589
|
+
AlertDialogPrimitive.Title,
|
|
471
590
|
{
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
className
|
|
475
|
-
),
|
|
591
|
+
ref,
|
|
592
|
+
className: cn("sv-dialog__title", className),
|
|
476
593
|
...props
|
|
477
594
|
}
|
|
478
|
-
);
|
|
479
|
-
|
|
480
|
-
var
|
|
481
|
-
|
|
595
|
+
));
|
|
596
|
+
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
597
|
+
var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
598
|
+
AlertDialogPrimitive.Description,
|
|
482
599
|
{
|
|
483
600
|
ref,
|
|
484
|
-
className: cn(
|
|
485
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
486
|
-
className
|
|
487
|
-
),
|
|
601
|
+
className: cn("sv-dialog__description", className),
|
|
488
602
|
...props
|
|
489
603
|
}
|
|
490
604
|
));
|
|
491
|
-
|
|
492
|
-
var
|
|
493
|
-
|
|
605
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
606
|
+
var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
607
|
+
AlertDialogPrimitive.Action,
|
|
608
|
+
{
|
|
609
|
+
ref,
|
|
610
|
+
className: cn(className),
|
|
611
|
+
...props
|
|
612
|
+
}
|
|
613
|
+
));
|
|
614
|
+
AlertDialogAction.displayName = "AlertDialogAction";
|
|
615
|
+
var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
616
|
+
AlertDialogPrimitive.Cancel,
|
|
494
617
|
{
|
|
495
618
|
ref,
|
|
496
|
-
className: cn(
|
|
619
|
+
className: cn(className),
|
|
497
620
|
...props
|
|
498
621
|
}
|
|
499
622
|
));
|
|
500
|
-
|
|
623
|
+
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
501
624
|
|
|
502
625
|
// src/components/ui/select.tsx
|
|
503
|
-
import * as
|
|
626
|
+
import * as React4 from "react";
|
|
504
627
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
505
|
-
import { jsx as
|
|
628
|
+
import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
506
629
|
var Select = SelectPrimitive.Root;
|
|
507
630
|
var SelectGroup = SelectPrimitive.Group;
|
|
508
631
|
var SelectValue = SelectPrimitive.Value;
|
|
509
|
-
var SelectTrigger =
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
)
|
|
520
|
-
|
|
521
|
-
|
|
632
|
+
var SelectTrigger = React4.forwardRef(
|
|
633
|
+
({ className, children, icon = /* @__PURE__ */ jsx9(Icon, { name: "chevron-down" }), ...props }, ref) => (
|
|
634
|
+
// The trigger IS a form field, so it shares .sv-field with Input, Textarea
|
|
635
|
+
// and NativeSelect rather than restating the frame. The utility string this
|
|
636
|
+
// replaces named `ring-offset-background` and `focus:ring-accent`, neither
|
|
637
|
+
// of which this package ever declared: the field had no visible focus.
|
|
638
|
+
/* @__PURE__ */ jsxs3(
|
|
639
|
+
SelectPrimitive.Trigger,
|
|
640
|
+
{
|
|
641
|
+
ref,
|
|
642
|
+
className: cn("sv-field", className),
|
|
643
|
+
...props,
|
|
644
|
+
children: [
|
|
645
|
+
children,
|
|
646
|
+
icon === null ? null : /* @__PURE__ */ jsx9(SelectPrimitive.Icon, { children: icon })
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
)
|
|
650
|
+
)
|
|
651
|
+
);
|
|
652
|
+
SelectTrigger.displayName = "SelectTrigger";
|
|
653
|
+
var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
522
654
|
SelectPrimitive.ScrollUpButton,
|
|
523
655
|
{
|
|
524
656
|
ref,
|
|
525
|
-
className: cn(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
),
|
|
529
|
-
...props
|
|
657
|
+
className: cn("sv-pop__scroll", className),
|
|
658
|
+
...props,
|
|
659
|
+
children: /* @__PURE__ */ jsx9(Icon, { name: "chevron-up" })
|
|
530
660
|
}
|
|
531
661
|
));
|
|
532
|
-
SelectScrollUpButton.displayName =
|
|
533
|
-
var SelectScrollDownButton =
|
|
662
|
+
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
663
|
+
var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
534
664
|
SelectPrimitive.ScrollDownButton,
|
|
535
665
|
{
|
|
536
666
|
ref,
|
|
537
|
-
className: cn(
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
),
|
|
541
|
-
...props
|
|
667
|
+
className: cn("sv-pop__scroll", className),
|
|
668
|
+
...props,
|
|
669
|
+
children: /* @__PURE__ */ jsx9(Icon, { name: "chevron-down" })
|
|
542
670
|
}
|
|
543
671
|
));
|
|
544
|
-
SelectScrollDownButton.displayName =
|
|
545
|
-
var SelectContent =
|
|
672
|
+
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
673
|
+
var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx9(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
|
|
546
674
|
SelectPrimitive.Content,
|
|
547
675
|
{
|
|
548
676
|
ref,
|
|
549
|
-
className: cn(
|
|
550
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-sv-border bg-sv-surface text-sv-text shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
551
|
-
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
552
|
-
className
|
|
553
|
-
),
|
|
677
|
+
className: cn("sv-pop", position === "popper" && "sv-pop--popper", className),
|
|
554
678
|
position,
|
|
555
679
|
...props,
|
|
556
680
|
children: [
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ jsx9(SelectScrollUpButton, {}),
|
|
682
|
+
/* @__PURE__ */ jsx9(
|
|
559
683
|
SelectPrimitive.Viewport,
|
|
560
684
|
{
|
|
561
685
|
className: cn(
|
|
562
|
-
"
|
|
563
|
-
position === "popper" && "
|
|
686
|
+
"sv-pop__viewport",
|
|
687
|
+
position === "popper" && "sv-pop__viewport--popper"
|
|
564
688
|
),
|
|
565
689
|
children
|
|
566
690
|
}
|
|
567
691
|
),
|
|
568
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ jsx9(SelectScrollDownButton, {})
|
|
569
693
|
]
|
|
570
694
|
}
|
|
571
695
|
) }));
|
|
572
|
-
SelectContent.displayName =
|
|
573
|
-
var SelectItem =
|
|
696
|
+
SelectContent.displayName = "SelectContent";
|
|
697
|
+
var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx9(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
574
698
|
SelectPrimitive.Item,
|
|
575
699
|
{
|
|
576
700
|
ref,
|
|
577
|
-
className: cn(
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
701
|
+
className: cn("sv-menu-item", className),
|
|
702
|
+
...props,
|
|
703
|
+
children: [
|
|
704
|
+
icon === null ? null : /* @__PURE__ */ jsx9(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
705
|
+
/* @__PURE__ */ jsx9(SelectPrimitive.ItemText, { children })
|
|
706
|
+
]
|
|
582
707
|
}
|
|
583
708
|
));
|
|
584
|
-
SelectItem.displayName =
|
|
585
|
-
var SelectLabel =
|
|
709
|
+
SelectItem.displayName = "SelectItem";
|
|
710
|
+
var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
586
711
|
SelectPrimitive.Label,
|
|
587
712
|
{
|
|
588
713
|
ref,
|
|
589
|
-
className: cn("
|
|
714
|
+
className: cn("sv-menu-label", className),
|
|
590
715
|
...props
|
|
591
716
|
}
|
|
592
717
|
));
|
|
593
|
-
SelectLabel.displayName =
|
|
594
|
-
var SelectSeparator =
|
|
718
|
+
SelectLabel.displayName = "SelectLabel";
|
|
719
|
+
var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
595
720
|
SelectPrimitive.Separator,
|
|
596
721
|
{
|
|
597
722
|
ref,
|
|
598
|
-
className: cn("-
|
|
723
|
+
className: cn("sv-menu-separator", className),
|
|
599
724
|
...props
|
|
600
725
|
}
|
|
601
726
|
));
|
|
602
|
-
SelectSeparator.displayName =
|
|
727
|
+
SelectSeparator.displayName = "SelectSeparator";
|
|
603
728
|
|
|
604
729
|
// src/components/ui/dropdown-menu.tsx
|
|
605
|
-
import * as
|
|
730
|
+
import * as React5 from "react";
|
|
606
731
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
607
|
-
import { jsx as
|
|
732
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
608
733
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
609
734
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
610
735
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
611
736
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
612
737
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
613
738
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
614
|
-
var DropdownMenuSubTrigger =
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
"
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
739
|
+
var DropdownMenuSubTrigger = React5.forwardRef(
|
|
740
|
+
({ className, inset, children, icon = /* @__PURE__ */ jsx10(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
741
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
742
|
+
{
|
|
743
|
+
ref,
|
|
744
|
+
className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
|
|
745
|
+
...props,
|
|
746
|
+
children: [
|
|
747
|
+
children,
|
|
748
|
+
icon
|
|
749
|
+
]
|
|
750
|
+
}
|
|
751
|
+
)
|
|
752
|
+
);
|
|
753
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
754
|
+
var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
628
755
|
DropdownMenuPrimitive.SubContent,
|
|
629
756
|
{
|
|
630
757
|
ref,
|
|
631
|
-
className: cn(
|
|
632
|
-
"min-w-[8rem] overflow-hidden rounded-md border border-sv-border bg-sv-surface p-1 text-sv-text",
|
|
633
|
-
className
|
|
634
|
-
),
|
|
758
|
+
className: cn("sv-pop", className),
|
|
635
759
|
...props
|
|
636
760
|
}
|
|
637
761
|
));
|
|
638
|
-
DropdownMenuSubContent.displayName =
|
|
639
|
-
var DropdownMenuContent =
|
|
762
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
763
|
+
var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx10(
|
|
640
764
|
DropdownMenuPrimitive.Content,
|
|
641
765
|
{
|
|
642
766
|
ref,
|
|
643
|
-
className: cn(
|
|
644
|
-
"min-w-[8rem] overflow-hidden rounded-md border border-sv-border bg-sv-surface p-1 text-sv-text",
|
|
645
|
-
className
|
|
646
|
-
),
|
|
767
|
+
className: cn("sv-pop", className),
|
|
647
768
|
...props
|
|
648
769
|
}
|
|
649
770
|
) }));
|
|
650
|
-
DropdownMenuContent.displayName =
|
|
651
|
-
var DropdownMenuItem =
|
|
771
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
772
|
+
var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
652
773
|
DropdownMenuPrimitive.Item,
|
|
653
774
|
{
|
|
654
775
|
ref,
|
|
655
|
-
className: cn(
|
|
656
|
-
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-sv-surface-2 focus:text-sv-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
657
|
-
inset && "pl-8",
|
|
658
|
-
className
|
|
659
|
-
),
|
|
776
|
+
className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
|
|
660
777
|
...props
|
|
661
778
|
}
|
|
662
779
|
));
|
|
663
|
-
DropdownMenuItem.displayName =
|
|
664
|
-
var DropdownMenuCheckboxItem =
|
|
780
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
781
|
+
var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx10(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
665
782
|
DropdownMenuPrimitive.CheckboxItem,
|
|
666
783
|
{
|
|
667
784
|
ref,
|
|
668
|
-
className: cn(
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
));
|
|
675
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
676
|
-
var DropdownMenuRadioItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
677
|
-
DropdownMenuPrimitive.RadioItem,
|
|
678
|
-
{
|
|
679
|
-
ref,
|
|
680
|
-
className: cn(
|
|
681
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-sv-surface-2 focus:text-sv-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
682
|
-
className
|
|
683
|
-
),
|
|
684
|
-
...props
|
|
785
|
+
className: cn("sv-menu-item", className),
|
|
786
|
+
...props,
|
|
787
|
+
children: [
|
|
788
|
+
icon === null ? null : /* @__PURE__ */ jsx10(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
789
|
+
children
|
|
790
|
+
]
|
|
685
791
|
}
|
|
686
792
|
));
|
|
687
|
-
|
|
688
|
-
var
|
|
793
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
794
|
+
var DropdownMenuRadioItem = React5.forwardRef(
|
|
795
|
+
({ className, children, icon = /* @__PURE__ */ jsx10("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
796
|
+
DropdownMenuPrimitive.RadioItem,
|
|
797
|
+
{
|
|
798
|
+
ref,
|
|
799
|
+
className: cn("sv-menu-item", className),
|
|
800
|
+
...props,
|
|
801
|
+
children: [
|
|
802
|
+
icon === null ? null : /* @__PURE__ */ jsx10(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
803
|
+
children
|
|
804
|
+
]
|
|
805
|
+
}
|
|
806
|
+
)
|
|
807
|
+
);
|
|
808
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
809
|
+
var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
689
810
|
DropdownMenuPrimitive.Label,
|
|
690
811
|
{
|
|
691
812
|
ref,
|
|
692
|
-
className: cn(
|
|
693
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
694
|
-
inset && "pl-8",
|
|
695
|
-
className
|
|
696
|
-
),
|
|
813
|
+
className: cn("sv-menu-label", inset && "sv-menu-item--inset", className),
|
|
697
814
|
...props
|
|
698
815
|
}
|
|
699
816
|
));
|
|
700
|
-
DropdownMenuLabel.displayName =
|
|
701
|
-
var DropdownMenuSeparator =
|
|
817
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
818
|
+
var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
702
819
|
DropdownMenuPrimitive.Separator,
|
|
703
820
|
{
|
|
704
821
|
ref,
|
|
705
|
-
className: cn("-
|
|
822
|
+
className: cn("sv-menu-separator", className),
|
|
706
823
|
...props
|
|
707
824
|
}
|
|
708
825
|
));
|
|
709
|
-
DropdownMenuSeparator.displayName =
|
|
826
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
710
827
|
var DropdownMenuShortcut = ({
|
|
711
828
|
className,
|
|
712
829
|
...props
|
|
713
|
-
}) => /* @__PURE__ */
|
|
714
|
-
"span",
|
|
715
|
-
{
|
|
716
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
717
|
-
...props
|
|
718
|
-
}
|
|
719
|
-
);
|
|
830
|
+
}) => /* @__PURE__ */ jsx10("span", { className: cn("sv-menu-shortcut", className), ...props });
|
|
720
831
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
721
832
|
|
|
722
833
|
// src/components/ui/tabs.tsx
|
|
723
|
-
import * as
|
|
834
|
+
import * as React6 from "react";
|
|
724
835
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
725
|
-
import { jsx as
|
|
726
|
-
var Tabs =
|
|
727
|
-
|
|
836
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
837
|
+
var Tabs = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
838
|
+
TabsPrimitive.Root,
|
|
839
|
+
{
|
|
840
|
+
ref,
|
|
841
|
+
className: cn("sv-tabs", className),
|
|
842
|
+
...props
|
|
843
|
+
}
|
|
844
|
+
));
|
|
845
|
+
Tabs.displayName = "Tabs";
|
|
846
|
+
var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
728
847
|
TabsPrimitive.List,
|
|
729
848
|
{
|
|
730
849
|
ref,
|
|
731
|
-
className: cn(
|
|
732
|
-
"inline-flex h-10 items-center justify-center rounded-md bg-sv-surface-2 p-1 text-sv-text-2",
|
|
733
|
-
className
|
|
734
|
-
),
|
|
850
|
+
className: cn("sv-tabs__list", className),
|
|
735
851
|
...props
|
|
736
852
|
}
|
|
737
853
|
));
|
|
738
|
-
TabsList.displayName =
|
|
739
|
-
var TabsTrigger =
|
|
854
|
+
TabsList.displayName = "TabsList";
|
|
855
|
+
var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
740
856
|
TabsPrimitive.Trigger,
|
|
741
857
|
{
|
|
742
858
|
ref,
|
|
743
|
-
className: cn(
|
|
744
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-sv-surface data-[state=active]:text-sv-text data-[state=active]:shadow-sm",
|
|
745
|
-
className
|
|
746
|
-
),
|
|
859
|
+
className: cn("sv-tabs__trigger", className),
|
|
747
860
|
...props
|
|
748
861
|
}
|
|
749
862
|
));
|
|
750
|
-
TabsTrigger.displayName =
|
|
751
|
-
var TabsContent =
|
|
863
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
864
|
+
var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
752
865
|
TabsPrimitive.Content,
|
|
753
866
|
{
|
|
754
867
|
ref,
|
|
755
|
-
className: cn(
|
|
756
|
-
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
757
|
-
className
|
|
758
|
-
),
|
|
868
|
+
className: cn("sv-tabs__content", className),
|
|
759
869
|
...props
|
|
760
870
|
}
|
|
761
871
|
));
|
|
762
|
-
TabsContent.displayName =
|
|
872
|
+
TabsContent.displayName = "TabsContent";
|
|
763
873
|
|
|
764
874
|
// src/components/ui/tooltip.tsx
|
|
765
|
-
import * as
|
|
875
|
+
import * as React7 from "react";
|
|
766
876
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
767
|
-
import { jsx as
|
|
877
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
768
878
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
769
879
|
var Tooltip = TooltipPrimitive.Root;
|
|
770
880
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
771
|
-
var TooltipContent =
|
|
881
|
+
var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
772
882
|
TooltipPrimitive.Content,
|
|
773
883
|
{
|
|
774
884
|
ref,
|
|
775
885
|
sideOffset,
|
|
776
|
-
className: cn(
|
|
777
|
-
"z-50 overflow-hidden rounded-md border border-sv-border bg-sv-surface px-3 py-1.5 text-sm text-sv-text animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
778
|
-
className
|
|
779
|
-
),
|
|
886
|
+
className: cn("sv-pop", "sv-tooltip", className),
|
|
780
887
|
...props
|
|
781
888
|
}
|
|
782
889
|
));
|
|
783
|
-
TooltipContent.displayName =
|
|
890
|
+
TooltipContent.displayName = "TooltipContent";
|
|
784
891
|
export {
|
|
892
|
+
AlertDialog,
|
|
893
|
+
AlertDialogAction,
|
|
894
|
+
AlertDialogCancel,
|
|
895
|
+
AlertDialogContent,
|
|
896
|
+
AlertDialogDescription,
|
|
897
|
+
AlertDialogFooter,
|
|
898
|
+
AlertDialogHeader,
|
|
899
|
+
AlertDialogOverlay,
|
|
900
|
+
AlertDialogPortal,
|
|
901
|
+
AlertDialogTitle,
|
|
902
|
+
AlertDialogTrigger,
|
|
785
903
|
CopyButton,
|
|
786
904
|
DEFAULT_STORAGE_KEY,
|
|
787
905
|
Dialog,
|