@redocly/theme 0.18.1 → 0.18.3-patch.0

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 (373) hide show
  1. package/lib/I18n/LanguagePicker.d.ts +7 -2
  2. package/lib/I18n/LanguagePicker.js +11 -3
  3. package/lib/I18n/index.d.ts +1 -0
  4. package/lib/I18n/index.js +15 -0
  5. package/lib/I18n/styledVariables.d.ts +1 -0
  6. package/lib/I18n/styledVariables.js +39 -0
  7. package/lib/components/Breadcrumbs/Breadcrumb.js +2 -1
  8. package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -1
  9. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  10. package/lib/components/Breadcrumbs/index.js +1 -0
  11. package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
  12. package/lib/components/Breadcrumbs/styledVariables.js +19 -0
  13. package/lib/components/Button/Button.d.ts +6 -3
  14. package/lib/components/Button/Button.js +40 -42
  15. package/lib/components/Button/index.d.ts +1 -0
  16. package/lib/components/Button/index.js +1 -0
  17. package/lib/components/Button/styledVariables.d.ts +1 -0
  18. package/lib/components/Button/styledVariables.js +94 -0
  19. package/lib/components/Catalog/Catalog.d.ts +1 -0
  20. package/lib/components/Catalog/Catalog.js +99 -96
  21. package/lib/components/Catalog/CatalogCard.js +61 -56
  22. package/lib/components/Catalog/index.d.ts +4 -3
  23. package/lib/components/Catalog/index.js +4 -3
  24. package/lib/components/Catalog/styledVariables.d.ts +1 -0
  25. package/lib/components/Catalog/styledVariables.js +94 -0
  26. package/lib/components/CodeBlock/CodeBlockContainer.js +35 -8
  27. package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
  28. package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
  29. package/lib/components/CodeBlock/CodeBlockControls.js +8 -5
  30. package/lib/components/CodeBlock/index.d.ts +1 -0
  31. package/lib/components/CodeBlock/index.js +1 -0
  32. package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
  33. package/lib/components/CodeBlock/styledVariables.js +90 -0
  34. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
  35. package/lib/components/Dropdown/Dropdown.d.ts +7 -2
  36. package/lib/components/Dropdown/Dropdown.js +6 -4
  37. package/lib/components/Dropdown/index.d.ts +1 -0
  38. package/lib/components/Dropdown/index.js +1 -0
  39. package/lib/components/Dropdown/styledVariables.d.ts +1 -0
  40. package/lib/components/Dropdown/styledVariables.js +30 -0
  41. package/lib/components/Feedback/Reasons.js +1 -1
  42. package/lib/components/Feedback/Thumbs.js +4 -4
  43. package/lib/components/Filter/Filter.js +101 -78
  44. package/lib/components/Filter/FilterContent.d.ts +11 -0
  45. package/lib/components/Filter/FilterContent.js +50 -0
  46. package/lib/components/Filter/FilterPopover.d.ts +11 -0
  47. package/lib/components/Filter/FilterPopover.js +99 -0
  48. package/lib/components/Filter/FilterTag.d.ts +7 -0
  49. package/lib/components/Filter/FilterTag.js +33 -0
  50. package/lib/components/Filter/FilterTags.d.ts +7 -0
  51. package/lib/components/Filter/FilterTags.js +29 -0
  52. package/lib/components/Filter/index.d.ts +2 -0
  53. package/lib/components/Filter/index.js +2 -0
  54. package/lib/components/Filter/styledVariables.d.ts +1 -0
  55. package/lib/components/Filter/styledVariables.js +112 -0
  56. package/lib/components/Footer/CustomFooterNavItem.js +1 -1
  57. package/lib/components/Footer/Footer.d.ts +4 -3
  58. package/lib/components/Footer/Footer.js +27 -10
  59. package/lib/components/Footer/FooterColumn.d.ts +3 -3
  60. package/lib/components/Footer/FooterColumn.js +53 -63
  61. package/lib/components/Footer/FooterColumns.js +6 -4
  62. package/lib/components/Footer/FooterCopyright.js +11 -6
  63. package/lib/components/Footer/index.d.ts +1 -0
  64. package/lib/components/Footer/index.js +1 -0
  65. package/lib/components/Footer/styledVariables.d.ts +1 -0
  66. package/lib/components/Footer/styledVariables.js +61 -0
  67. package/lib/components/Image/Image.d.ts +9 -0
  68. package/lib/components/Image/Image.js +31 -0
  69. package/lib/components/Image/index.d.ts +1 -0
  70. package/lib/components/{Tags → Image}/index.js +1 -1
  71. package/lib/components/JsonViewer/JsonViewer.js +2 -2
  72. package/lib/components/Markdown/MarkdownWrapper.js +2 -4
  73. package/lib/components/Markdown/Mermaid.js +1 -1
  74. package/lib/components/Markdown/index.d.ts +1 -0
  75. package/lib/components/Markdown/index.js +1 -0
  76. package/lib/components/Markdown/styledVariables.d.ts +2 -0
  77. package/lib/components/Markdown/styledVariables.js +221 -0
  78. package/lib/components/Menu/Menu.js +5 -7
  79. package/lib/components/Menu/MenuGroup.js +12 -7
  80. package/lib/components/Menu/MenuItemLabel.js +7 -13
  81. package/lib/components/Menu/MobileMenu.js +20 -25
  82. package/lib/components/Menu/MobileMenuGroup.js +1 -1
  83. package/lib/components/Menu/index.d.ts +1 -0
  84. package/lib/components/Menu/index.js +1 -0
  85. package/lib/components/Menu/styledVariables.d.ts +2 -0
  86. package/lib/components/Menu/styledVariables.js +90 -0
  87. package/lib/components/Navbar/Navbar.js +10 -11
  88. package/lib/components/Navbar/NavbarItem.d.ts +1 -1
  89. package/lib/components/Navbar/NavbarItem.js +5 -3
  90. package/lib/components/Navbar/NavbarMenu.js +2 -2
  91. package/lib/components/Navbar/index.d.ts +1 -0
  92. package/lib/components/Navbar/index.js +1 -0
  93. package/lib/components/Navbar/styledVariables.d.ts +1 -0
  94. package/lib/components/Navbar/styledVariables.js +40 -0
  95. package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
  96. package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
  97. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
  98. package/lib/components/OpenApiDocs/Dropdown.js +3 -3
  99. package/lib/components/Panel/PanelHeader.js +1 -0
  100. package/lib/components/Panel/PanelHeaderTitle.js +0 -4
  101. package/lib/components/Panel/index.d.ts +1 -0
  102. package/lib/components/Panel/index.js +1 -0
  103. package/lib/components/Panel/styledVariables.d.ts +2 -0
  104. package/lib/components/Panel/styledVariables.js +489 -0
  105. package/lib/components/Product/index.d.ts +1 -0
  106. package/lib/components/Product/index.js +1 -0
  107. package/lib/components/Product/styledVariables.d.ts +2 -0
  108. package/lib/components/Product/styledVariables.js +41 -0
  109. package/lib/components/Profile/LoginLink.js +1 -2
  110. package/lib/components/{Navbar → Profile}/MobileUserProfile.js +3 -22
  111. package/lib/components/Profile/Profile.js +3 -22
  112. package/lib/components/Profile/UserProfile.js +21 -9
  113. package/lib/components/Profile/UserProfileData.d.ts +9 -0
  114. package/lib/components/Profile/UserProfileData.js +35 -0
  115. package/lib/components/Profile/index.d.ts +1 -0
  116. package/lib/components/Profile/index.js +15 -0
  117. package/lib/components/Profile/styledVariables.d.ts +2 -0
  118. package/lib/components/Profile/styledVariables.js +55 -0
  119. package/lib/components/Search/CancelSearch.js +2 -14
  120. package/lib/components/Search/ProductTag.js +7 -7
  121. package/lib/components/Search/RecentSearches.js +5 -5
  122. package/lib/components/Search/Search.js +10 -4
  123. package/lib/components/Search/SearchIcon.js +2 -2
  124. package/lib/components/Search/SearchItem.js +14 -17
  125. package/lib/components/Search/SearchTrigger.js +4 -5
  126. package/lib/components/Search/ShortcutKey.js +1 -5
  127. package/lib/components/Search/SuggestedPages.js +3 -3
  128. package/lib/components/Search/index.d.ts +1 -0
  129. package/lib/components/Search/index.js +1 -0
  130. package/lib/components/Search/styledVariables.d.ts +1 -0
  131. package/lib/components/Search/styledVariables.js +98 -0
  132. package/lib/components/Select/Select.d.ts +10 -3
  133. package/lib/components/Select/Select.js +9 -6
  134. package/lib/components/Select/index.d.ts +1 -0
  135. package/lib/components/Select/index.js +1 -0
  136. package/lib/components/Select/styledVariables.d.ts +1 -0
  137. package/lib/components/Select/styledVariables.js +33 -0
  138. package/lib/components/Separator/SeparatorItem.js +7 -5
  139. package/lib/components/Sidebar/ApiCallItem.d.ts +2 -6
  140. package/lib/components/Sidebar/ApiCallItem.js +13 -11
  141. package/lib/components/Sidebar/FooterWrapper.js +3 -4
  142. package/lib/components/Sidebar/HeaderWrapper.js +2 -2
  143. package/lib/components/Sidebar/VersionPicker.d.ts +1 -1
  144. package/lib/components/Sidebar/index.d.ts +1 -0
  145. package/lib/components/Sidebar/index.js +1 -0
  146. package/lib/components/Sidebar/styledVariables.d.ts +2 -0
  147. package/lib/components/Sidebar/styledVariables.js +210 -0
  148. package/lib/components/SidebarActions/CollapseSidebarButton.js +37 -1
  149. package/lib/components/SidebarActions/styled.js +16 -14
  150. package/lib/components/TableOfContent/TableOfContent.js +2 -3
  151. package/lib/components/TableOfContent/index.d.ts +1 -0
  152. package/lib/components/TableOfContent/index.js +1 -0
  153. package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
  154. package/lib/components/TableOfContent/styledVariables.js +46 -0
  155. package/lib/components/Tabs/Tab.js +1 -1
  156. package/lib/components/Tabs/Tabs.d.ts +1 -0
  157. package/lib/components/Tabs/Tabs.js +4 -4
  158. package/lib/components/Tag/Tag.d.ts +16 -0
  159. package/lib/components/Tag/Tag.js +39 -0
  160. package/lib/components/Tag/index.d.ts +2 -0
  161. package/lib/components/Tag/index.js +19 -0
  162. package/lib/components/Tag/styledVariables.d.ts +1 -0
  163. package/lib/components/Tag/styledVariables.js +130 -0
  164. package/lib/components/Tiles/TileText.js +1 -1
  165. package/lib/components/Tooltip/index.d.ts +1 -0
  166. package/lib/components/Tooltip/index.js +1 -0
  167. package/lib/components/Tooltip/styledVariables.d.ts +1 -0
  168. package/lib/components/Tooltip/styledVariables.js +21 -0
  169. package/lib/components/Typography/Typography.js +1 -1
  170. package/lib/components/index.d.ts +1 -2
  171. package/lib/components/index.js +1 -2
  172. package/lib/config.d.ts +8 -2
  173. package/lib/config.js +2 -1
  174. package/lib/globalStyle.js +597 -1967
  175. package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
  176. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
  177. package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
  178. package/lib/icons/CheckboxIcon/index.d.ts +1 -0
  179. package/lib/icons/CheckboxIcon/index.js +6 -0
  180. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
  181. package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
  182. package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
  183. package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
  184. package/lib/icons/CopyIcon/CopyIcon.js +4 -4
  185. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
  186. package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
  187. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
  188. package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
  189. package/lib/icons/ErrorIcon/index.d.ts +1 -0
  190. package/lib/{components/OperationBadge → icons/ErrorIcon}/index.js +1 -1
  191. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
  192. package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
  193. package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
  194. package/lib/icons/FileIcon/FileIcon.js +2 -2
  195. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
  196. package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
  197. package/lib/icons/LanguageIcon/index.d.ts +1 -0
  198. package/lib/icons/LanguageIcon/index.js +18 -0
  199. package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
  200. package/lib/icons/PlusIcon/PlusIcon.js +16 -0
  201. package/lib/icons/PlusIcon/index.d.ts +1 -0
  202. package/lib/icons/PlusIcon/index.js +18 -0
  203. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
  204. package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
  205. package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
  206. package/lib/icons/PointingArrowIcon/index.js +18 -0
  207. package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
  208. package/lib/icons/ReportIcon/ReportIcon.js +3 -3
  209. package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
  210. package/lib/icons/SelectIcon/SelectIcon.js +5 -5
  211. package/lib/icons/index.d.ts +4 -0
  212. package/lib/icons/index.js +4 -0
  213. package/lib/layouts/Forbidden.js +4 -0
  214. package/lib/layouts/NotFound.js +4 -0
  215. package/lib/mocks/telemetry.d.ts +2 -0
  216. package/lib/mocks/telemetry.js +7 -0
  217. package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
  218. package/lib/ui/Burger.js +1 -1
  219. package/lib/ui/Dropdown.js +7 -7
  220. package/lib/ui/Jumbotron.js +1 -1
  221. package/lib/ui/darkColors.js +216 -84
  222. package/package.json +3 -2
  223. package/src/I18n/LanguagePicker.tsx +29 -4
  224. package/src/I18n/index.ts +1 -0
  225. package/src/I18n/styledVariables.ts +36 -0
  226. package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -1
  227. package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  228. package/src/components/Breadcrumbs/index.ts +1 -0
  229. package/src/components/Breadcrumbs/styledVariables.ts +16 -0
  230. package/src/components/Button/Button.tsx +52 -48
  231. package/src/components/Button/index.ts +1 -0
  232. package/src/components/Button/styledVariables.ts +91 -0
  233. package/src/components/Catalog/Catalog.tsx +127 -115
  234. package/src/components/Catalog/CatalogCard.tsx +74 -59
  235. package/src/components/Catalog/index.ts +4 -0
  236. package/src/components/Catalog/styledVariables.ts +91 -0
  237. package/src/components/CodeBlock/CodeBlockContainer.tsx +14 -7
  238. package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
  239. package/src/components/CodeBlock/CodeBlockControls.tsx +8 -5
  240. package/src/components/CodeBlock/index.ts +1 -0
  241. package/src/components/CodeBlock/styledVariables.ts +87 -0
  242. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
  243. package/src/components/Dropdown/Dropdown.tsx +10 -4
  244. package/src/components/Dropdown/index.ts +1 -0
  245. package/src/components/Dropdown/styledVariables.ts +27 -0
  246. package/src/components/Feedback/Reasons.tsx +1 -1
  247. package/src/components/Feedback/Thumbs.tsx +4 -4
  248. package/src/components/Filter/Filter.tsx +127 -94
  249. package/src/components/Filter/FilterContent.tsx +75 -0
  250. package/src/components/Filter/FilterPopover.tsx +132 -0
  251. package/src/components/Filter/FilterTag.tsx +37 -0
  252. package/src/components/Filter/FilterTags.tsx +39 -0
  253. package/src/components/Filter/index.ts +2 -0
  254. package/src/components/Filter/styledVariables.ts +109 -0
  255. package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
  256. package/src/components/Footer/Footer.tsx +32 -10
  257. package/src/components/Footer/FooterColumn.tsx +79 -62
  258. package/src/components/Footer/FooterColumns.tsx +6 -4
  259. package/src/components/Footer/FooterCopyright.tsx +13 -7
  260. package/src/components/Footer/index.ts +1 -0
  261. package/src/components/Footer/styledVariables.ts +58 -0
  262. package/src/components/Image/Image.tsx +47 -0
  263. package/src/components/Image/index.ts +1 -0
  264. package/src/components/JsonViewer/JsonViewer.tsx +2 -2
  265. package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
  266. package/src/components/Markdown/Mermaid.tsx +1 -1
  267. package/src/components/Markdown/index.ts +1 -0
  268. package/src/components/Markdown/styledVariables.ts +219 -0
  269. package/src/components/Menu/Menu.tsx +5 -7
  270. package/src/components/Menu/MenuGroup.tsx +15 -7
  271. package/src/components/Menu/MenuItemLabel.tsx +7 -13
  272. package/src/components/Menu/MobileMenu.tsx +20 -25
  273. package/src/components/Menu/MobileMenuGroup.tsx +1 -1
  274. package/src/components/Menu/index.ts +1 -0
  275. package/src/components/Menu/styledVariables.ts +88 -0
  276. package/src/components/Navbar/Navbar.tsx +10 -11
  277. package/src/components/Navbar/NavbarItem.tsx +6 -3
  278. package/src/components/Navbar/NavbarMenu.tsx +2 -2
  279. package/src/components/Navbar/index.ts +1 -0
  280. package/src/components/Navbar/styledVariables.ts +37 -0
  281. package/src/components/NavbarLogo/NavbarLogo.tsx +14 -10
  282. package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
  283. package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
  284. package/src/components/Panel/PanelHeader.ts +1 -0
  285. package/src/components/Panel/PanelHeaderTitle.ts +0 -4
  286. package/src/components/Panel/index.ts +1 -0
  287. package/src/components/Panel/styledVariables.ts +487 -0
  288. package/src/components/Product/index.ts +1 -0
  289. package/src/components/Product/styledVariables.ts +39 -0
  290. package/src/components/Profile/LoginLink.tsx +1 -2
  291. package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +3 -27
  292. package/src/components/Profile/Profile.tsx +1 -24
  293. package/src/components/Profile/UserProfile.tsx +20 -8
  294. package/src/components/Profile/UserProfileData.tsx +40 -0
  295. package/src/components/Profile/index.ts +1 -0
  296. package/src/components/Profile/styledVariables.ts +53 -0
  297. package/src/components/Search/CancelSearch.tsx +2 -15
  298. package/src/components/Search/ProductTag.tsx +7 -7
  299. package/src/components/Search/RecentSearches.tsx +5 -5
  300. package/src/components/Search/Search.tsx +14 -4
  301. package/src/components/Search/SearchIcon.tsx +10 -5
  302. package/src/components/Search/SearchItem.tsx +26 -31
  303. package/src/components/Search/SearchTrigger.tsx +4 -5
  304. package/src/components/Search/ShortcutKey.tsx +1 -5
  305. package/src/components/Search/SuggestedPages.tsx +3 -3
  306. package/src/components/Search/index.ts +1 -0
  307. package/src/components/Search/styledVariables.ts +95 -0
  308. package/src/components/Select/Select.tsx +20 -7
  309. package/src/components/Select/index.ts +1 -0
  310. package/src/components/Select/styledVariables.ts +30 -0
  311. package/src/components/Separator/SeparatorItem.tsx +7 -5
  312. package/src/components/Sidebar/ApiCallItem.tsx +13 -11
  313. package/src/components/Sidebar/FooterWrapper.tsx +3 -4
  314. package/src/components/Sidebar/HeaderWrapper.tsx +2 -2
  315. package/src/components/Sidebar/index.ts +1 -0
  316. package/src/components/Sidebar/styledVariables.ts +208 -0
  317. package/src/components/SidebarActions/CollapseSidebarButton.tsx +18 -2
  318. package/src/components/SidebarActions/styled.tsx +16 -23
  319. package/src/components/TableOfContent/TableOfContent.tsx +2 -3
  320. package/src/components/TableOfContent/index.ts +1 -0
  321. package/src/components/TableOfContent/styledVariables.ts +43 -0
  322. package/src/components/Tabs/Tab.tsx +1 -1
  323. package/src/components/Tabs/Tabs.tsx +12 -5
  324. package/src/components/Tag/Tag.tsx +62 -0
  325. package/src/components/Tag/index.ts +2 -0
  326. package/src/components/Tag/styledVariables.ts +127 -0
  327. package/src/components/Tiles/TileText.tsx +1 -1
  328. package/src/components/Tooltip/index.ts +1 -0
  329. package/src/components/Tooltip/styledVariables.ts +18 -0
  330. package/src/components/Typography/Typography.ts +1 -1
  331. package/src/components/index.ts +1 -2
  332. package/src/config.ts +2 -1
  333. package/src/globalStyle.ts +591 -1979
  334. package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
  335. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
  336. package/src/icons/CheckboxIcon/index.ts +1 -0
  337. package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
  338. package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
  339. package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
  340. package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
  341. package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
  342. package/src/icons/ErrorIcon/index.ts +1 -0
  343. package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
  344. package/src/icons/FileIcon/FileIcon.tsx +2 -3
  345. package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
  346. package/src/icons/LanguageIcon/index.ts +1 -0
  347. package/src/icons/PlusIcon/PlusIcon.tsx +19 -0
  348. package/src/icons/PlusIcon/index.ts +1 -0
  349. package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
  350. package/src/icons/PointingArrowIcon/index.ts +1 -0
  351. package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
  352. package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
  353. package/src/icons/index.ts +4 -0
  354. package/src/layouts/Forbidden.tsx +4 -0
  355. package/src/layouts/NotFound.tsx +4 -0
  356. package/src/mocks/telemetry.ts +5 -0
  357. package/src/types/portal/src/shared/types/nav.ts +5 -0
  358. package/src/ui/Burger.tsx +1 -1
  359. package/src/ui/Dropdown.tsx +7 -7
  360. package/src/ui/Jumbotron.tsx +1 -1
  361. package/src/ui/darkColors.tsx +216 -84
  362. package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
  363. package/lib/components/OperationBadge/OperationBadge.js +0 -68
  364. package/lib/components/OperationBadge/index.d.ts +0 -1
  365. package/lib/components/Tags/Tags.d.ts +0 -5
  366. package/lib/components/Tags/Tags.js +0 -32
  367. package/lib/components/Tags/index.d.ts +0 -1
  368. package/src/components/Catalog/index.tsx +0 -3
  369. package/src/components/OperationBadge/OperationBadge.ts +0 -62
  370. package/src/components/OperationBadge/index.ts +0 -1
  371. package/src/components/Tags/Tags.tsx +0 -36
  372. package/src/components/Tags/index.ts +0 -1
  373. /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
@@ -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';
7
6
  import { useThemeConfig } from '@theme/hooks/useThemeConfig';
8
7
  import { useTranslate } from '@portal/hooks';
8
+ import { UserProfileData } from '@theme/components/Profile/UserProfileData';
9
9
 
10
10
  export function MobileUserProfile() {
11
11
  const { userProfile } = useThemeConfig();
@@ -25,12 +25,7 @@ export function MobileUserProfile() {
25
25
  </LoginButton>
26
26
  ) : (
27
27
  <>
28
- <UserDataWrapper>
29
- <ProfilePicture>
30
- <Profile name={userData.name} imageUrl={userData.picture} />
31
- </ProfilePicture>
32
- <UserName>{userData.name}</UserName>
33
- </UserDataWrapper>
28
+ <UserProfileData userData={userData} />
34
29
  <LogoutButton onClick={() => handleLogout()}>
35
30
  <LogoutIcon />
36
31
  </LogoutButton>
@@ -46,7 +41,7 @@ const LoginButton = styled.a`
46
41
  margin: 0;
47
42
  padding: 5px 0;
48
43
  color: var(--mobile-menu-login-button-color);
49
- font-size: 14px;
44
+ font-size: var(--font-size-base);
50
45
  text-align: center;
51
46
  line-height: 22px;
52
47
  cursor: pointer;
@@ -64,25 +59,6 @@ const MobileProfileWrapper = styled.div`
64
59
  background: var(--mobile-menu-profile-background);
65
60
  `;
66
61
 
67
- const UserDataWrapper = styled.div`
68
- display: flex;
69
- align-items: center;
70
- `;
71
-
72
- const ProfilePicture = styled.div`
73
- margin-right: 16px;
74
-
75
- ${AvatarWrapper} {
76
- margin: 0;
77
- }
78
-
79
- ${ProfileWrapper} {
80
- padding: 0;
81
- }
82
- `;
83
-
84
- const UserName = styled.div``;
85
-
86
62
  const LogoutButton = styled.div`
87
63
  cursor: pointer;
88
64
  user-select: none;
@@ -10,13 +10,10 @@ export interface ProfileProps {
10
10
  onClick?: () => void;
11
11
  }
12
12
 
13
- function ProfileComponent({ name = 'User', imageUrl, onClick, color }: ProfileProps): JSX.Element {
13
+ function ProfileComponent({ name = 'User', imageUrl, onClick }: ProfileProps): JSX.Element {
14
14
  if (imageUrl) {
15
15
  return (
16
16
  <ProfileWrapper onClick={onClick} role="link">
17
- <StyledUserName data-cy="user-name" color={color}>
18
- {name}
19
- </StyledUserName>
20
17
  {imageUrl && (
21
18
  <AvatarWrapper>
22
19
  <img data-cy="user-avatar" src={imageUrl} alt="profile" />
@@ -32,9 +29,6 @@ function ProfileComponent({ name = 'User', imageUrl, onClick, color }: ProfilePr
32
29
 
33
30
  return (
34
31
  <ProfileWrapper onClick={onClick} role="link">
35
- <StyledUserName data-cy="user-name" color={color}>
36
- {name}
37
- </StyledUserName>
38
32
  <AvatarWrapper background={stringToHslColor(name)}>
39
33
  <span>{avatarLetters}</span>
40
34
  </AvatarWrapper>
@@ -51,22 +45,6 @@ export const ProfileWrapper = styled.div.attrs(() => ({
51
45
  align-items: center;
52
46
  cursor: pointer;
53
47
  width: auto;
54
- padding: 0 var(--navbar-item-padding-horizontal);
55
- `;
56
-
57
- const StyledUserName = styled.span`
58
- font-family: var(--profile-name-font-family);
59
- font-size: var(--profile-name-font-size);
60
- font-weight: var(--profile-name-font-weight);
61
- color: var(--profile-name-text-color);
62
- padding: var(--profile-name-padding-vertical) var(--profile-name-padding-horizontal);
63
- margin: 0 var(--profile-name-margin-horizontal);
64
-
65
- display: none;
66
-
67
- ${({ theme }) => theme.mediaQueries?.medium} {
68
- display: block;
69
- }
70
48
  `;
71
49
 
72
50
  export const AvatarWrapper = styled.div<{ background?: string }>`
@@ -86,7 +64,6 @@ export const AvatarWrapper = styled.div<{ background?: string }>`
86
64
  font-weight: var(--profile-avatar-font-weight);
87
65
 
88
66
  border-radius: var(--profile-avatar-border-radius);
89
- margin-left: var(--profile-avatar-margin-left);
90
67
 
91
68
  ${({ background }) => css`
92
69
  background-color: ${background};
@@ -8,6 +8,8 @@ import { Link } from '@portal/Link';
8
8
  import { useThemeConfig } from '@theme/hooks/useThemeConfig';
9
9
  import { useTranslate } from '@portal/hooks';
10
10
  import { Dropdown, DropdownList, DropdownListItem } from '@theme/components/Dropdown';
11
+ import { UserProfileData } from '@theme/components/Profile/UserProfileData';
12
+ import { LogoutIcon } from '@theme/icons';
11
13
 
12
14
  export function UserProfile({
13
15
  userData,
@@ -22,7 +24,7 @@ export function UserProfile({
22
24
  };
23
25
  const [isOpened, setIsOpened] = useState<boolean>(false);
24
26
 
25
- const menuItems: JSX.Element[] = [];
27
+ const menuItems: JSX.Element[] = [<UserProfileData key={userData.name} userData={userData} />];
26
28
 
27
29
  if (hasDeveloperOnboarding) {
28
30
  menuItems.push(
@@ -53,12 +55,13 @@ export function UserProfile({
53
55
  data-translation-key={translationKeys.logout}
54
56
  role="link"
55
57
  >
58
+ <LogoutIcon />
56
59
  {translate(translationKeys.logout, userProfile?.logoutLabel || 'Log out')}
57
60
  </Logout>,
58
61
  );
59
62
 
60
63
  return (
61
- <ProfileDropdown items={menuItems}>
64
+ <ProfileDropdown items={menuItems} alignment="end">
62
65
  <Profile
63
66
  name={userData.name}
64
67
  imageUrl={userData.picture}
@@ -92,14 +95,23 @@ const ProfileDropdown = styled(Dropdown).attrs(() => ({
92
95
  ${DropdownListItem} {
93
96
  border-radius: var(--profile-dropdown-list-item-border-radius);
94
97
 
95
- & > * {
96
- padding: var(--profile-dropdown-list-item-vertical-padding)
97
- var(--profile-dropdown-list-item-horizontal-padding);
98
- }
99
-
100
98
  :hover {
101
99
  background-color: var(--profile-dropdown-list-item-active-background-color);
102
100
  }
101
+
102
+ :first-child {
103
+ cursor: default;
104
+ background-color: var(--profile-dropdown-list-background-color);
105
+ }
103
106
  }
104
107
  `;
105
- const Logout = styled.div``;
108
+
109
+ const Logout = styled.div`
110
+ cursor: pointer;
111
+ display: flex;
112
+ align-items: center;
113
+ color: var(--profile-dropdown-logout-color);
114
+ fill: var(--profile-dropdown-logout-color);
115
+ border-top: 1px solid var(--profile-dropdown-logout-border-color);
116
+ padding: var(--profile-dropdown-logout-padding);
117
+ `;
@@ -0,0 +1,40 @@
1
+ import { Profile } from '@theme';
2
+ import React from 'react';
3
+ import styled from 'styled-components';
4
+
5
+ import { AvatarWrapper, ProfileWrapper } from '@theme/components/Profile/Profile';
6
+
7
+ interface UserProfileDataProps {
8
+ userData: { name: string; picture: string };
9
+ }
10
+
11
+ export function UserProfileData(props: UserProfileDataProps) {
12
+ const { userData } = props;
13
+
14
+ return (
15
+ <UserProfileDataWrapper>
16
+ <ProfilePicture>
17
+ <Profile name={userData.name} imageUrl={userData.picture} />
18
+ </ProfilePicture>
19
+ <UserName>{userData.name}</UserName>
20
+ </UserProfileDataWrapper>
21
+ );
22
+ }
23
+
24
+ const UserProfileDataWrapper = styled.div`
25
+ display: flex;
26
+ align-items: center;
27
+ `;
28
+ const ProfilePicture = styled.div`
29
+ margin-right: 16px;
30
+
31
+ ${AvatarWrapper} {
32
+ margin: 0;
33
+ }
34
+
35
+ ${ProfileWrapper} {
36
+ padding: 0;
37
+ }
38
+ `;
39
+
40
+ const UserName = styled.div``;
@@ -4,3 +4,4 @@ export { LoginLink } from './LoginLink';
4
4
  export type { LoginLinkProps } from './LoginLink';
5
5
  export { UserProfile } from './UserProfile';
6
6
  export type { UserProfileProps } from './types';
7
+ export * from '@theme/components/Profile/styledVariables';
@@ -0,0 +1,53 @@
1
+ import { css } from "styled-components";
2
+
3
+ export const userProfile = css`
4
+
5
+ /**
6
+ * @tokens User Profile
7
+ */
8
+
9
+ --profile-avatar-width: var(--control-height-base); // @presenter Spacing
10
+ --profile-avatar-height: var(--control-height-base); // @presenter Spacing
11
+ --profile-avatar-border-radius: 50%; // @presenter BorderRadius
12
+
13
+ --profile-avatar-font-family: var(--navbar-item-font-family); // @presenter FontFamily
14
+ --profile-avatar-font-size: var(--navbar-item-font-size); // @presenter FontSize
15
+ --profile-avatar-font-weight: var(--font-weight-regular); // @presenter FontWeight
16
+ --profile-avatar-line-height: var(--line-height-base); // @presenter LineHeight
17
+
18
+ --profile-avatar-padding-vertical: var(--spacing-base); // @presenter Spacing
19
+ --profile-avatar-padding-horizontal: var(--spacing-base); // @presenter Spacing
20
+
21
+ // @tokens End
22
+ `;
23
+
24
+ export const userProfileDropdown = css`
25
+ /**
26
+ * @tokens User profile menu dropdown
27
+ * */
28
+
29
+ --profile-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
30
+ --profile-dropdown-font-weight: var(--dropdown-font-weight); // @presenter FontWeight
31
+ --profile-dropdown-line-height: var(--dropdown-line-height); // @presenter LineHeight
32
+ --profile-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
33
+ --profile-dropdown-border-radius: var(--dropdown-border-radius); // @presenter BorderRadius
34
+
35
+ --profile-dropdown-list-min-width: var(--dropdown-list-min-width);
36
+ --profile-dropdown-list-max-width: var(--dropdown-list-max-width);
37
+ --profile-dropdown-list-padding: var(--dropdown-list-padding); // @presenter Spacing
38
+ --profile-dropdown-list-border-radius: var(--dropdown-list-border-radius); // @presenter BorderRadius
39
+ --profile-dropdown-list-background-color: var(--dropdown-list-background-color); // @presenter Color
40
+ --profile-dropdown-list-box-shadow: var(--dropdown-list-box-shadow); // @presenter Shadow
41
+
42
+ --profile-dropdown-list-item-horizontal-padding: var(--dropdown-list-item-horizontal-padding); // @presenter Spacing
43
+ --profile-dropdown-list-item-vertical-padding: var(--dropdown-list-item-vertical-padding); // @presenter Spacing
44
+ --profile-dropdown-list-item-border-radius: var(--dropdown-list-item-border-radius); // @presenter BorderRadius
45
+ --profile-dropdown-list-item-active-background-color: var(--dropdown-list-item-active-background-color); // @presenter Color
46
+ --profile-dropdown-list-item-separator-color: var(--dropdown-list-item-separator-color); // @presenter Color
47
+
48
+ --profile-dropdown-logout-color: var(--color-error-base);
49
+ --profile-dropdown-logout-border-color: var(--border-secondary);
50
+ --profile-dropdown-logout-padding: 0 0 0 var(--spacing-xxs);
51
+
52
+ // @tokens End
53
+ `
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { useTranslate } from '@theme/mocks/hooks';
5
+ import { Button } from '@theme/components/Button';
5
6
 
6
7
  export function CancelSearch({
7
8
  onClick,
@@ -17,27 +18,13 @@ export function CancelSearch({
17
18
 
18
19
  return (
19
20
  <Wrapper data-component-name="Search/CancelSearch" onClick={onClick} className={className}>
20
- <Button data-translation-keys={translationKeys.cancel}>
21
+ <Button data-translation-keys={translationKeys.cancel} fullWidth variant="outlined">
21
22
  {translate(translationKeys.cancel, 'Cancel')}
22
23
  </Button>
23
24
  </Wrapper>
24
25
  );
25
26
  }
26
27
 
27
- const Button = styled.div`
28
- display: flex;
29
- flex-direction: column;
30
- justify-content: center;
31
- align-items: center;
32
- flex-grow: 1;
33
- padding: 4px 16px;
34
- border: 1px solid rgba(0, 0, 0, 0.12);
35
- border-radius: 6px;
36
- font-size: 14px;
37
- line-height: 22px;
38
- height: 32px;
39
- `;
40
-
41
28
  const Wrapper = styled.div`
42
29
  display: flex;
43
30
  padding: 12px 16px 16px;
@@ -26,17 +26,17 @@ const Wrapper = styled.div`
26
26
  align-items: center;
27
27
  padding: 1px 8px;
28
28
  gap: 4px;
29
- background: #f2f2f2;
30
- border: 1px solid rgba(0, 0, 0, 0.12);
31
- border-radius: 12px;
29
+ background: var(--bg-overlay);
30
+ border: 1px solid var(--border-secondary);
31
+ border-radius: var(--border-radius-xlg);
32
32
  margin-right: 16px;
33
33
  `;
34
34
 
35
35
  const Label = styled.span`
36
- color: #1f2933;
37
- font-weight: 400;
38
- font-size: 12px;
39
- line-height: 20px;
36
+ color: var(--text-secondary);
37
+ font-weight: var(--font-weight-regular);
38
+ font-size: var(--font-size-sm);
39
+ line-height: var(--line-height-sm);
40
40
  `;
41
41
 
42
42
  const ClearIcon = styled(ThemeClearIcon)`
@@ -65,9 +65,9 @@ const Wrapper = styled.div`
65
65
 
66
66
  const Title = styled.div`
67
67
  color: var(--search-item-title-text-color);
68
- font-weight: 600;
69
- font-size: var(--font-size-small);
70
- line-height: 20px;
68
+ font-weight: var(--font-weight-bold);
69
+ font-size: var(--font-size-sm);
70
+ line-height: var(--line-height-sm);
71
71
  padding: 8px 24px;
72
72
  `;
73
73
 
@@ -81,7 +81,7 @@ const RecentItems = styled.div`
81
81
  const ClockBackwardsIcon = styled(ThemeClockBackwardsIcon)`
82
82
  width: 16px;
83
83
  height: 16px;
84
- fill: #8d8d8d;
84
+ fill: var(--text-description);
85
85
  `;
86
86
 
87
87
  const ClearIcon = styled(ThemeClearIcon)`
@@ -115,7 +115,7 @@ const Item = styled.div`
115
115
  }
116
116
 
117
117
  :focus-visible {
118
- outline: 2px solid var(--color-primary-200);
118
+ outline: 2px solid var(--color-primary);
119
119
  border-radius: 2px;
120
120
  }
121
121
 
@@ -7,6 +7,7 @@ import { SearchTrigger } from '@theme/components/Search/SearchTrigger';
7
7
  import { MobileSearchTrigger } from '@theme/components/Search/MobileSearchTrigger';
8
8
  import { SearchDialog } from '@theme/components/Search/SearchDialog';
9
9
  import { useThemeConfig } from '@theme/hooks';
10
+ import { telemetry } from '@portal/telemetry';
10
11
 
11
12
  export function Search({ className }: { className?: string }): JSX.Element {
12
13
  const [isOpen, setIsOpen] = useState(false);
@@ -19,6 +20,7 @@ export function Search({ className }: { className?: string }): JSX.Element {
19
20
  if (hotkeysKeys) {
20
21
  hotkeys(hotkeysKeys, (ev) => {
21
22
  setIsOpen(true);
23
+ telemetry.send('search_opened', { method: 'shortcut' });
22
24
  ev.preventDefault();
23
25
  });
24
26
 
@@ -34,8 +36,18 @@ export function Search({ className }: { className?: string }): JSX.Element {
34
36
 
35
37
  return (
36
38
  <Wrapper data-component-name="Search/Search" className={className}>
37
- <SearchTrigger onClick={() => setIsOpen(true)} />
38
- <MobileSearchTrigger onClick={() => setIsOpen(true)} />
39
+ <SearchTrigger
40
+ onClick={() => {
41
+ telemetry.send('search_opened', { method: 'click' });
42
+ setIsOpen(true);
43
+ }}
44
+ />
45
+ <MobileSearchTrigger
46
+ onClick={() => {
47
+ telemetry.send('search_opened', { method: 'click' });
48
+ setIsOpen(true);
49
+ }}
50
+ />
39
51
 
40
52
  {isOpen && <SearchDialog onClose={onClose} />}
41
53
  </Wrapper>
@@ -44,6 +56,4 @@ export function Search({ className }: { className?: string }): JSX.Element {
44
56
 
45
57
  const Wrapper = styled.div`
46
58
  margin-left: auto;
47
-
48
- padding: 0 var(--navbar-item-padding-horizontal);
49
59
  `;
@@ -5,15 +5,20 @@ import type { SVGProps } from 'react';
5
5
 
6
6
  const Icon = (props: SVGProps<SVGSVGElement>) => (
7
7
  <svg
8
+ width="16"
9
+ height="16"
10
+ viewBox="0 0 16 16"
11
+ fill="none"
8
12
  xmlns="http://www.w3.org/2000/svg"
9
- version="1.1"
10
- x="0"
11
- y="0"
12
- viewBox="0 0 490 490"
13
13
  data-component-name="Search/SearchIcon"
14
14
  {...props}
15
15
  >
16
- <path d="M484 455.2L366.2 337.4c29.2-35.6 46.8-81.2 46.8-130.9C413 92.5 320.5 0 206.5 0 92.4 0 0 92.5 0 206.5S92.4 413 206.5 413c49.7 0 95.2-17.5 130.8-46.7L455.1 484c8 8 20.9 8 28.9 0C492 476.1 492 463.1 484 455.2zM206.5 371.9C115.2 371.9 41 297.7 41 206.5S115.2 41 206.5 41C297.7 41 372 115.3 372 206.5S297.7 371.9 206.5 371.9z" />
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M6.66667 2.5C5.84258 2.5 5.037 2.74437 4.35179 3.20221C3.66659 3.66005 3.13254 4.31079 2.81717 5.07215C2.50181 5.83351 2.41929 6.67129 2.58006 7.47954C2.74084 8.2878 3.13767 9.03023 3.72039 9.61295C4.30311 10.1957 5.04554 10.5925 5.85379 10.7533C6.66205 10.914 7.49982 10.8315 8.26118 10.5162C9.02254 10.2008 9.67329 9.66675 10.1311 8.98154C10.589 8.29634 10.8333 7.49076 10.8333 6.66667C10.8333 5.5616 10.3943 4.50179 9.61295 3.72039C8.83155 2.93899 7.77174 2.5 6.66667 2.5ZM3.79622 2.37074C4.64588 1.80302 5.6448 1.5 6.66667 1.5C8.03695 1.5 9.35112 2.04434 10.3201 3.01328C11.289 3.98222 11.8333 5.29638 11.8333 6.66667C11.8333 7.68854 11.5303 8.68746 10.9626 9.53711C10.8672 9.67996 10.7649 9.8175 10.6565 9.94935L14.3536 13.6464C14.5488 13.8417 14.5488 14.1583 14.3536 14.3536C14.1583 14.5488 13.8417 14.5488 13.6464 14.3536L9.94935 10.6565C9.55739 10.979 9.11792 11.2437 8.64387 11.44C7.69978 11.8311 6.66094 11.9334 5.6587 11.7341C4.65647 11.5347 3.73586 11.0426 3.01328 10.3201C2.29071 9.59748 1.79864 8.67687 1.59928 7.67463C1.39992 6.6724 1.50224 5.63355 1.89329 4.68947C2.28434 3.74538 2.94657 2.93846 3.79622 2.37074Z"
20
+ fill="#A8A8A8"
21
+ />
17
22
  </svg>
18
23
  );
19
24
 
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import { OperationBadge } from '@theme/components/OperationBadge';
4
+ import { Tag } from '@theme/components/Tag';
5
5
  import { Link } from '@portal/Link';
6
6
  import { highlight } from '@theme/components/Search/utils';
7
7
  import type { ActiveItem } from '@theme/types/portal/src/shared/types/activeItem';
@@ -28,7 +28,7 @@ export function SearchItem({ item, className, product }: SearchItemProps): JSX.E
28
28
  {product && <ProductTag label={product} />}
29
29
  {item.httpVerb ? (
30
30
  <Operation>
31
- <OperationBadge type={item.httpVerb}>{item.httpVerb}</OperationBadge>
31
+ <Tag color={item.httpVerb}>{item.httpVerb.toUpperCase()}</Tag>
32
32
  {item.pathName ? highlight(item.pathName) : null}
33
33
  </Operation>
34
34
  ) : null}
@@ -37,35 +37,30 @@ export function SearchItem({ item, className, product }: SearchItemProps): JSX.E
37
37
  </Wrapper>
38
38
  );
39
39
 
40
+ const itemParam = item.parameters?.[0];
41
+
40
42
  return (
41
43
  <>
42
- {item.parameters?.length ? (
43
- <>
44
- {item.parameters.map((param, index) => {
45
- const path = `${param.place} → ${
46
- param.path?.length ? param.path?.join(' → ') + ' → ' : ''
47
- }`;
48
- return (
49
- <SearchLink
50
- className={className}
51
- key={`${item.id}-${index}`}
52
- to={item.url}
53
- tabIndex={0}
54
- innerRef={ref}
55
- data-component-name="Search/SearchItem"
56
- >
57
- {header}
58
- <Place>
59
- <div>
60
- {path}
61
- {highlight(param.name)}
62
- </div>
63
- <div>{highlight(param.description)}</div>
64
- </Place>
65
- </SearchLink>
66
- );
67
- })}
68
- </>
44
+ {itemParam ? (
45
+ <SearchLink
46
+ className={className}
47
+ key={`${item.id}-${0}`}
48
+ to={item.url}
49
+ tabIndex={0}
50
+ innerRef={ref}
51
+ data-component-name="Search/SearchItem"
52
+ >
53
+ {header}
54
+ <Place>
55
+ <div>
56
+ {`${itemParam.place} → ${
57
+ itemParam.path?.length ? itemParam.path?.join(' → ') + ' → ' : ''
58
+ }`}
59
+ {highlight(itemParam.name)}
60
+ </div>
61
+ <div>{highlight(itemParam.description)}</div>
62
+ </Place>
63
+ </SearchLink>
69
64
  ) : (
70
65
  <SearchLink
71
66
  className={className}
@@ -130,7 +125,7 @@ const Description = styled.div`
130
125
  `;
131
126
 
132
127
  const Path = styled.div`
133
- font-size: var(--font-size-small);
128
+ font-size: var(--font-size-sm);
134
129
  overflow: hidden;
135
130
  text-overflow: ellipsis;
136
131
  line-height: 22px;
@@ -140,7 +135,7 @@ const Place = styled.div`
140
135
  display: flex;
141
136
  flex-direction: column;
142
137
  gap: 5px;
143
- font-size: var(--font-size-small);
138
+ font-size: var(--font-size-sm);
144
139
  overflow: hidden;
145
140
  text-overflow: ellipsis;
146
141
 
@@ -39,8 +39,9 @@ const Wrapper = styled.div`
39
39
  background-color: var(--search-trigger-background-color);
40
40
  border: var(--search-trigger-border);
41
41
  border-radius: var(--search-trigger-border-radius);
42
- padding: 5px 10px 5px 14px;
42
+ padding: var(--search-trigger-padding);
43
43
  user-select: none;
44
+ gap: var(--search-trigger-gap);
44
45
 
45
46
  :hover {
46
47
  background-color: var(--search-trigger-hover-background-color);
@@ -56,13 +57,11 @@ const Wrapper = styled.div`
56
57
  `;
57
58
 
58
59
  const Label = styled.span`
59
- padding-left: 10px;
60
- padding-right: 16px;
61
60
  font-size: var(--search-trigger-font-size);
62
61
  `;
63
62
 
64
63
  const SearchIconSmall = styled(SearchIcon)`
65
- width: 13px;
66
- height: 13px;
64
+ width: var(--search-trigger-icon-size);
65
+ height: var(--search-trigger-icon-size);
67
66
  fill: var(--search-trigger-text-color);
68
67
  `;
@@ -23,9 +23,5 @@ export function ShortcutKey(props: ShortcutKeyProps): JSX.Element {
23
23
  }
24
24
 
25
25
  export const Wrapper = styled.div`
26
- cursor: pointer;
27
- font-size: 0.75em;
28
- right: 1em;
29
- color: var(--search-trigger-shortcut-text-color);
30
- opacity: 0.5;
26
+ font-size: var(--search-trigger-shortcut-font-size);
31
27
  `;
@@ -47,8 +47,8 @@ const Wrapper = styled.div`
47
47
  const Title = styled.div`
48
48
  color: var(--search-item-title-text-color);
49
49
  font-weight: var(--font-weight-bold);
50
- font-size: var(--font-size-small);
51
- line-height: 20px;
50
+ font-size: var(--font-size-sm);
51
+ line-height: var(--line-height-sm);
52
52
  padding: 8px 24px;
53
53
  `;
54
54
 
@@ -89,7 +89,7 @@ const PageLink = styled(Link)`
89
89
  }
90
90
  }
91
91
  :focus-visible {
92
- outline: 2px solid var(--color-primary-200);
92
+ outline: 2px solid var(--color-primary);
93
93
  border-radius: 2px;
94
94
  }
95
95
  `;
@@ -14,3 +14,4 @@ export * from '@theme/components/Search/MobileSearchTrigger';
14
14
  export * from '@theme/components/Search/CancelSearch';
15
15
  export * from '@theme/components/Search/ProductTag';
16
16
  export * from '@theme/components/Search/utils';
17
+ export * from '@theme/components/Search/styledVariables';