@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.
- package/dist/Meta/Meta.types.d.ts +0 -1
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -1
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -1
- package/dist/ui-kit-2.cjs.development.js +105 -137
- 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 +105 -137
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +0 -16
- package/dist/ui-kit.css +0 -16
- package/package.json +1 -1
- package/src/Meta/Meta.module.css +0 -16
- package/src/Meta/Meta.types.ts +0 -1
- package/src/Meta/MetaContainer.tsx +0 -27
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +0 -1
- package/src/RawHtmlBlock/index.tsx +1 -3
- package/src/RenderBlocks/RenderBlocks.types.ts +0 -1
- package/src/RenderBlocks/index.tsx +1 -3
package/dist/ui-kit-game.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/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
package/src/Meta/Meta.module.css
CHANGED
|
@@ -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
|
|
package/src/Meta/Meta.types.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
)
|
|
@@ -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
|
}
|