@sproutsocial/racine 7.0.0 → 7.0.1
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/CHANGELOG.md
CHANGED
|
@@ -101,3 +101,19 @@ export const buttons = () => (
|
|
|
101
101
|
buttons.story = {
|
|
102
102
|
name: "With button",
|
|
103
103
|
};
|
|
104
|
+
|
|
105
|
+
export const multiline = () => (
|
|
106
|
+
<Box width="300px">
|
|
107
|
+
<Banner
|
|
108
|
+
text={text(
|
|
109
|
+
"text",
|
|
110
|
+
"A very long opportunity message that is going to stretch to multiple lines, while the icon stays aligned with the first line."
|
|
111
|
+
)}
|
|
112
|
+
type="opportunity"
|
|
113
|
+
/>
|
|
114
|
+
</Box>
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
multiline.story = {
|
|
118
|
+
name: "With multiline text",
|
|
119
|
+
};
|
|
@@ -24,6 +24,8 @@ const Container: StyledComponent<TypeProps, TypeTheme, *> = styled.div(
|
|
|
24
24
|
background-color: ${props.theme.colors[props.type].background};
|
|
25
25
|
|
|
26
26
|
.Icon {
|
|
27
|
+
align-self: flex-start;
|
|
28
|
+
margin-top: 3px;
|
|
27
29
|
margin-right: ${props.theme.space[400]};
|
|
28
30
|
min-width: 16px;
|
|
29
31
|
color: ${props.theme.colors[props.type].icon};
|
|
@@ -15,7 +15,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
15
15
|
displayName: "styles__Container",
|
|
16
16
|
componentId: "q43dr4-0"
|
|
17
17
|
})(function (props) {
|
|
18
|
-
return (0, _styledComponents.css)(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, _systemProps.COMMON, _systemProps.LAYOUT);
|
|
18
|
+
return (0, _styledComponents.css)(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, _systemProps.COMMON, _systemProps.LAYOUT);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
var _default = Container;
|
package/lib/Banner/styles.js
CHANGED
|
@@ -4,6 +4,6 @@ var Container = styled.div.withConfig({
|
|
|
4
4
|
displayName: "styles__Container",
|
|
5
5
|
componentId: "q43dr4-0"
|
|
6
6
|
})(function (props) {
|
|
7
|
-
return css(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, COMMON, LAYOUT);
|
|
7
|
+
return css(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, COMMON, LAYOUT);
|
|
8
8
|
});
|
|
9
9
|
export default Container;
|