@sproutsocial/racine 9.1.0-beta-pr-1290.0 → 9.1.1-theme-extension.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 +0 -28
- package/__flow__/Breadcrumb/styles.js +5 -0
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/Card/index.stories.js +1 -0
- package/__flow__/Card/styles.js +1 -1
- package/__flow__/CustomThemeProvider/index.js +17 -0
- package/__flow__/Drawer/index.stories.js +3 -3
- package/__flow__/Drawer/styles.js +1 -1
- package/__flow__/KeyboardKey/styles.js +1 -1
- package/__flow__/Listbox/__snapshots__/index.test.js.snap +34 -40
- package/__flow__/Menu/__snapshots__/index.test.js.snap +12 -15
- package/__flow__/Menu/index.js +7 -3
- package/__flow__/Menu/index.stories.js +1 -1
- package/__flow__/Menu/styles.js +18 -1
- package/__flow__/Modal/__snapshots__/index.test.js.snap +80 -0
- package/__flow__/Modal/index.test.js +16 -0
- package/__flow__/Modal/styles.js +1 -1
- package/__flow__/Popout/index.js +1 -1
- package/__flow__/ThemeProvider/index.js +2 -2
- package/__flow__/Token/index.js +1 -4
- package/__flow__/Token/index.stories.js +0 -11
- package/__flow__/Token/styles.js +33 -43
- package/__flow__/Tooltip/index.js +1 -1
- package/__flow__/index.js +1 -0
- package/__flow__/themes/dark/theme.js +156 -180
- package/__flow__/themes/default/theme.js +8 -19
- package/__flow__/themes/sprout/theme.js +22 -0
- package/__flow__/types/system-props.flow.js +2 -1
- package/__flow__/utils/extendTheme.js +17 -0
- package/commonjs/Breadcrumb/styles.js +1 -1
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Card/styles.js +1 -1
- package/commonjs/CustomThemeProvider/index.js +23 -0
- package/commonjs/Drawer/styles.js +1 -1
- package/commonjs/KeyboardKey/styles.js +1 -1
- package/commonjs/Menu/index.js +1 -3
- package/commonjs/Menu/styles.js +16 -3
- package/commonjs/Modal/styles.js +1 -1
- package/commonjs/Popout/index.js +1 -1
- package/commonjs/Token/index.js +2 -5
- package/commonjs/Token/styles.js +50 -19
- package/commonjs/Tooltip/index.js +1 -1
- package/commonjs/index.js +5 -1
- package/commonjs/themes/dark/theme.js +154 -179
- package/commonjs/themes/default/theme.js +8 -19
- package/commonjs/themes/sprout/theme.js +29 -0
- package/commonjs/utils/extendTheme.js +22 -0
- package/lib/Breadcrumb/styles.js +1 -1
- package/lib/Button/styles.js +1 -1
- package/lib/Card/styles.js +1 -1
- package/lib/CustomThemeProvider/index.js +12 -0
- package/lib/Drawer/styles.js +1 -1
- package/lib/KeyboardKey/styles.js +1 -1
- package/lib/Menu/index.js +2 -4
- package/lib/Menu/styles.js +13 -2
- package/lib/Modal/styles.js +1 -1
- package/lib/Popout/index.js +1 -1
- package/lib/Token/index.js +2 -5
- package/lib/Token/styles.js +50 -19
- package/lib/Tooltip/index.js +1 -1
- package/lib/index.js +1 -0
- package/lib/themes/dark/theme.js +153 -174
- package/lib/themes/default/theme.js +8 -18
- package/lib/themes/sprout/theme.js +19 -0
- package/lib/utils/extendTheme.js +12 -0
- package/package.json +3 -3
- package/__flow__/themes/_themes.scss +0 -138
- package/__flow__/themes/utils/interact.js +0 -12
- package/commonjs/themes/utils/interact.js +0 -19
- package/dist/themes/_themes.scss +0 -138
- package/dist/themes/dark.scss +0 -601
- package/dist/themes/default.scss +0 -692
- package/lib/themes/utils/interact.js +0 -13
|
@@ -23,15 +23,12 @@ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"))
|
|
|
23
23
|
|
|
24
24
|
var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
|
|
25
25
|
|
|
26
|
-
var _interact = _interopRequireDefault(require("../utils/interact"));
|
|
27
|
-
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
27
|
|
|
30
28
|
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); }
|
|
31
29
|
|
|
32
30
|
var breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
33
31
|
exports.breakpoints = breakpoints;
|
|
34
|
-
var MODE = "default-light";
|
|
35
32
|
|
|
36
33
|
var colors = _extends({
|
|
37
34
|
app: {
|
|
@@ -206,9 +203,6 @@ var colors = _extends({
|
|
|
206
203
|
selected: _seedsColor.default.COLOR_NEUTRAL_800
|
|
207
204
|
}
|
|
208
205
|
},
|
|
209
|
-
elevation: {
|
|
210
|
-
base: _seedsColor.default.COLOR_NEUTRAL_900 + "3D"
|
|
211
|
-
},
|
|
212
206
|
network: {
|
|
213
207
|
twitter: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER,
|
|
214
208
|
twitter_like: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER_LIKE,
|
|
@@ -235,10 +229,6 @@ var colors = _extends({
|
|
|
235
229
|
yelp: _seedsNetworkcolor.default.NETWORK_COLOR_YELP,
|
|
236
230
|
whatsapp: _seedsNetworkcolor.default.NETWORK_COLOR_WHATSAPP,
|
|
237
231
|
tiktok: _seedsNetworkcolor.default.NETWORK_COLOR_TIKTOK
|
|
238
|
-
},
|
|
239
|
-
dataviz: {
|
|
240
|
-
map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
|
|
241
|
-
list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
|
|
242
232
|
}
|
|
243
233
|
}, _literalColors.default, _datavizPalette.datavizPalette);
|
|
244
234
|
|
|
@@ -297,9 +287,10 @@ var borderWidths = {
|
|
|
297
287
|
};
|
|
298
288
|
exports.borderWidths = borderWidths;
|
|
299
289
|
var shadows = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
290
|
+
"100": _seedsDepth.default.ELEVATION_LEVEL_100,
|
|
291
|
+
"200": _seedsDepth.default.ELEVATION_LEVEL_200,
|
|
292
|
+
"300": _seedsDepth.default.ELEVATION_LEVEL_300,
|
|
293
|
+
"400": _seedsDepth.default.ELEVATION_LEVEL_400
|
|
303
294
|
};
|
|
304
295
|
exports.shadows = shadows;
|
|
305
296
|
var easing = {
|
|
@@ -315,9 +306,6 @@ var duration = {
|
|
|
315
306
|
};
|
|
316
307
|
exports.duration = duration;
|
|
317
308
|
var theme = {
|
|
318
|
-
utils: {
|
|
319
|
-
interact: (0, _interact.default)(MODE)
|
|
320
|
-
},
|
|
321
309
|
breakpoints: breakpoints,
|
|
322
310
|
colors: colors,
|
|
323
311
|
typography: _extends({}, typography, {
|
|
@@ -338,10 +326,11 @@ var theme = {
|
|
|
338
326
|
}),
|
|
339
327
|
borders: borders,
|
|
340
328
|
borderWidths: borderWidths,
|
|
341
|
-
shadows: shadows,
|
|
329
|
+
shadows: _extends({}, shadows, {
|
|
330
|
+
shadows: shadows
|
|
331
|
+
}),
|
|
342
332
|
easing: easing,
|
|
343
|
-
duration: duration
|
|
344
|
-
mode: MODE
|
|
333
|
+
duration: duration
|
|
345
334
|
};
|
|
346
335
|
var _default = theme;
|
|
347
336
|
exports.default = _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _theme = _interopRequireDefault(require("../default/theme"));
|
|
7
|
+
|
|
8
|
+
var _seedsColor = require("@sproutsocial/seeds-color");
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
var sproutTheme = {
|
|
13
|
+
container: {
|
|
14
|
+
background: {
|
|
15
|
+
error: {
|
|
16
|
+
hover: _seedsColor.COLOR_RED_800
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
button: {
|
|
21
|
+
primary: {
|
|
22
|
+
background: {
|
|
23
|
+
base: "purple"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var _default = sproutTheme;
|
|
29
|
+
exports.default = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.extendColorTheme = extendColorTheme;
|
|
5
|
+
|
|
6
|
+
var merge = _interopRequireWildcard(require("deepmerge"));
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
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); }
|
|
13
|
+
|
|
14
|
+
function extendColorTheme(baseTheme, extension) {
|
|
15
|
+
var newColorTheme = merge(baseTheme.colors, extension);
|
|
16
|
+
|
|
17
|
+
var newTheme = _extends({}, baseTheme, {
|
|
18
|
+
colors: _extends({}, newColorTheme)
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return newTheme;
|
|
22
|
+
}
|
package/lib/Breadcrumb/styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
var Nav = styled.nav.withConfig({
|
|
3
3
|
displayName: "styles__Nav",
|
|
4
4
|
componentId: "sc-1ub1apc-0"
|
|
5
|
-
})(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
|
|
5
|
+
})(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child) a,li:not(:last-child) button{font-weight:normal;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
|
|
6
6
|
return props.theme.typography[200];
|
|
7
7
|
}, function (props) {
|
|
8
8
|
return props.theme.fontFamily;
|
package/lib/Button/styles.js
CHANGED
|
@@ -32,7 +32,7 @@ var Container = styled.button.withConfig({
|
|
|
32
32
|
}, function (props) {
|
|
33
33
|
return props.theme.colors.button[props.appearance].background.hover;
|
|
34
34
|
}, function (props) {
|
|
35
|
-
return props.appearance === "placeholder" ? props.theme.shadows
|
|
35
|
+
return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
|
|
36
36
|
}, function (props) {
|
|
37
37
|
return props.theme.colors.button[props.appearance].text.hover;
|
|
38
38
|
}, function (props) {
|
package/lib/Card/styles.js
CHANGED
|
@@ -9,7 +9,7 @@ var Container = styled(Box).withConfig({
|
|
|
9
9
|
}, function (props) {
|
|
10
10
|
return props.theme.radii[500];
|
|
11
11
|
}, function (props) {
|
|
12
|
-
return props.theme.shadows
|
|
12
|
+
return props.theme.shadows[100];
|
|
13
13
|
}, function (props) {
|
|
14
14
|
return props.theme.duration.medium;
|
|
15
15
|
}, function (props) {
|
|
@@ -0,0 +1,12 @@
|
|
|
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); }
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { ThemeProvider } from "styled-components";
|
|
5
|
+
|
|
6
|
+
var CustomThemeProvider = function CustomThemeProvider(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, _extends({
|
|
8
|
+
theme: props.theme
|
|
9
|
+
}, props));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default CustomThemeProvider;
|
package/lib/Drawer/styles.js
CHANGED
|
@@ -13,7 +13,7 @@ var Container = styled.div.withConfig({
|
|
|
13
13
|
}, function (props) {
|
|
14
14
|
return props.theme.colors.container.background.base;
|
|
15
15
|
}, function (props) {
|
|
16
|
-
return props.theme.shadows
|
|
16
|
+
return props.theme.shadows[400];
|
|
17
17
|
}, function (props) {
|
|
18
18
|
return css(["", ":", "px;"], props.direction, props.offset);
|
|
19
19
|
}, COMMON);
|
|
@@ -12,7 +12,7 @@ var Container = styled.div.withConfig({
|
|
|
12
12
|
}, function (props) {
|
|
13
13
|
return props.theme.radii[500];
|
|
14
14
|
}, function (props) {
|
|
15
|
-
return props.theme.shadows
|
|
15
|
+
return props.theme.shadows[100];
|
|
16
16
|
}, function (props) {
|
|
17
17
|
return props.theme.space[200];
|
|
18
18
|
}, COMMON);
|
package/lib/Menu/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from "react";
|
|
|
8
8
|
import styled from "styled-components";
|
|
9
9
|
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
10
10
|
import uniqueId from "lodash.uniqueid";
|
|
11
|
-
import { MenuItemContainer, MenuItemsContainer } from "./styles";
|
|
11
|
+
import { MenuGroupContainer, MenuItemContainer, MenuItemsContainer } from "./styles";
|
|
12
12
|
import { MENU_ITEM_ROLES, MENU_ROLES } from "./constants";
|
|
13
13
|
import Box from "../Box";
|
|
14
14
|
import Button from "../Button";
|
|
@@ -244,9 +244,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
|
|
|
244
244
|
mt: 350,
|
|
245
245
|
color: "text.headline",
|
|
246
246
|
_css: isDisabled && disabled
|
|
247
|
-
}, title)), /*#__PURE__*/React.createElement(
|
|
248
|
-
m: 300,
|
|
249
|
-
p: 300,
|
|
247
|
+
}, title)), /*#__PURE__*/React.createElement(MenuGroupContainer, _extends({}, props, {
|
|
250
248
|
role: "group"
|
|
251
249
|
}), children));
|
|
252
250
|
};
|
package/lib/Menu/styles.js
CHANGED
|
@@ -41,7 +41,18 @@ export var MenuItemContainer = styled(Box).withConfig({
|
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.disabled && disabled;
|
|
43
43
|
});
|
|
44
|
+
export var MenuGroupContainer = styled(Box).withConfig({
|
|
45
|
+
displayName: "styles__MenuGroupContainer",
|
|
46
|
+
componentId: "fjvae4-1"
|
|
47
|
+
})(["", ";"], function (props) {
|
|
48
|
+
return props.appearance === "flush" ? css(["margin:0 -", ";"], function (props) {
|
|
49
|
+
return props.theme.space[300];
|
|
50
|
+
}) : css(["padding:", ";"], function (props) {
|
|
51
|
+
return props.theme.space[300];
|
|
52
|
+
});
|
|
53
|
+
});
|
|
44
54
|
export var MenuItemsContainer = styled(Box).withConfig({
|
|
45
55
|
displayName: "styles__MenuItemsContainer",
|
|
46
|
-
componentId: "fjvae4-
|
|
47
|
-
})(["list-style-type:none;outline:0;"]);
|
|
56
|
+
componentId: "fjvae4-2"
|
|
57
|
+
})(["list-style-type:none;outline:0;"]);
|
|
58
|
+
export default MenuGroupContainer;
|
package/lib/Modal/styles.js
CHANGED
|
@@ -53,7 +53,7 @@ export var Container = styled(ReactModalAdapter).withConfig({
|
|
|
53
53
|
}, function (props) {
|
|
54
54
|
return props.theme.radii[500];
|
|
55
55
|
}, function (props) {
|
|
56
|
-
return props.theme.shadows
|
|
56
|
+
return props.theme.shadows[300];
|
|
57
57
|
}, function (props) {
|
|
58
58
|
return props.theme.colors.text.body;
|
|
59
59
|
}, BODY_PADDING, BODY_PADDING, BODY_PADDING, width, COMMON);
|
package/lib/Popout/index.js
CHANGED
package/lib/Token/index.js
CHANGED
|
@@ -18,17 +18,14 @@ var Token = function Token(_ref) {
|
|
|
18
18
|
valid = _ref$valid === void 0 ? true : _ref$valid,
|
|
19
19
|
_ref$disabled = _ref.disabled,
|
|
20
20
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
21
|
-
|
|
22
|
-
palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
|
|
23
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
|
|
21
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
|
|
24
22
|
|
|
25
23
|
var textContainer = useTextContent("");
|
|
26
24
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
27
25
|
ref: textContainer,
|
|
28
26
|
valid: valid,
|
|
29
|
-
palette: palette,
|
|
30
|
-
type: closeable || onClick ? "button" : undefined,
|
|
31
27
|
as: closeable || onClick ? "button" : "div",
|
|
28
|
+
type: closeable || onClick ? "button" : undefined,
|
|
32
29
|
closeable: closeable || onClick,
|
|
33
30
|
disabled: disabled,
|
|
34
31
|
onClick: onClick,
|
package/lib/Token/styles.js
CHANGED
|
@@ -4,24 +4,55 @@ import { focusRing } from "../utils/mixins";
|
|
|
4
4
|
var Container = styled.button.withConfig({
|
|
5
5
|
displayName: "styles__Container",
|
|
6
6
|
componentId: "nyn5zy-0"
|
|
7
|
-
})(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
7
|
+
})(["font-family:", ";", ";position:relative;display:inline-block;padding:", " ", ";margin:0;color:", ";background:", ";border:1px solid ", ";font-weight:", ";line-height:1;vertical-align:middle;border-radius:", ";outline:none;transition:all ", " ", ";&:focus{", "}", " ", " ", " ", ""], function (props) {
|
|
8
|
+
return props.theme.fontFamily;
|
|
9
|
+
}, function (props) {
|
|
10
|
+
return props.theme.typography[200];
|
|
11
|
+
}, function (props) {
|
|
12
|
+
return props.theme.space[200];
|
|
13
|
+
}, function (props) {
|
|
14
|
+
return props.theme.space[300];
|
|
15
|
+
}, function (props) {
|
|
16
|
+
return props.theme.colors.text.body;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
return props.theme.colors.container.background.base;
|
|
19
|
+
}, function (props) {
|
|
20
|
+
return props.theme.colors.container.border.base;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.theme.fontWeights.normal;
|
|
23
|
+
}, function (props) {
|
|
24
|
+
return props.theme.radii[500];
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.theme.duration.fast;
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.theme.easing.ease_inout;
|
|
29
|
+
}, focusRing, function (props) {
|
|
30
|
+
return props.closeable && css(["cursor:pointer;&:hover,&:active{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
|
|
31
|
+
return props.theme.colors.text.body;
|
|
32
|
+
}, function (props) {
|
|
33
|
+
return props.theme.colors.container.border.decorative.neutral;
|
|
34
|
+
}, function (props) {
|
|
35
|
+
return props.theme.colors.container.background.decorative.neutral;
|
|
36
|
+
});
|
|
37
|
+
}, function (props) {
|
|
38
|
+
return props.disabled && css(["opacity:0.4;cursor:not-allowed;&:hover,&:active{background:", ";border:1px solid ", ";}"], function (props) {
|
|
39
|
+
return props.theme.colors.container.background.base;
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.theme.colors.container.border.base;
|
|
42
|
+
});
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return !props.valid && css(["color:", ";border-color:", ";background:", ";&:hover{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
|
|
45
|
+
return props.theme.colors.text.body;
|
|
46
|
+
}, function (props) {
|
|
47
|
+
return props.theme.colors.container.border.error;
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return props.theme.colors.container.background.error;
|
|
50
|
+
}, function (props) {
|
|
51
|
+
return props.theme.colors.text.body;
|
|
52
|
+
}, function (props) {
|
|
53
|
+
return props.theme.colors.container.border.error;
|
|
54
|
+
}, function (props) {
|
|
55
|
+
return props.theme.colors.container.background.error;
|
|
56
|
+
});
|
|
26
57
|
}, COMMON);
|
|
27
58
|
export default Container;
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -118,7 +118,7 @@ var Content = function Content(_ref2) {
|
|
|
118
118
|
m: 200,
|
|
119
119
|
color: "text.body",
|
|
120
120
|
bg: "container.background.base",
|
|
121
|
-
boxShadow:
|
|
121
|
+
boxShadow: 300,
|
|
122
122
|
border: 500,
|
|
123
123
|
borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
|
|
124
124
|
|
package/lib/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export { default as Tabs } from "./Tabs";
|
|
|
36
36
|
export { default as Modal } from "./Modal";
|
|
37
37
|
export { default as Popout } from "./Popout";
|
|
38
38
|
export { default as ThemeProvider } from "./ThemeProvider";
|
|
39
|
+
export { default as CustomThemeProvider } from "./CustomThemeProvider";
|
|
39
40
|
export { default as Tooltip } from "./Tooltip";
|
|
40
41
|
export { default as Drawer } from "./Drawer";
|
|
41
42
|
export { default as LoaderButton } from "./LoaderButton";
|