Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore: clean up stale READMEs and add showcase SYNC references (#1777)

Cindy Zhangd43680d1cd38
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index af555d9992..23f203602b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -26,5 +26,8 @@ jobs:
- name: Clear ESLint cache
run: rm -rf .eslintcache node_modules/.cache
+ - name: Check SYNC comments
+ run: node scripts/check-sync.js
+
- name: Run ESLint
run: yarn lint
diff --git a/packages/core/src/AlertDialog/XDSAlertDialog.tsx b/packages/core/src/AlertDialog/XDSAlertDialog.tsx
index 8dd36ca1d3..46bc20e0c4 100644
--- a/packages/core/src/AlertDialog/XDSAlertDialog.tsx
+++ b/packages/core/src/AlertDialog/XDSAlertDialog.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/AlertDialog/XDSAlertDialog.test.tsx (tests for new/changed behavior)
* - /packages/core/src/AlertDialog/index.ts (exports if types change)
* - /apps/storybook/stories/AlertDialog.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/AlertDialog/ (showcase blocks)
*/
import {useId, useCallback} from 'react';
diff --git a/packages/core/src/AppShell/XDSAppShell.tsx b/packages/core/src/AppShell/XDSAppShell.tsx
index 48b9a6a98e..eaeed47a10 100644
--- a/packages/core/src/AppShell/XDSAppShell.tsx
+++ b/packages/core/src/AppShell/XDSAppShell.tsx
@@ -15,6 +15,7 @@ import React from 'react';
* - /packages/core/src/AppShell/index.ts
* - /packages/core/src/AppShell/XDSAppShell.test.tsx
* - /apps/storybook/stories/AppShell.stories.tsx
+ * - /packages/cli/templates/blocks/components/AppShell/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/AspectRatio/XDSAspectRatio.tsx b/packages/core/src/AspectRatio/XDSAspectRatio.tsx
index 4b0936701a..9723e6b334 100644
--- a/packages/core/src/AspectRatio/XDSAspectRatio.tsx
+++ b/packages/core/src/AspectRatio/XDSAspectRatio.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/AspectRatio/AspectRatio.doc.mjs
* - /packages/core/src/AspectRatio/XDSAspectRatio.test.tsx
* - /apps/storybook/stories/AspectRatio.stories.tsx
+ * - /packages/cli/templates/blocks/components/AspectRatio/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Avatar/XDSAvatar.tsx b/packages/core/src/Avatar/XDSAvatar.tsx
index 01fa2b4ffb..e09818e8ca 100644
--- a/packages/core/src/Avatar/XDSAvatar.tsx
+++ b/packages/core/src/Avatar/XDSAvatar.tsx
@@ -8,9 +8,9 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Avatar/Avatar.doc.mjs (props table, features, implementation notes)
- * - /packages/core/src/Avatar/XDSAvatar.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Avatar/index.ts (exports if types change)
* - /apps/storybook/stories/Avatar.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Avatar/ (showcase blocks)
*/
import {useState, type ReactNode} from 'react';
diff --git a/packages/core/src/Avatar/XDSAvatarStatusDot.tsx b/packages/core/src/Avatar/XDSAvatarStatusDot.tsx
index d8d69a8636..7ac7daae8e 100644
--- a/packages/core/src/Avatar/XDSAvatarStatusDot.tsx
+++ b/packages/core/src/Avatar/XDSAvatarStatusDot.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Avatar/Avatar.doc.mjs (features, files table)
* - /packages/core/src/Avatar/index.ts (exports)
* - /apps/storybook/stories/Avatar.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Avatar/ (showcase blocks)
*/
import {useContext, type ReactNode} from 'react';
diff --git a/packages/core/src/Badge/XDSBadge.tsx b/packages/core/src/Badge/XDSBadge.tsx
index 840bc37800..e93b8e2f0a 100644
--- a/packages/core/src/Badge/XDSBadge.tsx
+++ b/packages/core/src/Badge/XDSBadge.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Badge/XDSBadge.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Badge/index.ts (exports if types change)
* - /apps/storybook/stories/Badge.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Badge/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Banner/XDSBanner.tsx b/packages/core/src/Banner/XDSBanner.tsx
index 0ce2913fe8..a7c4085ddb 100644
--- a/packages/core/src/Banner/XDSBanner.tsx
+++ b/packages/core/src/Banner/XDSBanner.tsx
@@ -17,6 +17,7 @@
* - /packages/core/src/Banner/XDSBanner.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Banner/index.ts (exports if types change)
* - /apps/storybook/stories/Banner.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Banner/ (showcase blocks)
*/
import {useState, type ReactNode} from 'react';
diff --git a/packages/core/src/Breadcrumbs/XDSBreadcrumbItem.tsx b/packages/core/src/Breadcrumbs/XDSBreadcrumbItem.tsx
index 18fee4cd67..819d3da4b1 100644
--- a/packages/core/src/Breadcrumbs/XDSBreadcrumbItem.tsx
+++ b/packages/core/src/Breadcrumbs/XDSBreadcrumbItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Breadcrumbs/XDSBreadcrumbs.test.tsx
* - /packages/core/src/Breadcrumbs/index.ts
* - /apps/storybook/stories/Breadcrumbs.stories.tsx
+ * - /packages/cli/templates/blocks/components/Breadcrumbs/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Breadcrumbs/XDSBreadcrumbs.tsx b/packages/core/src/Breadcrumbs/XDSBreadcrumbs.tsx
index 2783fab0ac..54285edd16 100644
--- a/packages/core/src/Breadcrumbs/XDSBreadcrumbs.tsx
+++ b/packages/core/src/Breadcrumbs/XDSBreadcrumbs.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Breadcrumbs/XDSBreadcrumbs.test.tsx
* - /packages/core/src/Breadcrumbs/index.ts
* - /apps/storybook/stories/Breadcrumbs.stories.tsx
+ * - /packages/cli/templates/blocks/components/Breadcrumbs/ (showcase blocks)
*/
import {createContext, type ReactNode} from 'react';
diff --git a/packages/core/src/Button/XDSButton.tsx b/packages/core/src/Button/XDSButton.tsx
index 1130a9e7f5..ed04ef96be 100644
--- a/packages/core/src/Button/XDSButton.tsx
+++ b/packages/core/src/Button/XDSButton.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Button/XDSButton.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Button/index.ts (exports if types change)
* - /apps/storybook/stories/Button.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Button/ (showcase blocks)
*
* Last synced props: label, variant, size, isDisabled, isLoading, onClickAction, icon, isIconOnly, children, tooltip, endContent, href, as, target, rel
*/
diff --git a/packages/core/src/Calendar/XDSCalendar.tsx b/packages/core/src/Calendar/XDSCalendar.tsx
index 5abc57ca2b..0b7beeac79 100644
--- a/packages/core/src/Calendar/XDSCalendar.tsx
+++ b/packages/core/src/Calendar/XDSCalendar.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Calendar/XDSCalendar.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Calendar/index.ts (exports if types change)
* - /apps/storybook/stories/Calendar.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Calendar/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Card/XDSCard.tsx b/packages/core/src/Card/XDSCard.tsx
index ddb10f146b..2b9cc6b49a 100644
--- a/packages/core/src/Card/XDSCard.tsx
+++ b/packages/core/src/Card/XDSCard.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Card/Card.doc.mjs (props table, features)
* - /packages/core/src/Card/index.ts (exports if types change)
* - /apps/storybook/stories/Card.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Card/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Carousel/XDSCarousel.tsx b/packages/core/src/Carousel/XDSCarousel.tsx
index 7b30de3e08..dca67906e6 100644
--- a/packages/core/src/Carousel/XDSCarousel.tsx
+++ b/packages/core/src/Carousel/XDSCarousel.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Carousel/index.ts (exports)
* - /apps/storybook/stories/Carousel.stories.tsx
+ * - /packages/cli/templates/blocks/components/Carousel/ (showcase blocks)
*/
import {type ReactNode, useRef, useCallback, useEffect, Children} from 'react';
diff --git a/packages/core/src/Center/XDSCenter.tsx b/packages/core/src/Center/XDSCenter.tsx
index aeba3f160a..a85ee177de 100644
--- a/packages/core/src/Center/XDSCenter.tsx
+++ b/packages/core/src/Center/XDSCenter.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Center/Center.doc.mjs
* - /packages/core/src/Center/XDSCenter.test.tsx
* - /apps/storybook/stories/Center.stories.tsx
+ * - /packages/cli/templates/blocks/components/Center/ (showcase blocks)
*/
diff --git a/packages/core/src/Chat/README.md b/packages/core/src/Chat/README.md
deleted file mode 100644
index c0fe05990c..0000000000
--- a/packages/core/src/Chat/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# Chat
-
-Chat components for AI chat interfaces — layout (messages, bubbles) and composer (input, trigger menus, attachments).
-
-## Files
-
-| File | Purpose |
-| ---------------------------- | ----------------------------------------------------------------- |
-| `XDSChatMessageList.tsx` | Scrollable message container with auto-scroll and infinite scroll |
-| `XDSChatMessage.tsx` | Sender context wrapper — avatar, name, alignment by role |
-| `XDSChatMessageBubble.tsx` | Styled bubble container — reads sender from context |
-| `XDSChatMessageMetadata.tsx` | Timestamp + status display for bubbles |
-| `XDSChatSystemMessage.tsx` | Centered system/notice messages with optional divider |
-| `XDSChatComposer.tsx` | Layout shell with named slots, concentric radius, hover shadows |
-| `XDSChatComposerInput.tsx` | ContentEditable with trigger menus, tokens, history, paste/drop |
-| `XDSChatComposerDrawer.tsx` | Collapsible drawer panel for supplementary content |
-| `useTriggerMenu.tsx` | Internal hook — trigger detection, popover, keyboard nav, search |
-| `useAutoScroll.ts` | Internal hook — auto-scroll and "new messages" detection |
-| `XDSChatContext.tsx` | Internal React contexts for sender and density propagation |
-| `index.ts` | Public exports |
-
-## Architecture
-
-```
-XDSChatMessageList — scrollable container, auto-scroll
- XDSChatSystemMessage — date separators, status notices
- XDSChatMessage — sender context (avatar, name, alignment)
- XDSChatMessageBubble — styled bubble (optional per content)
- (any other content) — asset lists, tool calls, images
-
-XDSChatComposer — layout shell with named slots
- XDSChatComposerDrawer — collapsible drawer (attachments, context, etc.)
- XDSChatComposerInput — contentEditable with trigger menus
- useTriggerMenu — @ mentions, / commands via XDSSearchSource
-```
-
-## Context Flow
-
-- `XDSChatListContext` — density from list to messages
-- `XDSChatMessageContext` — sender + density from message to bubbles
-
-Both contexts are internal (not exported). Only types are public.
-
-## Theming
-
-### Component CSS Vars
-
-| Var | Default | Description |
-| -------------------- | -------------------- | ---------------------------------- |
-| `--composer-radius` | `var(--radius-page)` | Border radius of the composer body |
-| `--composer-padding` | `var(--spacing-3)` | Padding of the composer body |
-
-### Concentric Radius
-
-Inner elements (buttons, tokens) derive their radius from the container:
-
-```css
---radius-element: calc(var(--composer-radius) - var(--composer-padding));
-```
-
-Default: `28px - 12px = 16px`, which fully rounds 32px buttons.
-
-Only `--radius-element` is overridden — `--radius-container` is left alone
-so popovers, hovercards, and tooltips keep their normal surface radius.
-
-### Theme Override Example
-
-```ts
-defineTheme({
- components: {
- 'chat-composer': {
- base: {
- '--composer-radius': '20px',
- '--composer-padding': '16px',
- },
- },
- },
-});
-```
-
-### Theming Targets
-
-| Class | Variants | States |
-| -------------------------- | --------- | ------ |
-| `xds-chat-composer` | density | — |
-| `xds-chat-composer-input` | — | — |
-| `xds-chat-composer-drawer` | collapsed | — |
diff --git a/packages/core/src/Chat/XDSChatComposer.tsx b/packages/core/src/Chat/XDSChatComposer.tsx
index e564f60ed2..093798ac7d 100644
--- a/packages/core/src/Chat/XDSChatComposer.tsx
+++ b/packages/core/src/Chat/XDSChatComposer.tsx
@@ -17,8 +17,8 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/Chat.doc.mjs
- * - /packages/core/src/Chat/README.md
* - /apps/storybook/stories/ChatComposer.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Chat/XDSChatComposerDrawer.tsx b/packages/core/src/Chat/XDSChatComposerDrawer.tsx
index 7935c83343..d6e599cd41 100644
--- a/packages/core/src/Chat/XDSChatComposerDrawer.tsx
+++ b/packages/core/src/Chat/XDSChatComposerDrawer.tsx
@@ -10,6 +10,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts (exports)
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {useState, type ReactNode} from 'react';
diff --git a/packages/core/src/Chat/XDSChatComposerInput.tsx b/packages/core/src/Chat/XDSChatComposerInput.tsx
index de242b5c5c..00d131c4bd 100644
--- a/packages/core/src/Chat/XDSChatComposerInput.tsx
+++ b/packages/core/src/Chat/XDSChatComposerInput.tsx
@@ -15,7 +15,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts
* - /apps/storybook/stories/ChatComposer.stories.tsx
- * - /apps/storybook/stories/ChatComposerTriggers.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Chat/XDSChatDictationButton.tsx b/packages/core/src/Chat/XDSChatDictationButton.tsx
index 8c0f0544ea..881985492f 100644
--- a/packages/core/src/Chat/XDSChatDictationButton.tsx
+++ b/packages/core/src/Chat/XDSChatDictationButton.tsx
@@ -13,6 +13,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts (exports)
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import type {UseSpeechRecognitionReturn} from './useSpeechRecognition';
diff --git a/packages/core/src/Chat/XDSChatLayout.tsx b/packages/core/src/Chat/XDSChatLayout.tsx
index 85f21082c6..2dfe248b04 100644
--- a/packages/core/src/Chat/XDSChatLayout.tsx
+++ b/packages/core/src/Chat/XDSChatLayout.tsx
@@ -13,6 +13,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Chat/index.ts (exports)
* - /apps/storybook/stories/ChatLayout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx b/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx
index 70efbb827d..ca7fe05648 100644
--- a/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx
+++ b/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx
@@ -11,6 +11,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts (exports)
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import * as stylex from '@stylexjs/stylex';
diff --git a/packages/core/src/Chat/XDSChatMessage.tsx b/packages/core/src/Chat/XDSChatMessage.tsx
index 820648e848..d3df2855ad 100644
--- a/packages/core/src/Chat/XDSChatMessage.tsx
+++ b/packages/core/src/Chat/XDSChatMessage.tsx
@@ -14,6 +14,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Chat/index.ts (exports)
* - /apps/storybook/stories/Chat.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {type ReactNode, useMemo, useId} from 'react';
diff --git a/packages/core/src/Chat/XDSChatMessageBubble.tsx b/packages/core/src/Chat/XDSChatMessageBubble.tsx
index 176d67f72a..33f705784a 100644
--- a/packages/core/src/Chat/XDSChatMessageBubble.tsx
+++ b/packages/core/src/Chat/XDSChatMessageBubble.tsx
@@ -20,6 +20,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Chat/index.ts (exports)
* - /apps/storybook/stories/Chat.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import type {ReactNode} from 'react';
diff --git a/packages/core/src/Chat/XDSChatMessageList.tsx b/packages/core/src/Chat/XDSChatMessageList.tsx
index 9a850c2bce..f97b307657 100644
--- a/packages/core/src/Chat/XDSChatMessageList.tsx
+++ b/packages/core/src/Chat/XDSChatMessageList.tsx
@@ -17,6 +17,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Chat/index.ts (exports)
* - /apps/storybook/stories/Chat.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Chat/XDSChatPastedTextToken.tsx b/packages/core/src/Chat/XDSChatPastedTextToken.tsx
index c8ed55784e..b7b2274e20 100644
--- a/packages/core/src/Chat/XDSChatPastedTextToken.tsx
+++ b/packages/core/src/Chat/XDSChatPastedTextToken.tsx
@@ -11,6 +11,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts (exports)
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import * as stylex from '@stylexjs/stylex';
diff --git a/packages/core/src/Chat/XDSChatSystemMessage.tsx b/packages/core/src/Chat/XDSChatSystemMessage.tsx
index eb737db498..f5bc35ff82 100644
--- a/packages/core/src/Chat/XDSChatSystemMessage.tsx
+++ b/packages/core/src/Chat/XDSChatSystemMessage.tsx
@@ -14,6 +14,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Chat/index.ts (exports)
* - /apps/storybook/stories/Chat.stories.tsx
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Chat/XDSChatTokenizedText.tsx b/packages/core/src/Chat/XDSChatTokenizedText.tsx
index 5417696a34..86a27ed50e 100644
--- a/packages/core/src/Chat/XDSChatTokenizedText.tsx
+++ b/packages/core/src/Chat/XDSChatTokenizedText.tsx
@@ -12,6 +12,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/Chat/index.ts
+ * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)
*/
import type {ReactNode} from 'react';
diff --git a/packages/core/src/CheckboxInput/XDSCheckboxInput.tsx b/packages/core/src/CheckboxInput/XDSCheckboxInput.tsx
index 3cb4dc7b06..dce4e7e593 100644
--- a/packages/core/src/CheckboxInput/XDSCheckboxInput.tsx
+++ b/packages/core/src/CheckboxInput/XDSCheckboxInput.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/CheckboxInput/XDSCheckboxInput.test.tsx (tests for new/changed behavior)
* - /packages/core/src/CheckboxInput/index.ts (exports if types change)
* - /apps/storybook/stories/CheckboxInput.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/CheckboxInput/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/CheckboxList/XDSCheckboxList.tsx b/packages/core/src/CheckboxList/XDSCheckboxList.tsx
index 0cdbd19b9f..7fd8111482 100644
--- a/packages/core/src/CheckboxList/XDSCheckboxList.tsx
+++ b/packages/core/src/CheckboxList/XDSCheckboxList.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/CheckboxList/XDSCheckboxList.test.tsx
* - /packages/core/src/CheckboxList/index.ts
* - /apps/storybook/stories/CheckboxList.stories.tsx
+ * - /packages/cli/templates/blocks/components/CheckboxList/ (showcase blocks)
*/
import {useId, useOptimistic, useTransition, type ReactNode} from 'react';
diff --git a/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx b/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx
index 36be339dff..ec9f7ae2b3 100644
--- a/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx
+++ b/packages/core/src/CheckboxList/XDSCheckboxListItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/CheckboxList/XDSCheckboxList.test.tsx
* - /packages/core/src/CheckboxList/index.ts
* - /apps/storybook/stories/CheckboxList.stories.tsx
+ * - /packages/cli/templates/blocks/components/CheckboxList/ (showcase blocks)
*/
import {useContext, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/CodeBlock/XDSCode.tsx b/packages/core/src/CodeBlock/XDSCode.tsx
index 80e35a9e0c..f35cd276e8 100644
--- a/packages/core/src/CodeBlock/XDSCode.tsx
+++ b/packages/core/src/CodeBlock/XDSCode.tsx
@@ -8,6 +8,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/CodeBlock/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/CodeBlock/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Collapsible/XDSCollapsible.tsx b/packages/core/src/Collapsible/XDSCollapsible.tsx
index f7e4ebf573..5947488051 100644
--- a/packages/core/src/Collapsible/XDSCollapsible.tsx
+++ b/packages/core/src/Collapsible/XDSCollapsible.tsx
@@ -16,6 +16,7 @@
* - /packages/core/src/Collapsible/index.ts (exports)
* - /packages/core/src/Collapsible/Collapsible.doc.mjs
* - /apps/storybook/stories/Collapsible.stories.tsx
+ * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Collapsible/XDSCollapsibleGroup.tsx b/packages/core/src/Collapsible/XDSCollapsibleGroup.tsx
index 52a815b33d..ff299a6c45 100644
--- a/packages/core/src/Collapsible/XDSCollapsibleGroup.tsx
+++ b/packages/core/src/Collapsible/XDSCollapsibleGroup.tsx
@@ -18,6 +18,7 @@
* - /packages/core/src/Collapsible/Collapsible.doc.mjs
* - /packages/core/src/Collapsible/index.ts (exports)
* - /apps/storybook/stories/Collapsible.stories.tsx
+ * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)
*/
diff --git a/packages/core/src/Collapsible/XDSCollapsibleGroupContext.tsx b/packages/core/src/Collapsible/XDSCollapsibleGroupContext.tsx
index 15a8a210cf..b94e833c56 100644
--- a/packages/core/src/Collapsible/XDSCollapsibleGroupContext.tsx
+++ b/packages/core/src/Collapsible/XDSCollapsibleGroupContext.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Collapsible/XDSCollapsibleGroup.tsx (provider)
* - /packages/core/src/Collapsible/Collapsible.doc.mjs
+ * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)
*/
diff --git a/packages/core/src/CommandPalette/XDSCommandPalette.tsx b/packages/core/src/CommandPalette/XDSCommandPalette.tsx
index 7088504283..a88d0527c2 100644
--- a/packages/core/src/CommandPalette/XDSCommandPalette.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPalette.tsx
@@ -6,8 +6,8 @@
* @position Core root component; dialog shell with searchSource-driven items
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/lab/src/CommandPalette/README.md
* - /apps/storybook/stories/CommandPalette.stories.tsx
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteEmpty.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteEmpty.tsx
index 4247b6f785..15fa838993 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteEmpty.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteEmpty.tsx
@@ -5,7 +5,7 @@
* @position Sub-component; empty state shown when there are no items to display
*
* SYNC: When modified, update:
- * - /packages/lab/src/CommandPalette/README.md
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
'use client';
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteFooter.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteFooter.tsx
index 88d338860e..c4eb136c8f 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteFooter.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteFooter.tsx
@@ -5,7 +5,7 @@
* @position Sub-component; footer with keyboard hints
*
* SYNC: When modified, update:
- * - /packages/lab/src/CommandPalette/README.md
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
'use client';
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteGroup.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteGroup.tsx
index 6e6ab4cd02..3127ee197b 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteGroup.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteGroup.tsx
@@ -5,7 +5,7 @@
* @position Sub-component; visual grouping with heading
*
* SYNC: When modified, update:
- * - /packages/lab/src/CommandPalette/README.md
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
'use client';
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx
index 0e58eacbf2..6cca57134b 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx
@@ -6,8 +6,8 @@
* @position Search input for the command palette
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/lab/src/CommandPalette/README.md
* - /apps/storybook/stories/CommandPalette.stories.tsx
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
index 01a1778776..16fead8877 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
@@ -6,7 +6,7 @@
* @position Sub-component; individual selectable item
*
* SYNC: When modified, update:
- * - /packages/lab/src/CommandPalette/README.md
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
import {useCallback, useEffect, useMemo, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteList.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteList.tsx
index 57e88cf5bb..845fdd0cd6 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteList.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteList.tsx
@@ -5,8 +5,8 @@
* @position Sub-component; scrollable results container
*
* SYNC: When modified, update:
- * - /packages/core/src/CommandPalette/README.md
* - /packages/core/src/CommandPalette/index.ts
+ * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)
*/
'use client';
diff --git a/packages/core/src/DateInput/XDSDateInput.tsx b/packages/core/src/DateInput/XDSDateInput.tsx
index 5efd947d99..5e26596c93 100644
--- a/packages/core/src/DateInput/XDSDateInput.tsx
+++ b/packages/core/src/DateInput/XDSDateInput.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/DateInput/XDSDateInput.test.tsx (tests for new/changed behavior)
* - /packages/core/src/DateInput/index.ts (exports if types change)
* - /apps/storybook/stories/DateInput.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/DateInput/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Dialog/XDSDialog.tsx b/packages/core/src/Dialog/XDSDialog.tsx
index cab4e0c0fe..173028f5db 100644
--- a/packages/core/src/Dialog/XDSDialog.tsx
+++ b/packages/core/src/Dialog/XDSDialog.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Dialog/XDSDialog.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Dialog/index.ts (exports if types change)
* - /apps/storybook/stories/Dialog.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Dialog/ (showcase blocks)
*/
import {useEffect, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/Dialog/XDSDialogHeader.tsx b/packages/core/src/Dialog/XDSDialogHeader.tsx
index 4aed5e8c33..40d0e435c5 100644
--- a/packages/core/src/Dialog/XDSDialogHeader.tsx
+++ b/packages/core/src/Dialog/XDSDialogHeader.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Dialog/XDSDialogHeader.test.tsx
* - /packages/core/src/Dialog/index.ts
* - /apps/storybook/stories/Dialog.stories.tsx
+ * - /packages/cli/templates/blocks/components/Dialog/ (showcase blocks)
*/
import {useEffect, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/Divider/XDSDivider.tsx b/packages/core/src/Divider/XDSDivider.tsx
index dd8ad6c7d0..3376e570be 100644
--- a/packages/core/src/Divider/XDSDivider.tsx
+++ b/packages/core/src/Divider/XDSDivider.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Divider/Divider.doc.mjs
* - /packages/core/src/Divider/XDSDivider.test.tsx
* - /apps/storybook/stories/Divider.stories.tsx
+ * - /packages/cli/templates/blocks/components/Divider/ (showcase blocks)
*/
import {type HTMLAttributes, type ReactNode} from 'react';
diff --git a/packages/core/src/DropdownMenu/XDSDropdownMenu.tsx b/packages/core/src/DropdownMenu/XDSDropdownMenu.tsx
index ad518c8419..ecb2d8e0da 100644
--- a/packages/core/src/DropdownMenu/XDSDropdownMenu.tsx
+++ b/packages/core/src/DropdownMenu/XDSDropdownMenu.tsx
@@ -17,6 +17,7 @@
* - /packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsx
* - /packages/core/src/DropdownMenu/index.ts
* - /apps/storybook/stories/DropdownMenu.stories.tsx
+ * - /packages/cli/templates/blocks/components/DropdownMenu/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx b/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx
index 966beab1f2..6a88d6a70f 100644
--- a/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx
+++ b/packages/core/src/DropdownMenu/XDSDropdownMenuItem.tsx
@@ -13,6 +13,7 @@
* - /packages/core/src/DropdownMenu/XDSDropdownMenu.test.tsx
* - /packages/core/src/DropdownMenu/index.ts
* - /apps/storybook/stories/DropdownMenu.stories.tsx
+ * - /packages/cli/templates/blocks/components/DropdownMenu/ (showcase blocks)
*/
import {useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/EmptyState/XDSEmptyState.tsx b/packages/core/src/EmptyState/XDSEmptyState.tsx
index ee24f3a547..2fda3f39fc 100644
--- a/packages/core/src/EmptyState/XDSEmptyState.tsx
+++ b/packages/core/src/EmptyState/XDSEmptyState.tsx
@@ -9,6 +9,7 @@
* - /packages/core/src/EmptyState/XDSEmptyState.test.tsx (tests for new/changed behavior)
* - /packages/core/src/EmptyState/index.ts (exports if types change)
* - /apps/storybook/stories/EmptyState.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/EmptyState/ (showcase blocks)
*/
import {type ReactNode, createElement} from 'react';
diff --git a/packages/core/src/Field/XDSField.tsx b/packages/core/src/Field/XDSField.tsx
index 716ac4db40..4fe5055985 100644
--- a/packages/core/src/Field/XDSField.tsx
+++ b/packages/core/src/Field/XDSField.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Field/XDSField.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Field/index.ts (exports if types change)
* - /apps/storybook/stories/Field.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)
*/
import {type HTMLAttributes, type ReactNode} from 'react';
diff --git a/packages/core/src/Field/XDSFieldLabel.tsx b/packages/core/src/Field/XDSFieldLabel.tsx
index 9b31585483..cf7e3af572 100644
--- a/packages/core/src/Field/XDSFieldLabel.tsx
+++ b/packages/core/src/Field/XDSFieldLabel.tsx
@@ -7,6 +7,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Field/Field.doc.mjs (props table, features, implementation notes)
* - /packages/core/src/Field/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Field/XDSFieldStatus.tsx b/packages/core/src/Field/XDSFieldStatus.tsx
index 8af27a00a5..bcfdb4912b 100644
--- a/packages/core/src/Field/XDSFieldStatus.tsx
+++ b/packages/core/src/Field/XDSFieldStatus.tsx
@@ -7,6 +7,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Field/Field.doc.mjs (props table, features, implementation notes)
* - /packages/core/src/Field/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)
*/
'use client';
diff --git a/packages/core/src/FormLayout/XDSFormLayout.tsx b/packages/core/src/FormLayout/XDSFormLayout.tsx
index aff13215a0..b1feb5c2c1 100644
--- a/packages/core/src/FormLayout/XDSFormLayout.tsx
+++ b/packages/core/src/FormLayout/XDSFormLayout.tsx
@@ -7,10 +7,10 @@
* @position Core implementation; consumed by index.ts, tested by XDSFormLayout.test.tsx
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/core/src/FormLayout/README.md (props table, features, implementation notes)
* - /packages/core/src/FormLayout/XDSFormLayout.test.tsx (tests for new/changed behavior)
* - /packages/core/src/FormLayout/index.ts (exports if types change)
* - /apps/storybook/stories/FormLayout.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/FormLayout/ (showcase blocks)
*/
import {useMemo, type ReactNode} from 'react';
diff --git a/packages/core/src/FormLayout/XDSFormLayoutContext.ts b/packages/core/src/FormLayout/XDSFormLayoutContext.ts
index a5afceb7a2..18e60b791c 100644
--- a/packages/core/src/FormLayout/XDSFormLayoutContext.ts
+++ b/packages/core/src/FormLayout/XDSFormLayoutContext.ts
@@ -7,7 +7,6 @@
* @position Context for form layout direction detection
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/core/src/FormLayout/README.md
*/
diff --git a/packages/core/src/FormLayout/index.ts b/packages/core/src/FormLayout/index.ts
index e508e6c1a9..567340f3db 100644
--- a/packages/core/src/FormLayout/index.ts
+++ b/packages/core/src/FormLayout/index.ts
@@ -7,7 +7,6 @@
* @position Entry point for FormLayout module
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/core/src/FormLayout/README.md
*/
export {XDSFormLayout} from './XDSFormLayout';
diff --git a/packages/core/src/Grid/XDSGrid.tsx b/packages/core/src/Grid/XDSGrid.tsx
index 82f0bb4485..4b47654d4c 100644
--- a/packages/core/src/Grid/XDSGrid.tsx
+++ b/packages/core/src/Grid/XDSGrid.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Grid/Grid.doc.mjs
* - /packages/core/src/Grid/XDSGrid.test.tsx
* - /apps/storybook/stories/Grid.stories.tsx
+ * - /packages/cli/templates/blocks/components/Grid/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Grid/XDSGridSpan.tsx b/packages/core/src/Grid/XDSGridSpan.tsx
index f657d44e56..3877c6acfb 100644
--- a/packages/core/src/Grid/XDSGridSpan.tsx
+++ b/packages/core/src/Grid/XDSGridSpan.tsx
@@ -8,6 +8,7 @@
* - /packages/core/src/Grid/Grid.doc.mjs
* - /packages/core/src/Grid/XDSGrid.test.tsx
* - /apps/storybook/stories/Grid.stories.tsx
+ * - /packages/cli/templates/blocks/components/Grid/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/HoverCard/XDSHoverCard.tsx b/packages/core/src/HoverCard/XDSHoverCard.tsx
index ed3fca9bae..ab396fce47 100644
--- a/packages/core/src/HoverCard/XDSHoverCard.tsx
+++ b/packages/core/src/HoverCard/XDSHoverCard.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/HoverCard/XDSHoverCard.test.tsx
* - /packages/core/src/HoverCard/index.ts
* - /apps/storybook/stories/HoverCard.stories.tsx
+ * - /packages/cli/templates/blocks/components/HoverCard/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/Icon/XDSIcon.tsx b/packages/core/src/Icon/XDSIcon.tsx
index 603bf8a8dc..42eaff48f1 100644
--- a/packages/core/src/Icon/XDSIcon.tsx
+++ b/packages/core/src/Icon/XDSIcon.tsx
@@ -17,6 +17,7 @@
* - /packages/core/src/Icon/XDSIcon.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Icon/index.ts (exports if types change)
* - /apps/storybook/stories/Icon.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Icon/ (showcase blocks)
*/
import React, {type ComponentType, type SVGProps} from 'react';
diff --git a/packages/core/src/IconButton/XDSIconButton.tsx b/packages/core/src/IconButton/XDSIconButton.tsx
index abaa63df2e..d5a60bada6 100644
--- a/packages/core/src/IconButton/XDSIconButton.tsx
+++ b/packages/core/src/IconButton/XDSIconButton.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/IconButton/XDSIconButton.test.tsx (tests)
* - /packages/core/src/IconButton/index.ts (exports if types change)
* - /apps/storybook/stories/IconButton.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/IconButton/ (showcase blocks)
*/
import type {ReactNode} from 'react';
diff --git a/packages/core/src/Kbd/XDSKbd.tsx b/packages/core/src/Kbd/XDSKbd.tsx
index 6b4591cf8d..3aa3b4d3da 100644
--- a/packages/core/src/Kbd/XDSKbd.tsx
+++ b/packages/core/src/Kbd/XDSKbd.tsx
@@ -7,8 +7,8 @@
* @position Core implementation; renders styled keyboard shortcut indicators
*
* SYNC: When modified, update:
- * - /packages/core/src/Kbd/README.md
* - /packages/core/src/Kbd/index.ts
+ * - /packages/cli/templates/blocks/components/Kbd/ (showcase blocks)
*/
import {useState} from 'react';
diff --git a/packages/core/src/Layout/XDSLayout.tsx b/packages/core/src/Layout/XDSLayout.tsx
index 6c6e2a0833..4eb1ea11ea 100644
--- a/packages/core/src/Layout/XDSLayout.tsx
+++ b/packages/core/src/Layout/XDSLayout.tsx
@@ -11,8 +11,8 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Layout/Layout.doc.mjs
- * - /packages/core/src/Layout/XDSLayout/index.ts
* - /apps/storybook/stories/Layout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)
*/
import {type ReactNode, useMemo} from 'react';
diff --git a/packages/core/src/Layout/XDSLayoutContent.tsx b/packages/core/src/Layout/XDSLayoutContent.tsx
index 8466797151..18bab09dfa 100644
--- a/packages/core/src/Layout/XDSLayoutContent.tsx
+++ b/packages/core/src/Layout/XDSLayoutContent.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Layout/Layout.doc.mjs
* - /apps/storybook/stories/Layout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)
*/
import type {AriaRole, ReactNode} from 'react';
diff --git a/packages/core/src/Layout/XDSLayoutFooter.tsx b/packages/core/src/Layout/XDSLayoutFooter.tsx
index 82e001cd3f..10b0d7f3a1 100644
--- a/packages/core/src/Layout/XDSLayoutFooter.tsx
+++ b/packages/core/src/Layout/XDSLayoutFooter.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Layout/Layout.doc.mjs
* - /apps/storybook/stories/Layout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)
*/
import type {AriaRole, ReactNode} from 'react';
diff --git a/packages/core/src/Layout/XDSLayoutHeader.tsx b/packages/core/src/Layout/XDSLayoutHeader.tsx
index bf9b42a4d6..12d9707910 100644
--- a/packages/core/src/Layout/XDSLayoutHeader.tsx
+++ b/packages/core/src/Layout/XDSLayoutHeader.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Layout/Layout.doc.mjs
* - /apps/storybook/stories/Layout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)
*/
import type {AriaRole, ReactNode} from 'react';
diff --git a/packages/core/src/Layout/XDSLayoutPanel.tsx b/packages/core/src/Layout/XDSLayoutPanel.tsx
index e0b964e78f..a867aa43dd 100644
--- a/packages/core/src/Layout/XDSLayoutPanel.tsx
+++ b/packages/core/src/Layout/XDSLayoutPanel.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Layout/Layout.doc.mjs
* - /apps/storybook/stories/Layout.stories.tsx
+ * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)
*/
import type {AriaRole, ReactNode} from 'react';
diff --git a/packages/core/src/Link/XDSLink.tsx b/packages/core/src/Link/XDSLink.tsx
index 659ad433ad..4db5a22bba 100644
--- a/packages/core/src/Link/XDSLink.tsx
+++ b/packages/core/src/Link/XDSLink.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Link/XDSLink.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Link/index.ts (exports if types change)
* - /apps/storybook/stories/Link.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Link/ (showcase blocks)
*/
import {type MouseEventHandler, type ReactNode} from 'react';
diff --git a/packages/core/src/Link/XDSLinkProvider.tsx b/packages/core/src/Link/XDSLinkProvider.tsx
index 97df477785..f298992995 100644
--- a/packages/core/src/Link/XDSLinkProvider.tsx
+++ b/packages/core/src/Link/XDSLinkProvider.tsx
@@ -20,6 +20,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Link/index.ts
* - /packages/core/src/Link/Link.doc.mjs
+ * - /packages/cli/templates/blocks/components/Link/ (showcase blocks)
*/
diff --git a/packages/core/src/List/XDSList.tsx b/packages/core/src/List/XDSList.tsx
index 1ba8c54e56..77cee6bd24 100644
--- a/packages/core/src/List/XDSList.tsx
+++ b/packages/core/src/List/XDSList.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/List/XDSList.test.tsx
* - /packages/core/src/List/index.ts
* - /apps/storybook/stories/List.stories.tsx
+ * - /packages/cli/templates/blocks/components/List/ (showcase blocks)
*/
import {useId, useMemo, type ReactNode} from 'react';
diff --git a/packages/core/src/List/XDSListItem.tsx b/packages/core/src/List/XDSListItem.tsx
index b9306cd17a..b98af980dd 100644
--- a/packages/core/src/List/XDSListItem.tsx
+++ b/packages/core/src/List/XDSListItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/List/XDSList.test.tsx
* - /packages/core/src/List/index.ts
* - /apps/storybook/stories/List.stories.tsx
+ * - /packages/cli/templates/blocks/components/List/ (showcase blocks)
*/
import {useContext, type ReactNode} from 'react';
diff --git a/packages/core/src/MetadataList/XDSMetadataList.tsx b/packages/core/src/MetadataList/XDSMetadataList.tsx
index 76069d6060..4fa35090d3 100644
--- a/packages/core/src/MetadataList/XDSMetadataList.tsx
+++ b/packages/core/src/MetadataList/XDSMetadataList.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/MetadataList/XDSMetadataList.test.tsx
* - /packages/core/src/MetadataList/index.ts
* - /apps/storybook/stories/MetadataList.stories.tsx
+ * - /packages/cli/templates/blocks/components/MetadataList/ (showcase blocks)
*/
import {Children, useId, useMemo, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/MetadataList/XDSMetadataListItem.tsx b/packages/core/src/MetadataList/XDSMetadataListItem.tsx
index b974463e63..f020df92aa 100644
--- a/packages/core/src/MetadataList/XDSMetadataListItem.tsx
+++ b/packages/core/src/MetadataList/XDSMetadataListItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/MetadataList/XDSMetadataList.test.tsx
* - /packages/core/src/MetadataList/index.ts
* - /apps/storybook/stories/MetadataList.stories.tsx
+ * - /packages/cli/templates/blocks/components/MetadataList/ (showcase blocks)
*/
import {useContext, type ReactNode} from 'react';
diff --git a/packages/core/src/MobileNav/XDSMobileNav.tsx b/packages/core/src/MobileNav/XDSMobileNav.tsx
index f08fbc08fe..6e3b2af228 100644
--- a/packages/core/src/MobileNav/XDSMobileNav.tsx
+++ b/packages/core/src/MobileNav/XDSMobileNav.tsx
@@ -21,6 +21,7 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/MobileNav/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/MobileNav/ (showcase blocks)
*/
import {useCallback, useEffect, useRef, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/MoreMenu/XDSMoreMenu.tsx b/packages/core/src/MoreMenu/XDSMoreMenu.tsx
index d26603fe1a..77ccc91436 100644
--- a/packages/core/src/MoreMenu/XDSMoreMenu.tsx
+++ b/packages/core/src/MoreMenu/XDSMoreMenu.tsx
@@ -10,10 +10,10 @@
* XDSDropdownMenu with icon-only button defaults.
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/core/src/MoreMenu/README.md
* - /packages/core/src/MoreMenu/XDSMoreMenu.test.tsx
* - /packages/core/src/MoreMenu/index.ts
* - /apps/storybook/stories/MoreMenu.stories.tsx
+ * - /packages/cli/templates/blocks/components/MoreMenu/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/MultiSelector/XDSMultiSelector.tsx b/packages/core/src/MultiSelector/XDSMultiSelector.tsx
index 658ef3eaaa..9388d91182 100644
--- a/packages/core/src/MultiSelector/XDSMultiSelector.tsx
+++ b/packages/core/src/MultiSelector/XDSMultiSelector.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update:
* - /packages/core/src/MultiSelector/MultiSelector.doc.mjs
* - /packages/core/src/MultiSelector/index.ts
+ * - /packages/cli/templates/blocks/components/MultiSelector/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/NavIcon/XDSNavIcon.tsx b/packages/core/src/NavIcon/XDSNavIcon.tsx
index a9a113ba7c..bccea8b41e 100644
--- a/packages/core/src/NavIcon/XDSNavIcon.tsx
+++ b/packages/core/src/NavIcon/XDSNavIcon.tsx
@@ -9,7 +9,6 @@
* - /packages/core/src/NavIcon/XDSNavIcon.test.tsx
* - /packages/core/src/NavIcon/index.ts
* - /apps/storybook/stories/TopNav.stories.tsx
- * - /apps/storybook/stories/PageNav.stories.tsx
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/NumberInput/XDSNumberInput.tsx b/packages/core/src/NumberInput/XDSNumberInput.tsx
index 142895a10f..9e145539f6 100644
--- a/packages/core/src/NumberInput/XDSNumberInput.tsx
+++ b/packages/core/src/NumberInput/XDSNumberInput.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/NumberInput/XDSNumberInput.test.tsx (tests for new/changed behavior)
* - /packages/core/src/NumberInput/index.ts (exports if types change)
* - /apps/storybook/stories/NumberInput.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/NumberInput/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/OverflowList/XDSOverflowList.tsx b/packages/core/src/OverflowList/XDSOverflowList.tsx
index 05e1442dc3..1cdeb08f8b 100644
--- a/packages/core/src/OverflowList/XDSOverflowList.tsx
+++ b/packages/core/src/OverflowList/XDSOverflowList.tsx
@@ -12,6 +12,7 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/OverflowList/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/OverflowList/ (showcase blocks)
*/
diff --git a/packages/core/src/Pagination/XDSPagination.tsx b/packages/core/src/Pagination/XDSPagination.tsx
index 24a2875a59..d8976324be 100644
--- a/packages/core/src/Pagination/XDSPagination.tsx
+++ b/packages/core/src/Pagination/XDSPagination.tsx
@@ -7,10 +7,10 @@
* @position Core implementation; consumed by index.ts, tested by XDSPagination.test.tsx
*
* SYNC: When modified, update these files to stay in sync:
- * - /packages/core/src/Pagination/README.md (props table, features, implementation notes)
* - /packages/core/src/Pagination/XDSPagination.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Pagination/index.ts (exports if types change)
* - /apps/storybook/stories/Pagination.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Pagination/ (showcase blocks)
*
* Last synced props: page, onChange, onChangeAction, totalItems, totalPages, hasMore,
* pageSize, pageSizeOptions, onPageSizeChange, variant, siblingCount, size, isDisabled,
diff --git a/packages/core/src/Popover/XDSPopover.tsx b/packages/core/src/Popover/XDSPopover.tsx
index bce56b5fca..96c2351c45 100644
--- a/packages/core/src/Popover/XDSPopover.tsx
+++ b/packages/core/src/Popover/XDSPopover.tsx
@@ -12,6 +12,7 @@
* - /packages/core/src/Popover/XDSPopover.test.tsx
* - /packages/core/src/Popover/index.ts
* - /apps/storybook/stories/Popover.stories.tsx
+ * - /packages/cli/templates/blocks/components/Popover/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/PowerSearch/XDSPowerSearch.tsx b/packages/core/src/PowerSearch/XDSPowerSearch.tsx
index 567b2a2db4..3afa2f57e3 100644
--- a/packages/core/src/PowerSearch/XDSPowerSearch.tsx
+++ b/packages/core/src/PowerSearch/XDSPowerSearch.tsx
@@ -8,7 +8,7 @@
*
* SYNC: When modified, update:
* - /packages/core/src/PowerSearch/index.ts
- * - /packages/core/src/PowerSearch/XDSPowerSearch.doc.mjs
+ * - /packages/cli/templates/blocks/components/PowerSearch/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/ProgressBar/XDSProgressBar.tsx b/packages/core/src/ProgressBar/XDSProgressBar.tsx
index 3028effc38..bf7879b225 100644
--- a/packages/core/src/ProgressBar/XDSProgressBar.tsx
+++ b/packages/core/src/ProgressBar/XDSProgressBar.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/ProgressBar/XDSProgressBar.test.tsx (tests for new/changed behavior)
* - /packages/core/src/ProgressBar/index.ts (exports if types change)
* - /apps/storybook/stories/ProgressBar.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/ProgressBar/ (showcase blocks)
*/
import {useId} from 'react';
diff --git a/packages/core/src/RadioList/XDSRadioList.tsx b/packages/core/src/RadioList/XDSRadioList.tsx
index 3ae3291de9..ad1cbdc490 100644
--- a/packages/core/src/RadioList/XDSRadioList.tsx
+++ b/packages/core/src/RadioList/XDSRadioList.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/RadioList/XDSRadioList.test.tsx
* - /packages/core/src/RadioList/index.ts
* - /apps/storybook/stories/RadioList.stories.tsx
+ * - /packages/cli/templates/blocks/components/RadioList/ (showcase blocks)
*/
import {createContext, useId, type ReactNode} from 'react';
diff --git a/packages/core/src/RadioList/XDSRadioListItem.tsx b/packages/core/src/RadioList/XDSRadioListItem.tsx
index 746b021076..e509472b20 100644
--- a/packages/core/src/RadioList/XDSRadioListItem.tsx
+++ b/packages/core/src/RadioList/XDSRadioListItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/RadioList/XDSRadioList.test.tsx
* - /packages/core/src/RadioList/index.ts
* - /apps/storybook/stories/RadioList.stories.tsx
+ * - /packages/cli/templates/blocks/components/RadioList/ (showcase blocks)
*/
import {useContext, useId, type ReactNode} from 'react';
diff --git a/packages/core/src/Section/XDSSection.tsx b/packages/core/src/Section/XDSSection.tsx
index 173119f9b1..70bd585e97 100644
--- a/packages/core/src/Section/XDSSection.tsx
+++ b/packages/core/src/Section/XDSSection.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Section/Section.doc.mjs (props table, features)
* - /packages/core/src/Section/index.ts (exports if types change)
* - /apps/storybook/stories/Section.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Section/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx b/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
index 3810d4bfae..fa2db6e647 100644
--- a/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
+++ b/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
* - /packages/core/src/SegmentedControl/index.ts
* - /packages/core/src/SegmentedControl/XDSSegmentedControl.test.tsx
+ * - /packages/cli/templates/blocks/components/SegmentedControl/ (showcase blocks)
*/
import React, {useMemo, useRef, useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/SegmentedControl/XDSSegmentedControlItem.tsx b/packages/core/src/SegmentedControl/XDSSegmentedControlItem.tsx
index 7c786592b4..79df550d40 100644
--- a/packages/core/src/SegmentedControl/XDSSegmentedControlItem.tsx
+++ b/packages/core/src/SegmentedControl/XDSSegmentedControlItem.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
* - /packages/core/src/SegmentedControl/index.ts
* - /packages/core/src/SegmentedControl/XDSSegmentedControl.test.tsx
+ * - /packages/cli/templates/blocks/components/SegmentedControl/ (showcase blocks)
*/
import {useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/Selector/XDSSelector.tsx b/packages/core/src/Selector/XDSSelector.tsx
index d5480946fc..ef1aa242af 100644
--- a/packages/core/src/Selector/XDSSelector.tsx
+++ b/packages/core/src/Selector/XDSSelector.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Selector/Selector.doc.mjs
* - /packages/core/src/Selector/index.ts
+ * - /packages/cli/templates/blocks/components/Selector/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/SideNav/XDSSideNav.tsx b/packages/core/src/SideNav/XDSSideNav.tsx
index 25b1dccc8e..8ed1565843 100644
--- a/packages/core/src/SideNav/XDSSideNav.tsx
+++ b/packages/core/src/SideNav/XDSSideNav.tsx
@@ -16,6 +16,7 @@
* - /packages/core/src/SideNav/XDSSideNav.test.tsx
* - /packages/core/src/SideNav/index.ts
* - /apps/storybook/stories/SideNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)
*/
import {useCallback, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/SideNav/XDSSideNavCollapseButton.tsx b/packages/core/src/SideNav/XDSSideNavCollapseButton.tsx
index 7c2cf00c1d..cec490959a 100644
--- a/packages/core/src/SideNav/XDSSideNavCollapseButton.tsx
+++ b/packages/core/src/SideNav/XDSSideNavCollapseButton.tsx
@@ -12,6 +12,7 @@
* SYNC: When modified, update:
* - /packages/core/src/SideNav/SideNav.doc.mjs
* - /packages/core/src/SideNav/index.ts
+ * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)
*/
import {useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/SideNav/XDSSideNavHeading.tsx b/packages/core/src/SideNav/XDSSideNavHeading.tsx
index a41f797990..c6fe4dafe5 100644
--- a/packages/core/src/SideNav/XDSSideNavHeading.tsx
+++ b/packages/core/src/SideNav/XDSSideNavHeading.tsx
@@ -14,6 +14,7 @@
* - /packages/core/src/SideNav/XDSSideNav.test.tsx
* - /packages/core/src/SideNav/index.ts
* - /apps/storybook/stories/SideNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)
*/
import {useCallback, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/SideNav/XDSSideNavItem.tsx b/packages/core/src/SideNav/XDSSideNavItem.tsx
index 60e606c260..150b8bc576 100644
--- a/packages/core/src/SideNav/XDSSideNavItem.tsx
+++ b/packages/core/src/SideNav/XDSSideNavItem.tsx
@@ -13,6 +13,7 @@
* - /packages/core/src/SideNav/XDSSideNav.test.tsx
* - /packages/core/src/SideNav/index.ts
* - /apps/storybook/stories/SideNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)
*/
import {useCallback, useId, useRef, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/SideNav/XDSSideNavSection.tsx b/packages/core/src/SideNav/XDSSideNavSection.tsx
index 79bc035d80..92a711e064 100644
--- a/packages/core/src/SideNav/XDSSideNavSection.tsx
+++ b/packages/core/src/SideNav/XDSSideNavSection.tsx
@@ -13,6 +13,7 @@
* - /packages/core/src/SideNav/XDSSideNav.test.tsx
* - /packages/core/src/SideNav/index.ts
* - /apps/storybook/stories/SideNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)
*/
import {useId, type ReactNode} from 'react';
diff --git a/packages/core/src/Skeleton/XDSSkeleton.tsx b/packages/core/src/Skeleton/XDSSkeleton.tsx
index 76a35fa463..e8a50bd4f9 100644
--- a/packages/core/src/Skeleton/XDSSkeleton.tsx
+++ b/packages/core/src/Skeleton/XDSSkeleton.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/Skeleton/Skeleton.doc.mjs
* - /packages/core/src/Skeleton/index.ts
* - /apps/storybook/stories/Skeleton.stories.tsx
+ * - /packages/cli/templates/blocks/components/Skeleton/ (showcase blocks)
*/
import type {XDSBaseProps} from '../XDSBaseProps';
diff --git a/packages/core/src/Slider/XDSSlider.tsx b/packages/core/src/Slider/XDSSlider.tsx
index 971b567954..24674a72d0 100644
--- a/packages/core/src/Slider/XDSSlider.tsx
+++ b/packages/core/src/Slider/XDSSlider.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Slider/XDSSlider.test.tsx
* - /packages/core/src/Slider/index.ts
* - /apps/storybook/stories/Slider.stories.tsx
+ * - /packages/cli/templates/blocks/components/Slider/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Spinner/XDSSpinner.tsx b/packages/core/src/Spinner/XDSSpinner.tsx
index 3dc29e2383..534bfee049 100644
--- a/packages/core/src/Spinner/XDSSpinner.tsx
+++ b/packages/core/src/Spinner/XDSSpinner.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Spinner/XDSSpinner.test.tsx
* - /packages/core/src/Spinner/index.ts
* - /apps/storybook/stories/Spinner.stories.tsx
+ * - /packages/cli/templates/blocks/components/Spinner/ (showcase blocks)
*/
import {useEffect, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/Stack/XDSHStack.tsx b/packages/core/src/Stack/XDSHStack.tsx
index 2d60bccbc9..1baf5ef444 100644
--- a/packages/core/src/Stack/XDSHStack.tsx
+++ b/packages/core/src/Stack/XDSHStack.tsx
@@ -7,6 +7,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Stack/Stack.doc.mjs
* - /packages/core/src/Stack/XDSHStack.test.tsx
+ * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)
*/
import {XDSStack, type XDSStackProps} from './XDSStack';
diff --git a/packages/core/src/Stack/XDSStack.tsx b/packages/core/src/Stack/XDSStack.tsx
index 58a8bb5cc0..c105cf2bd4 100644
--- a/packages/core/src/Stack/XDSStack.tsx
+++ b/packages/core/src/Stack/XDSStack.tsx
@@ -6,8 +6,8 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Stack/Stack.doc.mjs
- * - /packages/core/src/Layout/Stack/XDSStack.test.tsx
* - /apps/storybook/stories/Stack.stories.tsx
+ * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Stack/XDSStackItem.tsx b/packages/core/src/Stack/XDSStackItem.tsx
index a749994ea3..883defd325 100644
--- a/packages/core/src/Stack/XDSStackItem.tsx
+++ b/packages/core/src/Stack/XDSStackItem.tsx
@@ -6,8 +6,7 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Stack/Stack.doc.mjs
- * - /packages/core/src/Layout/Stack/XDSStackItem.test.tsx
- * - /apps/storybook/stories/StackItem.stories.tsx
+ * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Stack/XDSVStack.tsx b/packages/core/src/Stack/XDSVStack.tsx
index 06527fc111..10beebc34e 100644
--- a/packages/core/src/Stack/XDSVStack.tsx
+++ b/packages/core/src/Stack/XDSVStack.tsx
@@ -7,6 +7,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Stack/Stack.doc.mjs
* - /packages/core/src/Stack/XDSVStack.test.tsx
+ * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)
*/
import {XDSStack, type XDSStackProps} from './XDSStack';
diff --git a/packages/core/src/StatusDot/XDSStatusDot.tsx b/packages/core/src/StatusDot/XDSStatusDot.tsx
index c7cf5cfa7f..8082c07b34 100644
--- a/packages/core/src/StatusDot/XDSStatusDot.tsx
+++ b/packages/core/src/StatusDot/XDSStatusDot.tsx
@@ -9,6 +9,7 @@
* - /packages/core/src/StatusDot/XDSStatusDot.test.tsx (tests for new/changed behavior)
* - /packages/core/src/StatusDot/index.ts (exports if types change)
* - /apps/storybook/stories/StatusDot.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/StatusDot/ (showcase blocks)
*/
import * as stylex from '@stylexjs/stylex';
diff --git a/packages/core/src/Switch/XDSSwitch.tsx b/packages/core/src/Switch/XDSSwitch.tsx
index 6db2b44c4f..c0e4e16762 100644
--- a/packages/core/src/Switch/XDSSwitch.tsx
+++ b/packages/core/src/Switch/XDSSwitch.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Switch/XDSSwitch.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Switch/index.ts (exports if types change)
* - /apps/storybook/stories/Switch.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Switch/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/TabList/XDSTab.tsx b/packages/core/src/TabList/XDSTab.tsx
index a52351a815..e8933d3ec3 100644
--- a/packages/core/src/TabList/XDSTab.tsx
+++ b/packages/core/src/TabList/XDSTab.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/TabList/TabList.doc.mjs
* - /packages/core/src/TabList/index.ts
* - /packages/core/src/TabList/XDSTabList.test.tsx
+ * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)
*/
import {useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/TabList/XDSTabList.tsx b/packages/core/src/TabList/XDSTabList.tsx
index 94924ecdbe..715b151597 100644
--- a/packages/core/src/TabList/XDSTabList.tsx
+++ b/packages/core/src/TabList/XDSTabList.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/TabList/TabList.doc.mjs
* - /packages/core/src/TabList/index.ts
* - /packages/core/src/TabList/XDSTabList.test.tsx
+ * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)
*/
import {useMemo, type ReactNode} from 'react';
diff --git a/packages/core/src/TabList/XDSTabMenu.tsx b/packages/core/src/TabList/XDSTabMenu.tsx
index cb119d1d4f..30eb95ac73 100644
--- a/packages/core/src/TabList/XDSTabMenu.tsx
+++ b/packages/core/src/TabList/XDSTabMenu.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/TabList/TabList.doc.mjs
* - /packages/core/src/TabList/index.ts
* - /packages/core/src/TabList/XDSTabList.test.tsx
+ * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)
*/
import React, {useCallback, useId, type ReactNode} from 'react';
diff --git a/packages/core/src/Table/XDSBaseTable.tsx b/packages/core/src/Table/XDSBaseTable.tsx
index bf2a223984..d833b0efc4 100644
--- a/packages/core/src/Table/XDSBaseTable.tsx
+++ b/packages/core/src/Table/XDSBaseTable.tsx
@@ -9,6 +9,7 @@
* - /packages/core/src/Table/Table.doc.mjs (component description, props)
* - /packages/core/src/Table/XDSTable.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Table/index.ts (exports if types change)
+ * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)
*/
import {memo, useRef, type ReactElement, type ReactNode, type Ref} from 'react';
diff --git a/packages/core/src/Table/XDSTable.tsx b/packages/core/src/Table/XDSTable.tsx
index e610754da7..fe57e2428a 100644
--- a/packages/core/src/Table/XDSTable.tsx
+++ b/packages/core/src/Table/XDSTable.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Table/XDSTable.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Table/index.ts (exports if types change)
* - /apps/storybook/stories/Table.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)
*/
import {useMemo, type ReactElement, type Ref} from 'react';
diff --git a/packages/core/src/Table/XDSTableCell.tsx b/packages/core/src/Table/XDSTableCell.tsx
index 88ba92d2e4..6e18bb0760 100644
--- a/packages/core/src/Table/XDSTableCell.tsx
+++ b/packages/core/src/Table/XDSTableCell.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Table/Table.doc.mjs
* - /packages/core/src/Table/index.ts
+ * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Table/XDSTableHeaderCell.tsx b/packages/core/src/Table/XDSTableHeaderCell.tsx
index ab23391e90..ad9ad350c9 100644
--- a/packages/core/src/Table/XDSTableHeaderCell.tsx
+++ b/packages/core/src/Table/XDSTableHeaderCell.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Table/Table.doc.mjs
* - /packages/core/src/Table/index.ts
+ * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Table/XDSTableRow.tsx b/packages/core/src/Table/XDSTableRow.tsx
index 066cd32eae..293a6be489 100644
--- a/packages/core/src/Table/XDSTableRow.tsx
+++ b/packages/core/src/Table/XDSTableRow.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update:
* - /packages/core/src/Table/Table.doc.mjs
* - /packages/core/src/Table/index.ts
+ * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)
*/
import {useContext, type ReactNode} from 'react';
diff --git a/packages/core/src/Text/XDSHeading.tsx b/packages/core/src/Text/XDSHeading.tsx
index 859106a12c..5f14f03c6f 100644
--- a/packages/core/src/Text/XDSHeading.tsx
+++ b/packages/core/src/Text/XDSHeading.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Text/XDSHeading.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Text/index.ts (exports if types change)
* - /apps/storybook/stories/Text.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Text/ (showcase blocks)
*/
diff --git a/packages/core/src/Text/XDSText.tsx b/packages/core/src/Text/XDSText.tsx
index 7b407e4f45..68fdba5f6d 100644
--- a/packages/core/src/Text/XDSText.tsx
+++ b/packages/core/src/Text/XDSText.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Text/XDSText.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Text/index.ts (exports if types change)
* - /apps/storybook/stories/Text.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Text/ (showcase blocks)
*/
import {lazy, Suspense, useCallback, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/TextArea/XDSTextArea.tsx b/packages/core/src/TextArea/XDSTextArea.tsx
index 57e9d03503..be1ec8e6a1 100644
--- a/packages/core/src/TextArea/XDSTextArea.tsx
+++ b/packages/core/src/TextArea/XDSTextArea.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/TextArea/XDSTextArea.test.tsx (tests for new/changed behavior)
* - /packages/core/src/TextArea/index.ts (exports if types change)
* - /apps/storybook/stories/TextArea.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/TextArea/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/TextInput/XDSTextInput.tsx b/packages/core/src/TextInput/XDSTextInput.tsx
index e9f4456966..374220a331 100644
--- a/packages/core/src/TextInput/XDSTextInput.tsx
+++ b/packages/core/src/TextInput/XDSTextInput.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/TextInput/XDSTextInput.test.tsx (tests for new/changed behavior)
* - /packages/core/src/TextInput/index.ts (exports if types change)
* - /apps/storybook/stories/TextInput.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/TextInput/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Thumbnail/XDSThumbnail.tsx b/packages/core/src/Thumbnail/XDSThumbnail.tsx
index b813bd91e4..0c30e32676 100644
--- a/packages/core/src/Thumbnail/XDSThumbnail.tsx
+++ b/packages/core/src/Thumbnail/XDSThumbnail.tsx
@@ -16,6 +16,7 @@
* - /packages/core/src/Thumbnail/XDSThumbnail.test.tsx
* - /packages/core/src/Thumbnail/index.ts
* - /apps/storybook/stories/Thumbnail.stories.tsx
+ * - /packages/cli/templates/blocks/components/Thumbnail/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/TimeInput/XDSTimeInput.tsx b/packages/core/src/TimeInput/XDSTimeInput.tsx
index e9bacb241c..ba9bccb599 100644
--- a/packages/core/src/TimeInput/XDSTimeInput.tsx
+++ b/packages/core/src/TimeInput/XDSTimeInput.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/TimeInput/XDSTimeInput.test.tsx (tests for new/changed behavior)
* - /packages/core/src/TimeInput/index.ts (exports if types change)
* - /apps/storybook/stories/TimeInput.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/TimeInput/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Timestamp/XDSTimestamp.tsx b/packages/core/src/Timestamp/XDSTimestamp.tsx
index 0beabb006f..950bccc493 100644
--- a/packages/core/src/Timestamp/XDSTimestamp.tsx
+++ b/packages/core/src/Timestamp/XDSTimestamp.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Timestamp/XDSTimestamp.test.tsx
* - /packages/core/src/Timestamp/index.ts
* - /apps/storybook/stories/Timestamp.stories.tsx
+ * - /packages/cli/templates/blocks/components/Timestamp/ (showcase blocks)
*/
import {useEffect, useRef, useState, lazy, Suspense} from 'react';
diff --git a/packages/core/src/ToggleButton/XDSToggleButton.tsx b/packages/core/src/ToggleButton/XDSToggleButton.tsx
index 2a5ef5792e..afb6c8f059 100644
--- a/packages/core/src/ToggleButton/XDSToggleButton.tsx
+++ b/packages/core/src/ToggleButton/XDSToggleButton.tsx
@@ -15,6 +15,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/ToggleButton/index.ts (exports if types change)
* - /apps/storybook/stories/ToggleButton.stories.tsx
+ * - /packages/cli/templates/blocks/components/ToggleButton/ (showcase blocks)
*/
import {useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/ToggleButton/XDSToggleButtonGroup.tsx b/packages/core/src/ToggleButton/XDSToggleButtonGroup.tsx
index af6455ca74..5094ed622f 100644
--- a/packages/core/src/ToggleButton/XDSToggleButtonGroup.tsx
+++ b/packages/core/src/ToggleButton/XDSToggleButtonGroup.tsx
@@ -13,6 +13,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/ToggleButton/index.ts
* - /apps/storybook/stories/ToggleButton.stories.tsx
+ * - /packages/cli/templates/blocks/components/ToggleButton/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/Token/XDSToken.tsx b/packages/core/src/Token/XDSToken.tsx
index 9b895bee42..8b432e11b2 100644
--- a/packages/core/src/Token/XDSToken.tsx
+++ b/packages/core/src/Token/XDSToken.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Token/XDSToken.test.tsx (tests for new/changed behavior)
* - /packages/core/src/Token/index.ts (exports if types change)
* - /apps/storybook/stories/Token.stories.tsx (storybook stories)
+ * - /packages/cli/templates/blocks/components/Token/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Tokenizer/XDSTokenizer.tsx b/packages/core/src/Tokenizer/XDSTokenizer.tsx
index 90331b4bea..c360653de2 100644
--- a/packages/core/src/Tokenizer/XDSTokenizer.tsx
+++ b/packages/core/src/Tokenizer/XDSTokenizer.tsx
@@ -7,9 +7,9 @@
* @position Composed component; uses XDSBaseTypeahead for search + XDSToken for chips
*
* SYNC: When modified, update:
- * - /packages/core/src/Tokenizer/README.md
* - /packages/core/src/Tokenizer/index.ts
* - /apps/storybook/stories/Tokenizer.stories.tsx
+ * - /packages/cli/templates/blocks/components/Tokenizer/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/Toolbar/XDSToolbar.tsx b/packages/core/src/Toolbar/XDSToolbar.tsx
index 4de908915e..c0245fa576 100644
--- a/packages/core/src/Toolbar/XDSToolbar.tsx
+++ b/packages/core/src/Toolbar/XDSToolbar.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/Toolbar/XDSToolbar.test.tsx
* - /packages/core/src/Toolbar/index.ts
* - /apps/storybook/stories/Toolbar.stories.tsx
+ * - /packages/cli/templates/blocks/components/Toolbar/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/Tooltip/XDSTooltip.tsx b/packages/core/src/Tooltip/XDSTooltip.tsx
index ba80e3e00b..69df8ef9bd 100644
--- a/packages/core/src/Tooltip/XDSTooltip.tsx
+++ b/packages/core/src/Tooltip/XDSTooltip.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/Tooltip/index.ts
* - /apps/storybook/stories/Tooltip.stories.tsx
+ * - /packages/cli/templates/blocks/components/Tooltip/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/TopNav/XDSTopNav.tsx b/packages/core/src/TopNav/XDSTopNav.tsx
index 20c9bc4583..8f3d2413bb 100644
--- a/packages/core/src/TopNav/XDSTopNav.tsx
+++ b/packages/core/src/TopNav/XDSTopNav.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/TopNav/XDSTopNav.test.tsx
* - /packages/core/src/TopNav/index.ts
* - /apps/storybook/stories/TopNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavHeading.tsx b/packages/core/src/TopNav/XDSTopNavHeading.tsx
index ab96291880..03984250a8 100644
--- a/packages/core/src/TopNav/XDSTopNavHeading.tsx
+++ b/packages/core/src/TopNav/XDSTopNavHeading.tsx
@@ -15,6 +15,7 @@
* - /packages/core/src/TopNav/XDSTopNav.test.tsx
* - /packages/core/src/TopNav/index.ts
* - /apps/storybook/stories/TopNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {useCallback, useRef, type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavItem.tsx b/packages/core/src/TopNav/XDSTopNavItem.tsx
index 7d9b52e4cc..b453a18ece 100644
--- a/packages/core/src/TopNav/XDSTopNavItem.tsx
+++ b/packages/core/src/TopNav/XDSTopNavItem.tsx
@@ -11,6 +11,7 @@
* - /packages/core/src/TopNav/XDSTopNav.test.tsx
* - /packages/core/src/TopNav/index.ts
* - /apps/storybook/stories/TopNav.stories.tsx
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavMegaMenu.tsx b/packages/core/src/TopNav/XDSTopNavMegaMenu.tsx
index 9c96d6cc4e..3d55137869 100644
--- a/packages/core/src/TopNav/XDSTopNavMegaMenu.tsx
+++ b/packages/core/src/TopNav/XDSTopNavMegaMenu.tsx
@@ -18,6 +18,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/TopNav/TopNav.doc.mjs
* - /packages/core/src/TopNav/index.ts
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {useCallback, useEffect, useRef, useState, type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavMegaMenuFeaturedCard.tsx b/packages/core/src/TopNav/XDSTopNavMegaMenuFeaturedCard.tsx
index ae3330d7c3..5dd22b888e 100644
--- a/packages/core/src/TopNav/XDSTopNavMegaMenuFeaturedCard.tsx
+++ b/packages/core/src/TopNav/XDSTopNavMegaMenuFeaturedCard.tsx
@@ -13,6 +13,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/TopNav/TopNav.doc.mjs
* - /packages/core/src/TopNav/index.ts
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavMegaMenuItem.tsx b/packages/core/src/TopNav/XDSTopNavMegaMenuItem.tsx
index c76b897f69..7290c0f130 100644
--- a/packages/core/src/TopNav/XDSTopNavMegaMenuItem.tsx
+++ b/packages/core/src/TopNav/XDSTopNavMegaMenuItem.tsx
@@ -10,6 +10,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/TopNav/TopNav.doc.mjs
* - /packages/core/src/TopNav/index.ts
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {type ReactNode} from 'react';
diff --git a/packages/core/src/TopNav/XDSTopNavMenu.tsx b/packages/core/src/TopNav/XDSTopNavMenu.tsx
index 4a019b4306..a72ae5eb2b 100644
--- a/packages/core/src/TopNav/XDSTopNavMenu.tsx
+++ b/packages/core/src/TopNav/XDSTopNavMenu.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/TopNav/TopNav.doc.mjs
* - /packages/core/src/TopNav/XDSTopNavMenu.test.tsx
* - /packages/core/src/TopNav/index.ts
+ * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)
*/
import {
diff --git a/packages/core/src/TreeList/XDSTreeList.tsx b/packages/core/src/TreeList/XDSTreeList.tsx
index c8f9604fb7..cb400779e7 100644
--- a/packages/core/src/TreeList/XDSTreeList.tsx
+++ b/packages/core/src/TreeList/XDSTreeList.tsx
@@ -10,6 +10,7 @@
* - /packages/core/src/TreeList/TreeList.doc.mjs
* - /packages/core/src/TreeList/index.ts
* - /apps/storybook/stories/TreeList.stories.tsx
+ * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)
*/
import {useId, useState, useMemo, useCallback, type ReactNode} from 'react';
diff --git a/packages/core/src/TreeList/XDSTreeListBranches.tsx b/packages/core/src/TreeList/XDSTreeListBranches.tsx
index 3b2c7eb844..80261a7ff0 100644
--- a/packages/core/src/TreeList/XDSTreeListBranches.tsx
+++ b/packages/core/src/TreeList/XDSTreeListBranches.tsx
@@ -8,6 +8,7 @@
*
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/TreeList/XDSTreeListItem.tsx
+ * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)
*/
import * as stylex from '@stylexjs/stylex';
diff --git a/packages/core/src/TreeList/XDSTreeListItem.tsx b/packages/core/src/TreeList/XDSTreeListItem.tsx
index e2bd37b0d1..201bc937cd 100644
--- a/packages/core/src/TreeList/XDSTreeListItem.tsx
+++ b/packages/core/src/TreeList/XDSTreeListItem.tsx
@@ -9,6 +9,7 @@
* SYNC: When modified, update these files to stay in sync:
* - /packages/core/src/TreeList/TreeList.doc.mjs
* - /packages/core/src/TreeList/XDSTreeList.tsx
+ * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)
*/
import {useId, useMemo, type ReactNode} from 'react';
diff --git a/packages/core/src/Typeahead/XDSBaseTypeahead.tsx b/packages/core/src/Typeahead/XDSBaseTypeahead.tsx
index 5860b9a901..22560c352b 100644
--- a/packages/core/src/Typeahead/XDSBaseTypeahead.tsx
+++ b/packages/core/src/Typeahead/XDSBaseTypeahead.tsx
@@ -11,8 +11,8 @@
* Consumers provide their own wrapper and pass anchorRef for dropdown positioning.
*
* SYNC: When modified, update:
- * - /packages/core/src/Typeahead/README.md
* - /packages/core/src/Typeahead/index.ts
+ * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/Typeahead/XDSTypeahead.tsx b/packages/core/src/Typeahead/XDSTypeahead.tsx
index f33f60d44b..817ce778fa 100644
--- a/packages/core/src/Typeahead/XDSTypeahead.tsx
+++ b/packages/core/src/Typeahead/XDSTypeahead.tsx
@@ -11,9 +11,9 @@
* search, keyboard navigation, and dropdown to XDSBaseTypeahead.
*
* SYNC: When modified, update:
- * - /packages/core/src/Typeahead/README.md
* - /packages/core/src/Typeahead/index.ts
* - /apps/storybook/stories/Typeahead.stories.tsx
+ * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)
*/
import React, {
diff --git a/packages/core/src/Typeahead/XDSTypeaheadItem.tsx b/packages/core/src/Typeahead/XDSTypeaheadItem.tsx
index eb4992bbb0..f71ac7dece 100644
--- a/packages/core/src/Typeahead/XDSTypeaheadItem.tsx
+++ b/packages/core/src/Typeahead/XDSTypeaheadItem.tsx
@@ -5,8 +5,8 @@
* @position Presentational component; used as default renderItem in XDSBaseTypeahead
*
* SYNC: When modified, update:
- * - /packages/core/src/Typeahead/README.md
* - /packages/core/src/Typeahead/index.ts
+ * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)
*/
import type {ReactNode} from 'react';
diff --git a/packages/core/src/Typeahead/createStaticSource.ts b/packages/core/src/Typeahead/createStaticSource.ts
index 52572d1cab..5db8704c03 100644
--- a/packages/core/src/Typeahead/createStaticSource.ts
+++ b/packages/core/src/Typeahead/createStaticSource.ts
@@ -5,7 +5,6 @@
* @position Utility; convenience factory for static search sources
*
* SYNC: When modified, update:
- * - /packages/core/src/Typeahead/README.md
* - /packages/core/src/Typeahead/index.ts
*/
diff --git a/packages/core/src/Typeahead/types.ts b/packages/core/src/Typeahead/types.ts
index 81dd74271d..09e18c181f 100644
--- a/packages/core/src/Typeahead/types.ts
+++ b/packages/core/src/Typeahead/types.ts
@@ -5,7 +5,6 @@
* @position Shared type definitions; consumed by XDSBaseTypeahead, XDSTypeahead, XDSTokenizer
*
* SYNC: When modified, update:
- * - /packages/core/src/Typeahead/README.md
* - /packages/core/src/Typeahead/index.ts
*/
diff --git a/packages/core/src/theme/README.md b/packages/core/src/theme/README.md
deleted file mode 100644
index caf1a791b5..0000000000
--- a/packages/core/src/theme/README.md
+++ /dev/null
@@ -1,158 +0,0 @@
-# theme
-
-XDS theme provider and design tokens.
-
-<!-- SYNC: When files in this directory change, update this document. -->
-
-## Features
-
-- **XDSTheme Provider**: Wraps app to provide CSS variables and icon registry
-- **Design Tokens**: Colors, spacing, radius, typography via StyleX
-- **Icon Registry**: Themes provide icons to components via context
-- **Multiple Themes**: defaultTheme, neutralTheme (from `@xds/theme`)
-- **useXDSTheme Hook**: Access current theme in components
-
-## Usage
-
-```tsx
-import {XDSTheme} from '@xds/core';
-import {defaultTheme} from '@xds/theme/default';
-
-function App() {
- return (
- <XDSTheme theme={defaultTheme}>
- <YourApp />
- </XDSTheme>
- );
-}
-```
-
-## Props
-
-| Prop | Type | Default | Description |
-| ---------- | ----------- | ---------- | ------------------------------------------- |
-| `theme` | `Theme` | — | Theme object (defaultTheme or neutralTheme) |
-| `mode` | `ThemeMode` | `'system'` | Color mode: 'system', 'light', or 'dark' |
-| `children` | `ReactNode` | — | App content |
-
-## Available Themes
-
-From `@xds/theme`:
-
-- `defaultTheme` — XDS branded colors + heroicons
-- `neutralTheme` — Grayscale palette + heroicons
-
-## Theme Object
-
-A theme provides:
-
-```ts
-interface Theme {
- name: string;
- styles: ThemeStyles; // StyleX CSS variable overrides (all fields optional)
- components?: ComponentStyles; // Component-level style overrides
- icons?: Partial<XDSIconRegistry>; // Icon overrides for XDSIcon semantic names
- raw?: ThemeRaw; // Raw token values for programmatic access
-}
-```
-
-The optional `raw` field provides actual token values (not CSS variable references) for programmatic access — useful for charting libraries, theme editors, or parsing `light-dark()` values.
-
-All fields in `ThemeStyles` are optional — omitted token groups use the `defineVars` defaults from `tokens.stylex.ts`. This enables partial theme overrides (e.g., only override colors and radius).
-
-### Icons
-
-Themes can provide icons for XDS's 12 semantic icon names. These are used internally by components (CloseButton, Calendar, inputs, etc.) and can also be used directly via `<XDSIcon icon="close" />`.
-
-```ts
-import type { XDSIconRegistry } from '@xds/core/Icon';
-
-// Full registry (all 12 icons)
-const icons: XDSIconRegistry = {
- close: <XMarkIcon />,
- chevronDown: <ChevronDownIcon />,
- // ... all 12 names
-};
-
-// Partial override (only some icons)
-const icons: Partial<XDSIconRegistry> = {
- close: <MyCustomCloseIcon />,
- // Others fall back to built-in SVGs
-};
-```
-
-When no theme is active, components use built-in lightweight SVG fallbacks.
-
-See the [Icon docs](../Icon/Icon.doc.mjs) for the full list of semantic names.
-
-### Adding icons to a custom theme
-
-```ts
-import { MyCloseIcon, MyChevronIcon } from './my-icons';
-
-const myTheme: Theme = {
- name: 'my-brand',
- icons: {
- close: <MyCloseIcon width="1em" height="1em" aria-hidden />,
- chevronDown: <MyChevronIcon width="1em" height="1em" aria-hidden />,
- // ... provide as many or as few as needed
- },
- styles: { /* ... only overridden token groups */ },
-};
-```
-
-Icons should use `width="1em"` and `height="1em"` so they scale with the `XDSIcon` size prop.
-
-## useXDSTheme Hook
-
-Access current theme in components:
-
-```tsx
-import {useXDSTheme} from '@xds/core';
-
-const themeContext = useXDSTheme();
-// themeContext?.theme — current Theme object
-// themeContext?.mode — current ThemeMode
-```
-
-## CSS Variables
-
-Theme provides CSS variables for use in StyleX:
-
-```tsx
-const styles = stylex.create({
- card: {
- backgroundColor: 'var(--color-background-surface)',
- padding: 'var(--spacing-4)',
- borderRadius: 'var(--radius-container)',
- },
-});
-```
-
-See `.xds-docs/tokens.md` for the full token reference.
-
-## Files
-
-| File | Role | Purpose |
-| ------------------ | -------- | ----------------------------------- |
-| `index.ts` | Entry | Exports provider, hook, and types |
-| `XDSTheme.tsx` | Provider | Theme provider with icon registry |
-| `ThemeContext.ts` | Context | React context for theme values |
-| `types.ts` | Types | Theme, ThemeStyles, ComponentStyles |
-| `tokens.stylex.ts` | Tokens | StyleX CSS variable definitions |
-
-## For Contributors
-
-### How the icon registry works
-
-1. `XDSTheme` calls `registerIcons(theme.icons)` to populate the global icon registry
-2. `XDSIcon` with a semantic name string calls `getIcon(name)` which checks the global registry
-3. If the theme provides that icon, it's used. Otherwise, the built-in fallback SVG renders.
-
-### Adding a new semantic icon name
-
-1. Add the name to `XDSIconName` in `Icon/IconRegistry.tsx`
-2. Add a fallback SVG in `Icon/defaultIcons.tsx`
-3. Add the icon to both theme registries (`@xds/theme` default + neutral)
-4. Use it in your component: `<XDSIcon icon="newName" />`
-5. Update the Icon README's semantic names table
diff --git a/packages/core/src/theme/useXDSTheme.ts b/packages/core/src/theme/useXDSTheme.ts
index 882f9f490b..51c9348c99 100644
--- a/packages/core/src/theme/useXDSTheme.ts
+++ b/packages/core/src/theme/useXDSTheme.ts
@@ -11,7 +11,6 @@
*
* SYNC: When modified, update:
* - /packages/core/src/theme/index.ts
- * - /packages/core/src/theme/README.md (if present)
*/
import {createContext, useContext, useMemo} from 'react';
diff --git a/scripts/check-sync.js b/scripts/check-sync.js
new file mode 100644
index 0000000000..4725a8f16c
--- /dev/null
+++ b/scripts/check-sync.js
@@ -0,0 +1,149 @@
+#!/usr/bin/env node
+
+/**
+ * SYNC Comment Night Watch
+ *
+ * Checks that SYNC comments in component files are accurate and complete.
+ *
+ * Invariants:
+ * 1. No README.md coexisting with a doc.mjs in the same component dir
+ * 2. No SYNC comments referencing files that don't exist
+ * 3. Every component with a showcase dir has a SYNC reference to it
+ */
+
+const fs = require('fs');
+const path = require('path');
+
+const ROOT = path.resolve(__dirname, '..');
+const CORE_SRC = path.join(ROOT, 'packages/core/src');
+const SHOWCASE_DIR = path.join(
+ ROOT,
+ 'packages/cli/templates/blocks/components',
+);
+
+const violations = [];
+
+function addViolation(type, file, message) {
+ violations.push({type, file, message});
+}
+
+// Get all component directories (dirs with at least one XDS*.tsx file)
+const componentDirs = fs
+ .readdirSync(CORE_SRC, {withFileTypes: true})
+ .filter((d) => d.isDirectory())
+ .map((d) => d.name)
+ .filter((name) => {
+ const dirPath = path.join(CORE_SRC, name);
+ return fs
+ .readdirSync(dirPath)
+ .some(
+ (f) =>
+ f.startsWith('XDS') && f.endsWith('.tsx') && !f.includes('.test.'),
+ );
+ });
+
+for (const comp of componentDirs) {
+ const dirPath = path.join(CORE_SRC, comp);
+ const files = fs.readdirSync(dirPath);
+
+ // --- Check 1: Stale README.md ---
+ const hasDocMjs = files.some((f) => f.endsWith('.doc.mjs'));
+ const hasReadme = files.includes('README.md');
+ if (hasDocMjs && hasReadme) {
+ addViolation(
+ 'stale-readme',
+ `${comp}/README.md`,
+ `README.md coexists with doc.mjs — remove the README`,
+ );
+ }
+
+ // --- Check 2 & 3: SYNC references ---
+ const xdsFiles = files.filter(
+ (f) => f.startsWith('XDS') && f.endsWith('.tsx') && !f.includes('.test.'),
+ );
+
+ for (const xdsFile of xdsFiles) {
+ const filePath = path.join(dirPath, xdsFile);
+ const content = fs.readFileSync(filePath, 'utf-8');
+
+ if (!content.includes('SYNC:')) continue;
+
+ // Extract all SYNC bullet paths
+ const syncRefs = [];
+ const lines = content.split('\n');
+ let inSync = false;
+ for (const line of lines) {
+ if (line.includes('SYNC:')) {
+ inSync = true;
+ continue;
+ }
+ if (inSync) {
+ const match = line.match(/\*\s*-\s*(\/[^\s()]+)/);
+ if (match) {
+ syncRefs.push(match[1]);
+ } else if (
+ line.trim() === '*' ||
+ line.trim() === '*/' ||
+ line.includes('Last synced') ||
+ line.includes('@')
+ ) {
+ break;
+ }
+ }
+ }
+
+ // Check 2: All referenced paths exist
+ for (const ref of syncRefs) {
+ const absPath = path.resolve(ROOT, ref.slice(1)); // strip leading /
+ if (!fs.existsSync(absPath)) {
+ addViolation(
+ 'dead-ref',
+ `${comp}/${xdsFile}`,
+ `SYNC references non-existent path: ${ref}`,
+ );
+ }
+ }
+
+ // Check 3: Showcase dir referenced if it exists
+ const showcasePath = path.join(SHOWCASE_DIR, comp);
+ if (fs.existsSync(showcasePath)) {
+ const hasShowcaseRef = syncRefs.some((r) =>
+ r.includes(`blocks/components/${comp}/`),
+ );
+ if (!hasShowcaseRef) {
+ addViolation(
+ 'missing-showcase',
+ `${comp}/${xdsFile}`,
+ `Has SYNC block but no showcase reference (dir exists at packages/cli/templates/blocks/components/${comp}/)`,
+ );
+ }
+ }
+ }
+}
+
+// --- Report ---
+if (violations.length === 0) {
+ console.log('✅ All SYNC comments are clean.');
+ process.exit(0);
+} else {
+ console.log(`❌ Found ${violations.length} SYNC violation(s):\n`);
+
+ const byType = {};
+ for (const v of violations) {
+ (byType[v.type] ??= []).push(v);
+ }
+
+ for (const [type, items] of Object.entries(byType)) {
+ const label = {
+ 'stale-readme': '📄 Stale README.md (coexists with doc.mjs)',
+ 'dead-ref': '💀 Dead SYNC references (file does not exist)',
+ 'missing-showcase': '🎨 Missing showcase SYNC reference',
+ }[type];
+ console.log(`${label}:`);
+ for (const item of items) {
+ console.log(` ${item.file}: ${item.message}`);
+ }
+ console.log();
+ }
+ process.exit(1);
+}