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 Grid #61018

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

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

### Enhancements

- `InputControl`: Add a password visibility toggle story ([#60898](https://github.com/WordPress/gutenberg/pull/60898)).
Expand Down
6 changes: 1 addition & 5 deletions packages/components/src/grid/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# Grid

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

`Grid` is a primitive layout component that can arrange content in a grid configuration.

## Usage

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

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/grid/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function UnconnectedGrid(
*
* ```jsx
* import {
* __experimentalGrid as Grid,
* Grid,
* __experimentalText as Text
* } from `@wordpress/components`;
*
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/grid/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Grid } from '..';

const meta: Meta< typeof Grid > = {
component: Grid,
title: 'Components (Experimental)/Grid',
title: 'Components/Grid',
argTypes: {
as: { control: { type: 'text' } },
align: { control: { type: 'text' } },
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 @@ -88,7 +88,13 @@ export { default as FormToggle } from './form-toggle';
export { default as FormTokenField } from './form-token-field';
export { default as GradientPicker } from './gradient-picker';
export { default as CustomGradientPicker } from './custom-gradient-picker';
export { Grid as __experimentalGrid } from './grid';
export {
/**
* @deprecated Import `Grid` instead.
*/
Grid as __experimentalGrid,
Grid,
} from './grid';
export { default as Guide } from './guide';
export { default as GuidePage } from './guide/page';
export { Heading as __experimentalHeading } from './heading';
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', 'grid' ];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down
Loading