@gearbox-protocol/ui-kit 4.2.1 → 4.3.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.
@@ -8,16 +8,17 @@ export interface DetailsViewProps {
8
8
  readonly testId?: string;
9
9
  }
10
10
  /**
11
- * Detail screen shell: left pane (sections) + right manage pane, with the
12
- * manage pane moving inline into the left column on narrow screens.
11
+ * Detail screen shell: left pane (sections) + right manage pane. On narrow
12
+ * screens the manage pane renders where the left pane places
13
+ * {@link DetailsViewManagePaneSlot}.
13
14
  */
14
15
  export declare function DetailsView({ children, mainRef, className, testId, }: DetailsViewProps): React.ReactElement;
15
16
  export interface DetailsViewLeftPaneProps {
16
17
  readonly children: React.ReactNode;
17
- /** Injected by {@link DetailsView} on narrow screens. */
18
- readonly mobileManagePane?: React.ReactNode;
19
18
  }
20
- export declare function DetailsViewLeftPane({ children, mobileManagePane, }: DetailsViewLeftPaneProps): React.ReactElement;
19
+ export declare function DetailsViewLeftPane({ children, }: DetailsViewLeftPaneProps): React.ReactElement;
20
+ /** Where the manage pane goes on narrow screens; renders nothing on wide ones. */
21
+ export declare function DetailsViewManagePaneSlot(): React.ReactNode;
21
22
  export interface DetailsViewManagePaneProps {
22
23
  readonly children: React.ReactNode;
23
24
  }
@@ -9,11 +9,6 @@ export interface TabberSectionProps {
9
9
  readonly heading?: TitleText;
10
10
  readonly actions?: React.ReactNode;
11
11
  readonly children?: React.ReactNode;
12
- /**
13
- * Render this section above the sticky tab bar (overview badges). The
14
- * section is not listed in the bar; scroll-spy tracks only sections below it.
15
- */
16
- readonly beforeBar?: boolean;
17
12
  /** Skip the in-section h2 — overview has badges, not a heading. */
18
13
  readonly hideHeading?: boolean;
19
14
  }
@@ -26,7 +21,5 @@ export interface TabberProps {
26
21
  readonly observeKey?: string;
27
22
  readonly initialSection?: string;
28
23
  readonly testId?: string;
29
- /** Injected by {@link DetailsViewLeftPane} on narrow screens. */
30
- readonly mobileManagePane?: React.ReactNode;
31
24
  }
32
- export declare function Tabber({ children, observeKey, initialSection, testId, mobileManagePane, }: TabberProps): React.ReactElement;
25
+ export declare function Tabber({ children, observeKey, initialSection, testId, }: TabberProps): React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),r=require("./tabber.cjs");function b(e){return t.isValidElement(e)&&e.type===r.Tabber}exports.isTabber=b;
@@ -1,8 +0,0 @@
1
- import { isValidElement as t } from "react";
2
- import { Tabber as e } from "./tabber.js";
3
- function o(r) {
4
- return t(r) && r.type === e;
5
- }
6
- export {
7
- o as isTabber
8
- };
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /**
3
- * Whether a node is a Tabber, so DetailsView can tell a tabbed pane from plain
4
- * content. Its own module: the barrel carries the component, not the predicate.
5
- */
6
- export declare function isTabber(node: ReactNode): boolean;