@patternfly/react-core 4.223.1 → 4.223.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 +11 -0
- package/dist/esm/components/ProgressStepper/ProgressStep.js +2 -2
- package/dist/esm/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/js/components/ProgressStepper/ProgressStep.js +2 -2
- package/dist/js/components/ProgressStepper/ProgressStep.js.map +1 -1
- package/dist/umd/react-core.js +2 -2
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/ProgressStepper/ProgressStep.tsx +2 -2
- package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.223.2 (2022-06-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ProgressStepper:** added onTriggerEnter prop to Popover ([#7532](https://github.com/patternfly/patternfly-react/issues/7532)) ([1208390](https://github.com/patternfly/patternfly-react/commit/12083908a7043c017a5b7a97f84623add10bfe75))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 4.223.1 (2022-06-23)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/react-core
|
|
@@ -25,7 +25,7 @@ const variantStyle = {
|
|
|
25
25
|
export const ProgressStep = (_a) => {
|
|
26
26
|
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = __rest(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
27
27
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
28
|
-
const Component = popoverRender !== undefined ? '
|
|
28
|
+
const Component = popoverRender !== undefined ? 'button' : 'div';
|
|
29
29
|
const stepRef = React.useRef();
|
|
30
30
|
if (props.id === undefined || titleId === undefined) {
|
|
31
31
|
/* eslint-disable no-console */
|
|
@@ -35,7 +35,7 @@ export const ProgressStep = (_a) => {
|
|
|
35
35
|
React.createElement("div", { className: css(styles.progressStepperStepConnector) },
|
|
36
36
|
React.createElement("span", { className: css(styles.progressStepperStepIcon) }, _icon && _icon)),
|
|
37
37
|
React.createElement("div", { className: css(styles.progressStepperStepMain) },
|
|
38
|
-
React.createElement(Component, Object.assign({ className: css(styles.progressStepperStepTitle, popoverRender && styles.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && {
|
|
38
|
+
React.createElement(Component, Object.assign({ className: css(styles.progressStepperStepTitle, popoverRender && styles.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
39
39
|
children,
|
|
40
40
|
popoverRender && popoverRender(stepRef)),
|
|
41
41
|
description && React.createElement("div", { className: css(styles.progressStepperStepDescription) }, description))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,MAAM,MAAM,0EAA0E,CAAC;AAC9F,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,eAAe,MAAM,0DAA0D,CAAC;AACvF,OAAO,iBAAiB,MAAM,4DAA4D,CAAC;AAC3F,OAAO,uBAAuB,MAAM,kEAAkE,CAAC;AACvG,OAAO,qBAAqB,MAAM,gEAAgE,CAAC;AAyBnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,SAAgB;IACzB,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AAE,GAAG,CACZ,MAAM,CAAC,mBAAmB,EAC1B,YAAY,CAAC,OAAO,CAAC,EACrB,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EACrC,SAAS,CACV,gBACW,SAAS,IACjB,CAAC,SAAS,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,EACzC,KAAK;QAET,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,4BAA4B,CAAC;YACtD,8BAAM,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,uBAAuB,CAAC,IAAG,KAAK,IAAI,KAAK,CAAQ,CACzE;QACN,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,uBAAuB,CAAC;YACjD,oBAAC,SAAS,kBACR,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,wBAAwB,EAAE,aAAa,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC3F,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,OAAO,IACR,CAAC,aAAa,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EACrC,CAAC,KAAK,CAAC,EAAE,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,OAAO,EAAE,EAAE,CAAC;gBAEvG,QAAQ;gBACR,aAAa,IAAI,aAAa,CAAC,OAAO,CAAC,CAC9B;YACX,WAAW,IAAI,6BAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,8BAA8B,CAAC,IAAG,WAAW,CAAO,CAC3F,CACH,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -28,7 +28,7 @@ const variantStyle = {
|
|
|
28
28
|
const ProgressStep = (_a) => {
|
|
29
29
|
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = tslib_1.__rest(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
30
30
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
31
|
-
const Component = popoverRender !== undefined ? '
|
|
31
|
+
const Component = popoverRender !== undefined ? 'button' : 'div';
|
|
32
32
|
const stepRef = React.useRef();
|
|
33
33
|
if (props.id === undefined || titleId === undefined) {
|
|
34
34
|
/* eslint-disable no-console */
|
|
@@ -38,7 +38,7 @@ const ProgressStep = (_a) => {
|
|
|
38
38
|
React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepConnector) },
|
|
39
39
|
React.createElement("span", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepIcon) }, _icon && _icon)),
|
|
40
40
|
React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepMain) },
|
|
41
|
-
React.createElement(Component, Object.assign({ className: react_styles_1.css(progress_stepper_1.default.progressStepperStepTitle, popoverRender && progress_stepper_1.default.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && {
|
|
41
|
+
React.createElement(Component, Object.assign({ className: react_styles_1.css(progress_stepper_1.default.progressStepperStepTitle, popoverRender && progress_stepper_1.default.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
42
42
|
children,
|
|
43
43
|
popoverRender && popoverRender(stepRef)),
|
|
44
44
|
description && React.createElement("div", { className: react_styles_1.css(progress_stepper_1.default.progressStepperStepDescription) }, description))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,wIAA8F;AAC9F,2DAA+C;AAC/C,wHAAuF;AACvF,4HAA2F;AAC3F,wIAAuG;AACvG,oIAAmG;AAyBnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,oBAAC,2BAAe,OAAG;IAC5B,IAAI,EAAE,oBAAC,6BAAiB,OAAG;IAC3B,OAAO,EAAE,oBAAC,mCAAuB,OAAG;IACpC,MAAM,EAAE,oBAAC,iCAAqB,OAAG;CAClC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,0BAAM,CAAC,SAAS,CAAC,IAAI;IAC3B,OAAO,EAAE,0BAAM,CAAC,SAAS,CAAC,OAAO;IACjC,OAAO,EAAE,0BAAM,CAAC,SAAS,CAAC,OAAO;IACjC,OAAO,EAAE,0BAAM,CAAC,SAAS,CAAC,OAAO;IACjC,MAAM,EAAE,0BAAM,CAAC,SAAS,CAAC,MAAM;CAChC,CAAC;AAEK,MAAM,YAAY,GAA+C,CAAC,EAWrD,EAAE,EAAE;QAXiD,EACvE,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,WAAW,EACX,IAAI,EACJ,OAAO,EACP,YAAY,EAAE,SAAS,EACvB,aAAa,OAEK,EADf,KAAK,sBAV+D,kHAWxE,CADS;IAER,MAAM,KAAK,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProgressStep.js","sourceRoot":"","sources":["../../../../src/components/ProgressStepper/ProgressStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,wIAA8F;AAC9F,2DAA+C;AAC/C,wHAAuF;AACvF,4HAA2F;AAC3F,wIAAuG;AACvG,oIAAmG;AAyBnG,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,SAAgB;IACzB,OAAO,EAAE,oBAAC,2BAAe,OAAG;IAC5B,IAAI,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AAC,SAAS,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,EACzC,KAAK;QAET,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,4BAA4B,CAAC;YACtD,8BAAM,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,uBAAuB,CAAC,IAAG,KAAK,IAAI,KAAK,CAAQ,CACzE;QACN,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,uBAAuB,CAAC;YACjD,oBAAC,SAAS,kBACR,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,wBAAwB,EAAE,aAAa,IAAI,0BAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC3F,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,OAAO,IACR,CAAC,aAAa,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EACrC,CAAC,KAAK,CAAC,EAAE,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,OAAO,EAAE,EAAE,CAAC;gBAEvG,QAAQ;gBACR,aAAa,IAAI,aAAa,CAAC,OAAO,CAAC,CAC9B;YACX,WAAW,IAAI,6BAAK,SAAS,EAAE,kBAAG,CAAC,0BAAM,CAAC,8BAA8B,CAAC,IAAG,WAAW,CAAO,CAC3F,CACH,CACN,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,YAAY,gBAqDvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
package/dist/umd/react-core.js
CHANGED
|
@@ -18107,7 +18107,7 @@
|
|
|
18107
18107
|
const ProgressStep = (_a) => {
|
|
18108
18108
|
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = __rest$1(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
18109
18109
|
const _icon = icon !== undefined ? icon : variantIcons[variant];
|
|
18110
|
-
const Component = popoverRender !== undefined ? '
|
|
18110
|
+
const Component = popoverRender !== undefined ? 'button' : 'div';
|
|
18111
18111
|
const stepRef = React__namespace.useRef();
|
|
18112
18112
|
if (props.id === undefined || titleId === undefined) {
|
|
18113
18113
|
/* eslint-disable no-console */
|
|
@@ -18117,7 +18117,7 @@
|
|
|
18117
18117
|
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepConnector) },
|
|
18118
18118
|
React__namespace.createElement("span", { className: css(styles$p.progressStepperStepIcon) }, _icon && _icon)),
|
|
18119
18119
|
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepMain) },
|
|
18120
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$p.progressStepperStepTitle, popoverRender && styles$p.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && {
|
|
18120
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$p.progressStepperStepTitle, popoverRender && styles$p.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
18121
18121
|
children,
|
|
18122
18122
|
popoverRender && popoverRender(stepRef)),
|
|
18123
18123
|
description && React__namespace.createElement("div", { className: css(styles$p.progressStepperStepDescription) }, description))));
|