@loworbitstudio/visor 1.50.0 → 1.52.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.4.0",
3
- "generated_at": "2026-11-14T03:05:37.058Z",
3
+ "generated_at": "2026-11-14T04:36:08.558Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "changeType": "current",
@@ -554,6 +554,12 @@
554
554
  "breakingChange": false,
555
555
  "migrationNote": null
556
556
  },
557
+ "resizable-split": {
558
+ "changeType": "current",
559
+ "files": [],
560
+ "breakingChange": false,
561
+ "migrationNote": null
562
+ },
557
563
  "save-status": {
558
564
  "changeType": "current",
559
565
  "files": [],
package/dist/index.js CHANGED
@@ -9169,6 +9169,13 @@ var FIXTURES = {
9169
9169
  props: `{ "aria-label": "Hours Website embeds bills", value: 12.5, savedValue: 8, min: 8, max: 16.75, hue: 339, size: "lg", marks: [{ value: 10, label: "High", hatchPast: true }], evidence: { value: 10.5, agent: 3, proposed: 1.25 }, minLabel: "Low", maxLabel: "Ceiling allows", formatValue: (h) => h + " h", onValueChange: () => {}, style: { width: 640 } }`
9170
9170
  }
9171
9171
  },
9172
+ // VI-778: an editor and a preview pane, the editor at 280px.
9173
+ "resizable-split": {
9174
+ default: {
9175
+ export: "ResizableSplit",
9176
+ props: `{ style: { width: 640, height: 240 }, defaultSize: 280, minStart: 200, minEnd: 240, dividerLabel: "Resize editor and preview", children: [React.createElement("div", { key: "a", style: { padding: 16 } }, "Editor"), React.createElement("div", { key: "b", style: { padding: 16 } }, "Preview")] }`
9177
+ }
9178
+ },
9172
9179
  // VI-766: hours by bucket with a hatched and an alert part, money in thin with stripes, and empty.
9173
9180
  "proportion-bar": {
9174
9181
  default: {
@@ -3511,6 +3511,30 @@
3511
3511
  }
3512
3512
  ]
3513
3513
  },
3514
+ {
3515
+ "name": "resizable-split",
3516
+ "type": "registry:ui",
3517
+ "description": "Two panes side by side with a draggable, keyboard-accessible divider: a minimum width per pane, a controlled or default size, and a divider drawn from theme tokens that keeps the pointer over an iframe.",
3518
+ "category": "layout",
3519
+ "dependencies": [
3520
+ "@loworbitstudio/visor-core"
3521
+ ],
3522
+ "registryDependencies": [
3523
+ "utils"
3524
+ ],
3525
+ "files": [
3526
+ {
3527
+ "path": "components/ui/resizable-split/resizable-split.tsx",
3528
+ "type": "registry:ui",
3529
+ "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../../lib/utils\"\nimport styles from \"./resizable-split.module.css\"\n\nexport interface ResizableSplitProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\" | \"defaultValue\" | \"onChange\"> {\n /** The two panes, start (left) then end (right). */\n children: [React.ReactNode, React.ReactNode]\n /** The start pane's width in px. Controlled. */\n size?: number\n /** The start pane's first width in px when uncontrolled. Without it the panes start equal. */\n defaultSize?: number\n /** Called with the start pane's new width in px while dragging and on every key step. */\n onSizeChange?: (size: number) => void\n /** The start pane's minimum width in px. */\n minStart?: number\n /** The end pane's minimum width in px. */\n minEnd?: number\n /** px per arrow key press. Shift + arrows step four times this. */\n step?: number\n /** The divider's accessible name. */\n dividerLabel?: string\n}\n\nconst clamp = (v: number, lo: number, hi: number) => Math.min(Math.max(v, lo), Math.max(lo, hi))\n\nconst ResizableSplit = React.forwardRef<HTMLDivElement, ResizableSplitProps>(\n (\n {\n className,\n children,\n size,\n defaultSize,\n onSizeChange,\n minStart = 0,\n minEnd = 0,\n step = 16,\n dividerLabel = \"Resize panes\",\n style,\n ...props\n },\n ref\n ) => {\n const rootRef = React.useRef<HTMLDivElement>(null)\n const dividerRef = React.useRef<HTMLDivElement>(null)\n React.useImperativeHandle(ref, () => rootRef.current as HTMLDivElement)\n\n const [internal, setInternal] = React.useState<number | undefined>(defaultSize)\n const [avail, setAvail] = React.useState(0)\n const [dragging, setDragging] = React.useState(false)\n const drag = React.useRef<{ x: number; from: number } | null>(null)\n const value = size ?? internal\n\n // The width the two panes share: the root less the divider.\n const measure = React.useCallback(() => {\n const root = rootRef.current?.getBoundingClientRect().width ?? 0\n const divider = dividerRef.current?.getBoundingClientRect().width ?? 0\n return Math.max(root - divider, 0)\n }, [])\n\n React.useLayoutEffect(() => {\n setAvail(measure())\n if (typeof ResizeObserver === \"undefined\" || !rootRef.current) return\n const ro = new ResizeObserver(() => setAvail(measure()))\n ro.observe(rootRef.current)\n return () => ro.disconnect()\n }, [measure])\n\n const max = Math.max(minStart, avail - minEnd)\n const now = Math.round(clamp(value ?? avail / 2, minStart, max))\n\n const set = (next: number) => {\n const shared = measure()\n const v = Math.round(clamp(next, minStart, shared - minEnd))\n setAvail(shared)\n if (size === undefined) setInternal(v)\n onSizeChange?.(v)\n }\n\n const onKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\n const by = e.shiftKey ? step * 4 : step\n const moves: Record<string, () => number> = {\n ArrowLeft: () => now - by,\n ArrowRight: () => now + by,\n Home: () => minStart,\n End: () => Number.POSITIVE_INFINITY,\n }\n const move = moves[e.key]\n if (!move) return\n e.preventDefault()\n set(move())\n }\n\n const onPointerDown = (e: React.PointerEvent<HTMLDivElement>) => {\n if (e.button !== 0) return\n e.preventDefault()\n e.currentTarget.focus()\n // Capture keeps the moves coming over an iframe; the panes also stop taking the pointer while dragging.\n e.currentTarget.setPointerCapture?.(e.pointerId)\n drag.current = { x: e.clientX, from: now }\n setDragging(true)\n }\n\n const onPointerMove = (e: React.PointerEvent<HTMLDivElement>) => {\n if (!drag.current) return\n set(drag.current.from + e.clientX - drag.current.x)\n }\n\n const endDrag = (e: React.PointerEvent<HTMLDivElement>) => {\n if (!drag.current) return\n drag.current = null\n setDragging(false)\n if (e.currentTarget.hasPointerCapture?.(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId)\n }\n\n const [start, end] = React.Children.toArray(children)\n\n return (\n <div\n ref={rootRef}\n data-slot=\"resizable-split\"\n data-dragging={dragging ? \"\" : undefined}\n className={cn(styles.root, className)}\n style={style}\n {...props}\n >\n <div\n data-slot=\"resizable-split-start\"\n className={styles.pane}\n style={{ flex: value === undefined ? \"1 1 0%\" : `0 1 ${value}px`, minWidth: minStart }}\n >\n {start}\n </div>\n <div\n ref={dividerRef}\n role=\"separator\"\n tabIndex={0}\n aria-label={dividerLabel}\n aria-orientation=\"vertical\"\n aria-valuenow={now}\n aria-valuemin={minStart}\n aria-valuemax={Math.round(max)}\n data-slot=\"resizable-split-divider\"\n className={styles.divider}\n onKeyDown={onKeyDown}\n onPointerDown={onPointerDown}\n onPointerMove={onPointerMove}\n onPointerUp={endDrag}\n onPointerCancel={endDrag}\n />\n <div data-slot=\"resizable-split-end\" className={styles.pane} style={{ flex: \"1 1 0%\", minWidth: minEnd }}>\n {end}\n </div>\n </div>\n )\n }\n)\nResizableSplit.displayName = \"ResizableSplit\"\n\nexport { ResizableSplit }\n"
3530
+ },
3531
+ {
3532
+ "path": "components/ui/resizable-split/resizable-split.module.css",
3533
+ "type": "registry:ui",
3534
+ "content": "/* ResizableSplit: two panes side by side and a draggable divider between them. */\n.root {\n display: flex;\n width: 100%;\n min-height: 0;\n}\n\n.pane {\n min-height: 0;\n}\n\n/* While dragging, the panes stop taking the pointer, so an iframe under it\n cannot swallow the moves, and nothing gets selected. */\n.root[data-dragging] {\n cursor: col-resize;\n user-select: none;\n}\n\n.root[data-dragging] > .pane {\n pointer-events: none;\n}\n\n/* The hit area is wider than the line it draws. */\n.divider {\n position: relative;\n flex: none;\n width: var(--spacing-2, 0.5rem);\n cursor: col-resize;\n touch-action: none;\n outline: none;\n}\n\n.divider::before {\n content: \"\";\n position: absolute;\n inset-block: 0;\n left: 50%;\n width: var(--stroke-width-thin, 1px);\n transform: translateX(-50%);\n background-color: var(--resizable-split-divider-color, var(--border-default, #e5e7eb));\n transition: background-color var(--motion-duration-fast, 150ms) var(--motion-easing-default, ease-in-out);\n}\n\n.divider:hover::before {\n background-color: var(--resizable-split-divider-hover-color, var(--border-strong, #d1d5db));\n}\n\n.root[data-dragging] > .divider::before {\n background-color: var(--resizable-split-divider-active-color, var(--interactive-primary-bg, #111827));\n}\n\n.divider:focus-visible {\n outline: var(--focus-ring-width, 2px) solid var(--border-focus, #111827);\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .divider::before {\n transition: none;\n }\n}\n"
3535
+ }
3536
+ ]
3537
+ },
3514
3538
  {
3515
3539
  "name": "container",
3516
3540
  "type": "registry:ui",
@@ -4301,12 +4325,12 @@
4301
4325
  {
4302
4326
  "path": "blocks/admin-shell/admin-shell.tsx",
4303
4327
  "type": "registry:block",
4304
- "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport styles from \"./admin-shell.module.css\"\n\nexport interface AdminShellProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Branding slot at the top of the sidebar (logo, wordmark, product switcher). */\n logo?: React.ReactNode\n /** Navigation content rendered in the sidebar body. Consumer provides their own link list. */\n sidebarNav: React.ReactNode\n /** Bottom-of-sidebar slot (user menu, logout, theme toggle, etc.). */\n sidebarFooter?: React.ReactNode\n /** Sidebar width. Number is treated as pixels; strings pass through. Default 256. */\n sidebarWidth?: number | string\n\n /**\n * When true, the sidebar folds to an icon rail and back, from a button beside\n * the logo or the `collapseShortcut` key. The shell and its sidebar carry\n * `data-collapsed`, so a slot can hide its labels. Desk only: below 48rem the\n * sidebar stays open and the button is not drawn. Default false.\n */\n collapsible?: boolean\n /** Uncontrolled initial state, used when nothing is remembered. Default false. */\n defaultCollapsed?: boolean\n /** Controlled state. Pair with `onCollapsedChange`. */\n collapsed?: boolean\n /** Called with the next state when the button or the key folds or opens the sidebar. */\n onCollapsedChange?: (collapsed: boolean) => void\n /** Key pressed with ⌘ (Ctrl off a Mac) that folds and opens the sidebar. `false` turns it off. Default \"\\\\\". */\n collapseShortcut?: string | false\n /** localStorage key that remembers the state per browser. Omit to remember nothing. */\n storageKey?: string\n\n /** Breadcrumb component instance rendered at the start of the topbar. */\n breadcrumb?: React.ReactNode\n /** Left side of the topbar, after the breadcrumb. */\n topbarStart?: React.ReactNode\n /** Center slot (status indicators, search, realtime signals). */\n topbarCenter?: React.ReactNode\n /** Right side of the topbar (user menu, theme toggle, quick actions). */\n topbarEnd?: React.ReactNode\n /** When true, the topbar is not rendered. Default false. */\n hideTopbar?: boolean\n\n /** Main content. */\n children: React.ReactNode\n /** Optional max-width for the main content area. Number is treated as pixels. */\n mainMaxWidth?: number | string\n /** Padding scale applied to the main content area. Default \"lg\". */\n mainPadding?: \"none\" | \"sm\" | \"md\" | \"lg\"\n}\n\n// The rail is desk-only; this matches the shell's narrow container query.\nconst NARROW_QUERY = \"(max-width: 48rem)\"\n\nfunction subscribeNarrow(callback: () => void) {\n const mql = window.matchMedia(NARROW_QUERY)\n mql.addEventListener(\"change\", callback)\n return () => mql.removeEventListener(\"change\", callback)\n}\n\nconst getNarrow = () => window.matchMedia(NARROW_QUERY).matches\nconst getFalse = () => false\n\nfunction subscribeStorage(callback: () => void) {\n window.addEventListener(\"storage\", callback)\n return () => window.removeEventListener(\"storage\", callback)\n}\n\n// A private window or blocked storage throws; the shell then just opens expanded.\nfunction readStored(key: string | undefined): boolean | null {\n if (!key) return null\n try {\n const value = window.localStorage.getItem(key)\n return value === \"rail\" ? true : value === \"open\" ? false : null\n } catch {\n return null\n }\n}\n\nfunction writeStored(key: string | undefined, collapsed: boolean) {\n if (!key) return\n try {\n window.localStorage.setItem(key, collapsed ? \"rail\" : \"open\")\n } catch {\n // Not remembered in a private window.\n }\n}\n\nfunction resolveSize(value: number | string | undefined, fallback: string): string {\n if (value == null) return fallback\n return typeof value === \"number\" ? `${value}px` : value\n}\n\nexport function AdminShell({\n logo,\n sidebarNav,\n sidebarFooter,\n sidebarWidth = 256,\n collapsible = false,\n defaultCollapsed = false,\n collapsed: collapsedProp,\n onCollapsedChange,\n collapseShortcut = \"\\\\\",\n storageKey,\n breadcrumb,\n topbarStart,\n topbarCenter,\n topbarEnd,\n hideTopbar = false,\n children,\n mainMaxWidth,\n mainPadding = \"lg\",\n className,\n style,\n ...props\n}: AdminShellProps) {\n const narrow = React.useSyncExternalStore(subscribeNarrow, getNarrow, getFalse)\n const stored = React.useSyncExternalStore(\n subscribeStorage,\n () => readStored(storageKey),\n () => null\n )\n const [localCollapsed, setLocalCollapsed] = React.useState<boolean | null>(null)\n // Only a toggle animates; restoring the remembered state on load does not.\n const [animate, setAnimate] = React.useState(false)\n const sidebarId = React.useId()\n\n const isCollapsed = collapsedProp ?? localCollapsed ?? stored ?? defaultCollapsed\n const canFold = collapsible && !narrow\n const railed = canFold && isCollapsed\n\n const toggle = React.useCallback(() => {\n const next = !isCollapsed\n setAnimate(true)\n if (collapsedProp === undefined) setLocalCollapsed(next)\n writeStored(storageKey, next)\n onCollapsedChange?.(next)\n }, [isCollapsed, collapsedProp, storageKey, onCollapsedChange])\n\n React.useEffect(() => {\n if (!canFold || collapseShortcut === false) return\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === collapseShortcut && (event.metaKey || event.ctrlKey) && !event.altKey) {\n event.preventDefault()\n toggle()\n }\n }\n window.addEventListener(\"keydown\", onKeyDown)\n return () => window.removeEventListener(\"keydown\", onKeyDown)\n }, [canFold, collapseShortcut, toggle])\n\n const collapsedAttr = collapsible ? String(railed) : undefined\n const toggleLabel = railed ? \"Expand the sidebar\" : \"Collapse the sidebar\"\n\n const resolvedSidebarWidth = resolveSize(sidebarWidth, \"16rem\")\n const resolvedMaxWidth = resolveSize(mainMaxWidth, \"none\")\n\n const shellStyle = {\n ...style,\n [\"--admin-shell-sidebar-width\" as string]: resolvedSidebarWidth,\n [\"--admin-shell-main-max-width\" as string]: resolvedMaxWidth,\n } as React.CSSProperties\n\n return (\n <div\n className={cn(styles.root, className)}\n style={shellStyle}\n data-slot=\"admin-shell\"\n data-collapsed={collapsedAttr}\n data-animate={animate ? \"\" : undefined}\n {...props}\n >\n <a href=\"#admin-main-content\" className={styles.skipLink}>\n Skip to main content\n </a>\n\n <aside\n id={sidebarId}\n className={styles.sidebar}\n data-slot=\"admin-shell-sidebar\"\n data-collapsed={collapsedAttr}\n aria-label=\"Primary navigation\"\n >\n {logo || canFold ? (\n <div className={styles.sidebarHeader} data-slot=\"admin-shell-sidebar-header\">\n {logo}\n {canFold ? (\n <button\n type=\"button\"\n className={styles.collapseButton}\n data-slot=\"admin-shell-collapse\"\n aria-expanded={!railed}\n aria-controls={sidebarId}\n aria-label={toggleLabel}\n aria-keyshortcuts={\n collapseShortcut === false\n ? undefined\n : `Meta+${collapseShortcut} Control+${collapseShortcut}`\n }\n title={toggleLabel}\n onClick={toggle}\n >\n <svg\n viewBox=\"0 0 16 16\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"2\" y=\"2.5\" width=\"12\" height=\"11\" rx=\"2.5\" />\n <path d=\"M6.5 2.5v11M11 6.5 9.5 8l1.5 1.5\" />\n </svg>\n </button>\n ) : null}\n </div>\n ) : null}\n <nav\n className={styles.sidebarNav}\n data-slot=\"admin-shell-sidebar-nav\"\n aria-label=\"Sidebar\"\n >\n {sidebarNav}\n </nav>\n {sidebarFooter ? (\n <div className={styles.sidebarFooter} data-slot=\"admin-shell-sidebar-footer\">\n {sidebarFooter}\n </div>\n ) : null}\n </aside>\n\n <div className={styles.body} data-slot=\"admin-shell-body\">\n {!hideTopbar ? (\n <header\n role=\"banner\"\n className={styles.topbar}\n data-slot=\"admin-shell-topbar\"\n >\n <div className={styles.topbarStart}>\n {breadcrumb}\n {topbarStart}\n </div>\n <div className={styles.topbarCenter}>{topbarCenter}</div>\n <div className={styles.topbarEnd}>{topbarEnd}</div>\n </header>\n ) : null}\n\n <main\n id=\"admin-main-content\"\n role=\"main\"\n className={styles.main}\n data-slot=\"admin-shell-main\"\n data-padding={mainPadding}\n tabIndex={-1}\n >\n <div className={styles.mainInner}>{children}</div>\n </main>\n </div>\n </div>\n )\n}\n"
4328
+ "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\nimport styles from \"./admin-shell.module.css\"\n\nexport interface AdminShellProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Branding slot at the top of the sidebar (logo, wordmark, product switcher). */\n logo?: React.ReactNode\n /** Navigation content rendered in the sidebar body. Consumer provides their own link list. */\n sidebarNav: React.ReactNode\n /** Bottom-of-sidebar slot (user menu, logout, theme toggle, etc.). */\n sidebarFooter?: React.ReactNode\n /** Sidebar width. Number is treated as pixels; strings pass through. Default 256. */\n sidebarWidth?: number | string\n\n /**\n * When true, the sidebar folds to an icon rail and back, from a button beside\n * the logo or the `collapseShortcut` key. The shell and its sidebar carry\n * `data-collapsed`, so a slot can hide its labels. Desk only: below 48rem the\n * sidebar stays open and the button is not drawn. Default false.\n */\n collapsible?: boolean\n /** Uncontrolled initial state, used when nothing is remembered. Default false. */\n defaultCollapsed?: boolean\n /** Controlled state. Pair with `onCollapsedChange`. */\n collapsed?: boolean\n /** Called with the next state when the button or the key folds or opens the sidebar. */\n onCollapsedChange?: (collapsed: boolean) => void\n /** Key pressed with ⌘ (Ctrl off a Mac) that folds and opens the sidebar. `false` turns it off. Default \"\\\\\". */\n collapseShortcut?: string | false\n /** localStorage key that remembers the state per browser. Omit to remember nothing. */\n storageKey?: string\n\n /** Breadcrumb component instance rendered at the start of the topbar. */\n breadcrumb?: React.ReactNode\n /** Left side of the topbar, after the breadcrumb. */\n topbarStart?: React.ReactNode\n /** Center slot (status indicators, search, realtime signals). */\n topbarCenter?: React.ReactNode\n /** Right side of the topbar (user menu, theme toggle, quick actions). */\n topbarEnd?: React.ReactNode\n /** When true, the topbar is not rendered. Below 48rem a bar holding just the menu button still is. Default false. */\n hideTopbar?: boolean\n\n /** Main content. */\n children: React.ReactNode\n /** Optional max-width for the main content area. Number is treated as pixels. */\n mainMaxWidth?: number | string\n /** Padding scale applied to the main content area. Default \"lg\". */\n mainPadding?: \"none\" | \"sm\" | \"md\" | \"lg\"\n}\n\n// The rail is desk-only; this matches the shell's narrow container query.\nconst NARROW_QUERY = \"(max-width: 48rem)\"\n\nfunction subscribeNarrow(callback: () => void) {\n const mql = window.matchMedia(NARROW_QUERY)\n mql.addEventListener(\"change\", callback)\n return () => mql.removeEventListener(\"change\", callback)\n}\n\nconst getNarrow = () => window.matchMedia(NARROW_QUERY).matches\nconst getFalse = () => false\n\nfunction subscribeStorage(callback: () => void) {\n window.addEventListener(\"storage\", callback)\n return () => window.removeEventListener(\"storage\", callback)\n}\n\n// A private window or blocked storage throws; the shell then just opens expanded.\nfunction readStored(key: string | undefined): boolean | null {\n if (!key) return null\n try {\n const value = window.localStorage.getItem(key)\n return value === \"rail\" ? true : value === \"open\" ? false : null\n } catch {\n return null\n }\n}\n\nfunction writeStored(key: string | undefined, collapsed: boolean) {\n if (!key) return\n try {\n window.localStorage.setItem(key, collapsed ? \"rail\" : \"open\")\n } catch {\n // Not remembered in a private window.\n }\n}\n\nconst FOCUSABLE =\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), details > summary'\n\nfunction focusables(container: HTMLElement): HTMLElement[] {\n return Array.from(container.querySelectorAll<HTMLElement>(FOCUSABLE)).filter((el) => {\n const css = getComputedStyle(el)\n return css.display !== \"none\" && css.visibility !== \"hidden\"\n })\n}\n\nfunction resolveSize(value: number | string | undefined, fallback: string): string {\n if (value == null) return fallback\n return typeof value === \"number\" ? `${value}px` : value\n}\n\nexport function AdminShell({\n logo,\n sidebarNav,\n sidebarFooter,\n sidebarWidth = 256,\n collapsible = false,\n defaultCollapsed = false,\n collapsed: collapsedProp,\n onCollapsedChange,\n collapseShortcut = \"\\\\\",\n storageKey,\n breadcrumb,\n topbarStart,\n topbarCenter,\n topbarEnd,\n hideTopbar = false,\n children,\n mainMaxWidth,\n mainPadding = \"lg\",\n className,\n style,\n ...props\n}: AdminShellProps) {\n const narrow = React.useSyncExternalStore(subscribeNarrow, getNarrow, getFalse)\n const stored = React.useSyncExternalStore(\n subscribeStorage,\n () => readStored(storageKey),\n () => null\n )\n const [localCollapsed, setLocalCollapsed] = React.useState<boolean | null>(null)\n // Only a toggle animates; restoring the remembered state on load does not.\n const [animate, setAnimate] = React.useState(false)\n const sidebarId = React.useId()\n // Below 48rem the sidebar is a sheet behind the topbar's menu button (VI-781).\n const [sheetOpen, setSheetOpen] = React.useState(false)\n const sidebarRef = React.useRef<HTMLElement>(null)\n const menuRef = React.useRef<HTMLButtonElement>(null)\n // Widening past the phone breakpoint closes the sheet.\n if (sheetOpen && !narrow) setSheetOpen(false)\n\n const isCollapsed = collapsedProp ?? localCollapsed ?? stored ?? defaultCollapsed\n const canFold = collapsible && !narrow\n const railed = canFold && isCollapsed\n\n const toggle = React.useCallback(() => {\n const next = !isCollapsed\n setAnimate(true)\n if (collapsedProp === undefined) setLocalCollapsed(next)\n writeStored(storageKey, next)\n onCollapsedChange?.(next)\n }, [isCollapsed, collapsedProp, storageKey, onCollapsedChange])\n\n React.useEffect(() => {\n if (!canFold || collapseShortcut === false) return\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === collapseShortcut && (event.metaKey || event.ctrlKey) && !event.altKey) {\n event.preventDefault()\n toggle()\n }\n }\n window.addEventListener(\"keydown\", onKeyDown)\n return () => window.removeEventListener(\"keydown\", onKeyDown)\n }, [canFold, collapseShortcut, toggle])\n\n React.useEffect(() => {\n const sheet = sidebarRef.current\n if (!sheetOpen || !sheet) return\n const menu = menuRef.current\n const html = document.documentElement\n const overflow = html.style.overflow\n html.style.overflow = \"hidden\"\n focusables(sheet)[0]?.focus()\n\n const onKeyDown = (event: KeyboardEvent) => {\n // A menu open inside the sheet (Radix marks its Esc handled) closes first.\n if (event.key === \"Escape\" && !event.defaultPrevented) {\n event.preventDefault()\n setSheetOpen(false)\n return\n }\n if (event.key !== \"Tab\") return\n const items = focusables(sheet)\n if (items.length === 0) return\n const active = document.activeElement\n const edge = event.shiftKey ? items[0] : items[items.length - 1]\n if (active === edge || !sheet.contains(active)) {\n event.preventDefault()\n ;(event.shiftKey ? items[items.length - 1] : items[0]).focus()\n }\n }\n document.addEventListener(\"keydown\", onKeyDown)\n return () => {\n document.removeEventListener(\"keydown\", onKeyDown)\n html.style.overflow = overflow\n menu?.focus()\n }\n }, [sheetOpen])\n\n const closeOnLink = (event: React.MouseEvent) => {\n if ((event.target as Element).closest(\"a[href]\")) setSheetOpen(false)\n }\n\n const menuButton = (\n <button\n ref={menuRef}\n type=\"button\"\n className={styles.menuButton}\n data-slot=\"admin-shell-menu\"\n aria-label=\"Menu\"\n aria-expanded={sheetOpen}\n aria-controls={sidebarId}\n onClick={() => setSheetOpen(true)}\n >\n <svg\n viewBox=\"0 0 16 16\"\n width=\"20\"\n height=\"20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M2.5 4h11M2.5 8h11M2.5 12h11\" />\n </svg>\n </button>\n )\n\n const collapsedAttr = collapsible ? String(railed) : undefined\n const toggleLabel = railed ? \"Expand the sidebar\" : \"Collapse the sidebar\"\n\n const resolvedSidebarWidth = resolveSize(sidebarWidth, \"16rem\")\n const resolvedMaxWidth = resolveSize(mainMaxWidth, \"none\")\n\n const shellStyle = {\n ...style,\n [\"--admin-shell-sidebar-width\" as string]: resolvedSidebarWidth,\n [\"--admin-shell-main-max-width\" as string]: resolvedMaxWidth,\n } as React.CSSProperties\n\n return (\n <div\n className={cn(styles.root, className)}\n style={shellStyle}\n data-slot=\"admin-shell\"\n data-collapsed={collapsedAttr}\n data-animate={animate ? \"\" : undefined}\n {...props}\n >\n <a href=\"#admin-main-content\" className={styles.skipLink} inert={sheetOpen}>\n Skip to main content\n </a>\n\n {sheetOpen ? (\n <div\n className={styles.scrim}\n data-slot=\"admin-shell-scrim\"\n aria-hidden=\"true\"\n onClick={() => setSheetOpen(false)}\n />\n ) : null}\n\n <aside\n ref={sidebarRef}\n id={sidebarId}\n className={styles.sidebar}\n data-slot=\"admin-shell-sidebar\"\n data-collapsed={collapsedAttr}\n data-sheet={sheetOpen ? \"open\" : undefined}\n aria-label=\"Primary navigation\"\n onClick={sheetOpen ? closeOnLink : undefined}\n >\n {logo || canFold ? (\n <div className={styles.sidebarHeader} data-slot=\"admin-shell-sidebar-header\">\n {logo}\n {canFold ? (\n <button\n type=\"button\"\n className={styles.collapseButton}\n data-slot=\"admin-shell-collapse\"\n aria-expanded={!railed}\n aria-controls={sidebarId}\n aria-label={toggleLabel}\n aria-keyshortcuts={\n collapseShortcut === false\n ? undefined\n : `Meta+${collapseShortcut} Control+${collapseShortcut}`\n }\n title={toggleLabel}\n onClick={toggle}\n >\n <svg\n viewBox=\"0 0 16 16\"\n width=\"16\"\n height=\"16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"2\" y=\"2.5\" width=\"12\" height=\"11\" rx=\"2.5\" />\n <path d=\"M6.5 2.5v11M11 6.5 9.5 8l1.5 1.5\" />\n </svg>\n </button>\n ) : null}\n </div>\n ) : null}\n <nav\n className={styles.sidebarNav}\n data-slot=\"admin-shell-sidebar-nav\"\n aria-label=\"Sidebar\"\n >\n {sidebarNav}\n </nav>\n {sidebarFooter ? (\n <div className={styles.sidebarFooter} data-slot=\"admin-shell-sidebar-footer\">\n {sidebarFooter}\n </div>\n ) : null}\n </aside>\n\n <div className={styles.body} data-slot=\"admin-shell-body\" inert={sheetOpen}>\n {hideTopbar ? (\n <header\n role=\"banner\"\n className={cn(styles.topbar, styles.menuBar)}\n data-slot=\"admin-shell-menu-bar\"\n >\n {menuButton}\n </header>\n ) : (\n <header\n role=\"banner\"\n className={styles.topbar}\n data-slot=\"admin-shell-topbar\"\n >\n <div className={styles.topbarStart}>\n {menuButton}\n {breadcrumb}\n {topbarStart}\n </div>\n <div className={styles.topbarCenter}>{topbarCenter}</div>\n <div className={styles.topbarEnd}>{topbarEnd}</div>\n </header>\n )}\n\n <main\n id=\"admin-main-content\"\n role=\"main\"\n className={styles.main}\n data-slot=\"admin-shell-main\"\n data-padding={mainPadding}\n tabIndex={-1}\n >\n <div className={styles.mainInner}>{children}</div>\n </main>\n </div>\n </div>\n )\n}\n"
4305
4329
  },
4306
4330
  {
4307
4331
  "path": "blocks/admin-shell/admin-shell.module.css",
4308
4332
  "type": "registry:block",
4309
- "content": ".root {\n display: flex;\n min-height: 100vh;\n width: 100%;\n background: var(--surface-page, #f9fafb);\n color: var(--text-primary, #111827);\n container-type: inline-size;\n}\n\n/* Accessibility: skip link — visible only on keyboard focus */\n.skipLink {\n position: absolute;\n top: var(--spacing-2, 0.5rem);\n left: var(--spacing-2, 0.5rem);\n z-index: 100;\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n background: var(--surface-card, #ffffff);\n color: var(--text-primary, #111827);\n border: 1px solid var(--border-default, #e5e7eb);\n border-radius: var(--radius-md, 0.5rem);\n box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: 500;\n text-decoration: none;\n transform: translateY(-150%);\n transition:\n transform var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n.skipLink:focus-visible {\n transform: translateY(0);\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n/* Sidebar */\n.sidebar {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n width: var(--admin-shell-sidebar-width, 16rem);\n min-height: 100vh;\n background: var(--surface-card, #ffffff);\n border-right: var(--admin-shell-sidebar-border, 1px solid var(--border-default, #e5e7eb));\n position: sticky;\n top: 0;\n max-height: 100vh;\n}\n\n.sidebarHeader {\n display: flex;\n align-items: center;\n padding: var(--spacing-4, 1rem) var(--spacing-5, 1.25rem);\n border-bottom: var(--admin-shell-sidebar-header-border, 1px solid var(--border-muted, #e5e7eb));\n min-height: 3.5rem;\n flex-shrink: 0;\n}\n\n.sidebarNav {\n flex: 1 1 auto;\n overflow-y: auto;\n padding: var(--spacing-4, 1rem) var(--spacing-3, 0.75rem);\n display: flex;\n flex-direction: column;\n gap: var(--spacing-1, 0.25rem);\n}\n\n.sidebarFooter {\n flex-shrink: 0;\n padding: var(--spacing-3, 0.75rem) var(--spacing-4, 1rem);\n border-top: var(--admin-shell-sidebar-footer-border, 1px solid var(--border-muted, #e5e7eb));\n}\n\n/* Collapsible: the sidebar folds to an icon rail (VI-770) */\n.sidebar[data-collapsed] {\n overflow-x: clip;\n}\n\n.root[data-animate] .sidebar {\n transition: width var(--admin-shell-rail-duration, var(--motion-duration-slow, 500ms))\n var(--admin-shell-rail-easing, var(--motion-easing-default, ease));\n}\n\n.sidebar[data-collapsed=\"true\"] {\n width: var(--admin-shell-rail-width, 4.25rem);\n}\n\n.collapseButton {\n display: inline-grid;\n place-items: center;\n flex: none;\n width: var(--spacing-8, 2rem);\n height: var(--spacing-8, 2rem);\n margin-left: auto;\n padding: 0;\n border: 0;\n border-radius: var(--radius-sm, 0.375rem);\n background: transparent;\n color: var(--text-secondary, #4b5563);\n cursor: pointer;\n}\n\n.collapseButton:hover {\n background: var(--interactive-ghost-bg-hover, var(--surface-muted, #f3f4f6));\n color: var(--text-primary, #111827);\n}\n\n.collapseButton:focus-visible {\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n.collapseButton svg {\n transition: transform var(--admin-shell-rail-duration, var(--motion-duration-slow, 500ms))\n var(--admin-shell-rail-easing, var(--motion-easing-default, ease));\n}\n\n.sidebar[data-collapsed=\"true\"] .collapseButton {\n margin-left: 0;\n}\n\n.sidebar[data-collapsed=\"true\"] .collapseButton svg {\n transform: scaleX(-1);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarHeader {\n flex-direction: column;\n gap: var(--spacing-2, 0.5rem);\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarNav {\n align-items: center;\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarFooter {\n display: flex;\n justify-content: center;\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n/* A slot marks its labels; the rail hides them visually and keeps them as accessible names. */\n.sidebar[data-collapsed=\"true\"] [data-admin-shell-label] {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .root[data-animate] .sidebar,\n .collapseButton svg {\n transition: none;\n }\n}\n\n/* Body = topbar + main */\n.body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-width: 0;\n min-height: 100vh;\n}\n\n/* Topbar */\n.topbar {\n display: flex;\n align-items: center;\n gap: var(--spacing-4, 1rem);\n padding: var(--spacing-3, 0.75rem) var(--spacing-6, 1.5rem);\n min-height: 3.5rem;\n background: var(--admin-shell-topbar-bg, var(--surface-card, #ffffff));\n border-bottom: var(--admin-shell-topbar-border, 1px solid var(--border-default, #e5e7eb));\n position: sticky;\n top: 0;\n z-index: 10;\n}\n\n.topbarStart {\n display: flex;\n align-items: center;\n gap: var(--spacing-3, 0.75rem);\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.topbarCenter {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-3, 0.75rem);\n flex: 0 1 auto;\n}\n\n.topbarEnd {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--spacing-2, 0.5rem);\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Main */\n.main {\n flex: 1 1 auto;\n overflow-y: auto;\n min-width: 0;\n outline: none;\n}\n\n.main:focus-visible {\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: calc(var(--focus-ring-offset, 2px) * -1);\n}\n\n.main[data-padding=\"none\"] .mainInner {\n padding: 0;\n}\n\n.main[data-padding=\"sm\"] .mainInner {\n padding: var(--spacing-4, 1rem);\n}\n\n.main[data-padding=\"md\"] .mainInner {\n padding: var(--spacing-6, 1.5rem);\n}\n\n.main[data-padding=\"lg\"] .mainInner {\n padding: var(--spacing-8, 2rem);\n}\n\n.mainInner {\n width: 100%;\n max-width: var(--admin-shell-main-max-width, none);\n margin: 0 auto;\n}\n\n/* Responsive: collapse sidebar on narrow containers */\n@container (max-width: 48rem) {\n .topbar {\n padding-left: var(--spacing-4, 1rem);\n padding-right: var(--spacing-4, 1rem);\n }\n\n .main[data-padding=\"lg\"] .mainInner {\n padding: var(--spacing-5, 1.25rem);\n }\n\n .main[data-padding=\"md\"] .mainInner {\n padding: var(--spacing-4, 1rem);\n }\n}\n"
4333
+ "content": ".root {\n display: flex;\n min-height: 100vh;\n width: 100%;\n background: var(--surface-page, #f9fafb);\n color: var(--text-primary, #111827);\n container-type: inline-size;\n}\n\n/* Accessibility: skip link — visible only on keyboard focus */\n.skipLink {\n position: absolute;\n top: var(--spacing-2, 0.5rem);\n left: var(--spacing-2, 0.5rem);\n z-index: 100;\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n background: var(--surface-card, #ffffff);\n color: var(--text-primary, #111827);\n border: 1px solid var(--border-default, #e5e7eb);\n border-radius: var(--radius-md, 0.5rem);\n box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: 500;\n text-decoration: none;\n transform: translateY(-150%);\n transition:\n transform var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n.skipLink:focus-visible {\n transform: translateY(0);\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n/* Sidebar */\n.sidebar {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n width: var(--admin-shell-sidebar-width, 16rem);\n min-height: 100vh;\n background: var(--surface-card, #ffffff);\n border-right: var(--admin-shell-sidebar-border, 1px solid var(--border-default, #e5e7eb));\n position: sticky;\n top: 0;\n max-height: 100vh;\n}\n\n.sidebarHeader {\n display: flex;\n align-items: center;\n padding: var(--spacing-4, 1rem) var(--spacing-5, 1.25rem);\n border-bottom: var(--admin-shell-sidebar-header-border, 1px solid var(--border-muted, #e5e7eb));\n min-height: 3.5rem;\n flex-shrink: 0;\n}\n\n.sidebarNav {\n flex: 1 1 auto;\n overflow-y: auto;\n padding: var(--spacing-4, 1rem) var(--spacing-3, 0.75rem);\n display: flex;\n flex-direction: column;\n gap: var(--spacing-1, 0.25rem);\n}\n\n.sidebarFooter {\n flex-shrink: 0;\n padding: var(--spacing-3, 0.75rem) var(--spacing-4, 1rem);\n border-top: var(--admin-shell-sidebar-footer-border, 1px solid var(--border-muted, #e5e7eb));\n}\n\n/* Collapsible: the sidebar folds to an icon rail (VI-770) */\n.sidebar[data-collapsed] {\n overflow-x: clip;\n}\n\n.root[data-animate] .sidebar {\n transition: width var(--admin-shell-rail-duration, var(--motion-duration-slow, 500ms))\n var(--admin-shell-rail-easing, var(--motion-easing-default, ease));\n}\n\n.sidebar[data-collapsed=\"true\"] {\n width: var(--admin-shell-rail-width, 4.25rem);\n}\n\n.collapseButton {\n display: inline-grid;\n place-items: center;\n flex: none;\n width: var(--spacing-8, 2rem);\n height: var(--spacing-8, 2rem);\n margin-left: auto;\n padding: 0;\n border: 0;\n border-radius: var(--radius-sm, 0.375rem);\n background: transparent;\n color: var(--text-secondary, #4b5563);\n cursor: pointer;\n}\n\n.collapseButton:hover {\n background: var(--interactive-ghost-bg-hover, var(--surface-muted, #f3f4f6));\n color: var(--text-primary, #111827);\n}\n\n.collapseButton:focus-visible {\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n.collapseButton svg {\n transition: transform var(--admin-shell-rail-duration, var(--motion-duration-slow, 500ms))\n var(--admin-shell-rail-easing, var(--motion-easing-default, ease));\n}\n\n.sidebar[data-collapsed=\"true\"] .collapseButton {\n margin-left: 0;\n}\n\n.sidebar[data-collapsed=\"true\"] .collapseButton svg {\n transform: scaleX(-1);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarHeader {\n flex-direction: column;\n gap: var(--spacing-2, 0.5rem);\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarNav {\n align-items: center;\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n.sidebar[data-collapsed=\"true\"] .sidebarFooter {\n display: flex;\n justify-content: center;\n padding-left: var(--spacing-2, 0.5rem);\n padding-right: var(--spacing-2, 0.5rem);\n}\n\n/* A slot marks its labels; the rail hides them visually and keeps them as accessible names. */\n.sidebar[data-collapsed=\"true\"] [data-admin-shell-label] {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .root[data-animate] .sidebar,\n .collapseButton svg {\n transition: none;\n }\n}\n\n/* Body = topbar + main */\n.body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-width: 0;\n min-height: 100vh;\n}\n\n/* Topbar */\n.topbar {\n display: flex;\n align-items: center;\n gap: var(--spacing-4, 1rem);\n padding: var(--spacing-3, 0.75rem) var(--spacing-6, 1.5rem);\n min-height: 3.5rem;\n background: var(--admin-shell-topbar-bg, var(--surface-card, #ffffff));\n border-bottom: var(--admin-shell-topbar-border, 1px solid var(--border-default, #e5e7eb));\n position: sticky;\n top: 0;\n z-index: 10;\n}\n\n.topbarStart {\n display: flex;\n align-items: center;\n gap: var(--spacing-3, 0.75rem);\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.topbarCenter {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-3, 0.75rem);\n flex: 0 1 auto;\n}\n\n.topbarEnd {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: var(--spacing-2, 0.5rem);\n flex: 1 1 auto;\n min-width: 0;\n}\n\n/* Phone: the sidebar is a sheet behind the topbar's menu button (VI-781). */\n.menuButton {\n display: none;\n}\n\n/* With hideTopbar, the bar holding only the menu button exists on a phone alone. */\n.menuBar {\n display: none;\n}\n\n.scrim {\n display: none;\n}\n\n@media (max-width: 48rem) {\n .menuBar {\n display: flex;\n }\n\n .menuButton {\n display: inline-grid;\n place-items: center;\n flex: none;\n /* 44px touch target (WCAG 2.5.5). */\n width: 2.75rem;\n height: 2.75rem;\n /* The icon lines up with the page gutter; the 44px target overhangs it. */\n margin-left: calc(var(--spacing-3, 0.75rem) * -1);\n padding: 0;\n border: 0;\n border-radius: var(--radius-md, 0.5rem);\n background: transparent;\n color: var(--text-primary, #111827);\n cursor: pointer;\n }\n\n .menuButton:hover {\n background: var(--interactive-ghost-bg-hover, var(--surface-muted, #f3f4f6));\n }\n\n .menuButton:focus-visible {\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: calc(var(--focus-ring-offset, 2px) * -1);\n }\n\n .root .sidebar,\n .root[data-animate] .sidebar {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n z-index: var(--z-modal, 1300);\n width: min(var(--admin-shell-sidebar-width, 16rem), calc(100% - var(--spacing-12, 3rem)));\n min-height: 0;\n max-height: none;\n box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));\n transform: translateX(-100%);\n visibility: hidden;\n transition:\n transform var(--motion-duration-normal, 200ms) var(--motion-easing-exit, ease-in),\n visibility 0s linear var(--motion-duration-normal, 200ms);\n }\n\n .root .sidebar[data-sheet=\"open\"] {\n transform: none;\n visibility: visible;\n transition: transform var(--motion-duration-normal, 200ms) var(--motion-easing-enter, ease-out);\n }\n\n .scrim {\n display: block;\n position: fixed;\n inset: 0;\n z-index: var(--z-modal, 1300);\n background: var(--overlay-bg, rgba(0, 0, 0, 0.5));\n backdrop-filter: blur(4px);\n -webkit-backdrop-filter: blur(4px);\n animation: admin-shell-scrim-in var(--motion-duration-normal, 200ms)\n var(--motion-easing-enter, ease-out);\n }\n}\n\n@keyframes admin-shell-scrim-in {\n from {\n opacity: 0;\n }\n}\n\n@media (max-width: 48rem) and (prefers-reduced-motion: reduce) {\n .root .sidebar,\n .root[data-animate] .sidebar,\n .root .sidebar[data-sheet=\"open\"] {\n transition: none;\n }\n\n .scrim {\n animation: none;\n }\n}\n\n/* Main */\n.main {\n flex: 1 1 auto;\n overflow-y: auto;\n min-width: 0;\n outline: none;\n}\n\n.main:focus-visible {\n outline: var(--focus-ring-width, 2px) solid\n var(--focus-ring-color, var(--primary, #3b82f6));\n outline-offset: calc(var(--focus-ring-offset, 2px) * -1);\n}\n\n.main[data-padding=\"none\"] .mainInner {\n padding: 0;\n}\n\n.main[data-padding=\"sm\"] .mainInner {\n padding: var(--spacing-4, 1rem);\n}\n\n.main[data-padding=\"md\"] .mainInner {\n padding: var(--spacing-6, 1.5rem);\n}\n\n.main[data-padding=\"lg\"] .mainInner {\n padding: var(--spacing-8, 2rem);\n}\n\n.mainInner {\n width: 100%;\n max-width: var(--admin-shell-main-max-width, none);\n margin: 0 auto;\n}\n\n/* Responsive: collapse sidebar on narrow containers */\n@container (max-width: 48rem) {\n .topbar {\n padding-left: var(--spacing-4, 1rem);\n padding-right: var(--spacing-4, 1rem);\n }\n\n .main[data-padding=\"lg\"] .mainInner {\n padding: var(--spacing-5, 1.25rem);\n }\n\n .main[data-padding=\"md\"] .mainInner {\n padding: var(--spacing-4, 1rem);\n }\n}\n"
4310
4334
  }
4311
4335
  ]
4312
4336
  },
@@ -5563,7 +5587,7 @@
5563
5587
  {
5564
5588
  "path": "components/devtools/source-inspector/visor-component-names.generated.ts",
5565
5589
  "type": "registry:devtool",
5566
- "content": "// THIS FILE IS GENERATED BY scripts/generate-visor-component-names.ts.\n// Do not edit by hand. Re-run `npm run generate:component-names` after\n// adding, removing, or renaming a Visor component.\n//\n// Source of truth: registry/registry-{ui,blocks,deck,visual,devtools}.ts\n// Used by: components/devtools/source-inspector/* (VI-311)\n\nexport const VISOR_COMPONENT_NAMES: ReadonlySet<string> = new Set([\n \"AccessibilitySection\",\n \"AccessibilitySlide\",\n \"AccessibilitySpecimen\",\n \"Accordion\",\n \"AccordionContent\",\n \"AccordionItem\",\n \"AccordionTrigger\",\n \"ActionRow\",\n \"ActionRowList\",\n \"ActivityFeed\",\n \"ActivityFeedContext\",\n \"ActivityFeedItem\",\n \"ActivityFeedRoot\",\n \"AdminDashboard\",\n \"AdminDetail\",\n \"AdminDetailDrawer\",\n \"AdminListPage\",\n \"AdminListPageInner\",\n \"AdminSettingsPage\",\n \"AdminShell\",\n \"AdminTabbedEditor\",\n \"AdminWizard\",\n \"Alert\",\n \"AlertActions\",\n \"AlertDescription\",\n \"AlertLead\",\n \"AlertTitle\",\n \"AmbientGlow\",\n \"Avatar\",\n \"AvatarFallback\",\n \"AvatarImage\",\n \"AvatarStack\",\n \"Badge\",\n \"Banner\",\n \"BannerAction\",\n \"BannerDescription\",\n \"BannerTitle\",\n \"BentoGrid\",\n \"BentoTile\",\n \"BentoTileBody\",\n \"BentoTileDescription\",\n \"BentoTileFigure\",\n \"BentoTileHeadline\",\n \"BentoTileMedia\",\n \"BentoTileMeta\",\n \"BentoTileTitle\",\n \"BillingSlider\",\n \"BottomNav\",\n \"Box\",\n \"Breadcrumb\",\n \"BreadcrumbEllipsis\",\n \"BreadcrumbItem\",\n \"BreadcrumbLink\",\n \"BreadcrumbList\",\n \"BreadcrumbPage\",\n \"BreadcrumbSeparator\",\n \"BrowserFrame\",\n \"BulkActionBar\",\n \"Button\",\n \"ButtonSpecimenSection\",\n \"ButtonSpecimenSlide\",\n \"Calendar\",\n \"Capture\",\n \"Card\",\n \"CardContent\",\n \"CardDescription\",\n \"CardFooter\",\n \"CardGrid\",\n \"CardHeader\",\n \"CardIndicatorContext\",\n \"CardLift\",\n \"CardTitle\",\n \"Carousel\",\n \"CarouselContent\",\n \"CarouselContext\",\n \"CarouselGallery\",\n \"CarouselItem\",\n \"CarouselNext\",\n \"CarouselPrevious\",\n \"ChallengeCard\",\n \"ChallengeCardAction\",\n \"ChallengeCardActions\",\n \"ChallengeCardBody\",\n \"ChallengeCardGate\",\n \"ChallengeCardHeader\",\n \"ChartContainer\",\n \"ChartContext\",\n \"ChartLegend\",\n \"ChartLegendContent\",\n \"ChartStyle\",\n \"ChartTooltip\",\n \"ChartTooltipContent\",\n \"Checkbox\",\n \"CheckGroup\",\n \"CheckRow\",\n \"Chip\",\n \"ChipGroup\",\n \"ChipGroupContext\",\n \"ChipGroupItem\",\n \"ChoiceChip\",\n \"ChromeButton\",\n \"ClosingSlide\",\n \"CodeBlock\",\n \"Collapsible\",\n \"CollapsibleContent\",\n \"CollapsibleTrigger\",\n \"ColorBar\",\n \"ColorPaletteSection\",\n \"ColorPicker\",\n \"ColorPickerSurface\",\n \"ColorSwatch\",\n \"ColorSwatchGrid\",\n \"Column\",\n \"Combobox\",\n \"ComboboxContent\",\n \"ComboboxContext\",\n \"ComboboxEmpty\",\n \"ComboboxGroup\",\n \"ComboboxInput\",\n \"ComboboxItem\",\n \"ComboboxSeparator\",\n \"Command\",\n \"CommandDialog\",\n \"CommandEmpty\",\n \"CommandGroup\",\n \"CommandInput\",\n \"CommandItem\",\n \"CommandList\",\n \"CommandLoading\",\n \"CommandSeparator\",\n \"CommandShortcut\",\n \"ComponentShowcaseContent\",\n \"ComponentShowcaseSection\",\n \"ComponentShowcaseSlide\",\n \"Composer\",\n \"ComposerContext\",\n \"ComposerField\",\n \"ComposerSend\",\n \"ComposerSpacer\",\n \"ComposerToolbar\",\n \"ComposerToolButton\",\n \"ConceptSlide\",\n \"ConfigurationPanel\",\n \"ConfirmDialog\",\n \"ConflictBanner\",\n \"Container\",\n \"ContextMenu\",\n \"ContextMenuCheckboxItem\",\n \"ContextMenuContent\",\n \"ContextMenuGroup\",\n \"ContextMenuItem\",\n \"ContextMenuLabel\",\n \"ContextMenuPortal\",\n \"ContextMenuRadioGroup\",\n \"ContextMenuRadioItem\",\n \"ContextMenuSeparator\",\n \"ContextMenuShortcut\",\n \"ContextMenuSub\",\n \"ContextMenuSubContent\",\n \"ContextMenuSubTrigger\",\n \"ContextMenuTrigger\",\n \"Controls\",\n \"CtaSection\",\n \"DataTable\",\n \"DataTableInner\",\n \"DatePicker\",\n \"DateRangePicker\",\n \"DeckContext\",\n \"DeckFooter\",\n \"DeckLayout\",\n \"DeckProvider\",\n \"DeckRenderer\",\n \"DesignSystemDeck\",\n \"DesignSystemSpecimen\",\n \"Dialog\",\n \"DialogBack\",\n \"DialogClose\",\n \"DialogContent\",\n \"DialogContext\",\n \"DialogDescription\",\n \"DialogField\",\n \"DialogFieldControl\",\n \"DialogFieldLabel\",\n \"DialogFooter\",\n \"DialogForm\",\n \"DialogFormBody\",\n \"DialogFormClose\",\n \"DialogFormContent\",\n \"DialogFormDescription\",\n \"DialogFormFooter\",\n \"DialogFormHeader\",\n \"DialogFormTitle\",\n \"DialogFormTrigger\",\n \"DialogHeader\",\n \"DialogOverlay\",\n \"DialogPortal\",\n \"DialogScrim\",\n \"DialogTitle\",\n \"DialogTrigger\",\n \"DocFrame\",\n \"DocFrameBrand\",\n \"DocNav\",\n \"DocNavGroup\",\n \"DocNavPill\",\n \"DotNav\",\n \"DropdownMenu\",\n \"DropdownMenuCheckboxItem\",\n \"DropdownMenuContent\",\n \"DropdownMenuGroup\",\n \"DropdownMenuItem\",\n \"DropdownMenuLabel\",\n \"DropdownMenuPortal\",\n \"DropdownMenuRadioGroup\",\n \"DropdownMenuRadioItem\",\n \"DropdownMenuSeparator\",\n \"DropdownMenuShortcut\",\n \"DropdownMenuSub\",\n \"DropdownMenuSubContent\",\n \"DropdownMenuSubTrigger\",\n \"DropdownMenuTrigger\",\n \"EditableBlock\",\n \"ElevationCard\",\n \"ElevationSlide\",\n \"EmptyState\",\n \"ErrorPlacard\",\n \"ExportMenu\",\n \"FeaturesGrid\",\n \"FidelityMirror\",\n \"Field\",\n \"FieldDescription\",\n \"FieldError\",\n \"FieldLabel\",\n \"Fieldset\",\n \"FieldsetLegend\",\n \"FileUpload\",\n \"FilterBar\",\n \"FilterChip\",\n \"FontShowcase\",\n \"FontShowcaseGrid\",\n \"Footer\",\n \"FooterSection\",\n \"Form\",\n \"FormError\",\n \"FormErrorDescription\",\n \"FormErrorTitle\",\n \"FormField\",\n \"FormSpecimenSection\",\n \"FormSpecimenSlide\",\n \"FullscreenOverlay\",\n \"FullscreenOverlayContent\",\n \"FullscreenOverlayTrigger\",\n \"GrainOverlay\",\n \"Grid\",\n \"Header\",\n \"Heading\",\n \"HeroGlow\",\n \"HeroSection\",\n \"HeroSlide\",\n \"HoverCard\",\n \"HoverCardContent\",\n \"HoverCardTrigger\",\n \"IconGrid\",\n \"IconGridSection\",\n \"IconSizeRow\",\n \"IconsSlide\",\n \"Image\",\n \"InfographicBar\",\n \"Inline\",\n \"InlineEdit\",\n \"Input\",\n \"KanbanBoard\",\n \"Kbd\",\n \"KeyValueList\",\n \"Label\",\n \"Landing\",\n \"LayerChart\",\n \"Lightbox\",\n \"LightboxContent\",\n \"LightboxContext\",\n \"LightboxTrigger\",\n \"LoginForm\",\n \"Marquee\",\n \"MarqueeBandRenderer\",\n \"MatrixCell\",\n \"MatrixTable\",\n \"MatrixTableInner\",\n \"Menubar\",\n \"MenubarCheckboxItem\",\n \"MenubarContent\",\n \"MenubarGroup\",\n \"MenubarItem\",\n \"MenubarLabel\",\n \"MenubarMenu\",\n \"MenubarRadioGroup\",\n \"MenubarRadioItem\",\n \"MenubarSeparator\",\n \"MenubarShortcut\",\n \"MenubarSub\",\n \"MenubarSubContent\",\n \"MenubarSubTrigger\",\n \"MenubarTrigger\",\n \"Meter\",\n \"MonthCalendar\",\n \"MotionDuration\",\n \"MotionDurationSection\",\n \"MotionEasing\",\n \"MotionEasingSection\",\n \"MotionSlide\",\n \"NameRoster\",\n \"NameRosterItem\",\n \"Navbar\",\n \"NavbarBrand\",\n \"NavbarContent\",\n \"NavbarItem\",\n \"NavbarLink\",\n \"NavbarToggle\",\n \"NumberInput\",\n \"OfflineBanner\",\n \"OpacityBar\",\n \"OpacitySlide\",\n \"OTPInput\",\n \"PageHeader\",\n \"Pagination\",\n \"PaginationContent\",\n \"PaginationEllipsis\",\n \"PaginationItem\",\n \"PaginationLink\",\n \"PaginationNext\",\n \"PaginationPrevious\",\n \"PasswordInput\",\n \"PhoneInput\",\n \"PlatformChip\",\n \"Popover\",\n \"PopoverAnchor\",\n \"PopoverContent\",\n \"PopoverFooter\",\n \"PopoverSelectionItem\",\n \"PopoverSelectionLabel\",\n \"PopoverSelectionList\",\n \"PopoverTrigger\",\n \"PositionPicker\",\n \"PricingSection\",\n \"ProfileMenu\",\n \"Progress\",\n \"ProportionBar\",\n \"PrototypeReview\",\n \"QuickActions\",\n \"RadioGroup\",\n \"RadioGroupItem\",\n \"RadioGroupVariantContext\",\n \"RadiusScale\",\n \"RadiusSection\",\n \"RadiusSlide\",\n \"RecordSection\",\n \"RightRailList\",\n \"SaveStatus\",\n \"ScoreIndicator\",\n \"ScrollArea\",\n \"ScrollBar\",\n \"SearchInput\",\n \"SectionHeader\",\n \"SectionIntro\",\n \"SectionNav\",\n \"SectionNavItem\",\n \"SegmentedControl\",\n \"SegmentedProgress\",\n \"Select\",\n \"SelectContent\",\n \"SelectGroup\",\n \"SelectionListContext\",\n \"SelectItem\",\n \"SelectLabel\",\n \"SelectScrollDownButton\",\n \"SelectScrollUpButton\",\n \"SelectSeparator\",\n \"SelectTrigger\",\n \"SelectValue\",\n \"SemanticColorGrid\",\n \"SemanticColorItem\",\n \"SemanticTokensSlide\",\n \"SensitivePanel\",\n \"Separator\",\n \"SessionTimeout\",\n \"ShadowSection\",\n \"Sheet\",\n \"SheetClose\",\n \"SheetContent\",\n \"SheetContext\",\n \"SheetDescription\",\n \"SheetFooter\",\n \"SheetHeader\",\n \"SheetOverlay\",\n \"SheetPortal\",\n \"SheetScrim\",\n \"SheetTitle\",\n \"SheetTrigger\",\n \"Sidebar\",\n \"SidebarContent\",\n \"SidebarContext\",\n \"SidebarFooter\",\n \"SidebarGroup\",\n \"SidebarGroupAction\",\n \"SidebarGroupContent\",\n \"SidebarGroupLabel\",\n \"SidebarHeader\",\n \"SidebarInset\",\n \"SidebarMenu\",\n \"SidebarMenuAction\",\n \"SidebarMenuBadge\",\n \"SidebarMenuButton\",\n \"SidebarMenuItem\",\n \"SidebarMenuSub\",\n \"SidebarMenuSubButton\",\n \"SidebarMenuSubItem\",\n \"SidebarProvider\",\n \"SidebarRail\",\n \"SidebarScopeContext\",\n \"SidebarSeparator\",\n \"SidebarTrigger\",\n \"Skeleton\",\n \"SkeletonDetail\",\n \"SkeletonList\",\n \"SkeletonTable\",\n \"Slide\",\n \"SlideHeader\",\n \"Slider\",\n \"SliderControl\",\n \"SlideThemeContext\",\n \"SlideThemeProvider\",\n \"SlowNetworkBar\",\n \"SourceInspector\",\n \"SourceInspectorContext\",\n \"SourceInspectorDevImpl\",\n \"SourceInspectorProvider\",\n \"SourceInspectorRunner\",\n \"SourceInspectorToggle\",\n \"SpacingScale\",\n \"SpacingSection\",\n \"SpacingSlide\",\n \"SpanStrip\",\n \"Sparkline\",\n \"SpecimenCard\",\n \"SpecimenCardFooter\",\n \"Sphere\",\n \"SpherePlayground\",\n \"Spinner\",\n \"SpinnerOrb\",\n \"Stack\",\n \"Stage\",\n \"StatCard\",\n \"StatHero\",\n \"StationSpectrum\",\n \"StatusBadge\",\n \"StatusColorsSlide\",\n \"StatusDot\",\n \"Stepper\",\n \"StepperContext\",\n \"StepperDescription\",\n \"StepperItem\",\n \"StepperSeparator\",\n \"StepperTitle\",\n \"StepperTrigger\",\n \"StepsSection\",\n \"StructuredPrompt\",\n \"StructuredPromptBody\",\n \"StructuredPromptHeader\",\n \"StructuredPromptHint\",\n \"StructuredPromptSlot\",\n \"SuccessLiveRegion\",\n \"SuccessPanel\",\n \"SurfaceRow\",\n \"SurfaceScaleStack\",\n \"SurfaceSection\",\n \"Switch\",\n \"Table\",\n \"TableBody\",\n \"TableCaption\",\n \"TableCell\",\n \"TableFooter\",\n \"TableHead\",\n \"TableHeader\",\n \"TableRow\",\n \"Tabs\",\n \"TabsContent\",\n \"TabsList\",\n \"TabsTrigger\",\n \"TagInput\",\n \"TestimonialAttribution\",\n \"TestimonialSection\",\n \"Text\",\n \"Textarea\",\n \"ThemeArchitectureSlide\",\n \"ThemeColorsSlide\",\n \"ThemeSwitcher\",\n \"ThinkingOrb\",\n \"Timeline\",\n \"TimelineContent\",\n \"TimelineDescription\",\n \"TimelineIcon\",\n \"TimelineItem\",\n \"TimelineTimestamp\",\n \"TimelineTitle\",\n \"TimePicker\",\n \"TinInput\",\n \"TitleSlide\",\n \"ToastCard\",\n \"ToastCardStack\",\n \"Toaster\",\n \"TOCSlide\",\n \"ToggleButton\",\n \"ToggleDevImpl\",\n \"ToggleGroup\",\n \"ToggleGroupContext\",\n \"ToggleGroupItem\",\n \"Tooltip\",\n \"TooltipContent\",\n \"TooltipProvider\",\n \"TooltipTrigger\",\n \"TypeBodySlide\",\n \"TypeDisplaySlide\",\n \"TypeScaleStack\",\n \"TypeSpecimen\",\n \"TypographySection\",\n \"Vignette\",\n \"WorkspaceSwitcher\",\n])\n"
5590
+ "content": "// THIS FILE IS GENERATED BY scripts/generate-visor-component-names.ts.\n// Do not edit by hand. Re-run `npm run generate:component-names` after\n// adding, removing, or renaming a Visor component.\n//\n// Source of truth: registry/registry-{ui,blocks,deck,visual,devtools}.ts\n// Used by: components/devtools/source-inspector/* (VI-311)\n\nexport const VISOR_COMPONENT_NAMES: ReadonlySet<string> = new Set([\n \"AccessibilitySection\",\n \"AccessibilitySlide\",\n \"AccessibilitySpecimen\",\n \"Accordion\",\n \"AccordionContent\",\n \"AccordionItem\",\n \"AccordionTrigger\",\n \"ActionRow\",\n \"ActionRowList\",\n \"ActivityFeed\",\n \"ActivityFeedContext\",\n \"ActivityFeedItem\",\n \"ActivityFeedRoot\",\n \"AdminDashboard\",\n \"AdminDetail\",\n \"AdminDetailDrawer\",\n \"AdminListPage\",\n \"AdminListPageInner\",\n \"AdminSettingsPage\",\n \"AdminShell\",\n \"AdminTabbedEditor\",\n \"AdminWizard\",\n \"Alert\",\n \"AlertActions\",\n \"AlertDescription\",\n \"AlertLead\",\n \"AlertTitle\",\n \"AmbientGlow\",\n \"Avatar\",\n \"AvatarFallback\",\n \"AvatarImage\",\n \"AvatarStack\",\n \"Badge\",\n \"Banner\",\n \"BannerAction\",\n \"BannerDescription\",\n \"BannerTitle\",\n \"BentoGrid\",\n \"BentoTile\",\n \"BentoTileBody\",\n \"BentoTileDescription\",\n \"BentoTileFigure\",\n \"BentoTileHeadline\",\n \"BentoTileMedia\",\n \"BentoTileMeta\",\n \"BentoTileTitle\",\n \"BillingSlider\",\n \"BottomNav\",\n \"Box\",\n \"Breadcrumb\",\n \"BreadcrumbEllipsis\",\n \"BreadcrumbItem\",\n \"BreadcrumbLink\",\n \"BreadcrumbList\",\n \"BreadcrumbPage\",\n \"BreadcrumbSeparator\",\n \"BrowserFrame\",\n \"BulkActionBar\",\n \"Button\",\n \"ButtonSpecimenSection\",\n \"ButtonSpecimenSlide\",\n \"Calendar\",\n \"Capture\",\n \"Card\",\n \"CardContent\",\n \"CardDescription\",\n \"CardFooter\",\n \"CardGrid\",\n \"CardHeader\",\n \"CardIndicatorContext\",\n \"CardLift\",\n \"CardTitle\",\n \"Carousel\",\n \"CarouselContent\",\n \"CarouselContext\",\n \"CarouselGallery\",\n \"CarouselItem\",\n \"CarouselNext\",\n \"CarouselPrevious\",\n \"ChallengeCard\",\n \"ChallengeCardAction\",\n \"ChallengeCardActions\",\n \"ChallengeCardBody\",\n \"ChallengeCardGate\",\n \"ChallengeCardHeader\",\n \"ChartContainer\",\n \"ChartContext\",\n \"ChartLegend\",\n \"ChartLegendContent\",\n \"ChartStyle\",\n \"ChartTooltip\",\n \"ChartTooltipContent\",\n \"Checkbox\",\n \"CheckGroup\",\n \"CheckRow\",\n \"Chip\",\n \"ChipGroup\",\n \"ChipGroupContext\",\n \"ChipGroupItem\",\n \"ChoiceChip\",\n \"ChromeButton\",\n \"ClosingSlide\",\n \"CodeBlock\",\n \"Collapsible\",\n \"CollapsibleContent\",\n \"CollapsibleTrigger\",\n \"ColorBar\",\n \"ColorPaletteSection\",\n \"ColorPicker\",\n \"ColorPickerSurface\",\n \"ColorSwatch\",\n \"ColorSwatchGrid\",\n \"Column\",\n \"Combobox\",\n \"ComboboxContent\",\n \"ComboboxContext\",\n \"ComboboxEmpty\",\n \"ComboboxGroup\",\n \"ComboboxInput\",\n \"ComboboxItem\",\n \"ComboboxSeparator\",\n \"Command\",\n \"CommandDialog\",\n \"CommandEmpty\",\n \"CommandGroup\",\n \"CommandInput\",\n \"CommandItem\",\n \"CommandList\",\n \"CommandLoading\",\n \"CommandSeparator\",\n \"CommandShortcut\",\n \"ComponentShowcaseContent\",\n \"ComponentShowcaseSection\",\n \"ComponentShowcaseSlide\",\n \"Composer\",\n \"ComposerContext\",\n \"ComposerField\",\n \"ComposerSend\",\n \"ComposerSpacer\",\n \"ComposerToolbar\",\n \"ComposerToolButton\",\n \"ConceptSlide\",\n \"ConfigurationPanel\",\n \"ConfirmDialog\",\n \"ConflictBanner\",\n \"Container\",\n \"ContextMenu\",\n \"ContextMenuCheckboxItem\",\n \"ContextMenuContent\",\n \"ContextMenuGroup\",\n \"ContextMenuItem\",\n \"ContextMenuLabel\",\n \"ContextMenuPortal\",\n \"ContextMenuRadioGroup\",\n \"ContextMenuRadioItem\",\n \"ContextMenuSeparator\",\n \"ContextMenuShortcut\",\n \"ContextMenuSub\",\n \"ContextMenuSubContent\",\n \"ContextMenuSubTrigger\",\n \"ContextMenuTrigger\",\n \"Controls\",\n \"CtaSection\",\n \"DataTable\",\n \"DataTableInner\",\n \"DatePicker\",\n \"DateRangePicker\",\n \"DeckContext\",\n \"DeckFooter\",\n \"DeckLayout\",\n \"DeckProvider\",\n \"DeckRenderer\",\n \"DesignSystemDeck\",\n \"DesignSystemSpecimen\",\n \"Dialog\",\n \"DialogBack\",\n \"DialogClose\",\n \"DialogContent\",\n \"DialogContext\",\n \"DialogDescription\",\n \"DialogField\",\n \"DialogFieldControl\",\n \"DialogFieldLabel\",\n \"DialogFooter\",\n \"DialogForm\",\n \"DialogFormBody\",\n \"DialogFormClose\",\n \"DialogFormContent\",\n \"DialogFormDescription\",\n \"DialogFormFooter\",\n \"DialogFormHeader\",\n \"DialogFormTitle\",\n \"DialogFormTrigger\",\n \"DialogHeader\",\n \"DialogOverlay\",\n \"DialogPortal\",\n \"DialogScrim\",\n \"DialogTitle\",\n \"DialogTrigger\",\n \"DocFrame\",\n \"DocFrameBrand\",\n \"DocNav\",\n \"DocNavGroup\",\n \"DocNavPill\",\n \"DotNav\",\n \"DropdownMenu\",\n \"DropdownMenuCheckboxItem\",\n \"DropdownMenuContent\",\n \"DropdownMenuGroup\",\n \"DropdownMenuItem\",\n \"DropdownMenuLabel\",\n \"DropdownMenuPortal\",\n \"DropdownMenuRadioGroup\",\n \"DropdownMenuRadioItem\",\n \"DropdownMenuSeparator\",\n \"DropdownMenuShortcut\",\n \"DropdownMenuSub\",\n \"DropdownMenuSubContent\",\n \"DropdownMenuSubTrigger\",\n \"DropdownMenuTrigger\",\n \"EditableBlock\",\n \"ElevationCard\",\n \"ElevationSlide\",\n \"EmptyState\",\n \"ErrorPlacard\",\n \"ExportMenu\",\n \"FeaturesGrid\",\n \"FidelityMirror\",\n \"Field\",\n \"FieldDescription\",\n \"FieldError\",\n \"FieldLabel\",\n \"Fieldset\",\n \"FieldsetLegend\",\n \"FileUpload\",\n \"FilterBar\",\n \"FilterChip\",\n \"FontShowcase\",\n \"FontShowcaseGrid\",\n \"Footer\",\n \"FooterSection\",\n \"Form\",\n \"FormError\",\n \"FormErrorDescription\",\n \"FormErrorTitle\",\n \"FormField\",\n \"FormSpecimenSection\",\n \"FormSpecimenSlide\",\n \"FullscreenOverlay\",\n \"FullscreenOverlayContent\",\n \"FullscreenOverlayTrigger\",\n \"GrainOverlay\",\n \"Grid\",\n \"Header\",\n \"Heading\",\n \"HeroGlow\",\n \"HeroSection\",\n \"HeroSlide\",\n \"HoverCard\",\n \"HoverCardContent\",\n \"HoverCardTrigger\",\n \"IconGrid\",\n \"IconGridSection\",\n \"IconSizeRow\",\n \"IconsSlide\",\n \"Image\",\n \"InfographicBar\",\n \"Inline\",\n \"InlineEdit\",\n \"Input\",\n \"KanbanBoard\",\n \"Kbd\",\n \"KeyValueList\",\n \"Label\",\n \"Landing\",\n \"LayerChart\",\n \"Lightbox\",\n \"LightboxContent\",\n \"LightboxContext\",\n \"LightboxTrigger\",\n \"LoginForm\",\n \"Marquee\",\n \"MarqueeBandRenderer\",\n \"MatrixCell\",\n \"MatrixTable\",\n \"MatrixTableInner\",\n \"Menubar\",\n \"MenubarCheckboxItem\",\n \"MenubarContent\",\n \"MenubarGroup\",\n \"MenubarItem\",\n \"MenubarLabel\",\n \"MenubarMenu\",\n \"MenubarRadioGroup\",\n \"MenubarRadioItem\",\n \"MenubarSeparator\",\n \"MenubarShortcut\",\n \"MenubarSub\",\n \"MenubarSubContent\",\n \"MenubarSubTrigger\",\n \"MenubarTrigger\",\n \"Meter\",\n \"MonthCalendar\",\n \"MotionDuration\",\n \"MotionDurationSection\",\n \"MotionEasing\",\n \"MotionEasingSection\",\n \"MotionSlide\",\n \"NameRoster\",\n \"NameRosterItem\",\n \"Navbar\",\n \"NavbarBrand\",\n \"NavbarContent\",\n \"NavbarItem\",\n \"NavbarLink\",\n \"NavbarToggle\",\n \"NumberInput\",\n \"OfflineBanner\",\n \"OpacityBar\",\n \"OpacitySlide\",\n \"OTPInput\",\n \"PageHeader\",\n \"Pagination\",\n \"PaginationContent\",\n \"PaginationEllipsis\",\n \"PaginationItem\",\n \"PaginationLink\",\n \"PaginationNext\",\n \"PaginationPrevious\",\n \"PasswordInput\",\n \"PhoneInput\",\n \"PlatformChip\",\n \"Popover\",\n \"PopoverAnchor\",\n \"PopoverContent\",\n \"PopoverFooter\",\n \"PopoverSelectionItem\",\n \"PopoverSelectionLabel\",\n \"PopoverSelectionList\",\n \"PopoverTrigger\",\n \"PositionPicker\",\n \"PricingSection\",\n \"ProfileMenu\",\n \"Progress\",\n \"ProportionBar\",\n \"PrototypeReview\",\n \"QuickActions\",\n \"RadioGroup\",\n \"RadioGroupItem\",\n \"RadioGroupVariantContext\",\n \"RadiusScale\",\n \"RadiusSection\",\n \"RadiusSlide\",\n \"RecordSection\",\n \"ResizableSplit\",\n \"RightRailList\",\n \"SaveStatus\",\n \"ScoreIndicator\",\n \"ScrollArea\",\n \"ScrollBar\",\n \"SearchInput\",\n \"SectionHeader\",\n \"SectionIntro\",\n \"SectionNav\",\n \"SectionNavItem\",\n \"SegmentedControl\",\n \"SegmentedProgress\",\n \"Select\",\n \"SelectContent\",\n \"SelectGroup\",\n \"SelectionListContext\",\n \"SelectItem\",\n \"SelectLabel\",\n \"SelectScrollDownButton\",\n \"SelectScrollUpButton\",\n \"SelectSeparator\",\n \"SelectTrigger\",\n \"SelectValue\",\n \"SemanticColorGrid\",\n \"SemanticColorItem\",\n \"SemanticTokensSlide\",\n \"SensitivePanel\",\n \"Separator\",\n \"SessionTimeout\",\n \"ShadowSection\",\n \"Sheet\",\n \"SheetClose\",\n \"SheetContent\",\n \"SheetContext\",\n \"SheetDescription\",\n \"SheetFooter\",\n \"SheetHeader\",\n \"SheetOverlay\",\n \"SheetPortal\",\n \"SheetScrim\",\n \"SheetTitle\",\n \"SheetTrigger\",\n \"Sidebar\",\n \"SidebarContent\",\n \"SidebarContext\",\n \"SidebarFooter\",\n \"SidebarGroup\",\n \"SidebarGroupAction\",\n \"SidebarGroupContent\",\n \"SidebarGroupLabel\",\n \"SidebarHeader\",\n \"SidebarInset\",\n \"SidebarMenu\",\n \"SidebarMenuAction\",\n \"SidebarMenuBadge\",\n \"SidebarMenuButton\",\n \"SidebarMenuItem\",\n \"SidebarMenuSub\",\n \"SidebarMenuSubButton\",\n \"SidebarMenuSubItem\",\n \"SidebarProvider\",\n \"SidebarRail\",\n \"SidebarScopeContext\",\n \"SidebarSeparator\",\n \"SidebarTrigger\",\n \"Skeleton\",\n \"SkeletonDetail\",\n \"SkeletonList\",\n \"SkeletonTable\",\n \"Slide\",\n \"SlideHeader\",\n \"Slider\",\n \"SliderControl\",\n \"SlideThemeContext\",\n \"SlideThemeProvider\",\n \"SlowNetworkBar\",\n \"SourceInspector\",\n \"SourceInspectorContext\",\n \"SourceInspectorDevImpl\",\n \"SourceInspectorProvider\",\n \"SourceInspectorRunner\",\n \"SourceInspectorToggle\",\n \"SpacingScale\",\n \"SpacingSection\",\n \"SpacingSlide\",\n \"SpanStrip\",\n \"Sparkline\",\n \"SpecimenCard\",\n \"SpecimenCardFooter\",\n \"Sphere\",\n \"SpherePlayground\",\n \"Spinner\",\n \"SpinnerOrb\",\n \"Stack\",\n \"Stage\",\n \"StatCard\",\n \"StatHero\",\n \"StationSpectrum\",\n \"StatusBadge\",\n \"StatusColorsSlide\",\n \"StatusDot\",\n \"Stepper\",\n \"StepperContext\",\n \"StepperDescription\",\n \"StepperItem\",\n \"StepperSeparator\",\n \"StepperTitle\",\n \"StepperTrigger\",\n \"StepsSection\",\n \"StructuredPrompt\",\n \"StructuredPromptBody\",\n \"StructuredPromptHeader\",\n \"StructuredPromptHint\",\n \"StructuredPromptSlot\",\n \"SuccessLiveRegion\",\n \"SuccessPanel\",\n \"SurfaceRow\",\n \"SurfaceScaleStack\",\n \"SurfaceSection\",\n \"Switch\",\n \"Table\",\n \"TableBody\",\n \"TableCaption\",\n \"TableCell\",\n \"TableFooter\",\n \"TableHead\",\n \"TableHeader\",\n \"TableRow\",\n \"Tabs\",\n \"TabsContent\",\n \"TabsList\",\n \"TabsTrigger\",\n \"TagInput\",\n \"TestimonialAttribution\",\n \"TestimonialSection\",\n \"Text\",\n \"Textarea\",\n \"ThemeArchitectureSlide\",\n \"ThemeColorsSlide\",\n \"ThemeSwitcher\",\n \"ThinkingOrb\",\n \"Timeline\",\n \"TimelineContent\",\n \"TimelineDescription\",\n \"TimelineIcon\",\n \"TimelineItem\",\n \"TimelineTimestamp\",\n \"TimelineTitle\",\n \"TimePicker\",\n \"TinInput\",\n \"TitleSlide\",\n \"ToastCard\",\n \"ToastCardStack\",\n \"Toaster\",\n \"TOCSlide\",\n \"ToggleButton\",\n \"ToggleDevImpl\",\n \"ToggleGroup\",\n \"ToggleGroupContext\",\n \"ToggleGroupItem\",\n \"Tooltip\",\n \"TooltipContent\",\n \"TooltipProvider\",\n \"TooltipTrigger\",\n \"TypeBodySlide\",\n \"TypeDisplaySlide\",\n \"TypeScaleStack\",\n \"TypeSpecimen\",\n \"TypographySection\",\n \"Vignette\",\n \"WorkspaceSwitcher\",\n])\n"
5567
5591
  }
5568
5592
  ]
5569
5593
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.4.0",
3
- "generated_at": "2026-11-14T03:05:37.052Z",
3
+ "generated_at": "2026-11-14T04:36:08.549Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "category": "specimen",
@@ -8257,6 +8257,84 @@
8257
8257
  ],
8258
8258
  "example": "<RadiusScale steps={[\n { token: \"--radius-sm\", name: \"sm\", px: 2 },\n { token: \"--radius-md\", name: \"md\", px: 4 },\n { token: \"--radius-full\", name: \"full\", px: 9999 },\n]} />\n"
8259
8259
  },
8260
+ "resizable-split": {
8261
+ "category": "layout",
8262
+ "description": "Two panes side by side with a draggable divider between them. Each pane has a minimum width, the start pane's width can be controlled or start from a default, and the divider is a focusable separator the arrow keys move.",
8263
+ "when_to_use": [
8264
+ "An editor beside a live preview, where the person decides how much room each gets",
8265
+ "A list beside its detail, resizable by drag or keys",
8266
+ "A width the app should remember per device (persist `onSizeChange`, pass it back as `size` or `defaultSize`)"
8267
+ ],
8268
+ "when_not_to_use": [
8269
+ "A fixed two-column layout nobody resizes (use Grid)",
8270
+ "A side navigation that folds away (use Sidebar)",
8271
+ "Stacked panes on a phone; render one pane at a time there"
8272
+ ],
8273
+ "props": [
8274
+ {
8275
+ "name": "children",
8276
+ "type": "[ReactNode, ReactNode]",
8277
+ "required": true,
8278
+ "description": "The two panes, start (left) then end (right)."
8279
+ },
8280
+ {
8281
+ "name": "size",
8282
+ "type": "number",
8283
+ "description": "The start pane's width in px. Controlled."
8284
+ },
8285
+ {
8286
+ "name": "defaultSize",
8287
+ "type": "number",
8288
+ "description": "The start pane's first width in px when uncontrolled. Without it the panes start equal."
8289
+ },
8290
+ {
8291
+ "name": "onSizeChange",
8292
+ "type": "(size: number) => void",
8293
+ "description": "The start pane's new width in px, while dragging and on every key step."
8294
+ },
8295
+ {
8296
+ "name": "minStart",
8297
+ "type": "number",
8298
+ "default": "0",
8299
+ "description": "The start pane's minimum width in px."
8300
+ },
8301
+ {
8302
+ "name": "minEnd",
8303
+ "type": "number",
8304
+ "default": "0",
8305
+ "description": "The end pane's minimum width in px."
8306
+ },
8307
+ {
8308
+ "name": "step",
8309
+ "type": "number",
8310
+ "default": "16",
8311
+ "description": "px per arrow key press. Shift + arrows step four times this."
8312
+ },
8313
+ {
8314
+ "name": "dividerLabel",
8315
+ "type": "string",
8316
+ "default": "\"Resize panes\"",
8317
+ "description": "The divider's accessible name."
8318
+ }
8319
+ ],
8320
+ "dependencies": [],
8321
+ "tokens_used": [
8322
+ "--border-default",
8323
+ "--border-focus",
8324
+ "--border-strong",
8325
+ "--focus-ring-offset",
8326
+ "--focus-ring-width",
8327
+ "--interactive-primary-bg",
8328
+ "--motion-duration-fast",
8329
+ "--motion-easing-default",
8330
+ "--resizable-split-divider-active-color",
8331
+ "--resizable-split-divider-color",
8332
+ "--resizable-split-divider-hover-color",
8333
+ "--spacing-2",
8334
+ "--stroke-width-thin"
8335
+ ],
8336
+ "example": "const [width, setWidth] = useState(() => Number(localStorage.getItem(\"editor-width\")) || 560)\n\n<ResizableSplit\n size={width}\n onSizeChange={(w) => { setWidth(w); localStorage.setItem(\"editor-width\", String(w)) }}\n minStart={360}\n minEnd={320}\n dividerLabel=\"Resize editor and preview\"\n>\n <EditorForms />\n <iframe src={previewUrl} title=\"Preview\" />\n</ResizableSplit>\n"
8337
+ },
8260
8338
  "save-status": {
8261
8339
  "category": "feedback",
8262
8340
  "description": "Autosave readout — Saved / Saving / Syncing / Unsaved / Couldn't save in a fixed-width slot that never reflows its row, with a retry mark after a failed save. aria-live polite; draws no edge.",
@@ -14746,6 +14824,7 @@
14746
14824
  "container",
14747
14825
  "grid",
14748
14826
  "inline",
14827
+ "resizable-split",
14749
14828
  "scroll-area",
14750
14829
  "separator",
14751
14830
  "sidebar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor",
3
- "version": "1.50.0",
3
+ "version": "1.52.0",
4
4
  "description": "CLI for the Visor design system — add components, hooks, and utilities to your project.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@aws-sdk/client-s3": "^3.1021.0",
48
48
  "@babel/parser": "^7.26.0",
49
- "@loworbitstudio/visor-theme-engine": "^0.38.0",
49
+ "@loworbitstudio/visor-theme-engine": "^0.39.0",
50
50
  "commander": "^13.1.0",
51
51
  "diff": "^8.0.4",
52
52
  "picocolors": "^1.1.1",