@patternfly/quickstarts 2.4.0 → 2.4.2
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 +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +1 -1
- package/dist/patternfly-docs/quick-starts/examples/about.md +28 -21
- package/dist/patternfly-docs/quick-starts/examples/basic.md +7 -5
- package/dist/patternfly-docs/quick-starts/examples/help-topics.md +8 -5
- package/dist/quickstarts-full.es.js +308 -338
- package/dist/quickstarts-full.es.js.map +1 -1
- package/package.json +2 -2
- package/src/HelpTopicPanelContent.tsx +1 -1
- package/src/QuickStartPanelContent.tsx +1 -1
|
@@ -274,7 +274,7 @@ var tslib_es6 = /*#__PURE__*/Object.freeze({
|
|
|
274
274
|
*
|
|
275
275
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
276
276
|
*/
|
|
277
|
-
function css$
|
|
277
|
+
function css$1(...args) {
|
|
278
278
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
279
279
|
const classes = [];
|
|
280
280
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -284,7 +284,7 @@ function css$2(...args) {
|
|
|
284
284
|
classes.push(arg);
|
|
285
285
|
}
|
|
286
286
|
else if (Array.isArray(arg) && arg.length) {
|
|
287
|
-
const inner = css$
|
|
287
|
+
const inner = css$1(...arg);
|
|
288
288
|
if (inner) {
|
|
289
289
|
classes.push(inner);
|
|
290
290
|
}
|
|
@@ -300,7 +300,7 @@ function css$2(...args) {
|
|
|
300
300
|
return classes.join(' ');
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
var styles$
|
|
303
|
+
var styles$v = {
|
|
304
304
|
"backdrop": "pf-c-backdrop",
|
|
305
305
|
"backdropOpen": "pf-c-backdrop__open"
|
|
306
306
|
};
|
|
@@ -4025,7 +4025,7 @@ const Popper = ({ trigger, popper, popperMatchesTriggerWidth = true, direction =
|
|
|
4025
4025
|
}
|
|
4026
4026
|
return positionModifiers.top;
|
|
4027
4027
|
};
|
|
4028
|
-
const options = Object.assign({ className: css$
|
|
4028
|
+
const options = Object.assign({ className: css$1(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex }) }, attributes.popper);
|
|
4029
4029
|
const menuWithPopper = React.cloneElement(popper, options);
|
|
4030
4030
|
const getTarget = () => {
|
|
4031
4031
|
if (typeof appendTo === 'function') {
|
|
@@ -4167,11 +4167,11 @@ const getResizeObserver = (containerRefElement, handleResize, useRequestAnimatio
|
|
|
4167
4167
|
};
|
|
4168
4168
|
};
|
|
4169
4169
|
|
|
4170
|
-
var styles$
|
|
4170
|
+
var styles$u = {
|
|
4171
4171
|
"bullseye": "pf-l-bullseye"
|
|
4172
4172
|
};
|
|
4173
4173
|
|
|
4174
|
-
var styles$
|
|
4174
|
+
var styles$t = {
|
|
4175
4175
|
"content": "pf-c-content",
|
|
4176
4176
|
"modifiers": {
|
|
4177
4177
|
"visited": "pf-m-visited",
|
|
@@ -4179,7 +4179,7 @@ var styles$u = {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
|
|
4182
|
-
var styles$
|
|
4182
|
+
var styles$s = {
|
|
4183
4183
|
"modifiers": {
|
|
4184
4184
|
"4xl": "pf-m-4xl",
|
|
4185
4185
|
"3xl": "pf-m-3xl",
|
|
@@ -4213,7 +4213,7 @@ var headingLevelSizeMap;
|
|
|
4213
4213
|
const Title = (_a) => {
|
|
4214
4214
|
var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
|
|
4215
4215
|
const ouiaProps = useOUIAProps(Title.displayName, ouiaId, ouiaSafe);
|
|
4216
|
-
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$
|
|
4216
|
+
return (React.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: css$1(styles$s.title, size && styles$s.modifiers[size], className) }), children));
|
|
4217
4217
|
};
|
|
4218
4218
|
Title.displayName = 'Title';
|
|
4219
4219
|
|
|
@@ -4251,7 +4251,7 @@ var buttonStyles = {
|
|
|
4251
4251
|
"themeDark": "pf-theme-dark"
|
|
4252
4252
|
};
|
|
4253
4253
|
|
|
4254
|
-
var styles$
|
|
4254
|
+
var styles$r = {
|
|
4255
4255
|
"modifiers": {
|
|
4256
4256
|
"inline": "pf-m-inline",
|
|
4257
4257
|
"sm": "pf-m-sm",
|
|
@@ -4278,10 +4278,10 @@ const Spinner = (_a) => {
|
|
|
4278
4278
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4279
4279
|
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
4280
4280
|
const Component = isSVG ? 'svg' : 'span';
|
|
4281
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
4282
|
-
React.createElement("span", { className: css$
|
|
4283
|
-
React.createElement("span", { className: css$
|
|
4284
|
-
React.createElement("span", { className: css$
|
|
4281
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$r.spinner, isInline ? styles$r.modifiers.inline : styles$r.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React.createElement("circle", { className: styles$r.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React.createElement(React.Fragment, null,
|
|
4282
|
+
React.createElement("span", { className: css$1(styles$r.spinnerClipper) }),
|
|
4283
|
+
React.createElement("span", { className: css$1(styles$r.spinnerLeadBall) }),
|
|
4284
|
+
React.createElement("span", { className: css$1(styles$r.spinnerTailBall) })))));
|
|
4285
4285
|
};
|
|
4286
4286
|
Spinner.displayName = 'Spinner';
|
|
4287
4287
|
|
|
@@ -4296,7 +4296,7 @@ var badgeStyles = {
|
|
|
4296
4296
|
|
|
4297
4297
|
const Badge = (_a) => {
|
|
4298
4298
|
var { isRead = false, className = '', children = '', screenReaderText } = _a, props = __rest(_a, ["isRead", "className", "children", "screenReaderText"]);
|
|
4299
|
-
return (React.createElement("span", Object.assign({}, props, { className: css$
|
|
4299
|
+
return (React.createElement("span", Object.assign({}, props, { className: css$1(badgeStyles.badge, (isRead ? badgeStyles.modifiers.read : badgeStyles.modifiers.unread), className) }),
|
|
4300
4300
|
children,
|
|
4301
4301
|
screenReaderText && React.createElement("span", { className: "pf-screen-reader" }, screenReaderText)));
|
|
4302
4302
|
};
|
|
@@ -4339,14 +4339,14 @@ const ButtonBase = (_a) => {
|
|
|
4339
4339
|
return 0;
|
|
4340
4340
|
}
|
|
4341
4341
|
};
|
|
4342
|
-
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css$
|
|
4343
|
-
isLoading && (React.createElement("span", { className: css$
|
|
4342
|
+
return (React.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css$1(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isActive && buttonStyles.modifiers.active, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && children !== null && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, isSmall && buttonStyles.modifiers.small, isLarge && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
4343
|
+
isLoading && (React.createElement("span", { className: css$1(buttonStyles.buttonProgress) },
|
|
4344
4344
|
React.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4345
4345
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
4346
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css$
|
|
4346
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4347
4347
|
children,
|
|
4348
|
-
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css$
|
|
4349
|
-
countOptions && (React.createElement("span", { className: css$
|
|
4348
|
+
variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React.createElement("span", { className: css$1(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
|
|
4349
|
+
countOptions && (React.createElement("span", { className: css$1(buttonStyles.buttonCount, countOptions.className) },
|
|
4350
4350
|
React.createElement(Badge, { isRead: countOptions.isRead }, countOptions.count)))));
|
|
4351
4351
|
};
|
|
4352
4352
|
const Button = React.forwardRef((props, ref) => (React.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
|
|
@@ -4418,11 +4418,11 @@ const TimesIcon = createIcon(TimesIconConfig);
|
|
|
4418
4418
|
|
|
4419
4419
|
const Backdrop = (_a) => {
|
|
4420
4420
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
4421
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
4421
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles$v.backdrop, className) }), children));
|
|
4422
4422
|
};
|
|
4423
4423
|
Backdrop.displayName = 'Backdrop';
|
|
4424
4424
|
|
|
4425
|
-
var styles$
|
|
4425
|
+
var styles$q = {
|
|
4426
4426
|
"accordion": "pf-c-accordion",
|
|
4427
4427
|
"accordionExpandedContent": "pf-c-accordion__expanded-content",
|
|
4428
4428
|
"accordionExpandedContentBody": "pf-c-accordion__expanded-content-body",
|
|
@@ -4443,7 +4443,7 @@ const AccordionContext = React.createContext({});
|
|
|
4443
4443
|
const Accordion = (_a) => {
|
|
4444
4444
|
var { children = null, className = '', 'aria-label': ariaLabel = '', headingLevel = 'h3', asDefinitionList = true, isBordered = false, displaySize = 'default' } = _a, props = __rest(_a, ["children", "className", 'aria-label', "headingLevel", "asDefinitionList", "isBordered", "displaySize"]);
|
|
4445
4445
|
const AccordionList = asDefinitionList ? 'dl' : 'div';
|
|
4446
|
-
return (React.createElement(AccordionList, Object.assign({ className: css$
|
|
4446
|
+
return (React.createElement(AccordionList, Object.assign({ className: css$1(styles$q.accordion, isBordered && styles$q.modifiers.bordered, displaySize === 'large' && styles$q.modifiers.displayLg, className), "aria-label": ariaLabel }, props),
|
|
4447
4447
|
React.createElement(AccordionContext.Provider, { value: {
|
|
4448
4448
|
ContentContainer: asDefinitionList ? 'dd' : 'div',
|
|
4449
4449
|
ToggleContainer: asDefinitionList ? 'dt' : headingLevel
|
|
@@ -4451,14 +4451,14 @@ const Accordion = (_a) => {
|
|
|
4451
4451
|
};
|
|
4452
4452
|
Accordion.displayName = 'Accordion';
|
|
4453
4453
|
|
|
4454
|
-
const AccordionExpandedContentBody = ({ children = null }) => React.createElement("div", { className: css$
|
|
4454
|
+
const AccordionExpandedContentBody = ({ children = null }) => React.createElement("div", { className: css$1(styles$q.accordionExpandedContentBody) }, children);
|
|
4455
4455
|
AccordionExpandedContentBody.displayName = 'AccordionExpandedContentBody';
|
|
4456
4456
|
|
|
4457
4457
|
const AccordionContent = (_a) => {
|
|
4458
4458
|
var { className = '', children = null, id = '', isHidden = false, isFixed = false, isCustomContent = false, 'aria-label': ariaLabel = '', component } = _a, props = __rest(_a, ["className", "children", "id", "isHidden", "isFixed", "isCustomContent", 'aria-label', "component"]);
|
|
4459
4459
|
return (React.createElement(AccordionContext.Consumer, null, ({ ContentContainer }) => {
|
|
4460
4460
|
const Container = component || ContentContainer;
|
|
4461
|
-
return (React.createElement(Container, Object.assign({ id: id, className: css$
|
|
4461
|
+
return (React.createElement(Container, Object.assign({ id: id, className: css$1(styles$q.accordionExpandedContent, isFixed && styles$q.modifiers.fixed, !isHidden && styles$q.modifiers.expanded, className), hidden: isHidden, "aria-label": ariaLabel }, props), isCustomContent ? children : React.createElement(AccordionExpandedContentBody, null, children)));
|
|
4462
4462
|
}));
|
|
4463
4463
|
};
|
|
4464
4464
|
AccordionContent.displayName = 'AccordionContent';
|
|
@@ -4482,15 +4482,15 @@ const AccordionToggle = (_a) => {
|
|
|
4482
4482
|
return (React.createElement(AccordionContext.Consumer, null, ({ ToggleContainer }) => {
|
|
4483
4483
|
const Container = component || ToggleContainer;
|
|
4484
4484
|
return (React.createElement(Container, null,
|
|
4485
|
-
React.createElement("button", Object.assign({ id: id, className: css$
|
|
4486
|
-
React.createElement("span", { className: css$
|
|
4487
|
-
React.createElement("span", { className: css$
|
|
4485
|
+
React.createElement("button", Object.assign({ id: id, className: css$1(styles$q.accordionToggle, isExpanded && styles$q.modifiers.expanded, className), "aria-expanded": isExpanded, type: "button" }, props),
|
|
4486
|
+
React.createElement("span", { className: css$1(styles$q.accordionToggleText) }, children),
|
|
4487
|
+
React.createElement("span", { className: css$1(styles$q.accordionToggleIcon) },
|
|
4488
4488
|
React.createElement(AngleRightIcon, null)))));
|
|
4489
4489
|
}));
|
|
4490
4490
|
};
|
|
4491
4491
|
AccordionToggle.displayName = 'AccordionToggle';
|
|
4492
4492
|
|
|
4493
|
-
var styles$
|
|
4493
|
+
var styles$p = {
|
|
4494
4494
|
"alert": "pf-c-alert",
|
|
4495
4495
|
"alertAction": "pf-c-alert__action",
|
|
4496
4496
|
"alertActionGroup": "pf-c-alert__action-group",
|
|
@@ -4601,7 +4601,7 @@ const variantIcons = {
|
|
|
4601
4601
|
const AlertIcon = (_a) => {
|
|
4602
4602
|
var { variant, customIcon, className = '' } = _a, props = __rest(_a, ["variant", "customIcon", "className"]);
|
|
4603
4603
|
const Icon = variantIcons[variant];
|
|
4604
|
-
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$
|
|
4604
|
+
return Icon ? (React.createElement("div", Object.assign({}, props, { className: css$1(styles$p.alertIcon, className) }), customIcon || React.createElement(Icon, null))) : null;
|
|
4605
4605
|
};
|
|
4606
4606
|
|
|
4607
4607
|
const AlertContext = React.createContext(null);
|
|
@@ -4612,7 +4612,7 @@ const c_alert__title_max_lines = {
|
|
|
4612
4612
|
"var": "var(--pf-c-alert__title--max-lines)"
|
|
4613
4613
|
};
|
|
4614
4614
|
|
|
4615
|
-
var styles$
|
|
4615
|
+
var styles$o = {
|
|
4616
4616
|
"modifiers": {
|
|
4617
4617
|
"top": "pf-m-top",
|
|
4618
4618
|
"topLeft": "pf-m-top-left",
|
|
@@ -4636,13 +4636,13 @@ var styles$p = {
|
|
|
4636
4636
|
|
|
4637
4637
|
const TooltipContent = (_a) => {
|
|
4638
4638
|
var { className, children, isLeftAligned } = _a, props = __rest(_a, ["className", "children", "isLeftAligned"]);
|
|
4639
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
4639
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipContent, isLeftAligned && styles$o.modifiers.textAlignLeft, className) }, props), children));
|
|
4640
4640
|
};
|
|
4641
4641
|
TooltipContent.displayName = 'TooltipContent';
|
|
4642
4642
|
|
|
4643
4643
|
const TooltipArrow = (_a) => {
|
|
4644
4644
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
4645
|
-
return React.createElement("div", Object.assign({ className: css$
|
|
4645
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$o.tooltipArrow, className) }, props));
|
|
4646
4646
|
};
|
|
4647
4647
|
TooltipArrow.displayName = 'TooltipArrow';
|
|
4648
4648
|
|
|
@@ -4758,21 +4758,21 @@ const Tooltip = (_a) => {
|
|
|
4758
4758
|
}, exitDelay);
|
|
4759
4759
|
};
|
|
4760
4760
|
const positionModifiers = {
|
|
4761
|
-
top: styles$
|
|
4762
|
-
bottom: styles$
|
|
4763
|
-
left: styles$
|
|
4764
|
-
right: styles$
|
|
4765
|
-
'top-start': styles$
|
|
4766
|
-
'top-end': styles$
|
|
4767
|
-
'bottom-start': styles$
|
|
4768
|
-
'bottom-end': styles$
|
|
4769
|
-
'left-start': styles$
|
|
4770
|
-
'left-end': styles$
|
|
4771
|
-
'right-start': styles$
|
|
4772
|
-
'right-end': styles$
|
|
4761
|
+
top: styles$o.modifiers.top,
|
|
4762
|
+
bottom: styles$o.modifiers.bottom,
|
|
4763
|
+
left: styles$o.modifiers.left,
|
|
4764
|
+
right: styles$o.modifiers.right,
|
|
4765
|
+
'top-start': styles$o.modifiers.topLeft,
|
|
4766
|
+
'top-end': styles$o.modifiers.topRight,
|
|
4767
|
+
'bottom-start': styles$o.modifiers.bottomLeft,
|
|
4768
|
+
'bottom-end': styles$o.modifiers.bottomRight,
|
|
4769
|
+
'left-start': styles$o.modifiers.leftTop,
|
|
4770
|
+
'left-end': styles$o.modifiers.leftBottom,
|
|
4771
|
+
'right-start': styles$o.modifiers.rightTop,
|
|
4772
|
+
'right-end': styles$o.modifiers.rightBottom
|
|
4773
4773
|
};
|
|
4774
4774
|
const hasCustomMaxWidth = maxWidth !== c_tooltip_MaxWidth.value;
|
|
4775
|
-
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$
|
|
4775
|
+
const content = (React.createElement("div", Object.assign({ "aria-live": ariaLive, className: css$1(styles$o.tooltip, className), role: "tooltip", id: id, style: {
|
|
4776
4776
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4777
4777
|
opacity,
|
|
4778
4778
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -4809,7 +4809,7 @@ const AlertToggleExpandButton = (_a) => {
|
|
|
4809
4809
|
var { 'aria-label': ariaLabel = '', variantLabel, onToggleExpand, isExpanded = false } = _a, props = __rest(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
|
|
4810
4810
|
const { title, variantLabel: alertVariantLabel } = React.useContext(AlertContext);
|
|
4811
4811
|
return (React.createElement(Button, Object.assign({ variant: ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
|
|
4812
|
-
React.createElement("span", { className: css$
|
|
4812
|
+
React.createElement("span", { className: css$1(styles$p.alertToggleIcon) },
|
|
4813
4813
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" }))));
|
|
4814
4814
|
};
|
|
4815
4815
|
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
|
|
@@ -4826,7 +4826,7 @@ const Alert = (_a) => {
|
|
|
4826
4826
|
var { variant = AlertVariant.default, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${capitalize(variant)} alert:`, 'aria-label': ariaLabel = `${capitalize(variant)} Alert`, actionClose, actionLinks, title, titleHeadingLevel: TitleHeadingLevel = 'h4', children = '', className = '', ouiaId, ouiaSafe = true, timeout = false, timeoutAnimation = 3000, onTimeout = () => { }, truncateTitle = 0, tooltipPosition, customIcon, isExpandable = false, toggleAriaLabel = `${capitalize(variant)} alert details`, onMouseEnter = () => { }, onMouseLeave = () => { }, id } = _a, props = __rest(_a, ["variant", "isInline", "isPlain", "isLiveRegion", "variantLabel", 'aria-label', "actionClose", "actionLinks", "title", "titleHeadingLevel", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave", "id"]);
|
|
4827
4827
|
const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
|
|
4828
4828
|
const getHeadingContent = (React.createElement(React.Fragment, null,
|
|
4829
|
-
React.createElement("span", { className: css$
|
|
4829
|
+
React.createElement("span", { className: css$1(a11yStyles.screenReader) }, variantLabel),
|
|
4830
4830
|
title));
|
|
4831
4831
|
const titleRef = React.useRef(null);
|
|
4832
4832
|
const divRef = React.useRef();
|
|
@@ -4893,24 +4893,24 @@ const Alert = (_a) => {
|
|
|
4893
4893
|
if (dismissed) {
|
|
4894
4894
|
return null;
|
|
4895
4895
|
}
|
|
4896
|
-
const Title = (React.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$
|
|
4897
|
-
return (React.createElement("div", Object.assign({ ref: divRef, className: css$
|
|
4896
|
+
const Title = (React.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css$1(styles$p.alertTitle, truncateTitle && styles$p.modifiers.truncate) }), getHeadingContent));
|
|
4897
|
+
return (React.createElement("div", Object.assign({ ref: divRef, className: css$1(styles$p.alert, isInline && styles$p.modifiers.inline, isPlain && styles$p.modifiers.plain, isExpandable && styles$p.modifiers.expandable, isExpanded && styles$p.modifiers.expanded, styles$p.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
4898
4898
|
'aria-live': 'polite',
|
|
4899
4899
|
'aria-atomic': 'false'
|
|
4900
4900
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave, id: id }, props),
|
|
4901
4901
|
isExpandable && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4902
|
-
React.createElement("div", { className: css$
|
|
4902
|
+
React.createElement("div", { className: css$1(styles$p.alertToggle) },
|
|
4903
4903
|
React.createElement(AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
|
|
4904
4904
|
React.createElement(AlertIcon, { variant: variant, customIcon: customIcon }),
|
|
4905
4905
|
isTooltipVisible ? (React.createElement(Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
|
|
4906
4906
|
actionClose && (React.createElement(AlertContext.Provider, { value: { title, variantLabel } },
|
|
4907
|
-
React.createElement("div", { className: css$
|
|
4908
|
-
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$
|
|
4909
|
-
actionLinks && React.createElement("div", { className: css$
|
|
4907
|
+
React.createElement("div", { className: css$1(styles$p.alertAction) }, actionClose))),
|
|
4908
|
+
children && (!isExpandable || (isExpandable && isExpanded)) && (React.createElement("div", { className: css$1(styles$p.alertDescription) }, children)),
|
|
4909
|
+
actionLinks && React.createElement("div", { className: css$1(styles$p.alertActionGroup) }, actionLinks)));
|
|
4910
4910
|
};
|
|
4911
4911
|
Alert.displayName = 'Alert';
|
|
4912
4912
|
|
|
4913
|
-
var formStyles = {
|
|
4913
|
+
var formStyles$1 = {
|
|
4914
4914
|
"formControl": "pf-c-form-control",
|
|
4915
4915
|
"modifiers": {
|
|
4916
4916
|
"success": "pf-m-success",
|
|
@@ -4929,7 +4929,7 @@ var formStyles = {
|
|
|
4929
4929
|
"themeDark": "pf-theme-dark"
|
|
4930
4930
|
};
|
|
4931
4931
|
|
|
4932
|
-
var styles$
|
|
4932
|
+
var styles$n = {
|
|
4933
4933
|
"badge": "pf-c-badge",
|
|
4934
4934
|
"check": "pf-c-check",
|
|
4935
4935
|
"divider": "pf-c-divider",
|
|
@@ -5115,12 +5115,12 @@ class DropdownMenu extends React.Component {
|
|
|
5115
5115
|
return (React.createElement(DropdownArrowContext.Provider, { value: {
|
|
5116
5116
|
keyHandler: this.childKeyHandler,
|
|
5117
5117
|
sendRef: this.sendRef
|
|
5118
|
-
} }, component === 'div' ? (React.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React.createElement("div", { className: css$
|
|
5118
|
+
} }, component === 'div' ? (React.createElement(DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (React.createElement("div", { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (React.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5119
5119
|
const MenuComponent = (menuComponent || 'div');
|
|
5120
|
-
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$
|
|
5120
|
+
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5121
5121
|
}))) || (React.createElement(DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
|
|
5122
5122
|
const MenuComponent = (menuComponent || component);
|
|
5123
|
-
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$
|
|
5123
|
+
return (React.createElement(MenuComponent, Object.assign({}, props, { className: css$1(menuClass, position === DropdownPosition.right && styles$n.modifiers.alignRight, formatBreakpointMods(alignments, styles$n, 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
|
|
5124
5124
|
})))));
|
|
5125
5125
|
}
|
|
5126
5126
|
}
|
|
@@ -5135,7 +5135,7 @@ DropdownMenu.defaultProps = {
|
|
|
5135
5135
|
isGrouped: false,
|
|
5136
5136
|
setMenuComponentRef: null
|
|
5137
5137
|
};
|
|
5138
|
-
DropdownMenu.validToggleClasses = [styles$
|
|
5138
|
+
DropdownMenu.validToggleClasses = [styles$n.dropdownToggle, styles$n.dropdownToggleButton];
|
|
5139
5139
|
DropdownMenu.focusFirstRef = (refCollection) => {
|
|
5140
5140
|
if (refCollection && refCollection[0] && refCollection[0].focus) {
|
|
5141
5141
|
setTimeout(() => refCollection[0].focus());
|
|
@@ -5187,9 +5187,9 @@ class DropdownWithContext extends React.Component {
|
|
|
5187
5187
|
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
5188
5188
|
return (React.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
|
|
5189
5189
|
const BaseComponent = baseComponent;
|
|
5190
|
-
const menuContainer = (React.createElement(DropdownMenu, { className: css$
|
|
5191
|
-
const popperContainer = (React.createElement("div", { className: css$
|
|
5192
|
-
const mainContainer = (React.createElement(BaseComponent, Object.assign({}, props, { className: css$
|
|
5190
|
+
const menuContainer = (React.createElement(DropdownMenu, { className: css$1(isStatic && styles$n.modifiers.static), setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
|
|
5191
|
+
const popperContainer = (React.createElement("div", { className: css$1(baseClass, direction === DropdownDirection.up && styles$n.modifiers.top, position === DropdownPosition.right && styles$n.modifiers.alignRight, isOpen && styles$n.modifiers.expanded, className) }, isOpen && menuContainer));
|
|
5192
|
+
const mainContainer = (React.createElement(BaseComponent, Object.assign({}, props, { className: css$1(baseClass, direction === DropdownDirection.up && styles$n.modifiers.top, position === DropdownPosition.right && styles$n.modifiers.alignRight, isOpen && styles$n.modifiers.expanded, isFullHeight && styles$n.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
|
|
5193
5193
|
React.Children.map(toggle, oneToggle => React.cloneElement(oneToggle, {
|
|
5194
5194
|
parentRef: this.baseComponentRef,
|
|
5195
5195
|
getMenuRef: this.getMenuComponentRef,
|
|
@@ -5304,7 +5304,7 @@ class InternalDropdownItem extends React.Component {
|
|
|
5304
5304
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5305
5305
|
const _a = this.props, { className, children, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = __rest(_a, ["className", "children", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
|
|
5306
5306
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5307
|
-
let classes = css$
|
|
5307
|
+
let classes = css$1(icon && styles$n.modifiers.icon, isAriaDisabled && styles$n.modifiers.ariaDisabled, className);
|
|
5308
5308
|
if (component === 'a') {
|
|
5309
5309
|
additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
|
|
5310
5310
|
}
|
|
@@ -5314,22 +5314,22 @@ class InternalDropdownItem extends React.Component {
|
|
|
5314
5314
|
}
|
|
5315
5315
|
const renderWithTooltip = (childNode) => tooltip ? (React.createElement(Tooltip, Object.assign({ content: tooltip }, tooltipProps), childNode)) : (childNode);
|
|
5316
5316
|
const renderClonedComponent = (element) => React.cloneElement(element, Object.assign(Object.assign({}, (styleChildren && {
|
|
5317
|
-
className: css$
|
|
5317
|
+
className: css$1(element.props.className, classes)
|
|
5318
5318
|
})), (this.props.role !== 'separator' && { role, ref: this.componentRef })));
|
|
5319
5319
|
const renderDefaultComponent = (tag) => {
|
|
5320
5320
|
const Component = tag;
|
|
5321
5321
|
const componentContent = description ? (React.createElement(React.Fragment, null,
|
|
5322
|
-
React.createElement("div", { className: styles$
|
|
5323
|
-
icon && React.createElement("span", { className: css$
|
|
5322
|
+
React.createElement("div", { className: styles$n.dropdownMenuItemMain },
|
|
5323
|
+
icon && React.createElement("span", { className: css$1(styles$n.dropdownMenuItemIcon) }, icon),
|
|
5324
5324
|
children),
|
|
5325
|
-
React.createElement("div", { className: styles$
|
|
5326
|
-
icon && React.createElement("span", { className: css$
|
|
5325
|
+
React.createElement("div", { className: styles$n.dropdownMenuItemDescription }, description))) : (React.createElement(React.Fragment, null,
|
|
5326
|
+
icon && React.createElement("span", { className: css$1(styles$n.dropdownMenuItemIcon) }, icon),
|
|
5327
5327
|
children));
|
|
5328
5328
|
return (React.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? preventedEvents(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID, role: role }), componentContent));
|
|
5329
5329
|
};
|
|
5330
5330
|
return (React.createElement(DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
|
|
5331
5331
|
if (this.props.role !== 'separator') {
|
|
5332
|
-
classes = css$
|
|
5332
|
+
classes = css$1(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && styles$n.modifiers.description);
|
|
5333
5333
|
}
|
|
5334
5334
|
if (customChild) {
|
|
5335
5335
|
return React.cloneElement(customChild, {
|
|
@@ -5382,7 +5382,7 @@ const DropdownItem = (_a) => {
|
|
|
5382
5382
|
};
|
|
5383
5383
|
DropdownItem.displayName = 'DropdownItem';
|
|
5384
5384
|
|
|
5385
|
-
var styles$
|
|
5385
|
+
var styles$m = {
|
|
5386
5386
|
"divider": "pf-c-divider",
|
|
5387
5387
|
"modifiers": {
|
|
5388
5388
|
"hidden": "pf-m-hidden",
|
|
@@ -5467,7 +5467,7 @@ var DividerVariant;
|
|
|
5467
5467
|
const Divider = (_a) => {
|
|
5468
5468
|
var { className, component = DividerVariant.hr, isVertical = false, inset, orientation } = _a, props = __rest(_a, ["className", "component", "isVertical", "inset", "orientation"]);
|
|
5469
5469
|
const Component = component;
|
|
5470
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
5470
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$m.divider, isVertical && styles$m.modifiers.vertical, formatBreakpointMods(inset, styles$m), formatBreakpointMods(orientation, styles$m), className) }, (component !== 'hr' && { role: 'separator' }), props)));
|
|
5471
5471
|
};
|
|
5472
5472
|
Divider.displayName = 'Divider';
|
|
5473
5473
|
|
|
@@ -5494,8 +5494,8 @@ const CaretDownIcon = createIcon(CaretDownIconConfig);
|
|
|
5494
5494
|
|
|
5495
5495
|
const buttonVariantStyles = {
|
|
5496
5496
|
default: '',
|
|
5497
|
-
primary: styles$
|
|
5498
|
-
secondary: styles$
|
|
5497
|
+
primary: styles$n.modifiers.primary,
|
|
5498
|
+
secondary: styles$n.modifiers.secondary
|
|
5499
5499
|
};
|
|
5500
5500
|
class Toggle extends React.Component {
|
|
5501
5501
|
constructor() {
|
|
@@ -5561,7 +5561,7 @@ class Toggle extends React.Component {
|
|
|
5561
5561
|
isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
|
|
5562
5562
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5563
5563
|
id, type } = _a, props = __rest(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
|
|
5564
|
-
return (React.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css$
|
|
5564
|
+
return (React.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css$1(isSplitButton ? styles$n.dropdownToggleButton : toggleClass || styles$n.dropdownToggle, isActive && styles$n.modifiers.active, isPlain && styles$n.modifiers.plain, isText && styles$n.modifiers.text, isPrimary && styles$n.modifiers.primary, toggleVariant && buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle === null || onToggle === void 0 ? void 0 : onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
|
|
5565
5565
|
}
|
|
5566
5566
|
}
|
|
5567
5567
|
Toggle.displayName = 'Toggle';
|
|
@@ -5590,12 +5590,12 @@ const DropdownToggle = (_a) => {
|
|
|
5590
5590
|
props = __rest(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isText", "isPrimary", "toggleVariant", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
|
|
5591
5591
|
const ouiaProps = useOUIAProps(DropdownToggle.displayName, ouiaId, ouiaSafe);
|
|
5592
5592
|
const toggle = (React.createElement(DropdownContext.Consumer, null, ({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (React.createElement(Toggle, Object.assign({}, props, { id: id, className: className, isOpen: isOpen, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isDisabled: isDisabled, isPlain: isPlain, isText: isText, isPrimary: isPrimary, toggleVariant: toggleVariant, onToggle: onToggle, "aria-haspopup": ariaHasPopup }, ouiaProps, (splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })),
|
|
5593
|
-
icon && React.createElement("span", { className: css$
|
|
5594
|
-
children && React.createElement("span", { className: ToggleIndicator && css$
|
|
5595
|
-
ToggleIndicator && (React.createElement("span", { className: css$
|
|
5593
|
+
icon && React.createElement("span", { className: css$1(toggleIconClass) }, icon),
|
|
5594
|
+
children && React.createElement("span", { className: ToggleIndicator && css$1(toggleTextClass) }, children),
|
|
5595
|
+
ToggleIndicator && (React.createElement("span", { className: css$1(!splitButtonItems && toggleIndicatorClass) },
|
|
5596
5596
|
React.createElement(ToggleIndicator, null)))))));
|
|
5597
5597
|
if (splitButtonItems) {
|
|
5598
|
-
return (React.createElement("div", { className: css$
|
|
5598
|
+
return (React.createElement("div", { className: css$1(styles$n.dropdownToggle, styles$n.modifiers.splitButton, splitButtonVariant === 'action' && styles$n.modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && styles$n.modifiers.primary, toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles$n.modifiers.secondary, isDisabled && styles$n.modifiers.disabled) },
|
|
5599
5599
|
splitButtonItems,
|
|
5600
5600
|
toggle));
|
|
5601
5601
|
}
|
|
@@ -5780,7 +5780,7 @@ class TextInputBase extends React.Component {
|
|
|
5780
5780
|
if (customIconDimensions) {
|
|
5781
5781
|
customIconStyle.backgroundSize = customIconDimensions;
|
|
5782
5782
|
}
|
|
5783
|
-
return (React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css$
|
|
5783
|
+
return (React.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning, ((iconVariant && iconVariant !== 'search') || customIconUrl) && formStyles$1.modifiers.icon, iconVariant && formStyles$1.modifiers[iconVariant], className), onChange: this.handleChange, type: type, value: this.sanitizeInputValue(value), "aria-invalid": props['aria-invalid'] ? props['aria-invalid'] : validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled, readOnly: !!readOnlyVariant || isReadOnly || readOnly, ref: innerRef || this.inputRef }, ((customIconUrl || customIconDimensions) && { style: customIconStyle }), getOUIAProps(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
5784
5784
|
}
|
|
5785
5785
|
}
|
|
5786
5786
|
TextInputBase.displayName = 'TextInputBase';
|
|
@@ -5800,7 +5800,7 @@ TextInputBase.defaultProps = {
|
|
|
5800
5800
|
const TextInput = React.forwardRef((props, ref) => (React.createElement(TextInputBase, Object.assign({}, props, { innerRef: ref }))));
|
|
5801
5801
|
TextInput.displayName = 'TextInput';
|
|
5802
5802
|
|
|
5803
|
-
var styles$
|
|
5803
|
+
var styles$l = {
|
|
5804
5804
|
"check": "pf-c-check",
|
|
5805
5805
|
"checkLabel": "pf-c-check__label",
|
|
5806
5806
|
"chipGroup": "pf-c-chip-group",
|
|
@@ -5871,7 +5871,7 @@ const TimesCircleIconConfig = {
|
|
|
5871
5871
|
|
|
5872
5872
|
const TimesCircleIcon = createIcon(TimesCircleIconConfig);
|
|
5873
5873
|
|
|
5874
|
-
var
|
|
5874
|
+
var formStyles = {
|
|
5875
5875
|
"form": "pf-c-form",
|
|
5876
5876
|
"formActions": "pf-c-form__actions",
|
|
5877
5877
|
"formFieldGroup": "pf-c-form__field-group",
|
|
@@ -6044,16 +6044,16 @@ class SelectOption extends React.Component {
|
|
|
6044
6044
|
console.error('Please provide an id to use the favorites feature.');
|
|
6045
6045
|
}
|
|
6046
6046
|
const generatedId = id || getUniqueId('select-option');
|
|
6047
|
-
const favoriteButton = (onFavorite) => (React.createElement("button", { className: css$
|
|
6047
|
+
const favoriteButton = (onFavorite) => (React.createElement("button", { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.action, styles$l.modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
|
|
6048
6048
|
onFavorite(generatedId.replace('favorite-', ''), isFavorite);
|
|
6049
6049
|
}, onKeyDown: event => {
|
|
6050
6050
|
this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', ''), isFavorite));
|
|
6051
6051
|
}, ref: this.favoriteRef },
|
|
6052
|
-
React.createElement("span", { className: css$
|
|
6052
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemActionIcon) },
|
|
6053
6053
|
React.createElement(StarIcon, null))));
|
|
6054
|
-
const itemDisplay = itemCount ? (React.createElement("span", { className: css$
|
|
6055
|
-
React.createElement("span", { className: css$
|
|
6056
|
-
React.createElement("span", { className: css$
|
|
6054
|
+
const itemDisplay = itemCount ? (React.createElement("span", { className: css$1(styles$l.selectMenuItemRow) },
|
|
6055
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemText) }, children || (value && value.toString && value.toString())),
|
|
6056
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemCount) }, itemCount))) : (children || value.toString());
|
|
6057
6057
|
const onViewMoreClick = (event) => {
|
|
6058
6058
|
// Set the index for the next item to focus after view more clicked, then call view more callback
|
|
6059
6059
|
setViewMoreNextIndex();
|
|
@@ -6061,26 +6061,26 @@ class SelectOption extends React.Component {
|
|
|
6061
6061
|
};
|
|
6062
6062
|
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite, shouldResetOnSelect) => {
|
|
6063
6063
|
if (variant !== SelectVariant.checkbox && isLoading && isGrouped) {
|
|
6064
|
-
return (React.createElement("div", { role: "presentation", className: css$
|
|
6064
|
+
return (React.createElement("div", { role: "presentation", className: css$1(styles$l.selectListItem, isLoading && styles$l.modifiers.loading, className) }, children));
|
|
6065
6065
|
}
|
|
6066
6066
|
else if (variant !== SelectVariant.checkbox && isLoad && isGrouped) {
|
|
6067
6067
|
return (React.createElement("div", null,
|
|
6068
|
-
React.createElement("button", Object.assign({}, props, { role: "presentation", className: css$
|
|
6068
|
+
React.createElement("button", Object.assign({}, props, { role: "presentation", className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, className), onClick: (event) => {
|
|
6069
6069
|
onViewMoreClick(event);
|
|
6070
6070
|
event.stopPropagation();
|
|
6071
6071
|
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
6072
6072
|
}
|
|
6073
6073
|
else if (variant !== SelectVariant.checkbox) {
|
|
6074
|
-
return (React.createElement("li", { id: generatedId, role: "presentation", className: css$
|
|
6074
|
+
return (React.createElement("li", { id: generatedId, role: "presentation", className: css$1(isLoading && styles$l.selectListItem, !isLoading && styles$l.selectMenuWrapper, isFavorite && styles$l.modifiers.favorite, isFocused && styles$l.modifiers.focus, isLoading && styles$l.modifiers.loading), ref: this.liRef },
|
|
6075
6075
|
isLoading && children,
|
|
6076
|
-
isLoad && !isGrouped && (React.createElement("button", Object.assign({}, props, { className: css$
|
|
6076
|
+
isLoad && !isGrouped && (React.createElement("button", Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, className), onClick: (event) => {
|
|
6077
6077
|
onViewMoreClick(event);
|
|
6078
6078
|
event.stopPropagation();
|
|
6079
6079
|
}, ref: this.ref, onKeyDown: (event) => {
|
|
6080
6080
|
this.onKeyDown(event, 0);
|
|
6081
6081
|
}, type: "button" }), itemDisplay)),
|
|
6082
6082
|
!isLoading && !isLoad && (React.createElement(React.Fragment, null,
|
|
6083
|
-
React.createElement(Component, Object.assign({}, props, { className: css$
|
|
6083
|
+
React.createElement(Component, Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, isLoad && styles$l.modifiers.load, isSelected && styles$l.modifiers.selected, isDisabled && styles$l.modifiers.disabled, description && styles$l.modifiers.description, isFavorite !== null && styles$l.modifiers.link, className), onClick: (event) => {
|
|
6084
6084
|
if (!isDisabled) {
|
|
6085
6085
|
onClick(event);
|
|
6086
6086
|
onSelect(event, value, isPlaceholder);
|
|
@@ -6090,19 +6090,19 @@ class SelectOption extends React.Component {
|
|
|
6090
6090
|
this.onKeyDown(event, 0);
|
|
6091
6091
|
}, type: "button" }),
|
|
6092
6092
|
description && (React.createElement(React.Fragment, null,
|
|
6093
|
-
React.createElement("span", { className: css$
|
|
6093
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemMain) },
|
|
6094
6094
|
itemDisplay,
|
|
6095
|
-
isSelected && (React.createElement("span", { className: css$
|
|
6095
|
+
isSelected && (React.createElement("span", { className: css$1(styles$l.selectMenuItemIcon) },
|
|
6096
6096
|
React.createElement(CheckIcon, { "aria-hidden": true })))),
|
|
6097
|
-
React.createElement("span", { className: css$
|
|
6097
|
+
React.createElement("span", { className: css$1(styles$l.selectMenuItemDescription) }, description))),
|
|
6098
6098
|
!description && (React.createElement(React.Fragment, null,
|
|
6099
6099
|
itemDisplay,
|
|
6100
|
-
isSelected && (React.createElement("span", { className: css$
|
|
6100
|
+
isSelected && (React.createElement("span", { className: css$1(styles$l.selectMenuItemIcon) },
|
|
6101
6101
|
React.createElement(CheckIcon, { "aria-hidden": true })))))),
|
|
6102
6102
|
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
6103
6103
|
}
|
|
6104
6104
|
else if (variant === SelectVariant.checkbox && isLoad) {
|
|
6105
|
-
return (React.createElement("button", { className: css$
|
|
6105
|
+
return (React.createElement("button", { className: css$1(styles$l.selectMenuItem, styles$l.modifiers.load, isFocused && styles$l.modifiers.focus, className), onKeyDown: (event) => {
|
|
6106
6106
|
this.onKeyDown(event, 0, undefined, true);
|
|
6107
6107
|
}, onClick: (event) => {
|
|
6108
6108
|
onViewMoreClick(event);
|
|
@@ -6110,24 +6110,24 @@ class SelectOption extends React.Component {
|
|
|
6110
6110
|
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
6111
6111
|
}
|
|
6112
6112
|
else if (variant === SelectVariant.checkbox && isLoading) {
|
|
6113
|
-
return (React.createElement("div", { className: css$
|
|
6113
|
+
return (React.createElement("div", { className: css$1(styles$l.selectListItem, isLoading && styles$l.modifiers.loading, className) }, children));
|
|
6114
6114
|
}
|
|
6115
6115
|
else if (variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
6116
|
-
return (React.createElement("label", Object.assign({}, props, { className: css$
|
|
6116
|
+
return (React.createElement("label", Object.assign({}, props, { className: css$1(styles$k.check, styles$l.selectMenuItem, isDisabled && styles$l.modifiers.disabled, description && styles$l.modifiers.description, className), onKeyDown: (event) => {
|
|
6117
6117
|
this.onKeyDown(event, 0, undefined, true);
|
|
6118
6118
|
} }),
|
|
6119
|
-
React.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css$
|
|
6119
|
+
React.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css$1(styles$k.checkInput), type: "checkbox", onChange: event => {
|
|
6120
6120
|
if (!isDisabled) {
|
|
6121
6121
|
onClick(event);
|
|
6122
6122
|
onSelect(event, value);
|
|
6123
6123
|
}
|
|
6124
6124
|
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
6125
|
-
React.createElement("span", { className: css$
|
|
6126
|
-
description && React.createElement("div", { className: css$
|
|
6125
|
+
React.createElement("span", { className: css$1(styles$k.checkLabel, isDisabled && styles$l.modifiers.disabled) }, itemDisplay),
|
|
6126
|
+
description && React.createElement("div", { className: css$1(styles$k.checkDescription) }, description)));
|
|
6127
6127
|
}
|
|
6128
6128
|
else if (variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
6129
6129
|
return (React.createElement("div", null,
|
|
6130
|
-
React.createElement(Component, Object.assign({}, props, { className: css$
|
|
6130
|
+
React.createElement(Component, Object.assign({}, props, { className: css$1(styles$l.selectMenuItem, isSelected && styles$l.modifiers.selected, isDisabled && styles$l.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
6131
6131
|
this.onKeyDown(event, 0, undefined, true);
|
|
6132
6132
|
}, type: "button" }), itemDisplay)));
|
|
6133
6133
|
}
|
|
@@ -6159,8 +6159,8 @@ SelectOption.defaultProps = {
|
|
|
6159
6159
|
|
|
6160
6160
|
const SelectGroup = (_a) => {
|
|
6161
6161
|
var { children = [], className = '', label = '', titleId = '' } = _a, props = __rest(_a, ["children", "className", "label", "titleId"]);
|
|
6162
|
-
return (React.createElement(SelectConsumer, null, ({ variant }) => (React.createElement("div", Object.assign({}, props, { className: css$
|
|
6163
|
-
React.createElement("div", { className: css$
|
|
6162
|
+
return (React.createElement(SelectConsumer, null, ({ variant }) => (React.createElement("div", Object.assign({}, props, { className: css$1(styles$l.selectMenuGroup, className) }),
|
|
6163
|
+
React.createElement("div", { className: css$1(styles$l.selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
|
|
6164
6164
|
variant === SelectVariant.checkbox ? children : React.createElement("ul", { role: "listbox" }, children)))));
|
|
6165
6165
|
};
|
|
6166
6166
|
SelectGroup.displayName = 'SelectGroup';
|
|
@@ -6242,7 +6242,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6242
6242
|
}
|
|
6243
6243
|
return React.cloneElement(group, {
|
|
6244
6244
|
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
6245
|
-
children: group.props.children ? (React.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css$
|
|
6245
|
+
children: group.props.children ? (React.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: css$1(styles$l.selectMenuFieldset) }, React.Children.map(group.props.children, (option) => option.type === Divider
|
|
6246
6246
|
? option
|
|
6247
6247
|
: React.cloneElement(option, {
|
|
6248
6248
|
isChecked: this.checkForValue(option.props.value, checked),
|
|
@@ -6269,7 +6269,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6269
6269
|
const _a = this.props, { children, isCustomContent, className, isExpanded, openedOnEnter, selected, checked, isGrouped, position, sendRef, keyHandler, maxHeight, noResultsFoundText, createText, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, hasInlineFilter, innerRef, footer, footerRef, isLastOptionBeforeFooter } = _a, props = __rest(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
|
|
6270
6270
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
6271
6271
|
let Component = 'div';
|
|
6272
|
-
const variantProps = Object.assign({ ref: innerRef, className: css$
|
|
6272
|
+
const variantProps = Object.assign({ ref: innerRef, className: css$1(!footer ? styles$l.selectMenu : 'pf-c-select__menu-list', position === SelectPosition.right && styles$l.modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
|
|
6273
6273
|
const extendedChildren = () => variant === SelectVariant.checkbox
|
|
6274
6274
|
? this.extendCheckboxChildren(children)
|
|
6275
6275
|
: this.extendChildren(inputIdPrefix);
|
|
@@ -6278,10 +6278,10 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6278
6278
|
}
|
|
6279
6279
|
else if (hasInlineFilter) {
|
|
6280
6280
|
if (React.Children.count(children) === 0) {
|
|
6281
|
-
variantProps.children = React.createElement("fieldset", { className: css$
|
|
6281
|
+
variantProps.children = React.createElement("fieldset", { className: css$1(styles$l.selectMenuFieldset) });
|
|
6282
6282
|
}
|
|
6283
6283
|
else {
|
|
6284
|
-
variantProps.children = (React.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css$
|
|
6284
|
+
variantProps.children = (React.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: css$1(formStyles.formFieldset) },
|
|
6285
6285
|
children.shift(),
|
|
6286
6286
|
extendedChildren()));
|
|
6287
6287
|
}
|
|
@@ -6297,7 +6297,7 @@ class SelectMenuWithRef extends React.Component {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
return (React.createElement(React.Fragment, null,
|
|
6299
6299
|
React.createElement(Component, Object.assign({}, variantProps, props)),
|
|
6300
|
-
footer && (React.createElement("div", { className: css$
|
|
6300
|
+
footer && (React.createElement("div", { className: css$1(styles$l.selectMenuFooter), ref: footerRef }, footer))));
|
|
6301
6301
|
}
|
|
6302
6302
|
render() {
|
|
6303
6303
|
return React.createElement(SelectConsumer, null, context => this.renderSelectMenu(context));
|
|
@@ -6461,7 +6461,7 @@ class SelectToggle extends React.Component {
|
|
|
6461
6461
|
'aria-haspopup': (variant !== SelectVariant.checkbox && 'listbox') || null
|
|
6462
6462
|
};
|
|
6463
6463
|
return (React.createElement(React.Fragment, null,
|
|
6464
|
-
!isTypeahead && (React.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css$
|
|
6464
|
+
!isTypeahead && (React.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: css$1(styles$l.selectToggle, hasPlaceholderStyle && styles$l.modifiers.placeholder, isDisabled && styles$l.modifiers.disabled, isPlain && styles$l.modifiers.plain, isActive && styles$l.modifiers.active, className), "aria-label": ariaLabel, onBlur: onBlur,
|
|
6465
6465
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6466
6466
|
onClick: event => {
|
|
6467
6467
|
onToggle(!isOpen, event);
|
|
@@ -6470,8 +6470,8 @@ class SelectToggle extends React.Component {
|
|
|
6470
6470
|
}
|
|
6471
6471
|
}, onKeyDown: this.onKeyDown, disabled: isDisabled }),
|
|
6472
6472
|
children,
|
|
6473
|
-
React.createElement("span", { className: css$
|
|
6474
|
-
isTypeahead && (React.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css$
|
|
6473
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleArrow) }, toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, null)))),
|
|
6474
|
+
isTypeahead && (React.createElement("div", Object.assign({}, props, { ref: this.toggle, className: css$1(styles$l.selectToggle, hasPlaceholderStyle && styles$l.modifiers.placeholder, isDisabled && styles$l.modifiers.disabled, isPlain && styles$l.modifiers.plain, isTypeahead && styles$l.modifiers.typeahead, className), onBlur: onBlur,
|
|
6475
6475
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6476
6476
|
onClick: event => {
|
|
6477
6477
|
if (!isDisabled) {
|
|
@@ -6482,7 +6482,7 @@ class SelectToggle extends React.Component {
|
|
|
6482
6482
|
}
|
|
6483
6483
|
}, onKeyDown: this.onKeyDown }),
|
|
6484
6484
|
children,
|
|
6485
|
-
React.createElement("button", Object.assign({}, toggleProps, { type: type, className: css$
|
|
6485
|
+
React.createElement("button", Object.assign({}, toggleProps, { type: type, className: css$1(buttonStyles.button, styles$l.selectToggleButton, styles$l.modifiers.plain), "aria-label": ariaLabel, onClick: event => {
|
|
6486
6486
|
onToggle(!isOpen, event);
|
|
6487
6487
|
if (isOpen) {
|
|
6488
6488
|
onClose();
|
|
@@ -6490,7 +6490,7 @@ class SelectToggle extends React.Component {
|
|
|
6490
6490
|
onClickTypeaheadToggleButton();
|
|
6491
6491
|
} }, ((variant === SelectVariant.typeahead || variant === SelectVariant.typeaheadMulti) && {
|
|
6492
6492
|
tabIndex: -1
|
|
6493
|
-
}), { disabled: isDisabled }), toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, { className: css$
|
|
6493
|
+
}), { disabled: isDisabled }), toggleIndicator !== null && toggleIndicator !== void 0 ? toggleIndicator : React.createElement(CaretDownIcon, { className: css$1(styles$l.selectToggleArrow) }))))));
|
|
6494
6494
|
}
|
|
6495
6495
|
}
|
|
6496
6496
|
SelectToggle.displayName = 'SelectToggle';
|
|
@@ -6548,8 +6548,8 @@ class Chip extends React.Component {
|
|
|
6548
6548
|
this.renderOverflowChip = () => {
|
|
6549
6549
|
const { children, className, onClick, ouiaId } = this.props;
|
|
6550
6550
|
const Component = this.props.component;
|
|
6551
|
-
return (React.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css$
|
|
6552
|
-
React.createElement("span", { className: css$
|
|
6551
|
+
return (React.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css$1(styles$i.chip, styles$i.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
6552
|
+
React.createElement("span", { className: css$1(styles$i.chipText) }, children)));
|
|
6553
6553
|
};
|
|
6554
6554
|
this.renderChip = (randomId) => {
|
|
6555
6555
|
const { children, tooltipPosition } = this.props;
|
|
@@ -6573,8 +6573,8 @@ class Chip extends React.Component {
|
|
|
6573
6573
|
const Component = component;
|
|
6574
6574
|
return (React.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
|
|
6575
6575
|
style: this.setChipStyle()
|
|
6576
|
-
}), { className: css$
|
|
6577
|
-
React.createElement("span", { ref: this.span, className: css$
|
|
6576
|
+
}), { className: css$1(styles$i.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
|
|
6577
|
+
React.createElement("span", { ref: this.span, className: css$1(styles$i.chipText), id: id }, children),
|
|
6578
6578
|
!isReadOnly && (React.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
6579
6579
|
React.createElement(TimesIcon, { "aria-hidden": "true" })))));
|
|
6580
6580
|
}
|
|
@@ -6619,8 +6619,8 @@ class ChipGroup extends React.Component {
|
|
|
6619
6619
|
const { categoryName, tooltipPosition } = this.props;
|
|
6620
6620
|
const { isTooltipVisible } = this.state;
|
|
6621
6621
|
return isTooltipVisible ? (React.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
6622
|
-
React.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css$
|
|
6623
|
-
React.createElement("span", { id: id }, categoryName)))) : (React.createElement("span", { ref: this.headingRef, className: css$
|
|
6622
|
+
React.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css$1(styles$j.chipGroupLabel) },
|
|
6623
|
+
React.createElement("span", { id: id }, categoryName)))) : (React.createElement("span", { ref: this.headingRef, className: css$1(styles$j.chipGroupLabel), id: id }, categoryName));
|
|
6624
6624
|
}
|
|
6625
6625
|
render() {
|
|
6626
6626
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -6637,17 +6637,17 @@ class ChipGroup extends React.Component {
|
|
|
6637
6637
|
const chipArray = !isOpen
|
|
6638
6638
|
? React.Children.toArray(children).slice(0, numChips)
|
|
6639
6639
|
: React.Children.toArray(children);
|
|
6640
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
6641
|
-
React.createElement("div", { className: css$
|
|
6640
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$j.chipGroup, className, categoryName && styles$j.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
6641
|
+
React.createElement("div", { className: css$1(styles$j.chipGroupMain) },
|
|
6642
6642
|
categoryName && this.renderLabel(id),
|
|
6643
|
-
React.createElement("ul", Object.assign({ className: css$
|
|
6644
|
-
chipArray.map((child, i) => (React.createElement("li", { className: css$
|
|
6645
|
-
numChildren > numChips && (React.createElement("li", { className: css$
|
|
6643
|
+
React.createElement("ul", Object.assign({ className: css$1(styles$j.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
6644
|
+
chipArray.map((child, i) => (React.createElement("li", { className: css$1(styles$j.chipGroupListItem), key: i }, child))),
|
|
6645
|
+
numChildren > numChips && (React.createElement("li", { className: css$1(styles$j.chipGroupListItem) },
|
|
6646
6646
|
React.createElement(Chip, { isOverflowChip: true, onClick: event => {
|
|
6647
6647
|
this.toggleCollapse();
|
|
6648
6648
|
onOverflowChipClick(event);
|
|
6649
6649
|
}, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
|
|
6650
|
-
isClosable && (React.createElement("div", { className: css$
|
|
6650
|
+
isClosable && (React.createElement("div", { className: css$1(styles$j.chipGroupClose) },
|
|
6651
6651
|
React.createElement(Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
|
|
6652
6652
|
React.createElement(TimesCircleIcon, { "aria-hidden": "true" }))))));
|
|
6653
6653
|
};
|
|
@@ -7349,7 +7349,7 @@ class Select extends React.Component {
|
|
|
7349
7349
|
}
|
|
7350
7350
|
}
|
|
7351
7351
|
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
7352
|
-
const clearBtn = (React.createElement("button", { className: css$
|
|
7352
|
+
const clearBtn = (React.createElement("button", { className: css$1(buttonStyles.button, buttonStyles.modifiers.plain, styles$l.selectToggleClear), onClick: e => {
|
|
7353
7353
|
this.clearSelection(e);
|
|
7354
7354
|
onClear(e);
|
|
7355
7355
|
e.stopPropagation();
|
|
@@ -7366,8 +7366,8 @@ class Select extends React.Component {
|
|
|
7366
7366
|
}
|
|
7367
7367
|
if (hasInlineFilter) {
|
|
7368
7368
|
const filterBox = (React.createElement(React.Fragment, null,
|
|
7369
|
-
React.createElement("div", { key: "inline-filter", className: css$
|
|
7370
|
-
React.createElement("input", { key: "inline-filter-input", type: "search", className: css$
|
|
7369
|
+
React.createElement("div", { key: "inline-filter", className: css$1(styles$l.selectMenuSearch) },
|
|
7370
|
+
React.createElement("input", { key: "inline-filter-input", type: "search", className: css$1(formStyles$1.formControl, formStyles$1.modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
|
|
7371
7371
|
if (event.key === KeyTypes.ArrowUp) {
|
|
7372
7372
|
this.handleMenuKeys(0, 0, 'up');
|
|
7373
7373
|
event.preventDefault();
|
|
@@ -7469,47 +7469,47 @@ class Select extends React.Component {
|
|
|
7469
7469
|
}
|
|
7470
7470
|
}
|
|
7471
7471
|
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
7472
|
-
const innerMenu = (React.createElement(SelectMenu, Object.assign({ className: css$
|
|
7473
|
-
const menuContainer = footer ? React.createElement("div", { className: css$
|
|
7472
|
+
const innerMenu = (React.createElement(SelectMenu, Object.assign({ className: css$1(isStatic && styles$l.modifiers.static) }, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
7473
|
+
const menuContainer = footer ? React.createElement("div", { className: css$1(styles$l.selectMenu) },
|
|
7474
7474
|
" ",
|
|
7475
7475
|
innerMenu,
|
|
7476
7476
|
" ") : innerMenu;
|
|
7477
|
-
const popperContainer = (React.createElement("div", Object.assign({ className: css$
|
|
7478
|
-
const mainContainer = (React.createElement("div", Object.assign({ className: css$
|
|
7477
|
+
const popperContainer = (React.createElement("div", Object.assign({ className: css$1(styles$l.select, isOpen && styles$l.modifiers.expanded, validated === ValidatedOptions.success && styles$l.modifiers.success, validated === ValidatedOptions.warning && styles$l.modifiers.warning, validated === ValidatedOptions.error && styles$l.modifiers.invalid, direction === SelectDirection.up && styles$l.modifiers.top, className) }, (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
7478
|
+
const mainContainer = (React.createElement("div", Object.assign({ className: css$1(styles$l.select, isOpen && styles$l.modifiers.expanded, validated === ValidatedOptions.success && styles$l.modifiers.success, validated === ValidatedOptions.warning && styles$l.modifiers.warning, validated === ValidatedOptions.error && styles$l.modifiers.invalid, direction === SelectDirection.up && styles$l.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
7479
7479
|
React.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, toggleIndicator: toggleIndicator, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel }, (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), { handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
7480
|
-
customContent && (React.createElement("div", { className: css$
|
|
7481
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7482
|
-
React.createElement("span", { className: css$
|
|
7480
|
+
customContent && (React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7481
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7482
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, placeholderText))),
|
|
7483
7483
|
variant === SelectVariant.single && !customContent && (React.createElement(React.Fragment, null,
|
|
7484
|
-
React.createElement("div", { className: css$
|
|
7485
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7486
|
-
React.createElement("span", { className: css$
|
|
7484
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7485
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7486
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
7487
7487
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
7488
7488
|
variant === SelectVariant.checkbox && !customContent && (React.createElement(React.Fragment, null,
|
|
7489
|
-
React.createElement("div", { className: css$
|
|
7490
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7491
|
-
React.createElement("span", { className: css$
|
|
7492
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React.createElement("div", { className: css$
|
|
7493
|
-
React.createElement("span", { className: css$
|
|
7489
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7490
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7491
|
+
React.createElement("span", { className: css$1(styles$l.selectToggleText) }, placeholderText),
|
|
7492
|
+
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React.createElement("div", { className: css$1(styles$l.selectToggleBadge) },
|
|
7493
|
+
React.createElement("span", { className: css$1(badgeStyles.badge, badgeStyles.modifiers.read) }, this.generateSelectedBadge())))),
|
|
7494
7494
|
hasOnClear && hasAnySelections && clearBtn)),
|
|
7495
7495
|
variant === SelectVariant.typeahead && !customContent && (React.createElement(React.Fragment, null,
|
|
7496
|
-
React.createElement("div", { className: css$
|
|
7497
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7498
|
-
React.createElement("input", Object.assign({ className: css$
|
|
7496
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7497
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7498
|
+
React.createElement("input", Object.assign({ className: css$1(formStyles$1.formControl, styles$l.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
7499
7499
|
? typeaheadInputValue
|
|
7500
7500
|
: this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
7501
7501
|
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
7502
7502
|
variant === SelectVariant.typeaheadMulti && !customContent && (React.createElement(React.Fragment, null,
|
|
7503
|
-
React.createElement("div", { className: css$
|
|
7504
|
-
toggleIcon && React.createElement("span", { className: css$
|
|
7503
|
+
React.createElement("div", { className: css$1(styles$l.selectToggleWrapper) },
|
|
7504
|
+
toggleIcon && React.createElement("span", { className: css$1(styles$l.selectToggleIcon) }, toggleIcon),
|
|
7505
7505
|
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
7506
|
-
React.createElement("input", Object.assign({ className: css$
|
|
7506
|
+
React.createElement("input", Object.assign({ className: css$1(formStyles$1.formControl, styles$l.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: inputAutoComplete, disabled: isDisabled, ref: this.inputRef }))),
|
|
7507
7507
|
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
7508
|
-
validated === ValidatedOptions.success && (React.createElement("span", { className: css$
|
|
7508
|
+
validated === ValidatedOptions.success && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7509
7509
|
React.createElement(CheckCircleIcon$1, { "aria-hidden": "true" }))),
|
|
7510
|
-
validated === ValidatedOptions.error && (React.createElement("span", { className: css$
|
|
7510
|
+
validated === ValidatedOptions.error && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7511
7511
|
React.createElement(ExclamationCircleIcon$1, { "aria-hidden": "true" }))),
|
|
7512
|
-
validated === ValidatedOptions.warning && (React.createElement("span", { className: css$
|
|
7512
|
+
validated === ValidatedOptions.warning && (React.createElement("span", { className: css$1(styles$l.selectToggleStatusIcon) },
|
|
7513
7513
|
React.createElement(ExclamationTriangleIcon, { "aria-hidden": "true" })))),
|
|
7514
7514
|
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
7515
7515
|
const getParentElement = () => {
|
|
@@ -7614,7 +7614,7 @@ class FormSelect extends React.Component {
|
|
|
7614
7614
|
/* find selected option and get placeholder flag */
|
|
7615
7615
|
const selectedOption = React.Children.toArray(children).find((option) => option.props.value === value);
|
|
7616
7616
|
const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
|
|
7617
|
-
return (React.createElement("select", Object.assign({}, props, { className: css$
|
|
7617
|
+
return (React.createElement("select", Object.assign({}, props, { className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, className, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning, isSelectedPlaceholder && formStyles$1.modifiers.placeholder), "aria-invalid": validated === ValidatedOptions.error }, getOUIAProps(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));
|
|
7618
7618
|
}
|
|
7619
7619
|
}
|
|
7620
7620
|
FormSelect.displayName = 'FormSelect';
|
|
@@ -7692,7 +7692,7 @@ class TextAreaBase extends React.Component {
|
|
|
7692
7692
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
7693
7693
|
props = __rest(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "readOnlyVariant", "resizeOrientation", "innerRef", "disabled", "autoResize", "onChange"]);
|
|
7694
7694
|
const orientation = `resize${capitalize(resizeOrientation)}`;
|
|
7695
|
-
return (React.createElement("textarea", Object.assign({ className: css$
|
|
7695
|
+
return (React.createElement("textarea", Object.assign({ className: css$1(formStyles$1.formControl, isIconSprite && formStyles$1.modifiers.iconSprite, readOnlyVariant === 'plain' && formStyles$1.modifiers.plain, className, resizeOrientation !== TextAreResizeOrientation.both && formStyles$1.modifiers[orientation], validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: !!readOnlyVariant || isReadOnly, ref: innerRef || this.inputRef }, props)));
|
|
7696
7696
|
}
|
|
7697
7697
|
}
|
|
7698
7698
|
TextAreaBase.displayName = 'TextArea';
|
|
@@ -7715,7 +7715,7 @@ const InputGroup = (_a) => {
|
|
|
7715
7715
|
const idItem = React.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
|
|
7716
7716
|
const ref = React.useRef(null);
|
|
7717
7717
|
const inputGroupRef = innerRef || ref;
|
|
7718
|
-
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$
|
|
7718
|
+
return (React.createElement("div", Object.assign({ ref: inputGroupRef, className: css$1(styles$h.inputGroup, className) }, props), idItem
|
|
7719
7719
|
? React.Children.map(children, (child) => !formCtrls.includes(child.type.displayName) || child.props['aria-describedby']
|
|
7720
7720
|
? child
|
|
7721
7721
|
: React.cloneElement(child, {
|
|
@@ -7778,13 +7778,13 @@ const Card = (_a) => {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
const getSelectableModifiers = () => {
|
|
7780
7780
|
if (isDisabledRaised) {
|
|
7781
|
-
return css$
|
|
7781
|
+
return css$1(styles$g.modifiers.nonSelectableRaised);
|
|
7782
7782
|
}
|
|
7783
7783
|
if (isSelectableRaised) {
|
|
7784
|
-
return css$
|
|
7784
|
+
return css$1(styles$g.modifiers.selectableRaised, isSelected && styles$g.modifiers.selectedRaised);
|
|
7785
7785
|
}
|
|
7786
7786
|
if (isSelectable || isHoverable) {
|
|
7787
|
-
return css$
|
|
7787
|
+
return css$1(styles$g.modifiers.selectable, isSelected && styles$g.modifiers.selected);
|
|
7788
7788
|
}
|
|
7789
7789
|
return '';
|
|
7790
7790
|
};
|
|
@@ -7812,27 +7812,27 @@ const Card = (_a) => {
|
|
|
7812
7812
|
isExpanded
|
|
7813
7813
|
} },
|
|
7814
7814
|
hasSelectableInput && (React.createElement("input", Object.assign({ className: "pf-screen-reader", id: `${id}-input` }, ariaProps, { type: "checkbox", checked: isSelected, onChange: event => onSelectableInputChange(id, event), disabled: isDisabledRaised, tabIndex: -1 }))),
|
|
7815
|
-
React.createElement(Component, Object.assign({ id: id, className: css$
|
|
7815
|
+
React.createElement(Component, Object.assign({ id: id, className: css$1(styles$g.card, isCompact && styles$g.modifiers.compact, isExpanded && styles$g.modifiers.expanded, isFlat && styles$g.modifiers.flat, isRounded && styles$g.modifiers.rounded, isLarge && styles$g.modifiers.displayLg, isFullHeight && styles$g.modifiers.fullHeight, isPlain && styles$g.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
|
|
7816
7816
|
};
|
|
7817
7817
|
Card.displayName = 'Card';
|
|
7818
7818
|
|
|
7819
7819
|
const CardActions = (_a) => {
|
|
7820
7820
|
var { children = null, className = '', hasNoOffset = false } = _a, props = __rest(_a, ["children", "className", "hasNoOffset"]);
|
|
7821
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7821
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$g.cardActions, hasNoOffset && styles$g.modifiers.noOffset, className) }, props), children));
|
|
7822
7822
|
};
|
|
7823
7823
|
CardActions.displayName = 'CardActions';
|
|
7824
7824
|
|
|
7825
7825
|
const CardBody = (_a) => {
|
|
7826
7826
|
var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest(_a, ["children", "className", "component", "isFilled"]);
|
|
7827
7827
|
const Component = component;
|
|
7828
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7828
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardBody, !isFilled && styles$g.modifiers.noFill, className) }, props), children));
|
|
7829
7829
|
};
|
|
7830
7830
|
CardBody.displayName = 'CardBody';
|
|
7831
7831
|
|
|
7832
7832
|
const CardFooter = (_a) => {
|
|
7833
7833
|
var { children = null, className = '', component = 'div' } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
7834
7834
|
const Component = component;
|
|
7835
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7835
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardFooter, className) }, props), children));
|
|
7836
7836
|
};
|
|
7837
7837
|
CardFooter.displayName = 'CardFooter';
|
|
7838
7838
|
|
|
@@ -7845,20 +7845,20 @@ const CardTitle = (_a) => {
|
|
|
7845
7845
|
registerTitleId(titleId);
|
|
7846
7846
|
return () => registerTitleId('');
|
|
7847
7847
|
}, [registerTitleId, titleId]);
|
|
7848
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
7848
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$g.cardTitle, className), id: titleId || undefined }, props), children));
|
|
7849
7849
|
};
|
|
7850
7850
|
CardTitle.displayName = 'CardTitle';
|
|
7851
7851
|
|
|
7852
7852
|
const CardHeader = (_a) => {
|
|
7853
7853
|
var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
|
|
7854
7854
|
return (React.createElement(CardContext.Consumer, null, ({ cardId }) => {
|
|
7855
|
-
const cardHeaderToggle = (React.createElement("div", { className: css$
|
|
7855
|
+
const cardHeaderToggle = (React.createElement("div", { className: css$1(styles$g.cardHeaderToggle) },
|
|
7856
7856
|
React.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
|
|
7857
7857
|
onExpand(evt, cardId);
|
|
7858
7858
|
} }, toggleButtonProps),
|
|
7859
|
-
React.createElement("span", { className: css$
|
|
7859
|
+
React.createElement("span", { className: css$1(styles$g.cardHeaderToggleIcon) },
|
|
7860
7860
|
React.createElement(AngleRightIcon, { "aria-hidden": "true" })))));
|
|
7861
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7861
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$g.cardHeader, isToggleRightAligned && styles$g.modifiers.toggleRight, className), id: id }, props),
|
|
7862
7862
|
onExpand && !isToggleRightAligned && cardHeaderToggle,
|
|
7863
7863
|
children,
|
|
7864
7864
|
onExpand && isToggleRightAligned && cardHeaderToggle));
|
|
@@ -7906,33 +7906,33 @@ const PopoverContext = React.createContext({});
|
|
|
7906
7906
|
|
|
7907
7907
|
const PopoverContent = (_a) => {
|
|
7908
7908
|
var { className = null, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
7909
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7909
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.popoverContent, className) }, props), children));
|
|
7910
7910
|
};
|
|
7911
7911
|
PopoverContent.displayName = 'PopoverContent';
|
|
7912
7912
|
|
|
7913
7913
|
const PopoverBody = (_a) => {
|
|
7914
7914
|
var { children, id, className } = _a, props = __rest(_a, ["children", "id", "className"]);
|
|
7915
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
7915
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$f.popoverBody, className), id: id }, props), children));
|
|
7916
7916
|
};
|
|
7917
7917
|
PopoverBody.displayName = 'PopoverBody';
|
|
7918
7918
|
|
|
7919
7919
|
const PopoverHeaderIcon = (_a) => {
|
|
7920
7920
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7921
|
-
return (React.createElement("span", Object.assign({ className: css$
|
|
7921
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$f.popoverTitleIcon, className) }, props), children));
|
|
7922
7922
|
};
|
|
7923
7923
|
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
|
|
7924
7924
|
|
|
7925
7925
|
const PopoverHeaderText = (_a) => {
|
|
7926
7926
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
7927
|
-
return (React.createElement("span", Object.assign({ className: css$
|
|
7927
|
+
return (React.createElement("span", Object.assign({ className: css$1(styles$f.popoverTitleText, className) }, props), children));
|
|
7928
7928
|
};
|
|
7929
7929
|
PopoverHeaderText.displayName = 'PopoverHeaderText';
|
|
7930
7930
|
|
|
7931
7931
|
const PopoverHeader = (_a) => {
|
|
7932
7932
|
var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
|
|
7933
7933
|
const HeadingLevel = titleHeadingLevel;
|
|
7934
|
-
return icon || alertSeverityVariant ? (React.createElement("header", Object.assign({ className: css$
|
|
7935
|
-
React.createElement(HeadingLevel, { className: css$
|
|
7934
|
+
return icon || alertSeverityVariant ? (React.createElement("header", Object.assign({ className: css$1('pf-c-popover__header', className), id: id }, props),
|
|
7935
|
+
React.createElement(HeadingLevel, { className: css$1(styles$f.popoverTitle, icon && styles$f.modifiers.icon) },
|
|
7936
7936
|
icon && React.createElement(PopoverHeaderIcon, null, icon),
|
|
7937
7937
|
alertSeverityVariant && alertSeverityScreenReaderText && (React.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
|
|
7938
7938
|
React.createElement(PopoverHeaderText, null, children)))) : (React.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: TitleSizes.md, id: id, className: className }, props), children));
|
|
@@ -7941,7 +7941,7 @@ PopoverHeader.displayName = 'PopoverHeader';
|
|
|
7941
7941
|
|
|
7942
7942
|
const PopoverFooter = (_a) => {
|
|
7943
7943
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
7944
|
-
return (React.createElement("footer", Object.assign({ className: css$
|
|
7944
|
+
return (React.createElement("footer", Object.assign({ className: css$1(styles$f.popoverFooter, className) }, props), children));
|
|
7945
7945
|
};
|
|
7946
7946
|
PopoverFooter.displayName = 'PopoverFooter';
|
|
7947
7947
|
|
|
@@ -7954,7 +7954,7 @@ PopoverCloseButton.displayName = 'PopoverCloseButton';
|
|
|
7954
7954
|
|
|
7955
7955
|
const PopoverArrow = (_a) => {
|
|
7956
7956
|
var { className = '' } = _a, props = __rest(_a, ["className"]);
|
|
7957
|
-
return React.createElement("div", Object.assign({ className: css$
|
|
7957
|
+
return React.createElement("div", Object.assign({ className: css$1(styles$f.popoverArrow, className) }, props));
|
|
7958
7958
|
};
|
|
7959
7959
|
PopoverArrow.displayName = 'PopoverArrow';
|
|
7960
7960
|
|
|
@@ -8154,7 +8154,7 @@ const Popover = (_a) => {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
return node;
|
|
8156
8156
|
}
|
|
8157
|
-
}, preventScrollOnDeactivate: true, className: css$
|
|
8157
|
+
}, preventScrollOnDeactivate: true, className: css$1(styles$f.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$f.modifiers.noPadding, hasAutoWidth && styles$f.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
|
|
8158
8158
|
minWidth: hasCustomMinWidth ? minWidth : null,
|
|
8159
8159
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
8160
8160
|
opacity,
|
|
@@ -8193,10 +8193,10 @@ var styles$e = {
|
|
|
8193
8193
|
|
|
8194
8194
|
const CodeBlock = (_a) => {
|
|
8195
8195
|
var { children = null, className, actions = null } = _a, props = __rest(_a, ["children", "className", "actions"]);
|
|
8196
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8197
|
-
React.createElement("div", { className: css$
|
|
8198
|
-
React.createElement("div", { className: css$
|
|
8199
|
-
React.createElement("div", { className: css$
|
|
8196
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$e.codeBlock, className) }, props),
|
|
8197
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockHeader) },
|
|
8198
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockActions) }, actions && actions)),
|
|
8199
|
+
React.createElement("div", { className: css$1(styles$e.codeBlockContent) }, children)));
|
|
8200
8200
|
};
|
|
8201
8201
|
CodeBlock.displayName = 'CodeBlock';
|
|
8202
8202
|
|
|
@@ -8292,7 +8292,7 @@ const Drawer = (_a) => {
|
|
|
8292
8292
|
const drawerRef = React.useRef();
|
|
8293
8293
|
const drawerContentRef = React.useRef();
|
|
8294
8294
|
return (React.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef, drawerContentRef, isInline } },
|
|
8295
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8295
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawer, isExpanded && styles$d.modifiers.expanded, isInline && styles$d.modifiers.inline, isStatic && styles$d.modifiers.static, position === 'left' && styles$d.modifiers.panelLeft, position === 'bottom' && styles$d.modifiers.panelBottom, className), ref: drawerRef }, props), children)));
|
|
8296
8296
|
};
|
|
8297
8297
|
Drawer.displayName = 'Drawer';
|
|
8298
8298
|
|
|
@@ -8300,7 +8300,7 @@ const DrawerActions = (_a) => {
|
|
|
8300
8300
|
var {
|
|
8301
8301
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8302
8302
|
className = '', children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8303
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8303
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerActions, className) }, props), children));
|
|
8304
8304
|
};
|
|
8305
8305
|
DrawerActions.displayName = 'DrawerActions';
|
|
8306
8306
|
|
|
@@ -8308,7 +8308,7 @@ const DrawerCloseButton = (_a) => {
|
|
|
8308
8308
|
var {
|
|
8309
8309
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8310
8310
|
className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest(_a, ["className", "onClose", 'aria-label']);
|
|
8311
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8311
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerClose, className) }, props),
|
|
8312
8312
|
React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
|
8313
8313
|
React.createElement(TimesIcon, null))));
|
|
8314
8314
|
};
|
|
@@ -8318,7 +8318,7 @@ const DrawerMain = (_a) => {
|
|
|
8318
8318
|
var {
|
|
8319
8319
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8320
8320
|
className = '', children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8321
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8321
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerMain, className) }, props), children));
|
|
8322
8322
|
};
|
|
8323
8323
|
DrawerMain.displayName = 'DrawerMain';
|
|
8324
8324
|
|
|
@@ -8328,7 +8328,7 @@ const DrawerContent = (_a) => {
|
|
|
8328
8328
|
className = '', children, panelContent, colorVariant = DrawerColorVariant.default } = _a, props = __rest(_a, ["className", "children", "panelContent", "colorVariant"]);
|
|
8329
8329
|
const { drawerContentRef } = React.useContext(DrawerContext);
|
|
8330
8330
|
return (React.createElement(DrawerMain, null,
|
|
8331
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8331
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawerContent, colorVariant === DrawerColorVariant.light200 && styles$d.modifiers.light_200, className), ref: drawerContentRef }, props), children),
|
|
8332
8332
|
panelContent));
|
|
8333
8333
|
};
|
|
8334
8334
|
DrawerContent.displayName = 'DrawerContent';
|
|
@@ -8337,7 +8337,7 @@ const DrawerContentBody = (_a) => {
|
|
|
8337
8337
|
var {
|
|
8338
8338
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8339
8339
|
className = '', children, hasPadding = false } = _a, props = __rest(_a, ["className", "children", "hasPadding"]);
|
|
8340
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8340
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasPadding && styles$d.modifiers.padding, className) }, props), children));
|
|
8341
8341
|
};
|
|
8342
8342
|
DrawerContentBody.displayName = 'DrawerContentBody';
|
|
8343
8343
|
|
|
@@ -8345,7 +8345,7 @@ const DrawerPanelBody = (_a) => {
|
|
|
8345
8345
|
var {
|
|
8346
8346
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8347
8347
|
className = '', children, hasNoPadding = false } = _a, props = __rest(_a, ["className", "children", "hasNoPadding"]);
|
|
8348
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8348
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$d.drawerBody, hasNoPadding && styles$d.modifiers.noPadding, className) }, props), children));
|
|
8349
8349
|
};
|
|
8350
8350
|
DrawerPanelBody.displayName = 'DrawerPanelBody';
|
|
8351
8351
|
|
|
@@ -8354,7 +8354,7 @@ const DrawerHead = (_a) => {
|
|
|
8354
8354
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8355
8355
|
className = '', children, hasNoPadding = false } = _a, props = __rest(_a, ["className", "children", "hasNoPadding"]);
|
|
8356
8356
|
return (React.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },
|
|
8357
|
-
React.createElement("div", Object.assign({ className: css$
|
|
8357
|
+
React.createElement("div", Object.assign({ className: css$1(styles$d.drawerHead, className) }, props), children)));
|
|
8358
8358
|
};
|
|
8359
8359
|
DrawerHead.displayName = 'DrawerHead';
|
|
8360
8360
|
|
|
@@ -8422,7 +8422,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8422
8422
|
e.preventDefault();
|
|
8423
8423
|
document.addEventListener('mousemove', callbackMouseMove);
|
|
8424
8424
|
document.addEventListener('mouseup', callbackMouseUp);
|
|
8425
|
-
drawerRef.current.classList.add(css$
|
|
8425
|
+
drawerRef.current.classList.add(css$1(styles$d.modifiers.resizing));
|
|
8426
8426
|
isResizing = true;
|
|
8427
8427
|
setInitialVals = true;
|
|
8428
8428
|
};
|
|
@@ -8470,7 +8470,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8470
8470
|
if (!isResizing) {
|
|
8471
8471
|
return;
|
|
8472
8472
|
}
|
|
8473
|
-
drawerRef.current.classList.remove(css$
|
|
8473
|
+
drawerRef.current.classList.remove(css$1(styles$d.modifiers.resizing));
|
|
8474
8474
|
isResizing = false;
|
|
8475
8475
|
onResize && onResize(currWidth, id);
|
|
8476
8476
|
setInitialVals = true;
|
|
@@ -8541,7 +8541,7 @@ const DrawerPanelContent = (_a) => {
|
|
|
8541
8541
|
if (maxSize) {
|
|
8542
8542
|
boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
|
|
8543
8543
|
}
|
|
8544
|
-
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React.createElement("div", Object.assign({ id: id || panelId, className: css$
|
|
8544
|
+
return (React.createElement(GenerateId, { prefix: "pf-drawer-panel-" }, panelId => (React.createElement("div", Object.assign({ id: id || panelId, className: css$1(styles$d.drawerPanel, isResizable && styles$d.modifiers.resizable, hasNoBorder && styles$d.modifiers.noBorder, formatBreakpointMods(widths, styles$d), colorVariant === DrawerColorVariant.light200 && styles$d.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
|
|
8545
8545
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
8546
8546
|
onExpand();
|
|
8547
8547
|
}
|
|
@@ -8550,9 +8550,9 @@ const DrawerPanelContent = (_a) => {
|
|
|
8550
8550
|
style: boundaryCssVars
|
|
8551
8551
|
}), props), isExpandedInternal && (React.createElement(React.Fragment, null,
|
|
8552
8552
|
isResizable && (React.createElement(React.Fragment, null,
|
|
8553
|
-
React.createElement("div", { className: css$
|
|
8554
|
-
React.createElement("div", { className: css$
|
|
8555
|
-
React.createElement("div", { className: css$
|
|
8553
|
+
React.createElement("div", { className: css$1(styles$d.drawerSplitter, position !== 'bottom' && styles$d.modifiers.vertical), role: "separator", tabIndex: 0, "aria-orientation": position === 'bottom' ? 'horizontal' : 'vertical', "aria-label": resizeAriaLabel, "aria-valuenow": separatorValue, "aria-valuemin": 0, "aria-valuemax": 100, "aria-controls": id || panelId, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart, ref: splitterRef },
|
|
8554
|
+
React.createElement("div", { className: css$1(styles$d.drawerSplitterHandle), "aria-hidden": true })),
|
|
8555
|
+
React.createElement("div", { className: css$1(styles$d.drawerPanelMain) }, children))),
|
|
8556
8556
|
!isResizable && children))))));
|
|
8557
8557
|
};
|
|
8558
8558
|
DrawerPanelContent.displayName = 'DrawerPanelContent';
|
|
@@ -8570,10 +8570,10 @@ const ArrowRightIcon$1 = createIcon(ArrowRightIconConfig);
|
|
|
8570
8570
|
|
|
8571
8571
|
const ActionGroup = (_a) => {
|
|
8572
8572
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
8573
|
-
const customClassName = css$
|
|
8574
|
-
const formActionsComponent = React.createElement("div", { className: css$
|
|
8573
|
+
const customClassName = css$1(formStyles.formGroup, formStyles.modifiers.action, className);
|
|
8574
|
+
const formActionsComponent = React.createElement("div", { className: css$1(formStyles.formActions) }, children);
|
|
8575
8575
|
return (React.createElement("div", Object.assign({}, props, { className: customClassName }),
|
|
8576
|
-
React.createElement("div", { className: css$
|
|
8576
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl) }, formActionsComponent)));
|
|
8577
8577
|
};
|
|
8578
8578
|
ActionGroup.displayName = 'ActionGroup';
|
|
8579
8579
|
|
|
@@ -8581,38 +8581,38 @@ const FormBase = (_a) => {
|
|
|
8581
8581
|
var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '', innerRef } = _a, props = __rest(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth", "innerRef"]);
|
|
8582
8582
|
return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
|
|
8583
8583
|
style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
|
|
8584
|
-
}), props, { className: css$
|
|
8584
|
+
}), props, { className: css$1(formStyles.form, isHorizontal && formStyles.modifiers.horizontal, (isWidthLimited || maxWidth) && formStyles.modifiers.limitWidth, className), ref: innerRef }), children));
|
|
8585
8585
|
};
|
|
8586
8586
|
const Form = React.forwardRef((props, ref) => React.createElement(FormBase, Object.assign({ innerRef: ref }, props)));
|
|
8587
8587
|
Form.displayName = 'Form';
|
|
8588
8588
|
|
|
8589
8589
|
const FormGroup = (_a) => {
|
|
8590
8590
|
var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId, role } = _a, props = __rest(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId", "role"]);
|
|
8591
|
-
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React.createElement("div", { className: css$
|
|
8592
|
-
helperTextIcon && React.createElement("span", { className: css$
|
|
8591
|
+
const validHelperText = typeof helperText !== 'string' ? (helperText) : (React.createElement("div", { className: css$1(formStyles.formHelperText, validated === ValidatedOptions.success && formStyles.modifiers.success, validated === ValidatedOptions.warning && formStyles.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
8592
|
+
helperTextIcon && React.createElement("span", { className: css$1(formStyles.formHelperTextIcon) }, helperTextIcon),
|
|
8593
8593
|
helperText));
|
|
8594
|
-
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React.createElement("div", { className: css$
|
|
8595
|
-
helperTextInvalidIcon && React.createElement("span", { className: css$
|
|
8594
|
+
const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (React.createElement("div", { className: css$1(formStyles.formHelperText, formStyles.modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
|
|
8595
|
+
helperTextInvalidIcon && React.createElement("span", { className: css$1(formStyles.formHelperTextIcon) }, helperTextInvalidIcon),
|
|
8596
8596
|
helperTextInvalid));
|
|
8597
8597
|
const showValidHelperTxt = (validationType) => validationType !== ValidatedOptions.error && helperText ? validHelperText : '';
|
|
8598
8598
|
const helperTextToDisplay = validated === ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
|
|
8599
8599
|
const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
|
|
8600
8600
|
const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
|
|
8601
8601
|
const labelContent = (React.createElement(React.Fragment, null,
|
|
8602
|
-
React.createElement(LabelComponent, Object.assign({ className: css$
|
|
8603
|
-
React.createElement("span", { className: css$
|
|
8604
|
-
isRequired && (React.createElement("span", { className: css$
|
|
8602
|
+
React.createElement(LabelComponent, Object.assign({ className: css$1(formStyles.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
|
|
8603
|
+
React.createElement("span", { className: css$1(formStyles.formLabelText) }, label),
|
|
8604
|
+
isRequired && (React.createElement("span", { className: css$1(formStyles.formLabelRequired), "aria-hidden": "true" },
|
|
8605
8605
|
' ',
|
|
8606
8606
|
ASTERISK))),
|
|
8607
8607
|
' ',
|
|
8608
8608
|
React.isValidElement(labelIcon) && labelIcon));
|
|
8609
|
-
return (React.createElement(GenerateId, null, randomId => (React.createElement("div", Object.assign({ className: css$
|
|
8610
|
-
label && (React.createElement("div", Object.assign({ className: css$
|
|
8609
|
+
return (React.createElement(GenerateId, null, randomId => (React.createElement("div", Object.assign({ className: css$1(formStyles.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId || randomId}-legend` }), props),
|
|
8610
|
+
label && (React.createElement("div", Object.assign({ className: css$1(formStyles.formGroupLabel, labelInfo && formStyles.modifiers.info, hasNoPaddingTop && formStyles.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId || randomId}-legend` })),
|
|
8611
8611
|
labelInfo && (React.createElement(React.Fragment, null,
|
|
8612
|
-
React.createElement("div", { className: css$
|
|
8613
|
-
React.createElement("div", { className: css$
|
|
8612
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelMain) }, labelContent),
|
|
8613
|
+
React.createElement("div", { className: css$1(formStyles.formGroupLabelInfo) }, labelInfo))),
|
|
8614
8614
|
!labelInfo && labelContent)),
|
|
8615
|
-
React.createElement("div", { className: css$
|
|
8615
|
+
React.createElement("div", { className: css$1(formStyles.formGroupControl, isInline && formStyles.modifiers.inline, isStack && formStyles.modifiers.stack) },
|
|
8616
8616
|
isHelperTextBeforeField && helperTextToDisplay,
|
|
8617
8617
|
children,
|
|
8618
8618
|
!isHelperTextBeforeField && helperTextToDisplay)))));
|
|
@@ -8634,20 +8634,20 @@ var styles$c = {
|
|
|
8634
8634
|
|
|
8635
8635
|
const PanelBase = (_a) => {
|
|
8636
8636
|
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
8637
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8637
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panel, variant === 'raised' && styles$c.modifiers.raised, variant === 'bordered' && styles$c.modifiers.bordered, isScrollable && styles$c.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
8638
8638
|
};
|
|
8639
8639
|
const Panel = React.forwardRef((props, ref) => (React.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
8640
8640
|
Panel.displayName = 'Panel';
|
|
8641
8641
|
|
|
8642
8642
|
const PanelMain = (_a) => {
|
|
8643
8643
|
var { className, children, maxHeight } = _a, props = __rest(_a, ["className", "children", "maxHeight"]);
|
|
8644
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8644
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
|
|
8645
8645
|
};
|
|
8646
8646
|
PanelMain.displayName = 'PanelMain';
|
|
8647
8647
|
|
|
8648
8648
|
const PanelMainBody = (_a) => {
|
|
8649
8649
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
8650
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8650
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$c.panelMainBody, className) }, props), children));
|
|
8651
8651
|
};
|
|
8652
8652
|
PanelMainBody.displayName = 'PanelMainBody';
|
|
8653
8653
|
|
|
@@ -8747,7 +8747,7 @@ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '',
|
|
|
8747
8747
|
React.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (value, evt) => handleValueChange('haswords', value, evt) })))));
|
|
8748
8748
|
return formGroups;
|
|
8749
8749
|
};
|
|
8750
|
-
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$
|
|
8750
|
+
return isSearchMenuOpen ? (React.createElement(Panel, { variant: "raised", className: css$1(className) },
|
|
8751
8751
|
React.createElement(PanelMain, null,
|
|
8752
8752
|
React.createElement(PanelMainBody, null,
|
|
8753
8753
|
React.createElement(Form, null,
|
|
@@ -8785,7 +8785,7 @@ const TextInputGroup = (_a) => {
|
|
|
8785
8785
|
const ref = React.useRef(null);
|
|
8786
8786
|
const textInputGroupRef = innerRef || ref;
|
|
8787
8787
|
return (React.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
|
|
8788
|
-
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$
|
|
8788
|
+
React.createElement("div", Object.assign({ ref: textInputGroupRef, className: css$1(styles$b.textInputGroup, isDisabled && styles$b.modifiers.disabled, isPlain && styles$b.modifiers.plain, className) }, props), children)));
|
|
8789
8789
|
};
|
|
8790
8790
|
TextInputGroup.displayName = 'TextInputGroup';
|
|
8791
8791
|
|
|
@@ -8797,18 +8797,18 @@ const TextInputGroupMain = (_a) => {
|
|
|
8797
8797
|
const handleChange = (event) => {
|
|
8798
8798
|
onChange(event.currentTarget.value, event);
|
|
8799
8799
|
};
|
|
8800
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8800
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.textInputGroupMain, icon && styles$b.modifiers.icon, className) }, props),
|
|
8801
8801
|
children,
|
|
8802
|
-
React.createElement("span", { className: css$
|
|
8803
|
-
hint && (React.createElement("input", { className: css$
|
|
8804
|
-
icon && React.createElement("span", { className: css$
|
|
8805
|
-
React.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css$
|
|
8802
|
+
React.createElement("span", { className: css$1(styles$b.textInputGroupText) },
|
|
8803
|
+
hint && (React.createElement("input", { className: css$1(styles$b.textInputGroupTextInput, styles$b.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
|
|
8804
|
+
icon && React.createElement("span", { className: css$1(styles$b.textInputGroupIcon) }, icon),
|
|
8805
|
+
React.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css$1(styles$b.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
|
|
8806
8806
|
};
|
|
8807
8807
|
TextInputGroupMain.displayName = 'TextInputGroupMain';
|
|
8808
8808
|
|
|
8809
8809
|
const TextInputGroupUtilities = (_a) => {
|
|
8810
8810
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
8811
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
8811
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$b.textInputGroupUtilities, className) }, props), children));
|
|
8812
8812
|
};
|
|
8813
8813
|
TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
|
|
8814
8814
|
|
|
@@ -8962,7 +8962,7 @@ const SearchInputBase = (_a) => {
|
|
|
8962
8962
|
React.createElement(ArrowRightIcon$1, null))),
|
|
8963
8963
|
expandableInput && expandableToggle));
|
|
8964
8964
|
};
|
|
8965
|
-
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$
|
|
8965
|
+
const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css$1(className), innerRef: searchInputRef });
|
|
8966
8966
|
if (!!expandableInput && !isExpanded) {
|
|
8967
8967
|
return React.createElement(InputGroup, Object.assign({}, searchInputProps), expandableToggle);
|
|
8968
8968
|
}
|
|
@@ -8970,9 +8970,9 @@ const SearchInputBase = (_a) => {
|
|
|
8970
8970
|
if (attributes.length > 0) {
|
|
8971
8971
|
const AdvancedSearch = (React.createElement("div", null,
|
|
8972
8972
|
React.createElement(AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen })));
|
|
8973
|
-
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$
|
|
8973
|
+
const AdvancedSearchWithPopper = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8974
8974
|
React.createElement(Popper, { trigger: buildSearchTextInputGroupWithExtraButtons(), popper: AdvancedSearch, isVisible: isSearchMenuOpen, enableFlip: true, appendTo: () => appendTo || searchInputRef.current, removeFindDomNode: removeFindDomNode, zIndex: zIndex })));
|
|
8975
|
-
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$
|
|
8975
|
+
const AdvancedSearchInline = (React.createElement("div", Object.assign({ className: css$1(className), ref: searchInputRef }, props),
|
|
8976
8976
|
buildSearchTextInputGroupWithExtraButtons(),
|
|
8977
8977
|
AdvancedSearch));
|
|
8978
8978
|
return appendTo !== 'inline' ? AdvancedSearchWithPopper : AdvancedSearchInline;
|
|
@@ -9015,20 +9015,20 @@ var EmptyStateVariant;
|
|
|
9015
9015
|
})(EmptyStateVariant || (EmptyStateVariant = {}));
|
|
9016
9016
|
const EmptyState = (_a) => {
|
|
9017
9017
|
var { children, className = '', variant = EmptyStateVariant.full, isFullHeight } = _a, props = __rest(_a, ["children", "className", "variant", "isFullHeight"]);
|
|
9018
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9019
|
-
React.createElement("div", { className: css$
|
|
9018
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyState, variant === 'xs' && styles$a.modifiers.xs, variant === 'small' && styles$a.modifiers.sm, variant === 'large' && styles$a.modifiers.lg, variant === 'xl' && styles$a.modifiers.xl, isFullHeight && styles$a.modifiers.fullHeight, className) }, props),
|
|
9019
|
+
React.createElement("div", { className: css$1(styles$a.emptyStateContent) }, children)));
|
|
9020
9020
|
};
|
|
9021
9021
|
EmptyState.displayName = 'EmptyState';
|
|
9022
9022
|
|
|
9023
9023
|
const EmptyStateBody = (_a) => {
|
|
9024
9024
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9025
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9025
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyStateBody, className) }, props), children));
|
|
9026
9026
|
};
|
|
9027
9027
|
EmptyStateBody.displayName = 'EmptyStateBody';
|
|
9028
9028
|
|
|
9029
9029
|
const EmptyStateIcon = (_a) => {
|
|
9030
9030
|
var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = __rest(_a, ["className", "icon", "component", "variant"]);
|
|
9031
|
-
const classNames = css$
|
|
9031
|
+
const classNames = css$1(styles$a.emptyStateIcon, className);
|
|
9032
9032
|
return variant === 'icon' ? (React.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (React.createElement("div", { className: classNames },
|
|
9033
9033
|
React.createElement(AnyComponent, null)));
|
|
9034
9034
|
};
|
|
@@ -9036,7 +9036,7 @@ EmptyStateIcon.displayName = 'EmptyStateIcon';
|
|
|
9036
9036
|
|
|
9037
9037
|
const EmptyStatePrimary = (_a) => {
|
|
9038
9038
|
var { children, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9039
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9039
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$a.emptyStatePrimary, className) }, props), children));
|
|
9040
9040
|
};
|
|
9041
9041
|
EmptyStatePrimary.displayName = 'EmptyStatePrimary';
|
|
9042
9042
|
|
|
@@ -9122,13 +9122,13 @@ class ExpandableSection extends React.Component {
|
|
|
9122
9122
|
};
|
|
9123
9123
|
}
|
|
9124
9124
|
const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
|
|
9125
|
-
const expandableToggle = !isDetached && (React.createElement("button", { className: css$
|
|
9126
|
-
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$
|
|
9125
|
+
const expandableToggle = !isDetached && (React.createElement("button", { className: css$1(styles$9.expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
|
|
9126
|
+
variant !== ExpandableSectionVariant.truncate && (React.createElement("span", { className: css$1(styles$9.expandableSectionToggleIcon) },
|
|
9127
9127
|
React.createElement(AngleRightIcon, { "aria-hidden": true }))),
|
|
9128
|
-
React.createElement("span", { className: css$
|
|
9129
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
9128
|
+
React.createElement("span", { className: css$1(styles$9.expandableSectionToggleText) }, toggleContent || computedToggleText)));
|
|
9129
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$9.expandableSection, propOrStateIsExpanded && styles$9.modifiers.expanded, isActive && styles$9.modifiers.active, isDetached && styles$9.modifiers.detached, displaySize === 'large' && styles$9.modifiers.displayLg, isWidthLimited && styles$9.modifiers.limitWidth, isIndented && styles$9.modifiers.indented, variant === ExpandableSectionVariant.truncate && styles$9.modifiers.truncate, className) }, props),
|
|
9130
9130
|
variant === ExpandableSectionVariant.default && expandableToggle,
|
|
9131
|
-
React.createElement("div", { ref: this.expandableContentRef, className: css$
|
|
9131
|
+
React.createElement("div", { ref: this.expandableContentRef, className: css$1(styles$9.expandableSectionContent), hidden: variant !== ExpandableSectionVariant.truncate && !propOrStateIsExpanded, id: contentId }, children),
|
|
9132
9132
|
variant === ExpandableSectionVariant.truncate && expandableToggle));
|
|
9133
9133
|
}
|
|
9134
9134
|
}
|
|
@@ -9511,8 +9511,8 @@ const Label = (_a) => {
|
|
|
9511
9511
|
}
|
|
9512
9512
|
}, [isEditableActive]);
|
|
9513
9513
|
const content = (React.createElement(React.Fragment, null,
|
|
9514
|
-
icon && React.createElement("span", { className: css$
|
|
9515
|
-
isTruncated && (React.createElement("span", { ref: textRef, className: css$
|
|
9514
|
+
icon && React.createElement("span", { className: css$1(labelStyles.labelIcon) }, icon),
|
|
9515
|
+
isTruncated && (React.createElement("span", { ref: textRef, className: css$1(labelStyles.labelText) }, children)),
|
|
9516
9516
|
!isTruncated && children));
|
|
9517
9517
|
React.useEffect(() => {
|
|
9518
9518
|
if (isEditableActive && editableInputRef) {
|
|
@@ -9522,12 +9522,12 @@ const Label = (_a) => {
|
|
|
9522
9522
|
const updateVal = () => {
|
|
9523
9523
|
setCurrValue(editableInputRef.current.value);
|
|
9524
9524
|
};
|
|
9525
|
-
let labelComponentChild = React.createElement("span", { className: css$
|
|
9525
|
+
let labelComponentChild = React.createElement("span", { className: css$1(labelStyles.labelContent) }, content);
|
|
9526
9526
|
if (href) {
|
|
9527
|
-
labelComponentChild = (React.createElement("a", { className: css$
|
|
9527
|
+
labelComponentChild = (React.createElement("a", { className: css$1(labelStyles.labelContent), href: href }, content));
|
|
9528
9528
|
}
|
|
9529
9529
|
else if (isEditable) {
|
|
9530
|
-
labelComponentChild = (React.createElement("button", Object.assign({ ref: editableButtonRef, className: css$
|
|
9530
|
+
labelComponentChild = (React.createElement("button", Object.assign({ ref: editableButtonRef, className: css$1(labelStyles.labelContent), onClick: (e) => {
|
|
9531
9531
|
setIsEditableActive(true);
|
|
9532
9532
|
e.stopPropagation();
|
|
9533
9533
|
} }, editableProps), content));
|
|
@@ -9544,10 +9544,10 @@ const Label = (_a) => {
|
|
|
9544
9544
|
else if (isTooltipVisible) {
|
|
9545
9545
|
labelComponentChild = (React.createElement(Tooltip, { content: children, position: tooltipPosition }, labelComponentChild));
|
|
9546
9546
|
}
|
|
9547
|
-
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css$
|
|
9547
|
+
return (React.createElement(LabelComponent, Object.assign({}, props, { className: css$1(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$8.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }),
|
|
9548
9548
|
!isEditableActive && labelComponentChild,
|
|
9549
9549
|
!isEditableActive && onClose && button,
|
|
9550
|
-
isEditableActive && (React.createElement("input", Object.assign({ className: css$
|
|
9550
|
+
isEditableActive && (React.createElement("input", Object.assign({ className: css$1(labelStyles.labelContent), type: "text", id: "editable-input", ref: editableInputRef, value: currValue, onChange: updateVal }, editableProps)))));
|
|
9551
9551
|
};
|
|
9552
9552
|
Label.displayName = 'Label';
|
|
9553
9553
|
|
|
@@ -9582,14 +9582,14 @@ var ListComponent;
|
|
|
9582
9582
|
})(ListComponent || (ListComponent = {}));
|
|
9583
9583
|
const List = (_a) => {
|
|
9584
9584
|
var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = OrderType.number, ref = null, component = ListComponent.ul } = _a, props = __rest(_a, ["className", "children", "variant", "isBordered", "isPlain", "iconSize", "type", "ref", "component"]);
|
|
9585
|
-
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css$
|
|
9585
|
+
return component === ListComponent.ol ? (React.createElement("ol", Object.assign({ ref: ref, type: type }, props, { className: css$1(styles$7.list, variant && styles$7.modifiers[variant], isBordered && styles$7.modifiers.bordered, isPlain && styles$7.modifiers.plain, iconSize && iconSize === 'large' && styles$7.modifiers.iconLg, className) }), children)) : (React.createElement("ul", Object.assign({ ref: ref }, props, { className: css$1(styles$7.list, variant && styles$7.modifiers[variant], isBordered && styles$7.modifiers.bordered, isPlain && styles$7.modifiers.plain, iconSize && iconSize === 'large' && styles$7.modifiers.iconLg, className) }), children));
|
|
9586
9586
|
};
|
|
9587
9587
|
List.displayName = 'List';
|
|
9588
9588
|
|
|
9589
9589
|
const ListItem = (_a) => {
|
|
9590
9590
|
var { icon = null, children = null } = _a, props = __rest(_a, ["icon", "children"]);
|
|
9591
|
-
return (React.createElement("li", Object.assign({ className: css$
|
|
9592
|
-
icon && React.createElement("span", { className: css$
|
|
9591
|
+
return (React.createElement("li", Object.assign({ className: css$1(icon && styles$7.listItem) }, props),
|
|
9592
|
+
icon && React.createElement("span", { className: css$1(styles$7.listItemIcon) }, icon),
|
|
9593
9593
|
children));
|
|
9594
9594
|
};
|
|
9595
9595
|
ListItem.displayName = 'ListItem';
|
|
@@ -9636,7 +9636,7 @@ var modalStyles = {
|
|
|
9636
9636
|
|
|
9637
9637
|
const ModalBoxBody = (_a) => {
|
|
9638
9638
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9639
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
9639
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(modalStyles.modalBoxBody, className) }), children));
|
|
9640
9640
|
};
|
|
9641
9641
|
ModalBoxBody.displayName = 'ModalBoxBody';
|
|
9642
9642
|
|
|
@@ -9659,27 +9659,27 @@ const ModalBox = (_a) => {
|
|
|
9659
9659
|
style = style || {};
|
|
9660
9660
|
style[c_modal_box_m_align_top_spacer.name] = positionOffset;
|
|
9661
9661
|
}
|
|
9662
|
-
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css$
|
|
9662
|
+
return (React.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: css$1(modalStyles.modalBox, className, position === 'top' && modalStyles.modifiers.alignTop, variant === 'large' && modalStyles.modifiers.lg, variant === 'small' && modalStyles.modifiers.sm, variant === 'medium' && modalStyles.modifiers.md), style: style }), children));
|
|
9663
9663
|
};
|
|
9664
9664
|
ModalBox.displayName = 'ModalBox';
|
|
9665
9665
|
|
|
9666
9666
|
const ModalBoxFooter = (_a) => {
|
|
9667
9667
|
var { children = null, className = '' } = _a, props = __rest(_a, ["children", "className"]);
|
|
9668
|
-
return (React.createElement("footer", Object.assign({}, props, { className: css$
|
|
9668
|
+
return (React.createElement("footer", Object.assign({}, props, { className: css$1(modalStyles.modalBoxFooter, className) }), children));
|
|
9669
9669
|
};
|
|
9670
9670
|
ModalBoxFooter.displayName = 'ModalBoxFooter';
|
|
9671
9671
|
|
|
9672
9672
|
const ModalBoxDescription = (_a) => {
|
|
9673
9673
|
var { children = null, className = '', id = '' } = _a, props = __rest(_a, ["children", "className", "id"]);
|
|
9674
|
-
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$
|
|
9674
|
+
return (React.createElement("div", Object.assign({}, props, { id: id, className: css$1(modalStyles.modalBoxDescription, className) }), children));
|
|
9675
9675
|
};
|
|
9676
9676
|
ModalBoxDescription.displayName = 'ModalBoxDescription';
|
|
9677
9677
|
|
|
9678
9678
|
const ModalBoxHeader = (_a) => {
|
|
9679
9679
|
var { children = null, className = '', help = null } = _a, props = __rest(_a, ["children", "className", "help"]);
|
|
9680
|
-
return (React.createElement("header", Object.assign({ className: css$
|
|
9680
|
+
return (React.createElement("header", Object.assign({ className: css$1(modalStyles.modalBoxHeader, help && modalStyles.modifiers.help, className) }, props),
|
|
9681
9681
|
help && (React.createElement(React.Fragment, null,
|
|
9682
|
-
React.createElement("div", { className: css$
|
|
9682
|
+
React.createElement("div", { className: css$1(modalStyles.modalBoxHeaderMain) }, children),
|
|
9683
9683
|
React.createElement("div", { className: "pf-c-modal-box__header-help" }, help))),
|
|
9684
9684
|
!help && children));
|
|
9685
9685
|
};
|
|
@@ -9702,10 +9702,10 @@ const ModalBoxTitle = (_a) => {
|
|
|
9702
9702
|
useIsomorphicLayoutEffect(() => {
|
|
9703
9703
|
setHasTooltip(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
|
|
9704
9704
|
}, []);
|
|
9705
|
-
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$
|
|
9706
|
-
titleIconVariant && (React.createElement("span", { className: css$
|
|
9707
|
-
label && React.createElement("span", { className: css$
|
|
9708
|
-
React.createElement("span", { className: css$
|
|
9705
|
+
const content = (React.createElement("h1", Object.assign({ id: id, ref: h1, className: css$1(modalStyles.modalBoxTitle, titleIconVariant && modalStyles.modifiers.icon, className) }, props),
|
|
9706
|
+
titleIconVariant && (React.createElement("span", { className: css$1(modalStyles.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : React.createElement(CustomIcon, null))),
|
|
9707
|
+
label && React.createElement("span", { className: css$1(a11yStyles.screenReader) }, label),
|
|
9708
|
+
React.createElement("span", { className: css$1(modalStyles.modalBoxTitleText) }, title)));
|
|
9709
9709
|
return hasTooltip ? React.createElement(Tooltip, { content: title }, content) : content;
|
|
9710
9710
|
};
|
|
9711
9711
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
@@ -9738,14 +9738,14 @@ const ModalContent = (_a) => {
|
|
|
9738
9738
|
}
|
|
9739
9739
|
return idRefList.join(' ');
|
|
9740
9740
|
};
|
|
9741
|
-
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css$
|
|
9741
|
+
const modalBox = (React.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css$1(className, isVariantIcon(titleIconVariant) &&
|
|
9742
9742
|
modalStyles.modifiers[titleIconVariant]), variant: variant, position: position, positionOffset: positionOffset, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledbyFormatted(), "aria-describedby": ariaDescribedby || (hasNoBodyWrapper ? null : descriptorId) }, getOUIAProps(ModalContent.displayName, ouiaId, ouiaSafe)),
|
|
9743
9743
|
showClose && React.createElement(ModalBoxCloseButton, { onClose: onClose, ouiaId: ouiaId }),
|
|
9744
9744
|
modalBoxHeader,
|
|
9745
9745
|
modalBody,
|
|
9746
9746
|
modalBoxFooter));
|
|
9747
9747
|
return (React.createElement(Backdrop, null,
|
|
9748
|
-
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css$
|
|
9748
|
+
React.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } }, className: css$1(styles$u.bullseye) }, modalBox)));
|
|
9749
9749
|
};
|
|
9750
9750
|
ModalContent.displayName = 'ModalContent';
|
|
9751
9751
|
|
|
@@ -9805,10 +9805,10 @@ class Modal$1 extends React.Component {
|
|
|
9805
9805
|
target.appendChild(container);
|
|
9806
9806
|
target.addEventListener('keydown', this.handleEscKeyClick, false);
|
|
9807
9807
|
if (this.props.isOpen) {
|
|
9808
|
-
target.classList.add(css$
|
|
9808
|
+
target.classList.add(css$1(styles$v.backdropOpen));
|
|
9809
9809
|
}
|
|
9810
9810
|
else {
|
|
9811
|
-
target.classList.remove(css$
|
|
9811
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9812
9812
|
}
|
|
9813
9813
|
if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
|
|
9814
9814
|
// eslint-disable-next-line no-console
|
|
@@ -9823,11 +9823,11 @@ class Modal$1 extends React.Component {
|
|
|
9823
9823
|
const { appendTo } = this.props;
|
|
9824
9824
|
const target = this.getElement(appendTo);
|
|
9825
9825
|
if (this.props.isOpen) {
|
|
9826
|
-
target.classList.add(css$
|
|
9826
|
+
target.classList.add(css$1(styles$v.backdropOpen));
|
|
9827
9827
|
this.toggleSiblingsFromScreenReaders(true);
|
|
9828
9828
|
}
|
|
9829
9829
|
else {
|
|
9830
|
-
target.classList.remove(css$
|
|
9830
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9831
9831
|
this.toggleSiblingsFromScreenReaders(false);
|
|
9832
9832
|
}
|
|
9833
9833
|
}
|
|
@@ -9838,7 +9838,7 @@ class Modal$1 extends React.Component {
|
|
|
9838
9838
|
target.removeChild(this.state.container);
|
|
9839
9839
|
}
|
|
9840
9840
|
target.removeEventListener('keydown', this.handleEscKeyClick, false);
|
|
9841
|
-
target.classList.remove(css$
|
|
9841
|
+
target.classList.remove(css$1(styles$v.backdropOpen));
|
|
9842
9842
|
}
|
|
9843
9843
|
render() {
|
|
9844
9844
|
const _a = this.props, {
|
|
@@ -9892,7 +9892,7 @@ const Text = (_a) => {
|
|
|
9892
9892
|
var { children = null, className = '', component = TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
|
|
9893
9893
|
const Component = component;
|
|
9894
9894
|
const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);
|
|
9895
|
-
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css$
|
|
9895
|
+
return (React.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css$1(isVisitedLink && component === TextVariants.a && styles$t.modifiers.visited, className) }), children));
|
|
9896
9896
|
};
|
|
9897
9897
|
Text.displayName = 'Text';
|
|
9898
9898
|
|
|
@@ -9905,7 +9905,7 @@ var TextListVariants;
|
|
|
9905
9905
|
const TextList = (_a) => {
|
|
9906
9906
|
var { children = null, className = '', component = TextListVariants.ul } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
9907
9907
|
const Component = component;
|
|
9908
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
9908
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(className) }), children));
|
|
9909
9909
|
};
|
|
9910
9910
|
TextList.displayName = 'TextList';
|
|
9911
9911
|
|
|
@@ -9918,7 +9918,7 @@ var TextListItemVariants;
|
|
|
9918
9918
|
const TextListItem = (_a) => {
|
|
9919
9919
|
var { children = null, className = '', component = TextListItemVariants.li } = _a, props = __rest(_a, ["children", "className", "component"]);
|
|
9920
9920
|
const Component = component;
|
|
9921
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
9921
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(className) }), children));
|
|
9922
9922
|
};
|
|
9923
9923
|
TextListItem.displayName = 'TextListItem';
|
|
9924
9924
|
|
|
@@ -9998,7 +9998,7 @@ const OptionsMenuItem = (_a) => {
|
|
|
9998
9998
|
var { children = null, isSelected = false, onSelect = () => null, id = '', isDisabled } = _a, props = __rest(_a, ["children", "isSelected", "onSelect", "id", "isDisabled"]);
|
|
9999
9999
|
return (React.createElement(DropdownItem, Object.assign({ id: id, component: "button", isDisabled: isDisabled, onClick: (event) => onSelect(event) }, (isDisabled && { 'aria-disabled': true }), props),
|
|
10000
10000
|
children,
|
|
10001
|
-
isSelected && (React.createElement("span", { className: css$
|
|
10001
|
+
isSelected && (React.createElement("span", { className: css$1(styles$6.optionsMenuMenuItemIcon) },
|
|
10002
10002
|
React.createElement(CheckIcon, { "aria-hidden": isSelected })))));
|
|
10003
10003
|
};
|
|
10004
10004
|
OptionsMenuItem.displayName = 'OptionsMenuItem';
|
|
@@ -10037,16 +10037,16 @@ class Radio extends React.Component {
|
|
|
10037
10037
|
// eslint-disable-next-line no-console
|
|
10038
10038
|
console.error('Radio:', 'id is required to make input accessible');
|
|
10039
10039
|
}
|
|
10040
|
-
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$
|
|
10040
|
+
const inputRendered = (React.createElement("input", Object.assign({}, props, { className: css$1(styles$5.radioInput), type: "radio", onChange: this.handleChange, "aria-invalid": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), getOUIAProps(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
|
|
10041
10041
|
let labelRendered = null;
|
|
10042
10042
|
if (label && isLabelWrapped) {
|
|
10043
|
-
labelRendered = React.createElement("span", { className: css$
|
|
10043
|
+
labelRendered = React.createElement("span", { className: css$1(styles$5.radioLabel, isDisabled && styles$5.modifiers.disabled) }, label);
|
|
10044
10044
|
}
|
|
10045
10045
|
else if (label) {
|
|
10046
|
-
labelRendered = (React.createElement("label", { className: css$
|
|
10046
|
+
labelRendered = (React.createElement("label", { className: css$1(styles$5.radioLabel, isDisabled && styles$5.modifiers.disabled), htmlFor: props.id }, label));
|
|
10047
10047
|
}
|
|
10048
|
-
const descRender = description ? React.createElement("span", { className: css$
|
|
10049
|
-
const bodyRender = body ? React.createElement("span", { className: css$
|
|
10048
|
+
const descRender = description ? React.createElement("span", { className: css$1(styles$5.radioDescription) }, description) : null;
|
|
10049
|
+
const bodyRender = body ? React.createElement("span", { className: css$1(styles$5.radioBody) }, body) : null;
|
|
10050
10050
|
const childrenRendered = isLabelBeforeButton ? (React.createElement(React.Fragment, null,
|
|
10051
10051
|
labelRendered,
|
|
10052
10052
|
inputRendered,
|
|
@@ -10056,7 +10056,7 @@ class Radio extends React.Component {
|
|
|
10056
10056
|
labelRendered,
|
|
10057
10057
|
descRender,
|
|
10058
10058
|
bodyRender));
|
|
10059
|
-
return isLabelWrapped ? (React.createElement("label", { className: css$
|
|
10059
|
+
return isLabelWrapped ? (React.createElement("label", { className: css$1(styles$5.radio, className), htmlFor: props.id }, childrenRendered)) : (React.createElement("div", { className: css$1(styles$5.radio, !label && styles$5.modifiers.standalone, className) }, childrenRendered));
|
|
10060
10060
|
}
|
|
10061
10061
|
}
|
|
10062
10062
|
Radio.displayName = 'Radio';
|
|
@@ -10263,7 +10263,7 @@ var ToolbarItemVariant;
|
|
|
10263
10263
|
const ToolbarItem = (_a) => {
|
|
10264
10264
|
var { className, variant, visibility, visiblity, alignment, spacer, widths, id, children, isAllExpanded } = _a, props = __rest(_a, ["className", "variant", "visibility", "visiblity", "alignment", "spacer", "widths", "id", "children", "isAllExpanded"]);
|
|
10265
10265
|
if (variant === ToolbarItemVariant.separator) {
|
|
10266
|
-
return React.createElement(Divider, Object.assign({ className: css$
|
|
10266
|
+
return React.createElement(Divider, Object.assign({ className: css$1(styles$4.modifiers.vertical, className) }, props));
|
|
10267
10267
|
}
|
|
10268
10268
|
if (visiblity !== undefined) {
|
|
10269
10269
|
// eslint-disable-next-line no-console
|
|
@@ -10274,7 +10274,7 @@ const ToolbarItem = (_a) => {
|
|
|
10274
10274
|
if (widths) {
|
|
10275
10275
|
Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
10276
10276
|
}
|
|
10277
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10277
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarItem, variant &&
|
|
10278
10278
|
styles$4.modifiers[toCamel(variant)], isAllExpanded && styles$4.modifiers.expanded, formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children))));
|
|
10279
10279
|
};
|
|
10280
10280
|
ToolbarItem.displayName = 'ToolbarItem';
|
|
@@ -10293,7 +10293,7 @@ class ToolbarGroupWithRef extends React.Component {
|
|
|
10293
10293
|
console.warn('The ToolbarGroup visiblity prop has been deprecated. ' +
|
|
10294
10294
|
'Please use the correctly spelled visibility prop instead.');
|
|
10295
10295
|
}
|
|
10296
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10296
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarGroup, variant && styles$4.modifiers[toCamel(variant)], formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$4, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$4, '', getBreakpoint(width)), className) }, props, { ref: innerRef }), children))));
|
|
10297
10297
|
}
|
|
10298
10298
|
}
|
|
10299
10299
|
const ToolbarGroup = React.forwardRef((props, ref) => (React.createElement(ToolbarGroupWithRef, Object.assign({}, props, { innerRef: ref }))));
|
|
@@ -10312,8 +10312,8 @@ class ToolbarChipGroupContent extends React.Component {
|
|
|
10312
10312
|
collapseListedFilters =
|
|
10313
10313
|
(canUseDOM ? window.innerWidth : 1200) < globalBreakpoints[collapseListedFiltersBreakpoint];
|
|
10314
10314
|
}
|
|
10315
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
10316
|
-
React.createElement(ToolbarGroup, Object.assign({ className: css$
|
|
10315
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$4.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),
|
|
10316
|
+
React.createElement(ToolbarGroup, Object.assign({ className: css$1(collapseListedFilters && styles$4.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
10317
10317
|
collapseListedFilters && numberOfFilters > 0 && !isExpanded && (React.createElement(ToolbarGroup, null,
|
|
10318
10318
|
React.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)))),
|
|
10319
10319
|
showClearFiltersButton && !isExpanded && !customChipGroupContent && (React.createElement(ToolbarItem, null,
|
|
@@ -10369,7 +10369,7 @@ class Toolbar extends React.Component {
|
|
|
10369
10369
|
const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
|
|
10370
10370
|
const numberOfFilters = this.getNumberOfFilters();
|
|
10371
10371
|
const showClearFiltersButton = numberOfFilters > 0;
|
|
10372
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10372
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbar, isFullHeight && styles$4.modifiers.fullHeight, isStatic && styles$4.modifiers.static, usePageInsets && styles$4.modifiers.pageInsets, isSticky && styles$4.modifiers.sticky, formatBreakpointMods(inset, styles$4, '', getBreakpoint(width)), className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),
|
|
10373
10373
|
React.createElement(ToolbarContext.Provider, { value: {
|
|
10374
10374
|
isExpanded,
|
|
10375
10375
|
toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
|
|
@@ -10411,7 +10411,7 @@ class ToolbarExpandableContent extends React.Component {
|
|
|
10411
10411
|
const clearChipGroups = () => {
|
|
10412
10412
|
clearAllFilters();
|
|
10413
10413
|
};
|
|
10414
|
-
return (React.createElement("div", Object.assign({ className: css$
|
|
10414
|
+
return (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarExpandableContent, className), ref: expandableContentRef }, props),
|
|
10415
10415
|
React.createElement(ToolbarGroup, null),
|
|
10416
10416
|
numberOfFilters > 0 && (React.createElement(ToolbarGroup, { className: styles$4.modifiers.chipContainer },
|
|
10417
10417
|
React.createElement(ToolbarGroup, { ref: chipContainerRef }),
|
|
@@ -10440,7 +10440,7 @@ class ToolbarContent extends React.Component {
|
|
|
10440
10440
|
console.warn('The ToolbarContent visiblity prop has been deprecated. ' +
|
|
10441
10441
|
'Please use the correctly spelled visibility prop instead.');
|
|
10442
10442
|
}
|
|
10443
|
-
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$
|
|
10443
|
+
return (React.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement("div", Object.assign({ className: css$1(styles$4.toolbarContent, formatBreakpointMods(visibility || visiblity, styles$4, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$4, '', getBreakpoint(width)), className) }, props),
|
|
10444
10444
|
React.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, toolbarId: toolbarIdContext }) => {
|
|
10445
10445
|
const expandableContentId = `${toolbarId ||
|
|
10446
10446
|
toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
|
|
@@ -10449,7 +10449,7 @@ class ToolbarContent extends React.Component {
|
|
|
10449
10449
|
expandableContentId,
|
|
10450
10450
|
chipContainerRef: this.chipContainerRef
|
|
10451
10451
|
} },
|
|
10452
|
-
React.createElement("div", { className: css$
|
|
10452
|
+
React.createElement("div", { className: css$1(styles$4.toolbarContentSection) }, children),
|
|
10453
10453
|
React.createElement(ToolbarExpandableContent, { id: expandableContentId, isExpanded: isExpanded, expandableContentRef: this.expandableContentRef, chipContainerRef: this.chipContainerRef, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext })));
|
|
10454
10454
|
})))));
|
|
10455
10455
|
}
|
|
@@ -10521,11 +10521,11 @@ const WizardNavItem = (_a) => {
|
|
|
10521
10521
|
tabIndex: isDisabled ? -1 : undefined,
|
|
10522
10522
|
href
|
|
10523
10523
|
};
|
|
10524
|
-
return (React.createElement("li", { className: css$
|
|
10525
|
-
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css$
|
|
10526
|
-
React.createElement("span", { className: css$
|
|
10527
|
-
React.createElement("span", { className: css$
|
|
10528
|
-
React.createElement("span", { className: css$
|
|
10524
|
+
return (React.createElement("li", { className: css$1(styles$3.wizardNavItem, isExpandable && styles$3.modifiers.expandable, isExpandable && isExpanded && styles$3.modifiers.expanded) },
|
|
10525
|
+
React.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css$1(styles$3.wizardNavLink, isCurrent && styles$3.modifiers.current, isDisabled && styles$3.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded }), ouiaProps), isExpandable ? (React.createElement(React.Fragment, null,
|
|
10526
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkText) }, content),
|
|
10527
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggle) },
|
|
10528
|
+
React.createElement("span", { className: css$1(styles$3.wizardNavLinkToggleIcon) },
|
|
10529
10529
|
React.createElement(AngleRightIcon, null))))) : (content)),
|
|
10530
10530
|
children));
|
|
10531
10531
|
};
|
|
@@ -10906,14 +10906,14 @@ const l_flex_item_Order = {
|
|
|
10906
10906
|
const Flex = (_a) => {
|
|
10907
10907
|
var { children = null, className = '', component = 'div', spacer, spaceItems, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "spaceItems", "grow", "shrink", "flex", "direction", "alignItems", "alignContent", "alignSelf", "align", "justifyContent", "display", "fullWidth", "flexWrap", "order", "style"]);
|
|
10908
10908
|
const Component = component;
|
|
10909
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
10909
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$2.flex, formatBreakpointMods(spacer, styles$2), formatBreakpointMods(spaceItems, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(direction, styles$2), formatBreakpointMods(alignItems, styles$2), formatBreakpointMods(alignContent, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(justifyContent, styles$2), formatBreakpointMods(display, styles$2), formatBreakpointMods(fullWidth, styles$2), formatBreakpointMods(flexWrap, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));
|
|
10910
10910
|
};
|
|
10911
10911
|
Flex.displayName = 'Flex';
|
|
10912
10912
|
|
|
10913
10913
|
const FlexItem = (_a) => {
|
|
10914
10914
|
var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "grow", "shrink", "flex", "alignSelf", "align", "fullWidth", "order", "style"]);
|
|
10915
10915
|
const Component = component;
|
|
10916
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
10916
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(formatBreakpointMods(spacer, styles$2), formatBreakpointMods(grow, styles$2), formatBreakpointMods(shrink, styles$2), formatBreakpointMods(flex, styles$2), formatBreakpointMods(alignSelf, styles$2), formatBreakpointMods(align, styles$2), formatBreakpointMods(fullWidth, styles$2), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }), children));
|
|
10917
10917
|
};
|
|
10918
10918
|
FlexItem.displayName = 'FlexItem';
|
|
10919
10919
|
|
|
@@ -10936,7 +10936,7 @@ const Gallery = (_a) => {
|
|
|
10936
10936
|
Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`--pf-l-gallery--GridTemplateColumns--max${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
|
|
10937
10937
|
}
|
|
10938
10938
|
const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);
|
|
10939
|
-
return (React.createElement(Component, Object.assign({ className: css$
|
|
10939
|
+
return (React.createElement(Component, Object.assign({ className: css$1(styles$1.gallery, hasGutter && styles$1.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));
|
|
10940
10940
|
};
|
|
10941
10941
|
Gallery.displayName = 'Gallery';
|
|
10942
10942
|
|
|
@@ -10959,13 +10959,13 @@ var styles = {
|
|
|
10959
10959
|
const Stack = (_a) => {
|
|
10960
10960
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, ["hasGutter", "className", "children", "component"]);
|
|
10961
10961
|
const Component = component;
|
|
10962
|
-
return (React.createElement(Component, Object.assign({}, props, { className: css$
|
|
10962
|
+
return (React.createElement(Component, Object.assign({}, props, { className: css$1(styles.stack, hasGutter && styles.modifiers.gutter, className) }), children));
|
|
10963
10963
|
};
|
|
10964
10964
|
Stack.displayName = 'Stack';
|
|
10965
10965
|
|
|
10966
10966
|
const StackItem = (_a) => {
|
|
10967
10967
|
var { isFilled = false, className = '', children = null } = _a, props = __rest(_a, ["isFilled", "className", "children"]);
|
|
10968
|
-
return (React.createElement("div", Object.assign({}, props, { className: css$
|
|
10968
|
+
return (React.createElement("div", Object.assign({}, props, { className: css$1(styles.stackItem, isFilled && styles.modifiers.fill, className) }), children));
|
|
10969
10969
|
};
|
|
10970
10970
|
StackItem.displayName = 'StackItem';
|
|
10971
10971
|
|
|
@@ -11053,7 +11053,7 @@ var SearchIcon = /*@__PURE__*/getDefaultExportFromCjs(searchIcon);
|
|
|
11053
11053
|
*
|
|
11054
11054
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
11055
11055
|
*/
|
|
11056
|
-
function css
|
|
11056
|
+
function css(...args) {
|
|
11057
11057
|
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
11058
11058
|
const classes = [];
|
|
11059
11059
|
const hasOwn = {}.hasOwnProperty;
|
|
@@ -11063,7 +11063,7 @@ function css$1(...args) {
|
|
|
11063
11063
|
classes.push(arg);
|
|
11064
11064
|
}
|
|
11065
11065
|
else if (Array.isArray(arg) && arg.length) {
|
|
11066
|
-
const inner = css
|
|
11066
|
+
const inner = css(...arg);
|
|
11067
11067
|
if (inner) {
|
|
11068
11068
|
classes.push(inner);
|
|
11069
11069
|
}
|
|
@@ -11869,13 +11869,13 @@ const QuickStartContextProvider = ({ children, value }) => {
|
|
|
11869
11869
|
return (React__default.createElement(QuickStartContext.Provider, { value: useValuesForQuickStartContext(value) }, children));
|
|
11870
11870
|
};
|
|
11871
11871
|
|
|
11872
|
-
const Box = ({ children, className }) => (React.createElement("div", { className: css
|
|
11873
|
-
const Loading = ({ className }) => (React.createElement("div", { className: css
|
|
11872
|
+
const Box = ({ children, className }) => (React.createElement("div", { className: css('pfext-status-box', className) }, children));
|
|
11873
|
+
const Loading = ({ className }) => (React.createElement("div", { className: css('pfext-m-loader', className) },
|
|
11874
11874
|
React.createElement("div", { className: "pfext-m-loader-dot__one" }),
|
|
11875
11875
|
React.createElement("div", { className: "pfext-m-loader-dot__two" }),
|
|
11876
11876
|
React.createElement("div", { className: "pfext-m-loader-dot__three" })));
|
|
11877
11877
|
Loading.displayName = 'Loading';
|
|
11878
|
-
const LoadingBox = ({ className, message }) => (React.createElement(Box, { className: css
|
|
11878
|
+
const LoadingBox = ({ className, message }) => (React.createElement(Box, { className: css('pfext-status-box--loading', className) },
|
|
11879
11879
|
React.createElement(Loading, null),
|
|
11880
11880
|
message && React.createElement("div", { className: "pfext-status-box__loading-message" }, message)));
|
|
11881
11881
|
LoadingBox.displayName = 'LoadingBox';
|
|
@@ -11905,36 +11905,6 @@ const CamelCaseWrap = ({ value, dataTest }) => {
|
|
|
11905
11905
|
return rendered;
|
|
11906
11906
|
};
|
|
11907
11907
|
|
|
11908
|
-
/** Joins args into a className string
|
|
11909
|
-
*
|
|
11910
|
-
* @param {any} args list of objects, string, or arrays to reduce
|
|
11911
|
-
*/
|
|
11912
|
-
function css(...args) {
|
|
11913
|
-
// Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
|
|
11914
|
-
const classes = [];
|
|
11915
|
-
const hasOwn = {}.hasOwnProperty;
|
|
11916
|
-
args.filter(Boolean).forEach((arg) => {
|
|
11917
|
-
const argType = typeof arg;
|
|
11918
|
-
if (argType === 'string' || argType === 'number') {
|
|
11919
|
-
classes.push(arg);
|
|
11920
|
-
}
|
|
11921
|
-
else if (Array.isArray(arg) && arg.length) {
|
|
11922
|
-
const inner = css(...arg);
|
|
11923
|
-
if (inner) {
|
|
11924
|
-
classes.push(inner);
|
|
11925
|
-
}
|
|
11926
|
-
}
|
|
11927
|
-
else if (argType === 'object') {
|
|
11928
|
-
for (const key in arg) {
|
|
11929
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
11930
|
-
classes.push(key);
|
|
11931
|
-
}
|
|
11932
|
-
}
|
|
11933
|
-
}
|
|
11934
|
-
});
|
|
11935
|
-
return classes.join(' ');
|
|
11936
|
-
}
|
|
11937
|
-
|
|
11938
11908
|
class CatalogTile extends React.Component {
|
|
11939
11909
|
constructor() {
|
|
11940
11910
|
super(...arguments);
|
|
@@ -11958,7 +11928,7 @@ class CatalogTile extends React.Component {
|
|
|
11958
11928
|
const _a = this.props, { id, className, featured, onClick, href, icon, iconImg, iconAlt, iconClass, badges, title, vendor, description, footer,
|
|
11959
11929
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11960
11930
|
ref, children } = _a, props = __rest(_a, ["id", "className", "featured", "onClick", "href", "icon", "iconImg", "iconAlt", "iconClass", "badges", "title", "vendor", "description", "footer", "ref", "children"]);
|
|
11961
|
-
return (React.createElement(Card, Object.assign({ component: href || onClick ? 'a' : 'div', id: id, href: href || '#', className: css('catalog-tile-pf', { featured }, className), onClick: e => this.handleClick(e), isSelectable: true }, props),
|
|
11931
|
+
return (React.createElement(Card, Object.assign({ component: href || onClick ? 'a' : 'div', id: id, href: href || '#', className: css$1('catalog-tile-pf', { featured }, className), onClick: e => this.handleClick(e), isSelectable: true }, props),
|
|
11962
11932
|
(badges.length > 0 || iconImg || iconClass || icon) && (React.createElement(CardHeader, null,
|
|
11963
11933
|
iconImg && React.createElement("img", { className: "catalog-tile-pf-icon", src: iconImg, alt: iconAlt }),
|
|
11964
11934
|
!iconImg && (iconClass || icon) && React.createElement("span", { className: `catalog-tile-pf-icon ${iconClass}` }, icon),
|
|
@@ -11968,7 +11938,7 @@ class CatalogTile extends React.Component {
|
|
|
11968
11938
|
vendor && React.createElement("div", { className: "catalog-tile-pf-subtitle" }, vendor)),
|
|
11969
11939
|
(description || children) && (React.createElement(CardBody, { className: "catalog-tile-pf-body" },
|
|
11970
11940
|
description && (React.createElement("div", { className: "catalog-tile-pf-description" },
|
|
11971
|
-
React.createElement("span", { className: css({ 'has-footer': footer }) }, description))),
|
|
11941
|
+
React.createElement("span", { className: css$1({ 'has-footer': footer }) }, description))),
|
|
11972
11942
|
children)),
|
|
11973
11943
|
footer && React.createElement(CardFooter, { className: "catalog-tile-pf-footer" }, footer)));
|
|
11974
11944
|
}
|
|
@@ -12009,7 +11979,7 @@ var RocketIcon = /*@__PURE__*/getDefaultExportFromCjs(rocketIcon);
|
|
|
12009
11979
|
|
|
12010
11980
|
const Modal = (_a) => {
|
|
12011
11981
|
var { isFullScreen = false, className } = _a, props = __rest(_a, ["isFullScreen", "className"]);
|
|
12012
|
-
return (React.createElement(Modal$1, Object.assign({}, props, { className: css
|
|
11982
|
+
return (React.createElement(Modal$1, Object.assign({}, props, { className: css('pfext-modal', className), appendTo: () => (isFullScreen ? document.body : document.querySelector('#modal-container')) })));
|
|
12013
11983
|
};
|
|
12014
11984
|
|
|
12015
11985
|
const getContainer = (container) => typeof container === 'function' ? container() : container;
|
|
@@ -21090,7 +21060,7 @@ const RenderExtension = ({ renderExtension, selector, markup, docContext, }) =>
|
|
|
21090
21060
|
};
|
|
21091
21061
|
const InlineMarkdownView = ({ markup, isEmpty, renderExtension, className, }) => {
|
|
21092
21062
|
const id = React.useMemo(() => uniqueId('markdown'), []);
|
|
21093
|
-
return (React.createElement("div", { className: css
|
|
21063
|
+
return (React.createElement("div", { className: css('pfext-markdown-view', { 'is-empty': isEmpty }, className), id: id },
|
|
21094
21064
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: markup } }),
|
|
21095
21065
|
renderExtension && (React.createElement(RenderExtension, { renderExtension: renderExtension, selector: `#${id}`, markup: markup }))));
|
|
21096
21066
|
};
|
|
@@ -21328,10 +21298,10 @@ const StatusIconAndText = ({ icon, title, spin, iconOnly, noTooltip, className,
|
|
|
21328
21298
|
if (!title) {
|
|
21329
21299
|
return React.createElement(React.Fragment, null, DASH);
|
|
21330
21300
|
}
|
|
21331
|
-
return (React.createElement("span", { className: css
|
|
21301
|
+
return (React.createElement("span", { className: css('pfext-icon-and-text', className), title: iconOnly && !noTooltip ? title : undefined },
|
|
21332
21302
|
icon &&
|
|
21333
21303
|
React.cloneElement(icon, {
|
|
21334
|
-
className: css
|
|
21304
|
+
className: css(spin && 'fa-spin', icon.props.className, !iconOnly && 'pfext-icon-and-text__icon pfext-icon-flex-child'),
|
|
21335
21305
|
}),
|
|
21336
21306
|
!iconOnly && React.createElement(CamelCaseWrap, { value: title, dataTest: "status-text" })));
|
|
21337
21307
|
};
|
|
@@ -21818,7 +21788,7 @@ const TaskIcon = ({ taskIndex, taskStatus }) => {
|
|
|
21818
21788
|
const { getResource } = React.useContext(QuickStartContext);
|
|
21819
21789
|
const success = taskStatus === QuickStartTaskStatus.SUCCESS;
|
|
21820
21790
|
const failed = taskStatus === QuickStartTaskStatus.FAILED;
|
|
21821
|
-
const classNames = css
|
|
21791
|
+
const classNames = css('pfext-icon-and-text__icon', {
|
|
21822
21792
|
'pfext-quick-start-task-header__task-icon-init': !failed && !success,
|
|
21823
21793
|
});
|
|
21824
21794
|
let content;
|
|
@@ -21841,7 +21811,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
21841
21811
|
titleRef.current.parentNode.focus();
|
|
21842
21812
|
}
|
|
21843
21813
|
}, [isActiveTask]);
|
|
21844
|
-
const classNames = css
|
|
21814
|
+
const classNames = css('pfext-quick-start-task-header__title', {
|
|
21845
21815
|
'pfext-quick-start-task-header__title-success': taskStatus === QuickStartTaskStatus.SUCCESS,
|
|
21846
21816
|
'pfext-quick-start-task-header__title-failed': taskStatus === (QuickStartTaskStatus.FAILED || QuickStartTaskStatus.VISITED),
|
|
21847
21817
|
});
|
|
@@ -21920,7 +21890,7 @@ const getAlertVariant = (status) => {
|
|
|
21920
21890
|
const QuickStartTaskReview = ({ review, taskStatus, onTaskReview, }) => {
|
|
21921
21891
|
const { instructions, failedTaskHelp: taskHelp } = review;
|
|
21922
21892
|
const { getResource } = React.useContext(QuickStartContext);
|
|
21923
|
-
const alertClassNames = css
|
|
21893
|
+
const alertClassNames = css('pfext-quick-start-task-review', {
|
|
21924
21894
|
'pfext-quick-start-task-review--success': taskStatus === QuickStartTaskStatus.SUCCESS,
|
|
21925
21895
|
'pfext-quick-start-task-review--failed': taskStatus === QuickStartTaskStatus.FAILED,
|
|
21926
21896
|
});
|
|
@@ -22068,11 +22038,11 @@ const QuickStartPanelContent = (_a) => {
|
|
|
22068
22038
|
const taskNumber = activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.taskNumber;
|
|
22069
22039
|
useScrollTopOnTaskNumberChange(contentRef, taskNumber);
|
|
22070
22040
|
const nextQuickStarts = quickStarts.filter((qs) => { var _a; return (_a = quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.nextQuickStart) === null || _a === void 0 ? void 0 : _a.includes(qs.metadata.name); });
|
|
22071
|
-
const headerClasses = css
|
|
22041
|
+
const headerClasses = css('pfext-quick-start-panel-content__header', {
|
|
22072
22042
|
'pfext-quick-start-panel-content__header__shadow': shadows === Shadows.top || shadows === Shadows.both,
|
|
22073
22043
|
'pfext-quick-start-panel-content__header--blue-white': headerVariant === 'blue-white',
|
|
22074
22044
|
});
|
|
22075
|
-
const footerClass = css
|
|
22045
|
+
const footerClass = css({
|
|
22076
22046
|
'pfext-quick-start-panel-content__footer__shadow': shadows === Shadows.bottom || shadows === Shadows.both,
|
|
22077
22047
|
});
|
|
22078
22048
|
const getStep = () => {
|
|
@@ -22094,7 +22064,7 @@ const QuickStartPanelContent = (_a) => {
|
|
|
22094
22064
|
React.createElement("div", { className: headerClasses },
|
|
22095
22065
|
React.createElement(DrawerHead, null,
|
|
22096
22066
|
React.createElement("div", { className: "pfext-quick-start-panel-content__title", tabIndex: -1, ref: titleRef },
|
|
22097
|
-
React.createElement(Title, { headingLevel: "
|
|
22067
|
+
React.createElement(Title, { headingLevel: "h2", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-global--spacer--md)' } },
|
|
22098
22068
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
|
22099
22069
|
__html: removeParagraphWrap(markdownConvert(quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.displayName)),
|
|
22100
22070
|
} }),
|
|
@@ -22279,7 +22249,7 @@ const HelpTopicPanelContent = (_a) => {
|
|
|
22279
22249
|
setActiveHelpTopicByName(topicName);
|
|
22280
22250
|
toggleHelpTopicMenu();
|
|
22281
22251
|
};
|
|
22282
|
-
const menuItems = filteredHelpTopics.length >
|
|
22252
|
+
const menuItems = filteredHelpTopics.length > 1 &&
|
|
22283
22253
|
filteredHelpTopics.map((topic) => {
|
|
22284
22254
|
return (React.createElement(OptionsMenuItem, { key: topic.name, onSelect: onSelectHelpTopic, id: topic.name }, topic.title));
|
|
22285
22255
|
});
|