@patternfly/react-core 4.273.0 → 4.273.1

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.273.0",
3
+ "version": "4.273.1",
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",
@@ -45,16 +45,16 @@
45
45
  "subpaths": "node scripts/copySubpaths.js"
46
46
  },
47
47
  "dependencies": {
48
- "@patternfly/react-icons": "^4.93.3",
49
- "@patternfly/react-styles": "^4.92.3",
50
- "@patternfly/react-tokens": "^4.94.3",
48
+ "@patternfly/react-icons": "^4.93.4",
49
+ "@patternfly/react-styles": "^4.92.4",
50
+ "@patternfly/react-tokens": "^4.94.4",
51
51
  "focus-trap": "6.9.2",
52
52
  "react-dropzone": "9.0.0",
53
53
  "tippy.js": "5.1.2",
54
54
  "tslib": "^2.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@patternfly/patternfly": "4.222.4",
57
+ "@patternfly/patternfly": "4.224.0",
58
58
  "@rollup/plugin-commonjs": "^21.0.0",
59
59
  "@rollup/plugin-node-resolve": "^15.0.1",
60
60
  "@rollup/plugin-replace": "^3.0.0",
@@ -71,5 +71,5 @@
71
71
  "react": "^16.8 || ^17 || ^18",
72
72
  "react-dom": "^16.8 || ^17 || ^18"
73
73
  },
74
- "gitHead": "f456ccbaa54574c5e7e52222a0f766d893a9c325"
74
+ "gitHead": "90e75e7a9051bbb604234a705b3ecbcecbdf22ea"
75
75
  }
@@ -11,8 +11,6 @@ export interface TabActionProps extends Omit<React.HTMLProps<HTMLButtonElement>,
11
11
  className?: string;
12
12
  /** Click callback for tab action button */
13
13
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
14
- /** Flag indicating if the tab action is a help action */
15
- isHelpAction?: boolean;
16
14
  /** Flag indicating if the tab action is disabled */
17
15
  isDisabled?: boolean;
18
16
  /** Accessible label for the tab action */
@@ -25,7 +23,6 @@ const TabActionBase: React.FunctionComponent<TabActionProps> = ({
25
23
  children,
26
24
  className,
27
25
  onClick,
28
- isHelpAction,
29
26
  isDisabled,
30
27
  'aria-label': ariaLabel = 'Tab action',
31
28
  innerRef,
@@ -34,7 +31,7 @@ const TabActionBase: React.FunctionComponent<TabActionProps> = ({
34
31
  ouiaSafe,
35
32
  ...props
36
33
  }: TabActionProps) => (
37
- <span className={css(styles.tabsItemAction, isHelpAction && styles.modifiers.help, className)}>
34
+ <span className={css(styles.tabsItemAction, className)}>
38
35
  <Button
39
36
  ref={innerRef}
40
37
  type="button"
@@ -2,7 +2,7 @@
2
2
  id: Tabs
3
3
  section: components
4
4
  cssPrefix: pf-c-tabs
5
- propComponents: ['Tabs', 'Tab', 'TabContent', 'TabTitleText', 'TabTitleIcon', 'horizontalOverflowObject']
5
+ propComponents: ['Tabs', 'Tab', TabAction, 'TabContent', 'TabTitleText', 'TabTitleIcon', 'horizontalOverflowObject']
6
6
  ouia: true
7
7
  ---
8
8
 
@@ -41,7 +41,6 @@ export const TabsHelp: React.FunctionComponent = () => {
41
41
  actions={
42
42
  <>
43
43
  <TabAction
44
- isHelpAction
45
44
  aria-label={`Help action for ${tab}`}
46
45
  ref={ref}
47
46
  {...(tab === 'Help disabled' && { isDisabled: true })}
@@ -65,7 +65,7 @@ export const TabsHelpAndClose: React.FunctionComponent = () => {
65
65
  title={<TabTitleText>{tab}</TabTitleText>}
66
66
  actions={
67
67
  <>
68
- <TabAction isHelpAction aria-label={`Help for ${tab}`} ref={ref}>
68
+ <TabAction aria-label={`Help for ${tab}`} ref={ref}>
69
69
  <HelpIcon />
70
70
  </TabAction>
71
71
  <TabAction aria-label={`Close ${tab}`} onClick={e => onClose(e, index)} isDisabled={tabs.length === 1}>