From 4aa198eefde54bceabb4f1601c2815ce0b158bb6 Mon Sep 17 00:00:00 2001 From: Giovanni Bombassaro Date: Thu, 3 Dec 2020 22:50:29 -0300 Subject: [PATCH] Build --- icons.js | 4 ++++ icons/ArrowCircleDownBlack18Dp.js | 10 ++++++++-- icons/IcArrowBack.js | 10 ++++++++-- icons/IcArrowForward.js | 10 ++++++++-- icons/IcArrowMenu.js | 4 ++-- index.js | 3 +++ templates.js | 32 ++++++++++++++++++++++++++++--- 7 files changed, 62 insertions(+), 11 deletions(-) diff --git a/icons.js b/icons.js index e1f9eb755..8f5643f1b 100644 --- a/icons.js +++ b/icons.js @@ -24,6 +24,7 @@ function _extends() { function SvgArrowCircleDownBlack18Dp(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: 18, height: 18 @@ -37,6 +38,7 @@ function SvgArrowCircleDownBlack18Dp(props) { function SvgIcArrowBack(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 32, viewBox: "0 0 24 24", width: 32 @@ -50,6 +52,7 @@ function SvgIcArrowBack(props) { function SvgIcArrowForward(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 32, viewBox: "0 0 24 24", width: 32 @@ -63,6 +66,7 @@ function SvgIcArrowForward(props) { function SvgIcArrowMenu(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 24, width: 24 }, props), /*#__PURE__*/React.createElement("path", { diff --git a/icons/ArrowCircleDownBlack18Dp.js b/icons/ArrowCircleDownBlack18Dp.js index a325cf797..c3460e87f 100644 --- a/icons/ArrowCircleDownBlack18Dp.js +++ b/icons/ArrowCircleDownBlack18Dp.js @@ -1,8 +1,14 @@ -import * as React from "react"; +import * as React from 'react'; function SvgArrowCircleDownBlack18Dp(props) { return ( - + diff --git a/icons/IcArrowBack.js b/icons/IcArrowBack.js index 0ee6cbb22..b215c653c 100644 --- a/icons/IcArrowBack.js +++ b/icons/IcArrowBack.js @@ -1,8 +1,14 @@ -import * as React from "react"; +import * as React from 'react'; function SvgIcArrowBack(props) { return ( - + diff --git a/icons/IcArrowForward.js b/icons/IcArrowForward.js index 6507cd9e4..0fcf1818d 100644 --- a/icons/IcArrowForward.js +++ b/icons/IcArrowForward.js @@ -1,8 +1,14 @@ -import * as React from "react"; +import * as React from 'react'; function SvgIcArrowForward(props) { return ( - + diff --git a/icons/IcArrowMenu.js b/icons/IcArrowMenu.js index 63b260ad8..e3e465de4 100644 --- a/icons/IcArrowMenu.js +++ b/icons/IcArrowMenu.js @@ -1,8 +1,8 @@ -import * as React from "react"; +import * as React from 'react'; function SvgIcArrowMenu(props) { return ( - + diff --git a/index.js b/index.js index 0473c259b..490a6294a 100644 --- a/index.js +++ b/index.js @@ -1030,6 +1030,7 @@ Image$1.defaultProps = { function SvgIcArrowBack(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 32, viewBox: "0 0 24 24", width: 32 @@ -1043,6 +1044,7 @@ function SvgIcArrowBack(props) { function SvgIcArrowForward(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 32, viewBox: "0 0 24 24", width: 32 @@ -1298,6 +1300,7 @@ SideMenu.defaultProps = { function SvgIcArrowMenu(props) { return /*#__PURE__*/React.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", height: 24, width: 24 }, props), /*#__PURE__*/React.createElement("path", { diff --git a/templates.js b/templates.js index 0335593a8..3b45a61c0 100644 --- a/templates.js +++ b/templates.js @@ -4710,6 +4710,32 @@ var Subjects = function Subjects(_ref) { var items_left = pqueue_left && pqueue_left.length > 0 ? pqueue_left : content['items-left']; var items_center = pqueue_center && pqueue_center.length > 0 ? pqueue_center : content['items-center']; var items_right = pqueue_right && pqueue_right.length > 0 ? pqueue_right : content['items-right']; + + var parseColor = function parseColor(color) { + switch (color) { + case 'yellow': + return 'editorial-1'; + + case 'blue': + return 'editorial-2'; + + case 'black': + return 'editorial-3'; + + case 'green': + return 'editorial-4'; + + case 'red': + return 'editorial-5'; + + case 'default': + return 'primary-1'; + + default: + return color; + } + }; + return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, title && title !== '' && /*#__PURE__*/React__default['default'].createElement(SectionTitle, { weight: "bold", gutter: 3, @@ -4719,7 +4745,7 @@ var Subjects = function Subjects(_ref) { }, /*#__PURE__*/React__default['default'].createElement(SectionTitle, { weight: "bold", gutter: 3, - color: leftColor + color: parseColor(leftColor) }, titleLeft), lodash.map(items_left, function (item, key) { return /*#__PURE__*/React__default['default'].createElement(Teaser, { content: item, @@ -4739,7 +4765,7 @@ var Subjects = function Subjects(_ref) { }, /*#__PURE__*/React__default['default'].createElement(SectionTitle, { weight: "bold", gutter: 3, - color: centerColor + color: parseColor(centerColor) }, titleCenter), lodash.map(items_center, function (item, key) { return /*#__PURE__*/React__default['default'].createElement(Teaser, { content: item, @@ -4759,7 +4785,7 @@ var Subjects = function Subjects(_ref) { }, /*#__PURE__*/React__default['default'].createElement(SectionTitle, { weight: "bold", gutter: 3, - color: rightColor + color: parseColor(rightColor) }, titleRight), lodash.map(items_right, function (item, key) { return /*#__PURE__*/React__default['default'].createElement(Teaser, { content: item,