@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.
Files changed (243) 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/Button/Button.js +1 -1
  8. package/lib/components/Buttons/CopyButton.d.ts +2 -2
  9. package/lib/components/Buttons/CopyButton.js +3 -3
  10. package/lib/components/Buttons/EditPageButton.d.ts +2 -3
  11. package/lib/components/Buttons/EditPageButton.js +2 -2
  12. package/lib/components/Buttons/EmailButton.d.ts +4 -5
  13. package/lib/components/Buttons/EmailButton.js +2 -2
  14. package/lib/components/Buttons/NewTabButton.d.ts +4 -5
  15. package/lib/components/Buttons/NewTabButton.js +2 -2
  16. package/lib/components/Catalog/Catalog.d.ts +3 -2
  17. package/lib/components/Catalog/Catalog.js +1 -5
  18. package/lib/components/Catalog/CatalogActions.d.ts +1 -2
  19. package/lib/components/Catalog/CatalogCard.d.ts +1 -2
  20. package/lib/components/Catalog/CatalogCard.js +4 -5
  21. package/lib/components/Catalog/CatalogHighlight.d.ts +1 -2
  22. package/lib/components/Catalog/CatalogInfoBlock.d.ts +1 -2
  23. package/lib/components/CodeBlock/CodeBlock.js +1 -1
  24. package/lib/components/CodeBlock/CodeBlockContainer.d.ts +14 -5
  25. package/lib/components/CodeBlock/CodeBlockContainer.js +9 -4
  26. package/lib/components/CodeBlock/CodeBlockControls.js +2 -0
  27. package/lib/components/CodeBlock/CodeBlockTabs.d.ts +1 -2
  28. package/lib/components/CodeBlock/variables.js +2 -2
  29. package/lib/components/ColorModeSwitcher/ColorModeIcon.d.ts +4 -8
  30. package/lib/components/ColorModeSwitcher/ColorModeIcon.js +5 -3
  31. package/lib/components/ColorModeSwitcher/ColorModeSwitcher.d.ts +1 -2
  32. package/lib/components/DatePicker/DatePicker.d.ts +2 -3
  33. package/lib/components/Dropdown/Dropdown.d.ts +2 -3
  34. package/lib/components/Dropdown/Dropdown.js +10 -5
  35. package/lib/components/Dropdown/DropdownMenu.d.ts +1 -2
  36. package/lib/components/Dropdown/DropdownMenuItem.d.ts +1 -2
  37. package/lib/components/Dropdown/DropdownMenuItem.js +22 -5
  38. package/lib/components/Dropdown/variables.js +5 -1
  39. package/lib/components/Feedback/Comment.d.ts +2 -1
  40. package/lib/components/Feedback/Comment.js +3 -3
  41. package/lib/components/Feedback/Mood.js +4 -4
  42. package/lib/components/Feedback/Rating.js +1 -1
  43. package/lib/components/Feedback/ReportDialog.js +1 -1
  44. package/lib/components/Feedback/Scale.js +1 -1
  45. package/lib/components/Feedback/Sentiment.js +3 -3
  46. package/lib/components/Filter/FilterContent.d.ts +1 -3
  47. package/lib/components/Filter/FilterContent.js +4 -4
  48. package/lib/components/Filter/FilterInput.d.ts +1 -2
  49. package/lib/components/Filter/FilterOption.d.ts +8 -4
  50. package/lib/components/Filter/FilterOption.js +7 -4
  51. package/lib/components/Filter/FilterOptionLabel.d.ts +5 -3
  52. package/lib/components/Filter/FilterOptionLabel.js +6 -3
  53. package/lib/components/Filter/FilterOptions.d.ts +5 -3
  54. package/lib/components/Filter/FilterOptions.js +6 -3
  55. package/lib/components/Filter/FilterPopover.d.ts +1 -2
  56. package/lib/components/Filter/FilterSelect.js +1 -4
  57. package/lib/components/Filter/FilterTitle.d.ts +5 -3
  58. package/lib/components/Filter/FilterTitle.js +6 -3
  59. package/lib/components/Filter/variables.js +2 -1
  60. package/lib/components/Footer/Footer.d.ts +1 -2
  61. package/lib/components/Footer/FooterColumn.d.ts +1 -2
  62. package/lib/components/Footer/FooterCopyright.d.ts +1 -2
  63. package/lib/components/Footer/FooterItem.d.ts +1 -2
  64. package/lib/components/Footer/FooterLogo.d.ts +3 -4
  65. package/lib/components/Footer/FooterLogo.js +6 -1
  66. package/lib/components/Image/Image.d.ts +2 -2
  67. package/lib/components/JsonViewer/JsonViewer.d.ts +2 -2
  68. package/lib/components/LanguagePicker/LanguagePicker.d.ts +1 -2
  69. package/lib/components/LanguagePicker/LanguagePicker.js +5 -2
  70. package/lib/components/LanguagePicker/variables.js +4 -1
  71. package/lib/components/LastUpdated/LastUpdated.d.ts +1 -1
  72. package/lib/components/Link/Link.d.ts +1 -1
  73. package/lib/components/Loading/Loading.d.ts +2 -2
  74. package/lib/components/Logo/Logo.d.ts +1 -2
  75. package/lib/components/Markdown/Markdown.d.ts +12 -0
  76. package/lib/components/Markdown/Markdown.js +12 -13
  77. package/lib/components/Markdown/variables.js +10 -5
  78. package/lib/components/Menu/Menu.d.ts +1 -2
  79. package/lib/components/Menu/MenuContainer.d.ts +4 -4
  80. package/lib/components/Menu/MenuContainer.js +10 -3
  81. package/lib/components/Menu/MenuMobile.d.ts +1 -2
  82. package/lib/components/Menu/variables.js +2 -0
  83. package/lib/components/Navbar/NavbarItem.d.ts +1 -2
  84. package/lib/components/Navbar/NavbarItem.js +1 -1
  85. package/lib/components/Navbar/NavbarLogo.d.ts +3 -4
  86. package/lib/components/Navbar/NavbarLogo.js +6 -3
  87. package/lib/components/Navbar/NavbarMenu.d.ts +1 -2
  88. package/lib/components/PageNavigation/NextButton.d.ts +1 -2
  89. package/lib/components/PageNavigation/PageNavigation.d.ts +1 -2
  90. package/lib/components/PageNavigation/PreviousButton.d.ts +1 -2
  91. package/lib/components/Panel/Panel.d.ts +1 -2
  92. package/lib/components/Panel/PanelBody.d.ts +2 -3
  93. package/lib/components/Portal/Portal.d.ts +2 -3
  94. package/lib/components/Portal/Portal.js +2 -2
  95. package/lib/components/Product/Product.d.ts +1 -2
  96. package/lib/components/Product/ProductPicker.js +4 -1
  97. package/lib/components/Product/variables.js +4 -1
  98. package/lib/components/Search/Search.d.ts +1 -2
  99. package/lib/components/Search/SearchDialog.d.ts +1 -2
  100. package/lib/components/Search/SearchInput.d.ts +1 -2
  101. package/lib/components/Search/SearchItem.d.ts +1 -1
  102. package/lib/components/Search/SearchRecent.d.ts +1 -2
  103. package/lib/components/Search/SearchShortcut.d.ts +1 -2
  104. package/lib/components/Search/SearchSuggestedPages.d.ts +1 -2
  105. package/lib/components/Search/SearchTrigger.d.ts +1 -2
  106. package/lib/components/Search/variables.js +2 -2
  107. package/lib/components/Segmented/Segmented.d.ts +1 -1
  108. package/lib/components/Select/Select.d.ts +3 -3
  109. package/lib/components/Sidebar/Sidebar.d.ts +1 -2
  110. package/lib/components/SidebarActions/ChangeViewButton.d.ts +2 -3
  111. package/lib/components/SidebarActions/SidebarActions.d.ts +2 -2
  112. package/lib/components/SidebarLogo/SidebarLogo.d.ts +3 -3
  113. package/lib/components/TableOfContent/TableOfContent.d.ts +1 -2
  114. package/lib/components/Tag/Tag.d.ts +1 -1
  115. package/lib/components/Tooltip/Tooltip.js +2 -2
  116. package/lib/components/Tooltip/variables.js +4 -0
  117. package/lib/components/Typography/H1.js +1 -1
  118. package/lib/components/Typography/H2.js +1 -1
  119. package/lib/components/Typography/H3.js +1 -1
  120. package/lib/components/Typography/H4.js +1 -1
  121. package/lib/components/UserMenu/UserAvatar.d.ts +1 -2
  122. package/lib/components/UserMenu/UserInfoMenuItem.d.ts +1 -2
  123. package/lib/components/UserMenu/UserMenu.d.ts +1 -2
  124. package/lib/components/UserMenu/UserMenu.js +4 -1
  125. package/lib/components/UserMenu/UserMenuMobile.d.ts +1 -2
  126. package/lib/components/UserMenu/variables.js +4 -1
  127. package/lib/components/VersionPicker/VersionPicker.d.ts +1 -1
  128. package/lib/core/types/catalog.d.ts +3 -0
  129. package/lib/core/types/hooks.d.ts +3 -1
  130. package/lib/layouts/DocumentationLayout.js +7 -0
  131. package/lib/layouts/NotFound.js +2 -2
  132. package/lib/layouts/RootLayout.d.ts +2 -3
  133. package/lib/markdoc/components/InlineSvg/InlineSvg.d.ts +2 -1
  134. package/lib/markdoc/components/InlineSvg/InlineSvg.js +2 -2
  135. package/lib/markdoc/components/Tabs/variables.js +5 -5
  136. package/package.json +4 -4
  137. package/src/components/Badge/Badge.tsx +13 -3
  138. package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -2
  139. package/src/components/Breadcrumbs/Breadcrumbs.tsx +2 -2
  140. package/src/components/Button/Button.tsx +5 -1
  141. package/src/components/Buttons/CopyButton.tsx +7 -5
  142. package/src/components/Buttons/EditPageButton.tsx +3 -3
  143. package/src/components/Buttons/EmailButton.tsx +4 -4
  144. package/src/components/Buttons/NewTabButton.tsx +7 -4
  145. package/src/components/Catalog/Catalog.tsx +5 -7
  146. package/src/components/Catalog/CatalogActions.tsx +1 -1
  147. package/src/components/Catalog/CatalogCard.tsx +23 -24
  148. package/src/components/Catalog/CatalogHighlight.tsx +1 -1
  149. package/src/components/Catalog/CatalogInfoBlock.tsx +1 -1
  150. package/src/components/CodeBlock/CodeBlock.tsx +1 -1
  151. package/src/components/CodeBlock/CodeBlockContainer.tsx +19 -6
  152. package/src/components/CodeBlock/CodeBlockControls.tsx +2 -0
  153. package/src/components/CodeBlock/CodeBlockTabs.tsx +1 -1
  154. package/src/components/CodeBlock/variables.ts +2 -2
  155. package/src/components/ColorModeSwitcher/ColorModeIcon.tsx +8 -4
  156. package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
  157. package/src/components/DatePicker/DatePicker.tsx +2 -2
  158. package/src/components/Dropdown/Dropdown.tsx +14 -8
  159. package/src/components/Dropdown/DropdownMenu.tsx +1 -1
  160. package/src/components/Dropdown/DropdownMenuItem.tsx +25 -6
  161. package/src/components/Dropdown/variables.ts +5 -1
  162. package/src/components/Feedback/Comment.tsx +4 -2
  163. package/src/components/Feedback/Mood.tsx +5 -4
  164. package/src/components/Feedback/Rating.tsx +1 -1
  165. package/src/components/Feedback/ReportDialog.tsx +1 -0
  166. package/src/components/Feedback/Scale.tsx +1 -1
  167. package/src/components/Feedback/Sentiment.tsx +4 -3
  168. package/src/components/Filter/FilterContent.tsx +3 -3
  169. package/src/components/Filter/FilterInput.tsx +1 -1
  170. package/src/components/Filter/FilterOption.tsx +20 -4
  171. package/src/components/Filter/FilterOptionLabel.tsx +10 -3
  172. package/src/components/Filter/FilterOptions.tsx +10 -3
  173. package/src/components/Filter/FilterPopover.tsx +1 -1
  174. package/src/components/Filter/FilterSelect.tsx +1 -4
  175. package/src/components/Filter/FilterTitle.tsx +10 -3
  176. package/src/components/Filter/variables.ts +2 -1
  177. package/src/components/Footer/Footer.tsx +1 -1
  178. package/src/components/Footer/FooterColumn.tsx +1 -1
  179. package/src/components/Footer/FooterCopyright.tsx +1 -1
  180. package/src/components/Footer/FooterItem.tsx +1 -1
  181. package/src/components/Footer/FooterLogo.tsx +8 -1
  182. package/src/components/Image/Image.tsx +1 -1
  183. package/src/components/JsonViewer/JsonViewer.tsx +2 -2
  184. package/src/components/LanguagePicker/LanguagePicker.tsx +6 -3
  185. package/src/components/LanguagePicker/variables.ts +4 -1
  186. package/src/components/LastUpdated/LastUpdated.tsx +1 -1
  187. package/src/components/Link/Link.tsx +1 -1
  188. package/src/components/Loading/Loading.tsx +2 -2
  189. package/src/components/Logo/Logo.tsx +1 -1
  190. package/src/components/Markdown/Markdown.tsx +23 -14
  191. package/src/components/Markdown/variables.ts +10 -5
  192. package/src/components/Menu/Menu.tsx +1 -1
  193. package/src/components/Menu/MenuContainer.tsx +9 -5
  194. package/src/components/Menu/MenuMobile.tsx +1 -1
  195. package/src/components/Menu/variables.ts +2 -0
  196. package/src/components/Navbar/Navbar.tsx +1 -0
  197. package/src/components/Navbar/NavbarItem.tsx +2 -2
  198. package/src/components/Navbar/NavbarLogo.tsx +8 -3
  199. package/src/components/Navbar/NavbarMenu.tsx +1 -1
  200. package/src/components/PageNavigation/NextButton.tsx +1 -1
  201. package/src/components/PageNavigation/PageNavigation.tsx +1 -1
  202. package/src/components/PageNavigation/PreviousButton.tsx +1 -1
  203. package/src/components/Panel/Panel.tsx +1 -1
  204. package/src/components/Panel/PanelBody.ts +2 -2
  205. package/src/components/Portal/Portal.tsx +6 -3
  206. package/src/components/Product/Product.tsx +1 -1
  207. package/src/components/Product/ProductPicker.tsx +4 -1
  208. package/src/components/Product/variables.ts +4 -1
  209. package/src/components/Search/Search.tsx +1 -1
  210. package/src/components/Search/SearchDialog.tsx +1 -1
  211. package/src/components/Search/SearchInput.tsx +1 -1
  212. package/src/components/Search/SearchItem.tsx +1 -1
  213. package/src/components/Search/SearchRecent.tsx +1 -1
  214. package/src/components/Search/SearchShortcut.tsx +1 -1
  215. package/src/components/Search/SearchSuggestedPages.tsx +1 -1
  216. package/src/components/Search/SearchTrigger.tsx +1 -1
  217. package/src/components/Search/variables.ts +2 -2
  218. package/src/components/Segmented/Segmented.tsx +1 -1
  219. package/src/components/Select/Select.tsx +3 -3
  220. package/src/components/Sidebar/Sidebar.tsx +1 -1
  221. package/src/components/SidebarActions/ChangeViewButton.tsx +2 -2
  222. package/src/components/SidebarActions/SidebarActions.tsx +2 -2
  223. package/src/components/SidebarLogo/SidebarLogo.tsx +3 -3
  224. package/src/components/TableOfContent/TableOfContent.tsx +1 -1
  225. package/src/components/Tag/Tag.tsx +1 -1
  226. package/src/components/Tooltip/Tooltip.tsx +2 -2
  227. package/src/components/Tooltip/variables.ts +4 -0
  228. package/src/components/Typography/H1.ts +1 -1
  229. package/src/components/Typography/H2.ts +1 -1
  230. package/src/components/Typography/H3.ts +1 -1
  231. package/src/components/Typography/H4.ts +1 -1
  232. package/src/components/UserMenu/UserAvatar.tsx +1 -1
  233. package/src/components/UserMenu/UserInfoMenuItem.tsx +1 -1
  234. package/src/components/UserMenu/UserMenu.tsx +5 -2
  235. package/src/components/UserMenu/UserMenuMobile.tsx +1 -1
  236. package/src/components/UserMenu/variables.ts +4 -1
  237. package/src/core/types/catalog.ts +3 -1
  238. package/src/core/types/hooks.ts +3 -1
  239. package/src/layouts/DocumentationLayout.tsx +7 -0
  240. package/src/layouts/NotFound.tsx +3 -3
  241. package/src/layouts/RootLayout.tsx +2 -2
  242. package/src/markdoc/components/InlineSvg/InlineSvg.tsx +8 -1
  243. 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-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
 
@@ -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', 'h')};
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', 'h')};
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', 'h')};
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', 'h')};
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', 'h')};
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', 'h')};
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-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 {};
@@ -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,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;
@@ -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 {};
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- type SearchSuggestedPagesProps = {
2
+ export type SearchSuggestedPagesProps = {
3
3
  className?: string;
4
4
  };
5
5
  export declare function SearchSuggestedPages({ className }: SearchSuggestedPagesProps): JSX.Element | null;
6
- export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- type SearchTriggerProps = {
2
+ export type SearchTriggerProps = {
3
3
  onClick: () => void;
4
4
  className?: string;
5
5
  };
6
6
  export declare function SearchTrigger({ onClick, className }: SearchTriggerProps): JSX.Element;
7
- 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-active); // @presenter 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-active); // @presenter 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,6 +1,6 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { SelectOption } from '../../core/types/select-option';
3
- type SegmentedProps<T> = {
3
+ export type SegmentedProps<T> = {
4
4
  options: SelectOption<T>[];
5
5
  value: T;
6
6
  onChange: ({ label, value }: {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface SelectProps<T = any> {
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>): React.JSX.Element;
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
- interface ChangeViewButtonProps {
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
- interface SidebarActionsProps {
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 interface LogoProps {
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, }?: LogoProps): JSX.Element | null;
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: 10px 20px;
145
- max-width: 250px;
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);