@redocly/theme 0.34.0 → 0.35.0

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.
@@ -1,6 +1,4 @@
1
- export declare enum MenuStyle {
2
- Drilldown = "drilldown"
3
- }
1
+ import type { MenuStyle } from '@redocly/config';
4
2
  export interface ItemState extends NavItem {
5
3
  items: ItemState[];
6
4
  active: boolean;
@@ -1,8 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MenuStyle = void 0;
4
- var MenuStyle;
5
- (function (MenuStyle) {
6
- MenuStyle["Drilldown"] = "drilldown";
7
- })(MenuStyle || (exports.MenuStyle = MenuStyle = {}));
8
3
  //# sourceMappingURL=types.js.map
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
- export declare enum LayoutVariant {
3
- STACKED = "stacked",
4
- THREE_PANEL = "three-panel"
5
- }
2
+ import { LayoutVariant } from '@redocly/config';
3
+ export { LayoutVariant };
6
4
  interface SidebarActionsProps {
7
5
  showChangeLayoutButton: boolean;
8
6
  showRightPanelToggle: boolean;
@@ -18,4 +16,3 @@ interface SidebarActionsProps {
18
16
  className?: string;
19
17
  }
20
18
  export declare const SidebarActions: ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }: SidebarActionsProps) => React.JSX.Element;
21
- export {};
@@ -5,16 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SidebarActions = exports.LayoutVariant = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
+ const config_1 = require("@redocly/config");
9
+ Object.defineProperty(exports, "LayoutVariant", { enumerable: true, get: function () { return config_1.LayoutVariant; } });
8
10
  const ChangeViewButton_1 = require("../../components/SidebarActions/ChangeViewButton");
9
11
  const ToggleRightPanelButton_1 = require("../../components/SidebarActions/ToggleRightPanelButton");
10
12
  const CollapseSidebarButton_1 = require("../../components/SidebarActions/CollapseSidebarButton");
11
13
  const styled_1 = require("../../components/SidebarActions/styled");
12
14
  const telemetry_1 = require("../../mocks/telemetry");
13
- var LayoutVariant;
14
- (function (LayoutVariant) {
15
- LayoutVariant["STACKED"] = "stacked";
16
- LayoutVariant["THREE_PANEL"] = "three-panel";
17
- })(LayoutVariant || (exports.LayoutVariant = LayoutVariant = {}));
18
15
  const SidebarActions = ({ showChangeLayoutButton, showRightPanelToggle, layout, initialShowRightPanelToggle, hideCollapseSidebarButton = false, collapsedSidebar, isOpenapiDocs, onChangeRightPanelViewClick, onChangeViewClick, onChangeCollapseSidebarClick, requestAccessButton, className, }) => {
19
16
  return (react_1.default.createElement(styled_1.ControlsWrap, { className: className, isOpenapiDocs: isOpenapiDocs, isCollapsed: collapsedSidebar, "data-component-name": "Sidebar/Actions" },
20
17
  isOpenapiDocs && (react_1.default.createElement(styled_1.ControlsWrapChangeLayoutButtons, { isCollapsed: collapsedSidebar },