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: Assess stabilization of HStack #61019

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- `HStack`: Remove "experimental" designation ([#61019](https://github.com/WordPress/gutenberg/pull/61019)).

### Enhancements

- `InputControl`: Add a password visibility toggle story ([#60898](https://github.com/WordPress/gutenberg/pull/60898)).
Expand Down
10 changes: 3 additions & 7 deletions packages/components/src/h-stack/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# HStack

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

`HStack` (Horizontal Stack) arranges child elements in a horizontal line.

## Usage
Expand All @@ -12,7 +8,7 @@ This feature is still experimental. “Experimental” means this is an early im

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalText as Text,
} from '@wordpress/components';

Expand Down Expand Up @@ -85,7 +81,7 @@ When a `Spacer` is used within an `HStack`, the `Spacer` adaptively expands to t

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalSpacer as Spacer,
__experimentalText as Text,
} from '@wordpress/components';
Expand All @@ -107,7 +103,7 @@ function Example() {

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalSpacer as Spacer,
__experimentalText as Text,
} from '@wordpress/components';
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/h-stack/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function UnconnectedHStack(
*
* ```jsx
* import {
* __experimentalHStack as HStack,
* HStack,
* __experimentalText as Text,
* } from `@wordpress/components`;
*
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/h-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const JUSTIFICATIONS = {

const meta: Meta< typeof HStack > = {
component: HStack,
title: 'Components (Experimental)/HStack',
title: 'Components/HStack',
argTypes: {
as: {
control: { type: null },
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ export { Grid as __experimentalGrid } from './grid';
export { default as Guide } from './guide';
export { default as GuidePage } from './guide/page';
export { Heading as __experimentalHeading } from './heading';
export { HStack as __experimentalHStack } from './h-stack';
export {
/**
* @deprecated Import `HStack` instead.
*/
HStack as __experimentalHStack,
HStack,
} from './h-stack';
export { default as Icon } from './icon';
export type { IconType } from './icon';
export { default as IconButton } from './button/deprecated';
Expand Down
2 changes: 1 addition & 1 deletion storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
( function redirectIfStoryMoved() {
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [ 'navigation' ];
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [ 'navigation', 'hstack' ];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down
Loading