@patternfly/react-core 6.4.1-prerelease.6 → 6.4.1-prerelease.8
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 +8 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/umd/assets/{output-CqPZOHvC.css → output-CyRsIwqr.css} +18134 -18134
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/BackToTop.md +1 -1
- package/src/demos/Button/Button.md +19 -0
- package/src/demos/{Button.md → Button/examples/ButtonProgress.tsx} +1 -19
- package/src/demos/CardView/CardView.md +1 -1
- package/src/demos/DataListDemo.md +4 -4
- package/src/demos/DescriptionList/DescriptionList.md +2 -2
- package/src/demos/Nav.md +9 -9
- package/src/demos/PasswordGenerator/PasswordGenerator.md +16 -0
- package/src/demos/{PasswordGenerator.md → PasswordGenerator/examples/PasswordGenerator.tsx} +3 -19
- package/src/demos/PrimaryDetail.md +6 -6
- package/src/demos/RTL/RTL.md +1 -1
- package/src/demos/Toolbar.md +1 -1
- package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -1
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.4.1-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.4.1-prerelease.7","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.4.1-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.4.1-prerelease.7","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.4.1-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.4.1-prerelease.7","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.4.1-prerelease.
|
|
3
|
+
"version": "6.4.1-prerelease.8",
|
|
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",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"react": "^17 || ^18 || ^19",
|
|
64
64
|
"react-dom": "^17 || ^18 || ^19"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "7d045b83d744f3b585b1a21216df2d1f5c63e16e"
|
|
67
67
|
}
|
package/src/demos/AlertGroup.md
CHANGED
|
@@ -15,6 +15,6 @@ This demonstrates how you can assemble a full page view including the use of ale
|
|
|
15
15
|
|
|
16
16
|
### Alert group toast with notification drawer
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```ts file="examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx" isFullscreen
|
|
19
19
|
|
|
20
20
|
```
|
package/src/demos/BackToTop.md
CHANGED
|
@@ -11,5 +11,5 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
11
11
|
|
|
12
12
|
Note that `tabIndex={0}` is added to the scrolling `PageSection` of the page to allow keyboard users the ability to focus and scroll.
|
|
13
13
|
|
|
14
|
-
```
|
|
14
|
+
```ts file="examples/BackToTop/BackToTopNameDemo.tsx" isFullscreen
|
|
15
15
|
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: Button
|
|
3
|
+
section: components
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
8
|
+
|
|
9
|
+
## Demos
|
|
10
|
+
|
|
11
|
+
### Progress button
|
|
12
|
+
|
|
13
|
+
The following demo shows the intended flow for a button that visually indicates progress. This example demonstrates a login process, which updates the button label based on the `loginState`.
|
|
14
|
+
|
|
15
|
+
Please note that only the button can be interacted with in this example. The username and password input fields cannot be edited as the focus is on the button behavior.
|
|
16
|
+
|
|
17
|
+
```ts file="./examples/ButtonProgress.tsx"
|
|
18
|
+
|
|
19
|
+
```
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Button
|
|
3
|
-
section: components
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
8
|
-
|
|
9
|
-
## Demos
|
|
10
|
-
|
|
11
|
-
### Progress button
|
|
12
|
-
|
|
13
|
-
The following demo shows the intended flow for a button that visually indicates progress. This example demonstrates a login process, which updates the button label based on the `loginState`.
|
|
14
|
-
|
|
15
|
-
Please note that only the button can be interacted with in this example. The username and password input fields cannot be edited as the focus is on the button behavior.
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
1
|
import { useState } from 'react';
|
|
19
2
|
import { Form, FormGroup, ActionGroup, TextInput, Button } from '@patternfly/react-core';
|
|
20
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
21
4
|
|
|
22
|
-
const
|
|
5
|
+
export const ButtonProgress: React.FunctionComponent = () => {
|
|
23
6
|
const [loginState, setLoginState] = useState<'notLoggedIn' | 'loading' | 'loggedIn'>('notLoggedIn');
|
|
24
7
|
|
|
25
8
|
return (
|
|
@@ -69,4 +52,3 @@ const ProgressButton: React.FunctionComponent = () => {
|
|
|
69
52
|
</Form>
|
|
70
53
|
);
|
|
71
54
|
};
|
|
72
|
-
```
|
|
@@ -23,24 +23,24 @@ import { rows } from '@patternfly/react-core/dist/esm/demos/sampleData';
|
|
|
23
23
|
|
|
24
24
|
### Basic
|
|
25
25
|
|
|
26
|
-
```
|
|
26
|
+
```ts file="DataList/examples/DataListBasic.tsx" isFullscreen
|
|
27
27
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### Expandable control in toolbar
|
|
31
31
|
|
|
32
|
-
```
|
|
32
|
+
```ts file="DataList/examples/DataListExpandableControlInToolbar.tsx" isFullscreen
|
|
33
33
|
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### Actionable
|
|
37
37
|
|
|
38
|
-
```
|
|
38
|
+
```ts file="DataList/examples/DataListActionable.tsx" isFullscreen
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Static bottom pagination
|
|
43
43
|
|
|
44
|
-
```
|
|
44
|
+
```ts file="DataList/examples/DataListStaticBottomPagination.tsx" isFullscreen
|
|
45
45
|
|
|
46
46
|
```
|
|
@@ -12,10 +12,10 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
12
12
|
|
|
13
13
|
### Basic
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```ts file="examples/DescriptionListBasic.tsx" isFullscreen
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
### In drawer
|
|
19
19
|
|
|
20
|
-
```
|
|
20
|
+
```ts file="examples/DescriptionListInDrawer.tsx" isFullscreen
|
|
21
21
|
```
|
package/src/demos/Nav.md
CHANGED
|
@@ -19,45 +19,45 @@ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardH
|
|
|
19
19
|
|
|
20
20
|
### Default nav
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```ts file="./examples/Nav/NavDefault.tsx" isFullscreen
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Grouped nav
|
|
26
26
|
|
|
27
|
-
```
|
|
27
|
+
```ts file="./examples/Nav/NavGrouped.tsx" isFullscreen
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### Expandable nav
|
|
31
31
|
|
|
32
|
-
```
|
|
32
|
+
```ts file="./examples/Nav/NavExpandable.tsx" isFullscreen
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Horizontal nav
|
|
36
36
|
|
|
37
|
-
```
|
|
37
|
+
```ts file="./examples/Nav/NavHorizontal.tsx" isFullscreen
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Horizontal subnav
|
|
41
41
|
|
|
42
|
-
```
|
|
42
|
+
```ts file="./examples/Nav/NavWithSubnav.tsx" isFullscreen
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Horizontal nav with horizontal subnav
|
|
46
46
|
|
|
47
|
-
```
|
|
47
|
+
```ts file="./examples/Nav/NavHorizontalWithSubnav.tsx" isFullscreen
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Manual nav
|
|
51
51
|
|
|
52
|
-
```
|
|
52
|
+
```ts file="./examples/Nav/NavManual.tsx" isFullscreen
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### Flyout nav
|
|
56
56
|
|
|
57
|
-
```
|
|
57
|
+
```ts file="./examples/Nav/NavFlyout.tsx" isFullscreen
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
### Drilldown nav
|
|
61
61
|
|
|
62
|
-
```
|
|
62
|
+
```ts isFullscreen file="./examples/Nav/NavDrilldown.tsx"
|
|
63
63
|
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: Password generator
|
|
3
|
+
section: patterns
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { useEffect, useRef, useState } from 'react';
|
|
7
|
+
import RedoIcon from '@patternfly/react-icons/dist/esm/icons/redo-icon';
|
|
8
|
+
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
|
|
9
|
+
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
|
|
10
|
+
|
|
11
|
+
## Demos
|
|
12
|
+
|
|
13
|
+
### Provide a generated password
|
|
14
|
+
|
|
15
|
+
```ts file="./examples/PasswordGenerator.tsx"
|
|
16
|
+
```
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Password generator
|
|
3
|
-
section: patterns
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { useEffect, useRef, useState } from 'react';
|
|
7
|
-
import RedoIcon from '@patternfly/react-icons/dist/esm/icons/redo-icon';
|
|
8
|
-
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
|
|
9
|
-
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
|
|
10
|
-
|
|
11
|
-
## Demos
|
|
12
|
-
|
|
13
|
-
### Provide a generated password
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
1
|
import { useEffect, useRef, useState } from 'react';
|
|
17
2
|
import {
|
|
18
3
|
InputGroup,
|
|
@@ -30,12 +15,12 @@ import RedoIcon from '@patternfly/react-icons/dist/esm/icons/redo-icon';
|
|
|
30
15
|
import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon';
|
|
31
16
|
import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon';
|
|
32
17
|
|
|
33
|
-
const PasswordGenerator: React.FunctionComponent = () => {
|
|
18
|
+
export const PasswordGenerator: React.FunctionComponent = () => {
|
|
34
19
|
const generatePassword = () => {
|
|
35
20
|
const length = 12;
|
|
36
21
|
const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@%()_-=+';
|
|
37
22
|
let retVal = '';
|
|
38
|
-
for (
|
|
23
|
+
for (let i = 0, n = charset.length; i < length; ++i) {
|
|
39
24
|
retVal += charset.charAt(Math.floor(Math.random() * n));
|
|
40
25
|
}
|
|
41
26
|
return retVal;
|
|
@@ -153,7 +138,7 @@ const PasswordGenerator: React.FunctionComponent = () => {
|
|
|
153
138
|
actions={
|
|
154
139
|
<MenuItemAction
|
|
155
140
|
icon={<RedoIcon />}
|
|
156
|
-
onClick={(
|
|
141
|
+
onClick={(_e) => {
|
|
157
142
|
setGeneratedPassword(generatePassword());
|
|
158
143
|
}}
|
|
159
144
|
actionId="redo"
|
|
@@ -181,4 +166,3 @@ const PasswordGenerator: React.FunctionComponent = () => {
|
|
|
181
166
|
/>
|
|
182
167
|
);
|
|
183
168
|
};
|
|
184
|
-
```
|
|
@@ -31,32 +31,32 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
31
31
|
|
|
32
32
|
### Primary-detail full page
|
|
33
33
|
|
|
34
|
-
```
|
|
34
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailFullPage.tsx" isFullscreen
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Primary-detail content padding
|
|
38
38
|
|
|
39
|
-
```
|
|
39
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailContentPadding.tsx" isFullscreen
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Primary-detail card view
|
|
44
44
|
|
|
45
|
-
```
|
|
45
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailCardView.tsx" isFullscreen
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
### Primary-detail simple list in card
|
|
49
49
|
|
|
50
|
-
```
|
|
50
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx" isFullscreen
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### Primary-detail data list in card
|
|
54
54
|
|
|
55
|
-
```
|
|
55
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx" isFullscreen
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
### Primary-detail inline modifier
|
|
59
59
|
|
|
60
|
-
```
|
|
60
|
+
```ts file="examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx" isFullscreen
|
|
61
61
|
|
|
62
62
|
```
|
package/src/demos/RTL/RTL.md
CHANGED
package/src/demos/Toolbar.md
CHANGED
|
@@ -20,5 +20,5 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
|
|
|
20
20
|
|
|
21
21
|
This is an example of toolbar usage in log viewer.
|
|
22
22
|
|
|
23
|
-
```
|
|
23
|
+
```ts file="examples/Toolbar/ConsoleLogViewerToolbar.tsx" isFullscreen
|
|
24
24
|
```
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import { BackToTop, Card, CardBody, Content, Gallery, GalleryItem, PageSection, Switch } from '@patternfly/react-core';
|
|
3
3
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
4
4
|
|
|
5
|
-
export const
|
|
5
|
+
export const BacktoTopNameDemo: React.FunctionComponent = () => {
|
|
6
6
|
const [isAlwaysVisible, setIsAlwaysVisible] = useState(false);
|
|
7
7
|
|
|
8
8
|
const handleChange = (_event, isChecked) => {
|