From 7c2009255b789423d3a5996820c3406ca65e3ac3 Mon Sep 17 00:00:00 2001 From: Marcelo Serpa Date: Thu, 18 Apr 2024 16:18:35 -0600 Subject: [PATCH 01/32] Remove "experimental" designation for `AlignmentMatrixControl` --- .../components/src/alignment-matrix-control/README.md | 6 +----- .../components/src/alignment-matrix-control/index.tsx | 2 +- .../src/alignment-matrix-control/stories/index.story.tsx | 2 +- packages/components/src/index.ts | 8 +++++++- storybook/manager-head.html | 5 ++++- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/components/src/alignment-matrix-control/README.md b/packages/components/src/alignment-matrix-control/README.md index d087a177d8d414..68ecab6b7adb47 100644 --- a/packages/components/src/alignment-matrix-control/README.md +++ b/packages/components/src/alignment-matrix-control/README.md @@ -1,16 +1,12 @@ # AlignmentMatrixControl -
-This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes. -
- AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI. ## Usage ```jsx import { useState } from 'react'; -import { __experimentalAlignmentMatrixControl as AlignmentMatrixControl } from '@wordpress/components'; +import { AlignmentMatrixControl } from '@wordpress/components'; const Example = () => { const [ alignment, setAlignment ] = useState( 'center center' ); diff --git a/packages/components/src/alignment-matrix-control/index.tsx b/packages/components/src/alignment-matrix-control/index.tsx index 3de0e401187d53..d5417ddfbc421d 100644 --- a/packages/components/src/alignment-matrix-control/index.tsx +++ b/packages/components/src/alignment-matrix-control/index.tsx @@ -25,7 +25,7 @@ import type { AlignmentMatrixControlProps } from './types'; * AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI. * * ```jsx - * import { __experimentalAlignmentMatrixControl as AlignmentMatrixControl } from '@wordpress/components'; + * import { AlignmentMatrixControl } from '@wordpress/components'; * import { useState } from '@wordpress/element'; * * const Example = () => { diff --git a/packages/components/src/alignment-matrix-control/stories/index.story.tsx b/packages/components/src/alignment-matrix-control/stories/index.story.tsx index 03bec9d92a8b78..9d276def5b001f 100644 --- a/packages/components/src/alignment-matrix-control/stories/index.story.tsx +++ b/packages/components/src/alignment-matrix-control/stories/index.story.tsx @@ -17,7 +17,7 @@ import { HStack } from '../../h-stack'; import type { AlignmentMatrixControlProps } from '../types'; const meta: Meta< typeof AlignmentMatrixControl > = { - title: 'Components (Experimental)/AlignmentMatrixControl', + title: 'Components/AlignmentMatrixControl', component: AlignmentMatrixControl, subcomponents: { // @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170 diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index a824162cb24129..f41c374841f3fd 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -12,7 +12,13 @@ export { } from '@wordpress/primitives'; // Components. -export { default as __experimentalAlignmentMatrixControl } from './alignment-matrix-control'; +export { + /** + * @deprecated Import `AlignmentMatrixControl` instead. + */ + default as __experimentalAlignmentMatrixControl, + AlignmentMatrixControl, +} from './alignment-matrix-control'; export { default as Animate, getAnimateClassName as __unstableGetAnimateClassName, diff --git a/storybook/manager-head.html b/storybook/manager-head.html index 629f06bf98edf9..cb39837db0a06b 100644 --- a/storybook/manager-head.html +++ b/storybook/manager-head.html @@ -1,6 +1,9 @@