An open source design system that's fully customizable and agent ready
TypeScript
docs(slop): full-rubric cleanup pass 1 - vocab filler, hollow intensifiers, typographic tells (8 files) (#2666)
Joey3c95afedc4f3
diff --git a/packages/core/src/DateInput/DateInput.doc.mjs b/packages/core/src/DateInput/DateInput.doc.mjsindex e0797aa073..cf8c2ddb48 100644--- a/packages/core/src/DateInput/DateInput.doc.mjs+++ b/packages/core/src/DateInput/DateInput.doc.mjs@@ -135,7 +135,7 @@ export const docs = {bestPractices: [{ guidance: true, description: 'Provide clear labels and descriptions so users understand what date is expected.' },{ guidance: true, description: 'Use min, max, and dateConstraints to restrict selectable dates to valid ranges.' },- { guidance: true, description: 'Use hasClear when the date is optional so the user can easily reset it.' },+ { guidance: true, description: 'Use hasClear when the date is optional so the user can reset it.' },{ guidance: true, description: 'Show a loading state with changeAction when the date triggers a server-side save.' },{ guidance: false, description: 'Use a DateInput for free-form text that does not represent a calendar date.' },{ guidance: false, description: 'Hide the label without surrounding context that makes the field purpose obvious.' },@@ -161,7 +161,7 @@ export const docsZh = {bestPractices: [{ guidance: true, description: 'Provide clear labels and descriptions so users understand what date is expected.' },{ guidance: true, description: 'Use min, max, and dateConstraints to restrict selectable dates to valid ranges.' },- { guidance: true, description: 'Use hasClear when the date is optional so the user can easily reset it.' },+ { guidance: true, description: 'Use hasClear when the date is optional so the user can reset it.' },{ guidance: true, description: 'Show a loading state with changeAction when the date triggers a server-side save.' },{ guidance: false, description: 'Use a DateInput for free-form text that does not represent a calendar date.' },{ guidance: false, description: 'Hide the label without surrounding context that makes the field purpose obvious.' },@@ -219,7 +219,7 @@ export const docsDense = {bestPractices: [{ guidance: true, description: 'Provide clear labels + descriptions so users understand what date is expected.' },{ guidance: true, description: 'Use min, max, and dateConstraints to restrict selectable dates to valid ranges.' },- { guidance: true, description: 'Use hasClear when the date is optional so the user can easily reset it.' },+ { guidance: true, description: 'Use hasClear when the date is optional so the user can reset it.' },{ guidance: true, description: 'Show a loading state with changeAction when the date triggers a server-side save.' },{ guidance: false, description: 'Use a DateInput for free-form text that does not represent a calendar date.' },{ guidance: false, description: 'Hide the label without surrounding context that makes the field purpose obvious.' },diff --git a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjsindex 55cba0674b..be45c75c11 100644--- a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs+++ b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs@@ -224,7 +224,7 @@ export const docsDense = {bestPractices: [{ guidance: true, description: 'Provide clear labels + descriptions so users understand what datetime is expected.' },{ guidance: true, description: 'Use min and max to restrict selectable datetimes to valid ranges.' },- { guidance: true, description: 'Use hasClear when the datetime is optional so the user can easily reset it.' },+ { guidance: true, description: 'Use hasClear when the datetime is optional so the user can reset it.' },{ guidance: true, description: 'Choose the hour format (12h or 24h) that matches your audience\u2019s locale.' },{ guidance: false, description: 'Use DateTimeInput when only a date is needed; use DateInput instead.' },{ guidance: false, description: 'Use DateTimeInput when only a time is needed; use TimeInput instead.' },diff --git a/packages/core/src/TimeInput/TimeInput.doc.mjs b/packages/core/src/TimeInput/TimeInput.doc.mjsindex e8a15bad7c..6eddea37de 100644--- a/packages/core/src/TimeInput/TimeInput.doc.mjs+++ b/packages/core/src/TimeInput/TimeInput.doc.mjs@@ -16,7 +16,7 @@ export const docs = {{guidance: true, description: 'Set min and max constraints when the context has a valid range, like business hours or event windows, so users cannot submit an out-of-bounds time.'},{guidance: true, description: 'Provide a description or placeholder that hints at the expected format or purpose, like \u201cBusiness hours: 9 AM \u2013 5 PM\u201d.'},{guidance: true, description: 'Use the status prop to surface validation errors inline \u2014 show a message like \u201cTime must be during business hours\u201d so users know exactly what to fix.'},- {guidance: true, description: 'Enable hasClear when the field is optional, so users can easily remove a previously selected time.'},+ {guidance: true, description: 'Enable hasClear when the field is optional, so users can remove a previously selected time.'},{guidance: false, description: 'Don\u2019t use TimeInput for combined date-and-time selection \u2014 pair it with a separate DateInput instead.'},{guidance: false, description: 'Don\u2019t hide the label \u2014 even when space is tight, keep the label visible or provide a description so the purpose is clear.'},],@@ -211,7 +211,7 @@ export const docsZh = {{guidance: true, description: 'Set min and max constraints when the context has a valid range, like business hours or event windows, so users cannot submit an out-of-bounds time.'},{guidance: true, description: 'Provide a description or placeholder that hints at the expected format or purpose, like \u201cBusiness hours: 9 AM \u2013 5 PM\u201d.'},{guidance: true, description: 'Use the status prop to surface validation errors inline \u2014 show a message like \u201cTime must be during business hours\u201d so users know exactly what to fix.'},- {guidance: true, description: 'Enable hasClear when the field is optional, so users can easily remove a previously selected time.'},+ {guidance: true, description: 'Enable hasClear when the field is optional, so users can remove a previously selected time.'},{guidance: false, description: 'Don\u2019t use TimeInput for combined date-and-time selection \u2014 pair it with a separate DateInput instead.'},{guidance: false, description: 'Don\u2019t hide the label \u2014 even when space is tight, keep the label visible or provide a description so the purpose is clear.'},],diff --git a/packages/core/src/hooks/useGridFocus.doc.mjs b/packages/core/src/hooks/useGridFocus.doc.mjsindex 5ef202d207..3bc67180a5 100644--- a/packages/core/src/hooks/useGridFocus.doc.mjs+++ b/packages/core/src/hooks/useGridFocus.doc.mjs@@ -79,7 +79,7 @@ export const docs = {],usage: {description:- 'Manages keyboard navigation within a 2D grid following the WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, and Page Up/Down for custom callbacks (e.g., month navigation in calendars). Boundary navigation callbacks allow seamless cross-grid navigation.',+ 'Manages keyboard navigation within a 2D grid following the WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, and Page Up/Down for custom callbacks (e.g., month navigation in calendars). Boundary navigation callbacks allow cross-grid navigation.',bestPractices: [{ guidance: true, description: 'Use for calendar date grids: wire onPageUp/onPageDown to month navigation and onNavigateBefore/onNavigateAfter for cross-month arrow key navigation.' },{ guidance: true, description: 'Attach both gridRef and handleKeyDown to the grid container element.' },@@ -95,7 +95,7 @@ export const docs = {/** @type {import('../docs-types').HookTranslationDoc} */export const docsDense = {description:- 'Manages keyboard navigation within 2D grid following WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, Page Up/Down for custom callbacks (e.g. month navigation in calendars). Boundary navigation callbacks allow seamless cross-grid navigation.',+ 'Manages keyboard navigation within 2D grid following WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, Page Up/Down for custom callbacks (e.g. month navigation in calendars). Boundary navigation callbacks allow cross-grid navigation.',paramDescriptions: {options: 'config for grid focus behavior.','options.columns': '# columns in grid. Used for up/down navigation (moves by this many cells).',@@ -114,7 +114,7 @@ export const docsDense = {},usage: {description:- 'Manages keyboard navigation within 2D grid following WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, Page Up/Down for custom callbacks (e.g. month navigation in calendars). Boundary navigation callbacks allow seamless cross-grid navigation.',+ 'Manages keyboard navigation within 2D grid following WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, Page Up/Down for custom callbacks (e.g. month navigation in calendars). Boundary navigation callbacks allow cross-grid navigation.',bestPractices: [{ guidance: true, description: 'Use for calendar date grids: wire onPageUp/onPageDown to month navigation + onNavigateBefore/onNavigateAfter for cross-month arrow key navigation.' },{ guidance: true, description: 'Attach both gridRef + handleKeyDown to grid container element.' },