diy-template-components 1.1.10 → 2.0.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/build/index.es.js +9 -4
- package/build/index.es.js.map +1 -1
- package/build/index.js +9 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1196,8 +1196,13 @@ const NextImageRenderer = ({
|
|
|
1196
1196
|
isMobile
|
|
1197
1197
|
} = React.useContext(PageContext);
|
|
1198
1198
|
|
|
1199
|
+
// return empty div if src is empty string or empty object or null
|
|
1200
|
+
if (!src || typeof src === 'object' && Object.keys(src).length === 0) {
|
|
1201
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1199
1204
|
// checkif src url is encoded or not, if not encode it
|
|
1200
|
-
if (src
|
|
1205
|
+
if (src.includes(' ')) {
|
|
1201
1206
|
src = encodeURI(src);
|
|
1202
1207
|
}
|
|
1203
1208
|
try {
|
|
@@ -2224,7 +2229,7 @@ const allColors = {
|
|
|
2224
2229
|
black: '#000000',
|
|
2225
2230
|
lightblack: '#333333',
|
|
2226
2231
|
gray: '#999999',
|
|
2227
|
-
bannerRed:
|
|
2232
|
+
bannerRed: '#EB5757',
|
|
2228
2233
|
// Blue gradient
|
|
2229
2234
|
|
|
2230
2235
|
blue: '#1676F3',
|
|
@@ -8186,7 +8191,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
8186
8191
|
padding: '10px 10px 23px 40px',
|
|
8187
8192
|
wordWrap: 'break-word',
|
|
8188
8193
|
position: 'relative',
|
|
8189
|
-
fontSize: '
|
|
8194
|
+
fontSize: '14px',
|
|
8190
8195
|
transform: 'rotate(180deg)',
|
|
8191
8196
|
clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))'
|
|
8192
8197
|
// marginBottom: '16px'
|
|
@@ -8222,7 +8227,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
8222
8227
|
color: theme?.colors?.font1,
|
|
8223
8228
|
'& div': {
|
|
8224
8229
|
fontSize: theme.typography.fontSize.body,
|
|
8225
|
-
fontWeight: theme.typography.fontWeight.
|
|
8230
|
+
fontWeight: theme.typography.fontWeight.medium,
|
|
8226
8231
|
marginLeft: '10px'
|
|
8227
8232
|
}
|
|
8228
8233
|
},
|