@redocly/theme 0.15.0 → 0.16.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/I18n/LanguagePicker.js +2 -1
- package/lib/components/Breadcrumbs/Breadcrumb.js +0 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +6 -0
- package/lib/components/Cards/Card.d.ts +1 -0
- package/lib/components/Cards/Card.js +1 -1
- package/lib/components/Cards/CardsBlock.d.ts +1 -3
- package/lib/components/Cards/CardsBlock.js +2 -1
- package/lib/components/Catalog/Catalog.js +1 -1
- package/lib/components/CodeBlock/CodeBlock.d.ts +1 -3
- package/lib/components/CodeBlock/CodeBlock.js +2 -1
- package/lib/components/CodeSample/CodeSample.d.ts +2 -1
- package/lib/components/CodeSample/CodeSample.js +3 -2
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +5 -1
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +3 -2
- package/lib/components/Feedback/Comment.d.ts +1 -1
- package/lib/components/Feedback/Comment.js +3 -3
- package/lib/components/Feedback/Rating.d.ts +1 -1
- package/lib/components/Feedback/Rating.js +2 -2
- package/lib/components/Feedback/Reasons.d.ts +1 -1
- package/lib/components/Feedback/Reasons.js +2 -2
- package/lib/components/Feedback/ReportDialog.js +1 -1
- package/lib/components/Feedback/Sentiment.d.ts +1 -1
- package/lib/components/Feedback/Sentiment.js +2 -2
- package/lib/components/Feedback/types.d.ts +5 -0
- package/lib/components/Footer/CustomFooter.d.ts +2 -1
- package/lib/components/Footer/CustomFooter.js +2 -2
- package/lib/components/Footer/CustomFooterNavItem.d.ts +2 -1
- package/lib/components/Footer/CustomFooterNavItem.js +2 -2
- package/lib/components/Footer/Footer.d.ts +2 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/FooterColumn.d.ts +2 -1
- package/lib/components/Footer/FooterColumn.js +2 -2
- package/lib/components/Footer/FooterColumns.d.ts +2 -1
- package/lib/components/Footer/FooterColumns.js +2 -2
- package/lib/components/Footer/FooterCopyright.d.ts +2 -1
- package/lib/components/Footer/FooterCopyright.js +2 -2
- package/lib/components/JsonViewer/JsonViewer.d.ts +1 -3
- package/lib/components/LastUpdated/LastUpdated.d.ts +1 -0
- package/lib/components/LastUpdated/LastUpdated.js +1 -1
- package/lib/components/Markdown/ContainerWrapper.d.ts +1 -3
- package/lib/components/Markdown/ContainerWrapper.js +5 -4
- package/lib/components/Markdown/Heading.d.ts +2 -1
- package/lib/components/Markdown/Heading.js +2 -2
- package/lib/components/Markdown/MarkdownLayout.d.ts +2 -1
- package/lib/components/Markdown/MarkdownLayout.js +2 -2
- package/lib/components/Markdown/MarkdownWrapper.d.ts +1 -3
- package/lib/components/Markdown/MarkdownWrapper.js +11 -5
- package/lib/components/Markdown/Mermaid.d.ts +2 -1
- package/lib/components/Markdown/Mermaid.js +3 -2
- package/lib/components/Markdown/PageWrapper.d.ts +1 -3
- package/lib/components/Markdown/PageWrapper.js +2 -1
- package/lib/components/Markdown/Sup.d.ts +3 -1
- package/lib/components/Markdown/Sup.js +2 -2
- package/lib/components/Menu/Menu.d.ts +3 -1
- package/lib/components/Menu/Menu.js +6 -4
- package/lib/components/Menu/MenuContainer.d.ts +1 -0
- package/lib/components/Menu/MenuContainer.js +2 -1
- package/lib/components/Menu/MenuGroup.d.ts +2 -1
- package/lib/components/Menu/MenuGroup.js +3 -3
- package/lib/components/Menu/MenuItem.d.ts +1 -1
- package/lib/components/Menu/MenuItem.js +19 -3
- package/lib/components/Menu/MenuItemLabel.d.ts +1 -3
- package/lib/components/Menu/MenuItemLabel.js +18 -9
- package/lib/components/Menu/MenuItemSwitch.js +4 -2
- package/lib/components/Menu/MenuLink.d.ts +1 -3
- package/lib/components/Menu/MenuLink.js +2 -1
- package/lib/components/Menu/MenuLinkItem.d.ts +1 -1
- package/lib/components/Menu/MenuLinkItem.js +2 -2
- package/lib/components/Menu/MobileMenu.d.ts +11 -0
- package/lib/components/Menu/MobileMenu.js +179 -0
- package/lib/components/Menu/MobileMenuGroup.d.ts +9 -0
- package/lib/components/Menu/MobileMenuGroup.js +53 -0
- package/lib/components/Menu/index.d.ts +1 -0
- package/lib/components/Menu/index.js +1 -0
- package/lib/components/Navbar/BurgerButton.d.ts +5 -0
- package/lib/components/Navbar/BurgerButton.js +29 -0
- package/lib/components/Navbar/MobileUserProfile.d.ts +2 -0
- package/lib/components/Navbar/MobileUserProfile.js +78 -0
- package/lib/components/Navbar/Navbar.d.ts +1 -0
- package/lib/components/Navbar/Navbar.js +29 -9
- package/lib/components/Navbar/NavbarDropdown.d.ts +2 -1
- package/lib/components/Navbar/NavbarDropdown.js +2 -2
- package/lib/components/Navbar/NavbarMenu.d.ts +2 -1
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +2 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +2 -2
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.d.ts +1 -1
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +1 -1
- package/lib/components/PageNavigation/NextButton.d.ts +2 -1
- package/lib/components/PageNavigation/NextButton.js +2 -2
- package/lib/components/PageNavigation/PageNavigation.d.ts +2 -1
- package/lib/components/PageNavigation/PageNavigation.js +2 -2
- package/lib/components/PageNavigation/PreviousButton.d.ts +2 -1
- package/lib/components/PageNavigation/PreviousButton.js +2 -2
- package/lib/components/Panel/PanelBody.d.ts +1 -3
- package/lib/components/Panel/PanelBody.js +2 -1
- package/lib/components/Panel/PanelHeader.d.ts +1 -3
- package/lib/components/Panel/PanelHeader.js +2 -1
- package/lib/components/Panel/PanelHeaderTitle.d.ts +1 -3
- package/lib/components/Panel/PanelHeaderTitle.js +2 -1
- package/lib/components/Profile/Profile.d.ts +6 -0
- package/lib/components/Profile/Profile.js +7 -7
- package/lib/components/Profile/types.d.ts +1 -0
- package/lib/components/SamplesPanelControls/SamplesPanelControls.d.ts +2 -6
- package/lib/components/SamplesPanelControls/SamplesPanelControls.js +2 -1
- package/lib/components/Search/CancelSearch.d.ts +2 -1
- package/lib/components/Search/CancelSearch.js +2 -2
- package/lib/components/Search/ClearIcon.d.ts +1 -3
- package/lib/components/Search/ClearIcon.js +2 -1
- package/lib/components/Search/ClockBackwardsIcon.d.ts +1 -4
- package/lib/components/Search/Input.d.ts +1 -3
- package/lib/components/Search/Input.js +2 -1
- package/lib/components/Search/InputWrapper.d.ts +2 -1
- package/lib/components/Search/InputWrapper.js +2 -2
- package/lib/components/Search/MobileSearchTrigger.d.ts +2 -1
- package/lib/components/Search/MobileSearchTrigger.js +6 -5
- package/lib/components/Search/Popover.d.ts +1 -3
- package/lib/components/Search/Popover.js +3 -2
- package/lib/components/Search/RecentSearches.d.ts +2 -1
- package/lib/components/Search/RecentSearches.js +3 -3
- package/lib/components/Search/Search.d.ts +3 -1
- package/lib/components/Search/Search.js +2 -2
- package/lib/components/Search/SearchDialog.d.ts +2 -1
- package/lib/components/Search/SearchDialog.js +4 -3
- package/lib/components/Search/SearchIcon.d.ts +1 -3
- package/lib/components/Search/SearchIcon.js +2 -1
- package/lib/components/Search/SearchItem.d.ts +2 -1
- package/lib/components/Search/SearchItem.js +3 -3
- package/lib/components/Search/SearchTrigger.d.ts +2 -1
- package/lib/components/Search/SearchTrigger.js +2 -2
- package/lib/components/Search/Shortcut.d.ts +2 -1
- package/lib/components/Search/Shortcut.js +2 -2
- package/lib/components/Search/ShortcutKey.d.ts +1 -0
- package/lib/components/Search/ShortcutKey.js +1 -1
- package/lib/components/Search/SidebarSearch.d.ts +1 -3
- package/lib/components/Search/SidebarSearch.js +2 -1
- package/lib/components/Search/SuggestedPages.d.ts +3 -1
- package/lib/components/Search/SuggestedPages.js +2 -2
- package/lib/components/Separator/Separator.d.ts +1 -1
- package/lib/components/Separator/Separator.js +2 -2
- package/lib/components/Separator/SeparatorItem.d.ts +1 -5
- package/lib/components/Separator/SeparatorItem.js +7 -2
- package/lib/components/Separator/SeparatorLine.d.ts +1 -3
- package/lib/components/Separator/SeparatorLine.js +2 -1
- package/lib/components/Sidebar/ApiCallItem.d.ts +1 -1
- package/lib/components/Sidebar/ApiCallItem.js +10 -3
- package/lib/components/Sidebar/BackButton.d.ts +2 -1
- package/lib/components/Sidebar/BackButton.js +2 -2
- package/lib/components/Sidebar/Drilldown.d.ts +2 -1
- package/lib/components/Sidebar/Drilldown.js +2 -2
- package/lib/components/Sidebar/DrilldownMenu.d.ts +1 -1
- package/lib/components/Sidebar/DrilldownMenu.js +3 -3
- package/lib/components/Sidebar/DrilldownMenuItem.d.ts +1 -1
- package/lib/components/Sidebar/DrilldownMenuItem.js +2 -2
- package/lib/components/Sidebar/HeaderWrapper.d.ts +1 -3
- package/lib/components/Sidebar/HeaderWrapper.js +2 -1
- package/lib/components/Sidebar/MobileSidebarButton.d.ts +1 -3
- package/lib/components/Sidebar/MobileSidebarButton.js +3 -2
- package/lib/components/Sidebar/Sidebar.d.ts +1 -3
- package/lib/components/Sidebar/Sidebar.js +2 -1
- package/lib/components/Sidebar/SidebarLayout.d.ts +2 -1
- package/lib/components/Sidebar/SidebarLayout.js +2 -4
- package/lib/components/Sidebar/types.d.ts +3 -0
- package/lib/components/SidebarActions/SidebarActions.d.ts +2 -1
- package/lib/components/SidebarActions/SidebarActions.js +2 -2
- package/lib/components/SidebarLogo/SidebarLogo.d.ts +2 -1
- package/lib/components/SidebarLogo/SidebarLogo.js +2 -2
- package/lib/components/TableOfContent/TableOfContent.d.ts +1 -0
- package/lib/components/TableOfContent/TableOfContent.js +2 -2
- package/lib/components/Tags/Tags.d.ts +2 -1
- package/lib/components/Tags/Tags.js +2 -2
- package/lib/components/Tiles/TileHeader.d.ts +1 -3
- package/lib/components/Tiles/TileHeader.js +2 -1
- package/lib/components/Tiles/TileText.d.ts +1 -3
- package/lib/components/Tiles/TileText.js +2 -1
- package/lib/components/Typography/CompactTypography.d.ts +1 -3
- package/lib/components/Typography/Emphasis.d.ts +1 -3
- package/lib/components/Typography/Emphasis.js +2 -1
- package/lib/components/Typography/H1.d.ts +1 -3
- package/lib/components/Typography/H1.js +2 -1
- package/lib/components/Typography/H2.d.ts +1 -3
- package/lib/components/Typography/H2.js +2 -1
- package/lib/components/Typography/H3.d.ts +1 -3
- package/lib/components/Typography/H3.js +2 -1
- package/lib/components/Typography/SectionHeader.d.ts +1 -3
- package/lib/components/Typography/SectionHeader.js +2 -1
- package/lib/components/Typography/Typography.d.ts +1 -3
- package/lib/components/Typography/Typography.js +2 -1
- package/lib/globalStyle.js +62 -2
- package/lib/hooks/useMobileMenu.js +7 -1
- package/lib/icons/BurgerIcon/BurgerIcon.d.ts +5 -0
- package/lib/icons/BurgerIcon/BurgerIcon.js +15 -0
- package/lib/icons/BurgerIcon/index.d.ts +1 -0
- package/lib/icons/BurgerIcon/index.js +6 -0
- package/lib/icons/CloseIcon/CloseIcon.d.ts +5 -0
- package/lib/icons/CloseIcon/CloseIcon.js +16 -0
- package/lib/icons/CloseIcon/index.d.ts +1 -0
- package/lib/icons/CloseIcon/index.js +6 -0
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +5 -1
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +8 -0
- package/lib/icons/ExpandIcon/ExpandIcon.js +31 -0
- package/lib/icons/ExpandIcon/index.d.ts +1 -0
- package/lib/icons/ExpandIcon/index.js +6 -0
- package/lib/icons/LogoutIcon/LogoutIcon.d.ts +5 -0
- package/lib/icons/LogoutIcon/LogoutIcon.js +17 -0
- package/lib/icons/LogoutIcon/index.d.ts +1 -0
- package/lib/icons/LogoutIcon/index.js +6 -0
- package/lib/icons/index.d.ts +4 -0
- package/lib/icons/index.js +4 -0
- package/lib/mocks/Sidebar/useSidebarItems.d.ts +3 -0
- package/lib/mocks/Sidebar/useSidebarItems.js +8 -0
- package/lib/mocks/hooks/index.d.ts +4 -1
- package/lib/mocks/hooks/index.js +16 -1
- package/lib/mocks/media-css.d.ts +5 -0
- package/lib/mocks/media-css.js +5 -0
- package/lib/ui/Dropdown.js +1 -1
- package/lib/ui/darkColors.js +11 -3
- package/package.json +6 -4
- package/src/I18n/LanguagePicker.tsx +2 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +0 -1
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +6 -0
- package/src/components/Cards/Card.tsx +2 -1
- package/src/components/Cards/CardsBlock.tsx +2 -1
- package/src/components/Catalog/Catalog.tsx +1 -1
- package/src/components/CodeBlock/CodeBlock.ts +2 -1
- package/src/components/CodeSample/CodeSample.tsx +4 -1
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +7 -1
- package/src/components/Feedback/Comment.tsx +3 -3
- package/src/components/Feedback/Rating.tsx +2 -2
- package/src/components/Feedback/Reasons.tsx +6 -2
- package/src/components/Feedback/ReportDialog.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +2 -2
- package/src/components/Feedback/types.ts +5 -0
- package/src/components/Footer/CustomFooter.tsx +3 -2
- package/src/components/Footer/CustomFooterNavItem.tsx +3 -2
- package/src/components/Footer/Footer.tsx +3 -1
- package/src/components/Footer/FooterColumn.tsx +3 -2
- package/src/components/Footer/FooterColumns.tsx +3 -2
- package/src/components/Footer/FooterCopyright.tsx +6 -1
- package/src/components/LastUpdated/LastUpdated.tsx +2 -0
- package/src/components/Markdown/ContainerWrapper.tsx +5 -4
- package/src/components/Markdown/Heading.tsx +3 -1
- package/src/components/Markdown/MarkdownLayout.tsx +3 -1
- package/src/components/Markdown/MarkdownWrapper.tsx +11 -5
- package/src/components/Markdown/Mermaid.tsx +5 -1
- package/src/components/Markdown/PageWrapper.tsx +2 -1
- package/src/components/Markdown/Sup.tsx +9 -2
- package/src/components/Menu/Menu.tsx +16 -5
- package/src/components/Menu/MenuContainer.tsx +3 -1
- package/src/components/Menu/MenuGroup.tsx +4 -5
- package/src/components/Menu/MenuItem.tsx +22 -4
- package/src/components/Menu/MenuItemLabel.tsx +19 -10
- package/src/components/Menu/MenuItemSwitch.tsx +7 -5
- package/src/components/Menu/MenuLink.tsx +2 -1
- package/src/components/Menu/MenuLinkItem.tsx +2 -1
- package/src/components/Menu/MobileMenu.tsx +209 -0
- package/src/components/Menu/MobileMenuGroup.tsx +73 -0
- package/src/components/Menu/index.ts +1 -0
- package/src/components/Navbar/BurgerButton.tsx +34 -0
- package/src/components/Navbar/MobileUserProfile.tsx +90 -0
- package/src/components/Navbar/Navbar.tsx +43 -14
- package/src/components/Navbar/NavbarDropdown.tsx +3 -2
- package/src/components/Navbar/NavbarMenu.tsx +8 -2
- package/src/components/NavbarLogo/NavbarLogo.tsx +11 -3
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +2 -4
- package/src/components/PageNavigation/NextButton.tsx +3 -1
- package/src/components/PageNavigation/PageNavigation.tsx +10 -2
- package/src/components/PageNavigation/PreviousButton.tsx +3 -1
- package/src/components/Panel/PanelBody.ts +2 -1
- package/src/components/Panel/PanelHeader.ts +2 -1
- package/src/components/Panel/PanelHeaderTitle.ts +2 -1
- package/src/components/Profile/Profile.tsx +2 -2
- package/src/components/Profile/types.ts +1 -0
- package/src/components/SamplesPanelControls/SamplesPanelControls.ts +6 -3
- package/src/components/Search/CancelSearch.tsx +8 -2
- package/src/components/Search/ClearIcon.tsx +2 -1
- package/src/components/Search/ClockBackwardsIcon.tsx +1 -1
- package/src/components/Search/Input.tsx +2 -1
- package/src/components/Search/InputWrapper.tsx +3 -1
- package/src/components/Search/MobileSearchTrigger.tsx +16 -5
- package/src/components/Search/Popover.tsx +3 -2
- package/src/components/Search/RecentSearches.tsx +9 -3
- package/src/components/Search/Search.tsx +2 -2
- package/src/components/Search/SearchDialog.tsx +10 -3
- package/src/components/Search/SearchIcon.tsx +2 -1
- package/src/components/Search/SearchItem.tsx +4 -1
- package/src/components/Search/SearchTrigger.tsx +8 -2
- package/src/components/Search/Shortcut.tsx +3 -1
- package/src/components/Search/ShortcutKey.tsx +2 -1
- package/src/components/Search/SidebarSearch.tsx +2 -1
- package/src/components/Search/SuggestedPages.tsx +2 -2
- package/src/components/Separator/Separator.tsx +2 -2
- package/src/components/Separator/SeparatorItem.tsx +11 -4
- package/src/components/Separator/SeparatorLine.tsx +2 -1
- package/src/components/Sidebar/ApiCallItem.tsx +12 -4
- package/src/components/Sidebar/BackButton.tsx +3 -1
- package/src/components/Sidebar/Drilldown.tsx +3 -1
- package/src/components/Sidebar/DrilldownMenu.tsx +3 -2
- package/src/components/Sidebar/DrilldownMenuItem.tsx +2 -2
- package/src/components/Sidebar/HeaderWrapper.tsx +2 -1
- package/src/components/Sidebar/MobileSidebarButton.tsx +3 -2
- package/src/components/Sidebar/Sidebar.tsx +2 -1
- package/src/components/Sidebar/SidebarLayout.tsx +3 -4
- package/src/components/Sidebar/types.ts +3 -0
- package/src/components/SidebarActions/SidebarActions.tsx +3 -0
- package/src/components/SidebarLogo/SidebarLogo.tsx +3 -0
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/Tags/Tags.tsx +2 -2
- package/src/components/Tiles/TileHeader.ts +2 -1
- package/src/components/Tiles/TileText.tsx +2 -1
- package/src/components/Typography/Emphasis.ts +2 -1
- package/src/components/Typography/H1.ts +2 -1
- package/src/components/Typography/H2.ts +2 -1
- package/src/components/Typography/H3.ts +2 -1
- package/src/components/Typography/SectionHeader.ts +2 -1
- package/src/components/Typography/Typography.ts +2 -1
- package/src/globalStyle.ts +66 -3
- package/src/hooks/useMobileMenu.ts +5 -1
- package/src/icons/BurgerIcon/BurgerIcon.tsx +12 -0
- package/src/icons/BurgerIcon/index.ts +1 -0
- package/src/icons/CloseIcon/CloseIcon.tsx +13 -0
- package/src/icons/CloseIcon/index.ts +1 -0
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +5 -1
- package/src/icons/ExpandIcon/ExpandIcon.tsx +46 -0
- package/src/icons/ExpandIcon/index.ts +1 -0
- package/src/icons/LogoutIcon/LogoutIcon.tsx +20 -0
- package/src/icons/LogoutIcon/index.ts +1 -0
- package/src/icons/index.ts +4 -0
- package/src/mocks/Sidebar/useSidebarItems.tsx +7 -0
- package/src/mocks/hooks/index.ts +16 -1
- package/src/mocks/media-css.ts +1 -0
- package/src/ui/Dropdown.tsx +1 -1
- package/src/ui/darkColors.tsx +11 -3
- package/lib/components/Navbar/MobileNavbarDropdown.d.ts +0 -8
- package/lib/components/Navbar/MobileNavbarDropdown.js +0 -30
- package/lib/components/Navbar/MobileNavbarItem.d.ts +0 -15
- package/lib/components/Navbar/MobileNavbarItem.js +0 -110
- package/lib/components/Navbar/MobileNavbarMenu.d.ts +0 -6
- package/lib/components/Navbar/MobileNavbarMenu.js +0 -92
- package/lib/components/Navbar/MobileNavbarMenuButton.d.ts +0 -4
- package/lib/components/Navbar/MobileNavbarMenuButton.js +0 -18
- package/src/components/Navbar/MobileNavbarDropdown.tsx +0 -37
- package/src/components/Navbar/MobileNavbarItem.tsx +0 -121
- package/src/components/Navbar/MobileNavbarMenu.tsx +0 -111
- package/src/components/Navbar/MobileNavbarMenuButton.tsx +0 -13
|
@@ -12,6 +12,7 @@ interface SidebarLayoutProps {
|
|
|
12
12
|
growContent?: boolean;
|
|
13
13
|
collapsed?: boolean;
|
|
14
14
|
onToggleMenu?: (isOpen: boolean) => void;
|
|
15
|
+
className?: string;
|
|
15
16
|
}
|
|
16
|
-
export declare function SidebarLayout({ versions, menu, footer, header, growContent, collapsed, onToggleMenu, }: SidebarLayoutProps): JSX.Element | null;
|
|
17
|
+
export declare function SidebarLayout({ versions, menu, footer, header, growContent, collapsed, onToggleMenu, className, }: SidebarLayoutProps): JSX.Element | null;
|
|
17
18
|
export {};
|
|
@@ -45,7 +45,7 @@ const StyledFooterWrapper = (0, styled_components_1.default)(FooterWrapper_1.Foo
|
|
|
45
45
|
display: flex;
|
|
46
46
|
}
|
|
47
47
|
`;
|
|
48
|
-
function SidebarLayout({ versions, menu, footer, header, growContent, collapsed, onToggleMenu, }) {
|
|
48
|
+
function SidebarLayout({ versions, menu, footer, header, growContent, collapsed, onToggleMenu, className, }) {
|
|
49
49
|
const [isOpen, setIsOpen] = (0, useMobileMenu_1.useMobileMenu)();
|
|
50
50
|
const [mappedCollapsed, setMappedCollapsed] = react_1.default.useState(collapsed);
|
|
51
51
|
(0, react_1.useEffect)(() => {
|
|
@@ -62,9 +62,7 @@ function SidebarLayout({ versions, menu, footer, header, growContent, collapsed,
|
|
|
62
62
|
return (react_1.default.createElement(react_1.default.Fragment, null, mappedCollapsed ? (footer ? (react_1.default.createElement(Wrapper, { collapsed: true },
|
|
63
63
|
react_1.default.createElement(StyledFooterWrapper, { "data-component-name": "Sidebar/FooterWrapper", collapsed: true }, footer),
|
|
64
64
|
react_1.default.createElement(MobileSidebarButton_1.MobileSidebarButton, { opened: isOpen, onClick: toggleMenu },
|
|
65
|
-
react_1.default.createElement(MobileSidebarIcon_1.MobileSidebarIcon, null)))) : null) : (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/SidebarLayout" },
|
|
66
|
-
react_1.default.createElement(MobileSidebarButton_1.MobileSidebarButton, { opened: isOpen, onClick: toggleMenu },
|
|
67
|
-
react_1.default.createElement(MobileSidebarIcon_1.MobileSidebarIcon, null)),
|
|
65
|
+
react_1.default.createElement(MobileSidebarIcon_1.MobileSidebarIcon, null)))) : null) : (react_1.default.createElement(Wrapper, { "data-component-name": "Sidebar/SidebarLayout", className: className },
|
|
68
66
|
!(search === null || search === void 0 ? void 0 : search.hide) && (search === null || search === void 0 ? void 0 : search.placement) === 'sidebar' ? react_1.default.createElement(SidebarSearch_1.SidebarSearch, null) : null,
|
|
69
67
|
react_1.default.createElement(Sidebar_1.Sidebar, { animate: true, opened: isOpen },
|
|
70
68
|
header ? react_1.default.createElement(HeaderWrapper_1.HeaderWrapper, null, header) : null,
|
|
@@ -11,10 +11,13 @@ export interface DrilldownMenuProps {
|
|
|
11
11
|
back: () => void;
|
|
12
12
|
item: ItemState;
|
|
13
13
|
prevActiveItem?: ItemState;
|
|
14
|
+
className?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface MenuItemProps {
|
|
16
17
|
item: ItemState;
|
|
17
18
|
activeItem?: ItemState;
|
|
19
|
+
className?: string;
|
|
20
|
+
isMobile?: boolean;
|
|
18
21
|
}
|
|
19
22
|
export interface NavItem {
|
|
20
23
|
label?: string;
|
|
@@ -15,6 +15,7 @@ interface SidebarActionsProps {
|
|
|
15
15
|
onChangeViewClick: () => void;
|
|
16
16
|
onChangeCollapseSidebarClick: () => void;
|
|
17
17
|
requestAccessButton?: React.ReactElement | null;
|
|
18
|
+
className?: string;
|
|
18
19
|
}
|
|
19
|
-
export declare const SidebarActions: ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, }: SidebarActionsProps) => JSX.Element;
|
|
20
|
+
export declare const SidebarActions: ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -14,8 +14,8 @@ var LayoutVariant;
|
|
|
14
14
|
LayoutVariant["STACKED"] = "stacked";
|
|
15
15
|
LayoutVariant["THREE_PANEL"] = "three-panel";
|
|
16
16
|
})(LayoutVariant = exports.LayoutVariant || (exports.LayoutVariant = {}));
|
|
17
|
-
const SidebarActions = ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, }) => {
|
|
18
|
-
return (react_1.default.createElement(styled_1.ControlsWrap, { isOpenapiDocs: isOpenapiDocs, isCollapsed: collapsedSidebar, "data-component-name": "Sidebar/Actions" },
|
|
17
|
+
const SidebarActions = ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
|
|
18
|
+
return (react_1.default.createElement(styled_1.ControlsWrap, { className: className, isOpenapiDocs: isOpenapiDocs, isCollapsed: collapsedSidebar, "data-component-name": "Sidebar/Actions" },
|
|
19
19
|
isOpenapiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },
|
|
20
20
|
initialShowRightPanelToggle && (react_1.default.createElement(ToggleRightPanelButton_1.ToggleRightPanelButton, { showRightPanelToggle: showRightPanelToggle, onClick: onChangeRightPanelViewClick })),
|
|
21
21
|
showChangeLayoutButton && showRightPanelToggle && (react_1.default.createElement(ChangeViewButton_1.ChangeViewButton, { layout: layout, onClick: onChangeViewClick })))),
|
|
@@ -5,5 +5,6 @@ export interface LogoProps {
|
|
|
5
5
|
altText?: string;
|
|
6
6
|
dataTestId?: string;
|
|
7
7
|
backgroundColor?: string;
|
|
8
|
+
className?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, }?: LogoProps): JSX.Element | null;
|
|
10
|
+
export declare function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, className, }?: LogoProps): JSX.Element | null;
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SidebarLogo = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, } = {}) {
|
|
9
|
+
function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, className, } = {}) {
|
|
10
10
|
if (!imageUrl) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
13
|
const logo = react_1.default.createElement(LogoImgEl, { src: imageUrl, alt: altText || 'logo' });
|
|
14
|
-
return (react_1.default.createElement(LogoWrap, { "data-cy": dataTestId, style: { backgroundColor }, "data-component-name": "SidebarLogo/SidebarLogo" }, href ? react_1.default.createElement(Link, { href: href }, logo) : logo));
|
|
14
|
+
return (react_1.default.createElement(LogoWrap, { "data-cy": dataTestId, style: { backgroundColor }, "data-component-name": "SidebarLogo/SidebarLogo", className: className }, href ? react_1.default.createElement(Link, { href: href }, logo) : logo));
|
|
15
15
|
}
|
|
16
16
|
exports.SidebarLogo = SidebarLogo;
|
|
17
17
|
const LogoImgEl = styled_components_1.default.img `
|
|
@@ -3,6 +3,7 @@ import type { MdHeading } from '../../types/portal';
|
|
|
3
3
|
interface TableOfContentProps {
|
|
4
4
|
headings?: Array<MdHeading | null> | null | undefined;
|
|
5
5
|
contentWrapper: HTMLDivElement | null;
|
|
6
|
+
className?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare function TableOfContent(props: TableOfContentProps): JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -35,7 +35,7 @@ const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
|
35
35
|
const hooks_1 = require("../../mocks/hooks");
|
|
36
36
|
const utils_1 = require("../../components/TableOfContent/utils");
|
|
37
37
|
function TableOfContent(props) {
|
|
38
|
-
const { headings, contentWrapper } = props;
|
|
38
|
+
const { headings, contentWrapper, className } = props;
|
|
39
39
|
const sidebar = React.useRef(null);
|
|
40
40
|
(0, useFullHeight_1.useFullHeight)(sidebar);
|
|
41
41
|
const { markdown: { toc = {} } = {} } = (0, useThemeConfig_1.useThemeConfig)();
|
|
@@ -50,7 +50,7 @@ function TableOfContent(props) {
|
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
return (React.createElement(React.Fragment, null,
|
|
53
|
-
React.createElement(TableOfContentMenu, { "data-component-name": "TableOfContent/TableOfContent" },
|
|
53
|
+
React.createElement(TableOfContentMenu, { "data-component-name": "TableOfContent/TableOfContent", className: className },
|
|
54
54
|
React.createElement(TableOfContentItems, { ref: sidebar },
|
|
55
55
|
displayedHeadings.length ? (React.createElement(TocHeader, { "data-translation-key": translationKeys.header }, translate(translationKeys.header, toc.header || 'On this page'))) : null,
|
|
56
56
|
displayedHeadings.map((heading, idx) => {
|
|
@@ -7,8 +7,8 @@ exports.Tags = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Highlight_1 = require("../../ui/Highlight");
|
|
10
|
-
function Tags({ tags }) {
|
|
11
|
-
return (react_1.default.createElement(TagsWrapper,
|
|
10
|
+
function Tags({ tags, className }) {
|
|
11
|
+
return (react_1.default.createElement(TagsWrapper, { className: className }, tags.map((tag) => (react_1.default.createElement(Tag, { key: tag, className: 'tag-' + slug(tag) },
|
|
12
12
|
react_1.default.createElement(Highlight_1.Highlight, null, tag))))));
|
|
13
13
|
}
|
|
14
14
|
exports.Tags = Tags;
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TileHeader = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.TileHeader = styled_components_1.default.h3.attrs(() => ({
|
|
8
|
+
exports.TileHeader = styled_components_1.default.h3.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'ui/Tiles/TileHeader',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
font-weight: var(--h3-font-weight);
|
|
12
13
|
line-height: var(--h3-line-height);
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TileText = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.TileText = styled_components_1.default.span.attrs(() => ({
|
|
8
|
+
exports.TileText = styled_components_1.default.span.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'ui/Tiles/TileText',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
display: inline-block;
|
|
12
13
|
font-weight: var(--font-weight-regular);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export declare const CompactTypography: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
-
'data-component-name': string;
|
|
3
|
-
} & import("../../components/Typography/Typography").TypographyProps & {
|
|
1
|
+
export declare const CompactTypography: import("styled-components").StyledComponent<"div", any, import("../../components/Typography/Typography").TypographyProps & {
|
|
4
2
|
mt: string;
|
|
5
3
|
mb: string;
|
|
6
4
|
'data-component-name': string;
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Emphasis = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.Emphasis = styled_components_1.default.strong.attrs(() => ({
|
|
8
|
+
exports.Emphasis = styled_components_1.default.strong.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'Typography/Emphasis',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
font-weight: var(--font-weight-bold);
|
|
12
13
|
`;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.H1 = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
-
exports.H1 = styled_components_1.default.h1.attrs(() => ({
|
|
9
|
+
exports.H1 = styled_components_1.default.h1.attrs(({ className }) => ({
|
|
10
10
|
'data-component-name': 'Typography/H1',
|
|
11
|
+
className,
|
|
11
12
|
})) `
|
|
12
13
|
color: var(--h1-text-color);
|
|
13
14
|
margin: var(--h1-margin-top) 0 var(--h1-margin-bottom);
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.H2 = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
-
exports.H2 = styled_components_1.default.h2.attrs(() => ({
|
|
9
|
+
exports.H2 = styled_components_1.default.h2.attrs(({ className }) => ({
|
|
10
10
|
'data-component-name': 'Typography/H2',
|
|
11
|
+
className,
|
|
11
12
|
})) `
|
|
12
13
|
color: var(--h2-text-color);
|
|
13
14
|
margin: var(--h2-margin-top) 0 var(--h2-margin-bottom);
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.H3 = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
-
exports.H3 = styled_components_1.default.h3.attrs(() => ({
|
|
9
|
+
exports.H3 = styled_components_1.default.h3.attrs(({ className }) => ({
|
|
10
10
|
'data-component-name': 'Typography/H3',
|
|
11
|
+
className,
|
|
11
12
|
})) `
|
|
12
13
|
color: var(--h3-text-color);
|
|
13
14
|
margin: var(--h3-margin-top) 0 var(--h3-margin-bottom);
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SectionHeader = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.SectionHeader = styled_components_1.default.h2.attrs(() => ({
|
|
8
|
+
exports.SectionHeader = styled_components_1.default.h2.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'Typography/SectionHeader',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
color: var(--h2-color);
|
|
12
13
|
font-size: var(--h2-font-size);
|
|
@@ -10,6 +10,4 @@ export interface TypographyProps {
|
|
|
10
10
|
marginTop?: string;
|
|
11
11
|
textAlign?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const Typography: import("styled-components").StyledComponent<"div", any,
|
|
14
|
-
'data-component-name': string;
|
|
15
|
-
} & TypographyProps, "data-component-name">;
|
|
13
|
+
export declare const Typography: import("styled-components").StyledComponent<"div", any, TypographyProps, never>;
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Typography = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.Typography = styled_components_1.default.div.attrs(() => ({
|
|
8
|
+
exports.Typography = styled_components_1.default.div.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'Typography/Typography',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
color: ${({ color }) => color || 'var(--text-color)'};
|
|
12
13
|
font-family: ${({ fontFamily }) => fontFamily || 'var(--font-family-base)'};
|
package/lib/globalStyle.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GlobalStyle = exports.styles = void 0;
|
|
4
4
|
const styled_components_1 = require("styled-components");
|
|
5
|
+
const media_css_1 = require("./mocks/media-css");
|
|
5
6
|
const darkColors_1 = require("./ui/darkColors");
|
|
6
7
|
const baseColors = (0, styled_components_1.css) `
|
|
7
8
|
/* === Palette === */
|
|
@@ -1601,6 +1602,7 @@ const breadcrumbs = (0, styled_components_1.css) `
|
|
|
1601
1602
|
*/
|
|
1602
1603
|
|
|
1603
1604
|
--breadcrumbs-text-color: var(--text-color-secondary); // @presenter Color
|
|
1605
|
+
--breadcrumbs-font-size: var(--font-size-base); // @presenter FontSize
|
|
1604
1606
|
--breadcrumbs-active-text-color: var(--text-color); // @presenter Color
|
|
1605
1607
|
--breadcrumbs-hover-text-decoration: underline;
|
|
1606
1608
|
--breadcrumbs-padding-horizontal: 8px; // @presenter Spacing
|
|
@@ -1608,6 +1610,50 @@ const breadcrumbs = (0, styled_components_1.css) `
|
|
|
1608
1610
|
|
|
1609
1611
|
// @tokens End
|
|
1610
1612
|
`;
|
|
1613
|
+
const mobileMenu = (0, styled_components_1.css) `
|
|
1614
|
+
/**
|
|
1615
|
+
* @tokens Mobile Menu icons
|
|
1616
|
+
*/
|
|
1617
|
+
--mobile-menu-icons-size: 20px; // @presenter Spacing
|
|
1618
|
+
--mobile-menu-search-icon-size: 18px; // @presenter Spacing
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* @tokens Mobile Menu
|
|
1622
|
+
* */
|
|
1623
|
+
--mobile-menu-padding-top: 13px; // @presenter Spacing
|
|
1624
|
+
--mobile-menu-items-margin-top: 5px; // @presenter Spacing
|
|
1625
|
+
--mobile-menu-burger-button-margin: 8px; // @presenter Spacing
|
|
1626
|
+
--mobile-menu-background: #ffffff; // @presenter Color
|
|
1627
|
+
--mobile-menu-profile-background: #ffffff; // @presenter Color
|
|
1628
|
+
--mobile-menu-profile-border-color: #e3e3e3; // @presenter Color
|
|
1629
|
+
--mobile-menu-group-padding-right: 16px; // @presenter Spacing
|
|
1630
|
+
--mobile-menu-horizontal-margin: 8px; // @presenter Spacing
|
|
1631
|
+
--mobile-menu-item-nested-offset: 8px; // @presenter Spacing
|
|
1632
|
+
--mobile-menu-item-radius: 6px; // @presenter Spacing
|
|
1633
|
+
--mobile-menu-item-text-color: #525252;// @presenter Color
|
|
1634
|
+
--mobile-menu-item-active-color: #FAFAFA; // @presenter Color
|
|
1635
|
+
--mobile-menu-item-active-text-color: #161616; // @presenter Color
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @tokens Mobile Menu control button
|
|
1639
|
+
* */
|
|
1640
|
+
--mobile-menu-control-button-padding-vertical: 0; // @presenter Spacing
|
|
1641
|
+
--mobile-menu-control-button-padding-horizontal: 4px; // @presenter Spacing
|
|
1642
|
+
--mobile-menu-control-button-margin-vertical: 0; // @presenter Spacing
|
|
1643
|
+
--mobile-menu-control-button-margin-horizontal: 8px; // @presenter Spacing
|
|
1644
|
+
--mobile-menu-control-button-font-size: var(--font-size-base); // @presenter FontSize
|
|
1645
|
+
--mobile-menu-control-button-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1646
|
+
--mobile-menu-control-button-color: var(--mobile-menu-item-text-color); // @presenter Color
|
|
1647
|
+
--mobile-menu-control-button-hover-color: var(--text-color); // @presenter Color
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @tokens Mobile Menu Login button
|
|
1651
|
+
* */
|
|
1652
|
+
--mobile-menu-login-button-background: #1c1c1c; // @presenter Color
|
|
1653
|
+
--mobile-menu-login-button-color: #ffffff; // @presenter Color
|
|
1654
|
+
|
|
1655
|
+
// @tokens End
|
|
1656
|
+
`;
|
|
1611
1657
|
const toc = (0, styled_components_1.css) `
|
|
1612
1658
|
/**
|
|
1613
1659
|
* @tokens TOC
|
|
@@ -1670,7 +1716,7 @@ const loadProgressBar = (0, styled_components_1.css) `
|
|
|
1670
1716
|
background: var(--load-progress-bar-color);
|
|
1671
1717
|
|
|
1672
1718
|
position: fixed;
|
|
1673
|
-
z-index:
|
|
1719
|
+
z-index: var(--z-index-popover);
|
|
1674
1720
|
top: 0;
|
|
1675
1721
|
left: 0;
|
|
1676
1722
|
|
|
@@ -1998,7 +2044,7 @@ const userProfile = (0, styled_components_1.css) `
|
|
|
1998
2044
|
--profile-avatar-border-radius: 50%; // @presenter BorderRadius
|
|
1999
2045
|
|
|
2000
2046
|
--profile-avatar-font-family: var(--navbar-item-font-family); // @presenter FontFamily
|
|
2001
|
-
--profile-avatar-font-size: var(--navbar-item-font-size) // @presenter FontSize
|
|
2047
|
+
--profile-avatar-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
2002
2048
|
--profile-avatar-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
2003
2049
|
--profile-avatar-line-height: var(--line-height-base); // @presenter LineHeight
|
|
2004
2050
|
|
|
@@ -2046,6 +2092,12 @@ const modal = (0, styled_components_1.css) `
|
|
|
2046
2092
|
--modal-overlay-background-color: rgba(206, 206, 206, 0.49);
|
|
2047
2093
|
--modal-background-color: var(--background-color);
|
|
2048
2094
|
`;
|
|
2095
|
+
const zIndexDepth = (0, styled_components_1.css) `
|
|
2096
|
+
--z-index-surface: 10;
|
|
2097
|
+
--z-index-raised: 100;
|
|
2098
|
+
--z-index-popover: 200;
|
|
2099
|
+
--z-index-overlay: 1000;
|
|
2100
|
+
`;
|
|
2049
2101
|
exports.styles = (0, styled_components_1.css) `
|
|
2050
2102
|
:root {
|
|
2051
2103
|
${baseColors}
|
|
@@ -2058,6 +2110,7 @@ exports.styles = (0, styled_components_1.css) `
|
|
|
2058
2110
|
${buttons}
|
|
2059
2111
|
${sidebar}
|
|
2060
2112
|
${navbar}
|
|
2113
|
+
${mobileMenu}
|
|
2061
2114
|
${footer}
|
|
2062
2115
|
${logo}
|
|
2063
2116
|
${badges}
|
|
@@ -2078,6 +2131,7 @@ exports.styles = (0, styled_components_1.css) `
|
|
|
2078
2131
|
${pages}
|
|
2079
2132
|
${modal}
|
|
2080
2133
|
${userProfile}
|
|
2134
|
+
${zIndexDepth}
|
|
2081
2135
|
|
|
2082
2136
|
--api-onboarding-table-text-color: #4e5356;
|
|
2083
2137
|
--api-catalog-card-min-width: 250px;
|
|
@@ -2096,6 +2150,12 @@ exports.styles = (0, styled_components_1.css) `
|
|
|
2096
2150
|
:root.notransition * {
|
|
2097
2151
|
transition: none !important;
|
|
2098
2152
|
}
|
|
2153
|
+
|
|
2154
|
+
@media screen and (max-width: ${media_css_1.breakpoints.medium}) {
|
|
2155
|
+
body.overflow-hidden {
|
|
2156
|
+
overflow: hidden;
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2099
2159
|
`;
|
|
2100
2160
|
exports.GlobalStyle = (0, styled_components_1.createGlobalStyle) `
|
|
2101
2161
|
${exports.styles};
|
|
@@ -6,7 +6,13 @@ const react_router_dom_1 = require("react-router-dom");
|
|
|
6
6
|
function useMobileMenu(initialState = false) {
|
|
7
7
|
const location = (0, react_router_dom_1.useLocation)();
|
|
8
8
|
const [isOpen, setIsOpen] = (0, react_1.useState)(initialState);
|
|
9
|
-
(0, react_1.useEffect)(() => setIsOpen(false), [location.pathname]);
|
|
9
|
+
(0, react_1.useEffect)(() => setIsOpen(false), [location.pathname, location.hash]);
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
11
|
+
if (isOpen)
|
|
12
|
+
document.body.classList.add('overflow-hidden');
|
|
13
|
+
else
|
|
14
|
+
document.body.classList.remove('overflow-hidden');
|
|
15
|
+
}, [isOpen]);
|
|
10
16
|
return [isOpen, setIsOpen];
|
|
11
17
|
}
|
|
12
18
|
exports.useMobileMenu = useMobileMenu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BurgerIcon = exports.Icon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const Icon = () => (react_1.default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "inherit", xmlns: "http://www.w3.org/2000/svg" },
|
|
10
|
+
react_1.default.createElement("path", { d: "M21.1875 3.75H2.8125C2.70937 3.75 2.625 3.83437 2.625 3.9375V5.4375C2.625 5.54062 2.70937 5.625 2.8125 5.625H21.1875C21.2906 5.625 21.375 5.54062 21.375 5.4375V3.9375C21.375 3.83437 21.2906 3.75 21.1875 3.75ZM21.1875 18.375H2.8125C2.70937 18.375 2.625 18.4594 2.625 18.5625V20.0625C2.625 20.1656 2.70937 20.25 2.8125 20.25H21.1875C21.2906 20.25 21.375 20.1656 21.375 20.0625V18.5625C21.375 18.4594 21.2906 18.375 21.1875 18.375ZM21.1875 11.0625H2.8125C2.70937 11.0625 2.625 11.1469 2.625 11.25V12.75C2.625 12.8531 2.70937 12.9375 2.8125 12.9375H21.1875C21.2906 12.9375 21.375 12.8531 21.375 12.75V11.25C21.375 11.1469 21.2906 11.0625 21.1875 11.0625Z" })));
|
|
11
|
+
exports.Icon = Icon;
|
|
12
|
+
exports.BurgerIcon = (0, styled_components_1.default)(exports.Icon).attrs(() => ({
|
|
13
|
+
'data-component-name': 'icons/BurgerIcon/BurgerIcon',
|
|
14
|
+
})) ``;
|
|
15
|
+
//# sourceMappingURL=BurgerIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BurgerIcon } from '../../icons/BurgerIcon/BurgerIcon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BurgerIcon = void 0;
|
|
4
|
+
var BurgerIcon_1 = require("../../icons/BurgerIcon/BurgerIcon");
|
|
5
|
+
Object.defineProperty(exports, "BurgerIcon", { enumerable: true, get: function () { return BurgerIcon_1.BurgerIcon; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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.CloseIcon = exports.Icon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const Icon = () => (react_1.default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "inherit", xmlns: "http://www.w3.org/2000/svg" },
|
|
10
|
+
react_1.default.createElement("rect", { width: "24", height: "24", fill: "none" }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M18 7.05L16.95 6L12 10.95L7.05 6L6 7.05L10.95 12L6 16.95L7.05 18L12 13.05L16.95 18L18 16.95L13.05 12L18 7.05Z" })));
|
|
12
|
+
exports.Icon = Icon;
|
|
13
|
+
exports.CloseIcon = (0, styled_components_1.default)(exports.Icon).attrs(() => ({
|
|
14
|
+
'data-component-name': 'icons/CloseIcon/CloseIcon',
|
|
15
|
+
})) ``;
|
|
16
|
+
//# sourceMappingURL=CloseIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CloseIcon } from '../../icons/CloseIcon/CloseIcon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloseIcon = void 0;
|
|
4
|
+
var CloseIcon_1 = require("../../icons/CloseIcon/CloseIcon");
|
|
5
|
+
Object.defineProperty(exports, "CloseIcon", { enumerable: true, get: function () { return CloseIcon_1.CloseIcon; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -22,8 +22,12 @@ function Icon({ mode, className }) {
|
|
|
22
22
|
exports.ColorModeIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
|
|
23
23
|
'data-component-name': 'icons/ColorModeIcon/ColorModeIcon',
|
|
24
24
|
})) `
|
|
25
|
-
width: var(--
|
|
25
|
+
width: var(--mobile-menu-icons-size);
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
fill: var(--navbar-text-color);
|
|
28
|
+
|
|
29
|
+
${({ theme }) => theme.mediaQueries.medium} {
|
|
30
|
+
width: var(--navbar-item-font-size);
|
|
31
|
+
}
|
|
28
32
|
`;
|
|
29
33
|
//# sourceMappingURL=ColorModeIcon.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ArrowIconProps {
|
|
3
|
+
direction?: 'up' | 'right' | 'left' | 'down';
|
|
4
|
+
visibility?: 'visible' | 'hidden';
|
|
5
|
+
}
|
|
6
|
+
export declare const ExpandIcon: import("styled-components").StyledComponent<({ className }: {
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
}) => JSX.Element, any, ArrowIconProps, never>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ExpandIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
function directionToTransform({ direction }) {
|
|
10
|
+
switch (direction) {
|
|
11
|
+
case 'up':
|
|
12
|
+
return 180;
|
|
13
|
+
case 'right':
|
|
14
|
+
return -90;
|
|
15
|
+
case 'left':
|
|
16
|
+
return 90;
|
|
17
|
+
default:
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const Icon = ({ className }) => (react_1.default.createElement("span", { "data-component-name": "icons/ExpandIcon/ExpandIcon" },
|
|
22
|
+
react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className },
|
|
23
|
+
react_1.default.createElement("path", { d: "M8 11L3 5.99999L3.7 5.29999L8 9.59999L12.3 5.29999L13 5.99999L8 11Z", fill: "inherit" }))));
|
|
24
|
+
exports.ExpandIcon = (0, styled_components_1.default)(Icon) `
|
|
25
|
+
fill: var(--sidebar-group-item-chevron-color);
|
|
26
|
+
transform: rotate(${directionToTransform}deg);
|
|
27
|
+
visibility: ${({ visibility = 'visible' }) => visibility};
|
|
28
|
+
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
`;
|
|
31
|
+
//# sourceMappingURL=ExpandIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ExpandIcon } from '../../icons/ExpandIcon/ExpandIcon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExpandIcon = void 0;
|
|
4
|
+
var ExpandIcon_1 = require("../../icons/ExpandIcon/ExpandIcon");
|
|
5
|
+
Object.defineProperty(exports, "ExpandIcon", { enumerable: true, get: function () { return ExpandIcon_1.ExpandIcon; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LogoutIcon = exports.Icon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
+
const Icon = () => (react_1.default.createElement("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
10
|
+
react_1.default.createElement("rect", { width: "18", height: "18", transform: "translate(11 11)" }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M14.375 27.875H21.125C21.4233 27.8747 21.7092 27.756 21.9201 27.5451C22.131 27.3342 22.2497 27.0483 22.25 26.75V25.0625H21.125V26.75H14.375V13.25H21.125V14.9375H22.25V13.25C22.2497 12.9517 22.131 12.6658 21.9201 12.4549C21.7092 12.244 21.4233 12.1253 21.125 12.125H14.375C14.0767 12.1253 13.7908 12.244 13.5799 12.4549C13.369 12.6658 13.2503 12.9517 13.25 13.25V26.75C13.2503 27.0483 13.369 27.3342 13.5799 27.5451C13.7908 27.756 14.0767 27.8747 14.375 27.875Z", fill: "#FF4D6D" }),
|
|
12
|
+
react_1.default.createElement("path", { d: "M22.5796 22.5796L24.5968 20.5625H16.625V19.4375H24.5968L22.5796 17.4204L23.375 16.625L26.75 20L23.375 23.375L22.5796 22.5796Z", fill: "#FF4D6D" })));
|
|
13
|
+
exports.Icon = Icon;
|
|
14
|
+
exports.LogoutIcon = (0, styled_components_1.default)(exports.Icon).attrs(() => ({
|
|
15
|
+
'data-component-name': 'icons/LogoutIcon/LogoutIcon',
|
|
16
|
+
})) ``;
|
|
17
|
+
//# sourceMappingURL=LogoutIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LogoutIcon } from '../../icons/LogoutIcon/LogoutIcon';
|