@meduza/ui-kit-2 0.8.628 → 0.8.629

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.
@@ -2345,22 +2345,6 @@
2345
2345
  background-color: #4f4f4f;
2346
2346
  }
2347
2347
 
2348
- /* .containerInDynamicBlock {
2349
- position: absolute;
2350
- bottom: 20px;
2351
- left: 57px;
2352
- width: auto;
2353
- } */
2354
-
2355
- /* .containerInDynamicBlockAndMaterial {
2356
- left: 65px;
2357
-
2358
- @media $landscapeTablet {
2359
- left: auto;
2360
- bottom: 35px;
2361
- }
2362
- } */
2363
-
2364
2348
  .Meta-module_root__H-Q4d {
2365
2349
  font-size: 12px;
2366
2350
 
package/dist/ui-kit.css CHANGED
@@ -2345,22 +2345,6 @@
2345
2345
  background-color: #4f4f4f;
2346
2346
  }
2347
2347
 
2348
- /* .containerInDynamicBlock {
2349
- position: absolute;
2350
- bottom: 20px;
2351
- left: 57px;
2352
- width: auto;
2353
- } */
2354
-
2355
- /* .containerInDynamicBlockAndMaterial {
2356
- left: 65px;
2357
-
2358
- @media $landscapeTablet {
2359
- left: auto;
2360
- bottom: 35px;
2361
- }
2362
- } */
2363
-
2364
2348
  .Meta-module_root__H-Q4d {
2365
2349
  font-size: 12px;
2366
2350
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.628",
2
+ "version": "0.8.629",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -1,19 +1,3 @@
1
- /* .containerInDynamicBlock {
2
- position: absolute;
3
- bottom: 20px;
4
- left: 57px;
5
- width: auto;
6
- } */
7
-
8
- /* .containerInDynamicBlockAndMaterial {
9
- left: 65px;
10
-
11
- @media $landscapeTablet {
12
- left: auto;
13
- bottom: 35px;
14
- }
15
- } */
16
-
17
1
  .root {
18
2
  font-size: 12px;
19
3
 
@@ -10,7 +10,6 @@ export interface MetaContainerProps {
10
10
  bookmarkAction?: (service: CallToActions, place: string) => void
11
11
  lightBox?: () => void
12
12
  lang: 'ru' | 'en'
13
- type?: any
14
13
  }
15
14
 
16
15
  export interface MetaProps {
@@ -9,7 +9,6 @@ import { DocumentItemsCount } from '../DocumentItemsCount'
9
9
  import { BookmarkButton } from '../BookmarkButton'
10
10
  import { Timestamp } from '../Timestamp'
11
11
  import { SvgSymbol } from '../SvgSymbol'
12
- // import { makeClassName, ClassNames } from '../utils/makeClassName'
13
12
 
14
13
  import { TimestampProps } from '../Timestamp/Timestamp.types'
15
14
 
@@ -26,7 +25,6 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
26
25
  data: { components, theme }
27
26
  },
28
27
  styleContext
29
- // type
30
28
  }) => {
31
29
  const themeColor =
32
30
  styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset'
@@ -43,19 +41,7 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
43
41
 
44
42
  const hasSource = !!components.find((item) => item.type === 'source_name')
45
43
 
46
- // const classNames: ClassNames = [
47
- // [
48
- // styles.containerInDynamicBlock,
49
- // styleContext === 'isInDynamicBlock' || styleContext.includes('episode')
50
- // ],
51
- // [
52
- // styles.containerInDynamicBlockAndMaterial,
53
- // styleContext === 'isInDynamicBlock' && type === 'isInMaterial'
54
- // ]
55
- // ]
56
-
57
44
  return (
58
- // <div className={makeClassName(classNames)}>
59
45
  <Meta
60
46
  styleContext={context}
61
47
  theme={theme || themeColor}
@@ -84,13 +70,6 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
84
70
  )
85
71
  }
86
72
  case 'duration': {
87
- // if (styleContext === 'isInDynamicBlock') {
88
- // return (
89
- // <MetaItem hasSource={hasSource} bullets key={component.id}>
90
- // {component.text}
91
- // </MetaItem>
92
- // )
93
- // }
94
73
  return (
95
74
  <MetaItem hasSource={hasSource} bullets key={component.id}>
96
75
  <>
@@ -115,11 +94,6 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
115
94
  >
116
95
  <Timestamp
117
96
  publishedAt={component.datetime}
118
- // type={
119
- // styleContext === 'isInDynamicBlock'
120
- // ? 'fromNow'
121
- // : format || 'date'
122
- // }
123
97
  type={format || 'date'}
124
98
  locale={lang}
125
99
  />
@@ -192,6 +166,5 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
192
166
  </div>
193
167
  )}
194
168
  </Meta>
195
- // </div>
196
169
  )
197
170
  }
@@ -17,5 +17,4 @@ 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
21
20
  }
@@ -18,8 +18,7 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
18
18
  isInBookmarks,
19
19
  bookmarkAction,
20
20
  lightBox,
21
- lang,
22
- type = 'default'
21
+ lang
23
22
  }) => {
24
23
  const context = {
25
24
  lightBox: lightBox || null
@@ -69,7 +68,6 @@ export const RawHtmlBlock: React.FC<RawHtmlBlockProps> = ({
69
68
  isInBookmarks={isInBookmarks}
70
69
  bookmarkAction={bookmarkAction}
71
70
  lang={lang}
72
- type={type}
73
71
  />
74
72
  </BlockProvider>
75
73
  )
@@ -10,5 +10,4 @@ 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
14
13
  }
@@ -27,8 +27,7 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
27
27
  isRead,
28
28
  isListened,
29
29
  bookmarkAction,
30
- isInBookmarks,
31
- type = 'default'
30
+ isInBookmarks
32
31
  }) => {
33
32
  switch (block.type) {
34
33
  case 'tag': {
@@ -62,7 +61,6 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
62
61
  isListened={isListened}
63
62
  isInBookmarks={isInBookmarks}
64
63
  bookmarkAction={bookmarkAction}
65
- type={type}
66
64
  />
67
65
  )
68
66
  }