@redocly/theme 0.53.0-next.2 → 0.53.0-next.3

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 (40) hide show
  1. package/lib/components/CodeBlock/CodeBlockControls.js +9 -6
  2. package/lib/components/JsonViewer/JsonViewer.d.ts +1 -0
  3. package/lib/components/JsonViewer/JsonViewer.js +12 -10
  4. package/lib/components/Menu/MenuItem.js +2 -2
  5. package/lib/components/Panel/variables.js +1 -0
  6. package/lib/components/SidebarActions/SidebarActions.d.ts +2 -2
  7. package/lib/components/SidebarActions/SidebarActions.js +2 -2
  8. package/lib/components/Tag/Tag.d.ts +3 -1
  9. package/lib/components/Tag/variables.dark.js +13 -0
  10. package/lib/components/Tag/variables.js +59 -0
  11. package/lib/components/Tooltip/TooltipWrapper.d.ts +12 -0
  12. package/lib/components/Tooltip/TooltipWrapper.js +36 -0
  13. package/lib/core/types/hooks.d.ts +1 -1
  14. package/lib/core/types/l10n.d.ts +1 -1
  15. package/lib/icons/ArrowDownIcon/ArrowDownIcon.d.ts +9 -0
  16. package/lib/icons/ArrowDownIcon/ArrowDownIcon.js +22 -0
  17. package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.d.ts +9 -0
  18. package/lib/icons/CurveAutoColonIcon/CurveAutoColonIcon.js +22 -0
  19. package/lib/icons/KafkaIcon/KafkaIcon.d.ts +9 -0
  20. package/lib/icons/KafkaIcon/KafkaIcon.js +26 -0
  21. package/lib/index.d.ts +3 -0
  22. package/lib/index.js +3 -0
  23. package/package.json +3 -2
  24. package/src/components/CodeBlock/CodeBlockControls.tsx +27 -22
  25. package/src/components/JsonViewer/JsonViewer.tsx +15 -9
  26. package/src/components/Menu/MenuItem.tsx +2 -2
  27. package/src/components/Panel/variables.ts +1 -0
  28. package/src/components/SidebarActions/SidebarActions.tsx +3 -3
  29. package/src/components/Tag/Tag.tsx +4 -0
  30. package/src/components/Tag/variables.dark.ts +13 -0
  31. package/src/components/Tag/variables.ts +59 -0
  32. package/src/components/Tooltip/TooltipWrapper.tsx +71 -0
  33. package/src/core/styles/dark.ts +1 -0
  34. package/src/core/styles/global.ts +1 -0
  35. package/src/core/types/hooks.ts +6 -1
  36. package/src/core/types/l10n.ts +2 -0
  37. package/src/icons/ArrowDownIcon/ArrowDownIcon.tsx +33 -0
  38. package/src/icons/CurveAutoColonIcon/CurveAutoColonIcon.tsx +26 -0
  39. package/src/icons/KafkaIcon/KafkaIcon.tsx +33 -0
  40. package/src/index.ts +3 -0
@@ -8,6 +8,7 @@ const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const CodeBlockTabs_1 = require("../../components/CodeBlock/CodeBlockTabs");
10
10
  const CopyButton_1 = require("../../components/Buttons/CopyButton");
11
+ const TooltipWrapper_1 = require("../../components/Tooltip/TooltipWrapper");
11
12
  const hooks_1 = require("../../core/hooks");
12
13
  const DeselectIcon_1 = require("../../icons/DeselectIcon/DeselectIcon");
13
14
  const MaximizeIcon_1 = require("../../icons/MaximizeIcon/MaximizeIcon");
@@ -33,16 +34,18 @@ function CodeBlockControls({ children, className, title, controls, tabs, }) {
33
34
  title && react_1.default.createElement(Title, null, title),
34
35
  tabs && react_1.default.createElement(CodeBlockTabs_1.CodeBlockTabs, { tabs: tabs }),
35
36
  react_1.default.createElement(ControlsWrapper, null,
36
- report && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(ControlButton, Object.assign({ variant: "text", size: "small", "data-testid": "report-button", icon: controlsType === 'icon' ? react_1.default.createElement(WarningSquareIcon_1.WarningSquareIcon, { size: "18px" }) : undefined }, report.props), controlsType != 'icon' && (((_b = report.props) === null || _b === void 0 ? void 0 : _b.buttonText) || 'Report'))) : null,
37
+ report && !((_a = report === null || report === void 0 ? void 0 : report.props) === null || _a === void 0 ? void 0 : _a.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipKey: "codeSnippet.report.tooltipText", placement: "top" },
38
+ react_1.default.createElement(ControlButton, Object.assign({ variant: "text", size: "small", "data-testid": "report-button", icon: controlsType === 'icon' ? react_1.default.createElement(WarningSquareIcon_1.WarningSquareIcon, { size: "18px" }) : undefined }, report.props), controlsType != 'icon' && (((_b = report.props) === null || _b === void 0 ? void 0 : _b.buttonText) || 'Report')))) : null,
37
39
  expand && !((_c = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.expand) === null || _c === void 0 ? void 0 : _c.hide) ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "expand-all", icon: controlsType === 'icon' ? react_1.default.createElement(MaximizeIcon_1.MaximizeIcon, null) : undefined, onClick: expand === null || expand === void 0 ? void 0 : expand.onClick }, controlsType !== 'icon' && ((expand === null || expand === void 0 ? void 0 : expand.label) || 'Expand all'))) : null,
38
40
  collapse && !((_d = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.collapse) === null || _d === void 0 ? void 0 : _d.hide) ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "collapse-all", icon: controlsType === 'icon' ? react_1.default.createElement(MinimizeIcon_1.MinimizeIcon, null) : undefined, onClick: collapse === null || collapse === void 0 ? void 0 : collapse.onClick }, controlsType !== 'icon' && ((expand === null || expand === void 0 ? void 0 : expand.label) || 'Collapse all'))) : null,
39
41
  select ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "select-all", icon: controlsType === 'icon' ? react_1.default.createElement(SelectIcon_1.SelectIcon, null) : undefined, onClick: select === null || select === void 0 ? void 0 : select.onClick }, controlsType !== 'icon' && (select === null || select === void 0 ? void 0 : select.label) ? select.label : 'Select all')) : null,
40
42
  deselect ? (react_1.default.createElement(ControlButton, { variant: "text", size: "small", "data-testid": "clear-all", icon: controlsType === 'icon' ? react_1.default.createElement(DeselectIcon_1.DeselectIcon, null) : undefined, onClick: deselect === null || deselect === void 0 ? void 0 : deselect.onClick }, controlsType !== 'icon' && (deselect === null || deselect === void 0 ? void 0 : deselect.label) ? deselect.label : 'Clear all')) : null,
41
- copy && !((_e = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.copy) === null || _e === void 0 ? void 0 : _e.hide) ? (react_1.default.createElement(CopyButton_1.CopyButton, { data: copy.data, "data-source": copy.dataSource, "data-hash": copy.dataHash, type: controlsType, toasterPlacement: copy.toasterPlacement, toasterDuration: copy.toasterDuration, buttonText: copy.label, onCopyClick: () => {
42
- var _a, _b;
43
- (_a = copy === null || copy === void 0 ? void 0 : copy.onClick) === null || _a === void 0 ? void 0 : _a.call(copy);
44
- (_b = telemetry === null || telemetry === void 0 ? void 0 : telemetry.send) === null || _b === void 0 ? void 0 : _b.call(telemetry, 'code_snippet_copied', {});
45
- } })) : null))) : null;
43
+ copy && !((_e = codeSnippet === null || codeSnippet === void 0 ? void 0 : codeSnippet.copy) === null || _e === void 0 ? void 0 : _e.hide) ? (react_1.default.createElement(TooltipWrapper_1.TooltipWrapper, { tooltipKey: "codeSnippet.copy.tooltipText", placement: "top" },
44
+ react_1.default.createElement(CopyButton_1.CopyButton, { data: copy.data, "data-source": copy.dataSource, "data-hash": copy.dataHash, type: controlsType, toasterPlacement: copy.toasterPlacement, toasterDuration: copy.toasterDuration, buttonText: copy.label, onCopyClick: () => {
45
+ var _a, _b;
46
+ (_a = copy === null || copy === void 0 ? void 0 : copy.onClick) === null || _a === void 0 ? void 0 : _a.call(copy);
47
+ (_b = telemetry === null || telemetry === void 0 ? void 0 : telemetry.send) === null || _b === void 0 ? void 0 : _b.call(telemetry, 'code_snippet_copied', {});
48
+ } }))) : null))) : null;
46
49
  return children || controls ? (react_1.default.createElement(ContainerWrapper, { "data-component-name": "CodeBlock/CodeBlockControls", className: className }, children ? children : defaultControls)) : null;
47
50
  }
48
51
  const ContainerWrapper = styled_components_1.default.div `
@@ -6,6 +6,7 @@ export type JsonProps = {
6
6
  className?: string;
7
7
  expandLevel: number;
8
8
  startLineNumber?: number;
9
+ hideHeader?: boolean;
9
10
  onCopyClick?: () => void;
10
11
  };
11
12
  export declare const JsonViewer: React.NamedExoticComponent<JsonProps>;
@@ -31,7 +31,7 @@ const react_1 = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
32
  const CodeBlock_1 = require("../../components/CodeBlock/CodeBlock");
33
33
  const helpers_1 = require("./helpers");
34
- function JsonComponent({ data, expandLevel = 1, className, onCopyClick, title, }) {
34
+ function JsonComponent({ data, expandLevel = 1, className, onCopyClick, title, hideHeader, }) {
35
35
  const showFoldingButtons = data && Object.values(data).some((value) => typeof value === 'object' && value !== null);
36
36
  const [expandAllSignal, setExpandAllSignal] = react_1.default.useState(undefined);
37
37
  const expandAll = () => {
@@ -48,15 +48,17 @@ function JsonComponent({ data, expandLevel = 1, className, onCopyClick, title, }
48
48
  };
49
49
  const source = JSON.stringify(data, null, 2);
50
50
  return (react_1.default.createElement(exports.JsonViewerWrap, { "data-testid": "json-viewer", "data-component-name": "JsonViewer/JsonViewer", className: className },
51
- react_1.default.createElement(CodeBlock_1.CodeBlock, { header: {
52
- title,
53
- className: 'code-block-header',
54
- controls: {
55
- copy: { data, onClick: onCopyClick, handleOutside: true },
56
- expand: showFoldingButtons ? { onClick: expandAll } : undefined,
57
- collapse: showFoldingButtons ? { onClick: collapseAll } : undefined,
58
- },
59
- }, source: source },
51
+ react_1.default.createElement(CodeBlock_1.CodeBlock, { header: hideHeader
52
+ ? undefined
53
+ : {
54
+ title,
55
+ className: 'code-block-header',
56
+ controls: {
57
+ copy: { data, onClick: onCopyClick, handleOutside: true },
58
+ expand: showFoldingButtons ? { onClick: expandAll } : undefined,
59
+ collapse: showFoldingButtons ? { onClick: collapseAll } : undefined,
60
+ },
61
+ }, source: source },
60
62
  react_1.default.createElement(FoldingWrap, null,
61
63
  react_1.default.createElement(helpers_1.JsonValue, { value: data, level: 0, standalone: true, expandAllSignal: expandAllSignal, defaultExpandLevel: Math.max(1, expandLevel) })))));
62
64
  }
@@ -51,7 +51,7 @@ function MenuItem(props) {
51
51
  const isDrilldown = type === constants_1.MenuItemType.DrillDown;
52
52
  const isNested = type === constants_1.MenuItemType.Group;
53
53
  const hasChevron = isNested && !isDrilldown;
54
- const isOperation = type === constants_1.MenuItemType.Operation;
54
+ const hasHttpTag = !!item.httpVerb || type === constants_1.MenuItemType.Operation;
55
55
  const handleOnClick = () => {
56
56
  var _a;
57
57
  (_a = telemetry.send) === null || _a === void 0 ? void 0 : _a.call(telemetry, 'sidebar_item_clicked', { label: item.label, type: item.type });
@@ -72,7 +72,7 @@ function MenuItem(props) {
72
72
  item.external ? react_1.default.createElement(LaunchIcon_1.LaunchIcon, { size: "var(--menu-item-external-icon-size)" }) : null),
73
73
  item.sublabel ? (react_1.default.createElement(MenuItemSubLabel, null, translate(item.subLabelTranslationKey, item.sublabel))) : null),
74
74
  isDrilldown ? react_1.default.createElement(ArrowRightIcon_1.ArrowRightIcon, { size: "12px" }) : null,
75
- isOperation ? (react_1.default.createElement(HttpTag_1.HttpTag, { color: httpColor || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb)) : null));
75
+ hasHttpTag ? (react_1.default.createElement(HttpTag_1.HttpTag, { color: httpColor || '' }, item.httpVerb === 'hook' ? 'event' : item.httpVerb)) : null));
76
76
  return (react_1.default.createElement(MenuItemWrapper, { "data-component-name": "Menu/MenuItem", className: generateClassName({ type, item, className }) },
77
77
  item.link ? (react_1.default.createElement(MenuItemLink, { to: item.link, external: item.external, target: item.target, languageInsensitive: item.languageInsensitive }, label)) : (label),
78
78
  isNested ? (react_1.default.createElement(MenuItemNestedWrapper, { depth: depth, ref: nestedMenuRef, style: style }, isExpanded || !canUnmount ? props.children : null)) : null,
@@ -333,6 +333,7 @@ exports.apiReferencePanels = (0, styled_components_1.css) `
333
333
  .panel-servers-list,
334
334
  .panel-request-samples,
335
335
  .panel-response-samples,
336
+ .panel-messages-samples,
336
337
  .panel-callback-samples {
337
338
  --text-color: var(--panel-samples-text-color);
338
339
  --panel-text-color: var(--panel-samples-text-color); // @presenter Color
@@ -4,11 +4,11 @@ export { LayoutVariant };
4
4
  export type SidebarActionsProps = {
5
5
  layout: LayoutVariant;
6
6
  collapsedSidebar: boolean;
7
- isOpenapiDocs: boolean;
7
+ isApiDocs: boolean;
8
8
  hideCollapseSidebarButton?: boolean;
9
9
  onChangeViewClick: () => void;
10
10
  onChangeCollapseSidebarClick: () => void;
11
11
  requestAccessButton?: React.ReactElement | null;
12
12
  className?: string;
13
13
  };
14
- export declare const SidebarActions: ({ layout, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => React.JSX.Element;
14
+ export declare const SidebarActions: ({ layout, hideCollapseSidebarButton, collapsedSidebar, isApiDocs, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => React.JSX.Element;
@@ -13,7 +13,7 @@ const Button_1 = require("../../components/Button/Button");
13
13
  const SidePanelCloseIcon_1 = require("../../icons/SidePanelCloseIcon/SidePanelCloseIcon");
14
14
  const SidePanelOpenIcon_1 = require("../../icons/SidePanelOpenIcon/SidePanelOpenIcon");
15
15
  const styled_1 = require("../../components/SidebarActions/styled");
16
- const SidebarActions = ({ layout, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
16
+ const SidebarActions = ({ layout, hideCollapseSidebarButton = false, collapsedSidebar, isApiDocs, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
17
17
  const { useTelemetry, useTranslate } = (0, hooks_1.useThemeHooks)();
18
18
  const { translate } = useTranslate();
19
19
  const telemetry = useTelemetry();
@@ -30,7 +30,7 @@ const SidebarActions = ({ layout, hideCollapseSidebarButton = false, collapsedSi
30
30
  }, title: collapsedSidebar
31
31
  ? translate('sidebar.actions.show', 'Show sidebar')
32
32
  : translate('sidebar.actions.hide', 'Hide sidebar'), size: "small", variant: "outlined", icon: collapsedSidebar ? react_1.default.createElement(SidePanelOpenIcon_1.SidePanelOpenIcon, null) : react_1.default.createElement(SidePanelCloseIcon_1.SidePanelCloseIcon, null) })),
33
- isOpenapiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },
33
+ isApiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },
34
34
  react_1.default.createElement(ChangeViewButton_1.ChangeViewButton, { collapsedSidebar: collapsedSidebar, layout: layout, onClick: () => {
35
35
  var _a;
36
36
  onChangeViewClick();
@@ -3,8 +3,10 @@ type DefaultStatusColor = 'success' | 'processing' | 'error' | 'warning' | 'defa
3
3
  type ActionStatusColor = 'approved' | 'declined' | 'pending';
4
4
  type SubjectStatusColor = 'active' | 'draft' | 'deprecated' | 'product';
5
5
  type HttpColor = 'get' | 'post' | 'put' | 'delete' | 'option' | 'patch' | 'head' | 'hook' | 'link';
6
+ type ActionColor = 'receive' | 'send';
7
+ type ChannelColor = 'channel';
6
8
  type HttpStatusColor = 'http-deprecated';
7
- type StatusColor = DefaultStatusColor | ActionStatusColor | SubjectStatusColor | HttpColor | HttpStatusColor;
9
+ type StatusColor = DefaultStatusColor | ActionStatusColor | SubjectStatusColor | HttpColor | ActionColor | ChannelColor | HttpStatusColor;
8
10
  type Color = 'red' | 'green' | 'blue' | 'grey' | 'gold' | 'cyan' | 'magenta' | 'purple' | 'lime' | 'geekblue' | 'yellow';
9
11
  export type TagProps = {
10
12
  className?: string;
@@ -24,6 +24,19 @@ exports.tagDarkMode = (0, styled_components_1.css) `
24
24
  --tag-operation-color-options: #1a1c21; // @presenter Color
25
25
  --tag-operation-bg-color-options: #2a2b33; // @presenter Color
26
26
 
27
+ --tag-action-color-receive: #4db144; // @presenter Color
28
+ --tag-action-color-sub: #4db144; // @presenter Color
29
+ --tag-action-color-consume: #4db144; // @presenter Color
30
+
31
+ --tag-action-color-send: #4144F6; // @presenter Color
32
+ --tag-action-color-pub: #4144F6; // @presenter Color
33
+ --tag-action-color-publish: #4144f6; // @presenter Color
34
+
35
+ --tag-action-color-channel: #F0870E; // @presenter Color
36
+ --tag-action-color-topic: #F0870E; // @presenter Color
37
+ --tag-action-color-queue: #D72E81; // @presenter Color
38
+ --tag-action-color-exchange: #C79CF2; // @presenter Color
39
+
27
40
  .tag-grey,
28
41
  .tag-draft,
29
42
  .tag-schema,
@@ -197,9 +197,23 @@ exports.tag = (0, styled_components_1.css) `
197
197
 
198
198
  --tag-operation-color-deprecated: var(--text-color-disabled); // @presenter Color
199
199
 
200
+ --tag-action-color-receive: #4db144; // @presenter Color
201
+ --tag-action-color-sub: #4db144; // @presenter Color
202
+ --tag-action-color-consume: #4db144; // @presenter Color
203
+
204
+ --tag-action-color-send: #4144f6; // @presenter Color
205
+ --tag-action-color-pub: #4144f6; // @presenter Color
206
+ --tag-action-color-publish: #4144f6; // @presenter Color
207
+
208
+ --tag-action-color-channel: #F0870E; // @presenter Color
209
+ --tag-action-color-topic: #F0870E; // @presenter Color
210
+ --tag-action-color-queue: #D72E81; // @presenter Color
211
+ --tag-action-color-exchange: #9B51E0; // @presenter Color
212
+
200
213
  .tag-delete {
201
214
  --tag-color: var(--tag-operation-color-delete); // @presenter Color
202
215
  }
216
+
203
217
  .tag-get {
204
218
  --tag-color: var(--tag-operation-color-get); // @presenter Color
205
219
  }
@@ -219,7 +233,52 @@ exports.tag = (0, styled_components_1.css) `
219
233
  .tag-http-deprecated {
220
234
  --tag-color: var(--tag-operation-color-deprecated) // @presenter Color
221
235
  }
236
+
237
+ .tag-receive {
238
+ --tag-color: var(--tag-action-color-receive); // @presenter Color
239
+ }
240
+
241
+ .tag-send {
242
+ --tag-color: var(--tag-action-color-send); // @presenter Color
243
+ }
244
+
245
+ .tag-pub {
246
+ --tag-color: var(--tag-action-color-pub); // @presenter Color
247
+ }
248
+
249
+ .tag-sub {
250
+ --tag-color: var(--tag-action-color-sub); // @presenter Color
251
+ }
222
252
 
253
+ .tag-consume {
254
+ --tag-color: var(--tag-action-color-consume); // @presenter Color
255
+ }
256
+
257
+ .tag-publish {
258
+ --tag-color: var(--tag-action-color-publish); // @presenter Color
259
+ }
260
+
261
+ .tag-channel {
262
+ --tag-color: var(--tag-action-color-channel); // @presenter Color
263
+ }
264
+
265
+ .tag-topic {
266
+ --tag-color: var(--tag-action-color-channel); // @presenter Color
267
+ }
268
+
269
+ .tag-queue {
270
+ --tag-color: var(--tag-action-color-queue); // @presenter Color
271
+ }
272
+
273
+ .tag-exchange {
274
+ --tag-color: var(--tag-action-color-exchange); // @presenter Color
275
+ }
276
+
277
+ // shorten alias for exchange tag:
278
+ .tag-exch {
279
+ --tag-color: var(--tag-action-color-exchange); // @presenter Color
280
+ }
281
+
223
282
  // @tokens End
224
283
  `;
225
284
  //# sourceMappingURL=variables.js.map
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+ import type { TooltipProps } from '../../components/Tooltip/Tooltip';
3
+ export type TooltipWrapperProps = {
4
+ children: ReactElement;
5
+ tooltipKey: string;
6
+ placement?: TooltipProps['placement'];
7
+ width?: string;
8
+ className?: string;
9
+ showOnHover?: boolean;
10
+ disabled?: boolean;
11
+ };
12
+ export declare function TooltipWrapper({ children, tooltipKey, placement, width, className, showOnHover, disabled, }: TooltipWrapperProps): JSX.Element;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TooltipWrapper = TooltipWrapper;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ const react_1 = __importDefault(require("react"));
9
+ const hooks_1 = require("../../core/hooks");
10
+ const Tooltip_1 = require("../../components/Tooltip/Tooltip");
11
+ function TooltipWrapper({ children, tooltipKey, placement = 'top', width = 'max-content', className = '', showOnHover = true, disabled = false, }) {
12
+ const { useTranslate } = (0, hooks_1.useThemeHooks)();
13
+ const tooltip = (0, hooks_1.useControl)();
14
+ const { translate } = useTranslate();
15
+ const handleMouseEnter = () => {
16
+ if (showOnHover && !disabled) {
17
+ tooltip.handleOpen();
18
+ }
19
+ };
20
+ const handleMouseLeave = () => {
21
+ if (showOnHover) {
22
+ tooltip.handleClose();
23
+ }
24
+ };
25
+ const handleClick = () => {
26
+ if (showOnHover) {
27
+ tooltip.handleClose();
28
+ }
29
+ };
30
+ return (react_1.default.createElement(Tooltip_1.Tooltip, { className: className, tip: translate(tooltipKey), isOpen: tooltip.isOpened, placement: placement, width: width },
31
+ react_1.default.createElement(TooltipEventWrapper, { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onClick: handleClick }, children)));
32
+ }
33
+ const TooltipEventWrapper = styled_components_1.default.div `
34
+ display: contents;
35
+ `;
36
+ //# sourceMappingURL=TooltipWrapper.js.map
@@ -130,5 +130,5 @@ export type L10nConfig = {
130
130
  }[];
131
131
  };
132
132
  type TelemetryEvent = 'search_opened' | 'client_error_caught' | 'breadcrumb_clicked' | 'color_mode_switched' | 'sidebar_item_clicked' | 'sidebar_item_expanded' | 'sidebar_item_collapsed' | 'edit_page_link_clicked' | 'code_snippet_copied' | 'code_snippet_reported' | 'feedback_sent' | 'navbar_menu_item_clicked' | 'login_button_clicked' | 'login_provider_button_clicked' | 'logout_menu_item_clicked' | 'logo_clicked' | 'toc_item_clicked' | 'version_switched' | 'catalog_filter_changed' | 'catalog_item_clicked' | 'scorecard_link_clicked' | 'markdown_anchor_link_clicked' | 'back_to_catalog_button_clicked' | 'sidebar_drilldown_back_button_clicked' | 'footer_item_clicked' | 'request_api_access_button_clicked' | 'sidebar_samples_button_clicked' | 'change_layout_button_clicked' | 'version_picker_selection_change' | 'openapi_docs' | 'replay' | 'catalog_actions_button_clicked' | 'catalog_item_clicked' | 'filter_checkbox_toggled' | 'language_picker_locale_changed' | 'mobile_menu_button_close_clicked' | 'mobile_menu_button_open_clicked' | 'search_input_reset_button_clicked' | 'search_recent_remove_button_clicked' | 'product_picked';
133
- type OtelTelemetryEvent = 'page.viewed' | 'error' | 'search.ai.query' | 'search.query' | 'search.result.clicked' | 'openapi_docs.viewed' | 'openapi_docs.performance_metrics' | 'openapi_docs.download_definition.clicked' | 'openapi_docs.select_language.clicked' | 'openapi_docs.expand_collapse_all.clicked' | 'openapi_docs.copy_code_snippet.clicked' | 'openapi_docs.switch_servers.clicked' | 'openapi_docs.examples_switcher.clicked' | 'openapi_docs.try_it.opened';
133
+ type OtelTelemetryEvent = 'page.viewed' | 'error' | 'search.ai.query' | 'search.query' | 'search.result.clicked' | 'openapi_docs.viewed' | 'openapi_docs.performance_metrics' | 'openapi_docs.download_definition.clicked' | 'openapi_docs.select_language.clicked' | 'openapi_docs.expand_collapse_all.clicked' | 'openapi_docs.copy_code_snippet.clicked' | 'openapi_docs.switch_servers.clicked' | 'openapi_docs.examples_switcher.clicked' | 'openapi_docs.try_it.opened' | 'asyncapi_docs.performance_metrics' | 'asyncapi_docs.viewed' | 'asyncapi_docs.switch_message.clicked' | 'asyncapi_docs.switch_example.clicked' | 'asyncapi_docs.message.clicked';
134
134
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { TOptions } from 'i18next';
2
- export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.settings.reasons.send' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.deprecated' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.scopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'codeWalkthrough.download' | 'codeWalkthrough.preview';
2
+ export type TranslationKey = 'dev.newApp' | 'dev.newApp.text' | 'dev.sidebar.header' | 'dev.sidebar.footer.text' | 'dev.create.app.dialog.appName.placeholder' | 'dev.create.app.dialog.appName.error' | 'dev.create.app.dialog.selectAPIs' | 'dev.create.app.dialog.description' | 'dev.create.app.dialog.description.placeholder' | 'dev.create.app.dialog.create' | 'dev.create.app.dialog.cancel' | 'dev.main.tab.appKeys' | 'dev.main.tab.logs' | 'dev.app.description.title' | 'dev.edit.description.dialog.title' | 'dev.edit.description.dialog.save' | 'dev.edit.description.dialog.cancel' | 'dev.edit.apis.dialog.selectedAPIs' | 'dev.app.key.create' | 'dev.create.key.dialog.title' | 'dev.create.key.dialog.create' | 'dev.create.key.dialog.cancel' | 'dev.app.edit' | 'dev.app.delete' | 'dev.edit.app.dialog.title' | 'dev.edit.app.dialog.save' | 'dev.edit.app.dialog.cancel' | 'dev.delete.app.dialog.title' | 'dev.delete.app.dialog.confirmation' | 'dev.delete.app.dialog.delete' | 'dev.delete.app.dialog.cancel' | 'dev.app.key.roll' | 'dev.roll.key.dialog.title' | 'dev.roll.key.dialog.apiKey' | 'dev.roll.key.dialog.expires' | 'dev.roll.key.dialog.confirmation' | 'dev.roll.key.dialog.cancel' | 'dev.roll.key.dialog.roll' | 'dev.update.key.dialog.title' | 'dev.update.key.dialog.update' | 'dev.update.key.dialog.cancel' | 'dev.app.key.api.name' | 'dev.app.key.api.status' | 'dev.app.key.api.edit' | 'dev.edit.apis.dialog.title' | 'dev.edit.apis.dialog.apiKey' | 'dev.edit.apis.dialog.save' | 'dev.edit.apis.dialog.cancel' | 'dev.select.placeholder' | 'dev.app.overview.status.pending' | 'dev.app.overview.status.approved' | 'dev.app.overview.status.revoked' | 'dev.app.overview.status' | 'dev.app.overview.non-production' | 'dev.app.overview.production' | 'dev.app.overview.clientId' | 'dev.app.overview.apiKey' | 'dev.app.key.revoke' | 'dev.revoke.key.dialog.title' | 'dev.revoke.key.dialog.apiKey' | 'dev.revoke.key.dialog.expires' | 'dev.revoke.key.dialog.confirmation' | 'dev.revoke.key.dialog.revoke' | 'dev.revoke.key.dialog.cancel' | 'dev.app.overview.expires' | 'dev.app.overview.created' | 'dev.app.overview.visibilityToggle.hide' | 'dev.app.overview.visibilityToggle.show' | 'search.loading' | 'search.noResults.title' | 'search.keys.navigate' | 'search.keys.select' | 'search.keys.exit' | 'search.label' | 'search.cancel' | 'search.recent' | 'search.navbar.label' | 'search.suggested' | 'search.showMore' | 'search.filter.title' | 'search.filter.reset' | 'search.filter.field.reset' | 'search.ai.welcomeText' | 'search.ai.newConversation' | 'search.ai.backToSearch' | 'search.ai.placeholder' | 'search.ai.generatingResponse' | 'search.ai.followUpQuestion' | 'search.ai.suggestionsTitle' | 'search.ai.thinkingText' | 'search.ai.resourcesFound' | 'search.ai.resourcesFound.basedOn' | 'search.ai.resourcesFound.resources' | 'search.ai.button' | 'search.ai.label' | 'search.ai.disclaimer' | 'search.ai.error.description' | 'search.ai.error.description.forbidden' | 'search.ai.error.description.unauthorized' | 'search.ai.error.header' | 'search.ai.error.header.forbidden' | 'search.ai.error.header.unauthorized' | 'toc.header' | 'footer.copyrightText' | 'page.homeButton' | 'page.forbidden.title' | 'page.notFound.title' | 'page.notFound.description' | 'page.lastUpdated.timeago' | 'page.lastUpdated.on' | 'catalog.filters.placeholder' | 'catalog.filters.title' | 'catalog.filters.clearAll' | 'catalog.filters.select.addFilter' | 'catalog.filters.select.all' | 'catalog.filters.done' | 'sidebar.menu.backLabel' | 'sidebar.menu.backToLabel' | 'sidebar.actions.show' | 'sidebar.actions.hide' | 'sidebar.actions.changeLayout' | 'versionPicker.label' | 'versionPicker.unversioned' | 'codeSnippet.copy.buttonText' | 'codeSnippet.copy.tooltipText' | 'codeSnippet.copy.toasterText' | 'markdown.editPage.text' | 'feedback.settings.comment.submitText' | 'feedback.settings.comment.label' | 'feedback.settings.comment.send' | 'feedback.settings.comment.cancel' | 'feedback.settings.comment.satisfiedLabel' | 'feedback.settings.comment.neutralLabel' | 'feedback.settings.comment.dissatisfiedLabel' | 'feedback.settings.submitText' | 'feedback.settings.label' | 'feedback.settings.reasons.label' | 'feedback.settings.reasons.send' | 'feedback.settings.comment.likeLabel' | 'feedback.settings.comment.dislikeLabel' | 'feedback.sentiment.thumbUp' | 'feedback.sentiment.thumbDown' | 'feedback.settings.leftScaleLabel' | 'feedback.settings.rightScaleLabel' | 'feedback.settings.optionalEmail.placeholder' | 'feedback.settings.optionalEmail.label' | 'codeSnippet.report.buttonText' | 'codeSnippet.report.tooltipText' | 'codeSnippet.report.label' | 'userMenu.login' | 'userMenu.logout' | 'userMenu.devOnboardingLabel' | 'mobileMenu.mainMenu' | 'mobileMenu.previous' | 'mobileMenu.products' | 'page.nextButton' | 'page.previousButton' | 'openapi.download.description.title' | 'openapi.info.title' | 'openapi.info.contact.url' | 'openapi.info.contact.name' | 'openapi.info.license' | 'openapi.info.termsOfService' | 'openapi.info.metadata.title' | 'openapi.key' | 'openapi.value' | 'openapi.enum' | 'openapi.items' | 'openapi.default' | 'openapi.variable' | 'openapi.variables' | 'openapi.actions.show' | 'openapi.actions.hide' | 'openapi.actions.more' | 'openapi.languages.title' | 'openapi.servers.title' | 'openapi.operations' | 'openapi.webhooks' | 'openapi.description' | 'openapi.badges.deprecated' | 'openapi.badges.required' | 'openapi.badges.webhook' | 'openapi.request' | 'openapi.path' | 'openapi.query' | 'openapi.cookie' | 'openapi.header' | 'openapi.body' | 'openapi.responses' | 'openapi.response' | 'openapi.callbacks' | 'openapi.callbackRequest' | 'openapi.callbackResponse' | 'openapi.payload' | 'openapi.discriminator' | 'openapi.contentType' | 'openapi.tryIt' | 'openapi.loading' | 'openapi.example' | 'openapi.examples' | 'openapi.additionalProperties' | 'openapi.patternProperties' | 'openapi.required' | 'openapi.recursive' | 'openapi.complex' | 'openapi.deprecated' | 'openapi.hideExample' | 'openapi.showExample' | 'openapi.expandAll' | 'openapi.collapseAll' | 'openapi.noResponseExample' | 'openapi.noResponseContent' | 'openapi.noRequestPayload' | 'openapi.hidePattern' | 'openapi.showPattern' | 'openapi.authorizationUrl' | 'openapi.tokenUrl' | 'openapi.refreshUrl' | 'openapi.scopes' | 'openapi.security' | 'openapi.httpAuthorizationScheme' | 'openapi.bearerFormat' | 'openapi.parameterName' | 'openapi.flowType' | 'openapi.connectUrl' | 'openapi.requiredScopes' | 'openapi.unsupportedLanguage' | 'openapi.failedToGenerateCodeSample' | 'asyncapi.download.description.title' | 'asyncapi.info.title' | 'graphql.queries' | 'graphql.mutations' | 'graphql.subscriptions' | 'graphql.directives' | 'graphql.objects' | 'graphql.interfaces' | 'graphql.unions' | 'graphql.enums' | 'graphql.inputs' | 'graphql.scalars' | 'graphql.arguments.label' | 'graphql.arguments.show' | 'graphql.arguments.hide' | 'graphql.arguments.here' | 'graphql.returnTypes.label' | 'graphql.returnTypes.show' | 'graphql.returnTypes.hide' | 'graphql.possibleTypes' | 'graphql.defaultValue' | 'graphql.deprecationReason' | 'graphql.implementedInterfaces' | 'graphql.nonNull' | 'graphql.required' | 'graphql.deprecated' | 'graphql.variables' | 'graphql.querySample' | 'graphql.mutationSample' | 'graphql.subscriptionSample' | 'graphql.responseSample' | 'graphql.locations' | 'graphql.sample' | 'graphql.referenced' | 'codeWalkthrough.download' | 'codeWalkthrough.preview';
3
3
  export type Locale = {
4
4
  code: string;
5
5
  name: string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const ArrowDownIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ArrowDownIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M12.295 8.295L8.5 12.085V2H7.5V12.085L3.705 8.295L3 9L8 14L13 9L12.295 8.295Z", fill: "#1A1C21" })));
12
+ exports.ArrowDownIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/ArrowDownIcon/ArrowDownIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '16px'};
20
+ width: ${({ size }) => size || '16px'};
21
+ `;
22
+ //# sourceMappingURL=ArrowDownIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const CurveAutoColonIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CurveAutoColonIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("path", { d: "M4.74999 4.00001H10.05C10.1739 4.60703 10.5188 5.14642 11.0178 5.5136C11.5168 5.88079 12.1344 6.04962 12.7508 5.98735C13.3672 5.92508 13.9385 5.63615 14.354 5.17658C14.7694 4.71701 14.9995 4.11954 14.9995 3.50001C14.9995 2.88047 14.7694 2.283 14.354 1.82343C13.9385 1.36386 13.3672 1.07493 12.7508 1.01267C12.1344 0.950396 11.5168 1.11922 11.0178 1.48641C10.5188 1.85359 10.1739 2.39298 10.05 3.00001H4.74999C4.02065 3.00001 3.32117 3.28974 2.80545 3.80546C2.28972 4.32119 1.99999 5.02066 1.99999 5.75001C1.99999 6.47935 2.28972 7.17882 2.80545 7.69455C3.32117 8.21027 4.02065 8.50001 4.74999 8.50001H10.25C10.7141 8.50001 11.1592 8.68438 11.4874 9.01257C11.8156 9.34076 12 9.78588 12 10.25C12 10.7141 11.8156 11.1593 11.4874 11.4874C11.1592 11.8156 10.7141 12 10.25 12H5.94999C5.82609 11.393 5.4812 10.8536 4.9822 10.4864C4.4832 10.1192 3.86563 9.9504 3.24923 10.0127C2.63283 10.0749 2.06151 10.3639 1.64603 10.8234C1.23054 11.283 1.0005 11.8805 1.0005 12.5C1.0005 13.1195 1.23054 13.717 1.64603 14.1766C2.06151 14.6362 2.63283 14.9251 3.24923 14.9873C3.86563 15.0496 4.4832 14.8808 4.9822 14.5136C5.4812 14.1464 5.82609 13.607 5.94999 13H10.25C10.9793 13 11.6788 12.7103 12.1945 12.1945C12.7103 11.6788 13 10.9794 13 10.25C13 9.52066 12.7103 8.82119 12.1945 8.30546C11.6788 7.78974 10.9793 7.50001 10.25 7.50001H4.74999C4.28586 7.50001 3.84075 7.31563 3.51256 6.98744C3.18437 6.65925 2.99999 6.21413 2.99999 5.75001C2.99999 5.28588 3.18437 4.84076 3.51256 4.51257C3.84075 4.18438 4.28586 4.00001 4.74999 4.00001ZM12.5 2.00001C12.7967 2.00001 13.0867 2.08798 13.3333 2.2528C13.58 2.41762 13.7723 2.65189 13.8858 2.92598C13.9993 3.20007 14.029 3.50167 13.9712 3.79264C13.9133 4.08361 13.7704 4.35089 13.5607 4.56067C13.3509 4.77044 13.0836 4.91331 12.7926 4.97118C12.5017 5.02906 12.2001 4.99936 11.926 4.88582C11.6519 4.77229 11.4176 4.58003 11.2528 4.33336C11.088 4.08669 11 3.79668 11 3.50001C11 3.10218 11.158 2.72065 11.4393 2.43935C11.7206 2.15804 12.1022 2.00001 12.5 2.00001ZM3.49999 14C3.20332 14 2.91331 13.912 2.66664 13.7472C2.41996 13.5824 2.22771 13.3481 2.11417 13.074C2.00064 12.7999 1.97094 12.4983 2.02882 12.2074C2.08669 11.9164 2.22955 11.6491 2.43933 11.4393C2.64911 11.2296 2.91639 11.0867 3.20736 11.0288C3.49833 10.971 3.79993 11.0007 4.07402 11.1142C4.34811 11.2277 4.58238 11.42 4.7472 11.6667C4.91202 11.9133 4.99999 12.2033 4.99999 12.5C4.99999 12.8978 4.84196 13.2794 4.56065 13.5607C4.27935 13.842 3.89782 14 3.49999 14Z", fill: "#1A1C21" })));
12
+ exports.CurveAutoColonIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
13
+ 'data-component-name': 'icons/CurveAutoColonIcon/CurveAutoColonIcon',
14
+ })) `
15
+ path {
16
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
17
+ }
18
+
19
+ height: ${({ size }) => size || '16px'};
20
+ width: ${({ size }) => size || '16px'};
21
+ `;
22
+ //# sourceMappingURL=CurveAutoColonIcon.js.map
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IconProps } from '../../icons/types';
3
+ export declare const KafkaIcon: import("styled-components").StyledComponent<(props: IconProps) => React.JSX.Element, any, {
4
+ 'data-component-name': string;
5
+ } & {
6
+ color?: string;
7
+ size?: string;
8
+ className?: string;
9
+ } & React.SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KafkaIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const utils_1 = require("../../core/utils");
10
+ const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
11
+ react_1.default.createElement("g", { clipPath: "url(#clip0_8551_41)" },
12
+ react_1.default.createElement("path", { d: "M6.7631 1.83344C6.59429 1.66741 6.35877 1.56488 6.09695 1.56488C5.83611 1.56488 5.60241 1.66741 5.43559 1.83344H5.43079C5.26247 1.99867 5.1577 2.22933 5.1577 2.48462C5.1577 2.74087 5.26247 2.96959 5.43079 3.13385L5.43559 3.13757C5.60241 3.30279 5.83611 3.40436 6.09695 3.40436C6.35877 3.40436 6.59429 3.30279 6.7631 3.13757L6.76559 3.13385C6.93473 2.96959 7.03851 2.74087 7.03851 2.48462C7.03851 2.22933 6.93473 1.99867 6.76559 1.83344H6.7631ZM6.09695 14.4233C6.35877 14.4233 6.59429 14.3189 6.7631 14.1557L6.76559 14.1508C6.93473 13.9878 7.03851 13.7572 7.03851 13.5037C7.03851 13.2474 6.93473 13.0177 6.76559 12.8517H6.7631C6.59429 12.6837 6.35877 12.5822 6.09695 12.5822C5.83611 12.5822 5.60241 12.6837 5.43559 12.8517H5.43079C5.26247 13.0177 5.1577 13.2474 5.1577 13.5037C5.1577 13.7572 5.26247 13.9878 5.43079 14.1508L5.43559 14.1557C5.60241 14.3189 5.83611 14.4233 6.09695 14.4233ZM11.217 11.6368C11.4499 11.5771 11.6607 11.4308 11.7893 11.2097L11.8067 11.1774C11.9211 10.9677 11.9419 10.7257 11.8809 10.5112C11.8193 10.2815 11.668 10.0784 11.4426 9.95123L11.4295 9.94264C11.2099 9.82488 10.9597 9.79929 10.7298 9.86003C10.4961 9.91705 10.2862 10.0698 10.1583 10.2891C10.0287 10.5063 10.0015 10.7569 10.0636 10.9876C10.1277 11.2144 10.2774 11.4194 10.5014 11.5476H10.5029C10.7273 11.6738 10.9815 11.6966 11.217 11.6368ZM7.06134 7.05157C6.81441 6.81054 6.47413 6.65957 6.09695 6.65957C5.72125 6.65957 5.3818 6.81054 5.13536 7.05157C4.89008 7.29179 4.73881 7.62402 4.73881 7.9922C4.73881 8.36136 4.89008 8.69456 5.13536 8.93754C5.3818 9.17663 5.72125 9.32662 6.09695 9.32662C6.47413 9.32662 6.81441 9.17663 7.06134 8.93754C7.30712 8.69456 7.45839 8.36136 7.45839 7.9922C7.45839 7.62402 7.30712 7.29179 7.06134 7.05157ZM6.51915 5.4839C7.06565 5.57201 7.55736 5.82827 7.93257 6.1984H7.93554C7.99513 6.2572 8.05338 6.32086 8.10717 6.38533L9.04542 5.85403C8.91931 5.48098 8.91352 5.09092 9.0148 4.72549C9.1487 4.23565 9.47309 3.79717 9.95934 3.52196L9.9754 3.51256C10.4564 3.24578 11.0032 3.1907 11.4969 3.32175C11.9967 3.45263 12.4477 3.77157 12.7284 4.24715V4.24813C13.0078 4.72079 13.0646 5.2636 12.9312 5.75149C12.7983 6.241 12.4724 6.68241 11.9866 6.95567L11.8585 7.02986H11.8454C11.3961 7.23947 10.9019 7.27187 10.4481 7.15508C10.0754 7.05821 9.73343 6.85508 9.46581 6.56562L8.52905 7.0953C8.63663 7.37424 8.69637 7.6752 8.69637 7.9922C8.69637 8.30823 8.63663 8.61292 8.52905 8.8938L9.46581 9.42154C9.73343 9.12835 10.0754 8.92895 10.4481 8.83209C10.9479 8.69829 11.5022 8.75531 11.9866 9.03149L12.0176 9.04574V9.04769C12.4856 9.32468 12.7997 9.75377 12.9312 10.2378C13.0646 10.7228 13.0078 11.2657 12.7284 11.7394L12.7115 11.7726L12.7095 11.7696C12.4288 12.2263 11.9866 12.5357 11.4984 12.6666C10.9974 12.7957 10.4433 12.7406 9.95934 12.4683V12.4644C9.47309 12.1892 9.1487 11.7497 9.0148 11.261C8.91352 10.8966 8.91931 10.5063 9.04542 10.1335L8.10717 9.60377C8.05338 9.66841 7.99513 9.72915 7.93554 9.78795L7.93257 9.7907C7.55736 10.1591 7.06565 10.4153 6.51915 10.5007V11.5618C6.90858 11.6415 7.25763 11.8323 7.53121 12.0999L7.53254 12.1028C7.89913 12.4597 8.12604 12.957 8.12604 13.5037C8.12604 14.0486 7.89913 14.5428 7.53254 14.9016L7.53121 14.9073C7.16214 15.2661 6.65553 15.4881 6.09695 15.4881C5.54134 15.4881 5.03407 15.2661 4.66599 14.9073H4.66466V14.9016C4.29757 14.5428 4.07017 14.0486 4.07017 13.5037C4.07017 12.957 4.29757 12.4597 4.66466 12.1028V12.0999H4.66599C4.93907 11.8323 5.28862 11.6415 5.67706 11.5618V10.5007C5.13006 10.4153 4.63984 10.1591 4.26513 9.7907L4.26116 9.78795C3.79278 9.32759 3.5 8.69456 3.5 7.9922C3.5 7.29179 3.79278 6.65876 4.26116 6.1984H4.26513C4.63984 5.82827 5.13006 5.57201 5.67706 5.4839V4.42744C5.28862 4.34483 4.93907 4.15418 4.66599 3.88836H4.66466V3.88545C4.29757 3.52487 4.07017 3.03131 4.07017 2.48462C4.07017 1.94068 4.29757 1.44242 4.66466 1.08363L4.66599 1.08184C5.03407 0.722079 5.54134 0.5 6.09695 0.5C6.65553 0.5 7.16214 0.722079 7.53121 1.08184V1.08363H7.53254C7.89913 1.44242 8.12604 1.94068 8.12604 2.48462C8.12604 3.03131 7.89913 3.52487 7.53254 3.88545L7.53121 3.88836C7.25763 4.15418 6.90858 4.34483 6.51915 4.42744V5.4839ZM11.7893 4.77959L11.7816 4.76825C11.652 4.5546 11.4454 4.41222 11.217 4.3505C10.9815 4.28976 10.7273 4.31551 10.5014 4.4417H10.5029C10.2774 4.56691 10.1267 4.77198 10.0636 5.00167C10.0015 5.22942 10.0287 5.48098 10.1583 5.70014L10.1626 5.70597C10.2925 5.92222 10.4991 6.06736 10.7298 6.12616C10.9616 6.18982 11.22 6.16325 11.4426 6.0361L11.4547 6.03043C11.6738 5.9023 11.8198 5.70014 11.8809 5.47807C11.9429 5.24934 11.9183 4.99876 11.7893 4.77959Z", fill: "#1A1919" })),
13
+ react_1.default.createElement("defs", null,
14
+ react_1.default.createElement("clipPath", { id: "clip0_8551_41" },
15
+ react_1.default.createElement("rect", { width: "9.5", height: "15", fill: "white", transform: "translate(3.5 0.5)" })))));
16
+ exports.KafkaIcon = (0, styled_components_1.default)(Icon).attrs(() => ({
17
+ 'data-component-name': 'icons/KafkaIcon/KafkaIcon',
18
+ })) `
19
+ path {
20
+ fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)};
21
+ }
22
+
23
+ height: ${({ size }) => size || '16px'};
24
+ width: ${({ size }) => size || '16px'};
25
+ `;
26
+ //# sourceMappingURL=KafkaIcon.js.map
package/lib/index.d.ts CHANGED
@@ -119,6 +119,7 @@ export * from './components/Search/SearchFilterField';
119
119
  export * from './components/Search/FilterFields/SearchFilterFieldSelect';
120
120
  export * from './components/Search/FilterFields/SearchFilterFieldTags';
121
121
  export * from './components/Search/SearchAiResponse';
122
+ export * from './icons/ArrowDownIcon/ArrowDownIcon';
122
123
  export * from './icons/ArrowRightIcon/ArrowRightIcon';
123
124
  export * from './icons/ArrowUpRightIcon/ArrowUpRightIcon';
124
125
  export * from './icons/ArrowLeftIcon/ArrowLeftIcon';
@@ -223,6 +224,8 @@ export * from './icons/ErrorFilledIcon/ErrorFilledIcon';
223
224
  export * from './icons/CheckboxFilledIcon/CheckboxFilledIcon';
224
225
  export * from './icons/WarningAltFilled/WarningAltFilled';
225
226
  export * from './icons/SettingsCogIcon/SettingsCogIcon';
227
+ export * from './icons/KafkaIcon/KafkaIcon';
228
+ export * from './icons/CurveAutoColonIcon/CurveAutoColonIcon';
226
229
  export * from './layouts/RootLayout';
227
230
  export * from './layouts/PageLayout';
228
231
  export * from './layouts/NotFound';
package/lib/index.js CHANGED
@@ -171,6 +171,7 @@ __exportStar(require("./components/Search/FilterFields/SearchFilterFieldSelect")
171
171
  __exportStar(require("./components/Search/FilterFields/SearchFilterFieldTags"), exports);
172
172
  __exportStar(require("./components/Search/SearchAiResponse"), exports);
173
173
  /* Icons */
174
+ __exportStar(require("./icons/ArrowDownIcon/ArrowDownIcon"), exports);
174
175
  __exportStar(require("./icons/ArrowRightIcon/ArrowRightIcon"), exports);
175
176
  __exportStar(require("./icons/ArrowUpRightIcon/ArrowUpRightIcon"), exports);
176
177
  __exportStar(require("./icons/ArrowLeftIcon/ArrowLeftIcon"), exports);
@@ -275,6 +276,8 @@ __exportStar(require("./icons/ErrorFilledIcon/ErrorFilledIcon"), exports);
275
276
  __exportStar(require("./icons/CheckboxFilledIcon/CheckboxFilledIcon"), exports);
276
277
  __exportStar(require("./icons/WarningAltFilled/WarningAltFilled"), exports);
277
278
  __exportStar(require("./icons/SettingsCogIcon/SettingsCogIcon"), exports);
279
+ __exportStar(require("./icons/KafkaIcon/KafkaIcon"), exports);
280
+ __exportStar(require("./icons/CurveAutoColonIcon/CurveAutoColonIcon"), exports);
278
281
  /* Layouts */
279
282
  __exportStar(require("./layouts/RootLayout"), exports);
280
283
  __exportStar(require("./layouts/PageLayout"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.53.0-next.2",
3
+ "version": "0.53.0-next.3",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -62,6 +62,7 @@
62
62
  "npm-run-all2": "5.0.2",
63
63
  "react-refresh": "0.14.2",
64
64
  "react-router-dom": "6.21.1",
65
+ "resize-observer-polyfill": "1.5.1",
65
66
  "rimraf": "5.0.7",
66
67
  "styled-components": "5.3.11",
67
68
  "styled-system": "5.1.5",
@@ -88,7 +89,7 @@
88
89
  "react-calendar": "4.2.1",
89
90
  "react-date-picker": "10.0.3",
90
91
  "timeago.js": "4.0.2",
91
- "@redocly/config": "0.24.0"
92
+ "@redocly/config": "0.24.1"
92
93
  },
93
94
  "scripts": {
94
95
  "watch": "tsc -p tsconfig.build.json && (concurrently \"tsc -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
@@ -5,6 +5,7 @@ import type { FileTabs } from '@redocly/theme/components/CodeBlock/CodeBlock';
5
5
 
6
6
  import { CodeBlockTabs } from '@redocly/theme/components/CodeBlock/CodeBlockTabs';
7
7
  import { CopyButton } from '@redocly/theme/components/Buttons/CopyButton';
8
+ import { TooltipWrapper } from '@redocly/theme/components/Tooltip/TooltipWrapper';
8
9
  import { useThemeHooks, useThemeConfig } from '@redocly/theme/core/hooks';
9
10
  import { DeselectIcon } from '@redocly/theme/icons/DeselectIcon/DeselectIcon';
10
11
  import { MaximizeIcon } from '@redocly/theme/icons/MaximizeIcon/MaximizeIcon';
@@ -76,15 +77,17 @@ export function CodeBlockControls({
76
77
  {tabs && <CodeBlockTabs tabs={tabs} />}
77
78
  <ControlsWrapper>
78
79
  {report && !report?.props?.hide ? (
79
- <ControlButton
80
- variant="text"
81
- size="small"
82
- data-testid="report-button"
83
- icon={controlsType === 'icon' ? <WarningSquareIcon size="18px" /> : undefined}
84
- {...report.props}
85
- >
86
- {controlsType != 'icon' && (report.props?.buttonText || 'Report')}
87
- </ControlButton>
80
+ <TooltipWrapper tooltipKey="codeSnippet.report.tooltipText" placement="top">
81
+ <ControlButton
82
+ variant="text"
83
+ size="small"
84
+ data-testid="report-button"
85
+ icon={controlsType === 'icon' ? <WarningSquareIcon size="18px" /> : undefined}
86
+ {...report.props}
87
+ >
88
+ {controlsType != 'icon' && (report.props?.buttonText || 'Report')}
89
+ </ControlButton>
90
+ </TooltipWrapper>
88
91
  ) : null}
89
92
 
90
93
  {expand && !codeSnippet?.expand?.hide ? (
@@ -136,19 +139,21 @@ export function CodeBlockControls({
136
139
  ) : null}
137
140
 
138
141
  {copy && !codeSnippet?.copy?.hide ? (
139
- <CopyButton
140
- data={copy.data}
141
- data-source={copy.dataSource}
142
- data-hash={copy.dataHash}
143
- type={controlsType}
144
- toasterPlacement={copy.toasterPlacement}
145
- toasterDuration={copy.toasterDuration}
146
- buttonText={copy.label}
147
- onCopyClick={() => {
148
- copy?.onClick?.();
149
- telemetry?.send?.('code_snippet_copied', {});
150
- }}
151
- />
142
+ <TooltipWrapper tooltipKey="codeSnippet.copy.tooltipText" placement="top">
143
+ <CopyButton
144
+ data={copy.data}
145
+ data-source={copy.dataSource}
146
+ data-hash={copy.dataHash}
147
+ type={controlsType}
148
+ toasterPlacement={copy.toasterPlacement}
149
+ toasterDuration={copy.toasterDuration}
150
+ buttonText={copy.label}
151
+ onCopyClick={() => {
152
+ copy?.onClick?.();
153
+ telemetry?.send?.('code_snippet_copied', {});
154
+ }}
155
+ />
156
+ </TooltipWrapper>
152
157
  ) : null}
153
158
  </ControlsWrapper>
154
159
  </>
@@ -13,6 +13,7 @@ export type JsonProps = {
13
13
  className?: string;
14
14
  expandLevel: number;
15
15
  startLineNumber?: number;
16
+ hideHeader?: boolean;
16
17
  onCopyClick?: () => void;
17
18
  };
18
19
 
@@ -22,6 +23,7 @@ function JsonComponent({
22
23
  className,
23
24
  onCopyClick,
24
25
  title,
26
+ hideHeader,
25
27
  }: JsonProps): JSX.Element {
26
28
  const showFoldingButtons =
27
29
  data && Object.values(data).some((value) => typeof value === 'object' && value !== null);
@@ -51,15 +53,19 @@ function JsonComponent({
51
53
  className={className}
52
54
  >
53
55
  <CodeBlock
54
- header={{
55
- title,
56
- className: 'code-block-header',
57
- controls: {
58
- copy: { data, onClick: onCopyClick, handleOutside: true },
59
- expand: showFoldingButtons ? { onClick: expandAll } : undefined,
60
- collapse: showFoldingButtons ? { onClick: collapseAll } : undefined,
61
- },
62
- }}
56
+ header={
57
+ hideHeader
58
+ ? undefined
59
+ : {
60
+ title,
61
+ className: 'code-block-header',
62
+ controls: {
63
+ copy: { data, onClick: onCopyClick, handleOutside: true },
64
+ expand: showFoldingButtons ? { onClick: expandAll } : undefined,
65
+ collapse: showFoldingButtons ? { onClick: collapseAll } : undefined,
66
+ },
67
+ }
68
+ }
63
69
  source={source}
64
70
  >
65
71
  <FoldingWrap>
@@ -31,7 +31,7 @@ export function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Ele
31
31
  const isDrilldown = type === MenuItemType.DrillDown;
32
32
  const isNested = type === MenuItemType.Group;
33
33
  const hasChevron = isNested && !isDrilldown;
34
- const isOperation = type === MenuItemType.Operation;
34
+ const hasHttpTag = !!item.httpVerb || type === MenuItemType.Operation;
35
35
 
36
36
  const handleOnClick = () => {
37
37
  telemetry.send?.('sidebar_item_clicked', { label: item.label, type: item.type });
@@ -87,7 +87,7 @@ export function MenuItem(props: React.PropsWithChildren<MenuItemProps>): JSX.Ele
87
87
  </MenuItemLabelTextWrapper>
88
88
 
89
89
  {isDrilldown ? <ArrowRightIcon size="12px" /> : null}
90
- {isOperation ? (
90
+ {hasHttpTag ? (
91
91
  <HttpTag color={httpColor || ''}>
92
92
  {item.httpVerb === 'hook' ? 'event' : item.httpVerb}
93
93
  </HttpTag>
@@ -332,6 +332,7 @@ export const apiReferencePanels = css`
332
332
  .panel-servers-list,
333
333
  .panel-request-samples,
334
334
  .panel-response-samples,
335
+ .panel-messages-samples,
335
336
  .panel-callback-samples {
336
337
  --text-color: var(--panel-samples-text-color);
337
338
  --panel-text-color: var(--panel-samples-text-color); // @presenter Color
@@ -16,7 +16,7 @@ export { LayoutVariant };
16
16
  export type SidebarActionsProps = {
17
17
  layout: LayoutVariant;
18
18
  collapsedSidebar: boolean;
19
- isOpenapiDocs: boolean;
19
+ isApiDocs: boolean;
20
20
  hideCollapseSidebarButton?: boolean;
21
21
  onChangeViewClick: () => void;
22
22
  onChangeCollapseSidebarClick: () => void;
@@ -28,7 +28,7 @@ export const SidebarActions = ({
28
28
  layout,
29
29
  hideCollapseSidebarButton = false,
30
30
  collapsedSidebar,
31
- isOpenapiDocs,
31
+ isApiDocs,
32
32
  onChangeViewClick,
33
33
  onChangeCollapseSidebarClick,
34
34
  requestAccessButton,
@@ -63,7 +63,7 @@ export const SidebarActions = ({
63
63
  icon={collapsedSidebar ? <SidePanelOpenIcon /> : <SidePanelCloseIcon />}
64
64
  />
65
65
  )}
66
- {isOpenapiDocs && (
66
+ {isApiDocs && (
67
67
  <ControlsWrapChangeLayoutButtons isCollapsed={collapsedSidebar}>
68
68
  <ChangeViewButton
69
69
  collapsedSidebar={collapsedSidebar}
@@ -8,12 +8,16 @@ type DefaultStatusColor = 'success' | 'processing' | 'error' | 'warning' | 'defa
8
8
  type ActionStatusColor = 'approved' | 'declined' | 'pending';
9
9
  type SubjectStatusColor = 'active' | 'draft' | 'deprecated' | 'product';
10
10
  type HttpColor = 'get' | 'post' | 'put' | 'delete' | 'option' | 'patch' | 'head' | 'hook' | 'link';
11
+ type ActionColor = 'receive' | 'send';
12
+ type ChannelColor = 'channel';
11
13
  type HttpStatusColor = 'http-deprecated';
12
14
  type StatusColor =
13
15
  | DefaultStatusColor
14
16
  | ActionStatusColor
15
17
  | SubjectStatusColor
16
18
  | HttpColor
19
+ | ActionColor
20
+ | ChannelColor
17
21
  | HttpStatusColor;
18
22
  type Color =
19
23
  | 'red'
@@ -22,6 +22,19 @@ export const tagDarkMode = css`
22
22
  --tag-operation-color-options: #1a1c21; // @presenter Color
23
23
  --tag-operation-bg-color-options: #2a2b33; // @presenter Color
24
24
 
25
+ --tag-action-color-receive: #4db144; // @presenter Color
26
+ --tag-action-color-sub: #4db144; // @presenter Color
27
+ --tag-action-color-consume: #4db144; // @presenter Color
28
+
29
+ --tag-action-color-send: #4144F6; // @presenter Color
30
+ --tag-action-color-pub: #4144F6; // @presenter Color
31
+ --tag-action-color-publish: #4144f6; // @presenter Color
32
+
33
+ --tag-action-color-channel: #F0870E; // @presenter Color
34
+ --tag-action-color-topic: #F0870E; // @presenter Color
35
+ --tag-action-color-queue: #D72E81; // @presenter Color
36
+ --tag-action-color-exchange: #C79CF2; // @presenter Color
37
+
25
38
  .tag-grey,
26
39
  .tag-draft,
27
40
  .tag-schema,
@@ -195,9 +195,23 @@ export const tag = css`
195
195
 
196
196
  --tag-operation-color-deprecated: var(--text-color-disabled); // @presenter Color
197
197
 
198
+ --tag-action-color-receive: #4db144; // @presenter Color
199
+ --tag-action-color-sub: #4db144; // @presenter Color
200
+ --tag-action-color-consume: #4db144; // @presenter Color
201
+
202
+ --tag-action-color-send: #4144f6; // @presenter Color
203
+ --tag-action-color-pub: #4144f6; // @presenter Color
204
+ --tag-action-color-publish: #4144f6; // @presenter Color
205
+
206
+ --tag-action-color-channel: #F0870E; // @presenter Color
207
+ --tag-action-color-topic: #F0870E; // @presenter Color
208
+ --tag-action-color-queue: #D72E81; // @presenter Color
209
+ --tag-action-color-exchange: #9B51E0; // @presenter Color
210
+
198
211
  .tag-delete {
199
212
  --tag-color: var(--tag-operation-color-delete); // @presenter Color
200
213
  }
214
+
201
215
  .tag-get {
202
216
  --tag-color: var(--tag-operation-color-get); // @presenter Color
203
217
  }
@@ -217,6 +231,51 @@ export const tag = css`
217
231
  .tag-http-deprecated {
218
232
  --tag-color: var(--tag-operation-color-deprecated) // @presenter Color
219
233
  }
234
+
235
+ .tag-receive {
236
+ --tag-color: var(--tag-action-color-receive); // @presenter Color
237
+ }
238
+
239
+ .tag-send {
240
+ --tag-color: var(--tag-action-color-send); // @presenter Color
241
+ }
242
+
243
+ .tag-pub {
244
+ --tag-color: var(--tag-action-color-pub); // @presenter Color
245
+ }
246
+
247
+ .tag-sub {
248
+ --tag-color: var(--tag-action-color-sub); // @presenter Color
249
+ }
220
250
 
251
+ .tag-consume {
252
+ --tag-color: var(--tag-action-color-consume); // @presenter Color
253
+ }
254
+
255
+ .tag-publish {
256
+ --tag-color: var(--tag-action-color-publish); // @presenter Color
257
+ }
258
+
259
+ .tag-channel {
260
+ --tag-color: var(--tag-action-color-channel); // @presenter Color
261
+ }
262
+
263
+ .tag-topic {
264
+ --tag-color: var(--tag-action-color-channel); // @presenter Color
265
+ }
266
+
267
+ .tag-queue {
268
+ --tag-color: var(--tag-action-color-queue); // @presenter Color
269
+ }
270
+
271
+ .tag-exchange {
272
+ --tag-color: var(--tag-action-color-exchange); // @presenter Color
273
+ }
274
+
275
+ // shorten alias for exchange tag:
276
+ .tag-exch {
277
+ --tag-color: var(--tag-action-color-exchange); // @presenter Color
278
+ }
279
+
221
280
  // @tokens End
222
281
  `;
@@ -0,0 +1,71 @@
1
+ import styled from 'styled-components';
2
+ import React, { ReactElement } from 'react';
3
+
4
+ import type { TooltipProps } from '@redocly/theme/components/Tooltip/Tooltip';
5
+
6
+ import { useThemeHooks, useControl } from '@redocly/theme/core/hooks';
7
+ import { Tooltip } from '@redocly/theme/components/Tooltip/Tooltip';
8
+
9
+ export type TooltipWrapperProps = {
10
+ children: ReactElement;
11
+ tooltipKey: string;
12
+ placement?: TooltipProps['placement'];
13
+ width?: string;
14
+ className?: string;
15
+ showOnHover?: boolean;
16
+ disabled?: boolean;
17
+ };
18
+
19
+ export function TooltipWrapper({
20
+ children,
21
+ tooltipKey,
22
+ placement = 'top',
23
+ width = 'max-content',
24
+ className = '',
25
+ showOnHover = true,
26
+ disabled = false,
27
+ }: TooltipWrapperProps): JSX.Element {
28
+ const { useTranslate } = useThemeHooks();
29
+ const tooltip = useControl();
30
+ const { translate } = useTranslate();
31
+
32
+ const handleMouseEnter = (): void => {
33
+ if (showOnHover && !disabled) {
34
+ tooltip.handleOpen();
35
+ }
36
+ };
37
+
38
+ const handleMouseLeave = (): void => {
39
+ if (showOnHover) {
40
+ tooltip.handleClose();
41
+ }
42
+ };
43
+
44
+ const handleClick = (): void => {
45
+ if (showOnHover) {
46
+ tooltip.handleClose();
47
+ }
48
+ };
49
+
50
+ return (
51
+ <Tooltip
52
+ className={className}
53
+ tip={translate(tooltipKey)}
54
+ isOpen={tooltip.isOpened}
55
+ placement={placement}
56
+ width={width}
57
+ >
58
+ <TooltipEventWrapper
59
+ onMouseEnter={handleMouseEnter}
60
+ onMouseLeave={handleMouseLeave}
61
+ onClick={handleClick}
62
+ >
63
+ {children}
64
+ </TooltipEventWrapper>
65
+ </Tooltip>
66
+ );
67
+ }
68
+
69
+ const TooltipEventWrapper = styled.div`
70
+ display: contents;
71
+ `;
@@ -24,6 +24,7 @@ const replayDarkMode = css`
24
24
  // @tokens End
25
25
  `;
26
26
 
27
+
27
28
  export const darkMode = css`
28
29
  /* === Dark Theme Colors === */
29
30
 
@@ -1197,6 +1197,7 @@ const replay = css`
1197
1197
  // @tokens End
1198
1198
  `;
1199
1199
 
1200
+
1200
1201
  export const styles = css`
1201
1202
  :root {
1202
1203
  ${admonition}
@@ -197,4 +197,9 @@ type OtelTelemetryEvent =
197
197
  | 'openapi_docs.copy_code_snippet.clicked'
198
198
  | 'openapi_docs.switch_servers.clicked'
199
199
  | 'openapi_docs.examples_switcher.clicked'
200
- | 'openapi_docs.try_it.opened';
200
+ | 'openapi_docs.try_it.opened'
201
+ | 'asyncapi_docs.performance_metrics'
202
+ | 'asyncapi_docs.viewed'
203
+ | 'asyncapi_docs.switch_message.clicked'
204
+ | 'asyncapi_docs.switch_example.clicked'
205
+ | 'asyncapi_docs.message.clicked';
@@ -229,6 +229,8 @@ export type TranslationKey =
229
229
  | 'openapi.requiredScopes'
230
230
  | 'openapi.unsupportedLanguage'
231
231
  | 'openapi.failedToGenerateCodeSample'
232
+ | 'asyncapi.download.description.title'
233
+ | 'asyncapi.info.title'
232
234
  | 'graphql.queries'
233
235
  | 'graphql.mutations'
234
236
  | 'graphql.subscriptions'
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { IconProps } from '@redocly/theme/icons/types';
5
+
6
+ import { getCssColorVariable } from '@redocly/theme/core/utils';
7
+
8
+ const Icon = (props: IconProps) => (
9
+ <svg
10
+ width="16"
11
+ height="16"
12
+ viewBox="0 0 16 16"
13
+ fill="none"
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ {...props}
16
+ >
17
+ <path
18
+ d="M12.295 8.295L8.5 12.085V2H7.5V12.085L3.705 8.295L3 9L8 14L13 9L12.295 8.295Z"
19
+ fill="#1A1C21"
20
+ />
21
+ </svg>
22
+ );
23
+
24
+ export const ArrowDownIcon = styled(Icon).attrs(() => ({
25
+ 'data-component-name': 'icons/ArrowDownIcon/ArrowDownIcon',
26
+ }))<IconProps>`
27
+ path {
28
+ fill: ${({ color }) => getCssColorVariable(color)};
29
+ }
30
+
31
+ height: ${({ size }) => size || '16px'};
32
+ width: ${({ size }) => size || '16px'};
33
+ `;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { IconProps } from '@redocly/theme/icons/types';
5
+
6
+ import { getCssColorVariable } from '@redocly/theme/core/utils';
7
+
8
+ const Icon = (props: IconProps) => (
9
+ <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
10
+ <path
11
+ d="M4.74999 4.00001H10.05C10.1739 4.60703 10.5188 5.14642 11.0178 5.5136C11.5168 5.88079 12.1344 6.04962 12.7508 5.98735C13.3672 5.92508 13.9385 5.63615 14.354 5.17658C14.7694 4.71701 14.9995 4.11954 14.9995 3.50001C14.9995 2.88047 14.7694 2.283 14.354 1.82343C13.9385 1.36386 13.3672 1.07493 12.7508 1.01267C12.1344 0.950396 11.5168 1.11922 11.0178 1.48641C10.5188 1.85359 10.1739 2.39298 10.05 3.00001H4.74999C4.02065 3.00001 3.32117 3.28974 2.80545 3.80546C2.28972 4.32119 1.99999 5.02066 1.99999 5.75001C1.99999 6.47935 2.28972 7.17882 2.80545 7.69455C3.32117 8.21027 4.02065 8.50001 4.74999 8.50001H10.25C10.7141 8.50001 11.1592 8.68438 11.4874 9.01257C11.8156 9.34076 12 9.78588 12 10.25C12 10.7141 11.8156 11.1593 11.4874 11.4874C11.1592 11.8156 10.7141 12 10.25 12H5.94999C5.82609 11.393 5.4812 10.8536 4.9822 10.4864C4.4832 10.1192 3.86563 9.9504 3.24923 10.0127C2.63283 10.0749 2.06151 10.3639 1.64603 10.8234C1.23054 11.283 1.0005 11.8805 1.0005 12.5C1.0005 13.1195 1.23054 13.717 1.64603 14.1766C2.06151 14.6362 2.63283 14.9251 3.24923 14.9873C3.86563 15.0496 4.4832 14.8808 4.9822 14.5136C5.4812 14.1464 5.82609 13.607 5.94999 13H10.25C10.9793 13 11.6788 12.7103 12.1945 12.1945C12.7103 11.6788 13 10.9794 13 10.25C13 9.52066 12.7103 8.82119 12.1945 8.30546C11.6788 7.78974 10.9793 7.50001 10.25 7.50001H4.74999C4.28586 7.50001 3.84075 7.31563 3.51256 6.98744C3.18437 6.65925 2.99999 6.21413 2.99999 5.75001C2.99999 5.28588 3.18437 4.84076 3.51256 4.51257C3.84075 4.18438 4.28586 4.00001 4.74999 4.00001ZM12.5 2.00001C12.7967 2.00001 13.0867 2.08798 13.3333 2.2528C13.58 2.41762 13.7723 2.65189 13.8858 2.92598C13.9993 3.20007 14.029 3.50167 13.9712 3.79264C13.9133 4.08361 13.7704 4.35089 13.5607 4.56067C13.3509 4.77044 13.0836 4.91331 12.7926 4.97118C12.5017 5.02906 12.2001 4.99936 11.926 4.88582C11.6519 4.77229 11.4176 4.58003 11.2528 4.33336C11.088 4.08669 11 3.79668 11 3.50001C11 3.10218 11.158 2.72065 11.4393 2.43935C11.7206 2.15804 12.1022 2.00001 12.5 2.00001ZM3.49999 14C3.20332 14 2.91331 13.912 2.66664 13.7472C2.41996 13.5824 2.22771 13.3481 2.11417 13.074C2.00064 12.7999 1.97094 12.4983 2.02882 12.2074C2.08669 11.9164 2.22955 11.6491 2.43933 11.4393C2.64911 11.2296 2.91639 11.0867 3.20736 11.0288C3.49833 10.971 3.79993 11.0007 4.07402 11.1142C4.34811 11.2277 4.58238 11.42 4.7472 11.6667C4.91202 11.9133 4.99999 12.2033 4.99999 12.5C4.99999 12.8978 4.84196 13.2794 4.56065 13.5607C4.27935 13.842 3.89782 14 3.49999 14Z"
12
+ fill="#1A1C21"
13
+ />
14
+ </svg>
15
+ );
16
+
17
+ export const CurveAutoColonIcon = styled(Icon).attrs(() => ({
18
+ 'data-component-name': 'icons/CurveAutoColonIcon/CurveAutoColonIcon',
19
+ }))<IconProps>`
20
+ path {
21
+ fill: ${({ color }) => getCssColorVariable(color)};
22
+ }
23
+
24
+ height: ${({ size }) => size || '16px'};
25
+ width: ${({ size }) => size || '16px'};
26
+ `;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ import type { IconProps } from '@redocly/theme/icons/types';
5
+
6
+ import { getCssColorVariable } from '@redocly/theme/core/utils';
7
+
8
+ const Icon = (props: IconProps) => (
9
+ <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
10
+ <g clipPath="url(#clip0_8551_41)">
11
+ <path
12
+ d="M6.7631 1.83344C6.59429 1.66741 6.35877 1.56488 6.09695 1.56488C5.83611 1.56488 5.60241 1.66741 5.43559 1.83344H5.43079C5.26247 1.99867 5.1577 2.22933 5.1577 2.48462C5.1577 2.74087 5.26247 2.96959 5.43079 3.13385L5.43559 3.13757C5.60241 3.30279 5.83611 3.40436 6.09695 3.40436C6.35877 3.40436 6.59429 3.30279 6.7631 3.13757L6.76559 3.13385C6.93473 2.96959 7.03851 2.74087 7.03851 2.48462C7.03851 2.22933 6.93473 1.99867 6.76559 1.83344H6.7631ZM6.09695 14.4233C6.35877 14.4233 6.59429 14.3189 6.7631 14.1557L6.76559 14.1508C6.93473 13.9878 7.03851 13.7572 7.03851 13.5037C7.03851 13.2474 6.93473 13.0177 6.76559 12.8517H6.7631C6.59429 12.6837 6.35877 12.5822 6.09695 12.5822C5.83611 12.5822 5.60241 12.6837 5.43559 12.8517H5.43079C5.26247 13.0177 5.1577 13.2474 5.1577 13.5037C5.1577 13.7572 5.26247 13.9878 5.43079 14.1508L5.43559 14.1557C5.60241 14.3189 5.83611 14.4233 6.09695 14.4233ZM11.217 11.6368C11.4499 11.5771 11.6607 11.4308 11.7893 11.2097L11.8067 11.1774C11.9211 10.9677 11.9419 10.7257 11.8809 10.5112C11.8193 10.2815 11.668 10.0784 11.4426 9.95123L11.4295 9.94264C11.2099 9.82488 10.9597 9.79929 10.7298 9.86003C10.4961 9.91705 10.2862 10.0698 10.1583 10.2891C10.0287 10.5063 10.0015 10.7569 10.0636 10.9876C10.1277 11.2144 10.2774 11.4194 10.5014 11.5476H10.5029C10.7273 11.6738 10.9815 11.6966 11.217 11.6368ZM7.06134 7.05157C6.81441 6.81054 6.47413 6.65957 6.09695 6.65957C5.72125 6.65957 5.3818 6.81054 5.13536 7.05157C4.89008 7.29179 4.73881 7.62402 4.73881 7.9922C4.73881 8.36136 4.89008 8.69456 5.13536 8.93754C5.3818 9.17663 5.72125 9.32662 6.09695 9.32662C6.47413 9.32662 6.81441 9.17663 7.06134 8.93754C7.30712 8.69456 7.45839 8.36136 7.45839 7.9922C7.45839 7.62402 7.30712 7.29179 7.06134 7.05157ZM6.51915 5.4839C7.06565 5.57201 7.55736 5.82827 7.93257 6.1984H7.93554C7.99513 6.2572 8.05338 6.32086 8.10717 6.38533L9.04542 5.85403C8.91931 5.48098 8.91352 5.09092 9.0148 4.72549C9.1487 4.23565 9.47309 3.79717 9.95934 3.52196L9.9754 3.51256C10.4564 3.24578 11.0032 3.1907 11.4969 3.32175C11.9967 3.45263 12.4477 3.77157 12.7284 4.24715V4.24813C13.0078 4.72079 13.0646 5.2636 12.9312 5.75149C12.7983 6.241 12.4724 6.68241 11.9866 6.95567L11.8585 7.02986H11.8454C11.3961 7.23947 10.9019 7.27187 10.4481 7.15508C10.0754 7.05821 9.73343 6.85508 9.46581 6.56562L8.52905 7.0953C8.63663 7.37424 8.69637 7.6752 8.69637 7.9922C8.69637 8.30823 8.63663 8.61292 8.52905 8.8938L9.46581 9.42154C9.73343 9.12835 10.0754 8.92895 10.4481 8.83209C10.9479 8.69829 11.5022 8.75531 11.9866 9.03149L12.0176 9.04574V9.04769C12.4856 9.32468 12.7997 9.75377 12.9312 10.2378C13.0646 10.7228 13.0078 11.2657 12.7284 11.7394L12.7115 11.7726L12.7095 11.7696C12.4288 12.2263 11.9866 12.5357 11.4984 12.6666C10.9974 12.7957 10.4433 12.7406 9.95934 12.4683V12.4644C9.47309 12.1892 9.1487 11.7497 9.0148 11.261C8.91352 10.8966 8.91931 10.5063 9.04542 10.1335L8.10717 9.60377C8.05338 9.66841 7.99513 9.72915 7.93554 9.78795L7.93257 9.7907C7.55736 10.1591 7.06565 10.4153 6.51915 10.5007V11.5618C6.90858 11.6415 7.25763 11.8323 7.53121 12.0999L7.53254 12.1028C7.89913 12.4597 8.12604 12.957 8.12604 13.5037C8.12604 14.0486 7.89913 14.5428 7.53254 14.9016L7.53121 14.9073C7.16214 15.2661 6.65553 15.4881 6.09695 15.4881C5.54134 15.4881 5.03407 15.2661 4.66599 14.9073H4.66466V14.9016C4.29757 14.5428 4.07017 14.0486 4.07017 13.5037C4.07017 12.957 4.29757 12.4597 4.66466 12.1028V12.0999H4.66599C4.93907 11.8323 5.28862 11.6415 5.67706 11.5618V10.5007C5.13006 10.4153 4.63984 10.1591 4.26513 9.7907L4.26116 9.78795C3.79278 9.32759 3.5 8.69456 3.5 7.9922C3.5 7.29179 3.79278 6.65876 4.26116 6.1984H4.26513C4.63984 5.82827 5.13006 5.57201 5.67706 5.4839V4.42744C5.28862 4.34483 4.93907 4.15418 4.66599 3.88836H4.66466V3.88545C4.29757 3.52487 4.07017 3.03131 4.07017 2.48462C4.07017 1.94068 4.29757 1.44242 4.66466 1.08363L4.66599 1.08184C5.03407 0.722079 5.54134 0.5 6.09695 0.5C6.65553 0.5 7.16214 0.722079 7.53121 1.08184V1.08363H7.53254C7.89913 1.44242 8.12604 1.94068 8.12604 2.48462C8.12604 3.03131 7.89913 3.52487 7.53254 3.88545L7.53121 3.88836C7.25763 4.15418 6.90858 4.34483 6.51915 4.42744V5.4839ZM11.7893 4.77959L11.7816 4.76825C11.652 4.5546 11.4454 4.41222 11.217 4.3505C10.9815 4.28976 10.7273 4.31551 10.5014 4.4417H10.5029C10.2774 4.56691 10.1267 4.77198 10.0636 5.00167C10.0015 5.22942 10.0287 5.48098 10.1583 5.70014L10.1626 5.70597C10.2925 5.92222 10.4991 6.06736 10.7298 6.12616C10.9616 6.18982 11.22 6.16325 11.4426 6.0361L11.4547 6.03043C11.6738 5.9023 11.8198 5.70014 11.8809 5.47807C11.9429 5.24934 11.9183 4.99876 11.7893 4.77959Z"
13
+ fill="#1A1919"
14
+ />
15
+ </g>
16
+ <defs>
17
+ <clipPath id="clip0_8551_41">
18
+ <rect width="9.5" height="15" fill="white" transform="translate(3.5 0.5)" />
19
+ </clipPath>
20
+ </defs>
21
+ </svg>
22
+ );
23
+
24
+ export const KafkaIcon = styled(Icon).attrs(() => ({
25
+ 'data-component-name': 'icons/KafkaIcon/KafkaIcon',
26
+ }))<IconProps>`
27
+ path {
28
+ fill: ${({ color }) => getCssColorVariable(color)};
29
+ }
30
+
31
+ height: ${({ size }) => size || '16px'};
32
+ width: ${({ size }) => size || '16px'};
33
+ `;
package/src/index.ts CHANGED
@@ -143,6 +143,7 @@ export * from '@redocly/theme/components/Search/FilterFields/SearchFilterFieldSe
143
143
  export * from '@redocly/theme/components/Search/FilterFields/SearchFilterFieldTags';
144
144
  export * from '@redocly/theme/components/Search/SearchAiResponse';
145
145
  /* Icons */
146
+ export * from '@redocly/theme/icons/ArrowDownIcon/ArrowDownIcon';
146
147
  export * from '@redocly/theme/icons/ArrowRightIcon/ArrowRightIcon';
147
148
  export * from '@redocly/theme/icons/ArrowUpRightIcon/ArrowUpRightIcon';
148
149
  export * from '@redocly/theme/icons/ArrowLeftIcon/ArrowLeftIcon';
@@ -247,6 +248,8 @@ export * from '@redocly/theme/icons/ErrorFilledIcon/ErrorFilledIcon';
247
248
  export * from '@redocly/theme/icons/CheckboxFilledIcon/CheckboxFilledIcon';
248
249
  export * from '@redocly/theme/icons/WarningAltFilled/WarningAltFilled';
249
250
  export * from '@redocly/theme/icons/SettingsCogIcon/SettingsCogIcon';
251
+ export * from '@redocly/theme/icons/KafkaIcon/KafkaIcon';
252
+ export * from '@redocly/theme/icons/CurveAutoColonIcon/CurveAutoColonIcon';
250
253
  /* Layouts */
251
254
  export * from '@redocly/theme/layouts/RootLayout';
252
255
  export * from '@redocly/theme/layouts/PageLayout';