@meduza/ui-kit-2 0.8.603 → 0.8.604

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.
@@ -2338,7 +2338,11 @@
2338
2338
  .Meta-module_containerInDynamicBlock__YSh66 {
2339
2339
  position: absolute;
2340
2340
  bottom: 20px;
2341
- left: 54px;
2341
+ left: 57px;
2342
+ }
2343
+
2344
+ .Meta-module_containerInDynamicBlockAndMaterial__4v4A9 {
2345
+ left: 65px;
2342
2346
  }
2343
2347
 
2344
2348
  .Meta-module_root__H-Q4d {
package/dist/ui-kit.css CHANGED
@@ -2338,7 +2338,11 @@
2338
2338
  .Meta-module_containerInDynamicBlock__YSh66 {
2339
2339
  position: absolute;
2340
2340
  bottom: 20px;
2341
- left: 54px;
2341
+ left: 57px;
2342
+ }
2343
+
2344
+ .Meta-module_containerInDynamicBlockAndMaterial__4v4A9 {
2345
+ left: 65px;
2342
2346
  }
2343
2347
 
2344
2348
  .Meta-module_root__H-Q4d {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.603",
2
+ "version": "0.8.604",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -1,7 +1,11 @@
1
1
  .containerInDynamicBlock {
2
2
  position: absolute;
3
3
  bottom: 20px;
4
- left: 54px;
4
+ left: 57px;
5
+ }
6
+
7
+ .containerInDynamicBlockAndMaterial {
8
+ left: 65px;
5
9
  }
6
10
 
7
11
  .root {
@@ -10,6 +10,7 @@ export interface MetaContainerProps {
10
10
  bookmarkAction?: (service: CallToActions, place: string) => void
11
11
  lightBox?: () => void
12
12
  lang: 'ru' | 'en'
13
+ type?: any
13
14
  }
14
15
 
15
16
  export interface MetaProps {
@@ -25,7 +25,8 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
25
25
  block: {
26
26
  data: { components, theme }
27
27
  },
28
- styleContext
28
+ styleContext,
29
+ type
29
30
  }) => {
30
31
  const themeColor =
31
32
  styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset'
@@ -43,7 +44,11 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
43
44
  const hasSource = !!components.find((item) => item.type === 'source_name')
44
45
 
45
46
  const classNames: ClassNames = [
46
- [styles.containerInDynamicBlock, styleContext === 'isInDynamicBlock']
47
+ [styles.containerInDynamicBlock, styleContext === 'isInDynamicBlock'],
48
+ [
49
+ styles.containerInDynamicBlockAndMaterial,
50
+ styleContext === 'isInDynamicBlock' && type === 'isInMaterial'
51
+ ]
47
52
  ]
48
53
 
49
54
  return (
@@ -17,4 +17,5 @@ export interface RawHtmlBlockProps {
17
17
  bookmarkAction?: (service: CallToActions, place: string) => void
18
18
  lightBox?: LightboxContext | null | undefined
19
19
  lang?: 'ru' | 'en'
20
+ type?: any
20
21
  }
@@ -18,7 +18,8 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
18
18
  isInBookmarks,
19
19
  bookmarkAction,
20
20
  lightBox,
21
- lang
21
+ lang,
22
+ type = 'default'
22
23
  }) => {
23
24
  const context = {
24
25
  lightBox: lightBox || null
@@ -68,6 +69,7 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
68
69
  isInBookmarks={isInBookmarks}
69
70
  bookmarkAction={bookmarkAction}
70
71
  lang={lang}
72
+ type={type}
71
73
  />
72
74
  </BlockProvider>
73
75
  )
@@ -10,4 +10,5 @@ export interface RenderBlocksProps {
10
10
  bookmarkAction?: (service: CallToActions, place: string) => void
11
11
  lightBox?: LightboxContext | null | undefined
12
12
  lang?: 'ru' | 'en'
13
+ type?: any
13
14
  }
@@ -27,7 +27,8 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
27
27
  isRead,
28
28
  isListened,
29
29
  bookmarkAction,
30
- isInBookmarks
30
+ isInBookmarks,
31
+ type = 'default'
31
32
  }) => {
32
33
  switch (block.type) {
33
34
  case 'tag': {
@@ -61,6 +62,7 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
61
62
  isListened={isListened}
62
63
  isInBookmarks={isInBookmarks}
63
64
  bookmarkAction={bookmarkAction}
65
+ type={type}
64
66
  />
65
67
  )
66
68
  }