@bitrise/bitkit 12.52.3 → 12.52.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.52.3",
4
+ "version": "12.52.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -78,6 +78,9 @@ const Tabletheme: SystemStyleObject = {
78
78
  paddingX: '16',
79
79
  paddingY: '8',
80
80
  textAlign: 'left',
81
+ _groupHover: {
82
+ backgroundColor: 'neutral.95',
83
+ },
81
84
  },
82
85
  expandTd: {
83
86
  borderBottomColor: 'transparent',
@@ -24,10 +24,10 @@ type ExpandableProps = ChakraTableRowProps & {
24
24
  onExpandedChanged?(isExpanded: boolean): void;
25
25
  };
26
26
 
27
- export type TableRowProps = RowProps & (NonExpandableProps | ExpandableProps);
27
+ export type TableRowProps = RowProps & (NonExpandableProps | ExpandableProps) & { visualHover?: boolean };
28
28
 
29
29
  const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
30
- const { children, defaultIsExpanded, onExpandedChanged, expandableContent, onClick, ...rest } = props;
30
+ const { children, defaultIsExpanded, onExpandedChanged, expandableContent, onClick, visualHover, ...rest } = props;
31
31
 
32
32
  const { isOpen, onToggle } = useDisclosure({ defaultIsOpen: defaultIsExpanded });
33
33
  const css = useTableStyles();
@@ -46,7 +46,7 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
46
46
  const colSpan = Children.count(children) + 1;
47
47
  return (
48
48
  <>
49
- <ChakraTr {...properties} ref={ref}>
49
+ <ChakraTr role={visualHover ? 'group' : undefined} {...properties} ref={ref}>
50
50
  <Td sx={css.expandTd}>
51
51
  <TableIconButton
52
52
  iconName="ChevronDown"
@@ -80,7 +80,7 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
80
80
  );
81
81
  }
82
82
  return (
83
- <ChakraTr {...properties} ref={ref}>
83
+ <ChakraTr role={visualHover ? 'group' : undefined} {...properties} ref={ref}>
84
84
  {children}
85
85
  </ChakraTr>
86
86
  );