@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.
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +10 -12
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +10 -12
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +6 -7
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +6 -7
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +5 -7
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +5 -7
- package/package.json +1 -1
- package/CHANGELOG.md +0 -3155
|
@@ -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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
11
|
+
// get non color theme values
|
|
12
|
+
const nonColorThemeValues = getNonColorThemeValues(themeClone);
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
// get sprout specific dark theme colors
|
|
15
|
+
const darkThemeColors = getDarkThemeColors(themeClone.colors);
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
11
|
+
// get non color theme values
|
|
12
|
+
const nonColorThemeValues = getNonColorThemeValues(themeClone);
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
// get sprout specific light theme colors
|
|
15
|
+
const lightThemeColors = getLightThemeColors(themeClone.colors);
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
21
|
+
var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific dark theme colors
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
21
|
+
var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific light theme colors
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
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
|
-
|
|
12
|
+
var darkThemeColors = getDarkThemeColors(themeClone.colors);
|
|
13
13
|
|
|
14
|
-
|
|
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
|
|
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
|
-
|
|
12
|
+
var lightThemeColors = getLightThemeColors(themeClone.colors);
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
return _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
|
|
16
|
-
};
|
|
14
|
+
var lightTheme = _extends({}, themeClone, nonColorThemeValues, lightThemeColors);
|
|
17
15
|
|
|
18
16
|
export default lightTheme;
|