@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,223 +3,90 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.darkMode = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
5
  exports.darkMode = (0, styled_components_1.css) `
6
- /* === Dark Theme Colors === */
7
-
8
6
  /**
9
- * @tokens Dark Base Colors
10
- * @presenter Color
11
- */
12
-
13
- --color-red-1: #2c161c;
14
- --color-red-2: #451d25;
15
- --color-red-3: #5b252f;
16
- --color-red-4: #7e2e3c;
17
- --color-red-5: #a61d24;
18
- --color-red-6: #d32029;
19
- --color-red-7: #e84749;
20
- --color-red-8: #f37370;
21
- --color-red-9: #f89f9a;
22
- --color-red-10: #fac8c3;
23
-
24
- --color-green-1: #162312;
25
- --color-green-2: #1d3712;
26
- --color-green-3: #274916;
27
- --color-green-4: #306317;
28
- --color-green-5: #3c8618;
29
- --color-green-6: #49aa19;
30
- --color-green-7: #6abe39;
31
- --color-green-8: #8fd460;
32
- --color-green-9: #b2e58b;
33
- --color-green-10: #d5f2bb;
34
-
35
- --color-gold-1: #2b2111;
36
- --color-gold-2: #443111;
37
- --color-gold-3: #594214;
38
- --color-gold-4: #7c5914;
39
- --color-gold-5: #aa7714;
40
- --color-gold-6: #d89614;
41
- --color-gold-7: #e8b339;
42
- --color-gold-8: #f3cc62;
43
- --color-gold-9: #f8df8b;
44
- --color-gold-10: #faedb5;
45
-
46
- --color-blue-1: #111a2c;
47
- --color-blue-2: #112545;
48
- --color-blue-3: #15325b;
49
- --color-blue-4: #15417e;
50
- --color-blue-5: #1554ad;
51
- --color-blue-6: #1668dc;
52
- --color-blue-7: #3c89e8;
53
- --color-blue-8: #65a9f3;
54
- --color-blue-9: #8dc5f8;
55
- --color-blue-10: #b7dcfa;
56
-
57
- --color-purple-1: #1a1325;
58
- --color-purple-2: #24163a;
59
- --color-purple-3: #301c4d;
60
- --color-purple-4: #3e2069;
61
- --color-purple-5: #51258f;
62
- --color-purple-6: #642ab5;
63
- --color-purple-7: #854eca;
64
- --color-purple-8: #ab7ae0;
65
- --color-purple-9: #cda8f0;
66
- --color-purple-10: #ebd7fa;
67
-
68
- --color-magenta-1: #291321;
69
- --color-magenta-2: #40162f;
70
- --color-magenta-3: #551c3b;
71
- --color-magenta-4: #75204f;
72
- --color-magenta-5: #a02669;
73
- --color-magenta-6: #cb2b83;
74
- --color-magenta-7: #e0529c;
75
- --color-magenta-8: #f37fb7;
76
- --color-magenta-9: #f8a8cc;
77
- --color-magenta-10: #fad2e3;
78
-
79
- --color-cyan-1: #112123;
80
- --color-cyan-2: #113536;
81
- --color-cyan-3: #144848;
82
- --color-cyan-4: #146262;
83
- --color-cyan-5: #138585;
84
- --color-cyan-6: #13a8a8;
85
- --color-cyan-7: #33bcb7;
86
- --color-cyan-8: #58d1c9;
87
- --color-cyan-9: #84e2d8;
88
- --color-cyan-10: #b2f1e8;
89
-
90
- --color-yellow-1: #2b2611;
91
- --color-yellow-2: #443b11;
92
- --color-yellow-3: #595014;
93
- --color-yellow-4: #7c6e14;
94
- --color-yellow-5: #aa9514;
95
- --color-yellow-6: #d8bd14;
96
- --color-yellow-7: #e8d639;
97
- --color-yellow-8: #f3ea62;
98
- --color-yellow-9: #f8f48b;
99
- --color-yellow-10: #fafab5;
100
-
101
- --color-lime-1: #1f2611;
102
- --color-lime-2: #2e3c10;
103
- --color-lime-3: #3e4f13;
104
- --color-lime-4: #536d13;
105
- --color-lime-5: #6f9412;
106
- --color-lime-6: #8bbb11;
107
- --color-lime-7: #a9d134;
108
- --color-lime-8: #c9e75d;
109
- --color-lime-9: #e4f88b;
110
- --color-lime-10: #f0fab5;
111
-
112
- --color-geekblue-1: #131629;
113
- --color-geekblue-2: #161d40;
114
- --color-geekblue-3: #1c2755;
115
- --color-geekblue-4: #203175;
116
- --color-geekblue-5: #263ea0;
117
- --color-geekblue-6: #2b4acb;
118
- --color-geekblue-7: #5273e0;
119
- --color-geekblue-8: #7f9ef3;
120
- --color-geekblue-9: #a8c1f8;
121
- --color-geekblue-10: #d2e0fa;
122
-
123
- --color-primary-bg: #0d086e;
124
- --color-primary-bg-hover: #161087;
125
- --color-primary-border: #201dad;
126
- --color-primary-border-hover: #2f31d4;
127
- --color-primary-hover: #6678ff;
128
- --color-primary-base: #434dfa;
129
- --color-primary-active: #8a99ff;
130
- --color-primary-text-hover: #adbcff;
131
- --color-primary-text: #d6dfff;
132
- --color-primary-text-active: #ebf0ff;
133
-
134
- --color-success-bg: var(--color-cyan-3);
135
- --color-success-bg-hover: var(--color-cyan-2);
136
- --color-success-border: var(--color-cyan-3);
137
- --color-success-border-hover: var(--color-cyan-4);
138
- --color-success-hover: var(--color-cyan-7);
139
- --color-success-base: var(--color-cyan-6);
140
- --color-success-active: var(--color-cyan-7);
141
- --color-success-text-hover: var(--color-cyan-8);
142
- --color-success-text: var(--color-cyan-9);
143
- --color-success-text-active: var(--color-cyan-10);
144
-
145
- --color-warning-bg: var(--color-gold-3);
146
- --color-warning-bg-hover: var(--color-gold-2);
147
- --color-warning-border: var(--color-gold-3);
148
- --color-warning-border-hover: var(--color-gold-4);
149
- --color-warning-hover: var(--color-gold-7);
150
- --color-warning-base: var(--color-gold-6);
151
- --color-warning-active: var(--color-gold-7);
152
- --color-warning-text-hover: var(--color-gold-8);
153
- --color-warning-text: var(--color-gold-9);
154
- --color-warning-text-active: var(--color-gold-10);
155
-
156
- --color-error-bg: var(--color-red-3);
157
- --color-error-bg-hover: var(--color-red-2);
158
- --color-error-border: var(--color-red-3);
159
- --color-error-border-hover: var(--color-red-4);
160
- --color-error-hover: var(--color-red-7);
161
- --color-error-base: var(--color-red-6);
162
- --color-error-active: var(--color-red-7);
163
- --color-error-text-hover: var(--color-red-8);
164
- --color-error-text: var(--color-red-9);
165
- --color-error-text-active: var(--color-red-10);
166
-
167
- --color-info-bg: var(--color-blue-1);
168
- --color-info-bg-hover: var(--color-blue-2);
169
- --color-info-border: var(--color-blue-3);
170
- --color-info-border-hover: var(--color-blue-4);
171
- --color-info-hover: var(--color-blue-7);
172
- --color-info-base: var(--color-blue-6);
173
- --color-info-active: var(--color-blue-7);
174
- --color-info-text-hover: var(--color-blue-8);
175
- --color-info-text: var(--color-blue-9);
176
- --color-info-text-active: var(--color-blue-10);
177
-
178
- /**
179
- * @tokens Dark Main Colors
180
- * @presenter Color
181
- */
182
- --color-bg-base: #ffffff;
183
- --color-primary: var(--color-primary-base);
184
- --color-error: var(--color-error-base);
185
- --color-warning: var(--color-warning-base);
186
- --color-success: var(--color-success-base);
187
- --color-info: var(--color-info-base);
188
-
189
- /**
190
- * @tokens Font Colors
191
- * @presenter Color
192
- */
193
- --text-base: #ffffff; // The base color of the typography color tokens.
194
- --text-light-solid: #ffffff; // The color of the objects that need to be white no matter what theme is enabled.
195
- --text-primary: #ffffffde; // Headers, Icon hover
196
- --text-secondary: #ffffff99; // Body text
197
- --text-description: #ffffff61; // Caption, Description, Icon
198
- --text-placeholder: #ffffff61; // Placeholder text, Disabled text
199
- --text-link: var(--color-blue-6);
200
-
201
- /**
202
- * @tokens Elevation Colors
203
- * @presenter Color
204
- */
205
-
206
- --bg-sunken: #0d0d0d; // Sunken is the lowest elevation available.
207
- --bg-base: #141414; // The default elevation is the baseline with respect to all other layers.
208
- --bg-raised: #1f1f1f; // Cards, elements, inputs
209
- --bg-overlay: #282828; // Overlay is the highest elevation available. Use for hovers
210
- --bg-modal-overlay: #282828c2;
211
-
212
- --bg-base-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Elements
213
- --bg-raised-shadow: 0px 8px 12px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Hovers for base. Menu
214
- --bg-overlay-shadow: 0px 16px 32px rgba(0, 0, 0, 0.6), 0px 6px 6px rgba(0, 0, 0, 0.4); // Use for dropdowns
215
-
216
- /**
217
- * @tokens Border Colors
218
- * @presenter Color
219
- */
220
- --border-primary: #424242; // Raised dividers
221
- --border-secondary: #222222; // Default dividers, borders
222
-
223
- // @tokens End
7
+ * @tokens Dark Colors
8
+ * @presenter Color
9
+ */
10
+ --background-color: #141414;
11
+ --footer-background-color: #1f1f1f;
12
+ --navbar-background-color: #1f1f1f;
13
+ --mobile-menu-background: #141414;
14
+ --mobile-menu-profile-background: var(--mobile-menu-background);
15
+ --mobile-menu-login-button-background: var(--mobile-menu-profile-background);
16
+ --mobile-menu-item-text-color: rgba(255, 255, 255, 0.6);
17
+ --mobile-menu-item-active-color: #1f1f1f;
18
+ --mobile-menu-item-active-text-color: rgba(255, 255, 255, 0.85);
19
+ --mobile-menu-control-button-color: #ffffff;
20
+ --mobile-menu-profile-border-color: #222222;
21
+ --color-primary-500: #57a5fd;
22
+ --color-primary-300: #15396e;
23
+ --color-secondary-300: #22262e;
24
+ --colors-translucent: rgb(50 63 75 / 40%);
25
+ --inline-code-text-color: #f76663;
26
+ --color-emphasis-400: #fff;
27
+ --link-hover-text-color: #57a5fd;
28
+ --link-text-color: #57a5fd;
29
+ --code-block-background-color: #1e2633;
30
+ --admonition-attention-background-color: var(--color-primary-300);
31
+ --admonition-attention-icon-color: var(--color-emphasis-700);
32
+ --admonition-warning-background-color: #614b17;
33
+ --admonition-warning-icon-color: #4c3b12;
34
+ --admonition-success-background-color: #267e74;
35
+ --admonition-success-icon-color: #38b9a5;
36
+ --admonition-danger-background-color: #d6524c;
37
+ --admonition-danger-icon-color: #d13e37;
38
+ --admonition-info-background-color: #696969;
39
+ --admonition-info-icon-color: #505050;
40
+ --inline-code-background-color: #1e2633;
41
+ --toc-item-active-background-color: #1e2633;
42
+ --sidebar-item-active-background-color: #1e2633;
43
+ --panel-response-success-heading-background-color: #38b9a5;
44
+ --panel-response-success-border-color: #38b9a5;
45
+ --panel-response-error-heading-background-color: #d6524c;
46
+ --panel-response-error-border-color: #d6524c;
47
+ --panel-samples-heading-background-color: #1e2633;
48
+ --panel-samples-body-background-color: #263041;
49
+ --panel-samples-tabs-hover-background-color: #1e2633;
50
+ --panel-samples-tabs-hover-border-color: #3f4f68;
51
+ --panel-try-it-action-button-hover-border-color: #2b4cc4;
52
+ --panel-try-it-action-button-hover-background-color: #2b4cc4;
53
+ --panel-try-it-action-button-background-color: #0065fb;
54
+ --button-background-color: #0065fb;
55
+ --button-border-color: #0065fb;
56
+ --button-hover-background-color: #2b4cc4;
57
+ --button-hover-border-color: #2b4cc4;
58
+ --search-input-background-color: #1b2738;
59
+ --search-popover-background-color: #1b2738;
60
+ --search-highlight-text-color: #ffff03;
61
+ --search-item-text-color: #ffffffcf;
62
+ --search-item-title-text-color: #ffffff;
63
+ --search-item-active-text-color: var(--text-color);
64
+ --search-item-active-title-text-color: var(--text-color);
65
+ --search-item-active-background-color: #1b2738;
66
+ --panel-try-it-nested-body-background-color: #263041;
67
+ --panel-try-it-tabs-active-background-color: #11151d;
68
+ --panel-try-it-tabs-hover-background-color: #141a26;
69
+ --color-emphasis-100: #16202e;
70
+ --color-secondary-400: #696969;
71
+ --color-emphasis-700: #fff;
72
+ --color-emphasis-800: #fff;
73
+ --copy-button-tooltip-text-color: #fff;
74
+ --copy-button-tooltip-background-color: var(--tooltip-background-color);
75
+ --tooltip-text-color: #fff;
76
+ --md-table-head-background-color: var(--color-secondary-300);
77
+ --md-tabs-hover-tab-border-color: var(--color-secondary-500);
78
+ --thin-tile-background-color: #1d242d;
79
+ --wide-tile-background-color: #1d242d;
80
+ --page-404-header-text-color: #fff;
81
+ --page-404-description-text-color: #fff;
82
+ --page-403-header-text-color: #fff;
83
+ --page-403-description-text-color: #fff;
84
+ --checkbox-backround-color: var(--color-secondary-900);
85
+ --checkbox-checked-backround-color: var(--color-primary-400);
86
+ --select-list-item-active-background-color: #282828;
87
+ --dropdown-list-item-active-background-color: #282828;
88
+
89
+ background-color: var(--background-color);
90
+ color: var(--text-color);
224
91
  `;
225
92
  //# sourceMappingURL=darkColors.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCssColorVariable = void 0;
4
- const getCssColorVariable = (color, defaultValue = 'currentColor') => ((color === null || color === void 0 ? void 0 : color.startsWith('--')) ? `var(${color})` : color || defaultValue);
4
+ const getCssColorVariable = (color, defaultValue = 'inherit') => (color === null || color === void 0 ? void 0 : color.startsWith('--')) ? `var(${color})` : color || defaultValue;
5
5
  exports.getCssColorVariable = getCssColorVariable;
6
6
  //# sourceMappingURL=css-variables.js.map
@@ -9,4 +9,3 @@ export * from './args-typecheck';
9
9
  export * from './color';
10
10
  export * from './urls';
11
11
  export * from './jsUtils';
12
- export * from './tags-parser';
@@ -25,5 +25,4 @@ __exportStar(require("./args-typecheck"), exports);
25
25
  __exportStar(require("./color"), exports);
26
26
  __exportStar(require("./urls"), exports);
27
27
  __exportStar(require("./jsUtils"), exports);
28
- __exportStar(require("./tags-parser"), exports);
29
28
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.18.3-patch.8",
3
+ "version": "0.18.4",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -5,16 +5,8 @@ import { getPathnameForLocale, withPathPrefix } from '@portal/utils';
5
5
  import { usePreloadHistory } from '@portal/usePreloadHistory';
6
6
  import { useI18nConfig } from '@portal/hooks';
7
7
  import { Select, SelectInput, SelectList, SelectListItem } from '@theme/components/Select';
8
- import { LanguageIcon } from '@theme/icons';
9
8
 
10
- interface LanguagePickerProps {
11
- onChangeLanguage: (newLang: string) => void;
12
- onlyIcon?: boolean;
13
- placement?: 'top' | 'bottom';
14
- alignment?: 'start' | 'end';
15
- }
16
-
17
- export const LanguagePicker = (props: LanguagePickerProps) => {
9
+ export const LanguagePicker = (props: { onChangeLanguage: (newLang: string) => void }) => {
18
10
  const { currentLocale, locales, defaultLocale } = useI18nConfig();
19
11
  const history = usePreloadHistory();
20
12
 
@@ -27,33 +19,25 @@ export const LanguagePicker = (props: LanguagePickerProps) => {
27
19
  return null;
28
20
  }
29
21
 
30
- const value = locale.code;
31
- const languageItems = locales.map((locale) => ({
32
- element: <LanguageItem role="link">{locale.name || locale.code || ''}</LanguageItem>,
33
- value: locale.code,
34
- title: locale.name || locale.code || '',
35
- }));
36
-
37
- return (
38
- <LanguageSelect
39
- value={value}
40
- options={languageItems}
41
- onChange={(value: string) => {
22
+ const selected = locale.name || locale.code;
23
+ const languageItems = locales.map((locale) => (
24
+ <LanguageItem
25
+ onClick={() => {
42
26
  const newLangPathname = withPathPrefix(
43
- getPathnameForLocale(location.pathname, defaultLocale, value, locales),
27
+ getPathnameForLocale(location.pathname, defaultLocale, locale.code, locales),
44
28
  );
45
29
  const newUrlWithLanguage = `${newLangPathname}${location.search}${location.hash}`;
46
30
  history.push(newUrlWithLanguage);
47
- props.onChangeLanguage(value);
31
+ props.onChangeLanguage(locale.code);
48
32
  }}
49
- triggerEvent="hover"
50
- placement={props.placement}
51
- alignment={props.alignment}
52
- icon={<LanguageIcon />}
53
- onlyIcon={props.onlyIcon}
54
- withArrow={false}
55
- />
56
- );
33
+ key={locale.code}
34
+ role="link"
35
+ >
36
+ {locale.name || locale.code || ''}
37
+ </LanguageItem>
38
+ ));
39
+
40
+ return <LanguageSelect selected={selected} options={languageItems} triggerEvent="hover" />;
57
41
  };
58
42
 
59
43
  const LanguageSelect = styled(Select).attrs(() => ({
@@ -61,32 +45,18 @@ const LanguageSelect = styled(Select).attrs(() => ({
61
45
  'data-component-name': 'I18n/LanguagePicker',
62
46
  },
63
47
  }))`
64
- --select-list-item-active-background-color: var(
65
- --language-picker-list-item-active-background-color
66
- );
67
- --select-list-item-hover-background-color: var(
68
- --language-picker-list-item-hover-background-color
69
- );
70
-
71
48
  display: none;
72
49
  font-size: var(--language-picker-font-size);
73
50
  font-weight: var(--language-picker-font-weight);
74
51
  line-height: var(--language-picker-line-height);
75
52
  border-radius: var(--language-picker-border-radius);
76
53
  color: var(--language-picker-text-color);
77
- background-color: var(--language-picker-background-color);
78
54
 
79
55
  ${SelectInput} {
80
- min-height: var(--language-picker-min-height);
81
- color: var(--language-picker-text-color);
82
- border: 1px solid var(--language-picker-border-color);
56
+ color: var(--navbar-text-color);
83
57
  border-radius: var(--language-picker-input-border-radius);
84
58
  padding: var(--language-picker-input-padding-vertical)
85
59
  var(--language-picker-input-padding-horizontal);
86
-
87
- :hover {
88
- border-color: var(--language-picker-hover-border-color);
89
- }
90
60
  }
91
61
 
92
62
  ${SelectList} {
@@ -105,6 +75,10 @@ const LanguageSelect = styled(Select).attrs(() => ({
105
75
  padding: var(--language-picker-list-item-vertical-padding)
106
76
  var(--language-picker-list-item-horizontal-padding);
107
77
  }
78
+
79
+ :hover {
80
+ background-color: var(--language-picker-list-item-active-background-color);
81
+ }
108
82
  }
109
83
 
110
84
  ${({ theme }) => theme.mediaQueries.medium} {
@@ -113,8 +87,7 @@ const LanguageSelect = styled(Select).attrs(() => ({
113
87
 
114
88
  :hover {
115
89
  text-decoration: var(--navbar-item-hover-text-decoration);
116
- background: var(--language-picker-hover-background-color);
90
+ background: var(--navbar-item-hover-background-color);
117
91
  }
118
92
  `;
119
-
120
93
  const LanguageItem = styled.div``;
package/src/I18n/index.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { LanguagePicker } from '@theme/I18n/LanguagePicker';
2
- export * from '@theme/I18n/styledVariables';
@@ -34,6 +34,10 @@ const BreadcrumbText = styled.div`
34
34
  const BreadcrumbWrapper = styled.div<{ isActive: boolean; isLink: boolean }>`
35
35
  border-radius: var(--border-radius);
36
36
 
37
+ &:first-child {
38
+ padding-left: 0;
39
+ }
40
+
37
41
  ${(props) =>
38
42
  props.isLink &&
39
43
  `
@@ -51,9 +55,8 @@ const BreadcrumbWrapper = styled.div<{ isActive: boolean; isLink: boolean }>`
51
55
 
52
56
  const BreadcrumbLink = styled(Link)`
53
57
  text-decoration: none;
54
- color: var(--breadcrumbs-text-color);
55
58
 
56
59
  &:visited {
57
- color: var(--breadcrumbs-text-color);
60
+ color: inherit;
58
61
  }
59
62
  `;
@@ -31,7 +31,7 @@ export const Breadcrumbs = (props: { className?: string }) => {
31
31
  });
32
32
  }}
33
33
  />
34
- {isLast ? null : <span>/</span>}
34
+ {isLast ? null : <div>/</div>}
35
35
  </React.Fragment>
36
36
  );
37
37
  })}
@@ -48,11 +48,7 @@ const Container = styled.div`
48
48
  flex-wrap: wrap;
49
49
 
50
50
  > div {
51
- padding: var(--breadcrumbs-padding);
52
- }
53
-
54
- > span {
55
- padding: var(--breadcrumbs-gap);
51
+ padding-right: var(--breadcrumbs-padding-horizontal);
56
52
  }
57
53
 
58
54
  @media print {
@@ -1,3 +1,2 @@
1
1
  export * from '@theme/components/Breadcrumbs/Breadcrumbs';
2
2
  export * from '@theme/components/Breadcrumbs/Breadcrumb';
3
- export * from '@theme/components/Breadcrumbs/styledVariables';