diff --git a/packages/components/src/flex/stories/index.js b/packages/components/src/flex/stories/index.js index 14e739ff1f5b49..77f1184259d9c1 100644 --- a/packages/components/src/flex/stories/index.js +++ b/packages/components/src/flex/stories/index.js @@ -17,7 +17,7 @@ export const _default = () => { Item - Item + Item Item diff --git a/packages/components/src/grid/README.md b/packages/components/src/grid/README.md index 197bd4421d2b00..6765ff856b3d0d 100644 --- a/packages/components/src/grid/README.md +++ b/packages/components/src/grid/README.md @@ -7,14 +7,17 @@ ## Usage ```jsx -import { __experimentalGrid as Grid, __experimentalView as View } from '@wordpress/components'; +import { + __experimentalGrid as Grid, + __experimentalText as Text +} from '@wordpress/components'; function Example() { return ( - Code - is - Poetry + Code + is + Poetry ); } diff --git a/packages/components/src/grid/component.js b/packages/components/src/grid/component.js index ca59b817ad8258..5abe522a0d7797 100644 --- a/packages/components/src/grid/component.js +++ b/packages/components/src/grid/component.js @@ -9,14 +9,17 @@ import useGrid from './hook'; * * @example * ```jsx - * import { __experimentalGrid as Grid, __experimentalView as View } from `@wordpress/components`; + * import { + * __experimentalGrid as Grid, + * __experimentalText as Text + * } from `@wordpress/components`; * * function Example() { * return ( * - * Code - * is - * Poetry + * Code + * is + * Poetry * * ); * } diff --git a/packages/components/src/h-stack/README.md b/packages/components/src/h-stack/README.md index 8ced1105d6c9c0..99182bb3e7b9ae 100644 --- a/packages/components/src/h-stack/README.md +++ b/packages/components/src/h-stack/README.md @@ -12,21 +12,14 @@ import { __experimentalHStack as HStack, __experimentalText as Text, - __experimentalView as View, } from '@wordpress/components'; function Example() { return ( - - Code - - - is - - - Poetry - + Code + is + Poetry ); } @@ -93,21 +86,16 @@ import { __experimentalHStack as HStack, __experimentalSpacer as Spacer, __experimentalText as Text, - __experimentalView as View, } from '@wordpress/components'; function Example() { return ( - - Code - + Code - is + is - - Poetry - + Poetry ); } @@ -120,22 +108,15 @@ import { __experimentalHStack as HStack, __experimentalSpacer as Spacer, __experimentalText as Text, - __experimentalView as View, } from '@wordpress/components'; function Example() { return ( - - Code - + Code - - is - - - Poetry - + is + Poetry ); } diff --git a/packages/components/src/h-stack/component.js b/packages/components/src/h-stack/component.js index 24a5b658f9265b..c26ae1c05abc6a 100644 --- a/packages/components/src/h-stack/component.js +++ b/packages/components/src/h-stack/component.js @@ -14,21 +14,14 @@ import { useHStack } from './hook'; * import { * __experimentalHStack as HStack, * __experimentalText as Text, - * __experimentalView as View, * } from `@wordpress/components`; * * function Example() { * return ( * - * - * Code - * - * - * is - * - * - * Poetry - * + * Code + * is + * Poetry * * ); * } diff --git a/packages/components/src/heading/hook.ts b/packages/components/src/heading/hook.ts index 0e22ef94a79e8b..aa58ac90890208 100644 --- a/packages/components/src/heading/hook.ts +++ b/packages/components/src/heading/hook.ts @@ -31,18 +31,18 @@ export interface HeadingProps extends Omit< TextProps, 'size' > { * * @example * ```jsx - * import { Heading, View } from `@wordpress/components` + * import { __experimentalHeading as Heading } from `@wordpress/components` * * function Example() { * return ( - * + *
* Code is Poetry * Code is Poetry * Code is Poetry * Code is Poetry * Code is Poetry * Code is Poetry - * + *
* ); * } * ``` diff --git a/packages/components/src/index.js b/packages/components/src/index.js index a9772b0bbf69d0..a6485fe0e95593 100644 --- a/packages/components/src/index.js +++ b/packages/components/src/index.js @@ -128,7 +128,6 @@ export { export { default as TreeSelect } from './tree-select'; export { Truncate as __experimentalTruncate } from './truncate'; export { default as __experimentalUnitControl } from './unit-control'; -export { View as __experimentalView } from './view'; export { VisuallyHidden } from './visually-hidden'; export { VStack as __experimentalVStack } from './v-stack'; export { default as IsolatedEventContainer } from './isolated-event-container'; diff --git a/packages/components/src/ui/card/component.js b/packages/components/src/ui/card/component.js index e6edf7f0836442..9f169ad4df40f4 100644 --- a/packages/components/src/ui/card/component.js +++ b/packages/components/src/ui/card/component.js @@ -35,7 +35,7 @@ function Card( props, forwardedRef ) { return ( - { children } + { children } Popover }> - * - * Code is Poetry - * + * Code is Poetry * * ); * } diff --git a/packages/components/src/ui/scrollable/component.js b/packages/components/src/ui/scrollable/component.js index 71aa440432a85b..842521cb6d28ef 100644 --- a/packages/components/src/ui/scrollable/component.js +++ b/packages/components/src/ui/scrollable/component.js @@ -9,12 +9,12 @@ import { useScrollable } from './hook'; * * @example * ```jsx - * import { Scrollable, View } from `@wordpress/components/ui`; + * import { Scrollable } from `@wordpress/components/ui`; * function Example() { * return ( * - * ... + *
...
*
* ); * } diff --git a/packages/components/src/v-stack/README.md b/packages/components/src/v-stack/README.md index a1ae16ecae3237..ba2132804f78f2 100644 --- a/packages/components/src/v-stack/README.md +++ b/packages/components/src/v-stack/README.md @@ -11,22 +11,15 @@ ```jsx import { __experimentalText as Text, - __experimentalView as View __experimentalVStack as VStack, } from '@wordpress/components'; function Example() { return ( - - Code - - - is - - - Poetry - + Code + is + Poetry ); } @@ -92,22 +85,17 @@ When a `Spacer` is used within an `VStack`, the `Spacer` adaptively expands to t import { __experimentalSpacer as Spacer, __experimentalText as Text, - __experimentalView as View __experimentalVStack as VStack, } from '@wordpress/components'; function Example() { return ( - - Code - + Code - is + is - - Poetry - + Poetry ); } @@ -119,23 +107,16 @@ function Example() { import { __experimentalSpacer as Spacer, __experimentalText as Text, - __experimentalView as View __experimentalVStack as VStack, } from '@wordpress/components'; function Example() { return ( - - Code - + Code - - is - - - Poetry - + is + Poetry ); } diff --git a/packages/components/src/v-stack/component.js b/packages/components/src/v-stack/component.js index 631cd0f103634c..a37186a04df172 100644 --- a/packages/components/src/v-stack/component.js +++ b/packages/components/src/v-stack/component.js @@ -13,22 +13,15 @@ import { useVStack } from './hook'; * ```jsx * import { * __experimentalText as Text, - * __experimentalView as View, * __experimentalVStack as VStack, * } from `@wordpress/components`; * * function Example() { * return ( * - * - * Code - * - * - * is - * - * - * Poetry - * + * Code + * is + * Poetry * * ); * }