@still-void/ui 3.0.0 → 3.1.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 +32 -0
- package/dist/react/client/index.cjs +38 -30
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/client/index.js +38 -30
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +167 -154
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +20 -1
- package/dist/react/index.d.ts +20 -1
- package/dist/react/index.js +163 -151
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +102 -25
- package/package.json +1 -1
|
@@ -496,7 +496,7 @@ var DialogOverlay = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
496
496
|
...props
|
|
497
497
|
}
|
|
498
498
|
));
|
|
499
|
-
DialogOverlay.displayName =
|
|
499
|
+
DialogOverlay.displayName = "DialogOverlay";
|
|
500
500
|
var DialogContent = React2.forwardRef(({ className, children, showCloseButton = true, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
501
501
|
/* @__PURE__ */ jsx7(DialogOverlay, {}),
|
|
502
502
|
/* @__PURE__ */ jsxs(
|
|
@@ -516,7 +516,7 @@ var DialogContent = React2.forwardRef(({ className, children, showCloseButton =
|
|
|
516
516
|
}
|
|
517
517
|
)
|
|
518
518
|
] }));
|
|
519
|
-
DialogContent.displayName =
|
|
519
|
+
DialogContent.displayName = "DialogContent";
|
|
520
520
|
var DialogHeader = ({
|
|
521
521
|
className,
|
|
522
522
|
...props
|
|
@@ -535,7 +535,7 @@ var DialogTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
535
535
|
...props
|
|
536
536
|
}
|
|
537
537
|
));
|
|
538
|
-
DialogTitle.displayName =
|
|
538
|
+
DialogTitle.displayName = "DialogTitle";
|
|
539
539
|
var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
540
540
|
DialogPrimitive.Description,
|
|
541
541
|
{
|
|
@@ -544,7 +544,7 @@ var DialogDescription = React2.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
544
544
|
...props
|
|
545
545
|
}
|
|
546
546
|
));
|
|
547
|
-
DialogDescription.displayName =
|
|
547
|
+
DialogDescription.displayName = "DialogDescription";
|
|
548
548
|
|
|
549
549
|
// src/components/ui/alert-dialog.tsx
|
|
550
550
|
import * as React3 from "react";
|
|
@@ -561,7 +561,7 @@ var AlertDialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /*
|
|
|
561
561
|
...props
|
|
562
562
|
}
|
|
563
563
|
));
|
|
564
|
-
AlertDialogOverlay.displayName =
|
|
564
|
+
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
565
565
|
var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
|
|
566
566
|
/* @__PURE__ */ jsx8(AlertDialogOverlay, {}),
|
|
567
567
|
/* @__PURE__ */ jsx8(
|
|
@@ -574,7 +574,7 @@ var AlertDialogContent = React3.forwardRef(({ className, ...props }, ref) => /*
|
|
|
574
574
|
}
|
|
575
575
|
)
|
|
576
576
|
] }));
|
|
577
|
-
AlertDialogContent.displayName =
|
|
577
|
+
AlertDialogContent.displayName = "AlertDialogContent";
|
|
578
578
|
var AlertDialogHeader = ({
|
|
579
579
|
className,
|
|
580
580
|
...props
|
|
@@ -593,7 +593,7 @@ var AlertDialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
593
593
|
...props
|
|
594
594
|
}
|
|
595
595
|
));
|
|
596
|
-
AlertDialogTitle.displayName =
|
|
596
|
+
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
597
597
|
var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
598
598
|
AlertDialogPrimitive.Description,
|
|
599
599
|
{
|
|
@@ -602,7 +602,7 @@ var AlertDialogDescription = React3.forwardRef(({ className, ...props }, ref) =>
|
|
|
602
602
|
...props
|
|
603
603
|
}
|
|
604
604
|
));
|
|
605
|
-
AlertDialogDescription.displayName =
|
|
605
|
+
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
606
606
|
var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
607
607
|
AlertDialogPrimitive.Action,
|
|
608
608
|
{
|
|
@@ -611,7 +611,7 @@ var AlertDialogAction = React3.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
611
611
|
...props
|
|
612
612
|
}
|
|
613
613
|
));
|
|
614
|
-
AlertDialogAction.displayName =
|
|
614
|
+
AlertDialogAction.displayName = "AlertDialogAction";
|
|
615
615
|
var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
616
616
|
AlertDialogPrimitive.Cancel,
|
|
617
617
|
{
|
|
@@ -620,7 +620,7 @@ var AlertDialogCancel = React3.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
620
620
|
...props
|
|
621
621
|
}
|
|
622
622
|
));
|
|
623
|
-
AlertDialogCancel.displayName =
|
|
623
|
+
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
624
624
|
|
|
625
625
|
// src/components/ui/select.tsx
|
|
626
626
|
import * as React4 from "react";
|
|
@@ -649,7 +649,7 @@ var SelectTrigger = React4.forwardRef(
|
|
|
649
649
|
)
|
|
650
650
|
)
|
|
651
651
|
);
|
|
652
|
-
SelectTrigger.displayName =
|
|
652
|
+
SelectTrigger.displayName = "SelectTrigger";
|
|
653
653
|
var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
654
654
|
SelectPrimitive.ScrollUpButton,
|
|
655
655
|
{
|
|
@@ -659,7 +659,7 @@ var SelectScrollUpButton = React4.forwardRef(({ className, ...props }, ref) => /
|
|
|
659
659
|
children: /* @__PURE__ */ jsx9(Icon, { name: "chevron-up" })
|
|
660
660
|
}
|
|
661
661
|
));
|
|
662
|
-
SelectScrollUpButton.displayName =
|
|
662
|
+
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
663
663
|
var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
664
664
|
SelectPrimitive.ScrollDownButton,
|
|
665
665
|
{
|
|
@@ -669,7 +669,7 @@ var SelectScrollDownButton = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
669
669
|
children: /* @__PURE__ */ jsx9(Icon, { name: "chevron-down" })
|
|
670
670
|
}
|
|
671
671
|
));
|
|
672
|
-
SelectScrollDownButton.displayName =
|
|
672
|
+
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
673
673
|
var SelectContent = React4.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx9(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
|
|
674
674
|
SelectPrimitive.Content,
|
|
675
675
|
{
|
|
@@ -693,7 +693,7 @@ var SelectContent = React4.forwardRef(({ className, children, position = "popper
|
|
|
693
693
|
]
|
|
694
694
|
}
|
|
695
695
|
) }));
|
|
696
|
-
SelectContent.displayName =
|
|
696
|
+
SelectContent.displayName = "SelectContent";
|
|
697
697
|
var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx9(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs3(
|
|
698
698
|
SelectPrimitive.Item,
|
|
699
699
|
{
|
|
@@ -706,7 +706,7 @@ var SelectItem = React4.forwardRef(({ className, children, icon = /* @__PURE__ *
|
|
|
706
706
|
]
|
|
707
707
|
}
|
|
708
708
|
));
|
|
709
|
-
SelectItem.displayName =
|
|
709
|
+
SelectItem.displayName = "SelectItem";
|
|
710
710
|
var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
711
711
|
SelectPrimitive.Label,
|
|
712
712
|
{
|
|
@@ -715,7 +715,7 @@ var SelectLabel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
715
715
|
...props
|
|
716
716
|
}
|
|
717
717
|
));
|
|
718
|
-
SelectLabel.displayName =
|
|
718
|
+
SelectLabel.displayName = "SelectLabel";
|
|
719
719
|
var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
720
720
|
SelectPrimitive.Separator,
|
|
721
721
|
{
|
|
@@ -724,7 +724,7 @@ var SelectSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
724
724
|
...props
|
|
725
725
|
}
|
|
726
726
|
));
|
|
727
|
-
SelectSeparator.displayName =
|
|
727
|
+
SelectSeparator.displayName = "SelectSeparator";
|
|
728
728
|
|
|
729
729
|
// src/components/ui/dropdown-menu.tsx
|
|
730
730
|
import * as React5 from "react";
|
|
@@ -750,7 +750,7 @@ var DropdownMenuSubTrigger = React5.forwardRef(
|
|
|
750
750
|
}
|
|
751
751
|
)
|
|
752
752
|
);
|
|
753
|
-
DropdownMenuSubTrigger.displayName =
|
|
753
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
754
754
|
var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
755
755
|
DropdownMenuPrimitive.SubContent,
|
|
756
756
|
{
|
|
@@ -759,7 +759,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
|
759
759
|
...props
|
|
760
760
|
}
|
|
761
761
|
));
|
|
762
|
-
DropdownMenuSubContent.displayName =
|
|
762
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
763
763
|
var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx10(
|
|
764
764
|
DropdownMenuPrimitive.Content,
|
|
765
765
|
{
|
|
@@ -768,7 +768,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, ...props }, ref) => /*
|
|
|
768
768
|
...props
|
|
769
769
|
}
|
|
770
770
|
) }));
|
|
771
|
-
DropdownMenuContent.displayName =
|
|
771
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
772
772
|
var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
773
773
|
DropdownMenuPrimitive.Item,
|
|
774
774
|
{
|
|
@@ -777,7 +777,7 @@ var DropdownMenuItem = React5.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
777
777
|
...props
|
|
778
778
|
}
|
|
779
779
|
));
|
|
780
|
-
DropdownMenuItem.displayName =
|
|
780
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
781
781
|
var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon = /* @__PURE__ */ jsx10(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
782
782
|
DropdownMenuPrimitive.CheckboxItem,
|
|
783
783
|
{
|
|
@@ -790,7 +790,7 @@ var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, icon =
|
|
|
790
790
|
]
|
|
791
791
|
}
|
|
792
792
|
));
|
|
793
|
-
DropdownMenuCheckboxItem.displayName =
|
|
793
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
794
794
|
var DropdownMenuRadioItem = React5.forwardRef(
|
|
795
795
|
({ className, children, icon = /* @__PURE__ */ jsx10("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ jsxs4(
|
|
796
796
|
DropdownMenuPrimitive.RadioItem,
|
|
@@ -805,7 +805,7 @@ var DropdownMenuRadioItem = React5.forwardRef(
|
|
|
805
805
|
}
|
|
806
806
|
)
|
|
807
807
|
);
|
|
808
|
-
DropdownMenuRadioItem.displayName =
|
|
808
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
809
809
|
var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
810
810
|
DropdownMenuPrimitive.Label,
|
|
811
811
|
{
|
|
@@ -814,7 +814,7 @@ var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref)
|
|
|
814
814
|
...props
|
|
815
815
|
}
|
|
816
816
|
));
|
|
817
|
-
DropdownMenuLabel.displayName =
|
|
817
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
818
818
|
var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
819
819
|
DropdownMenuPrimitive.Separator,
|
|
820
820
|
{
|
|
@@ -823,7 +823,7 @@ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) =>
|
|
|
823
823
|
...props
|
|
824
824
|
}
|
|
825
825
|
));
|
|
826
|
-
DropdownMenuSeparator.displayName =
|
|
826
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
827
827
|
var DropdownMenuShortcut = ({
|
|
828
828
|
className,
|
|
829
829
|
...props
|
|
@@ -834,7 +834,15 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
834
834
|
import * as React6 from "react";
|
|
835
835
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
836
836
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
837
|
-
var Tabs =
|
|
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";
|
|
838
846
|
var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
839
847
|
TabsPrimitive.List,
|
|
840
848
|
{
|
|
@@ -843,7 +851,7 @@ var TabsList = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
843
851
|
...props
|
|
844
852
|
}
|
|
845
853
|
));
|
|
846
|
-
TabsList.displayName =
|
|
854
|
+
TabsList.displayName = "TabsList";
|
|
847
855
|
var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
848
856
|
TabsPrimitive.Trigger,
|
|
849
857
|
{
|
|
@@ -852,7 +860,7 @@ var TabsTrigger = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
852
860
|
...props
|
|
853
861
|
}
|
|
854
862
|
));
|
|
855
|
-
TabsTrigger.displayName =
|
|
863
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
856
864
|
var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
857
865
|
TabsPrimitive.Content,
|
|
858
866
|
{
|
|
@@ -861,7 +869,7 @@ var TabsContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
861
869
|
...props
|
|
862
870
|
}
|
|
863
871
|
));
|
|
864
|
-
TabsContent.displayName =
|
|
872
|
+
TabsContent.displayName = "TabsContent";
|
|
865
873
|
|
|
866
874
|
// src/components/ui/tooltip.tsx
|
|
867
875
|
import * as React7 from "react";
|
|
@@ -879,7 +887,7 @@ var TooltipContent = React7.forwardRef(({ className, sideOffset = 4, ...props },
|
|
|
879
887
|
...props
|
|
880
888
|
}
|
|
881
889
|
));
|
|
882
|
-
TooltipContent.displayName =
|
|
890
|
+
TooltipContent.displayName = "TooltipContent";
|
|
883
891
|
export {
|
|
884
892
|
AlertDialog,
|
|
885
893
|
AlertDialogAction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/react/client/ThemeProvider.tsx","../../../src/tokens/colors.ts","../../../src/behaviors/themeManager.ts","../../../src/recipes/cx.ts","../../../src/react/client/ThemeToggle.tsx","../../../src/react/client/CopyButton.tsx","../../../src/behaviors/clipboard.ts","../../../src/recipes/article.ts","../../../src/react/client/TableOfContents.tsx","../../../src/react/client/hooks.ts","../../../src/behaviors/readingProgress.ts","../../../src/behaviors/scrollSpy.ts","../../../src/react/client/ReadingProgress.tsx","../../../src/components/ui/dialog.tsx","../../../src/lib/utils.ts","../../../src/components/ui/icon.tsx","../../../src/components/ui/icon-set.ts","../../../src/components/ui/alert-dialog.tsx","../../../src/components/ui/select.tsx","../../../src/components/ui/dropdown-menu.tsx","../../../src/components/ui/tabs.tsx","../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from 'react';\nimport {\n createThemeManager,\n type ThemeManager,\n type ThemeState,\n} from '../../behaviors/themeManager';\nimport {\n DEFAULT_ACCENT,\n DEFAULT_MODE,\n type AccentName,\n type ThemeMode,\n} from '../../tokens/colors';\n\nexport interface ThemeContextValue {\n mode: ThemeMode;\n accent: AccentName;\n setMode: (mode: ThemeMode) => void;\n setAccent: (accent: AccentName) => void;\n toggleMode: () => void;\n}\n\nconst ThemeContext = createContext<ThemeContextValue | null>(null);\n\nexport interface ThemeProviderProps {\n children: ReactNode;\n defaultMode?: ThemeMode;\n defaultAccent?: AccentName;\n /** localStorage key; null disables persistence. */\n storageKey?: string | null;\n}\n\n/**\n * Wraps the app and drives data-theme/data-accent on <html> via the\n * framework-agnostic theme manager. For zero-flash SSR, also render the\n * attributes on <html> in your root layout:\n * <html data-theme=\"dark\" data-accent=\"cyan\" suppressHydrationWarning>\n */\nexport function ThemeProvider({\n children,\n defaultMode = DEFAULT_MODE,\n defaultAccent = DEFAULT_ACCENT,\n storageKey,\n}: ThemeProviderProps) {\n const managerRef = useRef<ThemeManager | null>(null);\n const [state, setState] = useState<ThemeState>({ mode: defaultMode, accent: defaultAccent });\n\n useEffect(() => {\n const manager = createThemeManager({ defaultMode, defaultAccent, storageKey });\n managerRef.current = manager;\n setState(manager.getState());\n const unsubscribe = manager.subscribe(setState);\n return () => {\n unsubscribe();\n manager.destroy();\n managerRef.current = null;\n };\n // Recreating the manager on default changes would clobber user choice.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const value = useMemo<ThemeContextValue>(\n () => ({\n mode: state.mode,\n accent: state.accent,\n setMode: (mode) => managerRef.current?.setMode(mode),\n setAccent: (accent) => managerRef.current?.setAccent(accent),\n toggleMode: () => managerRef.current?.toggleMode(),\n }),\n [state],\n );\n\n return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>;\n}\n\nexport function useTheme(): ThemeContextValue {\n const ctx = useContext(ThemeContext);\n if (!ctx) throw new Error('useTheme must be used within ThemeProvider');\n return ctx;\n}\n","/**\n * Still Void color tokens.\n * Values ported literally from the Still Void spec (blog.kalleopinheiro.dev).\n * Do not round or \"approximate\" — fidelity rule.\n */\nexport const colors = {\n dark: {\n bg: '#0A0A0C',\n bgElev: '#111114',\n surface: '#16161B',\n surface2: '#1C1C22',\n border: 'rgba(255,255,255,0.08)',\n borderStrong: 'rgba(255,255,255,0.14)',\n text: '#EDEDF0',\n text2: '#8B8B96',\n // Corrected from #5A5A66 (~2.6:1 on surface) to meet WCAG AA 4.5:1 — text3 is used for\n // real copy (metadata, TOC links), not decoration, so it must be readable, not just muted.\n text3: '#83838F',\n },\n light: {\n bg: '#F7F7F5',\n bgElev: '#FFFFFF',\n surface: '#FFFFFF',\n surface2: '#F2F2EF',\n border: 'rgba(0,0,0,0.08)',\n borderStrong: 'rgba(0,0,0,0.14)',\n text: '#16161B',\n text2: '#5A5A66',\n // Corrected from #8B8B96 (~3.1:1 on white) to meet WCAG AA 4.5:1, same reasoning as dark.\n // A further step from #6F6F78 to #6D6D76: the first fix cleared white/paper (≥4.7:1) but\n // was only ~4.44:1 against surface2 (#F2F2EF), the darkest of the light surfaces — still a\n // failure. Verified against bg/bgElev/surface/surface2 together, not just one background.\n text3: '#6D6D76',\n },\n} as const;\n\nexport const accents = {\n cyan: 'oklch(0.78 0.12 210)',\n violet: 'oklch(0.72 0.14 295)',\n mint: 'oklch(0.78 0.10 160)',\n amber: 'oklch(0.78 0.12 75)',\n} as const;\n\n/**\n * Text/UI-safe accent variants (\"ink\"). `accents` above is tuned for surface use\n * (dots, gradient border, progress bar) and fails WCAG AA as text on light\n * backgrounds (e.g. cyan is ~1.8:1 on white). These preserve the dark-mode\n * values (already ≥6.9:1) and darken each hue for light mode to clear 4.5:1\n * against both light surfaces. Used anywhere the accent colors text: prose\n * links, active TOC state, callout labels, hero eyebrow, copy-success, focus ring.\n */\nexport const accentsInk = {\n dark: {\n cyan: 'oklch(0.78 0.12 210)',\n violet: 'oklch(0.72 0.14 295)',\n mint: 'oklch(0.78 0.10 160)',\n amber: 'oklch(0.78 0.12 75)',\n },\n light: {\n cyan: 'oklch(0.525 0.09 210)',\n violet: 'oklch(0.545 0.14 295)',\n mint: 'oklch(0.52 0.1 160)',\n amber: 'oklch(0.535 0.11 75)',\n },\n} as const;\n\n/**\n * Semantic state colors — independent of the switchable `accent`, so a\n * consumer picking `data-accent=\"amber\"` never collides a warning with the\n * site accent. Fixed per meaning in both surface and text/UI (\"ink\") forms,\n * same split as `accents`/`accentsInk`.\n */\nexport const semantic = {\n dark: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n light: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n} as const;\n\nexport const semanticInk = {\n dark: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n light: {\n danger: 'oklch(0.555 0.19 25)',\n success: 'oklch(0.515 0.14 150)',\n info: 'oklch(0.525 0.09 210)',\n warning: 'oklch(0.535 0.11 75)',\n },\n} as const;\n\nexport type ThemeMode = keyof typeof colors;\nexport type AccentName = keyof typeof accents;\nexport type ColorScheme = (typeof colors)[ThemeMode];\nexport type SemanticName = keyof (typeof semantic)['dark'];\n\nexport const themeModes = Object.keys(colors) as ThemeMode[];\nexport const accentNames = Object.keys(accents) as AccentName[];\n\nexport const DEFAULT_MODE: ThemeMode = 'dark';\nexport const DEFAULT_ACCENT: AccentName = 'cyan';\n","import {\n DEFAULT_ACCENT,\n DEFAULT_MODE,\n accentNames,\n themeModes,\n type AccentName,\n type ThemeMode,\n} from '../tokens/colors';\n\nexport interface ThemeState {\n mode: ThemeMode;\n accent: AccentName;\n}\n\nexport interface ThemeManagerOptions {\n /** Element receiving data-theme / data-accent. Defaults to <html>. */\n root?: HTMLElement;\n defaultMode?: ThemeMode;\n defaultAccent?: AccentName;\n /** localStorage key. Pass null to disable persistence. */\n storageKey?: string | null;\n}\n\nexport interface ThemeManager {\n getState: () => ThemeState;\n setMode: (mode: ThemeMode) => void;\n setAccent: (accent: AccentName) => void;\n toggleMode: () => void;\n subscribe: (listener: (state: ThemeState) => void) => () => void;\n destroy: () => void;\n}\n\nexport const DEFAULT_STORAGE_KEY = 'still-void-theme';\n\nfunction isMode(value: unknown): value is ThemeMode {\n return themeModes.includes(value as ThemeMode);\n}\n\nfunction isAccent(value: unknown): value is AccentName {\n return accentNames.includes(value as AccentName);\n}\n\nfunction readStorage(key: string): Partial<ThemeState> {\n try {\n const raw = window.localStorage.getItem(key);\n if (!raw) return {};\n const parsed: unknown = JSON.parse(raw);\n if (typeof parsed !== 'object' || parsed === null) return {};\n const { mode, accent } = parsed as Record<string, unknown>;\n return {\n ...(isMode(mode) ? { mode } : {}),\n ...(isAccent(accent) ? { accent } : {}),\n };\n } catch {\n return {};\n }\n}\n\n/**\n * Framework-agnostic theme controller. Applies `data-theme` and `data-accent`\n * attributes; theme.css does the rest via CSS vars. If the server already\n * rendered the attributes (RSC/SSR), those win over defaults, so there is\n * no flash of wrong theme.\n */\nexport function createThemeManager(options: ThemeManagerOptions = {}): ThemeManager {\n const root = options.root ?? document.documentElement;\n const storageKey = options.storageKey === null ? null : (options.storageKey ?? DEFAULT_STORAGE_KEY);\n\n const ssrMode = root.getAttribute('data-theme');\n const ssrAccent = root.getAttribute('data-accent');\n const stored = storageKey ? readStorage(storageKey) : {};\n\n let state: ThemeState = {\n mode: stored.mode ?? (isMode(ssrMode) ? ssrMode : (options.defaultMode ?? DEFAULT_MODE)),\n accent:\n stored.accent ?? (isAccent(ssrAccent) ? ssrAccent : (options.defaultAccent ?? DEFAULT_ACCENT)),\n };\n\n const listeners = new Set<(state: ThemeState) => void>();\n\n function apply(): void {\n root.setAttribute('data-theme', state.mode);\n root.setAttribute('data-accent', state.accent);\n if (storageKey) {\n try {\n window.localStorage.setItem(storageKey, JSON.stringify(state));\n } catch {\n // storage unavailable (private mode, quota) — theme still applies\n }\n }\n for (const listener of listeners) listener(state);\n }\n\n apply();\n\n return {\n getState: () => state,\n setMode(mode) {\n state = { ...state, mode };\n apply();\n },\n setAccent(accent) {\n state = { ...state, accent };\n apply();\n },\n toggleMode() {\n state = { ...state, mode: state.mode === 'dark' ? 'light' : 'dark' };\n apply();\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => listeners.delete(listener);\n },\n destroy() {\n listeners.clear();\n },\n };\n}\n","/** Minimal class-name joiner. Falsy values are dropped. */\nexport function cx(...parts: Array<string | false | null | undefined>): string {\n return parts.filter(Boolean).join(' ');\n}\n","import type { ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { useTheme } from './ThemeProvider';\n\nexport interface ThemeToggleProps extends ComponentPropsWithoutRef<'button'> {}\n\n/** Dark/light toggle. Compose into <Header actions={...} />. */\nexport function ThemeToggle({ className, ...rest }: ThemeToggleProps) {\n const { mode, toggleMode } = useTheme();\n const next = mode === 'dark' ? 'light' : 'dark';\n return (\n <button\n type=\"button\"\n onClick={toggleMode}\n className={cx('sv-header__link', className)}\n aria-label={`Switch to ${next} theme`}\n {...rest}\n >\n {mode === 'dark' ? 'Light' : 'Dark'}\n </button>\n );\n}\n","import { useEffect, useRef, useState, type ComponentPropsWithoutRef } from 'react';\nimport { copyToClipboard } from '../../behaviors/clipboard';\nimport { codeBlockClasses } from '../../recipes/article';\nimport { cx } from '../../recipes/cx';\n\nconst COPIED_FEEDBACK_MS = 2000;\n\nexport interface CopyButtonProps extends ComponentPropsWithoutRef<'button'> {\n /** Text copied to the clipboard. */\n code: string;\n label?: string;\n copiedLabel?: string;\n}\n\n/** Copy-to-clipboard button for <CodeBlock actions={...} />. */\nexport function CopyButton({\n code,\n label = 'Copy',\n copiedLabel = 'Copied',\n className,\n ...rest\n}: CopyButtonProps) {\n const [copied, setCopied] = useState(false);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(\n () => () => {\n if (timerRef.current) clearTimeout(timerRef.current);\n },\n [],\n );\n\n async function handleCopy(): Promise<void> {\n const ok = await copyToClipboard(code);\n if (!ok) return;\n setCopied(true);\n if (timerRef.current) clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => setCopied(false), COPIED_FEEDBACK_MS);\n }\n\n return (\n <button\n type=\"button\"\n onClick={handleCopy}\n className={cx(copied ? codeBlockClasses.copyCopied : codeBlockClasses.copy, className)}\n aria-live=\"polite\"\n {...rest}\n >\n {copied ? copiedLabel : label}\n </button>\n );\n}\n","/** Copy text to the clipboard. Returns false when the Clipboard API is unavailable or denied. */\nexport async function copyToClipboard(text: string): Promise<boolean> {\n if (typeof navigator === 'undefined' || !navigator.clipboard?.writeText) return false;\n try {\n await navigator.clipboard.writeText(text);\n return true;\n } catch {\n return false;\n }\n}\n","import { cx } from './cx';\n\n/**\n * Article recipes: CodeBlock, Callout, TableOfContents, ReadingProgress,\n * ArticleHeader, Prose. Pure functions — Server Component safe.\n */\n\nexport function codeBlock(): string {\n return 'sv-code-block';\n}\n\nexport const codeBlockClasses = {\n header: 'sv-code-block__header',\n pre: 'sv-code-block__pre',\n copy: 'sv-code-block__copy',\n copyCopied: cx('sv-code-block__copy', 'sv-code-block__copy--copied'),\n} as const;\n\nexport type CalloutKind = 'note' | 'warn' | 'aha';\n\nexport function callout(kind: CalloutKind): string {\n return cx('sv-callout', `sv-callout--${kind}`);\n}\n\nexport const calloutClasses = {\n label: 'sv-callout__label',\n} as const;\n\nexport const calloutLabels: Record<CalloutKind, string> = {\n note: 'Note',\n warn: 'Warn',\n aha: 'Aha!',\n};\n\nexport function tableOfContents(): string {\n return 'sv-toc';\n}\n\nexport interface TocLinkOptions {\n active?: boolean;\n /** Heading depth, 2 (h2) or 3 (h3). Depth 3 indents. */\n depth?: 2 | 3;\n}\n\nexport function tocLink(options: TocLinkOptions = {}): string {\n return cx(\n 'sv-toc__link',\n options.active && 'sv-toc__link--active',\n options.depth === 3 && 'sv-toc__link--depth-3',\n );\n}\n\nexport function readingProgress(): string {\n return 'sv-reading-progress';\n}\n\nexport const readingProgressClasses = {\n bar: 'sv-reading-progress__bar',\n} as const;\n\n/** CSS var read by `.sv-reading-progress__bar` (0 → 1). */\nexport const READING_PROGRESS_VAR = '--sv-reading-progress';\n\nexport function articleHeader(): string {\n return 'sv-article-header';\n}\n\nexport const articleHeaderClasses = {\n title: 'sv-article-header__title',\n meta: 'sv-article-header__meta',\n author: 'sv-article-header__author',\n} as const;\n\nexport function prose(): string {\n return 'sv-prose';\n}\n\nexport const proseClasses = {\n lead: 'sv-prose__lead',\n} as const;\n","import { useMemo, type ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { tableOfContents, tocLink } from '../../recipes/article';\nimport type { TocItem } from '../../types';\nimport { useScrollSpy } from './hooks';\n\nexport interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {\n items: TocItem[];\n /** IntersectionObserver rootMargin override. */\n rootMargin?: string;\n}\n\n/** Article table of contents with scroll-spy active state. */\nexport function TableOfContents({ items, rootMargin, className, ...rest }: TableOfContentsProps) {\n const ids = useMemo(() => items.map((item) => item.id), [items]);\n const activeId = useScrollSpy(ids, rootMargin);\n\n return (\n <nav className={cx(tableOfContents(), className)} aria-label=\"Table of contents\" {...rest}>\n {items.map((item) => (\n <a\n key={item.id}\n href={`#${item.id}`}\n className={tocLink({ active: item.id === activeId, depth: item.depth })}\n aria-current={item.id === activeId ? 'true' : undefined}\n >\n {item.label}\n </a>\n ))}\n </nav>\n );\n}\n","import { useEffect, useState } from 'react';\nimport { createReadingProgress } from '../../behaviors/readingProgress';\nimport { createScrollSpy } from '../../behaviors/scrollSpy';\n\n/** Reports which heading id is currently active while scrolling. */\nexport function useScrollSpy(ids: readonly string[], rootMargin?: string): string | null {\n const [activeId, setActiveId] = useState<string | null>(null);\n const key = ids.join('|');\n\n useEffect(() => {\n const spy = createScrollSpy(ids, { onChange: setActiveId, rootMargin });\n return () => spy.destroy();\n // `key` captures ids content; the array identity itself may change per render.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [key, rootMargin]);\n\n return activeId;\n}\n\n/**\n * Reading progress of the page (or target element), in [0, 1].\n *\n * The visual bar is driven by the `--sv-reading-progress` CSS var (written on\n * every rAF-throttled scroll tick regardless of this hook), so React state\n * only needs to update when the *reported* value's bucket changes — not on\n * every scroll frame. `step` sets the bucket size; the default (1, i.e. only\n * the 0 and 1 buckets) keeps re-renders to a couple per page for consumers\n * that don't need the numeric value, while `announce` on `<ReadingProgress>`\n * passes 0.1 for a coarse 10%-step live value.\n */\nexport function useReadingProgress(target?: HTMLElement | null, step = 1): number {\n const [percent, setPercent] = useState(0);\n\n useEffect(() => {\n const progress = createReadingProgress({\n target: target ?? undefined,\n onChange: (value) => {\n const bucket = step > 0 ? Math.round(value / step) * step : value;\n setPercent((prev) => (prev === bucket ? prev : bucket));\n },\n });\n return () => progress.destroy();\n }, [target, step]);\n\n return percent;\n}\n","import { READING_PROGRESS_VAR } from '../recipes/article';\n\n// Guards against environments without requestAnimationFrame (e.g. this module\n// evaluated at import time outside a browser/jsdom window) by falling back to\n// a timer. Modern jsdom (the test environment here) does implement rAF, so\n// the fallback branch below is not exercised by this suite — verified\n// unreachable-in-tests, not untested application logic.\nconst raf: (cb: () => void) => number =\n typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function'\n ? (cb) => window.requestAnimationFrame(cb)\n : /* v8 ignore next */ (cb) => setTimeout(cb, 16) as unknown as number;\nconst cancelRaf: (id: number) => void =\n typeof window !== 'undefined' && typeof window.cancelAnimationFrame === 'function'\n ? (id) => window.cancelAnimationFrame(id)\n : /* v8 ignore next */ (id) => clearTimeout(id as unknown as ReturnType<typeof setTimeout>);\n\nexport interface ReadingProgressOptions {\n /** Element whose scroll extent defines 100%. Defaults to the document. */\n target?: HTMLElement;\n /** Receives progress in [0, 1]. */\n onChange?: (percent: number) => void;\n /** Element that receives the CSS var (default: <html>). Pass null to skip. */\n varTarget?: HTMLElement | null;\n}\n\nexport interface ReadingProgress {\n getPercent: () => number;\n destroy: () => void;\n}\n\n/**\n * Tracks document (or element) reading progress. Writes the\n * `--sv-reading-progress` CSS var consumed by `.sv-reading-progress__bar`.\n */\nexport function createReadingProgress(options: ReadingProgressOptions = {}): ReadingProgress {\n const varTarget =\n options.varTarget === null ? null : (options.varTarget ?? document.documentElement);\n let percent = 0;\n\n function measure(): number {\n if (options.target) {\n const rect = options.target.getBoundingClientRect();\n const viewport = window.innerHeight;\n const total = rect.height - viewport;\n if (total <= 0) return 1;\n return Math.min(1, Math.max(0, -rect.top / total));\n }\n const doc = document.documentElement;\n const total = doc.scrollHeight - window.innerHeight;\n if (total <= 0) return 1;\n return Math.min(1, Math.max(0, window.scrollY / total));\n }\n\n function update(): void {\n percent = measure();\n varTarget?.style.setProperty(READING_PROGRESS_VAR, String(percent));\n options.onChange?.(percent);\n }\n\n // Coalesce scroll/resize bursts into one measurement per animation frame —\n // without this, `measure()` (a forced layout read) runs once per event.\n let frame: number | null = null;\n function onFrame(): void {\n frame = null;\n update();\n }\n function schedule(): void {\n if (frame !== null) return;\n frame = raf(onFrame);\n }\n\n update();\n window.addEventListener('scroll', schedule, { passive: true });\n window.addEventListener('resize', schedule, { passive: true });\n\n return {\n getPercent: () => percent,\n destroy() {\n window.removeEventListener('scroll', schedule);\n window.removeEventListener('resize', schedule);\n if (frame !== null) cancelRaf(frame);\n },\n };\n}\n","export interface ScrollSpyOptions {\n /** Called whenever the active heading changes. `null` when none is visible. */\n onChange: (activeId: string | null) => void;\n /** Forwarded to IntersectionObserver. Default biases toward the reading line. */\n rootMargin?: string;\n threshold?: number | number[];\n}\n\nexport interface ScrollSpy {\n destroy: () => void;\n}\n\n/**\n * Watches headings by id and reports which one is active.\n * Framework-agnostic core used by the React TableOfContents.\n */\nexport function createScrollSpy(ids: readonly string[], options: ScrollSpyOptions): ScrollSpy {\n const visible = new Map<string, number>();\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n visible.set(entry.target.id, entry.intersectionRatio);\n } else {\n visible.delete(entry.target.id);\n }\n }\n // First visible id in document order wins.\n const active = ids.find((id) => visible.has(id)) ?? null;\n options.onChange(active);\n },\n {\n rootMargin: options.rootMargin ?? '0px 0px -70% 0px',\n threshold: options.threshold ?? 0,\n },\n );\n\n for (const id of ids) {\n const el = document.getElementById(id);\n if (el) observer.observe(el);\n }\n\n return {\n destroy: () => observer.disconnect(),\n };\n}\n","import type { ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { readingProgress, readingProgressClasses } from '../../recipes/article';\nimport { useReadingProgress } from './hooks';\n\nexport interface ReadingProgressProps extends ComponentPropsWithoutRef<'div'> {\n /** Element whose scroll extent defines 100%. Defaults to the document. */\n target?: HTMLElement | null;\n /**\n * Expose progress to assistive tech as a live `role=\"progressbar\"`,\n * updated in coarse 10% steps. Off by default: the bar is a visual aid for\n * a value the user already has (their own scroll position), and a value\n * that changes continuously during scroll would otherwise spam screen\n * readers with `aria-valuenow` updates.\n */\n announce?: boolean;\n}\n\n/**\n * Fixed top progress bar. Motion is linear by spec. The fill is driven by\n * the `--sv-reading-progress` CSS var (see style.css), not React state, so\n * scrolling doesn't re-render this component on every frame.\n */\nexport function ReadingProgress({ target, announce, className, ...rest }: ReadingProgressProps) {\n const percent = useReadingProgress(target, announce ? 0.1 : 1);\n const a11yProps = announce\n ? {\n role: 'progressbar' as const,\n 'aria-valuemin': 0,\n 'aria-valuemax': 100,\n 'aria-valuenow': Math.round(percent * 100),\n 'aria-label': 'Reading progress',\n }\n : { 'aria-hidden': true as const };\n\n return (\n <div className={cx(readingProgress(), className)} {...a11yProps} {...rest}>\n <div className={readingProgressClasses.bar} />\n </div>\n );\n}\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\"sv-overlay\", className)}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nexport interface DialogContentProps\n extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {\n /**\n * The `X` in the corner. On by default because a modal without a pointer\n * affordance to leave it is the accessibility gap this closes; `false` is for\n * the deliberate case — a flow that must be resolved by an explicit choice.\n */\n showCloseButton?: boolean\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps\n>(({ className, children, showCloseButton = true, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\"sv-dialog\", className)}\n {...props}\n // Spread after props, not before: aria-modal is a guarantee this\n // component makes (CLIENT-05), not a default a caller can override by\n // passing its own aria-modal. Radix renders role=\"dialog\" but never\n // aria-modal, so assistive tech was told nothing about the content\n // behind the panel being inert.\n aria-modal=\"true\"\n >\n {children}\n {showCloseButton ? (\n <DialogPrimitive.Close className=\"sv-dialog__close\">\n <Icon name=\"x\" />\n <span className=\"sv-sr-only\">Close dialog</span>\n </DialogPrimitive.Close>\n ) : null}\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__header\", className)} {...props} />\n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__footer\", className)} {...props} />\n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"sv-dialog__title\", className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"sv-dialog__description\", className)}\n {...props}\n />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { ICON_FALLBACK_NAME, ICON_GLYPHS, type IconName } from './icon-set';\n\nexport type { IconName };\n\nexport interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {\n name: IconName;\n /** `md` is the default and carries no modifier — the base class is the size. */\n size?: 'sm' | 'md' | 'lg';\n /** Present: the icon is announced. Absent: it stays decorative. */\n label?: string;\n}\n\n/**\n * The design system's icon (ICON-01..06).\n *\n * Server-safe by construction: no hook, no context, no client boundary —\n * heroicons is a plain forwardRef <svg> and this adds only class names, so\n * `Icon` renders inside a Next.js Server Component (AD-002, AD-013).\n *\n * Size is deliberately NOT a prop on the svg: heroicons emits no width/height\n * attribute, so `.sv-icon` is the only thing sizing it, and a consumer cannot\n * pull an icon off the token scale by passing a pixel value.\n */\nconst Icon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ name, size = 'md', label, className, ...props }, ref) => {\n // A name outside the union only reaches here from JS, JSON or a CMS —\n // places the compiler never saw. Falling back beats throwing: a wrong\n // icon is a visible defect, a thrown error is a blank page.\n const Glyph = ICON_GLYPHS[name] ?? ICON_GLYPHS[ICON_FALLBACK_NAME];\n\n return (\n <Glyph\n {...props}\n ref={ref}\n className={cn(\n 'sv-icon',\n size === 'sm' && 'sv-icon--sm',\n size === 'lg' && 'sv-icon--lg',\n className,\n )}\n // Spread before, not after: whether the icon is announced is\n // controlled by `label`, not by a stray aria-hidden/role/aria-label\n // the caller passed through `...props` — those must not be able to\n // override the mode `label` selected. (Heroicons itself still\n // spreads ITS own default aria-hidden under what we pass here, so\n // aria-hidden={undefined} below is still what removes it when a\n // label is present.)\n aria-hidden={label === undefined ? 'true' : undefined}\n role={label === undefined ? undefined : 'img'}\n aria-label={label}\n />\n );\n },\n);\nIcon.displayName = 'Icon';\n\nexport { Icon };\n","import type * as React from 'react';\nimport {\n Bars3Icon,\n CheckCircleIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DocumentDuplicateIcon,\n ExclamationCircleIcon,\n ExclamationTriangleIcon,\n InformationCircleIcon,\n MagnifyingGlassIcon,\n MoonIcon,\n SunIcon,\n XMarkIcon,\n} from '@heroicons/react/24/outline';\n\n/**\n * The curated set behind `Icon` (AD-013).\n *\n * One grade — 24/outline — is the whole family, because size comes from CSS\n * (`.sv-icon`) and mixing grades would mix stroke weights at the same rendered\n * size. Each glyph is a NAMED import from the grade subpath: a namespace import\n * or the package root barrel would pull all ~1200 heroicons into the consumer's\n * bundle instead of the one or two they use.\n *\n * The names are the design system's, not heroicons': `alert-triangle` reads the\n * same whatever library draws it, which is what keeps a future swap of source\n * out of the public API.\n */\n\nexport type IconName =\n | 'x'\n | 'check'\n | 'chevron-down'\n | 'chevron-up'\n | 'chevron-right'\n | 'chevron-left'\n | 'info'\n | 'alert-triangle'\n | 'alert-circle'\n | 'check-circle'\n | 'copy'\n | 'sun'\n | 'moon'\n | 'search'\n | 'menu';\n\n/** A heroicon: a forwardRef <svg> that takes SVG props and no size prop. */\ntype GlyphComponent = React.ForwardRefExoticComponent<\n React.PropsWithoutRef<React.SVGProps<SVGSVGElement>> &\n React.RefAttributes<SVGSVGElement>\n>;\n\nexport const ICON_GLYPHS: Record<IconName, GlyphComponent> = {\n x: XMarkIcon,\n check: CheckIcon,\n 'chevron-down': ChevronDownIcon,\n 'chevron-up': ChevronUpIcon,\n 'chevron-right': ChevronRightIcon,\n 'chevron-left': ChevronLeftIcon,\n info: InformationCircleIcon,\n 'alert-triangle': ExclamationTriangleIcon,\n 'alert-circle': ExclamationCircleIcon,\n 'check-circle': CheckCircleIcon,\n copy: DocumentDuplicateIcon,\n sun: SunIcon,\n moon: MoonIcon,\n search: MagnifyingGlassIcon,\n menu: Bars3Icon,\n};\n\nexport const ICON_NAMES = Object.keys(ICON_GLYPHS) as IconName[];\n\n/**\n * What renders when a name outside the union arrives at runtime (ICON-05).\n * `alert-circle` rather than something neutral: an unknown name is a defect in\n * the calling code, and the rendered icon should say so instead of passing for\n * a deliberate choice.\n */\nexport const ICON_FALLBACK_NAME: IconName = 'alert-circle';\n","import * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\nimport { cn } from \"../../lib/utils\"\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n className={cn(\"sv-overlay\", className)}\n {...props}\n />\n))\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n // Radix renders role=\"alertdialog\" but never aria-modal, so assistive\n // tech was told nothing about the content behind the panel being inert\n // (same gap CLIENT-05 closed for Dialog).\n aria-modal=\"true\"\n className={cn(\"sv-dialog\", className)}\n {...props}\n />\n </AlertDialogPortal>\n))\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__header\", className)} {...props} />\n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__footer\", className)} {...props} />\n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"sv-dialog__title\", className)}\n {...props}\n />\n))\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"sv-dialog__description\", className)}\n {...props}\n />\n))\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName\n\n// No default class here on purpose — the consumer composes Action/Cancel\n// with Button (variant=\"destructive\" / variant=\"outline\") from\n// @still-void/ui/react, same as DialogClose carries no styling opinion.\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(className)}\n {...props}\n />\n))\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(className)}\n {...props}\n />\n))\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst Select = SelectPrimitive.Root\nconst SelectGroup = SelectPrimitive.Group\nconst SelectValue = SelectPrimitive.Value\n\n/**\n * `icon` is the same contract on every member that owns an indicator slot\n * (CLIENT-14): omit it and the system icon renders, pass a node and that node\n * takes the slot, pass `null` and nothing is rendered at all so the slot\n * collapses. `null` has to be distinguishable from \"omitted\", which is why the\n * default lives in the parameter — a default only fires on `undefined`.\n */\nexport interface SelectTriggerProps\n extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n icon?: React.ReactNode\n}\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(\n (\n { className, children, icon = <Icon name=\"chevron-down\" />, ...props },\n ref\n ) => (\n // The trigger IS a form field, so it shares .sv-field with Input, Textarea\n // and NativeSelect rather than restating the frame. The utility string this\n // replaces named `ring-offset-background` and `focus:ring-accent`, neither\n // of which this package ever declared: the field had no visible focus.\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\"sv-field\", className)}\n {...props}\n >\n {children}\n {icon === null ? null : (\n <SelectPrimitive.Icon>{icon}</SelectPrimitive.Icon>\n )}\n </SelectPrimitive.Trigger>\n )\n)\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\"sv-pop__scroll\", className)}\n {...props}\n >\n <Icon name=\"chevron-up\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\"sv-pop__scroll\", className)}\n {...props}\n >\n <Icon name=\"chevron-down\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n {/*\n In \"popper\" mode Radix anchors the panel to the trigger and sets\n data-side/data-align for the flip it resolved; \"item-aligned\" has no\n anchor to nudge against, so the modifier only applies in the former.\n The old Tailwind build carried this as\n `position === \"popper\" && \"data-[side=bottom]:translate-y-1 ...\"` —\n same behavior, ported to .sv-pop--popper/[data-side] in style.css.\n */}\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\"sv-pop\", position === \"popper\" && \"sv-pop--popper\", className)}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"sv-pop__viewport\",\n position === \"popper\" && \"sv-pop__viewport--popper\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nexport interface SelectItemProps\n extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {\n icon?: React.ReactNode\n}\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n SelectItemProps\n>(({ className, children, icon = <Icon name=\"check\" />, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <SelectPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </SelectPrimitive.ItemIndicator>\n )}\n {/*\n CLIENT-13. Without ItemText the children are plain markup inside the\n option: Radix has nothing to portal into the trigger, and SelectValue —\n which renders nothing of its own once a value is set — leaves the trigger\n BLANK the moment the user picks something. ItemText both labels the option\n and feeds the trigger, so it is not optional decoration.\n */}\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"sv-menu-label\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"sv-menu-separator\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n","import * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\n/**\n * `icon` is the same contract as Select's (CLIENT-14): omit it and the system\n * icon renders, pass a node and that node takes the slot, pass `null` and the\n * slot collapses. The default lives in the parameter, not a fallback\n * expression, so it only fires on `undefined` — `null` has to stay `null`.\n */\nexport interface DropdownMenuSubTriggerProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean\n icon?: React.ReactNode\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n DropdownMenuSubTriggerProps\n>(\n (\n { className, inset, children, icon = <Icon name=\"chevron-right\" />, ...props },\n ref\n ) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"sv-menu-item\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n >\n {children}\n {icon}\n </DropdownMenuPrimitive.SubTrigger>\n )\n)\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"sv-pop\", className)}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n className={cn(\"sv-pop\", className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\"sv-menu-item\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nexport interface DropdownMenuCheckboxItemProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> {\n icon?: React.ReactNode\n}\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n DropdownMenuCheckboxItemProps\n>(({ className, children, icon = <Icon name=\"check\" />, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <DropdownMenuPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nexport interface DropdownMenuRadioItemProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> {\n icon?: React.ReactNode\n}\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n DropdownMenuRadioItemProps\n>(\n (\n { className, children, icon = <span className=\"sv-menu-item__dot\" />, ...props },\n ref\n ) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <DropdownMenuPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.RadioItem>\n )\n)\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\"sv-menu-label\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"sv-menu-separator\", className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => (\n <span className={cn(\"sv-menu-shortcut\", className)} {...props} />\n)\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n","import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\nimport { cn } from \"../../lib/utils\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\"sv-tabs__list\", className)}\n {...props}\n />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\"sv-tabs__trigger\", className)}\n {...props}\n />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"sv-tabs__content\", className)}\n {...props}\n />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n","import * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\nimport { cn } from \"../../lib/utils\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"sv-pop\", \"sv-tooltip\", className)}\n {...props}\n />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"mappings":";;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;;;ACHA,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA;AAAA;AAAA,I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AAA;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW,GAAG,UAAU,cAAc,SAAS;AAAA,IAC9C,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAA+B,yBAAQ;","names":["jsx","useEffect","useRef","useState","jsx","useState","useRef","useEffect","useMemo","useEffect","useState","total","useState","useEffect","jsx","useMemo","jsx","React","jsx","jsx","React","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs","React","jsx","React","jsx"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/react/client/ThemeProvider.tsx","../../../src/tokens/colors.ts","../../../src/behaviors/themeManager.ts","../../../src/recipes/cx.ts","../../../src/react/client/ThemeToggle.tsx","../../../src/react/client/CopyButton.tsx","../../../src/behaviors/clipboard.ts","../../../src/recipes/article.ts","../../../src/react/client/TableOfContents.tsx","../../../src/react/client/hooks.ts","../../../src/behaviors/readingProgress.ts","../../../src/behaviors/scrollSpy.ts","../../../src/react/client/ReadingProgress.tsx","../../../src/components/ui/dialog.tsx","../../../src/lib/utils.ts","../../../src/components/ui/icon.tsx","../../../src/components/ui/icon-set.ts","../../../src/components/ui/alert-dialog.tsx","../../../src/components/ui/select.tsx","../../../src/components/ui/dropdown-menu.tsx","../../../src/components/ui/tabs.tsx","../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from 'react';\nimport {\n createThemeManager,\n type ThemeManager,\n type ThemeState,\n} from '../../behaviors/themeManager';\nimport {\n DEFAULT_ACCENT,\n DEFAULT_MODE,\n type AccentName,\n type ThemeMode,\n} from '../../tokens/colors';\n\nexport interface ThemeContextValue {\n mode: ThemeMode;\n accent: AccentName;\n setMode: (mode: ThemeMode) => void;\n setAccent: (accent: AccentName) => void;\n toggleMode: () => void;\n}\n\nconst ThemeContext = createContext<ThemeContextValue | null>(null);\n\nexport interface ThemeProviderProps {\n children: ReactNode;\n defaultMode?: ThemeMode;\n defaultAccent?: AccentName;\n /** localStorage key; null disables persistence. */\n storageKey?: string | null;\n}\n\n/**\n * Wraps the app and drives data-theme/data-accent on <html> via the\n * framework-agnostic theme manager. For zero-flash SSR, also render the\n * attributes on <html> in your root layout:\n * <html data-theme=\"dark\" data-accent=\"cyan\" suppressHydrationWarning>\n */\nexport function ThemeProvider({\n children,\n defaultMode = DEFAULT_MODE,\n defaultAccent = DEFAULT_ACCENT,\n storageKey,\n}: ThemeProviderProps) {\n const managerRef = useRef<ThemeManager | null>(null);\n const [state, setState] = useState<ThemeState>({ mode: defaultMode, accent: defaultAccent });\n\n useEffect(() => {\n const manager = createThemeManager({ defaultMode, defaultAccent, storageKey });\n managerRef.current = manager;\n setState(manager.getState());\n const unsubscribe = manager.subscribe(setState);\n return () => {\n unsubscribe();\n manager.destroy();\n managerRef.current = null;\n };\n // Recreating the manager on default changes would clobber user choice.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const value = useMemo<ThemeContextValue>(\n () => ({\n mode: state.mode,\n accent: state.accent,\n setMode: (mode) => managerRef.current?.setMode(mode),\n setAccent: (accent) => managerRef.current?.setAccent(accent),\n toggleMode: () => managerRef.current?.toggleMode(),\n }),\n [state],\n );\n\n return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>;\n}\n\nexport function useTheme(): ThemeContextValue {\n const ctx = useContext(ThemeContext);\n if (!ctx) throw new Error('useTheme must be used within ThemeProvider');\n return ctx;\n}\n","/**\n * Still Void color tokens.\n * Values ported literally from the Still Void spec (blog.kalleopinheiro.dev).\n * Do not round or \"approximate\" — fidelity rule.\n */\nexport const colors = {\n dark: {\n bg: '#0A0A0C',\n bgElev: '#111114',\n surface: '#16161B',\n surface2: '#1C1C22',\n border: 'rgba(255,255,255,0.08)',\n borderStrong: 'rgba(255,255,255,0.14)',\n text: '#EDEDF0',\n text2: '#8B8B96',\n // Corrected from #5A5A66 (~2.6:1 on surface) to meet WCAG AA 4.5:1 — text3 is used for\n // real copy (metadata, TOC links), not decoration, so it must be readable, not just muted.\n text3: '#83838F',\n },\n light: {\n bg: '#F7F7F5',\n bgElev: '#FFFFFF',\n surface: '#FFFFFF',\n surface2: '#F2F2EF',\n border: 'rgba(0,0,0,0.08)',\n borderStrong: 'rgba(0,0,0,0.14)',\n text: '#16161B',\n text2: '#5A5A66',\n // Corrected from #8B8B96 (~3.1:1 on white) to meet WCAG AA 4.5:1, same reasoning as dark.\n // A further step from #6F6F78 to #6D6D76: the first fix cleared white/paper (≥4.7:1) but\n // was only ~4.44:1 against surface2 (#F2F2EF), the darkest of the light surfaces — still a\n // failure. Verified against bg/bgElev/surface/surface2 together, not just one background.\n text3: '#6D6D76',\n },\n} as const;\n\nexport const accents = {\n cyan: 'oklch(0.78 0.12 210)',\n violet: 'oklch(0.72 0.14 295)',\n mint: 'oklch(0.78 0.10 160)',\n amber: 'oklch(0.78 0.12 75)',\n} as const;\n\n/**\n * Text/UI-safe accent variants (\"ink\"). `accents` above is tuned for surface use\n * (dots, gradient border, progress bar) and fails WCAG AA as text on light\n * backgrounds (e.g. cyan is ~1.8:1 on white). These preserve the dark-mode\n * values (already ≥6.9:1) and darken each hue for light mode to clear 4.5:1\n * against both light surfaces. Used anywhere the accent colors text: prose\n * links, active TOC state, callout labels, hero eyebrow, copy-success, focus ring.\n */\nexport const accentsInk = {\n dark: {\n cyan: 'oklch(0.78 0.12 210)',\n violet: 'oklch(0.72 0.14 295)',\n mint: 'oklch(0.78 0.10 160)',\n amber: 'oklch(0.78 0.12 75)',\n },\n light: {\n cyan: 'oklch(0.525 0.09 210)',\n violet: 'oklch(0.545 0.14 295)',\n mint: 'oklch(0.52 0.1 160)',\n amber: 'oklch(0.535 0.11 75)',\n },\n} as const;\n\n/**\n * Semantic state colors — independent of the switchable `accent`, so a\n * consumer picking `data-accent=\"amber\"` never collides a warning with the\n * site accent. Fixed per meaning in both surface and text/UI (\"ink\") forms,\n * same split as `accents`/`accentsInk`.\n */\nexport const semantic = {\n dark: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n light: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n} as const;\n\nexport const semanticInk = {\n dark: {\n danger: 'oklch(0.68 0.19 25)',\n success: 'oklch(0.75 0.15 150)',\n info: 'oklch(0.78 0.12 210)',\n warning: 'oklch(0.78 0.12 75)',\n },\n light: {\n danger: 'oklch(0.555 0.19 25)',\n success: 'oklch(0.515 0.14 150)',\n info: 'oklch(0.525 0.09 210)',\n warning: 'oklch(0.535 0.11 75)',\n },\n} as const;\n\nexport type ThemeMode = keyof typeof colors;\nexport type AccentName = keyof typeof accents;\nexport type ColorScheme = (typeof colors)[ThemeMode];\nexport type SemanticName = keyof (typeof semantic)['dark'];\n\nexport const themeModes = Object.keys(colors) as ThemeMode[];\nexport const accentNames = Object.keys(accents) as AccentName[];\n\nexport const DEFAULT_MODE: ThemeMode = 'dark';\nexport const DEFAULT_ACCENT: AccentName = 'cyan';\n","import {\n DEFAULT_ACCENT,\n DEFAULT_MODE,\n accentNames,\n themeModes,\n type AccentName,\n type ThemeMode,\n} from '../tokens/colors';\n\nexport interface ThemeState {\n mode: ThemeMode;\n accent: AccentName;\n}\n\nexport interface ThemeManagerOptions {\n /** Element receiving data-theme / data-accent. Defaults to <html>. */\n root?: HTMLElement;\n defaultMode?: ThemeMode;\n defaultAccent?: AccentName;\n /** localStorage key. Pass null to disable persistence. */\n storageKey?: string | null;\n}\n\nexport interface ThemeManager {\n getState: () => ThemeState;\n setMode: (mode: ThemeMode) => void;\n setAccent: (accent: AccentName) => void;\n toggleMode: () => void;\n subscribe: (listener: (state: ThemeState) => void) => () => void;\n destroy: () => void;\n}\n\nexport const DEFAULT_STORAGE_KEY = 'still-void-theme';\n\nfunction isMode(value: unknown): value is ThemeMode {\n return themeModes.includes(value as ThemeMode);\n}\n\nfunction isAccent(value: unknown): value is AccentName {\n return accentNames.includes(value as AccentName);\n}\n\nfunction readStorage(key: string): Partial<ThemeState> {\n try {\n const raw = window.localStorage.getItem(key);\n if (!raw) return {};\n const parsed: unknown = JSON.parse(raw);\n if (typeof parsed !== 'object' || parsed === null) return {};\n const { mode, accent } = parsed as Record<string, unknown>;\n return {\n ...(isMode(mode) ? { mode } : {}),\n ...(isAccent(accent) ? { accent } : {}),\n };\n } catch {\n return {};\n }\n}\n\n/**\n * Framework-agnostic theme controller. Applies `data-theme` and `data-accent`\n * attributes; theme.css does the rest via CSS vars. If the server already\n * rendered the attributes (RSC/SSR), those win over defaults, so there is\n * no flash of wrong theme.\n */\nexport function createThemeManager(options: ThemeManagerOptions = {}): ThemeManager {\n const root = options.root ?? document.documentElement;\n const storageKey = options.storageKey === null ? null : (options.storageKey ?? DEFAULT_STORAGE_KEY);\n\n const ssrMode = root.getAttribute('data-theme');\n const ssrAccent = root.getAttribute('data-accent');\n const stored = storageKey ? readStorage(storageKey) : {};\n\n let state: ThemeState = {\n mode: stored.mode ?? (isMode(ssrMode) ? ssrMode : (options.defaultMode ?? DEFAULT_MODE)),\n accent:\n stored.accent ?? (isAccent(ssrAccent) ? ssrAccent : (options.defaultAccent ?? DEFAULT_ACCENT)),\n };\n\n const listeners = new Set<(state: ThemeState) => void>();\n\n function apply(): void {\n root.setAttribute('data-theme', state.mode);\n root.setAttribute('data-accent', state.accent);\n if (storageKey) {\n try {\n window.localStorage.setItem(storageKey, JSON.stringify(state));\n } catch {\n // storage unavailable (private mode, quota) — theme still applies\n }\n }\n for (const listener of listeners) listener(state);\n }\n\n apply();\n\n return {\n getState: () => state,\n setMode(mode) {\n state = { ...state, mode };\n apply();\n },\n setAccent(accent) {\n state = { ...state, accent };\n apply();\n },\n toggleMode() {\n state = { ...state, mode: state.mode === 'dark' ? 'light' : 'dark' };\n apply();\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => listeners.delete(listener);\n },\n destroy() {\n listeners.clear();\n },\n };\n}\n","/** Minimal class-name joiner. Falsy values are dropped. */\nexport function cx(...parts: Array<string | false | null | undefined>): string {\n return parts.filter(Boolean).join(' ');\n}\n","import type { ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { useTheme } from './ThemeProvider';\n\nexport interface ThemeToggleProps extends ComponentPropsWithoutRef<'button'> {}\n\n/** Dark/light toggle. Compose into <Header actions={...} />. */\nexport function ThemeToggle({ className, ...rest }: ThemeToggleProps) {\n const { mode, toggleMode } = useTheme();\n const next = mode === 'dark' ? 'light' : 'dark';\n return (\n <button\n type=\"button\"\n onClick={toggleMode}\n className={cx('sv-header__link', className)}\n aria-label={`Switch to ${next} theme`}\n {...rest}\n >\n {mode === 'dark' ? 'Light' : 'Dark'}\n </button>\n );\n}\n","import { useEffect, useRef, useState, type ComponentPropsWithoutRef } from 'react';\nimport { copyToClipboard } from '../../behaviors/clipboard';\nimport { codeBlockClasses } from '../../recipes/article';\nimport { cx } from '../../recipes/cx';\n\nconst COPIED_FEEDBACK_MS = 2000;\n\nexport interface CopyButtonProps extends ComponentPropsWithoutRef<'button'> {\n /** Text copied to the clipboard. */\n code: string;\n label?: string;\n copiedLabel?: string;\n}\n\n/** Copy-to-clipboard button for <CodeBlock actions={...} />. */\nexport function CopyButton({\n code,\n label = 'Copy',\n copiedLabel = 'Copied',\n className,\n ...rest\n}: CopyButtonProps) {\n const [copied, setCopied] = useState(false);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(\n () => () => {\n if (timerRef.current) clearTimeout(timerRef.current);\n },\n [],\n );\n\n async function handleCopy(): Promise<void> {\n const ok = await copyToClipboard(code);\n if (!ok) return;\n setCopied(true);\n if (timerRef.current) clearTimeout(timerRef.current);\n timerRef.current = setTimeout(() => setCopied(false), COPIED_FEEDBACK_MS);\n }\n\n return (\n <button\n type=\"button\"\n onClick={handleCopy}\n className={cx(copied ? codeBlockClasses.copyCopied : codeBlockClasses.copy, className)}\n aria-live=\"polite\"\n {...rest}\n >\n {copied ? copiedLabel : label}\n </button>\n );\n}\n","/** Copy text to the clipboard. Returns false when the Clipboard API is unavailable or denied. */\nexport async function copyToClipboard(text: string): Promise<boolean> {\n if (typeof navigator === 'undefined' || !navigator.clipboard?.writeText) return false;\n try {\n await navigator.clipboard.writeText(text);\n return true;\n } catch {\n return false;\n }\n}\n","import { cx } from './cx';\n\n/**\n * Article recipes: CodeBlock, Callout, TableOfContents, ReadingProgress,\n * ArticleHeader, Prose. Pure functions — Server Component safe.\n */\n\nexport function codeBlock(): string {\n return 'sv-code-block';\n}\n\nexport const codeBlockClasses = {\n header: 'sv-code-block__header',\n pre: 'sv-code-block__pre',\n copy: 'sv-code-block__copy',\n copyCopied: cx('sv-code-block__copy', 'sv-code-block__copy--copied'),\n} as const;\n\nexport type CalloutKind = 'note' | 'warn' | 'aha';\n\nexport function callout(kind: CalloutKind): string {\n return cx('sv-callout', `sv-callout--${kind}`);\n}\n\nexport const calloutClasses = {\n label: 'sv-callout__label',\n} as const;\n\nexport const calloutLabels: Record<CalloutKind, string> = {\n note: 'Note',\n warn: 'Warn',\n aha: 'Aha!',\n};\n\nexport function tableOfContents(): string {\n return 'sv-toc';\n}\n\nexport interface TocLinkOptions {\n active?: boolean;\n /** Heading depth, 2 (h2) or 3 (h3). Depth 3 indents. */\n depth?: 2 | 3;\n}\n\nexport function tocLink(options: TocLinkOptions = {}): string {\n return cx(\n 'sv-toc__link',\n options.active && 'sv-toc__link--active',\n options.depth === 3 && 'sv-toc__link--depth-3',\n );\n}\n\nexport function readingProgress(): string {\n return 'sv-reading-progress';\n}\n\nexport const readingProgressClasses = {\n bar: 'sv-reading-progress__bar',\n} as const;\n\n/** CSS var read by `.sv-reading-progress__bar` (0 → 1). */\nexport const READING_PROGRESS_VAR = '--sv-reading-progress';\n\nexport function articleHeader(): string {\n return 'sv-article-header';\n}\n\nexport const articleHeaderClasses = {\n title: 'sv-article-header__title',\n meta: 'sv-article-header__meta',\n author: 'sv-article-header__author',\n} as const;\n\nexport function prose(): string {\n return 'sv-prose';\n}\n\nexport const proseClasses = {\n lead: 'sv-prose__lead',\n} as const;\n","import { useMemo, type ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { tableOfContents, tocLink } from '../../recipes/article';\nimport type { TocItem } from '../../types';\nimport { useScrollSpy } from './hooks';\n\nexport interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {\n items: TocItem[];\n /** IntersectionObserver rootMargin override. */\n rootMargin?: string;\n}\n\n/** Article table of contents with scroll-spy active state. */\nexport function TableOfContents({ items, rootMargin, className, ...rest }: TableOfContentsProps) {\n const ids = useMemo(() => items.map((item) => item.id), [items]);\n const activeId = useScrollSpy(ids, rootMargin);\n\n return (\n <nav className={cx(tableOfContents(), className)} aria-label=\"Table of contents\" {...rest}>\n {items.map((item) => (\n <a\n key={item.id}\n href={`#${item.id}`}\n className={tocLink({ active: item.id === activeId, depth: item.depth })}\n aria-current={item.id === activeId ? 'true' : undefined}\n >\n {item.label}\n </a>\n ))}\n </nav>\n );\n}\n","import { useEffect, useState } from 'react';\nimport { createReadingProgress } from '../../behaviors/readingProgress';\nimport { createScrollSpy } from '../../behaviors/scrollSpy';\n\n/** Reports which heading id is currently active while scrolling. */\nexport function useScrollSpy(ids: readonly string[], rootMargin?: string): string | null {\n const [activeId, setActiveId] = useState<string | null>(null);\n const key = ids.join('|');\n\n useEffect(() => {\n const spy = createScrollSpy(ids, { onChange: setActiveId, rootMargin });\n return () => spy.destroy();\n // `key` captures ids content; the array identity itself may change per render.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [key, rootMargin]);\n\n return activeId;\n}\n\n/**\n * Reading progress of the page (or target element), in [0, 1].\n *\n * The visual bar is driven by the `--sv-reading-progress` CSS var (written on\n * every rAF-throttled scroll tick regardless of this hook), so React state\n * only needs to update when the *reported* value's bucket changes — not on\n * every scroll frame. `step` sets the bucket size; the default (1, i.e. only\n * the 0 and 1 buckets) keeps re-renders to a couple per page for consumers\n * that don't need the numeric value, while `announce` on `<ReadingProgress>`\n * passes 0.1 for a coarse 10%-step live value.\n */\nexport function useReadingProgress(target?: HTMLElement | null, step = 1): number {\n const [percent, setPercent] = useState(0);\n\n useEffect(() => {\n const progress = createReadingProgress({\n target: target ?? undefined,\n onChange: (value) => {\n const bucket = step > 0 ? Math.round(value / step) * step : value;\n setPercent((prev) => (prev === bucket ? prev : bucket));\n },\n });\n return () => progress.destroy();\n }, [target, step]);\n\n return percent;\n}\n","import { READING_PROGRESS_VAR } from '../recipes/article';\n\n// Guards against environments without requestAnimationFrame (e.g. this module\n// evaluated at import time outside a browser/jsdom window) by falling back to\n// a timer. Modern jsdom (the test environment here) does implement rAF, so\n// the fallback branch below is not exercised by this suite — verified\n// unreachable-in-tests, not untested application logic.\nconst raf: (cb: () => void) => number =\n typeof window !== 'undefined' && typeof window.requestAnimationFrame === 'function'\n ? (cb) => window.requestAnimationFrame(cb)\n : /* v8 ignore next */ (cb) => setTimeout(cb, 16) as unknown as number;\nconst cancelRaf: (id: number) => void =\n typeof window !== 'undefined' && typeof window.cancelAnimationFrame === 'function'\n ? (id) => window.cancelAnimationFrame(id)\n : /* v8 ignore next */ (id) => clearTimeout(id as unknown as ReturnType<typeof setTimeout>);\n\nexport interface ReadingProgressOptions {\n /** Element whose scroll extent defines 100%. Defaults to the document. */\n target?: HTMLElement;\n /** Receives progress in [0, 1]. */\n onChange?: (percent: number) => void;\n /** Element that receives the CSS var (default: <html>). Pass null to skip. */\n varTarget?: HTMLElement | null;\n}\n\nexport interface ReadingProgress {\n getPercent: () => number;\n destroy: () => void;\n}\n\n/**\n * Tracks document (or element) reading progress. Writes the\n * `--sv-reading-progress` CSS var consumed by `.sv-reading-progress__bar`.\n */\nexport function createReadingProgress(options: ReadingProgressOptions = {}): ReadingProgress {\n const varTarget =\n options.varTarget === null ? null : (options.varTarget ?? document.documentElement);\n let percent = 0;\n\n function measure(): number {\n if (options.target) {\n const rect = options.target.getBoundingClientRect();\n const viewport = window.innerHeight;\n const total = rect.height - viewport;\n if (total <= 0) return 1;\n return Math.min(1, Math.max(0, -rect.top / total));\n }\n const doc = document.documentElement;\n const total = doc.scrollHeight - window.innerHeight;\n if (total <= 0) return 1;\n return Math.min(1, Math.max(0, window.scrollY / total));\n }\n\n function update(): void {\n percent = measure();\n varTarget?.style.setProperty(READING_PROGRESS_VAR, String(percent));\n options.onChange?.(percent);\n }\n\n // Coalesce scroll/resize bursts into one measurement per animation frame —\n // without this, `measure()` (a forced layout read) runs once per event.\n let frame: number | null = null;\n function onFrame(): void {\n frame = null;\n update();\n }\n function schedule(): void {\n if (frame !== null) return;\n frame = raf(onFrame);\n }\n\n update();\n window.addEventListener('scroll', schedule, { passive: true });\n window.addEventListener('resize', schedule, { passive: true });\n\n return {\n getPercent: () => percent,\n destroy() {\n window.removeEventListener('scroll', schedule);\n window.removeEventListener('resize', schedule);\n if (frame !== null) cancelRaf(frame);\n },\n };\n}\n","export interface ScrollSpyOptions {\n /** Called whenever the active heading changes. `null` when none is visible. */\n onChange: (activeId: string | null) => void;\n /** Forwarded to IntersectionObserver. Default biases toward the reading line. */\n rootMargin?: string;\n threshold?: number | number[];\n}\n\nexport interface ScrollSpy {\n destroy: () => void;\n}\n\n/**\n * Watches headings by id and reports which one is active.\n * Framework-agnostic core used by the React TableOfContents.\n */\nexport function createScrollSpy(ids: readonly string[], options: ScrollSpyOptions): ScrollSpy {\n const visible = new Map<string, number>();\n\n const observer = new IntersectionObserver(\n (entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n visible.set(entry.target.id, entry.intersectionRatio);\n } else {\n visible.delete(entry.target.id);\n }\n }\n // First visible id in document order wins.\n const active = ids.find((id) => visible.has(id)) ?? null;\n options.onChange(active);\n },\n {\n rootMargin: options.rootMargin ?? '0px 0px -70% 0px',\n threshold: options.threshold ?? 0,\n },\n );\n\n for (const id of ids) {\n const el = document.getElementById(id);\n if (el) observer.observe(el);\n }\n\n return {\n destroy: () => observer.disconnect(),\n };\n}\n","import type { ComponentPropsWithoutRef } from 'react';\nimport { cx } from '../../recipes/cx';\nimport { readingProgress, readingProgressClasses } from '../../recipes/article';\nimport { useReadingProgress } from './hooks';\n\nexport interface ReadingProgressProps extends ComponentPropsWithoutRef<'div'> {\n /** Element whose scroll extent defines 100%. Defaults to the document. */\n target?: HTMLElement | null;\n /**\n * Expose progress to assistive tech as a live `role=\"progressbar\"`,\n * updated in coarse 10% steps. Off by default: the bar is a visual aid for\n * a value the user already has (their own scroll position), and a value\n * that changes continuously during scroll would otherwise spam screen\n * readers with `aria-valuenow` updates.\n */\n announce?: boolean;\n}\n\n/**\n * Fixed top progress bar. Motion is linear by spec. The fill is driven by\n * the `--sv-reading-progress` CSS var (see style.css), not React state, so\n * scrolling doesn't re-render this component on every frame.\n */\nexport function ReadingProgress({ target, announce, className, ...rest }: ReadingProgressProps) {\n const percent = useReadingProgress(target, announce ? 0.1 : 1);\n const a11yProps = announce\n ? {\n role: 'progressbar' as const,\n 'aria-valuemin': 0,\n 'aria-valuemax': 100,\n 'aria-valuenow': Math.round(percent * 100),\n 'aria-label': 'Reading progress',\n }\n : { 'aria-hidden': true as const };\n\n return (\n <div className={cx(readingProgress(), className)} {...a11yProps} {...rest}>\n <div className={readingProgressClasses.bar} />\n </div>\n );\n}\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\"sv-overlay\", className)}\n {...props}\n />\n))\nDialogOverlay.displayName = \"DialogOverlay\"\n\nexport interface DialogContentProps\n extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {\n /**\n * The `X` in the corner. On by default because a modal without a pointer\n * affordance to leave it is the accessibility gap this closes; `false` is for\n * the deliberate case — a flow that must be resolved by an explicit choice.\n */\n showCloseButton?: boolean\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps\n>(({ className, children, showCloseButton = true, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\"sv-dialog\", className)}\n {...props}\n // Spread after props, not before: aria-modal is a guarantee this\n // component makes (CLIENT-05), not a default a caller can override by\n // passing its own aria-modal. Radix renders role=\"dialog\" but never\n // aria-modal, so assistive tech was told nothing about the content\n // behind the panel being inert.\n aria-modal=\"true\"\n >\n {children}\n {showCloseButton ? (\n <DialogPrimitive.Close className=\"sv-dialog__close\">\n <Icon name=\"x\" />\n <span className=\"sv-sr-only\">Close dialog</span>\n </DialogPrimitive.Close>\n ) : null}\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = \"DialogContent\"\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__header\", className)} {...props} />\n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__footer\", className)} {...props} />\n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"sv-dialog__title\", className)}\n {...props}\n />\n))\nDialogTitle.displayName = \"DialogTitle\"\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"sv-dialog__description\", className)}\n {...props}\n />\n))\nDialogDescription.displayName = \"DialogDescription\"\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\n/**\n * Deliberately separate from `recipes/cx`: this family's own classes are\n * `sv-*`, never Tailwind utilities, but a consumer can still compose these\n * components with their own Tailwind `className` override (see\n * `@still-void/ui/tailwind.css`) — `twMerge` is what makes that override\n * actually win instead of colliding. `cx()` has no such job and stays a\n * plain joiner. See docs/design-system.md's Recipes section.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { ICON_FALLBACK_NAME, ICON_GLYPHS, type IconName } from './icon-set';\n\nexport type { IconName };\n\nexport interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'ref'> {\n name: IconName;\n /** `md` is the default and carries no modifier — the base class is the size. */\n size?: 'sm' | 'md' | 'lg';\n /** Present: the icon is announced. Absent: it stays decorative. */\n label?: string;\n}\n\n/**\n * The design system's icon (ICON-01..06).\n *\n * Server-safe by construction: no hook, no context, no client boundary —\n * heroicons is a plain forwardRef <svg> and this adds only class names, so\n * `Icon` renders inside a Next.js Server Component (AD-002, AD-013).\n *\n * Size is deliberately NOT a prop on the svg: heroicons emits no width/height\n * attribute, so `.sv-icon` is the only thing sizing it, and a consumer cannot\n * pull an icon off the token scale by passing a pixel value.\n */\nconst Icon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ name, size = 'md', label, className, ...props }, ref) => {\n // A name outside the union only reaches here from JS, JSON or a CMS —\n // places the compiler never saw. Falling back beats throwing: a wrong\n // icon is a visible defect, a thrown error is a blank page.\n const Glyph = ICON_GLYPHS[name] ?? ICON_GLYPHS[ICON_FALLBACK_NAME];\n\n return (\n <Glyph\n {...props}\n ref={ref}\n className={cn(\n 'sv-icon',\n size === 'sm' && 'sv-icon--sm',\n size === 'lg' && 'sv-icon--lg',\n className,\n )}\n // Spread before, not after: whether the icon is announced is\n // controlled by `label`, not by a stray aria-hidden/role/aria-label\n // the caller passed through `...props` — those must not be able to\n // override the mode `label` selected. (Heroicons itself still\n // spreads ITS own default aria-hidden under what we pass here, so\n // aria-hidden={undefined} below is still what removes it when a\n // label is present.)\n aria-hidden={label === undefined ? 'true' : undefined}\n role={label === undefined ? undefined : 'img'}\n aria-label={label}\n />\n );\n },\n);\nIcon.displayName = 'Icon';\n\nexport { Icon };\n","import type * as React from 'react';\nimport {\n Bars3Icon,\n CheckCircleIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n DocumentDuplicateIcon,\n ExclamationCircleIcon,\n ExclamationTriangleIcon,\n InformationCircleIcon,\n MagnifyingGlassIcon,\n MoonIcon,\n SunIcon,\n XMarkIcon,\n} from '@heroicons/react/24/outline';\n\n/**\n * The curated set behind `Icon` (AD-013).\n *\n * One grade — 24/outline — is the whole family, because size comes from CSS\n * (`.sv-icon`) and mixing grades would mix stroke weights at the same rendered\n * size. Each glyph is a NAMED import from the grade subpath: a namespace import\n * or the package root barrel would pull all ~1200 heroicons into the consumer's\n * bundle instead of the one or two they use.\n *\n * The names are the design system's, not heroicons': `alert-triangle` reads the\n * same whatever library draws it, which is what keeps a future swap of source\n * out of the public API.\n */\n\nexport type IconName =\n | 'x'\n | 'check'\n | 'chevron-down'\n | 'chevron-up'\n | 'chevron-right'\n | 'chevron-left'\n | 'info'\n | 'alert-triangle'\n | 'alert-circle'\n | 'check-circle'\n | 'copy'\n | 'sun'\n | 'moon'\n | 'search'\n | 'menu';\n\n/** A heroicon: a forwardRef <svg> that takes SVG props and no size prop. */\ntype GlyphComponent = React.ForwardRefExoticComponent<\n React.PropsWithoutRef<React.SVGProps<SVGSVGElement>> &\n React.RefAttributes<SVGSVGElement>\n>;\n\nexport const ICON_GLYPHS: Record<IconName, GlyphComponent> = {\n x: XMarkIcon,\n check: CheckIcon,\n 'chevron-down': ChevronDownIcon,\n 'chevron-up': ChevronUpIcon,\n 'chevron-right': ChevronRightIcon,\n 'chevron-left': ChevronLeftIcon,\n info: InformationCircleIcon,\n 'alert-triangle': ExclamationTriangleIcon,\n 'alert-circle': ExclamationCircleIcon,\n 'check-circle': CheckCircleIcon,\n copy: DocumentDuplicateIcon,\n sun: SunIcon,\n moon: MoonIcon,\n search: MagnifyingGlassIcon,\n menu: Bars3Icon,\n};\n\nexport const ICON_NAMES = Object.keys(ICON_GLYPHS) as IconName[];\n\n/**\n * What renders when a name outside the union arrives at runtime (ICON-05).\n * `alert-circle` rather than something neutral: an unknown name is a defect in\n * the calling code, and the rendered icon should say so instead of passing for\n * a deliberate choice.\n */\nexport const ICON_FALLBACK_NAME: IconName = 'alert-circle';\n","import * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\nimport { cn } from \"../../lib/utils\"\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n className={cn(\"sv-overlay\", className)}\n {...props}\n />\n))\nAlertDialogOverlay.displayName = \"AlertDialogOverlay\"\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n // Radix renders role=\"alertdialog\" but never aria-modal, so assistive\n // tech was told nothing about the content behind the panel being inert\n // (same gap CLIENT-05 closed for Dialog).\n aria-modal=\"true\"\n className={cn(\"sv-dialog\", className)}\n {...props}\n />\n </AlertDialogPortal>\n))\nAlertDialogContent.displayName = \"AlertDialogContent\"\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__header\", className)} {...props} />\n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"sv-dialog__footer\", className)} {...props} />\n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"sv-dialog__title\", className)}\n {...props}\n />\n))\nAlertDialogTitle.displayName = \"AlertDialogTitle\"\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"sv-dialog__description\", className)}\n {...props}\n />\n))\nAlertDialogDescription.displayName = \"AlertDialogDescription\"\n\n// No default class here on purpose — the consumer composes Action/Cancel\n// with Button (variant=\"destructive\" / variant=\"outline\") from\n// @still-void/ui/react, same as DialogClose carries no styling opinion.\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(className)}\n {...props}\n />\n))\nAlertDialogAction.displayName = \"AlertDialogAction\"\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(className)}\n {...props}\n />\n))\nAlertDialogCancel.displayName = \"AlertDialogCancel\"\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst Select = SelectPrimitive.Root\nconst SelectGroup = SelectPrimitive.Group\nconst SelectValue = SelectPrimitive.Value\n\n/**\n * `icon` is the same contract on every member that owns an indicator slot\n * (CLIENT-14): omit it and the system icon renders, pass a node and that node\n * takes the slot, pass `null` and nothing is rendered at all so the slot\n * collapses. `null` has to be distinguishable from \"omitted\", which is why the\n * default lives in the parameter — a default only fires on `undefined`.\n */\nexport interface SelectTriggerProps\n extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {\n icon?: React.ReactNode\n}\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(\n (\n { className, children, icon = <Icon name=\"chevron-down\" />, ...props },\n ref\n ) => (\n // The trigger IS a form field, so it shares .sv-field with Input, Textarea\n // and NativeSelect rather than restating the frame. The utility string this\n // replaces named `ring-offset-background` and `focus:ring-accent`, neither\n // of which this package ever declared: the field had no visible focus.\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\"sv-field\", className)}\n {...props}\n >\n {children}\n {icon === null ? null : (\n <SelectPrimitive.Icon>{icon}</SelectPrimitive.Icon>\n )}\n </SelectPrimitive.Trigger>\n )\n)\nSelectTrigger.displayName = \"SelectTrigger\"\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\"sv-pop__scroll\", className)}\n {...props}\n >\n <Icon name=\"chevron-up\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = \"SelectScrollUpButton\"\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\"sv-pop__scroll\", className)}\n {...props}\n >\n <Icon name=\"chevron-down\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName = \"SelectScrollDownButton\"\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n {/*\n In \"popper\" mode Radix anchors the panel to the trigger and sets\n data-side/data-align for the flip it resolved; \"item-aligned\" has no\n anchor to nudge against, so the modifier only applies in the former.\n The old Tailwind build carried this as\n `position === \"popper\" && \"data-[side=bottom]:translate-y-1 ...\"` —\n same behavior, ported to .sv-pop--popper/[data-side] in style.css.\n */}\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\"sv-pop\", position === \"popper\" && \"sv-pop--popper\", className)}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"sv-pop__viewport\",\n position === \"popper\" && \"sv-pop__viewport--popper\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = \"SelectContent\"\n\nexport interface SelectItemProps\n extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {\n icon?: React.ReactNode\n}\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n SelectItemProps\n>(({ className, children, icon = <Icon name=\"check\" />, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <SelectPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </SelectPrimitive.ItemIndicator>\n )}\n {/*\n CLIENT-13. Without ItemText the children are plain markup inside the\n option: Radix has nothing to portal into the trigger, and SelectValue —\n which renders nothing of its own once a value is set — leaves the trigger\n BLANK the moment the user picks something. ItemText both labels the option\n and feeds the trigger, so it is not optional decoration.\n */}\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = \"SelectItem\"\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"sv-menu-label\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = \"SelectLabel\"\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"sv-menu-separator\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = \"SelectSeparator\"\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectItem,\n SelectLabel,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n","import * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\n/**\n * `icon` is the same contract as Select's (CLIENT-14): omit it and the system\n * icon renders, pass a node and that node takes the slot, pass `null` and the\n * slot collapses. The default lives in the parameter, not a fallback\n * expression, so it only fires on `undefined` — `null` has to stay `null`.\n */\nexport interface DropdownMenuSubTriggerProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean\n icon?: React.ReactNode\n}\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n DropdownMenuSubTriggerProps\n>(\n (\n { className, inset, children, icon = <Icon name=\"chevron-right\" />, ...props },\n ref\n ) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"sv-menu-item\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n >\n {children}\n {icon}\n </DropdownMenuPrimitive.SubTrigger>\n )\n)\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\"\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"sv-pop\", className)}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\"\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n className={cn(\"sv-pop\", className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = \"DropdownMenuContent\"\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\"sv-menu-item\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n />\n))\nDropdownMenuItem.displayName = \"DropdownMenuItem\"\n\nexport interface DropdownMenuCheckboxItemProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> {\n icon?: React.ReactNode\n}\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n DropdownMenuCheckboxItemProps\n>(({ className, children, icon = <Icon name=\"check\" />, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <DropdownMenuPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\"\n\nexport interface DropdownMenuRadioItemProps\n extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> {\n icon?: React.ReactNode\n}\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n DropdownMenuRadioItemProps\n>(\n (\n { className, children, icon = <span className=\"sv-menu-item__dot\" />, ...props },\n ref\n ) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"sv-menu-item\", className)}\n {...props}\n >\n {icon === null ? null : (\n <DropdownMenuPrimitive.ItemIndicator className=\"sv-menu-item__indicator\">\n {icon}\n </DropdownMenuPrimitive.ItemIndicator>\n )}\n {children}\n </DropdownMenuPrimitive.RadioItem>\n )\n)\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\"\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\"sv-menu-label\", inset && \"sv-menu-item--inset\", className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\"\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"sv-menu-separator\", className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\"\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => (\n <span className={cn(\"sv-menu-shortcut\", className)} {...props} />\n)\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n","import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\nimport { cn } from \"../../lib/utils\"\n\nconst Tabs = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Root\n ref={ref}\n className={cn(\"sv-tabs\", className)}\n {...props}\n />\n))\nTabs.displayName = \"Tabs\"\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\"sv-tabs__list\", className)}\n {...props}\n />\n))\nTabsList.displayName = \"TabsList\"\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\"sv-tabs__trigger\", className)}\n {...props}\n />\n))\nTabsTrigger.displayName = \"TabsTrigger\"\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"sv-tabs__content\", className)}\n {...props}\n />\n))\nTabsContent.displayName = \"TabsContent\"\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n","import * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\nimport { cn } from \"../../lib/utils\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"sv-pop\", \"sv-tooltip\", className)}\n {...props}\n />\n))\nTooltipContent.displayName = \"TooltipContent\"\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"mappings":";;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;;;ACHA,IAAM,SAAS;AAAA,EACpB,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA;AAAA;AAAA,IAGP,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,IACL,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,MAAM;AAAA,IACN,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKP,OAAO;AAAA,EACT;AACF;AAEO,IAAM,UAAU;AAAA,EACrB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AACT;AAkEO,IAAM,aAAa,OAAO,KAAK,MAAM;AACrC,IAAM,cAAc,OAAO,KAAK,OAAO;AAEvC,IAAM,eAA0B;AAChC,IAAM,iBAA6B;;;AC/EnC,IAAM,sBAAsB;AAEnC,SAAS,OAAO,OAAoC;AAClD,SAAO,WAAW,SAAS,KAAkB;AAC/C;AAEA,SAAS,SAAS,OAAqC;AACrD,SAAO,YAAY,SAAS,KAAmB;AACjD;AAEA,SAAS,YAAY,KAAkC;AACrD,MAAI;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,EAAe;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW,GAAG,oBAAoB,SAAS;AAAA,IAC1C,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc;AAE1B,IAAM,cAAoB,kBAGxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B,gBAAAA;AAAA,EAAe;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW,GAAG,oBAAoB,SAAS;AAAA,IAC1C,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc;;;AClD1B,YAAYC,YAAW;AACvB,YAAY,sBAAsB;AAahC,gBAAAC,aAAA;AAVF,IAAM,kBAAmC;AAEzC,IAAM,UAA2B;AAEjC,IAAM,iBAAkC;AAExC,IAAM,iBAAuB,kBAG3B,CAAC,EAAE,WAAW,aAAa,GAAG,GAAG,MAAM,GAAG,QAC1C,gBAAAA;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW,GAAG,UAAU,cAAc,SAAS;AAAA,IAC9C,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAAc;","names":["jsx","useEffect","useRef","useState","jsx","useState","useRef","useEffect","useMemo","useEffect","useState","total","useState","useEffect","jsx","useMemo","jsx","React","jsx","jsx","React","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs","React","jsx","React","jsx"]}
|