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

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.
@@ -3,7 +3,6 @@ import { boolean, text, number } from "@storybook/addon-knobs";
3
3
  import Button from "./index";
4
4
  import Icon from "../Icon";
5
5
  import Box from "../Box";
6
- import ThemeProvider from "../ThemeProvider";
7
6
 
8
7
  export default {
9
8
  title: "Button",
@@ -3,10 +3,9 @@ import clone from "just-clone";
3
3
  import baseDarkTheme from "../../../dark/theme";
4
4
  import { getDarkThemeColors } from "./getDarkThemeColors";
5
5
  import { getNonColorThemeValues } from "../NonColorThemeValues";
6
- import type { TypeTheme } from "../../../../types/theme.flow.js";
7
6
  import type { TypeSproutTheme } from "../sproutThemeType.flow";
8
7
 
9
- const darkTheme = (baseDarkTheme: TypeTheme): TypeSproutTheme => {
8
+ const darkTheme = (): TypeSproutTheme => {
10
9
  // clone base theme. (we don't want to mutate the base theme)
11
10
  const themeClone = clone(baseDarkTheme);
12
11
 
@@ -3,9 +3,9 @@ import clone from "just-clone";
3
3
  import baseLightTheme from "../../../light/theme";
4
4
  import { getLightThemeColors } from "./getLightThemeColors";
5
5
  import { getNonColorThemeValues } from "../NonColorThemeValues";
6
- import type { TypeTheme } from "../../../../types/theme.flow.js";
6
+ import type { TypeSproutTheme } from "../sproutThemeType.flow";
7
7
 
8
- const lightTheme = (baseLightTheme: TypeTheme) => {
8
+ const lightTheme = (): TypeSproutTheme => {
9
9
  // clone base theme. (we don't want to mutate the base theme)
10
10
  const themeClone = clone(baseLightTheme);
11
11
 
@@ -15,9 +15,9 @@ 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(baseDarkTheme) {
18
+ var darkTheme = function darkTheme() {
19
19
  // clone base theme. (we don't want to mutate the base theme)
20
- var themeClone = (0, _justClone.default)(baseDarkTheme); // get non color theme values
20
+ var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
21
21
 
22
22
  var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific dark theme colors
23
23
 
@@ -15,9 +15,9 @@ 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(baseLightTheme) {
18
+ var lightTheme = function lightTheme() {
19
19
  // clone base theme. (we don't want to mutate the base theme)
20
- var themeClone = (0, _justClone.default)(baseLightTheme); // get non color theme values
20
+ var themeClone = (0, _justClone.default)(_theme.default); // get non color theme values
21
21
 
22
22
  var nonColorThemeValues = (0, _NonColorThemeValues.getNonColorThemeValues)(themeClone); // get sprout specific light theme colors
23
23
 
@@ -5,7 +5,7 @@ import baseDarkTheme from "../../../dark/theme";
5
5
  import { getDarkThemeColors } from "./getDarkThemeColors";
6
6
  import { getNonColorThemeValues } from "../NonColorThemeValues";
7
7
 
8
- var darkTheme = function darkTheme(baseDarkTheme) {
8
+ var darkTheme = function darkTheme() {
9
9
  // clone base theme. (we don't want to mutate the base theme)
10
10
  var themeClone = clone(baseDarkTheme); // get non color theme values
11
11
 
@@ -5,7 +5,7 @@ import baseLightTheme from "../../../light/theme";
5
5
  import { getLightThemeColors } from "./getLightThemeColors";
6
6
  import { getNonColorThemeValues } from "../NonColorThemeValues";
7
7
 
8
- var lightTheme = function lightTheme(baseLightTheme) {
8
+ var lightTheme = function lightTheme() {
9
9
  // clone base theme. (we don't want to mutate the base theme)
10
10
  var themeClone = clone(baseLightTheme); // get non color theme values
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.2.5-sproutTheme-beta.3",
3
+ "version": "11.2.5-sproutTheme-beta.4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",