@bitrise/bitkit 12.73.2 → 12.73.4
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
|
@@ -21,7 +21,7 @@ const ProgressIndicatorTheme = itemHelpers.defineMultiStyleConfig({
|
|
|
21
21
|
whiteSpace: 'nowrap',
|
|
22
22
|
textOverflow: 'ellipsis',
|
|
23
23
|
overflow: 'hidden',
|
|
24
|
-
maxWidth: 'calc(100% - 1rem)',
|
|
24
|
+
maxWidth: 'max(8rem, calc(100% - 1rem))',
|
|
25
25
|
lineHeight: '1.5rem',
|
|
26
26
|
alignSelf: 'flex-start',
|
|
27
27
|
},
|
|
@@ -57,21 +57,26 @@ const ProgressIndicator = ({ stages, activeStageIndex, variant }: ProgressIndica
|
|
|
57
57
|
iconColor = 'neutral.80';
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
const lastBlock = index === array.length - 1;
|
|
61
|
+
|
|
60
62
|
return (
|
|
61
63
|
<Box
|
|
62
|
-
width={variant === 'horizontal' ? `${100 / array.length}%` : 'auto'}
|
|
63
64
|
sx={style.stage}
|
|
65
|
+
flexGrow={lastBlock ? undefined : '1'}
|
|
66
|
+
flexBasis={lastBlock ? undefined : `${100 / array.length}%`}
|
|
64
67
|
// eslint-disable-next-line react/no-array-index-key
|
|
65
68
|
key={index}
|
|
66
69
|
>
|
|
67
70
|
<Box sx={style.iconWithLine}>
|
|
68
71
|
<Icon name={iconName} color={iconColor} />
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
{!lastBlock && (
|
|
73
|
+
<Divider
|
|
74
|
+
sx={style.line}
|
|
75
|
+
size="2"
|
|
76
|
+
orientation={variant === 'horizontal' ? 'horizontal' : 'vertical'}
|
|
77
|
+
{...dividerProps}
|
|
78
|
+
/>
|
|
79
|
+
)}
|
|
75
80
|
</Box>
|
|
76
81
|
{action && !isDisabled ? (
|
|
77
82
|
<Link
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Tooltip as ChakraTooltip,
|
|
3
|
+
TooltipProps as ChakraTooltipProps,
|
|
4
|
+
forwardRef,
|
|
5
|
+
chakra,
|
|
6
|
+
BoxProps,
|
|
7
|
+
} from '@chakra-ui/react';
|
|
2
8
|
|
|
3
9
|
export interface TooltipProps extends Omit<ChakraTooltipProps, 'shouldWrapChildren'> {
|
|
4
10
|
shouldWrapChildren?: boolean | 'block';
|
|
11
|
+
wrapperProps?: BoxProps;
|
|
5
12
|
}
|
|
6
13
|
/**
|
|
7
14
|
* A tooltip is a brief, informative message that appears when a user interacts with an element. Tooltips are usually initiated in one of two ways: through a mouse-hover gesture or through a keyboard-hover gesture.
|
|
8
15
|
*/
|
|
9
16
|
const Tooltip = forwardRef<TooltipProps, 'div'>((props, ref) => {
|
|
10
|
-
const { children, shouldWrapChildren, ...rest } = props;
|
|
17
|
+
const { children, shouldWrapChildren, wrapperProps = {}, ...rest } = props;
|
|
11
18
|
const properties: ChakraTooltipProps = {
|
|
12
19
|
bg: 'neutral.10',
|
|
13
20
|
children,
|
|
@@ -18,7 +25,7 @@ const Tooltip = forwardRef<TooltipProps, 'div'>((props, ref) => {
|
|
|
18
25
|
};
|
|
19
26
|
if (shouldWrapChildren) {
|
|
20
27
|
properties.children = (
|
|
21
|
-
<chakra.span display={shouldWrapChildren === 'block' ? 'block' : 'inline-block'} tabIndex={0}>
|
|
28
|
+
<chakra.span sx={wrapperProps} display={shouldWrapChildren === 'block' ? 'block' : 'inline-block'} tabIndex={0}>
|
|
22
29
|
{children}
|
|
23
30
|
</chakra.span>
|
|
24
31
|
);
|