@redocly/theme 0.82.2-rc.2 → 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/Button/Button.js +1 -1
- 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/CatalogCard.js +4 -5
- package/lib/components/Catalog/CatalogHighlight.d.ts +1 -2
- package/lib/components/Catalog/CatalogInfoBlock.d.ts +1 -2
- package/lib/components/CodeBlock/CodeBlock.js +1 -1
- 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/Dropdown.js +10 -5
- package/lib/components/Dropdown/DropdownMenu.d.ts +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -2
- package/lib/components/Dropdown/DropdownMenuItem.js +22 -5
- package/lib/components/Dropdown/variables.js +5 -1
- package/lib/components/Feedback/Comment.d.ts +2 -1
- package/lib/components/Feedback/Comment.js +3 -3
- package/lib/components/Feedback/Mood.js +4 -4
- package/lib/components/Feedback/Rating.js +1 -1
- package/lib/components/Feedback/ReportDialog.js +1 -1
- package/lib/components/Feedback/Scale.js +1 -1
- package/lib/components/Feedback/Sentiment.js +3 -3
- package/lib/components/Filter/FilterContent.d.ts +1 -3
- package/lib/components/Filter/FilterContent.js +4 -4
- 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/LanguagePicker/LanguagePicker.js +5 -2
- package/lib/components/LanguagePicker/variables.js +4 -1
- 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 +12 -13
- 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/Product/ProductPicker.js +4 -1
- package/lib/components/Product/variables.js +4 -1
- 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/Tooltip/Tooltip.js +2 -2
- package/lib/components/Tooltip/variables.js +4 -0
- package/lib/components/Typography/H1.js +1 -1
- package/lib/components/Typography/H2.js +1 -1
- package/lib/components/Typography/H3.js +1 -1
- package/lib/components/Typography/H4.js +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/UserMenu.js +4 -1
- package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -2
- package/lib/components/UserMenu/variables.js +4 -1
- package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
- package/lib/core/types/catalog.d.ts +3 -0
- package/lib/core/types/hooks.d.ts +3 -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/Button/Button.tsx +5 -1
- 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 +23 -24
- package/src/components/Catalog/CatalogHighlight.tsx +1 -1
- package/src/components/Catalog/CatalogInfoBlock.tsx +1 -1
- package/src/components/CodeBlock/CodeBlock.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 +14 -8
- package/src/components/Dropdown/DropdownMenu.tsx +1 -1
- package/src/components/Dropdown/DropdownMenuItem.tsx +25 -6
- package/src/components/Dropdown/variables.ts +5 -1
- package/src/components/Feedback/Comment.tsx +4 -2
- package/src/components/Feedback/Mood.tsx +5 -4
- package/src/components/Feedback/Rating.tsx +1 -1
- package/src/components/Feedback/ReportDialog.tsx +1 -0
- package/src/components/Feedback/Scale.tsx +1 -1
- package/src/components/Feedback/Sentiment.tsx +4 -3
- package/src/components/Filter/FilterContent.tsx +3 -3
- 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 +6 -3
- package/src/components/LanguagePicker/variables.ts +4 -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 +23 -14
- 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/Product/ProductPicker.tsx +4 -1
- package/src/components/Product/variables.ts +4 -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/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/variables.ts +4 -0
- package/src/components/Typography/H1.ts +1 -1
- package/src/components/Typography/H2.ts +1 -1
- package/src/components/Typography/H3.ts +1 -1
- package/src/components/Typography/H4.ts +1 -1
- package/src/components/UserMenu/UserAvatar.tsx +1 -1
- package/src/components/UserMenu/UserInfoMenuItem.tsx +1 -1
- package/src/components/UserMenu/UserMenu.tsx +5 -2
- package/src/components/UserMenu/UserMenuMobile.tsx +1 -1
- package/src/components/UserMenu/variables.ts +4 -1
- package/src/core/types/catalog.ts +3 -1
- package/src/core/types/hooks.ts +3 -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
|
@@ -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
|
|
|
@@ -122,37 +121,37 @@ exports.Markdown = styled_components_1.default.main.attrs(({ className }) => ({
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
h1.md {
|
|
125
|
-
${(0, theme_helpers_1.typography)('h1'
|
|
124
|
+
${(0, theme_helpers_1.typography)('h1')};
|
|
126
125
|
margin: var(--h1-margin-top) 0 var(--h1-margin-bottom) 0;
|
|
127
126
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
h2.md {
|
|
131
|
-
${(0, theme_helpers_1.typography)('h2'
|
|
130
|
+
${(0, theme_helpers_1.typography)('h2')};
|
|
132
131
|
margin: var(--h2-margin-top) 0 var(--h2-margin-bottom) 0;
|
|
133
132
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
134
133
|
}
|
|
135
134
|
|
|
136
135
|
h3.md {
|
|
137
|
-
${(0, theme_helpers_1.typography)('h3'
|
|
136
|
+
${(0, theme_helpers_1.typography)('h3')};
|
|
138
137
|
margin: var(--h3-margin-top) 0 var(--h3-margin-bottom) 0;
|
|
139
138
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
140
139
|
}
|
|
141
140
|
|
|
142
141
|
h4.md {
|
|
143
|
-
${(0, theme_helpers_1.typography)('h4'
|
|
142
|
+
${(0, theme_helpers_1.typography)('h4')};
|
|
144
143
|
margin: var(--h4-margin-top) 0 var(--h4-margin-bottom) 0;
|
|
145
144
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
h5.md {
|
|
149
|
-
${(0, theme_helpers_1.typography)('h5'
|
|
148
|
+
${(0, theme_helpers_1.typography)('h5')};
|
|
150
149
|
margin: var(--h5-margin-top) 0 var(--h5-margin-bottom) 0;
|
|
151
150
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
h6.md {
|
|
155
|
-
${(0, theme_helpers_1.typography)('h6'
|
|
154
|
+
${(0, theme_helpers_1.typography)('h6')};
|
|
156
155
|
margin: var(--h6-margin-top) 0 var(--h6-margin-bottom) 0;
|
|
157
156
|
${(0, headingAnchor_1.headingAnchorCss)()};
|
|
158
157
|
}
|
|
@@ -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 {};
|
|
@@ -51,7 +51,6 @@ const ProductDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).at
|
|
|
51
51
|
--dropdown-menu-padding: var(--product-picker-dropdown-padding);
|
|
52
52
|
--dropdown-menu-border-radius: var(--product-picker-dropdown-border-radius);
|
|
53
53
|
--dropdown-menu-box-shadow: var(--product-picker-dropdown-box-shadow);
|
|
54
|
-
--dropdown-menu-color-disabled: var(--product-picker-dropdown-color-disabled);
|
|
55
54
|
--dropdown-menu-border-color: var(--product-picker-dropdow--border-color);
|
|
56
55
|
--dropdown-menu-bg-color: var(--product-picker-dropdown-bg-color);
|
|
57
56
|
--dropdown-menu-item-padding-horizontal: var(--product-picker-dropdown-item-padding-horizontal);
|
|
@@ -65,9 +64,13 @@ const ProductDropdown = (0, styled_components_1.default)(Dropdown_1.Dropdown).at
|
|
|
65
64
|
--dropdown-menu-item-border-radius: var(--product-picker-dropdown-item-border-radius);
|
|
66
65
|
--dropdown-menu-item-bg-color-active: var(--product-picker-dropdown-item-bg-color-active);
|
|
67
66
|
--dropdown-menu-item-bg-color-hover: var(--product-picker-dropdown-item-bg-color-hover);
|
|
67
|
+
--dropdown-menu-item-bg-color-disabled: var(--product-picker-dropdown-item-bg-color-disabled);
|
|
68
68
|
--dropdown-menu-item-separator-border-color: var(
|
|
69
69
|
--product-picker-dropdown-item-separator-border-color
|
|
70
70
|
);
|
|
71
71
|
--dropdown-menu-item-color-dangerous: var(--product-picker-dropdown-item-color-dangerous);
|
|
72
|
+
--dropdown-menu-item-color-disabled: var(--product-picker-dropdown-item-color-disabled);
|
|
73
|
+
--dropdown-menu-item-color-active: var(--product-picker-dropdown-item-color-active);
|
|
74
|
+
--dropdown-menu-item-color-hover: var(--product-picker-dropdown-item-color-hover);
|
|
72
75
|
`;
|
|
73
76
|
//# sourceMappingURL=ProductPicker.js.map
|
|
@@ -20,7 +20,6 @@ exports.productPicker = (0, styled_components_1.css) `
|
|
|
20
20
|
--product-picker-dropdown-padding: var(--dropdown-menu-padding ); // @presenter Spacing
|
|
21
21
|
--product-picker-dropdown-border-radius: var(--dropdown-menu-border-radius); // @presenter BorderRadius
|
|
22
22
|
--product-picker-dropdown-box-shadow: var(--dropdown-menu-box-shadow); // @presenter Shadow
|
|
23
|
-
--product-picker-dropdown-color-disabled: var(--dropdown-menu-color-disabled); // @presenter Color
|
|
24
23
|
--product-picker-dropdown-border-color: var(--dropdown-menu-border-color); // @presenter Color
|
|
25
24
|
--product-picker-dropdown-bg-color: var(--dropdown-menu-bg-color); // @presenter Color
|
|
26
25
|
|
|
@@ -31,8 +30,12 @@ exports.productPicker = (0, styled_components_1.css) `
|
|
|
31
30
|
--product-picker-dropdown-item-border-radius: var(--dropdown-menu-item-border-radius ); // @presenter BorderRadius
|
|
32
31
|
--product-picker-dropdown-item-bg-color-active: var(--dropdown-menu-item-bg-color-active); // @presenter Color
|
|
33
32
|
--product-picker-dropdown-item-bg-color-hover: var(--dropdown-menu-item-bg-color-hover); // @presenter Color
|
|
33
|
+
--product-picker-dropdown-item-bg-color-disabled: var(--dropdown-menu-item-bg-color-disabled); // @presenter Color
|
|
34
34
|
--product-picker-dropdown-item-separator-border-color: var(--dropdown-menu-item-separator-border-color); // @presenter Color
|
|
35
35
|
--product-picker-dropdown-item-color-dangerous: var(--dropdown-menu-item-color-dangerous);
|
|
36
|
+
--product-picker-dropdown-item-color-disabled: var(--dropdown-menu-item-color-disabled);
|
|
37
|
+
--product-picker-dropdown-item-color-active: var(--dropdown-menu-item-color-active);
|
|
38
|
+
--product-picker-dropdown-item-color-hover: var(--dropdown-menu-item-color-hover);
|
|
36
39
|
--product-picker-dropdown-item-border-color-focused: var(--dropdown-menu-item-border-color-focused);
|
|
37
40
|
|
|
38
41
|
`;
|
|
@@ -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 {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type SearchRecentProps = {
|
|
2
|
+
export type SearchRecentProps = {
|
|
3
3
|
onSelect: (value: string) => void;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function SearchRecent({ onSelect, className }: SearchRecentProps): JSX.Element | null;
|
|
7
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type SearchShortcutProps = {
|
|
2
|
+
export type SearchShortcutProps = {
|
|
3
3
|
combination: string;
|
|
4
4
|
text: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function SearchShortcut({ combination, text, className }: SearchShortcutProps): JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -51,7 +51,7 @@ exports.search = (0, styled_components_1.css) `
|
|
|
51
51
|
--search-recent-item-line-height: var(--line-height-base); // @presenter LineHeight
|
|
52
52
|
--search-recent-item-padding: var(--spacing-xs) var(--spacing-lg);
|
|
53
53
|
--search-recent-item-text-color: var(--search-item-text-color); // @presenter Color
|
|
54
|
-
--search-recent-item-text-color-hover: var(--search-item-text-color-
|
|
54
|
+
--search-recent-item-text-color-hover: var(--search-item-text-color-hover); // @presenter Color
|
|
55
55
|
--search-recent-item-bg-color-hover: var(--search-item-bg-color-hover); // @presenter Color
|
|
56
56
|
--search-recent-item-title-font-size: var(--font-size-base); // @presenter FontSize
|
|
57
57
|
--search-recent-item-title-font-weight: var(--font-weight-semibold); // @presenter FontWeight
|
|
@@ -66,7 +66,7 @@ exports.search = (0, styled_components_1.css) `
|
|
|
66
66
|
--search-suggested-item-line-height: var(--line-height-base); // @presenter LineHeight
|
|
67
67
|
--search-suggested-item-padding: var(--spacing-xs) var(--spacing-lg);
|
|
68
68
|
--search-suggested-item-text-color: var(--search-item-text-color); // @presenter Color
|
|
69
|
-
--search-suggested-item-text-color-hover: var(--search-item-text-color-
|
|
69
|
+
--search-suggested-item-text-color-hover: var(--search-item-text-color-hover); // @presenter Color
|
|
70
70
|
--search-suggested-item-bg-color-hover: var(--search-item-bg-color-hover); // @presenter Color
|
|
71
71
|
--search-suggested-item-title-font-size: var(--font-size-base); // @presenter FontSize
|
|
72
72
|
--search-suggested-item-title-font-weight: var(--font-weight-semibold); // @presenter FontWeight
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SelectProps<T = any> = {
|
|
3
3
|
value: T;
|
|
4
4
|
options: {
|
|
5
5
|
element: React.ReactNode | JSX.Element | string;
|
|
@@ -20,8 +20,8 @@ export interface SelectProps<T = any> {
|
|
|
20
20
|
renderInput?: (props: {
|
|
21
21
|
isOpen: boolean;
|
|
22
22
|
}) => React.ReactElement;
|
|
23
|
-
}
|
|
24
|
-
export declare function Select<T>(props: SelectProps<T>):
|
|
23
|
+
};
|
|
24
|
+
export declare function Select<T>(props: SelectProps<T>): JSX.Element;
|
|
25
25
|
export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
|
|
26
26
|
disabled?: boolean | undefined;
|
|
27
27
|
}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MenuItemsAnimation } from '../../core/types';
|
|
3
|
-
type SidebarProps = {
|
|
3
|
+
export type SidebarProps = {
|
|
4
4
|
versions?: React.ReactNode;
|
|
5
5
|
menu?: React.ReactNode;
|
|
6
6
|
backLink?: {
|
|
@@ -17,4 +17,3 @@ type SidebarProps = {
|
|
|
17
17
|
menuItemsAnimation?: MenuItemsAnimation;
|
|
18
18
|
};
|
|
19
19
|
export declare function Sidebar({ versions, menu, footer, header, growContent, collapsed, className, menuItemsAnimation, }: SidebarProps): JSX.Element | null;
|
|
20
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LayoutVariant } from '../../components/SidebarActions/SidebarActions';
|
|
3
|
-
|
|
3
|
+
export type ChangeViewButtonProps = {
|
|
4
4
|
layout: LayoutVariant;
|
|
5
5
|
collapsedSidebar: boolean;
|
|
6
6
|
onClick: () => void;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export declare const ChangeViewButton: ({ layout, onClick, collapsedSidebar, }: ChangeViewButtonProps) => JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayoutVariant } from '@redocly/config';
|
|
3
3
|
export { LayoutVariant };
|
|
4
|
-
|
|
4
|
+
export type SidebarActionsProps = {
|
|
5
5
|
layout: LayoutVariant;
|
|
6
6
|
collapsedSidebar: boolean;
|
|
7
7
|
isOpenapiDocs: boolean;
|
|
@@ -10,5 +10,5 @@ interface SidebarActionsProps {
|
|
|
10
10
|
onChangeCollapseSidebarClick: () => void;
|
|
11
11
|
requestAccessButton?: React.ReactElement | null;
|
|
12
12
|
className?: string;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
export declare const SidebarActions: ({ layout, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type SidebarLogoProps = {
|
|
3
3
|
imageUrl?: string;
|
|
4
4
|
href?: string;
|
|
5
5
|
altText?: string;
|
|
6
6
|
dataTestId?: string;
|
|
7
7
|
backgroundColor?: string;
|
|
8
8
|
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, className, }?:
|
|
9
|
+
};
|
|
10
|
+
export declare function SidebarLogo({ imageUrl, href, altText, backgroundColor, dataTestId, className, }?: SidebarLogoProps): JSX.Element | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { MdHeading } from '../../core/types';
|
|
3
|
-
type TableOfContentProps = {
|
|
3
|
+
export type TableOfContentProps = {
|
|
4
4
|
headings?: Array<MdHeading | null> | null | undefined;
|
|
5
5
|
contentWrapper: HTMLDivElement | null;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
export declare function TableOfContent(props: TableOfContentProps): JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -5,7 +5,7 @@ type SubjectStatusColor = 'active' | 'draft' | 'deprecated' | 'product';
|
|
|
5
5
|
type HttpColor = 'get' | 'post' | 'put' | 'delete' | 'option' | 'patch' | 'head' | 'hook' | 'link';
|
|
6
6
|
type StatusColor = DefaultStatusColor | ActionStatusColor | SubjectStatusColor | HttpColor;
|
|
7
7
|
type Color = 'red' | 'green' | 'blue' | 'grey' | 'gold' | 'cyan' | 'magenta' | 'purple' | 'lime' | 'geekblue' | 'yellow';
|
|
8
|
-
type TagProps = {
|
|
8
|
+
export type TagProps = {
|
|
9
9
|
className?: string;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
closable?: boolean;
|
|
@@ -141,8 +141,8 @@ const TooltipBody = styled_components_1.default.span `
|
|
|
141
141
|
position: absolute;
|
|
142
142
|
text-align: center;
|
|
143
143
|
|
|
144
|
-
padding:
|
|
145
|
-
max-width:
|
|
144
|
+
padding: var(--tooltip-padding);
|
|
145
|
+
max-width: var(--tooltip-max-width);
|
|
146
146
|
white-space: normal;
|
|
147
147
|
overflow-wrap: break-word;
|
|
148
148
|
|
|
@@ -10,6 +10,10 @@ exports.tooltip = (0, styled_components_1.css) `
|
|
|
10
10
|
|
|
11
11
|
--tooltip-text-color: var(--text-color-secondary);
|
|
12
12
|
--tooltip-bg-color: var(--bg-color-raised);
|
|
13
|
+
--tooltip-padding-vertical: var(--spacing-xs);
|
|
14
|
+
--tooltip-padding-horizontal: var(--spacing-sm);
|
|
15
|
+
--tooltip-padding: var(--tooltip-padding-vertical) var(--tooltip-padding-horizontal);
|
|
16
|
+
--tooltip-max-width: 250px;
|
|
13
17
|
|
|
14
18
|
.tooltip-copy-button {
|
|
15
19
|
--tooltip-text-color: var(--text-color-secondary);
|