@gearbox-protocol/ui-kit 3.7.1 → 3.8.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/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-credit-manager-info/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-credit-manager-info/pool-credit-manager-info.cjs +1 -1
- package/dist/cjs/components/composites/pool-credit-managers-table/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-credit-managers-table/pool-credit-managers-table-row.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/test-ids/currency-button.cjs +1 -0
- package/dist/cjs/test-ids/index.cjs +1 -0
- package/dist/cjs/test-ids/smart-number-input.cjs +1 -0
- package/dist/esm/components/composites/index.js +23 -27
- package/dist/esm/components/composites/pool-credit-manager-info/index.js +3 -5
- package/dist/esm/components/composites/pool-credit-manager-info/pool-credit-manager-info.js +17 -17
- package/dist/esm/components/composites/pool-credit-managers-table/index.js +3 -5
- package/dist/esm/components/composites/pool-credit-managers-table/pool-credit-managers-table-row.js +12 -12
- package/dist/esm/components/currency-button/currency-button.js +8 -7
- package/dist/esm/components/index.js +592 -596
- package/dist/esm/components/smart-number-input/balance-indicator.js +26 -25
- package/dist/esm/components/smart-number-input/smart-number-input.js +75 -74
- package/dist/esm/index.js +815 -810
- package/dist/esm/test-ids/currency-button.js +6 -0
- package/dist/esm/test-ids/index.js +11 -0
- package/dist/esm/test-ids/smart-number-input.js +13 -0
- package/dist/types/components/composites/pool-credit-manager-info/index.d.ts +0 -1
- package/dist/types/components/composites/pool-credit-managers-table/index.d.ts +0 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/test-ids/currency-button.d.ts +4 -0
- package/dist/types/test-ids/index.d.ts +11 -0
- package/dist/types/test-ids/smart-number-input.d.ts +12 -0
- package/package.json +6 -1
- /package/dist/cjs/{components/composites/pool-credit-manager-info/test-ids.cjs → test-ids/pool-credit-manager-info.cjs} +0 -0
- /package/dist/cjs/{components/composites/pool-credit-managers-table/test-ids.ts.cjs → test-ids/pool-credit-managers-table.cjs} +0 -0
- /package/dist/esm/{components/composites/pool-credit-manager-info/test-ids.js → test-ids/pool-credit-manager-info.js} +0 -0
- /package/dist/esm/{components/composites/pool-credit-managers-table/test-ids.ts.js → test-ids/pool-credit-managers-table.js} +0 -0
- /package/dist/types/{components/composites/pool-credit-manager-info/test-ids.d.ts → test-ids/pool-credit-manager-info.d.ts} +0 -0
- /package/dist/types/{components/composites/pool-credit-managers-table/test-ids.ts.d.ts → test-ids/pool-credit-managers-table.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { currencyButtonTestIds as t } from "./currency-button.js";
|
|
2
|
+
import { poolCreditManagerInfoTestIds as s } from "./pool-credit-manager-info.js";
|
|
3
|
+
import { poolCreditManagersTableTestIds as d } from "./pool-credit-managers-table.js";
|
|
4
|
+
import { balanceIndicatorTestIds as I, smartNumberInputTestIds as p } from "./smart-number-input.js";
|
|
5
|
+
export {
|
|
6
|
+
I as balanceIndicatorTestIds,
|
|
7
|
+
t as currencyButtonTestIds,
|
|
8
|
+
s as poolCreditManagerInfoTestIds,
|
|
9
|
+
d as poolCreditManagersTableTestIds,
|
|
10
|
+
p as smartNumberInputTestIds
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
root: "smart-number-input-root",
|
|
3
|
+
close: "smart-number-input-close",
|
|
4
|
+
label: "smart-number-input-label",
|
|
5
|
+
input: "smart-number-input-input"
|
|
6
|
+
}, n = {
|
|
7
|
+
root: "balance-indicator",
|
|
8
|
+
max: "balance-max"
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
n as balanceIndicatorTestIds,
|
|
12
|
+
t as smartNumberInputTestIds
|
|
13
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export * from './hooks';
|
|
|
142
142
|
export type { LocaleKeys } from './locale';
|
|
143
143
|
export * from './locale';
|
|
144
144
|
export { EnglishLocale };
|
|
145
|
+
export * from './test-ids';
|
|
145
146
|
export * from './utils';
|
|
146
147
|
export * from './utils/a11y';
|
|
147
148
|
export { cn } from './utils/cn';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automation-only constants: stable `data-testid` strings and related selectors.
|
|
3
|
+
*
|
|
4
|
+
* Downstream apps should prefer `import { … } from "@gearbox-protocol/ui-kit/test-ids"`
|
|
5
|
+
* (Node-safe, no React / charts) over importing from the main package entry when
|
|
6
|
+
* tests run outside a bundler.
|
|
7
|
+
*/
|
|
8
|
+
export * from './currency-button';
|
|
9
|
+
export * from './pool-credit-manager-info';
|
|
10
|
+
export * from './pool-credit-managers-table';
|
|
11
|
+
export * from './smart-number-input';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Stable `data-testid` values for `SmartNumberInput`. */
|
|
2
|
+
export declare const smartNumberInputTestIds: {
|
|
3
|
+
readonly root: "smart-number-input-root";
|
|
4
|
+
readonly close: "smart-number-input-close";
|
|
5
|
+
readonly label: "smart-number-input-label";
|
|
6
|
+
readonly input: "smart-number-input-input";
|
|
7
|
+
};
|
|
8
|
+
/** Stable `data-testid` values for `BalanceIndicator` (used inside SmartNumberInput). */
|
|
9
|
+
export declare const balanceIndicatorTestIds: {
|
|
10
|
+
readonly root: "balance-indicator";
|
|
11
|
+
readonly max: "balance-max";
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/ui-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Internal UI components",
|
|
5
5
|
"repository": "https://github.com/gearbox-protocol/ui-kit",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"import": "./dist/esm/index.js",
|
|
17
17
|
"default": "./dist/cjs/index.cjs"
|
|
18
18
|
},
|
|
19
|
+
"./test-ids": {
|
|
20
|
+
"types": "./dist/types/test-ids/index.d.ts",
|
|
21
|
+
"import": "./dist/esm/src/test-ids/index.js",
|
|
22
|
+
"default": "./dist/cjs/src/test-ids/index.cjs"
|
|
23
|
+
},
|
|
19
24
|
"./next": {
|
|
20
25
|
"types": "./dist/types/components/next/index.d.ts",
|
|
21
26
|
"import": "./dist/esm/components/next/index.js",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|