@sproutsocial/racine 11.3.0-beta.3 → 11.3.0-text-highlight.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/__flow__/Input/index.js +66 -141
- package/__flow__/Input/index.stories.js +0 -65
- package/__flow__/Input/index.test.js +1 -227
- package/__flow__/Input/styles.js +1 -1
- package/__flow__/themes/dark/theme.js +3 -0
- package/__flow__/themes/light/theme.js +3 -0
- package/__flow__/types/theme.colors.flow.js +3 -0
- package/commonjs/Avatar/index.js +4 -7
- package/commonjs/Badge/index.js +1 -3
- package/commonjs/Badge/styles.js +1 -1
- package/commonjs/Banner/index.js +1 -3
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Box/styles.js +1 -1
- package/commonjs/Breadcrumb/index.js +2 -5
- package/commonjs/Button/index.js +1 -3
- package/commonjs/Card/index.js +1 -3
- package/commonjs/Card/styles.js +3 -3
- package/commonjs/CharacterCounter/index.js +1 -3
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/ChartLegend/index.js +1 -3
- package/commonjs/ChartLegend/styles.js +3 -3
- package/commonjs/Checkbox/index.js +1 -3
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/index.js +2 -5
- package/commonjs/DatePicker/DateRangePicker.js +1 -3
- package/commonjs/DatePicker/SingleDatePicker.js +1 -3
- package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/commonjs/DatePicker/common.js +1 -1
- package/commonjs/DatePicker/styles.js +6 -2
- package/commonjs/Drawer/SlideTransition.js +1 -3
- package/commonjs/Drawer/index.js +4 -9
- package/commonjs/Drawer/styles.js +2 -2
- package/commonjs/EmptyState/index.js +1 -3
- package/commonjs/Fieldset/index.js +3 -7
- package/commonjs/FormField/index.js +1 -3
- package/commonjs/Icon/index.js +2 -5
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/Image/index.js +1 -3
- package/commonjs/Image/styles.js +1 -1
- package/commonjs/Indicator/index.js +1 -3
- package/commonjs/Input/index.js +31 -103
- package/commonjs/Input/styles.js +3 -3
- package/commonjs/KeyboardKey/index.js +1 -3
- package/commonjs/Label/index.js +2 -4
- package/commonjs/Link/index.js +1 -3
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/index.js +4 -7
- package/commonjs/Loader/index.js +1 -3
- package/commonjs/Loader/styles.js +2 -2
- package/commonjs/LoaderButton/index.js +1 -3
- package/commonjs/Menu/constants.js +1 -1
- package/commonjs/Menu/descendants.js +7 -10
- package/commonjs/Menu/hooks.js +1 -1
- package/commonjs/Menu/index.js +16 -22
- package/commonjs/Menu/styles.js +2 -2
- package/commonjs/Message/index.js +1 -3
- package/commonjs/Message/styles.js +1 -1
- package/commonjs/Modal/index.js +3 -7
- package/commonjs/Modal/styles.js +6 -4
- package/commonjs/Numeral/constants.js +1 -1
- package/commonjs/Numeral/index.js +1 -3
- package/commonjs/Numeral/styles.js +3 -3
- package/commonjs/OverflowList/styles.js +1 -1
- package/commonjs/Popout/index.js +3 -7
- package/commonjs/Popout/styles.js +1 -1
- package/commonjs/Radio/index.js +1 -3
- package/commonjs/Radio/styles.js +4 -4
- package/commonjs/SegmentedControl/index.js +2 -5
- package/commonjs/Select/index.js +1 -3
- package/commonjs/Stack/index.js +1 -3
- package/commonjs/Switch/index.js +1 -3
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/index.js +5 -10
- package/commonjs/TableCell/index.js +1 -3
- package/commonjs/TableHeaderCell/index.js +1 -3
- package/commonjs/TableRowAccordion/index.js +1 -3
- package/commonjs/Tabs/index.js +2 -5
- package/commonjs/Tabs/styles.js +4 -4
- package/commonjs/Text/index.js +1 -3
- package/commonjs/Text/styles.js +1 -1
- package/commonjs/Textarea/index.js +1 -3
- package/commonjs/Toast/index.js +15 -15
- package/commonjs/Toast/styles.js +7 -4
- package/commonjs/ToggleHint/index.js +1 -3
- package/commonjs/Token/index.js +1 -3
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/index.js +1 -3
- package/commonjs/Tooltip/index.js +2 -5
- package/commonjs/Tooltip/styles.js +1 -1
- package/commonjs/VisuallyHidden/index.js +1 -1
- package/commonjs/index.js +1 -1
- package/commonjs/themes/dark/decorative-palettes.js +1 -1
- package/commonjs/themes/dark/theme.js +5 -2
- package/commonjs/themes/light/decorative-palettes.js +1 -1
- package/commonjs/themes/light/theme.js +5 -2
- package/commonjs/utils/hooks.js +2 -3
- package/commonjs/utils/mixins.js +1 -1
- package/commonjs/utils/system-props.js +1 -1
- package/dist/themes/dark/dark.scss +9 -6
- package/dist/themes/light/light.scss +99 -96
- package/lib/Avatar/index.js +4 -7
- package/lib/Badge/index.js +1 -3
- package/lib/Badge/styles.js +1 -1
- package/lib/Banner/index.js +1 -3
- package/lib/Banner/styles.js +1 -1
- package/lib/Box/styles.js +1 -1
- package/lib/Breadcrumb/index.js +2 -5
- package/lib/Button/index.js +1 -3
- package/lib/Card/index.js +1 -3
- package/lib/Card/styles.js +2 -2
- package/lib/CharacterCounter/index.js +1 -3
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/ChartLegend/index.js +1 -3
- package/lib/ChartLegend/styles.js +3 -3
- package/lib/Checkbox/index.js +1 -3
- package/lib/Collapsible/index.js +2 -5
- package/lib/DatePicker/DateRangePicker.js +1 -3
- package/lib/DatePicker/SingleDatePicker.js +1 -3
- package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
- package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/lib/DatePicker/styles.js +6 -2
- package/lib/Drawer/SlideTransition.js +1 -3
- package/lib/Drawer/index.js +4 -9
- package/lib/Drawer/styles.js +2 -2
- package/lib/EmptyState/index.js +1 -3
- package/lib/Fieldset/index.js +3 -7
- package/lib/FormField/index.js +1 -3
- package/lib/Icon/index.js +2 -5
- package/lib/Icon/styles.js +1 -1
- package/lib/Image/index.js +1 -3
- package/lib/Image/styles.js +1 -1
- package/lib/Indicator/index.js +1 -3
- package/lib/Input/index.js +30 -96
- package/lib/Input/styles.js +3 -3
- package/lib/KeyboardKey/index.js +1 -3
- package/lib/Label/index.js +2 -4
- package/lib/Link/index.js +1 -3
- package/lib/Link/styles.js +1 -1
- package/lib/Listbox/index.js +3 -6
- package/lib/Loader/index.js +1 -3
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.js +1 -3
- package/lib/Menu/descendants.js +2 -5
- package/lib/Menu/index.js +16 -20
- package/lib/Menu/styles.js +2 -2
- package/lib/Message/index.js +1 -3
- package/lib/Modal/index.js +3 -7
- package/lib/Modal/styles.js +5 -3
- package/lib/Numeral/index.js +1 -3
- package/lib/Numeral/styles.js +2 -2
- package/lib/OverflowList/styles.js +1 -1
- package/lib/Popout/index.js +3 -7
- package/lib/Popout/styles.js +1 -1
- package/lib/Radio/index.js +1 -3
- package/lib/Radio/styles.js +4 -4
- package/lib/SegmentedControl/index.js +2 -5
- package/lib/Select/index.js +1 -3
- package/lib/Stack/index.js +1 -3
- package/lib/Switch/index.js +1 -3
- package/lib/Switch/styles.js +1 -1
- package/lib/Table/index.js +4 -9
- package/lib/TableCell/index.js +1 -3
- package/lib/TableHeaderCell/index.js +1 -3
- package/lib/TableRowAccordion/index.js +1 -3
- package/lib/Tabs/index.js +2 -5
- package/lib/Tabs/styles.js +3 -3
- package/lib/Text/index.js +1 -3
- package/lib/Text/styles.js +1 -1
- package/lib/Textarea/index.js +1 -3
- package/lib/Toast/index.js +14 -14
- package/lib/Toast/styles.js +7 -3
- package/lib/ToggleHint/index.js +1 -3
- package/lib/Token/index.js +1 -3
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/index.js +1 -3
- package/lib/Tooltip/index.js +2 -5
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/themes/dark/theme.js +4 -1
- package/lib/themes/light/theme.js +4 -1
- package/package.json +1 -1
- package/bin/buildNpm.js +0 -58
package/lib/Toast/index.js
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/lib/Toast/styles.js
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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(["", "
|
|
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/lib/ToggleHint/index.js
CHANGED
|
@@ -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,
|
|
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,
|
package/lib/Token/index.js
CHANGED
|
@@ -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,
|
|
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({
|
package/lib/Token/styles.js
CHANGED
|
@@ -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: "
|
|
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);
|
package/lib/TokenInput/index.js
CHANGED
|
@@ -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,
|
|
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({
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -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,
|
|
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,
|
|
111
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["appearance", "children"]);
|
|
115
112
|
|
|
116
113
|
return /*#__PURE__*/React.createElement(TooltipContent, _extends({
|
|
117
114
|
appearance: appearance,
|
package/lib/Tooltip/styles.js
CHANGED
|
@@ -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: "
|
|
6
|
+
componentId: "t1xjnk-0"
|
|
7
7
|
})(["font-family:", ";", " text-align:", ";"], function (props) {
|
|
8
8
|
return props.theme.fontFamily;
|
|
9
9
|
}, function (props) {
|
package/lib/themes/dark/theme.js
CHANGED
|
@@ -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
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();
|