@redocly/theme 0.0.0-react18-20231120182601

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 (1109) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +1 -0
  3. package/lib/components/ApiOnboarding/AppCustomAttributes.d.ts +5 -0
  4. package/lib/components/ApiOnboarding/AppCustomAttributes.js +10 -0
  5. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +7 -0
  6. package/lib/components/Breadcrumbs/Breadcrumb.js +41 -0
  7. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +4 -0
  8. package/lib/components/Breadcrumbs/Breadcrumbs.js +51 -0
  9. package/lib/components/Breadcrumbs/index.d.ts +3 -0
  10. package/lib/components/Breadcrumbs/index.js +20 -0
  11. package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
  12. package/lib/components/Breadcrumbs/styledVariables.js +20 -0
  13. package/lib/components/Button/Button.d.ts +22 -0
  14. package/lib/components/Button/Button.js +158 -0
  15. package/lib/components/Button/index.d.ts +2 -0
  16. package/lib/components/Button/index.js +19 -0
  17. package/lib/components/Button/styledVariables.d.ts +1 -0
  18. package/lib/components/Button/styledVariables.js +118 -0
  19. package/lib/components/Cards/Card.d.ts +9 -0
  20. package/lib/components/Cards/Card.js +38 -0
  21. package/lib/components/Cards/CardsBlock.d.ts +1 -0
  22. package/lib/components/Cards/CardsBlock.js +16 -0
  23. package/lib/components/Cards/index.d.ts +2 -0
  24. package/lib/components/Cards/index.js +19 -0
  25. package/lib/components/Catalog/Catalog.d.ts +16 -0
  26. package/lib/components/Catalog/Catalog.js +178 -0
  27. package/lib/components/Catalog/CatalogCard.d.ts +5 -0
  28. package/lib/components/Catalog/CatalogCard.js +167 -0
  29. package/lib/components/Catalog/index.d.ts +4 -0
  30. package/lib/components/Catalog/index.js +21 -0
  31. package/lib/components/Catalog/styledVariables.d.ts +1 -0
  32. package/lib/components/Catalog/styledVariables.js +97 -0
  33. package/lib/components/Catalog/useCatalog.d.ts +4 -0
  34. package/lib/components/Catalog/useCatalog.js +317 -0
  35. package/lib/components/CodeBlock/CodeBlock.d.ts +29 -0
  36. package/lib/components/CodeBlock/CodeBlock.js +66 -0
  37. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +3 -0
  38. package/lib/components/CodeBlock/CodeBlockContainer.js +148 -0
  39. package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +4 -0
  40. package/lib/components/CodeBlock/CodeBlockControlButton.js +52 -0
  41. package/lib/components/CodeBlock/CodeBlockControls.d.ts +33 -0
  42. package/lib/components/CodeBlock/CodeBlockControls.js +63 -0
  43. package/lib/components/CodeBlock/index.d.ts +5 -0
  44. package/lib/components/CodeBlock/index.js +22 -0
  45. package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
  46. package/lib/components/CodeBlock/styledVariables.js +92 -0
  47. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +6 -0
  48. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +83 -0
  49. package/lib/components/ColorModeSwitcher/index.d.ts +1 -0
  50. package/lib/components/ColorModeSwitcher/index.js +18 -0
  51. package/lib/components/CopyButton/CopyButton.d.ts +15 -0
  52. package/lib/components/CopyButton/CopyButton.js +53 -0
  53. package/lib/components/CopyButton/index.d.ts +1 -0
  54. package/lib/components/CopyButton/index.js +18 -0
  55. package/lib/components/Dropdown/Dropdown.d.ts +22 -0
  56. package/lib/components/Dropdown/Dropdown.js +116 -0
  57. package/lib/components/Dropdown/index.d.ts +2 -0
  58. package/lib/components/Dropdown/index.js +19 -0
  59. package/lib/components/Dropdown/styledVariables.d.ts +1 -0
  60. package/lib/components/Dropdown/styledVariables.js +30 -0
  61. package/lib/components/EditPageButton/EditPageButton.d.ts +5 -0
  62. package/lib/components/EditPageButton/EditPageButton.js +43 -0
  63. package/lib/components/EditPageButton/index.d.ts +1 -0
  64. package/lib/components/EditPageButton/index.js +18 -0
  65. package/lib/components/Feedback/Comment.d.ts +3 -0
  66. package/lib/components/Feedback/Comment.js +123 -0
  67. package/lib/components/Feedback/Emotions.d.ts +4 -0
  68. package/lib/components/Feedback/Emotions.js +57 -0
  69. package/lib/components/Feedback/Feedback.d.ts +5 -0
  70. package/lib/components/Feedback/Feedback.js +88 -0
  71. package/lib/components/Feedback/Mood.d.ts +8 -0
  72. package/lib/components/Feedback/Mood.js +197 -0
  73. package/lib/components/Feedback/Rating.d.ts +4 -0
  74. package/lib/components/Feedback/Rating.js +134 -0
  75. package/lib/components/Feedback/Reasons.d.ts +3 -0
  76. package/lib/components/Feedback/Reasons.js +82 -0
  77. package/lib/components/Feedback/ReportDialog.d.ts +3 -0
  78. package/lib/components/Feedback/ReportDialog.js +77 -0
  79. package/lib/components/Feedback/Scale.d.ts +4 -0
  80. package/lib/components/Feedback/Scale.js +180 -0
  81. package/lib/components/Feedback/Sentiment.d.ts +3 -0
  82. package/lib/components/Feedback/Sentiment.js +167 -0
  83. package/lib/components/Feedback/Stars.d.ts +8 -0
  84. package/lib/components/Feedback/Stars.js +54 -0
  85. package/lib/components/Feedback/Thumbs.d.ts +3 -0
  86. package/lib/components/Feedback/Thumbs.js +49 -0
  87. package/lib/components/Feedback/index.d.ts +10 -0
  88. package/lib/components/Feedback/index.js +37 -0
  89. package/lib/components/Feedback/types.d.ts +128 -0
  90. package/lib/components/Feedback/types.js +3 -0
  91. package/lib/components/Feedback/useReportDialog.d.ts +13 -0
  92. package/lib/components/Feedback/useReportDialog.js +46 -0
  93. package/lib/components/Filter/Filter.d.ts +9 -0
  94. package/lib/components/Filter/Filter.js +199 -0
  95. package/lib/components/Filter/FilterContent.d.ts +13 -0
  96. package/lib/components/Filter/FilterContent.js +69 -0
  97. package/lib/components/Filter/FilterPopover.d.ts +13 -0
  98. package/lib/components/Filter/FilterPopover.js +106 -0
  99. package/lib/components/Filter/FilterTag.d.ts +7 -0
  100. package/lib/components/Filter/FilterTag.js +33 -0
  101. package/lib/components/Filter/FilterTags.d.ts +7 -0
  102. package/lib/components/Filter/FilterTags.js +29 -0
  103. package/lib/components/Filter/index.d.ts +6 -0
  104. package/lib/components/Filter/index.js +23 -0
  105. package/lib/components/Filter/styledVariables.d.ts +1 -0
  106. package/lib/components/Filter/styledVariables.js +111 -0
  107. package/lib/components/Footer/CustomFooter.d.ts +8 -0
  108. package/lib/components/Footer/CustomFooter.js +35 -0
  109. package/lib/components/Footer/CustomFooterNavItem.d.ts +8 -0
  110. package/lib/components/Footer/CustomFooterNavItem.js +33 -0
  111. package/lib/components/Footer/Footer.d.ts +11 -0
  112. package/lib/components/Footer/Footer.js +58 -0
  113. package/lib/components/Footer/FooterColumn.d.ts +12 -0
  114. package/lib/components/Footer/FooterColumn.js +111 -0
  115. package/lib/components/Footer/FooterColumns.d.ts +10 -0
  116. package/lib/components/Footer/FooterColumns.js +46 -0
  117. package/lib/components/Footer/FooterCopyright.d.ts +7 -0
  118. package/lib/components/Footer/FooterCopyright.js +33 -0
  119. package/lib/components/Footer/index.d.ts +5 -0
  120. package/lib/components/Footer/index.js +22 -0
  121. package/lib/components/Footer/styledVariables.d.ts +1 -0
  122. package/lib/components/Footer/styledVariables.js +61 -0
  123. package/lib/components/Image/Image.d.ts +9 -0
  124. package/lib/components/Image/Image.js +31 -0
  125. package/lib/components/Image/index.d.ts +1 -0
  126. package/lib/components/Image/index.js +18 -0
  127. package/lib/components/JsonViewer/JsonViewer.d.ts +14 -0
  128. package/lib/components/JsonViewer/JsonViewer.js +221 -0
  129. package/lib/components/JsonViewer/index.d.ts +1 -0
  130. package/lib/components/JsonViewer/index.js +18 -0
  131. package/lib/components/LastUpdated/LastUpdated.d.ts +15 -0
  132. package/lib/components/LastUpdated/LastUpdated.js +84 -0
  133. package/lib/components/LastUpdated/index.d.ts +2 -0
  134. package/lib/components/LastUpdated/index.js +19 -0
  135. package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
  136. package/lib/components/LastUpdated/styledVariables.js +11 -0
  137. package/lib/components/Markdown/Admonition.d.ts +12 -0
  138. package/lib/components/Markdown/Admonition.js +59 -0
  139. package/lib/components/Markdown/ContainerWrapper.d.ts +3 -0
  140. package/lib/components/Markdown/ContainerWrapper.js +27 -0
  141. package/lib/components/Markdown/Details.d.ts +7 -0
  142. package/lib/components/Markdown/Details.js +17 -0
  143. package/lib/components/Markdown/Heading.d.ts +8 -0
  144. package/lib/components/Markdown/Heading.js +48 -0
  145. package/lib/components/Markdown/MarkdownLayout.d.ts +17 -0
  146. package/lib/components/Markdown/MarkdownLayout.js +47 -0
  147. package/lib/components/Markdown/MarkdownWrapper.d.ts +8 -0
  148. package/lib/components/Markdown/MarkdownWrapper.js +415 -0
  149. package/lib/components/Markdown/Mermaid.d.ts +9 -0
  150. package/lib/components/Markdown/Mermaid.js +23 -0
  151. package/lib/components/Markdown/PageWrapper.d.ts +1 -0
  152. package/lib/components/Markdown/PageWrapper.js +16 -0
  153. package/lib/components/Markdown/Sup.d.ts +4 -0
  154. package/lib/components/Markdown/Sup.js +14 -0
  155. package/lib/components/Markdown/index.d.ts +10 -0
  156. package/lib/components/Markdown/index.js +27 -0
  157. package/lib/components/Markdown/styledVariables.d.ts +3 -0
  158. package/lib/components/Markdown/styledVariables.js +285 -0
  159. package/lib/components/Menu/Menu.d.ts +12 -0
  160. package/lib/components/Menu/Menu.js +28 -0
  161. package/lib/components/Menu/MenuContainer.d.ts +6 -0
  162. package/lib/components/Menu/MenuContainer.js +18 -0
  163. package/lib/components/Menu/MenuGroup.d.ts +10 -0
  164. package/lib/components/Menu/MenuGroup.js +107 -0
  165. package/lib/components/Menu/MenuItem.d.ts +3 -0
  166. package/lib/components/Menu/MenuItem.js +44 -0
  167. package/lib/components/Menu/MenuItemLabel.d.ts +3 -0
  168. package/lib/components/Menu/MenuItemLabel.js +51 -0
  169. package/lib/components/Menu/MenuItemSwitch.d.ts +4 -0
  170. package/lib/components/Menu/MenuItemSwitch.js +40 -0
  171. package/lib/components/Menu/MenuLink.d.ts +2 -0
  172. package/lib/components/Menu/MenuLink.js +16 -0
  173. package/lib/components/Menu/MenuLinkItem.d.ts +3 -0
  174. package/lib/components/Menu/MenuLinkItem.js +16 -0
  175. package/lib/components/Menu/MobileMenu.d.ts +4 -0
  176. package/lib/components/Menu/MobileMenu.js +144 -0
  177. package/lib/components/Menu/MobileMenuGroup.d.ts +9 -0
  178. package/lib/components/Menu/MobileMenuGroup.js +61 -0
  179. package/lib/components/Menu/constants.d.ts +5 -0
  180. package/lib/components/Menu/constants.js +10 -0
  181. package/lib/components/Menu/hooks/use-mobile-menu-items.d.ts +2 -0
  182. package/lib/components/Menu/hooks/use-mobile-menu-items.js +80 -0
  183. package/lib/components/Menu/hooks/use-mobile-menu-levels.d.ts +5 -0
  184. package/lib/components/Menu/hooks/use-mobile-menu-levels.js +46 -0
  185. package/lib/components/Menu/index.d.ts +13 -0
  186. package/lib/components/Menu/index.js +30 -0
  187. package/lib/components/Menu/styledVariables.d.ts +2 -0
  188. package/lib/components/Menu/styledVariables.js +103 -0
  189. package/lib/components/Menu/types.d.ts +4 -0
  190. package/lib/components/Menu/types.js +3 -0
  191. package/lib/components/Menu/utils.d.ts +8 -0
  192. package/lib/components/Menu/utils.js +76 -0
  193. package/lib/components/Navbar/BurgerButton.d.ts +5 -0
  194. package/lib/components/Navbar/BurgerButton.js +29 -0
  195. package/lib/components/Navbar/Navbar.d.ts +16 -0
  196. package/lib/components/Navbar/Navbar.js +159 -0
  197. package/lib/components/Navbar/NavbarItem.d.ts +20 -0
  198. package/lib/components/Navbar/NavbarItem.js +128 -0
  199. package/lib/components/Navbar/NavbarMenu.d.ts +6 -0
  200. package/lib/components/Navbar/NavbarMenu.js +34 -0
  201. package/lib/components/Navbar/index.d.ts +5 -0
  202. package/lib/components/Navbar/index.js +22 -0
  203. package/lib/components/Navbar/styledVariables.d.ts +1 -0
  204. package/lib/components/Navbar/styledVariables.js +42 -0
  205. package/lib/components/NavbarLogo/NavbarLogo.d.ts +10 -0
  206. package/lib/components/NavbarLogo/NavbarLogo.js +34 -0
  207. package/lib/components/NavbarLogo/index.d.ts +2 -0
  208. package/lib/components/NavbarLogo/index.js +19 -0
  209. package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
  210. package/lib/components/NavbarLogo/styledVariables.js +17 -0
  211. package/lib/components/OpenApiDocs/ClearButton.d.ts +8 -0
  212. package/lib/components/OpenApiDocs/ClearButton.js +48 -0
  213. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.d.ts +3 -0
  214. package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +178 -0
  215. package/lib/components/OpenApiDocs/Dropdown.d.ts +28 -0
  216. package/lib/components/OpenApiDocs/Dropdown.js +150 -0
  217. package/lib/components/OpenApiDocs/ScorecardBadges.d.ts +11 -0
  218. package/lib/components/OpenApiDocs/ScorecardBadges.js +58 -0
  219. package/lib/components/OpenApiDocs/TryItSecurityApps.d.ts +7 -0
  220. package/lib/components/OpenApiDocs/TryItSecurityApps.js +15 -0
  221. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperation.d.ts +1 -0
  222. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperation.js +11 -0
  223. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.d.ts +1 -0
  224. package/lib/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.js +11 -0
  225. package/lib/components/OpenApiDocs/hooks/AfterOpenApiTitle.d.ts +1 -0
  226. package/lib/components/OpenApiDocs/hooks/AfterOpenApiTitle.js +11 -0
  227. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperation.d.ts +1 -0
  228. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperation.js +11 -0
  229. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.d.ts +1 -0
  230. package/lib/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.js +11 -0
  231. package/lib/components/OpenApiDocs/hooks/OpenApiFooter.d.ts +1 -0
  232. package/lib/components/OpenApiDocs/hooks/OpenApiFooter.js +8 -0
  233. package/lib/components/OpenApiDocs/hooks/OpenApiHeader.d.ts +1 -0
  234. package/lib/components/OpenApiDocs/hooks/OpenApiHeader.js +8 -0
  235. package/lib/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.d.ts +1 -0
  236. package/lib/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.js +14 -0
  237. package/lib/components/OpenApiDocs/index.d.ts +10 -0
  238. package/lib/components/OpenApiDocs/index.js +27 -0
  239. package/lib/components/PageNavigation/NextButton.d.ts +8 -0
  240. package/lib/components/PageNavigation/NextButton.js +53 -0
  241. package/lib/components/PageNavigation/PageNavigation.d.ts +9 -0
  242. package/lib/components/PageNavigation/PageNavigation.js +33 -0
  243. package/lib/components/PageNavigation/PreviousButton.d.ts +8 -0
  244. package/lib/components/PageNavigation/PreviousButton.js +33 -0
  245. package/lib/components/PageNavigation/index.d.ts +3 -0
  246. package/lib/components/PageNavigation/index.js +20 -0
  247. package/lib/components/Panel/Panel.d.ts +5 -0
  248. package/lib/components/Panel/Panel.js +39 -0
  249. package/lib/components/Panel/PanelBody.d.ts +6 -0
  250. package/lib/components/Panel/PanelBody.js +62 -0
  251. package/lib/components/Panel/PanelComponent.d.ts +13 -0
  252. package/lib/components/Panel/PanelComponent.js +65 -0
  253. package/lib/components/Panel/PanelHeader.d.ts +7 -0
  254. package/lib/components/Panel/PanelHeader.js +35 -0
  255. package/lib/components/Panel/PanelHeaderTitle.d.ts +1 -0
  256. package/lib/components/Panel/PanelHeaderTitle.js +18 -0
  257. package/lib/components/Panel/index.d.ts +6 -0
  258. package/lib/components/Panel/index.js +23 -0
  259. package/lib/components/Panel/styledVariables.d.ts +2 -0
  260. package/lib/components/Panel/styledVariables.js +482 -0
  261. package/lib/components/Product/Product.d.ts +7 -0
  262. package/lib/components/Product/Product.js +23 -0
  263. package/lib/components/Product/ProductPicker.d.ts +2 -0
  264. package/lib/components/Product/ProductPicker.js +90 -0
  265. package/lib/components/Product/index.d.ts +3 -0
  266. package/lib/components/Product/index.js +20 -0
  267. package/lib/components/Product/styledVariables.d.ts +2 -0
  268. package/lib/components/Product/styledVariables.js +42 -0
  269. package/lib/components/Profile/AuthUserProfile.d.ts +2 -0
  270. package/lib/components/Profile/AuthUserProfile.js +22 -0
  271. package/lib/components/Profile/LoginLink.d.ts +5 -0
  272. package/lib/components/Profile/LoginLink.js +34 -0
  273. package/lib/components/Profile/MobileUserProfile.d.ts +2 -0
  274. package/lib/components/Profile/MobileUserProfile.js +64 -0
  275. package/lib/components/Profile/Profile.d.ts +15 -0
  276. package/lib/components/Profile/Profile.js +86 -0
  277. package/lib/components/Profile/UserProfile.d.ts +3 -0
  278. package/lib/components/Profile/UserProfile.js +107 -0
  279. package/lib/components/Profile/UserProfileData.d.ts +9 -0
  280. package/lib/components/Profile/UserProfileData.js +35 -0
  281. package/lib/components/Profile/index.d.ts +10 -0
  282. package/lib/components/Profile/index.js +28 -0
  283. package/lib/components/Profile/styledVariables.d.ts +2 -0
  284. package/lib/components/Profile/styledVariables.js +55 -0
  285. package/lib/components/Profile/types.d.ts +12 -0
  286. package/lib/components/Profile/types.js +3 -0
  287. package/lib/components/Scorecard/Card.d.ts +5 -0
  288. package/lib/components/Scorecard/Card.js +37 -0
  289. package/lib/components/Scorecard/Gauge.d.ts +11 -0
  290. package/lib/components/Scorecard/Gauge.js +61 -0
  291. package/lib/components/Scorecard/StatusByLevelWidget.d.ts +12 -0
  292. package/lib/components/Scorecard/StatusByLevelWidget.js +83 -0
  293. package/lib/components/Search/CancelSearch.d.ts +5 -0
  294. package/lib/components/Search/CancelSearch.js +48 -0
  295. package/lib/components/Search/ClearIcon.d.ts +3 -0
  296. package/lib/components/Search/ClearIcon.js +26 -0
  297. package/lib/components/Search/ClockBackwardsIcon.d.ts +3 -0
  298. package/lib/components/Search/ClockBackwardsIcon.js +26 -0
  299. package/lib/components/Search/Input.d.ts +1 -0
  300. package/lib/components/Search/Input.js +27 -0
  301. package/lib/components/Search/InputWrapper.d.ts +11 -0
  302. package/lib/components/Search/InputWrapper.js +80 -0
  303. package/lib/components/Search/MobileSearchTrigger.d.ts +5 -0
  304. package/lib/components/Search/MobileSearchTrigger.js +52 -0
  305. package/lib/components/Search/Popover.d.ts +1 -0
  306. package/lib/components/Search/Popover.js +35 -0
  307. package/lib/components/Search/ProductTag.d.ts +6 -0
  308. package/lib/components/Search/ProductTag.js +61 -0
  309. package/lib/components/Search/RecentSearches.d.ts +5 -0
  310. package/lib/components/Search/RecentSearches.js +126 -0
  311. package/lib/components/Search/Search.d.ts +4 -0
  312. package/lib/components/Search/Search.js +75 -0
  313. package/lib/components/Search/SearchDialog.d.ts +5 -0
  314. package/lib/components/Search/SearchDialog.js +146 -0
  315. package/lib/components/Search/SearchIcon.d.ts +3 -0
  316. package/lib/components/Search/SearchIcon.js +26 -0
  317. package/lib/components/Search/SearchItem.d.ts +10 -0
  318. package/lib/components/Search/SearchItem.js +130 -0
  319. package/lib/components/Search/SearchTrigger.d.ts +5 -0
  320. package/lib/components/Search/SearchTrigger.js +76 -0
  321. package/lib/components/Search/Shortcut.d.ts +6 -0
  322. package/lib/components/Search/Shortcut.js +51 -0
  323. package/lib/components/Search/ShortcutKey.d.ts +8 -0
  324. package/lib/components/Search/ShortcutKey.js +26 -0
  325. package/lib/components/Search/SuggestedPages.d.ts +4 -0
  326. package/lib/components/Search/SuggestedPages.js +104 -0
  327. package/lib/components/Search/index.d.ts +19 -0
  328. package/lib/components/Search/index.js +36 -0
  329. package/lib/components/Search/styledVariables.d.ts +1 -0
  330. package/lib/components/Search/styledVariables.js +98 -0
  331. package/lib/components/Search/utils.d.ts +2 -0
  332. package/lib/components/Search/utils.js +46 -0
  333. package/lib/components/Select/Select.d.ts +33 -0
  334. package/lib/components/Select/Select.js +139 -0
  335. package/lib/components/Select/index.d.ts +2 -0
  336. package/lib/components/Select/index.js +19 -0
  337. package/lib/components/Select/styledVariables.d.ts +1 -0
  338. package/lib/components/Select/styledVariables.js +34 -0
  339. package/lib/components/Separator/Separator.d.ts +3 -0
  340. package/lib/components/Separator/Separator.js +28 -0
  341. package/lib/components/Separator/SeparatorItem.d.ts +3 -0
  342. package/lib/components/Separator/SeparatorItem.js +31 -0
  343. package/lib/components/Separator/SeparatorLine.d.ts +1 -0
  344. package/lib/components/Separator/SeparatorLine.js +20 -0
  345. package/lib/components/Separator/index.d.ts +3 -0
  346. package/lib/components/Separator/index.js +20 -0
  347. package/lib/components/Sidebar/ApiCallItem.d.ts +7 -0
  348. package/lib/components/Sidebar/ApiCallItem.js +47 -0
  349. package/lib/components/Sidebar/BackButton.d.ts +7 -0
  350. package/lib/components/Sidebar/BackButton.js +42 -0
  351. package/lib/components/Sidebar/Drilldown.d.ts +9 -0
  352. package/lib/components/Sidebar/Drilldown.js +45 -0
  353. package/lib/components/Sidebar/DrilldownMenu.d.ts +3 -0
  354. package/lib/components/Sidebar/DrilldownMenu.js +75 -0
  355. package/lib/components/Sidebar/DrilldownMenuItem.d.ts +3 -0
  356. package/lib/components/Sidebar/DrilldownMenuItem.js +37 -0
  357. package/lib/components/Sidebar/FooterWrapper.d.ts +3 -0
  358. package/lib/components/Sidebar/FooterWrapper.js +22 -0
  359. package/lib/components/Sidebar/HeaderWrapper.d.ts +1 -0
  360. package/lib/components/Sidebar/HeaderWrapper.js +16 -0
  361. package/lib/components/Sidebar/MobileSidebarButton.d.ts +3 -0
  362. package/lib/components/Sidebar/MobileSidebarButton.js +46 -0
  363. package/lib/components/Sidebar/MobileSidebarIcon.d.ts +4 -0
  364. package/lib/components/Sidebar/MobileSidebarIcon.js +16 -0
  365. package/lib/components/Sidebar/Sidebar.d.ts +6 -0
  366. package/lib/components/Sidebar/Sidebar.js +56 -0
  367. package/lib/components/Sidebar/SidebarItemIcon.d.ts +1 -0
  368. package/lib/components/Sidebar/SidebarItemIcon.js +16 -0
  369. package/lib/components/Sidebar/SidebarLayout.d.ts +18 -0
  370. package/lib/components/Sidebar/SidebarLayout.js +82 -0
  371. package/lib/components/Sidebar/VersionPicker.d.ts +11 -0
  372. package/lib/components/Sidebar/VersionPicker.js +117 -0
  373. package/lib/components/Sidebar/index.d.ts +15 -0
  374. package/lib/components/Sidebar/index.js +32 -0
  375. package/lib/components/Sidebar/styledVariables.d.ts +2 -0
  376. package/lib/components/Sidebar/styledVariables.js +222 -0
  377. package/lib/components/Sidebar/types.d.ts +48 -0
  378. package/lib/components/Sidebar/types.js +8 -0
  379. package/lib/components/SidebarActions/ChangeViewButton.d.ts +8 -0
  380. package/lib/components/SidebarActions/ChangeViewButton.js +14 -0
  381. package/lib/components/SidebarActions/CollapseSidebarButton.d.ts +7 -0
  382. package/lib/components/SidebarActions/CollapseSidebarButton.js +53 -0
  383. package/lib/components/SidebarActions/SidebarActions.d.ts +21 -0
  384. package/lib/components/SidebarActions/SidebarActions.js +38 -0
  385. package/lib/components/SidebarActions/ToggleRightPanelButton.d.ts +7 -0
  386. package/lib/components/SidebarActions/ToggleRightPanelButton.js +13 -0
  387. package/lib/components/SidebarActions/index.d.ts +4 -0
  388. package/lib/components/SidebarActions/index.js +24 -0
  389. package/lib/components/SidebarActions/styled.d.ts +17 -0
  390. package/lib/components/SidebarActions/styled.js +132 -0
  391. package/lib/components/SidebarLogo/SidebarLogo.d.ts +10 -0
  392. package/lib/components/SidebarLogo/SidebarLogo.js +31 -0
  393. package/lib/components/SidebarLogo/index.d.ts +1 -0
  394. package/lib/components/SidebarLogo/index.js +18 -0
  395. package/lib/components/TableOfContent/TableOfContent.d.ts +9 -0
  396. package/lib/components/TableOfContent/TableOfContent.js +113 -0
  397. package/lib/components/TableOfContent/index.d.ts +2 -0
  398. package/lib/components/TableOfContent/index.js +19 -0
  399. package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
  400. package/lib/components/TableOfContent/styledVariables.js +47 -0
  401. package/lib/components/TableOfContent/utils.d.ts +4 -0
  402. package/lib/components/TableOfContent/utils.js +41 -0
  403. package/lib/components/Tabs/Tab.d.ts +9 -0
  404. package/lib/components/Tabs/Tab.js +58 -0
  405. package/lib/components/Tabs/Tabs.d.ts +12 -0
  406. package/lib/components/Tabs/Tabs.js +89 -0
  407. package/lib/components/Tabs/index.d.ts +2 -0
  408. package/lib/components/Tabs/index.js +19 -0
  409. package/lib/components/Tag/Tag.d.ts +18 -0
  410. package/lib/components/Tag/Tag.js +46 -0
  411. package/lib/components/Tag/index.d.ts +2 -0
  412. package/lib/components/Tag/index.js +19 -0
  413. package/lib/components/Tag/styledVariables.d.ts +1 -0
  414. package/lib/components/Tag/styledVariables.js +148 -0
  415. package/lib/components/Tiles/ThinTile.d.ts +5 -0
  416. package/lib/components/Tiles/ThinTile.js +126 -0
  417. package/lib/components/Tiles/TileHeader.d.ts +3 -0
  418. package/lib/components/Tiles/TileHeader.js +20 -0
  419. package/lib/components/Tiles/TileText.d.ts +3 -0
  420. package/lib/components/Tiles/TileText.js +19 -0
  421. package/lib/components/Tiles/WideTile.d.ts +7 -0
  422. package/lib/components/Tiles/WideTile.js +116 -0
  423. package/lib/components/Tiles/index.d.ts +4 -0
  424. package/lib/components/Tiles/index.js +21 -0
  425. package/lib/components/Tiles/types.d.ts +17 -0
  426. package/lib/components/Tiles/types.js +3 -0
  427. package/lib/components/Tooltip/Tooltip.d.ts +13 -0
  428. package/lib/components/Tooltip/Tooltip.js +175 -0
  429. package/lib/components/Tooltip/index.d.ts +2 -0
  430. package/lib/components/Tooltip/index.js +19 -0
  431. package/lib/components/Tooltip/styledVariables.d.ts +1 -0
  432. package/lib/components/Tooltip/styledVariables.js +21 -0
  433. package/lib/components/Typography/CompactTypography.d.ts +5 -0
  434. package/lib/components/Typography/CompactTypography.js +14 -0
  435. package/lib/components/Typography/Emphasis.d.ts +1 -0
  436. package/lib/components/Typography/Emphasis.js +14 -0
  437. package/lib/components/Typography/H1.d.ts +1 -0
  438. package/lib/components/Typography/H1.js +18 -0
  439. package/lib/components/Typography/H2.d.ts +1 -0
  440. package/lib/components/Typography/H2.js +18 -0
  441. package/lib/components/Typography/H3.d.ts +1 -0
  442. package/lib/components/Typography/H3.js +18 -0
  443. package/lib/components/Typography/SectionHeader.d.ts +1 -0
  444. package/lib/components/Typography/SectionHeader.js +20 -0
  445. package/lib/components/Typography/Typography.d.ts +13 -0
  446. package/lib/components/Typography/Typography.js +23 -0
  447. package/lib/components/Typography/index.d.ts +7 -0
  448. package/lib/components/Typography/index.js +24 -0
  449. package/lib/components/index.d.ts +29 -0
  450. package/lib/components/index.js +46 -0
  451. package/lib/config.d.ts +2441 -0
  452. package/lib/config.js +614 -0
  453. package/lib/globalStyle.d.ts +2 -0
  454. package/lib/globalStyle.js +994 -0
  455. package/lib/hooks/__tests__/mocks/MockIntersectionObserver.d.ts +15 -0
  456. package/lib/hooks/__tests__/mocks/MockIntersectionObserver.js +79 -0
  457. package/lib/hooks/index.d.ts +9 -0
  458. package/lib/hooks/index.js +26 -0
  459. package/lib/hooks/useActiveHeading.d.ts +2 -0
  460. package/lib/hooks/useActiveHeading.js +80 -0
  461. package/lib/hooks/useActiveSectionId.d.ts +3 -0
  462. package/lib/hooks/useActiveSectionId.js +44 -0
  463. package/lib/hooks/useControl.d.ts +6 -0
  464. package/lib/hooks/useControl.js +16 -0
  465. package/lib/hooks/useDialogHotKeys.d.ts +2 -0
  466. package/lib/hooks/useDialogHotKeys.js +45 -0
  467. package/lib/hooks/useFullHeight.d.ts +2 -0
  468. package/lib/hooks/useFullHeight.js +48 -0
  469. package/lib/hooks/useMobileMenu.d.ts +2 -0
  470. package/lib/hooks/useMobileMenu.js +18 -0
  471. package/lib/hooks/useModalScrollLock.d.ts +1 -0
  472. package/lib/hooks/useModalScrollLock.js +16 -0
  473. package/lib/hooks/useMount.d.ts +1 -0
  474. package/lib/hooks/useMount.js +12 -0
  475. package/lib/hooks/useNavbarHeight.d.ts +3 -0
  476. package/lib/hooks/useNavbarHeight.js +21 -0
  477. package/lib/hooks/useOutsideClick.d.ts +2 -0
  478. package/lib/hooks/useOutsideClick.js +22 -0
  479. package/lib/hooks/useThemeConfig.d.ts +4 -0
  480. package/lib/hooks/useThemeConfig.js +15 -0
  481. package/lib/hooks/useUnmount.d.ts +1 -0
  482. package/lib/hooks/useUnmount.js +14 -0
  483. package/lib/i18n/LanguagePicker.d.ts +9 -0
  484. package/lib/i18n/LanguagePicker.js +99 -0
  485. package/lib/i18n/index.d.ts +2 -0
  486. package/lib/i18n/index.js +21 -0
  487. package/lib/i18n/styledVariables.d.ts +1 -0
  488. package/lib/i18n/styledVariables.js +40 -0
  489. package/lib/icons/AlertIcon/AlertIcon.d.ts +10 -0
  490. package/lib/icons/AlertIcon/AlertIcon.js +51 -0
  491. package/lib/icons/AlertIcon/index.d.ts +2 -0
  492. package/lib/icons/AlertIcon/index.js +6 -0
  493. package/lib/icons/AnchorIcon/AnchorIcon.d.ts +7 -0
  494. package/lib/icons/AnchorIcon/AnchorIcon.js +23 -0
  495. package/lib/icons/AnchorIcon/index.d.ts +2 -0
  496. package/lib/icons/AnchorIcon/index.js +6 -0
  497. package/lib/icons/ArrowIcon/ArrowIcon.d.ts +8 -0
  498. package/lib/icons/ArrowIcon/ArrowIcon.js +60 -0
  499. package/lib/icons/ArrowIcon/index.d.ts +2 -0
  500. package/lib/icons/ArrowIcon/index.js +6 -0
  501. package/lib/icons/BurgerIcon/BurgerIcon.d.ts +5 -0
  502. package/lib/icons/BurgerIcon/BurgerIcon.js +15 -0
  503. package/lib/icons/BurgerIcon/index.d.ts +1 -0
  504. package/lib/icons/BurgerIcon/index.js +6 -0
  505. package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
  506. package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
  507. package/lib/icons/CheckboxIcon/index.d.ts +1 -0
  508. package/lib/icons/CheckboxIcon/index.js +6 -0
  509. package/lib/icons/CloseIcon/CloseIcon.d.ts +5 -0
  510. package/lib/icons/CloseIcon/CloseIcon.js +16 -0
  511. package/lib/icons/CloseIcon/index.d.ts +1 -0
  512. package/lib/icons/CloseIcon/index.js +6 -0
  513. package/lib/icons/CollapseIcon/CollapseIcon.d.ts +7 -0
  514. package/lib/icons/CollapseIcon/CollapseIcon.js +22 -0
  515. package/lib/icons/CollapseIcon/index.d.ts +1 -0
  516. package/lib/icons/CollapseIcon/index.js +18 -0
  517. package/lib/icons/ColorModeIcon/ColorModeIcon.d.ts +10 -0
  518. package/lib/icons/ColorModeIcon/ColorModeIcon.js +33 -0
  519. package/lib/icons/ColorModeIcon/index.d.ts +2 -0
  520. package/lib/icons/ColorModeIcon/index.js +6 -0
  521. package/lib/icons/CopyIcon/CopyIcon.d.ts +6 -0
  522. package/lib/icons/CopyIcon/CopyIcon.js +16 -0
  523. package/lib/icons/CopyIcon/index.d.ts +1 -0
  524. package/lib/icons/CopyIcon/index.js +18 -0
  525. package/lib/icons/DeselectIcon/DeselectIcon.d.ts +7 -0
  526. package/lib/icons/DeselectIcon/DeselectIcon.js +19 -0
  527. package/lib/icons/DeselectIcon/index.d.ts +1 -0
  528. package/lib/icons/DeselectIcon/index.js +18 -0
  529. package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.d.ts +4 -0
  530. package/lib/icons/DissatisfiedIcon/DissatisfiedIcon.js +18 -0
  531. package/lib/icons/DissatisfiedIcon/index.d.ts +1 -0
  532. package/lib/icons/DissatisfiedIcon/index.js +18 -0
  533. package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
  534. package/lib/icons/EditIcon/EditIcon.js +18 -0
  535. package/lib/icons/EditIcon/index.d.ts +1 -0
  536. package/lib/icons/EditIcon/index.js +18 -0
  537. package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
  538. package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
  539. package/lib/icons/ErrorIcon/index.d.ts +1 -0
  540. package/lib/icons/ErrorIcon/index.js +18 -0
  541. package/lib/icons/ExpandIcon/ExpandIcon.d.ts +6 -0
  542. package/lib/icons/ExpandIcon/ExpandIcon.js +22 -0
  543. package/lib/icons/ExpandIcon/index.d.ts +1 -0
  544. package/lib/icons/ExpandIcon/index.js +6 -0
  545. package/lib/icons/ExternalIcon/ExternalIcon.d.ts +5 -0
  546. package/lib/icons/ExternalIcon/ExternalIcon.js +22 -0
  547. package/lib/icons/ExternalIcon/index.d.ts +1 -0
  548. package/lib/icons/ExternalIcon/index.js +18 -0
  549. package/lib/icons/FileIcon/FileIcon.d.ts +6 -0
  550. package/lib/icons/FileIcon/FileIcon.js +17 -0
  551. package/lib/icons/FileIcon/index.d.ts +1 -0
  552. package/lib/icons/FileIcon/index.js +18 -0
  553. package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
  554. package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
  555. package/lib/icons/LanguageIcon/index.d.ts +1 -0
  556. package/lib/icons/LanguageIcon/index.js +18 -0
  557. package/lib/icons/LogoutIcon/LogoutIcon.d.ts +5 -0
  558. package/lib/icons/LogoutIcon/LogoutIcon.js +17 -0
  559. package/lib/icons/LogoutIcon/index.d.ts +1 -0
  560. package/lib/icons/LogoutIcon/index.js +6 -0
  561. package/lib/icons/NeutralIcon/NeutralIcon.d.ts +4 -0
  562. package/lib/icons/NeutralIcon/NeutralIcon.js +18 -0
  563. package/lib/icons/NeutralIcon/index.d.ts +1 -0
  564. package/lib/icons/NeutralIcon/index.js +18 -0
  565. package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
  566. package/lib/icons/PlusIcon/PlusIcon.js +16 -0
  567. package/lib/icons/PlusIcon/index.d.ts +1 -0
  568. package/lib/icons/PlusIcon/index.js +18 -0
  569. package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
  570. package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
  571. package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
  572. package/lib/icons/PointingArrowIcon/index.js +18 -0
  573. package/lib/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.d.ts +4 -0
  574. package/lib/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.js +16 -0
  575. package/lib/icons/RadioCheckButtonIcon/index.d.ts +1 -0
  576. package/lib/icons/RadioCheckButtonIcon/index.js +18 -0
  577. package/lib/icons/ReportIcon/ReportIcon.d.ts +6 -0
  578. package/lib/icons/ReportIcon/ReportIcon.js +19 -0
  579. package/lib/icons/ReportIcon/index.d.ts +1 -0
  580. package/lib/icons/ReportIcon/index.js +18 -0
  581. package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
  582. package/lib/icons/RocketIcon/RocketIcon.js +15 -0
  583. package/lib/icons/RocketIcon/index.d.ts +1 -0
  584. package/lib/icons/RocketIcon/index.js +18 -0
  585. package/lib/icons/SatisfiedIcon/SatisfiedIcon.d.ts +4 -0
  586. package/lib/icons/SatisfiedIcon/SatisfiedIcon.js +18 -0
  587. package/lib/icons/SatisfiedIcon/index.d.ts +1 -0
  588. package/lib/icons/SatisfiedIcon/index.js +18 -0
  589. package/lib/icons/SelectIcon/SelectIcon.d.ts +6 -0
  590. package/lib/icons/SelectIcon/SelectIcon.js +19 -0
  591. package/lib/icons/SelectIcon/index.d.ts +1 -0
  592. package/lib/icons/SelectIcon/index.js +18 -0
  593. package/lib/icons/ShelfIcon/ShelfIcon.d.ts +12 -0
  594. package/lib/icons/ShelfIcon/ShelfIcon.js +52 -0
  595. package/lib/icons/ShelfIcon/index.d.ts +2 -0
  596. package/lib/icons/ShelfIcon/index.js +6 -0
  597. package/lib/icons/SpinnerIcon/SpinnerIcon.d.ts +8 -0
  598. package/lib/icons/SpinnerIcon/SpinnerIcon.js +30 -0
  599. package/lib/icons/SpinnerIcon/index.d.ts +1 -0
  600. package/lib/icons/SpinnerIcon/index.js +6 -0
  601. package/lib/icons/ThumbDownIcon/ThumbDownIcon.d.ts +4 -0
  602. package/lib/icons/ThumbDownIcon/ThumbDownIcon.js +14 -0
  603. package/lib/icons/ThumbDownIcon/index.d.ts +1 -0
  604. package/lib/icons/ThumbDownIcon/index.js +18 -0
  605. package/lib/icons/ThumbUpIcon/ThumbUpIcon.d.ts +4 -0
  606. package/lib/icons/ThumbUpIcon/ThumbUpIcon.js +14 -0
  607. package/lib/icons/ThumbUpIcon/index.d.ts +1 -0
  608. package/lib/icons/ThumbUpIcon/index.js +18 -0
  609. package/lib/icons/index.d.ts +26 -0
  610. package/lib/icons/index.js +43 -0
  611. package/lib/index.d.ts +10 -0
  612. package/lib/index.js +27 -0
  613. package/lib/layouts/Forbidden.d.ts +2 -0
  614. package/lib/layouts/Forbidden.js +45 -0
  615. package/lib/layouts/NotFound.d.ts +2 -0
  616. package/lib/layouts/NotFound.js +45 -0
  617. package/lib/layouts/OIDCForbidden.d.ts +2 -0
  618. package/lib/layouts/OIDCForbidden.js +92 -0
  619. package/lib/layouts/PageLayout.d.ts +6 -0
  620. package/lib/layouts/PageLayout.js +29 -0
  621. package/lib/layouts/RootLayout.d.ts +6 -0
  622. package/lib/layouts/RootLayout.js +19 -0
  623. package/lib/layouts/index.d.ts +5 -0
  624. package/lib/layouts/index.js +22 -0
  625. package/lib/mocks/Feedback/useSubmitFeedback.d.ts +1 -0
  626. package/lib/mocks/Feedback/useSubmitFeedback.js +18 -0
  627. package/lib/mocks/Link.d.ts +2 -0
  628. package/lib/mocks/Link.js +27 -0
  629. package/lib/mocks/Profile/useProfileProps.d.ts +1 -0
  630. package/lib/mocks/Profile/useProfileProps.js +17 -0
  631. package/lib/mocks/Sidebar/getMenuType.d.ts +2 -0
  632. package/lib/mocks/Sidebar/getMenuType.js +10 -0
  633. package/lib/mocks/Sidebar/types.d.ts +11 -0
  634. package/lib/mocks/Sidebar/types.js +11 -0
  635. package/lib/mocks/Sidebar/useBreadcrumbs.d.ts +4 -0
  636. package/lib/mocks/Sidebar/useBreadcrumbs.js +8 -0
  637. package/lib/mocks/Sidebar/useDrilldown.d.ts +8 -0
  638. package/lib/mocks/Sidebar/useDrilldown.js +19 -0
  639. package/lib/mocks/Sidebar/useMenuGroup.d.ts +6 -0
  640. package/lib/mocks/Sidebar/useMenuGroup.js +17 -0
  641. package/lib/mocks/Sidebar/useSidebarItems.d.ts +3 -0
  642. package/lib/mocks/Sidebar/useSidebarItems.js +8 -0
  643. package/lib/mocks/constants/index.d.ts +2 -0
  644. package/lib/mocks/constants/index.js +6 -0
  645. package/lib/mocks/hooks/index.d.ts +35 -0
  646. package/lib/mocks/hooks/index.js +109 -0
  647. package/lib/mocks/hooks/usePageData.d.ts +6 -0
  648. package/lib/mocks/hooks/usePageData.js +11 -0
  649. package/lib/mocks/media-css.d.ts +5 -0
  650. package/lib/mocks/media-css.js +5 -0
  651. package/lib/mocks/search.d.ts +32 -0
  652. package/lib/mocks/search.js +46 -0
  653. package/lib/mocks/telemetry.d.ts +2 -0
  654. package/lib/mocks/telemetry.js +7 -0
  655. package/lib/mocks/types/index.d.ts +1 -0
  656. package/lib/mocks/types/index.js +3 -0
  657. package/lib/mocks/types.d.ts +3 -0
  658. package/lib/mocks/types.js +4 -0
  659. package/lib/mocks/useGlobalData.d.ts +1 -0
  660. package/lib/mocks/useGlobalData.js +8 -0
  661. package/lib/mocks/usePreloadHistory.d.ts +3 -0
  662. package/lib/mocks/usePreloadHistory.js +13 -0
  663. package/lib/mocks/utils.d.ts +7 -0
  664. package/lib/mocks/utils.js +22 -0
  665. package/lib/types/config.d.ts +5 -0
  666. package/lib/types/config.js +3 -0
  667. package/lib/types/portal/index.d.ts +3 -0
  668. package/lib/types/portal/index.js +19 -0
  669. package/lib/types/portal/src/shared/constants.d.ts +21 -0
  670. package/lib/types/portal/src/shared/constants.js +26 -0
  671. package/lib/types/portal/src/shared/types/activeItem.d.ts +3 -0
  672. package/lib/types/portal/src/shared/types/activeItem.js +3 -0
  673. package/lib/types/portal/src/shared/types/catalog.d.ts +43 -0
  674. package/lib/types/portal/src/shared/types/catalog.js +3 -0
  675. package/lib/types/portal/src/shared/types/feedback.d.ts +13 -0
  676. package/lib/types/portal/src/shared/types/feedback.js +3 -0
  677. package/lib/types/portal/src/shared/types/markdown.d.ts +5 -0
  678. package/lib/types/portal/src/shared/types/markdown.js +3 -0
  679. package/lib/types/portal/src/shared/types/nav.d.ts +173 -0
  680. package/lib/types/portal/src/shared/types/nav.js +8 -0
  681. package/lib/types/portal/src/shared/types/searchDocument.d.ts +21 -0
  682. package/lib/types/portal/src/shared/types/searchDocument.js +5 -0
  683. package/lib/ui/ArrowBack.d.ts +5 -0
  684. package/lib/ui/ArrowBack.js +21 -0
  685. package/lib/ui/Background.d.ts +7 -0
  686. package/lib/ui/Background.js +21 -0
  687. package/lib/ui/Box.d.ts +6 -0
  688. package/lib/ui/Box.js +22 -0
  689. package/lib/ui/Burger.d.ts +8 -0
  690. package/lib/ui/Burger.js +32 -0
  691. package/lib/ui/Checkbox.d.ts +1 -0
  692. package/lib/ui/Checkbox.js +70 -0
  693. package/lib/ui/Dropdown.d.ts +8 -0
  694. package/lib/ui/Dropdown.js +114 -0
  695. package/lib/ui/Flex.d.ts +10 -0
  696. package/lib/ui/Flex.js +21 -0
  697. package/lib/ui/Highlight.d.ts +5 -0
  698. package/lib/ui/Highlight.js +63 -0
  699. package/lib/ui/Jumbotron.d.ts +18 -0
  700. package/lib/ui/Jumbotron.js +51 -0
  701. package/lib/ui/darkColors.d.ts +1 -0
  702. package/lib/ui/darkColors.js +225 -0
  703. package/lib/ui/index.d.ts +9 -0
  704. package/lib/ui/index.js +27 -0
  705. package/lib/utils/ClipboardService.d.ts +4 -0
  706. package/lib/utils/ClipboardService.js +33 -0
  707. package/lib/utils/args-typecheck.d.ts +2 -0
  708. package/lib/utils/args-typecheck.js +14 -0
  709. package/lib/utils/class-names.d.ts +1 -0
  710. package/lib/utils/class-names.js +12 -0
  711. package/lib/utils/color.d.ts +1 -0
  712. package/lib/utils/color.js +15 -0
  713. package/lib/utils/css-variables.d.ts +1 -0
  714. package/lib/utils/css-variables.js +6 -0
  715. package/lib/utils/getNavbarElement.d.ts +1 -0
  716. package/lib/utils/getNavbarElement.js +15 -0
  717. package/lib/utils/highlight.d.ts +35 -0
  718. package/lib/utils/highlight.js +105 -0
  719. package/lib/utils/index.d.ts +13 -0
  720. package/lib/utils/index.js +30 -0
  721. package/lib/utils/isUrl.d.ts +12 -0
  722. package/lib/utils/isUrl.js +37 -0
  723. package/lib/utils/jsUtils.d.ts +4 -0
  724. package/lib/utils/jsUtils.js +21 -0
  725. package/lib/utils/jsonToHtml.d.ts +4 -0
  726. package/lib/utils/jsonToHtml.js +180 -0
  727. package/lib/utils/media-css.d.ts +12 -0
  728. package/lib/utils/media-css.js +13 -0
  729. package/lib/utils/replaceHashInColor.d.ts +1 -0
  730. package/lib/utils/replaceHashInColor.js +8 -0
  731. package/lib/utils/tags-parser.d.ts +1 -0
  732. package/lib/utils/tags-parser.js +10 -0
  733. package/lib/utils/text-transform.d.ts +1 -0
  734. package/lib/utils/text-transform.js +8 -0
  735. package/lib/utils/theme-helpers.d.ts +4 -0
  736. package/lib/utils/theme-helpers.js +75 -0
  737. package/lib/utils/urls.d.ts +11 -0
  738. package/lib/utils/urls.js +55 -0
  739. package/package.json +112 -0
  740. package/src/components/ApiOnboarding/AppCustomAttributes.tsx +9 -0
  741. package/src/components/Breadcrumbs/Breadcrumb.tsx +59 -0
  742. package/src/components/Breadcrumbs/Breadcrumbs.tsx +60 -0
  743. package/src/components/Breadcrumbs/index.ts +3 -0
  744. package/src/components/Breadcrumbs/styledVariables.ts +17 -0
  745. package/src/components/Button/Button.tsx +170 -0
  746. package/src/components/Button/index.ts +2 -0
  747. package/src/components/Button/styledVariables.ts +115 -0
  748. package/src/components/Cards/Card.tsx +54 -0
  749. package/src/components/Cards/CardsBlock.tsx +10 -0
  750. package/src/components/Cards/index.ts +2 -0
  751. package/src/components/Catalog/Catalog.tsx +234 -0
  752. package/src/components/Catalog/CatalogCard.tsx +171 -0
  753. package/src/components/Catalog/index.ts +4 -0
  754. package/src/components/Catalog/styledVariables.ts +94 -0
  755. package/src/components/Catalog/useCatalog.ts +373 -0
  756. package/src/components/CodeBlock/CodeBlock.tsx +104 -0
  757. package/src/components/CodeBlock/CodeBlockContainer.tsx +124 -0
  758. package/src/components/CodeBlock/CodeBlockControlButton.tsx +28 -0
  759. package/src/components/CodeBlock/CodeBlockControls.tsx +188 -0
  760. package/src/components/CodeBlock/index.ts +5 -0
  761. package/src/components/CodeBlock/styledVariables.ts +89 -0
  762. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +78 -0
  763. package/src/components/ColorModeSwitcher/index.ts +1 -0
  764. package/src/components/CopyButton/CopyButton.tsx +78 -0
  765. package/src/components/CopyButton/index.ts +1 -0
  766. package/src/components/Dropdown/Dropdown.tsx +147 -0
  767. package/src/components/Dropdown/index.ts +2 -0
  768. package/src/components/Dropdown/styledVariables.ts +27 -0
  769. package/src/components/EditPageButton/EditPageButton.tsx +54 -0
  770. package/src/components/EditPageButton/index.ts +1 -0
  771. package/src/components/Feedback/Comment.tsx +140 -0
  772. package/src/components/Feedback/Emotions.tsx +38 -0
  773. package/src/components/Feedback/Feedback.tsx +94 -0
  774. package/src/components/Feedback/Mood.tsx +236 -0
  775. package/src/components/Feedback/Rating.tsx +155 -0
  776. package/src/components/Feedback/Reasons.tsx +90 -0
  777. package/src/components/Feedback/ReportDialog.tsx +56 -0
  778. package/src/components/Feedback/Scale.tsx +225 -0
  779. package/src/components/Feedback/Sentiment.tsx +197 -0
  780. package/src/components/Feedback/Stars.tsx +51 -0
  781. package/src/components/Feedback/Thumbs.tsx +27 -0
  782. package/src/components/Feedback/index.ts +10 -0
  783. package/src/components/Feedback/types.ts +115 -0
  784. package/src/components/Feedback/useReportDialog.ts +57 -0
  785. package/src/components/Filter/Filter.tsx +276 -0
  786. package/src/components/Filter/FilterContent.tsx +105 -0
  787. package/src/components/Filter/FilterPopover.tsx +146 -0
  788. package/src/components/Filter/FilterTag.tsx +37 -0
  789. package/src/components/Filter/FilterTags.tsx +39 -0
  790. package/src/components/Filter/index.ts +6 -0
  791. package/src/components/Filter/styledVariables.ts +108 -0
  792. package/src/components/Footer/CustomFooter.tsx +46 -0
  793. package/src/components/Footer/CustomFooterNavItem.tsx +41 -0
  794. package/src/components/Footer/Footer.tsx +78 -0
  795. package/src/components/Footer/FooterColumn.tsx +151 -0
  796. package/src/components/Footer/FooterColumns.tsx +56 -0
  797. package/src/components/Footer/FooterCopyright.tsx +45 -0
  798. package/src/components/Footer/index.ts +5 -0
  799. package/src/components/Footer/styledVariables.ts +58 -0
  800. package/src/components/Image/Image.tsx +47 -0
  801. package/src/components/Image/index.ts +1 -0
  802. package/src/components/JsonViewer/JsonViewer.tsx +226 -0
  803. package/src/components/JsonViewer/index.ts +1 -0
  804. package/src/components/LastUpdated/LastUpdated.tsx +85 -0
  805. package/src/components/LastUpdated/index.ts +2 -0
  806. package/src/components/LastUpdated/styledVariables.ts +8 -0
  807. package/src/components/Markdown/Admonition.tsx +85 -0
  808. package/src/components/Markdown/ContainerWrapper.tsx +21 -0
  809. package/src/components/Markdown/Details.tsx +24 -0
  810. package/src/components/Markdown/Heading.tsx +47 -0
  811. package/src/components/Markdown/MarkdownLayout.tsx +75 -0
  812. package/src/components/Markdown/MarkdownWrapper.tsx +398 -0
  813. package/src/components/Markdown/Mermaid.tsx +38 -0
  814. package/src/components/Markdown/PageWrapper.tsx +10 -0
  815. package/src/components/Markdown/Sup.tsx +17 -0
  816. package/src/components/Markdown/index.ts +10 -0
  817. package/src/components/Markdown/styledVariables.ts +284 -0
  818. package/src/components/Menu/Menu.tsx +46 -0
  819. package/src/components/Menu/MenuContainer.tsx +17 -0
  820. package/src/components/Menu/MenuGroup.tsx +122 -0
  821. package/src/components/Menu/MenuItem.tsx +48 -0
  822. package/src/components/Menu/MenuItemLabel.tsx +46 -0
  823. package/src/components/Menu/MenuItemSwitch.tsx +61 -0
  824. package/src/components/Menu/MenuLink.tsx +11 -0
  825. package/src/components/Menu/MenuLinkItem.tsx +30 -0
  826. package/src/components/Menu/MobileMenu.tsx +151 -0
  827. package/src/components/Menu/MobileMenuGroup.tsx +93 -0
  828. package/src/components/Menu/constants.ts +5 -0
  829. package/src/components/Menu/hooks/use-mobile-menu-items.ts +96 -0
  830. package/src/components/Menu/hooks/use-mobile-menu-levels.ts +50 -0
  831. package/src/components/Menu/index.ts +13 -0
  832. package/src/components/Menu/styledVariables.ts +101 -0
  833. package/src/components/Menu/types.ts +4 -0
  834. package/src/components/Menu/utils.ts +110 -0
  835. package/src/components/Navbar/BurgerButton.tsx +34 -0
  836. package/src/components/Navbar/Navbar.tsx +178 -0
  837. package/src/components/Navbar/NavbarItem.tsx +148 -0
  838. package/src/components/Navbar/NavbarMenu.tsx +43 -0
  839. package/src/components/Navbar/index.ts +5 -0
  840. package/src/components/Navbar/styledVariables.ts +39 -0
  841. package/src/components/NavbarLogo/NavbarLogo.tsx +48 -0
  842. package/src/components/NavbarLogo/index.ts +2 -0
  843. package/src/components/NavbarLogo/styledVariables.ts +14 -0
  844. package/src/components/OpenApiDocs/ClearButton.tsx +32 -0
  845. package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +176 -0
  846. package/src/components/OpenApiDocs/Dropdown.tsx +202 -0
  847. package/src/components/OpenApiDocs/ScorecardBadges.tsx +83 -0
  848. package/src/components/OpenApiDocs/TryItSecurityApps.tsx +17 -0
  849. package/src/components/OpenApiDocs/hooks/AfterOpenApiOperation.tsx +9 -0
  850. package/src/components/OpenApiDocs/hooks/AfterOpenApiOperationSummary.tsx +9 -0
  851. package/src/components/OpenApiDocs/hooks/AfterOpenApiTitle.tsx +9 -0
  852. package/src/components/OpenApiDocs/hooks/BeforeOpenApiOperation.tsx +9 -0
  853. package/src/components/OpenApiDocs/hooks/BeforeOpenApiOperationSummary.tsx +9 -0
  854. package/src/components/OpenApiDocs/hooks/OpenApiFooter.tsx +5 -0
  855. package/src/components/OpenApiDocs/hooks/OpenApiHeader.tsx +5 -0
  856. package/src/components/OpenApiDocs/hooks/OpenApiTryItSecurityPanel.tsx +12 -0
  857. package/src/components/OpenApiDocs/index.ts +10 -0
  858. package/src/components/PageNavigation/NextButton.tsx +46 -0
  859. package/src/components/PageNavigation/PageNavigation.tsx +46 -0
  860. package/src/components/PageNavigation/PreviousButton.tsx +49 -0
  861. package/src/components/PageNavigation/index.ts +3 -0
  862. package/src/components/Panel/Panel.ts +34 -0
  863. package/src/components/Panel/PanelBody.ts +43 -0
  864. package/src/components/Panel/PanelComponent.tsx +79 -0
  865. package/src/components/Panel/PanelHeader.ts +37 -0
  866. package/src/components/Panel/PanelHeaderTitle.ts +12 -0
  867. package/src/components/Panel/index.ts +6 -0
  868. package/src/components/Panel/styledVariables.ts +480 -0
  869. package/src/components/Product/Product.tsx +28 -0
  870. package/src/components/Product/ProductPicker.tsx +96 -0
  871. package/src/components/Product/index.ts +3 -0
  872. package/src/components/Product/styledVariables.ts +40 -0
  873. package/src/components/Profile/AuthUserProfile.tsx +25 -0
  874. package/src/components/Profile/LoginLink.tsx +42 -0
  875. package/src/components/Profile/MobileUserProfile.tsx +79 -0
  876. package/src/components/Profile/Profile.tsx +85 -0
  877. package/src/components/Profile/UserProfile.tsx +118 -0
  878. package/src/components/Profile/UserProfileData.tsx +40 -0
  879. package/src/components/Profile/index.ts +10 -0
  880. package/src/components/Profile/styledVariables.ts +53 -0
  881. package/src/components/Profile/types.ts +12 -0
  882. package/src/components/Scorecard/Card.tsx +33 -0
  883. package/src/components/Scorecard/Gauge.tsx +52 -0
  884. package/src/components/Scorecard/StatusByLevelWidget.tsx +71 -0
  885. package/src/components/Search/CancelSearch.tsx +32 -0
  886. package/src/components/Search/ClearIcon.tsx +34 -0
  887. package/src/components/Search/ClockBackwardsIcon.tsx +26 -0
  888. package/src/components/Search/Input.tsx +21 -0
  889. package/src/components/Search/InputWrapper.tsx +89 -0
  890. package/src/components/Search/MobileSearchTrigger.tsx +38 -0
  891. package/src/components/Search/Popover.tsx +29 -0
  892. package/src/components/Search/ProductTag.tsx +46 -0
  893. package/src/components/Search/RecentSearches.tsx +130 -0
  894. package/src/components/Search/Search.tsx +59 -0
  895. package/src/components/Search/SearchDialog.tsx +178 -0
  896. package/src/components/Search/SearchIcon.tsx +39 -0
  897. package/src/components/Search/SearchItem.tsx +152 -0
  898. package/src/components/Search/SearchTrigger.tsx +65 -0
  899. package/src/components/Search/Shortcut.tsx +34 -0
  900. package/src/components/Search/ShortcutKey.tsx +27 -0
  901. package/src/components/Search/SuggestedPages.tsx +96 -0
  902. package/src/components/Search/index.ts +19 -0
  903. package/src/components/Search/styledVariables.ts +95 -0
  904. package/src/components/Search/utils.tsx +20 -0
  905. package/src/components/Select/Select.tsx +189 -0
  906. package/src/components/Select/index.ts +2 -0
  907. package/src/components/Select/styledVariables.ts +31 -0
  908. package/src/components/Separator/Separator.tsx +34 -0
  909. package/src/components/Separator/SeparatorItem.tsx +28 -0
  910. package/src/components/Separator/SeparatorLine.tsx +14 -0
  911. package/src/components/Separator/index.ts +3 -0
  912. package/src/components/Sidebar/ApiCallItem.tsx +53 -0
  913. package/src/components/Sidebar/BackButton.tsx +50 -0
  914. package/src/components/Sidebar/Drilldown.tsx +49 -0
  915. package/src/components/Sidebar/DrilldownMenu.tsx +65 -0
  916. package/src/components/Sidebar/DrilldownMenuItem.tsx +41 -0
  917. package/src/components/Sidebar/FooterWrapper.tsx +16 -0
  918. package/src/components/Sidebar/HeaderWrapper.tsx +10 -0
  919. package/src/components/Sidebar/MobileSidebarButton.tsx +41 -0
  920. package/src/components/Sidebar/MobileSidebarIcon.tsx +18 -0
  921. package/src/components/Sidebar/Sidebar.tsx +55 -0
  922. package/src/components/Sidebar/SidebarItemIcon.tsx +10 -0
  923. package/src/components/Sidebar/SidebarLayout.tsx +109 -0
  924. package/src/components/Sidebar/VersionPicker.tsx +112 -0
  925. package/src/components/Sidebar/index.ts +15 -0
  926. package/src/components/Sidebar/styledVariables.ts +220 -0
  927. package/src/components/Sidebar/types.ts +52 -0
  928. package/src/components/SidebarActions/ChangeViewButton.tsx +24 -0
  929. package/src/components/SidebarActions/CollapseSidebarButton.tsx +45 -0
  930. package/src/components/SidebarActions/SidebarActions.tsx +89 -0
  931. package/src/components/SidebarActions/ToggleRightPanelButton.tsx +25 -0
  932. package/src/components/SidebarActions/index.tsx +4 -0
  933. package/src/components/SidebarActions/styled.tsx +156 -0
  934. package/src/components/SidebarLogo/SidebarLogo.tsx +54 -0
  935. package/src/components/SidebarLogo/index.ts +1 -0
  936. package/src/components/TableOfContent/TableOfContent.tsx +127 -0
  937. package/src/components/TableOfContent/index.ts +2 -0
  938. package/src/components/TableOfContent/styledVariables.ts +44 -0
  939. package/src/components/TableOfContent/utils.ts +42 -0
  940. package/src/components/Tabs/Tab.tsx +69 -0
  941. package/src/components/Tabs/Tabs.tsx +79 -0
  942. package/src/components/Tabs/index.ts +2 -0
  943. package/src/components/Tag/Tag.tsx +72 -0
  944. package/src/components/Tag/index.ts +2 -0
  945. package/src/components/Tag/styledVariables.ts +145 -0
  946. package/src/components/Tiles/ThinTile.tsx +136 -0
  947. package/src/components/Tiles/TileHeader.ts +14 -0
  948. package/src/components/Tiles/TileText.tsx +13 -0
  949. package/src/components/Tiles/WideTile.tsx +140 -0
  950. package/src/components/Tiles/index.ts +4 -0
  951. package/src/components/Tiles/types.ts +19 -0
  952. package/src/components/Tooltip/Tooltip.tsx +202 -0
  953. package/src/components/Tooltip/index.ts +2 -0
  954. package/src/components/Tooltip/styledVariables.ts +18 -0
  955. package/src/components/Typography/CompactTypography.ts +9 -0
  956. package/src/components/Typography/Emphasis.ts +8 -0
  957. package/src/components/Typography/H1.ts +13 -0
  958. package/src/components/Typography/H2.ts +13 -0
  959. package/src/components/Typography/H3.ts +13 -0
  960. package/src/components/Typography/SectionHeader.ts +14 -0
  961. package/src/components/Typography/Typography.ts +30 -0
  962. package/src/components/Typography/index.ts +7 -0
  963. package/src/components/index.ts +29 -0
  964. package/src/config.ts +752 -0
  965. package/src/globalStyle.ts +1010 -0
  966. package/src/hooks/__tests__/mocks/MockIntersectionObserver.ts +48 -0
  967. package/src/hooks/index.ts +9 -0
  968. package/src/hooks/useActiveHeading.ts +110 -0
  969. package/src/hooks/useActiveSectionId.ts +54 -0
  970. package/src/hooks/useControl.ts +20 -0
  971. package/src/hooks/useDialogHotKeys.ts +48 -0
  972. package/src/hooks/useFullHeight.ts +49 -0
  973. package/src/hooks/useMobileMenu.ts +16 -0
  974. package/src/hooks/useModalScrollLock.ts +12 -0
  975. package/src/hooks/useMount.ts +8 -0
  976. package/src/hooks/useNavbarHeight.ts +25 -0
  977. package/src/hooks/useOutsideClick.ts +23 -0
  978. package/src/hooks/useThemeConfig.ts +24 -0
  979. package/src/hooks/useUnmount.ts +10 -0
  980. package/src/i18n/LanguagePicker.tsx +120 -0
  981. package/src/i18n/index.ts +2 -0
  982. package/src/i18n/styledVariables.ts +37 -0
  983. package/src/icons/AlertIcon/AlertIcon.tsx +111 -0
  984. package/src/icons/AlertIcon/index.ts +2 -0
  985. package/src/icons/AnchorIcon/AnchorIcon.tsx +36 -0
  986. package/src/icons/AnchorIcon/index.ts +2 -0
  987. package/src/icons/ArrowIcon/ArrowIcon.tsx +61 -0
  988. package/src/icons/ArrowIcon/index.ts +2 -0
  989. package/src/icons/BurgerIcon/BurgerIcon.tsx +12 -0
  990. package/src/icons/BurgerIcon/index.ts +1 -0
  991. package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
  992. package/src/icons/CheckboxIcon/index.ts +1 -0
  993. package/src/icons/CloseIcon/CloseIcon.tsx +13 -0
  994. package/src/icons/CloseIcon/index.ts +1 -0
  995. package/src/icons/CollapseIcon/CollapseIcon.tsx +40 -0
  996. package/src/icons/CollapseIcon/index.tsx +1 -0
  997. package/src/icons/ColorModeIcon/ColorModeIcon.tsx +57 -0
  998. package/src/icons/ColorModeIcon/index.ts +2 -0
  999. package/src/icons/CopyIcon/CopyIcon.tsx +32 -0
  1000. package/src/icons/CopyIcon/index.ts +1 -0
  1001. package/src/icons/DeselectIcon/DeselectIcon.tsx +28 -0
  1002. package/src/icons/DeselectIcon/index.ts +1 -0
  1003. package/src/icons/DissatisfiedIcon/DissatisfiedIcon.tsx +28 -0
  1004. package/src/icons/DissatisfiedIcon/index.ts +1 -0
  1005. package/src/icons/EditIcon/EditIcon.tsx +30 -0
  1006. package/src/icons/EditIcon/index.ts +1 -0
  1007. package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
  1008. package/src/icons/ErrorIcon/index.ts +1 -0
  1009. package/src/icons/ExpandIcon/ExpandIcon.tsx +39 -0
  1010. package/src/icons/ExpandIcon/index.ts +1 -0
  1011. package/src/icons/ExternalIcon/ExternalIcon.tsx +44 -0
  1012. package/src/icons/ExternalIcon/index.ts +1 -0
  1013. package/src/icons/FileIcon/FileIcon.tsx +28 -0
  1014. package/src/icons/FileIcon/index.ts +1 -0
  1015. package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
  1016. package/src/icons/LanguageIcon/index.ts +1 -0
  1017. package/src/icons/LogoutIcon/LogoutIcon.tsx +20 -0
  1018. package/src/icons/LogoutIcon/index.ts +1 -0
  1019. package/src/icons/NeutralIcon/NeutralIcon.tsx +25 -0
  1020. package/src/icons/NeutralIcon/index.ts +1 -0
  1021. package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
  1022. package/src/icons/PlusIcon/index.ts +1 -0
  1023. package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
  1024. package/src/icons/PointingArrowIcon/index.ts +1 -0
  1025. package/src/icons/RadioCheckButtonIcon/RadioCheckButtonIcon.tsx +19 -0
  1026. package/src/icons/RadioCheckButtonIcon/index.ts +1 -0
  1027. package/src/icons/ReportIcon/ReportIcon.tsx +36 -0
  1028. package/src/icons/ReportIcon/index.ts +1 -0
  1029. package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
  1030. package/src/icons/RocketIcon/index.tsx +1 -0
  1031. package/src/icons/SatisfiedIcon/SatisfiedIcon.tsx +41 -0
  1032. package/src/icons/SatisfiedIcon/index.ts +1 -0
  1033. package/src/icons/SelectIcon/SelectIcon.tsx +30 -0
  1034. package/src/icons/SelectIcon/index.ts +1 -0
  1035. package/src/icons/ShelfIcon/ShelfIcon.tsx +47 -0
  1036. package/src/icons/ShelfIcon/index.ts +2 -0
  1037. package/src/icons/SpinnerIcon/SpinnerIcon.tsx +40 -0
  1038. package/src/icons/SpinnerIcon/index.ts +1 -0
  1039. package/src/icons/ThumbDownIcon/ThumbDownIcon.tsx +15 -0
  1040. package/src/icons/ThumbDownIcon/index.ts +1 -0
  1041. package/src/icons/ThumbUpIcon/ThumbUpIcon.tsx +15 -0
  1042. package/src/icons/ThumbUpIcon/index.ts +1 -0
  1043. package/src/icons/index.ts +26 -0
  1044. package/src/index.ts +10 -0
  1045. package/src/layouts/Forbidden.tsx +51 -0
  1046. package/src/layouts/NotFound.tsx +51 -0
  1047. package/src/layouts/OIDCForbidden.tsx +85 -0
  1048. package/src/layouts/PageLayout.tsx +34 -0
  1049. package/src/layouts/RootLayout.tsx +21 -0
  1050. package/src/layouts/index.ts +5 -0
  1051. package/src/mocks/Feedback/useSubmitFeedback.tsx +4 -0
  1052. package/src/mocks/Link.tsx +17 -0
  1053. package/src/mocks/Profile/useProfileProps.tsx +12 -0
  1054. package/src/mocks/Sidebar/getMenuType.ts +6 -0
  1055. package/src/mocks/Sidebar/types.ts +15 -0
  1056. package/src/mocks/Sidebar/useBreadcrumbs.ts +3 -0
  1057. package/src/mocks/Sidebar/useDrilldown.tsx +12 -0
  1058. package/src/mocks/Sidebar/useMenuGroup.tsx +10 -0
  1059. package/src/mocks/Sidebar/useSidebarItems.tsx +7 -0
  1060. package/src/mocks/constants/index.ts +2 -0
  1061. package/src/mocks/hooks/index.ts +118 -0
  1062. package/src/mocks/hooks/usePageData.ts +12 -0
  1063. package/src/mocks/media-css.ts +1 -0
  1064. package/src/mocks/search.ts +66 -0
  1065. package/src/mocks/telemetry.ts +5 -0
  1066. package/src/mocks/types/index.ts +1 -0
  1067. package/src/mocks/types.ts +5 -0
  1068. package/src/mocks/useGlobalData.tsx +3 -0
  1069. package/src/mocks/usePreloadHistory.ts +9 -0
  1070. package/src/mocks/utils.ts +22 -0
  1071. package/src/settings.yaml +29 -0
  1072. package/src/types/config.ts +5 -0
  1073. package/src/types/portal/index.ts +3 -0
  1074. package/src/types/portal/src/shared/constants.ts +21 -0
  1075. package/src/types/portal/src/shared/types/activeItem.ts +1 -0
  1076. package/src/types/portal/src/shared/types/catalog.ts +44 -0
  1077. package/src/types/portal/src/shared/types/feedback.ts +22 -0
  1078. package/src/types/portal/src/shared/types/i18n.d.ts +5 -0
  1079. package/src/types/portal/src/shared/types/markdown.ts +6 -0
  1080. package/src/types/portal/src/shared/types/nav.ts +191 -0
  1081. package/src/types/portal/src/shared/types/searchDocument.ts +23 -0
  1082. package/src/ui/ArrowBack.tsx +33 -0
  1083. package/src/ui/Background.tsx +16 -0
  1084. package/src/ui/Box.tsx +37 -0
  1085. package/src/ui/Burger.tsx +39 -0
  1086. package/src/ui/Checkbox.tsx +64 -0
  1087. package/src/ui/Dropdown.tsx +131 -0
  1088. package/src/ui/Flex.tsx +24 -0
  1089. package/src/ui/Highlight.tsx +48 -0
  1090. package/src/ui/Jumbotron.tsx +57 -0
  1091. package/src/ui/darkColors.tsx +222 -0
  1092. package/src/ui/index.tsx +12 -0
  1093. package/src/utils/ClipboardService.ts +25 -0
  1094. package/src/utils/args-typecheck.ts +9 -0
  1095. package/src/utils/class-names.ts +8 -0
  1096. package/src/utils/color.ts +12 -0
  1097. package/src/utils/css-variables.ts +4 -0
  1098. package/src/utils/getNavbarElement.ts +10 -0
  1099. package/src/utils/highlight.ts +94 -0
  1100. package/src/utils/index.ts +13 -0
  1101. package/src/utils/isUrl.ts +42 -0
  1102. package/src/utils/jsUtils.ts +18 -0
  1103. package/src/utils/jsonToHtml.ts +234 -0
  1104. package/src/utils/media-css.ts +16 -0
  1105. package/src/utils/replaceHashInColor.ts +3 -0
  1106. package/src/utils/tags-parser.ts +8 -0
  1107. package/src/utils/text-transform.ts +3 -0
  1108. package/src/utils/theme-helpers.ts +83 -0
  1109. package/src/utils/urls.ts +54 -0
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EditPageButton = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Link_1 = require("../../mocks/Link");
10
+ const telemetry_1 = require("../../mocks/telemetry");
11
+ const icons_1 = require("../../icons");
12
+ const hooks_1 = require("../../mocks/hooks");
13
+ const EditPageButton = ({ to }) => {
14
+ const { translate } = (0, hooks_1.useTranslate)();
15
+ return (react_1.default.createElement(EditButton, { "data-component-name": "EditPageButton/EditPageButton", to: to, onClick: () => telemetry_1.telemetry.send('edit_page_link_clicked', {}) },
16
+ react_1.default.createElement(ButtonIcon, null),
17
+ react_1.default.createElement(ButtonText, { "data-translation-key": "theme.markdown.editPage.text" }, translate('theme.markdown.editPage.text', 'Edit'))));
18
+ };
19
+ exports.EditPageButton = EditPageButton;
20
+ const EditButton = (0, styled_components_1.default)(Link_1.Link) `
21
+ margin-left: auto;
22
+ display: inline-flex;
23
+ color: var(--text-secondary);
24
+ font-weight: var(--font-weight-bold);
25
+ font-size: var(--font-size-base);
26
+ font-family: var(--font-family-base);
27
+ text-decoration: none;
28
+
29
+ &:hover {
30
+ color: var(--text-primary);
31
+ }
32
+
33
+ @media print {
34
+ display: none;
35
+ }
36
+ `;
37
+ const ButtonIcon = (0, styled_components_1.default)(icons_1.EditIcon) `
38
+ margin-right: 3px;
39
+ `;
40
+ const ButtonText = styled_components_1.default.span `
41
+ line-height: 14px;
42
+ `;
43
+ //# sourceMappingURL=EditPageButton.js.map
@@ -0,0 +1 @@
1
+ export * from '../../components/EditPageButton/EditPageButton';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../../components/EditPageButton/EditPageButton"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { CommentProps } from '../../components/Feedback';
3
+ export declare const Comment: ({ settings, onSubmit, onCancel, className, standAlone, }: CommentProps) => JSX.Element;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Comment = void 0;
30
+ const React = __importStar(require("react"));
31
+ const styled_components_1 = __importDefault(require("styled-components"));
32
+ const Button_1 = require("../../components/Button/Button");
33
+ const hooks_1 = require("../../mocks/hooks");
34
+ const RadioCheckButtonIcon_1 = require("../../icons/RadioCheckButtonIcon");
35
+ const media_css_1 = require("../../mocks/media-css");
36
+ const Comment = ({ settings, onSubmit, onCancel, className, standAlone = true, }) => {
37
+ const { label, submitText } = settings || {};
38
+ const [text, setText] = React.useState('');
39
+ const [submitValue, setSubmitValue] = React.useState('');
40
+ const { translate } = (0, hooks_1.useTranslate)();
41
+ const send = () => {
42
+ if (!text)
43
+ return;
44
+ setSubmitValue(text);
45
+ onSubmit({ comment: text });
46
+ };
47
+ const handleTextAreaChange = (e) => {
48
+ const commentValue = e.target.value;
49
+ setText(commentValue);
50
+ if (!standAlone) {
51
+ onSubmit({ comment: commentValue });
52
+ }
53
+ };
54
+ if (submitValue) {
55
+ return (React.createElement(StateWrapper, { className: className },
56
+ React.createElement(Label, { "data-translation-key": "theme.feedback.settings.comment.submitText" }, submitText ||
57
+ translate('theme.feedback.settings.comment.submitText', 'Thank you for helping improve our documentation!')),
58
+ React.createElement(RadioCheckButtonIcon_1.RadioCheckButtonIcon, null)));
59
+ }
60
+ return (React.createElement(Wrapper, { "data-component-name": "Feedback/Comment", className: className, style: standAlone ? { width: '424px', padding: '16px 24px' } : { width: 'auto' } },
61
+ React.createElement(Label, { "data-translation-key": "theme.feedback.settings.comment.label" }, label ||
62
+ translate('theme.feedback.settings.comment.label', 'Please share your feedback with us.')),
63
+ React.createElement(TextArea, { rows: 3, onChange: handleTextAreaChange }),
64
+ standAlone && (React.createElement(ButtonsContainer, null,
65
+ onCancel && (React.createElement(CancelButton, { "data-translation-key": "theme.feedback.settings.comment.cancel", onClick: onCancel }, translate('theme.feedback.settings.comment.cancel', 'Cancel'))),
66
+ React.createElement(SendButton, { "data-translation-key": "theme.feedback.settings.comment.send", onClick: send }, translate('theme.feedback.settings.comment.send', 'Send'))))));
67
+ };
68
+ exports.Comment = Comment;
69
+ const Wrapper = styled_components_1.default.div `
70
+ font-family: var(--font-family-base);
71
+ display: flex;
72
+ flex-direction: column;
73
+ justify-content: space-between;
74
+ border-radius: 8px;
75
+ background: var(--bg-raised);
76
+ `;
77
+ const StateWrapper = (0, styled_components_1.default)(Wrapper) `
78
+ flex-direction: row;
79
+ align-items: center;
80
+ width: 424px;
81
+ padding: 16px 24px;
82
+
83
+ @media screen and (max-width: ${media_css_1.breakpoints.small}) {
84
+ width: 100%;
85
+ }
86
+ `;
87
+ const Label = styled_components_1.default.h4 `
88
+ font-family: var(--h4-font-family);
89
+ font-weight: var(--font-weight-regular);
90
+ font-size: var(--h4-font-size);
91
+ line-height: var(--h4-line-height);
92
+ color: var(--h4-text-color);
93
+ margin-right: 15px;
94
+ `;
95
+ const TextArea = styled_components_1.default.textarea `
96
+ background-color: var(--bg-base);
97
+ border-radius: var(--border-radius-lg);
98
+ border: var(--input-border);
99
+ outline: none;
100
+ color: var(--text-primary);
101
+ font-family: var(--font-family-base);
102
+ margin: 0 0 10px 0;
103
+ padding: 10px;
104
+ `;
105
+ const ButtonsContainer = styled_components_1.default.div `
106
+ display: flex;
107
+ justify-content: end;
108
+ `;
109
+ const SendButton = (0, styled_components_1.default)(Button_1.Button).attrs(() => ({
110
+ color: 'primary',
111
+ })) `
112
+ width: 100px;
113
+ margin-left: 0;
114
+ margin-right: 0;
115
+ `;
116
+ const CancelButton = (0, styled_components_1.default)(Button_1.Button).attrs(() => ({
117
+ color: 'secondary',
118
+ })) `
119
+ width: 100px;
120
+ margin-left: 0;
121
+ margin-right: 0;
122
+ `;
123
+ //# sourceMappingURL=Comment.js.map
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare const Satisfied: () => React.JSX.Element;
3
+ export declare const Dissatisfied: () => React.JSX.Element;
4
+ export declare const Neutral: () => React.JSX.Element;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Neutral = exports.Dissatisfied = exports.Satisfied = void 0;
30
+ const React = __importStar(require("react"));
31
+ const styled_components_1 = __importDefault(require("styled-components"));
32
+ const icons_1 = require("../../icons");
33
+ const Satisfied = () => {
34
+ return (React.createElement(Icon, null,
35
+ React.createElement(icons_1.SatisfiedIcon, null)));
36
+ };
37
+ exports.Satisfied = Satisfied;
38
+ const Dissatisfied = () => {
39
+ return (React.createElement(Icon, null,
40
+ React.createElement(icons_1.DissatisfiedIcon, null)));
41
+ };
42
+ exports.Dissatisfied = Dissatisfied;
43
+ const Neutral = () => {
44
+ return (React.createElement(Icon, null,
45
+ React.createElement(icons_1.NeutralIcon, null)));
46
+ };
47
+ exports.Neutral = Neutral;
48
+ const Icon = styled_components_1.default.div `
49
+ display: flex;
50
+ align-items: center;
51
+ > svg {
52
+ > g {
53
+ fill: var(--color-info-text);
54
+ }
55
+ }
56
+ `;
57
+ //# sourceMappingURL=Emotions.js.map
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { FeedbackProps } from '../../types/portal/src/shared/types/feedback';
3
+ export declare const Feedback: (props: FeedbackProps & {
4
+ path?: string;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Feedback = void 0;
30
+ const React = __importStar(require("react"));
31
+ const react_router_dom_1 = require("react-router-dom");
32
+ const styled_components_1 = __importDefault(require("styled-components"));
33
+ const Feedback_1 = require("../../components/Feedback");
34
+ const hooks_1 = require("../../hooks");
35
+ const useSubmitFeedback_1 = require("../../mocks/Feedback/useSubmitFeedback");
36
+ const telemetry_1 = require("../../mocks/telemetry");
37
+ const Feedback = (props) => {
38
+ const { submitFeedback } = (0, useSubmitFeedback_1.useSubmitFeedback)();
39
+ const { pathname } = (0, react_router_dom_1.useLocation)();
40
+ const { feedback: themeFeedbackConf } = (0, hooks_1.useThemeConfig)();
41
+ const feedbackConf = Object.assign(Object.assign({}, themeFeedbackConf), props);
42
+ const renderFeedbackComponent = () => {
43
+ const { type, settings, path } = feedbackConf;
44
+ switch (type) {
45
+ case 'rating':
46
+ return (React.createElement(Wrapper, null,
47
+ React.createElement(Feedback_1.Rating, { settings: settings, onSubmit: (values) => {
48
+ submitFeedback({ type: 'rating', values, path });
49
+ telemetry_1.telemetry.send('feedback_sent', { type: 'rating' });
50
+ } })));
51
+ case 'sentiment':
52
+ return (React.createElement(Wrapper, null,
53
+ React.createElement(Feedback_1.Sentiment, { settings: settings, onSubmit: (values) => {
54
+ submitFeedback({ type: 'sentiment', values, path });
55
+ telemetry_1.telemetry.send('feedback_sent', { type: 'sentiment' });
56
+ } })));
57
+ case 'mood':
58
+ return (React.createElement(Wrapper, null,
59
+ React.createElement(Feedback_1.Mood, { settings: settings, onSubmit: (values) => {
60
+ submitFeedback({ type: 'mood', values, path });
61
+ telemetry_1.telemetry.send('feedback_sent', { type: 'mood' });
62
+ } })));
63
+ case 'scale':
64
+ return (React.createElement(Wrapper, null,
65
+ React.createElement(Feedback_1.Scale, { settings: settings, onSubmit: (values) => {
66
+ submitFeedback({ type: 'scale', values, path });
67
+ telemetry_1.telemetry.send('feedback_sent', { type: 'scale' });
68
+ } })));
69
+ case 'comment':
70
+ return (React.createElement(Wrapper, null,
71
+ React.createElement(Feedback_1.Comment, { settings: settings, onSubmit: (values) => {
72
+ submitFeedback({ type: 'comment', values, path });
73
+ telemetry_1.telemetry.send('feedback_sent', { type: 'comment' });
74
+ } })));
75
+ default:
76
+ console.log(`No feedback with type ${type}!`);
77
+ break;
78
+ }
79
+ };
80
+ return React.createElement(React.Fragment, { key: pathname }, renderFeedbackComponent());
81
+ };
82
+ exports.Feedback = Feedback;
83
+ const Wrapper = styled_components_1.default.div `
84
+ @media print {
85
+ display: none;
86
+ }
87
+ `;
88
+ //# sourceMappingURL=Feedback.js.map
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { MoodProps } from '../../components';
3
+ export declare enum MOOD_STATES {
4
+ SATISFIED = "satisfied",
5
+ NEUTRAL = "neutral",
6
+ DISSATISFIED = "dissatisfied"
7
+ }
8
+ export declare const Mood: ({ settings, onSubmit, className }: MoodProps) => JSX.Element;
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Mood = exports.MOOD_STATES = void 0;
30
+ const React = __importStar(require("react"));
31
+ const react_1 = require("react");
32
+ const styled_components_1 = __importDefault(require("styled-components"));
33
+ const hooks_1 = require("../../mocks/hooks");
34
+ const Emotions_1 = require("../../components/Feedback/Emotions");
35
+ const Feedback_1 = require("../../components/Feedback");
36
+ const RadioCheckButtonIcon_1 = require("../../icons/RadioCheckButtonIcon");
37
+ const components_1 = require("../../components");
38
+ const media_css_1 = require("../../mocks/media-css");
39
+ var MOOD_STATES;
40
+ (function (MOOD_STATES) {
41
+ MOOD_STATES["SATISFIED"] = "satisfied";
42
+ MOOD_STATES["NEUTRAL"] = "neutral";
43
+ MOOD_STATES["DISSATISFIED"] = "dissatisfied";
44
+ })(MOOD_STATES || (exports.MOOD_STATES = MOOD_STATES = {}));
45
+ const Mood = ({ settings, onSubmit, className }) => {
46
+ const { label, submitText, comment: commentSettings, reasons: reasonsSettings } = settings || {};
47
+ const [score, setScore] = React.useState('');
48
+ const [isSubmitted, setIsSubmitted] = React.useState(false);
49
+ const [comment, setComment] = React.useState('');
50
+ const [reasons, setReasons] = React.useState([]);
51
+ const { translate } = (0, hooks_1.useTranslate)();
52
+ const renderCommentLabel = (score) => {
53
+ if (!commentSettings || (commentSettings === null || commentSettings === void 0 ? void 0 : commentSettings.hide) === true)
54
+ return '';
55
+ switch (score) {
56
+ case MOOD_STATES.SATISFIED:
57
+ return (commentSettings.satisfiedLabel ||
58
+ translate('theme.feedback.settings.comment.satisfiedLabel', 'What was most helpful?'));
59
+ case MOOD_STATES.NEUTRAL:
60
+ return (commentSettings.neutralLabel ||
61
+ translate('theme.feedback.settings.comment.neutralLabel', 'What can we improve?'));
62
+ case MOOD_STATES.DISSATISFIED:
63
+ return (commentSettings.dissatisfiedLabel ||
64
+ translate('theme.feedback.settings.comment.dissatisfiedLabel', 'What can we improve?'));
65
+ default:
66
+ return translate('theme.feedback.settings.comment.satisfiedLabel', 'What can we improve?');
67
+ }
68
+ };
69
+ const displayReasons = !!score && reasonsSettings && !reasonsSettings.hide;
70
+ const displayComment = !!score && commentSettings && !commentSettings.hide;
71
+ const displaySubmitBnt = !!score && (displayReasons || displayComment);
72
+ const onSubmitMoodForm = () => {
73
+ onSubmit({
74
+ score: remapScore(score),
75
+ comment,
76
+ reasons,
77
+ });
78
+ setIsSubmitted(true);
79
+ };
80
+ (0, react_1.useEffect)(() => {
81
+ if (score && !displayComment && !displayReasons) {
82
+ onSubmitMoodForm();
83
+ }
84
+ // eslint-disable-next-line react-hooks/exhaustive-deps
85
+ }, [score, displayComment, displayReasons]);
86
+ if (isSubmitted) {
87
+ return (React.createElement(Wrapper, null,
88
+ React.createElement(Label, { "data-translation-key": "theme.feedback.settings.submitText" }, submitText ||
89
+ translate('theme.feedback.settings.submitText', 'Thank you for helping improve our documentation!')),
90
+ React.createElement(RadioCheckButtonIcon_1.RadioCheckButtonIcon, null)));
91
+ }
92
+ return (React.createElement(Wrapper, { "data-component-name": "Feedback/Mood", className: className },
93
+ React.createElement(StyledForm, null,
94
+ React.createElement(StyledFormMandatoryFields, null,
95
+ React.createElement(Label, { "data-translation-key": "theme.feedback.settings.label" }, label || translate('theme.feedback.settings.label', 'Was this helpful?')),
96
+ React.createElement(StyledMandatoryFieldContainer, null,
97
+ React.createElement(React.Fragment, null,
98
+ React.createElement(Vote, { className: `${score === MOOD_STATES.DISSATISFIED ? 'active' : ''}`, onClick: () => {
99
+ setScore(MOOD_STATES.DISSATISFIED);
100
+ } },
101
+ React.createElement(Emotions_1.Dissatisfied, null)),
102
+ React.createElement(Vote, { className: `${score === MOOD_STATES.NEUTRAL ? 'active' : ''}`, onClick: () => {
103
+ setScore(MOOD_STATES.NEUTRAL);
104
+ } },
105
+ React.createElement(Emotions_1.Neutral, null)),
106
+ React.createElement(Vote, { className: `${score === MOOD_STATES.SATISFIED ? 'active' : ''}`, onClick: () => {
107
+ setScore(MOOD_STATES.SATISFIED);
108
+ } },
109
+ React.createElement(Emotions_1.Satisfied, null))))),
110
+ React.createElement(StyledFormOptionalFields, null,
111
+ displayReasons && (React.createElement(Feedback_1.Reasons, { settings: {
112
+ label: reasonsSettings === null || reasonsSettings === void 0 ? void 0 : reasonsSettings.label,
113
+ items: (reasonsSettings === null || reasonsSettings === void 0 ? void 0 : reasonsSettings.items) || [],
114
+ component: reasonsSettings === null || reasonsSettings === void 0 ? void 0 : reasonsSettings.component,
115
+ }, onChange: setReasons })),
116
+ displayComment && (React.createElement(Feedback_1.Comment, { standAlone: false, onSubmit: ({ comment }) => setComment(comment), settings: { label: renderCommentLabel(score) } }))),
117
+ displaySubmitBnt && (React.createElement(ButtonsContainer, null,
118
+ React.createElement(SubmitButton, { onClick: onSubmitMoodForm }, "Submit"))))));
119
+ };
120
+ exports.Mood = Mood;
121
+ const remapScore = (score) => {
122
+ switch (score) {
123
+ case MOOD_STATES.SATISFIED:
124
+ return 1;
125
+ case MOOD_STATES.NEUTRAL:
126
+ return 0;
127
+ case MOOD_STATES.DISSATISFIED:
128
+ return -1;
129
+ default:
130
+ return 0;
131
+ }
132
+ };
133
+ const Wrapper = styled_components_1.default.div `
134
+ font-family: var(--font-family-base);
135
+ display: flex;
136
+ justify-content: space-between;
137
+ align-items: center;
138
+ padding: 16px 24px;
139
+ width: 424px;
140
+ border-radius: 8px;
141
+ background: var(--bg-raised);
142
+
143
+ @media screen and (max-width: ${media_css_1.breakpoints.small}) {
144
+ width: 100%;
145
+ }
146
+ `;
147
+ const Label = styled_components_1.default.h4 `
148
+ font-family: var(--h4-font-family);
149
+ font-weight: var(--font-weight-regular);
150
+ font-size: var(--h4-font-size);
151
+ line-height: var(--h4-line-height);
152
+ color: var(--h4-text-color);
153
+ margin-right: 15px;
154
+ `;
155
+ const Vote = styled_components_1.default.div `
156
+ cursor: pointer;
157
+ margin: 0 10px;
158
+ color: var(--text-description);
159
+ &.active {
160
+ color: var(--text-primary);
161
+ }
162
+ &:hover {
163
+ color: var(--text-primary);
164
+ svg {
165
+ > g {
166
+ fill: var(--text-primary);
167
+ }
168
+ }
169
+ }
170
+ `;
171
+ const SubmitButton = (0, styled_components_1.default)(components_1.Button).attrs(() => ({
172
+ color: 'primary',
173
+ })) `
174
+ width: 100px;
175
+ margin-left: 0;
176
+ margin-right: 0;
177
+ `;
178
+ const ButtonsContainer = styled_components_1.default.div `
179
+ display: flex;
180
+ justify-content: end;
181
+ `;
182
+ const StyledForm = styled_components_1.default.form `
183
+ width: 100%;
184
+ `;
185
+ const StyledFormOptionalFields = styled_components_1.default.div `
186
+ display: flex;
187
+ flex-flow: column;
188
+ `;
189
+ const StyledFormMandatoryFields = styled_components_1.default.div `
190
+ display: flex;
191
+ justify-content: space-between;
192
+ `;
193
+ const StyledMandatoryFieldContainer = styled_components_1.default.div `
194
+ display: flex;
195
+ align-items: center;
196
+ `;
197
+ //# sourceMappingURL=Mood.js.map
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { RatingProps } from '../../components/Feedback';
3
+ export declare const FEEDBACK_MAX_RATING = 5;
4
+ export declare const Rating: ({ settings, onSubmit, className }: RatingProps) => JSX.Element;