@sproutsocial/racine 7.0.0-beta.0 → 7.0.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 +44 -0
- package/__flow__/Banner/index.stories.js +16 -0
- package/__flow__/Banner/styles.js +2 -0
- package/__flow__/Box/styles.js +5 -5
- package/__flow__/Button/__snapshots__/index.test.js.snap +0 -6
- package/__flow__/ChartLegend/styles.js +6 -6
- package/__flow__/Checkbox/index.js +2 -2
- package/__flow__/Checkbox/styles.js +3 -8
- package/__flow__/Collapsible/index.js +6 -1
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/IconViewBoxes.js +1 -1
- package/__flow__/Link/styles.js +2 -1
- package/__flow__/Listbox/__snapshots__/index.test.js.snap +0 -2
- package/__flow__/Toast/index.js +5 -7
- package/__flow__/Toast/styles.js +6 -3
- package/__flow__/themes/dark.js +2 -2
- package/__flow__/utils/theme.js +3 -2
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Checkbox/index.js +1 -1
- package/commonjs/Checkbox/styles.js +7 -7
- package/commonjs/Collapsible/index.js +11 -1
- package/commonjs/IconViewBoxes.js +3 -0
- package/commonjs/Link/styles.js +2 -2
- package/commonjs/Toast/index.js +5 -9
- package/commonjs/Toast/styles.js +11 -2
- package/commonjs/include-icons.js +1 -1
- package/commonjs/themes/dark.js +2 -2
- package/commonjs/utils/theme.js +4 -3
- package/dist/iconList.js +1 -1
- package/dist/icons.svg +1 -1
- package/icons/stories.svg +3 -0
- package/icons/yelp-full-star.svg +3 -0
- package/icons/yelp-half-star.svg +4 -0
- package/includeIcons.js +1 -1
- package/lib/Banner/styles.js +1 -1
- package/lib/Checkbox/index.js +2 -2
- package/lib/Checkbox/styles.js +5 -5
- package/lib/Collapsible/index.js +11 -1
- package/lib/IconViewBoxes.js +3 -0
- package/lib/Link/styles.js +3 -3
- package/lib/Toast/index.js +6 -11
- package/lib/Toast/styles.js +9 -2
- package/lib/include-icons.js +1 -1
- package/lib/themes/dark.js +2 -2
- package/lib/utils/theme.js +4 -3
- package/package.json +2 -2
- package/__flow__/.DS_Store +0 -0
- package/__flow__/@doug/index.stories.js +0 -6
package/commonjs/Toast/styles.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.GlobalToastStyles = void 0;
|
|
4
|
+
exports.default = exports.GlobalToastStyles = exports.CustomIcon = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
7
|
|
|
8
8
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
9
9
|
|
|
10
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
|
+
|
|
10
12
|
var _ReactToastify = _interopRequireDefault(require("!!raw-loader!react-toastify/dist/ReactToastify.css"));
|
|
11
13
|
|
|
12
14
|
var _templateObject;
|
|
@@ -22,7 +24,7 @@ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.s
|
|
|
22
24
|
var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
23
25
|
displayName: "styles__Container",
|
|
24
26
|
componentId: "wp5x29-0"
|
|
25
|
-
})(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", "
|
|
27
|
+
})(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", ";"], function (p) {
|
|
26
28
|
return p.theme.fontFamily;
|
|
27
29
|
}, function (p) {
|
|
28
30
|
return p.theme.typography[200];
|
|
@@ -30,9 +32,16 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
30
32
|
return p.theme.colors.background.container;
|
|
31
33
|
}, function (p) {
|
|
32
34
|
return p.theme.colors[p.type].border;
|
|
35
|
+
});
|
|
36
|
+
var CustomIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
37
|
+
displayName: "styles__CustomIcon",
|
|
38
|
+
componentId: "wp5x29-1"
|
|
39
|
+
})(["margin-right:", ";transform:translateY(4px);color:", ";"], function (props) {
|
|
40
|
+
return props.theme.space[400];
|
|
33
41
|
}, function (p) {
|
|
34
42
|
return p.customColor ? undefined : p.theme.colors[p.type].icon;
|
|
35
43
|
});
|
|
44
|
+
exports.CustomIcon = CustomIcon;
|
|
36
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) {
|
|
37
46
|
return p.theme.space[400];
|
|
38
47
|
}, function (p) {
|