@bitrise/bitkit 12.71.5 → 12.71.7
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,13 +1,11 @@
|
|
|
1
|
-
import { Badge as ChakraBadge, BadgeProps as ChakraBadgeProps } from '@chakra-ui/react';
|
|
1
|
+
import { Badge as ChakraBadge, BadgeProps as ChakraBadgeProps, forwardRef } from '@chakra-ui/react';
|
|
2
2
|
|
|
3
3
|
export type BadgeProps = ChakraBadgeProps;
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Badges are used to highlight an item's status for quick recognition.
|
|
7
7
|
*/
|
|
8
|
-
const Badge = (props
|
|
9
|
-
return <ChakraBadge {...props} />;
|
|
10
|
-
};
|
|
8
|
+
const Badge = forwardRef<BadgeProps, 'span'>((props, ref) => <ChakraBadge {...props} ref={ref} />);
|
|
11
9
|
|
|
12
10
|
Badge.defaultProps = {
|
|
13
11
|
color: 'neutral.100',
|
|
@@ -2,7 +2,7 @@ import { rem } from '../../utils/utils';
|
|
|
2
2
|
import { TableProps } from './Table';
|
|
3
3
|
|
|
4
4
|
const Tabletheme = {
|
|
5
|
-
baseStyle: ({ disableRowHover }: TableProps) => {
|
|
5
|
+
baseStyle: ({ disableRowHover, isFixed }: TableProps) => {
|
|
6
6
|
return {
|
|
7
7
|
caption: {
|
|
8
8
|
textAlign: 'left',
|
|
@@ -26,6 +26,7 @@ const Tabletheme = {
|
|
|
26
26
|
borderColor: 'neutral.93',
|
|
27
27
|
width: '100%',
|
|
28
28
|
borderSpacing: 0,
|
|
29
|
+
tableLayout: isFixed ? 'fixed' : 'auto',
|
|
29
30
|
},
|
|
30
31
|
thead: {
|
|
31
32
|
backgroundColor: 'neutral.93',
|
|
@@ -10,15 +10,8 @@ export interface TableProps extends ChakraTableProps {
|
|
|
10
10
|
* Table component is used to organize and display data efficiently. It renders a `<table>` element.
|
|
11
11
|
*/
|
|
12
12
|
const Table = forwardRef<TableProps, 'table'>((props, ref) => {
|
|
13
|
-
const { isFixed, ...rest } = props;
|
|
14
|
-
|
|
15
|
-
const properties: ChakraTableProps = {
|
|
16
|
-
sx: {
|
|
17
|
-
tableLayout: isFixed ? 'fixed' : 'auto',
|
|
18
|
-
},
|
|
19
|
-
...rest,
|
|
20
|
-
};
|
|
21
|
-
return <ChakraTable {...properties} ref={ref} />;
|
|
13
|
+
const { disableRowHover, isFixed, ...rest } = props;
|
|
14
|
+
return <ChakraTable {...rest} ref={ref} />;
|
|
22
15
|
});
|
|
23
16
|
|
|
24
17
|
export default Table;
|