@patternfly/react-core 4.168.6 → 4.168.10
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 +38 -0
- package/dist/esm/components/Banner/Banner.d.ts +1 -1
- package/dist/esm/components/Banner/Banner.d.ts.map +1 -1
- package/dist/esm/components/Banner/Banner.js +5 -1
- package/dist/esm/components/Banner/Banner.js.map +1 -1
- package/dist/esm/components/Dropdown/DropdownGroup.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownGroup.js +10 -6
- package/dist/esm/components/Dropdown/DropdownGroup.js.map +1 -1
- package/dist/js/components/Banner/Banner.d.ts +1 -1
- package/dist/js/components/Banner/Banner.d.ts.map +1 -1
- package/dist/js/components/Banner/Banner.js +4 -1
- package/dist/js/components/Banner/Banner.js.map +1 -1
- package/dist/js/components/Dropdown/DropdownGroup.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownGroup.js +9 -6
- package/dist/js/components/Dropdown/DropdownGroup.js.map +1 -1
- package/dist/umd/react-core.js +13 -7
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Banner/Banner.tsx +4 -2
- package/src/components/Banner/__tests__/__snapshots__/Banner.test.tsx.snap +6 -0
- package/src/components/Dropdown/DropdownGroup.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.168.
|
|
3
|
+
"version": "4.168.10",
|
|
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,16 +34,16 @@
|
|
|
34
34
|
"generate": "node scripts/copyStyles.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patternfly/react-icons": "^4.19.
|
|
38
|
-
"@patternfly/react-styles": "^4.18.
|
|
39
|
-
"@patternfly/react-tokens": "^4.20.
|
|
37
|
+
"@patternfly/react-icons": "^4.19.10",
|
|
38
|
+
"@patternfly/react-styles": "^4.18.10",
|
|
39
|
+
"@patternfly/react-tokens": "^4.20.10",
|
|
40
40
|
"focus-trap": "6.2.2",
|
|
41
41
|
"react-dropzone": "9.0.0",
|
|
42
42
|
"tippy.js": "5.1.2",
|
|
43
43
|
"tslib": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@patternfly/patternfly": "4.151.
|
|
46
|
+
"@patternfly/patternfly": "4.151.4",
|
|
47
47
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
49
49
|
"@rollup/plugin-replace": "^3.0.0",
|
|
@@ -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": "67e19e6066f3587428f52544ae00beb89827adc5"
|
|
64
64
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Banner/banner';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
|
|
5
|
-
export interface BannerProps extends React.HTMLProps<
|
|
5
|
+
export interface BannerProps extends React.HTMLProps<HTMLDivElement> {
|
|
6
6
|
/** Content rendered inside the banner */
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
/** Additional classes added to the banner */
|
|
@@ -17,7 +17,8 @@ export const Banner: React.FunctionComponent<BannerProps> = ({
|
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
variant = 'default',
|
|
20
|
-
isSticky = false
|
|
20
|
+
isSticky = false,
|
|
21
|
+
...props
|
|
21
22
|
}: BannerProps) => (
|
|
22
23
|
<div
|
|
23
24
|
className={css(
|
|
@@ -26,6 +27,7 @@ export const Banner: React.FunctionComponent<BannerProps> = ({
|
|
|
26
27
|
isSticky && styles.modifiers.sticky,
|
|
27
28
|
className
|
|
28
29
|
)}
|
|
30
|
+
{...props}
|
|
29
31
|
>
|
|
30
32
|
{children}
|
|
31
33
|
</div>
|
|
@@ -6,6 +6,7 @@ exports[`danger banner 1`] = `
|
|
|
6
6
|
variant="danger"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
+
aria-label="danger"
|
|
9
10
|
className="pf-c-banner pf-m-danger"
|
|
10
11
|
>
|
|
11
12
|
danger
|
|
@@ -20,6 +21,7 @@ exports[`default banner 1`] = `
|
|
|
20
21
|
variant="default"
|
|
21
22
|
>
|
|
22
23
|
<div
|
|
24
|
+
aria-label="default"
|
|
23
25
|
className="pf-c-banner"
|
|
24
26
|
>
|
|
25
27
|
default
|
|
@@ -34,6 +36,7 @@ exports[`info banner 1`] = `
|
|
|
34
36
|
variant="info"
|
|
35
37
|
>
|
|
36
38
|
<div
|
|
39
|
+
aria-label="info"
|
|
37
40
|
className="pf-c-banner pf-m-info"
|
|
38
41
|
>
|
|
39
42
|
info
|
|
@@ -48,6 +51,7 @@ exports[`sticky banner 1`] = `
|
|
|
48
51
|
isSticky={true}
|
|
49
52
|
>
|
|
50
53
|
<div
|
|
54
|
+
aria-label="sticky"
|
|
51
55
|
className="pf-c-banner pf-m-sticky"
|
|
52
56
|
>
|
|
53
57
|
Sticky Banner
|
|
@@ -61,6 +65,7 @@ exports[`success banner 1`] = `
|
|
|
61
65
|
variant="success"
|
|
62
66
|
>
|
|
63
67
|
<div
|
|
68
|
+
aria-label="success"
|
|
64
69
|
className="pf-c-banner pf-m-success"
|
|
65
70
|
>
|
|
66
71
|
success
|
|
@@ -75,6 +80,7 @@ exports[`warning banner 1`] = `
|
|
|
75
80
|
variant="warning"
|
|
76
81
|
>
|
|
77
82
|
<div
|
|
83
|
+
aria-label="warning"
|
|
78
84
|
className="pf-c-banner pf-m-warning"
|
|
79
85
|
>
|
|
80
86
|
warning
|
|
@@ -14,13 +14,14 @@ export interface DropdownGroupProps extends Omit<React.HTMLProps<HTMLDivElement>
|
|
|
14
14
|
export const DropdownGroup: React.FunctionComponent<DropdownGroupProps> = ({
|
|
15
15
|
children = null,
|
|
16
16
|
className = '',
|
|
17
|
-
label = ''
|
|
17
|
+
label = '',
|
|
18
|
+
...props
|
|
18
19
|
}: DropdownGroupProps) => (
|
|
19
20
|
<DropdownContext.Consumer>
|
|
20
21
|
{({ sectionClass, sectionTitleClass, sectionComponent }) => {
|
|
21
22
|
const SectionComponent = sectionComponent as any;
|
|
22
23
|
return (
|
|
23
|
-
<SectionComponent className={css(sectionClass, className)}>
|
|
24
|
+
<SectionComponent className={css(sectionClass, className)} {...props}>
|
|
24
25
|
{label && (
|
|
25
26
|
<h1 className={css(sectionTitleClass)} aria-hidden>
|
|
26
27
|
{label}
|