@patternfly/react-core 4.208.10 → 4.208.13
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 +27 -0
- package/dist/esm/components/Tabs/Tabs.d.ts +3 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +2 -2
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +3 -3
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.d.ts +2 -0
- package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardNavItem.js +2 -2
- package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.d.ts.map +1 -1
- package/dist/esm/helpers/index.js +1 -0
- package/dist/esm/helpers/index.js.map +1 -1
- package/dist/esm/helpers/useInterval.d.ts +6 -0
- package/dist/esm/helpers/useInterval.d.ts.map +1 -0
- package/dist/esm/helpers/useInterval.js +21 -0
- package/dist/esm/helpers/useInterval.js.map +1 -0
- package/dist/js/components/Tabs/Tabs.d.ts +3 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +2 -2
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +3 -3
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.d.ts +2 -0
- package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardNavItem.js +2 -2
- package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
- package/dist/js/helpers/index.d.ts +1 -0
- package/dist/js/helpers/index.d.ts.map +1 -1
- package/dist/js/helpers/index.js +1 -0
- package/dist/js/helpers/index.js.map +1 -1
- package/dist/js/helpers/useInterval.d.ts +6 -0
- package/dist/js/helpers/useInterval.d.ts.map +1 -0
- package/dist/js/helpers/useInterval.js +26 -0
- package/dist/js/helpers/useInterval.js.map +1 -0
- package/dist/umd/react-core.css +17 -15
- package/dist/umd/react-core.js +29 -7
- package/dist/umd/react-core.min.css +17 -15
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/AlertGroup/examples/AlertGroup.md +7 -361
- package/src/components/AlertGroup/examples/AlertGroupAsync.tsx +73 -0
- package/src/components/AlertGroup/examples/AlertGroupMultipleDynamic.tsx +59 -0
- package/src/components/AlertGroup/examples/AlertGroupSingularDynamic.tsx +70 -0
- package/src/components/AlertGroup/examples/AlertGroupSingularDynamicOverflow.tsx +89 -0
- package/src/components/AlertGroup/examples/AlertGroupStatic.tsx +11 -0
- package/src/components/AlertGroup/examples/AlertGroupToast.tsx +69 -0
- package/src/components/AlertGroup/examples/AlertGroupToastOverflowCapture.tsx +88 -0
- package/src/components/Tabs/Tabs.tsx +5 -1
- package/src/components/Tabs/__tests__/Tabs.test.tsx +40 -1
- package/src/components/Wizard/Wizard.tsx +3 -0
- package/src/components/Wizard/WizardNavItem.tsx +4 -0
- package/src/components/Wizard/__tests__/Wizard.test.tsx +6 -3
- package/src/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +6 -0
- package/src/demos/Tabs.md +53 -57
- package/src/helpers/index.ts +1 -0
- package/src/helpers/useInterval.ts +25 -0
|
@@ -7,7 +7,7 @@ const react_styles_1 = require("@patternfly/react-styles");
|
|
|
7
7
|
const wizard_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Wizard/wizard"));
|
|
8
8
|
const angle_right_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/angle-right-icon'));
|
|
9
9
|
const WizardNavItem = (_a) => {
|
|
10
|
-
var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false } = _a, rest = tslib_1.__rest(_a, ["children", "content", "isCurrent", "isDisabled", "step", "onNavItemClick", "navItemComponent", "href", "isExpandable"]);
|
|
10
|
+
var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false, id } = _a, rest = tslib_1.__rest(_a, ["children", "content", "isCurrent", "isDisabled", "step", "onNavItemClick", "navItemComponent", "href", "isExpandable", "id"]);
|
|
11
11
|
const NavItemComponent = navItemComponent;
|
|
12
12
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
13
13
|
React.useEffect(() => {
|
|
@@ -25,7 +25,7 @@ const WizardNavItem = (_a) => {
|
|
|
25
25
|
href
|
|
26
26
|
};
|
|
27
27
|
return (React.createElement("li", { className: react_styles_1.css(wizard_1.default.wizardNavItem, isExpandable && wizard_1.default.modifiers.expandable, isExpandable && isExpanded && wizard_1.default.modifiers.expanded) },
|
|
28
|
-
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: react_styles_1.css(wizard_1.default.wizardNavLink, isCurrent && wizard_1.default.modifiers.current, isDisabled && wizard_1.default.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React.createElement(React.Fragment, null,
|
|
28
|
+
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: react_styles_1.css(wizard_1.default.wizardNavLink, isCurrent && wizard_1.default.modifiers.current, isDisabled && wizard_1.default.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React.createElement(React.Fragment, null,
|
|
29
29
|
React.createElement("span", { className: react_styles_1.css(wizard_1.default.wizardNavLinkText) }, content),
|
|
30
30
|
React.createElement("span", { className: react_styles_1.css(wizard_1.default.wizardNavLinkToggle) },
|
|
31
31
|
React.createElement("span", { className: react_styles_1.css(wizard_1.default.wizardNavLinkToggleIcon) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavItem.js","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardNavItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,2GAA2E;AAC3E,sHAAqF;
|
|
1
|
+
{"version":3,"file":"WizardNavItem.js","sourceRoot":"","sources":["../../../../src/components/Wizard/WizardNavItem.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
package/dist/js/helpers/index.js
CHANGED
|
@@ -12,4 +12,5 @@ tslib_1.__exportStar(require("./Popper/Popper"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./useIsomorphicLayout"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./KeyboardHandler"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./resizeObserver"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./useInterval"), exports);
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,gEAAsC;AACtC,kEAAwC;AACxC,0DAAgC;AAChC,sDAA4B;AAC5B,sDAA4B;AAC5B,iDAAuB;AACvB,0DAAgC;AAChC,gEAAsC;AACtC,4DAAkC;AAClC,2DAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,gEAAsC;AACtC,kEAAwC;AACxC,0DAAgC;AAChC,sDAA4B;AAC5B,sDAA4B;AAC5B,iDAAuB;AACvB,0DAAgC;AAChC,gEAAsC;AACtC,4DAAkC;AAClC,2DAAiC;AACjC,wDAA8B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** This is a custom React hook in a format suggest by Dan Abramov in a blog post here:
|
|
2
|
+
* https://overreacted.io/making-setinterval-declarative-with-react-hooks/. It allows setInterval to be used
|
|
3
|
+
* declaratively in functional React components.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
6
|
+
//# sourceMappingURL=useInterval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInterval.d.ts","sourceRoot":"","sources":["../../../src/helpers/useInterval.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,QAiBrE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useInterval = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
/** This is a custom React hook in a format suggest by Dan Abramov in a blog post here:
|
|
7
|
+
* https://overreacted.io/making-setinterval-declarative-with-react-hooks/. It allows setInterval to be used
|
|
8
|
+
* declaratively in functional React components.
|
|
9
|
+
*/
|
|
10
|
+
function useInterval(callback, delay) {
|
|
11
|
+
const savedCallback = React.useRef(() => { });
|
|
12
|
+
React.useEffect(() => {
|
|
13
|
+
savedCallback.current = callback;
|
|
14
|
+
}, [callback]);
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
function tick() {
|
|
17
|
+
savedCallback.current();
|
|
18
|
+
}
|
|
19
|
+
if (delay !== null) {
|
|
20
|
+
const id = setInterval(tick, delay);
|
|
21
|
+
return () => clearInterval(id);
|
|
22
|
+
}
|
|
23
|
+
}, [delay]);
|
|
24
|
+
}
|
|
25
|
+
exports.useInterval = useInterval;
|
|
26
|
+
//# sourceMappingURL=useInterval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInterval.js","sourceRoot":"","sources":["../../../src/helpers/useInterval.ts"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B;;;GAGG;AAEH,SAAgB,WAAW,CAAC,QAAoB,EAAE,KAAoB;IACpE,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAE7C,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,aAAa,CAAC,OAAO,GAAG,QAAQ,CAAC;IACnC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,SAAS,IAAI;YACX,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;QAED,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACpC,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;SAChC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACd,CAAC;AAjBD,kCAiBC"}
|
package/dist/umd/react-core.css
CHANGED
|
@@ -9917,13 +9917,15 @@ label.pf-c-input-group__text {
|
|
|
9917
9917
|
--pf-c-label--m-editable__content--focus--before--BorderColor: var(--pf-c-label--m-outline__content--before--BorderColor);
|
|
9918
9918
|
}
|
|
9919
9919
|
|
|
9920
|
-
.pf-c-label.pf-m-overflow:hover,
|
|
9920
|
+
.pf-c-label.pf-m-overflow:hover,
|
|
9921
|
+
.pf-c-label.pf-m-add:hover, .pf-c-label.pf-m-outline a.pf-c-label__content:hover,
|
|
9921
9922
|
.pf-c-label.pf-m-outline button.pf-c-label__content:hover {
|
|
9922
9923
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--hover--before--BorderWidth);
|
|
9923
9924
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--hover--before--BorderColor);
|
|
9924
9925
|
}
|
|
9925
9926
|
|
|
9926
|
-
.pf-c-label.pf-m-overflow:focus,
|
|
9927
|
+
.pf-c-label.pf-m-overflow:focus,
|
|
9928
|
+
.pf-c-label.pf-m-add:focus, .pf-c-label.pf-m-outline a.pf-c-label__content:focus,
|
|
9927
9929
|
.pf-c-label.pf-m-outline button.pf-c-label__content:focus {
|
|
9928
9930
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--focus--before--BorderWidth);
|
|
9929
9931
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
|
|
@@ -9977,7 +9979,7 @@ label.pf-c-input-group__text {
|
|
|
9977
9979
|
margin-left: var(--pf-c-label__c-button--MarginLeft);
|
|
9978
9980
|
}
|
|
9979
9981
|
|
|
9980
|
-
.pf-c-label.pf-m-overflow {
|
|
9982
|
+
.pf-c-label.pf-m-overflow, .pf-c-label.pf-m-add {
|
|
9981
9983
|
--pf-c-label__content--Color: var(--pf-c-label--m-overflow__content--Color);
|
|
9982
9984
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-overflow__content--BackgroundColor);
|
|
9983
9985
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-overflow__content--before--BorderWidth);
|
|
@@ -17860,10 +17862,10 @@ span.pf-c-spinner {
|
|
|
17860
17862
|
transform: rotate(0deg);
|
|
17861
17863
|
}
|
|
17862
17864
|
50% {
|
|
17863
|
-
transform: rotate(
|
|
17865
|
+
transform: rotate(540deg);
|
|
17864
17866
|
}
|
|
17865
17867
|
100% {
|
|
17866
|
-
transform: rotate(
|
|
17868
|
+
transform: rotate(1080deg);
|
|
17867
17869
|
}
|
|
17868
17870
|
}
|
|
17869
17871
|
.pf-c-spinner__clipper {
|
|
@@ -17876,10 +17878,10 @@ span.pf-c-spinner {
|
|
|
17876
17878
|
|
|
17877
17879
|
@keyframes pf-animation-spinner__clipper {
|
|
17878
17880
|
0% {
|
|
17879
|
-
transform: rotate(
|
|
17881
|
+
transform: rotate(90deg);
|
|
17880
17882
|
}
|
|
17881
17883
|
100% {
|
|
17882
|
-
transform: rotate(
|
|
17884
|
+
transform: rotate(360deg);
|
|
17883
17885
|
}
|
|
17884
17886
|
}
|
|
17885
17887
|
.pf-c-spinner__clipper::after {
|
|
@@ -17895,10 +17897,10 @@ span.pf-c-spinner {
|
|
|
17895
17897
|
|
|
17896
17898
|
@keyframes pf-animation-spinner__clipper-after {
|
|
17897
17899
|
0% {
|
|
17898
|
-
transform: rotate(
|
|
17900
|
+
transform: rotate(-180deg);
|
|
17899
17901
|
}
|
|
17900
17902
|
100% {
|
|
17901
|
-
transform: rotate(
|
|
17903
|
+
transform: rotate(90deg);
|
|
17902
17904
|
}
|
|
17903
17905
|
}
|
|
17904
17906
|
.pf-c-spinner__lead-ball {
|
|
@@ -17926,11 +17928,11 @@ span.pf-c-spinner {
|
|
|
17926
17928
|
0% {
|
|
17927
17929
|
transform: rotate(0deg);
|
|
17928
17930
|
}
|
|
17929
|
-
|
|
17930
|
-
transform: rotate(
|
|
17931
|
+
33% {
|
|
17932
|
+
transform: rotate(180deg);
|
|
17931
17933
|
}
|
|
17932
17934
|
100% {
|
|
17933
|
-
transform: rotate(
|
|
17935
|
+
transform: rotate(360deg);
|
|
17934
17936
|
}
|
|
17935
17937
|
}
|
|
17936
17938
|
.pf-c-spinner__tail-ball {
|
|
@@ -17958,11 +17960,11 @@ span.pf-c-spinner {
|
|
|
17958
17960
|
0% {
|
|
17959
17961
|
transform: rotate(0deg);
|
|
17960
17962
|
}
|
|
17961
|
-
|
|
17962
|
-
transform: rotate(
|
|
17963
|
+
66% {
|
|
17964
|
+
transform: rotate(180deg);
|
|
17963
17965
|
}
|
|
17964
17966
|
100% {
|
|
17965
|
-
transform: rotate(
|
|
17967
|
+
transform: rotate(360deg);
|
|
17966
17968
|
}
|
|
17967
17969
|
}
|
|
17968
17970
|
svg.pf-c-spinner {
|
package/dist/umd/react-core.js
CHANGED
|
@@ -3483,6 +3483,26 @@
|
|
|
3483
3483
|
};
|
|
3484
3484
|
};
|
|
3485
3485
|
|
|
3486
|
+
/** This is a custom React hook in a format suggest by Dan Abramov in a blog post here:
|
|
3487
|
+
* https://overreacted.io/making-setinterval-declarative-with-react-hooks/. It allows setInterval to be used
|
|
3488
|
+
* declaratively in functional React components.
|
|
3489
|
+
*/
|
|
3490
|
+
function useInterval(callback, delay) {
|
|
3491
|
+
const savedCallback = React__namespace.useRef(() => { });
|
|
3492
|
+
React__namespace.useEffect(() => {
|
|
3493
|
+
savedCallback.current = callback;
|
|
3494
|
+
}, [callback]);
|
|
3495
|
+
React__namespace.useEffect(() => {
|
|
3496
|
+
function tick() {
|
|
3497
|
+
savedCallback.current();
|
|
3498
|
+
}
|
|
3499
|
+
if (delay !== null) {
|
|
3500
|
+
const id = setInterval(tick, delay);
|
|
3501
|
+
return () => clearInterval(id);
|
|
3502
|
+
}
|
|
3503
|
+
}, [delay]);
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3486
3506
|
Promise.resolve().then(function () { return bullseye; });
|
|
3487
3507
|
var styles$1h = {
|
|
3488
3508
|
"bullseye": "pf-l-bullseye"
|
|
@@ -13822,6 +13842,7 @@
|
|
|
13822
13842
|
"cyan": "pf-m-cyan",
|
|
13823
13843
|
"outline": "pf-m-outline",
|
|
13824
13844
|
"overflow": "pf-m-overflow",
|
|
13845
|
+
"add": "pf-m-add",
|
|
13825
13846
|
"editable": "pf-m-editable",
|
|
13826
13847
|
"editableActive": "pf-m-editable-active"
|
|
13827
13848
|
}
|
|
@@ -18456,7 +18477,7 @@
|
|
|
18456
18477
|
}
|
|
18457
18478
|
}
|
|
18458
18479
|
render() {
|
|
18459
|
-
const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, hasBorderBottom, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = __rest$1(_a, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "hasBorderBottom", "leftScrollAriaLabel", "rightScrollAriaLabel", 'aria-label', "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "onToggle"]);
|
|
18480
|
+
const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, hasBorderBottom, hasSecondaryBorderBottom, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = __rest$1(_a, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "hasBorderBottom", "hasSecondaryBorderBottom", "leftScrollAriaLabel", "rightScrollAriaLabel", 'aria-label', "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "onToggle"]);
|
|
18460
18481
|
const { showScrollButtons, disableLeftScrollButton, disableRightScrollButton, shownKeys, uncontrolledActiveKey, uncontrolledIsExpandedLocal } = this.state;
|
|
18461
18482
|
const filteredChildren = React__namespace.Children.toArray(children)
|
|
18462
18483
|
.filter(Boolean)
|
|
@@ -18482,7 +18503,7 @@
|
|
|
18482
18503
|
uniqueId,
|
|
18483
18504
|
handleTabClick: (...args) => this.handleTabClick(...args)
|
|
18484
18505
|
} },
|
|
18485
|
-
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$h.tabs, isFilled && styles$h.modifiers.fill, isSecondary && styles$h.modifiers.secondary, isVertical && styles$h.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$h), isVertical && expandable && isExpandedLocal && styles$h.modifiers.expanded, isBox && styles$h.modifiers.box, showScrollButtons && !isVertical && styles$h.modifiers.scrollable, usePageInsets && styles$h.modifiers.pageInsets, !hasBorderBottom && styles$h.modifiers.noBorderBottom, formatBreakpointMods(inset, styles$h), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
18506
|
+
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$h.tabs, isFilled && styles$h.modifiers.fill, isSecondary && styles$h.modifiers.secondary, isVertical && styles$h.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$h), isVertical && expandable && isExpandedLocal && styles$h.modifiers.expanded, isBox && styles$h.modifiers.box, showScrollButtons && !isVertical && styles$h.modifiers.scrollable, usePageInsets && styles$h.modifiers.pageInsets, !hasBorderBottom && styles$h.modifiers.noBorderBottom, hasSecondaryBorderBottom && styles$h.modifiers.borderBottom, formatBreakpointMods(inset, styles$h), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
18486
18507
|
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$h.tabsToggle) },
|
|
18487
18508
|
React__namespace.createElement("div", { className: css(styles$h.tabsToggleButton) },
|
|
18488
18509
|
React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
|
|
@@ -20018,7 +20039,7 @@
|
|
|
20018
20039
|
WizardNav.displayName = 'WizardNav';
|
|
20019
20040
|
|
|
20020
20041
|
const WizardNavItem = (_a) => {
|
|
20021
|
-
var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false } = _a, rest = __rest$1(_a, ["children", "content", "isCurrent", "isDisabled", "step", "onNavItemClick", "navItemComponent", "href", "isExpandable"]);
|
|
20042
|
+
var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false, id } = _a, rest = __rest$1(_a, ["children", "content", "isCurrent", "isDisabled", "step", "onNavItemClick", "navItemComponent", "href", "isExpandable", "id"]);
|
|
20022
20043
|
const NavItemComponent = navItemComponent;
|
|
20023
20044
|
const [isExpanded, setIsExpanded] = React__namespace.useState(false);
|
|
20024
20045
|
React__namespace.useEffect(() => {
|
|
@@ -20036,7 +20057,7 @@
|
|
|
20036
20057
|
href
|
|
20037
20058
|
};
|
|
20038
20059
|
return (React__namespace.createElement("li", { className: css(styles$a.wizardNavItem, isExpandable && styles$a.modifiers.expandable, isExpandable && isExpanded && styles$a.modifiers.expanded) },
|
|
20039
|
-
React__namespace.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css(styles$a.wizardNavLink, isCurrent && styles$a.modifiers.current, isDisabled && styles$a.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
20060
|
+
React__namespace.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css(styles$a.wizardNavLink, isCurrent && styles$a.modifiers.current, isDisabled && styles$a.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
20040
20061
|
React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkText) }, content),
|
|
20041
20062
|
React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkToggle) },
|
|
20042
20063
|
React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkToggleIcon) },
|
|
@@ -20261,7 +20282,7 @@
|
|
|
20261
20282
|
}
|
|
20262
20283
|
}
|
|
20263
20284
|
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.steps[0].name);
|
|
20264
|
-
return (React__namespace.createElement(WizardNavItem, { key: index, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },
|
|
20285
|
+
return (React__namespace.createElement(WizardNavItem, { key: index, id: step.id, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },
|
|
20265
20286
|
React__namespace.createElement(WizardNav, Object.assign({}, wizNavAProps, { returnList: true }), step.steps.map((childStep, indexChild) => {
|
|
20266
20287
|
if (childStep.isFinishedStep) {
|
|
20267
20288
|
// Don't show finished step in the side nav
|
|
@@ -20269,12 +20290,12 @@
|
|
|
20269
20290
|
}
|
|
20270
20291
|
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, childStep.name);
|
|
20271
20292
|
enabled = childStep.canJumpTo;
|
|
20272
|
-
return (React__namespace.createElement(WizardNavItem, { key: `child_${indexChild}`, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));
|
|
20293
|
+
return (React__namespace.createElement(WizardNavItem, { key: `child_${indexChild}`, id: childStep.id, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));
|
|
20273
20294
|
}))));
|
|
20274
20295
|
}
|
|
20275
20296
|
navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.name);
|
|
20276
20297
|
enabled = step.canJumpTo;
|
|
20277
|
-
return (React__namespace.createElement(WizardNavItem, Object.assign({}, step.stepNavItemProps, { key: index, content: step.name, isCurrent: activeStep.name === step.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep })));
|
|
20298
|
+
return (React__namespace.createElement(WizardNavItem, Object.assign({}, step.stepNavItemProps, { key: index, id: step.id, content: step.name, isCurrent: activeStep.name === step.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep })));
|
|
20278
20299
|
})));
|
|
20279
20300
|
};
|
|
20280
20301
|
const context = {
|
|
@@ -22338,6 +22359,7 @@
|
|
|
22338
22359
|
exports.sideElementIsOutOfView = sideElementIsOutOfView;
|
|
22339
22360
|
exports.toCamel = toCamel;
|
|
22340
22361
|
exports.trimLeft = trimLeft;
|
|
22362
|
+
exports.useInterval = useInterval;
|
|
22341
22363
|
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
|
|
22342
22364
|
exports.useOUIAId = useOUIAId;
|
|
22343
22365
|
exports.useOUIAProps = useOUIAProps;
|
|
@@ -9917,13 +9917,15 @@ label.pf-c-input-group__text {
|
|
|
9917
9917
|
--pf-c-label--m-editable__content--focus--before--BorderColor: var(--pf-c-label--m-outline__content--before--BorderColor);
|
|
9918
9918
|
}
|
|
9919
9919
|
|
|
9920
|
-
.pf-c-label.pf-m-overflow:hover,
|
|
9920
|
+
.pf-c-label.pf-m-overflow:hover,
|
|
9921
|
+
.pf-c-label.pf-m-add:hover, .pf-c-label.pf-m-outline a.pf-c-label__content:hover,
|
|
9921
9922
|
.pf-c-label.pf-m-outline button.pf-c-label__content:hover {
|
|
9922
9923
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--hover--before--BorderWidth);
|
|
9923
9924
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--hover--before--BorderColor);
|
|
9924
9925
|
}
|
|
9925
9926
|
|
|
9926
|
-
.pf-c-label.pf-m-overflow:focus,
|
|
9927
|
+
.pf-c-label.pf-m-overflow:focus,
|
|
9928
|
+
.pf-c-label.pf-m-add:focus, .pf-c-label.pf-m-outline a.pf-c-label__content:focus,
|
|
9927
9929
|
.pf-c-label.pf-m-outline button.pf-c-label__content:focus {
|
|
9928
9930
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-outline__content--link--focus--before--BorderWidth);
|
|
9929
9931
|
--pf-c-label__content--before--BorderColor: var(--pf-c-label--m-outline__content--link--focus--before--BorderColor);
|
|
@@ -9977,7 +9979,7 @@ label.pf-c-input-group__text {
|
|
|
9977
9979
|
margin-left: var(--pf-c-label__c-button--MarginLeft);
|
|
9978
9980
|
}
|
|
9979
9981
|
|
|
9980
|
-
.pf-c-label.pf-m-overflow {
|
|
9982
|
+
.pf-c-label.pf-m-overflow, .pf-c-label.pf-m-add {
|
|
9981
9983
|
--pf-c-label__content--Color: var(--pf-c-label--m-overflow__content--Color);
|
|
9982
9984
|
--pf-c-label--BackgroundColor: var(--pf-c-label--m-overflow__content--BackgroundColor);
|
|
9983
9985
|
--pf-c-label__content--before--BorderWidth: var(--pf-c-label--m-overflow__content--before--BorderWidth);
|
|
@@ -17860,10 +17862,10 @@ span.pf-c-spinner {
|
|
|
17860
17862
|
transform: rotate(0deg);
|
|
17861
17863
|
}
|
|
17862
17864
|
50% {
|
|
17863
|
-
transform: rotate(
|
|
17865
|
+
transform: rotate(540deg);
|
|
17864
17866
|
}
|
|
17865
17867
|
100% {
|
|
17866
|
-
transform: rotate(
|
|
17868
|
+
transform: rotate(1080deg);
|
|
17867
17869
|
}
|
|
17868
17870
|
}
|
|
17869
17871
|
.pf-c-spinner__clipper {
|
|
@@ -17876,10 +17878,10 @@ span.pf-c-spinner {
|
|
|
17876
17878
|
|
|
17877
17879
|
@keyframes pf-animation-spinner__clipper {
|
|
17878
17880
|
0% {
|
|
17879
|
-
transform: rotate(
|
|
17881
|
+
transform: rotate(90deg);
|
|
17880
17882
|
}
|
|
17881
17883
|
100% {
|
|
17882
|
-
transform: rotate(
|
|
17884
|
+
transform: rotate(360deg);
|
|
17883
17885
|
}
|
|
17884
17886
|
}
|
|
17885
17887
|
.pf-c-spinner__clipper::after {
|
|
@@ -17895,10 +17897,10 @@ span.pf-c-spinner {
|
|
|
17895
17897
|
|
|
17896
17898
|
@keyframes pf-animation-spinner__clipper-after {
|
|
17897
17899
|
0% {
|
|
17898
|
-
transform: rotate(
|
|
17900
|
+
transform: rotate(-180deg);
|
|
17899
17901
|
}
|
|
17900
17902
|
100% {
|
|
17901
|
-
transform: rotate(
|
|
17903
|
+
transform: rotate(90deg);
|
|
17902
17904
|
}
|
|
17903
17905
|
}
|
|
17904
17906
|
.pf-c-spinner__lead-ball {
|
|
@@ -17926,11 +17928,11 @@ span.pf-c-spinner {
|
|
|
17926
17928
|
0% {
|
|
17927
17929
|
transform: rotate(0deg);
|
|
17928
17930
|
}
|
|
17929
|
-
|
|
17930
|
-
transform: rotate(
|
|
17931
|
+
33% {
|
|
17932
|
+
transform: rotate(180deg);
|
|
17931
17933
|
}
|
|
17932
17934
|
100% {
|
|
17933
|
-
transform: rotate(
|
|
17935
|
+
transform: rotate(360deg);
|
|
17934
17936
|
}
|
|
17935
17937
|
}
|
|
17936
17938
|
.pf-c-spinner__tail-ball {
|
|
@@ -17958,11 +17960,11 @@ span.pf-c-spinner {
|
|
|
17958
17960
|
0% {
|
|
17959
17961
|
transform: rotate(0deg);
|
|
17960
17962
|
}
|
|
17961
|
-
|
|
17962
|
-
transform: rotate(
|
|
17963
|
+
66% {
|
|
17964
|
+
transform: rotate(180deg);
|
|
17963
17965
|
}
|
|
17964
17966
|
100% {
|
|
17965
|
-
transform: rotate(
|
|
17967
|
+
transform: rotate(360deg);
|
|
17966
17968
|
}
|
|
17967
17969
|
}
|
|
17968
17970
|
svg.pf-c-spinner {
|