@sproutsocial/racine 11.6.1-theme-type.0 → 11.6.2-themed-beta.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 +19 -0
- package/__flow__/themes/dark/theme.js +3 -3
- package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +44 -13
- package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +44 -13
- package/__flow__/themes/utils/_themed.scss +119 -0
- package/__flow__/types/theme.colors.flow.js +8 -1
- package/__flow__/types/theme.flow.js +8 -43
- package/commonjs/themes/dark/theme.js +3 -3
- package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +48 -15
- package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +48 -15
- package/commonjs/types/theme.flow.js +3 -1
- package/dist/themes/dark/_themed.scss +4 -3
- package/dist/themes/dark/{dark.scss → theme.scss} +1 -4
- package/dist/themes/extendedThemes/sproutTheme/dark/_themed.scss +119 -0
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +692 -0
- package/dist/themes/extendedThemes/sproutTheme/light/_themed.scss +119 -0
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +692 -0
- package/dist/themes/light/_themed.scss +4 -3
- package/dist/themes/light/{light.scss → theme.scss} +1 -1
- package/lib/themes/dark/theme.js +3 -3
- package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +44 -10
- package/lib/themes/extendedThemes/sproutTheme/light/theme.js +44 -10
- package/lib/types/theme.flow.js +2 -1
- package/package.json +2 -3
- package/__flow__/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +0 -17
- package/__flow__/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +0 -36
- package/__flow__/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +0 -36
- package/commonjs/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +0 -16
- package/commonjs/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +0 -39
- package/commonjs/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +0 -39
- package/lib/themes/extendedThemes/sproutTheme/NonColorThemeValues/index.js +0 -12
- package/lib/themes/extendedThemes/sproutTheme/dark/getDarkThemeColors.js +0 -34
- package/lib/themes/extendedThemes/sproutTheme/light/getLightThemeColors.js +0 -34
|
@@ -1,16 +1,50 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
|
|
3
|
-
import clone from "just-clone";
|
|
4
3
|
import baseDarkTheme from "../../../dark/theme";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export var navigation = {
|
|
5
|
+
main: {
|
|
6
|
+
background: {
|
|
7
|
+
base: baseDarkTheme.colors.neutral[1000],
|
|
8
|
+
overflowGradient: baseDarkTheme.colors.neutral[1100]
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
secondary: {
|
|
12
|
+
background: {
|
|
13
|
+
base: baseDarkTheme.colors.neutral[900]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
base: baseDarkTheme.colors.neutral[0],
|
|
18
|
+
hover: baseDarkTheme.colors.neutral[0]
|
|
19
|
+
},
|
|
20
|
+
icon: {
|
|
21
|
+
base: baseDarkTheme.colors.neutral[0],
|
|
22
|
+
hover: baseDarkTheme.colors.neutral[0]
|
|
23
|
+
},
|
|
24
|
+
listItem: {
|
|
25
|
+
background: {
|
|
26
|
+
base: baseDarkTheme.colors.neutral[1000],
|
|
27
|
+
hover: baseDarkTheme.colors.neutral[1100],
|
|
28
|
+
selected: baseDarkTheme.colors.neutral[700]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export var datePicker = {
|
|
33
|
+
comparison: {
|
|
34
|
+
background: {
|
|
35
|
+
base: baseDarkTheme.colors.neutral[400]
|
|
36
|
+
},
|
|
37
|
+
text: {
|
|
38
|
+
base: baseDarkTheme.colors.neutral[800]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
9
42
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
43
|
+
var darkTheme = _extends({}, baseDarkTheme, {
|
|
44
|
+
colors: _extends({}, baseDarkTheme.colors, {
|
|
45
|
+
navigation: navigation,
|
|
46
|
+
datePicker: datePicker
|
|
47
|
+
})
|
|
48
|
+
});
|
|
15
49
|
|
|
16
50
|
export default darkTheme;
|
|
@@ -1,16 +1,50 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
|
|
3
|
-
import clone from "just-clone";
|
|
4
3
|
import baseLightTheme from "../../../light/theme";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export var navigation = {
|
|
5
|
+
main: {
|
|
6
|
+
background: {
|
|
7
|
+
base: baseLightTheme.colors.neutral[900],
|
|
8
|
+
overflowGradient: baseLightTheme.colors.neutral[1000]
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
secondary: {
|
|
12
|
+
background: {
|
|
13
|
+
base: baseLightTheme.colors.neutral[800]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
base: baseLightTheme.colors.neutral[0],
|
|
18
|
+
hover: baseLightTheme.colors.neutral[0]
|
|
19
|
+
},
|
|
20
|
+
icon: {
|
|
21
|
+
base: baseLightTheme.colors.neutral[0],
|
|
22
|
+
hover: baseLightTheme.colors.neutral[0]
|
|
23
|
+
},
|
|
24
|
+
listItem: {
|
|
25
|
+
background: {
|
|
26
|
+
base: baseLightTheme.colors.neutral[800],
|
|
27
|
+
hover: baseLightTheme.colors.neutral[1000],
|
|
28
|
+
selected: baseLightTheme.colors.neutral[700]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export var datePicker = {
|
|
33
|
+
comparison: {
|
|
34
|
+
background: {
|
|
35
|
+
base: baseLightTheme.colors.neutral[400]
|
|
36
|
+
},
|
|
37
|
+
text: {
|
|
38
|
+
base: baseLightTheme.colors.neutral[800]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
9
42
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
43
|
+
var lightTheme = _extends({}, baseLightTheme, {
|
|
44
|
+
colors: _extends({}, baseLightTheme.colors, {
|
|
45
|
+
navigation: navigation,
|
|
46
|
+
datePicker: datePicker
|
|
47
|
+
})
|
|
48
|
+
});
|
|
15
49
|
|
|
16
50
|
export default lightTheme;
|
package/lib/types/theme.flow.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/light/theme";
|
|
1
|
+
import { breakpoints, typography, fontWeights, radii, borders, borderWidths, shadows, space, easing, duration } from "../themes/light/theme";
|
|
2
|
+
import { datePicker, navigation } from "../themes/extendedThemes/sproutTheme/light/theme";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "11.6.
|
|
3
|
+
"version": "11.6.2-themed-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"__flow__",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@styled-system/theme-get": "^5.1.2",
|
|
68
68
|
"classnames": "^2.2.6",
|
|
69
|
-
"just-clone": "^5.0.1",
|
|
70
69
|
"lodash.curry": "^4.1.1",
|
|
71
70
|
"lodash.uniqueid": "^4.0.1",
|
|
72
71
|
"lru-memoize": "^1.1.0",
|
|
@@ -167,7 +166,7 @@
|
|
|
167
166
|
"svgo": "^1.3.0",
|
|
168
167
|
"svgstore": "^2.0.3",
|
|
169
168
|
"webpack": "^4.20.0",
|
|
170
|
-
"webpack-dev-server": "^
|
|
169
|
+
"webpack-dev-server": "^4.9.0"
|
|
171
170
|
},
|
|
172
171
|
"peerDependencies": {
|
|
173
172
|
"@sproutsocial/seeds-border": ">=0.3.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type {
|
|
3
|
-
TypeNonColorThemeValues,
|
|
4
|
-
TypeTheme,
|
|
5
|
-
} from "../../../../types/theme.flow.js";
|
|
6
|
-
|
|
7
|
-
export function getNonColorThemeValues(
|
|
8
|
-
theme: TypeTheme
|
|
9
|
-
): TypeNonColorThemeValues {
|
|
10
|
-
const { colors, ...otherThemeValues } = theme;
|
|
11
|
-
return {
|
|
12
|
-
...otherThemeValues,
|
|
13
|
-
/**
|
|
14
|
-
* You can add your own theme values or overrides here.
|
|
15
|
-
*/
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeColors } from "../../../../types/theme.colors.flow.js";
|
|
3
|
-
|
|
4
|
-
export function getDarkThemeColors(themeColors: TypeColors) {
|
|
5
|
-
return {
|
|
6
|
-
...themeColors,
|
|
7
|
-
navigation: {
|
|
8
|
-
main: {
|
|
9
|
-
background: {
|
|
10
|
-
base: themeColors.neutral[1000],
|
|
11
|
-
gradient: themeColors.neutral[1100],
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
secondary: {
|
|
15
|
-
background: {
|
|
16
|
-
base: themeColors.neutral[900],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
text: {
|
|
20
|
-
base: themeColors.neutral[0],
|
|
21
|
-
hover: themeColors.neutral[0],
|
|
22
|
-
},
|
|
23
|
-
icon: {
|
|
24
|
-
base: themeColors.neutral[0],
|
|
25
|
-
hover: themeColors.neutral[0],
|
|
26
|
-
},
|
|
27
|
-
listItem: {
|
|
28
|
-
background: {
|
|
29
|
-
base: themeColors.neutral[1000],
|
|
30
|
-
hover: themeColors.neutral[1100],
|
|
31
|
-
active: themeColors.neutral[700],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
import type { TypeColors } from "../../../../types/theme.colors.flow.js";
|
|
3
|
-
|
|
4
|
-
export function getLightThemeColors(themeColors: TypeColors) {
|
|
5
|
-
return {
|
|
6
|
-
...themeColors,
|
|
7
|
-
navigation: {
|
|
8
|
-
main: {
|
|
9
|
-
background: {
|
|
10
|
-
base: themeColors.neutral[900],
|
|
11
|
-
overflowGradient: themeColors.neutral[1000],
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
secondary: {
|
|
15
|
-
background: {
|
|
16
|
-
base: themeColors.neutral[800],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
text: {
|
|
20
|
-
base: themeColors.neutral[0],
|
|
21
|
-
hover: themeColors.neutral[0],
|
|
22
|
-
},
|
|
23
|
-
icon: {
|
|
24
|
-
base: themeColors.neutral[0],
|
|
25
|
-
hover: themeColors.neutral[0],
|
|
26
|
-
},
|
|
27
|
-
listItem: {
|
|
28
|
-
background: {
|
|
29
|
-
base: themeColors.neutral[800],
|
|
30
|
-
hover: themeColors.neutral[1000],
|
|
31
|
-
selected: themeColors.neutral[700],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getNonColorThemeValues = getNonColorThemeValues;
|
|
5
|
-
var _excluded = ["colors"];
|
|
6
|
-
|
|
7
|
-
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); }
|
|
8
|
-
|
|
9
|
-
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; }
|
|
10
|
-
|
|
11
|
-
function getNonColorThemeValues(theme) {
|
|
12
|
-
var colors = theme.colors,
|
|
13
|
-
otherThemeValues = _objectWithoutPropertiesLoose(theme, _excluded);
|
|
14
|
-
|
|
15
|
-
return _extends({}, otherThemeValues);
|
|
16
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getDarkThemeColors = getDarkThemeColors;
|
|
5
|
-
|
|
6
|
-
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); }
|
|
7
|
-
|
|
8
|
-
function getDarkThemeColors(themeColors) {
|
|
9
|
-
return _extends({}, themeColors, {
|
|
10
|
-
navigation: {
|
|
11
|
-
main: {
|
|
12
|
-
background: {
|
|
13
|
-
base: themeColors.neutral[1000],
|
|
14
|
-
gradient: themeColors.neutral[1100]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
secondary: {
|
|
18
|
-
background: {
|
|
19
|
-
base: themeColors.neutral[900]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
text: {
|
|
23
|
-
base: themeColors.neutral[0],
|
|
24
|
-
hover: themeColors.neutral[0]
|
|
25
|
-
},
|
|
26
|
-
icon: {
|
|
27
|
-
base: themeColors.neutral[0],
|
|
28
|
-
hover: themeColors.neutral[0]
|
|
29
|
-
},
|
|
30
|
-
listItem: {
|
|
31
|
-
background: {
|
|
32
|
-
base: themeColors.neutral[1000],
|
|
33
|
-
hover: themeColors.neutral[1100],
|
|
34
|
-
active: themeColors.neutral[700]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getLightThemeColors = getLightThemeColors;
|
|
5
|
-
|
|
6
|
-
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); }
|
|
7
|
-
|
|
8
|
-
function getLightThemeColors(themeColors) {
|
|
9
|
-
return _extends({}, themeColors, {
|
|
10
|
-
navigation: {
|
|
11
|
-
main: {
|
|
12
|
-
background: {
|
|
13
|
-
base: themeColors.neutral[900],
|
|
14
|
-
overflowGradient: themeColors.neutral[1000]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
secondary: {
|
|
18
|
-
background: {
|
|
19
|
-
base: themeColors.neutral[800]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
text: {
|
|
23
|
-
base: themeColors.neutral[0],
|
|
24
|
-
hover: themeColors.neutral[0]
|
|
25
|
-
},
|
|
26
|
-
icon: {
|
|
27
|
-
base: themeColors.neutral[0],
|
|
28
|
-
hover: themeColors.neutral[0]
|
|
29
|
-
},
|
|
30
|
-
listItem: {
|
|
31
|
-
background: {
|
|
32
|
-
base: themeColors.neutral[800],
|
|
33
|
-
hover: themeColors.neutral[1000],
|
|
34
|
-
selected: themeColors.neutral[700]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var _excluded = ["colors"];
|
|
2
|
-
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
|
-
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; }
|
|
6
|
-
|
|
7
|
-
export function getNonColorThemeValues(theme) {
|
|
8
|
-
var colors = theme.colors,
|
|
9
|
-
otherThemeValues = _objectWithoutPropertiesLoose(theme, _excluded);
|
|
10
|
-
|
|
11
|
-
return _extends({}, otherThemeValues);
|
|
12
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
export function getDarkThemeColors(themeColors) {
|
|
4
|
-
return _extends({}, themeColors, {
|
|
5
|
-
navigation: {
|
|
6
|
-
main: {
|
|
7
|
-
background: {
|
|
8
|
-
base: themeColors.neutral[1000],
|
|
9
|
-
gradient: themeColors.neutral[1100]
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
secondary: {
|
|
13
|
-
background: {
|
|
14
|
-
base: themeColors.neutral[900]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
text: {
|
|
18
|
-
base: themeColors.neutral[0],
|
|
19
|
-
hover: themeColors.neutral[0]
|
|
20
|
-
},
|
|
21
|
-
icon: {
|
|
22
|
-
base: themeColors.neutral[0],
|
|
23
|
-
hover: themeColors.neutral[0]
|
|
24
|
-
},
|
|
25
|
-
listItem: {
|
|
26
|
-
background: {
|
|
27
|
-
base: themeColors.neutral[1000],
|
|
28
|
-
hover: themeColors.neutral[1100],
|
|
29
|
-
active: themeColors.neutral[700]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
export function getLightThemeColors(themeColors) {
|
|
4
|
-
return _extends({}, themeColors, {
|
|
5
|
-
navigation: {
|
|
6
|
-
main: {
|
|
7
|
-
background: {
|
|
8
|
-
base: themeColors.neutral[900],
|
|
9
|
-
overflowGradient: themeColors.neutral[1000]
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
secondary: {
|
|
13
|
-
background: {
|
|
14
|
-
base: themeColors.neutral[800]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
text: {
|
|
18
|
-
base: themeColors.neutral[0],
|
|
19
|
-
hover: themeColors.neutral[0]
|
|
20
|
-
},
|
|
21
|
-
icon: {
|
|
22
|
-
base: themeColors.neutral[0],
|
|
23
|
-
hover: themeColors.neutral[0]
|
|
24
|
-
},
|
|
25
|
-
listItem: {
|
|
26
|
-
background: {
|
|
27
|
-
base: themeColors.neutral[800],
|
|
28
|
-
hover: themeColors.neutral[1000],
|
|
29
|
-
selected: themeColors.neutral[700]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|