Skip to content

Commit 80f6ca0

Browse files
fix(InfrastructureIcons): replaced with RH brand icons part 2 (#12502)
* fix(InfrastructureIcons): replaced with RH brand icons part 2 * Updated cubes replacement to module icon
1 parent eedd8b8 commit 80f6ca0

21 files changed

Lines changed: 60 additions & 34 deletions

File tree

packages/react-core/src/components/Alert/examples/Alert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import RhUiUsersFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-user
1212
import RhUiContainerFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-container-fill-icon';
1313
import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
1414
import RhUiServerStackFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-server-stack-fill-icon';
15-
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
15+
import RhUiLaptopFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-laptop-fill-icon';
1616
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
1717

1818
Micro animations have been added for `<Alert>` components within an `<AlertGroup>`. By default, you must opt into animations, since they can require updates to tests. To enable or disable animations as needed, use the `hasAnimations` property. With animations enabled, we recommend you ensure that dynamically-added alerts are prepended to a list of alerts, rather than appended to the end of it.

packages/react-core/src/components/Alert/examples/AlertCustomIcons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import RhUiUsersFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-user
44
import RhUiContainerFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-container-fill-icon';
55
import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
66
import RhUiServerStackFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-server-stack-fill-icon';
7-
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
7+
import RhUiLaptopFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-laptop-fill-icon';
88

99
export const AlertCustomIcons: React.FunctionComponent = () => (
1010
<Fragment>
1111
<Alert customIcon={<RhUiUsersFillIcon />} title="Default alert title" />
1212
<Alert customIcon={<RhUiContainerFillIcon />} variant="info" title="Info alert title" />
1313
<Alert customIcon={<DatabaseIcon />} variant="success" title="Success alert title" />
1414
<Alert customIcon={<RhUiServerStackFillIcon />} variant="warning" title="Warning alert title" />
15-
<Alert customIcon={<LaptopIcon />} variant="danger" title="Danger alert title" />
15+
<Alert customIcon={<RhUiLaptopFillIcon />} variant="danger" title="Danger alert title" />
1616
</Fragment>
1717
);

packages/react-core/src/components/EmptyState/examples/EmptyState.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,56 @@ propComponents: ['EmptyState', 'EmptyStateBody', 'EmptyStateFooter', 'EmptyState
66
---
77

88
import { useState } from 'react';
9-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
109
import RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-search-icon';
10+
import RhUiCubesIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-cubes-icon';
11+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
1112

1213
## Examples
14+
1315
### Basic
1416

1517
```ts file="EmptyStateBasic.tsx"
18+
1619
```
1720

1821
### Extra small
1922

2023
```ts file="EmptyStateExtraSmall.tsx"
24+
2125
```
2226

2327
### Small
2428

2529
```ts file="EmptyStateSmall.tsx"
30+
2631
```
2732

2833
### Large
2934

3035
```ts file="EmptyStateLarge.tsx"
36+
3137
```
3238

3339
### Extra large
3440

3541
```ts file="EmptyStateExtraLarge.tsx"
42+
3643
```
3744

3845
### With status
46+
3947
```ts file="EmptyStateWithStatus.tsx"
48+
4049
```
4150

4251
### Spinner
4352

4453
```ts file="EmptyStateSpinner.tsx"
54+
4555
```
4656

4757
### No match found
4858

4959
```ts file="EmptyStateNoMatchFound.tsx"
60+
5061
```

packages/react-core/src/components/EmptyState/examples/EmptyStateBasic.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Button, EmptyState, EmptyStateBody, EmptyStateActions, EmptyStateFooter } from '@patternfly/react-core';
2-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
2+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
33

44
export const EmptyStateBasic: React.FunctionComponent = () => (
5-
<EmptyState titleText="Empty state" headingLevel="h4" icon={CubesIcon}>
5+
<EmptyState titleText="Empty state" headingLevel="h4" icon={RhUiModuleIcon}>
66
<EmptyStateBody>
77
This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to
88
meet a variety of needs.

packages/react-core/src/components/EmptyState/examples/EmptyStateExtraLarge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
EmptyStateActions,
77
EmptyStateFooter
88
} from '@patternfly/react-core';
9-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
9+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
1010

1111
export const EmptyStateExtraLarge: React.FunctionComponent = () => (
12-
<EmptyState variant={EmptyStateVariant.xl} titleText="Empty state" headingLevel="h4" icon={CubesIcon}>
12+
<EmptyState variant={EmptyStateVariant.xl} titleText="Empty state" headingLevel="h4" icon={RhUiModuleIcon}>
1313
<EmptyStateBody>
1414
This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to
1515
meet a variety of needs.

packages/react-core/src/components/EmptyState/examples/EmptyStateExtraSmall.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
EmptyStateActions,
77
EmptyStateFooter
88
} from '@patternfly/react-core';
9-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
9+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
1010

1111
export const EmptyStateExtraSmall: React.FunctionComponent = () => (
12-
<EmptyState variant={EmptyStateVariant.xs} titleText="Empty state" headingLevel="h4" icon={CubesIcon}>
12+
<EmptyState variant={EmptyStateVariant.xs} titleText="Empty state" headingLevel="h4" icon={RhUiModuleIcon}>
1313
<EmptyStateBody>This represents an the empty state pattern in PatternFly. The icon is optional.</EmptyStateBody>
1414
<EmptyStateFooter>
1515
<EmptyStateActions>

packages/react-core/src/components/EmptyState/examples/EmptyStateLarge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
EmptyStateActions,
77
EmptyStateFooter
88
} from '@patternfly/react-core';
9-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
9+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
1010

1111
export const EmptyStateLarge: React.FunctionComponent = () => (
12-
<EmptyState variant={EmptyStateVariant.lg} titleText="Empty state" headingLevel="h4" icon={CubesIcon}>
12+
<EmptyState variant={EmptyStateVariant.lg} titleText="Empty state" headingLevel="h4" icon={RhUiModuleIcon}>
1313
<EmptyStateBody>
1414
This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to
1515
meet a variety of needs.

packages/react-core/src/components/EmptyState/examples/EmptyStateSmall.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66
EmptyStateActions,
77
EmptyStateFooter
88
} from '@patternfly/react-core';
9-
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
9+
import RhUiModuleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-module-icon';
1010

1111
export const EmptyStateSmall: React.FunctionComponent = () => (
12-
<EmptyState variant={EmptyStateVariant.sm} titleText="Empty state" headingLevel="h4" icon={CubesIcon}>
12+
<EmptyState variant={EmptyStateVariant.sm} titleText="Empty state" headingLevel="h4" icon={RhUiModuleIcon}>
1313
<EmptyStateBody>
1414
This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to
1515
meet a variety of needs.

packages/react-core/src/components/List/examples/List.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,48 @@ propComponents: ['List', 'ListItem']
77

88
import RhUiLearnFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-learn-fill-icon';
99
import RhUiKeyIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-key-icon';
10-
import DesktopIcon from '@patternfly/react-icons/dist/esm/icons/desktop-icon';
10+
import RhUiDesktopIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-desktop-icon';
1111

1212
## Examples
13+
1314
### Basic
15+
1416
```ts file="./ListBasic.tsx"
17+
1518
```
1619

1720
### Inline
21+
1822
```ts file="./ListInline.tsx"
23+
1924
```
2025

2126
### Ordered
27+
2228
```ts file="./ListOrdered.tsx"
29+
2330
```
2431

2532
### Plain
33+
2634
```ts file="./ListPlain.tsx"
35+
2736
```
2837

2938
### With horizontal rules
39+
3040
```ts file="./ListHorizontalRules.tsx"
41+
3142
```
3243

3344
### With icons
45+
3446
```ts file="./ListIcons.tsx"
47+
3548
```
3649

3750
### With large icons
51+
3852
```ts file="./ListLargeIcons.tsx"
53+
3954
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { List, ListItem } from '@patternfly/react-core';
22
import RhUiLearnFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-learn-fill-icon';
33
import RhUiKeyIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-key-icon';
4-
import DesktopIcon from '@patternfly/react-icons/dist/esm/icons/desktop-icon';
4+
import RhUiDesktopIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-desktop-icon';
55

66
export const ListIcons: React.FunctionComponent = () => (
77
<List isPlain>
88
<ListItem icon={<RhUiLearnFillIcon />}>First</ListItem>
99
<ListItem icon={<RhUiKeyIcon />}>Second</ListItem>
10-
<ListItem icon={<DesktopIcon />}>Third</ListItem>
10+
<ListItem icon={<RhUiDesktopIcon />}>Third</ListItem>
1111
</List>
1212
);

0 commit comments

Comments
 (0)