@sproutsocial/racine 12.14.0 → 12.16.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/CHANGELOG.md +59 -1
- package/__flow__/Avatar/index.stories.js +1 -0
- package/__flow__/Avatar/index.test.js +1 -0
- package/__flow__/Badge/index.stories.js +1 -0
- package/__flow__/Badge/index.test.js +1 -0
- package/__flow__/Banner/index.js +5 -4
- package/__flow__/Banner/index.stories.js +1 -0
- package/__flow__/Banner/index.test.js +11 -0
- package/__flow__/Box/index.stories.js +1 -0
- package/__flow__/Box/index.test.js +1 -0
- package/__flow__/Breadcrumb/index.stories.js +1 -0
- package/__flow__/Breadcrumb/index.test.js +1 -0
- package/__flow__/Button/index.js +14 -3
- package/__flow__/Button/index.stories.js +24 -17
- package/__flow__/CharacterCounter/index.stories.js +1 -0
- package/__flow__/CharacterCounter/index.test.js +1 -0
- package/__flow__/ChartLegend/index.stories.js +1 -0
- package/__flow__/ChartLegend/index.test.js +1 -0
- package/__flow__/Checkbox/index.js +5 -5
- package/__flow__/Checkbox/index.stories.js +18 -13
- package/__flow__/Checkbox/index.test.js +9 -1
- package/__flow__/Collapsible/index.stories.js +16 -2
- package/__flow__/Collapsible/index.test.js +1 -0
- package/__flow__/Drawer/index.stories.js +14 -5
- package/__flow__/Drawer/index.test.js +4 -3
- package/__flow__/EmptyState/index.stories.js +1 -0
- package/__flow__/EmptyState/index.test.js +1 -0
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/EnumIllustrationNames.js +1 -1
- package/__flow__/EnumLogoNames.js +1 -1
- package/__flow__/Fieldset/index.stories.js +21 -6
- package/__flow__/FormField/index.stories.js +11 -6
- package/__flow__/FormField/index.test.js +5 -4
- package/__flow__/Icon/index.js +5 -2
- package/__flow__/Icon/index.stories.js +8 -7
- package/__flow__/Icon/index.test.js +1 -0
- package/__flow__/Icon/styles.js +2 -0
- package/__flow__/IconViewBoxes.js +1 -1
- package/__flow__/IllustrationViewBoxes.js +1 -1
- package/__flow__/Image/index.stories.js +1 -0
- package/__flow__/Image/index.test.js +1 -0
- package/__flow__/Indicator/index.stories.js +1 -0
- package/__flow__/Indicator/index.test.js +1 -0
- package/__flow__/Indicator/styles.js +1 -1
- package/__flow__/Input/index.stories.js +37 -0
- package/__flow__/Input/index.test.js +1 -0
- package/__flow__/KeyboardKey/index.stories.js +1 -0
- package/__flow__/KeyboardKey/index.test.js +1 -0
- package/__flow__/Label/index.stories.js +2 -1
- package/__flow__/Label/index.test.js +1 -0
- package/__flow__/Link/index.stories.js +1 -0
- package/__flow__/Link/index.test.js +1 -0
- package/__flow__/Listbox/index.stories.js +12 -6
- package/__flow__/Listbox/index.test.js +1 -0
- package/__flow__/Loader/index.js +1 -1
- package/__flow__/Loader/index.stories.js +5 -4
- package/__flow__/Loader/index.test.js +1 -0
- package/__flow__/LoaderButton/index.js +3 -1
- package/__flow__/LoaderButton/index.stories.js +1 -0
- package/__flow__/LoaderButton/index.test.js +1 -0
- package/__flow__/LogoViewBoxes.js +1 -1
- package/__flow__/Menu/index.flow.js +2 -0
- package/__flow__/Menu/index.stories.js +16 -8
- package/__flow__/Menu/index.test.js +3 -1
- package/__flow__/Message/index.stories.js +14 -6
- package/__flow__/Message/index.test.js +3 -3
- package/__flow__/Modal/index.stories.js +1 -0
- package/__flow__/Modal/index.test.js +1 -0
- package/__flow__/Numeral/index.js +1 -1
- package/__flow__/Numeral/index.stories.js +8 -7
- package/__flow__/OverflowList/index.flow.js +2 -2
- package/__flow__/OverflowList/index.stories.js +4 -3
- package/__flow__/OverflowList/index.test.js +7 -2
- package/__flow__/PartnerLogo/TypePartnerNames.js +2 -0
- package/__flow__/PartnerLogo/index.js +32 -33
- package/__flow__/PartnerLogo/index.stories.js +43 -13
- package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup-dark.svg +7 -0
- package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup.svg +7 -0
- package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark-dark.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network-dark.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network-dark.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network.svg +3 -0
- package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup-dark.svg +28 -0
- package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup.svg +28 -0
- package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark-dark.svg +9 -0
- package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark.svg +9 -0
- package/__flow__/PartnerLogo/styles.js +50 -0
- package/__flow__/Popout/index.js +2 -2
- package/__flow__/Popout/index.stories.js +24 -9
- package/__flow__/Popout/index.test.js +2 -1
- package/__flow__/Radio/index.js +1 -1
- package/__flow__/Radio/index.stories.js +9 -8
- package/__flow__/Radio/index.test.js +1 -0
- package/__flow__/SegmentedControl/index.stories.js +1 -0
- package/__flow__/SegmentedControl/index.test.js +1 -0
- package/__flow__/Select/index.stories.js +25 -6
- package/__flow__/Select/index.test.js +1 -0
- package/__flow__/Skeleton/index.stories.js +1 -0
- package/__flow__/SpotIllustration/illustrationNames.js +7 -0
- package/__flow__/SpotIllustration/index.js +1 -1
- package/__flow__/SpotIllustration/index.stories.js +9 -5
- package/__flow__/SpotIllustration/spotIllustrations/competitors.svg +29 -0
- package/__flow__/SpotIllustration/spotIllustrations/grow-large.svg +12 -0
- package/__flow__/SpotIllustration/spotIllustrations/grow.svg +5 -0
- package/__flow__/SpotIllustration/spotIllustrations/listening-sentiment.svg +27 -0
- package/__flow__/SpotIllustration/spotIllustrations/listening-topic-templates.svg +26 -0
- package/__flow__/SpotIllustration/spotIllustrations/listening.svg +9 -0
- package/__flow__/SpotIllustration/spotIllustrations/message.svg +6 -0
- package/__flow__/Stack/index.stories.js +1 -0
- package/__flow__/Stack/index.test.js +1 -0
- package/__flow__/Switch/index.js +1 -1
- package/__flow__/Switch/index.stories.js +6 -5
- package/__flow__/Switch/index.test.js +1 -0
- package/__flow__/Table/index.stories.js +14 -12
- package/__flow__/Table/index.test.js +1 -0
- package/__flow__/TableCell/index.stories.js +1 -0
- package/__flow__/TableCell/index.test.js +2 -1
- package/__flow__/TableHeaderCell/index.stories.js +1 -0
- package/__flow__/TableHeaderCell/index.test.js +5 -2
- package/__flow__/TableRowAccordion/index.stories.js +3 -2
- package/__flow__/TableRowAccordion/index.test.js +2 -1
- package/__flow__/Tabs/index.stories.js +1 -0
- package/__flow__/Tabs/index.test.js +1 -0
- package/__flow__/Text/index.js +11 -7
- package/__flow__/Text/index.stories.js +1 -0
- package/__flow__/Text/index.test.js +1 -0
- package/__flow__/Textarea/index.stories.js +9 -0
- package/__flow__/Textarea/index.test.js +1 -0
- package/__flow__/Toast/index.stories.js +10 -6
- package/__flow__/ToggleHint/index.test.js +1 -0
- package/__flow__/Token/index.stories.js +1 -0
- package/__flow__/Token/index.test.js +1 -0
- package/__flow__/TokenInput/tests/default/deleting.test.js +10 -9
- package/__flow__/TokenInput/tests/default/focusing.test.js +1 -0
- package/__flow__/TokenInput/tests/default/inputting.test.js +2 -1
- package/__flow__/Tooltip/index.stories.js +1 -17
- package/__flow__/Tooltip/index.test.js +2 -0
- package/__flow__/dataviz/dataviz.stories.js +1 -0
- package/__flow__/dataviz/index.js +1 -0
- package/__flow__/themes/dark/decorative-palettes.js +3 -1
- package/__flow__/themes/light/decorative-palettes.js +2 -0
- package/__flow__/utils/system-props.js +1 -0
- package/commonjs/Banner/index.js +4 -2
- package/commonjs/Button/index.js +7 -1
- package/commonjs/Checkbox/index.js +3 -3
- package/commonjs/Icon/styles.js +3 -0
- package/commonjs/IconViewBoxes.js +2 -0
- package/commonjs/IllustrationViewBoxes.js +7 -0
- package/commonjs/Indicator/styles.js +3 -1
- package/commonjs/LoaderButton/index.js +3 -1
- package/commonjs/LogoViewBoxes.js +12 -0
- package/commonjs/PartnerLogo/index.js +18 -19
- package/commonjs/PartnerLogo/styles.js +40 -0
- package/commonjs/SpotIllustration/illustrationNames.js +1 -1
- package/commonjs/themes/dark/decorative-palettes.js +1 -1
- package/dist/icon.svg +1 -1
- package/dist/iconList.js +1 -1
- package/dist/illustration.svg +1 -1
- package/dist/illustrationList.js +1 -1
- package/dist/logo.svg +1 -1
- package/dist/logoList.js +1 -1
- package/dist/themes/dark/theme.scss +2 -2
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +2 -2
- package/lib/Banner/index.js +4 -2
- package/lib/Button/index.js +11 -1
- package/lib/Checkbox/index.js +3 -3
- package/lib/Icon/styles.js +3 -0
- package/lib/IconViewBoxes.js +2 -0
- package/lib/IllustrationViewBoxes.js +7 -0
- package/lib/Indicator/styles.js +3 -1
- package/lib/LoaderButton/index.js +3 -1
- package/lib/LogoViewBoxes.js +12 -0
- package/lib/PartnerLogo/index.js +17 -14
- package/lib/PartnerLogo/styles.js +26 -0
- package/lib/SpotIllustration/illustrationNames.js +1 -1
- package/lib/themes/dark/decorative-palettes.js +1 -1
- package/package.json +1 -1
package/lib/Checkbox/index.js
CHANGED
|
@@ -34,14 +34,14 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
|
|
|
34
34
|
var _proto = Checkbox.prototype;
|
|
35
35
|
|
|
36
36
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
37
|
-
if (prevProps.indeterminate !== this.props.indeterminate && this.el) {
|
|
38
|
-
this.el.indeterminate = this.props.indeterminate;
|
|
37
|
+
if (prevProps.indeterminate !== !!this.props.indeterminate && this.el) {
|
|
38
|
+
this.el.indeterminate = !!this.props.indeterminate;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
_proto.componentDidMount = function componentDidMount() {
|
|
43
43
|
if (this.el) {
|
|
44
|
-
this.el.indeterminate = this.props.indeterminate;
|
|
44
|
+
this.el.indeterminate = !!this.props.indeterminate;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
package/lib/Icon/styles.js
CHANGED
|
@@ -3,7 +3,10 @@ import { COMMON } from "../utils/system-props";
|
|
|
3
3
|
import { verticalAlign } from "styled-system";
|
|
4
4
|
var sizes = {
|
|
5
5
|
mini: "12px",
|
|
6
|
+
|
|
7
|
+
/** TODO: deprecate default in favor of small in future release */
|
|
6
8
|
default: "16px",
|
|
9
|
+
small: "16px",
|
|
7
10
|
medium: "24px",
|
|
8
11
|
large: "32px",
|
|
9
12
|
jumbo: "64px"
|
package/lib/IconViewBoxes.js
CHANGED
|
@@ -8,6 +8,8 @@ module.exports = {
|
|
|
8
8
|
"address-card-solid": "0 0 18 16",
|
|
9
9
|
"adobe-experience-manager": "0 0 16 18",
|
|
10
10
|
"ads": "0 0 9 16",
|
|
11
|
+
"advocacy-outline": "0 0 14 16",
|
|
12
|
+
"advocacy": "0 0 14 16",
|
|
11
13
|
"android": "0 0 14 16",
|
|
12
14
|
"apple": "0 0 14 16",
|
|
13
15
|
"approval-indicator-outline": "0 0 14 16",
|
|
@@ -11,6 +11,7 @@ module.exports = {
|
|
|
11
11
|
"cat": "0 0 240 171",
|
|
12
12
|
"checkbox-alert": "0 0 193 169",
|
|
13
13
|
"coffee-cup": "0 0 196 234",
|
|
14
|
+
"competitors": "0 0 355 258",
|
|
14
15
|
"compose-window": "0 0 372 188",
|
|
15
16
|
"compose": "0 0 62 45",
|
|
16
17
|
"computer-error": "0 0 237 259",
|
|
@@ -27,6 +28,8 @@ module.exports = {
|
|
|
27
28
|
"general-topic": "0 0 101 63",
|
|
28
29
|
"global-features": "0 0 239 226",
|
|
29
30
|
"global-trend": "0 0 56 42",
|
|
31
|
+
"grow-large": "0 0 189 137",
|
|
32
|
+
"grow": "0 0 73 45",
|
|
30
33
|
"hands-raised": "0 0 192 176",
|
|
31
34
|
"headset": "0 0 106 54",
|
|
32
35
|
"heartbeat-connection": "0 0 335 201",
|
|
@@ -41,10 +44,14 @@ module.exports = {
|
|
|
41
44
|
"link-sections": "0 0 270 273",
|
|
42
45
|
"link-upload": "0 0 180 140",
|
|
43
46
|
"listening-pendo": "0 0 544 109",
|
|
47
|
+
"listening-sentiment": "0 0 343 154",
|
|
48
|
+
"listening-topic-templates": "0 0 337 247",
|
|
44
49
|
"listening-tour": "0 0 236 212",
|
|
50
|
+
"listening": "0 0 101 63",
|
|
45
51
|
"loading": "0 0 62 39",
|
|
46
52
|
"mailbox-empty": "0 0 309 240",
|
|
47
53
|
"mailbox-full": "0 0 352 252",
|
|
54
|
+
"message": "0 0 58 44",
|
|
48
55
|
"network-data": "0 0 369 229",
|
|
49
56
|
"no-messages-found": "0 0 272 211",
|
|
50
57
|
"no-notifications": "0 0 281 134",
|
package/lib/Indicator/styles.js
CHANGED
|
@@ -11,6 +11,8 @@ var Container = styled.span.attrs({
|
|
|
11
11
|
}, function (props) {
|
|
12
12
|
return props.theme.space[400];
|
|
13
13
|
}, function (props) {
|
|
14
|
-
|
|
14
|
+
var _props$color;
|
|
15
|
+
|
|
16
|
+
return (_props$color = props.color) != null ? _props$color : props.theme.colors.icon.info;
|
|
15
17
|
}, visuallyHidden, COMMON);
|
|
16
18
|
export default Container;
|
|
@@ -14,7 +14,9 @@ import { COLOR_NEUTRAL_0, COLOR_NEUTRAL_1000 } from "@sproutsocial/seeds-color";
|
|
|
14
14
|
|
|
15
15
|
var getColor = function getColor(appearance) {
|
|
16
16
|
switch (appearance) {
|
|
17
|
+
/** "default" is @deprecated in favour of unstyled */
|
|
17
18
|
case "default":
|
|
19
|
+
case "unstyled":
|
|
18
20
|
case "outline":
|
|
19
21
|
case "secondary":
|
|
20
22
|
return "dark";
|
|
@@ -34,7 +36,7 @@ var CustomLoader = styled(Loader).withConfig({
|
|
|
34
36
|
});
|
|
35
37
|
export var LoaderButton = function LoaderButton(_ref) {
|
|
36
38
|
var _ref$appearance = _ref.appearance,
|
|
37
|
-
appearance = _ref$appearance === void 0 ? "
|
|
39
|
+
appearance = _ref$appearance === void 0 ? "unstyled" : _ref$appearance,
|
|
38
40
|
_ref$isLoading = _ref.isLoading,
|
|
39
41
|
_isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
40
42
|
disabled = _ref.disabled,
|
package/lib/LogoViewBoxes.js
CHANGED
|
@@ -4,7 +4,13 @@ module.exports = {
|
|
|
4
4
|
"canva-dark": "0 0 140 140",
|
|
5
5
|
"canva": "0 0 140 140",
|
|
6
6
|
"dropbox-dark": "0 0 140 119",
|
|
7
|
+
"dropbox-lockup-dark": "0 0 291 57",
|
|
8
|
+
"dropbox-lockup": "0 0 291 57",
|
|
9
|
+
"dropbox-wordmark-dark": "0 0 308 71",
|
|
10
|
+
"dropbox-wordmark": "0 0 308 71",
|
|
7
11
|
"dropbox": "0 0 140 119",
|
|
12
|
+
"facebook-audience-network-dark": "0 0 140 145",
|
|
13
|
+
"facebook-audience-network": "0 0 140 145",
|
|
8
14
|
"facebook-dark": "0 0 141 139",
|
|
9
15
|
"facebook-groups-dark": "0 0 140 140",
|
|
10
16
|
"facebook-groups": "0 0 140 140",
|
|
@@ -27,6 +33,8 @@ module.exports = {
|
|
|
27
33
|
"hubspot": "0 0 140 156",
|
|
28
34
|
"instagram-dark": "0 0 140 140",
|
|
29
35
|
"instagram": "0 0 140 140",
|
|
36
|
+
"linkedin-audience-network-dark": "0 0 140 141",
|
|
37
|
+
"linkedin-audience-network": "0 0 140 141",
|
|
30
38
|
"linkedin-dark": "0 0 140 140",
|
|
31
39
|
"linkedin": "0 0 140 140",
|
|
32
40
|
"marketo-dark": "0 0 140 164",
|
|
@@ -64,5 +72,9 @@ module.exports = {
|
|
|
64
72
|
"youtube-dark": "0 0 140 99",
|
|
65
73
|
"youtube": "0 0 140 99",
|
|
66
74
|
"zendesk-dark": "0 0 140 107",
|
|
75
|
+
"zendesk-lockup-dark": "0 0 160 115",
|
|
76
|
+
"zendesk-lockup": "0 0 160 115",
|
|
77
|
+
"zendesk-wordmark-dark": "0 0 350 67",
|
|
78
|
+
"zendesk-wordmark": "0 0 350 67",
|
|
67
79
|
"zendesk": "0 0 140 107"
|
|
68
80
|
};
|
package/lib/PartnerLogo/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["partnerName", "backgroundType", "height", "width"];
|
|
1
|
+
var _excluded = ["partnerName", "backgroundType", "logoType", "height", "width", "size"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -7,32 +7,31 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import logoViewBoxes from "../LogoViewBoxes";
|
|
9
9
|
import { useTheme } from "styled-components";
|
|
10
|
-
import
|
|
11
|
-
import { COMMON, FLEXBOX } from "../utils/system-props";
|
|
12
|
-
var StyledSVG = styled.svg.withConfig({
|
|
13
|
-
displayName: "PartnerLogo__StyledSVG",
|
|
14
|
-
componentId: "sc-ivi11w-0"
|
|
15
|
-
})(["", ";", ""], FLEXBOX, COMMON);
|
|
10
|
+
import Container from "./styles";
|
|
16
11
|
|
|
17
12
|
var PartnerLogo = function PartnerLogo(_ref) {
|
|
18
13
|
var partnerName = _ref.partnerName,
|
|
19
14
|
backgroundType = _ref.backgroundType,
|
|
15
|
+
logoType = _ref.logoType,
|
|
20
16
|
height = _ref.height,
|
|
21
17
|
width = _ref.width,
|
|
18
|
+
size = _ref.size,
|
|
22
19
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
20
|
|
|
24
21
|
var _useTheme = useTheme(),
|
|
25
22
|
mode = _useTheme.mode;
|
|
26
23
|
|
|
27
24
|
var whichLogo = function whichLogo(type) {
|
|
25
|
+
var logo = logoType ? partnerName + "-" + logoType : partnerName;
|
|
26
|
+
|
|
28
27
|
if (type && type === "dark") {
|
|
29
|
-
return
|
|
28
|
+
return logo + "-dark";
|
|
30
29
|
} else if (type && type === "light") {
|
|
31
|
-
return
|
|
30
|
+
return logo;
|
|
32
31
|
} else if (mode === "dark") {
|
|
33
|
-
return
|
|
32
|
+
return logo + "-dark";
|
|
34
33
|
} else {
|
|
35
|
-
return
|
|
34
|
+
return logo;
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
|
|
@@ -40,16 +39,20 @@ var PartnerLogo = function PartnerLogo(_ref) {
|
|
|
40
39
|
var viewBoxCoordinates = (logoViewBox == null ? void 0 : logoViewBox.split(" ")) || [];
|
|
41
40
|
var defaultWidth = viewBoxCoordinates[2];
|
|
42
41
|
var defaultHeight = viewBoxCoordinates[3];
|
|
43
|
-
return /*#__PURE__*/React.createElement(
|
|
44
|
-
width: width ? width : defaultWidth,
|
|
42
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
45
43
|
height: height ? height : defaultHeight,
|
|
44
|
+
width: width ? width : defaultWidth,
|
|
45
|
+
logoSize: size // $FlowIssue - upgrade v0.112.0
|
|
46
|
+
|
|
47
|
+
}, rest), /*#__PURE__*/React.createElement("svg", _extends({
|
|
48
|
+
className: "logo-svg",
|
|
46
49
|
viewBox: logoViewBox,
|
|
47
50
|
focusable: false // $FlowIssue - upgrade v0.112.0
|
|
48
51
|
|
|
49
52
|
}, rest), /*#__PURE__*/React.createElement("use", {
|
|
50
53
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
51
54
|
xlinkHref: "#sslogosvg-" + whichLogo(backgroundType)
|
|
52
|
-
}));
|
|
55
|
+
})));
|
|
53
56
|
};
|
|
54
57
|
|
|
55
58
|
export default PartnerLogo;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { COMMON, FLEXBOX } from "../utils/system-props";
|
|
3
|
+
import { verticalAlign } from "styled-system";
|
|
4
|
+
var sizes = {
|
|
5
|
+
mini: "12px",
|
|
6
|
+
small: "16px",
|
|
7
|
+
medium: "24px",
|
|
8
|
+
large: "32px",
|
|
9
|
+
jumbo: "64px"
|
|
10
|
+
};
|
|
11
|
+
|
|
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 + "px", logoSize ? logoSize : height + "px", logoSize ? logoSize : "", logoSize ? logoSize : width + "px", ""
|
|
14
|
+
/* PDF hack, do not remove */
|
|
15
|
+
, logoSize ? logoSize : width + "px");
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var Container = styled.span.attrs({
|
|
19
|
+
className: "logo"
|
|
20
|
+
}).withConfig({
|
|
21
|
+
displayName: "styles__Container",
|
|
22
|
+
componentId: "sc-bc87k3-0"
|
|
23
|
+
})(["display:inline-block;color:inherit;vertical-align:middle;", ";", " ", " ", ""], function (props) {
|
|
24
|
+
return stylesForSize(props.height, props.width, sizes[props.logoSize]);
|
|
25
|
+
}, COMMON, FLEXBOX, verticalAlign);
|
|
26
|
+
export default Container;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var illustrationNames = ["abacus", "analytics-offering", "astronaut", "brand-keyword", "business", "calendar-event", "calendar-reporting", "cat-error", "cat-no-access", "cat", "checkbox-alert", "coffee-cup", "compose-window", "compose", "computer-error", "connect", "contact", "conversation", "custom-branding", "customer-service", "dashboard", "exclamation-mark", "face-happy", "find-bookmark", "flask", "general-topic", "global-features", "global-trend", "hands-raised", "headset", "heartbeat-connection", "invoice", "jewel", "keyword-tracking", "lightbulb-alt", "lightbulb", "like-conversation", "link-broken", "link-messages", "link-sections", "link-upload", "listening-pendo", "listening-tour", "loading", "mailbox-empty", "mailbox-full", "network-data", "no-messages-found", "no-notifications", "notification", "notifications-onboarding", "organize-message", "outbox-queue", "outbox-reviews", "pdf", "podium", "pointer", "publish-assets", "publish-links", "puzzle-piece", "question-mark", "reporting-folder", "reporting", "review-location", "review", "robot-assembly", "robot-error", "robot-happy", "rocket", "schedule-date", "schedule-messages", "search-keywords", "search-success", "search-trends", "search", "security", "sentiment", "shopping-bag", "spark-line", "stamp", "storefront", "success", "tag-message", "tag", "team-roles", "team", "telescope", "tha-mel", "thumbs-up", "toggle-switch", "toolset-strength", "tracking-time", "twitter-messages", "twitter-profiles", "under-construction", "unsubscribe", "upward-trend", "user-task", "view-connections", "vip-list", "warning", "wifi"];
|
|
1
|
+
export var illustrationNames = ["abacus", "analytics-offering", "astronaut", "brand-keyword", "business", "calendar-event", "calendar-reporting", "cat-error", "cat-no-access", "cat", "checkbox-alert", "coffee-cup", "competitors", "compose-window", "compose", "computer-error", "connect", "contact", "conversation", "custom-branding", "customer-service", "dashboard", "exclamation-mark", "face-happy", "find-bookmark", "flask", "general-topic", "global-features", "global-trend", "grow-large", "grow", "hands-raised", "headset", "heartbeat-connection", "invoice", "jewel", "keyword-tracking", "lightbulb-alt", "lightbulb", "like-conversation", "link-broken", "link-messages", "link-sections", "link-upload", "listening-pendo", "listening-sentiment", "listening-topic-templates", "listening-tour", "listening", "loading", "mailbox-empty", "mailbox-full", "message", "network-data", "no-messages-found", "no-notifications", "notification", "notifications-onboarding", "organize-message", "outbox-queue", "outbox-reviews", "pdf", "podium", "pointer", "publish-assets", "publish-links", "puzzle-piece", "question-mark", "reporting-folder", "reporting", "review-location", "review", "robot-assembly", "robot-error", "robot-happy", "rocket", "schedule-date", "schedule-messages", "search-keywords", "search-success", "search-trends", "search", "security", "sentiment", "shopping-bag", "spark-line", "stamp", "storefront", "success", "tag-message", "tag", "team-roles", "team", "telescope", "tha-mel", "thumbs-up", "toggle-switch", "toolset-strength", "tracking-time", "twitter-messages", "twitter-profiles", "under-construction", "unsubscribe", "upward-trend", "user-task", "view-connections", "vip-list", "warning", "wifi"];
|