@meduza/ui-kit-2 0.8.4 → 0.8.5
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/README.md +15 -1
- package/dist/Button/Button.types.d.ts +0 -16
- package/dist/Button/ButtonLoader.d.ts +0 -2
- package/dist/Button/index.d.ts +0 -2
- package/dist/Image/Image.types.d.ts +0 -35
- package/dist/SvgSymbol/SvgSymbol.types.d.ts +0 -8
- package/dist/SvgSymbol/icons.d.ts +0 -167
- package/dist/Switcher/Switcher.types.d.ts +0 -12
- package/dist/index.d.ts +0 -45
- package/dist/types.d.ts +0 -20
- package/dist/ui-kit-2.cjs.development.js +0 -2810
- package/dist/ui-kit-2.cjs.development.js.map +0 -1
- package/dist/utils/BlockContext.d.ts +0 -8
- package/dist/utils/makeStyleContext.d.ts +0 -3
- package/dist/utils/postMessage.d.ts +0 -2
- package/package.json +17 -16
- package/src/.DS_Store +0 -0
- package/src/AnnouncementInText/AnnouncementInText.module.css +0 -2
- package/src/AnnouncementInText/AnnouncementInText.stories.module.css +0 -2
- package/src/AnnouncementInText/index.tsx +2 -4
- package/src/BookmarkButton/BookmarkButton.module.css +0 -2
- package/src/BookmarkButton/BookmarkButton.stories.module.css +1 -1
- package/src/Button/Button.module.css +0 -2
- package/src/CardTitle/CardTitle.module.css +0 -2
- package/src/CardTitle/CardTitle.stories.module.css +0 -2
- package/src/CardTitle/index.tsx +1 -1
- package/src/ChapterBlock/ChapterBlock.module.css +0 -2
- package/src/ChapterBlock/ChapterBlock.stories.module.css +0 -2
- package/src/Cover/Cover.module.css +0 -2
- package/src/Cover/Cover.stories.module.css +0 -2
- package/src/Cover/Cover.types.ts +1 -0
- package/src/Cover/index.tsx +4 -1
- package/src/DocumentItemsCount/DocumentItemsCount.module.css +0 -3
- package/src/DocumentItemsCount/DocumentItemsCount.stories.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.module.css +0 -2
- package/src/DonatesTeaser/DonatesTeaser.stories.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.module.css +0 -2
- package/src/DotsOnImage/DotsOnImage.stories.module.css +0 -2
- package/src/Dropdown/Dropdown.module.css +0 -2
- package/src/Dropdown/Dropdown.stories.module.css +0 -2
- package/src/Dropdown/index.tsx +4 -1
- package/src/EmbedBlock/EmbedBlock.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.stories.module.css +0 -2
- package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
- package/src/Footnote/Footnote.module.css +0 -2
- package/src/Footnote/Footnote.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.stories.module.css +0 -2
- package/src/GroupedBlock/GroupedBlock.types.ts +1 -0
- package/src/HalfBlock/HalfBlock.module.css +0 -2
- package/src/HalfBlock/HalfBlock.stories.module.css +0 -2
- package/src/HalfBlock/HalfBlock.types.ts +1 -0
- package/src/Image/Image.module.css +0 -2
- package/src/Image/Image.stories.module.css +0 -2
- package/src/ImportantLead/ImportantLead.module.css +1 -1
- package/src/ImportantLead/ImportantLead.stories.module.css +0 -2
- package/src/ImportantLead/ImportantLead.test.tsx +0 -1
- package/src/ImportantLead/ImportantLead.types.ts +1 -0
- package/src/Lazy/Lazy.module.css +0 -2
- package/src/Lazy/Lazy.stories.module.css +0 -2
- package/src/ListBlock/ListBlock.module.css +0 -2
- package/src/ListBlock/ListBlock.stories.module.css +0 -2
- package/src/MaterialNote/MaterialNote.module.css +0 -2
- package/src/MaterialNote/MaterialNote.stories.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.module.css +0 -2
- package/src/MaterialTitle/MaterialTitle.stories.module.css +0 -2
- package/src/MediaCaption/MediaCaption.module.css +0 -2
- package/src/MediaCaption/MediaCaption.stories.module.css +0 -2
- package/src/Meta/Meta.module.css +0 -2
- package/src/Meta/Meta.stories.module.css +0 -2
- package/src/Meta/Meta.types.ts +1 -0
- package/src/MetaItem/MetaItem.module.css +0 -2
- package/src/MetaItem/MetaItem.stories.module.css +0 -2
- package/src/MetaItemLive/MetaItemLive.module.css +0 -3
- package/src/MetaItemLive/MetaItemLive.stories.module.css +0 -2
- package/src/Popover/Popover.module.css +0 -2
- package/src/Popover/Popover.stories.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.module.css +0 -2
- package/src/QuoteBlock/QuoteBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.stories.module.css +0 -2
- package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -0
- package/src/RelatedBlock/RelatedBlock.module.css +0 -2
- package/src/RelatedBlock/RelatedBlock.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.module.css +0 -2
- package/src/RelatedBook/RelatedBook.stories.module.css +0 -2
- package/src/RelatedBook/RelatedBook.types.ts +1 -0
- package/src/RelatedRichBlock/RelatedRichBlock.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.stories.module.css +0 -2
- package/src/RelatedRichBlock/RelatedRichBlock.types.ts +1 -0
- package/src/RenderBlocks/RenderBlocks.stories.module.css +0 -2
- package/src/RenderBlocks/RenderBlocks.types.ts +1 -0
- package/src/RenderBlocks/index.tsx +6 -2
- package/src/RichTitle/RichTitle.module.css +0 -2
- package/src/RichTitle/RichTitle.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.stories.module.css +0 -2
- package/src/SensitiveBlock/SensitiveBlock.types.ts +1 -0
- package/src/ShopRelatedBlock/ShopRelatedBlock.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.stories.module.css +0 -2
- package/src/ShopRelatedBlock/ShopRelatedBlock.types.ts +1 -0
- package/src/SimpleBlock/FootnoteLink.css +0 -3
- package/src/SimpleBlock/SimpleBlock.module.css +1 -1
- package/src/SimpleBlock/SimpleBlock.stories.module.css +0 -2
- package/src/SimpleBlock/SimpleBlock.types.ts +1 -0
- package/src/SimpleTitle/SimpleTitle.module.css +0 -2
- package/src/SimpleTitle/SimpleTitle.stories.module.css +0 -2
- package/src/SourceBlock/SourceBlock.module.css +0 -2
- package/src/SourceBlock/SourceBlock.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.module.css +10 -11
- package/src/Spoiler/Spoiler.stories.module.css +0 -2
- package/src/Spoiler/Spoiler.types.ts +1 -0
- package/src/SvgSymbol/SvgSymbol.module.css +2 -4
- package/src/SvgSymbol/SvgSymbol.stories.module.css +0 -70
- package/src/Switcher/Switcher.module.css +0 -2
- package/src/Switcher/Switcher.stories.module.css +0 -2
- package/src/Table/Table.module.css +0 -2
- package/src/Table/Table.stories.module.css +0 -2
- package/src/Tag/Tag.module.css +1 -3
- package/src/Tag/Tag.stories.module.css +0 -2
- package/src/Tag/Tag.types.ts +7 -1
- package/src/Timestamp/Timestamp.module.css +0 -2
- package/src/Timestamp/Timestamp.stories.module.css +0 -2
- package/src/Toolbar/Toolbar.module.css +0 -2
- package/src/Toolbar/Toolbar.stories.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.module.css +0 -2
- package/src/ToolbarButton/ToolbarButton.stories.module.css +0 -2
- package/src/Tooltip/Tooltip.module.css +0 -2
- package/src/Tooltip/Tooltip.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.module.css +0 -2
- package/src/VersesBlock/VersesBlock.stories.tsx +4 -1
- package/src/VersesBlock/index.tsx +0 -1
- package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +0 -95
- package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +0 -4
- package/dist/AnnouncementInText/index.d.ts +0 -3
- package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
- package/dist/BookmarkButton/index.d.ts +0 -3
- package/dist/CardTitle/CardTitle.types.d.ts +0 -11
- package/dist/CardTitle/index.d.ts +0 -3
- package/dist/ChapterBlock/ChapterBlock.types.d.ts +0 -8
- package/dist/ChapterBlock/index.d.ts +0 -3
- package/dist/Cover/Cover.types.d.ts +0 -24
- package/dist/Cover/index.d.ts +0 -3
- package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +0 -6
- package/dist/DocumentItemsCount/index.d.ts +0 -3
- package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +0 -4
- package/dist/DonatesTeaser/index.d.ts +0 -3
- package/dist/DotsOnImage/DotsOnImage.types.d.ts +0 -46
- package/dist/DotsOnImage/index.d.ts +0 -3
- package/dist/Dropdown/Dropdown.types.d.ts +0 -5
- package/dist/Dropdown/index.d.ts +0 -4
- package/dist/EmbedBlock/EmbedBlock.d.ts +0 -3
- package/dist/EmbedBlock/EmbedBlock.types.d.ts +0 -12
- package/dist/EmbedBlock/EmbedGif.d.ts +0 -3
- package/dist/EmbedBlock/IframeBlock.d.ts +0 -3
- package/dist/EmbedBlock/index.d.ts +0 -3
- package/dist/Footnote/Footnote.types.d.ts +0 -5
- package/dist/Footnote/index.d.ts +0 -3
- package/dist/GroupedBlock/GroupedBlock.types.d.ts +0 -4
- package/dist/GroupedBlock/index.d.ts +0 -3
- package/dist/HalfBlock/HalfBlock.types.d.ts +0 -4
- package/dist/HalfBlock/index.d.ts +0 -3
- package/dist/Image/RenderPicture.d.ts +0 -4
- package/dist/ImportantLead/ImportantLead.types.d.ts +0 -4
- package/dist/ImportantLead/index.d.ts +0 -3
- package/dist/Lazy/Lazy.types.d.ts +0 -4
- package/dist/ListBlock/ListBlock.types.d.ts +0 -9
- package/dist/ListBlock/index.d.ts +0 -3
- package/dist/MaterialNote/MaterialNote.types.d.ts +0 -13
- package/dist/MaterialNote/index.d.ts +0 -3
- package/dist/MaterialTitle/MaterialTitle.types.d.ts +0 -4
- package/dist/MaterialTitle/index.d.ts +0 -5
- package/dist/MediaCaption/MediaCaption.types.d.ts +0 -5
- package/dist/MediaCaption/index.d.ts +0 -3
- package/dist/Meta/Meta.mock.d.ts +0 -12
- package/dist/Meta/Meta.types.d.ts +0 -19
- package/dist/Meta/MetaContainer.d.ts +0 -3
- package/dist/Meta/index.d.ts +0 -3
- package/dist/MetaItem/MetaItem.types.d.ts +0 -7
- package/dist/MetaItem/index.d.ts +0 -3
- package/dist/MetaItemLive/MetaItemLive.types.d.ts +0 -3
- package/dist/MetaItemLive/index.d.ts +0 -3
- package/dist/Popover/Popover.types.d.ts +0 -5
- package/dist/Popover/index.d.ts +0 -3
- package/dist/QuoteBlock/QuoteBlock.types.d.ts +0 -6
- package/dist/QuoteBlock/index.d.ts +0 -3
- package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -17
- package/dist/RawHtmlBlock/index.d.ts +0 -3
- package/dist/RelatedBlock/RelatedBlock.types.d.ts +0 -17
- package/dist/RelatedBlock/index.d.ts +0 -3
- package/dist/RelatedBook/RelatedBook.mock.d.ts +0 -65
- package/dist/RelatedBook/RelatedBook.types.d.ts +0 -4
- package/dist/RelatedBook/index.d.ts +0 -3
- package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +0 -4
- package/dist/RelatedRichBlock/index.d.ts +0 -3
- package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -11
- package/dist/RenderBlocks/index.d.ts +0 -3
- package/dist/RichTitle/RichTitle.types.d.ts +0 -12
- package/dist/RichTitle/index.d.ts +0 -3
- package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +0 -15
- package/dist/SensitiveBlock/index.d.ts +0 -3
- package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +0 -4
- package/dist/ShopRelatedBlock/index.d.ts +0 -3
- package/dist/SimpleBlock/SimpleBlock.types.d.ts +0 -5
- package/dist/SimpleBlock/index.d.ts +0 -3
- package/dist/SimpleTitle/SimpleTitle.types.d.ts +0 -9
- package/dist/SimpleTitle/index.d.ts +0 -3
- package/dist/SourceBlock/SourceBlock.types.d.ts +0 -15
- package/dist/SourceBlock/index.d.ts +0 -3
- package/dist/Spoiler/Spoiler.types.d.ts +0 -4
- package/dist/Spoiler/index.d.ts +0 -3
- package/dist/Table/Table.types.d.ts +0 -25
- package/dist/Table/index.d.ts +0 -3
- package/dist/Tag/Tag.types.d.ts +0 -12
- package/dist/Tag/index.d.ts +0 -3
- package/dist/Timestamp/Timestamp.types.d.ts +0 -5
- package/dist/Timestamp/index.d.ts +0 -4
- package/dist/Toolbar/Toolbar.d.ts +0 -3
- package/dist/Toolbar/Toolbar.types.d.ts +0 -7
- package/dist/Toolbar/ToolbarItem.d.ts +0 -3
- package/dist/Toolbar/index.d.ts +0 -2
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -10
- package/dist/ToolbarButton/index.d.ts +0 -3
- package/dist/Tooltip/Tooltip.d.ts +0 -3
- package/dist/Tooltip/Tooltip.types.d.ts +0 -8
- package/dist/Tooltip/TooltipFooter.d.ts +0 -3
- package/dist/Tooltip/index.d.ts +0 -2
- package/dist/VersesBlock/VersesBlock.types.d.ts +0 -9
- package/dist/VersesBlock/index.d.ts +0 -3
- package/dist/constants.d.ts +0 -41
- package/dist/ui-kit-2.cjs.production.min.js +0 -2
- package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
- package/dist/ui-kit-2.esm.js +0 -2756
- package/dist/ui-kit-2.esm.js.map +0 -1
- package/dist/ui-kit.css +0 -6452
- package/dist/utils/DangerousHtml.d.ts +0 -8
- package/dist/utils/capitalizeFirstLetter.d.ts +0 -1
- package/dist/utils/converCase.d.ts +0 -2
- package/dist/utils/generateGradient.d.ts +0 -2
- package/dist/utils/getElementPositionRelativeToViewport.d.ts +0 -2
- package/dist/utils/pluralize.d.ts +0 -2
- package/dist/utils/viewportSize.d.ts +0 -6
- package/src/vars-games.css +0 -62
- package/src/vars.css +0 -50
|
@@ -78,7 +78,9 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
|
|
|
78
78
|
case 'h2':
|
|
79
79
|
case 'h3':
|
|
80
80
|
case 'h4': {
|
|
81
|
-
return
|
|
81
|
+
return (
|
|
82
|
+
<SimpleBlock block={block} styleContext={styleContext} id={block.id} />
|
|
83
|
+
)
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
case 'quote':
|
|
@@ -94,7 +96,9 @@ export const RenderBlocks: React.FC<RenderBlocksProps> = ({
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
case 'chapter-subtitle': {
|
|
97
|
-
return
|
|
99
|
+
return (
|
|
100
|
+
<ChapterBlock block={block} styleContext={styleContext} id={block.id} />
|
|
101
|
+
)
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
case 'card_title': {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import '../vars.css';
|
|
2
|
-
|
|
3
1
|
.root {
|
|
4
2
|
position: relative;
|
|
5
3
|
|
|
@@ -63,17 +61,16 @@
|
|
|
63
61
|
margin-top: 0;
|
|
64
62
|
margin-bottom: 18px;
|
|
65
63
|
|
|
66
|
-
font-weight: 700;
|
|
67
|
-
font-size: 21px;
|
|
68
|
-
|
|
69
64
|
font-family: $secondaryFont;
|
|
70
|
-
|
|
65
|
+
font-size: calc(17rem / 16);
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
line-height: calc(21rem / 16);
|
|
71
68
|
|
|
72
69
|
@media $mobile {
|
|
73
70
|
margin-bottom: 20px;
|
|
74
71
|
|
|
75
|
-
font-size:
|
|
76
|
-
line-height:
|
|
72
|
+
font-size: 21px;
|
|
73
|
+
line-height: 28px;
|
|
77
74
|
}
|
|
78
75
|
}
|
|
79
76
|
|
|
@@ -122,9 +119,11 @@
|
|
|
122
119
|
margin-left: -20px;
|
|
123
120
|
padding: 12px 20px 20px;
|
|
124
121
|
|
|
125
|
-
background-image: linear-gradient(
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
background-image: linear-gradient(
|
|
123
|
+
180deg,
|
|
124
|
+
rgba(255, 255, 255, 0) 0%,
|
|
125
|
+
#fff 64%
|
|
126
|
+
);
|
|
128
127
|
|
|
129
128
|
animation: spoilerSticky 500ms ease both;
|
|
130
129
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import '../vars.css';
|
|
2
|
-
|
|
3
1
|
.root {
|
|
4
2
|
width: 100%;
|
|
5
3
|
height: 100%;
|
|
@@ -214,9 +212,9 @@
|
|
|
214
212
|
width: 11px;
|
|
215
213
|
height: auto;
|
|
216
214
|
|
|
217
|
-
stroke-width: 1.2px;
|
|
218
|
-
|
|
219
215
|
cursor: pointer;
|
|
216
|
+
|
|
217
|
+
stroke-width: 1.2px;
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
.isInToolbar.bookmark {
|
|
@@ -1,73 +1,3 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'PF Regal';
|
|
3
|
-
font-style: normal;
|
|
4
|
-
|
|
5
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-RegularB.woff')
|
|
6
|
-
format('woff');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: 'PF Regal';
|
|
11
|
-
font-style: italic;
|
|
12
|
-
|
|
13
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-RegularBItalic.woff')
|
|
14
|
-
format('woff');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@font-face {
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
font-family: 'PF Regal';
|
|
20
|
-
|
|
21
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-Bold.woff')
|
|
22
|
-
format('woff');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@font-face {
|
|
26
|
-
font-weight: bold;
|
|
27
|
-
font-family: 'PF Regal';
|
|
28
|
-
font-style: italic;
|
|
29
|
-
|
|
30
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-BoldItalic.woff')
|
|
31
|
-
format('woff');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@font-face {
|
|
35
|
-
font-weight: 400;
|
|
36
|
-
font-family: 'Proxima Nova';
|
|
37
|
-
font-style: normal;
|
|
38
|
-
|
|
39
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Regular.woff2')
|
|
40
|
-
format('woff2'),
|
|
41
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Regular.woff')
|
|
42
|
-
format('woff');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@font-face {
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
font-family: 'Proxima Nova';
|
|
48
|
-
font-style: normal;
|
|
49
|
-
|
|
50
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Semibold.woff2')
|
|
51
|
-
format('woff2'),
|
|
52
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Semibold.woff')
|
|
53
|
-
format('woff');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@font-face {
|
|
57
|
-
font-weight: 700;
|
|
58
|
-
font-family: 'Proxima Nova';
|
|
59
|
-
font-style: normal;
|
|
60
|
-
|
|
61
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Bold.woff2')
|
|
62
|
-
format('woff2'),
|
|
63
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Bold.woff')
|
|
64
|
-
format('woff');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
* {
|
|
68
|
-
box-sizing: border-box;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
1
|
.row {
|
|
72
2
|
display: flex;
|
|
73
3
|
flex-flow: row wrap;
|
package/src/Tag/Tag.module.css
CHANGED
package/src/Tag/Tag.types.ts
CHANGED
|
@@ -2,7 +2,13 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
export type TagSizes = 'small' | 'large'
|
|
4
4
|
|
|
5
|
-
export type TagThemes =
|
|
5
|
+
export type TagThemes =
|
|
6
|
+
| 'dark'
|
|
7
|
+
| 'gold'
|
|
8
|
+
| 'gray'
|
|
9
|
+
| 'light'
|
|
10
|
+
| 'inherit'
|
|
11
|
+
| 'custom'
|
|
6
12
|
|
|
7
13
|
export type TagStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown'
|
|
8
14
|
|
|
@@ -20,7 +20,10 @@ const Example: React.FC = () => {
|
|
|
20
20
|
<>
|
|
21
21
|
<div className={styles.root}>
|
|
22
22
|
{mock.blocks.map((item) => (
|
|
23
|
-
<VersesBlock
|
|
23
|
+
<VersesBlock
|
|
24
|
+
block={item as VersesBlockProps['block']}
|
|
25
|
+
key={item.id}
|
|
26
|
+
/>
|
|
24
27
|
))}
|
|
25
28
|
</div>
|
|
26
29
|
</>
|
|
@@ -1,82 +1,3 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'PF Regal';
|
|
3
|
-
font-style: normal;
|
|
4
|
-
|
|
5
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-RegularB.woff')
|
|
6
|
-
format('woff');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: 'PF Regal';
|
|
11
|
-
font-style: italic;
|
|
12
|
-
|
|
13
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-RegularBItalic.woff')
|
|
14
|
-
format('woff');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@font-face {
|
|
18
|
-
font-family: 'PF Regal';
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
|
|
21
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-Bold.woff')
|
|
22
|
-
format('woff');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@font-face {
|
|
26
|
-
font-family: 'PF Regal';
|
|
27
|
-
font-weight: bold;
|
|
28
|
-
font-style: italic;
|
|
29
|
-
|
|
30
|
-
src: url('https://meduza.io/static/fonts/PFRegal/PFRegalTextPro-BoldItalic.woff')
|
|
31
|
-
format('woff');
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: 'Proxima Nova';
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
font-style: normal;
|
|
38
|
-
|
|
39
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Regular.woff2')
|
|
40
|
-
format('woff2'),
|
|
41
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Regular.woff')
|
|
42
|
-
format('woff');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@font-face {
|
|
46
|
-
font-family: 'Proxima Nova';
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
font-style: normal;
|
|
49
|
-
|
|
50
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Semibold.woff2')
|
|
51
|
-
format('woff2'),
|
|
52
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Semibold.woff')
|
|
53
|
-
format('woff');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@font-face {
|
|
57
|
-
font-family: 'Proxima Nova';
|
|
58
|
-
font-weight: 700;
|
|
59
|
-
font-style: normal;
|
|
60
|
-
|
|
61
|
-
src: url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Bold.woff2')
|
|
62
|
-
format('woff2'),
|
|
63
|
-
url('https://meduza.io/static/fonts/ProximaNovaNew/ProximaNova-Bold.woff')
|
|
64
|
-
format('woff');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* set font-size as website */
|
|
68
|
-
html {
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
|
|
71
|
-
@media (min-width: 1000px) {
|
|
72
|
-
font-size: calc(100vw / 66.75);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@media (min-width: 1335px) {
|
|
76
|
-
font-size: 20px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
1
|
.root {
|
|
81
2
|
color: #000;
|
|
82
3
|
background: #fff;
|
|
@@ -117,19 +38,3 @@ html {
|
|
|
117
38
|
font-size: 32px;
|
|
118
39
|
font-weight: bold;
|
|
119
40
|
}
|
|
120
|
-
|
|
121
|
-
h1,
|
|
122
|
-
h2,
|
|
123
|
-
h3,
|
|
124
|
-
h4,
|
|
125
|
-
h5,
|
|
126
|
-
h6 {
|
|
127
|
-
margin: 0;
|
|
128
|
-
padding: 0;
|
|
129
|
-
|
|
130
|
-
font-weight: normal;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
* {
|
|
134
|
-
box-sizing: border-box;
|
|
135
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OptimizedImageItem } from '../types';
|
|
2
|
-
export interface CoverProps {
|
|
3
|
-
block: {
|
|
4
|
-
only_on?: string;
|
|
5
|
-
data: {
|
|
6
|
-
blocks: any;
|
|
7
|
-
cover: {
|
|
8
|
-
credit?: string;
|
|
9
|
-
caption?: string;
|
|
10
|
-
cc: string;
|
|
11
|
-
urls: {
|
|
12
|
-
w325: OptimizedImageItem;
|
|
13
|
-
w600: OptimizedImageItem;
|
|
14
|
-
};
|
|
15
|
-
mobile_ratio: number;
|
|
16
|
-
gradients: {
|
|
17
|
-
text_rgb: string;
|
|
18
|
-
bg_rgb: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
styleContext?: string[] | string;
|
|
24
|
-
}
|
package/dist/Cover/index.d.ts
DELETED