@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.
- package/CHANGELOG.md +16 -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__/TokenInput/index.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 +2 -4
- 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 +2 -4
- 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/commonjs/Tabs/index.js
CHANGED
|
@@ -7,9 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["children", "id"],
|
|
11
|
-
_excluded2 = ["children", "qa"];
|
|
12
|
-
|
|
13
10
|
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); }
|
|
14
11
|
|
|
15
12
|
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; }
|
|
@@ -60,7 +57,7 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
|
|
|
60
57
|
var _this$props = this.props,
|
|
61
58
|
children = _this$props.children,
|
|
62
59
|
id = _this$props.id,
|
|
63
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
60
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["children", "id"]);
|
|
64
61
|
|
|
65
62
|
var _this$context = this.context,
|
|
66
63
|
selectedId = _this$context.selectedId,
|
|
@@ -197,7 +194,7 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
|
|
|
197
194
|
var _this$props2 = this.props,
|
|
198
195
|
children = _this$props2.children,
|
|
199
196
|
qa = _this$props2.qa,
|
|
200
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
197
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["children", "qa"]);
|
|
201
198
|
|
|
202
199
|
return (
|
|
203
200
|
/*#__PURE__*/
|
package/commonjs/Tabs/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.
|
|
4
|
+
exports.default = exports.TabButton = exports.TabItem = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
17
17
|
|
|
18
18
|
var Container = _styledComponents.default.ul.withConfig({
|
|
19
19
|
displayName: "styles__Container",
|
|
20
|
-
componentId: "
|
|
20
|
+
componentId: "vnjuiu-0"
|
|
21
21
|
})(["display:", ";justify-content:space-between;margin:0;padding:0;list-style:none;border-bottom:", " ", ";", ""], function (props) {
|
|
22
22
|
return props.fullWidth ? "flex" : "inline-flex";
|
|
23
23
|
}, function (props) {
|
|
@@ -28,7 +28,7 @@ var Container = _styledComponents.default.ul.withConfig({
|
|
|
28
28
|
|
|
29
29
|
var TabItem = _styledComponents.default.li.withConfig({
|
|
30
30
|
displayName: "styles__TabItem",
|
|
31
|
-
componentId: "
|
|
31
|
+
componentId: "vnjuiu-1"
|
|
32
32
|
})(["margin-bottom:-1px;", ";&:not(:last-child){", ";}", ";&:hover{", ";}"], function (props) {
|
|
33
33
|
return props.fullWidth && (0, _styledComponents.css)(["flex-grow:1;"]);
|
|
34
34
|
}, function (props) {
|
|
@@ -49,7 +49,7 @@ var TabItem = _styledComponents.default.li.withConfig({
|
|
|
49
49
|
exports.TabItem = TabItem;
|
|
50
50
|
var TabButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
51
51
|
displayName: "styles__TabButton",
|
|
52
|
-
componentId: "
|
|
52
|
+
componentId: "vnjuiu-2"
|
|
53
53
|
})(["padding:", ";color:", ";width:100%;", ";&:hover{", ";}&:active{transform:none;}"], function (props) {
|
|
54
54
|
return props.theme.space[350] + " 0";
|
|
55
55
|
}, function (props) {
|
package/commonjs/Text/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["fontSize", "children", "qa"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
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); }
|
|
@@ -88,7 +86,7 @@ var Text = function Text(_ref) {
|
|
|
88
86
|
var fontSize = _ref.fontSize,
|
|
89
87
|
children = _ref.children,
|
|
90
88
|
qa = _ref.qa,
|
|
91
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
89
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["fontSize", "children", "qa"]);
|
|
92
90
|
|
|
93
91
|
var qaText = typeof children === "string" ? children : undefined;
|
|
94
92
|
return (
|
package/commonjs/Text/styles.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
|
|
14
14
|
var Container = _styledComponents.default.span.withConfig({
|
|
15
15
|
displayName: "styles__Container",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "mmg963-0"
|
|
17
17
|
})(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
|
|
18
18
|
return props.theme.fontFamily;
|
|
19
19
|
}, function (props) {
|
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["autoFocus", "disabled", "readOnly", "isInvalid", "id", "name", "placeholder", "value", "enableSpellcheck", "enableResize", "required", "rows", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "qa", "inputProps"];
|
|
11
|
-
|
|
12
10
|
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); }
|
|
13
11
|
|
|
14
12
|
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; }
|
|
@@ -97,7 +95,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
97
95
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
98
96
|
_this$props$inputProp = _this$props.inputProps,
|
|
99
97
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
100
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
98
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["autoFocus", "disabled", "readOnly", "isInvalid", "id", "name", "placeholder", "value", "enableSpellcheck", "enableResize", "required", "rows", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "qa", "inputProps"]);
|
|
101
99
|
|
|
102
100
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
103
101
|
hasBeforeElement: !!elemBefore,
|
package/commonjs/Toast/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
4
|
exports.toast = toast;
|
|
5
|
+
exports.default = void 0;
|
|
6
6
|
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
|
|
@@ -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
|
-
|
|
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;
|
package/commonjs/Toast/styles.js
CHANGED
|
@@ -11,16 +11,19 @@ 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
|
-
|
|
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
|
-
componentId: "
|
|
26
|
+
componentId: "wp5x29-0"
|
|
24
27
|
})(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", ";"], function (p) {
|
|
25
28
|
return p.theme.fontFamily;
|
|
26
29
|
}, function (p) {
|
|
@@ -32,14 +35,14 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
32
35
|
});
|
|
33
36
|
var CustomIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
34
37
|
displayName: "styles__CustomIcon",
|
|
35
|
-
componentId: "
|
|
38
|
+
componentId: "wp5x29-1"
|
|
36
39
|
})(["margin-right:", ";transform:translateY(4px);color:", ";"], function (props) {
|
|
37
40
|
return props.theme.space[400];
|
|
38
41
|
}, function (p) {
|
|
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)(["", "
|
|
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];
|
|
@@ -9,8 +9,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
9
9
|
|
|
10
10
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["icon", "isOpen", "openString", "closeString", "qa", "className"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
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); }
|
|
@@ -65,7 +63,7 @@ var ToggleHint = /*#__PURE__*/function (_React$Component) {
|
|
|
65
63
|
closeString = _this$props.closeString,
|
|
66
64
|
qa = _this$props.qa,
|
|
67
65
|
className = _this$props.className,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
66
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["icon", "isOpen", "openString", "closeString", "qa", "className"]);
|
|
69
67
|
|
|
70
68
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
71
69
|
icon: icon,
|
package/commonjs/Token/index.js
CHANGED
|
@@ -13,8 +13,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
13
13
|
|
|
14
14
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
15
15
|
|
|
16
|
-
var _excluded = ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"];
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
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); }
|
|
@@ -37,7 +35,7 @@ var Token = function Token(_ref) {
|
|
|
37
35
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
38
36
|
_ref$palette = _ref.palette,
|
|
39
37
|
palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
|
|
40
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
38
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
|
|
41
39
|
|
|
42
40
|
var textContainer = (0, _hooks.useTextContent)("");
|
|
43
41
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
package/commonjs/Token/styles.js
CHANGED
|
@@ -15,7 +15,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
15
15
|
|
|
16
16
|
var Container = _styledComponents.default.button.withConfig({
|
|
17
17
|
displayName: "styles__Container",
|
|
18
|
-
componentId: "
|
|
18
|
+
componentId: "nyn5zy-0"
|
|
19
19
|
})(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
|
|
20
20
|
var theme = _ref.theme;
|
|
21
21
|
return (0, _styledComponents.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);
|
|
@@ -17,8 +17,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
17
17
|
|
|
18
18
|
var _Token = _interopRequireDefault(require("../Token"));
|
|
19
19
|
|
|
20
|
-
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"];
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
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); }
|
|
@@ -284,7 +282,7 @@ var TokenInput = /*#__PURE__*/function (_React$Component) {
|
|
|
284
282
|
_this$props5$qa = _this$props5.qa,
|
|
285
283
|
qa = _this$props5$qa === void 0 ? {} : _this$props5$qa,
|
|
286
284
|
tokens = _this$props5.tokens,
|
|
287
|
-
rest = _objectWithoutPropertiesLoose(_this$props5,
|
|
285
|
+
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"]);
|
|
288
286
|
|
|
289
287
|
var state = this.state;
|
|
290
288
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
@@ -302,7 +300,7 @@ var TokenInput = /*#__PURE__*/function (_React$Component) {
|
|
|
302
300
|
"aria-invalid": !!isInvalid,
|
|
303
301
|
"aria-label": ariaLabel,
|
|
304
302
|
autoFocus: autoFocus,
|
|
305
|
-
|
|
303
|
+
autoComplete: autocomplete,
|
|
306
304
|
disabled: disabled,
|
|
307
305
|
id: id,
|
|
308
306
|
name: name,
|
|
@@ -11,9 +11,6 @@ var _Popout = _interopRequireDefault(require("../Popout"));
|
|
|
11
11
|
|
|
12
12
|
var _seedsMotionUnitless = _interopRequireDefault(require("@sproutsocial/seeds-motion/dist/seeds-motion-unitless"));
|
|
13
13
|
|
|
14
|
-
var _excluded = ["content", "children", "enterDelay", "placement", "appearance", "zIndex", "qa", "popoutProps", "truncated"],
|
|
15
|
-
_excluded2 = ["appearance", "children"];
|
|
16
|
-
|
|
17
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
15
|
|
|
19
16
|
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); }
|
|
@@ -51,7 +48,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
51
48
|
popoutProps = _ref.popoutProps,
|
|
52
49
|
_ref$truncated = _ref.truncated,
|
|
53
50
|
truncated = _ref$truncated === void 0 ? false : _ref$truncated,
|
|
54
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
51
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["content", "children", "enterDelay", "placement", "appearance", "zIndex", "qa", "popoutProps", "truncated"]);
|
|
55
52
|
|
|
56
53
|
var _useState = (0, React.useState)(false),
|
|
57
54
|
shouldShow = _useState[0],
|
|
@@ -125,7 +122,7 @@ var Content = function Content(_ref2) {
|
|
|
125
122
|
var _ref2$appearance = _ref2.appearance,
|
|
126
123
|
appearance = _ref2$appearance === void 0 ? "pill" : _ref2$appearance,
|
|
127
124
|
children = _ref2.children,
|
|
128
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
125
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["appearance", "children"]);
|
|
129
126
|
|
|
130
127
|
return /*#__PURE__*/React.createElement(_styles.TooltipContent, _extends({
|
|
131
128
|
appearance: appearance,
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
// eslint-disable-next-line prettier/prettier
|
|
13
13
|
var TooltipContent = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
14
14
|
displayName: "styles__TooltipContent",
|
|
15
|
-
componentId: "
|
|
15
|
+
componentId: "t1xjnk-0"
|
|
16
16
|
})(["font-family:", ";", " text-align:", ";"], function (props) {
|
|
17
17
|
return props.theme.fontFamily;
|
|
18
18
|
}, function (props) {
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
var VisuallyHidden = _styledComponents.default.span.withConfig({
|
|
13
13
|
displayName: "VisuallyHidden",
|
|
14
|
-
componentId: "
|
|
14
|
+
componentId: "rxkbyc-0"
|
|
15
15
|
})(["", ""], _mixins.visuallyHidden);
|
|
16
16
|
|
|
17
17
|
exports.VisuallyHidden = VisuallyHidden;
|
package/commonjs/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var _exportNames = {
|
|
|
70
70
|
DateRangePicker: true,
|
|
71
71
|
VisuallyHidden: true
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
73
|
+
exports.VisuallyHidden = exports.DateRangePicker = exports.SingleDatePicker = exports.ListboxButton = exports.MenuItemContainer = exports.MenuButtonContext = exports.MenuButton = exports.toast = exports.OverflowList = exports.Listbox = exports.Menu = exports.ToastContainer = exports.Skeleton = exports.Breadcrumb = exports.Avatar = exports.Stack = exports.Message = exports.Fieldset = exports.FormField = exports.EmptyState = exports.SegmentedControl = exports.Collapsible = exports.Numeral = exports.LoaderButton = exports.Drawer = exports.Tooltip = exports.ThemeProvider = exports.Popout = exports.Modal = exports.Tabs = exports.TokenInput = exports.Token = exports.Switch = exports.Link = exports.Button = exports.Select = exports.Input = exports.Label = exports.Box = exports.TableRowAccordion = exports.TableHeaderCell = exports.TableCell = exports.Table = exports.ChartLegend = exports.KeyboardKey = exports.Image = exports.Text = exports.Loader = exports.ToggleHint = exports.Textarea = exports.Radio = exports.Checkbox = exports.CharacterCounter = exports.Card = exports.Indicator = exports.Badge = exports.Banner = exports.Alert = exports.Icon = exports.darkTheme = exports.theme = exports.useTextContent = exports.useMultiselect = exports.useSelect = exports.disabled = exports.focusRing = exports.visuallyHidden = void 0;
|
|
74
74
|
|
|
75
75
|
var _systemProps = require("./systemProps");
|
|
76
76
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.neutral = exports.red = exports.orange = exports.yellow = exports.purple = exports.blue = exports.green = void 0;
|
|
5
5
|
|
|
6
6
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.default = exports.shadows = void 0;
|
|
5
5
|
|
|
6
6
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
7
7
|
|
|
@@ -175,7 +175,10 @@ var colors = _extends({}, _theme.default.colors, {
|
|
|
175
175
|
subtext: _seedsColor.default.COLOR_NEUTRAL_300,
|
|
176
176
|
body: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
177
177
|
inverse: _seedsColor.default.COLOR_NEUTRAL_900,
|
|
178
|
-
error: _seedsColor.default.COLOR_RED_400
|
|
178
|
+
error: _seedsColor.default.COLOR_RED_400,
|
|
179
|
+
background: {
|
|
180
|
+
highlight: _seedsColor.default.COLOR_YELLOW_900
|
|
181
|
+
}
|
|
179
182
|
},
|
|
180
183
|
icon: {
|
|
181
184
|
base: _seedsColor.default.COLOR_NEUTRAL_100,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.neutral = exports.red = exports.orange = exports.yellow = exports.purple = exports.blue = exports.green = void 0;
|
|
5
5
|
|
|
6
6
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.default = exports.duration = exports.easing = exports.shadows = exports.borderWidths = exports.borders = exports.radii = exports.space = exports.fontWeights = exports.fontFamily = exports.typography = exports.breakpoints = void 0;
|
|
5
5
|
|
|
6
6
|
var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
|
|
7
7
|
|
|
@@ -177,7 +177,10 @@ var colors = _extends({
|
|
|
177
177
|
subtext: _seedsColor.default.COLOR_NEUTRAL_700,
|
|
178
178
|
body: _seedsColor.default.COLOR_NEUTRAL_800,
|
|
179
179
|
inverse: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
180
|
-
error: _seedsColor.default.COLOR_RED_800
|
|
180
|
+
error: _seedsColor.default.COLOR_RED_800,
|
|
181
|
+
background: {
|
|
182
|
+
highlight: _seedsColor.default.COLOR_YELLOW_200
|
|
183
|
+
}
|
|
181
184
|
},
|
|
182
185
|
icon: {
|
|
183
186
|
base: _seedsColor.default.COLOR_NEUTRAL_800,
|
package/commonjs/utils/hooks.js
CHANGED
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
"no babel-plugin-flow-react-proptypes";
|
|
3
3
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.
|
|
5
|
+
exports.useTextContent = useTextContent;
|
|
6
6
|
exports.useMutationObserver = useMutationObserver;
|
|
7
7
|
exports.useMutationObserverOnce = useMutationObserverOnce;
|
|
8
|
-
exports.useSelect = void 0;
|
|
9
|
-
exports.useTextContent = useTextContent;
|
|
10
8
|
exports.useWhyDidYouUpdate = useWhyDidYouUpdate;
|
|
9
|
+
exports.useMultiselect = exports.useSelect = void 0;
|
|
11
10
|
|
|
12
11
|
var _react = require("react");
|
|
13
12
|
|
package/commonjs/utils/mixins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.disabled = exports.pill = exports.focusRing = exports.visuallyHidden = exports.svgToDataURL = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = require("styled-components");
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.GRID = exports.FLEXBOX = exports.POSITION = exports.LAYOUT = exports.TYPOGRAPHY = exports.BORDER = exports.COMMON = void 0;
|
|
5
5
|
|
|
6
6
|
var styles = _interopRequireWildcard(require("styled-system"));
|
|
7
7
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
$dark: (
|
|
2
2
|
__esModule: true,
|
|
3
|
+
shadows: (
|
|
4
|
+
low: 0px 2px 4px #040404FF,
|
|
5
|
+
medium: 0px 8px 16px #040404FF,
|
|
6
|
+
high: 0px 16px 32px #040404FF
|
|
7
|
+
),
|
|
3
8
|
default: (
|
|
4
9
|
utils: (
|
|
5
10
|
|
|
@@ -147,7 +152,10 @@ $dark: (
|
|
|
147
152
|
subtext: #c8cccc,
|
|
148
153
|
body: #f3f4f4,
|
|
149
154
|
inverse: #273333,
|
|
150
|
-
error: #ff7f6e
|
|
155
|
+
error: #ff7f6e,
|
|
156
|
+
background: (
|
|
157
|
+
highlight: #944c0c
|
|
158
|
+
)
|
|
151
159
|
),
|
|
152
160
|
icon: (
|
|
153
161
|
base: #f3f4f4,
|
|
@@ -612,10 +620,5 @@ $dark: (
|
|
|
612
620
|
slow: .6s
|
|
613
621
|
),
|
|
614
622
|
mode: dark
|
|
615
|
-
),
|
|
616
|
-
shadows: (
|
|
617
|
-
low: 0px 2px 4px #040404FF,
|
|
618
|
-
medium: 0px 8px 16px #040404FF,
|
|
619
|
-
high: 0px 16px 32px #040404FF
|
|
620
623
|
)
|
|
621
624
|
);
|