@still-void/ui 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/react/client/index.ts
32
32
  var client_exports = {};
33
33
  __export(client_exports, {
34
+ AlertDialog: () => AlertDialog,
35
+ AlertDialogAction: () => AlertDialogAction,
36
+ AlertDialogCancel: () => AlertDialogCancel,
37
+ AlertDialogContent: () => AlertDialogContent,
38
+ AlertDialogDescription: () => AlertDialogDescription,
39
+ AlertDialogFooter: () => AlertDialogFooter,
40
+ AlertDialogHeader: () => AlertDialogHeader,
41
+ AlertDialogOverlay: () => AlertDialogOverlay,
42
+ AlertDialogPortal: () => AlertDialogPortal,
43
+ AlertDialogTitle: () => AlertDialogTitle,
44
+ AlertDialogTrigger: () => AlertDialogTrigger,
34
45
  CopyButton: () => CopyButton,
35
46
  DEFAULT_STORAGE_KEY: () => DEFAULT_STORAGE_KEY,
36
47
  Dialog: () => Dialog,
@@ -489,7 +500,7 @@ function ReadingProgress({ target, announce, className, ...rest }) {
489
500
  }
490
501
 
491
502
  // src/components/ui/dialog.tsx
492
- var React = __toESM(require("react"), 1);
503
+ var React2 = __toESM(require("react"), 1);
493
504
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
494
505
 
495
506
  // src/lib/utils.ts
@@ -499,35 +510,87 @@ function cn(...inputs) {
499
510
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
500
511
  }
501
512
 
502
- // src/components/ui/dialog.tsx
513
+ // src/components/ui/icon.tsx
514
+ var React = __toESM(require("react"), 1);
515
+
516
+ // src/components/ui/icon-set.ts
517
+ var import_outline = require("@heroicons/react/24/outline");
518
+ var ICON_GLYPHS = {
519
+ x: import_outline.XMarkIcon,
520
+ check: import_outline.CheckIcon,
521
+ "chevron-down": import_outline.ChevronDownIcon,
522
+ "chevron-up": import_outline.ChevronUpIcon,
523
+ "chevron-right": import_outline.ChevronRightIcon,
524
+ "chevron-left": import_outline.ChevronLeftIcon,
525
+ info: import_outline.InformationCircleIcon,
526
+ "alert-triangle": import_outline.ExclamationTriangleIcon,
527
+ "alert-circle": import_outline.ExclamationCircleIcon,
528
+ "check-circle": import_outline.CheckCircleIcon,
529
+ copy: import_outline.DocumentDuplicateIcon,
530
+ sun: import_outline.SunIcon,
531
+ moon: import_outline.MoonIcon,
532
+ search: import_outline.MagnifyingGlassIcon,
533
+ menu: import_outline.Bars3Icon
534
+ };
535
+ var ICON_NAMES = Object.keys(ICON_GLYPHS);
536
+ var ICON_FALLBACK_NAME = "alert-circle";
537
+
538
+ // src/components/ui/icon.tsx
503
539
  var import_jsx_runtime6 = require("react/jsx-runtime");
540
+ var Icon = React.forwardRef(
541
+ ({ name, size = "md", label, className, ...props }, ref) => {
542
+ const Glyph = ICON_GLYPHS[name] ?? ICON_GLYPHS[ICON_FALLBACK_NAME];
543
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
544
+ Glyph,
545
+ {
546
+ ...props,
547
+ ref,
548
+ className: cn(
549
+ "sv-icon",
550
+ size === "sm" && "sv-icon--sm",
551
+ size === "lg" && "sv-icon--lg",
552
+ className
553
+ ),
554
+ "aria-hidden": label === void 0 ? "true" : void 0,
555
+ role: label === void 0 ? void 0 : "img",
556
+ "aria-label": label
557
+ }
558
+ );
559
+ }
560
+ );
561
+ Icon.displayName = "Icon";
562
+
563
+ // src/components/ui/dialog.tsx
564
+ var import_jsx_runtime7 = require("react/jsx-runtime");
504
565
  var Dialog = DialogPrimitive.Root;
505
566
  var DialogTrigger = DialogPrimitive.Trigger;
506
567
  var DialogPortal = DialogPrimitive.Portal;
507
568
  var DialogClose = DialogPrimitive.Close;
508
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
569
+ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
509
570
  DialogPrimitive.Overlay,
510
571
  {
511
572
  ref,
512
- className: cn(
513
- "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",
514
- className
515
- ),
573
+ className: cn("sv-overlay", className),
516
574
  ...props
517
575
  }
518
576
  ));
519
577
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
520
- var DialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogPortal, { children: [
521
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlay, {}),
522
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
578
+ var DialogContent = React2.forwardRef(({ className, children, showCloseButton = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DialogPortal, { children: [
579
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogOverlay, {}),
580
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
523
581
  DialogPrimitive.Content,
524
582
  {
525
583
  ref,
526
- className: cn(
527
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-sv-border bg-sv-surface 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",
528
- className
529
- ),
530
- ...props
584
+ className: cn("sv-dialog", className),
585
+ ...props,
586
+ "aria-modal": "true",
587
+ children: [
588
+ children,
589
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DialogPrimitive.Close, { className: "sv-dialog__close", children: [
590
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "x" }),
591
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sv-sr-only", children: "Close dialog" })
592
+ ] }) : null
593
+ ]
531
594
  }
532
595
  )
533
596
  ] }));
@@ -535,257 +598,306 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
535
598
  var DialogHeader = ({
536
599
  className,
537
600
  ...props
538
- }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
539
- "div",
540
- {
541
- className: cn(
542
- "flex flex-col space-y-1.5 text-center sm:text-left",
543
- className
544
- ),
545
- ...props
546
- }
547
- );
601
+ }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
548
602
  DialogHeader.displayName = "DialogHeader";
549
603
  var DialogFooter = ({
550
604
  className,
551
605
  ...props
552
- }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
553
- "div",
554
- {
555
- className: cn(
556
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
557
- className
558
- ),
559
- ...props
560
- }
561
- );
606
+ }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
562
607
  DialogFooter.displayName = "DialogFooter";
563
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
608
+ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
564
609
  DialogPrimitive.Title,
565
610
  {
566
611
  ref,
567
- className: cn(
568
- "text-lg font-semibold leading-none tracking-tight",
569
- className
570
- ),
612
+ className: cn("sv-dialog__title", className),
571
613
  ...props
572
614
  }
573
615
  ));
574
616
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
575
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
617
+ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
576
618
  DialogPrimitive.Description,
577
619
  {
578
620
  ref,
579
- className: cn("text-sm text-sv-text-2", className),
621
+ className: cn("sv-dialog__description", className),
580
622
  ...props
581
623
  }
582
624
  ));
583
625
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
584
626
 
585
- // src/components/ui/select.tsx
586
- var React2 = __toESM(require("react"), 1);
587
- var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
588
- var import_jsx_runtime7 = require("react/jsx-runtime");
589
- var Select = SelectPrimitive.Root;
590
- var SelectGroup = SelectPrimitive.Group;
591
- var SelectValue = SelectPrimitive.Value;
592
- var SelectTrigger = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
593
- SelectPrimitive.Trigger,
627
+ // src/components/ui/alert-dialog.tsx
628
+ var React3 = __toESM(require("react"), 1);
629
+ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
630
+ var import_jsx_runtime8 = require("react/jsx-runtime");
631
+ var AlertDialog = AlertDialogPrimitive.Root;
632
+ var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
633
+ var AlertDialogPortal = AlertDialogPrimitive.Portal;
634
+ var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
635
+ AlertDialogPrimitive.Overlay,
594
636
  {
595
637
  ref,
596
- className: cn(
597
- "flex h-10 w-full items-center justify-between rounded-md border border-sv-border bg-sv-surface px-3 py-2 text-sm ring-offset-background placeholder:text-sv-text-2 focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
598
- className
599
- ),
638
+ className: cn("sv-overlay", className),
600
639
  ...props
601
640
  }
602
641
  ));
642
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
643
+ var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(AlertDialogPortal, { children: [
644
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AlertDialogOverlay, {}),
645
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
646
+ AlertDialogPrimitive.Content,
647
+ {
648
+ ref,
649
+ "aria-modal": "true",
650
+ className: cn("sv-dialog", className),
651
+ ...props
652
+ }
653
+ )
654
+ ] }));
655
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
656
+ var AlertDialogHeader = ({
657
+ className,
658
+ ...props
659
+ }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
660
+ AlertDialogHeader.displayName = "AlertDialogHeader";
661
+ var AlertDialogFooter = ({
662
+ className,
663
+ ...props
664
+ }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
665
+ AlertDialogFooter.displayName = "AlertDialogFooter";
666
+ var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
667
+ AlertDialogPrimitive.Title,
668
+ {
669
+ ref,
670
+ className: cn("sv-dialog__title", className),
671
+ ...props
672
+ }
673
+ ));
674
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
675
+ var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
676
+ AlertDialogPrimitive.Description,
677
+ {
678
+ ref,
679
+ className: cn("sv-dialog__description", className),
680
+ ...props
681
+ }
682
+ ));
683
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
684
+ var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
685
+ AlertDialogPrimitive.Action,
686
+ {
687
+ ref,
688
+ className: cn(className),
689
+ ...props
690
+ }
691
+ ));
692
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
693
+ var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
694
+ AlertDialogPrimitive.Cancel,
695
+ {
696
+ ref,
697
+ className: cn(className),
698
+ ...props
699
+ }
700
+ ));
701
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
702
+
703
+ // src/components/ui/select.tsx
704
+ var React4 = __toESM(require("react"), 1);
705
+ var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
706
+ var import_jsx_runtime9 = require("react/jsx-runtime");
707
+ var Select = SelectPrimitive.Root;
708
+ var SelectGroup = SelectPrimitive.Group;
709
+ var SelectValue = SelectPrimitive.Value;
710
+ var SelectTrigger = React4.forwardRef(
711
+ ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-down" }), ...props }, ref) => (
712
+ // The trigger IS a form field, so it shares .sv-field with Input, Textarea
713
+ // and NativeSelect rather than restating the frame. The utility string this
714
+ // replaces named `ring-offset-background` and `focus:ring-accent`, neither
715
+ // of which this package ever declared: the field had no visible focus.
716
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
717
+ SelectPrimitive.Trigger,
718
+ {
719
+ ref,
720
+ className: cn("sv-field", className),
721
+ ...props,
722
+ children: [
723
+ children,
724
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.Icon, { children: icon })
725
+ ]
726
+ }
727
+ )
728
+ )
729
+ );
603
730
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
604
- var SelectScrollUpButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
731
+ var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
605
732
  SelectPrimitive.ScrollUpButton,
606
733
  {
607
734
  ref,
608
- className: cn(
609
- "flex cursor-pointer items-center justify-center py-1",
610
- className
611
- ),
612
- ...props
735
+ className: cn("sv-pop__scroll", className),
736
+ ...props,
737
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-up" })
613
738
  }
614
739
  ));
615
740
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
616
- var SelectScrollDownButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
741
+ var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
617
742
  SelectPrimitive.ScrollDownButton,
618
743
  {
619
744
  ref,
620
- className: cn(
621
- "flex cursor-pointer items-center justify-center py-1",
622
- className
623
- ),
624
- ...props
745
+ className: cn("sv-pop__scroll", className),
746
+ ...props,
747
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "chevron-down" })
625
748
  }
626
749
  ));
627
750
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
628
- var SelectContent = React2.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
751
+ var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
629
752
  SelectPrimitive.Content,
630
753
  {
631
754
  ref,
632
- className: cn(
633
- "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",
634
- 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",
635
- className
636
- ),
755
+ className: cn("sv-pop", position === "popper" && "sv-pop--popper", className),
637
756
  position,
638
757
  ...props,
639
758
  children: [
640
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectScrollUpButton, {}),
641
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
759
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectScrollUpButton, {}),
760
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
642
761
  SelectPrimitive.Viewport,
643
762
  {
644
763
  className: cn(
645
- "p-1",
646
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
764
+ "sv-pop__viewport",
765
+ position === "popper" && "sv-pop__viewport--popper"
647
766
  ),
648
767
  children
649
768
  }
650
769
  ),
651
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SelectScrollDownButton, {})
770
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectScrollDownButton, {})
652
771
  ]
653
772
  }
654
773
  ) }));
655
774
  SelectContent.displayName = SelectPrimitive.Content.displayName;
656
- var SelectItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
775
+ var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
657
776
  SelectPrimitive.Item,
658
777
  {
659
778
  ref,
660
- className: cn(
661
- "relative flex w-full 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",
662
- className
663
- ),
664
- ...props
779
+ className: cn("sv-menu-item", className),
780
+ ...props,
781
+ children: [
782
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
783
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SelectPrimitive.ItemText, { children })
784
+ ]
665
785
  }
666
786
  ));
667
787
  SelectItem.displayName = SelectPrimitive.Item.displayName;
668
- var SelectLabel = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
788
+ var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
669
789
  SelectPrimitive.Label,
670
790
  {
671
791
  ref,
672
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
792
+ className: cn("sv-menu-label", className),
673
793
  ...props
674
794
  }
675
795
  ));
676
796
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
677
- var SelectSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
797
+ var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
678
798
  SelectPrimitive.Separator,
679
799
  {
680
800
  ref,
681
- className: cn("-mx-1 my-1 h-px bg-sv-border", className),
801
+ className: cn("sv-menu-separator", className),
682
802
  ...props
683
803
  }
684
804
  ));
685
805
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
686
806
 
687
807
  // src/components/ui/dropdown-menu.tsx
688
- var React3 = __toESM(require("react"), 1);
808
+ var React5 = __toESM(require("react"), 1);
689
809
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
690
- var import_jsx_runtime8 = require("react/jsx-runtime");
810
+ var import_jsx_runtime10 = require("react/jsx-runtime");
691
811
  var DropdownMenu = DropdownMenuPrimitive.Root;
692
812
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
693
813
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
694
814
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
695
815
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
696
816
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
697
- var DropdownMenuSubTrigger = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
698
- DropdownMenuPrimitive.SubTrigger,
699
- {
700
- ref,
701
- className: cn(
702
- "flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm font-medium outline-none focus:bg-sv-surface data-[state=open]:bg-sv-surface-2",
703
- inset && "pl-8",
704
- className
705
- ),
706
- ...props
707
- }
708
- ));
817
+ var DropdownMenuSubTrigger = React5.forwardRef(
818
+ ({ className, inset, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
819
+ DropdownMenuPrimitive.SubTrigger,
820
+ {
821
+ ref,
822
+ className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
823
+ ...props,
824
+ children: [
825
+ children,
826
+ icon
827
+ ]
828
+ }
829
+ )
830
+ );
709
831
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
710
- var DropdownMenuSubContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
832
+ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
711
833
  DropdownMenuPrimitive.SubContent,
712
834
  {
713
835
  ref,
714
- className: cn(
715
- "min-w-[8rem] overflow-hidden rounded-md border border-sv-border bg-sv-surface p-1 text-sv-text",
716
- className
717
- ),
836
+ className: cn("sv-pop", className),
718
837
  ...props
719
838
  }
720
839
  ));
721
840
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
722
- var DropdownMenuContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
841
+ var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
723
842
  DropdownMenuPrimitive.Content,
724
843
  {
725
844
  ref,
726
- className: cn(
727
- "min-w-[8rem] overflow-hidden rounded-md border border-sv-border bg-sv-surface p-1 text-sv-text",
728
- className
729
- ),
845
+ className: cn("sv-pop", className),
730
846
  ...props
731
847
  }
732
848
  ) }));
733
849
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
734
- var DropdownMenuItem = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
850
+ var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
735
851
  DropdownMenuPrimitive.Item,
736
852
  {
737
853
  ref,
738
- className: cn(
739
- "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",
740
- inset && "pl-8",
741
- className
742
- ),
854
+ className: cn("sv-menu-item", inset && "sv-menu-item--inset", className),
743
855
  ...props
744
856
  }
745
857
  ));
746
858
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
747
- var DropdownMenuCheckboxItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
859
+ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
748
860
  DropdownMenuPrimitive.CheckboxItem,
749
861
  {
750
862
  ref,
751
- className: cn(
752
- "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",
753
- className
754
- ),
755
- ...props
863
+ className: cn("sv-menu-item", className),
864
+ ...props,
865
+ children: [
866
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
867
+ children
868
+ ]
756
869
  }
757
870
  ));
758
871
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
759
- var DropdownMenuRadioItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
760
- DropdownMenuPrimitive.RadioItem,
761
- {
762
- ref,
763
- className: cn(
764
- "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",
765
- className
766
- ),
767
- ...props
768
- }
769
- ));
872
+ var DropdownMenuRadioItem = React5.forwardRef(
873
+ ({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
874
+ DropdownMenuPrimitive.RadioItem,
875
+ {
876
+ ref,
877
+ className: cn("sv-menu-item", className),
878
+ ...props,
879
+ children: [
880
+ icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
881
+ children
882
+ ]
883
+ }
884
+ )
885
+ );
770
886
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
771
- var DropdownMenuLabel = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
887
+ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
772
888
  DropdownMenuPrimitive.Label,
773
889
  {
774
890
  ref,
775
- className: cn(
776
- "px-2 py-1.5 text-sm font-semibold",
777
- inset && "pl-8",
778
- className
779
- ),
891
+ className: cn("sv-menu-label", inset && "sv-menu-item--inset", className),
780
892
  ...props
781
893
  }
782
894
  ));
783
895
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
784
- var DropdownMenuSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
896
+ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
785
897
  DropdownMenuPrimitive.Separator,
786
898
  {
787
899
  ref,
788
- className: cn("-mx-1 my-1 h-px bg-sv-border", className),
900
+ className: cn("sv-menu-separator", className),
789
901
  ...props
790
902
  }
791
903
  ));
@@ -793,79 +905,72 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
793
905
  var DropdownMenuShortcut = ({
794
906
  className,
795
907
  ...props
796
- }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
797
- "span",
798
- {
799
- className: cn("ml-auto text-xs tracking-widest opacity-60", className),
800
- ...props
801
- }
802
- );
908
+ }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: cn("sv-menu-shortcut", className), ...props });
803
909
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
804
910
 
805
911
  // src/components/ui/tabs.tsx
806
- var React4 = __toESM(require("react"), 1);
912
+ var React6 = __toESM(require("react"), 1);
807
913
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
808
- var import_jsx_runtime9 = require("react/jsx-runtime");
914
+ var import_jsx_runtime11 = require("react/jsx-runtime");
809
915
  var Tabs = TabsPrimitive.Root;
810
- var TabsList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
916
+ var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
811
917
  TabsPrimitive.List,
812
918
  {
813
919
  ref,
814
- className: cn(
815
- "inline-flex h-10 items-center justify-center rounded-md bg-sv-surface-2 p-1 text-sv-text-2",
816
- className
817
- ),
920
+ className: cn("sv-tabs__list", className),
818
921
  ...props
819
922
  }
820
923
  ));
821
924
  TabsList.displayName = TabsPrimitive.List.displayName;
822
- var TabsTrigger = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
925
+ var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
823
926
  TabsPrimitive.Trigger,
824
927
  {
825
928
  ref,
826
- className: cn(
827
- "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",
828
- className
829
- ),
929
+ className: cn("sv-tabs__trigger", className),
830
930
  ...props
831
931
  }
832
932
  ));
833
933
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
834
- var TabsContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
934
+ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
835
935
  TabsPrimitive.Content,
836
936
  {
837
937
  ref,
838
- className: cn(
839
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
840
- className
841
- ),
938
+ className: cn("sv-tabs__content", className),
842
939
  ...props
843
940
  }
844
941
  ));
845
942
  TabsContent.displayName = TabsPrimitive.Content.displayName;
846
943
 
847
944
  // src/components/ui/tooltip.tsx
848
- var React5 = __toESM(require("react"), 1);
945
+ var React7 = __toESM(require("react"), 1);
849
946
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
850
- var import_jsx_runtime10 = require("react/jsx-runtime");
947
+ var import_jsx_runtime12 = require("react/jsx-runtime");
851
948
  var TooltipProvider = TooltipPrimitive.Provider;
852
949
  var Tooltip = TooltipPrimitive.Root;
853
950
  var TooltipTrigger = TooltipPrimitive.Trigger;
854
- var TooltipContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
951
+ var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
855
952
  TooltipPrimitive.Content,
856
953
  {
857
954
  ref,
858
955
  sideOffset,
859
- className: cn(
860
- "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",
861
- className
862
- ),
956
+ className: cn("sv-pop", "sv-tooltip", className),
863
957
  ...props
864
958
  }
865
959
  ));
866
960
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
867
961
  // Annotate the CommonJS export names for ESM import in node:
868
962
  0 && (module.exports = {
963
+ AlertDialog,
964
+ AlertDialogAction,
965
+ AlertDialogCancel,
966
+ AlertDialogContent,
967
+ AlertDialogDescription,
968
+ AlertDialogFooter,
969
+ AlertDialogHeader,
970
+ AlertDialogOverlay,
971
+ AlertDialogPortal,
972
+ AlertDialogTitle,
973
+ AlertDialogTrigger,
869
974
  CopyButton,
870
975
  DEFAULT_STORAGE_KEY,
871
976
  Dialog,