@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
@@ -1,46 +1,32 @@
1
- import React, { useRef, useState } from 'react';
1
+ import React, { useEffect, useRef, useState } from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { ArrowIcon } from '@theme/icons';
5
5
  import { useOutsideClick } from '@theme/hooks';
6
6
 
7
- export interface SelectProps<T = any> {
8
- value: T;
9
- options: {
10
- element: React.ReactNode | string;
11
- value: T;
12
- label?: string;
13
- }[];
7
+ export interface SelectProps {
8
+ selected: React.ReactNode | string;
9
+ options: React.ReactNode[] | string[];
14
10
  dataAttributes?: Record<string, string>;
15
11
  className?: string;
16
12
  withArrow?: boolean;
17
13
  triggerEvent?: 'click' | 'hover';
18
- onChange?: (value: any) => void;
19
- placement?: 'top' | 'bottom';
20
- alignment?: 'start' | 'end';
21
- icon?: React.ReactNode;
22
- onlyIcon?: boolean;
23
- placeholder?: string;
14
+ onChange?: (value: React.ReactNode | string) => void;
24
15
  }
25
16
 
26
- export function Select<T>({
17
+ export const Select = ({
27
18
  className,
28
- value,
19
+ selected,
29
20
  options,
30
21
  dataAttributes,
31
- withArrow = true,
22
+ withArrow,
32
23
  triggerEvent = 'click',
33
24
  onChange,
34
- placement,
35
- alignment,
36
- icon,
37
- onlyIcon,
38
- placeholder,
39
- }: SelectProps<T>) {
40
- const containerRef = useRef<HTMLDivElement | null>(null);
25
+ }: SelectProps) => {
26
+ const selectRef = useRef<HTMLDivElement | null>(null);
41
27
 
42
28
  const [isOpen, setIsOpen] = useState<boolean>(false);
43
- // const [selectedIdx, setSelectedIdx] = useState<React.ReactNode | string>(selected);
29
+ const [_selected, setSelected] = useState<React.ReactNode | string>(selected);
44
30
 
45
31
  const handleOpen = () => {
46
32
  setIsOpen(true);
@@ -54,56 +40,45 @@ export function Select<T>({
54
40
  setIsOpen(!isOpen);
55
41
  };
56
42
 
57
- const handleSelect = (value: T) => {
58
- // setSelectedIdx(options.findIndex(o => o.value === value));
43
+ const handleSelect = (value: React.ReactNode | string) => {
44
+ setSelected(value);
59
45
  setIsOpen(false);
60
46
  onChange?.(value);
61
47
  };
62
48
 
63
- useOutsideClick(containerRef, handleClose);
49
+ useOutsideClick(selectRef, handleClose);
64
50
 
65
- // useEffect(() => {
66
- // handleSelect(selected);
67
- // // eslint-disable-next-line react-hooks/exhaustive-deps
68
- // }, [selected]);
69
-
70
- const selectedOption = options.find((option) => option.value === value);
51
+ useEffect(() => {
52
+ handleSelect(selected);
53
+ // eslint-disable-next-line react-hooks/exhaustive-deps
54
+ }, [selected]);
71
55
 
72
56
  return (
73
57
  <SelectContainer
74
58
  {...dataAttributes}
75
59
  data-testid="select"
76
60
  className={className}
77
- ref={containerRef}
61
+ ref={selectRef}
78
62
  onPointerEnter={triggerEvent === 'hover' ? handleOpen : undefined}
79
63
  onPointerLeave={triggerEvent === 'hover' ? handleClose : undefined}
80
64
  onClick={triggerEvent === 'click' ? handleToggle : undefined}
81
65
  >
82
66
  <SelectInput>
83
- {!onlyIcon && (
84
- <SelectInputValue>
85
- {selectedOption?.label || selectedOption?.element || placeholder}
86
- </SelectInputValue>
87
- )}
88
- {icon}
67
+ <SelectInputValue withArrow={withArrow}>{_selected}</SelectInputValue>
89
68
  {withArrow ? isOpen ? <ArrowIcon direction="up" /> : <ArrowIcon direction="down" /> : null}
90
69
  </SelectInput>
91
70
  {isOpen && (
92
- <SelectList placement={placement} alignment={alignment}>
71
+ <SelectList>
93
72
  {options.map((option, index) => (
94
- <SelectListItem
95
- key={index}
96
- onClick={() => handleSelect(option.value)}
97
- selected={option.value === value}
98
- >
99
- {typeof option.element === 'string' ? <div>{option.element}</div> : option.element}
73
+ <SelectListItem key={index} onClick={() => handleSelect(option)}>
74
+ {option}
100
75
  </SelectListItem>
101
76
  ))}
102
77
  </SelectList>
103
78
  )}
104
79
  </SelectContainer>
105
80
  );
106
- }
81
+ };
107
82
 
108
83
  export const SelectContainer = styled.div`
109
84
  position: relative;
@@ -127,23 +102,19 @@ export const SelectInput = styled.div`
127
102
  border-radius: var(--select-input-border-radius);
128
103
  padding: var(--select-input-padding-vertical) var(--select-input-padding-horizontal);
129
104
  cursor: pointer;
130
- gap: 8px;
131
105
  `;
132
106
 
133
- export const SelectInputValue = styled.div`
107
+ export const SelectInputValue = styled.div<{ withArrow?: boolean }>`
134
108
  pointer-events: none;
135
- min-width: 0;
109
+ ${({ withArrow }) => (withArrow ? 'margin-right: 8px;' : '')}
136
110
  `;
137
111
 
138
- export const SelectList = styled.ul<{ placement?: string; alignment?: string }>`
112
+ export const SelectList = styled.ul`
139
113
  position: absolute;
140
- top: ${({ placement }) => (placement === 'top' ? 'auto' : '100%')};
141
- bottom: ${({ placement }) => (placement === 'top' ? '100%' : 'auto')};
142
- left: ${({ alignment }) => (alignment === 'start' ? '0' : 'auto')};
143
- right: ${({ alignment }) => (alignment === 'end' ? '0' : 'auto')};
114
+ top: 100%;
115
+ left: 0;
144
116
  margin: 0;
145
117
  min-width: var(--select-list-min-width);
146
- width: 100%;
147
118
  max-width: var(--select-list-max-width);
148
119
  padding: var(--select-list-padding);
149
120
  background-color: var(--select-list-background-color);
@@ -156,7 +127,7 @@ export const SelectList = styled.ul<{ placement?: string; alignment?: string }>`
156
127
  z-index: 1;
157
128
  `;
158
129
 
159
- export const SelectListItem = styled.li<{ selected: boolean }>`
130
+ export const SelectListItem = styled.li`
160
131
  border-radius: var(--select-list-item-border-radius);
161
132
 
162
133
  & > * {
@@ -164,12 +135,6 @@ export const SelectListItem = styled.li<{ selected: boolean }>`
164
135
  }
165
136
 
166
137
  :hover {
167
- background-color: var(--select-list-item-hover-background-color);
138
+ background-color: var(--select-list-item-active-background-color);
168
139
  }
169
-
170
- ${({ selected }) =>
171
- selected &&
172
- `
173
- &, &:hover { background-color: var(--select-list-item-active-background-color); }
174
- `}
175
140
  `;
@@ -1,2 +1 @@
1
1
  export * from '@theme/components/Select/Select';
2
- export * from '@theme/components/Select/styledVariables';
@@ -5,30 +5,16 @@ import { SeparatorLine } from '@theme/components/Separator/SeparatorLine';
5
5
  import { SeparatorItem } from '@theme/components/Separator/SeparatorItem';
6
6
  import type { MenuItemProps } from '@theme/components/Sidebar/types';
7
7
  import { useTranslate } from '@portal/hooks';
8
- import { useThemeConfig } from '@theme/hooks';
9
8
 
10
9
  export function Separator({ item, className }: MenuItemProps): JSX.Element {
11
10
  const { translate } = useTranslate();
12
- const { sidebar } = useThemeConfig();
13
-
14
- const separatorLine = item.separatorLine || sidebar?.separatorLine;
15
- const linePosition = item.linePosition || sidebar?.linePosition || 'bottom';
16
11
 
17
12
  return (
18
- <Wrapper
19
- data-component-name="Sidebar/Separator"
20
- className={className}
21
- linePosition={linePosition}
22
- withLabel={!!item.label}
23
- >
13
+ <Wrapper data-component-name="Sidebar/Separator" className={className}>
24
14
  <SeparatorItem>{translate(item.labelTranslationKey, item.label)}</SeparatorItem>
25
- {separatorLine ? <SeparatorLine /> : null}
15
+ {item.separatorLine ? <SeparatorLine /> : null}
26
16
  </Wrapper>
27
17
  );
28
18
  }
29
19
 
30
- const Wrapper = styled.div<{ linePosition: 'top' | 'bottom'; withLabel?: boolean }>`
31
- display: flex;
32
- flex-direction: ${({ linePosition }) => (linePosition === 'top' ? 'column-reverse' : 'column')};
33
- margin-top: ${({ withLabel }) => (withLabel ? 'var(--sidebar-item-separator-offset)' : '0')};
34
- `;
20
+ const Wrapper = styled.div``;
@@ -9,20 +9,23 @@ export const SeparatorItem = styled(MenuItemLabel).attrs<{ className?: string }>
9
9
  }),
10
10
  )`
11
11
  cursor: default;
12
- font-weight: var(--sidebar-item-separator-font-weight);
13
- color: var(--sidebar-item-separator-text-color);
12
+ font-weight: var(--font-weight-bold);
13
+ color: var(--sidebar-separator-item-color);
14
+ font-family: var(--sidebar-item-separator-font-family);
14
15
  font-size: var(--sidebar-item-separator-font-size);
15
16
  text-transform: var(--sidebar-item-separator-text-transform);
16
17
  background: var(--mobile-menu-background);
17
- border-radius: 0;
18
- padding: var(--sidebar-item-separator-padding);
19
18
 
20
19
  ${({ theme }) => theme.mediaQueries.medium} {
21
20
  background: var(--sidebar-item-separator-background-color);
22
21
  }
23
22
 
23
+ *:not(:first-child) > & {
24
+ margin-top: var(--sidebar-item-separator-offset);
25
+ }
26
+
24
27
  :hover {
25
- color: var(--sidebar-item-separator-text-color);
26
- background: none;
28
+ color: inherit;
29
+ background-color: inherit;
27
30
  }
28
31
  `;
@@ -4,11 +4,7 @@ export const SeparatorLine = styled.div.attrs<{ className?: string }>(({ classNa
4
4
  'data-component-name': 'Sidebar/SeparatorLine',
5
5
  className,
6
6
  }))`
7
- height: var(--sidebar-item-separator-border-width);
8
- background-color: var(--sidebar-item-separator-border-color);
9
- margin: var(--mobile-sidebar-item-separator-line-offset);
10
-
11
- ${({ theme }) => theme.mediaQueries.medium} {
12
- margin: var(--sidebar-item-separator-line-offset);
13
- }
7
+ height: 1px;
8
+ background-color: var(--sidebar-item-separator-line-color);
9
+ margin: var(--sidebar-item-separator-offset) 0 var(--sidebar-item-padding-vertical) 0;
14
10
  `;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { Tag } from '@theme/components/Tag';
4
+ import { OperationBadge } from '@theme/components/OperationBadge';
5
5
  import { MenuLinkItem } from '@theme/components/Menu/MenuLinkItem';
6
6
  import { SeparatorLine } from '@theme/components/Separator/SeparatorLine';
7
7
  import { MenuItemLabel } from '@theme/components/Menu/MenuItemLabel';
@@ -12,10 +12,10 @@ export function ApiCallItem({ item, className }: MenuItemProps): JSX.Element {
12
12
  <Wrapper data-component-name="Sidebar/ApiCallItem" className={className}>
13
13
  <MenuLinkItem item={item}>
14
14
  <Label active={item.active}>
15
- {item.label}
16
- <HttpTag color={item.httpVerb || ''}>
15
+ <Badge type={item.httpVerb || ''}>
17
16
  {item.httpVerb === 'hook' ? 'event' : item.httpVerb}
18
- </HttpTag>
17
+ </Badge>
18
+ {item.label}
19
19
  </Label>
20
20
  </MenuLinkItem>
21
21
 
@@ -25,8 +25,6 @@ export function ApiCallItem({ item, className }: MenuItemProps): JSX.Element {
25
25
  }
26
26
 
27
27
  const Label = styled(MenuItemLabel)`
28
- display: flex;
29
- justify-content: space-between;
30
28
  color: var(--mobile-menu-item-text-color);
31
29
 
32
30
  ${({ theme }) => theme.mediaQueries.medium} {
@@ -36,16 +34,14 @@ const Label = styled(MenuItemLabel)`
36
34
 
37
35
  const Wrapper = styled.div``;
38
36
 
39
- export const HttpTag = styled(Tag)`
37
+ export const Badge = styled(OperationBadge)`
40
38
  flex-shrink: 0;
41
- margin: var(--sidebar-item-http-tag-margin);
42
- text-transform: uppercase;
43
-
44
- width: var(--sidebar-item-http-tag-width);
45
- height: var(--sidebar-item-http-tag-height);
46
-
47
- font-size: var(--sidebar-item-http-tag-font-size);
48
- font-family: var(--sidebar-item-http-tag-font-family);
49
- font-weight: var(--sidebar-item-http-tag-font-weight);
50
- border-radius: var(--sidebar-item-http-tag-border-radius);
39
+ margin-top: 0;
40
+ width: 36px;
41
+ height: 14px;
42
+ font-size: var(--sidebar-item-badge-http-font-size);
43
+ font-family: var(--sidebar-item-badge-http-font-family);
44
+ font-weight: var(--sidebar-item-badge-http-font-weight);
45
+ border-radius: var(--sidebar-item-badge-http-border-radius);
46
+ color: var(--sidebar-item-badge-http-text-color);
51
47
  `;
@@ -1,14 +1,15 @@
1
1
  import styled from 'styled-components';
2
2
  export const FooterWrapper = styled.div<{ collapsed?: boolean }>`
3
- padding: var(--sidebar-footer-padding-vertical) var(--sidebar-footer-padding-horizontal);
4
-
5
3
  ${({ collapsed }) =>
6
4
  collapsed &&
7
5
  `
8
6
  position: sticky;
9
7
  bottom: 0;
10
- padding: 0;
11
8
  `}
9
+ margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
10
+ padding-top: var(--sidebar-spacing-unit);
11
+ padding-right: var(--sidebar-spacing-unit);
12
+ border-top: solid 1px var(--border-color);
12
13
 
13
14
  button {
14
15
  margin: 0;
@@ -4,7 +4,7 @@ export const HeaderWrapper = styled.div.attrs<{ className?: string }>(({ classNa
4
4
  'data-component-name': 'Sidebar/HeaderWrapper',
5
5
  className,
6
6
  }))`
7
- margin: var(--sidebar-offset-top) 0 0 0;
8
- padding: 0 0 var(--sidebar-header-padding-bottom) var(--sidebar-offset-left);
9
- border-bottom: solid 1px var(--border-secondary);
7
+ margin: var(--sidebar-offset-top) 0 0 var(--sidebar-offset-left);
8
+ padding-bottom: var(--sidebar-spacing-unit);
9
+ border-bottom: solid 1px var(--border-color);
10
10
  `;
@@ -9,11 +9,6 @@ export const VersionPicker = styled(Select).attrs(() => ({
9
9
  'data-component-name': 'Sidebar/VersionPicker',
10
10
  },
11
11
  }))<SelectProps>`
12
- --select-list-item-active-background-color: var(
13
- --version-picker-list-item-active-background-color
14
- );
15
- --select-list-item-hover-background-color: var(--version-picker-list-item-hover-background-color);
16
-
17
12
  font-size: var(--version-picker-font-size);
18
13
  font-weight: var(--version-picker-font-weight);
19
14
  border-radius: var(--version-picker-border-radius);
@@ -45,5 +40,9 @@ export const VersionPicker = styled(Select).attrs(() => ({
45
40
  padding: var(--version-picker-list-item-vertical-padding)
46
41
  var(--version-picker-list-item-horizontal-padding);
47
42
  }
43
+
44
+ :hover {
45
+ background-color: var(--version-picker-list-item-active-background-color);
46
+ }
48
47
  }
49
48
  `;
@@ -11,4 +11,3 @@ export * from '@theme/components/Sidebar/FooterWrapper';
11
11
  export * from '@theme/components/Sidebar/HeaderWrapper';
12
12
  export * from '@theme/components/Sidebar/SidebarItemIcon';
13
13
  export * from '@theme/components/Sidebar/VersionPicker';
14
- export * from '@theme/components/Sidebar/styledVariables';
@@ -47,7 +47,6 @@ export interface NavItem {
47
47
  requiredPermission?: string;
48
48
  menuStyle?: MenuStyle;
49
49
  separatorLine?: boolean;
50
- linePosition?: 'top' | 'bottom';
51
50
  version?: string;
52
51
  default?: boolean;
53
52
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import styled, { css } from 'styled-components';
3
2
 
4
3
  import {
5
4
  StyledToggleRightPanelButton,
@@ -16,30 +15,11 @@ export const CollapseSidebarButton = ({
16
15
  onClick,
17
16
  }: CollapseSidebarButtonProps): JSX.Element => {
18
17
  return (
19
- <ToggleButton
18
+ <StyledToggleRightPanelButton
20
19
  title={initialValue ? 'Show sidebar' : 'Hide sidebar'}
21
20
  onClick={onClick}
22
- collapsed={initialValue}
23
21
  >
24
22
  {initialValue ? <HideLeftPanelSVG /> : <ShowLeftPanelSVG />}
25
- </ToggleButton>
23
+ </StyledToggleRightPanelButton>
26
24
  );
27
25
  };
28
-
29
- const ToggleButton = styled(StyledToggleRightPanelButton)<{ collapsed?: boolean }>`
30
- background: var(--sidebar-collapse-button-background-color);
31
- fill: var(--sidebar-collapse-button-icon-color);
32
- margin-right: ${({ collapsed }) => (collapsed ? 0 : 'calc(var(--spacing-unit) * -9)')};
33
- border: 1px solid var(--sidebar-collapse-button-border-color);
34
- border-radius: var(--border-radius-md);
35
- padding: var(--spacing-xxs);
36
- height: var(--control-height-sm);
37
- width: var(--control-height-sm);
38
-
39
- ${({ collapsed }) =>
40
- collapsed &&
41
- css`
42
- background: var(--sidebar-collapse-button-active-background-color);
43
- border: var(--sidebar-collapse-button-active-border-color);
44
- `}
45
- `;
@@ -5,7 +5,7 @@ export const ShowLeftPanelSVG = styled(() => (
5
5
  <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
6
6
  <path
7
7
  d="M4.375 7L8.75 2.625L9.3625 3.2375L5.6 7L9.3625 10.7625L8.75 11.375L4.375 7Z"
8
- fill="var(--text-secondary)"
8
+ fill="var(--color-emphasis-400)"
9
9
  />
10
10
  </svg>
11
11
  ))`
@@ -16,7 +16,7 @@ export const HideLeftPanelSVG = styled(() => (
16
16
  <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
17
17
  <path
18
18
  d="M9.62495 7L5.24995 11.375L4.63745 10.7625L8.39995 7L4.63745 3.2375L5.24995 2.625L9.62495 7Z"
19
- fill="var(--text-secondary)"
19
+ fill="var(--color-emphasis-400)"
20
20
  />
21
21
  </svg>
22
22
  ))`
@@ -30,14 +30,11 @@ export const StyledToggleRightPanelButton = styled.a`
30
30
  cursor: pointer;
31
31
  z-index: 1;
32
32
  /* Rectangle 201 */
33
- border-radius: var(--border-radius-md);
34
- padding: var(--spacing-xs);
35
- height: var(--control-height-base);
36
- width: var(--control-height-base);
37
- border: 1px solid var(--border-primary);
33
+ border-radius: var(--border-radius);
34
+ padding: var(--spacing-unit);
38
35
 
39
36
  &:hover {
40
- background-color: var(--sidebar-item-hover-background-color);
37
+ background-color: var(--sidebar-item-active-background-color);
41
38
  }
42
39
  `;
43
40
 
@@ -45,7 +42,7 @@ export const HideRightPanelSVG = styled(() => (
45
42
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
46
43
  <path
47
44
  d="M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3Z"
48
- fill="currentColor"
45
+ fill="var(--color-emphasis-400)"
49
46
  />
50
47
  </svg>
51
48
  ))`
@@ -56,7 +53,7 @@ export const ShowRightPanelSVG = styled(() => (
56
53
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
57
54
  <path
58
55
  d="M14 2H2C1.73478 2 1.48043 2.10536 1.29289 2.29289C1.10536 2.48043 1 2.73478 1 3V13C1 13.2652 1.10536 13.5196 1.29289 13.7071C1.48043 13.8946 1.73478 14 2 14H14C14.2652 14 14.5196 13.8946 14.7071 13.7071C14.8946 13.5196 15 13.2652 15 13V3C15 2.73478 14.8946 2.48043 14.7071 2.29289C14.5196 2.10536 14.2652 2 14 2V2ZM2 3H10V13H2V3ZM14 13H11V3H14V13Z"
59
- fill="currentColor"
56
+ fill="var(--color-emphasis-400)"
60
57
  />
61
58
  </svg>
62
59
  ))`
@@ -69,26 +66,29 @@ export const StyledChangeViewButton = styled.a`
69
66
  justify-content: center;
70
67
  align-items: center;
71
68
  cursor: pointer;
72
- border-radius: var(--border-radius-md);
73
- background: var(--bg-overlay);
69
+ border-radius: var(--border-radius);
74
70
  z-index: 1;
75
71
  /* Rectangle 201 */
76
- padding: var(--spacing-xs);
77
- height: var(--control-height-base);
78
- width: var(--control-height-base);
72
+ padding: var(--spacing-unit);
79
73
 
80
74
  &:hover {
81
- background-color: var(--sidebar-item-hover-background-color);
75
+ background-color: var(--sidebar-item-active-background-color);
82
76
  }
83
77
  `;
84
78
 
85
79
  export const ChangeViewSvgRow = styled(() => (
86
80
  <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
87
- <path d="M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z" fill="currentColor" />
88
- <path d="M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z" fill="currentColor" />
81
+ <path
82
+ d="M1.75 2.625L12.25 2.625L12.25 1.75L1.75 1.75L1.75 2.625Z"
83
+ fill="var(--color-emphasis-400)"
84
+ />
85
+ <path
86
+ d="M1.75 5.6875L12.25 5.6875L12.25 4.8125L1.75 4.8125L1.75 5.6875Z"
87
+ fill="var(--color-emphasis-400)"
88
+ />
89
89
  <path
90
90
  d="M2.625 11.375L2.625 8.75L11.375 8.75L11.375 11.375L2.625 11.375ZM2.625 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375L12.25 8.75C12.25 8.51794 12.1578 8.29538 11.9937 8.13128C11.8296 7.96719 11.6071 7.875 11.375 7.875L2.625 7.875C2.39294 7.875 2.17038 7.96719 2.00628 8.13128C1.84219 8.29538 1.75 8.51793 1.75 8.75L1.75 11.375C1.75 11.6071 1.84219 11.8296 2.00628 11.9937C2.17038 12.1578 2.39294 12.25 2.625 12.25Z"
91
- fill="currentColor"
91
+ fill="var(--color-emphasis-400)"
92
92
  />
93
93
  </svg>
94
94
  ))`
@@ -97,14 +97,17 @@ export const ChangeViewSvgRow = styled(() => (
97
97
 
98
98
  export const ChangeViewSvgColumn = styled(() => (
99
99
  <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
100
- <path d="M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z" fill="currentColor" />
100
+ <path
101
+ d="M2.625 12.25L2.625 1.75L1.75 1.75L1.75 12.25L2.625 12.25Z"
102
+ fill="var(--color-emphasis-400)"
103
+ />
101
104
  <path
102
105
  d="M5.6875 12.25L5.6875 1.75L4.8125 1.75L4.8125 12.25L5.6875 12.25Z"
103
- fill="currentColor"
106
+ fill="var(--color-emphasis-400)"
104
107
  />
105
108
  <path
106
109
  d="M11.375 11.375L8.75 11.375L8.75 2.625L11.375 2.625L11.375 11.375ZM12.25 11.375L12.25 2.625C12.25 2.39294 12.1578 2.17038 11.9937 2.00628C11.8296 1.84219 11.6071 1.75 11.375 1.75L8.75 1.75C8.51794 1.75 8.29538 1.84219 8.13128 2.00628C7.96719 2.17038 7.875 2.39294 7.875 2.625L7.875 11.375C7.875 11.6071 7.96719 11.8296 8.13128 11.9937C8.29538 12.1578 8.51794 12.25 8.75 12.25L11.375 12.25C11.6071 12.25 11.8296 12.1578 11.9937 11.9937C12.1578 11.8296 12.25 11.6071 12.25 11.375Z"
107
- fill="currentColor"
110
+ fill="var(--color-emphasis-400)"
108
111
  />
109
112
  </svg>
110
113
  ))`
@@ -120,9 +123,9 @@ export const ControlsWrap = styled.span<{
120
123
  justify-content: ${({ isOpenapiDocs }) => (isOpenapiDocs ? 'space-between' : 'flex-end')};
121
124
  bottom: 0;
122
125
  flex-direction: row;
123
- gap: var(--spacing-xs);
126
+ gap: var(--spacing-unit);
124
127
  align-items: center;
125
- margin-left: var(--sidebar-controls-margin-left);
128
+ margin-left: '15px';
126
129
  z-index: 2;
127
130
  background: var(--sidebar-background-color);
128
131
 
@@ -130,10 +133,8 @@ export const ControlsWrap = styled.span<{
130
133
  isCollapsed &&
131
134
  css`
132
135
  flex-direction: column;
133
- margin-left: 0;
134
- gap: var(--sidebar-controls-collapsed-gap);
135
- padding: var(--sidebar-controls-collapsed-padding-vertical)
136
- var(--sidebar-controls-collapsed-padding-horizontal);
136
+ gap: 10px;
137
+ padding-bottom: 10px;
137
138
  `}
138
139
 
139
140
  ${({ theme }) => css`
@@ -151,6 +152,6 @@ export const ControlsWrapChangeLayoutButtons = styled.span<{ isCollapsed?: boole
151
152
  display: flex;
152
153
  bottom: 0;
153
154
  flex-direction: ${({ isCollapsed }) => (isCollapsed ? 'column-reverse' : 'row')};
154
- gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-xs)')};
155
+ gap: ${({ isCollapsed }) => (isCollapsed ? '10px' : 'var(--spacing-unit)')};
155
156
  align-items: center;
156
157
  `;
@@ -81,13 +81,12 @@ const TocHeader = styled.div`
81
81
  font-weight: var(--toc-heading-font-weight);
82
82
  padding: var(--toc-item-padding-vertical) var(--toc-item-padding-horizontal);
83
83
  color: var(--toc-heading-text-color);
84
- text-transform: var(--toc-heading-text-transform);
84
+ text-transform: uppercase;
85
85
  `;
86
86
 
87
87
  const MenuItem = styled.a<{ depth: number }>`
88
88
  display: block;
89
89
  color: var(--toc-item-text-color);
90
- font-weight: var(--toc-item-font-weight);
91
90
  background-color: var(--toc-item-background-color);
92
91
  cursor: pointer;
93
92
  font-size: var(--toc-item-font-size);
@@ -101,6 +100,7 @@ const MenuItem = styled.a<{ depth: number }>`
101
100
  :hover,
102
101
  &.active {
103
102
  color: var(--toc-item-active-text-color);
103
+ background-color: var(--toc-item-active-background-color);
104
104
  }
105
105
 
106
106
  :empty {
@@ -123,6 +123,7 @@ const TableOfContentItems = styled.div`
123
123
  position: sticky;
124
124
  top: calc(var(--navbar-height) + var(--toc-offset-top));
125
125
  max-height: calc(100vh - var(--navbar-height) - var(--toc-offset-top));
126
+ border-left: 1px solid var(--toc-border-color);
126
127
  overflow-y: auto;
127
128
  width: var(--toc-width);
128
129
  `;
@@ -1,2 +1 @@
1
1
  export * from '@theme/components/TableOfContent/TableOfContent';
2
- export * from '@theme/components/TableOfContent/styledVariables';
@@ -34,7 +34,7 @@ const TabItem = styled.li<{ active: boolean }>`
34
34
  background-color: var(--background-color);
35
35
  border: solid var(--md-tabs-active-tab-border-color);
36
36
  border-width: 0 0 1px 0;
37
- color: var(--text-primary);
37
+ color: var(--text-color);
38
38
  `
39
39
  : `
40
40
  &:hover {
@@ -51,7 +51,7 @@ const TabList = styled.ol`
51
51
  color: var(--md-tabs-tab-text-color);
52
52
  padding: 0;
53
53
  margin-block-end: 0;
54
- border: solid var(--border-primary);
54
+ border: solid var(--color-secondary-400);
55
55
  border-width: 0 0 1px 0;
56
56
 
57
57
  li[class^='Tab__TabItem'] {