@still-void/ui 2.0.1 → 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.
@@ -406,7 +406,7 @@ function ReadingProgress({ target, announce, className, ...rest }) {
406
406
  }
407
407
 
408
408
  // src/components/ui/dialog.tsx
409
- import * as React from "react";
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,35 +416,103 @@ 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 jsx6, jsxs } from "react/jsx-runtime";
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 = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
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
499
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
437
- var DialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
438
- /* @__PURE__ */ jsx6(DialogOverlay, {}),
439
- /* @__PURE__ */ jsx6(
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
- "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",
445
- className
446
- ),
447
- ...props
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
  ] }));
@@ -452,257 +520,306 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
452
520
  var DialogHeader = ({
453
521
  className,
454
522
  ...props
455
- }) => /* @__PURE__ */ jsx6(
456
- "div",
457
- {
458
- className: cn(
459
- "flex flex-col space-y-1.5 text-center sm:text-left",
460
- className
461
- ),
462
- ...props
463
- }
464
- );
523
+ }) => /* @__PURE__ */ jsx7("div", { className: cn("sv-dialog__header", className), ...props });
465
524
  DialogHeader.displayName = "DialogHeader";
466
525
  var DialogFooter = ({
467
526
  className,
468
527
  ...props
469
- }) => /* @__PURE__ */ jsx6(
470
- "div",
471
- {
472
- className: cn(
473
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
474
- className
475
- ),
476
- ...props
477
- }
478
- );
528
+ }) => /* @__PURE__ */ jsx7("div", { className: cn("sv-dialog__footer", className), ...props });
479
529
  DialogFooter.displayName = "DialogFooter";
480
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
530
+ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
481
531
  DialogPrimitive.Title,
482
532
  {
483
533
  ref,
484
- className: cn(
485
- "text-lg font-semibold leading-none tracking-tight",
486
- className
487
- ),
534
+ className: cn("sv-dialog__title", className),
488
535
  ...props
489
536
  }
490
537
  ));
491
538
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
492
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
539
+ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
493
540
  DialogPrimitive.Description,
494
541
  {
495
542
  ref,
496
- className: cn("text-sm text-sv-text-2", className),
543
+ className: cn("sv-dialog__description", className),
497
544
  ...props
498
545
  }
499
546
  ));
500
547
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
501
548
 
502
- // src/components/ui/select.tsx
503
- import * as React2 from "react";
504
- import * as SelectPrimitive from "@radix-ui/react-select";
505
- import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
506
- var Select = SelectPrimitive.Root;
507
- var SelectGroup = SelectPrimitive.Group;
508
- var SelectValue = SelectPrimitive.Value;
509
- var SelectTrigger = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
510
- SelectPrimitive.Trigger,
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 = AlertDialogPrimitive.Overlay.displayName;
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 = AlertDialogPrimitive.Content.displayName;
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 = ({
584
+ className,
585
+ ...props
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,
590
+ {
591
+ ref,
592
+ className: cn("sv-dialog__title", className),
593
+ ...props
594
+ }
595
+ ));
596
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
597
+ var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
598
+ AlertDialogPrimitive.Description,
599
+ {
600
+ ref,
601
+ className: cn("sv-dialog__description", className),
602
+ ...props
603
+ }
604
+ ));
605
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
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 = AlertDialogPrimitive.Action.displayName;
615
+ var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
616
+ AlertDialogPrimitive.Cancel,
511
617
  {
512
618
  ref,
513
- className: cn(
514
- "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",
515
- className
516
- ),
619
+ className: cn(className),
517
620
  ...props
518
621
  }
519
622
  ));
623
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
624
+
625
+ // src/components/ui/select.tsx
626
+ import * as React4 from "react";
627
+ import * as SelectPrimitive from "@radix-ui/react-select";
628
+ import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
629
+ var Select = SelectPrimitive.Root;
630
+ var SelectGroup = SelectPrimitive.Group;
631
+ var SelectValue = SelectPrimitive.Value;
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
+ );
520
652
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
521
- var SelectScrollUpButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
653
+ var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
522
654
  SelectPrimitive.ScrollUpButton,
523
655
  {
524
656
  ref,
525
- className: cn(
526
- "flex cursor-pointer items-center justify-center py-1",
527
- className
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
662
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
533
- var SelectScrollDownButton = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
663
+ var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
534
664
  SelectPrimitive.ScrollDownButton,
535
665
  {
536
666
  ref,
537
- className: cn(
538
- "flex cursor-pointer items-center justify-center py-1",
539
- className
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
672
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
545
- var SelectContent = React2.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx7(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs2(
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__ */ jsx7(SelectScrollUpButton, {}),
558
- /* @__PURE__ */ jsx7(
681
+ /* @__PURE__ */ jsx9(SelectScrollUpButton, {}),
682
+ /* @__PURE__ */ jsx9(
559
683
  SelectPrimitive.Viewport,
560
684
  {
561
685
  className: cn(
562
- "p-1",
563
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
686
+ "sv-pop__viewport",
687
+ position === "popper" && "sv-pop__viewport--popper"
564
688
  ),
565
689
  children
566
690
  }
567
691
  ),
568
- /* @__PURE__ */ jsx7(SelectScrollDownButton, {})
692
+ /* @__PURE__ */ jsx9(SelectScrollDownButton, {})
569
693
  ]
570
694
  }
571
695
  ) }));
572
696
  SelectContent.displayName = SelectPrimitive.Content.displayName;
573
- var SelectItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
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
- "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",
579
- className
580
- ),
581
- ...props
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
709
  SelectItem.displayName = SelectPrimitive.Item.displayName;
585
- var SelectLabel = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
710
+ var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
586
711
  SelectPrimitive.Label,
587
712
  {
588
713
  ref,
589
- className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
714
+ className: cn("sv-menu-label", className),
590
715
  ...props
591
716
  }
592
717
  ));
593
718
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
594
- var SelectSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
719
+ var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
595
720
  SelectPrimitive.Separator,
596
721
  {
597
722
  ref,
598
- className: cn("-mx-1 my-1 h-px bg-sv-border", className),
723
+ className: cn("sv-menu-separator", className),
599
724
  ...props
600
725
  }
601
726
  ));
602
727
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
603
728
 
604
729
  // src/components/ui/dropdown-menu.tsx
605
- import * as React3 from "react";
730
+ import * as React5 from "react";
606
731
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
607
- import { jsx as jsx8 } from "react/jsx-runtime";
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 = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx8(
615
- DropdownMenuPrimitive.SubTrigger,
616
- {
617
- ref,
618
- className: cn(
619
- "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",
620
- inset && "pl-8",
621
- className
622
- ),
623
- ...props
624
- }
625
- ));
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
+ );
626
753
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
627
- var DropdownMenuSubContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
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
762
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
639
- var DropdownMenuContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx8(
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
771
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
651
- var DropdownMenuItem = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx8(
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
780
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
664
- var DropdownMenuCheckboxItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
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
- "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",
670
- className
671
- ),
672
- ...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
+ ]
673
791
  }
674
792
  ));
675
793
  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
685
- }
686
- ));
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
+ );
687
808
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
688
- var DropdownMenuLabel = React3.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx8(
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
817
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
701
- var DropdownMenuSeparator = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
818
+ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
702
819
  DropdownMenuPrimitive.Separator,
703
820
  {
704
821
  ref,
705
- className: cn("-mx-1 my-1 h-px bg-sv-border", className),
822
+ className: cn("sv-menu-separator", className),
706
823
  ...props
707
824
  }
708
825
  ));
@@ -710,78 +827,71 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
710
827
  var DropdownMenuShortcut = ({
711
828
  className,
712
829
  ...props
713
- }) => /* @__PURE__ */ jsx8(
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 React4 from "react";
834
+ import * as React6 from "react";
724
835
  import * as TabsPrimitive from "@radix-ui/react-tabs";
725
- import { jsx as jsx9 } from "react/jsx-runtime";
836
+ import { jsx as jsx11 } from "react/jsx-runtime";
726
837
  var Tabs = TabsPrimitive.Root;
727
- var TabsList = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
838
+ var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
728
839
  TabsPrimitive.List,
729
840
  {
730
841
  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
- ),
842
+ className: cn("sv-tabs__list", className),
735
843
  ...props
736
844
  }
737
845
  ));
738
846
  TabsList.displayName = TabsPrimitive.List.displayName;
739
- var TabsTrigger = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
847
+ var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
740
848
  TabsPrimitive.Trigger,
741
849
  {
742
850
  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
- ),
851
+ className: cn("sv-tabs__trigger", className),
747
852
  ...props
748
853
  }
749
854
  ));
750
855
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
751
- var TabsContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
856
+ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
752
857
  TabsPrimitive.Content,
753
858
  {
754
859
  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
- ),
860
+ className: cn("sv-tabs__content", className),
759
861
  ...props
760
862
  }
761
863
  ));
762
864
  TabsContent.displayName = TabsPrimitive.Content.displayName;
763
865
 
764
866
  // src/components/ui/tooltip.tsx
765
- import * as React5 from "react";
867
+ import * as React7 from "react";
766
868
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
767
- import { jsx as jsx10 } from "react/jsx-runtime";
869
+ import { jsx as jsx12 } from "react/jsx-runtime";
768
870
  var TooltipProvider = TooltipPrimitive.Provider;
769
871
  var Tooltip = TooltipPrimitive.Root;
770
872
  var TooltipTrigger = TooltipPrimitive.Trigger;
771
- var TooltipContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx10(
873
+ var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx12(
772
874
  TooltipPrimitive.Content,
773
875
  {
774
876
  ref,
775
877
  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
- ),
878
+ className: cn("sv-pop", "sv-tooltip", className),
780
879
  ...props
781
880
  }
782
881
  ));
783
882
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
784
883
  export {
884
+ AlertDialog,
885
+ AlertDialogAction,
886
+ AlertDialogCancel,
887
+ AlertDialogContent,
888
+ AlertDialogDescription,
889
+ AlertDialogFooter,
890
+ AlertDialogHeader,
891
+ AlertDialogOverlay,
892
+ AlertDialogPortal,
893
+ AlertDialogTitle,
894
+ AlertDialogTrigger,
785
895
  CopyButton,
786
896
  DEFAULT_STORAGE_KEY,
787
897
  Dialog,