@patternfly/react-core 5.0.0-alpha.61 → 5.0.0-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/src/components/Alert/examples/Alert.md +5 -5
- package/src/components/Breadcrumb/examples/BreadcrumbBasic.tsx +1 -1
- package/src/components/Button/examples/ButtonVariations.tsx +4 -4
- package/src/components/Card/examples/CardBasic.tsx +1 -1
- package/src/components/Dropdown/examples/DropdownBasic.tsx +1 -0
- package/src/components/FormSelect/examples/FormSelectBasic.tsx +1 -1
- package/src/components/Modal/examples/ModalBasic.tsx +2 -1
- package/src/components/Nav/examples/NavDefault.tsx +1 -1
- package/src/components/Pagination/examples/PaginationTop.tsx +1 -0
- package/src/components/Select/examples/Select.md +1 -0
- package/src/components/Switch/examples/SwitchBasic.tsx +1 -0
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorBasic.tsx +1 -0
- package/src/deprecated/components/OptionsMenu/examples/OptionsMenu.md +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.62](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.0.0-alpha.61...@patternfly/react-core@5.0.0-alpha.62) (2023-04-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
6
10
|
# [5.0.0-alpha.61](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@5.0.0-alpha.60...@patternfly/react-core@5.0.0-alpha.61) (2023-04-11)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.62",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"react": "^17 || ^18",
|
|
71
71
|
"react-dom": "^17 || ^18"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d92de5c78c49b2c1e5df50821a7fdb0870cea154"
|
|
74
74
|
}
|
|
@@ -32,11 +32,11 @@ import React from 'react';
|
|
|
32
32
|
import { Alert } from '@patternfly/react-core';
|
|
33
33
|
|
|
34
34
|
<React.Fragment>
|
|
35
|
-
<Alert title="Default alert title" />
|
|
36
|
-
<Alert variant="info" title="Info alert title" />
|
|
37
|
-
<Alert variant="success" title="Success alert title" />
|
|
38
|
-
<Alert variant="warning" title="Warning alert title" />
|
|
39
|
-
<Alert variant="danger" title="Danger alert title" />
|
|
35
|
+
<Alert title="Default alert title" ouiaId="DefaultAlert" />
|
|
36
|
+
<Alert variant="info" title="Info alert title" ouiaId="InfoAlert" />
|
|
37
|
+
<Alert variant="success" title="Success alert title" ouiaId="SuccessAlert" />
|
|
38
|
+
<Alert variant="warning" title="Warning alert title" ouiaId="WarningAlert" />
|
|
39
|
+
<Alert variant="danger" title="Danger alert title" ouiaId="DangerAlert" />
|
|
40
40
|
</React.Fragment>
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const BreadcrumbBasic: React.FunctionComponent = () => (
|
|
5
|
-
<Breadcrumb>
|
|
5
|
+
<Breadcrumb ouiaId="BasicBreadcrumb">
|
|
6
6
|
<BreadcrumbItem to="#">Section home</BreadcrumbItem>
|
|
7
7
|
<BreadcrumbItem to="#">Section title</BreadcrumbItem>
|
|
8
8
|
<BreadcrumbItem to="#">Section title</BreadcrumbItem>
|
|
@@ -7,12 +7,12 @@ import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
|
7
7
|
|
|
8
8
|
export const ButtonVariations: React.FunctionComponent = () => (
|
|
9
9
|
<React.Fragment>
|
|
10
|
-
<Button variant="primary">Primary</Button> <Button variant="secondary">Secondary</Button>{' '}
|
|
11
|
-
<Button variant="secondary" isDanger>
|
|
10
|
+
<Button variant="primary" ouiaId="Primary">Primary</Button> <Button variant="secondary" ouiaId="Secondary">Secondary</Button>{' '}
|
|
11
|
+
<Button variant="secondary" ouiaId="DangerSecondary" isDanger>
|
|
12
12
|
Danger Secondary
|
|
13
13
|
</Button>{' '}
|
|
14
|
-
<Button variant="tertiary">Tertiary</Button> <Button variant="danger">Danger</Button>{' '}
|
|
15
|
-
<Button variant="warning">Warning</Button>
|
|
14
|
+
<Button variant="tertiary" ouiaId="Tertiary">Tertiary</Button> <Button variant="danger" ouiaId="Danger">Danger</Button>{' '}
|
|
15
|
+
<Button variant="warning" ouiaId="Warning">Warning</Button>
|
|
16
16
|
<br />
|
|
17
17
|
<br />
|
|
18
18
|
<Button variant="link" icon={<PlusCircleIcon />}>
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Card, CardTitle, CardBody, CardFooter } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const CardBasic: React.FunctionComponent = () => (
|
|
5
|
-
<Card>
|
|
5
|
+
<Card ouiaId="BasicCard">
|
|
6
6
|
<CardTitle>Title</CardTitle>
|
|
7
7
|
<CardBody>Body</CardBody>
|
|
8
8
|
<CardFooter>Footer</CardFooter>
|
|
@@ -19,7 +19,7 @@ export const FormSelectBasic: React.FunctionComponent = () => {
|
|
|
19
19
|
];
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
|
-
<FormSelect value={formSelectValue} onChange={onChange} aria-label="FormSelect Input">
|
|
22
|
+
<FormSelect value={formSelectValue} onChange={onChange} aria-label="FormSelect Input" ouiaId="BasicFormSelect">
|
|
23
23
|
{options.map((option, index) => (
|
|
24
24
|
<FormSelectOption isDisabled={option.disabled} key={index} value={option.value} label={option.label} />
|
|
25
25
|
))}
|
|
@@ -10,7 +10,7 @@ export const ModalBasic: React.FunctionComponent = () => {
|
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
12
|
<React.Fragment>
|
|
13
|
-
<Button variant="primary" onClick={handleModalToggle}>
|
|
13
|
+
<Button variant="primary" onClick={handleModalToggle} ouiaId="ShowBasicModal">
|
|
14
14
|
Show basic modal
|
|
15
15
|
</Button>
|
|
16
16
|
<Modal
|
|
@@ -25,6 +25,7 @@ export const ModalBasic: React.FunctionComponent = () => {
|
|
|
25
25
|
Cancel
|
|
26
26
|
</Button>
|
|
27
27
|
]}
|
|
28
|
+
ouiaId="BasicModal"
|
|
28
29
|
>
|
|
29
30
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
30
31
|
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
@@ -9,7 +9,7 @@ export const NavDefault: React.FunctionComponent = () => {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<Nav onSelect={onSelect} aria-label="Default global">
|
|
12
|
+
<Nav onSelect={onSelect} aria-label="Default global" ouiaId="DefaultNav">
|
|
13
13
|
<NavList>
|
|
14
14
|
<NavItem preventDefault id="nav-default-link1" to="#nav-default-link1" itemId={0} isActive={activeItem === 0}>
|
|
15
15
|
Default Link 1
|
|
@@ -69,6 +69,7 @@ export const ContextSelectorBasic: React.FunctionComponent = () => {
|
|
|
69
69
|
onSelect={onSelect}
|
|
70
70
|
onSearchButtonClick={onSearchButtonClick}
|
|
71
71
|
screenReaderLabel="Selected Project:"
|
|
72
|
+
ouiaId="BasicContextSelector"
|
|
72
73
|
>
|
|
73
74
|
{filteredItems.map((item, index) => {
|
|
74
75
|
const [text = null, href = undefined, isDisabled] =
|