@sproutsocial/racine 11.2.5-sproutTheme-beta.4 → 11.2.5-sproutTheme-beta.5

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.
@@ -5,21 +5,19 @@ import { getDarkThemeColors } from "./getDarkThemeColors";
5
5
  import { getNonColorThemeValues } from "../NonColorThemeValues";
6
6
  import type { TypeSproutTheme } from "../sproutThemeType.flow";
7
7
 
8
- const darkTheme = (): TypeSproutTheme => {
9
- // clone base theme. (we don't want to mutate the base theme)
10
- const themeClone = clone(baseDarkTheme);
8
+ // clone base theme. (we don't want to mutate the base theme)
9
+ const themeClone = clone(baseDarkTheme);
11
10
 
12
- // get non color theme values
13
- const nonColorThemeValues = getNonColorThemeValues(themeClone);
11
+ // get non color theme values
12
+ const nonColorThemeValues = getNonColorThemeValues(themeClone);
14
13
 
15
- // get sprout specific dark theme colors
16
- const darkThemeColors = getDarkThemeColors(themeClone.colors);
14
+ // get sprout specific dark theme colors
15
+ const darkThemeColors = getDarkThemeColors(themeClone.colors);
17
16
 
18
- return {
19
- ...themeClone,
20
- ...nonColorThemeValues,
21
- ...darkThemeColors,
22
- };
17
+ const darkTheme: TypeSproutTheme = {
18
+ ...themeClone,
19
+ ...nonColorThemeValues,
20
+ ...darkThemeColors,
23
21
  };
24
22
 
25
23
  export default darkTheme;
@@ -5,21 +5,19 @@ import { getLightThemeColors } from "./getLightThemeColors";
5
5
  import { getNonColorThemeValues } from "../NonColorThemeValues";
6
6
  import type { TypeSproutTheme } from "../sproutThemeType.flow";
7
7
 
8
- const lightTheme = (): TypeSproutTheme => {
9
- // clone base theme. (we don't want to mutate the base theme)
10
- const themeClone = clone(baseLightTheme);
8
+ // clone base theme. (we don't want to mutate the base theme)
9
+ const themeClone = clone(baseLightTheme);
11
10
 
12
- // get non color theme values
13
- const nonColorThemeValues = getNonColorThemeValues(themeClone);
11
+ // get non color theme values
12
+ const nonColorThemeValues = getNonColorThemeValues(themeClone);
14
13
 
15
- // get sprout specific light theme colors
16
- const lightThemeColors = getLightThemeColors(themeClone.colors);
14
+ // get sprout specific light theme colors
15
+ const lightThemeColors = getLightThemeColors(themeClone.colors);
17
16
 
18
- return {
19
- ...themeClone,
20
- ...nonColorThemeValues,
21
- ...lightThemeColors,
22
- };
17
+ const lightTheme: TypeSproutTheme = {
18
+ ...themeClone,
19
+ ...nonColorThemeValues,
20
+ ...lightThemeColors,
23
21
  };
24
22
 
25
23
  export default lightTheme;
@@ -15,15 +15,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  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); }
17
17
 
18
- var darkTheme = function darkTheme() {
19
- // clone base theme. (we don't want to mutate the base theme)
20
- var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
18
+ // clone base theme. (we don't want to mutate the base theme)
19
+ var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
21
20
 
22
- var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific dark theme colors
21
+ var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific dark theme colors
23
22
 
24
- var darkThemeColors = (0, _getDarkThemeColors.getDarkThemeColors)(themeClone.colors);
25
- return _extends({}, themeClone, nonColorThemeValues, darkThemeColors);
26
- };
23
+ var darkThemeColors = (0, _getDarkThemeColors.getDarkThemeColors)(themeClone.colors);
24
+
25
+ var darkTheme = _extends({}, themeClone, nonColorThemeValues, darkThemeColors);
27
26
 
28
27
  var _default = darkTheme;
29
28
  exports.default = _default;
@@ -15,15 +15,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  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); }
17
17
 
18
- var lightTheme = function lightTheme() {
19
- // clone base theme. (we don't want to mutate the base theme)
20
- var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
18
+ // clone base theme. (we don't want to mutate the base theme)
19
+ var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
21
20
 
22
- var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific light theme colors
21
+ var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific light theme colors
23
22
 
24
- var lightThemeColors = (0, _getLightThemeColors.getLightThemeColors)(themeClone.colors);
25
- return _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
26
- };
23
+ var lightThemeColors = (0, _getLightThemeColors.getLightThemeColors)(themeClone.colors);
24
+
25
+ var lightTheme = _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
27
26
 
28
27
  var _default = lightTheme;
29
28
  exports.default = _default;
@@ -4,15 +4,13 @@ import clone from "just-clone";
4
4
  import baseDarkTheme from "../../../dark/theme";
5
5
  import { getDarkThemeColors } from "./getDarkThemeColors";
6
6
  import { getNonColorThemeValues } from "../NonColorThemeValues";
7
+ // clone base theme. (we don't want to mutate the base theme)
8
+ var themeClone = clone(baseDarkTheme); // get non color theme values
7
9
 
8
- var darkTheme = function darkTheme() {
9
- // clone base theme. (we don't want to mutate the base theme)
10
- var themeClone = clone(baseDarkTheme); // get non color theme values
10
+ var nonColorThemeValues = getNonColorThemeValues(themeClone); // get sprout specific dark theme colors
11
11
 
12
- var nonColorThemeValues = getNonColorThemeValues(themeClone); // get sprout specific dark theme colors
12
+ var darkThemeColors = getDarkThemeColors(themeClone.colors);
13
13
 
14
- var darkThemeColors = getDarkThemeColors(themeClone.colors);
15
- return _extends({}, themeClone, nonColorThemeValues, darkThemeColors);
16
- };
14
+ var darkTheme = _extends({}, themeClone, nonColorThemeValues, darkThemeColors);
17
15
 
18
16
  export default darkTheme;
@@ -4,15 +4,13 @@ import clone from "just-clone";
4
4
  import baseLightTheme from "../../../light/theme";
5
5
  import { getLightThemeColors } from "./getLightThemeColors";
6
6
  import { getNonColorThemeValues } from "../NonColorThemeValues";
7
+ // clone base theme. (we don't want to mutate the base theme)
8
+ var themeClone = clone(baseLightTheme); // get non color theme values
7
9
 
8
- var lightTheme = function lightTheme() {
9
- // clone base theme. (we don't want to mutate the base theme)
10
- var themeClone = clone(baseLightTheme); // get non color theme values
10
+ var nonColorThemeValues = getNonColorThemeValues(themeClone); // get sprout specific light theme colors
11
11
 
12
- var nonColorThemeValues = getNonColorThemeValues(themeClone); // get sprout specific light theme colors
12
+ var lightThemeColors = getLightThemeColors(themeClone.colors);
13
13
 
14
- var lightThemeColors = getLightThemeColors(themeClone.colors);
15
- return _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
16
- };
14
+ var lightTheme = _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
17
15
 
18
16
  export default lightTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.2.5-sproutTheme-beta.4",
3
+ "version": "11.2.5-sproutTheme-beta.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",