Skip to content
Merged
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
16 changes: 8 additions & 8 deletions docs/reference-guides/slotfills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,19 @@ export default function PostSummary( { onActionPerformed } ) {
<PluginPostStatusInfo.Slot>
{ ( fills ) => (
<>
<VStack spacing={ 4 }>
<Stack direction="column" gap="lg">
<PostCardPanel
onActionPerformed={ onActionPerformed }
/>
<PostFeaturedImagePanel withPanelBody={ false } />
<PostExcerptPanel />
<VStack spacing={ 1 }>
<Stack direction="column" gap="xs">
<PostContentInformation />
<PostLastEditedPanel />
</VStack>
</Stack>
{ ! isRemovedPostStatusPanel && (
<VStack spacing={ 2 }>
<VStack spacing={ 1 }>
<Stack direction="column" gap="sm">
<Stack direction="column" gap="xs">
<PostStatusPanel />
<PostSchedulePanel />
<PostURLPanel />
Expand All @@ -340,12 +340,12 @@ export default function PostSummary( { onActionPerformed } ) {
<SiteDiscussion />
<PostFormatPanel />
<PostStickyPanel />
</VStack>
</Stack>
<TemplateAreas />
{ fills }
</VStack>
</Stack>
) }
</VStack>
</Stack>
</>
) }
</PluginPostStatusInfo.Slot>
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/link-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ If passed, children are rendered after the input.

```jsx
<LinkControlSearchInput>
<HStack justify="right">
<Stack justify="flex-end">
<Button
type="submit"
label={ __( 'Submit' ) }
icon={ keyboardReturn }
className="block-editor-link-control__search-submit"
/>
</HStack>
</Stack>
</LinkControlSearchInput>
```

Expand Down
4 changes: 2 additions & 2 deletions packages/components/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This package contains UI components that are intended to be used anywhere in a general way (global), or specifically in the block editor.

We are currently in the process of rewriting the global components to be in the new `@wordpress/ui` package. However, this is a work in progress and `@wordpress/components` should continue to be used until further notice.
We are currently in the process of rewriting the global components to be in the new `@wordpress/ui` package. Refer to the [`use-recommended-components` ESLint rule](../eslint-plugin/rules/use-recommended-components.js) for guidance on which components to use.

Due to the nature of the transition, some components may be deprecated or removed in the future. Check the component status documentation in each Storybook file for up-to-date usage guidance on each component. The component status given in the Storybook file should be considered the most accurate signal, above the `experimental` tag or component prefix.
For components not explicitly listed in the `use-recommended-components` rule, check the component status documentation in each Storybook file for up-to-date usage guidance on each component. The component status given in the Storybook file should be considered the most accurate signal, above the `experimental` tag or component prefix.

## Forms

Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/divider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ This feature is still experimental. “Experimental” means this is an early im
import {
__experimentalDivider as Divider,
__experimentalText as Text,
__experimentalVStack as VStack,
} from `@wordpress/components`;
import { Stack } from '@wordpress/ui';

function Example() {
return (
<VStack spacing={4}>
<Stack direction="column" gap="lg">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update the import statements above.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 2538b7d

<Text>Some text here</Text>
<Divider />
<Text>Some more text here</Text>
</VStack>
</Stack>
);
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/flex/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const meta: Meta< typeof Flex > = {
componentStatus: {
status: 'not-recommended',
whereUsed: 'global',
notes: 'Planned for deprecation. For use cases not covered by `HStack` and `VStack`, write your own CSS.',
notes: 'Planned for deprecation. For use cases not covered by `Stack` from `@wordpress/ui`, write your own CSS.',
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/h-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ const meta: Meta< typeof HStack > = {
controls: { expanded: true },
docs: { canvas: { sourceState: 'shown' } },
componentStatus: {
status: 'stable',
status: 'not-recommended',
whereUsed: 'global',
notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
notes: 'Use `Stack` from `@wordpress/ui` instead.',
},
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/v-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const meta: Meta< typeof VStack > = {
controls: { expanded: true },
docs: { canvas: { sourceState: 'shown' } },
componentStatus: {
status: 'stable',
status: 'not-recommended',
whereUsed: 'global',
notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
notes: 'Use `Stack` from `@wordpress/ui` instead.',
},
},
};
Expand Down
Loading