@bitrise/bitkit 12.13.0 → 12.14.1
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 +1 -1
- package/src/Components/Breadcrumb/Breadcrumb.theme.ts +13 -10
- package/src/Components/Breadcrumb/Breadcrumb.tsx +1 -3
- package/src/Components/Breadcrumb/BreadcrumbLink.tsx +6 -5
- package/src/Components/Icons/16x16/Siren.tsx +17 -0
- package/src/Components/Icons/16x16/index.ts +1 -0
- package/src/Components/Icons/24x24/Siren.tsx +17 -0
- package/src/Components/Icons/24x24/index.ts +1 -0
package/package.json
CHANGED
|
@@ -2,20 +2,13 @@ import type { SystemStyleObject } from '@chakra-ui/theme-tools';
|
|
|
2
2
|
|
|
3
3
|
const BreadcrumbTheme: SystemStyleObject = {
|
|
4
4
|
baseStyle: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
alignItems: 'center',
|
|
9
|
-
},
|
|
5
|
+
list: {
|
|
6
|
+
display: 'flex',
|
|
7
|
+
alignItems: 'center',
|
|
10
8
|
},
|
|
11
9
|
item: {
|
|
12
10
|
_last: {
|
|
13
11
|
minWidth: 0,
|
|
14
|
-
|
|
15
|
-
'.breadcrumbLinkText': {
|
|
16
|
-
overflow: 'hidden',
|
|
17
|
-
textOverflow: 'ellipsis',
|
|
18
|
-
},
|
|
19
12
|
},
|
|
20
13
|
},
|
|
21
14
|
link: {
|
|
@@ -24,9 +17,19 @@ const BreadcrumbTheme: SystemStyleObject = {
|
|
|
24
17
|
gap: '8',
|
|
25
18
|
whiteSpace: 'nowrap',
|
|
26
19
|
minWidth: 0,
|
|
20
|
+
_activeLink: {
|
|
21
|
+
color: 'neutral.10',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
linkText: {
|
|
25
|
+
color: 'purple.50',
|
|
26
|
+
_groupHover: {
|
|
27
|
+
textDecoration: 'underline',
|
|
28
|
+
},
|
|
27
29
|
},
|
|
28
30
|
separator: {
|
|
29
31
|
display: 'flex',
|
|
32
|
+
color: 'neutral.80',
|
|
30
33
|
},
|
|
31
34
|
},
|
|
32
35
|
};
|
|
@@ -35,7 +35,7 @@ const Breadcrumb = forwardRef<BreadcrumbProps, 'nav'>((props, ref) => {
|
|
|
35
35
|
|
|
36
36
|
const defaultIconName = isMobile ? 'ChevronLeft' : 'ChevronRight';
|
|
37
37
|
const properties = {
|
|
38
|
-
separator: <Icon name={separatorIconName || defaultIconName}
|
|
38
|
+
separator: <Icon name={separatorIconName || defaultIconName} size="24" />,
|
|
39
39
|
...rest,
|
|
40
40
|
};
|
|
41
41
|
return (
|
|
@@ -45,6 +45,4 @@ const Breadcrumb = forwardRef<BreadcrumbProps, 'nav'>((props, ref) => {
|
|
|
45
45
|
);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
Breadcrumb.defaultProps = {};
|
|
49
|
-
|
|
50
48
|
export default Breadcrumb;
|
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
BreadcrumbLink as ChakraBreadcrumbLink,
|
|
3
3
|
BreadcrumbLinkProps as ChakraBreadcrumbLinkProps,
|
|
4
4
|
forwardRef,
|
|
5
|
+
useMultiStyleConfig,
|
|
5
6
|
} from '@chakra-ui/react';
|
|
6
7
|
import Avatar from '../Avatar/Avatar';
|
|
7
8
|
import { useResponsive } from '../../hooks';
|
|
8
|
-
import
|
|
9
|
+
import Text from '../Text/Text';
|
|
9
10
|
|
|
10
11
|
export interface BreadcrumbLinkProps extends ChakraBreadcrumbLinkProps {
|
|
11
12
|
avatarName?: string;
|
|
@@ -17,18 +18,18 @@ const BreadcrumbLink = forwardRef<BreadcrumbLinkProps, 'a'>((props, ref) => {
|
|
|
17
18
|
const { isMobile } = useResponsive();
|
|
18
19
|
|
|
19
20
|
const properties: ChakraBreadcrumbLinkProps = {
|
|
20
|
-
color: isCurrentPage ? 'neutral.40' : 'inherit',
|
|
21
21
|
isCurrentPage,
|
|
22
22
|
...rest,
|
|
23
23
|
};
|
|
24
|
+
const style = useMultiStyleConfig('Breadcrumb');
|
|
24
25
|
return (
|
|
25
|
-
<ChakraBreadcrumbLink {...properties}
|
|
26
|
+
<ChakraBreadcrumbLink {...properties} role="group" ref={ref}>
|
|
26
27
|
{!isMobile && (avatarName || avatarUrl) && (
|
|
27
28
|
<Avatar name={avatarName || children?.toString()} src={avatarUrl} borderRadius="4" />
|
|
28
29
|
)}
|
|
29
|
-
<
|
|
30
|
+
<Text as="span" hasEllipsis sx={isCurrentPage ? undefined : style.linkText}>
|
|
30
31
|
{children}
|
|
31
|
-
</
|
|
32
|
+
</Text>
|
|
32
33
|
</ChakraBreadcrumbLink>
|
|
33
34
|
);
|
|
34
35
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Siren = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="m13 2h-2v4h2z" />
|
|
6
|
+
<path d="m12 13v-2c-.0145 0-.0289.0003-.0433.0009-2.72921.0234-4.93674 2.2335-4.95608 4.9637-.00041.0117-.00062.0235-.00062.0354h2v.0315c.00032-.0102-.00001-.0212 0-.0315 0-1.6567 1.3434-2.9997 3-3z" />
|
|
7
|
+
<path
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="m12 8c-4.41828 0-8 3.5817-8 8v4h-2v2h20v-2h-2v-4c0-4.4183-3.5817-8-8-8zm6 12h-12v-4c0-3.3137 2.68629-6 6-6 3.3137 0 6 2.6863 6 6z"
|
|
10
|
+
fillRule="evenodd"
|
|
11
|
+
/>
|
|
12
|
+
<path d="m2.87891 5.29297 1.41421-1.41421 2.82843 2.82842-1.41422 1.41422z" />
|
|
13
|
+
<path d="m21.2427 5.29297-1.4142-1.41421-2.8285 2.82842 1.4142 1.41422z" />
|
|
14
|
+
</Icon>
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
export default Siren;
|
|
@@ -152,6 +152,7 @@ export { default as Settings } from './Settings';
|
|
|
152
152
|
export { default as Ship } from './Ship';
|
|
153
153
|
export { default as ShowPassword } from './ShowPassword';
|
|
154
154
|
export { default as Shuffle } from './Shuffle';
|
|
155
|
+
export { default as Siren } from './Siren';
|
|
155
156
|
export { default as Sort } from './Sort';
|
|
156
157
|
export { default as Stability } from './Stability';
|
|
157
158
|
export { default as Stack } from './Stack';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Siren = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="m13 2h-2v4h2z" />
|
|
6
|
+
<path d="m12 13v-2c-.0145 0-.0289.0003-.0433.0009-2.72921.0234-4.93674 2.2335-4.95608 4.9637-.00041.0117-.00062.0235-.00062.0354h2v.0315c.00032-.0102-.00001-.0212 0-.0315 0-1.6567 1.3434-2.9997 3-3z" />
|
|
7
|
+
<path
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="m12 8c-4.41828 0-8 3.5817-8 8v4h-2v2h20v-2h-2v-4c0-4.4183-3.5817-8-8-8zm6 12h-12v-4c0-3.3137 2.68629-6 6-6 3.3137 0 6 2.6863 6 6z"
|
|
10
|
+
fillRule="evenodd"
|
|
11
|
+
/>
|
|
12
|
+
<path d="m2.87891 5.29297 1.41421-1.41421 2.82843 2.82842-1.41422 1.41422z" />
|
|
13
|
+
<path d="m21.2427 5.29297-1.4142-1.41421-2.8285 2.82842 1.4142 1.41422z" />
|
|
14
|
+
</Icon>
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
export default Siren;
|
|
@@ -152,6 +152,7 @@ export { default as Settings } from './Settings';
|
|
|
152
152
|
export { default as Ship } from './Ship';
|
|
153
153
|
export { default as ShowPassword } from './ShowPassword';
|
|
154
154
|
export { default as Shuffle } from './Shuffle';
|
|
155
|
+
export { default as Siren } from './Siren';
|
|
155
156
|
export { default as Sort } from './Sort';
|
|
156
157
|
export { default as Stability } from './Stability';
|
|
157
158
|
export { default as Stack } from './Stack';
|