@patternfly/react-core 4.175.8 → 4.175.12
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 +35 -0
- package/dist/esm/components/ActionList/ActionList.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionList.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionList.js +2 -2
- package/dist/esm/components/ActionList/ActionList.js.map +1 -1
- package/dist/esm/components/ActionList/ActionListGroup.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionListGroup.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionListGroup.js +2 -2
- package/dist/esm/components/ActionList/ActionListGroup.js.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.js +3 -2
- package/dist/esm/components/ActionList/ActionListItem.js.map +1 -1
- 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/ActionList/ActionList.d.ts +2 -0
- package/dist/js/components/ActionList/ActionList.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionList.js +2 -2
- package/dist/js/components/ActionList/ActionList.js.map +1 -1
- package/dist/js/components/ActionList/ActionListGroup.d.ts +2 -0
- package/dist/js/components/ActionList/ActionListGroup.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionListGroup.js +2 -2
- package/dist/js/components/ActionList/ActionListGroup.js.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.d.ts +2 -0
- package/dist/js/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.js +3 -2
- package/dist/js/components/ActionList/ActionListItem.js.map +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.css +4 -2
- package/dist/umd/react-core.js +9 -9
- package/dist/umd/react-core.min.css +4 -2
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/ActionList/ActionList.tsx +4 -1
- package/src/components/ActionList/ActionListGroup.tsx +4 -1
- package/src/components/ActionList/ActionListItem.tsx +5 -1
- 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
|
@@ -75,7 +75,8 @@ class AlertVariations extends React.Component {
|
|
|
75
75
|
}
|
|
76
76
|
/>
|
|
77
77
|
<Alert variant="success" title="Success alert title" actionClose={<AlertActionCloseButton onClose={() => alert('Clicked the close button')} />} />
|
|
78
|
-
<Alert variant="success" title="Success alert title" />
|
|
78
|
+
<Alert variant="success" title="h1 Success alert title" titleHeadingLevel="h1" />
|
|
79
|
+
<Alert variant="success" title="h6 Success alert title" titleHeadingLevel="h6" />
|
|
79
80
|
</React.Fragment>
|
|
80
81
|
);
|
|
81
82
|
}
|
|
@@ -23,7 +23,7 @@ export interface FileUploadProps
|
|
|
23
23
|
value?: string | File;
|
|
24
24
|
/** Value to be shown in the read-only filename field. */
|
|
25
25
|
filename?: string;
|
|
26
|
-
/**
|
|
26
|
+
/** @deprecated A callback for when the file contents change. Please instead use onFileInputChange, onTextChange, onDataChange, onClearClick individually. */
|
|
27
27
|
onChange?: (
|
|
28
28
|
value: string | File,
|
|
29
29
|
filename: string,
|
|
@@ -381,7 +381,7 @@ export class Select extends React.Component<SelectProps & OUIAProps, SelectState
|
|
|
381
381
|
typeaheadFilteredChildren =
|
|
382
382
|
typeaheadInputValue.toString() !== ''
|
|
383
383
|
? React.Children.map(children, group => {
|
|
384
|
-
if (group.type === SelectGroup) {
|
|
384
|
+
if (React.isValidElement(group) && group.type === SelectGroup) {
|
|
385
385
|
const filteredGroupChildren = (React.Children.toArray(group.props.children) as React.ReactElement<
|
|
386
386
|
SelectGroupProps
|
|
387
387
|
>[]).filter(childFilter);
|
|
@@ -16,7 +16,7 @@ export interface ToolbarContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
16
16
|
xl?: 'hidden' | 'visible';
|
|
17
17
|
'2xl'?: 'hidden' | 'visible';
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
19
|
+
/** @deprecated prop misspelled */
|
|
20
20
|
visiblity?: {
|
|
21
21
|
default?: 'hidden' | 'visible';
|
|
22
22
|
md?: 'hidden' | 'visible';
|
|
@@ -22,7 +22,7 @@ export interface ToolbarGroupProps extends Omit<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';
|
|
@@ -38,7 +38,7 @@ export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
38
38
|
xl?: 'hidden' | 'visible';
|
|
39
39
|
'2xl'?: 'hidden' | 'visible';
|
|
40
40
|
};
|
|
41
|
-
/**
|
|
41
|
+
/** @deprecated prop misspelled */
|
|
42
42
|
visiblity?: {
|
|
43
43
|
default?: 'hidden' | 'visible';
|
|
44
44
|
md?: 'hidden' | 'visible';
|
|
@@ -21,7 +21,7 @@ export interface ToolbarToggleGroupProps extends ToolbarGroupProps {
|
|
|
21
21
|
xl?: 'hidden' | 'visible';
|
|
22
22
|
'2xl'?: 'hidden' | 'visible';
|
|
23
23
|
};
|
|
24
|
-
/**
|
|
24
|
+
/** @deprecated prop misspelled */
|
|
25
25
|
visiblity?: {
|
|
26
26
|
default?: 'hidden' | 'visible';
|
|
27
27
|
md?: 'hidden' | 'visible';
|