@redocly/theme 0.1.7 → 0.1.10

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 (454) hide show
  1. package/Button/index.d.ts +1 -1
  2. package/Button/index.js +1 -1
  3. package/CodeBlock/index.d.ts +1 -1
  4. package/CodeBlock/index.js +1 -1
  5. package/CopyButton/index.d.ts +2 -2
  6. package/CopyButton/index.js +2 -2
  7. package/Footer/Footer.d.ts +3 -0
  8. package/Footer/Footer.js +35 -0
  9. package/Footer/FooterColumn.d.ts +7 -0
  10. package/Footer/FooterColumn.js +39 -0
  11. package/Footer/FooterColumns.d.ts +7 -0
  12. package/Footer/FooterColumns.js +44 -0
  13. package/Footer/FooterCopyright.d.ts +5 -0
  14. package/Footer/FooterCopyright.js +30 -0
  15. package/Footer/index.d.ts +4 -0
  16. package/Footer/index.js +20 -0
  17. package/Headings/index.d.ts +1 -1
  18. package/Headings/index.js +1 -1
  19. package/JsonViewer/JsonViewer.js +1 -1
  20. package/JsonViewer/index.d.ts +2 -1
  21. package/JsonViewer/index.js +2 -1
  22. package/Layout/PageLayout.d.ts +6 -0
  23. package/Layout/PageLayout.js +31 -0
  24. package/Layout/RootLayout.d.ts +7 -0
  25. package/Layout/RootLayout.js +32 -0
  26. package/Layout/index.d.ts +2 -0
  27. package/Layout/index.js +18 -0
  28. package/Markdown/Admonition.d.ts +9 -0
  29. package/Markdown/Admonition.js +39 -0
  30. package/Markdown/CodeSample/CodeSample.d.ts +8 -0
  31. package/Markdown/CodeSample/CodeSample.js +30 -0
  32. package/Markdown/CodeSample/index.d.ts +3 -0
  33. package/Markdown/CodeSample/index.js +19 -0
  34. package/Markdown/CodeSample/styled.d.ts +5 -0
  35. package/Markdown/CodeSample/styled.js +109 -0
  36. package/Markdown/CodeSample/types.d.ts +9 -0
  37. package/Markdown/CodeSample/types.js +2 -0
  38. package/Markdown/ContentWrapper.d.ts +5 -0
  39. package/Markdown/ContentWrapper.js +21 -0
  40. package/Markdown/Heading.d.ts +5 -0
  41. package/Markdown/Heading.js +23 -0
  42. package/Markdown/MarkdownLayout.d.ts +7 -0
  43. package/Markdown/MarkdownLayout.js +23 -0
  44. package/Markdown/Mermaid.d.ts +6 -0
  45. package/Markdown/Mermaid.js +19 -0
  46. package/Markdown/PageWrapper.d.ts +3 -0
  47. package/Markdown/PageWrapper.js +15 -0
  48. package/Markdown/StyledMarkdown.d.ts +8 -0
  49. package/Markdown/StyledMarkdown.js +54 -0
  50. package/Markdown/Tabs/Tab.d.ts +8 -0
  51. package/Markdown/Tabs/Tab.js +35 -0
  52. package/Markdown/Tabs/Tabs.d.ts +10 -0
  53. package/Markdown/Tabs/Tabs.js +43 -0
  54. package/Markdown/Tabs/index.d.ts +2 -0
  55. package/Markdown/Tabs/index.js +18 -0
  56. package/Markdown/index.d.ts +9 -0
  57. package/Markdown/index.js +25 -0
  58. package/Navbar/Navbar.d.ts +1 -1
  59. package/Navbar/Navbar.js +9 -3
  60. package/Navbar/NavbarItem.d.ts +1 -1
  61. package/Navbar/NavbarItem.js +4 -4
  62. package/Navbar/NavbarMenu.d.ts +1 -1
  63. package/Navbar/NavbarMenu.js +8 -4
  64. package/Navbar/index.d.ts +3 -0
  65. package/Navbar/index.js +19 -0
  66. package/NavbarLogo/NavbarLogo.d.ts +6 -0
  67. package/{Logo/Logo.js → NavbarLogo/NavbarLogo.js} +8 -5
  68. package/NavbarLogo/index.d.ts +1 -0
  69. package/NavbarLogo/index.js +17 -0
  70. package/OperationBadge/OperationBadge.d.ts +5 -0
  71. package/OperationBadge/OperationBadge.js +15 -0
  72. package/OperationBadge/index.d.ts +1 -0
  73. package/OperationBadge/index.js +17 -0
  74. package/PageNavigation/NextPageLink.d.ts +2 -0
  75. package/PageNavigation/NextPageLink.js +25 -0
  76. package/PageNavigation/PageNavigation.d.ts +2 -0
  77. package/PageNavigation/PageNavigation.js +31 -0
  78. package/PageNavigation/PreviousPageLink.d.ts +2 -0
  79. package/PageNavigation/PreviousPageLink.js +25 -0
  80. package/PageNavigation/index.d.ts +3 -0
  81. package/PageNavigation/index.js +19 -0
  82. package/Panel/CodePanel.js +6 -6
  83. package/Panel/ContentPanel.js +4 -4
  84. package/Panel/Panel.d.ts +1 -1
  85. package/Panel/Panel.js +3 -3
  86. package/Panel/PanelComponent.d.ts +1 -1
  87. package/Panel/PanelComponent.js +3 -3
  88. package/Panel/index.d.ts +8 -7
  89. package/Panel/index.js +8 -7
  90. package/REAMDE.md +1 -0
  91. package/SamplesPanelControls/index.d.ts +1 -1
  92. package/SamplesPanelControls/index.js +1 -1
  93. package/Search/Autocomplete.d.ts +13 -0
  94. package/Search/Autocomplete.js +79 -0
  95. package/Search/ClearIcon.d.ts +2 -0
  96. package/Search/ClearIcon.js +29 -0
  97. package/Search/Input.d.ts +3 -0
  98. package/Search/Input.js +15 -0
  99. package/Search/Parameters.d.ts +7 -0
  100. package/Search/Parameters.js +42 -0
  101. package/Search/Popover.d.ts +3 -0
  102. package/Search/Popover.js +15 -0
  103. package/Search/Search.d.ts +2 -0
  104. package/Search/Search.js +39 -0
  105. package/Search/SearchIcon.d.ts +2 -0
  106. package/Search/SearchIcon.js +29 -0
  107. package/Search/SearchItem.d.ts +7 -0
  108. package/Search/SearchItem.js +47 -0
  109. package/Search/index.d.ts +9 -0
  110. package/Search/index.js +25 -0
  111. package/Search/utils.d.ts +2 -0
  112. package/Search/utils.js +21 -0
  113. package/Sidebar/ApiCallItem.d.ts +8 -0
  114. package/Sidebar/ApiCallItem.js +35 -0
  115. package/Sidebar/ArrowBack.d.ts +4 -0
  116. package/Sidebar/ArrowBack.js +29 -0
  117. package/Sidebar/BackButton.d.ts +6 -0
  118. package/Sidebar/BackButton.js +31 -0
  119. package/Sidebar/Drilldown.d.ts +8 -0
  120. package/Sidebar/Drilldown.js +46 -0
  121. package/Sidebar/DrilldownMenu.d.ts +3 -0
  122. package/Sidebar/DrilldownMenu.js +55 -0
  123. package/Sidebar/DrilldownMenuItem.d.ts +3 -0
  124. package/Sidebar/DrilldownMenuItem.js +32 -0
  125. package/Sidebar/ExternalIcon.d.ts +4 -0
  126. package/Sidebar/ExternalIcon.js +29 -0
  127. package/Sidebar/Menu.d.ts +3 -0
  128. package/Sidebar/Menu.js +15 -0
  129. package/Sidebar/MenuContainer.d.ts +1 -0
  130. package/Sidebar/MenuContainer.js +13 -0
  131. package/Sidebar/MenuGroup.d.ts +9 -0
  132. package/Sidebar/MenuGroup.js +37 -0
  133. package/Sidebar/MenuItem.d.ts +3 -0
  134. package/Sidebar/MenuItem.js +34 -0
  135. package/Sidebar/MenuItemLabel.d.ts +5 -0
  136. package/Sidebar/MenuItemLabel.js +19 -0
  137. package/Sidebar/MenuLink.d.ts +5 -0
  138. package/Sidebar/MenuLink.js +16 -0
  139. package/Sidebar/MenuLinkItem.d.ts +3 -0
  140. package/Sidebar/MenuLinkItem.js +31 -0
  141. package/Sidebar/MobileSidebarButton.d.ts +5 -0
  142. package/Sidebar/MobileSidebarButton.js +21 -0
  143. package/Sidebar/Separator.d.ts +3 -0
  144. package/Sidebar/Separator.js +32 -0
  145. package/Sidebar/SeparatorItem.d.ts +5 -0
  146. package/Sidebar/SeparatorItem.js +14 -0
  147. package/Sidebar/SeparatorLine.d.ts +3 -0
  148. package/Sidebar/SeparatorLine.js +15 -0
  149. package/Sidebar/Sidebar.d.ts +8 -0
  150. package/Sidebar/Sidebar.js +24 -0
  151. package/Sidebar/SidebarLayout.d.ts +7 -0
  152. package/Sidebar/SidebarLayout.js +36 -0
  153. package/Sidebar/index.d.ts +19 -0
  154. package/Sidebar/index.js +35 -0
  155. package/Sidebar/types/DrilldownMenuProps.d.ts +6 -0
  156. package/Sidebar/types/DrilldownMenuProps.js +2 -0
  157. package/Sidebar/types/ItemState.d.ts +8 -0
  158. package/Sidebar/types/ItemState.js +2 -0
  159. package/Sidebar/types/MenuItemProps.d.ts +5 -0
  160. package/Sidebar/types/MenuItemProps.js +2 -0
  161. package/Sidebar/types/MenuStyle.d.ts +3 -0
  162. package/Sidebar/types/MenuStyle.js +8 -0
  163. package/Sidebar/types/NavItem.d.ts +26 -0
  164. package/Sidebar/types/NavItem.js +2 -0
  165. package/Sidebar/types/index.d.ts +5 -0
  166. package/Sidebar/types/index.js +21 -0
  167. package/SidebarLogo/index.d.ts +1 -1
  168. package/SidebarLogo/index.js +1 -1
  169. package/SourceCode/SourceCode.js +2 -2
  170. package/SourceCode/index.d.ts +1 -1
  171. package/SourceCode/index.js +1 -1
  172. package/TableOfContent/TableOfContent.d.ts +9 -0
  173. package/TableOfContent/TableOfContent.js +65 -0
  174. package/TableOfContent/index.d.ts +1 -0
  175. package/TableOfContent/index.js +17 -0
  176. package/Tooltip/index.d.ts +1 -1
  177. package/Tooltip/index.js +1 -1
  178. package/globalStyle.js +1 -1
  179. package/hooks/index.d.ts +7 -3
  180. package/hooks/index.js +7 -3
  181. package/hooks/useActiveHeading.d.ts +2 -0
  182. package/hooks/useActiveHeading.js +34 -0
  183. package/hooks/useActiveSectionId.d.ts +3 -0
  184. package/hooks/useActiveSectionId.js +49 -0
  185. package/hooks/useFullHeight.d.ts +2 -0
  186. package/hooks/useFullHeight.js +47 -0
  187. package/hooks/useMobileMenu.d.ts +2 -0
  188. package/hooks/useMobileMenu.js +13 -0
  189. package/hooks/useNavbarHeight.d.ts +3 -0
  190. package/hooks/useNavbarHeight.js +20 -0
  191. package/icons/ShelfIcon/ShelfIcon.js +2 -2
  192. package/icons/ShelfIcon/index.d.ts +2 -2
  193. package/icons/ShelfIcon/index.js +1 -1
  194. package/icons/index.d.ts +1 -1
  195. package/icons/index.js +1 -1
  196. package/index.d.ts +2 -0
  197. package/index.js +2 -0
  198. package/mocks/hooks/usePageData.d.ts +5 -0
  199. package/mocks/hooks/usePageData.js +7 -0
  200. package/mocks/models.d.ts +3 -0
  201. package/mocks/models.js +2 -0
  202. package/mocks/search.d.ts +22 -0
  203. package/mocks/search.js +13 -0
  204. package/mocks/types/index.d.ts +1 -0
  205. package/mocks/types/index.js +2 -0
  206. package/mocks/usePreloadHistory.d.ts +3 -0
  207. package/mocks/usePreloadHistory.js +12 -0
  208. package/package.json +5 -2
  209. package/src/Button/Button.stories.tsx +2 -2
  210. package/src/Button/__tests__/Button.test.tsx +1 -1
  211. package/src/Button/index.ts +1 -1
  212. package/src/CodeBlock/__tests__/CodeBlock.test.tsx +1 -1
  213. package/src/CodeBlock/index.ts +1 -1
  214. package/src/CopyButton/CopyButton.stories.tsx +2 -2
  215. package/src/CopyButton/CopyButton.tsx +1 -1
  216. package/src/CopyButton/CopyButtonWrapper.tsx +4 -4
  217. package/src/CopyButton/__tests__/CopyButton.test.tsx +1 -1
  218. package/src/CopyButton/__tests__/CopyButtonWrapper.test.tsx +2 -1
  219. package/src/CopyButton/index.ts +2 -2
  220. package/src/Footer/Footer.stories.tsx +57 -0
  221. package/src/Footer/Footer.tsx +31 -0
  222. package/src/Footer/FooterColumn.tsx +62 -0
  223. package/src/Footer/FooterColumns.tsx +53 -0
  224. package/src/Footer/FooterCopyright.tsx +28 -0
  225. package/src/Footer/__tests__/Footer.test.tsx +55 -0
  226. package/src/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +253 -0
  227. package/src/Footer/index.ts +4 -0
  228. package/src/Headings/Headings.stories.tsx +1 -1
  229. package/src/Headings/Headings.ts +1 -1
  230. package/src/Headings/__tests__/Headings.test.tsx +1 -1
  231. package/src/Headings/index.ts +1 -1
  232. package/src/JsonViewer/JsonViewer.stories.tsx +2 -2
  233. package/src/JsonViewer/JsonViewer.tsx +6 -7
  234. package/src/JsonViewer/__tests__/JsonViewer.test.tsx +2 -1
  235. package/src/JsonViewer/index.ts +2 -1
  236. package/src/Layout/PageLayout.tsx +34 -0
  237. package/src/Layout/RootLayout.tsx +24 -0
  238. package/src/Layout/__tests__/PageLayout.test.tsx +17 -0
  239. package/src/Layout/__tests__/RootLayout.test.tsx +17 -0
  240. package/src/Layout/__tests__/__snapshots__/PageLayout.test.tsx.snap +38 -0
  241. package/src/Layout/__tests__/__snapshots__/RootLayout.test.tsx.snap +18 -0
  242. package/src/Layout/index.ts +2 -0
  243. package/src/Markdown/Admonition.tsx +64 -0
  244. package/src/Markdown/CodeSample/CodeSample.tsx +39 -0
  245. package/src/Markdown/CodeSample/index.ts +3 -0
  246. package/src/Markdown/CodeSample/styled.ts +289 -0
  247. package/src/Markdown/CodeSample/types.ts +40 -0
  248. package/src/Markdown/ContentWrapper.tsx +20 -0
  249. package/src/Markdown/Heading.tsx +38 -0
  250. package/src/Markdown/MarkdownLayout.tsx +25 -0
  251. package/src/Markdown/Mermaid.tsx +23 -0
  252. package/src/Markdown/PageWrapper.tsx +9 -0
  253. package/src/Markdown/StyledMarkdown.tsx +312 -0
  254. package/src/Markdown/Tabs/Tab.tsx +37 -0
  255. package/src/Markdown/Tabs/Tabs.tsx +45 -0
  256. package/src/Markdown/Tabs/index.ts +2 -0
  257. package/src/Markdown/index.ts +9 -0
  258. package/src/Navbar/Navbar.stories.tsx +9 -15
  259. package/src/Navbar/Navbar.tsx +21 -28
  260. package/src/Navbar/NavbarItem.tsx +3 -3
  261. package/src/Navbar/NavbarMenu.tsx +6 -6
  262. package/src/Navbar/index.ts +3 -0
  263. package/src/NavbarLogo/NavbarLogo.stories.tsx +20 -0
  264. package/src/NavbarLogo/NavbarLogo.tsx +24 -0
  265. package/src/NavbarLogo/__tests__/NavbarLogo.test.tsx +47 -0
  266. package/src/NavbarLogo/__tests__/__snapshots__/NavbarLogo.test.tsx.snap +38 -0
  267. package/src/NavbarLogo/index.ts +1 -0
  268. package/src/OperationBadge/OperationBadge.stories.tsx +35 -0
  269. package/src/OperationBadge/OperationBadge.ts +59 -0
  270. package/src/OperationBadge/__tests__/OperationBadge.test.tsx +59 -0
  271. package/src/OperationBadge/__tests__/__snapshots__/OperationBadge.test.tsx.snap +651 -0
  272. package/src/OperationBadge/index.ts +1 -0
  273. package/src/PageNavigation/NextPageLink.tsx +22 -0
  274. package/src/PageNavigation/PageNavigation.tsx +20 -0
  275. package/src/PageNavigation/PreviousPageLink.tsx +22 -0
  276. package/src/PageNavigation/index.ts +3 -0
  277. package/src/Panel/CodePanel.stories.tsx +1 -2
  278. package/src/Panel/CodePanel.ts +8 -7
  279. package/src/Panel/ContentPanel.stories.tsx +1 -2
  280. package/src/Panel/ContentPanel.ts +5 -6
  281. package/src/Panel/Panel.stories.tsx +1 -3
  282. package/src/Panel/Panel.ts +3 -3
  283. package/src/Panel/PanelComponent.tsx +4 -5
  284. package/src/Panel/__tests__/CodePanel.test.tsx +1 -1
  285. package/src/Panel/__tests__/ContentPanel.test.tsx +1 -1
  286. package/src/Panel/__tests__/Panel.test.tsx +1 -2
  287. package/src/Panel/__tests__/__snapshots__/CodePanel.test.tsx.snap +8 -8
  288. package/src/Panel/__tests__/__snapshots__/ContentPanel.test.tsx.snap +22 -22
  289. package/src/Panel/__tests__/__snapshots__/Panel.test.tsx.snap +16 -16
  290. package/src/Panel/index.ts +8 -7
  291. package/src/SamplesPanelControls/SamplesControlButton.stories.tsx +2 -2
  292. package/src/SamplesPanelControls/SamplesPanelControls.ts +1 -1
  293. package/src/SamplesPanelControls/index.ts +1 -1
  294. package/src/Search/Autocomplete.tsx +128 -0
  295. package/src/Search/ClearIcon.tsx +31 -0
  296. package/src/Search/Input.tsx +19 -0
  297. package/src/Search/Parameters.tsx +62 -0
  298. package/src/Search/Popover.tsx +20 -0
  299. package/src/Search/Search.tsx +52 -0
  300. package/src/Search/SearchIcon.tsx +32 -0
  301. package/src/Search/SearchItem.tsx +85 -0
  302. package/src/Search/index.ts +9 -0
  303. package/src/Search/utils.tsx +19 -0
  304. package/src/Sidebar/ApiCallItem.tsx +33 -0
  305. package/src/Sidebar/ArrowBack.tsx +22 -0
  306. package/src/Sidebar/BackButton.tsx +44 -0
  307. package/src/Sidebar/Drilldown.tsx +46 -0
  308. package/src/Sidebar/DrilldownMenu.tsx +58 -0
  309. package/src/Sidebar/DrilldownMenuItem.tsx +40 -0
  310. package/src/Sidebar/ExternalIcon.tsx +37 -0
  311. package/src/Sidebar/Menu.tsx +11 -0
  312. package/src/Sidebar/MenuContainer.tsx +8 -0
  313. package/src/Sidebar/MenuGroup.tsx +55 -0
  314. package/src/Sidebar/MenuItem.tsx +25 -0
  315. package/src/Sidebar/MenuItemLabel.tsx +41 -0
  316. package/src/Sidebar/MenuLink.tsx +14 -0
  317. package/src/Sidebar/MenuLinkItem.tsx +24 -0
  318. package/src/Sidebar/MobileSidebarButton.tsx +44 -0
  319. package/src/Sidebar/Separator.tsx +17 -0
  320. package/src/Sidebar/SeparatorItem.tsx +14 -0
  321. package/src/Sidebar/SeparatorLine.tsx +9 -0
  322. package/src/Sidebar/Sidebar.tsx +54 -0
  323. package/src/Sidebar/SidebarLayout.tsx +30 -0
  324. package/src/Sidebar/index.ts +19 -0
  325. package/src/Sidebar/types/DrilldownMenuProps.ts +7 -0
  326. package/src/Sidebar/types/ItemState.ts +9 -0
  327. package/src/Sidebar/types/MenuItemProps.ts +6 -0
  328. package/src/Sidebar/types/MenuStyle.ts +4 -0
  329. package/src/Sidebar/types/NavItem.ts +27 -0
  330. package/src/Sidebar/types/index.ts +5 -0
  331. package/src/SidebarLogo/SidebarLogo.stories.tsx +2 -2
  332. package/src/SidebarLogo/__tests__/SidebarLogo.test.tsx +1 -1
  333. package/src/SidebarLogo/index.ts +1 -1
  334. package/src/SourceCode/SourceCode.stories.tsx +2 -2
  335. package/src/SourceCode/SourceCode.tsx +7 -3
  336. package/src/SourceCode/__tests__/SourceCode.test.tsx +2 -1
  337. package/src/SourceCode/index.ts +1 -1
  338. package/src/TableOfContent/TableOfContent.stories.tsx +39 -0
  339. package/src/TableOfContent/TableOfContent.tsx +112 -0
  340. package/src/TableOfContent/index.ts +1 -0
  341. package/src/Tooltip/Tooltip.stories.tsx +2 -2
  342. package/src/Tooltip/Tooltip.tsx +1 -1
  343. package/src/Tooltip/__tests__/Tooltip.test.tsx +1 -1
  344. package/src/Tooltip/index.ts +1 -1
  345. package/src/Welcome.stories.mdx +7 -0
  346. package/src/globalStyle.ts +99 -28
  347. package/src/hooks/index.ts +7 -3
  348. package/src/hooks/useActiveHeading.ts +46 -0
  349. package/src/hooks/useActiveSectionId.ts +53 -0
  350. package/src/hooks/useFullHeight.ts +47 -0
  351. package/src/hooks/useMobileMenu.ts +11 -0
  352. package/src/hooks/useNavbarHeight.ts +24 -0
  353. package/src/icons/ShelfIcon/ShelfIcon.stories.tsx +1 -1
  354. package/src/icons/ShelfIcon/ShelfIcon.tsx +1 -1
  355. package/src/icons/ShelfIcon/__tests__/ShelfIcon.test.tsx +1 -1
  356. package/src/icons/ShelfIcon/index.ts +2 -2
  357. package/src/icons/index.ts +1 -1
  358. package/src/index.ts +2 -0
  359. package/src/mocks/hooks/usePageData.ts +8 -0
  360. package/src/mocks/models.ts +3 -0
  361. package/src/mocks/search.ts +31 -0
  362. package/src/mocks/types/index.ts +1 -0
  363. package/src/mocks/usePreloadHistory.ts +9 -0
  364. package/src/types/portal/index.d.ts +5 -0
  365. package/src/types/portal/src/client/app/Sidebar/types.d.ts +41 -0
  366. package/src/types/portal/src/client/app/media-css.d.ts +7 -0
  367. package/src/types/portal/src/client/styling/default.d.ts +601 -0
  368. package/src/types/portal/src/client/styling/index.d.ts +10 -0
  369. package/src/types/portal/src/client/styling/resolve.d.ts +1 -0
  370. package/src/types/portal/src/server/constants.d.ts +7 -0
  371. package/src/types/portal/src/server/plugins/markdown/types.d.ts +23 -0
  372. package/src/types/portal/src/server/plugins/portal-config/types.d.ts +23 -0
  373. package/src/types/portal/src/server/plugins/types.d.ts +55 -0
  374. package/src/types/portal/src/server/store.d.ts +53 -0
  375. package/src/types/portal/src/server/utils/async.d.ts +1 -0
  376. package/src/types/portal/src/server/utils/content-provider.d.ts +51 -0
  377. package/src/types/portal/src/server/utils/crypto.d.ts +3 -0
  378. package/src/types/portal/src/server/utils/fs.d.ts +3 -0
  379. package/src/types/portal/src/server/utils/index.d.ts +6 -0
  380. package/src/types/portal/src/server/utils/paths.d.ts +13 -0
  381. package/src/types/portal/src/server/utils/reporter/formatter.d.ts +11 -0
  382. package/src/types/portal/src/server/utils/reporter/reporter.d.ts +17 -0
  383. package/src/types/portal/src/server/utils/yaml.d.ts +1 -0
  384. package/src/types/portal/src/server/version-store.d.ts +35 -0
  385. package/src/types/portal/src/shared/constants.d.ts +8 -0
  386. package/src/types/portal/src/shared/types.d.ts +116 -0
  387. package/src/types/portal/src/shared/urls.d.ts +8 -0
  388. package/src/types/portal/src/shared/utils.d.ts +10 -0
  389. package/src/ui/AlertIcon.tsx +111 -0
  390. package/src/ui/Arrow.tsx +36 -0
  391. package/src/ui/Background.tsx +16 -0
  392. package/src/ui/Box.tsx +39 -0
  393. package/src/ui/Button.tsx +19 -0
  394. package/src/ui/Dropdown.tsx +132 -0
  395. package/src/ui/Flex.tsx +21 -0
  396. package/src/ui/Jumbotron.tsx +57 -0
  397. package/src/ui/Tiles/ThinTile.tsx +151 -0
  398. package/src/ui/Tiles/TileHeader.ts +13 -0
  399. package/src/ui/Tiles/TileText.tsx +12 -0
  400. package/src/ui/Tiles/WideTile.tsx +138 -0
  401. package/src/ui/Tiles/index.ts +4 -0
  402. package/src/ui/Typography.tsx +167 -0
  403. package/src/ui/UniversalLink.tsx +100 -0
  404. package/src/ui/index.tsx +17 -0
  405. package/src/utils/__tests__/ClipboardService.test.ts +1 -1
  406. package/src/utils/__tests__/css-variables.test.ts +1 -1
  407. package/src/utils/__tests__/highlight.test.ts +1 -1
  408. package/src/utils/__tests__/jsonToHtml.test.ts +1 -1
  409. package/src/utils/__tests__/media-css.test.ts +1 -1
  410. package/src/utils/__tests__/theme-helpers.test.ts +1 -1
  411. package/src/utils/getNavbarElement.ts +10 -0
  412. package/src/utils/isUrl.ts +42 -0
  413. package/src/utils/replaceHashInColor.ts +3 -0
  414. package/ui/AlertIcon.d.ts +10 -0
  415. package/ui/AlertIcon.js +45 -0
  416. package/ui/Arrow.d.ts +7 -0
  417. package/ui/Arrow.js +42 -0
  418. package/ui/Background.d.ts +7 -0
  419. package/ui/Background.js +16 -0
  420. package/ui/Box.d.ts +6 -0
  421. package/ui/Box.js +16 -0
  422. package/ui/Button.d.ts +7 -0
  423. package/ui/Button.js +27 -0
  424. package/ui/Dropdown.d.ts +8 -0
  425. package/ui/Dropdown.js +55 -0
  426. package/ui/Flex.d.ts +10 -0
  427. package/ui/Flex.js +31 -0
  428. package/ui/Jumbotron.d.ts +18 -0
  429. package/ui/Jumbotron.js +44 -0
  430. package/ui/Tiles/ThinTile.d.ts +21 -0
  431. package/ui/Tiles/ThinTile.js +98 -0
  432. package/ui/Tiles/TileHeader.d.ts +5 -0
  433. package/ui/Tiles/TileHeader.js +15 -0
  434. package/ui/Tiles/TileText.d.ts +5 -0
  435. package/ui/Tiles/TileText.js +15 -0
  436. package/ui/Tiles/WideTile.d.ts +7 -0
  437. package/ui/Tiles/WideTile.js +93 -0
  438. package/ui/Tiles/index.d.ts +4 -0
  439. package/ui/Tiles/index.js +20 -0
  440. package/ui/Typography.d.ts +110 -0
  441. package/ui/Typography.js +137 -0
  442. package/ui/UniversalLink.d.ts +17 -0
  443. package/ui/UniversalLink.js +62 -0
  444. package/ui/index.d.ts +14 -0
  445. package/ui/index.js +34 -0
  446. package/utils/getNavbarElement.d.ts +1 -0
  447. package/utils/getNavbarElement.js +14 -0
  448. package/utils/isUrl.d.ts +12 -0
  449. package/utils/isUrl.js +36 -0
  450. package/utils/replaceHashInColor.d.ts +1 -0
  451. package/utils/replaceHashInColor.js +7 -0
  452. package/Logo/Logo.d.ts +0 -10
  453. package/src/Introduction.stories.mdx +0 -7
  454. package/src/Logo/Logo.tsx +0 -23
@@ -129,6 +129,11 @@ export const GlobalStyle = createGlobalStyle`
129
129
  --sidebar-spacing-horizontal: var(--sidebar-spacing-unit);
130
130
  --sidebar-spacing-vertical: var(--sidebar-spacing-unit);
131
131
 
132
+ --sidebar-margin-left: calc(var(--sidebar-spacing-unit) * 2);
133
+ --sidebar-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
134
+ --sidebar-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
135
+ --sidebar-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
136
+
132
137
  --sidebar-word-break: 'inherit';
133
138
  --sidebar-separator-label-color: var(--sidebar-item-color);
134
139
  --sidebar-separator-line-color: #dadada;
@@ -309,10 +314,10 @@ export const GlobalStyle = createGlobalStyle`
309
314
  --panels-background-color: #fff;
310
315
 
311
316
  --samples-panel-gap: 20px;
312
- --samples-panel-width: 37.5%;
317
+ --samples-panel-width: 50%;
313
318
  --samples-panel-block-background-color: #fff;
314
319
  --samples-panel-background-color: #52606d;
315
- --samples-panel-callback-background-color: var(--samples-panel-callback-background-color);
320
+ --samples-panel-callback-background-color: var(--color-secondary-300);
316
321
  --samples-panel-controls-background-color: #323f4b;
317
322
  --samples-panel-controls-hover-background-color: #3c4c5a;
318
323
  --samples-panel-controls-active-border-color: var(--color-accent-500);
@@ -371,7 +376,9 @@ export const GlobalStyle = createGlobalStyle`
371
376
 
372
377
  --field-name-font-size: var(--code-font-size);
373
378
  --field-name-font-family: var(--code-font-family);
374
- --field-enum-background-color: var(--inline-code-background-color);
379
+ --field-example-color: var(--color-content);
380
+ --field-example-background-color: var(--inline-code-background-color);
381
+ --field-constraint-color: var(--color-content);
375
382
  --field-constraint-background-color: var(--inline-code-background-color);
376
383
 
377
384
  /*
@@ -413,53 +420,54 @@ export const GlobalStyle = createGlobalStyle`
413
420
  /* Floating action button */
414
421
  --fab-color: #0065FB;
415
422
  --fab-background-color: #f2f2f2;
416
-
423
+
424
+ //* PORTAL settings *//
425
+ /**
426
+ * Headings
427
+ * */
428
+ --h2-font-weight: var(--font-weight-bold);
429
+
430
+ --h1-margin-top: 1.35em;
431
+ --h1-margin-bottom: 0.9em;
432
+ --h2-margin-top: 1.25em;
433
+ --h2-margin-bottom: 0.8em;
434
+ --h3-margin-top: 1.25em;
435
+ --h3-margin-bottom: 0.8em;
436
+
437
+ /**
438
+ * Footer
439
+ * */
440
+ --footer-background-color: var(--color-primary-500);
441
+ --footer-text-color: #fff;
417
442
 
418
443
  /**
419
444
  * Sidebar
420
445
  * */
421
- --sidebar-spacing-unit: 8px;
422
- --sidebar-margin-left: calc(var(--sidebar-spacing-unit) * 2);
423
446
  --sidebar-padding-horizontal: var(--sidebar-spacing-unit);
424
447
  --sidebar-padding-vertical: var(--sidebar-spacing-unit);
425
448
 
426
449
  --sidebar-spacing-padding-vertical: var(--sidebar-spacing-unit);
427
450
  --sidebar-spacing-padding-horizontal: var(--sidebar-spacing-unit);
428
- --sidebar-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
429
- --sidebar-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
430
- --sidebar-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
431
-
432
- --sidebar-chevron-size: var(--sidebar-spacing-unit);
433
- --sidebar-chevron-color: var(--sidebar-text-color);
434
451
 
435
452
  --sidebar-border-radius: 4px;
436
- --sidebar-background-color: #fff;
437
453
  --sidebar-font-size: var(--font-size-base);
438
- --sidebar-font-family: var(--font-family-primary);
439
- --sidebar-right-line-color: var(--color-border-light);
440
- --sidebar-text-color: var(--color-text-main);
441
- --sidebar-text-active-color: var(--sidebar-text-color);
442
- --sidebar-text-active-background-color: var(--color-border-light);
443
- --sidebar-width: 285px;
444
-
445
- --sidebar-separator-line-color: #dadada;
446
- --sidebar-separator-label-color: var(--sidebar-text-color);
454
+ --sidebar-font-family: var(--font-family-base);
447
455
 
448
456
  /**
449
- * Portal Logo
457
+ * Logo
450
458
  * */
451
459
  --logo-height: 2rem;
452
460
  --logo-margin: var(--sidebar-margin-left);
453
461
 
454
462
  /**
455
- * Portal Navbar
463
+ * Navbar
456
464
  * */
457
465
  --navbar-height: 60px;
458
- --navbar-color-text: var(--color-content-inverse);
459
- --navbar-color-background: var(--color-primary-500);
466
+ --navbar-text-color: #fff;
467
+ --navbar-background-color: var(--color-primary-500);
460
468
 
461
469
  /**
462
- * Portal Navbar Item
470
+ * Navbar Item
463
471
  * */
464
472
  --navbar-item-font-size: 16px;
465
473
  --navbar-item-margin-horizontal: 0;
@@ -467,7 +475,70 @@ export const GlobalStyle = createGlobalStyle`
467
475
  --navbar-item-border-radius: 10px;
468
476
  --navbar-item-font-weight: var(--font-weight-bold);
469
477
  --navbar-item-active-background-color: #1b75fa;
470
- --navbar-item-active-text-color: var(--color-primary-contrast);
478
+ --navbar-item-active-text-color: var(--navbar-text-color);
471
479
  --navbar-item-active-text-decoration: none;
480
+
481
+ /**
482
+ * TOC
483
+ * */
484
+ --toc-width: 240px;
485
+
486
+ /**
487
+ * Markdown
488
+ * */
489
+ --content-wrapper-max-width: 910px;
490
+ --content-wrapper-padding-vertical: 25px;
491
+ --content-wrapper-padding-horizontal: 0px;
492
+
493
+ /**
494
+ * Bloquote
495
+ * */
496
+ --bloquote-margin-vertical: 1.5em;
497
+ --bloquote-margin-horizontal: 0;
498
+ --bloquote-padding-vertical: 0;
499
+ --bloquote-padding-horizontal: calc(var(--spacing-unit) * 4);
500
+ --bloquote-background-color: transparent;
501
+
502
+ /**
503
+ * Admonition
504
+ * */
505
+ --admonition-margin-horizontal: 0;
506
+ --admonition-margin-vertical: calc(var(--spacing-unit) * 2);
507
+ --admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
508
+ --admonition-padding-vertical: calc(var(--spacing-unit) * 4);
509
+ --admonition-icon-size: 25px;
510
+ --admonition-border-radius: 8px;
511
+ --admonition-font-size: 16px;
512
+ --admonition-font-weight: normal;
513
+ --admonition-line-height: 1.5em;
514
+ --admonition-heading-font-size: 16px;
515
+ --admonition-heading-font-weight: var(--font-weight-bold);
516
+ --admonition-heading-letter-spacing: 0.3px;
517
+ --admonition-heading-transform: uppercase;
518
+
519
+ /* info */
520
+ --admonition-info-background-color: #ebedf0;
521
+ --admonition-info-text-color: var(--color-content);
522
+ --admonition-info-icon-color: #4782cb;
523
+
524
+ /* attention */
525
+ --admonition-attention-background-color: #e6eef8;
526
+ --admonition-attention-text-color: var(--color-content);
527
+ --admonition-attention-icon-color: #4782cb;
528
+
529
+ /* warning */
530
+ --admonition-warning-background-color: #feeda5;
531
+ --admonition-warning-text-color: var(--color-content);
532
+ --admonition-warning-icon-color: #d4ad03;
533
+
534
+ /* danger */
535
+ --admonition-danger-background-color: #fceaea;
536
+ --admonition-danger-text-color: var(--color-content);
537
+ --admonition-danger-icon-color: #e53935;
538
+
539
+ /* success */
540
+ --admonition-success-background-color: #ddffe1;
541
+ --admonition-success-text-color: var(--color-content);
542
+ --admonition-success-icon-color: #00aa13;
472
543
  }
473
544
  `;
@@ -1,3 +1,7 @@
1
- export * from './useControl';
2
- export * from './useMount';
3
- export * from './useUnmount';
1
+ export * from '@theme/hooks/useControl';
2
+ export * from '@theme/hooks/useMount';
3
+ export * from '@theme/hooks/useUnmount';
4
+ export * from '@theme/hooks/useActiveHeading';
5
+ export * from '@theme/hooks/useActiveSectionId';
6
+ export * from '@theme/hooks/useFullHeight';
7
+ export * from '@theme/hooks/useNavbarHeight';
@@ -0,0 +1,46 @@
1
+ import { useState, useMemo, useCallback, useEffect } from 'react';
2
+
3
+ export type UseActiveHeadingReturnType = string | undefined;
4
+
5
+ export function useActiveHeading(contentElement: Element | null): UseActiveHeadingReturnType {
6
+ const [heading, setHeading] = useState<string | undefined>(undefined);
7
+
8
+ const headings: NodeListOf<HTMLElement> | null = useMemo(
9
+ () => contentElement && contentElement.querySelectorAll<HTMLElement>('.heading-anchor'),
10
+ [contentElement],
11
+ );
12
+
13
+ const handler = useCallback(
14
+ // throttle(
15
+ () => {
16
+ if (!headings) {
17
+ return;
18
+ }
19
+
20
+ for (let i = 0; i < headings.length; i++) {
21
+ if (headings[i].offsetTop > window.scrollY) {
22
+ const newHeading = i === 0 ? undefined : headings[i - 1].getAttribute('id') || undefined;
23
+ setHeading(newHeading);
24
+ return;
25
+ }
26
+ }
27
+ },
28
+ [headings],
29
+ );
30
+
31
+ useEffect(() => {
32
+ if (typeof window === 'undefined' || !headings || !headings.length) {
33
+ return undefined;
34
+ }
35
+
36
+ window.addEventListener('scroll', handler, {
37
+ capture: false,
38
+ });
39
+
40
+ handler();
41
+
42
+ return () => window.removeEventListener('scroll', handler);
43
+ }, [handler, headings]);
44
+
45
+ return heading;
46
+ }
@@ -0,0 +1,53 @@
1
+ import { Location } from 'history';
2
+ import { useEffect, useState, useMemo } from 'react';
3
+ import throttle from 'lodash.throttle';
4
+
5
+ import { useNavbarHeight } from '@theme/hooks/useNavbarHeight';
6
+
7
+ export type UseActiveSectionIdReturnType = string;
8
+
9
+ export function useActiveSectionId(
10
+ location: Location,
11
+ hasOverviewPage = false,
12
+ ): UseActiveSectionIdReturnType {
13
+ const [itemId, setItemId] = useState<string>('');
14
+ const navbarHeight = useNavbarHeight(location);
15
+ const scrollListener = useMemo(
16
+ () =>
17
+ throttle(() => {
18
+ const sections = document.querySelectorAll('[data-section-id]');
19
+ if (sections.length < 2) {
20
+ setItemId('');
21
+ return;
22
+ }
23
+ for (let i = 0; i < sections.length; i++) {
24
+ const section = sections[i];
25
+ const rect = section.getBoundingClientRect();
26
+ if (rect.y < navbarHeight + 5 && rect.bottom > navbarHeight + 5) {
27
+ // use small padding 5px to account for rounding
28
+ setItemId(section.getAttribute('data-section-id') || '');
29
+ return;
30
+ }
31
+ }
32
+ if (hasOverviewPage) {
33
+ setItemId('');
34
+ } else {
35
+ setItemId((sections[0] && sections[0].getAttribute('data-section-id')) || '');
36
+ }
37
+ }, 150),
38
+ [navbarHeight, hasOverviewPage],
39
+ );
40
+
41
+ useEffect(() => {
42
+ window.addEventListener('scroll', scrollListener, { capture: false });
43
+ setTimeout(() => {
44
+ scrollListener();
45
+ }, 0);
46
+
47
+ return () => {
48
+ window.removeEventListener('scroll', scrollListener); // TODO: add throttle
49
+ };
50
+ }, [location, navbarHeight, scrollListener]);
51
+
52
+ return itemId;
53
+ }
@@ -0,0 +1,47 @@
1
+ import { useCallback, useEffect, MutableRefObject, useMemo } from 'react';
2
+ import throttle from 'lodash.throttle';
3
+
4
+ export function useFullHeight(element: MutableRefObject<HTMLElement | null>): void {
5
+ const handler = useCallback(() => {
6
+ if (!element.current) {
7
+ return;
8
+ }
9
+
10
+ const footer = document.querySelector('footer');
11
+ if (!footer) {
12
+ return;
13
+ }
14
+
15
+ const elementTop = element.current.getBoundingClientRect().top;
16
+ const footerOffset = footer.offsetTop - window.scrollY - elementTop;
17
+ if (footerOffset > window.innerHeight) {
18
+ element.current.style.maxHeight = `${window.innerHeight - elementTop}px`;
19
+ } else {
20
+ element.current.style.maxHeight = `${footerOffset}px`;
21
+ }
22
+ }, [element]);
23
+
24
+ const throttledHandler = useMemo(() => throttle(handler, 150), [handler]);
25
+
26
+ useEffect(() => {
27
+ if (typeof window === 'undefined' || !element.current) {
28
+ return () => {
29
+ // nope
30
+ };
31
+ }
32
+
33
+ window.addEventListener('scroll', throttledHandler, {
34
+ capture: false,
35
+ });
36
+ window.addEventListener('resize', throttledHandler, {
37
+ capture: false,
38
+ });
39
+
40
+ handler();
41
+
42
+ return () => {
43
+ window.removeEventListener('scroll', throttledHandler);
44
+ window.removeEventListener('resize', throttledHandler);
45
+ };
46
+ }, [throttledHandler, element, handler]);
47
+ }
@@ -0,0 +1,11 @@
1
+ import { Dispatch, SetStateAction, useEffect, useState } from 'react';
2
+ import { useHistory } from 'react-router-dom';
3
+
4
+ export function useMobileMenu(initialState = false): [boolean, Dispatch<SetStateAction<boolean>>] {
5
+ const { location } = useHistory();
6
+ const [isOpen, setIsOpen] = useState(initialState);
7
+
8
+ useEffect(() => setIsOpen(false), [location.pathname]);
9
+
10
+ return [isOpen, setIsOpen];
11
+ }
@@ -0,0 +1,24 @@
1
+ import { useEffect, useState } from 'react';
2
+ import type { Location } from 'history';
3
+
4
+ import { getNavbarElement } from '@theme/utils/getNavbarElement';
5
+
6
+ export type UseNavbarHeightReturnType = number;
7
+
8
+ export function useNavbarHeight(location: Location): UseNavbarHeightReturnType {
9
+ const [height, setHeight] = useState(0);
10
+
11
+ useEffect(() => {
12
+ const navbar = getNavbarElement();
13
+ setHeight((navbar && navbar.clientHeight) || 0);
14
+ }, [location.pathname]);
15
+
16
+ useEffect(() => {
17
+ window.requestAnimationFrame(() => {
18
+ const navbar = getNavbarElement();
19
+ setHeight((navbar && navbar.clientHeight) || 0);
20
+ });
21
+ }, []);
22
+
23
+ return height;
24
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Story, ComponentMeta } from '@storybook/react';
3
3
 
4
- import { ShelfIcon, ShelfIconProps } from './ShelfIcon';
4
+ import { ShelfIcon, ShelfIconProps } from '@theme/icons/ShelfIcon';
5
5
 
6
6
  export default {
7
7
  title: 'Icons/ShelfIcon',
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { getCssColorVariable } from '../../utils/css-variables';
4
+ import { getCssColorVariable } from '@theme/utils';
5
5
 
6
6
  const directionMap = {
7
7
  right: '0deg',
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
3
 
4
- import { ShelfIcon } from '../ShelfIcon';
4
+ import { ShelfIcon } from '@theme/icons/ShelfIcon';
5
5
 
6
6
  describe('ShelfIcon', () => {
7
7
  it('renders right', () => {
@@ -1,2 +1,2 @@
1
- export { ShelfIcon } from './ShelfIcon';
2
- export type { ShelfIconProps } from './ShelfIcon';
1
+ export { ShelfIcon } from '@theme/icons/ShelfIcon/ShelfIcon';
2
+ export type { ShelfIconProps } from '@theme/icons/ShelfIcon/ShelfIcon';
@@ -1 +1 @@
1
- export * from './ShelfIcon';
1
+ export * from '@theme/icons/ShelfIcon';
package/src/index.ts CHANGED
@@ -12,3 +12,5 @@ export * from './icons';
12
12
  export * from './hooks';
13
13
  export * from './utils';
14
14
  export * from './globalStyle';
15
+ export * from './OperationBadge';
16
+ export * from './TableOfContent';
@@ -0,0 +1,8 @@
1
+ import type { ResolvedNavLinkItem } from '@theme/types/portal';
2
+
3
+ export function usePageData(): {
4
+ prevPage: ResolvedNavLinkItem | null;
5
+ nextPage: ResolvedNavLinkItem | null;
6
+ } {
7
+ return { prevPage: null, nextPage: null };
8
+ }
@@ -0,0 +1,3 @@
1
+ export type ActiveItem<T> = T;
2
+ export type SearchDocument = any;
3
+ export type OperationParameter = any;
@@ -0,0 +1,31 @@
1
+ interface OperationParameter {
2
+ name: string | string[];
3
+ description: string | string[];
4
+ place: string;
5
+ path?: string[];
6
+ }
7
+
8
+ interface SearchDocument {
9
+ id: string;
10
+ url: string;
11
+ title: string | string[];
12
+ text: string | string[];
13
+ path?: string[];
14
+ httpVerb?: string;
15
+ pathName?: string | string[];
16
+ parameters?: OperationParameter[];
17
+ }
18
+
19
+ export function useFuseSearch(): {
20
+ query: string;
21
+ setQuery: (val: string) => void;
22
+ items: SearchDocument[];
23
+ } {
24
+ return {
25
+ query: '',
26
+ setQuery(val: string) {
27
+ this.query = val;
28
+ },
29
+ items: [],
30
+ };
31
+ }
@@ -0,0 +1 @@
1
+ export type ResolvedNavLinkItem = any;
@@ -0,0 +1,9 @@
1
+ export function usePreloadHistory(): { push: (url: string) => void } {
2
+ const history = [];
3
+
4
+ return {
5
+ push: (url: string): void => {
6
+ history.push(url);
7
+ },
8
+ };
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './src/client/styling';
2
+ export * from './src/client/app/Sidebar/types';
3
+ export * from './src/server/plugins/portal-config/types';
4
+ export * from './src/shared/types';
5
+ export type { MdHeading } from './src/server/plugins/markdown/types';
@@ -0,0 +1,41 @@
1
+ import { MenuStyle } from '../../../shared/types';
2
+ export interface SidebarNavItem {
3
+ label?: string;
4
+ sublabel?: string;
5
+ icon?: string;
6
+ link?: string;
7
+ type?: string;
8
+ httpVerb?: string;
9
+ expanded?: string;
10
+ selectFirstItemOnExpand?: boolean;
11
+ pageId?: string;
12
+ redocPrevLink?: string;
13
+ redocPrevLabel?: string;
14
+ redocNextLink?: string;
15
+ redocNextLabel?: string;
16
+ redocFakePage?: boolean;
17
+ redocInfoPageId?: string;
18
+ target?: string;
19
+ external?: boolean;
20
+ items?: SidebarNavItem[];
21
+ permission?: string;
22
+ menuStyle?: MenuStyle;
23
+ separatorLine?: boolean;
24
+ version?: string;
25
+ }
26
+ export interface ItemState extends SidebarNavItem {
27
+ items: ItemState[];
28
+ active: boolean;
29
+ hasActiveSubItem: boolean;
30
+ menuStyle?: MenuStyle | null;
31
+ }
32
+ export declare enum MenuType {
33
+ Separator = "separator",
34
+ DrillDown = "drilldown",
35
+ Group = "group",
36
+ Operation = "operation"
37
+ }
38
+ export interface MenuItemProps {
39
+ item: ItemState;
40
+ activeItem?: ItemState;
41
+ }
@@ -0,0 +1,7 @@
1
+ export declare const breakpoints: {
2
+ small: string;
3
+ medium: string;
4
+ large: string;
5
+ };
6
+ export declare const mediaQueries: import("@theme/utils/media-css").MediaQueries;
7
+ export type { MediaQueries } from '@theme/utils/media-css';