@sproutsocial/racine 12.10.0 → 12.13.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 (50) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/__flow__/Banner/index.js +47 -41
  3. package/__flow__/Banner/index.stories.js +2 -2
  4. package/__flow__/Banner/index.test.js +10 -1
  5. package/__flow__/EnumIllustrationNames.js +1 -1
  6. package/__flow__/EnumLogoNames.js +1 -1
  7. package/__flow__/IllustrationViewBoxes.js +1 -1
  8. package/__flow__/LogoViewBoxes.js +1 -1
  9. package/__flow__/PartnerLogo/TypePartnerNames.js +2 -0
  10. package/__flow__/PartnerLogo/index.stories.js +2 -0
  11. package/__flow__/PartnerLogo/partnerLogos/facebook-groups-dark.svg +3 -0
  12. package/__flow__/PartnerLogo/partnerLogos/facebook-groups.svg +3 -0
  13. package/__flow__/PartnerLogo/partnerLogos/twitter-audience-network-dark.svg +3 -0
  14. package/__flow__/PartnerLogo/partnerLogos/twitter-audience-network.svg +3 -0
  15. package/__flow__/SpotIllustration/illustrationNames.js +1 -0
  16. package/__flow__/SpotIllustration/spotIllustrations/under-construction.svg +12 -0
  17. package/__flow__/Stack/TypeSpaceLiterals.js +13 -0
  18. package/__flow__/Stack/index.js +1 -1
  19. package/__flow__/themes/dark/theme.js +3 -0
  20. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +25 -0
  21. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +25 -0
  22. package/__flow__/themes/light/theme.js +9 -11
  23. package/__flow__/types/theme.colors.flow.js +3 -0
  24. package/__flow__/types/theme.flow.js +2 -0
  25. package/commonjs/Banner/index.js +64 -78
  26. package/commonjs/IllustrationViewBoxes.js +1 -0
  27. package/commonjs/LogoViewBoxes.js +4 -0
  28. package/commonjs/SpotIllustration/illustrationNames.js +1 -1
  29. package/commonjs/Stack/TypeSpaceLiterals.js +1 -0
  30. package/commonjs/themes/dark/theme.js +6 -0
  31. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +26 -1
  32. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +26 -1
  33. package/commonjs/themes/light/theme.js +11 -0
  34. package/dist/illustration.svg +1 -1
  35. package/dist/illustrationList.js +1 -1
  36. package/dist/logo.svg +1 -1
  37. package/dist/logoList.js +1 -1
  38. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +46 -0
  39. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +46 -0
  40. package/lib/Banner/index.js +67 -78
  41. package/lib/IllustrationViewBoxes.js +1 -0
  42. package/lib/LogoViewBoxes.js +4 -0
  43. package/lib/SpotIllustration/illustrationNames.js +1 -1
  44. package/lib/Stack/TypeSpaceLiterals.js +0 -0
  45. package/lib/themes/dark/theme.js +6 -0
  46. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +24 -0
  47. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +24 -0
  48. package/lib/themes/light/theme.js +11 -0
  49. package/lib/types/theme.flow.js +1 -1
  50. package/package.json +1 -1
@@ -4,91 +4,80 @@ 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";
15
-
16
- var Banner = /*#__PURE__*/function (_React$Component) {
17
- _inheritsLoose(Banner, _React$Component);
18
-
19
- function Banner() {
20
- return _React$Component.apply(this, arguments) || this;
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;
21
55
  }
56
+ };
22
57
 
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
58
+ var Banner = function Banner(_ref) {
59
+ var _ref$type = _ref.type,
60
+ type = _ref$type === void 0 ? "error" : _ref$type,
61
+ text = _ref.text,
62
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
80
63
 
81
- }, rest), /*#__PURE__*/React.createElement(Box, {
82
- display: "flex",
83
- alignItems: "center",
84
- width: 1
85
- }, this.getBannerIcon(), text));
86
- };
64
+ var bannerType = type === "danger" ? "error" : type;
87
65
 
88
- return Banner;
89
- }(React.Component);
66
+ if (type === "danger") {
67
+ console.warn("Warning: The `danger` type has been deprecated on the Banner component. Please use `error` instead.");
68
+ }
90
69
 
91
- Banner.defaultProps = {
92
- type: "danger"
70
+ return /*#__PURE__*/React.createElement(Container, _extends({
71
+ type: bannerType,
72
+ "data-qa-alert": "",
73
+ "data-qa-alert-type": bannerType,
74
+ "data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
75
+
76
+ }, rest), /*#__PURE__*/React.createElement(Box, {
77
+ display: "flex",
78
+ alignItems: "center",
79
+ width: 1
80
+ }, getBannerIcon(bannerType), text));
93
81
  };
94
- export { Banner as default };
82
+
83
+ export default Banner;
@@ -93,6 +93,7 @@ module.exports = {
93
93
  "tracking-time": "0 0 360 195",
94
94
  "twitter-messages": "0 0 220 228",
95
95
  "twitter-profiles": "0 0 335 187",
96
+ "under-construction": "0 0 343 243",
96
97
  "unsubscribe": "0 0 212 163",
97
98
  "upward-trend": "0 0 65 49",
98
99
  "user-task": "0 0 313 176",
@@ -6,6 +6,8 @@ module.exports = {
6
6
  "dropbox-dark": "0 0 140 119",
7
7
  "dropbox": "0 0 140 119",
8
8
  "facebook-dark": "0 0 141 139",
9
+ "facebook-groups-dark": "0 0 140 140",
10
+ "facebook-groups": "0 0 140 140",
9
11
  "facebook-shops-dark": "0 0 141 155",
10
12
  "facebook-shops": "0 0 141 155",
11
13
  "facebook": "0 0 141 139",
@@ -49,6 +51,8 @@ module.exports = {
49
51
  "tripadvisor": "0 0 140 140",
50
52
  "tumblr-dark": "0 0 140 140",
51
53
  "tumblr": "0 0 140 140",
54
+ "twitter-audience-network-dark": "0 0 140 140",
55
+ "twitter-audience-network": "0 0 140 140",
52
56
  "twitter-dark": "0 0 140 114",
53
57
  "twitter": "0 0 140 114",
54
58
  "whatsapp-dark": "0 0 140 140",
@@ -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", "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", "under-construction", "unsubscribe", "upward-trend", "user-task", "view-connections", "vip-list", "warning", "wifi"];
File without changes
@@ -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,
@@ -69,6 +69,28 @@ export var analytics = {
69
69
  }
70
70
  }
71
71
  };
72
+ export var listening = {
73
+ topicTypes: {
74
+ customTopic: baseDarkTheme.colors.teal[400],
75
+ brandHealth: baseDarkTheme.colors.red[400],
76
+ industryInsights: baseDarkTheme.colors.green[400],
77
+ competitiveAnalysis: baseDarkTheme.colors.yellow[400],
78
+ campaignAnalysis: baseDarkTheme.colors.magenta[400],
79
+ eventMonitoring: baseDarkTheme.colors.aqua[400],
80
+ featuredTopic: baseDarkTheme.colors.green[400]
81
+ },
82
+ worldMap: {
83
+ empty: baseDarkTheme.colors.neutral[200],
84
+ q0: baseDarkTheme.colors.purple[200],
85
+ q1: baseDarkTheme.colors.purple[300],
86
+ q2: baseDarkTheme.colors.purple[400],
87
+ q3: baseDarkTheme.colors.purple[500],
88
+ q4: baseDarkTheme.colors.purple[600],
89
+ q5: baseDarkTheme.colors.purple[700],
90
+ q6: baseDarkTheme.colors.purple[800],
91
+ q7: baseDarkTheme.colors.purple[900]
92
+ }
93
+ };
72
94
  export var growth = {
73
95
  education: {
74
96
  decorative: {
@@ -79,6 +101,7 @@ export var growth = {
79
101
  opportunity: {
80
102
  background: {
81
103
  base: baseDarkTheme.colors.purple[700],
104
+ secondary: baseDarkTheme.colors.neutral[700],
82
105
  hover: baseDarkTheme.colors.purple[500]
83
106
  },
84
107
  button: {
@@ -152,6 +175,7 @@ var darkTheme = _extends({}, baseDarkTheme, {
152
175
  navigation: navigation,
153
176
  datePicker: datePicker,
154
177
  analytics: analytics,
178
+ listening: listening,
155
179
  growth: growth,
156
180
  cardControl: cardControl
157
181
  })
@@ -69,6 +69,28 @@ export var analytics = {
69
69
  }
70
70
  }
71
71
  };
72
+ export var listening = {
73
+ topicTypes: {
74
+ customTopic: baseLightTheme.colors.blue[400],
75
+ brandHealth: baseLightTheme.colors.red[400],
76
+ industryInsights: baseLightTheme.colors.green[400],
77
+ competitiveAnalysis: baseLightTheme.colors.yellow[400],
78
+ campaignAnalysis: baseLightTheme.colors.magenta[400],
79
+ eventMonitoring: baseLightTheme.colors.aqua[400],
80
+ featuredTopic: baseLightTheme.colors.green[400]
81
+ },
82
+ worldMap: {
83
+ empty: baseLightTheme.colors.neutral[200],
84
+ q0: baseLightTheme.colors.purple[200],
85
+ q1: baseLightTheme.colors.purple[300],
86
+ q2: baseLightTheme.colors.purple[400],
87
+ q3: baseLightTheme.colors.purple[500],
88
+ q4: baseLightTheme.colors.purple[600],
89
+ q5: baseLightTheme.colors.purple[700],
90
+ q6: baseLightTheme.colors.purple[800],
91
+ q7: baseLightTheme.colors.purple[900]
92
+ }
93
+ };
72
94
  export var growth = {
73
95
  education: {
74
96
  decorative: {
@@ -79,6 +101,7 @@ export var growth = {
79
101
  opportunity: {
80
102
  background: {
81
103
  base: baseLightTheme.colors.purple[700],
104
+ secondary: baseLightTheme.colors.neutral[900],
82
105
  hover: baseLightTheme.colors.purple[300]
83
106
  },
84
107
  button: {
@@ -152,6 +175,7 @@ var lightTheme = _extends({}, baseLightTheme, {
152
175
  navigation: navigation,
153
176
  datePicker: datePicker,
154
177
  analytics: analytics,
178
+ listening: listening,
155
179
  growth: growth,
156
180
  cardControl: cardControl
157
181
  })
@@ -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,
@@ -277,6 +283,11 @@ export var fontWeights = {
277
283
  bold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_BOLD,
278
284
  extrabold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_EXTRA_BOLD
279
285
  };
286
+ /**
287
+ * @deprecated
288
+ * Import from `Stack/TypeSpaceLiterals` instead.
289
+ */
290
+
280
291
  export var space = {
281
292
  "0": SPACE.SPACE_SIZE_0,
282
293
  "100": SPACE.SPACE_SIZE_100,
@@ -1,2 +1,2 @@
1
1
  import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/light/theme";
2
- import { datePicker, navigation, analytics, growth, cardControl } from "../themes/extendedThemes/sproutTheme/light/theme";
2
+ import { datePicker, navigation, analytics, listening, growth, cardControl } from "../themes/extendedThemes/sproutTheme/light/theme";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "12.10.0",
3
+ "version": "12.13.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",