@sproutsocial/racine 9.1.0-beta-pr-1290.0 → 9.1.1-theme-extension.1
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 +0 -28
- package/__flow__/Breadcrumb/styles.js +5 -0
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/Card/index.stories.js +1 -0
- package/__flow__/Card/styles.js +1 -1
- package/__flow__/CustomThemeProvider/index.js +17 -0
- package/__flow__/Drawer/index.stories.js +3 -3
- package/__flow__/Drawer/styles.js +1 -1
- package/__flow__/KeyboardKey/styles.js +1 -1
- package/__flow__/Listbox/__snapshots__/index.test.js.snap +34 -40
- package/__flow__/Menu/__snapshots__/index.test.js.snap +12 -15
- package/__flow__/Menu/index.js +7 -3
- package/__flow__/Menu/index.stories.js +1 -1
- package/__flow__/Menu/styles.js +18 -1
- package/__flow__/Modal/__snapshots__/index.test.js.snap +80 -0
- package/__flow__/Modal/index.test.js +16 -0
- package/__flow__/Modal/styles.js +1 -1
- package/__flow__/Popout/index.js +1 -1
- package/__flow__/ThemeProvider/index.js +2 -2
- package/__flow__/Token/index.js +1 -4
- package/__flow__/Token/index.stories.js +0 -11
- package/__flow__/Token/styles.js +33 -43
- package/__flow__/Tooltip/index.js +1 -1
- package/__flow__/index.js +1 -0
- package/__flow__/themes/dark/theme.js +156 -180
- package/__flow__/themes/default/theme.js +8 -19
- package/__flow__/themes/sprout/theme.js +22 -0
- package/__flow__/types/system-props.flow.js +2 -1
- package/__flow__/utils/extendTheme.js +17 -0
- package/commonjs/Breadcrumb/styles.js +1 -1
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Card/styles.js +1 -1
- package/commonjs/CustomThemeProvider/index.js +23 -0
- package/commonjs/Drawer/styles.js +1 -1
- package/commonjs/KeyboardKey/styles.js +1 -1
- package/commonjs/Menu/index.js +1 -3
- package/commonjs/Menu/styles.js +16 -3
- package/commonjs/Modal/styles.js +1 -1
- package/commonjs/Popout/index.js +1 -1
- package/commonjs/Token/index.js +2 -5
- package/commonjs/Token/styles.js +50 -19
- package/commonjs/Tooltip/index.js +1 -1
- package/commonjs/index.js +5 -1
- package/commonjs/themes/dark/theme.js +154 -179
- package/commonjs/themes/default/theme.js +8 -19
- package/commonjs/themes/sprout/theme.js +29 -0
- package/commonjs/utils/extendTheme.js +22 -0
- package/lib/Breadcrumb/styles.js +1 -1
- package/lib/Button/styles.js +1 -1
- package/lib/Card/styles.js +1 -1
- package/lib/CustomThemeProvider/index.js +12 -0
- package/lib/Drawer/styles.js +1 -1
- package/lib/KeyboardKey/styles.js +1 -1
- package/lib/Menu/index.js +2 -4
- package/lib/Menu/styles.js +13 -2
- package/lib/Modal/styles.js +1 -1
- package/lib/Popout/index.js +1 -1
- package/lib/Token/index.js +2 -5
- package/lib/Token/styles.js +50 -19
- package/lib/Tooltip/index.js +1 -1
- package/lib/index.js +1 -0
- package/lib/themes/dark/theme.js +153 -174
- package/lib/themes/default/theme.js +8 -18
- package/lib/themes/sprout/theme.js +19 -0
- package/lib/utils/extendTheme.js +12 -0
- package/package.json +3 -3
- package/__flow__/themes/_themes.scss +0 -138
- package/__flow__/themes/utils/interact.js +0 -12
- package/commonjs/themes/utils/interact.js +0 -19
- package/dist/themes/_themes.scss +0 -138
- package/dist/themes/dark.scss +0 -601
- package/dist/themes/default.scss +0 -692
- package/lib/themes/utils/interact.js +0 -13
|
@@ -47,7 +47,7 @@ var Container = _styledComponents.default.button.withConfig({
|
|
|
47
47
|
}, function (props) {
|
|
48
48
|
return props.theme.colors.button[props.appearance].background.hover;
|
|
49
49
|
}, function (props) {
|
|
50
|
-
return props.appearance === "placeholder" ? props.theme.shadows
|
|
50
|
+
return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
|
|
51
51
|
}, function (props) {
|
|
52
52
|
return props.theme.colors.button[props.appearance].text.hover;
|
|
53
53
|
}, function (props) {
|
package/commonjs/Card/styles.js
CHANGED
|
@@ -19,7 +19,7 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
19
19
|
}, function (props) {
|
|
20
20
|
return props.theme.radii[500];
|
|
21
21
|
}, function (props) {
|
|
22
|
-
return props.theme.shadows
|
|
22
|
+
return props.theme.shadows[100];
|
|
23
23
|
}, function (props) {
|
|
24
24
|
return props.theme.duration.medium;
|
|
25
25
|
}, function (props) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var React = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _styledComponents = require("styled-components");
|
|
9
|
+
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
var CustomThemeProvider = function CustomThemeProvider(props) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_styledComponents.ThemeProvider, _extends({
|
|
18
|
+
theme: props.theme
|
|
19
|
+
}, props));
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var _default = CustomThemeProvider;
|
|
23
|
+
exports.default = _default;
|
|
@@ -29,7 +29,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
29
29
|
}, function (props) {
|
|
30
30
|
return props.theme.colors.container.background.base;
|
|
31
31
|
}, function (props) {
|
|
32
|
-
return props.theme.shadows
|
|
32
|
+
return props.theme.shadows[400];
|
|
33
33
|
}, function (props) {
|
|
34
34
|
return (0, _styledComponents.css)(["", ":", "px;"], props.direction, props.offset);
|
|
35
35
|
}, _systemProps.COMMON);
|
|
@@ -21,7 +21,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
21
21
|
}, function (props) {
|
|
22
22
|
return props.theme.radii[500];
|
|
23
23
|
}, function (props) {
|
|
24
|
-
return props.theme.shadows
|
|
24
|
+
return props.theme.shadows[100];
|
|
25
25
|
}, function (props) {
|
|
26
26
|
return props.theme.space[200];
|
|
27
27
|
}, _systemProps.COMMON);
|
package/commonjs/Menu/index.js
CHANGED
|
@@ -277,9 +277,7 @@ var MenuGroup = function MenuGroup(_ref2) {
|
|
|
277
277
|
mt: 350,
|
|
278
278
|
color: "text.headline",
|
|
279
279
|
_css: isDisabled && _mixins.disabled
|
|
280
|
-
}, title)), /*#__PURE__*/React.createElement(
|
|
281
|
-
m: 300,
|
|
282
|
-
p: 300,
|
|
280
|
+
}, title)), /*#__PURE__*/React.createElement(_styles.MenuGroupContainer, _extends({}, props, {
|
|
283
281
|
role: "group"
|
|
284
282
|
}), children));
|
|
285
283
|
};
|
package/commonjs/Menu/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.MenuItemsContainer = exports.MenuItemContainer = void 0;
|
|
4
|
+
exports.default = exports.MenuItemsContainer = exports.MenuGroupContainer = exports.MenuItemContainer = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
7
|
|
|
@@ -56,8 +56,21 @@ var MenuItemContainer = (0, _styledComponents.default)(_Box.default).withConfig(
|
|
|
56
56
|
return props.disabled && _mixins.disabled;
|
|
57
57
|
});
|
|
58
58
|
exports.MenuItemContainer = MenuItemContainer;
|
|
59
|
+
var MenuGroupContainer = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
60
|
+
displayName: "styles__MenuGroupContainer",
|
|
61
|
+
componentId: "fjvae4-1"
|
|
62
|
+
})(["", ";"], function (props) {
|
|
63
|
+
return props.appearance === "flush" ? (0, _styledComponents.css)(["margin:0 -", ";"], function (props) {
|
|
64
|
+
return props.theme.space[300];
|
|
65
|
+
}) : (0, _styledComponents.css)(["padding:", ";"], function (props) {
|
|
66
|
+
return props.theme.space[300];
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.MenuGroupContainer = MenuGroupContainer;
|
|
59
70
|
var MenuItemsContainer = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
60
71
|
displayName: "styles__MenuItemsContainer",
|
|
61
|
-
componentId: "fjvae4-
|
|
72
|
+
componentId: "fjvae4-2"
|
|
62
73
|
})(["list-style-type:none;outline:0;"]);
|
|
63
|
-
exports.MenuItemsContainer = MenuItemsContainer;
|
|
74
|
+
exports.MenuItemsContainer = MenuItemsContainer;
|
|
75
|
+
var _default = MenuGroupContainer;
|
|
76
|
+
exports.default = _default;
|
package/commonjs/Modal/styles.js
CHANGED
|
@@ -72,7 +72,7 @@ var Container = (0, _styledComponents.default)(ReactModalAdapter).withConfig({
|
|
|
72
72
|
}, function (props) {
|
|
73
73
|
return props.theme.radii[500];
|
|
74
74
|
}, function (props) {
|
|
75
|
-
return props.theme.shadows
|
|
75
|
+
return props.theme.shadows[300];
|
|
76
76
|
}, function (props) {
|
|
77
77
|
return props.theme.colors.text.body;
|
|
78
78
|
}, BODY_PADDING, BODY_PADDING, BODY_PADDING, _styledSystem.width, _systemProps.COMMON);
|
package/commonjs/Popout/index.js
CHANGED
package/commonjs/Token/index.js
CHANGED
|
@@ -33,17 +33,14 @@ var Token = function Token(_ref) {
|
|
|
33
33
|
valid = _ref$valid === void 0 ? true : _ref$valid,
|
|
34
34
|
_ref$disabled = _ref.disabled,
|
|
35
35
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
36
|
-
|
|
37
|
-
palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
|
|
38
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
|
|
36
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
|
|
39
37
|
|
|
40
38
|
var textContainer = (0, _hooks.useTextContent)("");
|
|
41
39
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
42
40
|
ref: textContainer,
|
|
43
41
|
valid: valid,
|
|
44
|
-
palette: palette,
|
|
45
|
-
type: closeable || onClick ? "button" : undefined,
|
|
46
42
|
as: closeable || onClick ? "button" : "div",
|
|
43
|
+
type: closeable || onClick ? "button" : undefined,
|
|
47
44
|
closeable: closeable || onClick,
|
|
48
45
|
disabled: disabled,
|
|
49
46
|
onClick: onClick,
|
package/commonjs/Token/styles.js
CHANGED
|
@@ -16,25 +16,56 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
16
16
|
var Container = _styledComponents.default.button.withConfig({
|
|
17
17
|
displayName: "styles__Container",
|
|
18
18
|
componentId: "nyn5zy-0"
|
|
19
|
-
})(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", "
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
19
|
+
})(["font-family:", ";", ";position:relative;display:inline-block;padding:", " ", ";margin:0;color:", ";background:", ";border:1px solid ", ";font-weight:", ";line-height:1;vertical-align:middle;border-radius:", ";outline:none;transition:all ", " ", ";&:focus{", "}", " ", " ", " ", ""], function (props) {
|
|
20
|
+
return props.theme.fontFamily;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.theme.typography[200];
|
|
23
|
+
}, function (props) {
|
|
24
|
+
return props.theme.space[200];
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.theme.space[300];
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.theme.colors.text.body;
|
|
29
|
+
}, function (props) {
|
|
30
|
+
return props.theme.colors.container.background.base;
|
|
31
|
+
}, function (props) {
|
|
32
|
+
return props.theme.colors.container.border.base;
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.theme.fontWeights.normal;
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return props.theme.radii[500];
|
|
37
|
+
}, function (props) {
|
|
38
|
+
return props.theme.duration.fast;
|
|
39
|
+
}, function (props) {
|
|
40
|
+
return props.theme.easing.ease_inout;
|
|
41
|
+
}, _mixins.focusRing, function (props) {
|
|
42
|
+
return props.closeable && (0, _styledComponents.css)(["cursor:pointer;&:hover,&:active{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
|
|
43
|
+
return props.theme.colors.text.body;
|
|
44
|
+
}, function (props) {
|
|
45
|
+
return props.theme.colors.container.border.decorative.neutral;
|
|
46
|
+
}, function (props) {
|
|
47
|
+
return props.theme.colors.container.background.decorative.neutral;
|
|
48
|
+
});
|
|
49
|
+
}, function (props) {
|
|
50
|
+
return props.disabled && (0, _styledComponents.css)(["opacity:0.4;cursor:not-allowed;&:hover,&:active{background:", ";border:1px solid ", ";}"], function (props) {
|
|
51
|
+
return props.theme.colors.container.background.base;
|
|
52
|
+
}, function (props) {
|
|
53
|
+
return props.theme.colors.container.border.base;
|
|
54
|
+
});
|
|
55
|
+
}, function (props) {
|
|
56
|
+
return !props.valid && (0, _styledComponents.css)(["color:", ";border-color:", ";background:", ";&:hover{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
|
|
57
|
+
return props.theme.colors.text.body;
|
|
58
|
+
}, function (props) {
|
|
59
|
+
return props.theme.colors.container.border.error;
|
|
60
|
+
}, function (props) {
|
|
61
|
+
return props.theme.colors.container.background.error;
|
|
62
|
+
}, function (props) {
|
|
63
|
+
return props.theme.colors.text.body;
|
|
64
|
+
}, function (props) {
|
|
65
|
+
return props.theme.colors.container.border.error;
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.theme.colors.container.background.error;
|
|
68
|
+
});
|
|
38
69
|
}, _systemProps.COMMON);
|
|
39
70
|
|
|
40
71
|
var _default = Container;
|
|
@@ -132,7 +132,7 @@ var Content = function Content(_ref2) {
|
|
|
132
132
|
m: 200,
|
|
133
133
|
color: "text.body",
|
|
134
134
|
bg: "container.background.base",
|
|
135
|
-
boxShadow:
|
|
135
|
+
boxShadow: 300,
|
|
136
136
|
border: 500,
|
|
137
137
|
borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
|
|
138
138
|
|
package/commonjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.VisuallyHidden = exports.DateRangePicker = exports.SingleDatePicker = exports.ListboxButton = exports.MenuItemContainer = exports.MenuButtonContext = exports.MenuButton = exports.toast = exports.OverflowList = exports.Listbox = exports.Menu = exports.ToastContainer = exports.Skeleton = exports.Breadcrumb = exports.Avatar = exports.Stack = exports.Message = exports.Fieldset = exports.FormField = exports.EmptyState = exports.SegmentedControl = exports.Collapsible = exports.Numeral = exports.LoaderButton = exports.Drawer = exports.Tooltip = exports.ThemeProvider = exports.Popout = exports.Modal = exports.Tabs = exports.TokenInput = exports.Token = exports.Switch = exports.Link = exports.Button = exports.Select = exports.Input = exports.Label = exports.Box = exports.TableRowAccordion = exports.TableHeaderCell = exports.TableCell = exports.Table = exports.ChartLegend = exports.KeyboardKey = exports.Image = exports.Text = exports.Loader = exports.ToggleHint = exports.Textarea = exports.Radio = exports.Checkbox = exports.CharacterCounter = exports.Card = exports.Indicator = exports.Badge = exports.Banner = exports.Alert = exports.Icon = exports.darkTheme = exports.theme = exports.useTextContent = exports.useMultiselect = exports.useSelect = exports.disabled = exports.focusRing = exports.visuallyHidden = void 0;
|
|
4
|
+
exports.VisuallyHidden = exports.DateRangePicker = exports.SingleDatePicker = exports.ListboxButton = exports.MenuItemContainer = exports.MenuButtonContext = exports.MenuButton = exports.toast = exports.OverflowList = exports.Listbox = exports.Menu = exports.ToastContainer = exports.Skeleton = exports.Breadcrumb = exports.Avatar = exports.Stack = exports.Message = exports.Fieldset = exports.FormField = exports.EmptyState = exports.SegmentedControl = exports.Collapsible = exports.Numeral = exports.LoaderButton = exports.Drawer = exports.Tooltip = exports.CustomThemeProvider = exports.ThemeProvider = exports.Popout = exports.Modal = exports.Tabs = exports.TokenInput = exports.Token = exports.Switch = exports.Link = exports.Button = exports.Select = exports.Input = exports.Label = exports.Box = exports.TableRowAccordion = exports.TableHeaderCell = exports.TableCell = exports.Table = exports.ChartLegend = exports.KeyboardKey = exports.Image = exports.Text = exports.Loader = exports.ToggleHint = exports.Textarea = exports.Radio = exports.Checkbox = exports.CharacterCounter = exports.Card = exports.Indicator = exports.Badge = exports.Banner = exports.Alert = exports.Icon = exports.darkTheme = exports.theme = exports.useTextContent = exports.useMultiselect = exports.useSelect = exports.disabled = exports.focusRing = exports.visuallyHidden = void 0;
|
|
5
5
|
|
|
6
6
|
var _mixins = require("./utils/mixins");
|
|
7
7
|
|
|
@@ -152,6 +152,10 @@ var _ThemeProvider = _interopRequireDefault(require("./ThemeProvider"));
|
|
|
152
152
|
|
|
153
153
|
exports.ThemeProvider = _ThemeProvider.default;
|
|
154
154
|
|
|
155
|
+
var _CustomThemeProvider = _interopRequireDefault(require("./CustomThemeProvider"));
|
|
156
|
+
|
|
157
|
+
exports.CustomThemeProvider = _CustomThemeProvider.default;
|
|
158
|
+
|
|
155
159
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
156
160
|
|
|
157
161
|
exports.Tooltip = _Tooltip.default;
|
|
@@ -1,221 +1,196 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default =
|
|
4
|
+
exports.default = void 0;
|
|
5
5
|
|
|
6
6
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
7
7
|
|
|
8
|
-
var _seedsDepth = _interopRequireDefault(require("@sproutsocial/seeds-depth"));
|
|
9
|
-
|
|
10
8
|
var _theme = _interopRequireDefault(require("../default/theme"));
|
|
11
9
|
|
|
12
10
|
var _datavizPalette = require("./dataviz-palette");
|
|
13
11
|
|
|
14
12
|
var _decorativePalettes = require("./decorative-palettes");
|
|
15
13
|
|
|
16
|
-
var _interact = _interopRequireDefault(require("../utils/interact"));
|
|
17
|
-
|
|
18
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
15
|
|
|
20
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); }
|
|
21
17
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
medium: _seedsDepth.default.ELEVATION_LEVEL_300 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
|
|
26
|
-
high: _seedsDepth.default.ELEVATION_LEVEL_400 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF"
|
|
27
|
-
};
|
|
28
|
-
exports.shadows = shadows;
|
|
29
|
-
|
|
30
|
-
var colors = _extends({}, _theme.default.colors, {
|
|
31
|
-
utils: {
|
|
32
|
-
interact: (0, _interact.default)(MODE)
|
|
33
|
-
},
|
|
34
|
-
app: {
|
|
35
|
-
background: {
|
|
36
|
-
base: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
container: {
|
|
40
|
-
background: {
|
|
41
|
-
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
42
|
-
success: _decorativePalettes.green.background,
|
|
43
|
-
warning: _decorativePalettes.yellow.background,
|
|
44
|
-
error: _decorativePalettes.red.background,
|
|
45
|
-
info: _decorativePalettes.blue.background,
|
|
46
|
-
opportunity: _decorativePalettes.purple.background,
|
|
47
|
-
danger: _decorativePalettes.red.background,
|
|
48
|
-
decorative: {
|
|
49
|
-
green: _decorativePalettes.green.background,
|
|
50
|
-
blue: _decorativePalettes.blue.background,
|
|
51
|
-
purple: _decorativePalettes.purple.background,
|
|
52
|
-
yellow: _decorativePalettes.yellow.background,
|
|
53
|
-
orange: _decorativePalettes.orange.background,
|
|
54
|
-
red: _decorativePalettes.red.background,
|
|
55
|
-
neutral: _decorativePalettes.neutral.background
|
|
56
|
-
},
|
|
57
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
58
|
-
},
|
|
59
|
-
border: {
|
|
60
|
-
base: _seedsColor.default.COLOR_NEUTRAL_1100,
|
|
61
|
-
success: _decorativePalettes.green.highlight,
|
|
62
|
-
warning: _decorativePalettes.yellow.highlight,
|
|
63
|
-
error: _decorativePalettes.red.highlight,
|
|
64
|
-
danger: _decorativePalettes.red.highlight,
|
|
65
|
-
info: _decorativePalettes.blue.highlight,
|
|
66
|
-
opportunity: _decorativePalettes.purple.highlight,
|
|
67
|
-
decorative: {
|
|
68
|
-
green: _decorativePalettes.green.highlight,
|
|
69
|
-
blue: _decorativePalettes.blue.highlight,
|
|
70
|
-
purple: _decorativePalettes.purple.highlight,
|
|
71
|
-
yellow: _decorativePalettes.yellow.highlight,
|
|
72
|
-
orange: _decorativePalettes.orange.highlight,
|
|
73
|
-
red: _decorativePalettes.red.highlight,
|
|
74
|
-
neutral: _decorativePalettes.neutral.highlight
|
|
75
|
-
},
|
|
76
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
button: {
|
|
80
|
-
primary: {
|
|
18
|
+
var darkTheme = _extends({}, _theme.default, {
|
|
19
|
+
colors: _extends({}, _theme.default.colors, {
|
|
20
|
+
app: {
|
|
81
21
|
background: {
|
|
82
|
-
base: _seedsColor.default.
|
|
83
|
-
hover: _seedsColor.default.COLOR_BLUE_300,
|
|
84
|
-
active: _seedsColor.default.COLOR_BLUE_200
|
|
85
|
-
},
|
|
86
|
-
border: {
|
|
87
|
-
base: "transparent"
|
|
88
|
-
},
|
|
89
|
-
text: {
|
|
90
|
-
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
91
|
-
hover: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
22
|
+
base: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
92
23
|
}
|
|
93
24
|
},
|
|
94
|
-
|
|
25
|
+
container: {
|
|
95
26
|
background: {
|
|
96
|
-
base:
|
|
97
|
-
|
|
98
|
-
|
|
27
|
+
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
28
|
+
success: _decorativePalettes.green.background,
|
|
29
|
+
warning: _decorativePalettes.yellow.background,
|
|
30
|
+
error: _decorativePalettes.red.background,
|
|
31
|
+
info: _decorativePalettes.blue.background,
|
|
32
|
+
opportunity: _decorativePalettes.purple.background,
|
|
33
|
+
danger: _decorativePalettes.red.background,
|
|
34
|
+
decorative: {
|
|
35
|
+
green: _decorativePalettes.green.background,
|
|
36
|
+
blue: _decorativePalettes.blue.background,
|
|
37
|
+
purple: _decorativePalettes.purple.background,
|
|
38
|
+
yellow: _decorativePalettes.yellow.background,
|
|
39
|
+
orange: _decorativePalettes.orange.background,
|
|
40
|
+
red: _decorativePalettes.red.background,
|
|
41
|
+
neutral: _decorativePalettes.neutral.background
|
|
42
|
+
},
|
|
43
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
99
44
|
},
|
|
100
45
|
border: {
|
|
101
|
-
base: _seedsColor.default.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
46
|
+
base: _seedsColor.default.COLOR_NEUTRAL_1100,
|
|
47
|
+
success: _decorativePalettes.green.highlight,
|
|
48
|
+
warning: _decorativePalettes.yellow.highlight,
|
|
49
|
+
error: _decorativePalettes.red.highlight,
|
|
50
|
+
danger: _decorativePalettes.red.highlight,
|
|
51
|
+
info: _decorativePalettes.blue.highlight,
|
|
52
|
+
opportunity: _decorativePalettes.purple.highlight,
|
|
53
|
+
decorative: {
|
|
54
|
+
green: _decorativePalettes.green.highlight,
|
|
55
|
+
blue: _decorativePalettes.blue.highlight,
|
|
56
|
+
purple: _decorativePalettes.purple.highlight,
|
|
57
|
+
yellow: _decorativePalettes.yellow.highlight,
|
|
58
|
+
orange: _decorativePalettes.orange.highlight,
|
|
59
|
+
red: _decorativePalettes.red.highlight,
|
|
60
|
+
neutral: _decorativePalettes.neutral.highlight
|
|
61
|
+
},
|
|
62
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
106
63
|
}
|
|
107
64
|
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
65
|
+
button: {
|
|
66
|
+
primary: {
|
|
67
|
+
background: {
|
|
68
|
+
base: _seedsColor.default.COLOR_BLUE_400,
|
|
69
|
+
hover: _seedsColor.default.COLOR_BLUE_300,
|
|
70
|
+
active: _seedsColor.default.COLOR_BLUE_200
|
|
71
|
+
},
|
|
72
|
+
border: {
|
|
73
|
+
base: "transparent"
|
|
74
|
+
},
|
|
75
|
+
text: {
|
|
76
|
+
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
77
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
78
|
+
}
|
|
113
79
|
},
|
|
114
|
-
|
|
115
|
-
|
|
80
|
+
secondary: {
|
|
81
|
+
background: {
|
|
82
|
+
base: "transparent",
|
|
83
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
84
|
+
active: _seedsColor.default.COLOR_NEUTRAL_0
|
|
85
|
+
},
|
|
86
|
+
border: {
|
|
87
|
+
base: _seedsColor.default.COLOR_NEUTRAL_0
|
|
88
|
+
},
|
|
89
|
+
text: {
|
|
90
|
+
base: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
91
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_800
|
|
92
|
+
}
|
|
116
93
|
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
94
|
+
pill: {
|
|
95
|
+
background: {
|
|
96
|
+
base: "transparent",
|
|
97
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_1000,
|
|
98
|
+
active: _seedsColor.default.COLOR_NEUTRAL_900
|
|
99
|
+
},
|
|
100
|
+
border: {
|
|
101
|
+
base: "transparent"
|
|
102
|
+
},
|
|
103
|
+
text: {
|
|
104
|
+
base: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
105
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_0
|
|
106
|
+
}
|
|
127
107
|
},
|
|
128
|
-
|
|
129
|
-
|
|
108
|
+
destructive: {
|
|
109
|
+
background: {
|
|
110
|
+
base: _seedsColor.default.COLOR_RED_400,
|
|
111
|
+
hover: _seedsColor.default.COLOR_RED_300,
|
|
112
|
+
active: _seedsColor.default.COLOR_RED_200
|
|
113
|
+
},
|
|
114
|
+
border: {
|
|
115
|
+
base: "transparent"
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
119
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_1000
|
|
120
|
+
}
|
|
130
121
|
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
placeholder: {
|
|
123
|
+
background: {
|
|
124
|
+
base: "transparent",
|
|
125
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_1100,
|
|
126
|
+
active: _seedsColor.default.COLOR_NEUTRAL_1100
|
|
127
|
+
},
|
|
128
|
+
border: {
|
|
129
|
+
base: _seedsColor.default.COLOR_NEUTRAL_500
|
|
130
|
+
},
|
|
131
|
+
text: {
|
|
132
|
+
base: _seedsColor.default.COLOR_BLUE_400,
|
|
133
|
+
hover: _seedsColor.default.COLOR_BLUE_300
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
unstyled: {
|
|
137
|
+
background: {
|
|
138
|
+
base: "transparent"
|
|
139
|
+
},
|
|
140
|
+
border: {
|
|
141
|
+
base: "transparent"
|
|
142
|
+
},
|
|
143
|
+
text: {
|
|
144
|
+
base: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
145
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_200
|
|
146
|
+
}
|
|
134
147
|
}
|
|
135
148
|
},
|
|
136
|
-
|
|
149
|
+
link: {
|
|
150
|
+
base: _seedsColor.default.COLOR_BLUE_400,
|
|
151
|
+
hover: _seedsColor.default.COLOR_BLUE_300
|
|
152
|
+
},
|
|
153
|
+
text: {
|
|
154
|
+
headline: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
155
|
+
subtext: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
156
|
+
body: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
157
|
+
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
158
|
+
error: _seedsColor.default.COLOR_RED_400
|
|
159
|
+
},
|
|
160
|
+
icon: {
|
|
161
|
+
base: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
162
|
+
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
163
|
+
success: _decorativePalettes.green.foreground,
|
|
164
|
+
warning: _decorativePalettes.yellow.foreground,
|
|
165
|
+
error: _decorativePalettes.red.foreground,
|
|
166
|
+
danger: _decorativePalettes.red.foreground,
|
|
167
|
+
info: _decorativePalettes.blue.foreground,
|
|
168
|
+
opportunity: _decorativePalettes.purple.foreground
|
|
169
|
+
},
|
|
170
|
+
form: {
|
|
137
171
|
background: {
|
|
138
|
-
base:
|
|
139
|
-
|
|
140
|
-
active: _seedsColor.default.COLOR_NEUTRAL_1100
|
|
172
|
+
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
173
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
141
174
|
},
|
|
142
175
|
border: {
|
|
143
|
-
base: _seedsColor.default.COLOR_NEUTRAL_500
|
|
176
|
+
base: _seedsColor.default.COLOR_NEUTRAL_500,
|
|
177
|
+
error: _decorativePalettes.red.highlight,
|
|
178
|
+
warning: _decorativePalettes.yellow.highlight,
|
|
179
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
144
180
|
},
|
|
145
|
-
|
|
146
|
-
base: _seedsColor.default.
|
|
147
|
-
hover: _seedsColor.default.COLOR_BLUE_300
|
|
181
|
+
placeholder: {
|
|
182
|
+
base: _seedsColor.default.COLOR_NEUTRAL_500
|
|
148
183
|
}
|
|
149
184
|
},
|
|
150
|
-
|
|
185
|
+
listItem: {
|
|
151
186
|
background: {
|
|
152
|
-
base: "transparent"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
base: "transparent"
|
|
156
|
-
},
|
|
157
|
-
text: {
|
|
158
|
-
base: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
159
|
-
hover: _seedsColor.default.COLOR_NEUTRAL_200
|
|
187
|
+
base: "transparent",
|
|
188
|
+
hover: _seedsColor.default.COLOR_NEUTRAL_800,
|
|
189
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
160
190
|
}
|
|
161
191
|
}
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
base: _seedsColor.default.COLOR_BLUE_400,
|
|
165
|
-
hover: _seedsColor.default.COLOR_BLUE_300
|
|
166
|
-
},
|
|
167
|
-
text: {
|
|
168
|
-
headline: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
169
|
-
subtext: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
170
|
-
body: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
171
|
-
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
172
|
-
error: _seedsColor.default.COLOR_RED_400
|
|
173
|
-
},
|
|
174
|
-
icon: {
|
|
175
|
-
base: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
176
|
-
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
177
|
-
success: _decorativePalettes.green.foreground,
|
|
178
|
-
warning: _decorativePalettes.yellow.foreground,
|
|
179
|
-
error: _decorativePalettes.red.foreground,
|
|
180
|
-
danger: _decorativePalettes.red.foreground,
|
|
181
|
-
info: _decorativePalettes.blue.foreground,
|
|
182
|
-
opportunity: _decorativePalettes.purple.foreground
|
|
183
|
-
},
|
|
184
|
-
form: {
|
|
185
|
-
background: {
|
|
186
|
-
base: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
187
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
188
|
-
},
|
|
189
|
-
border: {
|
|
190
|
-
base: _seedsColor.default.COLOR_NEUTRAL_500,
|
|
191
|
-
error: _decorativePalettes.red.highlight,
|
|
192
|
-
warning: _decorativePalettes.yellow.highlight,
|
|
193
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
194
|
-
},
|
|
195
|
-
placeholder: {
|
|
196
|
-
base: _seedsColor.default.COLOR_NEUTRAL_500
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
listItem: {
|
|
200
|
-
background: {
|
|
201
|
-
base: "transparent",
|
|
202
|
-
hover: _seedsColor.default.COLOR_NEUTRAL_800,
|
|
203
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
elevation: {
|
|
207
|
-
base: _seedsColor.default.COLOR_NEUTRAL_1100
|
|
208
|
-
},
|
|
209
|
-
dataviz: {
|
|
210
|
-
map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
|
|
211
|
-
list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
|
|
212
|
-
}
|
|
213
|
-
}, _datavizPalette.datavizPalette);
|
|
214
|
-
|
|
215
|
-
var darkTheme = _extends({}, _theme.default, {
|
|
216
|
-
colors: colors,
|
|
217
|
-
shadows: shadows,
|
|
218
|
-
mode: MODE
|
|
192
|
+
}, _datavizPalette.datavizPalette),
|
|
193
|
+
mode: "dark"
|
|
219
194
|
});
|
|
220
195
|
|
|
221
196
|
var _default = darkTheme;
|