@bitrise/bitkit 13.283.0 → 13.285.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,10 +1,12 @@
|
|
|
1
1
|
import type { ComponentStyleConfig } from 'chakra-ui-2--theme';
|
|
2
2
|
|
|
3
3
|
const EmptyStateTheme: ComponentStyleConfig = {
|
|
4
|
-
baseStyle: ({ maxContentWidth }) => ({
|
|
4
|
+
baseStyle: ({ maxContentWidth, colorScheme }) => ({
|
|
5
5
|
box: {
|
|
6
6
|
alignItems: 'center',
|
|
7
|
-
backgroundColor: '
|
|
7
|
+
backgroundColor: colorScheme === 'white' ? 'background.primary' : 'background/disabled',
|
|
8
|
+
border: colorScheme === 'white' ? '1px solid' : undefined,
|
|
9
|
+
borderColor: colorScheme === 'white' ? 'border.minimal' : undefined,
|
|
8
10
|
borderRadius: '4',
|
|
9
11
|
color: 'text.secondary',
|
|
10
12
|
display: 'flex',
|
|
@@ -5,14 +5,23 @@ import Icon, { TypeIconName } from '../Icon/Icon';
|
|
|
5
5
|
import Text from '../Text/Text';
|
|
6
6
|
|
|
7
7
|
export interface EmptyStateProps extends BoxProps {
|
|
8
|
+
colorScheme?: 'white' | 'gray';
|
|
8
9
|
description?: ReactNode;
|
|
9
10
|
iconName?: TypeIconName;
|
|
10
11
|
maxContentWidth?: string;
|
|
11
12
|
title: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
const EmptyState = ({
|
|
15
|
-
|
|
15
|
+
const EmptyState = ({
|
|
16
|
+
children,
|
|
17
|
+
colorScheme = 'gray',
|
|
18
|
+
description,
|
|
19
|
+
iconName,
|
|
20
|
+
maxContentWidth,
|
|
21
|
+
title,
|
|
22
|
+
...rest
|
|
23
|
+
}: EmptyStateProps) => {
|
|
24
|
+
const css = useMultiStyleConfig('EmptyState', { maxContentWidth, colorScheme });
|
|
16
25
|
|
|
17
26
|
return (
|
|
18
27
|
<Box __css={css.box} {...rest}>
|
|
@@ -16,7 +16,7 @@ export type ToggletipProps = Omit<PopoverProps, 'children'> & {
|
|
|
16
16
|
button?: {
|
|
17
17
|
onClick?: ButtonProps['onClick'];
|
|
18
18
|
href?: string;
|
|
19
|
-
label:
|
|
19
|
+
label: ReactNode;
|
|
20
20
|
};
|
|
21
21
|
popoverTrigger?: Omit<BoxProps, 'children'>;
|
|
22
22
|
};
|
|
@@ -54,7 +54,7 @@ const Toggletip = (props: ToggletipProps) => {
|
|
|
54
54
|
<PopoverContent sx={style.content}>
|
|
55
55
|
<Text>{label}</Text>
|
|
56
56
|
{(learnMoreUrl || button) && (
|
|
57
|
-
<Box alignItems="center" display="flex" justifyContent={justifyContent} marginTop="16">
|
|
57
|
+
<Box alignItems="center" display="flex" gap="24" justifyContent={justifyContent} marginTop="16">
|
|
58
58
|
{learnMoreUrl && (
|
|
59
59
|
<Link href={learnMoreUrl} isExternal sx={style.link}>
|
|
60
60
|
Learn more
|