carbon-react 104.6.0 → 104.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.
@@ -7,8 +7,6 @@ exports.DialogInnerContentStyle = exports.DialogContentStyle = exports.DialogTit
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _base = _interopRequireDefault(require("../../style/themes/base"));
11
-
12
10
  var _form = require("../form/form.style");
13
11
 
14
12
  var _heading = require("../heading/heading.style");
@@ -34,10 +32,8 @@ const dialogSizes = {
34
32
  const HORIZONTAL_PADDING = 35;
35
33
  const CONTENT_BOTTOM_PADDING = 30;
36
34
  const DialogStyle = _styledComponents.default.div`
37
- background-color: #f2f5f6;
38
- box-shadow: ${({
39
- theme
40
- }) => theme.shadows.depth3};
35
+ background-color: var(--colorsUtilityMajor025);
36
+ box-shadow: var(--boxShadow300);
41
37
  display: flex;
42
38
  flex-direction: column;
43
39
  position: fixed;
@@ -119,9 +115,7 @@ const DialogTitleStyle = _styledComponents.default.div`
119
115
  margin-bottom: 20px;
120
116
 
121
117
  ${_heading.StyledHeadingTitle} {
122
- color: ${({
123
- theme
124
- }) => theme.text.color};
118
+ color: var(--colorsUtilityYin090);
125
119
  display: block;
126
120
  overflow: hidden;
127
121
  text-overflow: ellipsis;
@@ -147,10 +141,4 @@ const DialogInnerContentStyle = _styledComponents.default.div`
147
141
  position: relative;
148
142
  flex: 1;
149
143
  `;
150
- exports.DialogInnerContentStyle = DialogInnerContentStyle;
151
- DialogTitleStyle.defaultProps = {
152
- theme: _base.default
153
- };
154
- DialogStyle.defaultProps = {
155
- theme: _base.default
156
- };
144
+ exports.DialogInnerContentStyle = DialogInnerContentStyle;
@@ -26,9 +26,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
26
26
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
27
27
 
28
28
  const StyledDialogFullScreen = _styledComponents.default.div`
29
- background-color: ${({
30
- theme
31
- }) => theme.disabled.input};
29
+ background-color: var(--colorsUtilityMajor025);
32
30
  height: 100%;
33
31
  left: 0;
34
32
  position: fixed;
@@ -36,7 +34,7 @@ const StyledDialogFullScreen = _styledComponents.default.div`
36
34
  width: 100%;
37
35
  z-index: ${({
38
36
  theme
39
- }) => theme.zIndex.fullScreenModal};
37
+ }) => theme.zIndex.fullScreenModal}; // TODO (tokens): implement elevation tokens - FE-4437
40
38
  display: flex;
41
39
  flex-direction: column;
42
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.6.0",
3
+ "version": "104.7.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {