@kids-reporter/draft-renderer 1.0.26 → 1.0.28
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.
|
@@ -15,23 +15,23 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
const HeadingForAnnotation = (0, _styledComponents.default)(_articleContent.Heading)`
|
|
16
16
|
margin: 0 auto 40px auto;
|
|
17
17
|
|
|
18
|
-
margin-bottom: 0px;
|
|
18
|
+
margin-bottom: 0px !important;
|
|
19
19
|
|
|
20
20
|
${_mediaQuery.mediaQuery.smallOnly} {
|
|
21
21
|
padding-left: 0px;
|
|
22
22
|
padding-right: 0px;
|
|
23
|
-
margin-bottom: 0px;
|
|
23
|
+
margin-bottom: 0px !important;
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
26
|
const ListForAnnotation = (0, _styledComponents.default)(_articleContent.List)`
|
|
27
27
|
color: #575757;
|
|
28
28
|
|
|
29
|
-
margin-bottom: 0px;
|
|
29
|
+
margin-bottom: 0px !important;
|
|
30
30
|
|
|
31
31
|
${_mediaQuery.mediaQuery.smallOnly} {
|
|
32
32
|
padding-left: 0px;
|
|
33
33
|
padding-right: 0px;
|
|
34
|
-
margin-bottom: 0px;
|
|
34
|
+
margin-bottom: 0px !important;
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
37
37
|
const ParagraphForAnnotation = (0, _styledComponents.default)(_articleContent.Paragraph)`
|
|
@@ -3,20 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.blockRenderMap = exports.Paragraph =
|
|
6
|
+
exports.blockRenderMap = exports.Paragraph = void 0;
|
|
7
7
|
var _draftJs = require("draft-js");
|
|
8
8
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
|
+
var _mediaQuery = require("../utils/media-query");
|
|
11
12
|
var _articleContent = require("./article-content");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
15
|
const Paragraph = exports.Paragraph = (0, _styledComponents.default)(_articleContent.Paragraph)`
|
|
15
|
-
|
|
16
|
-
max-width:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 582px;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
|
|
20
|
+
${_mediaQuery.mediaQuery.desktopAbove} {
|
|
21
|
+
max-width: 608px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
${_mediaQuery.mediaQuery.largeOnly} {
|
|
25
|
+
max-width: 648px;
|
|
26
|
+
}
|
|
20
27
|
`;
|
|
21
28
|
const _blockRenderMap = _immutable.default.Map({
|
|
22
29
|
atomic: {
|
|
@@ -25,19 +32,19 @@ const _blockRenderMap = _immutable.default.Map({
|
|
|
25
32
|
},
|
|
26
33
|
'header-two': {
|
|
27
34
|
element: 'h2',
|
|
28
|
-
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(Heading, {})
|
|
35
|
+
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(_articleContent.Heading, {})
|
|
29
36
|
},
|
|
30
37
|
'header-three': {
|
|
31
38
|
element: 'h3',
|
|
32
|
-
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(Heading, {})
|
|
39
|
+
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(_articleContent.Heading, {})
|
|
33
40
|
},
|
|
34
41
|
'header-four': {
|
|
35
42
|
element: 'h4',
|
|
36
|
-
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(Heading, {})
|
|
43
|
+
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(_articleContent.Heading, {})
|
|
37
44
|
},
|
|
38
45
|
'header-five': {
|
|
39
46
|
element: 'h5',
|
|
40
|
-
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(Heading, {})
|
|
47
|
+
wrapper: /*#__PURE__*/(0, _jsxRuntime.jsx)(_articleContent.Heading, {})
|
|
41
48
|
},
|
|
42
49
|
'ordered-list-item': {
|
|
43
50
|
element: 'li',
|
package/lib/utils/media-query.js
CHANGED
|
@@ -5,18 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mediaQuery = exports.breakpoints = void 0;
|
|
7
7
|
const breakpoints = exports.breakpoints = {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
mobile: 375,
|
|
9
|
+
tablet: 768,
|
|
10
10
|
desktop: 1024,
|
|
11
|
-
|
|
12
|
-
large: 1440
|
|
11
|
+
hd: 1440
|
|
13
12
|
};
|
|
14
13
|
const mediaQuery = exports.mediaQuery = {
|
|
15
|
-
smallOnly: `@media (max-width: ${breakpoints.
|
|
16
|
-
mediumAndDesktopOnly: `@media (min-width: ${breakpoints.
|
|
17
|
-
mediumOnly: `@media (min-width: ${breakpoints.
|
|
14
|
+
smallOnly: `@media (max-width: ${breakpoints.tablet - 1}px)`,
|
|
15
|
+
mediumAndDesktopOnly: `@media (min-width: ${breakpoints.tablet}px) and (max-width: ${breakpoints.hd - 1}px)`,
|
|
16
|
+
mediumOnly: `@media (min-width: ${breakpoints.tablet}px) and (max-width: ${breakpoints.desktop - 1}px)`,
|
|
18
17
|
desktopAbove: `@media (min-width: ${breakpoints.desktop}px)`,
|
|
19
|
-
mediumAbove: `@media (min-width: ${breakpoints.
|
|
20
|
-
largeBelow: `@media (max-width: ${breakpoints.
|
|
21
|
-
largeOnly: `@media (min-width: ${breakpoints.
|
|
18
|
+
mediumAbove: `@media (min-width: ${breakpoints.tablet}px)`,
|
|
19
|
+
largeBelow: `@media (max-width: ${breakpoints.hd - 1}px)`,
|
|
20
|
+
largeOnly: `@media (min-width: ${breakpoints.hd}px)`
|
|
22
21
|
};
|