@patternfly/react-core 4.224.10 → 4.224.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/esm/components/DragDrop/DragDrop.d.ts +1 -1
- package/dist/esm/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.d.ts +7 -0
- package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +9 -4
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/js/components/DragDrop/DragDrop.d.ts +1 -1
- package/dist/js/components/DragDrop/DragDrop.d.ts.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.d.ts +7 -0
- package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/js/components/SearchInput/SearchInput.js +9 -4
- package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/umd/react-core.css +415 -617
- package/dist/umd/react-core.js +683 -705
- package/dist/umd/react-core.min.css +103 -305
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +5 -5
- package/src/components/Accordion/__tests__/Accordion.test.tsx +134 -104
- package/src/components/Accordion/__tests__/AccordionContent.test.tsx +180 -0
- package/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx +33 -0
- package/src/components/Accordion/__tests__/AccordionItem.test.tsx +18 -0
- package/src/components/Accordion/__tests__/AccordionToggle.test.tsx +164 -0
- package/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +1 -214
- package/src/components/Accordion/__tests__/__snapshots__/AccordionContent.test.tsx.snap +17 -0
- package/src/components/Accordion/__tests__/__snapshots__/AccordionExpandedContentBody.test.tsx.snap +19 -0
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.test.tsx.snap +7 -0
- package/src/components/Accordion/__tests__/__snapshots__/AccordionToggle.test.tsx.snap +25 -0
- package/src/components/ActionList/__tests__/ActionList.test.tsx +46 -11
- package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +34 -7
- package/src/components/ActionList/__tests__/ActionListItem.test.tsx +34 -7
- package/src/components/ActionList/__tests__/__snapshots__/ActionList.test.tsx.snap +1 -11
- package/src/components/ActionList/__tests__/__snapshots__/ActionListGroup.test.tsx.snap +1 -1
- package/src/components/ActionList/__tests__/__snapshots__/ActionListItem.test.tsx.snap +1 -1
- package/src/components/DragDrop/DragDrop.tsx +1 -1
- package/src/components/Hint/__tests__/Hint.test.tsx +63 -10
- package/src/components/Hint/__tests__/HintBody.test.tsx +47 -0
- package/src/components/Hint/__tests__/HintFooter.test.tsx +47 -0
- package/src/components/Hint/__tests__/HintTitle.test.tsx +47 -0
- package/src/components/Hint/__tests__/__snapshots__/Hint.test.tsx.snap +1 -16
- package/src/components/Hint/__tests__/__snapshots__/HintBody.test.tsx.snap +13 -0
- package/src/components/Hint/__tests__/__snapshots__/HintFooter.test.tsx.snap +13 -0
- package/src/components/Hint/__tests__/__snapshots__/HintTitle.test.tsx.snap +13 -0
- package/src/components/SearchInput/SearchInput.tsx +32 -5
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +37 -0
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +193 -4
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$1h = {
|
|
100
100
|
"backdrop": "pf-c-backdrop",
|
|
101
101
|
"backdropOpen": "pf-c-backdrop__open"
|
|
102
102
|
};
|
|
@@ -4092,12 +4092,12 @@
|
|
|
4092
4092
|
}
|
|
4093
4093
|
|
|
4094
4094
|
Promise.resolve().then(function () { return bullseye; });
|
|
4095
|
-
var styles$
|
|
4095
|
+
var styles$1g = {
|
|
4096
4096
|
"bullseye": "pf-l-bullseye"
|
|
4097
4097
|
};
|
|
4098
4098
|
|
|
4099
4099
|
Promise.resolve().then(function () { return aboutModalBox; });
|
|
4100
|
-
var styles$
|
|
4100
|
+
var styles$1f = {
|
|
4101
4101
|
"aboutModalBox": "pf-c-about-modal-box",
|
|
4102
4102
|
"aboutModalBoxBrand": "pf-c-about-modal-box__brand",
|
|
4103
4103
|
"aboutModalBoxBrandImage": "pf-c-about-modal-box__brand-image",
|
|
@@ -4115,7 +4115,7 @@
|
|
|
4115
4115
|
};
|
|
4116
4116
|
|
|
4117
4117
|
Promise.resolve().then(function () { return content; });
|
|
4118
|
-
var styles$
|
|
4118
|
+
var styles$1e = {
|
|
4119
4119
|
"content": "pf-c-content",
|
|
4120
4120
|
"modifiers": {
|
|
4121
4121
|
"visited": "pf-m-visited",
|
|
@@ -4125,14 +4125,14 @@
|
|
|
4125
4125
|
|
|
4126
4126
|
const AboutModalBoxContent = (_a) => {
|
|
4127
4127
|
var { children, className = '', trademark, id, noAboutModalBoxContentContainer = false } = _a, props = __rest$1(_a, ["children", "className", "trademark", "id", "noAboutModalBoxContentContainer"]);
|
|
4128
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4129
|
-
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$
|
|
4130
|
-
React__namespace.createElement("p", { className: css(styles$
|
|
4128
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1f.aboutModalBoxContent, className), id: id }, props),
|
|
4129
|
+
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$1e.content) }, children)),
|
|
4130
|
+
React__namespace.createElement("p", { className: css(styles$1f.aboutModalBoxStrapline) }, trademark)));
|
|
4131
4131
|
};
|
|
4132
4132
|
AboutModalBoxContent.displayName = 'AboutModalBoxContent';
|
|
4133
4133
|
|
|
4134
4134
|
Promise.resolve().then(function () { return title; });
|
|
4135
|
-
var styles$
|
|
4135
|
+
var styles$1d = {
|
|
4136
4136
|
"modifiers": {
|
|
4137
4137
|
"4xl": "pf-m-4xl",
|
|
4138
4138
|
"3xl": "pf-m-3xl",
|
|
@@ -4166,13 +4166,13 @@
|
|
|
4166
4166
|
const Title = (_a) => {
|
|
4167
4167
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4168
4168
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4169
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$
|
|
4169
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$1d.title, size && styles$1d.modifiers[size], className) }), children));
|
|
4170
4170
|
};
|
|
4171
4171
|
Title.displayName = 'Title';
|
|
4172
4172
|
|
|
4173
4173
|
const AboutModalBoxHeader = (_a) => {
|
|
4174
4174
|
var { className = '', productName = '', id } = _a, props = __rest$1(_a, ["className", "productName", "id"]);
|
|
4175
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4175
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1f.aboutModalBoxHeader, className) }, props),
|
|
4176
4176
|
React__namespace.createElement(Title, { headingLevel: "h1", size: "4xl", id: id }, productName)));
|
|
4177
4177
|
};
|
|
4178
4178
|
AboutModalBoxHeader.displayName = 'AboutModalBoxHeader';
|
|
@@ -4190,14 +4190,14 @@
|
|
|
4190
4190
|
/* eslint-disable camelcase */
|
|
4191
4191
|
backgroundImageSrc !== ''
|
|
4192
4192
|
? { [c_about_modal_box__hero_sm_BackgroundImage$1.name]: `url(${backgroundImageSrc})` }
|
|
4193
|
-
: {}, className: css(styles$
|
|
4193
|
+
: {}, className: css(styles$1f.aboutModalBoxHero, className) }, props)));
|
|
4194
4194
|
};
|
|
4195
4195
|
AboutModalBoxHero.displayName = 'AboutModalBoxHero';
|
|
4196
4196
|
|
|
4197
4197
|
const AboutModalBoxBrand = (_a) => {
|
|
4198
4198
|
var { className = '', src = '', alt } = _a, props = __rest$1(_a, ["className", "src", "alt"]);
|
|
4199
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4200
|
-
React__namespace.createElement("img", { className: css(styles$
|
|
4199
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1f.aboutModalBoxBrand, className) }, props),
|
|
4200
|
+
React__namespace.createElement("img", { className: css(styles$1f.aboutModalBoxBrandImage), src: src, alt: alt })));
|
|
4201
4201
|
};
|
|
4202
4202
|
AboutModalBoxBrand.displayName = 'AboutModalBoxBrand';
|
|
4203
4203
|
|
|
@@ -4234,7 +4234,7 @@
|
|
|
4234
4234
|
};
|
|
4235
4235
|
|
|
4236
4236
|
Promise.resolve().then(function () { return spinner; });
|
|
4237
|
-
var styles$
|
|
4237
|
+
var styles$1c = {
|
|
4238
4238
|
"modifiers": {
|
|
4239
4239
|
"sm": "pf-m-sm",
|
|
4240
4240
|
"md": "pf-m-md",
|
|
@@ -4260,10 +4260,10 @@
|
|
|
4260
4260
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4261
4261
|
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']);
|
|
4262
4262
|
const Component = isSVG ? 'svg' : 'span';
|
|
4263
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
4264
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4265
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4266
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4263
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1c.spinner, styles$1c.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$1c.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4264
|
+
React__namespace.createElement("span", { className: css(styles$1c.spinnerClipper) }),
|
|
4265
|
+
React__namespace.createElement("span", { className: css(styles$1c.spinnerLeadBall) }),
|
|
4266
|
+
React__namespace.createElement("span", { className: css(styles$1c.spinnerTailBall) })))));
|
|
4267
4267
|
};
|
|
4268
4268
|
Spinner.displayName = 'Spinner';
|
|
4269
4269
|
|
|
@@ -4410,7 +4410,7 @@
|
|
|
4410
4410
|
|
|
4411
4411
|
const AboutModalBoxCloseButton = (_a) => {
|
|
4412
4412
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close Dialog' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
4413
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4413
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1f.aboutModalBoxClose, className) }, props),
|
|
4414
4414
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
4415
4415
|
React__namespace.createElement(TimesIcon$1, null))));
|
|
4416
4416
|
};
|
|
@@ -4418,13 +4418,13 @@
|
|
|
4418
4418
|
|
|
4419
4419
|
const AboutModalBox = (_a) => {
|
|
4420
4420
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4421
|
-
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$
|
|
4421
|
+
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$1f.aboutModalBox, className) }, props), children));
|
|
4422
4422
|
};
|
|
4423
4423
|
AboutModalBox.displayName = 'AboutModalBox';
|
|
4424
4424
|
|
|
4425
4425
|
const Backdrop = (_a) => {
|
|
4426
4426
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4427
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4427
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1h.backdrop, className) }), children));
|
|
4428
4428
|
};
|
|
4429
4429
|
Backdrop.displayName = 'Backdrop';
|
|
4430
4430
|
|
|
@@ -4434,7 +4434,7 @@
|
|
|
4434
4434
|
return null;
|
|
4435
4435
|
}
|
|
4436
4436
|
return (React__namespace.createElement(Backdrop, null,
|
|
4437
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
4437
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1g.bullseye) },
|
|
4438
4438
|
React__namespace.createElement(AboutModalBox, { className: className, "aria-labelledby": aboutModalBoxHeaderId, "aria-describedby": aboutModalBoxContentId },
|
|
4439
4439
|
React__namespace.createElement(AboutModalBoxBrand, { src: brandImageSrc, alt: brandImageAlt }),
|
|
4440
4440
|
React__namespace.createElement(AboutModalBoxCloseButton, { "aria-label": closeButtonAriaLabel, onClose: onClose }),
|
|
@@ -4486,20 +4486,20 @@
|
|
|
4486
4486
|
target.appendChild(container);
|
|
4487
4487
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
4488
4488
|
if (this.props.isOpen) {
|
|
4489
|
-
target.classList.add(css(styles$
|
|
4489
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
4490
4490
|
}
|
|
4491
4491
|
else {
|
|
4492
|
-
target.classList.remove(css(styles$
|
|
4492
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
4493
4493
|
}
|
|
4494
4494
|
}
|
|
4495
4495
|
componentDidUpdate() {
|
|
4496
4496
|
const target = this.getElement(this.props.appendTo);
|
|
4497
4497
|
if (this.props.isOpen) {
|
|
4498
|
-
target.classList.add(css(styles$
|
|
4498
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
4499
4499
|
this.toggleSiblingsFromScreenReaders(true);
|
|
4500
4500
|
}
|
|
4501
4501
|
else {
|
|
4502
|
-
target.classList.remove(css(styles$
|
|
4502
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
4503
4503
|
this.toggleSiblingsFromScreenReaders(false);
|
|
4504
4504
|
}
|
|
4505
4505
|
}
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
target.removeChild(this.state.container);
|
|
4510
4510
|
}
|
|
4511
4511
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
4512
|
-
target.classList.remove(css(styles$
|
|
4512
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
4513
4513
|
}
|
|
4514
4514
|
render() {
|
|
4515
4515
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4535,7 +4535,7 @@
|
|
|
4535
4535
|
};
|
|
4536
4536
|
|
|
4537
4537
|
Promise.resolve().then(function () { return accordion; });
|
|
4538
|
-
var styles$
|
|
4538
|
+
var styles$1b = {
|
|
4539
4539
|
"accordion": "pf-c-accordion",
|
|
4540
4540
|
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
4541
4541
|
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
@@ -4556,7 +4556,7 @@
|
|
|
4556
4556
|
const Accordion = (_a) => {
|
|
4557
4557
|
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"]);
|
|
4558
4558
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
4559
|
-
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$
|
|
4559
|
+
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$1b.accordion, isBordered && styles$1b.modifiers.bordered, displaySize === 'large' && styles$1b.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
4560
4560
|
React__namespace.createElement(AccordionContext.Provider, { value: {
|
|
4561
4561
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
4562
4562
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -4564,14 +4564,14 @@
|
|
|
4564
4564
|
};
|
|
4565
4565
|
Accordion.displayName = 'Accordion';
|
|
4566
4566
|
|
|
4567
|
-
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$
|
|
4567
|
+
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$1b.accordionExpandedContentBody) }, children);
|
|
4568
4568
|
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
4569
4569
|
|
|
4570
4570
|
const AccordionContent = (_a) => {
|
|
4571
4571
|
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"]);
|
|
4572
4572
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
4573
4573
|
const Container = component || ContentContainer;
|
|
4574
|
-
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$
|
|
4574
|
+
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$1b.accordionExpandedContent, isFixed && styles$1b.modifiers.fixed, !isHidden && styles$1b.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React__namespace.createElement(AccordionExpandedContentBody, null, children)));
|
|
4575
4575
|
}));
|
|
4576
4576
|
};
|
|
4577
4577
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -4597,16 +4597,16 @@
|
|
|
4597
4597
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
4598
4598
|
const Container = component || ToggleContainer;
|
|
4599
4599
|
return (React__namespace.createElement(Container, null,
|
|
4600
|
-
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
4601
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4602
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4600
|
+
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$1b.accordionToggle, isExpanded && styles$1b.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4601
|
+
React__namespace.createElement("span", { className: css(styles$1b.accordionToggleText) }, children),
|
|
4602
|
+
React__namespace.createElement("span", { className: css(styles$1b.accordionToggleIcon) },
|
|
4603
4603
|
React__namespace.createElement(AngleRightIcon$1, null)))));
|
|
4604
4604
|
}));
|
|
4605
4605
|
};
|
|
4606
4606
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
4607
4607
|
|
|
4608
4608
|
Promise.resolve().then(function () { return actionList; });
|
|
4609
|
-
var styles$
|
|
4609
|
+
var styles$1a = {
|
|
4610
4610
|
"actionList": "pf-c-action-list",
|
|
4611
4611
|
"actionListGroup": "pf-c-action-list__group",
|
|
4612
4612
|
"modifiers": {
|
|
@@ -4616,13 +4616,13 @@
|
|
|
4616
4616
|
|
|
4617
4617
|
const ActionList = (_a) => {
|
|
4618
4618
|
var { children, isIconList, className = '' } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
4619
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4619
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1a.actionList, isIconList && styles$1a.modifiers.icons, className) }, props), children));
|
|
4620
4620
|
};
|
|
4621
4621
|
ActionList.displayName = 'ActionList';
|
|
4622
4622
|
|
|
4623
4623
|
const ActionListGroup = (_a) => {
|
|
4624
4624
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4625
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4625
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1a.actionListGroup, className) }, props), children));
|
|
4626
4626
|
};
|
|
4627
4627
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
4628
4628
|
|
|
@@ -4633,7 +4633,7 @@
|
|
|
4633
4633
|
ActionListItem.displayName = 'ActionListItem';
|
|
4634
4634
|
|
|
4635
4635
|
Promise.resolve().then(function () { return alert; });
|
|
4636
|
-
var styles$
|
|
4636
|
+
var styles$19 = {
|
|
4637
4637
|
"alert": "pf-c-alert",
|
|
4638
4638
|
"alertAction": "pf-c-alert__action",
|
|
4639
4639
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4755,7 +4755,7 @@
|
|
|
4755
4755
|
const AlertIcon = (_a) => {
|
|
4756
4756
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
4757
4757
|
const Icon = variantIcons$2[variant];
|
|
4758
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4758
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$19.alertIcon, className) }), customIcon || React__namespace.createElement(Icon, null)));
|
|
4759
4759
|
};
|
|
4760
4760
|
|
|
4761
4761
|
const AlertContext = React__namespace.createContext(null);
|
|
@@ -4768,7 +4768,7 @@
|
|
|
4768
4768
|
var maxLines$2 = c_alert__title_max_lines;
|
|
4769
4769
|
|
|
4770
4770
|
Promise.resolve().then(function () { return tooltip; });
|
|
4771
|
-
var styles$
|
|
4771
|
+
var styles$18 = {
|
|
4772
4772
|
"modifiers": {
|
|
4773
4773
|
"top": "pf-m-top",
|
|
4774
4774
|
"topLeft": "pf-m-top-left",
|
|
@@ -4792,13 +4792,13 @@
|
|
|
4792
4792
|
|
|
4793
4793
|
const TooltipContent = (_a) => {
|
|
4794
4794
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
4795
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4795
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$18.tooltipContent, isLeftAligned && styles$18.modifiers.textAlignLeft, className) }, props), children));
|
|
4796
4796
|
};
|
|
4797
4797
|
TooltipContent.displayName = 'TooltipContent';
|
|
4798
4798
|
|
|
4799
4799
|
const TooltipArrow = (_a) => {
|
|
4800
4800
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
4801
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4801
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$18.tooltipArrow, className) }, props));
|
|
4802
4802
|
};
|
|
4803
4803
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4804
4804
|
|
|
@@ -4898,21 +4898,21 @@
|
|
|
4898
4898
|
}, exitDelay);
|
|
4899
4899
|
};
|
|
4900
4900
|
const positionModifiers = {
|
|
4901
|
-
top: styles$
|
|
4902
|
-
bottom: styles$
|
|
4903
|
-
left: styles$
|
|
4904
|
-
right: styles$
|
|
4905
|
-
'top-start': styles$
|
|
4906
|
-
'top-end': styles$
|
|
4907
|
-
'bottom-start': styles$
|
|
4908
|
-
'bottom-end': styles$
|
|
4909
|
-
'left-start': styles$
|
|
4910
|
-
'left-end': styles$
|
|
4911
|
-
'right-start': styles$
|
|
4912
|
-
'right-end': styles$
|
|
4901
|
+
top: styles$18.modifiers.top,
|
|
4902
|
+
bottom: styles$18.modifiers.bottom,
|
|
4903
|
+
left: styles$18.modifiers.left,
|
|
4904
|
+
right: styles$18.modifiers.right,
|
|
4905
|
+
'top-start': styles$18.modifiers.topLeft,
|
|
4906
|
+
'top-end': styles$18.modifiers.topRight,
|
|
4907
|
+
'bottom-start': styles$18.modifiers.bottomLeft,
|
|
4908
|
+
'bottom-end': styles$18.modifiers.bottomRight,
|
|
4909
|
+
'left-start': styles$18.modifiers.leftTop,
|
|
4910
|
+
'left-end': styles$18.modifiers.leftBottom,
|
|
4911
|
+
'right-start': styles$18.modifiers.rightTop,
|
|
4912
|
+
'right-end': styles$18.modifiers.rightBottom
|
|
4913
4913
|
};
|
|
4914
4914
|
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
4915
|
-
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$
|
|
4915
|
+
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$18.tooltip, className), role: "tooltip", id: id, style: {
|
|
4916
4916
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4917
4917
|
opacity,
|
|
4918
4918
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -4949,7 +4949,7 @@
|
|
|
4949
4949
|
var { 'aria-label': ariaLabel, variantLabel, onToggleExpand, isExpanded } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
4950
4950
|
const { title, variantLabel: alertVariantLabel } = React__namespace.useContext(AlertContext);
|
|
4951
4951
|
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),
|
|
4952
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4952
|
+
React__namespace.createElement("span", { className: css(styles$19.alertToggleIcon) },
|
|
4953
4953
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))));
|
|
4954
4954
|
};
|
|
4955
4955
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5033,20 +5033,20 @@
|
|
|
5033
5033
|
if (dismissed) {
|
|
5034
5034
|
return null;
|
|
5035
5035
|
}
|
|
5036
|
-
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
5037
|
-
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$
|
|
5036
|
+
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$19.alertTitle, truncateTitle && styles$19.modifiers.truncate) }), getHeadingContent));
|
|
5037
|
+
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$19.alert, isInline && styles$19.modifiers.inline, isPlain && styles$19.modifiers.plain, isExpandable && styles$19.modifiers.expandable, isExpanded && styles$19.modifiers.expanded, styles$19.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
5038
5038
|
'aria-live': 'polite',
|
|
5039
5039
|
'aria-atomic': 'false'
|
|
5040
5040
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
|
|
5041
5041
|
isExpandable && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5042
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5042
|
+
React__namespace.createElement("div", { className: css(styles$19.alertToggle) },
|
|
5043
5043
|
React__namespace.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5044
5044
|
React__namespace.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5045
5045
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5046
5046
|
actionClose && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5047
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5048
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
5049
|
-
actionLinks && React__namespace.createElement("div", { className: css(styles$
|
|
5047
|
+
React__namespace.createElement("div", { className: css(styles$19.alertAction) }, actionClose))),
|
|
5048
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$19.alertDescription) }, children)),
|
|
5049
|
+
actionLinks && React__namespace.createElement("div", { className: css(styles$19.alertActionGroup) }, actionLinks)));
|
|
5050
5050
|
};
|
|
5051
5051
|
Alert.displayName = 'Alert';
|
|
5052
5052
|
|
|
@@ -5066,7 +5066,7 @@
|
|
|
5066
5066
|
AlertActionLink.displayName = 'AlertActionLink';
|
|
5067
5067
|
|
|
5068
5068
|
Promise.resolve().then(function () { return alertGroup; });
|
|
5069
|
-
var styles$
|
|
5069
|
+
var styles$17 = {
|
|
5070
5070
|
"alertGroup": "pf-c-alert-group",
|
|
5071
5071
|
"alertGroupOverflowButton": "pf-c-alert-group__overflow-button",
|
|
5072
5072
|
"modifiers": {
|
|
@@ -5076,10 +5076,10 @@
|
|
|
5076
5076
|
|
|
5077
5077
|
const AlertGroupInline = (_a) => {
|
|
5078
5078
|
var { className, children, isToast, isLiveRegion, onOverflowClick, overflowMessage } = _a, rest = __rest$1(_a, ["className", "children", "isToast", "isLiveRegion", "onOverflowClick", "overflowMessage"]);
|
|
5079
|
-
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$
|
|
5079
|
+
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$17.alertGroup, className, isToast ? styles$17.modifiers.toast : '') }, rest),
|
|
5080
5080
|
React__namespace.Children.toArray(children).map((Alert, index) => (React__namespace.createElement("li", { key: index }, Alert))),
|
|
5081
5081
|
overflowMessage && (React__namespace.createElement("li", null,
|
|
5082
|
-
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$
|
|
5082
|
+
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$17.alertGroupOverflowButton) }, overflowMessage)))));
|
|
5083
5083
|
};
|
|
5084
5084
|
AlertGroupInline.displayName = 'AlertGroupInline';
|
|
5085
5085
|
|
|
@@ -5125,7 +5125,7 @@
|
|
|
5125
5125
|
AlertGroup.displayName = 'AlertGroup';
|
|
5126
5126
|
|
|
5127
5127
|
Promise.resolve().then(function () { return appLauncher; });
|
|
5128
|
-
var styles$
|
|
5128
|
+
var styles$16 = {
|
|
5129
5129
|
"appLauncher": "pf-c-app-launcher",
|
|
5130
5130
|
"appLauncherGroup": "pf-c-app-launcher__group",
|
|
5131
5131
|
"appLauncherGroupTitle": "pf-c-app-launcher__group-title",
|
|
@@ -5185,7 +5185,7 @@
|
|
|
5185
5185
|
var ThIcon$1 = ThIcon;
|
|
5186
5186
|
|
|
5187
5187
|
Promise.resolve().then(function () { return dropdown; });
|
|
5188
|
-
var styles$
|
|
5188
|
+
var styles$15 = {
|
|
5189
5189
|
"badge": "pf-c-badge",
|
|
5190
5190
|
"check": "pf-c-check",
|
|
5191
5191
|
"divider": "pf-c-divider",
|
|
@@ -5367,12 +5367,12 @@
|
|
|
5367
5367
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
5368
5368
|
keyHandler: this.childKeyHandler,
|
|
5369
5369
|
sendRef: this.sendRef
|
|
5370
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5370
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$15.modifiers.alignRight, formatBreakpointMods(alignments, styles$15, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5371
5371
|
const MenuComponent = (menuComponent || 'div');
|
|
5372
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5372
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$15.modifiers.alignRight, formatBreakpointMods(alignments, styles$15, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5373
5373
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5374
5374
|
const MenuComponent = (menuComponent || component);
|
|
5375
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5375
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$15.modifiers.alignRight, formatBreakpointMods(alignments, styles$15, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5376
5376
|
})))));
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
@@ -5387,7 +5387,7 @@
|
|
|
5387
5387
|
isGrouped: false,
|
|
5388
5388
|
setMenuComponentRef: null
|
|
5389
5389
|
};
|
|
5390
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
5390
|
+
DropdownMenu.validToggleClasses = [styles$15.dropdownToggle, styles$15.dropdownToggleButton];
|
|
5391
5391
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
5392
5392
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
5393
5393
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -5442,8 +5442,8 @@
|
|
|
5442
5442
|
// This removes the `position: absolute` styling from the `.pf-c-dropdown__menu`
|
|
5443
5443
|
// allowing the menu to flip correctly
|
|
5444
5444
|
, 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));
|
|
5445
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5446
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5445
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$15.modifiers.top, position === exports.DropdownPosition.right && styles$15.modifiers.alignRight, isOpen && styles$15.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
5446
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$15.modifiers.top, position === exports.DropdownPosition.right && styles$15.modifiers.alignRight, isOpen && styles$15.modifiers.expanded, isFullHeight && styles$15.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
5447
5447
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
5448
5448
|
parentRef: this.baseComponentRef,
|
|
5449
5449
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -5491,7 +5491,7 @@
|
|
|
5491
5491
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5492
5492
|
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
5493
5493
|
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled"]);
|
|
5494
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$
|
|
5494
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$15.dropdownToggleText, toggleIconClass: styles$15.dropdownToggleImage, toggleIndicatorClass: styles$15.dropdownToggleIcon, menuClass: styles$15.dropdownMenu, itemClass: styles$15.dropdownMenuItem, toggleClass: styles$15.dropdownToggle, baseClass: styles$15.dropdown, baseComponent: 'div', sectionClass: styles$15.dropdownGroup, sectionTitleClass: styles$15.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$15.modifiers.disabled, plainTextClass: styles$15.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
5495
5495
|
React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled }, props))));
|
|
5496
5496
|
};
|
|
5497
5497
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -5576,7 +5576,7 @@
|
|
|
5576
5576
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5577
5577
|
const _a = this.props, { className, children, isHovered, 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", "isHovered", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
5578
5578
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5579
|
-
let classes = css(icon && styles$
|
|
5579
|
+
let classes = css(icon && styles$15.modifiers.icon, isAriaDisabled && styles$15.modifiers.ariaDisabled, className);
|
|
5580
5580
|
if (component === 'a') {
|
|
5581
5581
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
5582
5582
|
}
|
|
@@ -5591,17 +5591,17 @@
|
|
|
5591
5591
|
const renderDefaultComponent = (tag) => {
|
|
5592
5592
|
const Component = tag;
|
|
5593
5593
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5594
|
-
React__namespace.createElement("div", { className: styles$
|
|
5595
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5594
|
+
React__namespace.createElement("div", { className: styles$15.dropdownMenuItemMain },
|
|
5595
|
+
icon && React__namespace.createElement("span", { className: css(styles$15.dropdownMenuItemIcon) }, icon),
|
|
5596
5596
|
children),
|
|
5597
|
-
React__namespace.createElement("div", { className: styles$
|
|
5598
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5597
|
+
React__namespace.createElement("div", { className: styles$15.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5598
|
+
icon && React__namespace.createElement("span", { className: css(styles$15.dropdownMenuItemIcon) }, icon),
|
|
5599
5599
|
children));
|
|
5600
5600
|
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));
|
|
5601
5601
|
};
|
|
5602
5602
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
5603
5603
|
if (this.props.role !== 'separator') {
|
|
5604
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$
|
|
5604
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$15.modifiers.description);
|
|
5605
5605
|
}
|
|
5606
5606
|
if (customChild) {
|
|
5607
5607
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -5656,7 +5656,7 @@
|
|
|
5656
5656
|
DropdownItem.displayName = 'DropdownItem';
|
|
5657
5657
|
|
|
5658
5658
|
Promise.resolve().then(function () { return divider; });
|
|
5659
|
-
var styles$
|
|
5659
|
+
var styles$14 = {
|
|
5660
5660
|
"divider": "pf-c-divider",
|
|
5661
5661
|
"modifiers": {
|
|
5662
5662
|
"hidden": "pf-m-hidden",
|
|
@@ -5741,7 +5741,7 @@
|
|
|
5741
5741
|
const Divider = (_a) => {
|
|
5742
5742
|
var { className, component = exports.DividerVariant.hr, isVertical = false, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset", "orientation"]);
|
|
5743
5743
|
const Component = component;
|
|
5744
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
5744
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$14.divider, isVertical && styles$14.modifiers.vertical, formatBreakpointMods(inset, styles$14), formatBreakpointMods(orientation, styles$14), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5745
5745
|
};
|
|
5746
5746
|
Divider.displayName = 'Divider';
|
|
5747
5747
|
|
|
@@ -5770,8 +5770,8 @@
|
|
|
5770
5770
|
|
|
5771
5771
|
const buttonVariantStyles = {
|
|
5772
5772
|
default: '',
|
|
5773
|
-
primary: styles$
|
|
5774
|
-
secondary: styles$
|
|
5773
|
+
primary: styles$15.modifiers.primary,
|
|
5774
|
+
secondary: styles$15.modifiers.secondary
|
|
5775
5775
|
};
|
|
5776
5776
|
class Toggle extends React__namespace.Component {
|
|
5777
5777
|
constructor() {
|
|
@@ -5836,7 +5836,7 @@
|
|
|
5836
5836
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5837
5837
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5838
5838
|
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"]);
|
|
5839
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$
|
|
5839
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$15.dropdownToggleButton : toggleClass || styles$15.dropdownToggle, isActive && styles$15.modifiers.active, isPlain && styles$15.modifiers.plain, isText && styles$15.modifiers.text, isPrimary && styles$15.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))));
|
|
5840
5840
|
}
|
|
5841
5841
|
}
|
|
5842
5842
|
Toggle.displayName = 'Toggle';
|
|
@@ -5878,7 +5878,7 @@
|
|
|
5878
5878
|
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),
|
|
5879
5879
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps),
|
|
5880
5880
|
children,
|
|
5881
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5881
|
+
React__namespace.createElement("span", { className: css(styles$15.dropdownToggleIcon) },
|
|
5882
5882
|
React__namespace.createElement(CaretDownIcon$1, null)))));
|
|
5883
5883
|
};
|
|
5884
5884
|
BadgeToggle.displayName = 'BadgeToggle';
|
|
@@ -5924,7 +5924,7 @@
|
|
|
5924
5924
|
ToggleIndicator && (React__namespace.createElement("span", { className: css(!splitButtonItems && toggleIndicatorClass) },
|
|
5925
5925
|
React__namespace.createElement(ToggleIndicator, null)))))));
|
|
5926
5926
|
if (splitButtonItems) {
|
|
5927
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
5927
|
+
return (React__namespace.createElement("div", { className: css(styles$15.dropdownToggle, styles$15.modifiers.splitButton, splitButtonVariant === 'action' && styles$15.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$15.modifiers.primary, isDisabled && styles$15.modifiers.disabled) },
|
|
5928
5928
|
splitButtonItems,
|
|
5929
5929
|
toggle));
|
|
5930
5930
|
}
|
|
@@ -5959,8 +5959,8 @@
|
|
|
5959
5959
|
onChange, checked } = _a,
|
|
5960
5960
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5961
5961
|
props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "checked"]);
|
|
5962
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
5963
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
5962
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$15.dropdownToggleText, className), "aria-hidden": "true", id: `${props.id}-text` }, children));
|
|
5963
|
+
return (React__namespace.createElement("label", { className: css(styles$15.dropdownToggleCheck, className), htmlFor: props.id },
|
|
5964
5964
|
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))),
|
|
5965
5965
|
text));
|
|
5966
5966
|
}
|
|
@@ -5976,7 +5976,7 @@
|
|
|
5976
5976
|
class DropdownToggleAction extends React__namespace.Component {
|
|
5977
5977
|
render() {
|
|
5978
5978
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
5979
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
5979
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$15.dropdownToggleButton, className), onClick: onClick }, (isDisabled && { disabled: true, 'aria-disabled': true }), props), children));
|
|
5980
5980
|
}
|
|
5981
5981
|
}
|
|
5982
5982
|
DropdownToggleAction.displayName = 'DropdownToggleAction';
|
|
@@ -6002,7 +6002,7 @@
|
|
|
6002
6002
|
var {
|
|
6003
6003
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6004
6004
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6005
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
6005
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$16.appLauncherMenuItemIcon) }, props), children));
|
|
6006
6006
|
};
|
|
6007
6007
|
ApplicationLauncherIcon.displayName = 'ApplicationLauncherIcon';
|
|
6008
6008
|
|
|
@@ -6031,7 +6031,7 @@
|
|
|
6031
6031
|
icon && React__namespace.createElement(ApplicationLauncherIcon, null, icon),
|
|
6032
6032
|
icon ? React__namespace.createElement(ApplicationLauncherText, null, children) : children,
|
|
6033
6033
|
isExternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6034
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6034
|
+
React__namespace.createElement("span", { className: css(styles$16.appLauncherMenuItemExternalIcon) },
|
|
6035
6035
|
React__namespace.createElement(ExternalLinkAltIcon$1, null)),
|
|
6036
6036
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, "(opens new window)")))))));
|
|
6037
6037
|
ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';
|
|
@@ -6057,8 +6057,8 @@
|
|
|
6057
6057
|
const ApplicationLauncherItem = (_a) => {
|
|
6058
6058
|
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"]);
|
|
6059
6059
|
return (React__namespace.createElement(ApplicationLauncherItemContext.Provider, { value: { isExternal, icon } },
|
|
6060
|
-
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$
|
|
6061
|
-
additionalChild: (React__namespace.createElement("button", { className: css(styles$
|
|
6060
|
+
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$16.modifiers.external, isFavorite !== null && styles$16.modifiers.link, className), listItemClassName: css(onFavorite && styles$16.appLauncherMenuWrapper, isFavorite && styles$16.modifiers.favorite), tooltip: tooltip, tooltipProps: tooltipProps }, (enterTriggersArrowDown === true && { enterTriggersArrowDown }), (customChild && { customChild }), (isFavorite !== null && {
|
|
6061
|
+
additionalChild: (React__namespace.createElement("button", { className: css(styles$16.appLauncherMenuItem, styles$16.modifiers.action), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6062
6062
|
onFavorite((id || getUniqueId('app-launcher-option')).replace('favorite-', ''), isFavorite);
|
|
6063
6063
|
} },
|
|
6064
6064
|
React__namespace.createElement(StarIcon$1, null)))
|
|
@@ -6132,7 +6132,7 @@
|
|
|
6132
6132
|
super(...arguments);
|
|
6133
6133
|
this.createSearchBox = () => {
|
|
6134
6134
|
const { onSearch, searchPlaceholderText, searchProps } = this.props;
|
|
6135
|
-
return (React__namespace.createElement("div", { key: "search", className: css(styles$
|
|
6135
|
+
return (React__namespace.createElement("div", { key: "search", className: css(styles$16.appLauncherMenuSearch) },
|
|
6136
6136
|
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)) })));
|
|
6137
6137
|
};
|
|
6138
6138
|
}
|
|
@@ -6176,15 +6176,15 @@
|
|
|
6176
6176
|
return (React__namespace.createElement(ApplicationLauncherContext.Provider, { value: { onFavorite } },
|
|
6177
6177
|
React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
6178
6178
|
onSelect,
|
|
6179
|
-
menuClass: styles$
|
|
6180
|
-
itemClass: styles$
|
|
6181
|
-
toggleClass: styles$
|
|
6182
|
-
baseClass: styles$
|
|
6179
|
+
menuClass: styles$16.appLauncherMenu,
|
|
6180
|
+
itemClass: styles$16.appLauncherMenuItem,
|
|
6181
|
+
toggleClass: styles$16.appLauncherToggle,
|
|
6182
|
+
baseClass: styles$16.appLauncher,
|
|
6183
6183
|
baseComponent: 'nav',
|
|
6184
|
-
sectionClass: styles$
|
|
6185
|
-
sectionTitleClass: styles$
|
|
6184
|
+
sectionClass: styles$16.appLauncherGroup,
|
|
6185
|
+
sectionTitleClass: styles$16.appLauncherGroupTitle,
|
|
6186
6186
|
sectionComponent: 'section',
|
|
6187
|
-
disabledClass: styles$
|
|
6187
|
+
disabledClass: styles$16.modifiers.disabled,
|
|
6188
6188
|
ouiaComponentType: ApplicationLauncher.displayName
|
|
6189
6189
|
} },
|
|
6190
6190
|
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 })))));
|
|
@@ -6212,7 +6212,7 @@
|
|
|
6212
6212
|
};
|
|
6213
6213
|
|
|
6214
6214
|
Promise.resolve().then(function () { return avatar; });
|
|
6215
|
-
var styles$
|
|
6215
|
+
var styles$13 = {
|
|
6216
6216
|
"avatar": "pf-c-avatar",
|
|
6217
6217
|
"modifiers": {
|
|
6218
6218
|
"light": "pf-m-light",
|
|
@@ -6226,12 +6226,12 @@
|
|
|
6226
6226
|
|
|
6227
6227
|
const Avatar = (_a) => {
|
|
6228
6228
|
var { className = '', src = '', alt, border, size } = _a, props = __rest$1(_a, ["className", "src", "alt", "border", "size"]);
|
|
6229
|
-
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$
|
|
6229
|
+
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$13.avatar, styles$13.modifiers[size], border === 'light' && styles$13.modifiers.light, border === 'dark' && styles$13.modifiers.dark, className) }, props)));
|
|
6230
6230
|
};
|
|
6231
6231
|
Avatar.displayName = 'Avatar';
|
|
6232
6232
|
|
|
6233
6233
|
Promise.resolve().then(function () { return backToTop; });
|
|
6234
|
-
var styles$
|
|
6234
|
+
var styles$12 = {
|
|
6235
6235
|
"backToTop": "pf-c-back-to-top",
|
|
6236
6236
|
"button": "pf-c-button",
|
|
6237
6237
|
"modifiers": {
|
|
@@ -6298,7 +6298,7 @@
|
|
|
6298
6298
|
const handleClick = () => {
|
|
6299
6299
|
scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
|
|
6300
6300
|
};
|
|
6301
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6301
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$12.backToTop, !visible && styles$12.modifiers.hidden, className), ref: innerRef, onClick: handleClick }, props),
|
|
6302
6302
|
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon$1, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
6303
6303
|
};
|
|
6304
6304
|
const BackToTop = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(BackToTopBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -6347,7 +6347,7 @@
|
|
|
6347
6347
|
var cssVarNameFilter = c_background_image_Filter;
|
|
6348
6348
|
|
|
6349
6349
|
Promise.resolve().then(function () { return backgroundImage; });
|
|
6350
|
-
var styles$
|
|
6350
|
+
var styles$11 = {
|
|
6351
6351
|
"backgroundImage": "pf-c-background-image",
|
|
6352
6352
|
"backgroundImageFilter": "pf-c-background-image__filter"
|
|
6353
6353
|
};
|
|
@@ -6381,13 +6381,13 @@
|
|
|
6381
6381
|
[cssVarNameLg.name]: getUrlValue('lg'),
|
|
6382
6382
|
[cssVarNameFilter.name]: `url(#${filterId})`
|
|
6383
6383
|
};
|
|
6384
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6384
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$11.backgroundImage, className), style: style }, props),
|
|
6385
6385
|
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 }))));
|
|
6386
6386
|
};
|
|
6387
6387
|
BackgroundImage.displayName = 'BackgroundImage';
|
|
6388
6388
|
|
|
6389
6389
|
Promise.resolve().then(function () { return banner; });
|
|
6390
|
-
var styles$
|
|
6390
|
+
var styles$10 = {
|
|
6391
6391
|
"banner": "pf-c-banner",
|
|
6392
6392
|
"button": "pf-c-button",
|
|
6393
6393
|
"card": "pf-c-card",
|
|
@@ -6405,14 +6405,14 @@
|
|
|
6405
6405
|
|
|
6406
6406
|
const Banner = (_a) => {
|
|
6407
6407
|
var { children, className, variant = 'default', screenReaderText, isSticky = false } = _a, props = __rest$1(_a, ["children", "className", "variant", "screenReaderText", "isSticky"]);
|
|
6408
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6408
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$10.banner, styles$10.modifiers[variant], isSticky && styles$10.modifiers.sticky, className) }, props),
|
|
6409
6409
|
children,
|
|
6410
6410
|
React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenReaderText || `${variant} banner`)));
|
|
6411
6411
|
};
|
|
6412
6412
|
Banner.displayName = 'Banner';
|
|
6413
6413
|
|
|
6414
6414
|
Promise.resolve().then(function () { return brand; });
|
|
6415
|
-
var styles
|
|
6415
|
+
var styles$$ = {
|
|
6416
6416
|
"brand": "pf-c-brand",
|
|
6417
6417
|
"modifiers": {
|
|
6418
6418
|
"picture": "pf-m-picture"
|
|
@@ -6429,14 +6429,14 @@
|
|
|
6429
6429
|
}
|
|
6430
6430
|
return (
|
|
6431
6431
|
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
|
|
6432
|
-
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles
|
|
6432
|
+
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles$$.brand, styles$$.modifiers.picture, className), style: style }, props),
|
|
6433
6433
|
children,
|
|
6434
|
-
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles
|
|
6434
|
+
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles$$.brand, className), src: src, alt: alt }))));
|
|
6435
6435
|
};
|
|
6436
6436
|
Brand.displayName = 'Brand';
|
|
6437
6437
|
|
|
6438
6438
|
Promise.resolve().then(function () { return breadcrumb; });
|
|
6439
|
-
var styles
|
|
6439
|
+
var styles$_ = {
|
|
6440
6440
|
"breadcrumb": "pf-c-breadcrumb",
|
|
6441
6441
|
"breadcrumbDropdown": "pf-c-breadcrumb__dropdown",
|
|
6442
6442
|
"breadcrumbHeading": "pf-c-breadcrumb__heading",
|
|
@@ -6455,8 +6455,8 @@
|
|
|
6455
6455
|
const Breadcrumb = (_a) => {
|
|
6456
6456
|
var { children = null, className = '', 'aria-label': ariaLabel = 'Breadcrumb', ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "ouiaId", "ouiaSafe"]);
|
|
6457
6457
|
const ouiaProps = useOUIAProps(Breadcrumb.displayName, ouiaId, ouiaSafe);
|
|
6458
|
-
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles
|
|
6459
|
-
React__namespace.createElement("ol", { className: styles
|
|
6458
|
+
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles$_.breadcrumb, className) }, ouiaProps),
|
|
6459
|
+
React__namespace.createElement("ol", { className: styles$_.breadcrumbList }, React__namespace.Children.map(children, (child, index) => {
|
|
6460
6460
|
const showDivider = index > 0;
|
|
6461
6461
|
if (React__namespace.isValidElement(child)) {
|
|
6462
6462
|
return React__namespace.cloneElement(child, { showDivider });
|
|
@@ -6470,12 +6470,12 @@
|
|
|
6470
6470
|
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"]);
|
|
6471
6471
|
const Component = component;
|
|
6472
6472
|
const ariaCurrent = isActive ? 'page' : undefined;
|
|
6473
|
-
const className = css(styles
|
|
6474
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6475
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6473
|
+
const className = css(styles$_.breadcrumbLink, isActive && styles$_.modifiers.current);
|
|
6474
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$_.breadcrumbItem, classNameProp) }),
|
|
6475
|
+
showDivider && (React__namespace.createElement("span", { className: styles$_.breadcrumbItemDivider },
|
|
6476
6476
|
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
6477
6477
|
component === 'button' && (React__namespace.createElement("button", { className: className, "aria-current": ariaCurrent, type: "button" }, children)),
|
|
6478
|
-
isDropdown && React__namespace.createElement("span", { className: css(styles
|
|
6478
|
+
isDropdown && React__namespace.createElement("span", { className: css(styles$_.breadcrumbDropdown) }, children),
|
|
6479
6479
|
render && render({ className, ariaCurrent }),
|
|
6480
6480
|
to && !render && (React__namespace.createElement(Component, { href: to, target: target, className: className, "aria-current": ariaCurrent }, children)),
|
|
6481
6481
|
!to && component !== 'button' && !isDropdown && children));
|
|
@@ -6485,12 +6485,12 @@
|
|
|
6485
6485
|
const BreadcrumbHeading = (_a) => {
|
|
6486
6486
|
var { children = null, className = '', to = undefined, target = undefined, component = 'a', showDivider } = _a, props = __rest$1(_a, ["children", "className", "to", "target", "component", "showDivider"]);
|
|
6487
6487
|
const Component = component;
|
|
6488
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6489
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6488
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$_.breadcrumbItem, className) }),
|
|
6489
|
+
showDivider && (React__namespace.createElement("span", { className: styles$_.breadcrumbItemDivider },
|
|
6490
6490
|
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
6491
|
-
React__namespace.createElement("h1", { className: styles
|
|
6492
|
-
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles
|
|
6493
|
-
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles
|
|
6491
|
+
React__namespace.createElement("h1", { className: styles$_.breadcrumbHeading },
|
|
6492
|
+
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles$_.breadcrumbLink, styles$_.modifiers.current), "aria-current": true, type: "button" }, children)),
|
|
6493
|
+
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles$_.breadcrumbLink, styles$_.modifiers.current), "aria-current": "page" }, children)),
|
|
6494
6494
|
!to && component !== 'button' && React__namespace.createElement(React__namespace.Fragment, null, children))));
|
|
6495
6495
|
};
|
|
6496
6496
|
BreadcrumbHeading.displayName = 'BreadcrumbHeading';
|
|
@@ -6601,7 +6601,7 @@
|
|
|
6601
6601
|
TextInput.displayName = 'TextInput';
|
|
6602
6602
|
|
|
6603
6603
|
Promise.resolve().then(function () { return select; });
|
|
6604
|
-
var styles$
|
|
6604
|
+
var styles$Z = {
|
|
6605
6605
|
"check": "pf-c-check",
|
|
6606
6606
|
"checkLabel": "pf-c-check__label",
|
|
6607
6607
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -6674,7 +6674,7 @@
|
|
|
6674
6674
|
var TimesCircleIcon$1 = TimesCircleIcon;
|
|
6675
6675
|
|
|
6676
6676
|
Promise.resolve().then(function () { return form; });
|
|
6677
|
-
var styles$
|
|
6677
|
+
var styles$Y = {
|
|
6678
6678
|
"form": "pf-c-form",
|
|
6679
6679
|
"formActions": "pf-c-form__actions",
|
|
6680
6680
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -6729,7 +6729,7 @@
|
|
|
6729
6729
|
};
|
|
6730
6730
|
|
|
6731
6731
|
Promise.resolve().then(function () { return check; });
|
|
6732
|
-
var styles$
|
|
6732
|
+
var styles$X = {
|
|
6733
6733
|
"check": "pf-c-check",
|
|
6734
6734
|
"checkBody": "pf-c-check__body",
|
|
6735
6735
|
"checkDescription": "pf-c-check__description",
|
|
@@ -6849,16 +6849,16 @@
|
|
|
6849
6849
|
console.error('Please provide an id to use the favorites feature.');
|
|
6850
6850
|
}
|
|
6851
6851
|
const generatedId = id || getUniqueId('select-option');
|
|
6852
|
-
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$
|
|
6852
|
+
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$Z.selectMenuItem, styles$Z.modifiers.action, styles$Z.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6853
6853
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
6854
6854
|
}, onKeyDown: event => {
|
|
6855
6855
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
6856
6856
|
}, ref: this.favoriteRef },
|
|
6857
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6857
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemActionIcon) },
|
|
6858
6858
|
React__namespace.createElement(StarIcon$1, null))));
|
|
6859
|
-
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$
|
|
6860
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6861
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6859
|
+
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemRow) },
|
|
6860
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6861
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
6862
6862
|
const onViewMoreClick = (event) => {
|
|
6863
6863
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
6864
6864
|
setViewMoreNextIndex();
|
|
@@ -6866,26 +6866,26 @@
|
|
|
6866
6866
|
};
|
|
6867
6867
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
6868
6868
|
if (variant !== exports.SelectVariant.checkbox && isLoading && isGrouped) {
|
|
6869
|
-
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$
|
|
6869
|
+
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$Z.selectListItem, isLoading && styles$Z.modifiers.loading, className) }, children));
|
|
6870
6870
|
}
|
|
6871
6871
|
else if (variant !== exports.SelectVariant.checkbox && isLoad && isGrouped) {
|
|
6872
6872
|
return (React__namespace.createElement("div", null,
|
|
6873
|
-
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$
|
|
6873
|
+
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$Z.selectMenuItem, styles$Z.modifiers.load, className), onClick: (event) => {
|
|
6874
6874
|
onViewMoreClick(event);
|
|
6875
6875
|
event.stopPropagation();
|
|
6876
6876
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
6877
6877
|
}
|
|
6878
6878
|
else if (variant !== exports.SelectVariant.checkbox) {
|
|
6879
|
-
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$
|
|
6879
|
+
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$Z.selectListItem, !isLoading && styles$Z.selectMenuWrapper, isFavorite && styles$Z.modifiers.favorite, isFocused && styles$Z.modifiers.focus, isLoading && styles$Z.modifiers.loading), ref: this.liRef },
|
|
6880
6880
|
isLoading && children,
|
|
6881
|
-
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$
|
|
6881
|
+
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$Z.selectMenuItem, styles$Z.modifiers.load, className), onClick: (event) => {
|
|
6882
6882
|
onViewMoreClick(event);
|
|
6883
6883
|
event.stopPropagation();
|
|
6884
6884
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
6885
6885
|
this.onKeyDown(event, 0);
|
|
6886
6886
|
}, type: "button" }), itemDisplay)),
|
|
6887
6887
|
!isLoading && !isLoad && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6888
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
6888
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$Z.selectMenuItem, isLoad && styles$Z.modifiers.load, isSelected && styles$Z.modifiers.selected, isDisabled && styles$Z.modifiers.disabled, description && styles$Z.modifiers.description, isFavorite !== null && styles$Z.modifiers.link, className), onClick: (event) => {
|
|
6889
6889
|
if (!isDisabled) {
|
|
6890
6890
|
onClick(event);
|
|
6891
6891
|
onSelect(event, value, isPlaceholder);
|
|
@@ -6895,19 +6895,19 @@
|
|
|
6895
6895
|
this.onKeyDown(event, 0);
|
|
6896
6896
|
}, type: "button" }),
|
|
6897
6897
|
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6898
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6898
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemMain) },
|
|
6899
6899
|
itemDisplay,
|
|
6900
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6900
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemIcon) },
|
|
6901
6901
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
6902
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6902
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemDescription) }, description))),
|
|
6903
6903
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6904
6904
|
itemDisplay,
|
|
6905
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6905
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$Z.selectMenuItemIcon) },
|
|
6906
6906
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
6907
6907
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6908
6908
|
}
|
|
6909
6909
|
else if (variant === exports.SelectVariant.checkbox && isLoad) {
|
|
6910
|
-
return (React__namespace.createElement("button", { className: css(styles$
|
|
6910
|
+
return (React__namespace.createElement("button", { className: css(styles$Z.selectMenuItem, styles$Z.modifiers.load, isFocused && styles$Z.modifiers.focus, className), onKeyDown: (event) => {
|
|
6911
6911
|
this.onKeyDown(event, 0, undefined, true);
|
|
6912
6912
|
}, onClick: (event) => {
|
|
6913
6913
|
onViewMoreClick(event);
|
|
@@ -6915,24 +6915,24 @@
|
|
|
6915
6915
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
6916
6916
|
}
|
|
6917
6917
|
else if (variant === exports.SelectVariant.checkbox && isLoading) {
|
|
6918
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
6918
|
+
return (React__namespace.createElement("div", { className: css(styles$Z.selectListItem, isLoading && styles$Z.modifiers.loading, className) }, children));
|
|
6919
6919
|
}
|
|
6920
6920
|
else if (variant === exports.SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
6921
|
-
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$
|
|
6921
|
+
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$X.check, styles$Z.selectMenuItem, isDisabled && styles$Z.modifiers.disabled, description && styles$Z.modifiers.description, className), onKeyDown: (event) => {
|
|
6922
6922
|
this.onKeyDown(event, 0, undefined, true);
|
|
6923
6923
|
} }),
|
|
6924
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$
|
|
6924
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$X.checkInput), type: "checkbox", onChange: event => {
|
|
6925
6925
|
if (!isDisabled) {
|
|
6926
6926
|
onClick(event);
|
|
6927
6927
|
onSelect(event, value);
|
|
6928
6928
|
}
|
|
6929
6929
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
6930
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6931
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
6930
|
+
React__namespace.createElement("span", { className: css(styles$X.checkLabel, isDisabled && styles$Z.modifiers.disabled) }, itemDisplay),
|
|
6931
|
+
description && React__namespace.createElement("div", { className: css(styles$X.checkDescription) }, description)));
|
|
6932
6932
|
}
|
|
6933
6933
|
else if (variant === exports.SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
6934
6934
|
return (React__namespace.createElement("div", null,
|
|
6935
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
6935
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$Z.selectMenuItem, isSelected && styles$Z.modifiers.selected, isDisabled && styles$Z.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
6936
6936
|
this.onKeyDown(event, 0, undefined, true);
|
|
6937
6937
|
}, type: "button" }), itemDisplay)));
|
|
6938
6938
|
}
|
|
@@ -6964,8 +6964,8 @@
|
|
|
6964
6964
|
|
|
6965
6965
|
const SelectGroup = (_a) => {
|
|
6966
6966
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId"]);
|
|
6967
|
-
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
6968
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
6967
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$Z.selectMenuGroup, className) }),
|
|
6968
|
+
React__namespace.createElement("div", { className: css(styles$Z.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
6969
6969
|
variant === exports.SelectVariant.checkbox ? children : React__namespace.createElement("ul", { role: "listbox" }, children)))));
|
|
6970
6970
|
};
|
|
6971
6971
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -7047,7 +7047,7 @@
|
|
|
7047
7047
|
}
|
|
7048
7048
|
return React__namespace.cloneElement(group, {
|
|
7049
7049
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
7050
|
-
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$
|
|
7050
|
+
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$Z.selectMenuFieldset) }, React__namespace.Children.map(group.props.children, (option) => option.type === Divider
|
|
7051
7051
|
? option
|
|
7052
7052
|
: React__namespace.cloneElement(option, {
|
|
7053
7053
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -7074,7 +7074,7 @@
|
|
|
7074
7074
|
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"]);
|
|
7075
7075
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
7076
7076
|
let Component = 'div';
|
|
7077
|
-
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$
|
|
7077
|
+
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$Z.selectMenu : 'pf-c-select__menu-list', position === exports.SelectPosition.right && styles$Z.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
7078
7078
|
const extendedChildren = () => variant === exports.SelectVariant.checkbox
|
|
7079
7079
|
? this.extendCheckboxChildren(children)
|
|
7080
7080
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -7083,10 +7083,10 @@
|
|
|
7083
7083
|
}
|
|
7084
7084
|
else if (hasInlineFilter) {
|
|
7085
7085
|
if (React__namespace.Children.count(children) === 0) {
|
|
7086
|
-
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$
|
|
7086
|
+
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$Z.selectMenuFieldset) });
|
|
7087
7087
|
}
|
|
7088
7088
|
else {
|
|
7089
|
-
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$
|
|
7089
|
+
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$Y.formFieldset) },
|
|
7090
7090
|
children.shift(),
|
|
7091
7091
|
extendedChildren()));
|
|
7092
7092
|
}
|
|
@@ -7102,7 +7102,7 @@
|
|
|
7102
7102
|
}
|
|
7103
7103
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7104
7104
|
React__namespace.createElement(Component, Object.assign({}, variantProps, props)),
|
|
7105
|
-
footer && (React__namespace.createElement("div", { className: css(styles$
|
|
7105
|
+
footer && (React__namespace.createElement("div", { className: css(styles$Z.selectMenuFooter), ref: footerRef }, footer))));
|
|
7106
7106
|
}
|
|
7107
7107
|
render() {
|
|
7108
7108
|
return React__namespace.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -7266,7 +7266,7 @@
|
|
|
7266
7266
|
'aria-haspopup': (variant !== exports.SelectVariant.checkbox && 'listbox') || null
|
|
7267
7267
|
};
|
|
7268
7268
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7269
|
-
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$
|
|
7269
|
+
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$Z.selectToggle, hasPlaceholderStyle && styles$Z.modifiers.placeholder, isDisabled && styles$Z.modifiers.disabled, isPlain && styles$Z.modifiers.plain, isActive && styles$Z.modifiers.active, className), "aria-label": ariaLabel, onBlur: onBlur,
|
|
7270
7270
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7271
7271
|
onClick: event => {
|
|
7272
7272
|
onToggle(!isOpen, event);
|
|
@@ -7275,9 +7275,9 @@
|
|
|
7275
7275
|
}
|
|
7276
7276
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
7277
7277
|
children,
|
|
7278
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7278
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectToggleArrow) },
|
|
7279
7279
|
React__namespace.createElement(CaretDownIcon$1, null)))),
|
|
7280
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$
|
|
7280
|
+
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$Z.selectToggle, hasPlaceholderStyle && styles$Z.modifiers.placeholder, isDisabled && styles$Z.modifiers.disabled, isPlain && styles$Z.modifiers.plain, isTypeahead && styles$Z.modifiers.typeahead, className), onBlur: onBlur,
|
|
7281
7281
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7282
7282
|
onClick: event => {
|
|
7283
7283
|
if (!isDisabled) {
|
|
@@ -7288,7 +7288,7 @@
|
|
|
7288
7288
|
}
|
|
7289
7289
|
}, onKeyDown: this.onKeyDown }),
|
|
7290
7290
|
children,
|
|
7291
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$
|
|
7291
|
+
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$Z.selectToggleButton, styles$Z.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
7292
7292
|
onToggle(!isOpen, event);
|
|
7293
7293
|
if (isOpen) {
|
|
7294
7294
|
onClose();
|
|
@@ -7297,7 +7297,7 @@
|
|
|
7297
7297
|
} }, ((variant === exports.SelectVariant.typeahead || variant === exports.SelectVariant.typeaheadMulti) && {
|
|
7298
7298
|
tabIndex: -1
|
|
7299
7299
|
}), { disabled: isDisabled }),
|
|
7300
|
-
React__namespace.createElement(CaretDownIcon$1, { className: css(styles$
|
|
7300
|
+
React__namespace.createElement(CaretDownIcon$1, { className: css(styles$Z.selectToggleArrow) }))))));
|
|
7301
7301
|
}
|
|
7302
7302
|
}
|
|
7303
7303
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -7321,7 +7321,7 @@
|
|
|
7321
7321
|
};
|
|
7322
7322
|
|
|
7323
7323
|
Promise.resolve().then(function () { return chipGroup; });
|
|
7324
|
-
var styles$
|
|
7324
|
+
var styles$W = {
|
|
7325
7325
|
"chipGroup": "pf-c-chip-group",
|
|
7326
7326
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
7327
7327
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -7334,7 +7334,7 @@
|
|
|
7334
7334
|
};
|
|
7335
7335
|
|
|
7336
7336
|
Promise.resolve().then(function () { return chip; });
|
|
7337
|
-
var styles$
|
|
7337
|
+
var styles$V = {
|
|
7338
7338
|
"badge": "pf-c-badge",
|
|
7339
7339
|
"button": "pf-c-button",
|
|
7340
7340
|
"chip": "pf-c-chip",
|
|
@@ -7357,8 +7357,8 @@
|
|
|
7357
7357
|
this.renderOverflowChip = () => {
|
|
7358
7358
|
const { children, className, onClick, ouiaId } = this.props;
|
|
7359
7359
|
const Component = this.props.component;
|
|
7360
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$
|
|
7361
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7360
|
+
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$V.chip, styles$V.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7361
|
+
React__namespace.createElement("span", { className: css(styles$V.chipText) }, children)));
|
|
7362
7362
|
};
|
|
7363
7363
|
this.renderChip = (randomId) => {
|
|
7364
7364
|
const { children, tooltipPosition } = this.props;
|
|
@@ -7382,8 +7382,8 @@
|
|
|
7382
7382
|
const Component = component;
|
|
7383
7383
|
return (React__namespace.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
|
|
7384
7384
|
style: this.setChipStyle()
|
|
7385
|
-
}), { className: css(styles$
|
|
7386
|
-
React__namespace.createElement("span", { ref: this.span, className: css(styles$
|
|
7385
|
+
}), { className: css(styles$V.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7386
|
+
React__namespace.createElement("span", { ref: this.span, className: css(styles$V.chipText), id: id }, children),
|
|
7387
7387
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7388
7388
|
React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));
|
|
7389
7389
|
}
|
|
@@ -7428,8 +7428,8 @@
|
|
|
7428
7428
|
const { categoryName, tooltipPosition } = this.props;
|
|
7429
7429
|
const { isTooltipVisible } = this.state;
|
|
7430
7430
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
7431
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
7432
|
-
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
7431
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$W.chipGroupLabel) },
|
|
7432
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$W.chipGroupLabel), id: id }, categoryName));
|
|
7433
7433
|
}
|
|
7434
7434
|
render() {
|
|
7435
7435
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -7446,17 +7446,17 @@
|
|
|
7446
7446
|
const chipArray = !isOpen
|
|
7447
7447
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
7448
7448
|
: React__namespace.Children.toArray(children);
|
|
7449
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
7450
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
7449
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$W.chipGroup, className, categoryName && styles$W.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
7450
|
+
React__namespace.createElement("div", { className: css(styles$W.chipGroupMain) },
|
|
7451
7451
|
categoryName && this.renderLabel(id),
|
|
7452
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
7453
|
-
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
7454
|
-
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$
|
|
7452
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$W.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
7453
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$W.chipGroupListItem), key: i }, child))),
|
|
7454
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$W.chipGroupListItem) },
|
|
7455
7455
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
7456
7456
|
this.toggleCollapse();
|
|
7457
7457
|
onOverflowChipClick(event);
|
|
7458
7458
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
7459
|
-
isClosable && (React__namespace.createElement("div", { className: css(styles$
|
|
7459
|
+
isClosable && (React__namespace.createElement("div", { className: css(styles$W.chipGroupClose) },
|
|
7460
7460
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7461
7461
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))))));
|
|
7462
7462
|
};
|
|
@@ -8151,7 +8151,7 @@
|
|
|
8151
8151
|
}
|
|
8152
8152
|
}
|
|
8153
8153
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
8154
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$
|
|
8154
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$Z.selectToggleClear), onClick: e => {
|
|
8155
8155
|
this.clearSelection(e);
|
|
8156
8156
|
onClear(e);
|
|
8157
8157
|
e.stopPropagation();
|
|
@@ -8168,7 +8168,7 @@
|
|
|
8168
8168
|
}
|
|
8169
8169
|
if (hasInlineFilter) {
|
|
8170
8170
|
const filterBox = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8171
|
-
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$
|
|
8171
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$Z.selectMenuSearch) },
|
|
8172
8172
|
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(formStyles.formControl, formStyles.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
8173
8173
|
if (event.key === KeyTypes.ArrowUp) {
|
|
8174
8174
|
this.handleMenuKeys(0, 0, 'up');
|
|
@@ -8274,46 +8274,46 @@
|
|
|
8274
8274
|
// This removes the `position: absolute` styling from the `.pf-c-select__menu`
|
|
8275
8275
|
// allowing the menu to flip correctly
|
|
8276
8276
|
, 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));
|
|
8277
|
-
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$
|
|
8277
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$Z.selectMenu) },
|
|
8278
8278
|
" ",
|
|
8279
8279
|
innerMenu,
|
|
8280
8280
|
" ") : innerMenu;
|
|
8281
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8282
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8281
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.select, isOpen && styles$Z.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$Z.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Z.modifiers.warning, validated === exports.ValidatedOptions.error && styles$Z.modifiers.invalid, direction === exports.SelectDirection.up && styles$Z.modifiers.top, className) }, (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
8282
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.select, isOpen && styles$Z.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$Z.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Z.modifiers.warning, validated === exports.ValidatedOptions.error && styles$Z.modifiers.invalid, direction === exports.SelectDirection.up && styles$Z.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
8283
8283
|
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, handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
8284
|
-
customContent && (React__namespace.createElement("div", { className: css(styles$
|
|
8285
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8286
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8284
|
+
customContent && (React__namespace.createElement("div", { className: css(styles$Z.selectToggleWrapper) },
|
|
8285
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$Z.selectToggleIcon) }, toggleIcon),
|
|
8286
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectToggleText) }, placeholderText))),
|
|
8287
8287
|
variant === exports.SelectVariant.single && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8288
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8289
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8290
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8288
|
+
React__namespace.createElement("div", { className: css(styles$Z.selectToggleWrapper) },
|
|
8289
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$Z.selectToggleIcon) }, toggleIcon),
|
|
8290
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
8291
8291
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8292
8292
|
variant === exports.SelectVariant.checkbox && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8293
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8294
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8295
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8296
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$
|
|
8293
|
+
React__namespace.createElement("div", { className: css(styles$Z.selectToggleWrapper) },
|
|
8294
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$Z.selectToggleIcon) }, toggleIcon),
|
|
8295
|
+
React__namespace.createElement("span", { className: css(styles$Z.selectToggleText) }, placeholderText),
|
|
8296
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$Z.selectToggleBadge) },
|
|
8297
8297
|
React__namespace.createElement("span", { className: css(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
8298
8298
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8299
8299
|
variant === exports.SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8300
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8301
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8302
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8300
|
+
React__namespace.createElement("div", { className: css(styles$Z.selectToggleWrapper) },
|
|
8301
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$Z.selectToggleIcon) }, toggleIcon),
|
|
8302
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$Z.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
8303
8303
|
? typeaheadInputValue
|
|
8304
8304
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8305
8305
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
8306
8306
|
variant === exports.SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8307
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8308
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8307
|
+
React__namespace.createElement("div", { className: css(styles$Z.selectToggleWrapper) },
|
|
8308
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$Z.selectToggleIcon) }, toggleIcon),
|
|
8309
8309
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
8310
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8310
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$Z.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 }))),
|
|
8311
8311
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
8312
|
-
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$
|
|
8312
|
+
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$Z.selectToggleStatusIcon) },
|
|
8313
8313
|
React__namespace.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
8314
|
-
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$
|
|
8314
|
+
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$Z.selectToggleStatusIcon) },
|
|
8315
8315
|
React__namespace.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
8316
|
-
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$
|
|
8316
|
+
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$Z.selectToggleStatusIcon) },
|
|
8317
8317
|
React__namespace.createElement(ExclamationTriangleIcon$1, { "aria-hidden": "true" })))),
|
|
8318
8318
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
8319
8319
|
const getParentElement = () => {
|
|
@@ -8385,7 +8385,7 @@
|
|
|
8385
8385
|
};
|
|
8386
8386
|
|
|
8387
8387
|
Promise.resolve().then(function () { return inputGroup; });
|
|
8388
|
-
var styles$
|
|
8388
|
+
var styles$U = {
|
|
8389
8389
|
"formControl": "pf-c-form-control",
|
|
8390
8390
|
"inputGroup": "pf-c-input-group",
|
|
8391
8391
|
"inputGroupText": "pf-c-input-group__text",
|
|
@@ -8513,7 +8513,7 @@
|
|
|
8513
8513
|
const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
|
|
8514
8514
|
const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
|
|
8515
8515
|
const inputGroupRef = innerRef || React__namespace.useRef(null);
|
|
8516
|
-
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$
|
|
8516
|
+
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$U.inputGroup, className) }, props), idItem
|
|
8517
8517
|
? React__namespace.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
|
|
8518
8518
|
? React__namespace.cloneElement(child, { 'aria-describedby': idItem.props.id })
|
|
8519
8519
|
: child)
|
|
@@ -8529,7 +8529,7 @@
|
|
|
8529
8529
|
const InputGroupText = (_a) => {
|
|
8530
8530
|
var { className = '', component = 'span', children, variant = exports.InputGroupTextVariant.default } = _a, props = __rest$1(_a, ["className", "component", "children", "variant"]);
|
|
8531
8531
|
const Component = component;
|
|
8532
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8532
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$U.inputGroupText, variant === exports.InputGroupTextVariant.plain && styles$U.modifiers.plain, className) }, props), children));
|
|
8533
8533
|
};
|
|
8534
8534
|
InputGroupText.displayName = 'InputGroupText';
|
|
8535
8535
|
|
|
@@ -8547,7 +8547,7 @@
|
|
|
8547
8547
|
var AngleLeftIcon$1 = AngleLeftIcon;
|
|
8548
8548
|
|
|
8549
8549
|
Promise.resolve().then(function () { return calendarMonth; });
|
|
8550
|
-
var styles$
|
|
8550
|
+
var styles$T = {
|
|
8551
8551
|
"calendarMonth": "pf-c-calendar-month",
|
|
8552
8552
|
"calendarMonthCalendar": "pf-c-calendar-month__calendar",
|
|
8553
8553
|
"calendarMonthDate": "pf-c-calendar-month__date",
|
|
@@ -8714,13 +8714,13 @@
|
|
|
8714
8714
|
const isHoveredDateValid = isValidated(hoveredDate);
|
|
8715
8715
|
const monthFormatted = monthFormat(focusedDate);
|
|
8716
8716
|
const yearFormatted = yearFormat(focusedDate);
|
|
8717
|
-
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$
|
|
8718
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8719
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8717
|
+
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$T.calendarMonth, className) }, props),
|
|
8718
|
+
React__default["default"].createElement("div", { className: styles$T.calendarMonthHeader },
|
|
8719
|
+
React__default["default"].createElement("div", { className: css(styles$T.calendarMonthHeaderNavControl, styles$T.modifiers.prevMonth) },
|
|
8720
8720
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": prevMonthAriaLabel, onClick: () => onMonthClick(prevMonth) },
|
|
8721
8721
|
React__default["default"].createElement(AngleLeftIcon$1, { "aria-hidden": true }))),
|
|
8722
8722
|
React__default["default"].createElement(InputGroup, null,
|
|
8723
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8723
|
+
React__default["default"].createElement("div", { className: styles$T.calendarMonthHeaderMonth },
|
|
8724
8724
|
React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
|
|
8725
8725
|
React__default["default"].createElement(Select
|
|
8726
8726
|
// Max width with "September"
|
|
@@ -8742,7 +8742,7 @@
|
|
|
8742
8742
|
setShouldFocus(false);
|
|
8743
8743
|
}, 0);
|
|
8744
8744
|
}, variant: "single", selections: monthFormatted }, longMonths.map((longMonth, index) => (React__default["default"].createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))),
|
|
8745
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8745
|
+
React__default["default"].createElement("div", { className: styles$T.calendarMonthHeaderYear },
|
|
8746
8746
|
React__default["default"].createElement(TextInput, { "aria-label": yearInputAriaLabel, type: "number", value: yearFormatted, onChange: year => {
|
|
8747
8747
|
const newDate = new Date(focusedDate);
|
|
8748
8748
|
newDate.setFullYear(+year);
|
|
@@ -8750,15 +8750,15 @@
|
|
|
8750
8750
|
setHoveredDate(newDate);
|
|
8751
8751
|
setShouldFocus(false);
|
|
8752
8752
|
} }))),
|
|
8753
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8753
|
+
React__default["default"].createElement("div", { className: css(styles$T.calendarMonthHeaderNavControl, styles$T.modifiers.nextMonth) },
|
|
8754
8754
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": nextMonthAriaLabel, onClick: () => onMonthClick(nextMonth) },
|
|
8755
8755
|
React__default["default"].createElement(AngleRightIcon$1, { "aria-hidden": true })))),
|
|
8756
|
-
React__default["default"].createElement("table", { className: styles$
|
|
8757
|
-
React__default["default"].createElement("thead", { className: styles$
|
|
8758
|
-
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$
|
|
8756
|
+
React__default["default"].createElement("table", { className: styles$T.calendarMonthCalendar },
|
|
8757
|
+
React__default["default"].createElement("thead", { className: styles$T.calendarMonthDays },
|
|
8758
|
+
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$T.calendarMonthDay, scope: "col" },
|
|
8759
8759
|
React__default["default"].createElement("span", { className: "pf-screen-reader" }, longWeekdayFormat(date)),
|
|
8760
8760
|
React__default["default"].createElement("span", { "aria-hidden": true }, weekdayFormat(date))))))),
|
|
8761
|
-
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$
|
|
8761
|
+
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$T.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {
|
|
8762
8762
|
const dayFormatted = dayFormat(date);
|
|
8763
8763
|
const isToday = isSameDate(date, today);
|
|
8764
8764
|
const isSelected = isValidDate(dateProp) && isSameDate(date, dateProp);
|
|
@@ -8779,13 +8779,13 @@
|
|
|
8779
8779
|
// Don't handle focused dates before start dates for now.
|
|
8780
8780
|
// Core would likely need new styles
|
|
8781
8781
|
}
|
|
8782
|
-
return (React__default["default"].createElement("td", { key: index, className: css(styles$
|
|
8783
|
-
React__default["default"].createElement("button", Object.assign({ className: css(styles$
|
|
8782
|
+
return (React__default["default"].createElement("td", { key: index, className: css(styles$T.calendarMonthDatesCell, isAdjacentMonth && styles$T.modifiers.adjacentMonth, isToday && styles$T.modifiers.current, (isSelected || isRangeStart) && styles$T.modifiers.selected, !isValid && styles$T.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles$T.modifiers.inRange, isRangeStart && styles$T.modifiers.startRange, isRangeEnd && styles$T.modifiers.endRange) },
|
|
8783
|
+
React__default["default"].createElement("button", Object.assign({ className: css(styles$T.calendarMonthDate, isRangeEnd && styles$T.modifiers.hover, !isValid && styles$T.modifiers.disabled), type: "button", onClick: () => onChange(date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, "aria-label": cellAriaLabel ? cellAriaLabel(date) : `${dayFormatted} ${monthFormatted} ${yearFormatted}` }, (isFocused && { ref: focusRef })), dayFormatted)));
|
|
8784
8784
|
}))))))));
|
|
8785
8785
|
};
|
|
8786
8786
|
|
|
8787
8787
|
Promise.resolve().then(function () { return card; });
|
|
8788
|
-
var styles$
|
|
8788
|
+
var styles$S = {
|
|
8789
8789
|
"card": "pf-c-card",
|
|
8790
8790
|
"cardActions": "pf-c-card__actions",
|
|
8791
8791
|
"cardBody": "pf-c-card__body",
|
|
@@ -8838,13 +8838,13 @@
|
|
|
8838
8838
|
}
|
|
8839
8839
|
const getSelectableModifiers = () => {
|
|
8840
8840
|
if (isDisabledRaised) {
|
|
8841
|
-
return css(styles$
|
|
8841
|
+
return css(styles$S.modifiers.nonSelectableRaised);
|
|
8842
8842
|
}
|
|
8843
8843
|
if (isSelectableRaised) {
|
|
8844
|
-
return css(styles$
|
|
8844
|
+
return css(styles$S.modifiers.selectableRaised, isSelected && styles$S.modifiers.selectedRaised);
|
|
8845
8845
|
}
|
|
8846
8846
|
if (isSelectable || isHoverable) {
|
|
8847
|
-
return css(styles$
|
|
8847
|
+
return css(styles$S.modifiers.selectable, isSelected && styles$S.modifiers.selected);
|
|
8848
8848
|
}
|
|
8849
8849
|
return '';
|
|
8850
8850
|
};
|
|
@@ -8872,33 +8872,33 @@
|
|
|
8872
8872
|
isExpanded
|
|
8873
8873
|
} },
|
|
8874
8874
|
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 }))),
|
|
8875
|
-
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
8875
|
+
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$S.card, isCompact && styles$S.modifiers.compact, isExpanded && styles$S.modifiers.expanded, isFlat && styles$S.modifiers.flat, isRounded && styles$S.modifiers.rounded, isLarge && styles$S.modifiers.displayLg, isFullHeight && styles$S.modifiers.fullHeight, isPlain && styles$S.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
8876
8876
|
};
|
|
8877
8877
|
Card.displayName = 'Card';
|
|
8878
8878
|
|
|
8879
8879
|
const CardActions = (_a) => {
|
|
8880
8880
|
var { children = null, className = '', hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
8881
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8881
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.cardActions, hasNoOffset && styles$S.modifiers.noOffset, className) }, props), children));
|
|
8882
8882
|
};
|
|
8883
8883
|
CardActions.displayName = 'CardActions';
|
|
8884
8884
|
|
|
8885
8885
|
const CardBody = (_a) => {
|
|
8886
8886
|
var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
8887
8887
|
const Component = component;
|
|
8888
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8888
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$S.cardBody, !isFilled && styles$S.modifiers.noFill, className) }, props), children));
|
|
8889
8889
|
};
|
|
8890
8890
|
CardBody.displayName = 'CardBody';
|
|
8891
8891
|
|
|
8892
8892
|
const CardExpandableContent = (_a) => {
|
|
8893
8893
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8894
|
-
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8894
|
+
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$S.cardExpandableContent, className) }, props), children)) : null));
|
|
8895
8895
|
};
|
|
8896
8896
|
CardExpandableContent.displayName = 'CardExpandableContent';
|
|
8897
8897
|
|
|
8898
8898
|
const CardFooter = (_a) => {
|
|
8899
8899
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
8900
8900
|
const Component = component;
|
|
8901
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8901
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$S.cardFooter, className) }, props), children));
|
|
8902
8902
|
};
|
|
8903
8903
|
CardFooter.displayName = 'CardFooter';
|
|
8904
8904
|
|
|
@@ -8911,20 +8911,20 @@
|
|
|
8911
8911
|
registerTitleId(titleId);
|
|
8912
8912
|
return () => registerTitleId('');
|
|
8913
8913
|
}, [registerTitleId, titleId]);
|
|
8914
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8914
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$S.cardTitle, className), id: titleId || undefined }, props), children));
|
|
8915
8915
|
};
|
|
8916
8916
|
CardTitle.displayName = 'CardTitle';
|
|
8917
8917
|
|
|
8918
8918
|
const CardHeader = (_a) => {
|
|
8919
8919
|
var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
8920
8920
|
return (React__namespace.createElement(CardContext.Consumer, null, ({ cardId }) => {
|
|
8921
|
-
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$
|
|
8921
|
+
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$S.cardHeaderToggle) },
|
|
8922
8922
|
React__namespace.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
|
|
8923
8923
|
onExpand(evt, cardId);
|
|
8924
8924
|
} }, toggleButtonProps),
|
|
8925
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8925
|
+
React__namespace.createElement("span", { className: css(styles$S.cardHeaderToggleIcon) },
|
|
8926
8926
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))));
|
|
8927
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8927
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.cardHeader, isToggleRightAligned && styles$S.modifiers.toggleRight, className), id: id }, props),
|
|
8928
8928
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
8929
8929
|
children,
|
|
8930
8930
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
@@ -8967,11 +8967,11 @@
|
|
|
8967
8967
|
checkedProps.defaultChecked = defaultChecked;
|
|
8968
8968
|
}
|
|
8969
8969
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
8970
|
-
return (React__namespace.createElement(Component, { className: css(styles$
|
|
8971
|
-
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
8972
|
-
label && (React__namespace.createElement("label", { className: css(styles$
|
|
8973
|
-
description && React__namespace.createElement("span", { className: css(styles$
|
|
8974
|
-
body && React__namespace.createElement("span", { className: css(styles$
|
|
8970
|
+
return (React__namespace.createElement(Component, { className: css(styles$X.check, !label && styles$X.modifiers.standalone, className) },
|
|
8971
|
+
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$X.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))),
|
|
8972
|
+
label && (React__namespace.createElement("label", { className: css(styles$X.checkLabel, isDisabled && styles$X.modifiers.disabled), htmlFor: props.id }, label)),
|
|
8973
|
+
description && React__namespace.createElement("span", { className: css(styles$X.checkDescription) }, description),
|
|
8974
|
+
body && React__namespace.createElement("span", { className: css(styles$X.checkBody) }, body)));
|
|
8975
8975
|
}
|
|
8976
8976
|
}
|
|
8977
8977
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -8986,7 +8986,7 @@
|
|
|
8986
8986
|
};
|
|
8987
8987
|
|
|
8988
8988
|
Promise.resolve().then(function () { return clipboardCopy; });
|
|
8989
|
-
var styles$
|
|
8989
|
+
var styles$R = {
|
|
8990
8990
|
"button": "pf-c-button",
|
|
8991
8991
|
"clipboardCopy": "pf-c-clipboard-copy",
|
|
8992
8992
|
"clipboardCopyActions": "pf-c-clipboard-copy__actions",
|
|
@@ -9005,7 +9005,7 @@
|
|
|
9005
9005
|
};
|
|
9006
9006
|
|
|
9007
9007
|
Promise.resolve().then(function () { return popover; });
|
|
9008
|
-
var styles$
|
|
9008
|
+
var styles$Q = {
|
|
9009
9009
|
"button": "pf-c-button",
|
|
9010
9010
|
"modifiers": {
|
|
9011
9011
|
"noPadding": "pf-m-no-padding",
|
|
@@ -9045,25 +9045,25 @@
|
|
|
9045
9045
|
|
|
9046
9046
|
const PopoverContent = (_a) => {
|
|
9047
9047
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
9048
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9048
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.popoverContent, className) }, props), children));
|
|
9049
9049
|
};
|
|
9050
9050
|
PopoverContent.displayName = 'PopoverContent';
|
|
9051
9051
|
|
|
9052
9052
|
const PopoverBody = (_a) => {
|
|
9053
9053
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
9054
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9054
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.popoverBody, className), id: id }, props), children));
|
|
9055
9055
|
};
|
|
9056
9056
|
PopoverBody.displayName = 'PopoverBody';
|
|
9057
9057
|
|
|
9058
9058
|
const PopoverHeaderIcon = (_a) => {
|
|
9059
9059
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9060
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9060
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$Q.popoverTitleIcon, className) }, props), children));
|
|
9061
9061
|
};
|
|
9062
9062
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
9063
9063
|
|
|
9064
9064
|
const PopoverHeaderText = (_a) => {
|
|
9065
9065
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9066
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9066
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$Q.popoverTitleText, className) }, props), children));
|
|
9067
9067
|
};
|
|
9068
9068
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
9069
9069
|
|
|
@@ -9071,7 +9071,7 @@
|
|
|
9071
9071
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
9072
9072
|
const HeadingLevel = titleHeadingLevel;
|
|
9073
9073
|
return icon || alertSeverityVariant ? (React__namespace.createElement("header", Object.assign({ className: css('pf-c-popover__header', className), id: id }, props),
|
|
9074
|
-
React__namespace.createElement(HeadingLevel, { className: css(styles$
|
|
9074
|
+
React__namespace.createElement(HeadingLevel, { className: css(styles$Q.popoverTitle, icon && styles$Q.modifiers.icon) },
|
|
9075
9075
|
icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
|
|
9076
9076
|
alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
9077
9077
|
React__namespace.createElement(PopoverHeaderText, null, children)))) : (React__namespace.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: exports.TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -9080,7 +9080,7 @@
|
|
|
9080
9080
|
|
|
9081
9081
|
const PopoverFooter = (_a) => {
|
|
9082
9082
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9083
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
9083
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$Q.popoverFooter, className) }, props), children));
|
|
9084
9084
|
};
|
|
9085
9085
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
9086
9086
|
|
|
@@ -9101,7 +9101,7 @@
|
|
|
9101
9101
|
|
|
9102
9102
|
const PopoverArrow = (_a) => {
|
|
9103
9103
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
9104
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9104
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$Q.popoverArrow, className) }, props));
|
|
9105
9105
|
};
|
|
9106
9106
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
9107
9107
|
|
|
@@ -9136,11 +9136,11 @@
|
|
|
9136
9136
|
PopoverPosition["rightEnd"] = "right-end";
|
|
9137
9137
|
})(exports.PopoverPosition || (exports.PopoverPosition = {}));
|
|
9138
9138
|
const alertStyle = {
|
|
9139
|
-
default: styles$
|
|
9140
|
-
info: styles$
|
|
9141
|
-
success: styles$
|
|
9142
|
-
warning: styles$
|
|
9143
|
-
danger: styles$
|
|
9139
|
+
default: styles$Q.modifiers.default,
|
|
9140
|
+
info: styles$Q.modifiers.info,
|
|
9141
|
+
success: styles$Q.modifiers.success,
|
|
9142
|
+
warning: styles$Q.modifiers.warning,
|
|
9143
|
+
danger: styles$Q.modifiers.danger
|
|
9144
9144
|
};
|
|
9145
9145
|
const Popover = (_a) => {
|
|
9146
9146
|
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 = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
@@ -9204,18 +9204,18 @@
|
|
|
9204
9204
|
}, 0);
|
|
9205
9205
|
};
|
|
9206
9206
|
const positionModifiers = {
|
|
9207
|
-
top: styles$
|
|
9208
|
-
bottom: styles$
|
|
9209
|
-
left: styles$
|
|
9210
|
-
right: styles$
|
|
9211
|
-
'top-start': styles$
|
|
9212
|
-
'top-end': styles$
|
|
9213
|
-
'bottom-start': styles$
|
|
9214
|
-
'bottom-end': styles$
|
|
9215
|
-
'left-start': styles$
|
|
9216
|
-
'left-end': styles$
|
|
9217
|
-
'right-start': styles$
|
|
9218
|
-
'right-end': styles$
|
|
9207
|
+
top: styles$Q.modifiers.top,
|
|
9208
|
+
bottom: styles$Q.modifiers.bottom,
|
|
9209
|
+
left: styles$Q.modifiers.left,
|
|
9210
|
+
right: styles$Q.modifiers.right,
|
|
9211
|
+
'top-start': styles$Q.modifiers.topLeft,
|
|
9212
|
+
'top-end': styles$Q.modifiers.topRight,
|
|
9213
|
+
'bottom-start': styles$Q.modifiers.bottomLeft,
|
|
9214
|
+
'bottom-end': styles$Q.modifiers.bottomRight,
|
|
9215
|
+
'left-start': styles$Q.modifiers.leftTop,
|
|
9216
|
+
'left-end': styles$Q.modifiers.leftBottom,
|
|
9217
|
+
'right-start': styles$Q.modifiers.rightTop,
|
|
9218
|
+
'right-end': styles$Q.modifiers.rightBottom
|
|
9219
9219
|
};
|
|
9220
9220
|
const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
|
|
9221
9221
|
const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
|
|
@@ -9292,7 +9292,7 @@
|
|
|
9292
9292
|
}
|
|
9293
9293
|
return node;
|
|
9294
9294
|
}
|
|
9295
|
-
}, preventScrollOnDeactivate: true, className: css(styles$
|
|
9295
|
+
}, preventScrollOnDeactivate: true, className: css(styles$Q.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$Q.modifiers.noPadding, hasAutoWidth && styles$Q.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: {
|
|
9296
9296
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
9297
9297
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
9298
9298
|
opacity,
|
|
@@ -9355,7 +9355,7 @@
|
|
|
9355
9355
|
}
|
|
9356
9356
|
render() {
|
|
9357
9357
|
const _a = this.props, { className, children, onChange, isReadOnly, isCode } = _a, props = __rest$1(_a, ["className", "children", "onChange", "isReadOnly", "isCode"]);
|
|
9358
|
-
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$
|
|
9358
|
+
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$R.clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? React__namespace.createElement("pre", null, children) : children));
|
|
9359
9359
|
}
|
|
9360
9360
|
}
|
|
9361
9361
|
ClipboardCopyExpanded.displayName = 'ClipboardCopyExpanded';
|
|
@@ -9415,12 +9415,12 @@
|
|
|
9415
9415
|
const textIdPrefix = 'text-input-';
|
|
9416
9416
|
const toggleIdPrefix = 'toggle-';
|
|
9417
9417
|
const contentIdPrefix = 'content-';
|
|
9418
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9418
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.clipboardCopy, variant === 'inline-compact' && styles$R.modifiers.inline, isBlock && styles$R.modifiers.block, this.state.expanded && styles$R.modifiers.expanded, className) }, divProps),
|
|
9419
9419
|
variant === 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9420
|
-
!isCode && (React__namespace.createElement("span", { className: css(styles$
|
|
9421
|
-
isCode && (React__namespace.createElement("code", { className: css(styles$
|
|
9422
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9423
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9420
|
+
!isCode && (React__namespace.createElement("span", { className: css(styles$R.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9421
|
+
isCode && (React__namespace.createElement("code", { className: css(styles$R.clipboardCopyText, styles$R.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9422
|
+
React__namespace.createElement("span", { className: css(styles$R.clipboardCopyActions) },
|
|
9423
|
+
React__namespace.createElement("span", { className: css(styles$R.clipboardCopyActionsItem) },
|
|
9424
9424
|
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) => {
|
|
9425
9425
|
if (this.timer) {
|
|
9426
9426
|
window.clearTimeout(this.timer);
|
|
@@ -9436,7 +9436,7 @@
|
|
|
9436
9436
|
} }, this.state.copied ? clickTip : hoverTip)),
|
|
9437
9437
|
additionalActions && additionalActions))))),
|
|
9438
9438
|
variant !== 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9439
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9439
|
+
React__namespace.createElement("div", { className: css(styles$R.clipboardCopyGroup) },
|
|
9440
9440
|
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 })),
|
|
9441
9441
|
React__namespace.createElement(TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, "aria-label": textAriaLabel }),
|
|
9442
9442
|
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) => {
|
|
@@ -9485,12 +9485,12 @@
|
|
|
9485
9485
|
|
|
9486
9486
|
const ClipboardCopyAction = (_a) => {
|
|
9487
9487
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9488
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9488
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.clipboardCopyActionsItem, className) }, props), children));
|
|
9489
9489
|
};
|
|
9490
9490
|
ClipboardCopyAction.displayName = 'ClipboardCopyAction';
|
|
9491
9491
|
|
|
9492
9492
|
Promise.resolve().then(function () { return codeBlock; });
|
|
9493
|
-
var styles$
|
|
9493
|
+
var styles$P = {
|
|
9494
9494
|
"codeBlock": "pf-c-code-block",
|
|
9495
9495
|
"codeBlockActions": "pf-c-code-block__actions",
|
|
9496
9496
|
"codeBlockCode": "pf-c-code-block__code",
|
|
@@ -9501,17 +9501,17 @@
|
|
|
9501
9501
|
|
|
9502
9502
|
const CodeBlock = (_a) => {
|
|
9503
9503
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
9504
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9505
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9506
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9507
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9504
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$P.codeBlock, className) }, props),
|
|
9505
|
+
React__namespace.createElement("div", { className: css(styles$P.codeBlockHeader) },
|
|
9506
|
+
React__namespace.createElement("div", { className: css(styles$P.codeBlockActions) }, actions && actions)),
|
|
9507
|
+
React__namespace.createElement("div", { className: css(styles$P.codeBlockContent) }, children)));
|
|
9508
9508
|
};
|
|
9509
9509
|
CodeBlock.displayName = 'CodeBlock';
|
|
9510
9510
|
|
|
9511
9511
|
const CodeBlockCode = (_a) => {
|
|
9512
9512
|
var { children = null, className, codeClassName } = _a, props = __rest$1(_a, ["children", "className", "codeClassName"]);
|
|
9513
|
-
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$
|
|
9514
|
-
React__namespace.createElement("code", { className: css(styles$
|
|
9513
|
+
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$P.codeBlockPre, className) }, props),
|
|
9514
|
+
React__namespace.createElement("code", { className: css(styles$P.codeBlockCode, codeClassName) }, children)));
|
|
9515
9515
|
};
|
|
9516
9516
|
CodeBlockCode.displayName = 'CodeBlockCode';
|
|
9517
9517
|
|
|
@@ -9522,7 +9522,7 @@
|
|
|
9522
9522
|
CodeBlockAction.displayName = 'CodeBlockAction';
|
|
9523
9523
|
|
|
9524
9524
|
Promise.resolve().then(function () { return contextSelector; });
|
|
9525
|
-
var styles$
|
|
9525
|
+
var styles$O = {
|
|
9526
9526
|
"contextSelector": "pf-c-context-selector",
|
|
9527
9527
|
"contextSelectorMenu": "pf-c-context-selector__menu",
|
|
9528
9528
|
"contextSelectorMenuFooter": "pf-c-context-selector__menu-footer",
|
|
@@ -9609,9 +9609,9 @@
|
|
|
9609
9609
|
isActive, onEnter, parentRef } = _a,
|
|
9610
9610
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
9611
9611
|
props = __rest$1(_a, ["className", "toggleText", "isOpen", "onToggle", "id", "isPlain", "isText", "isActive", "onEnter", "parentRef"]);
|
|
9612
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$
|
|
9613
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9614
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9612
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$O.contextSelectorToggle, isActive && styles$O.modifiers.active, isPlain && styles$O.modifiers.plain, isText && styles$O.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
|
|
9613
|
+
React__namespace.createElement("span", { className: css(styles$O.contextSelectorToggleText) }, toggleText),
|
|
9614
|
+
React__namespace.createElement("span", { className: css(styles$O.contextSelectorToggleIcon) },
|
|
9615
9615
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true }))));
|
|
9616
9616
|
}
|
|
9617
9617
|
}
|
|
@@ -9637,7 +9637,7 @@
|
|
|
9637
9637
|
this.render = () => {
|
|
9638
9638
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9639
9639
|
const _a = this.props, { className, isOpen, children } = _a, props = __rest$1(_a, ["className", "isOpen", "children"]);
|
|
9640
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
9640
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$O.contextSelectorMenuList, className), hidden: !isOpen, role: "menu" }, props), this.extendChildren()));
|
|
9641
9641
|
};
|
|
9642
9642
|
}
|
|
9643
9643
|
extendChildren() {
|
|
@@ -9679,8 +9679,8 @@
|
|
|
9679
9679
|
const uniqueId = id || getUniqueId();
|
|
9680
9680
|
const toggleId = `pf-context-selector-toggle-id-${uniqueId}`;
|
|
9681
9681
|
const screenReaderLabelId = `pf-context-selector-label-id-${uniqueId}`;
|
|
9682
|
-
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9683
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9682
|
+
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$O.contextSelectorMenu) }, (isFlipEnabled && { style: { position: 'revert' } }), { id: uniqueId }), isOpen && (React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } } },
|
|
9683
|
+
React__namespace.createElement("div", { className: css(styles$O.contextSelectorMenuSearch) },
|
|
9684
9684
|
React__namespace.createElement(InputGroup, null,
|
|
9685
9685
|
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-label": searchButtonAriaLabel }),
|
|
9686
9686
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, onClick: onSearchButtonClick },
|
|
@@ -9688,8 +9688,8 @@
|
|
|
9688
9688
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
9689
9689
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
9690
9690
|
footer))));
|
|
9691
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9692
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9691
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$O.contextSelector, isOpen && styles$O.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
|
|
9692
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$O.contextSelector, isOpen && styles$O.modifiers.expanded, isFullHeight && styles$O.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
9693
9693
|
screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
|
|
9694
9694
|
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 }),
|
|
9695
9695
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
@@ -9740,7 +9740,7 @@
|
|
|
9740
9740
|
const Component = href ? 'a' : 'button';
|
|
9741
9741
|
const isDisabledLink = href && isDisabled;
|
|
9742
9742
|
return (React__namespace.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (React__namespace.createElement("li", { role: "none" },
|
|
9743
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
9743
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$O.contextSelectorMenuListItem, isDisabledLink && styles$O.modifiers.disabled, className), ref: this.ref, onClick: event => {
|
|
9744
9744
|
if (!isDisabled) {
|
|
9745
9745
|
onClick(event);
|
|
9746
9746
|
onSelect(event, children);
|
|
@@ -9761,12 +9761,12 @@
|
|
|
9761
9761
|
|
|
9762
9762
|
const ContextSelectorFooter = (_a) => {
|
|
9763
9763
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9764
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
9764
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$O.contextSelectorMenuFooter, className) }), children));
|
|
9765
9765
|
};
|
|
9766
9766
|
ContextSelectorFooter.displayName = 'ContextSelectorFooter';
|
|
9767
9767
|
|
|
9768
9768
|
Promise.resolve().then(function () { return dataList; });
|
|
9769
|
-
var styles$
|
|
9769
|
+
var styles$N = {
|
|
9770
9770
|
"dataList": "pf-c-data-list",
|
|
9771
9771
|
"dataListAction": "pf-c-data-list__action",
|
|
9772
9772
|
"dataListCell": "pf-c-data-list__cell",
|
|
@@ -9903,7 +9903,7 @@
|
|
|
9903
9903
|
this.dragStart0 = (el) => {
|
|
9904
9904
|
const { onDragStart } = this.props;
|
|
9905
9905
|
const draggedItemId = el.id;
|
|
9906
|
-
el.classList.add(styles$
|
|
9906
|
+
el.classList.add(styles$N.modifiers.ghostRow);
|
|
9907
9907
|
el.setAttribute('aria-pressed', 'true');
|
|
9908
9908
|
this.setState({
|
|
9909
9909
|
draggedItemId,
|
|
@@ -9919,8 +9919,8 @@
|
|
|
9919
9919
|
this.onDragCancel = () => {
|
|
9920
9920
|
this.move(this.props.itemOrder);
|
|
9921
9921
|
Array.from(this.ref.current.children).forEach(el => {
|
|
9922
|
-
el.classList.remove(styles$
|
|
9923
|
-
el.classList.remove(styles$
|
|
9922
|
+
el.classList.remove(styles$N.modifiers.ghostRow);
|
|
9923
|
+
el.classList.remove(styles$N.modifiers.dragOver);
|
|
9924
9924
|
el.setAttribute('aria-pressed', 'false');
|
|
9925
9925
|
});
|
|
9926
9926
|
this.setState({
|
|
@@ -9942,8 +9942,8 @@
|
|
|
9942
9942
|
}
|
|
9943
9943
|
};
|
|
9944
9944
|
this.dragEnd0 = (el) => {
|
|
9945
|
-
el.classList.remove(styles$
|
|
9946
|
-
el.classList.remove(styles$
|
|
9945
|
+
el.classList.remove(styles$N.modifiers.ghostRow);
|
|
9946
|
+
el.classList.remove(styles$N.modifiers.dragOver);
|
|
9947
9947
|
el.setAttribute('aria-pressed', 'false');
|
|
9948
9948
|
this.setState({
|
|
9949
9949
|
draggedItemId: null,
|
|
@@ -10022,14 +10022,14 @@
|
|
|
10022
10022
|
const nextSelection = dragItem.previousSibling;
|
|
10023
10023
|
if (nextSelection) {
|
|
10024
10024
|
this.dragOver0(nextSelection.id);
|
|
10025
|
-
dragItem.querySelector(`.${styles$
|
|
10025
|
+
dragItem.querySelector(`.${styles$N.dataListItemDraggableButton}`).focus();
|
|
10026
10026
|
}
|
|
10027
10027
|
}
|
|
10028
10028
|
else if (evt.key === 'ArrowDown') {
|
|
10029
10029
|
const nextSelection = dragItem.nextSibling;
|
|
10030
10030
|
if (nextSelection) {
|
|
10031
10031
|
this.dragOver0(nextSelection.id);
|
|
10032
|
-
dragItem.querySelector(`.${styles$
|
|
10032
|
+
dragItem.querySelector(`.${styles$N.dataListItemDraggableButton}`).focus();
|
|
10033
10033
|
}
|
|
10034
10034
|
}
|
|
10035
10035
|
}
|
|
@@ -10080,7 +10080,7 @@
|
|
|
10080
10080
|
drop: this.drop,
|
|
10081
10081
|
dragKeyHandler: this.handleDragButtonKeys
|
|
10082
10082
|
} },
|
|
10083
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
10083
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$N.dataList, isCompact && styles$N.modifiers.compact, gridBreakpointClasses[gridBreakpoint], wrapModifier && styles$N.modifiers[wrapModifier], dragging && styles$N.modifiers.dragOver, className), style: props.style }, props, dragProps, { ref: this.ref }), children)));
|
|
10084
10084
|
}
|
|
10085
10085
|
}
|
|
10086
10086
|
DataList.displayName = 'DataList';
|
|
@@ -10099,13 +10099,13 @@
|
|
|
10099
10099
|
id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isPlainButtonAction } = _a,
|
|
10100
10100
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
10101
10101
|
props = __rest$1(_a, ["children", "className", "visibility", "id", 'aria-label', 'aria-labelledby', "isPlainButtonAction"]);
|
|
10102
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10102
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListItemAction, formatBreakpointMods(visibility, styles$N), className) }, props), isPlainButtonAction ? React__namespace.createElement("div", { className: css(styles$N.dataListAction) }, children) : children));
|
|
10103
10103
|
};
|
|
10104
10104
|
DataListAction.displayName = 'DataListAction';
|
|
10105
10105
|
|
|
10106
10106
|
const DataListCell = (_a) => {
|
|
10107
10107
|
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"]);
|
|
10108
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10108
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListCell, width > 1 && styles$N.modifiers[`flex_${width}`], !isFilled && styles$N.modifiers.noFill, alignRight && styles$N.modifiers.alignRight, isIcon && styles$N.modifiers.icon, className, wrapModifier && styles$N.modifiers[wrapModifier]) }, props), children));
|
|
10109
10109
|
};
|
|
10110
10110
|
DataListCell.displayName = 'DataListCell';
|
|
10111
10111
|
|
|
@@ -10113,17 +10113,17 @@
|
|
|
10113
10113
|
var { className = '',
|
|
10114
10114
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10115
10115
|
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"]);
|
|
10116
|
-
const check = (React__namespace.createElement("div", { className: css(styles$
|
|
10116
|
+
const check = (React__namespace.createElement("div", { className: css(styles$N.dataListCheck) },
|
|
10117
10117
|
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 })))));
|
|
10118
10118
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10119
|
-
!otherControls && React__namespace.createElement("div", { className: css(styles$
|
|
10119
|
+
!otherControls && React__namespace.createElement("div", { className: css(styles$N.dataListItemControl, className) }, check),
|
|
10120
10120
|
otherControls && check));
|
|
10121
10121
|
};
|
|
10122
10122
|
DataListCheck.displayName = 'DataListCheck';
|
|
10123
10123
|
|
|
10124
10124
|
const DataListControl = (_a) => {
|
|
10125
10125
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10126
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10126
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListItemControl, className) }, props), children));
|
|
10127
10127
|
};
|
|
10128
10128
|
DataListControl.displayName = 'DataListControl';
|
|
10129
10129
|
|
|
@@ -10142,8 +10142,8 @@
|
|
|
10142
10142
|
|
|
10143
10143
|
const DataListDragButton = (_a) => {
|
|
10144
10144
|
var { className = '', isDisabled = false } = _a, props = __rest$1(_a, ["className", "isDisabled"]);
|
|
10145
|
-
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
10146
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10145
|
+
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$N.dataListItemDraggableButton, isDisabled && styles$N.modifiers.disabled, className), onKeyDown: dragKeyHandler, type: "button", disabled: isDisabled }, props),
|
|
10146
|
+
React__namespace.createElement("span", { className: css(styles$N.dataListItemDraggableIcon) },
|
|
10147
10147
|
React__namespace.createElement(GripVerticalIcon$1, null))))));
|
|
10148
10148
|
};
|
|
10149
10149
|
DataListDragButton.displayName = 'DataListDragButton';
|
|
@@ -10173,8 +10173,8 @@
|
|
|
10173
10173
|
let target = event.target;
|
|
10174
10174
|
while (event.currentTarget !== target) {
|
|
10175
10175
|
if (('onclick' in target && target.onclick) ||
|
|
10176
|
-
target.parentNode.classList.contains(styles$
|
|
10177
|
-
target.parentNode.classList.contains(styles$
|
|
10176
|
+
target.parentNode.classList.contains(styles$N.dataListItemAction) ||
|
|
10177
|
+
target.parentNode.classList.contains(styles$N.dataListItemControl)) {
|
|
10178
10178
|
// check other event handlers are not present.
|
|
10179
10179
|
return;
|
|
10180
10180
|
}
|
|
@@ -10204,7 +10204,7 @@
|
|
|
10204
10204
|
? { 'aria-label': selectableInputAriaLabel }
|
|
10205
10205
|
: { 'aria-labelledby': ariaLabelledBy };
|
|
10206
10206
|
const selectableInputType = (selectableRow === null || selectableRow === void 0 ? void 0 : selectableRow.type) === 'multiple' ? 'checkbox' : 'radio';
|
|
10207
|
-
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$
|
|
10207
|
+
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$N.dataListItem, isExpanded && styles$N.modifiers.expanded, isSelectable && styles$N.modifiers.selectable, selectedDataListItemId && isSelected && styles$N.modifiers.selected, className), "aria-labelledby": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && isSelected && { 'aria-selected': true }), props, dragProps),
|
|
10208
10208
|
selectableRow && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", type: selectableInputType, checked: isSelected, onChange: event => selectableRow.onChange(id, event), tabIndex: -1 }, selectableInputAriaProps))),
|
|
10209
10209
|
React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10210
10210
|
React__namespace.cloneElement(child, {
|
|
@@ -10226,13 +10226,13 @@
|
|
|
10226
10226
|
var { className = '', dataListCells,
|
|
10227
10227
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10228
10228
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "dataListCells", "rowid"]);
|
|
10229
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10229
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListItemContent, className) }, props), dataListCells));
|
|
10230
10230
|
};
|
|
10231
10231
|
DataListItemCells.displayName = 'DataListItemCells';
|
|
10232
10232
|
|
|
10233
10233
|
const DataListItemRow = (_a) => {
|
|
10234
10234
|
var { children, className = '', rowid = '', wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "rowid", "wrapModifier"]);
|
|
10235
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10235
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListItemRow, className, wrapModifier && styles$N.modifiers[wrapModifier]) }, props), React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10236
10236
|
React__namespace.cloneElement(child, {
|
|
10237
10237
|
rowid
|
|
10238
10238
|
}))));
|
|
@@ -10241,10 +10241,10 @@
|
|
|
10241
10241
|
|
|
10242
10242
|
const DataListToggle = (_a) => {
|
|
10243
10243
|
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"]);
|
|
10244
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10245
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10244
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.dataListItemControl, className) }, props),
|
|
10245
|
+
React__namespace.createElement("div", { className: css(styles$N.dataListToggle) },
|
|
10246
10246
|
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 },
|
|
10247
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10247
|
+
React__namespace.createElement("div", { className: css(styles$N.dataListToggleIcon) },
|
|
10248
10248
|
React__namespace.createElement(AngleRightIcon$1, null))))));
|
|
10249
10249
|
};
|
|
10250
10250
|
DataListToggle.displayName = 'DataListToggle';
|
|
@@ -10253,8 +10253,8 @@
|
|
|
10253
10253
|
var { className = '', children = null, id = '', isHidden = false, 'aria-label': ariaLabel, hasNoPadding = false,
|
|
10254
10254
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10255
10255
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", 'aria-label', "hasNoPadding", "rowid"]);
|
|
10256
|
-
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$
|
|
10257
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10256
|
+
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$N.dataListExpandableContent, className), hidden: isHidden, "aria-label": ariaLabel }, props),
|
|
10257
|
+
React__namespace.createElement("div", { className: css(styles$N.dataListExpandableContentBody, hasNoPadding && styles$N.modifiers.noPadding) }, children)));
|
|
10258
10258
|
};
|
|
10259
10259
|
DataListContent.displayName = 'DataListContent';
|
|
10260
10260
|
|
|
@@ -10271,7 +10271,7 @@
|
|
|
10271
10271
|
}
|
|
10272
10272
|
onMouseEnterProp(event);
|
|
10273
10273
|
};
|
|
10274
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$
|
|
10274
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$N.modifiers[wrapModifier], styles$N.dataListText) }, props), children));
|
|
10275
10275
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, { content: tooltip, isVisible: true }, text)) : (text);
|
|
10276
10276
|
};
|
|
10277
10277
|
DataListText.displayName = 'DataListText';
|
|
@@ -10414,7 +10414,7 @@
|
|
|
10414
10414
|
DatePicker.displayName = 'DatePicker';
|
|
10415
10415
|
|
|
10416
10416
|
Promise.resolve().then(function () { return descriptionList; });
|
|
10417
|
-
var styles$
|
|
10417
|
+
var styles$M = {
|
|
10418
10418
|
"card": "pf-c-card",
|
|
10419
10419
|
"descriptionList": "pf-c-description-list",
|
|
10420
10420
|
"descriptionListDescription": "pf-c-description-list__description",
|
|
@@ -10477,45 +10477,45 @@
|
|
|
10477
10477
|
if (isHorizontal && horizontalTermWidthModifier) {
|
|
10478
10478
|
style = Object.assign(Object.assign({}, style), setBreakpointModifiers('--pf-c-description-list--m-horizontal__term--width', horizontalTermWidthModifier));
|
|
10479
10479
|
}
|
|
10480
|
-
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$
|
|
10480
|
+
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$M.descriptionList, (isHorizontal || isFluid) && styles$M.modifiers.horizontal, isAutoColumnWidths && styles$M.modifiers.autoColumnWidths, isAutoFit && styles$M.modifiers.autoFit, formatBreakpointMods(columnModifier, styles$M), formatBreakpointMods(orientation, styles$M), isInlineGrid && styles$M.modifiers.inlineGrid, isCompact && styles$M.modifiers.compact, isFluid && styles$M.modifiers.fluid, isFillColumns && styles$M.modifiers.fillColumns, className), style: style }, props), children));
|
|
10481
10481
|
};
|
|
10482
10482
|
DescriptionList.displayName = 'DescriptionList';
|
|
10483
10483
|
|
|
10484
10484
|
const DescriptionListDescription = (_a) => {
|
|
10485
10485
|
var { children = null, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10486
|
-
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$
|
|
10486
|
+
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$M.descriptionListDescription, className) }, props),
|
|
10487
10487
|
React__namespace.createElement("div", { className: 'pf-c-description-list__text' }, children)));
|
|
10488
10488
|
};
|
|
10489
10489
|
DescriptionListDescription.displayName = 'DescriptionListDescription';
|
|
10490
10490
|
|
|
10491
10491
|
const DescriptionListGroup = (_a) => {
|
|
10492
10492
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10493
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10493
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.descriptionListGroup, className) }, props), children));
|
|
10494
10494
|
};
|
|
10495
10495
|
DescriptionListGroup.displayName = 'DescriptionListGroup';
|
|
10496
10496
|
|
|
10497
10497
|
const DescriptionListTerm = (_a) => {
|
|
10498
10498
|
var { children, className, icon } = _a, props = __rest$1(_a, ["children", "className", "icon"]);
|
|
10499
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10500
|
-
icon ? React__namespace.createElement("span", { className: css(styles$
|
|
10501
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10499
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$M.descriptionListTerm, className) }, props),
|
|
10500
|
+
icon ? React__namespace.createElement("span", { className: css(styles$M.descriptionListTermIcon) }, icon) : null,
|
|
10501
|
+
React__namespace.createElement("span", { className: css(styles$M.descriptionListText) }, children)));
|
|
10502
10502
|
};
|
|
10503
10503
|
DescriptionListTerm.displayName = 'DescriptionListTerm';
|
|
10504
10504
|
|
|
10505
10505
|
const DescriptionListTermHelpText = (_a) => {
|
|
10506
10506
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10507
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10507
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$M.descriptionListTerm, className) }, props), children));
|
|
10508
10508
|
};
|
|
10509
10509
|
DescriptionListTermHelpText.displayName = 'DescriptionListTermHelpText';
|
|
10510
10510
|
|
|
10511
10511
|
const DescriptionListTermHelpTextButton = (_a) => {
|
|
10512
10512
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10513
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$
|
|
10513
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$M.descriptionListText, styles$M.modifiers.helpText), role: "button", type: "button", tabIndex: 0 }, props), children));
|
|
10514
10514
|
};
|
|
10515
10515
|
DescriptionListTermHelpTextButton.displayName = 'DescriptionListTermHelpTextButton';
|
|
10516
10516
|
|
|
10517
10517
|
Promise.resolve().then(function () { return drawer; });
|
|
10518
|
-
var styles$
|
|
10518
|
+
var styles$L = {
|
|
10519
10519
|
"drawer": "pf-c-drawer",
|
|
10520
10520
|
"drawerActions": "pf-c-drawer__actions",
|
|
10521
10521
|
"drawerBody": "pf-c-drawer__body",
|
|
@@ -10596,7 +10596,7 @@
|
|
|
10596
10596
|
const drawerRef = React__namespace.useRef();
|
|
10597
10597
|
const drawerContentRef = React__namespace.useRef();
|
|
10598
10598
|
return (React__namespace.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
10599
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10599
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawer, isExpanded && styles$L.modifiers.expanded, isInline && styles$L.modifiers.inline, isStatic && styles$L.modifiers.static, position === 'left' && styles$L.modifiers.panelLeft, position === 'bottom' && styles$L.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
10600
10600
|
};
|
|
10601
10601
|
Drawer.displayName = 'Drawer';
|
|
10602
10602
|
|
|
@@ -10604,7 +10604,7 @@
|
|
|
10604
10604
|
var {
|
|
10605
10605
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10606
10606
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10607
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10607
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerActions, className) }, props), children));
|
|
10608
10608
|
};
|
|
10609
10609
|
DrawerActions.displayName = 'DrawerActions';
|
|
10610
10610
|
|
|
@@ -10612,7 +10612,7 @@
|
|
|
10612
10612
|
var {
|
|
10613
10613
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10614
10614
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
10615
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10615
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerClose, className) }, props),
|
|
10616
10616
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
10617
10617
|
React__namespace.createElement(TimesIcon$1, null))));
|
|
10618
10618
|
};
|
|
@@ -10622,7 +10622,7 @@
|
|
|
10622
10622
|
var {
|
|
10623
10623
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10624
10624
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10625
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10625
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerMain, className) }, props), children));
|
|
10626
10626
|
};
|
|
10627
10627
|
DrawerMain.displayName = 'DrawerMain';
|
|
10628
10628
|
|
|
@@ -10632,7 +10632,7 @@
|
|
|
10632
10632
|
className = '', children, panelContent, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
10633
10633
|
const { drawerContentRef } = React__namespace.useContext(DrawerContext);
|
|
10634
10634
|
return (React__namespace.createElement(DrawerMain, null,
|
|
10635
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10635
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerContent, colorVariant === exports.DrawerColorVariant.light200 && styles$L.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
10636
10636
|
panelContent));
|
|
10637
10637
|
};
|
|
10638
10638
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -10641,7 +10641,7 @@
|
|
|
10641
10641
|
var {
|
|
10642
10642
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10643
10643
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
10644
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10644
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerBody, hasPadding && styles$L.modifiers.padding, className) }, props), children));
|
|
10645
10645
|
};
|
|
10646
10646
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
10647
10647
|
|
|
@@ -10649,7 +10649,7 @@
|
|
|
10649
10649
|
var {
|
|
10650
10650
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10651
10651
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10652
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10652
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerBody, hasNoPadding && styles$L.modifiers.noPadding, className) }, props), children));
|
|
10653
10653
|
};
|
|
10654
10654
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
10655
10655
|
|
|
@@ -10658,7 +10658,7 @@
|
|
|
10658
10658
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10659
10659
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10660
10660
|
return (React__namespace.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
10661
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10661
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerHead, className) }, props), children)));
|
|
10662
10662
|
};
|
|
10663
10663
|
DrawerHead.displayName = 'DrawerHead';
|
|
10664
10664
|
|
|
@@ -10726,7 +10726,7 @@
|
|
|
10726
10726
|
e.preventDefault();
|
|
10727
10727
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
10728
10728
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
10729
|
-
drawerRef.current.classList.add(css(styles$
|
|
10729
|
+
drawerRef.current.classList.add(css(styles$L.modifiers.resizing));
|
|
10730
10730
|
isResizing = true;
|
|
10731
10731
|
setInitialVals = true;
|
|
10732
10732
|
};
|
|
@@ -10774,7 +10774,7 @@
|
|
|
10774
10774
|
if (!isResizing) {
|
|
10775
10775
|
return;
|
|
10776
10776
|
}
|
|
10777
|
-
drawerRef.current.classList.remove(css(styles$
|
|
10777
|
+
drawerRef.current.classList.remove(css(styles$L.modifiers.resizing));
|
|
10778
10778
|
isResizing = false;
|
|
10779
10779
|
onResize && onResize(currWidth, id);
|
|
10780
10780
|
setInitialVals = true;
|
|
@@ -10845,7 +10845,7 @@
|
|
|
10845
10845
|
if (maxSize) {
|
|
10846
10846
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
10847
10847
|
}
|
|
10848
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$
|
|
10848
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$L.drawerPanel, isResizable && styles$L.modifiers.resizable, hasNoBorder && styles$L.modifiers.noBorder, formatBreakpointMods(widths, styles$L), colorVariant === exports.DrawerColorVariant.light200 && styles$L.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
|
|
10849
10849
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
10850
10850
|
onExpand();
|
|
10851
10851
|
}
|
|
@@ -10854,9 +10854,9 @@
|
|
|
10854
10854
|
style: boundaryCssVars
|
|
10855
10855
|
}), props), isExpandedInternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10856
10856
|
isResizable && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10857
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10858
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10859
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10857
|
+
React__namespace.createElement("div", { className: css(styles$L.drawerSplitter, position !== 'bottom' && styles$L.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 },
|
|
10858
|
+
React__namespace.createElement("div", { className: css(styles$L.drawerSplitterHandle), "aria-hidden": true })),
|
|
10859
|
+
React__namespace.createElement("div", { className: css(styles$L.drawerPanelMain) }, children))),
|
|
10860
10860
|
!isResizable && children))))));
|
|
10861
10861
|
};
|
|
10862
10862
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -10865,12 +10865,12 @@
|
|
|
10865
10865
|
var {
|
|
10866
10866
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10867
10867
|
className = '', children, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "colorVariant"]);
|
|
10868
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10868
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerSection, colorVariant === exports.DrawerColorVariant.light200 && styles$L.modifiers.light_200, className) }, props), children));
|
|
10869
10869
|
};
|
|
10870
10870
|
DrawerSection.displayName = 'DrawerSection';
|
|
10871
10871
|
|
|
10872
10872
|
Promise.resolve().then(function () { return dualListSelector; });
|
|
10873
|
-
var styles$
|
|
10873
|
+
var styles$K = {
|
|
10874
10874
|
"badge": "pf-c-badge",
|
|
10875
10875
|
"button": "pf-c-button",
|
|
10876
10876
|
"dualListSelector": "pf-c-dual-list-selector",
|
|
@@ -11017,16 +11017,16 @@
|
|
|
11017
11017
|
React__namespace.useEffect(() => {
|
|
11018
11018
|
setIsExpanded(defaultExpanded);
|
|
11019
11019
|
}, [defaultExpanded]);
|
|
11020
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11021
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11022
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11020
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$K.dualListSelectorListItem, className, children && styles$K.modifiers.expandable, isExpanded && styles$K.modifiers.expanded, isDisabled && styles$K.modifiers.disabled), id: id }, props, { "aria-selected": isChecked, role: "treeitem" }, (isExpanded && { 'aria-expanded': 'true' })),
|
|
11021
|
+
React__namespace.createElement("div", { className: css(styles$K.dualListSelectorListItemRow, isChecked && styles$K.modifiers.selected, styles$K.modifiers.check) },
|
|
11022
|
+
React__namespace.createElement("div", { className: css(styles$K.dualListSelectorItem), ref: ref, tabIndex: -1, onClick: isDisabled
|
|
11023
11023
|
? undefined
|
|
11024
11024
|
: evt => {
|
|
11025
11025
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11026
11026
|
setFocusedOption(id);
|
|
11027
11027
|
} },
|
|
11028
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11029
|
-
children && (React__namespace.createElement("div", { className: css(styles$
|
|
11028
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemMain) },
|
|
11029
|
+
children && (React__namespace.createElement("div", { className: css(styles$K.dualListSelectorItemToggle), onClick: e => {
|
|
11030
11030
|
if (children) {
|
|
11031
11031
|
setIsExpanded(!isExpanded);
|
|
11032
11032
|
}
|
|
@@ -11037,9 +11037,9 @@
|
|
|
11037
11037
|
e.preventDefault();
|
|
11038
11038
|
}
|
|
11039
11039
|
}, tabIndex: -1 },
|
|
11040
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11040
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemToggleIcon) },
|
|
11041
11041
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })))),
|
|
11042
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11042
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemCheck) },
|
|
11043
11043
|
React__namespace.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
|
|
11044
11044
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11045
11045
|
setFocusedOption(id);
|
|
@@ -11050,8 +11050,8 @@
|
|
|
11050
11050
|
e.preventDefault();
|
|
11051
11051
|
}
|
|
11052
11052
|
}, ref: elem => elem && (elem.indeterminate = isChecked === null), checked: isChecked || false, tabIndex: -1 }, checkProps))),
|
|
11053
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11054
|
-
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$
|
|
11053
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemText) }, text),
|
|
11054
|
+
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemCount) },
|
|
11055
11055
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps), flattenTree(children.props.data).length)))))),
|
|
11056
11056
|
isExpanded && children));
|
|
11057
11057
|
};
|
|
@@ -11080,7 +11080,7 @@
|
|
|
11080
11080
|
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 && {
|
|
11081
11081
|
children: (React__namespace.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
|
|
11082
11082
|
})))));
|
|
11083
|
-
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11083
|
+
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$K.dualListSelectorList), role: "group" }, props), tree)) : (React__namespace.createElement(React__namespace.Fragment, null, tree));
|
|
11084
11084
|
};
|
|
11085
11085
|
DualListSelectorTree.displayName = 'DualListSelectorTree';
|
|
11086
11086
|
|
|
@@ -11090,7 +11090,7 @@
|
|
|
11090
11090
|
draggableButtonAriaLabel = 'Reorder option' } = _a, props = __rest$1(_a, ["onOptionSelect", "orderIndex", "children", "className", "id", "isSelected", "innerRef", "isDraggable", "isDisabled", "draggableButtonAriaLabel"]);
|
|
11091
11091
|
const ref = innerRef || React__namespace.useRef(null);
|
|
11092
11092
|
const { setFocusedOption } = React__namespace.useContext(DualListSelectorListContext);
|
|
11093
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11093
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$K.dualListSelectorListItem, className, isDisabled && styles$K.modifiers.disabled), key: orderIndex, onClick: isDisabled
|
|
11094
11094
|
? undefined
|
|
11095
11095
|
: (e) => {
|
|
11096
11096
|
setFocusedOption(id);
|
|
@@ -11101,13 +11101,13 @@
|
|
|
11101
11101
|
e.preventDefault();
|
|
11102
11102
|
}
|
|
11103
11103
|
}, "aria-selected": isSelected, id: id, ref: ref, role: "option", tabIndex: -1 }, props),
|
|
11104
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11105
|
-
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$
|
|
11104
|
+
React__namespace.createElement("div", { className: css(styles$K.dualListSelectorListItemRow, isSelected && styles$K.modifiers.selected) },
|
|
11105
|
+
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$K.dualListSelectorDraggable) },
|
|
11106
11106
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, component: "span" },
|
|
11107
11107
|
React__namespace.createElement(GripVerticalIcon$1, { style: { verticalAlign: '-0.3em' } })))),
|
|
11108
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11109
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11110
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11108
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItem) },
|
|
11109
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemMain) },
|
|
11110
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemText) }, children))))));
|
|
11111
11111
|
};
|
|
11112
11112
|
DualListSelectorListItemBase.displayName = 'DualListSelectorListItemBase';
|
|
11113
11113
|
const DualListSelectorListItem = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorListItemBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -11122,7 +11122,7 @@
|
|
|
11122
11122
|
onOptionSelect(e, index, id);
|
|
11123
11123
|
};
|
|
11124
11124
|
const hasOptions = () => options.length !== 0 || (children !== undefined && children.length !== 0);
|
|
11125
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11125
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$K.dualListSelectorList) }, (hasOptions() && {
|
|
11126
11126
|
role: isTree ? 'tree' : 'listbox',
|
|
11127
11127
|
'aria-multiselectable': true,
|
|
11128
11128
|
'aria-labelledby': ariaLabelledBy,
|
|
@@ -11172,7 +11172,7 @@
|
|
|
11172
11172
|
window.removeEventListener('keydown', handleKeys);
|
|
11173
11173
|
};
|
|
11174
11174
|
}, [menuRef.current]);
|
|
11175
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11175
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.dualListSelectorMenu, className), ref: menuRef, tabIndex: 0 }, props),
|
|
11176
11176
|
React__namespace.createElement(DualListSelectorListContext.Provider, { value: {
|
|
11177
11177
|
setFocusedOption,
|
|
11178
11178
|
isTree,
|
|
@@ -11243,15 +11243,15 @@
|
|
|
11243
11243
|
.includes(input.toLowerCase());
|
|
11244
11244
|
}
|
|
11245
11245
|
};
|
|
11246
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11247
|
-
title && (React__namespace.createElement("div", { className: css(styles$
|
|
11246
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.dualListSelectorPane, isChosen ? styles$K.modifiers.chosen : 'pf-m-available', className) }, props),
|
|
11247
|
+
title && (React__namespace.createElement("div", { className: css(styles$K.dualListSelectorHeader) },
|
|
11248
11248
|
React__namespace.createElement("div", { className: "pf-c-dual-list-selector__title" },
|
|
11249
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11250
|
-
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$
|
|
11251
|
-
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$
|
|
11252
|
-
actions && React__namespace.createElement("div", { className: css(styles$
|
|
11253
|
-
status && (React__namespace.createElement("div", { className: css(styles$
|
|
11254
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11249
|
+
React__namespace.createElement("div", { className: css(styles$K.dualListSelectorTitleText) }, title)))),
|
|
11250
|
+
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$K.dualListSelectorTools) },
|
|
11251
|
+
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$K.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 })))),
|
|
11252
|
+
actions && React__namespace.createElement("div", { className: css(styles$K.dualListSelectorToolsActions) }, actions))),
|
|
11253
|
+
status && (React__namespace.createElement("div", { className: css(styles$K.dualListSelectorStatus) },
|
|
11254
|
+
React__namespace.createElement("div", { className: css(styles$K.dualListSelectorStatusText), id: `${id}-status` }, status))),
|
|
11255
11255
|
React__namespace.createElement(DualListSelectorPaneContext.Provider, { value: { isChosen } },
|
|
11256
11256
|
!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)),
|
|
11257
11257
|
isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, id: `${id}-list` }, options.length > 0 ? (React__namespace.createElement(DualListSelectorList, null,
|
|
@@ -11285,7 +11285,7 @@
|
|
|
11285
11285
|
window.removeEventListener('keydown', handleKeys);
|
|
11286
11286
|
};
|
|
11287
11287
|
}, [wrapperRef.current]);
|
|
11288
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11288
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.dualListSelectorControls, className), tabIndex: 0, ref: wrapperRef, "aria-label": ariaLabel }, props), children));
|
|
11289
11289
|
};
|
|
11290
11290
|
DualListSelectorControlsWrapperBase.displayName = 'DualListSelectorControlsWrapperBase';
|
|
11291
11291
|
const DualListSelectorControlsWrapper = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref, role: "group" }, props))));
|
|
@@ -11698,7 +11698,7 @@
|
|
|
11698
11698
|
? chosenOptions.map(item => this.mapChecked(item, true))
|
|
11699
11699
|
: chosenOptions);
|
|
11700
11700
|
return (React__namespace.createElement(DualListSelectorContext.Provider, { value: { isTree } },
|
|
11701
|
-
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11701
|
+
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$K.dualListSelector, className), id: id || randomId }, props), children === '' ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11702
11702
|
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 }),
|
|
11703
11703
|
React__namespace.createElement(DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
|
|
11704
11704
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
|
|
@@ -11733,7 +11733,7 @@
|
|
|
11733
11733
|
};
|
|
11734
11734
|
|
|
11735
11735
|
Promise.resolve().then(function () { return emptyState; });
|
|
11736
|
-
var styles$
|
|
11736
|
+
var styles$J = {
|
|
11737
11737
|
"button": "pf-c-button",
|
|
11738
11738
|
"emptyState": "pf-c-empty-state",
|
|
11739
11739
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -11763,20 +11763,20 @@
|
|
|
11763
11763
|
})(exports.EmptyStateVariant || (exports.EmptyStateVariant = {}));
|
|
11764
11764
|
const EmptyState = (_a) => {
|
|
11765
11765
|
var { children, className = '', variant = exports.EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
11766
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11767
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11766
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.emptyState, variant === 'xs' && styles$J.modifiers.xs, variant === 'small' && styles$J.modifiers.sm, variant === 'large' && styles$J.modifiers.lg, variant === 'xl' && styles$J.modifiers.xl, isFullHeight && styles$J.modifiers.fullHeight, className) }, props),
|
|
11767
|
+
React__namespace.createElement("div", { className: css(styles$J.emptyStateContent) }, children)));
|
|
11768
11768
|
};
|
|
11769
11769
|
EmptyState.displayName = 'EmptyState';
|
|
11770
11770
|
|
|
11771
11771
|
const EmptyStateBody = (_a) => {
|
|
11772
11772
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11773
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11773
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.emptyStateBody, className) }, props), children));
|
|
11774
11774
|
};
|
|
11775
11775
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
11776
11776
|
|
|
11777
11777
|
const EmptyStateIcon = (_a) => {
|
|
11778
11778
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest$1(_a, ["className", "icon", "component", "variant"]);
|
|
11779
|
-
const classNames = css(styles$
|
|
11779
|
+
const classNames = css(styles$J.emptyStateIcon, className);
|
|
11780
11780
|
return variant === 'icon' ? (React__namespace.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React__namespace.createElement("div", { className: classNames },
|
|
11781
11781
|
React__namespace.createElement(AnyComponent, null)));
|
|
11782
11782
|
};
|
|
@@ -11784,18 +11784,18 @@
|
|
|
11784
11784
|
|
|
11785
11785
|
const EmptyStateSecondaryActions = (_a) => {
|
|
11786
11786
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11787
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11787
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.emptyStateSecondary, className) }, props), children));
|
|
11788
11788
|
};
|
|
11789
11789
|
EmptyStateSecondaryActions.displayName = 'EmptyStateSecondaryActions';
|
|
11790
11790
|
|
|
11791
11791
|
const EmptyStatePrimary = (_a) => {
|
|
11792
11792
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11793
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11793
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.emptyStatePrimary, className) }, props), children));
|
|
11794
11794
|
};
|
|
11795
11795
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
11796
11796
|
|
|
11797
11797
|
Promise.resolve().then(function () { return expandableSection; });
|
|
11798
|
-
var styles$
|
|
11798
|
+
var styles$I = {
|
|
11799
11799
|
"expandableSection": "pf-c-expandable-section",
|
|
11800
11800
|
"expandableSectionContent": "pf-c-expandable-section__content",
|
|
11801
11801
|
"expandableSectionToggle": "pf-c-expandable-section__toggle",
|
|
@@ -11843,12 +11843,12 @@
|
|
|
11843
11843
|
};
|
|
11844
11844
|
}
|
|
11845
11845
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
11846
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
11847
|
-
!isDetached && (React__namespace.createElement("button", { className: css(styles$
|
|
11848
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11846
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$I.expandableSection, propOrStateIsExpanded && styles$I.modifiers.expanded, isActive && styles$I.modifiers.active, isDetached && styles$I.modifiers.detached, displaySize === 'large' && styles$I.modifiers.displayLg, isWidthLimited && styles$I.modifiers.limitWidth, isIndented && styles$I.modifiers.indented, className) }),
|
|
11847
|
+
!isDetached && (React__namespace.createElement("button", { className: css(styles$I.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
11848
|
+
React__namespace.createElement("span", { className: css(styles$I.expandableSectionToggleIcon) },
|
|
11849
11849
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })),
|
|
11850
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11851
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11850
|
+
React__namespace.createElement("span", { className: css(styles$I.expandableSectionToggleText) }, toggleContent || computedToggleText))),
|
|
11851
|
+
React__namespace.createElement("div", { className: css(styles$I.expandableSectionContent), hidden: !propOrStateIsExpanded, id: contentId }, children)));
|
|
11852
11852
|
}
|
|
11853
11853
|
}
|
|
11854
11854
|
ExpandableSection.displayName = 'ExpandableSection';
|
|
@@ -11869,16 +11869,16 @@
|
|
|
11869
11869
|
|
|
11870
11870
|
const ExpandableSectionToggle = (_a) => {
|
|
11871
11871
|
var { children, className = '', isExpanded = false, onToggle, contentId, direction = 'down' } = _a, props = __rest$1(_a, ["children", "className", "isExpanded", "onToggle", "contentId", "direction"]);
|
|
11872
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
11873
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
11874
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11872
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$I.expandableSection, isExpanded && styles$I.modifiers.expanded, styles$I.modifiers.detached, className) }),
|
|
11873
|
+
React__namespace.createElement("button", { className: css(styles$I.expandableSectionToggle), type: "button", "aria-expanded": isExpanded, "aria-controls": contentId, onClick: () => onToggle(!isExpanded) },
|
|
11874
|
+
React__namespace.createElement("span", { className: css(styles$I.expandableSectionToggleIcon, isExpanded && direction === 'up' && styles$I.modifiers.expandTop) },
|
|
11875
11875
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })),
|
|
11876
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11876
|
+
React__namespace.createElement("span", { className: css(styles$I.expandableSectionToggleText) }, children))));
|
|
11877
11877
|
};
|
|
11878
11878
|
ExpandableSectionToggle.displayName = 'ExpandableSectionToggle';
|
|
11879
11879
|
|
|
11880
11880
|
Promise.resolve().then(function () { return fileUpload; });
|
|
11881
|
-
var styles$
|
|
11881
|
+
var styles$H = {
|
|
11882
11882
|
"button": "pf-c-button",
|
|
11883
11883
|
"fileUpload": "pf-c-file-upload",
|
|
11884
11884
|
"fileUploadFileDetails": "pf-c-file-upload__file-details",
|
|
@@ -11927,16 +11927,16 @@
|
|
|
11927
11927
|
onChange(newValue, filename, event);
|
|
11928
11928
|
onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);
|
|
11929
11929
|
};
|
|
11930
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11931
|
-
React__namespace.createElement("div", { className: styles$
|
|
11930
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$H.fileUpload, isDragActive && styles$H.modifiers.dragHover, isLoading && styles$H.modifiers.loading, className), ref: containerRef }, props),
|
|
11931
|
+
React__namespace.createElement("div", { className: styles$H.fileUploadFileSelect },
|
|
11932
11932
|
React__namespace.createElement(InputGroup, null,
|
|
11933
11933
|
React__namespace.createElement(TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
|
|
11934
11934
|
: true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, "aria-label": filenameAriaLabel, placeholder: filenamePlaceholder, "aria-describedby": `${id}-browse-button`, value: filename }),
|
|
11935
11935
|
React__namespace.createElement(Button, { id: `${id}-browse-button`, variant: exports.ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),
|
|
11936
11936
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),
|
|
11937
|
-
React__namespace.createElement("div", { className: styles$
|
|
11937
|
+
React__namespace.createElement("div", { className: styles$H.fileUploadFileDetails },
|
|
11938
11938
|
!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 })),
|
|
11939
|
-
isLoading && (React__namespace.createElement("div", { className: styles$
|
|
11939
|
+
isLoading && (React__namespace.createElement("div", { className: styles$H.fileUploadFileDetailsSpinner },
|
|
11940
11940
|
React__namespace.createElement(Spinner, { size: exports.spinnerSize.lg, "aria-valuetext": spinnerAriaValueText })))),
|
|
11941
11941
|
children));
|
|
11942
11942
|
};
|
|
@@ -14025,10 +14025,10 @@
|
|
|
14025
14025
|
|
|
14026
14026
|
const ActionGroup = (_a) => {
|
|
14027
14027
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14028
|
-
const customClassName = css(styles$
|
|
14029
|
-
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$
|
|
14028
|
+
const customClassName = css(styles$Y.formGroup, styles$Y.modifiers.action, className);
|
|
14029
|
+
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$Y.formActions) }, children);
|
|
14030
14030
|
return (React__namespace.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
14031
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14031
|
+
React__namespace.createElement("div", { className: css(styles$Y.formGroupControl) }, formActionsComponent)));
|
|
14032
14032
|
};
|
|
14033
14033
|
ActionGroup.displayName = 'ActionGroup';
|
|
14034
14034
|
|
|
@@ -14036,7 +14036,7 @@
|
|
|
14036
14036
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]);
|
|
14037
14037
|
return (React__namespace.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
14038
14038
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
14039
|
-
}), props, { className: css(styles$
|
|
14039
|
+
}), props, { className: css(styles$Y.form, isHorizontal && styles$Y.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$Y.modifiers.limitWidth, className) }), children));
|
|
14040
14040
|
};
|
|
14041
14041
|
Form.displayName = 'Form';
|
|
14042
14042
|
|
|
@@ -14051,10 +14051,10 @@
|
|
|
14051
14051
|
|
|
14052
14052
|
const FormFieldGroupToggle = (_a) => {
|
|
14053
14053
|
var { className, onToggle, isExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, toggleId } = _a, props = __rest$1(_a, ["className", "onToggle", "isExpanded", 'aria-label', 'aria-labelledby', "toggleId"]);
|
|
14054
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14055
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14054
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Y.formFieldGroupToggle, className) }, props),
|
|
14055
|
+
React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupToggleButton) },
|
|
14056
14056
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
|
14057
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14057
|
+
React__namespace.createElement("span", { className: css(styles$Y.formFieldGroupToggleIcon) },
|
|
14058
14058
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))))));
|
|
14059
14059
|
};
|
|
14060
14060
|
FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
|
@@ -14066,10 +14066,10 @@
|
|
|
14066
14066
|
// eslint-disable-next-line no-console
|
|
14067
14067
|
console.error('FormFieldGroupExpandable:', 'toggleAriaLabel or the titleText prop of FormFieldGroupHeader is required to make the toggle button accessible');
|
|
14068
14068
|
}
|
|
14069
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14069
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Y.formFieldGroup, isExpanded && isExpandable && styles$Y.modifiers.expanded, className), role: "group" }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id}` }), props),
|
|
14070
14070
|
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}` })))))),
|
|
14071
14071
|
header && header,
|
|
14072
|
-
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
14072
|
+
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupBody) }, children))));
|
|
14073
14073
|
};
|
|
14074
14074
|
InternalFormFieldGroup.displayName = 'InternalFormFieldGroup';
|
|
14075
14075
|
|
|
@@ -14088,42 +14088,42 @@
|
|
|
14088
14088
|
|
|
14089
14089
|
const FormFieldGroupHeader = (_a) => {
|
|
14090
14090
|
var { className, titleText, titleDescription, actions } = _a, props = __rest$1(_a, ["className", "titleText", "titleDescription", "actions"]);
|
|
14091
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14092
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14093
|
-
titleText && (React__namespace.createElement("div", { className: css(styles$
|
|
14094
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14095
|
-
titleDescription && React__namespace.createElement("div", { className: css(styles$
|
|
14096
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14091
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Y.formFieldGroupHeader, className) }, props),
|
|
14092
|
+
React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupHeaderMain) },
|
|
14093
|
+
titleText && (React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupHeaderTitle) },
|
|
14094
|
+
React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupHeaderTitleText), id: titleText.id }, titleText.text))),
|
|
14095
|
+
titleDescription && React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupHeaderDescription) }, titleDescription)),
|
|
14096
|
+
React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupHeaderActions) }, actions && actions)));
|
|
14097
14097
|
};
|
|
14098
14098
|
FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
|
|
14099
14099
|
|
|
14100
14100
|
const FormGroup = (_a) => {
|
|
14101
14101
|
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"]);
|
|
14102
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$
|
|
14103
|
-
helperTextIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14102
|
+
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$Y.formHelperText, validated === exports.ValidatedOptions.success && styles$Y.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Y.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14103
|
+
helperTextIcon && React__namespace.createElement("span", { className: css(styles$Y.formHelperTextIcon) }, helperTextIcon),
|
|
14104
14104
|
helperText));
|
|
14105
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$
|
|
14106
|
-
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14105
|
+
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$Y.formHelperText, styles$Y.modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14106
|
+
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$Y.formHelperTextIcon) }, helperTextInvalidIcon),
|
|
14107
14107
|
helperTextInvalid));
|
|
14108
14108
|
const showValidHelperTxt = (validationType) => validationType !== exports.ValidatedOptions.error && helperText ? validHelperText : '';
|
|
14109
14109
|
const helperTextToDisplay = validated === exports.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
14110
14110
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
14111
14111
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
14112
14112
|
const labelContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14113
|
-
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$
|
|
14114
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14115
|
-
isRequired && (React__namespace.createElement("span", { className: css(styles$
|
|
14113
|
+
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$Y.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
14114
|
+
React__namespace.createElement("span", { className: css(styles$Y.formLabelText) }, label),
|
|
14115
|
+
isRequired && (React__namespace.createElement("span", { className: css(styles$Y.formLabelRequired), "aria-hidden": "true" },
|
|
14116
14116
|
' ',
|
|
14117
14117
|
ASTERISK))),
|
|
14118
14118
|
' ',
|
|
14119
14119
|
React__namespace.isValidElement(labelIcon) && labelIcon));
|
|
14120
|
-
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14121
|
-
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14120
|
+
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$Y.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
14121
|
+
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$Y.formGroupLabel, labelInfo && styles$Y.modifiers.info, hasNoPaddingTop && styles$Y.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
14122
14122
|
labelInfo && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14123
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14124
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14123
|
+
React__namespace.createElement("div", { className: css(styles$Y.formGroupLabelMain) }, labelContent),
|
|
14124
|
+
React__namespace.createElement("div", { className: css(styles$Y.formGroupLabelInfo) }, labelInfo))),
|
|
14125
14125
|
!labelInfo && labelContent)),
|
|
14126
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14126
|
+
React__namespace.createElement("div", { className: css(styles$Y.formGroupControl, isInline && styles$Y.modifiers.inline, isStack && styles$Y.modifiers.stack) },
|
|
14127
14127
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
14128
14128
|
children,
|
|
14129
14129
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -14133,22 +14133,22 @@
|
|
|
14133
14133
|
const FormHelperText = (_a) => {
|
|
14134
14134
|
var { children = null, isError = false, isHidden = true, className = '', icon = null, component = 'p' } = _a, props = __rest$1(_a, ["children", "isError", "isHidden", "className", "icon", "component"]);
|
|
14135
14135
|
const Component = component;
|
|
14136
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14137
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14136
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$Y.formHelperText, isError && styles$Y.modifiers.error, isHidden && styles$Y.modifiers.hidden, className) }, props),
|
|
14137
|
+
icon && React__namespace.createElement("span", { className: css(styles$Y.formHelperTextIcon) }, icon),
|
|
14138
14138
|
children));
|
|
14139
14139
|
};
|
|
14140
14140
|
FormHelperText.displayName = 'FormHelperText';
|
|
14141
14141
|
|
|
14142
14142
|
const FormSection = (_a) => {
|
|
14143
14143
|
var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = __rest$1(_a, ["className", "children", "title", "titleElement"]);
|
|
14144
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
14145
|
-
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$
|
|
14144
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$Y.formSection, className), role: "group" }, (title && { 'aria-labelledby': sectionId }), props),
|
|
14145
|
+
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$Y.formSectionTitle, className) }, title)),
|
|
14146
14146
|
children))));
|
|
14147
14147
|
};
|
|
14148
14148
|
FormSection.displayName = 'FormSection';
|
|
14149
14149
|
|
|
14150
14150
|
Promise.resolve().then(function () { return helperText; });
|
|
14151
|
-
var styles$
|
|
14151
|
+
var styles$G = {
|
|
14152
14152
|
"helperText": "pf-c-helper-text",
|
|
14153
14153
|
"helperTextItem": "pf-c-helper-text__item",
|
|
14154
14154
|
"helperTextItemIcon": "pf-c-helper-text__item-icon",
|
|
@@ -14166,7 +14166,7 @@
|
|
|
14166
14166
|
const HelperText = (_a) => {
|
|
14167
14167
|
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest$1(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
14168
14168
|
const Component = component;
|
|
14169
|
-
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
14169
|
+
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$G.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
14170
14170
|
};
|
|
14171
14171
|
HelperText.displayName = 'HelperText';
|
|
14172
14172
|
|
|
@@ -14185,22 +14185,22 @@
|
|
|
14185
14185
|
|
|
14186
14186
|
const variantStyle$4 = {
|
|
14187
14187
|
default: '',
|
|
14188
|
-
indeterminate: styles$
|
|
14189
|
-
warning: styles$
|
|
14190
|
-
success: styles$
|
|
14191
|
-
error: styles$
|
|
14188
|
+
indeterminate: styles$G.modifiers.indeterminate,
|
|
14189
|
+
warning: styles$G.modifiers.warning,
|
|
14190
|
+
success: styles$G.modifiers.success,
|
|
14191
|
+
error: styles$G.modifiers.error
|
|
14192
14192
|
};
|
|
14193
14193
|
const HelperTextItem = (_a) => {
|
|
14194
14194
|
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"]);
|
|
14195
14195
|
const Component = component;
|
|
14196
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14197
|
-
icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14198
|
-
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14196
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$G.helperTextItem, variantStyle$4[variant], isDynamic && styles$G.modifiers.dynamic, className), id: id }, props),
|
|
14197
|
+
icon && (React__namespace.createElement("span", { className: css(styles$G.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
14198
|
+
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$G.helperTextItemIcon), "aria-hidden": true },
|
|
14199
14199
|
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon$1, null),
|
|
14200
14200
|
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon$1, null),
|
|
14201
14201
|
variant === 'success' && React__namespace.createElement(CheckCircleIcon$1, null),
|
|
14202
14202
|
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon$1, null))),
|
|
14203
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14203
|
+
React__namespace.createElement("span", { className: css(styles$G.helperTextItemText) },
|
|
14204
14204
|
children,
|
|
14205
14205
|
isDynamic && React__namespace.createElement("span", { className: "pf-u-screen-reader" },
|
|
14206
14206
|
": ",
|
|
@@ -14210,7 +14210,7 @@
|
|
|
14210
14210
|
HelperTextItem.displayName = 'HelperTextItem';
|
|
14211
14211
|
|
|
14212
14212
|
Promise.resolve().then(function () { return hint; });
|
|
14213
|
-
var styles$
|
|
14213
|
+
var styles$F = {
|
|
14214
14214
|
"button": "pf-c-button",
|
|
14215
14215
|
"dropdown": "pf-c-dropdown",
|
|
14216
14216
|
"dropdownToggle": "pf-c-dropdown__toggle",
|
|
@@ -14229,32 +14229,32 @@
|
|
|
14229
14229
|
|
|
14230
14230
|
const Hint = (_a) => {
|
|
14231
14231
|
var { children, className, actions } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
14232
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14233
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14232
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$F.hint, className) }, props),
|
|
14233
|
+
React__namespace.createElement("div", { className: css(styles$F.hintActions) }, actions),
|
|
14234
14234
|
children));
|
|
14235
14235
|
};
|
|
14236
14236
|
Hint.displayName = 'Hint';
|
|
14237
14237
|
|
|
14238
14238
|
const HintBody = (_a) => {
|
|
14239
14239
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14240
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14240
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$F.hintBody, className) }, props), children));
|
|
14241
14241
|
};
|
|
14242
14242
|
HintBody.displayName = 'HintBody';
|
|
14243
14243
|
|
|
14244
14244
|
const HintFooter = (_a) => {
|
|
14245
14245
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14246
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14246
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$F.hintFooter, className) }, props), children));
|
|
14247
14247
|
};
|
|
14248
14248
|
HintFooter.displayName = 'HintFooter';
|
|
14249
14249
|
|
|
14250
14250
|
const HintTitle = (_a) => {
|
|
14251
14251
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14252
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14252
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$F.hintTitle, className) }, props), children));
|
|
14253
14253
|
};
|
|
14254
14254
|
HintTitle.displayName = 'HintTitle';
|
|
14255
14255
|
|
|
14256
14256
|
Promise.resolve().then(function () { return jumpLinks; });
|
|
14257
|
-
var styles$
|
|
14257
|
+
var styles$E = {
|
|
14258
14258
|
"button": "pf-c-button",
|
|
14259
14259
|
"jumpLinks": "pf-c-jump-links",
|
|
14260
14260
|
"jumpLinksItem": "pf-c-jump-links__item",
|
|
@@ -14287,7 +14287,7 @@
|
|
|
14287
14287
|
};
|
|
14288
14288
|
|
|
14289
14289
|
Promise.resolve().then(function () { return sidebar; });
|
|
14290
|
-
var styles$
|
|
14290
|
+
var styles$D = {
|
|
14291
14291
|
"modifiers": {
|
|
14292
14292
|
"gutter": "pf-m-gutter",
|
|
14293
14293
|
"panelRight": "pf-m-panel-right",
|
|
@@ -14347,7 +14347,7 @@
|
|
|
14347
14347
|
|
|
14348
14348
|
const JumpLinksList = (_a) => {
|
|
14349
14349
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14350
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14350
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$E.jumpLinksList, className) }, props), children));
|
|
14351
14351
|
};
|
|
14352
14352
|
JumpLinksList.displayName = 'JumpLinksList';
|
|
14353
14353
|
|
|
@@ -14358,9 +14358,9 @@
|
|
|
14358
14358
|
const childrenArr = React__namespace.Children.toArray(children);
|
|
14359
14359
|
const sublists = childrenArr.filter(child => child.type === JumpLinksList);
|
|
14360
14360
|
children = childrenArr.filter(child => child.type !== JumpLinksList);
|
|
14361
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14362
|
-
React__namespace.createElement("a", { className: styles$
|
|
14363
|
-
React__namespace.createElement("span", { className: styles$
|
|
14361
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$E.jumpLinksItem, isActive && styles$E.modifiers.current, className) }, (isActive && { 'aria-current': 'location' }), props),
|
|
14362
|
+
React__namespace.createElement("a", { className: styles$E.jumpLinksLink, href: href, onClick: onClick },
|
|
14363
|
+
React__namespace.createElement("span", { className: styles$E.jumpLinksLinkText }, children)),
|
|
14364
14364
|
sublists));
|
|
14365
14365
|
};
|
|
14366
14366
|
JumpLinksItem.displayName = 'JumpLinksItem';
|
|
@@ -14482,10 +14482,10 @@
|
|
|
14482
14482
|
if (isResponsive(navRef.current)) {
|
|
14483
14483
|
// Remove class immediately so we can get collapsed height
|
|
14484
14484
|
if (navRef.current) {
|
|
14485
|
-
navRef.current.classList.remove(styles$
|
|
14485
|
+
navRef.current.classList.remove(styles$E.modifiers.expanded);
|
|
14486
14486
|
}
|
|
14487
14487
|
let stickyParent = navRef.current && navRef.current.parentElement;
|
|
14488
|
-
while (stickyParent && !stickyParent.classList.contains(styles$
|
|
14488
|
+
while (stickyParent && !stickyParent.classList.contains(styles$D.modifiers.sticky)) {
|
|
14489
14489
|
stickyParent = stickyParent.parentElement;
|
|
14490
14490
|
}
|
|
14491
14491
|
setIsExpanded(false);
|
|
@@ -14515,19 +14515,19 @@
|
|
|
14515
14515
|
}
|
|
14516
14516
|
return child;
|
|
14517
14517
|
});
|
|
14518
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
14519
|
-
React__namespace.createElement("div", { className: styles$
|
|
14518
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$E.jumpLinks, isCentered && styles$E.modifiers.center, isVertical && styles$E.modifiers.vertical, formatBreakpointMods(expandable, styles$E), isExpanded && styles$E.modifiers.expanded, className), "aria-label": ariaLabel, ref: navRef }, props),
|
|
14519
|
+
React__namespace.createElement("div", { className: styles$E.jumpLinksMain },
|
|
14520
14520
|
React__namespace.createElement("div", { className: css('pf-c-jump-links__header') },
|
|
14521
|
-
expandable && (React__namespace.createElement("div", { className: styles$
|
|
14521
|
+
expandable && (React__namespace.createElement("div", { className: styles$E.jumpLinksToggle },
|
|
14522
14522
|
React__namespace.createElement(Button, { variant: "plain", onClick: () => setIsExpanded(!isExpanded), "aria-label": toggleAriaLabel, "aria-expanded": isExpanded },
|
|
14523
|
-
React__namespace.createElement("span", { className: styles$
|
|
14523
|
+
React__namespace.createElement("span", { className: styles$E.jumpLinksToggleIcon },
|
|
14524
14524
|
React__namespace.createElement(AngleRightIcon$1, null)),
|
|
14525
|
-
label && React__namespace.createElement("span", { className: css(styles$
|
|
14525
|
+
label && React__namespace.createElement("span", { className: css(styles$E.jumpLinksToggleText) },
|
|
14526
14526
|
" ",
|
|
14527
14527
|
label,
|
|
14528
14528
|
" ")))),
|
|
14529
|
-
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$
|
|
14530
|
-
React__namespace.createElement("ul", { className: styles$
|
|
14529
|
+
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$E.jumpLinksLabel) }, label)),
|
|
14530
|
+
React__namespace.createElement("ul", { className: styles$E.jumpLinksList }, cloneChildren(children)))));
|
|
14531
14531
|
};
|
|
14532
14532
|
JumpLinks.displayName = 'JumpLinks';
|
|
14533
14533
|
|
|
@@ -14557,7 +14557,7 @@
|
|
|
14557
14557
|
};
|
|
14558
14558
|
|
|
14559
14559
|
Promise.resolve().then(function () { return labelGroup; });
|
|
14560
|
-
var styles$
|
|
14560
|
+
var styles$C = {
|
|
14561
14561
|
"button": "pf-c-button",
|
|
14562
14562
|
"labelGroup": "pf-c-label-group",
|
|
14563
14563
|
"labelGroupClose": "pf-c-label-group__close",
|
|
@@ -14698,7 +14698,7 @@
|
|
|
14698
14698
|
else if (isTooltipVisible) {
|
|
14699
14699
|
labelComponentChild = (React__namespace.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
14700
14700
|
}
|
|
14701
|
-
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$
|
|
14701
|
+
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$C.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
14702
14702
|
!isEditableActive && labelComponentChild,
|
|
14703
14703
|
!isEditableActive && onClose && button,
|
|
14704
14704
|
isEditableActive && (React__namespace.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
@@ -14729,8 +14729,8 @@
|
|
|
14729
14729
|
const { categoryName, tooltipPosition } = this.props;
|
|
14730
14730
|
const { isTooltipVisible } = this.state;
|
|
14731
14731
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
14732
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
14733
|
-
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
14732
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$C.labelGroupLabel) },
|
|
14733
|
+
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$C.labelGroupLabel), "aria-hidden": "true", id: id }, categoryName));
|
|
14734
14734
|
}
|
|
14735
14735
|
render() {
|
|
14736
14736
|
const _a = this.props, { categoryName, children, className, isClosable, isCompact, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, numLabels, expandedText, collapsedText,
|
|
@@ -14749,18 +14749,18 @@
|
|
|
14749
14749
|
: React__namespace.Children.toArray(children);
|
|
14750
14750
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14751
14751
|
categoryName && this.renderLabel(id),
|
|
14752
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14753
|
-
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
14754
|
-
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$
|
|
14752
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$C.labelGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
14753
|
+
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$C.labelGroupListItem), key: i }, child))),
|
|
14754
|
+
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$C.labelGroupListItem) },
|
|
14755
14755
|
React__namespace.createElement(Label, { isOverflowLabel: true, onClick: this.toggleCollapse, className: css(isCompact && labelStyles.modifiers.compact) }, isOpen ? expandedText : collapsedTextResult))),
|
|
14756
|
-
addLabelControl && React__namespace.createElement("li", { className: css(styles$
|
|
14757
|
-
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$
|
|
14758
|
-
React__namespace.createElement("textarea", Object.assign({ className: css(styles$
|
|
14759
|
-
const close = (React__namespace.createElement("div", { className: css(styles$
|
|
14756
|
+
addLabelControl && React__namespace.createElement("li", { className: css(styles$C.labelGroupListItem) }, addLabelControl),
|
|
14757
|
+
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$C.labelGroupListItem, styles$C.modifiers.textarea) },
|
|
14758
|
+
React__namespace.createElement("textarea", Object.assign({ className: css(styles$C.labelGroupTextarea), rows: 1, tabIndex: 0 }, editableTextAreaProps)))))));
|
|
14759
|
+
const close = (React__namespace.createElement("div", { className: css(styles$C.labelGroupClose) },
|
|
14760
14760
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
|
|
14761
14761
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))));
|
|
14762
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
14763
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14762
|
+
return (React__namespace.createElement("div", { className: css(styles$C.labelGroup, className, categoryName && styles$C.modifiers.category, isVertical && styles$C.modifiers.vertical, isEditable && styles$C.modifiers.editable) },
|
|
14763
|
+
React__namespace.createElement("div", { className: css(styles$C.labelGroupMain) }, content),
|
|
14764
14764
|
isClosable && close));
|
|
14765
14765
|
};
|
|
14766
14766
|
return numChildren === 0 && addLabelControl === undefined ? null : (React__namespace.createElement(GenerateId, null, randomId => renderLabelGroup(this.props.id || randomId)));
|
|
@@ -14786,7 +14786,7 @@
|
|
|
14786
14786
|
};
|
|
14787
14787
|
|
|
14788
14788
|
Promise.resolve().then(function () { return list; });
|
|
14789
|
-
var styles$
|
|
14789
|
+
var styles$B = {
|
|
14790
14790
|
"list": "pf-c-list",
|
|
14791
14791
|
"listItem": "pf-c-list__item",
|
|
14792
14792
|
"listItemIcon": "pf-c-list__item-icon",
|
|
@@ -14817,20 +14817,20 @@
|
|
|
14817
14817
|
})(exports.ListComponent || (exports.ListComponent = {}));
|
|
14818
14818
|
const List = (_a) => {
|
|
14819
14819
|
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"]);
|
|
14820
|
-
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$
|
|
14820
|
+
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$B.list, variant && styles$B.modifiers[variant], isBordered && styles$B.modifiers.bordered, isPlain && styles$B.modifiers.plain, iconSize && iconSize === 'large' && styles$B.modifiers.iconLg, className) }), children)) : (React__namespace.createElement("ul", Object.assign({ ref: ref }, props, { className: css(styles$B.list, variant && styles$B.modifiers[variant], isBordered && styles$B.modifiers.bordered, isPlain && styles$B.modifiers.plain, iconSize && iconSize === 'large' && styles$B.modifiers.iconLg, className) }), children));
|
|
14821
14821
|
};
|
|
14822
14822
|
List.displayName = 'List';
|
|
14823
14823
|
|
|
14824
14824
|
const ListItem = (_a) => {
|
|
14825
14825
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
14826
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$
|
|
14827
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14826
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$B.listItem) }, props),
|
|
14827
|
+
icon && React__namespace.createElement("span", { className: css(styles$B.listItemIcon) }, icon),
|
|
14828
14828
|
children));
|
|
14829
14829
|
};
|
|
14830
14830
|
ListItem.displayName = 'ListItem';
|
|
14831
14831
|
|
|
14832
14832
|
Promise.resolve().then(function () { return login; });
|
|
14833
|
-
var styles$
|
|
14833
|
+
var styles$A = {
|
|
14834
14834
|
"brand": "pf-c-brand",
|
|
14835
14835
|
"button": "pf-c-button",
|
|
14836
14836
|
"card": "pf-c-card",
|
|
@@ -14856,17 +14856,17 @@
|
|
|
14856
14856
|
|
|
14857
14857
|
const Login = (_a) => {
|
|
14858
14858
|
var { className = '', children = null, footer = null, header = null } = _a, props = __rest$1(_a, ["className", "children", "footer", "header"]);
|
|
14859
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
14860
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14859
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$A.login, className) }),
|
|
14860
|
+
React__namespace.createElement("div", { className: css(styles$A.loginContainer) },
|
|
14861
14861
|
header,
|
|
14862
|
-
React__namespace.createElement("main", { className: css(styles$
|
|
14862
|
+
React__namespace.createElement("main", { className: css(styles$A.loginMain) }, children),
|
|
14863
14863
|
footer)));
|
|
14864
14864
|
};
|
|
14865
14865
|
Login.displayName = 'Login';
|
|
14866
14866
|
|
|
14867
14867
|
const LoginHeader = (_a) => {
|
|
14868
14868
|
var { className = '', children = null, headerBrand = null } = _a, props = __rest$1(_a, ["className", "children", "headerBrand"]);
|
|
14869
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14869
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$A.loginHeader, className) }, props),
|
|
14870
14870
|
headerBrand,
|
|
14871
14871
|
children));
|
|
14872
14872
|
};
|
|
@@ -14874,31 +14874,31 @@
|
|
|
14874
14874
|
|
|
14875
14875
|
const LoginFooter = (_a) => {
|
|
14876
14876
|
var { className = '', children = null } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
14877
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
14877
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$A.loginFooter, className) }, props), children));
|
|
14878
14878
|
};
|
|
14879
14879
|
LoginFooter.displayName = 'LoginFooter';
|
|
14880
14880
|
|
|
14881
14881
|
const LoginMainHeader = (_a) => {
|
|
14882
14882
|
var { children = null, className = '', title = '', subtitle = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle"]);
|
|
14883
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14883
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$A.loginMainHeader, className) }, props),
|
|
14884
14884
|
title && (React__namespace.createElement(Title, { headingLevel: "h2", size: exports.TitleSizes['3xl'] }, title)),
|
|
14885
|
-
subtitle && React__namespace.createElement("p", { className: css(styles$
|
|
14885
|
+
subtitle && React__namespace.createElement("p", { className: css(styles$A.loginMainHeaderDesc) }, subtitle),
|
|
14886
14886
|
children));
|
|
14887
14887
|
};
|
|
14888
14888
|
LoginMainHeader.displayName = 'LoginMainHeader';
|
|
14889
14889
|
|
|
14890
14890
|
const LoginMainBody = (_a) => {
|
|
14891
14891
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14892
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14892
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.loginMainBody, className) }, props), children));
|
|
14893
14893
|
};
|
|
14894
14894
|
LoginMainBody.displayName = 'LoginMainBody';
|
|
14895
14895
|
|
|
14896
14896
|
const LoginMainFooter = (_a) => {
|
|
14897
14897
|
var { children = null, socialMediaLoginContent = null, signUpForAccountMessage = null, forgotCredentials = null, className = '' } = _a, props = __rest$1(_a, ["children", "socialMediaLoginContent", "signUpForAccountMessage", "forgotCredentials", "className"]);
|
|
14898
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14898
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.loginMainFooter, className) }, props),
|
|
14899
14899
|
children,
|
|
14900
|
-
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$
|
|
14901
|
-
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$
|
|
14900
|
+
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$A.loginMainFooterLinks) }, socialMediaLoginContent),
|
|
14901
|
+
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$A.loginMainFooterBand) },
|
|
14902
14902
|
signUpForAccountMessage,
|
|
14903
14903
|
forgotCredentials))));
|
|
14904
14904
|
};
|
|
@@ -14975,20 +14975,20 @@
|
|
|
14975
14975
|
|
|
14976
14976
|
const LoginMainFooterBandItem = (_a) => {
|
|
14977
14977
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14978
|
-
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$
|
|
14978
|
+
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$A.loginMainFooterBand}-item`, className) }, props), children));
|
|
14979
14979
|
};
|
|
14980
14980
|
LoginMainFooterBandItem.displayName = 'LoginMainFooterBandItem';
|
|
14981
14981
|
|
|
14982
14982
|
const LoginMainFooterLinksItem = (_a) => {
|
|
14983
14983
|
var { children = null, href = '', target = '', className = '', linkComponent = 'a', linkComponentProps } = _a, props = __rest$1(_a, ["children", "href", "target", "className", "linkComponent", "linkComponentProps"]);
|
|
14984
14984
|
const LinkComponent = linkComponent;
|
|
14985
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14986
|
-
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$
|
|
14985
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$A.loginMainFooterLinksItem, className) }, props),
|
|
14986
|
+
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$A.loginMainFooterLinksItemLink), href: href, target: target }, linkComponentProps), children)));
|
|
14987
14987
|
};
|
|
14988
14988
|
LoginMainFooterLinksItem.displayName = 'LoginMainFooterLinksItem';
|
|
14989
14989
|
|
|
14990
14990
|
Promise.resolve().then(function () { return masthead; });
|
|
14991
|
-
var styles$
|
|
14991
|
+
var styles$z = {
|
|
14992
14992
|
"button": "pf-c-button",
|
|
14993
14993
|
"card": "pf-c-card",
|
|
14994
14994
|
"contextSelector": "pf-c-context-selector",
|
|
@@ -15063,7 +15063,7 @@
|
|
|
15063
15063
|
};
|
|
15064
15064
|
|
|
15065
15065
|
Promise.resolve().then(function () { return page; });
|
|
15066
|
-
var styles$
|
|
15066
|
+
var styles$y = {
|
|
15067
15067
|
"avatar": "pf-c-avatar",
|
|
15068
15068
|
"brand": "pf-c-brand",
|
|
15069
15069
|
"button": "pf-c-button",
|
|
@@ -15163,7 +15163,7 @@
|
|
|
15163
15163
|
|
|
15164
15164
|
const PageGroup = (_a) => {
|
|
15165
15165
|
var { className = '', children, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
15166
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
15166
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$y.pageMainGroup, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 })), children));
|
|
15167
15167
|
};
|
|
15168
15168
|
PageGroup.displayName = 'PageGroup';
|
|
15169
15169
|
|
|
@@ -15275,37 +15275,37 @@
|
|
|
15275
15275
|
};
|
|
15276
15276
|
let nav = null;
|
|
15277
15277
|
if (tertiaryNav && isTertiaryNavWidthLimited) {
|
|
15278
|
-
nav = (React__namespace.createElement("div", { className: css(styles$
|
|
15279
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
15278
|
+
nav = (React__namespace.createElement("div", { className: css(styles$y.pageMainNav, styles$y.modifiers.limitWidth) },
|
|
15279
|
+
React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, tertiaryNav)));
|
|
15280
15280
|
}
|
|
15281
15281
|
else if (tertiaryNav) {
|
|
15282
|
-
nav = React__namespace.createElement("div", { className: css(styles$
|
|
15282
|
+
nav = React__namespace.createElement("div", { className: css(styles$y.pageMainNav) }, tertiaryNav);
|
|
15283
15283
|
}
|
|
15284
15284
|
let crumb = null;
|
|
15285
15285
|
if (breadcrumb && isBreadcrumbWidthLimited) {
|
|
15286
|
-
crumb = (React__namespace.createElement("section", { className: css(styles$
|
|
15287
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
15286
|
+
crumb = (React__namespace.createElement("section", { className: css(styles$y.pageMainBreadcrumb, styles$y.modifiers.limitWidth) },
|
|
15287
|
+
React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, breadcrumb)));
|
|
15288
15288
|
}
|
|
15289
15289
|
else if (breadcrumb) {
|
|
15290
|
-
crumb = React__namespace.createElement("section", { className: css(styles$
|
|
15290
|
+
crumb = React__namespace.createElement("section", { className: css(styles$y.pageMainBreadcrumb) }, breadcrumb);
|
|
15291
15291
|
}
|
|
15292
15292
|
const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;
|
|
15293
15293
|
const group = isGrouped ? (React__namespace.createElement(PageGroup, Object.assign({}, groupProps),
|
|
15294
15294
|
isTertiaryNavGrouped && nav,
|
|
15295
15295
|
isBreadcrumbGrouped && crumb,
|
|
15296
15296
|
additionalGroupedContent)) : null;
|
|
15297
|
-
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$
|
|
15297
|
+
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$y.pageMain), tabIndex: mainTabIndex, "aria-label": mainAriaLabel },
|
|
15298
15298
|
group,
|
|
15299
15299
|
!isTertiaryNavGrouped && nav,
|
|
15300
15300
|
!isBreadcrumbGrouped && crumb,
|
|
15301
15301
|
children));
|
|
15302
15302
|
const panelContent = React__namespace.createElement(DrawerPanelContent, null, notificationDrawer);
|
|
15303
15303
|
return (React__namespace.createElement(PageContextProvider, { value: context },
|
|
15304
|
-
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$
|
|
15304
|
+
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$y.page, width !== null && 'pf-m-resize-observer', width !== null && `pf-m-breakpoint-${getBreakpoint(width)}`, className) }),
|
|
15305
15305
|
skipToContent,
|
|
15306
15306
|
header,
|
|
15307
15307
|
sidebar,
|
|
15308
|
-
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$
|
|
15308
|
+
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$y.pageDrawer) },
|
|
15309
15309
|
React__namespace.createElement(Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },
|
|
15310
15310
|
React__namespace.createElement(DrawerContent, { panelContent: panelContent },
|
|
15311
15311
|
React__namespace.createElement(DrawerContentBody, null, main))))),
|
|
@@ -15329,32 +15329,32 @@
|
|
|
15329
15329
|
md: 'inline'
|
|
15330
15330
|
}, inset } = _a, props = __rest$1(_a, ["children", "className", "backgroundColor", "display", "inset"]);
|
|
15331
15331
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
15332
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
15332
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$z.masthead, formatBreakpointMods(display, styles$z, 'display-', getBreakpoint(width)), formatBreakpointMods(inset, styles$z, '', getBreakpoint(width)), backgroundColor === 'light' && styles$z.modifiers.light, backgroundColor === 'light200' && styles$z.modifiers.light_200, className) }, props), children));
|
|
15333
15333
|
};
|
|
15334
15334
|
Masthead.displayName = 'Masthead';
|
|
15335
15335
|
|
|
15336
15336
|
const MastheadBrand = (_a) => {
|
|
15337
15337
|
var { children, className, component = 'a' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
15338
15338
|
const Component = component;
|
|
15339
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
15339
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$z.mastheadBrand, className), tabIndex: 0 }, props), children));
|
|
15340
15340
|
};
|
|
15341
15341
|
MastheadBrand.displayName = 'MastheadBrand';
|
|
15342
15342
|
|
|
15343
15343
|
const MastheadContent = (_a) => {
|
|
15344
15344
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15345
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15345
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.mastheadContent, className) }, props), children));
|
|
15346
15346
|
};
|
|
15347
15347
|
MastheadContent.displayName = 'MastheadContent';
|
|
15348
15348
|
|
|
15349
15349
|
const MastheadMain = (_a) => {
|
|
15350
15350
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15351
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15351
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.mastheadMain, className) }, props), children));
|
|
15352
15352
|
};
|
|
15353
15353
|
MastheadMain.displayName = 'MastheadMain';
|
|
15354
15354
|
|
|
15355
15355
|
const MastheadToggle = (_a) => {
|
|
15356
15356
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15357
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
15357
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$z.mastheadToggle, className) }, props), children));
|
|
15358
15358
|
};
|
|
15359
15359
|
MastheadToggle.displayName = 'MastheadToggle';
|
|
15360
15360
|
|
|
@@ -15901,7 +15901,7 @@
|
|
|
15901
15901
|
MenuBreadcrumb.displayName = 'MenuBreadcrumb';
|
|
15902
15902
|
|
|
15903
15903
|
Promise.resolve().then(function () { return menuToggle; });
|
|
15904
|
-
var styles$
|
|
15904
|
+
var styles$x = {
|
|
15905
15905
|
"check": "pf-c-check",
|
|
15906
15906
|
"menuToggle": "pf-c-menu-toggle",
|
|
15907
15907
|
"menuToggleButton": "pf-c-menu-toggle__button",
|
|
@@ -15938,13 +15938,13 @@
|
|
|
15938
15938
|
const isPlain = variant === 'plain';
|
|
15939
15939
|
const isPlainText = variant === 'plainText';
|
|
15940
15940
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
15941
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
15941
|
+
icon && React__namespace.createElement("span", { className: css(styles$x.menuToggleIcon) }, icon),
|
|
15942
15942
|
React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
|
|
15943
|
-
badge && React__namespace.createElement("span", { className: css(styles$
|
|
15944
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
15945
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
15943
|
+
badge && React__namespace.createElement("span", { className: css(styles$x.menuToggleCount) }, badge),
|
|
15944
|
+
React__namespace.createElement("span", { className: css(styles$x.menuToggleControls) },
|
|
15945
|
+
React__namespace.createElement("span", { className: css(styles$x.menuToggleToggleIcon) },
|
|
15946
15946
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
|
|
15947
|
-
return (React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
15947
|
+
return (React__namespace.createElement("button", Object.assign({ className: css(styles$x.menuToggle, isExpanded && styles$x.modifiers.expanded, variant === 'primary' && styles$x.modifiers.primary, variant === 'secondary' && styles$x.modifiers.secondary, (isPlain || isPlainText) && styles$x.modifiers.plain, isPlainText && styles$x.modifiers.text, isFullHeight && styles$x.modifiers.fullHeight, isFullWidth && styles$x.modifiers.fullWidth, className), type: "button", "aria-expanded": false, ref: innerRef }, (isExpanded && { 'aria-expanded': true }), (isDisabled && { disabled: true }), props),
|
|
15948
15948
|
isPlain && children,
|
|
15949
15949
|
!isPlain && content));
|
|
15950
15950
|
}
|
|
@@ -16100,7 +16100,7 @@
|
|
|
16100
16100
|
modalBody,
|
|
16101
16101
|
modalBoxFooter));
|
|
16102
16102
|
return (React__namespace.createElement(Backdrop, null,
|
|
16103
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
16103
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1g.bullseye) }, modalBox)));
|
|
16104
16104
|
};
|
|
16105
16105
|
ModalContent.displayName = 'ModalContent';
|
|
16106
16106
|
|
|
@@ -16159,10 +16159,10 @@
|
|
|
16159
16159
|
target.appendChild(container);
|
|
16160
16160
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
16161
16161
|
if (this.props.isOpen) {
|
|
16162
|
-
target.classList.add(css(styles$
|
|
16162
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
16163
16163
|
}
|
|
16164
16164
|
else {
|
|
16165
|
-
target.classList.remove(css(styles$
|
|
16165
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16166
16166
|
}
|
|
16167
16167
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
16168
16168
|
// eslint-disable-next-line no-console
|
|
@@ -16177,11 +16177,11 @@
|
|
|
16177
16177
|
const { appendTo } = this.props;
|
|
16178
16178
|
const target = this.getElement(appendTo);
|
|
16179
16179
|
if (this.props.isOpen) {
|
|
16180
|
-
target.classList.add(css(styles$
|
|
16180
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
16181
16181
|
this.toggleSiblingsFromScreenReaders(true);
|
|
16182
16182
|
}
|
|
16183
16183
|
else {
|
|
16184
|
-
target.classList.remove(css(styles$
|
|
16184
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16185
16185
|
this.toggleSiblingsFromScreenReaders(false);
|
|
16186
16186
|
}
|
|
16187
16187
|
}
|
|
@@ -16192,7 +16192,7 @@
|
|
|
16192
16192
|
target.removeChild(this.state.container);
|
|
16193
16193
|
}
|
|
16194
16194
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
16195
|
-
target.classList.remove(css(styles$
|
|
16195
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16196
16196
|
}
|
|
16197
16197
|
render() {
|
|
16198
16198
|
const _a = this.props, {
|
|
@@ -16229,7 +16229,7 @@
|
|
|
16229
16229
|
};
|
|
16230
16230
|
|
|
16231
16231
|
Promise.resolve().then(function () { return multipleFileUpload; });
|
|
16232
|
-
var styles$
|
|
16232
|
+
var styles$w = {
|
|
16233
16233
|
"modifiers": {
|
|
16234
16234
|
"horizontal": "pf-m-horizontal",
|
|
16235
16235
|
"dragOver": "pf-m-drag-over"
|
|
@@ -16272,7 +16272,7 @@
|
|
|
16272
16272
|
}));
|
|
16273
16273
|
const inputProps = getInputProps();
|
|
16274
16274
|
return (React__namespace.createElement(MultipleFileUploadContext.Provider, { value: { open } },
|
|
16275
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16275
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUpload, isDragActive && styles$w.modifiers.dragOver, isHorizontal && styles$w.modifiers.horizontal, className) }, rootProps, props),
|
|
16276
16276
|
React__namespace.createElement("input", Object.assign({}, inputProps)),
|
|
16277
16277
|
children)));
|
|
16278
16278
|
}));
|
|
@@ -16281,25 +16281,25 @@
|
|
|
16281
16281
|
|
|
16282
16282
|
const MultipleFileUploadTitleIcon = (_a) => {
|
|
16283
16283
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
16284
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16284
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadTitleIcon, className) }, props), children));
|
|
16285
16285
|
};
|
|
16286
16286
|
MultipleFileUploadTitleIcon.displayName = 'MultipleFileUploadTitleIcon';
|
|
16287
16287
|
|
|
16288
16288
|
const MultipleFileUploadTitleText = (_a) => {
|
|
16289
16289
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16290
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16290
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadTitleText, className) }, props), children));
|
|
16291
16291
|
};
|
|
16292
16292
|
MultipleFileUploadTitleText.displayName = 'MultipleFileUploadTitleText';
|
|
16293
16293
|
|
|
16294
16294
|
const MultipleFileUploadTitleTextSeparator = (_a) => {
|
|
16295
16295
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16296
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16296
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadTitleTextSeparator, className) }, props), children));
|
|
16297
16297
|
};
|
|
16298
16298
|
MultipleFileUploadTitleTextSeparator.displayName = 'MultipleFileUploadTitleTextSeparator';
|
|
16299
16299
|
|
|
16300
16300
|
const MultipleFileUploadTitle = (_a) => {
|
|
16301
16301
|
var { className, icon, text = '', textSeparator = '' } = _a, props = __rest$1(_a, ["className", "icon", "text", "textSeparator"]);
|
|
16302
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16302
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadTitle, className) }, props),
|
|
16303
16303
|
icon && React__namespace.createElement(MultipleFileUploadTitleIcon, null, icon),
|
|
16304
16304
|
text && (React__namespace.createElement(MultipleFileUploadTitleText, null,
|
|
16305
16305
|
`${text} `,
|
|
@@ -16310,21 +16310,21 @@
|
|
|
16310
16310
|
const MultipleFileUploadButton = (_a) => {
|
|
16311
16311
|
var { className, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", 'aria-label']);
|
|
16312
16312
|
const { open } = React__namespace.useContext(MultipleFileUploadContext);
|
|
16313
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16313
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadUpload, className) }, props),
|
|
16314
16314
|
React__namespace.createElement(Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
|
|
16315
16315
|
};
|
|
16316
16316
|
MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
|
|
16317
16317
|
|
|
16318
16318
|
const MultipleFileUploadInfo = (_a) => {
|
|
16319
16319
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16320
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16320
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadInfo, className) }, props), children));
|
|
16321
16321
|
};
|
|
16322
16322
|
MultipleFileUploadInfo.displayName = 'MultipleFileUploadInfo';
|
|
16323
16323
|
|
|
16324
16324
|
const MultipleFileUploadMain = (_a) => {
|
|
16325
16325
|
var { className, titleIcon, titleText, titleTextSeparator, infoText, isUploadButtonHidden } = _a, props = __rest$1(_a, ["className", "titleIcon", "titleText", "titleTextSeparator", "infoText", "isUploadButtonHidden"]);
|
|
16326
16326
|
const showTitle = !!titleIcon || !!titleText || !!titleTextSeparator;
|
|
16327
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16327
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadMain, className) }, props),
|
|
16328
16328
|
showTitle && React__namespace.createElement(MultipleFileUploadTitle, { icon: titleIcon, text: titleText, textSeparator: titleTextSeparator }),
|
|
16329
16329
|
isUploadButtonHidden || React__namespace.createElement(MultipleFileUploadButton, null),
|
|
16330
16330
|
!!infoText && React__namespace.createElement(MultipleFileUploadInfo, null, infoText)));
|
|
@@ -16363,20 +16363,20 @@
|
|
|
16363
16363
|
setIcon(statusToggleIcon);
|
|
16364
16364
|
}
|
|
16365
16365
|
}, [statusToggleIcon]);
|
|
16366
|
-
const toggle = (React__namespace.createElement("div", { className: styles$
|
|
16367
|
-
React__namespace.createElement("div", { className: styles$
|
|
16368
|
-
React__namespace.createElement("div", { className: styles$
|
|
16366
|
+
const toggle = (React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusProgress },
|
|
16367
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusProgressIcon }, icon),
|
|
16368
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusItemProgressText }, statusToggleText)));
|
|
16369
16369
|
const toggleExpandableSection = () => {
|
|
16370
16370
|
setIsOpen(!isOpen);
|
|
16371
16371
|
};
|
|
16372
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16372
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$w.multipleFileUploadStatus, className) }, props),
|
|
16373
16373
|
React__namespace.createElement(ExpandableSection, { toggleContent: toggle, isExpanded: isOpen, onToggle: toggleExpandableSection },
|
|
16374
16374
|
React__namespace.createElement("ul", { className: "pf-c-multiple-file-upload__status-list" }, children))));
|
|
16375
16375
|
};
|
|
16376
16376
|
MultipleFileUploadStatus.displayName = 'MultipleFileUploadStatus';
|
|
16377
16377
|
|
|
16378
16378
|
Promise.resolve().then(function () { return progress; });
|
|
16379
|
-
var styles$
|
|
16379
|
+
var styles$v = {
|
|
16380
16380
|
"modifiers": {
|
|
16381
16381
|
"sm": "pf-m-sm",
|
|
16382
16382
|
"lg": "pf-m-lg",
|
|
@@ -16401,9 +16401,9 @@
|
|
|
16401
16401
|
|
|
16402
16402
|
const ProgressBar = (_a) => {
|
|
16403
16403
|
var { progressBarAriaProps, className = '', children = null, value } = _a, props = __rest$1(_a, ["progressBarAriaProps", "className", "children", "value"]);
|
|
16404
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16405
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16406
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16404
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$v.progressBar, className) }, progressBarAriaProps),
|
|
16405
|
+
React__namespace.createElement("div", { className: css(styles$v.progressIndicator), style: { width: `${value}%` } },
|
|
16406
|
+
React__namespace.createElement("span", { className: css(styles$v.progressMeasure) }, children))));
|
|
16407
16407
|
};
|
|
16408
16408
|
ProgressBar.displayName = 'ProgressBar';
|
|
16409
16409
|
|
|
@@ -16436,12 +16436,12 @@
|
|
|
16436
16436
|
setTooltip('');
|
|
16437
16437
|
}
|
|
16438
16438
|
};
|
|
16439
|
-
const Title = (React__namespace.createElement("div", { className: css(styles$
|
|
16439
|
+
const Title = (React__namespace.createElement("div", { className: css(styles$v.progressDescription, isTitleTruncated && typeof title === 'string' && styles$v.modifiers.truncate), id: `${parentId}-description`, "aria-hidden": "true", onMouseEnter: isTitleTruncated && typeof title === 'string' ? onMouseEnter : null }, title));
|
|
16440
16440
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16441
16441
|
tooltip ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
|
|
16442
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16443
|
-
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$
|
|
16444
|
-
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$
|
|
16442
|
+
React__namespace.createElement("div", { className: css(styles$v.progressStatus), "aria-hidden": "true" },
|
|
16443
|
+
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$v.progressMeasure) }, label || `${value}%`)),
|
|
16444
|
+
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$v.progressStatusIcon) },
|
|
16445
16445
|
React__namespace.createElement(StatusIcon, null)))),
|
|
16446
16446
|
React__namespace.createElement(ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === exports.ProgressMeasureLocation.inside && `${value}%`)));
|
|
16447
16447
|
};
|
|
@@ -16483,7 +16483,7 @@
|
|
|
16483
16483
|
console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
|
|
16484
16484
|
}
|
|
16485
16485
|
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
|
|
16486
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16486
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$v.progress, styles$v.modifiers[variant], ['inside', 'outside'].includes(measureLocation) && styles$v.modifiers[measureLocation], measureLocation === 'inside' ? styles$v.modifiers[exports.ProgressSize.lg] : styles$v.modifiers[size], !title && styles$v.modifiers.singleline, className), id: this.id }),
|
|
16487
16487
|
React__namespace.createElement(ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
|
|
16488
16488
|
}
|
|
16489
16489
|
}
|
|
@@ -16568,21 +16568,21 @@
|
|
|
16568
16568
|
}
|
|
16569
16569
|
return `${Math.round(size)}${prefixes[prefixUnit]}B`;
|
|
16570
16570
|
};
|
|
16571
|
-
const title = (React__namespace.createElement("span", { className: styles$
|
|
16572
|
-
React__namespace.createElement("span", { className: styles$
|
|
16573
|
-
React__namespace.createElement("span", { className: styles$
|
|
16574
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16575
|
-
React__namespace.createElement("div", { className: styles$
|
|
16576
|
-
React__namespace.createElement("div", { className: styles$
|
|
16571
|
+
const title = (React__namespace.createElement("span", { className: styles$w.multipleFileUploadStatusItemProgress },
|
|
16572
|
+
React__namespace.createElement("span", { className: styles$w.multipleFileUploadStatusItemProgressText }, fileName || (file === null || file === void 0 ? void 0 : file.name) || ''),
|
|
16573
|
+
React__namespace.createElement("span", { className: styles$w.multipleFileUploadStatusItemProgressSize }, fileSize || getHumanReadableFileSize((file === null || file === void 0 ? void 0 : file.size) || 0))));
|
|
16574
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$w.multipleFileUploadStatusItem, className) }, props),
|
|
16575
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusItemIcon }, fileIcon || React__namespace.createElement(FileIcon$1, null)),
|
|
16576
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusItemMain },
|
|
16577
16577
|
React__namespace.createElement(Progress, { title: title, value: progressValue || loadPercentage, variant: progressVariant || loadResult, "aria-label": progressAriaLabel, "aria-labelledby": progressAriaLabelledBy, id: progressId })),
|
|
16578
|
-
React__namespace.createElement("div", { className: styles$
|
|
16578
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusItemClose },
|
|
16579
16579
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": buttonAriaLabel, onClick: onClearClick },
|
|
16580
16580
|
React__namespace.createElement(TimesCircleIcon$1, null)))));
|
|
16581
16581
|
};
|
|
16582
16582
|
MultipleFileUploadStatusItem.displayName = 'MultipleFileUploadStatusItem';
|
|
16583
16583
|
|
|
16584
16584
|
Promise.resolve().then(function () { return nav; });
|
|
16585
|
-
var styles$
|
|
16585
|
+
var styles$u = {
|
|
16586
16586
|
"divider": "pf-c-divider",
|
|
16587
16587
|
"menu": "pf-c-menu",
|
|
16588
16588
|
"menuContent": "pf-c-menu__content",
|
|
@@ -16665,7 +16665,7 @@
|
|
|
16665
16665
|
flyoutRef: this.state.flyoutRef,
|
|
16666
16666
|
setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
|
|
16667
16667
|
} },
|
|
16668
|
-
React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
16668
|
+
React__namespace.createElement("nav", Object.assign({ className: css(styles$u.nav, theme === 'light' && styles$u.modifiers.light, isHorizontal && styles$u.modifiers.horizontal, variant === 'tertiary' && styles$u.modifiers.tertiary, variant === 'horizontal-subnav' && styles$u.modifiers.horizontalSubnav, this.state.isScrollable && styles$u.modifiers.scrollable, className), "aria-label": ariaLabel || (variant === 'tertiary' ? 'Local' : 'Global') }, getOUIAProps(Nav.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
16669
16669
|
}
|
|
16670
16670
|
}
|
|
16671
16671
|
Nav.displayName = 'Nav';
|
|
@@ -16684,8 +16684,8 @@
|
|
|
16684
16684
|
var { className = '', nav, isNavOpen = true, theme = 'dark' } = _a, props = __rest$1(_a, ["className", "nav", "isNavOpen", "theme"]);
|
|
16685
16685
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {
|
|
16686
16686
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
16687
|
-
return (React__namespace.createElement("div", Object.assign({ id: "page-sidebar", className: css(styles$
|
|
16688
|
-
React__namespace.createElement("div", { className: styles$
|
|
16687
|
+
return (React__namespace.createElement("div", Object.assign({ id: "page-sidebar", className: css(styles$y.pageSidebar, theme === 'light' && styles$y.modifiers.light, navOpen && styles$y.modifiers.expanded, !navOpen && styles$y.modifiers.collapsed, className), "aria-hidden": !navOpen }, props),
|
|
16688
|
+
React__namespace.createElement("div", { className: styles$y.pageSidebarBody },
|
|
16689
16689
|
React__namespace.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));
|
|
16690
16690
|
}));
|
|
16691
16691
|
};
|
|
@@ -16763,10 +16763,10 @@
|
|
|
16763
16763
|
const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = __rest$1(_a, ["children", "className", "ariaLeftScroll", "ariaRightScroll"]);
|
|
16764
16764
|
const { scrollViewAtStart, scrollViewAtEnd } = this.state;
|
|
16765
16765
|
return (React__namespace.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16766
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16766
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$u.navScrollButton), "aria-label": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },
|
|
16767
16767
|
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
16768
|
-
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$
|
|
16769
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16768
|
+
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$u.navList, className), onScroll: this.handleScrollButtons }, props), children),
|
|
16769
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$u.navScrollButton), "aria-label": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },
|
|
16770
16770
|
React__namespace.createElement(AngleRightIcon$1, null)))))))));
|
|
16771
16771
|
}
|
|
16772
16772
|
}
|
|
@@ -16784,9 +16784,9 @@
|
|
|
16784
16784
|
console.warn("For accessibility reasons an aria-label should be specified on nav groups if a title isn't");
|
|
16785
16785
|
}
|
|
16786
16786
|
const labelledBy = title ? id : undefined;
|
|
16787
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
16788
|
-
title && (React__namespace.createElement("h2", { className: css(styles$
|
|
16789
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
16787
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$u.navSection, className), "aria-labelledby": labelledBy }, props),
|
|
16788
|
+
title && (React__namespace.createElement("h2", { className: css(styles$u.navSectionTitle), id: id }, title)),
|
|
16789
|
+
React__namespace.createElement("ul", { className: css(styles$u.navList, className) }, children)));
|
|
16790
16790
|
};
|
|
16791
16791
|
NavGroup.displayName = 'NavGroup';
|
|
16792
16792
|
|
|
@@ -16875,17 +16875,17 @@
|
|
|
16875
16875
|
}
|
|
16876
16876
|
}
|
|
16877
16877
|
}, [flyoutVisible, flyoutTarget]);
|
|
16878
|
-
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$
|
|
16879
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16878
|
+
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$u.navToggle) },
|
|
16879
|
+
React__namespace.createElement("span", { className: css(styles$u.navToggleIcon) },
|
|
16880
16880
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))));
|
|
16881
16881
|
const renderDefaultLink = (context) => {
|
|
16882
16882
|
const preventLinkDefault = preventDefault || !to;
|
|
16883
|
-
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$
|
|
16883
|
+
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$u.navLink, isActive && styles$u.modifiers.current, isHovered && styles$u.modifiers.hover, className), "aria-current": isActive ? 'page' : null, tabIndex: isNavOpen ? null : '-1' }, props),
|
|
16884
16884
|
children,
|
|
16885
16885
|
flyout && flyoutButton));
|
|
16886
16886
|
};
|
|
16887
16887
|
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 && {
|
|
16888
|
-
className: css(styles$
|
|
16888
|
+
className: css(styles$u.navLink, isActive && styles$u.modifiers.current, child.props && child.props.className)
|
|
16889
16889
|
})), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16890
16890
|
child.props.children,
|
|
16891
16891
|
flyoutButton)) : (child.props.children) }));
|
|
@@ -16898,7 +16898,7 @@
|
|
|
16898
16898
|
};
|
|
16899
16899
|
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 }));
|
|
16900
16900
|
const navItem = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16901
|
-
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$
|
|
16901
|
+
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$u.navItem, hasFlyout && styles$u.modifiers.flyout, className), ref: ref }, ouiaProps),
|
|
16902
16902
|
React__namespace.createElement(NavContext.Consumer, null, context => React__namespace.isValidElement(children)
|
|
16903
16903
|
? renderClonedChild(context, children)
|
|
16904
16904
|
: renderDefaultLink(context))),
|
|
@@ -16952,15 +16952,15 @@
|
|
|
16952
16952
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16953
16953
|
onExpand } = _a, props = __rest$1(_a, ["title", "srText", "children", "className", "isActive", "ouiaId", "groupId", "id", "isExpanded", "buttonProps", "onExpand"]);
|
|
16954
16954
|
const { expandedState, ouiaStateId } = this.state;
|
|
16955
|
-
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16956
|
-
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$
|
|
16955
|
+
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$u.navItem, styles$u.modifiers.expandable, expandedState && styles$u.modifiers.expanded, isActive && styles$u.modifiers.current, className) }, getOUIAProps(NavExpandable.displayName, ouiaId !== undefined ? ouiaId : ouiaStateId), props),
|
|
16956
|
+
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$u.navLink, id: srText ? null : this.id, onClick: e => this.onExpand(e, context.onToggle), "aria-expanded": expandedState, tabIndex: isNavOpen ? null : -1 }, buttonProps),
|
|
16957
16957
|
title,
|
|
16958
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16959
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16958
|
+
React__namespace.createElement("span", { className: css(styles$u.navToggle) },
|
|
16959
|
+
React__namespace.createElement("span", { className: css(styles$u.navToggleIcon) },
|
|
16960
16960
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))))),
|
|
16961
|
-
React__namespace.createElement("section", { className: css(styles$
|
|
16961
|
+
React__namespace.createElement("section", { className: css(styles$u.navSubnav), "aria-labelledby": this.id, hidden: expandedState ? null : true },
|
|
16962
16962
|
srText && (React__namespace.createElement("h2", { className: css(a11yStyles.screenReader), id: this.id }, srText)),
|
|
16963
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
16963
|
+
React__namespace.createElement("ul", { className: css(styles$u.navList) }, children))))));
|
|
16964
16964
|
}
|
|
16965
16965
|
}
|
|
16966
16966
|
NavExpandable.displayName = 'NavExpandable';
|
|
@@ -16975,7 +16975,7 @@
|
|
|
16975
16975
|
};
|
|
16976
16976
|
|
|
16977
16977
|
Promise.resolve().then(function () { return notificationBadge; });
|
|
16978
|
-
var styles$
|
|
16978
|
+
var styles$t = {
|
|
16979
16979
|
"iconAttentionBell": "pf-icon-attention-bell",
|
|
16980
16980
|
"iconBell": "pf-icon-bell",
|
|
16981
16981
|
"modifiers": {
|
|
@@ -17017,14 +17017,14 @@
|
|
|
17017
17017
|
notificationChild = attentionIcon;
|
|
17018
17018
|
}
|
|
17019
17019
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, className: className }, props),
|
|
17020
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17020
|
+
React__namespace.createElement("span", { className: css(styles$t.notificationBadge, styles$t.modifiers[variant]) },
|
|
17021
17021
|
notificationChild,
|
|
17022
|
-
count > 0 && React__namespace.createElement("span", { className: css(styles$
|
|
17022
|
+
count > 0 && React__namespace.createElement("span", { className: css(styles$t.notificationBadgeCount) }, count))));
|
|
17023
17023
|
};
|
|
17024
17024
|
NotificationBadge.displayName = 'NotificationBadge';
|
|
17025
17025
|
|
|
17026
17026
|
Promise.resolve().then(function () { return notificationDrawer; });
|
|
17027
|
-
var styles$
|
|
17027
|
+
var styles$s = {
|
|
17028
17028
|
"modifiers": {
|
|
17029
17029
|
"read": "pf-m-read",
|
|
17030
17030
|
"info": "pf-m-info",
|
|
@@ -17060,14 +17060,14 @@
|
|
|
17060
17060
|
|
|
17061
17061
|
const NotificationDrawerBase = (_a) => {
|
|
17062
17062
|
var { children, className = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "innerRef"]);
|
|
17063
|
-
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$
|
|
17063
|
+
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$s.notificationDrawer, className) }), children));
|
|
17064
17064
|
};
|
|
17065
17065
|
const NotificationDrawer = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(NotificationDrawerBase, Object.assign({ innerRef: ref }, props))));
|
|
17066
17066
|
NotificationDrawer.displayName = 'NotificationDrawer';
|
|
17067
17067
|
|
|
17068
17068
|
const NotificationDrawerBody = (_a) => {
|
|
17069
17069
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17070
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17070
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$s.notificationDrawerBody, className) }), children));
|
|
17071
17071
|
};
|
|
17072
17072
|
NotificationDrawerBody.displayName = 'NotificationDrawerBody';
|
|
17073
17073
|
|
|
@@ -17095,17 +17095,17 @@
|
|
|
17095
17095
|
}
|
|
17096
17096
|
titleRef.current.style.setProperty(maxLines$1.name, truncateTitle.toString());
|
|
17097
17097
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17098
|
-
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17099
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17098
|
+
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$s.notificationDrawerGroupToggleTitle) }), title));
|
|
17099
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$s.notificationDrawerGroup, isExpanded && styles$s.modifiers.expanded, className) }),
|
|
17100
17100
|
React__namespace.createElement(HeadingLevel, null,
|
|
17101
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17101
|
+
React__namespace.createElement("button", { className: css(styles$s.notificationDrawerGroupToggle), "aria-expanded": isExpanded, onClick: e => onExpand(e, !isExpanded), onKeyDown: e => {
|
|
17102
17102
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
17103
17103
|
e.preventDefault();
|
|
17104
17104
|
onExpand(e, !isExpanded);
|
|
17105
17105
|
}
|
|
17106
17106
|
} },
|
|
17107
17107
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title),
|
|
17108
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
17108
|
+
React__namespace.createElement("div", { className: css(styles$s.notificationDrawerGroupToggleCount) },
|
|
17109
17109
|
React__namespace.createElement(Badge, { isRead: isRead }, count)),
|
|
17110
17110
|
React__namespace.createElement("span", { className: "pf-c-notification-drawer__group-toggle-icon" },
|
|
17111
17111
|
React__namespace.createElement(AngleRightIcon$1, null)))),
|
|
@@ -17115,13 +17115,13 @@
|
|
|
17115
17115
|
|
|
17116
17116
|
const NotificationDrawerGroupList = (_a) => {
|
|
17117
17117
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17118
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17118
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$s.notificationDrawerGroupList, className) }), children));
|
|
17119
17119
|
};
|
|
17120
17120
|
NotificationDrawerGroupList.displayName = 'NotificationDrawerGroupList';
|
|
17121
17121
|
|
|
17122
17122
|
const TextContent = (_a) => {
|
|
17123
17123
|
var { children = null, className = '', isVisited = false } = _a, props = __rest$1(_a, ["children", "className", "isVisited"]);
|
|
17124
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17124
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1e.content, isVisited && styles$1e.modifiers.visited, className) }), children));
|
|
17125
17125
|
};
|
|
17126
17126
|
TextContent.displayName = 'TextContent';
|
|
17127
17127
|
|
|
@@ -17143,7 +17143,7 @@
|
|
|
17143
17143
|
var { children = null, className = '', component = exports.TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
17144
17144
|
const Component = component;
|
|
17145
17145
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
17146
|
-
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$
|
|
17146
|
+
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$1e.modifiers.visited, className) }), children));
|
|
17147
17147
|
};
|
|
17148
17148
|
Text.displayName = 'Text';
|
|
17149
17149
|
|
|
@@ -17175,10 +17175,10 @@
|
|
|
17175
17175
|
|
|
17176
17176
|
const NotificationDrawerHeader = (_a) => {
|
|
17177
17177
|
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"]);
|
|
17178
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17179
|
-
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$
|
|
17180
|
-
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$
|
|
17181
|
-
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$
|
|
17178
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$s.notificationDrawerHeader, className) }),
|
|
17179
|
+
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$s.notificationDrawerHeaderTitle) }, title),
|
|
17180
|
+
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$s.notificationDrawerHeaderStatus) }, customText || `${count} ${unreadText}`)),
|
|
17181
|
+
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$s.notificationDrawerHeaderAction) },
|
|
17182
17182
|
children,
|
|
17183
17183
|
onClose && (React__namespace.createElement("div", null,
|
|
17184
17184
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
@@ -17202,15 +17202,15 @@
|
|
|
17202
17202
|
event.target.click();
|
|
17203
17203
|
}
|
|
17204
17204
|
};
|
|
17205
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$
|
|
17205
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$s.notificationDrawerListItem, isHoverable && styles$s.modifiers.hoverable, styles$s.modifiers[variant], isRead && styles$s.modifiers.read, className), tabIndex: tabIndex, onClick: e => onClick(e), onKeyDown: onKeyDown }), children));
|
|
17206
17206
|
};
|
|
17207
17207
|
NotificationDrawerListItem.displayName = 'NotificationDrawerListItem';
|
|
17208
17208
|
|
|
17209
17209
|
const NotificationDrawerListItemBody = (_a) => {
|
|
17210
17210
|
var { children, className = '', timestamp } = _a, props = __rest$1(_a, ["children", "className", "timestamp"]);
|
|
17211
17211
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17212
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17213
|
-
timestamp && React__namespace.createElement("div", { className: css(styles$
|
|
17212
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$s.notificationDrawerListItemDescription, className) }), children),
|
|
17213
|
+
timestamp && React__namespace.createElement("div", { className: css(styles$s.notificationDrawerListItemTimestamp, className) }, timestamp)));
|
|
17214
17214
|
};
|
|
17215
17215
|
NotificationDrawerListItemBody.displayName = 'NotificationDrawerListItemBody';
|
|
17216
17216
|
|
|
@@ -17243,19 +17243,19 @@
|
|
|
17243
17243
|
}
|
|
17244
17244
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17245
17245
|
const Icon = variantIcons$1[variant];
|
|
17246
|
-
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17246
|
+
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$s.notificationDrawerListItemHeaderTitle, truncateTitle && styles$s.modifiers.truncate) }),
|
|
17247
17247
|
srTitle && React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, srTitle),
|
|
17248
17248
|
title));
|
|
17249
17249
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17250
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17251
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17250
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$s.notificationDrawerListItemHeader, className) }),
|
|
17251
|
+
React__namespace.createElement("span", { className: css(styles$s.notificationDrawerListItemHeaderIcon) }, icon ? icon : React__namespace.createElement(Icon, null)),
|
|
17252
17252
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title)),
|
|
17253
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
17253
|
+
children && React__namespace.createElement("div", { className: css(styles$s.notificationDrawerListItemAction) }, children)));
|
|
17254
17254
|
};
|
|
17255
17255
|
NotificationDrawerListItemHeader.displayName = 'NotificationDrawerListItemHeader';
|
|
17256
17256
|
|
|
17257
17257
|
Promise.resolve().then(function () { return optionsMenu; });
|
|
17258
|
-
var styles$
|
|
17258
|
+
var styles$r = {
|
|
17259
17259
|
"divider": "pf-c-divider",
|
|
17260
17260
|
"modifiers": {
|
|
17261
17261
|
"plain": "pf-m-plain",
|
|
@@ -17297,13 +17297,13 @@
|
|
|
17297
17297
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17298
17298
|
id,
|
|
17299
17299
|
onSelect: () => undefined,
|
|
17300
|
-
toggleIndicatorClass: styles$
|
|
17301
|
-
toggleTextClass: styles$
|
|
17302
|
-
menuClass: styles$
|
|
17303
|
-
itemClass: styles$
|
|
17304
|
-
toggleClass: isText ? styles$
|
|
17305
|
-
baseClass: styles$
|
|
17306
|
-
disabledClass: styles$
|
|
17300
|
+
toggleIndicatorClass: styles$r.optionsMenuToggleIcon,
|
|
17301
|
+
toggleTextClass: styles$r.optionsMenuToggleText,
|
|
17302
|
+
menuClass: styles$r.optionsMenuMenu,
|
|
17303
|
+
itemClass: styles$r.optionsMenuMenuItem,
|
|
17304
|
+
toggleClass: isText ? styles$r.optionsMenuToggleButton : styles$r.optionsMenuToggle,
|
|
17305
|
+
baseClass: styles$r.optionsMenu,
|
|
17306
|
+
disabledClass: styles$r.modifiers.disabled,
|
|
17307
17307
|
menuComponent: isGrouped ? 'div' : 'ul',
|
|
17308
17308
|
baseComponent: 'div',
|
|
17309
17309
|
ouiaId: useOUIAId(OptionsMenu.displayName, ouiaId),
|
|
@@ -17328,8 +17328,8 @@
|
|
|
17328
17328
|
|
|
17329
17329
|
const OptionsMenuItemGroup = (_a) => {
|
|
17330
17330
|
var { className = '', 'aria-label': ariaLabel = '', groupTitle = '', children = null, hasSeparator = false } = _a, props = __rest$1(_a, ["className", 'aria-label', "groupTitle", "children", "hasSeparator"]);
|
|
17331
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17332
|
-
groupTitle && React__namespace.createElement("h1", { className: css(styles$
|
|
17331
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$r.optionsMenuGroup) }),
|
|
17332
|
+
groupTitle && React__namespace.createElement("h1", { className: css(styles$r.optionsMenuGroupTitle) }, groupTitle),
|
|
17333
17333
|
React__namespace.createElement("ul", { className: className, "aria-label": ariaLabel },
|
|
17334
17334
|
children,
|
|
17335
17335
|
hasSeparator && React__namespace.createElement(Divider, { component: "li", role: "separator" }))));
|
|
@@ -17340,7 +17340,7 @@
|
|
|
17340
17340
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest$1(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
17341
17341
|
return (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
17342
17342
|
children,
|
|
17343
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
17343
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$r.optionsMenuMenuItemIcon) },
|
|
17344
17344
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": isSelected })))));
|
|
17345
17345
|
};
|
|
17346
17346
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -17402,15 +17402,15 @@
|
|
|
17402
17402
|
buttonRef.current.focus();
|
|
17403
17403
|
}
|
|
17404
17404
|
};
|
|
17405
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17406
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17407
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17408
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17405
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$r.optionsMenuToggle, styles$r.modifiers.text, isPlain && styles$r.modifiers.plain, isDisabled && styles$r.modifiers.disabled, isActive && styles$r.modifiers.active) }, props),
|
|
17406
|
+
React__namespace.createElement("span", { className: css(styles$r.optionsMenuToggleText, toggleTextClassName) }, toggleText),
|
|
17407
|
+
React__namespace.createElement("button", { className: css(styles$r.optionsMenuToggleButton, toggleButtonContentsClassName), id: `${parentId}-toggle`, "aria-haspopup": "listbox", "aria-label": ariaLabel, "aria-expanded": isOpen, ref: buttonRef, disabled: isDisabled, onClick: () => onToggle(!isOpen), onKeyDown: onKeyDown },
|
|
17408
|
+
React__namespace.createElement("span", { className: css(styles$r.optionsMenuToggleButtonIcon) }, toggleButtonContents))));
|
|
17409
17409
|
};
|
|
17410
17410
|
OptionsMenuToggleWithText.displayName = 'OptionsMenuToggleWithText';
|
|
17411
17411
|
|
|
17412
17412
|
Promise.resolve().then(function () { return overflowMenu; });
|
|
17413
|
-
var styles$
|
|
17413
|
+
var styles$q = {
|
|
17414
17414
|
"divider": "pf-c-divider",
|
|
17415
17415
|
"modifiers": {
|
|
17416
17416
|
"buttonGroup": "pf-m-button-group",
|
|
@@ -17487,7 +17487,7 @@
|
|
|
17487
17487
|
render() {
|
|
17488
17488
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17489
17489
|
const _a = this.props, { className, breakpoint, children } = _a, props = __rest$1(_a, ["className", "breakpoint", "children"]);
|
|
17490
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17490
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$q.overflowMenu, className) }),
|
|
17491
17491
|
React__namespace.createElement(OverflowMenuContext.Provider, { value: { isBelowBreakpoint: this.state.isBelowBreakpoint } }, children)));
|
|
17492
17492
|
}
|
|
17493
17493
|
}
|
|
@@ -17496,23 +17496,23 @@
|
|
|
17496
17496
|
|
|
17497
17497
|
const OverflowMenuControl = (_a) => {
|
|
17498
17498
|
var { className, children, hasAdditionalOptions } = _a, props = __rest$1(_a, ["className", "children", "hasAdditionalOptions"]);
|
|
17499
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17499
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$q.overflowMenuControl, className) }, props),
|
|
17500
17500
|
' ',
|
|
17501
17501
|
children,
|
|
17502
17502
|
' '))));
|
|
17503
17503
|
};
|
|
17504
17504
|
OverflowMenuControl.displayName = 'OverflowMenuControl';
|
|
17505
17505
|
|
|
17506
|
-
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$
|
|
17506
|
+
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$q.overflowMenuContent, className) }, children))));
|
|
17507
17507
|
OverflowMenuContent.displayName = 'OverflowMenuContent';
|
|
17508
17508
|
|
|
17509
17509
|
const OverflowMenuGroup = (_a) => {
|
|
17510
17510
|
var { className, children, isPersistent = false, groupType } = _a, props = __rest$1(_a, ["className", "children", "isPersistent", "groupType"]);
|
|
17511
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17511
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$q.overflowMenuGroup, groupType === 'button' && styles$q.modifiers.buttonGroup, groupType === 'icon' && styles$q.modifiers.iconButtonGroup, className) }, props), children))));
|
|
17512
17512
|
};
|
|
17513
17513
|
OverflowMenuGroup.displayName = 'OverflowMenuGroup';
|
|
17514
17514
|
|
|
17515
|
-
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$
|
|
17515
|
+
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$q.overflowMenuItem, className) },
|
|
17516
17516
|
" ",
|
|
17517
17517
|
children,
|
|
17518
17518
|
" "))));
|
|
@@ -17526,8 +17526,8 @@
|
|
|
17526
17526
|
|
|
17527
17527
|
const PageBreadcrumb = (_a) => {
|
|
17528
17528
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17529
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
17530
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17529
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$y.pageMainBreadcrumb, isWidthLimited && styles$y.modifiers.limitWidth, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), props),
|
|
17530
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17531
17531
|
!isWidthLimited && children));
|
|
17532
17532
|
};
|
|
17533
17533
|
PageBreadcrumb.displayName = 'PageBreadcrumb';
|
|
@@ -17554,13 +17554,13 @@
|
|
|
17554
17554
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, onNavToggle: managedOnNavToggle, isNavOpen: managedIsNavOpen }) => {
|
|
17555
17555
|
const navToggle = isManagedSidebar ? managedOnNavToggle : onNavToggle;
|
|
17556
17556
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
17557
|
-
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$
|
|
17558
|
-
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$
|
|
17559
|
-
showNavToggle && (React__namespace.createElement("div", { className: css(styles$
|
|
17557
|
+
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$y.pageHeader, className) }, props),
|
|
17558
|
+
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$y.pageHeaderBrand) },
|
|
17559
|
+
showNavToggle && (React__namespace.createElement("div", { className: css(styles$y.pageHeaderBrandToggle) },
|
|
17560
17560
|
React__namespace.createElement(Button, { id: "nav-toggle", onClick: navToggle, "aria-label": ariaLabel, "aria-controls": ariaControls, "aria-expanded": navOpen ? 'true' : 'false', variant: exports.ButtonVariant.plain },
|
|
17561
17561
|
React__namespace.createElement(BarsIcon$1, null)))),
|
|
17562
|
-
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$
|
|
17563
|
-
topNav && React__namespace.createElement("div", { className: css(styles$
|
|
17562
|
+
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$y.pageHeaderBrandLink) }, logoProps), logo)))),
|
|
17563
|
+
topNav && React__namespace.createElement("div", { className: css(styles$y.pageHeaderNav) }, topNav),
|
|
17564
17564
|
headerTools));
|
|
17565
17565
|
}));
|
|
17566
17566
|
};
|
|
@@ -17583,51 +17583,51 @@
|
|
|
17583
17583
|
PageSectionTypes["wizard"] = "wizard";
|
|
17584
17584
|
})(exports.PageSectionTypes || (exports.PageSectionTypes = {}));
|
|
17585
17585
|
const variantType = {
|
|
17586
|
-
[exports.PageSectionTypes.default]: styles$
|
|
17587
|
-
[exports.PageSectionTypes.nav]: styles$
|
|
17588
|
-
[exports.PageSectionTypes.subNav]: styles$
|
|
17589
|
-
[exports.PageSectionTypes.breadcrumb]: styles$
|
|
17590
|
-
[exports.PageSectionTypes.tabs]: styles$
|
|
17591
|
-
[exports.PageSectionTypes.wizard]: styles$
|
|
17586
|
+
[exports.PageSectionTypes.default]: styles$y.pageMainSection,
|
|
17587
|
+
[exports.PageSectionTypes.nav]: styles$y.pageMainNav,
|
|
17588
|
+
[exports.PageSectionTypes.subNav]: styles$y.pageMainSubnav,
|
|
17589
|
+
[exports.PageSectionTypes.breadcrumb]: styles$y.pageMainBreadcrumb,
|
|
17590
|
+
[exports.PageSectionTypes.tabs]: styles$y.pageMainTabs,
|
|
17591
|
+
[exports.PageSectionTypes.wizard]: styles$y.pageMainWizard
|
|
17592
17592
|
};
|
|
17593
17593
|
const variantStyle$3 = {
|
|
17594
17594
|
[exports.PageSectionVariants.default]: '',
|
|
17595
|
-
[exports.PageSectionVariants.light]: styles$
|
|
17596
|
-
[exports.PageSectionVariants.dark]: styles$
|
|
17597
|
-
[exports.PageSectionVariants.darker]: styles$
|
|
17595
|
+
[exports.PageSectionVariants.light]: styles$y.modifiers.light,
|
|
17596
|
+
[exports.PageSectionVariants.dark]: styles$y.modifiers.dark_200,
|
|
17597
|
+
[exports.PageSectionVariants.darker]: styles$y.modifiers.dark_100
|
|
17598
17598
|
};
|
|
17599
17599
|
const PageSection = (_a) => {
|
|
17600
17600
|
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17601
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$
|
|
17602
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17601
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$y), variantStyle$3[variant], isFilled === false && styles$y.modifiers.noFill, isFilled === true && styles$y.modifiers.fill, isWidthLimited && styles$y.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$y.modifiers.alignCenter, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 })),
|
|
17602
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17603
17603
|
!isWidthLimited && children));
|
|
17604
17604
|
};
|
|
17605
17605
|
PageSection.displayName = 'PageSection';
|
|
17606
17606
|
|
|
17607
17607
|
const PageHeaderTools = (_a) => {
|
|
17608
17608
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17609
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17609
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$y.pageHeaderTools, className) }, props), children));
|
|
17610
17610
|
};
|
|
17611
17611
|
PageHeaderTools.displayName = 'PageHeaderTools';
|
|
17612
17612
|
|
|
17613
17613
|
const PageHeaderToolsGroup = (_a) => {
|
|
17614
17614
|
var { children, className, visibility } = _a, props = __rest$1(_a, ["children", "className", "visibility"]);
|
|
17615
17615
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17616
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17616
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$y.pageHeaderToolsGroup, formatBreakpointMods(visibility, styles$y, '', getBreakpoint(width)), className) }, props), children));
|
|
17617
17617
|
};
|
|
17618
17618
|
PageHeaderToolsGroup.displayName = 'PageHeaderToolsGroup';
|
|
17619
17619
|
|
|
17620
17620
|
const PageHeaderToolsItem = (_a) => {
|
|
17621
17621
|
var { children, id, className, visibility, isSelected } = _a, props = __rest$1(_a, ["children", "id", "className", "visibility", "isSelected"]);
|
|
17622
17622
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17623
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17623
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$y.pageHeaderToolsItem, isSelected && styles$y.modifiers.selected, formatBreakpointMods(visibility, styles$y, '', getBreakpoint(width)), className), id: id }, props), children));
|
|
17624
17624
|
};
|
|
17625
17625
|
PageHeaderToolsItem.displayName = 'PageHeaderToolsItem';
|
|
17626
17626
|
|
|
17627
17627
|
const PageNavigation = (_a) => {
|
|
17628
17628
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17629
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17630
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17629
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$y.pageMainNav, isWidthLimited && styles$y.modifiers.limitWidth, sticky === 'top' && styles$y.modifiers.stickyTop, sticky === 'bottom' && styles$y.modifiers.stickyBottom, hasShadowTop && styles$y.modifiers.shadowTop, hasShadowBottom && styles$y.modifiers.shadowBottom, hasOverflowScroll && styles$y.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), props),
|
|
17630
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$y.pageMainBody) }, children),
|
|
17631
17631
|
!isWidthLimited && children));
|
|
17632
17632
|
};
|
|
17633
17633
|
PageNavigation.displayName = 'PageNavigation';
|
|
@@ -17656,7 +17656,7 @@
|
|
|
17656
17656
|
ToggleTemplate.displayName = 'ToggleTemplate';
|
|
17657
17657
|
|
|
17658
17658
|
Promise.resolve().then(function () { return pagination; });
|
|
17659
|
-
var styles$
|
|
17659
|
+
var styles$p = {
|
|
17660
17660
|
"button": "pf-c-button",
|
|
17661
17661
|
"formControl": "pf-c-form-control",
|
|
17662
17662
|
"modifiers": {
|
|
@@ -17734,15 +17734,15 @@
|
|
|
17734
17734
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17735
17735
|
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"]);
|
|
17736
17736
|
const { userInputPage } = this.state;
|
|
17737
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
17738
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17737
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$p.paginationNav, className), "aria-label": paginationTitle }, props),
|
|
17738
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$p.paginationNavControl, styles$p.modifiers.first) },
|
|
17739
17739
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "aria-label": toFirstPage, "data-action": "first", onClick: event => {
|
|
17740
17740
|
onFirstClick(event, 1);
|
|
17741
17741
|
this.handleNewPage(event, 1);
|
|
17742
17742
|
this.setState({ userInputPage: 1 });
|
|
17743
17743
|
} },
|
|
17744
17744
|
React__namespace.createElement(AngleDoubleLeftIcon$1, null)))),
|
|
17745
|
-
React__namespace.createElement("div", { className: styles$
|
|
17745
|
+
React__namespace.createElement("div", { className: styles$p.paginationNavControl },
|
|
17746
17746
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
|
|
17747
17747
|
const newPage = page - 1 >= 1 ? page - 1 : 1;
|
|
17748
17748
|
onPreviousClick(event, newPage);
|
|
@@ -17750,13 +17750,13 @@
|
|
|
17750
17750
|
this.setState({ userInputPage: newPage });
|
|
17751
17751
|
}, "aria-label": toPreviousPage },
|
|
17752
17752
|
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
17753
|
-
!isCompact && (React__namespace.createElement("div", { className: styles$
|
|
17754
|
-
React__namespace.createElement("input", { className: css(styles$
|
|
17753
|
+
!isCompact && (React__namespace.createElement("div", { className: styles$p.paginationNavPageSelect },
|
|
17754
|
+
React__namespace.createElement("input", { className: css(styles$p.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) }),
|
|
17755
17755
|
(itemCount || itemCount === 0) && (React__namespace.createElement("span", { "aria-hidden": "true" },
|
|
17756
17756
|
ofWord,
|
|
17757
17757
|
" ",
|
|
17758
17758
|
pagesTitle ? pluralize(lastPage, pagesTitle, pagesTitlePlural) : lastPage)))),
|
|
17759
|
-
React__namespace.createElement("div", { className: styles$
|
|
17759
|
+
React__namespace.createElement("div", { className: styles$p.paginationNavControl },
|
|
17760
17760
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toNextPage, "data-action": "next", onClick: event => {
|
|
17761
17761
|
const newPage = page + 1 <= lastPage ? page + 1 : lastPage;
|
|
17762
17762
|
onNextClick(event, newPage);
|
|
@@ -17764,7 +17764,7 @@
|
|
|
17764
17764
|
this.setState({ userInputPage: newPage });
|
|
17765
17765
|
} },
|
|
17766
17766
|
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
17767
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17767
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$p.paginationNavControl, styles$p.modifiers.last) },
|
|
17768
17768
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
|
|
17769
17769
|
onLastClick(event, lastPage);
|
|
17770
17770
|
this.handleNewPage(event, lastPage);
|
|
@@ -17803,11 +17803,11 @@
|
|
|
17803
17803
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17804
17804
|
onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null, perPageComponent = 'div' }) => {
|
|
17805
17805
|
const isDiv = perPageComponent === 'div';
|
|
17806
|
-
const toggleClasses = css(styles$
|
|
17806
|
+
const toggleClasses = css(styles$r.optionsMenuToggle, isDisabled && styles$r.modifiers.disabled, styles$r.modifiers.plain, styles$r.modifiers.text);
|
|
17807
17807
|
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 }));
|
|
17808
17808
|
const dropdown = showToggle && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17809
|
-
isDiv && React__namespace.createElement("span", { className: css(styles$
|
|
17810
|
-
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$
|
|
17809
|
+
isDiv && React__namespace.createElement("span", { className: css(styles$r.optionsMenuToggleText) }, template),
|
|
17810
|
+
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$r.optionsMenuToggleButton : toggleClasses, parentRef: parentRef, "aria-haspopup": "listbox" }, !isDiv && template)));
|
|
17811
17811
|
return isDiv ? React__namespace.createElement("div", { className: toggleClasses }, dropdown) : dropdown;
|
|
17812
17812
|
};
|
|
17813
17813
|
OptionsToggle.displayName = 'OptionsToggle';
|
|
@@ -17844,7 +17844,7 @@
|
|
|
17844
17844
|
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) },
|
|
17845
17845
|
title,
|
|
17846
17846
|
` ${perPageSuffix}`,
|
|
17847
|
-
perPage === value && (React__namespace.createElement("div", { className: css(styles$
|
|
17847
|
+
perPage === value && (React__namespace.createElement("div", { className: css(styles$r.optionsMenuMenuItemIcon) },
|
|
17848
17848
|
React__namespace.createElement(CheckIcon$1, null))))));
|
|
17849
17849
|
};
|
|
17850
17850
|
this.state = {
|
|
@@ -17857,13 +17857,13 @@
|
|
|
17857
17857
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17858
17858
|
id: widgetId,
|
|
17859
17859
|
onSelect: this.onSelect,
|
|
17860
|
-
toggleIndicatorClass: perPageComponent === 'div' ? styles$
|
|
17861
|
-
toggleTextClass: styles$
|
|
17862
|
-
menuClass: styles$
|
|
17863
|
-
itemClass: styles$
|
|
17860
|
+
toggleIndicatorClass: perPageComponent === 'div' ? styles$r.optionsMenuToggleButtonIcon : styles$r.optionsMenuToggleIcon,
|
|
17861
|
+
toggleTextClass: styles$r.optionsMenuToggleText,
|
|
17862
|
+
menuClass: styles$r.optionsMenuMenu,
|
|
17863
|
+
itemClass: styles$r.optionsMenuMenuItem,
|
|
17864
17864
|
toggleClass: ' ',
|
|
17865
|
-
baseClass: styles$
|
|
17866
|
-
disabledClass: styles$
|
|
17865
|
+
baseClass: styles$r.optionsMenu,
|
|
17866
|
+
disabledClass: styles$r.modifiers.disabled,
|
|
17867
17867
|
menuComponent: 'ul',
|
|
17868
17868
|
baseComponent: 'div',
|
|
17869
17869
|
ouiaComponentType: PaginationOptionsMenu.displayName
|
|
@@ -17984,8 +17984,8 @@
|
|
|
17984
17984
|
}
|
|
17985
17985
|
}
|
|
17986
17986
|
const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };
|
|
17987
|
-
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$
|
|
17988
|
-
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$
|
|
17987
|
+
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$p.pagination, variant === exports.PaginationVariant.bottom && styles$p.modifiers.bottom, isCompact && styles$p.modifiers.compact, isStatic && styles$p.modifiers.static, isSticky && styles$p.modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
17988
|
+
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$p.paginationTotalItems) },
|
|
17989
17989
|
toggleTemplate && typeof toggleTemplate === 'string' && fillTemplate(toggleTemplate, toggleTemplateProps),
|
|
17990
17990
|
toggleTemplate &&
|
|
17991
17991
|
typeof toggleTemplate !== 'string' &&
|
|
@@ -18040,7 +18040,7 @@
|
|
|
18040
18040
|
};
|
|
18041
18041
|
|
|
18042
18042
|
Promise.resolve().then(function () { return progressStepper; });
|
|
18043
|
-
var styles$
|
|
18043
|
+
var styles$o = {
|
|
18044
18044
|
"faExclamationTriangle": "fa-exclamation-triangle",
|
|
18045
18045
|
"modifiers": {
|
|
18046
18046
|
"center": "pf-m-center",
|
|
@@ -18077,7 +18077,7 @@
|
|
|
18077
18077
|
|
|
18078
18078
|
const ProgressStepper = (_a) => {
|
|
18079
18079
|
var { children, className, isCenterAligned, isVertical, isCompact } = _a, props = __rest$1(_a, ["children", "className", "isCenterAligned", "isVertical", "isCompact"]);
|
|
18080
|
-
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$
|
|
18080
|
+
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$o.progressStepper, isCenterAligned && styles$o.modifiers.center, isVertical && styles$o.modifiers.vertical, isCompact && styles$o.modifiers.compact, className) }, props), children));
|
|
18081
18081
|
};
|
|
18082
18082
|
ProgressStepper.displayName = 'ProgressStepper';
|
|
18083
18083
|
|
|
@@ -18104,11 +18104,11 @@
|
|
|
18104
18104
|
};
|
|
18105
18105
|
const variantStyle$2 = {
|
|
18106
18106
|
default: '',
|
|
18107
|
-
info: styles$
|
|
18108
|
-
success: styles$
|
|
18109
|
-
pending: styles$
|
|
18110
|
-
warning: styles$
|
|
18111
|
-
danger: styles$
|
|
18107
|
+
info: styles$o.modifiers.info,
|
|
18108
|
+
success: styles$o.modifiers.success,
|
|
18109
|
+
pending: styles$o.modifiers.pending,
|
|
18110
|
+
warning: styles$o.modifiers.warning,
|
|
18111
|
+
danger: styles$o.modifiers.danger
|
|
18112
18112
|
};
|
|
18113
18113
|
const ProgressStep = (_a) => {
|
|
18114
18114
|
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"]);
|
|
@@ -18119,19 +18119,19 @@
|
|
|
18119
18119
|
/* eslint-disable no-console */
|
|
18120
18120
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
18121
18121
|
}
|
|
18122
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
18123
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18124
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18125
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18126
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
18122
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$o.progressStepperStep, variantStyle$2[variant], isCurrent && styles$o.modifiers.current, className), "aria-label": ariaLabel }, (isCurrent && { 'aria-current': 'step' }), props),
|
|
18123
|
+
React__namespace.createElement("div", { className: css(styles$o.progressStepperStepConnector) },
|
|
18124
|
+
React__namespace.createElement("span", { className: css(styles$o.progressStepperStepIcon) }, _icon && _icon)),
|
|
18125
|
+
React__namespace.createElement("div", { className: css(styles$o.progressStepperStepMain) },
|
|
18126
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$o.progressStepperStepTitle, popoverRender && styles$o.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
18127
18127
|
children,
|
|
18128
18128
|
popoverRender && popoverRender(stepRef)),
|
|
18129
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
18129
|
+
description && React__namespace.createElement("div", { className: css(styles$o.progressStepperStepDescription) }, description))));
|
|
18130
18130
|
};
|
|
18131
18131
|
ProgressStep.displayName = 'ProgressStep';
|
|
18132
18132
|
|
|
18133
18133
|
Promise.resolve().then(function () { return radio; });
|
|
18134
|
-
var styles$
|
|
18134
|
+
var styles$n = {
|
|
18135
18135
|
"modifiers": {
|
|
18136
18136
|
"standalone": "pf-m-standalone",
|
|
18137
18137
|
"disabled": "pf-m-disabled"
|
|
@@ -18165,16 +18165,16 @@
|
|
|
18165
18165
|
// eslint-disable-next-line no-console
|
|
18166
18166
|
console.error('Radio:', 'id is required to make input accessible');
|
|
18167
18167
|
}
|
|
18168
|
-
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
18168
|
+
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$n.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))));
|
|
18169
18169
|
let labelRendered = null;
|
|
18170
18170
|
if (label && isLabelWrapped) {
|
|
18171
|
-
labelRendered = React__namespace.createElement("span", { className: css(styles$
|
|
18171
|
+
labelRendered = React__namespace.createElement("span", { className: css(styles$n.radioLabel, isDisabled && styles$n.modifiers.disabled) }, label);
|
|
18172
18172
|
}
|
|
18173
18173
|
else if (label) {
|
|
18174
|
-
labelRendered = (React__namespace.createElement("label", { className: css(styles$
|
|
18174
|
+
labelRendered = (React__namespace.createElement("label", { className: css(styles$n.radioLabel, isDisabled && styles$n.modifiers.disabled), htmlFor: props.id }, label));
|
|
18175
18175
|
}
|
|
18176
|
-
const descRender = description ? React__namespace.createElement("span", { className: css(styles$
|
|
18177
|
-
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$
|
|
18176
|
+
const descRender = description ? React__namespace.createElement("span", { className: css(styles$n.radioDescription) }, description) : null;
|
|
18177
|
+
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$n.radioBody) }, body) : null;
|
|
18178
18178
|
const childrenRendered = isLabelBeforeButton ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
18179
18179
|
labelRendered,
|
|
18180
18180
|
inputRendered,
|
|
@@ -18184,7 +18184,7 @@
|
|
|
18184
18184
|
labelRendered,
|
|
18185
18185
|
descRender,
|
|
18186
18186
|
bodyRender));
|
|
18187
|
-
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$
|
|
18187
|
+
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$n.radio, className), htmlFor: props.id }, childrenRendered)) : (React__namespace.createElement("div", { className: css(styles$n.radio, !label && styles$n.modifiers.standalone, className) }, childrenRendered));
|
|
18188
18188
|
}
|
|
18189
18189
|
}
|
|
18190
18190
|
Radio.displayName = 'Radio';
|
|
@@ -18195,29 +18195,6 @@
|
|
|
18195
18195
|
onChange: () => { }
|
|
18196
18196
|
};
|
|
18197
18197
|
|
|
18198
|
-
Promise.resolve().then(function () { return searchInput; });
|
|
18199
|
-
var styles$n = {
|
|
18200
|
-
"button": "pf-c-button",
|
|
18201
|
-
"modifiers": {
|
|
18202
|
-
"hint": "pf-m-hint",
|
|
18203
|
-
"top": "pf-m-top"
|
|
18204
|
-
},
|
|
18205
|
-
"searchInput": "pf-c-search-input",
|
|
18206
|
-
"searchInputBar": "pf-c-search-input__bar",
|
|
18207
|
-
"searchInputCount": "pf-c-search-input__count",
|
|
18208
|
-
"searchInputIcon": "pf-c-search-input__icon",
|
|
18209
|
-
"searchInputMenu": "pf-c-search-input__menu",
|
|
18210
|
-
"searchInputMenuBody": "pf-c-search-input__menu-body",
|
|
18211
|
-
"searchInputMenuItem": "pf-c-search-input__menu-item",
|
|
18212
|
-
"searchInputMenuItemText": "pf-c-search-input__menu-item-text",
|
|
18213
|
-
"searchInputMenuList": "pf-c-search-input__menu-list",
|
|
18214
|
-
"searchInputNav": "pf-c-search-input__nav",
|
|
18215
|
-
"searchInputText": "pf-c-search-input__text",
|
|
18216
|
-
"searchInputTextInput": "pf-c-search-input__text-input",
|
|
18217
|
-
"searchInputUtilities": "pf-c-search-input__utilities",
|
|
18218
|
-
"themeDark": "pf-theme-dark"
|
|
18219
|
-
};
|
|
18220
|
-
|
|
18221
18198
|
const ArrowRightIconConfig = {
|
|
18222
18199
|
name: 'ArrowRightIcon',
|
|
18223
18200
|
height: 512,
|
|
@@ -18438,7 +18415,7 @@
|
|
|
18438
18415
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
18439
18416
|
|
|
18440
18417
|
const SearchInputBase = (_a) => {
|
|
18441
|
-
var { className, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, placeholder, hint, onChange, onSearch, onClear, onToggleAdvancedSearch, isAdvancedSearchOpen, resultsCount, onNextClick, onPreviousClick, innerRef, 'aria-label': ariaLabel = 'Search input', resetButtonLabel = 'Reset', openMenuButtonAriaLabel = 'Open advanced search', previousNavigationButtonAriaLabel = 'Previous', isPreviousNavigationButtonDisabled = false, isNextNavigationButtonDisabled = false, nextNavigationButtonAriaLabel = 'Next', submitSearchButtonLabel = 'Search', isDisabled = false } = _a, props = __rest$1(_a, ["className", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", 'aria-label', "resetButtonLabel", "openMenuButtonAriaLabel", "previousNavigationButtonAriaLabel", "isPreviousNavigationButtonDisabled", "isNextNavigationButtonDisabled", "nextNavigationButtonAriaLabel", "submitSearchButtonLabel", "isDisabled"]);
|
|
18418
|
+
var { className, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, placeholder, hint, onChange, onSearch, onClear, onToggleAdvancedSearch, isAdvancedSearchOpen, resultsCount, onNextClick, onPreviousClick, innerRef, 'aria-label': ariaLabel = 'Search input', resetButtonLabel = 'Reset', openMenuButtonAriaLabel = 'Open advanced search', previousNavigationButtonAriaLabel = 'Previous', isPreviousNavigationButtonDisabled = false, isNextNavigationButtonDisabled = false, nextNavigationButtonAriaLabel = 'Next', submitSearchButtonLabel = 'Search', isDisabled = false, appendTo } = _a, props = __rest$1(_a, ["className", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", 'aria-label', "resetButtonLabel", "openMenuButtonAriaLabel", "previousNavigationButtonAriaLabel", "isPreviousNavigationButtonDisabled", "isNextNavigationButtonDisabled", "nextNavigationButtonAriaLabel", "submitSearchButtonLabel", "isDisabled", "appendTo"]);
|
|
18442
18419
|
const [isSearchMenuOpen, setIsSearchMenuOpen] = React__namespace.useState(false);
|
|
18443
18420
|
const [searchValue, setSearchValue] = React__namespace.useState(value);
|
|
18444
18421
|
const searchInputRef = React__namespace.useRef(null);
|
|
@@ -18530,9 +18507,14 @@
|
|
|
18530
18507
|
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
18531
18508
|
if (!!onSearch || attributes.length > 0 || !!onToggleAdvancedSearch) {
|
|
18532
18509
|
if (attributes.length > 0) {
|
|
18533
|
-
|
|
18510
|
+
const AdvancedSearch = (React__namespace.createElement("span", null,
|
|
18511
|
+
React__namespace.createElement(AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen })));
|
|
18512
|
+
const AdvancedSearchWithPopper = (React__namespace.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
18513
|
+
React__namespace.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), popper: AdvancedSearch, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current })));
|
|
18514
|
+
const AdvancedSearchInline = (React__namespace.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
18534
18515
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
18535
|
-
|
|
18516
|
+
AdvancedSearch));
|
|
18517
|
+
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
18536
18518
|
}
|
|
18537
18519
|
return buildSearchTextInputGroupWithExtraButtons(Object.assign({}, searchInputProps));
|
|
18538
18520
|
}
|
|
@@ -18544,20 +18526,20 @@
|
|
|
18544
18526
|
|
|
18545
18527
|
const Sidebar = (_a) => {
|
|
18546
18528
|
var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground"]);
|
|
18547
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18548
|
-
React__namespace.createElement("div", { className: styles$
|
|
18529
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$D.sidebar, hasGutter && styles$D.modifiers.gutter, hasNoBackground && styles$D.modifiers.noBackground, isPanelRight && styles$D.modifiers.panelRight, styles$D.modifiers[orientation], className) }, props),
|
|
18530
|
+
React__namespace.createElement("div", { className: styles$D.sidebarMain }, children)));
|
|
18549
18531
|
};
|
|
18550
18532
|
Sidebar.displayName = 'Sidebar';
|
|
18551
18533
|
|
|
18552
18534
|
const SidebarContent = (_a) => {
|
|
18553
18535
|
var { className, children, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "hasNoBackground"]);
|
|
18554
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18536
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$D.sidebarContent, hasNoBackground && styles$D.modifiers.noBackground, className) }, props), children));
|
|
18555
18537
|
};
|
|
18556
18538
|
SidebarContent.displayName = 'SidebarContent';
|
|
18557
18539
|
|
|
18558
18540
|
const SidebarPanel = (_a) => {
|
|
18559
18541
|
var { className, children, variant = 'default', hasNoBackground, width } = _a, props = __rest$1(_a, ["className", "children", "variant", "hasNoBackground", "width"]);
|
|
18560
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18542
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$D.sidebarPanel, variant !== 'default' && styles$D.modifiers[variant], hasNoBackground && styles$D.modifiers.noBackground, formatBreakpointMods(width, styles$D), className) }, props), children));
|
|
18561
18543
|
};
|
|
18562
18544
|
SidebarPanel.displayName = 'SidebarPanel';
|
|
18563
18545
|
|
|
@@ -21592,7 +21574,7 @@
|
|
|
21592
21574
|
const Bullseye = (_a) => {
|
|
21593
21575
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
21594
21576
|
const Component = component;
|
|
21595
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
21577
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1g.bullseye, className) }, props), children));
|
|
21596
21578
|
};
|
|
21597
21579
|
Bullseye.displayName = 'Bullseye';
|
|
21598
21580
|
|
|
@@ -22725,10 +22707,6 @@
|
|
|
22725
22707
|
__proto__: null
|
|
22726
22708
|
});
|
|
22727
22709
|
|
|
22728
|
-
var searchInput = /*#__PURE__*/Object.freeze({
|
|
22729
|
-
__proto__: null
|
|
22730
|
-
});
|
|
22731
|
-
|
|
22732
22710
|
var panel = /*#__PURE__*/Object.freeze({
|
|
22733
22711
|
__proto__: null
|
|
22734
22712
|
});
|