An open source design system that's fully customizable and agent ready
TypeScript
docs: remove AI-slop typographic tells from component and CLI doc prose (#5413)
Joey5c396656fa5f
diff --git a/packages/cli/api/theme/themeTargets.doc.mjs b/packages/cli/api/theme/themeTargets.doc.mjsindex e7485d489a..cdae20f048 100644--- a/packages/cli/api/theme/themeTargets.doc.mjs+++ b/packages/cli/api/theme/themeTargets.doc.mjs@@ -18,9 +18,9 @@ export const doc = {'Enumerates the whole themeable surface: each `defineTheme` components key, the stable ' +'class it paints, the component that declares it, and the props and states that are legal ' +'override keys under it. Same source as the Theming table `astryx component <Name>` prints ' +- '— the component docs — so the list cannot drift from the components, and `theme build` ' ++ '(the component docs), so the list cannot drift from the components, and `theme build` ' +'validates overrides against this exact set. A filter naming a component gives that ' +- 'component\u2019s set; anything else is a substring search over the keys.',+ 'component\'s set; anything else is a substring search over the keys.',importPath: '@astryxdesign/cli/api',signature:'themeTargets(filter?: string, ctx?: {cwd?: string}): Promise<ThemeTargetsResponse>',@@ -35,7 +35,7 @@ export const doc = {{name: 'ctx.cwd',type: 'string',- description: 'Directory the project’s @astryxdesign/core is resolved from.',+ description: 'Directory the project\'s @astryxdesign/core is resolved from.',},],returns: [diff --git a/packages/cli/assets/templates/blocks/components/Step/StepContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Step/StepContent.doc.mjsindex 363b0434e8..cdd27fbda7 100644--- a/packages/cli/assets/templates/blocks/components/Step/StepContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Step/StepContent.doc.mjs@@ -7,7 +7,7 @@ export const doc = {name: 'Step — Content Slot',displayName: 'Step — Content Slot',description:- 'Children passed to a Step render below its description, indented to line up with the label rather than the indicator, and stay outside the clickable label area so buttons inside remain their own targets. In a full flow you gate the slot on the step being active — that is what turns a vertical stepper into an expanding one.',+ 'Children passed to a Step render below its description, indented to line up with the label rather than the indicator, and stay outside the clickable label area so buttons inside remain their own targets. In a full flow you gate the slot on the step being active. That is what turns a vertical stepper into an expanding one.',isReady: true,aspectRatio: 4 / 3,componentsUsed: ['Stepper', 'Step', 'TextInput', 'Button'],diff --git a/packages/cli/assets/templates/blocks/components/Stepper/StepperCustomContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Stepper/StepperCustomContent.doc.mjsindex b05514f2f1..8cdf24ea2b 100644--- a/packages/cli/assets/templates/blocks/components/Stepper/StepperCustomContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Stepper/StepperCustomContent.doc.mjs@@ -7,7 +7,7 @@ export const doc = {name: 'Stepper — Custom Content',displayName: 'Stepper — Custom Content',description:- 'A vertical stepper where each step owns a slice of the page. The content slot takes any node — form fields, a summary panel, a banner — so a stepper is not limited to multi-step forms. Rendering the slot only for the active step is what makes the flow expand one step at a time.',+ 'A vertical stepper where each step owns a slice of the page. The content slot takes any node (form fields, a summary panel, a banner), so a stepper is not limited to multi-step forms. Rendering the slot only for the active step is what makes the flow expand one step at a time.',isReady: true,aspectRatio: 4 / 3,componentsUsed: [diff --git a/packages/core/src/AspectRatio/AspectRatio.doc.mjs b/packages/core/src/AspectRatio/AspectRatio.doc.mjsindex 720db20e00..8b122ab8f4 100644--- a/packages/core/src/AspectRatio/AspectRatio.doc.mjs+++ b/packages/core/src/AspectRatio/AspectRatio.doc.mjs@@ -16,7 +16,7 @@ export const docs = {{guidance: true, description: 'Use `fit="cover"` for images and video so the component sizes the child; the child should not repeat `width`/`height`/`objectFit` styles.'},{guidance: true, description: 'Pass one child. With `fit` set, every direct child is stretched to fill the box, so put an overlay or caption inside a single wrapper child rather than passing it as a second child.'},{guidance: true, description: 'Describe media children with `alt`, or `alt=""` when the image is decorative. AspectRatio adds no role and no accessible name of its own, so the child carries the whole accessible description.'},- {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule — component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`) — with only the conditional branch the ratio is unset outside the query and the box collapses.'},+ {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule; component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`); with only the conditional branch the ratio is unset outside the query and the box collapses.'},{guidance: false, description: 'Use for general layout containers; use standard layout components instead.'},{guidance: false, description: 'Nest AspectRatio containers; one level is sufficient.'},{guidance: false, description: 'Constrain the height on its own. The width comes from the container, so a `height` or `maxHeight` by itself clamps the box off ratio; pair it with `width: "auto"` to size from the height instead.'},@@ -84,7 +84,7 @@ export const docsZh = {{guidance: true, description: 'Use `fit="cover"` for images and video so the component sizes the child; the child should not repeat `width`/`height`/`objectFit` styles.'},{guidance: true, description: 'Pass one child. With `fit` set, every direct child is stretched to fill the box, so put an overlay or caption inside a single wrapper child rather than passing it as a second child.'},{guidance: true, description: 'Describe media children with `alt`, or `alt=""` when the image is decorative. AspectRatio adds no role and no accessible name of its own, so the child carries the whole accessible description.'},- {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule — component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`) — with only the conditional branch the ratio is unset outside the query and the box collapses.'},+ {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule; component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`); with only the conditional branch the ratio is unset outside the query and the box collapses.'},{guidance: false, description: 'Use for general layout containers; use standard layout components instead.'},{guidance: false, description: 'Nest AspectRatio containers; one level is sufficient.'},{guidance: false, description: 'Constrain the height on its own. The width comes from the container, so a `height` or `maxHeight` by itself clamps the box off ratio; pair it with `width: "auto"` to size from the height instead.'},@@ -135,7 +135,7 @@ export const docsDense = {{guidance: true, description: 'Use `fit="cover"` for images and video so the component sizes the child; the child should not repeat `width`/`height`/`objectFit` styles.'},{guidance: true, description: 'Pass one child. With `fit` set, every direct child is stretched to fill the box, so put an overlay or caption inside a single wrapper child rather than passing it as a second child.'},{guidance: true, description: 'Describe media children with `alt`, or `alt=""` when the image is decorative. AspectRatio adds no role and no accessible name of its own, so the child carries the whole accessible description.'},- {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule — component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`) — with only the conditional branch the ratio is unset outside the query and the box collapses.'},+ {guidance: true, description: 'For a breakpoint-dependent ratio, override the ratio responsively: pass an `aspectRatio` rule via `xstyle` (StyleX), or override `aspect-ratio` from your own unlayered CSS under a `@media`/`@container` rule; component styles live in the `astryx-base` cascade layer, so unlayered consumer CSS wins. Give an `xstyle` rule a `default` branch alongside the conditional one (`{default: 3, \'@container ...\': \'3 / 2\'}`); with only the conditional branch the ratio is unset outside the query and the box collapses.'},{guidance: false, description: 'Use for general layout containers; use standard layout components instead.'},{guidance: false, description: 'Nest AspectRatio containers; one level is sufficient.'},{guidance: false, description: 'Constrain the height on its own. The width comes from the container, so a `height` or `maxHeight` by itself clamps the box off ratio; pair it with `width: "auto"` to size from the height instead.'},diff --git a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjsindex 85ee61260b..e5701d6d47 100644--- a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs+++ b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs@@ -46,8 +46,8 @@ export const docs = {{guidance: false, description: "Don't mix wildly different actions. A Save button next to a Delete button in the same group is confusing."},{guidance: false, description: "Don't use ButtonGroup for navigation. Use SegmentedControl or TabList for switching between views."},{guidance: false, description: "Don't nest ButtonGroups. If you need multiple groups, place them side by side with a gap."},- {guidance: true, description: 'Name the group for what its buttons act on. The label is the group\u2019s accessible name and a screen reader reads it before each member.'},- {guidance: true, description: 'Keep the group a single Tab stop. Arrow keys move between members along the orientation, Home/End jump to the ends, and disabled members are skipped — the WAI-ARIA APG roving tabindex technique: https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex'},+ {guidance: true, description: 'Name the group for what its buttons act on. The label is the group\'s accessible name and a screen reader reads it before each member.'},+ {guidance: true, description: 'Keep the group a single Tab stop. Arrow keys move between members along the orientation, Home/End jump to the ends, and disabled members are skipped. This is the WAI-ARIA APG roving tabindex technique: https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex'},{guidance: false, description: "Don't disable the group to show that an action is in flight. A disabled member drops focus, so a keyboard user loses their place; leave the group enabled and show progress on the button that started the work."},],anatomy: [diff --git a/packages/core/src/Stepper/Step.doc.mjs b/packages/core/src/Stepper/Step.doc.mjsindex ce071221ae..b12cae8b61 100644--- a/packages/core/src/Stepper/Step.doc.mjs+++ b/packages/core/src/Stepper/Step.doc.mjs@@ -10,7 +10,7 @@ export const docs = {category: 'Navigation',isHiddenFromOverview: true,description:- 'Individual step within a Stepper. Renders a progress-bar segment, an indicator, and a label with optional description. Progress (completed/active/not-started) is derived from the parent Stepper\u2019s activeStep and this step\u2019s step index.',+ 'Individual step within a Stepper. Renders a progress-bar segment, an indicator, and a label with optional description. Progress (completed/active/not-started) is derived from the parent Stepper\'s activeStep and this step\'s step index.',props: [{name: 'step',diff --git a/packages/core/src/Table/useTablePagination.doc.mjs b/packages/core/src/Table/useTablePagination.doc.mjsindex c7a1c53730..90e24d29e1 100644--- a/packages/core/src/Table/useTablePagination.doc.mjs+++ b/packages/core/src/Table/useTablePagination.doc.mjs@@ -75,7 +75,7 @@ export const docs = {{name: 'label',type: 'string',- description: "Accessible name for the pagination nav landmark. With position='both' the two navs get distinct names — the label suffixed as '(top)' and '(bottom)' — so same-type landmarks stay unique (axe landmark-unique).",+ description: "Accessible name for the pagination nav landmark. With position='both' the two navs get distinct names (the label suffixed as '(top)' and '(bottom)') so same-type landmarks stay unique (axe landmark-unique).",default: "'Table pagination'",},],