Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
gbombassaro committed Dec 21, 2020
1 parent 014505b commit a116a78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1390,10 +1390,10 @@ var Topbar = function Topbar(_ref) {
var leftContent = content.leftContent,
centerContent = content.centerContent,
rightContent = content.rightContent;
var color = theme.color;
var activeColor = theme.activeColor;
return /*#__PURE__*/React__default['default'].createElement(Block, {
align: "row center",
bg: color,
bg: activeColor,
fc: "white",
custom: "Topbar-Prensa-root",
w: "100p"
Expand All @@ -1415,12 +1415,12 @@ Topbar.propTypes = {
rightContent: PropTypes__default['default'].object
}),
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};
Topbar.defaultProps = {
theme: {
color: 'primary-1'
activeColor: 'primary-1'
}
};

Expand Down
44 changes: 22 additions & 22 deletions templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4240,7 +4240,7 @@ var Columnists = function Columnists(_ref) {
status = _ref.status,
theme = _ref.theme;
var title = content.title;
var color = theme.color;
var activeColor = theme.activeColor;
var propsTemplate = {
custom: 'templates-columnists',
mb: '6',
Expand All @@ -4252,7 +4252,7 @@ var Columnists = function Columnists(_ref) {
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, title && title !== '' && /*#__PURE__*/React__default['default'].createElement(SectionTitle, {
weight: "bold",
gutter: 3,
color: color
color: activeColor
}, title), /*#__PURE__*/React__default['default'].createElement(Block, propsTemplate, lodash.map(content['items'], function (item, key) {
return /*#__PURE__*/React__default['default'].createElement(Teaser, {
content: item,
Expand All @@ -4265,7 +4265,7 @@ var Columnists = function Columnists(_ref) {
titleWeight: "bold",
titleColor: "neutral-2",
dateColor: "neutral-4",
subjectColor: color
subjectColor: activeColor
});
})));
};
Expand All @@ -4280,7 +4280,7 @@ Columnists.propTypes = {
lazy: PropTypes__default['default'].func,
status: PropTypes__default['default'].object,
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};

Expand All @@ -4290,7 +4290,7 @@ var Featured = function Featured(_ref) {
lazy = _ref.lazy,
status = _ref.status,
theme = _ref.theme;
var color = theme.color;
var activeColor = theme.activeColor;
var items = content.items;

if (items.length === 1) {
Expand All @@ -4304,7 +4304,7 @@ var Featured = function Featured(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 4,
titleWeight: "bold"
}));
Expand All @@ -4329,7 +4329,7 @@ var Featured = function Featured(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 4,
titleColor: "neutral-2",
subtitleColor: "neutral-4",
Expand All @@ -4343,7 +4343,7 @@ var Featured = function Featured(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 3,
titleColor: "neutral-2",
subtitleColor: "neutral-4",
Expand All @@ -4355,7 +4355,7 @@ var Featured = function Featured(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 3,
titleColor: "neutral-2",
subtitleColor: "neutral-4",
Expand All @@ -4373,7 +4373,7 @@ Featured.propTypes = {
lazy: PropTypes__default['default'].func,
status: PropTypes__default['default'].object,
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};

Expand All @@ -4383,7 +4383,7 @@ var GridNews = function GridNews(_ref) {
lazy = _ref.lazy,
status = _ref.status,
theme = _ref.theme;
var color = theme.color;
var activeColor = theme.activeColor;
var items = content.items,
title = content.title;
var items_pqueue = content['items-pqueue'];
Expand Down Expand Up @@ -4421,7 +4421,7 @@ var GridNews = function GridNews(_ref) {
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, title && title !== '' && /*#__PURE__*/React__default['default'].createElement(SectionTitle, {
weight: "bold",
gutter: 3,
color: color
color: activeColor
}, title), /*#__PURE__*/React__default['default'].createElement(Block, propsTemplate, lodash.map(items_list, function (item, key) {
return /*#__PURE__*/React__default['default'].createElement(Teaser, {
key: key,
Expand All @@ -4431,7 +4431,7 @@ var GridNews = function GridNews(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: titleSize,
titleColor: "neutral-2",
subtitleColor: "neutral-4",
Expand All @@ -4451,7 +4451,7 @@ GridNews.propTypes = {
lazy: PropTypes__default['default'].func,
status: PropTypes__default['default'].object,
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};

Expand Down Expand Up @@ -4570,7 +4570,7 @@ var Latest = function Latest(_ref) {
Title = _ref.Title,
status = _ref.status,
theme = _ref.theme;
var color = theme.color;
var activeColor = theme.activeColor;
var propsContainer = {
custom: 'templates-latest-news',
align: 'col left',
Expand Down Expand Up @@ -4599,7 +4599,7 @@ var Latest = function Latest(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 3,
titleColor: "neutral-2",
dateColor: "neutral-4",
Expand All @@ -4608,14 +4608,14 @@ var Latest = function Latest(_ref) {
})), ReadMore && /*#__PURE__*/React__default['default'].createElement(ReadMore, null)), /*#__PURE__*/React__default['default'].createElement(Block, propsPageRight, /*#__PURE__*/React__default['default'].createElement(SectionTitle, {
weight: "bold",
gutter: 3,
color: color
color: activeColor
}, "MAIS LIDAS"), /*#__PURE__*/React__default['default'].createElement(MostRead, {
content: content['items-mostread'],
status: status,
titleSize: 2,
titleColor: "neutral-2",
titleWeight: "bold",
circleColor: color
circleColor: activeColor
})));
};

Expand All @@ -4630,7 +4630,7 @@ Latest.propTypes = {
loading: PropTypes__default['default'].bool
}),
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};

Expand All @@ -4641,7 +4641,7 @@ var Related = function Related(_ref) {
ReadMore = _ref.ReadMore,
status = _ref.status,
theme = _ref.theme;
var color = theme.color;
var activeColor = theme.activeColor;
var propsContainer = {
custom: 'templates-related-news',
align: 'col left',
Expand All @@ -4660,7 +4660,7 @@ var Related = function Related(_ref) {
lazy: lazy,
status: status,
subjectSize: 2,
subjectColor: color,
subjectColor: activeColor,
titleSize: 3,
titleColor: "neutral-2",
dateColor: "neutral-2",
Expand All @@ -4679,7 +4679,7 @@ Related.propTypes = {
loading: PropTypes__default['default'].bool
}),
theme: PropTypes__default['default'].shape({
color: PropTypes__default['default'].oneOf(colors)
activeColor: PropTypes__default['default'].oneOf(colors)
})
};

Expand Down

0 comments on commit a116a78

Please sign in to comment.