@redocly/theme 0.4.14 → 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 (546) 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 +2 -3
  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/lib/PageNavigation/PageNavigation.d.ts +2 -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 +3 -2
  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 +3 -6
  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/PageNavigation.tsx +3 -11
  393. package/src/PageNavigation/PreviousPageLink.tsx +3 -4
  394. package/src/Panel/PanelComponent.tsx +2 -2
  395. package/src/Panel/PanelHeader.ts +2 -1
  396. package/src/Search/Autocomplete.tsx +2 -2
  397. package/src/Search/ClearIcon.tsx +2 -1
  398. package/src/Search/Parameters.tsx +1 -2
  399. package/src/Search/SearchIcon.tsx +2 -1
  400. package/src/Search/SearchItem.tsx +1 -2
  401. package/src/Sidebar/ApiCallItem.tsx +1 -2
  402. package/src/Sidebar/Drilldown.tsx +1 -2
  403. package/src/Sidebar/DrilldownMenu.tsx +1 -2
  404. package/src/Sidebar/MenuGroup.tsx +1 -2
  405. package/src/Sidebar/MenuItem.tsx +1 -2
  406. package/src/Sidebar/MenuLink.tsx +1 -2
  407. package/src/Sidebar/MenuLinkItem.tsx +1 -2
  408. package/src/Sidebar/Separator.tsx +1 -2
  409. package/src/TableOfContent/TableOfContent.tsx +3 -4
  410. package/src/Tooltip/Tooltip.tsx +1 -0
  411. package/src/globalStyle.ts +28 -28
  412. package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
  413. package/src/hooks/useActiveSectionId.ts +1 -0
  414. package/src/hooks/useDefaultThemeSettings.ts +1 -2
  415. package/src/hooks/useFullHeight.ts +2 -1
  416. package/src/hooks/useMobileMenu.ts +2 -1
  417. package/src/hooks/useNavbarHeight.ts +1 -0
  418. package/src/hooks/useOutsideClick.ts +2 -1
  419. package/src/mocks/hooks/index.ts +2 -2
  420. package/src/mocks/types.ts +8 -1
  421. package/src/types/portal/src/shared/constants.d.ts +33 -33
  422. package/src/types/portal/src/shared/types/markdown.d.ts +3 -3
  423. package/src/types/portal/src/shared/types/nav.d.ts +116 -106
  424. package/src/ui/Box.tsx +3 -2
  425. package/src/ui/Burger.tsx +2 -1
  426. package/src/ui/Dropdown.tsx +1 -2
  427. package/src/ui/Flex.tsx +2 -1
  428. package/src/ui/Tiles/ThinTile.tsx +2 -1
  429. package/src/ui/Tiles/WideTile.tsx +1 -2
  430. package/src/ui/UniversalLink.tsx +2 -1
  431. package/src/utils/theme-helpers.ts +1 -0
  432. package/Button/Button.js +0 -87
  433. package/Cards/Card.js +0 -25
  434. package/Cards/CardsBlock.js +0 -15
  435. package/CodeBlock/CodeBlock.js +0 -16
  436. package/CopyButton/CopyButton.js +0 -100
  437. package/EditPageButton/EditPageButton.js +0 -24
  438. package/Footer/CustomFooter.js +0 -31
  439. package/Footer/CustomFooterNavItem.js +0 -25
  440. package/Footer/Footer.js +0 -29
  441. package/Footer/FooterColumn.js +0 -31
  442. package/Footer/FooterColumns.js +0 -34
  443. package/Footer/FooterCopyright.js +0 -19
  444. package/JsonViewer/JsonViewer.js +0 -147
  445. package/LastUpdated/LastUpdated.d.ts +0 -5
  446. package/LastUpdated/LastUpdated.js +0 -27
  447. package/Layout/PageLayout.js +0 -22
  448. package/Layout/RootLayout.js +0 -24
  449. package/Markdown/Admonition.js +0 -31
  450. package/Markdown/CodeSample/CodeSample.js +0 -93
  451. package/Markdown/ContainerWrapper.js +0 -21
  452. package/Markdown/Details.js +0 -22
  453. package/Markdown/MarkdownLayout.js +0 -31
  454. package/Markdown/MarkdownWrapper.js +0 -43
  455. package/Markdown/Mermaid.js +0 -19
  456. package/Markdown/PageWrapper.js +0 -15
  457. package/Markdown/Sup.js +0 -19
  458. package/Markdown/Tabs/Tab.js +0 -24
  459. package/Markdown/Tabs/Tabs.js +0 -72
  460. package/Navbar/MobileNavbarDropdown.js +0 -21
  461. package/Navbar/MobileNavbarItem.js +0 -102
  462. package/Navbar/MobileNavbarMenu.js +0 -32
  463. package/Navbar/MobileNavbarMenuButton.js +0 -19
  464. package/Navbar/Navbar.js +0 -64
  465. package/Navbar/NavbarDropdown.js +0 -21
  466. package/Navbar/NavbarItem.js +0 -53
  467. package/Navbar/NavbarMenu.js +0 -29
  468. package/NavbarLogo/NavbarLogo.js +0 -24
  469. package/OperationBadge/OperationBadge.js +0 -16
  470. package/PageNavigation/NextPageLink.js +0 -28
  471. package/PageNavigation/PageNavigation.d.ts +0 -7
  472. package/PageNavigation/PageNavigation.js +0 -28
  473. package/PageNavigation/PreviousPageLink.js +0 -28
  474. package/Panel/Panel.js +0 -23
  475. package/Panel/PanelBody.js +0 -43
  476. package/Panel/PanelHeader.js +0 -24
  477. package/Panel/PanelHeaderTitle.js +0 -15
  478. package/Profile/Profile.js +0 -59
  479. package/SamplesPanelControls/SamplesPanelControls.js +0 -27
  480. package/Search/Autocomplete.js +0 -122
  481. package/Search/ClearIcon.js +0 -32
  482. package/Search/Input.js +0 -15
  483. package/Search/Parameters.js +0 -42
  484. package/Search/Popover.js +0 -15
  485. package/Search/Search.js +0 -29
  486. package/Search/SearchIcon.js +0 -32
  487. package/Search/SearchItem.js +0 -64
  488. package/Search/SidebarSearch.js +0 -17
  489. package/Sidebar/ApiCallItem.js +0 -29
  490. package/Sidebar/ArrowBack.js +0 -21
  491. package/Sidebar/BackButton.js +0 -22
  492. package/Sidebar/Drilldown.js +0 -50
  493. package/Sidebar/DrilldownMenu.js +0 -52
  494. package/Sidebar/DrilldownMenuItem.js +0 -25
  495. package/Sidebar/ExternalIcon.js +0 -23
  496. package/Sidebar/Menu.js +0 -15
  497. package/Sidebar/MenuContainer.js +0 -15
  498. package/Sidebar/MenuGroup.js +0 -95
  499. package/Sidebar/MenuItemLabel.js +0 -19
  500. package/Sidebar/MenuLink.js +0 -16
  501. package/Sidebar/MenuLinkItem.js +0 -31
  502. package/Sidebar/MobileSidebarButton.js +0 -25
  503. package/Sidebar/Separator.js +0 -23
  504. package/Sidebar/SeparatorItem.js +0 -16
  505. package/Sidebar/SeparatorLine.js +0 -15
  506. package/Sidebar/Sidebar.js +0 -24
  507. package/Sidebar/SidebarLayout.js +0 -52
  508. package/SidebarLogo/SidebarLogo.js +0 -25
  509. package/TableOfContent/TableOfContent.js +0 -81
  510. package/TableOfContent/utils.js +0 -62
  511. package/Tooltip/Tooltip.js +0 -98
  512. package/Typography/CompactTypography.js +0 -18
  513. package/Typography/Emphasis.js +0 -15
  514. package/Typography/H1.js +0 -16
  515. package/Typography/H2.js +0 -16
  516. package/Typography/H3.js +0 -16
  517. package/Typography/SectionHeader.js +0 -15
  518. package/Typography/Typography.js +0 -45
  519. package/globalStyle.js +0 -38
  520. package/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -39
  521. package/hooks/useActiveHeading.js +0 -100
  522. package/hooks/useActiveSectionId.js +0 -65
  523. package/hooks/useControl.js +0 -32
  524. package/hooks/useMobileMenu.js +0 -29
  525. package/hooks/useNavbarHeight.js +0 -36
  526. package/icons/ArrowIcon/ArrowIcon.js +0 -33
  527. package/icons/ShelfIcon/ShelfIcon.js +0 -52
  528. package/mocks/Link.js +0 -27
  529. package/mocks/types.d.ts +0 -7
  530. package/ui/Background.js +0 -16
  531. package/ui/Box.js +0 -16
  532. package/ui/Burger.js +0 -23
  533. package/ui/Dropdown.js +0 -89
  534. package/ui/Flex.js +0 -31
  535. package/ui/Jumbotron.js +0 -44
  536. package/ui/Tiles/ThinTile.js +0 -114
  537. package/ui/Tiles/TileHeader.js +0 -15
  538. package/ui/Tiles/TileText.js +0 -15
  539. package/ui/Tiles/WideTile.js +0 -109
  540. package/ui/UniversalLink.js +0 -97
  541. package/ui/darkColors.js +0 -10
  542. package/utils/class-names.js +0 -15
  543. package/utils/css-variables.js +0 -8
  544. package/utils/jsonToHtml.js +0 -324
  545. package/utils/media-css.js +0 -50
  546. package/utils/theme-helpers.js +0 -121
@@ -0,0 +1,52 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ShelfIcon = void 0;
27
+ const React = __importStar(require("react"));
28
+ const styled_components_1 = __importStar(require("styled-components"));
29
+ const utils_1 = require("../../utils");
30
+ const directionMap = {
31
+ right: '0deg',
32
+ down: '90deg',
33
+ left: '180deg',
34
+ up: '270deg',
35
+ };
36
+ const IntShelfIcon = ({ className, style }) => (React.createElement("svg", { className: className, style: style, viewBox: "0 0 4.25 7", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" },
37
+ React.createElement("path", { d: "M0.205025 1.19467L3.00503 3.99467C3.27839 4.26804 3.72161 4.26804 3.99497 3.99467C4.26834 3.7213 4.26834 3.27809 3.99497 3.00472L1.19497 0.20472C0.921608 -0.0686469 0.478392 -0.0686469 0.205025 0.20472C-0.0683418 0.478087 -0.0683417 0.921303 0.205025 1.19467Z" }),
38
+ React.createElement("path", { d: "M3.00503 3.00501L0.205025 5.80501C-0.0683417 6.07838 -0.0683417 6.5216 0.205025 6.79496C0.478392 7.06833 0.921608 7.06833 1.19497 6.79496L3.99497 3.99496C4.26834 3.7216 4.26834 3.27838 3.99497 3.00501C3.72161 2.73165 3.27839 2.73165 3.00503 3.00501Z" })));
39
+ exports.ShelfIcon = (0, styled_components_1.default)(IntShelfIcon).attrs(() => ({
40
+ 'data-component-name': 'icons/ShelfIcon/ShelfIcon',
41
+ })) `
42
+ ${({ size = '9px', float = '', direction, color }) => (0, styled_components_1.css) `
43
+ height: ${size};
44
+ width: ${size};
45
+ float: ${float};
46
+ transform: rotateZ(${directionMap[direction]});
47
+ fill: ${(0, utils_1.getCssColorVariable)(color)};
48
+ `}
49
+ vertical-align: middle;
50
+ transition: transform 0.2s ease-out;
51
+ `;
52
+ //# sourceMappingURL=ShelfIcon.js.map
File without changes
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ShelfIcon = void 0;
4
4
  var ShelfIcon_1 = require("../../icons/ShelfIcon/ShelfIcon");
5
5
  Object.defineProperty(exports, "ShelfIcon", { enumerable: true, get: function () { return ShelfIcon_1.ShelfIcon; } });
6
+ //# sourceMappingURL=index.js.map
File without changes
@@ -18,3 +18,4 @@ __exportStar(require("../icons/ShelfIcon"), exports);
18
18
  __exportStar(require("../icons/AlertIcon"), exports);
19
19
  __exportStar(require("../icons/ArrowIcon"), exports);
20
20
  __exportStar(require("../icons/ColorModeIcon"), exports);
21
+ //# sourceMappingURL=index.js.map
File without changes
@@ -33,3 +33,4 @@ __exportStar(require("./OperationBadge"), exports);
33
33
  __exportStar(require("./TableOfContent"), exports);
34
34
  __exportStar(require("./Profile"), exports);
35
35
  __exportStar(require("./ColorModeSwitcher"), exports);
36
+ //# sourceMappingURL=index.js.map
File without changes
@@ -0,0 +1,17 @@
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.Link = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const lodash_1 = require("lodash");
9
+ // TODO: use real typings here
10
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
11
+ function Link(props) {
12
+ // We omit "active" property to avoid "Warning: Received `false` for a non-boolean attribute `active`."
13
+ const filteredProps = (0, lodash_1.omit)(props, ['active', 'httpVerb', 'hasActiveSubItem']);
14
+ return react_1.default.createElement("a", Object.assign({ href: filteredProps.to }, filteredProps));
15
+ }
16
+ exports.Link = Link;
17
+ //# sourceMappingURL=Link.js.map
File without changes
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.USER_THEME_ALIAS = exports.DEFAULT_THEME_NAME = void 0;
4
4
  exports.DEFAULT_THEME_NAME = '@redocly/theme';
5
5
  exports.USER_THEME_ALIAS = '@theme';
6
+ //# sourceMappingURL=index.js.map
File without changes
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useSidebarSiblingsData = exports.useThemeSettings = void 0;
4
4
  function useThemeSettings(_) {
5
5
  return {
6
- toc: { header: 'header', hide: false },
6
+ toc: { header: { label: 'header' }, hide: false },
7
7
  navigation: {
8
8
  nextPageLink: { label: 'next page theme settings label' },
9
- previousPageLink: { label: 'prev page theme settings label' },
9
+ prevPageLink: { label: 'prev page theme settings label' },
10
10
  },
11
11
  colorMode: {
12
12
  modes: ['light', 'dark'],
@@ -30,3 +30,4 @@ function useSidebarSiblingsData() {
30
30
  };
31
31
  }
32
32
  exports.useSidebarSiblingsData = useSidebarSiblingsData;
33
+ //# sourceMappingURL=index.js.map
File without changes
@@ -8,3 +8,4 @@ function usePageData() {
8
8
  };
9
9
  }
10
10
  exports.usePageData = usePageData;
11
+ //# sourceMappingURL=usePageData.js.map
File without changes
@@ -4,10 +4,11 @@ exports.useFuseSearch = void 0;
4
4
  function useFuseSearch() {
5
5
  return {
6
6
  query: '',
7
- setQuery: function (val) {
7
+ setQuery(val) {
8
8
  this.query = val;
9
9
  },
10
10
  items: [],
11
11
  };
12
12
  }
13
13
  exports.useFuseSearch = useFuseSearch;
14
+ //# sourceMappingURL=search.js.map
File without changes
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ export declare type ActiveItem<T> = T;
2
+ export declare type SearchDocument = any;
3
+ export declare type OperationParameter = any;
4
+ export interface RawTheme {
5
+ name: string;
6
+ settings: {
7
+ lastUpdatedBlock?: {
8
+ hide?: boolean;
9
+ format?: 'timeago' | 'iso' | 'short' | 'long';
10
+ locale?: string;
11
+ };
12
+ [k: string]: any;
13
+ };
14
+ }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
File without changes
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.usePreloadHistory = void 0;
4
4
  function usePreloadHistory() {
5
- var history = [];
5
+ const history = [];
6
6
  return {
7
- push: function (url) {
7
+ push: (url) => {
8
8
  history.push(url);
9
9
  },
10
10
  };
11
11
  }
12
12
  exports.usePreloadHistory = usePreloadHistory;
13
+ //# sourceMappingURL=usePreloadHistory.js.map
File without changes
@@ -7,7 +7,8 @@ function withPathPrefix(link) {
7
7
  exports.withPathPrefix = withPathPrefix;
8
8
  function timeAgo(lastModified) {
9
9
  // should return format(lastModified) in new-hope
10
- var d = new Date(lastModified);
11
- return "".concat(d.getDate(), "-").concat(d.getMonth() + 1, "-").concat(d.getFullYear());
10
+ const d = new Date(lastModified);
11
+ return `${d.getDate()}-${d.getMonth() + 1}-${d.getFullYear()}`;
12
12
  }
13
13
  exports.timeAgo = timeAgo;
14
+ //# sourceMappingURL=utils.js.map
File without changes
@@ -0,0 +1,21 @@
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.Background = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ const Flex_1 = require("../ui/Flex");
9
+ exports.Background = (0, styled_components_1.default)(Flex_1.Flex).attrs(() => ({
10
+ 'data-component-name': 'ui/Background',
11
+ })) `
12
+ background: var(--navbar-background-color);
13
+ color: var(--navbar-text-color);
14
+ font-family: var(--heading-font-family);
15
+
16
+ a:not([role='button']),
17
+ a:not([role='button']):hover {
18
+ color: var(--navbar-text-color);
19
+ }
20
+ `;
21
+ //# sourceMappingURL=Background.js.map
File without changes
package/lib/ui/Box.js ADDED
@@ -0,0 +1,21 @@
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.Box = void 0;
7
+ const styled_system_1 = require("styled-system");
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ exports.Box = styled_components_1.default.div.attrs(() => ({
10
+ 'data-component-name': 'ui/Box',
11
+ })) `
12
+ max-width: 100%;
13
+ ${styled_system_1.space}
14
+ ${styled_system_1.layout}
15
+ ${styled_system_1.position}
16
+ ${styled_system_1.flex}
17
+ ${styled_system_1.textAlign}
18
+ ${styled_system_1.color}
19
+ ${styled_system_1.border}
20
+ `;
21
+ //# sourceMappingURL=Box.js.map
File without changes
@@ -0,0 +1,31 @@
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.Burger = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ function BurgerComponent({ onClick, className }) {
10
+ return (react_1.default.createElement(Button, { onClick: onClick, className: className, "data-component-name": "ui/Burger" },
11
+ react_1.default.createElement(Line, null),
12
+ react_1.default.createElement(Line, null),
13
+ react_1.default.createElement(Line, null)));
14
+ }
15
+ const Button = styled_components_1.default.button `
16
+ all: unset;
17
+ max-width: 30px;
18
+ width: 100%;
19
+ min-width: 10px;
20
+ display: block;
21
+ cursor: pointer;
22
+ `;
23
+ const Line = styled_components_1.default.div `
24
+ margin: 4px 0;
25
+ width: 100%;
26
+ height: 2px;
27
+ background: #fff;
28
+ border-radius: 1px;
29
+ `;
30
+ exports.Burger = (0, styled_components_1.default)(BurgerComponent) ``;
31
+ //# sourceMappingURL=Burger.js.map
File without changes
@@ -0,0 +1,115 @@
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.Dropdown = 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 Icon = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
34
+ react_1.default.createElement("polyline", { points: "6 9 12 15 18 9" })));
35
+ const DropDownContainer = styled_components_1.default.div `
36
+ position: relative;
37
+ padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
38
+ `;
39
+ const DropDownHeader = styled_components_1.default.div `
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ background: #fff;
44
+ padding: 8px 10px;
45
+ border-radius: 4px;
46
+ border: 1px solid #e4e7eb;
47
+ font-weight: 600;
48
+ color: var(--text-color);
49
+ background: var(--color-secondary-200);
50
+ `;
51
+ const DropDownList = styled_components_1.default.div `
52
+ position: absolute;
53
+ background: var(--color-secondary-200);
54
+ margin: 2px 20px 0 20px;
55
+ padding: 0;
56
+ border-radius: 4px;
57
+ border: 1px solid rgba(38, 50, 56, 0.2);
58
+ z-index: 9999;
59
+ left: 0;
60
+ right: 0;
61
+ `;
62
+ const IconWrapper = styled_components_1.default.span `
63
+ transition: transform 0.2s;
64
+ display: inline-block;
65
+ font-size: 0;
66
+ &.active {
67
+ transform: rotate(-180deg);
68
+ }
69
+ `;
70
+ const ListItem = styled_components_1.default.div `
71
+ background-color: #fff;
72
+ padding: 0.4em 10px;
73
+ font-size: 1em;
74
+ color: var(--text-color);
75
+ cursor: pointer;
76
+ &:hover {
77
+ background-color: rgba(38, 50, 56, 0.12);
78
+ }
79
+ &.active {
80
+ background-color: rgba(0, 0, 0, 0.05);
81
+ }
82
+ `;
83
+ const DropDownLink = (0, styled_components_1.default)(Link_1.Link) `
84
+ display: block;
85
+ text-decoration: none;
86
+ color: var(--text-color);
87
+ `;
88
+ function Dropdown({ items, activeItem }) {
89
+ const ref = (0, react_1.useRef)(null);
90
+ const [isOpen, setIsOpen] = (0, react_1.useState)(false);
91
+ const toggling = () => setIsOpen(!isOpen);
92
+ (0, react_1.useEffect)(() => {
93
+ const checkIfClickedOutside = (e) => {
94
+ if (!(e.target instanceof HTMLElement)) {
95
+ return;
96
+ }
97
+ if (isOpen && ref.current && !ref.current.contains(e.target)) {
98
+ setIsOpen(false);
99
+ }
100
+ };
101
+ document.addEventListener('mousedown', checkIfClickedOutside);
102
+ return () => {
103
+ document.removeEventListener('mousedown', checkIfClickedOutside);
104
+ };
105
+ }, [isOpen]);
106
+ return (react_1.default.createElement(DropDownContainer, { ref: ref, "data-component-name": "ui/Dropdown" },
107
+ react_1.default.createElement(DropDownHeader, { onClick: toggling },
108
+ (activeItem === null || activeItem === void 0 ? void 0 : activeItem.label) || activeItem.version,
109
+ react_1.default.createElement(IconWrapper, { className: isOpen ? 'active' : '' },
110
+ react_1.default.createElement(Icon, null))),
111
+ isOpen && (react_1.default.createElement(DropDownList, null, items.map((item) => (react_1.default.createElement(ListItem, { className: activeItem.version === item.version ? 'active' : '', onClick: toggling, key: (item === null || item === void 0 ? void 0 : item.link) + (item === null || item === void 0 ? void 0 : item.version) },
112
+ react_1.default.createElement(DropDownLink, { to: (item === null || item === void 0 ? void 0 : item.link) || '#' }, (item === null || item === void 0 ? void 0 : item.label) || item.version))))))));
113
+ }
114
+ exports.Dropdown = Dropdown;
115
+ //# sourceMappingURL=Dropdown.js.map
File without changes
package/lib/ui/Flex.js ADDED
@@ -0,0 +1,21 @@
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.FlexSection = exports.Flex = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const styled_system_1 = require("styled-system");
10
+ const Box_1 = require("../ui/Box");
11
+ exports.Flex = (0, styled_components_1.default)(Box_1.Box).attrs({ 'data-component-name': 'ui/Flex' }) `
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ ${styled_system_1.flexbox}
15
+ ${styled_system_1.width}
16
+ `;
17
+ function FlexSection(props) {
18
+ return (react_1.default.createElement(exports.Flex, Object.assign({}, props, { width: props.width || { xs: '90%', large: 910 } }), props.children));
19
+ }
20
+ exports.FlexSection = FlexSection;
21
+ //# sourceMappingURL=Flex.js.map
File without changes
@@ -0,0 +1,51 @@
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.Jumbotron = void 0;
7
+ const styled_system_1 = require("styled-system");
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Typography_1 = require("../Typography");
10
+ const Background_1 = require("../ui/Background");
11
+ exports.Jumbotron = (0, styled_components_1.default)(Background_1.Background).attrs(() => ({
12
+ 'data-component-name': 'ui/Jumbotron',
13
+ })) `
14
+ flex-direction: column;
15
+ padding-top: ${({ pt }) => pt || '0'};
16
+ padding-bottom: ${({ pb }) => pb || '8em'};
17
+ padding-left: ${({ pl }) => pl || '0'};
18
+ padding-right: ${({ pr }) => pr || '0'};
19
+ ${({ bgColor }) => bgColor && `background: ${bgColor}`};
20
+ ${({ bgImage, bgColor }) => bgImage &&
21
+ `
22
+ background: ${bgColor || 'var(--text-color)'} url(${bgImage});
23
+ background-repeat: no-repeat;
24
+ background-size: cover;
25
+ background-position: center;
26
+ `};
27
+ ${({ parallaxEffect }) => parallaxEffect &&
28
+ `
29
+ background-attachment: scroll, fixed;
30
+ `};
31
+ ${styled_system_1.space}
32
+ ${Typography_1.H1}, ${Typography_1.H2} {
33
+ color: ${({ textColor }) => textColor || 'var(--navbar-text-color)'};
34
+ text-align: center;
35
+ padding: 0;
36
+ }
37
+ h1 {
38
+ font-size: 3.5em;
39
+ line-height: 1.2;
40
+ font-weight: var(--font-weight-bold);
41
+ margin: 1.75em 0 0.5em 0;
42
+ }
43
+ h2 {
44
+ font-size: 1.875em;
45
+ line-height: 1;
46
+ font-weight: var(--font-weight-regular);
47
+ margin: 0;
48
+ margin-bottom: 2em;
49
+ }
50
+ `;
51
+ //# sourceMappingURL=Jumbotron.js.map
@@ -1,5 +1,5 @@
1
- import type { CSSProperties } from 'react';
2
1
  import { Component } from 'react';
2
+ import type { CSSProperties } from 'react';
3
3
  declare type TextAlign = 'left' | 'right' | 'center' | 'justify';
4
4
  export interface TileProps {
5
5
  header?: string;
@@ -0,0 +1,124 @@
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.ThinTile = 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 Flex_1 = require("../../ui/Flex");
34
+ const TileText_1 = require("../../ui/Tiles/TileText");
35
+ const TileHeader_1 = require("../../ui/Tiles/TileHeader");
36
+ const ThinTileWrapper = (0, styled_components_1.default)(Link_1.Link) `
37
+ display: flex;
38
+ flex-direction: column;
39
+ border-radius: 10px;
40
+ box-shadow: 0 10px 30px 0 rgba(35, 35, 35, 0.1);
41
+ box-sizing: border-box;
42
+ transition: box-shadow 0.25s ease;
43
+ padding: 24px;
44
+ margin-bottom: 20px;
45
+ text-decoration: none;
46
+ width: 100%;
47
+ background-color: ${({ bgColor }) => bgColor || 'var(--thin-tile-background-color)'};
48
+ background-image: ${({ bgImage }) => (bgImage ? `url(${bgImage})` : 'none')};
49
+ background-repeat: no-repeat;
50
+
51
+ :hover {
52
+ box-shadow: 0 10px 100px 0 rgba(35, 35, 35, 0.2);
53
+ }
54
+
55
+ ${({ theme }) => theme.mediaQueries.small} {
56
+ width: calc(50% - 20px);
57
+ margin-right: 10px;
58
+ margin-left: 10px;
59
+ }
60
+
61
+ ${({ theme }) => theme.mediaQueries.medium} {
62
+ width: 250px;
63
+ }
64
+
65
+ ${({ theme }) => theme.mediaQueries.large} {
66
+ width: 280px;
67
+ }
68
+
69
+ &.external-url {
70
+ :after {
71
+ display: none;
72
+ }
73
+ }
74
+ `;
75
+ const ThinTileIcon = styled_components_1.default.img `
76
+ width: 90px;
77
+
78
+ ${({ theme }) => theme.mediaQueries.medium} {
79
+ width: 80px;
80
+ }
81
+ `;
82
+ const ThinTileHeader = (0, styled_components_1.default)(TileHeader_1.TileHeader) `
83
+ font-size: 24px;
84
+ text-align: ${({ align }) => align || 'center'};
85
+ `;
86
+ const ThinTileText = (0, styled_components_1.default)(TileText_1.TileText) `
87
+ font-size: 18px;
88
+ line-height: 1.5;
89
+ flex-shrink: 0;
90
+ min-height: 3em;
91
+ text-align: ${({ align }) => align || 'center'};
92
+ ${({ icon }) => icon
93
+ ? `
94
+ display: -webkit-box;
95
+ -webkit-line-clamp: 8;
96
+ -webkit-box-orient: vertical;
97
+ overflow: hidden;
98
+ line-clamp: 8;
99
+ `
100
+ : ''};
101
+ ${({ theme }) => theme.mediaQueries.small} {
102
+ min-height: 6em;
103
+ }
104
+
105
+ ${({ theme }) => theme.mediaQueries.medium} {
106
+ min-height: 4.5em;
107
+ }
108
+ `;
109
+ class ThinTile extends react_1.Component {
110
+ render() {
111
+ const { header, icon, children, to, target, headerAlign, textAlign, color, className, style } = this.props;
112
+ const Wrapper = to
113
+ ? ThinTileWrapper
114
+ : ThinTileWrapper.withComponent('div');
115
+ return (react_1.default.createElement(Wrapper, { to: to, target: target, color: color, className: className, style: style, "data-component-name": "ui/Tiles/ThinTile" },
116
+ (icon || header) && (react_1.default.createElement(Flex_1.Flex, { flexDirection: "column" },
117
+ icon && (react_1.default.createElement(Flex_1.Flex, { flexShrink: 0, height: { xs: 'auto', small: '100px', medium: '110px' }, alignItems: "center", justifyContent: "center", mb: "25px" },
118
+ react_1.default.createElement(ThinTileIcon, { src: icon }))),
119
+ header && (react_1.default.createElement(ThinTileHeader, { align: headerAlign, color: color, "data-cy": `Thin-${header}` }, header)))),
120
+ children && (react_1.default.createElement(ThinTileText, { icon: icon, align: textAlign, color: color }, children))));
121
+ }
122
+ }
123
+ exports.ThinTile = ThinTile;
124
+ //# sourceMappingURL=ThinTile.js.map
File without changes
@@ -0,0 +1,19 @@
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.TileHeader = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ exports.TileHeader = styled_components_1.default.h3.attrs(() => ({
9
+ 'data-component-name': 'ui/Tiles/TileHeader',
10
+ })) `
11
+ font-weight: var(--h3-font-weight);
12
+ line-height: var(--h3-line-height);
13
+ color: ${(props) => props.color || 'var(--h3-color)'};
14
+ font-family: var(--h3-font-family);
15
+ && {
16
+ margin: var(--h3-margin-top) 0 var(--h3-margin-bottom);
17
+ }
18
+ `;
19
+ //# sourceMappingURL=TileHeader.js.map
File without changes