An open source design system that's fully customizable and agent ready
TypeScript
docs: remove em dashes from component and block doc prose (#4394)
Joeye00d4acc4584
diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs b/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjsindex 302a4f41de..0fdec247ed 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs+++ b/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs@@ -7,7 +7,7 @@ export const doc = {name: 'ChatComposer — Flat',displayName: 'ChatComposer — Flat',description:- 'The composer is raised by default (`elevation="low"`). Set `elevation="none"` to flatten it — it then draws a border with the same rest / hover / focus treatment as a text input.',+ 'The composer is raised by default (`elevation="low"`). Set `elevation="none"` to flatten it; it then draws a border with the same rest / hover / focus treatment as a text input.',isReady: true,aspectRatio: 16 / 9,componentsUsed: ['ChatComposer', 'Layout', 'Text'],diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs b/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjsindex 2721e3dcf9..f3e18c2a5e 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs+++ b/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs@@ -7,7 +7,7 @@ export const doc = {name: 'DateInput — Formats',displayName: 'DateInput — Formats',description:- "The format prop reuses Timestamp's format vocabulary to control how the committed value is displayed — date, date_long (default), date_weekday, and system_date — or a function for a fully custom string. Formatting applies only to the committed value, never to text the user is actively typing.",+ "The format prop reuses Timestamp's format vocabulary to control how the committed value is displayed: date, date_long (default), date_weekday, and system_date, or a function for a fully custom string. Formatting applies only to the committed value, never to text the user is actively typing.",isReady: true,aspectRatio: 16 / 9,componentsUsed: ['DateInput', 'Layout', 'Text'],diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs b/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjsindex 60d9f1323b..7447cb53ba 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs+++ b/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs@@ -7,7 +7,7 @@ export const doc = {name: 'IconButton — Floating',displayName: 'IconButton — Floating',description:- 'A floating action button (FAB) — the most common floating-button shape is icon-only. Raised here with `elevation="high"`.',+ 'A floating action button (FAB). The most common floating-button shape is icon-only. Raised here with `elevation="high"`.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['IconButton', 'Icon', 'Layout', 'Text'],diff --git a/packages/core/src/Avatar/AvatarStatusDot.doc.mjs b/packages/core/src/Avatar/AvatarStatusDot.doc.mjsindex 9fbf055ea6..519097296f 100644--- a/packages/core/src/Avatar/AvatarStatusDot.doc.mjs+++ b/packages/core/src/Avatar/AvatarStatusDot.doc.mjs@@ -21,7 +21,7 @@ export const docs = {name: 'label',type: 'string',description:- 'Accessible label describing the status. Not announced inside an Avatar today (the Avatar root is role="img", which prunes child semantics) — pass it anyway; an Avatar-level name-composition fix is planned.',+ 'Accessible label describing the status. Not announced inside an Avatar today (the Avatar root is role="img", which prunes child semantics), but pass it anyway; an Avatar-level name-composition fix is planned.',},{name: 'icon',@@ -80,7 +80,7 @@ export const docsDense = {variant:'colour + shape variant: success filled, neutral ring, error minus',label:- 'accessible status label (not yet announced inside Avatar — role="img" prunes children)',- icon: 'icon centered in dot (hidden at tiny sizes); replaces the built-in shape glyph — differ it per status',+ 'accessible status label (not yet announced inside Avatar; role="img" prunes children)',+ icon: 'icon centered in dot (hidden at tiny sizes); replaces the built-in shape glyph, so differ it per status',},};diff --git a/packages/core/src/Chat/ChatComposer.doc.mjs b/packages/core/src/Chat/ChatComposer.doc.mjsindex 8bf4f05cc8..cceea5a92c 100644--- a/packages/core/src/Chat/ChatComposer.doc.mjs+++ b/packages/core/src/Chat/ChatComposer.doc.mjs@@ -60,7 +60,7 @@ export const docs = {name: 'elevation',type: "'none' | 'low'",description:- "Resting elevation of the composer body. `low` (the default) keeps today's raised look — low at rest, bumping to med on hover / focus. `none` flattens it and draws a border with the same rest / hover / focus treatment as a text input (emphasized border → accent on focus, matching inset rings).",+ "Resting elevation of the composer body. `low` (the default) keeps today's raised look: low at rest, bumping to med on hover / focus. `none` flattens it and draws a border with the same rest / hover / focus treatment as a text input (emphasized border → accent on focus, matching inset rings).",default: "'low'",},{@@ -109,7 +109,7 @@ export const docs = {{name: 'input',type: 'ReactNode',- description: 'Slot: custom input element. Replaces the default input. Use ChatComposerInput for trigger menus/tokens, or wire any input (plain textarea, rich editor) to the composition contract via useChatComposerContext() — read value/onChange/onSubmit/canSend and register a focus control on inputControlRef so body-click-to-focus works.',+ description: 'Slot: custom input element. Replaces the default input. Use ChatComposerInput for trigger menus/tokens, or wire any input (plain textarea, rich editor) to the composition contract via useChatComposerContext(): read value/onChange/onSubmit/canSend and register a focus control on inputControlRef so body-click-to-focus works.',slotElements: [{__element: 'TextInput',diff --git a/packages/core/src/Chat/ChatComposerInput.doc.mjs b/packages/core/src/Chat/ChatComposerInput.doc.mjsindex 99edb1f47c..964176c920 100644--- a/packages/core/src/Chat/ChatComposerInput.doc.mjs+++ b/packages/core/src/Chat/ChatComposerInput.doc.mjs@@ -83,7 +83,7 @@ export const docs = {{name: 'onKeyDown',type: '(event) => void',- description: 'Key-down handler invoked before the built-in Enter/history behavior (after any open trigger menu). The seam for platform-specific keys: call event.preventDefault() to suppress the default submit (e.g. newline on a touch keyboard), or act on the event yourself to add behavior (e.g. submit on Cmd/Ctrl+Enter). IME composition is always respected — Enter never submits mid-composition.',+ description: 'Key-down handler invoked before the built-in Enter/history behavior (after any open trigger menu). The seam for platform-specific keys: call event.preventDefault() to suppress the default submit (e.g. newline on a touch keyboard), or act on the event yourself to add behavior (e.g. submit on Cmd/Ctrl+Enter). IME composition is always respected; Enter never submits mid-composition.',},],};diff --git a/packages/core/src/Table/useTableRowStatus.doc.mjs b/packages/core/src/Table/useTableRowStatus.doc.mjsindex b3e051ecaa..1496b590c9 100644--- a/packages/core/src/Table/useTableRowStatus.doc.mjs+++ b/packages/core/src/Table/useTableRowStatus.doc.mjs@@ -13,7 +13,7 @@ export const docs = {name: 'getStatus',type: "(item: T) => { color: 'accent' | 'success' | 'error' | 'warning' | 'red' | 'orange' | 'green' | 'yellow' | 'blue' | 'gray' | string; icon?: IconName; label: string } | null",description:- 'Derive the status indicator for a row: a semantic color (accent, success, error, warning, red, orange, green, yellow, blue, gray — mapped to a theme token) or a raw CSS color as an escape hatch; an optional icon to signal status by shape instead of the dot (recommended when multiple statuses coexist; valid names: close, chevronDown, chevronLeft, chevronRight, check, success, error, warning, info, calendar, clock, externalLink, menu, moreHorizontal, search, arrowUp, arrowDown, arrowsUpDown, funnel, eyeSlash, viewColumns, copy, checkDouble, wrench, stop, microphone); and a required accessible label (announced via role="img" and shown in a tooltip on hover, so a status is never conveyed by color alone). Return null for rows with no status. Memoize with useCallback for a stable plugin identity.',+ 'Derive the status indicator for a row: a semantic color (accent, success, error, warning, red, orange, green, yellow, blue, gray, each mapped to a theme token) or a raw CSS color as an escape hatch; an optional icon to signal status by shape instead of the dot (recommended when multiple statuses coexist; valid names: close, chevronDown, chevronLeft, chevronRight, check, success, error, warning, info, calendar, clock, externalLink, menu, moreHorizontal, search, arrowUp, arrowDown, arrowsUpDown, funnel, eyeSlash, viewColumns, copy, checkDouble, wrench, stop, microphone); and a required accessible label (announced via role="img" and shown in a tooltip on hover, so a status is never conveyed by color alone). Return null for rows with no status. Memoize with useCallback for a stable plugin identity.',required: true,},],diff --git a/packages/core/src/Thumbnail/Thumbnail.doc.mjs b/packages/core/src/Thumbnail/Thumbnail.doc.mjsindex 28db5fd15a..37dc776e08 100644--- a/packages/core/src/Thumbnail/Thumbnail.doc.mjs+++ b/packages/core/src/Thumbnail/Thumbnail.doc.mjs@@ -149,7 +149,7 @@ export const docsDense = {onClick: '(e) => void. Adds button semantics + hover overlay.',isLoading: 'Skeleton (no src) or upload overlay (with src). Default: false.',isDisabled: 'Disabled state. Default: false.',- showRemoveOn: "When remove button shows: hover (default — reveal on hover/focus, stays visible on touch) | always. Only when onRemove set.",+ showRemoveOn: "When remove button shows: hover (default: reveal on hover/focus, stays visible on touch) | always. Only when onRemove set.",xstyle: 'stylex.create() for layout.',className: 'CSS class. Prefer xstyle.',style: 'Inline styles. Prefer xstyle.',diff --git a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjsindex aee11c310d..5afbe0e0a9 100644--- a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs+++ b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs@@ -27,7 +27,7 @@ export const docs = {{name: 'imageAlt',type: 'string',- description: 'Alt text for the image. When omitted, the image is explicitly decorative (alt="", role="presentation", aria-hidden) — usually correct since the card already has a visible title. Provide it only when the image conveys information beyond the title and description.',+ description: 'Alt text for the image. When omitted, the image is explicitly decorative (alt="", role="presentation", aria-hidden), usually correct since the card already has a visible title. Provide it only when the image conveys information beyond the title and description.',},{name: 'linkLabel',