@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.33",
2
+ "version": "0.1.35",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -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={styleContext}
46
+ styleContext={context}
39
47
  theme={theme || themeColor}
40
48
  onlyOn={block.only_on}
41
49
  hasSource={hasSource}