@redocly/theme 0.82.2-rc.3 → 0.82.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Badge/Badge.d.ts +8 -5
- package/lib/components/Badge/Badge.js +9 -3
- package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -1
- package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/components/Buttons/CopyButton.d.ts +2 -2
- package/lib/components/Buttons/CopyButton.js +3 -3
- package/lib/components/Buttons/EditPageButton.d.ts +2 -3
- package/lib/components/Buttons/EditPageButton.js +2 -2
- package/lib/components/Buttons/EmailButton.d.ts +4 -5
- package/lib/components/Buttons/EmailButton.js +2 -2
- package/lib/components/Buttons/NewTabButton.d.ts +4 -5
- package/lib/components/Buttons/NewTabButton.js +2 -2
- package/lib/components/Catalog/Catalog.d.ts +3 -2
- package/lib/components/Catalog/Catalog.js +1 -5
- package/lib/components/Catalog/CatalogActions.d.ts +1 -2
- package/lib/components/Catalog/CatalogCard.d.ts +1 -2
- package/lib/components/Catalog/CatalogHighlight.d.ts +1 -2
- package/lib/components/Catalog/CatalogInfoBlock.d.ts +1 -2
- package/lib/components/CodeBlock/CodeBlockContainer.d.ts +14 -5
- package/lib/components/CodeBlock/CodeBlockContainer.js +9 -4
- package/lib/components/CodeBlock/CodeBlockControls.js +2 -0
- package/lib/components/CodeBlock/CodeBlockTabs.d.ts +1 -2
- package/lib/components/CodeBlock/variables.js +2 -2
- package/lib/components/ColorModeSwitcher/ColorModeIcon.d.ts +4 -8
- package/lib/components/ColorModeSwitcher/ColorModeIcon.js +5 -3
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +1 -2
- package/lib/components/DatePicker/DatePicker.d.ts +2 -3
- package/lib/components/Dropdown/Dropdown.d.ts +2 -3
- package/lib/components/Dropdown/DropdownMenu.d.ts +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -2
- package/lib/components/Feedback/Comment.d.ts +2 -1
- package/lib/components/Feedback/Comment.js +3 -3
- package/lib/components/Feedback/ReportDialog.js +1 -1
- package/lib/components/Filter/FilterContent.d.ts +1 -3
- package/lib/components/Filter/FilterContent.js +3 -3
- package/lib/components/Filter/FilterInput.d.ts +1 -2
- package/lib/components/Filter/FilterOption.d.ts +8 -4
- package/lib/components/Filter/FilterOption.js +7 -4
- package/lib/components/Filter/FilterOptionLabel.d.ts +5 -3
- package/lib/components/Filter/FilterOptionLabel.js +6 -3
- package/lib/components/Filter/FilterOptions.d.ts +5 -3
- package/lib/components/Filter/FilterOptions.js +6 -3
- package/lib/components/Filter/FilterPopover.d.ts +1 -2
- package/lib/components/Filter/FilterSelect.js +1 -4
- package/lib/components/Filter/FilterTitle.d.ts +5 -3
- package/lib/components/Filter/FilterTitle.js +6 -3
- package/lib/components/Filter/variables.js +2 -1
- package/lib/components/Footer/Footer.d.ts +1 -2
- package/lib/components/Footer/FooterColumn.d.ts +1 -2
- package/lib/components/Footer/FooterCopyright.d.ts +1 -2
- package/lib/components/Footer/FooterItem.d.ts +1 -2
- package/lib/components/Footer/FooterLogo.d.ts +3 -4
- package/lib/components/Footer/FooterLogo.js +6 -1
- package/lib/components/Image/Image.d.ts +2 -2
- package/lib/components/JsonViewer/JsonViewer.d.ts +2 -2
- package/lib/components/LanguagePicker/LanguagePicker.d.ts +1 -2
- package/lib/components/LastUpdated/LastUpdated.d.ts +1 -1
- package/lib/components/Link/Link.d.ts +1 -1
- package/lib/components/Loading/Loading.d.ts +2 -2
- package/lib/components/Logo/Logo.d.ts +1 -2
- package/lib/components/Markdown/Markdown.d.ts +12 -0
- package/lib/components/Markdown/Markdown.js +6 -7
- package/lib/components/Markdown/variables.js +10 -5
- package/lib/components/Menu/Menu.d.ts +1 -2
- package/lib/components/Menu/MenuContainer.d.ts +4 -4
- package/lib/components/Menu/MenuContainer.js +10 -3
- package/lib/components/Menu/MenuMobile.d.ts +1 -2
- package/lib/components/Menu/variables.js +2 -0
- package/lib/components/Navbar/NavbarItem.d.ts +1 -2
- package/lib/components/Navbar/NavbarItem.js +1 -1
- package/lib/components/Navbar/NavbarLogo.d.ts +3 -4
- package/lib/components/Navbar/NavbarLogo.js +6 -3
- package/lib/components/Navbar/NavbarMenu.d.ts +1 -2
- package/lib/components/PageNavigation/NextButton.d.ts +1 -2
- package/lib/components/PageNavigation/PageNavigation.d.ts +1 -2
- package/lib/components/PageNavigation/PreviousButton.d.ts +1 -2
- package/lib/components/Panel/Panel.d.ts +1 -2
- package/lib/components/Panel/PanelBody.d.ts +2 -3
- package/lib/components/Portal/Portal.d.ts +2 -3
- package/lib/components/Portal/Portal.js +2 -2
- package/lib/components/Product/Product.d.ts +1 -2
- package/lib/components/Search/Search.d.ts +1 -2
- package/lib/components/Search/SearchDialog.d.ts +1 -2
- package/lib/components/Search/SearchInput.d.ts +1 -2
- package/lib/components/Search/SearchItem.d.ts +1 -1
- package/lib/components/Search/SearchRecent.d.ts +1 -2
- package/lib/components/Search/SearchShortcut.d.ts +1 -2
- package/lib/components/Search/SearchSuggestedPages.d.ts +1 -2
- package/lib/components/Search/SearchTrigger.d.ts +1 -2
- package/lib/components/Search/variables.js +2 -2
- package/lib/components/Segmented/Segmented.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +3 -3
- package/lib/components/Sidebar/Sidebar.d.ts +1 -2
- package/lib/components/SidebarActions/ChangeViewButton.d.ts +2 -3
- package/lib/components/SidebarActions/SidebarActions.d.ts +2 -2
- package/lib/components/SidebarLogo/SidebarLogo.d.ts +3 -3
- package/lib/components/TableOfContent/TableOfContent.d.ts +1 -2
- package/lib/components/Tag/Tag.d.ts +1 -1
- package/lib/components/UserMenu/UserAvatar.d.ts +1 -2
- package/lib/components/UserMenu/UserInfoMenuItem.d.ts +1 -2
- package/lib/components/UserMenu/UserMenu.d.ts +1 -2
- package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -2
- package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
- package/lib/layouts/DocumentationLayout.js +7 -0
- package/lib/layouts/NotFound.js +2 -2
- package/lib/layouts/RootLayout.d.ts +2 -3
- package/lib/markdoc/components/InlineSvg/InlineSvg.d.ts +2 -1
- package/lib/markdoc/components/InlineSvg/InlineSvg.js +2 -2
- package/lib/markdoc/components/Tabs/variables.js +5 -5
- package/package.json +4 -4
- package/src/components/Badge/Badge.tsx +13 -3
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -2
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
- package/src/components/Buttons/CopyButton.tsx +7 -5
- package/src/components/Buttons/EditPageButton.tsx +3 -3
- package/src/components/Buttons/EmailButton.tsx +4 -4
- package/src/components/Buttons/NewTabButton.tsx +7 -4
- package/src/components/Catalog/Catalog.tsx +5 -7
- package/src/components/Catalog/CatalogActions.tsx +1 -1
- package/src/components/Catalog/CatalogCard.tsx +3 -1
- package/src/components/Catalog/CatalogHighlight.tsx +1 -1
- package/src/components/Catalog/CatalogInfoBlock.tsx +1 -1
- package/src/components/CodeBlock/CodeBlockContainer.tsx +19 -6
- package/src/components/CodeBlock/CodeBlockControls.tsx +2 -0
- package/src/components/CodeBlock/CodeBlockTabs.tsx +1 -1
- package/src/components/CodeBlock/variables.ts +2 -2
- package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +8 -4
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/Dropdown/Dropdown.tsx +2 -2
- package/src/components/Dropdown/DropdownMenu.tsx +1 -1
- package/src/components/Dropdown/DropdownMenuItem.tsx +1 -1
- package/src/components/Feedback/Comment.tsx +4 -2
- package/src/components/Feedback/ReportDialog.tsx +1 -0
- package/src/components/Filter/FilterContent.tsx +2 -2
- package/src/components/Filter/FilterInput.tsx +1 -1
- package/src/components/Filter/FilterOption.tsx +20 -4
- package/src/components/Filter/FilterOptionLabel.tsx +10 -3
- package/src/components/Filter/FilterOptions.tsx +10 -3
- package/src/components/Filter/FilterPopover.tsx +1 -1
- package/src/components/Filter/FilterSelect.tsx +1 -4
- package/src/components/Filter/FilterTitle.tsx +10 -3
- package/src/components/Filter/variables.ts +2 -1
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/FooterColumn.tsx +1 -1
- package/src/components/Footer/FooterCopyright.tsx +1 -1
- package/src/components/Footer/FooterItem.tsx +1 -1
- package/src/components/Footer/FooterLogo.tsx +8 -1
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LanguagePicker/LanguagePicker.tsx +1 -1
- package/src/components/LastUpdated/LastUpdated.tsx +1 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Loading/Loading.tsx +2 -2
- package/src/components/Logo/Logo.tsx +1 -1
- package/src/components/Markdown/Markdown.tsx +17 -8
- package/src/components/Markdown/variables.ts +10 -5
- package/src/components/Menu/Menu.tsx +1 -1
- package/src/components/Menu/MenuContainer.tsx +9 -5
- package/src/components/Menu/MenuMobile.tsx +1 -1
- package/src/components/Menu/variables.ts +2 -0
- package/src/components/Navbar/Navbar.tsx +1 -0
- package/src/components/Navbar/NavbarItem.tsx +2 -2
- package/src/components/Navbar/NavbarLogo.tsx +8 -3
- package/src/components/Navbar/NavbarMenu.tsx +1 -1
- package/src/components/PageNavigation/NextButton.tsx +1 -1
- package/src/components/PageNavigation/PageNavigation.tsx +1 -1
- package/src/components/PageNavigation/PreviousButton.tsx +1 -1
- package/src/components/Panel/Panel.tsx +1 -1
- package/src/components/Panel/PanelBody.ts +2 -2
- package/src/components/Portal/Portal.tsx +6 -3
- package/src/components/Product/Product.tsx +1 -1
- package/src/components/Search/Search.tsx +1 -1
- package/src/components/Search/SearchDialog.tsx +1 -1
- package/src/components/Search/SearchInput.tsx +1 -1
- package/src/components/Search/SearchItem.tsx +1 -1
- package/src/components/Search/SearchRecent.tsx +1 -1
- package/src/components/Search/SearchShortcut.tsx +1 -1
- package/src/components/Search/SearchSuggestedPages.tsx +1 -1
- package/src/components/Search/SearchTrigger.tsx +1 -1
- package/src/components/Search/variables.ts +2 -2
- package/src/components/Segmented/Segmented.tsx +1 -1
- package/src/components/Select/Select.tsx +3 -3
- package/src/components/Sidebar/Sidebar.tsx +1 -1
- package/src/components/SidebarActions/ChangeViewButton.tsx +2 -2
- package/src/components/SidebarActions/SidebarActions.tsx +2 -2
- package/src/components/SidebarLogo/SidebarLogo.tsx +3 -3
- package/src/components/TableOfContent/TableOfContent.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/UserMenu/UserAvatar.tsx +1 -1
- package/src/components/UserMenu/UserInfoMenuItem.tsx +1 -1
- package/src/components/UserMenu/UserMenu.tsx +1 -1
- package/src/components/UserMenu/UserMenuMobile.tsx +1 -1
- package/src/layouts/DocumentationLayout.tsx +7 -0
- package/src/layouts/NotFound.tsx +3 -3
- package/src/layouts/RootLayout.tsx +2 -2
- package/src/markdoc/components/InlineSvg/InlineSvg.tsx +8 -1
- package/src/markdoc/components/Tabs/variables.ts +5 -5
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterOptionLabel = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterOptionLabel(props) {
|
|
10
|
+
return react_1.default.createElement(FilterOptionLabelComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterOptionLabel" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterOptionLabel = FilterOptionLabel;
|
|
13
|
+
const FilterOptionLabelComponent = styled_components_1.default.label `
|
|
11
14
|
cursor: pointer;
|
|
12
15
|
font-size: var(--filter-option-label-font-size);
|
|
13
16
|
color: var(--filter-option-label-color);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterOptionsProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function FilterOptions(props: FilterOptionsProps): JSX.Element;
|
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterOptions = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterOptions(props) {
|
|
10
|
+
return react_1.default.createElement(FilterOptionsComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterOptions" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterOptions = FilterOptions;
|
|
13
|
+
const FilterOptionsComponent = styled_components_1.default.div `
|
|
11
14
|
padding: var(--filter-options-padding-vertical) var(--filter-options-padding-horizontal);
|
|
12
15
|
display: flex;
|
|
13
16
|
flex-direction: column;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedFilter } from '../../core/types';
|
|
3
3
|
import type { ThemeConfig } from '../../config';
|
|
4
|
-
type FilterPopoverProps = {
|
|
4
|
+
export type FilterPopoverProps = {
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
filters: ResolvedFilter[];
|
|
7
7
|
filterValuesCasing?: NonNullable<ThemeConfig['catalog']>[string]['filterValuesCasing'];
|
|
8
8
|
};
|
|
9
9
|
export declare function FilterPopover({ onClose, filters, filterValuesCasing, }: FilterPopoverProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -55,9 +55,6 @@ const StyledSelect = (0, styled_components_1.default)(Select_1.Select) `
|
|
|
55
55
|
:hover {
|
|
56
56
|
border-color: var(--filter-select-border-color-hover);
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
${FilterOption_1.FilterOption} {
|
|
60
|
-
margin: var(--filter-select-option-margin);
|
|
61
|
-
}
|
|
58
|
+
--filter-option-margin: var(--filter-select-option-margin);
|
|
62
59
|
`;
|
|
63
60
|
//# sourceMappingURL=FilterSelect.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export type FilterTitleProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function FilterTitle(props: FilterTitleProps): JSX.Element;
|
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FilterTitle = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
function FilterTitle(props) {
|
|
10
|
+
return react_1.default.createElement(FilterTitleComponent, Object.assign({}, props, { "data-component-name": "Filter/FilterTitle" }));
|
|
11
|
+
}
|
|
12
|
+
exports.FilterTitle = FilterTitle;
|
|
13
|
+
const FilterTitleComponent = styled_components_1.default.div `
|
|
11
14
|
font-weight: var(--filter-title-font-weight);
|
|
12
15
|
font-size: var(--filter-title-font-size);
|
|
13
16
|
line-height: var(--filter-title-line-height);
|
|
@@ -19,7 +19,8 @@ exports.filter = (0, styled_components_1.css) `
|
|
|
19
19
|
--filter-options-gap: var(--spacing-sm);
|
|
20
20
|
|
|
21
21
|
--filter-option-font-size: var(--font-size-base);
|
|
22
|
-
--filter-option-gap: var(--spacing-xs);
|
|
22
|
+
--filter-option-gap: var(--spacing-xs);
|
|
23
|
+
--filter-option-margin: 0;
|
|
23
24
|
|
|
24
25
|
--filter-option-label-font-size: var(--font-size-base);
|
|
25
26
|
--filter-option-label-color: var(--text-color-secondary);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItem } from '@redocly/config';
|
|
3
|
-
type FooterColumnProps = {
|
|
3
|
+
export type FooterColumnProps = {
|
|
4
4
|
column: ResolvedNavItem;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function FooterColumn({ column, className }: FooterColumnProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type FooterCopyrightProps = {
|
|
2
|
+
export type FooterCopyrightProps = {
|
|
3
3
|
copyrightText: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function FooterCopyright({ copyrightText, className, }: FooterCopyrightProps): JSX.Element | null;
|
|
7
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItem } from '@redocly/config';
|
|
3
|
-
type FooterItemProps = {
|
|
3
|
+
export type FooterItemProps = {
|
|
4
4
|
item: ResolvedNavItem;
|
|
5
5
|
iconsOnly?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function FooterItem({ item, iconsOnly }: FooterItemProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, "data-component-name">;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LogoProps } from '../../components/Logo/Logo';
|
|
3
|
+
export declare function FooterLogo(props: LogoProps): React.JSX.Element;
|
|
@@ -4,9 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FooterLogo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
9
|
const Logo_1 = require("../../components/Logo/Logo");
|
|
9
|
-
|
|
10
|
+
function FooterLogo(props) {
|
|
11
|
+
return react_1.default.createElement(FooterLogoComponent, Object.assign({}, props, { "data-component-name": "Footer/FooterLogo" }));
|
|
12
|
+
}
|
|
13
|
+
exports.FooterLogo = FooterLogo;
|
|
14
|
+
const FooterLogoComponent = (0, styled_components_1.default)(Logo_1.Logo) `
|
|
10
15
|
--logo-height: var(--footer-logo-height);
|
|
11
16
|
--logo-width: var(--footer-logo-width);
|
|
12
17
|
--logo-max-width: var(--footer-logo-max-width);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export type ImageProps = {
|
|
3
3
|
src?: string;
|
|
4
4
|
srcSet?: string;
|
|
5
5
|
alt?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function Image(props: ImageProps):
|
|
8
|
+
export declare function Image(props: ImageProps): JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JsonProps = {
|
|
3
3
|
data: any;
|
|
4
4
|
className?: string;
|
|
5
5
|
expandLevel: number;
|
|
6
6
|
startLineNumber?: number;
|
|
7
7
|
onCopyClick?: () => void;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export declare const JsonViewer: React.NamedExoticComponent<JsonProps>;
|
|
10
10
|
export declare const JsonViewerWrap: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type LanguagePickerProps = {
|
|
2
|
+
export type LanguagePickerProps = {
|
|
3
3
|
onChangeLanguage: (newLang: string) => void;
|
|
4
4
|
onlyIcon?: boolean;
|
|
5
5
|
placement?: 'top' | 'bottom';
|
|
6
6
|
alignment?: 'start' | 'end';
|
|
7
7
|
};
|
|
8
8
|
export declare function LanguagePicker(props: LanguagePickerProps): JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LogoConfig } from '../../core/types';
|
|
3
|
-
type LogoProps = {
|
|
3
|
+
export type LogoProps = {
|
|
4
4
|
config: LogoConfig;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function Logo({ config, className, ...otherProps }: LogoProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
export type MarkdownProps = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
inline?: boolean;
|
|
6
|
+
base?: boolean;
|
|
7
|
+
ref?: (node: HTMLDivElement) => void;
|
|
8
|
+
}>;
|
|
1
9
|
export declare const Markdown: import("styled-components").StyledComponent<"main", any, {
|
|
10
|
+
className?: string | undefined;
|
|
2
11
|
compact?: boolean | undefined;
|
|
3
12
|
inline?: boolean | undefined;
|
|
4
13
|
base?: boolean | undefined;
|
|
14
|
+
ref?: ((node: HTMLDivElement) => void) | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
children?: import("react").ReactNode;
|
|
5
17
|
}, never>;
|
|
@@ -33,14 +33,13 @@ exports.Markdown = styled_components_1.default.main.attrs(({ className }) => ({
|
|
|
33
33
|
'data-component-name': 'Markdown/Markdown',
|
|
34
34
|
className,
|
|
35
35
|
})) `
|
|
36
|
-
font-
|
|
36
|
+
font-size: var(--md-content-font-size);
|
|
37
|
+
font-family: var(--md-content-font-family);
|
|
38
|
+
font-weight: var(--md-content-font-weight);
|
|
39
|
+
line-height: var(--md-content-line-height);
|
|
40
|
+
color: var(--md-content-text-color);
|
|
37
41
|
padding: 0;
|
|
38
42
|
|
|
39
|
-
color: var(--text-color-secondary);
|
|
40
|
-
font-size: var(--font-size-base);
|
|
41
|
-
font-family: var(--font-family-base);
|
|
42
|
-
line-height: var(--line-height-base);
|
|
43
|
-
|
|
44
43
|
${({ compact }) => compact &&
|
|
45
44
|
(0, styled_components_1.css) `
|
|
46
45
|
p:first-child {
|
|
@@ -54,7 +53,7 @@ exports.Markdown = styled_components_1.default.main.attrs(({ className }) => ({
|
|
|
54
53
|
${({ base }) => base &&
|
|
55
54
|
(0, styled_components_1.css) `
|
|
56
55
|
p {
|
|
57
|
-
font-size: var(--font-size
|
|
56
|
+
font-size: var(--md-content-font-size);
|
|
58
57
|
}
|
|
59
58
|
`}
|
|
60
59
|
|
|
@@ -9,6 +9,11 @@ exports.markdown = (0, styled_components_1.css) `
|
|
|
9
9
|
|
|
10
10
|
--md-content-max-width: 910px;
|
|
11
11
|
--md-content-padding: 25px 0px 25px 0px; // @presenter Spacing
|
|
12
|
+
--md-content-font-size: var(--font-size-base); // @presenter FontSize
|
|
13
|
+
--md-content-font-family: var(--font-family-base); // @presenter FontFamily
|
|
14
|
+
--md-content-line-height: var(--line-height-base); // @presenter LineHeight
|
|
15
|
+
--md-content-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
16
|
+
--md-content-text-color: var(--text-color-secondary); // @presenter Color
|
|
12
17
|
|
|
13
18
|
/**
|
|
14
19
|
* @tokens Markdown Blockquote
|
|
@@ -33,7 +38,7 @@ exports.markdown = (0, styled_components_1.css) `
|
|
|
33
38
|
* @tokens Markdown Table
|
|
34
39
|
*/
|
|
35
40
|
|
|
36
|
-
--md-table-font-size: var(--font-size
|
|
41
|
+
--md-table-font-size: var(--md-content-font-size); // @presenter FontSize
|
|
37
42
|
--md-table-line-height: var(--line-height-md); // @presenter FontSize
|
|
38
43
|
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
39
44
|
--md-table-bg-color: transparent; // @presenter Color
|
|
@@ -83,10 +88,10 @@ exports.markdown = (0, styled_components_1.css) `
|
|
|
83
88
|
|
|
84
89
|
--md-numbered-list-number-display: none;
|
|
85
90
|
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
86
|
-
--md-numbered-list-number-text-color: var(--text-color
|
|
87
|
-
--md-numbered-list-number-font-size: var(--font-size
|
|
88
|
-
--md-numbered-list-number-font-family: var(--font-
|
|
89
|
-
--md-numbered-list-number-font-weight: var(--font-weight
|
|
91
|
+
--md-numbered-list-number-text-color: var(--md-content-text-color); // @presenter Color
|
|
92
|
+
--md-numbered-list-number-font-size: var(--md-content-font-size); // @presenter FontSize
|
|
93
|
+
--md-numbered-list-number-font-family: var(--md-content-font-family); // @presenter FontFamily
|
|
94
|
+
--md-numbered-list-number-font-weight: var(--md-content-font-weight); // @presenter FontWeight
|
|
90
95
|
--md-numbered-list-number-bg-color: var(--bg-color-active); // @presenter Color
|
|
91
96
|
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
92
97
|
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DrilldownMenuItemDetails, ItemState } from '../../core/types';
|
|
3
|
-
type MenuListProps = {
|
|
3
|
+
export type MenuListProps = {
|
|
4
4
|
items: ItemState[];
|
|
5
5
|
depth?: number;
|
|
6
6
|
isMobile?: boolean;
|
|
@@ -8,4 +8,3 @@ type MenuListProps = {
|
|
|
8
8
|
onDrilldownOpen?: (drilldownDetails: DrilldownMenuItemDetails) => void;
|
|
9
9
|
};
|
|
10
10
|
export declare function Menu({ depth, items, className, isMobile, onDrilldownOpen, }: MenuListProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
1
2
|
import type { MenuItemsAnimation } from '../../core/types';
|
|
2
|
-
type MenuContainerProps = {
|
|
3
|
+
export type MenuContainerProps = PropsWithChildren<{
|
|
3
4
|
growContent?: boolean;
|
|
4
5
|
className?: string;
|
|
5
6
|
hidden?: boolean;
|
|
6
7
|
animation?: MenuItemsAnimation;
|
|
7
|
-
}
|
|
8
|
-
export declare
|
|
9
|
-
export {};
|
|
8
|
+
}>;
|
|
9
|
+
export declare function MenuContainer(props: MenuContainerProps): JSX.Element;
|
|
@@ -22,9 +22,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.MenuContainer = void 0;
|
|
30
|
+
const react_1 = __importDefault(require("react"));
|
|
27
31
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
function MenuContainer(props) {
|
|
33
|
+
return react_1.default.createElement(MenuContainerComponent, Object.assign({}, props, { "data-component-name": "Menu/MenuContainer" }));
|
|
34
|
+
}
|
|
35
|
+
exports.MenuContainer = MenuContainer;
|
|
28
36
|
const slideInRightAnimation = (0, styled_components_1.keyframes) `
|
|
29
37
|
0% {
|
|
30
38
|
transform: translateX(100%)
|
|
@@ -41,8 +49,7 @@ const slideInLeftAnimation = (0, styled_components_1.keyframes) `
|
|
|
41
49
|
transform: translateX(0%)
|
|
42
50
|
}
|
|
43
51
|
`;
|
|
44
|
-
|
|
45
|
-
'data-component-name': 'Menu/MenuContainer',
|
|
52
|
+
const MenuContainerComponent = styled_components_1.default.div.attrs(({ growContent, className, animation }) => ({
|
|
46
53
|
growContent: growContent === undefined ? true : growContent,
|
|
47
54
|
className,
|
|
48
55
|
animation,
|
|
@@ -58,7 +65,7 @@ exports.MenuContainer = styled_components_1.default.div.attrs(({ growContent, cl
|
|
|
58
65
|
position: relative;
|
|
59
66
|
overflow-y: auto;
|
|
60
67
|
flex-grow: ${({ growContent }) => (growContent ? 1 : 0)};
|
|
61
|
-
padding-top: var(--
|
|
68
|
+
padding-top: var(--menu-container-padding-top);
|
|
62
69
|
display: ${({ hidden }) => (hidden ? 'none' : 'block')};
|
|
63
70
|
overscroll-behavior: contain;
|
|
64
71
|
`;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type MobileMenuProps = {
|
|
2
|
+
export type MobileMenuProps = {
|
|
3
3
|
className?: string;
|
|
4
4
|
hideUserProfile?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare function MenuMobile({ className, hideUserProfile }: MobileMenuProps): JSX.Element | null;
|
|
7
|
-
export {};
|
|
@@ -174,5 +174,7 @@ exports.mobileMenu = (0, styled_components_1.css) `
|
|
|
174
174
|
--menu-mobile-product-name-margin: var(--menu-item-label-margin);
|
|
175
175
|
|
|
176
176
|
// @tokens End
|
|
177
|
+
|
|
178
|
+
--menu-container-padding-top: var(--sidebar-offset-top);
|
|
177
179
|
`;
|
|
178
180
|
//# sourceMappingURL=variables.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItem } from '@redocly/config';
|
|
3
|
-
type NavbarItemProps = {
|
|
3
|
+
export type NavbarItemProps = {
|
|
4
4
|
navItem: ResolvedNavItem;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function NavbarItem({ navItem, className }: NavbarItemProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -70,7 +70,7 @@ exports.NavbarItem = NavbarItem;
|
|
|
70
70
|
const NavbarMenuItemDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown) `
|
|
71
71
|
--dropdown-menu-item-separator-font-size: var(--navbar-separator-font-size);
|
|
72
72
|
--dropdown-menu-item-separator-text-color: var(--navbar-separator-text-color);
|
|
73
|
-
--dropdown-menu-item-separator-
|
|
73
|
+
--dropdown-menu-item-separator-line-height: var(--navbar-separator-line-height);
|
|
74
74
|
`;
|
|
75
75
|
const NavbarMenuItem = styled_components_1.default.li `
|
|
76
76
|
display: inline-block;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, "data-component-name">;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LogoProps } from '../../components/Logo/Logo';
|
|
3
|
+
export declare function NavbarLogo(props: LogoProps): React.JSX.Element;
|
|
@@ -4,11 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.NavbarLogo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
9
|
const Logo_1 = require("../../components/Logo/Logo");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
function NavbarLogo(props) {
|
|
11
|
+
return react_1.default.createElement(NavbarLogoComponent, Object.assign({}, props, { "data-component-name": "Navbar/NavbarLogo" }));
|
|
12
|
+
}
|
|
13
|
+
exports.NavbarLogo = NavbarLogo;
|
|
14
|
+
const NavbarLogoComponent = (0, styled_components_1.default)(Logo_1.Logo) `
|
|
12
15
|
--logo-height: var(--navbar-logo-height);
|
|
13
16
|
--logo-width: var(--navbar-logo-width);
|
|
14
17
|
--logo-margin: var(--navbar-logo-margin);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedConfigLinks } from '@redocly/config';
|
|
3
|
-
type NavbarMenuProps = {
|
|
3
|
+
export type NavbarMenuProps = {
|
|
4
4
|
menuItems: ResolvedConfigLinks;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function NavbarMenu({ menuItems, className }: NavbarMenuProps): JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItemWithLink } from '@redocly/config';
|
|
3
|
-
type NextPageType = {
|
|
3
|
+
export type NextPageType = {
|
|
4
4
|
nextPage?: ResolvedNavItemWithLink | null;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function NextButton({ nextPage, className }: NextPageType): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItemWithLink } from '@redocly/config';
|
|
3
|
-
type PageNavigationType = {
|
|
3
|
+
export type PageNavigationType = {
|
|
4
4
|
nextPage?: ResolvedNavItemWithLink | null;
|
|
5
5
|
prevPage?: ResolvedNavItemWithLink | null;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
export declare function PageNavigation({ nextPage, prevPage, className, }: PageNavigationType): JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ResolvedNavItemWithLink } from '@redocly/config';
|
|
3
|
-
type PreviousPageType = {
|
|
3
|
+
export type PreviousPageType = {
|
|
4
4
|
prevPage?: ResolvedNavItemWithLink | null;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function PreviousButton({ prevPage, className }: PreviousPageType): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import type { PanelHeaderProps } from '../../components/Panel/PanelHeader';
|
|
4
|
-
type PanelProps = {
|
|
4
|
+
export type PanelProps = {
|
|
5
5
|
expanded?: boolean;
|
|
6
6
|
isExpandable?: boolean;
|
|
7
7
|
className?: string;
|
|
@@ -12,4 +12,3 @@ type PanelProps = {
|
|
|
12
12
|
description?: React.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
export declare function Panel({ expanded, isExpandable, renderChildrenHidden, header, footer, className, children, onToggle, description, }: PropsWithChildren<PanelProps>): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
|
-
type PortalProps = {
|
|
3
|
+
export type PortalProps = {
|
|
4
4
|
mountId?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare
|
|
7
|
-
export {};
|
|
6
|
+
export declare function Portal({ children, mountId, }: PropsWithChildren<PortalProps>): React.ReactPortal | JSX.Element;
|
|
@@ -7,12 +7,12 @@ exports.Portal = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const react_dom_1 = require("react-dom");
|
|
9
9
|
const utils_1 = require("../../core/utils");
|
|
10
|
-
|
|
10
|
+
function Portal({ children, mountId = 'root', }) {
|
|
11
11
|
const mount = utils_1.IS_BROWSER ? document.getElementById(mountId) || document.body : null;
|
|
12
12
|
if (!mount) {
|
|
13
13
|
return react_1.default.createElement(react_1.default.Fragment, null, children);
|
|
14
14
|
}
|
|
15
15
|
return (0, react_dom_1.createPortal)(children, mount);
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
exports.Portal = Portal;
|
|
18
18
|
//# sourceMappingURL=Portal.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ProductConfig } from '../../config';
|
|
3
|
-
type ProductProps = {
|
|
3
|
+
export type ProductProps = {
|
|
4
4
|
product: ProductConfig;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function Product({ product, className }: ProductProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type SearchInputProps = {
|
|
2
|
+
export type SearchInputProps = {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
value: string;
|
|
5
5
|
onChange(value: string): void;
|
|
@@ -8,4 +8,3 @@ type SearchInputProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare function SearchInput({ placeholder, value, onChange, isLoading, className, }: SearchInputProps): JSX.Element;
|
|
11
|
-
export {};
|