@sproutsocial/racine 11.6.1 → 11.7.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 90438e2: Add \_themed.scss for Sprout theme
8
+ - This allows usage of Sprout theme-specific values in SCSS
9
+
10
+ ## 11.6.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 560c463: Added a new extended theme for the compare to period for the date picker.
15
+
3
16
  ## 11.6.1
4
17
 
5
18
  ### Patch Changes
@@ -31,11 +31,23 @@ export const navigation = {
31
31
  },
32
32
  };
33
33
 
34
+ export const datePicker = {
35
+ comparison: {
36
+ background: {
37
+ base: baseDarkTheme.colors.neutral[400],
38
+ },
39
+ text: {
40
+ base: baseDarkTheme.colors.neutral[800],
41
+ },
42
+ },
43
+ };
44
+
34
45
  const darkTheme: TypeSproutTheme = {
35
46
  ...baseDarkTheme,
36
47
  colors: {
37
48
  ...baseDarkTheme.colors,
38
49
  navigation,
50
+ datePicker,
39
51
  },
40
52
  };
41
53
 
@@ -31,11 +31,23 @@ export const navigation = {
31
31
  },
32
32
  };
33
33
 
34
+ export const datePicker = {
35
+ comparison: {
36
+ background: {
37
+ base: baseLightTheme.colors.neutral[400],
38
+ },
39
+ text: {
40
+ base: baseLightTheme.colors.neutral[800],
41
+ },
42
+ },
43
+ };
44
+
34
45
  const lightTheme: TypeSproutTheme = {
35
46
  ...baseLightTheme,
36
47
  colors: {
37
48
  ...baseLightTheme.colors,
38
49
  navigation,
50
+ datePicker,
39
51
  },
40
52
  };
41
53
 
@@ -2,12 +2,13 @@
2
2
  // This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
3
3
 
4
4
  // SET-UP
5
- // This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
- @import "../../../dist/themes/dark/dark.scss";
5
+ // theme.scss is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
+ // _themed.scss will be copied to each theme folder in /dist, where the theme.scss file for that theme will be.
7
+ @import "./theme.scss";
7
8
 
8
9
  // In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
9
10
  // so we need to map-get "default" to access it.
10
- $theme: map-get($dark, "default");
11
+ $theme: map-get($theme, "default");
11
12
 
12
13
  // FUNCTIONS
13
14
  // This function will allow you to get any value from the theme.
@@ -13,7 +13,10 @@ import {
13
13
  } from "../themes/light/theme";
14
14
  import type { TypeColors } from "./theme.colors.flow.js";
15
15
  import type { TypeFontFamilyString } from "../themes/light/theme";
16
- import { navigation } from "../themes/extendedThemes/sproutTheme/light/theme";
16
+ import {
17
+ datePicker,
18
+ navigation,
19
+ } from "../themes/extendedThemes/sproutTheme/light/theme";
17
20
 
18
21
  export type TypeThemeUtils = {| interact: (color: string) => string |};
19
22
  export type TypeThemeMode = "light" | "dark";
@@ -53,5 +56,6 @@ export type TypeSproutTheme = {
53
56
  colors: {|
54
57
  ...$Exact<TypeColor>,
55
58
  navigation: typeof navigation,
59
+ datePicker: typeof datePicker,
56
60
  |},
57
61
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.navigation = exports.default = void 0;
4
+ exports.navigation = exports.default = exports.datePicker = void 0;
5
5
 
6
6
  var _theme = _interopRequireDefault(require("../../../dark/theme"));
7
7
 
@@ -38,10 +38,22 @@ var navigation = {
38
38
  }
39
39
  };
40
40
  exports.navigation = navigation;
41
+ var datePicker = {
42
+ comparison: {
43
+ background: {
44
+ base: _theme.default.colors.neutral[400]
45
+ },
46
+ text: {
47
+ base: _theme.default.colors.neutral[800]
48
+ }
49
+ }
50
+ };
51
+ exports.datePicker = datePicker;
41
52
 
42
53
  var darkTheme = _extends({}, _theme.default, {
43
54
  colors: _extends({}, _theme.default.colors, {
44
- navigation: navigation
55
+ navigation: navigation,
56
+ datePicker: datePicker
45
57
  })
46
58
  });
47
59
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.navigation = exports.default = void 0;
4
+ exports.navigation = exports.default = exports.datePicker = void 0;
5
5
 
6
6
  var _theme = _interopRequireDefault(require("../../../light/theme"));
7
7
 
@@ -38,10 +38,22 @@ var navigation = {
38
38
  }
39
39
  };
40
40
  exports.navigation = navigation;
41
+ var datePicker = {
42
+ comparison: {
43
+ background: {
44
+ base: _theme.default.colors.neutral[400]
45
+ },
46
+ text: {
47
+ base: _theme.default.colors.neutral[800]
48
+ }
49
+ }
50
+ };
51
+ exports.datePicker = datePicker;
41
52
 
42
53
  var lightTheme = _extends({}, _theme.default, {
43
54
  colors: _extends({}, _theme.default.colors, {
44
- navigation: navigation
55
+ navigation: navigation,
56
+ datePicker: datePicker
45
57
  })
46
58
  });
47
59
 
@@ -2,12 +2,13 @@
2
2
  // This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
3
3
 
4
4
  // SET-UP
5
- // This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
- @import "../../../dist/themes/dark/dark.scss";
5
+ // theme.scss is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
+ // _themed.scss will be copied to each theme folder in /dist, where the theme.scss file for that theme will be.
7
+ @import "./theme.scss";
7
8
 
8
9
  // In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
9
10
  // so we need to map-get "default" to access it.
10
- $theme: map-get($dark, "default");
11
+ $theme: map-get($theme, "default");
11
12
 
12
13
  // FUNCTIONS
13
14
  // This function will allow you to get any value from the theme.
@@ -1,4 +1,4 @@
1
- $dark: (
1
+ $theme: (
2
2
  __esModule: true,
3
3
  default: (
4
4
  utils: (
@@ -2,12 +2,13 @@
2
2
  // This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
3
3
 
4
4
  // SET-UP
5
- // This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
- @import "../../../dist/themes/light/light.scss";
5
+ // theme.scss is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
+ // _themed.scss will be copied to each theme folder in /dist, where the theme.scss file for that theme will be.
7
+ @import "./theme.scss";
7
8
 
8
9
  // In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
9
10
  // so we need to map-get "default" to access it.
10
- $theme: map-get($light, "default");
11
+ $theme: map-get($theme, "default");
11
12
 
12
13
  // FUNCTIONS
13
14
  // This function will allow you to get any value from the theme.