@loworbitstudio/visor 1.49.0 → 1.50.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-14T00:04:31.505Z",
3
+ "generated_at": "2026-11-14T03:05:37.058Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "changeType": "current",
@@ -1234,12 +1234,12 @@
1234
1234
  {
1235
1235
  "path": "components/ui/banner/banner.tsx",
1236
1236
  "type": "registry:ui",
1237
- "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../../lib/utils\"\nimport styles from \"./banner.module.css\"\n\nconst bannerVariants = cva(styles.base, {\n variants: {\n intent: {\n info: styles.intentInfo,\n warning: styles.intentWarning,\n error: styles.intentError,\n success: styles.intentSuccess,\n },\n position: {\n inline: styles.positionInline,\n sticky: styles.positionSticky,\n },\n },\n defaultVariants: {\n intent: \"info\",\n position: \"inline\",\n },\n})\n\nexport interface BannerProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof bannerVariants> {}\n\nconst Banner = React.forwardRef<HTMLDivElement, BannerProps>(\n ({ className, intent, position, ...props }, ref) => {\n const role = intent === \"warning\" || intent === \"error\" ? \"alert\" : \"status\"\n return (\n <div\n ref={ref}\n data-slot=\"banner\"\n role={role}\n className={cn(bannerVariants({ intent, position }), className)}\n {...props}\n />\n )\n }\n)\nBanner.displayName = \"Banner\"\n\nconst BannerTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-title\"\n className={cn(styles.title, className)}\n {...props}\n />\n )\n }\n)\nBannerTitle.displayName = \"BannerTitle\"\n\nconst BannerDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-description\"\n className={cn(styles.description, className)}\n {...props}\n />\n )\n }\n)\nBannerDescription.displayName = \"BannerDescription\"\n\nconst BannerAction = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-action\"\n className={cn(styles.action, className)}\n {...props}\n />\n )\n }\n)\nBannerAction.displayName = \"BannerAction\"\n\nexport { Banner, BannerTitle, BannerDescription, BannerAction, bannerVariants }\n"
1237
+ "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"../../../lib/utils\"\nimport styles from \"./banner.module.css\"\n\nconst bannerVariants = cva(styles.base, {\n variants: {\n intent: {\n info: styles.intentInfo,\n warning: styles.intentWarning,\n error: styles.intentError,\n success: styles.intentSuccess,\n neutral: styles.intentNeutral,\n },\n position: {\n inline: styles.positionInline,\n sticky: styles.positionSticky,\n },\n },\n defaultVariants: {\n intent: \"info\",\n position: \"inline\",\n },\n})\n\nexport interface BannerProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof bannerVariants> {}\n\nconst Banner = React.forwardRef<HTMLDivElement, BannerProps>(\n ({ className, intent, position, ...props }, ref) => {\n const role = intent === \"warning\" || intent === \"error\" ? \"alert\" : \"status\"\n return (\n <div\n ref={ref}\n data-slot=\"banner\"\n role={role}\n className={cn(bannerVariants({ intent, position }), className)}\n {...props}\n />\n )\n }\n)\nBanner.displayName = \"Banner\"\n\nconst BannerTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-title\"\n className={cn(styles.title, className)}\n {...props}\n />\n )\n }\n)\nBannerTitle.displayName = \"BannerTitle\"\n\nconst BannerDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-description\"\n className={cn(styles.description, className)}\n {...props}\n />\n )\n }\n)\nBannerDescription.displayName = \"BannerDescription\"\n\nconst BannerAction = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"banner-action\"\n className={cn(styles.action, className)}\n {...props}\n />\n )\n }\n)\nBannerAction.displayName = \"BannerAction\"\n\nexport { Banner, BannerTitle, BannerDescription, BannerAction, bannerVariants }\n"
1238
1238
  },
1239
1239
  {
1240
1240
  "path": "components/ui/banner/banner.module.css",
1241
1241
  "type": "registry:ui",
1242
- "content": "/* Banner base.\n\n VI-625: the AN-366 retro found six separate banner systems across ~180\n instances in one admin app. Binding the `banner` family collapses them to\n one — `--banner-radius` defaults to `0` (the initial value) so the\n full-bleed bar is unchanged until a theme asks for a rounded card. */\n.base {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--banner-gap, var(--spacing-3, 0.75rem));\n padding: var(--banner-padding, var(--spacing-3, 0.75rem) var(--spacing-4, 1rem));\n font-size: var(--banner-font-size, var(--font-size-sm, 0.875rem));\n border-bottom: var(--banner-border-width, 1px) solid;\n border-radius: var(--banner-radius, 0);\n box-shadow: var(--banner-shadow, var(--shadow-sm));\n}\n\n/* Intent variants */\n.intentInfo {\n background-color: var(--banner-info-bg, var(--surface-info-subtle, transparent));\n color: var(--banner-info-text-color, var(--text-info, currentColor));\n border-color: var(--banner-info-border-color, var(--border-info, currentColor));\n}\n\n.intentWarning {\n background-color: var(--banner-warning-bg, var(--surface-warning-subtle, transparent));\n color: var(--banner-warning-text-color, var(--text-warning, currentColor));\n border-color: var(--banner-warning-border-color, var(--border-warning, currentColor));\n}\n\n.intentError {\n background-color: var(--banner-error-bg, var(--surface-error-subtle, transparent));\n color: var(--banner-error-text-color, var(--text-error, currentColor));\n border-color: var(--banner-error-border-color, var(--border-error, currentColor));\n}\n\n.intentSuccess {\n background-color: var(--banner-success-bg, var(--surface-success-subtle, transparent));\n color: var(--banner-success-text-color, var(--text-success, currentColor));\n border-color: var(--banner-success-border-color, var(--border-success, currentColor));\n}\n\n/* Position variants */\n.positionInline {\n /* Default — no extra styles */\n}\n\n.positionSticky {\n position: sticky;\n top: 0;\n z-index: 40;\n}\n\n/* Banner content wrapper */\n.content {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: calc(var(--spacing-1, 0.25rem) / 2);\n}\n\n/* BannerTitle */\n.title {\n font-weight: var(--banner-title-font-weight, var(--font-weight-semibold, 600));\n line-height: 1.5;\n color: inherit;\n}\n\n/* BannerDescription */\n.description {\n font-size: var(--banner-description-font-size, var(--font-size-sm, 0.875rem));\n color: var(--text-secondary, currentColor);\n line-height: 1.5;\n}\n\n.intentInfo .description {\n color: color-mix(in srgb, var(--text-info, currentColor) 90%, transparent);\n}\n\n.intentWarning .description {\n color: color-mix(in srgb, var(--text-warning, currentColor) 90%, transparent);\n}\n\n.intentError .description {\n color: color-mix(in srgb, var(--text-error, currentColor) 90%, transparent);\n}\n\n.intentSuccess .description {\n color: color-mix(in srgb, var(--text-success, currentColor) 90%, transparent);\n}\n\n/* BannerAction */\n.action {\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: var(--spacing-2, 0.5rem);\n}\n"
1242
+ "content": "/* Banner base.\n\n VI-625: the AN-366 retro found six separate banner systems across ~180\n instances in one admin app. Binding the `banner` family collapses them to\n one — `--banner-radius` defaults to `0` (the initial value) so the\n full-bleed bar is unchanged until a theme asks for a rounded card. */\n.base {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--banner-gap, var(--spacing-3, 0.75rem));\n padding: var(--banner-padding, var(--spacing-3, 0.75rem) var(--spacing-4, 1rem));\n font-size: var(--banner-font-size, var(--font-size-sm, 0.875rem));\n border-bottom: var(--banner-border-width, 1px) solid;\n border-radius: var(--banner-radius, 0);\n box-shadow: var(--banner-shadow, var(--shadow-sm));\n}\n\n/* Intent variants */\n.intentInfo {\n background-color: var(--banner-info-bg, var(--surface-info-subtle, transparent));\n color: var(--banner-info-text-color, var(--text-info, currentColor));\n border-color: var(--banner-info-border-color, var(--border-info, currentColor));\n}\n\n.intentWarning {\n background-color: var(--banner-warning-bg, var(--surface-warning-subtle, transparent));\n color: var(--banner-warning-text-color, var(--text-warning, currentColor));\n border-color: var(--banner-warning-border-color, var(--border-warning, currentColor));\n}\n\n.intentError {\n background-color: var(--banner-error-bg, var(--surface-error-subtle, transparent));\n color: var(--banner-error-text-color, var(--text-error, currentColor));\n border-color: var(--banner-error-border-color, var(--border-error, currentColor));\n}\n\n.intentSuccess {\n background-color: var(--banner-success-bg, var(--surface-success-subtle, transparent));\n color: var(--banner-success-text-color, var(--text-success, currentColor));\n border-color: var(--banner-success-border-color, var(--border-success, currentColor));\n}\n\n/* Neutral: the ink ground (--text-primary) with page-coloured text. No rule, because it\n is never the operator's work that is wrong (VI-776). */\n.intentNeutral {\n background-color: var(--banner-neutral-bg, var(--text-primary, currentColor));\n color: var(--banner-neutral-text-color, var(--surface-page, #fff));\n border-bottom-width: 0;\n}\n\n/* Position variants */\n.positionInline {\n /* Default — no extra styles */\n}\n\n.positionSticky {\n position: sticky;\n top: 0;\n z-index: 40;\n}\n\n/* Banner content wrapper */\n.content {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: calc(var(--spacing-1, 0.25rem) / 2);\n}\n\n/* BannerTitle */\n.title {\n font-weight: var(--banner-title-font-weight, var(--font-weight-semibold, 600));\n line-height: 1.5;\n color: inherit;\n}\n\n/* BannerDescription */\n.description {\n font-size: var(--banner-description-font-size, var(--font-size-sm, 0.875rem));\n color: var(--text-secondary, currentColor);\n line-height: 1.5;\n}\n\n/* Each intent exposes a description-colour hook; the fallback is its text colour at 90%. */\n.intentInfo .description {\n color: var(--banner-info-description-color, color-mix(in srgb, var(--text-info, currentColor) 90%, transparent));\n}\n\n.intentWarning .description {\n color: var(--banner-warning-description-color, color-mix(in srgb, var(--text-warning, currentColor) 90%, transparent));\n}\n\n.intentError .description {\n color: var(--banner-error-description-color, color-mix(in srgb, var(--text-error, currentColor) 90%, transparent));\n}\n\n.intentSuccess .description {\n color: var(--banner-success-description-color, color-mix(in srgb, var(--text-success, currentColor) 90%, transparent));\n}\n\n.intentNeutral .description {\n color: var(--banner-neutral-description-color, color-mix(in srgb, var(--banner-neutral-text-color, var(--surface-page, #fff)) 86%, transparent));\n}\n\n/* BannerAction */\n.action {\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: var(--spacing-2, 0.5rem);\n}\n"
1243
1243
  }
1244
1244
  ]
1245
1245
  },
@@ -4719,12 +4719,12 @@
4719
4719
  {
4720
4720
  "path": "blocks/profile-menu/profile-menu.tsx",
4721
4721
  "type": "registry:block",
4722
- "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n BellIcon,\n CaretUpDownIcon,\n CommandIcon,\n MoonIcon,\n QuestionIcon,\n SignOutIcon,\n UserCircleIcon,\n} from \"@phosphor-icons/react\"\nimport { cn } from \"../../lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"../../components/ui/avatar/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"../../components/ui/dropdown-menu/dropdown-menu\"\nimport styles from \"./profile-menu.module.css\"\n\nexport type ProfileMenuStatus = \"online\" | \"away\" | \"busy\" | \"offline\"\n\nconst STATUS_LABEL: Record<ProfileMenuStatus, string> = {\n online: \"Online\",\n away: \"Away\",\n busy: \"Busy\",\n offline: \"Offline\",\n}\n\nexport interface ProfileMenuUser {\n name: string\n email?: string\n avatarUrl?: string\n initials?: string\n status?: ProfileMenuStatus\n}\n\nexport interface ProfileMenuContext {\n label: string\n icon?: React.ReactNode\n}\n\nexport type ProfileMenuItem =\n | {\n type: \"item\"\n icon?: React.ReactNode\n label: string\n shortcut?: string\n badge?: React.ReactNode\n variant?: \"default\" | \"destructive\"\n onSelect?: () => void\n }\n | { type: \"separator\" }\n | { type: \"label\"; text: string }\n\nexport interface ProfileMenuProps {\n user: ProfileMenuUser\n context?: ProfileMenuContext\n items: ProfileMenuItem[]\n onSignOut?: () => void\n /** Register a window-level ⌘⇧Q / Ctrl+⇧+Q handler that calls onSignOut. Default false. */\n enableGlobalShortcuts?: boolean\n /** Open direction. Default \"top\" — footer is bottom-anchored. */\n side?: \"top\" | \"bottom\" | \"auto\"\n className?: string\n}\n\nfunction deriveInitials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean)\n if (parts.length === 0) return \"?\"\n if (parts.length === 1) return parts[0]!.slice(0, 2).toUpperCase()\n return ((parts[0]![0] ?? \"\") + (parts[parts.length - 1]![0] ?? \"\")).toUpperCase()\n}\n\nexport function ProfileMenu({\n user,\n context,\n items,\n onSignOut,\n enableGlobalShortcuts = false,\n side = \"top\",\n className,\n}: ProfileMenuProps) {\n const initials = user.initials ?? deriveInitials(user.name)\n const triggerLabel = context?.label\n ? `Account menu · ${user.name} · ${context.label}`\n : `Account menu · ${user.name}`\n\n React.useEffect(() => {\n if (!enableGlobalShortcuts || !onSignOut) return\n function handler(event: KeyboardEvent) {\n const mod = event.metaKey || event.ctrlKey\n if (mod && event.shiftKey && (event.key === \"Q\" || event.key === \"q\")) {\n event.preventDefault()\n onSignOut?.()\n }\n }\n window.addEventListener(\"keydown\", handler)\n return () => window.removeEventListener(\"keydown\", handler)\n }, [enableGlobalShortcuts, onSignOut])\n\n const contentSide = side === \"auto\" ? undefined : side\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n aria-label={triggerLabel}\n data-slot=\"profile-menu-trigger\"\n className={cn(styles.trigger, className)}\n >\n <span className={styles.triggerAvatarWrap}>\n <Avatar size=\"default\" className={styles.triggerAvatar} aria-hidden=\"true\">\n {user.avatarUrl ? (\n <AvatarImage src={user.avatarUrl} alt=\"\" />\n ) : null}\n <AvatarFallback aria-hidden=\"true\">{initials}</AvatarFallback>\n </Avatar>\n {user.status ? (\n <span\n className={styles.statusDot}\n data-status={user.status}\n role=\"img\"\n aria-label={STATUS_LABEL[user.status]}\n />\n ) : null}\n </span>\n\n <span className={styles.triggerIdentity} aria-hidden=\"true\">\n <span className={styles.triggerName}>{user.name}</span>\n {context ? (\n <span className={styles.triggerContext}>\n {context.icon ? (\n <span className={styles.triggerContextIcon} aria-hidden=\"true\">\n {context.icon}\n </span>\n ) : null}\n <span className={styles.triggerContextLabel}>{context.label}</span>\n </span>\n ) : null}\n </span>\n\n <CaretUpDownIcon\n size={14}\n weight=\"regular\"\n aria-hidden=\"true\"\n className={styles.triggerCaret}\n />\n </button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent\n side={contentSide}\n align=\"start\"\n sideOffset={6}\n className={styles.content}\n >\n {user.email ? (\n <DropdownMenuLabel className={styles.menuHeader}>\n <span className={styles.menuHeaderHint}>Signed in as</span>\n <span className={styles.menuHeaderEmail}>{user.email}</span>\n </DropdownMenuLabel>\n ) : null}\n\n {items.map((entry, index) => {\n if (entry.type === \"separator\") {\n return <DropdownMenuSeparator key={`sep-${index}`} />\n }\n if (entry.type === \"label\") {\n return (\n <DropdownMenuLabel key={`label-${index}`}>\n {entry.text}\n </DropdownMenuLabel>\n )\n }\n return (\n <DropdownMenuItem\n key={`item-${index}-${entry.label}`}\n variant={entry.variant ?? \"default\"}\n onSelect={entry.onSelect}\n className={styles.item}\n data-slot=\"profile-menu-item\"\n >\n {entry.icon ? (\n <span className={styles.itemIcon} aria-hidden=\"true\">\n {entry.icon}\n </span>\n ) : null}\n <span className={styles.itemLabel}>{entry.label}</span>\n {entry.badge != null ? (\n <span className={styles.itemBadge} data-slot=\"profile-menu-item-badge\">\n {entry.badge}\n </span>\n ) : null}\n {entry.shortcut ? (\n <DropdownMenuShortcut className={styles.itemShortcut}>\n {entry.shortcut}\n </DropdownMenuShortcut>\n ) : null}\n </DropdownMenuItem>\n )\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n\nexport interface DefaultProfileMenuOptions {\n onSignOut?: () => void\n notificationCount?: number\n}\n\nexport function defaultProfileMenuItems(\n user: ProfileMenuUser,\n opts: DefaultProfileMenuOptions = {}\n): ProfileMenuItem[] {\n void user\n const items: ProfileMenuItem[] = [\n {\n type: \"item\",\n icon: <UserCircleIcon size={16} weight=\"regular\" />,\n label: \"Account settings\",\n },\n {\n type: \"item\",\n icon: <BellIcon size={16} weight=\"regular\" />,\n label: \"Notifications\",\n badge:\n typeof opts.notificationCount === \"number\" && opts.notificationCount > 0\n ? opts.notificationCount\n : undefined,\n },\n {\n type: \"item\",\n icon: <MoonIcon size={16} weight=\"regular\" />,\n label: \"Appearance\",\n },\n {\n type: \"item\",\n icon: <CommandIcon size={16} weight=\"regular\" />,\n label: \"Keyboard shortcuts\",\n shortcut: \"⌘/\",\n },\n {\n type: \"item\",\n icon: <QuestionIcon size={16} weight=\"regular\" />,\n label: \"Help & docs\",\n },\n { type: \"separator\" },\n {\n type: \"item\",\n icon: <SignOutIcon size={16} weight=\"regular\" />,\n label: \"Sign out\",\n shortcut: \"⌘⇧Q\",\n variant: \"destructive\",\n onSelect: opts.onSignOut,\n },\n ]\n return items\n}\n"
4722
+ "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n BellIcon,\n CaretUpDownIcon,\n CommandIcon,\n MoonIcon,\n QuestionIcon,\n SignOutIcon,\n UserCircleIcon,\n} from \"@phosphor-icons/react\"\nimport { cn } from \"../../lib/utils\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"../../components/ui/avatar/avatar\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuTrigger,\n} from \"../../components/ui/dropdown-menu/dropdown-menu\"\nimport styles from \"./profile-menu.module.css\"\n\nexport type ProfileMenuStatus = \"online\" | \"away\" | \"busy\" | \"offline\"\n\nconst STATUS_LABEL: Record<ProfileMenuStatus, string> = {\n online: \"Online\",\n away: \"Away\",\n busy: \"Busy\",\n offline: \"Offline\",\n}\n\nexport interface ProfileMenuUser {\n name: string\n email?: string\n avatarUrl?: string\n initials?: string\n status?: ProfileMenuStatus\n}\n\nexport interface ProfileMenuContext {\n label: string\n icon?: React.ReactNode\n}\n\nexport type ProfileMenuItem =\n | {\n type: \"item\"\n icon?: React.ReactNode\n label: string\n shortcut?: string\n badge?: React.ReactNode\n variant?: \"default\" | \"destructive\"\n onSelect?: () => void\n }\n | { type: \"separator\" }\n | { type: \"label\"; text: string }\n\nexport interface ProfileMenuProps {\n user: ProfileMenuUser\n context?: ProfileMenuContext\n items: ProfileMenuItem[]\n onSignOut?: () => void\n /** Register a window-level ⌘⇧Q / Ctrl+⇧+Q handler that calls onSignOut. Default false. */\n enableGlobalShortcuts?: boolean\n /** Open direction. Default \"top\" — footer is bottom-anchored. */\n side?: \"top\" | \"bottom\" | \"auto\"\n className?: string\n}\n\nfunction deriveInitials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean)\n if (parts.length === 0) return \"?\"\n if (parts.length === 1) return parts[0]!.slice(0, 2).toUpperCase()\n return ((parts[0]![0] ?? \"\") + (parts[parts.length - 1]![0] ?? \"\")).toUpperCase()\n}\n\nexport function ProfileMenu({\n user,\n context,\n items,\n onSignOut,\n enableGlobalShortcuts = false,\n side = \"top\",\n className,\n}: ProfileMenuProps) {\n const initials = user.initials ?? deriveInitials(user.name)\n const triggerLabel = context?.label\n ? `Account menu · ${user.name} · ${context.label}`\n : `Account menu · ${user.name}`\n\n React.useEffect(() => {\n if (!enableGlobalShortcuts || !onSignOut) return\n function handler(event: KeyboardEvent) {\n const mod = event.metaKey || event.ctrlKey\n if (mod && event.shiftKey && (event.key === \"Q\" || event.key === \"q\")) {\n event.preventDefault()\n onSignOut?.()\n }\n }\n window.addEventListener(\"keydown\", handler)\n return () => window.removeEventListener(\"keydown\", handler)\n }, [enableGlobalShortcuts, onSignOut])\n\n const contentSide = side === \"auto\" ? undefined : side\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <button\n type=\"button\"\n aria-label={triggerLabel}\n data-slot=\"profile-menu-trigger\"\n className={cn(styles.trigger, className)}\n >\n <span className={styles.triggerAvatarWrap}>\n <Avatar size=\"default\" className={styles.triggerAvatar} aria-hidden=\"true\">\n {user.avatarUrl ? (\n <AvatarImage src={user.avatarUrl} alt=\"\" />\n ) : null}\n <AvatarFallback aria-hidden=\"true\">{initials}</AvatarFallback>\n </Avatar>\n {user.status ? (\n <span\n className={styles.statusDot}\n data-status={user.status}\n role=\"img\"\n aria-label={STATUS_LABEL[user.status]}\n />\n ) : null}\n </span>\n\n <span\n className={styles.triggerIdentity}\n aria-hidden=\"true\"\n data-admin-shell-label\n >\n <span className={styles.triggerName}>{user.name}</span>\n {context ? (\n <span className={styles.triggerContext}>\n {context.icon ? (\n <span className={styles.triggerContextIcon} aria-hidden=\"true\">\n {context.icon}\n </span>\n ) : null}\n <span className={styles.triggerContextLabel}>{context.label}</span>\n </span>\n ) : null}\n </span>\n\n <CaretUpDownIcon\n size={14}\n weight=\"regular\"\n aria-hidden=\"true\"\n className={styles.triggerCaret}\n data-admin-shell-label\n />\n </button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent\n side={contentSide}\n align=\"start\"\n sideOffset={6}\n className={styles.content}\n >\n {user.email ? (\n <DropdownMenuLabel className={styles.menuHeader}>\n <span className={styles.menuHeaderHint}>Signed in as</span>\n <span className={styles.menuHeaderEmail}>{user.email}</span>\n </DropdownMenuLabel>\n ) : null}\n\n {items.map((entry, index) => {\n if (entry.type === \"separator\") {\n return <DropdownMenuSeparator key={`sep-${index}`} />\n }\n if (entry.type === \"label\") {\n return (\n <DropdownMenuLabel key={`label-${index}`}>\n {entry.text}\n </DropdownMenuLabel>\n )\n }\n return (\n <DropdownMenuItem\n key={`item-${index}-${entry.label}`}\n variant={entry.variant ?? \"default\"}\n onSelect={entry.onSelect}\n className={styles.item}\n data-slot=\"profile-menu-item\"\n >\n {entry.icon ? (\n <span className={styles.itemIcon} aria-hidden=\"true\">\n {entry.icon}\n </span>\n ) : null}\n <span className={styles.itemLabel}>{entry.label}</span>\n {entry.badge != null ? (\n <span className={styles.itemBadge} data-slot=\"profile-menu-item-badge\">\n {entry.badge}\n </span>\n ) : null}\n {entry.shortcut ? (\n <DropdownMenuShortcut className={styles.itemShortcut}>\n {entry.shortcut}\n </DropdownMenuShortcut>\n ) : null}\n </DropdownMenuItem>\n )\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n\nexport interface DefaultProfileMenuOptions {\n onSignOut?: () => void\n notificationCount?: number\n}\n\nexport function defaultProfileMenuItems(\n user: ProfileMenuUser,\n opts: DefaultProfileMenuOptions = {}\n): ProfileMenuItem[] {\n void user\n const items: ProfileMenuItem[] = [\n {\n type: \"item\",\n icon: <UserCircleIcon size={16} weight=\"regular\" />,\n label: \"Account settings\",\n },\n {\n type: \"item\",\n icon: <BellIcon size={16} weight=\"regular\" />,\n label: \"Notifications\",\n badge:\n typeof opts.notificationCount === \"number\" && opts.notificationCount > 0\n ? opts.notificationCount\n : undefined,\n },\n {\n type: \"item\",\n icon: <MoonIcon size={16} weight=\"regular\" />,\n label: \"Appearance\",\n },\n {\n type: \"item\",\n icon: <CommandIcon size={16} weight=\"regular\" />,\n label: \"Keyboard shortcuts\",\n shortcut: \"⌘/\",\n },\n {\n type: \"item\",\n icon: <QuestionIcon size={16} weight=\"regular\" />,\n label: \"Help & docs\",\n },\n { type: \"separator\" },\n {\n type: \"item\",\n icon: <SignOutIcon size={16} weight=\"regular\" />,\n label: \"Sign out\",\n shortcut: \"⌘⇧Q\",\n variant: \"destructive\",\n onSelect: opts.onSignOut,\n },\n ]\n return items\n}\n"
4723
4723
  },
4724
4724
  {
4725
4725
  "path": "blocks/profile-menu/profile-menu.module.css",
4726
4726
  "type": "registry:block",
4727
- "content": "/* Trigger button */\n.trigger {\n display: flex;\n align-items: center;\n gap: var(--spacing-3, 0.75rem);\n width: 100%;\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n background: transparent;\n color: var(--text-primary, #111827);\n border: 1px solid transparent;\n border-radius: var(--radius-md, 0.375rem);\n font-size: var(--font-size-sm, 0.875rem);\n text-align: start;\n cursor: pointer;\n min-width: 0;\n transition:\n background-color var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease),\n border-color var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n.trigger:hover {\n background: var(--surface-interactive-hover, var(--surface-hover, #f3f4f6));\n}\n\n.trigger: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.trigger[data-state=\"open\"] {\n background: var(--surface-interactive-hover, var(--surface-hover, #f3f4f6));\n}\n\n.triggerAvatarWrap {\n position: relative;\n flex-shrink: 0;\n display: inline-flex;\n}\n\n.triggerAvatar {\n flex-shrink: 0;\n}\n\n.statusDot {\n position: absolute;\n bottom: 0;\n right: 0;\n width: var(--spacing-2-5, 0.625rem);\n height: var(--spacing-2-5, 0.625rem);\n border-radius: 999px;\n border: var(--stroke-width-medium, 2px) solid\n var(--surface-card, #ffffff);\n background: var(--text-tertiary, #6b7280);\n}\n\n.statusDot[data-status=\"online\"] {\n background: var(--status-success, #10b981);\n}\n\n.statusDot[data-status=\"away\"] {\n background: var(--status-warning, #f59e0b);\n}\n\n.statusDot[data-status=\"busy\"] {\n background: var(--status-error, #ef4444);\n}\n\n.statusDot[data-status=\"offline\"] {\n background: var(--text-tertiary, #6b7280);\n}\n\n.triggerIdentity {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 1 auto;\n min-width: 0;\n line-height: 1.2;\n}\n\n.triggerName {\n font-weight: var(--font-weight-semibold, 600);\n font-size: var(--font-size-sm, 0.875rem);\n color: var(--text-primary, #111827);\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.triggerContext {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-1, 0.25rem);\n font-weight: var(--font-weight-regular, 400);\n font-size: var(--font-size-xs, 0.75rem);\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n width: 100%;\n min-width: 0;\n margin-top: var(--spacing-0-5, 0.125rem);\n}\n\n.triggerContextIcon {\n display: inline-flex;\n flex-shrink: 0;\n width: 0.875rem;\n height: 0.875rem;\n}\n\n.triggerContextLabel {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.triggerCaret {\n flex-shrink: 0;\n margin-inline-start: auto;\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n}\n\n/* Menu content */\n.content {\n min-width: 14rem;\n}\n\n.menuHeader {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-0-5, 0.125rem);\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n}\n\n.menuHeaderHint {\n font-size: var(--font-size-xs, 0.75rem);\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n}\n\n.menuHeaderEmail {\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: var(--font-weight-medium, 500);\n color: var(--text-primary, #111827);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* Item rows */\n.item {\n gap: var(--spacing-2, 0.5rem);\n}\n\n.itemIcon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n flex-shrink: 0;\n color: var(--text-secondary, #6b7280);\n}\n\n.itemLabel {\n flex: 1 1 auto;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.itemBadge {\n margin-inline-start: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 1.25rem;\n padding: 0 var(--spacing-1-5, 0.375rem);\n border-radius: 999px;\n background: var(--accent-subtle, color-mix(in srgb, var(--primary, #3b82f6) 18%, transparent));\n color: var(--primary, #3b82f6);\n font-size: var(--font-size-xs, 0.75rem);\n font-weight: var(--font-weight-semibold, 600);\n line-height: 1.4;\n}\n\n/* When both badge and shortcut are present, keep shortcut after badge. */\n.itemBadge + .itemShortcut {\n margin-inline-start: var(--spacing-2, 0.5rem);\n}\n\n.itemShortcut {\n /* DropdownMenuShortcut already aligns to the end via margin-left: auto.\n When a badge precedes it, we override margin-left above to keep spacing. */\n}\n"
4727
+ "content": "/* Trigger button */\n.trigger {\n display: flex;\n align-items: center;\n gap: var(--spacing-3, 0.75rem);\n width: 100%;\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n background: transparent;\n color: var(--text-primary, #111827);\n border: 1px solid transparent;\n border-radius: var(--radius-md, 0.375rem);\n font-size: var(--font-size-sm, 0.875rem);\n text-align: start;\n cursor: pointer;\n min-width: 0;\n transition:\n background-color var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease),\n border-color var(--motion-duration-fast, 150ms)\n var(--motion-easing-standard, ease);\n}\n\n.trigger:hover {\n background: var(--surface-interactive-hover, var(--surface-hover, #f3f4f6));\n}\n\n.trigger: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.trigger[data-state=\"open\"] {\n background: var(--surface-interactive-hover, var(--surface-hover, #f3f4f6));\n}\n\n/* In AdminShell's rail the label spans are hidden; the trigger shrinks to its avatar. */\n[data-collapsed=\"true\"] .trigger {\n width: auto;\n padding: var(--spacing-1, 0.25rem);\n justify-content: center;\n}\n\n.triggerAvatarWrap {\n position: relative;\n flex-shrink: 0;\n display: inline-flex;\n}\n\n.triggerAvatar {\n flex-shrink: 0;\n}\n\n.statusDot {\n position: absolute;\n bottom: 0;\n right: 0;\n width: var(--spacing-2-5, 0.625rem);\n height: var(--spacing-2-5, 0.625rem);\n border-radius: 999px;\n border: var(--stroke-width-medium, 2px) solid\n var(--surface-card, #ffffff);\n background: var(--text-tertiary, #6b7280);\n}\n\n.statusDot[data-status=\"online\"] {\n background: var(--status-success, #10b981);\n}\n\n.statusDot[data-status=\"away\"] {\n background: var(--status-warning, #f59e0b);\n}\n\n.statusDot[data-status=\"busy\"] {\n background: var(--status-error, #ef4444);\n}\n\n.statusDot[data-status=\"offline\"] {\n background: var(--text-tertiary, #6b7280);\n}\n\n.triggerIdentity {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 1 auto;\n min-width: 0;\n line-height: 1.2;\n}\n\n.triggerName {\n font-weight: var(--font-weight-semibold, 600);\n font-size: var(--font-size-sm, 0.875rem);\n color: var(--text-primary, #111827);\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.triggerContext {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-1, 0.25rem);\n font-weight: var(--font-weight-regular, 400);\n font-size: var(--font-size-xs, 0.75rem);\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n width: 100%;\n min-width: 0;\n margin-top: var(--spacing-0-5, 0.125rem);\n}\n\n.triggerContextIcon {\n display: inline-flex;\n flex-shrink: 0;\n width: 0.875rem;\n height: 0.875rem;\n}\n\n.triggerContextLabel {\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.triggerCaret {\n flex-shrink: 0;\n margin-inline-start: auto;\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n}\n\n/* Menu content */\n.content {\n min-width: 14rem;\n}\n\n.menuHeader {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-0-5, 0.125rem);\n padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);\n}\n\n.menuHeaderHint {\n font-size: var(--font-size-xs, 0.75rem);\n color: var(--text-tertiary, var(--text-secondary, #6b7280));\n}\n\n.menuHeaderEmail {\n font-size: var(--font-size-sm, 0.875rem);\n font-weight: var(--font-weight-medium, 500);\n color: var(--text-primary, #111827);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* Item rows */\n.item {\n gap: var(--spacing-2, 0.5rem);\n}\n\n.itemIcon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1rem;\n flex-shrink: 0;\n color: var(--text-secondary, #6b7280);\n}\n\n.itemLabel {\n flex: 1 1 auto;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.itemBadge {\n margin-inline-start: auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 1.25rem;\n padding: 0 var(--spacing-1-5, 0.375rem);\n border-radius: 999px;\n background: var(--accent-subtle, color-mix(in srgb, var(--primary, #3b82f6) 18%, transparent));\n color: var(--primary, #3b82f6);\n font-size: var(--font-size-xs, 0.75rem);\n font-weight: var(--font-weight-semibold, 600);\n line-height: 1.4;\n}\n\n/* When both badge and shortcut are present, keep shortcut after badge. */\n.itemBadge + .itemShortcut {\n margin-inline-start: var(--spacing-2, 0.5rem);\n}\n\n.itemShortcut {\n /* DropdownMenuShortcut already aligns to the end via margin-left: auto.\n When a badge precedes it, we override margin-left above to keep spacing. */\n}\n"
4728
4728
  }
4729
4729
  ]
4730
4730
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.4.0",
3
- "generated_at": "2026-11-14T00:04:31.498Z",
3
+ "generated_at": "2026-11-14T03:05:37.052Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "category": "specimen",
@@ -614,7 +614,8 @@
614
614
  "info",
615
615
  "warning",
616
616
  "error",
617
- "success"
617
+ "success",
618
+ "neutral"
618
619
  ],
619
620
  "position": [
620
621
  "inline",
@@ -624,7 +625,7 @@
624
625
  "props": [
625
626
  {
626
627
  "name": "intent",
627
- "type": "'info' | 'warning' | 'error' | 'success'",
628
+ "type": "'info' | 'warning' | 'error' | 'success' | 'neutral'",
628
629
  "default": "info"
629
630
  },
630
631
  {
@@ -656,21 +657,28 @@
656
657
  "--banner-description-font-size",
657
658
  "--banner-error-bg",
658
659
  "--banner-error-border-color",
660
+ "--banner-error-description-color",
659
661
  "--banner-error-text-color",
660
662
  "--banner-font-size",
661
663
  "--banner-gap",
662
664
  "--banner-info-bg",
663
665
  "--banner-info-border-color",
666
+ "--banner-info-description-color",
664
667
  "--banner-info-text-color",
668
+ "--banner-neutral-bg",
669
+ "--banner-neutral-description-color",
670
+ "--banner-neutral-text-color",
665
671
  "--banner-padding",
666
672
  "--banner-radius",
667
673
  "--banner-shadow",
668
674
  "--banner-success-bg",
669
675
  "--banner-success-border-color",
676
+ "--banner-success-description-color",
670
677
  "--banner-success-text-color",
671
678
  "--banner-title-font-weight",
672
679
  "--banner-warning-bg",
673
680
  "--banner-warning-border-color",
681
+ "--banner-warning-description-color",
674
682
  "--banner-warning-text-color",
675
683
  "--border-error",
676
684
  "--border-info",
@@ -685,10 +693,12 @@
685
693
  "--spacing-4",
686
694
  "--surface-error-subtle",
687
695
  "--surface-info-subtle",
696
+ "--surface-page",
688
697
  "--surface-success-subtle",
689
698
  "--surface-warning-subtle",
690
699
  "--text-error",
691
700
  "--text-info",
701
+ "--text-primary",
692
702
  "--text-secondary",
693
703
  "--text-success",
694
704
  "--text-warning"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor",
3
- "version": "1.49.0",
3
+ "version": "1.50.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.37.0",
49
+ "@loworbitstudio/visor-theme-engine": "^0.38.0",
50
50
  "commander": "^13.1.0",
51
51
  "diff": "^8.0.4",
52
52
  "picocolors": "^1.1.1",