@redocly/theme 0.18.3-patch.8 → 0.18.4

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 (434) hide show
  1. package/lib/I18n/LanguagePicker.d.ts +2 -7
  2. package/lib/I18n/LanguagePicker.js +12 -27
  3. package/lib/I18n/index.d.ts +0 -1
  4. package/lib/I18n/index.js +0 -15
  5. package/lib/components/Breadcrumbs/Breadcrumb.js +5 -2
  6. package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -6
  7. package/lib/components/Breadcrumbs/index.d.ts +0 -1
  8. package/lib/components/Breadcrumbs/index.js +0 -1
  9. package/lib/components/Button/Button.d.ts +3 -6
  10. package/lib/components/Button/Button.js +41 -41
  11. package/lib/components/Button/index.d.ts +0 -1
  12. package/lib/components/Button/index.js +0 -1
  13. package/lib/components/Catalog/Catalog.d.ts +0 -6
  14. package/lib/components/Catalog/Catalog.js +103 -108
  15. package/lib/components/Catalog/CatalogCard.js +58 -89
  16. package/lib/components/Catalog/index.d.ts +3 -4
  17. package/lib/components/Catalog/index.js +3 -4
  18. package/lib/components/CodeBlock/CodeBlockContainer.js +10 -38
  19. package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -3
  20. package/lib/components/CodeBlock/CodeBlockControlButton.js +19 -5
  21. package/lib/components/CodeBlock/CodeBlockControls.js +5 -8
  22. package/lib/components/CodeBlock/index.d.ts +0 -1
  23. package/lib/components/CodeBlock/index.js +0 -1
  24. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +1 -0
  25. package/lib/components/Dropdown/Dropdown.d.ts +3 -9
  26. package/lib/components/Dropdown/Dropdown.js +4 -7
  27. package/lib/components/Dropdown/index.d.ts +0 -1
  28. package/lib/components/Dropdown/index.js +0 -1
  29. package/lib/components/EditPageButton/EditPageButton.js +1 -5
  30. package/lib/components/Feedback/Comment.js +0 -5
  31. package/lib/components/Feedback/Rating.js +1 -5
  32. package/lib/components/Feedback/Reasons.js +1 -6
  33. package/lib/components/Feedback/Sentiment.js +0 -5
  34. package/lib/components/Feedback/Thumbs.js +4 -4
  35. package/lib/components/Filter/Filter.d.ts +1 -3
  36. package/lib/components/Filter/Filter.js +80 -113
  37. package/lib/components/Filter/index.d.ts +0 -2
  38. package/lib/components/Filter/index.js +0 -2
  39. package/lib/components/Footer/CustomFooterNavItem.js +1 -1
  40. package/lib/components/Footer/Footer.d.ts +3 -4
  41. package/lib/components/Footer/Footer.js +10 -28
  42. package/lib/components/Footer/FooterColumn.d.ts +3 -3
  43. package/lib/components/Footer/FooterColumn.js +63 -55
  44. package/lib/components/Footer/FooterColumns.js +4 -6
  45. package/lib/components/Footer/FooterCopyright.js +6 -11
  46. package/lib/components/Footer/index.d.ts +0 -1
  47. package/lib/components/Footer/index.js +0 -1
  48. package/lib/components/JsonViewer/JsonViewer.js +2 -2
  49. package/lib/components/LastUpdated/LastUpdated.js +0 -1
  50. package/lib/components/Markdown/Admonition.js +9 -12
  51. package/lib/components/Markdown/MarkdownWrapper.js +4 -2
  52. package/lib/components/Markdown/Mermaid.js +1 -4
  53. package/lib/components/Markdown/index.d.ts +0 -1
  54. package/lib/components/Markdown/index.js +0 -1
  55. package/lib/components/Menu/Menu.js +7 -5
  56. package/lib/components/Menu/MenuGroup.js +7 -12
  57. package/lib/components/Menu/MenuItemLabel.js +13 -9
  58. package/lib/components/Menu/MobileMenu.js +25 -20
  59. package/lib/components/Menu/MobileMenuGroup.js +1 -1
  60. package/lib/components/Menu/index.d.ts +0 -1
  61. package/lib/components/Menu/index.js +0 -1
  62. package/lib/components/{Profile → Navbar}/MobileUserProfile.js +24 -12
  63. package/lib/components/Navbar/Navbar.js +11 -10
  64. package/lib/components/Navbar/NavbarItem.d.ts +1 -1
  65. package/lib/components/Navbar/NavbarItem.js +4 -11
  66. package/lib/components/Navbar/NavbarMenu.js +2 -2
  67. package/lib/components/Navbar/index.d.ts +0 -1
  68. package/lib/components/Navbar/index.js +0 -1
  69. package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
  70. package/lib/components/NavbarLogo/NavbarLogo.js +5 -13
  71. package/lib/components/NavbarLogo/index.d.ts +0 -1
  72. package/lib/components/NavbarLogo/index.js +0 -1
  73. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
  74. package/lib/components/OpenApiDocs/Dropdown.js +3 -3
  75. package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
  76. package/lib/components/OperationBadge/OperationBadge.js +68 -0
  77. package/lib/components/OperationBadge/index.d.ts +1 -0
  78. package/lib/{icons/LanguageIcon → components/OperationBadge}/index.js +1 -1
  79. package/lib/components/Panel/PanelHeader.js +0 -2
  80. package/lib/components/Panel/PanelHeaderTitle.js +4 -0
  81. package/lib/components/Panel/index.d.ts +0 -1
  82. package/lib/components/Panel/index.js +0 -1
  83. package/lib/components/Product/ProductPicker.js +5 -17
  84. package/lib/components/Product/index.d.ts +0 -1
  85. package/lib/components/Product/index.js +0 -1
  86. package/lib/components/Profile/LoginLink.js +2 -1
  87. package/lib/components/Profile/Profile.js +22 -3
  88. package/lib/components/Profile/UserProfile.js +9 -21
  89. package/lib/components/Profile/index.d.ts +0 -1
  90. package/lib/components/Profile/index.js +0 -15
  91. package/lib/components/Search/CancelSearch.js +14 -2
  92. package/lib/components/Search/ProductTag.js +8 -8
  93. package/lib/components/Search/RecentSearches.js +5 -5
  94. package/lib/components/Search/Search.js +2 -0
  95. package/lib/components/Search/SearchIcon.js +2 -2
  96. package/lib/components/Search/SearchItem.js +4 -4
  97. package/lib/components/Search/SearchTrigger.js +5 -4
  98. package/lib/components/Search/ShortcutKey.js +5 -1
  99. package/lib/components/Search/SuggestedPages.js +3 -3
  100. package/lib/components/Search/index.d.ts +0 -1
  101. package/lib/components/Search/index.js +0 -1
  102. package/lib/components/Select/Select.d.ts +9 -21
  103. package/lib/components/Select/Select.js +17 -28
  104. package/lib/components/Select/index.d.ts +0 -1
  105. package/lib/components/Select/index.js +0 -1
  106. package/lib/components/Separator/Separator.js +3 -11
  107. package/lib/components/Separator/SeparatorItem.js +9 -6
  108. package/lib/components/Separator/SeparatorLine.js +3 -7
  109. package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
  110. package/lib/components/Sidebar/ApiCallItem.js +13 -17
  111. package/lib/components/Sidebar/FooterWrapper.js +4 -3
  112. package/lib/components/Sidebar/HeaderWrapper.js +3 -3
  113. package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
  114. package/lib/components/Sidebar/VersionPicker.js +4 -5
  115. package/lib/components/Sidebar/index.d.ts +0 -1
  116. package/lib/components/Sidebar/index.js +0 -1
  117. package/lib/components/Sidebar/types.d.ts +0 -1
  118. package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -41
  119. package/lib/components/SidebarActions/styled.js +21 -29
  120. package/lib/components/TableOfContent/TableOfContent.js +3 -2
  121. package/lib/components/TableOfContent/index.d.ts +0 -1
  122. package/lib/components/TableOfContent/index.js +0 -1
  123. package/lib/components/Tabs/Tab.js +1 -1
  124. package/lib/components/Tabs/Tabs.js +1 -1
  125. package/lib/components/Tags/Tags.d.ts +5 -0
  126. package/lib/components/Tags/Tags.js +32 -0
  127. package/lib/components/Tags/index.d.ts +1 -0
  128. package/lib/components/{Image → Tags}/index.js +1 -1
  129. package/lib/components/Tiles/ThinTile.js +5 -7
  130. package/lib/components/Tiles/TileHeader.js +1 -1
  131. package/lib/components/Tiles/TileText.js +1 -1
  132. package/lib/components/Tiles/WideTile.js +8 -10
  133. package/lib/components/Tooltip/index.d.ts +0 -1
  134. package/lib/components/Tooltip/index.js +0 -1
  135. package/lib/components/Typography/SectionHeader.js +2 -2
  136. package/lib/components/Typography/Typography.js +1 -1
  137. package/lib/components/index.d.ts +2 -1
  138. package/lib/components/index.js +2 -1
  139. package/lib/config.d.ts +0 -113
  140. package/lib/config.js +3 -27
  141. package/lib/globalStyle.js +1983 -602
  142. package/lib/hooks/useMobileMenu.js +6 -5
  143. package/lib/icons/AlertIcon/AlertIcon.js +5 -0
  144. package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
  145. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
  146. package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
  147. package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
  148. package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
  149. package/lib/icons/CopyIcon/CopyIcon.js +4 -4
  150. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
  151. package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
  152. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
  153. package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
  154. package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
  155. package/lib/icons/FileIcon/FileIcon.js +2 -2
  156. package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
  157. package/lib/icons/ReportIcon/ReportIcon.js +3 -3
  158. package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
  159. package/lib/icons/SelectIcon/SelectIcon.js +5 -5
  160. package/lib/icons/index.d.ts +0 -4
  161. package/lib/icons/index.js +0 -4
  162. package/lib/layouts/Forbidden.js +0 -4
  163. package/lib/layouts/NotFound.js +0 -4
  164. package/lib/types/portal/src/shared/types/catalog.d.ts +1 -5
  165. package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
  166. package/lib/ui/ArrowBack.js +1 -0
  167. package/lib/ui/Burger.js +1 -1
  168. package/lib/ui/Dropdown.js +7 -7
  169. package/lib/ui/Highlight.d.ts +1 -1
  170. package/lib/ui/Highlight.js +1 -1
  171. package/lib/ui/Jumbotron.js +1 -1
  172. package/lib/ui/darkColors.js +84 -217
  173. package/lib/utils/css-variables.js +1 -1
  174. package/lib/utils/index.d.ts +0 -1
  175. package/lib/utils/index.js +0 -1
  176. package/package.json +1 -1
  177. package/src/I18n/LanguagePicker.tsx +21 -48
  178. package/src/I18n/index.ts +0 -1
  179. package/src/components/Breadcrumbs/Breadcrumb.tsx +5 -2
  180. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -6
  181. package/src/components/Breadcrumbs/index.ts +0 -1
  182. package/src/components/Button/Button.tsx +47 -53
  183. package/src/components/Button/index.ts +0 -1
  184. package/src/components/Catalog/Catalog.tsx +120 -135
  185. package/src/components/Catalog/CatalogCard.tsx +58 -106
  186. package/src/components/Catalog/index.tsx +3 -0
  187. package/src/components/CodeBlock/CodeBlockContainer.tsx +9 -17
  188. package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
  189. package/src/components/CodeBlock/CodeBlockControls.tsx +5 -8
  190. package/src/components/CodeBlock/index.ts +0 -1
  191. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -0
  192. package/src/components/Dropdown/Dropdown.tsx +5 -14
  193. package/src/components/Dropdown/index.ts +0 -1
  194. package/src/components/EditPageButton/EditPageButton.tsx +1 -5
  195. package/src/components/Feedback/Comment.tsx +0 -5
  196. package/src/components/Feedback/Rating.tsx +1 -5
  197. package/src/components/Feedback/Reasons.tsx +1 -6
  198. package/src/components/Feedback/Sentiment.tsx +0 -5
  199. package/src/components/Feedback/Thumbs.tsx +4 -4
  200. package/src/components/Filter/Filter.tsx +94 -150
  201. package/src/components/Filter/index.ts +0 -2
  202. package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
  203. package/src/components/Footer/Footer.tsx +10 -32
  204. package/src/components/Footer/FooterColumn.tsx +63 -82
  205. package/src/components/Footer/FooterColumns.tsx +4 -6
  206. package/src/components/Footer/FooterCopyright.tsx +7 -13
  207. package/src/components/Footer/index.ts +0 -1
  208. package/src/components/JsonViewer/JsonViewer.tsx +2 -2
  209. package/src/components/LastUpdated/LastUpdated.tsx +2 -1
  210. package/src/components/Markdown/Admonition.tsx +8 -13
  211. package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
  212. package/src/components/Markdown/Mermaid.tsx +1 -4
  213. package/src/components/Markdown/index.ts +0 -1
  214. package/src/components/Menu/Menu.tsx +7 -5
  215. package/src/components/Menu/MenuGroup.tsx +7 -15
  216. package/src/components/Menu/MenuItemLabel.tsx +13 -9
  217. package/src/components/Menu/MobileMenu.tsx +25 -20
  218. package/src/components/Menu/MobileMenuGroup.tsx +1 -1
  219. package/src/components/Menu/index.ts +0 -1
  220. package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +29 -12
  221. package/src/components/Navbar/Navbar.tsx +11 -10
  222. package/src/components/Navbar/NavbarItem.tsx +4 -13
  223. package/src/components/Navbar/NavbarMenu.tsx +2 -2
  224. package/src/components/Navbar/index.ts +0 -1
  225. package/src/components/NavbarLogo/NavbarLogo.tsx +11 -24
  226. package/src/components/NavbarLogo/index.ts +0 -1
  227. package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
  228. package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
  229. package/src/components/OperationBadge/OperationBadge.ts +62 -0
  230. package/src/components/OperationBadge/index.ts +1 -0
  231. package/src/components/Panel/PanelHeader.ts +0 -2
  232. package/src/components/Panel/PanelHeaderTitle.ts +4 -0
  233. package/src/components/Panel/index.ts +0 -1
  234. package/src/components/Product/ProductPicker.tsx +13 -18
  235. package/src/components/Product/index.ts +0 -1
  236. package/src/components/Profile/LoginLink.tsx +2 -1
  237. package/src/components/Profile/Profile.tsx +24 -1
  238. package/src/components/Profile/UserProfile.tsx +8 -20
  239. package/src/components/Profile/index.ts +0 -1
  240. package/src/components/Search/CancelSearch.tsx +15 -2
  241. package/src/components/Search/ProductTag.tsx +8 -8
  242. package/src/components/Search/RecentSearches.tsx +5 -5
  243. package/src/components/Search/Search.tsx +2 -0
  244. package/src/components/Search/SearchIcon.tsx +5 -10
  245. package/src/components/Search/SearchItem.tsx +4 -4
  246. package/src/components/Search/SearchTrigger.tsx +5 -4
  247. package/src/components/Search/ShortcutKey.tsx +5 -1
  248. package/src/components/Search/SuggestedPages.tsx +3 -3
  249. package/src/components/Search/index.ts +0 -1
  250. package/src/components/Select/Select.tsx +31 -66
  251. package/src/components/Select/index.ts +0 -1
  252. package/src/components/Separator/Separator.tsx +3 -17
  253. package/src/components/Separator/SeparatorItem.tsx +9 -6
  254. package/src/components/Separator/SeparatorLine.tsx +3 -7
  255. package/src/components/Sidebar/ApiCallItem.tsx +13 -17
  256. package/src/components/Sidebar/FooterWrapper.tsx +4 -3
  257. package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
  258. package/src/components/Sidebar/VersionPicker.tsx +4 -5
  259. package/src/components/Sidebar/index.ts +0 -1
  260. package/src/components/Sidebar/types.ts +0 -1
  261. package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -22
  262. package/src/components/SidebarActions/styled.tsx +30 -29
  263. package/src/components/TableOfContent/TableOfContent.tsx +3 -2
  264. package/src/components/TableOfContent/index.ts +0 -1
  265. package/src/components/Tabs/Tab.tsx +1 -1
  266. package/src/components/Tabs/Tabs.tsx +1 -1
  267. package/src/components/Tags/Tags.tsx +36 -0
  268. package/src/components/Tags/index.ts +1 -0
  269. package/src/components/Tiles/ThinTile.tsx +5 -7
  270. package/src/components/Tiles/TileHeader.ts +1 -1
  271. package/src/components/Tiles/TileText.tsx +1 -1
  272. package/src/components/Tiles/WideTile.tsx +8 -10
  273. package/src/components/Tooltip/index.ts +0 -1
  274. package/src/components/Typography/SectionHeader.ts +2 -2
  275. package/src/components/Typography/Typography.ts +1 -1
  276. package/src/components/index.ts +2 -1
  277. package/src/config.ts +1 -30
  278. package/src/globalStyle.ts +1999 -597
  279. package/src/hooks/useMobileMenu.ts +4 -3
  280. package/src/icons/AlertIcon/AlertIcon.tsx +5 -0
  281. package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
  282. package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
  283. package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
  284. package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
  285. package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
  286. package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
  287. package/src/icons/FileIcon/FileIcon.tsx +3 -2
  288. package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
  289. package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
  290. package/src/icons/index.ts +0 -4
  291. package/src/layouts/Forbidden.tsx +0 -4
  292. package/src/layouts/NotFound.tsx +0 -4
  293. package/src/types/portal/src/shared/types/catalog.ts +1 -7
  294. package/src/types/portal/src/shared/types/nav.ts +0 -5
  295. package/src/ui/ArrowBack.tsx +1 -0
  296. package/src/ui/Burger.tsx +1 -1
  297. package/src/ui/Dropdown.tsx +7 -7
  298. package/src/ui/Highlight.tsx +2 -2
  299. package/src/ui/Jumbotron.tsx +1 -1
  300. package/src/ui/darkColors.tsx +84 -217
  301. package/src/utils/css-variables.ts +2 -4
  302. package/src/utils/index.ts +0 -1
  303. package/lib/I18n/styledVariables.d.ts +0 -1
  304. package/lib/I18n/styledVariables.js +0 -40
  305. package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
  306. package/lib/components/Breadcrumbs/styledVariables.js +0 -20
  307. package/lib/components/Button/styledVariables.d.ts +0 -1
  308. package/lib/components/Button/styledVariables.js +0 -107
  309. package/lib/components/Catalog/styledVariables.d.ts +0 -1
  310. package/lib/components/Catalog/styledVariables.js +0 -96
  311. package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
  312. package/lib/components/CodeBlock/styledVariables.js +0 -92
  313. package/lib/components/Dropdown/styledVariables.d.ts +0 -1
  314. package/lib/components/Dropdown/styledVariables.js +0 -30
  315. package/lib/components/Filter/FilterContent.d.ts +0 -13
  316. package/lib/components/Filter/FilterContent.js +0 -60
  317. package/lib/components/Filter/FilterPopover.d.ts +0 -13
  318. package/lib/components/Filter/FilterPopover.js +0 -109
  319. package/lib/components/Filter/FilterTag.d.ts +0 -7
  320. package/lib/components/Filter/FilterTag.js +0 -33
  321. package/lib/components/Filter/FilterTags.d.ts +0 -7
  322. package/lib/components/Filter/FilterTags.js +0 -29
  323. package/lib/components/Filter/styledVariables.d.ts +0 -1
  324. package/lib/components/Filter/styledVariables.js +0 -112
  325. package/lib/components/Footer/styledVariables.d.ts +0 -1
  326. package/lib/components/Footer/styledVariables.js +0 -61
  327. package/lib/components/Image/Image.d.ts +0 -9
  328. package/lib/components/Image/Image.js +0 -31
  329. package/lib/components/Image/index.d.ts +0 -1
  330. package/lib/components/LastUpdated/index.d.ts +0 -1
  331. package/lib/components/LastUpdated/index.js +0 -18
  332. package/lib/components/LastUpdated/styledVariables.d.ts +0 -1
  333. package/lib/components/LastUpdated/styledVariables.js +0 -11
  334. package/lib/components/Markdown/styledVariables.d.ts +0 -3
  335. package/lib/components/Markdown/styledVariables.js +0 -231
  336. package/lib/components/Menu/styledVariables.d.ts +0 -2
  337. package/lib/components/Menu/styledVariables.js +0 -101
  338. package/lib/components/Navbar/styledVariables.d.ts +0 -1
  339. package/lib/components/Navbar/styledVariables.js +0 -43
  340. package/lib/components/NavbarLogo/styledVariables.d.ts +0 -1
  341. package/lib/components/NavbarLogo/styledVariables.js +0 -18
  342. package/lib/components/Panel/styledVariables.d.ts +0 -2
  343. package/lib/components/Panel/styledVariables.js +0 -481
  344. package/lib/components/Product/styledVariables.d.ts +0 -2
  345. package/lib/components/Product/styledVariables.js +0 -41
  346. package/lib/components/Profile/UserProfileData.d.ts +0 -9
  347. package/lib/components/Profile/UserProfileData.js +0 -35
  348. package/lib/components/Profile/styledVariables.d.ts +0 -2
  349. package/lib/components/Profile/styledVariables.js +0 -55
  350. package/lib/components/Search/styledVariables.d.ts +0 -1
  351. package/lib/components/Search/styledVariables.js +0 -98
  352. package/lib/components/Select/styledVariables.d.ts +0 -1
  353. package/lib/components/Select/styledVariables.js +0 -34
  354. package/lib/components/Sidebar/styledVariables.d.ts +0 -2
  355. package/lib/components/Sidebar/styledVariables.js +0 -216
  356. package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
  357. package/lib/components/TableOfContent/styledVariables.js +0 -46
  358. package/lib/components/Tag/Tag.d.ts +0 -18
  359. package/lib/components/Tag/Tag.js +0 -45
  360. package/lib/components/Tag/index.d.ts +0 -2
  361. package/lib/components/Tag/index.js +0 -19
  362. package/lib/components/Tag/styledVariables.d.ts +0 -1
  363. package/lib/components/Tag/styledVariables.js +0 -136
  364. package/lib/components/Tooltip/styledVariables.d.ts +0 -1
  365. package/lib/components/Tooltip/styledVariables.js +0 -21
  366. package/lib/hooks/useModalScrollLock.d.ts +0 -1
  367. package/lib/hooks/useModalScrollLock.js +0 -16
  368. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
  369. package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
  370. package/lib/icons/CheckboxIcon/index.d.ts +0 -1
  371. package/lib/icons/CheckboxIcon/index.js +0 -6
  372. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
  373. package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
  374. package/lib/icons/ErrorIcon/index.d.ts +0 -1
  375. package/lib/icons/ErrorIcon/index.js +0 -18
  376. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
  377. package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
  378. package/lib/icons/LanguageIcon/index.d.ts +0 -1
  379. package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
  380. package/lib/icons/PlusIcon/PlusIcon.js +0 -16
  381. package/lib/icons/PlusIcon/index.d.ts +0 -1
  382. package/lib/icons/PlusIcon/index.js +0 -18
  383. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
  384. package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
  385. package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
  386. package/lib/icons/PointingArrowIcon/index.js +0 -18
  387. package/lib/utils/tags-parser.d.ts +0 -1
  388. package/lib/utils/tags-parser.js +0 -10
  389. package/src/I18n/styledVariables.ts +0 -37
  390. package/src/components/Breadcrumbs/styledVariables.ts +0 -17
  391. package/src/components/Button/styledVariables.ts +0 -104
  392. package/src/components/Catalog/index.ts +0 -4
  393. package/src/components/Catalog/styledVariables.ts +0 -93
  394. package/src/components/CodeBlock/styledVariables.ts +0 -89
  395. package/src/components/Dropdown/styledVariables.ts +0 -27
  396. package/src/components/Filter/FilterContent.tsx +0 -95
  397. package/src/components/Filter/FilterPopover.tsx +0 -150
  398. package/src/components/Filter/FilterTag.tsx +0 -37
  399. package/src/components/Filter/FilterTags.tsx +0 -39
  400. package/src/components/Filter/styledVariables.ts +0 -109
  401. package/src/components/Footer/styledVariables.ts +0 -58
  402. package/src/components/Image/Image.tsx +0 -47
  403. package/src/components/Image/index.ts +0 -1
  404. package/src/components/LastUpdated/index.ts +0 -1
  405. package/src/components/LastUpdated/styledVariables.ts +0 -8
  406. package/src/components/Markdown/styledVariables.ts +0 -230
  407. package/src/components/Menu/styledVariables.ts +0 -99
  408. package/src/components/Navbar/styledVariables.ts +0 -40
  409. package/src/components/NavbarLogo/styledVariables.ts +0 -15
  410. package/src/components/Panel/styledVariables.ts +0 -479
  411. package/src/components/Product/styledVariables.ts +0 -39
  412. package/src/components/Profile/UserProfileData.tsx +0 -40
  413. package/src/components/Profile/styledVariables.ts +0 -53
  414. package/src/components/Search/styledVariables.ts +0 -95
  415. package/src/components/Select/styledVariables.ts +0 -31
  416. package/src/components/Sidebar/styledVariables.ts +0 -214
  417. package/src/components/TableOfContent/styledVariables.ts +0 -43
  418. package/src/components/Tag/Tag.tsx +0 -71
  419. package/src/components/Tag/index.ts +0 -2
  420. package/src/components/Tag/styledVariables.ts +0 -133
  421. package/src/components/Tooltip/styledVariables.ts +0 -18
  422. package/src/hooks/useModalScrollLock.ts +0 -12
  423. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
  424. package/src/icons/CheckboxIcon/index.ts +0 -1
  425. package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
  426. package/src/icons/ErrorIcon/index.ts +0 -1
  427. package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
  428. package/src/icons/LanguageIcon/index.ts +0 -1
  429. package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
  430. package/src/icons/PlusIcon/index.ts +0 -1
  431. package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
  432. package/src/icons/PointingArrowIcon/index.ts +0 -1
  433. package/src/utils/tags-parser.ts +0 -8
  434. /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
@@ -3,14 +3,15 @@ import { useLocation } from 'react-router-dom';
3
3
 
4
4
  import type { Dispatch, SetStateAction } from 'react';
5
5
 
6
- import useModalScrollLock from '@theme/hooks/useModalScrollLock';
7
-
8
6
  export function useMobileMenu(initialState = false): [boolean, Dispatch<SetStateAction<boolean>>] {
9
7
  const location = useLocation();
10
8
  const [isOpen, setIsOpen] = useState(initialState);
11
9
 
12
10
  useEffect(() => setIsOpen(false), [location.pathname, location.hash]);
13
- useModalScrollLock(isOpen);
11
+ useEffect(() => {
12
+ if (isOpen) document.body.classList.add('overflow-hidden');
13
+ else document.body.classList.remove('overflow-hidden');
14
+ }, [isOpen]);
14
15
 
15
16
  return [isOpen, setIsOpen];
16
17
  }
@@ -98,8 +98,13 @@ function Icon({ type, className }: AlertIconProps) {
98
98
  export const AlertIcon = styled(Icon).attrs(() => ({
99
99
  'data-component-name': 'icons/AlertIcon/AlertIcon',
100
100
  }))`
101
+ position: absolute;
102
+ left: var(--admonition-padding-horizontal);
103
+ top: 50%;
104
+ transform: translateY(-50%);
101
105
  width: var(--admonition-icon-size);
102
106
  height: var(--admonition-icon-size);
107
+ margin-right: var(--admonition-padding-horizontal);
103
108
  flex-shrink: 0;
104
109
 
105
110
  fill: ${({ type }) => `var(--admonition-${type}-icon-color)`};
@@ -34,7 +34,7 @@ const Icon = ({ className, weight }: ArrowIconProps) => (
34
34
  >
35
35
  <path
36
36
  d="M8 11L3 5.99999L3.7 5.29999L8 9.59999L12.3 5.29999L13 5.99999L8 11Z"
37
- fill="currentColor"
37
+ fill="inherit"
38
38
  />
39
39
  </svg>
40
40
  ) : (
@@ -6,7 +6,7 @@ interface IconProps {
6
6
  color?: string;
7
7
  }
8
8
 
9
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
10
10
  <svg
11
11
  data-component-name="icons/CollapseIcon"
12
12
  viewBox="0 0 14 14"
@@ -18,11 +18,11 @@ const Icon = ({ className }: IconProps) => (
18
18
  <rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
19
19
  <path
20
20
  d="M1.75 7.875V8.75H4.63138L0.875 12.5046L1.49363 13.125L5.25 9.36862V12.25H6.125V7.875H1.75Z"
21
- fill="currentColor"
21
+ fill={color}
22
22
  />
23
23
  <path
24
24
  d="M13.125 1.4945L12.509 0.875L8.75 4.63138V1.75H7.875V6.125H12.25V5.25H9.36862L13.125 1.4945Z"
25
- fill="currentColor"
25
+ fill={color}
26
26
  />
27
27
  </g>
28
28
  <defs>
@@ -34,7 +34,7 @@ const Icon = ({ className }: IconProps) => (
34
34
  );
35
35
 
36
36
  export const CollapseIcon = styled(Icon)`
37
- width: 1em;
38
- height: 1em;
37
+ width: 1.3em;
38
+ height: 1.3em;
39
39
  vertical-align: middle;
40
40
  `;
@@ -52,6 +52,6 @@ export const ColorModeIcon = styled(Icon).attrs(() => ({
52
52
  fill: var(--navbar-text-color);
53
53
 
54
54
  ${({ theme }) => theme.mediaQueries.medium} {
55
- width: var(--navbar-font-size);
55
+ width: var(--navbar-item-font-size);
56
56
  }
57
57
  `;
@@ -3,23 +3,24 @@ import styled from 'styled-components';
3
3
 
4
4
  interface IconProps {
5
5
  className?: string;
6
+ color?: string;
6
7
  }
7
8
 
8
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
9
10
  <span data-component-name="icons/CopyIcon">
10
11
  <svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" className={className}>
11
12
  <path
12
13
  fillRule="evenodd"
13
14
  clipRule="evenodd"
14
15
  d="M3.52083 1.33333C3.52083 1.25279 3.58613 1.1875 3.66667 1.1875H9.5C9.58054 1.1875 9.64583 1.25279 9.64583 1.33333V8.33333C9.64583 8.41387 9.58054 8.47917 9.5 8.47917H7.75H3.66667C3.58613 8.47917 3.52083 8.41387 3.52083 8.33333V3.08333V1.33333ZM2.64583 2.64583V1.33333C2.64583 0.769543 3.10288 0.3125 3.66667 0.3125H9.5C10.0638 0.3125 10.5208 0.769543 10.5208 1.33333V8.33333C10.5208 8.89712 10.0638 9.35417 9.5 9.35417H8.1875V10.6667C8.1875 10.9374 8.07995 11.1971 7.8885 11.3885C7.69706 11.5799 7.43741 11.6875 7.16667 11.6875H1.33333C1.06259 11.6875 0.802939 11.5799 0.611495 11.3885C0.420051 11.1971 0.3125 10.9374 0.3125 10.6667V3.66667C0.3125 3.39592 0.420052 3.13627 0.611495 2.94483C0.802938 2.75339 1.06259 2.64583 1.33333 2.64583H2.64583ZM7.3125 9.35417V10.6667C7.3125 10.7053 7.29713 10.7424 7.26979 10.7698C7.24244 10.7971 7.20534 10.8125 7.16667 10.8125H1.33333C1.29466 10.8125 1.25756 10.7971 1.23021 10.7698C1.20286 10.7424 1.1875 10.7053 1.1875 10.6667V3.66667C1.1875 3.62799 1.20286 3.5909 1.23021 3.56355C1.25756 3.5362 1.29466 3.52083 1.33333 3.52083H2.64583V8.33333C2.64583 8.89712 3.10288 9.35417 3.66667 9.35417H7.3125Z"
15
- fill="currentColor"
16
+ fill={color}
16
17
  />
17
18
  </svg>
18
19
  </span>
19
20
  );
20
21
 
21
22
  export const CopyIcon = styled(Icon)`
22
- width: 1em;
23
- height: 1em;
23
+ width: 1.3em;
24
+ height: 1.3em;
24
25
  vertical-align: middle;
25
26
  `;
@@ -6,7 +6,7 @@ interface IconProps {
6
6
  color?: string;
7
7
  }
8
8
 
9
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
10
10
  <svg
11
11
  data-component-name="icons/DeselectIcon"
12
12
  viewBox="0 0 16 16"
@@ -14,10 +14,10 @@ const Icon = ({ className }: IconProps) => (
14
14
  xmlns="http://www.w3.org/2000/svg"
15
15
  className={className}
16
16
  >
17
- <path d="M14.4966 10.5H9.49658V11.5H14.4966V10.5Z" fill="currentColor" />
18
- <path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill="currentColor" />
19
- <path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill="currentColor" />
20
- <path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill="currentColor" />
17
+ <path d="M14.4966 10.5H9.49658V11.5H14.4966V10.5Z" fill={color} />
18
+ <path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill={color} />
19
+ <path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill={color} />
20
+ <path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill={color} />
21
21
  </svg>
22
22
  );
23
23
 
@@ -3,9 +3,10 @@ import styled from 'styled-components';
3
3
 
4
4
  interface IconProps {
5
5
  className?: string;
6
+ color?: string;
6
7
  }
7
8
 
8
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
9
10
  <svg
10
11
  data-component-name="icons/ExpandIcon"
11
12
  viewBox="0 0 14 14"
@@ -17,11 +18,11 @@ const Icon = ({ className }: IconProps) => (
17
18
  <rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
18
19
  <path
19
20
  d="M8.75 0.875V1.75H11.6314L7.875 5.50462L8.49362 6.125L12.25 2.36863V5.25H13.125V0.875H8.75Z"
20
- fill="currentColor"
21
+ fill={color}
21
22
  />
22
23
  <path
23
24
  d="M6.125 8.4945L5.509 7.875L1.75 11.6314V8.75H0.875V13.125H5.25V12.25H2.36863L6.125 8.4945Z"
24
- fill="currentColor"
25
+ fill={color}
25
26
  />
26
27
  </g>
27
28
  <defs>
@@ -33,7 +34,7 @@ const Icon = ({ className }: IconProps) => (
33
34
  );
34
35
 
35
36
  export const ExpandIcon = styled(Icon)`
36
- width: 1em;
37
- height: 1em;
37
+ width: 1.3em;
38
+ height: 1.3em;
38
39
  vertical-align: middle;
39
40
  `;
@@ -3,9 +3,10 @@ import styled from 'styled-components';
3
3
 
4
4
  interface IconProps {
5
5
  className?: string;
6
+ color?: string;
6
7
  }
7
8
 
8
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
9
10
  <svg
10
11
  data-component-name="icons/FileIcon"
11
12
  viewBox="0 0 16 16"
@@ -16,7 +17,7 @@ const Icon = ({ className }: IconProps) => (
16
17
  <rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
17
18
  <path
18
19
  d="M12.85 4.65018L9.35 1.15018C9.30601 1.10132 9.25192 1.0626 9.19149 1.0367C9.13106 1.0108 9.06572 0.998339 9 1.00018H4C3.73502 1.00096 3.48112 1.10656 3.29375 1.29393C3.10638 1.4813 3.00078 1.7352 3 2.00018V14.0002C3.00078 14.2652 3.10638 14.5191 3.29375 14.7064C3.48112 14.8938 3.73502 14.9994 4 15.0002H12C12.265 14.9994 12.5189 14.8938 12.7062 14.7064C12.8936 14.5191 12.9992 14.2652 13 14.0002V5.00018C13.0018 4.93446 12.9894 4.86912 12.9635 4.80869C12.9376 4.74826 12.8989 4.69417 12.85 4.65018ZM9 2.20018L11.8 5.00018H9V2.20018ZM12 14.0002H4V2.00018H8V5.00018C8.00078 5.26515 8.10638 5.51906 8.29375 5.70642C8.48112 5.89379 8.73502 5.9994 9 6.00018H12V14.0002Z"
19
- fill="currentColor"
20
+ fill={color}
20
21
  />
21
22
  </svg>
22
23
  );
@@ -3,9 +3,10 @@ import styled from 'styled-components';
3
3
 
4
4
  interface IconProps {
5
5
  className?: string;
6
+ color?: string;
6
7
  }
7
8
 
8
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
9
10
  <svg
10
11
  data-component-name="icons/ReportIcon"
11
12
  viewBox="0 0 14 14"
@@ -16,13 +17,13 @@ const Icon = ({ className }: IconProps) => (
16
17
  <rect width="14" height="14" fill="none" style={{ mixBlendMode: 'multiply' }} />
17
18
  <path
18
19
  d="M7 8.75C6.87021 8.75 6.74333 8.78849 6.63541 8.8606C6.52749 8.93271 6.44337 9.0352 6.3937 9.15511C6.34403 9.27503 6.33104 9.40698 6.35636 9.53428C6.38168 9.66158 6.44418 9.77851 6.53596 9.87029C6.62774 9.96207 6.74467 10.0246 6.87197 10.0499C6.99927 10.0752 7.13122 10.0622 7.25114 10.0125C7.37105 9.96288 7.47354 9.87876 7.54565 9.77084C7.61776 9.66292 7.65625 9.53604 7.65625 9.40625C7.65625 9.2322 7.58711 9.06528 7.46404 8.94221C7.34097 8.81914 7.17405 8.75 7 8.75Z"
19
- fill="currentColor"
20
+ fill={color}
20
21
  fillOpacity="1"
21
22
  />
22
23
  <path d="M7.4375 3.9375H6.5625V7.875H7.4375V3.9375Z" fill="white" fillOpacity="1" />
23
24
  <path
24
25
  d="M11.375 12.25H2.625C2.39302 12.2497 2.17061 12.1575 2.00658 11.9934C1.84254 11.8294 1.75027 11.607 1.75 11.375V2.625C1.75027 2.39302 1.84254 2.17061 2.00658 2.00658C2.17061 1.84254 2.39302 1.75027 2.625 1.75H11.375C11.607 1.75027 11.8294 1.84254 11.9934 2.00658C12.1575 2.17061 12.2497 2.39302 12.25 2.625V11.375C12.2497 11.607 12.1575 11.8294 11.9934 11.9934C11.8294 12.1575 11.607 12.2497 11.375 12.25ZM2.625 2.625V11.375H11.3755L11.375 2.625H2.625Z"
25
- fill="currentColor"
26
+ fill={color}
26
27
  fillOpacity="1"
27
28
  />
28
29
  </svg>
@@ -3,9 +3,10 @@ import styled from 'styled-components';
3
3
 
4
4
  interface IconProps {
5
5
  className?: string;
6
+ color?: string;
6
7
  }
7
8
 
8
- const Icon = ({ className }: IconProps) => (
9
+ const Icon = ({ className, color = 'white' }: IconProps) => (
9
10
  <svg
10
11
  data-component-name="icons/SelectIcon"
11
12
  viewBox="0 0 16 16"
@@ -13,12 +14,12 @@ const Icon = ({ className }: IconProps) => (
13
14
  xmlns="http://www.w3.org/2000/svg"
14
15
  className={className}
15
16
  >
16
- <path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill="currentColor" />
17
- <path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill="currentColor" />
18
- <path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill="currentColor" />
17
+ <path d="M10.5 3.64746H1.5V4.64746H10.5V3.64746Z" fill={color} />
18
+ <path d="M10.5 6.64746H1.5V7.64746H10.5V6.64746Z" fill={color} />
19
+ <path d="M7.5 9.64746H1.5V10.6475H7.5V9.64746Z" fill={color} />
19
20
  <path
20
21
  d="M10.5 10.9425L9.205 9.64746L8.5 10.3525L10.5 12.3525L14.5 8.35246L13.795 7.64746L10.5 10.9425Z"
21
- fill="currentColor"
22
+ fill={color}
22
23
  />
23
24
  </svg>
24
25
  );
@@ -15,7 +15,3 @@ export * from '@theme/icons/SelectIcon';
15
15
  export * from '@theme/icons/BurgerIcon';
16
16
  export * from '@theme/icons/CloseIcon';
17
17
  export * from '@theme/icons/LogoutIcon';
18
- export * from '@theme/icons/LanguageIcon';
19
- export * from '@theme/icons/PointingArrowIcon';
20
- export * from '@theme/icons/CheckboxIcon';
21
- export * from '@theme/icons/ErrorIcon';
@@ -30,10 +30,6 @@ export function Forbidden(): JSX.Element {
30
30
  }
31
31
 
32
32
  const Wrapper = styled.div`
33
- display: flex;
34
- flex-direction: column;
35
- align-items: center;
36
- justify-content: center;
37
33
  margin: 25px auto;
38
34
  font-family: var(--page-403-font-family);
39
35
  text-align: center;
@@ -30,10 +30,6 @@ export function NotFound(): JSX.Element {
30
30
  }
31
31
 
32
32
  const Wrapper = styled.div`
33
- display: flex;
34
- flex-direction: column;
35
- align-items: center;
36
- justify-content: center;
37
33
  margin: 25px auto;
38
34
  font-family: var(--page-404-font-family);
39
35
  text-align: center;
@@ -1,4 +1,4 @@
1
- import { CatalogFilterConfig, ScorecardStatus } from '@theme';
1
+ import { CatalogFilterConfig } from "@theme/config";
2
2
 
3
3
  export type FilteredCatalog = {
4
4
  groups: { title: string; items: CatalogItem[] }[];
@@ -33,11 +33,5 @@ export type CatalogItem = {
33
33
  description?: string;
34
34
  image?: string;
35
35
  docsLink?: string;
36
-
37
- scorecardStatus?: ScorecardStatus;
38
- scorecardLevel?: string;
39
- scoreCardSlug?: string;
40
- tags?: unknown[];
41
-
42
36
  [k: string]: unknown;
43
37
  };
@@ -22,7 +22,6 @@ export type ResolvedNavLinkItem = {
22
22
  routeSlug?: string;
23
23
  active?: boolean;
24
24
  icon?: string;
25
- srcSet?: string;
26
25
  [REDOCLY_TEAMS_RBAC]?: Rbac;
27
26
  };
28
27
 
@@ -49,7 +48,6 @@ export type ResolvedNavGroupItem = {
49
48
  routeSlug?: string;
50
49
  active?: boolean;
51
50
  icon?: string;
52
- srcSet?: string;
53
51
  [REDOCLY_TEAMS_RBAC]?: Rbac;
54
52
  };
55
53
 
@@ -72,7 +70,6 @@ export type ResolvedNavItem =
72
70
  items?: ResolvedNavItem[]; // for typescript
73
71
  sidebar?: ResolvedNavItem[]; // for typescript
74
72
  icon?: string;
75
- srcSet?: string;
76
73
  languageInsensitive?: boolean;
77
74
  [REDOCLY_TEAMS_RBAC]?: Rbac;
78
75
  }
@@ -91,7 +88,6 @@ export type ResolvedNavItem =
91
88
  items?: ResolvedNavItem[]; // for typescript
92
89
  sidebar?: ResolvedNavItem[]; // for typescript
93
90
  icon?: string; // for typescript
94
- srcSet?: string;
95
91
  languageInsensitive?: boolean; // for typescript
96
92
  [REDOCLY_TEAMS_RBAC]?: Rbac;
97
93
  };
@@ -154,7 +150,6 @@ export type NavItem = {
154
150
  };
155
151
  export interface LogoConfig {
156
152
  image?: string;
157
- srcSet?: string;
158
153
  altText?: string;
159
154
  link?: string;
160
155
  favicon?: string;
@@ -25,6 +25,7 @@ const Arrow = ({
25
25
 
26
26
  export const ArrowBack = styled(Arrow)`
27
27
  fill: var(--sidebar-back-button-icon-color);
28
+ margin-right: calc(var(--sidebar-spacing-unit));
28
29
 
29
30
  background-image: var(--sidebar-back-button-icon);
30
31
  background-repeat: no-repeat;
package/src/ui/Burger.tsx CHANGED
@@ -32,7 +32,7 @@ const Line = styled.div`
32
32
  margin: 4px 0;
33
33
  width: 100%;
34
34
  height: 2px;
35
- background: var(--border-primary);
35
+ background: var(--text-color);
36
36
  border-radius: 1px;
37
37
  `;
38
38
 
@@ -36,9 +36,9 @@ const DropDownHeader = styled.div`
36
36
  align-items: center;
37
37
  padding: 8px 10px;
38
38
  border-radius: 4px;
39
- border: 1px solid var(--border-primary);
39
+ border: 1px solid var(--border-color);
40
40
  font-weight: 600;
41
- color: var(--text-primary);
41
+ color: var(--text-color);
42
42
  background: var(--background-color);
43
43
  `;
44
44
 
@@ -48,7 +48,7 @@ const DropDownList = styled.div`
48
48
  margin: 2px 20px 0 20px;
49
49
  padding: 0;
50
50
  border-radius: 4px;
51
- border: 1px solid var(--border-primary);
51
+ border: 1px solid var(--border-color);
52
52
  z-index: var(--z-index-popover);
53
53
  left: 0;
54
54
  right: 0;
@@ -67,20 +67,20 @@ const ListItem = styled.div`
67
67
  background-color: var(--background-color);
68
68
  padding: 0.4em 10px;
69
69
  font-size: 1em;
70
- color: var(--text-secondary);
70
+ color: var(--text-color);
71
71
  cursor: pointer;
72
72
  &:hover {
73
- background-color: var(--bg-raised);
73
+ background-color: var(--color-secondary-300);
74
74
  }
75
75
  &.active {
76
- background-color: var(--bg-raised);
76
+ background-color: var(--color-secondary-300);
77
77
  }
78
78
  `;
79
79
 
80
80
  const DropDownLink = styled(Link)`
81
81
  display: block;
82
82
  text-decoration: none;
83
- color: var(--text-secondary);
83
+ color: var(--text-color);
84
84
  `;
85
85
 
86
86
  export function Dropdown({ items, activeItem }: DropdownProps): JSX.Element {
@@ -3,12 +3,12 @@ import { findAll } from 'highlight-words-core';
3
3
 
4
4
  export const HighlightContext = React.createContext<string[]>([]);
5
5
 
6
- export function Highlight(props: { children: React.ReactChildren | string }): JSX.Element | null {
6
+ export function Highlight(props: { children: React.ReactChildren | string }): JSX.Element {
7
7
  const { children } = props;
8
8
  const searchWords = React.useContext(HighlightContext);
9
9
 
10
10
  if (!searchWords.length) {
11
- return children ? <>{children}</> : null;
11
+ return <>children</> || null;
12
12
  }
13
13
 
14
14
  function highlight(str: string, childIdx: number = 0) {
@@ -25,7 +25,7 @@ export const Jumbotron = styled(Background).attrs(() => ({
25
25
  ${({ bgImage, bgColor }) =>
26
26
  bgImage &&
27
27
  `
28
- background: ${bgColor || 'var(--text-base)'} url(${bgImage});
28
+ background: ${bgColor || 'var(--text-color)'} url(${bgImage});
29
29
  background-repeat: no-repeat;
30
30
  background-size: cover;
31
31
  background-position: center;