Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components: add Tabs (a composable TabPanel v2) #53960

Merged
merged 42 commits into from
Oct 6, 2023
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
978bec5
conjure components
chad1008 Aug 4, 2023
7ffc88a
summon stories
chad1008 Aug 4, 2023
04e0269
unleash unit tests
chad1008 Aug 24, 2023
ca47818
create controlled mode
chad1008 Aug 29, 2023
00db04b
remove monolithic flow and tabs array
chad1008 Sep 12, 2023
298defe
specify styles
chad1008 Sep 12, 2023
ecc55bd
render README
chad1008 Sep 12, 2023
aabbf40
incorporate initial doc feedback
chad1008 Sep 14, 2023
59b1387
update for Tootip/Popover.Slot changes
chad1008 Sep 14, 2023
00b9e42
docs manifest
chad1008 Sep 14, 2023
ab09233
create individual files for each sub-component
chad1008 Sep 15, 2023
1c2f9e5
update index to use individual subcomponent files
chad1008 Sep 15, 2023
0b95527
fix mystyped class name on TabList
chad1008 Sep 20, 2023
c8b92d6
clean up unit tests
chad1008 Sep 20, 2023
1ff0685
shore up unit tests by adding additional `toHaveBeenLastCalledWith` a…
chad1008 Sep 20, 2023
e53b792
README improvements
chad1008 Sep 20, 2023
ed776b3
transition to emotion
chad1008 Sep 21, 2023
8451783
remove old scss import
chad1008 Sep 22, 2023
800b56f
unit test cleanup
chad1008 Sep 22, 2023
41053ef
remove excess initialTabId + controlled mode tests & reorganize
chad1008 Sep 22, 2023
fb90eb0
add handling for active tab becoming disabled when `initialTabId` was…
chad1008 Sep 22, 2023
3af61fe
add tab disabled/removed stories
chad1008 Sep 23, 2023
187de6e
controlled mode: do not restore selection if active tab is removed an…
chad1008 Sep 23, 2023
ce09452
more explicit ternary
chad1008 Sep 28, 2023
598230e
remove `active-class` prop
chad1008 Sep 28, 2023
9240134
Update packages/components/src/tabs/types.ts
chad1008 Sep 28, 2023
9615e69
removing superfluos test
chad1008 Sep 29, 2023
f2c2012
handle fallback when no enabled tabs are available
chad1008 Sep 29, 2023
31e6fa3
go away unneeded optional chaining
chad1008 Sep 29, 2023
d3145dc
replace includes with proper imports in styles
chad1008 Sep 29, 2023
a8b5f8a
remove @ts-expect-error
chad1008 Sep 29, 2023
f1e38de
add eslint-disable for ariakit imports
chad1008 Sep 29, 2023
dfe7384
introduce `render` prop for `Tabs.Tab`
chad1008 Oct 4, 2023
2995957
update path to space utils
chad1008 Oct 4, 2023
b12db10
add test for uncontrolled mode removing tab when no other tabs are en…
chad1008 Oct 4, 2023
2d37e60
add ref forwarding
chad1008 Oct 4, 2023
6831880
typo
chad1008 Oct 6, 2023
2fe4332
update `selectedTabId` description
chad1008 Oct 6, 2023
4025488
misc feedback updates
chad1008 Oct 6, 2023
8367af6
mark as experimental
chad1008 Oct 6, 2023
e24d31a
update `onSelect` JSDoc description
chad1008 Oct 6, 2023
8d3ac35
update CHANGELOG
chad1008 Oct 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update CHANGELOG
  • Loading branch information
chad1008 committed Oct 6, 2023
commit 8d3ac35341bb3a0aa56c2d605ec83f8b24539d7a
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -32,6 +32,10 @@
- `SlotFill`: Migrate to TypeScript and Convert to Functional Component `<Slot bubblesVirtually />`. ([#51350](https://github.com/WordPress/gutenberg/pull/51350)).
- `Components`: move `ui/utils` to `utils` and remove `ui/` folder ([#54922](https://github.com/WordPress/gutenberg/pull/54922)).

### Experimental

- Introduce `Tabs`, an experimental v2 of `TabPanel`: ([#53960](https://github.com/WordPress/gutenberg/pull/53960)).

## 25.8.0 (2023-09-20)

### Enhancements