@redocly/theme 0.4.15 → 0.4.16

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 (544) hide show
  1. package/{REAMDE.md → README.md} +0 -0
  2. package/{Button → lib/Button}/Button.d.ts +0 -0
  3. package/lib/Button/Button.js +156 -0
  4. package/{Button → lib/Button}/index.d.ts +0 -0
  5. package/{Button → lib/Button}/index.js +1 -0
  6. package/{Cards → lib/Cards}/Card.d.ts +0 -0
  7. package/lib/Cards/Card.js +36 -0
  8. package/{Cards → lib/Cards}/CardsBlock.d.ts +0 -0
  9. package/lib/Cards/CardsBlock.js +15 -0
  10. package/{CodeBlock → lib/CodeBlock}/CodeBlock.d.ts +0 -0
  11. package/lib/CodeBlock/CodeBlock.js +103 -0
  12. package/{CodeBlock → lib/CodeBlock}/index.d.ts +0 -0
  13. package/{CodeBlock → lib/CodeBlock}/index.js +1 -0
  14. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.d.ts +0 -0
  15. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/ColorModeSwitcher.js +22 -36
  16. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.d.ts +0 -0
  17. package/{ColorModeSwitcher → lib/ColorModeSwitcher}/index.js +1 -0
  18. package/{CopyButton → lib/CopyButton}/CopyButton.d.ts +0 -0
  19. package/lib/CopyButton/CopyButton.js +50 -0
  20. package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.d.ts +0 -0
  21. package/{CopyButton → lib/CopyButton}/CopyButtonWrapper.js +14 -15
  22. package/{CopyButton → lib/CopyButton}/index.d.ts +0 -0
  23. package/{CopyButton → lib/CopyButton}/index.js +1 -0
  24. package/{EditPageButton → lib/EditPageButton}/EditPageButton.d.ts +0 -0
  25. package/lib/EditPageButton/EditPageButton.js +32 -0
  26. package/{EditPageButton → lib/EditPageButton}/index.d.ts +0 -0
  27. package/{EditPageButton → lib/EditPageButton}/index.js +1 -0
  28. package/{Footer → lib/Footer}/CustomFooter.d.ts +0 -0
  29. package/lib/Footer/CustomFooter.js +35 -0
  30. package/{Footer → lib/Footer}/CustomFooterNavItem.d.ts +0 -0
  31. package/lib/Footer/CustomFooterNavItem.js +33 -0
  32. package/{Footer → lib/Footer}/Footer.d.ts +0 -0
  33. package/lib/Footer/Footer.js +35 -0
  34. package/{Footer → lib/Footer}/FooterColumn.d.ts +0 -0
  35. package/lib/Footer/FooterColumn.js +54 -0
  36. package/{Footer → lib/Footer}/FooterColumns.d.ts +0 -0
  37. package/lib/Footer/FooterColumns.js +44 -0
  38. package/{Footer → lib/Footer}/FooterCopyright.d.ts +0 -0
  39. package/lib/Footer/FooterCopyright.js +26 -0
  40. package/{Footer → lib/Footer}/index.d.ts +0 -0
  41. package/{Footer → lib/Footer}/index.js +1 -0
  42. package/{JsonViewer → lib/JsonViewer}/JsonViewer.d.ts +0 -0
  43. package/lib/JsonViewer/JsonViewer.js +240 -0
  44. package/{JsonViewer → lib/JsonViewer}/index.d.ts +0 -0
  45. package/{JsonViewer → lib/JsonViewer}/index.js +1 -0
  46. package/lib/LastUpdated/LastUpdated.d.ts +14 -0
  47. package/lib/LastUpdated/LastUpdated.js +52 -0
  48. package/{Layout → lib/Layout}/PageLayout.d.ts +0 -0
  49. package/lib/Layout/PageLayout.js +29 -0
  50. package/{Layout → lib/Layout}/RootLayout.d.ts +0 -0
  51. package/lib/Layout/RootLayout.js +19 -0
  52. package/{Layout → lib/Layout}/index.d.ts +0 -0
  53. package/{Layout → lib/Layout}/index.js +1 -0
  54. package/{Markdown → lib/Markdown}/Admonition.d.ts +0 -0
  55. package/lib/Markdown/Admonition.js +53 -0
  56. package/{Markdown → lib/Markdown}/CodeSample/CodeSample.d.ts +0 -0
  57. package/lib/Markdown/CodeSample/CodeSample.js +211 -0
  58. package/{Markdown → lib/Markdown}/CodeSample/index.d.ts +0 -0
  59. package/{Markdown → lib/Markdown}/CodeSample/index.js +1 -0
  60. package/{Markdown → lib/Markdown}/ContainerWrapper.d.ts +0 -0
  61. package/lib/Markdown/ContainerWrapper.js +26 -0
  62. package/{Markdown → lib/Markdown}/Details.d.ts +0 -0
  63. package/lib/Markdown/Details.js +17 -0
  64. package/{Markdown → lib/Markdown}/Heading.d.ts +0 -0
  65. package/{Markdown → lib/Markdown}/Heading.js +9 -9
  66. package/{Markdown → lib/Markdown}/MarkdownLayout.d.ts +1 -0
  67. package/lib/Markdown/MarkdownLayout.js +30 -0
  68. package/{Markdown → lib/Markdown}/MarkdownWrapper.d.ts +0 -0
  69. package/lib/Markdown/MarkdownWrapper.js +391 -0
  70. package/{Markdown → lib/Markdown}/Mermaid.d.ts +0 -0
  71. package/lib/Markdown/Mermaid.js +19 -0
  72. package/{Markdown → lib/Markdown}/PageWrapper.d.ts +0 -0
  73. package/lib/Markdown/PageWrapper.js +15 -0
  74. package/{Markdown → lib/Markdown}/Sup.d.ts +0 -0
  75. package/lib/Markdown/Sup.js +14 -0
  76. package/{Markdown → lib/Markdown}/Tabs/Tab.d.ts +0 -0
  77. package/lib/Markdown/Tabs/Tab.js +28 -0
  78. package/{Markdown → lib/Markdown}/Tabs/Tabs.d.ts +0 -0
  79. package/lib/Markdown/Tabs/Tabs.js +62 -0
  80. package/{Markdown → lib/Markdown}/Tabs/index.d.ts +0 -0
  81. package/{Markdown → lib/Markdown}/Tabs/index.js +1 -0
  82. package/{Markdown → lib/Markdown}/index.d.ts +0 -0
  83. package/{Markdown → lib/Markdown}/index.js +1 -0
  84. package/{Navbar → lib/Navbar}/MobileNavbarDropdown.d.ts +0 -0
  85. package/lib/Navbar/MobileNavbarDropdown.js +30 -0
  86. package/{Navbar → lib/Navbar}/MobileNavbarItem.d.ts +1 -1
  87. package/lib/Navbar/MobileNavbarItem.js +106 -0
  88. package/{Navbar → lib/Navbar}/MobileNavbarMenu.d.ts +0 -0
  89. package/lib/Navbar/MobileNavbarMenu.js +92 -0
  90. package/{Navbar → lib/Navbar}/MobileNavbarMenuButton.d.ts +0 -0
  91. package/lib/Navbar/MobileNavbarMenuButton.js +18 -0
  92. package/{Navbar → lib/Navbar}/Navbar.d.ts +0 -0
  93. package/lib/Navbar/Navbar.js +75 -0
  94. package/{Navbar → lib/Navbar}/NavbarDropdown.d.ts +0 -0
  95. package/lib/Navbar/NavbarDropdown.js +38 -0
  96. package/{Navbar → lib/Navbar}/NavbarItem.d.ts +1 -1
  97. package/lib/Navbar/NavbarItem.js +72 -0
  98. package/{Navbar → lib/Navbar}/NavbarMenu.d.ts +0 -0
  99. package/lib/Navbar/NavbarMenu.js +34 -0
  100. package/{Navbar → lib/Navbar}/index.d.ts +0 -0
  101. package/{Navbar → lib/Navbar}/index.js +1 -0
  102. package/{NavbarLogo → lib/NavbarLogo}/NavbarLogo.d.ts +0 -0
  103. package/lib/NavbarLogo/NavbarLogo.js +24 -0
  104. package/{NavbarLogo → lib/NavbarLogo}/index.d.ts +0 -0
  105. package/{NavbarLogo → lib/NavbarLogo}/index.js +1 -0
  106. package/{OperationBadge → lib/OperationBadge}/OperationBadge.d.ts +0 -0
  107. package/lib/OperationBadge/OperationBadge.js +68 -0
  108. package/{OperationBadge → lib/OperationBadge}/index.d.ts +0 -0
  109. package/{OperationBadge → lib/OperationBadge}/index.js +1 -0
  110. package/{PageNavigation → lib/PageNavigation}/NextPageLink.d.ts +0 -0
  111. package/lib/PageNavigation/NextPageLink.js +26 -0
  112. package/{PageNavigation → lib/PageNavigation}/PageNavigation.d.ts +0 -0
  113. package/lib/PageNavigation/PageNavigation.js +27 -0
  114. package/{PageNavigation → lib/PageNavigation}/PreviousPageLink.d.ts +0 -0
  115. package/lib/PageNavigation/PreviousPageLink.js +26 -0
  116. package/{PageNavigation → lib/PageNavigation}/index.d.ts +0 -0
  117. package/{PageNavigation → lib/PageNavigation}/index.js +1 -0
  118. package/{Panel → lib/Panel}/Panel.d.ts +0 -0
  119. package/lib/Panel/Panel.js +39 -0
  120. package/{Panel → lib/Panel}/PanelBody.d.ts +0 -0
  121. package/lib/Panel/PanelBody.js +59 -0
  122. package/{Panel → lib/Panel}/PanelComponent.d.ts +1 -1
  123. package/{Panel → lib/Panel}/PanelComponent.js +21 -36
  124. package/{Panel → lib/Panel}/PanelHeader.d.ts +0 -0
  125. package/lib/Panel/PanelHeader.js +33 -0
  126. package/{Panel → lib/Panel}/PanelHeaderTitle.d.ts +0 -0
  127. package/lib/Panel/PanelHeaderTitle.js +21 -0
  128. package/{Panel → lib/Panel}/index.d.ts +0 -0
  129. package/{Panel → lib/Panel}/index.js +1 -0
  130. package/{Profile → lib/Profile}/Profile.d.ts +0 -0
  131. package/lib/Profile/Profile.js +87 -0
  132. package/{Profile → lib/Profile}/index.d.ts +0 -0
  133. package/{Profile → lib/Profile}/index.js +1 -0
  134. package/{SamplesPanelControls → lib/SamplesPanelControls}/SamplesPanelControls.d.ts +0 -0
  135. package/lib/SamplesPanelControls/SamplesPanelControls.js +74 -0
  136. package/{SamplesPanelControls → lib/SamplesPanelControls}/index.d.ts +0 -0
  137. package/{SamplesPanelControls → lib/SamplesPanelControls}/index.js +1 -0
  138. package/{Search → lib/Search}/Autocomplete.d.ts +0 -0
  139. package/lib/Search/Autocomplete.js +105 -0
  140. package/{Search → lib/Search}/ClearIcon.d.ts +0 -0
  141. package/lib/Search/ClearIcon.js +26 -0
  142. package/{Search → lib/Search}/Input.d.ts +0 -0
  143. package/lib/Search/Input.js +30 -0
  144. package/{Search → lib/Search}/Parameters.d.ts +0 -0
  145. package/lib/Search/Parameters.js +55 -0
  146. package/{Search → lib/Search}/Popover.d.ts +0 -0
  147. package/lib/Search/Popover.js +26 -0
  148. package/{Search → lib/Search}/Search.d.ts +0 -0
  149. package/lib/Search/Search.js +27 -0
  150. package/{Search → lib/Search}/SearchIcon.d.ts +0 -0
  151. package/lib/Search/SearchIcon.js +27 -0
  152. package/{Search → lib/Search}/SearchItem.d.ts +0 -0
  153. package/lib/Search/SearchItem.js +98 -0
  154. package/{Search → lib/Search}/SidebarSearch.d.ts +0 -0
  155. package/lib/Search/SidebarSearch.js +20 -0
  156. package/{Search → lib/Search}/index.d.ts +0 -0
  157. package/{Search → lib/Search}/index.js +1 -0
  158. package/{Search → lib/Search}/utils.d.ts +0 -0
  159. package/{Search → lib/Search}/utils.js +8 -26
  160. package/{Sidebar → lib/Sidebar}/ApiCallItem.d.ts +0 -0
  161. package/lib/Sidebar/ApiCallItem.js +34 -0
  162. package/{Sidebar → lib/Sidebar}/ArrowBack.d.ts +0 -0
  163. package/lib/Sidebar/ArrowBack.js +22 -0
  164. package/{Sidebar → lib/Sidebar}/BackButton.d.ts +0 -0
  165. package/lib/Sidebar/BackButton.js +39 -0
  166. package/{Sidebar → lib/Sidebar}/Drilldown.d.ts +0 -0
  167. package/lib/Sidebar/Drilldown.js +43 -0
  168. package/{Sidebar → lib/Sidebar}/DrilldownMenu.d.ts +0 -0
  169. package/lib/Sidebar/DrilldownMenu.js +71 -0
  170. package/{Sidebar → lib/Sidebar}/DrilldownMenuItem.d.ts +0 -0
  171. package/lib/Sidebar/DrilldownMenuItem.js +42 -0
  172. package/{Sidebar → lib/Sidebar}/ExternalIcon.d.ts +0 -0
  173. package/lib/Sidebar/ExternalIcon.js +21 -0
  174. package/{Sidebar → lib/Sidebar}/Menu.d.ts +0 -0
  175. package/lib/Sidebar/Menu.js +17 -0
  176. package/{Sidebar → lib/Sidebar}/MenuContainer.d.ts +0 -0
  177. package/lib/Sidebar/MenuContainer.js +16 -0
  178. package/{Sidebar → lib/Sidebar}/MenuGroup.d.ts +0 -0
  179. package/lib/Sidebar/MenuGroup.js +88 -0
  180. package/{Sidebar → lib/Sidebar}/MenuItem.d.ts +0 -0
  181. package/{Sidebar → lib/Sidebar}/MenuItem.js +9 -14
  182. package/{Sidebar → lib/Sidebar}/MenuItemLabel.d.ts +0 -0
  183. package/lib/Sidebar/MenuItemLabel.js +46 -0
  184. package/{Sidebar → lib/Sidebar}/MenuLink.d.ts +0 -0
  185. package/lib/Sidebar/MenuLink.js +19 -0
  186. package/{Sidebar → lib/Sidebar}/MenuLinkItem.d.ts +0 -0
  187. package/lib/Sidebar/MenuLinkItem.js +15 -0
  188. package/{Sidebar → lib/Sidebar}/MobileSidebarButton.d.ts +0 -0
  189. package/lib/Sidebar/MobileSidebarButton.js +46 -0
  190. package/{Sidebar → lib/Sidebar}/Separator.d.ts +0 -0
  191. package/lib/Sidebar/Separator.js +18 -0
  192. package/{Sidebar → lib/Sidebar}/SeparatorItem.d.ts +0 -0
  193. package/lib/Sidebar/SeparatorItem.js +25 -0
  194. package/{Sidebar → lib/Sidebar}/SeparatorLine.d.ts +0 -0
  195. package/lib/Sidebar/SeparatorLine.js +15 -0
  196. package/{Sidebar → lib/Sidebar}/Sidebar.d.ts +0 -0
  197. package/lib/Sidebar/Sidebar.js +55 -0
  198. package/{Sidebar → lib/Sidebar}/SidebarLayout.d.ts +0 -0
  199. package/lib/Sidebar/SidebarLayout.js +31 -0
  200. package/{Sidebar → lib/Sidebar}/index.d.ts +0 -0
  201. package/{Sidebar → lib/Sidebar}/index.js +1 -0
  202. package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.d.ts +0 -0
  203. package/{Sidebar → lib/Sidebar}/types/DrilldownMenuProps.js +1 -0
  204. package/{Sidebar → lib/Sidebar}/types/ItemState.d.ts +0 -0
  205. package/{Sidebar → lib/Sidebar}/types/ItemState.js +1 -0
  206. package/{Sidebar → lib/Sidebar}/types/MenuItemProps.d.ts +0 -0
  207. package/{Sidebar → lib/Sidebar}/types/MenuItemProps.js +1 -0
  208. package/{Sidebar → lib/Sidebar}/types/MenuStyle.d.ts +0 -0
  209. package/{Sidebar → lib/Sidebar}/types/MenuStyle.js +1 -0
  210. package/{Sidebar → lib/Sidebar}/types/NavItem.d.ts +0 -0
  211. package/{Sidebar → lib/Sidebar}/types/NavItem.js +1 -0
  212. package/{Sidebar → lib/Sidebar}/types/index.d.ts +0 -0
  213. package/{Sidebar → lib/Sidebar}/types/index.js +1 -0
  214. package/{SidebarLogo → lib/SidebarLogo}/SidebarLogo.d.ts +0 -0
  215. package/lib/SidebarLogo/SidebarLogo.js +31 -0
  216. package/{SidebarLogo → lib/SidebarLogo}/index.d.ts +0 -0
  217. package/{SidebarLogo → lib/SidebarLogo}/index.js +1 -0
  218. package/{SourceCode → lib/SourceCode}/SourceCode.d.ts +0 -0
  219. package/{SourceCode → lib/SourceCode}/SourceCode.js +14 -34
  220. package/{SourceCode → lib/SourceCode}/index.d.ts +0 -0
  221. package/{SourceCode → lib/SourceCode}/index.js +1 -0
  222. package/{TableOfContent → lib/TableOfContent}/TableOfContent.d.ts +0 -0
  223. package/lib/TableOfContent/TableOfContent.js +116 -0
  224. package/{TableOfContent → lib/TableOfContent}/index.d.ts +0 -0
  225. package/{TableOfContent → lib/TableOfContent}/index.js +1 -0
  226. package/{TableOfContent → lib/TableOfContent}/utils.d.ts +0 -0
  227. package/lib/TableOfContent/utils.js +41 -0
  228. package/{Tooltip → lib/Tooltip}/Tooltip.d.ts +0 -0
  229. package/lib/Tooltip/Tooltip.js +173 -0
  230. package/{Tooltip → lib/Tooltip}/index.d.ts +0 -0
  231. package/{Tooltip → lib/Tooltip}/index.js +1 -0
  232. package/{Typography → lib/Typography}/CompactTypography.d.ts +0 -0
  233. package/lib/Typography/CompactTypography.js +14 -0
  234. package/{Typography → lib/Typography}/Emphasis.d.ts +0 -0
  235. package/lib/Typography/Emphasis.js +13 -0
  236. package/{Typography → lib/Typography}/H1.d.ts +0 -0
  237. package/lib/Typography/H1.js +17 -0
  238. package/{Typography → lib/Typography}/H2.d.ts +0 -0
  239. package/lib/Typography/H2.js +17 -0
  240. package/{Typography → lib/Typography}/H3.d.ts +0 -0
  241. package/lib/Typography/H3.js +17 -0
  242. package/{Typography → lib/Typography}/SectionHeader.d.ts +0 -0
  243. package/lib/Typography/SectionHeader.js +19 -0
  244. package/{Typography → lib/Typography}/Typography.d.ts +0 -0
  245. package/lib/Typography/Typography.js +22 -0
  246. package/{Typography → lib/Typography}/index.d.ts +0 -0
  247. package/{Typography → lib/Typography}/index.js +1 -0
  248. package/{globalStyle.d.ts → lib/globalStyle.d.ts} +0 -0
  249. package/lib/globalStyle.js +1924 -0
  250. package/{hooks → lib/hooks}/__tests__/mocks/MockIntersectionObserver.d.ts +0 -0
  251. package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +79 -0
  252. package/{hooks → lib/hooks}/index.d.ts +0 -0
  253. package/{hooks → lib/hooks}/index.js +1 -0
  254. package/{hooks → lib/hooks}/useActiveHeading.d.ts +0 -0
  255. package/lib/hooks/useActiveHeading.js +85 -0
  256. package/{hooks → lib/hooks}/useActiveSectionId.d.ts +0 -0
  257. package/lib/hooks/useActiveSectionId.js +47 -0
  258. package/{hooks → lib/hooks}/useControl.d.ts +0 -0
  259. package/lib/hooks/useControl.js +16 -0
  260. package/{hooks → lib/hooks}/useDefaultThemeSettings.d.ts +0 -0
  261. package/{hooks → lib/hooks}/useDefaultThemeSettings.js +3 -2
  262. package/{hooks → lib/hooks}/useFullHeight.d.ts +0 -0
  263. package/{hooks → lib/hooks}/useFullHeight.js +13 -12
  264. package/{hooks → lib/hooks}/useMobileMenu.d.ts +0 -0
  265. package/lib/hooks/useMobileMenu.js +13 -0
  266. package/{hooks → lib/hooks}/useMount.d.ts +0 -0
  267. package/{hooks → lib/hooks}/useMount.js +4 -3
  268. package/{hooks → lib/hooks}/useNavbarHeight.d.ts +0 -0
  269. package/lib/hooks/useNavbarHeight.js +21 -0
  270. package/{hooks → lib/hooks}/useOutsideClick.d.ts +0 -0
  271. package/{hooks → lib/hooks}/useOutsideClick.js +5 -4
  272. package/{hooks → lib/hooks}/useUnmount.d.ts +0 -0
  273. package/{hooks → lib/hooks}/useUnmount.js +5 -4
  274. package/{icons → lib/icons}/AlertIcon/AlertIcon.d.ts +0 -0
  275. package/{icons → lib/icons}/AlertIcon/AlertIcon.js +22 -17
  276. package/{icons → lib/icons}/AlertIcon/index.d.ts +0 -0
  277. package/{icons → lib/icons}/AlertIcon/index.js +1 -0
  278. package/{icons → lib/icons}/ArrowIcon/ArrowIcon.d.ts +0 -0
  279. package/lib/icons/ArrowIcon/ArrowIcon.js +32 -0
  280. package/{icons → lib/icons}/ArrowIcon/index.d.ts +0 -0
  281. package/{icons → lib/icons}/ArrowIcon/index.js +1 -0
  282. package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.d.ts +0 -0
  283. package/{icons → lib/icons}/ColorModeIcon/ColorModeIcon.js +10 -11
  284. package/{icons → lib/icons}/ColorModeIcon/index.d.ts +0 -0
  285. package/{icons → lib/icons}/ColorModeIcon/index.js +1 -0
  286. package/{icons → lib/icons}/ShelfIcon/ShelfIcon.d.ts +0 -0
  287. package/lib/icons/ShelfIcon/ShelfIcon.js +52 -0
  288. package/{icons → lib/icons}/ShelfIcon/index.d.ts +0 -0
  289. package/{icons → lib/icons}/ShelfIcon/index.js +1 -0
  290. package/{icons → lib/icons}/index.d.ts +0 -0
  291. package/{icons → lib/icons}/index.js +1 -0
  292. package/{index.d.ts → lib/index.d.ts} +0 -0
  293. package/{index.js → lib/index.js} +1 -0
  294. package/{mocks → lib/mocks}/Link.d.ts +0 -0
  295. package/lib/mocks/Link.js +17 -0
  296. package/{mocks → lib/mocks}/constants/index.d.ts +0 -0
  297. package/{mocks → lib/mocks}/constants/index.js +1 -0
  298. package/{mocks → lib/mocks}/hooks/index.d.ts +0 -0
  299. package/{mocks → lib/mocks}/hooks/index.js +2 -1
  300. package/{mocks → lib/mocks}/hooks/usePageData.d.ts +0 -0
  301. package/{mocks → lib/mocks}/hooks/usePageData.js +1 -0
  302. package/{mocks → lib/mocks}/search.d.ts +0 -0
  303. package/{mocks → lib/mocks}/search.js +2 -1
  304. package/{mocks → lib/mocks}/types/index.d.ts +0 -0
  305. package/{mocks → lib/mocks}/types/index.js +1 -0
  306. package/lib/mocks/types.d.ts +14 -0
  307. package/{mocks → lib/mocks}/types.js +1 -0
  308. package/{mocks → lib/mocks}/usePreloadHistory.d.ts +0 -0
  309. package/{mocks → lib/mocks}/usePreloadHistory.js +3 -2
  310. package/{mocks → lib/mocks}/utils.d.ts +0 -0
  311. package/{mocks → lib/mocks}/utils.js +3 -2
  312. package/{ui → lib/ui}/Background.d.ts +0 -0
  313. package/lib/ui/Background.js +21 -0
  314. package/{ui → lib/ui}/Box.d.ts +0 -0
  315. package/lib/ui/Box.js +21 -0
  316. package/{ui → lib/ui}/Burger.d.ts +0 -0
  317. package/lib/ui/Burger.js +31 -0
  318. package/{ui → lib/ui}/Dropdown.d.ts +0 -0
  319. package/lib/ui/Dropdown.js +115 -0
  320. package/{ui → lib/ui}/Flex.d.ts +0 -0
  321. package/lib/ui/Flex.js +21 -0
  322. package/{ui → lib/ui}/Jumbotron.d.ts +0 -0
  323. package/lib/ui/Jumbotron.js +51 -0
  324. package/{ui → lib/ui}/Tiles/ThinTile.d.ts +1 -1
  325. package/lib/ui/Tiles/ThinTile.js +124 -0
  326. package/{ui → lib/ui}/Tiles/TileHeader.d.ts +0 -0
  327. package/lib/ui/Tiles/TileHeader.js +19 -0
  328. package/{ui → lib/ui}/Tiles/TileText.d.ts +0 -0
  329. package/lib/ui/Tiles/TileText.js +18 -0
  330. package/{ui → lib/ui}/Tiles/WideTile.d.ts +0 -0
  331. package/lib/ui/Tiles/WideTile.js +114 -0
  332. package/{ui → lib/ui}/Tiles/index.d.ts +0 -0
  333. package/{ui → lib/ui}/Tiles/index.js +1 -0
  334. package/{ui → lib/ui}/UniversalLink.d.ts +0 -0
  335. package/lib/ui/UniversalLink.js +79 -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 -0
  339. package/{ui → lib/ui}/index.js +2 -4
  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 +111 -4
  367. package/{src/settings.yaml → settings.yaml} +1 -1
  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/Footer/CustomFooter.tsx +1 -2
  372. package/src/Footer/CustomFooterNavItem.tsx +1 -2
  373. package/src/Footer/Footer.tsx +1 -2
  374. package/src/Footer/FooterColumn.tsx +1 -2
  375. package/src/Footer/FooterColumns.tsx +1 -2
  376. package/src/JsonViewer/JsonViewer.tsx +2 -1
  377. package/src/LastUpdated/LastUpdated.tsx +41 -5
  378. package/src/Markdown/Heading.tsx +2 -1
  379. package/src/Markdown/MarkdownLayout.tsx +2 -1
  380. package/src/Markdown/MarkdownWrapper.tsx +2 -1
  381. package/src/Markdown/Sup.tsx +2 -1
  382. package/src/Markdown/Tabs/Tabs.tsx +2 -1
  383. package/src/Navbar/MobileNavbarDropdown.tsx +1 -2
  384. package/src/Navbar/MobileNavbarItem.tsx +3 -4
  385. package/src/Navbar/MobileNavbarMenu.tsx +1 -2
  386. package/src/Navbar/Navbar.tsx +1 -2
  387. package/src/Navbar/NavbarDropdown.tsx +1 -2
  388. package/src/Navbar/NavbarItem.tsx +3 -4
  389. package/src/Navbar/NavbarMenu.tsx +1 -2
  390. package/src/NavbarLogo/NavbarLogo.tsx +1 -2
  391. package/src/PageNavigation/NextPageLink.tsx +1 -2
  392. package/src/PageNavigation/PreviousPageLink.tsx +1 -2
  393. package/src/Panel/PanelComponent.tsx +2 -2
  394. package/src/Panel/PanelHeader.ts +2 -1
  395. package/src/Search/Autocomplete.tsx +2 -2
  396. package/src/Search/ClearIcon.tsx +2 -1
  397. package/src/Search/Parameters.tsx +1 -2
  398. package/src/Search/SearchIcon.tsx +2 -1
  399. package/src/Search/SearchItem.tsx +1 -2
  400. package/src/Sidebar/ApiCallItem.tsx +1 -2
  401. package/src/Sidebar/Drilldown.tsx +1 -2
  402. package/src/Sidebar/DrilldownMenu.tsx +1 -2
  403. package/src/Sidebar/MenuGroup.tsx +1 -2
  404. package/src/Sidebar/MenuItem.tsx +1 -2
  405. package/src/Sidebar/MenuLink.tsx +1 -2
  406. package/src/Sidebar/MenuLinkItem.tsx +1 -2
  407. package/src/Sidebar/Separator.tsx +1 -2
  408. package/src/TableOfContent/TableOfContent.tsx +3 -4
  409. package/src/Tooltip/Tooltip.tsx +1 -0
  410. package/src/globalStyle.ts +28 -28
  411. package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
  412. package/src/hooks/useActiveSectionId.ts +1 -0
  413. package/src/hooks/useDefaultThemeSettings.ts +1 -2
  414. package/src/hooks/useFullHeight.ts +2 -1
  415. package/src/hooks/useMobileMenu.ts +2 -1
  416. package/src/hooks/useNavbarHeight.ts +1 -0
  417. package/src/hooks/useOutsideClick.ts +2 -1
  418. package/src/mocks/hooks/index.ts +1 -1
  419. package/src/mocks/types.ts +8 -1
  420. package/src/types/portal/src/shared/constants.d.ts +33 -33
  421. package/src/types/portal/src/shared/types/markdown.d.ts +3 -3
  422. package/src/types/portal/src/shared/types/nav.d.ts +116 -106
  423. package/src/ui/Box.tsx +3 -2
  424. package/src/ui/Burger.tsx +2 -1
  425. package/src/ui/Dropdown.tsx +1 -2
  426. package/src/ui/Flex.tsx +2 -1
  427. package/src/ui/Tiles/ThinTile.tsx +2 -1
  428. package/src/ui/Tiles/WideTile.tsx +1 -2
  429. package/src/ui/UniversalLink.tsx +2 -1
  430. package/src/utils/theme-helpers.ts +1 -0
  431. package/Button/Button.js +0 -87
  432. package/Cards/Card.js +0 -25
  433. package/Cards/CardsBlock.js +0 -15
  434. package/CodeBlock/CodeBlock.js +0 -16
  435. package/CopyButton/CopyButton.js +0 -100
  436. package/EditPageButton/EditPageButton.js +0 -24
  437. package/Footer/CustomFooter.js +0 -31
  438. package/Footer/CustomFooterNavItem.js +0 -25
  439. package/Footer/Footer.js +0 -29
  440. package/Footer/FooterColumn.js +0 -31
  441. package/Footer/FooterColumns.js +0 -34
  442. package/Footer/FooterCopyright.js +0 -19
  443. package/JsonViewer/JsonViewer.js +0 -147
  444. package/LastUpdated/LastUpdated.d.ts +0 -5
  445. package/LastUpdated/LastUpdated.js +0 -27
  446. package/Layout/PageLayout.js +0 -22
  447. package/Layout/RootLayout.js +0 -24
  448. package/Markdown/Admonition.js +0 -31
  449. package/Markdown/CodeSample/CodeSample.js +0 -93
  450. package/Markdown/ContainerWrapper.js +0 -21
  451. package/Markdown/Details.js +0 -22
  452. package/Markdown/MarkdownLayout.js +0 -31
  453. package/Markdown/MarkdownWrapper.js +0 -43
  454. package/Markdown/Mermaid.js +0 -19
  455. package/Markdown/PageWrapper.js +0 -15
  456. package/Markdown/Sup.js +0 -19
  457. package/Markdown/Tabs/Tab.js +0 -24
  458. package/Markdown/Tabs/Tabs.js +0 -72
  459. package/Navbar/MobileNavbarDropdown.js +0 -21
  460. package/Navbar/MobileNavbarItem.js +0 -102
  461. package/Navbar/MobileNavbarMenu.js +0 -32
  462. package/Navbar/MobileNavbarMenuButton.js +0 -19
  463. package/Navbar/Navbar.js +0 -64
  464. package/Navbar/NavbarDropdown.js +0 -21
  465. package/Navbar/NavbarItem.js +0 -53
  466. package/Navbar/NavbarMenu.js +0 -29
  467. package/NavbarLogo/NavbarLogo.js +0 -24
  468. package/OperationBadge/OperationBadge.js +0 -16
  469. package/PageNavigation/NextPageLink.js +0 -28
  470. package/PageNavigation/PageNavigation.js +0 -27
  471. package/PageNavigation/PreviousPageLink.js +0 -28
  472. package/Panel/Panel.js +0 -23
  473. package/Panel/PanelBody.js +0 -43
  474. package/Panel/PanelHeader.js +0 -24
  475. package/Panel/PanelHeaderTitle.js +0 -15
  476. package/Profile/Profile.js +0 -59
  477. package/SamplesPanelControls/SamplesPanelControls.js +0 -27
  478. package/Search/Autocomplete.js +0 -122
  479. package/Search/ClearIcon.js +0 -32
  480. package/Search/Input.js +0 -15
  481. package/Search/Parameters.js +0 -42
  482. package/Search/Popover.js +0 -15
  483. package/Search/Search.js +0 -29
  484. package/Search/SearchIcon.js +0 -32
  485. package/Search/SearchItem.js +0 -64
  486. package/Search/SidebarSearch.js +0 -17
  487. package/Sidebar/ApiCallItem.js +0 -29
  488. package/Sidebar/ArrowBack.js +0 -21
  489. package/Sidebar/BackButton.js +0 -22
  490. package/Sidebar/Drilldown.js +0 -50
  491. package/Sidebar/DrilldownMenu.js +0 -52
  492. package/Sidebar/DrilldownMenuItem.js +0 -25
  493. package/Sidebar/ExternalIcon.js +0 -23
  494. package/Sidebar/Menu.js +0 -15
  495. package/Sidebar/MenuContainer.js +0 -15
  496. package/Sidebar/MenuGroup.js +0 -95
  497. package/Sidebar/MenuItemLabel.js +0 -19
  498. package/Sidebar/MenuLink.js +0 -16
  499. package/Sidebar/MenuLinkItem.js +0 -31
  500. package/Sidebar/MobileSidebarButton.js +0 -25
  501. package/Sidebar/Separator.js +0 -23
  502. package/Sidebar/SeparatorItem.js +0 -16
  503. package/Sidebar/SeparatorLine.js +0 -15
  504. package/Sidebar/Sidebar.js +0 -24
  505. package/Sidebar/SidebarLayout.js +0 -52
  506. package/SidebarLogo/SidebarLogo.js +0 -25
  507. package/TableOfContent/TableOfContent.js +0 -81
  508. package/TableOfContent/utils.js +0 -62
  509. package/Tooltip/Tooltip.js +0 -98
  510. package/Typography/CompactTypography.js +0 -18
  511. package/Typography/Emphasis.js +0 -15
  512. package/Typography/H1.js +0 -16
  513. package/Typography/H2.js +0 -16
  514. package/Typography/H3.js +0 -16
  515. package/Typography/SectionHeader.js +0 -15
  516. package/Typography/Typography.js +0 -45
  517. package/globalStyle.js +0 -38
  518. package/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -39
  519. package/hooks/useActiveHeading.js +0 -100
  520. package/hooks/useActiveSectionId.js +0 -65
  521. package/hooks/useControl.js +0 -32
  522. package/hooks/useMobileMenu.js +0 -29
  523. package/hooks/useNavbarHeight.js +0 -36
  524. package/icons/ArrowIcon/ArrowIcon.js +0 -33
  525. package/icons/ShelfIcon/ShelfIcon.js +0 -52
  526. package/mocks/Link.js +0 -27
  527. package/mocks/types.d.ts +0 -7
  528. package/ui/Background.js +0 -16
  529. package/ui/Box.js +0 -16
  530. package/ui/Burger.js +0 -23
  531. package/ui/Dropdown.js +0 -89
  532. package/ui/Flex.js +0 -31
  533. package/ui/Jumbotron.js +0 -44
  534. package/ui/Tiles/ThinTile.js +0 -114
  535. package/ui/Tiles/TileHeader.js +0 -15
  536. package/ui/Tiles/TileText.js +0 -15
  537. package/ui/Tiles/WideTile.js +0 -109
  538. package/ui/UniversalLink.js +0 -97
  539. package/ui/darkColors.js +0 -10
  540. package/utils/class-names.js +0 -15
  541. package/utils/css-variables.js +0 -8
  542. package/utils/jsonToHtml.js +0 -324
  543. package/utils/media-css.js +0 -50
  544. package/utils/theme-helpers.js +0 -121
File without changes
File without changes
@@ -0,0 +1,156 @@
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.Button = exports.baseButtonStyles = void 0;
30
+ const react_1 = __importDefault(require("react"));
31
+ const styled_components_1 = __importStar(require("styled-components"));
32
+ const Link_1 = require("../mocks/Link");
33
+ const getBlink = () => (0, styled_components_1.keyframes) `
34
+ 0% {
35
+ color: var(--button-color);
36
+ background-color: var(--button-active-background-color);
37
+ }
38
+
39
+ 50% {
40
+ background-color: var(--button-background-color);
41
+ }
42
+
43
+ 100% {
44
+ color: var(--button-color);
45
+ background-color: var(--button-active-background-color);
46
+ }
47
+ `;
48
+ const getSize = (size = 'medium') => (0, styled_components_1.css) `
49
+ font-size: var(--button-${size}-font-size);
50
+ padding: var(--button-${size}-padding);
51
+ min-width: var(--button-${size}-min-width);
52
+ `;
53
+ exports.baseButtonStyles = (0, styled_components_1.css) `
54
+ outline: none;
55
+ border: none;
56
+ border-radius: var(--button-border-radius);
57
+ font-weight: var(--button-font-weight);
58
+ font-size: 14px;
59
+ padding: 2px 20px;
60
+ margin: var(--button-margin);
61
+ cursor: pointer;
62
+ transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
63
+ line-height: 1;
64
+
65
+ font-family: var(--button-font-family);
66
+ box-shadow: var(--button-box-shadow);
67
+
68
+ &:hover {
69
+ box-shadow: var(--button-hover-box-shadow);
70
+ }
71
+
72
+ &:active {
73
+ box-shadow: var(--button-active-box-shadow);
74
+ }
75
+ `;
76
+ const StyledButton = styled_components_1.default.button.attrs(({ color = 'default', extraClass }) => ({
77
+ className: `button-color-${color}${extraClass ? ` ${extraClass}` : ''}`,
78
+ 'data-component-name': 'Button/Button',
79
+ })) `
80
+ text-decoration: none;
81
+ text-align: center;
82
+
83
+ width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
84
+
85
+ ${exports.baseButtonStyles}
86
+
87
+ ${({ variant }) => variant === 'outlined'
88
+ ? (0, styled_components_1.css) `
89
+ color: var(--button-background-color);
90
+ border: 2px solid var(--button-border-color);
91
+ background-color: transparent;
92
+ &:hover {
93
+ color: var(--button-hover-background-color);
94
+ border: 2px solid var(--button-hover-border-color);
95
+ }
96
+
97
+ &:active {
98
+ color: var(--button-active-background-color);
99
+ border: 2px solid var(--button-active-border-color);
100
+ }
101
+
102
+ &:disabled {
103
+ color: var(--button-disabled-background-color);
104
+ background-color: transparent;
105
+ }
106
+ `
107
+ : (0, styled_components_1.css) `
108
+ color: var(--button-color);
109
+ border: 2px solid var(--button-background-color);
110
+ background-color: var(--button-background-color);
111
+ &:hover {
112
+ border: 2px solid var(--button-hover-background-color);
113
+ background-color: var(--button-hover-background-color);
114
+ }
115
+
116
+ &:active {
117
+ border: 2px solid var(--button-active-background-color);
118
+ background-color: var(--button-active-background-color);
119
+ }
120
+ `};
121
+
122
+ ${({ size }) => getSize(size)}
123
+
124
+ & + & {
125
+ margin-left: 0.85em;
126
+ }
127
+
128
+ ${({ blinking }) => blinking &&
129
+ (0, styled_components_1.css) `
130
+ pointer-events: none;
131
+ animation: ${getBlink()} 1.2s infinite;
132
+ `}
133
+
134
+ ${({ disabled }) => disabled &&
135
+ (0, styled_components_1.css) `
136
+ &,
137
+ &:hover {
138
+ cursor: default;
139
+ color: var(--button-disabled-color);
140
+ background-color: var(--button-disabled-background-color);
141
+ border-color: var(--button-disabled-background-color);
142
+ pointer-events: none;
143
+ }
144
+ `}
145
+ `;
146
+ const ButtonComponent = (props) => {
147
+ if (props.to) {
148
+ return (react_1.default.createElement(Link_1.Link, { to: props.to },
149
+ react_1.default.createElement(StyledButton, Object.assign({}, props))));
150
+ }
151
+ else {
152
+ return react_1.default.createElement(StyledButton, Object.assign({}, props));
153
+ }
154
+ };
155
+ exports.Button = (0, styled_components_1.default)(ButtonComponent) ``;
156
+ //# sourceMappingURL=Button.js.map
File without changes
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../Button/Button"), exports);
18
+ //# sourceMappingURL=index.js.map
File without changes
@@ -0,0 +1,36 @@
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.Card = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Link_1 = require("../mocks/Link");
10
+ const Typography_1 = require("../Typography");
11
+ function Card(props) {
12
+ return (react_1.default.createElement(CardWrapper, { "data-component-name": "Cards/Card" },
13
+ props.icon && react_1.default.createElement("img", { src: props === null || props === void 0 ? void 0 : props.icon, alt: props === null || props === void 0 ? void 0 : props.title }),
14
+ props.title && react_1.default.createElement(Typography_1.H3, null, props.title),
15
+ props.links.items && (react_1.default.createElement(CardLinksList, null, props.links.items.map((item) => (react_1.default.createElement("li", { key: item.label },
16
+ react_1.default.createElement(Link_1.Link, { to: item.link }, item.label))))))));
17
+ }
18
+ exports.Card = Card;
19
+ const CardWrapper = styled_components_1.default.div `
20
+ border-radius: 10px;
21
+ box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
22
+ padding: 20px;
23
+ margin: 0 20px 20px 0;
24
+ min-width: 25%;
25
+ font-family: var(--font-family-base);
26
+ `;
27
+ const CardLinksList = styled_components_1.default.ul `
28
+ list-style-type: none;
29
+ margin: 0;
30
+ padding: 0;
31
+
32
+ li {
33
+ margin-bottom: 10px;
34
+ }
35
+ `;
36
+ //# sourceMappingURL=Card.js.map
File without changes
@@ -0,0 +1,15 @@
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.CardsBlock = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ exports.CardsBlock = styled_components_1.default.div.attrs(() => ({
9
+ 'data-component-name': 'Cards/CardsBlock',
10
+ })) `
11
+ display: flex;
12
+ padding: 20px 0;
13
+ justify-content: space-between;
14
+ `;
15
+ //# sourceMappingURL=CardsBlock.js.map
File without changes
@@ -0,0 +1,103 @@
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.CodeBlock = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ const utils_1 = require("../utils");
9
+ exports.CodeBlock = styled_components_1.default.div.attrs(() => ({
10
+ 'data-component-name': 'CodeBlock/CodeBlock',
11
+ })) `
12
+ max-height: var(--code-block-max-height, 600px);
13
+ word-break: var(--code-block-word-break, initial);
14
+ /**
15
+ * Based on prism-dark.css
16
+ */
17
+ code[class*='language-'],
18
+ pre[class*='language-'] {
19
+ text-shadow: 0 -0.1em 0.2em black;
20
+ text-align: left;
21
+ white-space: pre;
22
+ word-spacing: normal;
23
+ word-break: normal;
24
+ word-wrap: normal;
25
+ line-height: 1.5;
26
+
27
+ -moz-tab-size: 4;
28
+ -o-tab-size: 4;
29
+ tab-size: 4;
30
+
31
+ -webkit-hyphens: none;
32
+ -moz-hyphens: none;
33
+ -ms-hyphens: none;
34
+ hyphens: none;
35
+ }
36
+
37
+ @media print {
38
+ code[class*='language-'],
39
+ pre[class*='language-'] {
40
+ text-shadow: none;
41
+ }
42
+ }
43
+
44
+ /* Code blocks */
45
+ pre[class*='language-'] {
46
+ padding: 1em;
47
+ margin: 0.5em 0;
48
+ overflow: auto;
49
+ }
50
+
51
+ .token.punctuation {
52
+ opacity: 1;
53
+ }
54
+
55
+ .namespace {
56
+ opacity: 0.7;
57
+ }
58
+
59
+ .token.selector,
60
+ .token.attr-name,
61
+ .token.string,
62
+ .token.char,
63
+ .token.builtin,
64
+ .token.inserted {
65
+ & + a,
66
+ & + a:visited {
67
+ color: var(--code-block-tokens-link-color);
68
+ text-decoration: underline;
69
+ }
70
+ }
71
+
72
+ .token.property.string {
73
+ color: var(--code-block-tokens-property-string-color);
74
+ }
75
+
76
+ .token.important,
77
+ .token.bold {
78
+ font-weight: bold;
79
+ }
80
+
81
+ .token.italic {
82
+ font-style: italic;
83
+ }
84
+
85
+ .token.entity {
86
+ cursor: help;
87
+ }
88
+
89
+ .code-line {
90
+ &:before {
91
+ content: attr(data-line-number);
92
+ display: inline-block;
93
+ min-width: 2em;
94
+ padding-right: 0.8em;
95
+ text-align: right;
96
+ pointer-events: none;
97
+ user-select: none;
98
+ }
99
+ }
100
+
101
+ ${(0, utils_1.generateCodeBlockTokens)()}
102
+ `;
103
+ //# sourceMappingURL=CodeBlock.js.map
File without changes
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../CodeBlock/CodeBlock"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
3
  if (k2 === undefined) k2 = k;
8
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -26,51 +22,35 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
22
  __setModuleDefault(result, mod);
27
23
  return result;
28
24
  };
29
- var __read = (this && this.__read) || function (o, n) {
30
- var m = typeof Symbol === "function" && o[Symbol.iterator];
31
- if (!m) return o;
32
- var i = m.call(o), r, ar = [], e;
33
- try {
34
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
35
- }
36
- catch (error) { e = { error: error }; }
37
- finally {
38
- try {
39
- if (r && !r.done && (m = i["return"])) m.call(i);
40
- }
41
- finally { if (e) throw e.error; }
42
- }
43
- return ar;
44
- };
45
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
46
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
47
27
  };
48
28
  Object.defineProperty(exports, "__esModule", { value: true });
49
29
  exports.ColorModeSwitcher = void 0;
50
- var react_1 = __importStar(require("react"));
51
- var styled_components_1 = __importDefault(require("styled-components"));
52
- var ColorModeIcon_1 = require("../icons/ColorModeIcon");
53
- var hooks_1 = require("../hooks");
54
- var useDefaultThemeSettings_1 = require("../hooks/useDefaultThemeSettings");
30
+ const react_1 = __importStar(require("react"));
31
+ const styled_components_1 = __importDefault(require("styled-components"));
32
+ const ColorModeIcon_1 = require("../icons/ColorModeIcon");
33
+ const hooks_1 = require("../hooks");
34
+ const useDefaultThemeSettings_1 = require("../hooks/useDefaultThemeSettings");
55
35
  function ColorModeSwitcher() {
56
- var themeSettings = (0, useDefaultThemeSettings_1.useDefaultThemeSettings)();
57
- var colorMode = themeSettings.colorMode;
58
- var _a = __read((0, react_1.useState)(''), 2), activeColorMode = _a[0], setActiveColorMode = _a[1];
59
- (0, hooks_1.useMount)(function () {
36
+ const themeSettings = (0, useDefaultThemeSettings_1.useDefaultThemeSettings)();
37
+ const colorMode = themeSettings.colorMode;
38
+ const [activeColorMode, setActiveColorMode] = (0, react_1.useState)('');
39
+ (0, hooks_1.useMount)(() => {
60
40
  setActiveColorMode(document.documentElement.className || (colorMode === null || colorMode === void 0 ? void 0 : colorMode.default));
61
41
  });
62
42
  if (!(colorMode === null || colorMode === void 0 ? void 0 : colorMode.modes) || (colorMode === null || colorMode === void 0 ? void 0 : colorMode.hide)) {
63
43
  return null;
64
44
  }
65
- var handelChangeColorMode = function () {
66
- var activeIndex = colorMode.modes.indexOf(activeColorMode);
67
- var mode = activeIndex < colorMode.modes.length - 1
45
+ const handelChangeColorMode = () => {
46
+ const activeIndex = colorMode.modes.indexOf(activeColorMode);
47
+ const mode = activeIndex < colorMode.modes.length - 1
68
48
  ? colorMode.modes[activeIndex + 1]
69
49
  : colorMode.modes[0];
70
50
  setActiveColorMode(mode);
71
51
  localStorage.setItem('colorSchema', mode);
72
- document.documentElement.className = "".concat(mode, " notransition");
73
- window.requestAnimationFrame(function () {
52
+ document.documentElement.className = `${mode} notransition`;
53
+ window.requestAnimationFrame(() => {
74
54
  document.documentElement.classList.remove('notransition');
75
55
  });
76
56
  };
@@ -78,5 +58,11 @@ function ColorModeSwitcher() {
78
58
  react_1.default.createElement(ColorModeIcon_1.ColorModeIcon, { mode: activeColorMode })));
79
59
  }
80
60
  exports.ColorModeSwitcher = ColorModeSwitcher;
81
- var Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-left: var(--navbar-item-padding-horizontal);\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n"], ["\n margin-left: var(--navbar-item-padding-horizontal);\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n"])));
82
- var templateObject_1;
61
+ const Wrapper = styled_components_1.default.div `
62
+ margin-left: var(--navbar-item-padding-horizontal);
63
+ display: flex;
64
+ align-items: center;
65
+ cursor: pointer;
66
+ user-select: none;
67
+ `;
68
+ //# sourceMappingURL=ColorModeSwitcher.js.map
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../ColorModeSwitcher/ColorModeSwitcher"), exports);
18
+ //# sourceMappingURL=index.js.map
File without changes
@@ -0,0 +1,50 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.CopyButton = void 0;
36
+ const react_1 = __importStar(require("react"));
37
+ const Button_1 = require("../Button");
38
+ const CopyButton = ({ text, dataTestId = 'copy-button' }) => {
39
+ const [title, setTitle] = (0, react_1.useState)('Copy');
40
+ function write() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ yield navigator.clipboard.writeText(text);
43
+ setTitle('Copied!');
44
+ setTimeout(() => setTitle('Copy'), 1500);
45
+ });
46
+ }
47
+ return (react_1.default.createElement(Button_1.Button, { color: "secondary", onClick: write, "data-cy": dataTestId, "data-component-name": "CopyButton/CopyButton" }, title));
48
+ };
49
+ exports.CopyButton = CopyButton;
50
+ //# sourceMappingURL=CopyButton.js.map
@@ -24,31 +24,30 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.CopyButtonWrapper = void 0;
27
- var react_1 = __importStar(require("react"));
28
- var SamplesPanelControls_1 = require("../SamplesPanelControls");
29
- var Tooltip_1 = require("../Tooltip");
30
- var hooks_1 = require("../hooks");
31
- var utils_1 = require("../utils");
32
- function CopyButtonWrapperComponent(_a) {
33
- var data = _a.data, children = _a.children, onCopyClick = _a.onCopyClick, _b = _a.dataTestId, dataTestId = _b === void 0 ? 'copy-button' : _b;
34
- var tooltip = (0, hooks_1.useControl)();
35
- var showTooltip = function () {
27
+ const react_1 = __importStar(require("react"));
28
+ const SamplesPanelControls_1 = require("../SamplesPanelControls");
29
+ const Tooltip_1 = require("../Tooltip");
30
+ const hooks_1 = require("../hooks");
31
+ const utils_1 = require("../utils");
32
+ function CopyButtonWrapperComponent({ data, children, onCopyClick, dataTestId = 'copy-button', }) {
33
+ const tooltip = (0, hooks_1.useControl)();
34
+ const showTooltip = () => {
36
35
  tooltip.handleOpen();
37
- setTimeout(function () {
36
+ setTimeout(() => {
38
37
  tooltip.handleClose();
39
38
  }, 1500);
40
39
  };
41
- var copy = function () {
42
- var content = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
40
+ const copy = () => {
41
+ const content = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
43
42
  utils_1.ClipboardService.copyCustom(content);
44
43
  showTooltip();
45
44
  onCopyClick === null || onCopyClick === void 0 ? void 0 : onCopyClick();
46
45
  };
47
- var renderCopyButton = function (placement) {
48
- if (placement === void 0) { placement = 'top'; }
46
+ const renderCopyButton = (placement = 'top') => {
49
47
  return (react_1.default.createElement(Tooltip_1.Tooltip, { className: "copy-button", tip: utils_1.ClipboardService.isSupported() ? 'Copied' : 'Not supported in your browser', isOpen: tooltip.isOpened, placement: placement },
50
48
  react_1.default.createElement(SamplesPanelControls_1.SamplesControlButton, { onClick: copy, "data-cy": dataTestId }, "Copy")));
51
49
  };
52
- return children({ renderCopyButton: renderCopyButton });
50
+ return children({ renderCopyButton });
53
51
  }
54
52
  exports.CopyButtonWrapper = (0, react_1.memo)(CopyButtonWrapperComponent);
53
+ //# sourceMappingURL=CopyButtonWrapper.js.map
File without changes
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../CopyButton/CopyButtonWrapper"), exports);
18
18
  __exportStar(require("../CopyButton/CopyButton"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,32 @@
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.EditPageButton = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Link_1 = require("../mocks/Link");
10
+ const EditPageButton = ({ text, to, icon }) => {
11
+ return (react_1.default.createElement(EditButton, { to: to },
12
+ react_1.default.createElement(ButtonIcon, { src: icon }),
13
+ react_1.default.createElement(ButtonText, null, text)));
14
+ };
15
+ exports.EditPageButton = EditPageButton;
16
+ const EditButton = (0, styled_components_1.default)(Link_1.Link) `
17
+ margin-left: auto;
18
+ display: inline-flex;
19
+ color: var(--color-content);
20
+ font-weight: var(--font-weight-bold);
21
+ font-size: var(--font-size-base);
22
+ font-family: var(--font-family-base);
23
+ text-decoration: none;
24
+ `;
25
+ const ButtonIcon = styled_components_1.default.img `
26
+ height: 14px;
27
+ padding-right: 3px;
28
+ `;
29
+ const ButtonText = styled_components_1.default.span `
30
+ line-height: 14px;
31
+ `;
32
+ //# sourceMappingURL=EditPageButton.js.map
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("../EditPageButton/EditPageButton"), exports);
18
+ //# sourceMappingURL=index.js.map
File without changes
@@ -0,0 +1,35 @@
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.CustomFooter = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const CustomFooterNavItem_1 = require("../Footer/CustomFooterNavItem");
10
+ const FooterCopyright_1 = require("../Footer/FooterCopyright");
11
+ function CustomFooter({ data }) {
12
+ if (!data) {
13
+ return null;
14
+ }
15
+ return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/CustomFooter" },
16
+ data.links.map((navItem, index) => {
17
+ return (react_1.default.createElement(CustomFooterNavItem_1.CustomFooterNavItem, { key: `${navItem.label}_${index}`, "data-cy": navItem.label, navItem: navItem }));
18
+ }),
19
+ react_1.default.createElement(FooterCopyright_1.FooterCopyright, { copyrightText: data.copyrightText })));
20
+ }
21
+ exports.CustomFooter = CustomFooter;
22
+ const FooterContainer = styled_components_1.default.div `
23
+ list-style: none;
24
+ margin: 0;
25
+ padding: 0;
26
+ display: block;
27
+ background-color: var(--footer-background-color);
28
+ text-align: center;
29
+ font-family: var(--font-family-base);
30
+
31
+ ${({ theme }) => theme.mediaQueries.medium} {
32
+ display: block;
33
+ }
34
+ `;
35
+ //# sourceMappingURL=CustomFooter.js.map
File without changes