@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.
Files changed (244) hide show
  1. package/README.md +15 -1
  2. package/dist/Button/Button.types.d.ts +0 -16
  3. package/dist/Button/ButtonLoader.d.ts +0 -2
  4. package/dist/Button/index.d.ts +0 -2
  5. package/dist/Image/Image.types.d.ts +0 -35
  6. package/dist/SvgSymbol/SvgSymbol.types.d.ts +0 -8
  7. package/dist/SvgSymbol/icons.d.ts +0 -167
  8. package/dist/Switcher/Switcher.types.d.ts +0 -12
  9. package/dist/index.d.ts +0 -45
  10. package/dist/types.d.ts +0 -20
  11. package/dist/ui-kit-2.cjs.development.js +0 -2810
  12. package/dist/ui-kit-2.cjs.development.js.map +0 -1
  13. package/dist/utils/BlockContext.d.ts +0 -8
  14. package/dist/utils/makeStyleContext.d.ts +0 -3
  15. package/dist/utils/postMessage.d.ts +0 -2
  16. package/package.json +17 -16
  17. package/src/.DS_Store +0 -0
  18. package/src/AnnouncementInText/AnnouncementInText.module.css +0 -2
  19. package/src/AnnouncementInText/AnnouncementInText.stories.module.css +0 -2
  20. package/src/AnnouncementInText/index.tsx +2 -4
  21. package/src/BookmarkButton/BookmarkButton.module.css +0 -2
  22. package/src/BookmarkButton/BookmarkButton.stories.module.css +1 -1
  23. package/src/Button/Button.module.css +0 -2
  24. package/src/CardTitle/CardTitle.module.css +0 -2
  25. package/src/CardTitle/CardTitle.stories.module.css +0 -2
  26. package/src/CardTitle/index.tsx +1 -1
  27. package/src/ChapterBlock/ChapterBlock.module.css +0 -2
  28. package/src/ChapterBlock/ChapterBlock.stories.module.css +0 -2
  29. package/src/Cover/Cover.module.css +0 -2
  30. package/src/Cover/Cover.stories.module.css +0 -2
  31. package/src/Cover/Cover.types.ts +1 -0
  32. package/src/Cover/index.tsx +4 -1
  33. package/src/DocumentItemsCount/DocumentItemsCount.module.css +0 -3
  34. package/src/DocumentItemsCount/DocumentItemsCount.stories.module.css +0 -2
  35. package/src/DonatesTeaser/DonatesTeaser.module.css +0 -2
  36. package/src/DonatesTeaser/DonatesTeaser.stories.module.css +0 -2
  37. package/src/DotsOnImage/DotsOnImage.module.css +0 -2
  38. package/src/DotsOnImage/DotsOnImage.stories.module.css +0 -2
  39. package/src/Dropdown/Dropdown.module.css +0 -2
  40. package/src/Dropdown/Dropdown.stories.module.css +0 -2
  41. package/src/Dropdown/index.tsx +4 -1
  42. package/src/EmbedBlock/EmbedBlock.module.css +0 -2
  43. package/src/EmbedBlock/EmbedBlock.stories.module.css +0 -2
  44. package/src/EmbedBlock/EmbedBlock.types.ts +1 -0
  45. package/src/Footnote/Footnote.module.css +0 -2
  46. package/src/Footnote/Footnote.stories.module.css +0 -2
  47. package/src/GroupedBlock/GroupedBlock.module.css +0 -2
  48. package/src/GroupedBlock/GroupedBlock.stories.module.css +0 -2
  49. package/src/GroupedBlock/GroupedBlock.types.ts +1 -0
  50. package/src/HalfBlock/HalfBlock.module.css +0 -2
  51. package/src/HalfBlock/HalfBlock.stories.module.css +0 -2
  52. package/src/HalfBlock/HalfBlock.types.ts +1 -0
  53. package/src/Image/Image.module.css +0 -2
  54. package/src/Image/Image.stories.module.css +0 -2
  55. package/src/ImportantLead/ImportantLead.module.css +1 -1
  56. package/src/ImportantLead/ImportantLead.stories.module.css +0 -2
  57. package/src/ImportantLead/ImportantLead.test.tsx +0 -1
  58. package/src/ImportantLead/ImportantLead.types.ts +1 -0
  59. package/src/Lazy/Lazy.module.css +0 -2
  60. package/src/Lazy/Lazy.stories.module.css +0 -2
  61. package/src/ListBlock/ListBlock.module.css +0 -2
  62. package/src/ListBlock/ListBlock.stories.module.css +0 -2
  63. package/src/MaterialNote/MaterialNote.module.css +0 -2
  64. package/src/MaterialNote/MaterialNote.stories.module.css +0 -2
  65. package/src/MaterialTitle/MaterialTitle.module.css +0 -2
  66. package/src/MaterialTitle/MaterialTitle.stories.module.css +0 -2
  67. package/src/MediaCaption/MediaCaption.module.css +0 -2
  68. package/src/MediaCaption/MediaCaption.stories.module.css +0 -2
  69. package/src/Meta/Meta.module.css +0 -2
  70. package/src/Meta/Meta.stories.module.css +0 -2
  71. package/src/Meta/Meta.types.ts +1 -0
  72. package/src/MetaItem/MetaItem.module.css +0 -2
  73. package/src/MetaItem/MetaItem.stories.module.css +0 -2
  74. package/src/MetaItemLive/MetaItemLive.module.css +0 -3
  75. package/src/MetaItemLive/MetaItemLive.stories.module.css +0 -2
  76. package/src/Popover/Popover.module.css +0 -2
  77. package/src/Popover/Popover.stories.module.css +0 -2
  78. package/src/QuoteBlock/QuoteBlock.module.css +0 -2
  79. package/src/QuoteBlock/QuoteBlock.stories.module.css +0 -2
  80. package/src/RawHtmlBlock/RawHtmlBlock.stories.module.css +0 -2
  81. package/src/RawHtmlBlock/RawHtmlBlock.types.ts +1 -0
  82. package/src/RelatedBlock/RelatedBlock.module.css +0 -2
  83. package/src/RelatedBlock/RelatedBlock.stories.module.css +0 -2
  84. package/src/RelatedBook/RelatedBook.module.css +0 -2
  85. package/src/RelatedBook/RelatedBook.stories.module.css +0 -2
  86. package/src/RelatedBook/RelatedBook.types.ts +1 -0
  87. package/src/RelatedRichBlock/RelatedRichBlock.module.css +0 -2
  88. package/src/RelatedRichBlock/RelatedRichBlock.stories.module.css +0 -2
  89. package/src/RelatedRichBlock/RelatedRichBlock.types.ts +1 -0
  90. package/src/RenderBlocks/RenderBlocks.stories.module.css +0 -2
  91. package/src/RenderBlocks/RenderBlocks.types.ts +1 -0
  92. package/src/RenderBlocks/index.tsx +6 -2
  93. package/src/RichTitle/RichTitle.module.css +0 -2
  94. package/src/RichTitle/RichTitle.stories.module.css +0 -2
  95. package/src/SensitiveBlock/SensitiveBlock.module.css +0 -2
  96. package/src/SensitiveBlock/SensitiveBlock.stories.module.css +0 -2
  97. package/src/SensitiveBlock/SensitiveBlock.types.ts +1 -0
  98. package/src/ShopRelatedBlock/ShopRelatedBlock.module.css +0 -2
  99. package/src/ShopRelatedBlock/ShopRelatedBlock.stories.module.css +0 -2
  100. package/src/ShopRelatedBlock/ShopRelatedBlock.types.ts +1 -0
  101. package/src/SimpleBlock/FootnoteLink.css +0 -3
  102. package/src/SimpleBlock/SimpleBlock.module.css +1 -1
  103. package/src/SimpleBlock/SimpleBlock.stories.module.css +0 -2
  104. package/src/SimpleBlock/SimpleBlock.types.ts +1 -0
  105. package/src/SimpleTitle/SimpleTitle.module.css +0 -2
  106. package/src/SimpleTitle/SimpleTitle.stories.module.css +0 -2
  107. package/src/SourceBlock/SourceBlock.module.css +0 -2
  108. package/src/SourceBlock/SourceBlock.stories.module.css +0 -2
  109. package/src/Spoiler/Spoiler.module.css +10 -11
  110. package/src/Spoiler/Spoiler.stories.module.css +0 -2
  111. package/src/Spoiler/Spoiler.types.ts +1 -0
  112. package/src/SvgSymbol/SvgSymbol.module.css +2 -4
  113. package/src/SvgSymbol/SvgSymbol.stories.module.css +0 -70
  114. package/src/Switcher/Switcher.module.css +0 -2
  115. package/src/Switcher/Switcher.stories.module.css +0 -2
  116. package/src/Table/Table.module.css +0 -2
  117. package/src/Table/Table.stories.module.css +0 -2
  118. package/src/Tag/Tag.module.css +1 -3
  119. package/src/Tag/Tag.stories.module.css +0 -2
  120. package/src/Tag/Tag.types.ts +7 -1
  121. package/src/Timestamp/Timestamp.module.css +0 -2
  122. package/src/Timestamp/Timestamp.stories.module.css +0 -2
  123. package/src/Toolbar/Toolbar.module.css +0 -2
  124. package/src/Toolbar/Toolbar.stories.module.css +0 -2
  125. package/src/ToolbarButton/ToolbarButton.module.css +0 -2
  126. package/src/ToolbarButton/ToolbarButton.stories.module.css +0 -2
  127. package/src/Tooltip/Tooltip.module.css +0 -2
  128. package/src/Tooltip/Tooltip.stories.module.css +0 -2
  129. package/src/VersesBlock/VersesBlock.module.css +0 -2
  130. package/src/VersesBlock/VersesBlock.stories.module.css +0 -2
  131. package/src/VersesBlock/VersesBlock.stories.tsx +4 -1
  132. package/src/VersesBlock/index.tsx +0 -1
  133. package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +0 -95
  134. package/dist/AnnouncementInText/AnnouncementInText.types.d.ts +0 -4
  135. package/dist/AnnouncementInText/index.d.ts +0 -3
  136. package/dist/BookmarkButton/BookmarkButton.types.d.ts +0 -6
  137. package/dist/BookmarkButton/index.d.ts +0 -3
  138. package/dist/CardTitle/CardTitle.types.d.ts +0 -11
  139. package/dist/CardTitle/index.d.ts +0 -3
  140. package/dist/ChapterBlock/ChapterBlock.types.d.ts +0 -8
  141. package/dist/ChapterBlock/index.d.ts +0 -3
  142. package/dist/Cover/Cover.types.d.ts +0 -24
  143. package/dist/Cover/index.d.ts +0 -3
  144. package/dist/DocumentItemsCount/DocumentItemsCount.types.d.ts +0 -6
  145. package/dist/DocumentItemsCount/index.d.ts +0 -3
  146. package/dist/DonatesTeaser/DonatesTeaser.types.d.ts +0 -4
  147. package/dist/DonatesTeaser/index.d.ts +0 -3
  148. package/dist/DotsOnImage/DotsOnImage.types.d.ts +0 -46
  149. package/dist/DotsOnImage/index.d.ts +0 -3
  150. package/dist/Dropdown/Dropdown.types.d.ts +0 -5
  151. package/dist/Dropdown/index.d.ts +0 -4
  152. package/dist/EmbedBlock/EmbedBlock.d.ts +0 -3
  153. package/dist/EmbedBlock/EmbedBlock.types.d.ts +0 -12
  154. package/dist/EmbedBlock/EmbedGif.d.ts +0 -3
  155. package/dist/EmbedBlock/IframeBlock.d.ts +0 -3
  156. package/dist/EmbedBlock/index.d.ts +0 -3
  157. package/dist/Footnote/Footnote.types.d.ts +0 -5
  158. package/dist/Footnote/index.d.ts +0 -3
  159. package/dist/GroupedBlock/GroupedBlock.types.d.ts +0 -4
  160. package/dist/GroupedBlock/index.d.ts +0 -3
  161. package/dist/HalfBlock/HalfBlock.types.d.ts +0 -4
  162. package/dist/HalfBlock/index.d.ts +0 -3
  163. package/dist/Image/RenderPicture.d.ts +0 -4
  164. package/dist/ImportantLead/ImportantLead.types.d.ts +0 -4
  165. package/dist/ImportantLead/index.d.ts +0 -3
  166. package/dist/Lazy/Lazy.types.d.ts +0 -4
  167. package/dist/ListBlock/ListBlock.types.d.ts +0 -9
  168. package/dist/ListBlock/index.d.ts +0 -3
  169. package/dist/MaterialNote/MaterialNote.types.d.ts +0 -13
  170. package/dist/MaterialNote/index.d.ts +0 -3
  171. package/dist/MaterialTitle/MaterialTitle.types.d.ts +0 -4
  172. package/dist/MaterialTitle/index.d.ts +0 -5
  173. package/dist/MediaCaption/MediaCaption.types.d.ts +0 -5
  174. package/dist/MediaCaption/index.d.ts +0 -3
  175. package/dist/Meta/Meta.mock.d.ts +0 -12
  176. package/dist/Meta/Meta.types.d.ts +0 -19
  177. package/dist/Meta/MetaContainer.d.ts +0 -3
  178. package/dist/Meta/index.d.ts +0 -3
  179. package/dist/MetaItem/MetaItem.types.d.ts +0 -7
  180. package/dist/MetaItem/index.d.ts +0 -3
  181. package/dist/MetaItemLive/MetaItemLive.types.d.ts +0 -3
  182. package/dist/MetaItemLive/index.d.ts +0 -3
  183. package/dist/Popover/Popover.types.d.ts +0 -5
  184. package/dist/Popover/index.d.ts +0 -3
  185. package/dist/QuoteBlock/QuoteBlock.types.d.ts +0 -6
  186. package/dist/QuoteBlock/index.d.ts +0 -3
  187. package/dist/RawHtmlBlock/RawHtmlBlock.types.d.ts +0 -17
  188. package/dist/RawHtmlBlock/index.d.ts +0 -3
  189. package/dist/RelatedBlock/RelatedBlock.types.d.ts +0 -17
  190. package/dist/RelatedBlock/index.d.ts +0 -3
  191. package/dist/RelatedBook/RelatedBook.mock.d.ts +0 -65
  192. package/dist/RelatedBook/RelatedBook.types.d.ts +0 -4
  193. package/dist/RelatedBook/index.d.ts +0 -3
  194. package/dist/RelatedRichBlock/RelatedRichBlock.types.d.ts +0 -4
  195. package/dist/RelatedRichBlock/index.d.ts +0 -3
  196. package/dist/RenderBlocks/RenderBlocks.types.d.ts +0 -11
  197. package/dist/RenderBlocks/index.d.ts +0 -3
  198. package/dist/RichTitle/RichTitle.types.d.ts +0 -12
  199. package/dist/RichTitle/index.d.ts +0 -3
  200. package/dist/SensitiveBlock/SensitiveBlock.types.d.ts +0 -15
  201. package/dist/SensitiveBlock/index.d.ts +0 -3
  202. package/dist/ShopRelatedBlock/ShopRelatedBlock.types.d.ts +0 -4
  203. package/dist/ShopRelatedBlock/index.d.ts +0 -3
  204. package/dist/SimpleBlock/SimpleBlock.types.d.ts +0 -5
  205. package/dist/SimpleBlock/index.d.ts +0 -3
  206. package/dist/SimpleTitle/SimpleTitle.types.d.ts +0 -9
  207. package/dist/SimpleTitle/index.d.ts +0 -3
  208. package/dist/SourceBlock/SourceBlock.types.d.ts +0 -15
  209. package/dist/SourceBlock/index.d.ts +0 -3
  210. package/dist/Spoiler/Spoiler.types.d.ts +0 -4
  211. package/dist/Spoiler/index.d.ts +0 -3
  212. package/dist/Table/Table.types.d.ts +0 -25
  213. package/dist/Table/index.d.ts +0 -3
  214. package/dist/Tag/Tag.types.d.ts +0 -12
  215. package/dist/Tag/index.d.ts +0 -3
  216. package/dist/Timestamp/Timestamp.types.d.ts +0 -5
  217. package/dist/Timestamp/index.d.ts +0 -4
  218. package/dist/Toolbar/Toolbar.d.ts +0 -3
  219. package/dist/Toolbar/Toolbar.types.d.ts +0 -7
  220. package/dist/Toolbar/ToolbarItem.d.ts +0 -3
  221. package/dist/Toolbar/index.d.ts +0 -2
  222. package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -10
  223. package/dist/ToolbarButton/index.d.ts +0 -3
  224. package/dist/Tooltip/Tooltip.d.ts +0 -3
  225. package/dist/Tooltip/Tooltip.types.d.ts +0 -8
  226. package/dist/Tooltip/TooltipFooter.d.ts +0 -3
  227. package/dist/Tooltip/index.d.ts +0 -2
  228. package/dist/VersesBlock/VersesBlock.types.d.ts +0 -9
  229. package/dist/VersesBlock/index.d.ts +0 -3
  230. package/dist/constants.d.ts +0 -41
  231. package/dist/ui-kit-2.cjs.production.min.js +0 -2
  232. package/dist/ui-kit-2.cjs.production.min.js.map +0 -1
  233. package/dist/ui-kit-2.esm.js +0 -2756
  234. package/dist/ui-kit-2.esm.js.map +0 -1
  235. package/dist/ui-kit.css +0 -6452
  236. package/dist/utils/DangerousHtml.d.ts +0 -8
  237. package/dist/utils/capitalizeFirstLetter.d.ts +0 -1
  238. package/dist/utils/converCase.d.ts +0 -2
  239. package/dist/utils/generateGradient.d.ts +0 -2
  240. package/dist/utils/getElementPositionRelativeToViewport.d.ts +0 -2
  241. package/dist/utils/pluralize.d.ts +0 -2
  242. package/dist/utils/viewportSize.d.ts +0 -6
  243. package/src/vars-games.css +0 -62
  244. 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 <SimpleBlock block={block} styleContext={styleContext} id={block.id} />
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 <ChapterBlock block={block} styleContext={styleContext} id={block.id} />
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
  margin: 0 0 20px;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  position: relative;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface SensitiveBlockProps {
2
3
  block: {
3
4
  id: string
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  position: relative;
5
3
  z-index: 10;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface ShopRelatedBlockProps {
2
3
  block?: any
3
4
  styleContext?: any
@@ -1,6 +1,3 @@
1
- /* stylelint-disable declaration-empty-line-before */
2
- @import '../vars';
3
-
4
1
  span[data-body] {
5
2
  position: relative;
6
3
 
@@ -1,4 +1,4 @@
1
- @import '../vars.css';
1
+
2
2
  @import './FootnoteLink';
3
3
 
4
4
  .p {
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface SimpleBlockProps {
2
3
  block: any
3
4
  styleContext?: string[] | string
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  margin: 0 0 18px;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -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
- line-height: 26px;
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: 28px;
76
- line-height: 34px;
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(180deg,
126
- rgba(255, 255, 255, 0) 0%,
127
- #fff 64%);
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
  display: block;
5
3
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface SpoilerProps {
2
3
  block: any
3
4
  styleContext?: string[] | string
@@ -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;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  position: relative;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  margin: 15px 0;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: inline-block;
5
3
 
@@ -103,7 +101,7 @@
103
101
 
104
102
  .isInBookRelated {
105
103
  opacity: 0.5;
106
-
104
+
107
105
  @media $landscapeTablet {
108
106
  line-height: 20px;
109
107
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -2,7 +2,13 @@ import React from 'react'
2
2
 
3
3
  export type TagSizes = 'small' | 'large'
4
4
 
5
- export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'inherit' | 'custom'
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
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  font-family: $secondaryFont;
5
3
  font-weight: normal;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  overflow: hidden;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  position: relative;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  padding: 0;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -20,7 +20,10 @@ const Example: React.FC = () => {
20
20
  <>
21
21
  <div className={styles.root}>
22
22
  {mock.blocks.map((item) => (
23
- <VersesBlock block={item as VersesBlockProps['block']} key={item.id} />
23
+ <VersesBlock
24
+ block={item as VersesBlockProps['block']}
25
+ key={item.id}
26
+ />
24
27
  ))}
25
28
  </div>
26
29
  </>
@@ -9,7 +9,6 @@ export const VersesBlock: React.FC<VersesBlockProps> = ({
9
9
  block: { type, data, only_on: onlyOn },
10
10
  styleContext
11
11
  }) => {
12
-
13
12
  let classNames: ClassNames = [
14
13
  [styles.root, true],
15
14
  [styles[onlyOn], true],
@@ -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,4 +0,0 @@
1
- export interface AnnouncementInTextProps {
2
- styleContext: string[] | string;
3
- lang: 'ru' | 'en';
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { AnnouncementInTextProps } from './AnnouncementInText.types';
3
- export declare const AnnouncementInText: React.FC<AnnouncementInTextProps>;
@@ -1,6 +0,0 @@
1
- export interface BookmarkButtonProps {
2
- styleContext?: string | string[];
3
- theme?: string;
4
- isInBookmarks: boolean;
5
- onClick: () => void;
6
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { BookmarkButtonProps } from './BookmarkButton.types';
3
- export declare const BookmarkButton: React.FC<BookmarkButtonProps>;
@@ -1,11 +0,0 @@
1
- export interface CardTitleProps {
2
- block: {
3
- data: {
4
- index: number;
5
- text: string;
6
- only_on?: string;
7
- };
8
- id: string;
9
- };
10
- styleContext?: string;
11
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { CardTitleProps } from './CardTitle.types';
3
- export declare const CardTitle: React.FC<CardTitleProps>;
@@ -1,8 +0,0 @@
1
- export interface ChapterBlockProps {
2
- block: {
3
- data: string;
4
- only_on?: string;
5
- };
6
- styleContext?: string;
7
- id?: string;
8
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { ChapterBlockProps } from './ChapterBlock.types';
3
- export declare const ChapterBlock: React.FC<ChapterBlockProps>;
@@ -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
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { CoverProps } from './Cover.types';
3
- export declare const Cover: React.FC<CoverProps>;
@@ -1,6 +0,0 @@
1
- export interface DocumentItemsCountProps {
2
- type: 'podcast' | 'card';
3
- lang?: 'ru' | 'en';
4
- items: number;
5
- children?: JSX.Element[] | JSX.Element;
6
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { DocumentItemsCountProps } from './DocumentItemsCount.types';
3
- export declare const DocumentItemsCount: React.FC<DocumentItemsCountProps>;
@@ -1,4 +0,0 @@
1
- export interface DonatesTeaserProps {
2
- styleContext: string[] | string;
3
- lang: 'ru' | 'en';
4
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { DonatesTeaserProps } from './DonatesTeaser.types';
3
- export declare const DonatesTeaser: React.FC<DonatesTeaserProps>;