@patternfly/react-core 4.225.5 → 4.225.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.225.5",
3
+ "version": "4.225.6",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,9 +34,9 @@
34
34
  "generate": "node scripts/copyStyles.js"
35
35
  },
36
36
  "dependencies": {
37
- "@patternfly/react-icons": "^4.76.5",
38
- "@patternfly/react-styles": "^4.75.5",
39
- "@patternfly/react-tokens": "^4.77.5",
37
+ "@patternfly/react-icons": "^4.76.6",
38
+ "@patternfly/react-styles": "^4.75.6",
39
+ "@patternfly/react-tokens": "^4.77.6",
40
40
  "focus-trap": "6.9.2",
41
41
  "react-dropzone": "9.0.0",
42
42
  "tippy.js": "5.1.2",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.8.0 || ^17.0.0",
61
61
  "react-dom": "^16.8.0 || ^17.0.0"
62
62
  },
63
- "gitHead": "0e9a76133e3b0be7462d4eb0dbb34c28bbf21f3c"
63
+ "gitHead": "aa02779944d6c295b717d656d9dcea638c35a11c"
64
64
  }
@@ -15,23 +15,19 @@ export const ButtonProgress: React.FunctionComponent = () => {
15
15
  const [isUploading, setIsUploading] = React.useState<boolean>(false);
16
16
 
17
17
  const primaryLoadingProps = {} as LoadingPropsType;
18
- if (isPrimaryLoading) {
19
- primaryLoadingProps.spinnerAriaValueText = 'Loading';
20
- primaryLoadingProps.spinnerAriaLabelledBy = 'primary-loading-button';
21
- primaryLoadingProps.isLoading = true;
22
- }
18
+ primaryLoadingProps.spinnerAriaValueText = 'Loading';
19
+ primaryLoadingProps.spinnerAriaLabelledBy = 'primary-loading-button';
20
+ primaryLoadingProps.isLoading = isPrimaryLoading;
21
+
23
22
  const secondaryLoadingProps = {} as LoadingPropsType;
24
- if (isSecondaryLoading) {
25
- secondaryLoadingProps.spinnerAriaValueText = 'Loading';
26
- secondaryLoadingProps.spinnerAriaLabel = 'Content being loaded';
27
- secondaryLoadingProps.isLoading = true;
28
- }
23
+ secondaryLoadingProps.spinnerAriaValueText = 'Loading';
24
+ secondaryLoadingProps.spinnerAriaLabel = 'Content being loaded';
25
+ secondaryLoadingProps.isLoading = isSecondaryLoading;
26
+
29
27
  const uploadingProps = {} as LoadingPropsType;
30
- if (isUploading) {
31
- uploadingProps.spinnerAriaValueText = 'Loading';
32
- uploadingProps.isLoading = true;
33
- uploadingProps.spinnerAriaLabel = 'Uploading data';
34
- }
28
+ uploadingProps.spinnerAriaValueText = 'Loading';
29
+ uploadingProps.spinnerAriaLabel = 'Uploading data';
30
+ uploadingProps.isLoading = isUploading;
35
31
 
36
32
  return (
37
33
  <React.Fragment>
@@ -53,8 +49,6 @@ export const ButtonProgress: React.FunctionComponent = () => {
53
49
  icon={<UploadIcon />}
54
50
  {...uploadingProps}
55
51
  />
56
- <br />
57
- <br />
58
52
  </React.Fragment>
59
53
  );
60
54
  };
@@ -27,7 +27,7 @@ export interface DropdownItemProps extends InternalDropdownItemProps, OUIAProps
27
27
  isAriaDisabled?: boolean;
28
28
  /** Render dropdown item as non-interactive item */
29
29
  isPlainText?: boolean;
30
- /** Forces display of the hover state of the element */
30
+ /** @deprecated Forces display of the hover state of the element */
31
31
  isHovered?: boolean;
32
32
  /** Default hyperlink location */
33
33
  href?: string;
@@ -56,7 +56,6 @@ export const DropdownItem: React.FunctionComponent<DropdownItemProps> = ({
56
56
  isDisabled = false,
57
57
  isAriaDisabled = false,
58
58
  isPlainText = false,
59
- isHovered = false,
60
59
  href,
61
60
  tooltip,
62
61
  tooltipProps = {},
@@ -88,7 +87,6 @@ export const DropdownItem: React.FunctionComponent<DropdownItemProps> = ({
88
87
  isDisabled={isDisabled}
89
88
  isAriaDisabled={isAriaDisabled}
90
89
  isPlainText={isPlainText}
91
- isHovered={isHovered}
92
90
  href={href}
93
91
  tooltip={tooltip}
94
92
  tooltipProps={tooltipProps}
@@ -25,8 +25,6 @@ export interface InternalDropdownItemProps extends React.HTMLProps<HTMLAnchorEle
25
25
  isAriaDisabled?: boolean;
26
26
  /** Render dropdown item as a non-interactive item */
27
27
  isPlainText?: boolean;
28
- /** Forces display of the hover state of the element */
29
- isHovered?: boolean;
30
28
  /** Default hyperlink location */
31
29
  href?: string;
32
30
  /** Tooltip to display when hovered over the item */
@@ -67,7 +65,6 @@ export class InternalDropdownItem extends React.Component<InternalDropdownItemPr
67
65
 
68
66
  static defaultProps: InternalDropdownItemProps = {
69
67
  className: '',
70
- isHovered: false,
71
68
  component: 'a',
72
69
  role: 'none',
73
70
  isDisabled: false,
@@ -163,7 +160,6 @@ export class InternalDropdownItem extends React.Component<InternalDropdownItemPr
163
160
  const {
164
161
  className,
165
162
  children,
166
- isHovered,
167
163
  context,
168
164
  onClick,
169
165
  component,