@still-void/ui 3.4.0 → 3.5.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 +14 -0
- package/README.md +1 -0
- package/dist/react/client/index.cjs +170 -55
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +43 -1
- package/dist/react/client/index.d.ts +43 -1
- package/dist/react/client/index.js +160 -55
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +12 -8
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +10 -8
- package/dist/react/index.d.ts +10 -8
- package/dist/react/index.js +12 -8
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +94 -1
- package/dist/tailwind.css +1 -0
- package/dist/theme.css +29 -8
- package/package.json +1 -1
package/dist/react/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/index.ts","../../src/components/ui/icon.tsx","../../src/lib/utils.ts","../../src/components/ui/icon-set.ts","../../src/recipes/cx.ts","../../src/recipes/shell.ts","../../src/react/components/Shell.tsx","../../src/recipes/content.ts","../../src/tokens/colors.ts","../../src/tokens/categories.ts","../../src/react/components/Content.tsx","../../src/recipes/article.ts","../../src/react/components/Article.tsx","../../src/behaviors/themeManager.ts","../../src/react/components/ThemeScript.tsx","../../src/components/ui/button.tsx","../../src/components/ui/card.tsx","../../src/components/ui/slot.tsx","../../src/components/ui/alert.tsx","../../src/components/ui/badge.tsx","../../src/components/ui/input.tsx","../../src/recipes/field.ts","../../src/components/ui/textarea.tsx","../../src/components/ui/native-select.tsx","../../src/components/ui/file-input.tsx","../../src/components/ui/checkbox.tsx","../../src/components/ui/separator.tsx","../../src/components/ui/progress.tsx","../../src/components/ui/pagination.tsx","../../src/components/ui/chart.tsx","../../src/components/ui/radio-group.tsx","../../src/components/ui/table.tsx","../../src/recipes/table.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/motion.ts","../../src/tokens/zIndex.ts"],"sourcesContent":["/**\n * @still-void/ui/react — Server Component safe React adapter.\n * Nothing here uses hooks, state, or browser APIs, so every component can\n * render inside a Next.js Server Component. Interactive pieces live in\n * '@still-void/ui/react/client'.\n */\nexport * from './components/Shell';\nexport * from './components/Content';\nexport * from './components/Article';\nexport * from './components/ThemeScript';\n\n// Server-safe shadcn/ui components (no hooks, no state, no browser APIs)\nexport { Button, type ButtonProps } from '../components/ui/button';\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from '../components/ui/card';\nexport { Alert, AlertTitle, AlertDescription } from '../components/ui/alert';\nexport { Badge, type BadgeProps } from '../components/ui/badge';\nexport { Icon, type IconProps, type IconName } from '../components/ui/icon';\nexport { Input, type InputProps } from '../components/ui/input';\nexport { Textarea, type TextareaProps } from '../components/ui/textarea';\nexport { NativeSelect, type NativeSelectProps } from '../components/ui/native-select';\nexport { FileInput, type FileInputProps } from '../components/ui/file-input';\nexport { Checkbox, type CheckboxProps } from '../components/ui/checkbox';\nexport { Separator, type SeparatorProps } from '../components/ui/separator';\nexport { Progress, type ProgressProps } from '../components/ui/progress';\nexport {\n Pagination,\n type PaginationProps,\n PaginationContent,\n type PaginationContentProps,\n PaginationItem,\n type PaginationItemProps,\n PaginationLink,\n type PaginationLinkProps,\n PaginationPrevious,\n type PaginationPreviousProps,\n PaginationNext,\n type PaginationNextProps,\n PaginationEllipsis,\n type PaginationEllipsisProps,\n} from '../components/ui/pagination';\nexport {\n ChartContainer,\n type ChartContainerProps,\n ChartGrid,\n type ChartGridProps,\n ChartAxis,\n type ChartAxisProps,\n type ChartTick,\n ChartLine,\n type ChartLineProps,\n type ChartPoint,\n ChartBar,\n type ChartBarProps,\n type ChartBarDatum,\n} from '../components/ui/chart';\nexport {\n RadioGroup,\n RadioGroupItem,\n type RadioGroupProps,\n type RadioGroupItemProps,\n} from '../components/ui/radio-group';\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableRowProps,\n type TableHeadProps,\n type TableCellProps,\n type TableCaptionProps,\n} from '../components/ui/table';\n\n// Re-export data contracts and recipe types consumers need for props.\nexport type { PostSummary, TocItem, NavItem } from '../types';\n\n// Design tokens — pure data, server-safe.\nexport * from '../tokens/colors';\nexport * from '../tokens/typography';\nexport * from '../tokens/spacing';\nexport * from '../tokens/motion';\nexport * from '../tokens/categories';\nexport * from '../tokens/zIndex';\n\n// Recipes — pure class-name builders, server-safe.\nexport * from '../recipes/cx';\nexport * from '../recipes/shell';\nexport * from '../recipes/content';\nexport * from '../recipes/article';\nexport * from '../recipes/field';\nexport * from '../recipes/table';\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 data-icon-name={name}\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 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 type * as React from 'react';\nimport {\n Bars3Icon,\n CameraIcon,\n CheckCircleIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n ClockIcon,\n DocumentDuplicateIcon,\n ExclamationCircleIcon,\n ExclamationTriangleIcon,\n InformationCircleIcon,\n MagnifyingGlassIcon,\n MoonIcon,\n NoSymbolIcon,\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 | 'camera'\n | 'blocked'\n | 'pending';\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 camera: CameraIcon,\n blocked: NoSymbolIcon,\n pending: ClockIcon,\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","/** 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 { cx } from './cx';\n\n/**\n * Shell recipes: Header, Logo, Footer.\n * Recipes are pure functions returning class strings — no DOM, no framework.\n * Safe in Next.js Server Components; usable via [class] in Angular, :class in Vue.\n */\n\nexport interface HeaderOptions {\n /** Frosted glass background (sticky headers). */\n glass?: boolean;\n}\n\nexport function header(options: HeaderOptions = {}): string {\n return cx('sv-header', options.glass !== false && 'sv-glass');\n}\n\nexport const headerClasses = {\n nav: 'sv-header__nav',\n /** Wraps <nav> in a native <details> — collapsible below 640px, a no-op\n * wrapper above it, with zero JavaScript (see DESIGN.md §5 Navigation). */\n navToggle: 'sv-header__nav-toggle',\n navSummary: 'sv-header__nav-summary',\n link: 'sv-header__link',\n linkActive: cx('sv-header__link', 'sv-header__link--active'),\n actions: 'sv-header__actions',\n} as const;\n\nexport function logo(): string {\n return 'sv-logo';\n}\n\nexport const logoClasses = {\n dot: 'sv-logo__dot',\n} as const;\n\nexport function footer(): string {\n return 'sv-footer';\n}\n\nexport const footerClasses = {\n links: 'sv-footer__links',\n link: 'sv-footer__link',\n} as const;\n","import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { Icon } from '../../components/ui/icon';\nimport { cx } from '../../recipes/cx';\nimport { footer, footerClasses, header, headerClasses, logo, logoClasses } from '../../recipes/shell';\nimport type { NavItem } from '../../types';\n\n/*\n * Shell components are Server Component safe: no hooks, no browser APIs.\n * Interactivity (theme toggle) is composed in via the `actions` slot —\n * pass <ThemeToggle /> from '@still-void/ui/react/client'.\n */\n\nexport interface LogoProps extends ComponentPropsWithoutRef<'a'> {\n label: string;\n href?: string;\n}\n\nexport function Logo({ label, href = '/', className, ...rest }: LogoProps) {\n return (\n <a href={href} className={cx(logo(), className)} {...rest}>\n <span className={logoClasses.dot} aria-hidden=\"true\" />\n {label}\n </a>\n );\n}\n\nexport interface HeaderProps extends ComponentPropsWithoutRef<'header'> {\n /** Usually a <Logo />. */\n logo?: ReactNode;\n items?: NavItem[];\n /** Right-side slot — theme toggle, search, etc. */\n actions?: ReactNode;\n /** Frosted glass background (default true). */\n glass?: boolean;\n}\n\nexport function Header({ logo: logoSlot, items = [], actions, glass, className, ...rest }: HeaderProps) {\n return (\n <header className={cx(header({ glass }), className)} {...rest}>\n {logoSlot}\n {items.length > 0 && (\n // <details> makes the nav collapsible below 640px with zero\n // JavaScript: CSS forces it open above that width (a no-op wrapper),\n // native click-to-toggle handles it below (see DESIGN.md §5).\n <details className={headerClasses.navToggle}>\n <summary className={headerClasses.navSummary} aria-label=\"Menu\">\n <Icon name=\"menu\" />\n </summary>\n <nav className={headerClasses.nav}>\n {items.map((item) => (\n <a\n key={item.href}\n href={item.href}\n className={item.active ? headerClasses.linkActive : headerClasses.link}\n aria-current={item.active ? 'page' : undefined}\n >\n {item.label}\n </a>\n ))}\n </nav>\n </details>\n )}\n {actions && <div className={headerClasses.actions}>{actions}</div>}\n </header>\n );\n}\n\nexport interface FooterProps extends ComponentPropsWithoutRef<'footer'> {\n author?: string;\n links?: NavItem[];\n children?: ReactNode;\n}\n\nexport function Footer({ author, links = [], children, className, ...rest }: FooterProps) {\n return (\n <footer className={cx(footer(), className)} {...rest}>\n {author && <span>{author}</span>}\n {links.length > 0 && (\n <div className={footerClasses.links}>\n {links.map((link) => (\n <a key={link.href} href={link.href} className={footerClasses.link}>\n {link.label}\n </a>\n ))}\n </div>\n )}\n {children}\n </footer>\n );\n}\n","import { cx } from './cx';\n\n/**\n * Content recipes: CategoryPill, PostCard, FeaturedPostCard, PostGrid,\n * Sidebar, Hero, Skeleton. Pure functions — Server Component safe.\n */\n\nexport interface CategoryPillOptions {\n interactive?: boolean;\n active?: boolean;\n}\n\nexport function categoryPill(options: CategoryPillOptions = {}): string {\n return cx(\n 'sv-pill',\n options.interactive && 'sv-pill--interactive',\n options.active && 'sv-pill--active',\n );\n}\n\nexport const categoryPillClasses = {\n dot: 'sv-pill__dot',\n} as const;\n\nexport interface PostCardOptions {\n dense?: boolean;\n hover?: boolean;\n}\n\nexport function postCard(options: PostCardOptions = {}): string {\n return cx(\n 'sv-post-card',\n options.dense && 'sv-post-card--dense',\n options.hover !== false && 'sv-card-hover',\n );\n}\n\nexport const postCardClasses = {\n meta: 'sv-post-card__meta',\n title: 'sv-post-card__title',\n excerpt: 'sv-post-card__excerpt',\n} as const;\n\nexport function featuredPostCard(): string {\n return cx('sv-featured-card', 'sv-gradient-border', 'sv-card-hover');\n}\n\nexport const featuredPostCardClasses = {\n body: 'sv-featured-card__body',\n title: 'sv-featured-card__title',\n visual: 'sv-featured-card__visual',\n} as const;\n\nexport function postGrid(): string {\n return 'sv-post-grid';\n}\n\nexport interface LayoutOptions {\n withSidebar?: boolean;\n}\n\nexport function layout(options: LayoutOptions = {}): string {\n return cx('sv-layout', options.withSidebar && 'sv-layout--with-sidebar');\n}\n\nexport function sidebar(): string {\n return 'sv-sidebar';\n}\n\nexport const sidebarClasses = {\n sectionTitle: 'sv-sidebar__section-title',\n} as const;\n\nexport function hero(): string {\n return 'sv-hero';\n}\n\nexport const heroClasses = {\n eyebrow: 'sv-hero__eyebrow',\n title: 'sv-hero__title',\n description: 'sv-hero__description',\n} as const;\n\nexport interface SkeletonOptions {\n small?: boolean;\n}\n\nexport function skeletonLine(options: SkeletonOptions = {}): string {\n return cx('sv-skeleton', 'sv-skeleton-line', options.small && 'sv-skeleton-line--sm');\n}\n\nexport function cardSkeleton(): string {\n return 'sv-card-skeleton';\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 { accents, type AccentName } from './colors';\n\n/**\n * Blog categories from the prototype. Categories render as a colored dot + label\n * (never an emoji). The pill also accepts any CSS color for whitelabel use.\n */\nexport type CategoryName = 'ia' | 'prompt' | 'dev' | 'arch' | 'ts';\n\nexport const defaultCategoryColors: Record<CategoryName, AccentName> = {\n ia: 'violet',\n prompt: 'amber',\n dev: 'mint',\n arch: 'cyan',\n ts: 'cyan',\n};\n\nconst hasOwn = <T extends object>(obj: T, key: string): key is Extract<keyof T, string> =>\n Object.prototype.hasOwnProperty.call(obj, key);\n\n/** Resolve an accent name or raw CSS color to a CSS color value. */\nexport function resolveAccentColor(color: AccentName | (string & {})): string {\n return hasOwn(accents, color) ? accents[color] : color;\n}\n\n/** Resolve a category name, accent name, or raw CSS color to a CSS color value. */\nexport function resolveCategoryColor(\n color: CategoryName | AccentName | (string & {}),\n): string {\n if (hasOwn(defaultCategoryColors, color)) {\n return accents[defaultCategoryColors[color]];\n }\n return resolveAccentColor(color);\n}\n","import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from 'react';\nimport { cx } from '../../recipes/cx';\nimport {\n cardSkeleton,\n categoryPill,\n categoryPillClasses,\n featuredPostCard,\n featuredPostCardClasses,\n hero,\n heroClasses,\n layout,\n postCard,\n postCardClasses,\n postGrid,\n sidebar,\n sidebarClasses,\n skeletonLine,\n} from '../../recipes/content';\nimport { resolveCategoryColor } from '../../tokens/categories';\nimport type { PostSummary } from '../../types';\n\n/* All components in this file are Server Component safe. */\n\ninterface CategoryPillBaseProps {\n label: string;\n /** Accent name ('cyan'), category name ('ia'), or any CSS color. */\n color?: string;\n active?: boolean;\n}\n\nexport type CategoryPillProps =\n | (CategoryPillBaseProps & { interactive: true } & Omit<\n ComponentPropsWithoutRef<'button'>,\n 'color'\n >)\n | (CategoryPillBaseProps & { interactive?: false } & Omit<\n ComponentPropsWithoutRef<'span'>,\n 'color'\n >);\n\n/**\n * Categories render as a colored dot + label. When `interactive`, this is a\n * real <button> (toggle semantics via `aria-pressed`) — a `<span>` with a\n * pointer cursor is not operable by keyboard or assistive tech.\n */\nexport function CategoryPill({ label, color, active, interactive, className, style, ...rest }: CategoryPillProps) {\n const pillStyle: CSSProperties | undefined = color\n ? ({ ...style, '--sv-pill-color': resolveCategoryColor(color) } as CSSProperties)\n : style;\n const content = (\n <>\n <span className={categoryPillClasses.dot} aria-hidden=\"true\" />\n {label}\n </>\n );\n\n if (interactive) {\n return (\n <button\n type=\"button\"\n aria-pressed={active ?? false}\n className={cx(categoryPill({ active, interactive }), className)}\n style={pillStyle}\n {...(rest as ComponentPropsWithoutRef<'button'>)}\n >\n {content}\n </button>\n );\n }\n\n return (\n <span\n className={cx(categoryPill({ active, interactive }), className)}\n style={pillStyle}\n {...(rest as ComponentPropsWithoutRef<'span'>)}\n >\n {content}\n </span>\n );\n}\n\nfunction PostMeta({ post }: { post: PostSummary }) {\n if (!post.category && !post.date && post.readMinutes === undefined) return null;\n return (\n <div className={postCardClasses.meta}>\n {post.category && <CategoryPill label={post.category.label} color={post.category.color} />}\n {post.date && <span>{post.date}</span>}\n {post.readMinutes !== undefined && <span>{post.readMinutes} min</span>}\n </div>\n );\n}\n\nexport interface PostCardProps extends ComponentPropsWithoutRef<'article'> {\n post: PostSummary;\n dense?: boolean;\n}\n\nexport function PostCard({ post, dense, className, children, ...rest }: PostCardProps) {\n return (\n <article className={cx(postCard({ dense }), className)} {...rest}>\n <PostMeta post={post} />\n <h3 className={postCardClasses.title}>\n <a href={post.href}>{post.title}</a>\n </h3>\n {!dense && post.excerpt && <p className={postCardClasses.excerpt}>{post.excerpt}</p>}\n {children}\n </article>\n );\n}\n\nexport interface FeaturedPostCardProps extends ComponentPropsWithoutRef<'article'> {\n post: PostSummary;\n /** Custom visual slot (illustration, image). */\n visual?: ReactNode;\n}\n\nexport function FeaturedPostCard({ post, visual, className, children, ...rest }: FeaturedPostCardProps) {\n return (\n <article className={cx(featuredPostCard(), className)} {...rest}>\n <div className={featuredPostCardClasses.body}>\n <PostMeta post={post} />\n <h2 className={featuredPostCardClasses.title}>\n <a href={post.href}>{post.title}</a>\n </h2>\n {post.excerpt && <p className={postCardClasses.excerpt}>{post.excerpt}</p>}\n {children}\n </div>\n {visual && <div className={featuredPostCardClasses.visual}>{visual}</div>}\n </article>\n );\n}\n\nexport interface PostGridProps extends ComponentPropsWithoutRef<'div'> {}\n\nexport function PostGrid({ className, ...rest }: PostGridProps) {\n return <div className={cx(postGrid(), className)} {...rest} />;\n}\n\nexport interface LayoutProps extends ComponentPropsWithoutRef<'div'> {\n withSidebar?: boolean;\n}\n\nexport function Layout({ withSidebar, className, ...rest }: LayoutProps) {\n return <div className={cx(layout({ withSidebar }), className)} {...rest} />;\n}\n\nexport interface SidebarProps extends ComponentPropsWithoutRef<'aside'> {}\n\nexport function Sidebar({ className, ...rest }: SidebarProps) {\n return <aside className={cx(sidebar(), className)} {...rest} />;\n}\n\nexport interface SidebarSectionProps extends ComponentPropsWithoutRef<'section'> {\n title: string;\n}\n\nexport function SidebarSection({ title, children, ...rest }: SidebarSectionProps) {\n return (\n <section {...rest}>\n <h4 className={sidebarClasses.sectionTitle}>{title}</h4>\n {children}\n </section>\n );\n}\n\nexport interface HeroProps extends ComponentPropsWithoutRef<'section'> {\n eyebrow?: string;\n title: string;\n description?: string;\n}\n\nexport function Hero({ eyebrow, title, description, className, children, ...rest }: HeroProps) {\n return (\n <section className={cx(hero(), className)} {...rest}>\n {eyebrow && <span className={heroClasses.eyebrow}>{eyebrow}</span>}\n <h1 className={heroClasses.title}>{title}</h1>\n {description && <p className={heroClasses.description}>{description}</p>}\n {children}\n </section>\n );\n}\n\nexport interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {\n small?: boolean;\n}\n\nexport function Skeleton({ small, className, ...rest }: SkeletonProps) {\n return <div className={cx(skeletonLine({ small }), className)} aria-hidden=\"true\" {...rest} />;\n}\n\nexport function CardSkeleton({ className, ...rest }: ComponentPropsWithoutRef<'div'>) {\n return (\n <div className={cx(cardSkeleton(), className)} aria-hidden=\"true\" {...rest}>\n <Skeleton small />\n <Skeleton />\n <Skeleton />\n </div>\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 type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { cx } from '../../recipes/cx';\nimport {\n articleHeader,\n articleHeaderClasses,\n callout,\n calloutClasses,\n calloutLabels,\n codeBlock,\n codeBlockClasses,\n prose,\n proseClasses,\n type CalloutKind,\n} from '../../recipes/article';\n\n/*\n * Article components are Server Component safe.\n * Interactive pieces (copy button, scroll spy) live in the client entry\n * and are composed in via slots.\n */\n\nexport interface CodeBlockProps extends ComponentPropsWithoutRef<'figure'> {\n /** Raw source shown when `rendered` is absent. */\n code: string;\n language?: string;\n filename?: string;\n /**\n * Pre-highlighted markup (e.g. Shiki output rendered on the server).\n * The prototype's regex tokenizer was demo-only and is intentionally\n * not part of the library.\n */\n rendered?: ReactNode;\n /** Header slot — pass <CopyButton code={code} /> from the client entry. */\n actions?: ReactNode;\n}\n\nexport function CodeBlock({\n code,\n language,\n filename,\n rendered,\n actions,\n className,\n ...rest\n}: CodeBlockProps) {\n return (\n <figure className={cx(codeBlock(), className)} {...rest}>\n <figcaption className={codeBlockClasses.header}>\n <span>{filename ?? language ?? 'code'}</span>\n {actions}\n </figcaption>\n <pre className={codeBlockClasses.pre}>\n {rendered ?? <code>{code}</code>}\n </pre>\n </figure>\n );\n}\n\nexport interface CalloutProps extends ComponentPropsWithoutRef<'aside'> {\n kind: CalloutKind;\n /** Override the default kind label. */\n label?: string;\n}\n\nexport function Callout({ kind, label, className, children, ...rest }: CalloutProps) {\n return (\n <aside className={cx(callout(kind), className)} {...rest}>\n <span className={calloutClasses.label}>{label ?? calloutLabels[kind]}</span>\n <div>{children}</div>\n </aside>\n );\n}\n\nexport interface ArticleHeaderProps extends ComponentPropsWithoutRef<'header'> {\n title: string;\n author?: string;\n date?: string;\n readMinutes?: number;\n /** Slot above the title — usually a <CategoryPill />. */\n eyebrow?: ReactNode;\n}\n\nexport function ArticleHeader({\n title,\n author,\n date,\n readMinutes,\n eyebrow,\n className,\n ...rest\n}: ArticleHeaderProps) {\n return (\n <header className={cx(articleHeader(), className)} {...rest}>\n {eyebrow}\n <h1 className={articleHeaderClasses.title}>{title}</h1>\n {(author || date || readMinutes !== undefined) && (\n <div className={articleHeaderClasses.meta}>\n {author && <span className={articleHeaderClasses.author}>{author}</span>}\n {date && <span>{date}</span>}\n {readMinutes !== undefined && <span>{readMinutes} min</span>}\n </div>\n )}\n </header>\n );\n}\n\nexport interface ProseProps extends ComponentPropsWithoutRef<'div'> {}\n\n/** Typography wrapper for article/MDX content. */\nexport function Prose({ className, ...rest }: ProseProps) {\n return <div className={cx(prose(), className)} {...rest} />;\n}\n\nexport interface LeadProps extends ComponentPropsWithoutRef<'p'> {}\n\n/** Lead paragraph inside <Prose>. */\nexport function Lead({ className, ...rest }: LeadProps) {\n return <p className={cx(proseClasses.lead, className)} {...rest} />;\n}\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","import { DEFAULT_STORAGE_KEY } from '../../behaviors/themeManager';\nimport { accentNames, themeModes } from '../../tokens/colors';\n\nexport interface ThemeScriptProps {\n /** Must match the `storageKey` passed to `<ThemeProvider>` (or `createThemeManager`). */\n storageKey?: string;\n /** CSP nonce forwarded to the inline `<script>`. */\n nonce?: string;\n}\n\n/**\n * Render once, as early as possible in `<head>` or right after `<html>` opens\n * (before the rest of the document): a blocking inline script that applies a\n * stored theme preference to `<html>` before first paint.\n *\n * Without this, the first paint uses whatever `data-theme`/`data-accent` the\n * server rendered — `<ThemeProvider>` only reconciles localStorage on mount,\n * so a returning visitor who chose light mode sees a dark flash until\n * hydration. This component is server-safe (no hooks, no browser APIs at\n * render time) and can be composed inside `<html>` from a Server Component.\n */\n/**\n * `JSON.stringify` doesn't escape `<`, so a value containing `</script>`\n * (e.g. a `storageKey` derived from user input) would close the real\n * `<script>` tag early and let whatever follows run as raw HTML — a classic\n * JSON-in-script-tag XSS. `<` is a valid JS string escape the parser\n * decodes back to `<` at runtime, so this is purely a serialization-time\n * fix with no effect on the parsed value.\n */\nfunction toScriptLiteral(value: unknown): string {\n return JSON.stringify(value).replace(/</g, '\\\\u003c');\n}\n\nexport function ThemeScript({ storageKey = DEFAULT_STORAGE_KEY, nonce }: ThemeScriptProps = {}) {\n const modes = toScriptLiteral(themeModes);\n const accents = toScriptLiteral(accentNames);\n const key = toScriptLiteral(storageKey);\n\n const script = `(function(){try{var s=JSON.parse(localStorage.getItem(${key})||\"null\");if(!s)return;var m=${modes},a=${accents},r=document.documentElement;if(m.indexOf(s.mode)!==-1)r.setAttribute(\"data-theme\",s.mode);if(a.indexOf(s.accent)!==-1)r.setAttribute(\"data-accent\",s.accent);}catch(e){}})();`;\n\n // eslint-disable-next-line react/no-danger\n return <script nonce={nonce} dangerouslySetInnerHTML={{ __html: script }} />;\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"default\" | \"destructive\" | \"outline\" | \"secondary\" | \"ghost\" | \"link\" | \"accent\"\n size?: \"default\" | \"sm\" | \"lg\" | \"icon\"\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant = \"default\", size = \"default\", ...props }, ref) => (\n <button\n className={cn(\n \"sv-btn\",\n variant === \"destructive\" && \"sv-btn--destructive\",\n variant === \"outline\" && \"sv-btn--outline\",\n variant === \"secondary\" && \"sv-btn--secondary\",\n variant === \"ghost\" && \"sv-btn--ghost\",\n variant === \"link\" && \"sv-btn--link\",\n variant === \"accent\" && \"sv-btn--accent\",\n size === \"sm\" && \"sv-btn--sm\",\n size === \"lg\" && \"sv-btn--lg\",\n size === \"icon\" && \"sv-btn--icon\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n)\nButton.displayName = \"Button\"\n\nexport { Button }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Slot } from \"./slot\"\n\n/**\n * Closed set of tags `Card` may render as `as`. `section`/`article` cover the\n * two landmark cases the report asked for; `li`/`aside` are the other shapes\n * a presentational surface legitimately needs (a card inside a `<ul>`, a card\n * used as a page aside). A `Set` lookup, not a bare cast: `as={value as any}`\n * would render whatever string reaches JSX as a literal tag name, including\n * an invalid one — the fallback below is what keeps that impossible.\n */\nconst CARD_ELEMENTS = new Set([\"div\", \"section\", \"article\", \"li\", \"aside\"] as const)\nexport type CardElement = \"div\" | \"section\" | \"article\" | \"li\" | \"aside\"\n\nexport interface CardProps extends React.HTMLAttributes<HTMLElement> {\n /** Tag to render. Defaults to `div`. Ignored when `asChild` is also passed (AD-006). */\n as?: CardElement\n /** Merge sv-card's class, ref and props onto a single child instead of rendering a wrapper. Wins over `as` when both are given (AD-006). */\n asChild?: boolean\n}\n\nconst Card = React.forwardRef<HTMLElement, CardProps>(\n ({ className, as, asChild = false, ...props }, ref) => {\n if (asChild) {\n return <Slot ref={ref} className={cn(\"sv-card\", className)} {...props} />\n }\n const Comp = as !== undefined && CARD_ELEMENTS.has(as) ? as : \"div\"\n return React.createElement(Comp, {\n ref,\n className: cn(\"sv-card\", className),\n ...props,\n })\n },\n)\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__header\", className)} {...props} />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h2 ref={ref} className={cn(\"sv-card__title\", className)} {...props} />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"sv-card__description\", className)} {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__content\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__footer\", className)} {...props} />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from \"react\"\n\n/**\n * A server-safe port of `@radix-ui/react-slot`'s core behavior (AD-006,\n * superseding the plan to import the real package — see AD-015 in\n * .specs/STATE.md).\n *\n * `@radix-ui/react-slot@1.3.3` ships no `'use client'` directive, but its\n * `Slot` component calls `useComposedRefs`, which calls `React.useCallback`\n * — a real hook, verified against the installed package's dist. A hook with\n * no dispatcher throws when it reaches a real Next.js Server Component, so\n * importing it here would have broken exactly the property\n * tests/server-safety.test.ts exists to protect, silently, the same way\n * lucide-react almost did (AD-013).\n *\n * `@radix-ui/react-compose-refs` exports the hook AND the plain function it\n * wraps — `composeRefs` itself has no hook inside it, only `useComposedRefs`\n * does — but that package's own module still *contains* the hook, so even a\n * named import of only the safe half makes tests/server-safety.test.ts's\n * bare-specifier walker (correctly) flag the module it resolves to: the\n * walker checks what a module contains, not which export of it gets called,\n * and it has no way to prove the unused hook is truly unreachable from here.\n * Rather than carve out an exception for something the tooling can't verify,\n * `composeRefs` (below) is the same ref-merging logic inlined directly, with\n * no import of the package at all — the safety property becomes mechanically\n * true instead of argued.\n *\n * This file uses the plain ref-merge as the ref callback directly, instead\n * of memoizing it through `useCallback` the way Radix does. The cost is\n * real but small: without memoization the merged ref callback has a new\n * identity every render, so React detaches and reattaches it each time\n * instead of reusing the same function — harmless for a DOM node, and\n * Card's usage (one wrapped child, re-rendered no more often than any other\n * styling wrapper) is exactly the case that cost doesn't matter for.\n *\n * Scope is deliberately narrower than the real Slot: no `Slottable`, no\n * lazy-component `use()` support. Card only ever wraps exactly one element,\n * so that surface was never reachable from here.\n */\n\n/** Ported from @radix-ui/react-compose-refs (MIT) — the hook-free half only. */\nfunction composeRefs<T>(...refs: (React.Ref<T> | null | undefined)[]) {\n return (node: T) => {\n for (const ref of refs) {\n if (typeof ref === \"function\") {\n ref(node)\n } else if (ref !== null && ref !== undefined) {\n ;(ref as React.MutableRefObject<T | null>).current = node\n }\n }\n }\n}\n\nfunction mergeProps(\n slotProps: Record<string, unknown>,\n childProps: Record<string, unknown>,\n): Record<string, unknown> {\n const merged: Record<string, unknown> = { ...slotProps, ...childProps }\n for (const key in childProps) {\n const slotValue = slotProps[key]\n const childValue = childProps[key]\n const isHandler = /^on[A-Z]/.test(key)\n if (isHandler && typeof slotValue === \"function\" && typeof childValue === \"function\") {\n merged[key] = (...args: unknown[]) => {\n const result = (childValue as (...a: unknown[]) => unknown)(...args)\n ;(slotValue as (...a: unknown[]) => unknown)(...args)\n return result\n }\n } else if (key === \"style\") {\n merged[key] = { ...(slotValue as object), ...(childValue as object) }\n } else if (key === \"className\") {\n merged[key] = [slotValue, childValue].filter(Boolean).join(\" \")\n }\n }\n return merged\n}\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode\n}\n\nexport const Slot = React.forwardRef<HTMLElement, SlotProps>(\n ({ children, ...slotProps }, forwardedRef) => {\n // A Fragment counts as \"one valid element\" for isValidElement/Children.count,\n // but it has no DOM node to attach className/ref/props to — the real Slot\n // handles that case through `Slottable`, which this narrower port doesn't\n // support (Card only ever wraps exactly one real element). Rejecting it\n // explicitly, rather than letting React.cloneElement's own dev-only prop\n // warning be the only signal, is what keeps CARD-03's \"erro explícito\"\n // true for every multi-child shape a caller might pass, Fragment included.\n if (\n !React.isValidElement(children) ||\n React.Children.count(children) !== 1 ||\n children.type === React.Fragment\n ) {\n throw new Error(\n \"Slot expected a single React element child. Pass exactly one element to asChild.\",\n )\n }\n\n // A valid React element's `.props` is always an object (React itself\n // guarantees this, `{}` for a childless element) — no fallback needed.\n const child = children as React.ReactElement<\n Record<string, unknown> & { ref?: React.Ref<unknown> }\n >\n // React 19 moved `ref` onto `props`; reading `element.ref` directly still\n // works but is deprecated and logs a dev warning (\"ref is now a regular\n // prop\"). `child.props.ref` is the same value without the warning.\n const childRef = child.props.ref ?? null\n const mergedProps = mergeProps(slotProps, child.props)\n mergedProps.ref = forwardedRef ? composeRefs(forwardedRef, childRef) : childRef\n return React.cloneElement(child, mergedProps)\n },\n)\nSlot.displayName = \"Slot\"\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon, type IconName } from \"./icon\"\n\nexport type AlertVariant = 'info' | 'success' | 'warning' | 'danger'\n\ninterface AlertProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: AlertVariant\n icon?: React.ReactNode | null\n action?: React.ReactNode\n}\n\n// Map variant to derived role and default icon\nconst variantConfig: Record<AlertVariant, { role: 'alert' | 'status'; icon: IconName }> = {\n info: { role: 'status', icon: 'info' },\n success: { role: 'status', icon: 'check-circle' },\n warning: { role: 'alert', icon: 'alert-triangle' },\n danger: { role: 'alert', icon: 'alert-circle' },\n}\n\nconst Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n ({ className, variant, icon, action, role: propRole, ...props }, ref) => {\n // Validate variant: only use if it's a known own key (guards against\n // inherited names like \"constructor\"/\"toString\" matching via `in`)\n const config =\n variant && Object.prototype.hasOwnProperty.call(variantConfig, variant)\n ? variantConfig[variant]\n : null\n const derivedRole = config?.role ?? 'alert'\n // Derived role wins over prop role; without variant, force 'alert' unconditionally\n const effectiveRole = config ? derivedRole : 'alert'\n\n // Determine if icon should be rendered\n let iconElement: React.ReactNode = null\n if (icon !== null) {\n if (icon !== undefined) {\n // Render every non-null explicit node (element, string, number, array)\n iconElement = icon\n } else if (config) {\n // Render default icon for this variant\n iconElement = <Icon name={config.icon} aria-hidden=\"true\" />\n }\n }\n\n return (\n <div\n ref={ref}\n className={cn(\"sv-alert\", config && `sv-alert--${variant}`, className)}\n role={effectiveRole}\n {...props}\n >\n {iconElement}\n {props.children}\n {action && <div className=\"sv-alert__action\">{action}</div>}\n </div>\n )\n },\n)\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"sv-alert__title\", className)} {...props} />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-alert__description\", className)} {...props} />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"secondary\" | \"destructive\" | \"outline\"\n}\n\nfunction Badge({ className, variant = \"default\", ...props }: BadgeProps) {\n return (\n <div\n className={cn(\n \"sv-badge\",\n variant === \"secondary\" && \"sv-badge--secondary\",\n variant === \"destructive\" && \"sv-badge--destructive\",\n variant === \"outline\" && \"sv-badge--outline\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Badge }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => (\n <input\n type={type}\n className={cn(field(), className)}\n ref={ref}\n {...props}\n />\n )\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","import { cx } from './cx';\n\n/**\n * Field recipe: the single source of truth for the form-field frame shared by\n * Input, Textarea, NativeSelect and FileInput. Pure function — Server\n * Component safe, and exported so consumers composing their own markup style\n * a field the same way the components do instead of mirroring the CSS by hand.\n */\n\nexport type FieldVariant = 'input' | 'textarea' | 'select' | 'file';\n\nexport interface FieldOptions {\n variant?: FieldVariant;\n}\n\nexport function field(options: FieldOptions = {}): string {\n // 'input' is the base shape, so it adds no modifier — the plain frame is\n // already what a single-line input needs.\n return cx(\n 'sv-field',\n options.variant && options.variant !== 'input' && `sv-field--${options.variant}`,\n );\n}\n\nexport const fieldClasses = {\n choice: 'sv-choice',\n srOnly: 'sv-sr-only',\n} as const;\n\n/**\n * Invalid state is read from the native `aria-invalid` attribute rather than\n * a boolean prop: Input/Textarea/NativeSelect/FileInput already spread\n * `...props`, so `<Input aria-invalid=\"true\" />` alone paints the danger\n * border with zero component changes — composition over configuration.\n */\nexport type FieldMessageVariant = 'hint' | 'error';\n\nexport interface FieldMessageOptions {\n variant?: FieldMessageVariant;\n}\n\n/**\n * Helper/error text meant to sit under a field, associated to it via\n * `aria-describedby` on the field itself.\n */\nexport function fieldMessage(options: FieldMessageOptions = {}): string {\n return cx('sv-field-message', options.variant === 'error' && 'sv-field-message--error');\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => (\n <textarea\n className={cn(field({ variant: \"textarea\" }), className)}\n ref={ref}\n {...props}\n />\n )\n)\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface NativeSelectProps\n extends React.SelectHTMLAttributes<HTMLSelectElement> {}\n\nconst NativeSelect = React.forwardRef<HTMLSelectElement, NativeSelectProps>(\n ({ className, children, ...props }, ref) => (\n <select\n className={cn(field({ variant: \"select\" }), className)}\n ref={ref}\n {...props}\n >\n {children}\n </select>\n )\n)\nNativeSelect.displayName = \"NativeSelect\"\n\nexport { NativeSelect }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface FileInputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {}\n\nconst FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(\n ({ className, ...props }, ref) => (\n <input\n className={cn(field({ variant: \"file\" }), className)}\n ref={ref}\n {...props}\n type=\"file\"\n />\n )\n)\nFileInput.displayName = \"FileInput\"\n\nexport { FileInput }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface CheckboxProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {}\n\nconst Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <input\n className={cn(\"sv-check\", className)}\n ref={ref}\n {...props}\n type=\"checkbox\"\n />\n )\n)\nCheckbox.displayName = \"Checkbox\"\n\nexport { Checkbox }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {\n orientation?: \"horizontal\" | \"vertical\"\n /**\n * `true` (default, matching shadcn/ui upstream): a purely visual divider,\n * so it stays out of the accessibility tree — no `role`, no\n * `aria-orientation`. Pass `false` for a divider that carries real\n * meaning (e.g. between two distinct sign-in methods) to expose\n * `role=\"separator\"` and, when vertical, `aria-orientation=\"vertical\"`.\n */\n decorative?: boolean\n}\n\nconst Separator = React.forwardRef<HTMLDivElement, SeparatorProps>(\n ({ className, orientation = \"horizontal\", decorative = true, ...props }, ref) => (\n <div\n {...props}\n ref={ref}\n // Spread before, not after: whether this divider is announced is\n // decided by `decorative`/`orientation`, not by a stray role/\n // aria-orientation the caller passes through `...props` — same\n // reasoning as DialogContent's aria-modal.\n role={decorative ? undefined : \"separator\"}\n aria-orientation={!decorative && orientation === \"vertical\" ? \"vertical\" : undefined}\n className={cn(\n \"sv-separator\",\n orientation === \"vertical\" && \"sv-separator--vertical\",\n className,\n )}\n />\n ),\n)\nSeparator.displayName = \"Separator\"\n\nexport { Separator }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Current amount. Clamped to `[0, max]` — never renders past the track. */\n value?: number\n /** Ceiling `value` is measured against. Library default is `100` — not a claim of native `<progress>` parity (that element defaults `max` to `1` and treats an omitted `value` as indeterminate; this component always renders a determinate `value`). */\n max?: number\n}\n\n/** `value`/`max` clamped into `[0, max]`, so an out-of-range input never overflows the track. */\nfunction clamp(value: number, max: number): number {\n return Math.min(Math.max(value, 0), max)\n}\n\n/**\n * A negative, `NaN` or `Infinity` `max` would otherwise produce an invalid\n * ARIA range (`aria-valuemin` > `aria-valuemax`) or a nonsensical 100%\n * indicator (`clamp(0, -10)` returns `-10`, not `0`) — normalize to a finite,\n * non-negative ceiling before it reaches `clamp`/`aria-valuemax`.\n */\nfunction normalizeMax(max: number): number {\n return Number.isFinite(max) && max > 0 ? max : 0\n}\n\nconst Progress = React.forwardRef<HTMLDivElement, ProgressProps>(\n ({ className, value = 0, max = 100, ...props }, ref) => {\n const safeMax = normalizeMax(max)\n const clamped = clamp(value, safeMax)\n const percent = safeMax === 0 ? 0 : (clamped / safeMax) * 100\n\n return (\n <div\n {...props}\n ref={ref}\n // Spread before, not after: the ARIA range this component computes\n // from value/max must not be overridable by a stray\n // role/aria-valuenow/aria-valuemin/aria-valuemax the caller passes\n // through `...props` — same reasoning as DialogContent's aria-modal.\n role=\"progressbar\"\n aria-valuenow={clamped}\n aria-valuemin={0}\n aria-valuemax={safeMax}\n className={cn(\"sv-progress\", className)}\n >\n <div className=\"sv-progress__indicator\" style={{ width: `${percent}%` }} />\n </div>\n )\n },\n)\nProgress.displayName = \"Progress\"\n\nexport { Progress }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nexport interface PaginationProps extends React.ComponentPropsWithoutRef<\"nav\"> {}\n\n/**\n * The root landmark. `aria-label=\"pagination\"` is the one static string a\n * consumer cannot override — spread order matters here the same way\n * Dialog's `aria-modal` does — the label is what tells assistive tech\n * which `<nav>` this is among possibly several on the page.\n */\nconst Pagination = ({ className, ...props }: PaginationProps) => (\n <nav {...props} aria-label=\"pagination\" className={cn(\"sv-pagination\", className)} />\n)\nPagination.displayName = \"Pagination\"\n\nexport type PaginationContentProps = React.ComponentPropsWithoutRef<\"ul\">\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, PaginationContentProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn(\"sv-pagination__content\", className)} {...props} />\n ),\n)\nPaginationContent.displayName = \"PaginationContent\"\n\nexport type PaginationItemProps = React.ComponentPropsWithoutRef<\"li\">\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, PaginationItemProps>(\n ({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"sv-pagination__item\", className)} {...props} />\n ),\n)\nPaginationItem.displayName = \"PaginationItem\"\n\ninterface PaginationLinkOwnProps {\n isActive?: boolean\n}\n\nexport type PaginationLinkProps = PaginationLinkOwnProps &\n Omit<React.ComponentPropsWithoutRef<\"a\">, \"href\"> & {\n href?: string\n }\n\n/**\n * Renders an `<a>` when `href` is passed (real navigation: SEO, right-click\n * \"open in new tab\"), a `<button type=\"button\">` otherwise (client-side page\n * state with no URL to point at) — never a third `as` prop to pick between\n * them, because these are the only two real call sites (AD, design.md).\n */\nconst PaginationLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, PaginationLinkProps>(\n ({ className, isActive = false, href, ...props }, ref) => {\n const sharedClassName = cn(\n \"sv-pagination__link\",\n isActive && \"sv-pagination__link--active\",\n className,\n )\n const sharedAria = isActive ? ({ \"aria-current\": \"page\" } as const) : {}\n\n if (href !== undefined) {\n return (\n <a\n ref={ref as React.Ref<HTMLAnchorElement>}\n href={href}\n className={sharedClassName}\n {...sharedAria}\n {...(props as React.ComponentPropsWithoutRef<\"a\">)}\n />\n )\n }\n\n return (\n <button\n ref={ref as React.Ref<HTMLButtonElement>}\n type=\"button\"\n className={sharedClassName}\n {...sharedAria}\n {...(props as React.ComponentPropsWithoutRef<\"button\">)}\n />\n )\n },\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nexport interface PaginationPreviousProps extends Omit<PaginationLinkProps, \"children\"> {\n /** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */\n label?: string\n}\n\nconst PaginationPrevious = React.forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PaginationPreviousProps\n>(({ className, label = \"Previous\", ...props }, ref) => (\n <PaginationLink\n ref={ref}\n aria-label={label}\n className={cn(\"sv-pagination__link--previous\", className)}\n {...props}\n >\n <Icon name=\"chevron-left\" />\n <span>{label}</span>\n </PaginationLink>\n))\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nexport interface PaginationNextProps extends Omit<PaginationLinkProps, \"children\"> {\n label?: string\n}\n\nconst PaginationNext = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, PaginationNextProps>(\n ({ className, label = \"Next\", ...props }, ref) => (\n <PaginationLink\n ref={ref}\n aria-label={label}\n className={cn(\"sv-pagination__link--next\", className)}\n {...props}\n >\n <span>{label}</span>\n <Icon name=\"chevron-right\" />\n </PaginationLink>\n ),\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nexport type PaginationEllipsisProps = React.ComponentPropsWithoutRef<\"span\">\n\n/** Not a link — there is nothing to focus or activate, only a visual \"more pages\" marker. */\nconst PaginationEllipsis = ({ className, ...props }: PaginationEllipsisProps) => (\n <span aria-hidden=\"true\" className={cn(\"sv-pagination__ellipsis\", className)} {...props}>\n …\n </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\n/**\n * SVG chart primitives — visual geometry only, reading the system's own\n * tokens for grid/axis color and taking series color as a prop (the three\n * series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /\n * `var(--sv-warning-ink)`, are the system's contract; which series maps to\n * which token is the consumer's call, same as it is today).\n *\n * Deliberately NOT a charting engine: every geometry prop here (`points`,\n * `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain\n * value (a clinical score, a percentage) to that space is application logic,\n * not a design-system concern — see design.md's Assumptions table.\n */\n\nexport interface ChartContainerProps {\n width: number\n height: number\n /** The chart's accessible name. Omit only when an adjacent visible caption already names it. */\n \"aria-label\"?: string\n className?: string\n children?: React.ReactNode\n}\n\nconst ChartContainer = React.forwardRef<SVGSVGElement, ChartContainerProps>(\n ({ width, height, className, children, ...props }, ref) => (\n <svg\n ref={ref}\n role=\"img\"\n viewBox={`0 0 ${width} ${height}`}\n width={width}\n height={height}\n className={cn(\"sv-chart\", className)}\n {...props}\n >\n {children}\n </svg>\n ),\n)\nChartContainer.displayName = \"ChartContainer\"\n\nexport interface ChartGridProps {\n orientation: \"horizontal\" | \"vertical\"\n /** Position, along the axis perpendicular to the line's own direction, of each grid line. */\n positions: number[]\n /** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */\n width: number\n className?: string\n}\n\nconst ChartGrid = ({ orientation, positions, width, className }: ChartGridProps) => (\n <>\n {positions.map((position) =>\n orientation === \"horizontal\" ? (\n <line\n key={position}\n x1={0}\n y1={position}\n x2={width}\n y2={position}\n className={cn(\"sv-chart__grid-line\", className)}\n />\n ) : (\n <line\n key={position}\n x1={position}\n y1={0}\n x2={position}\n y2={width}\n className={cn(\"sv-chart__grid-line\", className)}\n />\n ),\n )}\n </>\n)\nChartGrid.displayName = \"ChartGrid\"\n\nexport interface ChartTick {\n position: number\n label: string\n}\n\nexport interface ChartAxisProps {\n orientation: \"bottom\" | \"left\"\n ticks: ChartTick[]\n /** Baseline length — how far along its own axis the line runs. */\n length: number\n className?: string\n}\n\nconst ChartAxis = ({ orientation, ticks, length, className }: ChartAxisProps) => (\n <>\n {orientation === \"bottom\" ? (\n <line x1={0} y1={0} x2={length} y2={0} className={cn(\"sv-chart__axis\", className)} />\n ) : (\n <line x1={0} y1={0} x2={0} y2={length} className={cn(\"sv-chart__axis\", className)} />\n )}\n {ticks.map((tick) =>\n orientation === \"bottom\" ? (\n <text\n key={tick.position}\n x={tick.position}\n y={16}\n textAnchor=\"middle\"\n className=\"sv-chart__axis-label\"\n >\n {tick.label}\n </text>\n ) : (\n <text\n key={tick.position}\n x={-8}\n y={tick.position}\n textAnchor=\"end\"\n dominantBaseline=\"middle\"\n className=\"sv-chart__axis-label\"\n >\n {tick.label}\n </text>\n ),\n )}\n </>\n)\nChartAxis.displayName = \"ChartAxis\"\n\nexport interface ChartPoint {\n x: number\n y: number\n}\n\nexport interface ChartLineProps {\n points: ChartPoint[]\n /** A `var(--sv-*-ink)` series token, or any valid CSS color. */\n color: string\n className?: string\n}\n\nconst ChartLine = ({ points, color, className }: ChartLineProps) => (\n <polyline\n points={points.map(({ x, y }) => `${x},${y}`).join(\" \")}\n fill=\"none\"\n stroke={color}\n strokeWidth={2}\n className={cn(\"sv-chart__line\", className)}\n />\n)\nChartLine.displayName = \"ChartLine\"\n\nexport interface ChartBarDatum {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport interface ChartBarProps {\n bars: ChartBarDatum[]\n /** A `var(--sv-*-ink)` series token, or any valid CSS color. */\n color: string\n className?: string\n}\n\nconst ChartBar = ({ bars, color, className }: ChartBarProps) => (\n <>\n {bars.map((bar) => (\n <rect\n key={`${bar.x},${bar.y}`}\n x={bar.x}\n y={bar.y}\n width={bar.width}\n height={bar.height}\n fill={color}\n className={cn(\"sv-chart__bar\", className)}\n />\n ))}\n </>\n)\nChartBar.displayName = \"ChartBar\"\n\nexport { ChartContainer, ChartGrid, ChartAxis, ChartLine, ChartBar }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { fieldClasses } from \"../../recipes/field\"\n\nexport interface RadioGroupItemProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {\n children?: React.ReactNode\n}\n\nconst RadioGroupItem = React.forwardRef<HTMLInputElement, RadioGroupItemProps>(\n ({ className, children, ...props }, ref) => (\n <label className={fieldClasses.choice}>\n <input\n className={cn(\"sv-radio\", className)}\n ref={ref}\n {...props}\n type=\"radio\"\n />\n {children}\n </label>\n )\n)\nRadioGroupItem.displayName = \"RadioGroupItem\"\n\nexport interface RadioGroupProps\n extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, \"name\"> {\n legend?: React.ReactNode\n legendHidden?: boolean\n orientation?: \"vertical\" | \"horizontal\"\n name?: string\n}\n\n// No React context API here — that constructor does not exist in Server\n// Components (AD-002). Instead, `name` is injected directly into\n// direct-child RadioGroupItems via React.Children.map — a child's own\n// `name` always wins, and anything that isn't a direct-child RadioGroupItem\n// (text, other elements, a wrapper, or a falsy child) passes through\n// untouched.\nconst RadioGroup = React.forwardRef<HTMLFieldSetElement, RadioGroupProps>(\n (\n { className, legend, legendHidden, orientation = \"vertical\", name, children, ...props },\n ref\n ) => {\n const items = React.Children.map(children, (child) => {\n if (!React.isValidElement(child) || child.type !== RadioGroupItem) {\n return child\n }\n const itemProps = child.props as RadioGroupItemProps\n if (itemProps.name !== undefined) {\n return child\n }\n return React.cloneElement(child as React.ReactElement<RadioGroupItemProps>, { name })\n })\n\n return (\n <fieldset\n className={cn(\n \"sv-radio-group\",\n orientation === \"horizontal\" && \"sv-radio-group--horizontal\",\n className\n )}\n ref={ref}\n {...props}\n >\n {legend !== undefined && (\n <legend className={cn(\"sv-radio-group__legend\", legendHidden && fieldClasses.srOnly)}>\n {legend}\n </legend>\n )}\n {items}\n </fieldset>\n )\n }\n)\nRadioGroup.displayName = \"RadioGroup\"\n\nexport { RadioGroup, RadioGroupItem }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { table, tableClasses } from \"../../recipes/table\"\n\nexport interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {\n containerClassName?: string\n /** Below 40rem, render each row as a block of label/value pairs. Pair with `TableCell label`. */\n stack?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, containerClassName, stack, ...props }, ref) => (\n <div className={cn(tableClasses.container, containerClassName)}>\n <table\n className={cn(table(), stack && \"sv-table--stack\", className)}\n ref={ref}\n {...props}\n />\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nexport interface TableHeaderProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\n ({ className, ...props }, ref) => (\n <thead className={cn(tableClasses.head, className)} ref={ref} {...props} />\n )\n)\nTableHeader.displayName = \"TableHeader\"\n\nexport interface TableBodyProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, ...props }, ref) => (\n <tbody className={cn(tableClasses.body, className)} ref={ref} {...props} />\n )\n)\nTableBody.displayName = \"TableBody\"\n\nexport interface TableFooterProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ className, ...props }, ref) => (\n <tfoot className={cn(tableClasses.foot, className)} ref={ref} {...props} />\n )\n)\nTableFooter.displayName = \"TableFooter\"\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {}\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ className, ...props }, ref) => (\n <tr className={cn(tableClasses.row, className)} ref={ref} {...props} />\n )\n)\nTableRow.displayName = \"TableRow\"\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement> {}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, ...props }, ref) => (\n <th className={cn(tableClasses.th, className)} ref={ref} {...props} />\n )\n)\nTableHead.displayName = \"TableHead\"\n\nexport interface TableCellProps\n extends React.TdHTMLAttributes<HTMLTableCellElement> {\n /** Column name shown before the value when the table is stacked (`Table stack`). */\n label?: string\n}\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n ({ className, label, ...props }, ref) => (\n <td\n className={cn(tableClasses.td, className)}\n data-label={label}\n ref={ref}\n {...props}\n />\n )\n)\nTableCell.displayName = \"TableCell\"\n\nexport interface TableCaptionProps\n extends React.HTMLAttributes<HTMLTableCaptionElement> {}\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, ref) => (\n <caption className={cn(tableClasses.caption, className)} ref={ref} {...props} />\n )\n)\nTableCaption.displayName = \"TableCaption\"\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n}\n","/**\n * Table recipes: the class map behind the Table component family, exported so\n * a consumer composing a raw <table> gets the same tokenized decoration\n * instead of re-deriving borders, header band and caption by hand. Pure —\n * Server Component safe.\n */\n\nexport function table(): string {\n return 'sv-table';\n}\n\nexport const tableClasses = {\n container: 'sv-table-container',\n head: 'sv-table__head',\n body: 'sv-table__body',\n foot: 'sv-table__foot',\n row: 'sv-table__row',\n th: 'sv-table__th',\n td: 'sv-table__td',\n caption: 'sv-table__caption',\n} as const;\n","/**\n * Still Void typography tokens.\n * Families are fixed by the spec: Sora (display), Manrope (body), JetBrains Mono (code).\n * System fallbacks are loading fallbacks only — the final family must be the correct one.\n */\nexport const fontFamilies = {\n display: \"'Sora', ui-sans-serif, system-ui, sans-serif\",\n body: \"'Manrope', ui-sans-serif, system-ui, sans-serif\",\n mono: \"'JetBrains Mono', ui-monospace, 'SF Mono', monospace\",\n} as const;\n\nexport const fontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n} as const;\n\nexport const fontSizes = {\n xs: '0.75rem', // 12px — meta, pills\n sm: '0.8125rem', // 13px — captions, code\n base: '0.9375rem', // 15px — body\n md: '1rem', // 16px — lead paragraphs\n lg: '1.125rem', // 18px — article lead\n xl: '1.375rem', // 22px — card titles, h3\n '2xl': '1.75rem', // 28px — h2\n '3xl': '2.25rem', // 36px — article title\n '4xl': '2.75rem', // 44px — hero display\n} as const;\n\nexport const lineHeights = {\n tight: 1.15,\n snug: 1.3,\n normal: 1.5,\n relaxed: 1.7,\n} as const;\n\nexport const letterSpacings = {\n display: '-0.02em',\n normal: '0',\n wide: '0.08em',\n} as const;\n\nexport type FontFamily = keyof typeof fontFamilies;\nexport type FontSize = keyof typeof fontSizes;\nexport type FontWeight = keyof typeof fontWeights;\n","/**\n * Still Void spacing scale (4→72px) and radii (6/8/12/16/full).\n */\nexport const spacing = {\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 5: '20px',\n 6: '24px',\n 8: '32px',\n 10: '40px',\n 12: '48px',\n 14: '56px',\n 16: '64px',\n 18: '72px',\n} as const;\n\nexport const radii = {\n sm: '6px',\n md: '8px',\n lg: '12px',\n xl: '16px',\n full: '9999px',\n} as const;\n\nexport type SpacingStep = keyof typeof spacing;\nexport type Radius = keyof typeof radii;\n","/**\n * Still Void motion tokens.\n * Hover transitions use the signature easing; the reading progress bar is linear.\n */\nexport const easings = {\n hover: 'cubic-bezier(.3,.7,.4,1)',\n linear: 'linear',\n} as const;\n\nexport const durations = {\n fast: '120ms',\n base: '200ms',\n slow: '320ms',\n} as const;\n\nexport type Easing = keyof typeof easings;\nexport type Duration = keyof typeof durations;\n","/**\n * Still Void z-index scale. Named steps instead of arbitrary numbers so new\n * layered components (dropdown, modal, toast, tooltip) stack predictably\n * against the existing sticky header and reading progress bar.\n */\nexport const zIndex = {\n dropdown: 10,\n sticky: 20,\n backdrop: 30,\n modal: 40,\n toast: 50,\n tooltip: 60,\n} as const;\n\nexport type ZIndexStep = keyof typeof zIndex;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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J,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,IAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;;;ACpBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;;;ACRO,IAAM,SAAS;AAAA,EACpB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AACX;","names":["import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","accents","React","import_jsx_runtime","React","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime"]}
|
|
1
|
+
{"version":3,"sources":["../../src/react/index.ts","../../src/components/ui/icon.tsx","../../src/lib/utils.ts","../../src/components/ui/icon-set.ts","../../src/recipes/cx.ts","../../src/recipes/shell.ts","../../src/react/components/Shell.tsx","../../src/recipes/content.ts","../../src/tokens/colors.ts","../../src/tokens/categories.ts","../../src/react/components/Content.tsx","../../src/recipes/article.ts","../../src/react/components/Article.tsx","../../src/behaviors/themeManager.ts","../../src/react/components/ThemeScript.tsx","../../src/components/ui/button.tsx","../../src/components/ui/card.tsx","../../src/components/ui/slot.tsx","../../src/components/ui/alert.tsx","../../src/components/ui/badge.tsx","../../src/components/ui/input.tsx","../../src/recipes/field.ts","../../src/components/ui/textarea.tsx","../../src/components/ui/native-select.tsx","../../src/components/ui/file-input.tsx","../../src/components/ui/checkbox.tsx","../../src/components/ui/separator.tsx","../../src/components/ui/progress.tsx","../../src/components/ui/pagination.tsx","../../src/components/ui/chart.tsx","../../src/components/ui/radio-group.tsx","../../src/components/ui/table.tsx","../../src/recipes/table.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/motion.ts","../../src/tokens/zIndex.ts"],"sourcesContent":["/**\n * @still-void/ui/react — Server Component safe React adapter.\n * Nothing here uses hooks, state, or browser APIs, so every component can\n * render inside a Next.js Server Component. Interactive pieces live in\n * '@still-void/ui/react/client'.\n */\nexport * from './components/Shell';\nexport * from './components/Content';\nexport * from './components/Article';\nexport * from './components/ThemeScript';\n\n// Server-safe shadcn/ui components (no hooks, no state, no browser APIs)\nexport { Button, type ButtonProps } from '../components/ui/button';\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from '../components/ui/card';\nexport { Alert, AlertTitle, AlertDescription } from '../components/ui/alert';\nexport { Badge, type BadgeProps } from '../components/ui/badge';\nexport { Icon, type IconProps, type IconName } from '../components/ui/icon';\nexport { Input, type InputProps } from '../components/ui/input';\nexport { Textarea, type TextareaProps } from '../components/ui/textarea';\nexport { NativeSelect, type NativeSelectProps } from '../components/ui/native-select';\nexport { FileInput, type FileInputProps } from '../components/ui/file-input';\nexport { Checkbox, type CheckboxProps } from '../components/ui/checkbox';\nexport { Separator, type SeparatorProps } from '../components/ui/separator';\nexport { Progress, type ProgressProps } from '../components/ui/progress';\nexport {\n Pagination,\n type PaginationProps,\n PaginationContent,\n type PaginationContentProps,\n PaginationItem,\n type PaginationItemProps,\n PaginationLink,\n type PaginationLinkProps,\n PaginationPrevious,\n type PaginationPreviousProps,\n PaginationNext,\n type PaginationNextProps,\n PaginationEllipsis,\n type PaginationEllipsisProps,\n} from '../components/ui/pagination';\nexport {\n ChartContainer,\n type ChartContainerProps,\n ChartGrid,\n type ChartGridProps,\n ChartAxis,\n type ChartAxisProps,\n type ChartTick,\n ChartLine,\n type ChartLineProps,\n type ChartPoint,\n ChartBar,\n type ChartBarProps,\n type ChartBarDatum,\n} from '../components/ui/chart';\nexport {\n RadioGroup,\n RadioGroupItem,\n type RadioGroupProps,\n type RadioGroupItemProps,\n} from '../components/ui/radio-group';\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableRowProps,\n type TableHeadProps,\n type TableCellProps,\n type TableCaptionProps,\n} from '../components/ui/table';\n\n// Re-export data contracts and recipe types consumers need for props.\nexport type { PostSummary, TocItem, NavItem } from '../types';\n\n// Design tokens — pure data, server-safe.\nexport * from '../tokens/colors';\nexport * from '../tokens/typography';\nexport * from '../tokens/spacing';\nexport * from '../tokens/motion';\nexport * from '../tokens/categories';\nexport * from '../tokens/zIndex';\n\n// Recipes — pure class-name builders, server-safe.\nexport * from '../recipes/cx';\nexport * from '../recipes/shell';\nexport * from '../recipes/content';\nexport * from '../recipes/article';\nexport * from '../recipes/field';\nexport * from '../recipes/table';\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 data-icon-name={name}\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 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 type * as React from 'react';\nimport {\n Bars3Icon,\n CameraIcon,\n CheckCircleIcon,\n CheckIcon,\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n ChevronUpIcon,\n ClockIcon,\n DocumentDuplicateIcon,\n ExclamationCircleIcon,\n ExclamationTriangleIcon,\n InformationCircleIcon,\n MagnifyingGlassIcon,\n MoonIcon,\n NoSymbolIcon,\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 | 'camera'\n | 'blocked'\n | 'pending';\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 camera: CameraIcon,\n blocked: NoSymbolIcon,\n pending: ClockIcon,\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","/** 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 { cx } from './cx';\n\n/**\n * Shell recipes: Header, Logo, Footer.\n * Recipes are pure functions returning class strings — no DOM, no framework.\n * Safe in Next.js Server Components; usable via [class] in Angular, :class in Vue.\n */\n\nexport interface HeaderOptions {\n /** Frosted glass background (sticky headers). */\n glass?: boolean;\n}\n\nexport function header(options: HeaderOptions = {}): string {\n return cx('sv-header', options.glass !== false && 'sv-glass');\n}\n\nexport const headerClasses = {\n nav: 'sv-header__nav',\n /** Wraps <nav> in a native <details> — collapsible below 640px, a no-op\n * wrapper above it, with zero JavaScript (see DESIGN.md §5 Navigation). */\n navToggle: 'sv-header__nav-toggle',\n navSummary: 'sv-header__nav-summary',\n link: 'sv-header__link',\n linkActive: cx('sv-header__link', 'sv-header__link--active'),\n actions: 'sv-header__actions',\n} as const;\n\nexport function logo(): string {\n return 'sv-logo';\n}\n\nexport const logoClasses = {\n dot: 'sv-logo__dot',\n} as const;\n\nexport function footer(): string {\n return 'sv-footer';\n}\n\nexport const footerClasses = {\n links: 'sv-footer__links',\n link: 'sv-footer__link',\n} as const;\n","import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { Icon } from '../../components/ui/icon';\nimport { cx } from '../../recipes/cx';\nimport { footer, footerClasses, header, headerClasses, logo, logoClasses } from '../../recipes/shell';\nimport type { NavItem } from '../../types';\n\n/*\n * Shell components are Server Component safe: no hooks, no browser APIs.\n * Interactivity (theme toggle) is composed in via the `actions` slot —\n * pass <ThemeToggle /> from '@still-void/ui/react/client'.\n */\n\nexport interface LogoProps extends ComponentPropsWithoutRef<'a'> {\n label: string;\n href?: string;\n}\n\nexport function Logo({ label, href = '/', className, ...rest }: LogoProps) {\n return (\n <a href={href} className={cx(logo(), className)} {...rest}>\n <span className={logoClasses.dot} aria-hidden=\"true\" />\n {label}\n </a>\n );\n}\n\nexport interface HeaderProps extends ComponentPropsWithoutRef<'header'> {\n /** Usually a <Logo />. */\n logo?: ReactNode;\n items?: NavItem[];\n /** Right-side slot — theme toggle, search, etc. */\n actions?: ReactNode;\n /** Frosted glass background (default true). */\n glass?: boolean;\n}\n\nexport function Header({ logo: logoSlot, items = [], actions, glass, className, ...rest }: HeaderProps) {\n return (\n <header className={cx(header({ glass }), className)} {...rest}>\n {logoSlot}\n {items.length > 0 && (\n // <details> makes the nav collapsible below 640px with zero\n // JavaScript: CSS forces it open above that width (a no-op wrapper),\n // native click-to-toggle handles it below (see DESIGN.md §5).\n <details className={headerClasses.navToggle}>\n <summary className={headerClasses.navSummary} aria-label=\"Menu\">\n <Icon name=\"menu\" />\n </summary>\n <nav className={headerClasses.nav}>\n {items.map((item) => (\n <a\n key={item.href}\n href={item.href}\n className={item.active ? headerClasses.linkActive : headerClasses.link}\n aria-current={item.active ? 'page' : undefined}\n >\n {item.label}\n </a>\n ))}\n </nav>\n </details>\n )}\n {actions && <div className={headerClasses.actions}>{actions}</div>}\n </header>\n );\n}\n\nexport interface FooterProps extends ComponentPropsWithoutRef<'footer'> {\n author?: string;\n links?: NavItem[];\n children?: ReactNode;\n}\n\nexport function Footer({ author, links = [], children, className, ...rest }: FooterProps) {\n return (\n <footer className={cx(footer(), className)} {...rest}>\n {author && <span>{author}</span>}\n {links.length > 0 && (\n <div className={footerClasses.links}>\n {links.map((link) => (\n <a key={link.href} href={link.href} className={footerClasses.link}>\n {link.label}\n </a>\n ))}\n </div>\n )}\n {children}\n </footer>\n );\n}\n","import { cx } from './cx';\n\n/**\n * Content recipes: CategoryPill, PostCard, FeaturedPostCard, PostGrid,\n * Sidebar, Hero, Skeleton. Pure functions — Server Component safe.\n */\n\nexport interface CategoryPillOptions {\n interactive?: boolean;\n active?: boolean;\n}\n\nexport function categoryPill(options: CategoryPillOptions = {}): string {\n return cx(\n 'sv-pill',\n options.interactive && 'sv-pill--interactive',\n options.active && 'sv-pill--active',\n );\n}\n\nexport const categoryPillClasses = {\n dot: 'sv-pill__dot',\n} as const;\n\nexport interface PostCardOptions {\n dense?: boolean;\n hover?: boolean;\n}\n\nexport function postCard(options: PostCardOptions = {}): string {\n return cx(\n 'sv-post-card',\n options.dense && 'sv-post-card--dense',\n options.hover !== false && 'sv-card-hover',\n );\n}\n\nexport const postCardClasses = {\n meta: 'sv-post-card__meta',\n title: 'sv-post-card__title',\n excerpt: 'sv-post-card__excerpt',\n} as const;\n\nexport function featuredPostCard(): string {\n return cx('sv-featured-card', 'sv-gradient-border', 'sv-card-hover');\n}\n\nexport const featuredPostCardClasses = {\n body: 'sv-featured-card__body',\n title: 'sv-featured-card__title',\n visual: 'sv-featured-card__visual',\n} as const;\n\nexport function postGrid(): string {\n return 'sv-post-grid';\n}\n\nexport interface LayoutOptions {\n withSidebar?: boolean;\n}\n\nexport function layout(options: LayoutOptions = {}): string {\n return cx('sv-layout', options.withSidebar && 'sv-layout--with-sidebar');\n}\n\nexport function sidebar(): string {\n return 'sv-sidebar';\n}\n\nexport const sidebarClasses = {\n sectionTitle: 'sv-sidebar__section-title',\n} as const;\n\nexport function hero(): string {\n return 'sv-hero';\n}\n\nexport const heroClasses = {\n eyebrow: 'sv-hero__eyebrow',\n title: 'sv-hero__title',\n description: 'sv-hero__description',\n} as const;\n\nexport interface SkeletonOptions {\n small?: boolean;\n}\n\nexport function skeletonLine(options: SkeletonOptions = {}): string {\n return cx('sv-skeleton', 'sv-skeleton-line', options.small && 'sv-skeleton-line--sm');\n}\n\nexport function cardSkeleton(): string {\n return 'sv-card-skeleton';\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 // WCAG 1.4.11: edge of an input/select/checkbox must read ≥3:1 on every surface; the\n // decorative borders above sit near 1.5:1 and stay decorative.\n controlBorder: '#6B6B76',\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 controlBorder: '#85858E',\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.515 0.09 210)',\n violet: 'oklch(0.535 0.14 295)',\n mint: 'oklch(0.515 0.1 160)',\n amber: 'oklch(0.53 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.535 0.19 25)',\n success: 'oklch(0.51 0.14 150)',\n info: 'oklch(0.515 0.09 210)',\n warning: 'oklch(0.53 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 { accents, type AccentName } from './colors';\n\n/**\n * Blog categories from the prototype. Categories render as a colored dot + label\n * (never an emoji). The pill also accepts any CSS color for whitelabel use.\n */\nexport type CategoryName = 'ia' | 'prompt' | 'dev' | 'arch' | 'ts';\n\nexport const defaultCategoryColors: Record<CategoryName, AccentName> = {\n ia: 'violet',\n prompt: 'amber',\n dev: 'mint',\n arch: 'cyan',\n ts: 'cyan',\n};\n\nconst hasOwn = <T extends object>(obj: T, key: string): key is Extract<keyof T, string> =>\n Object.prototype.hasOwnProperty.call(obj, key);\n\n/** Resolve an accent name or raw CSS color to a CSS color value. */\nexport function resolveAccentColor(color: AccentName | (string & {})): string {\n return hasOwn(accents, color) ? accents[color] : color;\n}\n\n/** Resolve a category name, accent name, or raw CSS color to a CSS color value. */\nexport function resolveCategoryColor(\n color: CategoryName | AccentName | (string & {}),\n): string {\n if (hasOwn(defaultCategoryColors, color)) {\n return accents[defaultCategoryColors[color]];\n }\n return resolveAccentColor(color);\n}\n","import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from 'react';\nimport { cx } from '../../recipes/cx';\nimport {\n cardSkeleton,\n categoryPill,\n categoryPillClasses,\n featuredPostCard,\n featuredPostCardClasses,\n hero,\n heroClasses,\n layout,\n postCard,\n postCardClasses,\n postGrid,\n sidebar,\n sidebarClasses,\n skeletonLine,\n} from '../../recipes/content';\nimport { resolveCategoryColor } from '../../tokens/categories';\nimport type { PostSummary } from '../../types';\n\n/* All components in this file are Server Component safe. */\n\ninterface CategoryPillBaseProps {\n label: string;\n /** Accent name ('cyan'), category name ('ia'), or any CSS color. */\n color?: string;\n active?: boolean;\n}\n\nexport type CategoryPillProps =\n | (CategoryPillBaseProps & { interactive: true } & Omit<\n ComponentPropsWithoutRef<'button'>,\n 'color'\n >)\n | (CategoryPillBaseProps & { interactive?: false } & Omit<\n ComponentPropsWithoutRef<'span'>,\n 'color'\n >);\n\n/**\n * Categories render as a colored dot + label. When `interactive`, this is a\n * real <button> (toggle semantics via `aria-pressed`) — a `<span>` with a\n * pointer cursor is not operable by keyboard or assistive tech.\n */\nexport function CategoryPill({ label, color, active, interactive, className, style, ...rest }: CategoryPillProps) {\n const pillStyle: CSSProperties | undefined = color\n ? ({ ...style, '--sv-pill-color': resolveCategoryColor(color) } as CSSProperties)\n : style;\n const content = (\n <>\n <span className={categoryPillClasses.dot} aria-hidden=\"true\" />\n {label}\n </>\n );\n\n if (interactive) {\n return (\n <button\n type=\"button\"\n aria-pressed={active ?? false}\n className={cx(categoryPill({ active, interactive }), className)}\n style={pillStyle}\n {...(rest as ComponentPropsWithoutRef<'button'>)}\n >\n {content}\n </button>\n );\n }\n\n return (\n <span\n className={cx(categoryPill({ active, interactive }), className)}\n style={pillStyle}\n {...(rest as ComponentPropsWithoutRef<'span'>)}\n >\n {content}\n </span>\n );\n}\n\nfunction PostMeta({ post }: { post: PostSummary }) {\n if (!post.category && !post.date && post.readMinutes === undefined) return null;\n return (\n <div className={postCardClasses.meta}>\n {post.category && <CategoryPill label={post.category.label} color={post.category.color} />}\n {post.date && <span>{post.date}</span>}\n {post.readMinutes !== undefined && <span>{post.readMinutes} min</span>}\n </div>\n );\n}\n\nexport interface PostCardProps extends ComponentPropsWithoutRef<'article'> {\n post: PostSummary;\n dense?: boolean;\n}\n\nexport function PostCard({ post, dense, className, children, ...rest }: PostCardProps) {\n return (\n <article className={cx(postCard({ dense }), className)} {...rest}>\n <PostMeta post={post} />\n <h3 className={postCardClasses.title}>\n <a href={post.href}>{post.title}</a>\n </h3>\n {!dense && post.excerpt && <p className={postCardClasses.excerpt}>{post.excerpt}</p>}\n {children}\n </article>\n );\n}\n\nexport interface FeaturedPostCardProps extends ComponentPropsWithoutRef<'article'> {\n post: PostSummary;\n /** Custom visual slot (illustration, image). */\n visual?: ReactNode;\n}\n\nexport function FeaturedPostCard({ post, visual, className, children, ...rest }: FeaturedPostCardProps) {\n return (\n <article className={cx(featuredPostCard(), className)} {...rest}>\n <div className={featuredPostCardClasses.body}>\n <PostMeta post={post} />\n <h2 className={featuredPostCardClasses.title}>\n <a href={post.href}>{post.title}</a>\n </h2>\n {post.excerpt && <p className={postCardClasses.excerpt}>{post.excerpt}</p>}\n {children}\n </div>\n {visual && <div className={featuredPostCardClasses.visual}>{visual}</div>}\n </article>\n );\n}\n\nexport interface PostGridProps extends ComponentPropsWithoutRef<'div'> {}\n\nexport function PostGrid({ className, ...rest }: PostGridProps) {\n return <div className={cx(postGrid(), className)} {...rest} />;\n}\n\nexport interface LayoutProps extends ComponentPropsWithoutRef<'div'> {\n withSidebar?: boolean;\n}\n\nexport function Layout({ withSidebar, className, ...rest }: LayoutProps) {\n return <div className={cx(layout({ withSidebar }), className)} {...rest} />;\n}\n\nexport interface SidebarProps extends ComponentPropsWithoutRef<'aside'> {}\n\nexport function Sidebar({ className, ...rest }: SidebarProps) {\n return <aside className={cx(sidebar(), className)} {...rest} />;\n}\n\nexport interface SidebarSectionProps extends ComponentPropsWithoutRef<'section'> {\n title: string;\n}\n\nexport function SidebarSection({ title, children, ...rest }: SidebarSectionProps) {\n return (\n <section {...rest}>\n <h4 className={sidebarClasses.sectionTitle}>{title}</h4>\n {children}\n </section>\n );\n}\n\nexport interface HeroProps extends ComponentPropsWithoutRef<'section'> {\n eyebrow?: string;\n title: string;\n description?: string;\n}\n\nexport function Hero({ eyebrow, title, description, className, children, ...rest }: HeroProps) {\n return (\n <section className={cx(hero(), className)} {...rest}>\n {eyebrow && <span className={heroClasses.eyebrow}>{eyebrow}</span>}\n <h1 className={heroClasses.title}>{title}</h1>\n {description && <p className={heroClasses.description}>{description}</p>}\n {children}\n </section>\n );\n}\n\nexport interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {\n small?: boolean;\n}\n\nexport function Skeleton({ small, className, ...rest }: SkeletonProps) {\n return <div className={cx(skeletonLine({ small }), className)} aria-hidden=\"true\" {...rest} />;\n}\n\nexport function CardSkeleton({ className, ...rest }: ComponentPropsWithoutRef<'div'>) {\n return (\n <div className={cx(cardSkeleton(), className)} aria-hidden=\"true\" {...rest}>\n <Skeleton small />\n <Skeleton />\n <Skeleton />\n </div>\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 type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { cx } from '../../recipes/cx';\nimport {\n articleHeader,\n articleHeaderClasses,\n callout,\n calloutClasses,\n calloutLabels,\n codeBlock,\n codeBlockClasses,\n prose,\n proseClasses,\n type CalloutKind,\n} from '../../recipes/article';\n\n/*\n * Article components are Server Component safe.\n * Interactive pieces (copy button, scroll spy) live in the client entry\n * and are composed in via slots.\n */\n\nexport interface CodeBlockProps extends ComponentPropsWithoutRef<'figure'> {\n /** Raw source shown when `rendered` is absent. */\n code: string;\n language?: string;\n filename?: string;\n /**\n * Pre-highlighted markup (e.g. Shiki output rendered on the server).\n * The prototype's regex tokenizer was demo-only and is intentionally\n * not part of the library.\n */\n rendered?: ReactNode;\n /** Header slot — pass <CopyButton code={code} /> from the client entry. */\n actions?: ReactNode;\n}\n\nexport function CodeBlock({\n code,\n language,\n filename,\n rendered,\n actions,\n className,\n ...rest\n}: CodeBlockProps) {\n return (\n <figure className={cx(codeBlock(), className)} {...rest}>\n <figcaption className={codeBlockClasses.header}>\n <span>{filename ?? language ?? 'code'}</span>\n {actions}\n </figcaption>\n <pre className={codeBlockClasses.pre}>\n {rendered ?? <code>{code}</code>}\n </pre>\n </figure>\n );\n}\n\nexport interface CalloutProps extends ComponentPropsWithoutRef<'aside'> {\n kind: CalloutKind;\n /** Override the default kind label. */\n label?: string;\n}\n\nexport function Callout({ kind, label, className, children, ...rest }: CalloutProps) {\n return (\n <aside className={cx(callout(kind), className)} {...rest}>\n <span className={calloutClasses.label}>{label ?? calloutLabels[kind]}</span>\n <div>{children}</div>\n </aside>\n );\n}\n\nexport interface ArticleHeaderProps extends ComponentPropsWithoutRef<'header'> {\n title: string;\n author?: string;\n date?: string;\n readMinutes?: number;\n /** Slot above the title — usually a <CategoryPill />. */\n eyebrow?: ReactNode;\n}\n\nexport function ArticleHeader({\n title,\n author,\n date,\n readMinutes,\n eyebrow,\n className,\n ...rest\n}: ArticleHeaderProps) {\n return (\n <header className={cx(articleHeader(), className)} {...rest}>\n {eyebrow}\n <h1 className={articleHeaderClasses.title}>{title}</h1>\n {(author || date || readMinutes !== undefined) && (\n <div className={articleHeaderClasses.meta}>\n {author && <span className={articleHeaderClasses.author}>{author}</span>}\n {date && <span>{date}</span>}\n {readMinutes !== undefined && <span>{readMinutes} min</span>}\n </div>\n )}\n </header>\n );\n}\n\nexport interface ProseProps extends ComponentPropsWithoutRef<'div'> {}\n\n/** Typography wrapper for article/MDX content. */\nexport function Prose({ className, ...rest }: ProseProps) {\n return <div className={cx(prose(), className)} {...rest} />;\n}\n\nexport interface LeadProps extends ComponentPropsWithoutRef<'p'> {}\n\n/** Lead paragraph inside <Prose>. */\nexport function Lead({ className, ...rest }: LeadProps) {\n return <p className={cx(proseClasses.lead, className)} {...rest} />;\n}\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","import { DEFAULT_STORAGE_KEY } from '../../behaviors/themeManager';\nimport { accentNames, themeModes } from '../../tokens/colors';\n\nexport interface ThemeScriptProps {\n /** Must match the `storageKey` passed to `<ThemeProvider>` (or `createThemeManager`). */\n storageKey?: string;\n /** CSP nonce forwarded to the inline `<script>`. */\n nonce?: string;\n}\n\n/**\n * Render once, as early as possible in `<head>` or right after `<html>` opens\n * (before the rest of the document): a blocking inline script that applies a\n * stored theme preference to `<html>` before first paint.\n *\n * Without this, the first paint uses whatever `data-theme`/`data-accent` the\n * server rendered — `<ThemeProvider>` only reconciles localStorage on mount,\n * so a returning visitor who chose light mode sees a dark flash until\n * hydration. This component is server-safe (no hooks, no browser APIs at\n * render time) and can be composed inside `<html>` from a Server Component.\n */\n/**\n * `JSON.stringify` doesn't escape `<`, so a value containing `</script>`\n * (e.g. a `storageKey` derived from user input) would close the real\n * `<script>` tag early and let whatever follows run as raw HTML — a classic\n * JSON-in-script-tag XSS. `<` is a valid JS string escape the parser\n * decodes back to `<` at runtime, so this is purely a serialization-time\n * fix with no effect on the parsed value.\n */\nfunction toScriptLiteral(value: unknown): string {\n return JSON.stringify(value).replace(/</g, '\\\\u003c');\n}\n\nexport function ThemeScript({ storageKey = DEFAULT_STORAGE_KEY, nonce }: ThemeScriptProps = {}) {\n const modes = toScriptLiteral(themeModes);\n const accents = toScriptLiteral(accentNames);\n const key = toScriptLiteral(storageKey);\n\n const script = `(function(){try{var s=JSON.parse(localStorage.getItem(${key})||\"null\");if(!s)return;var m=${modes},a=${accents},r=document.documentElement;if(m.indexOf(s.mode)!==-1)r.setAttribute(\"data-theme\",s.mode);if(a.indexOf(s.accent)!==-1)r.setAttribute(\"data-accent\",s.accent);}catch(e){}})();`;\n\n // eslint-disable-next-line react/no-danger\n return <script nonce={nonce} dangerouslySetInnerHTML={{ __html: script }} />;\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: \"default\" | \"destructive\" | \"outline\" | \"secondary\" | \"ghost\" | \"link\" | \"accent\"\n size?: \"default\" | \"sm\" | \"lg\" | \"icon\"\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant = \"default\", size = \"default\", ...props }, ref) => (\n <button\n className={cn(\n \"sv-btn\",\n variant === \"destructive\" && \"sv-btn--destructive\",\n variant === \"outline\" && \"sv-btn--outline\",\n variant === \"secondary\" && \"sv-btn--secondary\",\n variant === \"ghost\" && \"sv-btn--ghost\",\n variant === \"link\" && \"sv-btn--link\",\n variant === \"accent\" && \"sv-btn--accent\",\n size === \"sm\" && \"sv-btn--sm\",\n size === \"lg\" && \"sv-btn--lg\",\n size === \"icon\" && \"sv-btn--icon\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n)\nButton.displayName = \"Button\"\n\nexport { Button }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Slot } from \"./slot\"\n\n/**\n * Closed set of tags `Card` may render as `as`. `section`/`article` cover the\n * two landmark cases the report asked for; `li`/`aside` are the other shapes\n * a presentational surface legitimately needs (a card inside a `<ul>`, a card\n * used as a page aside). A `Set` lookup, not a bare cast: `as={value as any}`\n * would render whatever string reaches JSX as a literal tag name, including\n * an invalid one — the fallback below is what keeps that impossible.\n */\nconst CARD_ELEMENTS = new Set([\"div\", \"section\", \"article\", \"li\", \"aside\"] as const)\nexport type CardElement = \"div\" | \"section\" | \"article\" | \"li\" | \"aside\"\n\nexport interface CardProps extends React.HTMLAttributes<HTMLElement> {\n /** Tag to render. Defaults to `div`. Ignored when `asChild` is also passed (AD-006). */\n as?: CardElement\n /** Merge sv-card's class, ref and props onto a single child instead of rendering a wrapper. Wins over `as` when both are given (AD-006). */\n asChild?: boolean\n}\n\nconst Card = React.forwardRef<HTMLElement, CardProps>(\n ({ className, as, asChild = false, ...props }, ref) => {\n if (asChild) {\n return <Slot ref={ref} className={cn(\"sv-card\", className)} {...props} />\n }\n const Comp = as !== undefined && CARD_ELEMENTS.has(as) ? as : \"div\"\n return React.createElement(Comp, {\n ref,\n className: cn(\"sv-card\", className),\n ...props,\n })\n },\n)\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__header\", className)} {...props} />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h2 ref={ref} className={cn(\"sv-card__title\", className)} {...props} />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"sv-card__description\", className)} {...props} />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__content\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-card__footer\", className)} {...props} />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","import * as React from \"react\"\n\n/**\n * A server-safe port of `@radix-ui/react-slot`'s core behavior (AD-006,\n * superseding the plan to import the real package — see AD-015 in\n * .specs/STATE.md).\n *\n * `@radix-ui/react-slot@1.3.3` ships no `'use client'` directive, but its\n * `Slot` component calls `useComposedRefs`, which calls `React.useCallback`\n * — a real hook, verified against the installed package's dist. A hook with\n * no dispatcher throws when it reaches a real Next.js Server Component, so\n * importing it here would have broken exactly the property\n * tests/server-safety.test.ts exists to protect, silently, the same way\n * lucide-react almost did (AD-013).\n *\n * `@radix-ui/react-compose-refs` exports the hook AND the plain function it\n * wraps — `composeRefs` itself has no hook inside it, only `useComposedRefs`\n * does — but that package's own module still *contains* the hook, so even a\n * named import of only the safe half makes tests/server-safety.test.ts's\n * bare-specifier walker (correctly) flag the module it resolves to: the\n * walker checks what a module contains, not which export of it gets called,\n * and it has no way to prove the unused hook is truly unreachable from here.\n * Rather than carve out an exception for something the tooling can't verify,\n * `composeRefs` (below) is the same ref-merging logic inlined directly, with\n * no import of the package at all — the safety property becomes mechanically\n * true instead of argued.\n *\n * This file uses the plain ref-merge as the ref callback directly, instead\n * of memoizing it through `useCallback` the way Radix does. The cost is\n * real but small: without memoization the merged ref callback has a new\n * identity every render, so React detaches and reattaches it each time\n * instead of reusing the same function — harmless for a DOM node, and\n * Card's usage (one wrapped child, re-rendered no more often than any other\n * styling wrapper) is exactly the case that cost doesn't matter for.\n *\n * Scope is deliberately narrower than the real Slot: no `Slottable`, no\n * lazy-component `use()` support. Card only ever wraps exactly one element,\n * so that surface was never reachable from here.\n */\n\n/** Ported from @radix-ui/react-compose-refs (MIT) — the hook-free half only. */\nfunction composeRefs<T>(...refs: (React.Ref<T> | null | undefined)[]) {\n return (node: T) => {\n for (const ref of refs) {\n if (typeof ref === \"function\") {\n ref(node)\n } else if (ref !== null && ref !== undefined) {\n ;(ref as React.MutableRefObject<T | null>).current = node\n }\n }\n }\n}\n\nfunction mergeProps(\n slotProps: Record<string, unknown>,\n childProps: Record<string, unknown>,\n): Record<string, unknown> {\n const merged: Record<string, unknown> = { ...slotProps, ...childProps }\n for (const key in childProps) {\n const slotValue = slotProps[key]\n const childValue = childProps[key]\n const isHandler = /^on[A-Z]/.test(key)\n if (isHandler && typeof slotValue === \"function\" && typeof childValue === \"function\") {\n merged[key] = (...args: unknown[]) => {\n const result = (childValue as (...a: unknown[]) => unknown)(...args)\n ;(slotValue as (...a: unknown[]) => unknown)(...args)\n return result\n }\n } else if (key === \"style\") {\n merged[key] = { ...(slotValue as object), ...(childValue as object) }\n } else if (key === \"className\") {\n merged[key] = [slotValue, childValue].filter(Boolean).join(\" \")\n }\n }\n return merged\n}\n\nexport interface SlotProps extends React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode\n}\n\nexport const Slot = React.forwardRef<HTMLElement, SlotProps>(\n ({ children, ...slotProps }, forwardedRef) => {\n // A Fragment counts as \"one valid element\" for isValidElement/Children.count,\n // but it has no DOM node to attach className/ref/props to — the real Slot\n // handles that case through `Slottable`, which this narrower port doesn't\n // support (Card only ever wraps exactly one real element). Rejecting it\n // explicitly, rather than letting React.cloneElement's own dev-only prop\n // warning be the only signal, is what keeps CARD-03's \"erro explícito\"\n // true for every multi-child shape a caller might pass, Fragment included.\n if (\n !React.isValidElement(children) ||\n React.Children.count(children) !== 1 ||\n children.type === React.Fragment\n ) {\n throw new Error(\n \"Slot expected a single React element child. Pass exactly one element to asChild.\",\n )\n }\n\n // A valid React element's `.props` is always an object (React itself\n // guarantees this, `{}` for a childless element) — no fallback needed.\n const child = children as React.ReactElement<\n Record<string, unknown> & { ref?: React.Ref<unknown> }\n >\n // React 19 moved `ref` onto `props`; reading `element.ref` directly still\n // works but is deprecated and logs a dev warning (\"ref is now a regular\n // prop\"). `child.props.ref` is the same value without the warning.\n const childRef = child.props.ref ?? null\n const mergedProps = mergeProps(slotProps, child.props)\n mergedProps.ref = forwardedRef ? composeRefs(forwardedRef, childRef) : childRef\n return React.cloneElement(child, mergedProps)\n },\n)\nSlot.displayName = \"Slot\"\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon, type IconName } from \"./icon\"\n\nexport type AlertVariant = 'info' | 'success' | 'warning' | 'danger'\n\ninterface AlertProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: AlertVariant\n icon?: React.ReactNode | null\n action?: React.ReactNode\n}\n\n// Map variant to derived role and default icon\nconst variantConfig: Record<AlertVariant, { role: 'alert' | 'status'; icon: IconName }> = {\n info: { role: 'status', icon: 'info' },\n success: { role: 'status', icon: 'check-circle' },\n warning: { role: 'alert', icon: 'alert-triangle' },\n danger: { role: 'alert', icon: 'alert-circle' },\n}\n\nconst Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n ({ className, variant, icon, action, role: propRole, ...props }, ref) => {\n // Validate variant: only use if it's a known own key (guards against\n // inherited names like \"constructor\"/\"toString\" matching via `in`)\n const config =\n variant && Object.prototype.hasOwnProperty.call(variantConfig, variant)\n ? variantConfig[variant]\n : null\n const derivedRole = config?.role ?? 'alert'\n // Derived role wins over prop role; without variant, force 'alert' unconditionally\n const effectiveRole = config ? derivedRole : 'alert'\n\n // Determine if icon should be rendered\n let iconElement: React.ReactNode = null\n if (icon !== null) {\n if (icon !== undefined) {\n // Render every non-null explicit node (element, string, number, array)\n iconElement = icon\n } else if (config) {\n // Render default icon for this variant\n iconElement = <Icon name={config.icon} aria-hidden=\"true\" />\n }\n }\n\n return (\n <div\n ref={ref}\n className={cn(\"sv-alert\", config && `sv-alert--${variant}`, className)}\n role={effectiveRole}\n {...props}\n >\n {iconElement}\n {props.children}\n {action && <div className=\"sv-alert__action\">{action}</div>}\n </div>\n )\n },\n)\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5 ref={ref} className={cn(\"sv-alert__title\", className)} {...props} />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"sv-alert__description\", className)} {...props} />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"secondary\" | \"destructive\" | \"outline\"\n}\n\nfunction Badge({ className, variant = \"default\", ...props }: BadgeProps) {\n return (\n <div\n className={cn(\n \"sv-badge\",\n variant === \"secondary\" && \"sv-badge--secondary\",\n variant === \"destructive\" && \"sv-badge--destructive\",\n variant === \"outline\" && \"sv-badge--outline\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Badge }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => (\n <input\n type={type}\n className={cn(field(), className)}\n ref={ref}\n {...props}\n />\n )\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","import { cx } from './cx';\n\n/**\n * Field recipe: the single source of truth for the form-field frame shared by\n * Input, Textarea, NativeSelect and FileInput. Pure function — Server\n * Component safe, and exported so consumers composing their own markup style\n * a field the same way the components do instead of mirroring the CSS by hand.\n */\n\nexport type FieldVariant = 'input' | 'textarea' | 'select' | 'file';\n\nexport interface FieldOptions {\n variant?: FieldVariant;\n}\n\nexport function field(options: FieldOptions = {}): string {\n // 'input' is the base shape, so it adds no modifier — the plain frame is\n // already what a single-line input needs.\n return cx(\n 'sv-field',\n options.variant && options.variant !== 'input' && `sv-field--${options.variant}`,\n );\n}\n\nexport const fieldClasses = {\n choice: 'sv-choice',\n srOnly: 'sv-sr-only',\n} as const;\n\n/**\n * Invalid state is read from the native `aria-invalid` attribute rather than\n * a boolean prop: Input/Textarea/NativeSelect/FileInput already spread\n * `...props`, so `<Input aria-invalid=\"true\" />` alone paints the danger\n * border with zero component changes — composition over configuration.\n */\nexport type FieldMessageVariant = 'hint' | 'error';\n\nexport interface FieldMessageOptions {\n variant?: FieldMessageVariant;\n}\n\n/**\n * Helper/error text meant to sit under a field, associated to it via\n * `aria-describedby` on the field itself.\n */\nexport function fieldMessage(options: FieldMessageOptions = {}): string {\n return cx('sv-field-message', options.variant === 'error' && 'sv-field-message--error');\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => (\n <textarea\n className={cn(field({ variant: \"textarea\" }), className)}\n ref={ref}\n {...props}\n />\n )\n)\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface NativeSelectProps\n extends React.SelectHTMLAttributes<HTMLSelectElement> {}\n\nconst NativeSelect = React.forwardRef<HTMLSelectElement, NativeSelectProps>(\n ({ className, children, ...props }, ref) => (\n <select\n className={cn(field({ variant: \"select\" }), className)}\n ref={ref}\n {...props}\n >\n {children}\n </select>\n )\n)\nNativeSelect.displayName = \"NativeSelect\"\n\nexport { NativeSelect }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { field } from \"../../recipes/field\"\n\nexport interface FileInputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {}\n\nconst FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(\n ({ className, ...props }, ref) => (\n <input\n className={cn(field({ variant: \"file\" }), className)}\n ref={ref}\n {...props}\n type=\"file\"\n />\n )\n)\nFileInput.displayName = \"FileInput\"\n\nexport { FileInput }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface CheckboxProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {}\n\nconst Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <input\n className={cn(\"sv-check\", className)}\n ref={ref}\n {...props}\n type=\"checkbox\"\n />\n )\n)\nCheckbox.displayName = \"Checkbox\"\n\nexport { Checkbox }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {\n orientation?: \"horizontal\" | \"vertical\"\n /**\n * `true` (default, matching shadcn/ui upstream): a purely visual divider,\n * so it stays out of the accessibility tree — no `role`, no\n * `aria-orientation`. Pass `false` for a divider that carries real\n * meaning (e.g. between two distinct sign-in methods) to expose\n * `role=\"separator\"` and, when vertical, `aria-orientation=\"vertical\"`.\n */\n decorative?: boolean\n}\n\nconst Separator = React.forwardRef<HTMLDivElement, SeparatorProps>(\n ({ className, orientation = \"horizontal\", decorative = true, ...props }, ref) => (\n <div\n {...props}\n ref={ref}\n // Spread before, not after: whether this divider is announced is\n // decided by `decorative`/`orientation`, not by a stray role/\n // aria-orientation the caller passes through `...props` — same\n // reasoning as DialogContent's aria-modal.\n role={decorative ? undefined : \"separator\"}\n aria-orientation={!decorative && orientation === \"vertical\" ? \"vertical\" : undefined}\n className={cn(\n \"sv-separator\",\n orientation === \"vertical\" && \"sv-separator--vertical\",\n className,\n )}\n />\n ),\n)\nSeparator.displayName = \"Separator\"\n\nexport { Separator }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Current amount. Clamped to `[0, max]` — never renders past the track. */\n value?: number\n /** Ceiling `value` is measured against. Library default is `100` — not a claim of native `<progress>` parity (that element defaults `max` to `1` and treats an omitted `value` as indeterminate; this component always renders a determinate `value`). */\n max?: number\n}\n\n/** `value`/`max` clamped into `[0, max]`, so an out-of-range input never overflows the track. */\nfunction clamp(value: number, max: number): number {\n return Math.min(Math.max(value, 0), max)\n}\n\n/**\n * A negative, `NaN` or `Infinity` `max` would otherwise produce an invalid\n * ARIA range (`aria-valuemin` > `aria-valuemax`) or a nonsensical 100%\n * indicator (`clamp(0, -10)` returns `-10`, not `0`) — normalize to a finite,\n * non-negative ceiling before it reaches `clamp`/`aria-valuemax`.\n */\nfunction normalizeMax(max: number): number {\n return Number.isFinite(max) && max > 0 ? max : 0\n}\n\nconst Progress = React.forwardRef<HTMLDivElement, ProgressProps>(\n ({ className, value = 0, max = 100, ...props }, ref) => {\n const safeMax = normalizeMax(max)\n const clamped = clamp(value, safeMax)\n const percent = safeMax === 0 ? 0 : (clamped / safeMax) * 100\n\n return (\n <div\n {...props}\n ref={ref}\n // Spread before, not after: the ARIA range this component computes\n // from value/max must not be overridable by a stray\n // role/aria-valuenow/aria-valuemin/aria-valuemax the caller passes\n // through `...props` — same reasoning as DialogContent's aria-modal.\n role=\"progressbar\"\n aria-valuenow={clamped}\n aria-valuemin={0}\n aria-valuemax={safeMax}\n className={cn(\"sv-progress\", className)}\n >\n <div className=\"sv-progress__indicator\" style={{ width: `${percent}%` }} />\n </div>\n )\n },\n)\nProgress.displayName = \"Progress\"\n\nexport { Progress }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { Icon } from \"./icon\"\n\nexport interface PaginationProps extends React.ComponentPropsWithoutRef<\"nav\"> {}\n\n/**\n * The root landmark. `aria-label=\"pagination\"` is the one static string a\n * consumer cannot override — spread order matters here the same way\n * Dialog's `aria-modal` does — the label is what tells assistive tech\n * which `<nav>` this is among possibly several on the page.\n */\nconst Pagination = ({ className, ...props }: PaginationProps) => (\n <nav {...props} aria-label=\"pagination\" className={cn(\"sv-pagination\", className)} />\n)\nPagination.displayName = \"Pagination\"\n\nexport type PaginationContentProps = React.ComponentPropsWithoutRef<\"ul\">\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, PaginationContentProps>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn(\"sv-pagination__content\", className)} {...props} />\n ),\n)\nPaginationContent.displayName = \"PaginationContent\"\n\nexport type PaginationItemProps = React.ComponentPropsWithoutRef<\"li\">\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, PaginationItemProps>(\n ({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"sv-pagination__item\", className)} {...props} />\n ),\n)\nPaginationItem.displayName = \"PaginationItem\"\n\ninterface PaginationLinkOwnProps {\n isActive?: boolean\n}\n\nexport type PaginationLinkProps = PaginationLinkOwnProps &\n Omit<React.ComponentPropsWithoutRef<\"a\">, \"href\"> & {\n href?: string\n }\n\n/**\n * Renders an `<a>` when `href` is passed (real navigation: SEO, right-click\n * \"open in new tab\"), a `<button type=\"button\">` otherwise (client-side page\n * state with no URL to point at) — never a third `as` prop to pick between\n * them, because these are the only two real call sites (AD, design.md).\n */\nconst PaginationLink = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, PaginationLinkProps>(\n ({ className, isActive = false, href, ...props }, ref) => {\n const sharedClassName = cn(\n \"sv-pagination__link\",\n isActive && \"sv-pagination__link--active\",\n className,\n )\n const sharedAria = isActive ? ({ \"aria-current\": \"page\" } as const) : {}\n\n if (href !== undefined) {\n return (\n <a\n ref={ref as React.Ref<HTMLAnchorElement>}\n href={href}\n className={sharedClassName}\n {...sharedAria}\n {...(props as React.ComponentPropsWithoutRef<\"a\">)}\n />\n )\n }\n\n return (\n <button\n ref={ref as React.Ref<HTMLButtonElement>}\n type=\"button\"\n className={sharedClassName}\n {...sharedAria}\n {...(props as React.ComponentPropsWithoutRef<\"button\">)}\n />\n )\n },\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nexport interface PaginationPreviousProps extends Omit<PaginationLinkProps, \"children\"> {\n /** Accessible + visible label. Defaults to English, like closeLabel on DialogContent — override for i18n. */\n label?: string\n}\n\nconst PaginationPrevious = React.forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n PaginationPreviousProps\n>(({ className, label = \"Previous\", ...props }, ref) => (\n <PaginationLink\n ref={ref}\n aria-label={label}\n className={cn(\"sv-pagination__link--previous\", className)}\n {...props}\n >\n <Icon name=\"chevron-left\" />\n <span>{label}</span>\n </PaginationLink>\n))\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nexport interface PaginationNextProps extends Omit<PaginationLinkProps, \"children\"> {\n label?: string\n}\n\nconst PaginationNext = React.forwardRef<HTMLAnchorElement | HTMLButtonElement, PaginationNextProps>(\n ({ className, label = \"Next\", ...props }, ref) => (\n <PaginationLink\n ref={ref}\n aria-label={label}\n className={cn(\"sv-pagination__link--next\", className)}\n {...props}\n >\n <span>{label}</span>\n <Icon name=\"chevron-right\" />\n </PaginationLink>\n ),\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nexport type PaginationEllipsisProps = React.ComponentPropsWithoutRef<\"span\">\n\n/** Not a link — there is nothing to focus or activate, only a visual \"more pages\" marker. */\nconst PaginationEllipsis = ({ className, ...props }: PaginationEllipsisProps) => (\n <span aria-hidden=\"true\" className={cn(\"sv-pagination__ellipsis\", className)} {...props}>\n …\n </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\n/**\n * SVG chart primitives — visual geometry only, reading the system's own\n * tokens for grid/axis color and taking series color as a prop (the three\n * series tokens, `var(--sv-accent-ink)` / `var(--sv-info-ink)` /\n * `var(--sv-warning-ink)`, are the system's contract; which series maps to\n * which token is the consumer's call, same as it is today).\n *\n * Deliberately NOT a charting engine: every geometry prop here (`points`,\n * `positions`, `ticks`, `bars`) is already in pixel space. Mapping a domain\n * value (a clinical score, a percentage) to that space is application logic,\n * not a design-system concern — see design.md's Assumptions table.\n */\n\nexport interface ChartContainerProps {\n width: number\n height: number\n /** The chart's accessible name. Omit only when an adjacent visible caption already names it. */\n \"aria-label\"?: string\n className?: string\n children?: React.ReactNode\n}\n\nconst ChartContainer = React.forwardRef<SVGSVGElement, ChartContainerProps>(\n ({ width, height, className, children, ...props }, ref) => (\n <svg\n ref={ref}\n role=\"img\"\n viewBox={`0 0 ${width} ${height}`}\n width={width}\n height={height}\n className={cn(\"sv-chart\", className)}\n {...props}\n >\n {children}\n </svg>\n ),\n)\nChartContainer.displayName = \"ChartContainer\"\n\nexport interface ChartGridProps {\n orientation: \"horizontal\" | \"vertical\"\n /** Position, along the axis perpendicular to the line's own direction, of each grid line. */\n positions: number[]\n /** Line length — the far edge each horizontal line reaches on x, or each vertical line reaches on y. */\n width: number\n className?: string\n}\n\nconst ChartGrid = ({ orientation, positions, width, className }: ChartGridProps) => (\n <>\n {positions.map((position) =>\n orientation === \"horizontal\" ? (\n <line\n key={position}\n x1={0}\n y1={position}\n x2={width}\n y2={position}\n className={cn(\"sv-chart__grid-line\", className)}\n />\n ) : (\n <line\n key={position}\n x1={position}\n y1={0}\n x2={position}\n y2={width}\n className={cn(\"sv-chart__grid-line\", className)}\n />\n ),\n )}\n </>\n)\nChartGrid.displayName = \"ChartGrid\"\n\nexport interface ChartTick {\n position: number\n label: string\n}\n\nexport interface ChartAxisProps {\n orientation: \"bottom\" | \"left\"\n ticks: ChartTick[]\n /** Baseline length — how far along its own axis the line runs. */\n length: number\n className?: string\n}\n\nconst ChartAxis = ({ orientation, ticks, length, className }: ChartAxisProps) => (\n <>\n {orientation === \"bottom\" ? (\n <line x1={0} y1={0} x2={length} y2={0} className={cn(\"sv-chart__axis\", className)} />\n ) : (\n <line x1={0} y1={0} x2={0} y2={length} className={cn(\"sv-chart__axis\", className)} />\n )}\n {ticks.map((tick) =>\n orientation === \"bottom\" ? (\n <text\n key={tick.position}\n x={tick.position}\n y={16}\n textAnchor=\"middle\"\n className=\"sv-chart__axis-label\"\n >\n {tick.label}\n </text>\n ) : (\n <text\n key={tick.position}\n x={-8}\n y={tick.position}\n textAnchor=\"end\"\n dominantBaseline=\"middle\"\n className=\"sv-chart__axis-label\"\n >\n {tick.label}\n </text>\n ),\n )}\n </>\n)\nChartAxis.displayName = \"ChartAxis\"\n\nexport interface ChartPoint {\n x: number\n y: number\n}\n\nexport interface ChartLineProps {\n points: ChartPoint[]\n /** A `var(--sv-*-ink)` series token, or any valid CSS color. */\n color: string\n className?: string\n}\n\nconst ChartLine = ({ points, color, className }: ChartLineProps) => (\n <polyline\n points={points.map(({ x, y }) => `${x},${y}`).join(\" \")}\n fill=\"none\"\n stroke={color}\n strokeWidth={2}\n className={cn(\"sv-chart__line\", className)}\n />\n)\nChartLine.displayName = \"ChartLine\"\n\nexport interface ChartBarDatum {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport interface ChartBarProps {\n bars: ChartBarDatum[]\n /** A `var(--sv-*-ink)` series token, or any valid CSS color. */\n color: string\n className?: string\n}\n\nconst ChartBar = ({ bars, color, className }: ChartBarProps) => (\n <>\n {bars.map((bar) => (\n <rect\n key={`${bar.x},${bar.y}`}\n x={bar.x}\n y={bar.y}\n width={bar.width}\n height={bar.height}\n fill={color}\n className={cn(\"sv-chart__bar\", className)}\n />\n ))}\n </>\n)\nChartBar.displayName = \"ChartBar\"\n\nexport { ChartContainer, ChartGrid, ChartAxis, ChartLine, ChartBar }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { fieldClasses } from \"../../recipes/field\"\n\nexport interface RadioGroupItemProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {\n children?: React.ReactNode\n}\n\nconst RadioGroupItem = React.forwardRef<HTMLInputElement, RadioGroupItemProps>(\n ({ className, children, ...props }, ref) => (\n <label className={fieldClasses.choice}>\n <input\n className={cn(\"sv-radio\", className)}\n ref={ref}\n {...props}\n type=\"radio\"\n />\n {children}\n </label>\n )\n)\nRadioGroupItem.displayName = \"RadioGroupItem\"\n\nexport interface RadioGroupProps\n extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, \"name\"> {\n legend?: React.ReactNode\n legendHidden?: boolean\n orientation?: \"vertical\" | \"horizontal\"\n name?: string\n}\n\n// No React context API here — that constructor does not exist in Server\n// Components (AD-002). Instead, `name` is injected directly into\n// direct-child RadioGroupItems via React.Children.map — a child's own\n// `name` always wins, and anything that isn't a direct-child RadioGroupItem\n// (text, other elements, a wrapper, or a falsy child) passes through\n// untouched.\nconst RadioGroup = React.forwardRef<HTMLFieldSetElement, RadioGroupProps>(\n (\n { className, legend, legendHidden, orientation = \"vertical\", name, children, ...props },\n ref\n ) => {\n const items = React.Children.map(children, (child) => {\n if (!React.isValidElement(child) || child.type !== RadioGroupItem) {\n return child\n }\n const itemProps = child.props as RadioGroupItemProps\n if (itemProps.name !== undefined) {\n return child\n }\n return React.cloneElement(child as React.ReactElement<RadioGroupItemProps>, { name })\n })\n\n return (\n <fieldset\n className={cn(\n \"sv-radio-group\",\n orientation === \"horizontal\" && \"sv-radio-group--horizontal\",\n className\n )}\n ref={ref}\n {...props}\n >\n {legend !== undefined && (\n <legend className={cn(\"sv-radio-group__legend\", legendHidden && fieldClasses.srOnly)}>\n {legend}\n </legend>\n )}\n {items}\n </fieldset>\n )\n }\n)\nRadioGroup.displayName = \"RadioGroup\"\n\nexport { RadioGroup, RadioGroupItem }\n","import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport { table, tableClasses } from \"../../recipes/table\"\n\nexport interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {\n containerClassName?: string\n /** Below 40rem, render each row as a block of label/value pairs. Pair with `TableCell label`. */\n stack?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n ({ className, containerClassName, stack, ...props }, ref) => (\n <div className={cn(tableClasses.container, containerClassName)}>\n <table\n className={cn(table(), stack && \"sv-table--stack\", className)}\n ref={ref}\n {...props}\n />\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nexport interface TableHeaderProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\n ({ className, ...props }, ref) => (\n <thead className={cn(tableClasses.head, className)} ref={ref} {...props} />\n )\n)\nTableHeader.displayName = \"TableHeader\"\n\nexport interface TableBodyProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, ...props }, ref) => (\n <tbody className={cn(tableClasses.body, className)} ref={ref} {...props} />\n )\n)\nTableBody.displayName = \"TableBody\"\n\nexport interface TableFooterProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {}\n\nconst TableFooter = React.forwardRef<HTMLTableSectionElement, TableFooterProps>(\n ({ className, ...props }, ref) => (\n <tfoot className={cn(tableClasses.foot, className)} ref={ref} {...props} />\n )\n)\nTableFooter.displayName = \"TableFooter\"\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {}\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ className, ...props }, ref) => (\n <tr className={cn(tableClasses.row, className)} ref={ref} {...props} />\n )\n)\nTableRow.displayName = \"TableRow\"\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement> {}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, ...props }, ref) => (\n <th className={cn(tableClasses.th, className)} ref={ref} {...props} />\n )\n)\nTableHead.displayName = \"TableHead\"\n\nexport interface TableCellProps\n extends React.TdHTMLAttributes<HTMLTableCellElement> {\n /** Column name shown before the value when the table is stacked (`Table stack`). */\n label?: string\n}\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n ({ className, label, ...props }, ref) => (\n <td\n className={cn(tableClasses.td, className)}\n data-label={label}\n ref={ref}\n {...props}\n />\n )\n)\nTableCell.displayName = \"TableCell\"\n\nexport interface TableCaptionProps\n extends React.HTMLAttributes<HTMLTableCaptionElement> {}\n\nconst TableCaption = React.forwardRef<HTMLTableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, ref) => (\n <caption className={cn(tableClasses.caption, className)} ref={ref} {...props} />\n )\n)\nTableCaption.displayName = \"TableCaption\"\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n}\n","/**\n * Table recipes: the class map behind the Table component family, exported so\n * a consumer composing a raw <table> gets the same tokenized decoration\n * instead of re-deriving borders, header band and caption by hand. Pure —\n * Server Component safe.\n */\n\nexport function table(): string {\n return 'sv-table';\n}\n\nexport const tableClasses = {\n container: 'sv-table-container',\n head: 'sv-table__head',\n body: 'sv-table__body',\n foot: 'sv-table__foot',\n row: 'sv-table__row',\n th: 'sv-table__th',\n td: 'sv-table__td',\n caption: 'sv-table__caption',\n} as const;\n","/**\n * Still Void typography tokens.\n * Families are fixed by the spec: Sora (display), Manrope (body), JetBrains Mono (code).\n * System fallbacks are loading fallbacks only — the final family must be the correct one.\n */\nexport const fontFamilies = {\n display: \"'Sora', ui-sans-serif, system-ui, sans-serif\",\n body: \"'Manrope', ui-sans-serif, system-ui, sans-serif\",\n mono: \"'JetBrains Mono', ui-monospace, 'SF Mono', monospace\",\n} as const;\n\nexport const fontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n} as const;\n\nexport const fontSizes = {\n xs: '0.75rem', // 12px — meta, pills\n sm: '0.8125rem', // 13px — captions, code\n base: '0.9375rem', // 15px — body\n md: '1rem', // 16px — lead paragraphs\n lg: '1.125rem', // 18px — article lead\n xl: '1.375rem', // 22px — card titles, h3\n '2xl': '1.75rem', // 28px — h2\n '3xl': '2.25rem', // 36px — article title\n '4xl': '2.75rem', // 44px — hero display\n} as const;\n\nexport const lineHeights = {\n tight: 1.15,\n snug: 1.3,\n normal: 1.5,\n relaxed: 1.7,\n} as const;\n\nexport const letterSpacings = {\n display: '-0.02em',\n normal: '0',\n wide: '0.08em',\n} as const;\n\nexport type FontFamily = keyof typeof fontFamilies;\nexport type FontSize = keyof typeof fontSizes;\nexport type FontWeight = keyof typeof fontWeights;\n","/**\n * Still Void spacing scale (4→72px) and radii (6/8/12/16/full).\n */\nexport const spacing = {\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 5: '20px',\n 6: '24px',\n 8: '32px',\n 10: '40px',\n 12: '48px',\n 14: '56px',\n 16: '64px',\n 18: '72px',\n} as const;\n\nexport const radii = {\n sm: '6px',\n md: '8px',\n lg: '12px',\n xl: '16px',\n full: '9999px',\n} as const;\n\nexport type SpacingStep = keyof typeof spacing;\nexport type Radius = keyof typeof radii;\n","/**\n * Still Void motion tokens.\n * Hover transitions use the signature easing; the reading progress bar is linear.\n */\nexport const easings = {\n hover: 'cubic-bezier(.3,.7,.4,1)',\n linear: 'linear',\n} as const;\n\nexport const durations = {\n fast: '120ms',\n base: '200ms',\n slow: '320ms',\n} as const;\n\nexport type Easing = keyof typeof easings;\nexport type Duration = keyof typeof durations;\n","/**\n * Still Void z-index scale. Named steps instead of arbitrary numbers so new\n * layered components (dropdown, modal, toast, tooltip) stack predictably\n * against the existing sticky header and reading progress bar.\n */\nexport const zIndex = {\n dropdown: 10,\n sticky: 20,\n backdrop: 30,\n modal: 40,\n toast: 50,\n tooltip: 60,\n} as const;\n\nexport type ZIndexStep = keyof typeof zIndex;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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O,IAAM,cAAc;AAAA,EACzB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AACX;AAEO,IAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AACR;;;ACtCO,IAAM,UAAU;AAAA,EACrB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEO,IAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;;;ACpBO,IAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,IAAM,YAAY;AAAA,EACvB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;;;ACRO,IAAM,SAAS;AAAA,EACpB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AACX;","names":["import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","accents","React","import_jsx_runtime","React","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime"]}
|
package/dist/react/index.d.cts
CHANGED
|
@@ -14,6 +14,7 @@ declare const colors: {
|
|
|
14
14
|
readonly surface2: "#1C1C22";
|
|
15
15
|
readonly border: "rgba(255,255,255,0.08)";
|
|
16
16
|
readonly borderStrong: "rgba(255,255,255,0.14)";
|
|
17
|
+
readonly controlBorder: "#6B6B76";
|
|
17
18
|
readonly text: "#EDEDF0";
|
|
18
19
|
readonly text2: "#8B8B96";
|
|
19
20
|
readonly text3: "#83838F";
|
|
@@ -25,6 +26,7 @@ declare const colors: {
|
|
|
25
26
|
readonly surface2: "#F2F2EF";
|
|
26
27
|
readonly border: "rgba(0,0,0,0.08)";
|
|
27
28
|
readonly borderStrong: "rgba(0,0,0,0.14)";
|
|
29
|
+
readonly controlBorder: "#85858E";
|
|
28
30
|
readonly text: "#16161B";
|
|
29
31
|
readonly text2: "#5A5A66";
|
|
30
32
|
readonly text3: "#6D6D76";
|
|
@@ -52,10 +54,10 @@ declare const accentsInk: {
|
|
|
52
54
|
readonly amber: "oklch(0.78 0.12 75)";
|
|
53
55
|
};
|
|
54
56
|
readonly light: {
|
|
55
|
-
readonly cyan: "oklch(0.
|
|
56
|
-
readonly violet: "oklch(0.
|
|
57
|
-
readonly mint: "oklch(0.
|
|
58
|
-
readonly amber: "oklch(0.
|
|
57
|
+
readonly cyan: "oklch(0.515 0.09 210)";
|
|
58
|
+
readonly violet: "oklch(0.535 0.14 295)";
|
|
59
|
+
readonly mint: "oklch(0.515 0.1 160)";
|
|
60
|
+
readonly amber: "oklch(0.53 0.11 75)";
|
|
59
61
|
};
|
|
60
62
|
};
|
|
61
63
|
/**
|
|
@@ -86,10 +88,10 @@ declare const semanticInk: {
|
|
|
86
88
|
readonly warning: "oklch(0.78 0.12 75)";
|
|
87
89
|
};
|
|
88
90
|
readonly light: {
|
|
89
|
-
readonly danger: "oklch(0.
|
|
90
|
-
readonly success: "oklch(0.
|
|
91
|
-
readonly info: "oklch(0.
|
|
92
|
-
readonly warning: "oklch(0.
|
|
91
|
+
readonly danger: "oklch(0.535 0.19 25)";
|
|
92
|
+
readonly success: "oklch(0.51 0.14 150)";
|
|
93
|
+
readonly info: "oklch(0.515 0.09 210)";
|
|
94
|
+
readonly warning: "oklch(0.53 0.11 75)";
|
|
93
95
|
};
|
|
94
96
|
};
|
|
95
97
|
type ThemeMode = keyof typeof colors;
|