@gearbox-protocol/ui-kit 3.8.1 → 3.9.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/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/pool-table/pool-table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/test-ids/index.cjs +1 -1
- package/dist/cjs/test-ids/pool-table.cjs +1 -0
- package/dist/esm/components/composites/pool-table/columns.js +106 -98
- package/dist/esm/components/composites/pool-table/pool-table.js +115 -99
- package/dist/esm/index.js +276 -274
- package/dist/esm/test-ids/index.js +7 -5
- package/dist/esm/test-ids/pool-table.js +9 -0
- package/dist/types/components/composites/pool-table/columns.d.ts +2 -0
- package/dist/types/components/composites/pool-table/pool-table.d.ts +1 -1
- package/dist/types/components/composites/pool-table/types.d.ts +4 -0
- package/dist/types/test-ids/index.d.ts +1 -0
- package/dist/types/test-ids/pool-table.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { currencyButtonTestIds as
|
|
1
|
+
import { currencyButtonTestIds as r } from "./currency-button.js";
|
|
2
2
|
import { poolCreditManagerInfoTestIds as s } from "./pool-credit-manager-info.js";
|
|
3
3
|
import { poolCreditManagersTableTestIds as d } from "./pool-credit-managers-table.js";
|
|
4
|
-
import {
|
|
4
|
+
import { poolTableTestIds as I } from "./pool-table.js";
|
|
5
|
+
import { balanceIndicatorTestIds as T, smartNumberInputTestIds as m } from "./smart-number-input.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
T as balanceIndicatorTestIds,
|
|
8
|
+
r as currencyButtonTestIds,
|
|
8
9
|
s as poolCreditManagerInfoTestIds,
|
|
9
10
|
d as poolCreditManagersTableTestIds,
|
|
10
|
-
|
|
11
|
+
I as poolTableTestIds,
|
|
12
|
+
m as smartNumberInputTestIds
|
|
11
13
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MultiAssetCellProps } from '../../assets-list-cell';
|
|
1
2
|
import { LocaleKeys } from '../../../locale';
|
|
2
3
|
import { PoolDTO, PoolTableCellContext, PoolTableColumnDef } from './types';
|
|
3
4
|
import type * as React from "react";
|
|
@@ -78,6 +79,7 @@ export declare function collateralColumn<P extends PoolDTO = PoolDTO>(options?:
|
|
|
78
79
|
align?: "left" | "right";
|
|
79
80
|
/** @default 5 */
|
|
80
81
|
maxAssets?: number;
|
|
82
|
+
options?: MultiAssetCellProps["options"];
|
|
81
83
|
}): PoolTableColumnDef<P>;
|
|
82
84
|
/**
|
|
83
85
|
* User balance column (client-v3 style) — USD + amount in pool token.
|
|
@@ -29,4 +29,4 @@ import { PoolDTO, PoolTableProps } from './types';
|
|
|
29
29
|
* <PoolTable columns={columns} rows={rows} loading={isLoading} sort={sort} />
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare function PoolTable<P extends PoolDTO = PoolDTO>({ columns, rows, loading, partialLoading, error, emptyContent, skeletonRows, rowHeight, size, mobileColumnsXs, mobileColumnsMd, className, wrapperClassName, sort, }: PoolTableProps<P>): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
export declare function PoolTable<P extends PoolDTO = PoolDTO>({ columns, rows, loading, partialLoading, error, emptyContent, skeletonRows, rowHeight, size, mobileColumnsXs, mobileColumnsMd, className, wrapperClassName, sort, rowTestId, loaderTestId, }: PoolTableProps<P>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -124,4 +124,8 @@ export interface PoolTableProps<P extends PoolDTO = PoolDTO> {
|
|
|
124
124
|
} | null;
|
|
125
125
|
set: (field: string, startFromSort?: "asc" | "desc") => void;
|
|
126
126
|
};
|
|
127
|
+
/** `data-testid` on each data row. Defaults to `pool-line` (see `poolTableTestIds`). */
|
|
128
|
+
rowTestId?: string;
|
|
129
|
+
/** `data-testid` on loading skeleton / partial row. Defaults to `pool-line-loading`. */
|
|
130
|
+
loaderTestId?: string;
|
|
127
131
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable `data-testid` values for {@link PoolTable} (rows, loader, balance cell).
|
|
3
|
+
* Matches legacy client `PoolLineTest` strings for Playwright continuity.
|
|
4
|
+
*/
|
|
5
|
+
export declare const poolTableTestIds: {
|
|
6
|
+
readonly poolLine: "pool-line";
|
|
7
|
+
readonly poolLineLoading: "pool-line-loading";
|
|
8
|
+
readonly poolLineNotFound: "pool-line-not-found";
|
|
9
|
+
readonly poolLineCellBalance: "pool-line-cell-balance";
|
|
10
|
+
};
|