@meduza/ui-kit-2 0.8.3 → 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 +4 -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 -6448
  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
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.3",
2
+ "version": "0.8.5",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -16,8 +16,8 @@
16
16
  "node": ">=16"
17
17
  },
18
18
  "scripts": {
19
- "start": "dts watch --tsconfig ./tsconfig.build.json",
20
- "build": "dts build --tsconfig ./tsconfig.build.json",
19
+ "start": "dts watch --tsconfig ./tsconfig.build.json --mode development",
20
+ "build": "dts build --tsconfig ./tsconfig.build.json --mode production && node build.sh",
21
21
  "generate": "plop --plopfile generators/index.js",
22
22
  "test": "dts test --passWithNoTests",
23
23
  "test:watch": "dts test --watch",
@@ -64,12 +64,12 @@
64
64
  "@babel/preset-typescript": "^7.22.5",
65
65
  "@commitlint/cli": "^17.6.7",
66
66
  "@commitlint/config-conventional": "^17.6.7",
67
- "@storybook/addon-essentials": "^7.1.0",
68
- "@storybook/addon-links": "^7.1.0",
69
- "@storybook/addon-styling": "^1.3.4",
70
- "@storybook/addons": "^7.1.0",
71
- "@storybook/react": "^7.1.0",
72
- "@storybook/react-webpack5": "^7.1.0",
67
+ "@storybook/addon-essentials": "^8.4.2",
68
+ "@storybook/addon-links": "^8.4.2",
69
+ "@storybook/addon-styling-webpack": "^1.0.1",
70
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
71
+ "@storybook/react": "^8.4.2",
72
+ "@storybook/react-webpack5": "^8.4.2",
73
73
  "@testing-library/jest-dom": "^5.17.0",
74
74
  "@testing-library/react": "^14.0.0",
75
75
  "@types/jest": "29.5.3",
@@ -79,19 +79,21 @@
79
79
  "@typescript-eslint/parser": "^6.1.0",
80
80
  "babel-loader": "^9.1.3",
81
81
  "dayjs": "^1.11.9",
82
- "dts-cli": "^2.0.3",
82
+ "dts-cli": "^2.0.5",
83
83
  "eslint": "^8.45.0",
84
84
  "eslint-config-prettier": "^8.8.0",
85
85
  "eslint-plugin-jsx-a11y": "^6.7.1",
86
86
  "eslint-plugin-prettier": "^5.0.0",
87
87
  "eslint-plugin-react": "^7.32.2",
88
- "eslint-plugin-storybook": "^0.6.12",
88
+ "eslint-plugin-storybook": "^0.11.0",
89
89
  "husky": "^8.0.3",
90
90
  "identity-obj-proxy": "^3.0.0",
91
91
  "jest": "^29.6.1",
92
+ "jest-environment-jsdom": "^29.7.0",
92
93
  "lint-staged": "^13.2.3",
93
94
  "plop": "^3.1.2",
94
95
  "postcss": "^8.4.26",
96
+ "postcss-cli": "^11.0.0",
95
97
  "postcss-import": "^15.0.1",
96
98
  "postcss-loader": "^7.3.3",
97
99
  "postcss-modules": "^6.0.0",
@@ -106,9 +108,9 @@
106
108
  "react-is": "^18.2.0",
107
109
  "react-router-dom": "^6.14.2",
108
110
  "rollup-plugin-postcss": "^4.0.2",
109
- "storybook": "^7.1.0",
110
- "storybook-addon-react-docgen": "^1.2.43",
111
- "storybook-addon-react-router-v6": "^1.0.2",
111
+ "storybook": "^8.4.2",
112
+ "storybook-addon-react-docgen": "^1.2.44",
113
+ "storybook-addon-remix-react-router": "^3.0.1",
112
114
  "stylelint": "^15.10.2",
113
115
  "stylelint-config-rational-order": "^0.1.2",
114
116
  "stylelint-config-sass-guidelines": "^10.0.0",
@@ -120,6 +122,5 @@
120
122
  "typescript": "^5.1.6",
121
123
  "typescript-plugin-css-modules": "^5.0.1",
122
124
  "utils": "^0.3.1"
123
- },
124
- "dependencies": {}
125
+ }
125
126
  }
package/src/.DS_Store ADDED
Binary file
@@ -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
  }
@@ -22,8 +22,7 @@ export const AnnouncementInText: React.FC<AnnouncementInTextProps> = ({
22
22
  ru: {
23
23
  title:
24
24
  '&laquo;Медуза&raquo; заблокирована в&nbsp;России. Мы&nbsp;были к&nbsp;этому готовы&nbsp;&mdash; и&nbsp;продолжаем работать. Несмотря&nbsp;ни&nbsp;на&nbsp;что',
25
- text:
26
- '<p>Нам нужна ваша помощь как никогда. Прямо сейчас. Дальше всем нам будет еще труднее. Мы&nbsp;независимое издание и&nbsp;работаем только в&nbsp;интересах читателей.</p>',
25
+ text: '<p>Нам нужна ваша помощь как никогда. Прямо сейчас. Дальше всем нам будет еще труднее. Мы&nbsp;независимое издание и&nbsp;работаем только в&nbsp;интересах читателей.</p>',
27
26
  button: 'Хочу помочь',
28
27
  href: 'https://mdza.io/yiNxPZ7Bs-k'
29
28
  },
@@ -31,8 +30,7 @@ export const AnnouncementInText: React.FC<AnnouncementInTextProps> = ({
31
30
  en: {
32
31
  title:
33
32
  'Meduza has been blocked in Russia. We&nbsp;were ready for this and our work continues, no matter what, but we need your support like never before. ',
34
- text:
35
- '<p>We need it now. Tomorrow could be too late. We are an independent publication, and we work only in the interests of our readers. Many&nbsp;of&nbsp;our&nbsp;readers in Russia can no longer contribute, so we turn to you, our audience around the world.</p>',
33
+ text: '<p>We need it now. Tomorrow could be too late. We are an independent publication, and we work only in the interests of our readers. Many&nbsp;of&nbsp;our&nbsp;readers in Russia can no longer contribute, so we turn to you, our audience around the world.</p>',
36
34
  button: 'I want to help',
37
35
  href: 'https://support.meduza.io/en'
38
36
  }
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  color: #e0e0e0;
5
3
  }
@@ -1,4 +1,4 @@
1
- @import '../vars.css';
1
+
2
2
 
3
3
  .root {
4
4
  display: block;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
 
@@ -1,12 +1,14 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  margin-bottom: 11px;
5
3
 
4
+ scroll-margin: 40px;
5
+
6
6
  @media $landscapeTablet {
7
7
  margin-bottom: 10px;
8
8
 
9
9
  text-align: center;
10
+
11
+ scroll-margin: 70px;
10
12
  }
11
13
  }
12
14
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -6,7 +6,7 @@ import styles from './CardTitle.module.css'
6
6
  export const CardTitle: React.FC<CardTitleProps> = ({
7
7
  block: {
8
8
  data: { only_on: onlyOn, index, text },
9
- id,
9
+ id
10
10
  },
11
11
  styleContext
12
12
  }) => {
@@ -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
  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
  import { OptimizedImageItem } from '../types'
2
3
 
3
4
  export interface CoverProps {
@@ -38,7 +38,10 @@ export const Cover: React.FC<CoverProps> = ({
38
38
 
39
39
  classNames = makeStyleContext(classNames, theme, styles)
40
40
 
41
- style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom')
41
+ style.backgroundImage = generateGradient(
42
+ gradients.bg_rgb,
43
+ 'mediaBlockBottom'
44
+ )
42
45
  }
43
46
 
44
47
  const renderCC = (context?: string): JSX.Element => (
@@ -1,6 +1,3 @@
1
- /* stylelint-disable declaration-empty-line-before */
2
- @import '../vars';
3
-
4
1
  .root {
5
2
  display: inline;
6
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
  z-index: 10;
@@ -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
  position: relative;
5
3
  z-index: auto;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -20,7 +20,10 @@ export const Dropdown: React.FC<DropdownProps> = ({
20
20
  }) => {
21
21
  let classNames: ClassNames = [
22
22
  [styles.root, true],
23
- [styles.inactive, !active && styleContext === "isPodcastSeason" && !!styles.inactive]
23
+ [
24
+ styles.inactive,
25
+ !active && styleContext === 'isPodcastSeason' && !!styles.inactive
26
+ ]
24
27
  ]
25
28
 
26
29
  if (styleContext) {
@@ -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
  import React from 'react'
2
3
  export interface EmbedGifProps {
3
4
  gif: string
@@ -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
  max-width: 644px;
5
3
  margin: 15px auto 0;
@@ -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 GroupedBlockProps {
2
3
  block: any
3
4
  styleContext?: string[] | string
@@ -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
  max-width: 1005px;
5
3
  margin: 0 auto;
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface HalfBlockProps {
2
3
  block: any
3
4
  styleContext?: string[] | string
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  position: relative;
5
3
  z-index: 1;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,4 +1,4 @@
1
- @import '../vars.css';
1
+
2
2
 
3
3
  .root {
4
4
  margin: 18px 0;
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -6,7 +6,6 @@ import { ImportantLeadProps } from './ImportantLead.types'
6
6
  import mock from './mock.json'
7
7
 
8
8
  describe('Important Lead', () => {
9
-
10
9
  const renderComponent = () =>
11
10
  render(
12
11
  <div>
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  export interface ImportantLeadProps {
2
3
  block: any
3
4
  styleContext?: string[] | string
@@ -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
  margin: calc(15rem / 16) 0;
5
3
  padding: 0;
@@ -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-bottom: 30px;
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
  font-family: $secondaryFont;
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
  font-size: 12px;
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
  import React from 'react'
2
3
  import { CallToActions } from '../types'
3
4
  export interface MetaContainerProps {
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: inline;
5
3
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3
  }
@@ -1,6 +1,3 @@
1
- /* stylelint-disable declaration-empty-line-before */
2
- @import '../vars.css';
3
-
4
1
  .root {
5
2
  position: relative;
6
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: fixed;
5
3
  z-index: $zIndex-10;
@@ -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
  display: block;
5
3
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { ImageProps } from '../Image/Image.types'
2
3
  import { CallToActions, LightboxContext } from '../types'
3
4
 
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  margin: 16px 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
  position: relative;
5
3
  z-index: 1;
@@ -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 RelatedBookProps {
2
3
  block: any
3
4
  styleContext: any
@@ -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 RelatedRichBlockProps {
2
3
  block?: any
3
4
  styleContext?: any
@@ -1,5 +1,3 @@
1
- @import '../vars.css';
2
-
3
1
  .root {
4
2
  display: block;
5
3