An open source design system that's fully customizable and agent ready
TypeScript
fix(cli): enumerate AvatarSize values and add Table hook config examples (#3567)
Cindy Zhangd9932ea92d85
diff --git a/packages/core/src/Avatar/Avatar.doc.mjs b/packages/core/src/Avatar/Avatar.doc.mjsindex f3c875e470..052b5fadde 100644--- a/packages/core/src/Avatar/Avatar.doc.mjs+++ b/packages/core/src/Avatar/Avatar.doc.mjs@@ -55,8 +55,8 @@ export const docs = {},{name: 'size',- type: 'AvatarSize',- description: 'Avatar size (named or numeric pixel value).',+ type: "'tiny' | 'xsmall' | 'small' | 'medium' | 'large' | number",+ description: "Avatar size. Use a named size ('tiny', 'xsmall', 'small', 'medium', 'large') or a numeric pixel value. Note: short names like 'sm', 'md', 'lg' are NOT valid — use the full words.",default: "'small'",},{diff --git a/packages/core/src/Table/useTablePagination.doc.mjs b/packages/core/src/Table/useTablePagination.doc.mjsindex 2c839ac9d9..00cd07b90a 100644--- a/packages/core/src/Table/useTablePagination.doc.mjs+++ b/packages/core/src/Table/useTablePagination.doc.mjs@@ -6,7 +6,10 @@ export const docs = {name: 'useTablePagination',subComponentOf: 'Table',displayName: 'useTablePagination',- description: 'Headless pagination plugin for Table. Supports client-side slicing, server-side pagination, and cursor-based pagination. Renders Pagination controls automatically above, below, or both.',+ description: 'Headless pagination plugin for Table. Call with a config object: `useTablePagination({ page, onPageChange, totalItems })`. Returns a TablePlugin to pass to `<Table plugins={{ pagination: paginationPlugin }} />`.',+ usage: {+ description: 'Call useTablePagination with a config object containing page state and callback. Pass the returned plugin to Table via the plugins prop.',+ },props: [{name: 'page',diff --git a/packages/core/src/Table/useTableSortable.doc.mjs b/packages/core/src/Table/useTableSortable.doc.mjsindex 22e9c57d5b..b310905e15 100644--- a/packages/core/src/Table/useTableSortable.doc.mjs+++ b/packages/core/src/Table/useTableSortable.doc.mjs@@ -6,7 +6,10 @@ export const docs = {name: 'useTableSortable',subComponentOf: 'Table',displayName: 'useTableSortable',- description: 'Headless multi-sort plugin for Table. The consumer owns sort state and provides a callback. Shift+click enables secondary sort columns. Sort indicators render in header cells automatically.',+ description: 'Headless multi-sort plugin for Table. Call with a config object: `useTableSortable({ sort, onSortChange })`. Returns a TablePlugin to pass to `<Table plugins={{ sort: sortPlugin }} />`.',+ usage: {+ description: 'Call useTableSortable with a config object containing sort state and callback. Pass the returned plugin to Table via the plugins prop.',+ },props: [{name: 'sort',