@bitrise/bitkit 12.71.4 → 12.71.5
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,96 +1,98 @@
|
|
|
1
|
-
import type { SystemStyleObject } from '@chakra-ui/theme-tools';
|
|
2
1
|
import { rem } from '../../utils/utils';
|
|
2
|
+
import { TableProps } from './Table';
|
|
3
3
|
|
|
4
|
-
const Tabletheme
|
|
5
|
-
baseStyle: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
captionTitle: {
|
|
11
|
-
fontSize: '4',
|
|
12
|
-
lineHeight: '1.75rem',
|
|
13
|
-
fontWeight: 'bold',
|
|
14
|
-
color: 'purple.10',
|
|
15
|
-
},
|
|
16
|
-
captionDescription: {
|
|
17
|
-
marginTop: '4',
|
|
18
|
-
color: 'neutral.30',
|
|
19
|
-
},
|
|
20
|
-
table: {
|
|
21
|
-
fontVariantNumeric: 'lining-nums tabular-nums',
|
|
22
|
-
borderCollapse: 'separate',
|
|
23
|
-
borderRadius: '4',
|
|
24
|
-
border: '1px solid',
|
|
25
|
-
borderColor: 'neutral.93',
|
|
26
|
-
width: '100%',
|
|
27
|
-
borderSpacing: 0,
|
|
28
|
-
},
|
|
29
|
-
thead: {
|
|
30
|
-
backgroundColor: 'neutral.93',
|
|
31
|
-
borderTopLeftRadius: '4',
|
|
32
|
-
borderTopRightRadius: '4',
|
|
33
|
-
},
|
|
34
|
-
th: {
|
|
35
|
-
paddingX: '16',
|
|
36
|
-
paddingY: '12',
|
|
37
|
-
fontWeight: 'bold',
|
|
38
|
-
textAlign: 'left',
|
|
39
|
-
whiteSpace: 'nowrap',
|
|
40
|
-
},
|
|
41
|
-
tooltipContainer: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
alignItems: 'center',
|
|
44
|
-
gap: 4,
|
|
45
|
-
},
|
|
46
|
-
sortButton: {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
gap: '8',
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
width: '100%',
|
|
51
|
-
paddingX: '16',
|
|
52
|
-
paddingY: '12',
|
|
53
|
-
fontWeight: 'bold',
|
|
54
|
-
textAlign: 'left',
|
|
55
|
-
_hover: {
|
|
56
|
-
backgroundColor: 'neutral.90',
|
|
4
|
+
const Tabletheme = {
|
|
5
|
+
baseStyle: ({ disableRowHover }: TableProps) => {
|
|
6
|
+
return {
|
|
7
|
+
caption: {
|
|
8
|
+
textAlign: 'left',
|
|
9
|
+
marginBottom: '24',
|
|
57
10
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
11
|
+
captionTitle: {
|
|
12
|
+
fontSize: '4',
|
|
13
|
+
lineHeight: '1.75rem',
|
|
14
|
+
fontWeight: 'bold',
|
|
15
|
+
color: 'purple.10',
|
|
62
16
|
},
|
|
63
|
-
|
|
64
|
-
|
|
17
|
+
captionDescription: {
|
|
18
|
+
marginTop: '4',
|
|
19
|
+
color: 'neutral.30',
|
|
65
20
|
},
|
|
66
|
-
|
|
67
|
-
|
|
21
|
+
table: {
|
|
22
|
+
fontVariantNumeric: 'lining-nums tabular-nums',
|
|
23
|
+
borderCollapse: 'separate',
|
|
24
|
+
borderRadius: '4',
|
|
25
|
+
border: '1px solid',
|
|
26
|
+
borderColor: 'neutral.93',
|
|
27
|
+
width: '100%',
|
|
28
|
+
borderSpacing: 0,
|
|
68
29
|
},
|
|
69
|
-
|
|
70
|
-
|
|
30
|
+
thead: {
|
|
31
|
+
backgroundColor: 'neutral.93',
|
|
32
|
+
borderTopLeftRadius: '4',
|
|
33
|
+
borderTopRightRadius: '4',
|
|
71
34
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
35
|
+
th: {
|
|
36
|
+
paddingX: '16',
|
|
37
|
+
paddingY: '12',
|
|
38
|
+
fontWeight: 'bold',
|
|
39
|
+
textAlign: 'left',
|
|
40
|
+
whiteSpace: 'nowrap',
|
|
41
|
+
},
|
|
42
|
+
tooltipContainer: {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
gap: 4,
|
|
46
|
+
},
|
|
47
|
+
sortButton: {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
gap: '8',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
width: '100%',
|
|
52
|
+
paddingX: '16',
|
|
53
|
+
paddingY: '12',
|
|
54
|
+
fontWeight: 'bold',
|
|
55
|
+
textAlign: 'left',
|
|
75
56
|
_hover: {
|
|
76
|
-
|
|
57
|
+
backgroundColor: 'neutral.90',
|
|
77
58
|
},
|
|
78
59
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
60
|
+
sortIcon: {
|
|
61
|
+
path: {
|
|
62
|
+
fill: 'neutral.80',
|
|
63
|
+
},
|
|
64
|
+
'[aria-sort="none"]:hover & path': {
|
|
65
|
+
fill: 'purple.10',
|
|
66
|
+
},
|
|
67
|
+
'[aria-sort="ascending"] & path:first-of-type': {
|
|
68
|
+
fill: 'purple.10',
|
|
69
|
+
},
|
|
70
|
+
'[aria-sort="descending"] & path:last-of-type': {
|
|
71
|
+
fill: 'purple.10',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
tbody: {
|
|
75
|
+
tr: {
|
|
76
|
+
_hover: {
|
|
77
|
+
td: { backgroundColor: !disableRowHover && 'neutral.95' },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
td: {
|
|
82
|
+
backgroundColor: 'neutral.100',
|
|
83
|
+
borderTop: '1px solid',
|
|
84
|
+
borderColor: 'neutral.93',
|
|
85
|
+
height: rem(65),
|
|
86
|
+
paddingX: '16',
|
|
87
|
+
paddingY: '8',
|
|
88
|
+
textAlign: 'left',
|
|
89
|
+
},
|
|
90
|
+
expandTd: {
|
|
91
|
+
borderBottomColor: 'transparent',
|
|
92
|
+
width: '1%',
|
|
93
|
+
paddingRight: 0,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
94
96
|
},
|
|
95
97
|
variants: {
|
|
96
98
|
borderless: {
|