@patternfly/react-core 4.191.0 → 4.191.1

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 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.191.1 (2022-01-19)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-core
9
+
10
+
11
+
12
+
13
+
6
14
  # 4.191.0 (2022-01-19)
7
15
 
8
16
 
@@ -1305,40 +1305,6 @@ textarea.pf-c-form-control {
1305
1305
  display: block;
1306
1306
  }
1307
1307
 
1308
- .pf-c-badge {
1309
- --pf-c-badge--BorderRadius: var(--pf-global--BorderRadius--lg);
1310
- --pf-c-badge--FontSize: var(--pf-global--FontSize--xs);
1311
- --pf-c-badge--FontWeight: var(--pf-global--FontWeight--bold);
1312
- --pf-c-badge--PaddingRight: var(--pf-global--spacer--sm);
1313
- --pf-c-badge--PaddingLeft: var(--pf-global--spacer--sm);
1314
- --pf-c-badge--Color: var(--pf-global--Color--dark-100);
1315
- --pf-c-badge--MinWidth: var(--pf-global--spacer--xl);
1316
- --pf-c-badge--m-read--BackgroundColor: var(--pf-global--BackgroundColor--200);
1317
- --pf-c-badge--m-read--Color: var(--pf-global--Color--dark-100);
1318
- --pf-c-badge--m-unread--BackgroundColor: var(--pf-global--primary-color--100);
1319
- --pf-c-badge--m-unread--Color: var(--pf-global--Color--light-100);
1320
- display: inline-block;
1321
- min-width: var(--pf-c-badge--MinWidth);
1322
- padding-right: var(--pf-c-badge--PaddingRight);
1323
- padding-left: var(--pf-c-badge--PaddingLeft);
1324
- font-size: var(--pf-c-badge--FontSize);
1325
- font-weight: var(--pf-c-badge--FontWeight);
1326
- color: var(--pf-c-badge--Color);
1327
- text-align: center;
1328
- background-color: var(--pf-c-badge--BackgroundColor);
1329
- border-radius: var(--pf-c-badge--BorderRadius);
1330
- }
1331
-
1332
- .pf-c-badge.pf-m-read {
1333
- --pf-c-badge--Color: var(--pf-c-badge--m-read--Color);
1334
- --pf-c-badge--BackgroundColor: var(--pf-c-badge--m-read--BackgroundColor);
1335
- }
1336
-
1337
- .pf-c-badge.pf-m-unread {
1338
- --pf-c-badge--Color: var(--pf-c-badge--m-unread--Color);
1339
- --pf-c-badge--BackgroundColor: var(--pf-c-badge--m-unread--BackgroundColor);
1340
- }
1341
-
1342
1308
  .pf-c-banner.pf-m-warning, .pf-c-banner.pf-m-info {
1343
1309
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
1344
1310
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -1480,6 +1446,40 @@ textarea.pf-c-form-control {
1480
1446
  cursor: not-allowed;
1481
1447
  }
1482
1448
 
1449
+ .pf-c-badge {
1450
+ --pf-c-badge--BorderRadius: var(--pf-global--BorderRadius--lg);
1451
+ --pf-c-badge--FontSize: var(--pf-global--FontSize--xs);
1452
+ --pf-c-badge--FontWeight: var(--pf-global--FontWeight--bold);
1453
+ --pf-c-badge--PaddingRight: var(--pf-global--spacer--sm);
1454
+ --pf-c-badge--PaddingLeft: var(--pf-global--spacer--sm);
1455
+ --pf-c-badge--Color: var(--pf-global--Color--dark-100);
1456
+ --pf-c-badge--MinWidth: var(--pf-global--spacer--xl);
1457
+ --pf-c-badge--m-read--BackgroundColor: var(--pf-global--BackgroundColor--200);
1458
+ --pf-c-badge--m-read--Color: var(--pf-global--Color--dark-100);
1459
+ --pf-c-badge--m-unread--BackgroundColor: var(--pf-global--primary-color--100);
1460
+ --pf-c-badge--m-unread--Color: var(--pf-global--Color--light-100);
1461
+ display: inline-block;
1462
+ min-width: var(--pf-c-badge--MinWidth);
1463
+ padding-right: var(--pf-c-badge--PaddingRight);
1464
+ padding-left: var(--pf-c-badge--PaddingLeft);
1465
+ font-size: var(--pf-c-badge--FontSize);
1466
+ font-weight: var(--pf-c-badge--FontWeight);
1467
+ color: var(--pf-c-badge--Color);
1468
+ text-align: center;
1469
+ background-color: var(--pf-c-badge--BackgroundColor);
1470
+ border-radius: var(--pf-c-badge--BorderRadius);
1471
+ }
1472
+
1473
+ .pf-c-badge.pf-m-read {
1474
+ --pf-c-badge--Color: var(--pf-c-badge--m-read--Color);
1475
+ --pf-c-badge--BackgroundColor: var(--pf-c-badge--m-read--BackgroundColor);
1476
+ }
1477
+
1478
+ .pf-c-badge.pf-m-unread {
1479
+ --pf-c-badge--Color: var(--pf-c-badge--m-unread--Color);
1480
+ --pf-c-badge--BackgroundColor: var(--pf-c-badge--m-unread--BackgroundColor);
1481
+ }
1482
+
1483
1483
  .pf-c-breadcrumb {
1484
1484
  --pf-c-breadcrumb__item--FontSize: var(--pf-global--FontSize--sm);
1485
1485
  --pf-c-breadcrumb__item--LineHeight: var(--pf-global--LineHeight--sm);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.191.0",
3
+ "version": "4.191.1",
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.42.0",
38
- "@patternfly/react-styles": "^4.41.0",
39
- "@patternfly/react-tokens": "^4.43.0",
37
+ "@patternfly/react-icons": "^4.42.1",
38
+ "@patternfly/react-styles": "^4.41.1",
39
+ "@patternfly/react-tokens": "^4.43.1",
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": "77aae8d7980584c12ddcab1522ed9b7931588150"
63
+ "gitHead": "13a78694693eff5ddb5d00903c1382ae54469c17"
64
64
  }
@@ -0,0 +1,67 @@
1
+ ---
2
+ id: Button
3
+ section: components
4
+ ---
5
+
6
+ import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
7
+
8
+ ## Demos
9
+
10
+ ### Progress button
11
+
12
+ ```ts
13
+ import React from 'react';
14
+ import { Form, FormGroup, ActionGroup, InputGroup, TextInput, Button } from '@patternfly/react-core';
15
+ import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
16
+
17
+ const ProgressButton: React.FunctionComponent = () => {
18
+ const [loginState, setLoginState] = React.useState<'notLoggedIn' | 'loading' | 'loggedIn'>('notLoggedIn');
19
+
20
+ return (
21
+ <Form>
22
+ <FormGroup label="Username" isRequired fieldId="progress-button-initial-login">
23
+ <TextInput
24
+ isRequired
25
+ type="text"
26
+ id="progress-button-initial-login"
27
+ name="progress-button-initial-login"
28
+ value="johndoe"
29
+ aria-label="username input"
30
+ />
31
+ </FormGroup>
32
+ <FormGroup label="Password" isRequired fieldId="progress-button-initial-password">
33
+ <TextInput
34
+ isRequired
35
+ type="password"
36
+ value="p@ssw0rd"
37
+ id="progress-button-initial-password"
38
+ name="progress-button-initial-password"
39
+ aria-label="password input"
40
+ />
41
+ </FormGroup>
42
+ <ActionGroup>
43
+ <Button
44
+ variant="primary"
45
+ onClick={
46
+ loginState === 'notLoggedIn'
47
+ ? () => {
48
+ setLoginState('loading');
49
+ setTimeout(() => {
50
+ setLoginState('loggedIn');
51
+ }, 3000);
52
+ }
53
+ : null
54
+ }
55
+ isLoading={loginState === 'loading'}
56
+ icon={loginState === 'loggedIn' ? <CheckCircleIcon /> : null}
57
+ spinnerAriaValueText="Loading..."
58
+ >
59
+ {loginState === 'notLoggedIn' && 'Link account and log in'}
60
+ {loginState === 'loading' && 'Linking account'}
61
+ {loginState === 'loggedIn' && 'Logged in'}
62
+ </Button>
63
+ </ActionGroup>
64
+ </Form>
65
+ );
66
+ };
67
+ ```