@patternfly/react-core 4.208.3 → 4.208.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.208.3",
3
+ "version": "4.208.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.59.3",
38
- "@patternfly/react-styles": "^4.58.3",
39
- "@patternfly/react-tokens": "^4.60.3",
37
+ "@patternfly/react-icons": "^4.59.6",
38
+ "@patternfly/react-styles": "^4.58.6",
39
+ "@patternfly/react-tokens": "^4.60.6",
40
40
  "focus-trap": "6.2.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": "30d9c6403ae0d3660eb0389fcae95e6e72a41d9e"
63
+ "gitHead": "35f7c3e0f7efd0b45a2659f80268b463f3e0a8d4"
64
64
  }
@@ -3,6 +3,7 @@ import styles from '@patternfly/react-styles/css/components/ClipboardCopy/clipbo
3
3
  import { css } from '@patternfly/react-styles';
4
4
  import { PickOptional } from '../../helpers/typeUtils';
5
5
  import { PopoverPosition } from '../Popover';
6
+ import { TooltipPosition } from '../Tooltip';
6
7
  import { TextInput } from '../TextInput';
7
8
  import { GenerateId } from '../../helpers/GenerateId/GenerateId';
8
9
  import { ClipboardCopyButton } from './ClipboardCopyButton';
@@ -55,6 +56,7 @@ export interface ClipboardCopyProps extends Omit<React.HTMLProps<HTMLDivElement>
55
56
  /** Copy button popover position. */
56
57
  position?:
57
58
  | PopoverPosition
59
+ | TooltipPosition
58
60
  | 'auto'
59
61
  | 'top'
60
62
  | 'bottom'
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
3
3
  import { Button } from '../Button';
4
4
  import { Tooltip, TooltipPosition } from '../Tooltip';
5
+ import { PopoverPosition } from '../Popover';
5
6
 
6
7
  export interface ClipboardCopyButtonProps
7
8
  extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'ref'> {
@@ -24,6 +25,7 @@ export interface ClipboardCopyButtonProps
24
25
  /** Position of the copy button tooltip */
25
26
  position?:
26
27
  | TooltipPosition
28
+ | PopoverPosition
27
29
  | 'auto'
28
30
  | 'top'
29
31
  | 'bottom'
@@ -425,9 +425,9 @@ export class Tabs extends React.Component<TabsProps, TabsState> {
425
425
  !(unmountOnExit && child.props.eventKey !== localActiveKey) &&
426
426
  !(mountOnEnter && shownKeys.indexOf(child.props.eventKey) === -1)
427
427
  )
428
- .map((child, index) => (
428
+ .map(child => (
429
429
  <TabContent
430
- key={index}
430
+ key={child.props.eventKey}
431
431
  activeKey={localActiveKey}
432
432
  child={child}
433
433
  id={child.props.id || uniqueId}