@sproutsocial/racine 12.5.0 → 12.8.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 +18 -0
- package/README.md +34 -12
- package/__flow__/EnumIllustrationNames.js +1 -1
- package/__flow__/IllustrationViewBoxes.js +1 -1
- package/__flow__/PartnerLogo/index.js +41 -4
- package/__flow__/PartnerLogo/index.stories.js +17 -0
- package/__flow__/SpotIllustration/illustrationNames.js +2 -0
- package/__flow__/SpotIllustration/index.stories.js +10 -0
- package/__flow__/SpotIllustration/spotIllustrations/global-trend.svg +5 -0
- package/__flow__/SpotIllustration/spotIllustrations/tag.svg +5 -0
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +5 -0
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +5 -0
- package/commonjs/IllustrationViewBoxes.js +35 -33
- package/commonjs/PartnerLogo/index.js +31 -5
- package/commonjs/SpotIllustration/illustrationNames.js +1 -1
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +5 -0
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +5 -0
- package/dist/illustration.svg +1 -1
- package/dist/illustrationList.js +1 -1
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +10 -0
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +10 -0
- package/lib/IllustrationViewBoxes.js +2 -0
- package/lib/PartnerLogo/index.js +25 -4
- package/lib/SpotIllustration/illustrationNames.js +1 -1
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +5 -0
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +5 -0
- package/package.json +1 -1
package/dist/illustrationList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = ["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","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","team-roles","team","telescope","tha-mel","thumbs-up","toggle-switch","toolset-strength","tracking-time","twitter-messages","twitter-profiles","unsubscribe","upward-trend","user-task","view-connections","vip-list","warning","wifi"];
|
|
1
|
+
module.exports = ["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","unsubscribe","upward-trend","user-task","view-connections","vip-list","warning","wifi"];
|
|
@@ -464,6 +464,11 @@ $theme: (
|
|
|
464
464
|
"secondary": (
|
|
465
465
|
"background": (
|
|
466
466
|
"base": #273333
|
|
467
|
+
),
|
|
468
|
+
"widget": (
|
|
469
|
+
"background": (
|
|
470
|
+
"base": #364141
|
|
471
|
+
)
|
|
467
472
|
)
|
|
468
473
|
),
|
|
469
474
|
"settings": (
|
|
@@ -825,6 +830,11 @@ $theme: (
|
|
|
825
830
|
"secondary": (
|
|
826
831
|
"background": (
|
|
827
832
|
"base": #273333
|
|
833
|
+
),
|
|
834
|
+
"widget": (
|
|
835
|
+
"background": (
|
|
836
|
+
"base": #364141
|
|
837
|
+
)
|
|
828
838
|
)
|
|
829
839
|
),
|
|
830
840
|
"settings": (
|
|
@@ -464,6 +464,11 @@ $theme: (
|
|
|
464
464
|
"secondary": (
|
|
465
465
|
"background": (
|
|
466
466
|
"base": #364141
|
|
467
|
+
),
|
|
468
|
+
"widget": (
|
|
469
|
+
"background": (
|
|
470
|
+
"base": #162020
|
|
471
|
+
)
|
|
467
472
|
)
|
|
468
473
|
),
|
|
469
474
|
"settings": (
|
|
@@ -825,6 +830,11 @@ $theme: (
|
|
|
825
830
|
"secondary": (
|
|
826
831
|
"background": (
|
|
827
832
|
"base": #364141
|
|
833
|
+
),
|
|
834
|
+
"widget": (
|
|
835
|
+
"background": (
|
|
836
|
+
"base": #162020
|
|
837
|
+
)
|
|
828
838
|
)
|
|
829
839
|
),
|
|
830
840
|
"settings": (
|
|
@@ -26,6 +26,7 @@ module.exports = {
|
|
|
26
26
|
"flask": "0 0 255 230",
|
|
27
27
|
"general-topic": "0 0 101 63",
|
|
28
28
|
"global-features": "0 0 239 226",
|
|
29
|
+
"global-trend": "0 0 56 42",
|
|
29
30
|
"hands-raised": "0 0 192 176",
|
|
30
31
|
"headset": "0 0 106 54",
|
|
31
32
|
"heartbeat-connection": "0 0 335 201",
|
|
@@ -81,6 +82,7 @@ module.exports = {
|
|
|
81
82
|
"storefront": "0 0 111 45",
|
|
82
83
|
"success": "0 0 200 200",
|
|
83
84
|
"tag-message": "0 0 346 226",
|
|
85
|
+
"tag": "0 0 62 42",
|
|
84
86
|
"team-roles": "0 0 358 298",
|
|
85
87
|
"team": "0 0 347 249",
|
|
86
88
|
"telescope": "0 0 272 255",
|
package/lib/PartnerLogo/index.js
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
var _excluded = ["partnerName", "backgroundType", "height", "width"];
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
+
|
|
1
7
|
import React from "react";
|
|
2
8
|
import logoViewBoxes from "../LogoViewBoxes";
|
|
3
9
|
import { useTheme } from "styled-components";
|
|
10
|
+
import styled from "styled-components";
|
|
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);
|
|
4
16
|
|
|
5
17
|
var PartnerLogo = function PartnerLogo(_ref) {
|
|
6
18
|
var partnerName = _ref.partnerName,
|
|
7
|
-
backgroundType = _ref.backgroundType
|
|
19
|
+
backgroundType = _ref.backgroundType,
|
|
20
|
+
height = _ref.height,
|
|
21
|
+
width = _ref.width,
|
|
22
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
8
23
|
|
|
9
24
|
var _useTheme = useTheme(),
|
|
10
25
|
mode = _useTheme.mode;
|
|
@@ -22,10 +37,16 @@ var PartnerLogo = function PartnerLogo(_ref) {
|
|
|
22
37
|
};
|
|
23
38
|
|
|
24
39
|
var logoViewBox = logoViewBoxes[whichLogo(backgroundType)];
|
|
25
|
-
|
|
40
|
+
var viewBoxCoordinates = (logoViewBox == null ? void 0 : logoViewBox.split(" ")) || [];
|
|
41
|
+
var defaultWidth = viewBoxCoordinates[2];
|
|
42
|
+
var defaultHeight = viewBoxCoordinates[3];
|
|
43
|
+
return /*#__PURE__*/React.createElement(StyledSVG, _extends({
|
|
44
|
+
width: width ? width : defaultWidth,
|
|
45
|
+
height: height ? height : defaultHeight,
|
|
26
46
|
viewBox: logoViewBox,
|
|
27
|
-
focusable: false
|
|
28
|
-
|
|
47
|
+
focusable: false // $FlowIssue - upgrade v0.112.0
|
|
48
|
+
|
|
49
|
+
}, rest), /*#__PURE__*/React.createElement("use", {
|
|
29
50
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
30
51
|
xlinkHref: "#sslogosvg-" + whichLogo(backgroundType)
|
|
31
52
|
}));
|
|
@@ -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", "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", "team-roles", "team", "telescope", "tha-mel", "thumbs-up", "toggle-switch", "toolset-strength", "tracking-time", "twitter-messages", "twitter-profiles", "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", "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", "unsubscribe", "upward-trend", "user-task", "view-connections", "vip-list", "warning", "wifi"];
|