@bitrise/bitkit 13.281.0 → 13.283.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
|
@@ -108,7 +108,7 @@ const LabeledData = ({
|
|
|
108
108
|
{skeletonVariant === 'double' && <SkeletonBox height="14" width="120px" marginY="3" />}
|
|
109
109
|
</Skeleton>
|
|
110
110
|
) : (
|
|
111
|
-
|
|
111
|
+
<Box display="flex" flexDirection="column" gap="4">
|
|
112
112
|
{data && (
|
|
113
113
|
<Box as="dd" display="flex" alignItems="center" gap="4" color="text/body" textStyle={`comp/data/${size}`}>
|
|
114
114
|
{data}
|
|
@@ -142,7 +142,7 @@ const LabeledData = ({
|
|
|
142
142
|
)}
|
|
143
143
|
</Box>
|
|
144
144
|
)}
|
|
145
|
-
|
|
145
|
+
</Box>
|
|
146
146
|
)}
|
|
147
147
|
</Box>
|
|
148
148
|
);
|
|
@@ -38,28 +38,45 @@ type RenderStage = (ProgressStage & { spacer?: never }) | { spacer: true };
|
|
|
38
38
|
const SegmentLine = ({
|
|
39
39
|
activeSegmentIndex,
|
|
40
40
|
segmentIndex,
|
|
41
|
+
side = 'left',
|
|
41
42
|
spacer,
|
|
42
43
|
variant,
|
|
43
44
|
}: {
|
|
44
45
|
segmentIndex: number;
|
|
45
46
|
activeSegmentIndex: number;
|
|
46
47
|
variant: 'horizontal' | 'vertical';
|
|
48
|
+
side?: 'left' | 'right';
|
|
47
49
|
spacer?: true;
|
|
48
50
|
}) => {
|
|
49
51
|
const style = useMultiStyleConfig('ProgressIndicator', { variant });
|
|
50
52
|
let props: {
|
|
51
53
|
color: DividerProps['color'];
|
|
54
|
+
marginLeft?: DividerProps['marginLeft'];
|
|
55
|
+
paddingRight?: DividerProps['paddingRight'];
|
|
52
56
|
variant?: DividerProps['variant'];
|
|
53
|
-
} = {
|
|
57
|
+
} = {
|
|
58
|
+
color: 'border.minimal',
|
|
59
|
+
[variant === 'horizontal' ? 'marginLeft' : 'marginTop']: side === 'right' ? -2 : 0,
|
|
60
|
+
...(variant === 'horizontal' ? { paddingRight: 2 } : { paddingBottom: 4 }),
|
|
61
|
+
};
|
|
54
62
|
|
|
55
63
|
if (segmentIndex < activeSegmentIndex) {
|
|
56
|
-
props = {
|
|
64
|
+
props = {
|
|
65
|
+
...props,
|
|
66
|
+
color: 'border.selected',
|
|
67
|
+
};
|
|
57
68
|
} else if (segmentIndex === activeSegmentIndex) {
|
|
58
69
|
props = {
|
|
59
70
|
...props,
|
|
60
71
|
color: 'border.selected',
|
|
61
72
|
variant: 'dashed',
|
|
62
73
|
};
|
|
74
|
+
|
|
75
|
+
props = {
|
|
76
|
+
...props,
|
|
77
|
+
[variant === 'horizontal' ? 'marginLeft' : 'marginTop']: side === 'left' ? 2 : -2,
|
|
78
|
+
...(variant === 'horizontal' ? { paddingRight: 0 } : {}),
|
|
79
|
+
};
|
|
63
80
|
}
|
|
64
81
|
return (
|
|
65
82
|
<Divider
|
|
@@ -123,6 +140,7 @@ const RealStage = ({
|
|
|
123
140
|
(segmentIndex > 0 ? (
|
|
124
141
|
<SegmentLine
|
|
125
142
|
activeSegmentIndex={activeSegmentIndex}
|
|
143
|
+
side="left"
|
|
126
144
|
segmentIndex={segmentIndex - (extendLines ? 2 : 1)}
|
|
127
145
|
variant={variant}
|
|
128
146
|
/>
|
|
@@ -135,7 +153,12 @@ const RealStage = ({
|
|
|
135
153
|
{lastBlock ? (
|
|
136
154
|
<div />
|
|
137
155
|
) : (
|
|
138
|
-
<SegmentLine
|
|
156
|
+
<SegmentLine
|
|
157
|
+
activeSegmentIndex={activeSegmentIndex}
|
|
158
|
+
segmentIndex={segmentIndex}
|
|
159
|
+
side="right"
|
|
160
|
+
variant={variant}
|
|
161
|
+
/>
|
|
139
162
|
)}
|
|
140
163
|
</Box>
|
|
141
164
|
<Box sx={style.labelContainer}>
|
|
@@ -13,19 +13,14 @@ import ToggleComponent, { ToggleComponentProps } from '../../Components/Toggle/T
|
|
|
13
13
|
const [SettingsCardStyleProvider, useSettingsCardStyle] = createStylesContext('SettingsCard');
|
|
14
14
|
export const SettingsCardData = ({ helperText, ...rest }: LabeledDataProps & { helperText?: string }) => {
|
|
15
15
|
const { data } = useSettingsCardStyle();
|
|
16
|
-
const
|
|
16
|
+
const labeledData = <LabeledData {...rest} __css={data} />;
|
|
17
17
|
|
|
18
18
|
return helperText ? (
|
|
19
19
|
<Box __css={data}>
|
|
20
|
-
<LabeledData {...rest} />
|
|
21
|
-
{helperText && (
|
|
22
|
-
<Text color="input/text/helper" textStyle="comp/input/helperText">
|
|
23
|
-
{helperText}
|
|
24
|
-
</Text>
|
|
25
|
-
)}
|
|
20
|
+
<LabeledData {...rest} secondaryLabel={helperText} />
|
|
26
21
|
</Box>
|
|
27
22
|
) : (
|
|
28
|
-
|
|
23
|
+
labeledData
|
|
29
24
|
);
|
|
30
25
|
};
|
|
31
26
|
export const SettingsCardActions = ({ children }: { children: ReactNode }) => {
|