@redocly/theme 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/ApiOnboarding/AppCustomAttributes.js +10 -0
- package/lib/components/Button/Button.js +156 -0
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +18 -0
- package/lib/components/Cards/Card.d.ts +8 -0
- package/lib/components/Cards/Card.js +36 -0
- package/lib/components/Cards/index.d.ts +2 -0
- package/lib/components/Cards/index.js +19 -0
- package/lib/components/Catalog/Catalog.d.ts +8 -0
- package/lib/components/Catalog/Catalog.js +167 -0
- package/lib/components/Catalog/CatalogCard.d.ts +5 -0
- package/lib/components/Catalog/CatalogCard.js +113 -0
- package/lib/components/Catalog/useCatalog.d.ts +3 -0
- package/lib/components/Catalog/useCatalog.js +241 -0
- package/lib/components/CodeBlock/CodeBlock.js +103 -0
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +18 -0
- package/lib/components/CodeSample/CodeSample.js +217 -0
- package/lib/components/CodeSample/index.d.ts +1 -0
- package/lib/components/CodeSample/index.js +18 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +81 -0
- package/lib/components/ColorModeSwitcher/index.d.ts +1 -0
- package/lib/components/ColorModeSwitcher/index.js +18 -0
- package/lib/components/CopyButton/CopyButton.js +54 -0
- package/lib/components/CopyButton/CopyButtonWrapper.d.ts +11 -0
- package/lib/components/CopyButton/CopyButtonWrapper.js +53 -0
- package/lib/components/CopyButton/index.d.ts +2 -0
- package/lib/components/CopyButton/index.js +19 -0
- package/lib/components/EditPageButton/EditPageButton.js +36 -0
- package/lib/components/EditPageButton/index.d.ts +1 -0
- package/lib/components/EditPageButton/index.js +18 -0
- package/lib/components/Feedback/Comment.d.ts +3 -0
- package/lib/components/Feedback/Comment.js +93 -0
- package/lib/components/Feedback/Feedback.d.ts +5 -0
- package/lib/components/Feedback/Feedback.js +54 -0
- package/lib/components/Feedback/Rating.d.ts +3 -0
- package/lib/components/Feedback/Rating.js +82 -0
- package/lib/components/Feedback/Reasons.d.ts +3 -0
- package/lib/components/Feedback/Reasons.js +85 -0
- package/lib/components/Feedback/ReportDialog.d.ts +3 -0
- package/lib/components/Feedback/ReportDialog.js +64 -0
- package/lib/components/Feedback/Sentiment.d.ts +3 -0
- package/lib/components/Feedback/Sentiment.js +79 -0
- package/lib/components/Feedback/index.d.ts +8 -0
- package/lib/components/Feedback/index.js +33 -0
- package/lib/components/Feedback/types.d.ts +76 -0
- package/lib/components/Filter/Filter.d.ts +5 -0
- package/lib/components/Filter/Filter.js +86 -0
- package/lib/components/Filter/index.d.ts +1 -0
- package/lib/components/Filter/index.js +18 -0
- package/lib/components/Footer/CustomFooter.d.ts +7 -0
- package/lib/components/Footer/CustomFooter.js +35 -0
- package/lib/components/Footer/CustomFooterNavItem.d.ts +7 -0
- package/lib/components/Footer/CustomFooterNavItem.js +33 -0
- package/lib/components/Footer/Footer.d.ts +9 -0
- package/lib/components/Footer/Footer.js +40 -0
- package/lib/components/Footer/FooterColumn.d.ts +7 -0
- package/lib/components/Footer/FooterColumn.js +54 -0
- package/lib/components/Footer/FooterColumns.d.ts +9 -0
- package/lib/components/Footer/FooterColumns.js +44 -0
- package/lib/components/Footer/FooterCopyright.d.ts +7 -0
- package/lib/components/Footer/index.d.ts +4 -0
- package/lib/components/Footer/index.js +21 -0
- package/lib/components/JsonViewer/JsonViewer.js +240 -0
- package/lib/components/JsonViewer/index.d.ts +1 -0
- package/lib/components/JsonViewer/index.js +18 -0
- package/lib/components/LastUpdated/LastUpdated.js +75 -0
- package/lib/components/Markdown/Admonition.js +56 -0
- package/lib/components/Markdown/Heading.js +48 -0
- package/lib/components/Markdown/MarkdownLayout.d.ts +18 -0
- package/lib/components/Markdown/MarkdownLayout.js +40 -0
- package/lib/components/Markdown/MarkdownWrapper.js +394 -0
- package/lib/components/Markdown/index.d.ts +9 -0
- package/lib/components/Markdown/index.js +26 -0
- package/lib/components/Menu/Menu.d.ts +10 -0
- package/lib/components/Menu/Menu.js +28 -0
- package/lib/components/Menu/MenuContainer.js +17 -0
- package/lib/components/Menu/MenuGroup.d.ts +9 -0
- package/lib/components/Menu/MenuGroup.js +88 -0
- package/lib/components/Menu/MenuItem.d.ts +3 -0
- package/lib/components/Menu/MenuItem.js +23 -0
- package/lib/components/Menu/MenuItemLabel.js +46 -0
- package/lib/components/Menu/MenuItemSwitch.d.ts +3 -0
- package/lib/components/Menu/MenuItemSwitch.js +39 -0
- package/lib/components/Menu/MenuLink.d.ts +4 -0
- package/lib/components/Menu/MenuLink.js +15 -0
- package/lib/components/Menu/MenuLinkItem.d.ts +3 -0
- package/lib/components/Menu/MenuLinkItem.js +15 -0
- package/lib/components/Menu/index.d.ts +7 -0
- package/lib/components/Menu/index.js +24 -0
- package/lib/components/Navbar/MobileNavbarDropdown.d.ts +8 -0
- package/lib/components/Navbar/MobileNavbarDropdown.js +30 -0
- package/lib/components/Navbar/MobileNavbarItem.d.ts +15 -0
- package/lib/components/Navbar/MobileNavbarItem.js +106 -0
- package/lib/components/Navbar/MobileNavbarMenu.d.ts +7 -0
- package/lib/components/Navbar/MobileNavbarMenu.js +104 -0
- package/lib/components/Navbar/MobileNavbarMenuButton.d.ts +4 -0
- package/lib/components/Navbar/MobileNavbarMenuButton.js +18 -0
- package/lib/components/Navbar/Navbar.d.ts +17 -0
- package/lib/components/Navbar/Navbar.js +132 -0
- package/lib/components/Navbar/NavbarDropdown.d.ts +8 -0
- package/lib/components/Navbar/NavbarDropdown.js +38 -0
- package/lib/components/Navbar/NavbarItem.d.ts +13 -0
- package/lib/components/Navbar/NavbarItem.js +72 -0
- package/lib/components/Navbar/NavbarMenu.d.ts +5 -0
- package/lib/components/Navbar/NavbarMenu.js +34 -0
- package/lib/components/Navbar/index.d.ts +3 -0
- package/lib/components/Navbar/index.js +20 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +6 -0
- package/lib/components/NavbarLogo/NavbarLogo.js +24 -0
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +18 -0
- package/lib/components/OpenAPIDocs/DevOnboardingTryItSecurity.js +177 -0
- package/lib/components/OpenAPIDocs/TryItSecurityApps.d.ts +8 -0
- package/lib/components/OpenAPIDocs/TryItSecurityApps.js +15 -0
- package/lib/components/OperationBadge/index.d.ts +1 -0
- package/lib/components/OperationBadge/index.js +18 -0
- package/lib/components/PageNavigation/NextButton.d.ts +7 -0
- package/lib/components/PageNavigation/NextButton.js +47 -0
- package/lib/components/PageNavigation/PageNavigation.d.ts +8 -0
- package/lib/components/PageNavigation/PageNavigation.js +32 -0
- package/lib/components/PageNavigation/PreviousButton.d.ts +7 -0
- package/lib/components/PageNavigation/PreviousButton.js +24 -0
- package/lib/components/PageNavigation/index.d.ts +3 -0
- package/lib/components/PageNavigation/index.js +20 -0
- package/lib/components/Panel/Panel.d.ts +5 -0
- package/lib/components/Panel/Panel.js +39 -0
- package/lib/components/Panel/PanelComponent.d.ts +13 -0
- package/lib/components/Panel/PanelComponent.js +65 -0
- package/lib/components/Panel/index.d.ts +5 -0
- package/lib/components/Panel/index.js +22 -0
- package/lib/components/Profile/AuthUserProfile.d.ts +2 -0
- package/lib/components/Profile/AuthUserProfile.js +22 -0
- package/lib/components/Profile/LoginLink.js +30 -0
- package/lib/components/Profile/Profile.js +104 -0
- package/lib/components/Profile/UserProfile.d.ts +3 -0
- package/lib/components/Profile/UserProfile.js +46 -0
- package/lib/components/Profile/UserProfileMenu.js +87 -0
- package/lib/components/Profile/index.d.ts +6 -0
- package/lib/components/Profile/types.d.ts +11 -0
- package/lib/components/Profile/types.js +3 -0
- package/lib/components/SamplesPanelControls/SamplesPanelControls.js +75 -0
- package/lib/components/SamplesPanelControls/index.d.ts +1 -0
- package/lib/components/SamplesPanelControls/index.js +18 -0
- package/lib/components/Search/Autocomplete.d.ts +16 -0
- package/lib/components/Search/Autocomplete.js +122 -0
- package/lib/components/Search/Parameters.d.ts +7 -0
- package/lib/components/Search/Parameters.js +55 -0
- package/lib/components/Search/Search.js +65 -0
- package/lib/components/Search/SearchItem.d.ts +8 -0
- package/lib/components/Search/SearchItem.js +98 -0
- package/lib/components/Search/SidebarSearch.d.ts +4 -0
- package/lib/components/Search/SidebarSearch.js +20 -0
- package/lib/components/Search/index.d.ts +9 -0
- package/lib/components/Search/index.js +26 -0
- package/lib/components/Separator/Separator.d.ts +3 -0
- package/lib/components/Separator/Separator.js +18 -0
- package/lib/components/Separator/SeparatorItem.js +29 -0
- package/lib/components/Separator/index.d.ts +3 -0
- package/lib/components/Separator/index.js +20 -0
- package/lib/components/Sidebar/ApiCallItem.d.ts +9 -0
- package/lib/components/Sidebar/ApiCallItem.js +34 -0
- package/lib/components/Sidebar/BackButton.js +39 -0
- package/lib/components/Sidebar/Drilldown.d.ts +8 -0
- package/lib/components/Sidebar/Drilldown.js +43 -0
- package/lib/components/Sidebar/DrilldownMenu.d.ts +3 -0
- package/lib/components/Sidebar/DrilldownMenu.js +71 -0
- package/lib/components/Sidebar/DrilldownMenuItem.d.ts +3 -0
- package/lib/components/Sidebar/SidebarLayout.js +85 -0
- package/lib/components/Sidebar/index.d.ts +11 -0
- package/lib/components/Sidebar/index.js +28 -0
- package/lib/components/Sidebar/types.d.ts +43 -0
- package/lib/components/Sidebar/types.js +8 -0
- package/lib/components/SidebarActions/ChangeViewButton.d.ts +8 -0
- package/lib/components/SidebarActions/ChangeViewButton.js +14 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +13 -0
- package/lib/components/SidebarActions/SidebarActions.js +26 -0
- package/lib/components/SidebarActions/ToggleRightPanelButton.js +13 -0
- package/lib/components/SidebarActions/index.d.ts +1 -0
- package/lib/components/SidebarActions/index.js +7 -0
- package/lib/components/SidebarLogo/index.d.ts +1 -0
- package/lib/components/SidebarLogo/index.js +18 -0
- package/lib/components/SourceCode/SourceCode.js +60 -0
- package/lib/components/SourceCode/index.d.ts +1 -0
- package/lib/components/SourceCode/index.js +18 -0
- package/lib/components/TableOfContent/TableOfContent.d.ts +8 -0
- package/lib/components/TableOfContent/TableOfContent.js +109 -0
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +18 -0
- package/lib/components/TableOfContent/utils.d.ts +4 -0
- package/lib/components/Tabs/Tabs.js +73 -0
- package/lib/components/Tabs/index.d.ts +2 -0
- package/lib/components/Tabs/index.js +19 -0
- package/lib/components/Tags/Tags.js +32 -0
- package/lib/components/Tags/index.d.ts +1 -0
- package/lib/components/Tags/index.js +18 -0
- package/lib/components/Tiles/ThinTile.d.ts +5 -0
- package/lib/components/Tiles/ThinTile.js +124 -0
- package/lib/components/Tiles/WideTile.d.ts +7 -0
- package/lib/components/Tiles/WideTile.js +114 -0
- package/lib/components/Tiles/index.d.ts +4 -0
- package/lib/components/Tiles/index.js +21 -0
- package/lib/components/Tiles/types.d.ts +17 -0
- package/lib/components/Tiles/types.js +3 -0
- package/lib/components/Tooltip/Tooltip.js +173 -0
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +18 -0
- package/lib/components/Typography/CompactTypography.d.ts +7 -0
- package/lib/components/Typography/CompactTypography.js +14 -0
- package/lib/components/Typography/H1.js +17 -0
- package/lib/components/Typography/H2.js +17 -0
- package/lib/components/Typography/H3.js +17 -0
- package/lib/components/Typography/index.d.ts +7 -0
- package/lib/components/Typography/index.js +24 -0
- package/lib/components/index.d.ts +28 -0
- package/lib/components/index.js +45 -0
- package/lib/hooks/useThemeConfig.d.ts +4 -1
- package/lib/hooks/useThemeConfig.js +7 -3
- package/lib/icons/ExternalIcon/ExternalIcon.d.ts +5 -0
- package/lib/icons/ExternalIcon/ExternalIcon.js +22 -0
- package/lib/icons/ExternalIcon/index.d.ts +1 -0
- package/lib/icons/ExternalIcon/index.js +18 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/index.js +1 -0
- package/lib/index.d.ts +3 -21
- package/lib/index.js +3 -21
- package/lib/layouts/Forbidden.js +39 -0
- package/lib/layouts/NotFound.js +39 -0
- package/lib/layouts/RootLayout.d.ts +6 -0
- package/lib/layouts/RootLayout.js +19 -0
- package/lib/layouts/index.d.ts +4 -0
- package/lib/layouts/index.js +21 -0
- package/lib/mocks/Profile/useProfileProps.d.ts +1 -0
- package/lib/mocks/Profile/useProfileProps.js +17 -0
- package/lib/mocks/Sidebar/getMenuType.d.ts +2 -0
- package/lib/mocks/Sidebar/getMenuType.js +10 -0
- package/lib/mocks/Sidebar/types.d.ts +11 -0
- package/lib/mocks/Sidebar/types.js +11 -0
- package/lib/mocks/Sidebar/useDrilldown.d.ts +8 -0
- package/lib/mocks/Sidebar/useDrilldown.js +19 -0
- package/lib/mocks/Sidebar/useMenuGroup.d.ts +6 -0
- package/lib/mocks/Sidebar/useMenuGroup.js +17 -0
- package/lib/mocks/hooks/index.d.ts +2 -2
- package/lib/mocks/hooks/usePageData.d.ts +1 -1
- package/lib/types/portal/index.d.ts +2 -0
- package/lib/types/portal/index.js +18 -0
- package/lib/types/portal/src/shared/constants.d.ts +17 -0
- package/lib/types/portal/src/shared/constants.js +22 -0
- package/lib/types/portal/src/shared/types/activeItem.d.ts +3 -0
- package/lib/types/portal/src/shared/types/activeItem.js +3 -0
- package/lib/types/portal/src/shared/types/catalog.d.ts +49 -0
- package/lib/types/portal/src/shared/types/catalog.js +3 -0
- package/lib/types/portal/src/shared/types/feedback.d.ts +11 -0
- package/lib/types/portal/src/shared/types/feedback.js +3 -0
- package/lib/types/portal/src/shared/types/markdown.d.ts +5 -0
- package/lib/types/portal/src/shared/types/markdown.js +3 -0
- package/lib/types/portal/src/shared/types/nav.d.ts +149 -0
- package/lib/types/portal/src/shared/types/nav.js +8 -0
- package/lib/types/portal/src/shared/types/searchDocument.d.ts +19 -0
- package/lib/types/portal/src/shared/types/searchDocument.js +5 -0
- package/lib/ui/ArrowBack.d.ts +5 -0
- package/lib/ui/ArrowBack.js +22 -0
- package/lib/ui/Dropdown.d.ts +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/index.d.ts +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/jsUtils.d.ts +4 -0
- package/lib/utils/jsUtils.js +21 -0
- package/lib/utils/urls.d.ts +11 -0
- package/lib/utils/urls.js +55 -0
- package/package.json +1 -1
- package/src/components/ApiOnboarding/AppCustomAttributes.tsx +9 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Cards/Card.tsx +49 -0
- package/src/components/Cards/index.ts +2 -0
- package/src/components/Catalog/Catalog.tsx +200 -0
- package/src/components/Catalog/CatalogCard.tsx +95 -0
- package/src/components/Catalog/useCatalog.ts +280 -0
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeSample/CodeSample.tsx +236 -0
- package/src/components/CodeSample/index.ts +1 -0
- package/src/components/ColorModeSwitcher/index.ts +1 -0
- package/src/components/CopyButton/CopyButton.tsx +31 -0
- package/src/components/CopyButton/CopyButtonWrapper.tsx +55 -0
- package/src/components/CopyButton/index.ts +2 -0
- package/src/components/EditPageButton/index.ts +1 -0
- package/src/components/Feedback/Comment.tsx +80 -0
- package/src/components/Feedback/Feedback.tsx +47 -0
- package/src/components/Feedback/Rating.tsx +107 -0
- package/src/components/Feedback/Reasons.tsx +81 -0
- package/src/components/Feedback/ReportDialog.tsx +51 -0
- package/src/components/Feedback/Sentiment.tsx +74 -0
- package/src/components/Feedback/index.ts +8 -0
- package/src/components/Feedback/types.ts +69 -0
- package/src/components/Feedback/useReportDialog.ts +34 -0
- package/src/components/Filter/index.ts +1 -0
- package/src/components/Footer/CustomFooter.tsx +45 -0
- package/src/components/Footer/Footer.tsx +54 -0
- package/src/components/Footer/FooterColumns.tsx +53 -0
- package/src/components/Footer/index.ts +4 -0
- package/src/components/JsonViewer/JsonViewer.tsx +256 -0
- package/src/components/JsonViewer/index.ts +1 -0
- package/src/components/Markdown/MarkdownLayout.tsx +69 -0
- package/src/components/Markdown/index.ts +9 -0
- package/src/components/Menu/Menu.tsx +38 -0
- package/src/components/Menu/MenuContainer.tsx +15 -0
- package/src/components/Menu/MenuGroup.tsx +91 -0
- package/src/components/Menu/MenuItem.tsx +25 -0
- package/src/components/Menu/MenuItemLabel.tsx +41 -0
- package/src/components/Menu/MenuItemSwitch.tsx +63 -0
- package/src/components/Menu/MenuLinkItem.tsx +24 -0
- package/src/components/Menu/index.ts +7 -0
- package/src/components/Navbar/MobileNavbarItem.tsx +115 -0
- package/src/components/Navbar/MobileNavbarMenu.tsx +125 -0
- package/src/components/Navbar/Navbar.tsx +149 -0
- package/src/components/Navbar/NavbarItem.tsx +102 -0
- package/src/components/Navbar/NavbarMenu.tsx +37 -0
- package/src/components/Navbar/index.ts +3 -0
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/OpenAPIDocs/DevOnboardingTryItSecurity.tsx +178 -0
- package/src/components/OpenAPIDocs/TryItSecurityApps.tsx +18 -0
- package/src/components/OperationBadge/index.ts +1 -0
- package/src/components/PageNavigation/NextButton.tsx +38 -0
- package/src/components/PageNavigation/PageNavigation.tsx +37 -0
- package/src/components/PageNavigation/PreviousButton.tsx +38 -0
- package/src/components/PageNavigation/index.ts +3 -0
- package/src/components/Panel/Panel.ts +34 -0
- package/src/components/Panel/PanelComponent.tsx +79 -0
- package/src/components/Panel/index.ts +5 -0
- package/src/components/Profile/AuthUserProfile.tsx +25 -0
- package/src/components/Profile/UserProfile.tsx +46 -0
- package/src/components/Profile/index.ts +6 -0
- package/src/components/Profile/types.ts +11 -0
- package/src/components/SamplesPanelControls/SamplesPanelControls.ts +73 -0
- package/src/components/SamplesPanelControls/index.ts +1 -0
- package/src/components/Search/Autocomplete.tsx +148 -0
- package/src/components/Search/Parameters.tsx +61 -0
- package/src/components/Search/Search.tsx +50 -0
- package/src/components/Search/SearchItem.tsx +91 -0
- package/src/components/Search/SidebarSearch.tsx +15 -0
- package/src/components/Search/index.ts +9 -0
- package/src/components/Separator/Separator.tsx +17 -0
- package/src/components/Separator/SeparatorItem.tsx +24 -0
- package/src/components/Separator/index.ts +3 -0
- package/src/components/Sidebar/ApiCallItem.tsx +39 -0
- package/src/components/Sidebar/BackButton.tsx +44 -0
- package/src/components/Sidebar/Drilldown.tsx +44 -0
- package/src/components/Sidebar/DrilldownMenu.tsx +58 -0
- package/src/components/Sidebar/DrilldownMenuItem.tsx +44 -0
- package/src/components/Sidebar/SidebarLayout.tsx +107 -0
- package/src/components/Sidebar/index.ts +11 -0
- package/src/components/Sidebar/types.ts +47 -0
- package/src/components/SidebarActions/ChangeViewButton.tsx +24 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +25 -0
- package/src/components/SidebarActions/SidebarActions.tsx +71 -0
- package/src/components/SidebarActions/ToggleRightPanelButton.tsx +25 -0
- package/src/components/SidebarActions/index.tsx +1 -0
- package/src/components/SidebarLogo/index.ts +1 -0
- package/src/components/SourceCode/SourceCode.tsx +128 -0
- package/src/components/SourceCode/index.ts +1 -0
- package/src/components/TableOfContent/TableOfContent.tsx +116 -0
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/Tabs/Tabs.tsx +58 -0
- package/src/components/Tabs/index.ts +2 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/Tiles/ThinTile.tsx +134 -0
- package/src/components/Tiles/WideTile.tsx +138 -0
- package/src/components/Tiles/index.ts +4 -0
- package/src/components/Tiles/types.ts +19 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Typography/CompactTypography.ts +9 -0
- package/src/components/Typography/index.ts +7 -0
- package/src/components/index.ts +28 -0
- package/src/hooks/useThemeConfig.ts +10 -1
- package/src/icons/ExternalIcon/ExternalIcon.tsx +44 -0
- package/src/icons/ExternalIcon/index.ts +1 -0
- package/src/icons/index.ts +1 -0
- package/src/index.ts +3 -21
- package/src/layouts/Forbidden.tsx +41 -0
- package/src/layouts/NotFound.tsx +42 -0
- package/src/layouts/RootLayout.tsx +21 -0
- package/src/layouts/index.ts +4 -0
- package/src/mocks/Profile/useProfileProps.tsx +12 -0
- package/src/mocks/Sidebar/getMenuType.ts +6 -0
- package/src/mocks/Sidebar/types.ts +15 -0
- package/src/mocks/Sidebar/useDrilldown.tsx +12 -0
- package/src/mocks/Sidebar/useMenuGroup.tsx +10 -0
- package/src/types/portal/src/shared/constants.ts +17 -0
- package/src/types/portal/src/shared/types/activeItem.ts +1 -0
- package/src/types/portal/src/shared/types/catalog.ts +51 -0
- package/src/types/portal/src/shared/types/feedback.ts +14 -0
- package/src/types/portal/src/shared/types/markdown.ts +6 -0
- package/src/types/portal/src/shared/types/nav.ts +167 -0
- package/src/types/portal/src/shared/types/searchDocument.ts +20 -0
- package/src/ui/ArrowBack.tsx +34 -0
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/index.tsx +1 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/jsUtils.ts +18 -0
- package/src/utils/urls.ts +54 -0
- package/lib/ApiOnboarding/AppCustomAttributes.js +0 -8
- package/lib/Button/Button.js +0 -156
- package/lib/Button/index.d.ts +0 -1
- package/lib/Button/index.js +0 -18
- package/lib/Cards/Card.d.ts +0 -8
- package/lib/Cards/Card.js +0 -36
- package/lib/Catalog/Catalog.d.ts +0 -8
- package/lib/Catalog/Catalog.js +0 -167
- package/lib/Catalog/CatalogCard.d.ts +0 -5
- package/lib/Catalog/CatalogCard.js +0 -113
- package/lib/Catalog/Filter.d.ts +0 -5
- package/lib/Catalog/Filter.js +0 -86
- package/lib/Catalog/Tags.js +0 -32
- package/lib/CodeBlock/CodeBlock.js +0 -103
- package/lib/CodeBlock/index.d.ts +0 -1
- package/lib/CodeBlock/index.js +0 -18
- package/lib/ColorModeSwitcher/ColorModeSwitcher.js +0 -81
- package/lib/ColorModeSwitcher/index.d.ts +0 -1
- package/lib/ColorModeSwitcher/index.js +0 -18
- package/lib/CopyButton/CopyButton.js +0 -54
- package/lib/CopyButton/CopyButtonWrapper.d.ts +0 -11
- package/lib/CopyButton/CopyButtonWrapper.js +0 -53
- package/lib/CopyButton/index.d.ts +0 -2
- package/lib/CopyButton/index.js +0 -19
- package/lib/EditPageButton/EditPageButton.js +0 -36
- package/lib/EditPageButton/index.d.ts +0 -1
- package/lib/EditPageButton/index.js +0 -18
- package/lib/Feedback/Comment.d.ts +0 -3
- package/lib/Feedback/Comment.js +0 -93
- package/lib/Feedback/Feedback.d.ts +0 -5
- package/lib/Feedback/Feedback.js +0 -50
- package/lib/Feedback/Rating.d.ts +0 -3
- package/lib/Feedback/Rating.js +0 -82
- package/lib/Feedback/Reasons.d.ts +0 -3
- package/lib/Feedback/Reasons.js +0 -85
- package/lib/Feedback/ReportDialog.d.ts +0 -3
- package/lib/Feedback/ReportDialog.js +0 -66
- package/lib/Feedback/Sentiment.d.ts +0 -3
- package/lib/Feedback/Sentiment.js +0 -79
- package/lib/Feedback/index.d.ts +0 -8
- package/lib/Feedback/index.js +0 -33
- package/lib/Feedback/types.d.ts +0 -74
- package/lib/Footer/CustomFooter.d.ts +0 -7
- package/lib/Footer/CustomFooter.js +0 -35
- package/lib/Footer/CustomFooterNavItem.d.ts +0 -7
- package/lib/Footer/CustomFooterNavItem.js +0 -33
- package/lib/Footer/Footer.d.ts +0 -10
- package/lib/Footer/Footer.js +0 -35
- package/lib/Footer/FooterColumn.d.ts +0 -7
- package/lib/Footer/FooterColumn.js +0 -54
- package/lib/Footer/FooterColumns.d.ts +0 -9
- package/lib/Footer/FooterColumns.js +0 -44
- package/lib/Footer/FooterCopyright.d.ts +0 -7
- package/lib/Footer/index.d.ts +0 -4
- package/lib/Footer/index.js +0 -21
- package/lib/JsonViewer/JsonViewer.js +0 -240
- package/lib/JsonViewer/index.d.ts +0 -1
- package/lib/JsonViewer/index.js +0 -18
- package/lib/LastUpdated/LastUpdated.js +0 -75
- package/lib/Layout/RootLayout.d.ts +0 -7
- package/lib/Layout/RootLayout.js +0 -19
- package/lib/Layout/index.d.ts +0 -2
- package/lib/Layout/index.js +0 -19
- package/lib/Markdown/Admonition.js +0 -56
- package/lib/Markdown/CodeSample/CodeSample.js +0 -217
- package/lib/Markdown/CodeSample/index.d.ts +0 -1
- package/lib/Markdown/CodeSample/index.js +0 -18
- package/lib/Markdown/Heading.js +0 -48
- package/lib/Markdown/MarkdownLayout.d.ts +0 -15
- package/lib/Markdown/MarkdownLayout.js +0 -40
- package/lib/Markdown/MarkdownWrapper.js +0 -394
- package/lib/Markdown/Tabs/Tabs.js +0 -73
- package/lib/Markdown/Tabs/index.d.ts +0 -2
- package/lib/Markdown/Tabs/index.js +0 -19
- package/lib/Markdown/index.d.ts +0 -10
- package/lib/Markdown/index.js +0 -27
- package/lib/Navbar/MobileNavbarDropdown.d.ts +0 -8
- package/lib/Navbar/MobileNavbarDropdown.js +0 -30
- package/lib/Navbar/MobileNavbarItem.d.ts +0 -15
- package/lib/Navbar/MobileNavbarItem.js +0 -106
- package/lib/Navbar/MobileNavbarMenu.d.ts +0 -7
- package/lib/Navbar/MobileNavbarMenu.js +0 -104
- package/lib/Navbar/MobileNavbarMenuButton.d.ts +0 -4
- package/lib/Navbar/MobileNavbarMenuButton.js +0 -18
- package/lib/Navbar/Navbar.d.ts +0 -12
- package/lib/Navbar/Navbar.js +0 -80
- package/lib/Navbar/NavbarDropdown.d.ts +0 -8
- package/lib/Navbar/NavbarDropdown.js +0 -38
- package/lib/Navbar/NavbarItem.d.ts +0 -13
- package/lib/Navbar/NavbarItem.js +0 -72
- package/lib/Navbar/NavbarMenu.d.ts +0 -5
- package/lib/Navbar/NavbarMenu.js +0 -34
- package/lib/Navbar/index.d.ts +0 -3
- package/lib/Navbar/index.js +0 -20
- package/lib/NavbarLogo/NavbarLogo.d.ts +0 -6
- package/lib/NavbarLogo/NavbarLogo.js +0 -24
- package/lib/NavbarLogo/index.d.ts +0 -1
- package/lib/NavbarLogo/index.js +0 -18
- package/lib/OperationBadge/index.d.ts +0 -1
- package/lib/OperationBadge/index.js +0 -18
- package/lib/PageNavigation/NextButton.d.ts +0 -2
- package/lib/PageNavigation/NextButton.js +0 -49
- package/lib/PageNavigation/PageNavigation.d.ts +0 -2
- package/lib/PageNavigation/PageNavigation.js +0 -32
- package/lib/PageNavigation/PreviousButton.d.ts +0 -2
- package/lib/PageNavigation/PreviousButton.js +0 -26
- package/lib/PageNavigation/index.d.ts +0 -3
- package/lib/PageNavigation/index.js +0 -20
- package/lib/Pages/Forbidden.js +0 -39
- package/lib/Pages/NotFound.js +0 -39
- package/lib/Pages/index.d.ts +0 -1
- package/lib/Pages/index.js +0 -18
- package/lib/Panel/Panel.d.ts +0 -5
- package/lib/Panel/Panel.js +0 -39
- package/lib/Panel/PanelComponent.d.ts +0 -13
- package/lib/Panel/PanelComponent.js +0 -65
- package/lib/Panel/index.d.ts +0 -5
- package/lib/Panel/index.js +0 -22
- package/lib/Profile/LoginLink.js +0 -30
- package/lib/Profile/Profile.js +0 -104
- package/lib/Profile/UserProfile.d.ts +0 -12
- package/lib/Profile/UserProfile.js +0 -46
- package/lib/Profile/UserProfileMenu.js +0 -87
- package/lib/Profile/index.d.ts +0 -6
- package/lib/ReferenceDocs/DevOnboardingTryItSecurity.js +0 -178
- package/lib/ReferenceDocs/TryItSecurityApps.d.ts +0 -7
- package/lib/ReferenceDocs/TryItSecurityApps.js +0 -15
- package/lib/SamplesPanelControls/SamplesPanelControls.js +0 -75
- package/lib/SamplesPanelControls/index.d.ts +0 -1
- package/lib/SamplesPanelControls/index.js +0 -18
- package/lib/Search/Autocomplete.d.ts +0 -16
- package/lib/Search/Autocomplete.js +0 -122
- package/lib/Search/Parameters.d.ts +0 -7
- package/lib/Search/Parameters.js +0 -55
- package/lib/Search/Search.js +0 -65
- package/lib/Search/SearchItem.d.ts +0 -7
- package/lib/Search/SearchItem.js +0 -98
- package/lib/Search/SidebarSearch.d.ts +0 -4
- package/lib/Search/SidebarSearch.js +0 -20
- package/lib/Search/index.d.ts +0 -9
- package/lib/Search/index.js +0 -26
- package/lib/Sidebar/ApiCallItem.d.ts +0 -9
- package/lib/Sidebar/ApiCallItem.js +0 -34
- package/lib/Sidebar/ArrowBack.d.ts +0 -4
- package/lib/Sidebar/ArrowBack.js +0 -22
- package/lib/Sidebar/BackButton.js +0 -39
- package/lib/Sidebar/Drilldown.d.ts +0 -8
- package/lib/Sidebar/Drilldown.js +0 -43
- package/lib/Sidebar/DrilldownMenu.d.ts +0 -3
- package/lib/Sidebar/DrilldownMenu.js +0 -71
- package/lib/Sidebar/DrilldownMenuItem.d.ts +0 -3
- package/lib/Sidebar/ExternalIcon.d.ts +0 -4
- package/lib/Sidebar/ExternalIcon.js +0 -21
- package/lib/Sidebar/Menu.d.ts +0 -3
- package/lib/Sidebar/Menu.js +0 -17
- package/lib/Sidebar/MenuContainer.js +0 -17
- package/lib/Sidebar/MenuGroup.d.ts +0 -9
- package/lib/Sidebar/MenuGroup.js +0 -88
- package/lib/Sidebar/MenuItem.d.ts +0 -3
- package/lib/Sidebar/MenuItem.js +0 -23
- package/lib/Sidebar/MenuItemLabel.js +0 -46
- package/lib/Sidebar/MenuLink.d.ts +0 -4
- package/lib/Sidebar/MenuLink.js +0 -15
- package/lib/Sidebar/MenuLinkItem.d.ts +0 -3
- package/lib/Sidebar/MenuLinkItem.js +0 -15
- package/lib/Sidebar/Separator.d.ts +0 -3
- package/lib/Sidebar/Separator.js +0 -18
- package/lib/Sidebar/SeparatorItem.js +0 -29
- package/lib/Sidebar/SidebarLayout.js +0 -85
- package/lib/Sidebar/index.d.ts +0 -22
- package/lib/Sidebar/index.js +0 -39
- package/lib/Sidebar/types/DrilldownMenuProps.d.ts +0 -6
- package/lib/Sidebar/types/DrilldownMenuProps.js +0 -3
- package/lib/Sidebar/types/ItemState.d.ts +0 -8
- package/lib/Sidebar/types/ItemState.js +0 -3
- package/lib/Sidebar/types/MenuItemProps.d.ts +0 -5
- package/lib/Sidebar/types/MenuItemProps.js +0 -3
- package/lib/Sidebar/types/MenuStyle.d.ts +0 -3
- package/lib/Sidebar/types/MenuStyle.js +0 -8
- package/lib/Sidebar/types/NavItem.d.ts +0 -26
- package/lib/Sidebar/types/NavItem.js +0 -3
- package/lib/Sidebar/types/index.d.ts +0 -5
- package/lib/Sidebar/types/index.js +0 -22
- package/lib/SidebarActions/ChangeViewButton.d.ts +0 -8
- package/lib/SidebarActions/ChangeViewButton.js +0 -14
- package/lib/SidebarActions/CollapseSidebarButton.js +0 -13
- package/lib/SidebarActions/SidebarActions.js +0 -26
- package/lib/SidebarActions/ToggleRightPanelButton.js +0 -13
- package/lib/SidebarActions/index.d.ts +0 -1
- package/lib/SidebarActions/index.js +0 -7
- package/lib/SidebarLogo/index.d.ts +0 -1
- package/lib/SidebarLogo/index.js +0 -18
- package/lib/SourceCode/SourceCode.js +0 -60
- package/lib/SourceCode/index.d.ts +0 -1
- package/lib/SourceCode/index.js +0 -18
- package/lib/TableOfContent/TableOfContent.d.ts +0 -8
- package/lib/TableOfContent/TableOfContent.js +0 -109
- package/lib/TableOfContent/index.d.ts +0 -1
- package/lib/TableOfContent/index.js +0 -18
- package/lib/TableOfContent/utils.d.ts +0 -4
- package/lib/Tooltip/Tooltip.js +0 -173
- package/lib/Tooltip/index.d.ts +0 -1
- package/lib/Tooltip/index.js +0 -18
- package/lib/Typography/CompactTypography.d.ts +0 -7
- package/lib/Typography/CompactTypography.js +0 -14
- package/lib/Typography/H1.js +0 -17
- package/lib/Typography/H2.js +0 -17
- package/lib/Typography/H3.js +0 -17
- package/lib/Typography/index.d.ts +0 -7
- package/lib/Typography/index.js +0 -24
- package/lib/ui/Tiles/ThinTile.d.ts +0 -22
- package/lib/ui/Tiles/ThinTile.js +0 -124
- package/lib/ui/Tiles/WideTile.d.ts +0 -7
- package/lib/ui/Tiles/WideTile.js +0 -114
- package/lib/ui/Tiles/index.d.ts +0 -4
- package/lib/ui/Tiles/index.js +0 -21
- package/src/ApiOnboarding/AppCustomAttributes.tsx +0 -6
- package/src/Button/index.ts +0 -1
- package/src/Cards/Card.tsx +0 -49
- package/src/Catalog/Catalog.tsx +0 -198
- package/src/Catalog/CatalogCard.tsx +0 -95
- package/src/CodeBlock/index.ts +0 -1
- package/src/ColorModeSwitcher/index.ts +0 -1
- package/src/CopyButton/CopyButton.tsx +0 -32
- package/src/CopyButton/CopyButtonWrapper.tsx +0 -55
- package/src/CopyButton/index.ts +0 -2
- package/src/EditPageButton/index.ts +0 -1
- package/src/Feedback/Comment.tsx +0 -80
- package/src/Feedback/Feedback.tsx +0 -42
- package/src/Feedback/Rating.tsx +0 -107
- package/src/Feedback/Reasons.tsx +0 -81
- package/src/Feedback/ReportDialog.tsx +0 -52
- package/src/Feedback/Sentiment.tsx +0 -74
- package/src/Feedback/index.ts +0 -8
- package/src/Feedback/types.ts +0 -66
- package/src/Feedback/useReportDialog.ts +0 -34
- package/src/Footer/CustomFooter.tsx +0 -45
- package/src/Footer/Footer.tsx +0 -43
- package/src/Footer/FooterColumns.tsx +0 -53
- package/src/Footer/index.ts +0 -4
- package/src/JsonViewer/JsonViewer.tsx +0 -256
- package/src/JsonViewer/index.ts +0 -1
- package/src/Layout/RootLayout.tsx +0 -24
- package/src/Layout/index.ts +0 -2
- package/src/Markdown/CodeSample/CodeSample.tsx +0 -236
- package/src/Markdown/CodeSample/index.ts +0 -1
- package/src/Markdown/MarkdownLayout.tsx +0 -64
- package/src/Markdown/Tabs/Tabs.tsx +0 -58
- package/src/Markdown/Tabs/index.ts +0 -2
- package/src/Markdown/index.ts +0 -10
- package/src/Navbar/MobileNavbarItem.tsx +0 -114
- package/src/Navbar/MobileNavbarMenu.tsx +0 -122
- package/src/Navbar/Navbar.tsx +0 -100
- package/src/Navbar/NavbarItem.tsx +0 -102
- package/src/Navbar/NavbarMenu.tsx +0 -37
- package/src/Navbar/index.ts +0 -3
- package/src/NavbarLogo/index.ts +0 -1
- package/src/OperationBadge/index.ts +0 -1
- package/src/PageNavigation/NextButton.tsx +0 -40
- package/src/PageNavigation/PageNavigation.tsx +0 -31
- package/src/PageNavigation/PreviousButton.tsx +0 -40
- package/src/PageNavigation/index.ts +0 -3
- package/src/Pages/Forbidden.tsx +0 -42
- package/src/Pages/NotFound.tsx +0 -42
- package/src/Pages/index.ts +0 -1
- package/src/Panel/Panel.ts +0 -34
- package/src/Panel/PanelComponent.tsx +0 -79
- package/src/Panel/index.ts +0 -5
- package/src/Profile/UserProfile.tsx +0 -55
- package/src/Profile/index.ts +0 -6
- package/src/ReferenceDocs/DevOnboardingTryItSecurity.tsx +0 -180
- package/src/ReferenceDocs/TryItSecurityApps.tsx +0 -17
- package/src/SamplesPanelControls/SamplesPanelControls.ts +0 -73
- package/src/SamplesPanelControls/index.ts +0 -1
- package/src/Search/Autocomplete.tsx +0 -148
- package/src/Search/Parameters.tsx +0 -62
- package/src/Search/Search.tsx +0 -67
- package/src/Search/SearchItem.tsx +0 -90
- package/src/Search/SidebarSearch.tsx +0 -15
- package/src/Search/index.ts +0 -9
- package/src/Sidebar/ApiCallItem.tsx +0 -39
- package/src/Sidebar/ArrowBack.tsx +0 -28
- package/src/Sidebar/BackButton.tsx +0 -44
- package/src/Sidebar/Drilldown.tsx +0 -44
- package/src/Sidebar/DrilldownMenu.tsx +0 -58
- package/src/Sidebar/DrilldownMenuItem.tsx +0 -44
- package/src/Sidebar/ExternalIcon.tsx +0 -37
- package/src/Sidebar/Menu.tsx +0 -11
- package/src/Sidebar/MenuContainer.tsx +0 -15
- package/src/Sidebar/MenuGroup.tsx +0 -91
- package/src/Sidebar/MenuItem.tsx +0 -25
- package/src/Sidebar/MenuItemLabel.tsx +0 -41
- package/src/Sidebar/MenuLinkItem.tsx +0 -24
- package/src/Sidebar/Separator.tsx +0 -17
- package/src/Sidebar/SeparatorItem.tsx +0 -24
- package/src/Sidebar/SidebarLayout.tsx +0 -107
- package/src/Sidebar/index.ts +0 -22
- package/src/Sidebar/types/DrilldownMenuProps.ts +0 -7
- package/src/Sidebar/types/ItemState.ts +0 -9
- package/src/Sidebar/types/MenuItemProps.ts +0 -6
- package/src/Sidebar/types/MenuStyle.ts +0 -3
- package/src/Sidebar/types/NavItem.ts +0 -27
- package/src/Sidebar/types/index.ts +0 -5
- package/src/SidebarActions/ChangeViewButton.tsx +0 -20
- package/src/SidebarActions/CollapseSidebarButton.tsx +0 -21
- package/src/SidebarActions/SidebarActions.tsx +0 -64
- package/src/SidebarActions/ToggleRightPanelButton.tsx +0 -21
- package/src/SidebarActions/index.tsx +0 -1
- package/src/SidebarLogo/index.ts +0 -1
- package/src/SourceCode/SourceCode.tsx +0 -128
- package/src/SourceCode/index.ts +0 -1
- package/src/TableOfContent/TableOfContent.tsx +0 -113
- package/src/TableOfContent/index.ts +0 -1
- package/src/Tooltip/index.ts +0 -1
- package/src/Typography/CompactTypography.ts +0 -9
- package/src/Typography/index.ts +0 -7
- package/src/types/portal/src/shared/constants.d.ts +0 -46
- package/src/types/portal/src/shared/types/catalog.d.ts +0 -55
- package/src/types/portal/src/shared/types/feedback.d.ts +0 -8
- package/src/types/portal/src/shared/types/markdown.d.ts +0 -5
- package/src/types/portal/src/shared/types/nav.d.ts +0 -158
- package/src/ui/Tiles/ThinTile.tsx +0 -153
- package/src/ui/Tiles/WideTile.tsx +0 -138
- package/src/ui/Tiles/index.ts +0 -4
- /package/lib/{ApiOnboarding → components/ApiOnboarding}/AppCustomAttributes.d.ts +0 -0
- /package/lib/{Button → components/Button}/Button.d.ts +0 -0
- /package/lib/{Cards → components/Cards}/CardsBlock.d.ts +0 -0
- /package/lib/{Cards → components/Cards}/CardsBlock.js +0 -0
- /package/lib/{CodeBlock → components/CodeBlock}/CodeBlock.d.ts +0 -0
- /package/lib/{Markdown → components}/CodeSample/CodeSample.d.ts +0 -0
- /package/lib/{ColorModeSwitcher → components/ColorModeSwitcher}/ColorModeSwitcher.d.ts +0 -0
- /package/lib/{CopyButton → components/CopyButton}/CopyButton.d.ts +0 -0
- /package/lib/{EditPageButton → components/EditPageButton}/EditPageButton.d.ts +0 -0
- /package/lib/{Feedback → components/Feedback}/Thumbs.d.ts +0 -0
- /package/lib/{Feedback → components/Feedback}/Thumbs.js +0 -0
- /package/lib/{Feedback → components/Feedback}/types.js +0 -0
- /package/lib/{Feedback → components/Feedback}/useReportDialog.d.ts +0 -0
- /package/lib/{Feedback → components/Feedback}/useReportDialog.js +0 -0
- /package/lib/{Footer → components/Footer}/FooterCopyright.js +0 -0
- /package/lib/{JsonViewer → components/JsonViewer}/JsonViewer.d.ts +0 -0
- /package/lib/{LastUpdated → components/LastUpdated}/LastUpdated.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/Admonition.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/ContainerWrapper.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/ContainerWrapper.js +0 -0
- /package/lib/{Markdown → components/Markdown}/Details.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/Details.js +0 -0
- /package/lib/{Markdown → components/Markdown}/Heading.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/MarkdownWrapper.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/Mermaid.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/Mermaid.js +0 -0
- /package/lib/{Markdown → components/Markdown}/PageWrapper.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/PageWrapper.js +0 -0
- /package/lib/{Markdown → components/Markdown}/Sup.d.ts +0 -0
- /package/lib/{Markdown → components/Markdown}/Sup.js +0 -0
- /package/lib/{Sidebar → components/Menu}/MenuContainer.d.ts +0 -0
- /package/lib/{Sidebar → components/Menu}/MenuItemLabel.d.ts +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/ClearButton.d.ts +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/ClearButton.js +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/DevOnboardingTryItSecurity.d.ts +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/Dropdown.d.ts +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/Dropdown.js +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/index.d.ts +0 -0
- /package/lib/{ReferenceDocs → components/OpenAPIDocs}/index.js +0 -0
- /package/lib/{OperationBadge → components/OperationBadge}/OperationBadge.d.ts +0 -0
- /package/lib/{OperationBadge → components/OperationBadge}/OperationBadge.js +0 -0
- /package/lib/{Panel → components/Panel}/PanelBody.d.ts +0 -0
- /package/lib/{Panel → components/Panel}/PanelBody.js +0 -0
- /package/lib/{Panel → components/Panel}/PanelHeader.d.ts +0 -0
- /package/lib/{Panel → components/Panel}/PanelHeader.js +0 -0
- /package/lib/{Panel → components/Panel}/PanelHeaderTitle.d.ts +0 -0
- /package/lib/{Panel → components/Panel}/PanelHeaderTitle.js +0 -0
- /package/lib/{Profile → components/Profile}/LoginLink.d.ts +0 -0
- /package/lib/{Profile → components/Profile}/Profile.d.ts +0 -0
- /package/lib/{Profile → components/Profile}/UserProfileMenu.d.ts +0 -0
- /package/lib/{Profile → components/Profile}/index.js +0 -0
- /package/lib/{SamplesPanelControls → components/SamplesPanelControls}/SamplesPanelControls.d.ts +0 -0
- /package/lib/{Search → components/Search}/ClearIcon.d.ts +0 -0
- /package/lib/{Search → components/Search}/ClearIcon.js +0 -0
- /package/lib/{Search → components/Search}/Input.d.ts +0 -0
- /package/lib/{Search → components/Search}/Input.js +0 -0
- /package/lib/{Search → components/Search}/Popover.d.ts +0 -0
- /package/lib/{Search → components/Search}/Popover.js +0 -0
- /package/lib/{Search → components/Search}/Search.d.ts +0 -0
- /package/lib/{Search → components/Search}/SearchIcon.d.ts +0 -0
- /package/lib/{Search → components/Search}/SearchIcon.js +0 -0
- /package/lib/{Search → components/Search}/ShortcutKey.d.ts +0 -0
- /package/lib/{Search → components/Search}/ShortcutKey.js +0 -0
- /package/lib/{Search → components/Search}/utils.d.ts +0 -0
- /package/lib/{Search → components/Search}/utils.js +0 -0
- /package/lib/{Sidebar → components/Separator}/SeparatorItem.d.ts +0 -0
- /package/lib/{Sidebar → components/Separator}/SeparatorLine.d.ts +0 -0
- /package/lib/{Sidebar → components/Separator}/SeparatorLine.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/BackButton.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/DrilldownMenuItem.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/FooterWrapper.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/FooterWrapper.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/HeaderWrapper.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/HeaderWrapper.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/MobileSidebarButton.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/MobileSidebarButton.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/MobileSidebarIcon.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/MobileSidebarIcon.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/Sidebar.d.ts +0 -0
- /package/lib/{Sidebar → components/Sidebar}/Sidebar.js +0 -0
- /package/lib/{Sidebar → components/Sidebar}/SidebarLayout.d.ts +0 -0
- /package/lib/{SidebarActions → components/SidebarActions}/CollapseSidebarButton.d.ts +0 -0
- /package/lib/{SidebarActions → components/SidebarActions}/SidebarActions.d.ts +0 -0
- /package/lib/{SidebarActions → components/SidebarActions}/ToggleRightPanelButton.d.ts +0 -0
- /package/lib/{SidebarActions → components/SidebarActions}/styled.d.ts +0 -0
- /package/lib/{SidebarActions → components/SidebarActions}/styled.js +0 -0
- /package/lib/{SidebarLogo → components/SidebarLogo}/SidebarLogo.d.ts +0 -0
- /package/lib/{SidebarLogo → components/SidebarLogo}/SidebarLogo.js +0 -0
- /package/lib/{SourceCode → components/SourceCode}/SourceCode.d.ts +0 -0
- /package/lib/{TableOfContent → components/TableOfContent}/utils.js +0 -0
- /package/lib/{Markdown → components}/Tabs/Tab.d.ts +0 -0
- /package/lib/{Markdown → components}/Tabs/Tab.js +0 -0
- /package/lib/{Markdown → components}/Tabs/Tabs.d.ts +0 -0
- /package/lib/{Catalog → components/Tags}/Tags.d.ts +0 -0
- /package/lib/{ui → components}/Tiles/TileHeader.d.ts +0 -0
- /package/lib/{ui → components}/Tiles/TileHeader.js +0 -0
- /package/lib/{ui → components}/Tiles/TileText.d.ts +0 -0
- /package/lib/{ui → components}/Tiles/TileText.js +0 -0
- /package/lib/{Tooltip → components/Tooltip}/Tooltip.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/Emphasis.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/Emphasis.js +0 -0
- /package/lib/{Typography → components/Typography}/H1.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/H2.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/H3.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/SectionHeader.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/SectionHeader.js +0 -0
- /package/lib/{Typography → components/Typography}/Typography.d.ts +0 -0
- /package/lib/{Typography → components/Typography}/Typography.js +0 -0
- /package/lib/{Pages → layouts}/Forbidden.d.ts +0 -0
- /package/lib/{Pages → layouts}/NotFound.d.ts +0 -0
- /package/lib/{Layout → layouts}/PageLayout.d.ts +0 -0
- /package/lib/{Layout → layouts}/PageLayout.js +0 -0
- /package/src/{Button → components/Button}/Button.tsx +0 -0
- /package/src/{Cards → components/Cards}/CardsBlock.tsx +0 -0
- /package/src/{CodeBlock → components/CodeBlock}/CodeBlock.ts +0 -0
- /package/src/{ColorModeSwitcher → components/ColorModeSwitcher}/ColorModeSwitcher.tsx +0 -0
- /package/src/{EditPageButton → components/EditPageButton}/EditPageButton.tsx +0 -0
- /package/src/{Feedback → components/Feedback}/Thumbs.tsx +0 -0
- /package/src/{Catalog → components/Filter}/Filter.tsx +0 -0
- /package/src/{Footer → components/Footer}/CustomFooterNavItem.tsx +0 -0
- /package/src/{Footer → components/Footer}/FooterColumn.tsx +0 -0
- /package/src/{Footer → components/Footer}/FooterCopyright.tsx +0 -0
- /package/src/{LastUpdated → components/LastUpdated}/LastUpdated.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/Admonition.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/ContainerWrapper.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/Details.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/Heading.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/MarkdownWrapper.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/Mermaid.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/PageWrapper.tsx +0 -0
- /package/src/{Markdown → components/Markdown}/Sup.tsx +0 -0
- /package/src/{Sidebar → components/Menu}/MenuLink.tsx +0 -0
- /package/src/{Navbar → components/Navbar}/MobileNavbarDropdown.tsx +0 -0
- /package/src/{Navbar → components/Navbar}/MobileNavbarMenuButton.tsx +0 -0
- /package/src/{Navbar → components/Navbar}/NavbarDropdown.tsx +0 -0
- /package/src/{NavbarLogo → components/NavbarLogo}/NavbarLogo.tsx +0 -0
- /package/src/{ReferenceDocs → components/OpenAPIDocs}/ClearButton.tsx +0 -0
- /package/src/{ReferenceDocs → components/OpenAPIDocs}/Dropdown.tsx +0 -0
- /package/src/{ReferenceDocs → components/OpenAPIDocs}/index.ts +0 -0
- /package/src/{OperationBadge → components/OperationBadge}/OperationBadge.ts +0 -0
- /package/src/{Panel → components/Panel}/PanelBody.ts +0 -0
- /package/src/{Panel → components/Panel}/PanelHeader.ts +0 -0
- /package/src/{Panel → components/Panel}/PanelHeaderTitle.ts +0 -0
- /package/src/{Profile → components/Profile}/LoginLink.tsx +0 -0
- /package/src/{Profile → components/Profile}/Profile.tsx +0 -0
- /package/src/{Profile → components/Profile}/UserProfileMenu.tsx +0 -0
- /package/src/{Search → components/Search}/ClearIcon.tsx +0 -0
- /package/src/{Search → components/Search}/Input.tsx +0 -0
- /package/src/{Search → components/Search}/Popover.tsx +0 -0
- /package/src/{Search → components/Search}/SearchIcon.tsx +0 -0
- /package/src/{Search → components/Search}/ShortcutKey.tsx +0 -0
- /package/src/{Search → components/Search}/utils.tsx +0 -0
- /package/src/{Sidebar → components/Separator}/SeparatorLine.tsx +0 -0
- /package/src/{Sidebar → components/Sidebar}/FooterWrapper.tsx +0 -0
- /package/src/{Sidebar → components/Sidebar}/HeaderWrapper.tsx +0 -0
- /package/src/{Sidebar → components/Sidebar}/MobileSidebarButton.tsx +0 -0
- /package/src/{Sidebar → components/Sidebar}/MobileSidebarIcon.tsx +0 -0
- /package/src/{Sidebar → components/Sidebar}/Sidebar.tsx +0 -0
- /package/src/{SidebarActions → components/SidebarActions}/styled.tsx +0 -0
- /package/src/{SidebarLogo → components/SidebarLogo}/SidebarLogo.tsx +0 -0
- /package/src/{TableOfContent → components/TableOfContent}/utils.ts +0 -0
- /package/src/{Markdown → components}/Tabs/Tab.tsx +0 -0
- /package/src/{Catalog → components/Tags}/Tags.tsx +0 -0
- /package/src/{ui → components}/Tiles/TileHeader.ts +0 -0
- /package/src/{ui → components}/Tiles/TileText.tsx +0 -0
- /package/src/{Tooltip → components/Tooltip}/Tooltip.tsx +0 -0
- /package/src/{Typography → components/Typography}/Emphasis.ts +0 -0
- /package/src/{Typography → components/Typography}/H1.ts +0 -0
- /package/src/{Typography → components/Typography}/H2.ts +0 -0
- /package/src/{Typography → components/Typography}/H3.ts +0 -0
- /package/src/{Typography → components/Typography}/SectionHeader.ts +0 -0
- /package/src/{Typography → components/Typography}/Typography.ts +0 -0
- /package/src/{Layout → layouts}/PageLayout.tsx +0 -0
- /package/src/types/portal/{index.d.ts → index.ts} +0 -0
package/src/Search/Search.tsx
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { usePreloadHistory } from '@portal/usePreloadHistory';
|
|
5
|
-
import { useFuseSearch } from '@portal/search';
|
|
6
|
-
import { Autocomplete } from '@theme/Search/Autocomplete';
|
|
7
|
-
import { ClearIcon } from '@theme/Search/ClearIcon';
|
|
8
|
-
import { SearchIcon } from '@theme/Search/SearchIcon';
|
|
9
|
-
import { SearchItem } from '@theme/Search/SearchItem';
|
|
10
|
-
import { useThemeConfig } from '@theme/hooks';
|
|
11
|
-
|
|
12
|
-
interface OperationParameter {
|
|
13
|
-
name: string | string[];
|
|
14
|
-
description: string | string[];
|
|
15
|
-
place: string;
|
|
16
|
-
path?: string[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface SearchDocument {
|
|
20
|
-
id: string;
|
|
21
|
-
url: string;
|
|
22
|
-
title: string | string[];
|
|
23
|
-
text: string | string[];
|
|
24
|
-
path?: string[];
|
|
25
|
-
httpVerb?: string;
|
|
26
|
-
pathName?: string | string[];
|
|
27
|
-
parameters?: OperationParameter[];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function Search(): JSX.Element {
|
|
31
|
-
const history = usePreloadHistory();
|
|
32
|
-
const { query, setQuery, items } = useFuseSearch();
|
|
33
|
-
const themeSettings = useThemeConfig();
|
|
34
|
-
|
|
35
|
-
// TODO: ask somebody about typings
|
|
36
|
-
const navigate = (item: SearchDocument) => history.push(item.url);
|
|
37
|
-
|
|
38
|
-
const renderAutocomplete = () => (
|
|
39
|
-
<Autocomplete
|
|
40
|
-
items={items}
|
|
41
|
-
value={query}
|
|
42
|
-
change={setQuery}
|
|
43
|
-
select={navigate}
|
|
44
|
-
placeholder="Search the docs"
|
|
45
|
-
keyShortcuts={themeSettings?.search?.shortcuts ?? ['/']}
|
|
46
|
-
renderItem={(item) => <SearchItem key={item.id} item={item} />}
|
|
47
|
-
>
|
|
48
|
-
{(isOpen, reset) => (isOpen ? <ClearIcon onClick={reset} /> : <SearchIcon />)}
|
|
49
|
-
</Autocomplete>
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
return <Wrapper data-component-name="Search/Search">{renderAutocomplete()}</Wrapper>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const Wrapper = styled.div`
|
|
56
|
-
margin-left: auto;
|
|
57
|
-
|
|
58
|
-
display: none;
|
|
59
|
-
|
|
60
|
-
${({ theme }) => theme.mediaQueries?.small} {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
${({ theme }) => theme.mediaQueries?.medium} {
|
|
65
|
-
margin: 0 auto;
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { OperationBadge } from '@theme/OperationBadge';
|
|
5
|
-
import { Link } from '@portal/Link';
|
|
6
|
-
import { Parameters } from '@theme/Search/Parameters';
|
|
7
|
-
import { highlight } from '@theme/Search/utils';
|
|
8
|
-
import type { ActiveItem, SearchDocument } from '@portal/types';
|
|
9
|
-
|
|
10
|
-
interface SearchItemProps {
|
|
11
|
-
item: ActiveItem<SearchDocument>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function SearchItem({ item }: SearchItemProps): JSX.Element {
|
|
15
|
-
const ref = useRef<HTMLAnchorElement>();
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (item.active) {
|
|
19
|
-
ref.current?.focus();
|
|
20
|
-
}
|
|
21
|
-
}, [item.active]);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<SearchLink to={item.url} tabIndex={0} innerRef={ref} data-component-name="Search/SearchItem">
|
|
25
|
-
{item.httpVerb ? (
|
|
26
|
-
<Operation>
|
|
27
|
-
<OperationBadge type={item.httpVerb}>{item.httpVerb}</OperationBadge>
|
|
28
|
-
{item.pathName ? highlight(item.pathName) : null}
|
|
29
|
-
</Operation>
|
|
30
|
-
) : null}
|
|
31
|
-
<Title>{highlight(item.title)}</Title>
|
|
32
|
-
<Description>{highlight(item.text)}</Description>
|
|
33
|
-
|
|
34
|
-
{item.parameters?.length ? (
|
|
35
|
-
<Parameters parameters={item.parameters} />
|
|
36
|
-
) : (
|
|
37
|
-
<Path>{item.path?.join(' → ')}</Path>
|
|
38
|
-
)}
|
|
39
|
-
</SearchLink>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const Title = styled.div`
|
|
44
|
-
font-weight: var(--font-weight-bold);
|
|
45
|
-
color: var(--search-item-title-text-color);
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
text-overflow: ellipsis;
|
|
48
|
-
line-height: var(--line-height-base);
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
const SearchLink = styled(Link)`
|
|
52
|
-
display: block;
|
|
53
|
-
text-decoration: none;
|
|
54
|
-
padding: var(--search-item-padding);
|
|
55
|
-
transition: background-color 0.3s ease;
|
|
56
|
-
outline: none;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
color: var(--search-item-text-color);
|
|
59
|
-
background-color: var(--search-item-background-color);
|
|
60
|
-
|
|
61
|
-
&:hover,
|
|
62
|
-
&:focus {
|
|
63
|
-
color: var(--search-item-active-text-color);
|
|
64
|
-
background-color: var(--search-item-active-background-color);
|
|
65
|
-
${Title} {
|
|
66
|
-
color: var(--search-item-active-title-text-color);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
const Operation = styled.div`
|
|
72
|
-
font-weight: var(--font-weight-regular);
|
|
73
|
-
font-size: var(--font-size-small);
|
|
74
|
-
color: var(--search-item-title-text-color);
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
text-overflow: ellipsis;
|
|
77
|
-
`;
|
|
78
|
-
|
|
79
|
-
const Description = styled.div`
|
|
80
|
-
font-size: var(--font-size-base);
|
|
81
|
-
overflow: hidden;
|
|
82
|
-
text-overflow: ellipsis;
|
|
83
|
-
`;
|
|
84
|
-
|
|
85
|
-
const Path = styled.div`
|
|
86
|
-
font-size: var(--font-size-small);
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
text-overflow: ellipsis;
|
|
89
|
-
line-height: 22px;
|
|
90
|
-
`;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import { Search } from '@theme/Search/Search';
|
|
4
|
-
import { Popover } from '@theme/Search/Popover';
|
|
5
|
-
|
|
6
|
-
export const SidebarSearch = styled(Search).attrs(() => ({
|
|
7
|
-
'data-component-name': 'Search/SidebarSearch',
|
|
8
|
-
}))`
|
|
9
|
-
--search-input-text-color: var(--sidebar-item-active-color);
|
|
10
|
-
|
|
11
|
-
${Popover} {
|
|
12
|
-
right: unset;
|
|
13
|
-
top: 100%;
|
|
14
|
-
}
|
|
15
|
-
`;
|
package/src/Search/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from '@theme/Search/Autocomplete';
|
|
2
|
-
export * from '@theme/Search/ClearIcon';
|
|
3
|
-
export * from '@theme/Search/Input';
|
|
4
|
-
export * from '@theme/Search/Parameters';
|
|
5
|
-
export * from '@theme/Search/Popover';
|
|
6
|
-
export * from '@theme/Search/Search';
|
|
7
|
-
export * from '@theme/Search/SearchIcon';
|
|
8
|
-
export * from '@theme/Search/SearchItem';
|
|
9
|
-
export * from '@theme/Search/utils';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { OperationBadge } from '@theme/OperationBadge';
|
|
5
|
-
import { MenuLinkItem } from '@theme/Sidebar/MenuLinkItem';
|
|
6
|
-
import { SeparatorLine } from '@theme/Sidebar/SeparatorLine';
|
|
7
|
-
import { MenuItemLabel } from '@theme/Sidebar/MenuItemLabel';
|
|
8
|
-
import type { MenuItemProps } from '@theme/Sidebar/types/MenuItemProps';
|
|
9
|
-
|
|
10
|
-
export function ApiCallItem({ item }: MenuItemProps): JSX.Element {
|
|
11
|
-
return (
|
|
12
|
-
<Wrapper data-component-name="Sidebar/ApiCallItem">
|
|
13
|
-
<MenuLinkItem item={item}>
|
|
14
|
-
<MenuItemLabel active={item.active}>
|
|
15
|
-
<Badge type={item.httpVerb || ''}>
|
|
16
|
-
{item.httpVerb === 'hook' ? 'event' : item.httpVerb}
|
|
17
|
-
</Badge>
|
|
18
|
-
{item.label}
|
|
19
|
-
</MenuItemLabel>
|
|
20
|
-
</MenuLinkItem>
|
|
21
|
-
|
|
22
|
-
{item.separatorLine ? <SeparatorLine /> : null}
|
|
23
|
-
</Wrapper>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const Wrapper = styled.div``;
|
|
28
|
-
|
|
29
|
-
export const Badge = styled(OperationBadge)`
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
margin-top: 0;
|
|
32
|
-
width: 36px;
|
|
33
|
-
height: 14px;
|
|
34
|
-
font-size: var(--sidebar-item-badge-http-font-size);
|
|
35
|
-
font-family: var(--sidebar-item-badge-http-font-family);
|
|
36
|
-
font-weight: var(--sidebar-item-badge-http-font-weight);
|
|
37
|
-
border-radius: var(--sidebar-item-badge-http-border-radius);
|
|
38
|
-
color: var(--sidebar-item-badge-http-text-color);
|
|
39
|
-
`;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const Arrow = ({ className }: { className?: string }): JSX.Element => (
|
|
5
|
-
<span data-component-name="Sidebar/ArrowBack">
|
|
6
|
-
<svg
|
|
7
|
-
fill="none"
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
viewBox="0 0 12 10"
|
|
10
|
-
width="10px"
|
|
11
|
-
height="10px"
|
|
12
|
-
className={className}
|
|
13
|
-
>
|
|
14
|
-
<path d="M2.414 5l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L2.414 5z" />
|
|
15
|
-
<path d="M2 5a1 1 0 011-1h8a1 1 0 110 2H3a1 1 0 01-1-1z" />
|
|
16
|
-
</svg>
|
|
17
|
-
</span>
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
export const ArrowBack = styled(Arrow)`
|
|
21
|
-
fill: var(--sidebar-back-button-icon-color);
|
|
22
|
-
margin-right: calc(var(--sidebar-spacing-unit));
|
|
23
|
-
|
|
24
|
-
background-image: var(--sidebar-back-button-icon);
|
|
25
|
-
background-repeat: no-repeat;
|
|
26
|
-
background-position: center;
|
|
27
|
-
background-size: contain;
|
|
28
|
-
`;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { ArrowBack } from '@theme/Sidebar/ArrowBack';
|
|
5
|
-
|
|
6
|
-
interface BackButtonProps {
|
|
7
|
-
back: () => void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function BackButton({
|
|
11
|
-
children,
|
|
12
|
-
back,
|
|
13
|
-
}: React.PropsWithChildren<BackButtonProps>): JSX.Element {
|
|
14
|
-
return (
|
|
15
|
-
<Button onClick={back} data-component-name="Sidebar/BackButton">
|
|
16
|
-
<ArrowBack />
|
|
17
|
-
{children}
|
|
18
|
-
</Button>
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const Button = styled.button`
|
|
23
|
-
width: 100%;
|
|
24
|
-
background-color: var(--sidebar-back-button-background-color);
|
|
25
|
-
padding: 0;
|
|
26
|
-
border: 0;
|
|
27
|
-
outline: 0;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
color: var(--sidebar-back-button-text-color);
|
|
32
|
-
font-size: var(--sidebar-back-button-font-size);
|
|
33
|
-
font-family: var(--sidebar-back-button-font-family);
|
|
34
|
-
text-transform: var(--sidebar-back-button-transform);
|
|
35
|
-
|
|
36
|
-
transition: color 0.25s ease;
|
|
37
|
-
text-align: left;
|
|
38
|
-
margin: var(--sidebar-back-button-margin);
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
color: var(--sidebar-back-button-hover-text-color);
|
|
42
|
-
background: var(--sidebar-back-button-hover-background-color);
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { MenuItemLabel } from '@theme/Sidebar/MenuItemLabel';
|
|
5
|
-
import { SeparatorLine } from '@theme/Sidebar/SeparatorLine';
|
|
6
|
-
import { DrilldownMenuItem } from '@theme/Sidebar/DrilldownMenuItem';
|
|
7
|
-
import { DrilldownMenu } from '@theme/Sidebar/DrilldownMenu';
|
|
8
|
-
import type { DrilldownMenuProps } from '@theme/Sidebar/types/DrilldownMenuProps';
|
|
9
|
-
|
|
10
|
-
interface DrilldownProps extends DrilldownMenuProps {
|
|
11
|
-
isExpanded: boolean;
|
|
12
|
-
expand: () => void;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function Drilldown({
|
|
16
|
-
isExpanded,
|
|
17
|
-
item,
|
|
18
|
-
expand,
|
|
19
|
-
...props
|
|
20
|
-
}: React.PropsWithChildren<DrilldownProps>): JSX.Element {
|
|
21
|
-
return (
|
|
22
|
-
<Wrapper data-component-name="Sidebar/Drilldown">
|
|
23
|
-
<DrilldownLabel onClick={expand}>
|
|
24
|
-
<DrilldownMenuItem item={item} />
|
|
25
|
-
</DrilldownLabel>
|
|
26
|
-
|
|
27
|
-
{isExpanded ? <DrilldownMenu item={item} {...props} /> : null}
|
|
28
|
-
|
|
29
|
-
{item.separatorLine ? <SeparatorLine /> : null}
|
|
30
|
-
</Wrapper>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const Wrapper = styled.div``;
|
|
35
|
-
|
|
36
|
-
const DrilldownLabel = styled(MenuItemLabel)`
|
|
37
|
-
padding: var(--sidebar-item-nested-offset) var(--sidebar-item-padding-horizontal);
|
|
38
|
-
font-weight: var(--font-weight-bold);
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
color: initial;
|
|
42
|
-
background-color: initial;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled, { keyframes } from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { BackButton } from '@theme/Sidebar/BackButton';
|
|
5
|
-
import { DrilldownMenuItem } from '@theme/Sidebar/DrilldownMenuItem';
|
|
6
|
-
import type { DrilldownMenuProps } from '@theme/Sidebar/types/DrilldownMenuProps';
|
|
7
|
-
|
|
8
|
-
export function DrilldownMenu({
|
|
9
|
-
item,
|
|
10
|
-
back,
|
|
11
|
-
prevActiveItem,
|
|
12
|
-
children,
|
|
13
|
-
}: React.PropsWithChildren<DrilldownMenuProps>): JSX.Element {
|
|
14
|
-
return (
|
|
15
|
-
<MenuContainer data-component-name="Sidebar/DrilldownMenu">
|
|
16
|
-
<MenuContent>
|
|
17
|
-
<MenuWrapper>
|
|
18
|
-
<BackButton back={back}>{prevActiveItem?.label || 'Back'}</BackButton>
|
|
19
|
-
<DrilldownMenuItem item={item} />
|
|
20
|
-
</MenuWrapper>
|
|
21
|
-
|
|
22
|
-
{children}
|
|
23
|
-
</MenuContent>
|
|
24
|
-
</MenuContainer>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const MenuContainer = styled.div`
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
width: 100%;
|
|
33
|
-
z-index: 100;
|
|
34
|
-
background-color: var(--sidebar-item-drilldown-background-color);
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
const slideInAnimation = keyframes`
|
|
38
|
-
0% {
|
|
39
|
-
transform: translateX(100%)
|
|
40
|
-
}
|
|
41
|
-
100% {
|
|
42
|
-
transform: translateX(0%)
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
const MenuContent = styled.div`
|
|
47
|
-
animation-name: ${slideInAnimation};
|
|
48
|
-
animation-fill-mode: forwards;
|
|
49
|
-
animation-duration: 0.3s;
|
|
50
|
-
animation-timing-function: ease;
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
const MenuWrapper = styled.div`
|
|
55
|
-
padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
56
|
-
margin-bottom: calc(var(--sidebar-spacing-unit) * 3);
|
|
57
|
-
word-break: break-word;
|
|
58
|
-
`;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import type { MenuItemProps } from '@theme/Sidebar/types/MenuItemProps';
|
|
5
|
-
|
|
6
|
-
export function DrilldownMenuItem({ item }: MenuItemProps): JSX.Element {
|
|
7
|
-
return (
|
|
8
|
-
<Container data-component-name="Sidebar/DrilldownMenuItem">
|
|
9
|
-
{item.icon ? <Icon src={item.icon} /> : null}
|
|
10
|
-
<div>
|
|
11
|
-
{item.label}
|
|
12
|
-
{item.sublabel ? <SubLabel>{item.sublabel}</SubLabel> : null}
|
|
13
|
-
</div>
|
|
14
|
-
</Container>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const Container = styled.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
color: var(--sidebar-item-drilldown-text-color);
|
|
22
|
-
font-weight: var(--font-weight-bold);
|
|
23
|
-
font-size: var(--sidebar-item-drilldown-font-size);
|
|
24
|
-
font-family: var(--sidebar-item-drilldown-font-family);
|
|
25
|
-
text-transform: var(--sidebar-text-drilldown-transform);
|
|
26
|
-
background: var(--sidebar-item-drilldown-background-color);
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
const Icon = styled.img`
|
|
30
|
-
width: var(--sidebar-item-icon-size);
|
|
31
|
-
height: var(--sidebar-item-icon-size);
|
|
32
|
-
margin-right: var(--sidebar-spacing-unit);
|
|
33
|
-
border-radius: var(--sidebar-item-icon-border-radius);
|
|
34
|
-
flex-shrink: 0;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
const SubLabel = styled.div`
|
|
39
|
-
margin-top: 2px;
|
|
40
|
-
color: var(--sidebar-item-sublabel-text-color);
|
|
41
|
-
font-weight: var(-sidebar-item-sublabel-font-weight);
|
|
42
|
-
font-size: var(--sidebar-item-sublabel-font-size);
|
|
43
|
-
font-family: var(--sidebar-item-sublabel-font-family);
|
|
44
|
-
`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const Icon = ({ className }: { className?: string }): JSX.Element => (
|
|
5
|
-
<span data-component-name="Sidebar/ExternalIcon">
|
|
6
|
-
<svg
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
version="1.1"
|
|
9
|
-
x="0px"
|
|
10
|
-
y="0px"
|
|
11
|
-
viewBox="0 0 100 125"
|
|
12
|
-
enableBackground="new 0 0 100 100"
|
|
13
|
-
className={className}
|
|
14
|
-
>
|
|
15
|
-
<path d="M-408.167-318.5" />
|
|
16
|
-
<line
|
|
17
|
-
fill="none"
|
|
18
|
-
stroke="#ffffff"
|
|
19
|
-
strokeWidth="0.25"
|
|
20
|
-
strokeMiterlimit="10"
|
|
21
|
-
x1="57.5"
|
|
22
|
-
y1="11.75"
|
|
23
|
-
x2="57.5"
|
|
24
|
-
y2="17.5"
|
|
25
|
-
/>
|
|
26
|
-
<path d="M98.57,4.784c-0.024-0.113-0.047-0.223-0.074-0.334c-0.035-0.117-0.075-0.231-0.117-0.346 c-0.023-0.062-0.037-0.125-0.064-0.187c-0.016-0.032-0.03-0.06-0.049-0.092c-0.048-0.119-0.107-0.227-0.17-0.336 c-0.05-0.089-0.095-0.179-0.152-0.265c-0.062-0.1-0.139-0.195-0.209-0.292C97.67,2.85,97.611,2.77,97.545,2.69 c-0.081-0.092-0.172-0.178-0.258-0.262c-0.07-0.068-0.139-0.139-0.212-0.202c-0.093-0.083-0.196-0.158-0.3-0.232 c-0.08-0.058-0.152-0.114-0.236-0.163c-0.104-0.069-0.219-0.128-0.329-0.186c-0.091-0.046-0.175-0.093-0.262-0.132 c-0.044-0.019-0.081-0.043-0.121-0.061c-0.074-0.03-0.154-0.046-0.234-0.072c-0.095-0.033-0.19-0.065-0.288-0.092 c-0.123-0.034-0.246-0.059-0.369-0.083c-0.096-0.019-0.188-0.036-0.289-0.046c-0.131-0.018-0.263-0.022-0.393-0.028 c-0.064-0.002-0.12-0.012-0.186-0.012L63.77,1.305c-2.535,0.017-4.566,2.078-4.554,4.605c0.019,2.525,2.084,4.563,4.604,4.546 l19.258-0.121l-29.79,30.162c-1.112,1.126-1.526,2.678-1.233,4.118c0.174,0.863,0.596,1.691,1.272,2.357 c0.897,0.888,2.073,1.325,3.245,1.32c1.17-0.007,2.337-0.459,3.227-1.361l0.002-0.001l29.787-30.158l0.121,19.255 c0.014,2.523,2.07,4.564,4.602,4.545c1.268-0.005,2.408-0.526,3.233-1.357c0.817-0.834,1.325-1.98,1.317-3.242L98.675,5.665 c0-0.063-0.016-0.124-0.016-0.189c-0.009-0.123-0.015-0.25-0.032-0.375C98.616,4.992,98.592,4.89,98.57,4.784z" />
|
|
27
|
-
<path d="M6.542,83.279c0,5.717,4.635,10.354,10.354,10.354l55.616,0.065c5.719,0,10.354-4.636,10.354-10.354l-0.091-40.782h6.135 v40.849c0,9.014-7.307,16.319-16.319,16.319l-56.36-0.066c-8.597,0-15.564-6.969-15.564-15.562L0.585,27.821 c0-9.014,7.306-16.32,16.32-16.32l41.138-0.084v6.142L16.98,17.535c-5.718,0-10.354,4.635-10.354,10.354L6.542,83.279z" />
|
|
28
|
-
</svg>
|
|
29
|
-
</span>
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
export const ExternalIcon = styled(Icon)`
|
|
33
|
-
width: 10px;
|
|
34
|
-
height: 10px;
|
|
35
|
-
margin-left: 5px;
|
|
36
|
-
fill: var(--sidebar-group-item-chevron-color);
|
|
37
|
-
`;
|
package/src/Sidebar/Menu.tsx
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
interface MenuContainerProps {
|
|
4
|
-
growContent?: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const MenuContainer = styled.div.attrs<MenuContainerProps>(({ growContent }) => ({
|
|
8
|
-
'data-component-name': 'Sidebar/MenuContainer',
|
|
9
|
-
growContent: growContent === undefined ? true : growContent,
|
|
10
|
-
}))<MenuContainerProps>`
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow-y: auto;
|
|
13
|
-
flex-grow: ${({ growContent }) => (growContent ? 1 : 0)};
|
|
14
|
-
padding-top: var(--sidebar-offset-top);
|
|
15
|
-
`;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { ArrowIcon } from '@theme/icons/ArrowIcon/ArrowIcon';
|
|
5
|
-
import { MenuLinkItem } from '@theme/Sidebar/MenuLinkItem';
|
|
6
|
-
import { MenuItemLabel } from '@theme/Sidebar/MenuItemLabel';
|
|
7
|
-
import { SeparatorLine } from '@theme/Sidebar/SeparatorLine';
|
|
8
|
-
import type { ItemState } from '@theme/Sidebar/types/ItemState';
|
|
9
|
-
|
|
10
|
-
interface MenuGroupProps {
|
|
11
|
-
item: ItemState;
|
|
12
|
-
isExpanded: boolean;
|
|
13
|
-
toggleExpanded: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function MenuGroup({
|
|
17
|
-
item,
|
|
18
|
-
isExpanded,
|
|
19
|
-
toggleExpanded,
|
|
20
|
-
children,
|
|
21
|
-
}: React.PropsWithChildren<MenuGroupProps>): JSX.Element {
|
|
22
|
-
const [showChildren, setShowChildren] = useState<boolean>(isExpanded);
|
|
23
|
-
const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
timer.current && clearTimeout(timer.current);
|
|
26
|
-
if (isExpanded) {
|
|
27
|
-
setShowChildren(true);
|
|
28
|
-
} else {
|
|
29
|
-
timer.current = setTimeout(() => {
|
|
30
|
-
setShowChildren(false);
|
|
31
|
-
}, 800);
|
|
32
|
-
}
|
|
33
|
-
return () => {
|
|
34
|
-
timer.current && clearTimeout(timer.current);
|
|
35
|
-
};
|
|
36
|
-
}, [isExpanded]);
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<Wrapper data-component-name="Sidebar/MenuGroup">
|
|
40
|
-
<MenuLinkItem item={item}>
|
|
41
|
-
<MenuGroupLabel
|
|
42
|
-
onClick={toggleExpanded}
|
|
43
|
-
isAlwaysExpanded={item.expanded === 'always'}
|
|
44
|
-
active={item.active}
|
|
45
|
-
>
|
|
46
|
-
<MenuGroupArrow
|
|
47
|
-
visibility={item.items.length ? 'visible' : 'hidden'}
|
|
48
|
-
direction={isExpanded ? 'down' : 'right'}
|
|
49
|
-
/>
|
|
50
|
-
{item.label}
|
|
51
|
-
</MenuGroupLabel>
|
|
52
|
-
</MenuLinkItem>
|
|
53
|
-
|
|
54
|
-
<MenuWrapper isExpanded={isExpanded}>{showChildren ? children : null}</MenuWrapper>
|
|
55
|
-
|
|
56
|
-
{item.separatorLine ? <SeparatorLine /> : null}
|
|
57
|
-
</Wrapper>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const Wrapper = styled.div``;
|
|
62
|
-
|
|
63
|
-
const MenuWrapper = styled.div<{ isExpanded?: boolean }>`
|
|
64
|
-
padding-left: var(--sidebar-item-nested-offset);
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
${(props) =>
|
|
67
|
-
props.isExpanded
|
|
68
|
-
? `max-height: 99999px;
|
|
69
|
-
transition: max-height .8s cubic-bezier(0.5, 0, 1, 0) 0s;`
|
|
70
|
-
: `max-height: 0px;
|
|
71
|
-
transition: max-height .8s cubic-bezier(0, 1, 0, 1) -.1s;`};
|
|
72
|
-
`;
|
|
73
|
-
|
|
74
|
-
const MenuGroupLabel = styled(MenuItemLabel)<{ isAlwaysExpanded?: boolean }>`
|
|
75
|
-
padding-left: var(--sidebar-item-padding-horizontal);
|
|
76
|
-
cursor: ${(props) => (props.isAlwaysExpanded ? 'default' : 'pointer')};
|
|
77
|
-
font-family: var(--sidebar-item-group-font-family);
|
|
78
|
-
font-size: var(--sidebar-item-group-font-size);
|
|
79
|
-
text-transform: var(--sidebar-text-group-transform);
|
|
80
|
-
color: var(--sidebar-item-group-text-color);
|
|
81
|
-
background: var(--sidebar-item-group-background-color);
|
|
82
|
-
${(props) =>
|
|
83
|
-
props.active
|
|
84
|
-
? `color: var(--sidebar-item-group-active-text-color);
|
|
85
|
-
background-color: var(--sidebar-item-group-active-background-color);`
|
|
86
|
-
: null};
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
const MenuGroupArrow = styled(ArrowIcon)`
|
|
90
|
-
margin-right: calc(var(--sidebar-spacing-unit) / 2);
|
|
91
|
-
`;
|
package/src/Sidebar/MenuItem.tsx
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
import { MenuLinkItem } from '@theme/Sidebar/MenuLinkItem';
|
|
5
|
-
import { ExternalIcon } from '@theme/Sidebar/ExternalIcon';
|
|
6
|
-
import { MenuItemLabel } from '@theme/Sidebar/MenuItemLabel';
|
|
7
|
-
import { SeparatorLine } from '@theme/Sidebar/SeparatorLine';
|
|
8
|
-
import type { MenuItemProps } from '@theme/Sidebar/types/MenuItemProps';
|
|
9
|
-
|
|
10
|
-
export function MenuItem({ item }: MenuItemProps): JSX.Element {
|
|
11
|
-
return (
|
|
12
|
-
<Wrapper data-component-name="Sidebar/MenuItem">
|
|
13
|
-
<MenuLinkItem item={item}>
|
|
14
|
-
<MenuItemLabel active={item.active}>
|
|
15
|
-
{item.label}
|
|
16
|
-
{item.external ? <ExternalIcon /> : null}
|
|
17
|
-
</MenuItemLabel>
|
|
18
|
-
</MenuLinkItem>
|
|
19
|
-
|
|
20
|
-
{item.separatorLine ? <SeparatorLine /> : null}
|
|
21
|
-
</Wrapper>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const Wrapper = styled.div``;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const MenuItemLabel = styled.li.attrs(() => ({
|
|
4
|
-
'data-component-name': 'Sidebar/MenuItemLabel',
|
|
5
|
-
}))<{ active?: boolean }>`
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
transition: background-color 0.3s, color 0.3s;
|
|
10
|
-
word-break: break-word;
|
|
11
|
-
margin-bottom: 1px;
|
|
12
|
-
|
|
13
|
-
background-color: var(--sidebar-item-background-color);
|
|
14
|
-
font-family: var(--sidebar-item-font-family);
|
|
15
|
-
font-size: var(--sidebar-item-font-size);
|
|
16
|
-
font-weight: var(--font-weight-regular);
|
|
17
|
-
margin-left: var(--sidebar-offset-left);
|
|
18
|
-
padding: var(--sidebar-item-padding-vertical) var(--sidebar-item-padding-horizontal);
|
|
19
|
-
padding-left: calc(
|
|
20
|
-
var(--sidebar-item-padding-horizontal) + var(--sidebar-group-item-chevron-size) +
|
|
21
|
-
var(--sidebar-spacing-unit) * 0.5
|
|
22
|
-
);
|
|
23
|
-
border-radius: var(--sidebar-item-border-radius);
|
|
24
|
-
|
|
25
|
-
${(props) =>
|
|
26
|
-
props.active
|
|
27
|
-
? `
|
|
28
|
-
color: var(--sidebar-item-active-color);
|
|
29
|
-
background-color: var(--sidebar-item-active-background-color);
|
|
30
|
-
`
|
|
31
|
-
: null};
|
|
32
|
-
|
|
33
|
-
:hover {
|
|
34
|
-
color: var(--sidebar-item-hover-color);
|
|
35
|
-
background-color: var(--sidebar-item-hover-background-color);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:empty {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
`;
|