@patternfly/react-core 4.175.8 → 4.175.9
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 +8 -0
- package/dist/esm/components/Alert/Alert.d.ts +2 -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/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +1 -1
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarContent.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
- package/dist/js/components/Alert/Alert.d.ts +2 -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/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/js/components/Select/Select.js +1 -1
- package/dist/js/components/Select/Select.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarContent.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +1 -1
- package/dist/umd/react-core.js +3 -3
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Alert/Alert.tsx +5 -2
- package/src/components/Alert/__tests__/Alert.test.tsx +9 -0
- package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +370 -40
- package/src/components/Alert/examples/Alert.md +2 -1
- package/src/components/FileUpload/FileUpload.tsx +1 -1
- package/src/components/Select/Select.tsx +1 -1
- package/src/components/Toolbar/ToolbarContent.tsx +1 -1
- package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/ToolbarToggleGroup.tsx +1 -1
|
@@ -10,7 +10,7 @@ export interface ToolbarContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
10
10
|
xl?: 'hidden' | 'visible';
|
|
11
11
|
'2xl'?: 'hidden' | 'visible';
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/** @deprecated prop misspelled */
|
|
14
14
|
visiblity?: {
|
|
15
15
|
default?: 'hidden' | 'visible';
|
|
16
16
|
md?: 'hidden' | 'visible';
|
|
@@ -17,7 +17,7 @@ export interface ToolbarGroupProps extends Omit<React.HTMLProps<HTMLDivElement>,
|
|
|
17
17
|
xl?: 'hidden' | 'visible';
|
|
18
18
|
'2xl'?: 'hidden' | 'visible';
|
|
19
19
|
};
|
|
20
|
-
/**
|
|
20
|
+
/** @deprecated prop misspelled */
|
|
21
21
|
visiblity?: {
|
|
22
22
|
default?: 'hidden' | 'visible';
|
|
23
23
|
md?: 'hidden' | 'visible';
|
|
@@ -22,7 +22,7 @@ export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
22
22
|
xl?: 'hidden' | 'visible';
|
|
23
23
|
'2xl'?: 'hidden' | 'visible';
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
25
|
+
/** @deprecated prop misspelled */
|
|
26
26
|
visiblity?: {
|
|
27
27
|
default?: 'hidden' | 'visible';
|
|
28
28
|
md?: 'hidden' | 'visible';
|
|
@@ -13,7 +13,7 @@ export interface ToolbarToggleGroupProps extends ToolbarGroupProps {
|
|
|
13
13
|
xl?: 'hidden' | 'visible';
|
|
14
14
|
'2xl'?: 'hidden' | 'visible';
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
16
|
+
/** @deprecated prop misspelled */
|
|
17
17
|
visiblity?: {
|
|
18
18
|
default?: 'hidden' | 'visible';
|
|
19
19
|
md?: 'hidden' | 'visible';
|
package/dist/umd/react-core.js
CHANGED
|
@@ -4250,7 +4250,7 @@
|
|
|
4250
4250
|
AlertVariant["default"] = "default";
|
|
4251
4251
|
})(exports.AlertVariant || (exports.AlertVariant = {}));
|
|
4252
4252
|
const Alert = (_a) => {
|
|
4253
|
-
var { variant = exports.AlertVariant.default, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${capitalize(variant)} alert:`, 'aria-label': ariaLabel = `${capitalize(variant)} Alert`, actionClose, actionLinks, title, 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", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave"]);
|
|
4253
|
+
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"]);
|
|
4254
4254
|
const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
|
|
4255
4255
|
const getHeadingContent = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4256
4256
|
React__namespace.createElement("span", { className: css(_default$1f.screenReader) }, variantLabel),
|
|
@@ -4320,7 +4320,7 @@
|
|
|
4320
4320
|
if (dismissed) {
|
|
4321
4321
|
return null;
|
|
4322
4322
|
}
|
|
4323
|
-
const Title = (React__namespace.createElement(
|
|
4323
|
+
const Title = (React__namespace.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: css(_default$1g.alertTitle, truncateTitle && _default$1g.modifiers.truncate) }), getHeadingContent));
|
|
4324
4324
|
return (React__namespace.createElement("div", Object.assign({ ref: divRef, className: css(_default$1g.alert, isInline && _default$1g.modifiers.inline, isPlain && _default$1g.modifiers.plain, isExpandable && _default$1g.modifiers.expandable, isExpanded && _default$1g.modifiers.expanded, _default$1g.modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
|
|
4325
4325
|
'aria-live': 'polite',
|
|
4326
4326
|
'aria-atomic': 'false'
|
|
@@ -6774,7 +6774,7 @@
|
|
|
6774
6774
|
typeaheadFilteredChildren =
|
|
6775
6775
|
typeaheadInputValue.toString() !== ''
|
|
6776
6776
|
? React__namespace.Children.map(children, group => {
|
|
6777
|
-
if (group.type === SelectGroup) {
|
|
6777
|
+
if (React__namespace.isValidElement(group) && group.type === SelectGroup) {
|
|
6778
6778
|
const filteredGroupChildren = React__namespace.Children.toArray(group.props.children).filter(childFilter);
|
|
6779
6779
|
if (filteredGroupChildren.length > 0) {
|
|
6780
6780
|
return React__namespace.cloneElement(group, {
|