@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/esm/components/Alert/Alert.js +2 -2
  4. package/dist/esm/components/Alert/Alert.js.map +1 -1
  5. package/dist/esm/deprecated/components/index.d.ts +2 -0
  6. package/dist/esm/deprecated/components/index.d.ts.map +1 -0
  7. package/dist/esm/deprecated/components/index.js +2 -0
  8. package/dist/esm/deprecated/components/index.js.map +1 -0
  9. package/dist/esm/deprecated/index.d.ts +2 -0
  10. package/dist/esm/deprecated/index.d.ts.map +1 -0
  11. package/dist/esm/deprecated/index.js +2 -0
  12. package/dist/esm/deprecated/index.js.map +1 -0
  13. package/dist/esm/next/components/index.d.ts +2 -0
  14. package/dist/esm/next/components/index.d.ts.map +1 -0
  15. package/dist/esm/next/components/index.js +2 -0
  16. package/dist/esm/next/components/index.js.map +1 -0
  17. package/dist/esm/next/index.d.ts +2 -0
  18. package/dist/esm/next/index.d.ts.map +1 -0
  19. package/dist/esm/next/index.js +2 -0
  20. package/dist/esm/next/index.js.map +1 -0
  21. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  22. package/dist/js/components/Alert/Alert.js +2 -2
  23. package/dist/js/components/Alert/Alert.js.map +1 -1
  24. package/dist/js/deprecated/components/index.d.ts +2 -0
  25. package/dist/js/deprecated/components/index.d.ts.map +1 -0
  26. package/dist/js/deprecated/components/index.js +5 -0
  27. package/dist/js/deprecated/components/index.js.map +1 -0
  28. package/dist/js/deprecated/index.d.ts +2 -0
  29. package/dist/js/deprecated/index.d.ts.map +1 -0
  30. package/dist/js/deprecated/index.js +5 -0
  31. package/dist/js/deprecated/index.js.map +1 -0
  32. package/dist/js/next/components/index.d.ts +2 -0
  33. package/dist/js/next/components/index.d.ts.map +1 -0
  34. package/dist/js/next/components/index.js +5 -0
  35. package/dist/js/next/components/index.js.map +1 -0
  36. package/dist/js/next/index.d.ts +2 -0
  37. package/dist/js/next/index.d.ts.map +1 -0
  38. package/dist/js/next/index.js +5 -0
  39. package/dist/js/next/index.js.map +1 -0
  40. package/dist/umd/react-core.css +404 -404
  41. package/dist/umd/react-core.js +2 -2
  42. package/dist/umd/react-core.min.js +1 -1
  43. package/package.json +21 -5
  44. package/src/components/Alert/Alert.tsx +2 -0
  45. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +35 -0
  46. package/src/deprecated/components/index.ts +1 -0
  47. package/src/deprecated/index.ts +1 -0
  48. package/src/next/components/index.ts +1 -0
  49. package/src/next/index.ts +1 -0
@@ -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),