@astryxdesign/core 0.1.3-canary.6d57c8d → 0.1.3-canary.d9932ea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.1.3-canary.6d57c8d",
3
+ "version": "0.1.3-canary.d9932ea",
4
4
  "displayName": "XDS Core",
5
5
  "description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
6
6
  "author": "Meta Open Source",
@@ -55,8 +55,8 @@ export const docs = {
55
55
  },
56
56
  {
57
57
  name: 'size',
58
- type: 'AvatarSize',
59
- description: 'Avatar size (named or numeric pixel value).',
58
+ type: "'tiny' | 'xsmall' | 'small' | 'medium' | 'large' | number",
59
+ 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.",
60
60
  default: "'small'",
61
61
  },
62
62
  {
@@ -6,7 +6,10 @@ export const docs = {
6
6
  name: 'useTablePagination',
7
7
  subComponentOf: 'Table',
8
8
  displayName: 'useTablePagination',
9
- 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.',
9
+ 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 }} />`.',
10
+ usage: {
11
+ description: 'Call useTablePagination with a config object containing page state and callback. Pass the returned plugin to Table via the plugins prop.',
12
+ },
10
13
  props: [
11
14
  {
12
15
  name: 'page',
@@ -6,7 +6,10 @@ export const docs = {
6
6
  name: 'useTableSortable',
7
7
  subComponentOf: 'Table',
8
8
  displayName: 'useTableSortable',
9
- 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.',
9
+ 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 }} />`.',
10
+ usage: {
11
+ description: 'Call useTableSortable with a config object containing sort state and callback. Pass the returned plugin to Table via the plugins prop.',
12
+ },
10
13
  props: [
11
14
  {
12
15
  name: 'sort',