@redocly/theme 0.4.15 → 0.5.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 (553) hide show
  1. package/{REAMDE.md → README.md} +0 -0
  2. package/lib/ApiOnboarding/AppCustomAttributes.d.ts +5 -0
  3. package/lib/ApiOnboarding/AppCustomAttributes.js +8 -0
  4. package/{Button → lib/Button}/Button.d.ts +0 -0
  5. package/lib/Button/Button.js +156 -0
  6. package/{Button → lib/Button}/index.d.ts +0 -0
  7. package/{Button → lib/Button}/index.js +1 -0
  8. package/{Cards → lib/Cards}/Card.d.ts +0 -0
  9. package/lib/Cards/Card.js +36 -0
  10. package/{Cards → lib/Cards}/CardsBlock.d.ts +0 -0
  11. package/lib/Cards/CardsBlock.js +15 -0
  12. package/{CodeBlock → lib/CodeBlock}/CodeBlock.d.ts +0 -0
  13. package/lib/CodeBlock/CodeBlock.js +103 -0
  14. package/{CodeBlock → lib/CodeBlock}/index.d.ts +0 -0
  15. package/{CodeBlock → lib/CodeBlock}/index.js +1 -0
  16. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.d.ts +0 -0
  17. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.js +22 -36
  18. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.d.ts +0 -0
  19. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.js +1 -0
  20. package/{CopyButton → lib/CopyButton}/CopyButton.d.ts +0 -0
  21. package/lib/CopyButton/CopyButton.js +50 -0
  22. package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.d.ts +0 -0
  23. package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.js +14 -15
  24. package/{CopyButton → lib/CopyButton}/index.d.ts +0 -0
  25. package/{CopyButton → lib/CopyButton}/index.js +1 -0
  26. package/{EditPageButton → lib/EditPageButton}/EditPageButton.d.ts +0 -0
  27. package/lib/EditPageButton/EditPageButton.js +36 -0
  28. package/{EditPageButton → lib/EditPageButton}/index.d.ts +0 -0
  29. package/{EditPageButton → lib/EditPageButton}/index.js +1 -0
  30. package/{Footer → lib/Footer}/CustomFooter.d.ts +0 -0
  31. package/lib/Footer/CustomFooter.js +35 -0
  32. package/{Footer → lib/Footer}/CustomFooterNavItem.d.ts +0 -0
  33. package/lib/Footer/CustomFooterNavItem.js +33 -0
  34. package/{Footer → lib/Footer}/Footer.d.ts +0 -0
  35. package/lib/Footer/Footer.js +35 -0
  36. package/{Footer → lib/Footer}/FooterColumn.d.ts +0 -0
  37. package/lib/Footer/FooterColumn.js +54 -0
  38. package/{Footer → lib/Footer}/FooterColumns.d.ts +0 -0
  39. package/lib/Footer/FooterColumns.js +44 -0
  40. package/{Footer → lib/Footer}/FooterCopyright.d.ts +0 -0
  41. package/lib/Footer/FooterCopyright.js +26 -0
  42. package/{Footer → lib/Footer}/index.d.ts +0 -0
  43. package/{Footer → lib/Footer}/index.js +1 -0
  44. package/{JsonViewer → lib/JsonViewer}/JsonViewer.d.ts +0 -0
  45. package/lib/JsonViewer/JsonViewer.js +240 -0
  46. package/{JsonViewer → lib/JsonViewer}/index.d.ts +0 -0
  47. package/{JsonViewer → lib/JsonViewer}/index.js +1 -0
  48. package/lib/LastUpdated/LastUpdated.d.ts +14 -0
  49. package/lib/LastUpdated/LastUpdated.js +52 -0
  50. package/{Layout → lib/Layout}/PageLayout.d.ts +0 -0
  51. package/lib/Layout/PageLayout.js +29 -0
  52. package/{Layout → lib/Layout}/RootLayout.d.ts +0 -0
  53. package/lib/Layout/RootLayout.js +19 -0
  54. package/{Layout → lib/Layout}/index.d.ts +0 -0
  55. package/{Layout → lib/Layout}/index.js +1 -0
  56. package/{Markdown → lib/Markdown}/Admonition.d.ts +0 -0
  57. package/lib/Markdown/Admonition.js +56 -0
  58. package/{Markdown → lib/Markdown}/CodeSample/CodeSample.d.ts +0 -0
  59. package/lib/Markdown/CodeSample/CodeSample.js +219 -0
  60. package/{Markdown → lib/Markdown}/CodeSample/index.d.ts +0 -0
  61. package/{Markdown → lib/Markdown}/CodeSample/index.js +1 -0
  62. package/{Markdown → lib/Markdown}/ContainerWrapper.d.ts +0 -0
  63. package/lib/Markdown/ContainerWrapper.js +26 -0
  64. package/{Markdown → lib/Markdown}/Details.d.ts +0 -0
  65. package/lib/Markdown/Details.js +17 -0
  66. package/{Markdown → lib/Markdown}/Heading.d.ts +0 -0
  67. package/{Markdown → lib/Markdown}/Heading.js +9 -9
  68. package/{Markdown → lib/Markdown}/MarkdownLayout.d.ts +1 -0
  69. package/lib/Markdown/MarkdownLayout.js +30 -0
  70. package/{Markdown → lib/Markdown}/MarkdownWrapper.d.ts +0 -0
  71. package/lib/Markdown/MarkdownWrapper.js +391 -0
  72. package/{Markdown → lib/Markdown}/Mermaid.d.ts +0 -0
  73. package/lib/Markdown/Mermaid.js +19 -0
  74. package/{Markdown → lib/Markdown}/PageWrapper.d.ts +0 -0
  75. package/lib/Markdown/PageWrapper.js +15 -0
  76. package/{Markdown → lib/Markdown}/Sup.d.ts +0 -0
  77. package/lib/Markdown/Sup.js +14 -0
  78. package/{Markdown → lib/Markdown}/Tabs/Tab.d.ts +0 -0
  79. package/lib/Markdown/Tabs/Tab.js +28 -0
  80. package/{Markdown → lib/Markdown}/Tabs/Tabs.d.ts +0 -0
  81. package/lib/Markdown/Tabs/Tabs.js +62 -0
  82. package/{Markdown → lib/Markdown}/Tabs/index.d.ts +0 -0
  83. package/{Markdown → lib/Markdown}/Tabs/index.js +1 -0
  84. package/{Markdown → lib/Markdown}/index.d.ts +0 -0
  85. package/{Markdown → lib/Markdown}/index.js +1 -0
  86. package/{Navbar → lib/Navbar}/MobileNavbarDropdown.d.ts +0 -0
  87. package/lib/Navbar/MobileNavbarDropdown.js +30 -0
  88. package/{Navbar → lib/Navbar}/MobileNavbarItem.d.ts +1 -1
  89. package/lib/Navbar/MobileNavbarItem.js +106 -0
  90. package/{Navbar → lib/Navbar}/MobileNavbarMenu.d.ts +0 -0
  91. package/lib/Navbar/MobileNavbarMenu.js +92 -0
  92. package/{Navbar → lib/Navbar}/MobileNavbarMenuButton.d.ts +0 -0
  93. package/lib/Navbar/MobileNavbarMenuButton.js +18 -0
  94. package/{Navbar → lib/Navbar}/Navbar.d.ts +0 -0
  95. package/lib/Navbar/Navbar.js +75 -0
  96. package/{Navbar → lib/Navbar}/NavbarDropdown.d.ts +0 -0
  97. package/lib/Navbar/NavbarDropdown.js +38 -0
  98. package/{Navbar → lib/Navbar}/NavbarItem.d.ts +1 -1
  99. package/lib/Navbar/NavbarItem.js +72 -0
  100. package/{Navbar → lib/Navbar}/NavbarMenu.d.ts +0 -0
  101. package/lib/Navbar/NavbarMenu.js +34 -0
  102. package/{Navbar → lib/Navbar}/index.d.ts +0 -0
  103. package/{Navbar → lib/Navbar}/index.js +1 -0
  104. package/{NavbarLogo → lib/NavbarLogo}/NavbarLogo.d.ts +0 -0
  105. package/lib/NavbarLogo/NavbarLogo.js +24 -0
  106. package/{NavbarLogo → lib/NavbarLogo}/index.d.ts +0 -0
  107. package/{NavbarLogo → lib/NavbarLogo}/index.js +1 -0
  108. package/{OperationBadge → lib/OperationBadge}/OperationBadge.d.ts +0 -0
  109. package/lib/OperationBadge/OperationBadge.js +68 -0
  110. package/{OperationBadge → lib/OperationBadge}/index.d.ts +0 -0
  111. package/{OperationBadge → lib/OperationBadge}/index.js +1 -0
  112. package/{PageNavigation → lib/PageNavigation}/NextPageLink.d.ts +0 -0
  113. package/lib/PageNavigation/NextPageLink.js +26 -0
  114. package/{PageNavigation → lib/PageNavigation}/PageNavigation.d.ts +0 -0
  115. package/lib/PageNavigation/PageNavigation.js +31 -0
  116. package/{PageNavigation → lib/PageNavigation}/PreviousPageLink.d.ts +0 -0
  117. package/lib/PageNavigation/PreviousPageLink.js +26 -0
  118. package/{PageNavigation → lib/PageNavigation}/index.d.ts +0 -0
  119. package/{PageNavigation → lib/PageNavigation}/index.js +1 -0
  120. package/{Panel → lib/Panel}/Panel.d.ts +0 -0
  121. package/lib/Panel/Panel.js +39 -0
  122. package/{Panel → lib/Panel}/PanelBody.d.ts +0 -0
  123. package/lib/Panel/PanelBody.js +59 -0
  124. package/{Panel → lib/Panel}/PanelComponent.d.ts +1 -1
  125. package/{Panel → lib/Panel}/PanelComponent.js +21 -36
  126. package/{Panel → lib/Panel}/PanelHeader.d.ts +0 -0
  127. package/lib/Panel/PanelHeader.js +33 -0
  128. package/{Panel → lib/Panel}/PanelHeaderTitle.d.ts +0 -0
  129. package/lib/Panel/PanelHeaderTitle.js +21 -0
  130. package/{Panel → lib/Panel}/index.d.ts +0 -0
  131. package/{Panel → lib/Panel}/index.js +1 -0
  132. package/{Profile → lib/Profile}/Profile.d.ts +0 -0
  133. package/lib/Profile/Profile.js +87 -0
  134. package/{Profile → lib/Profile}/index.d.ts +0 -0
  135. package/{Profile → lib/Profile}/index.js +1 -0
  136. package/{SamplesPanelControls → lib/SamplesPanelControls}/SamplesPanelControls.d.ts +0 -0
  137. package/lib/SamplesPanelControls/SamplesPanelControls.js +74 -0
  138. package/{SamplesPanelControls → lib/SamplesPanelControls}/index.d.ts +0 -0
  139. package/{SamplesPanelControls → lib/SamplesPanelControls}/index.js +1 -0
  140. package/{Search → lib/Search}/Autocomplete.d.ts +0 -0
  141. package/lib/Search/Autocomplete.js +105 -0
  142. package/{Search → lib/Search}/ClearIcon.d.ts +0 -0
  143. package/lib/Search/ClearIcon.js +26 -0
  144. package/{Search → lib/Search}/Input.d.ts +0 -0
  145. package/lib/Search/Input.js +30 -0
  146. package/{Search → lib/Search}/Parameters.d.ts +0 -0
  147. package/lib/Search/Parameters.js +55 -0
  148. package/{Search → lib/Search}/Popover.d.ts +0 -0
  149. package/lib/Search/Popover.js +26 -0
  150. package/{Search → lib/Search}/Search.d.ts +0 -0
  151. package/lib/Search/Search.js +27 -0
  152. package/{Search → lib/Search}/SearchIcon.d.ts +0 -0
  153. package/lib/Search/SearchIcon.js +27 -0
  154. package/{Search → lib/Search}/SearchItem.d.ts +0 -0
  155. package/lib/Search/SearchItem.js +98 -0
  156. package/{Search → lib/Search}/SidebarSearch.d.ts +0 -0
  157. package/lib/Search/SidebarSearch.js +20 -0
  158. package/{Search → lib/Search}/index.d.ts +0 -0
  159. package/{Search → lib/Search}/index.js +1 -0
  160. package/{Search → lib/Search}/utils.d.ts +0 -0
  161. package/{Search → lib/Search}/utils.js +8 -26
  162. package/{Sidebar → lib/Sidebar}/ApiCallItem.d.ts +0 -0
  163. package/lib/Sidebar/ApiCallItem.js +34 -0
  164. package/{Sidebar → lib/Sidebar}/ArrowBack.d.ts +0 -0
  165. package/lib/Sidebar/ArrowBack.js +22 -0
  166. package/{Sidebar → lib/Sidebar}/BackButton.d.ts +0 -0
  167. package/lib/Sidebar/BackButton.js +39 -0
  168. package/{Sidebar → lib/Sidebar}/Drilldown.d.ts +0 -0
  169. package/lib/Sidebar/Drilldown.js +43 -0
  170. package/{Sidebar → lib/Sidebar}/DrilldownMenu.d.ts +0 -0
  171. package/lib/Sidebar/DrilldownMenu.js +71 -0
  172. package/{Sidebar → lib/Sidebar}/DrilldownMenuItem.d.ts +0 -0
  173. package/lib/Sidebar/DrilldownMenuItem.js +42 -0
  174. package/{Sidebar → lib/Sidebar}/ExternalIcon.d.ts +0 -0
  175. package/lib/Sidebar/ExternalIcon.js +21 -0
  176. package/{Sidebar → lib/Sidebar}/Menu.d.ts +0 -0
  177. package/lib/Sidebar/Menu.js +17 -0
  178. package/{Sidebar → lib/Sidebar}/MenuContainer.d.ts +0 -0
  179. package/lib/Sidebar/MenuContainer.js +16 -0
  180. package/{Sidebar → lib/Sidebar}/MenuGroup.d.ts +0 -0
  181. package/lib/Sidebar/MenuGroup.js +88 -0
  182. package/{Sidebar → lib/Sidebar}/MenuItem.d.ts +0 -0
  183. package/{Sidebar → lib/Sidebar}/MenuItem.js +9 -14
  184. package/{Sidebar → lib/Sidebar}/MenuItemLabel.d.ts +0 -0
  185. package/lib/Sidebar/MenuItemLabel.js +46 -0
  186. package/lib/Sidebar/MenuLink.d.ts +4 -0
  187. package/lib/Sidebar/MenuLink.js +15 -0
  188. package/{Sidebar → lib/Sidebar}/MenuLinkItem.d.ts +0 -0
  189. package/lib/Sidebar/MenuLinkItem.js +15 -0
  190. package/{Sidebar → lib/Sidebar}/MobileSidebarButton.d.ts +0 -0
  191. package/lib/Sidebar/MobileSidebarButton.js +46 -0
  192. package/{Sidebar → lib/Sidebar}/Separator.d.ts +0 -0
  193. package/lib/Sidebar/Separator.js +18 -0
  194. package/{Sidebar → lib/Sidebar}/SeparatorItem.d.ts +0 -0
  195. package/lib/Sidebar/SeparatorItem.js +25 -0
  196. package/{Sidebar → lib/Sidebar}/SeparatorLine.d.ts +0 -0
  197. package/lib/Sidebar/SeparatorLine.js +15 -0
  198. package/{Sidebar → lib/Sidebar}/Sidebar.d.ts +0 -0
  199. package/lib/Sidebar/Sidebar.js +55 -0
  200. package/{Sidebar → lib/Sidebar}/SidebarLayout.d.ts +0 -0
  201. package/lib/Sidebar/SidebarLayout.js +31 -0
  202. package/{Sidebar → lib/Sidebar}/index.d.ts +0 -0
  203. package/{Sidebar → lib/Sidebar}/index.js +1 -0
  204. package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.d.ts +0 -0
  205. package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.js +1 -0
  206. package/{Sidebar → lib/Sidebar}/types/ItemState.d.ts +0 -0
  207. package/{Sidebar → lib/Sidebar}/types/ItemState.js +1 -0
  208. package/{Sidebar → lib/Sidebar}/types/MenuItemProps.d.ts +0 -0
  209. package/{Sidebar → lib/Sidebar}/types/MenuItemProps.js +1 -0
  210. package/{Sidebar → lib/Sidebar}/types/MenuStyle.d.ts +0 -0
  211. package/{Sidebar → lib/Sidebar}/types/MenuStyle.js +1 -0
  212. package/{Sidebar → lib/Sidebar}/types/NavItem.d.ts +0 -0
  213. package/{Sidebar → lib/Sidebar}/types/NavItem.js +1 -0
  214. package/{Sidebar → lib/Sidebar}/types/index.d.ts +0 -0
  215. package/{Sidebar → lib/Sidebar}/types/index.js +1 -0
  216. package/{SidebarLogo → lib/SidebarLogo}/SidebarLogo.d.ts +0 -0
  217. package/lib/SidebarLogo/SidebarLogo.js +31 -0
  218. package/{SidebarLogo → lib/SidebarLogo}/index.d.ts +0 -0
  219. package/{SidebarLogo → lib/SidebarLogo}/index.js +1 -0
  220. package/{SourceCode → lib/SourceCode}/SourceCode.d.ts +0 -0
  221. package/{SourceCode → lib/SourceCode}/SourceCode.js +14 -34
  222. package/{SourceCode → lib/SourceCode}/index.d.ts +0 -0
  223. package/{SourceCode → lib/SourceCode}/index.js +1 -0
  224. package/{TableOfContent → lib/TableOfContent}/TableOfContent.d.ts +0 -0
  225. package/lib/TableOfContent/TableOfContent.js +116 -0
  226. package/{TableOfContent → lib/TableOfContent}/index.d.ts +0 -0
  227. package/{TableOfContent → lib/TableOfContent}/index.js +1 -0
  228. package/{TableOfContent → lib/TableOfContent}/utils.d.ts +0 -0
  229. package/lib/TableOfContent/utils.js +41 -0
  230. package/{Tooltip → lib/Tooltip}/Tooltip.d.ts +0 -0
  231. package/lib/Tooltip/Tooltip.js +173 -0
  232. package/{Tooltip → lib/Tooltip}/index.d.ts +0 -0
  233. package/{Tooltip → lib/Tooltip}/index.js +1 -0
  234. package/{Typography → lib/Typography}/CompactTypography.d.ts +0 -0
  235. package/lib/Typography/CompactTypography.js +14 -0
  236. package/{Typography → lib/Typography}/Emphasis.d.ts +0 -0
  237. package/lib/Typography/Emphasis.js +13 -0
  238. package/{Typography → lib/Typography}/H1.d.ts +0 -0
  239. package/lib/Typography/H1.js +17 -0
  240. package/{Typography → lib/Typography}/H2.d.ts +0 -0
  241. package/lib/Typography/H2.js +17 -0
  242. package/{Typography → lib/Typography}/H3.d.ts +0 -0
  243. package/lib/Typography/H3.js +17 -0
  244. package/{Typography → lib/Typography}/SectionHeader.d.ts +0 -0
  245. package/lib/Typography/SectionHeader.js +19 -0
  246. package/{Typography → lib/Typography}/Typography.d.ts +0 -0
  247. package/lib/Typography/Typography.js +22 -0
  248. package/{Typography → lib/Typography}/index.d.ts +0 -0
  249. package/{Typography → lib/Typography}/index.js +1 -0
  250. package/{globalStyle.d.ts → lib/globalStyle.d.ts} +0 -0
  251. package/lib/globalStyle.js +1924 -0
  252. package/{hooks → lib/hooks}/__tests__/mocks/MockIntersectionObserver.d.ts +0 -0
  253. package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +79 -0
  254. package/{hooks → lib/hooks}/index.d.ts +0 -0
  255. package/{hooks → lib/hooks}/index.js +1 -0
  256. package/{hooks → lib/hooks}/useActiveHeading.d.ts +0 -0
  257. package/lib/hooks/useActiveHeading.js +85 -0
  258. package/{hooks → lib/hooks}/useActiveSectionId.d.ts +0 -0
  259. package/lib/hooks/useActiveSectionId.js +47 -0
  260. package/{hooks → lib/hooks}/useControl.d.ts +0 -0
  261. package/lib/hooks/useControl.js +16 -0
  262. package/{hooks → lib/hooks}/useDefaultThemeSettings.d.ts +0 -0
  263. package/{hooks → lib/hooks}/useDefaultThemeSettings.js +3 -2
  264. package/{hooks → lib/hooks}/useFullHeight.d.ts +0 -0
  265. package/{hooks → lib/hooks}/useFullHeight.js +13 -12
  266. package/{hooks → lib/hooks}/useMobileMenu.d.ts +0 -0
  267. package/lib/hooks/useMobileMenu.js +13 -0
  268. package/{hooks → lib/hooks}/useMount.d.ts +0 -0
  269. package/{hooks → lib/hooks}/useMount.js +4 -3
  270. package/{hooks → lib/hooks}/useNavbarHeight.d.ts +0 -0
  271. package/lib/hooks/useNavbarHeight.js +21 -0
  272. package/{hooks → lib/hooks}/useOutsideClick.d.ts +0 -0
  273. package/{hooks → lib/hooks}/useOutsideClick.js +5 -4
  274. package/{hooks → lib/hooks}/useUnmount.d.ts +0 -0
  275. package/{hooks → lib/hooks}/useUnmount.js +5 -4
  276. package/{icons → lib/icons}/AlertIcon/AlertIcon.d.ts +0 -0
  277. package/{icons → lib/icons}/AlertIcon/AlertIcon.js +22 -17
  278. package/{icons → lib/icons}/AlertIcon/index.d.ts +0 -0
  279. package/{icons → lib/icons}/AlertIcon/index.js +1 -0
  280. package/{icons → lib/icons}/ArrowIcon/ArrowIcon.d.ts +0 -0
  281. package/lib/icons/ArrowIcon/ArrowIcon.js +32 -0
  282. package/{icons → lib/icons}/ArrowIcon/index.d.ts +0 -0
  283. package/{icons → lib/icons}/ArrowIcon/index.js +1 -0
  284. package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.d.ts +0 -0
  285. package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.js +10 -11
  286. package/{icons → lib/icons}/ColorModeIcon/index.d.ts +0 -0
  287. package/{icons → lib/icons}/ColorModeIcon/index.js +1 -0
  288. package/{icons → lib/icons}/ShelfIcon/ShelfIcon.d.ts +0 -0
  289. package/lib/icons/ShelfIcon/ShelfIcon.js +52 -0
  290. package/{icons → lib/icons}/ShelfIcon/index.d.ts +0 -0
  291. package/{icons → lib/icons}/ShelfIcon/index.js +1 -0
  292. package/{icons → lib/icons}/index.d.ts +0 -0
  293. package/{icons → lib/icons}/index.js +1 -0
  294. package/{index.d.ts → lib/index.d.ts} +0 -0
  295. package/{index.js → lib/index.js} +1 -0
  296. package/{mocks → lib/mocks}/Link.d.ts +0 -0
  297. package/lib/mocks/Link.js +27 -0
  298. package/{mocks → lib/mocks}/constants/index.d.ts +0 -0
  299. package/{mocks → lib/mocks}/constants/index.js +1 -0
  300. package/{mocks → lib/mocks}/hooks/index.d.ts +0 -0
  301. package/{mocks → lib/mocks}/hooks/index.js +2 -1
  302. package/{mocks → lib/mocks}/hooks/usePageData.d.ts +0 -0
  303. package/{mocks → lib/mocks}/hooks/usePageData.js +1 -0
  304. package/{mocks → lib/mocks}/search.d.ts +0 -0
  305. package/{mocks → lib/mocks}/search.js +2 -1
  306. package/{mocks → lib/mocks}/types/index.d.ts +0 -0
  307. package/{mocks → lib/mocks}/types/index.js +1 -0
  308. package/lib/mocks/types.d.ts +14 -0
  309. package/{mocks → lib/mocks}/types.js +1 -0
  310. package/{mocks → lib/mocks}/usePreloadHistory.d.ts +0 -0
  311. package/{mocks → lib/mocks}/usePreloadHistory.js +3 -2
  312. package/{mocks → lib/mocks}/utils.d.ts +0 -0
  313. package/{mocks → lib/mocks}/utils.js +3 -2
  314. package/{ui → lib/ui}/Background.d.ts +0 -0
  315. package/lib/ui/Background.js +21 -0
  316. package/{ui → lib/ui}/Box.d.ts +0 -0
  317. package/lib/ui/Box.js +21 -0
  318. package/{ui → lib/ui}/Burger.d.ts +0 -0
  319. package/lib/ui/Burger.js +31 -0
  320. package/{ui → lib/ui}/Dropdown.d.ts +0 -0
  321. package/lib/ui/Dropdown.js +115 -0
  322. package/{ui → lib/ui}/Flex.d.ts +0 -0
  323. package/lib/ui/Flex.js +21 -0
  324. package/{ui → lib/ui}/Jumbotron.d.ts +0 -0
  325. package/lib/ui/Jumbotron.js +51 -0
  326. package/{ui → lib/ui}/Tiles/ThinTile.d.ts +1 -1
  327. package/lib/ui/Tiles/ThinTile.js +124 -0
  328. package/{ui → lib/ui}/Tiles/TileHeader.d.ts +0 -0
  329. package/lib/ui/Tiles/TileHeader.js +19 -0
  330. package/{ui → lib/ui}/Tiles/TileText.d.ts +0 -0
  331. package/lib/ui/Tiles/TileText.js +18 -0
  332. package/{ui → lib/ui}/Tiles/WideTile.d.ts +0 -0
  333. package/lib/ui/Tiles/WideTile.js +114 -0
  334. package/{ui → lib/ui}/Tiles/index.d.ts +0 -0
  335. package/{ui → lib/ui}/Tiles/index.js +1 -0
  336. package/{ui → lib/ui}/darkColors.d.ts +0 -0
  337. package/lib/ui/darkColors.js +70 -0
  338. package/{ui → lib/ui}/index.d.ts +0 -1
  339. package/{ui → lib/ui}/index.js +2 -5
  340. package/{utils → lib/utils}/ClipboardService.d.ts +0 -0
  341. package/{utils → lib/utils}/ClipboardService.js +11 -13
  342. package/{utils → lib/utils}/args-typecheck.d.ts +0 -0
  343. package/{utils → lib/utils}/args-typecheck.js +1 -0
  344. package/{utils → lib/utils}/class-names.d.ts +0 -0
  345. package/lib/utils/class-names.js +12 -0
  346. package/{utils → lib/utils}/color.d.ts +0 -0
  347. package/{utils → lib/utils}/color.js +7 -6
  348. package/{utils → lib/utils}/css-variables.d.ts +0 -0
  349. package/lib/utils/css-variables.js +6 -0
  350. package/{utils → lib/utils}/getNavbarElement.d.ts +0 -0
  351. package/{utils → lib/utils}/getNavbarElement.js +3 -2
  352. package/{utils → lib/utils}/highlight.d.ts +0 -0
  353. package/{utils → lib/utils}/highlight.js +10 -11
  354. package/{utils → lib/utils}/index.d.ts +0 -0
  355. package/{utils → lib/utils}/index.js +1 -0
  356. package/{utils → lib/utils}/isUrl.d.ts +0 -0
  357. package/{utils → lib/utils}/isUrl.js +6 -5
  358. package/{utils → lib/utils}/jsonToHtml.d.ts +0 -0
  359. package/lib/utils/jsonToHtml.js +180 -0
  360. package/{utils → lib/utils}/media-css.d.ts +0 -0
  361. package/lib/utils/media-css.js +13 -0
  362. package/{utils → lib/utils}/replaceHashInColor.d.ts +0 -0
  363. package/{utils → lib/utils}/replaceHashInColor.js +1 -0
  364. package/{utils → lib/utils}/theme-helpers.d.ts +0 -0
  365. package/lib/utils/theme-helpers.js +75 -0
  366. package/package.json +104 -5
  367. package/src/ApiOnboarding/AppCustomAttributes.tsx +6 -0
  368. package/src/Button/Button.tsx +2 -1
  369. package/src/Cards/Card.tsx +1 -2
  370. package/src/CopyButton/CopyButtonWrapper.tsx +1 -2
  371. package/src/EditPageButton/EditPageButton.tsx +4 -0
  372. package/src/Footer/CustomFooter.tsx +1 -2
  373. package/src/Footer/CustomFooterNavItem.tsx +1 -2
  374. package/src/Footer/Footer.tsx +1 -2
  375. package/src/Footer/FooterColumn.tsx +8 -3
  376. package/src/Footer/FooterColumns.tsx +1 -2
  377. package/src/JsonViewer/JsonViewer.tsx +2 -1
  378. package/src/LastUpdated/LastUpdated.tsx +41 -5
  379. package/src/Markdown/Admonition.tsx +3 -0
  380. package/src/Markdown/CodeSample/CodeSample.tsx +8 -0
  381. package/src/Markdown/Heading.tsx +2 -1
  382. package/src/Markdown/MarkdownLayout.tsx +2 -1
  383. package/src/Markdown/MarkdownWrapper.tsx +2 -1
  384. package/src/Markdown/Sup.tsx +2 -1
  385. package/src/Markdown/Tabs/Tabs.tsx +2 -1
  386. package/src/Navbar/MobileNavbarDropdown.tsx +1 -2
  387. package/src/Navbar/MobileNavbarItem.tsx +3 -4
  388. package/src/Navbar/MobileNavbarMenu.tsx +1 -2
  389. package/src/Navbar/Navbar.tsx +1 -2
  390. package/src/Navbar/NavbarDropdown.tsx +1 -2
  391. package/src/Navbar/NavbarItem.tsx +4 -5
  392. package/src/Navbar/NavbarMenu.tsx +1 -2
  393. package/src/NavbarLogo/NavbarLogo.tsx +1 -2
  394. package/src/PageNavigation/NextPageLink.tsx +1 -2
  395. package/src/PageNavigation/PageNavigation.tsx +4 -0
  396. package/src/PageNavigation/PreviousPageLink.tsx +1 -2
  397. package/src/Panel/PanelComponent.tsx +2 -2
  398. package/src/Panel/PanelHeader.ts +2 -1
  399. package/src/Search/Autocomplete.tsx +2 -2
  400. package/src/Search/ClearIcon.tsx +2 -1
  401. package/src/Search/Parameters.tsx +1 -2
  402. package/src/Search/SearchIcon.tsx +2 -1
  403. package/src/Search/SearchItem.tsx +1 -2
  404. package/src/Sidebar/ApiCallItem.tsx +1 -2
  405. package/src/Sidebar/Drilldown.tsx +1 -2
  406. package/src/Sidebar/DrilldownMenu.tsx +1 -2
  407. package/src/Sidebar/MenuGroup.tsx +1 -2
  408. package/src/Sidebar/MenuItem.tsx +1 -2
  409. package/src/Sidebar/MenuLink.tsx +3 -9
  410. package/src/Sidebar/MenuLinkItem.tsx +1 -2
  411. package/src/Sidebar/Separator.tsx +1 -2
  412. package/src/TableOfContent/TableOfContent.tsx +3 -4
  413. package/src/Tooltip/Tooltip.tsx +1 -0
  414. package/src/globalStyle.ts +28 -28
  415. package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
  416. package/src/hooks/useActiveSectionId.ts +1 -0
  417. package/src/hooks/useDefaultThemeSettings.ts +1 -2
  418. package/src/hooks/useFullHeight.ts +2 -1
  419. package/src/hooks/useMobileMenu.ts +2 -1
  420. package/src/hooks/useNavbarHeight.ts +1 -0
  421. package/src/hooks/useOutsideClick.ts +2 -1
  422. package/src/mocks/Link.tsx +1 -2
  423. package/src/mocks/hooks/index.ts +1 -1
  424. package/src/mocks/types.ts +8 -1
  425. package/src/settings.yaml +1 -1
  426. package/src/types/portal/src/shared/constants.d.ts +33 -33
  427. package/src/types/portal/src/shared/types/markdown.d.ts +3 -3
  428. package/src/types/portal/src/shared/types/nav.d.ts +119 -106
  429. package/src/ui/Box.tsx +3 -2
  430. package/src/ui/Burger.tsx +2 -1
  431. package/src/ui/Dropdown.tsx +1 -2
  432. package/src/ui/Flex.tsx +2 -1
  433. package/src/ui/Tiles/ThinTile.tsx +2 -1
  434. package/src/ui/Tiles/WideTile.tsx +1 -2
  435. package/src/ui/index.tsx +0 -1
  436. package/src/utils/theme-helpers.ts +1 -0
  437. package/Button/Button.js +0 -87
  438. package/Cards/Card.js +0 -25
  439. package/Cards/CardsBlock.js +0 -15
  440. package/CodeBlock/CodeBlock.js +0 -16
  441. package/CopyButton/CopyButton.js +0 -100
  442. package/EditPageButton/EditPageButton.js +0 -24
  443. package/Footer/CustomFooter.js +0 -31
  444. package/Footer/CustomFooterNavItem.js +0 -25
  445. package/Footer/Footer.js +0 -29
  446. package/Footer/FooterColumn.js +0 -31
  447. package/Footer/FooterColumns.js +0 -34
  448. package/Footer/FooterCopyright.js +0 -19
  449. package/JsonViewer/JsonViewer.js +0 -147
  450. package/LastUpdated/LastUpdated.d.ts +0 -5
  451. package/LastUpdated/LastUpdated.js +0 -27
  452. package/Layout/PageLayout.js +0 -22
  453. package/Layout/RootLayout.js +0 -24
  454. package/Markdown/Admonition.js +0 -31
  455. package/Markdown/CodeSample/CodeSample.js +0 -93
  456. package/Markdown/ContainerWrapper.js +0 -21
  457. package/Markdown/Details.js +0 -22
  458. package/Markdown/MarkdownLayout.js +0 -31
  459. package/Markdown/MarkdownWrapper.js +0 -43
  460. package/Markdown/Mermaid.js +0 -19
  461. package/Markdown/PageWrapper.js +0 -15
  462. package/Markdown/Sup.js +0 -19
  463. package/Markdown/Tabs/Tab.js +0 -24
  464. package/Markdown/Tabs/Tabs.js +0 -72
  465. package/Navbar/MobileNavbarDropdown.js +0 -21
  466. package/Navbar/MobileNavbarItem.js +0 -102
  467. package/Navbar/MobileNavbarMenu.js +0 -32
  468. package/Navbar/MobileNavbarMenuButton.js +0 -19
  469. package/Navbar/Navbar.js +0 -64
  470. package/Navbar/NavbarDropdown.js +0 -21
  471. package/Navbar/NavbarItem.js +0 -53
  472. package/Navbar/NavbarMenu.js +0 -29
  473. package/NavbarLogo/NavbarLogo.js +0 -24
  474. package/OperationBadge/OperationBadge.js +0 -16
  475. package/PageNavigation/NextPageLink.js +0 -28
  476. package/PageNavigation/PageNavigation.js +0 -27
  477. package/PageNavigation/PreviousPageLink.js +0 -28
  478. package/Panel/Panel.js +0 -23
  479. package/Panel/PanelBody.js +0 -43
  480. package/Panel/PanelHeader.js +0 -24
  481. package/Panel/PanelHeaderTitle.js +0 -15
  482. package/Profile/Profile.js +0 -59
  483. package/SamplesPanelControls/SamplesPanelControls.js +0 -27
  484. package/Search/Autocomplete.js +0 -122
  485. package/Search/ClearIcon.js +0 -32
  486. package/Search/Input.js +0 -15
  487. package/Search/Parameters.js +0 -42
  488. package/Search/Popover.js +0 -15
  489. package/Search/Search.js +0 -29
  490. package/Search/SearchIcon.js +0 -32
  491. package/Search/SearchItem.js +0 -64
  492. package/Search/SidebarSearch.js +0 -17
  493. package/Sidebar/ApiCallItem.js +0 -29
  494. package/Sidebar/ArrowBack.js +0 -21
  495. package/Sidebar/BackButton.js +0 -22
  496. package/Sidebar/Drilldown.js +0 -50
  497. package/Sidebar/DrilldownMenu.js +0 -52
  498. package/Sidebar/DrilldownMenuItem.js +0 -25
  499. package/Sidebar/ExternalIcon.js +0 -23
  500. package/Sidebar/Menu.js +0 -15
  501. package/Sidebar/MenuContainer.js +0 -15
  502. package/Sidebar/MenuGroup.js +0 -95
  503. package/Sidebar/MenuItemLabel.js +0 -19
  504. package/Sidebar/MenuLink.d.ts +0 -5
  505. package/Sidebar/MenuLink.js +0 -16
  506. package/Sidebar/MenuLinkItem.js +0 -31
  507. package/Sidebar/MobileSidebarButton.js +0 -25
  508. package/Sidebar/Separator.js +0 -23
  509. package/Sidebar/SeparatorItem.js +0 -16
  510. package/Sidebar/SeparatorLine.js +0 -15
  511. package/Sidebar/Sidebar.js +0 -24
  512. package/Sidebar/SidebarLayout.js +0 -52
  513. package/SidebarLogo/SidebarLogo.js +0 -25
  514. package/TableOfContent/TableOfContent.js +0 -81
  515. package/TableOfContent/utils.js +0 -62
  516. package/Tooltip/Tooltip.js +0 -98
  517. package/Typography/CompactTypography.js +0 -18
  518. package/Typography/Emphasis.js +0 -15
  519. package/Typography/H1.js +0 -16
  520. package/Typography/H2.js +0 -16
  521. package/Typography/H3.js +0 -16
  522. package/Typography/SectionHeader.js +0 -15
  523. package/Typography/Typography.js +0 -45
  524. package/globalStyle.js +0 -38
  525. package/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -39
  526. package/hooks/useActiveHeading.js +0 -100
  527. package/hooks/useActiveSectionId.js +0 -65
  528. package/hooks/useControl.js +0 -32
  529. package/hooks/useMobileMenu.js +0 -29
  530. package/hooks/useNavbarHeight.js +0 -36
  531. package/icons/ArrowIcon/ArrowIcon.js +0 -33
  532. package/icons/ShelfIcon/ShelfIcon.js +0 -52
  533. package/mocks/Link.js +0 -27
  534. package/mocks/types.d.ts +0 -7
  535. package/src/ui/UniversalLink.tsx +0 -96
  536. package/ui/Background.js +0 -16
  537. package/ui/Box.js +0 -16
  538. package/ui/Burger.js +0 -23
  539. package/ui/Dropdown.js +0 -89
  540. package/ui/Flex.js +0 -31
  541. package/ui/Jumbotron.js +0 -44
  542. package/ui/Tiles/ThinTile.js +0 -114
  543. package/ui/Tiles/TileHeader.js +0 -15
  544. package/ui/Tiles/TileText.js +0 -15
  545. package/ui/Tiles/WideTile.js +0 -109
  546. package/ui/UniversalLink.d.ts +0 -17
  547. package/ui/UniversalLink.js +0 -97
  548. package/ui/darkColors.js +0 -10
  549. package/utils/class-names.js +0 -15
  550. package/utils/css-variables.js +0 -8
  551. package/utils/jsonToHtml.js +0 -324
  552. package/utils/media-css.js +0 -50
  553. package/utils/theme-helpers.js +0 -121
File without changes
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TileText = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ exports.TileText = styled_components_1.default.span.attrs(() => ({
9
+ 'data-component-name': 'ui/Tiles/TileText',
10
+ })) `
11
+ display: inline-block;
12
+ font-weight: var(--font-weight-regular);
13
+ overflow: hidden;
14
+ color: ${(props) => props.color || 'var(--text-color)'};
15
+ line-height: 1.25;
16
+ font-family: var(--font-family-base);
17
+ `;
18
+ //# sourceMappingURL=TileText.js.map
File without changes
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WideTile = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const styled_components_1 = __importDefault(require("styled-components"));
32
+ const Link_1 = require("../../mocks/Link");
33
+ const TileText_1 = require("../../ui/Tiles/TileText");
34
+ const TileHeader_1 = require("../../ui/Tiles/TileHeader");
35
+ // prettier-ignore
36
+ const WideTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
37
+ display: inline-flex;
38
+ flex-direction: ${({ withIcon }) => (withIcon ? 'column' : 'row')};
39
+ border-radius: 10px;
40
+ box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
41
+ background-color: ${({ bgColor }) => bgColor || 'var(--wide-tile-background-color)'};
42
+ background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
43
+ background-repeat: no-repeat;
44
+ padding: 24px;
45
+ padding-right: ${({ disableArrow }) => (disableArrow ? '24px' : '56px')};
46
+ margin-bottom: 32px;
47
+ box-sizing: border-box;
48
+ position: relative;
49
+ text-decoration: none;
50
+ width: 100%;
51
+ transition: box-shadow 0.25s ease;
52
+ :hover {
53
+ box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.2);
54
+ }
55
+ :before {
56
+ content: ${({ disableArrow }) => (disableArrow ? 'none' : '""')};
57
+ display: inline-block;
58
+ width: 9px;
59
+ min-height: 18px;
60
+ background-size: 9px 18px;
61
+ background-repeat: no-repeat;
62
+ position: absolute;
63
+ top: 50%;
64
+ transform: translateY(-50%);
65
+ right: 30px;
66
+ }
67
+ &.external-url::after {
68
+ content: none;
69
+ }
70
+
71
+ ${({ theme }) => theme.mediaQueries.medium} {
72
+ width: calc(50% - 2em);
73
+ padding: 32px;
74
+ padding-right: ${({ disableArrow }) => (disableArrow ? '32px' : '64px')};
75
+ flex-direction: row;
76
+ max-width: ${({ maxWidth }) => maxWidth};
77
+ }
78
+ `;
79
+ const WideTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
80
+ font-size: 24px;
81
+ text-align: ${({ align }) => align || 'left'};
82
+ `;
83
+ const WideTileText = (0, styled_components_1.default)(TileText_1.TileText) `
84
+ font-size: 18px;
85
+ text-align: ${({ align }) => align || 'left'};
86
+ `;
87
+ const WideTileIcon = styled_components_1.default.div `
88
+ margin-bottom: 24px;
89
+ flex-shrink: 0;
90
+ width: 70px;
91
+ img {
92
+ display: block;
93
+ height: auto;
94
+ max-width: 100%;
95
+ }
96
+
97
+ ${({ theme }) => theme.mediaQueries.medium} {
98
+ margin-right: 24px;
99
+ margin-bottom: 0;
100
+ }
101
+ `;
102
+ class WideTile extends react_1.Component {
103
+ render() {
104
+ const { to, header, children, target, disableArrow, textAlign, headerAlign, icon, bgColor, bgImage, color, className, style, maxWidth, } = this.props;
105
+ return (react_1.default.createElement(WideTileWrapper, { to: to, target: target, disableArrow: disableArrow, withIcon: !!icon, bgColor: bgColor, bgImage: bgImage, color: color, className: className, style: style, maxWidth: maxWidth, "data-component-name": "ui/Tiles/WideTile" },
106
+ icon && (react_1.default.createElement(WideTileIcon, null,
107
+ react_1.default.createElement("img", { src: icon, alt: "" }))),
108
+ react_1.default.createElement("div", null,
109
+ header && (react_1.default.createElement(WideTileHeader, { align: textAlign, color: color, "data-cy": `Wide-${header}` }, header)),
110
+ children && (react_1.default.createElement(WideTileText, { align: headerAlign, color: color }, children)))));
111
+ }
112
+ }
113
+ exports.WideTile = WideTile;
114
+ //# sourceMappingURL=WideTile.js.map
File without changes
@@ -18,3 +18,4 @@ __exportStar(require("../../ui/Tiles/ThinTile"), exports);
18
18
  __exportStar(require("../../ui/Tiles/TileHeader"), exports);
19
19
  __exportStar(require("../../ui/Tiles/TileText"), exports);
20
20
  __exportStar(require("../../ui/Tiles/WideTile"), exports);
21
+ //# sourceMappingURL=index.js.map
File without changes
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.darkMode = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ exports.darkMode = (0, styled_components_1.css) `
6
+ /**
7
+ * @tokens Dark Colors
8
+ * @presenter Color
9
+ */
10
+ --background-color: #0d1117;
11
+ --footer-background-color: #16202e;
12
+ --navbar-background-color: #16202e;
13
+ --color-primary-500: #57a5fd;
14
+ --color-primary-300: #15396e;
15
+ --color-secondary-300: #22262e;
16
+ --colors-translucent: rgb(50 63 75 / 40%);
17
+ --inline-code-text-color: #f76663;
18
+ --color-emphasis-400: #fff;
19
+ --link-hover-text-color: #57a5fd;
20
+ --link-text-color: #57a5fd;
21
+ --code-block-background-color: #1e2633;
22
+ --admonition-attention-background-color: var(--color-primary-300);
23
+ --admonition-attention-icon-color: var(--color-emphasis-700);
24
+ --admonition-warning-background-color: #614b17;
25
+ --admonition-warning-icon-color: #4c3b12;
26
+ --admonition-success-background-color: #267e74;
27
+ --admonition-success-icon-color: #38b9a5;
28
+ --admonition-danger-background-color: #d6524c;
29
+ --admonition-danger-icon-color: #d13e37;
30
+ --admonition-info-background-color: #696969;
31
+ --admonition-info-icon-color: #505050;
32
+ --inline-code-background-color: #1e2633;
33
+ --toc-item-active-background-color: #1e2633;
34
+ --sidebar-item-active-background-color: #1e2633;
35
+ --panel-response-success-heading-background-color: #38b9a5;
36
+ --panel-response-success-border-color: #38b9a5;
37
+ --panel-response-error-heading-background-color: #d6524c;
38
+ --panel-response-error-border-color: #d6524c;
39
+ --panel-samples-heading-background-color: #1e2633;
40
+ --panel-samples-body-background-color: #263041;
41
+ --panel-samples-tabs-hover-background-color: #1e2633;
42
+ --panel-samples-tabs-hover-border-color: #3f4f68;
43
+ --panel-try-it-action-button-hover-border-color: #2b4cc4;
44
+ --panel-try-it-action-button-hover-background-color: #2b4cc4;
45
+ --panel-try-it-action-button-background-color: #0065fb;
46
+ --button-background-color: #0065fb;
47
+ --button-border-color: #0065fb;
48
+ --button-hover-background-color: #2b4cc4;
49
+ --button-hover-border-color: #2b4cc4;
50
+ --search-popover-background-color: #1b2738;
51
+ --search-highlight-text-color: #57a5fd;
52
+ --search-item-active-background-color: #1f3559;
53
+ --panel-try-it-nested-body-background-color: #263041;
54
+ --panel-try-it-tabs-active-background-color: #11151d;
55
+ --panel-try-it-tabs-hover-background-color: #141a26;
56
+ --color-emphasis-100: #0065fb;
57
+ --color-secondary-400: #696969;
58
+ --color-emphasis-700: #fff;
59
+ --color-emphasis-800: #fff;
60
+ --copy-button-tooltip-text-color: #fff;
61
+ --copy-button-tooltip-background-color: var(--tooltip-background-color);
62
+ --tooltip-text-color: #fff;
63
+ --md-table-head-background-color: var(--color-secondary-300);
64
+ --wide-tile-background-color: #000000;
65
+ --thin-tile-background-color: #000000;
66
+
67
+ background-color: var(--background-color);
68
+ color: var(--text-color);
69
+ `;
70
+ //# sourceMappingURL=darkColors.js.map
@@ -5,6 +5,5 @@ export * from '../ui/Box';
5
5
  export * from '../ui/Dropdown';
6
6
  export * from '../ui/Flex';
7
7
  export * from '../ui/Jumbotron';
8
- export * from '../ui/UniversalLink';
9
8
  export declare const LandingLayout: ({ children }: React.PropsWithChildren<object>) => React.ReactNode;
10
9
  export declare const EmptyLayout: ({ children }: React.PropsWithChildren<object>) => React.ReactNode;
@@ -21,10 +21,7 @@ __exportStar(require("../ui/Box"), exports);
21
21
  __exportStar(require("../ui/Dropdown"), exports);
22
22
  __exportStar(require("../ui/Flex"), exports);
23
23
  __exportStar(require("../ui/Jumbotron"), exports);
24
- __exportStar(require("../ui/UniversalLink"), exports);
25
- var LandingLayout = function (_a) {
26
- var children = _a.children;
27
- return children;
28
- };
24
+ const LandingLayout = ({ children }) => children;
29
25
  exports.LandingLayout = LandingLayout;
30
26
  exports.EmptyLayout = exports.LandingLayout;
27
+ //# sourceMappingURL=index.js.map
File without changes
@@ -1,21 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClipboardService = void 0;
4
- var ClipboardService = /** @class */ (function () {
5
- function ClipboardService() {
6
- }
7
- ClipboardService.isSupported = function () {
4
+ class ClipboardService {
5
+ static isSupported() {
8
6
  return typeof navigator !== 'undefined' && !!navigator.clipboard;
9
- };
10
- ClipboardService.copyCustom = function (text) {
7
+ }
8
+ static copyCustom(text) {
11
9
  return navigator.clipboard.writeText(text);
12
- };
13
- ClipboardService.selectElement = function (element) {
10
+ }
11
+ static selectElement(element) {
14
12
  if (!element) {
15
13
  return;
16
14
  }
17
- var range;
18
- var selection;
15
+ let range;
16
+ let selection;
19
17
  if (document.body.createTextRange) {
20
18
  range = document.body.createTextRange();
21
19
  range.moveToElementText(element);
@@ -28,7 +26,7 @@ var ClipboardService = /** @class */ (function () {
28
26
  selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
29
27
  selection === null || selection === void 0 ? void 0 : selection.addRange(range);
30
28
  }
31
- };
32
- return ClipboardService;
33
- }());
29
+ }
30
+ }
34
31
  exports.ClipboardService = ClipboardService;
32
+ //# sourceMappingURL=ClipboardService.js.map
File without changes
@@ -11,3 +11,4 @@ function isPrimitive(arg) {
11
11
  return ['string', 'boolean', 'number'].includes(typeof arg);
12
12
  }
13
13
  exports.isPrimitive = isPrimitive;
14
+ //# sourceMappingURL=args-typecheck.js.map
File without changes
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.concatClassNames = void 0;
4
+ const SPACE_DELIMITER = ' ';
5
+ function concatClassNames(...args) {
6
+ return args
7
+ .map((className) => (className ? className.trim() : className))
8
+ .filter(Boolean)
9
+ .join(SPACE_DELIMITER);
10
+ }
11
+ exports.concatClassNames = concatClassNames;
12
+ //# sourceMappingURL=class-names.js.map
File without changes
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.stringToHslColor = void 0;
4
4
  function stringToHslColor(value) {
5
- var s = 30;
6
- var l = 80;
7
- var hash = 0;
8
- for (var i = 0; i < value.length; i++) {
5
+ const s = 30;
6
+ const l = 80;
7
+ let hash = 0;
8
+ for (let i = 0; i < value.length; i++) {
9
9
  hash = value.charCodeAt(i) + ((hash << 5) - hash);
10
10
  }
11
- var h = hash % 360;
12
- return "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)");
11
+ const h = hash % 360;
12
+ return `hsl(${h}, ${s}%, ${l}%)`;
13
13
  }
14
14
  exports.stringToHslColor = stringToHslColor;
15
+ //# sourceMappingURL=color.js.map
File without changes
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCssColorVariable = void 0;
4
+ const getCssColorVariable = (color, defaultValue = 'inherit') => (color === null || color === void 0 ? void 0 : color.startsWith('--')) ? `var(${color})` : color || defaultValue;
5
+ exports.getCssColorVariable = getCssColorVariable;
6
+ //# sourceMappingURL=css-variables.js.map
File without changes
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getNavbarElement = void 0;
4
4
  function getNavbarElement() {
5
- var navElements = (typeof document !== 'undefined' && document.querySelectorAll('nav')) || [];
5
+ const navElements = (typeof document !== 'undefined' && document.querySelectorAll('nav')) || [];
6
6
  // there can be multiple nav elements (e.g. mobile and non-mobile), let's use the first one with non-zero height
7
- for (var i = 0; i < navElements.length; i++) {
7
+ for (let i = 0; i < navElements.length; i++) {
8
8
  if (navElements[i].getBoundingClientRect().height > 1) {
9
9
  return navElements[i];
10
10
  }
@@ -12,3 +12,4 @@ function getNavbarElement() {
12
12
  return navElements[0] || null;
13
13
  }
14
14
  exports.getNavbarElement = getNavbarElement;
15
+ //# sourceMappingURL=getNavbarElement.js.map
File without changes
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.addLineNumbers = exports.highlight = exports.mapLang = void 0;
27
- var Prism = __importStar(require("prismjs"));
27
+ const Prism = __importStar(require("prismjs"));
28
28
  require("prismjs/components/prism-bash.js");
29
29
  require("prismjs/components/prism-c.js");
30
30
  require("prismjs/components/prism-clike.js");
@@ -46,8 +46,8 @@ require("prismjs/components/prism-scala.js");
46
46
  require("prismjs/components/prism-sql.js");
47
47
  require("prismjs/components/prism-swift.js");
48
48
  require("prismjs/components/prism-graphql.js");
49
- var DEFAULT_LANG = 'clike';
50
- var NEW_LINE_EXP = /\n(?!$)/g;
49
+ const DEFAULT_LANG = 'clike';
50
+ const NEW_LINE_EXP = /\n(?!$)/g;
51
51
  Prism.languages.insertBefore('javascript', 'string', {
52
52
  'property string': {
53
53
  pattern: /([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,
@@ -82,23 +82,22 @@ exports.mapLang = mapLang;
82
82
  * @param lang highlight language
83
83
  * @return highlighted source code as **html string**
84
84
  */
85
- function highlight(source, lang) {
86
- if (lang === void 0) { lang = DEFAULT_LANG; }
85
+ function highlight(source, lang = DEFAULT_LANG) {
87
86
  lang = lang.toLowerCase();
88
- var grammar = Prism.languages[lang];
87
+ let grammar = Prism.languages[lang];
89
88
  if (!grammar) {
90
89
  grammar = Prism.languages[mapLang(lang)];
91
90
  }
92
91
  return Prism.highlight(source.toString(), grammar, lang);
93
92
  }
94
93
  exports.highlight = highlight;
95
- function addLineNumbers(highlightedCode, start) {
96
- if (start === void 0) { start = 1; }
97
- var codeLines = highlightedCode.split(NEW_LINE_EXP);
94
+ function addLineNumbers(highlightedCode, start = 1) {
95
+ const codeLines = highlightedCode.split(NEW_LINE_EXP);
98
96
  return codeLines
99
- .map(function (line, i) {
100
- return "<span class=\"code-line\" data-line-number=".concat(start + i, ">").concat(line, "</span>");
97
+ .map((line, i) => {
98
+ return `<span class="code-line" data-line-number=${start + i}>${line}</span>`;
101
99
  })
102
100
  .join('\n');
103
101
  }
104
102
  exports.addLineNumbers = addLineNumbers;
103
+ //# sourceMappingURL=highlight.js.map
File without changes
@@ -23,3 +23,4 @@ __exportStar(require("./theme-helpers"), exports);
23
23
  __exportStar(require("./class-names"), exports);
24
24
  __exportStar(require("./args-typecheck"), exports);
25
25
  __exportStar(require("./color"), exports);
26
+ //# sourceMappingURL=index.js.map
File without changes
@@ -6,9 +6,9 @@
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.isUrl = void 0;
9
- var protocolAndDomainRE = /^(?:\w+:)?\/\/(\S+)$/;
10
- var localhostDomainRE = /^localhost[:?\d]*(?:[^:?\d]\S*)?$/;
11
- var nonLocalhostDomainRE = /^[^\s.]+\.\S{2,}$/;
9
+ const protocolAndDomainRE = /^(?:\w+:)?\/\/(\S+)$/;
10
+ const localhostDomainRE = /^localhost[:?\d]*(?:[^:?\d]\S*)?$/;
11
+ const nonLocalhostDomainRE = /^[^\s.]+\.\S{2,}$/;
12
12
  /**
13
13
  * Loosely validate a URL `string`.
14
14
  *
@@ -19,11 +19,11 @@ function isUrl(input) {
19
19
  if (typeof input !== 'string') {
20
20
  return false;
21
21
  }
22
- var match = input.match(protocolAndDomainRE);
22
+ const match = input.match(protocolAndDomainRE);
23
23
  if (!match) {
24
24
  return false;
25
25
  }
26
- var everythingAfterProtocol = match[1];
26
+ const everythingAfterProtocol = match[1];
27
27
  if (!everythingAfterProtocol) {
28
28
  return false;
29
29
  }
@@ -34,3 +34,4 @@ function isUrl(input) {
34
34
  return false;
35
35
  }
36
36
  exports.isUrl = isUrl;
37
+ //# sourceMappingURL=isUrl.js.map
File without changes
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLines = exports.jsonToHTML = void 0;
4
+ // Moved from reference-docs
5
+ let level = 0;
6
+ let line = 1;
7
+ const ellipsis = '<span class="ellipsis"></span>';
8
+ const colon = '<span class="colon">: </span>';
9
+ function jsonToHTML(json, maxExpandLevel, startLine = 1) {
10
+ level = 0;
11
+ line = startLine;
12
+ let output = '';
13
+ output += '<div data-cy="json-sample" class="redoc-json">';
14
+ output += '<code>';
15
+ output += getLines(json, maxExpandLevel);
16
+ output += '</code>';
17
+ output += '</div>';
18
+ return output;
19
+ }
20
+ exports.jsonToHTML = jsonToHTML;
21
+ function htmlEncode(t) {
22
+ return t !== undefined
23
+ ? t
24
+ .toString()
25
+ .replace(/&/g, '&amp;')
26
+ .replace(/"/g, '&quot;')
27
+ .replace(/</g, '&lt;')
28
+ .replace(/>/g, '&gt;')
29
+ : '';
30
+ }
31
+ function stringifyStringLiteral(str) {
32
+ return JSON.stringify(str).slice(1, -1);
33
+ }
34
+ function decorateWithSpan(value, className) {
35
+ return '<span class="' + className + '">' + htmlEncode(value) + '</span>';
36
+ }
37
+ function punctuation(val) {
38
+ return '<span class="token punctuation">' + val + '</span>';
39
+ }
40
+ function collapser(maxExpandLevel) {
41
+ const collapsed = level > maxExpandLevel ? 'expand' : 'collapse';
42
+ return `<button class="collapser" aria-label="${collapsed}"></button>`;
43
+ }
44
+ function getLines(json, maxExpandLevel) {
45
+ const collapsibleLines = [];
46
+ const lines = valueToHTML(json, maxExpandLevel, 'root');
47
+ let nextLine = lines.next();
48
+ while (!nextLine.done) {
49
+ collapsibleLines.push(nextLine.value);
50
+ nextLine = lines.next();
51
+ }
52
+ collapsibleLines.push(nextLine.value);
53
+ return collapsibleLines.join('\n');
54
+ }
55
+ exports.getLines = getLines;
56
+ function* valueToHTML(value, maxExpandLevel, context) {
57
+ const valueType = typeof value;
58
+ if (value === undefined || value === null) {
59
+ return decorateWithSpan('null', 'token keyword');
60
+ }
61
+ else if (value && value.constructor === Array) {
62
+ const length = typeof value.length === 'number' ? value.length : 0;
63
+ if (!length) {
64
+ return punctuation('[ ]');
65
+ }
66
+ level++;
67
+ yield context === 'root'
68
+ ? `<span data-line="${line++}">${punctuation('[')}</span>`
69
+ : punctuation('[');
70
+ for (const line of arrayToHTML(value, length, maxExpandLevel)) {
71
+ yield line;
72
+ }
73
+ level--;
74
+ return `<span data-line="${line++}">${punctuation(']')}</span>`;
75
+ }
76
+ else if (value && value.constructor === Date) {
77
+ return decorateWithSpan('"' + value.toISOString() + '"', 'token string');
78
+ }
79
+ else if (valueType === 'object') {
80
+ const keys = Object.keys(value);
81
+ if (!keys.length) {
82
+ return punctuation('{ }');
83
+ }
84
+ level++;
85
+ yield context === 'root'
86
+ ? `<span data-line="${line++}">${punctuation('{')}</span>`
87
+ : punctuation('{');
88
+ for (const line of objectToHTML(value, keys, maxExpandLevel)) {
89
+ yield line;
90
+ }
91
+ level--;
92
+ return `<span data-line="${line++}">${punctuation('}')}</span>`;
93
+ }
94
+ else if (valueType === 'number') {
95
+ return decorateWithSpan(value, 'token number');
96
+ }
97
+ else if (valueType === 'string') {
98
+ if (/^(http|https):\/\/[^\s]+$/.test(value)) {
99
+ return (decorateWithSpan('"', 'token string') +
100
+ `<a href="${encodeURI(value)}">` +
101
+ htmlEncode(stringifyStringLiteral(value)) +
102
+ '</a>' +
103
+ decorateWithSpan('"', 'token string'));
104
+ }
105
+ else {
106
+ return decorateWithSpan('"' + stringifyStringLiteral(value) + '"', 'token string');
107
+ }
108
+ }
109
+ else if (valueType === 'boolean') {
110
+ return decorateWithSpan(value, 'token boolean');
111
+ }
112
+ }
113
+ function getLineTemplate({ isFirstKey, isLastKey, nextLine, context, lineTemplate, maxExpandLevel, }) {
114
+ let lineValue = isFirstKey ? `${ellipsis}<span class="${context} collapsible">` : '';
115
+ // Create hoverable
116
+ lineValue += `<span data-line="${line++}" class="${level > maxExpandLevel ? 'hoverable collapsed' : 'hoverable'}">`;
117
+ // Add collapser button if item has nested lines
118
+ lineValue += (!nextLine.done && collapser(maxExpandLevel)) || '';
119
+ lineValue += lineTemplate;
120
+ lineValue += nextLine.value;
121
+ // Add punctuation in case we dont have more nested lines and it is not last item
122
+ lineValue += nextLine.done && !isLastKey ? punctuation(',') : '';
123
+ // Close hoverable if we dont have nested lines
124
+ lineValue += nextLine.done ? '</span>' : '';
125
+ // Close collapsible if value is single line and we are on last item
126
+ lineValue += nextLine.done && isLastKey ? '</span>' : '';
127
+ return lineValue;
128
+ }
129
+ function* arrayToHTML(array, arrayLength, maxExpandLevel) {
130
+ for (let i = 0; i < arrayLength; i++) {
131
+ const lines = valueToHTML(array[i], maxExpandLevel, 'array');
132
+ const isFirstKey = i === 0;
133
+ const isLastKey = i === arrayLength - 1;
134
+ let nextLine = lines.next();
135
+ yield getLineTemplate({
136
+ context: 'array',
137
+ isFirstKey,
138
+ isLastKey,
139
+ nextLine,
140
+ lineTemplate: '',
141
+ maxExpandLevel,
142
+ });
143
+ nextLine = lines.next();
144
+ while (!nextLine.done) {
145
+ yield nextLine.value;
146
+ nextLine = lines.next();
147
+ }
148
+ if (nextLine.value) {
149
+ // Close hoverable and collapsible (if last array item)
150
+ yield `${nextLine.value}${i < arrayLength - 1 ? punctuation(',') : '</span>'}</span>`;
151
+ }
152
+ }
153
+ }
154
+ function* objectToHTML(object, keys, maxExpandLevel) {
155
+ for (let i = 0; i < keys.length; i++) {
156
+ const key = keys[i];
157
+ const lines = valueToHTML(object[key], maxExpandLevel, 'object');
158
+ const isFirstKey = i === 0;
159
+ const isLastKey = i === keys.length - 1;
160
+ let nextLine = lines.next();
161
+ yield getLineTemplate({
162
+ context: 'obj',
163
+ isFirstKey,
164
+ isLastKey,
165
+ nextLine,
166
+ lineTemplate: `<span class="property token string">"${htmlEncode(key)}"</span>${colon}`,
167
+ maxExpandLevel,
168
+ });
169
+ nextLine = lines.next();
170
+ while (!nextLine.done) {
171
+ yield nextLine.value;
172
+ nextLine = lines.next();
173
+ }
174
+ if (nextLine.value) {
175
+ // Close hoverable and collapsible (if last field)
176
+ yield `${nextLine.value}${isLastKey ? '</span>' : punctuation(',')}</span>`;
177
+ }
178
+ }
179
+ }
180
+ //# sourceMappingURL=jsonToHtml.js.map
File without changes
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateMediaQueries = exports.breakpoints = void 0;
4
+ exports.breakpoints = { small: '50rem', medium: '85rem', large: '105rem' };
5
+ function generateMediaQueries(breakpoints) {
6
+ const result = { print: '@media print' };
7
+ for (const [key, value] of Object.entries(breakpoints)) {
8
+ result[key] = `@media screen and (min-width: ${value})`;
9
+ }
10
+ return result;
11
+ }
12
+ exports.generateMediaQueries = generateMediaQueries;
13
+ //# sourceMappingURL=media-css.js.map