@patternfly/react-core 4.192.21 → 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.
@@ -1254,123 +1254,127 @@ const UtilizationCard3: React.FunctionComponent = () => {
1254
1254
  ];
1255
1255
 
1256
1256
  return (
1257
- <Gallery hasGutter minWidths={{ default: '360px' }}>
1258
- <GalleryItem>
1259
- <Card id="utilization-card-1" component="div">
1260
- <CardHeader>
1261
- <CardTitle>
1262
- <Title headingLevel="h2" size="lg">
1263
- Recommendations
1264
- </Title>
1265
- </CardTitle>
1266
- <CardActions>
1267
- <Select
1268
- onSelect={() => setIsOpen(!isOpen)}
1269
- onToggle={() => setIsOpen(!isOpen)}
1270
- isOpen={isOpen}
1271
- placeholderText="Filter"
1272
- position="right"
1273
- isPlain
1274
- >
1275
- {selectItems}
1276
- </Select>
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
- <ChartStack
1311
- horizontal
1312
- colorScale={[
1313
- chart_color_gold_100.value,
1314
- chart_color_gold_300.value,
1315
- chart_color_orange_300.value,
1316
- chart_color_red_100.value
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
- <ChartBar
1320
- data={[
1321
- {
1322
- name: 'Low',
1323
- x: 'Cluster A',
1324
- y: 6,
1325
- label: 'Low: 6'
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
- labelComponent={<ChartTooltip constrainToVisibleArea />}
1362
- />
1363
- </ChartStack>
1364
- </Chart>
1365
- </FlexItem>
1366
- </Flex>
1367
- </CardBody>
1368
- <CardFooter>
1369
- <a href="#">See details</a>
1370
- </CardFooter>
1371
- </Card>
1372
- </GalleryItem>
1373
- </Gallery>
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
- <Gallery hasGutter minWidths={{ default: '360px' }}>
2443
- <GalleryItem>
2444
- <Card id="trend-card-1" component="div">
2445
- <CardHeader>
2446
- <Flex direction={{ default: 'column' }} spaceItems={{ default: 'spaceItemsNone' }}>
2447
- <FlexItem>
2448
- <CardTitle>
2449
- <Title headingLevel="h1">1,050,765 IOPS</Title>
2450
- </CardTitle>
2451
- </FlexItem>
2452
- <FlexItem>
2453
- <span className="pf-u-color-200">Workload</span>
2454
- </FlexItem>
2455
- </Flex>
2456
- <CardActions>
2457
- <Select
2458
- onSelect={() => setIsOpen(!isOpen)}
2459
- onToggle={() => setIsOpen(!isOpen)}
2460
- placeholderText="Filter"
2461
- isOpen={isOpen}
2462
- position="right"
2463
- isPlain
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
- {selectItems}
2466
- </Select>
2467
- </CardActions>
2468
- </CardHeader>
2469
- <CardBody>
2470
- <ChartGroup
2471
- ariaDesc="Mock average cluster utilization"
2472
- ariaTitle="Mock cluster sparkline chart"
2473
- containerComponent={
2474
- <ChartVoronoiContainer labels={({ datum }) => `${datum.name}: ${datum.y}`} constrainToVisibleArea />
2475
- }
2476
- height={100}
2477
- maxDomain={{ y: 9 }}
2478
- padding={0}
2479
- width={400}
2480
- >
2481
- <ChartArea
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
- <Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
2621
- <Card id="card-log-view-example">
2622
- <CardHeader>
2623
- <CardActions>
2624
- <Select
2625
- onSelect={onActionSelect}
2626
- onToggle={onActionToggle}
2627
- placeholderText="Most recent"
2628
- isOpen={isOpen}
2629
- position="right"
2630
- isPlain
2631
- >
2632
- {selectItems}
2633
- </Select>
2634
- </CardActions>
2635
- <CardTitle>
2636
- <Title headingLevel="h2" size="xl">
2637
- Activity
2638
- </Title>
2639
- </CardTitle>
2640
- </CardHeader>
2641
- <CardBody>
2642
- <DescriptionList>
2643
- <DescriptionListGroup>
2644
- <DescriptionListTerm>Readiness probe failed</DescriptionListTerm>
2645
- <DescriptionListDescription>
2646
- Readiness probe failed: Get https://10.131.0.7:5000/healthz: dial tcp 10.131.0.7:5000: connect:
2647
- connection refused
2648
- </DescriptionListDescription>
2649
- <DescriptionListDescription>
2650
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:02 am</time>
2651
- </DescriptionListDescription>
2652
- </DescriptionListGroup>
2653
- <DescriptionListGroup>
2654
- <DescriptionListTerm>Successful assignment</DescriptionListTerm>
2655
- <DescriptionListDescription>
2656
- Successfully assigned default/example to ip-10-0-130-149.ec2.internal
2657
- </DescriptionListDescription>
2658
- <DescriptionListDescription>
2659
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:13 am</time>
2660
- </DescriptionListDescription>
2661
- </DescriptionListGroup>
2662
- <DescriptionListGroup>
2663
- <DescriptionListTerm>Pulling image</DescriptionListTerm>
2664
- <DescriptionListDescription>Pulling image "openshift/hello-openshift"</DescriptionListDescription>
2665
- <DescriptionListDescription>
2666
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:59 am</time>
2667
- </DescriptionListDescription>
2668
- </DescriptionListGroup>
2669
- <DescriptionListGroup>
2670
- <DescriptionListTerm>Created container</DescriptionListTerm>
2671
- <DescriptionListDescription>Created container hello-openshift</DescriptionListDescription>
2672
- <DescriptionListDescription>
2673
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:45 am</time>
2674
- </DescriptionListDescription>
2675
- </DescriptionListGroup>
2676
- </DescriptionList>
2677
- </CardBody>
2678
- <Divider />
2679
- <CardFooter>
2680
- <a href="#">View all activity</a>
2681
- </CardFooter>
2682
- </Card>
2683
- </Gallery>
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
- ### Event view
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
- <Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
2734
- <Card id="card-events-view-example">
2735
- <CardHeader>
2736
- <CardActions>
2737
- <Select
2738
- onSelect={onActionSelect}
2739
- onToggle={onActionToggle}
2740
- placeholderText="Status"
2741
- isOpen={isOpen}
2742
- position="right"
2743
- isPlain
2744
- >
2745
- {selectItems}
2746
- </Select>
2747
- </CardActions>
2748
- <CardTitle>
2749
- <Title headingLevel="h2" size="xl">
2750
- Events
2751
- </Title>
2752
- </CardTitle>
2753
- </CardHeader>
2754
- <CardBody>
2755
- <DescriptionList>
2756
- <DescriptionListGroup>
2757
- <DescriptionListTerm>
2758
- <Flex flexWrap={{ default: 'nowrap' }}>
2759
- <FlexItem>
2760
- <ExclamationCircleIcon className="pf-u-danger-color-100" aria-hidden="true" />
2761
- </FlexItem>
2762
- <FlexItem>
2763
- <span>Readiness probe failed</span>
2764
- </FlexItem>
2765
- </Flex>
2766
- </DescriptionListTerm>
2767
- <DescriptionListDescription>
2768
- Readiness probe failed: Get https://10.131.0.7:5000/healthz: dial tcp 10.131.0.7:5000: connect:
2769
- connection refused
2770
- </DescriptionListDescription>
2771
- <DescriptionListDescription>
2772
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:02 am</time>
2773
- </DescriptionListDescription>
2774
- </DescriptionListGroup>
2775
- <DescriptionListGroup>
2776
- <DescriptionListTerm>
2777
- <Flex flexWrap={{ default: 'nowrap' }}>
2778
- <FlexItem>
2779
- <CheckCircleIcon className="pf-u-success-color-100" aria-hidden="true" />
2780
- </FlexItem>
2781
- <FlexItem>
2782
- <span>Successful assignment</span>
2783
- </FlexItem>
2784
- </Flex>
2785
- </DescriptionListTerm>
2786
- <DescriptionListDescription>
2787
- Successfully assigned default/example to ip-10-0-130-149.ec2.internal
2788
- </DescriptionListDescription>
2789
- <DescriptionListDescription>
2790
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 11:13 am</time>
2791
- </DescriptionListDescription>
2792
- </DescriptionListGroup>
2793
- <DescriptionListGroup>
2794
- <DescriptionListTerm>
2795
- <Flex flexWrap={{ default: 'nowrap' }}>
2796
- <FlexItem>
2797
- <Spinner size="md" aria-label="loading spinner" />
2798
- </FlexItem>
2799
- <FlexItem>
2800
- <span>Pulling image</span>
2801
- </FlexItem>
2802
- </Flex>
2803
- </DescriptionListTerm>
2804
- <DescriptionListDescription>Pulling image "openshift/hello-openshift"</DescriptionListDescription>
2805
- <DescriptionListDescription>
2806
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:59 am</time>
2807
- </DescriptionListDescription>
2808
- </DescriptionListGroup>
2809
- <DescriptionListGroup>
2810
- <DescriptionListTerm>
2811
- <Flex flexWrap={{ default: 'nowrap' }}>
2812
- <FlexItem>
2813
- <CheckCircleIcon className="pf-u-success-color-100" aria-hidden="true" />
2814
- </FlexItem>
2815
- <FlexItem>
2816
- <span>Created container</span>
2817
- </FlexItem>
2818
- </Flex>
2819
- </DescriptionListTerm>
2820
- <DescriptionListDescription>Created container hello-openshift</DescriptionListDescription>
2821
- <DescriptionListDescription>
2822
- <time className="pf-u-color-200 pf-u-font-size-sm">Jun 17, 10:45 am</time>
2823
- </DescriptionListDescription>
2824
- </DescriptionListGroup>
2825
- </DescriptionList>
2826
- </CardBody>
2827
- <Divider />
2828
- <CardFooter>
2829
- <a href="#">View all events</a>
2830
- </CardFooter>
2831
- </Card>
2832
- </Gallery>
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
  ```