@sproutsocial/racine 11.3.0-beta.2 → 11.3.1-beta-deps.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.
@@ -11,13 +11,16 @@ var _Icon = _interopRequireDefault(require("../Icon"));
11
11
 
12
12
  var _ReactToastify = _interopRequireDefault(require("!!raw-loader!react-toastify/dist/ReactToastify.css"));
13
13
 
14
+ var _templateObject;
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
16
18
  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); }
17
19
 
18
20
  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; }
19
21
 
20
- // $FlowIssue
22
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
23
+
21
24
  var Container = (0, _styledComponents.default)(_Box.default).withConfig({
22
25
  displayName: "styles__Container",
23
26
  componentId: "sc-wp5x29-0"
@@ -39,7 +42,7 @@ var CustomIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
39
42
  return p.customColor ? undefined : p.theme.colors.icon[p.type];
40
43
  });
41
44
  exports.CustomIcon = CustomIcon;
42
- var GlobalToastStyles = (0, _styledComponents.createGlobalStyle)(["", " .Toastify__toast:last-of-type{margin-bottom:0;}.Toastify-container-overrides{padding:0;width:360px;}.Toastify-toast-overrides{padding:0;min-height:0;border-radius:2px;}.Toastify__toast-container--bottom-right{bottom:", ";right:", ";}@media only screen and (max-width:480px){.Toastify-container-overrides{min-width:initial;}}"], _ReactToastify.default, function (p) {
45
+ var GlobalToastStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", "\n\n\t.Toastify__toast:last-of-type {\n\t\tmargin-bottom: 0;\n\t}\n\n\t.Toastify-container-overrides {\n\t\tpadding: 0;\n\t\twidth: 360px;\n\t}\n\n\t.Toastify-toast-overrides {\n\t\tpadding: 0;\n\t\tmin-height: 0;\n\t\tborder-radius: 2px;\n\t}\n\n\t.Toastify__toast-container--bottom-right {\n\t\tbottom: ", ";\n\t\tright: ", ";\n\t}\n\n\t/* Override React Toastify's mobile width styles */\n\t@media only screen and (max-width: 480px) {\n\t\t.Toastify-container-overrides {\n\t\t\tmin-width: initial;\n\t\t}\n\t}\n"])), _ReactToastify.default, function (p) {
43
46
  return p.theme.space[400];
44
47
  }, function (p) {
45
48
  return p.theme.space[400];
@@ -34,6 +34,7 @@ var Button = function Button(_ref) {
34
34
 
35
35
  var appearanceCheck = appearance === "default" ? "unstyled" : appearance;
36
36
  return /*#__PURE__*/React.createElement(Container, _extends({
37
+ className: "container",
37
38
  title: title,
38
39
  active: active,
39
40
  href: href,
@@ -1,3 +1,7 @@
1
+ var _templateObject;
2
+
3
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
4
+
1
5
  import styled, { createGlobalStyle, css } from "styled-components";
2
6
  import moment from "moment";
3
7
  import Box from "../Box";
@@ -68,7 +72,7 @@ export var CalendarDay = styled(Box).withConfig({
68
72
  return css(["color:", ";", ";"], theme.colors.text.subtext, disabled);
69
73
  }
70
74
  });
71
- export var ReactDatesCssOverrides = createGlobalStyle([".DayPicker{box-sizing:content-box;font-weight:", ";font-family:", ";&_transitionContainer{height:228px !important;}&_weekHeader{color:", ";border-bottom:1px solid ", ";top:26px;width:230px;&_ul{padding-left:10px;}}&_weekHeaders__horizontal{margin-left:0}&_weekHeader_li{", " color:", ";font-weight:", ";margin:0;}&__horizontal{box-shadow:none;background:", ";}}.CalendarDay{background-color:transparent;&__selected,&__selected_span,&:hover{background-color:transparent;}&__default{color:", ";}&__default,&__default:hover{border:none;color:", ";}}.CalendarMonth{", " background:", ";padding:0 15px;&_caption{", " color:", ";padding-top:0;background:", ";strong{font-weight:", ";}}&_table{line-height:21.333px;tr{vertical-align:middle;}td{padding:0;border-bottom:none;}}}.CalendarMonthGrid{background:", ";}.DayPickerNavigation_button__horizontal{color:", ";top:-4px;padding:7px 8px;position:absolute;line-height:0.78;border-radius:9999px;border:none;background:", ";&:nth-child(1){left:22px;}&:nth-child(2){right:22px;}&:hover{background:", ";}}"], function (_ref2) {
75
+ export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t.DayPicker {\n\t\tbox-sizing: content-box;\n\t\tfont-weight: ", ";\n\t\tfont-family: ", ";\n\n\t\t/* override react-dates height to better reflect how tall the component actually is */\n\t\t/* adding margin/padding will be more truer to our seeds system because the height */\n\t\t/* of the calendar adds an extra row of padding if we do not override it */\n\t\t&_transitionContainer {\n\t\t\t/* need !important because react-dates sets height on the element itself */\n\t\t\theight: 228px !important;\n\t\t}\n\n\t\t&_weekHeader {\n\t\t\tcolor: ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n \t\t\t/* Magic number to match position of .CalendarMonth_caption */\n\t\t\ttop: 26px;\n\n\t\t\t/* Magic number to make the bottom border line stretch the full width */\n\t\t\twidth: 230px;\n\n\t\t\t&_ul {\n \t\t\t\t/* Magic number to line up day name headings over the correct numbers */\n\t\t\t\tpadding-left: 10px;\n\t\t\t}\n\t\t}\n\n\t\t&_weekHeaders__horizontal {\n\t\t\tmargin-left: 0\n\t\t}\n\n\t\t&_weekHeader_li {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\tmargin: 0;\n\t\t}\n\n\t\t&__horizontal {\n\t\t\tbox-shadow: none;\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n .CalendarDay {\n\t\tbackground-color: transparent;\n\n &__selected, &__selected_span, &:hover {\n background-color: transparent;\n\t\t}\n\n\t\t&__default {\n\t\t\tcolor: ", ";\n\t\t}\n\t\t&__default,\n\t\t&__default:hover {\n\t\t\tborder: none;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n .CalendarMonth {\n\t\t", "\n\t\tbackground: ", ";\n\n \t\t/* spacing between visible months and months off canvas */\n\t\tpadding: 0 15px;\n\n\t\t&_caption {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tpadding-top: 0;\n\t\t\tbackground: ", ";\n\n\t\t\tstrong {\n\t\t\t\tfont-weight: ", ";\n\t\t\t}\n\n\t\t}\n\t\t&_table {\n\t\t\tline-height: 21.333px;\n\t\t\ttr {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t\ttd {\n\t\t\t\tpadding: 0;\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.CalendarMonthGrid {\n\t\tbackground: ", ";\n\t}\n\n\t/* Left and Right Arrow Buttons to navigate months */\n\t.DayPickerNavigation_button__horizontal {\n\t\tcolor: ", ";\n\t\ttop: -4px;\n\t\tpadding: 7px 8px;\n\t\tposition: absolute;\n\t\tline-height: 0.78;\n\t\tborder-radius: 9999px;\n\t\tborder: none;\n\t\tbackground: ", ";\n\n\t\t&:nth-child(1) {\n\t\t\tleft: 22px;\n\t\t}\n\t\t&:nth-child(2) {\n\t\t\tright: 22px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n"])), function (_ref2) {
72
76
  var theme = _ref2.theme;
73
77
  return theme.fontWeights.normal;
74
78
  }, function (props) {
@@ -1,4 +1,4 @@
1
- var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "clearButtonLabel", "innerRef", "onBlur", "onChange", "onClear", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance"];
1
+ var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -10,38 +10,6 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
10
10
 
11
11
  import * as React from "react";
12
12
  import Container, { Accessory } from "./styles";
13
- import Button from "../Button";
14
- import Icon from "../Icon";
15
- var InputContext = /*#__PURE__*/React.createContext({});
16
-
17
- var ClearButton = function ClearButton() {
18
- var _React$useContext = React.useContext(InputContext),
19
- handleClear = _React$useContext.handleClear,
20
- clearButtonLabel = _React$useContext.clearButtonLabel,
21
- hasValue = _React$useContext.hasValue; // Hide the button when there is no text to clear.
22
-
23
-
24
- if (!hasValue) {
25
- return null;
26
- }
27
-
28
- return /*#__PURE__*/React.createElement(Button, {
29
- onClick: handleClear
30
- }, /*#__PURE__*/React.createElement(Icon, {
31
- name: "circlex",
32
- title: clearButtonLabel || "Clear"
33
- }));
34
- }; // Used for positioning elementAfter. This logic will detect if the element is a ClearButton,
35
- // regardless of whether it was manually passed as elemAfter or automatically added to a search Input.
36
-
37
-
38
- var isClearButton = function isClearButton(elem) {
39
- if (elem != null && elem.type) {
40
- return elem.type.displayName === "Input.ClearButton";
41
- }
42
-
43
- return false;
44
- };
45
13
 
46
14
  var Input = /*#__PURE__*/function (_React$Component) {
47
15
  _inheritsLoose(Input, _React$Component);
@@ -56,31 +24,39 @@ var Input = /*#__PURE__*/function (_React$Component) {
56
24
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
57
25
 
58
26
  _this.handleBlur = function (e) {
59
- return _this.props.onBlur == null ? void 0 : _this.props.onBlur(e);
60
- };
61
-
62
- _this.handleClear = function (e) {
63
- return _this.props.onClear == null ? void 0 : _this.props.onClear(e);
27
+ if (_this.props.onBlur) {
28
+ _this.props.onBlur(e);
29
+ }
64
30
  };
65
31
 
66
32
  _this.handleChange = function (e) {
67
- return _this.props.onChange == null ? void 0 : _this.props.onChange(e, e.currentTarget.value);
33
+ if (_this.props.onChange) {
34
+ _this.props.onChange(e, e.currentTarget.value);
35
+ }
68
36
  };
69
37
 
70
38
  _this.handleFocus = function (e) {
71
- return _this.props.onFocus == null ? void 0 : _this.props.onFocus(e);
39
+ if (_this.props.onFocus) {
40
+ _this.props.onFocus(e);
41
+ }
72
42
  };
73
43
 
74
44
  _this.handleKeyDown = function (e) {
75
- return _this.props.onKeyDown == null ? void 0 : _this.props.onKeyDown(e, e.currentTarget.value);
45
+ if (_this.props.onKeyDown) {
46
+ _this.props.onKeyDown(e, e.currentTarget.value);
47
+ }
76
48
  };
77
49
 
78
50
  _this.handleKeyUp = function (e) {
79
- return _this.props.onKeyUp == null ? void 0 : _this.props.onKeyUp(e, e.currentTarget.value);
51
+ if (_this.props.onKeyUp) {
52
+ _this.props.onKeyUp(e, e.currentTarget.value);
53
+ }
80
54
  };
81
55
 
82
56
  _this.handlePaste = function (e) {
83
- return _this.props.onPaste == null ? void 0 : _this.props.onPaste(e, e.currentTarget.value);
57
+ if (_this.props.onPaste) {
58
+ _this.props.onPaste(e, e.currentTarget.value);
59
+ }
84
60
  };
85
61
 
86
62
  return _this;
@@ -107,11 +83,9 @@ var Input = /*#__PURE__*/function (_React$Component) {
107
83
  maxLength = _this$props.maxLength,
108
84
  ariaLabel = _this$props.ariaLabel,
109
85
  ariaDescribedby = _this$props.ariaDescribedby,
110
- clearButtonLabel = _this$props.clearButtonLabel,
111
86
  innerRef = _this$props.innerRef,
112
87
  onBlur = _this$props.onBlur,
113
88
  onChange = _this$props.onChange,
114
- onClear = _this$props.onClear,
115
89
  onFocus = _this$props.onFocus,
116
90
  onKeyDown = _this$props.onKeyDown,
117
91
  onKeyUp = _this$props.onKeyUp,
@@ -121,39 +95,25 @@ var Input = /*#__PURE__*/function (_React$Component) {
121
95
  _this$props$qa = _this$props.qa,
122
96
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
123
97
  appearance = _this$props.appearance,
124
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded); // Convert autoComplete from a boolean prop to a string value.
125
-
98
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
126
99
 
127
100
  var autoCompleteValue = undefined;
128
101
 
129
102
  if (autoComplete !== undefined) {
130
103
  autoCompleteValue = autoComplete ? "on" : "off";
131
- } // Add default elemBefore and elemAfter elements if type is search.
132
-
133
-
134
- var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/React.createElement(Icon, {
135
- name: "search",
136
- ariaHidden: true
137
- }) : elemBefore; // Do not add a ClearButton if no onClear callback is provided or if an elemAfter prop was passed.
104
+ }
138
105
 
139
- var elementAfter = type === "search" && onClear && !elemAfter ? /*#__PURE__*/React.createElement(ClearButton, null) : elemAfter;
140
106
  return /*#__PURE__*/React.createElement(Container, _extends({
141
- hasBeforeElement: !!elementBefore,
142
- hasAfterElement: !!elementAfter,
107
+ hasBeforeElement: !!elemBefore,
108
+ hasAfterElement: !!elemAfter,
143
109
  disabled: disabled,
144
110
  invalid: !!isInvalid,
145
111
  warning: hasWarning,
146
112
  appearance: appearance // $FlowIssue - upgrade v0.112.0
147
113
 
148
- }, rest), /*#__PURE__*/React.createElement(InputContext.Provider, {
149
- value: {
150
- handleClear: this.handleClear,
151
- clearButtonLabel: clearButtonLabel,
152
- hasValue: !!value
153
- }
154
- }, elementBefore && /*#__PURE__*/React.createElement(Accessory, {
114
+ }, rest), elemBefore && /*#__PURE__*/React.createElement(Accessory, {
155
115
  before: true
156
- }, elementBefore), /*#__PURE__*/React.createElement("input", _extends({
116
+ }, elemBefore), /*#__PURE__*/React.createElement("input", _extends({
157
117
  "aria-invalid": !!isInvalid,
158
118
  "aria-label": ariaLabel,
159
119
  "aria-describedby": ariaDescribedby,
@@ -178,10 +138,9 @@ var Input = /*#__PURE__*/function (_React$Component) {
178
138
  "data-qa-input": name || "",
179
139
  "data-qa-input-isdisabled": disabled === true,
180
140
  "data-qa-input-isrequired": required === true
181
- }, qa, inputProps)), elementAfter && /*#__PURE__*/React.createElement(Accessory, {
182
- after: true,
183
- isClearButton: isClearButton(elementAfter)
184
- }, elementAfter)));
141
+ }, qa, inputProps)), elemAfter && /*#__PURE__*/React.createElement(Accessory, {
142
+ after: true
143
+ }, elemAfter));
185
144
  };
186
145
 
187
146
  return Input;
@@ -194,6 +153,4 @@ Input.defaultProps = {
194
153
  size: "default",
195
154
  appearance: "primary"
196
155
  };
197
- Input.ClearButton = ClearButton;
198
- Input.ClearButton.displayName = "Input.ClearButton";
199
- export default Input;
156
+ export { Input as default };
@@ -73,7 +73,7 @@ export var Accessory = styled.div.withConfig({
73
73
  }, function (props) {
74
74
  return props.before && css(["left:", ";"], props.theme.space[350]);
75
75
  }, function (props) {
76
- return props.after && css(["right:", ";"], props.isClearButton ? 0 : props.theme.space[350]);
76
+ return props.after && css(["right:", ";"], props.theme.space[350]);
77
77
  });
78
78
  Container.displayName = "InputContainer";
79
79
  Accessory.displayName = "InputAccessory";
package/lib/Menu/index.js CHANGED
@@ -232,6 +232,14 @@ export var MenuRadio = function MenuRadio(props) {
232
232
  role: MENU_ITEM_ROLES.RADIO
233
233
  }, props));
234
234
  };
235
+
236
+ var _StyledText = styled(Text).withConfig({
237
+ displayName: "Menu___StyledText",
238
+ componentId: "sc-1p3rdnp-0"
239
+ })(["", ""], function (p) {
240
+ return p._css;
241
+ });
242
+
235
243
  export var MenuGroup = function MenuGroup(_ref2) {
236
244
  var children = _ref2.children,
237
245
  title = _ref2.title,
@@ -251,7 +259,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
251
259
  fontWeight: 600,
252
260
  mt: 350,
253
261
  color: "text.headline",
254
- $_css: isDisabled && disabled
262
+ _css: isDisabled && disabled
255
263
  }, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
256
264
  p: 300,
257
265
  role: "group"
@@ -394,7 +402,7 @@ Menu.Divider.displayName = "Menu.Divider";
394
402
  Menu.FilterInput.displayName = "Menu.FilterInput";
395
403
  var CustomPopoutContent = styled(Popout.Content).withConfig({
396
404
  displayName: "Menu__CustomPopoutContent",
397
- componentId: "sc-1p3rdnp-0"
405
+ componentId: "sc-1p3rdnp-1"
398
406
  })(["padding:0;margin-left:0;margin-right:0;"]);
399
407
  export var MenuButton = function MenuButton(_ref5) {
400
408
  var content = _ref5.content,
@@ -448,11 +456,4 @@ export var MenuButton = function MenuButton(_ref5) {
448
456
  }
449
457
  }), children)));
450
458
  };
451
- export default Menu;
452
-
453
- var _StyledText = styled(Text).withConfig({
454
- displayName: "Menu___StyledText",
455
- componentId: "sc-1p3rdnp-1"
456
- })(["", ""], function (p) {
457
- return p.$_css;
458
- });
459
+ export default Menu;
@@ -1,5 +1,9 @@
1
+ var _templateObject;
2
+
1
3
  var _excluded = ["className"];
2
4
 
5
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
6
+
3
7
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
8
 
5
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -34,7 +38,7 @@ function ReactModalAdapter(_ref) {
34
38
  }, props));
35
39
  }
36
40
 
37
- export var Body = createGlobalStyle([".ReactModal__Body--open{overflow:hidden;}"]); // eslint-disable-next-line prettier/prettier
41
+ export var Body = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n .ReactModal__Body--open {\n overflow: hidden;\n }\n"]))); // eslint-disable-next-line prettier/prettier
38
42
 
39
43
  export var Container = styled(ReactModalAdapter).withConfig({
40
44
  displayName: "styles__Container",
@@ -63,14 +63,26 @@ export function toast(options) {
63
63
  });
64
64
  }
65
65
 
66
+ var _StyledBox = _styled(Box).withConfig({
67
+ displayName: "Toast___StyledBox",
68
+ componentId: "sc-1vii3dq-0"
69
+ })(["", ""], function (p) {
70
+ return p._css;
71
+ });
72
+
66
73
  var IconBox = function IconBox(props) {
67
74
  return /*#__PURE__*/React.createElement(_StyledBox, _extends({
68
75
  display: "inline-block"
69
76
  }, props, {
70
- $_css: "line-height: 1;"
77
+ _css: "line-height: 1;"
71
78
  }));
72
79
  };
73
80
 
81
+ var _StyledBox2 = _styled(Box).withConfig({
82
+ displayName: "Toast___StyledBox2",
83
+ componentId: "sc-1vii3dq-1"
84
+ })(["transform:translateY(1px);"]);
85
+
74
86
  var Toast = function Toast(_ref) {
75
87
  var content = _ref.content,
76
88
  theme = _ref.theme,
@@ -108,16 +120,4 @@ var Toast = function Toast(_ref) {
108
120
  }))));
109
121
  };
110
122
 
111
- export default ToastContainer;
112
-
113
- var _StyledBox = _styled(Box).withConfig({
114
- displayName: "Toast___StyledBox",
115
- componentId: "sc-1vii3dq-0"
116
- })(["", ""], function (p) {
117
- return p.$_css;
118
- });
119
-
120
- var _StyledBox2 = _styled(Box).withConfig({
121
- displayName: "Toast___StyledBox2",
122
- componentId: "sc-1vii3dq-1"
123
- })(["transform:translateY(1px);"]);
123
+ export default ToastContainer;
@@ -1,3 +1,7 @@
1
+ var _templateObject;
2
+
3
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
4
+
1
5
  import styled, { createGlobalStyle } from "styled-components";
2
6
  import Box from "../Box";
3
7
  import Icon from "../Icon"; // $FlowIssue
@@ -23,7 +27,7 @@ export var CustomIcon = styled(Icon).withConfig({
23
27
  }, function (p) {
24
28
  return p.customColor ? undefined : p.theme.colors.icon[p.type];
25
29
  });
26
- export var GlobalToastStyles = createGlobalStyle(["", " .Toastify__toast:last-of-type{margin-bottom:0;}.Toastify-container-overrides{padding:0;width:360px;}.Toastify-toast-overrides{padding:0;min-height:0;border-radius:2px;}.Toastify__toast-container--bottom-right{bottom:", ";right:", ";}@media only screen and (max-width:480px){.Toastify-container-overrides{min-width:initial;}}"], toastStyles, function (p) {
30
+ export var GlobalToastStyles = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", "\n\n\t.Toastify__toast:last-of-type {\n\t\tmargin-bottom: 0;\n\t}\n\n\t.Toastify-container-overrides {\n\t\tpadding: 0;\n\t\twidth: 360px;\n\t}\n\n\t.Toastify-toast-overrides {\n\t\tpadding: 0;\n\t\tmin-height: 0;\n\t\tborder-radius: 2px;\n\t}\n\n\t.Toastify__toast-container--bottom-right {\n\t\tbottom: ", ";\n\t\tright: ", ";\n\t}\n\n\t/* Override React Toastify's mobile width styles */\n\t@media only screen and (max-width: 480px) {\n\t\t.Toastify-container-overrides {\n\t\t\tmin-width: initial;\n\t\t}\n\t}\n"])), toastStyles, function (p) {
27
31
  return p.theme.space[400];
28
32
  }, function (p) {
29
33
  return p.theme.space[400];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.3.0-beta.2",
3
+ "version": "11.3.1-beta-deps.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -65,11 +65,13 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@styled-system/theme-get": "^5.1.2",
68
+ "@testing-library/jest-dom": "^5.16.4",
69
+ "@univision/babel-plugin-styled-components": "^1.10.9",
68
70
  "classnames": "^2.2.6",
69
71
  "lodash.curry": "^4.1.1",
70
72
  "lodash.uniqueid": "^4.0.1",
71
73
  "lru-memoize": "^1.1.0",
72
- "mutationobserver-shim": "^0.3.3",
74
+ "mutationobserver-shim": "^0.3.7",
73
75
  "polished": "^3.4.1",
74
76
  "raw-loader": "^3.0.0",
75
77
  "react-focus-lock": "^2.0.3",
@@ -77,14 +79,14 @@
77
79
  "react-popper": "^1.3.3",
78
80
  "react-spring": "^8.0.25",
79
81
  "react-toastify": "^6.0.5",
80
- "react-virtualized": "9.18.5",
82
+ "react-virtualized": "9.22.3",
81
83
  "scroll-into-view-if-needed": "1.1.0",
82
84
  "styled-system": "^5.1.5",
83
85
  "use-measure": "^0.2.2"
84
86
  },
85
87
  "devDependencies": {
86
88
  "@babel/cli": "^7.5.5",
87
- "@babel/core": "^7.4.5",
89
+ "@babel/core": "^7.12.9",
88
90
  "@babel/plugin-proposal-class-properties": "^7.4.4",
89
91
  "@babel/plugin-syntax-dynamic-import": "^7.0.0",
90
92
  "@babel/preset-env": "^7.8.0",
@@ -99,23 +101,25 @@
99
101
  "@sproutsocial/seeds-networkcolor": "^2.9.0",
100
102
  "@sproutsocial/seeds-space": "^0.4.7",
101
103
  "@sproutsocial/seeds-typography": "^3.0.1",
102
- "@storybook/addon-a11y": "^6.1.11",
103
- "@storybook/addon-actions": "^6.3.8",
104
- "@storybook/addon-knobs": "^6.1.11",
105
- "@storybook/addon-storysource": "^6.1.11",
106
- "@storybook/addon-viewport": "^6.1.11",
107
- "@storybook/addons": "^6.1.11",
104
+ "@storybook/addon-a11y": "^6.4.19",
105
+ "@storybook/addon-actions": "^6.4.19",
106
+ "@storybook/addon-controls": "^6.4.19",
107
+ "@storybook/addon-knobs": "^6.4.0",
108
+ "@storybook/addon-storysource": "^6.4.19",
109
+ "@storybook/addon-viewport": "^6.4.19",
110
+ "@storybook/addons": "^6.4.19",
108
111
  "@storybook/react": "^6.4.19",
109
- "@storybook/theming": "^6.1.11",
112
+ "@storybook/theming": "^6.4.19",
110
113
  "@testing-library/react": "^11.2.2",
111
114
  "@testing-library/user-event": "^13.0.0",
115
+ "axios": "^0.26.1",
112
116
  "babel-core": "^7.0.0-bridge",
113
117
  "babel-eslint": "10.1.0",
114
- "babel-jest": "26.1.0",
115
- "babel-loader": "8.0.6",
118
+ "babel-jest": "27.x.x",
119
+ "babel-loader": "8.2.3",
116
120
  "babel-plugin-inline-import": "^3.0.0",
117
121
  "babel-plugin-polished": "^1.1.0",
118
- "babel-plugin-styled-components": "^1.10.0",
122
+ "babel-plugin-styled-components": "^2.0.7",
119
123
  "babel-polyfill": "^6.26.0",
120
124
  "chalk": "^2.3.2",
121
125
  "chokidar": "^3.0.2",
@@ -137,9 +141,8 @@
137
141
  "identity-obj-proxy": "^3.0.0",
138
142
  "inquirer": "^6.4.1",
139
143
  "is-glob": "^4.0.1",
140
- "jest": "26.1.0",
141
- "jest-axe": "3.4.0",
142
- "jest-dom": "^3.5.0",
144
+ "jest": "27.x.x",
145
+ "jest-axe": "6.0.0",
143
146
  "jest-styled-components": "7.0.0-beta.1",
144
147
  "jscodeshift": "^0.6.4",
145
148
  "json-to-scss": "^1.6.2",
@@ -148,15 +151,15 @@
148
151
  "npm-run-all": "^4.1.2",
149
152
  "outdent": "^0.7.0",
150
153
  "pify": "^4.0.1",
151
- "playroom": "^0.22.2",
154
+ "playroom": "^0.27.9",
152
155
  "prettier": "^2.0.5",
153
156
  "prop-types": "^15.6.1",
154
157
  "react": "16.12.0",
155
158
  "react-dates": "^21.8.0",
156
159
  "react-dom": "16.12.0",
157
160
  "rimraf": "^2.6.3",
158
- "storybook-dark-mode": "^1.0.7",
159
- "styled-components": "5.0.0-rc.2",
161
+ "storybook-dark-mode": "^1.0.9",
162
+ "styled-components": "^5.2.3",
160
163
  "stylelint": "^13.8.0",
161
164
  "stylelint-config-recommended": "^2.2.0",
162
165
  "stylelint-config-styled-components": "^0.1.1",
@@ -178,13 +181,14 @@
178
181
  "prop-types": "^15.0.0",
179
182
  "react": "^16.2.0",
180
183
  "react-dates": "^21.8.0",
181
- "styled-components": "^5.0.0-rc.2"
184
+ "styled-components": "^5.2.3"
182
185
  },
183
186
  "resolutions": {
184
187
  "lodash": "^4.17.21",
185
188
  "react-popper/create-react-context": "^0.3.0"
186
189
  },
187
190
  "jest": {
191
+ "testEnvironment": "jsdom",
188
192
  "setupFilesAfterEnv": [
189
193
  "<rootDir>/src/setupTests.js"
190
194
  ],