Skip to content

Commit

Permalink
Fix integration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 30, 2021
1 parent ecabbad commit 8e21381
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/heading/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Heading
# Heading (Experimental)

`Heading` renders headings and titles using the library's typography system.

## Usage

```jsx
import { Heading } from '@wordpress/components/ui';
import { __experimentalHeading as Heading } from '@wordpress/components';

function Example() {
return <Heading>Code is Poetry</Heading>;
Expand All @@ -14,7 +14,7 @@ function Example() {

## Props

`Heading` uses `Text` underneath, so we have access to all of `Text`'s props except for `size` which is replaced by `level`. For a complete list of those props, check out [`Text`](../text/#props).
`Heading` uses `Text` underneath, so we have access to all of `Text`'s props except for `size` which is replaced by `level`. For a complete list of those props, check out [`Text`](/packages/components/src/text/README.md#props).

##### level

Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/heading/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default } from './component';
export * from './hook';
export { default as Heading } from './component';
export { useHeading } from './hook';
4 changes: 2 additions & 2 deletions packages/components/src/heading/stories/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Internal dependencies
*/
import Heading from '../index';
import { Heading } from '../';

export default {
component: Heading,
title: 'Components/Heading',
title: 'G2 Components (Experimental)/Heading',
};

export const _default = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/heading/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { render } from '@testing-library/react';
/**
* Internal dependencies
*/
import Heading from '../index';
import { Heading } from '../';

describe( 'props', () => {
let base;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export { default as __experimentalGradientPicker } from './gradient-picker';
export { default as __experimentalCustomGradientPicker } from './custom-gradient-picker';
export { default as Guide } from './guide';
export { default as GuidePage } from './guide/page';
export { default as __experimentalHeading } from './heading';
export { Heading as __experimentalHeading } from './heading';
export { default as Icon } from './icon';
export { default as IconButton } from './button/deprecated';
export { default as __experimentalInputControl } from './input-control';
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/ui/__storybook-utils/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { VStack } from '../v-stack';
import { View } from '../view';
import Heading from '../../heading';
import { Heading } from '../../heading';
import { Divider } from '../divider';

function Page( { title = 'Component', children } ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/ui/card/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Text } from '../../../text';
import { VStack } from '../../v-stack';
import { Card, CardBody, CardFooter } from '../index';
import { Divider } from '../../divider';
import Heading from '../../../heading';
import { Heading } from '../../../heading';
import Button from '../../../button';

export default {
Expand Down

0 comments on commit 8e21381

Please sign in to comment.