An open source design system that's fully customizable and agent ready
TypeScript
docs: sync theming/props for AppShell, PowerSearch, Tokenizer (#606)
Cindy Zhang6d4b6b9f7f55
diff --git a/packages/core/src/AppShell/AppShell.doc.mjs b/packages/core/src/AppShell/AppShell.doc.mjsindex 10c29bb7f0..6f5c971ff3 100644--- a/packages/core/src/AppShell/AppShell.doc.mjs+++ b/packages/core/src/AppShell/AppShell.doc.mjs@@ -213,6 +213,13 @@ const isMobile = useMediaQuery('(max-width: 768px)');description: 'Width of the sideNav panel in pixels.',default: '260',},+ {+ name: 'variant',+ type: "'wash' | 'surface' | 'section' | 'elevated'",+ description:+ "Navigation background style controlling how nav areas contrast with content. 'wash' uses wash background, 'surface' uses surface background, 'section' adds dividers between nav and content, 'elevated' uses wash nav with elevated surface content and border radius.",+ default: "'section'",+ },{name: 'xstyle',type: 'StyleXStyles',@@ -229,7 +236,7 @@ const isMobile = useMediaQuery('(max-width: 768px)');],theming: {targets: [- {className: 'xds-app-shell', visualProps: ['background', 'height']},+ {className: 'xds-app-shell', visualProps: ['variant', 'height']},],},notes: [@@ -456,6 +463,13 @@ const isMobile = useMediaQuery('(max-width: 768px)');description: 'sideNav 面板的宽度(像素)。',default: '260',},+ {+ name: 'variant',+ type: "'wash' | 'surface' | 'section' | 'elevated'",+ description:+ "导航背景样式,控制导航区域与内容之间的对比。'wash' 使用 wash 背景,'surface' 使用 surface 背景,'section' 在导航和内容之间添加分隔线,'elevated' 使用 wash 导航配合凸起的 surface 内容区域和圆角。",+ default: "'section'",+ },{name: 'xstyle',type: 'StyleXStyles',@@ -472,7 +486,7 @@ const isMobile = useMediaQuery('(max-width: 768px)');],theming: {targets: [- {className: 'xds-app-shell', visualProps: ['background', 'height']},+ {className: 'xds-app-shell', visualProps: ['variant', 'height']},],},notes: [diff --git a/packages/core/src/PowerSearch/XDSPowerSearch.doc.mjs b/packages/core/src/PowerSearch/PowerSearch.doc.mjssimilarity index 92%rename from packages/core/src/PowerSearch/XDSPowerSearch.doc.mjsrename to packages/core/src/PowerSearch/PowerSearch.doc.mjsindex 79bd07754e..fff0dfbb91 100644--- a/packages/core/src/PowerSearch/XDSPowerSearch.doc.mjs+++ b/packages/core/src/PowerSearch/PowerSearch.doc.mjs@@ -97,6 +97,18 @@ export const docs = {description:'Imperative handle with focusTypeahead() and blurTypeahead() methods.',},+ {+ name: 'endContent',+ type: 'ReactNode',+ description:+ 'Content to display at the end of the input row. Useful for action buttons or other controls.',+ },+ {+ name: 'resultCount',+ type: 'number | string',+ description:+ 'Number of results matching the current filters. When a number, formatted as "N results". When a string, displayed as-is.',+ },{name: 'xstyle',type: 'StyleXStyles',diff --git a/packages/core/src/Tokenizer/Tokenizer.doc.mjs b/packages/core/src/Tokenizer/Tokenizer.doc.mjsindex d2f8e9e097..dfb17fdd8a 100644--- a/packages/core/src/Tokenizer/Tokenizer.doc.mjs+++ b/packages/core/src/Tokenizer/Tokenizer.doc.mjs@@ -143,6 +143,12 @@ export const docs = {type: '(query: string) => void',description: 'Callback fired when the search query text changes.',},+ {+ name: 'endContent',+ type: 'ReactNode',+ description:+ 'Content to display at the end of the input row. Useful for buttons, result counts, or other controls.',+ },{name: 'xstyle',type: 'StyleXStyles',@@ -361,6 +367,12 @@ export const docsZh = {type: '(query: string) => void',description: '搜索查询文本变更时触发的回调。',},+ {+ name: 'endContent',+ type: 'ReactNode',+ description:+ '在输入行末尾显示的内容。适用于按钮、结果计数或其他控件。',+ },{name: 'xstyle',type: 'StyleXStyles',