@sproutsocial/racine 11.1.2-beta.0 → 11.2.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 +18 -0
- package/__flow__/Badge/constants.js +48 -0
- package/__flow__/Badge/index.js +59 -32
- package/__flow__/Badge/index.stories.js +35 -42
- package/__flow__/Badge/index.test.js +34 -32
- package/__flow__/Badge/styles.js +22 -42
- package/__flow__/themes/dark/theme.js +1 -0
- package/__flow__/themes/light/literal-colors.js +2 -0
- package/__flow__/themes/light/theme.js +1 -0
- package/__flow__/types/theme.colors.flow.js +27 -0
- package/commonjs/Avatar/index.js +4 -7
- package/commonjs/Badge/constants.js +43 -0
- package/commonjs/Badge/index.js +39 -39
- package/commonjs/Badge/styles.js +16 -32
- 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 +1 -3
- package/commonjs/Input/styles.js +2 -2
- 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 +1 -1
- package/commonjs/themes/light/decorative-palettes.js +1 -1
- package/commonjs/themes/light/literal-colors.js +4 -2
- package/commonjs/themes/light/theme.js +1 -1
- package/commonjs/types/theme.colors.flow.js +2 -0
- 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 -7
- package/dist/themes/light/light.scss +99 -97
- package/lib/Avatar/index.js +4 -7
- package/lib/Badge/constants.js +38 -0
- package/lib/Badge/index.js +37 -40
- package/lib/Badge/styles.js +13 -28
- 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 +1 -3
- package/lib/Input/styles.js +2 -2
- 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/light/literal-colors.js +4 -2
- package/lib/types/theme.colors.flow.js +2 -1
- package/package.json +1 -2
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({
|
|
@@ -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.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
|
|
|
@@ -19,7 +19,8 @@ var literalColors = {
|
|
|
19
19
|
"700": _seedsColor.default.COLOR_NEUTRAL_700,
|
|
20
20
|
"800": _seedsColor.default.COLOR_NEUTRAL_800,
|
|
21
21
|
"900": _seedsColor.default.COLOR_NEUTRAL_900,
|
|
22
|
-
"1000": _seedsColor.default.COLOR_NEUTRAL_1000
|
|
22
|
+
"1000": _seedsColor.default.COLOR_NEUTRAL_1000,
|
|
23
|
+
"1100": _seedsColor.default.COLOR_NEUTRAL_1100
|
|
23
24
|
},
|
|
24
25
|
green: {
|
|
25
26
|
"0": _seedsColor.default.COLOR_GREEN_0,
|
|
@@ -46,7 +47,8 @@ var literalColors = {
|
|
|
46
47
|
"700": _seedsColor.default.COLOR_RED_700,
|
|
47
48
|
"800": _seedsColor.default.COLOR_RED_800,
|
|
48
49
|
"900": _seedsColor.default.COLOR_RED_900,
|
|
49
|
-
"1000": _seedsColor.default.COLOR_RED_1000
|
|
50
|
+
"1000": _seedsColor.default.COLOR_RED_1000,
|
|
51
|
+
"1100": _seedsColor.default.COLOR_RED_1100
|
|
50
52
|
},
|
|
51
53
|
blue: {
|
|
52
54
|
"0": _seedsColor.default.COLOR_BLUE_0,
|
|
@@ -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
|
|
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
|
|
|
@@ -262,7 +267,8 @@ $dark: (
|
|
|
262
267
|
700: #515e5f,
|
|
263
268
|
800: #364141,
|
|
264
269
|
900: #273333,
|
|
265
|
-
1000: #162020
|
|
270
|
+
1000: #162020,
|
|
271
|
+
1100: #040404
|
|
266
272
|
),
|
|
267
273
|
green: (
|
|
268
274
|
0: #ebf9eb,
|
|
@@ -289,7 +295,8 @@ $dark: (
|
|
|
289
295
|
700: #db3e3e,
|
|
290
296
|
800: #c63434,
|
|
291
297
|
900: #992222,
|
|
292
|
-
1000: #6d1313
|
|
298
|
+
1000: #6d1313,
|
|
299
|
+
1100: #2b1111
|
|
293
300
|
),
|
|
294
301
|
blue: (
|
|
295
302
|
0: #e9f8ff,
|
|
@@ -610,10 +617,5 @@ $dark: (
|
|
|
610
617
|
slow: .6s
|
|
611
618
|
),
|
|
612
619
|
mode: dark
|
|
613
|
-
),
|
|
614
|
-
shadows: (
|
|
615
|
-
low: 0px 2px 4px #040404FF,
|
|
616
|
-
medium: 0px 8px 16px #040404FF,
|
|
617
|
-
high: 0px 16px 32px #040404FF
|
|
618
620
|
)
|
|
619
621
|
);
|
|
@@ -1,12 +1,104 @@
|
|
|
1
1
|
$light: (
|
|
2
2
|
__esModule: true,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
breakpoints: (900px, 1200px, 1500px, 1800px),
|
|
4
|
+
typography: (
|
|
5
|
+
100: (
|
|
6
|
+
fontSize: 11px,
|
|
7
|
+
lineHeight: 18.666666666666668px
|
|
8
|
+
),
|
|
9
|
+
200: (
|
|
10
|
+
fontSize: 13px,
|
|
11
|
+
lineHeight: 21.333333333333332px
|
|
12
|
+
),
|
|
13
|
+
300: (
|
|
14
|
+
fontSize: 16px,
|
|
15
|
+
lineHeight: 24px
|
|
16
|
+
),
|
|
17
|
+
400: (
|
|
18
|
+
fontSize: 18px,
|
|
19
|
+
lineHeight: 26.666666666666668px
|
|
20
|
+
),
|
|
21
|
+
500: (
|
|
22
|
+
fontSize: 21px,
|
|
23
|
+
lineHeight: 29.333333333333332px
|
|
24
|
+
),
|
|
25
|
+
600: (
|
|
26
|
+
fontSize: 24px,
|
|
27
|
+
lineHeight: 32px
|
|
28
|
+
),
|
|
29
|
+
700: (
|
|
30
|
+
fontSize: 32px,
|
|
31
|
+
lineHeight: 40px
|
|
32
|
+
),
|
|
33
|
+
800: (
|
|
34
|
+
fontSize: 43px,
|
|
35
|
+
lineHeight: 50.666666666666664px
|
|
36
|
+
),
|
|
37
|
+
900: (
|
|
38
|
+
fontSize: 57px,
|
|
39
|
+
lineHeight: 64px
|
|
40
|
+
),
|
|
41
|
+
1000: (
|
|
42
|
+
fontSize: 76px,
|
|
43
|
+
lineHeight: 80px
|
|
44
|
+
),
|
|
45
|
+
1100: (
|
|
46
|
+
fontSize: 101px,
|
|
47
|
+
lineHeight: 101.33333333333333px
|
|
48
|
+
),
|
|
49
|
+
1200: (
|
|
50
|
+
fontSize: 135px,
|
|
51
|
+
lineHeight: 125.33333333333333px
|
|
52
|
+
)
|
|
53
|
+
),
|
|
54
|
+
fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
|
|
55
|
+
fontWeights: (
|
|
56
|
+
normal: 400,
|
|
57
|
+
semibold: 600,
|
|
58
|
+
bold: 700,
|
|
59
|
+
extrabold: 800
|
|
60
|
+
),
|
|
61
|
+
space: (
|
|
62
|
+
0: 0px,
|
|
63
|
+
100: 2px,
|
|
64
|
+
200: 4px,
|
|
65
|
+
300: 8px,
|
|
66
|
+
350: 12px,
|
|
67
|
+
400: 16px,
|
|
68
|
+
450: 24px,
|
|
69
|
+
500: 32px,
|
|
70
|
+
600: 40px
|
|
71
|
+
),
|
|
72
|
+
radii: (
|
|
73
|
+
400: 4px,
|
|
74
|
+
500: 6px,
|
|
75
|
+
600: 8px,
|
|
76
|
+
1000: 999999px,
|
|
77
|
+
inner: 6px,
|
|
78
|
+
outer: 8px,
|
|
79
|
+
pill: 999999px
|
|
5
80
|
),
|
|
6
81
|
borders: (
|
|
7
82
|
500: 1px solid
|
|
8
83
|
),
|
|
9
|
-
|
|
84
|
+
borderWidths: (
|
|
85
|
+
500: 1px
|
|
86
|
+
),
|
|
87
|
+
shadows: (
|
|
88
|
+
low: 0px 2px 4px #2733333D,
|
|
89
|
+
medium: 0px 8px 16px #2733333D,
|
|
90
|
+
high: 0px 16px 32px #2733333D
|
|
91
|
+
),
|
|
92
|
+
easing: (
|
|
93
|
+
ease_in: cubic-bezier(.4, 0, .7, .2),
|
|
94
|
+
ease_out: cubic-bezier(0, 0, .2, 1),
|
|
95
|
+
ease_inout: cubic-bezier(.4, 0, .2, 1)
|
|
96
|
+
),
|
|
97
|
+
duration: (
|
|
98
|
+
fast: .15s,
|
|
99
|
+
medium: .3s,
|
|
100
|
+
slow: .6s
|
|
101
|
+
),
|
|
10
102
|
default: (
|
|
11
103
|
utils: (
|
|
12
104
|
|
|
@@ -269,7 +361,8 @@ $light: (
|
|
|
269
361
|
700: #515e5f,
|
|
270
362
|
800: #364141,
|
|
271
363
|
900: #273333,
|
|
272
|
-
1000: #162020
|
|
364
|
+
1000: #162020,
|
|
365
|
+
1100: #040404
|
|
273
366
|
),
|
|
274
367
|
green: (
|
|
275
368
|
0: #ebf9eb,
|
|
@@ -296,7 +389,8 @@ $light: (
|
|
|
296
389
|
700: #db3e3e,
|
|
297
390
|
800: #c63434,
|
|
298
391
|
900: #992222,
|
|
299
|
-
1000: #6d1313
|
|
392
|
+
1000: #6d1313,
|
|
393
|
+
1100: #2b1111
|
|
300
394
|
),
|
|
301
395
|
blue: (
|
|
302
396
|
0: #e9f8ff,
|
|
@@ -614,97 +708,5 @@ $light: (
|
|
|
614
708
|
slow: .6s
|
|
615
709
|
),
|
|
616
710
|
mode: light
|
|
617
|
-
),
|
|
618
|
-
duration: (
|
|
619
|
-
fast: .15s,
|
|
620
|
-
medium: .3s,
|
|
621
|
-
slow: .6s
|
|
622
|
-
),
|
|
623
|
-
easing: (
|
|
624
|
-
ease_in: cubic-bezier(.4, 0, .7, .2),
|
|
625
|
-
ease_out: cubic-bezier(0, 0, .2, 1),
|
|
626
|
-
ease_inout: cubic-bezier(.4, 0, .2, 1)
|
|
627
|
-
),
|
|
628
|
-
fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
|
|
629
|
-
fontWeights: (
|
|
630
|
-
normal: 400,
|
|
631
|
-
semibold: 600,
|
|
632
|
-
bold: 700,
|
|
633
|
-
extrabold: 800
|
|
634
|
-
),
|
|
635
|
-
radii: (
|
|
636
|
-
400: 4px,
|
|
637
|
-
500: 6px,
|
|
638
|
-
600: 8px,
|
|
639
|
-
1000: 999999px,
|
|
640
|
-
inner: 6px,
|
|
641
|
-
outer: 8px,
|
|
642
|
-
pill: 999999px
|
|
643
|
-
),
|
|
644
|
-
shadows: (
|
|
645
|
-
low: 0px 2px 4px #2733333D,
|
|
646
|
-
medium: 0px 8px 16px #2733333D,
|
|
647
|
-
high: 0px 16px 32px #2733333D
|
|
648
|
-
),
|
|
649
|
-
space: (
|
|
650
|
-
0: 0px,
|
|
651
|
-
100: 2px,
|
|
652
|
-
200: 4px,
|
|
653
|
-
300: 8px,
|
|
654
|
-
350: 12px,
|
|
655
|
-
400: 16px,
|
|
656
|
-
450: 24px,
|
|
657
|
-
500: 32px,
|
|
658
|
-
600: 40px
|
|
659
|
-
),
|
|
660
|
-
typography: (
|
|
661
|
-
100: (
|
|
662
|
-
fontSize: 11px,
|
|
663
|
-
lineHeight: 18.666666666666668px
|
|
664
|
-
),
|
|
665
|
-
200: (
|
|
666
|
-
fontSize: 13px,
|
|
667
|
-
lineHeight: 21.333333333333332px
|
|
668
|
-
),
|
|
669
|
-
300: (
|
|
670
|
-
fontSize: 16px,
|
|
671
|
-
lineHeight: 24px
|
|
672
|
-
),
|
|
673
|
-
400: (
|
|
674
|
-
fontSize: 18px,
|
|
675
|
-
lineHeight: 26.666666666666668px
|
|
676
|
-
),
|
|
677
|
-
500: (
|
|
678
|
-
fontSize: 21px,
|
|
679
|
-
lineHeight: 29.333333333333332px
|
|
680
|
-
),
|
|
681
|
-
600: (
|
|
682
|
-
fontSize: 24px,
|
|
683
|
-
lineHeight: 32px
|
|
684
|
-
),
|
|
685
|
-
700: (
|
|
686
|
-
fontSize: 32px,
|
|
687
|
-
lineHeight: 40px
|
|
688
|
-
),
|
|
689
|
-
800: (
|
|
690
|
-
fontSize: 43px,
|
|
691
|
-
lineHeight: 50.666666666666664px
|
|
692
|
-
),
|
|
693
|
-
900: (
|
|
694
|
-
fontSize: 57px,
|
|
695
|
-
lineHeight: 64px
|
|
696
|
-
),
|
|
697
|
-
1000: (
|
|
698
|
-
fontSize: 76px,
|
|
699
|
-
lineHeight: 80px
|
|
700
|
-
),
|
|
701
|
-
1100: (
|
|
702
|
-
fontSize: 101px,
|
|
703
|
-
lineHeight: 101.33333333333333px
|
|
704
|
-
),
|
|
705
|
-
1200: (
|
|
706
|
-
fontSize: 135px,
|
|
707
|
-
lineHeight: 125.33333333333333px
|
|
708
|
-
)
|
|
709
711
|
)
|
|
710
712
|
);
|
package/lib/Avatar/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var _excluded = ["fontSize"],
|
|
2
|
-
_excluded2 = ["appearance", "name", "src", "variant", "type", "size", "bg", "color"];
|
|
3
|
-
|
|
4
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); }
|
|
5
2
|
|
|
6
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; }
|
|
@@ -14,12 +11,12 @@ import Image from "../Image";
|
|
|
14
11
|
import Text from "../Text";
|
|
15
12
|
var AvatarText = styled(function (_ref) {
|
|
16
13
|
var fontSize = _ref.fontSize,
|
|
17
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
14
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["fontSize"]);
|
|
18
15
|
|
|
19
16
|
return /*#__PURE__*/React.createElement(Text, rest);
|
|
20
17
|
}).withConfig({
|
|
21
18
|
displayName: "Avatar__AvatarText",
|
|
22
|
-
componentId: "
|
|
19
|
+
componentId: "yx873f-0"
|
|
23
20
|
})(["font-size:", "px;color:", "px;"], function (props) {
|
|
24
21
|
return props.fontSize;
|
|
25
22
|
}, function (props) {
|
|
@@ -27,7 +24,7 @@ var AvatarText = styled(function (_ref) {
|
|
|
27
24
|
});
|
|
28
25
|
var Container = styled(Box).withConfig({
|
|
29
26
|
displayName: "Avatar__Container",
|
|
30
|
-
componentId: "
|
|
27
|
+
componentId: "yx873f-1"
|
|
31
28
|
})(["", ""], function (_ref2) {
|
|
32
29
|
var theme = _ref2.theme,
|
|
33
30
|
type = _ref2.type,
|
|
@@ -62,7 +59,7 @@ export var Avatar = function Avatar(_ref3) {
|
|
|
62
59
|
size = _ref3$size === void 0 ? "40px" : _ref3$size,
|
|
63
60
|
bg = _ref3.bg,
|
|
64
61
|
color = _ref3.color,
|
|
65
|
-
rest = _objectWithoutPropertiesLoose(_ref3,
|
|
62
|
+
rest = _objectWithoutPropertiesLoose(_ref3, ["appearance", "name", "src", "variant", "type", "size", "bg", "color"]);
|
|
66
63
|
|
|
67
64
|
var _useState = useState(false),
|
|
68
65
|
imageFailedLoading = _useState[0],
|