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.es.js
CHANGED
|
@@ -1180,8 +1180,13 @@ const NextImageRenderer = ({
|
|
|
1180
1180
|
isMobile
|
|
1181
1181
|
} = useContext(PageContext);
|
|
1182
1182
|
|
|
1183
|
+
// return empty div if src is empty string or empty object or null
|
|
1184
|
+
if (!src || typeof src === 'object' && Object.keys(src).length === 0) {
|
|
1185
|
+
return /*#__PURE__*/React.createElement("div", null);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1183
1188
|
// checkif src url is encoded or not, if not encode it
|
|
1184
|
-
if (src
|
|
1189
|
+
if (src.includes(' ')) {
|
|
1185
1190
|
src = encodeURI(src);
|
|
1186
1191
|
}
|
|
1187
1192
|
try {
|
|
@@ -2208,7 +2213,7 @@ const allColors = {
|
|
|
2208
2213
|
black: '#000000',
|
|
2209
2214
|
lightblack: '#333333',
|
|
2210
2215
|
gray: '#999999',
|
|
2211
|
-
bannerRed:
|
|
2216
|
+
bannerRed: '#EB5757',
|
|
2212
2217
|
// Blue gradient
|
|
2213
2218
|
|
|
2214
2219
|
blue: '#1676F3',
|
|
@@ -8170,7 +8175,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
8170
8175
|
padding: '10px 10px 23px 40px',
|
|
8171
8176
|
wordWrap: 'break-word',
|
|
8172
8177
|
position: 'relative',
|
|
8173
|
-
fontSize: '
|
|
8178
|
+
fontSize: '14px',
|
|
8174
8179
|
transform: 'rotate(180deg)',
|
|
8175
8180
|
clipPath: 'polygon(0 0, 100% 0, 100% calc(100% - 10px), 0 calc(100% - 10px), 15px calc(50% - 10px/2))'
|
|
8176
8181
|
// marginBottom: '16px'
|
|
@@ -8206,7 +8211,7 @@ const useCoursePromotionPage = createUseStyles(theme => {
|
|
|
8206
8211
|
color: theme?.colors?.font1,
|
|
8207
8212
|
'& div': {
|
|
8208
8213
|
fontSize: theme.typography.fontSize.body,
|
|
8209
|
-
fontWeight: theme.typography.fontWeight.
|
|
8214
|
+
fontWeight: theme.typography.fontWeight.medium,
|
|
8210
8215
|
marginLeft: '10px'
|
|
8211
8216
|
}
|
|
8212
8217
|
},
|