@twreporter/react-article-components 1.4.1 → 1.4.2-rc.3
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/CHANGELOG.md +32 -0
- package/lib/components/article-page.js +11 -7
- package/lib/components/aside/metadata.js +14 -10
- package/lib/components/aside/tools.js +11 -9
- package/lib/components/body/annotation.js +8 -6
- package/lib/components/body/audio/control-button.js +8 -6
- package/lib/components/body/audio/index.js +6 -4
- package/lib/components/body/audio/seek-bar.js +7 -5
- package/lib/components/body/blockquote.js +4 -2
- package/lib/components/body/brief.js +6 -4
- package/lib/components/body/centered-quote.js +5 -3
- package/lib/components/body/embedded-code.js +4 -2
- package/lib/components/body/headings.js +4 -2
- package/lib/components/body/image-diff.js +8 -6
- package/lib/components/body/infobox.js +9 -7
- package/lib/components/body/multimedia.js +5 -3
- package/lib/components/body/paragraph.js +3 -1
- package/lib/components/body/slider/index.js +3 -1
- package/lib/components/body/slideshow/index.js +8 -4
- package/lib/components/donation-box.js +7 -5
- package/lib/components/leading/fullscreen.js +14 -10
- package/lib/components/leading/normal.js +13 -9
- package/lib/components/leading/pink.js +16 -12
- package/lib/components/license.js +4 -2
- package/lib/components/related/card.js +9 -7
- package/lib/components/related/index.js +14 -12
- package/lib/components/related/list.js +16 -14
- package/lib/components/separation-curve.js +5 -3
- package/lib/components/table-of-contents/styled.js +3 -1
- package/lib/constants/color.js +42 -0
- package/lib/constants/css.js +7 -5
- package/lib/constants/typography.js +6 -8
- package/lib/managers/theme-manager.js +48 -46
- package/package.json +5 -5
|
@@ -7,25 +7,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _dynamicComponentsContext = _interopRequireDefault(require("../../contexts/dynamic-components-context"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
15
17
|
|
|
16
18
|
var _mockup = _interopRequireDefault(require("./mockup"));
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _card = _interopRequireDefault(require("./card"));
|
|
19
21
|
|
|
20
|
-
var
|
|
22
|
+
var _theme = _interopRequireDefault(require("../../constants/theme"));
|
|
21
23
|
|
|
22
|
-
var
|
|
24
|
+
var _color = _interopRequireDefault(require("../../constants/color"));
|
|
23
25
|
|
|
24
|
-
var
|
|
26
|
+
var _related = _interopRequireDefault(require("../../constants/prop-types/related"));
|
|
25
27
|
|
|
26
|
-
var
|
|
28
|
+
var _typography = _interopRequireDefault(require("../../constants/typography"));
|
|
27
29
|
|
|
28
|
-
var
|
|
30
|
+
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
29
31
|
|
|
30
32
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
31
33
|
|
|
@@ -74,19 +76,19 @@ var fadeIn = /*#__PURE__*/(0, _styledComponents.keyframes)(["from{opacity:0;}to{
|
|
|
74
76
|
var selectButtonColors = function selectButtonColors(theme) {
|
|
75
77
|
switch (theme) {
|
|
76
78
|
case _theme["default"].article.v2.photo:
|
|
77
|
-
return (0, _styledComponents.css)(["color:
|
|
79
|
+
return (0, _styledComponents.css)(["color:", ";background-color:", ";&:hover{color:", ";background-color:", ";}"], _color["default"].notSoWhite, _color["default"].gray25, _color["default"].white, _color["default"].gray10);
|
|
78
80
|
|
|
79
81
|
case _theme["default"].article.v2.pink:
|
|
80
82
|
case _theme["default"].article.v2["default"]:
|
|
81
83
|
default:
|
|
82
|
-
return (0, _styledComponents.css)(["color
|
|
84
|
+
return (0, _styledComponents.css)(["color:", ";background-color:", ";&:hover{color:", ";background-color:", ";}"], _color["default"].gray80, _color["default"].gray45, _color["default"].gray90, _color["default"].gray53);
|
|
83
85
|
}
|
|
84
86
|
};
|
|
85
87
|
|
|
86
88
|
var LoadMoreButton = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
87
89
|
displayName: "list__LoadMoreButton",
|
|
88
90
|
componentId: "uykdc6-0"
|
|
89
|
-
})(["text-align:center;font-size:14px;letter-spacing:0.4px;padding-top:26px;border-radius:4px;height:72px;font-weight:", ";cursor:pointer;", " transition:color 100ms ease;", " ", " ", " ", ""],
|
|
91
|
+
})(["text-align:center;font-size:14px;letter-spacing:0.4px;padding-top:26px;border-radius:4px;height:72px;font-weight:", ";cursor:pointer;", " transition:color 100ms ease;", " ", " ", " ", ""], _typography["default"].font.weight.bold, function (props) {
|
|
90
92
|
return selectButtonColors(props.theme.name);
|
|
91
93
|
}, _mediaQuery["default"].mobileOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n margin: 30px auto;\n "])), _mockup["default"].mobile.item.width), _mediaQuery["default"].tabletOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n margin: 40px auto;\n "])), _mockup["default"].tablet.item.width), _mediaQuery["default"].desktopOnly(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n margin: 30px 0;\n "])), _mockup["default"].desktop.item.width * 3 + _mockup["default"].desktop.item.margin.right * 2 + 3), _mediaQuery["default"].hdOnly(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: ", "px;\n margin: 30px 0;\n "])), _mockup["default"].hd.item.width * 3 + _mockup["default"].hd.item.margin.right * 2 + 3));
|
|
92
94
|
|
|
@@ -103,10 +105,10 @@ var Item = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
103
105
|
})(["border-style:solid;border-width:0 0.5px 0.5px 0;border-color:", ";margin-bottom:40px;animation:", " 400ms ease-in-out;", " ", " ", " ", " ", ""], function (props) {
|
|
104
106
|
switch (props.theme.name) {
|
|
105
107
|
case _theme["default"].article.v2.photo:
|
|
106
|
-
return
|
|
108
|
+
return _color["default"].gray10;
|
|
107
109
|
|
|
108
110
|
default:
|
|
109
|
-
return
|
|
111
|
+
return _color["default"].gray50;
|
|
110
112
|
}
|
|
111
113
|
}, fadeIn, _mediaQuery["default"].tabletAndBelow(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-width: 0 0 0.5px 0;\n margin: 0 auto;\n "]))), _mediaQuery["default"].mobileOnly(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex: 0 0 ", ";\n "])), _mockup["default"].mobile.item.width), _mediaQuery["default"].tabletOnly(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex: 0 0 ", "px;\n "])), _mockup["default"].tablet.item.width), _mediaQuery["default"].desktopOnly(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-right: ", "px;\n flex: 0 0 ", "px;\n "])), _mockup["default"].desktop.item.margin.right, _mockup["default"].desktop.item.width), _mediaQuery["default"].hdOnly(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-right: ", "px;\n flex: 0 0 ", "px;\n "])), _mockup["default"].hd.item.margin.right, _mockup["default"].hd.thumbnail.width));
|
|
112
114
|
|
|
@@ -15,6 +15,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _theme = _interopRequireDefault(require("../constants/theme"));
|
|
17
17
|
|
|
18
|
+
var _color = _interopRequireDefault(require("../constants/color"));
|
|
19
|
+
|
|
18
20
|
var _templateObject;
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -27,14 +29,14 @@ var Separation = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
|
27
29
|
})(["width:192px;margin:40px auto;", " >svg>path{fill:", ";}"], _mediaQuery["default"].hdOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 270px;\n "]))), function (props) {
|
|
28
30
|
switch (props.theme.name) {
|
|
29
31
|
case _theme["default"].article.v2.pink:
|
|
30
|
-
return
|
|
32
|
+
return _color["default"].pink;
|
|
31
33
|
|
|
32
34
|
case _theme["default"].article.v2.photo:
|
|
33
|
-
return
|
|
35
|
+
return _color["default"].brown;
|
|
34
36
|
|
|
35
37
|
case _theme["default"].article.v2["default"]:
|
|
36
38
|
default:
|
|
37
|
-
return
|
|
39
|
+
return _color["default"].milkTea;
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
|
|
@@ -11,6 +11,8 @@ var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/med
|
|
|
11
11
|
|
|
12
12
|
var _positionZIndex = _interopRequireDefault(require("../../constants/position-z-index"));
|
|
13
13
|
|
|
14
|
+
var _typography = _interopRequireDefault(require("../../constants/typography"));
|
|
15
|
+
|
|
14
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -29,7 +31,7 @@ exports.TOCBlock = TOCBlock;
|
|
|
29
31
|
var TOCText = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
30
32
|
displayName: "styled__TOCText",
|
|
31
33
|
componentId: "sc-1guo9zm-1"
|
|
32
|
-
})(["font-size:14px;font-weight:
|
|
34
|
+
})(["font-size:14px;font-weight:", ";line-height:1.29;letter-spacing:0.1px;color:", ";&:hover{color:", ";}margin-left:5px;margin-right:auto;max-width:150px;"], _typography["default"].font.weight.normal, function (props) {
|
|
33
35
|
return props.toHighlight ? props.theme.colors.toc.accent : props.theme.colors.toc.text;
|
|
34
36
|
}, function (props) {
|
|
35
37
|
return props.theme.colors.toc.accent;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
transparent: 'rgba(0, 0, 0, 0)',
|
|
9
|
+
white: '#ffffff',
|
|
10
|
+
almostWhite: '#fefefe',
|
|
11
|
+
notSoWhite: 'rgba(255, 255, 255, 0.8)',
|
|
12
|
+
gray5: 'rgba(255, 255, 255, 0.4)',
|
|
13
|
+
gray10: 'rgba(255, 255, 255, 0.2)',
|
|
14
|
+
gray20: '#f4f4f4',
|
|
15
|
+
gray25: 'rgba(255, 255, 255, 0.08)',
|
|
16
|
+
gray30: '#f1f1f1',
|
|
17
|
+
gray35: 'rgba(216, 216, 216, 0.2)',
|
|
18
|
+
gray40: '#e2e2e2',
|
|
19
|
+
gray45: 'rgba(0, 0, 0, 0.08)',
|
|
20
|
+
gray50: '#d8d8d8',
|
|
21
|
+
gray53: 'rgba(0, 0, 0, 0.13)',
|
|
22
|
+
gray55: '#cccccc',
|
|
23
|
+
gray60: '#afafaf',
|
|
24
|
+
gray70: '#9c9c9c',
|
|
25
|
+
gray75: 'rgba(0, 0, 0, 0.5)',
|
|
26
|
+
gray80: '#808080',
|
|
27
|
+
gray85: '#494949',
|
|
28
|
+
gray90: '#404040',
|
|
29
|
+
gray95: '#262626',
|
|
30
|
+
black: '#000000',
|
|
31
|
+
lightBlue: '#2440fb',
|
|
32
|
+
blue: '#355ed3',
|
|
33
|
+
darkBlue: '#08192d',
|
|
34
|
+
lightPink: '#fadaf5',
|
|
35
|
+
pink: '#fbafef',
|
|
36
|
+
darkPink: '#ef7ede',
|
|
37
|
+
paleBrown: 'rgba(166, 122, 68, 0.55)',
|
|
38
|
+
lightBrown: '#c9af8e',
|
|
39
|
+
brown: '#a67a44',
|
|
40
|
+
milkTea: '#d0a67d'
|
|
41
|
+
};
|
|
42
|
+
exports["default"] = _default;
|
package/lib/constants/css.js
CHANGED
|
@@ -11,17 +11,19 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
11
11
|
|
|
12
12
|
var _typography = _interopRequireDefault(require("./typography"));
|
|
13
13
|
|
|
14
|
+
var _color = _interopRequireDefault(require("./color"));
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function getParagraphTextStyles(themeName) {
|
|
17
19
|
switch (themeName) {
|
|
18
20
|
case _theme["default"].article.v2.photo:
|
|
19
|
-
return (0, _styledComponents.css)(["color:
|
|
21
|
+
return (0, _styledComponents.css)(["color:", ";"], _color["default"].notSoWhite);
|
|
20
22
|
|
|
21
23
|
case _theme["default"].article.v2.pink:
|
|
22
24
|
case _theme["default"].article.v2["default"]:
|
|
23
25
|
default:
|
|
24
|
-
return (0, _styledComponents.css)(["color
|
|
26
|
+
return (0, _styledComponents.css)(["color:", ";"], _color["default"].gray90);
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -34,14 +36,14 @@ var paragraphText = /*#__PURE__*/(0, _styledComponents.css)(["", " font-size:",
|
|
|
34
36
|
function getLinkChildrenStyles(themeName) {
|
|
35
37
|
switch (themeName) {
|
|
36
38
|
case _theme["default"].article.v2.photo:
|
|
37
|
-
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color
|
|
39
|
+
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color:", ";text-decoration:none;border-bottom:1px solid ", ";}a:hover{border-color:", ";}"], _color["default"].milkTea, _color["default"].gray10, _color["default"].milkTea);
|
|
38
40
|
|
|
39
41
|
case _theme["default"].article.v2.pink:
|
|
40
|
-
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color
|
|
42
|
+
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color:", ";text-decoration:none;border-bottom:1px solid ", ";}a:hover{border-color:", ";}"], _color["default"].blue, _color["default"].gray50, _color["default"].blue);
|
|
41
43
|
|
|
42
44
|
case _theme["default"].article.v2["default"]:
|
|
43
45
|
default:
|
|
44
|
-
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color
|
|
46
|
+
return (0, _styledComponents.css)(["a:link,a:visited,a:active{color:", ";text-decoration:none;border-bottom:1px solid ", ";}a:hover{border-color:", ";}"], _color["default"].brown, _color["default"].gray50, _color["default"].brown);
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -10,14 +10,12 @@ var _default = {
|
|
|
10
10
|
base: '18px'
|
|
11
11
|
},
|
|
12
12
|
weight: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
bold: '700',
|
|
20
|
-
heavy: '900'
|
|
13
|
+
normal: '400',
|
|
14
|
+
bold: '700'
|
|
15
|
+
},
|
|
16
|
+
family: {
|
|
17
|
+
title: 'merriweather, source-han-serif-tc, serif',
|
|
18
|
+
"default": 'rosario, source-han-sans-traditional, sans-serif'
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
};
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _theme2 = _interopRequireDefault(require("../constants/theme"));
|
|
9
9
|
|
|
10
|
+
var _color = _interopRequireDefault(require("../constants/color"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -42,38 +44,38 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
42
44
|
* @property {ColorSet} base - Base color set
|
|
43
45
|
*/
|
|
44
46
|
var secondaryColorSet = {
|
|
45
|
-
text:
|
|
46
|
-
accent:
|
|
47
|
-
support:
|
|
48
|
-
background:
|
|
47
|
+
text: _color["default"].brown,
|
|
48
|
+
accent: _color["default"].brown,
|
|
49
|
+
support: _color["default"].milkTea,
|
|
50
|
+
background: _color["default"].lightBrown
|
|
49
51
|
};
|
|
50
52
|
var baseColorSet = {
|
|
51
|
-
text:
|
|
52
|
-
lightText:
|
|
53
|
+
text: _color["default"].gray90,
|
|
54
|
+
lightText: _color["default"].gray80,
|
|
53
55
|
button: {
|
|
54
56
|
text: {
|
|
55
|
-
color:
|
|
57
|
+
color: _color["default"].gray80
|
|
56
58
|
},
|
|
57
59
|
border: {
|
|
58
|
-
color:
|
|
60
|
+
color: _color["default"].gray80
|
|
59
61
|
},
|
|
60
62
|
background: {
|
|
61
63
|
color: 'initial'
|
|
62
64
|
},
|
|
63
65
|
hover: {
|
|
64
66
|
text: {
|
|
65
|
-
color:
|
|
67
|
+
color: _color["default"].gray80
|
|
66
68
|
},
|
|
67
69
|
border: {
|
|
68
|
-
color:
|
|
70
|
+
color: _color["default"].gray80
|
|
69
71
|
},
|
|
70
72
|
background: {
|
|
71
|
-
color:
|
|
73
|
+
color: _color["default"].white
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
|
-
line:
|
|
76
|
-
background:
|
|
77
|
+
line: _color["default"].gray60,
|
|
78
|
+
background: _color["default"].gray20
|
|
77
79
|
};
|
|
78
80
|
/**
|
|
79
81
|
* @class Create a new ThemeManager
|
|
@@ -134,79 +136,79 @@ exports["default"] = ThemeManager;
|
|
|
134
136
|
_defineProperty(ThemeManager, "colors", {
|
|
135
137
|
pink: {
|
|
136
138
|
primary: {
|
|
137
|
-
text:
|
|
138
|
-
accent:
|
|
139
|
-
support:
|
|
140
|
-
background:
|
|
139
|
+
text: _color["default"].blue,
|
|
140
|
+
accent: _color["default"].drakPink,
|
|
141
|
+
support: _color["default"].pink,
|
|
142
|
+
background: _color["default"].lightPink
|
|
141
143
|
},
|
|
142
144
|
secondary: secondaryColorSet,
|
|
143
145
|
base: baseColorSet,
|
|
144
146
|
toc: {
|
|
145
|
-
text:
|
|
146
|
-
accent:
|
|
147
|
-
support:
|
|
148
|
-
background:
|
|
147
|
+
text: _color["default"].gray70,
|
|
148
|
+
accent: _color["default"].darkPink,
|
|
149
|
+
support: _color["default"].pink,
|
|
150
|
+
background: _color["default"].lightPink
|
|
149
151
|
}
|
|
150
152
|
},
|
|
151
153
|
"default": {
|
|
152
154
|
primary: {
|
|
153
|
-
text:
|
|
154
|
-
accent:
|
|
155
|
-
support:
|
|
156
|
-
background:
|
|
155
|
+
text: _color["default"].brown,
|
|
156
|
+
accent: _color["default"].brown,
|
|
157
|
+
support: _color["default"].milkTea,
|
|
158
|
+
background: _color["default"].gray30
|
|
157
159
|
},
|
|
158
160
|
secondary: secondaryColorSet,
|
|
159
161
|
base: _objectSpread(_objectSpread({}, baseColorSet), {}, {
|
|
160
|
-
background:
|
|
162
|
+
background: _color["default"].gray30
|
|
161
163
|
}),
|
|
162
164
|
toc: {
|
|
163
|
-
text:
|
|
164
|
-
accent:
|
|
165
|
-
support:
|
|
166
|
-
background:
|
|
165
|
+
text: _color["default"].gray60,
|
|
166
|
+
accent: _color["default"].brown,
|
|
167
|
+
support: _color["default"].milkTea,
|
|
168
|
+
background: _color["default"].almostWhite
|
|
167
169
|
}
|
|
168
170
|
},
|
|
169
171
|
photo: {
|
|
170
172
|
primary: {
|
|
171
|
-
text:
|
|
172
|
-
accent:
|
|
173
|
-
support:
|
|
174
|
-
background:
|
|
173
|
+
text: _color["default"].brown,
|
|
174
|
+
accent: _color["default"].brown,
|
|
175
|
+
support: _color["default"].milkTea,
|
|
176
|
+
background: _color["default"].darkBlue
|
|
175
177
|
},
|
|
176
178
|
secondary: secondaryColorSet,
|
|
177
179
|
base: {
|
|
178
|
-
text:
|
|
179
|
-
lightText:
|
|
180
|
+
text: _color["default"].notSoWhite,
|
|
181
|
+
lightText: _color["default"].gray5,
|
|
180
182
|
button: {
|
|
181
183
|
text: {
|
|
182
|
-
color:
|
|
184
|
+
color: _color["default"].gray80
|
|
183
185
|
},
|
|
184
186
|
border: {
|
|
185
|
-
color:
|
|
187
|
+
color: _color["default"].gray80
|
|
186
188
|
},
|
|
187
189
|
background: {
|
|
188
190
|
color: 'initial'
|
|
189
191
|
},
|
|
190
192
|
hover: {
|
|
191
193
|
text: {
|
|
192
|
-
color:
|
|
194
|
+
color: _color["default"].white
|
|
193
195
|
},
|
|
194
196
|
border: {
|
|
195
|
-
color:
|
|
197
|
+
color: _color["default"].white
|
|
196
198
|
},
|
|
197
199
|
background: {
|
|
198
200
|
color: 'initial'
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
},
|
|
202
|
-
line:
|
|
203
|
-
background:
|
|
204
|
+
line: _color["default"].gray35,
|
|
205
|
+
background: _color["default"].darkBlue
|
|
204
206
|
},
|
|
205
207
|
toc: {
|
|
206
|
-
text:
|
|
207
|
-
accent:
|
|
208
|
-
support:
|
|
209
|
-
background:
|
|
208
|
+
text: _color["default"].gray60,
|
|
209
|
+
accent: _color["default"].brown,
|
|
210
|
+
support: _color["default"].milkTea,
|
|
211
|
+
background: _color["default"].almostWhite
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
214
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-article-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2-rc.3",
|
|
4
4
|
"description": "The Reporter react article components, which are used in article page",
|
|
5
5
|
"main": "lib/components/article-page.js",
|
|
6
6
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"webpack-dev-server": "^3.7.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@twreporter/core": "^1.
|
|
28
|
-
"@twreporter/react-components": "^8.
|
|
27
|
+
"@twreporter/core": "^1.3.0-rc.1",
|
|
28
|
+
"@twreporter/react-components": "^8.6.0-rc.3",
|
|
29
29
|
"@twreporter/redux": "^7.2.0",
|
|
30
|
-
"@twreporter/universal-header": "^2.2.
|
|
30
|
+
"@twreporter/universal-header": "^2.2.2-rc.3",
|
|
31
31
|
"howler": "^2.1.1",
|
|
32
32
|
"lodash": "^4.17.11",
|
|
33
33
|
"memoize-one": "^5.0.5",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"files": [
|
|
40
40
|
"lib"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d66a4b232464636ca6f36fd8821b1da7a84645d7"
|
|
43
43
|
}
|