@bitrise/bitkit 12.24.0 → 12.26.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 +1 -1
- package/src/Components/Icons/16x16/Replace.tsx +14 -0
- package/src/Components/Icons/16x16/index.ts +1 -0
- package/src/Components/Icons/24x24/Replace.tsx +14 -0
- package/src/Components/Icons/24x24/index.ts +1 -0
- package/src/theme.ts +0 -2
- package/src/Components/Annotation/Annotation.theme.ts +0 -58
- package/src/Components/Annotation/Annotation.tsx +0 -25
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Replace = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M2.00001 0.666586H0.666672L0.666672 4.66659H0.834695H2.22761H4.66667V3.33325H3.01853C3.75096 2.51492 4.81534 1.99992 6 1.99992C8.20914 1.99992 10 3.79078 10 5.99992H11.3333C11.3333 3.0544 8.94552 0.666586 6 0.666586C4.40708 0.666586 2.97726 1.36493 2.00001 2.47215L2.00001 0.666586ZM9.7724 7.33325H7.33334V8.66659H8.98148C8.24905 9.48492 7.18467 9.99992 6 9.99992C3.79087 9.99992 2.00001 8.20906 2.00001 5.99992H0.666672C0.666672 8.94544 3.05449 11.3333 6 11.3333C7.59293 11.3333 9.02275 10.6349 10 9.52768V11.3333H11.3333V7.33325H11.1653H9.7724Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default Replace;
|
|
@@ -146,6 +146,7 @@ export { default as Pull } from './Pull';
|
|
|
146
146
|
export { default as Push } from './Push';
|
|
147
147
|
export { default as ReactIcon } from './ReactIcon';
|
|
148
148
|
export { default as Refresh } from './Refresh';
|
|
149
|
+
export { default as Replace } from './Replace';
|
|
149
150
|
export { default as Request } from './Request';
|
|
150
151
|
export { default as Responsiveness } from './Responsiveness';
|
|
151
152
|
export { default as Save } from './Save';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Replace = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M2 0H0L0 6H0.252035H2.34141H6V4H3.52779C4.62643 2.7725 6.223 2 8 2C11.3137 2 14 4.68629 14 8H16C16 3.58172 12.4183 0 8 0C5.61061 0 3.46589 1.04751 2 2.70835V0ZM13.6586 10H10V12H12.4722C11.3736 13.2275 9.777 14 8 14C4.68629 14 2 11.3137 2 8H0C0 12.4183 3.58172 16 8 16C10.3894 16 12.5341 14.9525 14 13.2916V16H16V10H15.748H13.6586Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default Replace;
|
|
@@ -146,6 +146,7 @@ export { default as Pull } from './Pull';
|
|
|
146
146
|
export { default as Push } from './Push';
|
|
147
147
|
export { default as ReactIcon } from './ReactIcon';
|
|
148
148
|
export { default as Refresh } from './Refresh';
|
|
149
|
+
export { default as Replace } from './Replace';
|
|
149
150
|
export { default as Request } from './Request';
|
|
150
151
|
export { default as Responsiveness } from './Responsiveness';
|
|
151
152
|
export { default as Save } from './Save';
|
package/src/theme.ts
CHANGED
|
@@ -36,7 +36,6 @@ import Sidebar from './Components/Sidebar/Sidebar.theme';
|
|
|
36
36
|
import SidebarItem from './Components/Sidebar/SidebarItem.theme';
|
|
37
37
|
import SegmentedControl from './Components/SegmentedControl/SegmentedControl.theme';
|
|
38
38
|
import Tag from './Components/Tag/Tag.theme';
|
|
39
|
-
import Annotation from './Components/Annotation/Annotation.theme';
|
|
40
39
|
|
|
41
40
|
import breakpoints from './Foundations/Breakpoints/Breakpoints';
|
|
42
41
|
import colors from './Foundations/Colors/Colors';
|
|
@@ -82,7 +81,6 @@ const theme = {
|
|
|
82
81
|
},
|
|
83
82
|
},
|
|
84
83
|
components: {
|
|
85
|
-
Annotation,
|
|
86
84
|
Accordion,
|
|
87
85
|
Avatar,
|
|
88
86
|
Badge,
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Status } from './Annotation';
|
|
2
|
-
|
|
3
|
-
const borderColor = {
|
|
4
|
-
info: 'separator.primary',
|
|
5
|
-
error: 'red.80',
|
|
6
|
-
warning: 'yellow.80',
|
|
7
|
-
success: 'green.80',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const decorationBackground = {
|
|
11
|
-
info: 'neutral.95',
|
|
12
|
-
error: 'red.95',
|
|
13
|
-
warning: 'yellow.95',
|
|
14
|
-
success: 'green.95',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const decorationColor = {
|
|
18
|
-
info: 'neutral.10',
|
|
19
|
-
error: 'red.50',
|
|
20
|
-
warning: 'yellow.50',
|
|
21
|
-
success: 'green.50',
|
|
22
|
-
};
|
|
23
|
-
const AnnotationTheme = {
|
|
24
|
-
parts: ['container', 'icon', 'body'],
|
|
25
|
-
baseStyle({ status }: { status: Status }) {
|
|
26
|
-
return {
|
|
27
|
-
wrapper: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
boxShadow: 'large',
|
|
30
|
-
},
|
|
31
|
-
decoration: {
|
|
32
|
-
color: decorationColor[status],
|
|
33
|
-
display: 'flex',
|
|
34
|
-
width: '32',
|
|
35
|
-
borderTopLeftRadius: '8',
|
|
36
|
-
borderBottomLeftRadius: '8',
|
|
37
|
-
borderWidth: '1px',
|
|
38
|
-
px: '4',
|
|
39
|
-
py: '12',
|
|
40
|
-
borderColor: borderColor[status],
|
|
41
|
-
bg: decorationBackground[status],
|
|
42
|
-
},
|
|
43
|
-
container: {
|
|
44
|
-
flexGrow: 1,
|
|
45
|
-
paddingLeft: '24',
|
|
46
|
-
paddingRight: '16',
|
|
47
|
-
py: '16',
|
|
48
|
-
borderTopRightRadius: '8',
|
|
49
|
-
borderBottomRightRadius: '8',
|
|
50
|
-
borderWidth: '1px',
|
|
51
|
-
borderLeft: 'none',
|
|
52
|
-
borderColor: borderColor[status],
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export default AnnotationTheme;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { useMultiStyleConfig } from '@chakra-ui/react';
|
|
3
|
-
import Box from '../Box/Box';
|
|
4
|
-
import Icon from '../Icon/Icon';
|
|
5
|
-
|
|
6
|
-
export type Status = 'info' | 'success' | 'error' | 'warning';
|
|
7
|
-
const iconNames = {
|
|
8
|
-
info: 'Info',
|
|
9
|
-
success: 'Tick',
|
|
10
|
-
error: 'ErrorGeneral',
|
|
11
|
-
warning: 'Warning',
|
|
12
|
-
} as const;
|
|
13
|
-
const Annotation = ({ children, status }: { children: ReactNode; status: Status }) => {
|
|
14
|
-
const { container, decoration, wrapper } = useMultiStyleConfig('Annotation', { status });
|
|
15
|
-
return (
|
|
16
|
-
<Box __css={wrapper}>
|
|
17
|
-
<Box __css={decoration}>
|
|
18
|
-
<Icon size="24" name={iconNames[status]} />
|
|
19
|
-
</Box>
|
|
20
|
-
<Box __css={container}>{children}</Box>
|
|
21
|
-
</Box>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default Annotation;
|