@loworbitstudio/visor 1.53.1 → 1.55.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/dist/CHANGELOG.json +13 -1
- package/dist/index.js +26 -0
- package/dist/registry.json +51 -2
- package/dist/visor-manifest.json +165 -2
- package/package.json +2 -2
package/dist/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.4.0",
|
|
3
|
-
"generated_at": "2026-11-
|
|
3
|
+
"generated_at": "2026-11-20T04:46:19.508Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"accessibility-specimen": {
|
|
6
6
|
"changeType": "current",
|
|
@@ -512,6 +512,12 @@
|
|
|
512
512
|
"breakingChange": false,
|
|
513
513
|
"migrationNote": null
|
|
514
514
|
},
|
|
515
|
+
"photo-picker": {
|
|
516
|
+
"changeType": "current",
|
|
517
|
+
"files": [],
|
|
518
|
+
"breakingChange": false,
|
|
519
|
+
"migrationNote": null
|
|
520
|
+
},
|
|
515
521
|
"popover": {
|
|
516
522
|
"changeType": "current",
|
|
517
523
|
"files": [],
|
|
@@ -800,6 +806,12 @@
|
|
|
800
806
|
"breakingChange": false,
|
|
801
807
|
"migrationNote": null
|
|
802
808
|
},
|
|
809
|
+
"theme-toggle": {
|
|
810
|
+
"changeType": "current",
|
|
811
|
+
"files": [],
|
|
812
|
+
"breakingChange": false,
|
|
813
|
+
"migrationNote": null
|
|
814
|
+
},
|
|
803
815
|
"time-picker": {
|
|
804
816
|
"changeType": "current",
|
|
805
817
|
"files": [],
|
package/dist/index.js
CHANGED
|
@@ -9247,6 +9247,27 @@ var FIXTURES = {
|
|
|
9247
9247
|
invalid: { export: "OTPInput", interactiveTarget: "input", props: `{ value: "428519", invalid: true, errorMessage: "That code didn't work. Check it and try again." }` },
|
|
9248
9248
|
trailing: { export: "OTPInput", interactiveTarget: "input", props: `{ value: "428519", trailing: React.createElement("button", { type: "button" }, "Resend") }` }
|
|
9249
9249
|
},
|
|
9250
|
+
// VI-793: ten gradient stand-in photos, one chosen, loaded, in a 600px frame
|
|
9251
|
+
// (Backstage's menu width) so the five-column grid renders at its real size.
|
|
9252
|
+
"photo-picker": {
|
|
9253
|
+
default: {
|
|
9254
|
+
export: "PhotoPicker",
|
|
9255
|
+
interactiveTarget: "button",
|
|
9256
|
+
props: `(function () {
|
|
9257
|
+
var stops = [["#f59e0b", "#7c2d12"], ["#38bdf8", "#1e3a8a"], ["#a3e635", "#14532d"], ["#f472b6", "#4c1d95"], ["#e5e7eb", "#4b5563"], ["#fb923c", "#450a0a"], ["#6ee7b7", "#064e3b"], ["#818cf8", "#0f172a"], ["#fde68a", "#92400e"], ["#5eead4", "#134e4a"]];
|
|
9258
|
+
return {
|
|
9259
|
+
"aria-label": "Pick Your Background",
|
|
9260
|
+
value: "p2",
|
|
9261
|
+
play: false,
|
|
9262
|
+
style: { width: 600 },
|
|
9263
|
+
photos: stops.map(function (s, i) {
|
|
9264
|
+
var svg = "<svg xmlns='http://www.w3.org/2000/svg' width='480' height='360'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='" + s[0] + "'/><stop offset='1' stop-color='" + s[1] + "'/></linearGradient></defs><rect width='480' height='360' fill='url(#g)'/></svg>";
|
|
9265
|
+
return { key: "p" + i, thumb: "data:image/svg+xml;utf8," + encodeURIComponent(svg) };
|
|
9266
|
+
}),
|
|
9267
|
+
};
|
|
9268
|
+
})()`
|
|
9269
|
+
}
|
|
9270
|
+
},
|
|
9250
9271
|
// VI-672: `default` is the grid on its own ground; `on-image` draws it over a busy
|
|
9251
9272
|
// synthetic photograph (turbulence, one light half and one dark half) so each
|
|
9252
9273
|
// target's scrim ring is checked against both. The picker is its own frame here:
|
|
@@ -9268,6 +9289,11 @@ var FIXTURES = {
|
|
|
9268
9289
|
},
|
|
9269
9290
|
thumbnail: { export: "PositionPicker", interactiveTarget: '[role="radio"]', props: `{ variant: "on-image", "aria-label": "Focal point", defaultValue: { y: "bottom", x: "left" }, style: { position: "relative", inset: "auto", width: 40, height: 28, background: "#667" } }` }
|
|
9270
9291
|
},
|
|
9292
|
+
// VI-793: one fixture per tone, so both resting icons (sun on dark, moon on light) render.
|
|
9293
|
+
"theme-toggle": {
|
|
9294
|
+
default: { export: "ThemeToggle", interactiveTarget: "button", props: `{ value: "light" }` },
|
|
9295
|
+
dark: { export: "ThemeToggle", interactiveTarget: "button", props: `{ value: "dark" }` }
|
|
9296
|
+
},
|
|
9271
9297
|
// VI-624: `default` is the closed field; the popover fixtures render open so the
|
|
9272
9298
|
// two-column (24-hour) and three-column (12-hour) anatomy can be inspected.
|
|
9273
9299
|
"time-picker": {
|
package/dist/registry.json
CHANGED
|
@@ -2252,6 +2252,30 @@
|
|
|
2252
2252
|
}
|
|
2253
2253
|
]
|
|
2254
2254
|
},
|
|
2255
|
+
{
|
|
2256
|
+
"name": "photo-picker",
|
|
2257
|
+
"type": "registry:ui",
|
|
2258
|
+
"description": "A grid of photo thumbnails, one chosen. A staggered draw wave plays each time it opens, and thumbnails wait to load until it has been opened. The consumer supplies the popover or panel.",
|
|
2259
|
+
"category": "form",
|
|
2260
|
+
"dependencies": [
|
|
2261
|
+
"@loworbitstudio/visor-core"
|
|
2262
|
+
],
|
|
2263
|
+
"registryDependencies": [
|
|
2264
|
+
"utils"
|
|
2265
|
+
],
|
|
2266
|
+
"files": [
|
|
2267
|
+
{
|
|
2268
|
+
"path": "components/ui/photo-picker/photo-picker.tsx",
|
|
2269
|
+
"type": "registry:ui",
|
|
2270
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../../lib/utils\"\nimport styles from \"./photo-picker.module.css\"\n\nexport interface PhotoPickerPhoto {\n /** Unique key, reported by `onValueChange`. */\n key: string\n /** The thumbnail's URL. */\n thumb: string\n /** The thumbnail's accessible name. Defaults to \"Photo N\". */\n label?: string\n}\n\nexport interface PhotoPickerProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"defaultValue\" | \"onChange\"> {\n photos: PhotoPickerPhoto[]\n /** The chosen photo's key, or null for none. */\n value?: string | null\n /** Called with a photo's key when it is pressed. */\n onValueChange?: (key: string) => void\n /**\n * The draw wave plays when the grid mounts and every time `play` changes,\n * except to `false`. Pass the menu's open state, or a counter you bump.\n */\n play?: boolean | number\n /** Thumbnails load only once this has been true. Pass the menu's open state to wait for the first open. */\n load?: boolean\n}\n\n// Each thumbnail rises on its own beat, a wave from the top left: its row plus its\n// place in the row, by where it sits on screen now. Capped so a long grid doesn't drag.\nconst BEAT_CAP = 12\n\nfunction drawWave(items: HTMLElement[]) {\n const rects = items.map((x) => x.getBoundingClientRect())\n const tops = rects.map((r) => Math.round(r.top))\n const rows = [...new Set(tops)].sort((a, b) => a - b)\n items.forEach((x, i) => {\n const col = rects.filter((r, j) => tops[j] === tops[i] && r.left < rects[i].left).length\n x.style.setProperty(\"--draw-i\", String(Math.min(rows.indexOf(tops[i]) + col, BEAT_CAP)))\n x.classList.remove(styles.drawing)\n })\n void items[0]?.offsetWidth // one reflow, so every animation restarts\n items.forEach((x) => {\n x.classList.add(styles.drawing)\n const done = (e: AnimationEvent) => {\n if (e.target !== x) return\n x.classList.remove(styles.drawing)\n x.removeEventListener(\"animationend\", done)\n }\n x.addEventListener(\"animationend\", done)\n })\n}\n\n/** A grid of photo thumbnails, one chosen. The consumer supplies the popover or panel it sits in. */\nconst PhotoPicker = React.forwardRef<HTMLDivElement, PhotoPickerProps>(\n ({ photos, value = null, onValueChange, play, load = true, className, ...props }, ref) => {\n const gridRef = React.useRef<HTMLDivElement>(null)\n React.useImperativeHandle(ref, () => gridRef.current as HTMLDivElement)\n\n // Once loaded, stay loaded: closing the menu must not blank the thumbnails.\n const [loaded, setLoaded] = React.useState(load)\n if (load && !loaded) setLoaded(true)\n\n React.useEffect(() => {\n const grid = gridRef.current\n if (play === false || !grid) return\n const raf = requestAnimationFrame(() => drawWave([...grid.children] as HTMLElement[]))\n return () => cancelAnimationFrame(raf)\n }, [play])\n\n return (\n <div ref={gridRef} role=\"group\" data-slot=\"photo-picker\" className={cn(styles.root, className)} {...props}>\n {photos.map((photo, i) => (\n <button\n key={photo.key}\n type=\"button\"\n className={styles.thumb}\n aria-pressed={photo.key === value}\n aria-label={photo.label ?? `Photo ${i + 1}`}\n onClick={() => onValueChange?.(photo.key)}\n >\n <img src={loaded ? photo.thumb : undefined} alt=\"\" />\n </button>\n ))}\n </div>\n )\n }\n)\nPhotoPicker.displayName = \"PhotoPicker\"\n\nexport { PhotoPicker }\n"
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
"path": "components/ui/photo-picker/photo-picker.module.css",
|
|
2274
|
+
"type": "registry:ui",
|
|
2275
|
+
"content": "/* PhotoPicker: a grid of photo thumbnails, one chosen. Lifted from Honcho\n Backstage's Photo menu; its values are the defaults wherever no theme token\n speaks for them.\n\n Variables: --photo-picker-columns (5) and --photo-picker-columns-narrow (3,\n 760px and under), --photo-picker-gap, --photo-picker-padding,\n --photo-picker-max-height, --photo-picker-radius, --photo-picker-ring,\n --photo-picker-ring-selected, --photo-picker-ease, and the draw wave's\n --photo-picker-draw-duration, --photo-picker-draw-gap, --photo-picker-draw-rise. */\n.root {\n /* Backstage's --ease. No Visor token carries this curve; intentional. */\n --_ease: var(--photo-picker-ease, cubic-bezier(0.22, 1, 0.36, 1));\n /* The menu's wave: Backstage's 800ms rise and 120ms beat at 40%, rising 10px. */\n --_draw-duration: var(--photo-picker-draw-duration, calc(var(--motion-duration-800, 800ms) * 0.4));\n --_draw-gap: var(--photo-picker-draw-gap, 48ms);\n --_draw-rise: var(--photo-picker-draw-rise, 10px);\n display: grid;\n grid-template-columns: repeat(var(--photo-picker-columns, 5), 1fr);\n /* Rows keep the thumbnails' full 4:3 height. Without this, a grid taller than\n its max-height squeezes the rows (overflow: hidden zeroes each thumbnail's\n minimum) and the thumbnails overlap instead of scrolling. */\n grid-auto-rows: max-content;\n gap: var(--photo-picker-gap, var(--spacing-2, 0.5rem));\n /* Room for the chosen ring inside the scroll box. */\n padding: var(--photo-picker-padding, var(--spacing-1, 0.25rem));\n max-height: var(--photo-picker-max-height, min(62vh, 560px));\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n.thumb {\n display: block;\n aspect-ratio: 4 / 3;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: var(--photo-picker-radius, var(--radius-xl, 0.75rem));\n overflow: hidden;\n background: transparent;\n box-shadow: inset 0 0 0 var(--stroke-width-thin, 1px) var(--photo-picker-ring, var(--border-default, #e5e7eb));\n cursor: pointer;\n}\n\n.thumb[aria-pressed=\"true\"] {\n box-shadow: 0 0 0 var(--stroke-width-medium, 2px) var(--photo-picker-ring-selected, var(--interactive-primary-bg, #3b82f6));\n}\n\n.thumb:focus-visible {\n outline: var(--focus-ring-width, 2px) solid var(--border-focus, #3b82f6);\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n.thumb img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform calc(var(--motion-duration-200, 200ms) * 2) var(--_ease);\n}\n\n@media (hover: hover) {\n .thumb:hover img {\n transform: scale(1.08);\n }\n}\n\n/* The draw wave: each thumbnail rises on its beat (--draw-i, set by the component). */\n.drawing {\n animation: photo-picker-draw var(--_draw-duration) var(--_ease) backwards;\n animation-delay: calc(var(--draw-i, 0) * var(--_draw-gap));\n}\n\n@keyframes photo-picker-draw {\n from {\n opacity: 0;\n translate: 0 var(--_draw-rise);\n }\n}\n\n@media (max-width: 760px) {\n .root {\n grid-template-columns: repeat(var(--photo-picker-columns-narrow, 3), 1fr);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .drawing {\n animation: none;\n }\n\n .thumb img {\n transition: none;\n }\n}\n"
|
|
2276
|
+
}
|
|
2277
|
+
]
|
|
2278
|
+
},
|
|
2255
2279
|
{
|
|
2256
2280
|
"name": "position-picker",
|
|
2257
2281
|
"type": "registry:ui",
|
|
@@ -3292,7 +3316,7 @@
|
|
|
3292
3316
|
{
|
|
3293
3317
|
"path": "components/ui/stat-card/stat-card.module.css",
|
|
3294
3318
|
"type": "registry:ui",
|
|
3295
|
-
"content": "/* Stat Card base: self-contained dashboard metric card\n *\n * Sizing strategy: hug content by default. Place stat cards in a grid\n * (`grid-template-columns: repeat(N, 1fr)`) or a flex row with `flex: 1`\n * per child when uniform widths are needed across a dashboard. A single\n * stat card in a generic flex-row parent renders at its natural content\n * width — the big value token drives the minimum width.\n *\n * No inline-size containment here: inline-size containment prevents the\n * element's intrinsic width from depending on its children, which means\n * it collapses to 0 inside a flex-row parent with `flex: 0 1 auto`. Since\n * the card's responsive variants are already driven by explicit props,\n * the container query buys nothing and costs the natural sizing behavior.\n */\n.base {\n --stat-card-value-font: var(--font-display, var(--font-family-heading, inherit));\n --stat-card-value-size: var(--font-size-3xl, 1.875rem);\n --stat-card-value-size-hero: var(--font-size-6xl, 3.5rem);\n\n display: flex;\n flex-direction: column;\n gap: var(--spacing-2, 0.5rem);\n padding: var(--spacing-5, 1.25rem);\n background-color: var(--surface-card, #ffffff);\n border: 1px solid var(--border-default, #e5e7eb);\n border-radius: var(--radius-lg, 0.75rem);\n color: var(--text-primary, #111827);\n box-shadow: var(--shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05));\n transition:\n box-shadow var(--motion-duration-150, 150ms)\n var(--motion-easing-standard, ease),\n border-color var(--motion-duration-150, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n/* Default variant — just the base styles */\n.variantDefault {\n /* inherits base */\n}\n\n/* Highlight variant — accent-tinted surface with elevation\n *\n * Uses color-mix over the theme's brand accent (--interactive-primary-bg)\n * plus the theme's card surface, so the variant reads as \"featured / primary\"\n * regardless of whether the active theme is light or dark and regardless of\n * which brand color the theme ships. No hardcoded gradient — gradients\n * conflict with dark modes where lighter colors at the top look like flares.\n */\n.variantHighlight {\n background-color: color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 6%,\n var(--surface-card, #ffffff)\n );\n border-color: color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 40%,\n var(--border-default, #e5e7eb)\n );\n box-shadow:\n var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1)),\n 0 0 24px -8px\n color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 25%,\n transparent\n );\n}\n\n/* Size md — default — no overrides; uses the base padding/gap/font-size */\n.sizeMd {\n /* inherits base */\n}\n\n/* Size sm — denser padding, smaller value */\n.sizeSm {\n padding: var(--spacing-4, 1rem);\n gap: var(--spacing-1, 0.25rem);\n}\n\n/* Header row: label on the left, trend slot on the right */\n.header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--spacing-3, 0.75rem);\n min-width: 0;\n}\n\n/* Label — small uppercase muted text */\n.label {\n margin: 0;\n font-size: var(--font-size-xs, 0.75rem);\n font-weight: var(--font-weight-semibold, 600);\n letter-spacing: var(--letter-spacing-wide, 0.05em);\n text-transform: uppercase;\n color: var(--text-tertiary, #6b7280);\n line-height: var(--line-height-tight, 1.25);\n min-width: 0;\n}\n\n/* Trend slot — header position (legacy): right-aligned sparkline / icon container */\n.trend {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n color: var(--text-tertiary, #6b7280);\n flex: 0 0 auto;\n}\n\n/* Trend slot — footer position (default): full-width, padded above the value row.\n *\n * Rendered as a direct child of the card root after the value/delta and before the\n * footer slot. Full card width, no fixed flex sizing — so Progress bars, full-width\n * sparklines, and anything that competes with the label for header space have room\n * to breathe. The `--stat-card-trend-padding-top` hook lets consumers tune the gap\n * to the value row without touching internal CSS.\n */\n.trendFooter {\n display: flex;\n align-items: center;\n width: 100%;\n padding-top: var(--stat-card-trend-padding-top, var(--spacing-3, 0.75rem));\n color: var(--text-tertiary, #6b7280);\n}\n\n/* Value — big numeric display */\n.value {\n margin: 0;\n font-family: var(--font-family-heading, inherit);\n font-size: var(--font-size-3xl, 1.875rem);\n font-weight: var(--font-weight-semibold, 600);\n line-height: var(--line-height-tight, 1.1);\n letter-spacing: var(--letter-spacing-tight, -0.02em);\n color: var(--text-primary, #111827);\n font-variant-numeric: tabular-nums;\n}\n\n/* valueAs=\"hero\" — marquee display treatment */\n.value[data-value-as=\"hero\"] {\n font-family: var(--stat-card-value-font);\n font-size: var(--stat-card-value-size-hero, var(--stat-card-value-size, 3.5rem));\n font-weight: var(--font-weight-normal, 400);\n letter-spacing: 0;\n line-height: 1;\n}\n\n/* valueAs=\"compact\" — tighter than default (2xl) */\n.value[data-value-as=\"compact\"] {\n font-size: var(--font-size-2xl, 1.5rem);\n}\n\n.sizeSm .value {\n font-size: var(--font-size-2xl, 1.5rem);\n}\n\n.sizeSm .label {\n font-size: var(--font-size-xs, 0.75rem);\n}\n\n.variantHighlight .value {\n font-size: var(--font-size-4xl, 2.25rem);\n}\n\n/* Delta row — change indicator */\n.delta {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-1, 0.25rem);\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: var(--font-weight-medium, 500);\n line-height: var(--line-height-tight, 1.25);\n color: var(--text-secondary, #6b7280);\n flex-wrap: wrap;\n}\n\n.delta[data-direction=\"up\"] {\n color: var(--text-success, #16a34a);\n}\n\n.delta[data-direction=\"down\"] {\n color: var(--text-danger, #dc2626);\n}\n\n.delta[data-direction=\"flat\"] {\n color: var(--text-tertiary, #6b7280);\n}\n\n.deltaGlyph {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 1em;\n line-height: 1;\n}\n\n.deltaValue {\n font-variant-numeric: tabular-nums;\n}\n\n.deltaLabel {\n color: var(--text-tertiary, #6b7280);\n font-weight: var(--font-weight-regular, 400);\n margin-left: var(--spacing-1, 0.25rem);\n}\n\n/* Visually hidden but announced to screen readers */\n.srOnly {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n/* Footer slot */\n.footer {\n margin-top: var(--spacing-1, 0.25rem);\n padding-top: var(--spacing-3, 0.75rem);\n border-top: 1px solid var(--border-default, #e5e7eb);\n font-size: var(--font-size-sm, 0.875rem);\n color: var(--text-secondary, #6b7280);\n line-height: var(--line-height-normal, 1.5);\n}\n\n.sizeSm .footer {\n padding-top: var(--spacing-2, 0.5rem);\n font-size: var(--font-size-xs, 0.75rem);\n}\n\n/* Respect reduced motion */\n@media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n}\n"
|
|
3319
|
+
"content": "/* Stat Card base: self-contained dashboard metric card\n *\n * Sizing strategy: hug content by default. Place stat cards in a grid\n * (`grid-template-columns: repeat(N, 1fr)`) or a flex row with `flex: 1`\n * per child when uniform widths are needed across a dashboard. A single\n * stat card in a generic flex-row parent renders at its natural content\n * width — the big value token drives the minimum width.\n *\n * No inline-size containment here: inline-size containment prevents the\n * element's intrinsic width from depending on its children, which means\n * it collapses to 0 inside a flex-row parent with `flex: 0 1 auto`. Since\n * the card's responsive variants are already driven by explicit props,\n * the container query buys nothing and costs the natural sizing behavior.\n */\n.base {\n --stat-card-value-font: var(--font-display, var(--font-family-heading, inherit));\n --stat-card-value-size: var(--font-size-3xl, 1.875rem);\n --stat-card-value-size-hero: var(--font-size-6xl, 3.5rem);\n\n display: flex;\n flex-direction: column;\n gap: var(--spacing-2, 0.5rem);\n padding: var(--stat-card-padding, var(--spacing-5, 1.25rem));\n background-color: var(--surface-card, #ffffff);\n border: var(--stat-card-border, 1px solid var(--border-default, #e5e7eb));\n border-radius: var(--stat-card-radius, var(--radius-lg, 0.75rem));\n color: var(--text-primary, #111827);\n box-shadow: var(--stat-card-shadow, var(--shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05)));\n transition:\n box-shadow var(--motion-duration-150, 150ms)\n var(--motion-easing-standard, ease),\n border-color var(--motion-duration-150, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n/* Default variant — just the base styles */\n.variantDefault {\n /* inherits base */\n}\n\n/* Highlight variant — accent-tinted surface with elevation\n *\n * Uses color-mix over the theme's brand accent (--interactive-primary-bg)\n * plus the theme's card surface, so the variant reads as \"featured / primary\"\n * regardless of whether the active theme is light or dark and regardless of\n * which brand color the theme ships. No hardcoded gradient — gradients\n * conflict with dark modes where lighter colors at the top look like flares.\n */\n.variantHighlight {\n background-color: color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 6%,\n var(--surface-card, #ffffff)\n );\n border-color: color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 40%,\n var(--border-default, #e5e7eb)\n );\n box-shadow:\n var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1)),\n 0 0 24px -8px\n color-mix(\n in srgb,\n var(--interactive-primary-bg, #2563eb) 25%,\n transparent\n );\n}\n\n/* Size md — default — no overrides; uses the base padding/gap/font-size */\n.sizeMd {\n /* inherits base */\n}\n\n/* Size sm — denser padding, smaller value */\n.sizeSm {\n padding: var(--spacing-4, 1rem);\n gap: var(--spacing-1, 0.25rem);\n}\n\n/* Header row: label on the left, trend slot on the right */\n.header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--spacing-3, 0.75rem);\n min-width: 0;\n}\n\n/* Label — small uppercase muted text */\n.label {\n margin: 0;\n font-size: var(--stat-card-label-font-size, var(--font-size-xs, 0.75rem));\n font-weight: var(--stat-card-label-font-weight, var(--font-weight-semibold, 600));\n letter-spacing: var(--stat-card-label-letter-spacing, var(--letter-spacing-wide, 0.05em));\n text-transform: uppercase;\n color: var(--stat-card-label-color, var(--text-tertiary, #6b7280));\n line-height: var(--stat-card-label-line-height, var(--line-height-tight, 1.25));\n min-width: 0;\n}\n\n/* Trend slot — header position (legacy): right-aligned sparkline / icon container */\n.trend {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n color: var(--text-tertiary, #6b7280);\n flex: 0 0 auto;\n}\n\n/* Trend slot — footer position (default): full-width, padded above the value row.\n *\n * Rendered as a direct child of the card root after the value/delta and before the\n * footer slot. Full card width, no fixed flex sizing — so Progress bars, full-width\n * sparklines, and anything that competes with the label for header space have room\n * to breathe. The `--stat-card-trend-padding-top` hook lets consumers tune the gap\n * to the value row without touching internal CSS.\n */\n.trendFooter {\n display: flex;\n align-items: center;\n width: 100%;\n padding-top: var(--stat-card-trend-padding-top, var(--spacing-3, 0.75rem));\n color: var(--text-tertiary, #6b7280);\n}\n\n/* Value — big numeric display */\n.value {\n margin: 0;\n font-family: var(--stat-card-value-font-family, var(--font-family-heading, inherit));\n font-size: var(--stat-card-value-font-size, var(--font-size-3xl, 1.875rem));\n font-weight: var(--stat-card-value-font-weight, var(--font-weight-semibold, 600));\n line-height: var(--stat-card-value-line-height, var(--line-height-tight, 1.1));\n letter-spacing: var(--stat-card-value-letter-spacing, var(--letter-spacing-tight, -0.02em));\n color: var(--text-primary, #111827);\n font-variant-numeric: tabular-nums;\n}\n\n/* valueAs=\"hero\" — marquee display treatment */\n.value[data-value-as=\"hero\"] {\n font-family: var(--stat-card-value-font);\n font-size: var(--stat-card-value-size-hero, var(--stat-card-value-size, 3.5rem));\n font-weight: var(--font-weight-normal, 400);\n letter-spacing: 0;\n line-height: 1;\n}\n\n/* valueAs=\"compact\" — tighter than default (2xl) */\n.value[data-value-as=\"compact\"] {\n font-size: var(--font-size-2xl, 1.5rem);\n}\n\n.sizeSm .value {\n font-size: var(--font-size-2xl, 1.5rem);\n}\n\n.sizeSm .label {\n font-size: var(--font-size-xs, 0.75rem);\n}\n\n.variantHighlight .value {\n font-size: var(--font-size-4xl, 2.25rem);\n}\n\n/* Delta row — change indicator */\n.delta {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-1, 0.25rem);\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: var(--font-weight-medium, 500);\n line-height: var(--line-height-tight, 1.25);\n color: var(--text-secondary, #6b7280);\n flex-wrap: wrap;\n}\n\n.delta[data-direction=\"up\"] {\n color: var(--text-success, #16a34a);\n}\n\n.delta[data-direction=\"down\"] {\n color: var(--text-danger, #dc2626);\n}\n\n.delta[data-direction=\"flat\"] {\n color: var(--text-tertiary, #6b7280);\n}\n\n.deltaGlyph {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 1em;\n line-height: 1;\n}\n\n.deltaValue {\n font-variant-numeric: tabular-nums;\n}\n\n.deltaLabel {\n color: var(--text-tertiary, #6b7280);\n font-weight: var(--font-weight-regular, 400);\n margin-left: var(--spacing-1, 0.25rem);\n}\n\n/* Visually hidden but announced to screen readers */\n.srOnly {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n/* Footer slot */\n.footer {\n margin-top: var(--spacing-1, 0.25rem);\n padding-top: var(--spacing-3, 0.75rem);\n border-top: var(--stat-card-footer-border, 1px solid var(--border-default, #e5e7eb));\n font-size: var(--stat-card-footer-font-size, var(--font-size-sm, 0.875rem));\n font-weight: var(--stat-card-footer-font-weight, inherit);\n color: var(--stat-card-footer-color, var(--text-secondary, #6b7280));\n line-height: var(--stat-card-footer-line-height, var(--line-height-normal, 1.5));\n}\n\n.sizeSm .footer {\n padding-top: var(--spacing-2, 0.5rem);\n font-size: var(--font-size-xs, 0.75rem);\n}\n\n/* Respect reduced motion */\n@media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n}\n"
|
|
3296
3320
|
}
|
|
3297
3321
|
]
|
|
3298
3322
|
},
|
|
@@ -3415,6 +3439,31 @@
|
|
|
3415
3439
|
}
|
|
3416
3440
|
]
|
|
3417
3441
|
},
|
|
3442
|
+
{
|
|
3443
|
+
"name": "theme-toggle",
|
|
3444
|
+
"type": "registry:ui",
|
|
3445
|
+
"description": "A round light/dark button. The icon going away turns and shrinks out as the other springs in. Controlled; keys off its own data-tone, so it works on any page.",
|
|
3446
|
+
"category": "general",
|
|
3447
|
+
"dependencies": [
|
|
3448
|
+
"@phosphor-icons/react",
|
|
3449
|
+
"@loworbitstudio/visor-core"
|
|
3450
|
+
],
|
|
3451
|
+
"registryDependencies": [
|
|
3452
|
+
"utils"
|
|
3453
|
+
],
|
|
3454
|
+
"files": [
|
|
3455
|
+
{
|
|
3456
|
+
"path": "components/ui/theme-toggle/theme-toggle.tsx",
|
|
3457
|
+
"type": "registry:ui",
|
|
3458
|
+
"content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Moon, Sun } from \"@phosphor-icons/react\"\nimport { cn } from \"../../../lib/utils\"\nimport styles from \"./theme-toggle.module.css\"\n\nexport type ThemeToggleValue = \"light\" | \"dark\"\n\nexport interface ThemeToggleProps\n extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, \"value\" | \"onChange\"> {\n /** The tone in force now. Controlled: the toggle never changes it on its own. */\n value: ThemeToggleValue\n /** Called with the other tone when the button is pressed. */\n onValueChange?: (value: ThemeToggleValue) => void\n}\n\n/**\n * A round light/dark button. Dark shows the sun, light shows the moon: the\n * icon going away turns and shrinks out as the other springs in. Keys off its\n * own `data-tone`, so it works on any page.\n */\nconst ThemeToggle = React.forwardRef<HTMLButtonElement, ThemeToggleProps>(\n ({ value, onValueChange, onClick, className, \"aria-label\": ariaLabel = \"Switch light or dark\", ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n data-slot=\"theme-toggle\"\n data-tone={value}\n aria-label={ariaLabel}\n className={cn(styles.root, className)}\n onClick={(e) => {\n onClick?.(e)\n if (!e.defaultPrevented) onValueChange?.(value === \"dark\" ? \"light\" : \"dark\")\n }}\n {...props}\n >\n <Sun weight=\"bold\" className={styles.sun} aria-hidden=\"true\" />\n <Moon weight=\"bold\" className={styles.moon} aria-hidden=\"true\" />\n </button>\n )\n)\nThemeToggle.displayName = \"ThemeToggle\"\n\nexport { ThemeToggle }\n"
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
"path": "components/ui/theme-toggle/theme-toggle.module.css",
|
|
3462
|
+
"type": "registry:ui",
|
|
3463
|
+
"content": "/* ThemeToggle: a round light/dark button, lifted from Honcho Backstage.\n\n The look is variables, so a consumer can dress it (Backstage's glass is a\n className with backdrop-filter plus these): --theme-toggle-size, -bg,\n -bg-hover, -ring, -color, -icon-size. The motion is Backstage's, exact:\n the icon going away turns 100deg and shrinks to .3 as it fades (turn\n 600ms on --theme-toggle-ease, scale 500ms on the spring, fade 300ms). */\n.root {\n /* Backstage's --ease. No Visor token carries this curve; intentional. */\n --_ease: var(--theme-toggle-ease, cubic-bezier(0.22, 1, 0.36, 1));\n position: relative;\n overflow: hidden;\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: var(--theme-toggle-size, var(--spacing-10, 2.5rem));\n height: var(--theme-toggle-size, var(--spacing-10, 2.5rem));\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: var(--radius-full, 9999px);\n background: var(--theme-toggle-bg, var(--surface-subtle, #f9fafb));\n box-shadow: inset 0 0 0 var(--stroke-width-thin, 1px) var(--theme-toggle-ring, var(--border-default, #e5e7eb));\n color: var(--theme-toggle-color, var(--text-primary, #111827));\n cursor: pointer;\n transition: background var(--motion-duration-300, 300ms) var(--_ease);\n}\n\n@media (hover: hover) {\n .root:hover {\n background: var(--theme-toggle-bg-hover, var(--surface-muted, #f3f4f6));\n }\n}\n\n/* Press: the button dips, as Backstage's glass buttons do. */\n.root:active {\n scale: 0.94;\n}\n\n.root:focus-visible {\n outline: var(--focus-ring-width, 2px) solid var(--border-focus, #3b82f6);\n outline-offset: var(--focus-ring-offset, 2px);\n}\n\n.sun,\n.moon {\n position: absolute;\n width: var(--theme-toggle-icon-size, var(--spacing-4, 1rem));\n height: var(--theme-toggle-icon-size, var(--spacing-4, 1rem));\n transition:\n rotate calc(var(--motion-duration-300, 300ms) * 2) var(--_ease),\n scale var(--motion-duration-500, 500ms) var(--motion-easing-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),\n opacity var(--motion-duration-300, 300ms);\n}\n\n/* Dark shows the sun (the way to light); light shows the moon. */\n.root[data-tone=\"dark\"] .moon {\n opacity: 0;\n rotate: -100deg;\n scale: 0.3;\n}\n\n.root[data-tone=\"light\"] .sun {\n opacity: 0;\n rotate: 100deg;\n scale: 0.3;\n}\n\n/* Reduced motion: the icons cross-fade in place, and the press does not dip. */\n@media (prefers-reduced-motion: reduce) {\n .root[data-tone] .sun,\n .root[data-tone] .moon {\n rotate: none;\n scale: none;\n transition: opacity var(--motion-duration-300, 300ms);\n }\n\n .root:active {\n scale: none;\n }\n}\n"
|
|
3464
|
+
}
|
|
3465
|
+
]
|
|
3466
|
+
},
|
|
3418
3467
|
{
|
|
3419
3468
|
"name": "box",
|
|
3420
3469
|
"type": "registry:ui",
|
|
@@ -5587,7 +5636,7 @@
|
|
|
5587
5636
|
{
|
|
5588
5637
|
"path": "components/devtools/source-inspector/visor-component-names.generated.ts",
|
|
5589
5638
|
"type": "registry:devtool",
|
|
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"
|
|
5639
|
+
"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 \"PhotoPicker\",\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 \"ThemeToggle\",\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"
|
|
5591
5640
|
}
|
|
5592
5641
|
]
|
|
5593
5642
|
},
|
package/dist/visor-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.4.0",
|
|
3
|
-
"generated_at": "2026-11-
|
|
3
|
+
"generated_at": "2026-11-20T04:46:19.501Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"accessibility-specimen": {
|
|
6
6
|
"category": "specimen",
|
|
@@ -7757,6 +7757,83 @@
|
|
|
7757
7757
|
"tokens_used": [],
|
|
7758
7758
|
"example": "<PhoneInput\n name=\"phone\"\n placeholder=\"Enter phone number\"\n onChange={(e164, isValid) => {\n console.log(e164, isValid);\n }}\n/>\n"
|
|
7759
7759
|
},
|
|
7760
|
+
"photo-picker": {
|
|
7761
|
+
"category": "form",
|
|
7762
|
+
"description": "A grid of photo thumbnails, one chosen. Each thumbnail is a pressed-state button; a staggered draw wave plays each time the picker opens, and thumbnails wait to load until it has been opened once. The consumer supplies the popover or panel.",
|
|
7763
|
+
"when_to_use": [
|
|
7764
|
+
"Picking a background, cover or header photo from a set",
|
|
7765
|
+
"A photo menu in a popover, where the wave should replay on every open",
|
|
7766
|
+
"Any single choice whose options are best shown as pictures"
|
|
7767
|
+
],
|
|
7768
|
+
"when_not_to_use": [
|
|
7769
|
+
"Uploading a new photo (use FileUpload)",
|
|
7770
|
+
"Choosing several photos at once (build a multi-select grid)",
|
|
7771
|
+
"Browsing photos full size (use Lightbox)"
|
|
7772
|
+
],
|
|
7773
|
+
"props": [
|
|
7774
|
+
{
|
|
7775
|
+
"name": "photos",
|
|
7776
|
+
"type": "{ key: string; thumb: string; label?: string }[]",
|
|
7777
|
+
"required": true,
|
|
7778
|
+
"description": "The photos, in order. label is the thumbnail's accessible name; it defaults to \"Photo N\"."
|
|
7779
|
+
},
|
|
7780
|
+
{
|
|
7781
|
+
"name": "value",
|
|
7782
|
+
"type": "string | null",
|
|
7783
|
+
"default": "null",
|
|
7784
|
+
"description": "The chosen photo's key."
|
|
7785
|
+
},
|
|
7786
|
+
{
|
|
7787
|
+
"name": "onValueChange",
|
|
7788
|
+
"type": "(key: string) => void",
|
|
7789
|
+
"description": "Called with a photo's key when it is pressed."
|
|
7790
|
+
},
|
|
7791
|
+
{
|
|
7792
|
+
"name": "play",
|
|
7793
|
+
"type": "boolean | number",
|
|
7794
|
+
"description": "The draw wave plays on mount and every time play changes, except to false. Pass the menu's open state, or a counter you bump."
|
|
7795
|
+
},
|
|
7796
|
+
{
|
|
7797
|
+
"name": "load",
|
|
7798
|
+
"type": "boolean",
|
|
7799
|
+
"default": "true",
|
|
7800
|
+
"description": "Thumbnails load only once this has been true, and stay loaded after. Pass the menu's open state to wait for the first open."
|
|
7801
|
+
}
|
|
7802
|
+
],
|
|
7803
|
+
"dependencies": [],
|
|
7804
|
+
"tokens_used": [
|
|
7805
|
+
"--_draw-duration",
|
|
7806
|
+
"--_draw-gap",
|
|
7807
|
+
"--_draw-rise",
|
|
7808
|
+
"--_ease",
|
|
7809
|
+
"--border-default",
|
|
7810
|
+
"--border-focus",
|
|
7811
|
+
"--draw-i",
|
|
7812
|
+
"--focus-ring-offset",
|
|
7813
|
+
"--focus-ring-width",
|
|
7814
|
+
"--interactive-primary-bg",
|
|
7815
|
+
"--motion-duration-200",
|
|
7816
|
+
"--motion-duration-800",
|
|
7817
|
+
"--photo-picker-columns",
|
|
7818
|
+
"--photo-picker-columns-narrow",
|
|
7819
|
+
"--photo-picker-draw-duration",
|
|
7820
|
+
"--photo-picker-draw-gap",
|
|
7821
|
+
"--photo-picker-draw-rise",
|
|
7822
|
+
"--photo-picker-ease",
|
|
7823
|
+
"--photo-picker-gap",
|
|
7824
|
+
"--photo-picker-max-height",
|
|
7825
|
+
"--photo-picker-padding",
|
|
7826
|
+
"--photo-picker-radius",
|
|
7827
|
+
"--photo-picker-ring",
|
|
7828
|
+
"--photo-picker-ring-selected",
|
|
7829
|
+
"--radius-xl",
|
|
7830
|
+
"--spacing-1",
|
|
7831
|
+
"--spacing-2",
|
|
7832
|
+
"--stroke-width-medium",
|
|
7833
|
+
"--stroke-width-thin"
|
|
7834
|
+
],
|
|
7835
|
+
"example": "<Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild><Button>Photo</Button></PopoverTrigger>\n <PopoverContent>\n <PhotoPicker\n aria-label=\"Pick Your Background\"\n photos={photos}\n value={photo}\n onValueChange={setPhoto}\n play={open}\n load={open}\n />\n </PopoverContent>\n</Popover>\n"
|
|
7836
|
+
},
|
|
7760
7837
|
"popover": {
|
|
7761
7838
|
"category": "feedback",
|
|
7762
7839
|
"description": "Floating content panel anchored to a trigger element.",
|
|
@@ -10318,8 +10395,27 @@
|
|
|
10318
10395
|
"--spacing-3",
|
|
10319
10396
|
"--spacing-4",
|
|
10320
10397
|
"--spacing-5",
|
|
10398
|
+
"--stat-card-border",
|
|
10399
|
+
"--stat-card-footer-border",
|
|
10400
|
+
"--stat-card-footer-color",
|
|
10401
|
+
"--stat-card-footer-font-size",
|
|
10402
|
+
"--stat-card-footer-font-weight",
|
|
10403
|
+
"--stat-card-footer-line-height",
|
|
10404
|
+
"--stat-card-label-color",
|
|
10405
|
+
"--stat-card-label-font-size",
|
|
10406
|
+
"--stat-card-label-font-weight",
|
|
10407
|
+
"--stat-card-label-letter-spacing",
|
|
10408
|
+
"--stat-card-label-line-height",
|
|
10409
|
+
"--stat-card-padding",
|
|
10410
|
+
"--stat-card-radius",
|
|
10411
|
+
"--stat-card-shadow",
|
|
10321
10412
|
"--stat-card-trend-padding-top",
|
|
10322
10413
|
"--stat-card-value-font",
|
|
10414
|
+
"--stat-card-value-font-family",
|
|
10415
|
+
"--stat-card-value-font-size",
|
|
10416
|
+
"--stat-card-value-font-weight",
|
|
10417
|
+
"--stat-card-value-letter-spacing",
|
|
10418
|
+
"--stat-card-value-line-height",
|
|
10323
10419
|
"--stat-card-value-size",
|
|
10324
10420
|
"--stat-card-value-size-hero",
|
|
10325
10421
|
"--surface-card",
|
|
@@ -11711,6 +11807,71 @@
|
|
|
11711
11807
|
],
|
|
11712
11808
|
"example": "import { ThemeSwitcher } from \"@/components/ui/theme-switcher/theme-switcher\"\nimport { SourceInspectorToggle } from \"@/components/devtools/source-inspector/source-inspector-toggle\"\n\n<ThemeSwitcher\n themes={[\n { id: \"default\", label: \"Default\", bodyClass: \"\" },\n { id: \"blackout\", label: \"Blackout\", bodyClass: \"blackout-theme\" },\n ]}\n extras={<SourceInspectorToggle />}\n/>\n"
|
|
11713
11809
|
},
|
|
11810
|
+
"theme-toggle": {
|
|
11811
|
+
"category": "general",
|
|
11812
|
+
"description": "A round light/dark button. Dark shows the sun and light shows the moon; on a press the icon going away turns 100deg and shrinks out as the other springs in. Controlled, and keyed off its own data-tone.",
|
|
11813
|
+
"when_to_use": [
|
|
11814
|
+
"One button that flips a page or app between light and dark",
|
|
11815
|
+
"A floating look switch, a top bar or an account menu's tone control",
|
|
11816
|
+
"The same toggle, with the same motion, across several apps that each store the tone their own way"
|
|
11817
|
+
],
|
|
11818
|
+
"when_not_to_use": [
|
|
11819
|
+
"Choosing among several themes as well as the mode (use ThemeSwitcher)",
|
|
11820
|
+
"A labelled on/off setting inside a form (use Switch)"
|
|
11821
|
+
],
|
|
11822
|
+
"props": [
|
|
11823
|
+
{
|
|
11824
|
+
"name": "value",
|
|
11825
|
+
"type": "'light' | 'dark'",
|
|
11826
|
+
"required": true,
|
|
11827
|
+
"description": "The tone in force now. Dark shows the sun, light shows the moon."
|
|
11828
|
+
},
|
|
11829
|
+
{
|
|
11830
|
+
"name": "onValueChange",
|
|
11831
|
+
"type": "(value: 'light' | 'dark') => void",
|
|
11832
|
+
"description": "Called with the other tone on a press."
|
|
11833
|
+
},
|
|
11834
|
+
{
|
|
11835
|
+
"name": "aria-label",
|
|
11836
|
+
"type": "string",
|
|
11837
|
+
"default": "\"Switch light or dark\"",
|
|
11838
|
+
"description": "The button's accessible name."
|
|
11839
|
+
},
|
|
11840
|
+
{
|
|
11841
|
+
"name": "onClick",
|
|
11842
|
+
"type": "React.MouseEventHandler<HTMLButtonElement>",
|
|
11843
|
+
"description": "Runs before onValueChange. Call preventDefault() to skip the change."
|
|
11844
|
+
}
|
|
11845
|
+
],
|
|
11846
|
+
"dependencies": [
|
|
11847
|
+
"@phosphor-icons/react"
|
|
11848
|
+
],
|
|
11849
|
+
"tokens_used": [
|
|
11850
|
+
"--_ease",
|
|
11851
|
+
"--border-default",
|
|
11852
|
+
"--border-focus",
|
|
11853
|
+
"--focus-ring-offset",
|
|
11854
|
+
"--focus-ring-width",
|
|
11855
|
+
"--motion-duration-300",
|
|
11856
|
+
"--motion-duration-500",
|
|
11857
|
+
"--motion-easing-spring",
|
|
11858
|
+
"--radius-full",
|
|
11859
|
+
"--spacing-10",
|
|
11860
|
+
"--spacing-4",
|
|
11861
|
+
"--stroke-width-thin",
|
|
11862
|
+
"--surface-muted",
|
|
11863
|
+
"--surface-subtle",
|
|
11864
|
+
"--text-primary",
|
|
11865
|
+
"--theme-toggle-bg",
|
|
11866
|
+
"--theme-toggle-bg-hover",
|
|
11867
|
+
"--theme-toggle-color",
|
|
11868
|
+
"--theme-toggle-ease",
|
|
11869
|
+
"--theme-toggle-icon-size",
|
|
11870
|
+
"--theme-toggle-ring",
|
|
11871
|
+
"--theme-toggle-size"
|
|
11872
|
+
],
|
|
11873
|
+
"example": "const [tone, setTone] = useState<\"light\" | \"dark\">(\"light\")\n\n<ThemeToggle\n value={tone}\n onValueChange={(next) => {\n setTone(next)\n document.documentElement.dataset.tone = next\n }}\n/>\n"
|
|
11874
|
+
},
|
|
11714
11875
|
"time-picker": {
|
|
11715
11876
|
"category": "form",
|
|
11716
11877
|
"description": "A time picker with a typeable field and a popover of hour and minute columns, shown in a 12- or 24-hour cycle with a configurable minute step.",
|
|
@@ -14869,6 +15030,7 @@
|
|
|
14869
15030
|
"otp-input",
|
|
14870
15031
|
"password-input",
|
|
14871
15032
|
"phone-input",
|
|
15033
|
+
"photo-picker",
|
|
14872
15034
|
"position-picker",
|
|
14873
15035
|
"radio-group",
|
|
14874
15036
|
"search-input",
|
|
@@ -14934,7 +15096,8 @@
|
|
|
14934
15096
|
"general": [
|
|
14935
15097
|
"editable-block",
|
|
14936
15098
|
"section-intro",
|
|
14937
|
-
"theme-switcher"
|
|
15099
|
+
"theme-switcher",
|
|
15100
|
+
"theme-toggle"
|
|
14938
15101
|
],
|
|
14939
15102
|
"visual-elements": [
|
|
14940
15103
|
"ambient-glow",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.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.
|
|
49
|
+
"@loworbitstudio/visor-theme-engine": "^0.41.0",
|
|
50
50
|
"commander": "^13.1.0",
|
|
51
51
|
"diff": "^8.0.4",
|
|
52
52
|
"picocolors": "^1.1.1",
|