@patternfly/quickstarts 5.0.0-prerelease.0 → 5.0.0-prerelease.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/index.es.js +6 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/dist/patternfly-nested.css +470 -10
- package/dist/quickstarts-base.css +16 -16
- package/dist/quickstarts-full.es.js +278 -232
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +1 -1
- package/dist/quickstarts-standalone.min.css +2 -2
- package/dist/quickstarts.css +16 -16
- package/dist/quickstarts.min.css +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ function __rest$1(s, e) {
|
|
|
35
35
|
*
|
|
36
36
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
37
37
|
*/
|
|
38
|
-
function css(...args) {
|
|
38
|
+
function css$1(...args) {
|
|
39
39
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
40
40
|
const classes = [];
|
|
41
41
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -45,7 +45,7 @@ function css(...args) {
|
|
|
45
45
|
classes.push(arg);
|
|
46
46
|
}
|
|
47
47
|
else if (Array.isArray(arg) && arg.length) {
|
|
48
|
-
const inner = css(...arg);
|
|
48
|
+
const inner = css$1(...arg);
|
|
49
49
|
if (inner) {
|
|
50
50
|
classes.push(inner);
|
|
51
51
|
}
|
|
@@ -3733,7 +3733,7 @@ const Popper = ({ trigger, popper, direction = 'down', position = 'left', placem
|
|
|
3733
3733
|
}
|
|
3734
3734
|
return positionModifiers.top;
|
|
3735
3735
|
};
|
|
3736
|
-
const options = Object.assign({ className: css(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex }) }, attributes.popper);
|
|
3736
|
+
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);
|
|
3737
3737
|
const getMenuWithPopper = () => {
|
|
3738
3738
|
const localPopper = React.cloneElement(popper, options);
|
|
3739
3739
|
return popperRef ? (localPopper) : (React.createElement("div", { style: { display: 'contents' }, ref: (node) => setPopperElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, localPopper));
|
|
@@ -4055,7 +4055,7 @@ var headingLevelSizeMap;
|
|
|
4055
4055
|
const Title = (_a) => {
|
|
4056
4056
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4057
4057
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4058
|
-
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css(styles$s.title, size && styles$s.modifiers[size], className) }), children));
|
|
4058
|
+
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$1(styles$s.title, size && styles$s.modifiers[size], className) }), children));
|
|
4059
4059
|
};
|
|
4060
4060
|
Title.displayName = 'Title';
|
|
4061
4061
|
|
|
@@ -4115,7 +4115,7 @@ const Spinner = (_a) => {
|
|
|
4115
4115
|
var {
|
|
4116
4116
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4117
4117
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
4118
|
-
return (React.createElement("svg", Object.assign({ className: css(styles$r.spinner, isInline ? styles$r.modifiers.inline : styles$r.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { ['--pf-v5-c-spinner--diameter']: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props),
|
|
4118
|
+
return (React.createElement("svg", Object.assign({ className: css$1(styles$r.spinner, isInline ? styles$r.modifiers.inline : styles$r.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { ['--pf-v5-c-spinner--diameter']: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props),
|
|
4119
4119
|
React.createElement("circle", { className: styles$r.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })));
|
|
4120
4120
|
};
|
|
4121
4121
|
Spinner.displayName = 'Spinner';
|
|
@@ -4131,7 +4131,7 @@ var styles$q = {
|
|
|
4131
4131
|
|
|
4132
4132
|
const Badge = (_a) => {
|
|
4133
4133
|
var { isRead = false, className = '', children = '', screenReaderText } = _a, props = __rest$1(_a, ["isRead", "className", "children", "screenReaderText"]);
|
|
4134
|
-
return (React.createElement("span", Object.assign({}, props, { className: css(styles$q.badge, (isRead ? styles$q.modifiers.read : styles$q.modifiers.unread), className) }),
|
|
4134
|
+
return (React.createElement("span", Object.assign({}, props, { className: css$1(styles$q.badge, (isRead ? styles$q.modifiers.read : styles$q.modifiers.unread), className) }),
|
|
4135
4135
|
children,
|
|
4136
4136
|
screenReaderText && React.createElement("span", { className: "pf-v5-screen-reader" }, screenReaderText)));
|
|
4137
4137
|
};
|
|
@@ -4180,14 +4180,14 @@ const ButtonBase = (_a) => {
|
|
|
4180
4180
|
return 0;
|
|
4181
4181
|
}
|
|
4182
4182
|
};
|
|
4183
|
-
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(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, size === ButtonSize.sm && buttonStyles.modifiers.small, size === ButtonSize.lg && 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),
|
|
4184
|
-
isLoading && (React.createElement("span", { className: css(buttonStyles.buttonProgress) },
|
|
4183
|
+
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, size === ButtonSize.sm && buttonStyles.modifiers.small, size === ButtonSize.lg && 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),
|
|
4184
|
+
isLoading && (React.createElement("span", { className: css$1(buttonStyles.buttonProgress) },
|
|
4185
4185
|
React.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4186
4186
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
4187
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4187
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4188
4188
|
children,
|
|
4189
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4190
|
-
countOptions && (React.createElement("span", { className: css(buttonStyles.buttonCount, countOptions.className) },
|
|
4189
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4190
|
+
countOptions && (React.createElement("span", { className: css$1(buttonStyles.buttonCount, countOptions.className) },
|
|
4191
4191
|
React.createElement(Badge, { isRead: countOptions.isRead }, countOptions.count)))));
|
|
4192
4192
|
};
|
|
4193
4193
|
const Button = React.forwardRef((props, ref) => (React.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -4535,19 +4535,19 @@ var styles$o = {
|
|
|
4535
4535
|
|
|
4536
4536
|
const Backdrop = (_a) => {
|
|
4537
4537
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4538
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles$p.backdrop, className) }), children));
|
|
4538
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$p.backdrop, className) }), children));
|
|
4539
4539
|
};
|
|
4540
4540
|
Backdrop.displayName = 'Backdrop';
|
|
4541
4541
|
|
|
4542
4542
|
const ModalBoxBody = (_a) => {
|
|
4543
4543
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4544
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(modalStyles.modalBoxBody, className) }), children));
|
|
4544
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(modalStyles.modalBoxBody, className) }), children));
|
|
4545
4545
|
};
|
|
4546
4546
|
ModalBoxBody.displayName = 'ModalBoxBody';
|
|
4547
4547
|
|
|
4548
4548
|
const ModalBoxCloseButton = (_a) => {
|
|
4549
4549
|
var { className, onClose = () => undefined, ouiaId } = _a, props = __rest$1(_a, ["className", "onClose", "ouiaId"]);
|
|
4550
|
-
return (React.createElement("div", { className: css(modalStyles.modalBoxClose, className) },
|
|
4550
|
+
return (React.createElement("div", { className: css$1(modalStyles.modalBoxClose, className) },
|
|
4551
4551
|
React.createElement(Button, Object.assign({ variant: "plain", onClick: (event) => onClose(event), "aria-label": "Close" }, (ouiaId && { ouiaId: `${ouiaId}-${ModalBoxCloseButton.displayName}` }), props),
|
|
4552
4552
|
React.createElement(TimesIcon, null))));
|
|
4553
4553
|
};
|
|
@@ -4565,27 +4565,27 @@ const ModalBox = (_a) => {
|
|
|
4565
4565
|
style = style || {};
|
|
4566
4566
|
style[c_modal_box_m_align_top_spacer.name] = positionOffset;
|
|
4567
4567
|
}
|
|
4568
|
-
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(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));
|
|
4568
|
+
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));
|
|
4569
4569
|
};
|
|
4570
4570
|
ModalBox.displayName = 'ModalBox';
|
|
4571
4571
|
|
|
4572
4572
|
const ModalBoxFooter = (_a) => {
|
|
4573
4573
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
4574
|
-
return (React.createElement("footer", Object.assign({}, props, { className: css(modalStyles.modalBoxFooter, className) }), children));
|
|
4574
|
+
return (React.createElement("footer", Object.assign({}, props, { className: css$1(modalStyles.modalBoxFooter, className) }), children));
|
|
4575
4575
|
};
|
|
4576
4576
|
ModalBoxFooter.displayName = 'ModalBoxFooter';
|
|
4577
4577
|
|
|
4578
4578
|
const ModalBoxDescription = (_a) => {
|
|
4579
4579
|
var { children = null, className = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "id"]);
|
|
4580
|
-
return (React.createElement("div", Object.assign({}, props, { id: id, className: css(modalStyles.modalBoxDescription, className) }), children));
|
|
4580
|
+
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$1(modalStyles.modalBoxDescription, className) }), children));
|
|
4581
4581
|
};
|
|
4582
4582
|
ModalBoxDescription.displayName = 'ModalBoxDescription';
|
|
4583
4583
|
|
|
4584
4584
|
const ModalBoxHeader = (_a) => {
|
|
4585
4585
|
var { children = null, className = '', help = null } = _a, props = __rest$1(_a, ["children", "className", "help"]);
|
|
4586
|
-
return (React.createElement("header", Object.assign({ className: css(modalStyles.modalBoxHeader, help && modalStyles.modifiers.help, className) }, props),
|
|
4586
|
+
return (React.createElement("header", Object.assign({ className: css$1(modalStyles.modalBoxHeader, help && modalStyles.modifiers.help, className) }, props),
|
|
4587
4587
|
help && (React.createElement(React.Fragment, null,
|
|
4588
|
-
React.createElement("div", { className: css(modalStyles.modalBoxHeaderMain) }, children),
|
|
4588
|
+
React.createElement("div", { className: css$1(modalStyles.modalBoxHeaderMain) }, children),
|
|
4589
4589
|
React.createElement("div", { className: "pf-v5-c-modal-box__header-help" }, help))),
|
|
4590
4590
|
!help && children));
|
|
4591
4591
|
};
|
|
@@ -4636,13 +4636,13 @@ var styles$n = {
|
|
|
4636
4636
|
|
|
4637
4637
|
const TooltipContent = (_a) => {
|
|
4638
4638
|
var { className, children, isLeftAligned } = _a, props = __rest$1(_a, ["className", "children", "isLeftAligned"]);
|
|
4639
|
-
return (React.createElement("div", Object.assign({ className: css(styles$n.tooltipContent, isLeftAligned && styles$n.modifiers.textAlignLeft, className) }, props), children));
|
|
4639
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$n.tooltipContent, isLeftAligned && styles$n.modifiers.textAlignLeft, className) }, props), children));
|
|
4640
4640
|
};
|
|
4641
4641
|
TooltipContent.displayName = 'TooltipContent';
|
|
4642
4642
|
|
|
4643
4643
|
const TooltipArrow = (_a) => {
|
|
4644
4644
|
var { className } = _a, props = __rest$1(_a, ["className"]);
|
|
4645
|
-
return React.createElement("div", Object.assign({ className: css(styles$n.tooltipArrow, className) }, props));
|
|
4645
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$n.tooltipArrow, className) }, props));
|
|
4646
4646
|
};
|
|
4647
4647
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4648
4648
|
|
|
@@ -4766,7 +4766,7 @@ const Tooltip = (_a) => {
|
|
|
4766
4766
|
'right-end': styles$n.modifiers.rightBottom
|
|
4767
4767
|
};
|
|
4768
4768
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
4769
|
-
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$n.tooltip, className), role: "tooltip", id: id, style: {
|
|
4769
|
+
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$1(styles$n.tooltip, className), role: "tooltip", id: id, style: {
|
|
4770
4770
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4771
4771
|
opacity,
|
|
4772
4772
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -4871,10 +4871,10 @@ const ModalBoxTitle = (_a) => {
|
|
|
4871
4871
|
useIsomorphicLayoutEffect(() => {
|
|
4872
4872
|
setHasTooltip(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
|
|
4873
4873
|
}, []);
|
|
4874
|
-
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css(modalStyles.modalBoxTitle, titleIconVariant && modalStyles.modifiers.icon, className) }, props),
|
|
4875
|
-
titleIconVariant && (React.createElement("span", { className: css(modalStyles.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
4876
|
-
label && React.createElement("span", { className: css(a11yStyles.screenReader) }, label),
|
|
4877
|
-
React.createElement("span", { className: css(modalStyles.modalBoxTitleText) }, title)));
|
|
4874
|
+
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$1(modalStyles.modalBoxTitle, titleIconVariant && modalStyles.modifiers.icon, className) }, props),
|
|
4875
|
+
titleIconVariant && (React.createElement("span", { className: css$1(modalStyles.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
4876
|
+
label && React.createElement("span", { className: css$1(a11yStyles.screenReader) }, label),
|
|
4877
|
+
React.createElement("span", { className: css$1(modalStyles.modalBoxTitleText) }, title)));
|
|
4878
4878
|
return hasTooltip ? React.createElement(Tooltip, { content: title }, content) : content;
|
|
4879
4879
|
};
|
|
4880
4880
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
@@ -4907,13 +4907,13 @@ const ModalContent = (_a) => {
|
|
|
4907
4907
|
}
|
|
4908
4908
|
return idRefList.join(' ');
|
|
4909
4909
|
};
|
|
4910
|
-
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css(className, isVariantIcon(titleIconVariant) && 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)),
|
|
4910
|
+
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css$1(className, isVariantIcon(titleIconVariant) && 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)),
|
|
4911
4911
|
showClose && React.createElement(ModalBoxCloseButton, { onClose: (event) => onClose(event), ouiaId: ouiaId }),
|
|
4912
4912
|
modalBoxHeader,
|
|
4913
4913
|
modalBody,
|
|
4914
4914
|
modalBoxFooter));
|
|
4915
4915
|
return (React.createElement(Backdrop, null,
|
|
4916
|
-
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css(styles$o.bullseye) }, modalBox)));
|
|
4916
|
+
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css$1(styles$o.bullseye) }, modalBox)));
|
|
4917
4917
|
};
|
|
4918
4918
|
ModalContent.displayName = 'ModalContent';
|
|
4919
4919
|
|
|
@@ -4973,10 +4973,10 @@ class Modal$1 extends React.Component {
|
|
|
4973
4973
|
target.appendChild(container);
|
|
4974
4974
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
4975
4975
|
if (this.props.isOpen) {
|
|
4976
|
-
target.classList.add(css(styles$p.backdropOpen));
|
|
4976
|
+
target.classList.add(css$1(styles$p.backdropOpen));
|
|
4977
4977
|
}
|
|
4978
4978
|
else {
|
|
4979
|
-
target.classList.remove(css(styles$p.backdropOpen));
|
|
4979
|
+
target.classList.remove(css$1(styles$p.backdropOpen));
|
|
4980
4980
|
}
|
|
4981
4981
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
4982
4982
|
// eslint-disable-next-line no-console
|
|
@@ -4991,11 +4991,11 @@ class Modal$1 extends React.Component {
|
|
|
4991
4991
|
const { appendTo } = this.props;
|
|
4992
4992
|
const target = this.getElement(appendTo);
|
|
4993
4993
|
if (this.props.isOpen) {
|
|
4994
|
-
target.classList.add(css(styles$p.backdropOpen));
|
|
4994
|
+
target.classList.add(css$1(styles$p.backdropOpen));
|
|
4995
4995
|
this.toggleSiblingsFromScreenReaders(true);
|
|
4996
4996
|
}
|
|
4997
4997
|
else {
|
|
4998
|
-
target.classList.remove(css(styles$p.backdropOpen));
|
|
4998
|
+
target.classList.remove(css$1(styles$p.backdropOpen));
|
|
4999
4999
|
this.toggleSiblingsFromScreenReaders(false);
|
|
5000
5000
|
}
|
|
5001
5001
|
}
|
|
@@ -5006,7 +5006,7 @@ class Modal$1 extends React.Component {
|
|
|
5006
5006
|
target.removeChild(this.state.container);
|
|
5007
5007
|
}
|
|
5008
5008
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
5009
|
-
target.classList.remove(css(styles$p.backdropOpen));
|
|
5009
|
+
target.classList.remove(css$1(styles$p.backdropOpen));
|
|
5010
5010
|
}
|
|
5011
5011
|
render() {
|
|
5012
5012
|
const _a = this.props, {
|
|
@@ -5064,7 +5064,7 @@ const AccordionContext = React.createContext({});
|
|
|
5064
5064
|
const Accordion = (_a) => {
|
|
5065
5065
|
var { children = null, className = '', 'aria-label': ariaLabel, headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest$1(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
5066
5066
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
5067
|
-
return (React.createElement(AccordionList, Object.assign({ className: css(styles$m.accordion, isBordered && styles$m.modifiers.bordered, displaySize === 'lg' && styles$m.modifiers.displayLg, className), "aria-label": ariaLabel }, (!asDefinitionList && ariaLabel && { role: 'region' }), props),
|
|
5067
|
+
return (React.createElement(AccordionList, Object.assign({ className: css$1(styles$m.accordion, isBordered && styles$m.modifiers.bordered, displaySize === 'lg' && styles$m.modifiers.displayLg, className), "aria-label": ariaLabel }, (!asDefinitionList && ariaLabel && { role: 'region' }), props),
|
|
5068
5068
|
React.createElement(AccordionContext.Provider, { value: {
|
|
5069
5069
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
5070
5070
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -5072,7 +5072,7 @@ const Accordion = (_a) => {
|
|
|
5072
5072
|
};
|
|
5073
5073
|
Accordion.displayName = 'Accordion';
|
|
5074
5074
|
|
|
5075
|
-
const AccordionExpandableContentBody = ({ children = null }) => React.createElement("div", { className: css(styles$m.accordionExpandableContentBody) }, children);
|
|
5075
|
+
const AccordionExpandableContentBody = ({ children = null }) => React.createElement("div", { className: css$1(styles$m.accordionExpandableContentBody) }, children);
|
|
5076
5076
|
AccordionExpandableContentBody.displayName = 'AccordionExpandableContentBody';
|
|
5077
5077
|
|
|
5078
5078
|
const AccordionContent = (_a) => {
|
|
@@ -5090,7 +5090,7 @@ const AccordionContent = (_a) => {
|
|
|
5090
5090
|
}, [containerRef, isFixed, isHidden]);
|
|
5091
5091
|
return (React.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
5092
5092
|
const Container = component || ContentContainer;
|
|
5093
|
-
return (React.createElement(Container, Object.assign({ ref: containerRef, id: id, className: css(styles$m.accordionExpandableContent, isFixed && styles$m.modifiers.fixed, !isHidden && styles$m.modifiers.expanded, className), hidden: isHidden }, (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledby && { 'aria-labelledby': ariaLabelledby }), (hasScrollbar && { tabIndex: 0 }), (hasScrollbar && Container === 'div' && { role: 'region' }), props), isCustomContent ? children : React.createElement(AccordionExpandableContentBody, null, children)));
|
|
5093
|
+
return (React.createElement(Container, Object.assign({ ref: containerRef, id: id, className: css$1(styles$m.accordionExpandableContent, isFixed && styles$m.modifiers.fixed, !isHidden && styles$m.modifiers.expanded, className), hidden: isHidden }, (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledby && { 'aria-labelledby': ariaLabelledby }), (hasScrollbar && { tabIndex: 0 }), (hasScrollbar && Container === 'div' && { role: 'region' }), props), isCustomContent ? children : React.createElement(AccordionExpandableContentBody, null, children)));
|
|
5094
5094
|
}));
|
|
5095
5095
|
};
|
|
5096
5096
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -5114,9 +5114,9 @@ const AccordionToggle = (_a) => {
|
|
|
5114
5114
|
return (React.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
5115
5115
|
const Container = component || ToggleContainer;
|
|
5116
5116
|
return (React.createElement(Container, null,
|
|
5117
|
-
React.createElement("button", Object.assign({ id: id, className: css(styles$m.accordionToggle, isExpanded && styles$m.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
5118
|
-
React.createElement("span", { className: css(styles$m.accordionToggleText) }, children),
|
|
5119
|
-
React.createElement("span", { className: css(styles$m.accordionToggleIcon) },
|
|
5117
|
+
React.createElement("button", Object.assign({ id: id, className: css$1(styles$m.accordionToggle, isExpanded && styles$m.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
5118
|
+
React.createElement("span", { className: css$1(styles$m.accordionToggleText) }, children),
|
|
5119
|
+
React.createElement("span", { className: css$1(styles$m.accordionToggleIcon) },
|
|
5120
5120
|
React.createElement(AngleRightIcon, null)))));
|
|
5121
5121
|
}));
|
|
5122
5122
|
};
|
|
@@ -5157,7 +5157,7 @@ const variantIcons = {
|
|
|
5157
5157
|
const AlertIcon = (_a) => {
|
|
5158
5158
|
var { variant, customIcon, className = '' } = _a, props = __rest$1(_a, ["variant", "customIcon", "className"]);
|
|
5159
5159
|
const Icon = variantIcons[variant];
|
|
5160
|
-
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css(styles$l.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
5160
|
+
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$1(styles$l.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
5161
5161
|
};
|
|
5162
5162
|
|
|
5163
5163
|
const AlertContext = React.createContext(null);
|
|
@@ -5172,7 +5172,7 @@ const AlertToggleExpandButton = (_a) => {
|
|
|
5172
5172
|
var { 'aria-label': ariaLabel = '', variantLabel, onToggleExpand, isExpanded = false } = _a, props = __rest$1(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
5173
5173
|
const { title, variantLabel: alertVariantLabel } = React.useContext(AlertContext);
|
|
5174
5174
|
return (React.createElement(Button, Object.assign({ variant: ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
5175
|
-
React.createElement("span", { className: css(styles$l.alertToggleIcon) },
|
|
5175
|
+
React.createElement("span", { className: css$1(styles$l.alertToggleIcon) },
|
|
5176
5176
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
5177
5177
|
};
|
|
5178
5178
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -5189,7 +5189,7 @@ const Alert = (_a) => {
|
|
|
5189
5189
|
var { variant = AlertVariant.custom, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${capitalize(variant)} alert:`, actionClose, actionLinks, title, component = '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$1(_a, ["variant", "isInline", "isPlain", "isLiveRegion", "variantLabel", "actionClose", "actionLinks", "title", "component", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave", "id"]);
|
|
5190
5190
|
const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
|
|
5191
5191
|
const getHeadingContent = (React.createElement(React.Fragment, null,
|
|
5192
|
-
React.createElement("span", { className: css(a11yStyles.screenReader) }, variantLabel),
|
|
5192
|
+
React.createElement("span", { className: css$1(a11yStyles.screenReader) }, variantLabel),
|
|
5193
5193
|
title));
|
|
5194
5194
|
const titleRef = React.useRef(null);
|
|
5195
5195
|
const TitleComponent = component;
|
|
@@ -5257,20 +5257,20 @@ const Alert = (_a) => {
|
|
|
5257
5257
|
if (dismissed) {
|
|
5258
5258
|
return null;
|
|
5259
5259
|
}
|
|
5260
|
-
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$l.alertTitle, truncateTitle && styles$l.modifiers.truncate) }), getHeadingContent));
|
|
5261
|
-
return (React.createElement("div", Object.assign({ ref: divRef, className: css(styles$l.alert, isInline && styles$l.modifiers.inline, isPlain && styles$l.modifiers.plain, isExpandable && styles$l.modifiers.expandable, isExpanded && styles$l.modifiers.expanded, styles$l.modifiers[variant], className) }, ouiaProps, (isLiveRegion && {
|
|
5260
|
+
const Title = (React.createElement(TitleComponent, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$1(styles$l.alertTitle, truncateTitle && styles$l.modifiers.truncate) }), getHeadingContent));
|
|
5261
|
+
return (React.createElement("div", Object.assign({ ref: divRef, className: css$1(styles$l.alert, isInline && styles$l.modifiers.inline, isPlain && styles$l.modifiers.plain, isExpandable && styles$l.modifiers.expandable, isExpanded && styles$l.modifiers.expanded, styles$l.modifiers[variant], className) }, ouiaProps, (isLiveRegion && {
|
|
5262
5262
|
'aria-live': 'polite',
|
|
5263
5263
|
'aria-atomic': 'false'
|
|
5264
5264
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave, id: id }, props),
|
|
5265
5265
|
isExpandable && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5266
|
-
React.createElement("div", { className: css(styles$l.alertToggle) },
|
|
5266
|
+
React.createElement("div", { className: css$1(styles$l.alertToggle) },
|
|
5267
5267
|
React.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
5268
5268
|
React.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
5269
5269
|
isTooltipVisible ? (React.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
5270
5270
|
actionClose && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
5271
|
-
React.createElement("div", { className: css(styles$l.alertAction) }, actionClose))),
|
|
5272
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css(styles$l.alertDescription) }, children)),
|
|
5273
|
-
actionLinks && React.createElement("div", { className: css(styles$l.alertActionGroup) }, actionLinks)));
|
|
5271
|
+
React.createElement("div", { className: css$1(styles$l.alertAction) }, actionClose))),
|
|
5272
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$1(styles$l.alertDescription) }, children)),
|
|
5273
|
+
actionLinks && React.createElement("div", { className: css$1(styles$l.alertActionGroup) }, actionLinks)));
|
|
5274
5274
|
};
|
|
5275
5275
|
Alert.displayName = 'Alert';
|
|
5276
5276
|
|
|
@@ -5316,7 +5316,7 @@ const statusIcons = {
|
|
|
5316
5316
|
const FormControlIcon = (_a) => {
|
|
5317
5317
|
var { status, customIcon, className } = _a, props = __rest$1(_a, ["status", "customIcon", "className"]);
|
|
5318
5318
|
const StatusIcon = status && statusIcons[status];
|
|
5319
|
-
return (React.createElement("div", Object.assign({ className: css(formStyles$1.formControlIcon, status && formStyles$1.modifiers.status, className) }, props), customIcon || React.createElement(StatusIcon, null)));
|
|
5319
|
+
return (React.createElement("div", Object.assign({ className: css$1(formStyles$1.formControlIcon, status && formStyles$1.modifiers.status, className) }, props), customIcon || React.createElement(StatusIcon, null)));
|
|
5320
5320
|
};
|
|
5321
5321
|
|
|
5322
5322
|
var TextInputTypes;
|
|
@@ -5401,9 +5401,9 @@ class TextInputBase extends React.Component {
|
|
|
5401
5401
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5402
5402
|
onChange, onFocus, onBlur, isLeftTruncated, isExpanded, readOnly, readOnlyVariant, isRequired, isDisabled, customIcon, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["innerRef", "className", "type", "value", "placeholder", "validated", "onChange", "onFocus", "onBlur", "isLeftTruncated", "isExpanded", "readOnly", "readOnlyVariant", "isRequired", "isDisabled", "customIcon", "ouiaId", "ouiaSafe"]);
|
|
5403
5403
|
const hasStatusIcon = ['success', 'error', 'warning'].includes(validated);
|
|
5404
|
-
return (React.createElement("div", { className: css(formStyles$1.formControl, readOnlyVariant && formStyles$1.modifiers.readonly, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, isDisabled && formStyles$1.modifiers.disabled, isExpanded && formStyles$1.modifiers.expanded, customIcon && formStyles$1.modifiers.icon, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
5404
|
+
return (React.createElement("div", { className: css$1(formStyles$1.formControl, readOnlyVariant && formStyles$1.modifiers.readonly, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, isDisabled && formStyles$1.modifiers.disabled, isExpanded && formStyles$1.modifiers.expanded, customIcon && formStyles$1.modifiers.icon, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
5405
5405
|
React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, 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 || readOnly, ref: innerRef || this.inputRef, placeholder: placeholder }, getOUIAProps(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
5406
|
-
(customIcon || hasStatusIcon) && (React.createElement("div", { className: css(formStyles$1.formControlUtilities) },
|
|
5406
|
+
(customIcon || hasStatusIcon) && (React.createElement("div", { className: css$1(formStyles$1.formControlUtilities) },
|
|
5407
5407
|
customIcon && React.createElement(FormControlIcon, { customIcon: customIcon }),
|
|
5408
5408
|
hasStatusIcon && React.createElement(FormControlIcon, { status: validated })))));
|
|
5409
5409
|
}
|
|
@@ -5659,7 +5659,7 @@ class MenuBase extends React.Component {
|
|
|
5659
5659
|
}, noHorizontalArrowHandling: document.activeElement &&
|
|
5660
5660
|
(document.activeElement.classList.contains('pf-v5-c-breadcrumb__link') ||
|
|
5661
5661
|
document.activeElement.classList.contains('pf-v5-c-dropdown__toggle')), noEnterHandling: true, noSpaceHandling: true })),
|
|
5662
|
-
React.createElement("div", Object.assign({ id: id, className: css(menuStyles.menu, isPlain && menuStyles.modifiers.plain, isScrollable && menuStyles.modifiers.scrollable, containsFlyout && menuStyles.modifiers.flyout, isNavFlyout && menuStyles.modifiers.nav, containsDrilldown && menuStyles.modifiers.drilldown, _isMenuDrilledIn && menuStyles.modifiers.drilledIn, className), ref: this.menuRef }, getOUIAProps(Menu.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
5662
|
+
React.createElement("div", Object.assign({ id: id, className: css$1(menuStyles.menu, isPlain && menuStyles.modifiers.plain, isScrollable && menuStyles.modifiers.scrollable, containsFlyout && menuStyles.modifiers.flyout, isNavFlyout && menuStyles.modifiers.nav, containsDrilldown && menuStyles.modifiers.drilldown, _isMenuDrilledIn && menuStyles.modifiers.drilledIn, className), ref: this.menuRef }, getOUIAProps(Menu.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
|
|
5663
5663
|
}
|
|
5664
5664
|
}
|
|
5665
5665
|
MenuBase.displayName = 'Menu';
|
|
@@ -5701,10 +5701,29 @@ const MenuContent = React.forwardRef((props, ref) => {
|
|
|
5701
5701
|
}
|
|
5702
5702
|
return ref || menuContentRef;
|
|
5703
5703
|
};
|
|
5704
|
-
return (React.createElement(MenuContext.Consumer, null, ({ menuId, onGetMenuHeight }) => (React.createElement("div", Object.assign({}, rest, { className: css(menuStyles.menuContent, props.className), ref: (el) => refCallback(el, menuId, onGetMenuHeight), style: Object.assign(Object.assign({}, (menuHeight && { '--pf-v5-c-menu__content--Height': menuHeight })), (maxMenuHeight && { '--pf-v5-c-menu__content--MaxHeight': maxMenuHeight })) }), children))));
|
|
5704
|
+
return (React.createElement(MenuContext.Consumer, null, ({ menuId, onGetMenuHeight }) => (React.createElement("div", Object.assign({}, rest, { className: css$1(menuStyles.menuContent, props.className), ref: (el) => refCallback(el, menuId, onGetMenuHeight), style: Object.assign(Object.assign({}, (menuHeight && { '--pf-v5-c-menu__content--Height': menuHeight })), (maxMenuHeight && { '--pf-v5-c-menu__content--MaxHeight': maxMenuHeight })) }), children))));
|
|
5705
5705
|
});
|
|
5706
5706
|
MenuContent.displayName = 'MenuContent';
|
|
5707
5707
|
|
|
5708
|
+
const MenuSearch = React.forwardRef((props, ref) => (React.createElement("div", Object.assign({}, props, { className: css$1(menuStyles.menuSearch, props.className), ref: ref }))));
|
|
5709
|
+
MenuSearch.displayName = 'MenuSearch';
|
|
5710
|
+
|
|
5711
|
+
const MenuSearchInput = React.forwardRef((props, ref) => (
|
|
5712
|
+
// Update to use the styles object when core adds the class
|
|
5713
|
+
React.createElement("div", Object.assign({}, props, { className: css$1('pf-v5-c-menu__search-input', props.className), ref: ref }))));
|
|
5714
|
+
MenuSearchInput.displayName = 'MenuSearchInput';
|
|
5715
|
+
|
|
5716
|
+
const MenuGroupBase = (_a) => {
|
|
5717
|
+
var { children, className = '', label = '', titleId, innerRef, labelHeadingLevel: HeadingLevel = 'h1' } = _a, props = __rest$1(_a, ["children", "className", "label", "titleId", "innerRef", "labelHeadingLevel"]);
|
|
5718
|
+
const Wrapper = typeof label === 'function' ? label : HeadingLevel;
|
|
5719
|
+
return (React.createElement("section", Object.assign({}, props, { className: css$1(menuStyles.menuGroup, className), ref: innerRef }),
|
|
5720
|
+
React.createElement(React.Fragment, null,
|
|
5721
|
+
['function', 'string'].includes(typeof label) ? (React.createElement(Wrapper, { className: css$1(menuStyles.menuGroupTitle), id: titleId }, label)) : (label),
|
|
5722
|
+
children)));
|
|
5723
|
+
};
|
|
5724
|
+
const MenuGroup = React.forwardRef((props, ref) => (React.createElement(MenuGroupBase, Object.assign({}, props, { innerRef: ref }))));
|
|
5725
|
+
MenuGroup.displayName = 'MenuGroup';
|
|
5726
|
+
|
|
5708
5727
|
const c_menu_m_flyout__menu_top_offset = {
|
|
5709
5728
|
"name": "--pf-v5-c-menu--m-flyout__menu--top-offset",
|
|
5710
5729
|
"value": "0px",
|
|
@@ -5798,13 +5817,13 @@ class Checkbox extends React.Component {
|
|
|
5798
5817
|
checkedProps.defaultChecked = defaultChecked;
|
|
5799
5818
|
}
|
|
5800
5819
|
checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
|
|
5801
|
-
return (React.createElement(Component, { className: css(styles$k.check, !label && styles$k.modifiers.standalone, className) },
|
|
5802
|
-
React.createElement("input", Object.assign({}, props, { className: css(styles$k.checkInput, inputClassName), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, required: isRequired, ref: (elem) => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
5803
|
-
label && (React.createElement("label", { className: css(styles$k.checkLabel, isDisabled && styles$k.modifiers.disabled), htmlFor: props.id },
|
|
5820
|
+
return (React.createElement(Component, { className: css$1(styles$k.check, !label && styles$k.modifiers.standalone, className) },
|
|
5821
|
+
React.createElement("input", Object.assign({}, props, { className: css$1(styles$k.checkInput, inputClassName), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, required: isRequired, ref: (elem) => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
|
|
5822
|
+
label && (React.createElement("label", { className: css$1(styles$k.checkLabel, isDisabled && styles$k.modifiers.disabled), htmlFor: props.id },
|
|
5804
5823
|
label,
|
|
5805
|
-
isRequired && (React.createElement("span", { className: css(styles$k.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))),
|
|
5806
|
-
description && React.createElement("span", { className: css(styles$k.checkDescription) }, description),
|
|
5807
|
-
body && React.createElement("span", { className: css(styles$k.checkBody) }, body)));
|
|
5824
|
+
isRequired && (React.createElement("span", { className: css$1(styles$k.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))),
|
|
5825
|
+
description && React.createElement("span", { className: css$1(styles$k.checkDescription) }, description),
|
|
5826
|
+
body && React.createElement("span", { className: css$1(styles$k.checkBody) }, body)));
|
|
5808
5827
|
}
|
|
5809
5828
|
}
|
|
5810
5829
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -5839,8 +5858,8 @@ const MenuItemActionBase = (_a) => {
|
|
|
5839
5858
|
// event specified on the Menu
|
|
5840
5859
|
onActionClick && onActionClick(event, itemId, actionId);
|
|
5841
5860
|
};
|
|
5842
|
-
return (React.createElement("button", Object.assign({ className: css(menuStyles.menuItemAction, isFavorited !== null && menuStyles.modifiers.favorite, isFavorited && menuStyles.modifiers.favorited, className), "aria-label": ariaLabel, onClick: onClickButton }, ((isDisabled === true || isDisabledContext === true) && { disabled: true }), { ref: innerRef, tabIndex: -1 }, props),
|
|
5843
|
-
React.createElement("span", { className: css(menuStyles.menuItemActionIcon) }, icon === 'favorites' || isFavorited !== null ? React.createElement(StarIcon, { "aria-hidden": true }) : icon)));
|
|
5861
|
+
return (React.createElement("button", Object.assign({ className: css$1(menuStyles.menuItemAction, isFavorited !== null && menuStyles.modifiers.favorite, isFavorited && menuStyles.modifiers.favorited, className), "aria-label": ariaLabel, onClick: onClickButton }, ((isDisabled === true || isDisabledContext === true) && { disabled: true }), { ref: innerRef, tabIndex: -1 }, props),
|
|
5862
|
+
React.createElement("span", { className: css$1(menuStyles.menuItemActionIcon) }, icon === 'favorites' || isFavorited !== null ? React.createElement(StarIcon, { "aria-hidden": true }) : icon)));
|
|
5844
5863
|
}))));
|
|
5845
5864
|
};
|
|
5846
5865
|
const MenuItemAction = React.forwardRef((props, ref) => (React.createElement(MenuItemActionBase, Object.assign({}, props, { innerRef: ref }))));
|
|
@@ -6020,28 +6039,28 @@ const MenuItemBase = (_a) => {
|
|
|
6020
6039
|
}
|
|
6021
6040
|
};
|
|
6022
6041
|
const isSelectMenu = menuRole === 'listbox';
|
|
6023
|
-
return (React.createElement("li", Object.assign({ className: css(menuStyles.menuListItem, isDisabled && menuStyles.modifiers.disabled, _isOnPath && menuStyles.modifiers.currentPath, isLoadButton && menuStyles.modifiers.load, isLoading && menuStyles.modifiers.loading, isFocused && menuStyles.modifiers.focus, isDanger && menuStyles.modifiers.danger, className), onMouseOver: onMouseOver }, (flyoutMenu && { onKeyDown: handleFlyout }), { ref: ref, role: !hasCheckbox ? 'none' : 'menuitem' }, (hasCheckbox && { 'aria-label': ariaLabel }), props),
|
|
6024
|
-
React.createElement(GenerateId, null, (randomId) => (React.createElement(Component, Object.assign({ id: id, tabIndex: -1, className: css(menuStyles.menuItem, getIsSelected() && !hasCheckbox && menuStyles.modifiers.selected, className), "aria-current": getAriaCurrent() }, (!hasCheckbox && { disabled: isDisabled, 'aria-label': ariaLabel }), (!hasCheckbox && !flyoutMenu && { role: isSelectMenu ? 'option' : 'menuitem' }), (!hasCheckbox && !flyoutMenu && isSelectMenu && { 'aria-selected': getIsSelected() }), { ref: innerRef }, (!hasCheckbox && {
|
|
6042
|
+
return (React.createElement("li", Object.assign({ className: css$1(menuStyles.menuListItem, isDisabled && menuStyles.modifiers.disabled, _isOnPath && menuStyles.modifiers.currentPath, isLoadButton && menuStyles.modifiers.load, isLoading && menuStyles.modifiers.loading, isFocused && menuStyles.modifiers.focus, isDanger && menuStyles.modifiers.danger, className), onMouseOver: onMouseOver }, (flyoutMenu && { onKeyDown: handleFlyout }), { ref: ref, role: !hasCheckbox ? 'none' : 'menuitem' }, (hasCheckbox && { 'aria-label': ariaLabel }), props),
|
|
6043
|
+
React.createElement(GenerateId, null, (randomId) => (React.createElement(Component, Object.assign({ id: id, tabIndex: -1, className: css$1(menuStyles.menuItem, getIsSelected() && !hasCheckbox && menuStyles.modifiers.selected, className), "aria-current": getAriaCurrent() }, (!hasCheckbox && { disabled: isDisabled, 'aria-label': ariaLabel }), (!hasCheckbox && !flyoutMenu && { role: isSelectMenu ? 'option' : 'menuitem' }), (!hasCheckbox && !flyoutMenu && isSelectMenu && { 'aria-selected': getIsSelected() }), { ref: innerRef }, (!hasCheckbox && {
|
|
6025
6044
|
onClick: (event) => {
|
|
6026
6045
|
onItemSelect(event, onSelect);
|
|
6027
6046
|
drill && drill(event);
|
|
6028
6047
|
flyoutMenu && handleFlyout(event);
|
|
6029
6048
|
}
|
|
6030
6049
|
}), (hasCheckbox && { htmlFor: randomId }), additionalProps),
|
|
6031
|
-
React.createElement("span", { className: css(menuStyles.menuItemMain) },
|
|
6032
|
-
direction === 'up' && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6050
|
+
React.createElement("span", { className: css$1(menuStyles.menuItemMain) },
|
|
6051
|
+
direction === 'up' && (React.createElement("span", { className: css$1(menuStyles.menuItemToggleIcon) },
|
|
6033
6052
|
React.createElement(AngleLeftIcon, { "aria-hidden": true }))),
|
|
6034
|
-
icon && React.createElement("span", { className: css(menuStyles.menuItemIcon) }, icon),
|
|
6035
|
-
hasCheckbox && (React.createElement("span", { className: css(menuStyles.menuItemCheck) },
|
|
6053
|
+
icon && React.createElement("span", { className: css$1(menuStyles.menuItemIcon) }, icon),
|
|
6054
|
+
hasCheckbox && (React.createElement("span", { className: css$1(menuStyles.menuItemCheck) },
|
|
6036
6055
|
React.createElement(Checkbox, { id: randomId, component: "span", isChecked: isSelected || false, onChange: (event) => onItemSelect(event, onSelect), isDisabled: isDisabled }))),
|
|
6037
|
-
React.createElement("span", { className: css(menuStyles.menuItemText) }, children),
|
|
6038
|
-
isExternalLink && (React.createElement("span", { className: css(menuStyles.menuItemExternalIcon) },
|
|
6056
|
+
React.createElement("span", { className: css$1(menuStyles.menuItemText) }, children),
|
|
6057
|
+
isExternalLink && (React.createElement("span", { className: css$1(menuStyles.menuItemExternalIcon) },
|
|
6039
6058
|
React.createElement(ExternalLinkAltIcon$1, { "aria-hidden": true }))),
|
|
6040
|
-
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css(menuStyles.menuItemToggleIcon) },
|
|
6059
|
+
(flyoutMenu || direction === 'down') && (React.createElement("span", { className: css$1(menuStyles.menuItemToggleIcon) },
|
|
6041
6060
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
6042
|
-
getIsSelected() && (React.createElement("span", { className: css(menuStyles.menuItemSelectIcon) },
|
|
6061
|
+
getIsSelected() && (React.createElement("span", { className: css$1(menuStyles.menuItemSelectIcon) },
|
|
6043
6062
|
React.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6044
|
-
description && direction !== 'up' && (React.createElement("span", { className: css(menuStyles.menuItemDescription) },
|
|
6063
|
+
description && direction !== 'up' && (React.createElement("span", { className: css$1(menuStyles.menuItemDescription) },
|
|
6045
6064
|
React.createElement("span", null, description)))))),
|
|
6046
6065
|
flyoutVisible && (React.createElement(MenuContext.Provider, { value: { disableHover } },
|
|
6047
6066
|
React.createElement(FlyoutContext.Provider, { value: { direction: flyoutXDirection } }, flyoutMenu))),
|
|
@@ -6056,7 +6075,7 @@ MenuItem.displayName = 'MenuItem';
|
|
|
6056
6075
|
const MenuList = (_a) => {
|
|
6057
6076
|
var { children = null, className, isAriaMultiselectable = false, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable", 'aria-label']);
|
|
6058
6077
|
const { role } = React.useContext(MenuContext);
|
|
6059
|
-
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css(menuStyles.menuList, className), "aria-label": ariaLabel }, props), children));
|
|
6078
|
+
return (React.createElement("ul", Object.assign({ role: role }, (role === 'listbox' && { 'aria-multiselectable': isAriaMultiselectable }), { className: css$1(menuStyles.menuList, className), "aria-label": ariaLabel }, props), children));
|
|
6060
6079
|
};
|
|
6061
6080
|
MenuList.displayName = 'MenuList';
|
|
6062
6081
|
|
|
@@ -6106,7 +6125,7 @@ const SelectBase = (_a) => {
|
|
|
6106
6125
|
window.removeEventListener('click', handleClick);
|
|
6107
6126
|
};
|
|
6108
6127
|
}, [isOpen, menuRef, toggleRef, onOpenChange, onOpenChangeKeys]);
|
|
6109
|
-
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css(className), ref: menuRef, onSelect: (event, value) => {
|
|
6128
|
+
const menu = (React__default.createElement(Menu, Object.assign({ role: role, className: css$1(className), ref: menuRef, onSelect: (event, value) => {
|
|
6110
6129
|
onSelect && onSelect(event, value);
|
|
6111
6130
|
shouldFocusToggleOnSelect && toggleRef.current.focus();
|
|
6112
6131
|
}, isPlain: isPlain, selected: selected }, getOUIAProps(Select.displayName, props.ouiaId !== undefined ? props.ouiaId : getDefaultOUIAId(Select.displayName), props.ouiaSafe !== undefined ? props.ouiaSafe : true), props),
|
|
@@ -6118,13 +6137,13 @@ Select.displayName = 'Select';
|
|
|
6118
6137
|
|
|
6119
6138
|
const SelectList = (_a) => {
|
|
6120
6139
|
var { children, className, isAriaMultiselectable = false } = _a, props = __rest$1(_a, ["children", "className", "isAriaMultiselectable"]);
|
|
6121
|
-
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css(className) }, props), children));
|
|
6140
|
+
return (React__default.createElement(MenuList, Object.assign({ isAriaMultiselectable: isAriaMultiselectable, className: css$1(className) }, props), children));
|
|
6122
6141
|
};
|
|
6123
6142
|
SelectList.displayName = 'SelectList';
|
|
6124
6143
|
|
|
6125
6144
|
const SelectOptionBase = (_a) => {
|
|
6126
6145
|
var { children, className, innerRef, value } = _a, props = __rest$1(_a, ["children", "className", "innerRef", "value"]);
|
|
6127
|
-
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css(className) }, props), children));
|
|
6146
|
+
return (React__default.createElement(MenuItem, Object.assign({ itemId: value, ref: innerRef, className: css$1(className) }, props), children));
|
|
6128
6147
|
};
|
|
6129
6148
|
const SelectOption = React__default.forwardRef((props, ref) => (React__default.createElement(SelectOptionBase, Object.assign({}, props, { innerRef: ref }))));
|
|
6130
6149
|
SelectOption.displayName = 'SelectOption';
|
|
@@ -6177,25 +6196,25 @@ class MenuToggleBase extends React.Component {
|
|
|
6177
6196
|
const isPlain = variant === 'plain';
|
|
6178
6197
|
const isPlainText = variant === 'plainText';
|
|
6179
6198
|
const isTypeahead = variant === 'typeahead';
|
|
6180
|
-
const toggleControls = (React.createElement("span", { className: css(styles$j.menuToggleControls) },
|
|
6181
|
-
React.createElement("span", { className: css(styles$j.menuToggleToggleIcon) },
|
|
6199
|
+
const toggleControls = (React.createElement("span", { className: css$1(styles$j.menuToggleControls) },
|
|
6200
|
+
React.createElement("span", { className: css$1(styles$j.menuToggleToggleIcon) },
|
|
6182
6201
|
React.createElement(CaretDownIcon, { "aria-hidden": true }))));
|
|
6183
6202
|
const content = (React.createElement(React.Fragment, null,
|
|
6184
|
-
icon && React.createElement("span", { className: css(styles$j.menuToggleIcon) }, icon),
|
|
6185
|
-
isTypeahead ? children : React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
|
|
6186
|
-
React.isValidElement(badge) && React.createElement("span", { className: css(styles$j.menuToggleCount) }, badge),
|
|
6187
|
-
isTypeahead ? (React.createElement("button", { type: "button", className: css(styles$j.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": "Menu toggle" }, toggleControls)) : (toggleControls)));
|
|
6188
|
-
const commonStyles = css(styles$j.menuToggle, isExpanded && styles$j.modifiers.expanded, variant === 'primary' && styles$j.modifiers.primary, variant === 'secondary' && styles$j.modifiers.secondary, (isPlain || isPlainText) && styles$j.modifiers.plain, isPlainText && styles$j.modifiers.text, isFullHeight && styles$j.modifiers.fullHeight, isFullWidth && styles$j.modifiers.fullWidth, isDisabled && styles$j.modifiers.disabled, className);
|
|
6203
|
+
icon && React.createElement("span", { className: css$1(styles$j.menuToggleIcon) }, icon),
|
|
6204
|
+
isTypeahead ? children : React.createElement("span", { className: css$1(styles$j.menuToggleText) }, children),
|
|
6205
|
+
React.isValidElement(badge) && React.createElement("span", { className: css$1(styles$j.menuToggleCount) }, badge),
|
|
6206
|
+
isTypeahead ? (React.createElement("button", { type: "button", className: css$1(styles$j.menuToggleButton), "aria-expanded": isExpanded, onClick: onClick, "aria-label": "Menu toggle" }, toggleControls)) : (toggleControls)));
|
|
6207
|
+
const commonStyles = css$1(styles$j.menuToggle, isExpanded && styles$j.modifiers.expanded, variant === 'primary' && styles$j.modifiers.primary, variant === 'secondary' && styles$j.modifiers.secondary, (isPlain || isPlainText) && styles$j.modifiers.plain, isPlainText && styles$j.modifiers.text, isFullHeight && styles$j.modifiers.fullHeight, isFullWidth && styles$j.modifiers.fullWidth, isDisabled && styles$j.modifiers.disabled, className);
|
|
6189
6208
|
const componentProps = Object.assign(Object.assign({ children: isPlain ? children : content }, (isDisabled && { disabled: true })), otherProps);
|
|
6190
6209
|
if (isTypeahead) {
|
|
6191
|
-
return (React.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
|
|
6210
|
+
return (React.createElement("div", Object.assign({ ref: innerRef, className: css$1(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
|
|
6192
6211
|
}
|
|
6193
6212
|
if (splitButtonOptions) {
|
|
6194
|
-
return (React.createElement("div", { ref: innerRef, className: css(commonStyles, styles$j.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$j.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
|
|
6213
|
+
return (React.createElement("div", { ref: innerRef, className: css$1(commonStyles, styles$j.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$j.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
|
|
6195
6214
|
splitButtonOptions.items,
|
|
6196
|
-
React.createElement("button", Object.assign({ className: css(styles$j.menuToggleButton), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick }, otherProps), toggleControls)));
|
|
6215
|
+
React.createElement("button", Object.assign({ className: css$1(styles$j.menuToggleButton), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick }, otherProps), toggleControls)));
|
|
6197
6216
|
}
|
|
6198
|
-
return (React.createElement("button", Object.assign({ className: css(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps)));
|
|
6217
|
+
return (React.createElement("button", Object.assign({ className: css$1(commonStyles), type: "button", "aria-label": ariaLabel, "aria-expanded": isExpanded, ref: innerRef, disabled: isDisabled, onClick: onClick }, componentProps)));
|
|
6199
6218
|
}
|
|
6200
6219
|
}
|
|
6201
6220
|
MenuToggleBase.defaultProps = {
|
|
@@ -6241,11 +6260,11 @@ class FormSelect extends React.Component {
|
|
|
6241
6260
|
const selectedOption = React.Children.toArray(children).find((option) => option.props.value === value);
|
|
6242
6261
|
const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
|
|
6243
6262
|
const hasStatusIcon = ['success', 'error', 'warning'].includes(validated);
|
|
6244
|
-
return (React.createElement("div", { className: css(formStyles$1.formControl, isDisabled && formStyles$1.modifiers.disabled, isSelectedPlaceholder && formStyles$1.modifiers.placeholder, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
6263
|
+
return (React.createElement("div", { className: css$1(formStyles$1.formControl, isDisabled && formStyles$1.modifiers.disabled, isSelectedPlaceholder && formStyles$1.modifiers.placeholder, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
6245
6264
|
React.createElement("select", Object.assign({}, props, { "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),
|
|
6246
|
-
React.createElement("div", { className: css(formStyles$1.formControlUtilities) },
|
|
6265
|
+
React.createElement("div", { className: css$1(formStyles$1.formControlUtilities) },
|
|
6247
6266
|
hasStatusIcon && React.createElement(FormControlIcon, { status: validated }),
|
|
6248
|
-
React.createElement("div", { className: css(formStyles$1.formControlToggleIcon) },
|
|
6267
|
+
React.createElement("div", { className: css$1(formStyles$1.formControlToggleIcon) },
|
|
6249
6268
|
React.createElement(CaretDownIcon, null)))));
|
|
6250
6269
|
}
|
|
6251
6270
|
}
|
|
@@ -6319,9 +6338,9 @@ class TextAreaBase extends React.Component {
|
|
|
6319
6338
|
props = __rest$1(_a, ["className", "value", "validated", "isRequired", "isDisabled", "readOnlyVariant", "resizeOrientation", "innerRef", "disabled", "autoResize", "onChange"]);
|
|
6320
6339
|
const orientation = `resize${capitalize(resizeOrientation)}`;
|
|
6321
6340
|
const hasStatusIcon = ['success', 'error', 'warning'].includes(validated);
|
|
6322
|
-
return (React.createElement("div", { className: css(formStyles$1.formControl, readOnlyVariant && formStyles$1.modifiers.readonly, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, resizeOrientation && formStyles$1.modifiers[orientation], isDisabled && formStyles$1.modifiers.disabled, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
6341
|
+
return (React.createElement("div", { className: css$1(formStyles$1.formControl, readOnlyVariant && formStyles$1.modifiers.readonly, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, resizeOrientation && formStyles$1.modifiers[orientation], isDisabled && formStyles$1.modifiers.disabled, hasStatusIcon && formStyles$1.modifiers[validated], className) },
|
|
6323
6342
|
React.createElement("textarea", Object.assign({ onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: !!readOnlyVariant, ref: innerRef || this.inputRef }, props)),
|
|
6324
|
-
hasStatusIcon && (React.createElement("div", { className: css(formStyles$1.formControlUtilities) },
|
|
6343
|
+
hasStatusIcon && (React.createElement("div", { className: css$1(formStyles$1.formControlUtilities) },
|
|
6325
6344
|
React.createElement(FormControlIcon, { status: validated })))));
|
|
6326
6345
|
}
|
|
6327
6346
|
}
|
|
@@ -6389,14 +6408,14 @@ const InputGroupBase = (_a) => {
|
|
|
6389
6408
|
'aria-describedby': child.props['aria-describedby'] === '' ? undefined : (_a = idItem === null || idItem === void 0 ? void 0 : idItem.props) === null || _a === void 0 ? void 0 : _a.id
|
|
6390
6409
|
});
|
|
6391
6410
|
});
|
|
6392
|
-
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$i.inputGroup, className) }, props), idItem ? childrenWithId : children));
|
|
6411
|
+
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$1(styles$i.inputGroup, className) }, props), idItem ? childrenWithId : children));
|
|
6393
6412
|
};
|
|
6394
6413
|
const InputGroup = React.forwardRef((props, ref) => (React.createElement(InputGroupBase, Object.assign({ innerRef: ref }, props))));
|
|
6395
6414
|
InputGroup.displayName = 'InputGroup';
|
|
6396
6415
|
|
|
6397
6416
|
const InputGroupItem = (_a) => {
|
|
6398
6417
|
var { className, children, isFill = false, isBox = false, isPlain, isDisabled } = _a, props = __rest$1(_a, ["className", "children", "isFill", "isBox", "isPlain", "isDisabled"]);
|
|
6399
|
-
return (React.createElement("div", Object.assign({ className: css(styles$i.inputGroupItem, isFill && styles$i.modifiers.fill, isBox && styles$i.modifiers.box, isPlain && styles$i.modifiers.plain, isDisabled && styles$i.modifiers.disabled, className) }, props), children));
|
|
6418
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$i.inputGroupItem, isFill && styles$i.modifiers.fill, isBox && styles$i.modifiers.box, isPlain && styles$i.modifiers.plain, isDisabled && styles$i.modifiers.disabled, className) }, props), children));
|
|
6400
6419
|
};
|
|
6401
6420
|
InputGroupItem.displayName = 'InputGroupItem';
|
|
6402
6421
|
|
|
@@ -6464,19 +6483,19 @@ const Card = (_a) => {
|
|
|
6464
6483
|
}
|
|
6465
6484
|
const getSelectableModifiers = () => {
|
|
6466
6485
|
if (isDisabledRaised) {
|
|
6467
|
-
return css(styles$h.modifiers.nonSelectableRaised);
|
|
6486
|
+
return css$1(styles$h.modifiers.nonSelectableRaised);
|
|
6468
6487
|
}
|
|
6469
6488
|
if (isSelectableRaised) {
|
|
6470
|
-
return css(styles$h.modifiers.selectableRaised, isSelected && styles$h.modifiers.selectedRaised);
|
|
6489
|
+
return css$1(styles$h.modifiers.selectableRaised, isSelected && styles$h.modifiers.selectedRaised);
|
|
6471
6490
|
}
|
|
6472
6491
|
if (isSelectable && isClickable) {
|
|
6473
|
-
return css(styles$h.modifiers.selectable, styles$h.modifiers.clickable, isSelected && styles$h.modifiers.current);
|
|
6492
|
+
return css$1(styles$h.modifiers.selectable, styles$h.modifiers.clickable, isSelected && styles$h.modifiers.current);
|
|
6474
6493
|
}
|
|
6475
6494
|
if (isSelectable) {
|
|
6476
|
-
return css(styles$h.modifiers.selectable, isSelected && styles$h.modifiers.selected);
|
|
6495
|
+
return css$1(styles$h.modifiers.selectable, isSelected && styles$h.modifiers.selected);
|
|
6477
6496
|
}
|
|
6478
6497
|
if (isClickable) {
|
|
6479
|
-
return css(styles$h.modifiers.clickable, isSelected && styles$h.modifiers.selected);
|
|
6498
|
+
return css$1(styles$h.modifiers.clickable, isSelected && styles$h.modifiers.selected);
|
|
6480
6499
|
}
|
|
6481
6500
|
return '';
|
|
6482
6501
|
};
|
|
@@ -6507,21 +6526,21 @@ const Card = (_a) => {
|
|
|
6507
6526
|
isDisabled
|
|
6508
6527
|
} },
|
|
6509
6528
|
hasSelectableInput && (React.createElement("input", Object.assign({ className: "pf-v5-screen-reader", id: `${id}-input` }, ariaProps, { type: "checkbox", checked: isSelected, onChange: (event) => onSelectableInputChange(event, id), disabled: isDisabledRaised, tabIndex: -1 }))),
|
|
6510
|
-
React.createElement(Component, Object.assign({ id: id, className: css(styles$h.card, isCompact && styles$h.modifiers.compact, isExpanded && styles$h.modifiers.expanded, isFlat && styles$h.modifiers.flat, isRounded && styles$h.modifiers.rounded, isLarge && styles$h.modifiers.displayLg, isFullHeight && styles$h.modifiers.fullHeight, isPlain && styles$h.modifiers.plain, getSelectableModifiers(), isDisabled && styles$h.modifiers.disabled, className), tabIndex: isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
6529
|
+
React.createElement(Component, Object.assign({ id: id, className: css$1(styles$h.card, isCompact && styles$h.modifiers.compact, isExpanded && styles$h.modifiers.expanded, isFlat && styles$h.modifiers.flat, isRounded && styles$h.modifiers.rounded, isLarge && styles$h.modifiers.displayLg, isFullHeight && styles$h.modifiers.fullHeight, isPlain && styles$h.modifiers.plain, getSelectableModifiers(), isDisabled && styles$h.modifiers.disabled, className), tabIndex: isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
6511
6530
|
};
|
|
6512
6531
|
Card.displayName = 'Card';
|
|
6513
6532
|
|
|
6514
6533
|
const CardBody = (_a) => {
|
|
6515
6534
|
var { children, className, component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
|
|
6516
6535
|
const Component = component;
|
|
6517
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardBody, !isFilled && styles$h.modifiers.noFill, className) }, props), children));
|
|
6536
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$h.cardBody, !isFilled && styles$h.modifiers.noFill, className) }, props), children));
|
|
6518
6537
|
};
|
|
6519
6538
|
CardBody.displayName = 'CardBody';
|
|
6520
6539
|
|
|
6521
6540
|
const CardFooter = (_a) => {
|
|
6522
6541
|
var { children, className, component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
6523
6542
|
const Component = component;
|
|
6524
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$h.cardFooter, className) }, props), children));
|
|
6543
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$h.cardFooter, className) }, props), children));
|
|
6525
6544
|
};
|
|
6526
6545
|
CardFooter.displayName = 'CardFooter';
|
|
6527
6546
|
|
|
@@ -6534,26 +6553,26 @@ const CardTitle = (_a) => {
|
|
|
6534
6553
|
registerTitleId(titleId);
|
|
6535
6554
|
return () => registerTitleId('');
|
|
6536
6555
|
}, [registerTitleId, titleId]);
|
|
6537
|
-
return (React.createElement("div", { className: css(styles$h.cardTitle) },
|
|
6538
|
-
React.createElement(Component, Object.assign({ className: css(styles$h.cardTitleText, className), id: titleId || undefined }, props), children)));
|
|
6556
|
+
return (React.createElement("div", { className: css$1(styles$h.cardTitle) },
|
|
6557
|
+
React.createElement(Component, Object.assign({ className: css$1(styles$h.cardTitleText, className), id: titleId || undefined }, props), children)));
|
|
6539
6558
|
};
|
|
6540
6559
|
CardTitle.displayName = 'CardTitle';
|
|
6541
6560
|
|
|
6542
6561
|
const CardHeaderMain = (_a) => {
|
|
6543
6562
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6544
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeaderMain, className) }, props), children));
|
|
6563
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardHeaderMain, className) }, props), children));
|
|
6545
6564
|
};
|
|
6546
6565
|
CardHeaderMain.displayName = 'CardHeaderMain';
|
|
6547
6566
|
|
|
6548
6567
|
const CardActions = (_a) => {
|
|
6549
6568
|
var { children, className, hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
|
|
6550
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardActions, hasNoOffset && styles$h.modifiers.noOffset, className) }, props), children));
|
|
6569
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardActions, hasNoOffset && styles$h.modifiers.noOffset, className) }, props), children));
|
|
6551
6570
|
};
|
|
6552
6571
|
CardActions.displayName = 'CardActions';
|
|
6553
6572
|
|
|
6554
6573
|
const CardSelectableActions = (_a) => {
|
|
6555
6574
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6556
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardSelectableActions, className) }, props), children));
|
|
6575
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardSelectableActions, className) }, props), children));
|
|
6557
6576
|
};
|
|
6558
6577
|
CardSelectableActions.displayName = 'CardSelectableActions';
|
|
6559
6578
|
|
|
@@ -6591,16 +6610,16 @@ class Radio extends React.Component {
|
|
|
6591
6610
|
// eslint-disable-next-line no-console
|
|
6592
6611
|
console.error('Radio:', 'id is required to make input accessible');
|
|
6593
6612
|
}
|
|
6594
|
-
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css(styles$g.radioInput, inputClassName), 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))));
|
|
6613
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$1(styles$g.radioInput, inputClassName), 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))));
|
|
6595
6614
|
let labelRendered = null;
|
|
6596
6615
|
if (label && isLabelWrapped) {
|
|
6597
|
-
labelRendered = React.createElement("span", { className: css(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled) }, label);
|
|
6616
|
+
labelRendered = React.createElement("span", { className: css$1(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled) }, label);
|
|
6598
6617
|
}
|
|
6599
6618
|
else if (label) {
|
|
6600
|
-
labelRendered = (React.createElement("label", { className: css(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled), htmlFor: props.id }, label));
|
|
6619
|
+
labelRendered = (React.createElement("label", { className: css$1(styles$g.radioLabel, isDisabled && styles$g.modifiers.disabled), htmlFor: props.id }, label));
|
|
6601
6620
|
}
|
|
6602
|
-
const descRender = description ? React.createElement("span", { className: css(styles$g.radioDescription) }, description) : null;
|
|
6603
|
-
const bodyRender = body ? React.createElement("span", { className: css(styles$g.radioBody) }, body) : null;
|
|
6621
|
+
const descRender = description ? React.createElement("span", { className: css$1(styles$g.radioDescription) }, description) : null;
|
|
6622
|
+
const bodyRender = body ? React.createElement("span", { className: css$1(styles$g.radioBody) }, body) : null;
|
|
6604
6623
|
const childrenRendered = isLabelBeforeButton ? (React.createElement(React.Fragment, null,
|
|
6605
6624
|
labelRendered,
|
|
6606
6625
|
inputRendered,
|
|
@@ -6610,7 +6629,7 @@ class Radio extends React.Component {
|
|
|
6610
6629
|
labelRendered,
|
|
6611
6630
|
descRender,
|
|
6612
6631
|
bodyRender));
|
|
6613
|
-
return isLabelWrapped ? (React.createElement("label", { className: css(styles$g.radio, className), htmlFor: props.id }, childrenRendered)) : (React.createElement("div", { className: css(styles$g.radio, !label && styles$g.modifiers.standalone, className) }, childrenRendered));
|
|
6632
|
+
return isLabelWrapped ? (React.createElement("label", { className: css$1(styles$g.radio, className), htmlFor: props.id }, childrenRendered)) : (React.createElement("div", { className: css$1(styles$g.radio, !label && styles$g.modifiers.standalone, className) }, childrenRendered));
|
|
6614
6633
|
}
|
|
6615
6634
|
}
|
|
6616
6635
|
Radio.displayName = 'Radio';
|
|
@@ -6624,11 +6643,11 @@ Radio.defaultProps = {
|
|
|
6624
6643
|
const CardHeader = (_a) => {
|
|
6625
6644
|
var { children, className, actions, selectableActions, id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "actions", "selectableActions", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
6626
6645
|
return (React.createElement(CardContext.Consumer, null, ({ cardId, isClickable, isSelectable, isDisabled: isCardDisabled }) => {
|
|
6627
|
-
const cardHeaderToggle = (React.createElement("div", { className: css(styles$h.cardHeaderToggle) },
|
|
6646
|
+
const cardHeaderToggle = (React.createElement("div", { className: css$1(styles$h.cardHeaderToggle) },
|
|
6628
6647
|
React.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: (evt) => {
|
|
6629
6648
|
onExpand(evt, cardId);
|
|
6630
6649
|
} }, toggleButtonProps),
|
|
6631
|
-
React.createElement("span", { className: css(styles$h.cardHeaderToggleIcon) },
|
|
6650
|
+
React.createElement("span", { className: css$1(styles$h.cardHeaderToggleIcon) },
|
|
6632
6651
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
6633
6652
|
if ((actions === null || actions === void 0 ? void 0 : actions.actions) && !(isClickable && isSelectable)) {
|
|
6634
6653
|
// eslint-disable-next-line no-console
|
|
@@ -6663,7 +6682,7 @@ const CardHeader = (_a) => {
|
|
|
6663
6682
|
}
|
|
6664
6683
|
return baseProps;
|
|
6665
6684
|
};
|
|
6666
|
-
return (React.createElement("div", Object.assign({ className: css(styles$h.cardHeader, isToggleRightAligned && styles$h.modifiers.toggleRight, className), id: id }, props),
|
|
6685
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$h.cardHeader, isToggleRightAligned && styles$h.modifiers.toggleRight, className), id: id }, props),
|
|
6667
6686
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
6668
6687
|
(actions || (selectableActions && (isClickable || isSelectable))) && (React.createElement(CardActions, { className: actions === null || actions === void 0 ? void 0 : actions.className, hasNoOffset: (actions === null || actions === void 0 ? void 0 : actions.hasNoOffset) || (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.hasNoOffset) }, actions === null || actions === void 0 ? void 0 :
|
|
6669
6688
|
actions.actions,
|
|
@@ -6696,10 +6715,10 @@ var styles$f = {
|
|
|
6696
6715
|
|
|
6697
6716
|
const CodeBlock = (_a) => {
|
|
6698
6717
|
var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
|
|
6699
|
-
return (React.createElement("div", Object.assign({ className: css(styles$f.codeBlock, className) }, props),
|
|
6700
|
-
actions && (React.createElement("div", { className: css(styles$f.codeBlockHeader) },
|
|
6701
|
-
React.createElement("div", { className: css(styles$f.codeBlockActions) }, actions))),
|
|
6702
|
-
React.createElement("div", { className: css(styles$f.codeBlockContent) }, children)));
|
|
6718
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.codeBlock, className) }, props),
|
|
6719
|
+
actions && (React.createElement("div", { className: css$1(styles$f.codeBlockHeader) },
|
|
6720
|
+
React.createElement("div", { className: css$1(styles$f.codeBlockActions) }, actions))),
|
|
6721
|
+
React.createElement("div", { className: css$1(styles$f.codeBlockContent) }, children)));
|
|
6703
6722
|
};
|
|
6704
6723
|
CodeBlock.displayName = 'CodeBlock';
|
|
6705
6724
|
|
|
@@ -6742,33 +6761,33 @@ const PopoverContext = React.createContext({});
|
|
|
6742
6761
|
|
|
6743
6762
|
const PopoverContent = (_a) => {
|
|
6744
6763
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6745
|
-
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverContent, className) }, props), children));
|
|
6764
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.popoverContent, className) }, props), children));
|
|
6746
6765
|
};
|
|
6747
6766
|
PopoverContent.displayName = 'PopoverContent';
|
|
6748
6767
|
|
|
6749
6768
|
const PopoverBody = (_a) => {
|
|
6750
6769
|
var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
|
|
6751
|
-
return (React.createElement("div", Object.assign({ className: css(styles$e.popoverBody, className), id: id }, props), children));
|
|
6770
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.popoverBody, className), id: id }, props), children));
|
|
6752
6771
|
};
|
|
6753
6772
|
PopoverBody.displayName = 'PopoverBody';
|
|
6754
6773
|
|
|
6755
6774
|
const PopoverHeaderIcon = (_a) => {
|
|
6756
6775
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6757
|
-
return (React.createElement("span", Object.assign({ className: css(styles$e.popoverTitleIcon, className) }, props), children));
|
|
6776
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$e.popoverTitleIcon, className) }, props), children));
|
|
6758
6777
|
};
|
|
6759
6778
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
6760
6779
|
|
|
6761
6780
|
const PopoverHeaderText = (_a) => {
|
|
6762
6781
|
var { children, className, headingLevel } = _a, props = __rest$1(_a, ["children", "className", "headingLevel"]);
|
|
6763
6782
|
const HeadingLevel = headingLevel;
|
|
6764
|
-
return (React.createElement(HeadingLevel, Object.assign({ className: css(styles$e.popoverTitleText, className) }, props), children));
|
|
6783
|
+
return (React.createElement(HeadingLevel, Object.assign({ className: css$1(styles$e.popoverTitleText, className) }, props), children));
|
|
6765
6784
|
};
|
|
6766
6785
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
6767
6786
|
|
|
6768
6787
|
const PopoverHeader = (_a) => {
|
|
6769
6788
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
6770
|
-
return (React.createElement("header", Object.assign({ className: css(styles$e.popoverHeader, className) }, props),
|
|
6771
|
-
React.createElement("div", { className: css(styles$e.popoverTitle), id: id },
|
|
6789
|
+
return (React.createElement("header", Object.assign({ className: css$1(styles$e.popoverHeader, className) }, props),
|
|
6790
|
+
React.createElement("div", { className: css$1(styles$e.popoverTitle), id: id },
|
|
6772
6791
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
6773
6792
|
React.createElement(PopoverHeaderText, { headingLevel: titleHeadingLevel },
|
|
6774
6793
|
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-v5-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
@@ -6778,13 +6797,13 @@ PopoverHeader.displayName = 'PopoverHeader';
|
|
|
6778
6797
|
|
|
6779
6798
|
const PopoverFooter = (_a) => {
|
|
6780
6799
|
var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
6781
|
-
return (React.createElement("footer", Object.assign({ className: css(styles$e.popoverFooter, className) }, props), children));
|
|
6800
|
+
return (React.createElement("footer", Object.assign({ className: css$1(styles$e.popoverFooter, className) }, props), children));
|
|
6782
6801
|
};
|
|
6783
6802
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
6784
6803
|
|
|
6785
6804
|
const PopoverCloseButton = (_a) => {
|
|
6786
6805
|
var { onClose = () => undefined } = _a, props = __rest$1(_a, ["onClose"]);
|
|
6787
|
-
return (React.createElement("div", { className: css(styles$e.popoverClose) },
|
|
6806
|
+
return (React.createElement("div", { className: css$1(styles$e.popoverClose) },
|
|
6788
6807
|
React.createElement(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
|
|
6789
6808
|
React.createElement(TimesIcon, null))));
|
|
6790
6809
|
};
|
|
@@ -6792,7 +6811,7 @@ PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
|
6792
6811
|
|
|
6793
6812
|
const PopoverArrow = (_a) => {
|
|
6794
6813
|
var { className = '' } = _a, props = __rest$1(_a, ["className"]);
|
|
6795
|
-
return React.createElement("div", Object.assign({ className: css(styles$e.popoverArrow, className) }, props));
|
|
6814
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$e.popoverArrow, className) }, props));
|
|
6796
6815
|
};
|
|
6797
6816
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
6798
6817
|
|
|
@@ -6988,7 +7007,7 @@ const Popover = (_a) => {
|
|
|
6988
7007
|
}
|
|
6989
7008
|
return node;
|
|
6990
7009
|
}
|
|
6991
|
-
}, preventScrollOnDeactivate: true, className: css(styles$e.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$e.modifiers.noPadding, hasAutoWidth && styles$e.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: {
|
|
7010
|
+
}, preventScrollOnDeactivate: true, className: css$1(styles$e.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$e.modifiers.noPadding, hasAutoWidth && styles$e.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: {
|
|
6992
7011
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
6993
7012
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
6994
7013
|
opacity,
|
|
@@ -7090,7 +7109,7 @@ var DividerVariant;
|
|
|
7090
7109
|
const Divider = (_a) => {
|
|
7091
7110
|
var { className, component = DividerVariant.hr, inset, orientation } = _a, props = __rest$1(_a, ["className", "component", "inset", "orientation"]);
|
|
7092
7111
|
const Component = component;
|
|
7093
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$d.divider, formatBreakpointMods(inset, styles$d), formatBreakpointMods(orientation, styles$d), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
7112
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$d.divider, formatBreakpointMods(inset, styles$d), formatBreakpointMods(orientation, styles$d), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
7094
7113
|
};
|
|
7095
7114
|
Divider.displayName = 'Divider';
|
|
7096
7115
|
|
|
@@ -7175,7 +7194,7 @@ const Drawer = (_a) => {
|
|
|
7175
7194
|
const drawerRef = React.useRef();
|
|
7176
7195
|
const drawerContentRef = React.useRef();
|
|
7177
7196
|
return (React.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
7178
|
-
React.createElement("div", Object.assign({ className: css(styles$c.drawer, isExpanded && styles$c.modifiers.expanded, isInline && styles$c.modifiers.inline, isStatic && styles$c.modifiers.static, position === 'left' && styles$c.modifiers.panelLeft, position === 'bottom' && styles$c.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
7197
|
+
React.createElement("div", Object.assign({ className: css$1(styles$c.drawer, isExpanded && styles$c.modifiers.expanded, isInline && styles$c.modifiers.inline, isStatic && styles$c.modifiers.static, position === 'left' && styles$c.modifiers.panelLeft, position === 'bottom' && styles$c.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
7179
7198
|
};
|
|
7180
7199
|
Drawer.displayName = 'Drawer';
|
|
7181
7200
|
|
|
@@ -7183,7 +7202,7 @@ const DrawerActions = (_a) => {
|
|
|
7183
7202
|
var {
|
|
7184
7203
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7185
7204
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7186
|
-
return (React.createElement("div", Object.assign({ className: css(styles$c.drawerActions, className) }, props), children));
|
|
7205
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.drawerActions, className) }, props), children));
|
|
7187
7206
|
};
|
|
7188
7207
|
DrawerActions.displayName = 'DrawerActions';
|
|
7189
7208
|
|
|
@@ -7191,7 +7210,7 @@ const DrawerCloseButton = (_a) => {
|
|
|
7191
7210
|
var {
|
|
7192
7211
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7193
7212
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest$1(_a, ["className", "onClose", 'aria-label']);
|
|
7194
|
-
return (React.createElement("div", Object.assign({ className: css(styles$c.drawerClose, className) }, props),
|
|
7213
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.drawerClose, className) }, props),
|
|
7195
7214
|
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
7196
7215
|
React.createElement(TimesIcon, null))));
|
|
7197
7216
|
};
|
|
@@ -7201,7 +7220,7 @@ const DrawerMain = (_a) => {
|
|
|
7201
7220
|
var {
|
|
7202
7221
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7203
7222
|
className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7204
|
-
return (React.createElement("div", Object.assign({ className: css(styles$c.drawerMain, className) }, props), children));
|
|
7223
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.drawerMain, className) }, props), children));
|
|
7205
7224
|
};
|
|
7206
7225
|
DrawerMain.displayName = 'DrawerMain';
|
|
7207
7226
|
|
|
@@ -7211,7 +7230,7 @@ const DrawerContent = (_a) => {
|
|
|
7211
7230
|
className = '', children, panelContent, colorVariant = DrawerColorVariant.default } = _a, props = __rest$1(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
7212
7231
|
const { drawerContentRef } = React.useContext(DrawerContext);
|
|
7213
7232
|
return (React.createElement(DrawerMain, null,
|
|
7214
|
-
React.createElement("div", Object.assign({ className: css(styles$c.drawerContent, colorVariant === DrawerColorVariant.light200 && styles$c.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
7233
|
+
React.createElement("div", Object.assign({ className: css$1(styles$c.drawerContent, colorVariant === DrawerColorVariant.light200 && styles$c.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
7215
7234
|
panelContent));
|
|
7216
7235
|
};
|
|
7217
7236
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -7220,7 +7239,7 @@ const DrawerContentBody = (_a) => {
|
|
|
7220
7239
|
var {
|
|
7221
7240
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7222
7241
|
className = '', children, hasPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasPadding"]);
|
|
7223
|
-
return (React.createElement("div", Object.assign({ className: css(styles$c.drawerBody, hasPadding && styles$c.modifiers.padding, className) }, props), children));
|
|
7242
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.drawerBody, hasPadding && styles$c.modifiers.padding, className) }, props), children));
|
|
7224
7243
|
};
|
|
7225
7244
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
7226
7245
|
|
|
@@ -7228,7 +7247,7 @@ const DrawerPanelBody = (_a) => {
|
|
|
7228
7247
|
var {
|
|
7229
7248
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7230
7249
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
7231
|
-
return (React.createElement("div", Object.assign({ className: css(styles$c.drawerBody, hasNoPadding && styles$c.modifiers.noPadding, className) }, props), children));
|
|
7250
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.drawerBody, hasNoPadding && styles$c.modifiers.noPadding, className) }, props), children));
|
|
7232
7251
|
};
|
|
7233
7252
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
7234
7253
|
|
|
@@ -7237,7 +7256,7 @@ const DrawerHead = (_a) => {
|
|
|
7237
7256
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7238
7257
|
className = '', children, hasNoPadding = false } = _a, props = __rest$1(_a, ["className", "children", "hasNoPadding"]);
|
|
7239
7258
|
return (React.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
7240
|
-
React.createElement("div", Object.assign({ className: css(styles$c.drawerHead, className) }, props), children)));
|
|
7259
|
+
React.createElement("div", Object.assign({ className: css$1(styles$c.drawerHead, className) }, props), children)));
|
|
7241
7260
|
};
|
|
7242
7261
|
DrawerHead.displayName = 'DrawerHead';
|
|
7243
7262
|
|
|
@@ -7305,7 +7324,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7305
7324
|
e.preventDefault();
|
|
7306
7325
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
7307
7326
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
7308
|
-
drawerRef.current.classList.add(css(styles$c.modifiers.resizing));
|
|
7327
|
+
drawerRef.current.classList.add(css$1(styles$c.modifiers.resizing));
|
|
7309
7328
|
isResizing = true;
|
|
7310
7329
|
setInitialVals = true;
|
|
7311
7330
|
};
|
|
@@ -7353,7 +7372,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7353
7372
|
if (!isResizing) {
|
|
7354
7373
|
return;
|
|
7355
7374
|
}
|
|
7356
|
-
drawerRef.current.classList.remove(css(styles$c.modifiers.resizing));
|
|
7375
|
+
drawerRef.current.classList.remove(css$1(styles$c.modifiers.resizing));
|
|
7357
7376
|
isResizing = false;
|
|
7358
7377
|
onResize && onResize(e, currWidth, id);
|
|
7359
7378
|
setInitialVals = true;
|
|
@@ -7424,7 +7443,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
7424
7443
|
if (maxSize) {
|
|
7425
7444
|
boundaryCssVars['--pf-v5-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
7426
7445
|
}
|
|
7427
|
-
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, (panelId) => (React.createElement("div", Object.assign({ id: id || panelId, className: css(styles$c.drawerPanel, isResizable && styles$c.modifiers.resizable, hasNoBorder && styles$c.modifiers.noBorder, formatBreakpointMods(widths, styles$c), colorVariant === DrawerColorVariant.light200 && styles$c.modifiers.light_200, className), ref: panel, onTransitionEnd: (ev) => {
|
|
7446
|
+
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, (panelId) => (React.createElement("div", Object.assign({ id: id || panelId, className: css$1(styles$c.drawerPanel, isResizable && styles$c.modifiers.resizable, hasNoBorder && styles$c.modifiers.noBorder, formatBreakpointMods(widths, styles$c), colorVariant === DrawerColorVariant.light200 && styles$c.modifiers.light_200, className), ref: panel, onTransitionEnd: (ev) => {
|
|
7428
7447
|
if (ev.target === panel.current) {
|
|
7429
7448
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
7430
7449
|
onExpand(ev);
|
|
@@ -7435,9 +7454,9 @@ const DrawerPanelContent = (_a) => {
|
|
|
7435
7454
|
style: boundaryCssVars
|
|
7436
7455
|
}), props), isExpandedInternal && (React.createElement(React.Fragment, null,
|
|
7437
7456
|
isResizable && (React.createElement(React.Fragment, null,
|
|
7438
|
-
React.createElement("div", { className: css(styles$c.drawerSplitter, position !== 'bottom' && styles$c.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 },
|
|
7439
|
-
React.createElement("div", { className: css(styles$c.drawerSplitterHandle), "aria-hidden": true })),
|
|
7440
|
-
React.createElement("div", { className: css(styles$c.drawerPanelMain) }, children))),
|
|
7457
|
+
React.createElement("div", { className: css$1(styles$c.drawerSplitter, position !== 'bottom' && styles$c.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 },
|
|
7458
|
+
React.createElement("div", { className: css$1(styles$c.drawerSplitterHandle), "aria-hidden": true })),
|
|
7459
|
+
React.createElement("div", { className: css$1(styles$c.drawerPanelMain) }, children))),
|
|
7441
7460
|
!isResizable && children))))));
|
|
7442
7461
|
};
|
|
7443
7462
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -7520,10 +7539,10 @@ var formStyles = {
|
|
|
7520
7539
|
|
|
7521
7540
|
const ActionGroup = (_a) => {
|
|
7522
7541
|
var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7523
|
-
const customClassName = css(formStyles.formGroup, formStyles.modifiers.action, className);
|
|
7524
|
-
const formActionsComponent = React.createElement("div", { className: css(formStyles.formActions) }, children);
|
|
7542
|
+
const customClassName = css$1(formStyles.formGroup, formStyles.modifiers.action, className);
|
|
7543
|
+
const formActionsComponent = React.createElement("div", { className: css$1(formStyles.formActions) }, children);
|
|
7525
7544
|
return (React.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
7526
|
-
React.createElement("div", { className: css(formStyles.formGroupControl) }, formActionsComponent)));
|
|
7545
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl) }, formActionsComponent)));
|
|
7527
7546
|
};
|
|
7528
7547
|
ActionGroup.displayName = 'ActionGroup';
|
|
7529
7548
|
|
|
@@ -7531,7 +7550,7 @@ const FormBase = (_a) => {
|
|
|
7531
7550
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '', innerRef } = _a, props = __rest$1(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
7532
7551
|
return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
7533
7552
|
style: Object.assign({ '--pf-v5-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
7534
|
-
}), props, { className: css(formStyles.form, isHorizontal && formStyles.modifiers.horizontal, (isWidthLimited || maxWidth) && formStyles.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
7553
|
+
}), props, { className: css$1(formStyles.form, isHorizontal && formStyles.modifiers.horizontal, (isWidthLimited || maxWidth) && formStyles.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
7535
7554
|
};
|
|
7536
7555
|
const Form = React.forwardRef((props, ref) => React.createElement(FormBase, Object.assign({ innerRef: ref }, props)));
|
|
7537
7556
|
Form.displayName = 'Form';
|
|
@@ -7541,23 +7560,26 @@ const FormGroup = (_a) => {
|
|
|
7541
7560
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
7542
7561
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
7543
7562
|
const labelContent = (React.createElement(React.Fragment, null,
|
|
7544
|
-
React.createElement(LabelComponent, Object.assign({ className: css(formStyles.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
7545
|
-
React.createElement("span", { className: css(formStyles.formLabelText) }, label),
|
|
7546
|
-
isRequired && (React.createElement("span", { className: css(formStyles.formLabelRequired), "aria-hidden": "true" },
|
|
7563
|
+
React.createElement(LabelComponent, Object.assign({ className: css$1(formStyles.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
7564
|
+
React.createElement("span", { className: css$1(formStyles.formLabelText) }, label),
|
|
7565
|
+
isRequired && (React.createElement("span", { className: css$1(formStyles.formLabelRequired), "aria-hidden": "true" },
|
|
7547
7566
|
' ',
|
|
7548
7567
|
ASTERISK))),
|
|
7549
7568
|
' ',
|
|
7550
7569
|
React.isValidElement(labelIcon) && labelIcon));
|
|
7551
|
-
return (React.createElement(GenerateId, null, (randomId) => (React.createElement("div", Object.assign({ className: css(formStyles.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
7552
|
-
label && (React.createElement("div", Object.assign({ className: css(formStyles.formGroupLabel, labelInfo && formStyles.modifiers.info, hasNoPaddingTop && formStyles.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
7570
|
+
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),
|
|
7571
|
+
label && (React.createElement("div", Object.assign({ className: css$1(formStyles.formGroupLabel, labelInfo && formStyles.modifiers.info, hasNoPaddingTop && formStyles.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
7553
7572
|
labelInfo && (React.createElement(React.Fragment, null,
|
|
7554
|
-
React.createElement("div", { className: css(formStyles.formGroupLabelMain) }, labelContent),
|
|
7555
|
-
React.createElement("div", { className: css(formStyles.formGroupLabelInfo) }, labelInfo))),
|
|
7573
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelMain) }, labelContent),
|
|
7574
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelInfo) }, labelInfo))),
|
|
7556
7575
|
!labelInfo && labelContent)),
|
|
7557
|
-
React.createElement("div", { className: css(formStyles.formGroupControl, isInline && formStyles.modifiers.inline, isStack && formStyles.modifiers.stack) }, children)))));
|
|
7576
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl, isInline && formStyles.modifiers.inline, isStack && formStyles.modifiers.stack) }, children)))));
|
|
7558
7577
|
};
|
|
7559
7578
|
FormGroup.displayName = 'FormGroup';
|
|
7560
7579
|
|
|
7580
|
+
const FormContext = React__default.createContext({});
|
|
7581
|
+
FormContext.Consumer;
|
|
7582
|
+
|
|
7561
7583
|
var styles$b = {
|
|
7562
7584
|
"modifiers": {
|
|
7563
7585
|
"bordered": "pf-m-bordered",
|
|
@@ -7574,20 +7596,20 @@ var styles$b = {
|
|
|
7574
7596
|
|
|
7575
7597
|
const PanelBase = (_a) => {
|
|
7576
7598
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
7577
|
-
return (React.createElement("div", Object.assign({ className: css(styles$b.panel, variant === 'raised' && styles$b.modifiers.raised, variant === 'bordered' && styles$b.modifiers.bordered, isScrollable && styles$b.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
7599
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.panel, variant === 'raised' && styles$b.modifiers.raised, variant === 'bordered' && styles$b.modifiers.bordered, isScrollable && styles$b.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
7578
7600
|
};
|
|
7579
7601
|
const Panel = React.forwardRef((props, ref) => (React.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
7580
7602
|
Panel.displayName = 'Panel';
|
|
7581
7603
|
|
|
7582
7604
|
const PanelMain = (_a) => {
|
|
7583
7605
|
var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
|
|
7584
|
-
return (React.createElement("div", Object.assign({ className: css(styles$b.panelMain, className), style: { '--pf-v5-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
7606
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.panelMain, className), style: { '--pf-v5-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
7585
7607
|
};
|
|
7586
7608
|
PanelMain.displayName = 'PanelMain';
|
|
7587
7609
|
|
|
7588
7610
|
const PanelMainBody = (_a) => {
|
|
7589
7611
|
var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
7590
|
-
return (React.createElement("div", Object.assign({ className: css(styles$b.panelMainBody, className) }, props), children));
|
|
7612
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.panelMainBody, className) }, props), children));
|
|
7591
7613
|
};
|
|
7592
7614
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
7593
7615
|
|
|
@@ -7687,7 +7709,7 @@ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '',
|
|
|
7687
7709
|
React.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (evt, value) => handleValueChange('haswords', value, evt) })))));
|
|
7688
7710
|
return formGroups;
|
|
7689
7711
|
};
|
|
7690
|
-
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css(className) },
|
|
7712
|
+
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$1(className) },
|
|
7691
7713
|
React.createElement(PanelMain, null,
|
|
7692
7714
|
React.createElement(PanelMainBody, null,
|
|
7693
7715
|
React.createElement(Form, null,
|
|
@@ -7726,7 +7748,7 @@ const TextInputGroup = (_a) => {
|
|
|
7726
7748
|
const ref = React.useRef(null);
|
|
7727
7749
|
const textInputGroupRef = innerRef || ref;
|
|
7728
7750
|
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
7729
|
-
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$a.textInputGroup, isDisabled && styles$a.modifiers.disabled, isPlain && styles$a.modifiers.plain, className) }, props), children)));
|
|
7751
|
+
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$1(styles$a.textInputGroup, isDisabled && styles$a.modifiers.disabled, isPlain && styles$a.modifiers.plain, className) }, props), children)));
|
|
7730
7752
|
};
|
|
7731
7753
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
7732
7754
|
|
|
@@ -7738,19 +7760,19 @@ const TextInputGroupMainBase = (_a) => {
|
|
|
7738
7760
|
const handleChange = (event) => {
|
|
7739
7761
|
onChange(event, event.currentTarget.value);
|
|
7740
7762
|
};
|
|
7741
|
-
return (React.createElement("div", Object.assign({ className: css(styles$a.textInputGroupMain, icon && styles$a.modifiers.icon, className) }, props),
|
|
7763
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.textInputGroupMain, icon && styles$a.modifiers.icon, className) }, props),
|
|
7742
7764
|
children,
|
|
7743
|
-
React.createElement("span", { className: css(styles$a.textInputGroupText) },
|
|
7744
|
-
hint && (React.createElement("input", { className: css(styles$a.textInputGroupTextInput, styles$a.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
7745
|
-
icon && React.createElement("span", { className: css(styles$a.textInputGroupIcon) }, icon),
|
|
7746
|
-
React.createElement("input", Object.assign({ ref: textInputGroupInputInputRef, type: type, className: css(styles$a.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder, name: name, "aria-activedescendant": ariaActivedescendant }, (role && { role }), (isExpanded !== undefined && { 'aria-expanded': isExpanded }), (ariaControls && { 'aria-controls': ariaControls }))))));
|
|
7765
|
+
React.createElement("span", { className: css$1(styles$a.textInputGroupText) },
|
|
7766
|
+
hint && (React.createElement("input", { className: css$1(styles$a.textInputGroupTextInput, styles$a.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
7767
|
+
icon && React.createElement("span", { className: css$1(styles$a.textInputGroupIcon) }, icon),
|
|
7768
|
+
React.createElement("input", Object.assign({ ref: textInputGroupInputInputRef, type: type, className: css$1(styles$a.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder, name: name, "aria-activedescendant": ariaActivedescendant }, (role && { role }), (isExpanded !== undefined && { 'aria-expanded': isExpanded }), (ariaControls && { 'aria-controls': ariaControls }))))));
|
|
7747
7769
|
};
|
|
7748
7770
|
const TextInputGroupMain = React.forwardRef((props, ref) => (React.createElement(TextInputGroupMainBase, Object.assign({ innerRef: ref }, props))));
|
|
7749
7771
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
7750
7772
|
|
|
7751
7773
|
const TextInputGroupUtilities = (_a) => {
|
|
7752
7774
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7753
|
-
return (React.createElement("div", Object.assign({ className: css(styles$a.textInputGroupUtilities, className) }, props), children));
|
|
7775
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.textInputGroupUtilities, className) }, props), children));
|
|
7754
7776
|
};
|
|
7755
7777
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
7756
7778
|
|
|
@@ -7910,7 +7932,7 @@ const SearchInputBase = (_a) => {
|
|
|
7910
7932
|
React.createElement(ArrowRightIcon$1, null)))),
|
|
7911
7933
|
expandableInput && React.createElement(InputGroupItem, null, expandableToggle)));
|
|
7912
7934
|
};
|
|
7913
|
-
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
|
|
7935
|
+
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$1(className), innerRef: searchInputRef });
|
|
7914
7936
|
if (!!expandableInput && !isExpanded) {
|
|
7915
7937
|
return React.createElement(InputGroup, Object.assign({}, searchInputProps),
|
|
7916
7938
|
React.createElement(InputGroupItem, null, expandableToggle));
|
|
@@ -7919,9 +7941,9 @@ const SearchInputBase = (_a) => {
|
|
|
7919
7941
|
if (attributes.length > 0) {
|
|
7920
7942
|
const AdvancedSearch = (React.createElement("div", { ref: popperRef },
|
|
7921
7943
|
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 })));
|
|
7922
|
-
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
7944
|
+
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
7923
7945
|
React.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), triggerRef: triggerRef, popper: AdvancedSearch, popperRef: popperRef, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current, zIndex: zIndex })));
|
|
7924
|
-
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css(className), ref: searchInputRef }, props),
|
|
7946
|
+
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
7925
7947
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
7926
7948
|
AdvancedSearch));
|
|
7927
7949
|
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
@@ -7961,17 +7983,17 @@ var EmptyStateVariant;
|
|
|
7961
7983
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
7962
7984
|
const EmptyState = (_a) => {
|
|
7963
7985
|
var { children, className, variant = EmptyStateVariant.full, isFullHeight } = _a, props = __rest$1(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
7964
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyState, variant === 'xs' && styles$9.modifiers.xs, variant === 'sm' && styles$9.modifiers.sm, variant === 'lg' && styles$9.modifiers.lg, variant === 'xl' && styles$9.modifiers.xl, isFullHeight && styles$9.modifiers.fullHeight, className) }, props),
|
|
7965
|
-
React.createElement("div", { className: css(styles$9.emptyStateContent) }, children)));
|
|
7986
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyState, variant === 'xs' && styles$9.modifiers.xs, variant === 'sm' && styles$9.modifiers.sm, variant === 'lg' && styles$9.modifiers.lg, variant === 'xl' && styles$9.modifiers.xl, isFullHeight && styles$9.modifiers.fullHeight, className) }, props),
|
|
7987
|
+
React.createElement("div", { className: css$1(styles$9.emptyStateContent) }, children)));
|
|
7966
7988
|
};
|
|
7967
7989
|
EmptyState.displayName = 'EmptyState';
|
|
7968
7990
|
|
|
7969
7991
|
const EmptyStateHeader = (_a) => {
|
|
7970
7992
|
var { children, className, titleClassName, titleText, headingLevel: HeadingLevel = 'h1', icon } = _a, props = __rest$1(_a, ["children", "className", "titleClassName", "titleText", "headingLevel", "icon"]);
|
|
7971
|
-
return (React.createElement("div", Object.assign({ className: css('pf-v5-c-empty-state__header', className) }, props),
|
|
7993
|
+
return (React.createElement("div", Object.assign({ className: css$1('pf-v5-c-empty-state__header', className) }, props),
|
|
7972
7994
|
icon,
|
|
7973
|
-
(titleText || children) && (React.createElement("div", { className: css('pf-v5-c-empty-state__title') },
|
|
7974
|
-
titleText && (React.createElement(HeadingLevel, { className: css(styles$9.emptyStateTitleText, titleClassName) }, titleText)),
|
|
7995
|
+
(titleText || children) && (React.createElement("div", { className: css$1('pf-v5-c-empty-state__title') },
|
|
7996
|
+
titleText && (React.createElement(HeadingLevel, { className: css$1(styles$9.emptyStateTitleText, titleClassName) }, titleText)),
|
|
7975
7997
|
children))));
|
|
7976
7998
|
};
|
|
7977
7999
|
EmptyStateHeader.displayName = 'EmptyStateHeader';
|
|
@@ -7980,7 +8002,7 @@ const isSpinner = (icon) => icon.type === Spinner;
|
|
|
7980
8002
|
const EmptyStateIcon = (_a) => {
|
|
7981
8003
|
var { className, icon: IconComponent, color } = _a, props = __rest$1(_a, ["className", "icon", "color"]);
|
|
7982
8004
|
const iconIsSpinner = isSpinner(React.createElement(IconComponent, null));
|
|
7983
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateIcon) }, (color &&
|
|
8005
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateIcon) }, (color &&
|
|
7984
8006
|
!iconIsSpinner && { style: { ['--pf-v5-c-empty-state__icon--Color']: color } })),
|
|
7985
8007
|
React.createElement(IconComponent, Object.assign({ className: className, "aria-hidden": !iconIsSpinner }, props))));
|
|
7986
8008
|
};
|
|
@@ -7988,19 +8010,19 @@ EmptyStateIcon.displayName = 'EmptyStateIcon';
|
|
|
7988
8010
|
|
|
7989
8011
|
const EmptyStateBody = (_a) => {
|
|
7990
8012
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7991
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateBody, className) }, props), children));
|
|
8013
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateBody, className) }, props), children));
|
|
7992
8014
|
};
|
|
7993
8015
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
7994
8016
|
|
|
7995
8017
|
const EmptyStateFooter = (_a) => {
|
|
7996
8018
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
7997
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateFooter, className) }, props), children));
|
|
8019
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateFooter, className) }, props), children));
|
|
7998
8020
|
};
|
|
7999
8021
|
EmptyStateFooter.displayName = 'EmptyStateFooter';
|
|
8000
8022
|
|
|
8001
8023
|
const EmptyStateActions = (_a) => {
|
|
8002
8024
|
var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
|
|
8003
|
-
return (React.createElement("div", Object.assign({ className: css(styles$9.emptyStateActions, className) }, props), children));
|
|
8025
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.emptyStateActions, className) }, props), children));
|
|
8004
8026
|
};
|
|
8005
8027
|
EmptyStateActions.displayName = 'EmptyStateActions';
|
|
8006
8028
|
|
|
@@ -8118,13 +8140,13 @@ class ExpandableSection extends React.Component {
|
|
|
8118
8140
|
};
|
|
8119
8141
|
}
|
|
8120
8142
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
8121
|
-
const expandableToggle = !isDetached && (React.createElement("button", { className: css(styles$8.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: (event) => onToggle(event, !propOrStateIsExpanded) },
|
|
8122
|
-
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css(styles$8.expandableSectionToggleIcon) },
|
|
8143
|
+
const expandableToggle = !isDetached && (React.createElement("button", { className: css$1(styles$8.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: (event) => onToggle(event, !propOrStateIsExpanded) },
|
|
8144
|
+
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$1(styles$8.expandableSectionToggleIcon) },
|
|
8123
8145
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
8124
|
-
React.createElement("span", { className: css(styles$8.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
8125
|
-
return (React.createElement("div", Object.assign({ className: css(styles$8.expandableSection, propOrStateIsExpanded && styles$8.modifiers.expanded, isActive && styles$8.modifiers.active, isDetached && styles$8.modifiers.detached, displaySize === 'lg' && styles$8.modifiers.displayLg, isWidthLimited && styles$8.modifiers.limitWidth, isIndented && styles$8.modifiers.indented, variant === ExpandableSectionVariant.truncate && styles$8.modifiers.truncate, className) }, props),
|
|
8146
|
+
React.createElement("span", { className: css$1(styles$8.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
8147
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$8.expandableSection, propOrStateIsExpanded && styles$8.modifiers.expanded, isActive && styles$8.modifiers.active, isDetached && styles$8.modifiers.detached, displaySize === 'lg' && styles$8.modifiers.displayLg, isWidthLimited && styles$8.modifiers.limitWidth, isIndented && styles$8.modifiers.indented, variant === ExpandableSectionVariant.truncate && styles$8.modifiers.truncate, className) }, props),
|
|
8126
8148
|
variant === ExpandableSectionVariant.default && expandableToggle,
|
|
8127
|
-
React.createElement("div", { ref: this.expandableContentRef, className: css(styles$8.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
8149
|
+
React.createElement("div", { ref: this.expandableContentRef, className: css$1(styles$8.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
8128
8150
|
variant === ExpandableSectionVariant.truncate && this.state.hasToggle && expandableToggle));
|
|
8129
8151
|
}
|
|
8130
8152
|
}
|
|
@@ -8194,9 +8216,9 @@ var styles$7 = {
|
|
|
8194
8216
|
const Icon = (_a) => {
|
|
8195
8217
|
var { children, className, progressIcon, size, iconSize, progressIconSize, status, isInline = false, isInProgress = false, defaultProgressArialabel = 'Loading...' } = _a, props = __rest$1(_a, ["children", "className", "progressIcon", "size", "iconSize", "progressIconSize", "status", "isInline", "isInProgress", "defaultProgressArialabel"]);
|
|
8196
8218
|
const _progressIcon = progressIcon !== null && progressIcon !== void 0 ? progressIcon : React.createElement(Spinner, { diameter: "1em", "aria-label": defaultProgressArialabel });
|
|
8197
|
-
return (React.createElement("span", Object.assign({ className: css(styles$7.icon, isInline && styles$7.modifiers.inline, isInProgress && styles$7.modifiers.inProgress, styles$7.modifiers[size], className) }, props),
|
|
8198
|
-
React.createElement("span", { className: css(styles$7.iconContent, styles$7.modifiers[iconSize], styles$7.modifiers[status]) }, children),
|
|
8199
|
-
isInProgress && (React.createElement("span", { className: css(styles$7.iconProgress, styles$7.modifiers[progressIconSize], className) }, _progressIcon))));
|
|
8219
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$7.icon, isInline && styles$7.modifiers.inline, isInProgress && styles$7.modifiers.inProgress, styles$7.modifiers[size], className) }, props),
|
|
8220
|
+
React.createElement("span", { className: css$1(styles$7.iconContent, styles$7.modifiers[iconSize], styles$7.modifiers[status]) }, children),
|
|
8221
|
+
isInProgress && (React.createElement("span", { className: css$1(styles$7.iconProgress, styles$7.modifiers[progressIconSize], className) }, _progressIcon))));
|
|
8200
8222
|
};
|
|
8201
8223
|
Icon.displayName = 'Icon';
|
|
8202
8224
|
|
|
@@ -8325,7 +8347,7 @@ const Label = (_a) => {
|
|
|
8325
8347
|
const LabelComponent = (isOverflowLabel ? 'button' : 'span');
|
|
8326
8348
|
const defaultButton = (React.createElement(Button, Object.assign({ type: "button", variant: "plain", onClick: onClose, "aria-label": closeBtnAriaLabel || `Close ${children}` }, closeBtnProps),
|
|
8327
8349
|
React.createElement(TimesIcon, null)));
|
|
8328
|
-
const button = React.createElement("span", { className: css(labelStyles.labelActions) }, closeBtn || defaultButton);
|
|
8350
|
+
const button = React.createElement("span", { className: css$1(labelStyles.labelActions) }, closeBtn || defaultButton);
|
|
8329
8351
|
const textRef = React.createRef();
|
|
8330
8352
|
// ref to apply tooltip when rendered is used
|
|
8331
8353
|
const componentRef = React.useRef();
|
|
@@ -8337,8 +8359,8 @@ const Label = (_a) => {
|
|
|
8337
8359
|
}
|
|
8338
8360
|
}, [isEditableActive]);
|
|
8339
8361
|
const content = (React.createElement(React.Fragment, null,
|
|
8340
|
-
icon && React.createElement("span", { className: css(labelStyles.labelIcon) }, icon),
|
|
8341
|
-
React.createElement("span", Object.assign({ ref: textRef, className: css(labelStyles.labelText) }, (textMaxWidth && {
|
|
8362
|
+
icon && React.createElement("span", { className: css$1(labelStyles.labelIcon) }, icon),
|
|
8363
|
+
React.createElement("span", Object.assign({ ref: textRef, className: css$1(labelStyles.labelText) }, (textMaxWidth && {
|
|
8342
8364
|
style: {
|
|
8343
8365
|
'--pf-v5-c-label__text--MaxWidth': textMaxWidth
|
|
8344
8366
|
}
|
|
@@ -8358,7 +8380,7 @@ const Label = (_a) => {
|
|
|
8358
8380
|
else if (isEditable) {
|
|
8359
8381
|
LabelComponentChildElement = 'button';
|
|
8360
8382
|
}
|
|
8361
|
-
const labelComponentChildProps = Object.assign(Object.assign(Object.assign({ className: css(labelStyles.labelContent) }, (isTooltipVisible && { tabIndex: 0 })), (href && { href })), (isEditable && Object.assign({ ref: editableButtonRef, onClick: (e) => {
|
|
8383
|
+
const labelComponentChildProps = Object.assign(Object.assign(Object.assign({ className: css$1(labelStyles.labelContent) }, (isTooltipVisible && { tabIndex: 0 })), (href && { href })), (isEditable && Object.assign({ ref: editableButtonRef, onClick: (e) => {
|
|
8362
8384
|
setIsEditableActive(true);
|
|
8363
8385
|
e.stopPropagation();
|
|
8364
8386
|
} }, editableProps)));
|
|
@@ -8375,10 +8397,10 @@ const Label = (_a) => {
|
|
|
8375
8397
|
else if (isTooltipVisible) {
|
|
8376
8398
|
labelComponentChild = (React.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
8377
8399
|
}
|
|
8378
|
-
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$6.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
8400
|
+
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$6.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
8379
8401
|
!isEditableActive && labelComponentChild,
|
|
8380
8402
|
!isEditableActive && onClose && button,
|
|
8381
|
-
isEditableActive && (React.createElement("input", Object.assign({ className: css(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
8403
|
+
isEditableActive && (React.createElement("input", Object.assign({ className: css$1(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
8382
8404
|
};
|
|
8383
8405
|
Label.displayName = 'Label';
|
|
8384
8406
|
|
|
@@ -8413,14 +8435,14 @@ var ListComponent;
|
|
|
8413
8435
|
})(ListComponent || (ListComponent = {}));
|
|
8414
8436
|
const List = (_a) => {
|
|
8415
8437
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = OrderType.number, ref = null, component = ListComponent.ul } = _a, props = __rest$1(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
8416
|
-
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, (isPlain && { role: 'list' }), props, { className: css(styles$5.list, variant && styles$5.modifiers[variant], isBordered && styles$5.modifiers.bordered, isPlain && styles$5.modifiers.plain, iconSize && iconSize === 'large' && styles$5.modifiers.iconLg, className) }), children)) : (React.createElement("ul", Object.assign({ ref: ref }, (isPlain && { role: 'list' }), props, { className: css(styles$5.list, variant && styles$5.modifiers[variant], isBordered && styles$5.modifiers.bordered, isPlain && styles$5.modifiers.plain, iconSize && iconSize === 'large' && styles$5.modifiers.iconLg, className) }), children));
|
|
8438
|
+
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, (isPlain && { role: 'list' }), props, { className: css$1(styles$5.list, variant && styles$5.modifiers[variant], isBordered && styles$5.modifiers.bordered, isPlain && styles$5.modifiers.plain, iconSize && iconSize === 'large' && styles$5.modifiers.iconLg, className) }), children)) : (React.createElement("ul", Object.assign({ ref: ref }, (isPlain && { role: 'list' }), props, { className: css$1(styles$5.list, variant && styles$5.modifiers[variant], isBordered && styles$5.modifiers.bordered, isPlain && styles$5.modifiers.plain, iconSize && iconSize === 'large' && styles$5.modifiers.iconLg, className) }), children));
|
|
8417
8439
|
};
|
|
8418
8440
|
List.displayName = 'List';
|
|
8419
8441
|
|
|
8420
8442
|
const ListItem = (_a) => {
|
|
8421
8443
|
var { icon = null, children = null } = _a, props = __rest$1(_a, ["icon", "children"]);
|
|
8422
|
-
return (React.createElement("li", Object.assign({ className: css(icon && styles$5.listItem) }, props),
|
|
8423
|
-
icon && React.createElement("span", { className: css(styles$5.listItemIcon) }, icon),
|
|
8444
|
+
return (React.createElement("li", Object.assign({ className: css$1(icon && styles$5.listItem) }, props),
|
|
8445
|
+
icon && React.createElement("span", { className: css$1(styles$5.listItemIcon) }, icon),
|
|
8424
8446
|
children));
|
|
8425
8447
|
};
|
|
8426
8448
|
ListItem.displayName = 'ListItem';
|
|
@@ -8456,7 +8478,7 @@ const Text = (_a) => {
|
|
|
8456
8478
|
var { children = null, className = '', component = TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
8457
8479
|
const Component = component;
|
|
8458
8480
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
8459
|
-
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(isVisitedLink && component === TextVariants.a && styles$t.modifiers.visited, className) }), children));
|
|
8481
|
+
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));
|
|
8460
8482
|
};
|
|
8461
8483
|
Text.displayName = 'Text';
|
|
8462
8484
|
|
|
@@ -8469,7 +8491,7 @@ var TextListVariants;
|
|
|
8469
8491
|
const TextList = (_a) => {
|
|
8470
8492
|
var { children = null, className = '', component = TextListVariants.ul, isPlain = false } = _a, props = __rest$1(_a, ["children", "className", "component", "isPlain"]);
|
|
8471
8493
|
const Component = component;
|
|
8472
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css(isPlain && styles$t.modifiers.plain, className) }), children));
|
|
8494
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(isPlain && styles$t.modifiers.plain, className) }), children));
|
|
8473
8495
|
};
|
|
8474
8496
|
TextList.displayName = 'TextList';
|
|
8475
8497
|
|
|
@@ -8482,7 +8504,7 @@ var TextListItemVariants;
|
|
|
8482
8504
|
const TextListItem = (_a) => {
|
|
8483
8505
|
var { children = null, className = '', component = TextListItemVariants.li } = _a, props = __rest$1(_a, ["children", "className", "component"]);
|
|
8484
8506
|
const Component = component;
|
|
8485
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css(className) }), children));
|
|
8507
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(className) }), children));
|
|
8486
8508
|
};
|
|
8487
8509
|
TextListItem.displayName = 'TextListItem';
|
|
8488
8510
|
|
|
@@ -8688,13 +8710,13 @@ var ToolbarItemVariant;
|
|
|
8688
8710
|
const ToolbarItem = (_a) => {
|
|
8689
8711
|
var { className, variant, visibility, spacer, widths, align, alignSelf, id, children, isAllExpanded, isOverflowContainer } = _a, props = __rest$1(_a, ["className", "variant", "visibility", "spacer", "widths", "align", "alignSelf", "id", "children", "isAllExpanded", "isOverflowContainer"]);
|
|
8690
8712
|
if (variant === ToolbarItemVariant.separator) {
|
|
8691
|
-
return React.createElement(Divider, Object.assign({ className: css(styles$4.modifiers.vertical, className) }, props));
|
|
8713
|
+
return React.createElement(Divider, Object.assign({ className: css$1(styles$4.modifiers.vertical, className) }, props));
|
|
8692
8714
|
}
|
|
8693
8715
|
const widthStyles = {};
|
|
8694
8716
|
if (widths) {
|
|
8695
8717
|
Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-v5-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
8696
8718
|
}
|
|
8697
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarItem, variant &&
|
|
8719
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarItem, variant &&
|
|
8698
8720
|
styles$4.modifiers[toCamel(variant)], isAllExpanded && styles$4.modifiers.expanded, isOverflowContainer && styles$4.modifiers.overflowContainer, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), formatBreakpointMods(align, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), alignSelf === 'center' && styles$4.modifiers.alignSelfCenter, alignSelf === 'baseline' && styles$4.modifiers.alignSelfBaseline, className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children))));
|
|
8699
8721
|
};
|
|
8700
8722
|
ToolbarItem.displayName = 'ToolbarItem';
|
|
@@ -8708,7 +8730,7 @@ var ToolbarGroupVariant;
|
|
|
8708
8730
|
class ToolbarGroupWithRef extends React.Component {
|
|
8709
8731
|
render() {
|
|
8710
8732
|
const _a = this.props, { visibility, align, alignItems, alignSelf, spacer, spaceItems, className, variant, children, isOverflowContainer, innerRef } = _a, props = __rest$1(_a, ["visibility", "align", "alignItems", "alignSelf", "spacer", "spaceItems", "className", "variant", "children", "isOverflowContainer", "innerRef"]);
|
|
8711
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarGroup, variant && styles$4.modifiers[toCamel(variant)], formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), formatBreakpointMods(align, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$4, '', getBreakpoint(width)), alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline, alignSelf === 'center' && styles$4.modifiers.alignSelfCenter, alignSelf === 'baseline' && styles$4.modifiers.alignSelfBaseline, isOverflowContainer && styles$4.modifiers.overflowContainer, className) }, props, { ref: innerRef }), children))));
|
|
8733
|
+
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, styles$4, '', getBreakpoint(width)), formatBreakpointMods(align, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$4, '', getBreakpoint(width)), alignItems === 'center' && styles$4.modifiers.alignItemsCenter, alignItems === 'baseline' && styles$4.modifiers.alignItemsBaseline, alignSelf === 'center' && styles$4.modifiers.alignSelfCenter, alignSelf === 'baseline' && styles$4.modifiers.alignSelfBaseline, isOverflowContainer && styles$4.modifiers.overflowContainer, className) }, props, { ref: innerRef }), children))));
|
|
8712
8734
|
}
|
|
8713
8735
|
}
|
|
8714
8736
|
const ToolbarGroup = React.forwardRef((props, ref) => (React.createElement(ToolbarGroupWithRef, Object.assign({}, props, { innerRef: ref }))));
|
|
@@ -8727,8 +8749,8 @@ class ToolbarChipGroupContent extends React.Component {
|
|
|
8727
8749
|
collapseListedFilters =
|
|
8728
8750
|
(canUseDOM ? window.innerWidth : 1200) < globalBreakpoints[collapseListedFiltersBreakpoint];
|
|
8729
8751
|
}
|
|
8730
|
-
return (React.createElement("div", Object.assign({ className: css(styles$4.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$4.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),
|
|
8731
|
-
React.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
8752
|
+
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),
|
|
8753
|
+
React.createElement(ToolbarGroup, Object.assign({ className: css$1(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
8732
8754
|
collapseListedFilters && numberOfFilters > 0 && !isExpanded && (React.createElement(ToolbarGroup, null,
|
|
8733
8755
|
React.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)))),
|
|
8734
8756
|
showClearFiltersButton && !isExpanded && !customChipGroupContent && (React.createElement(ToolbarItem, null,
|
|
@@ -8784,7 +8806,7 @@ class Toolbar extends React.Component {
|
|
|
8784
8806
|
const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
|
|
8785
8807
|
const numberOfFilters = this.getNumberOfFilters();
|
|
8786
8808
|
const showClearFiltersButton = numberOfFilters > 0;
|
|
8787
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(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),
|
|
8809
|
+
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),
|
|
8788
8810
|
React.createElement(ToolbarContext.Provider, { value: {
|
|
8789
8811
|
isExpanded,
|
|
8790
8812
|
toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
|
|
@@ -8826,7 +8848,7 @@ class ToolbarExpandableContent extends React.Component {
|
|
|
8826
8848
|
const clearChipGroups = () => {
|
|
8827
8849
|
clearAllFilters();
|
|
8828
8850
|
};
|
|
8829
|
-
return (React.createElement("div", Object.assign({ className: css(styles$4.toolbarExpandableContent, className), ref: expandableContentRef }, props),
|
|
8851
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarExpandableContent, className), ref: expandableContentRef }, props),
|
|
8830
8852
|
React.createElement(ToolbarGroup, null),
|
|
8831
8853
|
numberOfFilters > 0 && (React.createElement(ToolbarGroup, { className: styles$4.modifiers.chipContainer },
|
|
8832
8854
|
React.createElement(ToolbarGroup, { ref: chipContainerRef }),
|
|
@@ -8850,7 +8872,7 @@ class ToolbarContent extends React.Component {
|
|
|
8850
8872
|
}
|
|
8851
8873
|
render() {
|
|
8852
8874
|
const _a = this.props, { className, children, isExpanded, toolbarId, visibility, alignItems, clearAllFilters, showClearFiltersButton, clearFiltersButtonText } = _a, props = __rest$1(_a, ["className", "children", "isExpanded", "toolbarId", "visibility", "alignItems", "clearAllFilters", "showClearFiltersButton", "clearFiltersButtonText"]);
|
|
8853
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css(styles$4.toolbarContent, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), className) }, props),
|
|
8875
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, formatBreakpointMods(visibility, styles$4, '', getBreakpoint(width)), className) }, props),
|
|
8854
8876
|
React.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, toolbarId: toolbarIdContext }) => {
|
|
8855
8877
|
const expandableContentId = `${toolbarId ||
|
|
8856
8878
|
toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
|
|
@@ -8859,7 +8881,7 @@ class ToolbarContent extends React.Component {
|
|
|
8859
8881
|
expandableContentId,
|
|
8860
8882
|
chipContainerRef: this.chipContainerRef
|
|
8861
8883
|
} },
|
|
8862
|
-
React.createElement("div", { className: css(styles$4.toolbarContentSection, alignItems === 'center' && styles$4.modifiers.alignItemsCenter) }, children),
|
|
8884
|
+
React.createElement("div", { className: css$1(styles$4.toolbarContentSection, alignItems === 'center' && styles$4.modifiers.alignItemsCenter) }, children),
|
|
8863
8885
|
React.createElement(ToolbarExpandableContent, { id: expandableContentId, isExpanded: isExpanded, expandableContentRef: this.expandableContentRef, chipContainerRef: this.chipContainerRef, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext })));
|
|
8864
8886
|
})))));
|
|
8865
8887
|
}
|
|
@@ -8872,7 +8894,6 @@ ToolbarContent.defaultProps = {
|
|
|
8872
8894
|
};
|
|
8873
8895
|
|
|
8874
8896
|
var styles$3 = {
|
|
8875
|
-
"button": "pf-v5-c-button",
|
|
8876
8897
|
"drawer": "pf-v5-c-drawer",
|
|
8877
8898
|
"modalBox": "pf-v5-c-modal-box",
|
|
8878
8899
|
"modifiers": {
|
|
@@ -8947,16 +8968,16 @@ const WizardNavItem = ({ children = null, content = '', isCurrent = false, isDis
|
|
|
8947
8968
|
return label;
|
|
8948
8969
|
}
|
|
8949
8970
|
}, [content, isCurrent, isVisited, status]);
|
|
8950
|
-
return (React.createElement("li", { className: css(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded) },
|
|
8971
|
+
return (React.createElement("li", { className: css$1(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded) },
|
|
8951
8972
|
React.createElement(NavItemComponent, Object.assign({}, (NavItemComponent === 'a'
|
|
8952
8973
|
? { tabIndex: isDisabled ? -1 : undefined, href, target }
|
|
8953
8974
|
: { disabled: isDisabled }), (id && { id: id.toString() }), { onClick: (e) => {
|
|
8954
8975
|
e.stopPropagation();
|
|
8955
8976
|
isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onClick === null || onClick === void 0 ? void 0 : onClick(e, stepIndex);
|
|
8956
|
-
}, className: css(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 }), (ariaLabel && { 'aria-label': ariaLabel }), ouiaProps), isExpandable ? (React.createElement(React.Fragment, null,
|
|
8957
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkText) }, content),
|
|
8958
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkToggle) },
|
|
8959
|
-
React.createElement("span", { className: css(styles$3.wizardNavLinkToggleIcon) },
|
|
8977
|
+
}, 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 }), (ariaLabel && { 'aria-label': ariaLabel }), ouiaProps), isExpandable ? (React.createElement(React.Fragment, null,
|
|
8978
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkText) }, content),
|
|
8979
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggle) },
|
|
8980
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggleIcon) },
|
|
8960
8981
|
React.createElement(AngleRightIcon, { "aria-label": `${isCurrent ? 'Collapse' : 'Expand'} step icon` }))))) : (React.createElement(React.Fragment, null,
|
|
8961
8982
|
content,
|
|
8962
8983
|
status === WizardNavItemStatus.Error && (React.createElement("span", { style: { marginLeft: 'var(--pf-v5-global--spacer--sm)' } },
|
|
@@ -9520,14 +9541,14 @@ const l_flex_item_Order = {
|
|
|
9520
9541
|
const Flex = (_a) => {
|
|
9521
9542
|
var { children = null, className = '', component = 'div', spacer, spaceItems, gap, rowGap, columnGap, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest$1(_a, ["children", "className", "component", "spacer", "spaceItems", "gap", "rowGap", "columnGap", "grow", "shrink", "flex", "direction", "alignItems", "alignContent", "alignSelf", "align", "justifyContent", "display", "fullWidth", "flexWrap", "order", "style"]);
|
|
9522
9543
|
const Component = component;
|
|
9523
|
-
return (React.createElement(Component, Object.assign({ className: css(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), formatBreakpointMods(gap, styles$2), formatBreakpointMods(rowGap, styles$2), formatBreakpointMods(columnGap, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));
|
|
9544
|
+
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), formatBreakpointMods(gap, styles$2), formatBreakpointMods(rowGap, styles$2), formatBreakpointMods(columnGap, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));
|
|
9524
9545
|
};
|
|
9525
9546
|
Flex.displayName = 'Flex';
|
|
9526
9547
|
|
|
9527
9548
|
const FlexItem = (_a) => {
|
|
9528
9549
|
var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest$1(_a, ["children", "className", "component", "spacer", "grow", "shrink", "flex", "alignSelf", "align", "fullWidth", "order", "style"]);
|
|
9529
9550
|
const Component = component;
|
|
9530
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css(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));
|
|
9551
|
+
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));
|
|
9531
9552
|
};
|
|
9532
9553
|
FlexItem.displayName = 'FlexItem';
|
|
9533
9554
|
|
|
@@ -9550,7 +9571,7 @@ const Gallery = (_a) => {
|
|
|
9550
9571
|
Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`--pf-v5-l-gallery--GridTemplateColumns--max${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
9551
9572
|
}
|
|
9552
9573
|
const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
|
|
9553
|
-
return (React.createElement(Component, Object.assign({ className: css(styles$1.gallery, hasGutter && styles$1.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));
|
|
9574
|
+
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));
|
|
9554
9575
|
};
|
|
9555
9576
|
Gallery.displayName = 'Gallery';
|
|
9556
9577
|
|
|
@@ -9573,13 +9594,13 @@ var styles = {
|
|
|
9573
9594
|
const Stack = (_a) => {
|
|
9574
9595
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest$1(_a, ["hasGutter", "className", "children", "component"]);
|
|
9575
9596
|
const Component = component;
|
|
9576
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
9597
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
9577
9598
|
};
|
|
9578
9599
|
Stack.displayName = 'Stack';
|
|
9579
9600
|
|
|
9580
9601
|
const StackItem = (_a) => {
|
|
9581
9602
|
var { isFilled = false, className = '', children = null } = _a, props = __rest$1(_a, ["isFilled", "className", "children"]);
|
|
9582
|
-
return (React.createElement("div", Object.assign({}, props, { className: css(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
9603
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
9583
9604
|
};
|
|
9584
9605
|
StackItem.displayName = 'StackItem';
|
|
9585
9606
|
|
|
@@ -9634,6 +9655,36 @@ exports["default"] = exports.SearchIcon;
|
|
|
9634
9655
|
|
|
9635
9656
|
var SearchIcon = /*@__PURE__*/getDefaultExportFromCjs(searchIcon);
|
|
9636
9657
|
|
|
9658
|
+
/** Joins args into a className string
|
|
9659
|
+
*
|
|
9660
|
+
* @param {any} args list of objects, string, or arrays to reduce
|
|
9661
|
+
*/
|
|
9662
|
+
function css(...args) {
|
|
9663
|
+
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
9664
|
+
const classes = [];
|
|
9665
|
+
const hasOwn = {}.hasOwnProperty;
|
|
9666
|
+
args.filter(Boolean).forEach((arg) => {
|
|
9667
|
+
const argType = typeof arg;
|
|
9668
|
+
if (argType === 'string' || argType === 'number') {
|
|
9669
|
+
classes.push(arg);
|
|
9670
|
+
}
|
|
9671
|
+
else if (Array.isArray(arg) && arg.length) {
|
|
9672
|
+
const inner = css(...arg);
|
|
9673
|
+
if (inner) {
|
|
9674
|
+
classes.push(inner);
|
|
9675
|
+
}
|
|
9676
|
+
}
|
|
9677
|
+
else if (argType === 'object') {
|
|
9678
|
+
for (const key in arg) {
|
|
9679
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
9680
|
+
classes.push(key);
|
|
9681
|
+
}
|
|
9682
|
+
}
|
|
9683
|
+
}
|
|
9684
|
+
});
|
|
9685
|
+
return classes.join(' ');
|
|
9686
|
+
}
|
|
9687
|
+
|
|
9637
9688
|
function _extends() {
|
|
9638
9689
|
_extends = Object.assign || function (target) {
|
|
9639
9690
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -10450,8 +10501,8 @@ const CamelCaseWrap = ({ value, dataTest }) => {
|
|
|
10450
10501
|
};
|
|
10451
10502
|
|
|
10452
10503
|
class CatalogTile extends React.Component {
|
|
10453
|
-
constructor(
|
|
10454
|
-
super(
|
|
10504
|
+
constructor() {
|
|
10505
|
+
super(...arguments);
|
|
10455
10506
|
this.handleClick = (e) => {
|
|
10456
10507
|
const { onClick, href } = this.props;
|
|
10457
10508
|
if (!href) {
|
|
@@ -10467,18 +10518,13 @@ class CatalogTile extends React.Component {
|
|
|
10467
10518
|
}
|
|
10468
10519
|
return (React.createElement("div", { className: "catalog-tile-pf-badge-container" }, badges.map((badge, index) => (React.createElement("span", { key: `badge-${index}` }, badge)))));
|
|
10469
10520
|
};
|
|
10470
|
-
this.generatedId = getUniqueId('pf-catalog-tile');
|
|
10471
10521
|
}
|
|
10472
10522
|
render() {
|
|
10473
10523
|
const _a = this.props, { id, className, featured, onClick, href, icon, iconImg, iconAlt, iconClass, badges, title, vendor, description, footer,
|
|
10474
10524
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10475
10525
|
ref, children } = _a, props = __rest(_a, ["id", "className", "featured", "onClick", "href", "icon", "iconImg", "iconAlt", "iconClass", "badges", "title", "vendor", "description", "footer", "ref", "children"]);
|
|
10476
|
-
return (React.createElement(Card, Object.assign({ component: href ? 'a' : 'div', id: id
|
|
10477
|
-
(badges.length > 0 || iconImg || iconClass || icon || onClick) && (React.createElement(CardHeader, { actions: { actions: badges.length > 0 && this.renderBadges(badges) }, selectableActions: onClick && {
|
|
10478
|
-
selectableActionId: id + '-input',
|
|
10479
|
-
onClickAction: (e) => this.handleClick(e),
|
|
10480
|
-
selectableActionAriaLabelledby: id
|
|
10481
|
-
} },
|
|
10526
|
+
return (React.createElement(Card, Object.assign({ component: href ? 'a' : 'div', id: id, href: href || '#', className: css$1('catalog-tile-pf', { featured }, className), isClickable: !!onClick }, props),
|
|
10527
|
+
(badges.length > 0 || iconImg || iconClass || icon || onClick) && (React.createElement(CardHeader, { actions: { actions: badges.length > 0 && this.renderBadges(badges) }, selectableActions: onClick && { selectableActionId: id + '-input', onClickAction: (e) => this.handleClick(e), selectableActionAriaLabelledby: id } },
|
|
10482
10528
|
iconImg && React.createElement("img", { className: "catalog-tile-pf-icon", src: iconImg, alt: iconAlt }),
|
|
10483
10529
|
!iconImg && (iconClass || icon) && React.createElement("span", { className: `catalog-tile-pf-icon ${iconClass}` }, icon))),
|
|
10484
10530
|
React.createElement(CardTitle, { className: "catalog-tile-pf-header" },
|
|
@@ -10486,14 +10532,14 @@ class CatalogTile extends React.Component {
|
|
|
10486
10532
|
vendor && React.createElement("div", { className: "catalog-tile-pf-subtitle" }, vendor)),
|
|
10487
10533
|
(description || children) && (React.createElement(CardBody, { className: "catalog-tile-pf-body" },
|
|
10488
10534
|
description && (React.createElement("div", { className: "catalog-tile-pf-description" },
|
|
10489
|
-
React.createElement("span", { className: css({ 'has-footer': footer }) }, description))),
|
|
10535
|
+
React.createElement("span", { className: css$1({ 'has-footer': footer }) }, description))),
|
|
10490
10536
|
children)),
|
|
10491
10537
|
footer && React.createElement(CardFooter, { className: "catalog-tile-pf-footer" }, footer)));
|
|
10492
10538
|
}
|
|
10493
10539
|
}
|
|
10494
10540
|
CatalogTile.displayName = 'CatalogTile';
|
|
10495
10541
|
CatalogTile.defaultProps = {
|
|
10496
|
-
id:
|
|
10542
|
+
id: getUniqueId('pf-catalog-tile'),
|
|
10497
10543
|
className: '',
|
|
10498
10544
|
featured: false,
|
|
10499
10545
|
onClick: null,
|
|
@@ -30287,7 +30333,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, })
|
|
|
30287
30333
|
}
|
|
30288
30334
|
};
|
|
30289
30335
|
return (React.createElement("div", { ref: ref },
|
|
30290
|
-
React.createElement(CatalogTile, { style: {
|
|
30336
|
+
React.createElement(CatalogTile, { id: id + '-catalog-tile', style: {
|
|
30291
30337
|
cursor: 'pointer',
|
|
30292
30338
|
}, icon: quickStartIcon, className: "pfext-quick-start-tile", "data-testid": `qs-card-${camelize(displayName)}`, featured: isActive, title: React.createElement(QuickStartTileHeader, { name: displayName, status: status, duration: durationMinutes, type: type, quickStartId: id }), onClick: handleClick, onKeyDown: (event) => {
|
|
30293
30339
|
if (event.key === 'Enter' || event.key === ' ') {
|