@patternfly/react-core 4.175.16 → 4.178.0
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 +52 -0
- package/dist/esm/components/Dropdown/DropdownToggle.d.ts +3 -1
- package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownToggle.js +4 -4
- package/dist/esm/components/Dropdown/DropdownToggle.js.map +1 -1
- package/dist/esm/components/Dropdown/Toggle.d.ts +3 -1
- package/dist/esm/components/Dropdown/Toggle.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Toggle.js +8 -3
- package/dist/esm/components/Dropdown/Toggle.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +2 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
- package/dist/esm/components/Popover/Popover.js +2 -22
- package/dist/esm/components/Popover/Popover.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts +2 -0
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +7 -9
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
- package/dist/esm/components/Slider/Slider.js +9 -6
- package/dist/esm/components/Slider/Slider.js.map +1 -1
- package/dist/js/components/Dropdown/DropdownToggle.d.ts +3 -1
- package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownToggle.js +4 -4
- package/dist/js/components/Dropdown/DropdownToggle.js.map +1 -1
- package/dist/js/components/Dropdown/Toggle.d.ts +3 -1
- package/dist/js/components/Dropdown/Toggle.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Toggle.js +8 -3
- package/dist/js/components/Dropdown/Toggle.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +2 -1
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/Popover/Popover.d.ts.map +1 -1
- package/dist/js/components/Popover/Popover.js +2 -22
- package/dist/js/components/Popover/Popover.js.map +1 -1
- package/dist/js/components/Select/Select.d.ts +2 -0
- package/dist/js/components/Select/Select.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js +7 -9
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Slider/Slider.d.ts.map +1 -1
- package/dist/js/components/Slider/Slider.js +9 -6
- package/dist/js/components/Slider/Slider.js.map +1 -1
- package/dist/umd/react-core.css +191 -191
- package/dist/umd/react-core.js +32 -45
- package/dist/umd/react-core.min.css +69 -69
- package/dist/umd/react-core.min.js +2 -2
- package/package.json +5 -5
- package/src/components/Alert/examples/Alert.md +201 -382
- package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +61 -0
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +61 -0
- package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +6 -0
- package/src/components/Dropdown/DropdownToggle.tsx +6 -1
- package/src/components/Dropdown/Toggle.tsx +11 -1
- package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +51 -0
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +8 -0
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +346 -4
- package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +1 -0
- package/src/components/Dropdown/examples/Dropdown.md +160 -91
- package/src/components/MenuToggle/MenuToggle.tsx +5 -2
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +5 -0
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +59 -0
- package/src/components/MenuToggle/examples/MenuToggle.md +60 -67
- package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +7 -0
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +15 -0
- package/src/components/Popover/Popover.tsx +1 -19
- package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -1
- package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +0 -4
- package/src/components/Select/Select.tsx +9 -1
- package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +25 -0
- package/src/components/Select/examples/Select.md +75 -9
- package/src/components/Slider/Slider.tsx +9 -6
- package/src/components/Slider/examples/Slider.md +27 -0
- package/src/demos/CardDemos.md +65 -91
- package/src/demos/Tabs/NestedTabsDemo.js +151 -0
- package/src/demos/Tabs.md +4 -0
|
@@ -29,6 +29,7 @@ class DiscreteInput extends React.Component {
|
|
|
29
29
|
value3: 25,
|
|
30
30
|
value4: 50,
|
|
31
31
|
value5: 50,
|
|
32
|
+
value6: 3
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
this.steps = [
|
|
@@ -43,6 +44,15 @@ class DiscreteInput extends React.Component {
|
|
|
43
44
|
{ value: 100, label: '8' }
|
|
44
45
|
];
|
|
45
46
|
|
|
47
|
+
this.stepsDiscreteWithMax = [
|
|
48
|
+
{ value: 0, label: "A" },
|
|
49
|
+
{ value: 1, label: "B" },
|
|
50
|
+
{ value: 2, label: "C" },
|
|
51
|
+
{ value: 3, label: "D" },
|
|
52
|
+
{ value: 4, label: "E" },
|
|
53
|
+
{ value: 5, label: "F" }
|
|
54
|
+
];
|
|
55
|
+
|
|
46
56
|
this.onChange = value => {
|
|
47
57
|
this.setState({
|
|
48
58
|
value1: value
|
|
@@ -72,6 +82,12 @@ class DiscreteInput extends React.Component {
|
|
|
72
82
|
value5: value
|
|
73
83
|
});
|
|
74
84
|
};
|
|
85
|
+
|
|
86
|
+
this.onChange6 = value => {
|
|
87
|
+
this.setState({
|
|
88
|
+
value6: value
|
|
89
|
+
});
|
|
90
|
+
};
|
|
75
91
|
}
|
|
76
92
|
|
|
77
93
|
render() {
|
|
@@ -97,6 +113,17 @@ class DiscreteInput extends React.Component {
|
|
|
97
113
|
<Text component={TextVariants.h3}>Slider value is: {Math.floor(this.state.value5)}</Text>
|
|
98
114
|
<Text component={TextVariants.small}>(min = -25, max = 75, step = 10, boundaries shown, ticks not shown) </Text>
|
|
99
115
|
<Slider value={this.state.value5} onChange={this.onChange5} min={-25} max={75} step={10} />
|
|
116
|
+
<br />
|
|
117
|
+
<Text component={TextVariants.h3}>Slider value is: {Math.floor(this.state.value6)}</Text>
|
|
118
|
+
<Text component={TextVariants.small}>(max = 5, custom steps) </Text>
|
|
119
|
+
<Slider
|
|
120
|
+
value={this.state.value6}
|
|
121
|
+
showTicks
|
|
122
|
+
max={5}
|
|
123
|
+
customSteps={this.stepsDiscreteWithMax}
|
|
124
|
+
onChange={this.onChange6}
|
|
125
|
+
/>
|
|
126
|
+
<br />
|
|
100
127
|
</>
|
|
101
128
|
);
|
|
102
129
|
}
|
package/src/demos/CardDemos.md
CHANGED
|
@@ -1233,10 +1233,8 @@ import {
|
|
|
1233
1233
|
Stack,
|
|
1234
1234
|
StackItem,
|
|
1235
1235
|
Divider,
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
DropdownToggle,
|
|
1239
|
-
DropdownSeparator
|
|
1236
|
+
Select,
|
|
1237
|
+
SelectOption
|
|
1240
1238
|
} from '@patternfly/react-core';
|
|
1241
1239
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
1242
1240
|
import { Chart, ChartStack, ChartBar, ChartTooltip } from '@patternfly/react-charts';
|
|
@@ -1248,16 +1246,11 @@ import chart_color_red_100 from '@patternfly/react-tokens/dist/esm/chart_color_r
|
|
|
1248
1246
|
const UtilizationCard3: React.FunctionComponent = () => {
|
|
1249
1247
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
1250
1248
|
|
|
1251
|
-
const
|
|
1252
|
-
<
|
|
1253
|
-
<
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
<DropdownItem key="disabled link" isDisabled href="www.google.com">
|
|
1257
|
-
Disabled link
|
|
1258
|
-
</DropdownItem>,
|
|
1259
|
-
<DropdownSeparator key="separator" />,
|
|
1260
|
-
<DropdownItem key="separated link">Separated link</DropdownItem>
|
|
1249
|
+
const selectItems = [
|
|
1250
|
+
<SelectOption value="Last hour" key="option1" />,
|
|
1251
|
+
<SelectOption value="Last 6 hours" key="option2" />,
|
|
1252
|
+
<SelectOption value="Last 24 hours" key="option3" />,
|
|
1253
|
+
<SelectOption value="Last 7 days" key="option4" />
|
|
1261
1254
|
];
|
|
1262
1255
|
|
|
1263
1256
|
return (
|
|
@@ -1271,13 +1264,16 @@ const UtilizationCard3: React.FunctionComponent = () => {
|
|
|
1271
1264
|
</Title>
|
|
1272
1265
|
</CardTitle>
|
|
1273
1266
|
<CardActions>
|
|
1274
|
-
<
|
|
1267
|
+
<Select
|
|
1275
1268
|
onSelect={() => setIsOpen(!isOpen)}
|
|
1276
|
-
|
|
1269
|
+
onToggle={() => setIsOpen(!isOpen)}
|
|
1277
1270
|
isOpen={isOpen}
|
|
1278
|
-
|
|
1271
|
+
placeholderText="Filter"
|
|
1279
1272
|
position="right"
|
|
1280
|
-
|
|
1273
|
+
isPlain
|
|
1274
|
+
>
|
|
1275
|
+
{selectItems}
|
|
1276
|
+
</Select>
|
|
1281
1277
|
</CardActions>
|
|
1282
1278
|
</CardHeader>
|
|
1283
1279
|
<CardBody>
|
|
@@ -2427,26 +2423,20 @@ import {
|
|
|
2427
2423
|
GalleryItem,
|
|
2428
2424
|
Flex,
|
|
2429
2425
|
FlexItem,
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
DropdownToggle
|
|
2426
|
+
Divider,
|
|
2427
|
+
Select,
|
|
2428
|
+
SelectOption
|
|
2434
2429
|
} from '@patternfly/react-core';
|
|
2435
2430
|
import { ChartArea, ChartContainer, ChartGroup, ChartLabel, ChartVoronoiContainer } from '@patternfly/react-charts';
|
|
2436
2431
|
|
|
2437
2432
|
const TrendCard1: React.FunctionComponent = () => {
|
|
2438
2433
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
2439
2434
|
|
|
2440
|
-
const
|
|
2441
|
-
<
|
|
2442
|
-
<
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
<DropdownItem key="disabled link" isDisabled href="www.google.com">
|
|
2446
|
-
Disabled link
|
|
2447
|
-
</DropdownItem>,
|
|
2448
|
-
<DropdownSeparator key="separator" />,
|
|
2449
|
-
<DropdownItem key="separated link">Separated link</DropdownItem>
|
|
2435
|
+
const selectItems = [
|
|
2436
|
+
<SelectOption value="Last hour" key="option1" />,
|
|
2437
|
+
<SelectOption value="Last 6 hours" key="option2" />,
|
|
2438
|
+
<SelectOption value="Last 24 hours" key="option3" />,
|
|
2439
|
+
<SelectOption value="Last 7 days" key="option4" />
|
|
2450
2440
|
];
|
|
2451
2441
|
return (
|
|
2452
2442
|
<Gallery hasGutter minWidths={{ default: '360px' }}>
|
|
@@ -2464,13 +2454,16 @@ const TrendCard1: React.FunctionComponent = () => {
|
|
|
2464
2454
|
</FlexItem>
|
|
2465
2455
|
</Flex>
|
|
2466
2456
|
<CardActions>
|
|
2467
|
-
<
|
|
2457
|
+
<Select
|
|
2468
2458
|
onSelect={() => setIsOpen(!isOpen)}
|
|
2469
|
-
|
|
2459
|
+
onToggle={() => setIsOpen(!isOpen)}
|
|
2460
|
+
placeholderText="Filter"
|
|
2470
2461
|
isOpen={isOpen}
|
|
2471
|
-
dropdownItems={dropdownItems}
|
|
2472
2462
|
position="right"
|
|
2473
|
-
|
|
2463
|
+
isPlain
|
|
2464
|
+
>
|
|
2465
|
+
{selectItems}
|
|
2466
|
+
</Select>
|
|
2474
2467
|
</CardActions>
|
|
2475
2468
|
</CardHeader>
|
|
2476
2469
|
<CardBody>
|
|
@@ -2600,39 +2593,27 @@ import {
|
|
|
2600
2593
|
DescriptionListGroup,
|
|
2601
2594
|
DescriptionListTerm,
|
|
2602
2595
|
DescriptionListDescription,
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
DropdownToggle,
|
|
2596
|
+
Select,
|
|
2597
|
+
SelectOption,
|
|
2606
2598
|
Divider
|
|
2607
2599
|
} from '@patternfly/react-core';
|
|
2608
2600
|
|
|
2609
2601
|
CardLogViewDemo = () => {
|
|
2610
|
-
const [
|
|
2602
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
2611
2603
|
|
|
2612
2604
|
const onActionSelect = event => {
|
|
2613
|
-
|
|
2605
|
+
setIsOpen(!isOpen);
|
|
2614
2606
|
};
|
|
2615
2607
|
|
|
2616
2608
|
const onActionToggle = isOpen => {
|
|
2617
|
-
|
|
2609
|
+
setIsOpen(isOpen);
|
|
2618
2610
|
};
|
|
2619
2611
|
|
|
2620
|
-
const
|
|
2621
|
-
<
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
<
|
|
2625
|
-
Action
|
|
2626
|
-
</DropdownItem>,
|
|
2627
|
-
<DropdownItem key="disabled action3" isDisabled component="a">
|
|
2628
|
-
Disabled link
|
|
2629
|
-
</DropdownItem>,
|
|
2630
|
-
<DropdownItem key="action4" component="button">
|
|
2631
|
-
Disabled action
|
|
2632
|
-
</DropdownItem>,
|
|
2633
|
-
<DropdownItem key="action5" component="a">
|
|
2634
|
-
Separated link
|
|
2635
|
-
</DropdownItem>
|
|
2612
|
+
const selectItems = [
|
|
2613
|
+
<SelectOption value="Most recent" key="option1" />,
|
|
2614
|
+
<SelectOption value="Last 6 hours" key="option2" />,
|
|
2615
|
+
<SelectOption value="Last 24 hours" key="option3" />,
|
|
2616
|
+
<SelectOption value="Last 7 days" key="option4" />
|
|
2636
2617
|
];
|
|
2637
2618
|
|
|
2638
2619
|
return (
|
|
@@ -2640,13 +2621,16 @@ CardLogViewDemo = () => {
|
|
|
2640
2621
|
<Card id="card-log-view-example">
|
|
2641
2622
|
<CardHeader>
|
|
2642
2623
|
<CardActions>
|
|
2643
|
-
<
|
|
2624
|
+
<Select
|
|
2644
2625
|
onSelect={onActionSelect}
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2626
|
+
onToggle={onActionToggle}
|
|
2627
|
+
placeholderText="Most recent"
|
|
2628
|
+
isOpen={isOpen}
|
|
2648
2629
|
position="right"
|
|
2649
|
-
|
|
2630
|
+
isPlain
|
|
2631
|
+
>
|
|
2632
|
+
{selectItems}
|
|
2633
|
+
</Select>
|
|
2650
2634
|
</CardActions>
|
|
2651
2635
|
<CardTitle>
|
|
2652
2636
|
<Title headingLevel="h2" size="xl">
|
|
@@ -2721,41 +2705,28 @@ import {
|
|
|
2721
2705
|
DescriptionListTerm,
|
|
2722
2706
|
DescriptionListDescription,
|
|
2723
2707
|
Spinner,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
DropdownToggle,
|
|
2708
|
+
Select,
|
|
2709
|
+
SelectOption,
|
|
2727
2710
|
Divider
|
|
2728
2711
|
} from '@patternfly/react-core';
|
|
2729
2712
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
2730
2713
|
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
|
|
2731
2714
|
|
|
2732
2715
|
CardEventViewDemo = () => {
|
|
2733
|
-
const [
|
|
2716
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
2734
2717
|
|
|
2735
2718
|
const onActionSelect = event => {
|
|
2736
|
-
|
|
2719
|
+
setIsOpen(!isOpen);
|
|
2737
2720
|
};
|
|
2738
2721
|
|
|
2739
2722
|
const onActionToggle = isOpen => {
|
|
2740
|
-
|
|
2723
|
+
setIsOpen(isOpen);
|
|
2741
2724
|
};
|
|
2742
|
-
|
|
2743
|
-
const
|
|
2744
|
-
<
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
<DropdownItem key="action2" component="button">
|
|
2748
|
-
Action
|
|
2749
|
-
</DropdownItem>,
|
|
2750
|
-
<DropdownItem key="disabled action3" isDisabled component="a">
|
|
2751
|
-
Disabled link
|
|
2752
|
-
</DropdownItem>,
|
|
2753
|
-
<DropdownItem key="disabled action4" isDisabled component="button">
|
|
2754
|
-
Disabled action
|
|
2755
|
-
</DropdownItem>,
|
|
2756
|
-
<DropdownItem key="action5" component="a">
|
|
2757
|
-
Separated link
|
|
2758
|
-
</DropdownItem>
|
|
2725
|
+
|
|
2726
|
+
const selectItems = [
|
|
2727
|
+
<SelectOption value="Success" key="option1" />,
|
|
2728
|
+
<SelectOption value="Error" key="option2" />,
|
|
2729
|
+
<SelectOption value="Warning" key="option3" />
|
|
2759
2730
|
];
|
|
2760
2731
|
|
|
2761
2732
|
return (
|
|
@@ -2763,13 +2734,16 @@ CardEventViewDemo = () => {
|
|
|
2763
2734
|
<Card id="card-events-view-example">
|
|
2764
2735
|
<CardHeader>
|
|
2765
2736
|
<CardActions>
|
|
2766
|
-
<
|
|
2737
|
+
<Select
|
|
2767
2738
|
onSelect={onActionSelect}
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2739
|
+
onToggle={onActionToggle}
|
|
2740
|
+
placeholderText="Status"
|
|
2741
|
+
isOpen={isOpen}
|
|
2771
2742
|
position="right"
|
|
2772
|
-
|
|
2743
|
+
isPlain
|
|
2744
|
+
>
|
|
2745
|
+
{selectItems}
|
|
2746
|
+
</Select>
|
|
2773
2747
|
</CardActions>
|
|
2774
2748
|
<CardTitle>
|
|
2775
2749
|
<Title headingLevel="h2" size="xl">
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardHeader,
|
|
5
|
+
CardBody,
|
|
6
|
+
Grid,
|
|
7
|
+
GridItem,
|
|
8
|
+
PageSection,
|
|
9
|
+
PageSectionVariants,
|
|
10
|
+
Tabs,
|
|
11
|
+
Tab,
|
|
12
|
+
TabContent,
|
|
13
|
+
TabContentBody,
|
|
14
|
+
TabTitleText,
|
|
15
|
+
Title,
|
|
16
|
+
Flex,
|
|
17
|
+
FlexItem
|
|
18
|
+
} from '@patternfly/react-core';
|
|
19
|
+
import DashboardWrapper from '../examples/DashboardWrapper';
|
|
20
|
+
|
|
21
|
+
export const NestedTabsDemo = () => {
|
|
22
|
+
const [activeTabKey, setActiveTabKey] = React.useState(0);
|
|
23
|
+
const [activeNestedTabKey, setActiveNestedTabKey] = React.useState(10);
|
|
24
|
+
|
|
25
|
+
// Toggle currently active tab
|
|
26
|
+
const handleTabClick = (_, tabIndex) => setActiveTabKey(tabIndex);
|
|
27
|
+
|
|
28
|
+
// Toggle currently active nested tab
|
|
29
|
+
const handleNestedTabClick = (_, tabIndex) => setActiveNestedTabKey(tabIndex);
|
|
30
|
+
|
|
31
|
+
const tabContent = (
|
|
32
|
+
<Grid hasGutter>
|
|
33
|
+
<GridItem xl={8} md={6}>
|
|
34
|
+
<Card>
|
|
35
|
+
<CardHeader>
|
|
36
|
+
<Title headingLevel="h2">Status</Title>
|
|
37
|
+
</CardHeader>
|
|
38
|
+
<CardBody>
|
|
39
|
+
<Flex direction={{ default: 'column' }}>
|
|
40
|
+
<FlexItem>
|
|
41
|
+
<Tabs
|
|
42
|
+
activeKey={activeNestedTabKey}
|
|
43
|
+
isSecondary
|
|
44
|
+
onSelect={handleNestedTabClick}
|
|
45
|
+
id="nested-tabs-example-tabs-list"
|
|
46
|
+
>
|
|
47
|
+
<Tab eventKey={10} title={<TabTitleText>Cluster</TabTitleText>} tabContentId={`tabContent${10}`} />
|
|
48
|
+
<Tab
|
|
49
|
+
eventKey={11}
|
|
50
|
+
title={<TabTitleText>Control plane</TabTitleText>}
|
|
51
|
+
tabContentId={`tabContent${11}`}
|
|
52
|
+
/>
|
|
53
|
+
<Tab eventKey={12} title={<TabTitleText>Operators</TabTitleText>} tabContentId={`tabContent${12}`} />
|
|
54
|
+
<Tab
|
|
55
|
+
eventKey={13}
|
|
56
|
+
title={<TabTitleText>Virtualization</TabTitleText>}
|
|
57
|
+
tabContentId={`tabContent${13}`}
|
|
58
|
+
/>
|
|
59
|
+
</Tabs>
|
|
60
|
+
</FlexItem>
|
|
61
|
+
<FlexItem>
|
|
62
|
+
<TabContent
|
|
63
|
+
key={10}
|
|
64
|
+
eventKey={10}
|
|
65
|
+
id={`tabContent${10}`}
|
|
66
|
+
activeKey={activeNestedTabKey}
|
|
67
|
+
hidden={10 !== activeNestedTabKey}
|
|
68
|
+
>
|
|
69
|
+
<TabContentBody>
|
|
70
|
+
{
|
|
71
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce in odio porttitor, feugiat risus in, feugiat arcu. Nullam euismod enim eget fringilla condimentum. Maecenas tincidunt et metus id aliquet. Integer et fermentum purus. Nulla tempor velit arcu, vitae semper purus iaculis at. Sed malesuada auctor luctus. Pellentesque et leo urna. Aliquam vitae felis congue lacus mattis fringilla. Nullam et ultricies erat, sed dignissim elit. Cras mattis pulvinar aliquam. In ac est nulla. Pellentesque fermentum nibh ac sapien porta, ut congue orci aliquam. Sed nisl est, tempor eu pharetra eget, ullamcorper ut augue. Vestibulum eleifend libero eu nulla cursus lacinia.'
|
|
72
|
+
}
|
|
73
|
+
</TabContentBody>
|
|
74
|
+
</TabContent>
|
|
75
|
+
<TabContent
|
|
76
|
+
key={11}
|
|
77
|
+
eventKey={11}
|
|
78
|
+
id={`tabContent${11}`}
|
|
79
|
+
activeKey={activeNestedTabKey}
|
|
80
|
+
hidden={11 !== activeNestedTabKey}
|
|
81
|
+
>
|
|
82
|
+
<TabContentBody>Control plane panel</TabContentBody>
|
|
83
|
+
</TabContent>
|
|
84
|
+
<TabContent
|
|
85
|
+
key={12}
|
|
86
|
+
eventKey={12}
|
|
87
|
+
id={`tabContent${12}`}
|
|
88
|
+
activeKey={activeNestedTabKey}
|
|
89
|
+
hidden={12 !== activeNestedTabKey}
|
|
90
|
+
>
|
|
91
|
+
<TabContentBody>Operators panel</TabContentBody>
|
|
92
|
+
</TabContent>
|
|
93
|
+
<TabContent
|
|
94
|
+
key={13}
|
|
95
|
+
eventKey={13}
|
|
96
|
+
id={`tabContent${13}`}
|
|
97
|
+
activeKey={activeNestedTabKey}
|
|
98
|
+
hidden={13 !== activeNestedTabKey}
|
|
99
|
+
>
|
|
100
|
+
<TabContentBody>Virtualization panel</TabContentBody>
|
|
101
|
+
</TabContent>
|
|
102
|
+
</FlexItem>
|
|
103
|
+
</Flex>
|
|
104
|
+
</CardBody>
|
|
105
|
+
</Card>
|
|
106
|
+
</GridItem>
|
|
107
|
+
<GridItem xl={4} md={6}>
|
|
108
|
+
<Flex direction={{ default: 'column' }} className="pf-u-h-100">
|
|
109
|
+
<FlexItem flex={{ default: 'flex_1' }}>
|
|
110
|
+
<Card isFullHeight>
|
|
111
|
+
<CardHeader>
|
|
112
|
+
<Title headingLevel="h3">Title of Card</Title>
|
|
113
|
+
</CardHeader>
|
|
114
|
+
</Card>
|
|
115
|
+
</FlexItem>
|
|
116
|
+
<FlexItem flex={{ default: 'flex_1' }}>
|
|
117
|
+
<Card isFullHeight>
|
|
118
|
+
<CardHeader>
|
|
119
|
+
<Title headingLevel="h3">Title of Card</Title>
|
|
120
|
+
</CardHeader>
|
|
121
|
+
</Card>
|
|
122
|
+
</FlexItem>
|
|
123
|
+
</Flex>
|
|
124
|
+
</GridItem>
|
|
125
|
+
</Grid>
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
return (
|
|
129
|
+
<DashboardWrapper hasNoBreadcrumb>
|
|
130
|
+
<PageSection isWidthLimited variant={PageSectionVariants.light}>
|
|
131
|
+
<Title headingLevel="h1" size="2xl">
|
|
132
|
+
Overview
|
|
133
|
+
</Title>
|
|
134
|
+
</PageSection>
|
|
135
|
+
<PageSection type="tabs" variant={PageSectionVariants.light} isWidthLimited>
|
|
136
|
+
<Tabs activeKey={activeTabKey} onSelect={handleTabClick} usePageInsets id="nested-tabs-example-tabs-list">
|
|
137
|
+
<Tab eventKey={0} title={<TabTitleText>Cluster 1</TabTitleText>} tabContentId={`tabContent${0}`} />
|
|
138
|
+
<Tab eventKey={1} title={<TabTitleText>Cluster 2</TabTitleText>} tabContentId={`tabContent${1}`} />
|
|
139
|
+
</Tabs>
|
|
140
|
+
</PageSection>
|
|
141
|
+
<PageSection isWidthLimited>
|
|
142
|
+
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
143
|
+
<TabContentBody>{tabContent}</TabContentBody>
|
|
144
|
+
</TabContent>
|
|
145
|
+
<TabContent key={1} eventKey={1} id={`tabContent${1}`} activeKey={activeTabKey} hidden={1 !== activeTabKey}>
|
|
146
|
+
<TabContentBody>Cluster 2 panel</TabContentBody>
|
|
147
|
+
</TabContent>
|
|
148
|
+
</PageSection>
|
|
149
|
+
</DashboardWrapper>
|
|
150
|
+
);
|
|
151
|
+
};
|