carbon-react 102.6.1 → 102.7.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/lib/components/loader/loader-square.style.js +2 -6
- package/lib/components/loader-bar/loader-bar.style.js +3 -7
- package/lib/style/themes/aegean/aegean-theme.config.js +2 -1
- package/lib/style/themes/base/base-theme.config.js +1 -0
- package/lib/style/themes/mint/mint-theme.config.js +2 -1
- package/package.json +1 -1
|
@@ -9,8 +9,6 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
13
|
-
|
|
14
12
|
var _loader = require("./loader.config");
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -59,18 +57,17 @@ const getDimentions = size => {
|
|
|
59
57
|
|
|
60
58
|
const StyledLoaderSquare = _styledComponents.default.div`
|
|
61
59
|
${({
|
|
62
|
-
theme,
|
|
63
60
|
size,
|
|
64
61
|
isInsideButton,
|
|
65
62
|
isActive
|
|
66
63
|
}) => (0, _styledComponents.css)`
|
|
67
64
|
animation: ${loaderAnimation} 1s infinite ease-in-out both;
|
|
68
|
-
background-color:
|
|
65
|
+
background-color: var(--colorsActionMajor500);
|
|
69
66
|
display: inline-block;
|
|
70
67
|
${getDimentions(size)}
|
|
71
68
|
|
|
72
69
|
${isInsideButton && (0, _styledComponents.css)`
|
|
73
|
-
background-color: ${isActive ?
|
|
70
|
+
background-color: ${isActive ? "var(--colorsYang100)" : "var(--colorsSemanticNeutral500)"};
|
|
74
71
|
`}
|
|
75
72
|
|
|
76
73
|
&:nth-of-type(1) {
|
|
@@ -88,7 +85,6 @@ const StyledLoaderSquare = _styledComponents.default.div`
|
|
|
88
85
|
`}
|
|
89
86
|
`;
|
|
90
87
|
StyledLoaderSquare.defaultProps = {
|
|
91
|
-
theme: _base.default,
|
|
92
88
|
size: "small",
|
|
93
89
|
isInsideButton: false,
|
|
94
90
|
isActive: true
|
|
@@ -40,24 +40,22 @@ const innerBarAnimation = (0, _styledComponents.keyframes)`
|
|
|
40
40
|
`;
|
|
41
41
|
const StyledLoaderBar = _styledComponents.default.div`
|
|
42
42
|
${({
|
|
43
|
-
size
|
|
44
|
-
theme
|
|
43
|
+
size
|
|
45
44
|
}) => (0, _styledComponents.css)`
|
|
46
45
|
display: inline-block;
|
|
47
46
|
height: ${getHeight(size)};
|
|
48
47
|
width: 100%;
|
|
49
|
-
background-color:
|
|
48
|
+
background-color: var(--colorsActionMajor150);
|
|
50
49
|
overflow: hidden;
|
|
51
50
|
position: relative;
|
|
52
51
|
`}
|
|
53
52
|
`;
|
|
54
53
|
const InnerBar = _styledComponents.default.div`
|
|
55
54
|
${({
|
|
56
|
-
theme,
|
|
57
55
|
size
|
|
58
56
|
}) => (0, _styledComponents.css)`
|
|
59
57
|
position: absolute;
|
|
60
|
-
background-color:
|
|
58
|
+
background-color: var(--colorsActionMajor500);
|
|
61
59
|
width: ${INNER_BAR_LENGTH};
|
|
62
60
|
height: ${getHeight(size)};
|
|
63
61
|
animation: 2s ${innerBarAnimation} linear 0s infinite normal none running;
|
|
@@ -82,11 +80,9 @@ StyledLoader.defaultProps = {
|
|
|
82
80
|
theme: _base.default
|
|
83
81
|
};
|
|
84
82
|
StyledLoaderBar.defaultProps = {
|
|
85
|
-
theme: _base.default,
|
|
86
83
|
size: "medium"
|
|
87
84
|
};
|
|
88
85
|
InnerBar.defaultProps = {
|
|
89
|
-
theme: _base.default,
|
|
90
86
|
size: "medium"
|
|
91
87
|
};
|
|
92
88
|
StyledLoaderBar.propTypes = {
|
|
@@ -31,7 +31,8 @@ var _default = palette => {
|
|
|
31
31
|
get compatibility() {
|
|
32
32
|
return {
|
|
33
33
|
colorsActionMajor500: this.colors.primary,
|
|
34
|
-
colorsActionMajor600: this.colors.secondary
|
|
34
|
+
colorsActionMajor600: this.colors.secondary,
|
|
35
|
+
colorsActionMajor150: this.colors.loadingBarBackground
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -343,6 +343,7 @@ var _default = palette => {
|
|
|
343
343
|
|
|
344
344
|
get compatibility() {
|
|
345
345
|
return { ..._common.default,
|
|
346
|
+
colorsActionMajor150: this.colors.loadingBarBackground,
|
|
346
347
|
colorsActionMajor500: this.colors.primary,
|
|
347
348
|
colorsActionMajor600: this.colors.secondary,
|
|
348
349
|
colorsActionDisabled500: this.disabled.background,
|
|
@@ -25,7 +25,8 @@ var _default = palette => {
|
|
|
25
25
|
get compatibility() {
|
|
26
26
|
return {
|
|
27
27
|
colorsActionMajor500: this.colors.primary,
|
|
28
|
-
colorsActionMajor600: this.colors.secondary
|
|
28
|
+
colorsActionMajor600: this.colors.secondary,
|
|
29
|
+
colorsActionMajor150: this.colors.loadingBarBackground
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
|