@gearbox-protocol/ui-kit 4.2.1 → 4.4.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.
- package/dist/cjs/components/base/details-view/details-view.cjs +1 -1
- package/dist/cjs/components/base/details-view/index.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/base/details-view/details-view.js +40 -56
- package/dist/esm/components/base/details-view/index.js +8 -7
- package/dist/esm/components/base/index.js +127 -126
- package/dist/esm/components/base/manage-pane/manage-pane.js +89 -85
- package/dist/esm/components/base/tabber/tabber.js +85 -95
- package/dist/esm/components/index.js +413 -412
- package/dist/esm/index.js +459 -458
- package/dist/globals.css +1 -1
- package/dist/types/components/base/details-view/details-view.d.ts +6 -5
- package/dist/types/components/base/tabber/tabber.d.ts +1 -8
- package/package.json +1 -1
- package/dist/cjs/components/base/tabber/is-tabber.cjs +0 -1
- package/dist/esm/components/base/tabber/is-tabber.js +0 -8
- package/dist/types/components/base/tabber/is-tabber.d.ts +0 -6
|
@@ -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
|
|
12
|
-
* manage pane
|
|
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,
|
|
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,
|
|
25
|
+
export declare function Tabber({ children, observeKey, initialSection, testId, }: TabberProps): React.ReactElement;
|
package/package.json
CHANGED
|
@@ -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,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;
|