@bitrise/bitkit 12.41.5 → 12.42.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/Release.tsx +15 -0
- package/src/Components/Icons/16x16/Upload.tsx +16 -0
- package/src/Components/Icons/16x16/index.ts +2 -0
- package/src/Components/Icons/24x24/Release.tsx +15 -0
- package/src/Components/Icons/24x24/Upload.tsx +10 -0
- package/src/Components/Icons/24x24/index.ts +2 -0
- package/src/Components/Tag/Tag.tsx +14 -3
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Release = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path d="M7.25 3.25H8.75V4.75H7.25V3.25Z" fill="currentColor" />
|
|
6
|
+
<path
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M3 2.5C3 1.67157 3.67157 1 4.5 1H11.5C12.3284 1 13 1.67157 13 2.5V13.5C13 14.3284 12.3284 15 11.5 15H4.5C3.67157 15 3 14.3284 3 13.5V2.5ZM4.5 2.5H11.5V13.5H8.758V9.87935L9.93931 11.0607L11 10L7.99997 7L4.99997 10L6.06063 11.0607L7.258 9.86329V13.5H4.5L4.5 2.5Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</Icon>
|
|
13
|
+
));
|
|
14
|
+
|
|
15
|
+
export default Release;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Release = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
d="M7.25002 4.87132V10H8.75002V4.87132L10.4749 6.59619L11.5356 5.53553L8.00002 2L4.46449 5.53553L5.52515 6.59619L7.25002 4.87132Z"
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
/>
|
|
9
|
+
<path
|
|
10
|
+
d="M4.25 9H3V11.5C3 12.3284 3.67157 13 4.5 13H11.5C12.3284 13 13 12.3284 13 11.5V9H11.75V11.5H4.25V9Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Icon>
|
|
14
|
+
));
|
|
15
|
+
|
|
16
|
+
export default Release;
|
|
@@ -150,6 +150,7 @@ export { default as Pull } from './Pull';
|
|
|
150
150
|
export { default as Push } from './Push';
|
|
151
151
|
export { default as ReactIcon } from './ReactIcon';
|
|
152
152
|
export { default as Refresh } from './Refresh';
|
|
153
|
+
export { default as Release } from './Release';
|
|
153
154
|
export { default as Replace } from './Replace';
|
|
154
155
|
export { default as Request } from './Request';
|
|
155
156
|
export { default as Responsiveness } from './Responsiveness';
|
|
@@ -196,6 +197,7 @@ export { default as Trace } from './Trace';
|
|
|
196
197
|
export { default as Trash } from './Trash';
|
|
197
198
|
export { default as Trigger } from './Trigger';
|
|
198
199
|
export { default as Twitter } from './Twitter';
|
|
200
|
+
export { default as Upload } from './Upload';
|
|
199
201
|
export { default as ValidateShield } from './ValidateShield';
|
|
200
202
|
export { default as Video } from './Video';
|
|
201
203
|
export { default as Warning } from './Warning';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Release = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="M13 5H11V7H13V5Z" fill="currentColor" />
|
|
6
|
+
<path
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M17 2H7C5.9 2 5 2.9 5 4V20C5 21.1 5.9 22 7 22H17C18.1 22 19 21.1 19 20V4C19 2.9 18.1 2 17 2ZM7 20V4H17V20H13V14.8284L14.5858 16.4142L16 15L12 11L8 15L9.41421 16.4142L11 14.8284V20H7Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</Icon>
|
|
13
|
+
));
|
|
14
|
+
|
|
15
|
+
export default Release;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const Release = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="M8.49997 9.4L7.09997 8L12 3L17 8L15.6 9.4L13.1 6.9V15H11.1V6.9L8.49997 9.4Z" fill="currentColor" />
|
|
6
|
+
<path d="M6 13H4V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V13H18V18H6V13Z" fill="currentColor" />
|
|
7
|
+
</Icon>
|
|
8
|
+
));
|
|
9
|
+
|
|
10
|
+
export default Release;
|
|
@@ -150,6 +150,7 @@ export { default as Pull } from './Pull';
|
|
|
150
150
|
export { default as Push } from './Push';
|
|
151
151
|
export { default as ReactIcon } from './ReactIcon';
|
|
152
152
|
export { default as Refresh } from './Refresh';
|
|
153
|
+
export { default as Release } from './Release';
|
|
153
154
|
export { default as Replace } from './Replace';
|
|
154
155
|
export { default as Request } from './Request';
|
|
155
156
|
export { default as Responsiveness } from './Responsiveness';
|
|
@@ -196,6 +197,7 @@ export { default as Trace } from './Trace';
|
|
|
196
197
|
export { default as Trash } from './Trash';
|
|
197
198
|
export { default as Trigger } from './Trigger';
|
|
198
199
|
export { default as Twitter } from './Twitter';
|
|
200
|
+
export { default as Upload } from './Upload';
|
|
199
201
|
export { default as ValidateShield } from './ValidateShield';
|
|
200
202
|
export { default as Video } from './Video';
|
|
201
203
|
export { default as Warning } from './Warning';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tag as ChakraTag, TagCloseButton, TagProps as ChakraTagProps, useMultiStyleConfig } from '@chakra-ui/react';
|
|
2
|
-
import
|
|
2
|
+
import { TypeColors } from 'src/Foundations/Colors/Colors';
|
|
3
|
+
import Icon, { TypeIconName } from '../Icon/Icon';
|
|
3
4
|
import Skeleton from '../Skeleton/Skeleton';
|
|
4
5
|
import SkeletonBox from '../Skeleton/SkeletonBox';
|
|
5
6
|
import Text from '../Text/Text';
|
|
@@ -8,6 +9,8 @@ import Tooltip from '../Tooltip/Tooltip';
|
|
|
8
9
|
export interface TagProps extends Omit<ChakraTagProps, 'colorScheme' | 'size' | 'variant'> {
|
|
9
10
|
closeButtonTooltip?: string;
|
|
10
11
|
colorScheme?: 'neutral' | 'blue' | 'green' | 'red' | 'yellow' | 'purple';
|
|
12
|
+
iconColor?: TypeColors;
|
|
13
|
+
iconName?: TypeIconName;
|
|
11
14
|
isDisabled?: boolean;
|
|
12
15
|
isLoading?: boolean;
|
|
13
16
|
onClose?: () => void;
|
|
@@ -16,7 +19,8 @@ export interface TagProps extends Omit<ChakraTagProps, 'colorScheme' | 'size' |
|
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
const Tag = (props: TagProps) => {
|
|
19
|
-
const { children, closeButtonTooltip, isDisabled, isLoading, onClose, withIcon, ...tagProps } =
|
|
22
|
+
const { children, closeButtonTooltip, iconColor, iconName, isDisabled, isLoading, onClose, withIcon, ...tagProps } =
|
|
23
|
+
props;
|
|
20
24
|
const style = useMultiStyleConfig('Tag', tagProps);
|
|
21
25
|
|
|
22
26
|
return (
|
|
@@ -27,7 +31,14 @@ const Tag = (props: TagProps) => {
|
|
|
27
31
|
data-loading={isLoading || undefined}
|
|
28
32
|
{...tagProps}
|
|
29
33
|
>
|
|
30
|
-
{withIcon
|
|
34
|
+
{(withIcon || !!iconName) && (
|
|
35
|
+
<Icon
|
|
36
|
+
color={iconColor}
|
|
37
|
+
name={iconName || 'Tick'}
|
|
38
|
+
size={tagProps.size === 'sm' ? '16' : '24'}
|
|
39
|
+
__css={style.icon}
|
|
40
|
+
/>
|
|
41
|
+
)}
|
|
31
42
|
<Text as="span" hasEllipsis sx={style.label}>
|
|
32
43
|
{isLoading ? (
|
|
33
44
|
<Skeleton isActive>
|