Skip to content

Commit

Permalink
Remove "experimental" designation for Surface
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed Apr 25, 2024
1 parent 6d444aa commit 157bfaa
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/elevation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The shadow effect is generated using the `value` prop.
```jsx
import {
__experimentalElevation as Elevation,
__experimentalSurface as Surface,
Surface,
__experimentalText as Text,
} from '@wordpress/components';

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/elevation/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function UnconnectedElevation(
* ```jsx
* import {
* __experimentalElevation as Elevation,
* __experimentalSurface as Surface,
* Surface,
* __experimentalText as Text,
* } from '@wordpress/components';
*
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 @@ -147,7 +147,13 @@ export { default as SnackbarList } from './snackbar/list';
export { Spacer as __experimentalSpacer } from './spacer';
export { Scrollable as __experimentalScrollable } from './scrollable';
export { default as Spinner } from './spinner';
export { Surface as __experimentalSurface } from './surface';
export {
/**
* @deprecated Import `Surface` instead.
*/
Surface as __experimentalSurface,
Surface,
} from './surface';
export { default as TabPanel } from './tab-panel';
export { Text as __experimentalText } from './text';
export { default as TextControl } from './text-control';
Expand Down
6 changes: 1 addition & 5 deletions packages/components/src/surface/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Surface

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

`Surface` is a core component that renders a primary background color.

## Usage
Expand All @@ -12,7 +8,7 @@ In the example below, notice how the `Surface` renders in white (or dark gray if

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

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

const meta: Meta< typeof Surface > = {
component: Surface,
title: 'Components (Experimental)/Surface',
title: 'Components/Surface',
argTypes: {
children: { control: { type: null } },
as: { control: { type: 'text' } },
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', 'surface' ];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down

0 comments on commit 157bfaa

Please sign in to comment.