Skip to content

Commit d49a920

Browse files
committed
refactor(Text examples): update names to Content
1 parent e6d3930 commit d49a920

13 files changed

Lines changed: 19 additions & 19 deletions

File tree

File renamed without changes.

packages/react-core/src/components/Content/__tests__/Text.test.tsx renamed to packages/react-core/src/components/Content/__tests__/Content.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { render, screen } from '@testing-library/react';
3-
import { Text } from '../Text';
3+
import { Text } from '../Content';
44

55
test('Renders without children', () => {
66
render(

packages/react-core/src/components/Content/__tests__/__snapshots__/Text.test.tsx.snap renamed to packages/react-core/src/components/Content/__tests__/__snapshots__/Content.test.tsx.snap

File renamed without changes.

packages/react-core/src/components/Content/examples/Text.md renamed to packages/react-core/src/components/Content/examples/Content.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: Text
2+
id: Content
33
section: components
44
cssPrefix: pf-v5-c-content
55
propComponents: ['TextContent', 'Text', 'TextList', 'TextListItem']
@@ -15,50 +15,50 @@ For example, rather than nesting the `<List>` and `<Title>` components within `<
1515

1616
### Headings
1717

18-
```ts file="./TextHeadings.tsx"
18+
```ts file="./ContentHeadings.tsx"
1919

2020
```
2121

2222
### Body
2323

24-
```ts file="./TextBody.tsx"
24+
```ts file="./ContentBody.tsx"
2525

2626
```
2727

2828
### Unordered list
2929

30-
```ts file="./TextUnorderedList.tsx"
30+
```ts file="./ContentUnorderedList.tsx"
3131

3232
```
3333

3434
### Ordered list
3535

36-
```ts file="./TextOrderedList.tsx"
36+
```ts file="./ContentOrderedList.tsx"
3737

3838
```
3939

4040
### Plain list
4141

42-
```ts file="./TextPlainList.tsx"
42+
```ts file="./ContentPlainList.tsx"
4343

4444
```
4545

4646
### Description list
4747

48-
```ts file="./TextDescriptionList.tsx"
48+
```ts file="./ContentDescriptionList.tsx"
4949

5050
```
5151

5252
Text components such as Text, TextList, TextListItem can be placed within a TextContent to provide styling for html elements, and additional styling options applied to the children.
5353

5454
### Wrapped in TextContent
5555

56-
```ts file="./TextContentWrapped.tsx"
56+
```ts file="./ContentWrapper.tsx"
5757

5858
```
5959

6060
### Link and visited link
6161

62-
```ts file="./TextVisited.tsx"
62+
```ts file="./ContentVisited.tsx"
6363

6464
```

packages/react-core/src/components/Content/examples/TextBody.tsx renamed to packages/react-core/src/components/Content/examples/ContentBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Text, TextVariants } from '@patternfly/react-core';
33

4-
export const TextBody: React.FunctionComponent = () => (
4+
export const ContentBody: React.FunctionComponent = () => (
55
<>
66
<Text component={TextVariants.p}>
77
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla

packages/react-core/src/components/Content/examples/TextDescriptionList.tsx renamed to packages/react-core/src/components/Content/examples/ContentDescriptionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { TextList, TextListVariants, TextListItem, TextListItemVariants } from '@patternfly/react-core';
33

4-
export const TextDescriptionList: React.FunctionComponent = () => (
4+
export const ContentDescriptionList: React.FunctionComponent = () => (
55
<TextList component={TextListVariants.dl}>
66
<TextListItem component={TextListItemVariants.dt}>Web</TextListItem>
77
<TextListItem component={TextListItemVariants.dd}>

packages/react-core/src/components/Content/examples/TextHeadings.tsx renamed to packages/react-core/src/components/Content/examples/ContentHeadings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Text, TextVariants } from '@patternfly/react-core';
33

4-
export const TextHeadings: React.FunctionComponent = () => (
4+
export const ContentHeadings: React.FunctionComponent = () => (
55
<>
66
<Text component={TextVariants.h1}>Hello World</Text>
77
<Text component={TextVariants.h2}>Second level</Text>

packages/react-core/src/components/Content/examples/TextOrderedList.tsx renamed to packages/react-core/src/components/Content/examples/ContentOrderedList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
33

4-
export const TextOrderedList: React.FunctionComponent = () => (
4+
export const ContentOrderedList: React.FunctionComponent = () => (
55
<TextList component={TextListVariants.ol}>
66
<TextListItem>Donec blandit a lorem id convallis.</TextListItem>
77
<TextListItem>Cras gravida arcu at diam gravida gravida.</TextListItem>

packages/react-core/src/components/Content/examples/TextPlainList.tsx renamed to packages/react-core/src/components/Content/examples/ContentPlainList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Text, TextVariants, TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
33

4-
export const TextPlainList: React.FunctionComponent = () => (
4+
export const ContentPlainList: React.FunctionComponent = () => (
55
<>
66
<Text component={TextVariants.h3}>Plain unordered list</Text>
77
<TextList isPlain>

packages/react-core/src/components/Content/examples/TextUnorderedList.tsx renamed to packages/react-core/src/components/Content/examples/ContentUnorderedList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { TextList, TextListItem } from '@patternfly/react-core';
33

4-
export const TextUnorderedList: React.FunctionComponent = () => (
4+
export const ContentUnorderedList: React.FunctionComponent = () => (
55
<TextList>
66
<TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
77
<TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>

0 commit comments

Comments
 (0)