@patternfly/react-table 6.3.1-prerelease.14 → 6.3.1-prerelease.15

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.3.1-prerelease.14",
3
+ "version": "6.3.1-prerelease.15",
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": "d63615d0e82bd93d77b7883fbfafdeba6c7755eb"
54
+ "gitHead": "033c30aa9d81f49a07ca8503bac84858fe6a787e"
55
55
  }
@@ -1,4 +1,3 @@
1
- import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
2
1
  import { Button } from '@patternfly/react-core/dist/esm/components/Button';
3
2
 
4
3
  export interface FavoritesCellProps {
@@ -30,9 +29,10 @@ export const FavoritesCell: React.FunctionComponent<FavoritesCellProps> = ({
30
29
  type="button"
31
30
  aria-label={isFavorited ? 'Starred' : 'Not starred'}
32
31
  onClick={onFavorite}
32
+ isFavorite
33
+ isFavorited={isFavorited}
33
34
  {...ariaProps}
34
35
  {...props}
35
- icon={<StarIcon />}
36
36
  />
37
37
  );
38
38
  };
@@ -2,7 +2,6 @@ import { useState } from 'react';
2
2
  import LongArrowAltUpIcon from '@patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon';
3
3
  import LongArrowAltDownIcon from '@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon';
4
4
  import ArrowsAltVIcon from '@patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon';
5
- import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
6
5
  import { css } from '@patternfly/react-styles';
7
6
  import styles from '@patternfly/react-styles/css/components/Table/table';
8
7
  import { TableText } from './TableText';
@@ -50,10 +49,11 @@ export const SortColumn: React.FunctionComponent<SortColumnProps> = ({
50
49
  }
51
50
 
52
51
  if (favoriteButtonProps) {
52
+ const { favorited, ...rest } = favoriteButtonProps;
53
53
  return (
54
54
  <ActionList isIconList>
55
55
  <ActionListItem>
56
- <Button variant="plain" icon={<StarIcon />} {...favoriteButtonProps} />
56
+ <Button variant="plain" isFavorite isFavorited={favorited} {...rest} />
57
57
  </ActionListItem>
58
58
  <ActionListItem>
59
59
  <Button