An open source design system that's fully customizable and agent ready
TypeScript
fix(docs): correct Toolbar and MoreMenu prop docs to match component APIs (#3063)
Cindy Zhanga1300bcc1c10
diff --git a/packages/core/src/MoreMenu/MoreMenu.doc.mjs b/packages/core/src/MoreMenu/MoreMenu.doc.mjsindex eb48d251f7..a36b0a2a15 100644--- a/packages/core/src/MoreMenu/MoreMenu.doc.mjs+++ b/packages/core/src/MoreMenu/MoreMenu.doc.mjs@@ -53,12 +53,6 @@ export const docs = {description: 'Whether to auto-focus the first menu item when the menu opens. Set to false for inline showcases or documentation previews.',default: 'true',},- {- name: 'children',- type: '(item: DropdownMenuItemData) => ReactNode',- description:- 'Custom render function for items. Only called for selectable items (not dividers/sections).',- },{name: 'xstyle',type: 'StyleXStyles',@@ -139,12 +133,6 @@ export const docsZh = {description: '菜单打开时是否自动聚焦第一个菜单项。内联展示或文档预览设为 false。',default: 'true',},- {- name: 'children',- type: '(item: DropdownMenuItemData) => ReactNode',- description:- '自定义项目渲染函数。仅对可选择的项目调用(不包括分割线/分组)。',- },{name: 'xstyle',type: 'StyleXStyles',@@ -189,7 +177,6 @@ export const docsDense = {icon: 'Override default three-dot icon. Accepts any ReactNode.',isDisabled: 'Whether menu trigger disabled.',hasAutoFocus: 'Auto-focus first item on open; false for showcases.',- children: 'Custom render function for selectable items (not dividers/sections).',xstyle:'StyleX styles for layout customization (margins, positioning, sizing). Must be stylex.create() value.',},diff --git a/packages/core/src/Toolbar/Toolbar.doc.mjs b/packages/core/src/Toolbar/Toolbar.doc.mjsindex ac8d67cb19..9d51a0f136 100644--- a/packages/core/src/Toolbar/Toolbar.doc.mjs+++ b/packages/core/src/Toolbar/Toolbar.doc.mjs@@ -9,7 +9,7 @@ export const docs = {keywords: ['toolbar', 'nav', 'bar', 'actions', 'buttonbar', 'header', 'footer', 'action-bar', 'control-bar'],theming: {targets: [- {className: 'astryx-toolbar', states: ['density']},+ {className: 'astryx-toolbar', states: ['size']},],},components: [@@ -48,10 +48,11 @@ export const docs = {],},{- name: 'density',- type: "'compact' | 'default'",- description: 'Toolbar density. Controls minimum height.',- default: "'default'",+ name: 'size',+ type: "'sm' | 'md' | 'lg'",+ description:+ 'Size of the toolbar. Controls minimum height and coordinates with Button, TextInput, TabList, and Selector — children inherit this size as their default via SizeContext.',+ default: "'md'",},{name: 'gap',@@ -107,7 +108,7 @@ export const docsZh = {startContent: '起始内容(LTR 中靠左对齐)。',centerContent: '居中内容。切换为 CSS grid(1fr auto 1fr)。',endContent: '结束内容(LTR 中靠右对齐)。',- density: '工具栏密度。控制最小高度。',+ size: '工具栏尺寸。控制最小高度,子组件通过 SizeContext 继承此尺寸作为默认值。',gap: '插槽内项目间距。',orientation: '键盘导航方向。控制方向键方向。',variant: '传递给 Section 的视觉变体。',@@ -156,7 +157,7 @@ export const docsDense = {startContent: 'Start-aligned content.',centerContent: 'Centered content; switches to 3-col grid.',endContent: 'End-aligned content.',- density: 'Toolbar density; controls min-height.',+ size: 'Toolbar size; controls min-height + cascades to children via SizeContext.',gap: 'Gap between slot items.',orientation: 'Keyboard nav direction.',variant: 'Visual variant for Section.',