An open source design system that's fully customizable and agent ready
TypeScript
chore: fix all 208 unused-vars lint warnings (#2210)
Andrey Goder3306dfed7b4d
diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.tsindex c84732cbaa..cc37599d16 100644--- a/apps/docsite/src/__tests__/data-extraction.test.ts+++ b/apps/docsite/src/__tests__/data-extraction.test.ts@@ -534,7 +534,7 @@ describe('showcaseRegistry', () => {});it('every entry is a function (dynamic import loader)', () => {- for (const [key, loader] of Object.entries(showcaseRegistry)) {+ for (const [_key, loader] of Object.entries(showcaseRegistry)) {expect(typeof loader).toBe('function');}});@@ -609,9 +609,6 @@ describe('exampleRegistry', () => {it('does not include showcases', () => {// Every example in the registry should NOT be a showcase// (showcases have their own registry)- const allExampleNames = Object.values(exampleRegistry)- .flat()- .map(e => e.name);// Showcase names typically don't have a dash separator// but more importantly, the generator filters isShowcase: true// Just verify count makes sense: examples + showcases ≈ total blocksdiff --git a/apps/docsite/src/components/DocsShell.tsx b/apps/docsite/src/components/DocsShell.tsxindex 684b9815e0..66f77e1380 100644--- a/apps/docsite/src/components/DocsShell.tsx+++ b/apps/docsite/src/components/DocsShell.tsx@@ -8,7 +8,6 @@ import {XDSCenter} from '@xds/core/Center';import {XDSSideNav, XDSSideNavItem, XDSSideNavSection} from '@xds/core/SideNav';import {SharedTopNav} from './SharedTopNav';import {XDSLink} from '@xds/core/Link';-import {XDSText} from '@xds/core/Text';import type {ComponentEntry} from '../generated/componentRegistry';import type {PackageMeta} from '../generated/packageRegistry';import type {DocTopic} from '../generated/docsRegistry';@@ -45,33 +44,14 @@ function buildComponentSidebar(): {return {componentItems: grouped.items, utilities: grouped.utilities};}-// ── Wordmark ───────────────────────────────────────────────────────────--const GitHubIcon = ({- width = 20,- height = 20,-}: {- width?: number;- height?: number;-}) => (- <svg- width={width}- height={height}- viewBox="0 0 24 24"- fill="currentColor"- xmlns="http://www.w3.org/2000/svg">- <path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12Z" />- </svg>-);-// ── Shell ──────────────────────────────────────────────────────────────export function DocsShell({children,- components,+ _components,packages,docTopics,- templates,+ _templates,defaultIsMobile,}: DocsShellProps) {const pathname = usePathname();diff --git a/apps/docsite/src/components/TemplateThumbnail.tsx b/apps/docsite/src/components/TemplateThumbnail.tsxindex a8c58a2866..f7611330e6 100644--- a/apps/docsite/src/components/TemplateThumbnail.tsx+++ b/apps/docsite/src/components/TemplateThumbnail.tsx@@ -9,14 +9,11 @@ import React, {useState,useEffect,useCallback,- Activity,} from 'react';import * as stylex from '@stylexjs/stylex';import {XDSSkeleton} from '@xds/core/Skeleton';-import {XDSText} from '@xds/core/Text';const FIXED_SCALE = 0.5;-const PREVIEW_HEIGHT = 1080;const styles = stylex.create({container: {@@ -52,33 +49,6 @@ const styles = stylex.create({},});-class ThumbnailErrorBoundary extends React.Component<- {children: React.ReactNode; slug: string},- {hasError: boolean}-> {- constructor(props: {children: React.ReactNode; slug: string}) {- super(props);- this.state = {hasError: false};- }-- static getDerivedStateFromError() {- return {hasError: true};- }-- render() {- if (this.state.hasError) {- return (- <div {...stylex.props(styles.errorFallback)}>- <XDSText type="supporting" color="secondary">- Preview unavailable- </XDSText>- </div>- );- }- return this.props.children;- }-}-/*** Lazy-loaded template component registry.* Maps slugs to dynamically imported template page components.diff --git a/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx b/apps/docsite/src/components/component-detail/ComponentDetailClient.tsxindex 38c3ea0aa0..9b79a7487f 100644--- a/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx+++ b/apps/docsite/src/components/component-detail/ComponentDetailClient.tsx@@ -16,7 +16,6 @@ import {ShowcasePreview} from './ShowcasePreview';import {BestPractices} from './BestPractices';import {HookSignature} from './HookSignature';import {ExampleBlock} from './ExampleBlock';-import {PropsTable} from './PropsTable';import {InteractivePreviewStage,useInteractiveState,diff --git a/apps/sandbox/scripts/generate-versions.js b/apps/sandbox/scripts/generate-versions.jsindex 362ae75d04..acb10cb828 100644--- a/apps/sandbox/scripts/generate-versions.js+++ b/apps/sandbox/scripts/generate-versions.js@@ -1,7 +1,7 @@// Copyright (c) Meta Platforms, Inc. and affiliates./* global require, console, __dirname */-/* eslint-disable no-undef, @typescript-eslint/no-require-imports */+/* eslint-disable @typescript-eslint/no-require-imports *//*** Generates apps/sandbox/src/generated/versionRegistry.ts from git tags.* Finds all tags matching 'docsite-*' and writes them as a typed array.diff --git a/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsxindex 4f470949f3..2204f376de 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/dictation-lab/page.tsx@@ -2,8 +2,7 @@'use client';-import {useState, useEffect, useCallback, useRef} from 'react';-import * as stylex from '@stylexjs/stylex';+import {useState, useCallback, useRef} from 'react';import {XDSVStack, XDSHStack} from '@xds/core/Stack';import {XDSText, XDSHeading} from '@xds/core/Text';import {XDSCard} from '@xds/core/Card';@@ -350,7 +349,6 @@ function SoundBarsButton({size?: 'sm' | 'md';}) {const {isListening, bands, volume} = dictation;- const boosted = Math.min(Math.pow(volume / 0.1, 0.5), 1);const isClipping = volume >= 0.1;const hueShift = isClipping ? Math.min((volume - 0.1) / 0.1, 1) * 60 : 0;@@ -425,18 +423,6 @@ function SoundBarsButton({// Page-level styles// =============================================================================-const pageStyles = stylex.create({- variantCell: {- display: 'flex',- flexDirection: 'column',- alignItems: 'center',- gap: '8px',- padding: '16px',- cursor: 'pointer',- borderRadius: '8px',- },-});-// =============================================================================// Page// =============================================================================@@ -536,30 +522,68 @@ export default function DictationLabPage() {{/* Debug: Raw vs Calibrated bands */}{dictation.isListening && (<XDSVStack gap={1}>- <XDSText type="supporting" weight="semibold">Band Debug (raw vs calibrated)</XDSText>- <div style={{display: 'flex', gap: 8, fontFamily: 'monospace', fontSize: 11}}>- {['170-340', '340-860', '860-1.7k', '1.7-3k', '3k+'].map((label, i) => {- const raw = dictation.rawBands[i] ?? 0;- const clean = dictation.bands[i] ?? 0;- const barH = 40;- return (- <div key={label} style={{display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, flex: 1}}>- <div style={{display: 'flex', gap: 2, alignItems: 'flex-end', height: barH}}>- <div style={{- width: 8, backgroundColor: 'rgba(200,200,200,0.5)',- height: Math.min(raw * barH * 5, barH), borderRadius: 2,- }} />- <div style={{- width: 8, backgroundColor: 'var(--color-accent, hsl(210, 80%, 50%))',- height: Math.min(clean * barH * 5, barH), borderRadius: 2,- }} />+ <XDSText type="supporting" weight="semibold">+ Band Debug (raw vs calibrated)+ </XDSText>+ <div+ style={{+ display: 'flex',+ gap: 8,+ fontFamily: 'monospace',+ fontSize: 11,+ }}>+ {['170-340', '340-860', '860-1.7k', '1.7-3k', '3k+'].map(+ (label, i) => {+ const raw = dictation.rawBands[i] ?? 0;+ const clean = dictation.bands[i] ?? 0;+ const barH = 40;+ return (+ <div+ key={label}+ style={{+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'center',+ gap: 2,+ flex: 1,+ }}>+ <div+ style={{+ display: 'flex',+ gap: 2,+ alignItems: 'flex-end',+ height: barH,+ }}>+ <div+ style={{+ width: 8,+ backgroundColor: 'rgba(200,200,200,0.5)',+ height: Math.min(raw * barH * 5, barH),+ borderRadius: 2,+ }}+ />+ <div+ style={{+ width: 8,+ backgroundColor:+ 'var(--color-accent, hsl(210, 80%, 50%))',+ height: Math.min(clean * barH * 5, barH),+ borderRadius: 2,+ }}+ />+ </div>+ <span style={{opacity: 0.5, fontSize: 9}}>{label}</span>+ <span style={{opacity: 0.4}}>r:{raw.toFixed(3)}</span>+ <span+ style={{+ color: 'var(--color-accent, hsl(210, 80%, 50%))',+ }}>+ c:{clean.toFixed(3)}+ </span></div>- <span style={{opacity: 0.5, fontSize: 9}}>{label}</span>- <span style={{opacity: 0.4}}>r:{raw.toFixed(3)}</span>- <span style={{color: 'var(--color-accent, hsl(210, 80%, 50%))'}}>c:{clean.toFixed(3)}</span>- </div>- );- })}+ );+ },+ )}</div><XDSText type="supporting" color="disabled">Gray = raw mic input, Blue = after noise floor subtractiondiff --git a/apps/sandbox/src/app/(fullscreen)/pages/doc-home/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/doc-home/page.tsxindex ea695b911e..777fda8cc2 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/doc-home/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/doc-home/page.tsx@@ -3,12 +3,10 @@'use client';import {useState} from 'react';-import * as stylex from '@stylexjs/stylex';import {XDSHeading, XDSText} from '@xds/core/Text';import {XDSButton} from '@xds/core/Button';import {XDSCard} from '@xds/core/Card';import {XDSTextArea} from '@xds/core/TextArea';-import {colorVars} from '@xds/core/theme/tokens.stylex';import {categories} from '../../../sandboxPages';import DocTopNav from '../doc-nav/DocTopNav';@@ -20,15 +18,6 @@ const GRID_AREAS = `"a a b b b" "c c c d d" "e f f g g" "h h i i i"`;const GRID_ROWS = '280px 320px 260px 300px';const AREA_KEYS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];-const styles = stylex.create({- dashedCard: {- borderWidth: 1,- borderStyle: 'dashed',- borderColor: colorVars['--color-border'],- borderRadius: 16,- },-});-export default function DocHomePage() {const [search, setSearch] = useState('');diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/AppTopNav.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/AppTopNav.tsxindex d6dc40b3cc..fa9eebf6a6 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/AppTopNav.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/AppTopNav.tsx@@ -41,15 +41,15 @@ const XDS_WORDMARK = (export function AppTopNav({activeView: _activeView,setActiveView,- scrollContainerRef,+ scrollContainerRef: _scrollContainerRef,activeTab,onActiveTabChange,- templateFilter,- onTemplateFilterChange,- templateAuthors,- activeFilters,- onToggleFilter,- onClearFilters,+ templateFilter: _templateFilter,+ onTemplateFilterChange: _onTemplateFilterChange,+ templateAuthors: _templateAuthors,+ activeFilters: _activeFilters,+ onToggleFilter: _onToggleFilter,+ onClearFilters: _onClearFilters,sortOption,onSortChange,isFilterOpen,diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ChatPanel.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ChatPanel.tsxindex 17d236a1e7..014cb66e1e 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ChatPanel.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ChatPanel.tsx@@ -11,14 +11,11 @@ import {XDSChatMessage,XDSChatMessageBubble,} from '@xds/core/Chat';-import {XDSCodeBlock} from '@xds/core/CodeBlock';import {XDSDivider} from '@xds/core/Divider';import {XDSEmptyState} from '@xds/core/EmptyState';-import {XDSMetadataList, XDSMetadataListItem} from '@xds/core/MetadataList';import {XDSText} from '@xds/core/Text';import {XDSTextInput} from '@xds/core/TextInput';-import {ArrowLeftIcon, CursorIcon, SparklesIcon} from './docsite-icons';-import {ShimmerText} from './ShimmerText';+import {ArrowLeftIcon, CursorIcon} from './docsite-icons';import {MOCK_CODE} from './constants';const composerStyles = stylex.create({diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsxindex 0ed4ce06a6..203baf5c9b 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/DocsView.tsx@@ -12,7 +12,6 @@ import {XDSHeading, XDSText} from '@xds/core/Text';import {XDSButton} from '@xds/core/Button';import {XDSStack} from '@xds/core/Layout';import {XDSCard} from '@xds/core/Card';-import {XDSDropdownMenu} from '@xds/core/DropdownMenu';import {XDSList, XDSListItem} from '@xds/core/List';import {XDSNavMenuItem} from '@xds/core/NavMenu';import {XDSTable, pixel} from '@xds/core/Table';@@ -23,21 +22,18 @@ import {XDSCodeBlock} from '@xds/core/CodeBlock';import {XDSCommandPalette} from '@xds/core/CommandPalette';import {ExternalLinkIcon,- ContrastIcon,FullscreenIcon,SearchIcon,ProfileIcon,PaletteIcon,GridIcon,CodeIcon,- UploadIcon,SparklesIcon,HeartIcon,TerminalIcon,ChatIcon,ChartsIcon,DownloadIcon,- SendIcon,ChevronDownIcon,} from './docsite-icons';import {XDSBadge} from '@xds/core/Badge';@@ -65,11 +61,9 @@ import {CLI_VERSION,type CliCommand,} from '@/generated/cliRegistry';-import {XDSDialog, XDSDialogHeader} from '@xds/core/Dialog';-import {XDSPopover} from '@xds/core/Popover';import {XDSGrid} from '@xds/core/Grid';-import {XDSTheme, expandTypeScale, defineTheme} from '@xds/core/theme';+import {XDSTheme, defineTheme} from '@xds/core/theme';import type {XDSDefinedTheme} from '@xds/core/theme';import {defaultTheme} from '@xds/theme-default/built';import {neutralTheme} from '@xds/theme-neutral/built';@@ -84,7 +78,6 @@ import {SEARCH_COMMANDS, basePath} from './constants';import {COMPONENT_CATEGORIES,getComponentName,- getComponentDocs,getComponentDesc,} from './docsview-data';@@ -3149,57 +3142,6 @@ const VEGA_COMPONENTS: {},];-const CHAT_COMPONENTS: {- label: string;- items: {key: string; name: string; desc: string}[];-}[] = [- {- label: 'Messaging',- items: [- {- key: 'chat',- name: 'Chat',- desc: 'Conversational message interface with bubbles, input, and thread support.',- },- {- key: 'chat-composer',- name: 'ChatComposer',- desc: 'Rich text composer with attachments, mentions, and slash commands.',- },- {- key: 'chat-composer-input',- name: 'ChatComposerInput',- desc: 'Controlled input for the chat composer with mention triggers.',- },- {- key: 'chat-layout',- name: 'ChatLayout',- desc: 'Full chat page layout with message list, composer, and empty state.',- },- ],- },- {- label: 'Content',- items: [- {- key: 'chat-tokenized-text',- name: 'ChatTokenizedText',- desc: 'Renders text with inline tokens like @mentions and #tags.',- },- {- key: 'chat-tool-calls',- name: 'ChatToolCalls',- desc: 'Displays AI tool call results with status and expandable details.',- },- {- key: 'chat-dictation',- name: 'ChatDictation',- desc: 'Voice dictation input with recording states and waveform.',- },- ],- },-];-function PackageGridPage({packageKey,components,@@ -4663,7 +4605,6 @@ function LibraryOverview({cli: TerminalIcon,};const IconComp = ICON_MAP[pkg.iconType];- const isDesign = pkg.category === 'designing';return (<divkey={pkg.key}@@ -4904,7 +4845,6 @@ function ComponentDetailPage({onCraft: () => void;}) {const [exampleTabs, setExampleTabs] = useState<Record<string, string>>({});- const docs = useMemo(() => getComponentDocs(activeNav), [activeNav]);const componentName = getComponentName(activeNav);const desc = getComponentDesc(activeNav);diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ProfileView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ProfileView.tsxindex 79735b0936..b161684853 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ProfileView.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ProfileView.tsx@@ -60,118 +60,6 @@ import {PlusIcon,} from '@heroicons/react/24/outline';-function seededRandom(seed: number) {- let s = seed;- return () => {- s = (s * 16807 + 0) % 2147483647;- return s / 2147483647;- };-}--function generateSparklineData(seed: number, length = 12): number[] {- const rng = seededRandom(seed);- const points: number[] = [rng() * 40 + 30];- for (let i = 1; i < length; i++) {- const prev = points[i - 1];- points.push(Math.max(5, Math.min(95, prev + (rng() - 0.4) * 20)));- }- return points;-}--function Sparkline({- data,- width = '100%',- height = 40,-}: {- data: number[];- width?: string | number;- height?: number;-}) {- const viewW = 200;- const viewH = height;- const max = Math.max(...data);- const min = Math.min(...data);- const range = max - min || 1;- const stepX = viewW / (data.length - 1);-- const points = data.map((v, i) => {- const x = i * stepX;- const y = viewH - ((v - min) / range) * (viewH * 0.8) - viewH * 0.1;- return `${x},${y}`;- });-- const linePath = `M${points.join('L')}`;- const areaPath = `${linePath}L${viewW},${viewH}L0,${viewH}Z`;-- return (- <svg- viewBox={`0 0 ${viewW} ${viewH}`}- width={width}- height={height}- preserveAspectRatio="none">- <defs>- <linearGradient id="sparkFill" x1="0" y1="0" x2="0" y2="1">- <stop- offset="0%"- stopColor="var(--color-positive)"- stopOpacity="0.15"- />- <stop- offset="100%"- stopColor="var(--color-positive)"- stopOpacity="0.02"- />- </linearGradient>- </defs>- <path d={areaPath} fill="url(#sparkFill)" />- <path- d={linePath}- fill="none"- stroke="var(--color-positive)"- strokeWidth="2"- vectorEffect="non-scaling-stroke"- />- </svg>- );-}--function TrendIndicator({value}: {value: number}) {- const isPositive = value >= 0;- return (- <span- style={{- display: 'inline-flex',- alignItems: 'center',- gap: 4,- color: 'var(--color-positive)',- }}>- <svg width="14" height="14" viewBox="0 0 14 14" fill="none">- {isPositive ? (- <path- d="M2 10C4 7 6 5 8 6C10 7 11 4 12 3"- stroke="currentColor"- strokeWidth="1.5"- strokeLinecap="round"- strokeLinejoin="round"- />- ) : (- <path- d="M2 4C4 7 6 9 8 8C10 7 11 10 12 11"- stroke="currentColor"- strokeWidth="1.5"- strokeLinecap="round"- strokeLinejoin="round"- />- )}- </svg>- <span style={{fontSize: 13}}>- {isPositive ? '+' : ''}- {value}%- </span>- </span>- );-}-function timeAgo(dateStr: string): string {const now = new Date();const then = new Date(dateStr);diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreview.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreview.tsxindex 0da446a82f..e2dab60abb 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreview.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/TemplatePreview.tsx@@ -76,7 +76,7 @@ export function TemplatePreview({'idle',);const [linkCopied, setLinkCopied] = useState(false);- const [isScrolled, setIsScrolled] = useState(false);+ const [_isScrolled, setIsScrolled] = useState(false);const handleSave = useCallback(() => {setSaveState('saving');@@ -183,8 +183,7 @@ export function TemplatePreview({}))}/></XDSTooltip>- <XDSTooltip- content={isDarkMode ? 'Dark mode' : 'Light mode'}>+ <XDSTooltip content={isDarkMode ? 'Dark mode' : 'Light mode'}><XDSButtonlabel={isDarkMode ? 'Dark mode' : 'Light mode'}variant="ghost"@@ -195,14 +194,15 @@ export function TemplatePreview({</XDSTooltip></div>)}- <div style={{- position: 'absolute',- left: 16,- right: 32,- display: 'flex',- justifyContent: 'center',- pointerEvents: 'none',- }}>+ <div+ style={{+ position: 'absolute',+ left: 16,+ right: 32,+ display: 'flex',+ justifyContent: 'center',+ pointerEvents: 'none',+ }}><XDSSegmentedControlvalue={viewportSize}onChange={setViewportSize}@@ -240,8 +240,7 @@ export function TemplatePreview({/></XDSTooltip>{saveState === 'saved' ? (- <XDSTooltip- content={linkCopied ? 'Copied!' : 'Copy link'}>+ <XDSTooltip content={linkCopied ? 'Copied!' : 'Copy link'}><XDSButtonlabel={linkCopied ? 'Copied' : 'Copy link'}variant="ghost"diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ThemeEditorView.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ThemeEditorView.tsxindex 03f38d4482..d8d5ade17a 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/ThemeEditorView.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/ThemeEditorView.tsx@@ -10,7 +10,7 @@ import {XDSTextInput} from '@xds/core/TextInput';import {XDSNumberInput} from '@xds/core/NumberInput';import {XDSBadge} from '@xds/core/Badge';import {XDSCard} from '@xds/core/Card';-import {XDSHStack, XDSVStack, XDSStack} from '@xds/core/Stack';+import {XDSHStack, XDSVStack} from '@xds/core/Stack';import {XDSLayout,XDSLayoutHeader,@@ -39,7 +39,6 @@ import {XDSPopover} from '@xds/core/Popover';import {XDSHoverCard} from '@xds/core/HoverCard';import {XDSTooltip} from '@xds/core/Tooltip';import {XDSSpinner} from '@xds/core/Spinner';-import {XDSMarkdown} from '@xds/core/Markdown';import {XDSCodeBlock} from '@xds/core/CodeBlock';import {XDSSegmentedControl,@@ -97,7 +96,6 @@ import {ChartBarIcon,UserGroupIcon,DocumentTextIcon,- PhotoIcon,SwatchIcon,Square3Stack3DIcon,StopIcon,@@ -311,8 +309,6 @@ const COMPONENT_VAR_TO_OVERRIDE: Record<'--composer-padding': {component: 'chat-composer', cssProperty: 'padding'},};-const COMPONENT_VAR_NAMES = new Set(Object.keys(COMPONENT_VAR_TO_OVERRIDE));-const COMPONENT_VARS: Record<string, {label: string; vars: ComponentVar[]}> = {button: {label: 'Button',@@ -712,10 +708,6 @@ const TYPOGRAPHY_CATEGORIES = {],} as const;-type TypographyCategoryValue =- | string[]- | {description: string; tokens: string[]};-// =============================================================================// Helper Functions// =============================================================================@@ -813,12 +805,6 @@ function ColorSwatch({onChange(tokenName, newValue);};- const handleAlphaChange = (newAlpha: number) => {- if (colorParsed) {- handleColorChange(colorParsed.hex, newAlpha);- }- };-return (<divstyle={{@@ -1084,18 +1070,6 @@ function TypographyEditor({// Preview Components// =============================================================================-interface SpacingRow extends Record<string, unknown> {- token: string;- value: string;- preview: React.ReactNode;-}--const spacingTableColumns: XDSTableColumn<SpacingRow>[] = [- {key: 'token', header: 'Token'},- {key: 'value', header: 'Value'},- {key: 'preview', header: 'Preview'},-];-const ROW: React.CSSProperties = {display: 'flex',alignItems: 'center',@@ -1367,9 +1341,7 @@ function ComponentPreview() {Your latest account activity.</XDSText></XDSVStack>- <XDSLink href="#">- View All- </XDSLink>+ <XDSLink href="#">View All</XDSLink></div></XDSLayoutHeader>}@@ -1494,9 +1466,7 @@ function ComponentPreview() {Payment Due</XDSText><XDSHeading level={3}>1 Apr</XDSHeading>- <XDSLink href="#">- Pay Early- </XDSLink>+ <XDSLink href="#">Pay Early</XDSLink></XDSVStack></div><XDSText type="supporting" color="secondary">@@ -2569,234 +2539,6 @@ function PopoverSettingsContent() {);}-function MicroInteractionsPreview() {- const [switch1, setSwitch1] = React.useState(false);- const [switch2, setSwitch2] = React.useState(true);- const [check1, setCheck1] = React.useState(false);- const [check2, setCheck2] = React.useState(true);- const [sliderValue, setSliderValue] = React.useState(50);- const [selectorValue, setSelectorValue] = React.useState('Apple');-- return (- <XDSCard>- <XDSVStack gap={4}>- <XDSText type="label" display="block">- Micro-Interactions- </XDSText>- <div>- <XDSText type="supporting" color="secondary" display="block">- Buttons — hover, press, focus- </XDSText>- <XDSHStack gap={2} style={{marginTop: 8}}>- <XDSButton label="Primary" variant="primary" onClick={() => {}} />- <XDSButton- label="Secondary"- variant="secondary"- onClick={() => {}}- />- <XDSButton label="Ghost" variant="ghost" onClick={() => {}} />- <XDSDropdownMenu- button={{label: 'Dropdown', variant: 'secondary'}}- items={[- {label: 'Edit', onClick: () => {}},- {label: 'Duplicate', onClick: () => {}},- {type: 'divider' as const},- {label: 'Delete', onClick: () => {}},- ]}- />- </XDSHStack>- </div>- <XDSDivider variant="strong" />- <div>- <XDSText type="supporting" color="secondary" display="block">- Popover / HoverCard / Tooltip- </XDSText>- <XDSHStack- gap={2}- vAlign="center"- style={{marginTop: 8, flexWrap: 'wrap'}}>- <XDSPopover content={<PopoverSettingsContent />} placement="below">- <XDSButton label="Popover" variant="secondary" size="sm" />- </XDSPopover>- <XDSHoverCard- content={- <div style={{padding: 12, maxWidth: 240}}>- <XDSText- type="label"- display="block"- style={{marginBottom: 4}}>- HoverCard- </XDSText>- <XDSText type="supporting" color="secondary">- Hover to trigger.- </XDSText>- </div>- }- placement="below">- <XDSButton- label="HoverCard"- variant="secondary"- size="sm"- onClick={() => {}}- />- </XDSHoverCard>- <XDSTooltip content="Tooltip preview">- <XDSButton- label="Tooltip"- variant="secondary"- size="sm"- onClick={() => {}}- />- </XDSTooltip>- </XDSHStack>- </div>- <XDSDivider variant="strong" />- <div>- <XDSText type="supporting" color="secondary" display="block">- Switches & Checkboxes- </XDSText>- <XDSHStack gap={4} style={{marginTop: 8}}>- <XDSSwitch label="Switch 1" value={switch1} onChange={setSwitch1} />- <XDSSwitch label="Switch 2" value={switch2} onChange={setSwitch2} />- <XDSCheckboxInput- label="Check A"- value={check1}- onChange={setCheck1}- />- <XDSCheckboxInput- label="Check B"- value={check2}- onChange={setCheck2}- />- </XDSHStack>- </div>- <XDSDivider variant="strong" />- <div>- <XDSText type="supporting" color="secondary" display="block">- Slider & Selector- </XDSText>- <XDSHStack gap={4} vAlign="end" style={{marginTop: 8}}>- <div style={{flex: 1, maxWidth: 200}}>- <XDSSlider- label="Volume"- value={sliderValue}- onChange={setSliderValue}- min={0}- max={100}- />- </div>- <div style={{maxWidth: 160}}>- <XDSSelector- label="Fruit"- options={['Apple', 'Banana', 'Orange', 'Mango']}- value={selectorValue}- onChange={setSelectorValue}- />- </div>- </XDSHStack>- </div>- </XDSVStack>- </XDSCard>- );-}--function LoadingStatusPreview() {- const [progressValue, setProgressValue] = React.useState(65);- return (- <XDSCard>- <XDSVStack gap={4}>- <XDSText type="label" display="block">- Loading & Status- </XDSText>- <XDSHStack gap={4} vAlign="center">- <XDSSpinner size="sm" />- <XDSSpinner size="md" />- <XDSSpinner size="lg" />- </XDSHStack>- <XDSDivider variant="strong" />- <XDSVStack gap={2}>- <XDSHStack gap={3} vAlign="center">- <XDSSkeleton width={40} height={40} radius="rounded" index={0} />- <XDSVStack gap={1} style={{flex: 1}}>- <XDSSkeleton width={160} height={14} index={1} />- <XDSSkeleton width={100} height={10} index={2} />- </XDSVStack>- </XDSHStack>- <XDSSkeleton width="100%" height={12} index={3} />- <XDSSkeleton width="80%" height={12} index={4} />- </XDSVStack>- <XDSDivider variant="strong" />- <XDSVStack gap={3}>- <XDSProgressBar value={progressValue} label={`${progressValue}%`} />- <XDSHStack gap={2}>- {[0, 25, 50, 75, 100].map(v => (- <XDSButton- key={v}- label={`${v}%`}- variant="ghost"- size="sm"- onClick={() => setProgressValue(v)}- />- ))}- </XDSHStack>- </XDSVStack>- <XDSDivider variant="strong" />- <XDSHStack gap={4} vAlign="center">- <XDSHStack gap={2} vAlign="center">- <XDSStatusDot variant="positive" label="Online" isPulsing />- <XDSText type="body">Online</XDSText>- </XDSHStack>- <XDSHStack gap={2} vAlign="center">- <XDSStatusDot variant="warning" label="Away" isPulsing />- <XDSText type="body">Away</XDSText>- </XDSHStack>- <XDSHStack gap={2} vAlign="center">- <XDSStatusDot variant="negative" label="Busy" isPulsing />- <XDSText type="body">Busy</XDSText>- </XDSHStack>- </XDSHStack>- </XDSVStack>- </XDSCard>- );-}--function SurfaceInteractionsPreview() {- const [activeTab, setActiveTab] = React.useState('overview');- return (- <XDSCard>- <XDSVStack gap={4}>- <XDSText type="label" display="block">- Surface Interactions- </XDSText>- <XDSTabList value={activeTab} onChange={setActiveTab}>- <XDSTab value="overview" label="Overview" />- <XDSTab value="analytics" label="Analytics" />- <XDSTab value="reports" label="Reports" />- <XDSTab value="settings" label="Settings" />- </XDSTabList>- <XDSDivider variant="strong" />- <XDSList density="balanced">- <XDSListItem- label="Dashboard"- description="View your metrics"- onClick={() => {}}- />- <XDSListItem- label="Projects"- description="Manage active projects"- onClick={() => {}}- />- <XDSListItem- label="Settings"- description="Configure preferences"- onClick={() => {}}- />- </XDSList>- </XDSVStack>- </XDSCard>- );-}-function MotionPreview() {const [sidebarCollapsed, setSidebarCollapsed] = React.useState(false);const [overlayOpen, setOverlayOpen] = React.useState(false);@@ -3630,7 +3372,7 @@ function generateThemeCode(// =============================================================================export function ThemeEditorView({- activeView,+ activeView: _activeView,setActiveView,initialImage,initialTheme,@@ -3646,9 +3388,9 @@ export function ThemeEditorView({}) {// Token editing stateconst [activeGroup, setActiveGroup] = React.useState<TokenGroupKey>('colors');- const [activeColorCategory, setActiveColorCategory] =+ const [_activeColorCategory, _setActiveColorCategory] =React.useState<string>('Core Semantic');- const [activeTypographyCategory, setActiveTypographyCategory] =+ const [_activeTypographyCategory, _setActiveTypographyCategory] =React.useState<string>('Heading 1');const [themeName] = React.useState('custom');const [mode, setMode] = React.useState<'light' | 'dark'>('light');@@ -3657,14 +3399,12 @@ export function ThemeEditorView({const [overlayPanelOpen, setOverlayPanelOpen] = React.useState(false);const [activePreview, setActivePreview] = React.useState('preview');- const isMotionGroup = activeGroup === 'duration' || activeGroup === 'easing';-const [typeScaleBase, setTypeScaleBase] = React.useState(14);const [typeScaleRatio, setTypeScaleRatio] = React.useState(1.2);const [panelMode, setPanelMode] = React.useState<'editor' | 'target' | 'raw'>('editor',);- const [targetComponent, setTargetComponent] = React.useState<string | null>(+ const [_targetComponent, _setTargetComponent] = React.useState<string | null>(null,);const [collapsedSections, setCollapsedSections] = React.useState<@@ -4590,7 +4330,7 @@ export function ThemeEditorView({collapsed={collapsedSections}onToggle={toggleSection}><div style={{display: 'flex', gap: 6}}>- {Object.entries(UNIFIED_PRESETS).map(([key, p]) => {+ {Object.entries(UNIFIED_PRESETS).map(([key, _p]) => {const isSelected = activePreset === key;const gap =key === 'compact'diff --git a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsxindex fee20ad16b..cb12b07bb4 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/docsite/page.tsx@@ -15,8 +15,6 @@ import {useSearchParams} from 'next/navigation';import {TEMPLATES,- AVATAR_IMAGE,- XDS_DESIGN_AVATAR,FILTER_COLUMNS,PROFILE_CRAFT_ITEMS,THEME_PICKER_ENTRIES,@@ -31,14 +29,12 @@ import {ChatPanel} from './ChatPanel';import type {PanelTab, PointedElement} from './ChatPanel';import {InlinePublishPanel} from './InlinePublishPanel';import {TemplatePreview} from './TemplatePreview';-import {SharePopoverContent} from './SharePopover';import {TemplatePreviewModal} from './TemplatePreviewModal';import {AppTopNav} from './AppTopNav';import {DocsView} from './DocsView';import {ThemeEditorView} from './ThemeEditorView';import {ProfileView} from './ProfileView';import {XDSAppShell} from '@xds/core/AppShell';-import {XDSAvatar} from '@xds/core/Avatar';import {XDSStack} from '@xds/core/Layout';import {XDSButton} from '@xds/core/Button';import {XDSCard} from '@xds/core/Card';@@ -928,39 +924,6 @@ function DocsiteLandingTemplate() {setActiveFilters(new Set());}, []);- const handleProfileAction = useCallback(- (action: 'craft' | 'bookmarked' | 'used' | 'settings') => {- if (action === 'settings') {- setIsSettingsOpen(true);- } else if (action === 'craft') {- setPreviewTarget(null);- setCraftTitle('My Craft');- setIsCraftResults(true);- setIsProfileResults(true);- setCraftStatusFilter('all');- setCraftLoading(true);- if (craftLoadingTimer.current) clearTimeout(craftLoadingTimer.current);- craftLoadingTimer.current = setTimeout(() => {- setCraftLoading(false);- craftLoadingTimer.current = null;- }, 900);- } else {- const label = action === 'bookmarked' ? 'Bookmarked' : 'Used';- setPreviewTarget(null);- setCraftTitle(label);- setIsProfileResults(true);- setIsCraftResults(false);- setCraftLoading(true);- if (craftLoadingTimer.current) clearTimeout(craftLoadingTimer.current);- craftLoadingTimer.current = setTimeout(() => {- setCraftLoading(false);- craftLoadingTimer.current = null;- }, 900);- }- },- [],- );-const filteredTemplates = useMemo(() => {return TEMPLATES.map((t, i) => ({...t, originalIndex: i})).filter(t => {if (templateFilter === 'all') return true;diff --git a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsxindex 7a6433215d..fcd7f2b19c 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx@@ -20,7 +20,6 @@ import {XDSCheckboxInput} from '@xds/core/CheckboxInput';import {XDSRadioList, XDSRadioListItem} from '@xds/core/RadioList';import {XDSProgressBar} from '@xds/core/ProgressBar';import {XDSSpinner} from '@xds/core/Spinner';-import {XDSSkeleton} from '@xds/core/Skeleton';import {XDSTabList, XDSTab} from '@xds/core/TabList';import {XDSIcon} from '@xds/core/Icon';import {XDSLink} from '@xds/core/Link';@@ -161,7 +160,6 @@ export default function ExampleCardsPage() {<XDSHStack gap={2}><XDSSelectorlabel="Theme"-options={themeOptions}value={themeName.charAt(0).toUpperCase() + themeName.slice(1)}onChange={(v: string) => setThemeName(v.toLowerCase())}@@ -169,7 +167,6 @@ export default function ExampleCardsPage() {/><XDSSelectorlabel="Mode"-options={modeOptions}value={mode === 'dark' ? 'Dark' : 'Light'}onChange={(v: string) => setMode(v.toLowerCase() as ThemeMode)}@@ -187,14 +184,11 @@ export default function ExampleCardsPage() {minHeight: '100%',}}>{/* Contribution History */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Contribution History- </XDSHeading>+ <XDSHeading level={3}>Contribution History</XDSHeading><XDSBadge label="+12% vs last month" variant="info" /></div><XDSText type="supporting" color="secondary">@@ -251,15 +245,17 @@ export default function ExampleCardsPage() {</div>{/* Payout Threshold */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Payout Threshold- </XDSHeading>- <XDSButton label="" icon={<XDSIcon icon="close" size="sm" />} variant="ghost" size="sm" />+ <XDSHeading level={3}>Payout Threshold</XDSHeading>+ <XDSButton+ label=""+ icon={<XDSIcon icon="close" size="sm" />}+ variant="ghost"+ size="sm"+ /></div><XDSText type="supporting" color="secondary">Set the minimum balance required before a payout is triggered.@@ -310,14 +306,11 @@ export default function ExampleCardsPage() {</div>{/* Savings Targets */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Savings Targets- </XDSHeading>+ <XDSHeading level={3}>Savings Targets</XDSHeading><XDSButton label="New Goal" variant="primary" size="sm" /></div><XDSText type="supporting" color="secondary">@@ -361,13 +354,10 @@ export default function ExampleCardsPage() {</div>{/* Buy Investment */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}>- <XDSHeading level={3}>- Buy Investment- </XDSHeading>+ <XDSHeading level={3}>Buy Investment</XDSHeading><XDSTextInputlabel="Amount to Invest"value="1,000.00"@@ -409,13 +399,10 @@ export default function ExampleCardsPage() {</div>{/* Account Access */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}>- <XDSHeading level={3}>- Account Access- </XDSHeading>+ <XDSHeading level={3}>Account Access</XDSHeading><XDSText type="supporting" color="secondary">Update your credentials or re-authenticate.</XDSText>@@ -449,15 +436,17 @@ export default function ExampleCardsPage() {</div>{/* Payout Preferences */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Payout Preferences- </XDSHeading>- <XDSButton label="" icon={<XDSIcon icon="close" size="sm" />} variant="ghost" size="sm" />+ <XDSHeading level={3}>Payout Preferences</XDSHeading>+ <XDSButton+ label=""+ icon={<XDSIcon icon="close" size="sm" />}+ variant="ghost"+ size="sm"+ /></div><XDSText type="supporting" color="secondary">Receiving Method@@ -495,13 +484,10 @@ export default function ExampleCardsPage() {</div>{/* Stock Performance */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Stock Performance- </XDSHeading>+ <XDSHeading level={3}>Stock Performance</XDSHeading><XDSText type="supporting" color="secondary">6-month price history.</XDSText>@@ -510,7 +496,6 @@ export default function ExampleCardsPage() {options={['VOO', 'AAPL', 'GOOGL', 'MSFT']}value={ticker}onChange={setTicker}-/><div {...stylex.props(styles.chart)}>{[30, 45, 38, 52, 48, 55, 42, 60, 58, 65, 50, 70].map(@@ -528,13 +513,10 @@ export default function ExampleCardsPage() {</div>{/* Distribute Track */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Distribute Track- </XDSHeading>+ <XDSHeading level={3}>Distribute Track</XDSHeading><XDSText type="supporting" color="secondary">Upload your first master and start reaching listeners onSpotify, Apple Music and more.@@ -548,8 +530,7 @@ export default function ExampleCardsPage() {</div>{/* Clearinghouse Balance */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><XDSText type="supporting" color="secondary">@@ -592,22 +573,17 @@ export default function ExampleCardsPage() {</div>{/* Recent Transactions */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}><XDSVStack gap={1}>- <XDSHeading level={3}>- Recent Transactions- </XDSHeading>+ <XDSHeading level={3}>Recent Transactions</XDSHeading><XDSText type="supporting" color="secondary">Your latest account activity.</XDSText></XDSVStack>- <XDSLink href="#">- View All- </XDSLink>+ <XDSLink href="#">View All</XDSLink></div><XDSDivider />{[@@ -677,8 +653,7 @@ export default function ExampleCardsPage() {</div>{/* Card Balance */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}>@@ -696,9 +671,7 @@ export default function ExampleCardsPage() {Payment Due</XDSText><XDSHeading level={3}>1 Apr</XDSHeading>- <XDSLink href="#">- Pay Early- </XDSLink>+ <XDSLink href="#">Pay Early</XDSLink></XDSVStack></div><XDSText type="supporting" color="secondary">@@ -745,13 +718,10 @@ export default function ExampleCardsPage() {</div>{/* Power Usage */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Power Usage- </XDSHeading>+ <XDSHeading level={3}>Power Usage</XDSHeading><XDSText type="supporting" color="secondary">Whole Home</XDSText>@@ -796,13 +766,10 @@ export default function ExampleCardsPage() {</div>{/* Explore Catalog */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Explore Catalog- </XDSHeading>+ <XDSHeading level={3}>Explore Catalog</XDSHeading><XDSText type="supporting" color="secondary">Check your ISRC codes, metadata, and visual assets before goinglive.@@ -813,15 +780,17 @@ export default function ExampleCardsPage() {</div>{/* Transfer Funds */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Transfer Funds- </XDSHeading>- <XDSButton label="" icon={<XDSIcon icon="close" size="sm" />} variant="ghost" size="sm" />+ <XDSHeading level={3}>Transfer Funds</XDSHeading>+ <XDSButton+ label=""+ icon={<XDSIcon icon="close" size="sm" />}+ variant="ghost"+ size="sm"+ /></div><XDSText type="supporting" color="secondary">Move money between your connected accounts.@@ -890,13 +859,10 @@ export default function ExampleCardsPage() {</div>{/* Set a New Milestone */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}>- <XDSHeading level={3}>- Set a new milestone- </XDSHeading>+ <XDSHeading level={3}>Set a new milestone</XDSHeading><XDSText type="supporting" color="secondary">Define your financial target and we'll help you pace yoursavings.@@ -928,13 +894,10 @@ export default function ExampleCardsPage() {</div>{/* Connect Bank */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Connect Bank- </XDSHeading>+ <XDSHeading level={3}>Connect Bank</XDSHeading><XDSText type="supporting" color="secondary">Link your payment method to receive monthly royaltydistributions automatically.@@ -945,15 +908,17 @@ export default function ExampleCardsPage() {</div>{/* Preferences */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Preferences- </XDSHeading>- <XDSButton label="" icon={<XDSIcon icon="close" size="sm" />} variant="ghost" size="sm" />+ <XDSHeading level={3}>Preferences</XDSHeading>+ <XDSButton+ label=""+ icon={<XDSIcon icon="close" size="sm" />}+ variant="ghost"+ size="sm"+ /></div><XDSText type="supporting" color="secondary">Manage your account settings and notifications.@@ -995,8 +960,7 @@ export default function ExampleCardsPage() {</div>{/* Settings Navigation */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSHStack gap={6}><XDSVStack gap={3} style={{flex: 1}}>@@ -1042,8 +1006,7 @@ export default function ExampleCardsPage() {</div>{/* Payments Navigation */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><XDSHStack gap={2} vAlign="center">@@ -1093,8 +1056,7 @@ export default function ExampleCardsPage() {</div>{/* FAQ / Settings Tabs */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><XDSTabList value={settingsTab} onChange={setSettingsTab}>@@ -1132,13 +1094,10 @@ export default function ExampleCardsPage() {</div>{/* Upcoming Payments */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Upcoming Payments- </XDSHeading>+ <XDSHeading level={3}>Upcoming Payments</XDSHeading><XDSText type="supporting" color="secondary">Select a date to view scheduled payments.</XDSText>@@ -1172,8 +1131,7 @@ export default function ExampleCardsPage() {</div>{/* QR Code / Mobile Connect */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.placeholder)}>@@ -1198,15 +1156,17 @@ export default function ExampleCardsPage() {</div>{/* Q2 Dividend Income */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Q2 Dividend Income- </XDSHeading>- <XDSButton label="" icon={<XDSIcon icon="close" size="sm" />} variant="ghost" size="sm" />+ <XDSHeading level={3}>Q2 Dividend Income</XDSHeading>+ <XDSButton+ label=""+ icon={<XDSIcon icon="close" size="sm" />}+ variant="ghost"+ size="sm"+ /></div><XDSText type="supporting" color="secondary">Quarterly dividend payouts across your portfolio holdings.@@ -1240,8 +1200,7 @@ export default function ExampleCardsPage() {</div>{/* Savings Target Progress */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><XDSHeading level={2}>$24,000</XDSHeading>@@ -1273,13 +1232,10 @@ export default function ExampleCardsPage() {</div>{/* Dollar-Cost Averaging */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Dollar-Cost Averaging- </XDSHeading>+ <XDSHeading level={3}>Dollar-Cost Averaging</XDSHeading><XDSText type="supporting" color="secondary">A strategy for building wealth over time.</XDSText>@@ -1295,8 +1251,7 @@ export default function ExampleCardsPage() {</div>{/* Cover Art / Upload */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><XDSText type="supporting" color="secondary">@@ -1312,9 +1267,7 @@ export default function ExampleCardsPage() {borderRadius: 8,}}/>- <XDSHeading level={3}>- Upload Artwork- </XDSHeading>+ <XDSHeading level={3}>Upload Artwork</XDSHeading><XDSText type="supporting" color="secondary">Minimum 3000 × 3000px — JPEG or PNG only</XDSText>@@ -1323,15 +1276,12 @@ export default function ExampleCardsPage() {</div>{/* Front Door (Smart Home) */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><div {...stylex.props(styles.row)}><XDSVStack gap={0}>- <XDSHeading level={3}>- Front Door- </XDSHeading>+ <XDSHeading level={3}>Front Door</XDSHeading><XDSText type="supporting" color="secondary">Smart Lock Pro</XDSText>@@ -1349,13 +1299,11 @@ export default function ExampleCardsPage() {</div>{/* Stock Holdings */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><XDSTextInputlabel="Search holdings"-placeholder="Search holdings or tickers..."value=""onChange={() => {}}@@ -1426,14 +1374,11 @@ export default function ExampleCardsPage() {</div>{/* Kitchen Island (Smart Home) */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}><div {...stylex.props(styles.row)}>- <XDSHeading level={3}>- Kitchen Island- </XDSHeading>+ <XDSHeading level={3}>Kitchen Island</XDSHeading><XDSSwitch label="On" value={true} onChange={() => {}} /></div><XDSText type="supporting" color="secondary">@@ -1459,13 +1404,10 @@ export default function ExampleCardsPage() {</div>{/* Living Room (Smart Home) */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}>- <XDSHeading level={3}>- Living Room- </XDSHeading>+ <XDSHeading level={3}>Living Room</XDSHeading><XDSText type="supporting" color="secondary">Roller Shades</XDSText>@@ -1484,13 +1426,10 @@ export default function ExampleCardsPage() {</div>{/* Social Links */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}>- <XDSHeading level={3}>- Social Links- </XDSHeading>+ <XDSHeading level={3}>Social Links</XDSHeading><XDSTextInputlabel="Spotify Artist URL"value={spotifyUrl}@@ -1520,13 +1459,10 @@ export default function ExampleCardsPage() {</div>{/* Notifications */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={4}>- <XDSHeading level={3}>- Notifications- </XDSHeading>+ <XDSHeading level={3}>Notifications</XDSHeading><XDSText type="supporting" color="secondary">Choose what you want to be notified about.</XDSText>@@ -1578,16 +1514,13 @@ export default function ExampleCardsPage() {</div>{/* Syncing Accounts */}- <div- style={{breakInside: 'avoid', marginBottom: 24}}>+ <div style={{breakInside: 'avoid', marginBottom: 24}}><XDSCard><XDSVStack gap={3}><XDSHStack gap={3} vAlign="center"><XDSSpinner size="sm" /><XDSVStack gap={1}>- <XDSHeading level={3}>- Syncing your accounts- </XDSHeading>+ <XDSHeading level={3}>Syncing your accounts</XDSHeading><XDSText type="supporting" color="secondary">We're pulling in your latest transactions. This usuallytakes a few seconds.@@ -1605,13 +1538,19 @@ export default function ExampleCardsPage() {{/* Badges & Tokens */}<div- style={{breakInside: 'avoid', marginBottom: 24, gridColumn: '1 / -1'}}>+ style={{+ breakInside: 'avoid',+ marginBottom: 24,+ gridColumn: '1 / -1',+ }}><XDSCard><XDSVStack gap={4}><XDSHeading level={3}>Badges & Tokens</XDSHeading><XDSDivider /><XDSVStack gap={3}>- <XDSText type="supporting" color="secondary">Badge Variants</XDSText>+ <XDSText type="supporting" color="secondary">+ Badge Variants+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSBadge label="Default" /><XDSBadge label="Info" variant="info" />@@ -1620,7 +1559,9 @@ export default function ExampleCardsPage() {<XDSBadge label="Error" variant="error" /></XDSHStack><XDSDivider />- <XDSText type="supporting" color="secondary">Tokens</XDSText>+ <XDSText type="supporting" color="secondary">+ Tokens+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSToken label="Default" /><XDSToken label="Blue" color="blue" />@@ -1643,24 +1584,59 @@ export default function ExampleCardsPage() {{/* Input Components */}<div- style={{breakInside: 'avoid', marginBottom: 24, gridColumn: '1 / -1'}}>+ style={{+ breakInside: 'avoid',+ marginBottom: 24,+ gridColumn: '1 / -1',+ }}><XDSCard><XDSVStack gap={4}><XDSHeading level={3}>Input Components</XDSHeading><XDSDivider /><XDSVStack gap={4}><XDSHStack gap={4} wrap="wrap">- <XDSTextInput label="Default" placeholder="Enter text..." value="" onChange={() => {}} />- <XDSTextInput label="With value" value="Hello world" onChange={() => {}} />- <XDSTextInput label="Disabled" value="Can't edit" isDisabled onChange={() => {}} />+ <XDSTextInput+ label="Default"+ placeholder="Enter text..."+ value=""+ onChange={() => {}}+ />+ <XDSTextInput+ label="With value"+ value="Hello world"+ onChange={() => {}}+ />+ <XDSTextInput+ label="Disabled"+ value="Can't edit"+ isDisabled+ onChange={() => {}}+ /></XDSHStack><XDSHStack gap={4} wrap="wrap">- <XDSTextInput label="Error state" status={{type: "error", message: "This field is required"}} value="" onChange={() => {}} />- <XDSTextInput label="Success state" status={{type: "success", message: "Looks good!"}} value="Valid input" onChange={() => {}} />- <XDSTextInput label="With placeholder" placeholder="Enter email..." value="" onChange={() => {}} />+ <XDSTextInput+ label="Error state"+ status={{type: 'error', message: 'This field is required'}}+ value=""+ onChange={() => {}}+ />+ <XDSTextInput+ label="Success state"+ status={{type: 'success', message: 'Looks good!'}}+ value="Valid input"+ onChange={() => {}}+ />+ <XDSTextInput+ label="With placeholder"+ placeholder="Enter email..."+ value=""+ onChange={() => {}}+ /></XDSHStack><XDSDivider />- <XDSText type="supporting" color="secondary">Selector</XDSText>+ <XDSText type="supporting" color="secondary">+ Selector+ </XDSText><XDSHStack gap={4} wrap="wrap"><XDSSelectorlabel="Choose option"@@ -1677,30 +1653,70 @@ export default function ExampleCardsPage() {/></XDSHStack><XDSDivider />- <XDSText type="supporting" color="secondary">Slider</XDSText>+ <XDSText type="supporting" color="secondary">+ Slider+ </XDSText><XDSSlider label="Volume" value={65} onChange={() => {}} /><XDSDivider />- <XDSText type="supporting" color="secondary">Toggle Controls</XDSText>+ <XDSText type="supporting" color="secondary">+ Toggle Controls+ </XDSText><XDSHStack gap={6} vAlign="center" wrap="wrap"><XDSSwitch label="On" value={true} onChange={() => {}} /><XDSSwitch label="Off" value={false} onChange={() => {}} />- <XDSSwitch label="Disabled on" value={true} isDisabled onChange={() => {}} />- <XDSSwitch label="Disabled off" value={false} isDisabled onChange={() => {}} />+ <XDSSwitch+ label="Disabled on"+ value={true}+ isDisabled+ onChange={() => {}}+ />+ <XDSSwitch+ label="Disabled off"+ value={false}+ isDisabled+ onChange={() => {}}+ /></XDSHStack><XDSDivider />- <XDSText type="supporting" color="secondary">Checkbox</XDSText>+ <XDSText type="supporting" color="secondary">+ Checkbox+ </XDSText><XDSHStack gap={6} wrap="wrap">- <XDSCheckboxInput label="Checked" value={true} onChange={() => {}} />- <XDSCheckboxInput label="Unchecked" value={false} onChange={() => {}} />- <XDSCheckboxInput label="Checked disabled" value={true} isDisabled onChange={() => {}} />- <XDSCheckboxInput label="Unchecked disabled" value={false} isDisabled onChange={() => {}} />+ <XDSCheckboxInput+ label="Checked"+ value={true}+ onChange={() => {}}+ />+ <XDSCheckboxInput+ label="Unchecked"+ value={false}+ onChange={() => {}}+ />+ <XDSCheckboxInput+ label="Checked disabled"+ value={true}+ isDisabled+ onChange={() => {}}+ />+ <XDSCheckboxInput+ label="Unchecked disabled"+ value={false}+ isDisabled+ onChange={() => {}}+ /></XDSHStack><XDSDivider />- <XDSText type="supporting" color="secondary">Radio</XDSText>+ <XDSText type="supporting" color="secondary">+ Radio+ </XDSText><XDSRadioList label="Radio" value="a" onChange={() => {}}><XDSRadioListItem value="a" label="Choice A" /><XDSRadioListItem value="b" label="Choice B" />- <XDSRadioListItem value="c" label="Choice C (disabled)" isDisabled />+ <XDSRadioListItem+ value="c"+ label="Choice C (disabled)"+ isDisabled+ /></XDSRadioList></XDSVStack></XDSVStack>@@ -1709,14 +1725,20 @@ export default function ExampleCardsPage() {{/* Button Variants */}<div- style={{breakInside: 'avoid', marginBottom: 24, gridColumn: '1 / -1'}}>+ style={{+ breakInside: 'avoid',+ marginBottom: 24,+ gridColumn: '1 / -1',+ }}><XDSCard><XDSVStack gap={4}><XDSHeading level={3}>Button Variants</XDSHeading><XDSDivider /><XDSVStack gap={3}><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Primary</XDSText>+ <XDSText type="supporting" color="secondary">+ Primary+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSButton label="Small" variant="primary" size="sm" /><XDSButton label="Medium" variant="primary" size="md" />@@ -1725,25 +1747,39 @@ export default function ExampleCardsPage() {</XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Secondary</XDSText>+ <XDSText type="supporting" color="secondary">+ Secondary+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSButton label="Small" variant="secondary" size="sm" /><XDSButton label="Medium" variant="secondary" size="md" /><XDSButton label="Large" variant="secondary" size="lg" />- <XDSButton label="Disabled" variant="secondary" isDisabled />+ <XDSButton+ label="Disabled"+ variant="secondary"+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Destructive</XDSText>+ <XDSText type="supporting" color="secondary">+ Destructive+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSButton label="Small" variant="destructive" size="sm" /><XDSButton label="Medium" variant="destructive" size="md" /><XDSButton label="Large" variant="destructive" size="lg" />- <XDSButton label="Disabled" variant="destructive" isDisabled />+ <XDSButton+ label="Disabled"+ variant="destructive"+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Ghost</XDSText>+ <XDSText type="supporting" color="secondary">+ Ghost+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap"><XDSButton label="Small" variant="ghost" size="sm" /><XDSButton label="Medium" variant="ghost" size="md" />@@ -1752,50 +1788,142 @@ export default function ExampleCardsPage() {</XDSHStack></XDSVStack><XDSDivider />- <XDSText type="supporting" color="secondary">Theme-specific variants (Meta)</XDSText>+ <XDSText type="supporting" color="secondary">+ Theme-specific variants (Meta)+ </XDSText><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Primary Muted</XDSText>+ <XDSText type="supporting" color="secondary">+ Primary Muted+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap">- <XDSButton label="Small" variant={'primary-muted' as never} size="sm" />- <XDSButton label="Medium" variant={'primary-muted' as never} size="md" />- <XDSButton label="Large" variant={'primary-muted' as never} size="lg" />- <XDSButton label="Disabled" variant={'primary-muted' as never} isDisabled />+ <XDSButton+ label="Small"+ variant={'primary-muted' as never}+ size="sm"+ />+ <XDSButton+ label="Medium"+ variant={'primary-muted' as never}+ size="md"+ />+ <XDSButton+ label="Large"+ variant={'primary-muted' as never}+ size="lg"+ />+ <XDSButton+ label="Disabled"+ variant={'primary-muted' as never}+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Destructive Muted</XDSText>+ <XDSText type="supporting" color="secondary">+ Destructive Muted+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap">- <XDSButton label="Small" variant={'destructive-muted' as never} size="sm" />- <XDSButton label="Medium" variant={'destructive-muted' as never} size="md" />- <XDSButton label="Large" variant={'destructive-muted' as never} size="lg" />- <XDSButton label="Disabled" variant={'destructive-muted' as never} isDisabled />+ <XDSButton+ label="Small"+ variant={'destructive-muted' as never}+ size="sm"+ />+ <XDSButton+ label="Medium"+ variant={'destructive-muted' as never}+ size="md"+ />+ <XDSButton+ label="Large"+ variant={'destructive-muted' as never}+ size="lg"+ />+ <XDSButton+ label="Disabled"+ variant={'destructive-muted' as never}+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Primary Outline</XDSText>+ <XDSText type="supporting" color="secondary">+ Primary Outline+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap">- <XDSButton label="Small" variant={'primary-outline' as never} size="sm" />- <XDSButton label="Medium" variant={'primary-outline' as never} size="md" />- <XDSButton label="Large" variant={'primary-outline' as never} size="lg" />- <XDSButton label="Disabled" variant={'primary-outline' as never} isDisabled />+ <XDSButton+ label="Small"+ variant={'primary-outline' as never}+ size="sm"+ />+ <XDSButton+ label="Medium"+ variant={'primary-outline' as never}+ size="md"+ />+ <XDSButton+ label="Large"+ variant={'primary-outline' as never}+ size="lg"+ />+ <XDSButton+ label="Disabled"+ variant={'primary-outline' as never}+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Secondary Outline</XDSText>+ <XDSText type="supporting" color="secondary">+ Secondary Outline+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap">- <XDSButton label="Small" variant={'secondary-outline' as never} size="sm" />- <XDSButton label="Medium" variant={'secondary-outline' as never} size="md" />- <XDSButton label="Large" variant={'secondary-outline' as never} size="lg" />- <XDSButton label="Disabled" variant={'secondary-outline' as never} isDisabled />+ <XDSButton+ label="Small"+ variant={'secondary-outline' as never}+ size="sm"+ />+ <XDSButton+ label="Medium"+ variant={'secondary-outline' as never}+ size="md"+ />+ <XDSButton+ label="Large"+ variant={'secondary-outline' as never}+ size="lg"+ />+ <XDSButton+ label="Disabled"+ variant={'secondary-outline' as never}+ isDisabled+ /></XDSHStack></XDSVStack><XDSVStack gap={1}>- <XDSText type="supporting" color="secondary">Destructive Outline</XDSText>+ <XDSText type="supporting" color="secondary">+ Destructive Outline+ </XDSText><XDSHStack gap={2} vAlign="center" wrap="wrap">- <XDSButton label="Small" variant={'destructive-outline' as never} size="sm" />- <XDSButton label="Medium" variant={'destructive-outline' as never} size="md" />- <XDSButton label="Large" variant={'destructive-outline' as never} size="lg" />- <XDSButton label="Disabled" variant={'destructive-outline' as never} isDisabled />+ <XDSButton+ label="Small"+ variant={'destructive-outline' as never}+ size="sm"+ />+ <XDSButton+ label="Medium"+ variant={'destructive-outline' as never}+ size="md"+ />+ <XDSButton+ label="Large"+ variant={'destructive-outline' as never}+ size="lg"+ />+ <XDSButton+ label="Disabled"+ variant={'destructive-outline' as never}+ isDisabled+ /></XDSHStack></XDSVStack></XDSVStack>@@ -1805,69 +1933,117 @@ export default function ExampleCardsPage() {{/* Typography Scale */}<div- style={{breakInside: 'avoid', marginBottom: 24, gridColumn: '1 / -1'}}>+ style={{+ breakInside: 'avoid',+ marginBottom: 24,+ gridColumn: '1 / -1',+ }}><XDSCard><XDSVStack gap={4}><XDSHeading level={3}>Typography Scale</XDSHeading><XDSDivider /><XDSVStack gap={3}><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Display 1</XDSText>- <XDSText type="display-1" as="h1">The quick brown fox</XDSText>+ <XDSText type="supporting" color="secondary">+ Display 1+ </XDSText>+ <XDSText type="display-1" as="h1">+ The quick brown fox+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Display 2</XDSText>- <XDSText type="display-2" as="h1">The quick brown fox</XDSText>+ <XDSText type="supporting" color="secondary">+ Display 2+ </XDSText>+ <XDSText type="display-2" as="h1">+ The quick brown fox+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Display 3</XDSText>- <XDSText type="display-3" as="h1">The quick brown fox</XDSText>+ <XDSText type="supporting" color="secondary">+ Display 3+ </XDSText>+ <XDSText type="display-3" as="h1">+ The quick brown fox+ </XDSText></XDSVStack><XDSDivider /><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 1</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 1+ </XDSText><XDSHeading level={1}>The quick brown fox</XDSHeading></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 2</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 2+ </XDSText><XDSHeading level={2}>The quick brown fox</XDSHeading></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 3</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 3+ </XDSText><XDSHeading level={3}>The quick brown fox</XDSHeading></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 4</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 4+ </XDSText><XDSHeading level={4}>The quick brown fox</XDSHeading></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 5</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 5+ </XDSText><XDSHeading level={5}>The quick brown fox</XDSHeading></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Heading 6</XDSText>+ <XDSText type="supporting" color="secondary">+ Heading 6+ </XDSText><XDSHeading level={6}>The quick brown fox</XDSHeading></XDSVStack><XDSDivider /><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Large</XDSText>- <XDSText type="large">The quick brown fox jumps over the lazy dog</XDSText>+ <XDSText type="supporting" color="secondary">+ Large+ </XDSText>+ <XDSText type="large">+ The quick brown fox jumps over the lazy dog+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Body</XDSText>- <XDSText type="body">The quick brown fox jumps over the lazy dog</XDSText>+ <XDSText type="supporting" color="secondary">+ Body+ </XDSText>+ <XDSText type="body">+ The quick brown fox jumps over the lazy dog+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Label</XDSText>- <XDSText type="label">The quick brown fox jumps over the lazy dog</XDSText>+ <XDSText type="supporting" color="secondary">+ Label+ </XDSText>+ <XDSText type="label">+ The quick brown fox jumps over the lazy dog+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Supporting</XDSText>- <XDSText type="supporting">The quick brown fox jumps over the lazy dog</XDSText>+ <XDSText type="supporting" color="secondary">+ Supporting+ </XDSText>+ <XDSText type="supporting">+ The quick brown fox jumps over the lazy dog+ </XDSText></XDSVStack><XDSVStack gap={0}>- <XDSText type="supporting" color="secondary">Code</XDSText>- <XDSText type="code">const fox = 'quick brown';</XDSText>+ <XDSText type="supporting" color="secondary">+ Code+ </XDSText>+ <XDSText type="code">+ const fox = 'quick brown';+ </XDSText></XDSVStack></XDSVStack></XDSVStack>diff --git a/apps/sandbox/src/app/(fullscreen)/pages/showcase-header/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/showcase-header/page.tsxindex 0f8786bb99..b67c0fdeeb 100644--- a/apps/sandbox/src/app/(fullscreen)/pages/showcase-header/page.tsx+++ b/apps/sandbox/src/app/(fullscreen)/pages/showcase-header/page.tsx@@ -3,7 +3,6 @@'use client';import * as stylex from '@stylexjs/stylex';-import {XDSVStack, XDSHStack} from '@xds/core/Layout';import {XDSHeading, XDSText} from '@xds/core/Text';import {XDSBadge} from '@xds/core/Badge';import {XDSStatusDot} from '@xds/core/StatusDot';diff --git a/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx b/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsxindex 99ed1e47d3..eeb91eff2e 100644--- a/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx+++ b/apps/sandbox/src/app/(raw)/pages/shell-lab/page.tsx@@ -12,7 +12,6 @@ import {XDSSideNavHeading,XDSSideNavItem,XDSSideNavSection,- XDSSideNavCollapseButton,} from '@xds/core/SideNav';import {XDSTopNav,@@ -34,7 +33,6 @@ import {XDSBadge} from '@xds/core/Badge';import {XDSButton} from '@xds/core/Button';import {XDSNavIcon} from '@xds/core/NavIcon';import {XDSBanner} from '@xds/core/Banner';-import {XDSList, XDSListItem} from '@xds/core/List';import {XDSNavMenuItem} from '@xds/core/NavMenu';// =============================================================================diff --git a/apps/sandbox/src/app/(sandbox)/page.tsx b/apps/sandbox/src/app/(sandbox)/page.tsxindex 0b9a5c373c..0254a05475 100644--- a/apps/sandbox/src/app/(sandbox)/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/page.tsx@@ -8,9 +8,8 @@ import {XDSText, XDSHeading} from '@xds/core/Text';import {XDSLayout, XDSLayoutHeader, XDSLayoutContent} from '@xds/core/Layout';import {XDSTextInput} from '@xds/core/TextInput';import {XDSToggleButton, XDSToggleButtonGroup} from '@xds/core/ToggleButton';-import {XDSDropdownMenu} from '@xds/core/DropdownMenu';import {XDSGrid} from '@xds/core/Grid';-import {XDSHStack, XDSVStack} from '@xds/core/Stack';+import {XDSVStack} from '@xds/core/Stack';import {XDSDivider} from '@xds/core/Divider';import {spacingVars} from '@xds/core/theme/tokens.stylex';import {categories} from '../sandboxPages';diff --git a/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsxindex 15c430f8cb..f08672c54d 100644--- a/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/color-studio/page.tsx@@ -17,13 +17,9 @@ import {} from '@xds/core/SegmentedControl';import {- hexToHct,hexToOklch,oklchClampedHex,hctToHex,- tonalPalette,- oklchTonalPalette,- TONE_STEPS,toneToOklabL,DEFAULT_OKLCH_CHROMA,DEFAULT_OKLCH_HUE,@@ -147,7 +143,6 @@ const S = {// Multi-color presets// =============================================================================-// =============================================================================// Palette Color Entry// =============================================================================@@ -275,7 +270,9 @@ interface CustomChannel {function generateToneSteps(count: number): number[] {if (count <= 1) return [50];- return Array.from({length: count}, (_, i) => Math.round((i / (count - 1)) * 100));+ return Array.from({length: count}, (_, i) =>+ Math.round((i / (count - 1)) * 100),+ );}function TonalRamps({@@ -299,8 +296,6 @@ function TonalRamps({return map;}, [palette]);- const unassigned = palette.filter(pc => !pc.role);-return (<div style={{marginBottom: 24}}><h2@@ -321,7 +316,15 @@ function TonalRamps({<span style={S.tonalLabel} /><div style={S.tonalStrip}>{toneSteps.map(t => (- <div key={t} style={{flex: 1, textAlign: 'center' as const, fontSize: 8, fontFamily: MONO, color: '#aaa'}}>+ <div+ key={t}+ style={{+ flex: 1,+ textAlign: 'center' as const,+ fontSize: 8,+ fontFamily: MONO,+ color: '#aaa',+ }}>{t}</div>))}@@ -336,12 +339,21 @@ function TonalRamps({if (ch.role === 'gray') {hue = assigned? hexToOklch(assigned.hex).H- : grayTone === 'warm' ? 60 : grayTone === 'cool' ? 260 : 0;- chroma = (assigned- ? Math.min(hexToOklch(assigned.hex).C, 0.02)- : grayTone === 'neutral' ? 0.003 : 0.012) * vibrancy;+ : grayTone === 'warm'+ ? 60+ : grayTone === 'cool'+ ? 260+ : 0;+ chroma =+ (assigned+ ? Math.min(hexToOklch(assigned.hex).C, 0.02)+ : grayTone === 'neutral'+ ? 0.003+ : 0.012) * vibrancy;} else {- const oklch = assigned ? hexToOklch(assigned.hex) : {C: ch.oklchChroma, H: ch.oklchHue};+ const oklch = assigned+ ? hexToOklch(assigned.hex)+ : {C: ch.oklchChroma, H: ch.oklchHue};hue = oklch.H;chroma = oklch.C * vibrancy;}@@ -349,13 +361,27 @@ function TonalRamps({return (<div key={ch.role} style={S.tonalRow}><span- style={{...S.tonalLabel, color: assigned ? '#4f46e5' : '#888', fontWeight: assigned ? 600 : 400}}- title={assigned ? `${ch.name} ← ${assigned.name}` : `${ch.name} (default)`}>+ style={{+ ...S.tonalLabel,+ color: assigned ? '#4f46e5' : '#888',+ fontWeight: assigned ? 600 : 400,+ }}+ title={+ assigned+ ? `${ch.name} ← ${assigned.name}`+ : `${ch.name} (default)`+ }>{ch.name}</span><div style={S.tonalStrip}>{toneSteps.map(t => (- <div key={t} style={S.tonalCell(oklchClampedHex(toneToOklabL(t), chroma, hue))} title={`${ch.name} T${t}`} />+ <div+ key={t}+ style={S.tonalCell(+ oklchClampedHex(toneToOklabL(t), chroma, hue),+ )}+ title={`${ch.name} T${t}`}+ />))}</div><span style={S.tonalHct}>H:{hue.toFixed(0)}</span>@@ -367,10 +393,18 @@ function TonalRamps({const chroma = oklch.C * vibrancy;return (<div key={cc.id} style={S.tonalRow}>- <span style={{...S.tonalLabel, color: '#4f46e5', fontWeight: 600}}>{cc.name}</span>+ <span style={{...S.tonalLabel, color: '#4f46e5', fontWeight: 600}}>+ {cc.name}+ </span><div style={S.tonalStrip}>{toneSteps.map(t => (- <div key={t} style={S.tonalCell(oklchClampedHex(toneToOklabL(t), chroma, oklch.H))} title={`${cc.name} T${t}`} />+ <div+ key={t}+ style={S.tonalCell(+ oklchClampedHex(toneToOklabL(t), chroma, oklch.H),+ )}+ title={`${cc.name} T${t}`}+ />))}</div><span style={S.tonalHct}>H:{oklch.H.toFixed(0)}</span>@@ -488,7 +522,6 @@ export default function ColorStudioPage() {setPalette(prev => [...prev, makePaletteColor('Color ' + _nextId, hex)]);}, []);-return (<div style={S.page}>{/* ═══ Sidebar ═══ */}@@ -502,8 +535,12 @@ export default function ColorStudioPage() {<div style={S.sidebarScroll}><XDSVStack gap={5}>{/* Controls */}- <XDSHStack vAlign="center" style={{justifyContent: 'space-between'}}>- <XDSText type="supporting" color="secondary">Steps</XDSText>+ <XDSHStack+ vAlign="center"+ style={{justifyContent: 'space-between'}}>+ <XDSText type="supporting" color="secondary">+ Steps+ </XDSText><XDSNumberInputlabel="Steps"isLabelHidden@@ -516,8 +553,16 @@ export default function ColorStudioPage() {/></XDSHStack>- <XDSHStack vAlign="center" gap={3} style={{justifyContent: 'space-between'}}>- <XDSText type="supporting" color="secondary" style={{flexShrink: 0}}>Vibrancy</XDSText>+ <XDSHStack+ vAlign="center"+ gap={3}+ style={{justifyContent: 'space-between'}}>+ <XDSText+ type="supporting"+ color="secondary"+ style={{flexShrink: 0}}>+ Vibrancy+ </XDSText><div style={{flex: 1}}><XDSSliderlabel="Vibrancy"@@ -532,8 +577,12 @@ export default function ColorStudioPage() {</div></XDSHStack>- <XDSHStack vAlign="center" style={{justifyContent: 'space-between'}}>- <XDSText type="supporting" color="secondary">Gray</XDSText>+ <XDSHStack+ vAlign="center"+ style={{justifyContent: 'space-between'}}>+ <XDSText type="supporting" color="secondary">+ Gray+ </XDSText><XDSSegmentedControllabel="Gray tone"value={grayTone}@@ -547,8 +596,12 @@ export default function ColorStudioPage() {{/* Color Set — colors with role assignments */}<XDSVStack gap={2}>- <XDSHStack vAlign="center" style={{justifyContent: 'space-between'}}>- <XDSText type="label" weight="semibold">Brand Colors</XDSText>+ <XDSHStack+ vAlign="center"+ style={{justifyContent: 'space-between'}}>+ <XDSText type="label" weight="semibold">+ Brand Colors+ </XDSText><XDSIconButtonlabel="Add color"variant="ghost"@@ -571,8 +624,12 @@ export default function ColorStudioPage() {{/* Custom Colors — extra ramps without roles */}<XDSVStack gap={2}>- <XDSHStack vAlign="center" style={{justifyContent: 'space-between'}}>- <XDSText type="label" weight="semibold">Color Sets</XDSText>+ <XDSHStack+ vAlign="center"+ style={{justifyContent: 'space-between'}}>+ <XDSText type="label" weight="semibold">+ Color Sets+ </XDSText><XDSIconButtonlabel="Add custom color"variant="ghost"@@ -580,21 +637,36 @@ export default function ColorStudioPage() {onClick={() => {const h = Math.random() * 360;const hex = oklchClampedHex(0.5, 0.12, h);- setCustomChannels(prev => [...prev, {id: nextId(), name: `Custom ${prev.length + 1}`, hex}]);+ setCustomChannels(prev => [+ ...prev,+ {id: nextId(), name: `Custom ${prev.length + 1}`, hex},+ ]);}}icon={<span style={{fontSize: 16, lineHeight: 1}}>+</span>}/></XDSHStack>{customChannels.length === 0 && (- <XDSText type="supporting" color="secondary">Add colors to generate extra ramps</XDSText>+ <XDSText type="supporting" color="secondary">+ Add colors to generate extra ramps+ </XDSText>)}{customChannels.map(cc => (- <XDSHStack key={cc.id} gap={2} vAlign="center" style={{padding: '4px 0'}}>+ <XDSHStack+ key={cc.id}+ gap={2}+ vAlign="center"+ style={{padding: '4px 0'}}><div style={S.swatch(cc.hex)}><inputtype="color"value={cc.hex}- onChange={e => setCustomChannels(prev => prev.map(c => c.id === cc.id ? {...c, hex: e.target.value} : c))}+ onChange={e =>+ setCustomChannels(prev =>+ prev.map(c =>+ c.id === cc.id ? {...c, hex: e.target.value} : c,+ ),+ )+ }style={S.colorInput}/></div>@@ -603,7 +675,13 @@ export default function ColorStudioPage() {label="Name"isLabelHiddenvalue={cc.name}- onChange={v => setCustomChannels(prev => prev.map(c => c.id === cc.id ? {...c, name: v} : c))}+ onChange={v =>+ setCustomChannels(prev =>+ prev.map(c =>+ c.id === cc.id ? {...c, name: v} : c,+ ),+ )+ }size="sm"/></div>@@ -611,13 +689,18 @@ export default function ColorStudioPage() {label="Remove"variant="ghost"size="sm"- onClick={() => setCustomChannels(prev => prev.filter(c => c.id !== cc.id))}- icon={<span style={{fontSize: 14, lineHeight: 1}}>✕</span>}+ onClick={() =>+ setCustomChannels(prev =>+ prev.filter(c => c.id !== cc.id),+ )+ }+ icon={+ <span style={{fontSize: 14, lineHeight: 1}}>✕</span>+ }/></XDSHStack>))}</XDSVStack>-</XDSVStack></div></div>@@ -632,7 +715,6 @@ export default function ColorStudioPage() {customChannels={customChannels}toneSteps={toneSteps}/>-</main></div>);diff --git a/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx b/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsxindex 7ad5048732..0e94ae1792 100644--- a/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/mega-menu/page.tsx@@ -188,9 +188,9 @@ const GlobeIcon = () => (// =============================================================================export default function MegaMenuPage() {- const [menuOpen1, setMenuOpen1] = useState(false);- const [menuOpen2, setMenuOpen2] = useState(false);- const [menuOpen3, setMenuOpen3] = useState(false);+ const [_menuOpen1, setMenuOpen1] = useState(false);+ const [_menuOpen2, setMenuOpen2] = useState(false);+ const [_menuOpen3, setMenuOpen3] = useState(false);return (<div {...stylex.props(styles.container)}>diff --git a/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx b/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsxindex 45200700c1..93fcdcd9d0 100644--- a/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx+++ b/apps/sandbox/src/components/themePreview/ThemeAuditDrawer.tsx@@ -36,12 +36,7 @@ import {XDSTextInput} from '@xds/core/TextInput';import {XDSHStack, XDSVStack} from '@xds/core/Layout';import {XDSText} from '@xds/core/Text';-import {- TONE_STEPS,- type Mode,- type RampSeed,- type ToneStep,-} from './colorMath';+import {TONE_STEPS, type Mode, type RampSeed, type ToneStep} from './colorMath';import {auditSnapToRamps,buildTonalUsageMap,@@ -57,7 +52,6 @@ import {buildModeOverride,composeAlphaHex,countOverrides,- describeOverride,formatHexWithAlpha,isValidHex,normalizeHex,@@ -69,10 +63,7 @@ import {type OverridesMap,type SerializeContext,} from './themeOverrides';-import {- getCategorizedColorTokens,- getTokenLabel,-} from './colorCategories';+import {getCategorizedColorTokens, getTokenLabel} from './colorCategories';// =============================================================================// Types & exports@@ -152,8 +143,7 @@ const S = {borderRadius: 9,background:count > 0 ? 'var(--color-accent)' : 'var(--color-background-muted)',- color:- count > 0 ? 'var(--color-on-accent)' : 'var(--color-text-secondary)',+ color: count > 0 ? 'var(--color-on-accent)' : 'var(--color-text-secondary)',fontSize: 10,fontWeight: 700,fontFamily: MONO,@@ -577,7 +567,9 @@ export function ThemeAuditDrawer({mode={mode}override={overrides[tokenName]?.[mode]}onPickPalette={(rampName, tone, alpha) => {- const seed = audit.rampSeeds.find(s => s.name === rampName);+ const seed = audit.rampSeeds.find(+ s => s.name === rampName,+ );if (!seed) return;dispatchOverrides({type: 'set',@@ -685,7 +677,7 @@ function ColorRow({// transparency is honored everywhere it matters visually.const activeHexBase = override?.hex? normalizeHex(override.hex)- : sourceHex ?? '';+ : (sourceHex ?? '');const activeHexWithAlpha = activeHexBase? composeAlphaHex(activeHexBase, activeAlpha): '';@@ -699,11 +691,13 @@ function ColorRow({? parseTokenColor(diff.defaultValue): null;const defaultHexBase =- mode === 'light' ? defaultParsed?.light ?? null : defaultParsed?.dark ?? null;+ mode === 'light'+ ? (defaultParsed?.light ?? null)+ : (defaultParsed?.dark ?? null);const defaultAlpha =mode === 'light'- ? defaultParsed?.alphaLight ?? 1- : defaultParsed?.alphaDark ?? 1;+ ? (defaultParsed?.alphaLight ?? 1)+ : (defaultParsed?.alphaDark ?? 1);const defaultHexWithAlpha = defaultHexBase? composeAlphaHex(defaultHexBase, defaultAlpha): null;@@ -835,8 +829,7 @@ function ColorRow({size="sm"onClick={onReset}/>- ) : match &&- (match.verdict === 'near' || match.verdict === 'off') ? (+ ) : match && (match.verdict === 'near' || match.verdict === 'off') ? (// "Snap to nearest ramp step" — surfaces the auto-detected// closest match as a one-click action so the user doesn't// have to open the popover and pick the dropdowns manually@@ -920,10 +913,10 @@ function EditorPopoverContent({const initialPaletteRamp =override?.kind === 'palette'? override.rampName- : paletteHint?.rampName ?? rampSeeds[0]?.name ?? '';- const initialPaletteTone = (override?.kind === 'palette'- ? override.tone- : paletteHint?.tone ?? 50) as ToneStep;+ : (paletteHint?.rampName ?? rampSeeds[0]?.name ?? '');+ const initialPaletteTone = (+ override?.kind === 'palette' ? override.tone : (paletteHint?.tone ?? 50)+ ) as ToneStep;const [paletteRamp, setPaletteRamp] = useState<string>(initialPaletteRamp);const [paletteTone, setPaletteTone] = useState<ToneStep>(initialPaletteTone);// Editable alpha lives at the popover level so both tabs can mutate@@ -1025,11 +1018,7 @@ function EditorPopoverContent({alphaPct={palettePct}setAlphaPct={setPalettePct}onPick={(rampName, tone, alphaOverride) =>- onPickPalette(- rampName,- tone,- alphaOverride ?? palettePct / 100,- )+ onPickPalette(rampName, tone, alphaOverride ?? palettePct / 100)}/>)}@@ -1378,4 +1367,3 @@ function PaletteTab({</XDSVStack>);}-diff --git a/apps/storybook/stories/PowerSearch.stories.tsx b/apps/storybook/stories/PowerSearch.stories.tsxindex ffce688341..d303a8377e 100644--- a/apps/storybook/stories/PowerSearch.stories.tsx+++ b/apps/storybook/stories/PowerSearch.stories.tsx@@ -3,10 +3,7 @@import React, {useState} from 'react';import type {Meta, StoryObj} from '@storybook/react';import {XDSPowerSearch} from '@xds/core/PowerSearch';-import type {- PowerSearchConfig,- PowerSearchFilter,-} from '@xds/core/PowerSearch';+import type {PowerSearchConfig, PowerSearchFilter} from '@xds/core/PowerSearch';import type {XDSSearchSource, XDSSearchableItem} from '@xds/core/Typeahead';import {XDSButton} from '@xds/core/Button';import {MagnifyingGlassIcon} from '@heroicons/react/24/outline';@@ -1132,11 +1129,18 @@ import type {PowerSearchTokenProps,PowerSearchEditorProps,} from '@xds/core/PowerSearch';-import {XDSPowerSearchToken, XDSPowerSearchFilterEditor} from '@xds/core/PowerSearch';import {XDSToken} from '@xds/core/Token';import {XDSHStack} from '@xds/core/Stack';-function StatusToken({filter, field, operator, maxLength, onClick, onRemove, isDisabled}: PowerSearchTokenProps) {+function StatusToken({+ filter,+ field,+ operator,+ _maxLength,+ onClick,+ onRemove,+ isDisabled,+}: PowerSearchTokenProps) {const value = filter.value.type === 'enum' ? filter.value.value : '?';const colors: Record<string, string> = {open: '#22c55e',@@ -1153,18 +1157,35 @@ function StatusToken({filter, field, operator, maxLength, onClick, onRemove, isD{value}</span>}- onClick={onClick ? (e: React.MouseEvent) => { e.stopPropagation(); onClick(); } : undefined}+ onClick={+ onClick+ ? (e: React.MouseEvent) => {+ e.stopPropagation();+ onClick();+ }+ : undefined+ }onRemove={onRemove}isDisabled={isDisabled}/>);}-function CustomIntegerEditor({config, filter, mode, onSave, onCancel, saveButtonLabel, isReadOnly}: PowerSearchEditorProps) {+function CustomIntegerEditor({+ _config,+ filter,+ _mode,+ onSave,+ onCancel,+ _saveButtonLabel,+ isReadOnly,+}: PowerSearchEditorProps) {const current = filter.value?.type === 'integer' ? filter.value.value : 50;return (<div style={{padding: 16}}>- <p style={{margin: '0 0 12px', fontSize: 13}}>Custom range editor for integer fields:</p>+ <p style={{margin: '0 0 12px', fontSize: 13}}>+ Custom range editor for integer fields:+ </p><XDSHStack gap={2} vAlign="center"><inputtype="range"@@ -1183,7 +1204,13 @@ function CustomIntegerEditor({config, filter, mode, onSave, onCancel, saveButton/><span style={{fontSize: 12, whiteSpace: 'nowrap'}}>{current}</span></XDSHStack>- <div style={{marginTop: 12, display: 'flex', gap: 8, justifyContent: 'flex-end'}}>+ <div+ style={{+ marginTop: 12,+ display: 'flex',+ gap: 8,+ justifyContent: 'flex-end',+ }}><button onClick={onCancel}>Cancel</button></div></div>@@ -1199,7 +1226,11 @@ export const WithCustomComponents: Story = {render: args => {const [filters, setFilters] = useState<PowerSearchFilter[]>([{field: 'status', operator: 'is', value: {type: 'enum', value: 'open'}},- {field: 'line_count', operator: 'gt', value: {type: 'integer', value: 200}},+ {+ field: 'line_count',+ operator: 'gt',+ value: {type: 'integer', value: 200},+ },]);return (<div>@@ -1211,13 +1242,20 @@ export const WithCustomComponents: Story = {components={customComponents}/><p style={{marginTop: 16, fontSize: 13, color: '#666'}}>- <strong>Custom overrides:</strong> Status tokens show colored text (custom Token).- Integer fields use a range slider editor (custom Editor).+ <strong>Custom overrides:</strong> Status tokens show colored text+ (custom Token). Integer fields use a range slider editor (custom+ Editor).</p></div>);},args: {placeholder: 'Search with custom components...'},- decorators: [Story => (<div style={{width: 700}}><Story /></div>)],+ decorators: [+ Story => (+ <div style={{width: 700}}>+ <Story />+ </div>+ ),+ ],name: 'Custom Components Map',};diff --git a/apps/storybook/stories/Resizable.stories.tsx b/apps/storybook/stories/Resizable.stories.tsxindex 6d979e06f7..b35b6445ac 100644--- a/apps/storybook/stories/Resizable.stories.tsx+++ b/apps/storybook/stories/Resizable.stories.tsx@@ -2,11 +2,7 @@import type {Meta, StoryObj} from '@storybook/react';import * as stylex from '@stylexjs/stylex';-import {- colorVars,- spacingVars,- radiusVars,-} from '@xds/core/theme/tokens.stylex';+import {colorVars, radiusVars} from '@xds/core/theme/tokens.stylex';import {XDSResizeHandle, useXDSResizable} from '@xds/core/Resizable';import {XDSText, XDSHeading} from '@xds/core/Text';import {diff --git a/apps/storybook/stories/XIFSpec.stories.tsx b/apps/storybook/stories/XIFSpec.stories.tsxindex d910b55572..8d9f9904b4 100644--- a/apps/storybook/stories/XIFSpec.stories.tsx+++ b/apps/storybook/stories/XIFSpec.stories.tsx@@ -9,13 +9,11 @@ import type {XIFPath,} from '../../../packages/lab/src/SVGIcon/xif-types';import {- xifCheck,xifHome,xifFile,xifShield,xifBell,xifStar,- xifBellOverride,xifExamples,} from '../../../packages/lab/src/SVGIcon/xif-examples';@@ -143,8 +141,6 @@ export const CompositionSlots: StoryObj = {render: () => {const shieldDef = xifToSvgIconDef(xifShield);const fileDef = xifToSvgIconDef(xifFile);- const checkDef = xifToSvgIconDef(xifCheck);-// Manually demonstrate what slot composition would produce// (Until the component natively supports slots)const composedShieldCheck: SVGIconDef = {@@ -441,7 +437,6 @@ import {applyPersonality,roundCorners,addCurvature,- adjustTension,} from '../../../packages/lab/src/SVGIcon/pathTransforms';/** Simple test shapes for demonstrating transforms */@@ -469,8 +464,6 @@ export const PathTransformPlayground: StoryObj = {// so we render multiple preset rows insteadconst roundingLevels = [0, 0.2, 0.4, 0.6, 0.8, 1.0];const curvatureLevels = [0, 0.2, 0.5, 0.8, 1.0];- const tensionLevels = [0, 0.25, 0.5, 0.75, 1.0];-const shapes = Object.entries(testShapes);return (diff --git a/apps/storybook/stories/useXDSResizable.stories.tsx b/apps/storybook/stories/useXDSResizable.stories.tsxindex ff126ff217..af992d163c 100644--- a/apps/storybook/stories/useXDSResizable.stories.tsx+++ b/apps/storybook/stories/useXDSResizable.stories.tsx@@ -6,11 +6,9 @@ import {colorVars,radiusVars,spacingVars,- typographyVars,} from '@xds/core/theme/tokens.stylex';import {useXDSResizable, XDSResizeHandle} from '@xds/core/Resizable';import {XDSLayout, XDSLayoutContent, XDSLayoutPanel} from '@xds/core/Layout';-import {XDSText, XDSHeading} from '@xds/core/Text';const s = stylex.create({shell: {diff --git a/internal/vibe-tests/app/src/report/PromptDetailCard.tsx b/internal/vibe-tests/app/src/report/PromptDetailCard.tsxindex a2e2af18bd..f860ec3476 100644--- a/internal/vibe-tests/app/src/report/PromptDetailCard.tsx+++ b/internal/vibe-tests/app/src/report/PromptDetailCard.tsx@@ -120,9 +120,6 @@ export function PromptDetailCard({onViewCode,previewUrls,}: PromptDetailCardProps) {- const hasBoth = !!(xdsScore && baselineScore);- const hasAll = !!(xdsScore && baselineScore && htmlScore);- const hasFourWay = !!(xdsScore && baselineScore && xdsTailwindScore);const hasAnyPreview =previewUrls?.xds ||previewUrls?.baseline ||diff --git a/internal/vibe-tests/src/cli.ts b/internal/vibe-tests/src/cli.tsindex 2386556085..6ce334bf76 100644--- a/internal/vibe-tests/src/cli.ts+++ b/internal/vibe-tests/src/cli.ts@@ -13,13 +13,7 @@ import {Command} from 'commander';import * as path from 'node:path';import * as fs from 'node:fs';import type {Iteration} from './types.js';-import {- loadTestSet,- readJsonl,- readJson,- getResultsDir,-} from './utils.js';-import type {TestResult} from './types.js';+import {readJson} from './utils.js';const program = new Command();diff --git a/internal/vibe-tests/src/design-judge.ts b/internal/vibe-tests/src/design-judge.tsindex ae66f651a6..f5689332b9 100644--- a/internal/vibe-tests/src/design-judge.ts+++ b/internal/vibe-tests/src/design-judge.ts@@ -27,7 +27,7 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {getResultsDir, ensureDir, writeJson, readJson} from './utils.js';+import {getResultsDir, writeJson, readJson} from './utils.js';// ============================================================// Typesdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsx b/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsxindex f77076e2fd..6237ed2587 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsx+++ b/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsx@@ -6,7 +6,6 @@ import {useState} from 'react';import {XDSSwitch} from '@xds/core/Switch';import {XDSCard} from '@xds/core/Card';import {XDSVStack} from '@xds/core/Layout';-import {XDSCenter} from '@xds/core/Center';export default function SwitchSettingsPanel() {const [notifications, setNotifications] = useState(false);diff --git a/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsx b/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsxindex fd42961b14..a787633beb 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsx+++ b/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsx@@ -4,7 +4,6 @@import {useState} from 'react';import {XDSSwitch} from '@xds/core/Switch';-import {XDSCenter} from '@xds/core/Center';export default function SwitchWithDescription() {const [value, setValue] = useState(false);diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx b/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsxindex 3da29c3f1f..4904cbfe46 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx+++ b/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx@@ -7,11 +7,9 @@ import {XDSNavIcon} from '@xds/core/NavIcon';import {XDSButton} from '@xds/core/Button';import {XDSIcon} from '@xds/core/Icon';import {- ChartBarIcon,CubeIcon,HomeIcon,DocumentTextIcon,- Cog6ToothIcon,BellIcon,} from '@heroicons/react/24/outline';diff --git a/packages/cli/templates/pages/ide/page.tsx b/packages/cli/templates/pages/ide/page.tsxindex 973b646c4c..5705ebee22 100644--- a/packages/cli/templates/pages/ide/page.tsx+++ b/packages/cli/templates/pages/ide/page.tsx@@ -8,11 +8,7 @@ import {XDSAppShell} from '@xds/core/AppShell';import {XDSTopNav, XDSTopNavItem} from '@xds/core/TopNav';import {XDSSideNav, XDSSideNavItem, XDSSideNavSection} from '@xds/core/SideNav';-import {- XDSLayout,- XDSLayoutContent,- XDSLayoutPanel,-} from '@xds/core/Layout';+import {XDSLayout, XDSLayoutContent, XDSLayoutPanel} from '@xds/core/Layout';import {XDSResizeHandle, useXDSResizable} from '@xds/core/Resizable';import {XDSText, XDSHeading} from '@xds/core/Text';import {XDSCodeBlock} from '@xds/core/CodeBlock';@@ -20,7 +16,10 @@ import {colorVars, spacingVars} from '@xds/core/theme/tokens.stylex';import {XDSStack} from '@xds/core/Layout';import {XDSOverflowList} from '@xds/core/OverflowList';import {XDSTabList, XDSTab} from '@xds/core/TabList';-import {XDSSegmentedControl, XDSSegmentedControlItem} from '@xds/core/SegmentedControl';+import {+ XDSSegmentedControl,+ XDSSegmentedControlItem,+} from '@xds/core/SegmentedControl';import {XDSButton} from '@xds/core/Button';import {XDSMetadataList, XDSMetadataListItem} from '@xds/core/MetadataList';import {XDSList, XDSListItem} from '@xds/core/List';@@ -33,7 +32,6 @@ import {DocumentTextIcon,CodeBracketIcon,MagnifyingGlassIcon,-PlayIcon,StopIcon,CommandLineIcon,@@ -45,14 +43,12 @@ import {PuzzlePieceIcon,} from '@heroicons/react/24/outline';import {- DocumentTextIcon as DocumentTextSolid,HomeIcon as HomeIconSolid,FolderOpenIcon as FolderOpenSolid,MagnifyingGlassIcon as MagnifyingGlassSolid,PuzzlePieceIcon as PuzzlePieceSolid,} from '@heroicons/react/24/solid';-const styles = stylex.create({contentFill: {height: '100%',@@ -157,7 +153,9 @@ $ next dev$ `;-function buildFileTree(onFileClick: (name: string) => void): XDSTreeListItemData[] {+function buildFileTree(+ onFileClick: (name: string) => void,+): XDSTreeListItemData[] {const file = (id: string): XDSTreeListItemData => ({id,label: id,@@ -165,21 +163,39 @@ function buildFileTree(onFileClick: (name: string) => void): XDSTreeListItemDataonClick: () => onFileClick(id),});return [- {id: 'src', label: 'src', startContent: <XDSIcon icon={FolderIcon} size="xsm" />, isExpanded: true, children: [- {id: 'components', label: 'components', startContent: <XDSIcon icon={FolderIcon} size="xsm" />, isExpanded: true, children: [- file('Counter.tsx'),- file('Header.tsx'),- file('Layout.tsx'),- ]},- {id: 'pages', label: 'pages', startContent: <XDSIcon icon={FolderIcon} size="xsm" />, isExpanded: true, children: [- file('index.tsx'),- file('about.tsx'),- ]},- {id: 'styles', label: 'styles', startContent: <XDSIcon icon={FolderIcon} size="xsm" />, isExpanded: true, children: [- file('tokens.stylex.ts'),- file('theme.ts'),- ]},- ]},+ {+ id: 'src',+ label: 'src',+ startContent: <XDSIcon icon={FolderIcon} size="xsm" />,+ isExpanded: true,+ children: [+ {+ id: 'components',+ label: 'components',+ startContent: <XDSIcon icon={FolderIcon} size="xsm" />,+ isExpanded: true,+ children: [+ file('Counter.tsx'),+ file('Header.tsx'),+ file('Layout.tsx'),+ ],+ },+ {+ id: 'pages',+ label: 'pages',+ startContent: <XDSIcon icon={FolderIcon} size="xsm" />,+ isExpanded: true,+ children: [file('index.tsx'), file('about.tsx')],+ },+ {+ id: 'styles',+ label: 'styles',+ startContent: <XDSIcon icon={FolderIcon} size="xsm" />,+ isExpanded: true,+ children: [file('tokens.stylex.ts'), file('theme.ts')],+ },+ ],+ },file('package.json'),file('tsconfig.json'),file('next.config.mjs'),@@ -315,8 +331,14 @@ export default function ResizableWorkspacePage() {start={<div {...stylex.props(styles.hideOnMobile)}>{!startPanel.isCollapsed && (- <XDSLayoutPanel width={startPanel.size} hasDivider={false} padding={0}>- <XDSStack direction="vertical" xstyle={styles.fileExplorer} gap={2}>+ <XDSLayoutPanel+ width={startPanel.size}+ hasDivider={false}+ padding={0}>+ <XDSStack+ direction="vertical"+ xstyle={styles.fileExplorer}+ gap={2}><XDSTextInputlabel="Search files"isLabelHidden@@ -325,10 +347,7 @@ export default function ResizableWorkspacePage() {size="md"startIcon={MagnifyingGlassIcon}/>- <XDSTreeList- items={fileTree}- density="compact"- />+ <XDSTreeList items={fileTree} density="compact" /></XDSStack></XDSLayoutPanel>)}@@ -356,7 +375,12 @@ export default function ResizableWorkspacePage() {highlightLines={[21]}hasCopyButton={false}size="sm"- style={{width: '100%', height: '100%', borderWidth: 0, borderRadius: 0}}+ style={{+ width: '100%',+ height: '100%',+ borderWidth: 0,+ borderRadius: 0,+ }}/></div><XDSResizeHandle@@ -368,18 +392,53 @@ export default function ResizableWorkspacePage() {label="Resize terminal"/>{!bottomPanel.isCollapsed && (- <div style={{height: bottomPanel.size, flexShrink: 0, overflow: 'hidden'}}>- <XDSStack direction="vertical" xstyle={styles.contentFill}>+ <div+ style={{+ height: bottomPanel.size,+ flexShrink: 0,+ overflow: 'hidden',+ }}>+ <XDSStack+ direction="vertical"+ xstyle={styles.contentFill}><XDSTabListvalue={activeTermTab}- onChange={(val) => setActiveTermTab(val)}+ onChange={val => setActiveTermTab(val)}size="sm"hasDivider={false}xstyle={styles.tabListPadding}>- <XDSTab label="Terminal" value="terminal" icon={<XDSIcon icon={CommandLineIcon} size="sm" />} />- <XDSTab label="Problems" value="problems" icon={<XDSIcon icon={ExclamationTriangleIcon} size="sm" />} />- <XDSTab label="Output" value="output" icon={<XDSIcon icon={InformationCircleIcon} size="sm" />} />- <XDSTab label="Debug" value="debug" icon={<XDSIcon icon={BugAntIcon} size="sm" />} />+ <XDSTab+ label="Terminal"+ value="terminal"+ icon={+ <XDSIcon icon={CommandLineIcon} size="sm" />+ }+ />+ <XDSTab+ label="Problems"+ value="problems"+ icon={+ <XDSIcon+ icon={ExclamationTriangleIcon}+ size="sm"+ />+ }+ />+ <XDSTab+ label="Output"+ value="output"+ icon={+ <XDSIcon+ icon={InformationCircleIcon}+ size="sm"+ />+ }+ />+ <XDSTab+ label="Debug"+ value="debug"+ icon={<XDSIcon icon={BugAntIcon} size="sm" />}+ /></XDSTabList><div {...stylex.props(styles.terminalWrapper)}><XDSCodeBlock@@ -387,7 +446,12 @@ export default function ResizableWorkspacePage() {language="bash"hasCopyButton={false}size="sm"- style={{width: '100%', height: '100%', borderWidth: 0, borderRadius: 0}}+ style={{+ width: '100%',+ height: '100%',+ borderWidth: 0,+ borderRadius: 0,+ }}/></div></XDSStack>@@ -407,7 +471,10 @@ export default function ResizableWorkspacePage() {label="Resize properties panel"/>{!endPanel.isCollapsed && (- <XDSLayoutPanel width={endPanel.size} hasDivider={false} padding={4}>+ <XDSLayoutPanel+ width={endPanel.size}+ hasDivider={false}+ padding={4}><XDSStack direction="vertical" gap={3}><XDSSegmentedControllabel="Properties panel sections"@@ -415,8 +482,14 @@ export default function ResizableWorkspacePage() {onChange={setActivePropertiesTab}size="sm"layout="fill">- <XDSSegmentedControlItem label="Properties" value="properties" />- <XDSSegmentedControlItem label="History" value="history" />+ <XDSSegmentedControlItem+ label="Properties"+ value="properties"+ />+ <XDSSegmentedControlItem+ label="History"+ value="history"+ /></XDSSegmentedControl>{activePropertiesTab === 'properties' ? (<>@@ -428,16 +501,30 @@ export default function ResizableWorkspacePage() {</XDSStack><XDSMetadataList xstyle={styles.metadataCompact}>{PROPERTIES.map(prop => (- <XDSMetadataListItem key={prop.label} label={prop.label}>+ <XDSMetadataListItem+ key={prop.label}+ label={prop.label}>{prop.value}</XDSMetadataListItem>))}</XDSMetadataList><XDSStack direction="vertical" gap={2}><XDSStack direction="vertical" gap={2}>- <XDSButton label="Format Document" size="md" variant="secondary" />- <XDSButton label="Go to Definition" size="md" variant="secondary" />- <XDSButton label="Find References" size="md" variant="secondary" />+ <XDSButton+ label="Format Document"+ size="md"+ variant="secondary"+ />+ <XDSButton+ label="Go to Definition"+ size="md"+ variant="secondary"+ />+ <XDSButton+ label="Find References"+ size="md"+ variant="secondary"+ /></XDSStack></XDSStack></>@@ -449,11 +536,19 @@ export default function ResizableWorkspacePage() {key={item.label}label={item.label}endContent={- <XDSText type="supporting" color="secondary">+ <XDSText+ type="supporting"+ color="secondary">{item.time}</XDSText>}- startContent={<span {...stylex.props(styles.historyTimelineDot)} />}+ startContent={+ <span+ {...stylex.props(+ styles.historyTimelineDot,+ )}+ />+ }/>))}</XDSList>diff --git a/packages/cli/templates/pages/payment-form/page.tsx b/packages/cli/templates/pages/payment-form/page.tsxindex fa59668bf4..a36e012a8b 100644--- a/packages/cli/templates/pages/payment-form/page.tsx+++ b/packages/cli/templates/pages/payment-form/page.tsx@@ -190,7 +190,7 @@ export default function PaymentFormPage() {const [email, setEmail] = useState('');const [emailOffers, setEmailOffers] = useState(false);const [deliveryMethod, setDeliveryMethod] = useState('standard');- const [paymentMethod, setPaymentMethod] = useState('card');+ const [paymentMethod, _setPaymentMethod] = useState('card');const [cardNumber, setCardNumber] = useState('');const [expiry, setExpiry] = useState('');const [expYear, setExpYear] = useState('');@@ -835,14 +835,10 @@ export default function PaymentFormPage() {<XDSLink href="#" type="supporting">Refund policy</XDSLink>- <XDSLink- href="#"- type="supporting">+ <XDSLink href="#" type="supporting">Privacy policy</XDSLink>- <XDSLink- href="#"- type="supporting">+ <XDSLink href="#" type="supporting">Terms of service</XDSLink><XDSLink href="#" type="supporting">@@ -928,14 +924,10 @@ export default function PaymentFormPage() {max={10}isIntegerOnly/>- <XDSLink- href="#"- type="supporting">+ <XDSLink href="#" type="supporting">Remove</XDSLink>- <XDSLink- href="#"- type="supporting">+ <XDSLink href="#" type="supporting">Save</XDSLink></XDSHStack>diff --git a/packages/cli/templates/pages/product-detail/page.tsx b/packages/cli/templates/pages/product-detail/page.tsxindex 5150498717..c07ba239ef 100644--- a/packages/cli/templates/pages/product-detail/page.tsx+++ b/packages/cli/templates/pages/product-detail/page.tsx@@ -5,7 +5,7 @@import {useState} from 'react';import {XDSAppShell} from '@xds/core/AppShell';import {XDSTopNav, XDSTopNavHeading, XDSTopNavItem} from '@xds/core/TopNav';-import {XDSVStack, XDSHStack, XDSStackItem} from '@xds/core/Layout';+import {XDSVStack, XDSHStack} from '@xds/core/Layout';import {XDSCenter} from '@xds/core/Center';import {XDSGrid} from '@xds/core/Grid';import {XDSText, XDSHeading} from '@xds/core/Text';diff --git a/packages/cli/templates/pages/table-grouped/page.tsx b/packages/cli/templates/pages/table-grouped/page.tsxindex 5af5327561..97ae0a1394 100644--- a/packages/cli/templates/pages/table-grouped/page.tsx+++ b/packages/cli/templates/pages/table-grouped/page.tsx@@ -40,7 +40,6 @@ import {XDSIcon} from '@xds/core/Icon';import {XDSNavIcon} from '@xds/core/NavIcon';import {XDSStatusDot} from '@xds/core/StatusDot';import {XDSDivider} from '@xds/core/Divider';-import {XDSToolbar} from '@xds/core/Toolbar';import {XDSMetadataList, XDSMetadataListItem} from '@xds/core/MetadataList';import {XDSTable,@@ -67,7 +66,6 @@ import {UserIcon,TrashIcon,EllipsisHorizontalIcon,- AdjustmentsHorizontalIcon,} from '@heroicons/react/24/outline';import {XMarkIcon} from '@heroicons/react/24/outline';import {@@ -596,13 +594,6 @@ const allTasks: TaskRow[] = [},];-const STATUS_BADGE: Record<TaskStatus, 'neutral'> = {- in_progress: 'neutral',- todo: 'neutral',- backlog: 'neutral',- done: 'neutral',-};-const STATUS_LABEL: Record<TaskStatus, string> = {in_progress: 'In Progress',todo: 'Todo',@@ -965,8 +956,8 @@ function TaskDetailPanel({}export default function DataTableTemplate() {- const [search, setSearch] = useState('');- const [priorityFilter, setPriorityFilter] = useState('all');+ const [search, _setSearch] = useState('');+ const [priorityFilter, _setPriorityFilter] = useState('all');const [dialogOpen, setDialogOpen] = useState(false);const [selectedTask, setSelectedTask] = useState<TaskRow | null>(null);const [powerSearchFilters, setPowerSearchFilters] = useState<diff --git a/packages/cli/templates/pages/table-page-heatmap-status/page.tsx b/packages/cli/templates/pages/table-page-heatmap-status/page.tsxindex e1a1528fb4..ed5d12e364 100644--- a/packages/cli/templates/pages/table-page-heatmap-status/page.tsx+++ b/packages/cli/templates/pages/table-page-heatmap-status/page.tsx@@ -34,7 +34,6 @@ type ProductName =| 'WhatsApp Business'| 'Instagram API';-function avatarSvg(bg: string) {const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="${bg}"/><circle cx="50" cy="38" r="18" fill="white" opacity="0.85"/><ellipse cx="50" cy="90" rx="30" ry="28" fill="white" opacity="0.85"/></svg>`;return `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;@@ -71,39 +70,210 @@ interface IncidentRow extends Record<string, unknown> {hour: number;}-const PRODUCTS: ProductName[] = [- 'Ads Manager',- 'Business Suite',- 'Commerce Manager',- 'Pages',- 'Messenger API',- 'Graph API',- 'WhatsApp Business',- 'Instagram API',-];-const incidents: IncidentRow[] = [// Active — ongoing- {id: 'INC-4008', product: 'Business Suite', title: 'Notification delivery delays affecting mobile push and email channels — queue saturation under investigation', severity: 'major', oncall: 'Carlos Mendez', status: 'ongoing', startTime: '09:15', duration: 'ongoing', date: '2025-01-15', dayOfWeek: 3, hour: 9},+ {+ id: 'INC-4008',+ product: 'Business Suite',+ title:+ 'Notification delivery delays affecting mobile push and email channels — queue saturation under investigation',+ severity: 'major',+ oncall: 'Carlos Mendez',+ status: 'ongoing',+ startTime: '09:15',+ duration: 'ongoing',+ date: '2025-01-15',+ dayOfWeek: 3,+ hour: 9,+ },// Tue (2) 3pm — the only major outage cluster (3 incidents)- {id: 'INC-4001', product: 'Ads Manager', title: 'Campaign creation timing out for ~12% of advertisers in EMEA region — root caused to elevated DB write latency', severity: 'critical', oncall: 'Sarah Chen', status: 'resolved', startTime: '15:10', duration: '2h 15m', date: '2025-01-14', dayOfWeek: 2, hour: 15},- {id: 'INC-4002', product: 'Graph API', title: 'Elevated 5xx error rates on /me and /me/accounts endpoints affecting third-party integrations globally', severity: 'critical', oncall: 'David Kim', status: 'resolved', startTime: '15:30', duration: '3h 20m', date: '2025-01-14', dayOfWeek: 2, hour: 15},- {id: 'INC-4003', product: 'Instagram API', title: 'Media upload failures for image and video content via /media endpoint affecting ~8% of publishers', severity: 'major', oncall: 'Priya Sharma', status: 'resolved', startTime: '15:05', duration: '1h 50m', date: '2025-01-14', dayOfWeek: 2, hour: 15},+ {+ id: 'INC-4001',+ product: 'Ads Manager',+ title:+ 'Campaign creation timing out for ~12% of advertisers in EMEA region — root caused to elevated DB write latency',+ severity: 'critical',+ oncall: 'Sarah Chen',+ status: 'resolved',+ startTime: '15:10',+ duration: '2h 15m',+ date: '2025-01-14',+ dayOfWeek: 2,+ hour: 15,+ },+ {+ id: 'INC-4002',+ product: 'Graph API',+ title:+ 'Elevated 5xx error rates on /me and /me/accounts endpoints affecting third-party integrations globally',+ severity: 'critical',+ oncall: 'David Kim',+ status: 'resolved',+ startTime: '15:30',+ duration: '3h 20m',+ date: '2025-01-14',+ dayOfWeek: 2,+ hour: 15,+ },+ {+ id: 'INC-4003',+ product: 'Instagram API',+ title:+ 'Media upload failures for image and video content via /media endpoint affecting ~8% of publishers',+ severity: 'major',+ oncall: 'Priya Sharma',+ status: 'resolved',+ startTime: '15:05',+ duration: '1h 50m',+ date: '2025-01-14',+ dayOfWeek: 2,+ hour: 15,+ },// Tue (2) 4pm — spillover (2 incidents)- {id: 'INC-4004', product: 'Ads Manager', title: 'Audience insights tab returning empty results due to cache invalidation cascade from earlier outage', severity: 'minor', oncall: 'Marcus Rivera', status: 'resolved', startTime: '16:00', duration: '45m', date: '2025-01-14', dayOfWeek: 2, hour: 16},- {id: 'INC-4005', product: 'WhatsApp Business', title: 'Outbound message delivery delays of 2-5 minutes for high-volume senders due to queue backpressure', severity: 'major', oncall: 'Elena Volkov', status: 'resolved', startTime: '16:20', duration: '1h 15m', date: '2025-01-14', dayOfWeek: 2, hour: 16},+ {+ id: 'INC-4004',+ product: 'Ads Manager',+ title:+ 'Audience insights tab returning empty results due to cache invalidation cascade from earlier outage',+ severity: 'minor',+ oncall: 'Marcus Rivera',+ status: 'resolved',+ startTime: '16:00',+ duration: '45m',+ date: '2025-01-14',+ dayOfWeek: 2,+ hour: 16,+ },+ {+ id: 'INC-4005',+ product: 'WhatsApp Business',+ title:+ 'Outbound message delivery delays of 2-5 minutes for high-volume senders due to queue backpressure',+ severity: 'major',+ oncall: 'Elena Volkov',+ status: 'resolved',+ startTime: '16:20',+ duration: '1h 15m',+ date: '2025-01-14',+ dayOfWeek: 2,+ hour: 16,+ },// Thu (4) 10am — single incident- {id: 'INC-4006', product: 'Commerce Manager', title: 'Product catalog sync failures from Shopify and BigCommerce integrations after schema migration deployed', severity: 'major', oncall: 'Noah Williams', status: 'resolved', startTime: '10:15', duration: '2h 40m', date: '2025-01-16', dayOfWeek: 4, hour: 10},+ {+ id: 'INC-4006',+ product: 'Commerce Manager',+ title:+ 'Product catalog sync failures from Shopify and BigCommerce integrations after schema migration deployed',+ severity: 'major',+ oncall: 'Noah Williams',+ status: 'resolved',+ startTime: '10:15',+ duration: '2h 40m',+ date: '2025-01-16',+ dayOfWeek: 4,+ hour: 10,+ },// Fri (5) 4pm — single incident- {id: 'INC-4007', product: 'Messenger API', title: 'Webhook delivery failures for subscribed page events — retries succeeded but signaled false alerts', severity: 'minor', oncall: 'Mei Lin', status: 'resolved', startTime: '16:30', duration: '45m', date: '2025-01-17', dayOfWeek: 5, hour: 16},+ {+ id: 'INC-4007',+ product: 'Messenger API',+ title:+ 'Webhook delivery failures for subscribed page events — retries succeeded but signaled false alerts',+ severity: 'minor',+ oncall: 'Mei Lin',+ status: 'resolved',+ startTime: '16:30',+ duration: '45m',+ date: '2025-01-17',+ dayOfWeek: 5,+ hour: 16,+ },// Active incident// Scattered minor blips — light pink cells- {id: 'INC-4009', product: 'Pages', title: 'Image upload timeouts for posts larger than 4MB — auto-recovered after CDN region failover', severity: 'minor', oncall: 'Fatima Al-Rashid', status: 'resolved', startTime: '11:00', duration: '20m', date: '2025-01-12', dayOfWeek: 0, hour: 11},- {id: 'INC-4010', product: 'Graph API', title: 'Intermittent 503 errors on a single load balancer in us-east-1 — auto-healed by health check rotation', severity: 'minor', oncall: 'Lucas Andersson', status: 'resolved', startTime: '14:30', duration: '15m', date: '2025-01-13', dayOfWeek: 1, hour: 14},- {id: 'INC-4011', product: 'WhatsApp Business', title: 'Template message rejections due to stale category cache for newly approved templates', severity: 'minor', oncall: 'Sofia Garcia', status: 'resolved', startTime: '13:00', duration: '30m', date: '2025-01-16', dayOfWeek: 4, hour: 13},- {id: 'INC-4012', product: 'Commerce Manager', title: 'Inventory count mismatch between checkout and catalog services for ~200 SKUs in test region', severity: 'minor', oncall: 'Raj Kapoor', status: 'resolved', startTime: '12:00', duration: '1h 00m', date: '2025-01-17', dayOfWeek: 5, hour: 12},- {id: 'INC-4013', product: 'Instagram API', title: 'Story insights data delayed by 30-60 minutes for accounts with >100K followers', severity: 'minor', oncall: 'Emma Thompson', status: 'resolved', startTime: '10:00', duration: '45m', date: '2025-01-18', dayOfWeek: 6, hour: 10},- {id: 'INC-4014', product: 'Business Suite', title: 'Slow inbox loading times (>3s p95) for accounts with large message histories — index rebuild in progress', severity: 'minor', oncall: 'Andre Santos', status: 'resolved', startTime: '15:00', duration: '25m', date: '2025-01-15', dayOfWeek: 3, hour: 15},+ {+ id: 'INC-4009',+ product: 'Pages',+ title:+ 'Image upload timeouts for posts larger than 4MB — auto-recovered after CDN region failover',+ severity: 'minor',+ oncall: 'Fatima Al-Rashid',+ status: 'resolved',+ startTime: '11:00',+ duration: '20m',+ date: '2025-01-12',+ dayOfWeek: 0,+ hour: 11,+ },+ {+ id: 'INC-4010',+ product: 'Graph API',+ title:+ 'Intermittent 503 errors on a single load balancer in us-east-1 — auto-healed by health check rotation',+ severity: 'minor',+ oncall: 'Lucas Andersson',+ status: 'resolved',+ startTime: '14:30',+ duration: '15m',+ date: '2025-01-13',+ dayOfWeek: 1,+ hour: 14,+ },+ {+ id: 'INC-4011',+ product: 'WhatsApp Business',+ title:+ 'Template message rejections due to stale category cache for newly approved templates',+ severity: 'minor',+ oncall: 'Sofia Garcia',+ status: 'resolved',+ startTime: '13:00',+ duration: '30m',+ date: '2025-01-16',+ dayOfWeek: 4,+ hour: 13,+ },+ {+ id: 'INC-4012',+ product: 'Commerce Manager',+ title:+ 'Inventory count mismatch between checkout and catalog services for ~200 SKUs in test region',+ severity: 'minor',+ oncall: 'Raj Kapoor',+ status: 'resolved',+ startTime: '12:00',+ duration: '1h 00m',+ date: '2025-01-17',+ dayOfWeek: 5,+ hour: 12,+ },+ {+ id: 'INC-4013',+ product: 'Instagram API',+ title:+ 'Story insights data delayed by 30-60 minutes for accounts with >100K followers',+ severity: 'minor',+ oncall: 'Emma Thompson',+ status: 'resolved',+ startTime: '10:00',+ duration: '45m',+ date: '2025-01-18',+ dayOfWeek: 6,+ hour: 10,+ },+ {+ id: 'INC-4014',+ product: 'Business Suite',+ title:+ 'Slow inbox loading times (>3s p95) for accounts with large message histories — index rebuild in progress',+ severity: 'minor',+ oncall: 'Andre Santos',+ status: 'resolved',+ startTime: '15:00',+ duration: '25m',+ date: '2025-01-15',+ dayOfWeek: 3,+ hour: 15,+ },];const DAYS = [@@ -115,7 +285,17 @@ const DAYS = ['Jan 17','Jan 18',];-const HOURS = ['9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm'];+const HOURS = [+ '9am',+ '10am',+ '11am',+ '12pm',+ '1pm',+ '2pm',+ '3pm',+ '4pm',+ '5pm',+];function buildHeatmapData(data: IncidentRow[]) {return HOURS.flatMap((hour, hi) =>@@ -129,13 +309,13 @@ function buildHeatmapData(data: IncidentRow[]) {);}--const statusVariant: Record<string, 'error' | 'warning' | 'info' | 'success'> = {- ongoing: 'error',- identified: 'warning',- monitoring: 'info',- resolved: 'success',-};+const statusVariant: Record<string, 'error' | 'warning' | 'info' | 'success'> =+ {+ ongoing: 'error',+ identified: 'warning',+ monitoring: 'info',+ resolved: 'success',+ };const columns: XDSTableColumn<IncidentRow>[] = [{@@ -186,7 +366,11 @@ const columns: XDSTableColumn<IncidentRow>[] = [width: proportional(2),renderCell: (item: IncidentRow) => (<XDSHStack gap={2} vAlign="center">- <XDSAvatar name={item.oncall} src={ONCALL_AVATARS[item.oncall]} size="xsmall" />+ <XDSAvatar+ name={item.oncall}+ src={ONCALL_AVATARS[item.oncall]}+ size="xsmall"+ /><XDSText type="body">{item.oncall}</XDSText></XDSHStack>),@@ -223,20 +407,13 @@ function OutageHeatmap() {xKey="day"yKeys={['incidents']}height={280}- margin={{left: 0, right: 0, top: 0, bottom: 30}}- >+ margin={{left: 0, right: 0, top: 0, bottom: 30}}><XDSChartAxis position="bottom" /><XDSChartHeatmapGLxKey="day"yKey="hour"valueKey="incidents"- colorRange={[- '#dcfce7',- '#fee2e2',- '#fca5a5',- '#ef4444',- '#991b1b',- ]}+ colorRange={['#dcfce7', '#fee2e2', '#fca5a5', '#ef4444', '#991b1b']}/></XDSChart>);diff --git a/packages/core/src/AppShell/XDSAppShell.test.tsx b/packages/core/src/AppShell/XDSAppShell.test.tsxindex 132f3fcedd..151751aff1 100644--- a/packages/core/src/AppShell/XDSAppShell.test.tsx+++ b/packages/core/src/AppShell/XDSAppShell.test.tsx@@ -18,7 +18,7 @@ import {beforeEach,afterEach,} from 'vitest';-import {render, screen, fireEvent, act} from '@testing-library/react';+import {render, screen, fireEvent} from '@testing-library/react';import {XDSAppShell} from './XDSAppShell';import {XDSMobileNav} from '../MobileNav';import {XDSSideNav, XDSSideNavItem, XDSSideNavSection} from '../SideNav';diff --git a/packages/core/src/AppShell/XDSAppShell.tsx b/packages/core/src/AppShell/XDSAppShell.tsxindex 41e42632d1..4c639c0036 100644--- a/packages/core/src/AppShell/XDSAppShell.tsx+++ b/packages/core/src/AppShell/XDSAppShell.tsx@@ -41,7 +41,6 @@ import {XDSLayout} from '../Layout/XDSLayout';import {XDSLayoutHeader} from '../Layout/XDSLayoutHeader';import {XDSLayoutPanel} from '../Layout/XDSLayoutPanel';import {XDSLayoutContent} from '../Layout/XDSLayoutContent';-import {XDSMobileNav} from '../MobileNav/XDSMobileNav';import {XDSMobileNavToggle} from '../MobileNav/XDSMobileNavToggle';import {XDSSideNavRenderContext} from '../SideNav/XDSSideNavRenderContext';import {XDSTopNavRenderContext} from '../TopNav/XDSTopNavRenderContext';diff --git a/packages/core/src/AppShell/useXDSSlotPresence.tsx b/packages/core/src/AppShell/useXDSSlotPresence.tsxindex 5d549623bf..92c34e6bdc 100644--- a/packages/core/src/AppShell/useXDSSlotPresence.tsx+++ b/packages/core/src/AppShell/useXDSSlotPresence.tsx@@ -50,11 +50,6 @@ export function useXDSSlotPresence(initialValue = false) {const observerRef = useRef<MutationObserver | null>(null);const elementRef = useRef<HTMLDivElement | null>(null);- const check = useCallback(() => {- const el = elementRef.current;- setHasContent(el ? hasChildContent(el) : false);- }, []);-// Callback ref — called when elements mount/unmountconst ref = useCallback((node: HTMLDivElement | null) => {// Clean up previous observerdiff --git a/packages/core/src/Chat/XDSChatComposerInput.tsx b/packages/core/src/Chat/XDSChatComposerInput.tsxindex c99833740c..0cfc5bfac7 100644--- a/packages/core/src/Chat/XDSChatComposerInput.tsx+++ b/packages/core/src/Chat/XDSChatComposerInput.tsx@@ -37,7 +37,6 @@ import * as stylex from '@stylexjs/stylex';import {colorVars,spacingVars,- radiusVars,typeScaleVars,typographyVars,} from '../theme/tokens.stylex';diff --git a/packages/core/src/Chat/XDSChatLayout.test.tsx b/packages/core/src/Chat/XDSChatLayout.test.tsxindex 01766279a2..d411bcfeec 100644--- a/packages/core/src/Chat/XDSChatLayout.test.tsx+++ b/packages/core/src/Chat/XDSChatLayout.test.tsx@@ -39,7 +39,6 @@ describe('XDSChatLayout', () => {// The dock (parent of the composer's wrapper) should have position: fixedconst dock = composer.parentElement?.parentElement;expect(dock).toBeTruthy();- const dockStyle = window.getComputedStyle(dock!);// StyleX applies classes, so check the element exists in the DOM structureexpect(dock?.tagName).toBe('DIV');});@@ -69,9 +68,7 @@ describe('XDSChatLayout', () => {it('has container-type on root', () => {render(- <XDSChatLayout- composer={<div>composer</div>}- data-testid="layout-root">+ <XDSChatLayout composer={<div>composer</div>} data-testid="layout-root"><div>msg</div></XDSChatLayout>,);@@ -82,9 +79,7 @@ describe('XDSChatLayout', () => {it('applies data-testid', () => {render(- <XDSChatLayout- composer={<div>composer</div>}- data-testid="my-layout">+ <XDSChatLayout composer={<div>composer</div>} data-testid="my-layout"><div>msg</div></XDSChatLayout>,);diff --git a/packages/core/src/Chat/XDSChatMessageList.tsx b/packages/core/src/Chat/XDSChatMessageList.tsxindex f19d8bdfc8..8fc4c75c20 100644--- a/packages/core/src/Chat/XDSChatMessageList.tsx+++ b/packages/core/src/Chat/XDSChatMessageList.tsx@@ -22,14 +22,7 @@* - /packages/cli/templates/blocks/components/ChatMessageList/ (block examples)*/-import {- type ReactNode,- useCallback,- useEffect,- useMemo,- useRef,- useTransition,-} from 'react';+import {type ReactNode, useEffect, useMemo, useRef, useTransition} from 'react';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';import {spacingVars} from '../theme/tokens.stylex';diff --git a/packages/core/src/Chat/XDSChatToolCalls.tsx b/packages/core/src/Chat/XDSChatToolCalls.tsxindex cd7848c86b..b9207ad654 100644--- a/packages/core/src/Chat/XDSChatToolCalls.tsx+++ b/packages/core/src/Chat/XDSChatToolCalls.tsx@@ -461,7 +461,7 @@ function CallRow({call}: {call: XDSChatToolCallItem}) {export function XDSChatToolCalls(props: XDSChatToolCallsProps) {const {calls,- label: customLabel,+ label: _customLabel,isExpanded: controlledExpanded,defaultIsExpanded,onExpandedChange,@@ -471,11 +471,6 @@ export function XDSChatToolCalls(props: XDSChatToolCallsProps) {...rest} = props;- const hasErrors = calls.some(c => c.status === 'error');- const errorCount = calls.filter(c => c.status === 'error').length;- const isStreaming = calls.some(- c => c.status === 'running' || c.status === 'pending',- );const autoDefault = defaultIsExpanded ?? false;const [internalExpanded, setInternalExpanded] = useState(autoDefault);const isControlled = controlledExpanded !== undefined;diff --git a/packages/core/src/Chat/useTriggerMenu.tsx b/packages/core/src/Chat/useTriggerMenu.tsxindex 82cbc0184b..9f420e5140 100644--- a/packages/core/src/Chat/useTriggerMenu.tsx+++ b/packages/core/src/Chat/useTriggerMenu.tsx@@ -38,7 +38,7 @@ import {typographyVars,} from '../theme/tokens.stylex';import {xdsClassName, mergeProps, groupItems} from '../utils';-import type {XDSSearchableItem, XDSSearchSource} from '../Typeahead/types';+import type {XDSSearchableItem} from '../Typeahead/types';import type {XDSChatComposerTrigger,XDSChatComposerToken,diff --git a/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx b/packages/core/src/CheckboxList/XDSCheckboxListItem.tsxindex a4cacaf8a9..bedce61250 100644--- a/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx+++ b/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx@@ -127,7 +127,7 @@ export function XDSCheckboxListItem({);}- const [isFocused, setIsFocused] = useState(false);+ const [_isFocused, setIsFocused] = useState(false);// Density from list context for checkbox sizingconst listCtx = useContext(XDSListContext);diff --git a/packages/core/src/CodeBlock/highlightRanges.ts b/packages/core/src/CodeBlock/highlightRanges.tsindex 6fcc30d638..02d53cbea4 100644--- a/packages/core/src/CodeBlock/highlightRanges.ts+++ b/packages/core/src/CodeBlock/highlightRanges.ts@@ -151,8 +151,6 @@ function cleanupRanges(ranges: RangeEntry[]): void {// Chunked application with lazy content-visibility support// ----------------------------------------------------------------------------const LINE_CHUNK_SIZE = 50;-/*** Apply ranges for all [data-line] divs inside a container element.* Returns the RangeEntry[] so the caller can clean them up later.diff --git a/packages/core/src/Divider/XDSDivider.tsx b/packages/core/src/Divider/XDSDivider.tsxindex 8b1baf495b..ba8c82b8ca 100644--- a/packages/core/src/Divider/XDSDivider.tsx+++ b/packages/core/src/Divider/XDSDivider.tsx@@ -15,7 +15,7 @@* - /packages/cli/templates/blocks/components/Divider/ (showcase blocks)*/-import {type HTMLAttributes, type ReactNode} from 'react';+import {type ReactNode} from 'react';import type {XDSBaseProps} from '../XDSBaseProps';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';diff --git a/packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsx b/packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsxindex ba61de1554..1437fc5c4e 100644--- a/packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsx+++ b/packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsx@@ -400,7 +400,7 @@ describe('XDSDropdownMenu icon-only mode', () => {describe('XDSDropdownMenu hasChevron', () => {it('hides chevron when hasChevron is false', () => {- const {container} = render(+ render(<XDSDropdownMenubutton={{label: 'Sort by'}}hasChevron={false}diff --git a/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx b/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsxindex 8b83b74a95..6a1cfb5d90 100644--- a/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx+++ b/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx@@ -21,7 +21,6 @@import {useCallback, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';-import {XDSIcon} from '../Icon';import {renderIconSlot, type XDSIconType} from '../Icon';import {XDSText} from '../Text';import {diff --git a/packages/core/src/DropdownMenu/renderXDSDropdownItems.tsx b/packages/core/src/DropdownMenu/renderXDSDropdownItems.tsxindex 5a788d0570..83a2894e01 100644--- a/packages/core/src/DropdownMenu/renderXDSDropdownItems.tsx+++ b/packages/core/src/DropdownMenu/renderXDSDropdownItems.tsx@@ -16,10 +16,7 @@ import {typeScaleVars,colorVars,} from '../theme/tokens.stylex';-import type {- XDSDropdownMenuOption,- XDSDropdownMenuItemData,-} from './XDSDropdownMenu';+import type {XDSDropdownMenuOption} from './XDSDropdownMenu';const styles = stylex.create({sectionHeading: {diff --git a/packages/core/src/Layout/edgeCompensation.stylex.ts b/packages/core/src/Layout/edgeCompensation.stylex.tsindex 754f9e1a77..dc409e5ba8 100644--- a/packages/core/src/Layout/edgeCompensation.stylex.ts+++ b/packages/core/src/Layout/edgeCompensation.stylex.ts@@ -27,7 +27,6 @@*/import * as stylex from '@stylexjs/stylex';-import {spacingVars} from '../theme/tokens.stylex';/*** The data attribute that edge-compensatable components apply.diff --git a/packages/core/src/Link/XDSLink.tsx b/packages/core/src/Link/XDSLink.tsxindex 5566cfb1bc..75a4bf0e4a 100644--- a/packages/core/src/Link/XDSLink.tsx+++ b/packages/core/src/Link/XDSLink.tsx@@ -16,7 +16,7 @@* - /packages/cli/templates/blocks/components/Link/ (showcase blocks)*/-import {type MouseEventHandler, type ReactNode} from 'react';+import {type ReactNode} from 'react';import type {XDSBaseProps} from '../XDSBaseProps';import * as stylex from '@stylexjs/stylex';diff --git a/packages/core/src/List/XDSList.test.tsx b/packages/core/src/List/XDSList.test.tsxindex 35e9f14c71..e2d9023a33 100644--- a/packages/core/src/List/XDSList.test.tsx+++ b/packages/core/src/List/XDSList.test.tsx@@ -586,7 +586,7 @@ describe('XDSList', () => {});it('does not render markers when listStyle is none', () => {- const {container} = render(+ render(<XDSList listStyle="disc"><XDSListItem label="With marker" data-testid="with-marker" /></XDSList>,@@ -594,7 +594,7 @@ describe('XDSList', () => {const withMarker = screen.getByTestId('with-marker');const markerCount = withMarker.children.length;- const {container: container2} = render(+ render(<XDSList listStyle="none"><XDSListItem label="Plain item" data-testid="no-marker" /></XDSList>,diff --git a/packages/core/src/List/XDSList.tsx b/packages/core/src/List/XDSList.tsxindex 700db69960..a58edb8af0 100644--- a/packages/core/src/List/XDSList.tsx+++ b/packages/core/src/List/XDSList.tsx@@ -18,7 +18,6 @@import {useId, useMemo, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';-import type {StyleXStyles} from '@stylexjs/stylex';import {spacingVars} from '../theme/tokens.stylex';import type {XDSBaseProps} from '../XDSBaseProps';import {diff --git a/packages/core/src/List/XDSListItem.tsx b/packages/core/src/List/XDSListItem.tsxindex 850453b48a..c25a65da3b 100644--- a/packages/core/src/List/XDSListItem.tsx+++ b/packages/core/src/List/XDSListItem.tsx@@ -18,7 +18,6 @@import {useContext, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';-import type {StyleXStyles} from '@stylexjs/stylex';import {colorVars,radiusVars,diff --git a/packages/core/src/Markdown/incremental.test.ts b/packages/core/src/Markdown/incremental.test.tsindex f1114add01..d81e4bc9dc 100644--- a/packages/core/src/Markdown/incremental.test.ts+++ b/packages/core/src/Markdown/incremental.test.ts@@ -297,7 +297,7 @@ describe('streaming structural suppression', () => {it('suppresses table separator without data rows', () => {const state = createIncrementalState();const input = 'Intro\n\n| Col1 | Col2 |\n| --- | --- |';- const blocks = parseMarkdownIncremental(input, state);+ parseMarkdownIncremental(input, state);// Should suppress: header + separator but no data rows yet// Actually this is a valid table with 0 data rows — parser may render it.// The key test is that we don't show partial pipe syntax.@@ -418,7 +418,10 @@ describe('streaming end-to-end: no raw syntax visible', () => {return text;}- function streamCharByChar(fullText: string): {snapshots: BlockNode[][]; visibleTexts: string[]} {+ function streamCharByChar(fullText: string): {+ snapshots: BlockNode[][];+ visibleTexts: string[];+ } {const state = createIncrementalState();const snapshots: BlockNode[][] = [];const visibleTexts: string[] = [];@@ -446,7 +449,9 @@ describe('streaming end-to-end: no raw syntax visible', () => {// Text may briefly shrink when ** becomes formatting (markers removed// from visible text) — that's expected and correct.// Final result should have the full text (without raw markers)- expect(visibleTexts[visibleTexts.length - 1]).toBe('Hello bold text and more');+ expect(visibleTexts[visibleTexts.length - 1]).toBe(+ 'Hello bold text and more',+ );});it('never shows raw * during italic streaming', () => {@@ -484,7 +489,8 @@ describe('streaming end-to-end: no raw syntax visible', () => {});it('table rows render incrementally after header established', () => {- const text = '| A | B |\n| --- | --- |\n| r1a | r1b |\n| r2a | r2b |\n| r3a | r3b |';+ const text =+ '| A | B |\n| --- | --- |\n| r1a | r1b |\n| r2a | r2b |\n| r3a | r3b |';const state = createIncrementalState();let maxRows = 0;// Stream by line to see rows appear incrementallydiff --git a/packages/core/src/MetadataList/XDSMetadataList.tsx b/packages/core/src/MetadataList/XDSMetadataList.tsxindex b40c094fba..1a054d08e1 100644--- a/packages/core/src/MetadataList/XDSMetadataList.tsx+++ b/packages/core/src/MetadataList/XDSMetadataList.tsx@@ -18,7 +18,6 @@import {Children, useId, useMemo, useState, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';-import type {StyleXStyles} from '@stylexjs/stylex';import {spacingVars,colorVars,@@ -269,7 +268,9 @@ export function XDSMetadataList({{titleContent}<dlid={contentId}- {...mergeProps(stylex.props(styles.dl, getGridStyle()), {style: dynamicGridStyle})}>+ {...mergeProps(stylex.props(styles.dl, getGridStyle()), {+ style: dynamicGridStyle,+ })}>{visibleChildren}</dl>{isExceedMax && (diff --git a/packages/core/src/MetadataList/XDSMetadataListItem.tsx b/packages/core/src/MetadataList/XDSMetadataListItem.tsxindex 688d1e27b6..f5a6c3f290 100644--- a/packages/core/src/MetadataList/XDSMetadataListItem.tsx+++ b/packages/core/src/MetadataList/XDSMetadataListItem.tsx@@ -18,7 +18,6 @@import {useContext, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';-import type {StyleXStyles} from '@stylexjs/stylex';import {colorVars,spacingVars,diff --git a/packages/core/src/MobileNav/XDSMobileNav.tsx b/packages/core/src/MobileNav/XDSMobileNav.tsxindex e07e882b08..45af40bfbf 100644--- a/packages/core/src/MobileNav/XDSMobileNav.tsx+++ b/packages/core/src/MobileNav/XDSMobileNav.tsx@@ -276,8 +276,8 @@ export function XDSMobileNav({label,'data-testid': testId,xstyle,- className,- style,+ className: _className,+ style: _style,ref,}: XDSMobileNavProps) {// Read from AppShell context as fallbackdiff --git a/packages/core/src/NavMenu/XDSNavHeadingMenu.test.tsx b/packages/core/src/NavMenu/XDSNavHeadingMenu.test.tsxindex b6779af975..7a8d458702 100644--- a/packages/core/src/NavMenu/XDSNavHeadingMenu.test.tsx+++ b/packages/core/src/NavMenu/XDSNavHeadingMenu.test.tsx@@ -1,7 +1,7 @@// Copyright (c) Meta Platforms, Inc. and affiliates.import {describe, it, expect, vi} from 'vitest';-import {render, screen, within} from '@testing-library/react';+import {render, screen} from '@testing-library/react';import userEvent from '@testing-library/user-event';import {XDSNavHeadingMenu} from './XDSNavHeadingMenu';import {XDSNavHeadingMenuItem} from './XDSNavHeadingMenuItem';@@ -32,7 +32,7 @@ describe('XDSNavHeadingMenu', () => {});it('applies size class to container', () => {- const {container} = render(+ render(<XDSNavHeadingMenu size="lg"><XDSNavHeadingMenuItem label="Item" /></XDSNavHeadingMenu>,diff --git a/packages/core/src/Overlay/OverlayScrim.tsx b/packages/core/src/Overlay/OverlayScrim.tsxindex 4017afffce..f0787c9eed 100644--- a/packages/core/src/Overlay/OverlayScrim.tsx+++ b/packages/core/src/Overlay/OverlayScrim.tsx@@ -207,7 +207,6 @@ export function OverlayScrim({children,}: OverlayScrimProps) {const isHoverMode = showOn === 'hover' || showOn === 'hover-or-focus';- const isStrip = position === 'bottom' || position === 'top';const isControlled = isOpen !== undefined;const themeMode =diff --git a/packages/core/src/Popover/useXDSPopover.tsx b/packages/core/src/Popover/useXDSPopover.tsxindex d9085b446f..dd8c3382cf 100644--- a/packages/core/src/Popover/useXDSPopover.tsx+++ b/packages/core/src/Popover/useXDSPopover.tsx@@ -17,12 +17,7 @@import React, {useCallback, useEffect, useRef, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';-import {- useXDSLayer,- type ContextRenderProps,- type LayerPlacement,- type LayerAlignment,-} from '../Layer/useXDSLayer';+import {useXDSLayer, type ContextRenderProps} from '../Layer/useXDSLayer';import {useFocusTrap} from '../hooks/useFocusTrap';import type {StyleXStyles} from '@stylexjs/stylex';import {diff --git a/packages/core/src/PowerSearch/PowerSearchValueEditor.test.tsx b/packages/core/src/PowerSearch/PowerSearchValueEditor.test.tsxindex 4a184a3648..4a13881bdc 100644--- a/packages/core/src/PowerSearch/PowerSearchValueEditor.test.tsx+++ b/packages/core/src/PowerSearch/PowerSearchValueEditor.test.tsx@@ -10,12 +10,7 @@import {describe, it, expect, vi, beforeAll, afterAll} from 'vitest';import {render, screen, fireEvent, act} from '@testing-library/react';import {PowerSearchValueEditor} from './PowerSearchValueEditor';-import type {- OperatorValue,- FilterValue,- FilterValueEntityList,- PowerSearchEntity,-} from './types';+import type {FilterValueEntityList, PowerSearchEntity} from './types';import type {InternalConfig} from './useInternalConfig';import type {XDSSearchableItem, XDSSearchSource} from '../Typeahead/types';diff --git a/packages/core/src/PowerSearch/PowerSearchValueEditor.tsx b/packages/core/src/PowerSearch/PowerSearchValueEditor.tsxindex da11ea3359..4bcb8b0fa0 100644--- a/packages/core/src/PowerSearch/PowerSearchValueEditor.tsx+++ b/packages/core/src/PowerSearch/PowerSearchValueEditor.tsx@@ -78,7 +78,7 @@ function StringEditor({operatorValue,filterValue,onChange,- onEnter,+ onEnter: _onEnter,}: {operatorValue: OperatorValue & {type: 'string'};filterValue: FilterValue | undefined;diff --git a/packages/core/src/PowerSearch/XDSPowerSearch.tsx b/packages/core/src/PowerSearch/XDSPowerSearch.tsxindex 5ebb7163d7..cd7fee0f84 100644--- a/packages/core/src/PowerSearch/XDSPowerSearch.tsx+++ b/packages/core/src/PowerSearch/XDSPowerSearch.tsx@@ -50,8 +50,6 @@ import {PowerSearchEditPopover} from './PowerSearchEditPopover';import type {PowerSearchConfig,PowerSearchFilter,- PowerSearchField,- PowerSearchOperator,PartialFilter,PowerSearchItem,PowerSearchAuxData,@@ -784,7 +782,16 @@ export function XDSPowerSearch({/>);},- [filters, config, configProp, maxTokenLength, isReadOnly, isDisabled, handleTokenClick, componentOverrides],+ [+ filters,+ config,+ configProp,+ maxTokenLength,+ isReadOnly,+ isDisabled,+ handleTokenClick,+ componentOverrides,+ ],);// Custom typeahead item renderer — adds field icon and descriptiondiff --git a/packages/core/src/PowerSearch/formatFilterValue.ts b/packages/core/src/PowerSearch/formatFilterValue.tsindex 4879ff2c5c..652654cafc 100644--- a/packages/core/src/PowerSearch/formatFilterValue.ts+++ b/packages/core/src/PowerSearch/formatFilterValue.ts@@ -53,7 +53,7 @@ function formatRelativeDate(value: string): string {return value;}-function formatDateRange(value: {start: unknown; end: unknown}): string {+function formatDateRange(_value: {start: unknown; end: unknown}): string {return 'date range';}diff --git a/packages/core/src/Section/XDSSection.test.tsx b/packages/core/src/Section/XDSSection.test.tsxindex 1098e2cda7..4acb5acb86 100644--- a/packages/core/src/Section/XDSSection.test.tsx+++ b/packages/core/src/Section/XDSSection.test.tsx@@ -172,7 +172,7 @@ describe('XDSSection', () => {});it('renders nested sections with explicit inner padding override', () => {- const {container} = render(+ render(<XDSSection padding={6}><XDSSection padding={2} data-testid="inner">Innerdiff --git a/packages/core/src/Selector/XDSSelectorOption.tsx b/packages/core/src/Selector/XDSSelectorOption.tsxindex 45438f22de..845b58cf1d 100644--- a/packages/core/src/Selector/XDSSelectorOption.tsx+++ b/packages/core/src/Selector/XDSSelectorOption.tsx@@ -9,7 +9,6 @@import type {ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';-import {XDSIcon} from '../Icon';import {renderIconSlot, type XDSIconType} from '../Icon';import {XDSText} from '../Text';import {spacingVars} from '../theme/tokens.stylex';diff --git a/packages/core/src/SideNav/XDSSideNav.test.tsx b/packages/core/src/SideNav/XDSSideNav.test.tsxindex 4d76e48d46..4dd8eeaed4 100644--- a/packages/core/src/SideNav/XDSSideNav.test.tsx+++ b/packages/core/src/SideNav/XDSSideNav.test.tsx@@ -438,7 +438,7 @@ describe('XDSSideNavHeading headerEndContent', () => {describe('XDSSideNavHeading truncation tooltips', () => {it('attaches truncation refs to heading text spans', () => {- const {container} = render(+ render(<XDSSideNavHeadingheading="My App"superheading="Acme Corp"diff --git a/packages/core/src/SideNav/XDSSideNavItem.tsx b/packages/core/src/SideNav/XDSSideNavItem.tsxindex bb047815bc..e5c57020d5 100644--- a/packages/core/src/SideNav/XDSSideNavItem.tsx+++ b/packages/core/src/SideNav/XDSSideNavItem.tsx@@ -31,7 +31,6 @@ import {borderVars,radiusVars,} from '../theme/tokens.stylex';-import {XDSIcon} from '../Icon';import {renderIconSlot, type XDSIconType} from '../Icon';import {useXDSLinkComponent} from '../Link/useXDSLinkComponent';import type {XDSLinkComponentType} from '../Link/types';diff --git a/packages/core/src/Skeleton/XDSSkeleton.tsx b/packages/core/src/Skeleton/XDSSkeleton.tsxindex a2c6b7ff3b..93826e11de 100644--- a/packages/core/src/Skeleton/XDSSkeleton.tsx+++ b/packages/core/src/Skeleton/XDSSkeleton.tsx@@ -30,12 +30,6 @@ import {xdsClassName, mergeProps} from '../utils';*/const DELAY_TIME = 1000;-/**- * Duration of one fade cycle (ms).- * Controls how quickly the skeleton pulses between opacity values.- */-const FADE_TIME = 1000;-/*** Stagger increment between sequential skeleton elements (ms).* Creates a wave effect when multiple skeletons are used together.diff --git a/packages/core/src/Stack/XDSStack.tsx b/packages/core/src/Stack/XDSStack.tsxindex a4687fb9f0..891f2edbef 100644--- a/packages/core/src/Stack/XDSStack.tsx+++ b/packages/core/src/Stack/XDSStack.tsx@@ -12,13 +12,7 @@* - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)*/-import {- createElement,- type ElementType,- type HTMLAttributes,- type ReactNode,- type Ref,-} from 'react';+import {createElement, type ElementType, type ReactNode, type Ref} from 'react';import {XDSBaseProps} from '../XDSBaseProps';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';diff --git a/packages/core/src/Stack/XDSStackItem.tsx b/packages/core/src/Stack/XDSStackItem.tsxindex 314abab01c..52d17934eb 100644--- a/packages/core/src/Stack/XDSStackItem.tsx+++ b/packages/core/src/Stack/XDSStackItem.tsx@@ -11,13 +11,7 @@* - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)*/-import {- createElement,- type ElementType,- type HTMLAttributes,- type ReactNode,- type Ref,-} from 'react';+import {createElement, type ElementType, type ReactNode, type Ref} from 'react';import {XDSBaseProps} from '../XDSBaseProps';import * as stylex from '@stylexjs/stylex';import type {StyleXStyles} from '@stylexjs/stylex';diff --git a/packages/core/src/TabList/XDSTabList.test.tsx b/packages/core/src/TabList/XDSTabList.test.tsxindex 8958d074c1..086b2875bc 100644--- a/packages/core/src/TabList/XDSTabList.test.tsx+++ b/packages/core/src/TabList/XDSTabList.test.tsx@@ -208,7 +208,7 @@ describe('XDSTabList', () => {});it('does not render endContent wrapper when endContent is not provided', () => {- const {container} = render(+ render(<XDSTabList value="home" onChange={() => {}}><XDSTab value="home" label="Home" /></XDSTabList>,diff --git a/packages/core/src/Table/XDSTableHeaderCell.tsx b/packages/core/src/Table/XDSTableHeaderCell.tsxindex 450a4cbd19..ace53a0034 100644--- a/packages/core/src/Table/XDSTableHeaderCell.tsx+++ b/packages/core/src/Table/XDSTableHeaderCell.tsx@@ -26,11 +26,7 @@ import {} from '../theme/tokens.stylex';import type {StyleXStyles} from '../theme/types';import {overflowStyles, containerEdgeStyles} from './table.stylex';-import {- useTableContext,- buildDividerStyles,- mergeXStyle,-} from './useTableCellStyles';+import {useTableContext, mergeXStyle} from './useTableCellStyles';import {xdsClassName, mergeProps} from '../utils';/** Props for XDSTableHeaderCell — `<th>` wrapper with context-aware styling */diff --git a/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.test.tsx b/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.test.tsxindex 81a4545098..b06b40fd20 100644--- a/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.test.tsx+++ b/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.test.tsx@@ -7,7 +7,7 @@* @position Test file; validates filter rendering, interaction, and accessibility*/-import {describe, it, expect, vi} from 'vitest';+import {describe, it, expect} from 'vitest';import {useState} from 'react';import {render, screen} from '@testing-library/react';import userEvent from '@testing-library/user-event';diff --git a/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.tsx b/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.tsxindex f44047a236..deaad9d352 100644--- a/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.tsx+++ b/packages/core/src/Table/plugins/filtering/useXDSTableFiltering.tsx@@ -147,7 +147,7 @@ function resolveFilterConfig(* const filteredData = applyFilters(searchFilters, data);* ```*/-export function toSearchFilters<T extends Record<string, unknown>>(+export function toSearchFilters<_T extends Record<string, unknown>>(filters: XDSTableFilterState,columns: ReadonlyArray<{key: string;diff --git a/packages/core/src/Table/plugins/sortable/useXDSTableSortable.test.tsx b/packages/core/src/Table/plugins/sortable/useXDSTableSortable.test.tsxindex c6a9ec6106..e3bc4461e6 100644--- a/packages/core/src/Table/plugins/sortable/useXDSTableSortable.test.tsx+++ b/packages/core/src/Table/plugins/sortable/useXDSTableSortable.test.tsx@@ -16,7 +16,6 @@ import type {XDSTableColumn} from '../../types';import {useXDSTableSortable,type XDSTableSortState,- type UseXDSTableSortableConfig,} from './useXDSTableSortable';// =============================================================================diff --git a/packages/core/src/Thumbnail/XDSThumbnail.tsx b/packages/core/src/Thumbnail/XDSThumbnail.tsxindex 11400e8733..58fde17ad8 100644--- a/packages/core/src/Thumbnail/XDSThumbnail.tsx+++ b/packages/core/src/Thumbnail/XDSThumbnail.tsx@@ -21,7 +21,6 @@* - /packages/cli/templates/blocks/components/Thumbnail/ (showcase blocks)*/-import {type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';import {colorVars,diff --git a/packages/core/src/Timestamp/XDSTimestamp.tsx b/packages/core/src/Timestamp/XDSTimestamp.tsxindex a9be33b8d7..6d70693d0e 100644--- a/packages/core/src/Timestamp/XDSTimestamp.tsx+++ b/packages/core/src/Timestamp/XDSTimestamp.tsx@@ -25,7 +25,7 @@ import type {XDSTextColor,XDSTextWeight,} from '../theme/types';-import {xdsClassName, mergeProps} from '../utils';+import {xdsClassName} from '../utils';import type {XDSBaseProps} from '../XDSBaseProps';const LazyXDSTooltip = lazy(() =>@@ -128,11 +128,9 @@ const styles = stylex.create({// Formatting utilities// =============================================================================-const SECOND = 1;const MINUTE = 60;const HOUR = 3600;const DAY = 86400;-const WEEK = 7 * DAY;const MONTH = 30 * DAY;const YEAR = 365 * DAY;diff --git a/packages/core/src/ToggleButton/XDSToggleButton.tsx b/packages/core/src/ToggleButton/XDSToggleButton.tsxindex d1ea7bb8a7..9ac7f39958 100644--- a/packages/core/src/ToggleButton/XDSToggleButton.tsx+++ b/packages/core/src/ToggleButton/XDSToggleButton.tsx@@ -230,7 +230,7 @@ export function XDSToggleButton({tooltip,value,xstyle,- className,+ className: _className,style,...props}: XDSToggleButtonProps): ReactNode {diff --git a/packages/core/src/Tokenizer/XDSTokenizer.tsx b/packages/core/src/Tokenizer/XDSTokenizer.tsxindex 1e4b72a1ff..b94b2269bb 100644--- a/packages/core/src/Tokenizer/XDSTokenizer.tsx+++ b/packages/core/src/Tokenizer/XDSTokenizer.tsx@@ -471,7 +471,7 @@ export function XDSTokenizer<T extends XDSSearchableItem>({);// Track the current query for creatable mode- const [creatableQuery, setCreatableQuery] = useState('');+ const [_creatableQuery, setCreatableQuery] = useState('');const filteredSource: XDSSearchSource<T> = useMemo(() => ({diff --git a/packages/core/src/TopNav/XDSTopNav.tsx b/packages/core/src/TopNav/XDSTopNav.tsxindex 53eda64f8e..d1fa31ff0b 100644--- a/packages/core/src/TopNav/XDSTopNav.tsx+++ b/packages/core/src/TopNav/XDSTopNav.tsx@@ -19,7 +19,7 @@import {type ReactNode} from 'react';import type {XDSBaseProps} from '../XDSBaseProps';import * as stylex from '@stylexjs/stylex';-import {colorVars, spacingVars} from '../theme/tokens.stylex';+import {spacingVars} from '../theme/tokens.stylex';import {xdsClassName, mergeProps} from '../utils';import {XDSTopNavSlotContext} from './TopNavContext';import {useXDSTopNavRenderMode} from './XDSTopNavRenderContext';diff --git a/packages/core/src/TopNav/XDSTopNavMenu.tsx b/packages/core/src/TopNav/XDSTopNavMenu.tsxindex 395a8c292c..d9355ee413 100644--- a/packages/core/src/TopNav/XDSTopNavMenu.tsx+++ b/packages/core/src/TopNav/XDSTopNavMenu.tsx@@ -15,13 +15,7 @@* - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)*/-import {- useCallback,- useId,- useRef,- useState,- type ReactNode,-} from 'react';+import {useCallback, useId, useRef, useState, type ReactNode} from 'react';import * as stylex from '@stylexjs/stylex';import {useXDSPopover} from '../Popover/useXDSPopover';import {useXDSMenuHover} from '../hooks/useXDSMenuHover';@@ -361,7 +355,7 @@ export function XDSTopNavMenu({<LinkComponentkey={i}href={item.href}- onClick={(e: React.MouseEvent) => {+ onClick={(_e: React.MouseEvent) => {item.onClick?.();closeMobileNav();}}diff --git a/packages/core/src/TreeList/XDSTreeListBranches.tsx b/packages/core/src/TreeList/XDSTreeListBranches.tsxindex 256a227e99..0683d99fad 100644--- a/packages/core/src/TreeList/XDSTreeListBranches.tsx+++ b/packages/core/src/TreeList/XDSTreeListBranches.tsx@@ -46,8 +46,6 @@ const styles = stylex.create({verticalFull: {height: 'calc(100% + 1px)',},--});// =============================================================================@@ -70,7 +68,7 @@ interface XDSTreeListBranchesProps {*/export function XDSTreeListBranches({ancestorsIsLast,- isLast,+ isLast: _isLast,nestedLevel,}: XDSTreeListBranchesProps) {return (@@ -84,9 +82,11 @@ export function XDSTreeListBranches({level !== nestedLevel - 1 && (<divkey={level}- {...mergeProps(stylex.props(styles.container), {style: {- left: `calc(${BRANCH_MARGIN} + ${level} * ${LEVEL_INDENT})`,- }})}>+ {...mergeProps(stylex.props(styles.container), {+ style: {+ left: `calc(${BRANCH_MARGIN} + ${level} * ${LEVEL_INDENT})`,+ },+ })}><div{...stylex.props(styles.verticalLine, styles.verticalFull)}/>@@ -95,20 +95,16 @@ export function XDSTreeListBranches({)}{nestedLevel > 0 && (<div- {...mergeProps(stylex.props(styles.container), {style: {- left: `calc(${BRANCH_MARGIN} + ${nestedLevel - 1} * ${LEVEL_INDENT})`,- }})}>- <div- {...stylex.props(- styles.verticalLine,- styles.verticalFull,- )}- />+ {...mergeProps(stylex.props(styles.container), {+ style: {+ left: `calc(${BRANCH_MARGIN} + ${nestedLevel - 1} * ${LEVEL_INDENT})`,+ },+ })}>+ <div {...stylex.props(styles.verticalLine, styles.verticalFull)} /></div>)}</>);}-XDSTreeListBranches.displayName = 'XDSTreeListBranches';diff --git a/packages/core/src/hooks/useOverflow.test.ts b/packages/core/src/hooks/useOverflow.test.tsindex 2d7d9c1b23..75e537b358 100644--- a/packages/core/src/hooks/useOverflow.test.ts+++ b/packages/core/src/hooks/useOverflow.test.ts@@ -236,9 +236,6 @@ describe('useOverflow', () => {});// Get the observer that was created- const observer = (- FakeResizeObserver as unknown as {mock: {instances: FakeResizeObserver[]}}- ).mock?.instances;// Instead, check disconnect is called when ref is set to nullact(() => {result.current.containerRef(null);diff --git a/packages/core/src/theme/XDSTheme.test.tsx b/packages/core/src/theme/XDSTheme.test.tsxindex 2649571f8f..856caf749c 100644--- a/packages/core/src/theme/XDSTheme.test.tsx+++ b/packages/core/src/theme/XDSTheme.test.tsx@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-import {describe, it, expect, vi, beforeEach, afterEach} from 'vitest';+import {describe, it, expect, beforeEach, afterEach} from 'vitest';import {render, cleanup} from '@testing-library/react';import React from 'react';import {XDSTheme} from './XDSTheme';diff --git a/packages/core/src/theme/expandTypeScale.ts b/packages/core/src/theme/expandTypeScale.tsindex d409e2e3b4..d399ff850b 100644--- a/packages/core/src/theme/expandTypeScale.ts+++ b/packages/core/src/theme/expandTypeScale.ts@@ -216,21 +216,6 @@ const DEFAULT_TEXT_WEIGHTS: Record<string, string> = {'display-3': 'var(--font-weight-normal)',};-/**- * Line-height target ratios. Headings are tighter, body text is more generous.- */-const HEADING_LH_RATIO = 1.3;-const TEXT_LH_RATIOS: Record<string, number> = {- body: 1.5,- large: 1.45,- label: 1.4,- code: 1.5,- supporting: 1.5,- 'display-1': 1.2, // tighter — large text reads better tight- 'display-2': 1.2,- 'display-3': 1.2,-};-// =============================================================================// Computation// =============================================================================@@ -370,7 +355,7 @@ const TEXT_FONT_FAMILIES: Record<string, string> = {* Generate component style overrides for heading and text components.*/export function generateTypeScaleComponents(- config: XDSTypeScaleConfig,+ _config: XDSTypeScaleConfig,): Record<string, Record<string, Record<string, string>>> {const components: Record<string, Record<string, Record<string, string>>> = {};diff --git a/packages/lab/src/Chart/XDSChartDotGL.tsx b/packages/lab/src/Chart/XDSChartDotGL.tsxindex d8213b12eb..98fb471c5f 100644--- a/packages/lab/src/Chart/XDSChartDotGL.tsx+++ b/packages/lab/src/Chart/XDSChartDotGL.tsx@@ -11,13 +11,11 @@ import {useChart} from './ChartContext';import {xPixel} from './utils';import {hexToGL,- getCanvasDPR,getWebGLContext,setupGLState,sizeCanvas,mountCanvasOverSVG,createProgram,- CIRCLE_FRAG_BODY,POINT_SIZE_COMPENSATION,} from './webgl';diff --git a/packages/lab/src/Chart/XDSChartHeatmapGL.tsx b/packages/lab/src/Chart/XDSChartHeatmapGL.tsxindex 459d06c91a..a433eba960 100644--- a/packages/lab/src/Chart/XDSChartHeatmapGL.tsx+++ b/packages/lab/src/Chart/XDSChartHeatmapGL.tsx@@ -10,7 +10,6 @@ import {useRef, useEffect, useMemo} from 'react';import {scaleBand} from 'd3-scale';import {useChart} from './ChartContext';import {isBandScale} from './utils';-import type {ScaleBand} from 'd3-scale';import {hexToGL,getWebGLContext,@@ -115,7 +114,7 @@ export function XDSChartHeatmapGL({const canvas = canvasRef.current;if (!canvas || width <= 0 || height <= 0 || !isBandScale(xScale)) return;- const dpr = sizeCanvas(canvas, width, height);+ sizeCanvas(canvas, width, height);if (!glRef.current) glRef.current = getWebGLContext(canvas);const gl = glRef.current;diff --git a/packages/lab/src/Chart/XDSChartTooltip.tsx b/packages/lab/src/Chart/XDSChartTooltip.tsxindex f0519ec1d5..570fb338aa 100644--- a/packages/lab/src/Chart/XDSChartTooltip.tsx+++ b/packages/lab/src/Chart/XDSChartTooltip.tsx@@ -159,7 +159,7 @@ export function XDSChartTooltip({// For each y key, compute distance to that pointlet bestDistForDatum = Infinity;- let bestYKey = yKeys[0];+ let _bestYKey = yKeys[0];for (const yk of yKeys) {const yv = datum[yk];@@ -169,7 +169,7 @@ export function XDSChartTooltip({const dist = dx * dx + dy * dy; // squared euclideanif (dist < bestDistForDatum) {bestDistForDatum = dist;- bestYKey = yk;+ _bestYKey = yk;}}diff --git a/packages/lab/src/Chart/XDSChartZoom.tsx b/packages/lab/src/Chart/XDSChartZoom.tsxindex 104aff9488..9b2f14c2cb 100644--- a/packages/lab/src/Chart/XDSChartZoom.tsx+++ b/packages/lab/src/Chart/XDSChartZoom.tsx@@ -10,7 +10,7 @@* the initial domains captured on mount.*/-import {useCallback, useRef, useState, useEffect} from 'react';+import {useCallback, useRef, useEffect} from 'react';import {createPortal} from 'react-dom';import {XDSIconButton} from '@xds/core/IconButton';import {useChart} from './ChartContext';diff --git a/packages/lab/src/Chart/webgl.ts b/packages/lab/src/Chart/webgl.tsindex 7ef10eab18..a0905d98e0 100644--- a/packages/lab/src/Chart/webgl.ts+++ b/packages/lab/src/Chart/webgl.ts@@ -134,7 +134,6 @@ export function mountCanvasOverSVG(// The marker sits inside the chart's <g transform="translate(margin)">// so its bounding rect includes the margin offset automatically.// This is a Tier 1 guarantee — we derive position from the SVG, not from props.- const svgRect = svg.getBoundingClientRect();const parentRect = parent.getBoundingClientRect();const markerCTM = svgMarker.getScreenCTM();if (markerCTM) {diff --git a/packages/lab/src/ChartV2/marks/bar.tsx b/packages/lab/src/ChartV2/marks/bar.tsxindex d30dcdb0e2..5d13f3a543 100644--- a/packages/lab/src/ChartV2/marks/bar.tsx+++ b/packages/lab/src/ChartV2/marks/bar.tsx@@ -6,7 +6,7 @@* @position Standalone mark; chart root calls resolve() then render()*/-import type {SeriesDef, SeriesContext, ResolvedPoint} from '../types';+import type {SeriesDef, ResolvedPoint} from '../types';import type {ScaleBand} from 'd3-scale';export type ColorAccessor =diff --git a/packages/lab/src/ChartV2/marks/candlestick.tsx b/packages/lab/src/ChartV2/marks/candlestick.tsxindex 07a7538555..05ca9b51d2 100644--- a/packages/lab/src/ChartV2/marks/candlestick.tsx+++ b/packages/lab/src/ChartV2/marks/candlestick.tsx@@ -9,8 +9,12 @@ import type {SeriesDef, ResolvedPoint} from '../types';import type {ScaleBand} from 'd3-scale';export interface CandlestickOptions {- open: string; high: string; low: string; close: string;- upColor?: string; downColor?: string;+ open: string;+ high: string;+ low: string;+ close: string;+ upColor?: string;+ downColor?: string;}export function candlestick(options: CandlestickOptions): SeriesDef {@@ -30,18 +34,23 @@ export function candlestick(options: CandlestickOptions): SeriesDef {const d = data[i];let px: number;if ('bandwidth' in xScale) {- px = ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) + (xScale as ScaleBand<string>).bandwidth() / 2;+ px =+ ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) ++ (xScale as ScaleBand<string>).bandwidth() / 2;} else {px = xScale(d[xKey] as number);}- const close = typeof d[options.close] === 'number' ? (d[options.close] as number) : 0;+ const close =+ typeof d[options.close] === 'number'+ ? (d[options.close] as number)+ : 0;points.push({px, py: yScale(close), py0: yScale(0), dataIndex: i});}return points;},render(resolved, ctx) {- const {data, xKey, xScale, yScale} = ctx;+ const {data, xScale, yScale} = ctx;if (!('bandwidth' in xScale)) return null;const bw = (xScale as ScaleBand<string>).bandwidth();const bodyWidth = bw * 0.6;@@ -50,17 +59,41 @@ export function candlestick(options: CandlestickOptions): SeriesDef {<g>{resolved.map((p, i) => {const d = data[p.dataIndex];- const o = typeof d[options.open] === 'number' ? (d[options.open] as number) : 0;- const c = typeof d[options.close] === 'number' ? (d[options.close] as number) : 0;- const h = typeof d[options.high] === 'number' ? (d[options.high] as number) : 0;- const l = typeof d[options.low] === 'number' ? (d[options.low] as number) : 0;+ const o =+ typeof d[options.open] === 'number'+ ? (d[options.open] as number)+ : 0;+ const c =+ typeof d[options.close] === 'number'+ ? (d[options.close] as number)+ : 0;+ const h =+ typeof d[options.high] === 'number'+ ? (d[options.high] as number)+ : 0;+ const l =+ typeof d[options.low] === 'number'+ ? (d[options.low] as number)+ : 0;const isUp = c >= o;const col = isUp ? upColor : downColor;return (<g key={i}>- <line x1={p.px} x2={p.px} y1={yScale(h)} y2={yScale(l)} stroke={col} strokeWidth={1} />- <rect x={p.px - bodyWidth / 2} y={yScale(Math.max(o, c))}- width={bodyWidth} height={Math.max(1, Math.abs(yScale(o) - yScale(c)))} fill={col} />+ <line+ x1={p.px}+ x2={p.px}+ y1={yScale(h)}+ y2={yScale(l)}+ stroke={col}+ strokeWidth={1}+ />+ <rect+ x={p.px - bodyWidth / 2}+ y={yScale(Math.max(o, c))}+ width={bodyWidth}+ height={Math.max(1, Math.abs(yScale(o) - yScale(c)))}+ fill={col}+ /></g>);})}diff --git a/packages/lab/src/ChartV2/marks/dotGL.tsx b/packages/lab/src/ChartV2/marks/dotGL.tsxindex 196dcef46a..b356b151e1 100644--- a/packages/lab/src/ChartV2/marks/dotGL.tsx+++ b/packages/lab/src/ChartV2/marks/dotGL.tsx@@ -69,7 +69,7 @@ function DotGLCanvas({width: number;height: number;}) {- const {svgRef} = useChartV2();+ const {svgRef: _svgRef} = useChartV2();const canvasRef = useRef<HTMLCanvasElement | null>(null);const glRef = useRef<WebGLRenderingContext | null>(null);const programRef = useRef<WebGLProgram | null>(null);@@ -159,7 +159,9 @@ export function dotGL(dataKey: string, options: DotGLOptions): SeriesDef {const d = data[i];let px: number;if ('bandwidth' in xScale) {- px = ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) + (xScale as ScaleBand<string>).bandwidth() / 2;+ px =+ ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) ++ (xScale as ScaleBand<string>).bandwidth() / 2;} else {px = xScale(d[xKey] as number);}diff --git a/packages/lab/src/ChartV2/marks/heatmapGL.tsx b/packages/lab/src/ChartV2/marks/heatmapGL.tsxindex a5549f8480..04b7ab64b0 100644--- a/packages/lab/src/ChartV2/marks/heatmapGL.tsx+++ b/packages/lab/src/ChartV2/marks/heatmapGL.tsx@@ -9,7 +9,6 @@ import {useRef, useEffect, useMemo} from 'react';import {scaleBand} from 'd3-scale';import type {SeriesDef, ResolvedPoint} from '../types';import type {ScaleBand} from 'd3-scale';-import {useChartV2} from '../ChartV2Context';import {hexToGL,getWebGLContext,@@ -105,7 +104,8 @@ function HeatmapGLCanvas({const domain = useMemo((): [number, number] => {if (domainProp) return domainProp;- let min = Infinity, max = -Infinity;+ let min = Infinity,+ max = -Infinity;for (const d of data) {const v = d[valueKey];if (typeof v === 'number') {@@ -190,7 +190,19 @@ function HeatmapGLCanvas({gl.deleteBuffer(posBuf);gl.deleteBuffer(colBuf);- }, [data, xKey, yKey, valueKey, xScale, yBandScale, width, height, domain, ramp, cellGap]);+ }, [+ data,+ xKey,+ yKey,+ valueKey,+ xScale,+ yBandScale,+ width,+ height,+ domain,+ ramp,+ cellGap,+ ]);if (width <= 0 || height <= 0) return null;return <g ref={markerRef} />;@@ -226,7 +238,8 @@ export function heatmapGL(options: HeatmapGLOptions): SeriesDef {if (!('bandwidth' in xScale)) return points;for (let i = 0; i < data.length; i++) {const d = data[i];- const px = ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) ++ const px =+ ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) +(xScale as ScaleBand<string>).bandwidth() / 2;const v = typeof d[valueKey] === 'number' ? (d[valueKey] as number) : 0;points.push({px, py: yScale(v), py0: yScale(0), dataIndex: i});diff --git a/packages/lab/src/ChartV2/marks/line.tsx b/packages/lab/src/ChartV2/marks/line.tsxindex 3aae85a9a5..42fcbf86fd 100644--- a/packages/lab/src/ChartV2/marks/line.tsx+++ b/packages/lab/src/ChartV2/marks/line.tsx@@ -5,11 +5,22 @@* @output Line series — self-contained resolve + render*/-import {line as d3Line, curveLinear, curveMonotoneX, curveNatural, curveStep} from 'd3-shape';-import type {SeriesDef, SeriesContext, ResolvedPoint} from '../types';+import {+ line as d3Line,+ curveLinear,+ curveMonotoneX,+ curveNatural,+ curveStep,+} from 'd3-shape';+import type {SeriesDef, ResolvedPoint} from '../types';import type {ScaleBand} from 'd3-scale';-const CURVES = {linear: curveLinear, monotone: curveMonotoneX, natural: curveNatural, step: curveStep} as const;+const CURVES = {+ linear: curveLinear,+ monotone: curveMonotoneX,+ natural: curveNatural,+ step: curveStep,+} as const;export type CurveType = keyof typeof CURVES;export interface LineOptions {@@ -38,7 +49,9 @@ export function line(dataKey: string, options: LineOptions = {}): SeriesDef {const d = data[i];let px: number;if ('bandwidth' in xScale) {- px = ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) + (xScale as ScaleBand<string>).bandwidth() / 2;+ px =+ ((xScale as ScaleBand<string>)(String(d[xKey])) ?? 0) ++ (xScale as ScaleBand<string>).bandwidth() / 2;} else {px = xScale(d[xKey] as number);}@@ -59,10 +72,16 @@ export function line(dataKey: string, options: LineOptions = {}): SeriesDef {const pathD = pathGen(resolved) ?? '';return (<g>- <path d={pathD} fill="none" stroke={color} strokeWidth={strokeWidth} />- {dots && resolved.map((p, i) => (- <circle key={i} cx={p.px} cy={p.py} r={3} fill={color} />- ))}+ <path+ d={pathD}+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ />+ {dots &&+ resolved.map((p, i) => (+ <circle key={i} cx={p.px} cy={p.py} r={3} fill={color} />+ ))}</g>);},diff --git a/packages/lab/src/ChartV2/marks/referenceLine.tsx b/packages/lab/src/ChartV2/marks/referenceLine.tsxindex 8082c539ef..345f74ebcc 100644--- a/packages/lab/src/ChartV2/marks/referenceLine.tsx+++ b/packages/lab/src/ChartV2/marks/referenceLine.tsx@@ -5,7 +5,7 @@* @output Horizontal or vertical reference line/band annotation*/-import type {SeriesDef, ResolvedPoint} from '../types';+import type {SeriesDef} from '../types';import type {ScaleLinear} from 'd3-scale';export interface ReferenceLineOptions {@@ -77,19 +77,54 @@ export function referenceLine(options: ReferenceLineOptions): SeriesDef {const bandHeight = Math.abs(py2 - py);return (<g>- <rect x={0} y={top} width={width} height={bandHeight}- fill={color} opacity={bandOpacity} />- <line x1={0} x2={width} y1={py} y2={py}- stroke={color} strokeWidth={strokeWidth} strokeDasharray={strokeDasharray} />- <line x1={0} x2={width} y1={py2} y2={py2}- stroke={color} strokeWidth={strokeWidth} strokeDasharray={strokeDasharray} />+ <rect+ x={0}+ y={top}+ width={width}+ height={bandHeight}+ fill={color}+ opacity={bandOpacity}+ />+ <line+ x1={0}+ x2={width}+ y1={py}+ y2={py}+ stroke={color}+ strokeWidth={strokeWidth}+ strokeDasharray={strokeDasharray}+ />+ <line+ x1={0}+ x2={width}+ y1={py2}+ y2={py2}+ stroke={color}+ strokeWidth={strokeWidth}+ strokeDasharray={strokeDasharray}+ />{label && (<g transform={`translate(${bx},${py})`} pointerEvents="none">- <rect x={0} y={-badgeH / 2} width={textW} height={badgeH} rx={badgeRx}- fill="var(--color-background-popover)" fillOpacity={0.85}- stroke={color} strokeWidth={0.5} />- <text x={textW / 2} dy="0.35em" textAnchor="middle"- fontSize={fontSize} fontWeight={500} fill={color}>{label}</text>+ <rect+ x={0}+ y={-badgeH / 2}+ width={textW}+ height={badgeH}+ rx={badgeRx}+ fill="var(--color-background-popover)"+ fillOpacity={0.85}+ stroke={color}+ strokeWidth={0.5}+ />+ <text+ x={textW / 2}+ dy="0.35em"+ textAnchor="middle"+ fontSize={fontSize}+ fontWeight={500}+ fill={color}>+ {label}+ </text></g>)}</g>@@ -99,15 +134,37 @@ export function referenceLine(options: ReferenceLineOptions): SeriesDef {// Single horizontal linereturn (<g>- <line x1={0} x2={width} y1={py} y2={py}- stroke={color} strokeWidth={strokeWidth} strokeDasharray={strokeDasharray} />+ <line+ x1={0}+ x2={width}+ y1={py}+ y2={py}+ stroke={color}+ strokeWidth={strokeWidth}+ strokeDasharray={strokeDasharray}+ />{label && (<g transform={`translate(${bx},${py})`} pointerEvents="none">- <rect x={0} y={-badgeH / 2} width={textW} height={badgeH} rx={badgeRx}- fill="var(--color-background-popover)" fillOpacity={0.85}- stroke={color} strokeWidth={0.5} />- <text x={textW / 2} dy="0.35em" textAnchor="middle"- fontSize={fontSize} fontWeight={500} fill={color}>{label}</text>+ <rect+ x={0}+ y={-badgeH / 2}+ width={textW}+ height={badgeH}+ rx={badgeRx}+ fill="var(--color-background-popover)"+ fillOpacity={0.85}+ stroke={color}+ strokeWidth={0.5}+ />+ <text+ x={textW / 2}+ dy="0.35em"+ textAnchor="middle"+ fontSize={fontSize}+ fontWeight={500}+ fill={color}>+ {label}+ </text></g>)}</g>@@ -121,15 +178,40 @@ export function referenceLine(options: ReferenceLineOptions): SeriesDef {const by = labelPosition === 'end' ? 4 : height - badgeH - 4;return (<g>- <line x1={px} x2={px} y1={0} y2={height}- stroke={color} strokeWidth={strokeWidth} strokeDasharray={strokeDasharray} />+ <line+ x1={px}+ x2={px}+ y1={0}+ y2={height}+ stroke={color}+ strokeWidth={strokeWidth}+ strokeDasharray={strokeDasharray}+ />{label && (- <g transform={`translate(${px - textW / 2},${by})`} pointerEvents="none">- <rect x={0} y={0} width={textW} height={badgeH} rx={badgeRx}- fill="var(--color-background-popover)" fillOpacity={0.85}- stroke={color} strokeWidth={0.5} />- <text x={textW / 2} y={badgeH / 2} dy="0.35em" textAnchor="middle"- fontSize={fontSize} fontWeight={500} fill={color}>{label}</text>+ <g+ transform={`translate(${px - textW / 2},${by})`}+ pointerEvents="none">+ <rect+ x={0}+ y={0}+ width={textW}+ height={badgeH}+ rx={badgeRx}+ fill="var(--color-background-popover)"+ fillOpacity={0.85}+ stroke={color}+ strokeWidth={0.5}+ />+ <text+ x={textW / 2}+ y={badgeH / 2}+ dy="0.35em"+ textAnchor="middle"+ fontSize={fontSize}+ fontWeight={500}+ fill={color}>+ {label}+ </text></g>)}</g>diff --git a/packages/lab/src/ChartV2/marks/streamGL.tsx b/packages/lab/src/ChartV2/marks/streamGL.tsxindex e95953ff90..747f589fc2 100644--- a/packages/lab/src/ChartV2/marks/streamGL.tsx+++ b/packages/lab/src/ChartV2/marks/streamGL.tsx@@ -15,7 +15,7 @@ import {useCallback,type MutableRefObject,} from 'react';-import type {SeriesDef, ResolvedPoint} from '../types';+import type {SeriesDef} from '../types';import {useChartV2} from '../ChartV2Context';import {hexToGL,diff --git a/packages/lab/src/ChatReasoning/XDSChatReasoning.tsx b/packages/lab/src/ChatReasoning/XDSChatReasoning.tsxindex e685752653..a7d5b5ff20 100644--- a/packages/lab/src/ChatReasoning/XDSChatReasoning.tsx+++ b/packages/lab/src/ChatReasoning/XDSChatReasoning.tsx@@ -21,7 +21,6 @@ import * as stylex from '@stylexjs/stylex';import {colorVars,spacingVars,- radiusVars,typeScaleVars,typographyVars,fontWeightVars,diff --git a/packages/lab/src/Sankey/XDSSankeyChart.tsx b/packages/lab/src/Sankey/XDSSankeyChart.tsxindex 374e2539ca..345a0e8b62 100644--- a/packages/lab/src/Sankey/XDSSankeyChart.tsx+++ b/packages/lab/src/Sankey/XDSSankeyChart.tsx@@ -18,12 +18,7 @@ import {} from 'react';import {SankeyProvider} from './SankeyContext';import {computeLayout} from './layout';-import type {- SankeyNode,- SankeyLink,- SankeyColumn,- SankeyColumnDef,-} from './types';+import type {SankeyNode, SankeyLink, SankeyColumn} from './types';export interface XDSSankeyChartProps {/** Node definitions */diff --git a/packages/lab/src/ThreeD/XDS3DBar.tsx b/packages/lab/src/ThreeD/XDS3DBar.tsxindex 9ba9378abc..adddb5b801 100644--- a/packages/lab/src/ThreeD/XDS3DBar.tsx+++ b/packages/lab/src/ThreeD/XDS3DBar.tsx@@ -89,7 +89,7 @@ export function XDS3DBar({return (<g>{bars.map(b => {- const face = (pts: {px: number; py: number}[], shade: number) =>+ const face = (pts: {px: number; py: number}[], _shade: number) =>pts.map(p => `${p.px},${p.py}`).join(' ');// Front facediff --git a/packages/lab/src/ThreeD/XDS3DScatterGL.tsx b/packages/lab/src/ThreeD/XDS3DScatterGL.tsxindex b4a1befcd1..a466f3f3c1 100644--- a/packages/lab/src/ThreeD/XDS3DScatterGL.tsx+++ b/packages/lab/src/ThreeD/XDS3DScatterGL.tsx@@ -14,7 +14,6 @@*/import {useRef, useEffect, useMemo} from 'react';-import {createPortal} from 'react-dom';import {use3D} from './ThreeDContext';export interface XDS3DScatterGLProps {diff --git a/packages/themes/butter/src/icons.tsx b/packages/themes/butter/src/icons.tsxindex ea6a6d3acb..14d729da16 100644--- a/packages/themes/butter/src/icons.tsx+++ b/packages/themes/butter/src/icons.tsx@@ -40,7 +40,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/chocolate/src/icons.tsx b/packages/themes/chocolate/src/icons.tsxindex d7c0e20610..f9e2b34389 100644--- a/packages/themes/chocolate/src/icons.tsx+++ b/packages/themes/chocolate/src/icons.tsx@@ -40,7 +40,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/daily/src/icons.tsx b/packages/themes/daily/src/icons.tsxindex ca1c275536..4783fa87df 100644--- a/packages/themes/daily/src/icons.tsx+++ b/packages/themes/daily/src/icons.tsx@@ -30,7 +30,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/default/src/icons.tsx b/packages/themes/default/src/icons.tsxindex 5c2f89d2c4..ee98430c4c 100644--- a/packages/themes/default/src/icons.tsx+++ b/packages/themes/default/src/icons.tsx@@ -44,7 +44,6 @@ import {ExclamationTriangleIcon,ArrowTopRightOnSquareIcon,StopIcon,- StopCircleIcon,} from '@heroicons/react/24/solid';const iconProps = {diff --git a/packages/themes/gothic/src/icons.tsx b/packages/themes/gothic/src/icons.tsxindex cdabaf71ec..a7c9ad7a47 100644--- a/packages/themes/gothic/src/icons.tsx+++ b/packages/themes/gothic/src/icons.tsx@@ -40,7 +40,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/matcha/src/icons.tsx b/packages/themes/matcha/src/icons.tsxindex cb88097d84..7232ca5e06 100644--- a/packages/themes/matcha/src/icons.tsx+++ b/packages/themes/matcha/src/icons.tsx@@ -30,7 +30,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/neutral/src/icons.tsx b/packages/themes/neutral/src/icons.tsxindex 3f327cccdb..ad16d18bfe 100644--- a/packages/themes/neutral/src/icons.tsx+++ b/packages/themes/neutral/src/icons.tsx@@ -40,7 +40,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {diff --git a/packages/themes/stone/src/icons.tsx b/packages/themes/stone/src/icons.tsxindex 0049182312..eb5c7af0d9 100644--- a/packages/themes/stone/src/icons.tsx+++ b/packages/themes/stone/src/icons.tsx@@ -40,7 +40,6 @@ import {Wrench,Square,Mic,- CircleDot,} from 'lucide-react';const iconProps = {