@sproutsocial/racine 12.12.0 → 12.15.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/__flow__/Banner/index.js +50 -43
  3. package/__flow__/Banner/index.stories.js +2 -2
  4. package/__flow__/Banner/index.test.js +20 -1
  5. package/__flow__/EnumIconNames.js +1 -1
  6. package/__flow__/EnumIllustrationNames.js +1 -1
  7. package/__flow__/EnumLogoNames.js +1 -1
  8. package/__flow__/IconViewBoxes.js +1 -1
  9. package/__flow__/IllustrationViewBoxes.js +1 -1
  10. package/__flow__/LogoViewBoxes.js +1 -1
  11. package/__flow__/PartnerLogo/TypePartnerNames.js +2 -0
  12. package/__flow__/PartnerLogo/index.stories.js +2 -0
  13. package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network-dark.svg +3 -0
  14. package/__flow__/PartnerLogo/partnerLogos/facebook-audience-network.svg +3 -0
  15. package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network-dark.svg +3 -0
  16. package/__flow__/PartnerLogo/partnerLogos/linkedin-audience-network.svg +3 -0
  17. package/__flow__/SpotIllustration/illustrationNames.js +7 -0
  18. package/__flow__/SpotIllustration/index.stories.js +3 -0
  19. package/__flow__/SpotIllustration/spotIllustrations/competitors.svg +29 -0
  20. package/__flow__/SpotIllustration/spotIllustrations/grow-large.svg +12 -0
  21. package/__flow__/SpotIllustration/spotIllustrations/grow.svg +5 -0
  22. package/__flow__/SpotIllustration/spotIllustrations/listening-sentiment.svg +27 -0
  23. package/__flow__/SpotIllustration/spotIllustrations/listening-topic-templates.svg +26 -0
  24. package/__flow__/SpotIllustration/spotIllustrations/listening.svg +9 -0
  25. package/__flow__/SpotIllustration/spotIllustrations/message.svg +6 -0
  26. package/__flow__/themes/dark/decorative-palettes.js +1 -1
  27. package/__flow__/themes/dark/theme.js +3 -0
  28. package/__flow__/themes/light/theme.js +3 -0
  29. package/__flow__/types/theme.colors.flow.js +3 -0
  30. package/commonjs/Banner/index.js +66 -78
  31. package/commonjs/IconViewBoxes.js +1 -0
  32. package/commonjs/IllustrationViewBoxes.js +7 -0
  33. package/commonjs/LogoViewBoxes.js +4 -0
  34. package/commonjs/SpotIllustration/illustrationNames.js +1 -1
  35. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  36. package/commonjs/themes/dark/theme.js +6 -0
  37. package/commonjs/themes/light/theme.js +6 -0
  38. package/dist/icon.svg +1 -1
  39. package/dist/iconList.js +1 -1
  40. package/dist/illustration.svg +1 -1
  41. package/dist/illustrationList.js +1 -1
  42. package/dist/logo.svg +1 -1
  43. package/dist/logoList.js +1 -1
  44. package/dist/themes/dark/theme.scss +2 -2
  45. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +2 -2
  46. package/lib/Banner/index.js +70 -79
  47. package/lib/IconViewBoxes.js +1 -0
  48. package/lib/IllustrationViewBoxes.js +7 -0
  49. package/lib/LogoViewBoxes.js +4 -0
  50. package/lib/SpotIllustration/illustrationNames.js +1 -1
  51. package/lib/themes/dark/decorative-palettes.js +1 -1
  52. package/lib/themes/dark/theme.js +6 -0
  53. package/lib/themes/light/theme.js +6 -0
  54. package/package.json +1 -1
@@ -4,91 +4,82 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
4
4
 
5
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
6
 
7
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
8
-
9
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10
-
11
7
  import * as React from "react";
12
8
  import Icon from "../Icon";
13
9
  import Container from "./styles";
14
10
  import Box from "../Box";
11
+ /**
12
+ * @deprecated
13
+ * Use banner type "error" instead of "danger"
14
+ */
15
+
16
+ var getBannerIcon = function getBannerIcon(type) {
17
+ switch (type) {
18
+ case "success":
19
+ return /*#__PURE__*/React.createElement(Icon, {
20
+ name: "circle-check-no-fill",
21
+ className: "Icon",
22
+ fixedWidth: true
23
+ });
24
+
25
+ case "info":
26
+ return /*#__PURE__*/React.createElement(Icon, {
27
+ name: "info-white",
28
+ className: "Icon",
29
+ fixedWidth: true
30
+ });
31
+
32
+ case "error":
33
+ return /*#__PURE__*/React.createElement(Icon, {
34
+ name: "triangle",
35
+ className: "Icon",
36
+ fixedWidth: true
37
+ });
38
+
39
+ case "warning":
40
+ return /*#__PURE__*/React.createElement(Icon, {
41
+ name: "triangle",
42
+ className: "Icon",
43
+ fixedWidth: true
44
+ });
45
+
46
+ case "opportunity":
47
+ return /*#__PURE__*/React.createElement(Icon, {
48
+ name: "sparkles",
49
+ className: "Icon",
50
+ fixedWidth: true
51
+ });
52
+
53
+ default:
54
+ return;
55
+ }
56
+ };
57
+ /** TODO: change to 'info' type by default in future version */
15
58
 
16
- var Banner = /*#__PURE__*/function (_React$Component) {
17
- _inheritsLoose(Banner, _React$Component);
18
59
 
19
- function Banner() {
20
- return _React$Component.apply(this, arguments) || this;
60
+ var Banner = function Banner(_ref) {
61
+ var _ref$type = _ref.type,
62
+ type = _ref$type === void 0 ? "error" : _ref$type,
63
+ text = _ref.text,
64
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
65
+
66
+ var bannerType = type === "danger" ? "error" : type;
67
+
68
+ if (type === "danger") {
69
+ console.warn("Warning: The `danger` type has been deprecated on the Banner component. Please use `error` instead.");
21
70
  }
22
71
 
23
- var _proto = Banner.prototype;
24
-
25
- _proto.getBannerIcon = function getBannerIcon() {
26
- switch (this.props.type) {
27
- case "success":
28
- return /*#__PURE__*/React.createElement(Icon, {
29
- name: "circle-check-no-fill",
30
- className: "Icon",
31
- fixedWidth: true
32
- });
33
-
34
- case "info":
35
- return /*#__PURE__*/React.createElement(Icon, {
36
- name: "info-white",
37
- className: "Icon",
38
- fixedWidth: true
39
- });
40
-
41
- case "danger":
42
- case "error":
43
- return /*#__PURE__*/React.createElement(Icon, {
44
- name: "triangle",
45
- className: "Icon",
46
- fixedWidth: true
47
- });
48
-
49
- case "warning":
50
- return /*#__PURE__*/React.createElement(Icon, {
51
- name: "triangle",
52
- className: "Icon",
53
- fixedWidth: true
54
- });
55
-
56
- case "opportunity":
57
- return /*#__PURE__*/React.createElement(Icon, {
58
- name: "sparkles",
59
- className: "Icon",
60
- fixedWidth: true
61
- });
62
-
63
- default:
64
- return;
65
- }
66
- };
67
-
68
- _proto.render = function render() {
69
- var _this$props = this.props,
70
- type = _this$props.type,
71
- text = _this$props.text,
72
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
73
-
74
- return /*#__PURE__*/React.createElement(Container // danger needs to be properly deprecated and removed DS-1094
75
- , _extends({
76
- type: type === "danger" ? "error" : type,
77
- "data-qa-alert": "",
78
- "data-qa-alert-type": type,
79
- "data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
80
-
81
- }, rest), /*#__PURE__*/React.createElement(Box, {
82
- display: "flex",
83
- alignItems: "center",
84
- width: 1
85
- }, this.getBannerIcon(), text));
86
- };
87
-
88
- return Banner;
89
- }(React.Component);
90
-
91
- Banner.defaultProps = {
92
- type: "danger"
72
+ return /*#__PURE__*/React.createElement(Container, _extends({
73
+ type: type,
74
+ "data-qa-alert": "",
75
+ "data-qa-alert-type": type,
76
+ "data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
77
+
78
+ }, rest), /*#__PURE__*/React.createElement(Box, {
79
+ display: "flex",
80
+ alignItems: "center",
81
+ width: 1
82
+ }, getBannerIcon(bannerType), text));
93
83
  };
94
- export { Banner as default };
84
+
85
+ export default Banner;
@@ -329,6 +329,7 @@ module.exports = {
329
329
  "text": "0 0 8 16",
330
330
  "tiktok": "0 0 16 18",
331
331
  "times": "0 0 16 22",
332
+ "tools": "0 0 67 67",
332
333
  "trash-can-outline": "0 0 14 16",
333
334
  "trash-can": "0 0 14 16",
334
335
  "trend-down": "0 0 18 18",
@@ -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",
@@ -5,6 +5,8 @@ module.exports = {
5
5
  "canva": "0 0 140 140",
6
6
  "dropbox-dark": "0 0 140 119",
7
7
  "dropbox": "0 0 140 119",
8
+ "facebook-audience-network-dark": "0 0 140 145",
9
+ "facebook-audience-network": "0 0 140 145",
8
10
  "facebook-dark": "0 0 141 139",
9
11
  "facebook-groups-dark": "0 0 140 140",
10
12
  "facebook-groups": "0 0 140 140",
@@ -27,6 +29,8 @@ module.exports = {
27
29
  "hubspot": "0 0 140 156",
28
30
  "instagram-dark": "0 0 140 140",
29
31
  "instagram": "0 0 140 140",
32
+ "linkedin-audience-network-dark": "0 0 140 141",
33
+ "linkedin-audience-network": "0 0 140 141",
30
34
  "linkedin-dark": "0 0 140 140",
31
35
  "linkedin": "0 0 140 140",
32
36
  "marketo-dark": "0 0 140 164",
@@ -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"];
@@ -10,7 +10,7 @@ export var blue = {
10
10
  foreground: COLORS.COLOR_BLUE_100
11
11
  };
12
12
  export var purple = {
13
- background: COLORS.COLOR_PURPLE_800,
13
+ background: COLORS.COLOR_PURPLE_900,
14
14
  highlight: COLORS.COLOR_PURPLE_500,
15
15
  foreground: COLORS.COLOR_PURPLE_100
16
16
  };
@@ -27,6 +27,8 @@ var colors = _extends({}, lightTheme.colors, {
27
27
  error: red.background,
28
28
  info: blue.background,
29
29
  opportunity: purple.background,
30
+
31
+ /** @deprecated Use "error" instead of "danger" */
30
32
  danger: red.background,
31
33
  decorative: {
32
34
  green: green.background,
@@ -51,6 +53,8 @@ var colors = _extends({}, lightTheme.colors, {
51
53
  success: green.highlight,
52
54
  warning: yellow.highlight,
53
55
  error: red.highlight,
56
+
57
+ /** @deprecated Use "error" instead of "danger" */
54
58
  danger: red.highlight,
55
59
  info: blue.highlight,
56
60
  opportunity: purple.highlight,
@@ -174,6 +178,8 @@ var colors = _extends({}, lightTheme.colors, {
174
178
  success: green.foreground,
175
179
  warning: yellow.foreground,
176
180
  error: red.foreground,
181
+
182
+ /** @deprecated Use "error" instead of "danger" */
177
183
  danger: red.foreground,
178
184
  info: blue.foreground,
179
185
  opportunity: purple.foreground,
@@ -28,6 +28,8 @@ var colors = _extends({
28
28
  error: red.background,
29
29
  info: blue.background,
30
30
  opportunity: purple.background,
31
+
32
+ /** @deprecated Use "error" instead of "danger" */
31
33
  danger: red.background,
32
34
  decorative: {
33
35
  green: green.background,
@@ -52,6 +54,8 @@ var colors = _extends({
52
54
  success: green.highlight,
53
55
  warning: yellow.highlight,
54
56
  error: red.highlight,
57
+
58
+ /** @deprecated Use "error" instead of "danger" */
55
59
  danger: red.highlight,
56
60
  info: blue.highlight,
57
61
  opportunity: purple.highlight,
@@ -175,6 +179,8 @@ var colors = _extends({
175
179
  success: green.foreground,
176
180
  warning: yellow.foreground,
177
181
  error: red.foreground,
182
+
183
+ /** @deprecated Use "error" instead of "danger" */
178
184
  danger: red.foreground,
179
185
  info: blue.foreground,
180
186
  opportunity: purple.foreground,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "12.12.0",
3
+ "version": "12.15.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",