carbon-react 104.14.0 → 104.15.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.
@@ -26,7 +26,6 @@ const StyledNoteContent = _styledComponents.default.div`
26
26
  width: 100%;
27
27
 
28
28
  ${({
29
- theme,
30
29
  hasPreview
31
30
  }) => (0, _styledComponents.css)`
32
31
  &:not(:last-of-type) {
@@ -42,16 +41,16 @@ const StyledNoteContent = _styledComponents.default.div`
42
41
  div.public-DraftEditor-content {
43
42
  min-height: inherit;
44
43
  height: 100%;
45
- background-color: ${theme.colors.white};
44
+ background-color: var(--colorsUtilityYang100);
46
45
  line-height: 21px;
47
46
  }
48
47
 
49
48
  &:last-of-type:not(:first-of-type) {
50
- border-top: solid 1px ${theme.tile.separator};
49
+ border-top: solid 1px var(--colorsUtilityMajor050);
51
50
  }
52
51
 
53
52
  ${hasPreview && `
54
- margin-top: ${2 * theme.spacing}px;
53
+ margin-top: var(--spacing200);
55
54
  `}
56
55
  `}
57
56
  `;
@@ -76,10 +75,9 @@ const StyledFooterContent = _styledComponents.default.div`
76
75
  font-weight: bold;
77
76
 
78
77
  ${({
79
- theme,
80
78
  hasName
81
79
  }) => (0, _styledComponents.css)`
82
- margin-top: ${2 * theme.spacing}px;
80
+ margin-top: var(--spacing200);
83
81
 
84
82
  ${hasName && (0, _styledComponents.css)`
85
83
  &:first-of-type {
@@ -88,29 +86,29 @@ const StyledFooterContent = _styledComponents.default.div`
88
86
 
89
87
  &:nth-of-type(2) {
90
88
  font-size: 12px;
91
- color: ${theme.note.timeStamp};
92
- margin-left: ${2 * theme.spacing}px;
89
+ color: var(--colorsUtilityYin065);
90
+ margin-left: var(--spacing200);
93
91
  }
94
92
 
95
93
  &:last-of-type:not(:nth-of-type(2)) {
96
94
  font-size: 12px;
97
- color: ${theme.note.timeStamp};
95
+ color: var(--colorsUtilityYin065);
98
96
  cursor: pointer;
99
- margin-left: ${3 * theme.spacing}px;
97
+ margin-left: var(--spacing300);
100
98
  }
101
99
  `}
102
100
 
103
101
  ${!hasName && (0, _styledComponents.css)`
104
102
  &:first-of-type {
105
103
  font-size: 12px;
106
- color: ${theme.note.timeStamp};
104
+ color: var(--colorsUtilityYin065);
107
105
  }
108
106
 
109
107
  &:last-of-type:not(:first-of-type) {
110
108
  font-size: 12px;
111
- color: ${theme.note.timeStamp};
109
+ color: var(--colorsUtilityYin065);
112
110
  cursor: pointer;
113
- margin-left: ${3 * theme.spacing}px;
111
+ margin-left: var(--spacing300);
114
112
  }
115
113
  `}
116
114
  `}
@@ -118,19 +116,16 @@ const StyledFooterContent = _styledComponents.default.div`
118
116
  exports.StyledFooterContent = StyledFooterContent;
119
117
  const StyledFooter = _styledComponents.default.div`
120
118
  display: flex;
121
- margin-bottom: ${({
122
- theme
123
- }) => `${-theme.spacing}px;`}
119
+ margin-bottom: calc(-1 * var(--spacing100));
124
120
  flex-wrap: wrap;
125
121
  `;
126
122
  exports.StyledFooter = StyledFooter;
127
123
  const StyledNote = _styledComponents.default.div`
128
124
  ${({
129
- theme,
130
125
  width
131
126
  }) => (0, _styledComponents.css)`
132
- background-color: ${theme.colors.white};
133
- border: 1px solid ${theme.tile.border};
127
+ background-color: var(--colorsUtilityYang100);
128
+ border: 1px solid var(--colorsUtilityMajor100);
134
129
  display: flex;
135
130
  flex-direction: column;
136
131
  padding: 24px;
@@ -155,19 +150,10 @@ const StyledNote = _styledComponents.default.div`
155
150
  ${_styledSystem.margin}
156
151
  `;
157
152
  exports.StyledNote = StyledNote;
158
- StyledNoteContent.defaultProps = {
159
- theme: _base.default
160
- };
161
153
  StyledNote.propTypes = {
162
154
  padding: _propTypes.default.string,
163
155
  width: _propTypes.default.number
164
156
  };
165
157
  StyledNote.defaultProps = {
166
158
  theme: _base.default
167
- };
168
- StyledFooter.defaultProps = {
169
- theme: _base.default
170
- };
171
- StyledFooterContent.defaultProps = {
172
- theme: _base.default
173
159
  };
@@ -336,9 +336,6 @@ declare function _default(palette: any): {
336
336
  background: any;
337
337
  altHover: any;
338
338
  };
339
- note: {
340
- timeStamp: string;
341
- };
342
339
  editorLinkPreview: {
343
340
  background: any;
344
341
  hoverBackground: any;
@@ -357,9 +357,6 @@ var _default = palette => {
357
357
  background: palette.slateTint(80),
358
358
  altHover: palette.slateTint(85)
359
359
  },
360
- note: {
361
- timeStamp: "rgba(0,0,0,0.65)"
362
- },
363
360
  editorLinkPreview: {
364
361
  background: palette.slateTint(95),
365
362
  hoverBackground: palette.slateTint(80),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.14.0",
3
+ "version": "104.15.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {