@bitrise/bitkit 12.71.2 → 12.71.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.71.2",
4
+ "version": "12.71.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -12,18 +12,17 @@ const BreadcrumbTheme: SystemStyleObject = {
12
12
  },
13
13
  },
14
14
  link: {
15
- display: 'flex',
16
- alignItems: 'center',
17
- gap: '8',
18
15
  whiteSpace: 'nowrap',
19
- minWidth: 0,
16
+ overflow: 'hidden',
17
+ textOverflow: 'ellipsis',
18
+ color: 'purple.50',
20
19
  _activeLink: {
21
20
  color: 'neutral.10',
21
+ _hover: {
22
+ textDecoration: 'none',
23
+ },
22
24
  },
23
- },
24
- linkText: {
25
- color: 'purple.50',
26
- _groupHover: {
25
+ _hover: {
27
26
  textDecoration: 'underline',
28
27
  },
29
28
  },
@@ -2,36 +2,12 @@ import {
2
2
  BreadcrumbLink as ChakraBreadcrumbLink,
3
3
  BreadcrumbLinkProps as ChakraBreadcrumbLinkProps,
4
4
  forwardRef,
5
- useMultiStyleConfig,
6
5
  } from '@chakra-ui/react';
7
- import Avatar from '../Avatar/Avatar';
8
- import { useResponsive } from '../../hooks';
9
- import Text from '../Text/Text';
10
6
 
11
- export interface BreadcrumbLinkProps extends ChakraBreadcrumbLinkProps {
12
- avatarName?: string;
13
- avatarUrl?: string;
14
- }
7
+ export type BreadcrumbLinkProps = ChakraBreadcrumbLinkProps;
15
8
 
16
9
  const BreadcrumbLink = forwardRef<BreadcrumbLinkProps, 'a'>((props, ref) => {
17
- const { avatarName, avatarUrl, children, isCurrentPage, ...rest } = props;
18
- const { isMobile } = useResponsive();
19
-
20
- const properties: ChakraBreadcrumbLinkProps = {
21
- isCurrentPage,
22
- ...rest,
23
- };
24
- const style = useMultiStyleConfig('Breadcrumb');
25
- return (
26
- <ChakraBreadcrumbLink {...properties} role="group" ref={ref}>
27
- {!isMobile && (avatarName || avatarUrl) && (
28
- <Avatar name={avatarName || children?.toString()} src={avatarUrl} borderRadius="4" />
29
- )}
30
- <Text as="span" hasEllipsis sx={isCurrentPage ? undefined : style.linkText}>
31
- {children}
32
- </Text>
33
- </ChakraBreadcrumbLink>
34
- );
10
+ return <ChakraBreadcrumbLink {...props} ref={ref} />;
35
11
  });
36
12
 
37
13
  export default BreadcrumbLink;
@@ -7,6 +7,7 @@ import {
7
7
  useDisclosure,
8
8
  useTableStyles,
9
9
  } from '@chakra-ui/react';
10
+ import Box from '../Box/Box';
10
11
  import Td from './Td';
11
12
  import TableIconButton from './TableIconButton';
12
13
 
@@ -64,15 +65,11 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
64
65
  {children}
65
66
  </ChakraTr>
66
67
  <ChakraTr>
67
- <Td
68
- borderColor={isOpen ? undefined : 'transparent'}
69
- colSpan={colSpan}
70
- height="0"
71
- paddingY="0"
72
- transform={isOpen ? 'none' : 'translateY(-1px)'}
73
- >
68
+ <Td colSpan={colSpan} height="0" borderTop="none" padding="0">
74
69
  <Collapse in={isOpen} unmountOnExit>
75
- {expandableContent}
70
+ <Box sx={{ borderTop: css.td.borderTop, borderColor: css.td.borderColor, paddingX: css.td.paddingX }}>
71
+ {expandableContent}
72
+ </Box>
76
73
  </Collapse>
77
74
  </Td>
78
75
  </ChakraTr>