@patternfly/react-table 6.6.1-prerelease.5 → 6.6.1-prerelease.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-table",
3
- "version": "6.6.1-prerelease.5",
3
+ "version": "6.6.1-prerelease.6",
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",
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18 || ^19",
52
52
  "react-dom": "^17 || ^18 || ^19"
53
53
  },
54
- "gitHead": "1fe30b1dc78a10ff784587cf7ce03d96125fbfb7"
54
+ "gitHead": "94fe4bb22f4fe7e6a8421a4abc9aaf8f53f6800e"
55
55
  }
@@ -35,49 +35,47 @@ const EditButtonsCell: React.FunctionComponent<EditButtonsCellProps> = ({
35
35
 
36
36
  return (
37
37
  <>
38
- <Td
39
- dataLabel="Save and cancel buttons"
40
- className={css(
41
- inlineEditStyles.inlineEditGroup,
42
- inlineEditStyles.modifiers.iconGroup,
43
- inlineEditStyles.modifiers.actionGroup
44
- )}
45
- >
46
- <div className={css(inlineEditStyles.inlineEditAction, inlineEditStyles.modifiers.valid)}>
47
- <Button
48
- aria-label={`Save edits of ${rowAriaLabel}`}
49
- onClick={() => onClick('save')}
50
- onKeyDown={(event) => onKeyDown(event, 'stopEditing')}
51
- variant="plain"
52
- >
53
- <RhMicronsCheckmarkIcon />
54
- </Button>
38
+ <Td dataLabel="Edit row data" hasAction>
39
+ <div
40
+ className={css(
41
+ inlineEditStyles.inlineEditGroup,
42
+ inlineEditStyles.modifiers.iconGroup,
43
+ inlineEditStyles.modifiers.actionGroup
44
+ )}
45
+ >
46
+ <div className={css(inlineEditStyles.inlineEditAction, inlineEditStyles.modifiers.valid)}>
47
+ <Button
48
+ aria-label={`Save edits of ${rowAriaLabel}`}
49
+ onClick={() => onClick('save')}
50
+ onKeyDown={(event) => onKeyDown(event, 'stopEditing')}
51
+ variant="plain"
52
+ >
53
+ <RhMicronsCheckmarkIcon />
54
+ </Button>
55
+ </div>
56
+ <div className={css(inlineEditStyles.inlineEditAction)}>
57
+ <Button
58
+ aria-label={`Discard edits of ${rowAriaLabel}`}
59
+ onClick={() => onClick('cancel')}
60
+ onKeyDown={(event) => onKeyDown(event, 'stopEditing')}
61
+ variant="plain"
62
+ >
63
+ <RhMicronsCloseIcon />
64
+ </Button>
65
+ </div>
55
66
  </div>
56
- <div className={css(inlineEditStyles.inlineEditAction)}>
67
+ <div className={css(inlineEditStyles.inlineEditAction, inlineEditStyles.modifiers.enableEditable)}>
57
68
  <Button
58
- aria-label={`Discard edits of ${rowAriaLabel}`}
59
- onClick={() => onClick('cancel')}
60
- onKeyDown={(event) => onKeyDown(event, 'stopEditing')}
69
+ ref={editButtonRef}
70
+ aria-label={`Edit ${rowAriaLabel}`}
71
+ onClick={() => onClick('edit')}
72
+ onKeyDown={(event) => onKeyDown(event, 'edit')}
61
73
  variant="plain"
62
74
  >
63
- <RhMicronsCloseIcon />
75
+ <RhUiEditFillIcon />
64
76
  </Button>
65
77
  </div>
66
78
  </Td>
67
- <Td
68
- dataLabel="Edit button"
69
- className={css(inlineEditStyles.inlineEditAction, inlineEditStyles.modifiers.enableEditable)}
70
- >
71
- <Button
72
- ref={editButtonRef}
73
- aria-label={`Edit ${rowAriaLabel}`}
74
- onClick={() => onClick('edit')}
75
- onKeyDown={(event) => onKeyDown(event, 'edit')}
76
- variant="plain"
77
- >
78
- <RhUiEditFillIcon />
79
- </Button>
80
- </Td>
81
79
  </>
82
80
  );
83
81
  };