@bitrise/bitkit 13.26.0 → 13.28.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 +6 -6
- package/src/Components/Tag/Tag.tsx +11 -4
- package/src/utils/reexports.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.28.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@floating-ui/react-dom-interactions": "^0.8.1",
|
|
39
39
|
"@fontsource/figtree": "^5.0.19",
|
|
40
40
|
"@fontsource/source-code-pro": "^5.0.17",
|
|
41
|
-
"framer-motion": "^11.0.
|
|
41
|
+
"framer-motion": "^11.0.14",
|
|
42
42
|
"luxon": "^3.4.4",
|
|
43
43
|
"react": "^18.2.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
"@testing-library/user-event": "^14.5.2",
|
|
74
74
|
"@types/jest": "^29.5.12",
|
|
75
75
|
"@types/luxon": "^3.4.2",
|
|
76
|
-
"@types/react": "^18.2.
|
|
77
|
-
"@types/react-dom": "^18.2.
|
|
76
|
+
"@types/react": "^18.2.66",
|
|
77
|
+
"@types/react-dom": "^18.2.22",
|
|
78
78
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
79
79
|
"@typescript-eslint/parser": "^7.2.0",
|
|
80
|
-
"axios": "^1.6.
|
|
80
|
+
"axios": "^1.6.8",
|
|
81
81
|
"eslint": "^8.57.0",
|
|
82
82
|
"glob": "^10.3.10",
|
|
83
83
|
"jest": "^29.7.0",
|
|
84
84
|
"jest-environment-jsdom": "^29.7.0",
|
|
85
85
|
"jsdom": "^24.0.0",
|
|
86
86
|
"prettier": "^3.2.5",
|
|
87
|
-
"react-hook-form": "^7.51.
|
|
87
|
+
"react-hook-form": "^7.51.1",
|
|
88
88
|
"release-it": "^17.1.1",
|
|
89
89
|
"storybook": "^8.0.0",
|
|
90
90
|
"ts-jest": "^29.1.2",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
Tag as ChakraTag,
|
|
4
|
+
TagCloseButton,
|
|
5
|
+
TagProps as ChakraTagProps,
|
|
6
|
+
useMultiStyleConfig,
|
|
7
|
+
} from '@chakra-ui/react';
|
|
2
8
|
import Icon, { TypeIconName } from '../Icon/Icon';
|
|
3
9
|
import Skeleton from '../Skeleton/Skeleton';
|
|
4
10
|
import SkeletonBox from '../Skeleton/SkeletonBox';
|
|
@@ -18,7 +24,7 @@ export interface TagProps extends Omit<ChakraTagProps, 'colorScheme' | 'size' |
|
|
|
18
24
|
withIcon?: boolean;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
const Tag = (props
|
|
27
|
+
const Tag = forwardRef<TagProps, 'span'>((props, ref) => {
|
|
22
28
|
const { children, closeButtonTooltip, iconColor, iconName, isDisabled, isLoading, onClose, withIcon, ...tagProps } =
|
|
23
29
|
props;
|
|
24
30
|
const style = useMultiStyleConfig('Tag', props);
|
|
@@ -31,6 +37,7 @@ const Tag = (props: TagProps) => {
|
|
|
31
37
|
data-loading={isLoading || undefined}
|
|
32
38
|
sx={style.container}
|
|
33
39
|
{...tagProps}
|
|
40
|
+
ref={ref}
|
|
34
41
|
>
|
|
35
42
|
{(withIcon || !!iconName) && (
|
|
36
43
|
<Icon
|
|
@@ -58,11 +65,11 @@ const Tag = (props: TagProps) => {
|
|
|
58
65
|
)}
|
|
59
66
|
</ChakraTag>
|
|
60
67
|
);
|
|
61
|
-
};
|
|
68
|
+
});
|
|
62
69
|
|
|
63
70
|
Tag.defaultProps = {
|
|
64
71
|
colorScheme: 'neutral',
|
|
65
72
|
size: 'md',
|
|
66
|
-
};
|
|
73
|
+
} as TagProps;
|
|
67
74
|
|
|
68
75
|
export default Tag;
|
package/src/utils/reexports.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { forwardRef, keyframes } from '@chakra-ui/react';
|
|
1
|
+
export { forwardRef, keyframes, Portal } from '@chakra-ui/react';
|
|
2
2
|
export { IMask, useIMask } from 'react-imask';
|