@redocly/theme 0.15.1 → 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 +2 -1
- 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 +2 -1
- 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 +4 -3
- 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 +2 -1
- package/src/components/Markdown/Heading.tsx +3 -1
- package/src/components/Markdown/MarkdownLayout.tsx +3 -1
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -1
- 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
|
@@ -68,6 +68,7 @@ const Dropdown = styled_components_1.default.div `
|
|
|
68
68
|
? `
|
|
69
69
|
${DropdownMenu} {
|
|
70
70
|
display: block;
|
|
71
|
+
z-index: var(--z-index-popover);
|
|
71
72
|
}
|
|
72
73
|
`
|
|
73
74
|
: ``}
|
|
@@ -97,7 +98,7 @@ const DropdownMenu = styled_components_1.default.ul `
|
|
|
97
98
|
overflow: hidden;
|
|
98
99
|
display: none;
|
|
99
100
|
overflow-y: auto;
|
|
100
|
-
z-index:
|
|
101
|
+
z-index: var(--z-index-surface);
|
|
101
102
|
padding: 0;
|
|
102
103
|
list-style: none;
|
|
103
104
|
`;
|
|
@@ -26,6 +26,12 @@ const Container = styled_components_1.default.div `
|
|
|
26
26
|
flex-direction: row;
|
|
27
27
|
align-items: center;
|
|
28
28
|
color: var(--breadcrumbs-text-color);
|
|
29
|
+
font-size: var(--breadcrumbs-font-size);
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
|
|
32
|
+
> div {
|
|
33
|
+
padding-right: var(--breadcrumbs-padding-horizontal);
|
|
34
|
+
}
|
|
29
35
|
|
|
30
36
|
@media print {
|
|
31
37
|
display: none;
|
|
@@ -11,7 +11,7 @@ const H3_1 = require("../../components/Typography/H3");
|
|
|
11
11
|
const hooks_1 = require("../../mocks/hooks");
|
|
12
12
|
function Card(props) {
|
|
13
13
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
14
|
-
return (react_1.default.createElement(CardWrapper, { "data-component-name": "Cards/Card" },
|
|
14
|
+
return (react_1.default.createElement(CardWrapper, { "data-component-name": "Cards/Card", className: props.className },
|
|
15
15
|
props.icon && react_1.default.createElement("img", { src: props === null || props === void 0 ? void 0 : props.icon, alt: props === null || props === void 0 ? void 0 : props.title }),
|
|
16
16
|
props.title && react_1.default.createElement(H3_1.H3, null, props.title),
|
|
17
17
|
props.links.items && (react_1.default.createElement(CardLinksList, null, props.links.items.map((item) => (react_1.default.createElement("li", { key: item.label },
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CardsBlock = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.CardsBlock = styled_components_1.default.div.attrs(() => ({
|
|
8
|
+
exports.CardsBlock = styled_components_1.default.div.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'Cards/CardsBlock',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
display: flex;
|
|
12
13
|
padding: 20px 0;
|
|
@@ -77,7 +77,7 @@ const CatalogPageSidebar = styled_components_1.default.aside `
|
|
|
77
77
|
${({ isActiveInMobileMode }) => isActiveInMobileMode ? 'padding-bottom: 66px;' : 'height: 76px;'};
|
|
78
78
|
background-color: var(--sidebar-background-color);
|
|
79
79
|
border-bottom: 1px solid var(--sidebar-border-color);
|
|
80
|
-
z-index:
|
|
80
|
+
z-index: var(--z-index-surface);
|
|
81
81
|
|
|
82
82
|
${MobileStickyApplyFilters} {
|
|
83
83
|
display: ${({ isActiveInMobileMode }) => (isActiveInMobileMode ? 'block' : 'none')};
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CodeBlock = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
|
-
exports.CodeBlock = styled_components_1.default.div.attrs(() => ({
|
|
9
|
+
exports.CodeBlock = styled_components_1.default.div.attrs(({ className }) => ({
|
|
10
10
|
'data-component-name': 'CodeBlock/CodeBlock',
|
|
11
|
+
className,
|
|
11
12
|
})) `
|
|
12
13
|
max-height: var(--code-block-max-height, 600px);
|
|
13
14
|
word-break: var(--code-block-word-break, initial);
|
|
@@ -5,5 +5,6 @@ export type CodeSampleProps = {
|
|
|
5
5
|
rawContent: string;
|
|
6
6
|
'data-source'?: string;
|
|
7
7
|
'data-hash'?: string;
|
|
8
|
+
className?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function CodeSample({ rawContent, highlighted, language, 'data-source': dataSource, 'data-hash': dataHash, }: CodeSampleProps): JSX.Element;
|
|
10
|
+
export declare function CodeSample({ rawContent, highlighted, language, 'data-source': dataSource, 'data-hash': dataHash, className, }: CodeSampleProps): JSX.Element;
|
|
@@ -30,7 +30,8 @@ const ClipboardService_1 = require("../../utils/ClipboardService");
|
|
|
30
30
|
const useThemeConfig_1 = require("../../hooks/useThemeConfig");
|
|
31
31
|
const Feedback_1 = require("../../components/Feedback");
|
|
32
32
|
const hooks_1 = require("../../mocks/hooks");
|
|
33
|
-
|
|
33
|
+
const utils_1 = require("../../utils");
|
|
34
|
+
function CodeSample({ rawContent, highlighted, language, 'data-source': dataSource, 'data-hash': dataHash, className = '', }) {
|
|
34
35
|
const langClassName = language ? `language-${language}` : '';
|
|
35
36
|
const { codeSnippet: { copy = {}, report = {} } = {} } = (0, useThemeConfig_1.useThemeConfig)();
|
|
36
37
|
const [isCopied, setIsCopied] = (0, react_1.useState)(false);
|
|
@@ -47,7 +48,7 @@ function CodeSample({ rawContent, highlighted, language, 'data-source': dataSour
|
|
|
47
48
|
setIsCopied(true);
|
|
48
49
|
setTimeout(() => setIsCopied(false), copy.toasterDuration || 1500);
|
|
49
50
|
};
|
|
50
|
-
return (react_1.default.createElement(Wrapper, { className:
|
|
51
|
+
return (react_1.default.createElement(Wrapper, { className: (0, utils_1.concatClassNames)('code-sample', className), "data-component-name": "Markdown/CodeSample/CodeSample", "data-source": dataSource, "data-hash": dataHash },
|
|
51
52
|
react_1.default.createElement(CodeSampleButtonContainer, null,
|
|
52
53
|
!copy.hide && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
53
54
|
!isCopied && (react_1.default.createElement(Button, { onClick: () => copyCode(rawContent), title: translate(translationKeys.tooltipText, copy.tooltipText || 'Copy to clipboard') }, translate(translationKeys.buttonText, copy.buttonText || 'Copy'))),
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface ColorModeSwitcherProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function ColorModeSwitcher(props: ColorModeSwitcherProps): JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -31,7 +31,8 @@ const react_1 = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const ColorModeIcon_1 = require("../../icons/ColorModeIcon");
|
|
33
33
|
const hooks_1 = require("../../hooks");
|
|
34
|
-
function ColorModeSwitcher() {
|
|
34
|
+
function ColorModeSwitcher(props) {
|
|
35
|
+
const { className } = props;
|
|
35
36
|
const themeSettings = (0, hooks_1.useThemeConfig)();
|
|
36
37
|
const colorMode = themeSettings.colorMode;
|
|
37
38
|
const [activeColorMode, setActiveColorMode] = (0, react_1.useState)('');
|
|
@@ -53,7 +54,7 @@ function ColorModeSwitcher() {
|
|
|
53
54
|
document.documentElement.classList.remove('notransition');
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
|
-
return (react_1.default.createElement(Wrapper, { "data-component-name": "ColorModeSwitcher/ColorModeSwitcher", onClick: handelChangeColorMode, modes: modes, role: "link" }, modes.map((mode) => (react_1.default.createElement(ColorModeIcon_1.ColorModeIcon, { mode: mode, key: mode })))));
|
|
57
|
+
return (react_1.default.createElement(Wrapper, { "data-component-name": "ColorModeSwitcher/ColorModeSwitcher", onClick: handelChangeColorMode, modes: modes, role: "link", className: className }, modes.map((mode) => (react_1.default.createElement(ColorModeIcon_1.ColorModeIcon, { mode: mode, key: mode })))));
|
|
57
58
|
}
|
|
58
59
|
exports.ColorModeSwitcher = ColorModeSwitcher;
|
|
59
60
|
const Wrapper = styled_components_1.default.div `
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CommentProps } from '../../components/Feedback';
|
|
3
|
-
export declare const Comment: ({ settings, onSubmit, onCancel }: CommentProps) => JSX.Element;
|
|
3
|
+
export declare const Comment: ({ settings, onSubmit, onCancel, className }: CommentProps) => JSX.Element;
|
|
@@ -31,7 +31,7 @@ const React = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const Button_1 = require("../../components/Button/Button");
|
|
33
33
|
const hooks_1 = require("../../mocks/hooks");
|
|
34
|
-
const Comment = ({ settings, onSubmit, onCancel }) => {
|
|
34
|
+
const Comment = ({ settings, onSubmit, onCancel, className }) => {
|
|
35
35
|
const { label, submitText } = settings || {};
|
|
36
36
|
const [text, setText] = React.useState('');
|
|
37
37
|
const [submitValue, setSubmitValue] = React.useState('');
|
|
@@ -52,10 +52,10 @@ const Comment = ({ settings, onSubmit, onCancel }) => {
|
|
|
52
52
|
setText(e.target.value);
|
|
53
53
|
};
|
|
54
54
|
if (submitValue) {
|
|
55
|
-
return (React.createElement(Wrapper,
|
|
55
|
+
return (React.createElement(Wrapper, { className: className },
|
|
56
56
|
React.createElement(Label, { "data-translation-key": translationKeys.submitText }, translate(translationKeys.submitText, submitText || 'Thank you for helping improve our documentation!'))));
|
|
57
57
|
}
|
|
58
|
-
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Comment" },
|
|
58
|
+
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Comment", className: className },
|
|
59
59
|
React.createElement(Label, { "data-translation-key": translationKeys.label }, translate(translationKeys.label, label || 'Please share your feedback with us.')),
|
|
60
60
|
React.createElement(TextArea, { rows: 3, onChange: handleTextAreaChange }),
|
|
61
61
|
React.createElement(ButtonsContainer, null,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { RatingProps } from '../../components/Feedback';
|
|
3
|
-
export declare const Rating: ({ settings, onSubmit }: RatingProps) => JSX.Element;
|
|
3
|
+
export declare const Rating: ({ settings, onSubmit, className }: RatingProps) => JSX.Element;
|
|
@@ -31,7 +31,7 @@ const React = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const Feedback_1 = require("../../components/Feedback");
|
|
33
33
|
const hooks_1 = require("../../mocks/hooks");
|
|
34
|
-
const Rating = ({ settings, onSubmit }) => {
|
|
34
|
+
const Rating = ({ settings, onSubmit, className }) => {
|
|
35
35
|
const { label, max, submitText, comment: commentSettings, reasons: reasonsSettings, } = settings || {};
|
|
36
36
|
const [score, setScore] = React.useState(0);
|
|
37
37
|
const [comment, setComment] = React.useState('');
|
|
@@ -58,7 +58,7 @@ const Rating = ({ settings, onSubmit }) => {
|
|
|
58
58
|
return (React.createElement(Wrapper, null,
|
|
59
59
|
React.createElement(Label, { "data-translation-key": translationKeys.submitText }, translate(translationKeys.submitText, submitText || 'Thank you for helping improve our documentation!'))));
|
|
60
60
|
}
|
|
61
|
-
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Rating" },
|
|
61
|
+
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Rating", className: className },
|
|
62
62
|
React.createElement(Label, { "data-translation-key": translationKeys.label }, translate(translationKeys.label, label || 'How helpful was this page?')),
|
|
63
63
|
React.createElement(Stars, { max: max || 5, onSubmit: setScore })));
|
|
64
64
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ReasonsProps } from '../../components/Feedback';
|
|
3
|
-
export declare const Reasons: ({ settings, onSubmit }: ReasonsProps) => JSX.Element;
|
|
3
|
+
export declare const Reasons: ({ settings, onSubmit, className }: ReasonsProps) => JSX.Element;
|
|
@@ -31,7 +31,7 @@ const React = __importStar(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
32
32
|
const Button_1 = require("../../components/Button/Button");
|
|
33
33
|
const hooks_1 = require("../../mocks/hooks");
|
|
34
|
-
const Reasons = ({ settings, onSubmit }) => {
|
|
34
|
+
const Reasons = ({ settings, onSubmit, className }) => {
|
|
35
35
|
const { label, multi, buttonText, items = [] } = settings;
|
|
36
36
|
const [checkedState, setCheckedState] = React.useState(new Array(items.length).fill(false));
|
|
37
37
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
@@ -53,7 +53,7 @@ const Reasons = ({ settings, onSubmit }) => {
|
|
|
53
53
|
const submitForm = () => {
|
|
54
54
|
onSubmit({ reasons: items.filter((_, index) => !!checkedState[index]) });
|
|
55
55
|
};
|
|
56
|
-
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Reasons", "data-translation-key": translationKeys.label },
|
|
56
|
+
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Reasons", "data-translation-key": translationKeys.label, className: className },
|
|
57
57
|
React.createElement(Label, null, translate(translationKeys.label, label || 'Which statement describes your thoughts about this page?')),
|
|
58
58
|
items.map((reason, idx) => (React.createElement(OptionWrapper, { key: reason },
|
|
59
59
|
React.createElement("input", { type: input_type, value: reason, checked: checkedState[idx], name: "reasons", onChange: () => handleOptionChange(idx) }),
|
|
@@ -47,7 +47,7 @@ const Wrapper = styled_components_1.default.div `
|
|
|
47
47
|
width: 100vw;
|
|
48
48
|
height: 100vh;
|
|
49
49
|
background: var(--modal-overlay-background-color);
|
|
50
|
-
z-index:
|
|
50
|
+
z-index: var(--z-index-overlay);
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
53
53
|
justify-content: center;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { SentimentProps } from '../../components/Feedback';
|
|
3
|
-
export declare const Sentiment: ({ settings, onSubmit }: SentimentProps) => JSX.Element;
|
|
3
|
+
export declare const Sentiment: ({ settings, onSubmit, className }: SentimentProps) => JSX.Element;
|
|
@@ -32,7 +32,7 @@ const styled_components_1 = __importDefault(require("styled-components"));
|
|
|
32
32
|
const Feedback_1 = require("../../components/Feedback");
|
|
33
33
|
const Thumbs_1 = require("../../components/Feedback/Thumbs");
|
|
34
34
|
const hooks_1 = require("../../mocks/hooks");
|
|
35
|
-
const Sentiment = ({ settings, onSubmit }) => {
|
|
35
|
+
const Sentiment = ({ settings, onSubmit, className }) => {
|
|
36
36
|
const { label, submitText, comment: commentSettings, reasons: reasonsSettings } = settings || {};
|
|
37
37
|
const [score, setScore] = React.useState(0);
|
|
38
38
|
const [comment, setComment] = React.useState('');
|
|
@@ -64,7 +64,7 @@ const Sentiment = ({ settings, onSubmit }) => {
|
|
|
64
64
|
return (React.createElement(Wrapper, null,
|
|
65
65
|
React.createElement(Label, { "data-translation-key": translationKeys.submitText }, translate(translationKeys.submitText, submitText || 'Thank you for helping improve our documentation!'))));
|
|
66
66
|
}
|
|
67
|
-
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Sentiment" },
|
|
67
|
+
return (React.createElement(Wrapper, { "data-component-name": "Feedback/Sentiment", className: className },
|
|
68
68
|
React.createElement(Label, { "data-translation-key": translationKeys.label }, translate(translationKeys.label, label || 'Was this page helpful?')),
|
|
69
69
|
React.createElement(Vote, { onClick: () => setScore(1) },
|
|
70
70
|
React.createElement(Thumbs_1.ThumbUp, { text: "Yes" })),
|
|
@@ -20,6 +20,7 @@ export type RatingProps = {
|
|
|
20
20
|
items: string[];
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
+
className?: string;
|
|
23
24
|
};
|
|
24
25
|
export type SentimentProps = {
|
|
25
26
|
onSubmit: (value: {
|
|
@@ -42,6 +43,7 @@ export type SentimentProps = {
|
|
|
42
43
|
items: string[];
|
|
43
44
|
};
|
|
44
45
|
};
|
|
46
|
+
className?: string;
|
|
45
47
|
};
|
|
46
48
|
export type CommentProps = {
|
|
47
49
|
onSubmit: (value: {
|
|
@@ -52,6 +54,7 @@ export type CommentProps = {
|
|
|
52
54
|
label?: string;
|
|
53
55
|
submitText?: string;
|
|
54
56
|
};
|
|
57
|
+
className?: string;
|
|
55
58
|
};
|
|
56
59
|
export type ReasonsProps = {
|
|
57
60
|
onSubmit: (value: {
|
|
@@ -64,6 +67,7 @@ export type ReasonsProps = {
|
|
|
64
67
|
submitText?: string;
|
|
65
68
|
buttonText?: string;
|
|
66
69
|
};
|
|
70
|
+
className?: string;
|
|
67
71
|
};
|
|
68
72
|
export type ReportDialogProps = {
|
|
69
73
|
location: string;
|
|
@@ -73,4 +77,5 @@ export type ReportDialogProps = {
|
|
|
73
77
|
label?: string;
|
|
74
78
|
};
|
|
75
79
|
submitFeedback: ({ type, values, path }: SubmitFeedbackParams) => Promise<void>;
|
|
80
|
+
className?: string;
|
|
76
81
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { NavGroupRecord } from '../../types/portal';
|
|
3
3
|
interface FooterProps {
|
|
4
4
|
data: NavGroupRecord;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function CustomFooter({ data }: FooterProps): JSX.Element | null;
|
|
7
|
+
export declare function CustomFooter({ data, className }: FooterProps): JSX.Element | null;
|
|
7
8
|
export {};
|
|
@@ -8,11 +8,11 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const CustomFooterNavItem_1 = require("../../components/Footer/CustomFooterNavItem");
|
|
10
10
|
const FooterCopyright_1 = require("../../components/Footer/FooterCopyright");
|
|
11
|
-
function CustomFooter({ data }) {
|
|
11
|
+
function CustomFooter({ data, className }) {
|
|
12
12
|
if (!data) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/CustomFooter" },
|
|
15
|
+
return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/CustomFooter", className: className },
|
|
16
16
|
data.links.map((navItem, index) => {
|
|
17
17
|
return (react_1.default.createElement(CustomFooterNavItem_1.CustomFooterNavItem, { key: `${navItem.label}_${index}`, "data-cy": navItem.label, navItem: navItem }));
|
|
18
18
|
}),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { ResolvedNavItem } from '../../types/portal';
|
|
3
3
|
interface CustomFooterNavItemProps {
|
|
4
4
|
navItem: ResolvedNavItem;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function CustomFooterNavItem({ navItem }: CustomFooterNavItemProps): JSX.Element;
|
|
7
|
+
export declare function CustomFooterNavItem({ navItem, className }: CustomFooterNavItemProps): JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -7,9 +7,9 @@ exports.CustomFooterNavItem = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Link_1 = require("../../mocks/Link");
|
|
10
|
-
function CustomFooterNavItem({ navItem }) {
|
|
10
|
+
function CustomFooterNavItem({ navItem, className }) {
|
|
11
11
|
const item = navItem;
|
|
12
|
-
return (react_1.default.createElement(FooterItem, { "data-component-name": "Navbar/NavbarItem" },
|
|
12
|
+
return (react_1.default.createElement(FooterItem, { "data-component-name": "Navbar/NavbarItem", className: className },
|
|
13
13
|
react_1.default.createElement(FooterLink, { to: item.link },
|
|
14
14
|
react_1.default.createElement(FooterLabel, null, item.label))));
|
|
15
15
|
}
|
|
@@ -4,6 +4,7 @@ export declare function Footer(): JSX.Element | null;
|
|
|
4
4
|
interface FooterPresentationalComponentProps {
|
|
5
5
|
items: ResolvedNavItem[];
|
|
6
6
|
copyrightText: string;
|
|
7
|
+
className?: string;
|
|
7
8
|
}
|
|
8
|
-
export declare function FooterPresentationalComponent({ items, copyrightText, }: FooterPresentationalComponentProps): JSX.Element | null;
|
|
9
|
+
export declare function FooterPresentationalComponent({ items, copyrightText, className, }: FooterPresentationalComponentProps): JSX.Element | null;
|
|
9
10
|
export {};
|
|
@@ -19,8 +19,8 @@ function Footer() {
|
|
|
19
19
|
return (react_1.default.createElement(FooterPresentationalComponent, { items: items, copyrightText: copyrightText }));
|
|
20
20
|
}
|
|
21
21
|
exports.Footer = Footer;
|
|
22
|
-
function FooterPresentationalComponent({ items, copyrightText, }) {
|
|
23
|
-
return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/Footer" },
|
|
22
|
+
function FooterPresentationalComponent({ items, copyrightText, className, }) {
|
|
23
|
+
return (react_1.default.createElement(FooterContainer, { "data-component-name": "Footer/Footer", className: className },
|
|
24
24
|
react_1.default.createElement(FooterColumns_1.FooterColumns, { columns: items }),
|
|
25
25
|
react_1.default.createElement(FooterCopyright_1.FooterCopyright, { copyrightText: copyrightText })));
|
|
26
26
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import type { ResolvedNavItem } from '../../types/portal';
|
|
3
3
|
interface FooterColumnProps {
|
|
4
4
|
column: ResolvedNavItem;
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function FooterColumn({ column }: FooterColumnProps): JSX.Element;
|
|
7
|
+
export declare function FooterColumn({ column, className }: FooterColumnProps): JSX.Element;
|
|
7
8
|
export declare const FooterLinkIcon: import("styled-components").StyledComponent<"i", any, {
|
|
8
9
|
url?: string | undefined;
|
|
9
10
|
withIconPadding: boolean;
|
|
@@ -31,11 +31,11 @@ const react_1 = __importDefault(require("react"));
|
|
|
31
31
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
const Link_1 = require("../../mocks/Link");
|
|
33
33
|
const hooks_1 = require("../../mocks/hooks");
|
|
34
|
-
function FooterColumn({ column }) {
|
|
34
|
+
function FooterColumn({ column, className }) {
|
|
35
35
|
var _a;
|
|
36
36
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
37
37
|
const hasIcon = column.items ? column.items.some((item) => !!item.icon) : false;
|
|
38
|
-
return (react_1.default.createElement(FooterColumnContainer, { "data-component-name": "Footer/FooterColumn" },
|
|
38
|
+
return (react_1.default.createElement(FooterColumnContainer, { "data-component-name": "Footer/FooterColumn", className: className },
|
|
39
39
|
react_1.default.createElement(FooterColumnTitle, { withIconPadding: hasIcon }, translate(column.labelTranslationKey, column.label)), (_a = column === null || column === void 0 ? void 0 : column.items) === null || _a === void 0 ? void 0 :
|
|
40
40
|
_a.map((columnItem, columnItemIndex) => {
|
|
41
41
|
if (columnItem.type === 'error') {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import type { ResolvedNavItem } from '../../types/portal';
|
|
3
3
|
interface FooterColumnsProps {
|
|
4
4
|
columns: ResolvedNavItem[];
|
|
5
|
+
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function FooterColumns({ columns }: FooterColumnsProps): JSX.Element | null;
|
|
7
|
+
export declare function FooterColumns({ columns, className }: FooterColumnsProps): JSX.Element | null;
|
|
7
8
|
export declare const FooterColumnsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
9
|
export declare const FooterRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
10
|
export {};
|
|
@@ -7,11 +7,11 @@ exports.FooterRow = exports.FooterColumnsContainer = exports.FooterColumns = voi
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const FooterColumn_1 = require("../../components/Footer/FooterColumn");
|
|
10
|
-
function FooterColumns({ columns }) {
|
|
10
|
+
function FooterColumns({ columns, className }) {
|
|
11
11
|
if (!(columns === null || columns === void 0 ? void 0 : columns.length)) {
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
|
-
return (react_1.default.createElement(exports.FooterColumnsContainer, { "data-component-name": "Footer/FooterColumns" },
|
|
14
|
+
return (react_1.default.createElement(exports.FooterColumnsContainer, { "data-component-name": "Footer/FooterColumns", className: className },
|
|
15
15
|
react_1.default.createElement(exports.FooterRow, null, columns.map((column, index) => (react_1.default.createElement(FooterColumn_1.FooterColumn, { key: `${column.label}_${index}`, column: column }))))));
|
|
16
16
|
}
|
|
17
17
|
exports.FooterColumns = FooterColumns;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface FooterCopyrightProps {
|
|
3
3
|
copyrightText: string;
|
|
4
|
+
className?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare function FooterCopyright({ copyrightText }: FooterCopyrightProps): JSX.Element | null;
|
|
6
|
+
export declare function FooterCopyright({ copyrightText, className, }: FooterCopyrightProps): JSX.Element | null;
|
|
6
7
|
export {};
|
|
@@ -7,12 +7,12 @@ exports.FooterCopyright = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const hooks_1 = require("../../mocks/hooks");
|
|
10
|
-
function FooterCopyright({ copyrightText = '' }) {
|
|
10
|
+
function FooterCopyright({ copyrightText = '', className, }) {
|
|
11
11
|
const { translate } = (0, hooks_1.useTranslate)();
|
|
12
12
|
const translationKeys = {
|
|
13
13
|
copyrightText: 'theme.footer.copyrightText',
|
|
14
14
|
};
|
|
15
|
-
return copyrightText ? (react_1.default.createElement(Wrapper, { "data-component-name": "Footer/FooterCopyright", "data-translation-key": translationKeys.copyrightText }, translate(translationKeys.copyrightText, copyrightText))) : null;
|
|
15
|
+
return copyrightText ? (react_1.default.createElement(Wrapper, { className: className, "data-component-name": "Footer/FooterCopyright", "data-translation-key": translationKeys.copyrightText }, translate(translationKeys.copyrightText, copyrightText))) : null;
|
|
16
16
|
}
|
|
17
17
|
exports.FooterCopyright = FooterCopyright;
|
|
18
18
|
const Wrapper = styled_components_1.default.section `
|
|
@@ -12,6 +12,4 @@ export declare const JsonViewer: import("styled-components").StyledComponent<Rea
|
|
|
12
12
|
'data-component-name': string;
|
|
13
13
|
} & JsonProps, "data-component-name">;
|
|
14
14
|
export declare const JsonViewerWrap: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const StyledCodeBlock: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
-
'data-component-name': string;
|
|
17
|
-
}, "data-component-name">;
|
|
15
|
+
export declare const StyledCodeBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -53,7 +53,7 @@ function LastUpdated(props) {
|
|
|
53
53
|
const text = format === 'timeago'
|
|
54
54
|
? translate(translationKey, 'Last updated ')
|
|
55
55
|
: translate(translationKey, 'Last updated on');
|
|
56
|
-
return (React.createElement(Wrapper, { "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
56
|
+
return (React.createElement(Wrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === 'timeago', "data-print-datetime": isoDate, "data-translation-key": translationKey },
|
|
57
57
|
text,
|
|
58
58
|
React.createElement("time", { dateTime: isoDate }, lastUpdatedString)));
|
|
59
59
|
}
|
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ContainerWrapper = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
exports.ContainerWrapper = styled_components_1.default.section.attrs(() => ({
|
|
8
|
+
exports.ContainerWrapper = styled_components_1.default.section.attrs(({ className }) => ({
|
|
9
9
|
'data-component-name': 'Markdown/ContainerWrapper',
|
|
10
|
+
className,
|
|
10
11
|
})) `
|
|
11
12
|
max-width: var(--md-container-max-width);
|
|
12
13
|
width: 90%;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
export declare function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, }: PropsWithChildren<{
|
|
2
|
+
export declare function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, className, }: PropsWithChildren<{
|
|
3
3
|
level: number;
|
|
4
4
|
id: string;
|
|
5
5
|
'data-source'?: string;
|
|
6
6
|
'data-hash'?: string;
|
|
7
|
+
className?: string;
|
|
7
8
|
}>): JSX.Element;
|
|
@@ -31,12 +31,12 @@ const icons_1 = require("../../icons");
|
|
|
31
31
|
* Class name for all MD tags
|
|
32
32
|
*/
|
|
33
33
|
const mdClassName = 'md';
|
|
34
|
-
function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, }) {
|
|
34
|
+
function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, className, }) {
|
|
35
35
|
const linkEl = (react_1.default.createElement("a", { href: `#${id}`, className: (0, utils_1.concatClassNames)('anchor', 'before') },
|
|
36
36
|
react_1.default.createElement(icons_1.AnchorIcon, null)));
|
|
37
37
|
return (0, react_1.createElement)(`h${level}`, {
|
|
38
38
|
id,
|
|
39
|
-
className: (0, utils_1.concatClassNames)('heading-anchor', mdClassName),
|
|
39
|
+
className: (0, utils_1.concatClassNames)('heading-anchor', mdClassName, className),
|
|
40
40
|
'data-component-name': 'Markdown/Heading',
|
|
41
41
|
'data-source': dataSource,
|
|
42
42
|
'data-hash': dataHash,
|
|
@@ -13,6 +13,7 @@ type MarkdownLayoutProps = {
|
|
|
13
13
|
lastModified?: string | null;
|
|
14
14
|
nextPage?: ResolvedNavItemWithLink | null;
|
|
15
15
|
prevPage?: ResolvedNavItemWithLink | null;
|
|
16
|
+
className?: string;
|
|
16
17
|
};
|
|
17
|
-
export declare function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, }: MarkdownLayoutProps): JSX.Element;
|
|
18
|
+
export declare function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, className, }: MarkdownLayoutProps): JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -14,7 +14,7 @@ const LastUpdated_1 = require("../../components/LastUpdated/LastUpdated");
|
|
|
14
14
|
const hooks_1 = require("../../hooks");
|
|
15
15
|
const hooks_2 = require("../../mocks/hooks");
|
|
16
16
|
const Breadcrumbs_1 = require("../../components/Breadcrumbs");
|
|
17
|
-
function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, }) {
|
|
17
|
+
function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, lastModified, nextPage, prevPage, className, }) {
|
|
18
18
|
const { markdown } = (0, hooks_1.useThemeConfig)();
|
|
19
19
|
const { translate } = (0, hooks_2.useTranslate)();
|
|
20
20
|
const translationKeys = {
|
|
@@ -22,7 +22,7 @@ function MarkdownLayout({ tableOfContent, markdownWrapper, feedback, editPage, l
|
|
|
22
22
|
};
|
|
23
23
|
const { editPage: themeEditPage } = markdown || {};
|
|
24
24
|
const mergedConf = editPage ? Object.assign(Object.assign({}, themeEditPage), editPage) : undefined;
|
|
25
|
-
return (react_1.default.createElement(PageWrapper_1.PageWrapper, { "data-component-name": "Markdown/MarkdownLayout" },
|
|
25
|
+
return (react_1.default.createElement(PageWrapper_1.PageWrapper, { "data-component-name": "Markdown/MarkdownLayout", className: className },
|
|
26
26
|
react_1.default.createElement(ContainerWrapper_1.ContainerWrapper, { withToc: true },
|
|
27
27
|
react_1.default.createElement(Breadcrumbs, null),
|
|
28
28
|
react_1.default.createElement(LayoutTop, null,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
2
|
export declare const baseTable: FlattenSimpleInterpolation;
|
|
3
3
|
export declare function headingAnchor(className?: string): FlattenSimpleInterpolation;
|
|
4
|
-
export declare const MarkdownWrapper: import("styled-components").StyledComponent<"main", any, {
|
|
5
|
-
'data-component-name': string;
|
|
6
|
-
}, "data-component-name">;
|
|
4
|
+
export declare const MarkdownWrapper: import("styled-components").StyledComponent<"main", any, {}, never>;
|
|
@@ -138,8 +138,9 @@ function headingAnchor(className = 'anchor') {
|
|
|
138
138
|
`;
|
|
139
139
|
}
|
|
140
140
|
exports.headingAnchor = headingAnchor;
|
|
141
|
-
exports.MarkdownWrapper = styled_components_1.default.main.attrs(() => ({
|
|
141
|
+
exports.MarkdownWrapper = styled_components_1.default.main.attrs(({ className }) => ({
|
|
142
142
|
'data-component-name': 'Markdown/MarkdownWrapper',
|
|
143
|
+
className,
|
|
143
144
|
})) `
|
|
144
145
|
font-weight: var(--font-weight-regular);
|
|
145
146
|
padding: 0;
|
|
@@ -3,6 +3,7 @@ type MermaidProps = {
|
|
|
3
3
|
diagramHtml: string;
|
|
4
4
|
'data-source'?: string;
|
|
5
5
|
'data-hash'?: string;
|
|
6
|
+
className?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function Mermaid({ diagramHtml, 'data-source': dataSource, 'data-hash': dataHash, }: MermaidProps): JSX.Element;
|
|
8
|
+
export declare function Mermaid({ diagramHtml, 'data-source': dataSource, 'data-hash': dataHash, className, }: MermaidProps): JSX.Element;
|
|
8
9
|
export {};
|