@patternfly/react-core 4.231.7 → 4.232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
- package/dist/esm/components/Alert/Alert.js +2 -2
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/deprecated/components/index.d.ts +2 -0
- package/dist/esm/deprecated/components/index.d.ts.map +1 -0
- package/dist/esm/deprecated/components/index.js +2 -0
- package/dist/esm/deprecated/components/index.js.map +1 -0
- package/dist/esm/deprecated/index.d.ts +2 -0
- package/dist/esm/deprecated/index.d.ts.map +1 -0
- package/dist/esm/deprecated/index.js +2 -0
- package/dist/esm/deprecated/index.js.map +1 -0
- package/dist/esm/next/components/index.d.ts +2 -0
- package/dist/esm/next/components/index.d.ts.map +1 -0
- package/dist/esm/next/components/index.js +2 -0
- package/dist/esm/next/components/index.js.map +1 -0
- package/dist/esm/next/index.d.ts +2 -0
- package/dist/esm/next/index.d.ts.map +1 -0
- package/dist/esm/next/index.js +2 -0
- package/dist/esm/next/index.js.map +1 -0
- package/dist/js/components/Alert/Alert.d.ts.map +1 -1
- package/dist/js/components/Alert/Alert.js +2 -2
- package/dist/js/components/Alert/Alert.js.map +1 -1
- package/dist/js/deprecated/components/index.d.ts +2 -0
- package/dist/js/deprecated/components/index.d.ts.map +1 -0
- package/dist/js/deprecated/components/index.js +5 -0
- package/dist/js/deprecated/components/index.js.map +1 -0
- package/dist/js/deprecated/index.d.ts +2 -0
- package/dist/js/deprecated/index.d.ts.map +1 -0
- package/dist/js/deprecated/index.js +5 -0
- package/dist/js/deprecated/index.js.map +1 -0
- package/dist/js/next/components/index.d.ts +2 -0
- package/dist/js/next/components/index.d.ts.map +1 -0
- package/dist/js/next/components/index.js +5 -0
- package/dist/js/next/components/index.js.map +1 -0
- package/dist/js/next/index.d.ts +2 -0
- package/dist/js/next/index.d.ts.map +1 -0
- package/dist/js/next/index.js +5 -0
- package/dist/js/next/index.js.map +1 -0
- package/dist/umd/react-core.css +404 -404
- package/dist/umd/react-core.js +2 -2
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +21 -5
- package/src/components/Alert/Alert.tsx +2 -0
- package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +35 -0
- package/src/deprecated/components/index.ts +1 -0
- package/src/deprecated/index.ts +1 -0
- package/src/next/components/index.ts +1 -0
- package/src/next/index.ts +1 -0
package/dist/umd/react-core.js
CHANGED
|
@@ -5072,7 +5072,7 @@
|
|
|
5072
5072
|
AlertVariant["default"] = "default";
|
|
5073
5073
|
})(exports.AlertVariant || (exports.AlertVariant = {}));
|
|
5074
5074
|
const Alert = (_a) => {
|
|
5075
|
-
var { variant = exports.AlertVariant.default, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${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 = () => { } } = _a, props = __rest$1(_a, ["variant", "isInline", "isPlain", "isLiveRegion", "variantLabel", "actionClose", "actionLinks", "title", "titleHeadingLevel", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave"]);
|
|
5075
|
+
var { variant = exports.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 = () => { } } = _a, props = __rest$1(_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"]);
|
|
5076
5076
|
const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
|
|
5077
5077
|
const getHeadingContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
5078
5078
|
React__namespace.createElement("span", { className: css(a11yStyles.screenReader) }, variantLabel),
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
return null;
|
|
5144
5144
|
}
|
|
5145
5145
|
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(styles$19.alertTitle, truncateTitle && styles$19.modifiers.truncate) }), getHeadingContent));
|
|
5146
|
-
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$19.alert, isInline && styles$19.modifiers.inline, isPlain && styles$19.modifiers.plain, isExpandable && styles$19.modifiers.expandable, isExpanded && styles$19.modifiers.expanded, styles$19.modifiers[variant], className) }, ouiaProps, (isLiveRegion && {
|
|
5146
|
+
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(styles$19.alert, isInline && styles$19.modifiers.inline, isPlain && styles$19.modifiers.plain, isExpandable && styles$19.modifiers.expandable, isExpanded && styles$19.modifiers.expanded, styles$19.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
5147
5147
|
'aria-live': 'polite',
|
|
5148
5148
|
'aria-atomic': 'false'
|
|
5149
5149
|
}), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
|