@bitrise/bitkit 13.205.0 → 13.207.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.205.0",
4
+ "version": "13.207.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -27,7 +27,7 @@
27
27
  "framer-motion": "./node_modules/framer-motion/dist/cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@chakra-ui/react": "^2.10.4",
30
+ "@chakra-ui/react": "^2.10.5",
31
31
  "@chakra-ui/react-utils": "^2.0.12",
32
32
  "@chakra-ui/styled-system": "^2.12.1",
33
33
  "@chakra-ui/theme": "^3.4.7",
@@ -38,11 +38,11 @@
38
38
  "@floating-ui/react-dom-interactions": "^0.8.1",
39
39
  "@fontsource/figtree": "^5.1.2",
40
40
  "@fontsource/source-code-pro": "^5.1.1",
41
- "framer-motion": "^11.16.0",
41
+ "framer-motion": "^11.18.2",
42
42
  "luxon": "^3.5.0",
43
43
  "react": "^18.3.1",
44
44
  "react-dom": "^18.3.1",
45
- "react-focus-lock": "2.13.5",
45
+ "react-focus-lock": "2.13.6",
46
46
  "react-imask": "^7.6.1",
47
47
  "react-markdown": "^9.0.3"
48
48
  },
@@ -51,26 +51,26 @@
51
51
  "react-dom": "^18.2.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/core": "^7.26.0",
55
- "@babel/preset-env": "^7.26.0",
54
+ "@babel/core": "^7.26.8",
55
+ "@babel/preset-env": "^7.26.8",
56
56
  "@babel/preset-react": "^7.26.3",
57
57
  "@babel/preset-typescript": "^7.26.0",
58
58
  "@bitrise/eslint-plugin": "^2.12.0",
59
59
  "@chakra-ui/cli": "^2.5.6",
60
- "@google-cloud/storage": "^7.14.0",
61
- "@storybook/addon-actions": "^8.4.7",
62
- "@storybook/addon-essentials": "^8.4.7",
63
- "@storybook/addon-interactions": "^8.4.7",
64
- "@storybook/addon-links": "^8.4.7",
60
+ "@google-cloud/storage": "^7.15.0",
61
+ "@storybook/addon-actions": "^8.5.3",
62
+ "@storybook/addon-essentials": "^8.5.3",
63
+ "@storybook/addon-interactions": "^8.5.3",
64
+ "@storybook/addon-links": "^8.5.3",
65
65
  "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
66
- "@storybook/blocks": "^8.4.7",
67
- "@storybook/react": "^8.4.7",
68
- "@storybook/react-webpack5": "^8.4.7",
69
- "@storybook/theming": "^8.4.7",
66
+ "@storybook/blocks": "^8.5.3",
67
+ "@storybook/react": "^8.5.3",
68
+ "@storybook/react-webpack5": "^8.5.3",
69
+ "@storybook/theming": "^8.5.3",
70
70
  "@testing-library/dom": "^10.4.0",
71
71
  "@testing-library/jest-dom": "6.6.3",
72
- "@testing-library/react": "16.1.0",
73
- "@testing-library/user-event": "^14.5.2",
72
+ "@testing-library/react": "16.2.0",
73
+ "@testing-library/user-event": "^14.6.1",
74
74
  "@types/jest": "^29.5.14",
75
75
  "@types/luxon": "^3.4.2",
76
76
  "@types/react": "^18.3.18",
@@ -79,17 +79,17 @@
79
79
  "@typescript-eslint/parser": "^7.18.0",
80
80
  "axios": "^1.7.9",
81
81
  "eslint": "^8.57.1",
82
- "glob": "^11.0.0",
82
+ "glob": "^11.0.1",
83
83
  "jest": "^29.7.0",
84
84
  "jest-environment-jsdom": "^29.7.0",
85
85
  "jsdom": "25.0.1",
86
86
  "lodash": "^4.17.21",
87
- "prettier": "^3.4.2",
87
+ "prettier": "^3.5.0",
88
88
  "react-hook-form": "^7.54.2",
89
- "release-it": "^18.0.0",
90
- "storybook": "^8.4.7",
89
+ "release-it": "^18.1.2",
90
+ "storybook": "^8.5.3",
91
91
  "ts-jest": "^29.2.5",
92
- "typescript": "^5.7.2"
92
+ "typescript": "^5.7.3"
93
93
  },
94
94
  "files": [
95
95
  "src",
@@ -20,6 +20,7 @@ import {
20
20
  import Icon, { TypeIconName } from '../../Icon/Icon';
21
21
  import { TooltipProps } from '../../Tooltip/Tooltip';
22
22
  import FormLabel, { FormLabelProps } from '../FormLabel';
23
+ import { getDataAttributes } from '../../../utils/utils';
23
24
 
24
25
  type UsedFormControlProps = Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'>;
25
26
  type UsedChakraInputProps = Pick<
@@ -42,7 +43,6 @@ type UsedChakraInputProps = Pick<
42
43
  >;
43
44
  export interface InputProps extends UsedFormControlProps, UsedChakraInputProps {
44
45
  badge?: FormLabelProps['badge'];
45
- 'data-testid'?: string;
46
46
  errorText?: ReactNode;
47
47
  infoTooltipLabel?: string;
48
48
  infoTooltipProps?: TooltipProps;
@@ -74,7 +74,6 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
74
74
  autoComplete,
75
75
  autoFocus,
76
76
  badge,
77
- 'data-testid': dataTestid,
78
77
  defaultValue,
79
78
  errorText,
80
79
  helperText,
@@ -124,7 +123,6 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
124
123
  const inputProps = {
125
124
  autoComplete,
126
125
  autoFocus,
127
- 'data-testid': dataTestid,
128
126
  defaultValue,
129
127
  max,
130
128
  maxLength,
@@ -142,6 +140,8 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
142
140
  value,
143
141
  };
144
142
 
143
+ const dataAttributes = getDataAttributes(rest);
144
+
145
145
  const inputInlinePadding = size === 'lg' ? '15' : '11';
146
146
 
147
147
  const RightContentWrapper = rightAddonPlacement === 'inside' ? InputRightElement : InputRightAddon;
@@ -193,6 +193,7 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
193
193
  paddingLeft={inputLeftPadding}
194
194
  paddingRight={inputRightPadding}
195
195
  {...inputProps}
196
+ {...dataAttributes}
196
197
  onChange={onInputChange}
197
198
  />
198
199
  {rightAddon && <RightContentWrapper>{rightAddon}</RightContentWrapper>}
@@ -10,6 +10,7 @@ import {
10
10
  } from '@chakra-ui/react';
11
11
  import { TooltipProps } from '../../Tooltip/Tooltip';
12
12
  import FormLabel, { FormLabelProps } from '../FormLabel';
13
+ import { getDataAttributes } from '../../../utils/utils';
13
14
 
14
15
  type UsedFormControlProps = Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'>;
15
16
  type UsedChakraTextProps = Pick<
@@ -28,7 +29,6 @@ type UsedChakraTextProps = Pick<
28
29
 
29
30
  export interface TextareaProps extends UsedFormControlProps, UsedChakraTextProps {
30
31
  badge?: FormLabelProps['badge'];
31
- 'data-testid'?: string;
32
32
  errorText?: string;
33
33
  infoTooltipLabel?: string;
34
34
  infoTooltipProps?: TooltipProps;
@@ -50,7 +50,6 @@ const Textarea = forwardRef<TextareaProps, 'div'>((props, ref) => {
50
50
  autoComplete,
51
51
  autoFocus,
52
52
  badge,
53
- 'data-testid': dataTestid,
54
53
  errorText,
55
54
  helperText,
56
55
  infoTooltipLabel,
@@ -80,7 +79,6 @@ const Textarea = forwardRef<TextareaProps, 'div'>((props, ref) => {
80
79
  const textareaProps = {
81
80
  autoComplete,
82
81
  autoFocus,
83
- 'data-testid': dataTestid,
84
82
  maxLength,
85
83
  minLength,
86
84
  name,
@@ -101,6 +99,8 @@ const Textarea = forwardRef<TextareaProps, 'div'>((props, ref) => {
101
99
  }
102
100
  };
103
101
 
102
+ const dataAttributes = getDataAttributes(props);
103
+
104
104
  return (
105
105
  <FormControl {...formControlProps}>
106
106
  <FormLabel
@@ -114,7 +114,7 @@ const Textarea = forwardRef<TextareaProps, 'div'>((props, ref) => {
114
114
  {label}
115
115
  </FormLabel>
116
116
 
117
- <ChakraTextarea {...textareaProps} onChange={onTextareaChange} />
117
+ <ChakraTextarea {...textareaProps} {...dataAttributes} onChange={onTextareaChange} />
118
118
  {errorText && <FormErrorMessage as="p">{errorText}</FormErrorMessage>}
119
119
  {helperText && <FormHelperText as="p">{helperText}</FormHelperText>}
120
120
  </FormControl>
@@ -14,6 +14,7 @@ import Icon from '../Icon/Icon';
14
14
  import ProgressSpinner from '../ProgressSpinner/ProgressSpinner';
15
15
  import FormLabel, { FormLabelProps } from '../Form/FormLabel';
16
16
  import { TooltipProps } from '../Tooltip/Tooltip';
17
+ import { getDataAttributes } from '../../utils/utils';
17
18
 
18
19
  export interface SelectProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
19
20
  badge?: FormLabelProps['badge'];
@@ -72,6 +73,9 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
72
73
  size,
73
74
  value,
74
75
  };
76
+
77
+ const dataAttributes = getDataAttributes(props);
78
+
75
79
  if (placeholder) {
76
80
  if ('value' in props) {
77
81
  selectProperties.value = selectProperties.value ?? '';
@@ -92,7 +96,7 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
92
96
  {label}
93
97
  </FormLabel>
94
98
  <Box sx={style.selectContainer}>
95
- <ChakraSelect ref={ref} {...selectProperties} sx={style.field}>
99
+ <ChakraSelect ref={ref} {...selectProperties} {...dataAttributes} sx={style.field}>
96
100
  {placeholder && (
97
101
  <option disabled value="">
98
102
  {placeholder}