Skip to content

Commit

Permalink
more content updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneeza committed Dec 10, 2024
1 parent f171985 commit 256441f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
20 changes: 16 additions & 4 deletions .changeset/calm-kangaroos-shave.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht

## What changed?

### Table V10 and V11 Adapter
- These have been removed in this version.

### `Row` component

- Row transition were removed to increase performance.
Expand Down Expand Up @@ -114,10 +117,6 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht
})}
```

### `Cell` component

- `cell` is a new required prop on `Cell` if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`. This is needed for styling purposes.

### `ExpandedContent` component

- `row` is a required prop if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`.
Expand Down Expand Up @@ -184,6 +183,19 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht
})}
```

### `Cell` component

- `cell` is a new required prop on `Cell` if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`. This is needed for styling purposes.
- Removes `overflow` prop. Instead use `shouldTruncate` on `<Table>`


### `HeaderCell` component
- Removes `sortState` prop. It was never used in the component.
- Removes `cellIndex` prop.

### `Table` component
- Removes `disableAnimations` prop.

### `useLeafyGreenTable` hook

`useLeafyGreenTable` will no longer accept `useVirtualScrolling` and `virtualizerOptions`. To use a virtual table, use the new hook, `useLeafyGreenVirtualTable`, which extends `useLeafyGreenTable`.
Expand Down
22 changes: 18 additions & 4 deletions packages/table/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht

## What changed?

### Table V10 and V11 Adapter

- These have been removed in this version.

### `Row` component

- Row transition were removed to increase performance.
Expand Down Expand Up @@ -112,10 +116,6 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht
})}
```

### `Cell` component

- `cell` is a new required prop on `Cell` if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`. This is needed for styling purposes.

### `ExpandedContent` component

- `row` is a required prop if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`.
Expand Down Expand Up @@ -182,6 +182,20 @@ For more details on how to use LeafyGreen `Table` v13, check out the [README](ht
})}
```

### `Cell` component

- `cell` is a new required prop on `Cell` if using `useLeafyGreenTable` or `useLeafyGreenVirtualTable`. This is needed for styling purposes.
- Removes `overflow` prop. Instead use `shouldTruncate` on `<Table>`

### `HeaderCell` component

- Removes `sortState` prop. It was never used in the component.
- Removes `cellIndex` prop.

### `Table` component

- Removes `disableAnimations` prop.

### `useLeafyGreenTable` hook

`useLeafyGreenTable` will no longer accept `useVirtualScrolling` and `virtualizerOptions`. To use a virtual table, use the new hook, `useLeafyGreenVirtualTable`, which extends `useLeafyGreenTable`.
Expand Down

0 comments on commit 256441f

Please sign in to comment.