@patternfly/react-table 5.0.0-alpha.33 → 5.0.0-alpha.34

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-table",
3
- "version": "5.0.0-alpha.33",
3
+ "version": "5.0.0-alpha.34",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -39,7 +39,7 @@
39
39
  "subpaths": "node scripts/copySubpaths.js"
40
40
  },
41
41
  "dependencies": {
42
- "@patternfly/react-core": "^5.0.0-alpha.33",
42
+ "@patternfly/react-core": "^5.0.0-alpha.34",
43
43
  "@patternfly/react-icons": "^5.0.0-alpha.4",
44
44
  "@patternfly/react-styles": "^5.0.0-alpha.4",
45
45
  "@patternfly/react-tokens": "^5.0.0-alpha.4",
@@ -54,5 +54,5 @@
54
54
  "react": "^16.8 || ^17 || ^18",
55
55
  "react-dom": "^16.8 || ^17 || ^18"
56
56
  },
57
- "gitHead": "5d285a4ff66639a3bd8fcc4ecb1677c3847985a6"
57
+ "gitHead": "9a3ab7a6248885619173e33a938ce22749be6c2b"
58
58
  }
@@ -37,8 +37,7 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
37
37
  actionsToggle,
38
38
  popperProps = {
39
39
  position: 'right',
40
- direction: 'down',
41
- popperMatchesTriggerWidth: false
40
+ direction: 'down'
42
41
  },
43
42
  ...props
44
43
  }: ActionsColumnProps) => {
@@ -65,12 +64,12 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
65
64
  return (
66
65
  <React.Fragment>
67
66
  {items
68
- .filter(item => item.isOutsideDropdown)
67
+ .filter((item) => item.isOutsideDropdown)
69
68
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
70
69
  .map(({ title, itemKey, onClick, isOutsideDropdown, ...props }, key) =>
71
70
  typeof title === 'string' ? (
72
71
  <Button
73
- onClick={event => onActionClick(event, onClick)}
72
+ onClick={(event) => onActionClick(event, onClick)}
74
73
  {...(props as any)}
75
74
  isDisabled={isDisabled}
76
75
  key={itemKey || `outside_dropdown_${key}`}
@@ -85,8 +84,8 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
85
84
 
86
85
  <Dropdown
87
86
  isOpen={isOpen}
88
- onOpenChange={isOpen => setIsOpen(isOpen)}
89
- toggle={toggleRef =>
87
+ onOpenChange={(isOpen) => setIsOpen(isOpen)}
88
+ toggle={(toggleRef) =>
90
89
  actionsToggle ? (
91
90
  actionsToggle({ onToggle, isOpen, isDisabled, toggleRef })
92
91
  ) : (
@@ -108,13 +107,13 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
108
107
  >
109
108
  <DropdownList>
110
109
  {items
111
- .filter(item => !item.isOutsideDropdown)
110
+ .filter((item) => !item.isOutsideDropdown)
112
111
  .map(({ title, itemKey, onClick, isSeparator, ...props }, key) =>
113
112
  isSeparator ? (
114
113
  <Divider key={itemKey || key} data-key={itemKey || key} />
115
114
  ) : (
116
115
  <DropdownItem
117
- onClick={event => {
116
+ onClick={(event) => {
118
117
  onActionClick(event, onClick);
119
118
  onToggle();
120
119
  }}