@patternfly/react-core 4.232.13 → 4.234.0
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 +33 -0
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +17 -3
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js +39 -8
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +2 -0
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js +4 -4
- package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/esm/components/InputGroup/InputGroup.js +5 -3
- package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.d.ts +5 -0
- package/dist/esm/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +5 -4
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.d.ts +1 -0
- package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +14 -2
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/components/Timestamp/Timestamp.d.ts +72 -0
- package/dist/esm/components/Timestamp/Timestamp.d.ts.map +1 -0
- package/dist/esm/components/Timestamp/Timestamp.js +33 -0
- package/dist/esm/components/Timestamp/Timestamp.js.map +1 -0
- package/dist/esm/components/Timestamp/index.d.ts +2 -0
- package/dist/esm/components/Timestamp/index.d.ts.map +1 -0
- package/dist/esm/components/Timestamp/index.js +2 -0
- package/dist/esm/components/Timestamp/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +17 -3
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js +40 -9
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +2 -0
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js +4 -4
- package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/js/components/InputGroup/InputGroup.js +5 -3
- package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.d.ts +5 -0
- package/dist/js/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/js/components/NumberInput/NumberInput.js +4 -3
- package/dist/js/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.d.ts +1 -0
- package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +14 -2
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/components/Timestamp/Timestamp.d.ts +72 -0
- package/dist/js/components/Timestamp/Timestamp.d.ts.map +1 -0
- package/dist/js/components/Timestamp/Timestamp.js +37 -0
- package/dist/js/components/Timestamp/Timestamp.js.map +1 -0
- package/dist/js/components/Timestamp/index.d.ts +2 -0
- package/dist/js/components/Timestamp/index.d.ts.map +1 -0
- package/dist/js/components/Timestamp/index.js +5 -0
- package/dist/js/components/Timestamp/index.js.map +1 -0
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +1 -0
- package/dist/js/components/index.js.map +1 -1
- package/dist/styles/base-no-reset.css +2 -2
- package/dist/styles/base.css +2 -2
- package/dist/umd/react-core.css +58 -12
- package/dist/umd/react-core.js +861 -770
- package/dist/umd/react-core.min.css +312 -266
- package/dist/umd/react-core.min.js +5 -5
- package/package.json +6 -6
- package/src/components/Button/examples/Button.md +55 -24
- package/src/components/ContextSelector/examples/ContextSelectorBasic.tsx +4 -4
- package/src/components/ContextSelector/examples/ContextSelectorPlainText.tsx +3 -3
- package/src/components/ContextSelector/examples/ContextSelectorWithFooter.tsx +4 -4
- package/src/components/DualListSelector/examples/DualListSelectorComposable.tsx +8 -2
- package/src/components/DualListSelector/examples/DualListSelectorComposableDragDrop.tsx +3 -9
- package/src/components/DualListSelector/examples/DualListSelectorComposableTree.tsx +3 -3
- package/src/components/DualListSelector/examples/DualListSelectorTreeExample.tsx +8 -5
- package/src/components/ExpandableSection/ExpandableSection.tsx +73 -19
- package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +15 -9
- package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +27 -1
- package/src/components/ExpandableSection/examples/ExpandableSection.md +7 -0
- package/src/components/ExpandableSection/examples/ExpandableSectionTruncateExpansion.tsx +27 -0
- package/src/components/InputGroup/InputGroup.tsx +5 -3
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +30 -0
- package/src/components/MenuToggle/MenuToggle.tsx +2 -2
- package/src/components/NumberInput/NumberInput.tsx +14 -8
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +16 -0
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +292 -18
- package/src/components/NumberInput/examples/NumberInput.md +5 -0
- package/src/components/NumberInput/examples/WithStatus.tsx +59 -0
- package/src/components/TimePicker/TimePicker.tsx +19 -11
- package/src/components/Timestamp/Timestamp.tsx +134 -0
- package/src/components/Timestamp/__tests__/Timestamp.test.tsx +177 -0
- package/src/components/Timestamp/__tests__/__snapshots__/Timestamp.test.tsx.snap +17 -0
- package/src/components/Timestamp/examples/Timestamp.md +57 -0
- package/src/components/Timestamp/examples/TimestampBasicFormats.tsx +26 -0
- package/src/components/Timestamp/examples/TimestampCustomContent.tsx +20 -0
- package/src/components/Timestamp/examples/TimestampCustomFormat.tsx +6 -0
- package/src/components/Timestamp/examples/TimestampCustomTooltip.tsx +19 -0
- package/src/components/Timestamp/examples/TimestampDefault.tsx +4 -0
- package/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx +18 -0
- package/src/components/Timestamp/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/demos/Button.md +5 -1
- package/src/demos/ComposableMenu/examples/ComposableActionsMenu.tsx +12 -8
- package/src/demos/ComposableMenu/examples/ComposableApplicationLauncher.tsx +12 -11
- package/src/demos/ComposableMenu/examples/ComposableContextSelector.tsx +10 -12
- package/src/demos/ComposableMenu/examples/ComposableDrilldownMenu.tsx +7 -7
- package/src/demos/ComposableMenu/examples/ComposableFlyout.tsx +8 -8
- package/src/demos/ComposableMenu/examples/ComposableSimpleCheckboxSelect.tsx +11 -8
- package/src/demos/ComposableMenu/examples/ComposableSimpleDropdown.tsx +7 -7
- package/src/demos/ComposableMenu/examples/ComposableSimpleSelect.tsx +17 -8
- package/src/demos/ComposableMenu/examples/ComposableTreeViewMenu.tsx +11 -10
- package/src/demos/ComposableMenu/examples/ComposableTypeaheadSelect.tsx +2 -2
package/dist/umd/react-core.js
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
Promise.resolve().then(function () { return backdrop; });
|
|
99
|
-
var styles$
|
|
99
|
+
var styles$1i = {
|
|
100
100
|
"backdrop": "pf-c-backdrop",
|
|
101
101
|
"backdropOpen": "pf-c-backdrop__open"
|
|
102
102
|
};
|
|
@@ -4191,12 +4191,12 @@
|
|
|
4191
4191
|
}
|
|
4192
4192
|
|
|
4193
4193
|
Promise.resolve().then(function () { return bullseye; });
|
|
4194
|
-
var styles$
|
|
4194
|
+
var styles$1h = {
|
|
4195
4195
|
"bullseye": "pf-l-bullseye"
|
|
4196
4196
|
};
|
|
4197
4197
|
|
|
4198
4198
|
Promise.resolve().then(function () { return aboutModalBox; });
|
|
4199
|
-
var styles$
|
|
4199
|
+
var styles$1g = {
|
|
4200
4200
|
"aboutModalBox": "pf-c-about-modal-box",
|
|
4201
4201
|
"aboutModalBoxBrand": "pf-c-about-modal-box__brand",
|
|
4202
4202
|
"aboutModalBoxBrandImage": "pf-c-about-modal-box__brand-image",
|
|
@@ -4214,7 +4214,7 @@
|
|
|
4214
4214
|
};
|
|
4215
4215
|
|
|
4216
4216
|
Promise.resolve().then(function () { return content; });
|
|
4217
|
-
var styles$
|
|
4217
|
+
var styles$1f = {
|
|
4218
4218
|
"content": "pf-c-content",
|
|
4219
4219
|
"modifiers": {
|
|
4220
4220
|
"visited": "pf-m-visited",
|
|
@@ -4224,14 +4224,14 @@
|
|
|
4224
4224
|
|
|
4225
4225
|
const AboutModalBoxContent = (_a) => {
|
|
4226
4226
|
var { children, className = '', trademark, id, noAboutModalBoxContentContainer = false } = _a, props = __rest$1(_a, ["children", "className", "trademark", "id", "noAboutModalBoxContentContainer"]);
|
|
4227
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4228
|
-
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$
|
|
4229
|
-
React__namespace.createElement("p", { className: css(styles$
|
|
4227
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxContent, className), id: id }, props),
|
|
4228
|
+
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$1f.content) }, children)),
|
|
4229
|
+
React__namespace.createElement("p", { className: css(styles$1g.aboutModalBoxStrapline) }, trademark)));
|
|
4230
4230
|
};
|
|
4231
4231
|
AboutModalBoxContent.displayName = 'AboutModalBoxContent';
|
|
4232
4232
|
|
|
4233
4233
|
Promise.resolve().then(function () { return title; });
|
|
4234
|
-
var styles$
|
|
4234
|
+
var styles$1e = {
|
|
4235
4235
|
"modifiers": {
|
|
4236
4236
|
"4xl": "pf-m-4xl",
|
|
4237
4237
|
"3xl": "pf-m-3xl",
|
|
@@ -4265,13 +4265,13 @@
|
|
|
4265
4265
|
const Title = (_a) => {
|
|
4266
4266
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4267
4267
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4268
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$
|
|
4268
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$1e.title, size && styles$1e.modifiers[size], className) }), children));
|
|
4269
4269
|
};
|
|
4270
4270
|
Title.displayName = 'Title';
|
|
4271
4271
|
|
|
4272
4272
|
const AboutModalBoxHeader = (_a) => {
|
|
4273
4273
|
var { className = '', productName = '', id } = _a, props = __rest$1(_a, ["className", "productName", "id"]);
|
|
4274
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4274
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxHeader, className) }, props),
|
|
4275
4275
|
React__namespace.createElement(Title, { headingLevel: "h1", size: "4xl", id: id }, productName)));
|
|
4276
4276
|
};
|
|
4277
4277
|
AboutModalBoxHeader.displayName = 'AboutModalBoxHeader';
|
|
@@ -4288,14 +4288,14 @@
|
|
|
4288
4288
|
/* eslint-disable camelcase */
|
|
4289
4289
|
backgroundImageSrc !== ''
|
|
4290
4290
|
? { [c_about_modal_box__hero_sm_BackgroundImage.name]: `url(${backgroundImageSrc})` }
|
|
4291
|
-
: {}, className: css(styles$
|
|
4291
|
+
: {}, className: css(styles$1g.aboutModalBoxHero, className) }, props)));
|
|
4292
4292
|
};
|
|
4293
4293
|
AboutModalBoxHero.displayName = 'AboutModalBoxHero';
|
|
4294
4294
|
|
|
4295
4295
|
const AboutModalBoxBrand = (_a) => {
|
|
4296
4296
|
var { className = '', src = '', alt } = _a, props = __rest$1(_a, ["className", "src", "alt"]);
|
|
4297
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4298
|
-
React__namespace.createElement("img", { className: css(styles$
|
|
4297
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxBrand, className) }, props),
|
|
4298
|
+
React__namespace.createElement("img", { className: css(styles$1g.aboutModalBoxBrandImage), src: src, alt: alt })));
|
|
4299
4299
|
};
|
|
4300
4300
|
AboutModalBoxBrand.displayName = 'AboutModalBoxBrand';
|
|
4301
4301
|
|
|
@@ -4335,7 +4335,7 @@
|
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
4337
|
Promise.resolve().then(function () { return spinner; });
|
|
4338
|
-
var styles$
|
|
4338
|
+
var styles$1d = {
|
|
4339
4339
|
"modifiers": {
|
|
4340
4340
|
"sm": "pf-m-sm",
|
|
4341
4341
|
"md": "pf-m-md",
|
|
@@ -4361,10 +4361,10 @@
|
|
|
4361
4361
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4362
4362
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
|
|
4363
4363
|
const Component = isSVG ? 'svg' : 'span';
|
|
4364
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
4365
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4366
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4367
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4364
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1d.spinner, styles$1d.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: styles$1d.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4365
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerClipper) }),
|
|
4366
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerLeadBall) }),
|
|
4367
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerTailBall) })))));
|
|
4368
4368
|
};
|
|
4369
4369
|
Spinner.displayName = 'Spinner';
|
|
4370
4370
|
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
|
|
4510
4510
|
const AboutModalBoxCloseButton = (_a) => {
|
|
4511
4511
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close Dialog' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
4512
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4512
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxClose, className) }, props),
|
|
4513
4513
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
4514
4514
|
React__namespace.createElement(TimesIcon, null))));
|
|
4515
4515
|
};
|
|
@@ -4517,13 +4517,13 @@
|
|
|
4517
4517
|
|
|
4518
4518
|
const AboutModalBox = (_a) => {
|
|
4519
4519
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4520
|
-
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$
|
|
4520
|
+
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$1g.aboutModalBox, className) }, props), children));
|
|
4521
4521
|
};
|
|
4522
4522
|
AboutModalBox.displayName = 'AboutModalBox';
|
|
4523
4523
|
|
|
4524
4524
|
const Backdrop = (_a) => {
|
|
4525
4525
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4526
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4526
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1i.backdrop, className) }), children));
|
|
4527
4527
|
};
|
|
4528
4528
|
Backdrop.displayName = 'Backdrop';
|
|
4529
4529
|
|
|
@@ -4533,7 +4533,7 @@
|
|
|
4533
4533
|
return null;
|
|
4534
4534
|
}
|
|
4535
4535
|
return (React__namespace.createElement(Backdrop, null,
|
|
4536
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
4536
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1h.bullseye) },
|
|
4537
4537
|
React__namespace.createElement(AboutModalBox, { className: className, "aria-labelledby": aboutModalBoxHeaderId, "aria-describedby": aboutModalBoxContentId },
|
|
4538
4538
|
React__namespace.createElement(AboutModalBoxBrand, { src: brandImageSrc, alt: brandImageAlt }),
|
|
4539
4539
|
React__namespace.createElement(AboutModalBoxCloseButton, { "aria-label": closeButtonAriaLabel, onClose: onClose }),
|
|
@@ -4585,20 +4585,20 @@
|
|
|
4585
4585
|
target.appendChild(container);
|
|
4586
4586
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
4587
4587
|
if (this.props.isOpen) {
|
|
4588
|
-
target.classList.add(css(styles$
|
|
4588
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
4589
4589
|
}
|
|
4590
4590
|
else {
|
|
4591
|
-
target.classList.remove(css(styles$
|
|
4591
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4592
4592
|
}
|
|
4593
4593
|
}
|
|
4594
4594
|
componentDidUpdate() {
|
|
4595
4595
|
const target = this.getElement(this.props.appendTo);
|
|
4596
4596
|
if (this.props.isOpen) {
|
|
4597
|
-
target.classList.add(css(styles$
|
|
4597
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
4598
4598
|
this.toggleSiblingsFromScreenReaders(true);
|
|
4599
4599
|
}
|
|
4600
4600
|
else {
|
|
4601
|
-
target.classList.remove(css(styles$
|
|
4601
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4602
4602
|
this.toggleSiblingsFromScreenReaders(false);
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
@@ -4608,7 +4608,7 @@
|
|
|
4608
4608
|
target.removeChild(this.state.container);
|
|
4609
4609
|
}
|
|
4610
4610
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
4611
|
-
target.classList.remove(css(styles$
|
|
4611
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4612
4612
|
}
|
|
4613
4613
|
render() {
|
|
4614
4614
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4634,7 +4634,7 @@
|
|
|
4634
4634
|
};
|
|
4635
4635
|
|
|
4636
4636
|
Promise.resolve().then(function () { return accordion; });
|
|
4637
|
-
var styles$
|
|
4637
|
+
var styles$1c = {
|
|
4638
4638
|
"accordion": "pf-c-accordion",
|
|
4639
4639
|
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
4640
4640
|
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
@@ -4655,7 +4655,7 @@
|
|
|
4655
4655
|
const Accordion = (_a) => {
|
|
4656
4656
|
var { children = null, className = '', 'aria-label': ariaLabel = '', headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
4657
4657
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
4658
|
-
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$
|
|
4658
|
+
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$1c.accordion, isBordered && styles$1c.modifiers.bordered, displaySize === 'large' && styles$1c.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
4659
4659
|
React__namespace.createElement(AccordionContext.Provider, { value: {
|
|
4660
4660
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
4661
4661
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -4663,14 +4663,14 @@
|
|
|
4663
4663
|
};
|
|
4664
4664
|
Accordion.displayName = 'Accordion';
|
|
4665
4665
|
|
|
4666
|
-
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$
|
|
4666
|
+
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$1c.accordionExpandedContentBody) }, children);
|
|
4667
4667
|
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
4668
4668
|
|
|
4669
4669
|
const AccordionContent = (_a) => {
|
|
4670
4670
|
var { className = '', children = null, id = '', isHidden = false, isFixed = false, isCustomContent = false, 'aria-label': ariaLabel = '', component } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", "isFixed", "isCustomContent", 'aria-label', "component"]);
|
|
4671
4671
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
4672
4672
|
const Container = component || ContentContainer;
|
|
4673
|
-
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$
|
|
4673
|
+
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$1c.accordionExpandedContent, isFixed && styles$1c.modifiers.fixed, !isHidden && styles$1c.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React__namespace.createElement(AccordionExpandedContentBody, null, children)));
|
|
4674
4674
|
}));
|
|
4675
4675
|
};
|
|
4676
4676
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -4694,16 +4694,16 @@
|
|
|
4694
4694
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
4695
4695
|
const Container = component || ToggleContainer;
|
|
4696
4696
|
return (React__namespace.createElement(Container, null,
|
|
4697
|
-
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
4698
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4699
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4697
|
+
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$1c.accordionToggle, isExpanded && styles$1c.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4698
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleText) }, children),
|
|
4699
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleIcon) },
|
|
4700
4700
|
React__namespace.createElement(AngleRightIcon, null)))));
|
|
4701
4701
|
}));
|
|
4702
4702
|
};
|
|
4703
4703
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
4704
4704
|
|
|
4705
4705
|
Promise.resolve().then(function () { return actionList; });
|
|
4706
|
-
var styles$
|
|
4706
|
+
var styles$1b = {
|
|
4707
4707
|
"actionList": "pf-c-action-list",
|
|
4708
4708
|
"actionListGroup": "pf-c-action-list__group",
|
|
4709
4709
|
"modifiers": {
|
|
@@ -4713,13 +4713,13 @@
|
|
|
4713
4713
|
|
|
4714
4714
|
const ActionList = (_a) => {
|
|
4715
4715
|
var { children, isIconList, className = '' } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
4716
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4716
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionList, isIconList && styles$1b.modifiers.icons, className) }, props), children));
|
|
4717
4717
|
};
|
|
4718
4718
|
ActionList.displayName = 'ActionList';
|
|
4719
4719
|
|
|
4720
4720
|
const ActionListGroup = (_a) => {
|
|
4721
4721
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4722
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4722
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionListGroup, className) }, props), children));
|
|
4723
4723
|
};
|
|
4724
4724
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
4725
4725
|
|
|
@@ -4730,7 +4730,7 @@
|
|
|
4730
4730
|
ActionListItem.displayName = 'ActionListItem';
|
|
4731
4731
|
|
|
4732
4732
|
Promise.resolve().then(function () { return alert; });
|
|
4733
|
-
var styles$
|
|
4733
|
+
var styles$1a = {
|
|
4734
4734
|
"alert": "pf-c-alert",
|
|
4735
4735
|
"alertAction": "pf-c-alert__action",
|
|
4736
4736
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4842,7 +4842,7 @@
|
|
|
4842
4842
|
const AlertIcon = (_a) => {
|
|
4843
4843
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
4844
4844
|
const Icon = variantIcons$2[variant];
|
|
4845
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4845
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1a.alertIcon, className) }), customIcon || React__namespace.createElement(Icon, null)));
|
|
4846
4846
|
};
|
|
4847
4847
|
|
|
4848
4848
|
const AlertContext = React__namespace.createContext(null);
|
|
@@ -4854,7 +4854,7 @@
|
|
|
4854
4854
|
};
|
|
4855
4855
|
|
|
4856
4856
|
Promise.resolve().then(function () { return tooltip; });
|
|
4857
|
-
var styles$
|
|
4857
|
+
var styles$19 = {
|
|
4858
4858
|
"modifiers": {
|
|
4859
4859
|
"top": "pf-m-top",
|
|
4860
4860
|
"topLeft": "pf-m-top-left",
|
|
@@ -4878,13 +4878,13 @@
|
|
|
4878
4878
|
|
|
4879
4879
|
const TooltipContent = (_a) => {
|
|
4880
4880
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
4881
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4881
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipContent, isLeftAligned && styles$19.modifiers.textAlignLeft, className) }, props), children));
|
|
4882
4882
|
};
|
|
4883
4883
|
TooltipContent.displayName = 'TooltipContent';
|
|
4884
4884
|
|
|
4885
4885
|
const TooltipArrow = (_a) => {
|
|
4886
4886
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
4887
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4887
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipArrow, className) }, props));
|
|
4888
4888
|
};
|
|
4889
4889
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4890
4890
|
|
|
@@ -4983,21 +4983,21 @@
|
|
|
4983
4983
|
}, exitDelay);
|
|
4984
4984
|
};
|
|
4985
4985
|
const positionModifiers = {
|
|
4986
|
-
top: styles$
|
|
4987
|
-
bottom: styles$
|
|
4988
|
-
left: styles$
|
|
4989
|
-
right: styles$
|
|
4990
|
-
'top-start': styles$
|
|
4991
|
-
'top-end': styles$
|
|
4992
|
-
'bottom-start': styles$
|
|
4993
|
-
'bottom-end': styles$
|
|
4994
|
-
'left-start': styles$
|
|
4995
|
-
'left-end': styles$
|
|
4996
|
-
'right-start': styles$
|
|
4997
|
-
'right-end': styles$
|
|
4986
|
+
top: styles$19.modifiers.top,
|
|
4987
|
+
bottom: styles$19.modifiers.bottom,
|
|
4988
|
+
left: styles$19.modifiers.left,
|
|
4989
|
+
right: styles$19.modifiers.right,
|
|
4990
|
+
'top-start': styles$19.modifiers.topLeft,
|
|
4991
|
+
'top-end': styles$19.modifiers.topRight,
|
|
4992
|
+
'bottom-start': styles$19.modifiers.bottomLeft,
|
|
4993
|
+
'bottom-end': styles$19.modifiers.bottomRight,
|
|
4994
|
+
'left-start': styles$19.modifiers.leftTop,
|
|
4995
|
+
'left-end': styles$19.modifiers.leftBottom,
|
|
4996
|
+
'right-start': styles$19.modifiers.rightTop,
|
|
4997
|
+
'right-end': styles$19.modifiers.rightBottom
|
|
4998
4998
|
};
|
|
4999
4999
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
5000
|
-
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$
|
|
5000
|
+
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
5001
5001
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
5002
5002
|
opacity,
|
|
5003
5003
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -5034,7 +5034,7 @@
|
|
|
5034
5034
|
var { 'aria-label': ariaLabel, variantLabel, onToggleExpand, isExpanded } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
5035
5035
|
const { title, variantLabel: alertVariantLabel } = React__namespace.useContext(AlertContext);
|
|
5036
5036
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
5037
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5037
|
+
React__namespace.createElement("span", { className: css(styles$1a.alertToggleIcon) },
|
|
5038
5038
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
5039
5039
|
};
|
|
5040
5040
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5118,20 +5118,20 @@
|
|
|
5118
5118
|
if (dismissed) {
|
|
5119
5119
|
return null;
|
|
5120
5120
|
}
|
|
5121
|
-
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
5122
|
-
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$
|
|
5121
|
+
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$1a.alertTitle, truncateTitle && styles$1a.modifiers.truncate) }), getHeadingContent));
|
|
5122
|
+
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$1a.alert, isInline && styles$1a.modifiers.inline, isPlain && styles$1a.modifiers.plain, isExpandable && styles$1a.modifiers.expandable, isExpanded && styles$1a.modifiers.expanded, styles$1a.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
5123
5123
|
'aria-live': 'polite',
|
|
5124
5124
|
'aria-atomic': 'false'
|
|
5125
5125
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
|
|
5126
5126
|
isExpandable && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5127
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5127
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertToggle) },
|
|
5128
5128
|
React__namespace.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5129
5129
|
React__namespace.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5130
5130
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5131
5131
|
actionClose && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5132
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5133
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
5134
|
-
actionLinks && React__namespace.createElement("div", { className: css(styles$
|
|
5132
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertAction) }, actionClose))),
|
|
5133
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$1a.alertDescription) }, children)),
|
|
5134
|
+
actionLinks && React__namespace.createElement("div", { className: css(styles$1a.alertActionGroup) }, actionLinks)));
|
|
5135
5135
|
};
|
|
5136
5136
|
Alert.displayName = 'Alert';
|
|
5137
5137
|
|
|
@@ -5151,7 +5151,7 @@
|
|
|
5151
5151
|
AlertActionLink.displayName = 'AlertActionLink';
|
|
5152
5152
|
|
|
5153
5153
|
Promise.resolve().then(function () { return alertGroup; });
|
|
5154
|
-
var styles$
|
|
5154
|
+
var styles$18 = {
|
|
5155
5155
|
"alertGroup": "pf-c-alert-group",
|
|
5156
5156
|
"alertGroupOverflowButton": "pf-c-alert-group__overflow-button",
|
|
5157
5157
|
"modifiers": {
|
|
@@ -5161,10 +5161,10 @@
|
|
|
5161
5161
|
|
|
5162
5162
|
const AlertGroupInline = (_a) => {
|
|
5163
5163
|
var { className, children, isToast, isLiveRegion, onOverflowClick, overflowMessage } = _a, rest = __rest$1(_a, ["className", "children", "isToast", "isLiveRegion", "onOverflowClick", "overflowMessage"]);
|
|
5164
|
-
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$
|
|
5164
|
+
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$18.alertGroup, className, isToast ? styles$18.modifiers.toast : '') }, rest),
|
|
5165
5165
|
React__namespace.Children.toArray(children).map((Alert, index) => (React__namespace.createElement("li", { key: index }, Alert))),
|
|
5166
5166
|
overflowMessage && (React__namespace.createElement("li", null,
|
|
5167
|
-
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$
|
|
5167
|
+
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$18.alertGroupOverflowButton) }, overflowMessage)))));
|
|
5168
5168
|
};
|
|
5169
5169
|
AlertGroupInline.displayName = 'AlertGroupInline';
|
|
5170
5170
|
|
|
@@ -5210,7 +5210,7 @@
|
|
|
5210
5210
|
AlertGroup.displayName = 'AlertGroup';
|
|
5211
5211
|
|
|
5212
5212
|
Promise.resolve().then(function () { return appLauncher; });
|
|
5213
|
-
var styles$
|
|
5213
|
+
var styles$17 = {
|
|
5214
5214
|
"appLauncher": "pf-c-app-launcher",
|
|
5215
5215
|
"appLauncherGroup": "pf-c-app-launcher__group",
|
|
5216
5216
|
"appLauncherGroupTitle": "pf-c-app-launcher__group-title",
|
|
@@ -5268,7 +5268,7 @@
|
|
|
5268
5268
|
const ThIcon = createIcon(ThIconConfig);
|
|
5269
5269
|
|
|
5270
5270
|
Promise.resolve().then(function () { return dropdown; });
|
|
5271
|
-
var styles$
|
|
5271
|
+
var styles$16 = {
|
|
5272
5272
|
"badge": "pf-c-badge",
|
|
5273
5273
|
"check": "pf-c-check",
|
|
5274
5274
|
"divider": "pf-c-divider",
|
|
@@ -5451,12 +5451,12 @@
|
|
|
5451
5451
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
5452
5452
|
keyHandler: this.childKeyHandler,
|
|
5453
5453
|
sendRef: this.sendRef
|
|
5454
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5454
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5455
5455
|
const MenuComponent = (menuComponent || 'div');
|
|
5456
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5456
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5457
5457
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5458
5458
|
const MenuComponent = (menuComponent || component);
|
|
5459
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5459
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5460
5460
|
})))));
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5471,7 +5471,7 @@
|
|
|
5471
5471
|
isGrouped: false,
|
|
5472
5472
|
setMenuComponentRef: null
|
|
5473
5473
|
};
|
|
5474
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
5474
|
+
DropdownMenu.validToggleClasses = [styles$16.dropdownToggle, styles$16.dropdownToggleButton];
|
|
5475
5475
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
5476
5476
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
5477
5477
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -5526,8 +5526,8 @@
|
|
|
5526
5526
|
// This removes the `position: absolute` styling from the `.pf-c-dropdown__menu`
|
|
5527
5527
|
// allowing the menu to flip correctly
|
|
5528
5528
|
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert', minWidth: 'min-content' } }), { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }), renderedContent));
|
|
5529
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5530
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5529
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
5530
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, isFullHeight && styles$16.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
5531
5531
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
5532
5532
|
parentRef: this.baseComponentRef,
|
|
5533
5533
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -5575,7 +5575,7 @@
|
|
|
5575
5575
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5576
5576
|
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
5577
5577
|
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled"]);
|
|
5578
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$
|
|
5578
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$16.dropdownToggleText, toggleIconClass: styles$16.dropdownToggleImage, toggleIndicatorClass: styles$16.dropdownToggleIcon, menuClass: styles$16.dropdownMenu, itemClass: styles$16.dropdownMenuItem, toggleClass: styles$16.dropdownToggle, baseClass: styles$16.dropdown, baseComponent: 'div', sectionClass: styles$16.dropdownGroup, sectionTitleClass: styles$16.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$16.modifiers.disabled, plainTextClass: styles$16.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
5579
5579
|
React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled }, props))));
|
|
5580
5580
|
};
|
|
5581
5581
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -5660,7 +5660,7 @@
|
|
|
5660
5660
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5661
5661
|
const _a = this.props, { className, children, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = __rest$1(_a, ["className", "children", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
5662
5662
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5663
|
-
let classes = css(icon && styles$
|
|
5663
|
+
let classes = css(icon && styles$16.modifiers.icon, isAriaDisabled && styles$16.modifiers.ariaDisabled, className);
|
|
5664
5664
|
if (component === 'a') {
|
|
5665
5665
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
5666
5666
|
}
|
|
@@ -5675,17 +5675,17 @@
|
|
|
5675
5675
|
const renderDefaultComponent = (tag) => {
|
|
5676
5676
|
const Component = tag;
|
|
5677
5677
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5678
|
-
React__namespace.createElement("div", { className: styles$
|
|
5679
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5678
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemMain },
|
|
5679
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
5680
5680
|
children),
|
|
5681
|
-
React__namespace.createElement("div", { className: styles$
|
|
5682
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5681
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5682
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
5683
5683
|
children));
|
|
5684
5684
|
return (React__namespace.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID, role: role }), componentContent));
|
|
5685
5685
|
};
|
|
5686
5686
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
5687
5687
|
if (this.props.role !== 'separator') {
|
|
5688
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$
|
|
5688
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$16.modifiers.description);
|
|
5689
5689
|
}
|
|
5690
5690
|
if (customChild) {
|
|
5691
5691
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -5739,7 +5739,7 @@
|
|
|
5739
5739
|
DropdownItem.displayName = 'DropdownItem';
|
|
5740
5740
|
|
|
5741
5741
|
Promise.resolve().then(function () { return divider; });
|
|
5742
|
-
var styles$
|
|
5742
|
+
var styles$15 = {
|
|
5743
5743
|
"divider": "pf-c-divider",
|
|
5744
5744
|
"modifiers": {
|
|
5745
5745
|
"hidden": "pf-m-hidden",
|
|
@@ -5824,7 +5824,7 @@
|
|
|
5824
5824
|
const Divider = (_a) => {
|
|
5825
5825
|
var { className, component = exports.DividerVariant.hr, isVertical = false, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset", "orientation"]);
|
|
5826
5826
|
const Component = component;
|
|
5827
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
5827
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$15.divider, isVertical && styles$15.modifiers.vertical, formatBreakpointMods(inset, styles$15), formatBreakpointMods(orientation, styles$15), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5828
5828
|
};
|
|
5829
5829
|
Divider.displayName = 'Divider';
|
|
5830
5830
|
|
|
@@ -5851,8 +5851,8 @@
|
|
|
5851
5851
|
|
|
5852
5852
|
const buttonVariantStyles = {
|
|
5853
5853
|
default: '',
|
|
5854
|
-
primary: styles$
|
|
5855
|
-
secondary: styles$
|
|
5854
|
+
primary: styles$16.modifiers.primary,
|
|
5855
|
+
secondary: styles$16.modifiers.secondary
|
|
5856
5856
|
};
|
|
5857
5857
|
class Toggle extends React__namespace.Component {
|
|
5858
5858
|
constructor() {
|
|
@@ -5917,7 +5917,7 @@
|
|
|
5917
5917
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5918
5918
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5919
5919
|
id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
5920
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$
|
|
5920
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$16.dropdownToggleButton : toggleClass || styles$16.dropdownToggle, isActive && styles$16.modifiers.active, isPlain && styles$16.modifiers.plain, isText && styles$16.modifiers.text, isPrimary && styles$16.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
5921
5921
|
}
|
|
5922
5922
|
}
|
|
5923
5923
|
Toggle.displayName = 'Toggle';
|
|
@@ -5959,7 +5959,7 @@
|
|
|
5959
5959
|
return (React__namespace.createElement(Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain || true, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
|
|
5960
5960
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps),
|
|
5961
5961
|
children,
|
|
5962
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5962
|
+
React__namespace.createElement("span", { className: css(styles$16.dropdownToggleIcon) },
|
|
5963
5963
|
React__namespace.createElement(CaretDownIcon, null)))));
|
|
5964
5964
|
};
|
|
5965
5965
|
BadgeToggle.displayName = 'BadgeToggle';
|
|
@@ -6003,7 +6003,7 @@
|
|
|
6003
6003
|
ToggleIndicator && (React__namespace.createElement("span", { className: css(!splitButtonItems && toggleIndicatorClass) },
|
|
6004
6004
|
React__namespace.createElement(ToggleIndicator, null)))))));
|
|
6005
6005
|
if (splitButtonItems) {
|
|
6006
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
6006
|
+
return (React__namespace.createElement("div", { className: css(styles$16.dropdownToggle, styles$16.modifiers.splitButton, splitButtonVariant === 'action' && styles$16.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$16.modifiers.primary, toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles$16.modifiers.secondary, isDisabled && styles$16.modifiers.disabled) },
|
|
6007
6007
|
splitButtonItems,
|
|
6008
6008
|
toggle));
|
|
6009
6009
|
}
|
|
@@ -6038,8 +6038,8 @@
|
|
|
6038
6038
|
onChange, checked } = _a,
|
|
6039
6039
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6040
6040
|
props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "checked"]);
|
|
6041
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
6042
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
6041
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$16.dropdownToggleText, className), "aria-hidden": "true", id: `${props.id}-text` }, children));
|
|
6042
|
+
return (React__namespace.createElement("label", { className: css(styles$16.dropdownToggleCheck, className), htmlFor: props.id },
|
|
6043
6043
|
React__namespace.createElement("input", Object.assign({}, props, (this.calculateChecked() !== undefined && { onChange: this.handleChange }), { type: "checkbox", ref: elem => elem && (elem.indeterminate = isChecked === null), "aria-invalid": !isValid, disabled: isDisabled, checked: this.calculateChecked() }, getOUIAProps(DropdownToggleCheckbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
6044
6044
|
text));
|
|
6045
6045
|
}
|
|
@@ -6055,7 +6055,7 @@
|
|
|
6055
6055
|
class DropdownToggleAction extends React__namespace.Component {
|
|
6056
6056
|
render() {
|
|
6057
6057
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
6058
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
6058
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$16.dropdownToggleButton, className), onClick: onClick }, (isDisabled && { disabled: true, 'aria-disabled': true }), props), children));
|
|
6059
6059
|
}
|
|
6060
6060
|
}
|
|
6061
6061
|
DropdownToggleAction.displayName = 'DropdownToggleAction';
|
|
@@ -6081,7 +6081,7 @@
|
|
|
6081
6081
|
var {
|
|
6082
6082
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6083
6083
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6084
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
6084
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$17.appLauncherMenuItemIcon) }, props), children));
|
|
6085
6085
|
};
|
|
6086
6086
|
ApplicationLauncherIcon.displayName = 'ApplicationLauncherIcon';
|
|
6087
6087
|
|
|
@@ -6108,7 +6108,7 @@
|
|
|
6108
6108
|
icon && React__namespace.createElement(ApplicationLauncherIcon, null, icon),
|
|
6109
6109
|
icon ? React__namespace.createElement(ApplicationLauncherText, null, children) : children,
|
|
6110
6110
|
isExternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6111
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6111
|
+
React__namespace.createElement("span", { className: css(styles$17.appLauncherMenuItemExternalIcon) },
|
|
6112
6112
|
React__namespace.createElement(ExternalLinkAltIcon, null)),
|
|
6113
6113
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, "(opens new window)")))))));
|
|
6114
6114
|
ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';
|
|
@@ -6132,8 +6132,8 @@
|
|
|
6132
6132
|
const ApplicationLauncherItem = (_a) => {
|
|
6133
6133
|
var { className = '', id, children, icon = null, isExternal = false, href, tooltip = null, tooltipProps = null, component = 'a', isFavorite = null, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', customChild, enterTriggersArrowDown = false } = _a, props = __rest$1(_a, ["className", "id", "children", "icon", "isExternal", "href", "tooltip", "tooltipProps", "component", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "customChild", "enterTriggersArrowDown"]);
|
|
6134
6134
|
return (React__namespace.createElement(ApplicationLauncherItemContext.Provider, { value: { isExternal, icon } },
|
|
6135
|
-
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$
|
|
6136
|
-
additionalChild: (React__namespace.createElement("button", { className: css(styles$
|
|
6135
|
+
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$17.modifiers.external, isFavorite !== null && styles$17.modifiers.link, className), listItemClassName: css(onFavorite && styles$17.appLauncherMenuWrapper, isFavorite && styles$17.modifiers.favorite), tooltip: tooltip, tooltipProps: tooltipProps }, (enterTriggersArrowDown === true && { enterTriggersArrowDown }), (customChild && { customChild }), (isFavorite !== null && {
|
|
6136
|
+
additionalChild: (React__namespace.createElement("button", { className: css(styles$17.appLauncherMenuItem, styles$17.modifiers.action), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6137
6137
|
onFavorite((id || getUniqueId('app-launcher-option')).replace('favorite-', ''), isFavorite);
|
|
6138
6138
|
} },
|
|
6139
6139
|
React__namespace.createElement(StarIcon, null)))
|
|
@@ -6207,7 +6207,7 @@
|
|
|
6207
6207
|
super(...arguments);
|
|
6208
6208
|
this.createSearchBox = () => {
|
|
6209
6209
|
const { onSearch, searchPlaceholderText, searchProps } = this.props;
|
|
6210
|
-
return (React__namespace.createElement("div", { key: "search", className: css(styles$
|
|
6210
|
+
return (React__namespace.createElement("div", { key: "search", className: css(styles$17.appLauncherMenuSearch) },
|
|
6211
6211
|
React__namespace.createElement(ApplicationLauncherItem, { customChild: React__namespace.createElement("input", Object.assign({ type: "search", className: css(formStyles.formControl), placeholder: searchPlaceholderText, onChange: e => onSearch(e.target.value) }, searchProps)) })));
|
|
6212
6212
|
};
|
|
6213
6213
|
}
|
|
@@ -6251,15 +6251,15 @@
|
|
|
6251
6251
|
return (React__namespace.createElement(ApplicationLauncherContext.Provider, { value: { onFavorite } },
|
|
6252
6252
|
React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
6253
6253
|
onSelect,
|
|
6254
|
-
menuClass: styles$
|
|
6255
|
-
itemClass: styles$
|
|
6256
|
-
toggleClass: styles$
|
|
6257
|
-
baseClass: styles$
|
|
6254
|
+
menuClass: styles$17.appLauncherMenu,
|
|
6255
|
+
itemClass: styles$17.appLauncherMenuItem,
|
|
6256
|
+
toggleClass: styles$17.appLauncherToggle,
|
|
6257
|
+
baseClass: styles$17.appLauncher,
|
|
6258
6258
|
baseComponent: 'nav',
|
|
6259
|
-
sectionClass: styles$
|
|
6260
|
-
sectionTitleClass: styles$
|
|
6259
|
+
sectionClass: styles$17.appLauncherGroup,
|
|
6260
|
+
sectionTitleClass: styles$17.appLauncherGroupTitle,
|
|
6261
6261
|
sectionComponent: 'section',
|
|
6262
|
-
disabledClass: styles$
|
|
6262
|
+
disabledClass: styles$17.modifiers.disabled,
|
|
6263
6263
|
ouiaComponentType: ApplicationLauncher.displayName
|
|
6264
6264
|
} },
|
|
6265
6265
|
React__namespace.createElement(DropdownWithContext, Object.assign({}, props, { dropdownItems: renderableItems, isOpen: isOpen, className: className, "aria-label": ariaLabel, menuAppendTo: menuAppendTo, toggle: React__namespace.createElement(DropdownToggle, { id: toggleId, toggleIndicator: null, isOpen: isOpen, onToggle: onToggle, isDisabled: isDisabled, "aria-label": ariaLabel }, toggleIcon), isGrouped: isGrouped })))));
|
|
@@ -6287,7 +6287,7 @@
|
|
|
6287
6287
|
};
|
|
6288
6288
|
|
|
6289
6289
|
Promise.resolve().then(function () { return avatar; });
|
|
6290
|
-
var styles$
|
|
6290
|
+
var styles$14 = {
|
|
6291
6291
|
"avatar": "pf-c-avatar",
|
|
6292
6292
|
"modifiers": {
|
|
6293
6293
|
"light": "pf-m-light",
|
|
@@ -6301,12 +6301,12 @@
|
|
|
6301
6301
|
|
|
6302
6302
|
const Avatar = (_a) => {
|
|
6303
6303
|
var { className = '', src = '', alt, border, size } = _a, props = __rest$1(_a, ["className", "src", "alt", "border", "size"]);
|
|
6304
|
-
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$
|
|
6304
|
+
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$14.avatar, styles$14.modifiers[size], border === 'light' && styles$14.modifiers.light, border === 'dark' && styles$14.modifiers.dark, className) }, props)));
|
|
6305
6305
|
};
|
|
6306
6306
|
Avatar.displayName = 'Avatar';
|
|
6307
6307
|
|
|
6308
6308
|
Promise.resolve().then(function () { return backToTop; });
|
|
6309
|
-
var styles$
|
|
6309
|
+
var styles$13 = {
|
|
6310
6310
|
"backToTop": "pf-c-back-to-top",
|
|
6311
6311
|
"button": "pf-c-button",
|
|
6312
6312
|
"modifiers": {
|
|
@@ -6371,7 +6371,7 @@
|
|
|
6371
6371
|
const handleClick = () => {
|
|
6372
6372
|
scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
|
|
6373
6373
|
};
|
|
6374
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6374
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$13.backToTop, !visible && styles$13.modifiers.hidden, className), ref: innerRef, onClick: handleClick }, props),
|
|
6375
6375
|
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
6376
6376
|
};
|
|
6377
6377
|
const BackToTop = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(BackToTopBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -6414,7 +6414,7 @@
|
|
|
6414
6414
|
};
|
|
6415
6415
|
|
|
6416
6416
|
Promise.resolve().then(function () { return backgroundImage; });
|
|
6417
|
-
var styles$
|
|
6417
|
+
var styles$12 = {
|
|
6418
6418
|
"backgroundImage": "pf-c-background-image",
|
|
6419
6419
|
"backgroundImageFilter": "pf-c-background-image__filter"
|
|
6420
6420
|
};
|
|
@@ -6448,13 +6448,13 @@
|
|
|
6448
6448
|
[c_background_image_BackgroundImage_lg.name]: getUrlValue('lg'),
|
|
6449
6449
|
[c_background_image_Filter.name]: `url(#${filterId})`
|
|
6450
6450
|
};
|
|
6451
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6451
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$12.backgroundImage, className), style: style }, props),
|
|
6452
6452
|
React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "pf-c-background-image__filter", width: "0", height: "0" }, React__namespace.cloneElement(filter, { id: filterId }))));
|
|
6453
6453
|
};
|
|
6454
6454
|
BackgroundImage.displayName = 'BackgroundImage';
|
|
6455
6455
|
|
|
6456
6456
|
Promise.resolve().then(function () { return banner; });
|
|
6457
|
-
var styles$
|
|
6457
|
+
var styles$11 = {
|
|
6458
6458
|
"banner": "pf-c-banner",
|
|
6459
6459
|
"button": "pf-c-button",
|
|
6460
6460
|
"card": "pf-c-card",
|
|
@@ -6472,14 +6472,14 @@
|
|
|
6472
6472
|
|
|
6473
6473
|
const Banner = (_a) => {
|
|
6474
6474
|
var { children, className, variant = 'default', screenReaderText, isSticky = false } = _a, props = __rest$1(_a, ["children", "className", "variant", "screenReaderText", "isSticky"]);
|
|
6475
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6475
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$11.banner, styles$11.modifiers[variant], isSticky && styles$11.modifiers.sticky, className) }, props),
|
|
6476
6476
|
children,
|
|
6477
6477
|
React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenReaderText || `${variant} banner`)));
|
|
6478
6478
|
};
|
|
6479
6479
|
Banner.displayName = 'Banner';
|
|
6480
6480
|
|
|
6481
6481
|
Promise.resolve().then(function () { return brand; });
|
|
6482
|
-
var styles
|
|
6482
|
+
var styles$10 = {
|
|
6483
6483
|
"brand": "pf-c-brand",
|
|
6484
6484
|
"modifiers": {
|
|
6485
6485
|
"picture": "pf-m-picture"
|
|
@@ -6496,14 +6496,14 @@
|
|
|
6496
6496
|
}
|
|
6497
6497
|
return (
|
|
6498
6498
|
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
|
|
6499
|
-
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles
|
|
6499
|
+
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles$10.brand, styles$10.modifiers.picture, className), style: style }, props),
|
|
6500
6500
|
children,
|
|
6501
|
-
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles
|
|
6501
|
+
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles$10.brand, className), src: src, alt: alt }))));
|
|
6502
6502
|
};
|
|
6503
6503
|
Brand.displayName = 'Brand';
|
|
6504
6504
|
|
|
6505
6505
|
Promise.resolve().then(function () { return breadcrumb; });
|
|
6506
|
-
var styles
|
|
6506
|
+
var styles$$ = {
|
|
6507
6507
|
"breadcrumb": "pf-c-breadcrumb",
|
|
6508
6508
|
"breadcrumbDropdown": "pf-c-breadcrumb__dropdown",
|
|
6509
6509
|
"breadcrumbHeading": "pf-c-breadcrumb__heading",
|
|
@@ -6522,8 +6522,8 @@
|
|
|
6522
6522
|
const Breadcrumb = (_a) => {
|
|
6523
6523
|
var { children = null, className = '', 'aria-label': ariaLabel = 'Breadcrumb', ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "ouiaId", "ouiaSafe"]);
|
|
6524
6524
|
const ouiaProps = useOUIAProps(Breadcrumb.displayName, ouiaId, ouiaSafe);
|
|
6525
|
-
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles
|
|
6526
|
-
React__namespace.createElement("ol", { className: styles
|
|
6525
|
+
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles$$.breadcrumb, className) }, ouiaProps),
|
|
6526
|
+
React__namespace.createElement("ol", { className: styles$$.breadcrumbList }, React__namespace.Children.map(children, (child, index) => {
|
|
6527
6527
|
const showDivider = index > 0;
|
|
6528
6528
|
if (React__namespace.isValidElement(child)) {
|
|
6529
6529
|
return React__namespace.cloneElement(child, { showDivider });
|
|
@@ -6537,12 +6537,12 @@
|
|
|
6537
6537
|
var { children = null, className: classNameProp = '', to = undefined, isActive = false, isDropdown = false, showDivider, target = undefined, component = 'a', render = undefined } = _a, props = __rest$1(_a, ["children", "className", "to", "isActive", "isDropdown", "showDivider", "target", "component", "render"]);
|
|
6538
6538
|
const Component = component;
|
|
6539
6539
|
const ariaCurrent = isActive ? 'page' : undefined;
|
|
6540
|
-
const className = css(styles
|
|
6541
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6542
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6540
|
+
const className = css(styles$$.breadcrumbLink, isActive && styles$$.modifiers.current);
|
|
6541
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, classNameProp) }),
|
|
6542
|
+
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6543
6543
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
6544
6544
|
component === 'button' && (React__namespace.createElement("button", { className: className, "aria-current": ariaCurrent, type: "button" }, children)),
|
|
6545
|
-
isDropdown && React__namespace.createElement("span", { className: css(styles
|
|
6545
|
+
isDropdown && React__namespace.createElement("span", { className: css(styles$$.breadcrumbDropdown) }, children),
|
|
6546
6546
|
render && render({ className, ariaCurrent }),
|
|
6547
6547
|
to && !render && (React__namespace.createElement(Component, { href: to, target: target, className: className, "aria-current": ariaCurrent }, children)),
|
|
6548
6548
|
!to && component !== 'button' && !isDropdown && children));
|
|
@@ -6552,12 +6552,12 @@
|
|
|
6552
6552
|
const BreadcrumbHeading = (_a) => {
|
|
6553
6553
|
var { children = null, className = '', to = undefined, target = undefined, component = 'a', showDivider } = _a, props = __rest$1(_a, ["children", "className", "to", "target", "component", "showDivider"]);
|
|
6554
6554
|
const Component = component;
|
|
6555
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6556
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6555
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, className) }),
|
|
6556
|
+
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6557
6557
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
6558
|
-
React__namespace.createElement("h1", { className: styles
|
|
6559
|
-
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles
|
|
6560
|
-
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles
|
|
6558
|
+
React__namespace.createElement("h1", { className: styles$$.breadcrumbHeading },
|
|
6559
|
+
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": true, type: "button" }, children)),
|
|
6560
|
+
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": "page" }, children)),
|
|
6561
6561
|
!to && component !== 'button' && React__namespace.createElement(React__namespace.Fragment, null, children))));
|
|
6562
6562
|
};
|
|
6563
6563
|
BreadcrumbHeading.displayName = 'BreadcrumbHeading';
|
|
@@ -6668,7 +6668,7 @@
|
|
|
6668
6668
|
TextInput.displayName = 'TextInput';
|
|
6669
6669
|
|
|
6670
6670
|
Promise.resolve().then(function () { return select; });
|
|
6671
|
-
var styles$
|
|
6671
|
+
var styles$_ = {
|
|
6672
6672
|
"check": "pf-c-check",
|
|
6673
6673
|
"checkLabel": "pf-c-check__label",
|
|
6674
6674
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -6740,7 +6740,7 @@
|
|
|
6740
6740
|
const TimesCircleIcon = createIcon(TimesCircleIconConfig);
|
|
6741
6741
|
|
|
6742
6742
|
Promise.resolve().then(function () { return form; });
|
|
6743
|
-
var styles$
|
|
6743
|
+
var styles$Z = {
|
|
6744
6744
|
"form": "pf-c-form",
|
|
6745
6745
|
"formActions": "pf-c-form__actions",
|
|
6746
6746
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -6795,7 +6795,7 @@
|
|
|
6795
6795
|
};
|
|
6796
6796
|
|
|
6797
6797
|
Promise.resolve().then(function () { return check; });
|
|
6798
|
-
var styles$
|
|
6798
|
+
var styles$Y = {
|
|
6799
6799
|
"check": "pf-c-check",
|
|
6800
6800
|
"checkBody": "pf-c-check__body",
|
|
6801
6801
|
"checkDescription": "pf-c-check__description",
|
|
@@ -6914,16 +6914,16 @@
|
|
|
6914
6914
|
console.error('Please provide an id to use the favorites feature.');
|
|
6915
6915
|
}
|
|
6916
6916
|
const generatedId = id || getUniqueId('select-option');
|
|
6917
|
-
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$
|
|
6917
|
+
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$_.selectMenuItem, styles$_.modifiers.action, styles$_.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6918
6918
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
6919
6919
|
}, onKeyDown: event => {
|
|
6920
6920
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
6921
6921
|
}, ref: this.favoriteRef },
|
|
6922
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6922
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemActionIcon) },
|
|
6923
6923
|
React__namespace.createElement(StarIcon, null))));
|
|
6924
|
-
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$
|
|
6925
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6926
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6924
|
+
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemRow) },
|
|
6925
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6926
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
6927
6927
|
const onViewMoreClick = (event) => {
|
|
6928
6928
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
6929
6929
|
setViewMoreNextIndex();
|
|
@@ -6931,26 +6931,26 @@
|
|
|
6931
6931
|
};
|
|
6932
6932
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
6933
6933
|
if (variant !== exports.SelectVariant.checkbox && isLoading && isGrouped) {
|
|
6934
|
-
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$
|
|
6934
|
+
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$_.selectListItem, isLoading && styles$_.modifiers.loading, className) }, children));
|
|
6935
6935
|
}
|
|
6936
6936
|
else if (variant !== exports.SelectVariant.checkbox && isLoad && isGrouped) {
|
|
6937
6937
|
return (React__namespace.createElement("div", null,
|
|
6938
|
-
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$
|
|
6938
|
+
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$_.selectMenuItem, styles$_.modifiers.load, className), onClick: (event) => {
|
|
6939
6939
|
onViewMoreClick(event);
|
|
6940
6940
|
event.stopPropagation();
|
|
6941
6941
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
6942
6942
|
}
|
|
6943
6943
|
else if (variant !== exports.SelectVariant.checkbox) {
|
|
6944
|
-
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$
|
|
6944
|
+
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$_.selectListItem, !isLoading && styles$_.selectMenuWrapper, isFavorite && styles$_.modifiers.favorite, isFocused && styles$_.modifiers.focus, isLoading && styles$_.modifiers.loading), ref: this.liRef },
|
|
6945
6945
|
isLoading && children,
|
|
6946
|
-
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$
|
|
6946
|
+
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$_.selectMenuItem, styles$_.modifiers.load, className), onClick: (event) => {
|
|
6947
6947
|
onViewMoreClick(event);
|
|
6948
6948
|
event.stopPropagation();
|
|
6949
6949
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
6950
6950
|
this.onKeyDown(event, 0);
|
|
6951
6951
|
}, type: "button" }), itemDisplay)),
|
|
6952
6952
|
!isLoading && !isLoad && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6953
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
6953
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$_.selectMenuItem, isLoad && styles$_.modifiers.load, isSelected && styles$_.modifiers.selected, isDisabled && styles$_.modifiers.disabled, description && styles$_.modifiers.description, isFavorite !== null && styles$_.modifiers.link, className), onClick: (event) => {
|
|
6954
6954
|
if (!isDisabled) {
|
|
6955
6955
|
onClick(event);
|
|
6956
6956
|
onSelect(event, value, isPlaceholder);
|
|
@@ -6960,19 +6960,19 @@
|
|
|
6960
6960
|
this.onKeyDown(event, 0);
|
|
6961
6961
|
}, type: "button" }),
|
|
6962
6962
|
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6963
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6963
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemMain) },
|
|
6964
6964
|
itemDisplay,
|
|
6965
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6965
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6966
6966
|
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6967
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6967
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemDescription) }, description))),
|
|
6968
6968
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6969
6969
|
itemDisplay,
|
|
6970
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6970
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6971
6971
|
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))))),
|
|
6972
6972
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6973
6973
|
}
|
|
6974
6974
|
else if (variant === exports.SelectVariant.checkbox && isLoad) {
|
|
6975
|
-
return (React__namespace.createElement("button", { className: css(styles$
|
|
6975
|
+
return (React__namespace.createElement("button", { className: css(styles$_.selectMenuItem, styles$_.modifiers.load, isFocused && styles$_.modifiers.focus, className), onKeyDown: (event) => {
|
|
6976
6976
|
this.onKeyDown(event, 0, undefined, true);
|
|
6977
6977
|
}, onClick: (event) => {
|
|
6978
6978
|
onViewMoreClick(event);
|
|
@@ -6980,24 +6980,24 @@
|
|
|
6980
6980
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
6981
6981
|
}
|
|
6982
6982
|
else if (variant === exports.SelectVariant.checkbox && isLoading) {
|
|
6983
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
6983
|
+
return (React__namespace.createElement("div", { className: css(styles$_.selectListItem, isLoading && styles$_.modifiers.loading, className) }, children));
|
|
6984
6984
|
}
|
|
6985
6985
|
else if (variant === exports.SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
6986
|
-
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$
|
|
6986
|
+
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$Y.check, styles$_.selectMenuItem, isDisabled && styles$_.modifiers.disabled, description && styles$_.modifiers.description, className), onKeyDown: (event) => {
|
|
6987
6987
|
this.onKeyDown(event, 0, undefined, true);
|
|
6988
6988
|
} }),
|
|
6989
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$
|
|
6989
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$Y.checkInput), type: "checkbox", onChange: event => {
|
|
6990
6990
|
if (!isDisabled) {
|
|
6991
6991
|
onClick(event);
|
|
6992
6992
|
onSelect(event, value);
|
|
6993
6993
|
}
|
|
6994
6994
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
6995
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6996
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
6995
|
+
React__namespace.createElement("span", { className: css(styles$Y.checkLabel, isDisabled && styles$_.modifiers.disabled) }, itemDisplay),
|
|
6996
|
+
description && React__namespace.createElement("div", { className: css(styles$Y.checkDescription) }, description)));
|
|
6997
6997
|
}
|
|
6998
6998
|
else if (variant === exports.SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
6999
6999
|
return (React__namespace.createElement("div", null,
|
|
7000
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
7000
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$_.selectMenuItem, isSelected && styles$_.modifiers.selected, isDisabled && styles$_.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
7001
7001
|
this.onKeyDown(event, 0, undefined, true);
|
|
7002
7002
|
}, type: "button" }), itemDisplay)));
|
|
7003
7003
|
}
|
|
@@ -7029,8 +7029,8 @@
|
|
|
7029
7029
|
|
|
7030
7030
|
const SelectGroup = (_a) => {
|
|
7031
7031
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId"]);
|
|
7032
|
-
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
7033
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
7032
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$_.selectMenuGroup, className) }),
|
|
7033
|
+
React__namespace.createElement("div", { className: css(styles$_.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
7034
7034
|
variant === exports.SelectVariant.checkbox ? children : React__namespace.createElement("ul", { role: "listbox" }, children)))));
|
|
7035
7035
|
};
|
|
7036
7036
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -7112,7 +7112,7 @@
|
|
|
7112
7112
|
}
|
|
7113
7113
|
return React__namespace.cloneElement(group, {
|
|
7114
7114
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
7115
|
-
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$
|
|
7115
|
+
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$_.selectMenuFieldset) }, React__namespace.Children.map(group.props.children, (option) => option.type === Divider
|
|
7116
7116
|
? option
|
|
7117
7117
|
: React__namespace.cloneElement(option, {
|
|
7118
7118
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -7139,7 +7139,7 @@
|
|
|
7139
7139
|
const _a = this.props, { children, isCustomContent, className, isExpanded, openedOnEnter, selected, checked, isGrouped, position, sendRef, keyHandler, maxHeight, noResultsFoundText, createText, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, hasInlineFilter, innerRef, footer, footerRef, isLastOptionBeforeFooter } = _a, props = __rest$1(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
|
|
7140
7140
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
7141
7141
|
let Component = 'div';
|
|
7142
|
-
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$
|
|
7142
|
+
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$_.selectMenu : 'pf-c-select__menu-list', position === exports.SelectPosition.right && styles$_.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
7143
7143
|
const extendedChildren = () => variant === exports.SelectVariant.checkbox
|
|
7144
7144
|
? this.extendCheckboxChildren(children)
|
|
7145
7145
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -7148,10 +7148,10 @@
|
|
|
7148
7148
|
}
|
|
7149
7149
|
else if (hasInlineFilter) {
|
|
7150
7150
|
if (React__namespace.Children.count(children) === 0) {
|
|
7151
|
-
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$
|
|
7151
|
+
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$_.selectMenuFieldset) });
|
|
7152
7152
|
}
|
|
7153
7153
|
else {
|
|
7154
|
-
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$
|
|
7154
|
+
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$Z.formFieldset) },
|
|
7155
7155
|
children.shift(),
|
|
7156
7156
|
extendedChildren()));
|
|
7157
7157
|
}
|
|
@@ -7167,7 +7167,7 @@
|
|
|
7167
7167
|
}
|
|
7168
7168
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7169
7169
|
React__namespace.createElement(Component, Object.assign({}, variantProps, props)),
|
|
7170
|
-
footer && (React__namespace.createElement("div", { className: css(styles$
|
|
7170
|
+
footer && (React__namespace.createElement("div", { className: css(styles$_.selectMenuFooter), ref: footerRef }, footer))));
|
|
7171
7171
|
}
|
|
7172
7172
|
render() {
|
|
7173
7173
|
return React__namespace.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -7331,7 +7331,7 @@
|
|
|
7331
7331
|
'aria-haspopup': (variant !== exports.SelectVariant.checkbox && 'listbox') || null
|
|
7332
7332
|
};
|
|
7333
7333
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7334
|
-
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$
|
|
7334
|
+
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$_.selectToggle, hasPlaceholderStyle && styles$_.modifiers.placeholder, isDisabled && styles$_.modifiers.disabled, isPlain && styles$_.modifiers.plain, isActive && styles$_.modifiers.active, className), "aria-label": ariaLabel, onBlur: onBlur,
|
|
7335
7335
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7336
7336
|
onClick: event => {
|
|
7337
7337
|
onToggle(!isOpen, event);
|
|
@@ -7340,9 +7340,9 @@
|
|
|
7340
7340
|
}
|
|
7341
7341
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
7342
7342
|
children,
|
|
7343
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7343
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleArrow) },
|
|
7344
7344
|
React__namespace.createElement(CaretDownIcon, null)))),
|
|
7345
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$
|
|
7345
|
+
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$_.selectToggle, hasPlaceholderStyle && styles$_.modifiers.placeholder, isDisabled && styles$_.modifiers.disabled, isPlain && styles$_.modifiers.plain, isTypeahead && styles$_.modifiers.typeahead, className), onBlur: onBlur,
|
|
7346
7346
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7347
7347
|
onClick: event => {
|
|
7348
7348
|
if (!isDisabled) {
|
|
@@ -7353,7 +7353,7 @@
|
|
|
7353
7353
|
}
|
|
7354
7354
|
}, onKeyDown: this.onKeyDown }),
|
|
7355
7355
|
children,
|
|
7356
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$
|
|
7356
|
+
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$_.selectToggleButton, styles$_.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
7357
7357
|
onToggle(!isOpen, event);
|
|
7358
7358
|
if (isOpen) {
|
|
7359
7359
|
onClose();
|
|
@@ -7362,7 +7362,7 @@
|
|
|
7362
7362
|
} }, ((variant === exports.SelectVariant.typeahead || variant === exports.SelectVariant.typeaheadMulti) && {
|
|
7363
7363
|
tabIndex: -1
|
|
7364
7364
|
}), { disabled: isDisabled }),
|
|
7365
|
-
React__namespace.createElement(CaretDownIcon, { className: css(styles$
|
|
7365
|
+
React__namespace.createElement(CaretDownIcon, { className: css(styles$_.selectToggleArrow) }))))));
|
|
7366
7366
|
}
|
|
7367
7367
|
}
|
|
7368
7368
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -7386,7 +7386,7 @@
|
|
|
7386
7386
|
};
|
|
7387
7387
|
|
|
7388
7388
|
Promise.resolve().then(function () { return chipGroup; });
|
|
7389
|
-
var styles$
|
|
7389
|
+
var styles$X = {
|
|
7390
7390
|
"chipGroup": "pf-c-chip-group",
|
|
7391
7391
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
7392
7392
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -7399,7 +7399,7 @@
|
|
|
7399
7399
|
};
|
|
7400
7400
|
|
|
7401
7401
|
Promise.resolve().then(function () { return chip; });
|
|
7402
|
-
var styles$
|
|
7402
|
+
var styles$W = {
|
|
7403
7403
|
"badge": "pf-c-badge",
|
|
7404
7404
|
"button": "pf-c-button",
|
|
7405
7405
|
"chip": "pf-c-chip",
|
|
@@ -7422,8 +7422,8 @@
|
|
|
7422
7422
|
this.renderOverflowChip = () => {
|
|
7423
7423
|
const { children, className, onClick, ouiaId } = this.props;
|
|
7424
7424
|
const Component = this.props.component;
|
|
7425
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$
|
|
7426
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7425
|
+
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$W.chip, styles$W.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7426
|
+
React__namespace.createElement("span", { className: css(styles$W.chipText) }, children)));
|
|
7427
7427
|
};
|
|
7428
7428
|
this.renderChip = (randomId) => {
|
|
7429
7429
|
const { children, tooltipPosition } = this.props;
|
|
@@ -7447,8 +7447,8 @@
|
|
|
7447
7447
|
const Component = component;
|
|
7448
7448
|
return (React__namespace.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
|
|
7449
7449
|
style: this.setChipStyle()
|
|
7450
|
-
}), { className: css(styles$
|
|
7451
|
-
React__namespace.createElement("span", { ref: this.span, className: css(styles$
|
|
7450
|
+
}), { className: css(styles$W.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7451
|
+
React__namespace.createElement("span", { ref: this.span, className: css(styles$W.chipText), id: id }, children),
|
|
7452
7452
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7453
7453
|
React__namespace.createElement(TimesIcon, { "aria-hidden": "true" })))));
|
|
7454
7454
|
}
|
|
@@ -7493,8 +7493,8 @@
|
|
|
7493
7493
|
const { categoryName, tooltipPosition } = this.props;
|
|
7494
7494
|
const { isTooltipVisible } = this.state;
|
|
7495
7495
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
7496
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
7497
|
-
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
7496
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$X.chipGroupLabel) },
|
|
7497
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$X.chipGroupLabel), id: id }, categoryName));
|
|
7498
7498
|
}
|
|
7499
7499
|
render() {
|
|
7500
7500
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -7511,17 +7511,17 @@
|
|
|
7511
7511
|
const chipArray = !isOpen
|
|
7512
7512
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
7513
7513
|
: React__namespace.Children.toArray(children);
|
|
7514
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
7515
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
7514
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$X.chipGroup, className, categoryName && styles$X.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
7515
|
+
React__namespace.createElement("div", { className: css(styles$X.chipGroupMain) },
|
|
7516
7516
|
categoryName && this.renderLabel(id),
|
|
7517
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
7518
|
-
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
7519
|
-
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$
|
|
7517
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$X.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
7518
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$X.chipGroupListItem), key: i }, child))),
|
|
7519
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$X.chipGroupListItem) },
|
|
7520
7520
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
7521
7521
|
this.toggleCollapse();
|
|
7522
7522
|
onOverflowChipClick(event);
|
|
7523
7523
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
7524
|
-
isClosable && (React__namespace.createElement("div", { className: css(styles$
|
|
7524
|
+
isClosable && (React__namespace.createElement("div", { className: css(styles$X.chipGroupClose) },
|
|
7525
7525
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7526
7526
|
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))))));
|
|
7527
7527
|
};
|
|
@@ -8214,7 +8214,7 @@
|
|
|
8214
8214
|
}
|
|
8215
8215
|
}
|
|
8216
8216
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
8217
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$
|
|
8217
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$_.selectToggleClear), onClick: e => {
|
|
8218
8218
|
this.clearSelection(e);
|
|
8219
8219
|
onClear(e);
|
|
8220
8220
|
e.stopPropagation();
|
|
@@ -8231,7 +8231,7 @@
|
|
|
8231
8231
|
}
|
|
8232
8232
|
if (hasInlineFilter) {
|
|
8233
8233
|
const filterBox = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8234
|
-
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$
|
|
8234
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$_.selectMenuSearch) },
|
|
8235
8235
|
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(formStyles.formControl, formStyles.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
8236
8236
|
if (event.key === KeyTypes.ArrowUp) {
|
|
8237
8237
|
this.handleMenuKeys(0, 0, 'up');
|
|
@@ -8337,46 +8337,46 @@
|
|
|
8337
8337
|
// This removes the `position: absolute` styling from the `.pf-c-select__menu`
|
|
8338
8338
|
// allowing the menu to flip correctly
|
|
8339
8339
|
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert' } }), props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
8340
|
-
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$
|
|
8340
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$_.selectMenu) },
|
|
8341
8341
|
" ",
|
|
8342
8342
|
innerMenu,
|
|
8343
8343
|
" ") : innerMenu;
|
|
8344
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8345
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8344
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className) }, (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
8345
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
8346
8346
|
React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel }, (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), { handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
8347
|
-
customContent && (React__namespace.createElement("div", { className: css(styles$
|
|
8348
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8349
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8347
|
+
customContent && (React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8348
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8349
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, placeholderText))),
|
|
8350
8350
|
variant === exports.SelectVariant.single && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8351
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8352
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8353
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8351
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8352
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8353
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
8354
8354
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8355
8355
|
variant === exports.SelectVariant.checkbox && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8356
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8357
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8358
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8359
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$
|
|
8356
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8357
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8358
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, placeholderText),
|
|
8359
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$_.selectToggleBadge) },
|
|
8360
8360
|
React__namespace.createElement("span", { className: css(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
8361
8361
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8362
8362
|
variant === exports.SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8363
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8364
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8365
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8363
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8364
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8365
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
8366
8366
|
? typeaheadInputValue
|
|
8367
8367
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8368
8368
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
8369
8369
|
variant === exports.SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8370
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8371
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8370
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8371
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8372
8372
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
8373
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8373
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === exports.ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8374
8374
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
8375
|
-
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$
|
|
8375
|
+
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8376
8376
|
React__namespace.createElement(CheckCircleIcon, { "aria-hidden": "true" }))),
|
|
8377
|
-
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$
|
|
8377
|
+
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8378
8378
|
React__namespace.createElement(ExclamationCircleIcon, { "aria-hidden": "true" }))),
|
|
8379
|
-
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$
|
|
8379
|
+
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8380
8380
|
React__namespace.createElement(ExclamationTriangleIcon, { "aria-hidden": "true" })))),
|
|
8381
8381
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
8382
8382
|
const getParentElement = () => {
|
|
@@ -8448,7 +8448,7 @@
|
|
|
8448
8448
|
};
|
|
8449
8449
|
|
|
8450
8450
|
Promise.resolve().then(function () { return inputGroup; });
|
|
8451
|
-
var styles$
|
|
8451
|
+
var styles$V = {
|
|
8452
8452
|
"formControl": "pf-c-form-control",
|
|
8453
8453
|
"inputGroup": "pf-c-input-group",
|
|
8454
8454
|
"inputGroupText": "pf-c-input-group__text",
|
|
@@ -8575,10 +8575,12 @@
|
|
|
8575
8575
|
const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
|
|
8576
8576
|
const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
|
|
8577
8577
|
const inputGroupRef = innerRef || React__namespace.useRef(null);
|
|
8578
|
-
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$
|
|
8579
|
-
? React__namespace.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
|
|
8580
|
-
?
|
|
8581
|
-
: child
|
|
8578
|
+
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$V.inputGroup, className) }, props), idItem
|
|
8579
|
+
? React__namespace.Children.map(children, (child) => !formCtrls.includes(child.type.displayName) || child.props['aria-describedby']
|
|
8580
|
+
? child
|
|
8581
|
+
: React__namespace.cloneElement(child, {
|
|
8582
|
+
'aria-describedby': child.props['aria-describedby'] === '' ? undefined : idItem.props.id
|
|
8583
|
+
}))
|
|
8582
8584
|
: children));
|
|
8583
8585
|
};
|
|
8584
8586
|
InputGroup.displayName = 'InputGroup';
|
|
@@ -8591,7 +8593,7 @@
|
|
|
8591
8593
|
const InputGroupText = (_a) => {
|
|
8592
8594
|
var { className = '', component = 'span', children, variant = exports.InputGroupTextVariant.default } = _a, props = __rest$1(_a, ["className", "component", "children", "variant"]);
|
|
8593
8595
|
const Component = component;
|
|
8594
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8596
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$V.inputGroupText, variant === exports.InputGroupTextVariant.plain && styles$V.modifiers.plain, className) }, props), children));
|
|
8595
8597
|
};
|
|
8596
8598
|
InputGroupText.displayName = 'InputGroupText';
|
|
8597
8599
|
|
|
@@ -8607,7 +8609,7 @@
|
|
|
8607
8609
|
const AngleLeftIcon = createIcon(AngleLeftIconConfig);
|
|
8608
8610
|
|
|
8609
8611
|
Promise.resolve().then(function () { return calendarMonth; });
|
|
8610
|
-
var styles$
|
|
8612
|
+
var styles$U = {
|
|
8611
8613
|
"calendarMonth": "pf-c-calendar-month",
|
|
8612
8614
|
"calendarMonthCalendar": "pf-c-calendar-month__calendar",
|
|
8613
8615
|
"calendarMonthDate": "pf-c-calendar-month__date",
|
|
@@ -8778,13 +8780,13 @@
|
|
|
8778
8780
|
const isHoveredDateValid = isValidated(hoveredDate);
|
|
8779
8781
|
const monthFormatted = monthFormat(focusedDate);
|
|
8780
8782
|
const yearFormatted = yearFormat(focusedDate);
|
|
8781
|
-
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$
|
|
8782
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8783
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8783
|
+
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$U.calendarMonth, className) }, props),
|
|
8784
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeader },
|
|
8785
|
+
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.prevMonth) },
|
|
8784
8786
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": prevMonthAriaLabel, onClick: (ev) => onMonthClick(prevMonth, ev) },
|
|
8785
8787
|
React__default["default"].createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
8786
8788
|
React__default["default"].createElement(InputGroup, null,
|
|
8787
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8789
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderMonth },
|
|
8788
8790
|
React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
|
|
8789
8791
|
React__default["default"].createElement(Select
|
|
8790
8792
|
// Max width with "September"
|
|
@@ -8807,7 +8809,7 @@
|
|
|
8807
8809
|
onMonthChange(newDate, ev);
|
|
8808
8810
|
}, 0);
|
|
8809
8811
|
}, variant: "single", selections: monthFormatted }, longMonths.map((longMonth, index) => (React__default["default"].createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))),
|
|
8810
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8812
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderYear },
|
|
8811
8813
|
React__default["default"].createElement(TextInput, { "aria-label": yearInputAriaLabel, type: "number", value: yearFormatted, onChange: (year, ev) => {
|
|
8812
8814
|
const newDate = new Date(focusedDate);
|
|
8813
8815
|
newDate.setFullYear(+year);
|
|
@@ -8816,15 +8818,15 @@
|
|
|
8816
8818
|
setShouldFocus(false);
|
|
8817
8819
|
onMonthChange(newDate, ev);
|
|
8818
8820
|
} }))),
|
|
8819
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8821
|
+
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.nextMonth) },
|
|
8820
8822
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": nextMonthAriaLabel, onClick: (ev) => onMonthClick(nextMonth, ev) },
|
|
8821
8823
|
React__default["default"].createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
8822
|
-
React__default["default"].createElement("table", { className: styles$
|
|
8823
|
-
React__default["default"].createElement("thead", { className: styles$
|
|
8824
|
-
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$
|
|
8824
|
+
React__default["default"].createElement("table", { className: styles$U.calendarMonthCalendar },
|
|
8825
|
+
React__default["default"].createElement("thead", { className: styles$U.calendarMonthDays },
|
|
8826
|
+
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$U.calendarMonthDay, scope: "col" },
|
|
8825
8827
|
React__default["default"].createElement("span", { className: "pf-screen-reader" }, longWeekdayFormat(date)),
|
|
8826
8828
|
React__default["default"].createElement("span", { "aria-hidden": true }, weekdayFormat(date))))))),
|
|
8827
|
-
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$
|
|
8829
|
+
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$U.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {
|
|
8828
8830
|
const dayFormatted = dayFormat(date);
|
|
8829
8831
|
const isToday = isSameDate(date, today);
|
|
8830
8832
|
const isSelected = isValidDate(dateProp) && isSameDate(date, dateProp);
|
|
@@ -8845,15 +8847,15 @@
|
|
|
8845
8847
|
// Don't handle focused dates before start dates for now.
|
|
8846
8848
|
// Core would likely need new styles
|
|
8847
8849
|
}
|
|
8848
|
-
return (React__default["default"].createElement("td", { key: index, className: css(styles$
|
|
8849
|
-
React__default["default"].createElement("button", Object.assign({ className: css(styles$
|
|
8850
|
+
return (React__default["default"].createElement("td", { key: index, className: css(styles$U.calendarMonthDatesCell, isAdjacentMonth && styles$U.modifiers.adjacentMonth, isToday && styles$U.modifiers.current, (isSelected || isRangeStart) && styles$U.modifiers.selected, !isValid && styles$U.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles$U.modifiers.inRange, isRangeStart && styles$U.modifiers.startRange, isRangeEnd && styles$U.modifiers.endRange) },
|
|
8851
|
+
React__default["default"].createElement("button", Object.assign({ className: css(styles$U.calendarMonthDate, isRangeEnd && styles$U.modifiers.hover, !isValid && styles$U.modifiers.disabled), type: "button", onClick: () => onChange(date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, "aria-label": cellAriaLabel
|
|
8850
8852
|
? cellAriaLabel(date)
|
|
8851
8853
|
: `${dayFormat(date)} ${monthFormat(date)} ${yearFormat(date)}` }, (isFocused && { ref: focusRef })), dayFormatted)));
|
|
8852
8854
|
}))))))));
|
|
8853
8855
|
};
|
|
8854
8856
|
|
|
8855
8857
|
Promise.resolve().then(function () { return card; });
|
|
8856
|
-
var styles$
|
|
8858
|
+
var styles$T = {
|
|
8857
8859
|
"card": "pf-c-card",
|
|
8858
8860
|
"cardActions": "pf-c-card__actions",
|
|
8859
8861
|
"cardBody": "pf-c-card__body",
|
|
@@ -8906,13 +8908,13 @@
|
|
|
8906
8908
|
}
|
|
8907
8909
|
const getSelectableModifiers = () => {
|
|
8908
8910
|
if (isDisabledRaised) {
|
|
8909
|
-
return css(styles$
|
|
8911
|
+
return css(styles$T.modifiers.nonSelectableRaised);
|
|
8910
8912
|
}
|
|
8911
8913
|
if (isSelectableRaised) {
|
|
8912
|
-
return css(styles$
|
|
8914
|
+
return css(styles$T.modifiers.selectableRaised, isSelected && styles$T.modifiers.selectedRaised);
|
|
8913
8915
|
}
|
|
8914
8916
|
if (isSelectable || isHoverable) {
|
|
8915
|
-
return css(styles$
|
|
8917
|
+
return css(styles$T.modifiers.selectable, isSelected && styles$T.modifiers.selected);
|
|
8916
8918
|
}
|
|
8917
8919
|
return '';
|
|
8918
8920
|
};
|
|
@@ -8940,33 +8942,33 @@
|
|
|
8940
8942
|
isExpanded
|
|
8941
8943
|
} },
|
|
8942
8944
|
hasSelectableInput && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", id: `${id}-input` }, ariaProps, { type: "checkbox", checked: isSelected, onChange: event => onSelectableInputChange(id, event), disabled: isDisabledRaised, tabIndex: -1 }))),
|
|
8943
|
-
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
8945
|
+
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$T.card, isCompact && styles$T.modifiers.compact, isExpanded && styles$T.modifiers.expanded, isFlat && styles$T.modifiers.flat, isRounded && styles$T.modifiers.rounded, isLarge && styles$T.modifiers.displayLg, isFullHeight && styles$T.modifiers.fullHeight, isPlain && styles$T.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
8944
8946
|
};
|
|
8945
8947
|
Card.displayName = 'Card';
|
|
8946
8948
|
|
|
8947
8949
|
const CardActions = (_a) => {
|
|
8948
8950
|
var { children = null, className = '', hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
8949
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8951
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardActions, hasNoOffset && styles$T.modifiers.noOffset, className) }, props), children));
|
|
8950
8952
|
};
|
|
8951
8953
|
CardActions.displayName = 'CardActions';
|
|
8952
8954
|
|
|
8953
8955
|
const CardBody = (_a) => {
|
|
8954
8956
|
var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
8955
8957
|
const Component = component;
|
|
8956
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8958
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardBody, !isFilled && styles$T.modifiers.noFill, className) }, props), children));
|
|
8957
8959
|
};
|
|
8958
8960
|
CardBody.displayName = 'CardBody';
|
|
8959
8961
|
|
|
8960
8962
|
const CardExpandableContent = (_a) => {
|
|
8961
8963
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8962
|
-
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8964
|
+
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardExpandableContent, className) }, props), children)) : null));
|
|
8963
8965
|
};
|
|
8964
8966
|
CardExpandableContent.displayName = 'CardExpandableContent';
|
|
8965
8967
|
|
|
8966
8968
|
const CardFooter = (_a) => {
|
|
8967
8969
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
8968
8970
|
const Component = component;
|
|
8969
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8971
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardFooter, className) }, props), children));
|
|
8970
8972
|
};
|
|
8971
8973
|
CardFooter.displayName = 'CardFooter';
|
|
8972
8974
|
|
|
@@ -8979,20 +8981,20 @@
|
|
|
8979
8981
|
registerTitleId(titleId);
|
|
8980
8982
|
return () => registerTitleId('');
|
|
8981
8983
|
}, [registerTitleId, titleId]);
|
|
8982
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8984
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardTitle, className), id: titleId || undefined }, props), children));
|
|
8983
8985
|
};
|
|
8984
8986
|
CardTitle.displayName = 'CardTitle';
|
|
8985
8987
|
|
|
8986
8988
|
const CardHeader = (_a) => {
|
|
8987
8989
|
var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
8988
8990
|
return (React__namespace.createElement(CardContext.Consumer, null, ({ cardId }) => {
|
|
8989
|
-
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$
|
|
8991
|
+
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$T.cardHeaderToggle) },
|
|
8990
8992
|
React__namespace.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
|
|
8991
8993
|
onExpand(evt, cardId);
|
|
8992
8994
|
} }, toggleButtonProps),
|
|
8993
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8995
|
+
React__namespace.createElement("span", { className: css(styles$T.cardHeaderToggleIcon) },
|
|
8994
8996
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
8995
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8997
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardHeader, isToggleRightAligned && styles$T.modifiers.toggleRight, className), id: id }, props),
|
|
8996
8998
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
8997
8999
|
children,
|
|
8998
9000
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
@@ -9035,11 +9037,11 @@
|
|
|
9035
9037
|
checkedProps.defaultChecked = defaultChecked;
|
|
9036
9038
|
}
|
|
9037
9039
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
9038
|
-
return (React__namespace.createElement(Component, { className: css(styles$
|
|
9039
|
-
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
9040
|
-
label && (React__namespace.createElement("label", { className: css(styles$
|
|
9041
|
-
description && React__namespace.createElement("span", { className: css(styles$
|
|
9042
|
-
body && React__namespace.createElement("span", { className: css(styles$
|
|
9040
|
+
return (React__namespace.createElement(Component, { className: css(styles$Y.check, !label && styles$Y.modifiers.standalone, className) },
|
|
9041
|
+
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$Y.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
9042
|
+
label && (React__namespace.createElement("label", { className: css(styles$Y.checkLabel, isDisabled && styles$Y.modifiers.disabled), htmlFor: props.id }, label)),
|
|
9043
|
+
description && React__namespace.createElement("span", { className: css(styles$Y.checkDescription) }, description),
|
|
9044
|
+
body && React__namespace.createElement("span", { className: css(styles$Y.checkBody) }, body)));
|
|
9043
9045
|
}
|
|
9044
9046
|
}
|
|
9045
9047
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -9054,7 +9056,7 @@
|
|
|
9054
9056
|
};
|
|
9055
9057
|
|
|
9056
9058
|
Promise.resolve().then(function () { return clipboardCopy; });
|
|
9057
|
-
var styles$
|
|
9059
|
+
var styles$S = {
|
|
9058
9060
|
"button": "pf-c-button",
|
|
9059
9061
|
"clipboardCopy": "pf-c-clipboard-copy",
|
|
9060
9062
|
"clipboardCopyActions": "pf-c-clipboard-copy__actions",
|
|
@@ -9073,7 +9075,7 @@
|
|
|
9073
9075
|
};
|
|
9074
9076
|
|
|
9075
9077
|
Promise.resolve().then(function () { return popover; });
|
|
9076
|
-
var styles$
|
|
9078
|
+
var styles$R = {
|
|
9077
9079
|
"button": "pf-c-button",
|
|
9078
9080
|
"modifiers": {
|
|
9079
9081
|
"noPadding": "pf-m-no-padding",
|
|
@@ -9113,25 +9115,25 @@
|
|
|
9113
9115
|
|
|
9114
9116
|
const PopoverContent = (_a) => {
|
|
9115
9117
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
9116
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9118
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverContent, className) }, props), children));
|
|
9117
9119
|
};
|
|
9118
9120
|
PopoverContent.displayName = 'PopoverContent';
|
|
9119
9121
|
|
|
9120
9122
|
const PopoverBody = (_a) => {
|
|
9121
9123
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
9122
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9124
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverBody, className), id: id }, props), children));
|
|
9123
9125
|
};
|
|
9124
9126
|
PopoverBody.displayName = 'PopoverBody';
|
|
9125
9127
|
|
|
9126
9128
|
const PopoverHeaderIcon = (_a) => {
|
|
9127
9129
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9128
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9130
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleIcon, className) }, props), children));
|
|
9129
9131
|
};
|
|
9130
9132
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
9131
9133
|
|
|
9132
9134
|
const PopoverHeaderText = (_a) => {
|
|
9133
9135
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9134
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9136
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleText, className) }, props), children));
|
|
9135
9137
|
};
|
|
9136
9138
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
9137
9139
|
|
|
@@ -9139,7 +9141,7 @@
|
|
|
9139
9141
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
9140
9142
|
const HeadingLevel = titleHeadingLevel;
|
|
9141
9143
|
return icon || alertSeverityVariant ? (React__namespace.createElement("header", Object.assign({ className: css('pf-c-popover__header', className), id: id }, props),
|
|
9142
|
-
React__namespace.createElement(HeadingLevel, { className: css(styles$
|
|
9144
|
+
React__namespace.createElement(HeadingLevel, { className: css(styles$R.popoverTitle, icon && styles$R.modifiers.icon) },
|
|
9143
9145
|
icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
|
|
9144
9146
|
alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
9145
9147
|
React__namespace.createElement(PopoverHeaderText, null, children)))) : (React__namespace.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: exports.TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -9148,7 +9150,7 @@
|
|
|
9148
9150
|
|
|
9149
9151
|
const PopoverFooter = (_a) => {
|
|
9150
9152
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9151
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
9153
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$R.popoverFooter, className) }, props), children));
|
|
9152
9154
|
};
|
|
9153
9155
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
9154
9156
|
|
|
@@ -9169,7 +9171,7 @@
|
|
|
9169
9171
|
|
|
9170
9172
|
const PopoverArrow = (_a) => {
|
|
9171
9173
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
9172
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9174
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverArrow, className) }, props));
|
|
9173
9175
|
};
|
|
9174
9176
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
9175
9177
|
|
|
@@ -9202,11 +9204,11 @@
|
|
|
9202
9204
|
PopoverPosition["rightEnd"] = "right-end";
|
|
9203
9205
|
})(exports.PopoverPosition || (exports.PopoverPosition = {}));
|
|
9204
9206
|
const alertStyle = {
|
|
9205
|
-
default: styles$
|
|
9206
|
-
info: styles$
|
|
9207
|
-
success: styles$
|
|
9208
|
-
warning: styles$
|
|
9209
|
-
danger: styles$
|
|
9207
|
+
default: styles$R.modifiers.default,
|
|
9208
|
+
info: styles$R.modifiers.info,
|
|
9209
|
+
success: styles$R.modifiers.success,
|
|
9210
|
+
warning: styles$R.modifiers.warning,
|
|
9211
|
+
danger: styles$R.modifiers.danger
|
|
9210
9212
|
};
|
|
9211
9213
|
const Popover = (_a) => {
|
|
9212
9214
|
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = c_popover_MinWidth && c_popover_MinWidth.value, maxWidth = c_popover_MaxWidth && c_popover_MaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
@@ -9270,18 +9272,18 @@
|
|
|
9270
9272
|
}, 0);
|
|
9271
9273
|
};
|
|
9272
9274
|
const positionModifiers = {
|
|
9273
|
-
top: styles$
|
|
9274
|
-
bottom: styles$
|
|
9275
|
-
left: styles$
|
|
9276
|
-
right: styles$
|
|
9277
|
-
'top-start': styles$
|
|
9278
|
-
'top-end': styles$
|
|
9279
|
-
'bottom-start': styles$
|
|
9280
|
-
'bottom-end': styles$
|
|
9281
|
-
'left-start': styles$
|
|
9282
|
-
'left-end': styles$
|
|
9283
|
-
'right-start': styles$
|
|
9284
|
-
'right-end': styles$
|
|
9275
|
+
top: styles$R.modifiers.top,
|
|
9276
|
+
bottom: styles$R.modifiers.bottom,
|
|
9277
|
+
left: styles$R.modifiers.left,
|
|
9278
|
+
right: styles$R.modifiers.right,
|
|
9279
|
+
'top-start': styles$R.modifiers.topLeft,
|
|
9280
|
+
'top-end': styles$R.modifiers.topRight,
|
|
9281
|
+
'bottom-start': styles$R.modifiers.bottomLeft,
|
|
9282
|
+
'bottom-end': styles$R.modifiers.bottomRight,
|
|
9283
|
+
'left-start': styles$R.modifiers.leftTop,
|
|
9284
|
+
'left-end': styles$R.modifiers.leftBottom,
|
|
9285
|
+
'right-start': styles$R.modifiers.rightTop,
|
|
9286
|
+
'right-end': styles$R.modifiers.rightBottom
|
|
9285
9287
|
};
|
|
9286
9288
|
const hasCustomMinWidth = minWidth !== c_popover_MinWidth.value;
|
|
9287
9289
|
const hasCustomMaxWidth = maxWidth !== c_popover_MaxWidth.value;
|
|
@@ -9358,7 +9360,7 @@
|
|
|
9358
9360
|
}
|
|
9359
9361
|
return node;
|
|
9360
9362
|
}
|
|
9361
|
-
}, preventScrollOnDeactivate: true, className: css(styles$
|
|
9363
|
+
}, preventScrollOnDeactivate: true, className: css(styles$R.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$R.modifiers.noPadding, hasAutoWidth && styles$R.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
|
|
9362
9364
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
9363
9365
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
9364
9366
|
opacity,
|
|
@@ -9417,7 +9419,7 @@
|
|
|
9417
9419
|
}
|
|
9418
9420
|
render() {
|
|
9419
9421
|
const _a = this.props, { className, children, onChange, isReadOnly, isCode } = _a, props = __rest$1(_a, ["className", "children", "onChange", "isReadOnly", "isCode"]);
|
|
9420
|
-
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$
|
|
9422
|
+
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$S.clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? React__namespace.createElement("pre", null, children) : children));
|
|
9421
9423
|
}
|
|
9422
9424
|
}
|
|
9423
9425
|
ClipboardCopyExpanded.displayName = 'ClipboardCopyExpanded';
|
|
@@ -9477,12 +9479,12 @@
|
|
|
9477
9479
|
const textIdPrefix = 'text-input-';
|
|
9478
9480
|
const toggleIdPrefix = 'toggle-';
|
|
9479
9481
|
const contentIdPrefix = 'content-';
|
|
9480
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9482
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.clipboardCopy, variant === 'inline-compact' && styles$S.modifiers.inline, isBlock && styles$S.modifiers.block, this.state.expanded && styles$S.modifiers.expanded, className) }, divProps),
|
|
9481
9483
|
variant === 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9482
|
-
!isCode && (React__namespace.createElement("span", { className: css(styles$
|
|
9483
|
-
isCode && (React__namespace.createElement("code", { className: css(styles$
|
|
9484
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9485
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9484
|
+
!isCode && (React__namespace.createElement("span", { className: css(styles$S.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9485
|
+
isCode && (React__namespace.createElement("code", { className: css(styles$S.clipboardCopyText, styles$S.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9486
|
+
React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActions) },
|
|
9487
|
+
React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActionsItem) },
|
|
9486
9488
|
React__namespace.createElement(ClipboardCopyButton, { variant: "plain", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
|
|
9487
9489
|
if (this.timer) {
|
|
9488
9490
|
window.clearTimeout(this.timer);
|
|
@@ -9498,7 +9500,7 @@
|
|
|
9498
9500
|
} }, this.state.copied ? clickTip : hoverTip)),
|
|
9499
9501
|
additionalActions && additionalActions))))),
|
|
9500
9502
|
variant !== 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9501
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9503
|
+
React__namespace.createElement("div", { className: css(styles$S.clipboardCopyGroup) },
|
|
9502
9504
|
variant === 'expansion' && (React__namespace.createElement(ClipboardCopyToggle, { isExpanded: this.state.expanded, onClick: this.expandContent, id: `${toggleIdPrefix}${id}`, textId: `${textIdPrefix}${id}`, contentId: `${contentIdPrefix}${id}`, "aria-label": toggleAriaLabel })),
|
|
9503
9505
|
React__namespace.createElement(TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, "aria-label": textAriaLabel }),
|
|
9504
9506
|
React__namespace.createElement(ClipboardCopyButton, { exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
|
|
@@ -9547,12 +9549,12 @@
|
|
|
9547
9549
|
|
|
9548
9550
|
const ClipboardCopyAction = (_a) => {
|
|
9549
9551
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9550
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9552
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$S.clipboardCopyActionsItem, className) }, props), children));
|
|
9551
9553
|
};
|
|
9552
9554
|
ClipboardCopyAction.displayName = 'ClipboardCopyAction';
|
|
9553
9555
|
|
|
9554
9556
|
Promise.resolve().then(function () { return codeBlock; });
|
|
9555
|
-
var styles$
|
|
9557
|
+
var styles$Q = {
|
|
9556
9558
|
"codeBlock": "pf-c-code-block",
|
|
9557
9559
|
"codeBlockActions": "pf-c-code-block__actions",
|
|
9558
9560
|
"codeBlockCode": "pf-c-code-block__code",
|
|
@@ -9563,17 +9565,17 @@
|
|
|
9563
9565
|
|
|
9564
9566
|
const CodeBlock = (_a) => {
|
|
9565
9567
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
9566
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9567
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9568
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9569
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9568
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.codeBlock, className) }, props),
|
|
9569
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockHeader) },
|
|
9570
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockActions) }, actions && actions)),
|
|
9571
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockContent) }, children)));
|
|
9570
9572
|
};
|
|
9571
9573
|
CodeBlock.displayName = 'CodeBlock';
|
|
9572
9574
|
|
|
9573
9575
|
const CodeBlockCode = (_a) => {
|
|
9574
9576
|
var { children = null, className, codeClassName } = _a, props = __rest$1(_a, ["children", "className", "codeClassName"]);
|
|
9575
|
-
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$
|
|
9576
|
-
React__namespace.createElement("code", { className: css(styles$
|
|
9577
|
+
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$Q.codeBlockPre, className) }, props),
|
|
9578
|
+
React__namespace.createElement("code", { className: css(styles$Q.codeBlockCode, codeClassName) }, children)));
|
|
9577
9579
|
};
|
|
9578
9580
|
CodeBlockCode.displayName = 'CodeBlockCode';
|
|
9579
9581
|
|
|
@@ -9584,7 +9586,7 @@
|
|
|
9584
9586
|
CodeBlockAction.displayName = 'CodeBlockAction';
|
|
9585
9587
|
|
|
9586
9588
|
Promise.resolve().then(function () { return contextSelector; });
|
|
9587
|
-
var styles$
|
|
9589
|
+
var styles$P = {
|
|
9588
9590
|
"contextSelector": "pf-c-context-selector",
|
|
9589
9591
|
"contextSelectorMenu": "pf-c-context-selector__menu",
|
|
9590
9592
|
"contextSelectorMenuFooter": "pf-c-context-selector__menu-footer",
|
|
@@ -9670,9 +9672,9 @@
|
|
|
9670
9672
|
isActive, onEnter, parentRef } = _a,
|
|
9671
9673
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
9672
9674
|
props = __rest$1(_a, ["className", "toggleText", "isOpen", "onToggle", "id", "isPlain", "isText", "isActive", "onEnter", "parentRef"]);
|
|
9673
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$
|
|
9674
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9675
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9675
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$P.contextSelectorToggle, isActive && styles$P.modifiers.active, isPlain && styles$P.modifiers.plain, isText && styles$P.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
|
|
9676
|
+
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleText) }, toggleText),
|
|
9677
|
+
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleIcon) },
|
|
9676
9678
|
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
9677
9679
|
}
|
|
9678
9680
|
}
|
|
@@ -9698,7 +9700,7 @@
|
|
|
9698
9700
|
this.render = () => {
|
|
9699
9701
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9700
9702
|
const _a = this.props, { className, isOpen, children } = _a, props = __rest$1(_a, ["className", "isOpen", "children"]);
|
|
9701
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
9703
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$P.contextSelectorMenuList, className), hidden: !isOpen, role: "menu" }, props), this.extendChildren()));
|
|
9702
9704
|
};
|
|
9703
9705
|
}
|
|
9704
9706
|
extendChildren() {
|
|
@@ -9740,8 +9742,8 @@
|
|
|
9740
9742
|
const uniqueId = id || getUniqueId();
|
|
9741
9743
|
const toggleId = `pf-context-selector-toggle-id-${uniqueId}`;
|
|
9742
9744
|
const screenReaderLabelId = `pf-context-selector-label-id-${uniqueId}`;
|
|
9743
|
-
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9744
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9745
|
+
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelectorMenu) }, (isFlipEnabled && { style: { position: 'revert' } }), { id: uniqueId }), isOpen && (React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } } },
|
|
9746
|
+
React__namespace.createElement("div", { className: css(styles$P.contextSelectorMenuSearch) },
|
|
9745
9747
|
React__namespace.createElement(InputGroup, null,
|
|
9746
9748
|
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-label": searchButtonAriaLabel }),
|
|
9747
9749
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, onClick: onSearchButtonClick },
|
|
@@ -9749,8 +9751,8 @@
|
|
|
9749
9751
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
9750
9752
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
9751
9753
|
footer))));
|
|
9752
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9753
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9754
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
|
|
9755
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, isFullHeight && styles$P.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
9754
9756
|
screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
|
|
9755
9757
|
React__namespace.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: menuAppendTo === 'inline' ? this.parentRef : this.popperRef, "aria-labelledby": `${screenReaderLabelId} ${toggleId}`, isPlain: isPlain, isText: isText }),
|
|
9756
9758
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
@@ -9801,7 +9803,7 @@
|
|
|
9801
9803
|
const Component = href ? 'a' : 'button';
|
|
9802
9804
|
const isDisabledLink = href && isDisabled;
|
|
9803
9805
|
return (React__namespace.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (React__namespace.createElement("li", { role: "none" },
|
|
9804
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
9806
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$P.contextSelectorMenuListItem, isDisabledLink && styles$P.modifiers.disabled, className), ref: this.ref, onClick: event => {
|
|
9805
9807
|
if (!isDisabled) {
|
|
9806
9808
|
onClick(event);
|
|
9807
9809
|
onSelect(event, children);
|
|
@@ -9822,12 +9824,12 @@
|
|
|
9822
9824
|
|
|
9823
9825
|
const ContextSelectorFooter = (_a) => {
|
|
9824
9826
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9825
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
9827
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$P.contextSelectorMenuFooter, className) }), children));
|
|
9826
9828
|
};
|
|
9827
9829
|
ContextSelectorFooter.displayName = 'ContextSelectorFooter';
|
|
9828
9830
|
|
|
9829
9831
|
Promise.resolve().then(function () { return dataList; });
|
|
9830
|
-
var styles$
|
|
9832
|
+
var styles$O = {
|
|
9831
9833
|
"dataList": "pf-c-data-list",
|
|
9832
9834
|
"dataListAction": "pf-c-data-list__action",
|
|
9833
9835
|
"dataListCell": "pf-c-data-list__cell",
|
|
@@ -9964,7 +9966,7 @@
|
|
|
9964
9966
|
this.dragStart0 = (el) => {
|
|
9965
9967
|
const { onDragStart } = this.props;
|
|
9966
9968
|
const draggedItemId = el.id;
|
|
9967
|
-
el.classList.add(styles$
|
|
9969
|
+
el.classList.add(styles$O.modifiers.ghostRow);
|
|
9968
9970
|
el.setAttribute('aria-pressed', 'true');
|
|
9969
9971
|
this.setState({
|
|
9970
9972
|
draggedItemId,
|
|
@@ -9980,8 +9982,8 @@
|
|
|
9980
9982
|
this.onDragCancel = () => {
|
|
9981
9983
|
this.move(this.props.itemOrder);
|
|
9982
9984
|
Array.from(this.ref.current.children).forEach(el => {
|
|
9983
|
-
el.classList.remove(styles$
|
|
9984
|
-
el.classList.remove(styles$
|
|
9985
|
+
el.classList.remove(styles$O.modifiers.ghostRow);
|
|
9986
|
+
el.classList.remove(styles$O.modifiers.dragOver);
|
|
9985
9987
|
el.setAttribute('aria-pressed', 'false');
|
|
9986
9988
|
});
|
|
9987
9989
|
this.setState({
|
|
@@ -10003,8 +10005,8 @@
|
|
|
10003
10005
|
}
|
|
10004
10006
|
};
|
|
10005
10007
|
this.dragEnd0 = (el) => {
|
|
10006
|
-
el.classList.remove(styles$
|
|
10007
|
-
el.classList.remove(styles$
|
|
10008
|
+
el.classList.remove(styles$O.modifiers.ghostRow);
|
|
10009
|
+
el.classList.remove(styles$O.modifiers.dragOver);
|
|
10008
10010
|
el.setAttribute('aria-pressed', 'false');
|
|
10009
10011
|
this.setState({
|
|
10010
10012
|
draggedItemId: null,
|
|
@@ -10083,14 +10085,14 @@
|
|
|
10083
10085
|
const nextSelection = dragItem.previousSibling;
|
|
10084
10086
|
if (nextSelection) {
|
|
10085
10087
|
this.dragOver0(nextSelection.id);
|
|
10086
|
-
dragItem.querySelector(`.${styles$
|
|
10088
|
+
dragItem.querySelector(`.${styles$O.dataListItemDraggableButton}`).focus();
|
|
10087
10089
|
}
|
|
10088
10090
|
}
|
|
10089
10091
|
else if (evt.key === 'ArrowDown') {
|
|
10090
10092
|
const nextSelection = dragItem.nextSibling;
|
|
10091
10093
|
if (nextSelection) {
|
|
10092
10094
|
this.dragOver0(nextSelection.id);
|
|
10093
|
-
dragItem.querySelector(`.${styles$
|
|
10095
|
+
dragItem.querySelector(`.${styles$O.dataListItemDraggableButton}`).focus();
|
|
10094
10096
|
}
|
|
10095
10097
|
}
|
|
10096
10098
|
}
|
|
@@ -10141,7 +10143,7 @@
|
|
|
10141
10143
|
drop: this.drop,
|
|
10142
10144
|
dragKeyHandler: this.handleDragButtonKeys
|
|
10143
10145
|
} },
|
|
10144
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
10146
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$O.dataList, isCompact && styles$O.modifiers.compact, gridBreakpointClasses[gridBreakpoint], wrapModifier && styles$O.modifiers[wrapModifier], dragging && styles$O.modifiers.dragOver, className), style: props.style }, props, dragProps, { ref: this.ref }), children)));
|
|
10145
10147
|
}
|
|
10146
10148
|
}
|
|
10147
10149
|
DataList.displayName = 'DataList';
|
|
@@ -10160,13 +10162,13 @@
|
|
|
10160
10162
|
id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isPlainButtonAction } = _a,
|
|
10161
10163
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
10162
10164
|
props = __rest$1(_a, ["children", "className", "visibility", "id", 'aria-label', 'aria-labelledby', "isPlainButtonAction"]);
|
|
10163
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10165
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemAction, formatBreakpointMods(visibility, styles$O), className) }, props), isPlainButtonAction ? React__namespace.createElement("div", { className: css(styles$O.dataListAction) }, children) : children));
|
|
10164
10166
|
};
|
|
10165
10167
|
DataListAction.displayName = 'DataListAction';
|
|
10166
10168
|
|
|
10167
10169
|
const DataListCell = (_a) => {
|
|
10168
10170
|
var { children = null, className = '', width = 1, isFilled = true, alignRight = false, isIcon = false, wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "width", "isFilled", "alignRight", "isIcon", "wrapModifier"]);
|
|
10169
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10171
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListCell, width > 1 && styles$O.modifiers[`flex_${width}`], !isFilled && styles$O.modifiers.noFill, alignRight && styles$O.modifiers.alignRight, isIcon && styles$O.modifiers.icon, className, wrapModifier && styles$O.modifiers[wrapModifier]) }, props), children));
|
|
10170
10172
|
};
|
|
10171
10173
|
DataListCell.displayName = 'DataListCell';
|
|
10172
10174
|
|
|
@@ -10174,17 +10176,17 @@
|
|
|
10174
10176
|
var { className = '',
|
|
10175
10177
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10176
10178
|
onChange = (checked, event) => { }, isValid = true, isDisabled = false, isChecked = false, checked = false, defaultChecked, otherControls = false } = _a, props = __rest$1(_a, ["className", "onChange", "isValid", "isDisabled", "isChecked", "checked", "defaultChecked", "otherControls"]);
|
|
10177
|
-
const check = (React__namespace.createElement("div", { className: css(styles$
|
|
10179
|
+
const check = (React__namespace.createElement("div", { className: css(styles$O.dataListCheck) },
|
|
10178
10180
|
React__namespace.createElement("input", Object.assign({}, props, { type: "checkbox", onChange: event => onChange(event.currentTarget.checked, event), "aria-invalid": !isValid, disabled: isDisabled }, ([true, false].includes(defaultChecked) && { defaultChecked }), (![true, false].includes(defaultChecked) && { checked: isChecked || checked })))));
|
|
10179
10181
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10180
|
-
!otherControls && React__namespace.createElement("div", { className: css(styles$
|
|
10182
|
+
!otherControls && React__namespace.createElement("div", { className: css(styles$O.dataListItemControl, className) }, check),
|
|
10181
10183
|
otherControls && check));
|
|
10182
10184
|
};
|
|
10183
10185
|
DataListCheck.displayName = 'DataListCheck';
|
|
10184
10186
|
|
|
10185
10187
|
const DataListControl = (_a) => {
|
|
10186
10188
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10187
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10189
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemControl, className) }, props), children));
|
|
10188
10190
|
};
|
|
10189
10191
|
DataListControl.displayName = 'DataListControl';
|
|
10190
10192
|
|
|
@@ -10201,8 +10203,8 @@
|
|
|
10201
10203
|
|
|
10202
10204
|
const DataListDragButton = (_a) => {
|
|
10203
10205
|
var { className = '', isDisabled = false } = _a, props = __rest$1(_a, ["className", "isDisabled"]);
|
|
10204
|
-
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
10205
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10206
|
+
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$O.dataListItemDraggableButton, isDisabled && styles$O.modifiers.disabled, className), onKeyDown: dragKeyHandler, type: "button", disabled: isDisabled }, props),
|
|
10207
|
+
React__namespace.createElement("span", { className: css(styles$O.dataListItemDraggableIcon) },
|
|
10206
10208
|
React__namespace.createElement(GripVerticalIcon, null))))));
|
|
10207
10209
|
};
|
|
10208
10210
|
DataListDragButton.displayName = 'DataListDragButton';
|
|
@@ -10232,8 +10234,8 @@
|
|
|
10232
10234
|
let target = event.target;
|
|
10233
10235
|
while (event.currentTarget !== target) {
|
|
10234
10236
|
if (('onclick' in target && target.onclick) ||
|
|
10235
|
-
target.parentNode.classList.contains(styles$
|
|
10236
|
-
target.parentNode.classList.contains(styles$
|
|
10237
|
+
target.parentNode.classList.contains(styles$O.dataListItemAction) ||
|
|
10238
|
+
target.parentNode.classList.contains(styles$O.dataListItemControl)) {
|
|
10237
10239
|
// check other event handlers are not present.
|
|
10238
10240
|
return;
|
|
10239
10241
|
}
|
|
@@ -10262,7 +10264,7 @@
|
|
|
10262
10264
|
const selectableInputAriaProps = selectableInputAriaLabel
|
|
10263
10265
|
? { 'aria-label': selectableInputAriaLabel }
|
|
10264
10266
|
: { 'aria-labelledby': ariaLabelledBy };
|
|
10265
|
-
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$
|
|
10267
|
+
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$O.dataListItem, isExpanded && styles$O.modifiers.expanded, isSelectable && styles$O.modifiers.selectable, selectedDataListItemId && isSelected && styles$O.modifiers.selected, className), "aria-labelledby": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && isSelected && { 'aria-selected': true }), props, dragProps),
|
|
10266
10268
|
selectableRow && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", type: "radio", checked: isSelected, onChange: event => selectableRow.onChange(id, event), tabIndex: -1 }, selectableInputAriaProps))),
|
|
10267
10269
|
React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10268
10270
|
React__namespace.cloneElement(child, {
|
|
@@ -10284,13 +10286,13 @@
|
|
|
10284
10286
|
var { className = '', dataListCells,
|
|
10285
10287
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10286
10288
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "dataListCells", "rowid"]);
|
|
10287
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10289
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemContent, className) }, props), dataListCells));
|
|
10288
10290
|
};
|
|
10289
10291
|
DataListItemCells.displayName = 'DataListItemCells';
|
|
10290
10292
|
|
|
10291
10293
|
const DataListItemRow = (_a) => {
|
|
10292
10294
|
var { children, className = '', rowid = '', wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "rowid", "wrapModifier"]);
|
|
10293
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10295
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemRow, className, wrapModifier && styles$O.modifiers[wrapModifier]) }, props), React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10294
10296
|
React__namespace.cloneElement(child, {
|
|
10295
10297
|
rowid
|
|
10296
10298
|
}))));
|
|
@@ -10299,10 +10301,10 @@
|
|
|
10299
10301
|
|
|
10300
10302
|
const DataListToggle = (_a) => {
|
|
10301
10303
|
var { className = '', isExpanded = false, 'aria-controls': ariaControls = '', 'aria-label': ariaLabel = 'Details', rowid = '', id } = _a, props = __rest$1(_a, ["className", "isExpanded", 'aria-controls', 'aria-label', "rowid", "id"]);
|
|
10302
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10303
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10304
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemControl, className) }, props),
|
|
10305
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListToggle) },
|
|
10304
10306
|
React__namespace.createElement(Button, { id: id, variant: exports.ButtonVariant.plain, "aria-controls": ariaControls !== '' && ariaControls, "aria-label": ariaLabel, "aria-labelledby": ariaLabel !== 'Details' ? null : `${rowid} ${id}`, "aria-expanded": isExpanded },
|
|
10305
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10307
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListToggleIcon) },
|
|
10306
10308
|
React__namespace.createElement(AngleRightIcon, null))))));
|
|
10307
10309
|
};
|
|
10308
10310
|
DataListToggle.displayName = 'DataListToggle';
|
|
@@ -10311,8 +10313,8 @@
|
|
|
10311
10313
|
var { className = '', children = null, id = '', isHidden = false, 'aria-label': ariaLabel, hasNoPadding = false,
|
|
10312
10314
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10313
10315
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", 'aria-label', "hasNoPadding", "rowid"]);
|
|
10314
|
-
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$
|
|
10315
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10316
|
+
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$O.dataListExpandableContent, className), hidden: isHidden, "aria-label": ariaLabel }, props),
|
|
10317
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListExpandableContentBody, hasNoPadding && styles$O.modifiers.noPadding) }, children)));
|
|
10316
10318
|
};
|
|
10317
10319
|
DataListContent.displayName = 'DataListContent';
|
|
10318
10320
|
|
|
@@ -10329,7 +10331,7 @@
|
|
|
10329
10331
|
}
|
|
10330
10332
|
onMouseEnterProp(event);
|
|
10331
10333
|
};
|
|
10332
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$
|
|
10334
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$O.modifiers[wrapModifier], styles$O.dataListText) }, props), children));
|
|
10333
10335
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, { content: tooltip, isVisible: true }, text)) : (text);
|
|
10334
10336
|
};
|
|
10335
10337
|
DataListText.displayName = 'DataListText';
|
|
@@ -10470,7 +10472,7 @@
|
|
|
10470
10472
|
DatePicker.displayName = 'DatePicker';
|
|
10471
10473
|
|
|
10472
10474
|
Promise.resolve().then(function () { return descriptionList; });
|
|
10473
|
-
var styles$
|
|
10475
|
+
var styles$N = {
|
|
10474
10476
|
"card": "pf-c-card",
|
|
10475
10477
|
"descriptionList": "pf-c-description-list",
|
|
10476
10478
|
"descriptionListDescription": "pf-c-description-list__description",
|
|
@@ -10536,45 +10538,45 @@
|
|
|
10536
10538
|
if (isHorizontal && horizontalTermWidthModifier) {
|
|
10537
10539
|
style = Object.assign(Object.assign({}, style), setBreakpointModifiers('--pf-c-description-list--m-horizontal__term--width', horizontalTermWidthModifier));
|
|
10538
10540
|
}
|
|
10539
|
-
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$
|
|
10541
|
+
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$N.descriptionList, (isHorizontal || isFluid) && styles$N.modifiers.horizontal, isAutoColumnWidths && styles$N.modifiers.autoColumnWidths, isAutoFit && styles$N.modifiers.autoFit, formatBreakpointMods(columnModifier, styles$N), formatBreakpointMods(orientation, styles$N), isInlineGrid && styles$N.modifiers.inlineGrid, isCompact && styles$N.modifiers.compact, isFluid && styles$N.modifiers.fluid, isFillColumns && styles$N.modifiers.fillColumns, displaySize === 'lg' && styles$N.modifiers.displayLg, displaySize === '2xl' && styles$N.modifiers.display_2xl, className), style: style }, props), children));
|
|
10540
10542
|
};
|
|
10541
10543
|
DescriptionList.displayName = 'DescriptionList';
|
|
10542
10544
|
|
|
10543
10545
|
const DescriptionListDescription = (_a) => {
|
|
10544
10546
|
var { children = null, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10545
|
-
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$
|
|
10547
|
+
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$N.descriptionListDescription, className) }, props),
|
|
10546
10548
|
React__namespace.createElement("div", { className: 'pf-c-description-list__text' }, children)));
|
|
10547
10549
|
};
|
|
10548
10550
|
DescriptionListDescription.displayName = 'DescriptionListDescription';
|
|
10549
10551
|
|
|
10550
10552
|
const DescriptionListGroup = (_a) => {
|
|
10551
10553
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10552
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10554
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.descriptionListGroup, className) }, props), children));
|
|
10553
10555
|
};
|
|
10554
10556
|
DescriptionListGroup.displayName = 'DescriptionListGroup';
|
|
10555
10557
|
|
|
10556
10558
|
const DescriptionListTerm = (_a) => {
|
|
10557
10559
|
var { children, className, icon } = _a, props = __rest$1(_a, ["children", "className", "icon"]);
|
|
10558
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10559
|
-
icon ? React__namespace.createElement("span", { className: css(styles$
|
|
10560
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10560
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$N.descriptionListTerm, className) }, props),
|
|
10561
|
+
icon ? React__namespace.createElement("span", { className: css(styles$N.descriptionListTermIcon) }, icon) : null,
|
|
10562
|
+
React__namespace.createElement("span", { className: css(styles$N.descriptionListText) }, children)));
|
|
10561
10563
|
};
|
|
10562
10564
|
DescriptionListTerm.displayName = 'DescriptionListTerm';
|
|
10563
10565
|
|
|
10564
10566
|
const DescriptionListTermHelpText = (_a) => {
|
|
10565
10567
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10566
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10568
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$N.descriptionListTerm, className) }, props), children));
|
|
10567
10569
|
};
|
|
10568
10570
|
DescriptionListTermHelpText.displayName = 'DescriptionListTermHelpText';
|
|
10569
10571
|
|
|
10570
10572
|
const DescriptionListTermHelpTextButton = (_a) => {
|
|
10571
10573
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10572
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$
|
|
10574
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$N.descriptionListText, styles$N.modifiers.helpText), role: "button", type: "button", tabIndex: 0 }, props), children));
|
|
10573
10575
|
};
|
|
10574
10576
|
DescriptionListTermHelpTextButton.displayName = 'DescriptionListTermHelpTextButton';
|
|
10575
10577
|
|
|
10576
10578
|
Promise.resolve().then(function () { return drawer; });
|
|
10577
|
-
var styles$
|
|
10579
|
+
var styles$M = {
|
|
10578
10580
|
"drawer": "pf-c-drawer",
|
|
10579
10581
|
"drawerActions": "pf-c-drawer__actions",
|
|
10580
10582
|
"drawerBody": "pf-c-drawer__body",
|
|
@@ -10655,7 +10657,7 @@
|
|
|
10655
10657
|
const drawerRef = React__namespace.useRef();
|
|
10656
10658
|
const drawerContentRef = React__namespace.useRef();
|
|
10657
10659
|
return (React__namespace.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
10658
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10660
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawer, isExpanded && styles$M.modifiers.expanded, isInline && styles$M.modifiers.inline, isStatic && styles$M.modifiers.static, position === 'left' && styles$M.modifiers.panelLeft, position === 'bottom' && styles$M.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
10659
10661
|
};
|
|
10660
10662
|
Drawer.displayName = 'Drawer';
|
|
10661
10663
|
|
|
@@ -10663,7 +10665,7 @@
|
|
|
10663
10665
|
var {
|
|
10664
10666
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10665
10667
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10666
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10668
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerActions, className) }, props), children));
|
|
10667
10669
|
};
|
|
10668
10670
|
DrawerActions.displayName = 'DrawerActions';
|
|
10669
10671
|
|
|
@@ -10671,7 +10673,7 @@
|
|
|
10671
10673
|
var {
|
|
10672
10674
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10673
10675
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
10674
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10676
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerClose, className) }, props),
|
|
10675
10677
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
10676
10678
|
React__namespace.createElement(TimesIcon, null))));
|
|
10677
10679
|
};
|
|
@@ -10681,7 +10683,7 @@
|
|
|
10681
10683
|
var {
|
|
10682
10684
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10683
10685
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10684
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10686
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerMain, className) }, props), children));
|
|
10685
10687
|
};
|
|
10686
10688
|
DrawerMain.displayName = 'DrawerMain';
|
|
10687
10689
|
|
|
@@ -10691,7 +10693,7 @@
|
|
|
10691
10693
|
className = '', children, panelContent, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
10692
10694
|
const { drawerContentRef } = React__namespace.useContext(DrawerContext);
|
|
10693
10695
|
return (React__namespace.createElement(DrawerMain, null,
|
|
10694
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10696
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerContent, colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
10695
10697
|
panelContent));
|
|
10696
10698
|
};
|
|
10697
10699
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -10700,7 +10702,7 @@
|
|
|
10700
10702
|
var {
|
|
10701
10703
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10702
10704
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
10703
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10705
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerBody, hasPadding && styles$M.modifiers.padding, className) }, props), children));
|
|
10704
10706
|
};
|
|
10705
10707
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
10706
10708
|
|
|
@@ -10708,7 +10710,7 @@
|
|
|
10708
10710
|
var {
|
|
10709
10711
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10710
10712
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10711
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10713
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerBody, hasNoPadding && styles$M.modifiers.noPadding, className) }, props), children));
|
|
10712
10714
|
};
|
|
10713
10715
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
10714
10716
|
|
|
@@ -10717,7 +10719,7 @@
|
|
|
10717
10719
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10718
10720
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10719
10721
|
return (React__namespace.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
10720
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10722
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerHead, className) }, props), children)));
|
|
10721
10723
|
};
|
|
10722
10724
|
DrawerHead.displayName = 'DrawerHead';
|
|
10723
10725
|
|
|
@@ -10785,7 +10787,7 @@
|
|
|
10785
10787
|
e.preventDefault();
|
|
10786
10788
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
10787
10789
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
10788
|
-
drawerRef.current.classList.add(css(styles$
|
|
10790
|
+
drawerRef.current.classList.add(css(styles$M.modifiers.resizing));
|
|
10789
10791
|
isResizing = true;
|
|
10790
10792
|
setInitialVals = true;
|
|
10791
10793
|
};
|
|
@@ -10833,7 +10835,7 @@
|
|
|
10833
10835
|
if (!isResizing) {
|
|
10834
10836
|
return;
|
|
10835
10837
|
}
|
|
10836
|
-
drawerRef.current.classList.remove(css(styles$
|
|
10838
|
+
drawerRef.current.classList.remove(css(styles$M.modifiers.resizing));
|
|
10837
10839
|
isResizing = false;
|
|
10838
10840
|
onResize && onResize(currWidth, id);
|
|
10839
10841
|
setInitialVals = true;
|
|
@@ -10904,7 +10906,7 @@
|
|
|
10904
10906
|
if (maxSize) {
|
|
10905
10907
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
10906
10908
|
}
|
|
10907
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$
|
|
10909
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$M.drawerPanel, isResizable && styles$M.modifiers.resizable, hasNoBorder && styles$M.modifiers.noBorder, formatBreakpointMods(widths, styles$M), colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
|
|
10908
10910
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
10909
10911
|
onExpand();
|
|
10910
10912
|
}
|
|
@@ -10913,9 +10915,9 @@
|
|
|
10913
10915
|
style: boundaryCssVars
|
|
10914
10916
|
}), props), isExpandedInternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10915
10917
|
isResizable && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10916
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10917
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10918
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10918
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerSplitter, position !== 'bottom' && styles$M.modifiers.vertical), role: "separator", tabIndex: 0, "aria-orientation": position === 'bottom' ? 'horizontal' : 'vertical', "aria-label": resizeAriaLabel, "aria-valuenow": separatorValue, "aria-valuemin": 0, "aria-valuemax": 100, "aria-controls": id || panelId, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart, ref: splitterRef },
|
|
10919
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerSplitterHandle), "aria-hidden": true })),
|
|
10920
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerPanelMain) }, children))),
|
|
10919
10921
|
!isResizable && children))))));
|
|
10920
10922
|
};
|
|
10921
10923
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -10924,12 +10926,12 @@
|
|
|
10924
10926
|
var {
|
|
10925
10927
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10926
10928
|
className = '', children, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "colorVariant"]);
|
|
10927
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10929
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerSection, colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className) }, props), children));
|
|
10928
10930
|
};
|
|
10929
10931
|
DrawerSection.displayName = 'DrawerSection';
|
|
10930
10932
|
|
|
10931
10933
|
Promise.resolve().then(function () { return dualListSelector; });
|
|
10932
|
-
var styles$
|
|
10934
|
+
var styles$L = {
|
|
10933
10935
|
"badge": "pf-c-badge",
|
|
10934
10936
|
"button": "pf-c-button",
|
|
10935
10937
|
"dualListSelector": "pf-c-dual-list-selector",
|
|
@@ -11072,16 +11074,16 @@
|
|
|
11072
11074
|
React__namespace.useEffect(() => {
|
|
11073
11075
|
setIsExpanded(defaultExpanded);
|
|
11074
11076
|
}, [defaultExpanded]);
|
|
11075
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11076
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11077
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11077
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$L.dualListSelectorListItem, className, children && styles$L.modifiers.expandable, isExpanded && styles$L.modifiers.expanded, isDisabled && styles$L.modifiers.disabled), id: id }, props, { "aria-selected": isChecked, role: "treeitem" }, (isExpanded && { 'aria-expanded': 'true' })),
|
|
11078
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorListItemRow, isChecked && styles$L.modifiers.selected, styles$L.modifiers.check) },
|
|
11079
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorItem), ref: ref, tabIndex: -1, onClick: isDisabled
|
|
11078
11080
|
? undefined
|
|
11079
11081
|
: evt => {
|
|
11080
11082
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11081
11083
|
setFocusedOption(id);
|
|
11082
11084
|
} },
|
|
11083
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11084
|
-
children && (React__namespace.createElement("div", { className: css(styles$
|
|
11085
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemMain) },
|
|
11086
|
+
children && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorItemToggle), onClick: e => {
|
|
11085
11087
|
if (children) {
|
|
11086
11088
|
setIsExpanded(!isExpanded);
|
|
11087
11089
|
}
|
|
@@ -11092,9 +11094,9 @@
|
|
|
11092
11094
|
e.preventDefault();
|
|
11093
11095
|
}
|
|
11094
11096
|
}, tabIndex: -1 },
|
|
11095
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11097
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemToggleIcon) },
|
|
11096
11098
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
11097
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11099
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemCheck) },
|
|
11098
11100
|
React__namespace.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
|
|
11099
11101
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11100
11102
|
setFocusedOption(id);
|
|
@@ -11105,8 +11107,8 @@
|
|
|
11105
11107
|
e.preventDefault();
|
|
11106
11108
|
}
|
|
11107
11109
|
}, ref: elem => elem && (elem.indeterminate = isChecked === null), checked: isChecked || false, tabIndex: -1 }, checkProps))),
|
|
11108
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11109
|
-
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$
|
|
11110
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemText) }, text),
|
|
11111
|
+
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemCount) },
|
|
11110
11112
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps), flattenTree(children.props.data).length)))))),
|
|
11111
11113
|
isExpanded && children));
|
|
11112
11114
|
};
|
|
@@ -11135,7 +11137,7 @@
|
|
|
11135
11137
|
const tree = dataToRender.map(item => (React__namespace.createElement(DualListSelectorTreeItem, Object.assign({ key: item.id, text: item.text, id: item.id, defaultExpanded: item.defaultExpanded !== undefined ? item.defaultExpanded : defaultAllExpanded, onOptionCheck: onOptionCheck, isChecked: item.isChecked, checkProps: item.checkProps, hasBadge: item.hasBadge !== undefined ? item.hasBadge : hasBadges, badgeProps: item.badgeProps, itemData: item, isDisabled: isDisabled, useMemo: true }, (item.children && {
|
|
11136
11138
|
children: (React__namespace.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
|
|
11137
11139
|
})))));
|
|
11138
|
-
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11140
|
+
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$L.dualListSelectorList), role: "group" }, props), tree)) : (React__namespace.createElement(React__namespace.Fragment, null, tree));
|
|
11139
11141
|
};
|
|
11140
11142
|
DualListSelectorTree.displayName = 'DualListSelectorTree';
|
|
11141
11143
|
|
|
@@ -11145,7 +11147,7 @@
|
|
|
11145
11147
|
draggableButtonAriaLabel = 'Reorder option' } = _a, props = __rest$1(_a, ["onOptionSelect", "orderIndex", "children", "className", "id", "isSelected", "innerRef", "isDraggable", "isDisabled", "draggableButtonAriaLabel"]);
|
|
11146
11148
|
const ref = innerRef || React__namespace.useRef(null);
|
|
11147
11149
|
const { setFocusedOption } = React__namespace.useContext(DualListSelectorListContext);
|
|
11148
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11150
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$L.dualListSelectorListItem, className, isDisabled && styles$L.modifiers.disabled), key: orderIndex, onClick: isDisabled
|
|
11149
11151
|
? undefined
|
|
11150
11152
|
: (e) => {
|
|
11151
11153
|
setFocusedOption(id);
|
|
@@ -11156,13 +11158,13 @@
|
|
|
11156
11158
|
e.preventDefault();
|
|
11157
11159
|
}
|
|
11158
11160
|
}, "aria-selected": isSelected, id: id, ref: ref, role: "option", tabIndex: -1 }, props),
|
|
11159
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11160
|
-
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$
|
|
11161
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorListItemRow, isSelected && styles$L.modifiers.selected) },
|
|
11162
|
+
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorDraggable) },
|
|
11161
11163
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, component: "span" },
|
|
11162
11164
|
React__namespace.createElement(GripVerticalIcon, { style: { verticalAlign: '-0.3em' } })))),
|
|
11163
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11164
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11165
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11165
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItem) },
|
|
11166
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemMain) },
|
|
11167
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemText) }, children))))));
|
|
11166
11168
|
};
|
|
11167
11169
|
DualListSelectorListItemBase.displayName = 'DualListSelectorListItemBase';
|
|
11168
11170
|
const DualListSelectorListItem = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorListItemBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -11177,7 +11179,7 @@
|
|
|
11177
11179
|
onOptionSelect(e, index, id);
|
|
11178
11180
|
};
|
|
11179
11181
|
const hasOptions = () => options.length !== 0 || (children !== undefined && children.length !== 0);
|
|
11180
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11182
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$L.dualListSelectorList) }, (hasOptions() && {
|
|
11181
11183
|
role: isTree ? 'tree' : 'listbox',
|
|
11182
11184
|
'aria-multiselectable': true,
|
|
11183
11185
|
'aria-labelledby': ariaLabelledBy,
|
|
@@ -11227,7 +11229,7 @@
|
|
|
11227
11229
|
window.removeEventListener('keydown', handleKeys);
|
|
11228
11230
|
};
|
|
11229
11231
|
}, [menuRef.current]);
|
|
11230
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11232
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorMenu, className), ref: menuRef, tabIndex: 0 }, props),
|
|
11231
11233
|
React__namespace.createElement(DualListSelectorListContext.Provider, { value: {
|
|
11232
11234
|
setFocusedOption,
|
|
11233
11235
|
isTree,
|
|
@@ -11298,15 +11300,15 @@
|
|
|
11298
11300
|
.includes(input.toLowerCase());
|
|
11299
11301
|
}
|
|
11300
11302
|
};
|
|
11301
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11302
|
-
title && (React__namespace.createElement("div", { className: css(styles$
|
|
11303
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorPane, isChosen ? styles$L.modifiers.chosen : 'pf-m-available', className) }, props),
|
|
11304
|
+
title && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorHeader) },
|
|
11303
11305
|
React__namespace.createElement("div", { className: "pf-c-dual-list-selector__title" },
|
|
11304
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11305
|
-
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$
|
|
11306
|
-
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$
|
|
11307
|
-
actions && React__namespace.createElement("div", { className: css(styles$
|
|
11308
|
-
status && (React__namespace.createElement("div", { className: css(styles$
|
|
11309
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11306
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorTitleText) }, title)))),
|
|
11307
|
+
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorTools) },
|
|
11308
|
+
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorToolsFilter) }, searchInput ? (searchInput) : (React__namespace.createElement("input", { className: css(formStyles.formControl, formStyles.modifiers.search), type: "search", onChange: isDisabled ? undefined : onChange, "aria-label": searchInputAriaLabel, disabled: isDisabled })))),
|
|
11309
|
+
actions && React__namespace.createElement("div", { className: css(styles$L.dualListSelectorToolsActions) }, actions))),
|
|
11310
|
+
status && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorStatus) },
|
|
11311
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorStatusText), id: `${id}-status` }, status))),
|
|
11310
11312
|
React__namespace.createElement(DualListSelectorPaneContext.Provider, { value: { isChosen } },
|
|
11311
11313
|
!isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, options: options, selectedOptions: selectedOptions, onOptionSelect: (e, index, id) => onOptionSelect(e, index, isChosen, id), displayOption: displayOption, id: `${id}-list`, isDisabled: isDisabled }, children)),
|
|
11312
11314
|
isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, id: `${id}-list` }, options.length > 0 ? (React__namespace.createElement(DualListSelectorList, null,
|
|
@@ -11340,7 +11342,7 @@
|
|
|
11340
11342
|
window.removeEventListener('keydown', handleKeys);
|
|
11341
11343
|
};
|
|
11342
11344
|
}, [wrapperRef.current]);
|
|
11343
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11345
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorControls, className), tabIndex: 0, ref: wrapperRef, "aria-label": ariaLabel }, props), children));
|
|
11344
11346
|
};
|
|
11345
11347
|
DualListSelectorControlsWrapperBase.displayName = 'DualListSelectorControlsWrapperBase';
|
|
11346
11348
|
const DualListSelectorControlsWrapper = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref, role: "group" }, props))));
|
|
@@ -11753,7 +11755,7 @@
|
|
|
11753
11755
|
? chosenOptions.map(item => this.mapChecked(item, true))
|
|
11754
11756
|
: chosenOptions);
|
|
11755
11757
|
return (React__namespace.createElement(DualListSelectorContext.Provider, { value: { isTree } },
|
|
11756
|
-
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11758
|
+
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelector, className), id: id || randomId }, props), children === '' ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11757
11759
|
React__namespace.createElement(DualListSelectorPane, { isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: availableOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onAvailableOptionsSearchInputChanged, status: availableOptionsStatusToDisplay, title: availableOptionsTitle, options: available, selectedOptions: isTree ? availableTreeOptionsChecked : availableOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, false), actions: availableOptionsActions, id: `${id || randomId}-available-pane`, isDisabled: isDisabled }),
|
|
11758
11760
|
React__namespace.createElement(DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
|
|
11759
11761
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
|
|
@@ -11788,7 +11790,7 @@
|
|
|
11788
11790
|
};
|
|
11789
11791
|
|
|
11790
11792
|
Promise.resolve().then(function () { return emptyState; });
|
|
11791
|
-
var styles$
|
|
11793
|
+
var styles$K = {
|
|
11792
11794
|
"button": "pf-c-button",
|
|
11793
11795
|
"emptyState": "pf-c-empty-state",
|
|
11794
11796
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -11818,20 +11820,20 @@
|
|
|
11818
11820
|
})(exports.EmptyStateVariant || (exports.EmptyStateVariant = {}));
|
|
11819
11821
|
const EmptyState = (_a) => {
|
|
11820
11822
|
var { children, className = '', variant = exports.EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
11821
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11822
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11823
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyState, variant === 'xs' && styles$K.modifiers.xs, variant === 'small' && styles$K.modifiers.sm, variant === 'large' && styles$K.modifiers.lg, variant === 'xl' && styles$K.modifiers.xl, isFullHeight && styles$K.modifiers.fullHeight, className) }, props),
|
|
11824
|
+
React__namespace.createElement("div", { className: css(styles$K.emptyStateContent) }, children)));
|
|
11823
11825
|
};
|
|
11824
11826
|
EmptyState.displayName = 'EmptyState';
|
|
11825
11827
|
|
|
11826
11828
|
const EmptyStateBody = (_a) => {
|
|
11827
11829
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11828
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11830
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStateBody, className) }, props), children));
|
|
11829
11831
|
};
|
|
11830
11832
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
11831
11833
|
|
|
11832
11834
|
const EmptyStateIcon = (_a) => {
|
|
11833
11835
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest$1(_a, ["className", "icon", "component", "variant"]);
|
|
11834
|
-
const classNames = css(styles$
|
|
11836
|
+
const classNames = css(styles$K.emptyStateIcon, className);
|
|
11835
11837
|
return variant === 'icon' ? (React__namespace.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React__namespace.createElement("div", { className: classNames },
|
|
11836
11838
|
React__namespace.createElement(AnyComponent, null)));
|
|
11837
11839
|
};
|
|
@@ -11839,18 +11841,18 @@
|
|
|
11839
11841
|
|
|
11840
11842
|
const EmptyStateSecondaryActions = (_a) => {
|
|
11841
11843
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11842
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11844
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStateSecondary, className) }, props), children));
|
|
11843
11845
|
};
|
|
11844
11846
|
EmptyStateSecondaryActions.displayName = 'EmptyStateSecondaryActions';
|
|
11845
11847
|
|
|
11846
11848
|
const EmptyStatePrimary = (_a) => {
|
|
11847
11849
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11848
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11850
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStatePrimary, className) }, props), children));
|
|
11849
11851
|
};
|
|
11850
11852
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
11851
11853
|
|
|
11852
11854
|
Promise.resolve().then(function () { return expandableSection; });
|
|
11853
|
-
var styles$
|
|
11855
|
+
var styles$J = {
|
|
11854
11856
|
"expandableSection": "pf-c-expandable-section",
|
|
11855
11857
|
"expandableSectionContent": "pf-c-expandable-section__content",
|
|
11856
11858
|
"expandableSectionToggle": "pf-c-expandable-section__toggle",
|
|
@@ -11869,9 +11871,27 @@
|
|
|
11869
11871
|
}
|
|
11870
11872
|
};
|
|
11871
11873
|
|
|
11874
|
+
const c_expandable_section_m_truncate__content_LineClamp = {
|
|
11875
|
+
"name": "--pf-c-expandable-section--m-truncate__content--LineClamp",
|
|
11876
|
+
"value": "3",
|
|
11877
|
+
"var": "var(--pf-c-expandable-section--m-truncate__content--LineClamp)"
|
|
11878
|
+
};
|
|
11879
|
+
|
|
11880
|
+
exports.ExpandableSectionVariant = void 0;
|
|
11881
|
+
(function (ExpandableSectionVariant) {
|
|
11882
|
+
ExpandableSectionVariant["default"] = "default";
|
|
11883
|
+
ExpandableSectionVariant["truncate"] = "truncate";
|
|
11884
|
+
})(exports.ExpandableSectionVariant || (exports.ExpandableSectionVariant = {}));
|
|
11885
|
+
const setLineClamp = (lines, element) => {
|
|
11886
|
+
if (!element || lines < 1) {
|
|
11887
|
+
return;
|
|
11888
|
+
}
|
|
11889
|
+
element.style.setProperty(c_expandable_section_m_truncate__content_LineClamp.name, lines.toString());
|
|
11890
|
+
};
|
|
11872
11891
|
class ExpandableSection extends React__namespace.Component {
|
|
11873
11892
|
constructor(props) {
|
|
11874
11893
|
super(props);
|
|
11894
|
+
this.expandableContentRef = React__namespace.createRef();
|
|
11875
11895
|
this.state = {
|
|
11876
11896
|
isExpanded: props.isExpanded
|
|
11877
11897
|
};
|
|
@@ -11885,10 +11905,25 @@
|
|
|
11885
11905
|
}
|
|
11886
11906
|
return toggleText;
|
|
11887
11907
|
}
|
|
11908
|
+
componentDidMount() {
|
|
11909
|
+
if (this.props.variant === exports.ExpandableSectionVariant.truncate && this.props.truncateMaxLines) {
|
|
11910
|
+
const expandableContent = this.expandableContentRef.current;
|
|
11911
|
+
setLineClamp(this.props.truncateMaxLines, expandableContent);
|
|
11912
|
+
}
|
|
11913
|
+
}
|
|
11914
|
+
componentDidUpdate(prevProps) {
|
|
11915
|
+
if (this.props.variant === exports.ExpandableSectionVariant.truncate &&
|
|
11916
|
+
prevProps.truncateMaxLines !== this.props.truncateMaxLines) {
|
|
11917
|
+
const expandableContent = this.expandableContentRef.current;
|
|
11918
|
+
setLineClamp(this.props.truncateMaxLines, expandableContent);
|
|
11919
|
+
}
|
|
11920
|
+
}
|
|
11888
11921
|
render() {
|
|
11889
11922
|
const _a = this.props, { onToggle: onToggleProp,
|
|
11890
11923
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11891
|
-
isActive, className, toggleText, toggleTextExpanded, toggleTextCollapsed, toggleContent, children, isExpanded, isDetached, displaySize, isWidthLimited, isIndented, contentId
|
|
11924
|
+
isActive, className, toggleText, toggleTextExpanded, toggleTextCollapsed, toggleContent, children, isExpanded, isDetached, displaySize, isWidthLimited, isIndented, contentId, variant,
|
|
11925
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11926
|
+
truncateMaxLines } = _a, props = __rest$1(_a, ["onToggle", "isActive", "className", "toggleText", "toggleTextExpanded", "toggleTextCollapsed", "toggleContent", "children", "isExpanded", "isDetached", "displaySize", "isWidthLimited", "isIndented", "contentId", "variant", "truncateMaxLines"]);
|
|
11892
11927
|
let onToggle = onToggleProp;
|
|
11893
11928
|
let propOrStateIsExpanded = isExpanded;
|
|
11894
11929
|
// uncontrolled
|
|
@@ -11899,12 +11934,14 @@
|
|
|
11899
11934
|
};
|
|
11900
11935
|
}
|
|
11901
11936
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
React__namespace.createElement(
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11937
|
+
const expandableToggle = !isDetached && (React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
11938
|
+
variant !== exports.ExpandableSectionVariant.truncate && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon) },
|
|
11939
|
+
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
11940
|
+
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
11941
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, propOrStateIsExpanded && styles$J.modifiers.expanded, isActive && styles$J.modifiers.active, isDetached && styles$J.modifiers.detached, displaySize === 'large' && styles$J.modifiers.displayLg, isWidthLimited && styles$J.modifiers.limitWidth, isIndented && styles$J.modifiers.indented, variant === exports.ExpandableSectionVariant.truncate && styles$J.modifiers.truncate, className) }, props),
|
|
11942
|
+
variant === exports.ExpandableSectionVariant.default && expandableToggle,
|
|
11943
|
+
React__namespace.createElement("div", { ref: this.expandableContentRef, className: css(styles$J.expandableSectionContent), hidden: variant !== exports.ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
11944
|
+
variant === exports.ExpandableSectionVariant.truncate && expandableToggle));
|
|
11908
11945
|
}
|
|
11909
11946
|
}
|
|
11910
11947
|
ExpandableSection.displayName = 'ExpandableSection';
|
|
@@ -11920,21 +11957,22 @@
|
|
|
11920
11957
|
displaySize: 'default',
|
|
11921
11958
|
isWidthLimited: false,
|
|
11922
11959
|
isIndented: false,
|
|
11923
|
-
contentId: ''
|
|
11960
|
+
contentId: '',
|
|
11961
|
+
variant: 'default'
|
|
11924
11962
|
};
|
|
11925
11963
|
|
|
11926
11964
|
const ExpandableSectionToggle = (_a) => {
|
|
11927
|
-
var { children, className = '', isExpanded = false, onToggle, contentId, direction = 'down' } = _a, props = __rest$1(_a, ["children", "className", "isExpanded", "onToggle", "contentId", "direction"]);
|
|
11928
|
-
return (React__namespace.createElement("div", Object.assign({
|
|
11929
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
11930
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11931
|
-
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true })),
|
|
11932
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11965
|
+
var { children, className = '', isExpanded = false, onToggle, contentId, direction = 'down', hasTruncatedContent = false } = _a, props = __rest$1(_a, ["children", "className", "isExpanded", "onToggle", "contentId", "direction", "hasTruncatedContent"]);
|
|
11966
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, isExpanded && styles$J.modifiers.expanded, styles$J.modifiers.detached, hasTruncatedContent && styles$J.modifiers.truncate, className) }, props),
|
|
11967
|
+
React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": isExpanded, "aria-controls": contentId, onClick: () => onToggle(!isExpanded) },
|
|
11968
|
+
!hasTruncatedContent && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon, isExpanded && direction === 'up' && styles$J.modifiers.expandTop) },
|
|
11969
|
+
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
11970
|
+
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, children))));
|
|
11933
11971
|
};
|
|
11934
11972
|
ExpandableSectionToggle.displayName = 'ExpandableSectionToggle';
|
|
11935
11973
|
|
|
11936
11974
|
Promise.resolve().then(function () { return fileUpload; });
|
|
11937
|
-
var styles$
|
|
11975
|
+
var styles$I = {
|
|
11938
11976
|
"button": "pf-c-button",
|
|
11939
11977
|
"fileUpload": "pf-c-file-upload",
|
|
11940
11978
|
"fileUploadFileDetails": "pf-c-file-upload__file-details",
|
|
@@ -11983,16 +12021,16 @@
|
|
|
11983
12021
|
onChange(newValue, filename, event);
|
|
11984
12022
|
onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);
|
|
11985
12023
|
};
|
|
11986
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11987
|
-
React__namespace.createElement("div", { className: styles$
|
|
12024
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$I.fileUpload, isDragActive && styles$I.modifiers.dragHover, isLoading && styles$I.modifiers.loading, className), ref: containerRef }, props),
|
|
12025
|
+
React__namespace.createElement("div", { className: styles$I.fileUploadFileSelect },
|
|
11988
12026
|
React__namespace.createElement(InputGroup, null,
|
|
11989
12027
|
React__namespace.createElement(TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
|
|
11990
12028
|
: true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, "aria-label": filenameAriaLabel, placeholder: filenamePlaceholder, "aria-describedby": `${id}-browse-button`, value: filename }),
|
|
11991
12029
|
React__namespace.createElement(Button, { id: `${id}-browse-button`, variant: exports.ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),
|
|
11992
12030
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),
|
|
11993
|
-
React__namespace.createElement("div", { className: styles$
|
|
12031
|
+
React__namespace.createElement("div", { className: styles$I.fileUploadFileDetails },
|
|
11994
12032
|
!hideDefaultPreview && type === fileReaderType.text && (React__namespace.createElement(TextArea, { readOnly: isReadOnly || (!!filename && !allowEditingUploadedText), disabled: isDisabled, isRequired: isRequired, resizeOrientation: exports.TextAreResizeOrientation.vertical, validated: validated, id: id, name: id, "aria-label": ariaLabel, value: value, onChange: onTextAreaChange, onClick: onTextAreaClick, onBlur: onTextAreaBlur, placeholder: textAreaPlaceholder })),
|
|
11995
|
-
isLoading && (React__namespace.createElement("div", { className: styles$
|
|
12033
|
+
isLoading && (React__namespace.createElement("div", { className: styles$I.fileUploadFileDetailsSpinner },
|
|
11996
12034
|
React__namespace.createElement(Spinner, { size: exports.spinnerSize.lg, "aria-valuetext": spinnerAriaValueText })))),
|
|
11997
12035
|
children));
|
|
11998
12036
|
};
|
|
@@ -14082,10 +14120,10 @@
|
|
|
14082
14120
|
|
|
14083
14121
|
const ActionGroup = (_a) => {
|
|
14084
14122
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14085
|
-
const customClassName = css(styles$
|
|
14086
|
-
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$
|
|
14123
|
+
const customClassName = css(styles$Z.formGroup, styles$Z.modifiers.action, className);
|
|
14124
|
+
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$Z.formActions) }, children);
|
|
14087
14125
|
return (React__namespace.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
14088
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14126
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupControl) }, formActionsComponent)));
|
|
14089
14127
|
};
|
|
14090
14128
|
ActionGroup.displayName = 'ActionGroup';
|
|
14091
14129
|
|
|
@@ -14093,7 +14131,7 @@
|
|
|
14093
14131
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]);
|
|
14094
14132
|
return (React__namespace.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
14095
14133
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
14096
|
-
}), props, { className: css(styles$
|
|
14134
|
+
}), props, { className: css(styles$Z.form, isHorizontal && styles$Z.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$Z.modifiers.limitWidth, className) }), children));
|
|
14097
14135
|
};
|
|
14098
14136
|
Form.displayName = 'Form';
|
|
14099
14137
|
|
|
@@ -14108,10 +14146,10 @@
|
|
|
14108
14146
|
|
|
14109
14147
|
const FormFieldGroupToggle = (_a) => {
|
|
14110
14148
|
var { className, onToggle, isExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, toggleId } = _a, props = __rest$1(_a, ["className", "onToggle", "isExpanded", 'aria-label', 'aria-labelledby', "toggleId"]);
|
|
14111
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14112
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14149
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroupToggle, className) }, props),
|
|
14150
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupToggleButton) },
|
|
14113
14151
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
|
14114
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14152
|
+
React__namespace.createElement("span", { className: css(styles$Z.formFieldGroupToggleIcon) },
|
|
14115
14153
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))))));
|
|
14116
14154
|
};
|
|
14117
14155
|
FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
|
@@ -14123,10 +14161,10 @@
|
|
|
14123
14161
|
// eslint-disable-next-line no-console
|
|
14124
14162
|
console.error('FormFieldGroupExpandable:', 'toggleAriaLabel or the titleText prop of FormFieldGroupHeader is required to make the toggle button accessible');
|
|
14125
14163
|
}
|
|
14126
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14164
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroup, isExpanded && isExpandable && styles$Z.modifiers.expanded, className), role: "group" }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id}` }), props),
|
|
14127
14165
|
isExpandable && (React__namespace.createElement(GenerateId, { prefix: "form-field-group-toggle" }, id => (React__namespace.createElement(FormFieldGroupToggle, Object.assign({ onToggle: onToggle, isExpanded: isExpanded, "aria-label": toggleAriaLabel, toggleId: id }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id} ${id}` })))))),
|
|
14128
14166
|
header && header,
|
|
14129
|
-
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
14167
|
+
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupBody) }, children))));
|
|
14130
14168
|
};
|
|
14131
14169
|
InternalFormFieldGroup.displayName = 'InternalFormFieldGroup';
|
|
14132
14170
|
|
|
@@ -14145,42 +14183,42 @@
|
|
|
14145
14183
|
|
|
14146
14184
|
const FormFieldGroupHeader = (_a) => {
|
|
14147
14185
|
var { className, titleText, titleDescription, actions } = _a, props = __rest$1(_a, ["className", "titleText", "titleDescription", "actions"]);
|
|
14148
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14149
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14150
|
-
titleText && (React__namespace.createElement("div", { className: css(styles$
|
|
14151
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14152
|
-
titleDescription && React__namespace.createElement("div", { className: css(styles$
|
|
14153
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14186
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroupHeader, className) }, props),
|
|
14187
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderMain) },
|
|
14188
|
+
titleText && (React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderTitle) },
|
|
14189
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderTitleText), id: titleText.id }, titleText.text))),
|
|
14190
|
+
titleDescription && React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderDescription) }, titleDescription)),
|
|
14191
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderActions) }, actions && actions)));
|
|
14154
14192
|
};
|
|
14155
14193
|
FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
|
|
14156
14194
|
|
|
14157
14195
|
const FormGroup = (_a) => {
|
|
14158
14196
|
var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId, role } = _a, props = __rest$1(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId", "role"]);
|
|
14159
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$
|
|
14160
|
-
helperTextIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14197
|
+
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$Z.formHelperText, validated === exports.ValidatedOptions.success && styles$Z.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Z.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14198
|
+
helperTextIcon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, helperTextIcon),
|
|
14161
14199
|
helperText));
|
|
14162
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$
|
|
14163
|
-
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14200
|
+
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$Z.formHelperText, styles$Z.modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14201
|
+
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, helperTextInvalidIcon),
|
|
14164
14202
|
helperTextInvalid));
|
|
14165
14203
|
const showValidHelperTxt = (validationType) => validationType !== exports.ValidatedOptions.error && helperText ? validHelperText : '';
|
|
14166
14204
|
const helperTextToDisplay = validated === exports.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
14167
14205
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
14168
14206
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
14169
14207
|
const labelContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14170
|
-
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$
|
|
14171
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14172
|
-
isRequired && (React__namespace.createElement("span", { className: css(styles$
|
|
14208
|
+
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$Z.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
14209
|
+
React__namespace.createElement("span", { className: css(styles$Z.formLabelText) }, label),
|
|
14210
|
+
isRequired && (React__namespace.createElement("span", { className: css(styles$Z.formLabelRequired), "aria-hidden": "true" },
|
|
14173
14211
|
' ',
|
|
14174
14212
|
ASTERISK))),
|
|
14175
14213
|
' ',
|
|
14176
14214
|
React__namespace.isValidElement(labelIcon) && labelIcon));
|
|
14177
|
-
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14178
|
-
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14215
|
+
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
14216
|
+
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroupLabel, labelInfo && styles$Z.modifiers.info, hasNoPaddingTop && styles$Z.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
14179
14217
|
labelInfo && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14180
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14181
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14218
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelMain) }, labelContent),
|
|
14219
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelInfo) }, labelInfo))),
|
|
14182
14220
|
!labelInfo && labelContent)),
|
|
14183
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14221
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupControl, isInline && styles$Z.modifiers.inline, isStack && styles$Z.modifiers.stack) },
|
|
14184
14222
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
14185
14223
|
children,
|
|
14186
14224
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -14190,22 +14228,22 @@
|
|
|
14190
14228
|
const FormHelperText = (_a) => {
|
|
14191
14229
|
var { children = null, isError = false, isHidden = true, className = '', icon = null, component = 'p' } = _a, props = __rest$1(_a, ["children", "isError", "isHidden", "className", "icon", "component"]);
|
|
14192
14230
|
const Component = component;
|
|
14193
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14194
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14231
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$Z.formHelperText, isError && styles$Z.modifiers.error, isHidden && styles$Z.modifiers.hidden, className) }, props),
|
|
14232
|
+
icon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, icon),
|
|
14195
14233
|
children));
|
|
14196
14234
|
};
|
|
14197
14235
|
FormHelperText.displayName = 'FormHelperText';
|
|
14198
14236
|
|
|
14199
14237
|
const FormSection = (_a) => {
|
|
14200
14238
|
var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = __rest$1(_a, ["className", "children", "title", "titleElement"]);
|
|
14201
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
14202
|
-
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$
|
|
14239
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$Z.formSection, className), role: "group" }, (title && { 'aria-labelledby': sectionId }), props),
|
|
14240
|
+
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$Z.formSectionTitle, className) }, title)),
|
|
14203
14241
|
children))));
|
|
14204
14242
|
};
|
|
14205
14243
|
FormSection.displayName = 'FormSection';
|
|
14206
14244
|
|
|
14207
14245
|
Promise.resolve().then(function () { return helperText; });
|
|
14208
|
-
var styles$
|
|
14246
|
+
var styles$H = {
|
|
14209
14247
|
"helperText": "pf-c-helper-text",
|
|
14210
14248
|
"helperTextItem": "pf-c-helper-text__item",
|
|
14211
14249
|
"helperTextItemIcon": "pf-c-helper-text__item-icon",
|
|
@@ -14223,7 +14261,7 @@
|
|
|
14223
14261
|
const HelperText = (_a) => {
|
|
14224
14262
|
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest$1(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
14225
14263
|
const Component = component;
|
|
14226
|
-
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
14264
|
+
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$H.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
14227
14265
|
};
|
|
14228
14266
|
HelperText.displayName = 'HelperText';
|
|
14229
14267
|
|
|
@@ -14240,22 +14278,22 @@
|
|
|
14240
14278
|
|
|
14241
14279
|
const variantStyle$4 = {
|
|
14242
14280
|
default: '',
|
|
14243
|
-
indeterminate: styles$
|
|
14244
|
-
warning: styles$
|
|
14245
|
-
success: styles$
|
|
14246
|
-
error: styles$
|
|
14281
|
+
indeterminate: styles$H.modifiers.indeterminate,
|
|
14282
|
+
warning: styles$H.modifiers.warning,
|
|
14283
|
+
success: styles$H.modifiers.success,
|
|
14284
|
+
error: styles$H.modifiers.error
|
|
14247
14285
|
};
|
|
14248
14286
|
const HelperTextItem = (_a) => {
|
|
14249
14287
|
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic, id, screenReaderText = `${variant} status` } = _a, props = __rest$1(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon", "id", "screenReaderText"]);
|
|
14250
14288
|
const Component = component;
|
|
14251
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14252
|
-
icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14253
|
-
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14289
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperTextItem, variantStyle$4[variant], isDynamic && styles$H.modifiers.dynamic, className), id: id }, props),
|
|
14290
|
+
icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
14291
|
+
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true },
|
|
14254
14292
|
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon, null),
|
|
14255
14293
|
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon, null),
|
|
14256
14294
|
variant === 'success' && React__namespace.createElement(CheckCircleIcon, null),
|
|
14257
14295
|
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon, null))),
|
|
14258
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14296
|
+
React__namespace.createElement("span", { className: css(styles$H.helperTextItemText) },
|
|
14259
14297
|
children,
|
|
14260
14298
|
isDynamic && React__namespace.createElement("span", { className: "pf-u-screen-reader" },
|
|
14261
14299
|
": ",
|
|
@@ -14265,7 +14303,7 @@
|
|
|
14265
14303
|
HelperTextItem.displayName = 'HelperTextItem';
|
|
14266
14304
|
|
|
14267
14305
|
Promise.resolve().then(function () { return hint; });
|
|
14268
|
-
var styles$
|
|
14306
|
+
var styles$G = {
|
|
14269
14307
|
"button": "pf-c-button",
|
|
14270
14308
|
"dropdown": "pf-c-dropdown",
|
|
14271
14309
|
"dropdownToggle": "pf-c-dropdown__toggle",
|
|
@@ -14284,32 +14322,32 @@
|
|
|
14284
14322
|
|
|
14285
14323
|
const Hint = (_a) => {
|
|
14286
14324
|
var { children, className, actions } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
14287
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14288
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14325
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hint, className) }, props),
|
|
14326
|
+
React__namespace.createElement("div", { className: css(styles$G.hintActions) }, actions),
|
|
14289
14327
|
children));
|
|
14290
14328
|
};
|
|
14291
14329
|
Hint.displayName = 'Hint';
|
|
14292
14330
|
|
|
14293
14331
|
const HintBody = (_a) => {
|
|
14294
14332
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14295
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14333
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintBody, className) }, props), children));
|
|
14296
14334
|
};
|
|
14297
14335
|
HintBody.displayName = 'HintBody';
|
|
14298
14336
|
|
|
14299
14337
|
const HintFooter = (_a) => {
|
|
14300
14338
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14301
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14339
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintFooter, className) }, props), children));
|
|
14302
14340
|
};
|
|
14303
14341
|
HintFooter.displayName = 'HintFooter';
|
|
14304
14342
|
|
|
14305
14343
|
const HintTitle = (_a) => {
|
|
14306
14344
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14307
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14345
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintTitle, className) }, props), children));
|
|
14308
14346
|
};
|
|
14309
14347
|
HintTitle.displayName = 'HintTitle';
|
|
14310
14348
|
|
|
14311
14349
|
Promise.resolve().then(function () { return jumpLinks; });
|
|
14312
|
-
var styles$
|
|
14350
|
+
var styles$F = {
|
|
14313
14351
|
"button": "pf-c-button",
|
|
14314
14352
|
"jumpLinks": "pf-c-jump-links",
|
|
14315
14353
|
"jumpLinksItem": "pf-c-jump-links__item",
|
|
@@ -14342,7 +14380,7 @@
|
|
|
14342
14380
|
};
|
|
14343
14381
|
|
|
14344
14382
|
Promise.resolve().then(function () { return sidebar; });
|
|
14345
|
-
var styles$
|
|
14383
|
+
var styles$E = {
|
|
14346
14384
|
"modifiers": {
|
|
14347
14385
|
"gutter": "pf-m-gutter",
|
|
14348
14386
|
"panelRight": "pf-m-panel-right",
|
|
@@ -14402,7 +14440,7 @@
|
|
|
14402
14440
|
|
|
14403
14441
|
const JumpLinksList = (_a) => {
|
|
14404
14442
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14405
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14443
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$F.jumpLinksList, className) }, props), children));
|
|
14406
14444
|
};
|
|
14407
14445
|
JumpLinksList.displayName = 'JumpLinksList';
|
|
14408
14446
|
|
|
@@ -14413,9 +14451,9 @@
|
|
|
14413
14451
|
const childrenArr = React__namespace.Children.toArray(children);
|
|
14414
14452
|
const sublists = childrenArr.filter(child => child.type === JumpLinksList);
|
|
14415
14453
|
children = childrenArr.filter(child => child.type !== JumpLinksList);
|
|
14416
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14417
|
-
React__namespace.createElement("a", { className: styles$
|
|
14418
|
-
React__namespace.createElement("span", { className: styles$
|
|
14454
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$F.jumpLinksItem, isActive && styles$F.modifiers.current, className) }, (isActive && { 'aria-current': 'location' }), props),
|
|
14455
|
+
React__namespace.createElement("a", { className: styles$F.jumpLinksLink, href: href, onClick: onClick },
|
|
14456
|
+
React__namespace.createElement("span", { className: styles$F.jumpLinksLinkText }, children)),
|
|
14419
14457
|
sublists));
|
|
14420
14458
|
};
|
|
14421
14459
|
JumpLinksItem.displayName = 'JumpLinksItem';
|
|
@@ -14536,10 +14574,10 @@
|
|
|
14536
14574
|
if (isResponsive(navRef.current)) {
|
|
14537
14575
|
// Remove class immediately so we can get collapsed height
|
|
14538
14576
|
if (navRef.current) {
|
|
14539
|
-
navRef.current.classList.remove(styles$
|
|
14577
|
+
navRef.current.classList.remove(styles$F.modifiers.expanded);
|
|
14540
14578
|
}
|
|
14541
14579
|
let stickyParent = navRef.current && navRef.current.parentElement;
|
|
14542
|
-
while (stickyParent && !stickyParent.classList.contains(styles$
|
|
14580
|
+
while (stickyParent && !stickyParent.classList.contains(styles$E.modifiers.sticky)) {
|
|
14543
14581
|
stickyParent = stickyParent.parentElement;
|
|
14544
14582
|
}
|
|
14545
14583
|
setIsExpanded(false);
|
|
@@ -14569,19 +14607,19 @@
|
|
|
14569
14607
|
}
|
|
14570
14608
|
return child;
|
|
14571
14609
|
});
|
|
14572
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
14573
|
-
React__namespace.createElement("div", { className: styles$
|
|
14610
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$F.jumpLinks, isCentered && styles$F.modifiers.center, isVertical && styles$F.modifiers.vertical, formatBreakpointMods(expandable, styles$F), isExpanded && styles$F.modifiers.expanded, className), "aria-label": ariaLabel, ref: navRef }, props),
|
|
14611
|
+
React__namespace.createElement("div", { className: styles$F.jumpLinksMain },
|
|
14574
14612
|
React__namespace.createElement("div", { className: css('pf-c-jump-links__header') },
|
|
14575
|
-
expandable && (React__namespace.createElement("div", { className: styles$
|
|
14613
|
+
expandable && (React__namespace.createElement("div", { className: styles$F.jumpLinksToggle },
|
|
14576
14614
|
React__namespace.createElement(Button, { variant: "plain", onClick: () => setIsExpanded(!isExpanded), "aria-label": toggleAriaLabel, "aria-expanded": isExpanded },
|
|
14577
|
-
React__namespace.createElement("span", { className: styles$
|
|
14615
|
+
React__namespace.createElement("span", { className: styles$F.jumpLinksToggleIcon },
|
|
14578
14616
|
React__namespace.createElement(AngleRightIcon, null)),
|
|
14579
|
-
label && React__namespace.createElement("span", { className: css(styles$
|
|
14617
|
+
label && React__namespace.createElement("span", { className: css(styles$F.jumpLinksToggleText) },
|
|
14580
14618
|
" ",
|
|
14581
14619
|
label,
|
|
14582
14620
|
" ")))),
|
|
14583
|
-
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$
|
|
14584
|
-
React__namespace.createElement("ul", { className: styles$
|
|
14621
|
+
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$F.jumpLinksLabel) }, label)),
|
|
14622
|
+
React__namespace.createElement("ul", { className: styles$F.jumpLinksList }, cloneChildren(children)))));
|
|
14585
14623
|
};
|
|
14586
14624
|
JumpLinks.displayName = 'JumpLinks';
|
|
14587
14625
|
|
|
@@ -14611,7 +14649,7 @@
|
|
|
14611
14649
|
};
|
|
14612
14650
|
|
|
14613
14651
|
Promise.resolve().then(function () { return labelGroup; });
|
|
14614
|
-
var styles$
|
|
14652
|
+
var styles$D = {
|
|
14615
14653
|
"button": "pf-c-button",
|
|
14616
14654
|
"labelGroup": "pf-c-label-group",
|
|
14617
14655
|
"labelGroupClose": "pf-c-label-group__close",
|
|
@@ -14755,7 +14793,7 @@
|
|
|
14755
14793
|
else if (isTooltipVisible) {
|
|
14756
14794
|
labelComponentChild = (React__namespace.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
14757
14795
|
}
|
|
14758
|
-
return (React__namespace.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$
|
|
14796
|
+
return (React__namespace.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$D.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
14759
14797
|
!isEditableActive && labelComponentChild,
|
|
14760
14798
|
!isEditableActive && onClose && button,
|
|
14761
14799
|
isEditableActive && (React__namespace.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
@@ -14786,8 +14824,8 @@
|
|
|
14786
14824
|
const { categoryName, tooltipPosition } = this.props;
|
|
14787
14825
|
const { isTooltipVisible } = this.state;
|
|
14788
14826
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
14789
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
14790
|
-
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
14827
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$D.labelGroupLabel) },
|
|
14828
|
+
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$D.labelGroupLabel), "aria-hidden": "true", id: id }, categoryName));
|
|
14791
14829
|
}
|
|
14792
14830
|
render() {
|
|
14793
14831
|
const _a = this.props, { categoryName, children, className, isClosable, isCompact, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, numLabels, expandedText, collapsedText,
|
|
@@ -14806,18 +14844,18 @@
|
|
|
14806
14844
|
: React__namespace.Children.toArray(children);
|
|
14807
14845
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14808
14846
|
categoryName && this.renderLabel(id),
|
|
14809
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14810
|
-
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
14811
|
-
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$
|
|
14847
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$D.labelGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
14848
|
+
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem), key: i }, child))),
|
|
14849
|
+
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem) },
|
|
14812
14850
|
React__namespace.createElement(Label, { isOverflowLabel: true, onClick: this.toggleCollapse, className: css(isCompact && labelStyles.modifiers.compact) }, isOpen ? expandedText : collapsedTextResult))),
|
|
14813
|
-
addLabelControl && React__namespace.createElement("li", { className: css(styles$
|
|
14814
|
-
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$
|
|
14815
|
-
React__namespace.createElement("textarea", Object.assign({ className: css(styles$
|
|
14816
|
-
const close = (React__namespace.createElement("div", { className: css(styles$
|
|
14851
|
+
addLabelControl && React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem) }, addLabelControl),
|
|
14852
|
+
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem, styles$D.modifiers.textarea) },
|
|
14853
|
+
React__namespace.createElement("textarea", Object.assign({ className: css(styles$D.labelGroupTextarea), rows: 1, tabIndex: 0 }, editableTextAreaProps)))))));
|
|
14854
|
+
const close = (React__namespace.createElement("div", { className: css(styles$D.labelGroupClose) },
|
|
14817
14855
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
|
|
14818
14856
|
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))));
|
|
14819
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
14820
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14857
|
+
return (React__namespace.createElement("div", { className: css(styles$D.labelGroup, className, categoryName && styles$D.modifiers.category, isVertical && styles$D.modifiers.vertical, isEditable && styles$D.modifiers.editable) },
|
|
14858
|
+
React__namespace.createElement("div", { className: css(styles$D.labelGroupMain) }, content),
|
|
14821
14859
|
isClosable && close));
|
|
14822
14860
|
};
|
|
14823
14861
|
return numChildren === 0 && addLabelControl === undefined ? null : (React__namespace.createElement(GenerateId, null, randomId => renderLabelGroup(this.props.id || randomId)));
|
|
@@ -14843,7 +14881,7 @@
|
|
|
14843
14881
|
};
|
|
14844
14882
|
|
|
14845
14883
|
Promise.resolve().then(function () { return list; });
|
|
14846
|
-
var styles$
|
|
14884
|
+
var styles$C = {
|
|
14847
14885
|
"list": "pf-c-list",
|
|
14848
14886
|
"listItem": "pf-c-list__item",
|
|
14849
14887
|
"listItemIcon": "pf-c-list__item-icon",
|
|
@@ -14874,20 +14912,20 @@
|
|
|
14874
14912
|
})(exports.ListComponent || (exports.ListComponent = {}));
|
|
14875
14913
|
const List = (_a) => {
|
|
14876
14914
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = exports.OrderType.number, ref = null, component = exports.ListComponent.ul } = _a, props = __rest$1(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
14877
|
-
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$
|
|
14915
|
+
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$C.list, variant && styles$C.modifiers[variant], isBordered && styles$C.modifiers.bordered, isPlain && styles$C.modifiers.plain, iconSize && iconSize === 'large' && styles$C.modifiers.iconLg, className) }), children)) : (React__namespace.createElement("ul", Object.assign({ ref: ref }, props, { className: css(styles$C.list, variant && styles$C.modifiers[variant], isBordered && styles$C.modifiers.bordered, isPlain && styles$C.modifiers.plain, iconSize && iconSize === 'large' && styles$C.modifiers.iconLg, className) }), children));
|
|
14878
14916
|
};
|
|
14879
14917
|
List.displayName = 'List';
|
|
14880
14918
|
|
|
14881
14919
|
const ListItem = (_a) => {
|
|
14882
14920
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
14883
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$
|
|
14884
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14921
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$C.listItem) }, props),
|
|
14922
|
+
icon && React__namespace.createElement("span", { className: css(styles$C.listItemIcon) }, icon),
|
|
14885
14923
|
children));
|
|
14886
14924
|
};
|
|
14887
14925
|
ListItem.displayName = 'ListItem';
|
|
14888
14926
|
|
|
14889
14927
|
Promise.resolve().then(function () { return login; });
|
|
14890
|
-
var styles$
|
|
14928
|
+
var styles$B = {
|
|
14891
14929
|
"brand": "pf-c-brand",
|
|
14892
14930
|
"button": "pf-c-button",
|
|
14893
14931
|
"card": "pf-c-card",
|
|
@@ -14913,17 +14951,17 @@
|
|
|
14913
14951
|
|
|
14914
14952
|
const Login = (_a) => {
|
|
14915
14953
|
var { className = '', children = null, footer = null, header = null } = _a, props = __rest$1(_a, ["className", "children", "footer", "header"]);
|
|
14916
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
14917
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14954
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$B.login, className) }),
|
|
14955
|
+
React__namespace.createElement("div", { className: css(styles$B.loginContainer) },
|
|
14918
14956
|
header,
|
|
14919
|
-
React__namespace.createElement("main", { className: css(styles$
|
|
14957
|
+
React__namespace.createElement("main", { className: css(styles$B.loginMain) }, children),
|
|
14920
14958
|
footer)));
|
|
14921
14959
|
};
|
|
14922
14960
|
Login.displayName = 'Login';
|
|
14923
14961
|
|
|
14924
14962
|
const LoginHeader = (_a) => {
|
|
14925
14963
|
var { className = '', children = null, headerBrand = null } = _a, props = __rest$1(_a, ["className", "children", "headerBrand"]);
|
|
14926
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14964
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$B.loginHeader, className) }, props),
|
|
14927
14965
|
headerBrand,
|
|
14928
14966
|
children));
|
|
14929
14967
|
};
|
|
@@ -14931,31 +14969,31 @@
|
|
|
14931
14969
|
|
|
14932
14970
|
const LoginFooter = (_a) => {
|
|
14933
14971
|
var { className = '', children = null } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
14934
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
14972
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$B.loginFooter, className) }, props), children));
|
|
14935
14973
|
};
|
|
14936
14974
|
LoginFooter.displayName = 'LoginFooter';
|
|
14937
14975
|
|
|
14938
14976
|
const LoginMainHeader = (_a) => {
|
|
14939
14977
|
var { children = null, className = '', title = '', subtitle = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle"]);
|
|
14940
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14978
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$B.loginMainHeader, className) }, props),
|
|
14941
14979
|
title && (React__namespace.createElement(Title, { headingLevel: "h2", size: exports.TitleSizes['3xl'] }, title)),
|
|
14942
|
-
subtitle && React__namespace.createElement("p", { className: css(styles$
|
|
14980
|
+
subtitle && React__namespace.createElement("p", { className: css(styles$B.loginMainHeaderDesc) }, subtitle),
|
|
14943
14981
|
children));
|
|
14944
14982
|
};
|
|
14945
14983
|
LoginMainHeader.displayName = 'LoginMainHeader';
|
|
14946
14984
|
|
|
14947
14985
|
const LoginMainBody = (_a) => {
|
|
14948
14986
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14949
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14987
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$B.loginMainBody, className) }, props), children));
|
|
14950
14988
|
};
|
|
14951
14989
|
LoginMainBody.displayName = 'LoginMainBody';
|
|
14952
14990
|
|
|
14953
14991
|
const LoginMainFooter = (_a) => {
|
|
14954
14992
|
var { children = null, socialMediaLoginContent = null, signUpForAccountMessage = null, forgotCredentials = null, className = '' } = _a, props = __rest$1(_a, ["children", "socialMediaLoginContent", "signUpForAccountMessage", "forgotCredentials", "className"]);
|
|
14955
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14993
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$B.loginMainFooter, className) }, props),
|
|
14956
14994
|
children,
|
|
14957
|
-
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$
|
|
14958
|
-
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$
|
|
14995
|
+
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$B.loginMainFooterLinks) }, socialMediaLoginContent),
|
|
14996
|
+
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$B.loginMainFooterBand) },
|
|
14959
14997
|
signUpForAccountMessage,
|
|
14960
14998
|
forgotCredentials))));
|
|
14961
14999
|
};
|
|
@@ -15028,20 +15066,20 @@
|
|
|
15028
15066
|
|
|
15029
15067
|
const LoginMainFooterBandItem = (_a) => {
|
|
15030
15068
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15031
|
-
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$
|
|
15069
|
+
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$B.loginMainFooterBand}-item`, className) }, props), children));
|
|
15032
15070
|
};
|
|
15033
15071
|
LoginMainFooterBandItem.displayName = 'LoginMainFooterBandItem';
|
|
15034
15072
|
|
|
15035
15073
|
const LoginMainFooterLinksItem = (_a) => {
|
|
15036
15074
|
var { children = null, href = '', target = '', className = '', linkComponent = 'a', linkComponentProps } = _a, props = __rest$1(_a, ["children", "href", "target", "className", "linkComponent", "linkComponentProps"]);
|
|
15037
15075
|
const LinkComponent = linkComponent;
|
|
15038
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
15039
|
-
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$
|
|
15076
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$B.loginMainFooterLinksItem, className) }, props),
|
|
15077
|
+
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$B.loginMainFooterLinksItemLink), href: href, target: target }, linkComponentProps), children)));
|
|
15040
15078
|
};
|
|
15041
15079
|
LoginMainFooterLinksItem.displayName = 'LoginMainFooterLinksItem';
|
|
15042
15080
|
|
|
15043
15081
|
Promise.resolve().then(function () { return masthead; });
|
|
15044
|
-
var styles$
|
|
15082
|
+
var styles$A = {
|
|
15045
15083
|
"button": "pf-c-button",
|
|
15046
15084
|
"card": "pf-c-card",
|
|
15047
15085
|
"contextSelector": "pf-c-context-selector",
|
|
@@ -15117,7 +15155,7 @@
|
|
|
15117
15155
|
};
|
|
15118
15156
|
|
|
15119
15157
|
Promise.resolve().then(function () { return page; });
|
|
15120
|
-
var styles$
|
|
15158
|
+
var styles$z = {
|
|
15121
15159
|
"avatar": "pf-c-avatar",
|
|
15122
15160
|
"brand": "pf-c-brand",
|
|
15123
15161
|
"button": "pf-c-button",
|
|
@@ -15323,30 +15361,30 @@
|
|
|
15323
15361
|
};
|
|
15324
15362
|
let nav = null;
|
|
15325
15363
|
if (tertiaryNav && isTertiaryNavWidthLimited) {
|
|
15326
|
-
nav = (React__namespace.createElement("div", { className: css(styles$
|
|
15327
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
15364
|
+
nav = (React__namespace.createElement("div", { className: css(styles$z.pageMainNav, styles$z.modifiers.limitWidth) },
|
|
15365
|
+
React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, tertiaryNav)));
|
|
15328
15366
|
}
|
|
15329
15367
|
else if (tertiaryNav) {
|
|
15330
|
-
nav = React__namespace.createElement("div", { className: css(styles$
|
|
15368
|
+
nav = React__namespace.createElement("div", { className: css(styles$z.pageMainNav) }, tertiaryNav);
|
|
15331
15369
|
}
|
|
15332
|
-
const crumb = breadcrumb ? (React__namespace.createElement("section", { className: css(styles$
|
|
15370
|
+
const crumb = breadcrumb ? (React__namespace.createElement("section", { className: css(styles$z.pageMainBreadcrumb, isBreadcrumbWidthLimited && styles$z.modifiers.limitWidth, formatBreakpointMods(breadcrumbProps === null || breadcrumbProps === void 0 ? void 0 : breadcrumbProps.stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true)) }, isBreadcrumbWidthLimited ? React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, breadcrumb) : breadcrumb)) : null;
|
|
15333
15371
|
const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;
|
|
15334
|
-
const group = isGrouped ? (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15372
|
+
const group = isGrouped ? (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainGroup, formatBreakpointMods(groupProps === null || groupProps === void 0 ? void 0 : groupProps.stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true)) }, groupProps),
|
|
15335
15373
|
isTertiaryNavGrouped && nav,
|
|
15336
15374
|
isBreadcrumbGrouped && crumb,
|
|
15337
15375
|
additionalGroupedContent)) : null;
|
|
15338
|
-
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$
|
|
15376
|
+
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$z.pageMain), tabIndex: mainTabIndex, "aria-label": mainAriaLabel },
|
|
15339
15377
|
group,
|
|
15340
15378
|
!isTertiaryNavGrouped && nav,
|
|
15341
15379
|
!isBreadcrumbGrouped && crumb,
|
|
15342
15380
|
children));
|
|
15343
15381
|
const panelContent = React__namespace.createElement(DrawerPanelContent, null, notificationDrawer);
|
|
15344
15382
|
return (React__namespace.createElement(PageContextProvider, { value: context },
|
|
15345
|
-
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$
|
|
15383
|
+
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$z.page, width !== null && height !== null && 'pf-m-resize-observer', width !== null && `pf-m-breakpoint-${getBreakpoint(width)}`, height !== null && `pf-m-height-breakpoint-${getVerticalBreakpoint(height)}`, className) }),
|
|
15346
15384
|
skipToContent,
|
|
15347
15385
|
header,
|
|
15348
15386
|
sidebar,
|
|
15349
|
-
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$
|
|
15387
|
+
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$z.pageDrawer) },
|
|
15350
15388
|
React__namespace.createElement(Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },
|
|
15351
15389
|
React__namespace.createElement(DrawerContent, { panelContent: panelContent },
|
|
15352
15390
|
React__namespace.createElement(DrawerContentBody, null, main))))),
|
|
@@ -15371,32 +15409,32 @@
|
|
|
15371
15409
|
md: 'inline'
|
|
15372
15410
|
}, inset } = _a, props = __rest$1(_a, ["children", "className", "backgroundColor", "display", "inset"]);
|
|
15373
15411
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
15374
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
15412
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$A.masthead, formatBreakpointMods(display, styles$A, 'display-', getBreakpoint(width)), formatBreakpointMods(inset, styles$A, '', getBreakpoint(width)), backgroundColor === 'light' && styles$A.modifiers.light, backgroundColor === 'light200' && styles$A.modifiers.light_200, className) }, props), children));
|
|
15375
15413
|
};
|
|
15376
15414
|
Masthead.displayName = 'Masthead';
|
|
15377
15415
|
|
|
15378
15416
|
const MastheadBrand = (_a) => {
|
|
15379
15417
|
var { children, className, component = 'a' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
15380
15418
|
const Component = component;
|
|
15381
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
15419
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$A.mastheadBrand, className), tabIndex: 0 }, props), children));
|
|
15382
15420
|
};
|
|
15383
15421
|
MastheadBrand.displayName = 'MastheadBrand';
|
|
15384
15422
|
|
|
15385
15423
|
const MastheadContent = (_a) => {
|
|
15386
15424
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15387
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15425
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.mastheadContent, className) }, props), children));
|
|
15388
15426
|
};
|
|
15389
15427
|
MastheadContent.displayName = 'MastheadContent';
|
|
15390
15428
|
|
|
15391
15429
|
const MastheadMain = (_a) => {
|
|
15392
15430
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15393
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15431
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.mastheadMain, className) }, props), children));
|
|
15394
15432
|
};
|
|
15395
15433
|
MastheadMain.displayName = 'MastheadMain';
|
|
15396
15434
|
|
|
15397
15435
|
const MastheadToggle = (_a) => {
|
|
15398
15436
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15399
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
15437
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$A.mastheadToggle, className) }, props), children));
|
|
15400
15438
|
};
|
|
15401
15439
|
MastheadToggle.displayName = 'MastheadToggle';
|
|
15402
15440
|
|
|
@@ -15943,7 +15981,7 @@
|
|
|
15943
15981
|
MenuBreadcrumb.displayName = 'MenuBreadcrumb';
|
|
15944
15982
|
|
|
15945
15983
|
Promise.resolve().then(function () { return menuToggle; });
|
|
15946
|
-
var styles$
|
|
15984
|
+
var styles$y = {
|
|
15947
15985
|
"check": "pf-c-check",
|
|
15948
15986
|
"menuToggle": "pf-c-menu-toggle",
|
|
15949
15987
|
"menuToggleButton": "pf-c-menu-toggle__button",
|
|
@@ -15980,23 +16018,23 @@
|
|
|
15980
16018
|
const isPlain = variant === 'plain';
|
|
15981
16019
|
const isPlainText = variant === 'plainText';
|
|
15982
16020
|
const isTypeahead = variant === 'typeahead';
|
|
15983
|
-
const toggleControls = (React__namespace.createElement("span", { className: css(styles$
|
|
15984
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16021
|
+
const toggleControls = (React__namespace.createElement("span", { className: css(styles$y.menuToggleControls) },
|
|
16022
|
+
React__namespace.createElement("span", { className: css(styles$y.menuToggleToggleIcon) },
|
|
15985
16023
|
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
15986
16024
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
15987
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
15988
|
-
isTypeahead ? children : React__namespace.createElement("span", { className: css(styles$
|
|
15989
|
-
badge && React__namespace.createElement("span", { className: css(styles$
|
|
15990
|
-
isTypeahead ? (React__namespace.createElement("button", { type: "button", className: css(styles$
|
|
15991
|
-
const commonStyles = css(styles$
|
|
16025
|
+
icon && React__namespace.createElement("span", { className: css(styles$y.menuToggleIcon) }, icon),
|
|
16026
|
+
isTypeahead ? children : React__namespace.createElement("span", { className: css(styles$y.menuToggleText) }, children),
|
|
16027
|
+
React__namespace.isValidElement(badge) && React__namespace.createElement("span", { className: css(styles$y.menuToggleCount) }, badge),
|
|
16028
|
+
isTypeahead ? (React__namespace.createElement("button", { type: "button", className: css(styles$y.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": "Menu toggle" }, toggleControls)) : (toggleControls)));
|
|
16029
|
+
const commonStyles = css(styles$y.menuToggle, isExpanded && styles$y.modifiers.expanded, variant === 'primary' && styles$y.modifiers.primary, variant === 'secondary' && styles$y.modifiers.secondary, (isPlain || isPlainText) && styles$y.modifiers.plain, isPlainText && styles$y.modifiers.text, isFullHeight && styles$y.modifiers.fullHeight, isFullWidth && styles$y.modifiers.fullWidth, isDisabled && styles$y.modifiers.disabled, className);
|
|
15992
16030
|
const componentProps = Object.assign(Object.assign({ children: isPlain ? children : content }, (isDisabled && { disabled: true })), otherProps);
|
|
15993
16031
|
if (isTypeahead) {
|
|
15994
16032
|
return React__namespace.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles) }, componentProps));
|
|
15995
16033
|
}
|
|
15996
16034
|
if (splitButtonOptions) {
|
|
15997
|
-
return (React__namespace.createElement("div", { className: css(commonStyles, styles$
|
|
16035
|
+
return (React__namespace.createElement("div", { className: css(commonStyles, styles$y.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$y.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
|
|
15998
16036
|
splitButtonOptions.items,
|
|
15999
|
-
React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
16037
|
+
React__namespace.createElement("button", Object.assign({ className: css(styles$y.menuToggleButton), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled }, otherProps), toggleControls)));
|
|
16000
16038
|
}
|
|
16001
16039
|
return (React__namespace.createElement("button", Object.assign({ className: css(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps)));
|
|
16002
16040
|
}
|
|
@@ -16014,7 +16052,7 @@
|
|
|
16014
16052
|
class MenuToggleAction extends React__namespace.Component {
|
|
16015
16053
|
render() {
|
|
16016
16054
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
16017
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
16055
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$y.menuToggleButton, className), onClick: onClick, type: "button", disabled: isDisabled }, props), children));
|
|
16018
16056
|
}
|
|
16019
16057
|
}
|
|
16020
16058
|
MenuToggleAction.displayName = 'MenuToggleAction';
|
|
@@ -16049,9 +16087,9 @@
|
|
|
16049
16087
|
const _a = this.props, { className, isValid, isDisabled, isChecked, children, ouiaId, ouiaSafe,
|
|
16050
16088
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
16051
16089
|
onChange, defaultChecked, id } = _a, props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "defaultChecked", "id"]);
|
|
16052
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
16053
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
16054
|
-
React__namespace.createElement("input", Object.assign({ className: css(styles$
|
|
16090
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$Y.checkLabel, className), "aria-hidden": "true", id: id }, children));
|
|
16091
|
+
return (React__namespace.createElement("label", { className: css(styles$Y.check, !children && styles$Y.modifiers.standalone, className), htmlFor: id },
|
|
16092
|
+
React__namespace.createElement("input", Object.assign({ className: css(styles$Y.checkInput) }, (this.calculateChecked() !== undefined && { onChange: this.handleChange }), { name: id, type: "checkbox", ref: elem => elem && (elem.indeterminate = isChecked === null), "aria-invalid": !isValid, disabled: isDisabled }, (defaultChecked !== undefined ? { defaultChecked } : { checked: isChecked }), getOUIAProps(MenuToggleCheckbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props)),
|
|
16055
16093
|
text));
|
|
16056
16094
|
}
|
|
16057
16095
|
}
|
|
@@ -16201,7 +16239,7 @@
|
|
|
16201
16239
|
modalBody,
|
|
16202
16240
|
modalBoxFooter));
|
|
16203
16241
|
return (React__namespace.createElement(Backdrop, null,
|
|
16204
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
16242
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1h.bullseye) }, modalBox)));
|
|
16205
16243
|
};
|
|
16206
16244
|
ModalContent.displayName = 'ModalContent';
|
|
16207
16245
|
|
|
@@ -16260,10 +16298,10 @@
|
|
|
16260
16298
|
target.appendChild(container);
|
|
16261
16299
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
16262
16300
|
if (this.props.isOpen) {
|
|
16263
|
-
target.classList.add(css(styles$
|
|
16301
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
16264
16302
|
}
|
|
16265
16303
|
else {
|
|
16266
|
-
target.classList.remove(css(styles$
|
|
16304
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16267
16305
|
}
|
|
16268
16306
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
16269
16307
|
// eslint-disable-next-line no-console
|
|
@@ -16278,11 +16316,11 @@
|
|
|
16278
16316
|
const { appendTo } = this.props;
|
|
16279
16317
|
const target = this.getElement(appendTo);
|
|
16280
16318
|
if (this.props.isOpen) {
|
|
16281
|
-
target.classList.add(css(styles$
|
|
16319
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
16282
16320
|
this.toggleSiblingsFromScreenReaders(true);
|
|
16283
16321
|
}
|
|
16284
16322
|
else {
|
|
16285
|
-
target.classList.remove(css(styles$
|
|
16323
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16286
16324
|
this.toggleSiblingsFromScreenReaders(false);
|
|
16287
16325
|
}
|
|
16288
16326
|
}
|
|
@@ -16293,7 +16331,7 @@
|
|
|
16293
16331
|
target.removeChild(this.state.container);
|
|
16294
16332
|
}
|
|
16295
16333
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
16296
|
-
target.classList.remove(css(styles$
|
|
16334
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16297
16335
|
}
|
|
16298
16336
|
render() {
|
|
16299
16337
|
const _a = this.props, {
|
|
@@ -16330,7 +16368,7 @@
|
|
|
16330
16368
|
};
|
|
16331
16369
|
|
|
16332
16370
|
Promise.resolve().then(function () { return multipleFileUpload; });
|
|
16333
|
-
var styles$
|
|
16371
|
+
var styles$x = {
|
|
16334
16372
|
"modifiers": {
|
|
16335
16373
|
"horizontal": "pf-m-horizontal",
|
|
16336
16374
|
"dragOver": "pf-m-drag-over"
|
|
@@ -16373,7 +16411,7 @@
|
|
|
16373
16411
|
}));
|
|
16374
16412
|
const inputProps = getInputProps();
|
|
16375
16413
|
return (React__namespace.createElement(MultipleFileUploadContext.Provider, { value: { open } },
|
|
16376
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16414
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUpload, isDragActive && styles$x.modifiers.dragOver, isHorizontal && styles$x.modifiers.horizontal, className) }, rootProps, props),
|
|
16377
16415
|
React__namespace.createElement("input", Object.assign({}, inputProps)),
|
|
16378
16416
|
children)));
|
|
16379
16417
|
}));
|
|
@@ -16382,25 +16420,25 @@
|
|
|
16382
16420
|
|
|
16383
16421
|
const MultipleFileUploadTitleIcon = (_a) => {
|
|
16384
16422
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
16385
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16423
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleIcon, className) }, props), children));
|
|
16386
16424
|
};
|
|
16387
16425
|
MultipleFileUploadTitleIcon.displayName = 'MultipleFileUploadTitleIcon';
|
|
16388
16426
|
|
|
16389
16427
|
const MultipleFileUploadTitleText = (_a) => {
|
|
16390
16428
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16391
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16429
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleText, className) }, props), children));
|
|
16392
16430
|
};
|
|
16393
16431
|
MultipleFileUploadTitleText.displayName = 'MultipleFileUploadTitleText';
|
|
16394
16432
|
|
|
16395
16433
|
const MultipleFileUploadTitleTextSeparator = (_a) => {
|
|
16396
16434
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16397
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16435
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleTextSeparator, className) }, props), children));
|
|
16398
16436
|
};
|
|
16399
16437
|
MultipleFileUploadTitleTextSeparator.displayName = 'MultipleFileUploadTitleTextSeparator';
|
|
16400
16438
|
|
|
16401
16439
|
const MultipleFileUploadTitle = (_a) => {
|
|
16402
16440
|
var { className, icon, text = '', textSeparator = '' } = _a, props = __rest$1(_a, ["className", "icon", "text", "textSeparator"]);
|
|
16403
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16441
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitle, className) }, props),
|
|
16404
16442
|
icon && React__namespace.createElement(MultipleFileUploadTitleIcon, null, icon),
|
|
16405
16443
|
text && (React__namespace.createElement(MultipleFileUploadTitleText, null,
|
|
16406
16444
|
`${text} `,
|
|
@@ -16411,21 +16449,21 @@
|
|
|
16411
16449
|
const MultipleFileUploadButton = (_a) => {
|
|
16412
16450
|
var { className, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", 'aria-label']);
|
|
16413
16451
|
const { open } = React__namespace.useContext(MultipleFileUploadContext);
|
|
16414
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16452
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadUpload, className) }, props),
|
|
16415
16453
|
React__namespace.createElement(Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
|
|
16416
16454
|
};
|
|
16417
16455
|
MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
|
|
16418
16456
|
|
|
16419
16457
|
const MultipleFileUploadInfo = (_a) => {
|
|
16420
16458
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16421
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16459
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadInfo, className) }, props), children));
|
|
16422
16460
|
};
|
|
16423
16461
|
MultipleFileUploadInfo.displayName = 'MultipleFileUploadInfo';
|
|
16424
16462
|
|
|
16425
16463
|
const MultipleFileUploadMain = (_a) => {
|
|
16426
16464
|
var { className, titleIcon, titleText, titleTextSeparator, infoText, isUploadButtonHidden } = _a, props = __rest$1(_a, ["className", "titleIcon", "titleText", "titleTextSeparator", "infoText", "isUploadButtonHidden"]);
|
|
16427
16465
|
const showTitle = !!titleIcon || !!titleText || !!titleTextSeparator;
|
|
16428
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16466
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadMain, className) }, props),
|
|
16429
16467
|
showTitle && React__namespace.createElement(MultipleFileUploadTitle, { icon: titleIcon, text: titleText, textSeparator: titleTextSeparator }),
|
|
16430
16468
|
isUploadButtonHidden || React__namespace.createElement(MultipleFileUploadButton, null),
|
|
16431
16469
|
!!infoText && React__namespace.createElement(MultipleFileUploadInfo, null, infoText)));
|
|
@@ -16462,20 +16500,20 @@
|
|
|
16462
16500
|
setIcon(statusToggleIcon);
|
|
16463
16501
|
}
|
|
16464
16502
|
}, [statusToggleIcon]);
|
|
16465
|
-
const toggle = (React__namespace.createElement("div", { className: styles$
|
|
16466
|
-
React__namespace.createElement("div", { className: styles$
|
|
16467
|
-
React__namespace.createElement("div", { className: styles$
|
|
16503
|
+
const toggle = (React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusProgress },
|
|
16504
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusProgressIcon }, icon),
|
|
16505
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemProgressText }, statusToggleText)));
|
|
16468
16506
|
const toggleExpandableSection = () => {
|
|
16469
16507
|
setIsOpen(!isOpen);
|
|
16470
16508
|
};
|
|
16471
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16509
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadStatus, className) }, props),
|
|
16472
16510
|
React__namespace.createElement(ExpandableSection, { toggleContent: toggle, isExpanded: isOpen, onToggle: toggleExpandableSection },
|
|
16473
16511
|
React__namespace.createElement("ul", { className: "pf-c-multiple-file-upload__status-list" }, children))));
|
|
16474
16512
|
};
|
|
16475
16513
|
MultipleFileUploadStatus.displayName = 'MultipleFileUploadStatus';
|
|
16476
16514
|
|
|
16477
16515
|
Promise.resolve().then(function () { return progress; });
|
|
16478
|
-
var styles$
|
|
16516
|
+
var styles$w = {
|
|
16479
16517
|
"modifiers": {
|
|
16480
16518
|
"sm": "pf-m-sm",
|
|
16481
16519
|
"lg": "pf-m-lg",
|
|
@@ -16500,9 +16538,9 @@
|
|
|
16500
16538
|
|
|
16501
16539
|
const ProgressBar = (_a) => {
|
|
16502
16540
|
var { progressBarAriaProps, className = '', children = null, value } = _a, props = __rest$1(_a, ["progressBarAriaProps", "className", "children", "value"]);
|
|
16503
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16504
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16505
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16541
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$w.progressBar, className) }, progressBarAriaProps),
|
|
16542
|
+
React__namespace.createElement("div", { className: css(styles$w.progressIndicator), style: { width: `${value}%` } },
|
|
16543
|
+
React__namespace.createElement("span", { className: css(styles$w.progressMeasure) }, children))));
|
|
16506
16544
|
};
|
|
16507
16545
|
ProgressBar.displayName = 'ProgressBar';
|
|
16508
16546
|
|
|
@@ -16535,12 +16573,12 @@
|
|
|
16535
16573
|
setTooltip('');
|
|
16536
16574
|
}
|
|
16537
16575
|
};
|
|
16538
|
-
const Title = (React__namespace.createElement("div", { className: css(styles$
|
|
16576
|
+
const Title = (React__namespace.createElement("div", { className: css(styles$w.progressDescription, isTitleTruncated && typeof title === 'string' && styles$w.modifiers.truncate), id: `${parentId}-description`, "aria-hidden": "true", onMouseEnter: isTitleTruncated && typeof title === 'string' ? onMouseEnter : null }, title));
|
|
16539
16577
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16540
16578
|
tooltip ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
|
|
16541
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16542
|
-
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$
|
|
16543
|
-
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$
|
|
16579
|
+
React__namespace.createElement("div", { className: css(styles$w.progressStatus), "aria-hidden": "true" },
|
|
16580
|
+
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$w.progressMeasure) }, label || `${value}%`)),
|
|
16581
|
+
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$w.progressStatusIcon) },
|
|
16544
16582
|
React__namespace.createElement(StatusIcon, null)))),
|
|
16545
16583
|
React__namespace.createElement(ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === exports.ProgressMeasureLocation.inside && `${value}%`)));
|
|
16546
16584
|
};
|
|
@@ -16582,7 +16620,7 @@
|
|
|
16582
16620
|
console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
|
|
16583
16621
|
}
|
|
16584
16622
|
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
|
|
16585
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16623
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$w.progress, styles$w.modifiers[variant], ['inside', 'outside'].includes(measureLocation) && styles$w.modifiers[measureLocation], measureLocation === 'inside' ? styles$w.modifiers[exports.ProgressSize.lg] : styles$w.modifiers[size], !title && styles$w.modifiers.singleline, className), id: this.id }),
|
|
16586
16624
|
React__namespace.createElement(ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
|
|
16587
16625
|
}
|
|
16588
16626
|
}
|
|
@@ -16665,21 +16703,21 @@
|
|
|
16665
16703
|
}
|
|
16666
16704
|
return `${Math.round(size)}${prefixes[prefixUnit]}B`;
|
|
16667
16705
|
};
|
|
16668
|
-
const title = (React__namespace.createElement("span", { className: styles$
|
|
16669
|
-
React__namespace.createElement("span", { className: styles$
|
|
16670
|
-
React__namespace.createElement("span", { className: styles$
|
|
16671
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16672
|
-
React__namespace.createElement("div", { className: styles$
|
|
16673
|
-
React__namespace.createElement("div", { className: styles$
|
|
16706
|
+
const title = (React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgress },
|
|
16707
|
+
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressText }, fileName || (file === null || file === void 0 ? void 0 : file.name) || ''),
|
|
16708
|
+
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressSize }, fileSize || getHumanReadableFileSize((file === null || file === void 0 ? void 0 : file.size) || 0))));
|
|
16709
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$x.multipleFileUploadStatusItem, className) }, props),
|
|
16710
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemIcon }, fileIcon || React__namespace.createElement(FileIcon, null)),
|
|
16711
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemMain },
|
|
16674
16712
|
React__namespace.createElement(Progress, { title: title, value: progressValue || loadPercentage, variant: progressVariant || loadResult, "aria-label": progressAriaLabel, "aria-labelledby": progressAriaLabelledBy, id: progressId })),
|
|
16675
|
-
React__namespace.createElement("div", { className: styles$
|
|
16713
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemClose },
|
|
16676
16714
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": buttonAriaLabel, onClick: onClearClick },
|
|
16677
16715
|
React__namespace.createElement(TimesCircleIcon, null)))));
|
|
16678
16716
|
};
|
|
16679
16717
|
MultipleFileUploadStatusItem.displayName = 'MultipleFileUploadStatusItem';
|
|
16680
16718
|
|
|
16681
16719
|
Promise.resolve().then(function () { return nav; });
|
|
16682
|
-
var styles$
|
|
16720
|
+
var styles$v = {
|
|
16683
16721
|
"divider": "pf-c-divider",
|
|
16684
16722
|
"menu": "pf-c-menu",
|
|
16685
16723
|
"menuContent": "pf-c-menu__content",
|
|
@@ -16762,7 +16800,7 @@
|
|
|
16762
16800
|
flyoutRef: this.state.flyoutRef,
|
|
16763
16801
|
setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
|
|
16764
16802
|
} },
|
|
16765
|
-
React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
16803
|
+
React__namespace.createElement("nav", Object.assign({ className: css(styles$v.nav, theme === 'light' && styles$v.modifiers.light, isHorizontal && styles$v.modifiers.horizontal, variant === 'tertiary' && styles$v.modifiers.tertiary, variant === 'horizontal-subnav' && styles$v.modifiers.horizontalSubnav, this.state.isScrollable && styles$v.modifiers.scrollable, className), "aria-label": ariaLabel || (variant === 'tertiary' ? 'Local' : 'Global') }, getOUIAProps(Nav.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
16766
16804
|
}
|
|
16767
16805
|
}
|
|
16768
16806
|
Nav.displayName = 'Nav';
|
|
@@ -16781,8 +16819,8 @@
|
|
|
16781
16819
|
var { className = '', nav, isNavOpen = true, theme = 'dark', id = 'page-sidebar' } = _a, props = __rest$1(_a, ["className", "nav", "isNavOpen", "theme", "id"]);
|
|
16782
16820
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {
|
|
16783
16821
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
16784
|
-
return (React__namespace.createElement("div", Object.assign({ id: id, className: css(styles$
|
|
16785
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16822
|
+
return (React__namespace.createElement("div", Object.assign({ id: id, className: css(styles$z.pageSidebar, theme === 'light' && styles$z.modifiers.light, navOpen && styles$z.modifiers.expanded, !navOpen && styles$z.modifiers.collapsed, className), "aria-hidden": !navOpen }, props),
|
|
16823
|
+
React__namespace.createElement("div", { className: css(styles$z.pageSidebarBody) },
|
|
16786
16824
|
React__namespace.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));
|
|
16787
16825
|
}));
|
|
16788
16826
|
};
|
|
@@ -16860,10 +16898,10 @@
|
|
|
16860
16898
|
const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = __rest$1(_a, ["children", "className", "ariaLeftScroll", "ariaRightScroll"]);
|
|
16861
16899
|
const { scrollViewAtStart, scrollViewAtEnd } = this.state;
|
|
16862
16900
|
return (React__namespace.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16863
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16901
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },
|
|
16864
16902
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
16865
|
-
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$
|
|
16866
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16903
|
+
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$v.navList, className), onScroll: this.handleScrollButtons }, props), children),
|
|
16904
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },
|
|
16867
16905
|
React__namespace.createElement(AngleRightIcon, null)))))))));
|
|
16868
16906
|
}
|
|
16869
16907
|
}
|
|
@@ -16881,9 +16919,9 @@
|
|
|
16881
16919
|
console.warn("For accessibility reasons an aria-label should be specified on nav groups if a title isn't");
|
|
16882
16920
|
}
|
|
16883
16921
|
const labelledBy = title ? id : undefined;
|
|
16884
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
16885
|
-
title && (React__namespace.createElement("h2", { className: css(styles$
|
|
16886
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
16922
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$v.navSection, className), "aria-labelledby": labelledBy }, props),
|
|
16923
|
+
title && (React__namespace.createElement("h2", { className: css(styles$v.navSectionTitle), id: id }, title)),
|
|
16924
|
+
React__namespace.createElement("ul", { className: css(styles$v.navList, className) }, children)));
|
|
16887
16925
|
};
|
|
16888
16926
|
NavGroup.displayName = 'NavGroup';
|
|
16889
16927
|
|
|
@@ -16972,8 +17010,8 @@
|
|
|
16972
17010
|
}
|
|
16973
17011
|
}
|
|
16974
17012
|
}, [flyoutVisible, flyoutTarget]);
|
|
16975
|
-
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$
|
|
16976
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17013
|
+
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17014
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
16977
17015
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))));
|
|
16978
17016
|
const ariaFlyoutProps = {
|
|
16979
17017
|
'aria-haspopup': 'menu',
|
|
@@ -16981,12 +17019,12 @@
|
|
|
16981
17019
|
};
|
|
16982
17020
|
const renderDefaultLink = (context) => {
|
|
16983
17021
|
const preventLinkDefault = preventDefault || !to;
|
|
16984
|
-
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$
|
|
17022
|
+
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$v.navLink, isActive && styles$v.modifiers.current, isHovered && styles$v.modifiers.hover, className), "aria-current": isActive ? 'page' : null, tabIndex: isNavOpen ? null : '-1' }, (hasFlyout && Object.assign({}, ariaFlyoutProps)), props),
|
|
16985
17023
|
children,
|
|
16986
17024
|
flyout && flyoutButton));
|
|
16987
17025
|
};
|
|
16988
17026
|
const renderClonedChild = (context, child) => React__namespace.cloneElement(child, Object.assign(Object.assign({ onClick: (e) => context.onSelect(e, groupId, itemId, to, preventDefault, onClick), 'aria-current': isActive ? 'page' : null }, (styleChildren && {
|
|
16989
|
-
className: css(styles$
|
|
17027
|
+
className: css(styles$v.navLink, isActive && styles$v.modifiers.current, child.props && child.props.className)
|
|
16990
17028
|
})), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16991
17029
|
child.props.children,
|
|
16992
17030
|
flyoutButton)) : (child.props.children) }));
|
|
@@ -16999,7 +17037,7 @@
|
|
|
16999
17037
|
};
|
|
17000
17038
|
const flyoutPopper = (React__namespace.createElement(Popper, { reference: ref, popper: React__namespace.createElement("div", { ref: popperRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, flyout), placement: "right-start", isVisible: flyoutVisible, onDocumentKeyDown: handleFlyout }));
|
|
17001
17039
|
const navItem = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17002
|
-
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$
|
|
17040
|
+
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$v.navItem, hasFlyout && styles$v.modifiers.flyout, className), ref: ref }, ouiaProps),
|
|
17003
17041
|
React__namespace.createElement(NavContext.Consumer, null, context => React__namespace.isValidElement(children)
|
|
17004
17042
|
? renderClonedChild(context, children)
|
|
17005
17043
|
: renderDefaultLink(context))),
|
|
@@ -17053,15 +17091,15 @@
|
|
|
17053
17091
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17054
17092
|
onExpand } = _a, props = __rest$1(_a, ["title", "srText", "children", "className", "isActive", "ouiaId", "groupId", "id", "isExpanded", "buttonProps", "onExpand"]);
|
|
17055
17093
|
const { expandedState, ouiaStateId } = this.state;
|
|
17056
|
-
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
17057
|
-
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$
|
|
17094
|
+
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$v.navItem, styles$v.modifiers.expandable, expandedState && styles$v.modifiers.expanded, isActive && styles$v.modifiers.current, className) }, getOUIAProps(NavExpandable.displayName, ouiaId !== undefined ? ouiaId : ouiaStateId), props),
|
|
17095
|
+
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$v.navLink, id: srText ? null : this.id, onClick: e => this.onExpand(e, context.onToggle), "aria-expanded": expandedState, tabIndex: isNavOpen ? null : -1 }, buttonProps),
|
|
17058
17096
|
title,
|
|
17059
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17060
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17097
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17098
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
17061
17099
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))))),
|
|
17062
|
-
React__namespace.createElement("section", { className: css(styles$
|
|
17100
|
+
React__namespace.createElement("section", { className: css(styles$v.navSubnav), "aria-labelledby": this.id, hidden: expandedState ? null : true },
|
|
17063
17101
|
srText && (React__namespace.createElement("h2", { className: css(a11yStyles.screenReader), id: this.id }, srText)),
|
|
17064
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
17102
|
+
React__namespace.createElement("ul", { className: css(styles$v.navList) }, children))))));
|
|
17065
17103
|
}
|
|
17066
17104
|
}
|
|
17067
17105
|
NavExpandable.displayName = 'NavExpandable';
|
|
@@ -17076,7 +17114,7 @@
|
|
|
17076
17114
|
};
|
|
17077
17115
|
|
|
17078
17116
|
Promise.resolve().then(function () { return notificationBadge; });
|
|
17079
|
-
var styles$
|
|
17117
|
+
var styles$u = {
|
|
17080
17118
|
"iconAttentionBell": "pf-icon-attention-bell",
|
|
17081
17119
|
"iconBell": "pf-icon-bell",
|
|
17082
17120
|
"modifiers": {
|
|
@@ -17116,14 +17154,14 @@
|
|
|
17116
17154
|
notificationChild = attentionIcon;
|
|
17117
17155
|
}
|
|
17118
17156
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, className: className }, props),
|
|
17119
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17157
|
+
React__namespace.createElement("span", { className: css(styles$u.notificationBadge, styles$u.modifiers[variant]) },
|
|
17120
17158
|
notificationChild,
|
|
17121
|
-
count > 0 && React__namespace.createElement("span", { className: css(styles$
|
|
17159
|
+
count > 0 && React__namespace.createElement("span", { className: css(styles$u.notificationBadgeCount) }, count))));
|
|
17122
17160
|
};
|
|
17123
17161
|
NotificationBadge.displayName = 'NotificationBadge';
|
|
17124
17162
|
|
|
17125
17163
|
Promise.resolve().then(function () { return notificationDrawer; });
|
|
17126
|
-
var styles$
|
|
17164
|
+
var styles$t = {
|
|
17127
17165
|
"modifiers": {
|
|
17128
17166
|
"read": "pf-m-read",
|
|
17129
17167
|
"info": "pf-m-info",
|
|
@@ -17159,14 +17197,14 @@
|
|
|
17159
17197
|
|
|
17160
17198
|
const NotificationDrawerBase = (_a) => {
|
|
17161
17199
|
var { children, className = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "innerRef"]);
|
|
17162
|
-
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$
|
|
17200
|
+
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$t.notificationDrawer, className) }), children));
|
|
17163
17201
|
};
|
|
17164
17202
|
const NotificationDrawer = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(NotificationDrawerBase, Object.assign({ innerRef: ref }, props))));
|
|
17165
17203
|
NotificationDrawer.displayName = 'NotificationDrawer';
|
|
17166
17204
|
|
|
17167
17205
|
const NotificationDrawerBody = (_a) => {
|
|
17168
17206
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17169
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17207
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerBody, className) }), children));
|
|
17170
17208
|
};
|
|
17171
17209
|
NotificationDrawerBody.displayName = 'NotificationDrawerBody';
|
|
17172
17210
|
|
|
@@ -17193,17 +17231,17 @@
|
|
|
17193
17231
|
}
|
|
17194
17232
|
titleRef.current.style.setProperty(c_notification_drawer__group_toggle_title_max_lines.name, truncateTitle.toString());
|
|
17195
17233
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17196
|
-
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17197
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17234
|
+
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$t.notificationDrawerGroupToggleTitle) }), title));
|
|
17235
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$t.notificationDrawerGroup, isExpanded && styles$t.modifiers.expanded, className) }),
|
|
17198
17236
|
React__namespace.createElement(HeadingLevel, null,
|
|
17199
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17237
|
+
React__namespace.createElement("button", { className: css(styles$t.notificationDrawerGroupToggle), "aria-expanded": isExpanded, onClick: e => onExpand(e, !isExpanded), onKeyDown: e => {
|
|
17200
17238
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
17201
17239
|
e.preventDefault();
|
|
17202
17240
|
onExpand(e, !isExpanded);
|
|
17203
17241
|
}
|
|
17204
17242
|
} },
|
|
17205
17243
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title),
|
|
17206
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
17244
|
+
React__namespace.createElement("div", { className: css(styles$t.notificationDrawerGroupToggleCount) },
|
|
17207
17245
|
React__namespace.createElement(Badge, { isRead: isRead }, count)),
|
|
17208
17246
|
React__namespace.createElement("span", { className: "pf-c-notification-drawer__group-toggle-icon" },
|
|
17209
17247
|
React__namespace.createElement(AngleRightIcon, null)))),
|
|
@@ -17213,13 +17251,13 @@
|
|
|
17213
17251
|
|
|
17214
17252
|
const NotificationDrawerGroupList = (_a) => {
|
|
17215
17253
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17216
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17254
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerGroupList, className) }), children));
|
|
17217
17255
|
};
|
|
17218
17256
|
NotificationDrawerGroupList.displayName = 'NotificationDrawerGroupList';
|
|
17219
17257
|
|
|
17220
17258
|
const TextContent = (_a) => {
|
|
17221
17259
|
var { children = null, className = '', isVisited = false } = _a, props = __rest$1(_a, ["children", "className", "isVisited"]);
|
|
17222
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17260
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1f.content, isVisited && styles$1f.modifiers.visited, className) }), children));
|
|
17223
17261
|
};
|
|
17224
17262
|
TextContent.displayName = 'TextContent';
|
|
17225
17263
|
|
|
@@ -17241,7 +17279,7 @@
|
|
|
17241
17279
|
var { children = null, className = '', component = exports.TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
17242
17280
|
const Component = component;
|
|
17243
17281
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
17244
|
-
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$
|
|
17282
|
+
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$1f.modifiers.visited, className) }), children));
|
|
17245
17283
|
};
|
|
17246
17284
|
Text.displayName = 'Text';
|
|
17247
17285
|
|
|
@@ -17273,10 +17311,10 @@
|
|
|
17273
17311
|
|
|
17274
17312
|
const NotificationDrawerHeader = (_a) => {
|
|
17275
17313
|
var { children, className = '', count, closeButtonAriaLabel = 'Close', customText, onClose, title = 'Notifications', unreadText = 'unread' } = _a, props = __rest$1(_a, ["children", "className", "count", "closeButtonAriaLabel", "customText", "onClose", "title", "unreadText"]);
|
|
17276
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17277
|
-
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$
|
|
17278
|
-
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$
|
|
17279
|
-
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$
|
|
17314
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerHeader, className) }),
|
|
17315
|
+
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$t.notificationDrawerHeaderTitle) }, title),
|
|
17316
|
+
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$t.notificationDrawerHeaderStatus) }, customText || `${count} ${unreadText}`)),
|
|
17317
|
+
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$t.notificationDrawerHeaderAction) },
|
|
17280
17318
|
children,
|
|
17281
17319
|
onClose && (React__namespace.createElement("div", null,
|
|
17282
17320
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
@@ -17300,15 +17338,15 @@
|
|
|
17300
17338
|
event.target.click();
|
|
17301
17339
|
}
|
|
17302
17340
|
};
|
|
17303
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$
|
|
17341
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItem, isHoverable && styles$t.modifiers.hoverable, styles$t.modifiers[variant], isRead && styles$t.modifiers.read, className), tabIndex: tabIndex, onClick: e => onClick(e), onKeyDown: onKeyDown }), children));
|
|
17304
17342
|
};
|
|
17305
17343
|
NotificationDrawerListItem.displayName = 'NotificationDrawerListItem';
|
|
17306
17344
|
|
|
17307
17345
|
const NotificationDrawerListItemBody = (_a) => {
|
|
17308
17346
|
var { children, className = '', timestamp } = _a, props = __rest$1(_a, ["children", "className", "timestamp"]);
|
|
17309
17347
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17310
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17311
|
-
timestamp && React__namespace.createElement("div", { className: css(styles$
|
|
17348
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItemDescription, className) }), children),
|
|
17349
|
+
timestamp && React__namespace.createElement("div", { className: css(styles$t.notificationDrawerListItemTimestamp, className) }, timestamp)));
|
|
17312
17350
|
};
|
|
17313
17351
|
NotificationDrawerListItemBody.displayName = 'NotificationDrawerListItemBody';
|
|
17314
17352
|
|
|
@@ -17340,19 +17378,19 @@
|
|
|
17340
17378
|
}
|
|
17341
17379
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17342
17380
|
const Icon = variantIcons$1[variant];
|
|
17343
|
-
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17381
|
+
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$t.notificationDrawerListItemHeaderTitle, truncateTitle && styles$t.modifiers.truncate) }),
|
|
17344
17382
|
srTitle && React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, srTitle),
|
|
17345
17383
|
title));
|
|
17346
17384
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17347
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17348
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17385
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItemHeader, className) }),
|
|
17386
|
+
React__namespace.createElement("span", { className: css(styles$t.notificationDrawerListItemHeaderIcon) }, icon ? icon : React__namespace.createElement(Icon, null)),
|
|
17349
17387
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title)),
|
|
17350
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
17388
|
+
children && React__namespace.createElement("div", { className: css(styles$t.notificationDrawerListItemAction) }, children)));
|
|
17351
17389
|
};
|
|
17352
17390
|
NotificationDrawerListItemHeader.displayName = 'NotificationDrawerListItemHeader';
|
|
17353
17391
|
|
|
17354
17392
|
Promise.resolve().then(function () { return optionsMenu; });
|
|
17355
|
-
var styles$
|
|
17393
|
+
var styles$s = {
|
|
17356
17394
|
"divider": "pf-c-divider",
|
|
17357
17395
|
"modifiers": {
|
|
17358
17396
|
"plain": "pf-m-plain",
|
|
@@ -17394,13 +17432,13 @@
|
|
|
17394
17432
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17395
17433
|
id,
|
|
17396
17434
|
onSelect: () => undefined,
|
|
17397
|
-
toggleIndicatorClass: styles$
|
|
17398
|
-
toggleTextClass: styles$
|
|
17399
|
-
menuClass: styles$
|
|
17400
|
-
itemClass: styles$
|
|
17401
|
-
toggleClass: isText ? styles$
|
|
17402
|
-
baseClass: styles$
|
|
17403
|
-
disabledClass: styles$
|
|
17435
|
+
toggleIndicatorClass: styles$s.optionsMenuToggleIcon,
|
|
17436
|
+
toggleTextClass: styles$s.optionsMenuToggleText,
|
|
17437
|
+
menuClass: styles$s.optionsMenuMenu,
|
|
17438
|
+
itemClass: styles$s.optionsMenuMenuItem,
|
|
17439
|
+
toggleClass: isText ? styles$s.optionsMenuToggleButton : styles$s.optionsMenuToggle,
|
|
17440
|
+
baseClass: styles$s.optionsMenu,
|
|
17441
|
+
disabledClass: styles$s.modifiers.disabled,
|
|
17404
17442
|
menuComponent: isGrouped ? 'div' : 'ul',
|
|
17405
17443
|
baseComponent: 'div',
|
|
17406
17444
|
ouiaId: useOUIAId(OptionsMenu.displayName, ouiaId),
|
|
@@ -17425,8 +17463,8 @@
|
|
|
17425
17463
|
|
|
17426
17464
|
const OptionsMenuItemGroup = (_a) => {
|
|
17427
17465
|
var { className = '', 'aria-label': ariaLabel = '', groupTitle = '', children = null, hasSeparator = false } = _a, props = __rest$1(_a, ["className", 'aria-label', "groupTitle", "children", "hasSeparator"]);
|
|
17428
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17429
|
-
groupTitle && React__namespace.createElement("h1", { className: css(styles$
|
|
17466
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$s.optionsMenuGroup), role: "none" }),
|
|
17467
|
+
groupTitle && React__namespace.createElement("h1", { className: css(styles$s.optionsMenuGroupTitle) }, groupTitle),
|
|
17430
17468
|
React__namespace.createElement("ul", { className: className, "aria-label": ariaLabel, role: "group" },
|
|
17431
17469
|
children,
|
|
17432
17470
|
hasSeparator && React__namespace.createElement(Divider, { component: "li", role: "separator" }))));
|
|
@@ -17437,7 +17475,7 @@
|
|
|
17437
17475
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest$1(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
17438
17476
|
return (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
17439
17477
|
children,
|
|
17440
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
17478
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17441
17479
|
React__namespace.createElement(CheckIcon, { "aria-hidden": isSelected })))));
|
|
17442
17480
|
};
|
|
17443
17481
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -17499,15 +17537,15 @@
|
|
|
17499
17537
|
buttonRef.current.focus();
|
|
17500
17538
|
}
|
|
17501
17539
|
};
|
|
17502
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ id: contextId }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17503
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17504
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17505
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17540
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ id: contextId }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$s.optionsMenuToggle, styles$s.modifiers.text, isPlain && styles$s.modifiers.plain, isDisabled && styles$s.modifiers.disabled, isActive && styles$s.modifiers.active) }, props),
|
|
17541
|
+
React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleText, toggleTextClassName) }, toggleText),
|
|
17542
|
+
React__namespace.createElement("button", { className: css(styles$s.optionsMenuToggleButton, toggleButtonContentsClassName), id: parentId ? `${parentId}-toggle` : `${contextId}-toggle`, "aria-haspopup": "listbox", "aria-label": ariaLabel, "aria-expanded": isOpen, ref: buttonRef, disabled: isDisabled, onClick: () => onToggle(!isOpen), onKeyDown: onKeyDown },
|
|
17543
|
+
React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleButtonIcon) }, toggleButtonContents))))));
|
|
17506
17544
|
};
|
|
17507
17545
|
OptionsMenuToggleWithText.displayName = 'OptionsMenuToggleWithText';
|
|
17508
17546
|
|
|
17509
17547
|
Promise.resolve().then(function () { return overflowMenu; });
|
|
17510
|
-
var styles$
|
|
17548
|
+
var styles$r = {
|
|
17511
17549
|
"divider": "pf-c-divider",
|
|
17512
17550
|
"modifiers": {
|
|
17513
17551
|
"buttonGroup": "pf-m-button-group",
|
|
@@ -17563,7 +17601,7 @@
|
|
|
17563
17601
|
render() {
|
|
17564
17602
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17565
17603
|
const _a = this.props, { className, breakpoint, children } = _a, props = __rest$1(_a, ["className", "breakpoint", "children"]);
|
|
17566
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17604
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$r.overflowMenu, className) }),
|
|
17567
17605
|
React__namespace.createElement(OverflowMenuContext.Provider, { value: { isBelowBreakpoint: this.state.isBelowBreakpoint } }, children)));
|
|
17568
17606
|
}
|
|
17569
17607
|
}
|
|
@@ -17572,23 +17610,23 @@
|
|
|
17572
17610
|
|
|
17573
17611
|
const OverflowMenuControl = (_a) => {
|
|
17574
17612
|
var { className, children, hasAdditionalOptions } = _a, props = __rest$1(_a, ["className", "children", "hasAdditionalOptions"]);
|
|
17575
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17613
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$r.overflowMenuControl, className) }, props),
|
|
17576
17614
|
' ',
|
|
17577
17615
|
children,
|
|
17578
17616
|
' '))));
|
|
17579
17617
|
};
|
|
17580
17618
|
OverflowMenuControl.displayName = 'OverflowMenuControl';
|
|
17581
17619
|
|
|
17582
|
-
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$
|
|
17620
|
+
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$r.overflowMenuContent, className) }, children))));
|
|
17583
17621
|
OverflowMenuContent.displayName = 'OverflowMenuContent';
|
|
17584
17622
|
|
|
17585
17623
|
const OverflowMenuGroup = (_a) => {
|
|
17586
17624
|
var { className, children, isPersistent = false, groupType } = _a, props = __rest$1(_a, ["className", "children", "isPersistent", "groupType"]);
|
|
17587
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17625
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$r.overflowMenuGroup, groupType === 'button' && styles$r.modifiers.buttonGroup, groupType === 'icon' && styles$r.modifiers.iconButtonGroup, className) }, props), children))));
|
|
17588
17626
|
};
|
|
17589
17627
|
OverflowMenuGroup.displayName = 'OverflowMenuGroup';
|
|
17590
17628
|
|
|
17591
|
-
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$
|
|
17629
|
+
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$r.overflowMenuItem, className) },
|
|
17592
17630
|
" ",
|
|
17593
17631
|
children,
|
|
17594
17632
|
" "))));
|
|
@@ -17609,8 +17647,8 @@
|
|
|
17609
17647
|
console.warn('PageBreadcrumb: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17610
17648
|
}
|
|
17611
17649
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17612
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
17613
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17650
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$z.pageMainBreadcrumb, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17651
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17614
17652
|
!isWidthLimited && children));
|
|
17615
17653
|
};
|
|
17616
17654
|
PageBreadcrumb.displayName = 'PageBreadcrumb';
|
|
@@ -17624,7 +17662,7 @@
|
|
|
17624
17662
|
console.warn('PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17625
17663
|
}
|
|
17626
17664
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17627
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17665
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$z.pageMainGroup, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }), children));
|
|
17628
17666
|
};
|
|
17629
17667
|
PageGroup.displayName = 'PageGroup';
|
|
17630
17668
|
|
|
@@ -17648,13 +17686,13 @@
|
|
|
17648
17686
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, onNavToggle: managedOnNavToggle, isNavOpen: managedIsNavOpen }) => {
|
|
17649
17687
|
const navToggle = isManagedSidebar ? managedOnNavToggle : onNavToggle;
|
|
17650
17688
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
17651
|
-
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$
|
|
17652
|
-
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$
|
|
17653
|
-
showNavToggle && (React__namespace.createElement("div", { className: css(styles$
|
|
17689
|
+
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$z.pageHeader, className) }, props),
|
|
17690
|
+
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrand) },
|
|
17691
|
+
showNavToggle && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrandToggle) },
|
|
17654
17692
|
React__namespace.createElement(Button, { id: navToggleId, onClick: navToggle, "aria-label": ariaLabel, "aria-controls": ariaControls, "aria-expanded": navOpen ? 'true' : 'false', variant: exports.ButtonVariant.plain },
|
|
17655
17693
|
React__namespace.createElement(BarsIcon, null)))),
|
|
17656
|
-
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$
|
|
17657
|
-
topNav && React__namespace.createElement("div", { className: css(styles$
|
|
17694
|
+
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$z.pageHeaderBrandLink) }, logoProps), logo)))),
|
|
17695
|
+
topNav && React__namespace.createElement("div", { className: css(styles$z.pageHeaderNav) }, topNav),
|
|
17658
17696
|
headerTools));
|
|
17659
17697
|
}));
|
|
17660
17698
|
};
|
|
@@ -17677,18 +17715,18 @@
|
|
|
17677
17715
|
PageSectionTypes["wizard"] = "wizard";
|
|
17678
17716
|
})(exports.PageSectionTypes || (exports.PageSectionTypes = {}));
|
|
17679
17717
|
const variantType = {
|
|
17680
|
-
[exports.PageSectionTypes.default]: styles$
|
|
17681
|
-
[exports.PageSectionTypes.nav]: styles$
|
|
17682
|
-
[exports.PageSectionTypes.subNav]: styles$
|
|
17683
|
-
[exports.PageSectionTypes.breadcrumb]: styles$
|
|
17684
|
-
[exports.PageSectionTypes.tabs]: styles$
|
|
17685
|
-
[exports.PageSectionTypes.wizard]: styles$
|
|
17718
|
+
[exports.PageSectionTypes.default]: styles$z.pageMainSection,
|
|
17719
|
+
[exports.PageSectionTypes.nav]: styles$z.pageMainNav,
|
|
17720
|
+
[exports.PageSectionTypes.subNav]: styles$z.pageMainSubnav,
|
|
17721
|
+
[exports.PageSectionTypes.breadcrumb]: styles$z.pageMainBreadcrumb,
|
|
17722
|
+
[exports.PageSectionTypes.tabs]: styles$z.pageMainTabs,
|
|
17723
|
+
[exports.PageSectionTypes.wizard]: styles$z.pageMainWizard
|
|
17686
17724
|
};
|
|
17687
17725
|
const variantStyle$3 = {
|
|
17688
17726
|
[exports.PageSectionVariants.default]: '',
|
|
17689
|
-
[exports.PageSectionVariants.light]: styles$
|
|
17690
|
-
[exports.PageSectionVariants.dark]: styles$
|
|
17691
|
-
[exports.PageSectionVariants.darker]: styles$
|
|
17727
|
+
[exports.PageSectionVariants.light]: styles$z.modifiers.light,
|
|
17728
|
+
[exports.PageSectionVariants.dark]: styles$z.modifiers.dark_200,
|
|
17729
|
+
[exports.PageSectionVariants.darker]: styles$z.modifiers.dark_100
|
|
17692
17730
|
};
|
|
17693
17731
|
const PageSection = (_a) => {
|
|
17694
17732
|
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
@@ -17699,29 +17737,29 @@
|
|
|
17699
17737
|
console.warn('PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17700
17738
|
}
|
|
17701
17739
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17702
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$
|
|
17703
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17740
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$z), formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), variantStyle$3[variant], isFilled === false && styles$z.modifiers.noFill, isFilled === true && styles$z.modifiers.fill, isWidthLimited && styles$z.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$z.modifiers.alignCenter, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }),
|
|
17741
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17704
17742
|
!isWidthLimited && children));
|
|
17705
17743
|
};
|
|
17706
17744
|
PageSection.displayName = 'PageSection';
|
|
17707
17745
|
|
|
17708
17746
|
const PageHeaderTools = (_a) => {
|
|
17709
17747
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17710
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17748
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderTools, className) }, props), children));
|
|
17711
17749
|
};
|
|
17712
17750
|
PageHeaderTools.displayName = 'PageHeaderTools';
|
|
17713
17751
|
|
|
17714
17752
|
const PageHeaderToolsGroup = (_a) => {
|
|
17715
17753
|
var { children, className, visibility } = _a, props = __rest$1(_a, ["children", "className", "visibility"]);
|
|
17716
17754
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17717
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17755
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderToolsGroup, formatBreakpointMods(visibility, styles$z, '', getBreakpoint(width)), className) }, props), children));
|
|
17718
17756
|
};
|
|
17719
17757
|
PageHeaderToolsGroup.displayName = 'PageHeaderToolsGroup';
|
|
17720
17758
|
|
|
17721
17759
|
const PageHeaderToolsItem = (_a) => {
|
|
17722
17760
|
var { children, id, className, visibility, isSelected } = _a, props = __rest$1(_a, ["children", "id", "className", "visibility", "isSelected"]);
|
|
17723
17761
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17724
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17762
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderToolsItem, isSelected && styles$z.modifiers.selected, formatBreakpointMods(visibility, styles$z, '', getBreakpoint(width)), className), id: id }, props), children));
|
|
17725
17763
|
};
|
|
17726
17764
|
PageHeaderToolsItem.displayName = 'PageHeaderToolsItem';
|
|
17727
17765
|
|
|
@@ -17734,8 +17772,8 @@
|
|
|
17734
17772
|
console.warn('PageNavigation: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17735
17773
|
}
|
|
17736
17774
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17737
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17738
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17775
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainNav, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17776
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17739
17777
|
!isWidthLimited && children));
|
|
17740
17778
|
};
|
|
17741
17779
|
PageNavigation.displayName = 'PageNavigation';
|
|
@@ -17764,7 +17802,7 @@
|
|
|
17764
17802
|
ToggleTemplate.displayName = 'ToggleTemplate';
|
|
17765
17803
|
|
|
17766
17804
|
Promise.resolve().then(function () { return pagination; });
|
|
17767
|
-
var styles$
|
|
17805
|
+
var styles$q = {
|
|
17768
17806
|
"button": "pf-c-button",
|
|
17769
17807
|
"formControl": "pf-c-form-control",
|
|
17770
17808
|
"modifiers": {
|
|
@@ -17842,15 +17880,15 @@
|
|
|
17842
17880
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17843
17881
|
onSetPage, isDisabled, itemCount, lastPage, firstPage, pagesTitle, pagesTitlePlural, toLastPage, toNextPage, toFirstPage, toPreviousPage, currPage, paginationTitle, ofWord, onNextClick, onPreviousClick, onFirstClick, onLastClick, onPageInput, className, isCompact } = _a, props = __rest$1(_a, ["page", "perPage", "onSetPage", "isDisabled", "itemCount", "lastPage", "firstPage", "pagesTitle", "pagesTitlePlural", "toLastPage", "toNextPage", "toFirstPage", "toPreviousPage", "currPage", "paginationTitle", "ofWord", "onNextClick", "onPreviousClick", "onFirstClick", "onLastClick", "onPageInput", "className", "isCompact"]);
|
|
17844
17882
|
const { userInputPage } = this.state;
|
|
17845
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
17846
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17883
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$q.paginationNav, className), "aria-label": paginationTitle }, props),
|
|
17884
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$q.paginationNavControl, styles$q.modifiers.first) },
|
|
17847
17885
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "aria-label": toFirstPage, "data-action": "first", onClick: event => {
|
|
17848
17886
|
onFirstClick(event, 1);
|
|
17849
17887
|
this.handleNewPage(event, 1);
|
|
17850
17888
|
this.setState({ userInputPage: 1 });
|
|
17851
17889
|
} },
|
|
17852
17890
|
React__namespace.createElement(AngleDoubleLeftIcon, null)))),
|
|
17853
|
-
React__namespace.createElement("div", { className: styles$
|
|
17891
|
+
React__namespace.createElement("div", { className: styles$q.paginationNavControl },
|
|
17854
17892
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
|
|
17855
17893
|
const newPage = page - 1 >= 1 ? page - 1 : 1;
|
|
17856
17894
|
onPreviousClick(event, newPage);
|
|
@@ -17858,13 +17896,13 @@
|
|
|
17858
17896
|
this.setState({ userInputPage: newPage });
|
|
17859
17897
|
}, "aria-label": toPreviousPage },
|
|
17860
17898
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
17861
|
-
!isCompact && (React__namespace.createElement("div", { className: styles$
|
|
17862
|
-
React__namespace.createElement("input", { className: css(styles$
|
|
17899
|
+
!isCompact && (React__namespace.createElement("div", { className: styles$q.paginationNavPageSelect },
|
|
17900
|
+
React__namespace.createElement("input", { className: css(styles$q.formControl), "aria-label": currPage, type: "number", disabled: isDisabled || (itemCount && page === firstPage && page === lastPage && itemCount >= 0) || page === 0, min: lastPage <= 0 && firstPage <= 0 ? 0 : 1, max: lastPage, value: userInputPage, onKeyDown: event => this.onKeyDown(event, page, lastPage, onPageInput), onChange: event => this.onChange(event, lastPage) }),
|
|
17863
17901
|
(itemCount || itemCount === 0) && (React__namespace.createElement("span", { "aria-hidden": "true" },
|
|
17864
17902
|
ofWord,
|
|
17865
17903
|
" ",
|
|
17866
17904
|
pagesTitle ? pluralize(lastPage, pagesTitle, pagesTitlePlural) : lastPage)))),
|
|
17867
|
-
React__namespace.createElement("div", { className: styles$
|
|
17905
|
+
React__namespace.createElement("div", { className: styles$q.paginationNavControl },
|
|
17868
17906
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toNextPage, "data-action": "next", onClick: event => {
|
|
17869
17907
|
const newPage = page + 1 <= lastPage ? page + 1 : lastPage;
|
|
17870
17908
|
onNextClick(event, newPage);
|
|
@@ -17872,7 +17910,7 @@
|
|
|
17872
17910
|
this.setState({ userInputPage: newPage });
|
|
17873
17911
|
} },
|
|
17874
17912
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
17875
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17913
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$q.paginationNavControl, styles$q.modifiers.last) },
|
|
17876
17914
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
|
|
17877
17915
|
onLastClick(event, lastPage);
|
|
17878
17916
|
this.handleNewPage(event, lastPage);
|
|
@@ -17911,11 +17949,11 @@
|
|
|
17911
17949
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17912
17950
|
onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null, perPageComponent = 'div' }) => {
|
|
17913
17951
|
const isDiv = perPageComponent === 'div';
|
|
17914
|
-
const toggleClasses = css(styles$
|
|
17952
|
+
const toggleClasses = css(styles$s.optionsMenuToggle, isDisabled && styles$s.modifiers.disabled, styles$s.modifiers.plain, styles$s.modifiers.text);
|
|
17915
17953
|
const template = typeof ToggleTemplate === 'string' ? (fillTemplate(ToggleTemplate, { firstIndex, lastIndex, ofWord, itemCount, itemsTitle })) : (React__namespace.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, ofWord: ofWord, itemCount: itemCount, itemsTitle: itemsTitle }));
|
|
17916
17954
|
const dropdown = showToggle && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17917
|
-
isDiv && React__namespace.createElement("span", { className: css(styles$
|
|
17918
|
-
React__namespace.createElement(DropdownToggle, { onEnter: onEnter, "aria-label": isDiv ? optionsToggle || 'Items per page' : optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: isDiv ? styles$
|
|
17955
|
+
isDiv && React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleText) }, template),
|
|
17956
|
+
React__namespace.createElement(DropdownToggle, { onEnter: onEnter, "aria-label": isDiv ? optionsToggle || 'Items per page' : optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: isDiv ? styles$s.optionsMenuToggleButton : toggleClasses, parentRef: parentRef, "aria-haspopup": "listbox" }, !isDiv && template)));
|
|
17919
17957
|
return isDiv ? React__namespace.createElement("div", { className: toggleClasses }, dropdown) : dropdown;
|
|
17920
17958
|
};
|
|
17921
17959
|
OptionsToggle.displayName = 'OptionsToggle';
|
|
@@ -17952,7 +17990,7 @@
|
|
|
17952
17990
|
return perPageOptions.map(({ value, title }) => (React__namespace.createElement(DropdownItem, { key: value, component: "button", "data-action": `per-page-${value}`, className: css(perPage === value && 'pf-m-selected'), onClick: event => this.handleNewPerPage(event, value) },
|
|
17953
17991
|
title,
|
|
17954
17992
|
` ${perPageSuffix}`,
|
|
17955
|
-
perPage === value && (React__namespace.createElement("div", { className: css(styles$
|
|
17993
|
+
perPage === value && (React__namespace.createElement("div", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17956
17994
|
React__namespace.createElement(CheckIcon, null))))));
|
|
17957
17995
|
};
|
|
17958
17996
|
this.state = {
|
|
@@ -17965,13 +18003,13 @@
|
|
|
17965
18003
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17966
18004
|
id: widgetId,
|
|
17967
18005
|
onSelect: this.onSelect,
|
|
17968
|
-
toggleIndicatorClass: perPageComponent === 'div' ? styles$
|
|
17969
|
-
toggleTextClass: styles$
|
|
17970
|
-
menuClass: styles$
|
|
17971
|
-
itemClass: styles$
|
|
18006
|
+
toggleIndicatorClass: perPageComponent === 'div' ? styles$s.optionsMenuToggleButtonIcon : styles$s.optionsMenuToggleIcon,
|
|
18007
|
+
toggleTextClass: styles$s.optionsMenuToggleText,
|
|
18008
|
+
menuClass: styles$s.optionsMenuMenu,
|
|
18009
|
+
itemClass: styles$s.optionsMenuMenuItem,
|
|
17972
18010
|
toggleClass: ' ',
|
|
17973
|
-
baseClass: styles$
|
|
17974
|
-
disabledClass: styles$
|
|
18011
|
+
baseClass: styles$s.optionsMenu,
|
|
18012
|
+
disabledClass: styles$s.modifiers.disabled,
|
|
17975
18013
|
menuComponent: 'ul',
|
|
17976
18014
|
baseComponent: 'div',
|
|
17977
18015
|
ouiaComponentType: PaginationOptionsMenu.displayName
|
|
@@ -18091,8 +18129,8 @@
|
|
|
18091
18129
|
}
|
|
18092
18130
|
}
|
|
18093
18131
|
const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };
|
|
18094
|
-
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$
|
|
18095
|
-
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$
|
|
18132
|
+
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$q.pagination, variant === exports.PaginationVariant.bottom && styles$q.modifiers.bottom, isCompact && styles$q.modifiers.compact, isStatic && styles$q.modifiers.static, isSticky && styles$q.modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
18133
|
+
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$q.paginationTotalItems) },
|
|
18096
18134
|
toggleTemplate && typeof toggleTemplate === 'string' && fillTemplate(toggleTemplate, toggleTemplateProps),
|
|
18097
18135
|
toggleTemplate &&
|
|
18098
18136
|
typeof toggleTemplate !== 'string' &&
|
|
@@ -18147,7 +18185,7 @@
|
|
|
18147
18185
|
};
|
|
18148
18186
|
|
|
18149
18187
|
Promise.resolve().then(function () { return progressStepper; });
|
|
18150
|
-
var styles$
|
|
18188
|
+
var styles$p = {
|
|
18151
18189
|
"faExclamationTriangle": "fa-exclamation-triangle",
|
|
18152
18190
|
"modifiers": {
|
|
18153
18191
|
"center": "pf-m-center",
|
|
@@ -18184,7 +18222,7 @@
|
|
|
18184
18222
|
|
|
18185
18223
|
const ProgressStepper = (_a) => {
|
|
18186
18224
|
var { children, className, isCenterAligned, isVertical, isCompact } = _a, props = __rest$1(_a, ["children", "className", "isCenterAligned", "isVertical", "isCompact"]);
|
|
18187
|
-
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$
|
|
18225
|
+
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$p.progressStepper, isCenterAligned && styles$p.modifiers.center, isVertical && styles$p.modifiers.vertical, isCompact && styles$p.modifiers.compact, className) }, props), children));
|
|
18188
18226
|
};
|
|
18189
18227
|
ProgressStepper.displayName = 'ProgressStepper';
|
|
18190
18228
|
|
|
@@ -18209,11 +18247,11 @@
|
|
|
18209
18247
|
};
|
|
18210
18248
|
const variantStyle$2 = {
|
|
18211
18249
|
default: '',
|
|
18212
|
-
info: styles$
|
|
18213
|
-
success: styles$
|
|
18214
|
-
pending: styles$
|
|
18215
|
-
warning: styles$
|
|
18216
|
-
danger: styles$
|
|
18250
|
+
info: styles$p.modifiers.info,
|
|
18251
|
+
success: styles$p.modifiers.success,
|
|
18252
|
+
pending: styles$p.modifiers.pending,
|
|
18253
|
+
warning: styles$p.modifiers.warning,
|
|
18254
|
+
danger: styles$p.modifiers.danger
|
|
18217
18255
|
};
|
|
18218
18256
|
const ProgressStep = (_a) => {
|
|
18219
18257
|
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"]);
|
|
@@ -18224,19 +18262,19 @@
|
|
|
18224
18262
|
/* eslint-disable no-console */
|
|
18225
18263
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
18226
18264
|
}
|
|
18227
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
18228
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18229
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18230
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18231
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
18265
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$p.progressStepperStep, variantStyle$2[variant], isCurrent && styles$p.modifiers.current, className), "aria-label": ariaLabel }, (isCurrent && { 'aria-current': 'step' }), props),
|
|
18266
|
+
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepConnector) },
|
|
18267
|
+
React__namespace.createElement("span", { className: css(styles$p.progressStepperStepIcon) }, _icon && _icon)),
|
|
18268
|
+
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepMain) },
|
|
18269
|
+
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}` })),
|
|
18232
18270
|
children,
|
|
18233
18271
|
popoverRender && popoverRender(stepRef)),
|
|
18234
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
18272
|
+
description && React__namespace.createElement("div", { className: css(styles$p.progressStepperStepDescription) }, description))));
|
|
18235
18273
|
};
|
|
18236
18274
|
ProgressStep.displayName = 'ProgressStep';
|
|
18237
18275
|
|
|
18238
18276
|
Promise.resolve().then(function () { return radio; });
|
|
18239
|
-
var styles$
|
|
18277
|
+
var styles$o = {
|
|
18240
18278
|
"modifiers": {
|
|
18241
18279
|
"standalone": "pf-m-standalone",
|
|
18242
18280
|
"disabled": "pf-m-disabled"
|
|
@@ -18270,16 +18308,16 @@
|
|
|
18270
18308
|
// eslint-disable-next-line no-console
|
|
18271
18309
|
console.error('Radio:', 'id is required to make input accessible');
|
|
18272
18310
|
}
|
|
18273
|
-
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
18311
|
+
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$o.radioInput), type: "radio", onChange: this.handleChange, "aria-invalid": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), getOUIAProps(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
18274
18312
|
let labelRendered = null;
|
|
18275
18313
|
if (label && isLabelWrapped) {
|
|
18276
|
-
labelRendered = React__namespace.createElement("span", { className: css(styles$
|
|
18314
|
+
labelRendered = React__namespace.createElement("span", { className: css(styles$o.radioLabel, isDisabled && styles$o.modifiers.disabled) }, label);
|
|
18277
18315
|
}
|
|
18278
18316
|
else if (label) {
|
|
18279
|
-
labelRendered = (React__namespace.createElement("label", { className: css(styles$
|
|
18317
|
+
labelRendered = (React__namespace.createElement("label", { className: css(styles$o.radioLabel, isDisabled && styles$o.modifiers.disabled), htmlFor: props.id }, label));
|
|
18280
18318
|
}
|
|
18281
|
-
const descRender = description ? React__namespace.createElement("span", { className: css(styles$
|
|
18282
|
-
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$
|
|
18319
|
+
const descRender = description ? React__namespace.createElement("span", { className: css(styles$o.radioDescription) }, description) : null;
|
|
18320
|
+
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$o.radioBody) }, body) : null;
|
|
18283
18321
|
const childrenRendered = isLabelBeforeButton ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
18284
18322
|
labelRendered,
|
|
18285
18323
|
inputRendered,
|
|
@@ -18289,7 +18327,7 @@
|
|
|
18289
18327
|
labelRendered,
|
|
18290
18328
|
descRender,
|
|
18291
18329
|
bodyRender));
|
|
18292
|
-
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$
|
|
18330
|
+
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$o.radio, className), htmlFor: props.id }, childrenRendered)) : (React__namespace.createElement("div", { className: css(styles$o.radio, !label && styles$o.modifiers.standalone, className) }, childrenRendered));
|
|
18293
18331
|
}
|
|
18294
18332
|
}
|
|
18295
18333
|
Radio.displayName = 'Radio';
|
|
@@ -18312,7 +18350,7 @@
|
|
|
18312
18350
|
const ArrowRightIcon = createIcon(ArrowRightIconConfig);
|
|
18313
18351
|
|
|
18314
18352
|
Promise.resolve().then(function () { return panel; });
|
|
18315
|
-
var styles$
|
|
18353
|
+
var styles$n = {
|
|
18316
18354
|
"modifiers": {
|
|
18317
18355
|
"bordered": "pf-m-bordered",
|
|
18318
18356
|
"raised": "pf-m-raised",
|
|
@@ -18327,32 +18365,32 @@
|
|
|
18327
18365
|
|
|
18328
18366
|
const PanelBase = (_a) => {
|
|
18329
18367
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
18330
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18368
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panel, variant === 'raised' && styles$n.modifiers.raised, variant === 'bordered' && styles$n.modifiers.bordered, isScrollable && styles$n.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
18331
18369
|
};
|
|
18332
18370
|
const Panel = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
18333
18371
|
Panel.displayName = 'Panel';
|
|
18334
18372
|
|
|
18335
18373
|
const PanelMain = (_a) => {
|
|
18336
18374
|
var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
|
|
18337
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18375
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
18338
18376
|
};
|
|
18339
18377
|
PanelMain.displayName = 'PanelMain';
|
|
18340
18378
|
|
|
18341
18379
|
const PanelMainBody = (_a) => {
|
|
18342
18380
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18343
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18381
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelMainBody, className) }, props), children));
|
|
18344
18382
|
};
|
|
18345
18383
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
18346
18384
|
|
|
18347
18385
|
const PanelHeader = (_a) => {
|
|
18348
18386
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18349
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18387
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelHeader, className) }, props), children));
|
|
18350
18388
|
};
|
|
18351
18389
|
PanelHeader.displayName = 'PanelHeader';
|
|
18352
18390
|
|
|
18353
18391
|
const PanelFooter = (_a) => {
|
|
18354
18392
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18355
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18393
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelFooter, className) }, props), children));
|
|
18356
18394
|
};
|
|
18357
18395
|
PanelFooter.displayName = 'PanelFooter';
|
|
18358
18396
|
|
|
@@ -18465,7 +18503,7 @@
|
|
|
18465
18503
|
AdvancedSearchMenu.displayName = 'SearchInput';
|
|
18466
18504
|
|
|
18467
18505
|
Promise.resolve().then(function () { return textInputGroup; });
|
|
18468
|
-
var styles$
|
|
18506
|
+
var styles$m = {
|
|
18469
18507
|
"button": "pf-c-button",
|
|
18470
18508
|
"chipGroup": "pf-c-chip-group",
|
|
18471
18509
|
"chipGroupList": "pf-c-chip-group__list",
|
|
@@ -18491,7 +18529,7 @@
|
|
|
18491
18529
|
var { children, className, isDisabled, isPlain, innerRef } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "isPlain", "innerRef"]);
|
|
18492
18530
|
const textInputGroupRef = innerRef || React__namespace.useRef(null);
|
|
18493
18531
|
return (React__namespace.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
18494
|
-
React__namespace.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$
|
|
18532
|
+
React__namespace.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$m.textInputGroup, isDisabled && styles$m.modifiers.disabled, isPlain && styles$m.modifiers.plain, className) }, props), children)));
|
|
18495
18533
|
};
|
|
18496
18534
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
18497
18535
|
|
|
@@ -18502,18 +18540,18 @@
|
|
|
18502
18540
|
const handleChange = (event) => {
|
|
18503
18541
|
onChange(event.currentTarget.value, event);
|
|
18504
18542
|
};
|
|
18505
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18543
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.textInputGroupMain, icon && styles$m.modifiers.icon, className) }, props),
|
|
18506
18544
|
children,
|
|
18507
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18508
|
-
hint && (React__namespace.createElement("input", { className: css(styles$
|
|
18509
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
18510
|
-
React__namespace.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css(styles$
|
|
18545
|
+
React__namespace.createElement("span", { className: css(styles$m.textInputGroupText) },
|
|
18546
|
+
hint && (React__namespace.createElement("input", { className: css(styles$m.textInputGroupTextInput, styles$m.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
18547
|
+
icon && React__namespace.createElement("span", { className: css(styles$m.textInputGroupIcon) }, icon),
|
|
18548
|
+
React__namespace.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css(styles$m.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
|
|
18511
18549
|
};
|
|
18512
18550
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
18513
18551
|
|
|
18514
18552
|
const TextInputGroupUtilities = (_a) => {
|
|
18515
18553
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
18516
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18554
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.textInputGroupUtilities, className) }, props), children));
|
|
18517
18555
|
};
|
|
18518
18556
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
18519
18557
|
|
|
@@ -18629,25 +18667,25 @@
|
|
|
18629
18667
|
|
|
18630
18668
|
const Sidebar = (_a) => {
|
|
18631
18669
|
var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground"]);
|
|
18632
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18633
|
-
React__namespace.createElement("div", { className: styles$
|
|
18670
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebar, hasGutter && styles$E.modifiers.gutter, hasNoBackground && styles$E.modifiers.noBackground, isPanelRight && styles$E.modifiers.panelRight, styles$E.modifiers[orientation], className) }, props),
|
|
18671
|
+
React__namespace.createElement("div", { className: styles$E.sidebarMain }, children)));
|
|
18634
18672
|
};
|
|
18635
18673
|
Sidebar.displayName = 'Sidebar';
|
|
18636
18674
|
|
|
18637
18675
|
const SidebarContent = (_a) => {
|
|
18638
18676
|
var { className, children, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "hasNoBackground"]);
|
|
18639
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18677
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebarContent, hasNoBackground && styles$E.modifiers.noBackground, className) }, props), children));
|
|
18640
18678
|
};
|
|
18641
18679
|
SidebarContent.displayName = 'SidebarContent';
|
|
18642
18680
|
|
|
18643
18681
|
const SidebarPanel = (_a) => {
|
|
18644
18682
|
var { className, children, variant = 'default', hasNoBackground, width } = _a, props = __rest$1(_a, ["className", "children", "variant", "hasNoBackground", "width"]);
|
|
18645
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18683
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebarPanel, variant !== 'default' && styles$E.modifiers[variant], hasNoBackground && styles$E.modifiers.noBackground, formatBreakpointMods(width, styles$E), className) }, props), children));
|
|
18646
18684
|
};
|
|
18647
18685
|
SidebarPanel.displayName = 'SidebarPanel';
|
|
18648
18686
|
|
|
18649
18687
|
Promise.resolve().then(function () { return simpleList; });
|
|
18650
|
-
var styles$
|
|
18688
|
+
var styles$l = {
|
|
18651
18689
|
"modifiers": {
|
|
18652
18690
|
"current": "pf-m-current"
|
|
18653
18691
|
},
|
|
@@ -18660,8 +18698,8 @@
|
|
|
18660
18698
|
|
|
18661
18699
|
const SimpleListGroup = (_a) => {
|
|
18662
18700
|
var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "titleClassName", "id"]);
|
|
18663
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
18664
|
-
React__namespace.createElement("h2", { id: id, className: css(styles$
|
|
18701
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$l.simpleListSection) }, props),
|
|
18702
|
+
React__namespace.createElement("h2", { id: id, className: css(styles$l.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
|
|
18665
18703
|
React__namespace.createElement("ul", { className: css(className), "aria-labelledby": id }, children)));
|
|
18666
18704
|
};
|
|
18667
18705
|
SimpleListGroup.displayName = 'SimpleListGroup';
|
|
@@ -18691,7 +18729,7 @@
|
|
|
18691
18729
|
updateCurrentRef: this.handleCurrentUpdate,
|
|
18692
18730
|
isControlled
|
|
18693
18731
|
} },
|
|
18694
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18732
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$l.simpleList, className) }, props),
|
|
18695
18733
|
isGrouped && children,
|
|
18696
18734
|
!isGrouped && React__namespace.createElement("ul", null, children))));
|
|
18697
18735
|
}
|
|
@@ -18724,7 +18762,7 @@
|
|
|
18724
18762
|
href
|
|
18725
18763
|
};
|
|
18726
18764
|
return (React__namespace.createElement("li", Object.assign({ className: css(className) }, props),
|
|
18727
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
18765
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$l.simpleListItemLink, isCurrentItem && styles$l.modifiers.current, componentClassName), onClick: (evt) => {
|
|
18728
18766
|
onClick(evt);
|
|
18729
18767
|
updateCurrentRef(this.ref, this.props);
|
|
18730
18768
|
}, ref: this.ref }, componentProps, additionalComponentProps), children)));
|
|
@@ -18745,7 +18783,7 @@
|
|
|
18745
18783
|
};
|
|
18746
18784
|
|
|
18747
18785
|
Promise.resolve().then(function () { return skeleton; });
|
|
18748
|
-
var styles$
|
|
18786
|
+
var styles$k = {
|
|
18749
18787
|
"modifiers": {
|
|
18750
18788
|
"circle": "pf-m-circle",
|
|
18751
18789
|
"square": "pf-m-square",
|
|
@@ -18781,9 +18819,9 @@
|
|
|
18781
18819
|
const Skeleton = (_a) => {
|
|
18782
18820
|
var { className, width, height, fontSize, shape, screenreaderText } = _a, props = __rest$1(_a, ["className", "width", "height", "fontSize", "shape", "screenreaderText"]);
|
|
18783
18821
|
const fontHeightClassName = fontSize
|
|
18784
|
-
? Object.values(styles$
|
|
18822
|
+
? Object.values(styles$k.modifiers).find(key => key === `pf-m-text-${fontSize}`)
|
|
18785
18823
|
: undefined;
|
|
18786
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
18824
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$k.skeleton, fontSize && fontHeightClassName, shape === 'circle' && styles$k.modifiers.circle, shape === 'square' && styles$k.modifiers.square, className) }, ((width || height) && {
|
|
18787
18825
|
style: Object.assign({ '--pf-c-skeleton--Width': width ? width : undefined, '--pf-c-skeleton--Height': height ? height : undefined }, props.style)
|
|
18788
18826
|
})),
|
|
18789
18827
|
React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenreaderText)));
|
|
@@ -18791,7 +18829,7 @@
|
|
|
18791
18829
|
Skeleton.displayName = 'Skeleton';
|
|
18792
18830
|
|
|
18793
18831
|
Promise.resolve().then(function () { return skipToContent; });
|
|
18794
|
-
var styles$
|
|
18832
|
+
var styles$j = {
|
|
18795
18833
|
"skipToContent": "pf-c-skip-to-content"
|
|
18796
18834
|
};
|
|
18797
18835
|
|
|
@@ -18808,7 +18846,7 @@
|
|
|
18808
18846
|
render() {
|
|
18809
18847
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18810
18848
|
const _a = this.props, { children, className, href, show, type } = _a, rest = __rest$1(_a, ["children", "className", "href", "show", "type"]);
|
|
18811
|
-
return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$
|
|
18849
|
+
return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$j.skipToContent, className), ref: this.componentRef, href: href }), children));
|
|
18812
18850
|
}
|
|
18813
18851
|
}
|
|
18814
18852
|
SkipToContent.displayName = 'SkipToContent';
|
|
@@ -18817,7 +18855,7 @@
|
|
|
18817
18855
|
};
|
|
18818
18856
|
|
|
18819
18857
|
Promise.resolve().then(function () { return slider; });
|
|
18820
|
-
var styles$
|
|
18858
|
+
var styles$i = {
|
|
18821
18859
|
"formControl": "pf-c-form-control",
|
|
18822
18860
|
"inputGroup": "pf-c-input-group",
|
|
18823
18861
|
"inputGroupText": "pf-c-input-group__text",
|
|
@@ -18842,9 +18880,9 @@
|
|
|
18842
18880
|
const SliderStep = (_a) => {
|
|
18843
18881
|
var { className, label, value, isTickHidden = false, isLabelHidden = false, isActive = false } = _a, props = __rest$1(_a, ["className", "label", "value", "isTickHidden", "isLabelHidden", "isActive"]);
|
|
18844
18882
|
const style = { '--pf-c-slider__step--Left': `${value}%` };
|
|
18845
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18846
|
-
!isTickHidden && React__namespace.createElement("div", { className: css(styles$
|
|
18847
|
-
!isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$
|
|
18883
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$i.sliderStep, isActive && styles$i.modifiers.active, className), style: style }, props),
|
|
18884
|
+
!isTickHidden && React__namespace.createElement("div", { className: css(styles$i.sliderStepTick) }),
|
|
18885
|
+
!isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$i.sliderStepLabel) }, label)));
|
|
18848
18886
|
};
|
|
18849
18887
|
SliderStep.displayName = 'SliderStep';
|
|
18850
18888
|
|
|
@@ -19030,7 +19068,7 @@
|
|
|
19030
19068
|
}
|
|
19031
19069
|
};
|
|
19032
19070
|
const displayInput = () => {
|
|
19033
|
-
const textInput = (React__namespace.createElement(TextInput, { className: css(styles$
|
|
19071
|
+
const textInput = (React__namespace.createElement(TextInput, { className: css(styles$i.formControl), isDisabled: isDisabled, type: "number", value: localInputValue, "aria-label": inputAriaLabel, onKeyDown: handleKeyPressOnInput, onChange: onChangeHandler, onClick: onInputFocus, onFocus: onInputFocus, onBlur: onBlur }));
|
|
19034
19072
|
if (inputLabel) {
|
|
19035
19073
|
return (React__namespace.createElement(InputGroup, null,
|
|
19036
19074
|
textInput,
|
|
@@ -19056,28 +19094,28 @@
|
|
|
19056
19094
|
}
|
|
19057
19095
|
return builtSteps;
|
|
19058
19096
|
};
|
|
19059
|
-
const thumbComponent = (React__namespace.createElement("div", { className: css(styles$
|
|
19060
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
19061
|
-
leftActions && React__namespace.createElement("div", { className: css(styles$
|
|
19062
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19063
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19064
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19065
|
-
customSteps && (React__namespace.createElement("div", { className: css(styles$
|
|
19097
|
+
const thumbComponent = (React__namespace.createElement("div", { className: css(styles$i.sliderThumb), ref: thumbRef, tabIndex: isDisabled ? -1 : 0, role: "slider", "aria-valuemin": customSteps ? customSteps[0].value : min, "aria-valuemax": customSteps ? customSteps[customSteps.length - 1].value : max, "aria-valuenow": localValue, "aria-valuetext": findAriaTextValue(), "aria-label": thumbAriaLabel, "aria-disabled": isDisabled, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, onMouseDown: !isDisabled ? handleMouseDown : null, onTouchStart: !isDisabled ? handleTouchStart : null, onKeyDown: !isDisabled ? handleThumbKeys : null, onClick: !isDisabled ? onThumbClick : null }));
|
|
19098
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$i.slider, className, isDisabled && styles$i.modifiers.disabled), style: Object.assign(Object.assign({}, style), inputStyle) }, props),
|
|
19099
|
+
leftActions && React__namespace.createElement("div", { className: css(styles$i.sliderActions) }, leftActions),
|
|
19100
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderMain) },
|
|
19101
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderRail), ref: sliderRailRef, onClick: !isDisabled ? onSliderRailClick : null },
|
|
19102
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderRailTrack) })),
|
|
19103
|
+
customSteps && (React__namespace.createElement("div", { className: css(styles$i.sliderSteps), "aria-hidden": "true" }, customSteps.map(stepObj => {
|
|
19066
19104
|
const minValue = customSteps[0].value;
|
|
19067
19105
|
const maxValue = customSteps[customSteps.length - 1].value;
|
|
19068
19106
|
const stepValue = getStepValue(stepObj.value, minValue, maxValue);
|
|
19069
19107
|
return (React__namespace.createElement(SliderStep, { key: stepObj.value, value: stepValue, label: stepObj.label, isLabelHidden: stepObj.isLabelHidden, isActive: stepObj.value <= localValue }));
|
|
19070
19108
|
}))),
|
|
19071
|
-
!customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$
|
|
19109
|
+
!customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$i.sliderSteps), "aria-hidden": "true" }, buildSteps())),
|
|
19072
19110
|
hasTooltipOverThumb ? (React__namespace.createElement(Tooltip, { entryDelay: 0, content: findAriaTextValue() }, thumbComponent)) : (thumbComponent),
|
|
19073
|
-
isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$
|
|
19074
|
-
isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$
|
|
19075
|
-
rightActions && React__namespace.createElement("div", { className: css(styles$
|
|
19111
|
+
isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$i.sliderValue, styles$i.modifiers.floating) }, displayInput()))),
|
|
19112
|
+
isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$i.sliderValue) }, displayInput()),
|
|
19113
|
+
rightActions && React__namespace.createElement("div", { className: css(styles$i.sliderActions) }, rightActions)));
|
|
19076
19114
|
};
|
|
19077
19115
|
Slider.displayName = 'Slider';
|
|
19078
19116
|
|
|
19079
19117
|
Promise.resolve().then(function () { return _switch; });
|
|
19080
|
-
var styles$
|
|
19118
|
+
var styles$h = {
|
|
19081
19119
|
"modifiers": {
|
|
19082
19120
|
"reverse": "pf-m-reverse",
|
|
19083
19121
|
"off": "pf-m-off",
|
|
@@ -19108,14 +19146,14 @@
|
|
|
19108
19146
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19109
19147
|
id, className, label, labelOff, isChecked, defaultChecked, hasCheckIcon, isDisabled, onChange, isReversed, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["id", "className", "label", "labelOff", "isChecked", "defaultChecked", "hasCheckIcon", "isDisabled", "onChange", "isReversed", "ouiaId", "ouiaSafe"]);
|
|
19110
19148
|
const isAriaLabelledBy = props['aria-label'] === '';
|
|
19111
|
-
return (React__namespace.createElement("label", Object.assign({ className: css(styles$
|
|
19112
|
-
React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$
|
|
19149
|
+
return (React__namespace.createElement("label", Object.assign({ className: css(styles$h.switch, isReversed && styles$h.modifiers.reverse, className), htmlFor: this.id }, getOUIAProps(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),
|
|
19150
|
+
React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$h.switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event) }, (defaultChecked !== undefined ? { defaultChecked } : { checked: isChecked }), { disabled: isDisabled, "aria-labelledby": !isAriaLabelledBy ? null : `${this.id}-${isChecked !== true ? 'off' : 'on'}` }, props)),
|
|
19113
19151
|
label !== undefined ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
19114
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19152
|
+
React__namespace.createElement("span", { className: css(styles$h.switchToggle) }, hasCheckIcon && (React__namespace.createElement("span", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19115
19153
|
React__namespace.createElement(CheckIcon, { noVerticalAlign: true })))),
|
|
19116
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19117
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19118
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19154
|
+
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
|
|
19155
|
+
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (React__namespace.createElement("span", { className: css(styles$h.switchToggle) },
|
|
19156
|
+
React__namespace.createElement("div", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19119
19157
|
React__namespace.createElement(CheckIcon, { noVerticalAlign: true }))))));
|
|
19120
19158
|
}
|
|
19121
19159
|
}
|
|
@@ -19129,7 +19167,7 @@
|
|
|
19129
19167
|
};
|
|
19130
19168
|
|
|
19131
19169
|
Promise.resolve().then(function () { return tabs; });
|
|
19132
|
-
var styles$
|
|
19170
|
+
var styles$g = {
|
|
19133
19171
|
"button": "pf-c-button",
|
|
19134
19172
|
"modifiers": {
|
|
19135
19173
|
"fill": "pf-m-fill",
|
|
@@ -19255,12 +19293,12 @@
|
|
|
19255
19293
|
return null;
|
|
19256
19294
|
}
|
|
19257
19295
|
};
|
|
19258
|
-
const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$
|
|
19259
|
-
return (React__namespace.createElement("li", { className: css(styles$
|
|
19296
|
+
const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$g.tabsLink, isDisabled && href && styles$g.modifiers.disabled, isAriaDisabled && styles$g.modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, "aria-disabled": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, "aria-controls": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href, role: "tab", "aria-selected": eventKey === localActiveKey }, props), title));
|
|
19297
|
+
return (React__namespace.createElement("li", { className: css(styles$g.tabsItem, eventKey === localActiveKey && styles$g.modifiers.current, handleTabClose && styles$g.modifiers.action, handleTabClose && (isDisabled || isAriaDisabled) && styles$g.modifiers.disabled, childClassName), role: "presentation" },
|
|
19260
19298
|
tooltip ? React__namespace.createElement(Tooltip, Object.assign({}, tooltip.props), tabButton) : tabButton,
|
|
19261
|
-
handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$
|
|
19299
|
+
handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsItemClose) },
|
|
19262
19300
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeButtonAriaLabel || 'Close tab', onClick: (event) => handleTabClose(event, eventKey, tabContentRef), isDisabled: isCloseDisabled },
|
|
19263
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19301
|
+
React__namespace.createElement("span", { className: css(styles$g.tabsItemCloseIcon) },
|
|
19264
19302
|
React__namespace.createElement(TimesIcon, null)))))));
|
|
19265
19303
|
};
|
|
19266
19304
|
const Tab = React__namespace.forwardRef((props, ref) => React__namespace.createElement(TabBase, Object.assign({ innerRef: ref }, props)));
|
|
@@ -19278,7 +19316,7 @@
|
|
|
19278
19316
|
const PlusIcon = createIcon(PlusIconConfig);
|
|
19279
19317
|
|
|
19280
19318
|
Promise.resolve().then(function () { return tabContent; });
|
|
19281
|
-
var styles$
|
|
19319
|
+
var styles$f = {
|
|
19282
19320
|
"modifiers": {
|
|
19283
19321
|
"light_300": "pf-m-light-300",
|
|
19284
19322
|
"padding": "pf-m-padding"
|
|
@@ -19289,7 +19327,7 @@
|
|
|
19289
19327
|
|
|
19290
19328
|
const variantStyle$1 = {
|
|
19291
19329
|
default: '',
|
|
19292
|
-
light300: styles$
|
|
19330
|
+
light300: styles$f.modifiers.light_300
|
|
19293
19331
|
};
|
|
19294
19332
|
const TabContentBase = (_a) => {
|
|
19295
19333
|
var { id, activeKey, 'aria-label': ariaLabel, child, children, className,
|
|
@@ -19313,7 +19351,7 @@
|
|
|
19313
19351
|
|
|
19314
19352
|
const TabTitleText = (_a) => {
|
|
19315
19353
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
19316
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
19354
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$g.tabsItemText, className) }, props), children));
|
|
19317
19355
|
};
|
|
19318
19356
|
TabTitleText.displayName = 'TabTitleText';
|
|
19319
19357
|
|
|
@@ -19362,12 +19400,12 @@
|
|
|
19362
19400
|
}
|
|
19363
19401
|
}, 0);
|
|
19364
19402
|
};
|
|
19365
|
-
const overflowTab = (React__default["default"].createElement("li", Object.assign({ className: css(styles$
|
|
19366
|
-
React__default["default"].createElement("button", { className: css(styles$
|
|
19403
|
+
const overflowTab = (React__default["default"].createElement("li", Object.assign({ className: css(styles$g.tabsItem, 'pf-m-overflow', selectedTab && styles$g.modifiers.current, className), role: "presentation", ref: overflowLIRef }, props),
|
|
19404
|
+
React__default["default"].createElement("button", { className: css(styles$g.tabsLink, isExpanded && styles$g.modifiers.expanded), onClick: () => toggleMenu(), "aria-label": toggleAriaLabel, "aria-haspopup": "menu", "aria-expanded": isExpanded, role: "tab", ref: overflowTabRef },
|
|
19367
19405
|
React__default["default"].createElement(TabTitleText, null,
|
|
19368
19406
|
tabTitle,
|
|
19369
19407
|
showTabCount && tabTitle === defaultTitleText && ` (${overflowingTabs.length})`),
|
|
19370
|
-
React__default["default"].createElement("span", { className: styles$
|
|
19408
|
+
React__default["default"].createElement("span", { className: styles$g.tabsLinkToggleIcon },
|
|
19371
19409
|
React__default["default"].createElement(AngleRightIcon, null)))));
|
|
19372
19410
|
const tabs = overflowingTabs.map(tab => (React__default["default"].createElement(MenuItem, { key: tab.eventKey, itemId: tab.eventKey, isSelected: localActiveKey === tab.eventKey }, tab.title)));
|
|
19373
19411
|
const onTabSelect = (event, key) => {
|
|
@@ -19389,7 +19427,7 @@
|
|
|
19389
19427
|
})(exports.TabsComponent || (exports.TabsComponent = {}));
|
|
19390
19428
|
const variantStyle = {
|
|
19391
19429
|
default: '',
|
|
19392
|
-
light300: styles$
|
|
19430
|
+
light300: styles$g.modifiers.colorSchemeLight_300
|
|
19393
19431
|
};
|
|
19394
19432
|
class Tabs extends React__namespace.Component {
|
|
19395
19433
|
constructor(props) {
|
|
@@ -19581,21 +19619,21 @@
|
|
|
19581
19619
|
handleTabClick: (...args) => this.handleTabClick(...args),
|
|
19582
19620
|
handleTabClose: onClose
|
|
19583
19621
|
} },
|
|
19584
|
-
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$
|
|
19585
|
-
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$
|
|
19586
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19622
|
+
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$g.tabs, isFilled && styles$g.modifiers.fill, isSecondary && styles$g.modifiers.secondary, isVertical && styles$g.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$g), isVertical && expandable && isExpandedLocal && styles$g.modifiers.expanded, isBox && styles$g.modifiers.box, showScrollButtons && !isVertical && styles$g.modifiers.scrollable, usePageInsets && styles$g.modifiers.pageInsets, !hasBorderBottom && styles$g.modifiers.noBorderBottom, hasSecondaryBorderBottom && styles$g.modifiers.borderBottom, formatBreakpointMods(inset, styles$g), variantStyle[variant], hasOverflowTab && styles$g.modifiers.overflow, className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
19623
|
+
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$g.tabsToggle) },
|
|
19624
|
+
React__namespace.createElement("div", { className: css(styles$g.tabsToggleButton) },
|
|
19587
19625
|
React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
|
|
19588
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19626
|
+
React__namespace.createElement("span", { className: css(styles$g.tabsToggleIcon) },
|
|
19589
19627
|
React__namespace.createElement(AngleRightIcon, { "arian-hidden": "true" })),
|
|
19590
19628
|
toggleText && (React__namespace.createElement("span", { className: css('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),
|
|
19591
|
-
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
19629
|
+
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
|
|
19592
19630
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
19593
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
19631
|
+
React__namespace.createElement("ul", { className: css(styles$g.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons, role: "tablist" },
|
|
19594
19632
|
isOverflowHorizontal ? filteredChildrenWithoutOverflow : filteredChildren,
|
|
19595
19633
|
hasOverflowTab && React__namespace.createElement(OverflowTab, Object.assign({ overflowingTabs: overflowingTabProps }, overflowObjectProps))),
|
|
19596
|
-
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
19634
|
+
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
|
|
19597
19635
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
19598
|
-
onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$
|
|
19636
|
+
onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsAdd) },
|
|
19599
19637
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": addButtonAriaLabel || 'Add tab', onClick: onAdd },
|
|
19600
19638
|
React__namespace.createElement(PlusIcon, null))))),
|
|
19601
19639
|
filteredChildren
|
|
@@ -19627,18 +19665,18 @@
|
|
|
19627
19665
|
|
|
19628
19666
|
const TabContentBody = (_a) => {
|
|
19629
19667
|
var { children, className, hasPadding } = _a, props = __rest$1(_a, ["children", "className", "hasPadding"]);
|
|
19630
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
19668
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$f.tabContentBody, hasPadding && styles$f.modifiers.padding, className) }, props), children));
|
|
19631
19669
|
};
|
|
19632
19670
|
TabContentBody.displayName = 'TabContentBody';
|
|
19633
19671
|
|
|
19634
19672
|
const TabTitleIcon = (_a) => {
|
|
19635
19673
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
19636
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
19674
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$g.tabsItemIcon, className) }, props), children));
|
|
19637
19675
|
};
|
|
19638
19676
|
TabTitleIcon.displayName = 'TabTitleIcon';
|
|
19639
19677
|
|
|
19640
19678
|
Promise.resolve().then(function () { return tile; });
|
|
19641
|
-
var styles$
|
|
19679
|
+
var styles$e = {
|
|
19642
19680
|
"modifiers": {
|
|
19643
19681
|
"selected": "pf-m-selected",
|
|
19644
19682
|
"disabled": "pf-m-disabled",
|
|
@@ -19655,11 +19693,11 @@
|
|
|
19655
19693
|
|
|
19656
19694
|
const Tile = (_a) => {
|
|
19657
19695
|
var { children, title, icon, isStacked, isSelected, isDisabled, isDisplayLarge, className } = _a, props = __rest$1(_a, ["children", "title", "icon", "isStacked", "isSelected", "isDisabled", "isDisplayLarge", "className"]);
|
|
19658
|
-
return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$
|
|
19659
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19660
|
-
icon && React__namespace.createElement("div", { className: css(styles$
|
|
19661
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19662
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
19696
|
+
return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$e.tile, isSelected && styles$e.modifiers.selected, isDisabled && styles$e.modifiers.disabled, isDisplayLarge && styles$e.modifiers.displayLg, className), tabIndex: 0 }, props),
|
|
19697
|
+
React__namespace.createElement("div", { className: css(styles$e.tileHeader, isStacked && styles$e.modifiers.stacked) },
|
|
19698
|
+
icon && React__namespace.createElement("div", { className: css(styles$e.tileIcon) }, icon),
|
|
19699
|
+
React__namespace.createElement("div", { className: css(styles$e.tileTitle) }, title)),
|
|
19700
|
+
children && React__namespace.createElement("div", { className: css(styles$e.tileBody) }, children)));
|
|
19663
19701
|
};
|
|
19664
19702
|
Tile.displayName = 'Tile';
|
|
19665
19703
|
|
|
@@ -20118,12 +20156,23 @@
|
|
|
20118
20156
|
React__namespace.createElement(MenuContent, { maxMenuHeight: "200px" },
|
|
20119
20157
|
React__namespace.createElement(MenuList, { "aria-label": ariaLabel }, options.map((option, index) => (React__namespace.createElement(MenuItem, { onClick: this.onSelect, key: option, id: `${randomId}-option-${index}` }, option)))))));
|
|
20120
20158
|
const textInput = (React__namespace.createElement(TextInput, Object.assign({ "aria-haspopup": "menu", className: css(formStyles.formControl), id: `${randomId}-input`, "aria-label": ariaLabel, validated: isInvalid ? 'error' : 'default', placeholder: placeholder, value: timeState || '', type: "text", iconVariant: "clock", onClick: this.onInputClick, onChange: this.onInputChange, onBlur: this.onBlur, autoComplete: "off", isDisabled: isDisabled, ref: this.inputRef }, inputProps)));
|
|
20159
|
+
let calculatedAppendTo;
|
|
20160
|
+
switch (menuAppendTo) {
|
|
20161
|
+
case 'inline':
|
|
20162
|
+
calculatedAppendTo = () => this.toggleRef.current;
|
|
20163
|
+
break;
|
|
20164
|
+
case 'parent':
|
|
20165
|
+
calculatedAppendTo = getParentElement;
|
|
20166
|
+
break;
|
|
20167
|
+
default:
|
|
20168
|
+
calculatedAppendTo = menuAppendTo;
|
|
20169
|
+
}
|
|
20121
20170
|
return (React__namespace.createElement("div", { ref: this.baseComponentRef, className: css(datePickerStyles.datePicker, className) },
|
|
20122
20171
|
React__namespace.createElement("div", Object.assign({ className: css(datePickerStyles.datePickerInput), style: style }, props),
|
|
20123
20172
|
React__namespace.createElement(InputGroup, null,
|
|
20124
20173
|
React__namespace.createElement("div", { id: randomId },
|
|
20125
|
-
React__namespace.createElement("div", { ref: this.toggleRef, style: { paddingLeft: '0' } },
|
|
20126
|
-
|
|
20174
|
+
React__namespace.createElement("div", { ref: this.toggleRef, style: { paddingLeft: '0' } },
|
|
20175
|
+
React__namespace.createElement(Popper, { appendTo: calculatedAppendTo, trigger: textInput, popper: menuContainer, isVisible: isTimeOptionsOpen })))),
|
|
20127
20176
|
isInvalid && (React__namespace.createElement("div", { className: css(datePickerStyles.datePickerHelperText, datePickerStyles.modifiers.error) }, !isValidFormat ? invalidFormatErrorMessage : invalidMinMaxErrorMessage)))));
|
|
20128
20177
|
}
|
|
20129
20178
|
}
|
|
@@ -20144,9 +20193,46 @@
|
|
|
20144
20193
|
inputProps: {},
|
|
20145
20194
|
minTime: '',
|
|
20146
20195
|
maxTime: '',
|
|
20196
|
+
isOpen: false,
|
|
20147
20197
|
setIsOpen: () => { }
|
|
20148
20198
|
};
|
|
20149
20199
|
|
|
20200
|
+
Promise.resolve().then(function () { return timestamp; });
|
|
20201
|
+
var styles$d = {
|
|
20202
|
+
"modifiers": {
|
|
20203
|
+
"helpText": "pf-m-help-text"
|
|
20204
|
+
},
|
|
20205
|
+
"timestamp": "pf-c-timestamp"
|
|
20206
|
+
};
|
|
20207
|
+
|
|
20208
|
+
exports.TimestampFormat = void 0;
|
|
20209
|
+
(function (TimestampFormat) {
|
|
20210
|
+
TimestampFormat["full"] = "full";
|
|
20211
|
+
TimestampFormat["long"] = "long";
|
|
20212
|
+
TimestampFormat["medium"] = "medium";
|
|
20213
|
+
TimestampFormat["short"] = "short";
|
|
20214
|
+
})(exports.TimestampFormat || (exports.TimestampFormat = {}));
|
|
20215
|
+
exports.TimestampTooltipVariant = void 0;
|
|
20216
|
+
(function (TimestampTooltipVariant) {
|
|
20217
|
+
TimestampTooltipVariant["default"] = "default";
|
|
20218
|
+
TimestampTooltipVariant["custom"] = "custom";
|
|
20219
|
+
})(exports.TimestampTooltipVariant || (exports.TimestampTooltipVariant = {}));
|
|
20220
|
+
const Timestamp = (_a) => {
|
|
20221
|
+
var { children, className, customFormat, date: dateProp = new Date(), dateFormat, displaySuffix = '', is12Hour, locale, timeFormat, tooltip } = _a, props = __rest$1(_a, ["children", "className", "customFormat", "date", "dateFormat", "displaySuffix", "is12Hour", "locale", "timeFormat", "tooltip"]);
|
|
20222
|
+
const hasTimeFormat = timeFormat && !customFormat;
|
|
20223
|
+
const formatOptions = Object.assign(Object.assign(Object.assign({}, (dateFormat && !customFormat && { dateStyle: dateFormat })), (customFormat && Object.assign({}, customFormat))), (is12Hour !== undefined && { hour12: is12Hour }));
|
|
20224
|
+
const dateAsLocaleString = new Date(dateProp).toLocaleString(locale, Object.assign(Object.assign({}, formatOptions), (hasTimeFormat && { timeStyle: timeFormat })));
|
|
20225
|
+
const defaultDisplay = `${dateAsLocaleString}${displaySuffix ? ' ' + displaySuffix : ''}`;
|
|
20226
|
+
const utcTimeFormat = timeFormat !== 'short' ? 'medium' : 'short';
|
|
20227
|
+
const convertToUTCString = (date) => new Date(date).toUTCString().slice(0, -3);
|
|
20228
|
+
const utcDateString = new Date(convertToUTCString(dateProp)).toLocaleString(locale, Object.assign(Object.assign({}, formatOptions), (hasTimeFormat && { timeStyle: utcTimeFormat })));
|
|
20229
|
+
const defaultTooltipContent = `${utcDateString}${(tooltip === null || tooltip === void 0 ? void 0 : tooltip.suffix) ? ' ' + tooltip.suffix : ' UTC'}`;
|
|
20230
|
+
const timestamp = (React__namespace.createElement("span", Object.assign({ className: css(styles$d.timestamp, tooltip && styles$d.modifiers.helpText, className) }, (tooltip && { tabIndex: 0 }), props),
|
|
20231
|
+
React__namespace.createElement("time", { className: "pf-c-timestamp__text", dateTime: props.dateTime || new Date(dateProp).toISOString() }, !children ? defaultDisplay : children)));
|
|
20232
|
+
return tooltip ? (React__namespace.createElement(Tooltip, Object.assign({ content: tooltip.variant === exports.TimestampTooltipVariant.default ? defaultTooltipContent : tooltip.content }, tooltip.tooltipProps), timestamp)) : (timestamp);
|
|
20233
|
+
};
|
|
20234
|
+
Timestamp.displayName = 'Timestamp';
|
|
20235
|
+
|
|
20150
20236
|
Promise.resolve().then(function () { return toggleGroup; });
|
|
20151
20237
|
var styles$c = {
|
|
20152
20238
|
"modifiers": {
|
|
@@ -20710,7 +20796,7 @@
|
|
|
20710
20796
|
}
|
|
20711
20797
|
};
|
|
20712
20798
|
const NumberInput = (_a) => {
|
|
20713
|
-
var { value = 0, className, widthChars, isDisabled = false, onMinus = () => { }, onChange, onBlur, onPlus = () => { }, unit, unitPosition = 'after', min, max, inputName, inputAriaLabel = 'Input', minusBtnAriaLabel = 'Minus', plusBtnAriaLabel = 'Plus', inputProps, minusBtnProps, plusBtnProps } = _a, props = __rest$1(_a, ["value", "className", "widthChars", "isDisabled", "onMinus", "onChange", "onBlur", "onPlus", "unit", "unitPosition", "min", "max", "inputName", "inputAriaLabel", "minusBtnAriaLabel", "plusBtnAriaLabel", "inputProps", "minusBtnProps", "plusBtnProps"]);
|
|
20799
|
+
var { value = 0, className, widthChars, isDisabled = false, validated = exports.ValidatedOptions.default, onMinus = () => { }, onChange, onBlur, onPlus = () => { }, unit, unitPosition = 'after', min, max, inputName, inputAriaLabel = 'Input', minusBtnAriaLabel = 'Minus', plusBtnAriaLabel = 'Plus', inputProps, minusBtnProps, plusBtnProps } = _a, props = __rest$1(_a, ["value", "className", "widthChars", "isDisabled", "validated", "onMinus", "onChange", "onBlur", "onPlus", "unit", "unitPosition", "min", "max", "inputName", "inputAriaLabel", "minusBtnAriaLabel", "plusBtnAriaLabel", "inputProps", "minusBtnProps", "plusBtnProps"]);
|
|
20714
20800
|
const numberInputUnit = React__namespace.createElement("div", { className: css(styles$a.numberInputUnit) }, unit);
|
|
20715
20801
|
const keyDownHandler = inputProps && inputProps.onKeyDown ? inputProps.onKeyDown : defaultKeyDownHandler({ inputName, onMinus, onPlus });
|
|
20716
20802
|
const handleBlur = (event) => {
|
|
@@ -20722,7 +20808,7 @@
|
|
|
20722
20808
|
onBlur(event);
|
|
20723
20809
|
}
|
|
20724
20810
|
};
|
|
20725
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$a.numberInput, className) }, (widthChars && {
|
|
20811
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$a.numberInput, validated !== 'default' && styles$a.modifiers.status, className) }, (widthChars && {
|
|
20726
20812
|
style: Object.assign({ '--pf-c-number-input--c-form-control--width-chars': widthChars }, props.style)
|
|
20727
20813
|
}), props),
|
|
20728
20814
|
unit && unitPosition === 'before' && numberInputUnit,
|
|
@@ -20730,7 +20816,7 @@
|
|
|
20730
20816
|
React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": minusBtnAriaLabel, isDisabled: isDisabled || value <= min, onClick: evt => onMinus(evt, inputName) }, minusBtnProps),
|
|
20731
20817
|
React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
|
|
20732
20818
|
React__namespace.createElement(MinusIcon, { "aria-hidden": "true" }))),
|
|
20733
|
-
React__namespace.createElement(
|
|
20819
|
+
React__namespace.createElement(TextInput, Object.assign({ type: "number", value: value, name: inputName, "aria-label": inputAriaLabel }, (isDisabled && { isDisabled }), (onChange && { onChange: (value, event) => onChange(event) }), { onBlur: handleBlur }, (!onChange && { isReadOnly: true }), { onKeyDown: keyDownHandler, validated: validated }, inputProps)),
|
|
20734
20820
|
React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": plusBtnAriaLabel, isDisabled: isDisabled || value >= max, onClick: evt => onPlus(evt, inputName) }, plusBtnProps),
|
|
20735
20821
|
React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
|
|
20736
20822
|
React__namespace.createElement(PlusIcon, { "aria-hidden": "true" })))),
|
|
@@ -21813,7 +21899,7 @@
|
|
|
21813
21899
|
const Bullseye = (_a) => {
|
|
21814
21900
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
21815
21901
|
const Component = component;
|
|
21816
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
21902
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1h.bullseye, className) }, props), children));
|
|
21817
21903
|
};
|
|
21818
21904
|
Bullseye.displayName = 'Bullseye';
|
|
21819
21905
|
|
|
@@ -22986,6 +23072,10 @@
|
|
|
22986
23072
|
__proto__: null
|
|
22987
23073
|
});
|
|
22988
23074
|
|
|
23075
|
+
var timestamp = /*#__PURE__*/Object.freeze({
|
|
23076
|
+
__proto__: null
|
|
23077
|
+
});
|
|
23078
|
+
|
|
22989
23079
|
var toggleGroup = /*#__PURE__*/Object.freeze({
|
|
22990
23080
|
__proto__: null
|
|
22991
23081
|
});
|
|
@@ -23353,6 +23443,7 @@
|
|
|
23353
23443
|
exports.TextListItem = TextListItem;
|
|
23354
23444
|
exports.Tile = Tile;
|
|
23355
23445
|
exports.TimePicker = TimePicker;
|
|
23446
|
+
exports.Timestamp = Timestamp;
|
|
23356
23447
|
exports.Title = Title;
|
|
23357
23448
|
exports.ToggleGroup = ToggleGroup;
|
|
23358
23449
|
exports.ToggleGroupItem = ToggleGroupItem;
|