@sproutsocial/racine 11.3.0-beta.4 → 11.3.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.
Files changed (185) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/__flow__/Input/index.js +66 -141
  3. package/__flow__/Input/index.stories.js +0 -65
  4. package/__flow__/Input/index.test.js +1 -227
  5. package/__flow__/Input/styles.js +1 -1
  6. package/__flow__/TokenInput/index.js +1 -1
  7. package/__flow__/themes/dark/theme.js +3 -0
  8. package/__flow__/themes/light/theme.js +3 -0
  9. package/__flow__/types/theme.colors.flow.js +3 -0
  10. package/commonjs/Avatar/index.js +4 -7
  11. package/commonjs/Badge/index.js +1 -3
  12. package/commonjs/Badge/styles.js +1 -1
  13. package/commonjs/Banner/index.js +1 -3
  14. package/commonjs/Banner/styles.js +1 -1
  15. package/commonjs/Box/styles.js +1 -1
  16. package/commonjs/Breadcrumb/index.js +2 -5
  17. package/commonjs/Button/index.js +1 -3
  18. package/commonjs/Card/index.js +1 -3
  19. package/commonjs/Card/styles.js +3 -3
  20. package/commonjs/CharacterCounter/index.js +1 -3
  21. package/commonjs/CharacterCounter/styles.js +1 -1
  22. package/commonjs/ChartLegend/index.js +1 -3
  23. package/commonjs/ChartLegend/styles.js +3 -3
  24. package/commonjs/Checkbox/index.js +1 -3
  25. package/commonjs/Checkbox/styles.js +1 -1
  26. package/commonjs/Collapsible/index.js +2 -5
  27. package/commonjs/DatePicker/DateRangePicker.js +1 -3
  28. package/commonjs/DatePicker/SingleDatePicker.js +1 -3
  29. package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
  30. package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
  31. package/commonjs/DatePicker/common.js +1 -1
  32. package/commonjs/DatePicker/styles.js +6 -2
  33. package/commonjs/Drawer/SlideTransition.js +1 -3
  34. package/commonjs/Drawer/index.js +4 -9
  35. package/commonjs/Drawer/styles.js +2 -2
  36. package/commonjs/EmptyState/index.js +1 -3
  37. package/commonjs/Fieldset/index.js +3 -7
  38. package/commonjs/FormField/index.js +1 -3
  39. package/commonjs/Icon/index.js +2 -5
  40. package/commonjs/Icon/styles.js +1 -1
  41. package/commonjs/Image/index.js +1 -3
  42. package/commonjs/Image/styles.js +1 -1
  43. package/commonjs/Indicator/index.js +1 -3
  44. package/commonjs/Input/index.js +31 -103
  45. package/commonjs/Input/styles.js +3 -3
  46. package/commonjs/KeyboardKey/index.js +1 -3
  47. package/commonjs/Label/index.js +2 -4
  48. package/commonjs/Link/index.js +1 -3
  49. package/commonjs/Link/styles.js +1 -1
  50. package/commonjs/Listbox/index.js +4 -7
  51. package/commonjs/Loader/index.js +1 -3
  52. package/commonjs/Loader/styles.js +2 -2
  53. package/commonjs/LoaderButton/index.js +1 -3
  54. package/commonjs/Menu/constants.js +1 -1
  55. package/commonjs/Menu/descendants.js +7 -10
  56. package/commonjs/Menu/hooks.js +1 -1
  57. package/commonjs/Menu/index.js +16 -22
  58. package/commonjs/Menu/styles.js +2 -2
  59. package/commonjs/Message/index.js +1 -3
  60. package/commonjs/Message/styles.js +1 -1
  61. package/commonjs/Modal/index.js +3 -7
  62. package/commonjs/Modal/styles.js +6 -4
  63. package/commonjs/Numeral/constants.js +1 -1
  64. package/commonjs/Numeral/index.js +1 -3
  65. package/commonjs/Numeral/styles.js +3 -3
  66. package/commonjs/OverflowList/styles.js +1 -1
  67. package/commonjs/Popout/index.js +3 -7
  68. package/commonjs/Popout/styles.js +1 -1
  69. package/commonjs/Radio/index.js +1 -3
  70. package/commonjs/Radio/styles.js +4 -4
  71. package/commonjs/SegmentedControl/index.js +2 -5
  72. package/commonjs/Select/index.js +1 -3
  73. package/commonjs/Stack/index.js +1 -3
  74. package/commonjs/Switch/index.js +1 -3
  75. package/commonjs/Switch/styles.js +1 -1
  76. package/commonjs/Table/index.js +5 -10
  77. package/commonjs/TableCell/index.js +1 -3
  78. package/commonjs/TableHeaderCell/index.js +1 -3
  79. package/commonjs/TableRowAccordion/index.js +1 -3
  80. package/commonjs/Tabs/index.js +2 -5
  81. package/commonjs/Tabs/styles.js +4 -4
  82. package/commonjs/Text/index.js +1 -3
  83. package/commonjs/Text/styles.js +1 -1
  84. package/commonjs/Textarea/index.js +1 -3
  85. package/commonjs/Toast/index.js +15 -15
  86. package/commonjs/Toast/styles.js +7 -4
  87. package/commonjs/ToggleHint/index.js +1 -3
  88. package/commonjs/Token/index.js +1 -3
  89. package/commonjs/Token/styles.js +1 -1
  90. package/commonjs/TokenInput/index.js +2 -4
  91. package/commonjs/Tooltip/index.js +2 -5
  92. package/commonjs/Tooltip/styles.js +1 -1
  93. package/commonjs/VisuallyHidden/index.js +1 -1
  94. package/commonjs/index.js +1 -1
  95. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  96. package/commonjs/themes/dark/theme.js +5 -2
  97. package/commonjs/themes/light/decorative-palettes.js +1 -1
  98. package/commonjs/themes/light/theme.js +5 -2
  99. package/commonjs/utils/hooks.js +2 -3
  100. package/commonjs/utils/mixins.js +1 -1
  101. package/commonjs/utils/system-props.js +1 -1
  102. package/dist/themes/dark/dark.scss +9 -6
  103. package/dist/themes/light/light.scss +99 -96
  104. package/lib/Avatar/index.js +4 -7
  105. package/lib/Badge/index.js +1 -3
  106. package/lib/Badge/styles.js +1 -1
  107. package/lib/Banner/index.js +1 -3
  108. package/lib/Banner/styles.js +1 -1
  109. package/lib/Box/styles.js +1 -1
  110. package/lib/Breadcrumb/index.js +2 -5
  111. package/lib/Button/index.js +1 -3
  112. package/lib/Card/index.js +1 -3
  113. package/lib/Card/styles.js +2 -2
  114. package/lib/CharacterCounter/index.js +1 -3
  115. package/lib/CharacterCounter/styles.js +1 -1
  116. package/lib/ChartLegend/index.js +1 -3
  117. package/lib/ChartLegend/styles.js +3 -3
  118. package/lib/Checkbox/index.js +1 -3
  119. package/lib/Collapsible/index.js +2 -5
  120. package/lib/DatePicker/DateRangePicker.js +1 -3
  121. package/lib/DatePicker/SingleDatePicker.js +1 -3
  122. package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
  123. package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
  124. package/lib/DatePicker/styles.js +6 -2
  125. package/lib/Drawer/SlideTransition.js +1 -3
  126. package/lib/Drawer/index.js +4 -9
  127. package/lib/Drawer/styles.js +2 -2
  128. package/lib/EmptyState/index.js +1 -3
  129. package/lib/Fieldset/index.js +3 -7
  130. package/lib/FormField/index.js +1 -3
  131. package/lib/Icon/index.js +2 -5
  132. package/lib/Icon/styles.js +1 -1
  133. package/lib/Image/index.js +1 -3
  134. package/lib/Image/styles.js +1 -1
  135. package/lib/Indicator/index.js +1 -3
  136. package/lib/Input/index.js +30 -96
  137. package/lib/Input/styles.js +3 -3
  138. package/lib/KeyboardKey/index.js +1 -3
  139. package/lib/Label/index.js +2 -4
  140. package/lib/Link/index.js +1 -3
  141. package/lib/Link/styles.js +1 -1
  142. package/lib/Listbox/index.js +3 -6
  143. package/lib/Loader/index.js +1 -3
  144. package/lib/Loader/styles.js +2 -2
  145. package/lib/LoaderButton/index.js +1 -3
  146. package/lib/Menu/descendants.js +2 -5
  147. package/lib/Menu/index.js +16 -20
  148. package/lib/Menu/styles.js +2 -2
  149. package/lib/Message/index.js +1 -3
  150. package/lib/Modal/index.js +3 -7
  151. package/lib/Modal/styles.js +5 -3
  152. package/lib/Numeral/index.js +1 -3
  153. package/lib/Numeral/styles.js +2 -2
  154. package/lib/OverflowList/styles.js +1 -1
  155. package/lib/Popout/index.js +3 -7
  156. package/lib/Popout/styles.js +1 -1
  157. package/lib/Radio/index.js +1 -3
  158. package/lib/Radio/styles.js +4 -4
  159. package/lib/SegmentedControl/index.js +2 -5
  160. package/lib/Select/index.js +1 -3
  161. package/lib/Stack/index.js +1 -3
  162. package/lib/Switch/index.js +1 -3
  163. package/lib/Switch/styles.js +1 -1
  164. package/lib/Table/index.js +4 -9
  165. package/lib/TableCell/index.js +1 -3
  166. package/lib/TableHeaderCell/index.js +1 -3
  167. package/lib/TableRowAccordion/index.js +1 -3
  168. package/lib/Tabs/index.js +2 -5
  169. package/lib/Tabs/styles.js +3 -3
  170. package/lib/Text/index.js +1 -3
  171. package/lib/Text/styles.js +1 -1
  172. package/lib/Textarea/index.js +1 -3
  173. package/lib/Toast/index.js +14 -14
  174. package/lib/Toast/styles.js +7 -3
  175. package/lib/ToggleHint/index.js +1 -3
  176. package/lib/Token/index.js +1 -3
  177. package/lib/Token/styles.js +1 -1
  178. package/lib/TokenInput/index.js +2 -4
  179. package/lib/Tooltip/index.js +2 -5
  180. package/lib/Tooltip/styles.js +1 -1
  181. package/lib/VisuallyHidden/index.js +1 -1
  182. package/lib/themes/dark/theme.js +4 -1
  183. package/lib/themes/light/theme.js +4 -1
  184. package/package.json +1 -1
  185. package/bin/buildNpm.js +0 -58
@@ -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
@@ -5,7 +9,7 @@ import Icon from "../Icon"; // $FlowIssue
5
9
  import toastStyles from "!!raw-loader!react-toastify/dist/ReactToastify.css";
6
10
  var Container = styled(Box).withConfig({
7
11
  displayName: "styles__Container",
8
- componentId: "sc-wp5x29-0"
12
+ componentId: "wp5x29-0"
9
13
  })(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", ";"], function (p) {
10
14
  return p.theme.fontFamily;
11
15
  }, function (p) {
@@ -17,13 +21,13 @@ var Container = styled(Box).withConfig({
17
21
  });
18
22
  export var CustomIcon = styled(Icon).withConfig({
19
23
  displayName: "styles__CustomIcon",
20
- componentId: "sc-wp5x29-1"
24
+ componentId: "wp5x29-1"
21
25
  })(["margin-right:", ";transform:translateY(4px);color:", ";"], function (props) {
22
26
  return props.theme.space[400];
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];
@@ -1,5 +1,3 @@
1
- var _excluded = ["icon", "isOpen", "openString", "closeString", "qa", "className"];
2
-
3
1
  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
2
 
5
3
  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; }
@@ -52,7 +50,7 @@ var ToggleHint = /*#__PURE__*/function (_React$Component) {
52
50
  closeString = _this$props.closeString,
53
51
  qa = _this$props.qa,
54
52
  className = _this$props.className,
55
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
53
+ rest = _objectWithoutPropertiesLoose(_this$props, ["icon", "isOpen", "openString", "closeString", "qa", "className"]);
56
54
 
57
55
  return /*#__PURE__*/React.createElement(Container, _extends({
58
56
  icon: icon,
@@ -1,5 +1,3 @@
1
- var _excluded = ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"];
2
-
3
1
  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
2
 
5
3
  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; }
@@ -22,7 +20,7 @@ var Token = function Token(_ref) {
22
20
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
23
21
  _ref$palette = _ref.palette,
24
22
  palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
25
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
23
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
26
24
 
27
25
  var textContainer = useTextContent("");
28
26
  return /*#__PURE__*/React.createElement(Container, _extends({
@@ -3,7 +3,7 @@ import { COMMON } from "../utils/system-props";
3
3
  import { focusRing } from "../utils/mixins";
4
4
  var Container = styled.button.withConfig({
5
5
  displayName: "styles__Container",
6
- componentId: "sc-nyn5zy-0"
6
+ componentId: "nyn5zy-0"
7
7
  })(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
8
8
  var theme = _ref.theme;
9
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);
@@ -1,5 +1,3 @@
1
- var _excluded = ["autoFocus", "autocomplete", "disabled", "isInvalid", "hasWarning", "id", "name", "placeholder", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaDescribedby", "ariaLabel", "innerRef", "onAddToken", "onRemoveToken", "onChangeTokens", "onClickToken", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "tokens"];
2
-
3
1
  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
2
 
5
3
  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; }
@@ -266,7 +264,7 @@ var TokenInput = /*#__PURE__*/function (_React$Component) {
266
264
  _this$props5$qa = _this$props5.qa,
267
265
  qa = _this$props5$qa === void 0 ? {} : _this$props5$qa,
268
266
  tokens = _this$props5.tokens,
269
- rest = _objectWithoutPropertiesLoose(_this$props5, _excluded);
267
+ rest = _objectWithoutPropertiesLoose(_this$props5, ["autoFocus", "autocomplete", "disabled", "isInvalid", "hasWarning", "id", "name", "placeholder", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaDescribedby", "ariaLabel", "innerRef", "onAddToken", "onRemoveToken", "onChangeTokens", "onClickToken", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "tokens"]);
270
268
 
271
269
  var state = this.state;
272
270
  return /*#__PURE__*/React.createElement(Container, _extends({
@@ -284,7 +282,7 @@ var TokenInput = /*#__PURE__*/function (_React$Component) {
284
282
  "aria-invalid": !!isInvalid,
285
283
  "aria-label": ariaLabel,
286
284
  autoFocus: autoFocus,
287
- autocomplete: autocomplete,
285
+ autoComplete: autocomplete,
288
286
  disabled: disabled,
289
287
  id: id,
290
288
  name: name,
@@ -1,6 +1,3 @@
1
- var _excluded = ["content", "children", "enterDelay", "placement", "appearance", "zIndex", "qa", "popoutProps", "truncated"],
2
- _excluded2 = ["appearance", "children"];
3
-
4
1
  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; }
5
2
 
6
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); }
@@ -37,7 +34,7 @@ var Tooltip = function Tooltip(_ref) {
37
34
  popoutProps = _ref.popoutProps,
38
35
  _ref$truncated = _ref.truncated,
39
36
  truncated = _ref$truncated === void 0 ? false : _ref$truncated,
40
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
37
+ rest = _objectWithoutPropertiesLoose(_ref, ["content", "children", "enterDelay", "placement", "appearance", "zIndex", "qa", "popoutProps", "truncated"]);
41
38
 
42
39
  var _useState = useState(false),
43
40
  shouldShow = _useState[0],
@@ -111,7 +108,7 @@ var Content = function Content(_ref2) {
111
108
  var _ref2$appearance = _ref2.appearance,
112
109
  appearance = _ref2$appearance === void 0 ? "pill" : _ref2$appearance,
113
110
  children = _ref2.children,
114
- rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
111
+ rest = _objectWithoutPropertiesLoose(_ref2, ["appearance", "children"]);
115
112
 
116
113
  return /*#__PURE__*/React.createElement(TooltipContent, _extends({
117
114
  appearance: appearance,
@@ -3,7 +3,7 @@ import Box from "../Box";
3
3
  // eslint-disable-next-line prettier/prettier
4
4
  export var TooltipContent = styled(Box).withConfig({
5
5
  displayName: "styles__TooltipContent",
6
- componentId: "sc-t1xjnk-0"
6
+ componentId: "t1xjnk-0"
7
7
  })(["font-family:", ";", " text-align:", ";"], function (props) {
8
8
  return props.theme.fontFamily;
9
9
  }, function (props) {
@@ -2,5 +2,5 @@ import { visuallyHidden } from "../utils/mixins";
2
2
  import styled from "styled-components";
3
3
  export var VisuallyHidden = styled.span.withConfig({
4
4
  displayName: "VisuallyHidden",
5
- componentId: "sc-rxkbyc-0"
5
+ componentId: "rxkbyc-0"
6
6
  })(["", ""], visuallyHidden);
@@ -159,7 +159,10 @@ var colors = _extends({}, lightTheme.colors, {
159
159
  subtext: COLORS.COLOR_NEUTRAL_300,
160
160
  body: COLORS.COLOR_NEUTRAL_100,
161
161
  inverse: COLORS.COLOR_NEUTRAL_900,
162
- error: COLORS.COLOR_RED_400
162
+ error: COLORS.COLOR_RED_400,
163
+ background: {
164
+ highlight: COLORS.COLOR_YELLOW_900
165
+ }
163
166
  },
164
167
  icon: {
165
168
  base: COLORS.COLOR_NEUTRAL_100,
@@ -157,7 +157,10 @@ var colors = _extends({
157
157
  subtext: COLORS.COLOR_NEUTRAL_700,
158
158
  body: COLORS.COLOR_NEUTRAL_800,
159
159
  inverse: COLORS.COLOR_NEUTRAL_0,
160
- error: COLORS.COLOR_RED_800
160
+ error: COLORS.COLOR_RED_800,
161
+ background: {
162
+ highlight: COLORS.COLOR_YELLOW_200
163
+ }
161
164
  },
162
165
  icon: {
163
166
  base: COLORS.COLOR_NEUTRAL_800,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.3.0-beta.4",
3
+ "version": "11.3.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
package/bin/buildNpm.js DELETED
@@ -1,58 +0,0 @@
1
- /**
2
- * This file handles the generation of an .npmrc with Jfrog credentials during the CI process.
3
- * It replicates the local configuration requirements of a developer running `yarn` on their machine
4
- * If run locally please do not commit your auth credentials
5
- */
6
- const fs = require("fs");
7
- const https = require("https");
8
- const { exit } = require("process");
9
-
10
- const { ARTIFACTORY_KEY, CI } = process.env;
11
-
12
- // Check if we're in CI context, otherwise skip the process
13
- if (!CI) {
14
- exit();
15
- }
16
-
17
- const options = {
18
- hostname: "sproutsocial.jfrog.io",
19
- path: "/artifactory/api/npm/auth",
20
- method: "GET",
21
- headers: {
22
- "X-JFrog-Art-Api": ARTIFACTORY_KEY,
23
- },
24
- };
25
-
26
- const req = https.request(options, (res) => {
27
- console.log(`statusCode: ${res.statusCode}`);
28
-
29
- // Call our auth endpoint with environment credentials
30
- res.on("data", (data) => {
31
- // Writes out an .npmrc file with the response
32
- fs.writeFile(".npmrc", data, (err) => {
33
- if (err) console.log(err);
34
- else {
35
- console.log(".npmrc generated successfully!");
36
- }
37
- });
38
-
39
- // Once the file is created we append the registry info
40
- fs.appendFile(
41
- ".npmrc",
42
- "registry=https://sproutsocial.jfrog.io/artifactory/api/npm/npm_virtual",
43
- function (err) {
44
- if (err) throw err;
45
- console.log("Registry Config Added!");
46
- }
47
- );
48
-
49
- // Finally, we set permissions for the file so that netlify recognizes it
50
- fs.chmodSync(".npmrc", "0600");
51
- });
52
- });
53
-
54
- req.on("error", (error) => {
55
- console.error(error);
56
- });
57
-
58
- req.end();