Skip to content

Commit

Permalink
Composite v2: undo stabilizing new version (WordPress#64510)
Browse files Browse the repository at this point in the history
* Remove exports from `@wordpress/components` package

* Update Storybook

* Update CHANGELOG

* README

---

Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent 00d1f8a commit 93b4738
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
13 changes: 6 additions & 7 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
- `ToggleGroupControl`
- `TreeSelect`

### New Features

- `Composite`: add stable version of the component ([#63564](https://github.com/WordPress/gutenberg/pull/63564)).
- `Composite`: add `Hover` and `Typeahead` subcomponents ([#64399](https://github.com/WordPress/gutenberg/pull/64399)).
- `Composite`: export `useCompositeStore`, add focus-related props to `Composite`and`Composite.Item` subcomponents ([#64450](https://github.com/WordPress/gutenberg/pull/64450)).
- `Composite`: add `Context` subcomponent ([#64493](https://github.com/WordPress/gutenberg/pull/64493)).

### Enhancements

- `Composite`: improve Storybook examples and add interactive controls ([#64397](https://github.com/WordPress/gutenberg/pull/64397)).
Expand All @@ -34,6 +27,12 @@
- `TimePicker`: add `hideLabelFromVision` prop ([#64267](https://github.com/WordPress/gutenberg/pull/64267)).
- `DropdownMenuV2`: adopt elevation scale ([#64432](https://github.com/WordPress/gutenberg/pull/64432)).

### Internal

- `Composite` v2: add `Hover` and `Typeahead` subcomponents ([#64399](https://github.com/WordPress/gutenberg/pull/64399)).
- `Composite` v2: add focus-related props to `Composite`and`Composite.Item` subcomponents ([#64450](https://github.com/WordPress/gutenberg/pull/64450)).
- `Composite` v2: add `Context` subcomponent ([#64493](https://github.com/WordPress/gutenberg/pull/64493)).

## 28.5.0 (2024-08-07)

### Bug Fixes
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/composite/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# `Composite`

<div class="callout callout-alert">
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
</div>

`Composite` provides a single tab stop on the page and allows navigation through the focusable descendants with arrow keys. This abstract component is based on the [WAI-ARIA Composite Role⁠](https://w3c.github.io/aria/#composite).

## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import {
import { UseCompositeStatePlaceholder, transform } from './utils';

const meta: Meta< typeof UseCompositeStatePlaceholder > = {
title: 'Components (Deprecated)/Composite (Unstable)',
id: 'components-composite-unstable',
title: 'Components/Composite',
component: UseCompositeStatePlaceholder,
subcomponents: {
Composite,
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/composite/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Composite, useCompositeStore } from '..';
import { UseCompositeStorePlaceholder, transform } from './utils';

const meta: Meta< typeof UseCompositeStorePlaceholder > = {
title: 'Components/Composite',
title: 'Components/Composite (V2)',
component: UseCompositeStorePlaceholder,
subcomponents: {
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
Expand Down Expand Up @@ -50,6 +50,7 @@ const meta: Meta< typeof UseCompositeStorePlaceholder > = {
options: [ 'horizontal', 'vertical', 'both' ],
},
},
tags: [ 'status-private' ],
parameters: {
controls: { expanded: true },
docs: {
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export {
CompositeItem as __unstableCompositeItem,
useCompositeState as __unstableUseCompositeState,
} from './composite/legacy';
export { Composite, useCompositeStore } from './composite';
export { ConfirmDialog as __experimentalConfirmDialog } from './confirm-dialog';
export { default as CustomSelectControl } from './custom-select-control';
export { default as Dashicon } from './dashicon';
Expand Down

0 comments on commit 93b4738

Please sign in to comment.