@bitrise/bitkit 13.50.0 → 13.52.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
|
@@ -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
|
-
<
|
|
131
|
+
<Tooltip isDisabled={!tooltip} {...tooltip}>
|
|
132
|
+
<Icon color={iconColor} name={iconName} transform={iconTransform} />
|
|
133
|
+
</Tooltip>
|
|
125
134
|
{lastBlock ? (
|
|
126
135
|
<div />
|
|
127
136
|
) : (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
2
|
import { Button, forwardRef, TabProps as ChakraTabProps, useTab, useTabsStyles } from '@chakra-ui/react';
|
|
3
3
|
import Badge, { BadgeProps } from '../Badge/Badge';
|
|
4
4
|
import Icon, { TypeIconName } from '../Icon/Icon';
|
|
@@ -29,12 +29,6 @@ const Tab = forwardRef<TabProps, 'button'>((props, ref) => {
|
|
|
29
29
|
...rest,
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
if (tabProps['aria-selected']) {
|
|
34
|
-
document.getElementById(tabProps.id)?.scrollIntoView({ behavior: 'smooth', inline: 'center' });
|
|
35
|
-
}
|
|
36
|
-
}, [tabProps]);
|
|
37
|
-
|
|
38
32
|
return (
|
|
39
33
|
<Button
|
|
40
34
|
as={href ? 'a' : 'button'}
|