@meduza/ui-kit-2 0.1.33 → 0.1.35
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/dist/ui-kit-2.cjs.development.js +9 -1
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +9 -1
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1901 -1897
- package/package.json +1 -1
- package/src/EmbedBlock/EmbedBlock.module.css +3 -1
- package/src/Meta/MetaContainer.tsx +9 -1
package/package.json
CHANGED
|
@@ -236,7 +236,9 @@
|
|
|
236
236
|
.isInCard.mobileFullwidth .object,
|
|
237
237
|
.isInSlide.mobileFullwidth .object,
|
|
238
238
|
.isInCard .figure,
|
|
239
|
-
.isInSlide .figure
|
|
239
|
+
.isInSlide .figure,
|
|
240
|
+
.isInCard .object,
|
|
241
|
+
.isInSlide .object {
|
|
240
242
|
margin-right: -11px;
|
|
241
243
|
margin-left: -11px;
|
|
242
244
|
|
|
@@ -31,11 +31,19 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
31
31
|
const isPodcast = styleContext && styleContext.indexOf('podcast') !== -1
|
|
32
32
|
const isSlides = styleContext && styleContext.indexOf('slide') !== -1
|
|
33
33
|
|
|
34
|
+
let context = []
|
|
35
|
+
|
|
36
|
+
if (styleContext && Array.isArray(styleContext)) {
|
|
37
|
+
context = styleContext.filter((item) => {
|
|
38
|
+
return item !== 'dark'
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
const hasSource = !!components.find((item) => item.type === 'source_name')
|
|
35
43
|
|
|
36
44
|
return (
|
|
37
45
|
<Meta
|
|
38
|
-
styleContext={
|
|
46
|
+
styleContext={context}
|
|
39
47
|
theme={theme || themeColor}
|
|
40
48
|
onlyOn={block.only_on}
|
|
41
49
|
hasSource={hasSource}
|