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:
|
|
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
|
|
49
|
+
border-top: solid 1px var(--colorsUtilityMajor050);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
${hasPreview && `
|
|
54
|
-
margin-top:
|
|
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:
|
|
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:
|
|
92
|
-
margin-left:
|
|
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:
|
|
95
|
+
color: var(--colorsUtilityYin065);
|
|
98
96
|
cursor: pointer;
|
|
99
|
-
margin-left:
|
|
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:
|
|
104
|
+
color: var(--colorsUtilityYin065);
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
&:last-of-type:not(:first-of-type) {
|
|
110
108
|
font-size: 12px;
|
|
111
|
-
color:
|
|
109
|
+
color: var(--colorsUtilityYin065);
|
|
112
110
|
cursor: pointer;
|
|
113
|
-
margin-left:
|
|
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:
|
|
133
|
-
border: 1px solid
|
|
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
|
};
|
|
@@ -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),
|