@redocly/theme 0.74.2-pingfed.3 → 0.81.2-rc.1

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 (1860) hide show
  1. package/lib/components/Admonition/Admonition.d.ts +12 -0
  2. package/lib/components/Admonition/Admonition.js +119 -0
  3. package/lib/components/Admonition/variables.d.ts +1 -0
  4. package/lib/components/Admonition/variables.js +100 -0
  5. package/lib/components/Badge/Badge.d.ts +5 -0
  6. package/lib/components/Badge/Badge.js +49 -0
  7. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +4 -3
  8. package/lib/components/Breadcrumbs/Breadcrumb.js +4 -5
  9. package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -6
  10. package/lib/components/Breadcrumbs/variables.js +20 -0
  11. package/lib/components/Button/Button.d.ts +9 -8
  12. package/lib/components/Button/Button.js +106 -88
  13. package/lib/components/Button/variables.dark.d.ts +1 -0
  14. package/lib/components/Button/variables.dark.js +30 -0
  15. package/lib/components/Button/variables.js +221 -0
  16. package/lib/components/Buttons/CopyButton.d.ts +16 -0
  17. package/lib/components/Buttons/CopyButton.js +53 -0
  18. package/lib/components/Buttons/EditPageButton.d.ts +5 -0
  19. package/lib/components/Buttons/EditPageButton.js +45 -0
  20. package/lib/components/Buttons/EmailButton.d.ts +7 -0
  21. package/lib/components/Buttons/EmailButton.js +18 -0
  22. package/lib/components/Buttons/NewTabButton.d.ts +7 -0
  23. package/lib/components/Buttons/NewTabButton.js +18 -0
  24. package/lib/components/Catalog/Catalog.d.ts +1 -3
  25. package/lib/components/Catalog/Catalog.js +40 -77
  26. package/lib/components/Catalog/CatalogActions.d.ts +8 -0
  27. package/lib/components/Catalog/CatalogActions.js +71 -0
  28. package/lib/components/Catalog/CatalogCard.d.ts +5 -4
  29. package/lib/components/Catalog/CatalogCard.js +49 -79
  30. package/lib/components/Catalog/CatalogHighlight.d.ts +5 -0
  31. package/lib/components/Catalog/CatalogHighlight.js +71 -0
  32. package/lib/components/Catalog/CatalogInfoBlock.d.ts +11 -0
  33. package/lib/components/Catalog/CatalogInfoBlock.js +48 -0
  34. package/lib/components/Catalog/variables.js +106 -0
  35. package/lib/components/CodeBlock/CodeBlock.d.ts +9 -10
  36. package/lib/components/CodeBlock/CodeBlock.js +29 -22
  37. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +0 -1
  38. package/lib/components/CodeBlock/CodeBlockContainer.js +98 -105
  39. package/lib/components/CodeBlock/CodeBlockControls.d.ts +11 -10
  40. package/lib/components/CodeBlock/CodeBlockControls.js +44 -64
  41. package/lib/components/CodeBlock/CodeBlockTabs.d.ts +6 -0
  42. package/lib/components/CodeBlock/CodeBlockTabs.js +122 -0
  43. package/lib/components/CodeBlock/variables.js +95 -0
  44. package/lib/components/ColorModeSwitcher/ColorModeIcon.js +27 -0
  45. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +3 -4
  46. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +9 -70
  47. package/lib/components/DatePicker/DatePicker.d.ts +5 -0
  48. package/lib/components/DatePicker/DatePicker.js +75 -0
  49. package/lib/components/DatePicker/variables.d.ts +1 -0
  50. package/lib/components/DatePicker/variables.js +24 -0
  51. package/lib/components/Dropdown/Dropdown.d.ts +11 -18
  52. package/lib/components/Dropdown/Dropdown.js +34 -63
  53. package/lib/components/Dropdown/DropdownMenu.d.ts +12 -0
  54. package/lib/components/Dropdown/DropdownMenu.js +53 -0
  55. package/lib/components/Dropdown/DropdownMenuItem.d.ts +19 -0
  56. package/lib/components/Dropdown/DropdownMenuItem.js +137 -0
  57. package/lib/components/Dropdown/variables.js +44 -0
  58. package/lib/components/Feedback/Comment.d.ts +13 -3
  59. package/lib/components/Feedback/Comment.js +62 -56
  60. package/lib/components/Feedback/Feedback.d.ts +3 -3
  61. package/lib/components/Feedback/Feedback.js +40 -43
  62. package/lib/components/Feedback/Mood.d.ts +25 -3
  63. package/lib/components/Feedback/Mood.js +51 -73
  64. package/lib/components/Feedback/Rating.d.ts +24 -3
  65. package/lib/components/Feedback/Rating.js +40 -42
  66. package/lib/components/Feedback/Reasons.d.ts +10 -3
  67. package/lib/components/Feedback/Reasons.js +15 -15
  68. package/lib/components/Feedback/ReportDialog.d.ts +13 -3
  69. package/lib/components/Feedback/ReportDialog.js +28 -40
  70. package/lib/components/Feedback/Scale.d.ts +26 -3
  71. package/lib/components/Feedback/Scale.js +53 -66
  72. package/lib/components/Feedback/Sentiment.d.ts +24 -3
  73. package/lib/components/Feedback/Sentiment.js +55 -76
  74. package/lib/components/Feedback/Stars.d.ts +1 -2
  75. package/lib/components/Feedback/Stars.js +9 -9
  76. package/lib/components/Feedback/variables.d.ts +1 -0
  77. package/lib/components/Feedback/variables.js +34 -0
  78. package/lib/components/Filter/Filter.d.ts +2 -9
  79. package/lib/components/Filter/Filter.js +14 -182
  80. package/lib/components/Filter/FilterCheckboxes.d.ts +2 -0
  81. package/lib/components/Filter/FilterCheckboxes.js +43 -0
  82. package/lib/components/Filter/FilterContent.d.ts +4 -6
  83. package/lib/components/Filter/FilterContent.js +33 -39
  84. package/lib/components/Filter/FilterDateRange.d.ts +2 -0
  85. package/lib/components/Filter/FilterDateRange.js +62 -0
  86. package/lib/components/Filter/FilterInput.d.ts +6 -0
  87. package/lib/components/Filter/FilterInput.js +62 -0
  88. package/lib/components/Filter/FilterOption.d.ts +4 -0
  89. package/lib/components/Filter/FilterOption.js +22 -0
  90. package/lib/components/Filter/FilterOptionLabel.d.ts +3 -0
  91. package/lib/components/Filter/FilterOptionLabel.js +18 -0
  92. package/lib/components/Filter/FilterOptions.d.ts +3 -0
  93. package/lib/components/Filter/FilterOptions.js +16 -0
  94. package/lib/components/Filter/FilterPopover.d.ts +5 -9
  95. package/lib/components/Filter/FilterPopover.js +14 -56
  96. package/lib/components/Filter/FilterSelect.d.ts +2 -0
  97. package/lib/components/Filter/FilterSelect.js +63 -0
  98. package/lib/components/Filter/FilterTitle.d.ts +3 -0
  99. package/lib/components/Filter/FilterTitle.js +15 -0
  100. package/lib/components/Filter/variables.js +98 -0
  101. package/lib/components/Footer/Footer.d.ts +3 -9
  102. package/lib/components/Footer/Footer.js +47 -29
  103. package/lib/components/Footer/FooterColumn.d.ts +3 -8
  104. package/lib/components/Footer/FooterColumn.js +42 -75
  105. package/lib/components/Footer/FooterCopyright.d.ts +2 -3
  106. package/lib/components/Footer/FooterCopyright.js +14 -10
  107. package/lib/components/Footer/FooterItem.d.ts +7 -0
  108. package/lib/components/Footer/FooterItem.js +65 -0
  109. package/lib/components/Footer/FooterLogo.d.ts +4 -0
  110. package/lib/components/Footer/FooterLogo.js +18 -0
  111. package/lib/components/Footer/variables.js +62 -0
  112. package/lib/components/Image/Image.d.ts +1 -2
  113. package/lib/components/Image/Image.js +2 -10
  114. package/lib/components/JsonViewer/JsonViewer.d.ts +2 -6
  115. package/lib/components/JsonViewer/JsonViewer.js +34 -167
  116. package/lib/components/JsonViewer/helpers.d.ts +8 -0
  117. package/lib/components/JsonViewer/helpers.js +131 -0
  118. package/lib/components/LanguagePicker/LanguagePicker.d.ts +8 -0
  119. package/lib/components/LanguagePicker/LanguagePicker.js +79 -0
  120. package/lib/components/LanguagePicker/variables.js +37 -0
  121. package/lib/components/LastUpdated/LastUpdated.d.ts +2 -3
  122. package/lib/components/LastUpdated/LastUpdated.js +8 -8
  123. package/lib/components/LastUpdated/variables.js +11 -0
  124. package/lib/components/Link/Link.d.ts +13 -0
  125. package/lib/components/Link/Link.js +55 -0
  126. package/lib/components/Loading/Loading.d.ts +4 -0
  127. package/lib/components/Loading/Loading.js +25 -0
  128. package/lib/components/Logo/Logo.d.ts +7 -0
  129. package/lib/components/Logo/Logo.js +46 -0
  130. package/lib/components/Logo/variables.js +17 -0
  131. package/lib/components/Markdown/Markdown.d.ts +5 -0
  132. package/lib/components/Markdown/Markdown.js +298 -0
  133. package/lib/components/Markdown/styles/baseTable.d.ts +1 -0
  134. package/lib/components/Markdown/styles/baseTable.js +64 -0
  135. package/lib/components/Markdown/styles/headingAnchor.d.ts +2 -0
  136. package/lib/components/Markdown/styles/headingAnchor.js +37 -0
  137. package/lib/components/Markdown/styles/links.d.ts +1 -0
  138. package/lib/components/Markdown/styles/links.js +23 -0
  139. package/lib/components/Markdown/variables.d.ts +1 -0
  140. package/lib/components/Markdown/variables.js +99 -0
  141. package/lib/components/Menu/Menu.d.ts +6 -8
  142. package/lib/components/Menu/Menu.js +13 -10
  143. package/lib/components/Menu/MenuContainer.d.ts +5 -2
  144. package/lib/components/Menu/MenuContainer.js +51 -4
  145. package/lib/components/Menu/MenuItem.d.ts +3 -3
  146. package/lib/components/Menu/MenuItem.js +227 -32
  147. package/lib/components/Menu/MenuMobile.d.ts +6 -0
  148. package/lib/components/Menu/MenuMobile.js +153 -0
  149. package/lib/components/Menu/variables.d.ts +2 -0
  150. package/lib/components/Menu/variables.dark.d.ts +1 -0
  151. package/lib/components/Menu/variables.dark.js +11 -0
  152. package/lib/components/Menu/variables.js +178 -0
  153. package/lib/components/Navbar/Navbar.d.ts +3 -15
  154. package/lib/components/Navbar/Navbar.js +68 -118
  155. package/lib/components/Navbar/NavbarItem.d.ts +4 -17
  156. package/lib/components/Navbar/NavbarItem.js +48 -59
  157. package/lib/components/Navbar/NavbarLogo.d.ts +4 -0
  158. package/lib/components/Navbar/NavbarLogo.js +18 -0
  159. package/lib/components/Navbar/NavbarMenu.d.ts +5 -4
  160. package/lib/components/Navbar/NavbarMenu.js +4 -4
  161. package/lib/components/Navbar/variables.js +54 -0
  162. package/lib/components/PageNavigation/NextButton.d.ts +3 -4
  163. package/lib/components/PageNavigation/NextButton.js +24 -10
  164. package/lib/components/PageNavigation/PageNavigation.d.ts +3 -4
  165. package/lib/components/PageNavigation/PageNavigation.js +2 -2
  166. package/lib/components/PageNavigation/PreviousButton.d.ts +3 -4
  167. package/lib/components/PageNavigation/PreviousButton.js +24 -13
  168. package/lib/components/Panel/Panel.d.ts +15 -5
  169. package/lib/components/Panel/Panel.js +57 -14
  170. package/lib/components/Panel/PanelBody.js +1 -3
  171. package/lib/components/Panel/PanelHeader.d.ts +3 -2
  172. package/lib/components/Panel/PanelHeader.js +8 -5
  173. package/lib/components/Panel/PanelHeaderTitle.js +1 -0
  174. package/lib/components/Panel/variables.js +410 -0
  175. package/lib/components/Portal/Portal.d.ts +7 -0
  176. package/lib/components/Portal/Portal.js +18 -0
  177. package/lib/components/Product/Product.d.ts +3 -3
  178. package/lib/components/Product/Product.js +3 -3
  179. package/lib/components/Product/ProductPicker.d.ts +1 -2
  180. package/lib/components/Product/ProductPicker.js +51 -68
  181. package/lib/components/Product/variables.d.ts +1 -0
  182. package/lib/components/Product/variables.js +39 -0
  183. package/lib/components/Scorecard/variables.d.ts +1 -0
  184. package/lib/components/Scorecard/variables.dark.d.ts +1 -0
  185. package/lib/components/Scorecard/variables.dark.js +20 -0
  186. package/lib/components/Scorecard/variables.js +24 -0
  187. package/lib/components/Search/Search.d.ts +4 -3
  188. package/lib/components/Search/Search.js +6 -59
  189. package/lib/components/Search/SearchDialog.d.ts +5 -4
  190. package/lib/components/Search/SearchDialog.js +94 -71
  191. package/lib/components/Search/SearchHighlight.d.ts +1 -0
  192. package/lib/components/Search/SearchHighlight.js +46 -0
  193. package/lib/components/Search/SearchInput.d.ts +11 -0
  194. package/lib/components/Search/SearchInput.js +55 -0
  195. package/lib/components/Search/SearchItem.d.ts +10 -6
  196. package/lib/components/Search/SearchItem.js +81 -55
  197. package/lib/components/Search/SearchRecent.d.ts +6 -0
  198. package/lib/components/Search/SearchRecent.js +122 -0
  199. package/lib/components/Search/SearchShortcut.d.ts +7 -0
  200. package/lib/components/Search/SearchShortcut.js +51 -0
  201. package/lib/components/Search/SearchSuggestedPages.d.ts +5 -0
  202. package/lib/components/Search/SearchSuggestedPages.js +91 -0
  203. package/lib/components/Search/SearchTrigger.d.ts +4 -3
  204. package/lib/components/Search/SearchTrigger.js +54 -35
  205. package/lib/components/Search/variables.js +98 -0
  206. package/lib/components/Segmented/Segmented.d.ts +15 -0
  207. package/lib/components/Segmented/Segmented.js +76 -0
  208. package/lib/components/Segmented/variables.d.ts +1 -0
  209. package/lib/components/Segmented/variables.dark.d.ts +1 -0
  210. package/lib/components/Segmented/variables.dark.js +9 -0
  211. package/lib/components/Segmented/variables.js +26 -0
  212. package/lib/components/Select/Select.d.ts +5 -2
  213. package/lib/components/Select/Select.js +33 -21
  214. package/lib/components/Select/variables.js +37 -0
  215. package/lib/components/Sidebar/Sidebar.d.ts +19 -5
  216. package/lib/components/Sidebar/Sidebar.js +91 -12
  217. package/lib/components/Sidebar/variables.d.ts +1 -0
  218. package/lib/components/Sidebar/variables.js +60 -0
  219. package/lib/components/SidebarActions/ChangeViewButton.d.ts +3 -3
  220. package/lib/components/SidebarActions/ChangeViewButton.js +12 -3
  221. package/lib/components/SidebarActions/SidebarActions.d.ts +3 -10
  222. package/lib/components/SidebarActions/SidebarActions.js +25 -24
  223. package/lib/components/SidebarActions/styled.d.ts +6 -10
  224. package/lib/components/SidebarActions/styled.js +22 -69
  225. package/lib/components/SidebarLogo/SidebarLogo.d.ts +0 -1
  226. package/lib/components/SidebarLogo/SidebarLogo.js +1 -1
  227. package/lib/components/StatusCode/StatusCode.d.ts +5 -0
  228. package/lib/components/StatusCode/StatusCode.js +40 -0
  229. package/lib/components/StatusCode/variables.d.ts +1 -0
  230. package/lib/components/StatusCode/variables.dark.d.ts +1 -0
  231. package/lib/components/StatusCode/variables.dark.js +8 -0
  232. package/lib/components/StatusCode/variables.js +16 -0
  233. package/lib/components/TableOfContent/TableOfContent.d.ts +3 -4
  234. package/lib/components/TableOfContent/TableOfContent.js +40 -36
  235. package/lib/components/TableOfContent/variables.js +49 -0
  236. package/lib/components/Tag/Tag.d.ts +7 -4
  237. package/lib/components/Tag/Tag.js +27 -6
  238. package/lib/components/Tag/variables.dark.d.ts +1 -0
  239. package/lib/components/Tag/variables.dark.js +19 -0
  240. package/lib/components/Tag/variables.js +188 -0
  241. package/lib/components/Tags/CounterTag.d.ts +5 -0
  242. package/lib/components/Tags/CounterTag.js +18 -0
  243. package/lib/components/Tags/HttpTag.d.ts +5 -0
  244. package/lib/components/Tags/HttpTag.js +29 -0
  245. package/lib/components/Tags/variables.d.ts +1 -0
  246. package/lib/components/Tags/variables.js +21 -0
  247. package/lib/components/Tooltip/Tooltip.d.ts +2 -2
  248. package/lib/components/Tooltip/Tooltip.js +4 -4
  249. package/lib/components/Tooltip/variables.js +21 -0
  250. package/lib/components/Typography/H1.js +1 -1
  251. package/lib/components/Typography/H2.js +1 -1
  252. package/lib/components/Typography/H3.js +1 -1
  253. package/lib/components/Typography/H4.d.ts +1 -0
  254. package/lib/components/Typography/H4.js +18 -0
  255. package/lib/components/Typography/Typography.js +1 -1
  256. package/lib/components/UserMenu/LoginButton.d.ts +5 -0
  257. package/lib/components/UserMenu/LoginButton.js +18 -0
  258. package/lib/components/UserMenu/LogoutMenuItem.d.ts +5 -0
  259. package/lib/components/UserMenu/LogoutMenuItem.js +23 -0
  260. package/lib/components/UserMenu/UserAvatar.d.ts +8 -0
  261. package/lib/components/UserMenu/UserAvatar.js +47 -0
  262. package/lib/components/UserMenu/UserInfoMenuItem.d.ts +8 -0
  263. package/lib/components/UserMenu/UserInfoMenuItem.js +54 -0
  264. package/lib/components/UserMenu/UserMenu.d.ts +6 -0
  265. package/lib/components/UserMenu/UserMenu.js +92 -0
  266. package/lib/components/UserMenu/UserMenuMobile.d.ts +5 -0
  267. package/lib/components/UserMenu/UserMenuMobile.js +54 -0
  268. package/lib/components/UserMenu/variables.d.ts +1 -0
  269. package/lib/components/UserMenu/variables.js +64 -0
  270. package/lib/components/VersionPicker/VersionPicker.d.ts +10 -0
  271. package/lib/components/VersionPicker/VersionPicker.js +111 -0
  272. package/lib/components/VersionPicker/variables.d.ts +1 -0
  273. package/lib/components/VersionPicker/variables.js +42 -0
  274. package/lib/config.d.ts +2 -2569
  275. package/lib/config.js +0 -635
  276. package/lib/core/constants/common.d.ts +22 -0
  277. package/lib/core/constants/common.js +30 -0
  278. package/lib/core/constants/environments.d.ts +9 -0
  279. package/lib/core/constants/environments.js +14 -0
  280. package/lib/core/constants/index.d.ts +2 -0
  281. package/lib/core/constants/index.js +19 -0
  282. package/lib/core/contexts/ThemeDataContext.d.ts +12 -0
  283. package/lib/core/contexts/ThemeDataContext.js +6 -0
  284. package/lib/core/contexts/index.d.ts +1 -0
  285. package/lib/core/contexts/index.js +18 -0
  286. package/lib/core/hoc/index.d.ts +1 -0
  287. package/lib/core/hoc/index.js +18 -0
  288. package/lib/core/hoc/typedMemo.d.ts +1 -0
  289. package/lib/core/hoc/typedMemo.js +6 -0
  290. package/lib/core/hooks/__mocks__/index.d.ts +23 -0
  291. package/lib/core/hooks/__mocks__/index.js +40 -0
  292. package/lib/core/hooks/__mocks__/search/use-recent-searches.d.ts +6 -0
  293. package/lib/core/hooks/__mocks__/search/use-recent-searches.js +12 -0
  294. package/lib/core/hooks/__mocks__/search/use-suggested-pages.d.ts +5 -0
  295. package/lib/core/hooks/__mocks__/search/use-suggested-pages.js +12 -0
  296. package/lib/core/hooks/__mocks__/use-mobile-menu.d.ts +2 -0
  297. package/lib/core/hooks/__mocks__/use-mobile-menu.js +6 -0
  298. package/lib/core/hooks/__mocks__/use-theme-config.d.ts +9 -0
  299. package/lib/core/hooks/__mocks__/use-theme-config.js +12 -0
  300. package/lib/core/hooks/__mocks__/use-theme-hooks.d.ts +56 -0
  301. package/lib/core/hooks/__mocks__/use-theme-hooks.js +77 -0
  302. package/lib/core/hooks/__tests__/mocks/mock-intersection-observer.js +79 -0
  303. package/lib/core/hooks/feedback/use-report-dialog.d.ts +13 -0
  304. package/lib/core/hooks/feedback/use-report-dialog.js +44 -0
  305. package/lib/core/hooks/index.d.ts +29 -0
  306. package/lib/core/hooks/index.js +46 -0
  307. package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.d.ts +2 -0
  308. package/lib/core/hooks/menu/__mocks__/use-mobile-menu-items.js +34 -0
  309. package/lib/core/hooks/menu/use-collapse.d.ts +32 -0
  310. package/lib/core/hooks/menu/use-collapse.js +174 -0
  311. package/lib/core/hooks/menu/use-menu-item-expanded.d.ts +3 -0
  312. package/lib/core/hooks/menu/use-menu-item-expanded.js +25 -0
  313. package/lib/core/hooks/menu/use-mobile-menu-items.d.ts +10 -0
  314. package/lib/core/hooks/menu/use-mobile-menu-items.js +84 -0
  315. package/lib/core/hooks/menu/use-mobile-menu-levels.d.ts +5 -0
  316. package/lib/core/hooks/menu/use-mobile-menu-levels.js +45 -0
  317. package/lib/core/hooks/menu/use-nested-menu.d.ts +21 -0
  318. package/lib/core/hooks/menu/use-nested-menu.js +73 -0
  319. package/lib/core/hooks/search/use-recent-searches.d.ts +5 -0
  320. package/lib/core/hooks/search/use-recent-searches.js +39 -0
  321. package/lib/core/hooks/search/use-suggested-pages.d.ts +6 -0
  322. package/lib/core/hooks/search/use-suggested-pages.js +12 -0
  323. package/lib/core/hooks/use-active-heading.js +80 -0
  324. package/lib/core/hooks/use-active-section-id.js +44 -0
  325. package/lib/core/hooks/use-codeblock-tabs-controls.d.ts +13 -0
  326. package/lib/core/hooks/use-codeblock-tabs-controls.js +49 -0
  327. package/lib/core/hooks/use-color-switcher.d.ts +7 -0
  328. package/lib/core/hooks/use-color-switcher.js +33 -0
  329. package/lib/core/hooks/use-control.js +16 -0
  330. package/lib/core/hooks/use-controlled-state.d.ts +1 -0
  331. package/lib/core/hooks/use-controlled-state.js +17 -0
  332. package/lib/core/hooks/use-dialog-hotkeys.js +45 -0
  333. package/lib/core/hooks/use-focus-trap.d.ts +2 -0
  334. package/lib/core/hooks/use-focus-trap.js +35 -0
  335. package/lib/core/hooks/use-full-height.js +48 -0
  336. package/lib/core/hooks/use-language-picker.d.ts +6 -0
  337. package/lib/core/hooks/use-language-picker.js +23 -0
  338. package/lib/core/hooks/use-mobile-menu.d.ts +5 -0
  339. package/lib/core/hooks/use-mobile-menu.js +17 -0
  340. package/lib/core/hooks/use-modal-scroll-lock.d.ts +1 -0
  341. package/lib/core/hooks/use-modal-scroll-lock.js +24 -0
  342. package/lib/core/hooks/use-mount.js +12 -0
  343. package/lib/core/hooks/use-navbar-height.js +21 -0
  344. package/lib/core/hooks/use-outside-click.d.ts +2 -0
  345. package/lib/core/hooks/use-outside-click.js +22 -0
  346. package/lib/core/hooks/use-product-picker.d.ts +5 -0
  347. package/lib/core/hooks/use-product-picker.js +24 -0
  348. package/lib/core/hooks/use-search.d.ts +5 -0
  349. package/lib/core/hooks/use-search.js +43 -0
  350. package/lib/core/hooks/use-tabs.d.ts +14 -0
  351. package/lib/core/hooks/use-tabs.js +57 -0
  352. package/lib/core/hooks/use-theme-config.d.ts +2 -0
  353. package/lib/core/hooks/use-theme-config.js +22 -0
  354. package/lib/core/hooks/use-theme-hooks.d.ts +2 -0
  355. package/lib/core/hooks/use-theme-hooks.js +31 -0
  356. package/lib/core/hooks/use-unmount.js +14 -0
  357. package/lib/core/index.d.ts +7 -0
  358. package/lib/core/index.js +24 -0
  359. package/lib/core/styles/dark.js +302 -0
  360. package/lib/core/styles/global.js +1202 -0
  361. package/lib/core/styles/index.d.ts +2 -0
  362. package/lib/core/styles/index.js +19 -0
  363. package/lib/core/templates/Markdown.d.ts +17 -0
  364. package/lib/core/templates/Markdown.js +69 -0
  365. package/lib/core/types/breadcrumb.d.ts +1 -0
  366. package/lib/core/types/breadcrumb.js +3 -0
  367. package/lib/core/types/catalog.d.ts +43 -0
  368. package/lib/core/types/feedback.d.ts +19 -0
  369. package/lib/core/types/filter.d.ts +9 -0
  370. package/lib/core/types/filter.js +3 -0
  371. package/lib/core/types/hooks.d.ts +73 -0
  372. package/lib/core/types/hooks.js +3 -0
  373. package/lib/core/types/i18n.d.ts +10 -0
  374. package/lib/core/types/i18n.js +3 -0
  375. package/lib/core/types/index.d.ts +12 -0
  376. package/lib/core/types/index.js +29 -0
  377. package/lib/core/types/navbar.d.ts +7 -0
  378. package/lib/core/types/navbar.js +3 -0
  379. package/lib/core/types/search.d.ts +25 -0
  380. package/lib/core/types/search.js +3 -0
  381. package/lib/core/types/select-option.d.ts +4 -0
  382. package/lib/core/types/select-option.js +3 -0
  383. package/lib/core/types/sidebar.d.ts +59 -0
  384. package/lib/core/types/sidebar.js +3 -0
  385. package/lib/core/types/user-menu.d.ts +12 -0
  386. package/lib/core/types/user-menu.js +3 -0
  387. package/lib/core/utils/attribute-parser.d.ts +1 -0
  388. package/lib/core/utils/attribute-parser.js +14 -0
  389. package/lib/core/utils/change-text-casing.d.ts +3 -0
  390. package/lib/core/utils/change-text-casing.js +19 -0
  391. package/lib/core/utils/clipboard-service.js +33 -0
  392. package/lib/core/utils/details.d.ts +1 -0
  393. package/lib/core/utils/details.js +41 -0
  394. package/lib/core/utils/dom.d.ts +2 -0
  395. package/lib/core/utils/dom.js +14 -0
  396. package/lib/core/utils/format-date-without-timezone.d.ts +1 -0
  397. package/lib/core/utils/format-date-without-timezone.js +13 -0
  398. package/lib/core/utils/get-navbar-element.js +15 -0
  399. package/lib/core/utils/get-scorecard-color-variable.d.ts +1 -0
  400. package/lib/core/utils/get-scorecard-color-variable.js +15 -0
  401. package/lib/core/utils/index.d.ts +26 -0
  402. package/lib/core/utils/index.js +43 -0
  403. package/lib/core/utils/is-url.js +37 -0
  404. package/lib/core/utils/js-utils.d.ts +8 -0
  405. package/lib/core/utils/js-utils.js +28 -0
  406. package/lib/core/utils/load-and-navigate.d.ts +3 -0
  407. package/lib/core/utils/load-and-navigate.js +49 -0
  408. package/lib/core/utils/markdoc.d.ts +2 -0
  409. package/lib/core/utils/markdoc.js +8 -0
  410. package/lib/core/utils/media-css.d.ts +6 -0
  411. package/lib/core/utils/media-css.js +5 -0
  412. package/lib/core/utils/menu.d.ts +9 -0
  413. package/lib/core/utils/menu.js +95 -0
  414. package/lib/core/utils/replace-hash-in-color.js +8 -0
  415. package/lib/core/utils/toc.d.ts +4 -0
  416. package/lib/core/utils/toc.js +41 -0
  417. package/lib/core/utils/type-guards.d.ts +5 -0
  418. package/lib/core/utils/type-guards.js +24 -0
  419. package/lib/core/utils/urls.d.ts +27 -0
  420. package/lib/core/utils/urls.js +104 -0
  421. package/lib/core/utils/with-load-progress.d.ts +1 -0
  422. package/lib/core/utils/with-load-progress.js +39 -0
  423. package/lib/icons/AddIcon/AddIcon.d.ts +9 -0
  424. package/lib/icons/AddIcon/AddIcon.js +22 -0
  425. package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.d.ts +9 -0
  426. package/lib/icons/ArrowLeftIcon/ArrowLeftIcon.js +22 -0
  427. package/lib/icons/ArrowRightIcon/ArrowRightIcon.d.ts +9 -0
  428. package/lib/icons/ArrowRightIcon/ArrowRightIcon.js +22 -0
  429. package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.d.ts +9 -0
  430. package/lib/icons/ArrowUpRightIcon/ArrowUpRightIcon.js +22 -0
  431. package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.d.ts +9 -0
  432. package/lib/icons/BareMetalServerIcon/BareMetalServerIcon.js +27 -0
  433. package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.d.ts +9 -0
  434. package/lib/icons/BookmarkAddIcon/BookmarkAddIcon.js +22 -0
  435. package/lib/icons/CharacterIcon/CharacterIcon.d.ts +9 -0
  436. package/lib/icons/CharacterIcon/CharacterIcon.js +24 -0
  437. package/lib/icons/CheckboxIcon/CheckboxIcon.js +5 -11
  438. package/lib/icons/CheckboxIcon/variables.d.ts +1 -0
  439. package/lib/icons/CheckboxIcon/variables.dark.d.ts +1 -0
  440. package/lib/icons/CheckboxIcon/variables.dark.js +10 -0
  441. package/lib/icons/CheckboxIcon/variables.js +22 -0
  442. package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.d.ts +9 -0
  443. package/lib/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.js +22 -0
  444. package/lib/icons/CheckmarkIcon/CheckmarkIcon.d.ts +9 -0
  445. package/lib/icons/CheckmarkIcon/CheckmarkIcon.js +22 -0
  446. package/lib/icons/ChevronDownIcon/ChevronDownIcon.d.ts +9 -0
  447. package/lib/icons/ChevronDownIcon/ChevronDownIcon.js +23 -0
  448. package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.d.ts +9 -0
  449. package/lib/icons/ChevronLeftIcon/ChevronLeftIcon.js +22 -0
  450. package/lib/icons/ChevronRightIcon/ChevronRightIcon.d.ts +9 -0
  451. package/lib/icons/ChevronRightIcon/ChevronRightIcon.js +22 -0
  452. package/lib/icons/ChevronSortIcon/ChevronSortIcon.d.ts +11 -0
  453. package/lib/icons/ChevronSortIcon/ChevronSortIcon.js +22 -0
  454. package/lib/icons/ChevronUpIcon/ChevronUpIcon.d.ts +9 -0
  455. package/lib/icons/ChevronUpIcon/ChevronUpIcon.js +23 -0
  456. package/lib/icons/CircleDashIcon/CircleDashIcon.d.ts +9 -0
  457. package/lib/icons/CircleDashIcon/CircleDashIcon.js +31 -0
  458. package/lib/icons/CleanIcon/CleanIcon.d.ts +9 -0
  459. package/lib/icons/CleanIcon/CleanIcon.js +25 -0
  460. package/lib/icons/CloseFilledIcon/CloseFilledIcon.d.ts +9 -0
  461. package/lib/icons/CloseFilledIcon/CloseFilledIcon.js +21 -0
  462. package/lib/icons/CloseIcon/CloseIcon.d.ts +7 -3
  463. package/lib/icons/CloseIcon/CloseIcon.js +13 -6
  464. package/lib/icons/CloudUploadIcon/CloudUploadIcon.d.ts +9 -0
  465. package/lib/icons/CloudUploadIcon/CloudUploadIcon.js +23 -0
  466. package/lib/icons/CodeIcon/CodeIcon.d.ts +9 -0
  467. package/lib/icons/CodeIcon/CodeIcon.js +24 -0
  468. package/lib/icons/ContrastIcon/ContrastIcon.d.ts +9 -0
  469. package/lib/icons/ContrastIcon/ContrastIcon.js +22 -0
  470. package/lib/icons/CookieIcon/CookieIcon.d.ts +9 -0
  471. package/lib/icons/CookieIcon/CookieIcon.js +29 -0
  472. package/lib/icons/CopyIcon/CopyIcon.d.ts +8 -5
  473. package/lib/icons/CopyIcon/CopyIcon.js +12 -6
  474. package/lib/icons/CopyLinkIcon/CopyLinkIcon.d.ts +9 -0
  475. package/lib/icons/CopyLinkIcon/CopyLinkIcon.js +24 -0
  476. package/lib/icons/DataFormatIcon/DataFormatIcon.d.ts +9 -0
  477. package/lib/icons/DataFormatIcon/DataFormatIcon.js +26 -0
  478. package/lib/icons/DatabaseIcon/DatabaseIcon.d.ts +9 -0
  479. package/lib/icons/DatabaseIcon/DatabaseIcon.js +22 -0
  480. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +4 -6
  481. package/lib/icons/DeselectIcon/DeselectIcon.js +11 -4
  482. package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.d.ts +9 -0
  483. package/lib/icons/DocumentBlankIcon/DocumentBlankIcon.js +22 -0
  484. package/lib/icons/DocumentIcon/DocumentIcon.d.ts +9 -0
  485. package/lib/icons/DocumentIcon/DocumentIcon.js +24 -0
  486. package/lib/icons/DocumentIcon/index.d.ts +1 -0
  487. package/lib/icons/DocumentIcon/index.js +6 -0
  488. package/lib/icons/DownloadIcon/DownloadIcon.d.ts +9 -0
  489. package/lib/icons/DownloadIcon/DownloadIcon.js +23 -0
  490. package/lib/icons/EditIcon/EditIcon.d.ts +8 -5
  491. package/lib/icons/EditIcon/EditIcon.js +13 -8
  492. package/lib/icons/EmailIcon/EmailIcon.d.ts +9 -0
  493. package/lib/icons/EmailIcon/EmailIcon.js +22 -0
  494. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +7 -2
  495. package/lib/icons/ErrorIcon/ErrorIcon.js +11 -3
  496. package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.d.ts +9 -0
  497. package/lib/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.js +25 -0
  498. package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.d.ts +9 -0
  499. package/lib/icons/FaceNeutralIcon/FaceNeutralIcon.js +25 -0
  500. package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.d.ts +9 -0
  501. package/lib/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.js +25 -0
  502. package/lib/icons/FileIcon/FileIcon.d.ts +8 -6
  503. package/lib/icons/FileIcon/FileIcon.js +13 -12
  504. package/lib/icons/FileStorageIcon/FileStorageIcon.d.ts +9 -0
  505. package/lib/icons/FileStorageIcon/FileStorageIcon.js +24 -0
  506. package/lib/icons/FilterIcon/FilterIcon.d.ts +9 -0
  507. package/lib/icons/FilterIcon/FilterIcon.js +22 -0
  508. package/lib/icons/FolderAddIcon/FolderAddIcon.d.ts +9 -0
  509. package/lib/icons/FolderAddIcon/FolderAddIcon.js +23 -0
  510. package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.d.ts +9 -0
  511. package/lib/icons/FolderMoveToIcon/FolderMoveToIcon.js +23 -0
  512. package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.d.ts +9 -0
  513. package/lib/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.js +22 -0
  514. package/lib/icons/GridIcon/GridIcon.d.ts +9 -0
  515. package/lib/icons/GridIcon/GridIcon.js +25 -0
  516. package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.d.ts +9 -0
  517. package/lib/icons/HorizontalViewIcon/HorizontalViewIcon.js +23 -0
  518. package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.d.ts +9 -0
  519. package/lib/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.js +24 -0
  520. package/lib/icons/InformationFilledIcon/InformationFilledIcon.d.ts +9 -0
  521. package/lib/icons/InformationFilledIcon/InformationFilledIcon.js +22 -0
  522. package/lib/icons/InformationIcon/InformationIcon.d.ts +9 -0
  523. package/lib/icons/InformationIcon/InformationIcon.js +24 -0
  524. package/lib/icons/JsonIcon/JsonIcon.d.ts +9 -0
  525. package/lib/icons/JsonIcon/JsonIcon.js +25 -0
  526. package/lib/icons/LaunchIcon/LaunchIcon.d.ts +9 -0
  527. package/lib/icons/LaunchIcon/LaunchIcon.js +23 -0
  528. package/lib/icons/LinkIcon/LinkIcon.d.ts +9 -0
  529. package/lib/icons/LinkIcon/LinkIcon.js +23 -0
  530. package/lib/icons/LogoutIcon/LogoutIcon.d.ts +7 -3
  531. package/lib/icons/LogoutIcon/LogoutIcon.js +14 -8
  532. package/lib/icons/MaximizeIcon/MaximizeIcon.d.ts +9 -0
  533. package/lib/icons/MaximizeIcon/MaximizeIcon.js +23 -0
  534. package/lib/icons/MenuIcon/MenuIcon.d.ts +9 -0
  535. package/lib/icons/MenuIcon/MenuIcon.js +22 -0
  536. package/lib/icons/MinimizeIcon/MinimizeIcon.d.ts +9 -0
  537. package/lib/icons/MinimizeIcon/MinimizeIcon.js +23 -0
  538. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.d.ts +9 -0
  539. package/lib/icons/MobileSidebarIcon/MobileSidebarIcon.js +27 -0
  540. package/lib/icons/MoonIcon/MoonIcon.d.ts +9 -0
  541. package/lib/icons/MoonIcon/MoonIcon.js +22 -0
  542. package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.d.ts +9 -0
  543. package/lib/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.js +24 -0
  544. package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.d.ts +9 -0
  545. package/lib/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.js +24 -0
  546. package/lib/icons/PlusCustomIcon/PlusCustomIcon.d.ts +9 -0
  547. package/lib/icons/PlusCustomIcon/PlusCustomIcon.js +23 -0
  548. package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.d.ts +9 -0
  549. package/lib/icons/RecentlyViewedIcon/RecentlyViewedIcon.js +23 -0
  550. package/lib/icons/RenewIcon/RenewIcon.d.ts +9 -0
  551. package/lib/icons/RenewIcon/RenewIcon.js +23 -0
  552. package/lib/icons/RestartIcon/RestartIcon.d.ts +9 -0
  553. package/lib/icons/RestartIcon/RestartIcon.js +22 -0
  554. package/lib/icons/RocketIcon/RocketIcon.d.ts +8 -6
  555. package/lib/icons/RocketIcon/RocketIcon.js +13 -5
  556. package/lib/icons/SaveIcon/SaveIcon.d.ts +9 -0
  557. package/lib/icons/SaveIcon/SaveIcon.js +22 -0
  558. package/lib/icons/SearchIcon/SearchIcon.d.ts +9 -0
  559. package/lib/icons/SearchIcon/SearchIcon.js +22 -0
  560. package/lib/icons/SecurityIcon/SecurityIcon.d.ts +9 -0
  561. package/lib/icons/SecurityIcon/SecurityIcon.js +23 -0
  562. package/lib/icons/SelectIcon/SelectIcon.d.ts +4 -5
  563. package/lib/icons/SelectIcon/SelectIcon.js +11 -4
  564. package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.d.ts +9 -0
  565. package/lib/icons/SidePanelCloseIcon/SidePanelCloseIcon.js +22 -0
  566. package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.d.ts +9 -0
  567. package/lib/icons/SidePanelOpenIcon/SidePanelOpenIcon.js +22 -0
  568. package/lib/icons/Spinner/Spinner.d.ts +11 -0
  569. package/lib/icons/Spinner/Spinner.js +41 -0
  570. package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +2 -5
  571. package/lib/icons/SpinnerIcon/SpinnerIcon.js +12 -8
  572. package/lib/icons/StarFilledIcon/StarFilledIcon.d.ts +9 -0
  573. package/lib/icons/StarFilledIcon/StarFilledIcon.js +22 -0
  574. package/lib/icons/StarIcon/StarIcon.d.ts +9 -0
  575. package/lib/icons/StarIcon/StarIcon.js +22 -0
  576. package/lib/icons/SubtractIcon/SubtractIcon.d.ts +9 -0
  577. package/lib/icons/SubtractIcon/SubtractIcon.js +22 -0
  578. package/lib/icons/SunIcon/SunIcon.d.ts +9 -0
  579. package/lib/icons/SunIcon/SunIcon.js +30 -0
  580. package/lib/icons/TableBuiltIcon/TableBuiltIcon.d.ts +9 -0
  581. package/lib/icons/TableBuiltIcon/TableBuiltIcon.js +22 -0
  582. package/lib/icons/TimeIcon/TimeIcon.d.ts +9 -0
  583. package/lib/icons/TimeIcon/TimeIcon.js +23 -0
  584. package/lib/icons/TrashCanIcon/TrashCanIcon.d.ts +9 -0
  585. package/lib/icons/TrashCanIcon/TrashCanIcon.js +26 -0
  586. package/lib/icons/UserIcon/UserIcon.d.ts +9 -0
  587. package/lib/icons/UserIcon/UserIcon.js +23 -0
  588. package/lib/icons/ValueVariableIcon/ValueVariableIcon.d.ts +9 -0
  589. package/lib/icons/ValueVariableIcon/ValueVariableIcon.js +23 -0
  590. package/lib/icons/VerticalViewIcon/VerticalViewIcon.d.ts +9 -0
  591. package/lib/icons/VerticalViewIcon/VerticalViewIcon.js +23 -0
  592. package/lib/icons/ViewIcon/ViewIcon.d.ts +9 -0
  593. package/lib/icons/ViewIcon/ViewIcon.js +23 -0
  594. package/lib/icons/ViewOffIcon/ViewOffIcon.d.ts +9 -0
  595. package/lib/icons/ViewOffIcon/ViewOffIcon.js +24 -0
  596. package/lib/icons/WarningAltIcon/WarningAltIcon.d.ts +9 -0
  597. package/lib/icons/WarningAltIcon/WarningAltIcon.js +24 -0
  598. package/lib/icons/WarningFilledIcon/WarningFilledIcon.d.ts +9 -0
  599. package/lib/icons/WarningFilledIcon/WarningFilledIcon.js +22 -0
  600. package/lib/icons/WarningSquareIcon/WarningSquareIcon.d.ts +9 -0
  601. package/lib/icons/WarningSquareIcon/WarningSquareIcon.js +24 -0
  602. package/lib/icons/types.d.ts +6 -0
  603. package/lib/index.d.ts +206 -9
  604. package/lib/index.js +245 -9
  605. package/lib/layouts/DocumentationLayout.d.ts +17 -0
  606. package/lib/layouts/DocumentationLayout.js +66 -0
  607. package/lib/layouts/Forbidden.d.ts +0 -1
  608. package/lib/layouts/Forbidden.js +5 -4
  609. package/lib/layouts/NotFound.d.ts +0 -1
  610. package/lib/layouts/NotFound.js +24 -19
  611. package/lib/layouts/OIDCForbidden.d.ts +0 -1
  612. package/lib/layouts/OIDCForbidden.js +5 -4
  613. package/lib/layouts/RootLayout.js +3 -5
  614. package/lib/layouts/ThreePanelLayout.d.ts +11 -0
  615. package/lib/layouts/ThreePanelLayout.js +84 -0
  616. package/lib/markdoc/attributes/code-snippet-file.d.ts +5 -0
  617. package/lib/markdoc/attributes/code-snippet-file.js +16 -0
  618. package/lib/markdoc/attributes/img-src.d.ts +5 -0
  619. package/lib/markdoc/attributes/img-src.js +16 -0
  620. package/lib/markdoc/attributes/img-srcset.d.ts +5 -0
  621. package/lib/markdoc/attributes/img-srcset.js +16 -0
  622. package/lib/markdoc/attributes/relative-path.d.ts +5 -0
  623. package/lib/markdoc/attributes/relative-path.js +16 -0
  624. package/lib/markdoc/attributes/svg-content.d.ts +5 -0
  625. package/lib/markdoc/attributes/svg-content.js +16 -0
  626. package/lib/markdoc/components/Admonition/Admonition.d.ts +3 -0
  627. package/lib/markdoc/components/Admonition/Admonition.js +13 -0
  628. package/lib/markdoc/components/CodeBlock/CodeBlock.d.ts +3 -0
  629. package/lib/markdoc/components/CodeBlock/CodeBlock.js +13 -0
  630. package/lib/markdoc/components/Heading/Heading.js +48 -0
  631. package/lib/markdoc/components/HtmlBlock/HtmlBlock.d.ts +4 -0
  632. package/lib/markdoc/components/HtmlBlock/HtmlBlock.js +32 -0
  633. package/lib/markdoc/components/InlineSvg/InlineSvg.d.ts +4 -0
  634. package/lib/markdoc/components/InlineSvg/InlineSvg.js +32 -0
  635. package/lib/markdoc/components/MarkdocExample/MarkdocExample.d.ts +11 -0
  636. package/lib/markdoc/components/MarkdocExample/MarkdocExample.js +47 -0
  637. package/lib/markdoc/components/Mermaid/Mermaid.d.ts +8 -0
  638. package/lib/markdoc/components/Mermaid/Mermaid.js +27 -0
  639. package/lib/markdoc/components/Mermaid/variables.d.ts +1 -0
  640. package/lib/markdoc/components/Mermaid/variables.dark.d.ts +1 -0
  641. package/lib/markdoc/components/Mermaid/variables.dark.js +8 -0
  642. package/lib/markdoc/components/Mermaid/variables.js +16 -0
  643. package/lib/markdoc/components/Tabs/Tab.d.ts +12 -0
  644. package/lib/markdoc/components/Tabs/Tab.js +98 -0
  645. package/lib/markdoc/components/Tabs/Tabs.d.ts +14 -0
  646. package/lib/markdoc/components/Tabs/Tabs.js +79 -0
  647. package/lib/markdoc/components/Tabs/variables.d.ts +1 -0
  648. package/lib/markdoc/components/Tabs/variables.js +70 -0
  649. package/lib/markdoc/components/default.d.ts +9 -0
  650. package/lib/markdoc/components/default.js +26 -0
  651. package/lib/markdoc/default.d.ts +9 -0
  652. package/lib/markdoc/default.js +59 -0
  653. package/lib/markdoc/tags/admonition.d.ts +2 -0
  654. package/lib/markdoc/tags/admonition.js +14 -0
  655. package/lib/markdoc/tags/code-snippet.d.ts +2 -0
  656. package/lib/markdoc/tags/code-snippet.js +60 -0
  657. package/lib/markdoc/tags/debug.d.ts +2 -0
  658. package/lib/markdoc/tags/debug.js +20 -0
  659. package/lib/markdoc/tags/html.d.ts +2 -0
  660. package/lib/markdoc/tags/html.js +25 -0
  661. package/lib/markdoc/tags/inline-svg.d.ts +2 -0
  662. package/lib/markdoc/tags/inline-svg.js +16 -0
  663. package/lib/markdoc/tags/markdoc-example.d.ts +2 -0
  664. package/lib/markdoc/tags/markdoc-example.js +32 -0
  665. package/lib/markdoc/tags/partial.d.ts +2 -0
  666. package/lib/markdoc/tags/partial.js +36 -0
  667. package/lib/markdoc/tags/tab.d.ts +2 -0
  668. package/lib/markdoc/tags/tab.js +13 -0
  669. package/lib/markdoc/tags/tabs.d.ts +2 -0
  670. package/lib/markdoc/tags/tabs.js +27 -0
  671. package/lib/markdoc/tags/types.d.ts +5 -0
  672. package/package.json +20 -10
  673. package/src/components/Admonition/Admonition.tsx +125 -0
  674. package/src/components/Admonition/variables.ts +97 -0
  675. package/src/components/Badge/Badge.tsx +24 -0
  676. package/src/components/Breadcrumbs/Breadcrumb.tsx +6 -6
  677. package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -6
  678. package/src/components/Breadcrumbs/variables.ts +17 -0
  679. package/src/components/Button/Button.tsx +133 -107
  680. package/src/components/Button/variables.dark.ts +27 -0
  681. package/src/components/Button/variables.ts +218 -0
  682. package/src/components/Buttons/CopyButton.tsx +75 -0
  683. package/src/components/Buttons/EditPageButton.tsx +56 -0
  684. package/src/components/Buttons/EmailButton.tsx +28 -0
  685. package/src/components/Buttons/NewTabButton.tsx +28 -0
  686. package/src/components/Catalog/Catalog.tsx +56 -99
  687. package/src/components/Catalog/CatalogActions.tsx +66 -0
  688. package/src/components/Catalog/CatalogCard.tsx +77 -100
  689. package/src/components/Catalog/CatalogHighlight.tsx +56 -0
  690. package/src/components/Catalog/CatalogInfoBlock.tsx +83 -0
  691. package/src/components/Catalog/variables.ts +103 -0
  692. package/src/components/CodeBlock/CodeBlock.tsx +54 -47
  693. package/src/components/CodeBlock/CodeBlockContainer.tsx +99 -108
  694. package/src/components/CodeBlock/CodeBlockControls.tsx +81 -132
  695. package/src/components/CodeBlock/CodeBlockTabs.tsx +133 -0
  696. package/src/components/CodeBlock/variables.ts +92 -0
  697. package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +28 -0
  698. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +19 -63
  699. package/src/components/DatePicker/DatePicker.tsx +74 -0
  700. package/src/components/DatePicker/variables.ts +21 -0
  701. package/src/components/Dropdown/Dropdown.tsx +68 -93
  702. package/src/components/Dropdown/DropdownMenu.tsx +75 -0
  703. package/src/components/Dropdown/DropdownMenuItem.tsx +179 -0
  704. package/src/components/Dropdown/variables.ts +41 -0
  705. package/src/components/Feedback/Comment.tsx +97 -65
  706. package/src/components/Feedback/Feedback.tsx +61 -73
  707. package/src/components/Feedback/Mood.tsx +117 -105
  708. package/src/components/Feedback/Rating.tsx +91 -67
  709. package/src/components/Feedback/Reasons.tsx +25 -16
  710. package/src/components/Feedback/ReportDialog.tsx +50 -25
  711. package/src/components/Feedback/Scale.tsx +92 -68
  712. package/src/components/Feedback/Sentiment.tsx +121 -110
  713. package/src/components/Feedback/Stars.tsx +15 -16
  714. package/src/components/Feedback/variables.ts +31 -0
  715. package/src/components/Filter/Filter.tsx +16 -259
  716. package/src/components/Filter/FilterCheckboxes.tsx +58 -0
  717. package/src/components/Filter/FilterContent.tsx +43 -53
  718. package/src/components/Filter/FilterDateRange.tsx +97 -0
  719. package/src/components/Filter/FilterInput.tsx +73 -0
  720. package/src/components/Filter/FilterOption.tsx +16 -0
  721. package/src/components/Filter/FilterOptionLabel.tsx +12 -0
  722. package/src/components/Filter/FilterOptions.tsx +10 -0
  723. package/src/components/Filter/FilterPopover.tsx +21 -77
  724. package/src/components/Filter/FilterSelect.tsx +83 -0
  725. package/src/components/Filter/FilterTitle.tsx +9 -0
  726. package/src/components/Filter/variables.ts +95 -0
  727. package/src/components/Footer/Footer.tsx +66 -47
  728. package/src/components/Footer/FooterColumn.tsx +54 -106
  729. package/src/components/Footer/FooterCopyright.tsx +17 -11
  730. package/src/components/Footer/FooterItem.tsx +94 -0
  731. package/src/components/Footer/FooterLogo.tsx +13 -0
  732. package/src/components/Footer/variables.ts +59 -0
  733. package/src/components/Image/Image.tsx +2 -12
  734. package/src/components/JsonViewer/JsonViewer.tsx +47 -177
  735. package/src/components/JsonViewer/helpers.tsx +207 -0
  736. package/src/components/LanguagePicker/LanguagePicker.tsx +99 -0
  737. package/src/components/LanguagePicker/variables.ts +34 -0
  738. package/src/components/LastUpdated/LastUpdated.tsx +8 -9
  739. package/src/components/LastUpdated/variables.ts +8 -0
  740. package/src/components/Link/Link.tsx +38 -0
  741. package/src/components/Loading/Loading.tsx +27 -0
  742. package/src/components/Logo/Logo.tsx +50 -0
  743. package/src/components/Logo/variables.ts +14 -0
  744. package/src/components/Markdown/Markdown.tsx +278 -0
  745. package/src/components/Markdown/styles/baseTable.ts +61 -0
  746. package/src/components/Markdown/styles/headingAnchor.ts +35 -0
  747. package/src/components/Markdown/styles/links.ts +20 -0
  748. package/src/components/Markdown/variables.ts +96 -0
  749. package/src/components/Menu/Menu.tsx +34 -16
  750. package/src/components/Menu/MenuContainer.tsx +44 -8
  751. package/src/components/Menu/MenuItem.tsx +295 -36
  752. package/src/components/Menu/MenuMobile.tsx +182 -0
  753. package/src/components/Menu/variables.dark.ts +8 -0
  754. package/src/components/Menu/variables.ts +176 -0
  755. package/src/components/Navbar/Navbar.tsx +83 -130
  756. package/src/components/Navbar/NavbarItem.tsx +82 -91
  757. package/src/components/Navbar/NavbarLogo.tsx +13 -0
  758. package/src/components/Navbar/NavbarMenu.tsx +14 -10
  759. package/src/components/Navbar/variables.ts +51 -0
  760. package/src/components/PageNavigation/NextButton.tsx +39 -20
  761. package/src/components/PageNavigation/PageNavigation.tsx +7 -6
  762. package/src/components/PageNavigation/PreviousButton.tsx +39 -23
  763. package/src/components/Panel/Panel.tsx +111 -0
  764. package/src/components/Panel/PanelBody.ts +1 -3
  765. package/src/components/Panel/PanelHeader.ts +14 -7
  766. package/src/components/Panel/PanelHeaderTitle.ts +1 -0
  767. package/src/components/Panel/variables.ts +408 -0
  768. package/src/components/Portal/Portal.tsx +20 -0
  769. package/src/components/Product/Product.tsx +5 -5
  770. package/src/components/Product/ProductPicker.tsx +67 -76
  771. package/src/components/Product/variables.ts +36 -0
  772. package/src/components/Scorecard/variables.dark.ts +17 -0
  773. package/src/components/Scorecard/variables.ts +21 -0
  774. package/src/components/Search/Search.tsx +13 -47
  775. package/src/components/Search/SearchDialog.tsx +121 -85
  776. package/src/components/Search/SearchHighlight.tsx +20 -0
  777. package/src/components/Search/SearchInput.tsx +84 -0
  778. package/src/components/Search/SearchItem.tsx +119 -94
  779. package/src/components/Search/SearchRecent.tsx +129 -0
  780. package/src/components/Search/SearchShortcut.tsx +32 -0
  781. package/src/components/Search/SearchSuggestedPages.tsx +84 -0
  782. package/src/components/Search/SearchTrigger.tsx +69 -42
  783. package/src/components/Search/variables.ts +95 -0
  784. package/src/components/Segmented/Segmented.tsx +88 -0
  785. package/src/components/Segmented/variables.dark.ts +6 -0
  786. package/src/components/Segmented/variables.ts +23 -0
  787. package/src/components/Select/Select.tsx +67 -49
  788. package/src/components/Select/variables.ts +34 -0
  789. package/src/components/Sidebar/Sidebar.tsx +123 -15
  790. package/src/components/Sidebar/variables.ts +57 -0
  791. package/src/components/SidebarActions/ChangeViewButton.tsx +22 -6
  792. package/src/components/SidebarActions/SidebarActions.tsx +36 -46
  793. package/src/components/SidebarActions/styled.tsx +21 -110
  794. package/src/components/SidebarLogo/SidebarLogo.tsx +1 -1
  795. package/src/components/StatusCode/StatusCode.ts +32 -0
  796. package/src/components/StatusCode/variables.dark.ts +5 -0
  797. package/src/components/StatusCode/variables.ts +13 -0
  798. package/src/components/TableOfContent/TableOfContent.tsx +51 -42
  799. package/src/components/TableOfContent/variables.ts +46 -0
  800. package/src/components/Tag/Tag.tsx +40 -9
  801. package/src/components/Tag/variables.dark.ts +16 -0
  802. package/src/components/Tag/variables.ts +185 -0
  803. package/src/components/Tags/CounterTag.tsx +13 -0
  804. package/src/components/Tags/HttpTag.tsx +24 -0
  805. package/src/components/Tags/variables.ts +18 -0
  806. package/src/components/Tooltip/Tooltip.tsx +6 -6
  807. package/src/components/Tooltip/variables.ts +18 -0
  808. package/src/components/Typography/CompactTypography.ts +1 -1
  809. package/src/components/Typography/H1.ts +1 -1
  810. package/src/components/Typography/H2.ts +1 -1
  811. package/src/components/Typography/H3.ts +1 -1
  812. package/src/components/Typography/H4.ts +13 -0
  813. package/src/components/Typography/Typography.ts +1 -1
  814. package/src/components/UserMenu/LoginButton.tsx +31 -0
  815. package/src/components/UserMenu/LogoutMenuItem.tsx +37 -0
  816. package/src/components/UserMenu/UserAvatar.tsx +63 -0
  817. package/src/components/UserMenu/UserInfoMenuItem.tsx +73 -0
  818. package/src/components/UserMenu/UserMenu.tsx +130 -0
  819. package/src/components/UserMenu/UserMenuMobile.tsx +63 -0
  820. package/src/components/UserMenu/variables.ts +61 -0
  821. package/src/components/VersionPicker/VersionPicker.tsx +110 -0
  822. package/src/components/VersionPicker/variables.ts +39 -0
  823. package/src/config.ts +31 -779
  824. package/src/core/constants/common.ts +25 -0
  825. package/src/core/constants/environments.ts +9 -0
  826. package/src/core/constants/index.ts +2 -0
  827. package/src/core/contexts/ThemeDataContext.tsx +15 -0
  828. package/src/core/contexts/index.ts +1 -0
  829. package/src/core/hoc/index.ts +1 -0
  830. package/src/core/hoc/typedMemo.ts +3 -0
  831. package/src/core/hooks/__mocks__/index.ts +23 -0
  832. package/src/core/hooks/__mocks__/search/use-recent-searches.ts +8 -0
  833. package/src/core/hooks/__mocks__/search/use-suggested-pages.ts +8 -0
  834. package/src/core/hooks/__mocks__/use-mobile-menu.ts +1 -0
  835. package/src/core/hooks/__mocks__/use-theme-config.ts +8 -0
  836. package/src/core/hooks/__mocks__/use-theme-hooks.ts +75 -0
  837. package/src/core/hooks/feedback/use-report-dialog.ts +56 -0
  838. package/src/core/hooks/index.ts +29 -0
  839. package/src/core/hooks/menu/__mocks__/use-mobile-menu-items.ts +30 -0
  840. package/src/core/hooks/menu/use-collapse.ts +212 -0
  841. package/src/core/hooks/menu/use-menu-item-expanded.ts +30 -0
  842. package/src/core/hooks/menu/use-mobile-menu-items.ts +110 -0
  843. package/src/core/hooks/menu/use-mobile-menu-levels.ts +50 -0
  844. package/src/core/hooks/menu/use-nested-menu.ts +78 -0
  845. package/src/core/hooks/search/use-recent-searches.ts +47 -0
  846. package/src/core/hooks/search/use-suggested-pages.ts +7 -0
  847. package/src/core/hooks/use-active-section-id.ts +54 -0
  848. package/src/core/hooks/use-codeblock-tabs-controls.ts +62 -0
  849. package/src/core/hooks/use-color-switcher.ts +34 -0
  850. package/src/core/hooks/use-controlled-state.ts +23 -0
  851. package/src/core/hooks/use-focus-trap.ts +39 -0
  852. package/src/core/hooks/use-language-picker.ts +31 -0
  853. package/src/core/hooks/use-mobile-menu.ts +17 -0
  854. package/src/core/hooks/use-modal-scroll-lock.ts +21 -0
  855. package/src/core/hooks/use-navbar-height.ts +25 -0
  856. package/src/core/hooks/use-outside-click.ts +23 -0
  857. package/src/core/hooks/use-product-picker.ts +20 -0
  858. package/src/core/hooks/use-search.ts +42 -0
  859. package/src/core/hooks/use-tabs.ts +62 -0
  860. package/src/core/hooks/use-theme-config.ts +31 -0
  861. package/src/core/hooks/use-theme-hooks.ts +31 -0
  862. package/src/core/index.ts +7 -0
  863. package/src/core/styles/dark.ts +300 -0
  864. package/src/core/styles/global.ts +1224 -0
  865. package/src/core/styles/index.ts +2 -0
  866. package/src/core/templates/Markdown.tsx +68 -0
  867. package/src/core/types/breadcrumb.ts +1 -0
  868. package/src/core/types/catalog.ts +39 -0
  869. package/src/core/types/feedback.ts +27 -0
  870. package/src/core/types/filter.ts +9 -0
  871. package/src/core/types/hooks.ts +113 -0
  872. package/src/core/types/i18n.ts +142 -0
  873. package/src/core/types/index.ts +12 -0
  874. package/src/core/types/markdown.ts +5 -0
  875. package/src/core/types/navbar.ts +7 -0
  876. package/src/core/types/search.ts +25 -0
  877. package/src/core/types/select-option.ts +4 -0
  878. package/src/core/types/sidebar.ts +70 -0
  879. package/src/core/types/user-menu.ts +12 -0
  880. package/src/core/utils/attribute-parser.ts +11 -0
  881. package/src/core/utils/change-text-casing.ts +18 -0
  882. package/src/core/utils/details.ts +43 -0
  883. package/src/core/utils/dom.ts +9 -0
  884. package/src/core/utils/format-date-without-timezone.ts +9 -0
  885. package/src/core/utils/get-scorecard-color-variable.ts +18 -0
  886. package/src/core/utils/index.ts +26 -0
  887. package/src/core/utils/js-utils.ts +25 -0
  888. package/src/core/utils/load-and-navigate.ts +46 -0
  889. package/src/core/utils/markdoc.ts +5 -0
  890. package/src/core/utils/media-css.ts +7 -0
  891. package/src/core/utils/menu.ts +123 -0
  892. package/src/core/utils/toc.ts +42 -0
  893. package/src/core/utils/type-guards.ts +19 -0
  894. package/src/core/utils/urls.ts +123 -0
  895. package/src/core/utils/with-load-progress.ts +25 -0
  896. package/src/icons/AddIcon/AddIcon.tsx +23 -0
  897. package/src/icons/ArrowLeftIcon/ArrowLeftIcon.tsx +30 -0
  898. package/src/icons/ArrowRightIcon/ArrowRightIcon.tsx +23 -0
  899. package/src/icons/ArrowUpRightIcon/ArrowUpRightIcon.tsx +23 -0
  900. package/src/icons/BareMetalServerIcon/BareMetalServerIcon.tsx +28 -0
  901. package/src/icons/BookmarkAddIcon/BookmarkAddIcon.tsx +23 -0
  902. package/src/icons/CharacterIcon/CharacterIcon.tsx +25 -0
  903. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +10 -13
  904. package/src/icons/CheckboxIcon/variables.dark.ts +7 -0
  905. package/src/icons/CheckboxIcon/variables.ts +19 -0
  906. package/src/icons/CheckmarkFilledIcon/CheckmarkFilledIcon.tsx +23 -0
  907. package/src/icons/CheckmarkIcon/CheckmarkIcon.tsx +23 -0
  908. package/src/icons/ChevronDownIcon/ChevronDownIcon.tsx +24 -0
  909. package/src/icons/ChevronLeftIcon/ChevronLeftIcon.tsx +23 -0
  910. package/src/icons/ChevronRightIcon/ChevronRightIcon.tsx +23 -0
  911. package/src/icons/ChevronSortIcon/ChevronSortIcon.tsx +36 -0
  912. package/src/icons/ChevronUpIcon/ChevronUpIcon.tsx +24 -0
  913. package/src/icons/CircleDashIcon/CircleDashIcon.tsx +32 -0
  914. package/src/icons/CleanIcon/CleanIcon.tsx +26 -0
  915. package/src/icons/CloseFilledIcon/CloseFilledIcon.tsx +22 -0
  916. package/src/icons/CloseIcon/CloseIcon.tsx +15 -4
  917. package/src/icons/CloudUploadIcon/CloudUploadIcon.tsx +24 -0
  918. package/src/icons/CodeIcon/CodeIcon.tsx +25 -0
  919. package/src/icons/ContrastIcon/ContrastIcon.tsx +23 -0
  920. package/src/icons/CookieIcon/CookieIcon.tsx +30 -0
  921. package/src/icons/CopyIcon/CopyIcon.tsx +14 -19
  922. package/src/icons/CopyLinkIcon/CopyLinkIcon.tsx +25 -0
  923. package/src/icons/DataFormatIcon/DataFormatIcon.tsx +27 -0
  924. package/src/icons/DatabaseIcon/DatabaseIcon.tsx +23 -0
  925. package/src/icons/DeselectIcon/DeselectIcon.tsx +14 -9
  926. package/src/icons/DocumentBlankIcon/DocumentBlankIcon.tsx +23 -0
  927. package/src/icons/DocumentIcon/DocumentIcon.tsx +32 -0
  928. package/src/icons/DocumentIcon/index.ts +1 -0
  929. package/src/icons/DownloadIcon/DownloadIcon.tsx +24 -0
  930. package/src/icons/EditIcon/EditIcon.tsx +16 -22
  931. package/src/icons/EmailIcon/EmailIcon.tsx +23 -0
  932. package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -7
  933. package/src/icons/FaceDissatisfiedIcon/FaceDissatisfiedIcon.tsx +26 -0
  934. package/src/icons/FaceNeutralIcon/FaceNeutralIcon.tsx +26 -0
  935. package/src/icons/FaceSatisfiedIcon/FaceSatisfiedIcon.tsx +26 -0
  936. package/src/icons/FileIcon/FileIcon.tsx +14 -24
  937. package/src/icons/FileStorageIcon/FileStorageIcon.tsx +25 -0
  938. package/src/icons/FilterIcon/FilterIcon.tsx +26 -0
  939. package/src/icons/FolderAddIcon/FolderAddIcon.tsx +24 -0
  940. package/src/icons/FolderMoveToIcon/FolderMoveToIcon.tsx +24 -0
  941. package/src/icons/GlobalOutlinedIcon/GlobalOutlinedIcon.tsx +23 -0
  942. package/src/icons/GridIcon/GridIcon.tsx +38 -0
  943. package/src/icons/HorizontalViewIcon/HorizontalViewIcon.tsx +24 -0
  944. package/src/icons/IBMCloudHyperProtectCryptoServicesIcon/IBMCloudHyperProtectCryptoServicesIcon.tsx +26 -0
  945. package/src/icons/InformationFilledIcon/InformationFilledIcon.tsx +23 -0
  946. package/src/icons/InformationIcon/InformationIcon.tsx +25 -0
  947. package/src/icons/JsonIcon/JsonIcon.tsx +33 -0
  948. package/src/icons/LaunchIcon/LaunchIcon.tsx +24 -0
  949. package/src/icons/LinkIcon/LinkIcon.tsx +24 -0
  950. package/src/icons/LogoutIcon/LogoutIcon.tsx +16 -12
  951. package/src/icons/MaximizeIcon/MaximizeIcon.tsx +24 -0
  952. package/src/icons/MenuIcon/MenuIcon.tsx +27 -0
  953. package/src/icons/MinimizeIcon/MinimizeIcon.tsx +24 -0
  954. package/src/icons/MobileSidebarIcon/MobileSidebarIcon.tsx +34 -0
  955. package/src/icons/MoonIcon/MoonIcon.tsx +23 -0
  956. package/src/icons/OverflowMenuHorizontalIcon/OverflowMenuHorizontalIcon.tsx +25 -0
  957. package/src/icons/OverflowMenuVerticalIcon/OverflowMenuVerticalIcon.tsx +25 -0
  958. package/src/icons/PlusCustomIcon/PlusCustomIcon.tsx +31 -0
  959. package/src/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.tsx +1 -0
  960. package/src/icons/RecentlyViewedIcon/RecentlyViewedIcon.tsx +24 -0
  961. package/src/icons/RenewIcon/RenewIcon.tsx +24 -0
  962. package/src/icons/RestartIcon/RestartIcon.tsx +23 -0
  963. package/src/icons/RocketIcon/RocketIcon.tsx +16 -24
  964. package/src/icons/SaveIcon/SaveIcon.tsx +23 -0
  965. package/src/icons/SearchIcon/SearchIcon.tsx +23 -0
  966. package/src/icons/SecurityIcon/SecurityIcon.tsx +24 -0
  967. package/src/icons/SelectIcon/SelectIcon.tsx +14 -8
  968. package/src/icons/SidePanelCloseIcon/SidePanelCloseIcon.tsx +23 -0
  969. package/src/icons/SidePanelOpenIcon/SidePanelOpenIcon.tsx +23 -0
  970. package/src/icons/Spinner/Spinner.tsx +19 -0
  971. package/src/icons/SpinnerIcon/SpinnerIcon.tsx +14 -9
  972. package/src/icons/StarFilledIcon/StarFilledIcon.tsx +23 -0
  973. package/src/icons/StarIcon/StarIcon.tsx +23 -0
  974. package/src/icons/SubtractIcon/SubtractIcon.tsx +30 -0
  975. package/src/icons/SunIcon/SunIcon.tsx +31 -0
  976. package/src/icons/TableBuiltIcon/TableBuiltIcon.tsx +23 -0
  977. package/src/icons/TimeIcon/TimeIcon.tsx +24 -0
  978. package/src/icons/TrashCanIcon/TrashCanIcon.tsx +27 -0
  979. package/src/icons/UserIcon/UserIcon.tsx +30 -0
  980. package/src/icons/ValueVariableIcon/ValueVariableIcon.tsx +24 -0
  981. package/src/icons/VerticalViewIcon/VerticalViewIcon.tsx +24 -0
  982. package/src/icons/ViewIcon/ViewIcon.tsx +24 -0
  983. package/src/icons/ViewOffIcon/ViewOffIcon.tsx +25 -0
  984. package/src/icons/WarningAltIcon/WarningAltIcon.tsx +25 -0
  985. package/src/icons/WarningFilledIcon/WarningFilledIcon.tsx +23 -0
  986. package/src/icons/WarningSquareIcon/WarningSquareIcon.tsx +25 -0
  987. package/src/icons/types.ts +7 -0
  988. package/src/index.ts +234 -10
  989. package/src/layouts/DocumentationLayout.tsx +96 -0
  990. package/src/layouts/Forbidden.tsx +10 -4
  991. package/src/layouts/NotFound.tsx +38 -22
  992. package/src/layouts/OIDCForbidden.tsx +4 -3
  993. package/src/layouts/RootLayout.tsx +4 -7
  994. package/src/layouts/ThreePanelLayout.tsx +55 -0
  995. package/src/markdoc/attributes/code-snippet-file.ts +9 -0
  996. package/src/markdoc/attributes/img-src.ts +9 -0
  997. package/src/markdoc/attributes/img-srcset.ts +9 -0
  998. package/src/markdoc/attributes/relative-path.ts +9 -0
  999. package/src/markdoc/attributes/svg-content.ts +9 -0
  1000. package/src/markdoc/components/Admonition/Admonition.tsx +10 -0
  1001. package/src/markdoc/components/CodeBlock/CodeBlock.tsx +10 -0
  1002. package/src/markdoc/components/Heading/Heading.tsx +51 -0
  1003. package/src/markdoc/components/HtmlBlock/HtmlBlock.tsx +5 -0
  1004. package/src/markdoc/components/InlineSvg/InlineSvg.tsx +10 -0
  1005. package/src/markdoc/components/MarkdocExample/MarkdocExample.tsx +36 -0
  1006. package/src/markdoc/components/Mermaid/Mermaid.tsx +42 -0
  1007. package/src/markdoc/components/Mermaid/variables.dark.ts +5 -0
  1008. package/src/markdoc/components/Mermaid/variables.ts +13 -0
  1009. package/src/markdoc/components/Tabs/Tab.tsx +97 -0
  1010. package/src/markdoc/components/Tabs/Tabs.tsx +105 -0
  1011. package/src/markdoc/components/Tabs/variables.ts +67 -0
  1012. package/src/markdoc/components/default.ts +9 -0
  1013. package/src/markdoc/default.ts +30 -0
  1014. package/src/markdoc/tags/admonition.ts +12 -0
  1015. package/src/markdoc/tags/code-snippet.ts +66 -0
  1016. package/src/markdoc/tags/debug.ts +17 -0
  1017. package/src/markdoc/tags/html.ts +22 -0
  1018. package/src/markdoc/tags/inline-svg.ts +15 -0
  1019. package/src/markdoc/tags/markdoc-example.ts +38 -0
  1020. package/src/markdoc/tags/partial.ts +47 -0
  1021. package/src/markdoc/tags/tab.ts +11 -0
  1022. package/src/markdoc/tags/tabs.ts +26 -0
  1023. package/src/markdoc/tags/types.ts +6 -0
  1024. package/src/settings.yaml +1 -1
  1025. package/lib/components/Breadcrumbs/index.d.ts +0 -3
  1026. package/lib/components/Breadcrumbs/index.js +0 -20
  1027. package/lib/components/Breadcrumbs/styledVariables.js +0 -20
  1028. package/lib/components/Button/index.d.ts +0 -2
  1029. package/lib/components/Button/index.js +0 -19
  1030. package/lib/components/Button/styledVariables.js +0 -118
  1031. package/lib/components/Cards/Card.d.ts +0 -9
  1032. package/lib/components/Cards/Card.js +0 -38
  1033. package/lib/components/Cards/CardsBlock.d.ts +0 -1
  1034. package/lib/components/Cards/CardsBlock.js +0 -16
  1035. package/lib/components/Cards/index.d.ts +0 -2
  1036. package/lib/components/Cards/index.js +0 -19
  1037. package/lib/components/Catalog/index.d.ts +0 -4
  1038. package/lib/components/Catalog/index.js +0 -21
  1039. package/lib/components/Catalog/styledVariables.js +0 -97
  1040. package/lib/components/Catalog/useCatalog.d.ts +0 -4
  1041. package/lib/components/Catalog/useCatalog.js +0 -317
  1042. package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +0 -4
  1043. package/lib/components/CodeBlock/CodeBlockControlButton.js +0 -52
  1044. package/lib/components/CodeBlock/index.d.ts +0 -5
  1045. package/lib/components/CodeBlock/index.js +0 -22
  1046. package/lib/components/CodeBlock/styledVariables.js +0 -94
  1047. package/lib/components/ColorModeSwitcher/index.d.ts +0 -1
  1048. package/lib/components/ColorModeSwitcher/index.js +0 -18
  1049. package/lib/components/CopyButton/CopyButton.d.ts +0 -15
  1050. package/lib/components/CopyButton/CopyButton.js +0 -53
  1051. package/lib/components/CopyButton/index.d.ts +0 -1
  1052. package/lib/components/CopyButton/index.js +0 -18
  1053. package/lib/components/Dropdown/index.d.ts +0 -2
  1054. package/lib/components/Dropdown/index.js +0 -19
  1055. package/lib/components/Dropdown/styledVariables.js +0 -30
  1056. package/lib/components/EditPageButton/EditPageButton.d.ts +0 -5
  1057. package/lib/components/EditPageButton/EditPageButton.js +0 -43
  1058. package/lib/components/EditPageButton/index.d.ts +0 -1
  1059. package/lib/components/EditPageButton/index.js +0 -18
  1060. package/lib/components/Feedback/Emotions.d.ts +0 -4
  1061. package/lib/components/Feedback/Emotions.js +0 -57
  1062. package/lib/components/Feedback/Thumbs.d.ts +0 -3
  1063. package/lib/components/Feedback/Thumbs.js +0 -49
  1064. package/lib/components/Feedback/index.d.ts +0 -10
  1065. package/lib/components/Feedback/index.js +0 -37
  1066. package/lib/components/Feedback/types.d.ts +0 -128
  1067. package/lib/components/Feedback/useReportDialog.d.ts +0 -13
  1068. package/lib/components/Feedback/useReportDialog.js +0 -46
  1069. package/lib/components/Filter/FilterTag.d.ts +0 -7
  1070. package/lib/components/Filter/FilterTag.js +0 -33
  1071. package/lib/components/Filter/FilterTags.d.ts +0 -7
  1072. package/lib/components/Filter/FilterTags.js +0 -29
  1073. package/lib/components/Filter/index.d.ts +0 -6
  1074. package/lib/components/Filter/index.js +0 -23
  1075. package/lib/components/Filter/styledVariables.js +0 -111
  1076. package/lib/components/Footer/CustomFooter.d.ts +0 -8
  1077. package/lib/components/Footer/CustomFooter.js +0 -35
  1078. package/lib/components/Footer/CustomFooterNavItem.d.ts +0 -8
  1079. package/lib/components/Footer/CustomFooterNavItem.js +0 -33
  1080. package/lib/components/Footer/FooterColumns.d.ts +0 -10
  1081. package/lib/components/Footer/FooterColumns.js +0 -46
  1082. package/lib/components/Footer/index.d.ts +0 -5
  1083. package/lib/components/Footer/index.js +0 -22
  1084. package/lib/components/Footer/styledVariables.js +0 -61
  1085. package/lib/components/Image/index.d.ts +0 -1
  1086. package/lib/components/Image/index.js +0 -18
  1087. package/lib/components/JsonViewer/index.d.ts +0 -1
  1088. package/lib/components/JsonViewer/index.js +0 -18
  1089. package/lib/components/LastUpdated/index.d.ts +0 -2
  1090. package/lib/components/LastUpdated/index.js +0 -19
  1091. package/lib/components/LastUpdated/styledVariables.js +0 -11
  1092. package/lib/components/Markdown/Admonition.d.ts +0 -12
  1093. package/lib/components/Markdown/Admonition.js +0 -60
  1094. package/lib/components/Markdown/ContainerWrapper.d.ts +0 -3
  1095. package/lib/components/Markdown/ContainerWrapper.js +0 -27
  1096. package/lib/components/Markdown/Details.d.ts +0 -7
  1097. package/lib/components/Markdown/Details.js +0 -17
  1098. package/lib/components/Markdown/Heading.js +0 -48
  1099. package/lib/components/Markdown/MarkdownLayout.d.ts +0 -17
  1100. package/lib/components/Markdown/MarkdownLayout.js +0 -47
  1101. package/lib/components/Markdown/MarkdownWrapper.d.ts +0 -8
  1102. package/lib/components/Markdown/MarkdownWrapper.js +0 -421
  1103. package/lib/components/Markdown/Mermaid.d.ts +0 -9
  1104. package/lib/components/Markdown/Mermaid.js +0 -23
  1105. package/lib/components/Markdown/PageWrapper.d.ts +0 -1
  1106. package/lib/components/Markdown/PageWrapper.js +0 -16
  1107. package/lib/components/Markdown/Sup.d.ts +0 -4
  1108. package/lib/components/Markdown/Sup.js +0 -14
  1109. package/lib/components/Markdown/index.d.ts +0 -10
  1110. package/lib/components/Markdown/index.js +0 -27
  1111. package/lib/components/Markdown/styledVariables.d.ts +0 -3
  1112. package/lib/components/Markdown/styledVariables.js +0 -285
  1113. package/lib/components/Menu/MenuGroup.d.ts +0 -10
  1114. package/lib/components/Menu/MenuGroup.js +0 -107
  1115. package/lib/components/Menu/MenuItemLabel.d.ts +0 -3
  1116. package/lib/components/Menu/MenuItemLabel.js +0 -51
  1117. package/lib/components/Menu/MenuItemSwitch.d.ts +0 -4
  1118. package/lib/components/Menu/MenuItemSwitch.js +0 -40
  1119. package/lib/components/Menu/MenuLink.d.ts +0 -2
  1120. package/lib/components/Menu/MenuLink.js +0 -16
  1121. package/lib/components/Menu/MenuLinkItem.d.ts +0 -3
  1122. package/lib/components/Menu/MenuLinkItem.js +0 -16
  1123. package/lib/components/Menu/MobileMenu.d.ts +0 -4
  1124. package/lib/components/Menu/MobileMenu.js +0 -144
  1125. package/lib/components/Menu/MobileMenuGroup.d.ts +0 -9
  1126. package/lib/components/Menu/MobileMenuGroup.js +0 -61
  1127. package/lib/components/Menu/constants.d.ts +0 -5
  1128. package/lib/components/Menu/constants.js +0 -10
  1129. package/lib/components/Menu/hooks/use-mobile-menu-items.d.ts +0 -2
  1130. package/lib/components/Menu/hooks/use-mobile-menu-items.js +0 -80
  1131. package/lib/components/Menu/hooks/use-mobile-menu-levels.d.ts +0 -5
  1132. package/lib/components/Menu/hooks/use-mobile-menu-levels.js +0 -46
  1133. package/lib/components/Menu/index.d.ts +0 -13
  1134. package/lib/components/Menu/index.js +0 -30
  1135. package/lib/components/Menu/styledVariables.d.ts +0 -2
  1136. package/lib/components/Menu/styledVariables.js +0 -103
  1137. package/lib/components/Menu/types.d.ts +0 -4
  1138. package/lib/components/Menu/utils.d.ts +0 -8
  1139. package/lib/components/Menu/utils.js +0 -76
  1140. package/lib/components/Navbar/BurgerButton.d.ts +0 -5
  1141. package/lib/components/Navbar/BurgerButton.js +0 -29
  1142. package/lib/components/Navbar/index.d.ts +0 -5
  1143. package/lib/components/Navbar/index.js +0 -22
  1144. package/lib/components/Navbar/styledVariables.js +0 -42
  1145. package/lib/components/NavbarLogo/NavbarLogo.d.ts +0 -10
  1146. package/lib/components/NavbarLogo/NavbarLogo.js +0 -34
  1147. package/lib/components/NavbarLogo/index.d.ts +0 -2
  1148. package/lib/components/NavbarLogo/index.js +0 -19
  1149. package/lib/components/NavbarLogo/styledVariables.js +0 -17
  1150. package/lib/components/OpenApiDocs/ClearButton.d.ts +0 -8
  1151. package/lib/components/OpenApiDocs/ClearButton.js +0 -48
  1152. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.d.ts +0 -3
  1153. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +0 -178
  1154. package/lib/components/OpenApiDocs/Dropdown.d.ts +0 -28
  1155. package/lib/components/OpenApiDocs/Dropdown.js +0 -150
  1156. package/lib/components/OpenApiDocs/ScorecardBadges.d.ts +0 -11
  1157. package/lib/components/OpenApiDocs/ScorecardBadges.js +0 -58
  1158. package/lib/components/OpenApiDocs/TryItSecurityApps.d.ts +0 -7
  1159. package/lib/components/OpenApiDocs/TryItSecurityApps.js +0 -15
  1160. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.d.ts +0 -1
  1161. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.js +0 -11
  1162. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.d.ts +0 -1
  1163. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.js +0 -11
  1164. package/lib/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.d.ts +0 -1
  1165. package/lib/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.js +0 -14
  1166. package/lib/components/OpenApiDocs/index.d.ts +0 -10
  1167. package/lib/components/OpenApiDocs/index.js +0 -27
  1168. package/lib/components/PageNavigation/index.d.ts +0 -3
  1169. package/lib/components/PageNavigation/index.js +0 -20
  1170. package/lib/components/Panel/PanelComponent.d.ts +0 -13
  1171. package/lib/components/Panel/PanelComponent.js +0 -65
  1172. package/lib/components/Panel/index.d.ts +0 -6
  1173. package/lib/components/Panel/index.js +0 -23
  1174. package/lib/components/Panel/styledVariables.js +0 -482
  1175. package/lib/components/Product/index.d.ts +0 -3
  1176. package/lib/components/Product/index.js +0 -20
  1177. package/lib/components/Product/styledVariables.d.ts +0 -2
  1178. package/lib/components/Product/styledVariables.js +0 -42
  1179. package/lib/components/Profile/AuthUserProfile.d.ts +0 -2
  1180. package/lib/components/Profile/AuthUserProfile.js +0 -22
  1181. package/lib/components/Profile/LoginLink.d.ts +0 -5
  1182. package/lib/components/Profile/LoginLink.js +0 -37
  1183. package/lib/components/Profile/MobileUserProfile.d.ts +0 -2
  1184. package/lib/components/Profile/MobileUserProfile.js +0 -64
  1185. package/lib/components/Profile/Profile.d.ts +0 -15
  1186. package/lib/components/Profile/Profile.js +0 -86
  1187. package/lib/components/Profile/UserProfile.d.ts +0 -3
  1188. package/lib/components/Profile/UserProfile.js +0 -107
  1189. package/lib/components/Profile/UserProfileData.d.ts +0 -9
  1190. package/lib/components/Profile/UserProfileData.js +0 -35
  1191. package/lib/components/Profile/index.d.ts +0 -10
  1192. package/lib/components/Profile/index.js +0 -28
  1193. package/lib/components/Profile/styledVariables.d.ts +0 -2
  1194. package/lib/components/Profile/styledVariables.js +0 -55
  1195. package/lib/components/Profile/types.d.ts +0 -12
  1196. package/lib/components/Profile/types.js +0 -3
  1197. package/lib/components/Scorecard/Card.d.ts +0 -5
  1198. package/lib/components/Scorecard/Card.js +0 -37
  1199. package/lib/components/Scorecard/Gauge.d.ts +0 -11
  1200. package/lib/components/Scorecard/Gauge.js +0 -61
  1201. package/lib/components/Scorecard/StatusByLevelWidget.d.ts +0 -12
  1202. package/lib/components/Scorecard/StatusByLevelWidget.js +0 -83
  1203. package/lib/components/Search/CancelSearch.d.ts +0 -5
  1204. package/lib/components/Search/CancelSearch.js +0 -48
  1205. package/lib/components/Search/ClearIcon.d.ts +0 -3
  1206. package/lib/components/Search/ClearIcon.js +0 -26
  1207. package/lib/components/Search/ClockBackwardsIcon.d.ts +0 -3
  1208. package/lib/components/Search/ClockBackwardsIcon.js +0 -26
  1209. package/lib/components/Search/Input.d.ts +0 -1
  1210. package/lib/components/Search/Input.js +0 -27
  1211. package/lib/components/Search/InputWrapper.d.ts +0 -11
  1212. package/lib/components/Search/InputWrapper.js +0 -80
  1213. package/lib/components/Search/MobileSearchTrigger.d.ts +0 -5
  1214. package/lib/components/Search/MobileSearchTrigger.js +0 -52
  1215. package/lib/components/Search/Popover.d.ts +0 -1
  1216. package/lib/components/Search/Popover.js +0 -35
  1217. package/lib/components/Search/ProductTag.d.ts +0 -6
  1218. package/lib/components/Search/ProductTag.js +0 -61
  1219. package/lib/components/Search/RecentSearches.d.ts +0 -5
  1220. package/lib/components/Search/RecentSearches.js +0 -126
  1221. package/lib/components/Search/SearchIcon.d.ts +0 -3
  1222. package/lib/components/Search/SearchIcon.js +0 -26
  1223. package/lib/components/Search/Shortcut.d.ts +0 -6
  1224. package/lib/components/Search/Shortcut.js +0 -51
  1225. package/lib/components/Search/ShortcutKey.d.ts +0 -8
  1226. package/lib/components/Search/ShortcutKey.js +0 -26
  1227. package/lib/components/Search/SuggestedPages.d.ts +0 -4
  1228. package/lib/components/Search/SuggestedPages.js +0 -104
  1229. package/lib/components/Search/index.d.ts +0 -19
  1230. package/lib/components/Search/index.js +0 -36
  1231. package/lib/components/Search/styledVariables.js +0 -98
  1232. package/lib/components/Search/utils.d.ts +0 -2
  1233. package/lib/components/Search/utils.js +0 -46
  1234. package/lib/components/Select/index.d.ts +0 -2
  1235. package/lib/components/Select/index.js +0 -19
  1236. package/lib/components/Select/styledVariables.js +0 -34
  1237. package/lib/components/Separator/Separator.d.ts +0 -3
  1238. package/lib/components/Separator/Separator.js +0 -28
  1239. package/lib/components/Separator/SeparatorItem.d.ts +0 -3
  1240. package/lib/components/Separator/SeparatorItem.js +0 -31
  1241. package/lib/components/Separator/SeparatorLine.d.ts +0 -1
  1242. package/lib/components/Separator/SeparatorLine.js +0 -20
  1243. package/lib/components/Separator/index.d.ts +0 -3
  1244. package/lib/components/Separator/index.js +0 -20
  1245. package/lib/components/Sidebar/ApiCallItem.d.ts +0 -7
  1246. package/lib/components/Sidebar/ApiCallItem.js +0 -47
  1247. package/lib/components/Sidebar/BackButton.d.ts +0 -7
  1248. package/lib/components/Sidebar/BackButton.js +0 -42
  1249. package/lib/components/Sidebar/Drilldown.d.ts +0 -9
  1250. package/lib/components/Sidebar/Drilldown.js +0 -45
  1251. package/lib/components/Sidebar/DrilldownMenu.d.ts +0 -3
  1252. package/lib/components/Sidebar/DrilldownMenu.js +0 -75
  1253. package/lib/components/Sidebar/DrilldownMenuItem.d.ts +0 -3
  1254. package/lib/components/Sidebar/DrilldownMenuItem.js +0 -37
  1255. package/lib/components/Sidebar/FooterWrapper.d.ts +0 -3
  1256. package/lib/components/Sidebar/FooterWrapper.js +0 -22
  1257. package/lib/components/Sidebar/HeaderWrapper.d.ts +0 -1
  1258. package/lib/components/Sidebar/HeaderWrapper.js +0 -16
  1259. package/lib/components/Sidebar/MobileSidebarButton.d.ts +0 -3
  1260. package/lib/components/Sidebar/MobileSidebarButton.js +0 -46
  1261. package/lib/components/Sidebar/MobileSidebarIcon.d.ts +0 -4
  1262. package/lib/components/Sidebar/MobileSidebarIcon.js +0 -16
  1263. package/lib/components/Sidebar/SidebarItemIcon.d.ts +0 -1
  1264. package/lib/components/Sidebar/SidebarItemIcon.js +0 -16
  1265. package/lib/components/Sidebar/SidebarLayout.d.ts +0 -18
  1266. package/lib/components/Sidebar/SidebarLayout.js +0 -82
  1267. package/lib/components/Sidebar/VersionPicker.d.ts +0 -11
  1268. package/lib/components/Sidebar/VersionPicker.js +0 -117
  1269. package/lib/components/Sidebar/index.d.ts +0 -15
  1270. package/lib/components/Sidebar/index.js +0 -32
  1271. package/lib/components/Sidebar/styledVariables.d.ts +0 -2
  1272. package/lib/components/Sidebar/styledVariables.js +0 -222
  1273. package/lib/components/Sidebar/types.d.ts +0 -48
  1274. package/lib/components/Sidebar/types.js +0 -8
  1275. package/lib/components/SidebarActions/CollapseSidebarButton.d.ts +0 -7
  1276. package/lib/components/SidebarActions/CollapseSidebarButton.js +0 -53
  1277. package/lib/components/SidebarActions/ToggleRightPanelButton.d.ts +0 -7
  1278. package/lib/components/SidebarActions/ToggleRightPanelButton.js +0 -13
  1279. package/lib/components/SidebarActions/index.d.ts +0 -4
  1280. package/lib/components/SidebarActions/index.js +0 -24
  1281. package/lib/components/SidebarLogo/index.d.ts +0 -1
  1282. package/lib/components/SidebarLogo/index.js +0 -18
  1283. package/lib/components/TableOfContent/index.d.ts +0 -2
  1284. package/lib/components/TableOfContent/index.js +0 -19
  1285. package/lib/components/TableOfContent/styledVariables.js +0 -47
  1286. package/lib/components/TableOfContent/utils.d.ts +0 -4
  1287. package/lib/components/TableOfContent/utils.js +0 -41
  1288. package/lib/components/Tabs/Tab.d.ts +0 -9
  1289. package/lib/components/Tabs/Tab.js +0 -58
  1290. package/lib/components/Tabs/Tabs.d.ts +0 -12
  1291. package/lib/components/Tabs/Tabs.js +0 -89
  1292. package/lib/components/Tabs/index.d.ts +0 -2
  1293. package/lib/components/Tabs/index.js +0 -19
  1294. package/lib/components/Tag/index.d.ts +0 -2
  1295. package/lib/components/Tag/index.js +0 -19
  1296. package/lib/components/Tag/styledVariables.js +0 -148
  1297. package/lib/components/Tiles/ThinTile.d.ts +0 -5
  1298. package/lib/components/Tiles/ThinTile.js +0 -126
  1299. package/lib/components/Tiles/TileHeader.d.ts +0 -3
  1300. package/lib/components/Tiles/TileHeader.js +0 -20
  1301. package/lib/components/Tiles/TileText.d.ts +0 -3
  1302. package/lib/components/Tiles/TileText.js +0 -19
  1303. package/lib/components/Tiles/WideTile.d.ts +0 -7
  1304. package/lib/components/Tiles/WideTile.js +0 -116
  1305. package/lib/components/Tiles/index.d.ts +0 -4
  1306. package/lib/components/Tiles/index.js +0 -21
  1307. package/lib/components/Tiles/types.d.ts +0 -17
  1308. package/lib/components/Tiles/types.js +0 -3
  1309. package/lib/components/Tooltip/index.d.ts +0 -2
  1310. package/lib/components/Tooltip/index.js +0 -19
  1311. package/lib/components/Tooltip/styledVariables.js +0 -21
  1312. package/lib/components/Typography/index.d.ts +0 -7
  1313. package/lib/components/Typography/index.js +0 -24
  1314. package/lib/components/index.d.ts +0 -29
  1315. package/lib/components/index.js +0 -46
  1316. package/lib/globalStyle.js +0 -1000
  1317. package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +0 -79
  1318. package/lib/hooks/index.d.ts +0 -9
  1319. package/lib/hooks/index.js +0 -26
  1320. package/lib/hooks/useActiveHeading.js +0 -80
  1321. package/lib/hooks/useActiveSectionId.js +0 -44
  1322. package/lib/hooks/useControl.js +0 -16
  1323. package/lib/hooks/useDialogHotKeys.js +0 -45
  1324. package/lib/hooks/useFullHeight.js +0 -48
  1325. package/lib/hooks/useMobileMenu.d.ts +0 -2
  1326. package/lib/hooks/useMobileMenu.js +0 -18
  1327. package/lib/hooks/useModalScrollLock.d.ts +0 -1
  1328. package/lib/hooks/useModalScrollLock.js +0 -16
  1329. package/lib/hooks/useMount.js +0 -12
  1330. package/lib/hooks/useNavbarHeight.js +0 -21
  1331. package/lib/hooks/useOutsideClick.d.ts +0 -2
  1332. package/lib/hooks/useOutsideClick.js +0 -22
  1333. package/lib/hooks/useThemeConfig.d.ts +0 -4
  1334. package/lib/hooks/useThemeConfig.js +0 -17
  1335. package/lib/hooks/useUnmount.js +0 -14
  1336. package/lib/i18n/LanguagePicker.d.ts +0 -9
  1337. package/lib/i18n/LanguagePicker.js +0 -99
  1338. package/lib/i18n/index.d.ts +0 -2
  1339. package/lib/i18n/index.js +0 -21
  1340. package/lib/i18n/styledVariables.js +0 -40
  1341. package/lib/icons/AlertIcon/AlertIcon.d.ts +0 -10
  1342. package/lib/icons/AlertIcon/AlertIcon.js +0 -51
  1343. package/lib/icons/AlertIcon/index.d.ts +0 -2
  1344. package/lib/icons/AlertIcon/index.js +0 -6
  1345. package/lib/icons/AnchorIcon/AnchorIcon.d.ts +0 -7
  1346. package/lib/icons/AnchorIcon/AnchorIcon.js +0 -23
  1347. package/lib/icons/AnchorIcon/index.d.ts +0 -2
  1348. package/lib/icons/AnchorIcon/index.js +0 -6
  1349. package/lib/icons/ArrowIcon/ArrowIcon.d.ts +0 -8
  1350. package/lib/icons/ArrowIcon/ArrowIcon.js +0 -60
  1351. package/lib/icons/ArrowIcon/index.d.ts +0 -2
  1352. package/lib/icons/ArrowIcon/index.js +0 -6
  1353. package/lib/icons/BurgerIcon/BurgerIcon.d.ts +0 -5
  1354. package/lib/icons/BurgerIcon/BurgerIcon.js +0 -15
  1355. package/lib/icons/BurgerIcon/index.d.ts +0 -1
  1356. package/lib/icons/BurgerIcon/index.js +0 -6
  1357. package/lib/icons/CheckboxIcon/index.d.ts +0 -1
  1358. package/lib/icons/CheckboxIcon/index.js +0 -6
  1359. package/lib/icons/CloseIcon/index.d.ts +0 -1
  1360. package/lib/icons/CloseIcon/index.js +0 -6
  1361. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +0 -7
  1362. package/lib/icons/CollapseIcon/CollapseIcon.js +0 -22
  1363. package/lib/icons/CollapseIcon/index.d.ts +0 -1
  1364. package/lib/icons/CollapseIcon/index.js +0 -18
  1365. package/lib/icons/ColorModeIcon/ColorModeIcon.js +0 -33
  1366. package/lib/icons/ColorModeIcon/index.d.ts +0 -2
  1367. package/lib/icons/ColorModeIcon/index.js +0 -6
  1368. package/lib/icons/CopyIcon/index.d.ts +0 -1
  1369. package/lib/icons/CopyIcon/index.js +0 -18
  1370. package/lib/icons/DeselectIcon/index.d.ts +0 -1
  1371. package/lib/icons/DeselectIcon/index.js +0 -18
  1372. package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.d.ts +0 -4
  1373. package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.js +0 -18
  1374. package/lib/icons/DissatisfiedIcon/index.d.ts +0 -1
  1375. package/lib/icons/DissatisfiedIcon/index.js +0 -18
  1376. package/lib/icons/EditIcon/index.d.ts +0 -1
  1377. package/lib/icons/EditIcon/index.js +0 -18
  1378. package/lib/icons/ErrorIcon/index.d.ts +0 -1
  1379. package/lib/icons/ErrorIcon/index.js +0 -18
  1380. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +0 -6
  1381. package/lib/icons/ExpandIcon/ExpandIcon.js +0 -22
  1382. package/lib/icons/ExpandIcon/index.d.ts +0 -1
  1383. package/lib/icons/ExpandIcon/index.js +0 -6
  1384. package/lib/icons/ExternalIcon/ExternalIcon.d.ts +0 -5
  1385. package/lib/icons/ExternalIcon/ExternalIcon.js +0 -22
  1386. package/lib/icons/ExternalIcon/index.d.ts +0 -1
  1387. package/lib/icons/ExternalIcon/index.js +0 -18
  1388. package/lib/icons/FileIcon/index.d.ts +0 -1
  1389. package/lib/icons/FileIcon/index.js +0 -18
  1390. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +0 -4
  1391. package/lib/icons/LanguageIcon/LanguageIcon.js +0 -14
  1392. package/lib/icons/LanguageIcon/index.d.ts +0 -1
  1393. package/lib/icons/LanguageIcon/index.js +0 -18
  1394. package/lib/icons/LogoutIcon/index.d.ts +0 -1
  1395. package/lib/icons/LogoutIcon/index.js +0 -6
  1396. package/lib/icons/NeutralIcon/NeutralIcon.d.ts +0 -4
  1397. package/lib/icons/NeutralIcon/NeutralIcon.js +0 -18
  1398. package/lib/icons/NeutralIcon/index.d.ts +0 -1
  1399. package/lib/icons/NeutralIcon/index.js +0 -18
  1400. package/lib/icons/PlusIcon/PlusIcon.d.ts +0 -5
  1401. package/lib/icons/PlusIcon/PlusIcon.js +0 -16
  1402. package/lib/icons/PlusIcon/index.d.ts +0 -1
  1403. package/lib/icons/PlusIcon/index.js +0 -18
  1404. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +0 -4
  1405. package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +0 -15
  1406. package/lib/icons/PointingArrowIcon/index.d.ts +0 -1
  1407. package/lib/icons/PointingArrowIcon/index.js +0 -18
  1408. package/lib/icons/RadioCheckButtonIcon/index.d.ts +0 -1
  1409. package/lib/icons/RadioCheckButtonIcon/index.js +0 -18
  1410. package/lib/icons/ReportIcon/ReportIcon.d.ts +0 -6
  1411. package/lib/icons/ReportIcon/ReportIcon.js +0 -19
  1412. package/lib/icons/ReportIcon/index.d.ts +0 -1
  1413. package/lib/icons/ReportIcon/index.js +0 -18
  1414. package/lib/icons/RocketIcon/index.d.ts +0 -1
  1415. package/lib/icons/RocketIcon/index.js +0 -18
  1416. package/lib/icons/SatisfiedIcon/SatisfiedIcon.d.ts +0 -4
  1417. package/lib/icons/SatisfiedIcon/SatisfiedIcon.js +0 -18
  1418. package/lib/icons/SatisfiedIcon/index.d.ts +0 -1
  1419. package/lib/icons/SatisfiedIcon/index.js +0 -18
  1420. package/lib/icons/SelectIcon/index.d.ts +0 -1
  1421. package/lib/icons/SelectIcon/index.js +0 -18
  1422. package/lib/icons/ShelfIcon/ShelfIcon.d.ts +0 -12
  1423. package/lib/icons/ShelfIcon/ShelfIcon.js +0 -52
  1424. package/lib/icons/ShelfIcon/index.d.ts +0 -2
  1425. package/lib/icons/ShelfIcon/index.js +0 -6
  1426. package/lib/icons/SpinnerIcon/index.d.ts +0 -1
  1427. package/lib/icons/SpinnerIcon/index.js +0 -6
  1428. package/lib/icons/ThumbDownIcon/index.d.ts +0 -1
  1429. package/lib/icons/ThumbDownIcon/index.js +0 -18
  1430. package/lib/icons/ThumbUpIcon/index.d.ts +0 -1
  1431. package/lib/icons/ThumbUpIcon/index.js +0 -18
  1432. package/lib/icons/index.d.ts +0 -26
  1433. package/lib/icons/index.js +0 -43
  1434. package/lib/layouts/index.d.ts +0 -5
  1435. package/lib/layouts/index.js +0 -22
  1436. package/lib/mocks/Feedback/useSubmitFeedback.d.ts +0 -1
  1437. package/lib/mocks/Feedback/useSubmitFeedback.js +0 -18
  1438. package/lib/mocks/Link.d.ts +0 -2
  1439. package/lib/mocks/Link.js +0 -27
  1440. package/lib/mocks/Profile/useProfileProps.d.ts +0 -1
  1441. package/lib/mocks/Profile/useProfileProps.js +0 -17
  1442. package/lib/mocks/Sidebar/getMenuType.d.ts +0 -2
  1443. package/lib/mocks/Sidebar/getMenuType.js +0 -10
  1444. package/lib/mocks/Sidebar/types.d.ts +0 -11
  1445. package/lib/mocks/Sidebar/types.js +0 -11
  1446. package/lib/mocks/Sidebar/useBreadcrumbs.d.ts +0 -4
  1447. package/lib/mocks/Sidebar/useBreadcrumbs.js +0 -8
  1448. package/lib/mocks/Sidebar/useDrilldown.d.ts +0 -8
  1449. package/lib/mocks/Sidebar/useDrilldown.js +0 -19
  1450. package/lib/mocks/Sidebar/useMenuGroup.d.ts +0 -6
  1451. package/lib/mocks/Sidebar/useMenuGroup.js +0 -17
  1452. package/lib/mocks/Sidebar/useSidebarItems.d.ts +0 -3
  1453. package/lib/mocks/Sidebar/useSidebarItems.js +0 -8
  1454. package/lib/mocks/constants/index.d.ts +0 -2
  1455. package/lib/mocks/constants/index.js +0 -6
  1456. package/lib/mocks/hooks/index.d.ts +0 -35
  1457. package/lib/mocks/hooks/index.js +0 -109
  1458. package/lib/mocks/hooks/usePageData.d.ts +0 -6
  1459. package/lib/mocks/hooks/usePageData.js +0 -11
  1460. package/lib/mocks/media-css.d.ts +0 -5
  1461. package/lib/mocks/media-css.js +0 -5
  1462. package/lib/mocks/search.d.ts +0 -32
  1463. package/lib/mocks/search.js +0 -46
  1464. package/lib/mocks/telemetry.d.ts +0 -2
  1465. package/lib/mocks/telemetry.js +0 -7
  1466. package/lib/mocks/types/index.d.ts +0 -1
  1467. package/lib/mocks/types/index.js +0 -3
  1468. package/lib/mocks/types.d.ts +0 -3
  1469. package/lib/mocks/types.js +0 -4
  1470. package/lib/mocks/useGlobalData.d.ts +0 -1
  1471. package/lib/mocks/useGlobalData.js +0 -8
  1472. package/lib/mocks/usePreloadHistory.d.ts +0 -3
  1473. package/lib/mocks/usePreloadHistory.js +0 -13
  1474. package/lib/mocks/utils.d.ts +0 -7
  1475. package/lib/mocks/utils.js +0 -22
  1476. package/lib/types/config.d.ts +0 -5
  1477. package/lib/types/config.js +0 -3
  1478. package/lib/types/portal/index.d.ts +0 -3
  1479. package/lib/types/portal/index.js +0 -19
  1480. package/lib/types/portal/src/shared/constants.d.ts +0 -21
  1481. package/lib/types/portal/src/shared/constants.js +0 -26
  1482. package/lib/types/portal/src/shared/types/activeItem.d.ts +0 -3
  1483. package/lib/types/portal/src/shared/types/activeItem.js +0 -3
  1484. package/lib/types/portal/src/shared/types/catalog.d.ts +0 -43
  1485. package/lib/types/portal/src/shared/types/feedback.d.ts +0 -13
  1486. package/lib/types/portal/src/shared/types/nav.d.ts +0 -173
  1487. package/lib/types/portal/src/shared/types/nav.js +0 -8
  1488. package/lib/types/portal/src/shared/types/searchDocument.d.ts +0 -21
  1489. package/lib/types/portal/src/shared/types/searchDocument.js +0 -5
  1490. package/lib/ui/ArrowBack.d.ts +0 -5
  1491. package/lib/ui/ArrowBack.js +0 -21
  1492. package/lib/ui/Background.d.ts +0 -7
  1493. package/lib/ui/Background.js +0 -21
  1494. package/lib/ui/Box.d.ts +0 -6
  1495. package/lib/ui/Box.js +0 -22
  1496. package/lib/ui/Burger.d.ts +0 -8
  1497. package/lib/ui/Burger.js +0 -32
  1498. package/lib/ui/Checkbox.d.ts +0 -1
  1499. package/lib/ui/Checkbox.js +0 -70
  1500. package/lib/ui/Dropdown.d.ts +0 -8
  1501. package/lib/ui/Dropdown.js +0 -114
  1502. package/lib/ui/Flex.d.ts +0 -10
  1503. package/lib/ui/Flex.js +0 -21
  1504. package/lib/ui/Highlight.d.ts +0 -5
  1505. package/lib/ui/Highlight.js +0 -63
  1506. package/lib/ui/Jumbotron.d.ts +0 -18
  1507. package/lib/ui/Jumbotron.js +0 -51
  1508. package/lib/ui/darkColors.js +0 -251
  1509. package/lib/ui/index.d.ts +0 -9
  1510. package/lib/ui/index.js +0 -27
  1511. package/lib/utils/ClipboardService.js +0 -33
  1512. package/lib/utils/getNavbarElement.js +0 -15
  1513. package/lib/utils/index.d.ts +0 -13
  1514. package/lib/utils/index.js +0 -30
  1515. package/lib/utils/isUrl.js +0 -37
  1516. package/lib/utils/jsUtils.d.ts +0 -4
  1517. package/lib/utils/jsUtils.js +0 -21
  1518. package/lib/utils/jsonToHtml.d.ts +0 -4
  1519. package/lib/utils/jsonToHtml.js +0 -180
  1520. package/lib/utils/media-css.d.ts +0 -12
  1521. package/lib/utils/media-css.js +0 -13
  1522. package/lib/utils/replaceHashInColor.js +0 -8
  1523. package/lib/utils/urls.d.ts +0 -11
  1524. package/lib/utils/urls.js +0 -55
  1525. package/src/components/Breadcrumbs/index.ts +0 -3
  1526. package/src/components/Breadcrumbs/styledVariables.ts +0 -17
  1527. package/src/components/Button/index.ts +0 -2
  1528. package/src/components/Button/styledVariables.ts +0 -115
  1529. package/src/components/Cards/Card.tsx +0 -54
  1530. package/src/components/Cards/CardsBlock.tsx +0 -10
  1531. package/src/components/Cards/index.ts +0 -2
  1532. package/src/components/Catalog/index.ts +0 -4
  1533. package/src/components/Catalog/styledVariables.ts +0 -94
  1534. package/src/components/Catalog/useCatalog.ts +0 -373
  1535. package/src/components/CodeBlock/CodeBlockControlButton.tsx +0 -28
  1536. package/src/components/CodeBlock/index.ts +0 -5
  1537. package/src/components/CodeBlock/styledVariables.ts +0 -91
  1538. package/src/components/ColorModeSwitcher/index.ts +0 -1
  1539. package/src/components/CopyButton/CopyButton.tsx +0 -79
  1540. package/src/components/CopyButton/index.ts +0 -1
  1541. package/src/components/Dropdown/index.ts +0 -2
  1542. package/src/components/Dropdown/styledVariables.ts +0 -27
  1543. package/src/components/EditPageButton/EditPageButton.tsx +0 -54
  1544. package/src/components/EditPageButton/index.ts +0 -1
  1545. package/src/components/Feedback/Emotions.tsx +0 -38
  1546. package/src/components/Feedback/Thumbs.tsx +0 -27
  1547. package/src/components/Feedback/index.ts +0 -10
  1548. package/src/components/Feedback/types.ts +0 -115
  1549. package/src/components/Feedback/useReportDialog.ts +0 -57
  1550. package/src/components/Filter/FilterTag.tsx +0 -37
  1551. package/src/components/Filter/FilterTags.tsx +0 -39
  1552. package/src/components/Filter/index.ts +0 -6
  1553. package/src/components/Filter/styledVariables.ts +0 -108
  1554. package/src/components/Footer/CustomFooter.tsx +0 -46
  1555. package/src/components/Footer/CustomFooterNavItem.tsx +0 -41
  1556. package/src/components/Footer/FooterColumns.tsx +0 -56
  1557. package/src/components/Footer/index.ts +0 -5
  1558. package/src/components/Footer/styledVariables.ts +0 -58
  1559. package/src/components/Image/index.ts +0 -1
  1560. package/src/components/JsonViewer/index.ts +0 -1
  1561. package/src/components/LastUpdated/index.ts +0 -2
  1562. package/src/components/LastUpdated/styledVariables.ts +0 -8
  1563. package/src/components/Markdown/Admonition.tsx +0 -86
  1564. package/src/components/Markdown/ContainerWrapper.tsx +0 -21
  1565. package/src/components/Markdown/Details.tsx +0 -24
  1566. package/src/components/Markdown/Heading.tsx +0 -47
  1567. package/src/components/Markdown/MarkdownLayout.tsx +0 -75
  1568. package/src/components/Markdown/MarkdownWrapper.tsx +0 -404
  1569. package/src/components/Markdown/Mermaid.tsx +0 -38
  1570. package/src/components/Markdown/PageWrapper.tsx +0 -10
  1571. package/src/components/Markdown/Sup.tsx +0 -17
  1572. package/src/components/Markdown/index.ts +0 -10
  1573. package/src/components/Markdown/styledVariables.ts +0 -284
  1574. package/src/components/Menu/MenuGroup.tsx +0 -122
  1575. package/src/components/Menu/MenuItemLabel.tsx +0 -46
  1576. package/src/components/Menu/MenuItemSwitch.tsx +0 -61
  1577. package/src/components/Menu/MenuLink.tsx +0 -11
  1578. package/src/components/Menu/MenuLinkItem.tsx +0 -30
  1579. package/src/components/Menu/MobileMenu.tsx +0 -151
  1580. package/src/components/Menu/MobileMenuGroup.tsx +0 -93
  1581. package/src/components/Menu/constants.ts +0 -5
  1582. package/src/components/Menu/hooks/use-mobile-menu-items.ts +0 -96
  1583. package/src/components/Menu/hooks/use-mobile-menu-levels.ts +0 -50
  1584. package/src/components/Menu/index.ts +0 -13
  1585. package/src/components/Menu/styledVariables.ts +0 -101
  1586. package/src/components/Menu/types.ts +0 -4
  1587. package/src/components/Menu/utils.ts +0 -110
  1588. package/src/components/Navbar/BurgerButton.tsx +0 -34
  1589. package/src/components/Navbar/index.ts +0 -5
  1590. package/src/components/Navbar/styledVariables.ts +0 -39
  1591. package/src/components/NavbarLogo/NavbarLogo.tsx +0 -48
  1592. package/src/components/NavbarLogo/index.ts +0 -2
  1593. package/src/components/NavbarLogo/styledVariables.ts +0 -14
  1594. package/src/components/OpenApiDocs/ClearButton.tsx +0 -32
  1595. package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +0 -176
  1596. package/src/components/OpenApiDocs/Dropdown.tsx +0 -202
  1597. package/src/components/OpenApiDocs/ScorecardBadges.tsx +0 -83
  1598. package/src/components/OpenApiDocs/TryItSecurityApps.tsx +0 -17
  1599. package/src/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.tsx +0 -9
  1600. package/src/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.tsx +0 -9
  1601. package/src/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.tsx +0 -12
  1602. package/src/components/OpenApiDocs/index.ts +0 -10
  1603. package/src/components/PageNavigation/index.ts +0 -3
  1604. package/src/components/Panel/Panel.ts +0 -34
  1605. package/src/components/Panel/PanelComponent.tsx +0 -79
  1606. package/src/components/Panel/index.ts +0 -6
  1607. package/src/components/Panel/styledVariables.ts +0 -480
  1608. package/src/components/Product/index.ts +0 -3
  1609. package/src/components/Product/styledVariables.ts +0 -40
  1610. package/src/components/Profile/AuthUserProfile.tsx +0 -25
  1611. package/src/components/Profile/LoginLink.tsx +0 -46
  1612. package/src/components/Profile/MobileUserProfile.tsx +0 -79
  1613. package/src/components/Profile/Profile.tsx +0 -85
  1614. package/src/components/Profile/UserProfile.tsx +0 -118
  1615. package/src/components/Profile/UserProfileData.tsx +0 -40
  1616. package/src/components/Profile/index.ts +0 -10
  1617. package/src/components/Profile/styledVariables.ts +0 -53
  1618. package/src/components/Profile/types.ts +0 -12
  1619. package/src/components/Scorecard/Card.tsx +0 -33
  1620. package/src/components/Scorecard/Gauge.tsx +0 -52
  1621. package/src/components/Scorecard/StatusByLevelWidget.tsx +0 -71
  1622. package/src/components/Search/CancelSearch.tsx +0 -32
  1623. package/src/components/Search/ClearIcon.tsx +0 -34
  1624. package/src/components/Search/ClockBackwardsIcon.tsx +0 -26
  1625. package/src/components/Search/Input.tsx +0 -21
  1626. package/src/components/Search/InputWrapper.tsx +0 -89
  1627. package/src/components/Search/MobileSearchTrigger.tsx +0 -38
  1628. package/src/components/Search/Popover.tsx +0 -29
  1629. package/src/components/Search/ProductTag.tsx +0 -46
  1630. package/src/components/Search/RecentSearches.tsx +0 -130
  1631. package/src/components/Search/SearchIcon.tsx +0 -39
  1632. package/src/components/Search/Shortcut.tsx +0 -34
  1633. package/src/components/Search/ShortcutKey.tsx +0 -27
  1634. package/src/components/Search/SuggestedPages.tsx +0 -96
  1635. package/src/components/Search/index.ts +0 -19
  1636. package/src/components/Search/styledVariables.ts +0 -95
  1637. package/src/components/Search/utils.tsx +0 -20
  1638. package/src/components/Select/index.ts +0 -2
  1639. package/src/components/Select/styledVariables.ts +0 -31
  1640. package/src/components/Separator/Separator.tsx +0 -34
  1641. package/src/components/Separator/SeparatorItem.tsx +0 -28
  1642. package/src/components/Separator/SeparatorLine.tsx +0 -14
  1643. package/src/components/Separator/index.ts +0 -3
  1644. package/src/components/Sidebar/ApiCallItem.tsx +0 -53
  1645. package/src/components/Sidebar/BackButton.tsx +0 -50
  1646. package/src/components/Sidebar/Drilldown.tsx +0 -49
  1647. package/src/components/Sidebar/DrilldownMenu.tsx +0 -65
  1648. package/src/components/Sidebar/DrilldownMenuItem.tsx +0 -41
  1649. package/src/components/Sidebar/FooterWrapper.tsx +0 -16
  1650. package/src/components/Sidebar/HeaderWrapper.tsx +0 -10
  1651. package/src/components/Sidebar/MobileSidebarButton.tsx +0 -41
  1652. package/src/components/Sidebar/MobileSidebarIcon.tsx +0 -18
  1653. package/src/components/Sidebar/SidebarItemIcon.tsx +0 -10
  1654. package/src/components/Sidebar/SidebarLayout.tsx +0 -109
  1655. package/src/components/Sidebar/VersionPicker.tsx +0 -112
  1656. package/src/components/Sidebar/index.ts +0 -15
  1657. package/src/components/Sidebar/styledVariables.ts +0 -220
  1658. package/src/components/Sidebar/types.ts +0 -52
  1659. package/src/components/SidebarActions/CollapseSidebarButton.tsx +0 -45
  1660. package/src/components/SidebarActions/ToggleRightPanelButton.tsx +0 -25
  1661. package/src/components/SidebarActions/index.tsx +0 -4
  1662. package/src/components/SidebarLogo/index.ts +0 -1
  1663. package/src/components/TableOfContent/index.ts +0 -2
  1664. package/src/components/TableOfContent/styledVariables.ts +0 -44
  1665. package/src/components/TableOfContent/utils.ts +0 -42
  1666. package/src/components/Tabs/Tab.tsx +0 -69
  1667. package/src/components/Tabs/Tabs.tsx +0 -79
  1668. package/src/components/Tabs/index.ts +0 -2
  1669. package/src/components/Tag/index.ts +0 -2
  1670. package/src/components/Tag/styledVariables.ts +0 -145
  1671. package/src/components/Tiles/ThinTile.tsx +0 -136
  1672. package/src/components/Tiles/TileHeader.ts +0 -14
  1673. package/src/components/Tiles/TileText.tsx +0 -13
  1674. package/src/components/Tiles/WideTile.tsx +0 -140
  1675. package/src/components/Tiles/index.ts +0 -4
  1676. package/src/components/Tiles/types.ts +0 -19
  1677. package/src/components/Tooltip/index.ts +0 -2
  1678. package/src/components/Tooltip/styledVariables.ts +0 -18
  1679. package/src/components/Typography/index.ts +0 -7
  1680. package/src/components/index.ts +0 -29
  1681. package/src/globalStyle.ts +0 -1016
  1682. package/src/hooks/index.ts +0 -9
  1683. package/src/hooks/useActiveSectionId.ts +0 -54
  1684. package/src/hooks/useMobileMenu.ts +0 -16
  1685. package/src/hooks/useModalScrollLock.ts +0 -12
  1686. package/src/hooks/useNavbarHeight.ts +0 -25
  1687. package/src/hooks/useOutsideClick.ts +0 -23
  1688. package/src/hooks/useThemeConfig.ts +0 -26
  1689. package/src/i18n/LanguagePicker.tsx +0 -120
  1690. package/src/i18n/index.ts +0 -2
  1691. package/src/i18n/styledVariables.ts +0 -37
  1692. package/src/icons/AlertIcon/AlertIcon.tsx +0 -111
  1693. package/src/icons/AlertIcon/index.ts +0 -2
  1694. package/src/icons/AnchorIcon/AnchorIcon.tsx +0 -36
  1695. package/src/icons/AnchorIcon/index.ts +0 -2
  1696. package/src/icons/ArrowIcon/ArrowIcon.tsx +0 -61
  1697. package/src/icons/ArrowIcon/index.ts +0 -2
  1698. package/src/icons/BurgerIcon/BurgerIcon.tsx +0 -12
  1699. package/src/icons/BurgerIcon/index.ts +0 -1
  1700. package/src/icons/CheckboxIcon/index.ts +0 -1
  1701. package/src/icons/CloseIcon/index.ts +0 -1
  1702. package/src/icons/CollapseIcon/CollapseIcon.tsx +0 -40
  1703. package/src/icons/CollapseIcon/index.tsx +0 -1
  1704. package/src/icons/ColorModeIcon/ColorModeIcon.tsx +0 -57
  1705. package/src/icons/ColorModeIcon/index.ts +0 -2
  1706. package/src/icons/CopyIcon/index.ts +0 -1
  1707. package/src/icons/DeselectIcon/index.ts +0 -1
  1708. package/src/icons/DissatisfiedIcon/DissatisfiedIcon.tsx +0 -28
  1709. package/src/icons/DissatisfiedIcon/index.ts +0 -1
  1710. package/src/icons/EditIcon/index.ts +0 -1
  1711. package/src/icons/ErrorIcon/index.ts +0 -1
  1712. package/src/icons/ExpandIcon/ExpandIcon.tsx +0 -39
  1713. package/src/icons/ExpandIcon/index.ts +0 -1
  1714. package/src/icons/ExternalIcon/ExternalIcon.tsx +0 -44
  1715. package/src/icons/ExternalIcon/index.ts +0 -1
  1716. package/src/icons/FileIcon/index.ts +0 -1
  1717. package/src/icons/LanguageIcon/LanguageIcon.tsx +0 -15
  1718. package/src/icons/LanguageIcon/index.ts +0 -1
  1719. package/src/icons/LogoutIcon/index.ts +0 -1
  1720. package/src/icons/NeutralIcon/NeutralIcon.tsx +0 -25
  1721. package/src/icons/NeutralIcon/index.ts +0 -1
  1722. package/src/icons/PlusIcon/PlusIcon.tsx +0 -25
  1723. package/src/icons/PlusIcon/index.ts +0 -1
  1724. package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +0 -16
  1725. package/src/icons/PointingArrowIcon/index.ts +0 -1
  1726. package/src/icons/RadioCheckButtonIcon/index.ts +0 -1
  1727. package/src/icons/ReportIcon/ReportIcon.tsx +0 -36
  1728. package/src/icons/ReportIcon/index.ts +0 -1
  1729. package/src/icons/RocketIcon/index.tsx +0 -1
  1730. package/src/icons/SatisfiedIcon/SatisfiedIcon.tsx +0 -41
  1731. package/src/icons/SatisfiedIcon/index.ts +0 -1
  1732. package/src/icons/SelectIcon/index.ts +0 -1
  1733. package/src/icons/ShelfIcon/ShelfIcon.tsx +0 -47
  1734. package/src/icons/ShelfIcon/index.ts +0 -2
  1735. package/src/icons/SpinnerIcon/index.ts +0 -1
  1736. package/src/icons/ThumbDownIcon/index.ts +0 -1
  1737. package/src/icons/ThumbUpIcon/index.ts +0 -1
  1738. package/src/icons/index.ts +0 -26
  1739. package/src/layouts/index.ts +0 -5
  1740. package/src/mocks/Feedback/useSubmitFeedback.tsx +0 -4
  1741. package/src/mocks/Link.tsx +0 -17
  1742. package/src/mocks/Profile/useProfileProps.tsx +0 -12
  1743. package/src/mocks/Sidebar/getMenuType.ts +0 -6
  1744. package/src/mocks/Sidebar/types.ts +0 -15
  1745. package/src/mocks/Sidebar/useBreadcrumbs.ts +0 -3
  1746. package/src/mocks/Sidebar/useDrilldown.tsx +0 -12
  1747. package/src/mocks/Sidebar/useMenuGroup.tsx +0 -10
  1748. package/src/mocks/Sidebar/useSidebarItems.tsx +0 -7
  1749. package/src/mocks/constants/index.ts +0 -2
  1750. package/src/mocks/hooks/index.ts +0 -118
  1751. package/src/mocks/hooks/usePageData.ts +0 -12
  1752. package/src/mocks/media-css.ts +0 -1
  1753. package/src/mocks/search.ts +0 -66
  1754. package/src/mocks/telemetry.ts +0 -5
  1755. package/src/mocks/types/index.ts +0 -1
  1756. package/src/mocks/types.ts +0 -5
  1757. package/src/mocks/useGlobalData.tsx +0 -3
  1758. package/src/mocks/usePreloadHistory.ts +0 -9
  1759. package/src/mocks/utils.ts +0 -22
  1760. package/src/types/config.ts +0 -5
  1761. package/src/types/portal/index.ts +0 -3
  1762. package/src/types/portal/src/shared/constants.ts +0 -21
  1763. package/src/types/portal/src/shared/types/activeItem.ts +0 -1
  1764. package/src/types/portal/src/shared/types/catalog.ts +0 -44
  1765. package/src/types/portal/src/shared/types/feedback.ts +0 -22
  1766. package/src/types/portal/src/shared/types/i18n.d.ts +0 -5
  1767. package/src/types/portal/src/shared/types/markdown.ts +0 -6
  1768. package/src/types/portal/src/shared/types/nav.ts +0 -191
  1769. package/src/types/portal/src/shared/types/searchDocument.ts +0 -23
  1770. package/src/ui/ArrowBack.tsx +0 -33
  1771. package/src/ui/Background.tsx +0 -16
  1772. package/src/ui/Box.tsx +0 -37
  1773. package/src/ui/Burger.tsx +0 -39
  1774. package/src/ui/Checkbox.tsx +0 -64
  1775. package/src/ui/Dropdown.tsx +0 -131
  1776. package/src/ui/Flex.tsx +0 -24
  1777. package/src/ui/Highlight.tsx +0 -48
  1778. package/src/ui/Jumbotron.tsx +0 -57
  1779. package/src/ui/darkColors.tsx +0 -248
  1780. package/src/ui/index.tsx +0 -12
  1781. package/src/utils/index.ts +0 -13
  1782. package/src/utils/jsUtils.ts +0 -18
  1783. package/src/utils/jsonToHtml.ts +0 -234
  1784. package/src/utils/media-css.ts +0 -16
  1785. package/src/utils/urls.ts +0 -54
  1786. /package/lib/components/Breadcrumbs/{styledVariables.d.ts → variables.d.ts} +0 -0
  1787. /package/lib/components/Button/{styledVariables.d.ts → variables.d.ts} +0 -0
  1788. /package/lib/components/Catalog/{styledVariables.d.ts → variables.d.ts} +0 -0
  1789. /package/lib/components/CodeBlock/{styledVariables.d.ts → variables.d.ts} +0 -0
  1790. /package/lib/{icons/ColorModeIcon → components/ColorModeSwitcher}/ColorModeIcon.d.ts +0 -0
  1791. /package/lib/components/Dropdown/{styledVariables.d.ts → variables.d.ts} +0 -0
  1792. /package/lib/components/Filter/{styledVariables.d.ts → variables.d.ts} +0 -0
  1793. /package/lib/components/Footer/{styledVariables.d.ts → variables.d.ts} +0 -0
  1794. /package/lib/{i18n/styledVariables.d.ts → components/LanguagePicker/variables.d.ts} +0 -0
  1795. /package/lib/components/LastUpdated/{styledVariables.d.ts → variables.d.ts} +0 -0
  1796. /package/lib/components/{NavbarLogo/styledVariables.d.ts → Logo/variables.d.ts} +0 -0
  1797. /package/lib/components/Navbar/{styledVariables.d.ts → variables.d.ts} +0 -0
  1798. /package/lib/components/Panel/{styledVariables.d.ts → variables.d.ts} +0 -0
  1799. /package/lib/components/Search/{styledVariables.d.ts → variables.d.ts} +0 -0
  1800. /package/lib/components/Select/{styledVariables.d.ts → variables.d.ts} +0 -0
  1801. /package/lib/components/TableOfContent/{styledVariables.d.ts → variables.d.ts} +0 -0
  1802. /package/lib/components/Tag/{styledVariables.d.ts → variables.d.ts} +0 -0
  1803. /package/lib/components/Tooltip/{styledVariables.d.ts → variables.d.ts} +0 -0
  1804. /package/lib/{hooks/__tests__/mocks/MockIntersectionObserver.d.ts → core/hooks/__tests__/mocks/mock-intersection-observer.d.ts} +0 -0
  1805. /package/lib/{hooks/useActiveHeading.d.ts → core/hooks/use-active-heading.d.ts} +0 -0
  1806. /package/lib/{hooks/useActiveSectionId.d.ts → core/hooks/use-active-section-id.d.ts} +0 -0
  1807. /package/lib/{hooks/useControl.d.ts → core/hooks/use-control.d.ts} +0 -0
  1808. /package/lib/{hooks/useDialogHotKeys.d.ts → core/hooks/use-dialog-hotkeys.d.ts} +0 -0
  1809. /package/lib/{hooks/useFullHeight.d.ts → core/hooks/use-full-height.d.ts} +0 -0
  1810. /package/lib/{hooks/useMount.d.ts → core/hooks/use-mount.d.ts} +0 -0
  1811. /package/lib/{hooks/useNavbarHeight.d.ts → core/hooks/use-navbar-height.d.ts} +0 -0
  1812. /package/lib/{hooks/useUnmount.d.ts → core/hooks/use-unmount.d.ts} +0 -0
  1813. /package/lib/{ui/darkColors.d.ts → core/styles/dark.d.ts} +0 -0
  1814. /package/lib/{globalStyle.d.ts → core/styles/global.d.ts} +0 -0
  1815. /package/lib/{types/portal/src/shared → core}/types/catalog.js +0 -0
  1816. /package/lib/{types/portal/src/shared → core}/types/feedback.js +0 -0
  1817. /package/lib/{types/portal/src/shared → core}/types/markdown.d.ts +0 -0
  1818. /package/lib/{types/portal/src/shared → core}/types/markdown.js +0 -0
  1819. /package/lib/{utils → core/utils}/args-typecheck.d.ts +0 -0
  1820. /package/lib/{utils → core/utils}/args-typecheck.js +0 -0
  1821. /package/lib/{utils → core/utils}/class-names.d.ts +0 -0
  1822. /package/lib/{utils → core/utils}/class-names.js +0 -0
  1823. /package/lib/{utils/ClipboardService.d.ts → core/utils/clipboard-service.d.ts} +0 -0
  1824. /package/lib/{utils → core/utils}/color.d.ts +0 -0
  1825. /package/lib/{utils → core/utils}/color.js +0 -0
  1826. /package/lib/{utils → core/utils}/css-variables.d.ts +0 -0
  1827. /package/lib/{utils → core/utils}/css-variables.js +0 -0
  1828. /package/lib/{utils/getNavbarElement.d.ts → core/utils/get-navbar-element.d.ts} +0 -0
  1829. /package/lib/{utils → core/utils}/highlight.d.ts +0 -0
  1830. /package/lib/{utils → core/utils}/highlight.js +0 -0
  1831. /package/lib/{utils/isUrl.d.ts → core/utils/is-url.d.ts} +0 -0
  1832. /package/lib/{utils/replaceHashInColor.d.ts → core/utils/replace-hash-in-color.d.ts} +0 -0
  1833. /package/lib/{utils → core/utils}/tags-parser.d.ts +0 -0
  1834. /package/lib/{utils → core/utils}/tags-parser.js +0 -0
  1835. /package/lib/{utils → core/utils}/text-transform.d.ts +0 -0
  1836. /package/lib/{utils → core/utils}/text-transform.js +0 -0
  1837. /package/lib/{utils → core/utils}/theme-helpers.d.ts +0 -0
  1838. /package/lib/{utils → core/utils}/theme-helpers.js +0 -0
  1839. /package/lib/{components/Feedback → icons}/types.js +0 -0
  1840. /package/lib/{components/Markdown → markdoc/components/Heading}/Heading.d.ts +0 -0
  1841. /package/lib/{components/Menu → markdoc/tags}/types.js +0 -0
  1842. /package/src/{hooks/__tests__/mocks/MockIntersectionObserver.ts → core/hooks/__tests__/mocks/mock-intersection-observer.ts} +0 -0
  1843. /package/src/{hooks/useActiveHeading.ts → core/hooks/use-active-heading.ts} +0 -0
  1844. /package/src/{hooks/useControl.ts → core/hooks/use-control.ts} +0 -0
  1845. /package/src/{hooks/useDialogHotKeys.ts → core/hooks/use-dialog-hotkeys.ts} +0 -0
  1846. /package/src/{hooks/useFullHeight.ts → core/hooks/use-full-height.ts} +0 -0
  1847. /package/src/{hooks/useMount.ts → core/hooks/use-mount.ts} +0 -0
  1848. /package/src/{hooks/useUnmount.ts → core/hooks/use-unmount.ts} +0 -0
  1849. /package/src/{utils → core/utils}/args-typecheck.ts +0 -0
  1850. /package/src/{utils → core/utils}/class-names.ts +0 -0
  1851. /package/src/{utils/ClipboardService.ts → core/utils/clipboard-service.ts} +0 -0
  1852. /package/src/{utils → core/utils}/color.ts +0 -0
  1853. /package/src/{utils → core/utils}/css-variables.ts +0 -0
  1854. /package/src/{utils/getNavbarElement.ts → core/utils/get-navbar-element.ts} +0 -0
  1855. /package/src/{utils → core/utils}/highlight.ts +0 -0
  1856. /package/src/{utils/isUrl.ts → core/utils/is-url.ts} +0 -0
  1857. /package/src/{utils/replaceHashInColor.ts → core/utils/replace-hash-in-color.ts} +0 -0
  1858. /package/src/{utils → core/utils}/tags-parser.ts +0 -0
  1859. /package/src/{utils → core/utils}/text-transform.ts +0 -0
  1860. /package/src/{utils → core/utils}/theme-helpers.ts +0 -0
@@ -1,6 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
+ import { StarIcon } from '@redocly/theme/icons/StarIcon/StarIcon';
5
+ import { StarFilledIcon } from '@redocly/theme/icons/StarFilledIcon/StarFilledIcon';
6
+
4
7
  export type StarsProps = {
5
8
  max?: number;
6
9
  name?: string;
@@ -8,39 +11,34 @@ export type StarsProps = {
8
11
  onChange: (value: number) => void;
9
12
  };
10
13
 
11
- export const Stars = ({ max = 5, onChange, value }: StarsProps): JSX.Element => {
14
+ export function Stars({ max = 5, onChange, value }: StarsProps): JSX.Element {
12
15
  const [hovered, setHovered] = React.useState(value || 0);
13
16
  const stars: JSX.Element[] = [];
14
17
 
15
18
  for (let index = 1; index <= max; index++) {
16
19
  stars.push(
17
20
  <Star
21
+ data-testid={`star-${index}`}
18
22
  key={index}
19
23
  onClick={() => onChange(index)}
20
24
  onMouseOver={() => setHovered(index)}
21
25
  onMouseLeave={() => !value && setHovered(0)}
22
26
  >
23
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
24
- {hovered < index ? (
25
- <g fill="#e8c002">
26
- <path d="M20 7h-7L10 .5 7 7H0l5.46 5.47-1.64 7 6.18-3.7 6.18 3.73-1.63-7zm-10 6.9-3.76 2.27 1-4.28L3.5 8.5h4.61L10 4.6l1.9 3.9h4.6l-3.73 3.4 1 4.28z" />
27
- </g>
28
- ) : (
29
- <g fill="#e8c002">
30
- <path d="M20 7h-7L10 .5 7 7H0l5.46 5.47-1.64 7 6.18-3.7 6.18 3.73-1.63-7z" />
31
- </g>
32
- )}
33
- </svg>
27
+ {hovered < index ? (
28
+ <StarIcon color="var(--feedback-star-color)" />
29
+ ) : (
30
+ <StarFilledIcon color="var(--feedback-star-color)" />
31
+ )}
34
32
  </Star>,
35
33
  );
36
34
  }
37
35
 
38
- return <StarsWrapper>{stars}</StarsWrapper>;
39
- };
36
+ return <StarsWrapper data-component-name="Feedback/Stars">{stars}</StarsWrapper>;
37
+ }
40
38
 
41
39
  const StarsWrapper = styled.div`
42
40
  display: flex;
43
- gap: 8px;
41
+ gap: var(--spacing-xs);
44
42
  flex-direction: row;
45
43
  align-items: center;
46
44
  `;
@@ -52,5 +50,6 @@ const Star = styled.button.attrs(() => ({
52
50
  padding: 0;
53
51
  border: none;
54
52
  background-color: transparent;
55
- gap: 8px;
53
+ height: 16px;
54
+ gap: var(--spacing-xs);
56
55
  `;
@@ -0,0 +1,31 @@
1
+ import { css } from 'styled-components';
2
+
3
+ export const feedback = css`
4
+ /**
5
+ * @tokens Feedback
6
+ */
7
+ --feedback-padding: var(--spacing-base) 0;
8
+ --feedback-font-size: var(--font-size-base);
9
+ --feedback-line-height: var(--line-height-base);
10
+ --feedback-font-family: var(--font-family-base);
11
+ --feedback-text-color: var(--text-color-primary);
12
+ --feedback-bg-color: transparent;
13
+ --feedback-star-color: var(--color-carrot-6);
14
+ --feedback-width: fit-content; // @presenter Width
15
+ --feedback-border-radius: var(--border-radius-lg);
16
+ --feedback-report-dialog-max-width: 90%; // @presenter Width
17
+ --feedback-report-dialog-max-height: 300px; // @presenter Height
18
+ --feedback-report-dialog-width: 480px; // @presenter Width
19
+
20
+ --feedback-header-text-color: var(--text-color-primary);
21
+ --feedback-header-font-size: var(--font-size-lg);
22
+ --feedback-header-line-height: var(--line-height-lg);
23
+
24
+ --feedback-comment-min-width: 256px; // @presenter Width
25
+ --feedback-comment-max-width: 480px; // @presenter Width
26
+
27
+ @media screen and (max-width: 500px) {
28
+ --feedback-comment-max-width: 100%;
29
+ }
30
+ // @tokens End
31
+ `
@@ -1,276 +1,33 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { DatePicker } from 'react-date-picker';
4
3
 
5
- import type { ResolvedFilter } from '@theme/types/portal/src/shared/types/catalog';
6
- import { useTranslate } from '@portal/hooks';
7
- import { CheckboxIcon } from '@theme/icons';
8
- import { Select } from '@theme/components/Select';
9
- import type { ThemeConfig } from '@theme/config';
4
+ import type { FilterProps, FilterTypes } from '@redocly/theme/core/types';
10
5
 
11
- export function Filter({
12
- filter,
13
- filterValuesCasing,
14
- }: {
15
- filter: ResolvedFilter & { selectedOptions: any };
16
- filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
17
- }) {
18
- const { translate } = useTranslate();
6
+ import { FilterSelect } from '@redocly/theme/components/Filter/FilterSelect';
7
+ import { FilterCheckboxes } from '@redocly/theme/components/Filter/FilterCheckboxes';
8
+ import { FilterDateRange } from '@redocly/theme/components/Filter/FilterDateRange';
19
9
 
10
+ const filterComponents = {
11
+ select: FilterSelect,
12
+ 'date-range': FilterDateRange,
13
+ checkboxes: FilterCheckboxes,
14
+ } as const;
15
+
16
+ export function Filter({ filter, filterValuesCasing }: FilterProps): JSX.Element | null {
20
17
  if (!filter.parentUsed) return null;
21
18
 
22
- let selectOptions: { value: string; element: React.ReactNode }[] = [];
23
- if (filter.type === 'select') {
24
- const defaultOptionCount = filter.filteredOptions.reduce(
25
- (acc, option) => acc + option.count,
26
- 0,
27
- );
28
- selectOptions = [
29
- {
30
- value: '',
31
- element: (
32
- <FilterOption key="all" onClick={() => filter.selectOption('')}>
33
- <FilterOptionLabel>
34
- {translate('theme.catalog.filters.select.all', 'All')}
35
- </FilterOptionLabel>
36
- <FilterOptionCount>{defaultOptionCount}</FilterOptionCount>
37
- </FilterOption>
38
- ),
39
- },
40
- ];
41
- selectOptions.push(
42
- ...filter.filteredOptions.map((option) => ({
43
- value: option.value,
44
- element: (
45
- <FilterOption key={option.value}>
46
- <FilterOptionLabel>
47
- {changeCasing(translate(option.value), filterValuesCasing)}
48
- </FilterOptionLabel>
49
- <FilterOptionCount>{option.count}</FilterOptionCount>
50
- </FilterOption>
51
- ),
52
- })),
53
- );
54
- }
19
+ const FilterComponent = filterComponents[(filter.type || 'checkboxes') as FilterTypes];
55
20
 
56
21
  return (
57
- <FilterGroup key={filter.property + filter.title}>
58
- <FilterTitle>{translate(filter.titleTranslationKey, filter.title)} </FilterTitle>
59
- {filter.type === 'select' ? (
60
- <StyledSelect
61
- value={(filter.selectedOptions as Set<any>).values().next()?.value || ''}
62
- onChange={(value) => filter.selectOption(value)}
63
- options={selectOptions}
64
- />
65
- ) : filter.type === 'date-range' ? (
66
- <>
67
- <DatePickerWrapper>
68
- <span>From:</span>
69
- <DatePicker
70
- closeCalendar={true}
71
- format="y-MM-dd"
72
- dayPlaceholder="DD"
73
- monthPlaceholder="MM"
74
- yearPlaceholder="YYYY"
75
- value={filter.selectedOptions.from ? new Date(filter.selectedOptions.from) : null}
76
- minDetail="decade"
77
- maxDate={new Date()}
78
- onChange={(from) => {
79
- if (Array.isArray(from)) return;
80
- filter.selectOption({
81
- ...(filter.selectedOptions as any),
82
- from: formatDateWithNoTimeZone(from),
83
- });
84
- }}
85
- />
86
- </DatePickerWrapper>
87
- <DatePickerWrapper>
88
- <span>To:</span>
89
- <DatePicker
90
- closeCalendar={true}
91
- dayPlaceholder="DD"
92
- monthPlaceholder="MM"
93
- yearPlaceholder="YYYY"
94
- format="y-MM-dd"
95
- minDate={
96
- filter.selectedOptions.from ? new Date(filter.selectedOptions.from) : undefined
97
- }
98
- value={filter.selectedOptions.to ? new Date(filter.selectedOptions.to) : null}
99
- minDetail="decade"
100
- onChange={(to) => {
101
- if (Array.isArray(to)) return;
102
- filter.selectOption({
103
- ...filter.selectedOptions,
104
- to: formatDateWithNoTimeZone(to),
105
- });
106
- }}
107
- />
108
- </DatePickerWrapper>
109
- </>
110
- ) : (
111
- filter.filteredOptions.map((value: any) => {
112
- const id = 'filter--' + filter.property + '--' + value.value;
113
- return (
114
- <FilterOption key={id} role="link" onClick={() => filter.toggleOption(value.value)}>
115
- <CheckboxIcon checked={filter.selectedOptions.has(value.value)} />
116
- <FilterOptionLabel>
117
- {changeCasing(translate(value.value), filterValuesCasing)}
118
- </FilterOptionLabel>
119
- <FilterOptionCount>{value.count}</FilterOptionCount>
120
- </FilterOption>
121
- );
122
- })
123
- )}
22
+ <FilterGroup data-component-name="Filter/Filter" key={filter.property + filter.title}>
23
+ <FilterComponent filter={filter} filterValuesCasing={filterValuesCasing} />
124
24
  </FilterGroup>
125
25
  );
126
26
  }
127
27
 
128
- function changeCasing(
129
- str: string,
130
- casing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'],
131
- ) {
132
- if (!casing || casing === 'original' || !str) return str;
133
-
134
- if (casing === 'lowercase') {
135
- return str.toLowerCase();
136
- }
137
-
138
- if (casing === 'uppercase') {
139
- return str.toUpperCase();
140
- }
141
-
142
- if (casing === 'sentence') {
143
- const words = str?.split(/[\s-_]+/);
144
- return words.map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase()).join(' ');
145
- }
146
- }
147
-
148
28
  const FilterGroup = styled.div`
149
29
  padding: var(--filter-group-padding);
150
- `;
151
-
152
- const FilterOptionLabel = styled.label`
153
- cursor: pointer;
154
- font-size: var(--filter-option-label-font-size);
155
- font-weight: var(--filter-option-label-font-weight);
156
- margin: var(--filter-option-label-margin);
157
- color: var(--filter-option-label-color);
158
- white-space: nowrap;
159
- text-overflow: ellipsis;
160
- overflow: hidden;
161
- `;
162
-
163
- const FilterOptionCount = styled.label`
164
- cursor: pointer;
165
- display: flex;
166
- align-items: center;
167
- height: var(--filter-option-count-height);
168
- color: var(--filter-option-count-color);
169
- text-align: center;
170
- font-size: var(--filter-option-count-font-size);
171
- font-weight: var(--filter-option-count-font-weight);
172
- padding: var(--filter-option-count-padding);
173
- border-radius: var(--filter-option-count-border-radius);
174
- border: var(--filter-option-count-border);
175
- background-color: var(--filter-option-count-background-color);
176
- `;
177
-
178
- const FilterTitle = styled.h4`
179
- font-weight: var(--filter-title-font-weight);
180
- font-size: var(--filter-title-font-size);
181
- margin: var(--filter-title-margin);
182
- `;
183
-
184
- const FilterOption = styled.label.attrs({ 'data-cy': 'Filter/FilterOption' })`
185
- display: flex;
186
- align-items: center;
187
- cursor: pointer;
188
- font-weight: var(--filter-option-font-weight);
189
- font-size: var(--filter-option-font-size);
190
- margin: var(--filter-option-margin);
191
-
192
- input {
193
- cursor: pointer;
194
- }
195
- `;
196
-
197
- const StyledSelect = styled(Select)`
198
- min-height: var(--filter-select-min-height);
199
- color: var(--filter-select-color);
200
- border: 1px solid var(--filter-select-border-color);
201
- border-radius: var(--filter-select-border-radius);
202
- padding: var(--filter-select-padding);
203
-
204
- :hover {
205
- border-color: var(--filter-select-hover-border-color);
206
- }
207
-
208
- ${FilterOption} {
209
- margin: var(--filter-select-option-margin);
210
- }
211
- `;
212
-
213
- const DatePickerWrapper = styled.div`
214
- color: var(--filter-date-picker-color);
215
30
  display: flex;
216
- flex-direction: row;
217
- margin: var(--filter-date-picker-margin);
218
-
219
- align-items: center;
220
- gap: var(--filter-date-picker-gap);
221
-
222
- > span {
223
- width: var(--filter-date-picker-width);
224
- }
225
-
226
- .react-date-picker {
227
- flex: 1;
228
- }
229
-
230
- .react-calendar__tile--now {
231
- background: var(--filter-date-picker-tile-background);
232
- color: var(--filter-date-picker-tile-color);
233
-
234
- &:enabled:hover,
235
- &:enabled:focus {
236
- background: var(--filter-date-picker-tile-hover-background);
237
- color: var(--filter-date-picker-tile-hover-color);
238
- }
239
- }
240
-
241
- .react-date-picker__inputGroup__input {
242
- width: var(--filter-date-picker-input-width);
243
-
244
- &:invalid {
245
- background: var(--filter-date-picker-invalid-input-background);
246
- }
247
- }
248
-
249
- .react-date-picker__button {
250
- padding: var(--filter-date-picker-button-padding);
251
-
252
- svg {
253
- stroke: var(--filter-date-picker-icon-stroke);
254
- width: var(--filter-date-picker-icon-width);
255
- }
256
-
257
- &:enabled:hover .react-date-picker__button__icon {
258
- stroke: var(--filter-date-picker-hover-icon-stroke);
259
- }
260
- }
261
-
262
- .react-date-picker__wrapper {
263
- border: 1px solid var(--filter-date-picker-wrapper-border-color);
264
- border-radius: var(--filter-date-picker-wrapper-radius);
265
- padding: var(--filter-date-picker-wrapper-padding);
266
- }
31
+ flex-direction: column;
32
+ gap: var(--filter-group-gap);
267
33
  `;
268
-
269
- function padZero(num: number) {
270
- return num < 10 ? '0' + num : num;
271
- }
272
-
273
- function formatDateWithNoTimeZone(date?: Date | null) {
274
- if (!date) return date;
275
- return `${date.getFullYear()}-${padZero(date.getMonth() + 1)}-${padZero(date.getDate())}`;
276
- }
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { FilterProps } from '@redocly/theme/core/types';
5
+
6
+ import { FilterOptions } from '@redocly/theme/components/Filter/FilterOptions';
7
+ import { FilterOption } from '@redocly/theme/components/Filter/FilterOption';
8
+ import { FilterTitle } from '@redocly/theme/components/Filter/FilterTitle';
9
+ import { FilterOptionLabel } from '@redocly/theme/components/Filter/FilterOptionLabel';
10
+ import { useThemeHooks } from '@redocly/theme/core/hooks';
11
+ import { CheckboxIcon } from '@redocly/theme/icons/CheckboxIcon/CheckboxIcon';
12
+ import { CounterTag } from '@redocly/theme/components/Tags/CounterTag';
13
+ import { changeTextCasing } from '@redocly/theme/core/utils';
14
+
15
+ export function FilterCheckboxes({ filter, filterValuesCasing }: FilterProps): JSX.Element {
16
+ const { useTranslate, useTelemetry } = useThemeHooks();
17
+ const { translate } = useTranslate();
18
+ const telemetry = useTelemetry();
19
+
20
+ return (
21
+ <FilterCheckboxesWrapper data-component-name="Filter/FilterCheckboxes">
22
+ <FilterTitle data-translation-key={filter.titleTranslationKey}>
23
+ {translate(filter.titleTranslationKey, filter.title)}
24
+ </FilterTitle>
25
+ <FilterOptions>
26
+ {filter.filteredOptions.map(({ value, count }) => {
27
+ const id = 'filter--' + filter.property + '--' + value;
28
+ return (
29
+ <FilterCheckboxOption
30
+ key={id}
31
+ role="link"
32
+ onClick={() => {
33
+ filter.toggleOption(value);
34
+ telemetry.send('filter_checkbox_toggled', { id });
35
+ }}
36
+ >
37
+ <CheckboxIcon checked={filter.selectedOptions.has(value)} />
38
+ <FilterOptionLabel data-translation-key={value}>
39
+ {changeTextCasing(translate(value), filterValuesCasing)}
40
+ </FilterOptionLabel>
41
+ <CounterTag borderless>{count}</CounterTag>
42
+ </FilterCheckboxOption>
43
+ );
44
+ })}
45
+ </FilterOptions>
46
+ </FilterCheckboxesWrapper>
47
+ );
48
+ }
49
+
50
+ const FilterCheckboxOption = styled(FilterOption)`
51
+ padding-left: var(--filter-option-checkbox-padding-left);
52
+ `;
53
+
54
+ const FilterCheckboxesWrapper = styled.div`
55
+ display: flex;
56
+ flex-direction: column;
57
+ gap: var(--spacing-sm);
58
+ `;
@@ -1,30 +1,28 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
3
 
4
- import type { ThemeConfig } from '@theme/config';
5
- import { Button } from '@theme/components/Button';
6
- import { useTranslate } from '@portal/hooks';
7
- import { FilterControls } from '@theme/components/Catalog';
8
- import { Filter } from '@theme/components/Filter';
9
- import { Sidebar } from '@theme/components/Sidebar';
10
- import type { ResolvedFilter } from '@theme/types/portal/src/shared/types/catalog';
11
- import { StyledInput } from '@theme/components/Filter/FilterPopover';
4
+ import type { ResolvedFilter } from '@redocly/theme/core/types';
5
+ import type { ThemeConfig } from '@redocly/theme/config';
12
6
 
13
- interface FilterContentProps {
7
+ import { FilterInput } from '@redocly/theme/components/Filter/FilterInput';
8
+ import { useThemeHooks } from '@redocly/theme/core/hooks';
9
+ import { Button } from '@redocly/theme/components/Button/Button';
10
+ import { Filter } from '@redocly/theme/components/Filter/Filter';
11
+
12
+ type FilterContentProps = {
14
13
  setFilterTerm: (value: string) => void;
15
14
  filters: ResolvedFilter[];
16
15
  filterTerm: string;
17
- isMobile: boolean;
18
16
  filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
19
- }
17
+ };
20
18
 
21
19
  export function FilterContent({
22
20
  setFilterTerm,
23
21
  filters,
24
22
  filterTerm,
25
- isMobile,
26
23
  filterValuesCasing,
27
- }: FilterContentProps) {
24
+ }: FilterContentProps): JSX.Element {
25
+ const { useTranslate } = useThemeHooks();
28
26
  const { translate } = useTranslate();
29
27
 
30
28
  const hasActiveFilters = filters.some((filter) => {
@@ -42,14 +40,18 @@ export function FilterContent({
42
40
  };
43
41
 
44
42
  return (
45
- <FilterContentWrapper isMobile={isMobile}>
46
- <FilterControls>
47
- <StyledInput
48
- placeholder={translate('theme.catalog.filters.placeholder', 'Type to filter...')}
49
- value={filterTerm}
50
- onChange={(e) => setFilterTerm(e.target.value)}
51
- />
52
- </FilterControls>
43
+ <FilterContentWrapper data-component-name="Filter/FilterContent">
44
+ <FiltersHeader>
45
+ <FiltersTitle data-translation-key="theme.catalog.filters.title">
46
+ {translate('theme.catalog.filters.title', 'Filters')}
47
+ </FiltersTitle>
48
+ {hasActiveFilters ? (
49
+ <Button size="medium" variant="ghost" onClick={handleClearAll}>
50
+ {translate('theme.catalog.filters.clearAll', 'Clear filters')}
51
+ </Button>
52
+ ) : null}
53
+ </FiltersHeader>
54
+ <FilterInput value={filterTerm} onChange={(updatedTerm) => setFilterTerm(updatedTerm)} />
53
55
  <FilterItems>
54
56
  {filters.map((filter, idx) => (
55
57
  <Filter
@@ -59,47 +61,35 @@ export function FilterContent({
59
61
  />
60
62
  ))}
61
63
  </FilterItems>
62
- {hasActiveFilters && (
63
- <ActionsContainer>
64
- <ClearAllButton size="default" variant="outlined" onClick={handleClearAll}>
65
- {translate('theme.catalog.filters.clearAll', 'Clear all filters')}
66
- </ClearAllButton>
67
- </ActionsContainer>
68
- )}
69
64
  </FilterContentWrapper>
70
65
  );
71
66
  }
72
67
 
73
- const FilterContentWrapper = styled(Sidebar)<{ isMobile?: boolean }>`
74
- width: var(--sidebar-width);
75
- display: none;
76
-
77
- ${Button} {
78
- width: var(--filter-content-clear-button-width);
79
- }
68
+ const FilterContentWrapper = styled.div`
69
+ padding: var(--filter-content-padding-vertical) var(--filter-content-padding-horizontal);
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: var(--filter-content-gap);
73
+ `;
80
74
 
81
- ${({ theme, isMobile }) => !isMobile && theme.mediaQueries.medium} {
82
- display: flex;
83
- border-right: 1px solid var(--filter-content-border-color);
75
+ const FiltersHeader = styled.div`
76
+ display: flex;
77
+ padding: var(--filter-content-header-padding-vertical)
78
+ var(--filter-content-header-padding-horizontal);
79
+ `;
84
80
 
85
- ${FilterControls} {
86
- background: var(--filter-controls-background-color);
87
- }
88
- }
81
+ const FiltersTitle = styled.div`
82
+ margin-right: auto;
83
+ font-size: var(--filter-content-title-font-size);
84
+ font-weight: var(--filter-content-title-font-weight);
85
+ line-height: var(--filter-content-title-line-height);
89
86
  `;
90
87
 
91
88
  export const FilterItems = styled.div`
92
- overflow: scroll;
93
89
  padding: var(--filter-content-items-padding);
94
- `;
95
-
96
- const ActionsContainer = styled.div`
90
+ height: 100%;
97
91
  display: flex;
98
- align-items: center;
99
- padding: var(--spacing-base) var(--spacing-lg);
100
- margin-top: auto;
101
- `;
102
-
103
- const ClearAllButton = styled(Button)`
104
- width: var(--filter-content-clear-button-width);
92
+ flex-direction: column;
93
+ gap: var(--spacing-base);
94
+ border-top: 1px solid var(--border-color-secondary);
105
95
  `;
@@ -0,0 +1,97 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { FilterProps } from '@redocly/theme/core/types';
5
+
6
+ import { FilterOptions } from '@redocly/theme/components/Filter/FilterOptions';
7
+ import { FilterTitle } from '@redocly/theme/components/Filter/FilterTitle';
8
+ import { DatePicker } from '@redocly/theme/components/DatePicker/DatePicker';
9
+ import { useThemeHooks } from '@redocly/theme/core/hooks';
10
+ import { formatDateWithoutTimeZone } from '@redocly/theme/core/utils';
11
+
12
+ export function FilterDateRange({ filter }: FilterProps): JSX.Element {
13
+ const { useTranslate } = useThemeHooks();
14
+ const { translate } = useTranslate();
15
+
16
+ const from = filter.selectedOptions.from ? new Date(filter.selectedOptions.from) : undefined;
17
+ const to = filter.selectedOptions.to ? new Date(filter.selectedOptions.to) : undefined;
18
+
19
+ return (
20
+ <FilterDateRangeWrapper data-component-name="Filter/FilterDateRange">
21
+ <FilterTitle data-translation-key={filter.titleTranslationKey}>
22
+ {translate(filter.titleTranslationKey, filter.title)}
23
+ </FilterTitle>
24
+ <FilterOptions>
25
+ <DateRangeWrapper>
26
+ <DateRangeRow>
27
+ <span>From:</span>
28
+ <DatePicker
29
+ closeCalendar={true}
30
+ format="y-MM-dd"
31
+ dayPlaceholder="DD"
32
+ monthPlaceholder="MM"
33
+ yearPlaceholder="YYYY"
34
+ value={from}
35
+ minDetail="decade"
36
+ maxDate={new Date()}
37
+ onChange={(from) => {
38
+ if (Array.isArray(from)) return;
39
+ filter.selectOption({
40
+ ...filter.selectedOptions,
41
+ from: formatDateWithoutTimeZone(from),
42
+ to: formatDateWithoutTimeZone(to),
43
+ });
44
+ }}
45
+ />
46
+ </DateRangeRow>
47
+ <DateRangeRow>
48
+ <span>To:</span>
49
+ <DatePicker
50
+ closeCalendar={true}
51
+ dayPlaceholder="DD"
52
+ monthPlaceholder="MM"
53
+ yearPlaceholder="YYYY"
54
+ format="y-MM-dd"
55
+ minDate={from}
56
+ value={to}
57
+ minDetail="decade"
58
+ onChange={(to) => {
59
+ if (Array.isArray(to)) return;
60
+ filter.selectOption({
61
+ ...filter.selectedOptions,
62
+ from: formatDateWithoutTimeZone(from),
63
+ to: formatDateWithoutTimeZone(to),
64
+ });
65
+ }}
66
+ />
67
+ </DateRangeRow>
68
+ </DateRangeWrapper>
69
+ </FilterOptions>
70
+ </FilterDateRangeWrapper>
71
+ );
72
+ }
73
+
74
+ const DateRangeWrapper = styled.div`
75
+ display: flex;
76
+ flex-direction: column;
77
+ gap: var(--filter-options-gap);
78
+ `;
79
+
80
+ const DateRangeRow = styled.div`
81
+ color: var(--filter-date-picker-color);
82
+ display: flex;
83
+ flex-direction: row;
84
+
85
+ align-items: center;
86
+ gap: var(--filter-date-picker-gap);
87
+
88
+ > span {
89
+ width: var(--filter-date-picker-width);
90
+ color: var(--filter-option-label-color);
91
+ }
92
+ `;
93
+ const FilterDateRangeWrapper = styled.div`
94
+ display: flex;
95
+ flex-direction: column;
96
+ gap: var(--spacing-xxs);
97
+ `;