@sproutsocial/racine 10.0.0 → 10.0.3-menuhotfix.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.
@@ -388,7 +388,6 @@ exports[`Listbox AsListbox with checkboxes should match snapshot 1`] = `
388
388
  .c2 {
389
389
  box-sizing: border-box;
390
390
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
391
- margin: 8px;
392
391
  padding: 8px;
393
392
  }
394
393
 
@@ -686,7 +685,6 @@ exports[`Listbox AsListbox with filter input should match snapshot 1`] = `
686
685
  .c2 {
687
686
  box-sizing: border-box;
688
687
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
689
- margin: 8px;
690
688
  padding: 8px;
691
689
  }
692
690
 
@@ -22,7 +22,6 @@ exports[`Menu AsMenu should match snapshot 1`] = `
22
22
  .c4 {
23
23
  box-sizing: border-box;
24
24
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
25
- margin: 8px;
26
25
  padding: 8px;
27
26
  }
28
27
 
@@ -287,7 +287,7 @@ export const MenuGroup = ({
287
287
  </Text>
288
288
  </Box>
289
289
  )}
290
- <Box {...props} m={300} p={300} role="group">
290
+ <Box {...props} p={300} role="group">
291
291
  {children}
292
292
  </Box>
293
293
  </>
@@ -6,7 +6,6 @@ import styled, {
6
6
  } from "styled-components";
7
7
  import { width, zIndex } from "styled-system";
8
8
  import ReactModal from "react-modal";
9
- import { transparentize } from "polished";
10
9
  import Box from "../Box";
11
10
  import { COMMON } from "../utils/system-props";
12
11
 
@@ -62,8 +61,7 @@ export const Container: StyledComponent<any, TypeTheme, *> = styled(ReactModalAd
62
61
  display: flex;
63
62
  align-items: center;
64
63
  justify-content: center;
65
- background-color: ${(props) =>
66
- transparentize(0.32, props.theme.colors.neutral[1000])};
64
+ background-color: ${(props) => props.theme.colors.overlay.background.base};
67
65
  opacity: 0;
68
66
  will-change: opacity;
69
67
  transition: opacity ${(props) => props.theme.duration.medium}
@@ -13,6 +13,7 @@ import {
13
13
  red,
14
14
  neutral,
15
15
  } from "./decorative-palettes";
16
+ import { transparentize } from "polished";
16
17
 
17
18
  import interact from "../utils/interact";
18
19
 
@@ -24,6 +25,8 @@ export const shadows = {
24
25
  high: `${DEPTH.ELEVATION_LEVEL_400} ${COLORS.COLOR_NEUTRAL_1100}FF`,
25
26
  };
26
27
 
28
+ // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
29
+
27
30
  const colors = {
28
31
  ...lightTheme.colors,
29
32
  utils: {
@@ -207,6 +210,17 @@ const colors = {
207
210
  selected: COLORS.COLOR_NEUTRAL_0,
208
211
  },
209
212
  },
213
+ overlay: {
214
+ background: {
215
+ base: transparentize(0.28, COLORS.COLOR_NEUTRAL_1000),
216
+ },
217
+ text: {
218
+ base: COLORS.COLOR_NEUTRAL_0,
219
+ },
220
+ icon: {
221
+ base: COLORS.COLOR_NEUTRAL_0,
222
+ },
223
+ },
210
224
  elevation: {
211
225
  base: COLORS.COLOR_NEUTRAL_1100,
212
226
  },
@@ -18,6 +18,7 @@ import SPACE from "@sproutsocial/seeds-space";
18
18
  import DEPTH from "@sproutsocial/seeds-depth";
19
19
  import MOTION from "@sproutsocial/seeds-motion";
20
20
  import BORDER from "@sproutsocial/seeds-border";
21
+ import { transparentize } from "polished";
21
22
 
22
23
  import interact from "../utils/interact";
23
24
 
@@ -25,6 +26,8 @@ export const breakpoints = ["900px", "1200px", "1500px", "1800px"];
25
26
 
26
27
  const MODE = "light";
27
28
 
29
+ // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
30
+
28
31
  const colors = {
29
32
  app: {
30
33
  background: {
@@ -204,6 +207,17 @@ const colors = {
204
207
  selected: COLORS.COLOR_NEUTRAL_800,
205
208
  },
206
209
  },
210
+ overlay: {
211
+ background: {
212
+ base: transparentize(0.44, COLORS.COLOR_NEUTRAL_1000),
213
+ },
214
+ text: {
215
+ base: COLORS.COLOR_NEUTRAL_0,
216
+ },
217
+ icon: {
218
+ base: COLORS.COLOR_NEUTRAL_0,
219
+ },
220
+ },
207
221
  elevation: {
208
222
  base: `${COLORS.COLOR_NEUTRAL_900}3D`,
209
223
  },
@@ -278,7 +278,6 @@ var MenuGroup = function MenuGroup(_ref2) {
278
278
  color: "text.headline",
279
279
  _css: isDisabled && _mixins.disabled
280
280
  }, title)), /*#__PURE__*/React.createElement(_Box.default, _extends({}, props, {
281
- m: 300,
282
281
  p: 300,
283
282
  role: "group"
284
283
  }), children));
@@ -11,8 +11,6 @@ var _styledSystem = require("styled-system");
11
11
 
12
12
  var _reactModal = _interopRequireDefault(require("react-modal"));
13
13
 
14
- var _polished = require("polished");
15
-
16
14
  var _Box = _interopRequireDefault(require("../Box"));
17
15
 
18
16
  var _systemProps = require("../utils/system-props");
@@ -62,7 +60,7 @@ var Container = (0, _styledComponents.default)(ReactModalAdapter).withConfig({
62
60
  displayName: "styles__Container",
63
61
  componentId: "sc-9lom4g-0"
64
62
  })(["&__Overlay{position:fixed;top:0px;left:0px;right:0px;bottom:0px;display:flex;align-items:center;justify-content:center;background-color:", ";opacity:0;will-change:opacity;transition:opacity ", " ", ";", " &.ReactModal__Overlay--after-open{opacity:1;}&.ReactModal__Overlay--before-close{opacity:0;}}&__Content{display:flex;flex-direction:column;background:", ";border-radius:", ";box-shadow:", ";filter:blur(0);color:", ";outline:none;max-width:calc(100vw - ", ");max-height:calc(100vh - ", ");@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){height:calc(100vh - ", ");}", " ", "}"], function (props) {
65
- return (0, _polished.transparentize)(0.32, props.theme.colors.neutral[1000]);
63
+ return props.theme.colors.overlay.background.base;
66
64
  }, function (props) {
67
65
  return props.theme.duration.medium;
68
66
  }, function (props) {
@@ -13,6 +13,8 @@ var _datavizPalette = require("./dataviz-palette");
13
13
 
14
14
  var _decorativePalettes = require("./decorative-palettes");
15
15
 
16
+ var _polished = require("polished");
17
+
16
18
  var _interact = _interopRequireDefault(require("../utils/interact"));
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -24,7 +26,8 @@ var shadows = {
24
26
  low: _seedsDepth.default.ELEVATION_LEVEL_100 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
25
27
  medium: _seedsDepth.default.ELEVATION_LEVEL_300 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
26
28
  high: _seedsDepth.default.ELEVATION_LEVEL_400 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF"
27
- };
29
+ }; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
30
+
28
31
  exports.shadows = shadows;
29
32
 
30
33
  var colors = _extends({}, _theme.default.colors, {
@@ -209,6 +212,17 @@ var colors = _extends({}, _theme.default.colors, {
209
212
  selected: _seedsColor.default.COLOR_NEUTRAL_0
210
213
  }
211
214
  },
215
+ overlay: {
216
+ background: {
217
+ base: (0, _polished.transparentize)(0.28, _seedsColor.default.COLOR_NEUTRAL_1000)
218
+ },
219
+ text: {
220
+ base: _seedsColor.default.COLOR_NEUTRAL_0
221
+ },
222
+ icon: {
223
+ base: _seedsColor.default.COLOR_NEUTRAL_0
224
+ }
225
+ },
212
226
  elevation: {
213
227
  base: _seedsColor.default.COLOR_NEUTRAL_1100
214
228
  },
@@ -23,6 +23,8 @@ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"))
23
23
 
24
24
  var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
25
25
 
26
+ var _polished = require("polished");
27
+
26
28
  var _interact = _interopRequireDefault(require("../utils/interact"));
27
29
 
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -31,7 +33,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
31
33
 
32
34
  var breakpoints = ["900px", "1200px", "1500px", "1800px"];
33
35
  exports.breakpoints = breakpoints;
34
- var MODE = "light";
36
+ var MODE = "light"; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
35
37
 
36
38
  var colors = _extends({
37
39
  app: {
@@ -212,6 +214,17 @@ var colors = _extends({
212
214
  selected: _seedsColor.default.COLOR_NEUTRAL_800
213
215
  }
214
216
  },
217
+ overlay: {
218
+ background: {
219
+ base: (0, _polished.transparentize)(0.44, _seedsColor.default.COLOR_NEUTRAL_1000)
220
+ },
221
+ text: {
222
+ base: _seedsColor.default.COLOR_NEUTRAL_0
223
+ },
224
+ icon: {
225
+ base: _seedsColor.default.COLOR_NEUTRAL_0
226
+ }
227
+ },
215
228
  elevation: {
216
229
  base: _seedsColor.default.COLOR_NEUTRAL_900 + "3D"
217
230
  },
@@ -189,6 +189,17 @@ $dark: (
189
189
  selected: #FFFFFF
190
190
  )
191
191
  ),
192
+ overlay: (
193
+ background: (
194
+ base: rgba(22,32,32,0.72)
195
+ ),
196
+ text: (
197
+ base: #FFFFFF
198
+ ),
199
+ icon: (
200
+ base: #FFFFFF
201
+ )
202
+ ),
192
203
  elevation: (
193
204
  base: #040404
194
205
  ),
@@ -283,6 +283,17 @@ $light: (
283
283
  selected: #364141
284
284
  )
285
285
  ),
286
+ overlay: (
287
+ background: (
288
+ base: rgba(22,32,32,0.56)
289
+ ),
290
+ text: (
291
+ base: #FFFFFF
292
+ ),
293
+ icon: (
294
+ base: #FFFFFF
295
+ )
296
+ ),
286
297
  elevation: (
287
298
  base: #2733333D
288
299
  ),
package/lib/Menu/index.js CHANGED
@@ -245,7 +245,6 @@ export var MenuGroup = function MenuGroup(_ref2) {
245
245
  color: "text.headline",
246
246
  _css: isDisabled && disabled
247
247
  }, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
248
- m: 300,
249
248
  p: 300,
250
249
  role: "group"
251
250
  }), children));
@@ -10,7 +10,6 @@ import React from "react";
10
10
  import styled, { createGlobalStyle } from "styled-components";
11
11
  import { width, zIndex } from "styled-system";
12
12
  import ReactModal from "react-modal";
13
- import { transparentize } from "polished";
14
13
  import Box from "../Box";
15
14
  import { COMMON } from "../utils/system-props";
16
15
  // This is the max space allowed between the modal and the edge of the browser
@@ -43,7 +42,7 @@ export var Container = styled(ReactModalAdapter).withConfig({
43
42
  displayName: "styles__Container",
44
43
  componentId: "sc-9lom4g-0"
45
44
  })(["&__Overlay{position:fixed;top:0px;left:0px;right:0px;bottom:0px;display:flex;align-items:center;justify-content:center;background-color:", ";opacity:0;will-change:opacity;transition:opacity ", " ", ";", " &.ReactModal__Overlay--after-open{opacity:1;}&.ReactModal__Overlay--before-close{opacity:0;}}&__Content{display:flex;flex-direction:column;background:", ";border-radius:", ";box-shadow:", ";filter:blur(0);color:", ";outline:none;max-width:calc(100vw - ", ");max-height:calc(100vh - ", ");@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){height:calc(100vh - ", ");}", " ", "}"], function (props) {
46
- return transparentize(0.32, props.theme.colors.neutral[1000]);
45
+ return props.theme.colors.overlay.background.base;
47
46
  }, function (props) {
48
47
  return props.theme.duration.medium;
49
48
  }, function (props) {
@@ -5,13 +5,14 @@ import DEPTH from "@sproutsocial/seeds-depth";
5
5
  import lightTheme from "../light/theme";
6
6
  import { datavizPalette } from "./dataviz-palette";
7
7
  import { green, blue, purple, yellow, orange, red, neutral } from "./decorative-palettes";
8
+ import { transparentize } from "polished";
8
9
  import interact from "../utils/interact";
9
10
  var MODE = "dark";
10
11
  export var shadows = {
11
12
  low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
12
13
  medium: DEPTH.ELEVATION_LEVEL_300 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
13
14
  high: DEPTH.ELEVATION_LEVEL_400 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF"
14
- };
15
+ }; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
15
16
 
16
17
  var colors = _extends({}, lightTheme.colors, {
17
18
  utils: {
@@ -195,6 +196,17 @@ var colors = _extends({}, lightTheme.colors, {
195
196
  selected: COLORS.COLOR_NEUTRAL_0
196
197
  }
197
198
  },
199
+ overlay: {
200
+ background: {
201
+ base: transparentize(0.28, COLORS.COLOR_NEUTRAL_1000)
202
+ },
203
+ text: {
204
+ base: COLORS.COLOR_NEUTRAL_0
205
+ },
206
+ icon: {
207
+ base: COLORS.COLOR_NEUTRAL_0
208
+ }
209
+ },
198
210
  elevation: {
199
211
  base: COLORS.COLOR_NEUTRAL_1100
200
212
  },
@@ -10,9 +10,10 @@ import SPACE from "@sproutsocial/seeds-space";
10
10
  import DEPTH from "@sproutsocial/seeds-depth";
11
11
  import MOTION from "@sproutsocial/seeds-motion";
12
12
  import BORDER from "@sproutsocial/seeds-border";
13
+ import { transparentize } from "polished";
13
14
  import interact from "../utils/interact";
14
15
  export var breakpoints = ["900px", "1200px", "1500px", "1800px"];
15
- var MODE = "light";
16
+ var MODE = "light"; // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
16
17
 
17
18
  var colors = _extends({
18
19
  app: {
@@ -193,6 +194,17 @@ var colors = _extends({
193
194
  selected: COLORS.COLOR_NEUTRAL_800
194
195
  }
195
196
  },
197
+ overlay: {
198
+ background: {
199
+ base: transparentize(0.44, COLORS.COLOR_NEUTRAL_1000)
200
+ },
201
+ text: {
202
+ base: COLORS.COLOR_NEUTRAL_0
203
+ },
204
+ icon: {
205
+ base: COLORS.COLOR_NEUTRAL_0
206
+ }
207
+ },
196
208
  elevation: {
197
209
  base: COLORS.COLOR_NEUTRAL_900 + "3D"
198
210
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "10.0.0",
3
+ "version": "10.0.3-menuhotfix.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",