@twreporter/react-components 9.0.2 → 9.1.0-rc.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.
- package/CHANGELOG.md +22 -0
- package/lib/badge/badge.stories.js +3 -9
- package/lib/badge/index.js +8 -24
- package/lib/bookmark-list/bookmark.js +20 -69
- package/lib/bookmark-list/bookmarks.js +10 -40
- package/lib/bookmark-list/customized-link.js +4 -14
- package/lib/bookmark-list/image-wrapper.js +9 -36
- package/lib/bookmark-list/index.js +36 -91
- package/lib/bookmark-list/redirect-to-sign-in.js +1 -10
- package/lib/bookmark-list/stories/bookmark.stories.js +3 -9
- package/lib/bookmark-widget/index.js +91 -220
- package/lib/button/components/iconButton.js +15 -34
- package/lib/button/components/iconWithTextButton.js +16 -31
- package/lib/button/components/link.js +27 -45
- package/lib/button/components/menuButton.js +18 -38
- package/lib/button/components/pillButton.js +31 -60
- package/lib/button/components/textButton.js +29 -61
- package/lib/button/components/toggleButton.js +11 -31
- package/lib/button/enums/index.js +4 -7
- package/lib/button/index.js +5 -18
- package/lib/button/stories/iconButton.stories.js +4 -15
- package/lib/button/stories/iconWithTextButton.stories.js +4 -13
- package/lib/button/stories/link.stories.js +9 -27
- package/lib/button/stories/menuButton.stories.js +3 -10
- package/lib/button/stories/pillButton.stories.js +4 -15
- package/lib/button/stories/textButton.stories.js +4 -15
- package/lib/button/stories/toggleButton.stories.js +3 -8
- package/lib/button/utils/size.js +3 -8
- package/lib/button/utils/theme.js +11 -102
- package/lib/card/components/article-card.js +31 -59
- package/lib/card/components/dialog.js +7 -22
- package/lib/card/components/short-story.js +24 -44
- package/lib/card/index.js +2 -8
- package/lib/card/stories/articleCard.stories.js +3 -14
- package/lib/card/stories/dialog.stories.js +3 -11
- package/lib/card/stories/shortStory.stories.js +3 -16
- package/lib/checkbox/checkbox.stories.js +3 -8
- package/lib/checkbox/index.js +10 -31
- package/lib/color.stories.js +9 -34
- package/lib/confirmation/index.js +7 -29
- package/lib/customized-link.js +5 -18
- package/lib/divider.js +3 -19
- package/lib/divider.stories.js +5 -18
- package/lib/donation-link.js +2 -14
- package/lib/empty-state/enums/index.js +2 -3
- package/lib/empty-state/index.js +20 -41
- package/lib/empty-state/stories/empty-guide.stories.js +3 -11
- package/lib/error/index.js +3 -8
- package/lib/error/message.js +3 -44
- package/lib/footer/constants/links.js +10 -16
- package/lib/footer/footer.stories.js +3 -10
- package/lib/footer/index.js +5 -40
- package/lib/footer/link.js +15 -46
- package/lib/footer/logo.js +12 -32
- package/lib/hook/index.js +3 -18
- package/lib/hook/use-bookmark.js +21 -47
- package/lib/hook/use-font-face-observer.js +9 -24
- package/lib/hook/use-outside-click.js +4 -9
- package/lib/icon/enum/index.js +5 -9
- package/lib/icon/index.js +49 -105
- package/lib/icon/stories/arrow.stories.js +7 -16
- package/lib/icon/stories/article.stories.js +2 -7
- package/lib/icon/stories/bookmark.stories.js +6 -14
- package/lib/icon/stories/changeIconColor.stories.js +2 -12
- package/lib/icon/stories/clock.stories.js +2 -7
- package/lib/icon/stories/copy.stories.js +2 -7
- package/lib/icon/stories/cross.stories.js +2 -7
- package/lib/icon/stories/hamburger.stories.js +2 -7
- package/lib/icon/stories/home.stories.js +2 -7
- package/lib/icon/stories/letter.stories.js +2 -7
- package/lib/icon/stories/loading.stories.js +2 -7
- package/lib/icon/stories/member.stories.js +2 -7
- package/lib/icon/stories/printer.stories.js +2 -7
- package/lib/icon/stories/search.stories.js +2 -7
- package/lib/icon/stories/share.stories.js +2 -7
- package/lib/icon/stories/socialMedia.stories.js +2 -8
- package/lib/icon/stories/text.stories.js +2 -7
- package/lib/icon/stories/topic.stories.js +2 -7
- package/lib/image-with-fallback.js +22 -52
- package/lib/input/components/search-bar.js +40 -85
- package/lib/input/components/text-field.js +20 -40
- package/lib/input/enums/index.js +6 -8
- package/lib/input/index.js +2 -7
- package/lib/input/stories/search-bar.stories.js +3 -16
- package/lib/input/stories/text-field.stories.js +3 -14
- package/lib/input/utils/theme.js +2 -9
- package/lib/is-fetching-wrapper.js +16 -48
- package/lib/junior-link.js +6 -29
- package/lib/link-with-tracker.js +14 -47
- package/lib/listing-page/components/card-list.js +20 -51
- package/lib/listing-page/components/image.js +15 -46
- package/lib/listing-page/components/list-item.js +18 -65
- package/lib/listing-page/components/list.js +17 -61
- package/lib/listing-page/components/page-content.js +2 -12
- package/lib/listing-page/components/topics/index.js +26 -74
- package/lib/listing-page/components/topics/post-item.js +14 -47
- package/lib/listing-page/components/topics/posts.js +1 -10
- package/lib/listing-page/components/topics/section.js +3 -25
- package/lib/listing-page/components/topics/topic-item.js +17 -56
- package/lib/listing-page/constants/mockup-spec.js +2 -3
- package/lib/listing-page/constants/predefined-css.js +2 -10
- package/lib/listing-page/constants/prop-types.js +2 -7
- package/lib/listing-page/constants/topics.js +2 -3
- package/lib/listing-page/index.js +2 -8
- package/lib/listing-page/stories/cardList.stories.js +3 -10
- package/lib/logo/components/logo-footer.js +6 -21
- package/lib/logo/components/logo-header.js +7 -23
- package/lib/logo/components/logo-loading-fallback.js +4 -13
- package/lib/logo/components/logo-symbol.js +7 -23
- package/lib/logo/index.js +2 -9
- package/lib/logo/stories/logoFooter.stories.js +2 -8
- package/lib/logo/stories/logoHeader.stories.js +3 -9
- package/lib/logo/stories/logoLoadingFallback.stories.js +2 -8
- package/lib/logo/stories/logoSymbol.stories.js +3 -9
- package/lib/logo/utils/path.js +2 -9
- package/lib/material-icon.js +9 -17
- package/lib/mobile-member-role-card/index.js +22 -49
- package/lib/mobile-member-role-card/stories/member-role-card.stories.js +3 -12
- package/lib/mobile-pop-up-modal.js +10 -44
- package/lib/more.js +10 -37
- package/lib/pagination/index.js +17 -83
- package/lib/podcast-link.js +6 -29
- package/lib/rwd.js +6 -26
- package/lib/shared-enum.js +2 -3
- package/lib/side-bar/index.js +16 -59
- package/lib/simple-header/index.js +2 -12
- package/lib/simple-header/simpleHeader.stories.js +3 -8
- package/lib/snack-bar/components/snack-bar.js +9 -20
- package/lib/snack-bar/hooks/use-snack-bar.js +12 -25
- package/lib/snack-bar/index.js +2 -7
- package/lib/snack-bar/stories/snackBar.stories.js +12 -29
- package/lib/snack-bar/utils/theme.js +3 -9
- package/lib/storybook/constants/index.js +3 -11
- package/lib/storybook/utils/get-enum-arg.js +2 -5
- package/lib/table-of-contents/index.js +62 -128
- package/lib/text/constants/headline-type.js +5 -8
- package/lib/text/enums/index.js +3 -5
- package/lib/text/headline.js +14 -41
- package/lib/text/paragraph.js +13 -34
- package/lib/text/stories/headline.stories.js +8 -21
- package/lib/text/stories/paragraph.stories.js +6 -17
- package/lib/text/utils/webfonts.js +9 -22
- package/lib/title-bar/components/tab.js +27 -69
- package/lib/title-bar/components/title1.js +6 -17
- package/lib/title-bar/components/title2.js +7 -23
- package/lib/title-bar/index.js +2 -8
- package/lib/title-bar/stories/tab.stories.js +5 -12
- package/lib/title-bar/stories/title1.stories.js +5 -12
- package/lib/title-bar/stories/title2.stories.js +3 -11
- package/lib/utils/link-with-params.js +0 -5
- package/package.json +4 -4
- package/lib/hook/use-store.js +0 -46
package/lib/more.js
CHANGED
|
@@ -1,73 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
|
|
21
|
-
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
22
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
26
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
17
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
18
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
20
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
36
21
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
24
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
44
27
|
var Container = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
45
28
|
displayName: "more__Container",
|
|
46
29
|
componentId: "sc-1sv8d16-0"
|
|
47
30
|
})(["cursor:pointer;width:100%;height:105px;background-color:black;text-align:center;&:hover,&:focus{polyline{stroke-width:3;}}&active{polyline{stroke-width:6;transition:all 100ms ease-in-out;}}polyline{transition:all 250ms ease-in-out;}@media only screen and (max-width:799px){height:76px;padding-top:10px;& > span{line-height:30px;font-size:16px;}}"]);
|
|
48
|
-
|
|
49
31
|
var Label = /*#__PURE__*/_styledComponents["default"].span.withConfig({
|
|
50
32
|
displayName: "more__Label",
|
|
51
33
|
componentId: "sc-1sv8d16-1"
|
|
52
34
|
})(["color:white;line-height:70px;font-size:18px;font-weight:700;"]);
|
|
53
|
-
|
|
54
|
-
var More = /*#__PURE__*/function (_Component) {
|
|
35
|
+
var More = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
55
36
|
_inherits(More, _Component);
|
|
56
|
-
|
|
57
37
|
var _super = _createSuper(More);
|
|
58
|
-
|
|
59
38
|
function More() {
|
|
60
39
|
_classCallCheck(this, More);
|
|
61
|
-
|
|
62
40
|
return _super.apply(this, arguments);
|
|
63
41
|
}
|
|
64
|
-
|
|
65
42
|
_createClass(More, [{
|
|
66
43
|
key: "render",
|
|
67
44
|
value: function render() {
|
|
68
45
|
var _this$props = this.props,
|
|
69
|
-
|
|
70
|
-
|
|
46
|
+
loadMore = _this$props.loadMore,
|
|
47
|
+
children = _this$props.children;
|
|
71
48
|
var points = '0,0 25,10 50,0';
|
|
72
49
|
var width = 50;
|
|
73
50
|
var height = 11;
|
|
@@ -86,12 +63,8 @@ var More = /*#__PURE__*/function (_Component) {
|
|
|
86
63
|
}))));
|
|
87
64
|
}
|
|
88
65
|
}]);
|
|
89
|
-
|
|
90
66
|
return More;
|
|
91
67
|
}(_react.Component);
|
|
92
|
-
|
|
93
|
-
exports["default"] = More;
|
|
94
|
-
|
|
95
68
|
_defineProperty(More, "propTypes", {
|
|
96
69
|
children: _propTypes["default"].node,
|
|
97
70
|
loadMore: _propTypes["default"].func.isRequired
|
package/lib/pagination/index.js
CHANGED
|
@@ -1,58 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
11
|
-
|
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
|
-
|
|
18
12
|
var _predefinedCss = require("@twreporter/core/lib/constants/predefined-css");
|
|
19
|
-
|
|
20
13
|
var _css = require("@twreporter/core/lib/utils/css");
|
|
21
|
-
|
|
22
14
|
var _color = require("@twreporter/core/lib/constants/color");
|
|
23
|
-
|
|
24
15
|
var _rwd = require("@twreporter/react-components/lib/rwd");
|
|
25
|
-
|
|
26
16
|
var _concat = _interopRequireDefault(require("lodash/concat"));
|
|
27
|
-
|
|
28
17
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
29
|
-
|
|
30
18
|
var _templateObject, _templateObject2, _templateObject3;
|
|
31
|
-
|
|
32
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
34
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
|
-
|
|
36
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
37
|
-
|
|
21
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
38
22
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
39
|
-
|
|
23
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
24
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40
25
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
41
|
-
|
|
42
26
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
43
|
-
|
|
44
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
45
|
-
|
|
46
28
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
47
|
-
|
|
48
29
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
49
|
-
|
|
50
30
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
|
-
|
|
52
31
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
|
-
|
|
54
32
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
55
|
-
|
|
56
33
|
// assets
|
|
57
34
|
var PageDownIcon = function PageDownIcon(props) {
|
|
58
35
|
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("title", null, "pagedown"), /*#__PURE__*/_react["default"].createElement("path", {
|
|
@@ -63,14 +40,12 @@ var PageDownIcon = function PageDownIcon(props) {
|
|
|
63
40
|
fillRule: "evenodd"
|
|
64
41
|
}));
|
|
65
42
|
};
|
|
66
|
-
|
|
67
43
|
PageDownIcon.defaultProps = {
|
|
68
44
|
width: "9",
|
|
69
45
|
height: "11",
|
|
70
46
|
viewBox: "0 0 9 11",
|
|
71
47
|
xmlns: "http://www.w3.org/2000/svg"
|
|
72
48
|
};
|
|
73
|
-
|
|
74
49
|
var PageUpIcon = function PageUpIcon(props) {
|
|
75
50
|
return /*#__PURE__*/_react["default"].createElement("svg", props, /*#__PURE__*/_react["default"].createElement("title", null, "pageup"), /*#__PURE__*/_react["default"].createElement("path", {
|
|
76
51
|
stroke: "#3E3F3F",
|
|
@@ -80,14 +55,13 @@ var PageUpIcon = function PageUpIcon(props) {
|
|
|
80
55
|
fillRule: "evenodd"
|
|
81
56
|
}));
|
|
82
57
|
};
|
|
83
|
-
|
|
84
58
|
PageUpIcon.defaultProps = {
|
|
85
59
|
width: "9",
|
|
86
60
|
height: "11",
|
|
87
61
|
viewBox: "0 0 9 11",
|
|
88
62
|
xmlns: "http://www.w3.org/2000/svg"
|
|
89
63
|
}; // @twreporter
|
|
90
|
-
|
|
64
|
+
// lodash
|
|
91
65
|
var _ = {
|
|
92
66
|
concat: _concat["default"],
|
|
93
67
|
get: _get["default"]
|
|
@@ -104,22 +78,18 @@ var styles = {
|
|
|
104
78
|
mobile: [32, 'auto', 64, 'auto']
|
|
105
79
|
}
|
|
106
80
|
};
|
|
107
|
-
|
|
108
81
|
var PaginationContainer = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
109
82
|
displayName: "pagination__PaginationContainer",
|
|
110
83
|
componentId: "sc-17bqftr-0"
|
|
111
84
|
})(["margin:", ";text-align:center;height:", "px;", " ", ""], (0, _css.arrayToCssShorthand)(styles.containerMargin["default"]), styles.btnBoxSize.mobile, _mediaQuery["default"].tabletAndAbove(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n "])), styles.btnBoxSize.desktop), _mediaQuery["default"].mobileOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: ", ";\n "])), (0, _css.arrayToCssShorthand)(styles.containerMargin.mobile)));
|
|
112
|
-
|
|
113
85
|
var Boxes = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
114
86
|
displayName: "pagination__Boxes",
|
|
115
87
|
componentId: "sc-17bqftr-1"
|
|
116
88
|
})(["display:flex;justify-content:center;"]);
|
|
117
|
-
|
|
118
89
|
var Box = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
119
90
|
displayName: "pagination__Box",
|
|
120
91
|
componentId: "sc-17bqftr-2"
|
|
121
92
|
})(["margin:0 5px 0 5px;width:", "px;height:", "px;box-sizing:border-box;user-select:none;display:inline-block;font-size:14px;cursor:pointer;color:", ";position:relative;>:first-child{", "}"], styles.btnBoxSize.desktop, styles.btnBoxSize.desktop, _color.colorSupportive.heavy, _predefinedCss.absoluteCentering);
|
|
122
|
-
|
|
123
93
|
var PageNumberBox = /*#__PURE__*/(0, _styledComponents["default"])(Box).withConfig({
|
|
124
94
|
displayName: "pagination__PageNumberBox",
|
|
125
95
|
componentId: "sc-17bqftr-3"
|
|
@@ -138,6 +108,7 @@ var PrevNextBtn = /*#__PURE__*/(0, _styledComponents["default"])(Box).withConfig
|
|
|
138
108
|
})(["visibility:", ";padding:", ";cursor:pointer;path{stroke:", ";}"], function (props) {
|
|
139
109
|
return props.$isHidden ? 'hidden' : 'visible';
|
|
140
110
|
}, (0, _css.arrayToCssShorthand)(styles.prevNextBtnPadding), _color.colorSupportive.heavy);
|
|
111
|
+
|
|
141
112
|
/*
|
|
142
113
|
Pages Array:
|
|
143
114
|
|
|
@@ -161,24 +132,18 @@ Pages Array:
|
|
|
161
132
|
let margin = x, center = y
|
|
162
133
|
pages array length = 2x + y + 2
|
|
163
134
|
*/
|
|
164
|
-
|
|
165
135
|
var Pagination = /*#__PURE__*/function (_React$PureComponent) {
|
|
166
136
|
_inherits(Pagination, _React$PureComponent);
|
|
167
|
-
|
|
168
137
|
var _super = _createSuper(Pagination);
|
|
169
|
-
|
|
170
138
|
function Pagination(props) {
|
|
171
139
|
var _this;
|
|
172
|
-
|
|
173
140
|
_classCallCheck(this, Pagination);
|
|
174
|
-
|
|
175
141
|
_this = _super.call(this, props);
|
|
176
142
|
_this._buildPagesArray = _this._buildPagesArray.bind(_assertThisInitialized(_this));
|
|
177
143
|
_this._buildPageBox = _this._buildPageBox.bind(_assertThisInitialized(_this));
|
|
178
144
|
_this._buildCenterJSX = _this._buildCenterJSX.bind(_assertThisInitialized(_this));
|
|
179
145
|
return _this;
|
|
180
146
|
}
|
|
181
|
-
|
|
182
147
|
_createClass(Pagination, [{
|
|
183
148
|
key: "_buildPageBox",
|
|
184
149
|
value: function _buildPageBox(index, currentPage) {
|
|
@@ -193,80 +158,58 @@ var Pagination = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
193
158
|
value: function _buildCenterJSX(startAt, length, currentPage) {
|
|
194
159
|
var centerJSX = [];
|
|
195
160
|
var endAt = startAt + length - 1;
|
|
196
|
-
|
|
197
161
|
for (var i = startAt; i <= endAt; i += 1) {
|
|
198
162
|
centerJSX.push(this._buildPageBox(i, currentPage));
|
|
199
163
|
}
|
|
200
|
-
|
|
201
164
|
return centerJSX;
|
|
202
165
|
}
|
|
203
166
|
}, {
|
|
204
167
|
key: "_buildPagesArray",
|
|
205
168
|
value: function _buildPagesArray(currentPage, totalPages) {
|
|
206
169
|
var _this$props = this.props,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
170
|
+
nOfMarginPages = _this$props.nOfMarginPages,
|
|
171
|
+
nOfCenterPages = _this$props.nOfCenterPages,
|
|
172
|
+
ellipsis = _this$props.ellipsis;
|
|
210
173
|
var pagesArrayMaxLength = nOfCenterPages + (nOfMarginPages + 1) * 2;
|
|
211
174
|
/* Case 1: display all pages (no ellipsis) */
|
|
212
|
-
|
|
213
175
|
if (totalPages <= pagesArrayMaxLength) {
|
|
214
176
|
var pagesArray = [];
|
|
215
|
-
|
|
216
177
|
for (var page = 1; page <= totalPages; page += 1) {
|
|
217
178
|
pagesArray.push(this._buildPageBox(page, currentPage));
|
|
218
179
|
}
|
|
219
|
-
|
|
220
180
|
return pagesArray;
|
|
221
181
|
}
|
|
222
182
|
/* Case 2: display ellipsis */
|
|
223
|
-
|
|
224
|
-
|
|
225
183
|
var isCurrentPageInLeftRange = currentPage <= nOfMarginPages + nOfCenterPages;
|
|
226
184
|
var isCurrentPageInRightRange = currentPage > totalPages - nOfMarginPages - nOfCenterPages;
|
|
227
|
-
|
|
228
185
|
var leftEllipsisJSX = /*#__PURE__*/_react["default"].createElement(EllipsisBox, {
|
|
229
186
|
key: "left-ellipsis"
|
|
230
187
|
}, ellipsis);
|
|
231
|
-
|
|
232
188
|
var rightEllipsisJSX = /*#__PURE__*/_react["default"].createElement(EllipsisBox, {
|
|
233
189
|
key: "right-ellipsis"
|
|
234
190
|
}, ellipsis);
|
|
235
191
|
/* build margin page boxes */
|
|
236
|
-
|
|
237
|
-
|
|
238
192
|
var leftMarginJSX = [];
|
|
239
|
-
|
|
240
193
|
for (var _page = 1; _page <= nOfMarginPages; _page += 1) {
|
|
241
194
|
leftMarginJSX.push(this._buildPageBox(_page, currentPage));
|
|
242
195
|
}
|
|
243
|
-
|
|
244
196
|
var rightMarginJSX = [];
|
|
245
|
-
|
|
246
197
|
for (var i = 1; i <= nOfMarginPages; i += 1) {
|
|
247
198
|
var _page2 = totalPages - nOfMarginPages + i;
|
|
248
|
-
|
|
249
199
|
rightMarginJSX.push(this._buildPageBox(_page2, currentPage));
|
|
250
200
|
}
|
|
251
|
-
|
|
252
201
|
if (isCurrentPageInLeftRange) {
|
|
253
202
|
/* Case 2-1: only show right ellipsis */
|
|
254
203
|
var _startAt = nOfMarginPages + 1;
|
|
255
|
-
|
|
256
204
|
var _length = nOfCenterPages + 1;
|
|
257
|
-
|
|
258
205
|
return _.concat(leftMarginJSX, this._buildCenterJSX(_startAt, _length, currentPage), rightEllipsisJSX, rightMarginJSX);
|
|
259
206
|
} else if (isCurrentPageInRightRange) {
|
|
260
207
|
/* Case 2-2: only show left ellipsis */
|
|
261
208
|
var _startAt2 = totalPages - nOfMarginPages - nOfCenterPages;
|
|
262
|
-
|
|
263
209
|
var _length2 = nOfCenterPages + 1;
|
|
264
|
-
|
|
265
210
|
return _.concat(leftMarginJSX, leftEllipsisJSX, this._buildCenterJSX(_startAt2, _length2, currentPage), rightMarginJSX);
|
|
266
211
|
}
|
|
267
212
|
/* Case 2-3: show both ellipses */
|
|
268
|
-
|
|
269
|
-
|
|
270
213
|
var startAt = currentPage - Math.floor(nOfCenterPages / 2) + 1;
|
|
271
214
|
var length = nOfCenterPages;
|
|
272
215
|
return _.concat(leftMarginJSX, leftEllipsisJSX, this._buildCenterJSX(startAt, length, currentPage), rightEllipsisJSX, rightMarginJSX);
|
|
@@ -275,13 +218,11 @@ var Pagination = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
275
218
|
key: "_buildMobilePagesArray",
|
|
276
219
|
value: function _buildMobilePagesArray(currentPage, totalPages) {
|
|
277
220
|
var pagesArrayMaxLength = 5;
|
|
278
|
-
|
|
279
221
|
if (totalPages <= pagesArrayMaxLength) {
|
|
280
222
|
return this._buildCenterJSX(1, totalPages, currentPage);
|
|
281
223
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
224
|
+
var startPage;
|
|
225
|
+
// Check if currentPage is within the first two pages or the last two pages
|
|
285
226
|
if (currentPage <= 2) {
|
|
286
227
|
// If in the first two pages, start from page 1
|
|
287
228
|
startPage = 1;
|
|
@@ -292,26 +233,22 @@ var Pagination = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
292
233
|
// Otherwise, center currentPage by adjusting startPage accordingly
|
|
293
234
|
startPage = currentPage - 2;
|
|
294
235
|
}
|
|
295
|
-
|
|
296
236
|
return this._buildCenterJSX(startPage, pagesArrayMaxLength, currentPage);
|
|
297
237
|
}
|
|
298
238
|
}, {
|
|
299
239
|
key: "render",
|
|
300
240
|
value: function render() {
|
|
301
241
|
var _this$props2 = this.props,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
242
|
+
currentPage = _this$props2.currentPage,
|
|
243
|
+
totalPages = _this$props2.totalPages,
|
|
244
|
+
handleClickPrev = _this$props2.handleClickPrev,
|
|
245
|
+
handleClickNext = _this$props2.handleClickNext,
|
|
246
|
+
className = _this$props2.className;
|
|
307
247
|
if (!totalPages || !currentPage) return /*#__PURE__*/_react["default"].createElement(PaginationContainer, {
|
|
308
248
|
className: className
|
|
309
249
|
}, /*#__PURE__*/_react["default"].createElement(Boxes, null));
|
|
310
|
-
|
|
311
250
|
var pagesArrayJSX = this._buildPagesArray(currentPage, totalPages);
|
|
312
|
-
|
|
313
251
|
var mobilePagesArrayJSX = this._buildMobilePagesArray(currentPage, totalPages);
|
|
314
|
-
|
|
315
252
|
var belowFirstPage = currentPage <= 1;
|
|
316
253
|
var aboveFinalPage = currentPage >= totalPages;
|
|
317
254
|
return /*#__PURE__*/_react["default"].createElement(PaginationContainer, {
|
|
@@ -327,10 +264,8 @@ var Pagination = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
327
264
|
}, /*#__PURE__*/_react["default"].createElement(PageDownIcon, null))));
|
|
328
265
|
}
|
|
329
266
|
}]);
|
|
330
|
-
|
|
331
267
|
return Pagination;
|
|
332
268
|
}(_react["default"].PureComponent);
|
|
333
|
-
|
|
334
269
|
Pagination.propTypes = {
|
|
335
270
|
currentPage: _propTypes["default"].number.isRequired,
|
|
336
271
|
ellipsis: _propTypes["default"].string.isRequired,
|
|
@@ -350,5 +285,4 @@ Pagination.defaultProps = {
|
|
|
350
285
|
nOfMarginPages: 1,
|
|
351
286
|
className: ''
|
|
352
287
|
};
|
|
353
|
-
var _default = Pagination;
|
|
354
|
-
exports["default"] = _default;
|
|
288
|
+
var _default = exports["default"] = Pagination;
|
package/lib/podcast-link.js
CHANGED
|
@@ -1,54 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
-
|
|
12
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
|
|
22
14
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
|
-
|
|
24
15
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
-
|
|
26
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
|
-
|
|
28
17
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
29
|
-
|
|
30
18
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
-
|
|
32
19
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33
|
-
|
|
34
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
38
24
|
// TODO(taylrj): update to the topic landing page link
|
|
39
25
|
var podcastTopicLandingPageLink = 'https://www.twreporter.org/a/podcast-list';
|
|
40
|
-
|
|
41
26
|
var PodcastLandingPageLink = /*#__PURE__*/function (_React$PureComponent) {
|
|
42
27
|
_inherits(PodcastLandingPageLink, _React$PureComponent);
|
|
43
|
-
|
|
44
28
|
var _super = _createSuper(PodcastLandingPageLink);
|
|
45
|
-
|
|
46
29
|
function PodcastLandingPageLink() {
|
|
47
30
|
_classCallCheck(this, PodcastLandingPageLink);
|
|
48
|
-
|
|
49
31
|
return _super.apply(this, arguments);
|
|
50
32
|
}
|
|
51
|
-
|
|
52
33
|
_createClass(PodcastLandingPageLink, [{
|
|
53
34
|
key: "render",
|
|
54
35
|
value: function render() {
|
|
@@ -61,13 +42,9 @@ var PodcastLandingPageLink = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
61
42
|
}, children);
|
|
62
43
|
}
|
|
63
44
|
}]);
|
|
64
|
-
|
|
65
45
|
return PodcastLandingPageLink;
|
|
66
46
|
}(_react["default"].PureComponent);
|
|
67
|
-
|
|
68
47
|
_defineProperty(PodcastLandingPageLink, "propTypes", {
|
|
69
48
|
children: _propTypes["default"].node
|
|
70
49
|
});
|
|
71
|
-
|
|
72
|
-
var _default = PodcastLandingPageLink;
|
|
73
|
-
exports["default"] = _default;
|
|
50
|
+
var _default = exports["default"] = PodcastLandingPageLink;
|
package/lib/rwd.js
CHANGED
|
@@ -4,48 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TabletAndBelow = exports.TabletAndAbove = exports.MobileOnly = exports.DesktopOnly = exports.DesktopAndAbove = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
8
|
var _mediaQuery = _interopRequireDefault(require("@twreporter/core/lib/utils/media-query"));
|
|
11
|
-
|
|
12
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
11
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
-
|
|
18
|
-
var DesktopOnly = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
12
|
+
var DesktopOnly = exports.DesktopOnly = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
19
13
|
displayName: "rwd__DesktopOnly",
|
|
20
14
|
componentId: "gntj1s-0"
|
|
21
15
|
})(["display:none;", ""], _mediaQuery["default"].desktopOnly(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
22
|
-
|
|
23
|
-
exports.DesktopOnly = DesktopOnly;
|
|
24
|
-
|
|
25
|
-
var MobileOnly = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
16
|
+
var MobileOnly = exports.MobileOnly = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
26
17
|
displayName: "rwd__MobileOnly",
|
|
27
18
|
componentId: "gntj1s-1"
|
|
28
19
|
})(["display:none;", ""], _mediaQuery["default"].mobileOnly(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
29
|
-
|
|
30
|
-
exports.MobileOnly = MobileOnly;
|
|
31
|
-
|
|
32
|
-
var DesktopAndAbove = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
20
|
+
var DesktopAndAbove = exports.DesktopAndAbove = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
33
21
|
displayName: "rwd__DesktopAndAbove",
|
|
34
22
|
componentId: "gntj1s-2"
|
|
35
23
|
})(["display:none;", ""], _mediaQuery["default"].desktopAndAbove(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
36
|
-
|
|
37
|
-
exports.DesktopAndAbove = DesktopAndAbove;
|
|
38
|
-
|
|
39
|
-
var TabletAndBelow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
24
|
+
var TabletAndBelow = exports.TabletAndBelow = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
40
25
|
displayName: "rwd__TabletAndBelow",
|
|
41
26
|
componentId: "gntj1s-3"
|
|
42
27
|
})(["display:none;", ""], _mediaQuery["default"].tabletAndBelow(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
43
|
-
|
|
44
|
-
exports.TabletAndBelow = TabletAndBelow;
|
|
45
|
-
|
|
46
|
-
var TabletAndAbove = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
28
|
+
var TabletAndAbove = exports.TabletAndAbove = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
|
47
29
|
displayName: "rwd__TabletAndAbove",
|
|
48
30
|
componentId: "gntj1s-4"
|
|
49
|
-
})(["display:none;", ""], _mediaQuery["default"].tabletAndAbove(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
50
|
-
|
|
51
|
-
exports.TabletAndAbove = TabletAndAbove;
|
|
31
|
+
})(["display:none;", ""], _mediaQuery["default"].tabletAndAbove(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n "]))));
|