carbon-react 102.6.0 → 102.7.2

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.
@@ -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: ${theme.colors.primary};
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 ? theme.colors.white : theme.colors.border};
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: ${theme.colors.loadingBarBackground};
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: ${theme.colors.primary};
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 = {
@@ -14,6 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
14
14
  const MessageContentStyle = _styledComponents.default.div`
15
15
  padding: 15px 50px 15px 20px;
16
16
  white-space: pre-wrap;
17
+ flex: 1;
17
18
 
18
19
  .carbon-content__title {
19
20
  margin-bottom: 2px;
@@ -17,7 +17,7 @@ const StyledPage = _styledComponents.default.article`
17
17
  `;
18
18
  exports.StyledPage = StyledPage;
19
19
  const StyledPageContent = _styledComponents.default.div`
20
- box-sizing: content-box;
20
+ box-sizing: border-box;
21
21
  padding: 30px 40px;
22
22
  width: 100%;
23
23
  height: 100%;
@@ -194,6 +194,7 @@ const Textarea = ({
194
194
  "aria-describedby": ariaDescribedBy,
195
195
  autoFocus: autoFocus,
196
196
  name: name,
197
+ value: value,
197
198
  ref: inputRef,
198
199
  maxLength: enforceCharacterLimit && characterLimit ? characterLimit : undefined,
199
200
  onChange: onChange,
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "102.6.0",
3
+ "version": "102.7.2",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {