@patternfly/react-core 4.224.8 → 4.224.11
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/ContextSelector/ContextSelector.d.ts +2 -0
- package/dist/esm/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelector.js +8 -11
- package/dist/esm/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelectorMenuList.d.ts.map +1 -1
- package/dist/esm/components/ContextSelector/ContextSelectorMenuList.js +2 -1
- package/dist/esm/components/ContextSelector/ContextSelectorMenuList.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelector.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelector.js +6 -6
- package/dist/esm/components/DualListSelector/DualListSelector.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorList.d.ts +1 -0
- package/dist/esm/components/DualListSelector/DualListSelectorList.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorList.js +7 -1
- package/dist/esm/components/DualListSelector/DualListSelectorList.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts +3 -2
- package/dist/esm/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorTree.js.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/ContextSelector/ContextSelector.d.ts +2 -0
- package/dist/js/components/ContextSelector/ContextSelector.d.ts.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelector.js +7 -10
- package/dist/js/components/ContextSelector/ContextSelector.js.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelectorMenuList.d.ts.map +1 -1
- package/dist/js/components/ContextSelector/ContextSelectorMenuList.js +2 -1
- package/dist/js/components/ContextSelector/ContextSelectorMenuList.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelector.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelector.js +5 -5
- package/dist/js/components/DualListSelector/DualListSelector.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.js +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorList.d.ts +1 -0
- package/dist/js/components/DualListSelector/DualListSelectorList.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorList.js +7 -1
- package/dist/js/components/DualListSelector/DualListSelectorList.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts +3 -2
- package/dist/js/components/DualListSelector/DualListSelectorTree.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorTree.js.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/styles/base-no-reset.css +10 -10
- package/dist/styles/base.css +10 -10
- package/dist/umd/react-core.css +797 -967
- package/dist/umd/react-core.js +709 -726
- package/dist/umd/react-core.min.css +39 -209
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +7 -7
- package/src/components/Accordion/examples/AccordionBordered.tsx +21 -21
- package/src/components/Accordion/examples/AccordionDefinitionList.tsx +21 -21
- 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/ActionList/examples/ActionListMultipleGroups.tsx +4 -4
- package/src/components/ActionList/examples/ActionListSingleGroup.tsx +4 -4
- package/src/components/ActionList/examples/ActionListWithCancelButton.tsx +5 -5
- package/src/components/ActionList/examples/ActionListWithIcons.tsx +2 -2
- package/src/components/Card/examples/CardSelectableA11yHighlight.tsx +4 -4
- package/src/components/CodeBlock/examples/CodeBlockBasic.tsx +1 -1
- package/src/components/CodeBlock/examples/CodeBlockExpandable.tsx +1 -1
- package/src/components/ContextSelector/ContextSelector.tsx +11 -10
- package/src/components/ContextSelector/ContextSelectorMenuList.tsx +2 -1
- package/src/components/ContextSelector/__tests__/ContextSelector.test.tsx +2 -2
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +11 -7
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +10 -0
- package/src/components/DataList/examples/DataListCompact.tsx +4 -4
- package/src/components/DataList/examples/DataListControllingText.tsx +3 -3
- package/src/components/DataList/examples/DataListDraggable.tsx +14 -7
- package/src/components/DataList/examples/DataListExpandable.tsx +3 -3
- package/src/components/DataList/examples/DataListSmGridBreakpoint.tsx +3 -3
- package/src/components/DualListSelector/DualListSelector.tsx +93 -89
- package/src/components/DualListSelector/DualListSelectorControlsWrapper.tsx +1 -1
- package/src/components/DualListSelector/DualListSelectorList.tsx +10 -4
- package/src/components/DualListSelector/DualListSelectorTree.tsx +3 -2
- package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +6 -20
- package/src/components/DualListSelector/examples/DualListSelector.md +3 -1
- package/src/components/DualListSelector/examples/DualListSelectorComposable.tsx +1 -1
- package/src/components/DualListSelector/examples/DualListSelectorComposableDragDrop.tsx +1 -1
- package/src/components/DualListSelector/examples/DualListSelectorComposableTree.tsx +1 -1
- package/src/components/DualListSelector/examples/{DualListSelectorTree.tsx → DualListSelectorTreeExample.tsx} +1 -1
- package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +1 -1
- package/src/components/FileUpload/examples/FileUploadSimpleText.tsx +1 -1
- package/src/components/FileUpload/examples/FileUploadTextWithEdits.tsx +1 -1
- package/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroupBasic.tsx +3 -3
- package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +1 -1
- package/src/components/InputGroup/examples/InputGroupWithPopover.tsx +12 -2
- package/src/components/InputGroup/examples/InputGroupWithSiblings.tsx +7 -2
- package/src/components/InputGroup/examples/InputGroupWithTextarea.tsx +1 -1
- package/src/components/LoginPage/examples/LoginPage.md +2 -325
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +144 -0
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +145 -0
- package/src/components/NotificationDrawer/examples/NotificationDrawer.md +69 -68
- 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
|
};
|
|
@@ -1441,11 +1441,11 @@
|
|
|
1441
1441
|
* </GenerateId>
|
|
1442
1442
|
* );
|
|
1443
1443
|
*/
|
|
1444
|
-
let currentId$
|
|
1444
|
+
let currentId$2 = 0;
|
|
1445
1445
|
class GenerateId extends React__namespace.Component {
|
|
1446
1446
|
constructor() {
|
|
1447
1447
|
super(...arguments);
|
|
1448
|
-
this.id = `${this.props.prefix}${currentId$
|
|
1448
|
+
this.id = `${this.props.prefix}${currentId$2++}`;
|
|
1449
1449
|
}
|
|
1450
1450
|
render() {
|
|
1451
1451
|
return this.props.children(this.id);
|
|
@@ -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
|
|
|
@@ -4363,7 +4363,7 @@
|
|
|
4363
4363
|
return '1em';
|
|
4364
4364
|
}
|
|
4365
4365
|
};
|
|
4366
|
-
let currentId$
|
|
4366
|
+
let currentId$1 = 0;
|
|
4367
4367
|
/**
|
|
4368
4368
|
* Factory to create Icon class components for consumers
|
|
4369
4369
|
*/
|
|
@@ -4372,7 +4372,7 @@
|
|
|
4372
4372
|
return _a = class SVGIcon extends React__namespace.Component {
|
|
4373
4373
|
constructor() {
|
|
4374
4374
|
super(...arguments);
|
|
4375
|
-
this.id = `icon-title-${currentId$
|
|
4375
|
+
this.id = `icon-title-${currentId$1++}`;
|
|
4376
4376
|
}
|
|
4377
4377
|
render() {
|
|
4378
4378
|
const _a = this.props, { size, color, title, noVerticalAlign } = _a, props = __rest(_a, ["size", "color", "title", "noVerticalAlign"]);
|
|
@@ -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
|
};
|
|
@@ -7480,7 +7480,7 @@
|
|
|
7480
7480
|
};
|
|
7481
7481
|
|
|
7482
7482
|
// seed for the aria-labelledby ID
|
|
7483
|
-
let currentId
|
|
7483
|
+
let currentId = 0;
|
|
7484
7484
|
class Select extends React__namespace.Component {
|
|
7485
7485
|
constructor() {
|
|
7486
7486
|
super(...arguments);
|
|
@@ -8106,7 +8106,7 @@
|
|
|
8106
8106
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
8107
8107
|
favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, shouldResetOnSelect, isFlipEnabled } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "typeAheadAriaDescribedby", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "shouldResetOnSelect", "isFlipEnabled"]);
|
|
8108
8108
|
const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
|
|
8109
|
-
const selectToggleId = toggleId || `pf-select-toggle-id-${currentId
|
|
8109
|
+
const selectToggleId = toggleId || `pf-select-toggle-id-${currentId++}`;
|
|
8110
8110
|
const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
|
|
8111
8111
|
// Find out if the selected option is a placeholder
|
|
8112
8112
|
const selectedOption = React__namespace.Children.toArray(children).find((option) => option.props.value === selections[0]);
|
|
@@ -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,13 +9637,14 @@
|
|
|
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() {
|
|
9644
9644
|
return React__namespace.Children.map(this.props.children, (child, index) => React__namespace.cloneElement(child, {
|
|
9645
9645
|
sendRef: this.sendRef,
|
|
9646
|
-
index
|
|
9646
|
+
index,
|
|
9647
|
+
role: 'menuitem'
|
|
9647
9648
|
}));
|
|
9648
9649
|
}
|
|
9649
9650
|
}
|
|
@@ -9659,9 +9660,6 @@
|
|
|
9659
9660
|
onSelect: (event, value) => undefined
|
|
9660
9661
|
});
|
|
9661
9662
|
|
|
9662
|
-
// seed for the aria-labelledby ID
|
|
9663
|
-
let currentId = 0;
|
|
9664
|
-
const newId = currentId++;
|
|
9665
9663
|
class ContextSelector extends React__namespace.Component {
|
|
9666
9664
|
constructor(props) {
|
|
9667
9665
|
super(props);
|
|
@@ -9677,21 +9675,21 @@
|
|
|
9677
9675
|
};
|
|
9678
9676
|
}
|
|
9679
9677
|
render() {
|
|
9680
|
-
const
|
|
9681
|
-
const
|
|
9682
|
-
const
|
|
9683
|
-
const
|
|
9684
|
-
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9685
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9678
|
+
const _a = this.props, { children, className, isOpen, isFullHeight, onToggle, onSelect, screenReaderLabel, toggleText, searchButtonAriaLabel, searchInputValue, onSearchInputChange, searchInputPlaceholder, onSearchButtonClick, menuAppendTo, ouiaId, ouiaSafe, isPlain, isText, footer, disableFocusTrap, isFlipEnabled, id } = _a, props = __rest$1(_a, ["children", "className", "isOpen", "isFullHeight", "onToggle", "onSelect", "screenReaderLabel", "toggleText", "searchButtonAriaLabel", "searchInputValue", "onSearchInputChange", "searchInputPlaceholder", "onSearchButtonClick", "menuAppendTo", "ouiaId", "ouiaSafe", "isPlain", "isText", "footer", "disableFocusTrap", "isFlipEnabled", "id"]);
|
|
9679
|
+
const uniqueId = id || getUniqueId();
|
|
9680
|
+
const toggleId = `pf-context-selector-toggle-id-${uniqueId}`;
|
|
9681
|
+
const screenReaderLabelId = `pf-context-selector-label-id-${uniqueId}`;
|
|
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) },
|
|
9686
9684
|
React__namespace.createElement(InputGroup, null,
|
|
9687
|
-
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-
|
|
9688
|
-
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel,
|
|
9685
|
+
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-label": searchButtonAriaLabel }),
|
|
9686
|
+
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, onClick: onSearchButtonClick },
|
|
9689
9687
|
React__namespace.createElement(SearchIcon$1, { "aria-hidden": "true" })))),
|
|
9690
9688
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
9691
9689
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
9692
9690
|
footer))));
|
|
9693
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9694
|
-
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),
|
|
9695
9693
|
screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
|
|
9696
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 }),
|
|
9697
9695
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
@@ -9742,7 +9740,7 @@
|
|
|
9742
9740
|
const Component = href ? 'a' : 'button';
|
|
9743
9741
|
const isDisabledLink = href && isDisabled;
|
|
9744
9742
|
return (React__namespace.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (React__namespace.createElement("li", { role: "none" },
|
|
9745
|
-
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 => {
|
|
9746
9744
|
if (!isDisabled) {
|
|
9747
9745
|
onClick(event);
|
|
9748
9746
|
onSelect(event, children);
|
|
@@ -9763,12 +9761,12 @@
|
|
|
9763
9761
|
|
|
9764
9762
|
const ContextSelectorFooter = (_a) => {
|
|
9765
9763
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9766
|
-
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));
|
|
9767
9765
|
};
|
|
9768
9766
|
ContextSelectorFooter.displayName = 'ContextSelectorFooter';
|
|
9769
9767
|
|
|
9770
9768
|
Promise.resolve().then(function () { return dataList; });
|
|
9771
|
-
var styles$
|
|
9769
|
+
var styles$N = {
|
|
9772
9770
|
"dataList": "pf-c-data-list",
|
|
9773
9771
|
"dataListAction": "pf-c-data-list__action",
|
|
9774
9772
|
"dataListCell": "pf-c-data-list__cell",
|
|
@@ -9905,7 +9903,7 @@
|
|
|
9905
9903
|
this.dragStart0 = (el) => {
|
|
9906
9904
|
const { onDragStart } = this.props;
|
|
9907
9905
|
const draggedItemId = el.id;
|
|
9908
|
-
el.classList.add(styles$
|
|
9906
|
+
el.classList.add(styles$N.modifiers.ghostRow);
|
|
9909
9907
|
el.setAttribute('aria-pressed', 'true');
|
|
9910
9908
|
this.setState({
|
|
9911
9909
|
draggedItemId,
|
|
@@ -9921,8 +9919,8 @@
|
|
|
9921
9919
|
this.onDragCancel = () => {
|
|
9922
9920
|
this.move(this.props.itemOrder);
|
|
9923
9921
|
Array.from(this.ref.current.children).forEach(el => {
|
|
9924
|
-
el.classList.remove(styles$
|
|
9925
|
-
el.classList.remove(styles$
|
|
9922
|
+
el.classList.remove(styles$N.modifiers.ghostRow);
|
|
9923
|
+
el.classList.remove(styles$N.modifiers.dragOver);
|
|
9926
9924
|
el.setAttribute('aria-pressed', 'false');
|
|
9927
9925
|
});
|
|
9928
9926
|
this.setState({
|
|
@@ -9944,8 +9942,8 @@
|
|
|
9944
9942
|
}
|
|
9945
9943
|
};
|
|
9946
9944
|
this.dragEnd0 = (el) => {
|
|
9947
|
-
el.classList.remove(styles$
|
|
9948
|
-
el.classList.remove(styles$
|
|
9945
|
+
el.classList.remove(styles$N.modifiers.ghostRow);
|
|
9946
|
+
el.classList.remove(styles$N.modifiers.dragOver);
|
|
9949
9947
|
el.setAttribute('aria-pressed', 'false');
|
|
9950
9948
|
this.setState({
|
|
9951
9949
|
draggedItemId: null,
|
|
@@ -10024,14 +10022,14 @@
|
|
|
10024
10022
|
const nextSelection = dragItem.previousSibling;
|
|
10025
10023
|
if (nextSelection) {
|
|
10026
10024
|
this.dragOver0(nextSelection.id);
|
|
10027
|
-
dragItem.querySelector(`.${styles$
|
|
10025
|
+
dragItem.querySelector(`.${styles$N.dataListItemDraggableButton}`).focus();
|
|
10028
10026
|
}
|
|
10029
10027
|
}
|
|
10030
10028
|
else if (evt.key === 'ArrowDown') {
|
|
10031
10029
|
const nextSelection = dragItem.nextSibling;
|
|
10032
10030
|
if (nextSelection) {
|
|
10033
10031
|
this.dragOver0(nextSelection.id);
|
|
10034
|
-
dragItem.querySelector(`.${styles$
|
|
10032
|
+
dragItem.querySelector(`.${styles$N.dataListItemDraggableButton}`).focus();
|
|
10035
10033
|
}
|
|
10036
10034
|
}
|
|
10037
10035
|
}
|
|
@@ -10082,7 +10080,7 @@
|
|
|
10082
10080
|
drop: this.drop,
|
|
10083
10081
|
dragKeyHandler: this.handleDragButtonKeys
|
|
10084
10082
|
} },
|
|
10085
|
-
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)));
|
|
10086
10084
|
}
|
|
10087
10085
|
}
|
|
10088
10086
|
DataList.displayName = 'DataList';
|
|
@@ -10101,13 +10099,13 @@
|
|
|
10101
10099
|
id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isPlainButtonAction } = _a,
|
|
10102
10100
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
10103
10101
|
props = __rest$1(_a, ["children", "className", "visibility", "id", 'aria-label', 'aria-labelledby', "isPlainButtonAction"]);
|
|
10104
|
-
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));
|
|
10105
10103
|
};
|
|
10106
10104
|
DataListAction.displayName = 'DataListAction';
|
|
10107
10105
|
|
|
10108
10106
|
const DataListCell = (_a) => {
|
|
10109
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"]);
|
|
10110
|
-
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));
|
|
10111
10109
|
};
|
|
10112
10110
|
DataListCell.displayName = 'DataListCell';
|
|
10113
10111
|
|
|
@@ -10115,17 +10113,17 @@
|
|
|
10115
10113
|
var { className = '',
|
|
10116
10114
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10117
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"]);
|
|
10118
|
-
const check = (React__namespace.createElement("div", { className: css(styles$
|
|
10116
|
+
const check = (React__namespace.createElement("div", { className: css(styles$N.dataListCheck) },
|
|
10119
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 })))));
|
|
10120
10118
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10121
|
-
!otherControls && React__namespace.createElement("div", { className: css(styles$
|
|
10119
|
+
!otherControls && React__namespace.createElement("div", { className: css(styles$N.dataListItemControl, className) }, check),
|
|
10122
10120
|
otherControls && check));
|
|
10123
10121
|
};
|
|
10124
10122
|
DataListCheck.displayName = 'DataListCheck';
|
|
10125
10123
|
|
|
10126
10124
|
const DataListControl = (_a) => {
|
|
10127
10125
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10128
|
-
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));
|
|
10129
10127
|
};
|
|
10130
10128
|
DataListControl.displayName = 'DataListControl';
|
|
10131
10129
|
|
|
@@ -10144,8 +10142,8 @@
|
|
|
10144
10142
|
|
|
10145
10143
|
const DataListDragButton = (_a) => {
|
|
10146
10144
|
var { className = '', isDisabled = false } = _a, props = __rest$1(_a, ["className", "isDisabled"]);
|
|
10147
|
-
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
10148
|
-
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) },
|
|
10149
10147
|
React__namespace.createElement(GripVerticalIcon$1, null))))));
|
|
10150
10148
|
};
|
|
10151
10149
|
DataListDragButton.displayName = 'DataListDragButton';
|
|
@@ -10175,8 +10173,8 @@
|
|
|
10175
10173
|
let target = event.target;
|
|
10176
10174
|
while (event.currentTarget !== target) {
|
|
10177
10175
|
if (('onclick' in target && target.onclick) ||
|
|
10178
|
-
target.parentNode.classList.contains(styles$
|
|
10179
|
-
target.parentNode.classList.contains(styles$
|
|
10176
|
+
target.parentNode.classList.contains(styles$N.dataListItemAction) ||
|
|
10177
|
+
target.parentNode.classList.contains(styles$N.dataListItemControl)) {
|
|
10180
10178
|
// check other event handlers are not present.
|
|
10181
10179
|
return;
|
|
10182
10180
|
}
|
|
@@ -10206,7 +10204,7 @@
|
|
|
10206
10204
|
? { 'aria-label': selectableInputAriaLabel }
|
|
10207
10205
|
: { 'aria-labelledby': ariaLabelledBy };
|
|
10208
10206
|
const selectableInputType = (selectableRow === null || selectableRow === void 0 ? void 0 : selectableRow.type) === 'multiple' ? 'checkbox' : 'radio';
|
|
10209
|
-
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),
|
|
10210
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))),
|
|
10211
10209
|
React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10212
10210
|
React__namespace.cloneElement(child, {
|
|
@@ -10228,13 +10226,13 @@
|
|
|
10228
10226
|
var { className = '', dataListCells,
|
|
10229
10227
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10230
10228
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "dataListCells", "rowid"]);
|
|
10231
|
-
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));
|
|
10232
10230
|
};
|
|
10233
10231
|
DataListItemCells.displayName = 'DataListItemCells';
|
|
10234
10232
|
|
|
10235
10233
|
const DataListItemRow = (_a) => {
|
|
10236
10234
|
var { children, className = '', rowid = '', wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "rowid", "wrapModifier"]);
|
|
10237
|
-
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) &&
|
|
10238
10236
|
React__namespace.cloneElement(child, {
|
|
10239
10237
|
rowid
|
|
10240
10238
|
}))));
|
|
@@ -10243,10 +10241,10 @@
|
|
|
10243
10241
|
|
|
10244
10242
|
const DataListToggle = (_a) => {
|
|
10245
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"]);
|
|
10246
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10247
|
-
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) },
|
|
10248
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 },
|
|
10249
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10247
|
+
React__namespace.createElement("div", { className: css(styles$N.dataListToggleIcon) },
|
|
10250
10248
|
React__namespace.createElement(AngleRightIcon$1, null))))));
|
|
10251
10249
|
};
|
|
10252
10250
|
DataListToggle.displayName = 'DataListToggle';
|
|
@@ -10255,8 +10253,8 @@
|
|
|
10255
10253
|
var { className = '', children = null, id = '', isHidden = false, 'aria-label': ariaLabel, hasNoPadding = false,
|
|
10256
10254
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10257
10255
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", 'aria-label', "hasNoPadding", "rowid"]);
|
|
10258
|
-
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$
|
|
10259
|
-
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)));
|
|
10260
10258
|
};
|
|
10261
10259
|
DataListContent.displayName = 'DataListContent';
|
|
10262
10260
|
|
|
@@ -10273,7 +10271,7 @@
|
|
|
10273
10271
|
}
|
|
10274
10272
|
onMouseEnterProp(event);
|
|
10275
10273
|
};
|
|
10276
|
-
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));
|
|
10277
10275
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, { content: tooltip, isVisible: true }, text)) : (text);
|
|
10278
10276
|
};
|
|
10279
10277
|
DataListText.displayName = 'DataListText';
|
|
@@ -10416,7 +10414,7 @@
|
|
|
10416
10414
|
DatePicker.displayName = 'DatePicker';
|
|
10417
10415
|
|
|
10418
10416
|
Promise.resolve().then(function () { return descriptionList; });
|
|
10419
|
-
var styles$
|
|
10417
|
+
var styles$M = {
|
|
10420
10418
|
"card": "pf-c-card",
|
|
10421
10419
|
"descriptionList": "pf-c-description-list",
|
|
10422
10420
|
"descriptionListDescription": "pf-c-description-list__description",
|
|
@@ -10479,45 +10477,45 @@
|
|
|
10479
10477
|
if (isHorizontal && horizontalTermWidthModifier) {
|
|
10480
10478
|
style = Object.assign(Object.assign({}, style), setBreakpointModifiers('--pf-c-description-list--m-horizontal__term--width', horizontalTermWidthModifier));
|
|
10481
10479
|
}
|
|
10482
|
-
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));
|
|
10483
10481
|
};
|
|
10484
10482
|
DescriptionList.displayName = 'DescriptionList';
|
|
10485
10483
|
|
|
10486
10484
|
const DescriptionListDescription = (_a) => {
|
|
10487
10485
|
var { children = null, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10488
|
-
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),
|
|
10489
10487
|
React__namespace.createElement("div", { className: 'pf-c-description-list__text' }, children)));
|
|
10490
10488
|
};
|
|
10491
10489
|
DescriptionListDescription.displayName = 'DescriptionListDescription';
|
|
10492
10490
|
|
|
10493
10491
|
const DescriptionListGroup = (_a) => {
|
|
10494
10492
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10495
|
-
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));
|
|
10496
10494
|
};
|
|
10497
10495
|
DescriptionListGroup.displayName = 'DescriptionListGroup';
|
|
10498
10496
|
|
|
10499
10497
|
const DescriptionListTerm = (_a) => {
|
|
10500
10498
|
var { children, className, icon } = _a, props = __rest$1(_a, ["children", "className", "icon"]);
|
|
10501
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10502
|
-
icon ? React__namespace.createElement("span", { className: css(styles$
|
|
10503
|
-
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)));
|
|
10504
10502
|
};
|
|
10505
10503
|
DescriptionListTerm.displayName = 'DescriptionListTerm';
|
|
10506
10504
|
|
|
10507
10505
|
const DescriptionListTermHelpText = (_a) => {
|
|
10508
10506
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10509
|
-
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));
|
|
10510
10508
|
};
|
|
10511
10509
|
DescriptionListTermHelpText.displayName = 'DescriptionListTermHelpText';
|
|
10512
10510
|
|
|
10513
10511
|
const DescriptionListTermHelpTextButton = (_a) => {
|
|
10514
10512
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10515
|
-
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));
|
|
10516
10514
|
};
|
|
10517
10515
|
DescriptionListTermHelpTextButton.displayName = 'DescriptionListTermHelpTextButton';
|
|
10518
10516
|
|
|
10519
10517
|
Promise.resolve().then(function () { return drawer; });
|
|
10520
|
-
var styles$
|
|
10518
|
+
var styles$L = {
|
|
10521
10519
|
"drawer": "pf-c-drawer",
|
|
10522
10520
|
"drawerActions": "pf-c-drawer__actions",
|
|
10523
10521
|
"drawerBody": "pf-c-drawer__body",
|
|
@@ -10598,7 +10596,7 @@
|
|
|
10598
10596
|
const drawerRef = React__namespace.useRef();
|
|
10599
10597
|
const drawerContentRef = React__namespace.useRef();
|
|
10600
10598
|
return (React__namespace.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
10601
|
-
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)));
|
|
10602
10600
|
};
|
|
10603
10601
|
Drawer.displayName = 'Drawer';
|
|
10604
10602
|
|
|
@@ -10606,7 +10604,7 @@
|
|
|
10606
10604
|
var {
|
|
10607
10605
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10608
10606
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10609
|
-
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));
|
|
10610
10608
|
};
|
|
10611
10609
|
DrawerActions.displayName = 'DrawerActions';
|
|
10612
10610
|
|
|
@@ -10614,7 +10612,7 @@
|
|
|
10614
10612
|
var {
|
|
10615
10613
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10616
10614
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
10617
|
-
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),
|
|
10618
10616
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
10619
10617
|
React__namespace.createElement(TimesIcon$1, null))));
|
|
10620
10618
|
};
|
|
@@ -10624,7 +10622,7 @@
|
|
|
10624
10622
|
var {
|
|
10625
10623
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10626
10624
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10627
|
-
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));
|
|
10628
10626
|
};
|
|
10629
10627
|
DrawerMain.displayName = 'DrawerMain';
|
|
10630
10628
|
|
|
@@ -10634,7 +10632,7 @@
|
|
|
10634
10632
|
className = '', children, panelContent, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
10635
10633
|
const { drawerContentRef } = React__namespace.useContext(DrawerContext);
|
|
10636
10634
|
return (React__namespace.createElement(DrawerMain, null,
|
|
10637
|
-
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),
|
|
10638
10636
|
panelContent));
|
|
10639
10637
|
};
|
|
10640
10638
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -10643,7 +10641,7 @@
|
|
|
10643
10641
|
var {
|
|
10644
10642
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10645
10643
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
10646
|
-
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));
|
|
10647
10645
|
};
|
|
10648
10646
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
10649
10647
|
|
|
@@ -10651,7 +10649,7 @@
|
|
|
10651
10649
|
var {
|
|
10652
10650
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10653
10651
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10654
|
-
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));
|
|
10655
10653
|
};
|
|
10656
10654
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
10657
10655
|
|
|
@@ -10660,7 +10658,7 @@
|
|
|
10660
10658
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10661
10659
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10662
10660
|
return (React__namespace.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
10663
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10661
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$L.drawerHead, className) }, props), children)));
|
|
10664
10662
|
};
|
|
10665
10663
|
DrawerHead.displayName = 'DrawerHead';
|
|
10666
10664
|
|
|
@@ -10728,7 +10726,7 @@
|
|
|
10728
10726
|
e.preventDefault();
|
|
10729
10727
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
10730
10728
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
10731
|
-
drawerRef.current.classList.add(css(styles$
|
|
10729
|
+
drawerRef.current.classList.add(css(styles$L.modifiers.resizing));
|
|
10732
10730
|
isResizing = true;
|
|
10733
10731
|
setInitialVals = true;
|
|
10734
10732
|
};
|
|
@@ -10776,7 +10774,7 @@
|
|
|
10776
10774
|
if (!isResizing) {
|
|
10777
10775
|
return;
|
|
10778
10776
|
}
|
|
10779
|
-
drawerRef.current.classList.remove(css(styles$
|
|
10777
|
+
drawerRef.current.classList.remove(css(styles$L.modifiers.resizing));
|
|
10780
10778
|
isResizing = false;
|
|
10781
10779
|
onResize && onResize(currWidth, id);
|
|
10782
10780
|
setInitialVals = true;
|
|
@@ -10847,7 +10845,7 @@
|
|
|
10847
10845
|
if (maxSize) {
|
|
10848
10846
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
10849
10847
|
}
|
|
10850
|
-
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 => {
|
|
10851
10849
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
10852
10850
|
onExpand();
|
|
10853
10851
|
}
|
|
@@ -10856,9 +10854,9 @@
|
|
|
10856
10854
|
style: boundaryCssVars
|
|
10857
10855
|
}), props), isExpandedInternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10858
10856
|
isResizable && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10859
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10860
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10861
|
-
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))),
|
|
10862
10860
|
!isResizable && children))))));
|
|
10863
10861
|
};
|
|
10864
10862
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -10867,12 +10865,12 @@
|
|
|
10867
10865
|
var {
|
|
10868
10866
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10869
10867
|
className = '', children, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "colorVariant"]);
|
|
10870
|
-
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));
|
|
10871
10869
|
};
|
|
10872
10870
|
DrawerSection.displayName = 'DrawerSection';
|
|
10873
10871
|
|
|
10874
10872
|
Promise.resolve().then(function () { return dualListSelector; });
|
|
10875
|
-
var styles$
|
|
10873
|
+
var styles$K = {
|
|
10876
10874
|
"badge": "pf-c-badge",
|
|
10877
10875
|
"button": "pf-c-button",
|
|
10878
10876
|
"dualListSelector": "pf-c-dual-list-selector",
|
|
@@ -11019,16 +11017,16 @@
|
|
|
11019
11017
|
React__namespace.useEffect(() => {
|
|
11020
11018
|
setIsExpanded(defaultExpanded);
|
|
11021
11019
|
}, [defaultExpanded]);
|
|
11022
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11023
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11024
|
-
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
|
|
11025
11023
|
? undefined
|
|
11026
11024
|
: evt => {
|
|
11027
11025
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11028
11026
|
setFocusedOption(id);
|
|
11029
11027
|
} },
|
|
11030
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11031
|
-
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 => {
|
|
11032
11030
|
if (children) {
|
|
11033
11031
|
setIsExpanded(!isExpanded);
|
|
11034
11032
|
}
|
|
@@ -11039,9 +11037,9 @@
|
|
|
11039
11037
|
e.preventDefault();
|
|
11040
11038
|
}
|
|
11041
11039
|
}, tabIndex: -1 },
|
|
11042
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11040
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemToggleIcon) },
|
|
11043
11041
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })))),
|
|
11044
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11042
|
+
React__namespace.createElement("span", { className: css(styles$K.dualListSelectorItemCheck) },
|
|
11045
11043
|
React__namespace.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
|
|
11046
11044
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11047
11045
|
setFocusedOption(id);
|
|
@@ -11052,8 +11050,8 @@
|
|
|
11052
11050
|
e.preventDefault();
|
|
11053
11051
|
}
|
|
11054
11052
|
}, ref: elem => elem && (elem.indeterminate = isChecked === null), checked: isChecked || false, tabIndex: -1 }, checkProps))),
|
|
11055
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11056
|
-
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) },
|
|
11057
11055
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps), flattenTree(children.props.data).length)))))),
|
|
11058
11056
|
isExpanded && children));
|
|
11059
11057
|
};
|
|
@@ -11082,7 +11080,7 @@
|
|
|
11082
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 && {
|
|
11083
11081
|
children: (React__namespace.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
|
|
11084
11082
|
})))));
|
|
11085
|
-
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));
|
|
11086
11084
|
};
|
|
11087
11085
|
DualListSelectorTree.displayName = 'DualListSelectorTree';
|
|
11088
11086
|
|
|
@@ -11092,7 +11090,7 @@
|
|
|
11092
11090
|
draggableButtonAriaLabel = 'Reorder option' } = _a, props = __rest$1(_a, ["onOptionSelect", "orderIndex", "children", "className", "id", "isSelected", "innerRef", "isDraggable", "isDisabled", "draggableButtonAriaLabel"]);
|
|
11093
11091
|
const ref = innerRef || React__namespace.useRef(null);
|
|
11094
11092
|
const { setFocusedOption } = React__namespace.useContext(DualListSelectorListContext);
|
|
11095
|
-
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
|
|
11096
11094
|
? undefined
|
|
11097
11095
|
: (e) => {
|
|
11098
11096
|
setFocusedOption(id);
|
|
@@ -11103,13 +11101,13 @@
|
|
|
11103
11101
|
e.preventDefault();
|
|
11104
11102
|
}
|
|
11105
11103
|
}, "aria-selected": isSelected, id: id, ref: ref, role: "option", tabIndex: -1 }, props),
|
|
11106
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11107
|
-
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) },
|
|
11108
11106
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, component: "span" },
|
|
11109
11107
|
React__namespace.createElement(GripVerticalIcon$1, { style: { verticalAlign: '-0.3em' } })))),
|
|
11110
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11111
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11112
|
-
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))))));
|
|
11113
11111
|
};
|
|
11114
11112
|
DualListSelectorListItemBase.displayName = 'DualListSelectorListItemBase';
|
|
11115
11113
|
const DualListSelectorListItem = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorListItemBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -11123,7 +11121,13 @@
|
|
|
11123
11121
|
setFocusedOption(id);
|
|
11124
11122
|
onOptionSelect(e, index, id);
|
|
11125
11123
|
};
|
|
11126
|
-
|
|
11124
|
+
const hasOptions = () => options.length !== 0 || (children !== undefined && children.length !== 0);
|
|
11125
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$K.dualListSelectorList) }, (hasOptions() && {
|
|
11126
|
+
role: isTree ? 'tree' : 'listbox',
|
|
11127
|
+
'aria-multiselectable': true,
|
|
11128
|
+
'aria-labelledby': ariaLabelledBy,
|
|
11129
|
+
'aria-activedescendant': focusedOption
|
|
11130
|
+
}), { "aria-disabled": isDisabled ? 'true' : undefined }, props), options.length === 0
|
|
11127
11131
|
? children
|
|
11128
11132
|
: options.map((option, index) => {
|
|
11129
11133
|
if (displayOption(option)) {
|
|
@@ -11168,7 +11172,7 @@
|
|
|
11168
11172
|
window.removeEventListener('keydown', handleKeys);
|
|
11169
11173
|
};
|
|
11170
11174
|
}, [menuRef.current]);
|
|
11171
|
-
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),
|
|
11172
11176
|
React__namespace.createElement(DualListSelectorListContext.Provider, { value: {
|
|
11173
11177
|
setFocusedOption,
|
|
11174
11178
|
isTree,
|
|
@@ -11239,15 +11243,15 @@
|
|
|
11239
11243
|
.includes(input.toLowerCase());
|
|
11240
11244
|
}
|
|
11241
11245
|
};
|
|
11242
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11243
|
-
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) },
|
|
11244
11248
|
React__namespace.createElement("div", { className: "pf-c-dual-list-selector__title" },
|
|
11245
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11246
|
-
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$
|
|
11247
|
-
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$
|
|
11248
|
-
actions && React__namespace.createElement("div", { className: css(styles$
|
|
11249
|
-
status && (React__namespace.createElement("div", { className: css(styles$
|
|
11250
|
-
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))),
|
|
11251
11255
|
React__namespace.createElement(DualListSelectorPaneContext.Provider, { value: { isChosen } },
|
|
11252
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)),
|
|
11253
11257
|
isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, id: `${id}-list` }, options.length > 0 ? (React__namespace.createElement(DualListSelectorList, null,
|
|
@@ -11281,10 +11285,10 @@
|
|
|
11281
11285
|
window.removeEventListener('keydown', handleKeys);
|
|
11282
11286
|
};
|
|
11283
11287
|
}, [wrapperRef.current]);
|
|
11284
|
-
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));
|
|
11285
11289
|
};
|
|
11286
11290
|
DualListSelectorControlsWrapperBase.displayName = 'DualListSelectorControlsWrapperBase';
|
|
11287
|
-
const DualListSelectorControlsWrapper = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref }, props))));
|
|
11291
|
+
const DualListSelectorControlsWrapper = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref, role: "group" }, props))));
|
|
11288
11292
|
DualListSelectorControlsWrapper.displayName = 'DualListSelectorControlsWrapper';
|
|
11289
11293
|
|
|
11290
11294
|
const DualListSelectorControlBase = (_a) => {
|
|
@@ -11694,8 +11698,8 @@
|
|
|
11694
11698
|
? chosenOptions.map(item => this.mapChecked(item, true))
|
|
11695
11699
|
: chosenOptions);
|
|
11696
11700
|
return (React__namespace.createElement(DualListSelectorContext.Provider, { value: { isTree } },
|
|
11697
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11698
|
-
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}-available-pane`, isDisabled: isDisabled }),
|
|
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
|
+
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 }),
|
|
11699
11703
|
React__namespace.createElement(DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
|
|
11700
11704
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
|
|
11701
11705
|
isDisabled, onClick: isTree ? this.addTreeSelected : this.addSelected, ref: this.addSelectedButtonRef, "aria-label": addSelectedAriaLabel, tooltipContent: addSelectedTooltip, tooltipProps: addSelectedTooltipProps },
|
|
@@ -11704,9 +11708,10 @@
|
|
|
11704
11708
|
React__namespace.createElement(AngleDoubleRightIcon$1, null)),
|
|
11705
11709
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: chosenOptions.length === 0 || isDisabled, onClick: isTree ? this.removeAllTreeVisible : this.removeAllVisible, "aria-label": removeAllAriaLabel, ref: this.removeAllButtonRef, tooltipContent: removeAllTooltip, tooltipProps: removeAllTooltipProps },
|
|
11706
11710
|
React__namespace.createElement(AngleDoubleLeftIcon$1, null)),
|
|
11707
|
-
React__namespace.createElement(DualListSelectorControl, { onClick: isTree ? this.removeTreeSelected : this.removeSelected, isDisabled: (isTree ? chosenTreeOptionsChecked.length === 0 : chosenOptionsSelected.length === 0) ||
|
|
11711
|
+
React__namespace.createElement(DualListSelectorControl, { onClick: isTree ? this.removeTreeSelected : this.removeSelected, isDisabled: (isTree ? chosenTreeOptionsChecked.length === 0 : chosenOptionsSelected.length === 0) ||
|
|
11712
|
+
isDisabled, ref: this.removeSelectedButtonRef, "aria-label": removeSelectedAriaLabel, tooltipContent: removeSelectedTooltip, tooltipProps: removeSelectedTooltipProps },
|
|
11708
11713
|
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
11709
|
-
React__namespace.createElement(DualListSelectorPane, { isChosen: true, isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: chosenOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onChosenOptionsSearchInputChanged, title: chosenOptionsTitle, status: chosenOptionsStatusToDisplay, options: chosen, selectedOptions: isTree ? chosenTreeOptionsChecked : chosenOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, true), actions: chosenOptionsActions, id: `${id}-chosen-pane`, isDisabled: isDisabled }))) : (children))));
|
|
11714
|
+
React__namespace.createElement(DualListSelectorPane, { isChosen: true, isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: chosenOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onChosenOptionsSearchInputChanged, title: chosenOptionsTitle, status: chosenOptionsStatusToDisplay, options: chosen, selectedOptions: isTree ? chosenTreeOptionsChecked : chosenOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, true), actions: chosenOptionsActions, id: `${id || randomId}-chosen-pane`, isDisabled: isDisabled }))) : (children))))));
|
|
11710
11715
|
}
|
|
11711
11716
|
}
|
|
11712
11717
|
DualListSelector.displayName = 'DualListSelector';
|
|
@@ -11718,7 +11723,6 @@
|
|
|
11718
11723
|
chosenOptions: [],
|
|
11719
11724
|
chosenOptionsTitle: 'Chosen options',
|
|
11720
11725
|
chosenOptionsSearchAriaLabel: 'Chosen search input',
|
|
11721
|
-
id: getUniqueId('dual-list-selector'),
|
|
11722
11726
|
controlsAriaLabel: 'Selector controls',
|
|
11723
11727
|
addAllAriaLabel: 'Add all',
|
|
11724
11728
|
addSelectedAriaLabel: 'Add selected',
|
|
@@ -11729,7 +11733,7 @@
|
|
|
11729
11733
|
};
|
|
11730
11734
|
|
|
11731
11735
|
Promise.resolve().then(function () { return emptyState; });
|
|
11732
|
-
var styles$
|
|
11736
|
+
var styles$J = {
|
|
11733
11737
|
"button": "pf-c-button",
|
|
11734
11738
|
"emptyState": "pf-c-empty-state",
|
|
11735
11739
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -11759,20 +11763,20 @@
|
|
|
11759
11763
|
})(exports.EmptyStateVariant || (exports.EmptyStateVariant = {}));
|
|
11760
11764
|
const EmptyState = (_a) => {
|
|
11761
11765
|
var { children, className = '', variant = exports.EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
11762
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11763
|
-
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)));
|
|
11764
11768
|
};
|
|
11765
11769
|
EmptyState.displayName = 'EmptyState';
|
|
11766
11770
|
|
|
11767
11771
|
const EmptyStateBody = (_a) => {
|
|
11768
11772
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11769
|
-
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));
|
|
11770
11774
|
};
|
|
11771
11775
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
11772
11776
|
|
|
11773
11777
|
const EmptyStateIcon = (_a) => {
|
|
11774
11778
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest$1(_a, ["className", "icon", "component", "variant"]);
|
|
11775
|
-
const classNames = css(styles$
|
|
11779
|
+
const classNames = css(styles$J.emptyStateIcon, className);
|
|
11776
11780
|
return variant === 'icon' ? (React__namespace.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React__namespace.createElement("div", { className: classNames },
|
|
11777
11781
|
React__namespace.createElement(AnyComponent, null)));
|
|
11778
11782
|
};
|
|
@@ -11780,18 +11784,18 @@
|
|
|
11780
11784
|
|
|
11781
11785
|
const EmptyStateSecondaryActions = (_a) => {
|
|
11782
11786
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11783
|
-
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));
|
|
11784
11788
|
};
|
|
11785
11789
|
EmptyStateSecondaryActions.displayName = 'EmptyStateSecondaryActions';
|
|
11786
11790
|
|
|
11787
11791
|
const EmptyStatePrimary = (_a) => {
|
|
11788
11792
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11789
|
-
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));
|
|
11790
11794
|
};
|
|
11791
11795
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
11792
11796
|
|
|
11793
11797
|
Promise.resolve().then(function () { return expandableSection; });
|
|
11794
|
-
var styles$
|
|
11798
|
+
var styles$I = {
|
|
11795
11799
|
"expandableSection": "pf-c-expandable-section",
|
|
11796
11800
|
"expandableSectionContent": "pf-c-expandable-section__content",
|
|
11797
11801
|
"expandableSectionToggle": "pf-c-expandable-section__toggle",
|
|
@@ -11839,12 +11843,12 @@
|
|
|
11839
11843
|
};
|
|
11840
11844
|
}
|
|
11841
11845
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
11842
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
11843
|
-
!isDetached && (React__namespace.createElement("button", { className: css(styles$
|
|
11844
|
-
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) },
|
|
11845
11849
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })),
|
|
11846
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11847
|
-
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)));
|
|
11848
11852
|
}
|
|
11849
11853
|
}
|
|
11850
11854
|
ExpandableSection.displayName = 'ExpandableSection';
|
|
@@ -11865,16 +11869,16 @@
|
|
|
11865
11869
|
|
|
11866
11870
|
const ExpandableSectionToggle = (_a) => {
|
|
11867
11871
|
var { children, className = '', isExpanded = false, onToggle, contentId, direction = 'down' } = _a, props = __rest$1(_a, ["children", "className", "isExpanded", "onToggle", "contentId", "direction"]);
|
|
11868
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
11869
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
11870
|
-
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) },
|
|
11871
11875
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true })),
|
|
11872
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11876
|
+
React__namespace.createElement("span", { className: css(styles$I.expandableSectionToggleText) }, children))));
|
|
11873
11877
|
};
|
|
11874
11878
|
ExpandableSectionToggle.displayName = 'ExpandableSectionToggle';
|
|
11875
11879
|
|
|
11876
11880
|
Promise.resolve().then(function () { return fileUpload; });
|
|
11877
|
-
var styles$
|
|
11881
|
+
var styles$H = {
|
|
11878
11882
|
"button": "pf-c-button",
|
|
11879
11883
|
"fileUpload": "pf-c-file-upload",
|
|
11880
11884
|
"fileUploadFileDetails": "pf-c-file-upload__file-details",
|
|
@@ -11923,16 +11927,16 @@
|
|
|
11923
11927
|
onChange(newValue, filename, event);
|
|
11924
11928
|
onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);
|
|
11925
11929
|
};
|
|
11926
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11927
|
-
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 },
|
|
11928
11932
|
React__namespace.createElement(InputGroup, null,
|
|
11929
11933
|
React__namespace.createElement(TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
|
|
11930
11934
|
: true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, "aria-label": filenameAriaLabel, placeholder: filenamePlaceholder, "aria-describedby": `${id}-browse-button`, value: filename }),
|
|
11931
11935
|
React__namespace.createElement(Button, { id: `${id}-browse-button`, variant: exports.ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),
|
|
11932
11936
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),
|
|
11933
|
-
React__namespace.createElement("div", { className: styles$
|
|
11937
|
+
React__namespace.createElement("div", { className: styles$H.fileUploadFileDetails },
|
|
11934
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 })),
|
|
11935
|
-
isLoading && (React__namespace.createElement("div", { className: styles$
|
|
11939
|
+
isLoading && (React__namespace.createElement("div", { className: styles$H.fileUploadFileDetailsSpinner },
|
|
11936
11940
|
React__namespace.createElement(Spinner, { size: exports.spinnerSize.lg, "aria-valuetext": spinnerAriaValueText })))),
|
|
11937
11941
|
children));
|
|
11938
11942
|
};
|
|
@@ -14021,10 +14025,10 @@
|
|
|
14021
14025
|
|
|
14022
14026
|
const ActionGroup = (_a) => {
|
|
14023
14027
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14024
|
-
const customClassName = css(styles$
|
|
14025
|
-
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);
|
|
14026
14030
|
return (React__namespace.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
14027
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14031
|
+
React__namespace.createElement("div", { className: css(styles$Y.formGroupControl) }, formActionsComponent)));
|
|
14028
14032
|
};
|
|
14029
14033
|
ActionGroup.displayName = 'ActionGroup';
|
|
14030
14034
|
|
|
@@ -14032,7 +14036,7 @@
|
|
|
14032
14036
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]);
|
|
14033
14037
|
return (React__namespace.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
14034
14038
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
14035
|
-
}), props, { className: css(styles$
|
|
14039
|
+
}), props, { className: css(styles$Y.form, isHorizontal && styles$Y.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$Y.modifiers.limitWidth, className) }), children));
|
|
14036
14040
|
};
|
|
14037
14041
|
Form.displayName = 'Form';
|
|
14038
14042
|
|
|
@@ -14047,10 +14051,10 @@
|
|
|
14047
14051
|
|
|
14048
14052
|
const FormFieldGroupToggle = (_a) => {
|
|
14049
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"]);
|
|
14050
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14051
|
-
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) },
|
|
14052
14056
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
|
14053
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14057
|
+
React__namespace.createElement("span", { className: css(styles$Y.formFieldGroupToggleIcon) },
|
|
14054
14058
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" }))))));
|
|
14055
14059
|
};
|
|
14056
14060
|
FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
|
@@ -14062,10 +14066,10 @@
|
|
|
14062
14066
|
// eslint-disable-next-line no-console
|
|
14063
14067
|
console.error('FormFieldGroupExpandable:', 'toggleAriaLabel or the titleText prop of FormFieldGroupHeader is required to make the toggle button accessible');
|
|
14064
14068
|
}
|
|
14065
|
-
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),
|
|
14066
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}` })))))),
|
|
14067
14071
|
header && header,
|
|
14068
|
-
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
14072
|
+
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$Y.formFieldGroupBody) }, children))));
|
|
14069
14073
|
};
|
|
14070
14074
|
InternalFormFieldGroup.displayName = 'InternalFormFieldGroup';
|
|
14071
14075
|
|
|
@@ -14084,42 +14088,42 @@
|
|
|
14084
14088
|
|
|
14085
14089
|
const FormFieldGroupHeader = (_a) => {
|
|
14086
14090
|
var { className, titleText, titleDescription, actions } = _a, props = __rest$1(_a, ["className", "titleText", "titleDescription", "actions"]);
|
|
14087
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14088
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14089
|
-
titleText && (React__namespace.createElement("div", { className: css(styles$
|
|
14090
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14091
|
-
titleDescription && React__namespace.createElement("div", { className: css(styles$
|
|
14092
|
-
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)));
|
|
14093
14097
|
};
|
|
14094
14098
|
FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
|
|
14095
14099
|
|
|
14096
14100
|
const FormGroup = (_a) => {
|
|
14097
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"]);
|
|
14098
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$
|
|
14099
|
-
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),
|
|
14100
14104
|
helperText));
|
|
14101
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$
|
|
14102
|
-
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),
|
|
14103
14107
|
helperTextInvalid));
|
|
14104
14108
|
const showValidHelperTxt = (validationType) => validationType !== exports.ValidatedOptions.error && helperText ? validHelperText : '';
|
|
14105
14109
|
const helperTextToDisplay = validated === exports.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
14106
14110
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
14107
14111
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
14108
14112
|
const labelContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14109
|
-
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$
|
|
14110
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14111
|
-
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" },
|
|
14112
14116
|
' ',
|
|
14113
14117
|
ASTERISK))),
|
|
14114
14118
|
' ',
|
|
14115
14119
|
React__namespace.isValidElement(labelIcon) && labelIcon));
|
|
14116
|
-
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14117
|
-
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` })),
|
|
14118
14122
|
labelInfo && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14119
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14120
|
-
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))),
|
|
14121
14125
|
!labelInfo && labelContent)),
|
|
14122
|
-
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) },
|
|
14123
14127
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
14124
14128
|
children,
|
|
14125
14129
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -14129,22 +14133,22 @@
|
|
|
14129
14133
|
const FormHelperText = (_a) => {
|
|
14130
14134
|
var { children = null, isError = false, isHidden = true, className = '', icon = null, component = 'p' } = _a, props = __rest$1(_a, ["children", "isError", "isHidden", "className", "icon", "component"]);
|
|
14131
14135
|
const Component = component;
|
|
14132
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14133
|
-
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),
|
|
14134
14138
|
children));
|
|
14135
14139
|
};
|
|
14136
14140
|
FormHelperText.displayName = 'FormHelperText';
|
|
14137
14141
|
|
|
14138
14142
|
const FormSection = (_a) => {
|
|
14139
14143
|
var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = __rest$1(_a, ["className", "children", "title", "titleElement"]);
|
|
14140
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
14141
|
-
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)),
|
|
14142
14146
|
children))));
|
|
14143
14147
|
};
|
|
14144
14148
|
FormSection.displayName = 'FormSection';
|
|
14145
14149
|
|
|
14146
14150
|
Promise.resolve().then(function () { return helperText; });
|
|
14147
|
-
var styles$
|
|
14151
|
+
var styles$G = {
|
|
14148
14152
|
"helperText": "pf-c-helper-text",
|
|
14149
14153
|
"helperTextItem": "pf-c-helper-text__item",
|
|
14150
14154
|
"helperTextItemIcon": "pf-c-helper-text__item-icon",
|
|
@@ -14162,7 +14166,7 @@
|
|
|
14162
14166
|
const HelperText = (_a) => {
|
|
14163
14167
|
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest$1(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
14164
14168
|
const Component = component;
|
|
14165
|
-
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));
|
|
14166
14170
|
};
|
|
14167
14171
|
HelperText.displayName = 'HelperText';
|
|
14168
14172
|
|
|
@@ -14181,22 +14185,22 @@
|
|
|
14181
14185
|
|
|
14182
14186
|
const variantStyle$4 = {
|
|
14183
14187
|
default: '',
|
|
14184
|
-
indeterminate: styles$
|
|
14185
|
-
warning: styles$
|
|
14186
|
-
success: styles$
|
|
14187
|
-
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
|
|
14188
14192
|
};
|
|
14189
14193
|
const HelperTextItem = (_a) => {
|
|
14190
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"]);
|
|
14191
14195
|
const Component = component;
|
|
14192
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14193
|
-
icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14194
|
-
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 },
|
|
14195
14199
|
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon$1, null),
|
|
14196
14200
|
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon$1, null),
|
|
14197
14201
|
variant === 'success' && React__namespace.createElement(CheckCircleIcon$1, null),
|
|
14198
14202
|
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon$1, null))),
|
|
14199
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14203
|
+
React__namespace.createElement("span", { className: css(styles$G.helperTextItemText) },
|
|
14200
14204
|
children,
|
|
14201
14205
|
isDynamic && React__namespace.createElement("span", { className: "pf-u-screen-reader" },
|
|
14202
14206
|
": ",
|
|
@@ -14206,7 +14210,7 @@
|
|
|
14206
14210
|
HelperTextItem.displayName = 'HelperTextItem';
|
|
14207
14211
|
|
|
14208
14212
|
Promise.resolve().then(function () { return hint; });
|
|
14209
|
-
var styles$
|
|
14213
|
+
var styles$F = {
|
|
14210
14214
|
"button": "pf-c-button",
|
|
14211
14215
|
"dropdown": "pf-c-dropdown",
|
|
14212
14216
|
"dropdownToggle": "pf-c-dropdown__toggle",
|
|
@@ -14225,32 +14229,32 @@
|
|
|
14225
14229
|
|
|
14226
14230
|
const Hint = (_a) => {
|
|
14227
14231
|
var { children, className, actions } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
14228
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14229
|
-
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),
|
|
14230
14234
|
children));
|
|
14231
14235
|
};
|
|
14232
14236
|
Hint.displayName = 'Hint';
|
|
14233
14237
|
|
|
14234
14238
|
const HintBody = (_a) => {
|
|
14235
14239
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14236
|
-
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));
|
|
14237
14241
|
};
|
|
14238
14242
|
HintBody.displayName = 'HintBody';
|
|
14239
14243
|
|
|
14240
14244
|
const HintFooter = (_a) => {
|
|
14241
14245
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14242
|
-
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));
|
|
14243
14247
|
};
|
|
14244
14248
|
HintFooter.displayName = 'HintFooter';
|
|
14245
14249
|
|
|
14246
14250
|
const HintTitle = (_a) => {
|
|
14247
14251
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14248
|
-
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));
|
|
14249
14253
|
};
|
|
14250
14254
|
HintTitle.displayName = 'HintTitle';
|
|
14251
14255
|
|
|
14252
14256
|
Promise.resolve().then(function () { return jumpLinks; });
|
|
14253
|
-
var styles$
|
|
14257
|
+
var styles$E = {
|
|
14254
14258
|
"button": "pf-c-button",
|
|
14255
14259
|
"jumpLinks": "pf-c-jump-links",
|
|
14256
14260
|
"jumpLinksItem": "pf-c-jump-links__item",
|
|
@@ -14283,7 +14287,7 @@
|
|
|
14283
14287
|
};
|
|
14284
14288
|
|
|
14285
14289
|
Promise.resolve().then(function () { return sidebar; });
|
|
14286
|
-
var styles$
|
|
14290
|
+
var styles$D = {
|
|
14287
14291
|
"modifiers": {
|
|
14288
14292
|
"gutter": "pf-m-gutter",
|
|
14289
14293
|
"panelRight": "pf-m-panel-right",
|
|
@@ -14343,7 +14347,7 @@
|
|
|
14343
14347
|
|
|
14344
14348
|
const JumpLinksList = (_a) => {
|
|
14345
14349
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14346
|
-
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));
|
|
14347
14351
|
};
|
|
14348
14352
|
JumpLinksList.displayName = 'JumpLinksList';
|
|
14349
14353
|
|
|
@@ -14354,9 +14358,9 @@
|
|
|
14354
14358
|
const childrenArr = React__namespace.Children.toArray(children);
|
|
14355
14359
|
const sublists = childrenArr.filter(child => child.type === JumpLinksList);
|
|
14356
14360
|
children = childrenArr.filter(child => child.type !== JumpLinksList);
|
|
14357
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14358
|
-
React__namespace.createElement("a", { className: styles$
|
|
14359
|
-
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)),
|
|
14360
14364
|
sublists));
|
|
14361
14365
|
};
|
|
14362
14366
|
JumpLinksItem.displayName = 'JumpLinksItem';
|
|
@@ -14478,10 +14482,10 @@
|
|
|
14478
14482
|
if (isResponsive(navRef.current)) {
|
|
14479
14483
|
// Remove class immediately so we can get collapsed height
|
|
14480
14484
|
if (navRef.current) {
|
|
14481
|
-
navRef.current.classList.remove(styles$
|
|
14485
|
+
navRef.current.classList.remove(styles$E.modifiers.expanded);
|
|
14482
14486
|
}
|
|
14483
14487
|
let stickyParent = navRef.current && navRef.current.parentElement;
|
|
14484
|
-
while (stickyParent && !stickyParent.classList.contains(styles$
|
|
14488
|
+
while (stickyParent && !stickyParent.classList.contains(styles$D.modifiers.sticky)) {
|
|
14485
14489
|
stickyParent = stickyParent.parentElement;
|
|
14486
14490
|
}
|
|
14487
14491
|
setIsExpanded(false);
|
|
@@ -14511,19 +14515,19 @@
|
|
|
14511
14515
|
}
|
|
14512
14516
|
return child;
|
|
14513
14517
|
});
|
|
14514
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
14515
|
-
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 },
|
|
14516
14520
|
React__namespace.createElement("div", { className: css('pf-c-jump-links__header') },
|
|
14517
|
-
expandable && (React__namespace.createElement("div", { className: styles$
|
|
14521
|
+
expandable && (React__namespace.createElement("div", { className: styles$E.jumpLinksToggle },
|
|
14518
14522
|
React__namespace.createElement(Button, { variant: "plain", onClick: () => setIsExpanded(!isExpanded), "aria-label": toggleAriaLabel, "aria-expanded": isExpanded },
|
|
14519
|
-
React__namespace.createElement("span", { className: styles$
|
|
14523
|
+
React__namespace.createElement("span", { className: styles$E.jumpLinksToggleIcon },
|
|
14520
14524
|
React__namespace.createElement(AngleRightIcon$1, null)),
|
|
14521
|
-
label && React__namespace.createElement("span", { className: css(styles$
|
|
14525
|
+
label && React__namespace.createElement("span", { className: css(styles$E.jumpLinksToggleText) },
|
|
14522
14526
|
" ",
|
|
14523
14527
|
label,
|
|
14524
14528
|
" ")))),
|
|
14525
|
-
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$
|
|
14526
|
-
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)))));
|
|
14527
14531
|
};
|
|
14528
14532
|
JumpLinks.displayName = 'JumpLinks';
|
|
14529
14533
|
|
|
@@ -14553,7 +14557,7 @@
|
|
|
14553
14557
|
};
|
|
14554
14558
|
|
|
14555
14559
|
Promise.resolve().then(function () { return labelGroup; });
|
|
14556
|
-
var styles$
|
|
14560
|
+
var styles$C = {
|
|
14557
14561
|
"button": "pf-c-button",
|
|
14558
14562
|
"labelGroup": "pf-c-label-group",
|
|
14559
14563
|
"labelGroupClose": "pf-c-label-group__close",
|
|
@@ -14694,7 +14698,7 @@
|
|
|
14694
14698
|
else if (isTooltipVisible) {
|
|
14695
14699
|
labelComponentChild = (React__namespace.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
14696
14700
|
}
|
|
14697
|
-
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) }),
|
|
14698
14702
|
!isEditableActive && labelComponentChild,
|
|
14699
14703
|
!isEditableActive && onClose && button,
|
|
14700
14704
|
isEditableActive && (React__namespace.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
@@ -14725,8 +14729,8 @@
|
|
|
14725
14729
|
const { categoryName, tooltipPosition } = this.props;
|
|
14726
14730
|
const { isTooltipVisible } = this.state;
|
|
14727
14731
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
14728
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
14729
|
-
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));
|
|
14730
14734
|
}
|
|
14731
14735
|
render() {
|
|
14732
14736
|
const _a = this.props, { categoryName, children, className, isClosable, isCompact, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, numLabels, expandedText, collapsedText,
|
|
@@ -14745,18 +14749,18 @@
|
|
|
14745
14749
|
: React__namespace.Children.toArray(children);
|
|
14746
14750
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14747
14751
|
categoryName && this.renderLabel(id),
|
|
14748
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14749
|
-
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
14750
|
-
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) },
|
|
14751
14755
|
React__namespace.createElement(Label, { isOverflowLabel: true, onClick: this.toggleCollapse, className: css(isCompact && labelStyles.modifiers.compact) }, isOpen ? expandedText : collapsedTextResult))),
|
|
14752
|
-
addLabelControl && React__namespace.createElement("li", { className: css(styles$
|
|
14753
|
-
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$
|
|
14754
|
-
React__namespace.createElement("textarea", Object.assign({ className: css(styles$
|
|
14755
|
-
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) },
|
|
14756
14760
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
|
|
14757
14761
|
React__namespace.createElement(TimesCircleIcon$1, { "aria-hidden": "true" }))));
|
|
14758
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
14759
|
-
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),
|
|
14760
14764
|
isClosable && close));
|
|
14761
14765
|
};
|
|
14762
14766
|
return numChildren === 0 && addLabelControl === undefined ? null : (React__namespace.createElement(GenerateId, null, randomId => renderLabelGroup(this.props.id || randomId)));
|
|
@@ -14782,7 +14786,7 @@
|
|
|
14782
14786
|
};
|
|
14783
14787
|
|
|
14784
14788
|
Promise.resolve().then(function () { return list; });
|
|
14785
|
-
var styles$
|
|
14789
|
+
var styles$B = {
|
|
14786
14790
|
"list": "pf-c-list",
|
|
14787
14791
|
"listItem": "pf-c-list__item",
|
|
14788
14792
|
"listItemIcon": "pf-c-list__item-icon",
|
|
@@ -14813,20 +14817,20 @@
|
|
|
14813
14817
|
})(exports.ListComponent || (exports.ListComponent = {}));
|
|
14814
14818
|
const List = (_a) => {
|
|
14815
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"]);
|
|
14816
|
-
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));
|
|
14817
14821
|
};
|
|
14818
14822
|
List.displayName = 'List';
|
|
14819
14823
|
|
|
14820
14824
|
const ListItem = (_a) => {
|
|
14821
14825
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
14822
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$
|
|
14823
|
-
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),
|
|
14824
14828
|
children));
|
|
14825
14829
|
};
|
|
14826
14830
|
ListItem.displayName = 'ListItem';
|
|
14827
14831
|
|
|
14828
14832
|
Promise.resolve().then(function () { return login; });
|
|
14829
|
-
var styles$
|
|
14833
|
+
var styles$A = {
|
|
14830
14834
|
"brand": "pf-c-brand",
|
|
14831
14835
|
"button": "pf-c-button",
|
|
14832
14836
|
"card": "pf-c-card",
|
|
@@ -14852,17 +14856,17 @@
|
|
|
14852
14856
|
|
|
14853
14857
|
const Login = (_a) => {
|
|
14854
14858
|
var { className = '', children = null, footer = null, header = null } = _a, props = __rest$1(_a, ["className", "children", "footer", "header"]);
|
|
14855
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
14856
|
-
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) },
|
|
14857
14861
|
header,
|
|
14858
|
-
React__namespace.createElement("main", { className: css(styles$
|
|
14862
|
+
React__namespace.createElement("main", { className: css(styles$A.loginMain) }, children),
|
|
14859
14863
|
footer)));
|
|
14860
14864
|
};
|
|
14861
14865
|
Login.displayName = 'Login';
|
|
14862
14866
|
|
|
14863
14867
|
const LoginHeader = (_a) => {
|
|
14864
14868
|
var { className = '', children = null, headerBrand = null } = _a, props = __rest$1(_a, ["className", "children", "headerBrand"]);
|
|
14865
|
-
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),
|
|
14866
14870
|
headerBrand,
|
|
14867
14871
|
children));
|
|
14868
14872
|
};
|
|
@@ -14870,31 +14874,31 @@
|
|
|
14870
14874
|
|
|
14871
14875
|
const LoginFooter = (_a) => {
|
|
14872
14876
|
var { className = '', children = null } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
14873
|
-
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));
|
|
14874
14878
|
};
|
|
14875
14879
|
LoginFooter.displayName = 'LoginFooter';
|
|
14876
14880
|
|
|
14877
14881
|
const LoginMainHeader = (_a) => {
|
|
14878
14882
|
var { children = null, className = '', title = '', subtitle = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle"]);
|
|
14879
|
-
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),
|
|
14880
14884
|
title && (React__namespace.createElement(Title, { headingLevel: "h2", size: exports.TitleSizes['3xl'] }, title)),
|
|
14881
|
-
subtitle && React__namespace.createElement("p", { className: css(styles$
|
|
14885
|
+
subtitle && React__namespace.createElement("p", { className: css(styles$A.loginMainHeaderDesc) }, subtitle),
|
|
14882
14886
|
children));
|
|
14883
14887
|
};
|
|
14884
14888
|
LoginMainHeader.displayName = 'LoginMainHeader';
|
|
14885
14889
|
|
|
14886
14890
|
const LoginMainBody = (_a) => {
|
|
14887
14891
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14888
|
-
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));
|
|
14889
14893
|
};
|
|
14890
14894
|
LoginMainBody.displayName = 'LoginMainBody';
|
|
14891
14895
|
|
|
14892
14896
|
const LoginMainFooter = (_a) => {
|
|
14893
14897
|
var { children = null, socialMediaLoginContent = null, signUpForAccountMessage = null, forgotCredentials = null, className = '' } = _a, props = __rest$1(_a, ["children", "socialMediaLoginContent", "signUpForAccountMessage", "forgotCredentials", "className"]);
|
|
14894
|
-
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),
|
|
14895
14899
|
children,
|
|
14896
|
-
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$
|
|
14897
|
-
(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) },
|
|
14898
14902
|
signUpForAccountMessage,
|
|
14899
14903
|
forgotCredentials))));
|
|
14900
14904
|
};
|
|
@@ -14971,20 +14975,20 @@
|
|
|
14971
14975
|
|
|
14972
14976
|
const LoginMainFooterBandItem = (_a) => {
|
|
14973
14977
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14974
|
-
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));
|
|
14975
14979
|
};
|
|
14976
14980
|
LoginMainFooterBandItem.displayName = 'LoginMainFooterBandItem';
|
|
14977
14981
|
|
|
14978
14982
|
const LoginMainFooterLinksItem = (_a) => {
|
|
14979
14983
|
var { children = null, href = '', target = '', className = '', linkComponent = 'a', linkComponentProps } = _a, props = __rest$1(_a, ["children", "href", "target", "className", "linkComponent", "linkComponentProps"]);
|
|
14980
14984
|
const LinkComponent = linkComponent;
|
|
14981
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14982
|
-
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)));
|
|
14983
14987
|
};
|
|
14984
14988
|
LoginMainFooterLinksItem.displayName = 'LoginMainFooterLinksItem';
|
|
14985
14989
|
|
|
14986
14990
|
Promise.resolve().then(function () { return masthead; });
|
|
14987
|
-
var styles$
|
|
14991
|
+
var styles$z = {
|
|
14988
14992
|
"button": "pf-c-button",
|
|
14989
14993
|
"card": "pf-c-card",
|
|
14990
14994
|
"contextSelector": "pf-c-context-selector",
|
|
@@ -15059,7 +15063,7 @@
|
|
|
15059
15063
|
};
|
|
15060
15064
|
|
|
15061
15065
|
Promise.resolve().then(function () { return page; });
|
|
15062
|
-
var styles$
|
|
15066
|
+
var styles$y = {
|
|
15063
15067
|
"avatar": "pf-c-avatar",
|
|
15064
15068
|
"brand": "pf-c-brand",
|
|
15065
15069
|
"button": "pf-c-button",
|
|
@@ -15159,7 +15163,7 @@
|
|
|
15159
15163
|
|
|
15160
15164
|
const PageGroup = (_a) => {
|
|
15161
15165
|
var { className = '', children, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
15162
|
-
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));
|
|
15163
15167
|
};
|
|
15164
15168
|
PageGroup.displayName = 'PageGroup';
|
|
15165
15169
|
|
|
@@ -15271,37 +15275,37 @@
|
|
|
15271
15275
|
};
|
|
15272
15276
|
let nav = null;
|
|
15273
15277
|
if (tertiaryNav && isTertiaryNavWidthLimited) {
|
|
15274
|
-
nav = (React__namespace.createElement("div", { className: css(styles$
|
|
15275
|
-
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)));
|
|
15276
15280
|
}
|
|
15277
15281
|
else if (tertiaryNav) {
|
|
15278
|
-
nav = React__namespace.createElement("div", { className: css(styles$
|
|
15282
|
+
nav = React__namespace.createElement("div", { className: css(styles$y.pageMainNav) }, tertiaryNav);
|
|
15279
15283
|
}
|
|
15280
15284
|
let crumb = null;
|
|
15281
15285
|
if (breadcrumb && isBreadcrumbWidthLimited) {
|
|
15282
|
-
crumb = (React__namespace.createElement("section", { className: css(styles$
|
|
15283
|
-
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)));
|
|
15284
15288
|
}
|
|
15285
15289
|
else if (breadcrumb) {
|
|
15286
|
-
crumb = React__namespace.createElement("section", { className: css(styles$
|
|
15290
|
+
crumb = React__namespace.createElement("section", { className: css(styles$y.pageMainBreadcrumb) }, breadcrumb);
|
|
15287
15291
|
}
|
|
15288
15292
|
const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;
|
|
15289
15293
|
const group = isGrouped ? (React__namespace.createElement(PageGroup, Object.assign({}, groupProps),
|
|
15290
15294
|
isTertiaryNavGrouped && nav,
|
|
15291
15295
|
isBreadcrumbGrouped && crumb,
|
|
15292
15296
|
additionalGroupedContent)) : null;
|
|
15293
|
-
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 },
|
|
15294
15298
|
group,
|
|
15295
15299
|
!isTertiaryNavGrouped && nav,
|
|
15296
15300
|
!isBreadcrumbGrouped && crumb,
|
|
15297
15301
|
children));
|
|
15298
15302
|
const panelContent = React__namespace.createElement(DrawerPanelContent, null, notificationDrawer);
|
|
15299
15303
|
return (React__namespace.createElement(PageContextProvider, { value: context },
|
|
15300
|
-
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) }),
|
|
15301
15305
|
skipToContent,
|
|
15302
15306
|
header,
|
|
15303
15307
|
sidebar,
|
|
15304
|
-
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$
|
|
15308
|
+
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$y.pageDrawer) },
|
|
15305
15309
|
React__namespace.createElement(Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },
|
|
15306
15310
|
React__namespace.createElement(DrawerContent, { panelContent: panelContent },
|
|
15307
15311
|
React__namespace.createElement(DrawerContentBody, null, main))))),
|
|
@@ -15325,32 +15329,32 @@
|
|
|
15325
15329
|
md: 'inline'
|
|
15326
15330
|
}, inset } = _a, props = __rest$1(_a, ["children", "className", "backgroundColor", "display", "inset"]);
|
|
15327
15331
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
15328
|
-
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));
|
|
15329
15333
|
};
|
|
15330
15334
|
Masthead.displayName = 'Masthead';
|
|
15331
15335
|
|
|
15332
15336
|
const MastheadBrand = (_a) => {
|
|
15333
15337
|
var { children, className, component = 'a' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
15334
15338
|
const Component = component;
|
|
15335
|
-
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));
|
|
15336
15340
|
};
|
|
15337
15341
|
MastheadBrand.displayName = 'MastheadBrand';
|
|
15338
15342
|
|
|
15339
15343
|
const MastheadContent = (_a) => {
|
|
15340
15344
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15341
|
-
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));
|
|
15342
15346
|
};
|
|
15343
15347
|
MastheadContent.displayName = 'MastheadContent';
|
|
15344
15348
|
|
|
15345
15349
|
const MastheadMain = (_a) => {
|
|
15346
15350
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15347
|
-
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));
|
|
15348
15352
|
};
|
|
15349
15353
|
MastheadMain.displayName = 'MastheadMain';
|
|
15350
15354
|
|
|
15351
15355
|
const MastheadToggle = (_a) => {
|
|
15352
15356
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15353
|
-
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));
|
|
15354
15358
|
};
|
|
15355
15359
|
MastheadToggle.displayName = 'MastheadToggle';
|
|
15356
15360
|
|
|
@@ -15897,7 +15901,7 @@
|
|
|
15897
15901
|
MenuBreadcrumb.displayName = 'MenuBreadcrumb';
|
|
15898
15902
|
|
|
15899
15903
|
Promise.resolve().then(function () { return menuToggle; });
|
|
15900
|
-
var styles$
|
|
15904
|
+
var styles$x = {
|
|
15901
15905
|
"check": "pf-c-check",
|
|
15902
15906
|
"menuToggle": "pf-c-menu-toggle",
|
|
15903
15907
|
"menuToggleButton": "pf-c-menu-toggle__button",
|
|
@@ -15934,13 +15938,13 @@
|
|
|
15934
15938
|
const isPlain = variant === 'plain';
|
|
15935
15939
|
const isPlainText = variant === 'plainText';
|
|
15936
15940
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
15937
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
15941
|
+
icon && React__namespace.createElement("span", { className: css(styles$x.menuToggleIcon) }, icon),
|
|
15938
15942
|
React__namespace.createElement("span", { className: "pf-c-menu-toggle__text" }, children),
|
|
15939
|
-
badge && React__namespace.createElement("span", { className: css(styles$
|
|
15940
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
15941
|
-
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) },
|
|
15942
15946
|
React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true })))));
|
|
15943
|
-
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),
|
|
15944
15948
|
isPlain && children,
|
|
15945
15949
|
!isPlain && content));
|
|
15946
15950
|
}
|
|
@@ -16096,7 +16100,7 @@
|
|
|
16096
16100
|
modalBody,
|
|
16097
16101
|
modalBoxFooter));
|
|
16098
16102
|
return (React__namespace.createElement(Backdrop, null,
|
|
16099
|
-
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)));
|
|
16100
16104
|
};
|
|
16101
16105
|
ModalContent.displayName = 'ModalContent';
|
|
16102
16106
|
|
|
@@ -16155,10 +16159,10 @@
|
|
|
16155
16159
|
target.appendChild(container);
|
|
16156
16160
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
16157
16161
|
if (this.props.isOpen) {
|
|
16158
|
-
target.classList.add(css(styles$
|
|
16162
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
16159
16163
|
}
|
|
16160
16164
|
else {
|
|
16161
|
-
target.classList.remove(css(styles$
|
|
16165
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16162
16166
|
}
|
|
16163
16167
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
16164
16168
|
// eslint-disable-next-line no-console
|
|
@@ -16173,11 +16177,11 @@
|
|
|
16173
16177
|
const { appendTo } = this.props;
|
|
16174
16178
|
const target = this.getElement(appendTo);
|
|
16175
16179
|
if (this.props.isOpen) {
|
|
16176
|
-
target.classList.add(css(styles$
|
|
16180
|
+
target.classList.add(css(styles$1h.backdropOpen));
|
|
16177
16181
|
this.toggleSiblingsFromScreenReaders(true);
|
|
16178
16182
|
}
|
|
16179
16183
|
else {
|
|
16180
|
-
target.classList.remove(css(styles$
|
|
16184
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16181
16185
|
this.toggleSiblingsFromScreenReaders(false);
|
|
16182
16186
|
}
|
|
16183
16187
|
}
|
|
@@ -16188,7 +16192,7 @@
|
|
|
16188
16192
|
target.removeChild(this.state.container);
|
|
16189
16193
|
}
|
|
16190
16194
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
16191
|
-
target.classList.remove(css(styles$
|
|
16195
|
+
target.classList.remove(css(styles$1h.backdropOpen));
|
|
16192
16196
|
}
|
|
16193
16197
|
render() {
|
|
16194
16198
|
const _a = this.props, {
|
|
@@ -16225,7 +16229,7 @@
|
|
|
16225
16229
|
};
|
|
16226
16230
|
|
|
16227
16231
|
Promise.resolve().then(function () { return multipleFileUpload; });
|
|
16228
|
-
var styles$
|
|
16232
|
+
var styles$w = {
|
|
16229
16233
|
"modifiers": {
|
|
16230
16234
|
"horizontal": "pf-m-horizontal",
|
|
16231
16235
|
"dragOver": "pf-m-drag-over"
|
|
@@ -16268,7 +16272,7 @@
|
|
|
16268
16272
|
}));
|
|
16269
16273
|
const inputProps = getInputProps();
|
|
16270
16274
|
return (React__namespace.createElement(MultipleFileUploadContext.Provider, { value: { open } },
|
|
16271
|
-
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),
|
|
16272
16276
|
React__namespace.createElement("input", Object.assign({}, inputProps)),
|
|
16273
16277
|
children)));
|
|
16274
16278
|
}));
|
|
@@ -16277,25 +16281,25 @@
|
|
|
16277
16281
|
|
|
16278
16282
|
const MultipleFileUploadTitleIcon = (_a) => {
|
|
16279
16283
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
16280
|
-
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));
|
|
16281
16285
|
};
|
|
16282
16286
|
MultipleFileUploadTitleIcon.displayName = 'MultipleFileUploadTitleIcon';
|
|
16283
16287
|
|
|
16284
16288
|
const MultipleFileUploadTitleText = (_a) => {
|
|
16285
16289
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16286
|
-
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));
|
|
16287
16291
|
};
|
|
16288
16292
|
MultipleFileUploadTitleText.displayName = 'MultipleFileUploadTitleText';
|
|
16289
16293
|
|
|
16290
16294
|
const MultipleFileUploadTitleTextSeparator = (_a) => {
|
|
16291
16295
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16292
|
-
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));
|
|
16293
16297
|
};
|
|
16294
16298
|
MultipleFileUploadTitleTextSeparator.displayName = 'MultipleFileUploadTitleTextSeparator';
|
|
16295
16299
|
|
|
16296
16300
|
const MultipleFileUploadTitle = (_a) => {
|
|
16297
16301
|
var { className, icon, text = '', textSeparator = '' } = _a, props = __rest$1(_a, ["className", "icon", "text", "textSeparator"]);
|
|
16298
|
-
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),
|
|
16299
16303
|
icon && React__namespace.createElement(MultipleFileUploadTitleIcon, null, icon),
|
|
16300
16304
|
text && (React__namespace.createElement(MultipleFileUploadTitleText, null,
|
|
16301
16305
|
`${text} `,
|
|
@@ -16306,21 +16310,21 @@
|
|
|
16306
16310
|
const MultipleFileUploadButton = (_a) => {
|
|
16307
16311
|
var { className, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", 'aria-label']);
|
|
16308
16312
|
const { open } = React__namespace.useContext(MultipleFileUploadContext);
|
|
16309
|
-
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),
|
|
16310
16314
|
React__namespace.createElement(Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
|
|
16311
16315
|
};
|
|
16312
16316
|
MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
|
|
16313
16317
|
|
|
16314
16318
|
const MultipleFileUploadInfo = (_a) => {
|
|
16315
16319
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16316
|
-
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));
|
|
16317
16321
|
};
|
|
16318
16322
|
MultipleFileUploadInfo.displayName = 'MultipleFileUploadInfo';
|
|
16319
16323
|
|
|
16320
16324
|
const MultipleFileUploadMain = (_a) => {
|
|
16321
16325
|
var { className, titleIcon, titleText, titleTextSeparator, infoText, isUploadButtonHidden } = _a, props = __rest$1(_a, ["className", "titleIcon", "titleText", "titleTextSeparator", "infoText", "isUploadButtonHidden"]);
|
|
16322
16326
|
const showTitle = !!titleIcon || !!titleText || !!titleTextSeparator;
|
|
16323
|
-
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),
|
|
16324
16328
|
showTitle && React__namespace.createElement(MultipleFileUploadTitle, { icon: titleIcon, text: titleText, textSeparator: titleTextSeparator }),
|
|
16325
16329
|
isUploadButtonHidden || React__namespace.createElement(MultipleFileUploadButton, null),
|
|
16326
16330
|
!!infoText && React__namespace.createElement(MultipleFileUploadInfo, null, infoText)));
|
|
@@ -16359,20 +16363,20 @@
|
|
|
16359
16363
|
setIcon(statusToggleIcon);
|
|
16360
16364
|
}
|
|
16361
16365
|
}, [statusToggleIcon]);
|
|
16362
|
-
const toggle = (React__namespace.createElement("div", { className: styles$
|
|
16363
|
-
React__namespace.createElement("div", { className: styles$
|
|
16364
|
-
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)));
|
|
16365
16369
|
const toggleExpandableSection = () => {
|
|
16366
16370
|
setIsOpen(!isOpen);
|
|
16367
16371
|
};
|
|
16368
|
-
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),
|
|
16369
16373
|
React__namespace.createElement(ExpandableSection, { toggleContent: toggle, isExpanded: isOpen, onToggle: toggleExpandableSection },
|
|
16370
16374
|
React__namespace.createElement("ul", { className: "pf-c-multiple-file-upload__status-list" }, children))));
|
|
16371
16375
|
};
|
|
16372
16376
|
MultipleFileUploadStatus.displayName = 'MultipleFileUploadStatus';
|
|
16373
16377
|
|
|
16374
16378
|
Promise.resolve().then(function () { return progress; });
|
|
16375
|
-
var styles$
|
|
16379
|
+
var styles$v = {
|
|
16376
16380
|
"modifiers": {
|
|
16377
16381
|
"sm": "pf-m-sm",
|
|
16378
16382
|
"lg": "pf-m-lg",
|
|
@@ -16397,9 +16401,9 @@
|
|
|
16397
16401
|
|
|
16398
16402
|
const ProgressBar = (_a) => {
|
|
16399
16403
|
var { progressBarAriaProps, className = '', children = null, value } = _a, props = __rest$1(_a, ["progressBarAriaProps", "className", "children", "value"]);
|
|
16400
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16401
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16402
|
-
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))));
|
|
16403
16407
|
};
|
|
16404
16408
|
ProgressBar.displayName = 'ProgressBar';
|
|
16405
16409
|
|
|
@@ -16432,12 +16436,12 @@
|
|
|
16432
16436
|
setTooltip('');
|
|
16433
16437
|
}
|
|
16434
16438
|
};
|
|
16435
|
-
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));
|
|
16436
16440
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16437
16441
|
tooltip ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
|
|
16438
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16439
|
-
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$
|
|
16440
|
-
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) },
|
|
16441
16445
|
React__namespace.createElement(StatusIcon, null)))),
|
|
16442
16446
|
React__namespace.createElement(ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === exports.ProgressMeasureLocation.inside && `${value}%`)));
|
|
16443
16447
|
};
|
|
@@ -16479,7 +16483,7 @@
|
|
|
16479
16483
|
console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
|
|
16480
16484
|
}
|
|
16481
16485
|
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
|
|
16482
|
-
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 }),
|
|
16483
16487
|
React__namespace.createElement(ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
|
|
16484
16488
|
}
|
|
16485
16489
|
}
|
|
@@ -16564,21 +16568,21 @@
|
|
|
16564
16568
|
}
|
|
16565
16569
|
return `${Math.round(size)}${prefixes[prefixUnit]}B`;
|
|
16566
16570
|
};
|
|
16567
|
-
const title = (React__namespace.createElement("span", { className: styles$
|
|
16568
|
-
React__namespace.createElement("span", { className: styles$
|
|
16569
|
-
React__namespace.createElement("span", { className: styles$
|
|
16570
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16571
|
-
React__namespace.createElement("div", { className: styles$
|
|
16572
|
-
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 },
|
|
16573
16577
|
React__namespace.createElement(Progress, { title: title, value: progressValue || loadPercentage, variant: progressVariant || loadResult, "aria-label": progressAriaLabel, "aria-labelledby": progressAriaLabelledBy, id: progressId })),
|
|
16574
|
-
React__namespace.createElement("div", { className: styles$
|
|
16578
|
+
React__namespace.createElement("div", { className: styles$w.multipleFileUploadStatusItemClose },
|
|
16575
16579
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": buttonAriaLabel, onClick: onClearClick },
|
|
16576
16580
|
React__namespace.createElement(TimesCircleIcon$1, null)))));
|
|
16577
16581
|
};
|
|
16578
16582
|
MultipleFileUploadStatusItem.displayName = 'MultipleFileUploadStatusItem';
|
|
16579
16583
|
|
|
16580
16584
|
Promise.resolve().then(function () { return nav; });
|
|
16581
|
-
var styles$
|
|
16585
|
+
var styles$u = {
|
|
16582
16586
|
"divider": "pf-c-divider",
|
|
16583
16587
|
"menu": "pf-c-menu",
|
|
16584
16588
|
"menuContent": "pf-c-menu__content",
|
|
@@ -16661,7 +16665,7 @@
|
|
|
16661
16665
|
flyoutRef: this.state.flyoutRef,
|
|
16662
16666
|
setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
|
|
16663
16667
|
} },
|
|
16664
|
-
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)));
|
|
16665
16669
|
}
|
|
16666
16670
|
}
|
|
16667
16671
|
Nav.displayName = 'Nav';
|
|
@@ -16680,8 +16684,8 @@
|
|
|
16680
16684
|
var { className = '', nav, isNavOpen = true, theme = 'dark' } = _a, props = __rest$1(_a, ["className", "nav", "isNavOpen", "theme"]);
|
|
16681
16685
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {
|
|
16682
16686
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
16683
|
-
return (React__namespace.createElement("div", Object.assign({ id: "page-sidebar", className: css(styles$
|
|
16684
|
-
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 },
|
|
16685
16689
|
React__namespace.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));
|
|
16686
16690
|
}));
|
|
16687
16691
|
};
|
|
@@ -16759,10 +16763,10 @@
|
|
|
16759
16763
|
const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = __rest$1(_a, ["children", "className", "ariaLeftScroll", "ariaRightScroll"]);
|
|
16760
16764
|
const { scrollViewAtStart, scrollViewAtEnd } = this.state;
|
|
16761
16765
|
return (React__namespace.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16762
|
-
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 },
|
|
16763
16767
|
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
16764
|
-
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$
|
|
16765
|
-
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 },
|
|
16766
16770
|
React__namespace.createElement(AngleRightIcon$1, null)))))))));
|
|
16767
16771
|
}
|
|
16768
16772
|
}
|
|
@@ -16780,9 +16784,9 @@
|
|
|
16780
16784
|
console.warn("For accessibility reasons an aria-label should be specified on nav groups if a title isn't");
|
|
16781
16785
|
}
|
|
16782
16786
|
const labelledBy = title ? id : undefined;
|
|
16783
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
16784
|
-
title && (React__namespace.createElement("h2", { className: css(styles$
|
|
16785
|
-
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)));
|
|
16786
16790
|
};
|
|
16787
16791
|
NavGroup.displayName = 'NavGroup';
|
|
16788
16792
|
|
|
@@ -16871,17 +16875,17 @@
|
|
|
16871
16875
|
}
|
|
16872
16876
|
}
|
|
16873
16877
|
}, [flyoutVisible, flyoutTarget]);
|
|
16874
|
-
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$
|
|
16875
|
-
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) },
|
|
16876
16880
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": true }))));
|
|
16877
16881
|
const renderDefaultLink = (context) => {
|
|
16878
16882
|
const preventLinkDefault = preventDefault || !to;
|
|
16879
|
-
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),
|
|
16880
16884
|
children,
|
|
16881
16885
|
flyout && flyoutButton));
|
|
16882
16886
|
};
|
|
16883
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 && {
|
|
16884
|
-
className: css(styles$
|
|
16888
|
+
className: css(styles$u.navLink, isActive && styles$u.modifiers.current, child.props && child.props.className)
|
|
16885
16889
|
})), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16886
16890
|
child.props.children,
|
|
16887
16891
|
flyoutButton)) : (child.props.children) }));
|
|
@@ -16894,7 +16898,7 @@
|
|
|
16894
16898
|
};
|
|
16895
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 }));
|
|
16896
16900
|
const navItem = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16897
|
-
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),
|
|
16898
16902
|
React__namespace.createElement(NavContext.Consumer, null, context => React__namespace.isValidElement(children)
|
|
16899
16903
|
? renderClonedChild(context, children)
|
|
16900
16904
|
: renderDefaultLink(context))),
|
|
@@ -16948,15 +16952,15 @@
|
|
|
16948
16952
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16949
16953
|
onExpand } = _a, props = __rest$1(_a, ["title", "srText", "children", "className", "isActive", "ouiaId", "groupId", "id", "isExpanded", "buttonProps", "onExpand"]);
|
|
16950
16954
|
const { expandedState, ouiaStateId } = this.state;
|
|
16951
|
-
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16952
|
-
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),
|
|
16953
16957
|
title,
|
|
16954
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16955
|
-
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) },
|
|
16956
16960
|
React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))))),
|
|
16957
|
-
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 },
|
|
16958
16962
|
srText && (React__namespace.createElement("h2", { className: css(a11yStyles.screenReader), id: this.id }, srText)),
|
|
16959
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
16963
|
+
React__namespace.createElement("ul", { className: css(styles$u.navList) }, children))))));
|
|
16960
16964
|
}
|
|
16961
16965
|
}
|
|
16962
16966
|
NavExpandable.displayName = 'NavExpandable';
|
|
@@ -16971,7 +16975,7 @@
|
|
|
16971
16975
|
};
|
|
16972
16976
|
|
|
16973
16977
|
Promise.resolve().then(function () { return notificationBadge; });
|
|
16974
|
-
var styles$
|
|
16978
|
+
var styles$t = {
|
|
16975
16979
|
"iconAttentionBell": "pf-icon-attention-bell",
|
|
16976
16980
|
"iconBell": "pf-icon-bell",
|
|
16977
16981
|
"modifiers": {
|
|
@@ -17013,14 +17017,14 @@
|
|
|
17013
17017
|
notificationChild = attentionIcon;
|
|
17014
17018
|
}
|
|
17015
17019
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, className: className }, props),
|
|
17016
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17020
|
+
React__namespace.createElement("span", { className: css(styles$t.notificationBadge, styles$t.modifiers[variant]) },
|
|
17017
17021
|
notificationChild,
|
|
17018
|
-
count > 0 && React__namespace.createElement("span", { className: css(styles$
|
|
17022
|
+
count > 0 && React__namespace.createElement("span", { className: css(styles$t.notificationBadgeCount) }, count))));
|
|
17019
17023
|
};
|
|
17020
17024
|
NotificationBadge.displayName = 'NotificationBadge';
|
|
17021
17025
|
|
|
17022
17026
|
Promise.resolve().then(function () { return notificationDrawer; });
|
|
17023
|
-
var styles$
|
|
17027
|
+
var styles$s = {
|
|
17024
17028
|
"modifiers": {
|
|
17025
17029
|
"read": "pf-m-read",
|
|
17026
17030
|
"info": "pf-m-info",
|
|
@@ -17056,14 +17060,14 @@
|
|
|
17056
17060
|
|
|
17057
17061
|
const NotificationDrawerBase = (_a) => {
|
|
17058
17062
|
var { children, className = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "innerRef"]);
|
|
17059
|
-
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));
|
|
17060
17064
|
};
|
|
17061
17065
|
const NotificationDrawer = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(NotificationDrawerBase, Object.assign({ innerRef: ref }, props))));
|
|
17062
17066
|
NotificationDrawer.displayName = 'NotificationDrawer';
|
|
17063
17067
|
|
|
17064
17068
|
const NotificationDrawerBody = (_a) => {
|
|
17065
17069
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17066
|
-
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));
|
|
17067
17071
|
};
|
|
17068
17072
|
NotificationDrawerBody.displayName = 'NotificationDrawerBody';
|
|
17069
17073
|
|
|
@@ -17091,17 +17095,17 @@
|
|
|
17091
17095
|
}
|
|
17092
17096
|
titleRef.current.style.setProperty(maxLines$1.name, truncateTitle.toString());
|
|
17093
17097
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17094
|
-
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17095
|
-
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) }),
|
|
17096
17100
|
React__namespace.createElement(HeadingLevel, null,
|
|
17097
|
-
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 => {
|
|
17098
17102
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
17099
17103
|
e.preventDefault();
|
|
17100
17104
|
onExpand(e, !isExpanded);
|
|
17101
17105
|
}
|
|
17102
17106
|
} },
|
|
17103
17107
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title),
|
|
17104
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
17108
|
+
React__namespace.createElement("div", { className: css(styles$s.notificationDrawerGroupToggleCount) },
|
|
17105
17109
|
React__namespace.createElement(Badge, { isRead: isRead }, count)),
|
|
17106
17110
|
React__namespace.createElement("span", { className: "pf-c-notification-drawer__group-toggle-icon" },
|
|
17107
17111
|
React__namespace.createElement(AngleRightIcon$1, null)))),
|
|
@@ -17111,13 +17115,13 @@
|
|
|
17111
17115
|
|
|
17112
17116
|
const NotificationDrawerGroupList = (_a) => {
|
|
17113
17117
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17114
|
-
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));
|
|
17115
17119
|
};
|
|
17116
17120
|
NotificationDrawerGroupList.displayName = 'NotificationDrawerGroupList';
|
|
17117
17121
|
|
|
17118
17122
|
const TextContent = (_a) => {
|
|
17119
17123
|
var { children = null, className = '', isVisited = false } = _a, props = __rest$1(_a, ["children", "className", "isVisited"]);
|
|
17120
|
-
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));
|
|
17121
17125
|
};
|
|
17122
17126
|
TextContent.displayName = 'TextContent';
|
|
17123
17127
|
|
|
@@ -17139,7 +17143,7 @@
|
|
|
17139
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"]);
|
|
17140
17144
|
const Component = component;
|
|
17141
17145
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
17142
|
-
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));
|
|
17143
17147
|
};
|
|
17144
17148
|
Text.displayName = 'Text';
|
|
17145
17149
|
|
|
@@ -17171,10 +17175,10 @@
|
|
|
17171
17175
|
|
|
17172
17176
|
const NotificationDrawerHeader = (_a) => {
|
|
17173
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"]);
|
|
17174
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17175
|
-
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$
|
|
17176
|
-
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$
|
|
17177
|
-
(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) },
|
|
17178
17182
|
children,
|
|
17179
17183
|
onClose && (React__namespace.createElement("div", null,
|
|
17180
17184
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
@@ -17198,15 +17202,15 @@
|
|
|
17198
17202
|
event.target.click();
|
|
17199
17203
|
}
|
|
17200
17204
|
};
|
|
17201
|
-
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));
|
|
17202
17206
|
};
|
|
17203
17207
|
NotificationDrawerListItem.displayName = 'NotificationDrawerListItem';
|
|
17204
17208
|
|
|
17205
17209
|
const NotificationDrawerListItemBody = (_a) => {
|
|
17206
17210
|
var { children, className = '', timestamp } = _a, props = __rest$1(_a, ["children", "className", "timestamp"]);
|
|
17207
17211
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17208
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17209
|
-
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)));
|
|
17210
17214
|
};
|
|
17211
17215
|
NotificationDrawerListItemBody.displayName = 'NotificationDrawerListItemBody';
|
|
17212
17216
|
|
|
@@ -17239,19 +17243,19 @@
|
|
|
17239
17243
|
}
|
|
17240
17244
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17241
17245
|
const Icon = variantIcons$1[variant];
|
|
17242
|
-
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) }),
|
|
17243
17247
|
srTitle && React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, srTitle),
|
|
17244
17248
|
title));
|
|
17245
17249
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17246
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17247
|
-
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)),
|
|
17248
17252
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title)),
|
|
17249
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
17253
|
+
children && React__namespace.createElement("div", { className: css(styles$s.notificationDrawerListItemAction) }, children)));
|
|
17250
17254
|
};
|
|
17251
17255
|
NotificationDrawerListItemHeader.displayName = 'NotificationDrawerListItemHeader';
|
|
17252
17256
|
|
|
17253
17257
|
Promise.resolve().then(function () { return optionsMenu; });
|
|
17254
|
-
var styles$
|
|
17258
|
+
var styles$r = {
|
|
17255
17259
|
"divider": "pf-c-divider",
|
|
17256
17260
|
"modifiers": {
|
|
17257
17261
|
"plain": "pf-m-plain",
|
|
@@ -17293,13 +17297,13 @@
|
|
|
17293
17297
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17294
17298
|
id,
|
|
17295
17299
|
onSelect: () => undefined,
|
|
17296
|
-
toggleIndicatorClass: styles$
|
|
17297
|
-
toggleTextClass: styles$
|
|
17298
|
-
menuClass: styles$
|
|
17299
|
-
itemClass: styles$
|
|
17300
|
-
toggleClass: isText ? styles$
|
|
17301
|
-
baseClass: styles$
|
|
17302
|
-
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,
|
|
17303
17307
|
menuComponent: isGrouped ? 'div' : 'ul',
|
|
17304
17308
|
baseComponent: 'div',
|
|
17305
17309
|
ouiaId: useOUIAId(OptionsMenu.displayName, ouiaId),
|
|
@@ -17324,8 +17328,8 @@
|
|
|
17324
17328
|
|
|
17325
17329
|
const OptionsMenuItemGroup = (_a) => {
|
|
17326
17330
|
var { className = '', 'aria-label': ariaLabel = '', groupTitle = '', children = null, hasSeparator = false } = _a, props = __rest$1(_a, ["className", 'aria-label', "groupTitle", "children", "hasSeparator"]);
|
|
17327
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17328
|
-
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),
|
|
17329
17333
|
React__namespace.createElement("ul", { className: className, "aria-label": ariaLabel },
|
|
17330
17334
|
children,
|
|
17331
17335
|
hasSeparator && React__namespace.createElement(Divider, { component: "li", role: "separator" }))));
|
|
@@ -17336,7 +17340,7 @@
|
|
|
17336
17340
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest$1(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
17337
17341
|
return (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
17338
17342
|
children,
|
|
17339
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
17343
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$r.optionsMenuMenuItemIcon) },
|
|
17340
17344
|
React__namespace.createElement(CheckIcon$1, { "aria-hidden": isSelected })))));
|
|
17341
17345
|
};
|
|
17342
17346
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -17398,15 +17402,15 @@
|
|
|
17398
17402
|
buttonRef.current.focus();
|
|
17399
17403
|
}
|
|
17400
17404
|
};
|
|
17401
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17402
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17403
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17404
|
-
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))));
|
|
17405
17409
|
};
|
|
17406
17410
|
OptionsMenuToggleWithText.displayName = 'OptionsMenuToggleWithText';
|
|
17407
17411
|
|
|
17408
17412
|
Promise.resolve().then(function () { return overflowMenu; });
|
|
17409
|
-
var styles$
|
|
17413
|
+
var styles$q = {
|
|
17410
17414
|
"divider": "pf-c-divider",
|
|
17411
17415
|
"modifiers": {
|
|
17412
17416
|
"buttonGroup": "pf-m-button-group",
|
|
@@ -17483,7 +17487,7 @@
|
|
|
17483
17487
|
render() {
|
|
17484
17488
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17485
17489
|
const _a = this.props, { className, breakpoint, children } = _a, props = __rest$1(_a, ["className", "breakpoint", "children"]);
|
|
17486
|
-
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) }),
|
|
17487
17491
|
React__namespace.createElement(OverflowMenuContext.Provider, { value: { isBelowBreakpoint: this.state.isBelowBreakpoint } }, children)));
|
|
17488
17492
|
}
|
|
17489
17493
|
}
|
|
@@ -17492,23 +17496,23 @@
|
|
|
17492
17496
|
|
|
17493
17497
|
const OverflowMenuControl = (_a) => {
|
|
17494
17498
|
var { className, children, hasAdditionalOptions } = _a, props = __rest$1(_a, ["className", "children", "hasAdditionalOptions"]);
|
|
17495
|
-
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),
|
|
17496
17500
|
' ',
|
|
17497
17501
|
children,
|
|
17498
17502
|
' '))));
|
|
17499
17503
|
};
|
|
17500
17504
|
OverflowMenuControl.displayName = 'OverflowMenuControl';
|
|
17501
17505
|
|
|
17502
|
-
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))));
|
|
17503
17507
|
OverflowMenuContent.displayName = 'OverflowMenuContent';
|
|
17504
17508
|
|
|
17505
17509
|
const OverflowMenuGroup = (_a) => {
|
|
17506
17510
|
var { className, children, isPersistent = false, groupType } = _a, props = __rest$1(_a, ["className", "children", "isPersistent", "groupType"]);
|
|
17507
|
-
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))));
|
|
17508
17512
|
};
|
|
17509
17513
|
OverflowMenuGroup.displayName = 'OverflowMenuGroup';
|
|
17510
17514
|
|
|
17511
|
-
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) },
|
|
17512
17516
|
" ",
|
|
17513
17517
|
children,
|
|
17514
17518
|
" "))));
|
|
@@ -17522,8 +17526,8 @@
|
|
|
17522
17526
|
|
|
17523
17527
|
const PageBreadcrumb = (_a) => {
|
|
17524
17528
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17525
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
17526
|
-
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),
|
|
17527
17531
|
!isWidthLimited && children));
|
|
17528
17532
|
};
|
|
17529
17533
|
PageBreadcrumb.displayName = 'PageBreadcrumb';
|
|
@@ -17550,13 +17554,13 @@
|
|
|
17550
17554
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, onNavToggle: managedOnNavToggle, isNavOpen: managedIsNavOpen }) => {
|
|
17551
17555
|
const navToggle = isManagedSidebar ? managedOnNavToggle : onNavToggle;
|
|
17552
17556
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
17553
|
-
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$
|
|
17554
|
-
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$
|
|
17555
|
-
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) },
|
|
17556
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 },
|
|
17557
17561
|
React__namespace.createElement(BarsIcon$1, null)))),
|
|
17558
|
-
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$
|
|
17559
|
-
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),
|
|
17560
17564
|
headerTools));
|
|
17561
17565
|
}));
|
|
17562
17566
|
};
|
|
@@ -17579,51 +17583,51 @@
|
|
|
17579
17583
|
PageSectionTypes["wizard"] = "wizard";
|
|
17580
17584
|
})(exports.PageSectionTypes || (exports.PageSectionTypes = {}));
|
|
17581
17585
|
const variantType = {
|
|
17582
|
-
[exports.PageSectionTypes.default]: styles$
|
|
17583
|
-
[exports.PageSectionTypes.nav]: styles$
|
|
17584
|
-
[exports.PageSectionTypes.subNav]: styles$
|
|
17585
|
-
[exports.PageSectionTypes.breadcrumb]: styles$
|
|
17586
|
-
[exports.PageSectionTypes.tabs]: styles$
|
|
17587
|
-
[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
|
|
17588
17592
|
};
|
|
17589
17593
|
const variantStyle$3 = {
|
|
17590
17594
|
[exports.PageSectionVariants.default]: '',
|
|
17591
|
-
[exports.PageSectionVariants.light]: styles$
|
|
17592
|
-
[exports.PageSectionVariants.dark]: styles$
|
|
17593
|
-
[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
|
|
17594
17598
|
};
|
|
17595
17599
|
const PageSection = (_a) => {
|
|
17596
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"]);
|
|
17597
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$
|
|
17598
|
-
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),
|
|
17599
17603
|
!isWidthLimited && children));
|
|
17600
17604
|
};
|
|
17601
17605
|
PageSection.displayName = 'PageSection';
|
|
17602
17606
|
|
|
17603
17607
|
const PageHeaderTools = (_a) => {
|
|
17604
17608
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17605
|
-
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));
|
|
17606
17610
|
};
|
|
17607
17611
|
PageHeaderTools.displayName = 'PageHeaderTools';
|
|
17608
17612
|
|
|
17609
17613
|
const PageHeaderToolsGroup = (_a) => {
|
|
17610
17614
|
var { children, className, visibility } = _a, props = __rest$1(_a, ["children", "className", "visibility"]);
|
|
17611
17615
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17612
|
-
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));
|
|
17613
17617
|
};
|
|
17614
17618
|
PageHeaderToolsGroup.displayName = 'PageHeaderToolsGroup';
|
|
17615
17619
|
|
|
17616
17620
|
const PageHeaderToolsItem = (_a) => {
|
|
17617
17621
|
var { children, id, className, visibility, isSelected } = _a, props = __rest$1(_a, ["children", "id", "className", "visibility", "isSelected"]);
|
|
17618
17622
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17619
|
-
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));
|
|
17620
17624
|
};
|
|
17621
17625
|
PageHeaderToolsItem.displayName = 'PageHeaderToolsItem';
|
|
17622
17626
|
|
|
17623
17627
|
const PageNavigation = (_a) => {
|
|
17624
17628
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
17625
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17626
|
-
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),
|
|
17627
17631
|
!isWidthLimited && children));
|
|
17628
17632
|
};
|
|
17629
17633
|
PageNavigation.displayName = 'PageNavigation';
|
|
@@ -17652,7 +17656,7 @@
|
|
|
17652
17656
|
ToggleTemplate.displayName = 'ToggleTemplate';
|
|
17653
17657
|
|
|
17654
17658
|
Promise.resolve().then(function () { return pagination; });
|
|
17655
|
-
var styles$
|
|
17659
|
+
var styles$p = {
|
|
17656
17660
|
"button": "pf-c-button",
|
|
17657
17661
|
"formControl": "pf-c-form-control",
|
|
17658
17662
|
"modifiers": {
|
|
@@ -17730,15 +17734,15 @@
|
|
|
17730
17734
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17731
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"]);
|
|
17732
17736
|
const { userInputPage } = this.state;
|
|
17733
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
17734
|
-
!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) },
|
|
17735
17739
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "aria-label": toFirstPage, "data-action": "first", onClick: event => {
|
|
17736
17740
|
onFirstClick(event, 1);
|
|
17737
17741
|
this.handleNewPage(event, 1);
|
|
17738
17742
|
this.setState({ userInputPage: 1 });
|
|
17739
17743
|
} },
|
|
17740
17744
|
React__namespace.createElement(AngleDoubleLeftIcon$1, null)))),
|
|
17741
|
-
React__namespace.createElement("div", { className: styles$
|
|
17745
|
+
React__namespace.createElement("div", { className: styles$p.paginationNavControl },
|
|
17742
17746
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
|
|
17743
17747
|
const newPage = page - 1 >= 1 ? page - 1 : 1;
|
|
17744
17748
|
onPreviousClick(event, newPage);
|
|
@@ -17746,13 +17750,13 @@
|
|
|
17746
17750
|
this.setState({ userInputPage: newPage });
|
|
17747
17751
|
}, "aria-label": toPreviousPage },
|
|
17748
17752
|
React__namespace.createElement(AngleLeftIcon$1, null))),
|
|
17749
|
-
!isCompact && (React__namespace.createElement("div", { className: styles$
|
|
17750
|
-
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) }),
|
|
17751
17755
|
(itemCount || itemCount === 0) && (React__namespace.createElement("span", { "aria-hidden": "true" },
|
|
17752
17756
|
ofWord,
|
|
17753
17757
|
" ",
|
|
17754
17758
|
pagesTitle ? pluralize(lastPage, pagesTitle, pagesTitlePlural) : lastPage)))),
|
|
17755
|
-
React__namespace.createElement("div", { className: styles$
|
|
17759
|
+
React__namespace.createElement("div", { className: styles$p.paginationNavControl },
|
|
17756
17760
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toNextPage, "data-action": "next", onClick: event => {
|
|
17757
17761
|
const newPage = page + 1 <= lastPage ? page + 1 : lastPage;
|
|
17758
17762
|
onNextClick(event, newPage);
|
|
@@ -17760,7 +17764,7 @@
|
|
|
17760
17764
|
this.setState({ userInputPage: newPage });
|
|
17761
17765
|
} },
|
|
17762
17766
|
React__namespace.createElement(AngleRightIcon$1, null))),
|
|
17763
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17767
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$p.paginationNavControl, styles$p.modifiers.last) },
|
|
17764
17768
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
|
|
17765
17769
|
onLastClick(event, lastPage);
|
|
17766
17770
|
this.handleNewPage(event, lastPage);
|
|
@@ -17799,11 +17803,11 @@
|
|
|
17799
17803
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17800
17804
|
onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null, perPageComponent = 'div' }) => {
|
|
17801
17805
|
const isDiv = perPageComponent === 'div';
|
|
17802
|
-
const toggleClasses = css(styles$
|
|
17806
|
+
const toggleClasses = css(styles$r.optionsMenuToggle, isDisabled && styles$r.modifiers.disabled, styles$r.modifiers.plain, styles$r.modifiers.text);
|
|
17803
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 }));
|
|
17804
17808
|
const dropdown = showToggle && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17805
|
-
isDiv && React__namespace.createElement("span", { className: css(styles$
|
|
17806
|
-
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)));
|
|
17807
17811
|
return isDiv ? React__namespace.createElement("div", { className: toggleClasses }, dropdown) : dropdown;
|
|
17808
17812
|
};
|
|
17809
17813
|
OptionsToggle.displayName = 'OptionsToggle';
|
|
@@ -17840,7 +17844,7 @@
|
|
|
17840
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) },
|
|
17841
17845
|
title,
|
|
17842
17846
|
` ${perPageSuffix}`,
|
|
17843
|
-
perPage === value && (React__namespace.createElement("div", { className: css(styles$
|
|
17847
|
+
perPage === value && (React__namespace.createElement("div", { className: css(styles$r.optionsMenuMenuItemIcon) },
|
|
17844
17848
|
React__namespace.createElement(CheckIcon$1, null))))));
|
|
17845
17849
|
};
|
|
17846
17850
|
this.state = {
|
|
@@ -17853,13 +17857,13 @@
|
|
|
17853
17857
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17854
17858
|
id: widgetId,
|
|
17855
17859
|
onSelect: this.onSelect,
|
|
17856
|
-
toggleIndicatorClass: perPageComponent === 'div' ? styles$
|
|
17857
|
-
toggleTextClass: styles$
|
|
17858
|
-
menuClass: styles$
|
|
17859
|
-
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,
|
|
17860
17864
|
toggleClass: ' ',
|
|
17861
|
-
baseClass: styles$
|
|
17862
|
-
disabledClass: styles$
|
|
17865
|
+
baseClass: styles$r.optionsMenu,
|
|
17866
|
+
disabledClass: styles$r.modifiers.disabled,
|
|
17863
17867
|
menuComponent: 'ul',
|
|
17864
17868
|
baseComponent: 'div',
|
|
17865
17869
|
ouiaComponentType: PaginationOptionsMenu.displayName
|
|
@@ -17980,8 +17984,8 @@
|
|
|
17980
17984
|
}
|
|
17981
17985
|
}
|
|
17982
17986
|
const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };
|
|
17983
|
-
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$
|
|
17984
|
-
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) },
|
|
17985
17989
|
toggleTemplate && typeof toggleTemplate === 'string' && fillTemplate(toggleTemplate, toggleTemplateProps),
|
|
17986
17990
|
toggleTemplate &&
|
|
17987
17991
|
typeof toggleTemplate !== 'string' &&
|
|
@@ -18036,7 +18040,7 @@
|
|
|
18036
18040
|
};
|
|
18037
18041
|
|
|
18038
18042
|
Promise.resolve().then(function () { return progressStepper; });
|
|
18039
|
-
var styles$
|
|
18043
|
+
var styles$o = {
|
|
18040
18044
|
"faExclamationTriangle": "fa-exclamation-triangle",
|
|
18041
18045
|
"modifiers": {
|
|
18042
18046
|
"center": "pf-m-center",
|
|
@@ -18073,7 +18077,7 @@
|
|
|
18073
18077
|
|
|
18074
18078
|
const ProgressStepper = (_a) => {
|
|
18075
18079
|
var { children, className, isCenterAligned, isVertical, isCompact } = _a, props = __rest$1(_a, ["children", "className", "isCenterAligned", "isVertical", "isCompact"]);
|
|
18076
|
-
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));
|
|
18077
18081
|
};
|
|
18078
18082
|
ProgressStepper.displayName = 'ProgressStepper';
|
|
18079
18083
|
|
|
@@ -18100,11 +18104,11 @@
|
|
|
18100
18104
|
};
|
|
18101
18105
|
const variantStyle$2 = {
|
|
18102
18106
|
default: '',
|
|
18103
|
-
info: styles$
|
|
18104
|
-
success: styles$
|
|
18105
|
-
pending: styles$
|
|
18106
|
-
warning: styles$
|
|
18107
|
-
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
|
|
18108
18112
|
};
|
|
18109
18113
|
const ProgressStep = (_a) => {
|
|
18110
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"]);
|
|
@@ -18115,19 +18119,19 @@
|
|
|
18115
18119
|
/* eslint-disable no-console */
|
|
18116
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.');
|
|
18117
18121
|
}
|
|
18118
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
18119
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18120
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18121
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18122
|
-
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}` })),
|
|
18123
18127
|
children,
|
|
18124
18128
|
popoverRender && popoverRender(stepRef)),
|
|
18125
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
18129
|
+
description && React__namespace.createElement("div", { className: css(styles$o.progressStepperStepDescription) }, description))));
|
|
18126
18130
|
};
|
|
18127
18131
|
ProgressStep.displayName = 'ProgressStep';
|
|
18128
18132
|
|
|
18129
18133
|
Promise.resolve().then(function () { return radio; });
|
|
18130
|
-
var styles$
|
|
18134
|
+
var styles$n = {
|
|
18131
18135
|
"modifiers": {
|
|
18132
18136
|
"standalone": "pf-m-standalone",
|
|
18133
18137
|
"disabled": "pf-m-disabled"
|
|
@@ -18161,16 +18165,16 @@
|
|
|
18161
18165
|
// eslint-disable-next-line no-console
|
|
18162
18166
|
console.error('Radio:', 'id is required to make input accessible');
|
|
18163
18167
|
}
|
|
18164
|
-
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))));
|
|
18165
18169
|
let labelRendered = null;
|
|
18166
18170
|
if (label && isLabelWrapped) {
|
|
18167
|
-
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);
|
|
18168
18172
|
}
|
|
18169
18173
|
else if (label) {
|
|
18170
|
-
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));
|
|
18171
18175
|
}
|
|
18172
|
-
const descRender = description ? React__namespace.createElement("span", { className: css(styles$
|
|
18173
|
-
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;
|
|
18174
18178
|
const childrenRendered = isLabelBeforeButton ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
18175
18179
|
labelRendered,
|
|
18176
18180
|
inputRendered,
|
|
@@ -18180,7 +18184,7 @@
|
|
|
18180
18184
|
labelRendered,
|
|
18181
18185
|
descRender,
|
|
18182
18186
|
bodyRender));
|
|
18183
|
-
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));
|
|
18184
18188
|
}
|
|
18185
18189
|
}
|
|
18186
18190
|
Radio.displayName = 'Radio';
|
|
@@ -18191,29 +18195,6 @@
|
|
|
18191
18195
|
onChange: () => { }
|
|
18192
18196
|
};
|
|
18193
18197
|
|
|
18194
|
-
Promise.resolve().then(function () { return searchInput; });
|
|
18195
|
-
var styles$n = {
|
|
18196
|
-
"button": "pf-c-button",
|
|
18197
|
-
"modifiers": {
|
|
18198
|
-
"hint": "pf-m-hint",
|
|
18199
|
-
"top": "pf-m-top"
|
|
18200
|
-
},
|
|
18201
|
-
"searchInput": "pf-c-search-input",
|
|
18202
|
-
"searchInputBar": "pf-c-search-input__bar",
|
|
18203
|
-
"searchInputCount": "pf-c-search-input__count",
|
|
18204
|
-
"searchInputIcon": "pf-c-search-input__icon",
|
|
18205
|
-
"searchInputMenu": "pf-c-search-input__menu",
|
|
18206
|
-
"searchInputMenuBody": "pf-c-search-input__menu-body",
|
|
18207
|
-
"searchInputMenuItem": "pf-c-search-input__menu-item",
|
|
18208
|
-
"searchInputMenuItemText": "pf-c-search-input__menu-item-text",
|
|
18209
|
-
"searchInputMenuList": "pf-c-search-input__menu-list",
|
|
18210
|
-
"searchInputNav": "pf-c-search-input__nav",
|
|
18211
|
-
"searchInputText": "pf-c-search-input__text",
|
|
18212
|
-
"searchInputTextInput": "pf-c-search-input__text-input",
|
|
18213
|
-
"searchInputUtilities": "pf-c-search-input__utilities",
|
|
18214
|
-
"themeDark": "pf-theme-dark"
|
|
18215
|
-
};
|
|
18216
|
-
|
|
18217
18198
|
const ArrowRightIconConfig = {
|
|
18218
18199
|
name: 'ArrowRightIcon',
|
|
18219
18200
|
height: 512,
|
|
@@ -18434,7 +18415,7 @@
|
|
|
18434
18415
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
18435
18416
|
|
|
18436
18417
|
const SearchInputBase = (_a) => {
|
|
18437
|
-
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"]);
|
|
18438
18419
|
const [isSearchMenuOpen, setIsSearchMenuOpen] = React__namespace.useState(false);
|
|
18439
18420
|
const [searchValue, setSearchValue] = React__namespace.useState(value);
|
|
18440
18421
|
const searchInputRef = React__namespace.useRef(null);
|
|
@@ -18526,9 +18507,14 @@
|
|
|
18526
18507
|
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
18527
18508
|
if (!!onSearch || attributes.length > 0 || !!onToggleAdvancedSearch) {
|
|
18528
18509
|
if (attributes.length > 0) {
|
|
18529
|
-
|
|
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),
|
|
18530
18515
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
18531
|
-
|
|
18516
|
+
AdvancedSearch));
|
|
18517
|
+
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
18532
18518
|
}
|
|
18533
18519
|
return buildSearchTextInputGroupWithExtraButtons(Object.assign({}, searchInputProps));
|
|
18534
18520
|
}
|
|
@@ -18540,20 +18526,20 @@
|
|
|
18540
18526
|
|
|
18541
18527
|
const Sidebar = (_a) => {
|
|
18542
18528
|
var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground"]);
|
|
18543
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18544
|
-
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)));
|
|
18545
18531
|
};
|
|
18546
18532
|
Sidebar.displayName = 'Sidebar';
|
|
18547
18533
|
|
|
18548
18534
|
const SidebarContent = (_a) => {
|
|
18549
18535
|
var { className, children, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "hasNoBackground"]);
|
|
18550
|
-
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));
|
|
18551
18537
|
};
|
|
18552
18538
|
SidebarContent.displayName = 'SidebarContent';
|
|
18553
18539
|
|
|
18554
18540
|
const SidebarPanel = (_a) => {
|
|
18555
18541
|
var { className, children, variant = 'default', hasNoBackground, width } = _a, props = __rest$1(_a, ["className", "children", "variant", "hasNoBackground", "width"]);
|
|
18556
|
-
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));
|
|
18557
18543
|
};
|
|
18558
18544
|
SidebarPanel.displayName = 'SidebarPanel';
|
|
18559
18545
|
|
|
@@ -20578,6 +20564,7 @@
|
|
|
20578
20564
|
"noBackground": "pf-m-no-background",
|
|
20579
20565
|
"current": "pf-m-current",
|
|
20580
20566
|
"read": "pf-m-read",
|
|
20567
|
+
"selectable": "pf-m-selectable",
|
|
20581
20568
|
"truncate": "pf-m-truncate"
|
|
20582
20569
|
},
|
|
20583
20570
|
"themeDark": "pf-theme-dark",
|
|
@@ -21587,7 +21574,7 @@
|
|
|
21587
21574
|
const Bullseye = (_a) => {
|
|
21588
21575
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
21589
21576
|
const Component = component;
|
|
21590
|
-
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));
|
|
21591
21578
|
};
|
|
21592
21579
|
Bullseye.displayName = 'Bullseye';
|
|
21593
21580
|
|
|
@@ -22720,10 +22707,6 @@
|
|
|
22720
22707
|
__proto__: null
|
|
22721
22708
|
});
|
|
22722
22709
|
|
|
22723
|
-
var searchInput = /*#__PURE__*/Object.freeze({
|
|
22724
|
-
__proto__: null
|
|
22725
|
-
});
|
|
22726
|
-
|
|
22727
22710
|
var panel = /*#__PURE__*/Object.freeze({
|
|
22728
22711
|
__proto__: null
|
|
22729
22712
|
});
|