@patternfly/quickstarts 2.3.3 → 2.4.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/dist/ConsoleShared/src/components/markdown-extensions/accordion-extension.d.ts +7 -0
- package/dist/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.d.ts +6 -0
- package/dist/ConsoleShared/src/components/markdown-extensions/const.d.ts +2 -0
- package/dist/ConsoleShared/src/components/markdown-extensions/index.d.ts +2 -0
- package/dist/index.es.js +48 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +47 -3
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/examples/about.md +28 -21
- package/dist/patternfly-docs/quick-starts/examples/basic.md +7 -5
- package/dist/patternfly-docs/quick-starts/examples/help-topics.md +8 -5
- package/dist/patternfly-nested.css +209 -1
- package/dist/quickstarts-full.es.js +398 -327
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.min.css +1 -1
- package/package.json +6 -2
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +52 -0
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +60 -0
- package/src/ConsoleShared/src/components/markdown-extensions/const.ts +2 -0
- package/src/ConsoleShared/src/components/markdown-extensions/index.ts +2 -0
- package/src/HelpTopicPanelContent.tsx +1 -1
- package/src/QuickStartMarkdownView.tsx +5 -0
- package/src/QuickStartPanelContent.tsx +1 -1
|
@@ -274,7 +274,7 @@ var tslib_es6 = /*#__PURE__*/Object.freeze({
|
|
|
274
274
|
*
|
|
275
275
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
276
276
|
*/
|
|
277
|
-
function css$
|
|
277
|
+
function css$1(...args) {
|
|
278
278
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
279
279
|
const classes = [];
|
|
280
280
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -284,7 +284,7 @@ function css$2(...args) {
|
|
|
284
284
|
classes.push(arg);
|
|
285
285
|
}
|
|
286
286
|
else if (Array.isArray(arg) && arg.length) {
|
|
287
|
-
const inner = css$
|
|
287
|
+
const inner = css$1(...arg);
|
|
288
288
|
if (inner) {
|
|
289
289
|
classes.push(inner);
|
|
290
290
|
}
|
|
@@ -4025,7 +4025,7 @@ const Popper = ({ trigger, popper, popperMatchesTriggerWidth = true, direction =
|
|
|
4025
4025
|
}
|
|
4026
4026
|
return positionModifiers.top;
|
|
4027
4027
|
};
|
|
4028
|
-
const options = Object.assign({ className: css$
|
|
4028
|
+
const options = Object.assign({ className: css$1(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex }) }, attributes.popper);
|
|
4029
4029
|
const menuWithPopper = React.cloneElement(popper, options);
|
|
4030
4030
|
const getTarget = () => {
|
|
4031
4031
|
if (typeof appendTo === 'function') {
|
|
@@ -4213,7 +4213,7 @@ var headingLevelSizeMap;
|
|
|
4213
4213
|
const Title = (_a) => {
|
|
4214
4214
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4215
4215
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4216
|
-
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$
|
|
4216
|
+
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$1(styles$s.title, size && styles$s.modifiers[size], className) }), children));
|
|
4217
4217
|
};
|
|
4218
4218
|
Title.displayName = 'Title';
|
|
4219
4219
|
|
|
@@ -4278,10 +4278,10 @@ const Spinner = (_a) => {
|
|
|
4278
4278
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4279
4279
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
4280
4280
|
const Component = isSVG ? 'svg' : 'span';
|
|
4281
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
4282
|
-
React.createElement("span", { className: css$
|
|
4283
|
-
React.createElement("span", { className: css$
|
|
4284
|
-
React.createElement("span", { className: css$
|
|
4281
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$r.spinner, isInline ? styles$r.modifiers.inline : styles$r.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.createElement("circle", { className: styles$r.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React.createElement(React.Fragment, null,
|
|
4282
|
+
React.createElement("span", { className: css$1(styles$r.spinnerClipper) }),
|
|
4283
|
+
React.createElement("span", { className: css$1(styles$r.spinnerLeadBall) }),
|
|
4284
|
+
React.createElement("span", { className: css$1(styles$r.spinnerTailBall) })))));
|
|
4285
4285
|
};
|
|
4286
4286
|
Spinner.displayName = 'Spinner';
|
|
4287
4287
|
|
|
@@ -4296,7 +4296,7 @@ var badgeStyles = {
|
|
|
4296
4296
|
|
|
4297
4297
|
const Badge = (_a) => {
|
|
4298
4298
|
var { isRead = false, className = '', children = '', screenReaderText } = _a, props = __rest(_a, ["isRead", "className", "children", "screenReaderText"]);
|
|
4299
|
-
return (React.createElement("span", Object.assign({}, props, { className: css$
|
|
4299
|
+
return (React.createElement("span", Object.assign({}, props, { className: css$1(badgeStyles.badge, (isRead ? badgeStyles.modifiers.read : badgeStyles.modifiers.unread), className) }),
|
|
4300
4300
|
children,
|
|
4301
4301
|
screenReaderText && React.createElement("span", { className: "pf-screen-reader" }, screenReaderText)));
|
|
4302
4302
|
};
|
|
@@ -4339,14 +4339,14 @@ const ButtonBase = (_a) => {
|
|
|
4339
4339
|
return 0;
|
|
4340
4340
|
}
|
|
4341
4341
|
};
|
|
4342
|
-
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css$
|
|
4343
|
-
isLoading && (React.createElement("span", { className: css$
|
|
4342
|
+
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css$1(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isActive && buttonStyles.modifiers.active, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && children !== null && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, isSmall && buttonStyles.modifiers.small, isLarge && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
4343
|
+
isLoading && (React.createElement("span", { className: css$1(buttonStyles.buttonProgress) },
|
|
4344
4344
|
React.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4345
4345
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
4346
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css$
|
|
4346
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4347
4347
|
children,
|
|
4348
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css$
|
|
4349
|
-
countOptions && (React.createElement("span", { className: css$
|
|
4348
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4349
|
+
countOptions && (React.createElement("span", { className: css$1(buttonStyles.buttonCount, countOptions.className) },
|
|
4350
4350
|
React.createElement(Badge, { isRead: countOptions.isRead }, countOptions.count)))));
|
|
4351
4351
|
};
|
|
4352
4352
|
const Button = React.forwardRef((props, ref) => (React.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -4418,10 +4418,54 @@ const TimesIcon = createIcon(TimesIconConfig);
|
|
|
4418
4418
|
|
|
4419
4419
|
const Backdrop = (_a) => {
|
|
4420
4420
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
4421
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
4421
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$v.backdrop, className) }), children));
|
|
4422
4422
|
};
|
|
4423
4423
|
Backdrop.displayName = 'Backdrop';
|
|
4424
4424
|
|
|
4425
|
+
var styles$q = {
|
|
4426
|
+
"accordion": "pf-c-accordion",
|
|
4427
|
+
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
4428
|
+
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
4429
|
+
"accordionToggle": "pf-c-accordion__toggle",
|
|
4430
|
+
"accordionToggleIcon": "pf-c-accordion__toggle-icon",
|
|
4431
|
+
"accordionToggleText": "pf-c-accordion__toggle-text",
|
|
4432
|
+
"modifiers": {
|
|
4433
|
+
"displayLg": "pf-m-display-lg",
|
|
4434
|
+
"bordered": "pf-m-bordered",
|
|
4435
|
+
"expanded": "pf-m-expanded",
|
|
4436
|
+
"fixed": "pf-m-fixed"
|
|
4437
|
+
},
|
|
4438
|
+
"themeDark": "pf-theme-dark"
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
const AccordionContext = React.createContext({});
|
|
4442
|
+
|
|
4443
|
+
const Accordion = (_a) => {
|
|
4444
|
+
var { children = null, className = '', 'aria-label': ariaLabel = '', headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
4445
|
+
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
4446
|
+
return (React.createElement(AccordionList, Object.assign({ className: css$1(styles$q.accordion, isBordered && styles$q.modifiers.bordered, displaySize === 'large' && styles$q.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
4447
|
+
React.createElement(AccordionContext.Provider, { value: {
|
|
4448
|
+
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
4449
|
+
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
4450
|
+
} }, children)));
|
|
4451
|
+
};
|
|
4452
|
+
Accordion.displayName = 'Accordion';
|
|
4453
|
+
|
|
4454
|
+
const AccordionExpandedContentBody = ({ children = null }) => React.createElement("div", { className: css$1(styles$q.accordionExpandedContentBody) }, children);
|
|
4455
|
+
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
4456
|
+
|
|
4457
|
+
const AccordionContent = (_a) => {
|
|
4458
|
+
var { className = '', children = null, id = '', isHidden = false, isFixed = false, isCustomContent = false, 'aria-label': ariaLabel = '', component } = _a, props = __rest(_a, ["className", "children", "id", "isHidden", "isFixed", "isCustomContent", 'aria-label', "component"]);
|
|
4459
|
+
return (React.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
4460
|
+
const Container = component || ContentContainer;
|
|
4461
|
+
return (React.createElement(Container, Object.assign({ id: id, className: css$1(styles$q.accordionExpandedContent, isFixed && styles$q.modifiers.fixed, !isHidden && styles$q.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React.createElement(AccordionExpandedContentBody, null, children)));
|
|
4462
|
+
}));
|
|
4463
|
+
};
|
|
4464
|
+
AccordionContent.displayName = 'AccordionContent';
|
|
4465
|
+
|
|
4466
|
+
const AccordionItem = ({ children = null }) => (React.createElement(React.Fragment, null, children));
|
|
4467
|
+
AccordionItem.displayName = 'AccordionItem';
|
|
4468
|
+
|
|
4425
4469
|
const AngleRightIconConfig = {
|
|
4426
4470
|
name: 'AngleRightIcon',
|
|
4427
4471
|
height: 512,
|
|
@@ -4433,7 +4477,20 @@ const AngleRightIconConfig = {
|
|
|
4433
4477
|
|
|
4434
4478
|
const AngleRightIcon = createIcon(AngleRightIconConfig);
|
|
4435
4479
|
|
|
4436
|
-
|
|
4480
|
+
const AccordionToggle = (_a) => {
|
|
4481
|
+
var { className = '', id, isExpanded = false, children = null, component } = _a, props = __rest(_a, ["className", "id", "isExpanded", "children", "component"]);
|
|
4482
|
+
return (React.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
4483
|
+
const Container = component || ToggleContainer;
|
|
4484
|
+
return (React.createElement(Container, null,
|
|
4485
|
+
React.createElement("button", Object.assign({ id: id, className: css$1(styles$q.accordionToggle, isExpanded && styles$q.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4486
|
+
React.createElement("span", { className: css$1(styles$q.accordionToggleText) }, children),
|
|
4487
|
+
React.createElement("span", { className: css$1(styles$q.accordionToggleIcon) },
|
|
4488
|
+
React.createElement(AngleRightIcon, null)))));
|
|
4489
|
+
}));
|
|
4490
|
+
};
|
|
4491
|
+
AccordionToggle.displayName = 'AccordionToggle';
|
|
4492
|
+
|
|
4493
|
+
var styles$p = {
|
|
4437
4494
|
"alert": "pf-c-alert",
|
|
4438
4495
|
"alertAction": "pf-c-alert__action",
|
|
4439
4496
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4544,7 +4601,7 @@ const variantIcons = {
|
|
|
4544
4601
|
const AlertIcon = (_a) => {
|
|
4545
4602
|
var { variant, customIcon, className = '' } = _a, props = __rest(_a, ["variant", "customIcon", "className"]);
|
|
4546
4603
|
const Icon = variantIcons[variant];
|
|
4547
|
-
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$
|
|
4604
|
+
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$1(styles$p.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
4548
4605
|
};
|
|
4549
4606
|
|
|
4550
4607
|
const AlertContext = React.createContext(null);
|
|
@@ -4555,7 +4612,7 @@ const c_alert__title_max_lines = {
|
|
|
4555
4612
|
"var": "var(--pf-c-alert__title--max-lines)"
|
|
4556
4613
|
};
|
|
4557
4614
|
|
|
4558
|
-
var styles$
|
|
4615
|
+
var styles$o = {
|
|
4559
4616
|
"modifiers": {
|
|
4560
4617
|
"top": "pf-m-top",
|
|
4561
4618
|
"topLeft": "pf-m-top-left",
|
|
@@ -4579,13 +4636,13 @@ var styles$p = {
|
|
|
4579
4636
|
|
|
4580
4637
|
const TooltipContent = (_a) => {
|
|
4581
4638
|
var { className, children, isLeftAligned } = _a, props = __rest(_a, ["className", "children", "isLeftAligned"]);
|
|
4582
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
4639
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipContent, isLeftAligned && styles$o.modifiers.textAlignLeft, className) }, props), children));
|
|
4583
4640
|
};
|
|
4584
4641
|
TooltipContent.displayName = 'TooltipContent';
|
|
4585
4642
|
|
|
4586
4643
|
const TooltipArrow = (_a) => {
|
|
4587
4644
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
4588
|
-
return React.createElement("div", Object.assign({ className: css$
|
|
4645
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipArrow, className) }, props));
|
|
4589
4646
|
};
|
|
4590
4647
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4591
4648
|
|
|
@@ -4701,21 +4758,21 @@ const Tooltip = (_a) => {
|
|
|
4701
4758
|
}, exitDelay);
|
|
4702
4759
|
};
|
|
4703
4760
|
const positionModifiers = {
|
|
4704
|
-
top: styles$
|
|
4705
|
-
bottom: styles$
|
|
4706
|
-
left: styles$
|
|
4707
|
-
right: styles$
|
|
4708
|
-
'top-start': styles$
|
|
4709
|
-
'top-end': styles$
|
|
4710
|
-
'bottom-start': styles$
|
|
4711
|
-
'bottom-end': styles$
|
|
4712
|
-
'left-start': styles$
|
|
4713
|
-
'left-end': styles$
|
|
4714
|
-
'right-start': styles$
|
|
4715
|
-
'right-end': styles$
|
|
4761
|
+
top: styles$o.modifiers.top,
|
|
4762
|
+
bottom: styles$o.modifiers.bottom,
|
|
4763
|
+
left: styles$o.modifiers.left,
|
|
4764
|
+
right: styles$o.modifiers.right,
|
|
4765
|
+
'top-start': styles$o.modifiers.topLeft,
|
|
4766
|
+
'top-end': styles$o.modifiers.topRight,
|
|
4767
|
+
'bottom-start': styles$o.modifiers.bottomLeft,
|
|
4768
|
+
'bottom-end': styles$o.modifiers.bottomRight,
|
|
4769
|
+
'left-start': styles$o.modifiers.leftTop,
|
|
4770
|
+
'left-end': styles$o.modifiers.leftBottom,
|
|
4771
|
+
'right-start': styles$o.modifiers.rightTop,
|
|
4772
|
+
'right-end': styles$o.modifiers.rightBottom
|
|
4716
4773
|
};
|
|
4717
4774
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
4718
|
-
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$
|
|
4775
|
+
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$1(styles$o.tooltip, className), role: "tooltip", id: id, style: {
|
|
4719
4776
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4720
4777
|
opacity,
|
|
4721
4778
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -4752,7 +4809,7 @@ const AlertToggleExpandButton = (_a) => {
|
|
|
4752
4809
|
var { 'aria-label': ariaLabel = '', variantLabel, onToggleExpand, isExpanded = false } = _a, props = __rest(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
4753
4810
|
const { title, variantLabel: alertVariantLabel } = React.useContext(AlertContext);
|
|
4754
4811
|
return (React.createElement(Button, Object.assign({ variant: ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
4755
|
-
React.createElement("span", { className: css$
|
|
4812
|
+
React.createElement("span", { className: css$1(styles$p.alertToggleIcon) },
|
|
4756
4813
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
4757
4814
|
};
|
|
4758
4815
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -4769,7 +4826,7 @@ const Alert = (_a) => {
|
|
|
4769
4826
|
var { variant = AlertVariant.default, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${capitalize(variant)} alert:`, 'aria-label': ariaLabel = `${capitalize(variant)} Alert`, actionClose, actionLinks, title, titleHeadingLevel: TitleHeadingLevel = 'h4', children = '', className = '', ouiaId, ouiaSafe = true, timeout = false, timeoutAnimation = 3000, onTimeout = () => { }, truncateTitle = 0, tooltipPosition, customIcon, isExpandable = false, toggleAriaLabel = `${capitalize(variant)} alert details`, onMouseEnter = () => { }, onMouseLeave = () => { }, id } = _a, props = __rest(_a, ["variant", "isInline", "isPlain", "isLiveRegion", "variantLabel", 'aria-label', "actionClose", "actionLinks", "title", "titleHeadingLevel", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave", "id"]);
|
|
4770
4827
|
const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
|
|
4771
4828
|
const getHeadingContent = (React.createElement(React.Fragment, null,
|
|
4772
|
-
React.createElement("span", { className: css$
|
|
4829
|
+
React.createElement("span", { className: css$1(a11yStyles.screenReader) }, variantLabel),
|
|
4773
4830
|
title));
|
|
4774
4831
|
const titleRef = React.useRef(null);
|
|
4775
4832
|
const divRef = React.useRef();
|
|
@@ -4836,24 +4893,24 @@ const Alert = (_a) => {
|
|
|
4836
4893
|
if (dismissed) {
|
|
4837
4894
|
return null;
|
|
4838
4895
|
}
|
|
4839
|
-
const Title = (React.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$
|
|
4840
|
-
return (React.createElement("div", Object.assign({ ref: divRef, className: css$
|
|
4896
|
+
const Title = (React.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$1(styles$p.alertTitle, truncateTitle && styles$p.modifiers.truncate) }), getHeadingContent));
|
|
4897
|
+
return (React.createElement("div", Object.assign({ ref: divRef, className: css$1(styles$p.alert, isInline && styles$p.modifiers.inline, isPlain && styles$p.modifiers.plain, isExpandable && styles$p.modifiers.expandable, isExpanded && styles$p.modifiers.expanded, styles$p.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
4841
4898
|
'aria-live': 'polite',
|
|
4842
4899
|
'aria-atomic': 'false'
|
|
4843
4900
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave, id: id }, props),
|
|
4844
4901
|
isExpandable && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4845
|
-
React.createElement("div", { className: css$
|
|
4902
|
+
React.createElement("div", { className: css$1(styles$p.alertToggle) },
|
|
4846
4903
|
React.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
4847
4904
|
React.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
4848
4905
|
isTooltipVisible ? (React.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
4849
4906
|
actionClose && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4850
|
-
React.createElement("div", { className: css$
|
|
4851
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$
|
|
4852
|
-
actionLinks && React.createElement("div", { className: css$
|
|
4907
|
+
React.createElement("div", { className: css$1(styles$p.alertAction) }, actionClose))),
|
|
4908
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$1(styles$p.alertDescription) }, children)),
|
|
4909
|
+
actionLinks && React.createElement("div", { className: css$1(styles$p.alertActionGroup) }, actionLinks)));
|
|
4853
4910
|
};
|
|
4854
4911
|
Alert.displayName = 'Alert';
|
|
4855
4912
|
|
|
4856
|
-
var formStyles = {
|
|
4913
|
+
var formStyles$1 = {
|
|
4857
4914
|
"formControl": "pf-c-form-control",
|
|
4858
4915
|
"modifiers": {
|
|
4859
4916
|
"success": "pf-m-success",
|
|
@@ -4872,7 +4929,7 @@ var formStyles = {
|
|
|
4872
4929
|
"themeDark": "pf-theme-dark"
|
|
4873
4930
|
};
|
|
4874
4931
|
|
|
4875
|
-
var styles$
|
|
4932
|
+
var styles$n = {
|
|
4876
4933
|
"badge": "pf-c-badge",
|
|
4877
4934
|
"check": "pf-c-check",
|
|
4878
4935
|
"divider": "pf-c-divider",
|
|
@@ -5058,12 +5115,12 @@ class DropdownMenu extends React.Component {
|
|
|
5058
5115
|
return (React.createElement(DropdownArrowContext.Provider, { value: {
|
|
5059
5116
|
keyHandler: this.childKeyHandler,
|
|
5060
5117
|
sendRef: this.sendRef
|
|
5061
|
-
} }, component === 'div' ? (React.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React.createElement("div", { className: css$
|
|
5118
|
+
} }, component === 'div' ? (React.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React.createElement("div", { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5062
5119
|
const MenuComponent = (menuComponent || 'div');
|
|
5063
|
-
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$
|
|
5120
|
+
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5064
5121
|
}))) || (React.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5065
5122
|
const MenuComponent = (menuComponent || component);
|
|
5066
|
-
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$
|
|
5123
|
+
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5067
5124
|
})))));
|
|
5068
5125
|
}
|
|
5069
5126
|
}
|
|
@@ -5078,7 +5135,7 @@ DropdownMenu.defaultProps = {
|
|
|
5078
5135
|
isGrouped: false,
|
|
5079
5136
|
setMenuComponentRef: null
|
|
5080
5137
|
};
|
|
5081
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
5138
|
+
DropdownMenu.validToggleClasses = [styles$n.dropdownToggle, styles$n.dropdownToggleButton];
|
|
5082
5139
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
5083
5140
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
5084
5141
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -5130,9 +5187,9 @@ class DropdownWithContext extends React.Component {
|
|
|
5130
5187
|
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
5131
5188
|
return (React.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
5132
5189
|
const BaseComponent = baseComponent;
|
|
5133
|
-
const menuContainer = (React.createElement(DropdownMenu, { className: css$
|
|
5134
|
-
const popperContainer = (React.createElement("div", { className: css$
|
|
5135
|
-
const mainContainer = (React.createElement(BaseComponent, Object.assign({}, props, { className: css$
|
|
5190
|
+
const menuContainer = (React.createElement(DropdownMenu, { className: css$1(isStatic && styles$n.modifiers.static), setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
|
|
5191
|
+
const popperContainer = (React.createElement("div", { className: css$1(baseClass, direction === DropdownDirection.up && styles$n.modifiers.top, position === DropdownPosition.right && styles$n.modifiers.alignRight, isOpen && styles$n.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
5192
|
+
const mainContainer = (React.createElement(BaseComponent, Object.assign({}, props, { className: css$1(baseClass, direction === DropdownDirection.up && styles$n.modifiers.top, position === DropdownPosition.right && styles$n.modifiers.alignRight, isOpen && styles$n.modifiers.expanded, isFullHeight && styles$n.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
5136
5193
|
React.Children.map(toggle, oneToggle => React.cloneElement(oneToggle, {
|
|
5137
5194
|
parentRef: this.baseComponentRef,
|
|
5138
5195
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -5247,7 +5304,7 @@ class InternalDropdownItem extends React.Component {
|
|
|
5247
5304
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5248
5305
|
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(_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"]);
|
|
5249
5306
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5250
|
-
let classes = css$
|
|
5307
|
+
let classes = css$1(icon && styles$n.modifiers.icon, isAriaDisabled && styles$n.modifiers.ariaDisabled, className);
|
|
5251
5308
|
if (component === 'a') {
|
|
5252
5309
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
5253
5310
|
}
|
|
@@ -5257,22 +5314,22 @@ class InternalDropdownItem extends React.Component {
|
|
|
5257
5314
|
}
|
|
5258
5315
|
const renderWithTooltip = (childNode) => tooltip ? (React.createElement(Tooltip, Object.assign({ content: tooltip }, tooltipProps), childNode)) : (childNode);
|
|
5259
5316
|
const renderClonedComponent = (element) => React.cloneElement(element, Object.assign(Object.assign({}, (styleChildren && {
|
|
5260
|
-
className: css$
|
|
5317
|
+
className: css$1(element.props.className, classes)
|
|
5261
5318
|
})), (this.props.role !== 'separator' && { role, ref: this.componentRef })));
|
|
5262
5319
|
const renderDefaultComponent = (tag) => {
|
|
5263
5320
|
const Component = tag;
|
|
5264
5321
|
const componentContent = description ? (React.createElement(React.Fragment, null,
|
|
5265
|
-
React.createElement("div", { className: styles$
|
|
5266
|
-
icon && React.createElement("span", { className: css$
|
|
5322
|
+
React.createElement("div", { className: styles$n.dropdownMenuItemMain },
|
|
5323
|
+
icon && React.createElement("span", { className: css$1(styles$n.dropdownMenuItemIcon) }, icon),
|
|
5267
5324
|
children),
|
|
5268
|
-
React.createElement("div", { className: styles$
|
|
5269
|
-
icon && React.createElement("span", { className: css$
|
|
5325
|
+
React.createElement("div", { className: styles$n.dropdownMenuItemDescription }, description))) : (React.createElement(React.Fragment, null,
|
|
5326
|
+
icon && React.createElement("span", { className: css$1(styles$n.dropdownMenuItemIcon) }, icon),
|
|
5270
5327
|
children));
|
|
5271
5328
|
return (React.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID, role: role }), componentContent));
|
|
5272
5329
|
};
|
|
5273
5330
|
return (React.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
5274
5331
|
if (this.props.role !== 'separator') {
|
|
5275
|
-
classes = css$
|
|
5332
|
+
classes = css$1(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$n.modifiers.description);
|
|
5276
5333
|
}
|
|
5277
5334
|
if (customChild) {
|
|
5278
5335
|
return React.cloneElement(customChild, {
|
|
@@ -5325,7 +5382,7 @@ const DropdownItem = (_a) => {
|
|
|
5325
5382
|
};
|
|
5326
5383
|
DropdownItem.displayName = 'DropdownItem';
|
|
5327
5384
|
|
|
5328
|
-
var styles$
|
|
5385
|
+
var styles$m = {
|
|
5329
5386
|
"divider": "pf-c-divider",
|
|
5330
5387
|
"modifiers": {
|
|
5331
5388
|
"hidden": "pf-m-hidden",
|
|
@@ -5410,7 +5467,7 @@ var DividerVariant;
|
|
|
5410
5467
|
const Divider = (_a) => {
|
|
5411
5468
|
var { className, component = DividerVariant.hr, isVertical = false, inset, orientation } = _a, props = __rest(_a, ["className", "component", "isVertical", "inset", "orientation"]);
|
|
5412
5469
|
const Component = component;
|
|
5413
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
5470
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$m.divider, isVertical && styles$m.modifiers.vertical, formatBreakpointMods(inset, styles$m), formatBreakpointMods(orientation, styles$m), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5414
5471
|
};
|
|
5415
5472
|
Divider.displayName = 'Divider';
|
|
5416
5473
|
|
|
@@ -5437,8 +5494,8 @@ const CaretDownIcon = createIcon(CaretDownIconConfig);
|
|
|
5437
5494
|
|
|
5438
5495
|
const buttonVariantStyles = {
|
|
5439
5496
|
default: '',
|
|
5440
|
-
primary: styles$
|
|
5441
|
-
secondary: styles$
|
|
5497
|
+
primary: styles$n.modifiers.primary,
|
|
5498
|
+
secondary: styles$n.modifiers.secondary
|
|
5442
5499
|
};
|
|
5443
5500
|
class Toggle extends React.Component {
|
|
5444
5501
|
constructor() {
|
|
@@ -5504,7 +5561,7 @@ class Toggle extends React.Component {
|
|
|
5504
5561
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5505
5562
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5506
5563
|
id, type } = _a, props = __rest(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
5507
|
-
return (React.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css$
|
|
5564
|
+
return (React.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css$1(isSplitButton ? styles$n.dropdownToggleButton : toggleClass || styles$n.dropdownToggle, isActive && styles$n.modifiers.active, isPlain && styles$n.modifiers.plain, isText && styles$n.modifiers.text, isPrimary && styles$n.modifiers.primary, toggleVariant && buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle === null || onToggle === void 0 ? void 0 : onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
5508
5565
|
}
|
|
5509
5566
|
}
|
|
5510
5567
|
Toggle.displayName = 'Toggle';
|
|
@@ -5533,12 +5590,12 @@ const DropdownToggle = (_a) => {
|
|
|
5533
5590
|
props = __rest(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isText", "isPrimary", "toggleVariant", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
|
|
5534
5591
|
const ouiaProps = useOUIAProps(DropdownToggle.displayName, ouiaId, ouiaSafe);
|
|
5535
5592
|
const toggle = (React.createElement(DropdownContext.Consumer, null, ({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (React.createElement(Toggle, Object.assign({}, props, { id: id, className: className, isOpen: isOpen, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isDisabled: isDisabled, isPlain: isPlain, isText: isText, isPrimary: isPrimary, toggleVariant: toggleVariant, onToggle: onToggle, "aria-haspopup": ariaHasPopup }, ouiaProps, (splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })),
|
|
5536
|
-
icon && React.createElement("span", { className: css$
|
|
5537
|
-
children && React.createElement("span", { className: ToggleIndicator && css$
|
|
5538
|
-
ToggleIndicator && (React.createElement("span", { className: css$
|
|
5593
|
+
icon && React.createElement("span", { className: css$1(toggleIconClass) }, icon),
|
|
5594
|
+
children && React.createElement("span", { className: ToggleIndicator && css$1(toggleTextClass) }, children),
|
|
5595
|
+
ToggleIndicator && (React.createElement("span", { className: css$1(!splitButtonItems && toggleIndicatorClass) },
|
|
5539
5596
|
React.createElement(ToggleIndicator, null)))))));
|
|
5540
5597
|
if (splitButtonItems) {
|
|
5541
|
-
return (React.createElement("div", { className: css$
|
|
5598
|
+
return (React.createElement("div", { className: css$1(styles$n.dropdownToggle, styles$n.modifiers.splitButton, splitButtonVariant === 'action' && styles$n.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$n.modifiers.primary, toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles$n.modifiers.secondary, isDisabled && styles$n.modifiers.disabled) },
|
|
5542
5599
|
splitButtonItems,
|
|
5543
5600
|
toggle));
|
|
5544
5601
|
}
|
|
@@ -5723,7 +5780,7 @@ class TextInputBase extends React.Component {
|
|
|
5723
5780
|
if (customIconDimensions) {
|
|
5724
5781
|
customIconStyle.backgroundSize = customIconDimensions;
|
|
5725
5782
|
}
|
|
5726
|
-
return (React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css$
|
|
5783
|
+
return (React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning, ((iconVariant && iconVariant !== 'search') || customIconUrl) && formStyles$1.modifiers.icon, iconVariant && formStyles$1.modifiers[iconVariant], className), onChange: this.handleChange, type: type, value: this.sanitizeInputValue(value), "aria-invalid": props['aria-invalid'] ? props['aria-invalid'] : validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled, readOnly: !!readOnlyVariant || isReadOnly || readOnly, ref: innerRef || this.inputRef }, ((customIconUrl || customIconDimensions) && { style: customIconStyle }), getOUIAProps(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
5727
5784
|
}
|
|
5728
5785
|
}
|
|
5729
5786
|
TextInputBase.displayName = 'TextInputBase';
|
|
@@ -5743,7 +5800,7 @@ TextInputBase.defaultProps = {
|
|
|
5743
5800
|
const TextInput = React.forwardRef((props, ref) => (React.createElement(TextInputBase, Object.assign({}, props, { innerRef: ref }))));
|
|
5744
5801
|
TextInput.displayName = 'TextInput';
|
|
5745
5802
|
|
|
5746
|
-
var styles$
|
|
5803
|
+
var styles$l = {
|
|
5747
5804
|
"check": "pf-c-check",
|
|
5748
5805
|
"checkLabel": "pf-c-check__label",
|
|
5749
5806
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -5814,7 +5871,7 @@ const TimesCircleIconConfig = {
|
|
|
5814
5871
|
|
|
5815
5872
|
const TimesCircleIcon = createIcon(TimesCircleIconConfig);
|
|
5816
5873
|
|
|
5817
|
-
var
|
|
5874
|
+
var formStyles = {
|
|
5818
5875
|
"form": "pf-c-form",
|
|
5819
5876
|
"formActions": "pf-c-form__actions",
|
|
5820
5877
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -5987,16 +6044,16 @@ class SelectOption extends React.Component {
|
|
|
5987
6044
|
console.error('Please provide an id to use the favorites feature.');
|
|
5988
6045
|
}
|
|
5989
6046
|
const generatedId = id || getUniqueId('select-option');
|
|
5990
|
-
const favoriteButton = (onFavorite) => (React.createElement("button", { className: css$
|
|
6047
|
+
const favoriteButton = (onFavorite) => (React.createElement("button", { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.action, styles$l.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
5991
6048
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
5992
6049
|
}, onKeyDown: event => {
|
|
5993
6050
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
5994
6051
|
}, ref: this.favoriteRef },
|
|
5995
|
-
React.createElement("span", { className: css$
|
|
6052
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemActionIcon) },
|
|
5996
6053
|
React.createElement(StarIcon, null))));
|
|
5997
|
-
const itemDisplay = itemCount ? (React.createElement("span", { className: css$
|
|
5998
|
-
React.createElement("span", { className: css$
|
|
5999
|
-
React.createElement("span", { className: css$
|
|
6054
|
+
const itemDisplay = itemCount ? (React.createElement("span", { className: css$1(styles$l.selectMenuItemRow) },
|
|
6055
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6056
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
6000
6057
|
const onViewMoreClick = (event) => {
|
|
6001
6058
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
6002
6059
|
setViewMoreNextIndex();
|
|
@@ -6004,26 +6061,26 @@ class SelectOption extends React.Component {
|
|
|
6004
6061
|
};
|
|
6005
6062
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
6006
6063
|
if (variant !== SelectVariant.checkbox && isLoading && isGrouped) {
|
|
6007
|
-
return (React.createElement("div", { role: "presentation", className: css$
|
|
6064
|
+
return (React.createElement("div", { role: "presentation", className: css$1(styles$l.selectListItem, isLoading && styles$l.modifiers.loading, className) }, children));
|
|
6008
6065
|
}
|
|
6009
6066
|
else if (variant !== SelectVariant.checkbox && isLoad && isGrouped) {
|
|
6010
6067
|
return (React.createElement("div", null,
|
|
6011
|
-
React.createElement("button", Object.assign({}, props, { role: "presentation", className: css$
|
|
6068
|
+
React.createElement("button", Object.assign({}, props, { role: "presentation", className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, className), onClick: (event) => {
|
|
6012
6069
|
onViewMoreClick(event);
|
|
6013
6070
|
event.stopPropagation();
|
|
6014
6071
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
6015
6072
|
}
|
|
6016
6073
|
else if (variant !== SelectVariant.checkbox) {
|
|
6017
|
-
return (React.createElement("li", { id: generatedId, role: "presentation", className: css$
|
|
6074
|
+
return (React.createElement("li", { id: generatedId, role: "presentation", className: css$1(isLoading && styles$l.selectListItem, !isLoading && styles$l.selectMenuWrapper, isFavorite && styles$l.modifiers.favorite, isFocused && styles$l.modifiers.focus, isLoading && styles$l.modifiers.loading), ref: this.liRef },
|
|
6018
6075
|
isLoading && children,
|
|
6019
|
-
isLoad && !isGrouped && (React.createElement("button", Object.assign({}, props, { className: css$
|
|
6076
|
+
isLoad && !isGrouped && (React.createElement("button", Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, className), onClick: (event) => {
|
|
6020
6077
|
onViewMoreClick(event);
|
|
6021
6078
|
event.stopPropagation();
|
|
6022
6079
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
6023
6080
|
this.onKeyDown(event, 0);
|
|
6024
6081
|
}, type: "button" }), itemDisplay)),
|
|
6025
6082
|
!isLoading && !isLoad && (React.createElement(React.Fragment, null,
|
|
6026
|
-
React.createElement(Component, Object.assign({}, props, { className: css$
|
|
6083
|
+
React.createElement(Component, Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, isLoad && styles$l.modifiers.load, isSelected && styles$l.modifiers.selected, isDisabled && styles$l.modifiers.disabled, description && styles$l.modifiers.description, isFavorite !== null && styles$l.modifiers.link, className), onClick: (event) => {
|
|
6027
6084
|
if (!isDisabled) {
|
|
6028
6085
|
onClick(event);
|
|
6029
6086
|
onSelect(event, value, isPlaceholder);
|
|
@@ -6033,19 +6090,19 @@ class SelectOption extends React.Component {
|
|
|
6033
6090
|
this.onKeyDown(event, 0);
|
|
6034
6091
|
}, type: "button" }),
|
|
6035
6092
|
description && (React.createElement(React.Fragment, null,
|
|
6036
|
-
React.createElement("span", { className: css$
|
|
6093
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemMain) },
|
|
6037
6094
|
itemDisplay,
|
|
6038
|
-
isSelected && (React.createElement("span", { className: css$
|
|
6095
|
+
isSelected && (React.createElement("span", { className: css$1(styles$l.selectMenuItemIcon) },
|
|
6039
6096
|
React.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6040
|
-
React.createElement("span", { className: css$
|
|
6097
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemDescription) }, description))),
|
|
6041
6098
|
!description && (React.createElement(React.Fragment, null,
|
|
6042
6099
|
itemDisplay,
|
|
6043
|
-
isSelected && (React.createElement("span", { className: css$
|
|
6100
|
+
isSelected && (React.createElement("span", { className: css$1(styles$l.selectMenuItemIcon) },
|
|
6044
6101
|
React.createElement(CheckIcon, { "aria-hidden": true })))))),
|
|
6045
6102
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6046
6103
|
}
|
|
6047
6104
|
else if (variant === SelectVariant.checkbox && isLoad) {
|
|
6048
|
-
return (React.createElement("button", { className: css$
|
|
6105
|
+
return (React.createElement("button", { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, isFocused && styles$l.modifiers.focus, className), onKeyDown: (event) => {
|
|
6049
6106
|
this.onKeyDown(event, 0, undefined, true);
|
|
6050
6107
|
}, onClick: (event) => {
|
|
6051
6108
|
onViewMoreClick(event);
|
|
@@ -6053,24 +6110,24 @@ class SelectOption extends React.Component {
|
|
|
6053
6110
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
6054
6111
|
}
|
|
6055
6112
|
else if (variant === SelectVariant.checkbox && isLoading) {
|
|
6056
|
-
return (React.createElement("div", { className: css$
|
|
6113
|
+
return (React.createElement("div", { className: css$1(styles$l.selectListItem, isLoading && styles$l.modifiers.loading, className) }, children));
|
|
6057
6114
|
}
|
|
6058
6115
|
else if (variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
6059
|
-
return (React.createElement("label", Object.assign({}, props, { className: css$
|
|
6116
|
+
return (React.createElement("label", Object.assign({}, props, { className: css$1(styles$k.check, styles$l.selectMenuItem, isDisabled && styles$l.modifiers.disabled, description && styles$l.modifiers.description, className), onKeyDown: (event) => {
|
|
6060
6117
|
this.onKeyDown(event, 0, undefined, true);
|
|
6061
6118
|
} }),
|
|
6062
|
-
React.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css$
|
|
6119
|
+
React.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css$1(styles$k.checkInput), type: "checkbox", onChange: event => {
|
|
6063
6120
|
if (!isDisabled) {
|
|
6064
6121
|
onClick(event);
|
|
6065
6122
|
onSelect(event, value);
|
|
6066
6123
|
}
|
|
6067
6124
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
6068
|
-
React.createElement("span", { className: css$
|
|
6069
|
-
description && React.createElement("div", { className: css$
|
|
6125
|
+
React.createElement("span", { className: css$1(styles$k.checkLabel, isDisabled && styles$l.modifiers.disabled) }, itemDisplay),
|
|
6126
|
+
description && React.createElement("div", { className: css$1(styles$k.checkDescription) }, description)));
|
|
6070
6127
|
}
|
|
6071
6128
|
else if (variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
6072
6129
|
return (React.createElement("div", null,
|
|
6073
|
-
React.createElement(Component, Object.assign({}, props, { className: css$
|
|
6130
|
+
React.createElement(Component, Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, isSelected && styles$l.modifiers.selected, isDisabled && styles$l.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
6074
6131
|
this.onKeyDown(event, 0, undefined, true);
|
|
6075
6132
|
}, type: "button" }), itemDisplay)));
|
|
6076
6133
|
}
|
|
@@ -6102,8 +6159,8 @@ SelectOption.defaultProps = {
|
|
|
6102
6159
|
|
|
6103
6160
|
const SelectGroup = (_a) => {
|
|
6104
6161
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest(_a, ["children", "className", "label", "titleId"]);
|
|
6105
|
-
return (React.createElement(SelectConsumer, null, ({ variant }) => (React.createElement("div", Object.assign({}, props, { className: css$
|
|
6106
|
-
React.createElement("div", { className: css$
|
|
6162
|
+
return (React.createElement(SelectConsumer, null, ({ variant }) => (React.createElement("div", Object.assign({}, props, { className: css$1(styles$l.selectMenuGroup, className) }),
|
|
6163
|
+
React.createElement("div", { className: css$1(styles$l.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
6107
6164
|
variant === SelectVariant.checkbox ? children : React.createElement("ul", { role: "listbox" }, children)))));
|
|
6108
6165
|
};
|
|
6109
6166
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -6185,7 +6242,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6185
6242
|
}
|
|
6186
6243
|
return React.cloneElement(group, {
|
|
6187
6244
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
6188
|
-
children: group.props.children ? (React.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css$
|
|
6245
|
+
children: group.props.children ? (React.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css$1(styles$l.selectMenuFieldset) }, React.Children.map(group.props.children, (option) => option.type === Divider
|
|
6189
6246
|
? option
|
|
6190
6247
|
: React.cloneElement(option, {
|
|
6191
6248
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -6212,7 +6269,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6212
6269
|
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(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
|
|
6213
6270
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6214
6271
|
let Component = 'div';
|
|
6215
|
-
const variantProps = Object.assign({ ref: innerRef, className: css$
|
|
6272
|
+
const variantProps = Object.assign({ ref: innerRef, className: css$1(!footer ? styles$l.selectMenu : 'pf-c-select__menu-list', position === SelectPosition.right && styles$l.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
6216
6273
|
const extendedChildren = () => variant === SelectVariant.checkbox
|
|
6217
6274
|
? this.extendCheckboxChildren(children)
|
|
6218
6275
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -6221,10 +6278,10 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6221
6278
|
}
|
|
6222
6279
|
else if (hasInlineFilter) {
|
|
6223
6280
|
if (React.Children.count(children) === 0) {
|
|
6224
|
-
variantProps.children = React.createElement("fieldset", { className: css$
|
|
6281
|
+
variantProps.children = React.createElement("fieldset", { className: css$1(styles$l.selectMenuFieldset) });
|
|
6225
6282
|
}
|
|
6226
6283
|
else {
|
|
6227
|
-
variantProps.children = (React.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css$
|
|
6284
|
+
variantProps.children = (React.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css$1(formStyles.formFieldset) },
|
|
6228
6285
|
children.shift(),
|
|
6229
6286
|
extendedChildren()));
|
|
6230
6287
|
}
|
|
@@ -6240,7 +6297,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6240
6297
|
}
|
|
6241
6298
|
return (React.createElement(React.Fragment, null,
|
|
6242
6299
|
React.createElement(Component, Object.assign({}, variantProps, props)),
|
|
6243
|
-
footer && (React.createElement("div", { className: css$
|
|
6300
|
+
footer && (React.createElement("div", { className: css$1(styles$l.selectMenuFooter), ref: footerRef }, footer))));
|
|
6244
6301
|
}
|
|
6245
6302
|
render() {
|
|
6246
6303
|
return React.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -6404,7 +6461,7 @@ class SelectToggle extends React.Component {
|
|
|
6404
6461
|
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
|
|
6405
6462
|
};
|
|
6406
6463
|
return (React.createElement(React.Fragment, null,
|
|
6407
|
-
!isTypeahead && (React.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css$
|
|
6464
|
+
!isTypeahead && (React.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css$1(styles$l.selectToggle, hasPlaceholderStyle && styles$l.modifiers.placeholder, isDisabled && styles$l.modifiers.disabled, isPlain && styles$l.modifiers.plain, isActive && styles$l.modifiers.active, className), "aria-label": ariaLabel, onBlur: onBlur,
|
|
6408
6465
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6409
6466
|
onClick: event => {
|
|
6410
6467
|
onToggle(!isOpen, event);
|
|
@@ -6413,8 +6470,8 @@ class SelectToggle extends React.Component {
|
|
|
6413
6470
|
}
|
|
6414
6471
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
6415
6472
|
children,
|
|
6416
|
-
React.createElement("span", { className: css$
|
|
6417
|
-
isTypeahead && (React.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css$
|
|
6473
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleArrow) }, toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, null)))),
|
|
6474
|
+
isTypeahead && (React.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css$1(styles$l.selectToggle, hasPlaceholderStyle && styles$l.modifiers.placeholder, isDisabled && styles$l.modifiers.disabled, isPlain && styles$l.modifiers.plain, isTypeahead && styles$l.modifiers.typeahead, className), onBlur: onBlur,
|
|
6418
6475
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6419
6476
|
onClick: event => {
|
|
6420
6477
|
if (!isDisabled) {
|
|
@@ -6425,7 +6482,7 @@ class SelectToggle extends React.Component {
|
|
|
6425
6482
|
}
|
|
6426
6483
|
}, onKeyDown: this.onKeyDown }),
|
|
6427
6484
|
children,
|
|
6428
|
-
React.createElement("button", Object.assign({}, toggleProps, { type: type, className: css$
|
|
6485
|
+
React.createElement("button", Object.assign({}, toggleProps, { type: type, className: css$1(buttonStyles.button, styles$l.selectToggleButton, styles$l.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
6429
6486
|
onToggle(!isOpen, event);
|
|
6430
6487
|
if (isOpen) {
|
|
6431
6488
|
onClose();
|
|
@@ -6433,7 +6490,7 @@ class SelectToggle extends React.Component {
|
|
|
6433
6490
|
onClickTypeaheadToggleButton();
|
|
6434
6491
|
} }, ((variant === SelectVariant.typeahead || variant === SelectVariant.typeaheadMulti) && {
|
|
6435
6492
|
tabIndex: -1
|
|
6436
|
-
}), { disabled: isDisabled }), toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, { className: css$
|
|
6493
|
+
}), { disabled: isDisabled }), toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, { className: css$1(styles$l.selectToggleArrow) }))))));
|
|
6437
6494
|
}
|
|
6438
6495
|
}
|
|
6439
6496
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -6491,8 +6548,8 @@ class Chip extends React.Component {
|
|
|
6491
6548
|
this.renderOverflowChip = () => {
|
|
6492
6549
|
const { children, className, onClick, ouiaId } = this.props;
|
|
6493
6550
|
const Component = this.props.component;
|
|
6494
|
-
return (React.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css$
|
|
6495
|
-
React.createElement("span", { className: css$
|
|
6551
|
+
return (React.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css$1(styles$i.chip, styles$i.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
6552
|
+
React.createElement("span", { className: css$1(styles$i.chipText) }, children)));
|
|
6496
6553
|
};
|
|
6497
6554
|
this.renderChip = (randomId) => {
|
|
6498
6555
|
const { children, tooltipPosition } = this.props;
|
|
@@ -6516,8 +6573,8 @@ class Chip extends React.Component {
|
|
|
6516
6573
|
const Component = component;
|
|
6517
6574
|
return (React.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
|
|
6518
6575
|
style: this.setChipStyle()
|
|
6519
|
-
}), { className: css$
|
|
6520
|
-
React.createElement("span", { ref: this.span, className: css$
|
|
6576
|
+
}), { className: css$1(styles$i.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
6577
|
+
React.createElement("span", { ref: this.span, className: css$1(styles$i.chipText), id: id }, children),
|
|
6521
6578
|
!isReadOnly && (React.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
6522
6579
|
React.createElement(TimesIcon, { "aria-hidden": "true" })))));
|
|
6523
6580
|
}
|
|
@@ -6562,8 +6619,8 @@ class ChipGroup extends React.Component {
|
|
|
6562
6619
|
const { categoryName, tooltipPosition } = this.props;
|
|
6563
6620
|
const { isTooltipVisible } = this.state;
|
|
6564
6621
|
return isTooltipVisible ? (React.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
6565
|
-
React.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css$
|
|
6566
|
-
React.createElement("span", { id: id }, categoryName)))) : (React.createElement("span", { ref: this.headingRef, className: css$
|
|
6622
|
+
React.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css$1(styles$j.chipGroupLabel) },
|
|
6623
|
+
React.createElement("span", { id: id }, categoryName)))) : (React.createElement("span", { ref: this.headingRef, className: css$1(styles$j.chipGroupLabel), id: id }, categoryName));
|
|
6567
6624
|
}
|
|
6568
6625
|
render() {
|
|
6569
6626
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -6580,17 +6637,17 @@ class ChipGroup extends React.Component {
|
|
|
6580
6637
|
const chipArray = !isOpen
|
|
6581
6638
|
? React.Children.toArray(children).slice(0, numChips)
|
|
6582
6639
|
: React.Children.toArray(children);
|
|
6583
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
6584
|
-
React.createElement("div", { className: css$
|
|
6640
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$j.chipGroup, className, categoryName && styles$j.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
6641
|
+
React.createElement("div", { className: css$1(styles$j.chipGroupMain) },
|
|
6585
6642
|
categoryName && this.renderLabel(id),
|
|
6586
|
-
React.createElement("ul", Object.assign({ className: css$
|
|
6587
|
-
chipArray.map((child, i) => (React.createElement("li", { className: css$
|
|
6588
|
-
numChildren > numChips && (React.createElement("li", { className: css$
|
|
6643
|
+
React.createElement("ul", Object.assign({ className: css$1(styles$j.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
6644
|
+
chipArray.map((child, i) => (React.createElement("li", { className: css$1(styles$j.chipGroupListItem), key: i }, child))),
|
|
6645
|
+
numChildren > numChips && (React.createElement("li", { className: css$1(styles$j.chipGroupListItem) },
|
|
6589
6646
|
React.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
6590
6647
|
this.toggleCollapse();
|
|
6591
6648
|
onOverflowChipClick(event);
|
|
6592
6649
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
6593
|
-
isClosable && (React.createElement("div", { className: css$
|
|
6650
|
+
isClosable && (React.createElement("div", { className: css$1(styles$j.chipGroupClose) },
|
|
6594
6651
|
React.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
6595
6652
|
React.createElement(TimesCircleIcon, { "aria-hidden": "true" }))))));
|
|
6596
6653
|
};
|
|
@@ -7292,7 +7349,7 @@ class Select extends React.Component {
|
|
|
7292
7349
|
}
|
|
7293
7350
|
}
|
|
7294
7351
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
7295
|
-
const clearBtn = (React.createElement("button", { className: css$
|
|
7352
|
+
const clearBtn = (React.createElement("button", { className: css$1(buttonStyles.button, buttonStyles.modifiers.plain, styles$l.selectToggleClear), onClick: e => {
|
|
7296
7353
|
this.clearSelection(e);
|
|
7297
7354
|
onClear(e);
|
|
7298
7355
|
e.stopPropagation();
|
|
@@ -7309,8 +7366,8 @@ class Select extends React.Component {
|
|
|
7309
7366
|
}
|
|
7310
7367
|
if (hasInlineFilter) {
|
|
7311
7368
|
const filterBox = (React.createElement(React.Fragment, null,
|
|
7312
|
-
React.createElement("div", { key: "inline-filter", className: css$
|
|
7313
|
-
React.createElement("input", { key: "inline-filter-input", type: "search", className: css$
|
|
7369
|
+
React.createElement("div", { key: "inline-filter", className: css$1(styles$l.selectMenuSearch) },
|
|
7370
|
+
React.createElement("input", { key: "inline-filter-input", type: "search", className: css$1(formStyles$1.formControl, formStyles$1.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
7314
7371
|
if (event.key === KeyTypes.ArrowUp) {
|
|
7315
7372
|
this.handleMenuKeys(0, 0, 'up');
|
|
7316
7373
|
event.preventDefault();
|
|
@@ -7412,47 +7469,47 @@ class Select extends React.Component {
|
|
|
7412
7469
|
}
|
|
7413
7470
|
}
|
|
7414
7471
|
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
7415
|
-
const innerMenu = (React.createElement(SelectMenu, Object.assign({ className: css$
|
|
7416
|
-
const menuContainer = footer ? React.createElement("div", { className: css$
|
|
7472
|
+
const innerMenu = (React.createElement(SelectMenu, Object.assign({ className: css$1(isStatic && styles$l.modifiers.static) }, 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));
|
|
7473
|
+
const menuContainer = footer ? React.createElement("div", { className: css$1(styles$l.selectMenu) },
|
|
7417
7474
|
" ",
|
|
7418
7475
|
innerMenu,
|
|
7419
7476
|
" ") : innerMenu;
|
|
7420
|
-
const popperContainer = (React.createElement("div", Object.assign({ className: css$
|
|
7421
|
-
const mainContainer = (React.createElement("div", Object.assign({ className: css$
|
|
7477
|
+
const popperContainer = (React.createElement("div", Object.assign({ className: css$1(styles$l.select, isOpen && styles$l.modifiers.expanded, validated === ValidatedOptions.success && styles$l.modifiers.success, validated === ValidatedOptions.warning && styles$l.modifiers.warning, validated === ValidatedOptions.error && styles$l.modifiers.invalid, direction === SelectDirection.up && styles$l.modifiers.top, className) }, (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
7478
|
+
const mainContainer = (React.createElement("div", Object.assign({ className: css$1(styles$l.select, isOpen && styles$l.modifiers.expanded, validated === ValidatedOptions.success && styles$l.modifiers.success, validated === ValidatedOptions.warning && styles$l.modifiers.warning, validated === ValidatedOptions.error && styles$l.modifiers.invalid, direction === SelectDirection.up && styles$l.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
7422
7479
|
React.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, toggleIndicator: toggleIndicator, "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 }),
|
|
7423
|
-
customContent && (React.createElement("div", { className: css$
|
|
7424
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7425
|
-
React.createElement("span", { className: css$
|
|
7480
|
+
customContent && (React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7481
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7482
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, placeholderText))),
|
|
7426
7483
|
variant === SelectVariant.single && !customContent && (React.createElement(React.Fragment, null,
|
|
7427
|
-
React.createElement("div", { className: css$
|
|
7428
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7429
|
-
React.createElement("span", { className: css$
|
|
7484
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7485
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7486
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
7430
7487
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
7431
7488
|
variant === SelectVariant.checkbox && !customContent && (React.createElement(React.Fragment, null,
|
|
7432
|
-
React.createElement("div", { className: css$
|
|
7433
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7434
|
-
React.createElement("span", { className: css$
|
|
7435
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React.createElement("div", { className: css$
|
|
7436
|
-
React.createElement("span", { className: css$
|
|
7489
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7490
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7491
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, placeholderText),
|
|
7492
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React.createElement("div", { className: css$1(styles$l.selectToggleBadge) },
|
|
7493
|
+
React.createElement("span", { className: css$1(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
7437
7494
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
7438
7495
|
variant === SelectVariant.typeahead && !customContent && (React.createElement(React.Fragment, null,
|
|
7439
|
-
React.createElement("div", { className: css$
|
|
7440
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7441
|
-
React.createElement("input", Object.assign({ className: css$
|
|
7496
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7497
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7498
|
+
React.createElement("input", Object.assign({ className: css$1(formStyles$1.formControl, styles$l.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
7442
7499
|
? typeaheadInputValue
|
|
7443
7500
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
7444
7501
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
7445
7502
|
variant === SelectVariant.typeaheadMulti && !customContent && (React.createElement(React.Fragment, null,
|
|
7446
|
-
React.createElement("div", { className: css$
|
|
7447
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7503
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7504
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7448
7505
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
7449
|
-
React.createElement("input", Object.assign({ className: css$
|
|
7506
|
+
React.createElement("input", Object.assign({ className: css$1(formStyles$1.formControl, styles$l.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === 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 }))),
|
|
7450
7507
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
7451
|
-
validated === ValidatedOptions.success && (React.createElement("span", { className: css$
|
|
7508
|
+
validated === ValidatedOptions.success && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7452
7509
|
React.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
7453
|
-
validated === ValidatedOptions.error && (React.createElement("span", { className: css$
|
|
7510
|
+
validated === ValidatedOptions.error && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7454
7511
|
React.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
7455
|
-
validated === ValidatedOptions.warning && (React.createElement("span", { className: css$
|
|
7512
|
+
validated === ValidatedOptions.warning && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7456
7513
|
React.createElement(ExclamationTriangleIcon, { "aria-hidden": "true" })))),
|
|
7457
7514
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
7458
7515
|
const getParentElement = () => {
|
|
@@ -7557,7 +7614,7 @@ class FormSelect extends React.Component {
|
|
|
7557
7614
|
/* find selected option and get placeholder flag */
|
|
7558
7615
|
const selectedOption = React.Children.toArray(children).find((option) => option.props.value === value);
|
|
7559
7616
|
const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
|
|
7560
|
-
return (React.createElement("select", Object.assign({}, props, { className: css$
|
|
7617
|
+
return (React.createElement("select", Object.assign({}, props, { className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, className, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning, isSelectedPlaceholder && formStyles$1.modifiers.placeholder), "aria-invalid": validated === ValidatedOptions.error }, getOUIAProps(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));
|
|
7561
7618
|
}
|
|
7562
7619
|
}
|
|
7563
7620
|
FormSelect.displayName = 'FormSelect';
|
|
@@ -7635,7 +7692,7 @@ class TextAreaBase extends React.Component {
|
|
|
7635
7692
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
7636
7693
|
props = __rest(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "readOnlyVariant", "resizeOrientation", "innerRef", "disabled", "autoResize", "onChange"]);
|
|
7637
7694
|
const orientation = `resize${capitalize(resizeOrientation)}`;
|
|
7638
|
-
return (React.createElement("textarea", Object.assign({ className: css$
|
|
7695
|
+
return (React.createElement("textarea", Object.assign({ className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, className, resizeOrientation !== TextAreResizeOrientation.both && formStyles$1.modifiers[orientation], validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: !!readOnlyVariant || isReadOnly, ref: innerRef || this.inputRef }, props)));
|
|
7639
7696
|
}
|
|
7640
7697
|
}
|
|
7641
7698
|
TextAreaBase.displayName = 'TextArea';
|
|
@@ -7658,7 +7715,7 @@ const InputGroup = (_a) => {
|
|
|
7658
7715
|
const idItem = React.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
|
|
7659
7716
|
const ref = React.useRef(null);
|
|
7660
7717
|
const inputGroupRef = innerRef || ref;
|
|
7661
|
-
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$
|
|
7718
|
+
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$1(styles$h.inputGroup, className) }, props), idItem
|
|
7662
7719
|
? React.Children.map(children, (child) => !formCtrls.includes(child.type.displayName) || child.props['aria-describedby']
|
|
7663
7720
|
? child
|
|
7664
7721
|
: React.cloneElement(child, {
|
|
@@ -7721,13 +7778,13 @@ const Card = (_a) => {
|
|
|
7721
7778
|
}
|
|
7722
7779
|
const getSelectableModifiers = () => {
|
|
7723
7780
|
if (isDisabledRaised) {
|
|
7724
|
-
return css$
|
|
7781
|
+
return css$1(styles$g.modifiers.nonSelectableRaised);
|
|
7725
7782
|
}
|
|
7726
7783
|
if (isSelectableRaised) {
|
|
7727
|
-
return css$
|
|
7784
|
+
return css$1(styles$g.modifiers.selectableRaised, isSelected && styles$g.modifiers.selectedRaised);
|
|
7728
7785
|
}
|
|
7729
7786
|
if (isSelectable || isHoverable) {
|
|
7730
|
-
return css$
|
|
7787
|
+
return css$1(styles$g.modifiers.selectable, isSelected && styles$g.modifiers.selected);
|
|
7731
7788
|
}
|
|
7732
7789
|
return '';
|
|
7733
7790
|
};
|
|
@@ -7755,27 +7812,27 @@ const Card = (_a) => {
|
|
|
7755
7812
|
isExpanded
|
|
7756
7813
|
} },
|
|
7757
7814
|
hasSelectableInput && (React.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 }))),
|
|
7758
|
-
React.createElement(Component, Object.assign({ id: id, className: css$
|
|
7815
|
+
React.createElement(Component, Object.assign({ id: id, className: css$1(styles$g.card, isCompact && styles$g.modifiers.compact, isExpanded && styles$g.modifiers.expanded, isFlat && styles$g.modifiers.flat, isRounded && styles$g.modifiers.rounded, isLarge && styles$g.modifiers.displayLg, isFullHeight && styles$g.modifiers.fullHeight, isPlain && styles$g.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
7759
7816
|
};
|
|
7760
7817
|
Card.displayName = 'Card';
|
|
7761
7818
|
|
|
7762
7819
|
const CardActions = (_a) => {
|
|
7763
7820
|
var { children = null, className = '', hasNoOffset = false } = _a, props = __rest(_a, ["children", "className", "hasNoOffset"]);
|
|
7764
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7821
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$g.cardActions, hasNoOffset && styles$g.modifiers.noOffset, className) }, props), children));
|
|
7765
7822
|
};
|
|
7766
7823
|
CardActions.displayName = 'CardActions';
|
|
7767
7824
|
|
|
7768
7825
|
const CardBody = (_a) => {
|
|
7769
7826
|
var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest(_a, ["children", "className", "component", "isFilled"]);
|
|
7770
7827
|
const Component = component;
|
|
7771
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7828
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardBody, !isFilled && styles$g.modifiers.noFill, className) }, props), children));
|
|
7772
7829
|
};
|
|
7773
7830
|
CardBody.displayName = 'CardBody';
|
|
7774
7831
|
|
|
7775
7832
|
const CardFooter = (_a) => {
|
|
7776
7833
|
var { children = null, className = '', component = 'div' } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
7777
7834
|
const Component = component;
|
|
7778
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7835
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardFooter, className) }, props), children));
|
|
7779
7836
|
};
|
|
7780
7837
|
CardFooter.displayName = 'CardFooter';
|
|
7781
7838
|
|
|
@@ -7788,20 +7845,20 @@ const CardTitle = (_a) => {
|
|
|
7788
7845
|
registerTitleId(titleId);
|
|
7789
7846
|
return () => registerTitleId('');
|
|
7790
7847
|
}, [registerTitleId, titleId]);
|
|
7791
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7848
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardTitle, className), id: titleId || undefined }, props), children));
|
|
7792
7849
|
};
|
|
7793
7850
|
CardTitle.displayName = 'CardTitle';
|
|
7794
7851
|
|
|
7795
7852
|
const CardHeader = (_a) => {
|
|
7796
7853
|
var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
7797
7854
|
return (React.createElement(CardContext.Consumer, null, ({ cardId }) => {
|
|
7798
|
-
const cardHeaderToggle = (React.createElement("div", { className: css$
|
|
7855
|
+
const cardHeaderToggle = (React.createElement("div", { className: css$1(styles$g.cardHeaderToggle) },
|
|
7799
7856
|
React.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
|
|
7800
7857
|
onExpand(evt, cardId);
|
|
7801
7858
|
} }, toggleButtonProps),
|
|
7802
|
-
React.createElement("span", { className: css$
|
|
7859
|
+
React.createElement("span", { className: css$1(styles$g.cardHeaderToggleIcon) },
|
|
7803
7860
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
7804
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7861
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$g.cardHeader, isToggleRightAligned && styles$g.modifiers.toggleRight, className), id: id }, props),
|
|
7805
7862
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
7806
7863
|
children,
|
|
7807
7864
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
@@ -7849,33 +7906,33 @@ const PopoverContext = React.createContext({});
|
|
|
7849
7906
|
|
|
7850
7907
|
const PopoverContent = (_a) => {
|
|
7851
7908
|
var { className = null, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
7852
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7909
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.popoverContent, className) }, props), children));
|
|
7853
7910
|
};
|
|
7854
7911
|
PopoverContent.displayName = 'PopoverContent';
|
|
7855
7912
|
|
|
7856
7913
|
const PopoverBody = (_a) => {
|
|
7857
7914
|
var { children, id, className } = _a, props = __rest(_a, ["children", "id", "className"]);
|
|
7858
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7915
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.popoverBody, className), id: id }, props), children));
|
|
7859
7916
|
};
|
|
7860
7917
|
PopoverBody.displayName = 'PopoverBody';
|
|
7861
7918
|
|
|
7862
7919
|
const PopoverHeaderIcon = (_a) => {
|
|
7863
7920
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7864
|
-
return (React.createElement("span", Object.assign({ className: css$
|
|
7921
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$f.popoverTitleIcon, className) }, props), children));
|
|
7865
7922
|
};
|
|
7866
7923
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
7867
7924
|
|
|
7868
7925
|
const PopoverHeaderText = (_a) => {
|
|
7869
7926
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7870
|
-
return (React.createElement("span", Object.assign({ className: css$
|
|
7927
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$f.popoverTitleText, className) }, props), children));
|
|
7871
7928
|
};
|
|
7872
7929
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
7873
7930
|
|
|
7874
7931
|
const PopoverHeader = (_a) => {
|
|
7875
7932
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
7876
7933
|
const HeadingLevel = titleHeadingLevel;
|
|
7877
|
-
return icon || alertSeverityVariant ? (React.createElement("header", Object.assign({ className: css$
|
|
7878
|
-
React.createElement(HeadingLevel, { className: css$
|
|
7934
|
+
return icon || alertSeverityVariant ? (React.createElement("header", Object.assign({ className: css$1('pf-c-popover__header', className), id: id }, props),
|
|
7935
|
+
React.createElement(HeadingLevel, { className: css$1(styles$f.popoverTitle, icon && styles$f.modifiers.icon) },
|
|
7879
7936
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
7880
7937
|
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
7881
7938
|
React.createElement(PopoverHeaderText, null, children)))) : (React.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -7884,7 +7941,7 @@ PopoverHeader.displayName = 'PopoverHeader';
|
|
|
7884
7941
|
|
|
7885
7942
|
const PopoverFooter = (_a) => {
|
|
7886
7943
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
7887
|
-
return (React.createElement("footer", Object.assign({ className: css$
|
|
7944
|
+
return (React.createElement("footer", Object.assign({ className: css$1(styles$f.popoverFooter, className) }, props), children));
|
|
7888
7945
|
};
|
|
7889
7946
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
7890
7947
|
|
|
@@ -7897,7 +7954,7 @@ PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
|
7897
7954
|
|
|
7898
7955
|
const PopoverArrow = (_a) => {
|
|
7899
7956
|
var { className = '' } = _a, props = __rest(_a, ["className"]);
|
|
7900
|
-
return React.createElement("div", Object.assign({ className: css$
|
|
7957
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$f.popoverArrow, className) }, props));
|
|
7901
7958
|
};
|
|
7902
7959
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
7903
7960
|
|
|
@@ -8097,7 +8154,7 @@ const Popover = (_a) => {
|
|
|
8097
8154
|
}
|
|
8098
8155
|
return node;
|
|
8099
8156
|
}
|
|
8100
|
-
}, preventScrollOnDeactivate: true, className: css$
|
|
8157
|
+
}, preventScrollOnDeactivate: true, className: css$1(styles$f.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$f.modifiers.noPadding, hasAutoWidth && styles$f.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: {
|
|
8101
8158
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
8102
8159
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
8103
8160
|
opacity,
|
|
@@ -8136,10 +8193,10 @@ var styles$e = {
|
|
|
8136
8193
|
|
|
8137
8194
|
const CodeBlock = (_a) => {
|
|
8138
8195
|
var { children = null, className, actions = null } = _a, props = __rest(_a, ["children", "className", "actions"]);
|
|
8139
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8140
|
-
React.createElement("div", { className: css$
|
|
8141
|
-
React.createElement("div", { className: css$
|
|
8142
|
-
React.createElement("div", { className: css$
|
|
8196
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.codeBlock, className) }, props),
|
|
8197
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockHeader) },
|
|
8198
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockActions) }, actions && actions)),
|
|
8199
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockContent) }, children)));
|
|
8143
8200
|
};
|
|
8144
8201
|
CodeBlock.displayName = 'CodeBlock';
|
|
8145
8202
|
|
|
@@ -8235,7 +8292,7 @@ const Drawer = (_a) => {
|
|
|
8235
8292
|
const drawerRef = React.useRef();
|
|
8236
8293
|
const drawerContentRef = React.useRef();
|
|
8237
8294
|
return (React.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
8238
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8295
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawer, isExpanded && styles$d.modifiers.expanded, isInline && styles$d.modifiers.inline, isStatic && styles$d.modifiers.static, position === 'left' && styles$d.modifiers.panelLeft, position === 'bottom' && styles$d.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
8239
8296
|
};
|
|
8240
8297
|
Drawer.displayName = 'Drawer';
|
|
8241
8298
|
|
|
@@ -8243,7 +8300,7 @@ const DrawerActions = (_a) => {
|
|
|
8243
8300
|
var {
|
|
8244
8301
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8245
8302
|
className = '', children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8246
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8303
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerActions, className) }, props), children));
|
|
8247
8304
|
};
|
|
8248
8305
|
DrawerActions.displayName = 'DrawerActions';
|
|
8249
8306
|
|
|
@@ -8251,7 +8308,7 @@ const DrawerCloseButton = (_a) => {
|
|
|
8251
8308
|
var {
|
|
8252
8309
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8253
8310
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest(_a, ["className", "onClose", 'aria-label']);
|
|
8254
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8311
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerClose, className) }, props),
|
|
8255
8312
|
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
8256
8313
|
React.createElement(TimesIcon, null))));
|
|
8257
8314
|
};
|
|
@@ -8261,7 +8318,7 @@ const DrawerMain = (_a) => {
|
|
|
8261
8318
|
var {
|
|
8262
8319
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8263
8320
|
className = '', children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8264
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8321
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerMain, className) }, props), children));
|
|
8265
8322
|
};
|
|
8266
8323
|
DrawerMain.displayName = 'DrawerMain';
|
|
8267
8324
|
|
|
@@ -8271,7 +8328,7 @@ const DrawerContent = (_a) => {
|
|
|
8271
8328
|
className = '', children, panelContent, colorVariant = DrawerColorVariant.default } = _a, props = __rest(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
8272
8329
|
const { drawerContentRef } = React.useContext(DrawerContext);
|
|
8273
8330
|
return (React.createElement(DrawerMain, null,
|
|
8274
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8331
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawerContent, colorVariant === DrawerColorVariant.light200 && styles$d.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
8275
8332
|
panelContent));
|
|
8276
8333
|
};
|
|
8277
8334
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -8280,7 +8337,7 @@ const DrawerContentBody = (_a) => {
|
|
|
8280
8337
|
var {
|
|
8281
8338
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8282
8339
|
className = '', children, hasPadding = false } = _a, props = __rest(_a, ["className", "children", "hasPadding"]);
|
|
8283
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8340
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasPadding && styles$d.modifiers.padding, className) }, props), children));
|
|
8284
8341
|
};
|
|
8285
8342
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
8286
8343
|
|
|
@@ -8288,7 +8345,7 @@ const DrawerPanelBody = (_a) => {
|
|
|
8288
8345
|
var {
|
|
8289
8346
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8290
8347
|
className = '', children, hasNoPadding = false } = _a, props = __rest(_a, ["className", "children", "hasNoPadding"]);
|
|
8291
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8348
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasNoPadding && styles$d.modifiers.noPadding, className) }, props), children));
|
|
8292
8349
|
};
|
|
8293
8350
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
8294
8351
|
|
|
@@ -8297,7 +8354,7 @@ const DrawerHead = (_a) => {
|
|
|
8297
8354
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8298
8355
|
className = '', children, hasNoPadding = false } = _a, props = __rest(_a, ["className", "children", "hasNoPadding"]);
|
|
8299
8356
|
return (React.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
8300
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8357
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawerHead, className) }, props), children)));
|
|
8301
8358
|
};
|
|
8302
8359
|
DrawerHead.displayName = 'DrawerHead';
|
|
8303
8360
|
|
|
@@ -8365,7 +8422,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8365
8422
|
e.preventDefault();
|
|
8366
8423
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
8367
8424
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
8368
|
-
drawerRef.current.classList.add(css$
|
|
8425
|
+
drawerRef.current.classList.add(css$1(styles$d.modifiers.resizing));
|
|
8369
8426
|
isResizing = true;
|
|
8370
8427
|
setInitialVals = true;
|
|
8371
8428
|
};
|
|
@@ -8413,7 +8470,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8413
8470
|
if (!isResizing) {
|
|
8414
8471
|
return;
|
|
8415
8472
|
}
|
|
8416
|
-
drawerRef.current.classList.remove(css$
|
|
8473
|
+
drawerRef.current.classList.remove(css$1(styles$d.modifiers.resizing));
|
|
8417
8474
|
isResizing = false;
|
|
8418
8475
|
onResize && onResize(currWidth, id);
|
|
8419
8476
|
setInitialVals = true;
|
|
@@ -8484,7 +8541,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8484
8541
|
if (maxSize) {
|
|
8485
8542
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
8486
8543
|
}
|
|
8487
|
-
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React.createElement("div", Object.assign({ id: id || panelId, className: css$
|
|
8544
|
+
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React.createElement("div", Object.assign({ id: id || panelId, className: css$1(styles$d.drawerPanel, isResizable && styles$d.modifiers.resizable, hasNoBorder && styles$d.modifiers.noBorder, formatBreakpointMods(widths, styles$d), colorVariant === DrawerColorVariant.light200 && styles$d.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
|
|
8488
8545
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
8489
8546
|
onExpand();
|
|
8490
8547
|
}
|
|
@@ -8493,9 +8550,9 @@ const DrawerPanelContent = (_a) => {
|
|
|
8493
8550
|
style: boundaryCssVars
|
|
8494
8551
|
}), props), isExpandedInternal && (React.createElement(React.Fragment, null,
|
|
8495
8552
|
isResizable && (React.createElement(React.Fragment, null,
|
|
8496
|
-
React.createElement("div", { className: css$
|
|
8497
|
-
React.createElement("div", { className: css$
|
|
8498
|
-
React.createElement("div", { className: css$
|
|
8553
|
+
React.createElement("div", { className: css$1(styles$d.drawerSplitter, position !== 'bottom' && styles$d.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 },
|
|
8554
|
+
React.createElement("div", { className: css$1(styles$d.drawerSplitterHandle), "aria-hidden": true })),
|
|
8555
|
+
React.createElement("div", { className: css$1(styles$d.drawerPanelMain) }, children))),
|
|
8499
8556
|
!isResizable && children))))));
|
|
8500
8557
|
};
|
|
8501
8558
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -8513,10 +8570,10 @@ const ArrowRightIcon$1 = createIcon(ArrowRightIconConfig);
|
|
|
8513
8570
|
|
|
8514
8571
|
const ActionGroup = (_a) => {
|
|
8515
8572
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
8516
|
-
const customClassName = css$
|
|
8517
|
-
const formActionsComponent = React.createElement("div", { className: css$
|
|
8573
|
+
const customClassName = css$1(formStyles.formGroup, formStyles.modifiers.action, className);
|
|
8574
|
+
const formActionsComponent = React.createElement("div", { className: css$1(formStyles.formActions) }, children);
|
|
8518
8575
|
return (React.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
8519
|
-
React.createElement("div", { className: css$
|
|
8576
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl) }, formActionsComponent)));
|
|
8520
8577
|
};
|
|
8521
8578
|
ActionGroup.displayName = 'ActionGroup';
|
|
8522
8579
|
|
|
@@ -8524,38 +8581,38 @@ const FormBase = (_a) => {
|
|
|
8524
8581
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '', innerRef } = _a, props = __rest(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
8525
8582
|
return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
8526
8583
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
8527
|
-
}), props, { className: css$
|
|
8584
|
+
}), props, { className: css$1(formStyles.form, isHorizontal && formStyles.modifiers.horizontal, (isWidthLimited || maxWidth) && formStyles.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
8528
8585
|
};
|
|
8529
8586
|
const Form = React.forwardRef((props, ref) => React.createElement(FormBase, Object.assign({ innerRef: ref }, props)));
|
|
8530
8587
|
Form.displayName = 'Form';
|
|
8531
8588
|
|
|
8532
8589
|
const FormGroup = (_a) => {
|
|
8533
8590
|
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(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId", "role"]);
|
|
8534
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React.createElement("div", { className: css$
|
|
8535
|
-
helperTextIcon && React.createElement("span", { className: css$
|
|
8591
|
+
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React.createElement("div", { className: css$1(formStyles.formHelperText, validated === ValidatedOptions.success && formStyles.modifiers.success, validated === ValidatedOptions.warning && formStyles.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
8592
|
+
helperTextIcon && React.createElement("span", { className: css$1(formStyles.formHelperTextIcon) }, helperTextIcon),
|
|
8536
8593
|
helperText));
|
|
8537
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React.createElement("div", { className: css$
|
|
8538
|
-
helperTextInvalidIcon && React.createElement("span", { className: css$
|
|
8594
|
+
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React.createElement("div", { className: css$1(formStyles.formHelperText, formStyles.modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
8595
|
+
helperTextInvalidIcon && React.createElement("span", { className: css$1(formStyles.formHelperTextIcon) }, helperTextInvalidIcon),
|
|
8539
8596
|
helperTextInvalid));
|
|
8540
8597
|
const showValidHelperTxt = (validationType) => validationType !== ValidatedOptions.error && helperText ? validHelperText : '';
|
|
8541
8598
|
const helperTextToDisplay = validated === ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
8542
8599
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
8543
8600
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
8544
8601
|
const labelContent = (React.createElement(React.Fragment, null,
|
|
8545
|
-
React.createElement(LabelComponent, Object.assign({ className: css$
|
|
8546
|
-
React.createElement("span", { className: css$
|
|
8547
|
-
isRequired && (React.createElement("span", { className: css$
|
|
8602
|
+
React.createElement(LabelComponent, Object.assign({ className: css$1(formStyles.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
8603
|
+
React.createElement("span", { className: css$1(formStyles.formLabelText) }, label),
|
|
8604
|
+
isRequired && (React.createElement("span", { className: css$1(formStyles.formLabelRequired), "aria-hidden": "true" },
|
|
8548
8605
|
' ',
|
|
8549
8606
|
ASTERISK))),
|
|
8550
8607
|
' ',
|
|
8551
8608
|
React.isValidElement(labelIcon) && labelIcon));
|
|
8552
|
-
return (React.createElement(GenerateId, null, randomId => (React.createElement("div", Object.assign({ className: css$
|
|
8553
|
-
label && (React.createElement("div", Object.assign({ className: css$
|
|
8609
|
+
return (React.createElement(GenerateId, null, randomId => (React.createElement("div", Object.assign({ className: css$1(formStyles.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
8610
|
+
label && (React.createElement("div", Object.assign({ className: css$1(formStyles.formGroupLabel, labelInfo && formStyles.modifiers.info, hasNoPaddingTop && formStyles.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
8554
8611
|
labelInfo && (React.createElement(React.Fragment, null,
|
|
8555
|
-
React.createElement("div", { className: css$
|
|
8556
|
-
React.createElement("div", { className: css$
|
|
8612
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelMain) }, labelContent),
|
|
8613
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelInfo) }, labelInfo))),
|
|
8557
8614
|
!labelInfo && labelContent)),
|
|
8558
|
-
React.createElement("div", { className: css$
|
|
8615
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl, isInline && formStyles.modifiers.inline, isStack && formStyles.modifiers.stack) },
|
|
8559
8616
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
8560
8617
|
children,
|
|
8561
8618
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -8577,20 +8634,20 @@ var styles$c = {
|
|
|
8577
8634
|
|
|
8578
8635
|
const PanelBase = (_a) => {
|
|
8579
8636
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
8580
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8637
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panel, variant === 'raised' && styles$c.modifiers.raised, variant === 'bordered' && styles$c.modifiers.bordered, isScrollable && styles$c.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
8581
8638
|
};
|
|
8582
8639
|
const Panel = React.forwardRef((props, ref) => (React.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
8583
8640
|
Panel.displayName = 'Panel';
|
|
8584
8641
|
|
|
8585
8642
|
const PanelMain = (_a) => {
|
|
8586
8643
|
var { className, children, maxHeight } = _a, props = __rest(_a, ["className", "children", "maxHeight"]);
|
|
8587
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8644
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
8588
8645
|
};
|
|
8589
8646
|
PanelMain.displayName = 'PanelMain';
|
|
8590
8647
|
|
|
8591
8648
|
const PanelMainBody = (_a) => {
|
|
8592
8649
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8593
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8650
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panelMainBody, className) }, props), children));
|
|
8594
8651
|
};
|
|
8595
8652
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
8596
8653
|
|
|
@@ -8690,7 +8747,7 @@ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '',
|
|
|
8690
8747
|
React.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (value, evt) => handleValueChange('haswords', value, evt) })))));
|
|
8691
8748
|
return formGroups;
|
|
8692
8749
|
};
|
|
8693
|
-
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$
|
|
8750
|
+
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$1(className) },
|
|
8694
8751
|
React.createElement(PanelMain, null,
|
|
8695
8752
|
React.createElement(PanelMainBody, null,
|
|
8696
8753
|
React.createElement(Form, null,
|
|
@@ -8728,7 +8785,7 @@ const TextInputGroup = (_a) => {
|
|
|
8728
8785
|
const ref = React.useRef(null);
|
|
8729
8786
|
const textInputGroupRef = innerRef || ref;
|
|
8730
8787
|
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
8731
|
-
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$
|
|
8788
|
+
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$1(styles$b.textInputGroup, isDisabled && styles$b.modifiers.disabled, isPlain && styles$b.modifiers.plain, className) }, props), children)));
|
|
8732
8789
|
};
|
|
8733
8790
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
8734
8791
|
|
|
@@ -8740,18 +8797,18 @@ const TextInputGroupMain = (_a) => {
|
|
|
8740
8797
|
const handleChange = (event) => {
|
|
8741
8798
|
onChange(event.currentTarget.value, event);
|
|
8742
8799
|
};
|
|
8743
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8800
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.textInputGroupMain, icon && styles$b.modifiers.icon, className) }, props),
|
|
8744
8801
|
children,
|
|
8745
|
-
React.createElement("span", { className: css$
|
|
8746
|
-
hint && (React.createElement("input", { className: css$
|
|
8747
|
-
icon && React.createElement("span", { className: css$
|
|
8748
|
-
React.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css$
|
|
8802
|
+
React.createElement("span", { className: css$1(styles$b.textInputGroupText) },
|
|
8803
|
+
hint && (React.createElement("input", { className: css$1(styles$b.textInputGroupTextInput, styles$b.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
8804
|
+
icon && React.createElement("span", { className: css$1(styles$b.textInputGroupIcon) }, icon),
|
|
8805
|
+
React.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css$1(styles$b.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
|
|
8749
8806
|
};
|
|
8750
8807
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
8751
8808
|
|
|
8752
8809
|
const TextInputGroupUtilities = (_a) => {
|
|
8753
8810
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
8754
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8811
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.textInputGroupUtilities, className) }, props), children));
|
|
8755
8812
|
};
|
|
8756
8813
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
8757
8814
|
|
|
@@ -8905,7 +8962,7 @@ const SearchInputBase = (_a) => {
|
|
|
8905
8962
|
React.createElement(ArrowRightIcon$1, null))),
|
|
8906
8963
|
expandableInput && expandableToggle));
|
|
8907
8964
|
};
|
|
8908
|
-
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$
|
|
8965
|
+
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$1(className), innerRef: searchInputRef });
|
|
8909
8966
|
if (!!expandableInput && !isExpanded) {
|
|
8910
8967
|
return React.createElement(InputGroup, Object.assign({}, searchInputProps), expandableToggle);
|
|
8911
8968
|
}
|
|
@@ -8913,9 +8970,9 @@ const SearchInputBase = (_a) => {
|
|
|
8913
8970
|
if (attributes.length > 0) {
|
|
8914
8971
|
const AdvancedSearch = (React.createElement("div", null,
|
|
8915
8972
|
React.createElement(AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen })));
|
|
8916
|
-
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$
|
|
8973
|
+
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8917
8974
|
React.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), popper: AdvancedSearch, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current, removeFindDomNode: removeFindDomNode, zIndex: zIndex })));
|
|
8918
|
-
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$
|
|
8975
|
+
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8919
8976
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
8920
8977
|
AdvancedSearch));
|
|
8921
8978
|
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
@@ -8958,20 +9015,20 @@ var EmptyStateVariant;
|
|
|
8958
9015
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
8959
9016
|
const EmptyState = (_a) => {
|
|
8960
9017
|
var { children, className = '', variant = EmptyStateVariant.full, isFullHeight } = _a, props = __rest(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
8961
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8962
|
-
React.createElement("div", { className: css$
|
|
9018
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyState, variant === 'xs' && styles$a.modifiers.xs, variant === 'small' && styles$a.modifiers.sm, variant === 'large' && styles$a.modifiers.lg, variant === 'xl' && styles$a.modifiers.xl, isFullHeight && styles$a.modifiers.fullHeight, className) }, props),
|
|
9019
|
+
React.createElement("div", { className: css$1(styles$a.emptyStateContent) }, children)));
|
|
8963
9020
|
};
|
|
8964
9021
|
EmptyState.displayName = 'EmptyState';
|
|
8965
9022
|
|
|
8966
9023
|
const EmptyStateBody = (_a) => {
|
|
8967
9024
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
8968
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9025
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyStateBody, className) }, props), children));
|
|
8969
9026
|
};
|
|
8970
9027
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
8971
9028
|
|
|
8972
9029
|
const EmptyStateIcon = (_a) => {
|
|
8973
9030
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest(_a, ["className", "icon", "component", "variant"]);
|
|
8974
|
-
const classNames = css$
|
|
9031
|
+
const classNames = css$1(styles$a.emptyStateIcon, className);
|
|
8975
9032
|
return variant === 'icon' ? (React.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React.createElement("div", { className: classNames },
|
|
8976
9033
|
React.createElement(AnyComponent, null)));
|
|
8977
9034
|
};
|
|
@@ -8979,7 +9036,7 @@ EmptyStateIcon.displayName = 'EmptyStateIcon';
|
|
|
8979
9036
|
|
|
8980
9037
|
const EmptyStatePrimary = (_a) => {
|
|
8981
9038
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
8982
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9039
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyStatePrimary, className) }, props), children));
|
|
8983
9040
|
};
|
|
8984
9041
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
8985
9042
|
|
|
@@ -9065,13 +9122,13 @@ class ExpandableSection extends React.Component {
|
|
|
9065
9122
|
};
|
|
9066
9123
|
}
|
|
9067
9124
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
9068
|
-
const expandableToggle = !isDetached && (React.createElement("button", { className: css$
|
|
9069
|
-
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$
|
|
9125
|
+
const expandableToggle = !isDetached && (React.createElement("button", { className: css$1(styles$9.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
9126
|
+
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$1(styles$9.expandableSectionToggleIcon) },
|
|
9070
9127
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
9071
|
-
React.createElement("span", { className: css$
|
|
9072
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9128
|
+
React.createElement("span", { className: css$1(styles$9.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
9129
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.expandableSection, propOrStateIsExpanded && styles$9.modifiers.expanded, isActive && styles$9.modifiers.active, isDetached && styles$9.modifiers.detached, displaySize === 'large' && styles$9.modifiers.displayLg, isWidthLimited && styles$9.modifiers.limitWidth, isIndented && styles$9.modifiers.indented, variant === ExpandableSectionVariant.truncate && styles$9.modifiers.truncate, className) }, props),
|
|
9073
9130
|
variant === ExpandableSectionVariant.default && expandableToggle,
|
|
9074
|
-
React.createElement("div", { ref: this.expandableContentRef, className: css$
|
|
9131
|
+
React.createElement("div", { ref: this.expandableContentRef, className: css$1(styles$9.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
9075
9132
|
variant === ExpandableSectionVariant.truncate && expandableToggle));
|
|
9076
9133
|
}
|
|
9077
9134
|
}
|
|
@@ -9454,8 +9511,8 @@ const Label = (_a) => {
|
|
|
9454
9511
|
}
|
|
9455
9512
|
}, [isEditableActive]);
|
|
9456
9513
|
const content = (React.createElement(React.Fragment, null,
|
|
9457
|
-
icon && React.createElement("span", { className: css$
|
|
9458
|
-
isTruncated && (React.createElement("span", { ref: textRef, className: css$
|
|
9514
|
+
icon && React.createElement("span", { className: css$1(labelStyles.labelIcon) }, icon),
|
|
9515
|
+
isTruncated && (React.createElement("span", { ref: textRef, className: css$1(labelStyles.labelText) }, children)),
|
|
9459
9516
|
!isTruncated && children));
|
|
9460
9517
|
React.useEffect(() => {
|
|
9461
9518
|
if (isEditableActive && editableInputRef) {
|
|
@@ -9465,12 +9522,12 @@ const Label = (_a) => {
|
|
|
9465
9522
|
const updateVal = () => {
|
|
9466
9523
|
setCurrValue(editableInputRef.current.value);
|
|
9467
9524
|
};
|
|
9468
|
-
let labelComponentChild = React.createElement("span", { className: css$
|
|
9525
|
+
let labelComponentChild = React.createElement("span", { className: css$1(labelStyles.labelContent) }, content);
|
|
9469
9526
|
if (href) {
|
|
9470
|
-
labelComponentChild = (React.createElement("a", { className: css$
|
|
9527
|
+
labelComponentChild = (React.createElement("a", { className: css$1(labelStyles.labelContent), href: href }, content));
|
|
9471
9528
|
}
|
|
9472
9529
|
else if (isEditable) {
|
|
9473
|
-
labelComponentChild = (React.createElement("button", Object.assign({ ref: editableButtonRef, className: css$
|
|
9530
|
+
labelComponentChild = (React.createElement("button", Object.assign({ ref: editableButtonRef, className: css$1(labelStyles.labelContent), onClick: (e) => {
|
|
9474
9531
|
setIsEditableActive(true);
|
|
9475
9532
|
e.stopPropagation();
|
|
9476
9533
|
} }, editableProps), content));
|
|
@@ -9487,10 +9544,10 @@ const Label = (_a) => {
|
|
|
9487
9544
|
else if (isTooltipVisible) {
|
|
9488
9545
|
labelComponentChild = (React.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
9489
9546
|
}
|
|
9490
|
-
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css$
|
|
9547
|
+
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css$1(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$8.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
9491
9548
|
!isEditableActive && labelComponentChild,
|
|
9492
9549
|
!isEditableActive && onClose && button,
|
|
9493
|
-
isEditableActive && (React.createElement("input", Object.assign({ className: css$
|
|
9550
|
+
isEditableActive && (React.createElement("input", Object.assign({ className: css$1(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
9494
9551
|
};
|
|
9495
9552
|
Label.displayName = 'Label';
|
|
9496
9553
|
|
|
@@ -9525,14 +9582,14 @@ var ListComponent;
|
|
|
9525
9582
|
})(ListComponent || (ListComponent = {}));
|
|
9526
9583
|
const List = (_a) => {
|
|
9527
9584
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = OrderType.number, ref = null, component = ListComponent.ul } = _a, props = __rest(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
9528
|
-
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css$
|
|
9585
|
+
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css$1(styles$7.list, variant && styles$7.modifiers[variant], isBordered && styles$7.modifiers.bordered, isPlain && styles$7.modifiers.plain, iconSize && iconSize === 'large' && styles$7.modifiers.iconLg, className) }), children)) : (React.createElement("ul", Object.assign({ ref: ref }, props, { className: css$1(styles$7.list, variant && styles$7.modifiers[variant], isBordered && styles$7.modifiers.bordered, isPlain && styles$7.modifiers.plain, iconSize && iconSize === 'large' && styles$7.modifiers.iconLg, className) }), children));
|
|
9529
9586
|
};
|
|
9530
9587
|
List.displayName = 'List';
|
|
9531
9588
|
|
|
9532
9589
|
const ListItem = (_a) => {
|
|
9533
9590
|
var { icon = null, children = null } = _a, props = __rest(_a, ["icon", "children"]);
|
|
9534
|
-
return (React.createElement("li", Object.assign({ className: css$
|
|
9535
|
-
icon && React.createElement("span", { className: css$
|
|
9591
|
+
return (React.createElement("li", Object.assign({ className: css$1(icon && styles$7.listItem) }, props),
|
|
9592
|
+
icon && React.createElement("span", { className: css$1(styles$7.listItemIcon) }, icon),
|
|
9536
9593
|
children));
|
|
9537
9594
|
};
|
|
9538
9595
|
ListItem.displayName = 'ListItem';
|
|
@@ -9579,7 +9636,7 @@ var modalStyles = {
|
|
|
9579
9636
|
|
|
9580
9637
|
const ModalBoxBody = (_a) => {
|
|
9581
9638
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9582
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
9639
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(modalStyles.modalBoxBody, className) }), children));
|
|
9583
9640
|
};
|
|
9584
9641
|
ModalBoxBody.displayName = 'ModalBoxBody';
|
|
9585
9642
|
|
|
@@ -9602,27 +9659,27 @@ const ModalBox = (_a) => {
|
|
|
9602
9659
|
style = style || {};
|
|
9603
9660
|
style[c_modal_box_m_align_top_spacer.name] = positionOffset;
|
|
9604
9661
|
}
|
|
9605
|
-
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css$
|
|
9662
|
+
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css$1(modalStyles.modalBox, className, position === 'top' && modalStyles.modifiers.alignTop, variant === 'large' && modalStyles.modifiers.lg, variant === 'small' && modalStyles.modifiers.sm, variant === 'medium' && modalStyles.modifiers.md), style: style }), children));
|
|
9606
9663
|
};
|
|
9607
9664
|
ModalBox.displayName = 'ModalBox';
|
|
9608
9665
|
|
|
9609
9666
|
const ModalBoxFooter = (_a) => {
|
|
9610
9667
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9611
|
-
return (React.createElement("footer", Object.assign({}, props, { className: css$
|
|
9668
|
+
return (React.createElement("footer", Object.assign({}, props, { className: css$1(modalStyles.modalBoxFooter, className) }), children));
|
|
9612
9669
|
};
|
|
9613
9670
|
ModalBoxFooter.displayName = 'ModalBoxFooter';
|
|
9614
9671
|
|
|
9615
9672
|
const ModalBoxDescription = (_a) => {
|
|
9616
9673
|
var { children = null, className = '', id = '' } = _a, props = __rest(_a, ["children", "className", "id"]);
|
|
9617
|
-
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$
|
|
9674
|
+
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$1(modalStyles.modalBoxDescription, className) }), children));
|
|
9618
9675
|
};
|
|
9619
9676
|
ModalBoxDescription.displayName = 'ModalBoxDescription';
|
|
9620
9677
|
|
|
9621
9678
|
const ModalBoxHeader = (_a) => {
|
|
9622
9679
|
var { children = null, className = '', help = null } = _a, props = __rest(_a, ["children", "className", "help"]);
|
|
9623
|
-
return (React.createElement("header", Object.assign({ className: css$
|
|
9680
|
+
return (React.createElement("header", Object.assign({ className: css$1(modalStyles.modalBoxHeader, help && modalStyles.modifiers.help, className) }, props),
|
|
9624
9681
|
help && (React.createElement(React.Fragment, null,
|
|
9625
|
-
React.createElement("div", { className: css$
|
|
9682
|
+
React.createElement("div", { className: css$1(modalStyles.modalBoxHeaderMain) }, children),
|
|
9626
9683
|
React.createElement("div", { className: "pf-c-modal-box__header-help" }, help))),
|
|
9627
9684
|
!help && children));
|
|
9628
9685
|
};
|
|
@@ -9645,10 +9702,10 @@ const ModalBoxTitle = (_a) => {
|
|
|
9645
9702
|
useIsomorphicLayoutEffect(() => {
|
|
9646
9703
|
setHasTooltip(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
|
|
9647
9704
|
}, []);
|
|
9648
|
-
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$
|
|
9649
|
-
titleIconVariant && (React.createElement("span", { className: css$
|
|
9650
|
-
label && React.createElement("span", { className: css$
|
|
9651
|
-
React.createElement("span", { className: css$
|
|
9705
|
+
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$1(modalStyles.modalBoxTitle, titleIconVariant && modalStyles.modifiers.icon, className) }, props),
|
|
9706
|
+
titleIconVariant && (React.createElement("span", { className: css$1(modalStyles.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
9707
|
+
label && React.createElement("span", { className: css$1(a11yStyles.screenReader) }, label),
|
|
9708
|
+
React.createElement("span", { className: css$1(modalStyles.modalBoxTitleText) }, title)));
|
|
9652
9709
|
return hasTooltip ? React.createElement(Tooltip, { content: title }, content) : content;
|
|
9653
9710
|
};
|
|
9654
9711
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
@@ -9681,14 +9738,14 @@ const ModalContent = (_a) => {
|
|
|
9681
9738
|
}
|
|
9682
9739
|
return idRefList.join(' ');
|
|
9683
9740
|
};
|
|
9684
|
-
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css$
|
|
9741
|
+
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css$1(className, isVariantIcon(titleIconVariant) &&
|
|
9685
9742
|
modalStyles.modifiers[titleIconVariant]), variant: variant, position: position, positionOffset: positionOffset, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledbyFormatted(), "aria-describedby": ariaDescribedby || (hasNoBodyWrapper ? null : descriptorId) }, getOUIAProps(ModalContent.displayName, ouiaId, ouiaSafe)),
|
|
9686
9743
|
showClose && React.createElement(ModalBoxCloseButton, { onClose: onClose, ouiaId: ouiaId }),
|
|
9687
9744
|
modalBoxHeader,
|
|
9688
9745
|
modalBody,
|
|
9689
9746
|
modalBoxFooter));
|
|
9690
9747
|
return (React.createElement(Backdrop, null,
|
|
9691
|
-
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css$
|
|
9748
|
+
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css$1(styles$u.bullseye) }, modalBox)));
|
|
9692
9749
|
};
|
|
9693
9750
|
ModalContent.displayName = 'ModalContent';
|
|
9694
9751
|
|
|
@@ -9748,10 +9805,10 @@ class Modal$1 extends React.Component {
|
|
|
9748
9805
|
target.appendChild(container);
|
|
9749
9806
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
9750
9807
|
if (this.props.isOpen) {
|
|
9751
|
-
target.classList.add(css$
|
|
9808
|
+
target.classList.add(css$1(styles$v.backdropOpen));
|
|
9752
9809
|
}
|
|
9753
9810
|
else {
|
|
9754
|
-
target.classList.remove(css$
|
|
9811
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9755
9812
|
}
|
|
9756
9813
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
9757
9814
|
// eslint-disable-next-line no-console
|
|
@@ -9766,11 +9823,11 @@ class Modal$1 extends React.Component {
|
|
|
9766
9823
|
const { appendTo } = this.props;
|
|
9767
9824
|
const target = this.getElement(appendTo);
|
|
9768
9825
|
if (this.props.isOpen) {
|
|
9769
|
-
target.classList.add(css$
|
|
9826
|
+
target.classList.add(css$1(styles$v.backdropOpen));
|
|
9770
9827
|
this.toggleSiblingsFromScreenReaders(true);
|
|
9771
9828
|
}
|
|
9772
9829
|
else {
|
|
9773
|
-
target.classList.remove(css$
|
|
9830
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9774
9831
|
this.toggleSiblingsFromScreenReaders(false);
|
|
9775
9832
|
}
|
|
9776
9833
|
}
|
|
@@ -9781,7 +9838,7 @@ class Modal$1 extends React.Component {
|
|
|
9781
9838
|
target.removeChild(this.state.container);
|
|
9782
9839
|
}
|
|
9783
9840
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
9784
|
-
target.classList.remove(css$
|
|
9841
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9785
9842
|
}
|
|
9786
9843
|
render() {
|
|
9787
9844
|
const _a = this.props, {
|
|
@@ -9835,7 +9892,7 @@ const Text = (_a) => {
|
|
|
9835
9892
|
var { children = null, className = '', component = TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
9836
9893
|
const Component = component;
|
|
9837
9894
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
9838
|
-
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css$
|
|
9895
|
+
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css$1(isVisitedLink && component === TextVariants.a && styles$t.modifiers.visited, className) }), children));
|
|
9839
9896
|
};
|
|
9840
9897
|
Text.displayName = 'Text';
|
|
9841
9898
|
|
|
@@ -9848,7 +9905,7 @@ var TextListVariants;
|
|
|
9848
9905
|
const TextList = (_a) => {
|
|
9849
9906
|
var { children = null, className = '', component = TextListVariants.ul } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
9850
9907
|
const Component = component;
|
|
9851
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
9908
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(className) }), children));
|
|
9852
9909
|
};
|
|
9853
9910
|
TextList.displayName = 'TextList';
|
|
9854
9911
|
|
|
@@ -9861,7 +9918,7 @@ var TextListItemVariants;
|
|
|
9861
9918
|
const TextListItem = (_a) => {
|
|
9862
9919
|
var { children = null, className = '', component = TextListItemVariants.li } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
9863
9920
|
const Component = component;
|
|
9864
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
9921
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(className) }), children));
|
|
9865
9922
|
};
|
|
9866
9923
|
TextListItem.displayName = 'TextListItem';
|
|
9867
9924
|
|
|
@@ -9941,7 +9998,7 @@ const OptionsMenuItem = (_a) => {
|
|
|
9941
9998
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
9942
9999
|
return (React.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
9943
10000
|
children,
|
|
9944
|
-
isSelected && (React.createElement("span", { className: css$
|
|
10001
|
+
isSelected && (React.createElement("span", { className: css$1(styles$6.optionsMenuMenuItemIcon) },
|
|
9945
10002
|
React.createElement(CheckIcon, { "aria-hidden": isSelected })))));
|
|
9946
10003
|
};
|
|
9947
10004
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -9980,16 +10037,16 @@ class Radio extends React.Component {
|
|
|
9980
10037
|
// eslint-disable-next-line no-console
|
|
9981
10038
|
console.error('Radio:', 'id is required to make input accessible');
|
|
9982
10039
|
}
|
|
9983
|
-
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$
|
|
10040
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$1(styles$5.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))));
|
|
9984
10041
|
let labelRendered = null;
|
|
9985
10042
|
if (label && isLabelWrapped) {
|
|
9986
|
-
labelRendered = React.createElement("span", { className: css$
|
|
10043
|
+
labelRendered = React.createElement("span", { className: css$1(styles$5.radioLabel, isDisabled && styles$5.modifiers.disabled) }, label);
|
|
9987
10044
|
}
|
|
9988
10045
|
else if (label) {
|
|
9989
|
-
labelRendered = (React.createElement("label", { className: css$
|
|
10046
|
+
labelRendered = (React.createElement("label", { className: css$1(styles$5.radioLabel, isDisabled && styles$5.modifiers.disabled), htmlFor: props.id }, label));
|
|
9990
10047
|
}
|
|
9991
|
-
const descRender = description ? React.createElement("span", { className: css$
|
|
9992
|
-
const bodyRender = body ? React.createElement("span", { className: css$
|
|
10048
|
+
const descRender = description ? React.createElement("span", { className: css$1(styles$5.radioDescription) }, description) : null;
|
|
10049
|
+
const bodyRender = body ? React.createElement("span", { className: css$1(styles$5.radioBody) }, body) : null;
|
|
9993
10050
|
const childrenRendered = isLabelBeforeButton ? (React.createElement(React.Fragment, null,
|
|
9994
10051
|
labelRendered,
|
|
9995
10052
|
inputRendered,
|
|
@@ -9999,7 +10056,7 @@ class Radio extends React.Component {
|
|
|
9999
10056
|
labelRendered,
|
|
10000
10057
|
descRender,
|
|
10001
10058
|
bodyRender));
|
|
10002
|
-
return isLabelWrapped ? (React.createElement("label", { className: css$
|
|
10059
|
+
return isLabelWrapped ? (React.createElement("label", { className: css$1(styles$5.radio, className), htmlFor: props.id }, childrenRendered)) : (React.createElement("div", { className: css$1(styles$5.radio, !label && styles$5.modifiers.standalone, className) }, childrenRendered));
|
|
10003
10060
|
}
|
|
10004
10061
|
}
|
|
10005
10062
|
Radio.displayName = 'Radio';
|
|
@@ -10206,7 +10263,7 @@ var ToolbarItemVariant;
|
|
|
10206
10263
|
const ToolbarItem = (_a) => {
|
|
10207
10264
|
var { className, variant, visibility, visiblity, alignment, spacer, widths, id, children, isAllExpanded } = _a, props = __rest(_a, ["className", "variant", "visibility", "visiblity", "alignment", "spacer", "widths", "id", "children", "isAllExpanded"]);
|
|
10208
10265
|
if (variant === ToolbarItemVariant.separator) {
|
|
10209
|
-
return React.createElement(Divider, Object.assign({ className: css$
|
|
10266
|
+
return React.createElement(Divider, Object.assign({ className: css$1(styles$4.modifiers.vertical, className) }, props));
|
|
10210
10267
|
}
|
|
10211
10268
|
if (visiblity !== undefined) {
|
|
10212
10269
|
// eslint-disable-next-line no-console
|
|
@@ -10217,7 +10274,7 @@ const ToolbarItem = (_a) => {
|
|
|
10217
10274
|
if (widths) {
|
|
10218
10275
|
Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
10219
10276
|
}
|
|
10220
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10277
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarItem, variant &&
|
|
10221
10278
|
styles$4.modifiers[toCamel(variant)], isAllExpanded && styles$4.modifiers.expanded, formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children))));
|
|
10222
10279
|
};
|
|
10223
10280
|
ToolbarItem.displayName = 'ToolbarItem';
|
|
@@ -10236,7 +10293,7 @@ class ToolbarGroupWithRef extends React.Component {
|
|
|
10236
10293
|
console.warn('The ToolbarGroup visiblity prop has been deprecated. ' +
|
|
10237
10294
|
'Please use the correctly spelled visibility prop instead.');
|
|
10238
10295
|
}
|
|
10239
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10296
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarGroup, variant && styles$4.modifiers[toCamel(variant)], formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$4, '', getBreakpoint(width)), className) }, props, { ref: innerRef }), children))));
|
|
10240
10297
|
}
|
|
10241
10298
|
}
|
|
10242
10299
|
const ToolbarGroup = React.forwardRef((props, ref) => (React.createElement(ToolbarGroupWithRef, Object.assign({}, props, { innerRef: ref }))));
|
|
@@ -10255,8 +10312,8 @@ class ToolbarChipGroupContent extends React.Component {
|
|
|
10255
10312
|
collapseListedFilters =
|
|
10256
10313
|
(canUseDOM ? window.innerWidth : 1200) < globalBreakpoints[collapseListedFiltersBreakpoint];
|
|
10257
10314
|
}
|
|
10258
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
10259
|
-
React.createElement(ToolbarGroup, Object.assign({ className: css$
|
|
10315
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$4.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),
|
|
10316
|
+
React.createElement(ToolbarGroup, Object.assign({ className: css$1(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
10260
10317
|
collapseListedFilters && numberOfFilters > 0 && !isExpanded && (React.createElement(ToolbarGroup, null,
|
|
10261
10318
|
React.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)))),
|
|
10262
10319
|
showClearFiltersButton && !isExpanded && !customChipGroupContent && (React.createElement(ToolbarItem, null,
|
|
@@ -10312,7 +10369,7 @@ class Toolbar extends React.Component {
|
|
|
10312
10369
|
const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
|
|
10313
10370
|
const numberOfFilters = this.getNumberOfFilters();
|
|
10314
10371
|
const showClearFiltersButton = numberOfFilters > 0;
|
|
10315
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10372
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbar, isFullHeight && styles$4.modifiers.fullHeight, isStatic && styles$4.modifiers.static, usePageInsets && styles$4.modifiers.pageInsets, isSticky && styles$4.modifiers.sticky, formatBreakpointMods(inset, styles$4, '', getBreakpoint(width)), className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),
|
|
10316
10373
|
React.createElement(ToolbarContext.Provider, { value: {
|
|
10317
10374
|
isExpanded,
|
|
10318
10375
|
toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
|
|
@@ -10354,7 +10411,7 @@ class ToolbarExpandableContent extends React.Component {
|
|
|
10354
10411
|
const clearChipGroups = () => {
|
|
10355
10412
|
clearAllFilters();
|
|
10356
10413
|
};
|
|
10357
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
10414
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarExpandableContent, className), ref: expandableContentRef }, props),
|
|
10358
10415
|
React.createElement(ToolbarGroup, null),
|
|
10359
10416
|
numberOfFilters > 0 && (React.createElement(ToolbarGroup, { className: styles$4.modifiers.chipContainer },
|
|
10360
10417
|
React.createElement(ToolbarGroup, { ref: chipContainerRef }),
|
|
@@ -10383,7 +10440,7 @@ class ToolbarContent extends React.Component {
|
|
|
10383
10440
|
console.warn('The ToolbarContent visiblity prop has been deprecated. ' +
|
|
10384
10441
|
'Please use the correctly spelled visibility prop instead.');
|
|
10385
10442
|
}
|
|
10386
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10443
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), className) }, props),
|
|
10387
10444
|
React.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, toolbarId: toolbarIdContext }) => {
|
|
10388
10445
|
const expandableContentId = `${toolbarId ||
|
|
10389
10446
|
toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
|
|
@@ -10392,7 +10449,7 @@ class ToolbarContent extends React.Component {
|
|
|
10392
10449
|
expandableContentId,
|
|
10393
10450
|
chipContainerRef: this.chipContainerRef
|
|
10394
10451
|
} },
|
|
10395
|
-
React.createElement("div", { className: css$
|
|
10452
|
+
React.createElement("div", { className: css$1(styles$4.toolbarContentSection) }, children),
|
|
10396
10453
|
React.createElement(ToolbarExpandableContent, { id: expandableContentId, isExpanded: isExpanded, expandableContentRef: this.expandableContentRef, chipContainerRef: this.chipContainerRef, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext })));
|
|
10397
10454
|
})))));
|
|
10398
10455
|
}
|
|
@@ -10464,11 +10521,11 @@ const WizardNavItem = (_a) => {
|
|
|
10464
10521
|
tabIndex: isDisabled ? -1 : undefined,
|
|
10465
10522
|
href
|
|
10466
10523
|
};
|
|
10467
|
-
return (React.createElement("li", { className: css$
|
|
10468
|
-
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css$
|
|
10469
|
-
React.createElement("span", { className: css$
|
|
10470
|
-
React.createElement("span", { className: css$
|
|
10471
|
-
React.createElement("span", { className: css$
|
|
10524
|
+
return (React.createElement("li", { className: css$1(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded) },
|
|
10525
|
+
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css$1(styles$3.wizardNavLink, isCurrent && styles$3.modifiers.current, isDisabled && styles$3.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded }), ouiaProps), isExpandable ? (React.createElement(React.Fragment, null,
|
|
10526
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkText) }, content),
|
|
10527
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggle) },
|
|
10528
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggleIcon) },
|
|
10472
10529
|
React.createElement(AngleRightIcon, null))))) : (content)),
|
|
10473
10530
|
children));
|
|
10474
10531
|
};
|
|
@@ -10849,14 +10906,14 @@ const l_flex_item_Order = {
|
|
|
10849
10906
|
const Flex = (_a) => {
|
|
10850
10907
|
var { children = null, className = '', component = 'div', spacer, spaceItems, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "spaceItems", "grow", "shrink", "flex", "direction", "alignItems", "alignContent", "alignSelf", "align", "justifyContent", "display", "fullWidth", "flexWrap", "order", "style"]);
|
|
10851
10908
|
const Component = component;
|
|
10852
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
10909
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$2.flex, formatBreakpointMods(spacer, styles$2), formatBreakpointMods(spaceItems, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(direction, styles$2), formatBreakpointMods(alignItems, styles$2), formatBreakpointMods(alignContent, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(justifyContent, styles$2), formatBreakpointMods(display, styles$2), formatBreakpointMods(fullWidth, styles$2), formatBreakpointMods(flexWrap, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));
|
|
10853
10910
|
};
|
|
10854
10911
|
Flex.displayName = 'Flex';
|
|
10855
10912
|
|
|
10856
10913
|
const FlexItem = (_a) => {
|
|
10857
10914
|
var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "grow", "shrink", "flex", "alignSelf", "align", "fullWidth", "order", "style"]);
|
|
10858
10915
|
const Component = component;
|
|
10859
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
10916
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(formatBreakpointMods(spacer, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(fullWidth, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }), children));
|
|
10860
10917
|
};
|
|
10861
10918
|
FlexItem.displayName = 'FlexItem';
|
|
10862
10919
|
|
|
@@ -10879,7 +10936,7 @@ const Gallery = (_a) => {
|
|
|
10879
10936
|
Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`--pf-l-gallery--GridTemplateColumns--max${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
10880
10937
|
}
|
|
10881
10938
|
const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
|
|
10882
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
10939
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$1.gallery, hasGutter && styles$1.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));
|
|
10883
10940
|
};
|
|
10884
10941
|
Gallery.displayName = 'Gallery';
|
|
10885
10942
|
|
|
@@ -10902,13 +10959,13 @@ var styles = {
|
|
|
10902
10959
|
const Stack = (_a) => {
|
|
10903
10960
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, ["hasGutter", "className", "children", "component"]);
|
|
10904
10961
|
const Component = component;
|
|
10905
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
10962
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
10906
10963
|
};
|
|
10907
10964
|
Stack.displayName = 'Stack';
|
|
10908
10965
|
|
|
10909
10966
|
const StackItem = (_a) => {
|
|
10910
10967
|
var { isFilled = false, className = '', children = null } = _a, props = __rest(_a, ["isFilled", "className", "children"]);
|
|
10911
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
10968
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
10912
10969
|
};
|
|
10913
10970
|
StackItem.displayName = 'StackItem';
|
|
10914
10971
|
|
|
@@ -10996,7 +11053,7 @@ var SearchIcon = /*@__PURE__*/getDefaultExportFromCjs(searchIcon);
|
|
|
10996
11053
|
*
|
|
10997
11054
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
10998
11055
|
*/
|
|
10999
|
-
function css
|
|
11056
|
+
function css(...args) {
|
|
11000
11057
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
11001
11058
|
const classes = [];
|
|
11002
11059
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -11006,7 +11063,7 @@ function css$1(...args) {
|
|
|
11006
11063
|
classes.push(arg);
|
|
11007
11064
|
}
|
|
11008
11065
|
else if (Array.isArray(arg) && arg.length) {
|
|
11009
|
-
const inner = css
|
|
11066
|
+
const inner = css(...arg);
|
|
11010
11067
|
if (inner) {
|
|
11011
11068
|
classes.push(inner);
|
|
11012
11069
|
}
|
|
@@ -11812,13 +11869,13 @@ const QuickStartContextProvider = ({ children, value }) => {
|
|
|
11812
11869
|
return (React__default.createElement(QuickStartContext.Provider, { value: useValuesForQuickStartContext(value) }, children));
|
|
11813
11870
|
};
|
|
11814
11871
|
|
|
11815
|
-
const Box = ({ children, className }) => (React.createElement("div", { className: css
|
|
11816
|
-
const Loading = ({ className }) => (React.createElement("div", { className: css
|
|
11872
|
+
const Box = ({ children, className }) => (React.createElement("div", { className: css('pfext-status-box', className) }, children));
|
|
11873
|
+
const Loading = ({ className }) => (React.createElement("div", { className: css('pfext-m-loader', className) },
|
|
11817
11874
|
React.createElement("div", { className: "pfext-m-loader-dot__one" }),
|
|
11818
11875
|
React.createElement("div", { className: "pfext-m-loader-dot__two" }),
|
|
11819
11876
|
React.createElement("div", { className: "pfext-m-loader-dot__three" })));
|
|
11820
11877
|
Loading.displayName = 'Loading';
|
|
11821
|
-
const LoadingBox = ({ className, message }) => (React.createElement(Box, { className: css
|
|
11878
|
+
const LoadingBox = ({ className, message }) => (React.createElement(Box, { className: css('pfext-status-box--loading', className) },
|
|
11822
11879
|
React.createElement(Loading, null),
|
|
11823
11880
|
message && React.createElement("div", { className: "pfext-status-box__loading-message" }, message)));
|
|
11824
11881
|
LoadingBox.displayName = 'LoadingBox';
|
|
@@ -11848,36 +11905,6 @@ const CamelCaseWrap = ({ value, dataTest }) => {
|
|
|
11848
11905
|
return rendered;
|
|
11849
11906
|
};
|
|
11850
11907
|
|
|
11851
|
-
/** Joins args into a className string
|
|
11852
|
-
*
|
|
11853
|
-
* @param {any} args list of objects, string, or arrays to reduce
|
|
11854
|
-
*/
|
|
11855
|
-
function css(...args) {
|
|
11856
|
-
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
11857
|
-
const classes = [];
|
|
11858
|
-
const hasOwn = {}.hasOwnProperty;
|
|
11859
|
-
args.filter(Boolean).forEach((arg) => {
|
|
11860
|
-
const argType = typeof arg;
|
|
11861
|
-
if (argType === 'string' || argType === 'number') {
|
|
11862
|
-
classes.push(arg);
|
|
11863
|
-
}
|
|
11864
|
-
else if (Array.isArray(arg) && arg.length) {
|
|
11865
|
-
const inner = css(...arg);
|
|
11866
|
-
if (inner) {
|
|
11867
|
-
classes.push(inner);
|
|
11868
|
-
}
|
|
11869
|
-
}
|
|
11870
|
-
else if (argType === 'object') {
|
|
11871
|
-
for (const key in arg) {
|
|
11872
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
11873
|
-
classes.push(key);
|
|
11874
|
-
}
|
|
11875
|
-
}
|
|
11876
|
-
}
|
|
11877
|
-
});
|
|
11878
|
-
return classes.join(' ');
|
|
11879
|
-
}
|
|
11880
|
-
|
|
11881
11908
|
class CatalogTile extends React.Component {
|
|
11882
11909
|
constructor() {
|
|
11883
11910
|
super(...arguments);
|
|
@@ -11901,7 +11928,7 @@ class CatalogTile extends React.Component {
|
|
|
11901
11928
|
const _a = this.props, { id, className, featured, onClick, href, icon, iconImg, iconAlt, iconClass, badges, title, vendor, description, footer,
|
|
11902
11929
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11903
11930
|
ref, children } = _a, props = __rest(_a, ["id", "className", "featured", "onClick", "href", "icon", "iconImg", "iconAlt", "iconClass", "badges", "title", "vendor", "description", "footer", "ref", "children"]);
|
|
11904
|
-
return (React.createElement(Card, Object.assign({ component: href || onClick ? 'a' : 'div', id: id, href: href || '#', className: css('catalog-tile-pf', { featured }, className), onClick: e => this.handleClick(e), isSelectable: true }, props),
|
|
11931
|
+
return (React.createElement(Card, Object.assign({ component: href || onClick ? 'a' : 'div', id: id, href: href || '#', className: css$1('catalog-tile-pf', { featured }, className), onClick: e => this.handleClick(e), isSelectable: true }, props),
|
|
11905
11932
|
(badges.length > 0 || iconImg || iconClass || icon) && (React.createElement(CardHeader, null,
|
|
11906
11933
|
iconImg && React.createElement("img", { className: "catalog-tile-pf-icon", src: iconImg, alt: iconAlt }),
|
|
11907
11934
|
!iconImg && (iconClass || icon) && React.createElement("span", { className: `catalog-tile-pf-icon ${iconClass}` }, icon),
|
|
@@ -11911,7 +11938,7 @@ class CatalogTile extends React.Component {
|
|
|
11911
11938
|
vendor && React.createElement("div", { className: "catalog-tile-pf-subtitle" }, vendor)),
|
|
11912
11939
|
(description || children) && (React.createElement(CardBody, { className: "catalog-tile-pf-body" },
|
|
11913
11940
|
description && (React.createElement("div", { className: "catalog-tile-pf-description" },
|
|
11914
|
-
React.createElement("span", { className: css({ 'has-footer': footer }) }, description))),
|
|
11941
|
+
React.createElement("span", { className: css$1({ 'has-footer': footer }) }, description))),
|
|
11915
11942
|
children)),
|
|
11916
11943
|
footer && React.createElement(CardFooter, { className: "catalog-tile-pf-footer" }, footer)));
|
|
11917
11944
|
}
|
|
@@ -11952,7 +11979,7 @@ var RocketIcon = /*@__PURE__*/getDefaultExportFromCjs(rocketIcon);
|
|
|
11952
11979
|
|
|
11953
11980
|
const Modal = (_a) => {
|
|
11954
11981
|
var { isFullScreen = false, className } = _a, props = __rest(_a, ["isFullScreen", "className"]);
|
|
11955
|
-
return (React.createElement(Modal$1, Object.assign({}, props, { className: css
|
|
11982
|
+
return (React.createElement(Modal$1, Object.assign({}, props, { className: css('pfext-modal', className), appendTo: () => (isFullScreen ? document.body : document.querySelector('#modal-container')) })));
|
|
11956
11983
|
};
|
|
11957
11984
|
|
|
11958
11985
|
const getContainer = (container) => typeof container === 'function' ? container() : container;
|
|
@@ -12240,7 +12267,9 @@ const MarkdownHighlightExtension = ({ docContext, rootSelector, }) => {
|
|
|
12240
12267
|
};
|
|
12241
12268
|
|
|
12242
12269
|
const MARKDOWN_COPY_BUTTON_ID = 'data-copy-for';
|
|
12243
|
-
const MARKDOWN_SNIPPET_ID = 'data-snippet-id';
|
|
12270
|
+
const MARKDOWN_SNIPPET_ID = 'data-snippet-id';
|
|
12271
|
+
const ACCORDION_MARKDOWN_BUTTON_ID = `accordion-markdown-button-id`;
|
|
12272
|
+
const ACCORDION_MARKDOWN_CONTENT_ID = `accordion-markdown-content-id`;
|
|
12244
12273
|
|
|
12245
12274
|
const CopyClipboard = ({ element, rootSelector, docContext, }) => {
|
|
12246
12275
|
const { getResource } = React.useContext(QuickStartContext);
|
|
@@ -21031,7 +21060,7 @@ const RenderExtension = ({ renderExtension, selector, markup, docContext, }) =>
|
|
|
21031
21060
|
};
|
|
21032
21061
|
const InlineMarkdownView = ({ markup, isEmpty, renderExtension, className, }) => {
|
|
21033
21062
|
const id = React.useMemo(() => uniqueId('markdown'), []);
|
|
21034
|
-
return (React.createElement("div", { className: css
|
|
21063
|
+
return (React.createElement("div", { className: css('pfext-markdown-view', { 'is-empty': isEmpty }, className), id: id },
|
|
21035
21064
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: markup } }),
|
|
21036
21065
|
renderExtension && (React.createElement(RenderExtension, { renderExtension: renderExtension, selector: `#${id}`, markup: markup }))));
|
|
21037
21066
|
};
|
|
@@ -21112,6 +21141,7 @@ const QuickStartMarkdownView = ({ content, exactHeight, className, }) => {
|
|
|
21112
21141
|
const multilineCopyClipboardShowdownExtension = useMultilineCopyClipboardShowdownExtension();
|
|
21113
21142
|
const admonitionShowdownExtension = useAdmonitionShowdownExtension();
|
|
21114
21143
|
const codeShowdownExtension = useCodeShowdownExtension();
|
|
21144
|
+
const accordionShowdownExtension = useAccordionShowdownExtension();
|
|
21115
21145
|
return (React.createElement(SyncMarkdownView, { inline: true, content: content, exactHeight: exactHeight, extensions: [
|
|
21116
21146
|
{
|
|
21117
21147
|
type: 'lang',
|
|
@@ -21135,8 +21165,10 @@ const QuickStartMarkdownView = ({ content, exactHeight, className, }) => {
|
|
|
21135
21165
|
multilineCopyClipboardShowdownExtension,
|
|
21136
21166
|
admonitionShowdownExtension,
|
|
21137
21167
|
codeShowdownExtension,
|
|
21168
|
+
accordionShowdownExtension,
|
|
21138
21169
|
...(markdown ? markdown.extensions : []),
|
|
21139
21170
|
], renderExtension: (docContext, rootSelector) => (React.createElement(React.Fragment, null,
|
|
21171
|
+
React.createElement(AccordionRenderExtension, { docContext: docContext }),
|
|
21140
21172
|
React.createElement(MarkdownHighlightExtension, { docContext: docContext, rootSelector: rootSelector }),
|
|
21141
21173
|
React.createElement(MarkdownCopyClipboard, { docContext: docContext, rootSelector: rootSelector }),
|
|
21142
21174
|
markdown &&
|
|
@@ -21192,6 +21224,45 @@ const useCodeShowdownExtension = () => {
|
|
|
21192
21224
|
}), []);
|
|
21193
21225
|
};
|
|
21194
21226
|
|
|
21227
|
+
const useAccordionShowdownExtension = () => {
|
|
21228
|
+
return React.useMemo(() => ({
|
|
21229
|
+
type: 'lang',
|
|
21230
|
+
regex: /\[(.+)]{{(accordion) ("(.*?)")}}/g,
|
|
21231
|
+
replace: (_text, accordionContent, _command, accordionHeading) => {
|
|
21232
|
+
const accordionId = new String(accordionHeading).replace(/\s/g, '-');
|
|
21233
|
+
return removeTemplateWhitespace(server.renderToStaticMarkup(React.createElement(Accordion, { asDefinitionList: true },
|
|
21234
|
+
React.createElement(AccordionItem, null,
|
|
21235
|
+
React.createElement(AccordionToggle, { isExpanded: false, id: `${ACCORDION_MARKDOWN_BUTTON_ID}-${accordionId}` }, accordionHeading),
|
|
21236
|
+
React.createElement(AccordionContent, { id: `${ACCORDION_MARKDOWN_CONTENT_ID}-${accordionId}`, isHidden: !false }, accordionContent)))));
|
|
21237
|
+
},
|
|
21238
|
+
}), []);
|
|
21239
|
+
};
|
|
21240
|
+
|
|
21241
|
+
const AccordionShowdownHandler = ({ buttonElement, contentElement, }) => {
|
|
21242
|
+
const [expanded, setExpanded] = React.useState(false);
|
|
21243
|
+
const handleClick = () => {
|
|
21244
|
+
const expandedModifier = 'pf-m-expanded';
|
|
21245
|
+
buttonElement.className = `pf-c-accordion__toggle ${!expanded ? expandedModifier : ''}`;
|
|
21246
|
+
contentElement.hidden = expanded;
|
|
21247
|
+
contentElement.className = `pf-c-accordion__expanded-content ${!expanded ? expandedModifier : ''}`;
|
|
21248
|
+
setExpanded(!expanded);
|
|
21249
|
+
};
|
|
21250
|
+
useEventListener(buttonElement, 'click', handleClick);
|
|
21251
|
+
return React.createElement(React.Fragment, null);
|
|
21252
|
+
};
|
|
21253
|
+
const AccordionRenderExtension = ({ docContext }) => {
|
|
21254
|
+
const buttonElements = docContext.querySelectorAll(`[id ^= ${ACCORDION_MARKDOWN_BUTTON_ID}]`);
|
|
21255
|
+
const contentElements = docContext.querySelectorAll(`[id ^= ${ACCORDION_MARKDOWN_CONTENT_ID}]`);
|
|
21256
|
+
return buttonElements.length > 0 ? (React.createElement(React.Fragment, null, Array.from(buttonElements).map((elm) => {
|
|
21257
|
+
const content = Array.from(contentElements).find((elm2) => {
|
|
21258
|
+
const elmId = elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1];
|
|
21259
|
+
const elm2Id = elm2.id.split(ACCORDION_MARKDOWN_CONTENT_ID)[1];
|
|
21260
|
+
return elmId === elm2Id;
|
|
21261
|
+
});
|
|
21262
|
+
return (React.createElement(AccordionShowdownHandler, { key: elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1], buttonElement: elm, contentElement: content }));
|
|
21263
|
+
}))) : null;
|
|
21264
|
+
};
|
|
21265
|
+
|
|
21195
21266
|
const FallbackImg = ({ src, alt, className, fallback }) => {
|
|
21196
21267
|
const [isSrcValid, setIsSrcValid] = React.useState(true);
|
|
21197
21268
|
if (src && isSrcValid) {
|
|
@@ -21227,10 +21298,10 @@ const StatusIconAndText = ({ icon, title, spin, iconOnly, noTooltip, className,
|
|
|
21227
21298
|
if (!title) {
|
|
21228
21299
|
return React.createElement(React.Fragment, null, DASH);
|
|
21229
21300
|
}
|
|
21230
|
-
return (React.createElement("span", { className: css
|
|
21301
|
+
return (React.createElement("span", { className: css('pfext-icon-and-text', className), title: iconOnly && !noTooltip ? title : undefined },
|
|
21231
21302
|
icon &&
|
|
21232
21303
|
React.cloneElement(icon, {
|
|
21233
|
-
className: css
|
|
21304
|
+
className: css(spin && 'fa-spin', icon.props.className, !iconOnly && 'pfext-icon-and-text__icon pfext-icon-flex-child'),
|
|
21234
21305
|
}),
|
|
21235
21306
|
!iconOnly && React.createElement(CamelCaseWrap, { value: title, dataTest: "status-text" })));
|
|
21236
21307
|
};
|
|
@@ -21717,7 +21788,7 @@ const TaskIcon = ({ taskIndex, taskStatus }) => {
|
|
|
21717
21788
|
const { getResource } = React.useContext(QuickStartContext);
|
|
21718
21789
|
const success = taskStatus === QuickStartTaskStatus.SUCCESS;
|
|
21719
21790
|
const failed = taskStatus === QuickStartTaskStatus.FAILED;
|
|
21720
|
-
const classNames = css
|
|
21791
|
+
const classNames = css('pfext-icon-and-text__icon', {
|
|
21721
21792
|
'pfext-quick-start-task-header__task-icon-init': !failed && !success,
|
|
21722
21793
|
});
|
|
21723
21794
|
let content;
|
|
@@ -21740,7 +21811,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
21740
21811
|
titleRef.current.parentNode.focus();
|
|
21741
21812
|
}
|
|
21742
21813
|
}, [isActiveTask]);
|
|
21743
|
-
const classNames = css
|
|
21814
|
+
const classNames = css('pfext-quick-start-task-header__title', {
|
|
21744
21815
|
'pfext-quick-start-task-header__title-success': taskStatus === QuickStartTaskStatus.SUCCESS,
|
|
21745
21816
|
'pfext-quick-start-task-header__title-failed': taskStatus === (QuickStartTaskStatus.FAILED || QuickStartTaskStatus.VISITED),
|
|
21746
21817
|
});
|
|
@@ -21819,7 +21890,7 @@ const getAlertVariant = (status) => {
|
|
|
21819
21890
|
const QuickStartTaskReview = ({ review, taskStatus, onTaskReview, }) => {
|
|
21820
21891
|
const { instructions, failedTaskHelp: taskHelp } = review;
|
|
21821
21892
|
const { getResource } = React.useContext(QuickStartContext);
|
|
21822
|
-
const alertClassNames = css
|
|
21893
|
+
const alertClassNames = css('pfext-quick-start-task-review', {
|
|
21823
21894
|
'pfext-quick-start-task-review--success': taskStatus === QuickStartTaskStatus.SUCCESS,
|
|
21824
21895
|
'pfext-quick-start-task-review--failed': taskStatus === QuickStartTaskStatus.FAILED,
|
|
21825
21896
|
});
|
|
@@ -21967,11 +22038,11 @@ const QuickStartPanelContent = (_a) => {
|
|
|
21967
22038
|
const taskNumber = activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.taskNumber;
|
|
21968
22039
|
useScrollTopOnTaskNumberChange(contentRef, taskNumber);
|
|
21969
22040
|
const nextQuickStarts = quickStarts.filter((qs) => { var _a; return (_a = quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.nextQuickStart) === null || _a === void 0 ? void 0 : _a.includes(qs.metadata.name); });
|
|
21970
|
-
const headerClasses = css
|
|
22041
|
+
const headerClasses = css('pfext-quick-start-panel-content__header', {
|
|
21971
22042
|
'pfext-quick-start-panel-content__header__shadow': shadows === Shadows.top || shadows === Shadows.both,
|
|
21972
22043
|
'pfext-quick-start-panel-content__header--blue-white': headerVariant === 'blue-white',
|
|
21973
22044
|
});
|
|
21974
|
-
const footerClass = css
|
|
22045
|
+
const footerClass = css({
|
|
21975
22046
|
'pfext-quick-start-panel-content__footer__shadow': shadows === Shadows.bottom || shadows === Shadows.both,
|
|
21976
22047
|
});
|
|
21977
22048
|
const getStep = () => {
|
|
@@ -21993,7 +22064,7 @@ const QuickStartPanelContent = (_a) => {
|
|
|
21993
22064
|
React.createElement("div", { className: headerClasses },
|
|
21994
22065
|
React.createElement(DrawerHead, null,
|
|
21995
22066
|
React.createElement("div", { className: "pfext-quick-start-panel-content__title", tabIndex: -1, ref: titleRef },
|
|
21996
|
-
React.createElement(Title, { headingLevel: "
|
|
22067
|
+
React.createElement(Title, { headingLevel: "h2", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-global--spacer--md)' } },
|
|
21997
22068
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
|
21998
22069
|
__html: removeParagraphWrap(markdownConvert(quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.displayName)),
|
|
21999
22070
|
} }),
|
|
@@ -22178,7 +22249,7 @@ const HelpTopicPanelContent = (_a) => {
|
|
|
22178
22249
|
setActiveHelpTopicByName(topicName);
|
|
22179
22250
|
toggleHelpTopicMenu();
|
|
22180
22251
|
};
|
|
22181
|
-
const menuItems = filteredHelpTopics.length >
|
|
22252
|
+
const menuItems = filteredHelpTopics.length > 1 &&
|
|
22182
22253
|
filteredHelpTopics.map((topic) => {
|
|
22183
22254
|
return (React.createElement(OptionsMenuItem, { key: topic.name, onSelect: onSelectHelpTopic, id: topic.name }, topic.title));
|
|
22184
22255
|
});
|