@sproutsocial/racine 12.16.0 → 12.16.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 +7 -1
- package/__flow__/PartnerLogo/index.js +3 -2
- package/__flow__/PartnerLogo/index.stories.js +1 -1
- package/__flow__/PartnerLogo/styles.js +4 -4
- package/commonjs/PartnerLogo/index.js +4 -3
- package/commonjs/PartnerLogo/styles.js +2 -2
- package/lib/PartnerLogo/index.js +4 -3
- package/lib/PartnerLogo/styles.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3cb36bf: This change fixes a bug where "px" was being appended to a number value when users were already including a pixel value. This was causing incorrect css syntax i.e. "16pxpx"
|
|
8
|
+
|
|
3
9
|
## 12.16.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -37,7 +43,7 @@
|
|
|
37
43
|
- Added support for different logo types ie. `wordmark` or `lockup`
|
|
38
44
|
- Added support for predefined sizes. ie. `mini`, `small`, `medium`, `large`, and `jumbo`.
|
|
39
45
|
- The partner Logo now has a fixed width by default.
|
|
40
|
-
|
|
46
|
+
|
|
41
47
|
- 5613a5c: A new Advocacy icon has been added to the icon library
|
|
42
48
|
|
|
43
49
|
### Patch Changes
|
|
@@ -50,8 +50,9 @@ const PartnerLogo = ({
|
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
52
|
<Container
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
//we add pixels here because view box coordinates are numbers
|
|
54
|
+
height={height ? height : defaultHeight + "px"}
|
|
55
|
+
width={width ? width : defaultWidth + "px"}
|
|
55
56
|
logoSize={size}
|
|
56
57
|
// $FlowIssue - upgrade v0.112.0
|
|
57
58
|
{...rest}
|
|
@@ -81,7 +81,7 @@ export const LogoLayout = (args: TypeProps) => (
|
|
|
81
81
|
<Box display="flex" alignItems="stretch">
|
|
82
82
|
<Box display="flex" alignItems="center" mr={600}>
|
|
83
83
|
<PartnerLogo partnerName="facebook" mr={600} />
|
|
84
|
-
<PartnerLogo height="
|
|
84
|
+
<PartnerLogo height="30px" partnerName="microsoft-dynamics" mr={600} />
|
|
85
85
|
<PartnerLogo size="jumbo" partnerName="zendesk" />
|
|
86
86
|
</Box>
|
|
87
87
|
<Box display="flex" flexDirection="column" justifyContent="space-between">
|
|
@@ -13,11 +13,11 @@ const sizes = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const stylesForSize = (height, width, logoSize) => css`
|
|
16
|
-
line-height: ${logoSize ? logoSize : height
|
|
16
|
+
line-height: ${logoSize ? logoSize : height};
|
|
17
17
|
|
|
18
18
|
&,
|
|
19
19
|
.logo-svg {
|
|
20
|
-
height: ${logoSize ? logoSize : height
|
|
20
|
+
height: ${logoSize ? logoSize : height};
|
|
21
21
|
width: ${logoSize ? logoSize : ""};
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -25,12 +25,12 @@ const stylesForSize = (height, width, logoSize) => css`
|
|
|
25
25
|
/* stylelint-disable */
|
|
26
26
|
_:-ms-fullscreen &,
|
|
27
27
|
html & {
|
|
28
|
-
width: ${logoSize ? logoSize : width
|
|
28
|
+
width: ${logoSize ? logoSize : width};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
${"" /* PDF hack, do not remove */}
|
|
32
32
|
.pdf-page & {
|
|
33
|
-
width: ${logoSize ? logoSize : width
|
|
33
|
+
width: ${logoSize ? logoSize : width};
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
36
36
|
|
|
@@ -50,9 +50,10 @@ var PartnerLogo = function PartnerLogo(_ref) {
|
|
|
50
50
|
var viewBoxCoordinates = (logoViewBox == null ? void 0 : logoViewBox.split(" ")) || [];
|
|
51
51
|
var defaultWidth = viewBoxCoordinates[2];
|
|
52
52
|
var defaultHeight = viewBoxCoordinates[3];
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_styles.default
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_styles.default //we add pixels here because view box coordinates are numbers
|
|
54
|
+
, _extends({
|
|
55
|
+
height: height ? height : defaultHeight + "px",
|
|
56
|
+
width: width ? width : defaultWidth + "px",
|
|
56
57
|
logoSize: size // $FlowIssue - upgrade v0.112.0
|
|
57
58
|
|
|
58
59
|
}, rest), /*#__PURE__*/_react.default.createElement("svg", _extends({
|
|
@@ -22,9 +22,9 @@ var sizes = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
var stylesForSize = function stylesForSize(height, width, logoSize) {
|
|
25
|
-
return (0, _styledComponents.css)(["line-height:", ";&,.logo-svg{height:", ";width:", ";}_:-ms-fullscreen &,html &{width:", ";}", " .pdf-page &{width:", ";}"], logoSize ? logoSize : height
|
|
25
|
+
return (0, _styledComponents.css)(["line-height:", ";&,.logo-svg{height:", ";width:", ";}_:-ms-fullscreen &,html &{width:", ";}", " .pdf-page &{width:", ";}"], logoSize ? logoSize : height, logoSize ? logoSize : height, logoSize ? logoSize : "", logoSize ? logoSize : width, ""
|
|
26
26
|
/* PDF hack, do not remove */
|
|
27
|
-
, logoSize ? logoSize : width
|
|
27
|
+
, logoSize ? logoSize : width);
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
var Container = _styledComponents.default.span.attrs({
|
package/lib/PartnerLogo/index.js
CHANGED
|
@@ -39,9 +39,10 @@ var PartnerLogo = function PartnerLogo(_ref) {
|
|
|
39
39
|
var viewBoxCoordinates = (logoViewBox == null ? void 0 : logoViewBox.split(" ")) || [];
|
|
40
40
|
var defaultWidth = viewBoxCoordinates[2];
|
|
41
41
|
var defaultHeight = viewBoxCoordinates[3];
|
|
42
|
-
return /*#__PURE__*/React.createElement(Container
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
return /*#__PURE__*/React.createElement(Container //we add pixels here because view box coordinates are numbers
|
|
43
|
+
, _extends({
|
|
44
|
+
height: height ? height : defaultHeight + "px",
|
|
45
|
+
width: width ? width : defaultWidth + "px",
|
|
45
46
|
logoSize: size // $FlowIssue - upgrade v0.112.0
|
|
46
47
|
|
|
47
48
|
}, rest), /*#__PURE__*/React.createElement("svg", _extends({
|
|
@@ -10,9 +10,9 @@ var sizes = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
var stylesForSize = function stylesForSize(height, width, logoSize) {
|
|
13
|
-
return css(["line-height:", ";&,.logo-svg{height:", ";width:", ";}_:-ms-fullscreen &,html &{width:", ";}", " .pdf-page &{width:", ";}"], logoSize ? logoSize : height
|
|
13
|
+
return css(["line-height:", ";&,.logo-svg{height:", ";width:", ";}_:-ms-fullscreen &,html &{width:", ";}", " .pdf-page &{width:", ";}"], logoSize ? logoSize : height, logoSize ? logoSize : height, logoSize ? logoSize : "", logoSize ? logoSize : width, ""
|
|
14
14
|
/* PDF hack, do not remove */
|
|
15
|
-
, logoSize ? logoSize : width
|
|
15
|
+
, logoSize ? logoSize : width);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
var Container = styled.span.attrs({
|