@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
@@ -23,12 +23,15 @@ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"))
23
23
 
24
24
  var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
25
25
 
26
+ var _interact = _interopRequireDefault(require("../utils/interact"));
27
+
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
29
 
28
30
  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); }
29
31
 
30
32
  var breakpoints = ["900px", "1200px", "1500px", "1800px"];
31
33
  exports.breakpoints = breakpoints;
34
+ var MODE = "default-light";
32
35
 
33
36
  var colors = _extends({
34
37
  app: {
@@ -203,6 +206,9 @@ var colors = _extends({
203
206
  selected: _seedsColor.default.COLOR_NEUTRAL_800
204
207
  }
205
208
  },
209
+ elevation: {
210
+ base: _seedsColor.default.COLOR_NEUTRAL_900 + "3D"
211
+ },
206
212
  network: {
207
213
  twitter: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER,
208
214
  twitter_like: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER_LIKE,
@@ -291,10 +297,9 @@ var borderWidths = {
291
297
  };
292
298
  exports.borderWidths = borderWidths;
293
299
  var shadows = {
294
- "100": _seedsDepth.default.ELEVATION_LEVEL_100,
295
- "200": _seedsDepth.default.ELEVATION_LEVEL_200,
296
- "300": _seedsDepth.default.ELEVATION_LEVEL_300,
297
- "400": _seedsDepth.default.ELEVATION_LEVEL_400
300
+ low: _seedsDepth.default.ELEVATION_LEVEL_100 + " " + _seedsColor.default.COLOR_NEUTRAL_900 + "3D",
301
+ medium: _seedsDepth.default.ELEVATION_LEVEL_300 + " " + _seedsColor.default.COLOR_NEUTRAL_900 + "3D",
302
+ high: _seedsDepth.default.ELEVATION_LEVEL_400 + " " + _seedsColor.default.COLOR_NEUTRAL_900 + "3D"
298
303
  };
299
304
  exports.shadows = shadows;
300
305
  var easing = {
@@ -310,6 +315,9 @@ var duration = {
310
315
  };
311
316
  exports.duration = duration;
312
317
  var theme = {
318
+ utils: {
319
+ interact: (0, _interact.default)(MODE)
320
+ },
313
321
  breakpoints: breakpoints,
314
322
  colors: colors,
315
323
  typography: _extends({}, typography, {
@@ -330,11 +338,10 @@ var theme = {
330
338
  }),
331
339
  borders: borders,
332
340
  borderWidths: borderWidths,
333
- shadows: _extends({}, shadows, {
334
- shadows: shadows
335
- }),
341
+ shadows: shadows,
336
342
  easing: easing,
337
- duration: duration
343
+ duration: duration,
344
+ mode: MODE
338
345
  };
339
346
  var _default = theme;
340
347
  exports.default = _default;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _polished = require("polished");
7
+
8
+ var interact = function interact(mode) {
9
+ return function (themeValue) {
10
+ if (mode === "default-dark") {
11
+ return (0, _polished.lighten)(0.2, themeValue);
12
+ } else {
13
+ return (0, _polished.darken)(0.2, themeValue);
14
+ }
15
+ };
16
+ };
17
+
18
+ var _default = interact;
19
+ exports.default = _default;
@@ -9,8 +9,8 @@
9
9
  // In the JS theme files, the theme object is exported as "default" (i.e., using "export default"),
10
10
  // so we need to map-get "default" to access it.
11
11
  $themes: (
12
- light: map-get($default, "default"),
13
- dark: map-get($dark, "default")
12
+ light: map-get($default, "default"),
13
+ dark: map-get($dark, "default")
14
14
  );
15
15
 
16
16
  // MIXIN
@@ -33,68 +33,68 @@ $themes: (
33
33
  // This function will allow you to get any value from the theme.
34
34
  // @param {string} $key - the period-separated path to the value in the theme object. e.g., "colors.text.body"
35
35
  @function t($key) {
36
- $keys: _string-split($key, ".");
36
+ $keys: _str-split($key, ".");
37
37
  @return _map-deep-get($theme-map, $keys);
38
38
  }
39
39
 
40
- // These functions are convenience methods to get theme values for subsets of the theme.
40
+ // The rest of the functions are convenience methods to get theme values for subsets of the theme.
41
41
  // @param {string} $key - the period-separated path to the value in the theme object, with "colors." omitted. e.g., "text.body"
42
42
  @function colors($key) {
43
- $keys: _string-split($key, ".");
43
+ $keys: _str-split($key, ".");
44
44
  @return _map-deep-get($theme-map, join("colors", $keys));
45
45
  }
46
46
 
47
47
  // @param {string} $key - the period-separated path to the value in the theme object, with "typography." omitted. e.g., "100.fontSize"
48
48
  @function typography($key) {
49
- $keys: _string-split($key, ".");
49
+ $keys: _str-split($key, ".");
50
50
  @return _map-deep-get($theme-map, join("typography", $keys));
51
51
  }
52
52
 
53
53
  // @param {string} $key - the period-separated path to the value in the theme object, with "fontWeights." omitted. e.g., "normal"
54
54
  @function fontWeights($key) {
55
- $keys: _string-split($key, ".");
55
+ $keys: _str-split($key, ".");
56
56
  @return _map-deep-get($theme-map, join("fontWeights", $keys));
57
57
  }
58
58
 
59
59
  // @param {string} $key - the period-separated path to the value in the theme object, with "space." omitted. e.g., "100"
60
60
  @function space($key) {
61
- $keys: _string-split($key, ".");
61
+ $keys: _str-split($key, ".");
62
62
  @return _map-deep-get($theme-map, join("space", $keys));
63
63
  }
64
64
 
65
65
  // @param {string} $key - the period-separated path to the value in the theme object, with "radii." omitted. e.g., "inner"
66
66
  @function radii($key) {
67
- $keys: _string-split($key, ".");
67
+ $keys: _str-split($key, ".");
68
68
  @return _map-deep-get($theme-map, join("radii", $keys));
69
69
  }
70
70
 
71
71
  // @param {string} $key - the period-separated path to the value in the theme object, with "borders." omitted. e.g., "500"
72
72
  @function borders($key) {
73
- $keys: _string-split($key, ".");
73
+ $keys: _str-split($key, ".");
74
74
  @return _map-deep-get($theme-map, join("borders", $keys));
75
75
  }
76
76
 
77
77
  // @param {string} $key - the period-separated path to the value in the theme object, with "borderWidths." omitted. e.g., "500"
78
78
  @function borderWidths($key) {
79
- $keys: _string-split($key, ".");
79
+ $keys: _str-split($key, ".");
80
80
  @return _map-deep-get($theme-map, join("borderWidths", $keys));
81
81
  }
82
82
 
83
83
  // @param {string} $key - the period-separated path to the value in the theme object, with "shadows." omitted. e.g., "low"
84
84
  @function shadows($key) {
85
- $keys: _string-split($key, ".");
85
+ $keys: _str-split($key, ".");
86
86
  @return _map-deep-get($theme-map, join("shadows", $keys));
87
87
  }
88
88
 
89
89
  // @param {string} $key - the period-separated path to the value in the theme object, with "easing." omitted. e.g., "ease_in"
90
90
  @function easing($key) {
91
- $keys: _string-split($key, ".");
91
+ $keys: _str-split($key, ".");
92
92
  @return _map-deep-get($theme-map, join("easing", $keys));
93
93
  }
94
94
 
95
95
  // @param {string} $key - the period-separated path to the value in the theme object, with "duration." omitted. e.g., "fast"
96
96
  @function duration($key) {
97
- $keys: _string-split($key, ".");
97
+ $keys: _str-split($key, ".");
98
98
  @return _map-deep-get($theme-map, join("duration", $keys));
99
99
  }
100
100
 
@@ -103,8 +103,9 @@ $themes: (
103
103
  // If you import this file with @use, these functions will be excluded because they are private.
104
104
 
105
105
  // Via https://stackoverflow.com/a/42295154
106
- // Only works with a single-character separator
107
- @function _string-split($string, $separator) {
106
+ // Used to split period-separated object keys, e.g. "colors.text.body" => ["colors", "text", "body"]
107
+ // Only works with a single-character separator.
108
+ @function _str-split($string, $separator) {
108
109
  // empty array/list
109
110
  $split-arr: ();
110
111
  // first index of separator in string
@@ -127,7 +128,8 @@ $themes: (
127
128
  }
128
129
 
129
130
  // Adapted from https://css-tricks.com/snippets/sass/deep-getset-maps/
130
- // Iterates over a list of keys to read multi-level maps
131
+ // Iterates over a list of keys to read multi-level maps.
132
+ // e.g., _map-deep-get((colors: (text: (body: "#364141"))), ["colors", "text", "body"]) => "#364141"
131
133
  @function _map-deep-get($map, $keys) {
132
134
  @each $key in $keys {
133
135
  $map: map-get($map, $key);
@@ -1,6 +1,14 @@
1
1
  $dark: (
2
2
  __esModule: true,
3
+ shadows: (
4
+ low: 0px 2px 4px #040404FF,
5
+ medium: 0px 8px 16px #040404FF,
6
+ high: 0px 16px 32px #040404FF
7
+ ),
3
8
  default: (
9
+ utils: (
10
+
11
+ ),
4
12
  breakpoints: (900px, 1200px, 1500px, 1800px),
5
13
  colors: (
6
14
  app: (
@@ -175,6 +183,9 @@ $dark: (
175
183
  selected: #FFFFFF
176
184
  )
177
185
  ),
186
+ elevation: (
187
+ base: #040404
188
+ ),
178
189
  network: (
179
190
  twitter: #1da1f2,
180
191
  twitter_like: #e0245e,
@@ -401,6 +412,9 @@ $dark: (
401
412
  18: #ff7f6e,
402
413
  19: #c2f2bd,
403
414
  20: #ffe99a
415
+ ),
416
+ utils: (
417
+
404
418
  )
405
419
  ),
406
420
  typography: (
@@ -568,16 +582,9 @@ $dark: (
568
582
  500: 1px
569
583
  ),
570
584
  shadows: (
571
- 100: 0px 2px 4px rgba(39,51,51,.24),
572
- 200: 0px 4px 8px rgba(39,51,51,.24),
573
- 300: 0px 8px 16px rgba(39,51,51,.24),
574
- 400: 0px 16px 32px rgba(39,51,51,.24),
575
- shadows: (
576
- 100: 0px 2px 4px rgba(39,51,51,.24),
577
- 200: 0px 4px 8px rgba(39,51,51,.24),
578
- 300: 0px 8px 16px rgba(39,51,51,.24),
579
- 400: 0px 16px 32px rgba(39,51,51,.24)
580
- )
585
+ low: 0px 2px 4px #040404FF,
586
+ medium: 0px 8px 16px #040404FF,
587
+ high: 0px 16px 32px #040404FF
581
588
  ),
582
589
  easing: (
583
590
  ease_in: cubic-bezier(.4, 0, .7, .2),
@@ -589,6 +596,6 @@ $dark: (
589
596
  medium: .3s,
590
597
  slow: .6s
591
598
  ),
592
- mode: dark
599
+ mode: default-dark
593
600
  )
594
601
  );
@@ -85,10 +85,9 @@ $default: (
85
85
  500: 1px
86
86
  ),
87
87
  shadows: (
88
- 100: 0px 2px 4px rgba(39,51,51,.24),
89
- 200: 0px 4px 8px rgba(39,51,51,.24),
90
- 300: 0px 8px 16px rgba(39,51,51,.24),
91
- 400: 0px 16px 32px rgba(39,51,51,.24)
88
+ low: 0px 2px 4px #2733333D,
89
+ medium: 0px 8px 16px #2733333D,
90
+ high: 0px 16px 32px #2733333D
92
91
  ),
93
92
  easing: (
94
93
  ease_in: cubic-bezier(.4, 0, .7, .2),
@@ -101,6 +100,9 @@ $default: (
101
100
  slow: .6s
102
101
  ),
103
102
  default: (
103
+ utils: (
104
+
105
+ ),
104
106
  breakpoints: (900px, 1200px, 1500px, 1800px),
105
107
  colors: (
106
108
  app: (
@@ -275,6 +277,9 @@ $default: (
275
277
  selected: #364141
276
278
  )
277
279
  ),
280
+ elevation: (
281
+ base: #2733333D
282
+ ),
278
283
  network: (
279
284
  twitter: #1da1f2,
280
285
  twitter_like: #e0245e,
@@ -668,16 +673,9 @@ $default: (
668
673
  500: 1px
669
674
  ),
670
675
  shadows: (
671
- 100: 0px 2px 4px rgba(39,51,51,.24),
672
- 200: 0px 4px 8px rgba(39,51,51,.24),
673
- 300: 0px 8px 16px rgba(39,51,51,.24),
674
- 400: 0px 16px 32px rgba(39,51,51,.24),
675
- shadows: (
676
- 100: 0px 2px 4px rgba(39,51,51,.24),
677
- 200: 0px 4px 8px rgba(39,51,51,.24),
678
- 300: 0px 8px 16px rgba(39,51,51,.24),
679
- 400: 0px 16px 32px rgba(39,51,51,.24)
680
- )
676
+ low: 0px 2px 4px #2733333D,
677
+ medium: 0px 8px 16px #2733333D,
678
+ high: 0px 16px 32px #2733333D
681
679
  ),
682
680
  easing: (
683
681
  ease_in: cubic-bezier(.4, 0, .7, .2),
@@ -688,6 +686,7 @@ $default: (
688
686
  fast: .15s,
689
687
  medium: .3s,
690
688
  slow: .6s
691
- )
689
+ ),
690
+ mode: default-light
692
691
  )
693
692
  );
@@ -32,7 +32,7 @@ var Container = styled.button.withConfig({
32
32
  }, function (props) {
33
33
  return props.theme.colors.button[props.appearance].background.hover;
34
34
  }, function (props) {
35
- return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
35
+ return props.appearance === "placeholder" ? props.theme.shadows.low : "none";
36
36
  }, function (props) {
37
37
  return props.theme.colors.button[props.appearance].text.hover;
38
38
  }, function (props) {
@@ -9,7 +9,7 @@ var Container = styled(Box).withConfig({
9
9
  }, function (props) {
10
10
  return props.theme.radii[500];
11
11
  }, function (props) {
12
- return props.theme.shadows[100];
12
+ return props.theme.shadows.low;
13
13
  }, function (props) {
14
14
  return props.theme.duration.medium;
15
15
  }, function (props) {
@@ -13,7 +13,7 @@ var Container = styled.div.withConfig({
13
13
  }, function (props) {
14
14
  return props.theme.colors.container.background.base;
15
15
  }, function (props) {
16
- return props.theme.shadows[400];
16
+ return props.theme.shadows.high;
17
17
  }, function (props) {
18
18
  return css(["", ":", "px;"], props.direction, props.offset);
19
19
  }, COMMON);
@@ -12,7 +12,7 @@ var Container = styled.div.withConfig({
12
12
  }, function (props) {
13
13
  return props.theme.radii[500];
14
14
  }, function (props) {
15
- return props.theme.shadows[100];
15
+ return props.theme.shadows.low;
16
16
  }, function (props) {
17
17
  return props.theme.space[200];
18
18
  }, COMMON);
package/lib/Menu/index.js CHANGED
@@ -8,7 +8,7 @@ import * as React from "react";
8
8
  import styled from "styled-components";
9
9
  import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
10
10
  import uniqueId from "lodash.uniqueid";
11
- import { MenuGroupContainer, MenuItemContainer, MenuItemsContainer } from "./styles";
11
+ import { MenuItemContainer, MenuItemsContainer } from "./styles";
12
12
  import { MENU_ITEM_ROLES, MENU_ROLES } from "./constants";
13
13
  import Box from "../Box";
14
14
  import Button from "../Button";
@@ -244,7 +244,9 @@ export var MenuGroup = function MenuGroup(_ref2) {
244
244
  mt: 350,
245
245
  color: "text.headline",
246
246
  _css: isDisabled && disabled
247
- }, title)), /*#__PURE__*/React.createElement(MenuGroupContainer, _extends({}, props, {
247
+ }, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
248
+ m: 300,
249
+ p: 300,
248
250
  role: "group"
249
251
  }), children));
250
252
  };
@@ -41,18 +41,7 @@ export var MenuItemContainer = styled(Box).withConfig({
41
41
  }, function (props) {
42
42
  return props.disabled && disabled;
43
43
  });
44
- export var MenuGroupContainer = styled(Box).withConfig({
45
- displayName: "styles__MenuGroupContainer",
46
- componentId: "fjvae4-1"
47
- })(["", ";"], function (props) {
48
- return props.appearance === "flush" ? css(["margin:0 -", ";"], function (props) {
49
- return props.theme.space[300];
50
- }) : css(["padding:", ";"], function (props) {
51
- return props.theme.space[300];
52
- });
53
- });
54
44
  export var MenuItemsContainer = styled(Box).withConfig({
55
45
  displayName: "styles__MenuItemsContainer",
56
- componentId: "fjvae4-2"
57
- })(["list-style-type:none;outline:0;"]);
58
- export default MenuGroupContainer;
46
+ componentId: "fjvae4-1"
47
+ })(["list-style-type:none;outline:0;"]);
@@ -53,7 +53,7 @@ export var Container = styled(ReactModalAdapter).withConfig({
53
53
  }, function (props) {
54
54
  return props.theme.radii[500];
55
55
  }, function (props) {
56
- return props.theme.shadows[300];
56
+ return props.theme.shadows.medium;
57
57
  }, function (props) {
58
58
  return props.theme.colors.text.body;
59
59
  }, BODY_PADDING, BODY_PADDING, BODY_PADDING, width, COMMON);
@@ -267,7 +267,7 @@ Popout.Content = function (_ref4) {
267
267
  border: 500,
268
268
  borderColor: "container.border.base",
269
269
  borderRadius: "outer",
270
- boxShadow: 300,
270
+ boxShadow: "medium",
271
271
  p: 400,
272
272
  m: 300
273
273
  }, rest), children);
@@ -18,14 +18,17 @@ var Token = function Token(_ref) {
18
18
  valid = _ref$valid === void 0 ? true : _ref$valid,
19
19
  _ref$disabled = _ref.disabled,
20
20
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
21
+ _ref$palette = _ref.palette,
22
+ palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
23
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
22
24
 
23
25
  var textContainer = useTextContent("");
24
26
  return /*#__PURE__*/React.createElement(Container, _extends({
25
27
  ref: textContainer,
26
28
  valid: valid,
27
- as: closeable || onClick ? "button" : "div",
29
+ palette: palette,
28
30
  type: closeable || onClick ? "button" : undefined,
31
+ as: closeable || onClick ? "button" : "div",
29
32
  closeable: closeable || onClick,
30
33
  disabled: disabled,
31
34
  onClick: onClick,
@@ -4,55 +4,24 @@ import { focusRing } from "../utils/mixins";
4
4
  var Container = styled.button.withConfig({
5
5
  displayName: "styles__Container",
6
6
  componentId: "nyn5zy-0"
7
- })(["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) {
8
- return props.theme.fontFamily;
9
- }, function (props) {
10
- return props.theme.typography[200];
11
- }, function (props) {
12
- return props.theme.space[200];
13
- }, function (props) {
14
- return props.theme.space[300];
15
- }, function (props) {
16
- return props.theme.colors.text.body;
17
- }, function (props) {
18
- return props.theme.colors.container.background.base;
19
- }, function (props) {
20
- return props.theme.colors.container.border.base;
21
- }, function (props) {
22
- return props.theme.fontWeights.normal;
23
- }, function (props) {
24
- return props.theme.radii[500];
25
- }, function (props) {
26
- return props.theme.duration.fast;
27
- }, function (props) {
28
- return props.theme.easing.ease_inout;
29
- }, focusRing, function (props) {
30
- return props.closeable && css(["cursor:pointer;&:hover,&:active{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
31
- return props.theme.colors.text.body;
32
- }, function (props) {
33
- return props.theme.colors.container.border.decorative.neutral;
34
- }, function (props) {
35
- return props.theme.colors.container.background.decorative.neutral;
36
- });
37
- }, function (props) {
38
- return props.disabled && css(["opacity:0.4;cursor:not-allowed;&:hover,&:active{background:", ";border:1px solid ", ";}"], function (props) {
39
- return props.theme.colors.container.background.base;
40
- }, function (props) {
41
- return props.theme.colors.container.border.base;
42
- });
43
- }, function (props) {
44
- return !props.valid && css(["color:", ";border-color:", ";background:", ";&:hover{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
45
- return props.theme.colors.text.body;
46
- }, function (props) {
47
- return props.theme.colors.container.border.error;
48
- }, function (props) {
49
- return props.theme.colors.container.background.error;
50
- }, function (props) {
51
- return props.theme.colors.text.body;
52
- }, function (props) {
53
- return props.theme.colors.container.border.error;
54
- }, function (props) {
55
- return props.theme.colors.container.background.error;
56
- });
7
+ })(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
8
+ var theme = _ref.theme;
9
+ return 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);
10
+ }, focusRing, function (_ref2) {
11
+ var theme = _ref2.theme,
12
+ palette = _ref2.palette;
13
+ return palette === "blue" && 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));
14
+ }, function (_ref3) {
15
+ var closeable = _ref3.closeable,
16
+ theme = _ref3.theme;
17
+ return closeable && css(["cursor:pointer;&:hover,&:active{box-shadow:", ";border:1px solid ", ";}"], theme.shadows.low, theme.utils.interact(theme.colors.container.border.base));
18
+ }, function (_ref4) {
19
+ var disabled = _ref4.disabled,
20
+ theme = _ref4.theme;
21
+ return disabled && css(["opacity:0.4;cursor:not-allowed;&:hover,&:active{box-shadow:none;border:1px solid ", ";}"], theme.colors.container.border.base);
22
+ }, function (_ref5) {
23
+ var valid = _ref5.valid,
24
+ theme = _ref5.theme;
25
+ return !valid && 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));
57
26
  }, COMMON);
58
27
  export default Container;
@@ -118,7 +118,7 @@ var Content = function Content(_ref2) {
118
118
  m: 200,
119
119
  color: "text.body",
120
120
  bg: "container.background.base",
121
- boxShadow: 300,
121
+ boxShadow: "medium",
122
122
  border: 500,
123
123
  borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
124
124