@sproutsocial/racine 12.18.0 → 12.20.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 +20 -0
- package/__flow__/EnumLogoNames.js +1 -1
- package/__flow__/Icon/index.stories.js +33 -0
- package/__flow__/Icon/styles.js +0 -11
- package/__flow__/LoaderButton/index.js +22 -4
- package/__flow__/LoaderButton/index.stories.js +28 -0
- package/__flow__/LogoViewBoxes.js +1 -1
- package/__flow__/Menu/__snapshots__/index.test.js.snap +0 -9
- package/__flow__/PartnerLogo/TypePartnerNames.js +2 -1
- package/__flow__/PartnerLogo/index.js +1 -7
- package/__flow__/PartnerLogo/index.stories.js +1 -0
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-dark.svg +5 -3
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-lockup-dark.svg +14 -0
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce-lockup.svg +14 -0
- package/__flow__/PartnerLogo/partnerLogos/bigcommerce.svg +5 -3
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-dark.svg +7 -0
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-lockup-dark.svg +19 -0
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-lockup.svg +19 -0
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-wordmark-dark.svg +14 -0
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial-wordmark.svg +14 -0
- package/__flow__/PartnerLogo/partnerLogos/sproutsocial.svg +7 -0
- package/__flow__/PartnerLogo/styles.js +0 -12
- package/__flow__/themes/dark/theme.js +2 -2
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +16 -1
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +12 -0
- package/__flow__/themes/light/theme.js +2 -2
- package/commonjs/Icon/styles.js +1 -3
- package/commonjs/LoaderButton/index.js +31 -4
- package/commonjs/LogoViewBoxes.js +10 -2
- package/commonjs/PartnerLogo/index.js +3 -4
- package/commonjs/PartnerLogo/styles.js +1 -3
- package/commonjs/themes/dark/theme.js +2 -2
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +16 -1
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +12 -0
- package/commonjs/themes/light/theme.js +2 -2
- 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 +28 -4
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +26 -2
- package/dist/themes/light/theme.scss +2 -2
- package/lib/Icon/styles.js +1 -3
- package/lib/LoaderButton/index.js +32 -4
- package/lib/LogoViewBoxes.js +10 -2
- package/lib/PartnerLogo/index.js +3 -4
- package/lib/PartnerLogo/styles.js +1 -3
- package/lib/themes/dark/theme.js +2 -2
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +16 -1
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +12 -0
- package/lib/themes/light/theme.js +2 -2
- package/package.json +1 -1
|
@@ -29,14 +29,37 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
// TODO: This is a temporary solution to get the loader button to work with dark mode
|
|
33
|
+
var getColor = function getColor(appearance, themeColorMode) {
|
|
34
|
+
var selectColorBasedOnMode = themeColorMode === "dark" ? "light" : "dark";
|
|
35
|
+
|
|
33
36
|
switch (appearance) {
|
|
34
37
|
/** "default" is @deprecated in favour of unstyled */
|
|
35
38
|
case "default":
|
|
39
|
+
return selectColorBasedOnMode;
|
|
40
|
+
|
|
36
41
|
case "unstyled":
|
|
37
|
-
|
|
42
|
+
return selectColorBasedOnMode;
|
|
43
|
+
|
|
44
|
+
case "primary":
|
|
45
|
+
return "light";
|
|
46
|
+
|
|
38
47
|
case "secondary":
|
|
39
|
-
return
|
|
48
|
+
return selectColorBasedOnMode;
|
|
49
|
+
|
|
50
|
+
case "destructive":
|
|
51
|
+
return "light";
|
|
52
|
+
|
|
53
|
+
case "placeholder":
|
|
54
|
+
return selectColorBasedOnMode;
|
|
55
|
+
|
|
56
|
+
case "pill":
|
|
57
|
+
return selectColorBasedOnMode;
|
|
58
|
+
|
|
59
|
+
case "outline":
|
|
60
|
+
// This case doesn't even make sense.... There's no outline button
|
|
61
|
+
// TODO: investigate if this is even used anywhere
|
|
62
|
+
return "light";
|
|
40
63
|
|
|
41
64
|
default:
|
|
42
65
|
return "light";
|
|
@@ -63,6 +86,10 @@ var LoaderButton = function LoaderButton(_ref) {
|
|
|
63
86
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
64
87
|
|
|
65
88
|
var isLoading = Boolean(_isLoading);
|
|
89
|
+
|
|
90
|
+
var _useTheme = (0, _styledComponents.useTheme)(),
|
|
91
|
+
themeColorMode = _useTheme.mode;
|
|
92
|
+
|
|
66
93
|
return /*#__PURE__*/React.createElement(_Button.default, _extends({
|
|
67
94
|
disabled: disabled || isLoading,
|
|
68
95
|
appearance: appearance,
|
|
@@ -83,7 +110,7 @@ var LoaderButton = function LoaderButton(_ref) {
|
|
|
83
110
|
text: loaderLabel,
|
|
84
111
|
size: "small",
|
|
85
112
|
delay: false,
|
|
86
|
-
color: getColor(appearance)
|
|
113
|
+
color: getColor(appearance, themeColorMode)
|
|
87
114
|
}))));
|
|
88
115
|
};
|
|
89
116
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
"bigcommerce-dark": "0 0
|
|
5
|
-
"bigcommerce": "0 0
|
|
4
|
+
"bigcommerce-dark": "0 0 140 140",
|
|
5
|
+
"bigcommerce-lockup-dark": "0 0 291 66",
|
|
6
|
+
"bigcommerce-lockup": "0 0 291 66",
|
|
7
|
+
"bigcommerce": "0 0 140 140",
|
|
6
8
|
"bitly-dark": "0 0 140 64",
|
|
7
9
|
"bitly": "0 0 140 64",
|
|
8
10
|
"canva-dark": "0 0 140 140",
|
|
@@ -57,6 +59,12 @@ module.exports = {
|
|
|
57
59
|
"shopify": "0 0 140 159",
|
|
58
60
|
"slack-dark": "0 0 140 140",
|
|
59
61
|
"slack": "0 0 140 140",
|
|
62
|
+
"sproutsocial-dark": "0 0 140 174",
|
|
63
|
+
"sproutsocial-lockup-dark": "0 0 291 58",
|
|
64
|
+
"sproutsocial-lockup": "0 0 291 58",
|
|
65
|
+
"sproutsocial-wordmark-dark": "0 0 320 52",
|
|
66
|
+
"sproutsocial-wordmark": "0 0 320 52",
|
|
67
|
+
"sproutsocial": "0 0 140 174",
|
|
60
68
|
"tiktok-dark": "0 0 140 159",
|
|
61
69
|
"tiktok": "0 0 140 159",
|
|
62
70
|
"tripadvisor-dark": "0 0 140 140",
|
|
@@ -56,12 +56,11 @@ var PartnerLogo = function PartnerLogo(_ref) {
|
|
|
56
56
|
width: width ? width : defaultWidth + "px",
|
|
57
57
|
logoSize: size // $FlowIssue - upgrade v0.112.0
|
|
58
58
|
|
|
59
|
-
}, rest), /*#__PURE__*/_react.default.createElement("svg",
|
|
59
|
+
}, rest), /*#__PURE__*/_react.default.createElement("svg", {
|
|
60
60
|
className: "logo-svg",
|
|
61
61
|
viewBox: logoViewBox,
|
|
62
|
-
focusable: false
|
|
63
|
-
|
|
64
|
-
}, rest), /*#__PURE__*/_react.default.createElement("use", {
|
|
62
|
+
focusable: false
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("use", {
|
|
65
64
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
66
65
|
xlinkHref: "#sslogosvg-" + whichLogo(backgroundType)
|
|
67
66
|
})));
|
|
@@ -22,9 +22,7 @@ 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:", ";}
|
|
26
|
-
/* PDF hack, do not remove */
|
|
27
|
-
, logoSize ? logoSize : width);
|
|
25
|
+
return (0, _styledComponents.css)(["line-height:", ";&,.logo-svg{height:", ";width:", ";}"], logoSize ? logoSize : height, logoSize ? logoSize : height, logoSize ? logoSize : "");
|
|
28
26
|
};
|
|
29
27
|
|
|
30
28
|
var Container = _styledComponents.default.span.attrs({
|
|
@@ -201,9 +201,9 @@ var colors = _extends({}, _theme.default.colors, {
|
|
|
201
201
|
info: _decorativePalettes.blue.foreground,
|
|
202
202
|
opportunity: _decorativePalettes.purple.foreground,
|
|
203
203
|
applied: _seedsColor.default.COLOR_BLUE_400,
|
|
204
|
-
positive_sentiment: _seedsColor.default.
|
|
204
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_600,
|
|
205
205
|
negative_sentiment: _seedsColor.default.COLOR_RED_600,
|
|
206
|
-
neutral_sentiment: _seedsColor.default.
|
|
206
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_500
|
|
207
207
|
},
|
|
208
208
|
form: {
|
|
209
209
|
background: {
|
|
@@ -32,7 +32,10 @@ var navigation = {
|
|
|
32
32
|
},
|
|
33
33
|
accordion: {
|
|
34
34
|
background: {
|
|
35
|
-
|
|
35
|
+
// Uses hexicimal to change the opacity of the color
|
|
36
|
+
// Adding 'A3' at end to make this color have a 64% opacity
|
|
37
|
+
// Reference https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4
|
|
38
|
+
base: _theme.default.colors.neutral[1000] + "A3"
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
},
|
|
@@ -149,6 +152,18 @@ var growth = {
|
|
|
149
152
|
purple: _theme.default.colors.purple[700]
|
|
150
153
|
}
|
|
151
154
|
},
|
|
155
|
+
featuredDemo: {
|
|
156
|
+
background: {
|
|
157
|
+
primary: {
|
|
158
|
+
base: _theme.default.colors.blue[400],
|
|
159
|
+
hover: _theme.default.colors.blue[100]
|
|
160
|
+
},
|
|
161
|
+
secondary: {
|
|
162
|
+
base: _theme.default.colors.purple[500],
|
|
163
|
+
hover: _theme.default.colors.purple[100]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
152
167
|
darkModal: {
|
|
153
168
|
background: {
|
|
154
169
|
base: _theme.default.colors.aqua[1100]
|
|
@@ -149,6 +149,18 @@ var growth = {
|
|
|
149
149
|
purple: _theme.default.colors.purple[700]
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
+
featuredDemo: {
|
|
153
|
+
background: {
|
|
154
|
+
primary: {
|
|
155
|
+
base: _theme.default.colors.blue[700],
|
|
156
|
+
hover: _theme.default.colors.blue[900]
|
|
157
|
+
},
|
|
158
|
+
secondary: {
|
|
159
|
+
base: _theme.default.colors.purple[800],
|
|
160
|
+
hover: _theme.default.colors.purple[800]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
152
164
|
darkModal: {
|
|
153
165
|
background: {
|
|
154
166
|
base: _theme.default.colors.aqua[1100]
|
|
@@ -205,9 +205,9 @@ var colors = _extends({
|
|
|
205
205
|
info: _decorativePalettes.blue.foreground,
|
|
206
206
|
opportunity: _decorativePalettes.purple.foreground,
|
|
207
207
|
applied: _seedsColor.default.COLOR_BLUE_700,
|
|
208
|
-
positive_sentiment: _seedsColor.default.
|
|
208
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_600,
|
|
209
209
|
negative_sentiment: _seedsColor.default.COLOR_RED_600,
|
|
210
|
-
neutral_sentiment: _seedsColor.default.
|
|
210
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_500
|
|
211
211
|
},
|
|
212
212
|
form: {
|
|
213
213
|
background: {
|