@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.
- package/CHANGELOG.md +61 -0
- package/README.md +42 -9
- package/dist/react/client/index.cjs +279 -174
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +62 -8
- package/dist/react/client/index.d.ts +62 -8
- package/dist/react/client/index.js +284 -174
- 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 +811 -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,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
|
|
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
499
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
437
|
-
var DialogContent =
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
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
|
] }));
|
|
@@ -452,257 +520,306 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
452
520
|
var DialogHeader = ({
|
|
453
521
|
className,
|
|
454
522
|
...props
|
|
455
|
-
}) => /* @__PURE__ */
|
|
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__ */
|
|
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 =
|
|
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 =
|
|
539
|
+
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
493
540
|
DialogPrimitive.Description,
|
|
494
541
|
{
|
|
495
542
|
ref,
|
|
496
|
-
className: cn("
|
|
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/
|
|
503
|
-
import * as
|
|
504
|
-
import * as
|
|
505
|
-
import { jsx as
|
|
506
|
-
var
|
|
507
|
-
var
|
|
508
|
-
var
|
|
509
|
-
var
|
|
510
|
-
|
|
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 =
|
|
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
662
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
533
|
-
var SelectScrollDownButton =
|
|
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
672
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
545
|
-
var SelectContent =
|
|
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
696
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
573
|
-
var SelectItem =
|
|
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
709
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
585
|
-
var SelectLabel =
|
|
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
718
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
594
|
-
var SelectSeparator =
|
|
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
727
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
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 =
|
|
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 =
|
|
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
|
));
|
|
@@ -710,78 +827,71 @@ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
|
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
|
|
836
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
726
837
|
var Tabs = TabsPrimitive.Root;
|
|
727
|
-
var TabsList =
|
|
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 =
|
|
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 =
|
|
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
|
|
867
|
+
import * as React7 from "react";
|
|
766
868
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
767
|
-
import { jsx as
|
|
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 =
|
|
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,
|