@sproutsocial/racine 8.8.0-dar35-beta.1 → 9.0.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/__flow__/Button/styles.js +1 -1
  3. package/__flow__/Card/styles.js +1 -1
  4. package/__flow__/Drawer/index.stories.js +3 -3
  5. package/__flow__/Drawer/styles.js +1 -1
  6. package/__flow__/KeyboardKey/styles.js +1 -1
  7. package/__flow__/Listbox/__snapshots__/index.test.js.snap +40 -34
  8. package/__flow__/Menu/__snapshots__/index.test.js.snap +15 -12
  9. package/__flow__/Menu/index.js +3 -7
  10. package/__flow__/Menu/index.stories.js +1 -1
  11. package/__flow__/Menu/styles.js +1 -18
  12. package/__flow__/Modal/index.test.js +0 -16
  13. package/__flow__/Modal/styles.js +1 -1
  14. package/__flow__/Popout/index.js +1 -1
  15. package/__flow__/Token/index.js +4 -1
  16. package/__flow__/Token/index.stories.js +11 -0
  17. package/__flow__/Token/styles.js +43 -33
  18. package/__flow__/Tooltip/index.js +1 -1
  19. package/__flow__/themes/_themes.scss +19 -17
  20. package/__flow__/themes/dark/theme.js +179 -159
  21. package/__flow__/themes/default/theme.js +15 -8
  22. package/__flow__/themes/utils/interact.js +12 -0
  23. package/__flow__/types/system-props.flow.js +1 -2
  24. package/commonjs/Button/styles.js +1 -1
  25. package/commonjs/Card/styles.js +1 -1
  26. package/commonjs/Drawer/styles.js +1 -1
  27. package/commonjs/KeyboardKey/styles.js +1 -1
  28. package/commonjs/Menu/index.js +3 -1
  29. package/commonjs/Menu/styles.js +3 -16
  30. package/commonjs/Modal/styles.js +1 -1
  31. package/commonjs/Popout/index.js +1 -1
  32. package/commonjs/Token/index.js +5 -2
  33. package/commonjs/Token/styles.js +19 -50
  34. package/commonjs/Tooltip/index.js +1 -1
  35. package/commonjs/themes/dark/theme.js +178 -157
  36. package/commonjs/themes/default/theme.js +15 -8
  37. package/commonjs/themes/utils/interact.js +19 -0
  38. package/dist/themes/_themes.scss +19 -17
  39. package/dist/themes/dark.scss +18 -11
  40. package/dist/themes/default.scss +14 -15
  41. package/lib/Button/styles.js +1 -1
  42. package/lib/Card/styles.js +1 -1
  43. package/lib/Drawer/styles.js +1 -1
  44. package/lib/KeyboardKey/styles.js +1 -1
  45. package/lib/Menu/index.js +4 -2
  46. package/lib/Menu/styles.js +2 -13
  47. package/lib/Modal/styles.js +1 -1
  48. package/lib/Popout/index.js +1 -1
  49. package/lib/Token/index.js +5 -2
  50. package/lib/Token/styles.js +19 -50
  51. package/lib/Tooltip/index.js +1 -1
  52. package/lib/themes/dark/theme.js +173 -156
  53. package/lib/themes/default/theme.js +14 -8
  54. package/lib/themes/utils/interact.js +13 -0
  55. package/package.json +3 -3
  56. package/__flow__/Modal/__snapshots__/index.test.js.snap +0 -80
@@ -67,7 +67,6 @@ export type TypeSystemCommonProps = $ReadOnly<{|
67
67
  ...TypeSpaceProps,
68
68
  cursor?: TypeResponsiveBase<>,
69
69
  |}>;
70
-
71
70
  export type TypeSystemBorderProps = $ReadOnly<{|
72
71
  border?: TypeResponsiveBase<>,
73
72
  borderWidth?: TypeResponsiveBase<>,
@@ -85,7 +84,7 @@ export type TypeSystemBorderProps = $ReadOnly<{|
85
84
  borderX?: TypeResponsiveBase<>,
86
85
  borderY?: TypeResponsiveBase<>,
87
86
  boxShadow?: TypeResponsiveBase<>,
88
- textShadow?: TypeResponsiveBase<>,
87
+ textShadow?: TypeResponsiveBase<>
89
88
  |}>;
90
89
 
91
90
  type TypeResponsiveTypeographySize = TypeResponsiveString<TypeTypography>;
@@ -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[100] : "none";
50
+ return props.appearance === "placeholder" ? props.theme.shadows.low : "none";
51
51
  }, function (props) {
52
52
  return props.theme.colors.button[props.appearance].text.hover;
53
53
  }, function (props) {
@@ -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[100];
22
+ return props.theme.shadows.low;
23
23
  }, function (props) {
24
24
  return props.theme.duration.medium;
25
25
  }, function (props) {
@@ -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[400];
32
+ return props.theme.shadows.high;
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[100];
24
+ return props.theme.shadows.low;
25
25
  }, function (props) {
26
26
  return props.theme.space[200];
27
27
  }, _systemProps.COMMON);
@@ -277,7 +277,9 @@ 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(_styles.MenuGroupContainer, _extends({}, props, {
280
+ }, title)), /*#__PURE__*/React.createElement(_Box.default, _extends({}, props, {
281
+ m: 300,
282
+ p: 300,
281
283
  role: "group"
282
284
  }), children));
283
285
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.MenuItemsContainer = exports.MenuGroupContainer = exports.MenuItemContainer = void 0;
4
+ exports.MenuItemsContainer = exports.MenuItemContainer = void 0;
5
5
 
6
6
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
7
7
 
@@ -56,21 +56,8 @@ 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;
70
59
  var MenuItemsContainer = (0, _styledComponents.default)(_Box.default).withConfig({
71
60
  displayName: "styles__MenuItemsContainer",
72
- componentId: "fjvae4-2"
61
+ componentId: "fjvae4-1"
73
62
  })(["list-style-type:none;outline:0;"]);
74
- exports.MenuItemsContainer = MenuItemsContainer;
75
- var _default = MenuGroupContainer;
76
- exports.default = _default;
63
+ exports.MenuItemsContainer = MenuItemsContainer;
@@ -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[300];
75
+ return props.theme.shadows.medium;
76
76
  }, function (props) {
77
77
  return props.theme.colors.text.body;
78
78
  }, BODY_PADDING, BODY_PADDING, BODY_PADDING, _styledSystem.width, _systemProps.COMMON);
@@ -290,7 +290,7 @@ Popout.Content = function (_ref4) {
290
290
  border: 500,
291
291
  borderColor: "container.border.base",
292
292
  borderRadius: "outer",
293
- boxShadow: 300,
293
+ boxShadow: "medium",
294
294
  p: 400,
295
295
  m: 300
296
296
  }, rest), children);
@@ -33,14 +33,17 @@ 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
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
36
+ _ref$palette = _ref.palette,
37
+ palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
38
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
37
39
 
38
40
  var textContainer = (0, _hooks.useTextContent)("");
39
41
  return /*#__PURE__*/React.createElement(_styles.default, _extends({
40
42
  ref: textContainer,
41
43
  valid: valid,
42
- as: closeable || onClick ? "button" : "div",
44
+ palette: palette,
43
45
  type: closeable || onClick ? "button" : undefined,
46
+ as: closeable || onClick ? "button" : "div",
44
47
  closeable: closeable || onClick,
45
48
  disabled: disabled,
46
49
  onClick: onClick,
@@ -16,56 +16,25 @@ 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
- })(["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
- });
19
+ })(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
20
+ var theme = _ref.theme;
21
+ return (0, _styledComponents.css)(["", " font-family:", ";font-weight:", ";border:1px solid ", ";border-radius:", ";color:", ";background:", ";padding:", " ", ";transition:all ", " ", ";"], theme.typography[200], theme.fontFamily, theme.fontWeights.normal, theme.colors.container.border.base, theme.radii[500], theme.colors.text.body, theme.colors.container.background.base, theme.space[200], theme.space[300], theme.duration.fast, theme.easing.ease_inout);
22
+ }, _mixins.focusRing, function (_ref2) {
23
+ var theme = _ref2.theme,
24
+ palette = _ref2.palette;
25
+ return palette === "blue" && (0, _styledComponents.css)(["color:", ";background:", ";border:1px solid ", ";&:hover,&:active{cursor:pointer;box-shadow:", ";border:1px solid ", ";}"], theme.colors.text.body, theme.colors.container.background.decorative.blue, theme.colors.container.border.decorative.blue, theme.shadows.low, theme.utils.interact(theme.colors.container.border.decorative.blue));
26
+ }, function (_ref3) {
27
+ var closeable = _ref3.closeable,
28
+ theme = _ref3.theme;
29
+ return closeable && (0, _styledComponents.css)(["cursor:pointer;&:hover,&:active{box-shadow:", ";border:1px solid ", ";}"], theme.shadows.low, theme.utils.interact(theme.colors.container.border.base));
30
+ }, function (_ref4) {
31
+ var disabled = _ref4.disabled,
32
+ theme = _ref4.theme;
33
+ return disabled && (0, _styledComponents.css)(["opacity:0.4;cursor:not-allowed;&:hover,&:active{box-shadow:none;border:1px solid ", ";}"], theme.colors.container.border.base);
34
+ }, function (_ref5) {
35
+ var valid = _ref5.valid,
36
+ theme = _ref5.theme;
37
+ return !valid && (0, _styledComponents.css)(["color:", ";background:", ";border:1px solid ", ";&:hover{box-shadow:", ";border:1px solid ", ";}"], theme.colors.text.error, theme.colors.container.background.error, theme.colors.container.border.error, theme.shadows.low, theme.utils.interact(theme.colors.container.border.error));
69
38
  }, _systemProps.COMMON);
70
39
 
71
40
  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: 300,
135
+ boxShadow: "medium",
136
136
  border: 500,
137
137
  borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
138
138
 
@@ -1,200 +1,221 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = void 0;
4
+ exports.default = exports.shadows = void 0;
5
5
 
6
6
  var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
7
7
 
8
+ var _seedsDepth = _interopRequireDefault(require("@sproutsocial/seeds-depth"));
9
+
8
10
  var _theme = _interopRequireDefault(require("../default/theme"));
9
11
 
10
12
  var _datavizPalette = require("./dataviz-palette");
11
13
 
12
14
  var _decorativePalettes = require("./decorative-palettes");
13
15
 
16
+ var _interact = _interopRequireDefault(require("../utils/interact"));
17
+
14
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
19
 
16
20
  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
21
 
18
- var darkTheme = _extends({}, _theme.default, {
19
- colors: _extends({}, _theme.default.colors, {
20
- app: {
22
+ var MODE = "default-dark";
23
+ var shadows = {
24
+ low: _seedsDepth.default.ELEVATION_LEVEL_100 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
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: {
21
81
  background: {
22
- base: _seedsColor.default.COLOR_NEUTRAL_1000
82
+ base: _seedsColor.default.COLOR_BLUE_400,
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
23
92
  }
24
93
  },
25
- container: {
94
+ secondary: {
26
95
  background: {
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
96
+ base: "transparent",
97
+ hover: _seedsColor.default.COLOR_NEUTRAL_100,
98
+ active: _seedsColor.default.COLOR_NEUTRAL_0
44
99
  },
45
100
  border: {
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
101
+ base: _seedsColor.default.COLOR_NEUTRAL_0
102
+ },
103
+ text: {
104
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
105
+ hover: _seedsColor.default.COLOR_NEUTRAL_800
63
106
  }
64
107
  },
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
- }
79
- },
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
- }
108
+ pill: {
109
+ background: {
110
+ base: "transparent",
111
+ hover: _seedsColor.default.COLOR_NEUTRAL_1000,
112
+ active: _seedsColor.default.COLOR_NEUTRAL_900
93
113
  },
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
- }
114
+ border: {
115
+ base: "transparent"
107
116
  },
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
- }
117
+ text: {
118
+ base: _seedsColor.default.COLOR_NEUTRAL_100,
119
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
120
+ }
121
+ },
122
+ destructive: {
123
+ background: {
124
+ base: _seedsColor.default.COLOR_RED_400,
125
+ hover: _seedsColor.default.COLOR_RED_300,
126
+ active: _seedsColor.default.COLOR_RED_200
121
127
  },
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
- }
128
+ border: {
129
+ base: "transparent"
135
130
  },
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
- }
131
+ text: {
132
+ base: _seedsColor.default.COLOR_NEUTRAL_900,
133
+ hover: _seedsColor.default.COLOR_NEUTRAL_1000
147
134
  }
148
135
  },
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: {
136
+ placeholder: {
171
137
  background: {
172
- base: _seedsColor.default.COLOR_NEUTRAL_900,
173
- selected: _seedsColor.default.COLOR_NEUTRAL_0
138
+ base: "transparent",
139
+ hover: _seedsColor.default.COLOR_NEUTRAL_1100,
140
+ active: _seedsColor.default.COLOR_NEUTRAL_1100
174
141
  },
175
142
  border: {
176
- base: _seedsColor.default.COLOR_NEUTRAL_500,
177
- error: _decorativePalettes.red.highlight,
178
- warning: _decorativePalettes.yellow.highlight,
179
- selected: _seedsColor.default.COLOR_NEUTRAL_0
180
- },
181
- placeholder: {
182
143
  base: _seedsColor.default.COLOR_NEUTRAL_500
144
+ },
145
+ text: {
146
+ base: _seedsColor.default.COLOR_BLUE_400,
147
+ hover: _seedsColor.default.COLOR_BLUE_300
183
148
  }
184
149
  },
185
- listItem: {
150
+ unstyled: {
186
151
  background: {
187
- base: "transparent",
188
- hover: _seedsColor.default.COLOR_NEUTRAL_800,
189
- selected: _seedsColor.default.COLOR_NEUTRAL_0
152
+ base: "transparent"
153
+ },
154
+ border: {
155
+ base: "transparent"
156
+ },
157
+ text: {
158
+ base: _seedsColor.default.COLOR_NEUTRAL_300,
159
+ hover: _seedsColor.default.COLOR_NEUTRAL_200
190
160
  }
161
+ }
162
+ },
163
+ link: {
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
191
194
  },
192
- dataviz: {
193
- map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
194
- list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
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
195
204
  }
196
- }, _datavizPalette.datavizPalette),
197
- mode: "dark"
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
198
219
  });
199
220
 
200
221
  var _default = darkTheme;