@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.
Files changed (200) hide show
  1. package/lib/components/Badge/Badge.d.ts +8 -5
  2. package/lib/components/Badge/Badge.js +9 -3
  3. package/lib/components/Breadcrumbs/Breadcrumb.d.ts +1 -1
  4. package/lib/components/Breadcrumbs/Breadcrumb.js +2 -2
  5. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  6. package/lib/components/Breadcrumbs/Breadcrumbs.js +2 -2
  7. package/lib/components/Buttons/CopyButton.d.ts +2 -2
  8. package/lib/components/Buttons/CopyButton.js +3 -3
  9. package/lib/components/Buttons/EditPageButton.d.ts +2 -3
  10. package/lib/components/Buttons/EditPageButton.js +2 -2
  11. package/lib/components/Buttons/EmailButton.d.ts +4 -5
  12. package/lib/components/Buttons/EmailButton.js +2 -2
  13. package/lib/components/Buttons/NewTabButton.d.ts +4 -5
  14. package/lib/components/Buttons/NewTabButton.js +2 -2
  15. package/lib/components/Catalog/Catalog.d.ts +3 -2
  16. package/lib/components/Catalog/Catalog.js +1 -5
  17. package/lib/components/Catalog/CatalogActions.d.ts +1 -2
  18. package/lib/components/Catalog/CatalogCard.d.ts +1 -2
  19. package/lib/components/Catalog/CatalogHighlight.d.ts +1 -2
  20. package/lib/components/Catalog/CatalogInfoBlock.d.ts +1 -2
  21. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +14 -5
  22. package/lib/components/CodeBlock/CodeBlockContainer.js +9 -4
  23. package/lib/components/CodeBlock/CodeBlockControls.js +2 -0
  24. package/lib/components/CodeBlock/CodeBlockTabs.d.ts +1 -2
  25. package/lib/components/CodeBlock/variables.js +2 -2
  26. package/lib/components/ColorModeSwitcher/ColorModeIcon.d.ts +4 -8
  27. package/lib/components/ColorModeSwitcher/ColorModeIcon.js +5 -3
  28. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +1 -2
  29. package/lib/components/DatePicker/DatePicker.d.ts +2 -3
  30. package/lib/components/Dropdown/Dropdown.d.ts +2 -3
  31. package/lib/components/Dropdown/DropdownMenu.d.ts +1 -2
  32. package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -2
  33. package/lib/components/Feedback/Comment.d.ts +2 -1
  34. package/lib/components/Feedback/Comment.js +3 -3
  35. package/lib/components/Feedback/ReportDialog.js +1 -1
  36. package/lib/components/Filter/FilterContent.d.ts +1 -3
  37. package/lib/components/Filter/FilterContent.js +3 -3
  38. package/lib/components/Filter/FilterInput.d.ts +1 -2
  39. package/lib/components/Filter/FilterOption.d.ts +8 -4
  40. package/lib/components/Filter/FilterOption.js +7 -4
  41. package/lib/components/Filter/FilterOptionLabel.d.ts +5 -3
  42. package/lib/components/Filter/FilterOptionLabel.js +6 -3
  43. package/lib/components/Filter/FilterOptions.d.ts +5 -3
  44. package/lib/components/Filter/FilterOptions.js +6 -3
  45. package/lib/components/Filter/FilterPopover.d.ts +1 -2
  46. package/lib/components/Filter/FilterSelect.js +1 -4
  47. package/lib/components/Filter/FilterTitle.d.ts +5 -3
  48. package/lib/components/Filter/FilterTitle.js +6 -3
  49. package/lib/components/Filter/variables.js +2 -1
  50. package/lib/components/Footer/Footer.d.ts +1 -2
  51. package/lib/components/Footer/FooterColumn.d.ts +1 -2
  52. package/lib/components/Footer/FooterCopyright.d.ts +1 -2
  53. package/lib/components/Footer/FooterItem.d.ts +1 -2
  54. package/lib/components/Footer/FooterLogo.d.ts +3 -4
  55. package/lib/components/Footer/FooterLogo.js +6 -1
  56. package/lib/components/Image/Image.d.ts +2 -2
  57. package/lib/components/JsonViewer/JsonViewer.d.ts +2 -2
  58. package/lib/components/LanguagePicker/LanguagePicker.d.ts +1 -2
  59. package/lib/components/LastUpdated/LastUpdated.d.ts +1 -1
  60. package/lib/components/Link/Link.d.ts +1 -1
  61. package/lib/components/Loading/Loading.d.ts +2 -2
  62. package/lib/components/Logo/Logo.d.ts +1 -2
  63. package/lib/components/Markdown/Markdown.d.ts +12 -0
  64. package/lib/components/Markdown/Markdown.js +6 -7
  65. package/lib/components/Markdown/variables.js +10 -5
  66. package/lib/components/Menu/Menu.d.ts +1 -2
  67. package/lib/components/Menu/MenuContainer.d.ts +4 -4
  68. package/lib/components/Menu/MenuContainer.js +10 -3
  69. package/lib/components/Menu/MenuMobile.d.ts +1 -2
  70. package/lib/components/Menu/variables.js +2 -0
  71. package/lib/components/Navbar/NavbarItem.d.ts +1 -2
  72. package/lib/components/Navbar/NavbarItem.js +1 -1
  73. package/lib/components/Navbar/NavbarLogo.d.ts +3 -4
  74. package/lib/components/Navbar/NavbarLogo.js +6 -3
  75. package/lib/components/Navbar/NavbarMenu.d.ts +1 -2
  76. package/lib/components/PageNavigation/NextButton.d.ts +1 -2
  77. package/lib/components/PageNavigation/PageNavigation.d.ts +1 -2
  78. package/lib/components/PageNavigation/PreviousButton.d.ts +1 -2
  79. package/lib/components/Panel/Panel.d.ts +1 -2
  80. package/lib/components/Panel/PanelBody.d.ts +2 -3
  81. package/lib/components/Portal/Portal.d.ts +2 -3
  82. package/lib/components/Portal/Portal.js +2 -2
  83. package/lib/components/Product/Product.d.ts +1 -2
  84. package/lib/components/Search/Search.d.ts +1 -2
  85. package/lib/components/Search/SearchDialog.d.ts +1 -2
  86. package/lib/components/Search/SearchInput.d.ts +1 -2
  87. package/lib/components/Search/SearchItem.d.ts +1 -1
  88. package/lib/components/Search/SearchRecent.d.ts +1 -2
  89. package/lib/components/Search/SearchShortcut.d.ts +1 -2
  90. package/lib/components/Search/SearchSuggestedPages.d.ts +1 -2
  91. package/lib/components/Search/SearchTrigger.d.ts +1 -2
  92. package/lib/components/Search/variables.js +2 -2
  93. package/lib/components/Segmented/Segmented.d.ts +1 -1
  94. package/lib/components/Select/Select.d.ts +3 -3
  95. package/lib/components/Sidebar/Sidebar.d.ts +1 -2
  96. package/lib/components/SidebarActions/ChangeViewButton.d.ts +2 -3
  97. package/lib/components/SidebarActions/SidebarActions.d.ts +2 -2
  98. package/lib/components/SidebarLogo/SidebarLogo.d.ts +3 -3
  99. package/lib/components/TableOfContent/TableOfContent.d.ts +1 -2
  100. package/lib/components/Tag/Tag.d.ts +1 -1
  101. package/lib/components/UserMenu/UserAvatar.d.ts +1 -2
  102. package/lib/components/UserMenu/UserInfoMenuItem.d.ts +1 -2
  103. package/lib/components/UserMenu/UserMenu.d.ts +1 -2
  104. package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -2
  105. package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
  106. package/lib/layouts/DocumentationLayout.js +7 -0
  107. package/lib/layouts/NotFound.js +2 -2
  108. package/lib/layouts/RootLayout.d.ts +2 -3
  109. package/lib/markdoc/components/InlineSvg/InlineSvg.d.ts +2 -1
  110. package/lib/markdoc/components/InlineSvg/InlineSvg.js +2 -2
  111. package/lib/markdoc/components/Tabs/variables.js +5 -5
  112. package/package.json +4 -4
  113. package/src/components/Badge/Badge.tsx +13 -3
  114. package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -2
  115. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
  116. package/src/components/Buttons/CopyButton.tsx +7 -5
  117. package/src/components/Buttons/EditPageButton.tsx +3 -3
  118. package/src/components/Buttons/EmailButton.tsx +4 -4
  119. package/src/components/Buttons/NewTabButton.tsx +7 -4
  120. package/src/components/Catalog/Catalog.tsx +5 -7
  121. package/src/components/Catalog/CatalogActions.tsx +1 -1
  122. package/src/components/Catalog/CatalogCard.tsx +3 -1
  123. package/src/components/Catalog/CatalogHighlight.tsx +1 -1
  124. package/src/components/Catalog/CatalogInfoBlock.tsx +1 -1
  125. package/src/components/CodeBlock/CodeBlockContainer.tsx +19 -6
  126. package/src/components/CodeBlock/CodeBlockControls.tsx +2 -0
  127. package/src/components/CodeBlock/CodeBlockTabs.tsx +1 -1
  128. package/src/components/CodeBlock/variables.ts +2 -2
  129. package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +8 -4
  130. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
  131. package/src/components/DatePicker/DatePicker.tsx +2 -2
  132. package/src/components/Dropdown/Dropdown.tsx +2 -2
  133. package/src/components/Dropdown/DropdownMenu.tsx +1 -1
  134. package/src/components/Dropdown/DropdownMenuItem.tsx +1 -1
  135. package/src/components/Feedback/Comment.tsx +4 -2
  136. package/src/components/Feedback/ReportDialog.tsx +1 -0
  137. package/src/components/Filter/FilterContent.tsx +2 -2
  138. package/src/components/Filter/FilterInput.tsx +1 -1
  139. package/src/components/Filter/FilterOption.tsx +20 -4
  140. package/src/components/Filter/FilterOptionLabel.tsx +10 -3
  141. package/src/components/Filter/FilterOptions.tsx +10 -3
  142. package/src/components/Filter/FilterPopover.tsx +1 -1
  143. package/src/components/Filter/FilterSelect.tsx +1 -4
  144. package/src/components/Filter/FilterTitle.tsx +10 -3
  145. package/src/components/Filter/variables.ts +2 -1
  146. package/src/components/Footer/Footer.tsx +1 -1
  147. package/src/components/Footer/FooterColumn.tsx +1 -1
  148. package/src/components/Footer/FooterCopyright.tsx +1 -1
  149. package/src/components/Footer/FooterItem.tsx +1 -1
  150. package/src/components/Footer/FooterLogo.tsx +8 -1
  151. package/src/components/Image/Image.tsx +1 -1
  152. package/src/components/JsonViewer/JsonViewer.tsx +2 -2
  153. package/src/components/LanguagePicker/LanguagePicker.tsx +1 -1
  154. package/src/components/LastUpdated/LastUpdated.tsx +1 -1
  155. package/src/components/Link/Link.tsx +1 -1
  156. package/src/components/Loading/Loading.tsx +2 -2
  157. package/src/components/Logo/Logo.tsx +1 -1
  158. package/src/components/Markdown/Markdown.tsx +17 -8
  159. package/src/components/Markdown/variables.ts +10 -5
  160. package/src/components/Menu/Menu.tsx +1 -1
  161. package/src/components/Menu/MenuContainer.tsx +9 -5
  162. package/src/components/Menu/MenuMobile.tsx +1 -1
  163. package/src/components/Menu/variables.ts +2 -0
  164. package/src/components/Navbar/Navbar.tsx +1 -0
  165. package/src/components/Navbar/NavbarItem.tsx +2 -2
  166. package/src/components/Navbar/NavbarLogo.tsx +8 -3
  167. package/src/components/Navbar/NavbarMenu.tsx +1 -1
  168. package/src/components/PageNavigation/NextButton.tsx +1 -1
  169. package/src/components/PageNavigation/PageNavigation.tsx +1 -1
  170. package/src/components/PageNavigation/PreviousButton.tsx +1 -1
  171. package/src/components/Panel/Panel.tsx +1 -1
  172. package/src/components/Panel/PanelBody.ts +2 -2
  173. package/src/components/Portal/Portal.tsx +6 -3
  174. package/src/components/Product/Product.tsx +1 -1
  175. package/src/components/Search/Search.tsx +1 -1
  176. package/src/components/Search/SearchDialog.tsx +1 -1
  177. package/src/components/Search/SearchInput.tsx +1 -1
  178. package/src/components/Search/SearchItem.tsx +1 -1
  179. package/src/components/Search/SearchRecent.tsx +1 -1
  180. package/src/components/Search/SearchShortcut.tsx +1 -1
  181. package/src/components/Search/SearchSuggestedPages.tsx +1 -1
  182. package/src/components/Search/SearchTrigger.tsx +1 -1
  183. package/src/components/Search/variables.ts +2 -2
  184. package/src/components/Segmented/Segmented.tsx +1 -1
  185. package/src/components/Select/Select.tsx +3 -3
  186. package/src/components/Sidebar/Sidebar.tsx +1 -1
  187. package/src/components/SidebarActions/ChangeViewButton.tsx +2 -2
  188. package/src/components/SidebarActions/SidebarActions.tsx +2 -2
  189. package/src/components/SidebarLogo/SidebarLogo.tsx +3 -3
  190. package/src/components/TableOfContent/TableOfContent.tsx +1 -1
  191. package/src/components/Tag/Tag.tsx +1 -1
  192. package/src/components/UserMenu/UserAvatar.tsx +1 -1
  193. package/src/components/UserMenu/UserInfoMenuItem.tsx +1 -1
  194. package/src/components/UserMenu/UserMenu.tsx +1 -1
  195. package/src/components/UserMenu/UserMenuMobile.tsx +1 -1
  196. package/src/layouts/DocumentationLayout.tsx +7 -0
  197. package/src/layouts/NotFound.tsx +3 -3
  198. package/src/layouts/RootLayout.tsx +2 -2
  199. package/src/markdoc/components/InlineSvg/InlineSvg.tsx +8 -1
  200. 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
- exports.FilterOptionLabel = styled_components_1.default.label.attrs({
9
- 'data-component-name': 'Filter/FilterOptionLabel',
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
- export declare const FilterOptions: import("styled-components").StyledComponent<"div", any, {
2
- 'data-component-name': string;
3
- }, "data-component-name">;
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
- exports.FilterOptions = styled_components_1.default.div.attrs({
9
- 'data-component-name': 'Filter/FilterOptions',
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
- export declare const FilterTitle: import("styled-components").StyledComponent<"div", any, {
2
- 'data-component-name': string;
3
- }, "data-component-name">;
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
- exports.FilterTitle = styled_components_1.default.div.attrs({
9
- 'data-component-name': 'Filter/FilterTitle',
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,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- type FooterProps = {
2
+ export type FooterProps = {
3
3
  className?: string;
4
4
  };
5
5
  export declare function Footer({ className }: FooterProps): JSX.Element | null;
6
- export {};
@@ -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 { Logo } from '../../components/Logo/Logo';
2
- export declare const FooterLogo: import("styled-components").StyledComponent<typeof Logo, any, {
3
- 'data-component-name': string;
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
- exports.FooterLogo = (0, styled_components_1.default)(Logo_1.Logo).attrs({ 'data-component-name': 'Footer/FooterLogo' }) `
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
- import React from 'react';
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): React.JSX.Element;
8
+ export declare function Image(props: ImageProps): JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export interface JsonProps {
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 {};
@@ -5,7 +5,7 @@ declare const FORMATS: {
5
5
  short: (date: Date, locale: string) => string;
6
6
  long: (date: Date, locale: string) => string;
7
7
  };
8
- type LastUpdatedProps = {
8
+ export type LastUpdatedProps = {
9
9
  lastModified: Date;
10
10
  format?: keyof typeof FORMATS;
11
11
  locale?: string;
@@ -10,4 +10,4 @@ export type LinkProps = {
10
10
  onClick?: () => void;
11
11
  [key: string]: unknown;
12
12
  };
13
- export declare function Link(props: React.PropsWithChildren<LinkProps>): React.JSX.Element;
13
+ export declare function Link(props: React.PropsWithChildren<LinkProps>): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export interface LoadingProps {
2
+ export type LoadingProps = {
3
3
  color: string;
4
- }
4
+ };
5
5
  export declare function Loading({ color }: LoadingProps): JSX.Element;
@@ -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-weight: var(--font-weight-regular);
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-base);
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-base); // @presenter FontSize
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-secondary); // @presenter Color
87
- --md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
88
- --md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
89
- --md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
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 const MenuContainer: import("styled-components").StyledComponent<"div", any, MenuContainerProps, never>;
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
- exports.MenuContainer = styled_components_1.default.div.attrs(({ growContent, className, animation }) => ({
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(--sidebar-offset-top);
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-lin-height: var(--navbar-separator-line-height);
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 { Logo } from '../../components/Logo/Logo';
2
- export declare const NavbarLogo: import("styled-components").StyledComponent<typeof Logo, any, {
3
- 'data-component-name': string;
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
- exports.NavbarLogo = (0, styled_components_1.default)(Logo_1.Logo).attrs({
10
- 'data-component-name': 'Navbar/NavbarLogo',
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,6 +1,5 @@
1
- interface PanelBodyProps {
1
+ export type PanelBodyProps = {
2
2
  animate?: boolean;
3
3
  hidden?: boolean;
4
- }
4
+ };
5
5
  export declare const PanelBody: import("styled-components").StyledComponent<"div", any, PanelBodyProps, never>;
6
- 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 const Portal: ({ children, mountId }: PropsWithChildren<PortalProps>) => React.JSX.Element;
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
- const Portal = ({ children, mountId = 'root' }) => {
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,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- type SearchProps = {
2
+ export type SearchProps = {
3
3
  className?: string;
4
4
  };
5
5
  export declare function Search({ className }: SearchProps): JSX.Element;
6
- export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- type SearchDialogProps = {
2
+ export type SearchDialogProps = {
3
3
  onClose: () => void;
4
4
  className?: string;
5
5
  };
6
6
  export declare function SearchDialog({ onClose, className }: SearchDialogProps): JSX.Element;
7
- 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 {};
@@ -3,7 +3,7 @@ import type { SearchDocument } from '../../core/types';
3
3
  type ActiveItem<T> = T & {
4
4
  active?: boolean;
5
5
  };
6
- type SearchItemProps = {
6
+ export type SearchItemProps = {
7
7
  item: ActiveItem<SearchDocument>;
8
8
  product?: {
9
9
  name: string;