@scality/core-ui 0.143.0 → 0.145.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.
|
@@ -16,5 +16,5 @@ const InfoMessageContainer = styled.div `
|
|
|
16
16
|
export const InfoMessage = ({ title, content, link }) => {
|
|
17
17
|
const { containerRef, backgroundColor } = useComputeBackgroundColor();
|
|
18
18
|
const theme = useTheme();
|
|
19
|
-
return (_jsxs(InfoMessageContainer, { ref: containerRef, style: { backgroundColor: backgroundColor }, children: [_jsxs(Stack, { children: [_jsx(Icon, { name: "Info-circle", color: theme.infoPrimary, size: "lg" }), typeof title === 'string' ? _jsx(Text, { isEmphazed: true, children: title }) : title] }), _jsx(Text, { color: "textSecondary", isGentleEmphazed: true, children: content }), link && (_jsxs(Link, { href: link, target: "_blank", style: { alignSelf: 'flex-end' }, children: ["More
|
|
19
|
+
return (_jsxs(InfoMessageContainer, { ref: containerRef, style: { backgroundColor: backgroundColor }, children: [_jsxs(Stack, { children: [_jsx(Icon, { name: "Info-circle", color: theme.infoPrimary, size: "lg" }), typeof title === 'string' ? _jsx(Text, { isEmphazed: true, children: title }) : title] }), _jsx(Text, { color: "textSecondary", isGentleEmphazed: true, children: content }), link && (_jsxs(Link, { href: link, target: "_blank", style: { alignSelf: 'flex-end' }, children: ["More info ", _jsx(Icon, { name: "External-link" })] }))] }));
|
|
20
20
|
};
|
|
@@ -51,7 +51,7 @@ export const TabItem = styled.div `
|
|
|
51
51
|
export const TabsContainer = styled.div `
|
|
52
52
|
height: 100%;
|
|
53
53
|
width: 100%;
|
|
54
|
-
contain:
|
|
54
|
+
contain: layout;
|
|
55
55
|
display: flex;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
background-color: ${(props) => props.tabLineColor || props.theme.backgroundLevel3};
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export const InfoMessage = ({ title, content, link }: Props) => {
|
|
|
39
39
|
</Text>
|
|
40
40
|
{link && (
|
|
41
41
|
<Link href={link} target="_blank" style={{ alignSelf: 'flex-end' }}>
|
|
42
|
-
More
|
|
42
|
+
More info <Icon name="External-link"></Icon>
|
|
43
43
|
</Link>
|
|
44
44
|
)}
|
|
45
45
|
</InfoMessageContainer>
|