@patternfly/react-core 4.233.0 → 4.234.1
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 +30 -0
- package/dist/esm/components/MenuToggle/MenuToggle.js +1 -1
- package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.d.ts +1 -0
- package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +14 -2
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/components/Timestamp/Timestamp.d.ts +72 -0
- package/dist/esm/components/Timestamp/Timestamp.d.ts.map +1 -0
- package/dist/esm/components/Timestamp/Timestamp.js +33 -0
- package/dist/esm/components/Timestamp/Timestamp.js.map +1 -0
- package/dist/esm/components/Timestamp/index.d.ts +2 -0
- package/dist/esm/components/Timestamp/index.d.ts.map +1 -0
- package/dist/esm/components/Timestamp/index.js +2 -0
- package/dist/esm/components/Timestamp/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js +1 -1
- package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.d.ts +1 -0
- package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +14 -2
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/components/Timestamp/Timestamp.d.ts +72 -0
- package/dist/js/components/Timestamp/Timestamp.d.ts.map +1 -0
- package/dist/js/components/Timestamp/Timestamp.js +37 -0
- package/dist/js/components/Timestamp/Timestamp.js.map +1 -0
- package/dist/js/components/Timestamp/index.d.ts +2 -0
- package/dist/js/components/Timestamp/index.d.ts.map +1 -0
- package/dist/js/components/Timestamp/index.js +5 -0
- package/dist/js/components/Timestamp/index.js.map +1 -0
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +1 -0
- package/dist/js/components/index.js.map +1 -1
- package/dist/styles/base-no-reset.css +2 -2
- package/dist/styles/base.css +2 -2
- package/dist/umd/react-core.css +115 -69
- package/dist/umd/react-core.js +812 -759
- package/dist/umd/react-core.min.css +792 -746
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +6 -6
- package/src/components/Button/examples/Button.md +55 -24
- package/src/components/ContextSelector/examples/ContextSelectorBasic.tsx +4 -4
- package/src/components/ContextSelector/examples/ContextSelectorPlainText.tsx +3 -3
- package/src/components/ContextSelector/examples/ContextSelectorWithFooter.tsx +4 -4
- package/src/components/DualListSelector/examples/DualListSelectorComposable.tsx +8 -2
- package/src/components/DualListSelector/examples/DualListSelectorComposableDragDrop.tsx +3 -9
- package/src/components/DualListSelector/examples/DualListSelectorComposableTree.tsx +3 -3
- package/src/components/DualListSelector/examples/DualListSelectorTreeExample.tsx +8 -5
- package/src/components/MenuToggle/MenuToggle.tsx +2 -2
- package/src/components/TimePicker/TimePicker.tsx +19 -11
- package/src/components/Timestamp/Timestamp.tsx +134 -0
- package/src/components/Timestamp/__tests__/Timestamp.test.tsx +177 -0
- package/src/components/Timestamp/__tests__/__snapshots__/Timestamp.test.tsx.snap +17 -0
- package/src/components/Timestamp/examples/Timestamp.md +57 -0
- package/src/components/Timestamp/examples/TimestampBasicFormats.tsx +26 -0
- package/src/components/Timestamp/examples/TimestampCustomContent.tsx +20 -0
- package/src/components/Timestamp/examples/TimestampCustomFormat.tsx +6 -0
- package/src/components/Timestamp/examples/TimestampCustomTooltip.tsx +19 -0
- package/src/components/Timestamp/examples/TimestampDefault.tsx +4 -0
- package/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx +18 -0
- package/src/components/Timestamp/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/demos/Button.md +5 -1
- package/src/demos/ComposableMenu/examples/ComposableActionsMenu.tsx +12 -8
- package/src/demos/ComposableMenu/examples/ComposableApplicationLauncher.tsx +12 -11
- package/src/demos/ComposableMenu/examples/ComposableContextSelector.tsx +10 -12
- package/src/demos/ComposableMenu/examples/ComposableDrilldownMenu.tsx +7 -7
- package/src/demos/ComposableMenu/examples/ComposableFlyout.tsx +8 -8
- package/src/demos/ComposableMenu/examples/ComposableSimpleCheckboxSelect.tsx +11 -8
- package/src/demos/ComposableMenu/examples/ComposableSimpleDropdown.tsx +7 -7
- package/src/demos/ComposableMenu/examples/ComposableSimpleSelect.tsx +17 -8
- package/src/demos/ComposableMenu/examples/ComposableTreeViewMenu.tsx +11 -10
- package/src/demos/ComposableMenu/examples/ComposableTypeaheadSelect.tsx +2 -2
package/dist/umd/react-core.js
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
Promise.resolve().then(function () { return backdrop; });
|
|
99
|
-
var styles$
|
|
99
|
+
var styles$1i = {
|
|
100
100
|
"backdrop": "pf-c-backdrop",
|
|
101
101
|
"backdropOpen": "pf-c-backdrop__open"
|
|
102
102
|
};
|
|
@@ -4191,12 +4191,12 @@
|
|
|
4191
4191
|
}
|
|
4192
4192
|
|
|
4193
4193
|
Promise.resolve().then(function () { return bullseye; });
|
|
4194
|
-
var styles$
|
|
4194
|
+
var styles$1h = {
|
|
4195
4195
|
"bullseye": "pf-l-bullseye"
|
|
4196
4196
|
};
|
|
4197
4197
|
|
|
4198
4198
|
Promise.resolve().then(function () { return aboutModalBox; });
|
|
4199
|
-
var styles$
|
|
4199
|
+
var styles$1g = {
|
|
4200
4200
|
"aboutModalBox": "pf-c-about-modal-box",
|
|
4201
4201
|
"aboutModalBoxBrand": "pf-c-about-modal-box__brand",
|
|
4202
4202
|
"aboutModalBoxBrandImage": "pf-c-about-modal-box__brand-image",
|
|
@@ -4214,7 +4214,7 @@
|
|
|
4214
4214
|
};
|
|
4215
4215
|
|
|
4216
4216
|
Promise.resolve().then(function () { return content; });
|
|
4217
|
-
var styles$
|
|
4217
|
+
var styles$1f = {
|
|
4218
4218
|
"content": "pf-c-content",
|
|
4219
4219
|
"modifiers": {
|
|
4220
4220
|
"visited": "pf-m-visited",
|
|
@@ -4224,14 +4224,14 @@
|
|
|
4224
4224
|
|
|
4225
4225
|
const AboutModalBoxContent = (_a) => {
|
|
4226
4226
|
var { children, className = '', trademark, id, noAboutModalBoxContentContainer = false } = _a, props = __rest$1(_a, ["children", "className", "trademark", "id", "noAboutModalBoxContentContainer"]);
|
|
4227
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4228
|
-
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$
|
|
4229
|
-
React__namespace.createElement("p", { className: css(styles$
|
|
4227
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxContent, className), id: id }, props),
|
|
4228
|
+
React__namespace.createElement("div", { className: css('pf-c-about-modal-box__body') }, noAboutModalBoxContentContainer ? children : React__namespace.createElement("div", { className: css(styles$1f.content) }, children)),
|
|
4229
|
+
React__namespace.createElement("p", { className: css(styles$1g.aboutModalBoxStrapline) }, trademark)));
|
|
4230
4230
|
};
|
|
4231
4231
|
AboutModalBoxContent.displayName = 'AboutModalBoxContent';
|
|
4232
4232
|
|
|
4233
4233
|
Promise.resolve().then(function () { return title; });
|
|
4234
|
-
var styles$
|
|
4234
|
+
var styles$1e = {
|
|
4235
4235
|
"modifiers": {
|
|
4236
4236
|
"4xl": "pf-m-4xl",
|
|
4237
4237
|
"3xl": "pf-m-3xl",
|
|
@@ -4265,13 +4265,13 @@
|
|
|
4265
4265
|
const Title = (_a) => {
|
|
4266
4266
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4267
4267
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4268
|
-
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$
|
|
4268
|
+
return (React__namespace.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$1e.title, size && styles$1e.modifiers[size], className) }), children));
|
|
4269
4269
|
};
|
|
4270
4270
|
Title.displayName = 'Title';
|
|
4271
4271
|
|
|
4272
4272
|
const AboutModalBoxHeader = (_a) => {
|
|
4273
4273
|
var { className = '', productName = '', id } = _a, props = __rest$1(_a, ["className", "productName", "id"]);
|
|
4274
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4274
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxHeader, className) }, props),
|
|
4275
4275
|
React__namespace.createElement(Title, { headingLevel: "h1", size: "4xl", id: id }, productName)));
|
|
4276
4276
|
};
|
|
4277
4277
|
AboutModalBoxHeader.displayName = 'AboutModalBoxHeader';
|
|
@@ -4288,14 +4288,14 @@
|
|
|
4288
4288
|
/* eslint-disable camelcase */
|
|
4289
4289
|
backgroundImageSrc !== ''
|
|
4290
4290
|
? { [c_about_modal_box__hero_sm_BackgroundImage.name]: `url(${backgroundImageSrc})` }
|
|
4291
|
-
: {}, className: css(styles$
|
|
4291
|
+
: {}, className: css(styles$1g.aboutModalBoxHero, className) }, props)));
|
|
4292
4292
|
};
|
|
4293
4293
|
AboutModalBoxHero.displayName = 'AboutModalBoxHero';
|
|
4294
4294
|
|
|
4295
4295
|
const AboutModalBoxBrand = (_a) => {
|
|
4296
4296
|
var { className = '', src = '', alt } = _a, props = __rest$1(_a, ["className", "src", "alt"]);
|
|
4297
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4298
|
-
React__namespace.createElement("img", { className: css(styles$
|
|
4297
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxBrand, className) }, props),
|
|
4298
|
+
React__namespace.createElement("img", { className: css(styles$1g.aboutModalBoxBrandImage), src: src, alt: alt })));
|
|
4299
4299
|
};
|
|
4300
4300
|
AboutModalBoxBrand.displayName = 'AboutModalBoxBrand';
|
|
4301
4301
|
|
|
@@ -4335,7 +4335,7 @@
|
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
4337
|
Promise.resolve().then(function () { return spinner; });
|
|
4338
|
-
var styles$
|
|
4338
|
+
var styles$1d = {
|
|
4339
4339
|
"modifiers": {
|
|
4340
4340
|
"sm": "pf-m-sm",
|
|
4341
4341
|
"md": "pf-m-md",
|
|
@@ -4361,10 +4361,10 @@
|
|
|
4361
4361
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4362
4362
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
|
|
4363
4363
|
const Component = isSVG ? 'svg' : 'span';
|
|
4364
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
4365
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4366
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4367
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4364
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1d.spinner, styles$1d.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: styles$1d.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4365
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerClipper) }),
|
|
4366
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerLeadBall) }),
|
|
4367
|
+
React__namespace.createElement("span", { className: css(styles$1d.spinnerTailBall) })))));
|
|
4368
4368
|
};
|
|
4369
4369
|
Spinner.displayName = 'Spinner';
|
|
4370
4370
|
|
|
@@ -4509,7 +4509,7 @@
|
|
|
4509
4509
|
|
|
4510
4510
|
const AboutModalBoxCloseButton = (_a) => {
|
|
4511
4511
|
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close Dialog' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
4512
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4512
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1g.aboutModalBoxClose, className) }, props),
|
|
4513
4513
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
4514
4514
|
React__namespace.createElement(TimesIcon, null))));
|
|
4515
4515
|
};
|
|
@@ -4517,13 +4517,13 @@
|
|
|
4517
4517
|
|
|
4518
4518
|
const AboutModalBox = (_a) => {
|
|
4519
4519
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4520
|
-
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$
|
|
4520
|
+
return (React__namespace.createElement("div", Object.assign({ role: "dialog", "aria-modal": "true", className: css(styles$1g.aboutModalBox, className) }, props), children));
|
|
4521
4521
|
};
|
|
4522
4522
|
AboutModalBox.displayName = 'AboutModalBox';
|
|
4523
4523
|
|
|
4524
4524
|
const Backdrop = (_a) => {
|
|
4525
4525
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4526
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4526
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1i.backdrop, className) }), children));
|
|
4527
4527
|
};
|
|
4528
4528
|
Backdrop.displayName = 'Backdrop';
|
|
4529
4529
|
|
|
@@ -4533,7 +4533,7 @@
|
|
|
4533
4533
|
return null;
|
|
4534
4534
|
}
|
|
4535
4535
|
return (React__namespace.createElement(Backdrop, null,
|
|
4536
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
4536
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1h.bullseye) },
|
|
4537
4537
|
React__namespace.createElement(AboutModalBox, { className: className, "aria-labelledby": aboutModalBoxHeaderId, "aria-describedby": aboutModalBoxContentId },
|
|
4538
4538
|
React__namespace.createElement(AboutModalBoxBrand, { src: brandImageSrc, alt: brandImageAlt }),
|
|
4539
4539
|
React__namespace.createElement(AboutModalBoxCloseButton, { "aria-label": closeButtonAriaLabel, onClose: onClose }),
|
|
@@ -4585,20 +4585,20 @@
|
|
|
4585
4585
|
target.appendChild(container);
|
|
4586
4586
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
4587
4587
|
if (this.props.isOpen) {
|
|
4588
|
-
target.classList.add(css(styles$
|
|
4588
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
4589
4589
|
}
|
|
4590
4590
|
else {
|
|
4591
|
-
target.classList.remove(css(styles$
|
|
4591
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4592
4592
|
}
|
|
4593
4593
|
}
|
|
4594
4594
|
componentDidUpdate() {
|
|
4595
4595
|
const target = this.getElement(this.props.appendTo);
|
|
4596
4596
|
if (this.props.isOpen) {
|
|
4597
|
-
target.classList.add(css(styles$
|
|
4597
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
4598
4598
|
this.toggleSiblingsFromScreenReaders(true);
|
|
4599
4599
|
}
|
|
4600
4600
|
else {
|
|
4601
|
-
target.classList.remove(css(styles$
|
|
4601
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4602
4602
|
this.toggleSiblingsFromScreenReaders(false);
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
@@ -4608,7 +4608,7 @@
|
|
|
4608
4608
|
target.removeChild(this.state.container);
|
|
4609
4609
|
}
|
|
4610
4610
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
4611
|
-
target.classList.remove(css(styles$
|
|
4611
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
4612
4612
|
}
|
|
4613
4613
|
render() {
|
|
4614
4614
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4634,7 +4634,7 @@
|
|
|
4634
4634
|
};
|
|
4635
4635
|
|
|
4636
4636
|
Promise.resolve().then(function () { return accordion; });
|
|
4637
|
-
var styles$
|
|
4637
|
+
var styles$1c = {
|
|
4638
4638
|
"accordion": "pf-c-accordion",
|
|
4639
4639
|
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
4640
4640
|
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
@@ -4655,7 +4655,7 @@
|
|
|
4655
4655
|
const Accordion = (_a) => {
|
|
4656
4656
|
var { children = null, className = '', 'aria-label': ariaLabel = '', headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
4657
4657
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
4658
|
-
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$
|
|
4658
|
+
return (React__namespace.createElement(AccordionList, Object.assign({ className: css(styles$1c.accordion, isBordered && styles$1c.modifiers.bordered, displaySize === 'large' && styles$1c.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
4659
4659
|
React__namespace.createElement(AccordionContext.Provider, { value: {
|
|
4660
4660
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
4661
4661
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -4663,14 +4663,14 @@
|
|
|
4663
4663
|
};
|
|
4664
4664
|
Accordion.displayName = 'Accordion';
|
|
4665
4665
|
|
|
4666
|
-
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$
|
|
4666
|
+
const AccordionExpandedContentBody = ({ children = null }) => React__namespace.createElement("div", { className: css(styles$1c.accordionExpandedContentBody) }, children);
|
|
4667
4667
|
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
4668
4668
|
|
|
4669
4669
|
const AccordionContent = (_a) => {
|
|
4670
4670
|
var { className = '', children = null, id = '', isHidden = false, isFixed = false, isCustomContent = false, 'aria-label': ariaLabel = '', component } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", "isFixed", "isCustomContent", 'aria-label', "component"]);
|
|
4671
4671
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
4672
4672
|
const Container = component || ContentContainer;
|
|
4673
|
-
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$
|
|
4673
|
+
return (React__namespace.createElement(Container, Object.assign({ id: id, className: css(styles$1c.accordionExpandedContent, isFixed && styles$1c.modifiers.fixed, !isHidden && styles$1c.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React__namespace.createElement(AccordionExpandedContentBody, null, children)));
|
|
4674
4674
|
}));
|
|
4675
4675
|
};
|
|
4676
4676
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -4694,16 +4694,16 @@
|
|
|
4694
4694
|
return (React__namespace.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
4695
4695
|
const Container = component || ToggleContainer;
|
|
4696
4696
|
return (React__namespace.createElement(Container, null,
|
|
4697
|
-
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
4698
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4699
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
4697
|
+
React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$1c.accordionToggle, isExpanded && styles$1c.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4698
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleText) }, children),
|
|
4699
|
+
React__namespace.createElement("span", { className: css(styles$1c.accordionToggleIcon) },
|
|
4700
4700
|
React__namespace.createElement(AngleRightIcon, null)))));
|
|
4701
4701
|
}));
|
|
4702
4702
|
};
|
|
4703
4703
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
4704
4704
|
|
|
4705
4705
|
Promise.resolve().then(function () { return actionList; });
|
|
4706
|
-
var styles$
|
|
4706
|
+
var styles$1b = {
|
|
4707
4707
|
"actionList": "pf-c-action-list",
|
|
4708
4708
|
"actionListGroup": "pf-c-action-list__group",
|
|
4709
4709
|
"modifiers": {
|
|
@@ -4713,13 +4713,13 @@
|
|
|
4713
4713
|
|
|
4714
4714
|
const ActionList = (_a) => {
|
|
4715
4715
|
var { children, isIconList, className = '' } = _a, props = __rest$1(_a, ["children", "isIconList", "className"]);
|
|
4716
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4716
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionList, isIconList && styles$1b.modifiers.icons, className) }, props), children));
|
|
4717
4717
|
};
|
|
4718
4718
|
ActionList.displayName = 'ActionList';
|
|
4719
4719
|
|
|
4720
4720
|
const ActionListGroup = (_a) => {
|
|
4721
4721
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4722
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4722
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$1b.actionListGroup, className) }, props), children));
|
|
4723
4723
|
};
|
|
4724
4724
|
ActionListGroup.displayName = 'ActionListGroup';
|
|
4725
4725
|
|
|
@@ -4730,7 +4730,7 @@
|
|
|
4730
4730
|
ActionListItem.displayName = 'ActionListItem';
|
|
4731
4731
|
|
|
4732
4732
|
Promise.resolve().then(function () { return alert; });
|
|
4733
|
-
var styles$
|
|
4733
|
+
var styles$1a = {
|
|
4734
4734
|
"alert": "pf-c-alert",
|
|
4735
4735
|
"alertAction": "pf-c-alert__action",
|
|
4736
4736
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4842,7 +4842,7 @@
|
|
|
4842
4842
|
const AlertIcon = (_a) => {
|
|
4843
4843
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
4844
4844
|
const Icon = variantIcons$2[variant];
|
|
4845
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
4845
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1a.alertIcon, className) }), customIcon || React__namespace.createElement(Icon, null)));
|
|
4846
4846
|
};
|
|
4847
4847
|
|
|
4848
4848
|
const AlertContext = React__namespace.createContext(null);
|
|
@@ -4854,7 +4854,7 @@
|
|
|
4854
4854
|
};
|
|
4855
4855
|
|
|
4856
4856
|
Promise.resolve().then(function () { return tooltip; });
|
|
4857
|
-
var styles$
|
|
4857
|
+
var styles$19 = {
|
|
4858
4858
|
"modifiers": {
|
|
4859
4859
|
"top": "pf-m-top",
|
|
4860
4860
|
"topLeft": "pf-m-top-left",
|
|
@@ -4878,13 +4878,13 @@
|
|
|
4878
4878
|
|
|
4879
4879
|
const TooltipContent = (_a) => {
|
|
4880
4880
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
4881
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4881
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipContent, isLeftAligned && styles$19.modifiers.textAlignLeft, className) }, props), children));
|
|
4882
4882
|
};
|
|
4883
4883
|
TooltipContent.displayName = 'TooltipContent';
|
|
4884
4884
|
|
|
4885
4885
|
const TooltipArrow = (_a) => {
|
|
4886
4886
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
4887
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
4887
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltipArrow, className) }, props));
|
|
4888
4888
|
};
|
|
4889
4889
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4890
4890
|
|
|
@@ -4983,21 +4983,21 @@
|
|
|
4983
4983
|
}, exitDelay);
|
|
4984
4984
|
};
|
|
4985
4985
|
const positionModifiers = {
|
|
4986
|
-
top: styles$
|
|
4987
|
-
bottom: styles$
|
|
4988
|
-
left: styles$
|
|
4989
|
-
right: styles$
|
|
4990
|
-
'top-start': styles$
|
|
4991
|
-
'top-end': styles$
|
|
4992
|
-
'bottom-start': styles$
|
|
4993
|
-
'bottom-end': styles$
|
|
4994
|
-
'left-start': styles$
|
|
4995
|
-
'left-end': styles$
|
|
4996
|
-
'right-start': styles$
|
|
4997
|
-
'right-end': styles$
|
|
4986
|
+
top: styles$19.modifiers.top,
|
|
4987
|
+
bottom: styles$19.modifiers.bottom,
|
|
4988
|
+
left: styles$19.modifiers.left,
|
|
4989
|
+
right: styles$19.modifiers.right,
|
|
4990
|
+
'top-start': styles$19.modifiers.topLeft,
|
|
4991
|
+
'top-end': styles$19.modifiers.topRight,
|
|
4992
|
+
'bottom-start': styles$19.modifiers.bottomLeft,
|
|
4993
|
+
'bottom-end': styles$19.modifiers.bottomRight,
|
|
4994
|
+
'left-start': styles$19.modifiers.leftTop,
|
|
4995
|
+
'left-end': styles$19.modifiers.leftBottom,
|
|
4996
|
+
'right-start': styles$19.modifiers.rightTop,
|
|
4997
|
+
'right-end': styles$19.modifiers.rightBottom
|
|
4998
4998
|
};
|
|
4999
4999
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
5000
|
-
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$
|
|
5000
|
+
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
5001
5001
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
5002
5002
|
opacity,
|
|
5003
5003
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -5034,7 +5034,7 @@
|
|
|
5034
5034
|
var { 'aria-label': ariaLabel, variantLabel, onToggleExpand, isExpanded } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
5035
5035
|
const { title, variantLabel: alertVariantLabel } = React__namespace.useContext(AlertContext);
|
|
5036
5036
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
5037
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5037
|
+
React__namespace.createElement("span", { className: css(styles$1a.alertToggleIcon) },
|
|
5038
5038
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
5039
5039
|
};
|
|
5040
5040
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5118,20 +5118,20 @@
|
|
|
5118
5118
|
if (dismissed) {
|
|
5119
5119
|
return null;
|
|
5120
5120
|
}
|
|
5121
|
-
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
5122
|
-
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$
|
|
5121
|
+
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$1a.alertTitle, truncateTitle && styles$1a.modifiers.truncate) }), getHeadingContent));
|
|
5122
|
+
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$1a.alert, isInline && styles$1a.modifiers.inline, isPlain && styles$1a.modifiers.plain, isExpandable && styles$1a.modifiers.expandable, isExpanded && styles$1a.modifiers.expanded, styles$1a.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
5123
5123
|
'aria-live': 'polite',
|
|
5124
5124
|
'aria-atomic': 'false'
|
|
5125
5125
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
|
|
5126
5126
|
isExpandable && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5127
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5127
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertToggle) },
|
|
5128
5128
|
React__namespace.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5129
5129
|
React__namespace.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5130
5130
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5131
5131
|
actionClose && (React__namespace.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5132
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
5133
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
5134
|
-
actionLinks && React__namespace.createElement("div", { className: css(styles$
|
|
5132
|
+
React__namespace.createElement("div", { className: css(styles$1a.alertAction) }, actionClose))),
|
|
5133
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$1a.alertDescription) }, children)),
|
|
5134
|
+
actionLinks && React__namespace.createElement("div", { className: css(styles$1a.alertActionGroup) }, actionLinks)));
|
|
5135
5135
|
};
|
|
5136
5136
|
Alert.displayName = 'Alert';
|
|
5137
5137
|
|
|
@@ -5151,7 +5151,7 @@
|
|
|
5151
5151
|
AlertActionLink.displayName = 'AlertActionLink';
|
|
5152
5152
|
|
|
5153
5153
|
Promise.resolve().then(function () { return alertGroup; });
|
|
5154
|
-
var styles$
|
|
5154
|
+
var styles$18 = {
|
|
5155
5155
|
"alertGroup": "pf-c-alert-group",
|
|
5156
5156
|
"alertGroupOverflowButton": "pf-c-alert-group__overflow-button",
|
|
5157
5157
|
"modifiers": {
|
|
@@ -5161,10 +5161,10 @@
|
|
|
5161
5161
|
|
|
5162
5162
|
const AlertGroupInline = (_a) => {
|
|
5163
5163
|
var { className, children, isToast, isLiveRegion, onOverflowClick, overflowMessage } = _a, rest = __rest$1(_a, ["className", "children", "isToast", "isLiveRegion", "onOverflowClick", "overflowMessage"]);
|
|
5164
|
-
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$
|
|
5164
|
+
return (React__namespace.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: css(styles$18.alertGroup, className, isToast ? styles$18.modifiers.toast : '') }, rest),
|
|
5165
5165
|
React__namespace.Children.toArray(children).map((Alert, index) => (React__namespace.createElement("li", { key: index }, Alert))),
|
|
5166
5166
|
overflowMessage && (React__namespace.createElement("li", null,
|
|
5167
|
-
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$
|
|
5167
|
+
React__namespace.createElement("button", { onClick: onOverflowClick, className: css(styles$18.alertGroupOverflowButton) }, overflowMessage)))));
|
|
5168
5168
|
};
|
|
5169
5169
|
AlertGroupInline.displayName = 'AlertGroupInline';
|
|
5170
5170
|
|
|
@@ -5210,7 +5210,7 @@
|
|
|
5210
5210
|
AlertGroup.displayName = 'AlertGroup';
|
|
5211
5211
|
|
|
5212
5212
|
Promise.resolve().then(function () { return appLauncher; });
|
|
5213
|
-
var styles$
|
|
5213
|
+
var styles$17 = {
|
|
5214
5214
|
"appLauncher": "pf-c-app-launcher",
|
|
5215
5215
|
"appLauncherGroup": "pf-c-app-launcher__group",
|
|
5216
5216
|
"appLauncherGroupTitle": "pf-c-app-launcher__group-title",
|
|
@@ -5268,7 +5268,7 @@
|
|
|
5268
5268
|
const ThIcon = createIcon(ThIconConfig);
|
|
5269
5269
|
|
|
5270
5270
|
Promise.resolve().then(function () { return dropdown; });
|
|
5271
|
-
var styles$
|
|
5271
|
+
var styles$16 = {
|
|
5272
5272
|
"badge": "pf-c-badge",
|
|
5273
5273
|
"check": "pf-c-check",
|
|
5274
5274
|
"divider": "pf-c-divider",
|
|
@@ -5451,12 +5451,12 @@
|
|
|
5451
5451
|
return (React__namespace.createElement(DropdownArrowContext.Provider, { value: {
|
|
5452
5452
|
keyHandler: this.childKeyHandler,
|
|
5453
5453
|
sendRef: this.sendRef
|
|
5454
|
-
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5454
|
+
} }, component === 'div' ? (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React__namespace.createElement("div", { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5455
5455
|
const MenuComponent = (menuComponent || 'div');
|
|
5456
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5456
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5457
5457
|
}))) || (React__namespace.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5458
5458
|
const MenuComponent = (menuComponent || component);
|
|
5459
|
-
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$
|
|
5459
|
+
return (React__namespace.createElement(MenuComponent, Object.assign({}, props, { className: css(menuClass, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, formatBreakpointMods(alignments, styles$16, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5460
5460
|
})))));
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5471,7 +5471,7 @@
|
|
|
5471
5471
|
isGrouped: false,
|
|
5472
5472
|
setMenuComponentRef: null
|
|
5473
5473
|
};
|
|
5474
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
5474
|
+
DropdownMenu.validToggleClasses = [styles$16.dropdownToggle, styles$16.dropdownToggleButton];
|
|
5475
5475
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
5476
5476
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
5477
5477
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -5526,8 +5526,8 @@
|
|
|
5526
5526
|
// This removes the `position: absolute` styling from the `.pf-c-dropdown__menu`
|
|
5527
5527
|
// allowing the menu to flip correctly
|
|
5528
5528
|
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert', minWidth: 'min-content' } }), { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }), renderedContent));
|
|
5529
|
-
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5530
|
-
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$
|
|
5529
|
+
const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
5530
|
+
const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === exports.DropdownDirection.up && styles$16.modifiers.top, position === exports.DropdownPosition.right && styles$16.modifiers.alignRight, isOpen && styles$16.modifiers.expanded, isFullHeight && styles$16.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
5531
5531
|
React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
|
|
5532
5532
|
parentRef: this.baseComponentRef,
|
|
5533
5533
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -5575,7 +5575,7 @@
|
|
|
5575
5575
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5576
5576
|
ref, // Types of Ref are different for React.FunctionComponent vs React.Component
|
|
5577
5577
|
ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled"]);
|
|
5578
|
-
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$
|
|
5578
|
+
return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$16.dropdownToggleText, toggleIconClass: styles$16.dropdownToggleImage, toggleIndicatorClass: styles$16.dropdownToggleIcon, menuClass: styles$16.dropdownMenu, itemClass: styles$16.dropdownMenuItem, toggleClass: styles$16.dropdownToggle, baseClass: styles$16.dropdown, baseComponent: 'div', sectionClass: styles$16.dropdownGroup, sectionTitleClass: styles$16.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$16.modifiers.disabled, plainTextClass: styles$16.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
|
|
5579
5579
|
React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled }, props))));
|
|
5580
5580
|
};
|
|
5581
5581
|
Dropdown.displayName = 'Dropdown';
|
|
@@ -5660,7 +5660,7 @@
|
|
|
5660
5660
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5661
5661
|
const _a = this.props, { className, children, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = __rest$1(_a, ["className", "children", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
5662
5662
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5663
|
-
let classes = css(icon && styles$
|
|
5663
|
+
let classes = css(icon && styles$16.modifiers.icon, isAriaDisabled && styles$16.modifiers.ariaDisabled, className);
|
|
5664
5664
|
if (component === 'a') {
|
|
5665
5665
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
5666
5666
|
}
|
|
@@ -5675,17 +5675,17 @@
|
|
|
5675
5675
|
const renderDefaultComponent = (tag) => {
|
|
5676
5676
|
const Component = tag;
|
|
5677
5677
|
const componentContent = description ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5678
|
-
React__namespace.createElement("div", { className: styles$
|
|
5679
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5678
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemMain },
|
|
5679
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
5680
5680
|
children),
|
|
5681
|
-
React__namespace.createElement("div", { className: styles$
|
|
5682
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
5681
|
+
React__namespace.createElement("div", { className: styles$16.dropdownMenuItemDescription }, description))) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5682
|
+
icon && React__namespace.createElement("span", { className: css(styles$16.dropdownMenuItemIcon) }, icon),
|
|
5683
5683
|
children));
|
|
5684
5684
|
return (React__namespace.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID, role: role }), componentContent));
|
|
5685
5685
|
};
|
|
5686
5686
|
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
5687
5687
|
if (this.props.role !== 'separator') {
|
|
5688
|
-
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$
|
|
5688
|
+
classes = css(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$16.modifiers.description);
|
|
5689
5689
|
}
|
|
5690
5690
|
if (customChild) {
|
|
5691
5691
|
return React__namespace.cloneElement(customChild, {
|
|
@@ -5739,7 +5739,7 @@
|
|
|
5739
5739
|
DropdownItem.displayName = 'DropdownItem';
|
|
5740
5740
|
|
|
5741
5741
|
Promise.resolve().then(function () { return divider; });
|
|
5742
|
-
var styles$
|
|
5742
|
+
var styles$15 = {
|
|
5743
5743
|
"divider": "pf-c-divider",
|
|
5744
5744
|
"modifiers": {
|
|
5745
5745
|
"hidden": "pf-m-hidden",
|
|
@@ -5824,7 +5824,7 @@
|
|
|
5824
5824
|
const Divider = (_a) => {
|
|
5825
5825
|
var { className, component = exports.DividerVariant.hr, isVertical = false, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "isVertical", "inset", "orientation"]);
|
|
5826
5826
|
const Component = component;
|
|
5827
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
5827
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$15.divider, isVertical && styles$15.modifiers.vertical, formatBreakpointMods(inset, styles$15), formatBreakpointMods(orientation, styles$15), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5828
5828
|
};
|
|
5829
5829
|
Divider.displayName = 'Divider';
|
|
5830
5830
|
|
|
@@ -5851,8 +5851,8 @@
|
|
|
5851
5851
|
|
|
5852
5852
|
const buttonVariantStyles = {
|
|
5853
5853
|
default: '',
|
|
5854
|
-
primary: styles$
|
|
5855
|
-
secondary: styles$
|
|
5854
|
+
primary: styles$16.modifiers.primary,
|
|
5855
|
+
secondary: styles$16.modifiers.secondary
|
|
5856
5856
|
};
|
|
5857
5857
|
class Toggle extends React__namespace.Component {
|
|
5858
5858
|
constructor() {
|
|
@@ -5917,7 +5917,7 @@
|
|
|
5917
5917
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5918
5918
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5919
5919
|
id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
5920
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$
|
|
5920
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? styles$16.dropdownToggleButton : toggleClass || styles$16.dropdownToggle, isActive && styles$16.modifiers.active, isPlain && styles$16.modifiers.plain, isText && styles$16.modifiers.text, isPrimary && styles$16.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
5921
5921
|
}
|
|
5922
5922
|
}
|
|
5923
5923
|
Toggle.displayName = 'Toggle';
|
|
@@ -5959,7 +5959,7 @@
|
|
|
5959
5959
|
return (React__namespace.createElement(Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain || true, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
|
|
5960
5960
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps),
|
|
5961
5961
|
children,
|
|
5962
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
5962
|
+
React__namespace.createElement("span", { className: css(styles$16.dropdownToggleIcon) },
|
|
5963
5963
|
React__namespace.createElement(CaretDownIcon, null)))));
|
|
5964
5964
|
};
|
|
5965
5965
|
BadgeToggle.displayName = 'BadgeToggle';
|
|
@@ -6003,7 +6003,7 @@
|
|
|
6003
6003
|
ToggleIndicator && (React__namespace.createElement("span", { className: css(!splitButtonItems && toggleIndicatorClass) },
|
|
6004
6004
|
React__namespace.createElement(ToggleIndicator, null)))))));
|
|
6005
6005
|
if (splitButtonItems) {
|
|
6006
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
6006
|
+
return (React__namespace.createElement("div", { className: css(styles$16.dropdownToggle, styles$16.modifiers.splitButton, splitButtonVariant === 'action' && styles$16.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$16.modifiers.primary, toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles$16.modifiers.secondary, isDisabled && styles$16.modifiers.disabled) },
|
|
6007
6007
|
splitButtonItems,
|
|
6008
6008
|
toggle));
|
|
6009
6009
|
}
|
|
@@ -6038,8 +6038,8 @@
|
|
|
6038
6038
|
onChange, checked } = _a,
|
|
6039
6039
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6040
6040
|
props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "checked"]);
|
|
6041
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
6042
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
6041
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$16.dropdownToggleText, className), "aria-hidden": "true", id: `${props.id}-text` }, children));
|
|
6042
|
+
return (React__namespace.createElement("label", { className: css(styles$16.dropdownToggleCheck, className), htmlFor: props.id },
|
|
6043
6043
|
React__namespace.createElement("input", Object.assign({}, props, (this.calculateChecked() !== undefined && { onChange: this.handleChange }), { type: "checkbox", ref: elem => elem && (elem.indeterminate = isChecked === null), "aria-invalid": !isValid, disabled: isDisabled, checked: this.calculateChecked() }, getOUIAProps(DropdownToggleCheckbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
6044
6044
|
text));
|
|
6045
6045
|
}
|
|
@@ -6055,7 +6055,7 @@
|
|
|
6055
6055
|
class DropdownToggleAction extends React__namespace.Component {
|
|
6056
6056
|
render() {
|
|
6057
6057
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
6058
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
6058
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$16.dropdownToggleButton, className), onClick: onClick }, (isDisabled && { disabled: true, 'aria-disabled': true }), props), children));
|
|
6059
6059
|
}
|
|
6060
6060
|
}
|
|
6061
6061
|
DropdownToggleAction.displayName = 'DropdownToggleAction';
|
|
@@ -6081,7 +6081,7 @@
|
|
|
6081
6081
|
var {
|
|
6082
6082
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6083
6083
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6084
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
6084
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$17.appLauncherMenuItemIcon) }, props), children));
|
|
6085
6085
|
};
|
|
6086
6086
|
ApplicationLauncherIcon.displayName = 'ApplicationLauncherIcon';
|
|
6087
6087
|
|
|
@@ -6108,7 +6108,7 @@
|
|
|
6108
6108
|
icon && React__namespace.createElement(ApplicationLauncherIcon, null, icon),
|
|
6109
6109
|
icon ? React__namespace.createElement(ApplicationLauncherText, null, children) : children,
|
|
6110
6110
|
isExternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6111
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6111
|
+
React__namespace.createElement("span", { className: css(styles$17.appLauncherMenuItemExternalIcon) },
|
|
6112
6112
|
React__namespace.createElement(ExternalLinkAltIcon, null)),
|
|
6113
6113
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, "(opens new window)")))))));
|
|
6114
6114
|
ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';
|
|
@@ -6132,8 +6132,8 @@
|
|
|
6132
6132
|
const ApplicationLauncherItem = (_a) => {
|
|
6133
6133
|
var { className = '', id, children, icon = null, isExternal = false, href, tooltip = null, tooltipProps = null, component = 'a', isFavorite = null, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', customChild, enterTriggersArrowDown = false } = _a, props = __rest$1(_a, ["className", "id", "children", "icon", "isExternal", "href", "tooltip", "tooltipProps", "component", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "customChild", "enterTriggersArrowDown"]);
|
|
6134
6134
|
return (React__namespace.createElement(ApplicationLauncherItemContext.Provider, { value: { isExternal, icon } },
|
|
6135
|
-
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$
|
|
6136
|
-
additionalChild: (React__namespace.createElement("button", { className: css(styles$
|
|
6135
|
+
React__namespace.createElement(ApplicationLauncherContext.Consumer, null, ({ onFavorite }) => (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: component, href: href || null, className: css(isExternal && styles$17.modifiers.external, isFavorite !== null && styles$17.modifiers.link, className), listItemClassName: css(onFavorite && styles$17.appLauncherMenuWrapper, isFavorite && styles$17.modifiers.favorite), tooltip: tooltip, tooltipProps: tooltipProps }, (enterTriggersArrowDown === true && { enterTriggersArrowDown }), (customChild && { customChild }), (isFavorite !== null && {
|
|
6136
|
+
additionalChild: (React__namespace.createElement("button", { className: css(styles$17.appLauncherMenuItem, styles$17.modifiers.action), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6137
6137
|
onFavorite((id || getUniqueId('app-launcher-option')).replace('favorite-', ''), isFavorite);
|
|
6138
6138
|
} },
|
|
6139
6139
|
React__namespace.createElement(StarIcon, null)))
|
|
@@ -6207,7 +6207,7 @@
|
|
|
6207
6207
|
super(...arguments);
|
|
6208
6208
|
this.createSearchBox = () => {
|
|
6209
6209
|
const { onSearch, searchPlaceholderText, searchProps } = this.props;
|
|
6210
|
-
return (React__namespace.createElement("div", { key: "search", className: css(styles$
|
|
6210
|
+
return (React__namespace.createElement("div", { key: "search", className: css(styles$17.appLauncherMenuSearch) },
|
|
6211
6211
|
React__namespace.createElement(ApplicationLauncherItem, { customChild: React__namespace.createElement("input", Object.assign({ type: "search", className: css(formStyles.formControl), placeholder: searchPlaceholderText, onChange: e => onSearch(e.target.value) }, searchProps)) })));
|
|
6212
6212
|
};
|
|
6213
6213
|
}
|
|
@@ -6251,15 +6251,15 @@
|
|
|
6251
6251
|
return (React__namespace.createElement(ApplicationLauncherContext.Provider, { value: { onFavorite } },
|
|
6252
6252
|
React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
6253
6253
|
onSelect,
|
|
6254
|
-
menuClass: styles$
|
|
6255
|
-
itemClass: styles$
|
|
6256
|
-
toggleClass: styles$
|
|
6257
|
-
baseClass: styles$
|
|
6254
|
+
menuClass: styles$17.appLauncherMenu,
|
|
6255
|
+
itemClass: styles$17.appLauncherMenuItem,
|
|
6256
|
+
toggleClass: styles$17.appLauncherToggle,
|
|
6257
|
+
baseClass: styles$17.appLauncher,
|
|
6258
6258
|
baseComponent: 'nav',
|
|
6259
|
-
sectionClass: styles$
|
|
6260
|
-
sectionTitleClass: styles$
|
|
6259
|
+
sectionClass: styles$17.appLauncherGroup,
|
|
6260
|
+
sectionTitleClass: styles$17.appLauncherGroupTitle,
|
|
6261
6261
|
sectionComponent: 'section',
|
|
6262
|
-
disabledClass: styles$
|
|
6262
|
+
disabledClass: styles$17.modifiers.disabled,
|
|
6263
6263
|
ouiaComponentType: ApplicationLauncher.displayName
|
|
6264
6264
|
} },
|
|
6265
6265
|
React__namespace.createElement(DropdownWithContext, Object.assign({}, props, { dropdownItems: renderableItems, isOpen: isOpen, className: className, "aria-label": ariaLabel, menuAppendTo: menuAppendTo, toggle: React__namespace.createElement(DropdownToggle, { id: toggleId, toggleIndicator: null, isOpen: isOpen, onToggle: onToggle, isDisabled: isDisabled, "aria-label": ariaLabel }, toggleIcon), isGrouped: isGrouped })))));
|
|
@@ -6287,7 +6287,7 @@
|
|
|
6287
6287
|
};
|
|
6288
6288
|
|
|
6289
6289
|
Promise.resolve().then(function () { return avatar; });
|
|
6290
|
-
var styles$
|
|
6290
|
+
var styles$14 = {
|
|
6291
6291
|
"avatar": "pf-c-avatar",
|
|
6292
6292
|
"modifiers": {
|
|
6293
6293
|
"light": "pf-m-light",
|
|
@@ -6301,12 +6301,12 @@
|
|
|
6301
6301
|
|
|
6302
6302
|
const Avatar = (_a) => {
|
|
6303
6303
|
var { className = '', src = '', alt, border, size } = _a, props = __rest$1(_a, ["className", "src", "alt", "border", "size"]);
|
|
6304
|
-
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$
|
|
6304
|
+
return (React__namespace.createElement("img", Object.assign({ src: src, alt: alt, className: css(styles$14.avatar, styles$14.modifiers[size], border === 'light' && styles$14.modifiers.light, border === 'dark' && styles$14.modifiers.dark, className) }, props)));
|
|
6305
6305
|
};
|
|
6306
6306
|
Avatar.displayName = 'Avatar';
|
|
6307
6307
|
|
|
6308
6308
|
Promise.resolve().then(function () { return backToTop; });
|
|
6309
|
-
var styles$
|
|
6309
|
+
var styles$13 = {
|
|
6310
6310
|
"backToTop": "pf-c-back-to-top",
|
|
6311
6311
|
"button": "pf-c-button",
|
|
6312
6312
|
"modifiers": {
|
|
@@ -6371,7 +6371,7 @@
|
|
|
6371
6371
|
const handleClick = () => {
|
|
6372
6372
|
scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
|
|
6373
6373
|
};
|
|
6374
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6374
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$13.backToTop, !visible && styles$13.modifiers.hidden, className), ref: innerRef, onClick: handleClick }, props),
|
|
6375
6375
|
React__namespace.createElement(Button, { variant: "primary", icon: React__namespace.createElement(AngleUpIcon, { "aria-hidden": "true" }), iconPosition: "right" }, title)));
|
|
6376
6376
|
};
|
|
6377
6377
|
const BackToTop = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(BackToTopBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -6414,7 +6414,7 @@
|
|
|
6414
6414
|
};
|
|
6415
6415
|
|
|
6416
6416
|
Promise.resolve().then(function () { return backgroundImage; });
|
|
6417
|
-
var styles$
|
|
6417
|
+
var styles$12 = {
|
|
6418
6418
|
"backgroundImage": "pf-c-background-image",
|
|
6419
6419
|
"backgroundImageFilter": "pf-c-background-image__filter"
|
|
6420
6420
|
};
|
|
@@ -6448,13 +6448,13 @@
|
|
|
6448
6448
|
[c_background_image_BackgroundImage_lg.name]: getUrlValue('lg'),
|
|
6449
6449
|
[c_background_image_Filter.name]: `url(#${filterId})`
|
|
6450
6450
|
};
|
|
6451
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6451
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$12.backgroundImage, className), style: style }, props),
|
|
6452
6452
|
React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", className: "pf-c-background-image__filter", width: "0", height: "0" }, React__namespace.cloneElement(filter, { id: filterId }))));
|
|
6453
6453
|
};
|
|
6454
6454
|
BackgroundImage.displayName = 'BackgroundImage';
|
|
6455
6455
|
|
|
6456
6456
|
Promise.resolve().then(function () { return banner; });
|
|
6457
|
-
var styles$
|
|
6457
|
+
var styles$11 = {
|
|
6458
6458
|
"banner": "pf-c-banner",
|
|
6459
6459
|
"button": "pf-c-button",
|
|
6460
6460
|
"card": "pf-c-card",
|
|
@@ -6472,14 +6472,14 @@
|
|
|
6472
6472
|
|
|
6473
6473
|
const Banner = (_a) => {
|
|
6474
6474
|
var { children, className, variant = 'default', screenReaderText, isSticky = false } = _a, props = __rest$1(_a, ["children", "className", "variant", "screenReaderText", "isSticky"]);
|
|
6475
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
6475
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$11.banner, styles$11.modifiers[variant], isSticky && styles$11.modifiers.sticky, className) }, props),
|
|
6476
6476
|
children,
|
|
6477
6477
|
React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenReaderText || `${variant} banner`)));
|
|
6478
6478
|
};
|
|
6479
6479
|
Banner.displayName = 'Banner';
|
|
6480
6480
|
|
|
6481
6481
|
Promise.resolve().then(function () { return brand; });
|
|
6482
|
-
var styles
|
|
6482
|
+
var styles$10 = {
|
|
6483
6483
|
"brand": "pf-c-brand",
|
|
6484
6484
|
"modifiers": {
|
|
6485
6485
|
"picture": "pf-m-picture"
|
|
@@ -6496,14 +6496,14 @@
|
|
|
6496
6496
|
}
|
|
6497
6497
|
return (
|
|
6498
6498
|
/** the brand component currently contains no styling the 'pf-c-brand' string will be used for the className */
|
|
6499
|
-
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles
|
|
6499
|
+
children !== undefined ? (React__namespace.createElement("picture", Object.assign({ className: css(styles$10.brand, styles$10.modifiers.picture, className), style: style }, props),
|
|
6500
6500
|
children,
|
|
6501
|
-
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles
|
|
6501
|
+
React__namespace.createElement("img", { src: src, alt: alt }))) : (React__namespace.createElement("img", Object.assign({}, props, { className: css(styles$10.brand, className), src: src, alt: alt }))));
|
|
6502
6502
|
};
|
|
6503
6503
|
Brand.displayName = 'Brand';
|
|
6504
6504
|
|
|
6505
6505
|
Promise.resolve().then(function () { return breadcrumb; });
|
|
6506
|
-
var styles
|
|
6506
|
+
var styles$$ = {
|
|
6507
6507
|
"breadcrumb": "pf-c-breadcrumb",
|
|
6508
6508
|
"breadcrumbDropdown": "pf-c-breadcrumb__dropdown",
|
|
6509
6509
|
"breadcrumbHeading": "pf-c-breadcrumb__heading",
|
|
@@ -6522,8 +6522,8 @@
|
|
|
6522
6522
|
const Breadcrumb = (_a) => {
|
|
6523
6523
|
var { children = null, className = '', 'aria-label': ariaLabel = 'Breadcrumb', ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "ouiaId", "ouiaSafe"]);
|
|
6524
6524
|
const ouiaProps = useOUIAProps(Breadcrumb.displayName, ouiaId, ouiaSafe);
|
|
6525
|
-
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles
|
|
6526
|
-
React__namespace.createElement("ol", { className: styles
|
|
6525
|
+
return (React__namespace.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: css(styles$$.breadcrumb, className) }, ouiaProps),
|
|
6526
|
+
React__namespace.createElement("ol", { className: styles$$.breadcrumbList }, React__namespace.Children.map(children, (child, index) => {
|
|
6527
6527
|
const showDivider = index > 0;
|
|
6528
6528
|
if (React__namespace.isValidElement(child)) {
|
|
6529
6529
|
return React__namespace.cloneElement(child, { showDivider });
|
|
@@ -6537,12 +6537,12 @@
|
|
|
6537
6537
|
var { children = null, className: classNameProp = '', to = undefined, isActive = false, isDropdown = false, showDivider, target = undefined, component = 'a', render = undefined } = _a, props = __rest$1(_a, ["children", "className", "to", "isActive", "isDropdown", "showDivider", "target", "component", "render"]);
|
|
6538
6538
|
const Component = component;
|
|
6539
6539
|
const ariaCurrent = isActive ? 'page' : undefined;
|
|
6540
|
-
const className = css(styles
|
|
6541
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6542
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6540
|
+
const className = css(styles$$.breadcrumbLink, isActive && styles$$.modifiers.current);
|
|
6541
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, classNameProp) }),
|
|
6542
|
+
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6543
6543
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
6544
6544
|
component === 'button' && (React__namespace.createElement("button", { className: className, "aria-current": ariaCurrent, type: "button" }, children)),
|
|
6545
|
-
isDropdown && React__namespace.createElement("span", { className: css(styles
|
|
6545
|
+
isDropdown && React__namespace.createElement("span", { className: css(styles$$.breadcrumbDropdown) }, children),
|
|
6546
6546
|
render && render({ className, ariaCurrent }),
|
|
6547
6547
|
to && !render && (React__namespace.createElement(Component, { href: to, target: target, className: className, "aria-current": ariaCurrent }, children)),
|
|
6548
6548
|
!to && component !== 'button' && !isDropdown && children));
|
|
@@ -6552,12 +6552,12 @@
|
|
|
6552
6552
|
const BreadcrumbHeading = (_a) => {
|
|
6553
6553
|
var { children = null, className = '', to = undefined, target = undefined, component = 'a', showDivider } = _a, props = __rest$1(_a, ["children", "className", "to", "target", "component", "showDivider"]);
|
|
6554
6554
|
const Component = component;
|
|
6555
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles
|
|
6556
|
-
showDivider && (React__namespace.createElement("span", { className: styles
|
|
6555
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$$.breadcrumbItem, className) }),
|
|
6556
|
+
showDivider && (React__namespace.createElement("span", { className: styles$$.breadcrumbItemDivider },
|
|
6557
6557
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
6558
|
-
React__namespace.createElement("h1", { className: styles
|
|
6559
|
-
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles
|
|
6560
|
-
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles
|
|
6558
|
+
React__namespace.createElement("h1", { className: styles$$.breadcrumbHeading },
|
|
6559
|
+
!to && component === 'button' && (React__namespace.createElement("button", { className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": true, type: "button" }, children)),
|
|
6560
|
+
to && (React__namespace.createElement(Component, { href: to, target: target, className: css(styles$$.breadcrumbLink, styles$$.modifiers.current), "aria-current": "page" }, children)),
|
|
6561
6561
|
!to && component !== 'button' && React__namespace.createElement(React__namespace.Fragment, null, children))));
|
|
6562
6562
|
};
|
|
6563
6563
|
BreadcrumbHeading.displayName = 'BreadcrumbHeading';
|
|
@@ -6668,7 +6668,7 @@
|
|
|
6668
6668
|
TextInput.displayName = 'TextInput';
|
|
6669
6669
|
|
|
6670
6670
|
Promise.resolve().then(function () { return select; });
|
|
6671
|
-
var styles$
|
|
6671
|
+
var styles$_ = {
|
|
6672
6672
|
"check": "pf-c-check",
|
|
6673
6673
|
"checkLabel": "pf-c-check__label",
|
|
6674
6674
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -6740,7 +6740,7 @@
|
|
|
6740
6740
|
const TimesCircleIcon = createIcon(TimesCircleIconConfig);
|
|
6741
6741
|
|
|
6742
6742
|
Promise.resolve().then(function () { return form; });
|
|
6743
|
-
var styles$
|
|
6743
|
+
var styles$Z = {
|
|
6744
6744
|
"form": "pf-c-form",
|
|
6745
6745
|
"formActions": "pf-c-form__actions",
|
|
6746
6746
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -6795,7 +6795,7 @@
|
|
|
6795
6795
|
};
|
|
6796
6796
|
|
|
6797
6797
|
Promise.resolve().then(function () { return check; });
|
|
6798
|
-
var styles$
|
|
6798
|
+
var styles$Y = {
|
|
6799
6799
|
"check": "pf-c-check",
|
|
6800
6800
|
"checkBody": "pf-c-check__body",
|
|
6801
6801
|
"checkDescription": "pf-c-check__description",
|
|
@@ -6914,16 +6914,16 @@
|
|
|
6914
6914
|
console.error('Please provide an id to use the favorites feature.');
|
|
6915
6915
|
}
|
|
6916
6916
|
const generatedId = id || getUniqueId('select-option');
|
|
6917
|
-
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$
|
|
6917
|
+
const favoriteButton = (onFavorite) => (React__namespace.createElement("button", { className: css(styles$_.selectMenuItem, styles$_.modifiers.action, styles$_.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6918
6918
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
6919
6919
|
}, onKeyDown: event => {
|
|
6920
6920
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
6921
6921
|
}, ref: this.favoriteRef },
|
|
6922
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6922
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemActionIcon) },
|
|
6923
6923
|
React__namespace.createElement(StarIcon, null))));
|
|
6924
|
-
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$
|
|
6925
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6926
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6924
|
+
const itemDisplay = itemCount ? (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemRow) },
|
|
6925
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6926
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
6927
6927
|
const onViewMoreClick = (event) => {
|
|
6928
6928
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
6929
6929
|
setViewMoreNextIndex();
|
|
@@ -6931,26 +6931,26 @@
|
|
|
6931
6931
|
};
|
|
6932
6932
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
6933
6933
|
if (variant !== exports.SelectVariant.checkbox && isLoading && isGrouped) {
|
|
6934
|
-
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$
|
|
6934
|
+
return (React__namespace.createElement("div", { role: "presentation", className: css(styles$_.selectListItem, isLoading && styles$_.modifiers.loading, className) }, children));
|
|
6935
6935
|
}
|
|
6936
6936
|
else if (variant !== exports.SelectVariant.checkbox && isLoad && isGrouped) {
|
|
6937
6937
|
return (React__namespace.createElement("div", null,
|
|
6938
|
-
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$
|
|
6938
|
+
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(styles$_.selectMenuItem, styles$_.modifiers.load, className), onClick: (event) => {
|
|
6939
6939
|
onViewMoreClick(event);
|
|
6940
6940
|
event.stopPropagation();
|
|
6941
6941
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
6942
6942
|
}
|
|
6943
6943
|
else if (variant !== exports.SelectVariant.checkbox) {
|
|
6944
|
-
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$
|
|
6944
|
+
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && styles$_.selectListItem, !isLoading && styles$_.selectMenuWrapper, isFavorite && styles$_.modifiers.favorite, isFocused && styles$_.modifiers.focus, isLoading && styles$_.modifiers.loading), ref: this.liRef },
|
|
6945
6945
|
isLoading && children,
|
|
6946
|
-
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$
|
|
6946
|
+
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(styles$_.selectMenuItem, styles$_.modifiers.load, className), onClick: (event) => {
|
|
6947
6947
|
onViewMoreClick(event);
|
|
6948
6948
|
event.stopPropagation();
|
|
6949
6949
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
6950
6950
|
this.onKeyDown(event, 0);
|
|
6951
6951
|
}, type: "button" }), itemDisplay)),
|
|
6952
6952
|
!isLoading && !isLoad && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6953
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
6953
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$_.selectMenuItem, isLoad && styles$_.modifiers.load, isSelected && styles$_.modifiers.selected, isDisabled && styles$_.modifiers.disabled, description && styles$_.modifiers.description, isFavorite !== null && styles$_.modifiers.link, className), onClick: (event) => {
|
|
6954
6954
|
if (!isDisabled) {
|
|
6955
6955
|
onClick(event);
|
|
6956
6956
|
onSelect(event, value, isPlaceholder);
|
|
@@ -6960,19 +6960,19 @@
|
|
|
6960
6960
|
this.onKeyDown(event, 0);
|
|
6961
6961
|
}, type: "button" }),
|
|
6962
6962
|
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6963
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6963
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemMain) },
|
|
6964
6964
|
itemDisplay,
|
|
6965
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6965
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6966
6966
|
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6967
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6967
|
+
React__namespace.createElement("span", { className: css(styles$_.selectMenuItemDescription) }, description))),
|
|
6968
6968
|
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
6969
6969
|
itemDisplay,
|
|
6970
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
6970
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$_.selectMenuItemIcon) },
|
|
6971
6971
|
React__namespace.createElement(CheckIcon, { "aria-hidden": true })))))),
|
|
6972
6972
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6973
6973
|
}
|
|
6974
6974
|
else if (variant === exports.SelectVariant.checkbox && isLoad) {
|
|
6975
|
-
return (React__namespace.createElement("button", { className: css(styles$
|
|
6975
|
+
return (React__namespace.createElement("button", { className: css(styles$_.selectMenuItem, styles$_.modifiers.load, isFocused && styles$_.modifiers.focus, className), onKeyDown: (event) => {
|
|
6976
6976
|
this.onKeyDown(event, 0, undefined, true);
|
|
6977
6977
|
}, onClick: (event) => {
|
|
6978
6978
|
onViewMoreClick(event);
|
|
@@ -6980,24 +6980,24 @@
|
|
|
6980
6980
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
6981
6981
|
}
|
|
6982
6982
|
else if (variant === exports.SelectVariant.checkbox && isLoading) {
|
|
6983
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
6983
|
+
return (React__namespace.createElement("div", { className: css(styles$_.selectListItem, isLoading && styles$_.modifiers.loading, className) }, children));
|
|
6984
6984
|
}
|
|
6985
6985
|
else if (variant === exports.SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
6986
|
-
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$
|
|
6986
|
+
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(styles$Y.check, styles$_.selectMenuItem, isDisabled && styles$_.modifiers.disabled, description && styles$_.modifiers.description, className), onKeyDown: (event) => {
|
|
6987
6987
|
this.onKeyDown(event, 0, undefined, true);
|
|
6988
6988
|
} }),
|
|
6989
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$
|
|
6989
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(styles$Y.checkInput), type: "checkbox", onChange: event => {
|
|
6990
6990
|
if (!isDisabled) {
|
|
6991
6991
|
onClick(event);
|
|
6992
6992
|
onSelect(event, value);
|
|
6993
6993
|
}
|
|
6994
6994
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
6995
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
6996
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
6995
|
+
React__namespace.createElement("span", { className: css(styles$Y.checkLabel, isDisabled && styles$_.modifiers.disabled) }, itemDisplay),
|
|
6996
|
+
description && React__namespace.createElement("div", { className: css(styles$Y.checkDescription) }, description)));
|
|
6997
6997
|
}
|
|
6998
6998
|
else if (variant === exports.SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
6999
6999
|
return (React__namespace.createElement("div", null,
|
|
7000
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$
|
|
7000
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(styles$_.selectMenuItem, isSelected && styles$_.modifiers.selected, isDisabled && styles$_.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
7001
7001
|
this.onKeyDown(event, 0, undefined, true);
|
|
7002
7002
|
}, type: "button" }), itemDisplay)));
|
|
7003
7003
|
}
|
|
@@ -7029,8 +7029,8 @@
|
|
|
7029
7029
|
|
|
7030
7030
|
const SelectGroup = (_a) => {
|
|
7031
7031
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId"]);
|
|
7032
|
-
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
7033
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
7032
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ variant }) => (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$_.selectMenuGroup, className) }),
|
|
7033
|
+
React__namespace.createElement("div", { className: css(styles$_.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
7034
7034
|
variant === exports.SelectVariant.checkbox ? children : React__namespace.createElement("ul", { role: "listbox" }, children)))));
|
|
7035
7035
|
};
|
|
7036
7036
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -7112,7 +7112,7 @@
|
|
|
7112
7112
|
}
|
|
7113
7113
|
return React__namespace.cloneElement(group, {
|
|
7114
7114
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
7115
|
-
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$
|
|
7115
|
+
children: group.props.children ? (React__namespace.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css(styles$_.selectMenuFieldset) }, React__namespace.Children.map(group.props.children, (option) => option.type === Divider
|
|
7116
7116
|
? option
|
|
7117
7117
|
: React__namespace.cloneElement(option, {
|
|
7118
7118
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -7139,7 +7139,7 @@
|
|
|
7139
7139
|
const _a = this.props, { children, isCustomContent, className, isExpanded, openedOnEnter, selected, checked, isGrouped, position, sendRef, keyHandler, maxHeight, noResultsFoundText, createText, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, hasInlineFilter, innerRef, footer, footerRef, isLastOptionBeforeFooter } = _a, props = __rest$1(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
|
|
7140
7140
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
7141
7141
|
let Component = 'div';
|
|
7142
|
-
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$
|
|
7142
|
+
const variantProps = Object.assign({ ref: innerRef, className: css(!footer ? styles$_.selectMenu : 'pf-c-select__menu-list', position === exports.SelectPosition.right && styles$_.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
7143
7143
|
const extendedChildren = () => variant === exports.SelectVariant.checkbox
|
|
7144
7144
|
? this.extendCheckboxChildren(children)
|
|
7145
7145
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -7148,10 +7148,10 @@
|
|
|
7148
7148
|
}
|
|
7149
7149
|
else if (hasInlineFilter) {
|
|
7150
7150
|
if (React__namespace.Children.count(children) === 0) {
|
|
7151
|
-
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$
|
|
7151
|
+
variantProps.children = React__namespace.createElement("fieldset", { className: css(styles$_.selectMenuFieldset) });
|
|
7152
7152
|
}
|
|
7153
7153
|
else {
|
|
7154
|
-
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$
|
|
7154
|
+
variantProps.children = (React__namespace.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css(styles$Z.formFieldset) },
|
|
7155
7155
|
children.shift(),
|
|
7156
7156
|
extendedChildren()));
|
|
7157
7157
|
}
|
|
@@ -7167,7 +7167,7 @@
|
|
|
7167
7167
|
}
|
|
7168
7168
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7169
7169
|
React__namespace.createElement(Component, Object.assign({}, variantProps, props)),
|
|
7170
|
-
footer && (React__namespace.createElement("div", { className: css(styles$
|
|
7170
|
+
footer && (React__namespace.createElement("div", { className: css(styles$_.selectMenuFooter), ref: footerRef }, footer))));
|
|
7171
7171
|
}
|
|
7172
7172
|
render() {
|
|
7173
7173
|
return React__namespace.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -7331,7 +7331,7 @@
|
|
|
7331
7331
|
'aria-haspopup': (variant !== exports.SelectVariant.checkbox && 'listbox') || null
|
|
7332
7332
|
};
|
|
7333
7333
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
7334
|
-
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$
|
|
7334
|
+
!isTypeahead && (React__namespace.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css(styles$_.selectToggle, hasPlaceholderStyle && styles$_.modifiers.placeholder, isDisabled && styles$_.modifiers.disabled, isPlain && styles$_.modifiers.plain, isActive && styles$_.modifiers.active, className), "aria-label": ariaLabel, onBlur: onBlur,
|
|
7335
7335
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7336
7336
|
onClick: event => {
|
|
7337
7337
|
onToggle(!isOpen, event);
|
|
@@ -7340,9 +7340,9 @@
|
|
|
7340
7340
|
}
|
|
7341
7341
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
7342
7342
|
children,
|
|
7343
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7343
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleArrow) },
|
|
7344
7344
|
React__namespace.createElement(CaretDownIcon, null)))),
|
|
7345
|
-
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$
|
|
7345
|
+
isTypeahead && (React__namespace.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css(styles$_.selectToggle, hasPlaceholderStyle && styles$_.modifiers.placeholder, isDisabled && styles$_.modifiers.disabled, isPlain && styles$_.modifiers.plain, isTypeahead && styles$_.modifiers.typeahead, className), onBlur: onBlur,
|
|
7346
7346
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7347
7347
|
onClick: event => {
|
|
7348
7348
|
if (!isDisabled) {
|
|
@@ -7353,7 +7353,7 @@
|
|
|
7353
7353
|
}
|
|
7354
7354
|
}, onKeyDown: this.onKeyDown }),
|
|
7355
7355
|
children,
|
|
7356
|
-
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$
|
|
7356
|
+
React__namespace.createElement("button", Object.assign({}, toggleProps, { type: type, className: css(buttonStyles.button, styles$_.selectToggleButton, styles$_.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
7357
7357
|
onToggle(!isOpen, event);
|
|
7358
7358
|
if (isOpen) {
|
|
7359
7359
|
onClose();
|
|
@@ -7362,7 +7362,7 @@
|
|
|
7362
7362
|
} }, ((variant === exports.SelectVariant.typeahead || variant === exports.SelectVariant.typeaheadMulti) && {
|
|
7363
7363
|
tabIndex: -1
|
|
7364
7364
|
}), { disabled: isDisabled }),
|
|
7365
|
-
React__namespace.createElement(CaretDownIcon, { className: css(styles$
|
|
7365
|
+
React__namespace.createElement(CaretDownIcon, { className: css(styles$_.selectToggleArrow) }))))));
|
|
7366
7366
|
}
|
|
7367
7367
|
}
|
|
7368
7368
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -7386,7 +7386,7 @@
|
|
|
7386
7386
|
};
|
|
7387
7387
|
|
|
7388
7388
|
Promise.resolve().then(function () { return chipGroup; });
|
|
7389
|
-
var styles$
|
|
7389
|
+
var styles$X = {
|
|
7390
7390
|
"chipGroup": "pf-c-chip-group",
|
|
7391
7391
|
"chipGroupClose": "pf-c-chip-group__close",
|
|
7392
7392
|
"chipGroupLabel": "pf-c-chip-group__label",
|
|
@@ -7399,7 +7399,7 @@
|
|
|
7399
7399
|
};
|
|
7400
7400
|
|
|
7401
7401
|
Promise.resolve().then(function () { return chip; });
|
|
7402
|
-
var styles$
|
|
7402
|
+
var styles$W = {
|
|
7403
7403
|
"badge": "pf-c-badge",
|
|
7404
7404
|
"button": "pf-c-button",
|
|
7405
7405
|
"chip": "pf-c-chip",
|
|
@@ -7422,8 +7422,8 @@
|
|
|
7422
7422
|
this.renderOverflowChip = () => {
|
|
7423
7423
|
const { children, className, onClick, ouiaId } = this.props;
|
|
7424
7424
|
const Component = this.props.component;
|
|
7425
|
-
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$
|
|
7426
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
7425
|
+
return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$W.chip, styles$W.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7426
|
+
React__namespace.createElement("span", { className: css(styles$W.chipText) }, children)));
|
|
7427
7427
|
};
|
|
7428
7428
|
this.renderChip = (randomId) => {
|
|
7429
7429
|
const { children, tooltipPosition } = this.props;
|
|
@@ -7447,8 +7447,8 @@
|
|
|
7447
7447
|
const Component = component;
|
|
7448
7448
|
return (React__namespace.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
|
|
7449
7449
|
style: this.setChipStyle()
|
|
7450
|
-
}), { className: css(styles$
|
|
7451
|
-
React__namespace.createElement("span", { ref: this.span, className: css(styles$
|
|
7450
|
+
}), { className: css(styles$W.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
7451
|
+
React__namespace.createElement("span", { ref: this.span, className: css(styles$W.chipText), id: id }, children),
|
|
7452
7452
|
!isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7453
7453
|
React__namespace.createElement(TimesIcon, { "aria-hidden": "true" })))));
|
|
7454
7454
|
}
|
|
@@ -7493,8 +7493,8 @@
|
|
|
7493
7493
|
const { categoryName, tooltipPosition } = this.props;
|
|
7494
7494
|
const { isTooltipVisible } = this.state;
|
|
7495
7495
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
7496
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
7497
|
-
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
7496
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$X.chipGroupLabel) },
|
|
7497
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$X.chipGroupLabel), id: id }, categoryName));
|
|
7498
7498
|
}
|
|
7499
7499
|
render() {
|
|
7500
7500
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -7511,17 +7511,17 @@
|
|
|
7511
7511
|
const chipArray = !isOpen
|
|
7512
7512
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
7513
7513
|
: React__namespace.Children.toArray(children);
|
|
7514
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
7515
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
7514
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$X.chipGroup, className, categoryName && styles$X.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
7515
|
+
React__namespace.createElement("div", { className: css(styles$X.chipGroupMain) },
|
|
7516
7516
|
categoryName && this.renderLabel(id),
|
|
7517
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
7518
|
-
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
7519
|
-
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$
|
|
7517
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$X.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
7518
|
+
chipArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$X.chipGroupListItem), key: i }, child))),
|
|
7519
|
+
numChildren > numChips && (React__namespace.createElement("li", { className: css(styles$X.chipGroupListItem) },
|
|
7520
7520
|
React__namespace.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
7521
7521
|
this.toggleCollapse();
|
|
7522
7522
|
onOverflowChipClick(event);
|
|
7523
7523
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
7524
|
-
isClosable && (React__namespace.createElement("div", { className: css(styles$
|
|
7524
|
+
isClosable && (React__namespace.createElement("div", { className: css(styles$X.chipGroupClose) },
|
|
7525
7525
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
7526
7526
|
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))))));
|
|
7527
7527
|
};
|
|
@@ -8214,7 +8214,7 @@
|
|
|
8214
8214
|
}
|
|
8215
8215
|
}
|
|
8216
8216
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
8217
|
-
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$
|
|
8217
|
+
const clearBtn = (React__namespace.createElement("button", { className: css(buttonStyles.button, buttonStyles.modifiers.plain, styles$_.selectToggleClear), onClick: e => {
|
|
8218
8218
|
this.clearSelection(e);
|
|
8219
8219
|
onClear(e);
|
|
8220
8220
|
e.stopPropagation();
|
|
@@ -8231,7 +8231,7 @@
|
|
|
8231
8231
|
}
|
|
8232
8232
|
if (hasInlineFilter) {
|
|
8233
8233
|
const filterBox = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8234
|
-
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$
|
|
8234
|
+
React__namespace.createElement("div", { key: "inline-filter", className: css(styles$_.selectMenuSearch) },
|
|
8235
8235
|
React__namespace.createElement("input", { key: "inline-filter-input", type: "search", className: css(formStyles.formControl, formStyles.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
8236
8236
|
if (event.key === KeyTypes.ArrowUp) {
|
|
8237
8237
|
this.handleMenuKeys(0, 0, 'up');
|
|
@@ -8337,46 +8337,46 @@
|
|
|
8337
8337
|
// This removes the `position: absolute` styling from the `.pf-c-select__menu`
|
|
8338
8338
|
// allowing the menu to flip correctly
|
|
8339
8339
|
, Object.assign({}, (isFlipEnabled && { style: { position: 'revert' } }), props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
8340
|
-
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$
|
|
8340
|
+
const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$_.selectMenu) },
|
|
8341
8341
|
" ",
|
|
8342
8342
|
innerMenu,
|
|
8343
8343
|
" ") : innerMenu;
|
|
8344
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8345
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8344
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className) }, (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
8345
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$_.select, isOpen && styles$_.modifiers.expanded, validated === exports.ValidatedOptions.success && styles$_.modifiers.success, validated === exports.ValidatedOptions.warning && styles$_.modifiers.warning, validated === exports.ValidatedOptions.error && styles$_.modifiers.invalid, direction === exports.SelectDirection.up && styles$_.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== exports.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
8346
8346
|
React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel }, (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), { handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
8347
|
-
customContent && (React__namespace.createElement("div", { className: css(styles$
|
|
8348
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8349
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8347
|
+
customContent && (React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8348
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8349
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, placeholderText))),
|
|
8350
8350
|
variant === exports.SelectVariant.single && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8351
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8352
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8353
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8351
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8352
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8353
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
8354
8354
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8355
8355
|
variant === exports.SelectVariant.checkbox && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8356
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8357
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8358
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8359
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$
|
|
8356
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8357
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8358
|
+
React__namespace.createElement("span", { className: css(styles$_.selectToggleText) }, placeholderText),
|
|
8359
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React__namespace.createElement("div", { className: css(styles$_.selectToggleBadge) },
|
|
8360
8360
|
React__namespace.createElement("span", { className: css(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
8361
8361
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
8362
8362
|
variant === exports.SelectVariant.typeahead && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8363
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8364
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8365
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8363
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8364
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8365
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
8366
8366
|
? typeaheadInputValue
|
|
8367
8367
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8368
8368
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
8369
8369
|
variant === exports.SelectVariant.typeaheadMulti && !customContent && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
8370
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
8371
|
-
toggleIcon && React__namespace.createElement("span", { className: css(styles$
|
|
8370
|
+
React__namespace.createElement("div", { className: css(styles$_.selectToggleWrapper) },
|
|
8371
|
+
toggleIcon && React__namespace.createElement("span", { className: css(styles$_.selectToggleIcon) }, toggleIcon),
|
|
8372
8372
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
8373
|
-
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$
|
|
8373
|
+
React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, styles$_.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === exports.ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
8374
8374
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
8375
|
-
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$
|
|
8375
|
+
validated === exports.ValidatedOptions.success && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8376
8376
|
React__namespace.createElement(CheckCircleIcon, { "aria-hidden": "true" }))),
|
|
8377
|
-
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$
|
|
8377
|
+
validated === exports.ValidatedOptions.error && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8378
8378
|
React__namespace.createElement(ExclamationCircleIcon, { "aria-hidden": "true" }))),
|
|
8379
|
-
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$
|
|
8379
|
+
validated === exports.ValidatedOptions.warning && (React__namespace.createElement("span", { className: css(styles$_.selectToggleStatusIcon) },
|
|
8380
8380
|
React__namespace.createElement(ExclamationTriangleIcon, { "aria-hidden": "true" })))),
|
|
8381
8381
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
8382
8382
|
const getParentElement = () => {
|
|
@@ -8448,7 +8448,7 @@
|
|
|
8448
8448
|
};
|
|
8449
8449
|
|
|
8450
8450
|
Promise.resolve().then(function () { return inputGroup; });
|
|
8451
|
-
var styles$
|
|
8451
|
+
var styles$V = {
|
|
8452
8452
|
"formControl": "pf-c-form-control",
|
|
8453
8453
|
"inputGroup": "pf-c-input-group",
|
|
8454
8454
|
"inputGroupText": "pf-c-input-group__text",
|
|
@@ -8575,7 +8575,7 @@
|
|
|
8575
8575
|
const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
|
|
8576
8576
|
const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
|
|
8577
8577
|
const inputGroupRef = innerRef || React__namespace.useRef(null);
|
|
8578
|
-
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$
|
|
8578
|
+
return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$V.inputGroup, className) }, props), idItem
|
|
8579
8579
|
? React__namespace.Children.map(children, (child) => !formCtrls.includes(child.type.displayName) || child.props['aria-describedby']
|
|
8580
8580
|
? child
|
|
8581
8581
|
: React__namespace.cloneElement(child, {
|
|
@@ -8593,7 +8593,7 @@
|
|
|
8593
8593
|
const InputGroupText = (_a) => {
|
|
8594
8594
|
var { className = '', component = 'span', children, variant = exports.InputGroupTextVariant.default } = _a, props = __rest$1(_a, ["className", "component", "children", "variant"]);
|
|
8595
8595
|
const Component = component;
|
|
8596
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8596
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$V.inputGroupText, variant === exports.InputGroupTextVariant.plain && styles$V.modifiers.plain, className) }, props), children));
|
|
8597
8597
|
};
|
|
8598
8598
|
InputGroupText.displayName = 'InputGroupText';
|
|
8599
8599
|
|
|
@@ -8609,7 +8609,7 @@
|
|
|
8609
8609
|
const AngleLeftIcon = createIcon(AngleLeftIconConfig);
|
|
8610
8610
|
|
|
8611
8611
|
Promise.resolve().then(function () { return calendarMonth; });
|
|
8612
|
-
var styles$
|
|
8612
|
+
var styles$U = {
|
|
8613
8613
|
"calendarMonth": "pf-c-calendar-month",
|
|
8614
8614
|
"calendarMonthCalendar": "pf-c-calendar-month__calendar",
|
|
8615
8615
|
"calendarMonthDate": "pf-c-calendar-month__date",
|
|
@@ -8780,13 +8780,13 @@
|
|
|
8780
8780
|
const isHoveredDateValid = isValidated(hoveredDate);
|
|
8781
8781
|
const monthFormatted = monthFormat(focusedDate);
|
|
8782
8782
|
const yearFormatted = yearFormat(focusedDate);
|
|
8783
|
-
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$
|
|
8784
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8785
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8783
|
+
return (React__default["default"].createElement("div", Object.assign({ className: css(styles$U.calendarMonth, className) }, props),
|
|
8784
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeader },
|
|
8785
|
+
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.prevMonth) },
|
|
8786
8786
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": prevMonthAriaLabel, onClick: (ev) => onMonthClick(prevMonth, ev) },
|
|
8787
8787
|
React__default["default"].createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
8788
8788
|
React__default["default"].createElement(InputGroup, null,
|
|
8789
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8789
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderMonth },
|
|
8790
8790
|
React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
|
|
8791
8791
|
React__default["default"].createElement(Select
|
|
8792
8792
|
// Max width with "September"
|
|
@@ -8809,7 +8809,7 @@
|
|
|
8809
8809
|
onMonthChange(newDate, ev);
|
|
8810
8810
|
}, 0);
|
|
8811
8811
|
}, variant: "single", selections: monthFormatted }, longMonths.map((longMonth, index) => (React__default["default"].createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))),
|
|
8812
|
-
React__default["default"].createElement("div", { className: styles$
|
|
8812
|
+
React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderYear },
|
|
8813
8813
|
React__default["default"].createElement(TextInput, { "aria-label": yearInputAriaLabel, type: "number", value: yearFormatted, onChange: (year, ev) => {
|
|
8814
8814
|
const newDate = new Date(focusedDate);
|
|
8815
8815
|
newDate.setFullYear(+year);
|
|
@@ -8818,15 +8818,15 @@
|
|
|
8818
8818
|
setShouldFocus(false);
|
|
8819
8819
|
onMonthChange(newDate, ev);
|
|
8820
8820
|
} }))),
|
|
8821
|
-
React__default["default"].createElement("div", { className: css(styles$
|
|
8821
|
+
React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.nextMonth) },
|
|
8822
8822
|
React__default["default"].createElement(Button, { variant: "plain", "aria-label": nextMonthAriaLabel, onClick: (ev) => onMonthClick(nextMonth, ev) },
|
|
8823
8823
|
React__default["default"].createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
8824
|
-
React__default["default"].createElement("table", { className: styles$
|
|
8825
|
-
React__default["default"].createElement("thead", { className: styles$
|
|
8826
|
-
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$
|
|
8824
|
+
React__default["default"].createElement("table", { className: styles$U.calendarMonthCalendar },
|
|
8825
|
+
React__default["default"].createElement("thead", { className: styles$U.calendarMonthDays },
|
|
8826
|
+
React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$U.calendarMonthDay, scope: "col" },
|
|
8827
8827
|
React__default["default"].createElement("span", { className: "pf-screen-reader" }, longWeekdayFormat(date)),
|
|
8828
8828
|
React__default["default"].createElement("span", { "aria-hidden": true }, weekdayFormat(date))))))),
|
|
8829
|
-
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$
|
|
8829
|
+
React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$U.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {
|
|
8830
8830
|
const dayFormatted = dayFormat(date);
|
|
8831
8831
|
const isToday = isSameDate(date, today);
|
|
8832
8832
|
const isSelected = isValidDate(dateProp) && isSameDate(date, dateProp);
|
|
@@ -8847,15 +8847,15 @@
|
|
|
8847
8847
|
// Don't handle focused dates before start dates for now.
|
|
8848
8848
|
// Core would likely need new styles
|
|
8849
8849
|
}
|
|
8850
|
-
return (React__default["default"].createElement("td", { key: index, className: css(styles$
|
|
8851
|
-
React__default["default"].createElement("button", Object.assign({ className: css(styles$
|
|
8850
|
+
return (React__default["default"].createElement("td", { key: index, className: css(styles$U.calendarMonthDatesCell, isAdjacentMonth && styles$U.modifiers.adjacentMonth, isToday && styles$U.modifiers.current, (isSelected || isRangeStart) && styles$U.modifiers.selected, !isValid && styles$U.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles$U.modifiers.inRange, isRangeStart && styles$U.modifiers.startRange, isRangeEnd && styles$U.modifiers.endRange) },
|
|
8851
|
+
React__default["default"].createElement("button", Object.assign({ className: css(styles$U.calendarMonthDate, isRangeEnd && styles$U.modifiers.hover, !isValid && styles$U.modifiers.disabled), type: "button", onClick: () => onChange(date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, "aria-label": cellAriaLabel
|
|
8852
8852
|
? cellAriaLabel(date)
|
|
8853
8853
|
: `${dayFormat(date)} ${monthFormat(date)} ${yearFormat(date)}` }, (isFocused && { ref: focusRef })), dayFormatted)));
|
|
8854
8854
|
}))))))));
|
|
8855
8855
|
};
|
|
8856
8856
|
|
|
8857
8857
|
Promise.resolve().then(function () { return card; });
|
|
8858
|
-
var styles$
|
|
8858
|
+
var styles$T = {
|
|
8859
8859
|
"card": "pf-c-card",
|
|
8860
8860
|
"cardActions": "pf-c-card__actions",
|
|
8861
8861
|
"cardBody": "pf-c-card__body",
|
|
@@ -8908,13 +8908,13 @@
|
|
|
8908
8908
|
}
|
|
8909
8909
|
const getSelectableModifiers = () => {
|
|
8910
8910
|
if (isDisabledRaised) {
|
|
8911
|
-
return css(styles$
|
|
8911
|
+
return css(styles$T.modifiers.nonSelectableRaised);
|
|
8912
8912
|
}
|
|
8913
8913
|
if (isSelectableRaised) {
|
|
8914
|
-
return css(styles$
|
|
8914
|
+
return css(styles$T.modifiers.selectableRaised, isSelected && styles$T.modifiers.selectedRaised);
|
|
8915
8915
|
}
|
|
8916
8916
|
if (isSelectable || isHoverable) {
|
|
8917
|
-
return css(styles$
|
|
8917
|
+
return css(styles$T.modifiers.selectable, isSelected && styles$T.modifiers.selected);
|
|
8918
8918
|
}
|
|
8919
8919
|
return '';
|
|
8920
8920
|
};
|
|
@@ -8942,33 +8942,33 @@
|
|
|
8942
8942
|
isExpanded
|
|
8943
8943
|
} },
|
|
8944
8944
|
hasSelectableInput && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", id: `${id}-input` }, ariaProps, { type: "checkbox", checked: isSelected, onChange: event => onSelectableInputChange(id, event), disabled: isDisabledRaised, tabIndex: -1 }))),
|
|
8945
|
-
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
8945
|
+
React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$T.card, isCompact && styles$T.modifiers.compact, isExpanded && styles$T.modifiers.expanded, isFlat && styles$T.modifiers.flat, isRounded && styles$T.modifiers.rounded, isLarge && styles$T.modifiers.displayLg, isFullHeight && styles$T.modifiers.fullHeight, isPlain && styles$T.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
8946
8946
|
};
|
|
8947
8947
|
Card.displayName = 'Card';
|
|
8948
8948
|
|
|
8949
8949
|
const CardActions = (_a) => {
|
|
8950
8950
|
var { children = null, className = '', hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
8951
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8951
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardActions, hasNoOffset && styles$T.modifiers.noOffset, className) }, props), children));
|
|
8952
8952
|
};
|
|
8953
8953
|
CardActions.displayName = 'CardActions';
|
|
8954
8954
|
|
|
8955
8955
|
const CardBody = (_a) => {
|
|
8956
8956
|
var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
8957
8957
|
const Component = component;
|
|
8958
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8958
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardBody, !isFilled && styles$T.modifiers.noFill, className) }, props), children));
|
|
8959
8959
|
};
|
|
8960
8960
|
CardBody.displayName = 'CardBody';
|
|
8961
8961
|
|
|
8962
8962
|
const CardExpandableContent = (_a) => {
|
|
8963
8963
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8964
|
-
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8964
|
+
return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardExpandableContent, className) }, props), children)) : null));
|
|
8965
8965
|
};
|
|
8966
8966
|
CardExpandableContent.displayName = 'CardExpandableContent';
|
|
8967
8967
|
|
|
8968
8968
|
const CardFooter = (_a) => {
|
|
8969
8969
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
8970
8970
|
const Component = component;
|
|
8971
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8971
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardFooter, className) }, props), children));
|
|
8972
8972
|
};
|
|
8973
8973
|
CardFooter.displayName = 'CardFooter';
|
|
8974
8974
|
|
|
@@ -8981,20 +8981,20 @@
|
|
|
8981
8981
|
registerTitleId(titleId);
|
|
8982
8982
|
return () => registerTitleId('');
|
|
8983
8983
|
}, [registerTitleId, titleId]);
|
|
8984
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
8984
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardTitle, className), id: titleId || undefined }, props), children));
|
|
8985
8985
|
};
|
|
8986
8986
|
CardTitle.displayName = 'CardTitle';
|
|
8987
8987
|
|
|
8988
8988
|
const CardHeader = (_a) => {
|
|
8989
8989
|
var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
8990
8990
|
return (React__namespace.createElement(CardContext.Consumer, null, ({ cardId }) => {
|
|
8991
|
-
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$
|
|
8991
|
+
const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$T.cardHeaderToggle) },
|
|
8992
8992
|
React__namespace.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
|
|
8993
8993
|
onExpand(evt, cardId);
|
|
8994
8994
|
} }, toggleButtonProps),
|
|
8995
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
8995
|
+
React__namespace.createElement("span", { className: css(styles$T.cardHeaderToggleIcon) },
|
|
8996
8996
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
8997
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
8997
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardHeader, isToggleRightAligned && styles$T.modifiers.toggleRight, className), id: id }, props),
|
|
8998
8998
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
8999
8999
|
children,
|
|
9000
9000
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
@@ -9037,11 +9037,11 @@
|
|
|
9037
9037
|
checkedProps.defaultChecked = defaultChecked;
|
|
9038
9038
|
}
|
|
9039
9039
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
9040
|
-
return (React__namespace.createElement(Component, { className: css(styles$
|
|
9041
|
-
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
9042
|
-
label && (React__namespace.createElement("label", { className: css(styles$
|
|
9043
|
-
description && React__namespace.createElement("span", { className: css(styles$
|
|
9044
|
-
body && React__namespace.createElement("span", { className: css(styles$
|
|
9040
|
+
return (React__namespace.createElement(Component, { className: css(styles$Y.check, !label && styles$Y.modifiers.standalone, className) },
|
|
9041
|
+
React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$Y.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
9042
|
+
label && (React__namespace.createElement("label", { className: css(styles$Y.checkLabel, isDisabled && styles$Y.modifiers.disabled), htmlFor: props.id }, label)),
|
|
9043
|
+
description && React__namespace.createElement("span", { className: css(styles$Y.checkDescription) }, description),
|
|
9044
|
+
body && React__namespace.createElement("span", { className: css(styles$Y.checkBody) }, body)));
|
|
9045
9045
|
}
|
|
9046
9046
|
}
|
|
9047
9047
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -9056,7 +9056,7 @@
|
|
|
9056
9056
|
};
|
|
9057
9057
|
|
|
9058
9058
|
Promise.resolve().then(function () { return clipboardCopy; });
|
|
9059
|
-
var styles$
|
|
9059
|
+
var styles$S = {
|
|
9060
9060
|
"button": "pf-c-button",
|
|
9061
9061
|
"clipboardCopy": "pf-c-clipboard-copy",
|
|
9062
9062
|
"clipboardCopyActions": "pf-c-clipboard-copy__actions",
|
|
@@ -9075,7 +9075,7 @@
|
|
|
9075
9075
|
};
|
|
9076
9076
|
|
|
9077
9077
|
Promise.resolve().then(function () { return popover; });
|
|
9078
|
-
var styles$
|
|
9078
|
+
var styles$R = {
|
|
9079
9079
|
"button": "pf-c-button",
|
|
9080
9080
|
"modifiers": {
|
|
9081
9081
|
"noPadding": "pf-m-no-padding",
|
|
@@ -9115,25 +9115,25 @@
|
|
|
9115
9115
|
|
|
9116
9116
|
const PopoverContent = (_a) => {
|
|
9117
9117
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
9118
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9118
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverContent, className) }, props), children));
|
|
9119
9119
|
};
|
|
9120
9120
|
PopoverContent.displayName = 'PopoverContent';
|
|
9121
9121
|
|
|
9122
9122
|
const PopoverBody = (_a) => {
|
|
9123
9123
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
9124
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9124
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverBody, className), id: id }, props), children));
|
|
9125
9125
|
};
|
|
9126
9126
|
PopoverBody.displayName = 'PopoverBody';
|
|
9127
9127
|
|
|
9128
9128
|
const PopoverHeaderIcon = (_a) => {
|
|
9129
9129
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9130
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9130
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleIcon, className) }, props), children));
|
|
9131
9131
|
};
|
|
9132
9132
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
9133
9133
|
|
|
9134
9134
|
const PopoverHeaderText = (_a) => {
|
|
9135
9135
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9136
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9136
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleText, className) }, props), children));
|
|
9137
9137
|
};
|
|
9138
9138
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
9139
9139
|
|
|
@@ -9141,7 +9141,7 @@
|
|
|
9141
9141
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
9142
9142
|
const HeadingLevel = titleHeadingLevel;
|
|
9143
9143
|
return icon || alertSeverityVariant ? (React__namespace.createElement("header", Object.assign({ className: css('pf-c-popover__header', className), id: id }, props),
|
|
9144
|
-
React__namespace.createElement(HeadingLevel, { className: css(styles$
|
|
9144
|
+
React__namespace.createElement(HeadingLevel, { className: css(styles$R.popoverTitle, icon && styles$R.modifiers.icon) },
|
|
9145
9145
|
icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
|
|
9146
9146
|
alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
9147
9147
|
React__namespace.createElement(PopoverHeaderText, null, children)))) : (React__namespace.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: exports.TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -9150,7 +9150,7 @@
|
|
|
9150
9150
|
|
|
9151
9151
|
const PopoverFooter = (_a) => {
|
|
9152
9152
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9153
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
9153
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$R.popoverFooter, className) }, props), children));
|
|
9154
9154
|
};
|
|
9155
9155
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
9156
9156
|
|
|
@@ -9171,7 +9171,7 @@
|
|
|
9171
9171
|
|
|
9172
9172
|
const PopoverArrow = (_a) => {
|
|
9173
9173
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
9174
|
-
return React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9174
|
+
return React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverArrow, className) }, props));
|
|
9175
9175
|
};
|
|
9176
9176
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
9177
9177
|
|
|
@@ -9204,11 +9204,11 @@
|
|
|
9204
9204
|
PopoverPosition["rightEnd"] = "right-end";
|
|
9205
9205
|
})(exports.PopoverPosition || (exports.PopoverPosition = {}));
|
|
9206
9206
|
const alertStyle = {
|
|
9207
|
-
default: styles$
|
|
9208
|
-
info: styles$
|
|
9209
|
-
success: styles$
|
|
9210
|
-
warning: styles$
|
|
9211
|
-
danger: styles$
|
|
9207
|
+
default: styles$R.modifiers.default,
|
|
9208
|
+
info: styles$R.modifiers.info,
|
|
9209
|
+
success: styles$R.modifiers.success,
|
|
9210
|
+
warning: styles$R.modifiers.warning,
|
|
9211
|
+
danger: styles$R.modifiers.danger
|
|
9212
9212
|
};
|
|
9213
9213
|
const Popover = (_a) => {
|
|
9214
9214
|
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = c_popover_MinWidth && c_popover_MinWidth.value, maxWidth = c_popover_MaxWidth && c_popover_MaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
@@ -9272,18 +9272,18 @@
|
|
|
9272
9272
|
}, 0);
|
|
9273
9273
|
};
|
|
9274
9274
|
const positionModifiers = {
|
|
9275
|
-
top: styles$
|
|
9276
|
-
bottom: styles$
|
|
9277
|
-
left: styles$
|
|
9278
|
-
right: styles$
|
|
9279
|
-
'top-start': styles$
|
|
9280
|
-
'top-end': styles$
|
|
9281
|
-
'bottom-start': styles$
|
|
9282
|
-
'bottom-end': styles$
|
|
9283
|
-
'left-start': styles$
|
|
9284
|
-
'left-end': styles$
|
|
9285
|
-
'right-start': styles$
|
|
9286
|
-
'right-end': styles$
|
|
9275
|
+
top: styles$R.modifiers.top,
|
|
9276
|
+
bottom: styles$R.modifiers.bottom,
|
|
9277
|
+
left: styles$R.modifiers.left,
|
|
9278
|
+
right: styles$R.modifiers.right,
|
|
9279
|
+
'top-start': styles$R.modifiers.topLeft,
|
|
9280
|
+
'top-end': styles$R.modifiers.topRight,
|
|
9281
|
+
'bottom-start': styles$R.modifiers.bottomLeft,
|
|
9282
|
+
'bottom-end': styles$R.modifiers.bottomRight,
|
|
9283
|
+
'left-start': styles$R.modifiers.leftTop,
|
|
9284
|
+
'left-end': styles$R.modifiers.leftBottom,
|
|
9285
|
+
'right-start': styles$R.modifiers.rightTop,
|
|
9286
|
+
'right-end': styles$R.modifiers.rightBottom
|
|
9287
9287
|
};
|
|
9288
9288
|
const hasCustomMinWidth = minWidth !== c_popover_MinWidth.value;
|
|
9289
9289
|
const hasCustomMaxWidth = maxWidth !== c_popover_MaxWidth.value;
|
|
@@ -9360,7 +9360,7 @@
|
|
|
9360
9360
|
}
|
|
9361
9361
|
return node;
|
|
9362
9362
|
}
|
|
9363
|
-
}, preventScrollOnDeactivate: true, className: css(styles$
|
|
9363
|
+
}, preventScrollOnDeactivate: true, className: css(styles$R.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$R.modifiers.noPadding, hasAutoWidth && styles$R.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
|
|
9364
9364
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
9365
9365
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
9366
9366
|
opacity,
|
|
@@ -9419,7 +9419,7 @@
|
|
|
9419
9419
|
}
|
|
9420
9420
|
render() {
|
|
9421
9421
|
const _a = this.props, { className, children, onChange, isReadOnly, isCode } = _a, props = __rest$1(_a, ["className", "children", "onChange", "isReadOnly", "isCode"]);
|
|
9422
|
-
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$
|
|
9422
|
+
return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$S.clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? React__namespace.createElement("pre", null, children) : children));
|
|
9423
9423
|
}
|
|
9424
9424
|
}
|
|
9425
9425
|
ClipboardCopyExpanded.displayName = 'ClipboardCopyExpanded';
|
|
@@ -9479,12 +9479,12 @@
|
|
|
9479
9479
|
const textIdPrefix = 'text-input-';
|
|
9480
9480
|
const toggleIdPrefix = 'toggle-';
|
|
9481
9481
|
const contentIdPrefix = 'content-';
|
|
9482
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9482
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.clipboardCopy, variant === 'inline-compact' && styles$S.modifiers.inline, isBlock && styles$S.modifiers.block, this.state.expanded && styles$S.modifiers.expanded, className) }, divProps),
|
|
9483
9483
|
variant === 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9484
|
-
!isCode && (React__namespace.createElement("span", { className: css(styles$
|
|
9485
|
-
isCode && (React__namespace.createElement("code", { className: css(styles$
|
|
9486
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9487
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9484
|
+
!isCode && (React__namespace.createElement("span", { className: css(styles$S.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9485
|
+
isCode && (React__namespace.createElement("code", { className: css(styles$S.clipboardCopyText, styles$S.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
|
|
9486
|
+
React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActions) },
|
|
9487
|
+
React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActionsItem) },
|
|
9488
9488
|
React__namespace.createElement(ClipboardCopyButton, { variant: "plain", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
|
|
9489
9489
|
if (this.timer) {
|
|
9490
9490
|
window.clearTimeout(this.timer);
|
|
@@ -9500,7 +9500,7 @@
|
|
|
9500
9500
|
} }, this.state.copied ? clickTip : hoverTip)),
|
|
9501
9501
|
additionalActions && additionalActions))))),
|
|
9502
9502
|
variant !== 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
9503
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9503
|
+
React__namespace.createElement("div", { className: css(styles$S.clipboardCopyGroup) },
|
|
9504
9504
|
variant === 'expansion' && (React__namespace.createElement(ClipboardCopyToggle, { isExpanded: this.state.expanded, onClick: this.expandContent, id: `${toggleIdPrefix}${id}`, textId: `${textIdPrefix}${id}`, contentId: `${contentIdPrefix}${id}`, "aria-label": toggleAriaLabel })),
|
|
9505
9505
|
React__namespace.createElement(TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, "aria-label": textAriaLabel }),
|
|
9506
9506
|
React__namespace.createElement(ClipboardCopyButton, { exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
|
|
@@ -9549,12 +9549,12 @@
|
|
|
9549
9549
|
|
|
9550
9550
|
const ClipboardCopyAction = (_a) => {
|
|
9551
9551
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9552
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
9552
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$S.clipboardCopyActionsItem, className) }, props), children));
|
|
9553
9553
|
};
|
|
9554
9554
|
ClipboardCopyAction.displayName = 'ClipboardCopyAction';
|
|
9555
9555
|
|
|
9556
9556
|
Promise.resolve().then(function () { return codeBlock; });
|
|
9557
|
-
var styles$
|
|
9557
|
+
var styles$Q = {
|
|
9558
9558
|
"codeBlock": "pf-c-code-block",
|
|
9559
9559
|
"codeBlockActions": "pf-c-code-block__actions",
|
|
9560
9560
|
"codeBlockCode": "pf-c-code-block__code",
|
|
@@ -9565,17 +9565,17 @@
|
|
|
9565
9565
|
|
|
9566
9566
|
const CodeBlock = (_a) => {
|
|
9567
9567
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
9568
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9569
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9570
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9571
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9568
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.codeBlock, className) }, props),
|
|
9569
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockHeader) },
|
|
9570
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockActions) }, actions && actions)),
|
|
9571
|
+
React__namespace.createElement("div", { className: css(styles$Q.codeBlockContent) }, children)));
|
|
9572
9572
|
};
|
|
9573
9573
|
CodeBlock.displayName = 'CodeBlock';
|
|
9574
9574
|
|
|
9575
9575
|
const CodeBlockCode = (_a) => {
|
|
9576
9576
|
var { children = null, className, codeClassName } = _a, props = __rest$1(_a, ["children", "className", "codeClassName"]);
|
|
9577
|
-
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$
|
|
9578
|
-
React__namespace.createElement("code", { className: css(styles$
|
|
9577
|
+
return (React__namespace.createElement("pre", Object.assign({ className: css(styles$Q.codeBlockPre, className) }, props),
|
|
9578
|
+
React__namespace.createElement("code", { className: css(styles$Q.codeBlockCode, codeClassName) }, children)));
|
|
9579
9579
|
};
|
|
9580
9580
|
CodeBlockCode.displayName = 'CodeBlockCode';
|
|
9581
9581
|
|
|
@@ -9586,7 +9586,7 @@
|
|
|
9586
9586
|
CodeBlockAction.displayName = 'CodeBlockAction';
|
|
9587
9587
|
|
|
9588
9588
|
Promise.resolve().then(function () { return contextSelector; });
|
|
9589
|
-
var styles$
|
|
9589
|
+
var styles$P = {
|
|
9590
9590
|
"contextSelector": "pf-c-context-selector",
|
|
9591
9591
|
"contextSelectorMenu": "pf-c-context-selector__menu",
|
|
9592
9592
|
"contextSelectorMenuFooter": "pf-c-context-selector__menu-footer",
|
|
@@ -9672,9 +9672,9 @@
|
|
|
9672
9672
|
isActive, onEnter, parentRef } = _a,
|
|
9673
9673
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
9674
9674
|
props = __rest$1(_a, ["className", "toggleText", "isOpen", "onToggle", "id", "isPlain", "isText", "isActive", "onEnter", "parentRef"]);
|
|
9675
|
-
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$
|
|
9676
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9677
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
9675
|
+
return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$P.contextSelectorToggle, isActive && styles$P.modifiers.active, isPlain && styles$P.modifiers.plain, isText && styles$P.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
|
|
9676
|
+
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleText) }, toggleText),
|
|
9677
|
+
React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleIcon) },
|
|
9678
9678
|
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
9679
9679
|
}
|
|
9680
9680
|
}
|
|
@@ -9700,7 +9700,7 @@
|
|
|
9700
9700
|
this.render = () => {
|
|
9701
9701
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9702
9702
|
const _a = this.props, { className, isOpen, children } = _a, props = __rest$1(_a, ["className", "isOpen", "children"]);
|
|
9703
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
9703
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$P.contextSelectorMenuList, className), hidden: !isOpen, role: "menu" }, props), this.extendChildren()));
|
|
9704
9704
|
};
|
|
9705
9705
|
}
|
|
9706
9706
|
extendChildren() {
|
|
@@ -9742,8 +9742,8 @@
|
|
|
9742
9742
|
const uniqueId = id || getUniqueId();
|
|
9743
9743
|
const toggleId = `pf-context-selector-toggle-id-${uniqueId}`;
|
|
9744
9744
|
const screenReaderLabelId = `pf-context-selector-label-id-${uniqueId}`;
|
|
9745
|
-
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9746
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
9745
|
+
const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelectorMenu) }, (isFlipEnabled && { style: { position: 'revert' } }), { id: uniqueId }), isOpen && (React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } } },
|
|
9746
|
+
React__namespace.createElement("div", { className: css(styles$P.contextSelectorMenuSearch) },
|
|
9747
9747
|
React__namespace.createElement(InputGroup, null,
|
|
9748
9748
|
React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-label": searchButtonAriaLabel }),
|
|
9749
9749
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, onClick: onSearchButtonClick },
|
|
@@ -9751,8 +9751,8 @@
|
|
|
9751
9751
|
React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
|
|
9752
9752
|
React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
|
|
9753
9753
|
footer))));
|
|
9754
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9755
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
9754
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
|
|
9755
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, isFullHeight && styles$P.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
9756
9756
|
screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
|
|
9757
9757
|
React__namespace.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: menuAppendTo === 'inline' ? this.parentRef : this.popperRef, "aria-labelledby": `${screenReaderLabelId} ${toggleId}`, isPlain: isPlain, isText: isText }),
|
|
9758
9758
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
@@ -9803,7 +9803,7 @@
|
|
|
9803
9803
|
const Component = href ? 'a' : 'button';
|
|
9804
9804
|
const isDisabledLink = href && isDisabled;
|
|
9805
9805
|
return (React__namespace.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (React__namespace.createElement("li", { role: "none" },
|
|
9806
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
9806
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$P.contextSelectorMenuListItem, isDisabledLink && styles$P.modifiers.disabled, className), ref: this.ref, onClick: event => {
|
|
9807
9807
|
if (!isDisabled) {
|
|
9808
9808
|
onClick(event);
|
|
9809
9809
|
onSelect(event, children);
|
|
@@ -9824,12 +9824,12 @@
|
|
|
9824
9824
|
|
|
9825
9825
|
const ContextSelectorFooter = (_a) => {
|
|
9826
9826
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
9827
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
9827
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$P.contextSelectorMenuFooter, className) }), children));
|
|
9828
9828
|
};
|
|
9829
9829
|
ContextSelectorFooter.displayName = 'ContextSelectorFooter';
|
|
9830
9830
|
|
|
9831
9831
|
Promise.resolve().then(function () { return dataList; });
|
|
9832
|
-
var styles$
|
|
9832
|
+
var styles$O = {
|
|
9833
9833
|
"dataList": "pf-c-data-list",
|
|
9834
9834
|
"dataListAction": "pf-c-data-list__action",
|
|
9835
9835
|
"dataListCell": "pf-c-data-list__cell",
|
|
@@ -9966,7 +9966,7 @@
|
|
|
9966
9966
|
this.dragStart0 = (el) => {
|
|
9967
9967
|
const { onDragStart } = this.props;
|
|
9968
9968
|
const draggedItemId = el.id;
|
|
9969
|
-
el.classList.add(styles$
|
|
9969
|
+
el.classList.add(styles$O.modifiers.ghostRow);
|
|
9970
9970
|
el.setAttribute('aria-pressed', 'true');
|
|
9971
9971
|
this.setState({
|
|
9972
9972
|
draggedItemId,
|
|
@@ -9982,8 +9982,8 @@
|
|
|
9982
9982
|
this.onDragCancel = () => {
|
|
9983
9983
|
this.move(this.props.itemOrder);
|
|
9984
9984
|
Array.from(this.ref.current.children).forEach(el => {
|
|
9985
|
-
el.classList.remove(styles$
|
|
9986
|
-
el.classList.remove(styles$
|
|
9985
|
+
el.classList.remove(styles$O.modifiers.ghostRow);
|
|
9986
|
+
el.classList.remove(styles$O.modifiers.dragOver);
|
|
9987
9987
|
el.setAttribute('aria-pressed', 'false');
|
|
9988
9988
|
});
|
|
9989
9989
|
this.setState({
|
|
@@ -10005,8 +10005,8 @@
|
|
|
10005
10005
|
}
|
|
10006
10006
|
};
|
|
10007
10007
|
this.dragEnd0 = (el) => {
|
|
10008
|
-
el.classList.remove(styles$
|
|
10009
|
-
el.classList.remove(styles$
|
|
10008
|
+
el.classList.remove(styles$O.modifiers.ghostRow);
|
|
10009
|
+
el.classList.remove(styles$O.modifiers.dragOver);
|
|
10010
10010
|
el.setAttribute('aria-pressed', 'false');
|
|
10011
10011
|
this.setState({
|
|
10012
10012
|
draggedItemId: null,
|
|
@@ -10085,14 +10085,14 @@
|
|
|
10085
10085
|
const nextSelection = dragItem.previousSibling;
|
|
10086
10086
|
if (nextSelection) {
|
|
10087
10087
|
this.dragOver0(nextSelection.id);
|
|
10088
|
-
dragItem.querySelector(`.${styles$
|
|
10088
|
+
dragItem.querySelector(`.${styles$O.dataListItemDraggableButton}`).focus();
|
|
10089
10089
|
}
|
|
10090
10090
|
}
|
|
10091
10091
|
else if (evt.key === 'ArrowDown') {
|
|
10092
10092
|
const nextSelection = dragItem.nextSibling;
|
|
10093
10093
|
if (nextSelection) {
|
|
10094
10094
|
this.dragOver0(nextSelection.id);
|
|
10095
|
-
dragItem.querySelector(`.${styles$
|
|
10095
|
+
dragItem.querySelector(`.${styles$O.dataListItemDraggableButton}`).focus();
|
|
10096
10096
|
}
|
|
10097
10097
|
}
|
|
10098
10098
|
}
|
|
@@ -10143,7 +10143,7 @@
|
|
|
10143
10143
|
drop: this.drop,
|
|
10144
10144
|
dragKeyHandler: this.handleDragButtonKeys
|
|
10145
10145
|
} },
|
|
10146
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
10146
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$O.dataList, isCompact && styles$O.modifiers.compact, gridBreakpointClasses[gridBreakpoint], wrapModifier && styles$O.modifiers[wrapModifier], dragging && styles$O.modifiers.dragOver, className), style: props.style }, props, dragProps, { ref: this.ref }), children)));
|
|
10147
10147
|
}
|
|
10148
10148
|
}
|
|
10149
10149
|
DataList.displayName = 'DataList';
|
|
@@ -10162,13 +10162,13 @@
|
|
|
10162
10162
|
id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isPlainButtonAction } = _a,
|
|
10163
10163
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
10164
10164
|
props = __rest$1(_a, ["children", "className", "visibility", "id", 'aria-label', 'aria-labelledby', "isPlainButtonAction"]);
|
|
10165
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10165
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemAction, formatBreakpointMods(visibility, styles$O), className) }, props), isPlainButtonAction ? React__namespace.createElement("div", { className: css(styles$O.dataListAction) }, children) : children));
|
|
10166
10166
|
};
|
|
10167
10167
|
DataListAction.displayName = 'DataListAction';
|
|
10168
10168
|
|
|
10169
10169
|
const DataListCell = (_a) => {
|
|
10170
10170
|
var { children = null, className = '', width = 1, isFilled = true, alignRight = false, isIcon = false, wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "width", "isFilled", "alignRight", "isIcon", "wrapModifier"]);
|
|
10171
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10171
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListCell, width > 1 && styles$O.modifiers[`flex_${width}`], !isFilled && styles$O.modifiers.noFill, alignRight && styles$O.modifiers.alignRight, isIcon && styles$O.modifiers.icon, className, wrapModifier && styles$O.modifiers[wrapModifier]) }, props), children));
|
|
10172
10172
|
};
|
|
10173
10173
|
DataListCell.displayName = 'DataListCell';
|
|
10174
10174
|
|
|
@@ -10176,17 +10176,17 @@
|
|
|
10176
10176
|
var { className = '',
|
|
10177
10177
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10178
10178
|
onChange = (checked, event) => { }, isValid = true, isDisabled = false, isChecked = false, checked = false, defaultChecked, otherControls = false } = _a, props = __rest$1(_a, ["className", "onChange", "isValid", "isDisabled", "isChecked", "checked", "defaultChecked", "otherControls"]);
|
|
10179
|
-
const check = (React__namespace.createElement("div", { className: css(styles$
|
|
10179
|
+
const check = (React__namespace.createElement("div", { className: css(styles$O.dataListCheck) },
|
|
10180
10180
|
React__namespace.createElement("input", Object.assign({}, props, { type: "checkbox", onChange: event => onChange(event.currentTarget.checked, event), "aria-invalid": !isValid, disabled: isDisabled }, ([true, false].includes(defaultChecked) && { defaultChecked }), (![true, false].includes(defaultChecked) && { checked: isChecked || checked })))));
|
|
10181
10181
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10182
|
-
!otherControls && React__namespace.createElement("div", { className: css(styles$
|
|
10182
|
+
!otherControls && React__namespace.createElement("div", { className: css(styles$O.dataListItemControl, className) }, check),
|
|
10183
10183
|
otherControls && check));
|
|
10184
10184
|
};
|
|
10185
10185
|
DataListCheck.displayName = 'DataListCheck';
|
|
10186
10186
|
|
|
10187
10187
|
const DataListControl = (_a) => {
|
|
10188
10188
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10189
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10189
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemControl, className) }, props), children));
|
|
10190
10190
|
};
|
|
10191
10191
|
DataListControl.displayName = 'DataListControl';
|
|
10192
10192
|
|
|
@@ -10203,8 +10203,8 @@
|
|
|
10203
10203
|
|
|
10204
10204
|
const DataListDragButton = (_a) => {
|
|
10205
10205
|
var { className = '', isDisabled = false } = _a, props = __rest$1(_a, ["className", "isDisabled"]);
|
|
10206
|
-
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
10207
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10206
|
+
return (React__namespace.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (React__namespace.createElement("button", Object.assign({ className: css(styles$O.dataListItemDraggableButton, isDisabled && styles$O.modifiers.disabled, className), onKeyDown: dragKeyHandler, type: "button", disabled: isDisabled }, props),
|
|
10207
|
+
React__namespace.createElement("span", { className: css(styles$O.dataListItemDraggableIcon) },
|
|
10208
10208
|
React__namespace.createElement(GripVerticalIcon, null))))));
|
|
10209
10209
|
};
|
|
10210
10210
|
DataListDragButton.displayName = 'DataListDragButton';
|
|
@@ -10234,8 +10234,8 @@
|
|
|
10234
10234
|
let target = event.target;
|
|
10235
10235
|
while (event.currentTarget !== target) {
|
|
10236
10236
|
if (('onclick' in target && target.onclick) ||
|
|
10237
|
-
target.parentNode.classList.contains(styles$
|
|
10238
|
-
target.parentNode.classList.contains(styles$
|
|
10237
|
+
target.parentNode.classList.contains(styles$O.dataListItemAction) ||
|
|
10238
|
+
target.parentNode.classList.contains(styles$O.dataListItemControl)) {
|
|
10239
10239
|
// check other event handlers are not present.
|
|
10240
10240
|
return;
|
|
10241
10241
|
}
|
|
@@ -10264,7 +10264,7 @@
|
|
|
10264
10264
|
const selectableInputAriaProps = selectableInputAriaLabel
|
|
10265
10265
|
? { 'aria-label': selectableInputAriaLabel }
|
|
10266
10266
|
: { 'aria-labelledby': ariaLabelledBy };
|
|
10267
|
-
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$
|
|
10267
|
+
return (React__namespace.createElement("li", Object.assign({ id: id, className: css(styles$O.dataListItem, isExpanded && styles$O.modifiers.expanded, isSelectable && styles$O.modifiers.selectable, selectedDataListItemId && isSelected && styles$O.modifiers.selected, className), "aria-labelledby": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && isSelected && { 'aria-selected': true }), props, dragProps),
|
|
10268
10268
|
selectableRow && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", type: "radio", checked: isSelected, onChange: event => selectableRow.onChange(id, event), tabIndex: -1 }, selectableInputAriaProps))),
|
|
10269
10269
|
React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10270
10270
|
React__namespace.cloneElement(child, {
|
|
@@ -10286,13 +10286,13 @@
|
|
|
10286
10286
|
var { className = '', dataListCells,
|
|
10287
10287
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10288
10288
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "dataListCells", "rowid"]);
|
|
10289
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10289
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemContent, className) }, props), dataListCells));
|
|
10290
10290
|
};
|
|
10291
10291
|
DataListItemCells.displayName = 'DataListItemCells';
|
|
10292
10292
|
|
|
10293
10293
|
const DataListItemRow = (_a) => {
|
|
10294
10294
|
var { children, className = '', rowid = '', wrapModifier = null } = _a, props = __rest$1(_a, ["children", "className", "rowid", "wrapModifier"]);
|
|
10295
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10295
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemRow, className, wrapModifier && styles$O.modifiers[wrapModifier]) }, props), React__namespace.Children.map(children, child => React__namespace.isValidElement(child) &&
|
|
10296
10296
|
React__namespace.cloneElement(child, {
|
|
10297
10297
|
rowid
|
|
10298
10298
|
}))));
|
|
@@ -10301,10 +10301,10 @@
|
|
|
10301
10301
|
|
|
10302
10302
|
const DataListToggle = (_a) => {
|
|
10303
10303
|
var { className = '', isExpanded = false, 'aria-controls': ariaControls = '', 'aria-label': ariaLabel = 'Details', rowid = '', id } = _a, props = __rest$1(_a, ["className", "isExpanded", 'aria-controls', 'aria-label', "rowid", "id"]);
|
|
10304
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10305
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10304
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$O.dataListItemControl, className) }, props),
|
|
10305
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListToggle) },
|
|
10306
10306
|
React__namespace.createElement(Button, { id: id, variant: exports.ButtonVariant.plain, "aria-controls": ariaControls !== '' && ariaControls, "aria-label": ariaLabel, "aria-labelledby": ariaLabel !== 'Details' ? null : `${rowid} ${id}`, "aria-expanded": isExpanded },
|
|
10307
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10307
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListToggleIcon) },
|
|
10308
10308
|
React__namespace.createElement(AngleRightIcon, null))))));
|
|
10309
10309
|
};
|
|
10310
10310
|
DataListToggle.displayName = 'DataListToggle';
|
|
@@ -10313,8 +10313,8 @@
|
|
|
10313
10313
|
var { className = '', children = null, id = '', isHidden = false, 'aria-label': ariaLabel, hasNoPadding = false,
|
|
10314
10314
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10315
10315
|
rowid = '' } = _a, props = __rest$1(_a, ["className", "children", "id", "isHidden", 'aria-label', "hasNoPadding", "rowid"]);
|
|
10316
|
-
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$
|
|
10317
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10316
|
+
return (React__namespace.createElement("section", Object.assign({ id: id, className: css(styles$O.dataListExpandableContent, className), hidden: isHidden, "aria-label": ariaLabel }, props),
|
|
10317
|
+
React__namespace.createElement("div", { className: css(styles$O.dataListExpandableContentBody, hasNoPadding && styles$O.modifiers.noPadding) }, children)));
|
|
10318
10318
|
};
|
|
10319
10319
|
DataListContent.displayName = 'DataListContent';
|
|
10320
10320
|
|
|
@@ -10331,7 +10331,7 @@
|
|
|
10331
10331
|
}
|
|
10332
10332
|
onMouseEnterProp(event);
|
|
10333
10333
|
};
|
|
10334
|
-
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$
|
|
10334
|
+
const text = (React__namespace.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: css(className, wrapModifier && styles$O.modifiers[wrapModifier], styles$O.dataListText) }, props), children));
|
|
10335
10335
|
return tooltip !== '' ? (React__namespace.createElement(Tooltip, { content: tooltip, isVisible: true }, text)) : (text);
|
|
10336
10336
|
};
|
|
10337
10337
|
DataListText.displayName = 'DataListText';
|
|
@@ -10472,7 +10472,7 @@
|
|
|
10472
10472
|
DatePicker.displayName = 'DatePicker';
|
|
10473
10473
|
|
|
10474
10474
|
Promise.resolve().then(function () { return descriptionList; });
|
|
10475
|
-
var styles$
|
|
10475
|
+
var styles$N = {
|
|
10476
10476
|
"card": "pf-c-card",
|
|
10477
10477
|
"descriptionList": "pf-c-description-list",
|
|
10478
10478
|
"descriptionListDescription": "pf-c-description-list__description",
|
|
@@ -10538,45 +10538,45 @@
|
|
|
10538
10538
|
if (isHorizontal && horizontalTermWidthModifier) {
|
|
10539
10539
|
style = Object.assign(Object.assign({}, style), setBreakpointModifiers('--pf-c-description-list--m-horizontal__term--width', horizontalTermWidthModifier));
|
|
10540
10540
|
}
|
|
10541
|
-
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$
|
|
10541
|
+
return (React__namespace.createElement("dl", Object.assign({ className: css(styles$N.descriptionList, (isHorizontal || isFluid) && styles$N.modifiers.horizontal, isAutoColumnWidths && styles$N.modifiers.autoColumnWidths, isAutoFit && styles$N.modifiers.autoFit, formatBreakpointMods(columnModifier, styles$N), formatBreakpointMods(orientation, styles$N), isInlineGrid && styles$N.modifiers.inlineGrid, isCompact && styles$N.modifiers.compact, isFluid && styles$N.modifiers.fluid, isFillColumns && styles$N.modifiers.fillColumns, displaySize === 'lg' && styles$N.modifiers.displayLg, displaySize === '2xl' && styles$N.modifiers.display_2xl, className), style: style }, props), children));
|
|
10542
10542
|
};
|
|
10543
10543
|
DescriptionList.displayName = 'DescriptionList';
|
|
10544
10544
|
|
|
10545
10545
|
const DescriptionListDescription = (_a) => {
|
|
10546
10546
|
var { children = null, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10547
|
-
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$
|
|
10547
|
+
return (React__namespace.createElement("dd", Object.assign({ className: css(styles$N.descriptionListDescription, className) }, props),
|
|
10548
10548
|
React__namespace.createElement("div", { className: 'pf-c-description-list__text' }, children)));
|
|
10549
10549
|
};
|
|
10550
10550
|
DescriptionListDescription.displayName = 'DescriptionListDescription';
|
|
10551
10551
|
|
|
10552
10552
|
const DescriptionListGroup = (_a) => {
|
|
10553
10553
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10554
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10554
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$N.descriptionListGroup, className) }, props), children));
|
|
10555
10555
|
};
|
|
10556
10556
|
DescriptionListGroup.displayName = 'DescriptionListGroup';
|
|
10557
10557
|
|
|
10558
10558
|
const DescriptionListTerm = (_a) => {
|
|
10559
10559
|
var { children, className, icon } = _a, props = __rest$1(_a, ["children", "className", "icon"]);
|
|
10560
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10561
|
-
icon ? React__namespace.createElement("span", { className: css(styles$
|
|
10562
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
10560
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$N.descriptionListTerm, className) }, props),
|
|
10561
|
+
icon ? React__namespace.createElement("span", { className: css(styles$N.descriptionListTermIcon) }, icon) : null,
|
|
10562
|
+
React__namespace.createElement("span", { className: css(styles$N.descriptionListText) }, children)));
|
|
10563
10563
|
};
|
|
10564
10564
|
DescriptionListTerm.displayName = 'DescriptionListTerm';
|
|
10565
10565
|
|
|
10566
10566
|
const DescriptionListTermHelpText = (_a) => {
|
|
10567
10567
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10568
|
-
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$
|
|
10568
|
+
return (React__namespace.createElement("dt", Object.assign({ className: css(styles$N.descriptionListTerm, className) }, props), children));
|
|
10569
10569
|
};
|
|
10570
10570
|
DescriptionListTermHelpText.displayName = 'DescriptionListTermHelpText';
|
|
10571
10571
|
|
|
10572
10572
|
const DescriptionListTermHelpTextButton = (_a) => {
|
|
10573
10573
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
10574
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$
|
|
10574
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(className, styles$N.descriptionListText, styles$N.modifiers.helpText), role: "button", type: "button", tabIndex: 0 }, props), children));
|
|
10575
10575
|
};
|
|
10576
10576
|
DescriptionListTermHelpTextButton.displayName = 'DescriptionListTermHelpTextButton';
|
|
10577
10577
|
|
|
10578
10578
|
Promise.resolve().then(function () { return drawer; });
|
|
10579
|
-
var styles$
|
|
10579
|
+
var styles$M = {
|
|
10580
10580
|
"drawer": "pf-c-drawer",
|
|
10581
10581
|
"drawerActions": "pf-c-drawer__actions",
|
|
10582
10582
|
"drawerBody": "pf-c-drawer__body",
|
|
@@ -10657,7 +10657,7 @@
|
|
|
10657
10657
|
const drawerRef = React__namespace.useRef();
|
|
10658
10658
|
const drawerContentRef = React__namespace.useRef();
|
|
10659
10659
|
return (React__namespace.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
10660
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10660
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawer, isExpanded && styles$M.modifiers.expanded, isInline && styles$M.modifiers.inline, isStatic && styles$M.modifiers.static, position === 'left' && styles$M.modifiers.panelLeft, position === 'bottom' && styles$M.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
10661
10661
|
};
|
|
10662
10662
|
Drawer.displayName = 'Drawer';
|
|
10663
10663
|
|
|
@@ -10665,7 +10665,7 @@
|
|
|
10665
10665
|
var {
|
|
10666
10666
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10667
10667
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10668
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10668
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerActions, className) }, props), children));
|
|
10669
10669
|
};
|
|
10670
10670
|
DrawerActions.displayName = 'DrawerActions';
|
|
10671
10671
|
|
|
@@ -10673,7 +10673,7 @@
|
|
|
10673
10673
|
var {
|
|
10674
10674
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10675
10675
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
10676
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10676
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerClose, className) }, props),
|
|
10677
10677
|
React__namespace.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
10678
10678
|
React__namespace.createElement(TimesIcon, null))));
|
|
10679
10679
|
};
|
|
@@ -10683,7 +10683,7 @@
|
|
|
10683
10683
|
var {
|
|
10684
10684
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10685
10685
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
10686
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10686
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerMain, className) }, props), children));
|
|
10687
10687
|
};
|
|
10688
10688
|
DrawerMain.displayName = 'DrawerMain';
|
|
10689
10689
|
|
|
@@ -10693,7 +10693,7 @@
|
|
|
10693
10693
|
className = '', children, panelContent, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
10694
10694
|
const { drawerContentRef } = React__namespace.useContext(DrawerContext);
|
|
10695
10695
|
return (React__namespace.createElement(DrawerMain, null,
|
|
10696
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10696
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerContent, colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
10697
10697
|
panelContent));
|
|
10698
10698
|
};
|
|
10699
10699
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -10702,7 +10702,7 @@
|
|
|
10702
10702
|
var {
|
|
10703
10703
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10704
10704
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
10705
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10705
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerBody, hasPadding && styles$M.modifiers.padding, className) }, props), children));
|
|
10706
10706
|
};
|
|
10707
10707
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
10708
10708
|
|
|
@@ -10710,7 +10710,7 @@
|
|
|
10710
10710
|
var {
|
|
10711
10711
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10712
10712
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10713
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10713
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerBody, hasNoPadding && styles$M.modifiers.noPadding, className) }, props), children));
|
|
10714
10714
|
};
|
|
10715
10715
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
10716
10716
|
|
|
@@ -10719,7 +10719,7 @@
|
|
|
10719
10719
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10720
10720
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
10721
10721
|
return (React__namespace.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
10722
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10722
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerHead, className) }, props), children)));
|
|
10723
10723
|
};
|
|
10724
10724
|
DrawerHead.displayName = 'DrawerHead';
|
|
10725
10725
|
|
|
@@ -10787,7 +10787,7 @@
|
|
|
10787
10787
|
e.preventDefault();
|
|
10788
10788
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
10789
10789
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
10790
|
-
drawerRef.current.classList.add(css(styles$
|
|
10790
|
+
drawerRef.current.classList.add(css(styles$M.modifiers.resizing));
|
|
10791
10791
|
isResizing = true;
|
|
10792
10792
|
setInitialVals = true;
|
|
10793
10793
|
};
|
|
@@ -10835,7 +10835,7 @@
|
|
|
10835
10835
|
if (!isResizing) {
|
|
10836
10836
|
return;
|
|
10837
10837
|
}
|
|
10838
|
-
drawerRef.current.classList.remove(css(styles$
|
|
10838
|
+
drawerRef.current.classList.remove(css(styles$M.modifiers.resizing));
|
|
10839
10839
|
isResizing = false;
|
|
10840
10840
|
onResize && onResize(currWidth, id);
|
|
10841
10841
|
setInitialVals = true;
|
|
@@ -10906,7 +10906,7 @@
|
|
|
10906
10906
|
if (maxSize) {
|
|
10907
10907
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
10908
10908
|
}
|
|
10909
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$
|
|
10909
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React__namespace.createElement("div", Object.assign({ id: id || panelId, className: css(styles$M.drawerPanel, isResizable && styles$M.modifiers.resizable, hasNoBorder && styles$M.modifiers.noBorder, formatBreakpointMods(widths, styles$M), colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
|
|
10910
10910
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
10911
10911
|
onExpand();
|
|
10912
10912
|
}
|
|
@@ -10915,9 +10915,9 @@
|
|
|
10915
10915
|
style: boundaryCssVars
|
|
10916
10916
|
}), props), isExpandedInternal && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10917
10917
|
isResizable && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
10918
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10919
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10920
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
10918
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerSplitter, position !== 'bottom' && styles$M.modifiers.vertical), role: "separator", tabIndex: 0, "aria-orientation": position === 'bottom' ? 'horizontal' : 'vertical', "aria-label": resizeAriaLabel, "aria-valuenow": separatorValue, "aria-valuemin": 0, "aria-valuemax": 100, "aria-controls": id || panelId, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart, ref: splitterRef },
|
|
10919
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerSplitterHandle), "aria-hidden": true })),
|
|
10920
|
+
React__namespace.createElement("div", { className: css(styles$M.drawerPanelMain) }, children))),
|
|
10921
10921
|
!isResizable && children))))));
|
|
10922
10922
|
};
|
|
10923
10923
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -10926,12 +10926,12 @@
|
|
|
10926
10926
|
var {
|
|
10927
10927
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10928
10928
|
className = '', children, colorVariant = exports.DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "colorVariant"]);
|
|
10929
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
10929
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$M.drawerSection, colorVariant === exports.DrawerColorVariant.light200 && styles$M.modifiers.light_200, className) }, props), children));
|
|
10930
10930
|
};
|
|
10931
10931
|
DrawerSection.displayName = 'DrawerSection';
|
|
10932
10932
|
|
|
10933
10933
|
Promise.resolve().then(function () { return dualListSelector; });
|
|
10934
|
-
var styles$
|
|
10934
|
+
var styles$L = {
|
|
10935
10935
|
"badge": "pf-c-badge",
|
|
10936
10936
|
"button": "pf-c-button",
|
|
10937
10937
|
"dualListSelector": "pf-c-dual-list-selector",
|
|
@@ -11074,16 +11074,16 @@
|
|
|
11074
11074
|
React__namespace.useEffect(() => {
|
|
11075
11075
|
setIsExpanded(defaultExpanded);
|
|
11076
11076
|
}, [defaultExpanded]);
|
|
11077
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11078
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11079
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11077
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$L.dualListSelectorListItem, className, children && styles$L.modifiers.expandable, isExpanded && styles$L.modifiers.expanded, isDisabled && styles$L.modifiers.disabled), id: id }, props, { "aria-selected": isChecked, role: "treeitem" }, (isExpanded && { 'aria-expanded': 'true' })),
|
|
11078
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorListItemRow, isChecked && styles$L.modifiers.selected, styles$L.modifiers.check) },
|
|
11079
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorItem), ref: ref, tabIndex: -1, onClick: isDisabled
|
|
11080
11080
|
? undefined
|
|
11081
11081
|
: evt => {
|
|
11082
11082
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11083
11083
|
setFocusedOption(id);
|
|
11084
11084
|
} },
|
|
11085
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11086
|
-
children && (React__namespace.createElement("div", { className: css(styles$
|
|
11085
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemMain) },
|
|
11086
|
+
children && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorItemToggle), onClick: e => {
|
|
11087
11087
|
if (children) {
|
|
11088
11088
|
setIsExpanded(!isExpanded);
|
|
11089
11089
|
}
|
|
@@ -11094,9 +11094,9 @@
|
|
|
11094
11094
|
e.preventDefault();
|
|
11095
11095
|
}
|
|
11096
11096
|
}, tabIndex: -1 },
|
|
11097
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11097
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemToggleIcon) },
|
|
11098
11098
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true })))),
|
|
11099
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11099
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemCheck) },
|
|
11100
11100
|
React__namespace.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
|
|
11101
11101
|
onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
|
|
11102
11102
|
setFocusedOption(id);
|
|
@@ -11107,8 +11107,8 @@
|
|
|
11107
11107
|
e.preventDefault();
|
|
11108
11108
|
}
|
|
11109
11109
|
}, ref: elem => elem && (elem.indeterminate = isChecked === null), checked: isChecked || false, tabIndex: -1 }, checkProps))),
|
|
11110
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11111
|
-
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$
|
|
11110
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemText) }, text),
|
|
11111
|
+
hasBadge && children && (React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemCount) },
|
|
11112
11112
|
React__namespace.createElement(Badge, Object.assign({}, badgeProps), flattenTree(children.props.data).length)))))),
|
|
11113
11113
|
isExpanded && children));
|
|
11114
11114
|
};
|
|
@@ -11137,7 +11137,7 @@
|
|
|
11137
11137
|
const tree = dataToRender.map(item => (React__namespace.createElement(DualListSelectorTreeItem, Object.assign({ key: item.id, text: item.text, id: item.id, defaultExpanded: item.defaultExpanded !== undefined ? item.defaultExpanded : defaultAllExpanded, onOptionCheck: onOptionCheck, isChecked: item.isChecked, checkProps: item.checkProps, hasBadge: item.hasBadge !== undefined ? item.hasBadge : hasBadges, badgeProps: item.badgeProps, itemData: item, isDisabled: isDisabled, useMemo: true }, (item.children && {
|
|
11138
11138
|
children: (React__namespace.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
|
|
11139
11139
|
})))));
|
|
11140
|
-
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11140
|
+
return isNested ? (React__namespace.createElement("ul", Object.assign({ className: css(styles$L.dualListSelectorList), role: "group" }, props), tree)) : (React__namespace.createElement(React__namespace.Fragment, null, tree));
|
|
11141
11141
|
};
|
|
11142
11142
|
DualListSelectorTree.displayName = 'DualListSelectorTree';
|
|
11143
11143
|
|
|
@@ -11147,7 +11147,7 @@
|
|
|
11147
11147
|
draggableButtonAriaLabel = 'Reorder option' } = _a, props = __rest$1(_a, ["onOptionSelect", "orderIndex", "children", "className", "id", "isSelected", "innerRef", "isDraggable", "isDisabled", "draggableButtonAriaLabel"]);
|
|
11148
11148
|
const ref = innerRef || React__namespace.useRef(null);
|
|
11149
11149
|
const { setFocusedOption } = React__namespace.useContext(DualListSelectorListContext);
|
|
11150
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
11150
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$L.dualListSelectorListItem, className, isDisabled && styles$L.modifiers.disabled), key: orderIndex, onClick: isDisabled
|
|
11151
11151
|
? undefined
|
|
11152
11152
|
: (e) => {
|
|
11153
11153
|
setFocusedOption(id);
|
|
@@ -11158,13 +11158,13 @@
|
|
|
11158
11158
|
e.preventDefault();
|
|
11159
11159
|
}
|
|
11160
11160
|
}, "aria-selected": isSelected, id: id, ref: ref, role: "option", tabIndex: -1 }, props),
|
|
11161
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11162
|
-
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$
|
|
11161
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorListItemRow, isSelected && styles$L.modifiers.selected) },
|
|
11162
|
+
isDraggable && !isDisabled && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorDraggable) },
|
|
11163
11163
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, component: "span" },
|
|
11164
11164
|
React__namespace.createElement(GripVerticalIcon, { style: { verticalAlign: '-0.3em' } })))),
|
|
11165
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11166
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11167
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11165
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItem) },
|
|
11166
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemMain) },
|
|
11167
|
+
React__namespace.createElement("span", { className: css(styles$L.dualListSelectorItemText) }, children))))));
|
|
11168
11168
|
};
|
|
11169
11169
|
DualListSelectorListItemBase.displayName = 'DualListSelectorListItemBase';
|
|
11170
11170
|
const DualListSelectorListItem = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorListItemBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -11179,7 +11179,7 @@
|
|
|
11179
11179
|
onOptionSelect(e, index, id);
|
|
11180
11180
|
};
|
|
11181
11181
|
const hasOptions = () => options.length !== 0 || (children !== undefined && children.length !== 0);
|
|
11182
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
11182
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$L.dualListSelectorList) }, (hasOptions() && {
|
|
11183
11183
|
role: isTree ? 'tree' : 'listbox',
|
|
11184
11184
|
'aria-multiselectable': true,
|
|
11185
11185
|
'aria-labelledby': ariaLabelledBy,
|
|
@@ -11229,7 +11229,7 @@
|
|
|
11229
11229
|
window.removeEventListener('keydown', handleKeys);
|
|
11230
11230
|
};
|
|
11231
11231
|
}, [menuRef.current]);
|
|
11232
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11232
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorMenu, className), ref: menuRef, tabIndex: 0 }, props),
|
|
11233
11233
|
React__namespace.createElement(DualListSelectorListContext.Provider, { value: {
|
|
11234
11234
|
setFocusedOption,
|
|
11235
11235
|
isTree,
|
|
@@ -11300,15 +11300,15 @@
|
|
|
11300
11300
|
.includes(input.toLowerCase());
|
|
11301
11301
|
}
|
|
11302
11302
|
};
|
|
11303
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11304
|
-
title && (React__namespace.createElement("div", { className: css(styles$
|
|
11303
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorPane, isChosen ? styles$L.modifiers.chosen : 'pf-m-available', className) }, props),
|
|
11304
|
+
title && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorHeader) },
|
|
11305
11305
|
React__namespace.createElement("div", { className: "pf-c-dual-list-selector__title" },
|
|
11306
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11307
|
-
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$
|
|
11308
|
-
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$
|
|
11309
|
-
actions && React__namespace.createElement("div", { className: css(styles$
|
|
11310
|
-
status && (React__namespace.createElement("div", { className: css(styles$
|
|
11311
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11306
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorTitleText) }, title)))),
|
|
11307
|
+
(actions || searchInput || isSearchable) && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorTools) },
|
|
11308
|
+
(isSearchable || searchInput) && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorToolsFilter) }, searchInput ? (searchInput) : (React__namespace.createElement("input", { className: css(formStyles.formControl, formStyles.modifiers.search), type: "search", onChange: isDisabled ? undefined : onChange, "aria-label": searchInputAriaLabel, disabled: isDisabled })))),
|
|
11309
|
+
actions && React__namespace.createElement("div", { className: css(styles$L.dualListSelectorToolsActions) }, actions))),
|
|
11310
|
+
status && (React__namespace.createElement("div", { className: css(styles$L.dualListSelectorStatus) },
|
|
11311
|
+
React__namespace.createElement("div", { className: css(styles$L.dualListSelectorStatusText), id: `${id}-status` }, status))),
|
|
11312
11312
|
React__namespace.createElement(DualListSelectorPaneContext.Provider, { value: { isChosen } },
|
|
11313
11313
|
!isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, options: options, selectedOptions: selectedOptions, onOptionSelect: (e, index, id) => onOptionSelect(e, index, isChosen, id), displayOption: displayOption, id: `${id}-list`, isDisabled: isDisabled }, children)),
|
|
11314
11314
|
isTree && (React__namespace.createElement(DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, id: `${id}-list` }, options.length > 0 ? (React__namespace.createElement(DualListSelectorList, null,
|
|
@@ -11342,7 +11342,7 @@
|
|
|
11342
11342
|
window.removeEventListener('keydown', handleKeys);
|
|
11343
11343
|
};
|
|
11344
11344
|
}, [wrapperRef.current]);
|
|
11345
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11345
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelectorControls, className), tabIndex: 0, ref: wrapperRef, "aria-label": ariaLabel }, props), children));
|
|
11346
11346
|
};
|
|
11347
11347
|
DualListSelectorControlsWrapperBase.displayName = 'DualListSelectorControlsWrapperBase';
|
|
11348
11348
|
const DualListSelectorControlsWrapper = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref, role: "group" }, props))));
|
|
@@ -11755,7 +11755,7 @@
|
|
|
11755
11755
|
? chosenOptions.map(item => this.mapChecked(item, true))
|
|
11756
11756
|
: chosenOptions);
|
|
11757
11757
|
return (React__namespace.createElement(DualListSelectorContext.Provider, { value: { isTree } },
|
|
11758
|
-
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11758
|
+
React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$L.dualListSelector, className), id: id || randomId }, props), children === '' ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
11759
11759
|
React__namespace.createElement(DualListSelectorPane, { isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: availableOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onAvailableOptionsSearchInputChanged, status: availableOptionsStatusToDisplay, title: availableOptionsTitle, options: available, selectedOptions: isTree ? availableTreeOptionsChecked : availableOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, false), actions: availableOptionsActions, id: `${id || randomId}-available-pane`, isDisabled: isDisabled }),
|
|
11760
11760
|
React__namespace.createElement(DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
|
|
11761
11761
|
React__namespace.createElement(DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
|
|
@@ -11790,7 +11790,7 @@
|
|
|
11790
11790
|
};
|
|
11791
11791
|
|
|
11792
11792
|
Promise.resolve().then(function () { return emptyState; });
|
|
11793
|
-
var styles$
|
|
11793
|
+
var styles$K = {
|
|
11794
11794
|
"button": "pf-c-button",
|
|
11795
11795
|
"emptyState": "pf-c-empty-state",
|
|
11796
11796
|
"emptyStateBody": "pf-c-empty-state__body",
|
|
@@ -11820,20 +11820,20 @@
|
|
|
11820
11820
|
})(exports.EmptyStateVariant || (exports.EmptyStateVariant = {}));
|
|
11821
11821
|
const EmptyState = (_a) => {
|
|
11822
11822
|
var { children, className = '', variant = exports.EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
11823
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11824
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
11823
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyState, variant === 'xs' && styles$K.modifiers.xs, variant === 'small' && styles$K.modifiers.sm, variant === 'large' && styles$K.modifiers.lg, variant === 'xl' && styles$K.modifiers.xl, isFullHeight && styles$K.modifiers.fullHeight, className) }, props),
|
|
11824
|
+
React__namespace.createElement("div", { className: css(styles$K.emptyStateContent) }, children)));
|
|
11825
11825
|
};
|
|
11826
11826
|
EmptyState.displayName = 'EmptyState';
|
|
11827
11827
|
|
|
11828
11828
|
const EmptyStateBody = (_a) => {
|
|
11829
11829
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11830
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11830
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStateBody, className) }, props), children));
|
|
11831
11831
|
};
|
|
11832
11832
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
11833
11833
|
|
|
11834
11834
|
const EmptyStateIcon = (_a) => {
|
|
11835
11835
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest$1(_a, ["className", "icon", "component", "variant"]);
|
|
11836
|
-
const classNames = css(styles$
|
|
11836
|
+
const classNames = css(styles$K.emptyStateIcon, className);
|
|
11837
11837
|
return variant === 'icon' ? (React__namespace.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React__namespace.createElement("div", { className: classNames },
|
|
11838
11838
|
React__namespace.createElement(AnyComponent, null)));
|
|
11839
11839
|
};
|
|
@@ -11841,18 +11841,18 @@
|
|
|
11841
11841
|
|
|
11842
11842
|
const EmptyStateSecondaryActions = (_a) => {
|
|
11843
11843
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11844
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11844
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStateSecondary, className) }, props), children));
|
|
11845
11845
|
};
|
|
11846
11846
|
EmptyStateSecondaryActions.displayName = 'EmptyStateSecondaryActions';
|
|
11847
11847
|
|
|
11848
11848
|
const EmptyStatePrimary = (_a) => {
|
|
11849
11849
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
11850
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11850
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$K.emptyStatePrimary, className) }, props), children));
|
|
11851
11851
|
};
|
|
11852
11852
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
11853
11853
|
|
|
11854
11854
|
Promise.resolve().then(function () { return expandableSection; });
|
|
11855
|
-
var styles$
|
|
11855
|
+
var styles$J = {
|
|
11856
11856
|
"expandableSection": "pf-c-expandable-section",
|
|
11857
11857
|
"expandableSectionContent": "pf-c-expandable-section__content",
|
|
11858
11858
|
"expandableSectionToggle": "pf-c-expandable-section__toggle",
|
|
@@ -11934,13 +11934,13 @@
|
|
|
11934
11934
|
};
|
|
11935
11935
|
}
|
|
11936
11936
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
11937
|
-
const expandableToggle = !isDetached && (React__namespace.createElement("button", { className: css(styles$
|
|
11938
|
-
variant !== exports.ExpandableSectionVariant.truncate && (React__namespace.createElement("span", { className: css(styles$
|
|
11937
|
+
const expandableToggle = !isDetached && (React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
11938
|
+
variant !== exports.ExpandableSectionVariant.truncate && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon) },
|
|
11939
11939
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
11940
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11941
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11940
|
+
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
11941
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, propOrStateIsExpanded && styles$J.modifiers.expanded, isActive && styles$J.modifiers.active, isDetached && styles$J.modifiers.detached, displaySize === 'large' && styles$J.modifiers.displayLg, isWidthLimited && styles$J.modifiers.limitWidth, isIndented && styles$J.modifiers.indented, variant === exports.ExpandableSectionVariant.truncate && styles$J.modifiers.truncate, className) }, props),
|
|
11942
11942
|
variant === exports.ExpandableSectionVariant.default && expandableToggle,
|
|
11943
|
-
React__namespace.createElement("div", { ref: this.expandableContentRef, className: css(styles$
|
|
11943
|
+
React__namespace.createElement("div", { ref: this.expandableContentRef, className: css(styles$J.expandableSectionContent), hidden: variant !== exports.ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
11944
11944
|
variant === exports.ExpandableSectionVariant.truncate && expandableToggle));
|
|
11945
11945
|
}
|
|
11946
11946
|
}
|
|
@@ -11963,16 +11963,16 @@
|
|
|
11963
11963
|
|
|
11964
11964
|
const ExpandableSectionToggle = (_a) => {
|
|
11965
11965
|
var { children, className = '', isExpanded = false, onToggle, contentId, direction = 'down', hasTruncatedContent = false } = _a, props = __rest$1(_a, ["children", "className", "isExpanded", "onToggle", "contentId", "direction", "hasTruncatedContent"]);
|
|
11966
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
11967
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
11968
|
-
!hasTruncatedContent && (React__namespace.createElement("span", { className: css(styles$
|
|
11966
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$J.expandableSection, isExpanded && styles$J.modifiers.expanded, styles$J.modifiers.detached, hasTruncatedContent && styles$J.modifiers.truncate, className) }, props),
|
|
11967
|
+
React__namespace.createElement("button", { className: css(styles$J.expandableSectionToggle), type: "button", "aria-expanded": isExpanded, "aria-controls": contentId, onClick: () => onToggle(!isExpanded) },
|
|
11968
|
+
!hasTruncatedContent && (React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleIcon, isExpanded && direction === 'up' && styles$J.modifiers.expandTop) },
|
|
11969
11969
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
11970
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
11970
|
+
React__namespace.createElement("span", { className: css(styles$J.expandableSectionToggleText) }, children))));
|
|
11971
11971
|
};
|
|
11972
11972
|
ExpandableSectionToggle.displayName = 'ExpandableSectionToggle';
|
|
11973
11973
|
|
|
11974
11974
|
Promise.resolve().then(function () { return fileUpload; });
|
|
11975
|
-
var styles$
|
|
11975
|
+
var styles$I = {
|
|
11976
11976
|
"button": "pf-c-button",
|
|
11977
11977
|
"fileUpload": "pf-c-file-upload",
|
|
11978
11978
|
"fileUploadFileDetails": "pf-c-file-upload__file-details",
|
|
@@ -12021,16 +12021,16 @@
|
|
|
12021
12021
|
onChange(newValue, filename, event);
|
|
12022
12022
|
onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);
|
|
12023
12023
|
};
|
|
12024
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
12025
|
-
React__namespace.createElement("div", { className: styles$
|
|
12024
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$I.fileUpload, isDragActive && styles$I.modifiers.dragHover, isLoading && styles$I.modifiers.loading, className), ref: containerRef }, props),
|
|
12025
|
+
React__namespace.createElement("div", { className: styles$I.fileUploadFileSelect },
|
|
12026
12026
|
React__namespace.createElement(InputGroup, null,
|
|
12027
12027
|
React__namespace.createElement(TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
|
|
12028
12028
|
: true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, "aria-label": filenameAriaLabel, placeholder: filenamePlaceholder, "aria-describedby": `${id}-browse-button`, value: filename }),
|
|
12029
12029
|
React__namespace.createElement(Button, { id: `${id}-browse-button`, variant: exports.ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),
|
|
12030
12030
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),
|
|
12031
|
-
React__namespace.createElement("div", { className: styles$
|
|
12031
|
+
React__namespace.createElement("div", { className: styles$I.fileUploadFileDetails },
|
|
12032
12032
|
!hideDefaultPreview && type === fileReaderType.text && (React__namespace.createElement(TextArea, { readOnly: isReadOnly || (!!filename && !allowEditingUploadedText), disabled: isDisabled, isRequired: isRequired, resizeOrientation: exports.TextAreResizeOrientation.vertical, validated: validated, id: id, name: id, "aria-label": ariaLabel, value: value, onChange: onTextAreaChange, onClick: onTextAreaClick, onBlur: onTextAreaBlur, placeholder: textAreaPlaceholder })),
|
|
12033
|
-
isLoading && (React__namespace.createElement("div", { className: styles$
|
|
12033
|
+
isLoading && (React__namespace.createElement("div", { className: styles$I.fileUploadFileDetailsSpinner },
|
|
12034
12034
|
React__namespace.createElement(Spinner, { size: exports.spinnerSize.lg, "aria-valuetext": spinnerAriaValueText })))),
|
|
12035
12035
|
children));
|
|
12036
12036
|
};
|
|
@@ -14120,10 +14120,10 @@
|
|
|
14120
14120
|
|
|
14121
14121
|
const ActionGroup = (_a) => {
|
|
14122
14122
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14123
|
-
const customClassName = css(styles$
|
|
14124
|
-
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$
|
|
14123
|
+
const customClassName = css(styles$Z.formGroup, styles$Z.modifiers.action, className);
|
|
14124
|
+
const formActionsComponent = React__namespace.createElement("div", { className: css(styles$Z.formActions) }, children);
|
|
14125
14125
|
return (React__namespace.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
14126
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14126
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupControl) }, formActionsComponent)));
|
|
14127
14127
|
};
|
|
14128
14128
|
ActionGroup.displayName = 'ActionGroup';
|
|
14129
14129
|
|
|
@@ -14131,7 +14131,7 @@
|
|
|
14131
14131
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]);
|
|
14132
14132
|
return (React__namespace.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
14133
14133
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
14134
|
-
}), props, { className: css(styles$
|
|
14134
|
+
}), props, { className: css(styles$Z.form, isHorizontal && styles$Z.modifiers.horizontal, (isWidthLimited || maxWidth) && styles$Z.modifiers.limitWidth, className) }), children));
|
|
14135
14135
|
};
|
|
14136
14136
|
Form.displayName = 'Form';
|
|
14137
14137
|
|
|
@@ -14146,10 +14146,10 @@
|
|
|
14146
14146
|
|
|
14147
14147
|
const FormFieldGroupToggle = (_a) => {
|
|
14148
14148
|
var { className, onToggle, isExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, toggleId } = _a, props = __rest$1(_a, ["className", "onToggle", "isExpanded", 'aria-label', 'aria-labelledby', "toggleId"]);
|
|
14149
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14150
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14149
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroupToggle, className) }, props),
|
|
14150
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupToggleButton) },
|
|
14151
14151
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
|
14152
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14152
|
+
React__namespace.createElement("span", { className: css(styles$Z.formFieldGroupToggleIcon) },
|
|
14153
14153
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" }))))));
|
|
14154
14154
|
};
|
|
14155
14155
|
FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
|
@@ -14161,10 +14161,10 @@
|
|
|
14161
14161
|
// eslint-disable-next-line no-console
|
|
14162
14162
|
console.error('FormFieldGroupExpandable:', 'toggleAriaLabel or the titleText prop of FormFieldGroupHeader is required to make the toggle button accessible');
|
|
14163
14163
|
}
|
|
14164
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14164
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroup, isExpanded && isExpandable && styles$Z.modifiers.expanded, className), role: "group" }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id}` }), props),
|
|
14165
14165
|
isExpandable && (React__namespace.createElement(GenerateId, { prefix: "form-field-group-toggle" }, id => (React__namespace.createElement(FormFieldGroupToggle, Object.assign({ onToggle: onToggle, isExpanded: isExpanded, "aria-label": toggleAriaLabel, toggleId: id }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id} ${id}` })))))),
|
|
14166
14166
|
header && header,
|
|
14167
|
-
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$
|
|
14167
|
+
(!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupBody) }, children))));
|
|
14168
14168
|
};
|
|
14169
14169
|
InternalFormFieldGroup.displayName = 'InternalFormFieldGroup';
|
|
14170
14170
|
|
|
@@ -14183,42 +14183,42 @@
|
|
|
14183
14183
|
|
|
14184
14184
|
const FormFieldGroupHeader = (_a) => {
|
|
14185
14185
|
var { className, titleText, titleDescription, actions } = _a, props = __rest$1(_a, ["className", "titleText", "titleDescription", "actions"]);
|
|
14186
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14187
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14188
|
-
titleText && (React__namespace.createElement("div", { className: css(styles$
|
|
14189
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14190
|
-
titleDescription && React__namespace.createElement("div", { className: css(styles$
|
|
14191
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14186
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroupHeader, className) }, props),
|
|
14187
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderMain) },
|
|
14188
|
+
titleText && (React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderTitle) },
|
|
14189
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderTitleText), id: titleText.id }, titleText.text))),
|
|
14190
|
+
titleDescription && React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderDescription) }, titleDescription)),
|
|
14191
|
+
React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupHeaderActions) }, actions && actions)));
|
|
14192
14192
|
};
|
|
14193
14193
|
FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
|
|
14194
14194
|
|
|
14195
14195
|
const FormGroup = (_a) => {
|
|
14196
14196
|
var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId, role } = _a, props = __rest$1(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId", "role"]);
|
|
14197
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$
|
|
14198
|
-
helperTextIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14197
|
+
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$Z.formHelperText, validated === exports.ValidatedOptions.success && styles$Z.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Z.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14198
|
+
helperTextIcon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, helperTextIcon),
|
|
14199
14199
|
helperText));
|
|
14200
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$
|
|
14201
|
-
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$
|
|
14200
|
+
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React__namespace.createElement("div", { className: css(styles$Z.formHelperText, styles$Z.modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
14201
|
+
helperTextInvalidIcon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, helperTextInvalidIcon),
|
|
14202
14202
|
helperTextInvalid));
|
|
14203
14203
|
const showValidHelperTxt = (validationType) => validationType !== exports.ValidatedOptions.error && helperText ? validHelperText : '';
|
|
14204
14204
|
const helperTextToDisplay = validated === exports.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
14205
14205
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
14206
14206
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
14207
14207
|
const labelContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14208
|
-
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$
|
|
14209
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14210
|
-
isRequired && (React__namespace.createElement("span", { className: css(styles$
|
|
14208
|
+
React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$Z.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
14209
|
+
React__namespace.createElement("span", { className: css(styles$Z.formLabelText) }, label),
|
|
14210
|
+
isRequired && (React__namespace.createElement("span", { className: css(styles$Z.formLabelRequired), "aria-hidden": "true" },
|
|
14211
14211
|
' ',
|
|
14212
14212
|
ASTERISK))),
|
|
14213
14213
|
' ',
|
|
14214
14214
|
React__namespace.isValidElement(labelIcon) && labelIcon));
|
|
14215
|
-
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14216
|
-
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14215
|
+
return (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
14216
|
+
label && (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroupLabel, labelInfo && styles$Z.modifiers.info, hasNoPaddingTop && styles$Z.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
14217
14217
|
labelInfo && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14218
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14219
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14218
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelMain) }, labelContent),
|
|
14219
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelInfo) }, labelInfo))),
|
|
14220
14220
|
!labelInfo && labelContent)),
|
|
14221
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14221
|
+
React__namespace.createElement("div", { className: css(styles$Z.formGroupControl, isInline && styles$Z.modifiers.inline, isStack && styles$Z.modifiers.stack) },
|
|
14222
14222
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
14223
14223
|
children,
|
|
14224
14224
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -14228,22 +14228,22 @@
|
|
|
14228
14228
|
const FormHelperText = (_a) => {
|
|
14229
14229
|
var { children = null, isError = false, isHidden = true, className = '', icon = null, component = 'p' } = _a, props = __rest$1(_a, ["children", "isError", "isHidden", "className", "icon", "component"]);
|
|
14230
14230
|
const Component = component;
|
|
14231
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14232
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14231
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$Z.formHelperText, isError && styles$Z.modifiers.error, isHidden && styles$Z.modifiers.hidden, className) }, props),
|
|
14232
|
+
icon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, icon),
|
|
14233
14233
|
children));
|
|
14234
14234
|
};
|
|
14235
14235
|
FormHelperText.displayName = 'FormHelperText';
|
|
14236
14236
|
|
|
14237
14237
|
const FormSection = (_a) => {
|
|
14238
14238
|
var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = __rest$1(_a, ["className", "children", "title", "titleElement"]);
|
|
14239
|
-
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
14240
|
-
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$
|
|
14239
|
+
return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$Z.formSection, className), role: "group" }, (title && { 'aria-labelledby': sectionId }), props),
|
|
14240
|
+
title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$Z.formSectionTitle, className) }, title)),
|
|
14241
14241
|
children))));
|
|
14242
14242
|
};
|
|
14243
14243
|
FormSection.displayName = 'FormSection';
|
|
14244
14244
|
|
|
14245
14245
|
Promise.resolve().then(function () { return helperText; });
|
|
14246
|
-
var styles$
|
|
14246
|
+
var styles$H = {
|
|
14247
14247
|
"helperText": "pf-c-helper-text",
|
|
14248
14248
|
"helperTextItem": "pf-c-helper-text__item",
|
|
14249
14249
|
"helperTextItemIcon": "pf-c-helper-text__item-icon",
|
|
@@ -14261,7 +14261,7 @@
|
|
|
14261
14261
|
const HelperText = (_a) => {
|
|
14262
14262
|
var { children, className, component = 'div', id, isLiveRegion = false } = _a, props = __rest$1(_a, ["children", "className", "component", "id", "isLiveRegion"]);
|
|
14263
14263
|
const Component = component;
|
|
14264
|
-
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$
|
|
14264
|
+
return (React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$H.helperText, className) }, (isLiveRegion && { 'aria-live': 'polite' }), props), children));
|
|
14265
14265
|
};
|
|
14266
14266
|
HelperText.displayName = 'HelperText';
|
|
14267
14267
|
|
|
@@ -14278,22 +14278,22 @@
|
|
|
14278
14278
|
|
|
14279
14279
|
const variantStyle$4 = {
|
|
14280
14280
|
default: '',
|
|
14281
|
-
indeterminate: styles$
|
|
14282
|
-
warning: styles$
|
|
14283
|
-
success: styles$
|
|
14284
|
-
error: styles$
|
|
14281
|
+
indeterminate: styles$H.modifiers.indeterminate,
|
|
14282
|
+
warning: styles$H.modifiers.warning,
|
|
14283
|
+
success: styles$H.modifiers.success,
|
|
14284
|
+
error: styles$H.modifiers.error
|
|
14285
14285
|
};
|
|
14286
14286
|
const HelperTextItem = (_a) => {
|
|
14287
14287
|
var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic, id, screenReaderText = `${variant} status` } = _a, props = __rest$1(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon", "id", "screenReaderText"]);
|
|
14288
14288
|
const Component = component;
|
|
14289
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
14290
|
-
icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14291
|
-
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$
|
|
14289
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$H.helperTextItem, variantStyle$4[variant], isDynamic && styles$H.modifiers.dynamic, className), id: id }, props),
|
|
14290
|
+
icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true }, icon)),
|
|
14291
|
+
hasIcon && !icon && (React__namespace.createElement("span", { className: css(styles$H.helperTextItemIcon), "aria-hidden": true },
|
|
14292
14292
|
(variant === 'default' || variant === 'indeterminate') && React__namespace.createElement(MinusIcon, null),
|
|
14293
14293
|
variant === 'warning' && React__namespace.createElement(ExclamationTriangleIcon, null),
|
|
14294
14294
|
variant === 'success' && React__namespace.createElement(CheckCircleIcon, null),
|
|
14295
14295
|
variant === 'error' && React__namespace.createElement(ExclamationCircleIcon, null))),
|
|
14296
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
14296
|
+
React__namespace.createElement("span", { className: css(styles$H.helperTextItemText) },
|
|
14297
14297
|
children,
|
|
14298
14298
|
isDynamic && React__namespace.createElement("span", { className: "pf-u-screen-reader" },
|
|
14299
14299
|
": ",
|
|
@@ -14303,7 +14303,7 @@
|
|
|
14303
14303
|
HelperTextItem.displayName = 'HelperTextItem';
|
|
14304
14304
|
|
|
14305
14305
|
Promise.resolve().then(function () { return hint; });
|
|
14306
|
-
var styles$
|
|
14306
|
+
var styles$G = {
|
|
14307
14307
|
"button": "pf-c-button",
|
|
14308
14308
|
"dropdown": "pf-c-dropdown",
|
|
14309
14309
|
"dropdownToggle": "pf-c-dropdown__toggle",
|
|
@@ -14322,32 +14322,32 @@
|
|
|
14322
14322
|
|
|
14323
14323
|
const Hint = (_a) => {
|
|
14324
14324
|
var { children, className, actions } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
14325
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14326
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14325
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hint, className) }, props),
|
|
14326
|
+
React__namespace.createElement("div", { className: css(styles$G.hintActions) }, actions),
|
|
14327
14327
|
children));
|
|
14328
14328
|
};
|
|
14329
14329
|
Hint.displayName = 'Hint';
|
|
14330
14330
|
|
|
14331
14331
|
const HintBody = (_a) => {
|
|
14332
14332
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14333
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14333
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintBody, className) }, props), children));
|
|
14334
14334
|
};
|
|
14335
14335
|
HintBody.displayName = 'HintBody';
|
|
14336
14336
|
|
|
14337
14337
|
const HintFooter = (_a) => {
|
|
14338
14338
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14339
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14339
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintFooter, className) }, props), children));
|
|
14340
14340
|
};
|
|
14341
14341
|
HintFooter.displayName = 'HintFooter';
|
|
14342
14342
|
|
|
14343
14343
|
const HintTitle = (_a) => {
|
|
14344
14344
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14345
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14345
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$G.hintTitle, className) }, props), children));
|
|
14346
14346
|
};
|
|
14347
14347
|
HintTitle.displayName = 'HintTitle';
|
|
14348
14348
|
|
|
14349
14349
|
Promise.resolve().then(function () { return jumpLinks; });
|
|
14350
|
-
var styles$
|
|
14350
|
+
var styles$F = {
|
|
14351
14351
|
"button": "pf-c-button",
|
|
14352
14352
|
"jumpLinks": "pf-c-jump-links",
|
|
14353
14353
|
"jumpLinksItem": "pf-c-jump-links__item",
|
|
@@ -14380,7 +14380,7 @@
|
|
|
14380
14380
|
};
|
|
14381
14381
|
|
|
14382
14382
|
Promise.resolve().then(function () { return sidebar; });
|
|
14383
|
-
var styles$
|
|
14383
|
+
var styles$E = {
|
|
14384
14384
|
"modifiers": {
|
|
14385
14385
|
"gutter": "pf-m-gutter",
|
|
14386
14386
|
"panelRight": "pf-m-panel-right",
|
|
@@ -14440,7 +14440,7 @@
|
|
|
14440
14440
|
|
|
14441
14441
|
const JumpLinksList = (_a) => {
|
|
14442
14442
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14443
|
-
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14443
|
+
return (React__namespace.createElement("ul", Object.assign({ className: css(styles$F.jumpLinksList, className) }, props), children));
|
|
14444
14444
|
};
|
|
14445
14445
|
JumpLinksList.displayName = 'JumpLinksList';
|
|
14446
14446
|
|
|
@@ -14451,9 +14451,9 @@
|
|
|
14451
14451
|
const childrenArr = React__namespace.Children.toArray(children);
|
|
14452
14452
|
const sublists = childrenArr.filter(child => child.type === JumpLinksList);
|
|
14453
14453
|
children = childrenArr.filter(child => child.type !== JumpLinksList);
|
|
14454
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
14455
|
-
React__namespace.createElement("a", { className: styles$
|
|
14456
|
-
React__namespace.createElement("span", { className: styles$
|
|
14454
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$F.jumpLinksItem, isActive && styles$F.modifiers.current, className) }, (isActive && { 'aria-current': 'location' }), props),
|
|
14455
|
+
React__namespace.createElement("a", { className: styles$F.jumpLinksLink, href: href, onClick: onClick },
|
|
14456
|
+
React__namespace.createElement("span", { className: styles$F.jumpLinksLinkText }, children)),
|
|
14457
14457
|
sublists));
|
|
14458
14458
|
};
|
|
14459
14459
|
JumpLinksItem.displayName = 'JumpLinksItem';
|
|
@@ -14574,10 +14574,10 @@
|
|
|
14574
14574
|
if (isResponsive(navRef.current)) {
|
|
14575
14575
|
// Remove class immediately so we can get collapsed height
|
|
14576
14576
|
if (navRef.current) {
|
|
14577
|
-
navRef.current.classList.remove(styles$
|
|
14577
|
+
navRef.current.classList.remove(styles$F.modifiers.expanded);
|
|
14578
14578
|
}
|
|
14579
14579
|
let stickyParent = navRef.current && navRef.current.parentElement;
|
|
14580
|
-
while (stickyParent && !stickyParent.classList.contains(styles$
|
|
14580
|
+
while (stickyParent && !stickyParent.classList.contains(styles$E.modifiers.sticky)) {
|
|
14581
14581
|
stickyParent = stickyParent.parentElement;
|
|
14582
14582
|
}
|
|
14583
14583
|
setIsExpanded(false);
|
|
@@ -14607,19 +14607,19 @@
|
|
|
14607
14607
|
}
|
|
14608
14608
|
return child;
|
|
14609
14609
|
});
|
|
14610
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
14611
|
-
React__namespace.createElement("div", { className: styles$
|
|
14610
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$F.jumpLinks, isCentered && styles$F.modifiers.center, isVertical && styles$F.modifiers.vertical, formatBreakpointMods(expandable, styles$F), isExpanded && styles$F.modifiers.expanded, className), "aria-label": ariaLabel, ref: navRef }, props),
|
|
14611
|
+
React__namespace.createElement("div", { className: styles$F.jumpLinksMain },
|
|
14612
14612
|
React__namespace.createElement("div", { className: css('pf-c-jump-links__header') },
|
|
14613
|
-
expandable && (React__namespace.createElement("div", { className: styles$
|
|
14613
|
+
expandable && (React__namespace.createElement("div", { className: styles$F.jumpLinksToggle },
|
|
14614
14614
|
React__namespace.createElement(Button, { variant: "plain", onClick: () => setIsExpanded(!isExpanded), "aria-label": toggleAriaLabel, "aria-expanded": isExpanded },
|
|
14615
|
-
React__namespace.createElement("span", { className: styles$
|
|
14615
|
+
React__namespace.createElement("span", { className: styles$F.jumpLinksToggleIcon },
|
|
14616
14616
|
React__namespace.createElement(AngleRightIcon, null)),
|
|
14617
|
-
label && React__namespace.createElement("span", { className: css(styles$
|
|
14617
|
+
label && React__namespace.createElement("span", { className: css(styles$F.jumpLinksToggleText) },
|
|
14618
14618
|
" ",
|
|
14619
14619
|
label,
|
|
14620
14620
|
" ")))),
|
|
14621
|
-
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$
|
|
14622
|
-
React__namespace.createElement("ul", { className: styles$
|
|
14621
|
+
label && alwaysShowLabel && React__namespace.createElement("div", { className: css(styles$F.jumpLinksLabel) }, label)),
|
|
14622
|
+
React__namespace.createElement("ul", { className: styles$F.jumpLinksList }, cloneChildren(children)))));
|
|
14623
14623
|
};
|
|
14624
14624
|
JumpLinks.displayName = 'JumpLinks';
|
|
14625
14625
|
|
|
@@ -14649,7 +14649,7 @@
|
|
|
14649
14649
|
};
|
|
14650
14650
|
|
|
14651
14651
|
Promise.resolve().then(function () { return labelGroup; });
|
|
14652
|
-
var styles$
|
|
14652
|
+
var styles$D = {
|
|
14653
14653
|
"button": "pf-c-button",
|
|
14654
14654
|
"labelGroup": "pf-c-label-group",
|
|
14655
14655
|
"labelGroupClose": "pf-c-label-group__close",
|
|
@@ -14793,7 +14793,7 @@
|
|
|
14793
14793
|
else if (isTooltipVisible) {
|
|
14794
14794
|
labelComponentChild = (React__namespace.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
14795
14795
|
}
|
|
14796
|
-
return (React__namespace.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$
|
|
14796
|
+
return (React__namespace.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$D.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
14797
14797
|
!isEditableActive && labelComponentChild,
|
|
14798
14798
|
!isEditableActive && onClose && button,
|
|
14799
14799
|
isEditableActive && (React__namespace.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
@@ -14824,8 +14824,8 @@
|
|
|
14824
14824
|
const { categoryName, tooltipPosition } = this.props;
|
|
14825
14825
|
const { isTooltipVisible } = this.state;
|
|
14826
14826
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
14827
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$
|
|
14828
|
-
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$
|
|
14827
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(styles$D.labelGroupLabel) },
|
|
14828
|
+
React__namespace.createElement("span", { "aria-hidden": "true", id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(styles$D.labelGroupLabel), "aria-hidden": "true", id: id }, categoryName));
|
|
14829
14829
|
}
|
|
14830
14830
|
render() {
|
|
14831
14831
|
const _a = this.props, { categoryName, children, className, isClosable, isCompact, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, numLabels, expandedText, collapsedText,
|
|
@@ -14844,18 +14844,18 @@
|
|
|
14844
14844
|
: React__namespace.Children.toArray(children);
|
|
14845
14845
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
14846
14846
|
categoryName && this.renderLabel(id),
|
|
14847
|
-
React__namespace.createElement("ul", Object.assign({ className: css(styles$
|
|
14848
|
-
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$
|
|
14849
|
-
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$
|
|
14847
|
+
React__namespace.createElement("ul", Object.assign({ className: css(styles$D.labelGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
14848
|
+
labelArray.map((child, i) => (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem), key: i }, child))),
|
|
14849
|
+
numChildren > numLabels && (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem) },
|
|
14850
14850
|
React__namespace.createElement(Label, { isOverflowLabel: true, onClick: this.toggleCollapse, className: css(isCompact && labelStyles.modifiers.compact) }, isOpen ? expandedText : collapsedTextResult))),
|
|
14851
|
-
addLabelControl && React__namespace.createElement("li", { className: css(styles$
|
|
14852
|
-
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$
|
|
14853
|
-
React__namespace.createElement("textarea", Object.assign({ className: css(styles$
|
|
14854
|
-
const close = (React__namespace.createElement("div", { className: css(styles$
|
|
14851
|
+
addLabelControl && React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem) }, addLabelControl),
|
|
14852
|
+
isEditable && hasEditableTextArea && (React__namespace.createElement("li", { className: css(styles$D.labelGroupListItem, styles$D.modifiers.textarea) },
|
|
14853
|
+
React__namespace.createElement("textarea", Object.assign({ className: css(styles$D.labelGroupTextarea), rows: 1, tabIndex: 0 }, editableTextAreaProps)))))));
|
|
14854
|
+
const close = (React__namespace.createElement("div", { className: css(styles$D.labelGroupClose) },
|
|
14855
14855
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
|
|
14856
14856
|
React__namespace.createElement(TimesCircleIcon, { "aria-hidden": "true" }))));
|
|
14857
|
-
return (React__namespace.createElement("div", { className: css(styles$
|
|
14858
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14857
|
+
return (React__namespace.createElement("div", { className: css(styles$D.labelGroup, className, categoryName && styles$D.modifiers.category, isVertical && styles$D.modifiers.vertical, isEditable && styles$D.modifiers.editable) },
|
|
14858
|
+
React__namespace.createElement("div", { className: css(styles$D.labelGroupMain) }, content),
|
|
14859
14859
|
isClosable && close));
|
|
14860
14860
|
};
|
|
14861
14861
|
return numChildren === 0 && addLabelControl === undefined ? null : (React__namespace.createElement(GenerateId, null, randomId => renderLabelGroup(this.props.id || randomId)));
|
|
@@ -14881,7 +14881,7 @@
|
|
|
14881
14881
|
};
|
|
14882
14882
|
|
|
14883
14883
|
Promise.resolve().then(function () { return list; });
|
|
14884
|
-
var styles$
|
|
14884
|
+
var styles$C = {
|
|
14885
14885
|
"list": "pf-c-list",
|
|
14886
14886
|
"listItem": "pf-c-list__item",
|
|
14887
14887
|
"listItemIcon": "pf-c-list__item-icon",
|
|
@@ -14912,20 +14912,20 @@
|
|
|
14912
14912
|
})(exports.ListComponent || (exports.ListComponent = {}));
|
|
14913
14913
|
const List = (_a) => {
|
|
14914
14914
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = exports.OrderType.number, ref = null, component = exports.ListComponent.ul } = _a, props = __rest$1(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
14915
|
-
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$
|
|
14915
|
+
return component === exports.ListComponent.ol ? (React__namespace.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css(styles$C.list, variant && styles$C.modifiers[variant], isBordered && styles$C.modifiers.bordered, isPlain && styles$C.modifiers.plain, iconSize && iconSize === 'large' && styles$C.modifiers.iconLg, className) }), children)) : (React__namespace.createElement("ul", Object.assign({ ref: ref }, props, { className: css(styles$C.list, variant && styles$C.modifiers[variant], isBordered && styles$C.modifiers.bordered, isPlain && styles$C.modifiers.plain, iconSize && iconSize === 'large' && styles$C.modifiers.iconLg, className) }), children));
|
|
14916
14916
|
};
|
|
14917
14917
|
List.displayName = 'List';
|
|
14918
14918
|
|
|
14919
14919
|
const ListItem = (_a) => {
|
|
14920
14920
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
14921
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$
|
|
14922
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
14921
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(icon && styles$C.listItem) }, props),
|
|
14922
|
+
icon && React__namespace.createElement("span", { className: css(styles$C.listItemIcon) }, icon),
|
|
14923
14923
|
children));
|
|
14924
14924
|
};
|
|
14925
14925
|
ListItem.displayName = 'ListItem';
|
|
14926
14926
|
|
|
14927
14927
|
Promise.resolve().then(function () { return login; });
|
|
14928
|
-
var styles$
|
|
14928
|
+
var styles$B = {
|
|
14929
14929
|
"brand": "pf-c-brand",
|
|
14930
14930
|
"button": "pf-c-button",
|
|
14931
14931
|
"card": "pf-c-card",
|
|
@@ -14951,17 +14951,17 @@
|
|
|
14951
14951
|
|
|
14952
14952
|
const Login = (_a) => {
|
|
14953
14953
|
var { className = '', children = null, footer = null, header = null } = _a, props = __rest$1(_a, ["className", "children", "footer", "header"]);
|
|
14954
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
14955
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
14954
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$B.login, className) }),
|
|
14955
|
+
React__namespace.createElement("div", { className: css(styles$B.loginContainer) },
|
|
14956
14956
|
header,
|
|
14957
|
-
React__namespace.createElement("main", { className: css(styles$
|
|
14957
|
+
React__namespace.createElement("main", { className: css(styles$B.loginMain) }, children),
|
|
14958
14958
|
footer)));
|
|
14959
14959
|
};
|
|
14960
14960
|
Login.displayName = 'Login';
|
|
14961
14961
|
|
|
14962
14962
|
const LoginHeader = (_a) => {
|
|
14963
14963
|
var { className = '', children = null, headerBrand = null } = _a, props = __rest$1(_a, ["className", "children", "headerBrand"]);
|
|
14964
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14964
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$B.loginHeader, className) }, props),
|
|
14965
14965
|
headerBrand,
|
|
14966
14966
|
children));
|
|
14967
14967
|
};
|
|
@@ -14969,31 +14969,31 @@
|
|
|
14969
14969
|
|
|
14970
14970
|
const LoginFooter = (_a) => {
|
|
14971
14971
|
var { className = '', children = null } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
14972
|
-
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$
|
|
14972
|
+
return (React__namespace.createElement("footer", Object.assign({ className: css(styles$B.loginFooter, className) }, props), children));
|
|
14973
14973
|
};
|
|
14974
14974
|
LoginFooter.displayName = 'LoginFooter';
|
|
14975
14975
|
|
|
14976
14976
|
const LoginMainHeader = (_a) => {
|
|
14977
14977
|
var { children = null, className = '', title = '', subtitle = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle"]);
|
|
14978
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
14978
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$B.loginMainHeader, className) }, props),
|
|
14979
14979
|
title && (React__namespace.createElement(Title, { headingLevel: "h2", size: exports.TitleSizes['3xl'] }, title)),
|
|
14980
|
-
subtitle && React__namespace.createElement("p", { className: css(styles$
|
|
14980
|
+
subtitle && React__namespace.createElement("p", { className: css(styles$B.loginMainHeaderDesc) }, subtitle),
|
|
14981
14981
|
children));
|
|
14982
14982
|
};
|
|
14983
14983
|
LoginMainHeader.displayName = 'LoginMainHeader';
|
|
14984
14984
|
|
|
14985
14985
|
const LoginMainBody = (_a) => {
|
|
14986
14986
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
14987
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14987
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$B.loginMainBody, className) }, props), children));
|
|
14988
14988
|
};
|
|
14989
14989
|
LoginMainBody.displayName = 'LoginMainBody';
|
|
14990
14990
|
|
|
14991
14991
|
const LoginMainFooter = (_a) => {
|
|
14992
14992
|
var { children = null, socialMediaLoginContent = null, signUpForAccountMessage = null, forgotCredentials = null, className = '' } = _a, props = __rest$1(_a, ["children", "socialMediaLoginContent", "signUpForAccountMessage", "forgotCredentials", "className"]);
|
|
14993
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
14993
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$B.loginMainFooter, className) }, props),
|
|
14994
14994
|
children,
|
|
14995
|
-
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$
|
|
14996
|
-
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$
|
|
14995
|
+
socialMediaLoginContent && React__namespace.createElement("ul", { className: css(styles$B.loginMainFooterLinks) }, socialMediaLoginContent),
|
|
14996
|
+
(signUpForAccountMessage || forgotCredentials) && (React__namespace.createElement("div", { className: css(styles$B.loginMainFooterBand) },
|
|
14997
14997
|
signUpForAccountMessage,
|
|
14998
14998
|
forgotCredentials))));
|
|
14999
14999
|
};
|
|
@@ -15066,20 +15066,20 @@
|
|
|
15066
15066
|
|
|
15067
15067
|
const LoginMainFooterBandItem = (_a) => {
|
|
15068
15068
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15069
|
-
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$
|
|
15069
|
+
return (React__namespace.createElement("p", Object.assign({ className: css(`${styles$B.loginMainFooterBand}-item`, className) }, props), children));
|
|
15070
15070
|
};
|
|
15071
15071
|
LoginMainFooterBandItem.displayName = 'LoginMainFooterBandItem';
|
|
15072
15072
|
|
|
15073
15073
|
const LoginMainFooterLinksItem = (_a) => {
|
|
15074
15074
|
var { children = null, href = '', target = '', className = '', linkComponent = 'a', linkComponentProps } = _a, props = __rest$1(_a, ["children", "href", "target", "className", "linkComponent", "linkComponentProps"]);
|
|
15075
15075
|
const LinkComponent = linkComponent;
|
|
15076
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
15077
|
-
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$
|
|
15076
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$B.loginMainFooterLinksItem, className) }, props),
|
|
15077
|
+
React__namespace.createElement(LinkComponent, Object.assign({ className: css(styles$B.loginMainFooterLinksItemLink), href: href, target: target }, linkComponentProps), children)));
|
|
15078
15078
|
};
|
|
15079
15079
|
LoginMainFooterLinksItem.displayName = 'LoginMainFooterLinksItem';
|
|
15080
15080
|
|
|
15081
15081
|
Promise.resolve().then(function () { return masthead; });
|
|
15082
|
-
var styles$
|
|
15082
|
+
var styles$A = {
|
|
15083
15083
|
"button": "pf-c-button",
|
|
15084
15084
|
"card": "pf-c-card",
|
|
15085
15085
|
"contextSelector": "pf-c-context-selector",
|
|
@@ -15155,7 +15155,7 @@
|
|
|
15155
15155
|
};
|
|
15156
15156
|
|
|
15157
15157
|
Promise.resolve().then(function () { return page; });
|
|
15158
|
-
var styles$
|
|
15158
|
+
var styles$z = {
|
|
15159
15159
|
"avatar": "pf-c-avatar",
|
|
15160
15160
|
"brand": "pf-c-brand",
|
|
15161
15161
|
"button": "pf-c-button",
|
|
@@ -15361,30 +15361,30 @@
|
|
|
15361
15361
|
};
|
|
15362
15362
|
let nav = null;
|
|
15363
15363
|
if (tertiaryNav && isTertiaryNavWidthLimited) {
|
|
15364
|
-
nav = (React__namespace.createElement("div", { className: css(styles$
|
|
15365
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
15364
|
+
nav = (React__namespace.createElement("div", { className: css(styles$z.pageMainNav, styles$z.modifiers.limitWidth) },
|
|
15365
|
+
React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, tertiaryNav)));
|
|
15366
15366
|
}
|
|
15367
15367
|
else if (tertiaryNav) {
|
|
15368
|
-
nav = React__namespace.createElement("div", { className: css(styles$
|
|
15368
|
+
nav = React__namespace.createElement("div", { className: css(styles$z.pageMainNav) }, tertiaryNav);
|
|
15369
15369
|
}
|
|
15370
|
-
const crumb = breadcrumb ? (React__namespace.createElement("section", { className: css(styles$
|
|
15370
|
+
const crumb = breadcrumb ? (React__namespace.createElement("section", { className: css(styles$z.pageMainBreadcrumb, isBreadcrumbWidthLimited && styles$z.modifiers.limitWidth, formatBreakpointMods(breadcrumbProps === null || breadcrumbProps === void 0 ? void 0 : breadcrumbProps.stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true)) }, isBreadcrumbWidthLimited ? React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, breadcrumb) : breadcrumb)) : null;
|
|
15371
15371
|
const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;
|
|
15372
|
-
const group = isGrouped ? (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15372
|
+
const group = isGrouped ? (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainGroup, formatBreakpointMods(groupProps === null || groupProps === void 0 ? void 0 : groupProps.stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true)) }, groupProps),
|
|
15373
15373
|
isTertiaryNavGrouped && nav,
|
|
15374
15374
|
isBreadcrumbGrouped && crumb,
|
|
15375
15375
|
additionalGroupedContent)) : null;
|
|
15376
|
-
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$
|
|
15376
|
+
const main = (React__namespace.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$z.pageMain), tabIndex: mainTabIndex, "aria-label": mainAriaLabel },
|
|
15377
15377
|
group,
|
|
15378
15378
|
!isTertiaryNavGrouped && nav,
|
|
15379
15379
|
!isBreadcrumbGrouped && crumb,
|
|
15380
15380
|
children));
|
|
15381
15381
|
const panelContent = React__namespace.createElement(DrawerPanelContent, null, notificationDrawer);
|
|
15382
15382
|
return (React__namespace.createElement(PageContextProvider, { value: context },
|
|
15383
|
-
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$
|
|
15383
|
+
React__namespace.createElement("div", Object.assign({ ref: this.pageRef }, rest, { className: css(styles$z.page, width !== null && height !== null && 'pf-m-resize-observer', width !== null && `pf-m-breakpoint-${getBreakpoint(width)}`, height !== null && `pf-m-height-breakpoint-${getVerticalBreakpoint(height)}`, className) }),
|
|
15384
15384
|
skipToContent,
|
|
15385
15385
|
header,
|
|
15386
15386
|
sidebar,
|
|
15387
|
-
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$
|
|
15387
|
+
notificationDrawer && (React__namespace.createElement("div", { className: css(styles$z.pageDrawer) },
|
|
15388
15388
|
React__namespace.createElement(Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },
|
|
15389
15389
|
React__namespace.createElement(DrawerContent, { panelContent: panelContent },
|
|
15390
15390
|
React__namespace.createElement(DrawerContentBody, null, main))))),
|
|
@@ -15409,32 +15409,32 @@
|
|
|
15409
15409
|
md: 'inline'
|
|
15410
15410
|
}, inset } = _a, props = __rest$1(_a, ["children", "className", "backgroundColor", "display", "inset"]);
|
|
15411
15411
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
15412
|
-
return (React__namespace.createElement("header", Object.assign({ className: css(styles$
|
|
15412
|
+
return (React__namespace.createElement("header", Object.assign({ className: css(styles$A.masthead, formatBreakpointMods(display, styles$A, 'display-', getBreakpoint(width)), formatBreakpointMods(inset, styles$A, '', getBreakpoint(width)), backgroundColor === 'light' && styles$A.modifiers.light, backgroundColor === 'light200' && styles$A.modifiers.light_200, className) }, props), children));
|
|
15413
15413
|
};
|
|
15414
15414
|
Masthead.displayName = 'Masthead';
|
|
15415
15415
|
|
|
15416
15416
|
const MastheadBrand = (_a) => {
|
|
15417
15417
|
var { children, className, component = 'a' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
15418
15418
|
const Component = component;
|
|
15419
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
15419
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$A.mastheadBrand, className), tabIndex: 0 }, props), children));
|
|
15420
15420
|
};
|
|
15421
15421
|
MastheadBrand.displayName = 'MastheadBrand';
|
|
15422
15422
|
|
|
15423
15423
|
const MastheadContent = (_a) => {
|
|
15424
15424
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15425
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15425
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.mastheadContent, className) }, props), children));
|
|
15426
15426
|
};
|
|
15427
15427
|
MastheadContent.displayName = 'MastheadContent';
|
|
15428
15428
|
|
|
15429
15429
|
const MastheadMain = (_a) => {
|
|
15430
15430
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15431
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
15431
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$A.mastheadMain, className) }, props), children));
|
|
15432
15432
|
};
|
|
15433
15433
|
MastheadMain.displayName = 'MastheadMain';
|
|
15434
15434
|
|
|
15435
15435
|
const MastheadToggle = (_a) => {
|
|
15436
15436
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
15437
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
15437
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$A.mastheadToggle, className) }, props), children));
|
|
15438
15438
|
};
|
|
15439
15439
|
MastheadToggle.displayName = 'MastheadToggle';
|
|
15440
15440
|
|
|
@@ -15981,7 +15981,7 @@
|
|
|
15981
15981
|
MenuBreadcrumb.displayName = 'MenuBreadcrumb';
|
|
15982
15982
|
|
|
15983
15983
|
Promise.resolve().then(function () { return menuToggle; });
|
|
15984
|
-
var styles$
|
|
15984
|
+
var styles$y = {
|
|
15985
15985
|
"check": "pf-c-check",
|
|
15986
15986
|
"menuToggle": "pf-c-menu-toggle",
|
|
15987
15987
|
"menuToggleButton": "pf-c-menu-toggle__button",
|
|
@@ -16018,23 +16018,23 @@
|
|
|
16018
16018
|
const isPlain = variant === 'plain';
|
|
16019
16019
|
const isPlainText = variant === 'plainText';
|
|
16020
16020
|
const isTypeahead = variant === 'typeahead';
|
|
16021
|
-
const toggleControls = (React__namespace.createElement("span", { className: css(styles$
|
|
16022
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16021
|
+
const toggleControls = (React__namespace.createElement("span", { className: css(styles$y.menuToggleControls) },
|
|
16022
|
+
React__namespace.createElement("span", { className: css(styles$y.menuToggleToggleIcon) },
|
|
16023
16023
|
React__namespace.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
16024
16024
|
const content = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16025
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
16026
|
-
isTypeahead ? children : React__namespace.createElement("span", { className: css(styles$
|
|
16027
|
-
badge && React__namespace.createElement("span", { className: css(styles$
|
|
16028
|
-
isTypeahead ? (React__namespace.createElement("button", { type: "button", className: css(styles$
|
|
16029
|
-
const commonStyles = css(styles$
|
|
16025
|
+
icon && React__namespace.createElement("span", { className: css(styles$y.menuToggleIcon) }, icon),
|
|
16026
|
+
isTypeahead ? children : React__namespace.createElement("span", { className: css(styles$y.menuToggleText) }, children),
|
|
16027
|
+
React__namespace.isValidElement(badge) && React__namespace.createElement("span", { className: css(styles$y.menuToggleCount) }, badge),
|
|
16028
|
+
isTypeahead ? (React__namespace.createElement("button", { type: "button", className: css(styles$y.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": "Menu toggle" }, toggleControls)) : (toggleControls)));
|
|
16029
|
+
const commonStyles = css(styles$y.menuToggle, isExpanded && styles$y.modifiers.expanded, variant === 'primary' && styles$y.modifiers.primary, variant === 'secondary' && styles$y.modifiers.secondary, (isPlain || isPlainText) && styles$y.modifiers.plain, isPlainText && styles$y.modifiers.text, isFullHeight && styles$y.modifiers.fullHeight, isFullWidth && styles$y.modifiers.fullWidth, isDisabled && styles$y.modifiers.disabled, className);
|
|
16030
16030
|
const componentProps = Object.assign(Object.assign({ children: isPlain ? children : content }, (isDisabled && { disabled: true })), otherProps);
|
|
16031
16031
|
if (isTypeahead) {
|
|
16032
16032
|
return React__namespace.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles) }, componentProps));
|
|
16033
16033
|
}
|
|
16034
16034
|
if (splitButtonOptions) {
|
|
16035
|
-
return (React__namespace.createElement("div", { className: css(commonStyles, styles$
|
|
16035
|
+
return (React__namespace.createElement("div", { className: css(commonStyles, styles$y.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$y.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
|
|
16036
16036
|
splitButtonOptions.items,
|
|
16037
|
-
React__namespace.createElement("button", Object.assign({ className: css(styles$
|
|
16037
|
+
React__namespace.createElement("button", Object.assign({ className: css(styles$y.menuToggleButton), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled }, otherProps), toggleControls)));
|
|
16038
16038
|
}
|
|
16039
16039
|
return (React__namespace.createElement("button", Object.assign({ className: css(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps)));
|
|
16040
16040
|
}
|
|
@@ -16052,7 +16052,7 @@
|
|
|
16052
16052
|
class MenuToggleAction extends React__namespace.Component {
|
|
16053
16053
|
render() {
|
|
16054
16054
|
const _a = this.props, { id, className, onClick, isDisabled, children } = _a, props = __rest$1(_a, ["id", "className", "onClick", "isDisabled", "children"]);
|
|
16055
|
-
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$
|
|
16055
|
+
return (React__namespace.createElement("button", Object.assign({ id: id, className: css(styles$y.menuToggleButton, className), onClick: onClick, type: "button", disabled: isDisabled }, props), children));
|
|
16056
16056
|
}
|
|
16057
16057
|
}
|
|
16058
16058
|
MenuToggleAction.displayName = 'MenuToggleAction';
|
|
@@ -16087,9 +16087,9 @@
|
|
|
16087
16087
|
const _a = this.props, { className, isValid, isDisabled, isChecked, children, ouiaId, ouiaSafe,
|
|
16088
16088
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
16089
16089
|
onChange, defaultChecked, id } = _a, props = __rest$1(_a, ["className", "isValid", "isDisabled", "isChecked", "children", "ouiaId", "ouiaSafe", "onChange", "defaultChecked", "id"]);
|
|
16090
|
-
const text = children && (React__namespace.createElement("span", { className: css(styles$
|
|
16091
|
-
return (React__namespace.createElement("label", { className: css(styles$
|
|
16092
|
-
React__namespace.createElement("input", Object.assign({ className: css(styles$
|
|
16090
|
+
const text = children && (React__namespace.createElement("span", { className: css(styles$Y.checkLabel, className), "aria-hidden": "true", id: id }, children));
|
|
16091
|
+
return (React__namespace.createElement("label", { className: css(styles$Y.check, !children && styles$Y.modifiers.standalone, className), htmlFor: id },
|
|
16092
|
+
React__namespace.createElement("input", Object.assign({ className: css(styles$Y.checkInput) }, (this.calculateChecked() !== undefined && { onChange: this.handleChange }), { name: id, type: "checkbox", ref: elem => elem && (elem.indeterminate = isChecked === null), "aria-invalid": !isValid, disabled: isDisabled }, (defaultChecked !== undefined ? { defaultChecked } : { checked: isChecked }), getOUIAProps(MenuToggleCheckbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props)),
|
|
16093
16093
|
text));
|
|
16094
16094
|
}
|
|
16095
16095
|
}
|
|
@@ -16239,7 +16239,7 @@
|
|
|
16239
16239
|
modalBody,
|
|
16240
16240
|
modalBoxFooter));
|
|
16241
16241
|
return (React__namespace.createElement(Backdrop, null,
|
|
16242
|
-
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$
|
|
16242
|
+
React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$1h.bullseye) }, modalBox)));
|
|
16243
16243
|
};
|
|
16244
16244
|
ModalContent.displayName = 'ModalContent';
|
|
16245
16245
|
|
|
@@ -16298,10 +16298,10 @@
|
|
|
16298
16298
|
target.appendChild(container);
|
|
16299
16299
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
16300
16300
|
if (this.props.isOpen) {
|
|
16301
|
-
target.classList.add(css(styles$
|
|
16301
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
16302
16302
|
}
|
|
16303
16303
|
else {
|
|
16304
|
-
target.classList.remove(css(styles$
|
|
16304
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16305
16305
|
}
|
|
16306
16306
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
16307
16307
|
// eslint-disable-next-line no-console
|
|
@@ -16316,11 +16316,11 @@
|
|
|
16316
16316
|
const { appendTo } = this.props;
|
|
16317
16317
|
const target = this.getElement(appendTo);
|
|
16318
16318
|
if (this.props.isOpen) {
|
|
16319
|
-
target.classList.add(css(styles$
|
|
16319
|
+
target.classList.add(css(styles$1i.backdropOpen));
|
|
16320
16320
|
this.toggleSiblingsFromScreenReaders(true);
|
|
16321
16321
|
}
|
|
16322
16322
|
else {
|
|
16323
|
-
target.classList.remove(css(styles$
|
|
16323
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16324
16324
|
this.toggleSiblingsFromScreenReaders(false);
|
|
16325
16325
|
}
|
|
16326
16326
|
}
|
|
@@ -16331,7 +16331,7 @@
|
|
|
16331
16331
|
target.removeChild(this.state.container);
|
|
16332
16332
|
}
|
|
16333
16333
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
16334
|
-
target.classList.remove(css(styles$
|
|
16334
|
+
target.classList.remove(css(styles$1i.backdropOpen));
|
|
16335
16335
|
}
|
|
16336
16336
|
render() {
|
|
16337
16337
|
const _a = this.props, {
|
|
@@ -16368,7 +16368,7 @@
|
|
|
16368
16368
|
};
|
|
16369
16369
|
|
|
16370
16370
|
Promise.resolve().then(function () { return multipleFileUpload; });
|
|
16371
|
-
var styles$
|
|
16371
|
+
var styles$x = {
|
|
16372
16372
|
"modifiers": {
|
|
16373
16373
|
"horizontal": "pf-m-horizontal",
|
|
16374
16374
|
"dragOver": "pf-m-drag-over"
|
|
@@ -16411,7 +16411,7 @@
|
|
|
16411
16411
|
}));
|
|
16412
16412
|
const inputProps = getInputProps();
|
|
16413
16413
|
return (React__namespace.createElement(MultipleFileUploadContext.Provider, { value: { open } },
|
|
16414
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16414
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUpload, isDragActive && styles$x.modifiers.dragOver, isHorizontal && styles$x.modifiers.horizontal, className) }, rootProps, props),
|
|
16415
16415
|
React__namespace.createElement("input", Object.assign({}, inputProps)),
|
|
16416
16416
|
children)));
|
|
16417
16417
|
}));
|
|
@@ -16420,25 +16420,25 @@
|
|
|
16420
16420
|
|
|
16421
16421
|
const MultipleFileUploadTitleIcon = (_a) => {
|
|
16422
16422
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
16423
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16423
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleIcon, className) }, props), children));
|
|
16424
16424
|
};
|
|
16425
16425
|
MultipleFileUploadTitleIcon.displayName = 'MultipleFileUploadTitleIcon';
|
|
16426
16426
|
|
|
16427
16427
|
const MultipleFileUploadTitleText = (_a) => {
|
|
16428
16428
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16429
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16429
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleText, className) }, props), children));
|
|
16430
16430
|
};
|
|
16431
16431
|
MultipleFileUploadTitleText.displayName = 'MultipleFileUploadTitleText';
|
|
16432
16432
|
|
|
16433
16433
|
const MultipleFileUploadTitleTextSeparator = (_a) => {
|
|
16434
16434
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16435
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16435
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitleTextSeparator, className) }, props), children));
|
|
16436
16436
|
};
|
|
16437
16437
|
MultipleFileUploadTitleTextSeparator.displayName = 'MultipleFileUploadTitleTextSeparator';
|
|
16438
16438
|
|
|
16439
16439
|
const MultipleFileUploadTitle = (_a) => {
|
|
16440
16440
|
var { className, icon, text = '', textSeparator = '' } = _a, props = __rest$1(_a, ["className", "icon", "text", "textSeparator"]);
|
|
16441
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16441
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadTitle, className) }, props),
|
|
16442
16442
|
icon && React__namespace.createElement(MultipleFileUploadTitleIcon, null, icon),
|
|
16443
16443
|
text && (React__namespace.createElement(MultipleFileUploadTitleText, null,
|
|
16444
16444
|
`${text} `,
|
|
@@ -16449,21 +16449,21 @@
|
|
|
16449
16449
|
const MultipleFileUploadButton = (_a) => {
|
|
16450
16450
|
var { className, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", 'aria-label']);
|
|
16451
16451
|
const { open } = React__namespace.useContext(MultipleFileUploadContext);
|
|
16452
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16452
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadUpload, className) }, props),
|
|
16453
16453
|
React__namespace.createElement(Button, { variant: "secondary", "aria-label": ariaLabel, onClick: open }, "Upload")));
|
|
16454
16454
|
};
|
|
16455
16455
|
MultipleFileUploadButton.displayName = 'MultipleFileUploadButton';
|
|
16456
16456
|
|
|
16457
16457
|
const MultipleFileUploadInfo = (_a) => {
|
|
16458
16458
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
16459
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16459
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadInfo, className) }, props), children));
|
|
16460
16460
|
};
|
|
16461
16461
|
MultipleFileUploadInfo.displayName = 'MultipleFileUploadInfo';
|
|
16462
16462
|
|
|
16463
16463
|
const MultipleFileUploadMain = (_a) => {
|
|
16464
16464
|
var { className, titleIcon, titleText, titleTextSeparator, infoText, isUploadButtonHidden } = _a, props = __rest$1(_a, ["className", "titleIcon", "titleText", "titleTextSeparator", "infoText", "isUploadButtonHidden"]);
|
|
16465
16465
|
const showTitle = !!titleIcon || !!titleText || !!titleTextSeparator;
|
|
16466
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16466
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadMain, className) }, props),
|
|
16467
16467
|
showTitle && React__namespace.createElement(MultipleFileUploadTitle, { icon: titleIcon, text: titleText, textSeparator: titleTextSeparator }),
|
|
16468
16468
|
isUploadButtonHidden || React__namespace.createElement(MultipleFileUploadButton, null),
|
|
16469
16469
|
!!infoText && React__namespace.createElement(MultipleFileUploadInfo, null, infoText)));
|
|
@@ -16500,20 +16500,20 @@
|
|
|
16500
16500
|
setIcon(statusToggleIcon);
|
|
16501
16501
|
}
|
|
16502
16502
|
}, [statusToggleIcon]);
|
|
16503
|
-
const toggle = (React__namespace.createElement("div", { className: styles$
|
|
16504
|
-
React__namespace.createElement("div", { className: styles$
|
|
16505
|
-
React__namespace.createElement("div", { className: styles$
|
|
16503
|
+
const toggle = (React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusProgress },
|
|
16504
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusProgressIcon }, icon),
|
|
16505
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemProgressText }, statusToggleText)));
|
|
16506
16506
|
const toggleExpandableSection = () => {
|
|
16507
16507
|
setIsOpen(!isOpen);
|
|
16508
16508
|
};
|
|
16509
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
16509
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$x.multipleFileUploadStatus, className) }, props),
|
|
16510
16510
|
React__namespace.createElement(ExpandableSection, { toggleContent: toggle, isExpanded: isOpen, onToggle: toggleExpandableSection },
|
|
16511
16511
|
React__namespace.createElement("ul", { className: "pf-c-multiple-file-upload__status-list" }, children))));
|
|
16512
16512
|
};
|
|
16513
16513
|
MultipleFileUploadStatus.displayName = 'MultipleFileUploadStatus';
|
|
16514
16514
|
|
|
16515
16515
|
Promise.resolve().then(function () { return progress; });
|
|
16516
|
-
var styles$
|
|
16516
|
+
var styles$w = {
|
|
16517
16517
|
"modifiers": {
|
|
16518
16518
|
"sm": "pf-m-sm",
|
|
16519
16519
|
"lg": "pf-m-lg",
|
|
@@ -16538,9 +16538,9 @@
|
|
|
16538
16538
|
|
|
16539
16539
|
const ProgressBar = (_a) => {
|
|
16540
16540
|
var { progressBarAriaProps, className = '', children = null, value } = _a, props = __rest$1(_a, ["progressBarAriaProps", "className", "children", "value"]);
|
|
16541
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16542
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16543
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
16541
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$w.progressBar, className) }, progressBarAriaProps),
|
|
16542
|
+
React__namespace.createElement("div", { className: css(styles$w.progressIndicator), style: { width: `${value}%` } },
|
|
16543
|
+
React__namespace.createElement("span", { className: css(styles$w.progressMeasure) }, children))));
|
|
16544
16544
|
};
|
|
16545
16545
|
ProgressBar.displayName = 'ProgressBar';
|
|
16546
16546
|
|
|
@@ -16573,12 +16573,12 @@
|
|
|
16573
16573
|
setTooltip('');
|
|
16574
16574
|
}
|
|
16575
16575
|
};
|
|
16576
|
-
const Title = (React__namespace.createElement("div", { className: css(styles$
|
|
16576
|
+
const Title = (React__namespace.createElement("div", { className: css(styles$w.progressDescription, isTitleTruncated && typeof title === 'string' && styles$w.modifiers.truncate), id: `${parentId}-description`, "aria-hidden": "true", onMouseEnter: isTitleTruncated && typeof title === 'string' ? onMouseEnter : null }, title));
|
|
16577
16577
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16578
16578
|
tooltip ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
|
|
16579
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16580
|
-
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$
|
|
16581
|
-
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$
|
|
16579
|
+
React__namespace.createElement("div", { className: css(styles$w.progressStatus), "aria-hidden": "true" },
|
|
16580
|
+
(measureLocation === exports.ProgressMeasureLocation.top || measureLocation === exports.ProgressMeasureLocation.outside) && (React__namespace.createElement("span", { className: css(styles$w.progressMeasure) }, label || `${value}%`)),
|
|
16581
|
+
variantToIcon.hasOwnProperty(variant) && (React__namespace.createElement("span", { className: css(styles$w.progressStatusIcon) },
|
|
16582
16582
|
React__namespace.createElement(StatusIcon, null)))),
|
|
16583
16583
|
React__namespace.createElement(ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === exports.ProgressMeasureLocation.inside && `${value}%`)));
|
|
16584
16584
|
};
|
|
@@ -16620,7 +16620,7 @@
|
|
|
16620
16620
|
console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
|
|
16621
16621
|
}
|
|
16622
16622
|
const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
|
|
16623
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
16623
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$w.progress, styles$w.modifiers[variant], ['inside', 'outside'].includes(measureLocation) && styles$w.modifiers[measureLocation], measureLocation === 'inside' ? styles$w.modifiers[exports.ProgressSize.lg] : styles$w.modifiers[size], !title && styles$w.modifiers.singleline, className), id: this.id }),
|
|
16624
16624
|
React__namespace.createElement(ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
|
|
16625
16625
|
}
|
|
16626
16626
|
}
|
|
@@ -16703,21 +16703,21 @@
|
|
|
16703
16703
|
}
|
|
16704
16704
|
return `${Math.round(size)}${prefixes[prefixUnit]}B`;
|
|
16705
16705
|
};
|
|
16706
|
-
const title = (React__namespace.createElement("span", { className: styles$
|
|
16707
|
-
React__namespace.createElement("span", { className: styles$
|
|
16708
|
-
React__namespace.createElement("span", { className: styles$
|
|
16709
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
16710
|
-
React__namespace.createElement("div", { className: styles$
|
|
16711
|
-
React__namespace.createElement("div", { className: styles$
|
|
16706
|
+
const title = (React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgress },
|
|
16707
|
+
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressText }, fileName || (file === null || file === void 0 ? void 0 : file.name) || ''),
|
|
16708
|
+
React__namespace.createElement("span", { className: styles$x.multipleFileUploadStatusItemProgressSize }, fileSize || getHumanReadableFileSize((file === null || file === void 0 ? void 0 : file.size) || 0))));
|
|
16709
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$x.multipleFileUploadStatusItem, className) }, props),
|
|
16710
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemIcon }, fileIcon || React__namespace.createElement(FileIcon, null)),
|
|
16711
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemMain },
|
|
16712
16712
|
React__namespace.createElement(Progress, { title: title, value: progressValue || loadPercentage, variant: progressVariant || loadResult, "aria-label": progressAriaLabel, "aria-labelledby": progressAriaLabelledBy, id: progressId })),
|
|
16713
|
-
React__namespace.createElement("div", { className: styles$
|
|
16713
|
+
React__namespace.createElement("div", { className: styles$x.multipleFileUploadStatusItemClose },
|
|
16714
16714
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": buttonAriaLabel, onClick: onClearClick },
|
|
16715
16715
|
React__namespace.createElement(TimesCircleIcon, null)))));
|
|
16716
16716
|
};
|
|
16717
16717
|
MultipleFileUploadStatusItem.displayName = 'MultipleFileUploadStatusItem';
|
|
16718
16718
|
|
|
16719
16719
|
Promise.resolve().then(function () { return nav; });
|
|
16720
|
-
var styles$
|
|
16720
|
+
var styles$v = {
|
|
16721
16721
|
"divider": "pf-c-divider",
|
|
16722
16722
|
"menu": "pf-c-menu",
|
|
16723
16723
|
"menuContent": "pf-c-menu__content",
|
|
@@ -16800,7 +16800,7 @@
|
|
|
16800
16800
|
flyoutRef: this.state.flyoutRef,
|
|
16801
16801
|
setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
|
|
16802
16802
|
} },
|
|
16803
|
-
React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
16803
|
+
React__namespace.createElement("nav", Object.assign({ className: css(styles$v.nav, theme === 'light' && styles$v.modifiers.light, isHorizontal && styles$v.modifiers.horizontal, variant === 'tertiary' && styles$v.modifiers.tertiary, variant === 'horizontal-subnav' && styles$v.modifiers.horizontalSubnav, this.state.isScrollable && styles$v.modifiers.scrollable, className), "aria-label": ariaLabel || (variant === 'tertiary' ? 'Local' : 'Global') }, getOUIAProps(Nav.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
16804
16804
|
}
|
|
16805
16805
|
}
|
|
16806
16806
|
Nav.displayName = 'Nav';
|
|
@@ -16819,8 +16819,8 @@
|
|
|
16819
16819
|
var { className = '', nav, isNavOpen = true, theme = 'dark', id = 'page-sidebar' } = _a, props = __rest$1(_a, ["className", "nav", "isNavOpen", "theme", "id"]);
|
|
16820
16820
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {
|
|
16821
16821
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
16822
|
-
return (React__namespace.createElement("div", Object.assign({ id: id, className: css(styles$
|
|
16823
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
16822
|
+
return (React__namespace.createElement("div", Object.assign({ id: id, className: css(styles$z.pageSidebar, theme === 'light' && styles$z.modifiers.light, navOpen && styles$z.modifiers.expanded, !navOpen && styles$z.modifiers.collapsed, className), "aria-hidden": !navOpen }, props),
|
|
16823
|
+
React__namespace.createElement("div", { className: css(styles$z.pageSidebarBody) },
|
|
16824
16824
|
React__namespace.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));
|
|
16825
16825
|
}));
|
|
16826
16826
|
};
|
|
@@ -16898,10 +16898,10 @@
|
|
|
16898
16898
|
const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = __rest$1(_a, ["children", "className", "ariaLeftScroll", "ariaRightScroll"]);
|
|
16899
16899
|
const { scrollViewAtStart, scrollViewAtEnd } = this.state;
|
|
16900
16900
|
return (React__namespace.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement(React__namespace.Fragment, null,
|
|
16901
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16901
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },
|
|
16902
16902
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
16903
|
-
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$
|
|
16904
|
-
isHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
16903
|
+
React__namespace.createElement("ul", Object.assign({ ref: this.navList, className: css(styles$v.navList, className), onScroll: this.handleScrollButtons }, props), children),
|
|
16904
|
+
isHorizontal && (React__namespace.createElement("button", { className: css(styles$v.navScrollButton), "aria-label": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },
|
|
16905
16905
|
React__namespace.createElement(AngleRightIcon, null)))))))));
|
|
16906
16906
|
}
|
|
16907
16907
|
}
|
|
@@ -16919,9 +16919,9 @@
|
|
|
16919
16919
|
console.warn("For accessibility reasons an aria-label should be specified on nav groups if a title isn't");
|
|
16920
16920
|
}
|
|
16921
16921
|
const labelledBy = title ? id : undefined;
|
|
16922
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
16923
|
-
title && (React__namespace.createElement("h2", { className: css(styles$
|
|
16924
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
16922
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$v.navSection, className), "aria-labelledby": labelledBy }, props),
|
|
16923
|
+
title && (React__namespace.createElement("h2", { className: css(styles$v.navSectionTitle), id: id }, title)),
|
|
16924
|
+
React__namespace.createElement("ul", { className: css(styles$v.navList, className) }, children)));
|
|
16925
16925
|
};
|
|
16926
16926
|
NavGroup.displayName = 'NavGroup';
|
|
16927
16927
|
|
|
@@ -17010,8 +17010,8 @@
|
|
|
17010
17010
|
}
|
|
17011
17011
|
}
|
|
17012
17012
|
}, [flyoutVisible, flyoutTarget]);
|
|
17013
|
-
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$
|
|
17014
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17013
|
+
const flyoutButton = (React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17014
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
17015
17015
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": true }))));
|
|
17016
17016
|
const ariaFlyoutProps = {
|
|
17017
17017
|
'aria-haspopup': 'menu',
|
|
@@ -17019,12 +17019,12 @@
|
|
|
17019
17019
|
};
|
|
17020
17020
|
const renderDefaultLink = (context) => {
|
|
17021
17021
|
const preventLinkDefault = preventDefault || !to;
|
|
17022
|
-
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$
|
|
17022
|
+
return (React__namespace.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$v.navLink, isActive && styles$v.modifiers.current, isHovered && styles$v.modifiers.hover, className), "aria-current": isActive ? 'page' : null, tabIndex: isNavOpen ? null : '-1' }, (hasFlyout && Object.assign({}, ariaFlyoutProps)), props),
|
|
17023
17023
|
children,
|
|
17024
17024
|
flyout && flyoutButton));
|
|
17025
17025
|
};
|
|
17026
17026
|
const renderClonedChild = (context, child) => React__namespace.cloneElement(child, Object.assign(Object.assign({ onClick: (e) => context.onSelect(e, groupId, itemId, to, preventDefault, onClick), 'aria-current': isActive ? 'page' : null }, (styleChildren && {
|
|
17027
|
-
className: css(styles$
|
|
17027
|
+
className: css(styles$v.navLink, isActive && styles$v.modifiers.current, child.props && child.props.className)
|
|
17028
17028
|
})), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17029
17029
|
child.props.children,
|
|
17030
17030
|
flyoutButton)) : (child.props.children) }));
|
|
@@ -17037,7 +17037,7 @@
|
|
|
17037
17037
|
};
|
|
17038
17038
|
const flyoutPopper = (React__namespace.createElement(Popper, { reference: ref, popper: React__namespace.createElement("div", { ref: popperRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, flyout), placement: "right-start", isVisible: flyoutVisible, onDocumentKeyDown: handleFlyout }));
|
|
17039
17039
|
const navItem = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17040
|
-
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$
|
|
17040
|
+
React__namespace.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: css(styles$v.navItem, hasFlyout && styles$v.modifiers.flyout, className), ref: ref }, ouiaProps),
|
|
17041
17041
|
React__namespace.createElement(NavContext.Consumer, null, context => React__namespace.isValidElement(children)
|
|
17042
17042
|
? renderClonedChild(context, children)
|
|
17043
17043
|
: renderDefaultLink(context))),
|
|
@@ -17091,15 +17091,15 @@
|
|
|
17091
17091
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17092
17092
|
onExpand } = _a, props = __rest$1(_a, ["title", "srText", "children", "className", "isActive", "ouiaId", "groupId", "id", "isExpanded", "buttonProps", "onExpand"]);
|
|
17093
17093
|
const { expandedState, ouiaStateId } = this.state;
|
|
17094
|
-
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
17095
|
-
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$
|
|
17094
|
+
return (React__namespace.createElement(NavContext.Consumer, null, context => (React__namespace.createElement("li", Object.assign({ className: css(styles$v.navItem, styles$v.modifiers.expandable, expandedState && styles$v.modifiers.expanded, isActive && styles$v.modifiers.current, className) }, getOUIAProps(NavExpandable.displayName, ouiaId !== undefined ? ouiaId : ouiaStateId), props),
|
|
17095
|
+
React__namespace.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (React__namespace.createElement("button", Object.assign({ className: styles$v.navLink, id: srText ? null : this.id, onClick: e => this.onExpand(e, context.onToggle), "aria-expanded": expandedState, tabIndex: isNavOpen ? null : -1 }, buttonProps),
|
|
17096
17096
|
title,
|
|
17097
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17098
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17097
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggle) },
|
|
17098
|
+
React__namespace.createElement("span", { className: css(styles$v.navToggleIcon) },
|
|
17099
17099
|
React__namespace.createElement(AngleRightIcon, { "aria-hidden": "true" })))))),
|
|
17100
|
-
React__namespace.createElement("section", { className: css(styles$
|
|
17100
|
+
React__namespace.createElement("section", { className: css(styles$v.navSubnav), "aria-labelledby": this.id, hidden: expandedState ? null : true },
|
|
17101
17101
|
srText && (React__namespace.createElement("h2", { className: css(a11yStyles.screenReader), id: this.id }, srText)),
|
|
17102
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
17102
|
+
React__namespace.createElement("ul", { className: css(styles$v.navList) }, children))))));
|
|
17103
17103
|
}
|
|
17104
17104
|
}
|
|
17105
17105
|
NavExpandable.displayName = 'NavExpandable';
|
|
@@ -17114,7 +17114,7 @@
|
|
|
17114
17114
|
};
|
|
17115
17115
|
|
|
17116
17116
|
Promise.resolve().then(function () { return notificationBadge; });
|
|
17117
|
-
var styles$
|
|
17117
|
+
var styles$u = {
|
|
17118
17118
|
"iconAttentionBell": "pf-icon-attention-bell",
|
|
17119
17119
|
"iconBell": "pf-icon-bell",
|
|
17120
17120
|
"modifiers": {
|
|
@@ -17154,14 +17154,14 @@
|
|
|
17154
17154
|
notificationChild = attentionIcon;
|
|
17155
17155
|
}
|
|
17156
17156
|
return (React__namespace.createElement(Button, Object.assign({ variant: exports.ButtonVariant.plain, className: className }, props),
|
|
17157
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17157
|
+
React__namespace.createElement("span", { className: css(styles$u.notificationBadge, styles$u.modifiers[variant]) },
|
|
17158
17158
|
notificationChild,
|
|
17159
|
-
count > 0 && React__namespace.createElement("span", { className: css(styles$
|
|
17159
|
+
count > 0 && React__namespace.createElement("span", { className: css(styles$u.notificationBadgeCount) }, count))));
|
|
17160
17160
|
};
|
|
17161
17161
|
NotificationBadge.displayName = 'NotificationBadge';
|
|
17162
17162
|
|
|
17163
17163
|
Promise.resolve().then(function () { return notificationDrawer; });
|
|
17164
|
-
var styles$
|
|
17164
|
+
var styles$t = {
|
|
17165
17165
|
"modifiers": {
|
|
17166
17166
|
"read": "pf-m-read",
|
|
17167
17167
|
"info": "pf-m-info",
|
|
@@ -17197,14 +17197,14 @@
|
|
|
17197
17197
|
|
|
17198
17198
|
const NotificationDrawerBase = (_a) => {
|
|
17199
17199
|
var { children, className = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "innerRef"]);
|
|
17200
|
-
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$
|
|
17200
|
+
return (React__namespace.createElement("div", Object.assign({ ref: innerRef }, props, { className: css(styles$t.notificationDrawer, className) }), children));
|
|
17201
17201
|
};
|
|
17202
17202
|
const NotificationDrawer = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(NotificationDrawerBase, Object.assign({ innerRef: ref }, props))));
|
|
17203
17203
|
NotificationDrawer.displayName = 'NotificationDrawer';
|
|
17204
17204
|
|
|
17205
17205
|
const NotificationDrawerBody = (_a) => {
|
|
17206
17206
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17207
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17207
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerBody, className) }), children));
|
|
17208
17208
|
};
|
|
17209
17209
|
NotificationDrawerBody.displayName = 'NotificationDrawerBody';
|
|
17210
17210
|
|
|
@@ -17231,17 +17231,17 @@
|
|
|
17231
17231
|
}
|
|
17232
17232
|
titleRef.current.style.setProperty(c_notification_drawer__group_toggle_title_max_lines.name, truncateTitle.toString());
|
|
17233
17233
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17234
|
-
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17235
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17234
|
+
const Title = (React__namespace.createElement("div", Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$t.notificationDrawerGroupToggleTitle) }), title));
|
|
17235
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$t.notificationDrawerGroup, isExpanded && styles$t.modifiers.expanded, className) }),
|
|
17236
17236
|
React__namespace.createElement(HeadingLevel, null,
|
|
17237
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17237
|
+
React__namespace.createElement("button", { className: css(styles$t.notificationDrawerGroupToggle), "aria-expanded": isExpanded, onClick: e => onExpand(e, !isExpanded), onKeyDown: e => {
|
|
17238
17238
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
17239
17239
|
e.preventDefault();
|
|
17240
17240
|
onExpand(e, !isExpanded);
|
|
17241
17241
|
}
|
|
17242
17242
|
} },
|
|
17243
17243
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title),
|
|
17244
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
17244
|
+
React__namespace.createElement("div", { className: css(styles$t.notificationDrawerGroupToggleCount) },
|
|
17245
17245
|
React__namespace.createElement(Badge, { isRead: isRead }, count)),
|
|
17246
17246
|
React__namespace.createElement("span", { className: "pf-c-notification-drawer__group-toggle-icon" },
|
|
17247
17247
|
React__namespace.createElement(AngleRightIcon, null)))),
|
|
@@ -17251,13 +17251,13 @@
|
|
|
17251
17251
|
|
|
17252
17252
|
const NotificationDrawerGroupList = (_a) => {
|
|
17253
17253
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17254
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17254
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerGroupList, className) }), children));
|
|
17255
17255
|
};
|
|
17256
17256
|
NotificationDrawerGroupList.displayName = 'NotificationDrawerGroupList';
|
|
17257
17257
|
|
|
17258
17258
|
const TextContent = (_a) => {
|
|
17259
17259
|
var { children = null, className = '', isVisited = false } = _a, props = __rest$1(_a, ["children", "className", "isVisited"]);
|
|
17260
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17260
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$1f.content, isVisited && styles$1f.modifiers.visited, className) }), children));
|
|
17261
17261
|
};
|
|
17262
17262
|
TextContent.displayName = 'TextContent';
|
|
17263
17263
|
|
|
@@ -17279,7 +17279,7 @@
|
|
|
17279
17279
|
var { children = null, className = '', component = exports.TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
17280
17280
|
const Component = component;
|
|
17281
17281
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
17282
|
-
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$
|
|
17282
|
+
return (React__namespace.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === exports.TextVariants.a && styles$1f.modifiers.visited, className) }), children));
|
|
17283
17283
|
};
|
|
17284
17284
|
Text.displayName = 'Text';
|
|
17285
17285
|
|
|
@@ -17311,10 +17311,10 @@
|
|
|
17311
17311
|
|
|
17312
17312
|
const NotificationDrawerHeader = (_a) => {
|
|
17313
17313
|
var { children, className = '', count, closeButtonAriaLabel = 'Close', customText, onClose, title = 'Notifications', unreadText = 'unread' } = _a, props = __rest$1(_a, ["children", "className", "count", "closeButtonAriaLabel", "customText", "onClose", "title", "unreadText"]);
|
|
17314
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17315
|
-
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$
|
|
17316
|
-
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$
|
|
17317
|
-
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$
|
|
17314
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerHeader, className) }),
|
|
17315
|
+
React__namespace.createElement(Text, { component: exports.TextVariants.h1, className: css(styles$t.notificationDrawerHeaderTitle) }, title),
|
|
17316
|
+
(customText !== undefined || count !== undefined) && (React__namespace.createElement("span", { className: css(styles$t.notificationDrawerHeaderStatus) }, customText || `${count} ${unreadText}`)),
|
|
17317
|
+
(children || onClose) && (React__namespace.createElement("div", { className: css(styles$t.notificationDrawerHeaderAction) },
|
|
17318
17318
|
children,
|
|
17319
17319
|
onClose && (React__namespace.createElement("div", null,
|
|
17320
17320
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": closeButtonAriaLabel, onClick: onClose },
|
|
@@ -17338,15 +17338,15 @@
|
|
|
17338
17338
|
event.target.click();
|
|
17339
17339
|
}
|
|
17340
17340
|
};
|
|
17341
|
-
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$
|
|
17341
|
+
return (React__namespace.createElement("li", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItem, isHoverable && styles$t.modifiers.hoverable, styles$t.modifiers[variant], isRead && styles$t.modifiers.read, className), tabIndex: tabIndex, onClick: e => onClick(e), onKeyDown: onKeyDown }), children));
|
|
17342
17342
|
};
|
|
17343
17343
|
NotificationDrawerListItem.displayName = 'NotificationDrawerListItem';
|
|
17344
17344
|
|
|
17345
17345
|
const NotificationDrawerListItemBody = (_a) => {
|
|
17346
17346
|
var { children, className = '', timestamp } = _a, props = __rest$1(_a, ["children", "className", "timestamp"]);
|
|
17347
17347
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17348
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17349
|
-
timestamp && React__namespace.createElement("div", { className: css(styles$
|
|
17348
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItemDescription, className) }), children),
|
|
17349
|
+
timestamp && React__namespace.createElement("div", { className: css(styles$t.notificationDrawerListItemTimestamp, className) }, timestamp)));
|
|
17350
17350
|
};
|
|
17351
17351
|
NotificationDrawerListItemBody.displayName = 'NotificationDrawerListItemBody';
|
|
17352
17352
|
|
|
@@ -17378,19 +17378,19 @@
|
|
|
17378
17378
|
}
|
|
17379
17379
|
}, [titleRef, truncateTitle, isTooltipVisible]);
|
|
17380
17380
|
const Icon = variantIcons$1[variant];
|
|
17381
|
-
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$
|
|
17381
|
+
const Title = (React__namespace.createElement(HeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$t.notificationDrawerListItemHeaderTitle, truncateTitle && styles$t.modifiers.truncate) }),
|
|
17382
17382
|
srTitle && React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, srTitle),
|
|
17383
17383
|
title));
|
|
17384
17384
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17385
|
-
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17386
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17385
|
+
React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$t.notificationDrawerListItemHeader, className) }),
|
|
17386
|
+
React__namespace.createElement("span", { className: css(styles$t.notificationDrawerListItemHeaderIcon) }, icon ? icon : React__namespace.createElement(Icon, null)),
|
|
17387
17387
|
isTooltipVisible ? (React__namespace.createElement(Tooltip, { content: title, position: tooltipPosition }, Title)) : (Title)),
|
|
17388
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
17388
|
+
children && React__namespace.createElement("div", { className: css(styles$t.notificationDrawerListItemAction) }, children)));
|
|
17389
17389
|
};
|
|
17390
17390
|
NotificationDrawerListItemHeader.displayName = 'NotificationDrawerListItemHeader';
|
|
17391
17391
|
|
|
17392
17392
|
Promise.resolve().then(function () { return optionsMenu; });
|
|
17393
|
-
var styles$
|
|
17393
|
+
var styles$s = {
|
|
17394
17394
|
"divider": "pf-c-divider",
|
|
17395
17395
|
"modifiers": {
|
|
17396
17396
|
"plain": "pf-m-plain",
|
|
@@ -17432,13 +17432,13 @@
|
|
|
17432
17432
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
17433
17433
|
id,
|
|
17434
17434
|
onSelect: () => undefined,
|
|
17435
|
-
toggleIndicatorClass: styles$
|
|
17436
|
-
toggleTextClass: styles$
|
|
17437
|
-
menuClass: styles$
|
|
17438
|
-
itemClass: styles$
|
|
17439
|
-
toggleClass: isText ? styles$
|
|
17440
|
-
baseClass: styles$
|
|
17441
|
-
disabledClass: styles$
|
|
17435
|
+
toggleIndicatorClass: styles$s.optionsMenuToggleIcon,
|
|
17436
|
+
toggleTextClass: styles$s.optionsMenuToggleText,
|
|
17437
|
+
menuClass: styles$s.optionsMenuMenu,
|
|
17438
|
+
itemClass: styles$s.optionsMenuMenuItem,
|
|
17439
|
+
toggleClass: isText ? styles$s.optionsMenuToggleButton : styles$s.optionsMenuToggle,
|
|
17440
|
+
baseClass: styles$s.optionsMenu,
|
|
17441
|
+
disabledClass: styles$s.modifiers.disabled,
|
|
17442
17442
|
menuComponent: isGrouped ? 'div' : 'ul',
|
|
17443
17443
|
baseComponent: 'div',
|
|
17444
17444
|
ouiaId: useOUIAId(OptionsMenu.displayName, ouiaId),
|
|
@@ -17463,8 +17463,8 @@
|
|
|
17463
17463
|
|
|
17464
17464
|
const OptionsMenuItemGroup = (_a) => {
|
|
17465
17465
|
var { className = '', 'aria-label': ariaLabel = '', groupTitle = '', children = null, hasSeparator = false } = _a, props = __rest$1(_a, ["className", 'aria-label', "groupTitle", "children", "hasSeparator"]);
|
|
17466
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$
|
|
17467
|
-
groupTitle && React__namespace.createElement("h1", { className: css(styles$
|
|
17466
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$s.optionsMenuGroup), role: "none" }),
|
|
17467
|
+
groupTitle && React__namespace.createElement("h1", { className: css(styles$s.optionsMenuGroupTitle) }, groupTitle),
|
|
17468
17468
|
React__namespace.createElement("ul", { className: className, "aria-label": ariaLabel, role: "group" },
|
|
17469
17469
|
children,
|
|
17470
17470
|
hasSeparator && React__namespace.createElement(Divider, { component: "li", role: "separator" }))));
|
|
@@ -17475,7 +17475,7 @@
|
|
|
17475
17475
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest$1(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
17476
17476
|
return (React__namespace.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
17477
17477
|
children,
|
|
17478
|
-
isSelected && (React__namespace.createElement("span", { className: css(styles$
|
|
17478
|
+
isSelected && (React__namespace.createElement("span", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17479
17479
|
React__namespace.createElement(CheckIcon, { "aria-hidden": isSelected })))));
|
|
17480
17480
|
};
|
|
17481
17481
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -17537,15 +17537,15 @@
|
|
|
17537
17537
|
buttonRef.current.focus();
|
|
17538
17538
|
}
|
|
17539
17539
|
};
|
|
17540
|
-
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ id: contextId }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17541
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17542
|
-
React__namespace.createElement("button", { className: css(styles$
|
|
17543
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
17540
|
+
return (React__namespace.createElement(DropdownContext.Consumer, null, ({ id: contextId }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$s.optionsMenuToggle, styles$s.modifiers.text, isPlain && styles$s.modifiers.plain, isDisabled && styles$s.modifiers.disabled, isActive && styles$s.modifiers.active) }, props),
|
|
17541
|
+
React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleText, toggleTextClassName) }, toggleText),
|
|
17542
|
+
React__namespace.createElement("button", { className: css(styles$s.optionsMenuToggleButton, toggleButtonContentsClassName), id: parentId ? `${parentId}-toggle` : `${contextId}-toggle`, "aria-haspopup": "listbox", "aria-label": ariaLabel, "aria-expanded": isOpen, ref: buttonRef, disabled: isDisabled, onClick: () => onToggle(!isOpen), onKeyDown: onKeyDown },
|
|
17543
|
+
React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleButtonIcon) }, toggleButtonContents))))));
|
|
17544
17544
|
};
|
|
17545
17545
|
OptionsMenuToggleWithText.displayName = 'OptionsMenuToggleWithText';
|
|
17546
17546
|
|
|
17547
17547
|
Promise.resolve().then(function () { return overflowMenu; });
|
|
17548
|
-
var styles$
|
|
17548
|
+
var styles$r = {
|
|
17549
17549
|
"divider": "pf-c-divider",
|
|
17550
17550
|
"modifiers": {
|
|
17551
17551
|
"buttonGroup": "pf-m-button-group",
|
|
@@ -17601,7 +17601,7 @@
|
|
|
17601
17601
|
render() {
|
|
17602
17602
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17603
17603
|
const _a = this.props, { className, breakpoint, children } = _a, props = __rest$1(_a, ["className", "breakpoint", "children"]);
|
|
17604
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17604
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$r.overflowMenu, className) }),
|
|
17605
17605
|
React__namespace.createElement(OverflowMenuContext.Provider, { value: { isBelowBreakpoint: this.state.isBelowBreakpoint } }, children)));
|
|
17606
17606
|
}
|
|
17607
17607
|
}
|
|
@@ -17610,23 +17610,23 @@
|
|
|
17610
17610
|
|
|
17611
17611
|
const OverflowMenuControl = (_a) => {
|
|
17612
17612
|
var { className, children, hasAdditionalOptions } = _a, props = __rest$1(_a, ["className", "children", "hasAdditionalOptions"]);
|
|
17613
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17613
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (value.isBelowBreakpoint || hasAdditionalOptions) && (React__namespace.createElement("div", Object.assign({ className: css(styles$r.overflowMenuControl, className) }, props),
|
|
17614
17614
|
' ',
|
|
17615
17615
|
children,
|
|
17616
17616
|
' '))));
|
|
17617
17617
|
};
|
|
17618
17618
|
OverflowMenuControl.displayName = 'OverflowMenuControl';
|
|
17619
17619
|
|
|
17620
|
-
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$
|
|
17620
|
+
const OverflowMenuContent = ({ className, children, isPersistent }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (!value.isBelowBreakpoint || isPersistent) && (React__namespace.createElement("div", { className: css(styles$r.overflowMenuContent, className) }, children))));
|
|
17621
17621
|
OverflowMenuContent.displayName = 'OverflowMenuContent';
|
|
17622
17622
|
|
|
17623
17623
|
const OverflowMenuGroup = (_a) => {
|
|
17624
17624
|
var { className, children, isPersistent = false, groupType } = _a, props = __rest$1(_a, ["className", "children", "isPersistent", "groupType"]);
|
|
17625
|
-
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17625
|
+
return (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", Object.assign({ className: css(styles$r.overflowMenuGroup, groupType === 'button' && styles$r.modifiers.buttonGroup, groupType === 'icon' && styles$r.modifiers.iconButtonGroup, className) }, props), children))));
|
|
17626
17626
|
};
|
|
17627
17627
|
OverflowMenuGroup.displayName = 'OverflowMenuGroup';
|
|
17628
17628
|
|
|
17629
|
-
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$
|
|
17629
|
+
const OverflowMenuItem = ({ className, children, isPersistent = false }) => (React__namespace.createElement(OverflowMenuContext.Consumer, null, value => (isPersistent || !value.isBelowBreakpoint) && (React__namespace.createElement("div", { className: css(styles$r.overflowMenuItem, className) },
|
|
17630
17630
|
" ",
|
|
17631
17631
|
children,
|
|
17632
17632
|
" "))));
|
|
@@ -17647,8 +17647,8 @@
|
|
|
17647
17647
|
console.warn('PageBreadcrumb: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17648
17648
|
}
|
|
17649
17649
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17650
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
17651
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17650
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$z.pageMainBreadcrumb, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17651
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17652
17652
|
!isWidthLimited && children));
|
|
17653
17653
|
};
|
|
17654
17654
|
PageBreadcrumb.displayName = 'PageBreadcrumb';
|
|
@@ -17662,7 +17662,7 @@
|
|
|
17662
17662
|
console.warn('PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17663
17663
|
}
|
|
17664
17664
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17665
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
17665
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$z.pageMainGroup, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }), children));
|
|
17666
17666
|
};
|
|
17667
17667
|
PageGroup.displayName = 'PageGroup';
|
|
17668
17668
|
|
|
@@ -17686,13 +17686,13 @@
|
|
|
17686
17686
|
return (React__namespace.createElement(PageContextConsumer, null, ({ isManagedSidebar, onNavToggle: managedOnNavToggle, isNavOpen: managedIsNavOpen }) => {
|
|
17687
17687
|
const navToggle = isManagedSidebar ? managedOnNavToggle : onNavToggle;
|
|
17688
17688
|
const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
|
|
17689
|
-
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$
|
|
17690
|
-
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$
|
|
17691
|
-
showNavToggle && (React__namespace.createElement("div", { className: css(styles$
|
|
17689
|
+
return (React__namespace.createElement("header", Object.assign({ role: role, className: css(styles$z.pageHeader, className) }, props),
|
|
17690
|
+
(showNavToggle || logo) && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrand) },
|
|
17691
|
+
showNavToggle && (React__namespace.createElement("div", { className: css(styles$z.pageHeaderBrandToggle) },
|
|
17692
17692
|
React__namespace.createElement(Button, { id: navToggleId, onClick: navToggle, "aria-label": ariaLabel, "aria-controls": ariaControls, "aria-expanded": navOpen ? 'true' : 'false', variant: exports.ButtonVariant.plain },
|
|
17693
17693
|
React__namespace.createElement(BarsIcon, null)))),
|
|
17694
|
-
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$
|
|
17695
|
-
topNav && React__namespace.createElement("div", { className: css(styles$
|
|
17694
|
+
logo && (React__namespace.createElement(LogoComponent, Object.assign({ className: css(styles$z.pageHeaderBrandLink) }, logoProps), logo)))),
|
|
17695
|
+
topNav && React__namespace.createElement("div", { className: css(styles$z.pageHeaderNav) }, topNav),
|
|
17696
17696
|
headerTools));
|
|
17697
17697
|
}));
|
|
17698
17698
|
};
|
|
@@ -17715,18 +17715,18 @@
|
|
|
17715
17715
|
PageSectionTypes["wizard"] = "wizard";
|
|
17716
17716
|
})(exports.PageSectionTypes || (exports.PageSectionTypes = {}));
|
|
17717
17717
|
const variantType = {
|
|
17718
|
-
[exports.PageSectionTypes.default]: styles$
|
|
17719
|
-
[exports.PageSectionTypes.nav]: styles$
|
|
17720
|
-
[exports.PageSectionTypes.subNav]: styles$
|
|
17721
|
-
[exports.PageSectionTypes.breadcrumb]: styles$
|
|
17722
|
-
[exports.PageSectionTypes.tabs]: styles$
|
|
17723
|
-
[exports.PageSectionTypes.wizard]: styles$
|
|
17718
|
+
[exports.PageSectionTypes.default]: styles$z.pageMainSection,
|
|
17719
|
+
[exports.PageSectionTypes.nav]: styles$z.pageMainNav,
|
|
17720
|
+
[exports.PageSectionTypes.subNav]: styles$z.pageMainSubnav,
|
|
17721
|
+
[exports.PageSectionTypes.breadcrumb]: styles$z.pageMainBreadcrumb,
|
|
17722
|
+
[exports.PageSectionTypes.tabs]: styles$z.pageMainTabs,
|
|
17723
|
+
[exports.PageSectionTypes.wizard]: styles$z.pageMainWizard
|
|
17724
17724
|
};
|
|
17725
17725
|
const variantStyle$3 = {
|
|
17726
17726
|
[exports.PageSectionVariants.default]: '',
|
|
17727
|
-
[exports.PageSectionVariants.light]: styles$
|
|
17728
|
-
[exports.PageSectionVariants.dark]: styles$
|
|
17729
|
-
[exports.PageSectionVariants.darker]: styles$
|
|
17727
|
+
[exports.PageSectionVariants.light]: styles$z.modifiers.light,
|
|
17728
|
+
[exports.PageSectionVariants.dark]: styles$z.modifiers.dark_200,
|
|
17729
|
+
[exports.PageSectionVariants.darker]: styles$z.modifiers.dark_100
|
|
17730
17730
|
};
|
|
17731
17731
|
const PageSection = (_a) => {
|
|
17732
17732
|
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, stickyOnBreakpoint, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "stickyOnBreakpoint", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll", 'aria-label']);
|
|
@@ -17737,29 +17737,29 @@
|
|
|
17737
17737
|
console.warn('PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17738
17738
|
}
|
|
17739
17739
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17740
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$
|
|
17741
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17740
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$z), formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), variantStyle$3[variant], isFilled === false && styles$z.modifiers.noFill, isFilled === true && styles$z.modifiers.fill, isWidthLimited && styles$z.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$z.modifiers.alignCenter, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }),
|
|
17741
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17742
17742
|
!isWidthLimited && children));
|
|
17743
17743
|
};
|
|
17744
17744
|
PageSection.displayName = 'PageSection';
|
|
17745
17745
|
|
|
17746
17746
|
const PageHeaderTools = (_a) => {
|
|
17747
17747
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
17748
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17748
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderTools, className) }, props), children));
|
|
17749
17749
|
};
|
|
17750
17750
|
PageHeaderTools.displayName = 'PageHeaderTools';
|
|
17751
17751
|
|
|
17752
17752
|
const PageHeaderToolsGroup = (_a) => {
|
|
17753
17753
|
var { children, className, visibility } = _a, props = __rest$1(_a, ["children", "className", "visibility"]);
|
|
17754
17754
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17755
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17755
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderToolsGroup, formatBreakpointMods(visibility, styles$z, '', getBreakpoint(width)), className) }, props), children));
|
|
17756
17756
|
};
|
|
17757
17757
|
PageHeaderToolsGroup.displayName = 'PageHeaderToolsGroup';
|
|
17758
17758
|
|
|
17759
17759
|
const PageHeaderToolsItem = (_a) => {
|
|
17760
17760
|
var { children, id, className, visibility, isSelected } = _a, props = __rest$1(_a, ["children", "id", "className", "visibility", "isSelected"]);
|
|
17761
17761
|
const { width, getBreakpoint } = React__namespace.useContext(PageContext);
|
|
17762
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17762
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageHeaderToolsItem, isSelected && styles$z.modifiers.selected, formatBreakpointMods(visibility, styles$z, '', getBreakpoint(width)), className), id: id }, props), children));
|
|
17763
17763
|
};
|
|
17764
17764
|
PageHeaderToolsItem.displayName = 'PageHeaderToolsItem';
|
|
17765
17765
|
|
|
@@ -17772,8 +17772,8 @@
|
|
|
17772
17772
|
console.warn('PageNavigation: An accessible aria-label is required when hasOverflowScroll is set to true.');
|
|
17773
17773
|
}
|
|
17774
17774
|
}, [hasOverflowScroll, ariaLabel]);
|
|
17775
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
17776
|
-
isWidthLimited && React__namespace.createElement("div", { className: css(styles$
|
|
17775
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainNav, formatBreakpointMods(stickyOnBreakpoint, styles$z, 'sticky-', getVerticalBreakpoint(height), true), isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), { "aria-label": ariaLabel }, props),
|
|
17776
|
+
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
17777
17777
|
!isWidthLimited && children));
|
|
17778
17778
|
};
|
|
17779
17779
|
PageNavigation.displayName = 'PageNavigation';
|
|
@@ -17802,7 +17802,7 @@
|
|
|
17802
17802
|
ToggleTemplate.displayName = 'ToggleTemplate';
|
|
17803
17803
|
|
|
17804
17804
|
Promise.resolve().then(function () { return pagination; });
|
|
17805
|
-
var styles$
|
|
17805
|
+
var styles$q = {
|
|
17806
17806
|
"button": "pf-c-button",
|
|
17807
17807
|
"formControl": "pf-c-form-control",
|
|
17808
17808
|
"modifiers": {
|
|
@@ -17880,15 +17880,15 @@
|
|
|
17880
17880
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17881
17881
|
onSetPage, isDisabled, itemCount, lastPage, firstPage, pagesTitle, pagesTitlePlural, toLastPage, toNextPage, toFirstPage, toPreviousPage, currPage, paginationTitle, ofWord, onNextClick, onPreviousClick, onFirstClick, onLastClick, onPageInput, className, isCompact } = _a, props = __rest$1(_a, ["page", "perPage", "onSetPage", "isDisabled", "itemCount", "lastPage", "firstPage", "pagesTitle", "pagesTitlePlural", "toLastPage", "toNextPage", "toFirstPage", "toPreviousPage", "currPage", "paginationTitle", "ofWord", "onNextClick", "onPreviousClick", "onFirstClick", "onLastClick", "onPageInput", "className", "isCompact"]);
|
|
17882
17882
|
const { userInputPage } = this.state;
|
|
17883
|
-
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$
|
|
17884
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17883
|
+
return (React__namespace.createElement("nav", Object.assign({ className: css(styles$q.paginationNav, className), "aria-label": paginationTitle }, props),
|
|
17884
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$q.paginationNavControl, styles$q.modifiers.first) },
|
|
17885
17885
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "aria-label": toFirstPage, "data-action": "first", onClick: event => {
|
|
17886
17886
|
onFirstClick(event, 1);
|
|
17887
17887
|
this.handleNewPage(event, 1);
|
|
17888
17888
|
this.setState({ userInputPage: 1 });
|
|
17889
17889
|
} },
|
|
17890
17890
|
React__namespace.createElement(AngleDoubleLeftIcon, null)))),
|
|
17891
|
-
React__namespace.createElement("div", { className: styles$
|
|
17891
|
+
React__namespace.createElement("div", { className: styles$q.paginationNavControl },
|
|
17892
17892
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
|
|
17893
17893
|
const newPage = page - 1 >= 1 ? page - 1 : 1;
|
|
17894
17894
|
onPreviousClick(event, newPage);
|
|
@@ -17896,13 +17896,13 @@
|
|
|
17896
17896
|
this.setState({ userInputPage: newPage });
|
|
17897
17897
|
}, "aria-label": toPreviousPage },
|
|
17898
17898
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
17899
|
-
!isCompact && (React__namespace.createElement("div", { className: styles$
|
|
17900
|
-
React__namespace.createElement("input", { className: css(styles$
|
|
17899
|
+
!isCompact && (React__namespace.createElement("div", { className: styles$q.paginationNavPageSelect },
|
|
17900
|
+
React__namespace.createElement("input", { className: css(styles$q.formControl), "aria-label": currPage, type: "number", disabled: isDisabled || (itemCount && page === firstPage && page === lastPage && itemCount >= 0) || page === 0, min: lastPage <= 0 && firstPage <= 0 ? 0 : 1, max: lastPage, value: userInputPage, onKeyDown: event => this.onKeyDown(event, page, lastPage, onPageInput), onChange: event => this.onChange(event, lastPage) }),
|
|
17901
17901
|
(itemCount || itemCount === 0) && (React__namespace.createElement("span", { "aria-hidden": "true" },
|
|
17902
17902
|
ofWord,
|
|
17903
17903
|
" ",
|
|
17904
17904
|
pagesTitle ? pluralize(lastPage, pagesTitle, pagesTitlePlural) : lastPage)))),
|
|
17905
|
-
React__namespace.createElement("div", { className: styles$
|
|
17905
|
+
React__namespace.createElement("div", { className: styles$q.paginationNavControl },
|
|
17906
17906
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toNextPage, "data-action": "next", onClick: event => {
|
|
17907
17907
|
const newPage = page + 1 <= lastPage ? page + 1 : lastPage;
|
|
17908
17908
|
onNextClick(event, newPage);
|
|
@@ -17910,7 +17910,7 @@
|
|
|
17910
17910
|
this.setState({ userInputPage: newPage });
|
|
17911
17911
|
} },
|
|
17912
17912
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
17913
|
-
!isCompact && (React__namespace.createElement("div", { className: css(styles$
|
|
17913
|
+
!isCompact && (React__namespace.createElement("div", { className: css(styles$q.paginationNavControl, styles$q.modifiers.last) },
|
|
17914
17914
|
React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
|
|
17915
17915
|
onLastClick(event, lastPage);
|
|
17916
17916
|
this.handleNewPage(event, lastPage);
|
|
@@ -17949,11 +17949,11 @@
|
|
|
17949
17949
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17950
17950
|
onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null, perPageComponent = 'div' }) => {
|
|
17951
17951
|
const isDiv = perPageComponent === 'div';
|
|
17952
|
-
const toggleClasses = css(styles$
|
|
17952
|
+
const toggleClasses = css(styles$s.optionsMenuToggle, isDisabled && styles$s.modifiers.disabled, styles$s.modifiers.plain, styles$s.modifiers.text);
|
|
17953
17953
|
const template = typeof ToggleTemplate === 'string' ? (fillTemplate(ToggleTemplate, { firstIndex, lastIndex, ofWord, itemCount, itemsTitle })) : (React__namespace.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, ofWord: ofWord, itemCount: itemCount, itemsTitle: itemsTitle }));
|
|
17954
17954
|
const dropdown = showToggle && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
17955
|
-
isDiv && React__namespace.createElement("span", { className: css(styles$
|
|
17956
|
-
React__namespace.createElement(DropdownToggle, { onEnter: onEnter, "aria-label": isDiv ? optionsToggle || 'Items per page' : optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: isDiv ? styles$
|
|
17955
|
+
isDiv && React__namespace.createElement("span", { className: css(styles$s.optionsMenuToggleText) }, template),
|
|
17956
|
+
React__namespace.createElement(DropdownToggle, { onEnter: onEnter, "aria-label": isDiv ? optionsToggle || 'Items per page' : optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: isDiv ? styles$s.optionsMenuToggleButton : toggleClasses, parentRef: parentRef, "aria-haspopup": "listbox" }, !isDiv && template)));
|
|
17957
17957
|
return isDiv ? React__namespace.createElement("div", { className: toggleClasses }, dropdown) : dropdown;
|
|
17958
17958
|
};
|
|
17959
17959
|
OptionsToggle.displayName = 'OptionsToggle';
|
|
@@ -17990,7 +17990,7 @@
|
|
|
17990
17990
|
return perPageOptions.map(({ value, title }) => (React__namespace.createElement(DropdownItem, { key: value, component: "button", "data-action": `per-page-${value}`, className: css(perPage === value && 'pf-m-selected'), onClick: event => this.handleNewPerPage(event, value) },
|
|
17991
17991
|
title,
|
|
17992
17992
|
` ${perPageSuffix}`,
|
|
17993
|
-
perPage === value && (React__namespace.createElement("div", { className: css(styles$
|
|
17993
|
+
perPage === value && (React__namespace.createElement("div", { className: css(styles$s.optionsMenuMenuItemIcon) },
|
|
17994
17994
|
React__namespace.createElement(CheckIcon, null))))));
|
|
17995
17995
|
};
|
|
17996
17996
|
this.state = {
|
|
@@ -18003,13 +18003,13 @@
|
|
|
18003
18003
|
return (React__namespace.createElement(DropdownContext.Provider, { value: {
|
|
18004
18004
|
id: widgetId,
|
|
18005
18005
|
onSelect: this.onSelect,
|
|
18006
|
-
toggleIndicatorClass: perPageComponent === 'div' ? styles$
|
|
18007
|
-
toggleTextClass: styles$
|
|
18008
|
-
menuClass: styles$
|
|
18009
|
-
itemClass: styles$
|
|
18006
|
+
toggleIndicatorClass: perPageComponent === 'div' ? styles$s.optionsMenuToggleButtonIcon : styles$s.optionsMenuToggleIcon,
|
|
18007
|
+
toggleTextClass: styles$s.optionsMenuToggleText,
|
|
18008
|
+
menuClass: styles$s.optionsMenuMenu,
|
|
18009
|
+
itemClass: styles$s.optionsMenuMenuItem,
|
|
18010
18010
|
toggleClass: ' ',
|
|
18011
|
-
baseClass: styles$
|
|
18012
|
-
disabledClass: styles$
|
|
18011
|
+
baseClass: styles$s.optionsMenu,
|
|
18012
|
+
disabledClass: styles$s.modifiers.disabled,
|
|
18013
18013
|
menuComponent: 'ul',
|
|
18014
18014
|
baseComponent: 'div',
|
|
18015
18015
|
ouiaComponentType: PaginationOptionsMenu.displayName
|
|
@@ -18129,8 +18129,8 @@
|
|
|
18129
18129
|
}
|
|
18130
18130
|
}
|
|
18131
18131
|
const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };
|
|
18132
|
-
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$
|
|
18133
|
-
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$
|
|
18132
|
+
return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(styles$q.pagination, variant === exports.PaginationVariant.bottom && styles$q.modifiers.bottom, isCompact && styles$q.modifiers.compact, isStatic && styles$q.modifiers.static, isSticky && styles$q.modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
|
|
18133
|
+
variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(styles$q.paginationTotalItems) },
|
|
18134
18134
|
toggleTemplate && typeof toggleTemplate === 'string' && fillTemplate(toggleTemplate, toggleTemplateProps),
|
|
18135
18135
|
toggleTemplate &&
|
|
18136
18136
|
typeof toggleTemplate !== 'string' &&
|
|
@@ -18185,7 +18185,7 @@
|
|
|
18185
18185
|
};
|
|
18186
18186
|
|
|
18187
18187
|
Promise.resolve().then(function () { return progressStepper; });
|
|
18188
|
-
var styles$
|
|
18188
|
+
var styles$p = {
|
|
18189
18189
|
"faExclamationTriangle": "fa-exclamation-triangle",
|
|
18190
18190
|
"modifiers": {
|
|
18191
18191
|
"center": "pf-m-center",
|
|
@@ -18222,7 +18222,7 @@
|
|
|
18222
18222
|
|
|
18223
18223
|
const ProgressStepper = (_a) => {
|
|
18224
18224
|
var { children, className, isCenterAligned, isVertical, isCompact } = _a, props = __rest$1(_a, ["children", "className", "isCenterAligned", "isVertical", "isCompact"]);
|
|
18225
|
-
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$
|
|
18225
|
+
return (React__namespace.createElement("ol", Object.assign({ className: css(styles$p.progressStepper, isCenterAligned && styles$p.modifiers.center, isVertical && styles$p.modifiers.vertical, isCompact && styles$p.modifiers.compact, className) }, props), children));
|
|
18226
18226
|
};
|
|
18227
18227
|
ProgressStepper.displayName = 'ProgressStepper';
|
|
18228
18228
|
|
|
@@ -18247,11 +18247,11 @@
|
|
|
18247
18247
|
};
|
|
18248
18248
|
const variantStyle$2 = {
|
|
18249
18249
|
default: '',
|
|
18250
|
-
info: styles$
|
|
18251
|
-
success: styles$
|
|
18252
|
-
pending: styles$
|
|
18253
|
-
warning: styles$
|
|
18254
|
-
danger: styles$
|
|
18250
|
+
info: styles$p.modifiers.info,
|
|
18251
|
+
success: styles$p.modifiers.success,
|
|
18252
|
+
pending: styles$p.modifiers.pending,
|
|
18253
|
+
warning: styles$p.modifiers.warning,
|
|
18254
|
+
danger: styles$p.modifiers.danger
|
|
18255
18255
|
};
|
|
18256
18256
|
const ProgressStep = (_a) => {
|
|
18257
18257
|
var { children, className, variant, isCurrent, description, icon, titleId, 'aria-label': ariaLabel, popoverRender } = _a, props = __rest$1(_a, ["children", "className", "variant", "isCurrent", "description", "icon", "titleId", 'aria-label', "popoverRender"]);
|
|
@@ -18262,19 +18262,19 @@
|
|
|
18262
18262
|
/* eslint-disable no-console */
|
|
18263
18263
|
console.warn('ProgressStep: The titleId and id properties are required to make this component accessible, and one or both of these properties are missing.');
|
|
18264
18264
|
}
|
|
18265
|
-
return (React__namespace.createElement("li", Object.assign({ className: css(styles$
|
|
18266
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18267
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18268
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
18269
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
18265
|
+
return (React__namespace.createElement("li", Object.assign({ className: css(styles$p.progressStepperStep, variantStyle$2[variant], isCurrent && styles$p.modifiers.current, className), "aria-label": ariaLabel }, (isCurrent && { 'aria-current': 'step' }), props),
|
|
18266
|
+
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepConnector) },
|
|
18267
|
+
React__namespace.createElement("span", { className: css(styles$p.progressStepperStepIcon) }, _icon && _icon)),
|
|
18268
|
+
React__namespace.createElement("div", { className: css(styles$p.progressStepperStepMain) },
|
|
18269
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$p.progressStepperStepTitle, popoverRender && styles$p.modifiers.helpText), id: titleId, ref: stepRef }, (popoverRender && { type: 'button' }), (props.id !== undefined && titleId !== undefined && { 'aria-labelledby': `${props.id} ${titleId}` })),
|
|
18270
18270
|
children,
|
|
18271
18271
|
popoverRender && popoverRender(stepRef)),
|
|
18272
|
-
description && React__namespace.createElement("div", { className: css(styles$
|
|
18272
|
+
description && React__namespace.createElement("div", { className: css(styles$p.progressStepperStepDescription) }, description))));
|
|
18273
18273
|
};
|
|
18274
18274
|
ProgressStep.displayName = 'ProgressStep';
|
|
18275
18275
|
|
|
18276
18276
|
Promise.resolve().then(function () { return radio; });
|
|
18277
|
-
var styles$
|
|
18277
|
+
var styles$o = {
|
|
18278
18278
|
"modifiers": {
|
|
18279
18279
|
"standalone": "pf-m-standalone",
|
|
18280
18280
|
"disabled": "pf-m-disabled"
|
|
@@ -18308,16 +18308,16 @@
|
|
|
18308
18308
|
// eslint-disable-next-line no-console
|
|
18309
18309
|
console.error('Radio:', 'id is required to make input accessible');
|
|
18310
18310
|
}
|
|
18311
|
-
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$
|
|
18311
|
+
const inputRendered = (React__namespace.createElement("input", Object.assign({}, props, { className: css(styles$o.radioInput), type: "radio", onChange: this.handleChange, "aria-invalid": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), getOUIAProps(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
18312
18312
|
let labelRendered = null;
|
|
18313
18313
|
if (label && isLabelWrapped) {
|
|
18314
|
-
labelRendered = React__namespace.createElement("span", { className: css(styles$
|
|
18314
|
+
labelRendered = React__namespace.createElement("span", { className: css(styles$o.radioLabel, isDisabled && styles$o.modifiers.disabled) }, label);
|
|
18315
18315
|
}
|
|
18316
18316
|
else if (label) {
|
|
18317
|
-
labelRendered = (React__namespace.createElement("label", { className: css(styles$
|
|
18317
|
+
labelRendered = (React__namespace.createElement("label", { className: css(styles$o.radioLabel, isDisabled && styles$o.modifiers.disabled), htmlFor: props.id }, label));
|
|
18318
18318
|
}
|
|
18319
|
-
const descRender = description ? React__namespace.createElement("span", { className: css(styles$
|
|
18320
|
-
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$
|
|
18319
|
+
const descRender = description ? React__namespace.createElement("span", { className: css(styles$o.radioDescription) }, description) : null;
|
|
18320
|
+
const bodyRender = body ? React__namespace.createElement("span", { className: css(styles$o.radioBody) }, body) : null;
|
|
18321
18321
|
const childrenRendered = isLabelBeforeButton ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
18322
18322
|
labelRendered,
|
|
18323
18323
|
inputRendered,
|
|
@@ -18327,7 +18327,7 @@
|
|
|
18327
18327
|
labelRendered,
|
|
18328
18328
|
descRender,
|
|
18329
18329
|
bodyRender));
|
|
18330
|
-
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$
|
|
18330
|
+
return isLabelWrapped ? (React__namespace.createElement("label", { className: css(styles$o.radio, className), htmlFor: props.id }, childrenRendered)) : (React__namespace.createElement("div", { className: css(styles$o.radio, !label && styles$o.modifiers.standalone, className) }, childrenRendered));
|
|
18331
18331
|
}
|
|
18332
18332
|
}
|
|
18333
18333
|
Radio.displayName = 'Radio';
|
|
@@ -18350,7 +18350,7 @@
|
|
|
18350
18350
|
const ArrowRightIcon = createIcon(ArrowRightIconConfig);
|
|
18351
18351
|
|
|
18352
18352
|
Promise.resolve().then(function () { return panel; });
|
|
18353
|
-
var styles$
|
|
18353
|
+
var styles$n = {
|
|
18354
18354
|
"modifiers": {
|
|
18355
18355
|
"bordered": "pf-m-bordered",
|
|
18356
18356
|
"raised": "pf-m-raised",
|
|
@@ -18365,32 +18365,32 @@
|
|
|
18365
18365
|
|
|
18366
18366
|
const PanelBase = (_a) => {
|
|
18367
18367
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
18368
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18368
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panel, variant === 'raised' && styles$n.modifiers.raised, variant === 'bordered' && styles$n.modifiers.bordered, isScrollable && styles$n.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
18369
18369
|
};
|
|
18370
18370
|
const Panel = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
18371
18371
|
Panel.displayName = 'Panel';
|
|
18372
18372
|
|
|
18373
18373
|
const PanelMain = (_a) => {
|
|
18374
18374
|
var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
|
|
18375
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18375
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
18376
18376
|
};
|
|
18377
18377
|
PanelMain.displayName = 'PanelMain';
|
|
18378
18378
|
|
|
18379
18379
|
const PanelMainBody = (_a) => {
|
|
18380
18380
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18381
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18381
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelMainBody, className) }, props), children));
|
|
18382
18382
|
};
|
|
18383
18383
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
18384
18384
|
|
|
18385
18385
|
const PanelHeader = (_a) => {
|
|
18386
18386
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18387
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18387
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelHeader, className) }, props), children));
|
|
18388
18388
|
};
|
|
18389
18389
|
PanelHeader.displayName = 'PanelHeader';
|
|
18390
18390
|
|
|
18391
18391
|
const PanelFooter = (_a) => {
|
|
18392
18392
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
18393
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18393
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$n.panelFooter, className) }, props), children));
|
|
18394
18394
|
};
|
|
18395
18395
|
PanelFooter.displayName = 'PanelFooter';
|
|
18396
18396
|
|
|
@@ -18503,7 +18503,7 @@
|
|
|
18503
18503
|
AdvancedSearchMenu.displayName = 'SearchInput';
|
|
18504
18504
|
|
|
18505
18505
|
Promise.resolve().then(function () { return textInputGroup; });
|
|
18506
|
-
var styles$
|
|
18506
|
+
var styles$m = {
|
|
18507
18507
|
"button": "pf-c-button",
|
|
18508
18508
|
"chipGroup": "pf-c-chip-group",
|
|
18509
18509
|
"chipGroupList": "pf-c-chip-group__list",
|
|
@@ -18529,7 +18529,7 @@
|
|
|
18529
18529
|
var { children, className, isDisabled, isPlain, innerRef } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "isPlain", "innerRef"]);
|
|
18530
18530
|
const textInputGroupRef = innerRef || React__namespace.useRef(null);
|
|
18531
18531
|
return (React__namespace.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
18532
|
-
React__namespace.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$
|
|
18532
|
+
React__namespace.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$m.textInputGroup, isDisabled && styles$m.modifiers.disabled, isPlain && styles$m.modifiers.plain, className) }, props), children)));
|
|
18533
18533
|
};
|
|
18534
18534
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
18535
18535
|
|
|
@@ -18540,18 +18540,18 @@
|
|
|
18540
18540
|
const handleChange = (event) => {
|
|
18541
18541
|
onChange(event.currentTarget.value, event);
|
|
18542
18542
|
};
|
|
18543
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18543
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.textInputGroupMain, icon && styles$m.modifiers.icon, className) }, props),
|
|
18544
18544
|
children,
|
|
18545
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
18546
|
-
hint && (React__namespace.createElement("input", { className: css(styles$
|
|
18547
|
-
icon && React__namespace.createElement("span", { className: css(styles$
|
|
18548
|
-
React__namespace.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css(styles$
|
|
18545
|
+
React__namespace.createElement("span", { className: css(styles$m.textInputGroupText) },
|
|
18546
|
+
hint && (React__namespace.createElement("input", { className: css(styles$m.textInputGroupTextInput, styles$m.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
18547
|
+
icon && React__namespace.createElement("span", { className: css(styles$m.textInputGroupIcon) }, icon),
|
|
18548
|
+
React__namespace.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css(styles$m.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
|
|
18549
18549
|
};
|
|
18550
18550
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
18551
18551
|
|
|
18552
18552
|
const TextInputGroupUtilities = (_a) => {
|
|
18553
18553
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
18554
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18554
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.textInputGroupUtilities, className) }, props), children));
|
|
18555
18555
|
};
|
|
18556
18556
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
18557
18557
|
|
|
@@ -18667,25 +18667,25 @@
|
|
|
18667
18667
|
|
|
18668
18668
|
const Sidebar = (_a) => {
|
|
18669
18669
|
var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground"]);
|
|
18670
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18671
|
-
React__namespace.createElement("div", { className: styles$
|
|
18670
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebar, hasGutter && styles$E.modifiers.gutter, hasNoBackground && styles$E.modifiers.noBackground, isPanelRight && styles$E.modifiers.panelRight, styles$E.modifiers[orientation], className) }, props),
|
|
18671
|
+
React__namespace.createElement("div", { className: styles$E.sidebarMain }, children)));
|
|
18672
18672
|
};
|
|
18673
18673
|
Sidebar.displayName = 'Sidebar';
|
|
18674
18674
|
|
|
18675
18675
|
const SidebarContent = (_a) => {
|
|
18676
18676
|
var { className, children, hasNoBackground } = _a, props = __rest$1(_a, ["className", "children", "hasNoBackground"]);
|
|
18677
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18677
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebarContent, hasNoBackground && styles$E.modifiers.noBackground, className) }, props), children));
|
|
18678
18678
|
};
|
|
18679
18679
|
SidebarContent.displayName = 'SidebarContent';
|
|
18680
18680
|
|
|
18681
18681
|
const SidebarPanel = (_a) => {
|
|
18682
18682
|
var { className, children, variant = 'default', hasNoBackground, width } = _a, props = __rest$1(_a, ["className", "children", "variant", "hasNoBackground", "width"]);
|
|
18683
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18683
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$E.sidebarPanel, variant !== 'default' && styles$E.modifiers[variant], hasNoBackground && styles$E.modifiers.noBackground, formatBreakpointMods(width, styles$E), className) }, props), children));
|
|
18684
18684
|
};
|
|
18685
18685
|
SidebarPanel.displayName = 'SidebarPanel';
|
|
18686
18686
|
|
|
18687
18687
|
Promise.resolve().then(function () { return simpleList; });
|
|
18688
|
-
var styles$
|
|
18688
|
+
var styles$l = {
|
|
18689
18689
|
"modifiers": {
|
|
18690
18690
|
"current": "pf-m-current"
|
|
18691
18691
|
},
|
|
@@ -18698,8 +18698,8 @@
|
|
|
18698
18698
|
|
|
18699
18699
|
const SimpleListGroup = (_a) => {
|
|
18700
18700
|
var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "titleClassName", "id"]);
|
|
18701
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$
|
|
18702
|
-
React__namespace.createElement("h2", { id: id, className: css(styles$
|
|
18701
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$l.simpleListSection) }, props),
|
|
18702
|
+
React__namespace.createElement("h2", { id: id, className: css(styles$l.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
|
|
18703
18703
|
React__namespace.createElement("ul", { className: css(className), "aria-labelledby": id }, children)));
|
|
18704
18704
|
};
|
|
18705
18705
|
SimpleListGroup.displayName = 'SimpleListGroup';
|
|
@@ -18729,7 +18729,7 @@
|
|
|
18729
18729
|
updateCurrentRef: this.handleCurrentUpdate,
|
|
18730
18730
|
isControlled
|
|
18731
18731
|
} },
|
|
18732
|
-
React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18732
|
+
React__namespace.createElement("div", Object.assign({ className: css(styles$l.simpleList, className) }, props),
|
|
18733
18733
|
isGrouped && children,
|
|
18734
18734
|
!isGrouped && React__namespace.createElement("ul", null, children))));
|
|
18735
18735
|
}
|
|
@@ -18762,7 +18762,7 @@
|
|
|
18762
18762
|
href
|
|
18763
18763
|
};
|
|
18764
18764
|
return (React__namespace.createElement("li", Object.assign({ className: css(className) }, props),
|
|
18765
|
-
React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
18765
|
+
React__namespace.createElement(Component, Object.assign({ className: css(styles$l.simpleListItemLink, isCurrentItem && styles$l.modifiers.current, componentClassName), onClick: (evt) => {
|
|
18766
18766
|
onClick(evt);
|
|
18767
18767
|
updateCurrentRef(this.ref, this.props);
|
|
18768
18768
|
}, ref: this.ref }, componentProps, additionalComponentProps), children)));
|
|
@@ -18783,7 +18783,7 @@
|
|
|
18783
18783
|
};
|
|
18784
18784
|
|
|
18785
18785
|
Promise.resolve().then(function () { return skeleton; });
|
|
18786
|
-
var styles$
|
|
18786
|
+
var styles$k = {
|
|
18787
18787
|
"modifiers": {
|
|
18788
18788
|
"circle": "pf-m-circle",
|
|
18789
18789
|
"square": "pf-m-square",
|
|
@@ -18819,9 +18819,9 @@
|
|
|
18819
18819
|
const Skeleton = (_a) => {
|
|
18820
18820
|
var { className, width, height, fontSize, shape, screenreaderText } = _a, props = __rest$1(_a, ["className", "width", "height", "fontSize", "shape", "screenreaderText"]);
|
|
18821
18821
|
const fontHeightClassName = fontSize
|
|
18822
|
-
? Object.values(styles$
|
|
18822
|
+
? Object.values(styles$k.modifiers).find(key => key === `pf-m-text-${fontSize}`)
|
|
18823
18823
|
: undefined;
|
|
18824
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$
|
|
18824
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$k.skeleton, fontSize && fontHeightClassName, shape === 'circle' && styles$k.modifiers.circle, shape === 'square' && styles$k.modifiers.square, className) }, ((width || height) && {
|
|
18825
18825
|
style: Object.assign({ '--pf-c-skeleton--Width': width ? width : undefined, '--pf-c-skeleton--Height': height ? height : undefined }, props.style)
|
|
18826
18826
|
})),
|
|
18827
18827
|
React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenreaderText)));
|
|
@@ -18829,7 +18829,7 @@
|
|
|
18829
18829
|
Skeleton.displayName = 'Skeleton';
|
|
18830
18830
|
|
|
18831
18831
|
Promise.resolve().then(function () { return skipToContent; });
|
|
18832
|
-
var styles$
|
|
18832
|
+
var styles$j = {
|
|
18833
18833
|
"skipToContent": "pf-c-skip-to-content"
|
|
18834
18834
|
};
|
|
18835
18835
|
|
|
@@ -18846,7 +18846,7 @@
|
|
|
18846
18846
|
render() {
|
|
18847
18847
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18848
18848
|
const _a = this.props, { children, className, href, show, type } = _a, rest = __rest$1(_a, ["children", "className", "href", "show", "type"]);
|
|
18849
|
-
return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$
|
|
18849
|
+
return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$j.skipToContent, className), ref: this.componentRef, href: href }), children));
|
|
18850
18850
|
}
|
|
18851
18851
|
}
|
|
18852
18852
|
SkipToContent.displayName = 'SkipToContent';
|
|
@@ -18855,7 +18855,7 @@
|
|
|
18855
18855
|
};
|
|
18856
18856
|
|
|
18857
18857
|
Promise.resolve().then(function () { return slider; });
|
|
18858
|
-
var styles$
|
|
18858
|
+
var styles$i = {
|
|
18859
18859
|
"formControl": "pf-c-form-control",
|
|
18860
18860
|
"inputGroup": "pf-c-input-group",
|
|
18861
18861
|
"inputGroupText": "pf-c-input-group__text",
|
|
@@ -18880,9 +18880,9 @@
|
|
|
18880
18880
|
const SliderStep = (_a) => {
|
|
18881
18881
|
var { className, label, value, isTickHidden = false, isLabelHidden = false, isActive = false } = _a, props = __rest$1(_a, ["className", "label", "value", "isTickHidden", "isLabelHidden", "isActive"]);
|
|
18882
18882
|
const style = { '--pf-c-slider__step--Left': `${value}%` };
|
|
18883
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
18884
|
-
!isTickHidden && React__namespace.createElement("div", { className: css(styles$
|
|
18885
|
-
!isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$
|
|
18883
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$i.sliderStep, isActive && styles$i.modifiers.active, className), style: style }, props),
|
|
18884
|
+
!isTickHidden && React__namespace.createElement("div", { className: css(styles$i.sliderStepTick) }),
|
|
18885
|
+
!isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$i.sliderStepLabel) }, label)));
|
|
18886
18886
|
};
|
|
18887
18887
|
SliderStep.displayName = 'SliderStep';
|
|
18888
18888
|
|
|
@@ -19068,7 +19068,7 @@
|
|
|
19068
19068
|
}
|
|
19069
19069
|
};
|
|
19070
19070
|
const displayInput = () => {
|
|
19071
|
-
const textInput = (React__namespace.createElement(TextInput, { className: css(styles$
|
|
19071
|
+
const textInput = (React__namespace.createElement(TextInput, { className: css(styles$i.formControl), isDisabled: isDisabled, type: "number", value: localInputValue, "aria-label": inputAriaLabel, onKeyDown: handleKeyPressOnInput, onChange: onChangeHandler, onClick: onInputFocus, onFocus: onInputFocus, onBlur: onBlur }));
|
|
19072
19072
|
if (inputLabel) {
|
|
19073
19073
|
return (React__namespace.createElement(InputGroup, null,
|
|
19074
19074
|
textInput,
|
|
@@ -19094,28 +19094,28 @@
|
|
|
19094
19094
|
}
|
|
19095
19095
|
return builtSteps;
|
|
19096
19096
|
};
|
|
19097
|
-
const thumbComponent = (React__namespace.createElement("div", { className: css(styles$
|
|
19098
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
19099
|
-
leftActions && React__namespace.createElement("div", { className: css(styles$
|
|
19100
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19101
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19102
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19103
|
-
customSteps && (React__namespace.createElement("div", { className: css(styles$
|
|
19097
|
+
const thumbComponent = (React__namespace.createElement("div", { className: css(styles$i.sliderThumb), ref: thumbRef, tabIndex: isDisabled ? -1 : 0, role: "slider", "aria-valuemin": customSteps ? customSteps[0].value : min, "aria-valuemax": customSteps ? customSteps[customSteps.length - 1].value : max, "aria-valuenow": localValue, "aria-valuetext": findAriaTextValue(), "aria-label": thumbAriaLabel, "aria-disabled": isDisabled, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, onMouseDown: !isDisabled ? handleMouseDown : null, onTouchStart: !isDisabled ? handleTouchStart : null, onKeyDown: !isDisabled ? handleThumbKeys : null, onClick: !isDisabled ? onThumbClick : null }));
|
|
19098
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$i.slider, className, isDisabled && styles$i.modifiers.disabled), style: Object.assign(Object.assign({}, style), inputStyle) }, props),
|
|
19099
|
+
leftActions && React__namespace.createElement("div", { className: css(styles$i.sliderActions) }, leftActions),
|
|
19100
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderMain) },
|
|
19101
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderRail), ref: sliderRailRef, onClick: !isDisabled ? onSliderRailClick : null },
|
|
19102
|
+
React__namespace.createElement("div", { className: css(styles$i.sliderRailTrack) })),
|
|
19103
|
+
customSteps && (React__namespace.createElement("div", { className: css(styles$i.sliderSteps), "aria-hidden": "true" }, customSteps.map(stepObj => {
|
|
19104
19104
|
const minValue = customSteps[0].value;
|
|
19105
19105
|
const maxValue = customSteps[customSteps.length - 1].value;
|
|
19106
19106
|
const stepValue = getStepValue(stepObj.value, minValue, maxValue);
|
|
19107
19107
|
return (React__namespace.createElement(SliderStep, { key: stepObj.value, value: stepValue, label: stepObj.label, isLabelHidden: stepObj.isLabelHidden, isActive: stepObj.value <= localValue }));
|
|
19108
19108
|
}))),
|
|
19109
|
-
!customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$
|
|
19109
|
+
!customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$i.sliderSteps), "aria-hidden": "true" }, buildSteps())),
|
|
19110
19110
|
hasTooltipOverThumb ? (React__namespace.createElement(Tooltip, { entryDelay: 0, content: findAriaTextValue() }, thumbComponent)) : (thumbComponent),
|
|
19111
|
-
isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$
|
|
19112
|
-
isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$
|
|
19113
|
-
rightActions && React__namespace.createElement("div", { className: css(styles$
|
|
19111
|
+
isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$i.sliderValue, styles$i.modifiers.floating) }, displayInput()))),
|
|
19112
|
+
isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$i.sliderValue) }, displayInput()),
|
|
19113
|
+
rightActions && React__namespace.createElement("div", { className: css(styles$i.sliderActions) }, rightActions)));
|
|
19114
19114
|
};
|
|
19115
19115
|
Slider.displayName = 'Slider';
|
|
19116
19116
|
|
|
19117
19117
|
Promise.resolve().then(function () { return _switch; });
|
|
19118
|
-
var styles$
|
|
19118
|
+
var styles$h = {
|
|
19119
19119
|
"modifiers": {
|
|
19120
19120
|
"reverse": "pf-m-reverse",
|
|
19121
19121
|
"off": "pf-m-off",
|
|
@@ -19146,14 +19146,14 @@
|
|
|
19146
19146
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19147
19147
|
id, className, label, labelOff, isChecked, defaultChecked, hasCheckIcon, isDisabled, onChange, isReversed, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["id", "className", "label", "labelOff", "isChecked", "defaultChecked", "hasCheckIcon", "isDisabled", "onChange", "isReversed", "ouiaId", "ouiaSafe"]);
|
|
19148
19148
|
const isAriaLabelledBy = props['aria-label'] === '';
|
|
19149
|
-
return (React__namespace.createElement("label", Object.assign({ className: css(styles$
|
|
19150
|
-
React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$
|
|
19149
|
+
return (React__namespace.createElement("label", Object.assign({ className: css(styles$h.switch, isReversed && styles$h.modifiers.reverse, className), htmlFor: this.id }, getOUIAProps(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),
|
|
19150
|
+
React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$h.switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event) }, (defaultChecked !== undefined ? { defaultChecked } : { checked: isChecked }), { disabled: isDisabled, "aria-labelledby": !isAriaLabelledBy ? null : `${this.id}-${isChecked !== true ? 'off' : 'on'}` }, props)),
|
|
19151
19151
|
label !== undefined ? (React__namespace.createElement(React__namespace.Fragment, null,
|
|
19152
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19152
|
+
React__namespace.createElement("span", { className: css(styles$h.switchToggle) }, hasCheckIcon && (React__namespace.createElement("span", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19153
19153
|
React__namespace.createElement(CheckIcon, { noVerticalAlign: true })))),
|
|
19154
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19155
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19156
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19154
|
+
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
|
|
19155
|
+
React__namespace.createElement("span", { className: css(styles$h.switchLabel, styles$h.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (React__namespace.createElement("span", { className: css(styles$h.switchToggle) },
|
|
19156
|
+
React__namespace.createElement("div", { className: css(styles$h.switchToggleIcon), "aria-hidden": "true" },
|
|
19157
19157
|
React__namespace.createElement(CheckIcon, { noVerticalAlign: true }))))));
|
|
19158
19158
|
}
|
|
19159
19159
|
}
|
|
@@ -19167,7 +19167,7 @@
|
|
|
19167
19167
|
};
|
|
19168
19168
|
|
|
19169
19169
|
Promise.resolve().then(function () { return tabs; });
|
|
19170
|
-
var styles$
|
|
19170
|
+
var styles$g = {
|
|
19171
19171
|
"button": "pf-c-button",
|
|
19172
19172
|
"modifiers": {
|
|
19173
19173
|
"fill": "pf-m-fill",
|
|
@@ -19293,12 +19293,12 @@
|
|
|
19293
19293
|
return null;
|
|
19294
19294
|
}
|
|
19295
19295
|
};
|
|
19296
|
-
const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$
|
|
19297
|
-
return (React__namespace.createElement("li", { className: css(styles$
|
|
19296
|
+
const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$g.tabsLink, isDisabled && href && styles$g.modifiers.disabled, isAriaDisabled && styles$g.modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, "aria-disabled": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, "aria-controls": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href, role: "tab", "aria-selected": eventKey === localActiveKey }, props), title));
|
|
19297
|
+
return (React__namespace.createElement("li", { className: css(styles$g.tabsItem, eventKey === localActiveKey && styles$g.modifiers.current, handleTabClose && styles$g.modifiers.action, handleTabClose && (isDisabled || isAriaDisabled) && styles$g.modifiers.disabled, childClassName), role: "presentation" },
|
|
19298
19298
|
tooltip ? React__namespace.createElement(Tooltip, Object.assign({}, tooltip.props), tabButton) : tabButton,
|
|
19299
|
-
handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$
|
|
19299
|
+
handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsItemClose) },
|
|
19300
19300
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": closeButtonAriaLabel || 'Close tab', onClick: (event) => handleTabClose(event, eventKey, tabContentRef), isDisabled: isCloseDisabled },
|
|
19301
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19301
|
+
React__namespace.createElement("span", { className: css(styles$g.tabsItemCloseIcon) },
|
|
19302
19302
|
React__namespace.createElement(TimesIcon, null)))))));
|
|
19303
19303
|
};
|
|
19304
19304
|
const Tab = React__namespace.forwardRef((props, ref) => React__namespace.createElement(TabBase, Object.assign({ innerRef: ref }, props)));
|
|
@@ -19316,7 +19316,7 @@
|
|
|
19316
19316
|
const PlusIcon = createIcon(PlusIconConfig);
|
|
19317
19317
|
|
|
19318
19318
|
Promise.resolve().then(function () { return tabContent; });
|
|
19319
|
-
var styles$
|
|
19319
|
+
var styles$f = {
|
|
19320
19320
|
"modifiers": {
|
|
19321
19321
|
"light_300": "pf-m-light-300",
|
|
19322
19322
|
"padding": "pf-m-padding"
|
|
@@ -19327,7 +19327,7 @@
|
|
|
19327
19327
|
|
|
19328
19328
|
const variantStyle$1 = {
|
|
19329
19329
|
default: '',
|
|
19330
|
-
light300: styles$
|
|
19330
|
+
light300: styles$f.modifiers.light_300
|
|
19331
19331
|
};
|
|
19332
19332
|
const TabContentBase = (_a) => {
|
|
19333
19333
|
var { id, activeKey, 'aria-label': ariaLabel, child, children, className,
|
|
@@ -19351,7 +19351,7 @@
|
|
|
19351
19351
|
|
|
19352
19352
|
const TabTitleText = (_a) => {
|
|
19353
19353
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
19354
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
19354
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$g.tabsItemText, className) }, props), children));
|
|
19355
19355
|
};
|
|
19356
19356
|
TabTitleText.displayName = 'TabTitleText';
|
|
19357
19357
|
|
|
@@ -19400,12 +19400,12 @@
|
|
|
19400
19400
|
}
|
|
19401
19401
|
}, 0);
|
|
19402
19402
|
};
|
|
19403
|
-
const overflowTab = (React__default["default"].createElement("li", Object.assign({ className: css(styles$
|
|
19404
|
-
React__default["default"].createElement("button", { className: css(styles$
|
|
19403
|
+
const overflowTab = (React__default["default"].createElement("li", Object.assign({ className: css(styles$g.tabsItem, 'pf-m-overflow', selectedTab && styles$g.modifiers.current, className), role: "presentation", ref: overflowLIRef }, props),
|
|
19404
|
+
React__default["default"].createElement("button", { className: css(styles$g.tabsLink, isExpanded && styles$g.modifiers.expanded), onClick: () => toggleMenu(), "aria-label": toggleAriaLabel, "aria-haspopup": "menu", "aria-expanded": isExpanded, role: "tab", ref: overflowTabRef },
|
|
19405
19405
|
React__default["default"].createElement(TabTitleText, null,
|
|
19406
19406
|
tabTitle,
|
|
19407
19407
|
showTabCount && tabTitle === defaultTitleText && ` (${overflowingTabs.length})`),
|
|
19408
|
-
React__default["default"].createElement("span", { className: styles$
|
|
19408
|
+
React__default["default"].createElement("span", { className: styles$g.tabsLinkToggleIcon },
|
|
19409
19409
|
React__default["default"].createElement(AngleRightIcon, null)))));
|
|
19410
19410
|
const tabs = overflowingTabs.map(tab => (React__default["default"].createElement(MenuItem, { key: tab.eventKey, itemId: tab.eventKey, isSelected: localActiveKey === tab.eventKey }, tab.title)));
|
|
19411
19411
|
const onTabSelect = (event, key) => {
|
|
@@ -19427,7 +19427,7 @@
|
|
|
19427
19427
|
})(exports.TabsComponent || (exports.TabsComponent = {}));
|
|
19428
19428
|
const variantStyle = {
|
|
19429
19429
|
default: '',
|
|
19430
|
-
light300: styles$
|
|
19430
|
+
light300: styles$g.modifiers.colorSchemeLight_300
|
|
19431
19431
|
};
|
|
19432
19432
|
class Tabs extends React__namespace.Component {
|
|
19433
19433
|
constructor(props) {
|
|
@@ -19619,21 +19619,21 @@
|
|
|
19619
19619
|
handleTabClick: (...args) => this.handleTabClick(...args),
|
|
19620
19620
|
handleTabClose: onClose
|
|
19621
19621
|
} },
|
|
19622
|
-
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$
|
|
19623
|
-
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$
|
|
19624
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19622
|
+
React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$g.tabs, isFilled && styles$g.modifiers.fill, isSecondary && styles$g.modifiers.secondary, isVertical && styles$g.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$g), isVertical && expandable && isExpandedLocal && styles$g.modifiers.expanded, isBox && styles$g.modifiers.box, showScrollButtons && !isVertical && styles$g.modifiers.scrollable, usePageInsets && styles$g.modifiers.pageInsets, !hasBorderBottom && styles$g.modifiers.noBorderBottom, hasSecondaryBorderBottom && styles$g.modifiers.borderBottom, formatBreakpointMods(inset, styles$g), variantStyle[variant], hasOverflowTab && styles$g.modifiers.overflow, className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
|
|
19623
|
+
expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$g.tabsToggle) },
|
|
19624
|
+
React__namespace.createElement("div", { className: css(styles$g.tabsToggleButton) },
|
|
19625
19625
|
React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
|
|
19626
|
-
React__namespace.createElement("span", { className: css(styles$
|
|
19626
|
+
React__namespace.createElement("span", { className: css(styles$g.tabsToggleIcon) },
|
|
19627
19627
|
React__namespace.createElement(AngleRightIcon, { "arian-hidden": "true" })),
|
|
19628
19628
|
toggleText && (React__namespace.createElement("span", { className: css('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),
|
|
19629
|
-
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
19629
|
+
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
|
|
19630
19630
|
React__namespace.createElement(AngleLeftIcon, null))),
|
|
19631
|
-
React__namespace.createElement("ul", { className: css(styles$
|
|
19631
|
+
React__namespace.createElement("ul", { className: css(styles$g.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons, role: "tablist" },
|
|
19632
19632
|
isOverflowHorizontal ? filteredChildrenWithoutOverflow : filteredChildren,
|
|
19633
19633
|
hasOverflowTab && React__namespace.createElement(OverflowTab, Object.assign({ overflowingTabs: overflowingTabProps }, overflowObjectProps))),
|
|
19634
|
-
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$
|
|
19634
|
+
!isOverflowHorizontal && (React__namespace.createElement("button", { className: css(styles$g.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
|
|
19635
19635
|
React__namespace.createElement(AngleRightIcon, null))),
|
|
19636
|
-
onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$
|
|
19636
|
+
onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$g.tabsAdd) },
|
|
19637
19637
|
React__namespace.createElement(Button, { variant: "plain", "aria-label": addButtonAriaLabel || 'Add tab', onClick: onAdd },
|
|
19638
19638
|
React__namespace.createElement(PlusIcon, null))))),
|
|
19639
19639
|
filteredChildren
|
|
@@ -19665,18 +19665,18 @@
|
|
|
19665
19665
|
|
|
19666
19666
|
const TabContentBody = (_a) => {
|
|
19667
19667
|
var { children, className, hasPadding } = _a, props = __rest$1(_a, ["children", "className", "hasPadding"]);
|
|
19668
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$
|
|
19668
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$f.tabContentBody, hasPadding && styles$f.modifiers.padding, className) }, props), children));
|
|
19669
19669
|
};
|
|
19670
19670
|
TabContentBody.displayName = 'TabContentBody';
|
|
19671
19671
|
|
|
19672
19672
|
const TabTitleIcon = (_a) => {
|
|
19673
19673
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
19674
|
-
return (React__namespace.createElement("span", Object.assign({ className: css(styles$
|
|
19674
|
+
return (React__namespace.createElement("span", Object.assign({ className: css(styles$g.tabsItemIcon, className) }, props), children));
|
|
19675
19675
|
};
|
|
19676
19676
|
TabTitleIcon.displayName = 'TabTitleIcon';
|
|
19677
19677
|
|
|
19678
19678
|
Promise.resolve().then(function () { return tile; });
|
|
19679
|
-
var styles$
|
|
19679
|
+
var styles$e = {
|
|
19680
19680
|
"modifiers": {
|
|
19681
19681
|
"selected": "pf-m-selected",
|
|
19682
19682
|
"disabled": "pf-m-disabled",
|
|
@@ -19693,11 +19693,11 @@
|
|
|
19693
19693
|
|
|
19694
19694
|
const Tile = (_a) => {
|
|
19695
19695
|
var { children, title, icon, isStacked, isSelected, isDisabled, isDisplayLarge, className } = _a, props = __rest$1(_a, ["children", "title", "icon", "isStacked", "isSelected", "isDisabled", "isDisplayLarge", "className"]);
|
|
19696
|
-
return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$
|
|
19697
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19698
|
-
icon && React__namespace.createElement("div", { className: css(styles$
|
|
19699
|
-
React__namespace.createElement("div", { className: css(styles$
|
|
19700
|
-
children && React__namespace.createElement("div", { className: css(styles$
|
|
19696
|
+
return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$e.tile, isSelected && styles$e.modifiers.selected, isDisabled && styles$e.modifiers.disabled, isDisplayLarge && styles$e.modifiers.displayLg, className), tabIndex: 0 }, props),
|
|
19697
|
+
React__namespace.createElement("div", { className: css(styles$e.tileHeader, isStacked && styles$e.modifiers.stacked) },
|
|
19698
|
+
icon && React__namespace.createElement("div", { className: css(styles$e.tileIcon) }, icon),
|
|
19699
|
+
React__namespace.createElement("div", { className: css(styles$e.tileTitle) }, title)),
|
|
19700
|
+
children && React__namespace.createElement("div", { className: css(styles$e.tileBody) }, children)));
|
|
19701
19701
|
};
|
|
19702
19702
|
Tile.displayName = 'Tile';
|
|
19703
19703
|
|
|
@@ -20156,12 +20156,23 @@
|
|
|
20156
20156
|
React__namespace.createElement(MenuContent, { maxMenuHeight: "200px" },
|
|
20157
20157
|
React__namespace.createElement(MenuList, { "aria-label": ariaLabel }, options.map((option, index) => (React__namespace.createElement(MenuItem, { onClick: this.onSelect, key: option, id: `${randomId}-option-${index}` }, option)))))));
|
|
20158
20158
|
const textInput = (React__namespace.createElement(TextInput, Object.assign({ "aria-haspopup": "menu", className: css(formStyles.formControl), id: `${randomId}-input`, "aria-label": ariaLabel, validated: isInvalid ? 'error' : 'default', placeholder: placeholder, value: timeState || '', type: "text", iconVariant: "clock", onClick: this.onInputClick, onChange: this.onInputChange, onBlur: this.onBlur, autoComplete: "off", isDisabled: isDisabled, ref: this.inputRef }, inputProps)));
|
|
20159
|
+
let calculatedAppendTo;
|
|
20160
|
+
switch (menuAppendTo) {
|
|
20161
|
+
case 'inline':
|
|
20162
|
+
calculatedAppendTo = () => this.toggleRef.current;
|
|
20163
|
+
break;
|
|
20164
|
+
case 'parent':
|
|
20165
|
+
calculatedAppendTo = getParentElement;
|
|
20166
|
+
break;
|
|
20167
|
+
default:
|
|
20168
|
+
calculatedAppendTo = menuAppendTo;
|
|
20169
|
+
}
|
|
20159
20170
|
return (React__namespace.createElement("div", { ref: this.baseComponentRef, className: css(datePickerStyles.datePicker, className) },
|
|
20160
20171
|
React__namespace.createElement("div", Object.assign({ className: css(datePickerStyles.datePickerInput), style: style }, props),
|
|
20161
20172
|
React__namespace.createElement(InputGroup, null,
|
|
20162
20173
|
React__namespace.createElement("div", { id: randomId },
|
|
20163
|
-
React__namespace.createElement("div", { ref: this.toggleRef, style: { paddingLeft: '0' } },
|
|
20164
|
-
|
|
20174
|
+
React__namespace.createElement("div", { ref: this.toggleRef, style: { paddingLeft: '0' } },
|
|
20175
|
+
React__namespace.createElement(Popper, { appendTo: calculatedAppendTo, trigger: textInput, popper: menuContainer, isVisible: isTimeOptionsOpen })))),
|
|
20165
20176
|
isInvalid && (React__namespace.createElement("div", { className: css(datePickerStyles.datePickerHelperText, datePickerStyles.modifiers.error) }, !isValidFormat ? invalidFormatErrorMessage : invalidMinMaxErrorMessage)))));
|
|
20166
20177
|
}
|
|
20167
20178
|
}
|
|
@@ -20182,9 +20193,46 @@
|
|
|
20182
20193
|
inputProps: {},
|
|
20183
20194
|
minTime: '',
|
|
20184
20195
|
maxTime: '',
|
|
20196
|
+
isOpen: false,
|
|
20185
20197
|
setIsOpen: () => { }
|
|
20186
20198
|
};
|
|
20187
20199
|
|
|
20200
|
+
Promise.resolve().then(function () { return timestamp; });
|
|
20201
|
+
var styles$d = {
|
|
20202
|
+
"modifiers": {
|
|
20203
|
+
"helpText": "pf-m-help-text"
|
|
20204
|
+
},
|
|
20205
|
+
"timestamp": "pf-c-timestamp"
|
|
20206
|
+
};
|
|
20207
|
+
|
|
20208
|
+
exports.TimestampFormat = void 0;
|
|
20209
|
+
(function (TimestampFormat) {
|
|
20210
|
+
TimestampFormat["full"] = "full";
|
|
20211
|
+
TimestampFormat["long"] = "long";
|
|
20212
|
+
TimestampFormat["medium"] = "medium";
|
|
20213
|
+
TimestampFormat["short"] = "short";
|
|
20214
|
+
})(exports.TimestampFormat || (exports.TimestampFormat = {}));
|
|
20215
|
+
exports.TimestampTooltipVariant = void 0;
|
|
20216
|
+
(function (TimestampTooltipVariant) {
|
|
20217
|
+
TimestampTooltipVariant["default"] = "default";
|
|
20218
|
+
TimestampTooltipVariant["custom"] = "custom";
|
|
20219
|
+
})(exports.TimestampTooltipVariant || (exports.TimestampTooltipVariant = {}));
|
|
20220
|
+
const Timestamp = (_a) => {
|
|
20221
|
+
var { children, className, customFormat, date: dateProp = new Date(), dateFormat, displaySuffix = '', is12Hour, locale, timeFormat, tooltip } = _a, props = __rest$1(_a, ["children", "className", "customFormat", "date", "dateFormat", "displaySuffix", "is12Hour", "locale", "timeFormat", "tooltip"]);
|
|
20222
|
+
const hasTimeFormat = timeFormat && !customFormat;
|
|
20223
|
+
const formatOptions = Object.assign(Object.assign(Object.assign({}, (dateFormat && !customFormat && { dateStyle: dateFormat })), (customFormat && Object.assign({}, customFormat))), (is12Hour !== undefined && { hour12: is12Hour }));
|
|
20224
|
+
const dateAsLocaleString = new Date(dateProp).toLocaleString(locale, Object.assign(Object.assign({}, formatOptions), (hasTimeFormat && { timeStyle: timeFormat })));
|
|
20225
|
+
const defaultDisplay = `${dateAsLocaleString}${displaySuffix ? ' ' + displaySuffix : ''}`;
|
|
20226
|
+
const utcTimeFormat = timeFormat !== 'short' ? 'medium' : 'short';
|
|
20227
|
+
const convertToUTCString = (date) => new Date(date).toUTCString().slice(0, -3);
|
|
20228
|
+
const utcDateString = new Date(convertToUTCString(dateProp)).toLocaleString(locale, Object.assign(Object.assign({}, formatOptions), (hasTimeFormat && { timeStyle: utcTimeFormat })));
|
|
20229
|
+
const defaultTooltipContent = `${utcDateString}${(tooltip === null || tooltip === void 0 ? void 0 : tooltip.suffix) ? ' ' + tooltip.suffix : ' UTC'}`;
|
|
20230
|
+
const timestamp = (React__namespace.createElement("span", Object.assign({ className: css(styles$d.timestamp, tooltip && styles$d.modifiers.helpText, className) }, (tooltip && { tabIndex: 0 }), props),
|
|
20231
|
+
React__namespace.createElement("time", { className: "pf-c-timestamp__text", dateTime: props.dateTime || new Date(dateProp).toISOString() }, !children ? defaultDisplay : children)));
|
|
20232
|
+
return tooltip ? (React__namespace.createElement(Tooltip, Object.assign({ content: tooltip.variant === exports.TimestampTooltipVariant.default ? defaultTooltipContent : tooltip.content }, tooltip.tooltipProps), timestamp)) : (timestamp);
|
|
20233
|
+
};
|
|
20234
|
+
Timestamp.displayName = 'Timestamp';
|
|
20235
|
+
|
|
20188
20236
|
Promise.resolve().then(function () { return toggleGroup; });
|
|
20189
20237
|
var styles$c = {
|
|
20190
20238
|
"modifiers": {
|
|
@@ -21851,7 +21899,7 @@
|
|
|
21851
21899
|
const Bullseye = (_a) => {
|
|
21852
21900
|
var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
21853
21901
|
const Component = component;
|
|
21854
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$
|
|
21902
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$1h.bullseye, className) }, props), children));
|
|
21855
21903
|
};
|
|
21856
21904
|
Bullseye.displayName = 'Bullseye';
|
|
21857
21905
|
|
|
@@ -23024,6 +23072,10 @@
|
|
|
23024
23072
|
__proto__: null
|
|
23025
23073
|
});
|
|
23026
23074
|
|
|
23075
|
+
var timestamp = /*#__PURE__*/Object.freeze({
|
|
23076
|
+
__proto__: null
|
|
23077
|
+
});
|
|
23078
|
+
|
|
23027
23079
|
var toggleGroup = /*#__PURE__*/Object.freeze({
|
|
23028
23080
|
__proto__: null
|
|
23029
23081
|
});
|
|
@@ -23391,6 +23443,7 @@
|
|
|
23391
23443
|
exports.TextListItem = TextListItem;
|
|
23392
23444
|
exports.Tile = Tile;
|
|
23393
23445
|
exports.TimePicker = TimePicker;
|
|
23446
|
+
exports.Timestamp = Timestamp;
|
|
23394
23447
|
exports.Title = Title;
|
|
23395
23448
|
exports.ToggleGroup = ToggleGroup;
|
|
23396
23449
|
exports.ToggleGroupItem = ToggleGroupItem;
|