@bitrise/bitkit 13.49.0 → 13.51.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.49.0",
4
+ "version": "13.51.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -38,11 +38,11 @@
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.27",
41
+ "framer-motion": "^11.1.2",
42
42
  "luxon": "^3.4.4",
43
43
  "react": "^18.2.0",
44
44
  "react-dom": "^18.2.0",
45
- "react-focus-lock": "^2.11.2",
45
+ "react-focus-lock": "^2.11.3",
46
46
  "react-imask": "^7.6.0",
47
47
  "react-markdown": "^9.0.1"
48
48
  },
@@ -57,26 +57,26 @@
57
57
  "@babel/preset-typescript": "^7.24.1",
58
58
  "@bitrise/eslint-plugin": "^2.10.2",
59
59
  "@chakra-ui/cli": "^2.4.1",
60
- "@google-cloud/storage": "^7.9.0",
61
- "@storybook/addon-actions": "^8.0.6",
62
- "@storybook/addon-essentials": "^8.0.6",
63
- "@storybook/addon-interactions": "^8.0.6",
64
- "@storybook/addon-links": "^8.0.6",
60
+ "@google-cloud/storage": "^7.10.0",
61
+ "@storybook/addon-actions": "^8.0.8",
62
+ "@storybook/addon-essentials": "^8.0.8",
63
+ "@storybook/addon-interactions": "^8.0.8",
64
+ "@storybook/addon-links": "^8.0.8",
65
65
  "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
66
- "@storybook/blocks": "^8.0.6",
67
- "@storybook/react": "^8.0.6",
68
- "@storybook/react-webpack5": "^8.0.6",
69
- "@storybook/theming": "^8.0.6",
66
+ "@storybook/blocks": "^8.0.8",
67
+ "@storybook/react": "^8.0.8",
68
+ "@storybook/react-webpack5": "^8.0.8",
69
+ "@storybook/theming": "^8.0.8",
70
70
  "@testing-library/dom": "^9.3.4",
71
71
  "@testing-library/jest-dom": "^6.4.2",
72
- "@testing-library/react": "^14.3.0",
72
+ "@testing-library/react": "^14.3.1",
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.75",
77
- "@types/react-dom": "^18.2.24",
78
- "@typescript-eslint/eslint-plugin": "^7.6.0",
79
- "@typescript-eslint/parser": "^7.6.0",
76
+ "@types/react": "^18.2.79",
77
+ "@types/react-dom": "^18.2.25",
78
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
79
+ "@typescript-eslint/parser": "^7.7.0",
80
80
  "axios": "^1.6.8",
81
81
  "eslint": "^8.57.0",
82
82
  "glob": "^10.3.12",
@@ -84,9 +84,9 @@
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.2",
88
- "release-it": "^17.1.1",
89
- "storybook": "^8.0.6",
87
+ "react-hook-form": "^7.51.3",
88
+ "release-it": "^17.2.0",
89
+ "storybook": "^8.0.8",
90
90
  "ts-jest": "^29.1.2",
91
91
  "typescript": "^5.4.5"
92
92
  },
@@ -250,6 +250,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
250
250
  {
251
251
  'aria-label': ariaLabel,
252
252
  buttonProps = {},
253
+ 'data-testid': dataTestid,
253
254
  defaultValue,
254
255
  disabled,
255
256
  dropdownMaxHeight,
@@ -344,6 +345,7 @@ const Dropdown = forwardRef<Element, DropdownProps<string | null>>(
344
345
  {...referenceProps}
345
346
  {...buttonProps}
346
347
  aria-label={ariaLabel}
348
+ data-testid={dataTestid}
347
349
  id={buttonId}
348
350
  iconName={iconName}
349
351
  blurHandler={blurHandler}
@@ -11,6 +11,7 @@ export interface DropdownProps<T> extends ChakraProps {
11
11
  'aria-label'?: string;
12
12
  buttonProps?: ChakraProps;
13
13
  children?: ReactNode;
14
+ 'data-testid'?: string;
14
15
  defaultValue?: T;
15
16
  disabled?: boolean;
16
17
  dropdownMinHeight?: ChakraProps['minH'];
@@ -5,11 +5,14 @@ import Icon, { IconProps } from '../Icon/Icon';
5
5
  import Text, { TextProps } from '../Text/Text';
6
6
  import Divider, { DividerProps } from '../Divider/Divider';
7
7
  import Link, { LinkProps } from '../Link/Link';
8
+ import Tooltip, { TooltipProps } from '../Tooltip/Tooltip';
8
9
 
9
10
  type ProgressStage = {
10
11
  label: string;
11
12
  isInvalid?: boolean;
12
13
  isDisabled?: boolean;
14
+ isSkipped?: boolean;
15
+ tooltip?: Omit<TooltipProps, 'children'>;
13
16
  helperText?: string;
14
17
  action?: {
15
18
  onClick?: () => void;
@@ -74,7 +77,7 @@ const RealStage = ({
74
77
  extendLines,
75
78
  lastBlock,
76
79
  segmentIndex,
77
- stage: { action, helperText, isDisabled, isInvalid, label },
80
+ stage: { action, tooltip, helperText, isDisabled, isInvalid, isSkipped, label },
78
81
  variant,
79
82
  }: Pick<ProgressIndicatorProps, 'variant'> & {
80
83
  segmentIndex: number;
@@ -106,6 +109,10 @@ const RealStage = ({
106
109
  iconColor = 'icon.disabled';
107
110
  textColor = 'text.disabled';
108
111
  }
112
+ if (isSkipped) {
113
+ iconName = 'StepstatusSkip';
114
+ textColor = 'text.disabled';
115
+ }
109
116
  const style = useMultiStyleConfig('ProgressIndicator', { variant });
110
117
 
111
118
  return (
@@ -121,7 +128,9 @@ const RealStage = ({
121
128
  ) : (
122
129
  <div />
123
130
  ))}
124
- <Icon color={iconColor} name={iconName} transform={iconTransform} />
131
+ <Tooltip isDisabled={!tooltip} {...tooltip}>
132
+ <Icon color={iconColor} name={iconName} transform={iconTransform} />
133
+ </Tooltip>
125
134
  {lastBlock ? (
126
135
  <div />
127
136
  ) : (