@bitrise/bitkit 12.71.1 → 12.71.3
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
|
@@ -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
|
-
|
|
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
|
|
12
|
-
avatarName?: string;
|
|
13
|
-
avatarUrl?: string;
|
|
14
|
-
}
|
|
7
|
+
export type BreadcrumbLinkProps = ChakraBreadcrumbLinkProps;
|
|
15
8
|
|
|
16
9
|
const BreadcrumbLink = forwardRef<BreadcrumbLinkProps, 'a'>((props, ref) => {
|
|
17
|
-
|
|
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;
|
|
@@ -69,7 +69,12 @@ const FilterAdd = (props: FilterAddProps) => {
|
|
|
69
69
|
zIndex={isOpen ? 'dialog' : undefined}
|
|
70
70
|
>
|
|
71
71
|
{selectedCategory ? (
|
|
72
|
-
<FilterForm
|
|
72
|
+
<FilterForm
|
|
73
|
+
category={selectedCategory}
|
|
74
|
+
categoryName={data[selectedCategory].categoryName}
|
|
75
|
+
onChange={onFilterChange}
|
|
76
|
+
onCancel={onClose}
|
|
77
|
+
/>
|
|
73
78
|
) : (
|
|
74
79
|
categoryList.map((category) => {
|
|
75
80
|
const { categoryName, dependsOn } = data[category];
|