@redocly/theme 0.18.4-patch.1 → 0.18.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 (467) hide show
  1. package/lib/I18n/LanguagePicker.d.ts +4 -0
  2. package/lib/{i18n → I18n}/LanguagePicker.js +12 -27
  3. package/lib/I18n/index.d.ts +1 -0
  4. package/lib/I18n/index.js +6 -0
  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 +102 -112
  15. package/lib/components/Catalog/CatalogCard.js +58 -91
  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.d.ts +3 -1
  30. package/lib/components/EditPageButton/EditPageButton.js +8 -17
  31. package/lib/components/Feedback/Comment.js +0 -5
  32. package/lib/components/Feedback/Rating.js +1 -5
  33. package/lib/components/Feedback/Reasons.js +1 -6
  34. package/lib/components/Feedback/Sentiment.js +0 -5
  35. package/lib/components/Feedback/Thumbs.js +4 -4
  36. package/lib/components/Filter/Filter.d.ts +1 -3
  37. package/lib/components/Filter/Filter.js +80 -113
  38. package/lib/components/Filter/index.d.ts +0 -2
  39. package/lib/components/Filter/index.js +0 -2
  40. package/lib/components/Footer/CustomFooterNavItem.js +1 -1
  41. package/lib/components/Footer/Footer.d.ts +3 -4
  42. package/lib/components/Footer/Footer.js +10 -28
  43. package/lib/components/Footer/FooterColumn.d.ts +3 -3
  44. package/lib/components/Footer/FooterColumn.js +63 -57
  45. package/lib/components/Footer/FooterColumns.js +4 -6
  46. package/lib/components/Footer/FooterCopyright.js +6 -11
  47. package/lib/components/Footer/index.d.ts +0 -1
  48. package/lib/components/Footer/index.js +0 -1
  49. package/lib/components/JsonViewer/JsonViewer.js +2 -2
  50. package/lib/components/LastUpdated/LastUpdated.js +0 -1
  51. package/lib/components/Markdown/Admonition.js +9 -12
  52. package/lib/components/Markdown/MarkdownLayout.d.ts +2 -0
  53. package/lib/components/Markdown/MarkdownLayout.js +6 -1
  54. package/lib/components/Markdown/MarkdownWrapper.js +4 -2
  55. package/lib/components/Markdown/Mermaid.js +1 -4
  56. package/lib/components/Markdown/index.d.ts +0 -1
  57. package/lib/components/Markdown/index.js +0 -1
  58. package/lib/components/Menu/Menu.js +7 -5
  59. package/lib/components/Menu/MenuGroup.js +7 -12
  60. package/lib/components/Menu/MenuItem.js +1 -1
  61. package/lib/components/Menu/MenuItemLabel.js +13 -9
  62. package/lib/components/Menu/MobileMenu.js +25 -20
  63. package/lib/components/Menu/MobileMenuGroup.js +1 -1
  64. package/lib/components/Menu/index.d.ts +0 -1
  65. package/lib/components/Menu/index.js +0 -1
  66. package/lib/components/{Profile → Navbar}/MobileUserProfile.js +24 -12
  67. package/lib/components/Navbar/Navbar.js +13 -20
  68. package/lib/components/Navbar/NavbarItem.d.ts +1 -1
  69. package/lib/components/Navbar/NavbarItem.js +6 -18
  70. package/lib/components/Navbar/NavbarMenu.js +2 -2
  71. package/lib/components/Navbar/index.d.ts +0 -1
  72. package/lib/components/Navbar/index.js +0 -1
  73. package/lib/components/NavbarLogo/NavbarLogo.d.ts +1 -4
  74. package/lib/components/NavbarLogo/NavbarLogo.js +5 -13
  75. package/lib/components/NavbarLogo/index.d.ts +0 -1
  76. package/lib/components/NavbarLogo/index.js +0 -1
  77. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
  78. package/lib/components/OpenApiDocs/Dropdown.js +3 -3
  79. package/lib/components/OperationBadge/OperationBadge.d.ts +6 -0
  80. package/lib/components/OperationBadge/OperationBadge.js +68 -0
  81. package/lib/components/OperationBadge/index.d.ts +1 -0
  82. package/lib/{icons/ErrorIcon → components/OperationBadge}/index.js +1 -1
  83. package/lib/components/PageNavigation/NextButton.js +1 -1
  84. package/lib/components/PageNavigation/PreviousButton.js +1 -1
  85. package/lib/components/Panel/PanelHeader.js +0 -2
  86. package/lib/components/Panel/PanelHeaderTitle.js +4 -0
  87. package/lib/components/Panel/index.d.ts +0 -1
  88. package/lib/components/Panel/index.js +0 -1
  89. package/lib/components/Product/ProductPicker.js +9 -22
  90. package/lib/components/Product/index.d.ts +0 -1
  91. package/lib/components/Product/index.js +0 -1
  92. package/lib/components/Profile/LoginLink.js +2 -1
  93. package/lib/components/Profile/Profile.js +22 -3
  94. package/lib/components/Profile/UserProfile.js +9 -21
  95. package/lib/components/Profile/index.d.ts +0 -1
  96. package/lib/components/Profile/index.js +0 -15
  97. package/lib/components/Search/CancelSearch.js +14 -2
  98. package/lib/components/Search/ProductTag.js +8 -8
  99. package/lib/components/Search/RecentSearches.js +5 -5
  100. package/lib/components/Search/Search.js +2 -0
  101. package/lib/components/Search/SearchIcon.js +2 -2
  102. package/lib/components/Search/SearchItem.js +4 -4
  103. package/lib/components/Search/SearchTrigger.js +5 -4
  104. package/lib/components/Search/ShortcutKey.js +5 -1
  105. package/lib/components/Search/SuggestedPages.js +3 -3
  106. package/lib/components/Search/index.d.ts +0 -1
  107. package/lib/components/Search/index.js +0 -1
  108. package/lib/components/Select/Select.d.ts +9 -21
  109. package/lib/components/Select/Select.js +17 -27
  110. package/lib/components/Select/index.d.ts +0 -1
  111. package/lib/components/Select/index.js +0 -1
  112. package/lib/components/Separator/Separator.js +3 -11
  113. package/lib/components/Separator/SeparatorItem.js +9 -6
  114. package/lib/components/Separator/SeparatorLine.js +3 -7
  115. package/lib/components/Sidebar/ApiCallItem.d.ts +6 -2
  116. package/lib/components/Sidebar/ApiCallItem.js +13 -17
  117. package/lib/components/Sidebar/FooterWrapper.js +4 -3
  118. package/lib/components/Sidebar/HeaderWrapper.js +3 -3
  119. package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
  120. package/lib/components/Sidebar/VersionPicker.js +4 -6
  121. package/lib/components/Sidebar/index.d.ts +0 -1
  122. package/lib/components/Sidebar/index.js +0 -1
  123. package/lib/components/Sidebar/types.d.ts +0 -1
  124. package/lib/components/SidebarActions/CollapseSidebarButton.js +1 -41
  125. package/lib/components/SidebarActions/styled.js +21 -29
  126. package/lib/components/TableOfContent/TableOfContent.js +2 -3
  127. package/lib/components/TableOfContent/index.d.ts +0 -1
  128. package/lib/components/TableOfContent/index.js +0 -1
  129. package/lib/components/Tabs/Tab.js +1 -1
  130. package/lib/components/Tabs/Tabs.js +1 -1
  131. package/lib/components/Tags/Tags.d.ts +5 -0
  132. package/lib/components/Tags/Tags.js +32 -0
  133. package/lib/components/Tags/index.d.ts +1 -0
  134. package/lib/components/{Image → Tags}/index.js +1 -1
  135. package/lib/components/Tiles/ThinTile.js +5 -7
  136. package/lib/components/Tiles/TileHeader.js +1 -1
  137. package/lib/components/Tiles/TileText.js +1 -1
  138. package/lib/components/Tiles/WideTile.js +8 -10
  139. package/lib/components/Tooltip/index.d.ts +0 -1
  140. package/lib/components/Tooltip/index.js +0 -1
  141. package/lib/components/Typography/SectionHeader.js +2 -2
  142. package/lib/components/Typography/Typography.js +1 -1
  143. package/lib/components/index.d.ts +2 -1
  144. package/lib/components/index.js +2 -1
  145. package/lib/config.d.ts +14 -113
  146. package/lib/config.js +4 -28
  147. package/lib/globalStyle.js +1983 -602
  148. package/lib/hooks/useMobileMenu.js +6 -5
  149. package/lib/icons/AlertIcon/AlertIcon.js +5 -0
  150. package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
  151. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
  152. package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
  153. package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
  154. package/lib/icons/CopyIcon/CopyIcon.d.ts +2 -1
  155. package/lib/icons/CopyIcon/CopyIcon.js +4 -4
  156. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
  157. package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
  158. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +2 -1
  159. package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
  160. package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
  161. package/lib/icons/FileIcon/FileIcon.d.ts +2 -1
  162. package/lib/icons/FileIcon/FileIcon.js +2 -2
  163. package/lib/icons/ReportIcon/ReportIcon.d.ts +2 -1
  164. package/lib/icons/ReportIcon/ReportIcon.js +3 -3
  165. package/lib/icons/SelectIcon/SelectIcon.d.ts +2 -1
  166. package/lib/icons/SelectIcon/SelectIcon.js +5 -5
  167. package/lib/icons/index.d.ts +0 -6
  168. package/lib/icons/index.js +0 -6
  169. package/lib/index.d.ts +1 -1
  170. package/lib/index.js +1 -1
  171. package/lib/layouts/Forbidden.js +0 -4
  172. package/lib/layouts/NotFound.js +0 -4
  173. package/lib/mocks/hooks/index.js +1 -0
  174. package/lib/types/portal/src/shared/types/catalog.d.ts +1 -5
  175. package/lib/types/portal/src/shared/types/nav.d.ts +0 -5
  176. package/lib/ui/ArrowBack.js +1 -0
  177. package/lib/ui/Burger.js +1 -1
  178. package/lib/ui/Dropdown.js +7 -7
  179. package/lib/ui/Highlight.d.ts +1 -1
  180. package/lib/ui/Highlight.js +1 -1
  181. package/lib/ui/Jumbotron.js +1 -1
  182. package/lib/ui/darkColors.js +84 -217
  183. package/lib/utils/css-variables.js +1 -1
  184. package/lib/utils/index.d.ts +0 -1
  185. package/lib/utils/index.js +0 -1
  186. package/package.json +1 -1
  187. package/src/{i18n → I18n}/LanguagePicker.tsx +21 -48
  188. package/src/I18n/index.ts +1 -0
  189. package/src/components/Breadcrumbs/Breadcrumb.tsx +5 -2
  190. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -6
  191. package/src/components/Breadcrumbs/index.ts +0 -1
  192. package/src/components/Button/Button.tsx +47 -53
  193. package/src/components/Button/index.ts +0 -1
  194. package/src/components/Catalog/Catalog.tsx +120 -140
  195. package/src/components/Catalog/CatalogCard.tsx +58 -108
  196. package/src/components/Catalog/index.tsx +3 -0
  197. package/src/components/CodeBlock/CodeBlockContainer.tsx +9 -17
  198. package/src/components/CodeBlock/CodeBlockControlButton.tsx +19 -6
  199. package/src/components/CodeBlock/CodeBlockControls.tsx +5 -8
  200. package/src/components/CodeBlock/index.ts +0 -1
  201. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -0
  202. package/src/components/Dropdown/Dropdown.tsx +5 -14
  203. package/src/components/Dropdown/index.ts +0 -1
  204. package/src/components/EditPageButton/EditPageButton.tsx +10 -24
  205. package/src/components/Feedback/Comment.tsx +0 -5
  206. package/src/components/Feedback/Rating.tsx +1 -5
  207. package/src/components/Feedback/Reasons.tsx +1 -6
  208. package/src/components/Feedback/Sentiment.tsx +0 -5
  209. package/src/components/Feedback/Thumbs.tsx +4 -4
  210. package/src/components/Filter/Filter.tsx +94 -150
  211. package/src/components/Filter/index.ts +0 -2
  212. package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
  213. package/src/components/Footer/Footer.tsx +10 -32
  214. package/src/components/Footer/FooterColumn.tsx +63 -84
  215. package/src/components/Footer/FooterColumns.tsx +4 -6
  216. package/src/components/Footer/FooterCopyright.tsx +7 -13
  217. package/src/components/Footer/index.ts +0 -1
  218. package/src/components/JsonViewer/JsonViewer.tsx +2 -2
  219. package/src/components/LastUpdated/LastUpdated.tsx +2 -1
  220. package/src/components/Markdown/Admonition.tsx +8 -13
  221. package/src/components/Markdown/MarkdownLayout.tsx +15 -2
  222. package/src/components/Markdown/MarkdownWrapper.tsx +4 -2
  223. package/src/components/Markdown/Mermaid.tsx +1 -4
  224. package/src/components/Markdown/index.ts +0 -1
  225. package/src/components/Menu/Menu.tsx +7 -5
  226. package/src/components/Menu/MenuGroup.tsx +7 -15
  227. package/src/components/Menu/MenuItem.tsx +1 -1
  228. package/src/components/Menu/MenuItemLabel.tsx +13 -9
  229. package/src/components/Menu/MobileMenu.tsx +25 -20
  230. package/src/components/Menu/MobileMenuGroup.tsx +1 -1
  231. package/src/components/Menu/index.ts +0 -1
  232. package/src/components/{Profile → Navbar}/MobileUserProfile.tsx +29 -12
  233. package/src/components/Navbar/Navbar.tsx +13 -20
  234. package/src/components/Navbar/NavbarItem.tsx +4 -18
  235. package/src/components/Navbar/NavbarMenu.tsx +2 -2
  236. package/src/components/Navbar/index.ts +0 -1
  237. package/src/components/NavbarLogo/NavbarLogo.tsx +11 -24
  238. package/src/components/NavbarLogo/index.ts +0 -1
  239. package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -1
  240. package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
  241. package/src/components/OperationBadge/OperationBadge.ts +62 -0
  242. package/src/components/OperationBadge/index.ts +1 -0
  243. package/src/components/PageNavigation/NextButton.tsx +1 -0
  244. package/src/components/PageNavigation/PreviousButton.tsx +1 -0
  245. package/src/components/Panel/PanelHeader.ts +0 -2
  246. package/src/components/Panel/PanelHeaderTitle.ts +4 -0
  247. package/src/components/Panel/index.ts +0 -1
  248. package/src/components/Product/ProductPicker.tsx +17 -23
  249. package/src/components/Product/index.ts +0 -1
  250. package/src/components/Profile/LoginLink.tsx +2 -1
  251. package/src/components/Profile/Profile.tsx +24 -1
  252. package/src/components/Profile/UserProfile.tsx +8 -20
  253. package/src/components/Profile/index.ts +0 -1
  254. package/src/components/Search/CancelSearch.tsx +15 -2
  255. package/src/components/Search/ProductTag.tsx +8 -8
  256. package/src/components/Search/RecentSearches.tsx +5 -5
  257. package/src/components/Search/Search.tsx +2 -0
  258. package/src/components/Search/SearchIcon.tsx +5 -10
  259. package/src/components/Search/SearchItem.tsx +4 -4
  260. package/src/components/Search/SearchTrigger.tsx +5 -4
  261. package/src/components/Search/ShortcutKey.tsx +5 -1
  262. package/src/components/Search/SuggestedPages.tsx +3 -3
  263. package/src/components/Search/index.ts +0 -1
  264. package/src/components/Select/Select.tsx +31 -65
  265. package/src/components/Select/index.ts +0 -1
  266. package/src/components/Separator/Separator.tsx +3 -17
  267. package/src/components/Separator/SeparatorItem.tsx +9 -6
  268. package/src/components/Separator/SeparatorLine.tsx +3 -7
  269. package/src/components/Sidebar/ApiCallItem.tsx +13 -17
  270. package/src/components/Sidebar/FooterWrapper.tsx +4 -3
  271. package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
  272. package/src/components/Sidebar/VersionPicker.tsx +4 -6
  273. package/src/components/Sidebar/index.ts +0 -1
  274. package/src/components/Sidebar/types.ts +0 -1
  275. package/src/components/SidebarActions/CollapseSidebarButton.tsx +2 -22
  276. package/src/components/SidebarActions/styled.tsx +30 -29
  277. package/src/components/TableOfContent/TableOfContent.tsx +2 -3
  278. package/src/components/TableOfContent/index.ts +0 -1
  279. package/src/components/Tabs/Tab.tsx +1 -1
  280. package/src/components/Tabs/Tabs.tsx +1 -1
  281. package/src/components/Tags/Tags.tsx +36 -0
  282. package/src/components/Tags/index.ts +1 -0
  283. package/src/components/Tiles/ThinTile.tsx +5 -7
  284. package/src/components/Tiles/TileHeader.ts +1 -1
  285. package/src/components/Tiles/TileText.tsx +1 -1
  286. package/src/components/Tiles/WideTile.tsx +8 -10
  287. package/src/components/Tooltip/index.ts +0 -1
  288. package/src/components/Typography/SectionHeader.ts +2 -2
  289. package/src/components/Typography/Typography.ts +1 -1
  290. package/src/components/index.ts +2 -1
  291. package/src/config.ts +3 -30
  292. package/src/globalStyle.ts +1999 -597
  293. package/src/hooks/useMobileMenu.ts +4 -3
  294. package/src/icons/AlertIcon/AlertIcon.tsx +5 -0
  295. package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
  296. package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
  297. package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
  298. package/src/icons/CopyIcon/CopyIcon.tsx +5 -4
  299. package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
  300. package/src/icons/ExpandIcon/ExpandIcon.tsx +6 -5
  301. package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
  302. package/src/icons/FileIcon/FileIcon.tsx +3 -2
  303. package/src/icons/ReportIcon/ReportIcon.tsx +4 -3
  304. package/src/icons/SelectIcon/SelectIcon.tsx +6 -5
  305. package/src/icons/index.ts +0 -6
  306. package/src/index.ts +1 -1
  307. package/src/layouts/Forbidden.tsx +0 -4
  308. package/src/layouts/NotFound.tsx +0 -4
  309. package/src/mocks/hooks/index.ts +1 -0
  310. package/src/types/portal/src/shared/types/catalog.ts +1 -7
  311. package/src/types/portal/src/shared/types/nav.ts +0 -5
  312. package/src/ui/ArrowBack.tsx +1 -0
  313. package/src/ui/Burger.tsx +1 -1
  314. package/src/ui/Dropdown.tsx +7 -7
  315. package/src/ui/Highlight.tsx +2 -2
  316. package/src/ui/Jumbotron.tsx +1 -1
  317. package/src/ui/darkColors.tsx +84 -217
  318. package/src/utils/css-variables.ts +2 -4
  319. package/src/utils/index.ts +0 -1
  320. package/lib/components/Breadcrumbs/styledVariables.d.ts +0 -1
  321. package/lib/components/Breadcrumbs/styledVariables.js +0 -20
  322. package/lib/components/Button/styledVariables.d.ts +0 -1
  323. package/lib/components/Button/styledVariables.js +0 -107
  324. package/lib/components/Catalog/styledVariables.d.ts +0 -1
  325. package/lib/components/Catalog/styledVariables.js +0 -95
  326. package/lib/components/CodeBlock/styledVariables.d.ts +0 -1
  327. package/lib/components/CodeBlock/styledVariables.js +0 -92
  328. package/lib/components/Dropdown/styledVariables.d.ts +0 -1
  329. package/lib/components/Dropdown/styledVariables.js +0 -30
  330. package/lib/components/Filter/FilterContent.d.ts +0 -13
  331. package/lib/components/Filter/FilterContent.js +0 -60
  332. package/lib/components/Filter/FilterPopover.d.ts +0 -13
  333. package/lib/components/Filter/FilterPopover.js +0 -109
  334. package/lib/components/Filter/FilterTag.d.ts +0 -7
  335. package/lib/components/Filter/FilterTag.js +0 -33
  336. package/lib/components/Filter/FilterTags.d.ts +0 -7
  337. package/lib/components/Filter/FilterTags.js +0 -29
  338. package/lib/components/Filter/styledVariables.d.ts +0 -1
  339. package/lib/components/Filter/styledVariables.js +0 -112
  340. package/lib/components/Footer/styledVariables.d.ts +0 -1
  341. package/lib/components/Footer/styledVariables.js +0 -61
  342. package/lib/components/Image/Image.d.ts +0 -9
  343. package/lib/components/Image/Image.js +0 -31
  344. package/lib/components/Image/index.d.ts +0 -1
  345. package/lib/components/LastUpdated/index.d.ts +0 -1
  346. package/lib/components/LastUpdated/index.js +0 -18
  347. package/lib/components/LastUpdated/styledVariables.d.ts +0 -1
  348. package/lib/components/LastUpdated/styledVariables.js +0 -11
  349. package/lib/components/Markdown/styledVariables.d.ts +0 -3
  350. package/lib/components/Markdown/styledVariables.js +0 -231
  351. package/lib/components/Menu/styledVariables.d.ts +0 -2
  352. package/lib/components/Menu/styledVariables.js +0 -101
  353. package/lib/components/Navbar/styledVariables.d.ts +0 -1
  354. package/lib/components/Navbar/styledVariables.js +0 -42
  355. package/lib/components/NavbarLogo/styledVariables.d.ts +0 -1
  356. package/lib/components/NavbarLogo/styledVariables.js +0 -18
  357. package/lib/components/Panel/styledVariables.d.ts +0 -2
  358. package/lib/components/Panel/styledVariables.js +0 -481
  359. package/lib/components/Product/styledVariables.d.ts +0 -2
  360. package/lib/components/Product/styledVariables.js +0 -42
  361. package/lib/components/Profile/UserProfileData.d.ts +0 -9
  362. package/lib/components/Profile/UserProfileData.js +0 -35
  363. package/lib/components/Profile/styledVariables.d.ts +0 -2
  364. package/lib/components/Profile/styledVariables.js +0 -55
  365. package/lib/components/Search/styledVariables.d.ts +0 -1
  366. package/lib/components/Search/styledVariables.js +0 -98
  367. package/lib/components/Select/styledVariables.d.ts +0 -1
  368. package/lib/components/Select/styledVariables.js +0 -34
  369. package/lib/components/Sidebar/styledVariables.d.ts +0 -2
  370. package/lib/components/Sidebar/styledVariables.js +0 -216
  371. package/lib/components/TableOfContent/styledVariables.d.ts +0 -1
  372. package/lib/components/TableOfContent/styledVariables.js +0 -47
  373. package/lib/components/Tag/Tag.d.ts +0 -18
  374. package/lib/components/Tag/Tag.js +0 -45
  375. package/lib/components/Tag/index.d.ts +0 -2
  376. package/lib/components/Tag/index.js +0 -19
  377. package/lib/components/Tag/styledVariables.d.ts +0 -1
  378. package/lib/components/Tag/styledVariables.js +0 -140
  379. package/lib/components/Tooltip/styledVariables.d.ts +0 -1
  380. package/lib/components/Tooltip/styledVariables.js +0 -21
  381. package/lib/hooks/useModalScrollLock.d.ts +0 -1
  382. package/lib/hooks/useModalScrollLock.js +0 -16
  383. package/lib/i18n/LanguagePicker.d.ts +0 -9
  384. package/lib/i18n/index.d.ts +0 -2
  385. package/lib/i18n/index.js +0 -21
  386. package/lib/i18n/styledVariables.d.ts +0 -1
  387. package/lib/i18n/styledVariables.js +0 -40
  388. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +0 -6
  389. package/lib/icons/CheckboxIcon/CheckboxIcon.js +0 -28
  390. package/lib/icons/CheckboxIcon/index.d.ts +0 -1
  391. package/lib/icons/CheckboxIcon/index.js +0 -6
  392. package/lib/icons/EditIcon/EditIcon.d.ts +0 -6
  393. package/lib/icons/EditIcon/EditIcon.js +0 -18
  394. package/lib/icons/EditIcon/index.d.ts +0 -1
  395. package/lib/icons/EditIcon/index.js +0 -18
  396. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +0 -4
  397. package/lib/icons/ErrorIcon/ErrorIcon.js +0 -14
  398. package/lib/icons/ErrorIcon/index.d.ts +0 -1
  399. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
  400. package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
  401. package/lib/icons/LanguageIcon/index.d.ts +0 -1
  402. package/lib/icons/LanguageIcon/index.js +0 -18
  403. package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
  404. package/lib/icons/PlusIcon/PlusIcon.js +0 -16
  405. package/lib/icons/PlusIcon/index.d.ts +0 -1
  406. package/lib/icons/PlusIcon/index.js +0 -18
  407. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
  408. package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
  409. package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
  410. package/lib/icons/PointingArrowIcon/index.js +0 -18
  411. package/lib/icons/RocketIcon/RocketIcon.d.ts +0 -7
  412. package/lib/icons/RocketIcon/RocketIcon.js +0 -15
  413. package/lib/icons/RocketIcon/index.d.ts +0 -1
  414. package/lib/icons/RocketIcon/index.js +0 -18
  415. package/lib/utils/tags-parser.d.ts +0 -1
  416. package/lib/utils/tags-parser.js +0 -10
  417. package/src/components/Breadcrumbs/styledVariables.ts +0 -17
  418. package/src/components/Button/styledVariables.ts +0 -104
  419. package/src/components/Catalog/index.ts +0 -4
  420. package/src/components/Catalog/styledVariables.ts +0 -92
  421. package/src/components/CodeBlock/styledVariables.ts +0 -89
  422. package/src/components/Dropdown/styledVariables.ts +0 -27
  423. package/src/components/Filter/FilterContent.tsx +0 -95
  424. package/src/components/Filter/FilterPopover.tsx +0 -150
  425. package/src/components/Filter/FilterTag.tsx +0 -37
  426. package/src/components/Filter/FilterTags.tsx +0 -39
  427. package/src/components/Filter/styledVariables.ts +0 -109
  428. package/src/components/Footer/styledVariables.ts +0 -58
  429. package/src/components/Image/Image.tsx +0 -47
  430. package/src/components/Image/index.ts +0 -1
  431. package/src/components/LastUpdated/index.ts +0 -1
  432. package/src/components/LastUpdated/styledVariables.ts +0 -8
  433. package/src/components/Markdown/styledVariables.ts +0 -230
  434. package/src/components/Menu/styledVariables.ts +0 -99
  435. package/src/components/Navbar/styledVariables.ts +0 -39
  436. package/src/components/NavbarLogo/styledVariables.ts +0 -15
  437. package/src/components/Panel/styledVariables.ts +0 -479
  438. package/src/components/Product/styledVariables.ts +0 -40
  439. package/src/components/Profile/UserProfileData.tsx +0 -40
  440. package/src/components/Profile/styledVariables.ts +0 -53
  441. package/src/components/Search/styledVariables.ts +0 -95
  442. package/src/components/Select/styledVariables.ts +0 -31
  443. package/src/components/Sidebar/styledVariables.ts +0 -214
  444. package/src/components/TableOfContent/styledVariables.ts +0 -44
  445. package/src/components/Tag/Tag.tsx +0 -71
  446. package/src/components/Tag/index.ts +0 -2
  447. package/src/components/Tag/styledVariables.ts +0 -137
  448. package/src/components/Tooltip/styledVariables.ts +0 -18
  449. package/src/hooks/useModalScrollLock.ts +0 -12
  450. package/src/i18n/index.ts +0 -2
  451. package/src/i18n/styledVariables.ts +0 -37
  452. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +0 -64
  453. package/src/icons/CheckboxIcon/index.ts +0 -1
  454. package/src/icons/EditIcon/EditIcon.tsx +0 -30
  455. package/src/icons/EditIcon/index.ts +0 -1
  456. package/src/icons/ErrorIcon/ErrorIcon.tsx +0 -15
  457. package/src/icons/ErrorIcon/index.ts +0 -1
  458. package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
  459. package/src/icons/LanguageIcon/index.ts +0 -1
  460. package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
  461. package/src/icons/PlusIcon/index.ts +0 -1
  462. package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
  463. package/src/icons/PointingArrowIcon/index.ts +0 -1
  464. package/src/icons/RocketIcon/RocketIcon.tsx +0 -32
  465. package/src/icons/RocketIcon/index.tsx +0 -1
  466. package/src/utils/tags-parser.ts +0 -8
  467. /package/lib/components/{Profile → Navbar}/MobileUserProfile.d.ts +0 -0
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { LanguagePicker } from '@theme';
4
3
 
5
- import { useI18n, useTranslate } from '@portal/hooks';
4
+ import { useTranslate } from '@portal/hooks';
6
5
 
7
6
  interface FooterCopyrightProps {
8
7
  copyrightText: string;
@@ -14,8 +13,6 @@ export function FooterCopyright({
14
13
  className,
15
14
  }: FooterCopyrightProps): JSX.Element | null {
16
15
  const { translate } = useTranslate();
17
- const { changeLanguage } = useI18n();
18
-
19
16
  const translationKeys = {
20
17
  copyrightText: 'theme.footer.copyrightText',
21
18
  };
@@ -25,24 +22,21 @@ export function FooterCopyright({
25
22
  data-component-name="Footer/FooterCopyright"
26
23
  data-translation-key={translationKeys.copyrightText}
27
24
  >
28
- <Label>{translate(translationKeys.copyrightText, copyrightText)}</Label>
29
- <LanguagePicker onChangeLanguage={changeLanguage} placement="top" alignment="end" />
25
+ {translate(translationKeys.copyrightText, copyrightText)}
30
26
  </Wrapper>
31
27
  ) : null;
32
28
  }
33
29
 
34
30
  const Wrapper = styled.section`
35
31
  display: flex;
36
- justify-content: space-between;
37
- align-items: center;
38
- font-size: var(--footer-copyright-font-size);
39
- margin-top: var(--footer-copyright-margin-top);
32
+ justify-content: center;
33
+ font-size: 0.875em;
34
+ padding: 1.5em 3em;
35
+ font-weight: var(--font-weight-bold);
40
36
  background-color: var(--footer-background-color);
41
37
  color: var(--footer-text-color);
42
- text-align: var(--footer-copyright-text-align);
38
+ text-align: center;
43
39
  span {
44
40
  max-width: var(--footer-container-max-width);
45
41
  }
46
42
  `;
47
-
48
- const Label = styled.div``;
@@ -2,4 +2,3 @@ export * from '@theme/components/Footer/Footer';
2
2
  export * from '@theme/components/Footer/FooterColumn';
3
3
  export * from '@theme/components/Footer/FooterColumns';
4
4
  export * from '@theme/components/Footer/FooterCopyright';
5
- export * from '@theme/components/Footer/styledVariables';
@@ -108,7 +108,7 @@ export const JsonViewer = styled(Json).attrs(() => ({
108
108
  }))<JsonProps>`
109
109
  .redoc-json code {
110
110
  background-color: var(--panel-samples-code-block-background-color);
111
- color: var(--text-secondary);
111
+ color: var(--text-color-inverse);
112
112
  padding: inherit;
113
113
  border: none;
114
114
  }
@@ -175,7 +175,7 @@ export const JsonViewer = styled(Json).attrs(() => ({
175
175
  background-color: transparent;
176
176
  border: 0;
177
177
  padding: 1px;
178
- color: var(--text-secondary);
178
+ color: #fff;
179
179
  width: var(--size);
180
180
  height: var(--size);
181
181
  margin-left: calc((var(--size) + var(--margin-right)) * -1);
@@ -51,7 +51,8 @@ export function LastUpdated(props: LastUpdatedProps): JSX.Element | null {
51
51
  data-print-datetime={isoDate}
52
52
  data-translation-key={translationKey}
53
53
  >
54
- {text} {/* TODO: fix issue with snapshot tests - they should not depend on current date */}
54
+ {text}
55
+ {/* TODO: fix issue with snapshot tests - they should not depend on current date */}
55
56
  <time dateTime={isoDate}>{lastUpdatedString}</time>
56
57
  </Wrapper>
57
58
  );
@@ -31,20 +31,18 @@ export function Admonition({
31
31
  data-hash={dataHash}
32
32
  >
33
33
  <AlertIcon type={type} />
34
- <TextContainer>
35
- {name ? <Heading type={type}>{name}</Heading> : null}
36
- <Content>{children}</Content>
37
- </TextContainer>
34
+ {name ? <Heading type={type}>{name}</Heading> : null}
35
+ <Content>{children}</Content>
38
36
  </Wrapper>
39
37
  );
40
38
  }
41
39
 
42
40
  const Wrapper = styled.div<AdmonitionTypeProps>`
43
- display: flex;
44
- flex-direction: row;
45
- gap: var(--spacing-base);
41
+ position: relative;
42
+ align-items: center;
46
43
  margin: var(--admonition-margin-vertical) var(--admonition-margin-horizontal);
47
44
  padding: var(--admonition-padding-vertical) var(--admonition-padding-horizontal);
45
+ padding-left: calc(var(--admonition-padding-horizontal) * 2 + var(--admonition-icon-size));
48
46
  border-radius: var(--admonition-border-radius);
49
47
  font-size: var(--admonition-font-size);
50
48
  font-weight: var(--admonition-font-weight);
@@ -60,13 +58,10 @@ const Wrapper = styled.div<AdmonitionTypeProps>`
60
58
  `}
61
59
  `;
62
60
 
63
- const TextContainer = styled.div`
64
- display: flex;
65
- flex-direction: column;
66
- gap: var(--spacing-unit);
67
- `;
61
+ const Heading = styled.h5<AdmonitionTypeProps>`
62
+ display: block;
63
+ margin: 0 0 10px;
68
64
 
69
- const Heading = styled.div<AdmonitionTypeProps>`
70
65
  letter-spacing: var(--admonition-heading-letter-spacing);
71
66
  color: ${({ type }) => `var(--admonition-${type}-heading-text-color)`};
72
67
 
@@ -8,6 +8,7 @@ import { EditPageButton } from '@theme/components/EditPageButton';
8
8
  import { LastUpdated } from '@theme/components/LastUpdated/LastUpdated';
9
9
  import { useThemeConfig } from '@theme/hooks';
10
10
  import type { ResolvedNavItemWithLink } from '@theme/types/portal';
11
+ import { useTranslate } from '@portal/hooks';
11
12
  import { Breadcrumbs as ThemeBreadcrumbs } from '@theme/components/Breadcrumbs';
12
13
 
13
14
  type MarkdownLayoutProps = {
@@ -16,6 +17,8 @@ type MarkdownLayoutProps = {
16
17
  feedback: React.ReactNode;
17
18
  editPage?: {
18
19
  to: string;
20
+ text: string;
21
+ icon?: string;
19
22
  };
20
23
  /** String in ISO format */
21
24
  lastModified?: string | null;
@@ -35,7 +38,10 @@ export function MarkdownLayout({
35
38
  className,
36
39
  }: MarkdownLayoutProps): JSX.Element {
37
40
  const { markdown } = useThemeConfig();
38
-
41
+ const { translate } = useTranslate();
42
+ const translationKeys = {
43
+ text: 'theme.markdown.editPage.text',
44
+ };
39
45
  const { editPage: themeEditPage } = markdown || {};
40
46
 
41
47
  const mergedConf = editPage ? { ...themeEditPage, ...editPage } : undefined;
@@ -46,7 +52,14 @@ export function MarkdownLayout({
46
52
  <Breadcrumbs />
47
53
  <LayoutTop>
48
54
  {lastModified && <LastUpdated lastModified={new Date(lastModified)} />}
49
- {mergedConf && <EditPageButton to={mergedConf.to} />}
55
+ {mergedConf && (
56
+ <EditPageButton
57
+ text={translate(translationKeys.text, mergedConf.text)}
58
+ to={mergedConf.to}
59
+ icon={mergedConf.icon}
60
+ data-translation-key={translationKeys.text}
61
+ />
62
+ )}
50
63
  </LayoutTop>
51
64
  {markdownWrapper}
52
65
  <LayoutBottom>{feedback}</LayoutBottom>
@@ -149,7 +149,7 @@ export const MarkdownWrapper = styled.main.attrs<{
149
149
  font-weight: var(--font-weight-regular);
150
150
  padding: 0;
151
151
 
152
- color: var(--text-secondary);
152
+ color: var(--text-color);
153
153
  font-size: var(--font-size-base);
154
154
  font-family: var(--font-family-base);
155
155
  line-height: var(--line-height-base);
@@ -207,7 +207,7 @@ export const MarkdownWrapper = styled.main.attrs<{
207
207
  margin: 1.125em 0;
208
208
 
209
209
  summary {
210
- color: var(--text-secondary);
210
+ color: var(--text-color);
211
211
  font-weight: var(--font-weight-regular);
212
212
  outline: 0;
213
213
  padding: 0;
@@ -317,6 +317,8 @@ export const MarkdownWrapper = styled.main.attrs<{
317
317
  padding: calc(var(--spacing-unit) * 2);
318
318
  overflow-x: auto;
319
319
  line-height: normal;
320
+ border-radius: var(--code-block-border-radius);
321
+ border: 1px solid var(--code-block-border-color);
320
322
 
321
323
  code {
322
324
  background-color: transparent;
@@ -28,11 +28,8 @@ export function Mermaid({
28
28
  }
29
29
 
30
30
  const Wrapper = styled.div`
31
- background-color: var(--mermaid-background-color);
32
- border-radius: var(--mermaid-border-radius);
33
-
34
31
  .mermaid > svg {
35
- font-size: var(--font-size-base) !important;
32
+ font-size: 14px !important;
36
33
  max-width: 100%;
37
34
  }
38
35
  `;
@@ -7,4 +7,3 @@ export * from '@theme/components/Markdown/MarkdownWrapper';
7
7
  export * from '@theme/components/Markdown/Mermaid';
8
8
  export * from '@theme/components/Markdown/PageWrapper';
9
9
  export * from '@theme/components/Markdown/Sup';
10
- export * from '@theme/components/Markdown/styledVariables';
@@ -39,9 +39,11 @@ export function Menu({ depth = 0, items, className, isMobile }: MenuListProps) {
39
39
  export const ThemeMenu = styled.ul.attrs(() => ({
40
40
  'data-component-name': 'Menu/Menu',
41
41
  }))`
42
- padding: var(--menu-padding);
43
- margin: var(--menu-margin);
44
- list-style: var(--menu-list-style);
45
- color: var(--menu-text-color);
46
- position: relative;
42
+ padding: 0;
43
+ margin: 0;
44
+ list-style: none;
45
+ color: var(--sidebar-item-text-color);
46
+ ${({ theme }) => theme.mediaQueries.medium} {
47
+ position: relative;
48
+ }
47
49
  `;
@@ -49,13 +49,10 @@ export function MenuGroup({
49
49
  isAlwaysExpanded={item.expanded === 'always'}
50
50
  active={item.active}
51
51
  role={!item.link ? 'link' : 'none'}
52
- expanded={isExpanded}
53
52
  >
53
+ {!!item.items.length && <MenuGroupArrow direction={isExpanded ? 'down' : 'right'} />}
54
54
  {item.icon ? <SidebarItemIcon src={item.icon} /> : null}
55
55
  {translate(item.labelTranslationKey, item.label)}
56
- {!!item.items.length && (
57
- <ArrowIcon direction={isExpanded ? 'down' : 'right'} weight="thin" />
58
- )}
59
56
  </MenuGroupLabel>
60
57
  </MenuLinkItem>
61
58
 
@@ -79,7 +76,7 @@ const MenuWrapper = styled.div<{ isExpanded?: boolean }>`
79
76
  transition: max-height .8s cubic-bezier(0, 1, 0, 1) -.1s;`};
80
77
  `;
81
78
 
82
- const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean; expanded?: boolean }>`
79
+ const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean }>`
83
80
  padding-left: var(--sidebar-item-padding-horizontal);
84
81
  cursor: ${(props) => (props.isAlwaysExpanded ? 'default' : 'pointer')};
85
82
  font-family: var(--sidebar-item-group-font-family);
@@ -87,18 +84,13 @@ const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean; expan
87
84
  text-transform: var(--sidebar-text-group-transform);
88
85
  color: var(--sidebar-item-group-text-color);
89
86
  background: var(--sidebar-item-group-background-color);
90
- display: flex;
91
- justify-content: space-between;
92
-
93
- ${({ active }) =>
94
- active
87
+ ${(props) =>
88
+ props.active
95
89
  ? `color: var(--sidebar-item-group-active-text-color);
96
90
  background-color: var(--sidebar-item-group-active-background-color);`
97
91
  : null};
92
+ `;
98
93
 
99
- ${({ expanded }) =>
100
- expanded &&
101
- `
102
- color: var(--sidebar-item-group-active-text-color);
103
- `}
94
+ const MenuGroupArrow = styled(ArrowIcon)`
95
+ margin-right: calc(var(--sidebar-spacing-unit) / 2);
104
96
  `;
@@ -17,7 +17,7 @@ export function MenuItem({ item, className }: MenuItemProps): JSX.Element {
17
17
  <Label active={item.active}>
18
18
  {item.icon ? <SidebarItemIcon src={item.icon} /> : null}
19
19
  {translate(item.labelTranslationKey, item.label)}
20
- {item.external ? <ExternalIcon /> : null}
20
+ {item.external ? <ExternalIcon dataComponentName="Sidebar/ExternalIcon" /> : null}
21
21
  </Label>
22
22
  </MenuLinkItem>
23
23
 
@@ -5,25 +5,29 @@ export const MenuItemLabel = styled.li.attrs<{ className?: string }>(({ classNam
5
5
  className,
6
6
  }))<{ active?: boolean }>`
7
7
  display: flex;
8
- align-items: var(--menu-item-label-align-items);
8
+ align-items: center;
9
9
  cursor: pointer;
10
- transition: var(--menu-item-label-transition);
11
- word-break: var(--menu-item-label-word-break);
10
+ transition: background-color 0.3s, color 0.3s;
11
+ word-break: break-word;
12
+ margin-bottom: 1px;
12
13
 
13
14
  background-color: var(--sidebar-item-background-color);
14
15
  font-family: var(--sidebar-item-font-family);
15
16
  font-size: var(--sidebar-item-font-size);
16
- font-weight: var(--sidebar-item-font-weight);
17
- line-height: var(--sidebar-item-line-height);
18
- margin: var(--menu-item-label-margin);
19
- padding: var(--menu-item-label-padding);
17
+ font-weight: var(--font-weight-regular);
18
+ margin-left: var(--sidebar-offset-left);
19
+ padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
20
+ padding-left: calc(
21
+ var(--sidebar-item-padding-horizontal) + var(--sidebar-group-item-chevron-size) +
22
+ var(--sidebar-spacing-unit) * 0.5
23
+ );
20
24
  border-radius: var(--sidebar-item-border-radius);
21
25
 
22
26
  ${({ active, theme }) =>
23
27
  active &&
24
28
  `
25
29
  color: var(--mobile-menu-item-active-text-color);
26
- background-color: var(--mobile-menu-item-active-background-color);
30
+ background-color: var(--mobile-menu-item-active-color);
27
31
 
28
32
  ${theme.mediaQueries.medium} {
29
33
  color: var(--sidebar-item-active-color);
@@ -36,7 +40,7 @@ export const MenuItemLabel = styled.li.attrs<{ className?: string }>(({ classNam
36
40
 
37
41
  ${({ theme }) => theme.mediaQueries.medium} {
38
42
  color: var(--sidebar-item-hover-color);
39
- background: var(--sidebar-item-hover-background-color);
43
+ background-color: var(--sidebar-item-hover-background-color);
40
44
  }
41
45
  }
42
46
 
@@ -5,7 +5,7 @@ import styled from 'styled-components';
5
5
  import type { MobileMenuProps } from '@theme/components/Menu/types';
6
6
  import { MenuType } from '@theme/components/Menu/constants';
7
7
  import { Menu, MenuItemLabel } from '@theme/components/Menu/index';
8
- import { MobileUserProfile } from '@theme/components/Profile/MobileUserProfile';
8
+ import { MobileUserProfile } from '@theme/components/Navbar/MobileUserProfile';
9
9
  import { useCurrentProduct } from '@portal/hooks';
10
10
  import { ArrowIcon } from '@theme/icons';
11
11
  import { Product } from '@theme/components/Product/Product';
@@ -71,17 +71,17 @@ export function MobileMenu({ className }: MobileMenuProps): JSX.Element | null {
71
71
  );
72
72
  }
73
73
  const MobileMenuWrapper = styled.div`
74
- height: var(--mobile-menu-wrapper-height);
75
- width: var(--mobile-menu-wrapper-width);
74
+ height: calc(100vh - var(--navbar-height));
75
+ width: 100%;
76
76
  position: fixed;
77
- z-index: var(--mobile-menu-wrapper-z-index);
78
- left: var(--mobile-menu-wrapper-left);
79
- top: var(--mobile-menu-wrapper-top);
77
+ z-index: var(--z-index-raised);
78
+ left: 0;
79
+ top: var(--navbar-height);
80
80
  overflow-x: hidden;
81
- transition: var(--mobile-menu-wrapper-transition);
81
+ transition: 0.5s;
82
82
  display: flex;
83
83
  flex-direction: column;
84
- background: var(--mobile-menu-wrapper-background);
84
+ background: var(--mobile-menu-background);
85
85
 
86
86
  ${({ theme }) => theme.mediaQueries.medium} {
87
87
  display: none;
@@ -102,23 +102,27 @@ const ScrollableArea = styled.div`
102
102
  `;
103
103
 
104
104
  const MenuWrapper = styled.div`
105
- margin: var(--mobile-menu-margin);
106
- line-height: var(--mobile-menu-line-height);
105
+ margin: 0 var(--mobile-menu-horizontal-margin);
106
+ margin-top: var(--mobile-menu-items-margin-top);
107
+ line-height: 22px;
107
108
  background: var(--mobile-menu-background);
108
109
 
109
110
  ${MenuItemLabel} {
110
- margin: var(--mobile-menu-item-margin);
111
+ margin: 0;
111
112
  border-radius: var(--mobile-menu-item-radius);
113
+ padding-left: var(--sidebar-item-padding-horizontal);
112
114
  }
113
115
  `;
114
116
 
115
117
  export const ControlButton = styled.li`
116
118
  display: inline-block;
117
- padding: var(--mobile-menu-control-button-padding);
118
- margin: var(--mobile-menu-control-button-margin);
119
- text-align: var(--mobile-menu-control-button-text-align);
119
+ padding: var(--mobile-menu-control-button-padding-vertical)
120
+ var(--mobile-menu-control-button-padding-horizontal);
121
+ margin: var(--mobile-menu-control-button-margin-vertical)
122
+ var(--mobile-menu-control-button-margin-horizontal);
123
+ text-align: center;
120
124
  font-size: var(--mobile-menu-control-button-font-size);
121
- line-height: var(--mobile-menu-control-button-line-height);
125
+ line-height: 22px;
122
126
  font-weight: var(--mobile-menu-control-button-weight);
123
127
  color: var(--mobile-menu-control-button-color);
124
128
  cursor: pointer;
@@ -143,9 +147,10 @@ const ControlButtonLabel = styled.span<{ paddingDirection: 'right' | 'left' }>`
143
147
  `;
144
148
 
145
149
  const ProductNameWrapper = styled.div`
146
- color: var(--mobile-menu-product-name-color);
147
- border-radius: var(--mobile-menu-product-name-border-radius);
148
- border: var(--mobile-menu-product-name-border);
149
- padding: var(--mobile-menu-product-name-padding);
150
- margin: var(--mobile-menu-product-name-margin);
150
+ color: var(--mobile-menu-item-text-color);
151
+ border-radius: var(--mobile-menu-item-radius);
152
+ padding-left: var(--sidebar-item-padding-horizontal);
153
+ border: 1px solid rgba(0, 0, 0, 0.06);
154
+ padding: 8px 7px;
155
+ margin: 12px 8px 0 8px;
151
156
  `;
@@ -66,7 +66,7 @@ const MenuGroupLabel = styled(MenuItemLabel)<{ active?: boolean; expanded?: bool
66
66
  active &&
67
67
  `
68
68
  color: var(--mobile-menu-item-active-text-color);
69
- background-color: var(--mobile-menu-item-active-background-color);
69
+ background-color: var(--mobile-menu-item-active-color);
70
70
  `}
71
71
 
72
72
  ${({ expanded }) =>
@@ -6,4 +6,3 @@ export * from '@theme/components/Menu/MenuItemLabel';
6
6
  export * from '@theme/components/Menu/MenuLink';
7
7
  export * from '@theme/components/Menu/MenuLinkItem';
8
8
  export * from '@theme/components/Menu/MobileMenuGroup';
9
- export * from '@theme/components/Menu/styledVariables';
@@ -3,9 +3,9 @@ import styled from 'styled-components';
3
3
 
4
4
  import { useProfileProps } from '@portal/Profile/useProfileProps';
5
5
  import { LogoutIcon } from '@theme/icons/LogoutIcon';
6
+ import { AvatarWrapper, ProfileWrapper, Profile } from '@theme/components/Profile/Profile';
6
7
  import { useThemeConfig } from '@theme/hooks/useThemeConfig';
7
8
  import { useTranslate } from '@portal/hooks';
8
- import { UserProfileData } from '@theme/components/Profile/UserProfileData';
9
9
  import { telemetry } from '@portal/telemetry';
10
10
 
11
11
  export function MobileUserProfile() {
@@ -30,7 +30,12 @@ export function MobileUserProfile() {
30
30
  </LoginButton>
31
31
  ) : (
32
32
  <>
33
- <UserProfileData userData={userData} />
33
+ <UserDataWrapper>
34
+ <ProfilePicture>
35
+ <Profile name={userData.name} imageUrl={userData.picture} />
36
+ </ProfilePicture>
37
+ <UserName>{userData.name}</UserName>
38
+ </UserDataWrapper>
34
39
  <LogoutButton
35
40
  onClick={() => {
36
41
  handleLogout();
@@ -46,23 +51,16 @@ export function MobileUserProfile() {
46
51
  }
47
52
  const LoginButton = styled.a`
48
53
  background: var(--mobile-menu-login-button-background);
49
- border-radius: var(--mobile-menu-login-button-border-radius);
54
+ border-radius: 6px;
50
55
  width: 100%;
51
56
  margin: 0;
52
57
  padding: 5px 0;
53
58
  color: var(--mobile-menu-login-button-color);
54
- border: 1px solid var(--mobile-menu-login-button-border-color);
55
- font-size: var(--mobile-menu-login-button-font-size);
56
- font-family: var(--mobile-menu-login-button-font-family);
57
- font-weight: var(--mobile-menu-login-button-font-weight);
59
+ font-size: 14px;
58
60
  text-align: center;
59
- line-height: var(--mobile-menu-login-button-line-height);
61
+ line-height: 22px;
60
62
  cursor: pointer;
61
63
  text-decoration: none;
62
-
63
- &:hover {
64
- color: var(--mobile-menu-login-button-hover-color);
65
- }
66
64
  `;
67
65
 
68
66
  const MobileProfileWrapper = styled.div`
@@ -76,6 +74,25 @@ const MobileProfileWrapper = styled.div`
76
74
  background: var(--mobile-menu-profile-background);
77
75
  `;
78
76
 
77
+ const UserDataWrapper = styled.div`
78
+ display: flex;
79
+ align-items: center;
80
+ `;
81
+
82
+ const ProfilePicture = styled.div`
83
+ margin-right: 16px;
84
+
85
+ ${AvatarWrapper} {
86
+ margin: 0;
87
+ }
88
+
89
+ ${ProfileWrapper} {
90
+ padding: 0;
91
+ }
92
+ `;
93
+
94
+ const UserName = styled.div``;
95
+
79
96
  const LogoutButton = styled.div`
80
97
  cursor: pointer;
81
98
  user-select: none;
@@ -12,7 +12,7 @@ import { Search } from '@theme/components/Search/Search';
12
12
  import { AuthUserProfile } from '@theme/components/Profile/AuthUserProfile';
13
13
  import type { LogoConfig, ResolvedConfigLinks } from '@theme/types/portal';
14
14
  import { useI18n } from '@portal/hooks';
15
- import { LanguagePicker } from '@theme/i18n/LanguagePicker';
15
+ import { LanguagePicker } from '@theme/I18n/LanguagePicker';
16
16
  import { ProductPicker } from '@theme/components/Product';
17
17
  import { BurgerButton } from '@theme/components/Navbar/BurgerButton';
18
18
 
@@ -96,15 +96,15 @@ export function NavbarPresentational(props: NavbarPresentationalProps): JSX.Elem
96
96
  <ProductPicker />
97
97
  <NavbarMenu menuItems={menu as ResolvedConfigLinks} />
98
98
  {hideSearch ? null : <Search />}
99
- <LanguagePicker onChangeLanguage={changeLanguage} onlyIcon />
100
- <ColorModeSwitcherWrapper isVisible={isOpen}>
101
- <ColorModeSwitcher />
102
- </ColorModeSwitcherWrapper>
99
+ <LanguagePicker onChangeLanguage={changeLanguage} />
103
100
  {hideUserProfile ? null : (
104
101
  <AuthUserProfileWrapper>
105
102
  <AuthUserProfile />
106
103
  </AuthUserProfileWrapper>
107
104
  )}
105
+ <ColorModeSwitcherWrapper isVisible={isOpen}>
106
+ <ColorModeSwitcher />
107
+ </ColorModeSwitcherWrapper>
108
108
  </NavbarRow>
109
109
  </NavbarContainer>
110
110
  );
@@ -127,8 +127,6 @@ const AuthUserProfileWrapper = styled.div`
127
127
  `;
128
128
 
129
129
  export const NavbarContainer = styled.nav`
130
- border: var(--navbar-border);
131
-
132
130
  --text-color: var(--navbar-text-color);
133
131
 
134
132
  height: var(--navbar-height);
@@ -137,13 +135,17 @@ export const NavbarContainer = styled.nav`
137
135
  align-items: center;
138
136
  flex-shrink: 0;
139
137
 
140
- font-size: var(--navbar-font-size);
138
+ font-size: 0.875rem;
141
139
  position: sticky;
142
140
  top: 0;
143
141
  z-index: var(--z-index-raised);
144
- padding: 0;
142
+ padding: var(--navbar-item-padding-vertical) var(--navbar-item-padding-horizontal);
145
143
  background: var(--navbar-background-color);
146
- font-family: var(--navbar-font-family);
144
+ font-family: var(--navbar-item-font-family);
145
+
146
+ ${({ theme }) => theme.mediaQueries.medium} {
147
+ font-size: 1rem;
148
+ }
147
149
 
148
150
  ${({ theme }) => theme.mediaQueries.print} {
149
151
  background: transparent;
@@ -156,10 +158,6 @@ export const NavbarContainer = styled.nav`
156
158
  margin: 0;
157
159
  }
158
160
  }
159
-
160
- ${({ theme }) => theme.mediaQueries.medium} {
161
- padding: var(--navbar-padding);
162
- }
163
161
  `;
164
162
 
165
163
  export const NavbarRow = styled.div`
@@ -167,12 +165,7 @@ export const NavbarRow = styled.div`
167
165
  align-items: center;
168
166
  justify-content: space-between;
169
167
  margin: 0 auto;
170
- width: 90%;
171
-
172
- ${({ theme }) => theme.mediaQueries.medium} {
173
- width: 100%;
174
- }
168
+ width: 100%;
175
169
 
176
- gap: var(--navbar-menu-items-gap);
177
170
  max-width: var(--navbar-container-max-width);
178
171
  `;