@gearbox-protocol/ui-kit 4.0.0 → 4.0.1
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/badge/chip.cjs +1 -1
- package/dist/cjs/components/base/amount-input/constants.cjs +1 -1
- package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/constants.cjs +1 -1
- package/dist/cjs/components/base/details-view/constants.cjs +1 -1
- package/dist/cjs/components/base/health-factor-block/constants.cjs +1 -1
- package/dist/cjs/components/base/history-chart/constants.cjs +1 -1
- package/dist/cjs/components/base/info-list/constants.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/constants.cjs +1 -1
- package/dist/cjs/components/base/liquidation-params-table/constants.cjs +1 -1
- package/dist/cjs/components/base/liquidation-price-block/constants.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
- package/dist/cjs/components/base/more-accordion/constants.cjs +1 -1
- package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -1
- package/dist/cjs/components/base/page-title/constants.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/position-assets/constants.cjs +1 -1
- package/dist/cjs/components/base/review-button/constants.cjs +1 -1
- package/dist/cjs/components/base/section-heading/constants.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/constants.cjs +1 -1
- package/dist/cjs/components/base/stack/constants.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/tabber/constants.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/constants.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.cjs +1 -1
- package/dist/cjs/components/base/token-amount/constants.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -1
- package/dist/cjs/components/base/values/constants.cjs +1 -1
- package/dist/cjs/components/base-table/constants.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/result/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-awaiting-panel.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/constants.cjs +1 -1
- package/dist/cjs/components/slider/constants.cjs +1 -1
- package/dist/cjs/components/trading-view/constants.cjs +1 -1
- package/dist/esm/components/badge/chip.js +14 -15
- package/dist/esm/components/base/amount-input/constants.js +12 -12
- package/dist/esm/components/base/borrow-rate-block/constants.js +6 -6
- package/dist/esm/components/base/chart-with-side-card/constants.js +6 -6
- package/dist/esm/components/base/detailed-page-title/constants.js +5 -5
- package/dist/esm/components/base/details-view/constants.js +9 -10
- package/dist/esm/components/base/health-factor-block/constants.js +6 -6
- package/dist/esm/components/base/history-chart/constants.js +7 -7
- package/dist/esm/components/base/info-list/constants.js +6 -6
- package/dist/esm/components/base/leverage-input/constants.js +7 -7
- package/dist/esm/components/base/liquidation-params-table/constants.js +4 -4
- package/dist/esm/components/base/liquidation-price-block/constants.js +6 -6
- package/dist/esm/components/base/manage-pane/constants.js +9 -9
- package/dist/esm/components/base/more-accordion/constants.js +5 -5
- package/dist/esm/components/base/nested-info-stack/constants.js +4 -4
- package/dist/esm/components/base/page-title/constants.js +4 -4
- package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -7
- package/dist/esm/components/base/position-assets/constants.js +7 -7
- package/dist/esm/components/base/review-button/constants.js +6 -6
- package/dist/esm/components/base/section-heading/constants.js +3 -3
- package/dist/esm/components/base/segmented-tabs/constants.js +3 -3
- package/dist/esm/components/base/stack/constants.js +4 -4
- package/dist/esm/components/base/stat-badge/constants.js +7 -7
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +10 -10
- package/dist/esm/components/base/tabber/constants.js +6 -6
- package/dist/esm/components/base/time-to-liquidation-block/constants.js +6 -6
- package/dist/esm/components/base/title-meta/constants.js +7 -7
- package/dist/esm/components/base/token-amount/constants.js +4 -4
- package/dist/esm/components/base/token-pair-symbol/constants.js +4 -4
- package/dist/esm/components/base/values/constants.js +17 -18
- package/dist/esm/components/base-table/constants.js +9 -10
- package/dist/esm/components/collateral-allocation-tooltip/constants.js +9 -10
- package/dist/esm/components/composites/pool-assets-table/constants.js +8 -8
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +4 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +6 -6
- package/dist/esm/components/composites/tx-preview/confirm/result/constants.js +18 -21
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +4 -4
- package/dist/esm/components/legal-agreement/legal-agreement-awaiting-panel.js +10 -10
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +36 -36
- package/dist/esm/components/sdk-status-pill/constants.js +6 -6
- package/dist/esm/components/slider/constants.js +4 -4
- package/dist/esm/components/trading-view/constants.js +5 -5
- package/dist/types/components/badge/chip.d.ts +7 -7
- package/dist/types/components/base/amount-input/constants.d.ts +11 -11
- package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -5
- package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -5
- package/dist/types/components/base/detailed-page-title/constants.d.ts +4 -4
- package/dist/types/components/base/details-view/constants.d.ts +9 -9
- package/dist/types/components/base/health-factor-block/constants.d.ts +5 -5
- package/dist/types/components/base/history-chart/constants.d.ts +6 -6
- package/dist/types/components/base/info-list/constants.d.ts +5 -5
- package/dist/types/components/base/leverage-input/constants.d.ts +6 -6
- package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -3
- package/dist/types/components/base/liquidation-price-block/constants.d.ts +5 -5
- package/dist/types/components/base/manage-pane/constants.d.ts +9 -9
- package/dist/types/components/base/more-accordion/constants.d.ts +4 -4
- package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -3
- package/dist/types/components/base/page-title/constants.d.ts +3 -3
- package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +7 -7
- package/dist/types/components/base/position-assets/constants.d.ts +6 -6
- package/dist/types/components/base/review-button/constants.d.ts +5 -5
- package/dist/types/components/base/section-heading/constants.d.ts +3 -3
- package/dist/types/components/base/segmented-tabs/constants.d.ts +3 -3
- package/dist/types/components/base/stack/constants.d.ts +3 -3
- package/dist/types/components/base/stat-badge/constants.d.ts +6 -6
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +9 -9
- package/dist/types/components/base/tabber/constants.d.ts +5 -5
- package/dist/types/components/base/time-to-liquidation-block/constants.d.ts +5 -5
- package/dist/types/components/base/title-meta/constants.d.ts +6 -6
- package/dist/types/components/base/token-amount/constants.d.ts +3 -3
- package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -3
- package/dist/types/components/base/values/constants.d.ts +16 -16
- package/dist/types/components/base-table/constants.d.ts +8 -8
- package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -8
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +7 -7
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +3 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +6 -6
- package/dist/types/components/composites/tx-preview/confirm/result/constants.d.ts +18 -18
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +3 -3
- package/dist/types/components/legal-agreement/legal-agreement-awaiting-panel.d.ts +3 -3
- package/dist/types/components/legal-agreement/legal-agreement-panel.d.ts +3 -3
- package/dist/types/components/sdk-status-pill/constants.d.ts +5 -5
- package/dist/types/components/slider/constants.d.ts +3 -3
- package/dist/types/components/trading-view/constants.d.ts +4 -4
- package/package.json +3 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
export declare const AmountInputTest: {
|
|
2
|
+
readonly root: "amount-input-root";
|
|
3
|
+
readonly input: "amount-input-field";
|
|
4
|
+
readonly max: "amount-input-max";
|
|
5
|
+
readonly token: "amount-input-token";
|
|
6
|
+
readonly label: "amount-input-label";
|
|
7
|
+
readonly balance: "amount-input-balance";
|
|
8
|
+
readonly usd: "amount-input-usd";
|
|
9
|
+
readonly selectPanel: "amount-input-select-panel";
|
|
10
|
+
readonly selectOption: "amount-input-select-option";
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const BorrowRateBlockTest: {
|
|
2
|
+
readonly root: "borrow-rate-block-root";
|
|
3
|
+
readonly trigger: "borrow-rate-block-trigger";
|
|
4
|
+
readonly details: "borrow-rate-block-details";
|
|
5
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const ChartWithSideCardTest: {
|
|
2
|
+
readonly root: "chart-with-side-card-root";
|
|
3
|
+
readonly chart: "chart-with-side-card-chart";
|
|
4
|
+
readonly side: "chart-with-side-card-side";
|
|
5
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export declare const DetailedPageTitleTest: {
|
|
2
|
+
readonly root: "detailed-page-title-root";
|
|
3
|
+
readonly actions: "detailed-page-title-actions";
|
|
4
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export declare const DetailsViewTest: {
|
|
2
|
+
readonly root: "details-view-root";
|
|
3
|
+
readonly leftPane: "details-view-left-pane";
|
|
4
|
+
readonly managePane: "details-view-manage-pane";
|
|
5
|
+
};
|
|
6
|
+
export declare const DetailAsideWrapperTest: {
|
|
7
|
+
readonly root: "detail-aside-wrapper-root";
|
|
8
|
+
readonly stickyContent: "detail-aside-wrapper-sticky-content";
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const HealthFactorBlockTest: {
|
|
2
|
+
readonly root: "health-factor-block-root";
|
|
3
|
+
readonly value: "health-factor-block-value";
|
|
4
|
+
readonly valueTo: "health-factor-block-value-to";
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const HistoryChartTest: {
|
|
2
|
+
readonly root: "history-chart-root";
|
|
3
|
+
readonly empty: "history-chart-empty";
|
|
4
|
+
readonly error: "history-chart-error";
|
|
5
|
+
readonly range: (id: string) => string;
|
|
6
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const InfoListTest: {
|
|
2
|
+
readonly root: "info-list-root";
|
|
3
|
+
readonly line: "info-list-line";
|
|
4
|
+
readonly sectionTitle: "info-list-section-title";
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const LeverageInputTest: {
|
|
2
|
+
readonly root: "leverage-input-root";
|
|
3
|
+
readonly slider: "leverage-input-slider";
|
|
4
|
+
readonly value: "leverage-input-value";
|
|
5
|
+
readonly reset: "leverage-input-reset";
|
|
6
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const LiquidationParamsTableTest: {
|
|
2
|
+
readonly root: "liquidation-params-table-root";
|
|
3
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const LiquidationPriceBlockTest: {
|
|
2
|
+
readonly root: "liquidation-price-block-root";
|
|
3
|
+
readonly value: "liquidation-price-block-value";
|
|
4
|
+
readonly valueTo: "liquidation-price-block-value-to";
|
|
5
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export declare const ManagePaneTest: {
|
|
2
|
+
readonly root: "manage-pane-root";
|
|
3
|
+
readonly tabs: "manage-pane-tabs";
|
|
4
|
+
readonly dropdown: "manage-pane-dropdown";
|
|
5
|
+
readonly body: "manage-pane-body";
|
|
6
|
+
readonly message: "manage-pane-message";
|
|
7
|
+
readonly actionDialog: "manage-pane-action-dialog";
|
|
8
|
+
readonly tab: (id: string) => string;
|
|
9
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export declare const MoreAccordionTest: {
|
|
2
|
+
readonly root: "more-accordion-root";
|
|
3
|
+
readonly trigger: "more-accordion-trigger";
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const NestedInfoStackTest: {
|
|
2
|
+
readonly root: "nested-info-stack-root";
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const PageTitleTest: {
|
|
2
|
+
readonly root: "page-title-root";
|
|
3
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
export declare const PoolApyBreakdownCardTest: {
|
|
2
|
+
readonly root: "pool-apy-breakdown-card-root";
|
|
3
|
+
readonly net: "pool-apy-breakdown-card-net";
|
|
4
|
+
readonly value: "pool-apy-breakdown-card-value";
|
|
5
|
+
readonly reward: "pool-apy-breakdown-card-reward";
|
|
6
|
+
readonly points: "pool-apy-breakdown-card-points";
|
|
7
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const PositionAssetsTest: {
|
|
2
|
+
readonly root: "position-assets-root";
|
|
3
|
+
readonly row: "position-assets-row";
|
|
4
|
+
readonly worth: "position-assets-worth";
|
|
5
|
+
readonly empty: "position-assets-empty";
|
|
6
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const ReviewButtonTest: {
|
|
2
|
+
readonly root: "review-button-root";
|
|
3
|
+
readonly error: "review-button-error";
|
|
4
|
+
readonly tip: "review-button-tip";
|
|
5
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const SectionHeadingTest: {
|
|
2
|
+
readonly root: "section-heading-root";
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const SegmentedTabsTest: {
|
|
2
|
+
readonly root: "segmented-tabs-root";
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const StackTest: {
|
|
2
|
+
readonly root: "stack-root";
|
|
3
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const StatBadgeTest: {
|
|
2
|
+
readonly root: "stat-badge-root";
|
|
3
|
+
readonly grid: "stat-badge-grid-root";
|
|
4
|
+
readonly action: "stat-badge-action";
|
|
5
|
+
readonly delta: "stat-badge-delta";
|
|
6
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
export declare const StrategyApyBreakdownCardTest: {
|
|
2
|
+
readonly root: "strategy-apy-breakdown-card-root";
|
|
3
|
+
readonly net: "strategy-apy-breakdown-card-net";
|
|
4
|
+
readonly collateral: "strategy-apy-breakdown-card-collateral";
|
|
5
|
+
readonly borrow: "strategy-apy-breakdown-card-borrow";
|
|
6
|
+
readonly value: "strategy-apy-breakdown-card-value";
|
|
7
|
+
readonly points: "strategy-apy-breakdown-card-points";
|
|
8
|
+
readonly caption: "strategy-apy-breakdown-card-caption";
|
|
9
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const TabberTest: {
|
|
2
|
+
readonly root: "tabber-root";
|
|
3
|
+
readonly bar: "tabber-bar";
|
|
4
|
+
readonly section: "tabber-section";
|
|
5
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const TimeToLiquidationBlockTest: {
|
|
2
|
+
readonly root: "time-to-liquidation-block-root";
|
|
3
|
+
readonly value: "time-to-liquidation-block-value";
|
|
4
|
+
readonly valueTo: "time-to-liquidation-block-value-to";
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const TitleMetaTest: {
|
|
2
|
+
readonly root: "title-meta-root";
|
|
3
|
+
readonly network: "title-meta-network";
|
|
4
|
+
readonly curator: "title-meta-curator";
|
|
5
|
+
readonly link: "title-meta-link";
|
|
6
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const TokenAmountTest: {
|
|
2
|
+
readonly root: "token-amount-root";
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const TokenPairSymbolTest: {
|
|
2
|
+
readonly root: "token-pair-symbol-root";
|
|
3
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
export declare const ValueTest: {
|
|
2
|
+
readonly apy: "value-apy";
|
|
3
|
+
readonly usd: "value-usd";
|
|
4
|
+
readonly leverage: "value-leverage";
|
|
5
|
+
readonly utilization: "value-utilization";
|
|
6
|
+
readonly healthFactor: "value-health-factor";
|
|
7
|
+
readonly pnl: "value-pnl";
|
|
8
|
+
readonly priceImpact: "value-price-impact";
|
|
9
|
+
readonly tokenBigint: "value-token-bigint";
|
|
10
|
+
readonly points: "value-points";
|
|
11
|
+
readonly placeholder: "value-placeholder";
|
|
12
|
+
readonly accruing: "value-accruing";
|
|
13
|
+
};
|
|
14
|
+
export declare const PositionShortLabelTest: {
|
|
15
|
+
readonly root: "position-short-label";
|
|
16
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
export declare const BaseTableTest: {
|
|
2
|
+
readonly root: "base-table-root";
|
|
3
|
+
readonly head: "base-table-head";
|
|
4
|
+
readonly empty: "base-table-empty";
|
|
5
|
+
};
|
|
6
|
+
export declare const BaseTableLineTest: {
|
|
7
|
+
readonly root: "base-table-line-root";
|
|
8
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
export declare const CollateralAllocationTooltipTest: {
|
|
2
|
+
readonly root: "collateral-allocation-tooltip-root";
|
|
3
|
+
readonly row: "collateral-allocation-tooltip-row";
|
|
4
|
+
readonly wheel: "collateral-allocation-tooltip-wheel";
|
|
5
|
+
};
|
|
6
|
+
export declare const AllocationWheelTest: {
|
|
7
|
+
readonly root: "allocation-wheel-root";
|
|
8
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
export declare const PoolAssetsTableTest: {
|
|
2
|
+
readonly root: "pool-assets-table-root";
|
|
3
|
+
readonly exposureCell: "pool-assets-table-exposure-cell";
|
|
4
|
+
readonly capCell: "pool-assets-table-cap-cell";
|
|
5
|
+
readonly capBelowExposureTip: "pool-assets-table-cap-below-exposure-tip";
|
|
6
|
+
readonly capUtilizationCell: "pool-assets-table-cap-utilization-cell";
|
|
7
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const TransactionConfirmAmountFieldTest: {
|
|
2
|
+
readonly root: "transaction-confirm-amount-field-root";
|
|
3
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
export declare const TransactionConfirmDialogTest: {
|
|
2
|
+
readonly root: "transaction-confirm-dialog-root";
|
|
3
|
+
readonly execution: "transaction-confirm-dialog-execution";
|
|
4
|
+
readonly progress: "transaction-confirm-dialog-progress";
|
|
5
|
+
readonly result: "transaction-confirm-dialog-result";
|
|
6
|
+
};
|
|
7
7
|
/** Outer dialog card: mobile-first full width, fixed 560px from md up. */
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
export declare const TransactionConfirmSuccessResultTest: {
|
|
2
|
+
readonly root: "transaction-confirm-success-result-root";
|
|
3
|
+
readonly headline: "transaction-confirm-success-result-headline";
|
|
4
|
+
readonly subtitle: "transaction-confirm-success-result-subtitle";
|
|
5
|
+
readonly footer: "transaction-confirm-success-result-footer";
|
|
6
|
+
};
|
|
7
|
+
export declare const TransactionConfirmFailureResultTest: {
|
|
8
|
+
readonly root: "transaction-confirm-failure-result-root";
|
|
9
|
+
readonly footer: "transaction-confirm-failure-result-footer";
|
|
10
|
+
};
|
|
11
|
+
export declare const TransactionConfirmTxHashRowTest: {
|
|
12
|
+
readonly root: "transaction-confirm-tx-hash-row-root";
|
|
13
|
+
readonly txHashLink: "transaction-confirm-tx-hash-row-tx-hash-link";
|
|
14
|
+
readonly addToWallet: "transaction-confirm-tx-hash-row-add-to-wallet";
|
|
15
|
+
};
|
|
16
|
+
export declare const TransactionConfirmExecuteButtonTest: {
|
|
17
|
+
readonly root: "transaction-confirm-execute-button-root";
|
|
18
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const ProgressStepperTest: {
|
|
2
|
+
readonly root: "progress-stepper-root";
|
|
3
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LegalAgreementVisualTheme } from './legal-agreement-theme';
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
}
|
|
3
|
+
export declare const LegalAgreementAwaitingPanelTest: {
|
|
4
|
+
readonly root: "legal-agreement-awaiting-panel-root";
|
|
5
|
+
};
|
|
6
6
|
export interface LegalAgreementAwaitingPanelProps {
|
|
7
7
|
readonly waitingForSignatureText?: string;
|
|
8
8
|
readonly theme?: LegalAgreementVisualTheme;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LegalAgreementDialogConfig } from './legal-agreement-config';
|
|
3
3
|
import { LegalAgreementVisualTheme } from './legal-agreement-theme';
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
export declare const LegalAgreementPanelTest: {
|
|
5
|
+
readonly root: "legal-agreement-panel-root";
|
|
6
|
+
};
|
|
7
7
|
export interface LegalAgreementPanelProps {
|
|
8
8
|
readonly config: LegalAgreementDialogConfig;
|
|
9
9
|
readonly checkedItems: Readonly<Record<string, boolean>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export declare const SdkStatusPillTest: {
|
|
2
|
+
readonly root: "sdk-status-pill-root";
|
|
3
|
+
readonly dot: "sdk-status-pill-dot";
|
|
4
|
+
readonly tooltip: "sdk-status-pill-tooltip";
|
|
5
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
export declare const SliderTest: {
|
|
2
|
+
readonly interval: "slider-interval";
|
|
3
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export declare const TradingViewTest: {
|
|
2
|
+
readonly priceScaleTitles: "trading-view-price-scale-titles";
|
|
3
|
+
readonly priceScaleTitle: (side: "left" | "right") => string;
|
|
4
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/ui-kit",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Internal UI components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
"dev": "vite build --watch",
|
|
48
48
|
"prepare": "husky",
|
|
49
49
|
"check": "biome check --write",
|
|
50
|
-
"check:ci": "biome check --diagnostic-level=error && pnpm check:api && pnpm check:layers",
|
|
50
|
+
"check:ci": "biome check --diagnostic-level=error && pnpm check:api && pnpm check:layers && pnpm check:test-ids",
|
|
51
51
|
"typecheck:ci": "tsc --noEmit",
|
|
52
52
|
"check:api": "node scripts/rules/check-api.mjs",
|
|
53
53
|
"check:layers": "node scripts/rules/check-layers.mjs",
|
|
54
|
+
"check:test-ids": "node scripts/rules/check-test-ids.mjs",
|
|
54
55
|
"test": "vitest run",
|
|
55
56
|
"test:watch": "vitest",
|
|
56
57
|
"storybook": "storybook dev -p 6006",
|