@bitrise/bitkit 10.27.0 → 10.28.0

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": "10.27.0",
4
+ "version": "10.28.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -188,7 +188,7 @@ ExpandableRows.args = {
188
188
  <Thead>
189
189
  <Tr>
190
190
  <Th />
191
- <Th colSpan={2}>ID</Th>
191
+ <Th>ID</Th>
192
192
  <Th>Status</Th>
193
193
  <Th>Time</Th>
194
194
  </Tr>
@@ -60,7 +60,7 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
60
60
  <Td sx={css.expandTd}>
61
61
  <IconButton
62
62
  iconName="ChevronDown"
63
- aria-label="Toggle current row"
63
+ aria-label={isOpen ? 'Collapse row' : 'Expand row'}
64
64
  onClick={onToggleClick}
65
65
  size="small"
66
66
  variant="tertiary"
@@ -76,7 +76,9 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
76
76
  </ChakraTr>
77
77
  <ChakraTr>
78
78
  <Td colSpan={colSpan} paddingY="0" transform={isOpen ? 'none' : 'translateY(-1px)'}>
79
- <Collapse in={isOpen}>{expandableContent}</Collapse>
79
+ <Collapse in={isOpen} unmountOnExit>
80
+ {expandableContent}
81
+ </Collapse>
80
82
  </Td>
81
83
  </ChakraTr>
82
84
  </>