@sproutsocial/racine 11.3.0-beta.3 → 11.3.1-beta-deps.2

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.
@@ -15,6 +15,8 @@ var _Box = _interopRequireDefault(require("../Box"));
15
15
 
16
16
  var _systemProps = require("../utils/system-props");
17
17
 
18
+ var _templateObject;
19
+
18
20
  var _excluded = ["className"];
19
21
 
20
22
  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); }
@@ -23,6 +25,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
25
 
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
28
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
29
+
26
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); }
27
31
 
28
32
  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; }
@@ -51,7 +55,7 @@ function ReactModalAdapter(_ref) {
51
55
  }, props));
52
56
  }
53
57
 
54
- var Body = (0, _styledComponents.createGlobalStyle)([".ReactModal__Body--open{overflow:hidden;}"]); // eslint-disable-next-line prettier/prettier
58
+ var Body = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n .ReactModal__Body--open {\n overflow: hidden;\n }\n"]))); // eslint-disable-next-line prettier/prettier
55
59
 
56
60
  exports.Body = Body;
57
61
  var Container = (0, _styledComponents.default)(ReactModalAdapter).withConfig({
@@ -82,14 +82,26 @@ function toast(options) {
82
82
  });
83
83
  }
84
84
 
85
+ var _StyledBox = (0, _styledComponents.default)(_Box.default).withConfig({
86
+ displayName: "Toast___StyledBox",
87
+ componentId: "sc-1vii3dq-0"
88
+ })(["", ""], function (p) {
89
+ return p._css;
90
+ });
91
+
85
92
  var IconBox = function IconBox(props) {
86
93
  return /*#__PURE__*/React.createElement(_StyledBox, _extends({
87
94
  display: "inline-block"
88
95
  }, props, {
89
- $_css: "line-height: 1;"
96
+ _css: "line-height: 1;"
90
97
  }));
91
98
  };
92
99
 
100
+ var _StyledBox2 = (0, _styledComponents.default)(_Box.default).withConfig({
101
+ displayName: "Toast___StyledBox2",
102
+ componentId: "sc-1vii3dq-1"
103
+ })(["transform:translateY(1px);"]);
104
+
93
105
  var Toast = function Toast(_ref) {
94
106
  var content = _ref.content,
95
107
  theme = _ref.theme,
@@ -128,16 +140,4 @@ var Toast = function Toast(_ref) {
128
140
  };
129
141
 
130
142
  var _default = ToastContainer;
131
- exports.default = _default;
132
-
133
- var _StyledBox = (0, _styledComponents.default)(_Box.default).withConfig({
134
- displayName: "Toast___StyledBox",
135
- componentId: "sc-1vii3dq-0"
136
- })(["", ""], function (p) {
137
- return p.$_css;
138
- });
139
-
140
- var _StyledBox2 = (0, _styledComponents.default)(_Box.default).withConfig({
141
- displayName: "Toast___StyledBox2",
142
- componentId: "sc-1vii3dq-1"
143
- })(["transform:translateY(1px);"]);
143
+ exports.default = _default;
@@ -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];
@@ -53,4 +53,5 @@ var Button = function Button(_ref) {
53
53
  }, qa, rest), children);
54
54
  };
55
55
 
56
+ Button.displayName = "Button";
56
57
  export default Button;
@@ -44,4 +44,5 @@ var Container = styled.button.withConfig({
44
44
  }, function (props) {
45
45
  return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode === "dark" ? "screen" : "multiply", pill);
46
46
  }, Icon, LAYOUT, COMMON);
47
+ Container.displayName = "Button-Container";
47
48
  export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
@@ -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", "size"];
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,52 +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,
22
- size = _React$useContext.size; // Hide the button when there is no text to clear.
23
-
24
-
25
- if (!hasValue) {
26
- return null;
27
- } // Cut down the padding for size small Inputs so that the focus ring won't go outside the bounds of the Input.
28
- // This adjustment is handled automatically for default and large Inputs via Button's size. There is no "small" Button.
29
-
30
-
31
- var py = size === "small" ? 100 : undefined;
32
- var px = size === "small" ? 200 : undefined;
33
- var buttonSize = size === "small" ? "default" : size; // Warn if clearButtonLabel is not included, so that the unlocalized fallback will not be mistaken for a proper label.
34
-
35
- if (!clearButtonLabel) {
36
- console.warn("Warning: clearButtonLabel prop is required when using Input.ClearButton. Please pass a localized label to Input.");
37
- }
38
-
39
- return /*#__PURE__*/React.createElement(Button, {
40
- onClick: handleClear,
41
- size: buttonSize,
42
- py: py,
43
- px: px
44
- }, /*#__PURE__*/React.createElement(Icon, {
45
- name: "circlex",
46
- title: clearButtonLabel || "Clear"
47
- }));
48
- }; // Used for positioning elementAfter. This logic will detect if the element is a ClearButton,
49
- // regardless of whether it was manually passed as elemAfter or automatically added to a search Input.
50
-
51
-
52
- var isClearButton = function isClearButton(elem) {
53
- if (elem != null && elem.type) {
54
- return elem.type.displayName === "Input.ClearButton";
55
- }
56
-
57
- return false;
58
- };
59
13
 
60
14
  var Input = /*#__PURE__*/function (_React$Component) {
61
15
  _inheritsLoose(Input, _React$Component);
@@ -70,34 +24,39 @@ var Input = /*#__PURE__*/function (_React$Component) {
70
24
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
71
25
 
72
26
  _this.handleBlur = function (e) {
73
- return _this.props.onBlur == null ? void 0 : _this.props.onBlur(e);
74
- };
75
-
76
- _this.handleClear = function (e) {
77
- var _this$props$innerRef, _this$props$innerRef$;
78
-
79
- _this.props.onClear == null ? void 0 : _this.props.onClear(e);
80
- (_this$props$innerRef = _this.props.innerRef) == null ? void 0 : (_this$props$innerRef$ = _this$props$innerRef.current) == null ? void 0 : _this$props$innerRef$.focus();
27
+ if (_this.props.onBlur) {
28
+ _this.props.onBlur(e);
29
+ }
81
30
  };
82
31
 
83
32
  _this.handleChange = function (e) {
84
- 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
+ }
85
36
  };
86
37
 
87
38
  _this.handleFocus = function (e) {
88
- return _this.props.onFocus == null ? void 0 : _this.props.onFocus(e);
39
+ if (_this.props.onFocus) {
40
+ _this.props.onFocus(e);
41
+ }
89
42
  };
90
43
 
91
44
  _this.handleKeyDown = function (e) {
92
- 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
+ }
93
48
  };
94
49
 
95
50
  _this.handleKeyUp = function (e) {
96
- 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
+ }
97
54
  };
98
55
 
99
56
  _this.handlePaste = function (e) {
100
- 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
+ }
101
60
  };
102
61
 
103
62
  return _this;
@@ -124,11 +83,9 @@ var Input = /*#__PURE__*/function (_React$Component) {
124
83
  maxLength = _this$props.maxLength,
125
84
  ariaLabel = _this$props.ariaLabel,
126
85
  ariaDescribedby = _this$props.ariaDescribedby,
127
- clearButtonLabel = _this$props.clearButtonLabel,
128
86
  innerRef = _this$props.innerRef,
129
87
  onBlur = _this$props.onBlur,
130
88
  onChange = _this$props.onChange,
131
- onClear = _this$props.onClear,
132
89
  onFocus = _this$props.onFocus,
133
90
  onKeyDown = _this$props.onKeyDown,
134
91
  onKeyUp = _this$props.onKeyUp,
@@ -138,43 +95,25 @@ var Input = /*#__PURE__*/function (_React$Component) {
138
95
  _this$props$qa = _this$props.qa,
139
96
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
140
97
  appearance = _this$props.appearance,
141
- size = _this$props.size,
142
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded); // Convert autoComplete from a boolean prop to a string value.
143
-
98
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
144
99
 
145
100
  var autoCompleteValue = undefined;
146
101
 
147
102
  if (autoComplete !== undefined) {
148
103
  autoCompleteValue = autoComplete ? "on" : "off";
149
- } // Add default elemBefore and elemAfter elements if type is search.
150
-
151
-
152
- var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/React.createElement(Icon, {
153
- name: "search",
154
- ariaHidden: true,
155
- color: "icon.base"
156
- }) : elemBefore; // Do not add a ClearButton if no onClear callback is provided or if an elemAfter prop was passed.
104
+ }
157
105
 
158
- var elementAfter = type === "search" && onClear && !elemAfter ? /*#__PURE__*/React.createElement(ClearButton, null) : elemAfter;
159
106
  return /*#__PURE__*/React.createElement(Container, _extends({
160
- hasBeforeElement: !!elementBefore,
161
- hasAfterElement: !!elementAfter,
107
+ hasBeforeElement: !!elemBefore,
108
+ hasAfterElement: !!elemAfter,
162
109
  disabled: disabled,
163
110
  invalid: !!isInvalid,
164
111
  warning: hasWarning,
165
- appearance: appearance,
166
- size: size // $FlowIssue - upgrade v0.112.0
167
-
168
- }, rest), /*#__PURE__*/React.createElement(InputContext.Provider, {
169
- value: {
170
- handleClear: this.handleClear,
171
- hasValue: !!value,
172
- clearButtonLabel: clearButtonLabel,
173
- size: size
174
- }
175
- }, elementBefore && /*#__PURE__*/React.createElement(Accessory, {
112
+ appearance: appearance // $FlowIssue - upgrade v0.112.0
113
+
114
+ }, rest), elemBefore && /*#__PURE__*/React.createElement(Accessory, {
176
115
  before: true
177
- }, elementBefore), /*#__PURE__*/React.createElement("input", _extends({
116
+ }, elemBefore), /*#__PURE__*/React.createElement("input", _extends({
178
117
  "aria-invalid": !!isInvalid,
179
118
  "aria-label": ariaLabel,
180
119
  "aria-describedby": ariaDescribedby,
@@ -199,10 +138,9 @@ var Input = /*#__PURE__*/function (_React$Component) {
199
138
  "data-qa-input": name || "",
200
139
  "data-qa-input-isdisabled": disabled === true,
201
140
  "data-qa-input-isrequired": required === true
202
- }, qa, inputProps)), elementAfter && /*#__PURE__*/React.createElement(Accessory, {
203
- after: true,
204
- isClearButton: isClearButton(elementAfter)
205
- }, elementAfter)));
141
+ }, qa, inputProps)), elemAfter && /*#__PURE__*/React.createElement(Accessory, {
142
+ after: true
143
+ }, elemAfter));
206
144
  };
207
145
 
208
146
  return Input;
@@ -215,6 +153,4 @@ Input.defaultProps = {
215
153
  size: "default",
216
154
  appearance: "primary"
217
155
  };
218
- Input.ClearButton = ClearButton;
219
- Input.ClearButton.displayName = "Input.ClearButton";
220
- 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.3",
3
+ "version": "11.3.1-beta-deps.2",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -69,7 +69,7 @@
69
69
  "lodash.curry": "^4.1.1",
70
70
  "lodash.uniqueid": "^4.0.1",
71
71
  "lru-memoize": "^1.1.0",
72
- "mutationobserver-shim": "^0.3.3",
72
+ "mutationobserver-shim": "^0.3.7",
73
73
  "polished": "^3.4.1",
74
74
  "raw-loader": "^3.0.0",
75
75
  "react-focus-lock": "^2.0.3",
@@ -77,14 +77,14 @@
77
77
  "react-popper": "^1.3.3",
78
78
  "react-spring": "^8.0.25",
79
79
  "react-toastify": "^6.0.5",
80
- "react-virtualized": "9.18.5",
80
+ "react-virtualized": "9.22.3",
81
81
  "scroll-into-view-if-needed": "1.1.0",
82
82
  "styled-system": "^5.1.5",
83
83
  "use-measure": "^0.2.2"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@babel/cli": "^7.5.5",
87
- "@babel/core": "^7.4.5",
87
+ "@babel/core": "^7.12.9",
88
88
  "@babel/plugin-proposal-class-properties": "^7.4.4",
89
89
  "@babel/plugin-syntax-dynamic-import": "^7.0.0",
90
90
  "@babel/preset-env": "^7.8.0",
@@ -99,23 +99,27 @@
99
99
  "@sproutsocial/seeds-networkcolor": "^2.9.0",
100
100
  "@sproutsocial/seeds-space": "^0.4.7",
101
101
  "@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",
102
+ "@storybook/addon-a11y": "^6.4.19",
103
+ "@storybook/addon-actions": "^6.4.19",
104
+ "@storybook/addon-controls": "^6.4.19",
105
+ "@storybook/addon-knobs": "^6.4.0",
106
+ "@storybook/addon-storysource": "^6.4.19",
107
+ "@storybook/addon-viewport": "^6.4.19",
108
+ "@storybook/addons": "^6.4.19",
108
109
  "@storybook/react": "^6.4.19",
109
- "@storybook/theming": "^6.1.11",
110
+ "@storybook/theming": "^6.4.19",
111
+ "@testing-library/jest-dom": "^5.16.4",
110
112
  "@testing-library/react": "^11.2.2",
111
113
  "@testing-library/user-event": "^13.0.0",
114
+ "@univision/babel-plugin-styled-components": "^1.10.9",
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
  ],