@patternfly/react-core 4.194.1 → 4.194.2
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/dist/umd/react-core.css +63 -63
- package/package.json +5 -5
- package/src/demos/CardDemos.md +349 -333
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## 4.194.2 (2022-02-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## 4.194.1 (2022-02-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/react-core
|
package/dist/umd/react-core.css
CHANGED
|
@@ -20717,6 +20717,69 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
20717
20717
|
--pf-c-tree-view--m-compact--m-no-background--border--nested--Left: calc(var(--pf-c-tree-view__node--PaddingLeft) - var(--pf-c-tree-view--m-compact--m-no-background--base-border--Left--offset));
|
|
20718
20718
|
}
|
|
20719
20719
|
|
|
20720
|
+
.pf-c-draggable {
|
|
20721
|
+
--pf-c-draggable--Cursor: auto;
|
|
20722
|
+
--pf-c-draggable--m-dragging--Cursor: grabbing;
|
|
20723
|
+
--pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
20724
|
+
--pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
20725
|
+
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
20726
|
+
--pf-c-draggable--m-drag-outside--Cursor: not-allowed;
|
|
20727
|
+
--pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
20728
|
+
cursor: var(--pf-c-draggable--Cursor);
|
|
20729
|
+
}
|
|
20730
|
+
|
|
20731
|
+
.pf-c-draggable.pf-m-dragging {
|
|
20732
|
+
--pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
|
|
20733
|
+
position: relative;
|
|
20734
|
+
background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
|
|
20735
|
+
box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
|
|
20736
|
+
}
|
|
20737
|
+
|
|
20738
|
+
.pf-c-draggable.pf-m-dragging::after {
|
|
20739
|
+
position: absolute;
|
|
20740
|
+
top: 0;
|
|
20741
|
+
right: 0;
|
|
20742
|
+
bottom: 0;
|
|
20743
|
+
left: 0;
|
|
20744
|
+
content: "";
|
|
20745
|
+
border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
|
|
20746
|
+
}
|
|
20747
|
+
|
|
20748
|
+
.pf-c-draggable.pf-m-drag-outside {
|
|
20749
|
+
--pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
|
|
20750
|
+
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
|
|
20751
|
+
}
|
|
20752
|
+
|
|
20753
|
+
.pf-c-droppable {
|
|
20754
|
+
--pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
|
|
20755
|
+
--pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
20756
|
+
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
20757
|
+
--pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
20758
|
+
}
|
|
20759
|
+
|
|
20760
|
+
.pf-c-droppable.pf-m-dragging {
|
|
20761
|
+
position: relative;
|
|
20762
|
+
}
|
|
20763
|
+
|
|
20764
|
+
.pf-c-droppable.pf-m-dragging::after {
|
|
20765
|
+
position: absolute;
|
|
20766
|
+
top: 0;
|
|
20767
|
+
right: 0;
|
|
20768
|
+
bottom: 0;
|
|
20769
|
+
left: 0;
|
|
20770
|
+
pointer-events: none;
|
|
20771
|
+
content: "";
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
.pf-c-droppable::after {
|
|
20775
|
+
background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
|
|
20776
|
+
border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
|
|
20777
|
+
}
|
|
20778
|
+
|
|
20779
|
+
.pf-c-droppable.pf-m-drag-outside {
|
|
20780
|
+
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
|
|
20781
|
+
}
|
|
20782
|
+
|
|
20720
20783
|
.pf-c-wizard__header {
|
|
20721
20784
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
20722
20785
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|
|
@@ -21258,69 +21321,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
21258
21321
|
margin-left: var(--pf-c-wizard__footer-cancel--MarginLeft);
|
|
21259
21322
|
}
|
|
21260
21323
|
|
|
21261
|
-
.pf-c-draggable {
|
|
21262
|
-
--pf-c-draggable--Cursor: auto;
|
|
21263
|
-
--pf-c-draggable--m-dragging--Cursor: grabbing;
|
|
21264
|
-
--pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
21265
|
-
--pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
21266
|
-
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
21267
|
-
--pf-c-draggable--m-drag-outside--Cursor: not-allowed;
|
|
21268
|
-
--pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
21269
|
-
cursor: var(--pf-c-draggable--Cursor);
|
|
21270
|
-
}
|
|
21271
|
-
|
|
21272
|
-
.pf-c-draggable.pf-m-dragging {
|
|
21273
|
-
--pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
|
|
21274
|
-
position: relative;
|
|
21275
|
-
background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
|
|
21276
|
-
box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
|
|
21277
|
-
}
|
|
21278
|
-
|
|
21279
|
-
.pf-c-draggable.pf-m-dragging::after {
|
|
21280
|
-
position: absolute;
|
|
21281
|
-
top: 0;
|
|
21282
|
-
right: 0;
|
|
21283
|
-
bottom: 0;
|
|
21284
|
-
left: 0;
|
|
21285
|
-
content: "";
|
|
21286
|
-
border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
|
|
21287
|
-
}
|
|
21288
|
-
|
|
21289
|
-
.pf-c-draggable.pf-m-drag-outside {
|
|
21290
|
-
--pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
|
|
21291
|
-
--pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
|
|
21292
|
-
}
|
|
21293
|
-
|
|
21294
|
-
.pf-c-droppable {
|
|
21295
|
-
--pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
|
|
21296
|
-
--pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
21297
|
-
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
|
|
21298
|
-
--pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
|
|
21299
|
-
}
|
|
21300
|
-
|
|
21301
|
-
.pf-c-droppable.pf-m-dragging {
|
|
21302
|
-
position: relative;
|
|
21303
|
-
}
|
|
21304
|
-
|
|
21305
|
-
.pf-c-droppable.pf-m-dragging::after {
|
|
21306
|
-
position: absolute;
|
|
21307
|
-
top: 0;
|
|
21308
|
-
right: 0;
|
|
21309
|
-
bottom: 0;
|
|
21310
|
-
left: 0;
|
|
21311
|
-
pointer-events: none;
|
|
21312
|
-
content: "";
|
|
21313
|
-
}
|
|
21314
|
-
|
|
21315
|
-
.pf-c-droppable::after {
|
|
21316
|
-
background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
|
|
21317
|
-
border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
|
|
21318
|
-
}
|
|
21319
|
-
|
|
21320
|
-
.pf-c-droppable.pf-m-drag-outside {
|
|
21321
|
-
--pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
|
|
21322
|
-
}
|
|
21323
|
-
|
|
21324
21324
|
.pf-c-text-input-group {
|
|
21325
21325
|
--pf-c-text-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
|
|
21326
21326
|
--pf-c-text-input-group__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.194.
|
|
3
|
+
"version": "4.194.2",
|
|
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",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"generate": "node scripts/copyStyles.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patternfly/react-icons": "^4.45.
|
|
38
|
-
"@patternfly/react-styles": "^4.44.
|
|
39
|
-
"@patternfly/react-tokens": "^4.46.
|
|
37
|
+
"@patternfly/react-icons": "^4.45.2",
|
|
38
|
+
"@patternfly/react-styles": "^4.44.2",
|
|
39
|
+
"@patternfly/react-tokens": "^4.46.2",
|
|
40
40
|
"focus-trap": "6.2.2",
|
|
41
41
|
"react-dropzone": "9.0.0",
|
|
42
42
|
"tippy.js": "5.1.2",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "eac8a24f8e770a45fd46c9f7a115d47a502fffe3"
|
|
64
64
|
}
|
package/src/demos/CardDemos.md
CHANGED
|
@@ -1254,123 +1254,127 @@ const UtilizationCard3: React.FunctionComponent = () => {
|
|
|
1254
1254
|
];
|
|
1255
1255
|
|
|
1256
1256
|
return (
|
|
1257
|
-
<
|
|
1258
|
-
<
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
</CardActions>
|
|
1278
|
-
</CardHeader>
|
|
1279
|
-
<CardBody>
|
|
1280
|
-
<Flex direction={{ default: 'column' }}>
|
|
1281
|
-
<FlexItem>
|
|
1282
|
-
<span>System</span>
|
|
1283
|
-
</FlexItem>
|
|
1284
|
-
<Flex>
|
|
1285
|
-
<ExclamationCircleIcon className="pf-u-danger-color-100" aria-hidden />
|
|
1286
|
-
<a href="#">25 incidents detected</a>
|
|
1287
|
-
</Flex>
|
|
1288
|
-
<FlexItem>
|
|
1289
|
-
<Chart
|
|
1290
|
-
ariaDesc="Mock incidents chart"
|
|
1291
|
-
ariaTitle="Mock stack chart"
|
|
1292
|
-
domainPadding={{ x: [30, 25] }}
|
|
1293
|
-
legendData={[
|
|
1294
|
-
{ name: 'Low', symbol: { fill: chart_color_gold_100.value } },
|
|
1295
|
-
{ name: 'Important', symbol: { fill: chart_color_gold_300.value } },
|
|
1296
|
-
{ name: 'Moderate', symbol: { fill: chart_color_orange_300.value } },
|
|
1297
|
-
{ name: 'Critical', symbol: { fill: chart_color_red_100.value } }
|
|
1298
|
-
]}
|
|
1299
|
-
legendPosition="bottom-left"
|
|
1300
|
-
height={50}
|
|
1301
|
-
padding={{
|
|
1302
|
-
bottom: 40,
|
|
1303
|
-
left: 0,
|
|
1304
|
-
right: 0,
|
|
1305
|
-
top: 0
|
|
1306
|
-
}}
|
|
1307
|
-
width={350}
|
|
1308
|
-
showAxis={false}
|
|
1257
|
+
<React.Fragment>
|
|
1258
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to <code>baseline</code> alignment.
|
|
1259
|
+
<br /><br />
|
|
1260
|
+
<Gallery hasGutter minWidths={{ default: '360px' }}>
|
|
1261
|
+
<GalleryItem>
|
|
1262
|
+
<Card id="utilization-card-1" component="div">
|
|
1263
|
+
<CardHeader className="pf-u-align-items-flex-start">
|
|
1264
|
+
<CardTitle>
|
|
1265
|
+
<Title headingLevel="h2" size="lg" style={{ paddingTop: '3px' }}>
|
|
1266
|
+
Recommendations
|
|
1267
|
+
</Title>
|
|
1268
|
+
</CardTitle>
|
|
1269
|
+
<CardActions hasNoOffset>
|
|
1270
|
+
<Select
|
|
1271
|
+
onSelect={() => setIsOpen(!isOpen)}
|
|
1272
|
+
onToggle={() => setIsOpen(!isOpen)}
|
|
1273
|
+
isOpen={isOpen}
|
|
1274
|
+
placeholderText="Filter"
|
|
1275
|
+
position="right"
|
|
1276
|
+
isPlain
|
|
1309
1277
|
>
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1278
|
+
{selectItems}
|
|
1279
|
+
</Select>
|
|
1280
|
+
</CardActions>
|
|
1281
|
+
</CardHeader>
|
|
1282
|
+
<CardBody>
|
|
1283
|
+
<Flex direction={{ default: 'column' }}>
|
|
1284
|
+
<FlexItem>
|
|
1285
|
+
<span>System</span>
|
|
1286
|
+
</FlexItem>
|
|
1287
|
+
<Flex>
|
|
1288
|
+
<ExclamationCircleIcon className="pf-u-danger-color-100" aria-hidden />
|
|
1289
|
+
<a href="#">25 incidents detected</a>
|
|
1290
|
+
</Flex>
|
|
1291
|
+
<FlexItem>
|
|
1292
|
+
<Chart
|
|
1293
|
+
ariaDesc="Mock incidents chart"
|
|
1294
|
+
ariaTitle="Mock stack chart"
|
|
1295
|
+
domainPadding={{ x: [30, 25] }}
|
|
1296
|
+
legendData={[
|
|
1297
|
+
{ name: 'Low', symbol: { fill: chart_color_gold_100.value } },
|
|
1298
|
+
{ name: 'Important', symbol: { fill: chart_color_gold_300.value } },
|
|
1299
|
+
{ name: 'Moderate', symbol: { fill: chart_color_orange_300.value } },
|
|
1300
|
+
{ name: 'Critical', symbol: { fill: chart_color_red_100.value } }
|
|
1317
1301
|
]}
|
|
1302
|
+
legendPosition="bottom-left"
|
|
1303
|
+
height={50}
|
|
1304
|
+
padding={{
|
|
1305
|
+
bottom: 40,
|
|
1306
|
+
left: 0,
|
|
1307
|
+
right: 0,
|
|
1308
|
+
top: 0
|
|
1309
|
+
}}
|
|
1310
|
+
width={350}
|
|
1311
|
+
showAxis={false}
|
|
1318
1312
|
>
|
|
1319
|
-
<
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
}
|
|
1327
|
-
]}
|
|
1328
|
-
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1329
|
-
/>
|
|
1330
|
-
<ChartBar
|
|
1331
|
-
data={[
|
|
1332
|
-
{
|
|
1333
|
-
name: 'Important',
|
|
1334
|
-
x: 'Cluster A',
|
|
1335
|
-
y: 2,
|
|
1336
|
-
label: 'Important: 2'
|
|
1337
|
-
}
|
|
1338
|
-
]}
|
|
1339
|
-
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1340
|
-
/>
|
|
1341
|
-
<ChartBar
|
|
1342
|
-
data={[
|
|
1343
|
-
{
|
|
1344
|
-
name: 'Moderate',
|
|
1345
|
-
x: 'Cluster A',
|
|
1346
|
-
y: 4,
|
|
1347
|
-
label: 'Moderate: 4'
|
|
1348
|
-
}
|
|
1349
|
-
]}
|
|
1350
|
-
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1351
|
-
/>
|
|
1352
|
-
<ChartBar
|
|
1353
|
-
data={[
|
|
1354
|
-
{
|
|
1355
|
-
name: 'Critical',
|
|
1356
|
-
x: 'Cluster A',
|
|
1357
|
-
y: 2,
|
|
1358
|
-
label: 'Critical: 2'
|
|
1359
|
-
}
|
|
1313
|
+
<ChartStack
|
|
1314
|
+
horizontal
|
|
1315
|
+
colorScale={[
|
|
1316
|
+
chart_color_gold_100.value,
|
|
1317
|
+
chart_color_gold_300.value,
|
|
1318
|
+
chart_color_orange_300.value,
|
|
1319
|
+
chart_color_red_100.value
|
|
1360
1320
|
]}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1321
|
+
>
|
|
1322
|
+
<ChartBar
|
|
1323
|
+
data={[
|
|
1324
|
+
{
|
|
1325
|
+
name: 'Low',
|
|
1326
|
+
x: 'Cluster A',
|
|
1327
|
+
y: 6,
|
|
1328
|
+
label: 'Low: 6'
|
|
1329
|
+
}
|
|
1330
|
+
]}
|
|
1331
|
+
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1332
|
+
/>
|
|
1333
|
+
<ChartBar
|
|
1334
|
+
data={[
|
|
1335
|
+
{
|
|
1336
|
+
name: 'Important',
|
|
1337
|
+
x: 'Cluster A',
|
|
1338
|
+
y: 2,
|
|
1339
|
+
label: 'Important: 2'
|
|
1340
|
+
}
|
|
1341
|
+
]}
|
|
1342
|
+
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1343
|
+
/>
|
|
1344
|
+
<ChartBar
|
|
1345
|
+
data={[
|
|
1346
|
+
{
|
|
1347
|
+
name: 'Moderate',
|
|
1348
|
+
x: 'Cluster A',
|
|
1349
|
+
y: 4,
|
|
1350
|
+
label: 'Moderate: 4'
|
|
1351
|
+
}
|
|
1352
|
+
]}
|
|
1353
|
+
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1354
|
+
/>
|
|
1355
|
+
<ChartBar
|
|
1356
|
+
data={[
|
|
1357
|
+
{
|
|
1358
|
+
name: 'Critical',
|
|
1359
|
+
x: 'Cluster A',
|
|
1360
|
+
y: 2,
|
|
1361
|
+
label: 'Critical: 2'
|
|
1362
|
+
}
|
|
1363
|
+
]}
|
|
1364
|
+
labelComponent={<ChartTooltip constrainToVisibleArea />}
|
|
1365
|
+
/>
|
|
1366
|
+
</ChartStack>
|
|
1367
|
+
</Chart>
|
|
1368
|
+
</FlexItem>
|
|
1369
|
+
</Flex>
|
|
1370
|
+
</CardBody>
|
|
1371
|
+
<CardFooter>
|
|
1372
|
+
<a href="#">See details</a>
|
|
1373
|
+
</CardFooter>
|
|
1374
|
+
</Card>
|
|
1375
|
+
</GalleryItem>
|
|
1376
|
+
</Gallery>
|
|
1377
|
+
</React.Fragment>
|
|
1374
1378
|
);
|
|
1375
1379
|
};
|
|
1376
1380
|
```
|
|
@@ -2439,61 +2443,65 @@ const TrendCard1: React.FunctionComponent = () => {
|
|
|
2439
2443
|
<SelectOption value="Last 7 days" key="option4" />
|
|
2440
2444
|
];
|
|
2441
2445
|
return (
|
|
2442
|
-
<
|
|
2443
|
-
<
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2446
|
+
<React.Fragment>
|
|
2447
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to <code>baseline</code> alignment.
|
|
2448
|
+
<br /><br />
|
|
2449
|
+
<Gallery hasGutter minWidths={{ default: '360px' }}>
|
|
2450
|
+
<GalleryItem>
|
|
2451
|
+
<Card id="trend-card-1" component="div">
|
|
2452
|
+
<CardHeader>
|
|
2453
|
+
<Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
|
|
2454
|
+
<FlexItem>
|
|
2455
|
+
<CardTitle>
|
|
2456
|
+
<Title headingLevel="h1">1,050,765 IOPS</Title>
|
|
2457
|
+
</CardTitle>
|
|
2458
|
+
</FlexItem>
|
|
2459
|
+
<FlexItem>
|
|
2460
|
+
<span className="pf-u-color-200">Workload</span>
|
|
2461
|
+
</FlexItem>
|
|
2462
|
+
</Flex>
|
|
2463
|
+
<CardActions hasNoOffset style={{ paddingTop: '1px' }}>
|
|
2464
|
+
<Select
|
|
2465
|
+
onSelect={() => setIsOpen(!isOpen)}
|
|
2466
|
+
onToggle={() => setIsOpen(!isOpen)}
|
|
2467
|
+
placeholderText="Filter"
|
|
2468
|
+
isOpen={isOpen}
|
|
2469
|
+
position="right"
|
|
2470
|
+
isPlain
|
|
2471
|
+
>
|
|
2472
|
+
{selectItems}
|
|
2473
|
+
</Select>
|
|
2474
|
+
</CardActions>
|
|
2475
|
+
</CardHeader>
|
|
2476
|
+
<CardBody>
|
|
2477
|
+
<ChartGroup
|
|
2478
|
+
ariaDesc="Mock average cluster utilization"
|
|
2479
|
+
ariaTitle="Mock cluster sparkline chart"
|
|
2480
|
+
containerComponent={
|
|
2481
|
+
<ChartVoronoiContainer labels={({ datum }) => `${datum.name}: ${datum.y}`} constrainToVisibleArea />
|
|
2482
|
+
}
|
|
2483
|
+
height={100}
|
|
2484
|
+
maxDomain={{ y: 9 }}
|
|
2485
|
+
padding={0}
|
|
2486
|
+
width={400}
|
|
2464
2487
|
>
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
data={[
|
|
2483
|
-
{ name: 'Cluster', x: '2015', y: 7 },
|
|
2484
|
-
{ name: 'Cluster', x: '2016', y: 6 },
|
|
2485
|
-
{ name: 'Cluster', x: '2017', y: 8 },
|
|
2486
|
-
{ name: 'Cluster', x: '2018', y: 3 },
|
|
2487
|
-
{ name: 'Cluster', x: '2019', y: 4 },
|
|
2488
|
-
{ name: 'Cluster', x: '2020', y: 1 },
|
|
2489
|
-
{ name: 'Cluster', x: '2021', y: 0 }
|
|
2490
|
-
]}
|
|
2491
|
-
/>
|
|
2492
|
-
</ChartGroup>
|
|
2493
|
-
</CardBody>
|
|
2494
|
-
</Card>
|
|
2495
|
-
</GalleryItem>
|
|
2496
|
-
</Gallery>
|
|
2488
|
+
<ChartArea
|
|
2489
|
+
data={[
|
|
2490
|
+
{ name: 'Cluster', x: '2015', y: 7 },
|
|
2491
|
+
{ name: 'Cluster', x: '2016', y: 6 },
|
|
2492
|
+
{ name: 'Cluster', x: '2017', y: 8 },
|
|
2493
|
+
{ name: 'Cluster', x: '2018', y: 3 },
|
|
2494
|
+
{ name: 'Cluster', x: '2019', y: 4 },
|
|
2495
|
+
{ name: 'Cluster', x: '2020', y: 1 },
|
|
2496
|
+
{ name: 'Cluster', x: '2021', y: 0 }
|
|
2497
|
+
]}
|
|
2498
|
+
/>
|
|
2499
|
+
</ChartGroup>
|
|
2500
|
+
</CardBody>
|
|
2501
|
+
</Card>
|
|
2502
|
+
</GalleryItem>
|
|
2503
|
+
</Gallery>
|
|
2504
|
+
</React.Fragment>
|
|
2497
2505
|
);
|
|
2498
2506
|
};
|
|
2499
2507
|
```
|
|
@@ -2617,75 +2625,79 @@ CardLogViewDemo = () => {
|
|
|
2617
2625
|
];
|
|
2618
2626
|
|
|
2619
2627
|
return (
|
|
2620
|
-
<
|
|
2621
|
-
<
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
<
|
|
2666
|
-
<
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
<
|
|
2673
|
-
<
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2628
|
+
<React.Fragment>
|
|
2629
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to <code>baseline</code> alignment.
|
|
2630
|
+
<br /><br />
|
|
2631
|
+
<Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
|
|
2632
|
+
<Card id="card-log-view-example">
|
|
2633
|
+
<CardHeader className="pf-u-align-items-flex-start">
|
|
2634
|
+
<CardActions hasNoOffset>
|
|
2635
|
+
<Select
|
|
2636
|
+
onSelect={onActionSelect}
|
|
2637
|
+
onToggle={onActionToggle}
|
|
2638
|
+
placeholderText="Most recent"
|
|
2639
|
+
isOpen={isOpen}
|
|
2640
|
+
position="right"
|
|
2641
|
+
isPlain
|
|
2642
|
+
>
|
|
2643
|
+
{selectItems}
|
|
2644
|
+
</Select>
|
|
2645
|
+
</CardActions>
|
|
2646
|
+
<CardTitle>
|
|
2647
|
+
<Title headingLevel="h2" size="xl" style={{ paddingTop: '3px' }}>
|
|
2648
|
+
Activity
|
|
2649
|
+
</Title>
|
|
2650
|
+
</CardTitle>
|
|
2651
|
+
</CardHeader>
|
|
2652
|
+
<CardBody>
|
|
2653
|
+
<DescriptionList>
|
|
2654
|
+
<DescriptionListGroup>
|
|
2655
|
+
<DescriptionListTerm>Readiness probe failed</DescriptionListTerm>
|
|
2656
|
+
<DescriptionListDescription>
|
|
2657
|
+
Readiness probe failed: Get https://10.131.0.7:5000/healthz: dial tcp 10.131.0.7:5000: connect:
|
|
2658
|
+
connection refused
|
|
2659
|
+
</DescriptionListDescription>
|
|
2660
|
+
<DescriptionListDescription>
|
|
2661
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:02 am</time>
|
|
2662
|
+
</DescriptionListDescription>
|
|
2663
|
+
</DescriptionListGroup>
|
|
2664
|
+
<DescriptionListGroup>
|
|
2665
|
+
<DescriptionListTerm>Successful assignment</DescriptionListTerm>
|
|
2666
|
+
<DescriptionListDescription>
|
|
2667
|
+
Successfully assigned default/example to ip-10-0-130-149.ec2.internal
|
|
2668
|
+
</DescriptionListDescription>
|
|
2669
|
+
<DescriptionListDescription>
|
|
2670
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:13 am</time>
|
|
2671
|
+
</DescriptionListDescription>
|
|
2672
|
+
</DescriptionListGroup>
|
|
2673
|
+
<DescriptionListGroup>
|
|
2674
|
+
<DescriptionListTerm>Pulling image</DescriptionListTerm>
|
|
2675
|
+
<DescriptionListDescription>Pulling image "openshift/hello-openshift"</DescriptionListDescription>
|
|
2676
|
+
<DescriptionListDescription>
|
|
2677
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:59 am</time>
|
|
2678
|
+
</DescriptionListDescription>
|
|
2679
|
+
</DescriptionListGroup>
|
|
2680
|
+
<DescriptionListGroup>
|
|
2681
|
+
<DescriptionListTerm>Created container</DescriptionListTerm>
|
|
2682
|
+
<DescriptionListDescription>Created container hello-openshift</DescriptionListDescription>
|
|
2683
|
+
<DescriptionListDescription>
|
|
2684
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:45 am</time>
|
|
2685
|
+
</DescriptionListDescription>
|
|
2686
|
+
</DescriptionListGroup>
|
|
2687
|
+
</DescriptionList>
|
|
2688
|
+
</CardBody>
|
|
2689
|
+
<Divider />
|
|
2690
|
+
<CardFooter>
|
|
2691
|
+
<a href="#">View all activity</a>
|
|
2692
|
+
</CardFooter>
|
|
2693
|
+
</Card>
|
|
2694
|
+
</Gallery>
|
|
2695
|
+
</React.Fragment>
|
|
2684
2696
|
);
|
|
2685
2697
|
};
|
|
2686
2698
|
```
|
|
2687
2699
|
|
|
2688
|
-
###
|
|
2700
|
+
### Events view
|
|
2689
2701
|
|
|
2690
2702
|
```js
|
|
2691
2703
|
import React from 'react';
|
|
@@ -2722,7 +2734,7 @@ CardEventViewDemo = () => {
|
|
|
2722
2734
|
const onActionToggle = isOpen => {
|
|
2723
2735
|
setIsOpen(isOpen);
|
|
2724
2736
|
};
|
|
2725
|
-
|
|
2737
|
+
|
|
2726
2738
|
const selectItems = [
|
|
2727
2739
|
<SelectOption value="Success" key="option1" />,
|
|
2728
2740
|
<SelectOption value="Error" key="option2" />,
|
|
@@ -2730,106 +2742,110 @@ CardEventViewDemo = () => {
|
|
|
2730
2742
|
];
|
|
2731
2743
|
|
|
2732
2744
|
return (
|
|
2733
|
-
<
|
|
2734
|
-
<
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2745
|
+
<React.Fragment>
|
|
2746
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to <code>baseline</code> alignment.
|
|
2747
|
+
<br /><br />
|
|
2748
|
+
<Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
|
|
2749
|
+
<Card id="card-events-view-example">
|
|
2750
|
+
<CardHeader className="pf-u-align-items-flex-start">
|
|
2751
|
+
<CardActions hasNoOffset>
|
|
2752
|
+
<Select
|
|
2753
|
+
onSelect={onActionSelect}
|
|
2754
|
+
onToggle={onActionToggle}
|
|
2755
|
+
placeholderText="Status"
|
|
2756
|
+
isOpen={isOpen}
|
|
2757
|
+
position="right"
|
|
2758
|
+
isPlain
|
|
2759
|
+
>
|
|
2760
|
+
{selectItems}
|
|
2761
|
+
</Select>
|
|
2762
|
+
</CardActions>
|
|
2763
|
+
<CardTitle>
|
|
2764
|
+
<Title headingLevel="h2" size="xl" style={{ paddingTop: '3px' }}>
|
|
2765
|
+
Events
|
|
2766
|
+
</Title>
|
|
2767
|
+
</CardTitle>
|
|
2768
|
+
</CardHeader>
|
|
2769
|
+
<CardBody>
|
|
2770
|
+
<DescriptionList>
|
|
2771
|
+
<DescriptionListGroup>
|
|
2772
|
+
<DescriptionListTerm>
|
|
2773
|
+
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
2774
|
+
<FlexItem>
|
|
2775
|
+
<ExclamationCircleIcon className="pf-u-danger-color-100" aria-hidden="true" />
|
|
2776
|
+
</FlexItem>
|
|
2777
|
+
<FlexItem>
|
|
2778
|
+
<span>Readiness probe failed</span>
|
|
2779
|
+
</FlexItem>
|
|
2780
|
+
</Flex>
|
|
2781
|
+
</DescriptionListTerm>
|
|
2782
|
+
<DescriptionListDescription>
|
|
2783
|
+
Readiness probe failed: Get https://10.131.0.7:5000/healthz: dial tcp 10.131.0.7:5000: connect:
|
|
2784
|
+
connection refused
|
|
2785
|
+
</DescriptionListDescription>
|
|
2786
|
+
<DescriptionListDescription>
|
|
2787
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:02 am</time>
|
|
2788
|
+
</DescriptionListDescription>
|
|
2789
|
+
</DescriptionListGroup>
|
|
2790
|
+
<DescriptionListGroup>
|
|
2791
|
+
<DescriptionListTerm>
|
|
2792
|
+
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
2793
|
+
<FlexItem>
|
|
2794
|
+
<CheckCircleIcon className="pf-u-success-color-100" aria-hidden="true" />
|
|
2795
|
+
</FlexItem>
|
|
2796
|
+
<FlexItem>
|
|
2797
|
+
<span>Successful assignment</span>
|
|
2798
|
+
</FlexItem>
|
|
2799
|
+
</Flex>
|
|
2800
|
+
</DescriptionListTerm>
|
|
2801
|
+
<DescriptionListDescription>
|
|
2802
|
+
Successfully assigned default/example to ip-10-0-130-149.ec2.internal
|
|
2803
|
+
</DescriptionListDescription>
|
|
2804
|
+
<DescriptionListDescription>
|
|
2805
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:13 am</time>
|
|
2806
|
+
</DescriptionListDescription>
|
|
2807
|
+
</DescriptionListGroup>
|
|
2808
|
+
<DescriptionListGroup>
|
|
2809
|
+
<DescriptionListTerm>
|
|
2810
|
+
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
2811
|
+
<FlexItem>
|
|
2812
|
+
<Spinner size="md" aria-label="loading spinner" />
|
|
2813
|
+
</FlexItem>
|
|
2814
|
+
<FlexItem>
|
|
2815
|
+
<span>Pulling image</span>
|
|
2816
|
+
</FlexItem>
|
|
2817
|
+
</Flex>
|
|
2818
|
+
</DescriptionListTerm>
|
|
2819
|
+
<DescriptionListDescription>Pulling image "openshift/hello-openshift"</DescriptionListDescription>
|
|
2820
|
+
<DescriptionListDescription>
|
|
2821
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:59 am</time>
|
|
2822
|
+
</DescriptionListDescription>
|
|
2823
|
+
</DescriptionListGroup>
|
|
2824
|
+
<DescriptionListGroup>
|
|
2825
|
+
<DescriptionListTerm>
|
|
2826
|
+
<Flex flexWrap={{ default: 'nowrap' }}>
|
|
2827
|
+
<FlexItem>
|
|
2828
|
+
<CheckCircleIcon className="pf-u-success-color-100" aria-hidden="true" />
|
|
2829
|
+
</FlexItem>
|
|
2830
|
+
<FlexItem>
|
|
2831
|
+
<span>Created container</span>
|
|
2832
|
+
</FlexItem>
|
|
2833
|
+
</Flex>
|
|
2834
|
+
</DescriptionListTerm>
|
|
2835
|
+
<DescriptionListDescription>Created container hello-openshift</DescriptionListDescription>
|
|
2836
|
+
<DescriptionListDescription>
|
|
2837
|
+
<time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:45 am</time>
|
|
2838
|
+
</DescriptionListDescription>
|
|
2839
|
+
</DescriptionListGroup>
|
|
2840
|
+
</DescriptionList>
|
|
2841
|
+
</CardBody>
|
|
2842
|
+
<Divider />
|
|
2843
|
+
<CardFooter>
|
|
2844
|
+
<a href="#">View all events</a>
|
|
2845
|
+
</CardFooter>
|
|
2846
|
+
</Card>
|
|
2847
|
+
</Gallery>
|
|
2848
|
+
</React.Fragment>
|
|
2833
2849
|
);
|
|
2834
2850
|
};
|
|
2835
2851
|
```
|