@gearbox-protocol/ui-kit 3.14.0-next.40 → 3.14.0-next.42
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/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/index.cjs +1 -0
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -0
- package/dist/cjs/components/composites/notification-center/types.cjs +1 -0
- package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/OperationPreviewContent.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationsCard.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolDepositView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolWithdrawView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeGroup.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/state-change/StateChangeCard.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/test-ids/index.cjs +1 -1
- package/dist/cjs/test-ids/notification-center.cjs +1 -0
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +3 -3
- package/dist/esm/components/block-sync/block-sync.js +3 -3
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +3 -3
- package/dist/esm/components/checkbox/checkbox-labeled.js +3 -3
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +3 -3
- package/dist/esm/components/complex-input/complex-input.js +3 -3
- package/dist/esm/components/composites/index.js +81 -79
- package/dist/esm/components/composites/notification-center/index.js +4 -0
- package/dist/esm/components/composites/notification-center/notification-center.js +208 -0
- package/dist/esm/components/composites/notification-center/types.js +1 -0
- package/dist/esm/components/composites/pool-table/columns.js +5 -5
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +3 -3
- package/dist/esm/components/composites/tx-preview/confirm/index.js +18 -15
- package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js +3 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +100 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +6 -2
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +9 -6
- package/dist/esm/components/composites/tx-preview/index.js +47 -44
- package/dist/esm/components/composites/tx-preview/operations/OperationsCard.js +3 -3
- package/dist/esm/components/composites/tx-preview/operations/PoolDepositView.js +3 -3
- package/dist/esm/components/composites/tx-preview/operations/PoolWithdrawView.js +3 -3
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeGroup.js +3 -3
- package/dist/esm/components/composites/tx-preview/state-change/StateChangeCard.js +3 -3
- package/dist/esm/components/compound-apy/compound-apy.js +3 -3
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +3 -3
- package/dist/esm/components/index.js +671 -669
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +3 -3
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +3 -3
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +3 -3
- package/dist/esm/components/with-copy/with-copy.js +3 -3
- package/dist/esm/index.js +837 -833
- package/dist/esm/locale/en.json.js +4 -0
- package/dist/esm/test-ids/index.js +14 -12
- package/dist/esm/test-ids/notification-center.js +16 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/index.d.ts +1 -0
- package/dist/types/components/composites/notification-center/index.d.ts +2 -0
- package/dist/types/components/composites/notification-center/notification-center.d.ts +9 -0
- package/dist/types/components/composites/notification-center/types.d.ts +30 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/ProgressStepper.d.ts +29 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +1 -0
- package/dist/types/locale/en.json.d.ts +5 -0
- package/dist/types/test-ids/index.d.ts +1 -0
- package/dist/types/test-ids/notification-center.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,87 +1,89 @@
|
|
|
1
1
|
import { CreditAccountHistory as r } from "./credit-account-history/credit-account-history.js";
|
|
2
2
|
import { GEARBOX_PROTOCOL_INFO as a, ZERO_ADDRESS as l, isMulticallOperation as p } from "./credit-account-history/types.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
3
|
+
import { NotificationCenter as s } from "./notification-center/notification-center.js";
|
|
4
|
+
import { OracleComponent as n } from "./oracles-and-lt-table/oracle-component.js";
|
|
5
|
+
import { OraclesAndLTLineView as u } from "./oracles-and-lt-table/oracles-and-lt-line-view.js";
|
|
6
|
+
import { OraclesAndLTTableView as C } from "./oracles-and-lt-table/oracles-and-lt-table.js";
|
|
7
|
+
import { OraclesAndLTTableHead as T } from "./oracles-and-lt-table/oracles-and-lt-table-head.js";
|
|
8
|
+
import { OraclesList as b, getPriceFeedInfo as w } from "./oracles-and-lt-table/oracles-list.js";
|
|
9
|
+
import { PoolAssetsTable as g } from "./pool-assets-table/pool-assets-table.js";
|
|
10
|
+
import { PoolAssetsTableHead as A } from "./pool-assets-table/pool-assets-table-head.js";
|
|
11
|
+
import { PoolAssetsTableRow as F } from "./pool-assets-table/pool-assets-table-row.js";
|
|
12
|
+
import { overflowContainerClassName as L, overflowWrapClassName as S } from "./pool-credit-manager-info/overflow-layout.js";
|
|
13
|
+
import { PoolCreditManagerInfo as H } from "./pool-credit-manager-info/pool-credit-manager-info.js";
|
|
14
|
+
import { PoolCreditManagersTable as v } from "./pool-credit-managers-table/pool-credit-managers-table.js";
|
|
15
|
+
import { PoolCreditManagersTableHead as E } from "./pool-credit-managers-table/pool-credit-managers-table-head.js";
|
|
16
|
+
import { PoolCreditManagersTableRow as V } from "./pool-credit-managers-table/pool-credit-managers-table-row.js";
|
|
17
|
+
import { balanceColumn as _, borrowApyColumn as G, borrowedColumn as Y, collateralColumn as Z, customColumn as z, defaultPoolName as B, poolColumn as X, supplyApyColumn as h, supplyColumn as j, utilizationColumn as k } from "./pool-table/columns.js";
|
|
18
|
+
import { PoolTable as J } from "./pool-table/pool-table.js";
|
|
19
|
+
import { customStrategyColumn as Q, strategyColumn as U, strategyLeverageColumn as $, strategyRewardsColumn as oo } from "./strategies-table/columns.js";
|
|
20
|
+
import { APYFeature as ro, APYFeatureTooltip as to } from "./strategies-table/components/apy-feature/apy-feature.js";
|
|
21
|
+
import { RWAFeature as lo, StrategiesRewardsCell as po, StrategyPoints as mo, ZeroSlippageFeature as so } from "./strategies-table/components/cells/cells.js";
|
|
22
|
+
import { DisabledWrap as no, Plus as fo, TitleGrid as uo } from "./strategies-table/components/cells/cells.styles.js";
|
|
23
|
+
import { Feature as Co } from "./strategies-table/components/feature/feature.js";
|
|
24
|
+
import { FeatureRoot as Po } from "./strategies-table/components/feature/feature.styles.js";
|
|
25
|
+
import { StrategiesTableNotFoundLine as wo } from "./strategies-table/components/not-found-line.js";
|
|
26
|
+
import { PointsFeature as go, PointsFeatureTooltip as co, PointsLabel as Ao } from "./strategies-table/components/points-feature/points-feature.js";
|
|
27
|
+
import { RewardsTooltip as Fo, RewardsTooltipHover as yo } from "./strategies-table/components/rewards-tooltip/rewards-tooltip.js";
|
|
28
|
+
import { RewardsTooltipRoot as So } from "./strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
29
|
+
import { RewardsTooltipView as Ho } from "./strategies-table/components/rewards-tooltip/rewards-tooltip-view.js";
|
|
30
|
+
import { RewardsTooltipContent as vo } from "./strategies-table/components/rewards-tooltip/tooltip-content.js";
|
|
31
|
+
import { StrategiesTable as Eo } from "./strategies-table/components/strategies-table.js";
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
ro as APYFeature,
|
|
34
|
+
to as APYFeatureTooltip,
|
|
34
35
|
r as CreditAccountHistory,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
no as DisabledWrap,
|
|
37
|
+
Co as Feature,
|
|
38
|
+
Po as FeatureRoot,
|
|
38
39
|
a as GEARBOX_PROTOCOL_INFO,
|
|
39
|
-
s as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
g as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
v as
|
|
54
|
-
E as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
yo as
|
|
61
|
-
So as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
40
|
+
s as NotificationCenter,
|
|
41
|
+
n as OracleComponent,
|
|
42
|
+
u as OraclesAndLTLineView,
|
|
43
|
+
T as OraclesAndLTTableHead,
|
|
44
|
+
C as OraclesAndLTTableView,
|
|
45
|
+
b as OraclesList,
|
|
46
|
+
fo as Plus,
|
|
47
|
+
go as PointsFeature,
|
|
48
|
+
co as PointsFeatureTooltip,
|
|
49
|
+
Ao as PointsLabel,
|
|
50
|
+
g as PoolAssetsTable,
|
|
51
|
+
A as PoolAssetsTableHead,
|
|
52
|
+
F as PoolAssetsTableRow,
|
|
53
|
+
H as PoolCreditManagerInfo,
|
|
54
|
+
v as PoolCreditManagersTable,
|
|
55
|
+
E as PoolCreditManagersTableHead,
|
|
56
|
+
V as PoolCreditManagersTableRow,
|
|
57
|
+
J as PoolTable,
|
|
58
|
+
lo as RWAFeature,
|
|
59
|
+
Fo as RewardsTooltip,
|
|
60
|
+
vo as RewardsTooltipContent,
|
|
61
|
+
yo as RewardsTooltipHover,
|
|
62
|
+
So as RewardsTooltipRoot,
|
|
63
|
+
Ho as RewardsTooltipView,
|
|
64
|
+
po as StrategiesRewardsCell,
|
|
65
|
+
Eo as StrategiesTable,
|
|
66
|
+
wo as StrategiesTableNotFoundLine,
|
|
67
|
+
mo as StrategyPoints,
|
|
68
|
+
uo as TitleGrid,
|
|
67
69
|
l as ZERO_ADDRESS,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
so as ZeroSlippageFeature,
|
|
71
|
+
_ as balanceColumn,
|
|
72
|
+
G as borrowApyColumn,
|
|
73
|
+
Y as borrowedColumn,
|
|
74
|
+
Z as collateralColumn,
|
|
75
|
+
z as customColumn,
|
|
76
|
+
Q as customStrategyColumn,
|
|
77
|
+
B as defaultPoolName,
|
|
78
|
+
w as getPriceFeedInfo,
|
|
77
79
|
p as isMulticallOperation,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
L as overflowContainerClassName,
|
|
81
|
+
S as overflowWrapClassName,
|
|
82
|
+
X as poolColumn,
|
|
83
|
+
U as strategyColumn,
|
|
84
|
+
$ as strategyLeverageColumn,
|
|
85
|
+
oo as strategyRewardsColumn,
|
|
86
|
+
h as supplyApyColumn,
|
|
87
|
+
j as supplyColumn,
|
|
88
|
+
k as utilizationColumn
|
|
87
89
|
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { faBell as g } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { FaIcon as h } from "../../icons/fa-icon.js";
|
|
4
|
+
import { SimpleDropdown as y } from "../../simple-dropdown/simple-dropdown.js";
|
|
5
|
+
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
6
|
+
import { FormattedMessageTyped as r } from "../../typed-intl/index.js";
|
|
7
|
+
import { Typography as i } from "../../typography/typography.js";
|
|
8
|
+
import { notificationCenterTestIds as a } from "../../../test-ids/notification-center.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "@gearbox-protocol/sdk";
|
|
11
|
+
import { cn as c } from "../../../utils/cn.js";
|
|
12
|
+
import "sonner";
|
|
13
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
14
|
+
import "luxon";
|
|
15
|
+
import "../../../utils/z-index.js";
|
|
16
|
+
function b({ row: t }) {
|
|
17
|
+
const l = /* @__PURE__ */ n(x, { children: [
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
|
+
"span",
|
|
20
|
+
{
|
|
21
|
+
className: c(
|
|
22
|
+
"mt-[5px] size-[7px] shrink-0 rounded-full",
|
|
23
|
+
t.isReady ? "bg-success" : "bg-gray-50"
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
28
|
+
/* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-3", children: [
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
i,
|
|
31
|
+
{
|
|
32
|
+
as: "span",
|
|
33
|
+
variant: "bodySmall",
|
|
34
|
+
className: "truncate text-foreground",
|
|
35
|
+
children: t.title
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
i,
|
|
40
|
+
{
|
|
41
|
+
as: "span",
|
|
42
|
+
variant: "bodySmall",
|
|
43
|
+
color: t.isReady ? "success" : "muted",
|
|
44
|
+
className: "shrink-0 text-right",
|
|
45
|
+
children: t.statusLabel
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ e(i, { as: "span", variant: "bodySmall", color: "muted", children: t.positionName })
|
|
50
|
+
] })
|
|
51
|
+
] });
|
|
52
|
+
return t.isReady && t.onExecute ? /* @__PURE__ */ e(
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
type: "button",
|
|
56
|
+
"data-testid": a.requestRow,
|
|
57
|
+
onClick: t.onExecute,
|
|
58
|
+
className: "flex w-full cursor-pointer items-start gap-2 py-4 text-left hover:opacity-80",
|
|
59
|
+
children: l
|
|
60
|
+
}
|
|
61
|
+
) : /* @__PURE__ */ e(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"data-testid": a.requestRow,
|
|
65
|
+
className: "flex w-full items-start gap-2 py-4",
|
|
66
|
+
children: l
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function L({
|
|
71
|
+
open: t,
|
|
72
|
+
onOpenChange: l,
|
|
73
|
+
deferredRows: o,
|
|
74
|
+
successRows: d,
|
|
75
|
+
deferredCount: m,
|
|
76
|
+
hasReady: u,
|
|
77
|
+
hasAny: f,
|
|
78
|
+
onClear: p
|
|
79
|
+
}) {
|
|
80
|
+
return /* @__PURE__ */ e(
|
|
81
|
+
y,
|
|
82
|
+
{
|
|
83
|
+
open: t,
|
|
84
|
+
onOpenChange: l,
|
|
85
|
+
align: "end",
|
|
86
|
+
asChild: !0,
|
|
87
|
+
className: "w-[460px] max-w-[calc(100vw-32px)] bg-modal p-0",
|
|
88
|
+
title: /* @__PURE__ */ n(
|
|
89
|
+
"button",
|
|
90
|
+
{
|
|
91
|
+
type: "button",
|
|
92
|
+
"data-testid": a.trigger,
|
|
93
|
+
className: "relative flex size-8 items-center justify-center rounded-md text-secondary-foreground hover:text-foreground",
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e(h, { icon: g, className: "size-4" }),
|
|
96
|
+
m > 0 ? /* @__PURE__ */ e(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
"data-testid": a.badge,
|
|
100
|
+
className: c(
|
|
101
|
+
"absolute -right-0.5 -top-0.5 flex size-[15px] items-center justify-center rounded-full text-[10px] font-medium leading-none text-white",
|
|
102
|
+
u ? "bg-primary" : "bg-gray-50"
|
|
103
|
+
),
|
|
104
|
+
children: m
|
|
105
|
+
}
|
|
106
|
+
) : null
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
children: /* @__PURE__ */ n(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
"data-testid": a.panel,
|
|
114
|
+
className: "flex flex-col p-8",
|
|
115
|
+
children: [
|
|
116
|
+
f ? null : /* @__PURE__ */ e(
|
|
117
|
+
i,
|
|
118
|
+
{
|
|
119
|
+
as: "span",
|
|
120
|
+
variant: "bodySmall",
|
|
121
|
+
color: "muted",
|
|
122
|
+
"data-testid": a.empty,
|
|
123
|
+
children: /* @__PURE__ */ e(r, { messageId: "components.notificationCenter.empty" })
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
o.length > 0 ? /* @__PURE__ */ n(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
className: "flex flex-col",
|
|
130
|
+
"data-testid": a.requestsSection,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between pb-2", children: [
|
|
133
|
+
/* @__PURE__ */ e(
|
|
134
|
+
i,
|
|
135
|
+
{
|
|
136
|
+
as: "span",
|
|
137
|
+
variant: "bodySmall",
|
|
138
|
+
className: "font-medium text-foreground",
|
|
139
|
+
children: /* @__PURE__ */ e(r, { messageId: "components.notificationCenter.requests" })
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
p ? /* @__PURE__ */ e(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
type: "button",
|
|
146
|
+
"data-testid": a.clear,
|
|
147
|
+
onClick: p,
|
|
148
|
+
className: "cursor-pointer text-xs text-secondary-foreground hover:text-foreground",
|
|
149
|
+
children: /* @__PURE__ */ e(r, { messageId: "components.notificationCenter.clear" })
|
|
150
|
+
}
|
|
151
|
+
) : null
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col divide-y divide-gray-60", children: o.map((s) => /* @__PURE__ */ e(b, { row: s }, s.id)) })
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
) : null,
|
|
157
|
+
d.length > 0 ? /* @__PURE__ */ n(
|
|
158
|
+
"div",
|
|
159
|
+
{
|
|
160
|
+
className: c(
|
|
161
|
+
"flex flex-col",
|
|
162
|
+
o.length > 0 && "mt-4 border-t border-gray-60 pt-4"
|
|
163
|
+
),
|
|
164
|
+
"data-testid": a.successSection,
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ e(
|
|
167
|
+
i,
|
|
168
|
+
{
|
|
169
|
+
as: "span",
|
|
170
|
+
variant: "bodySmall",
|
|
171
|
+
className: "pb-2 font-medium text-foreground",
|
|
172
|
+
children: /* @__PURE__ */ e(r, { messageId: "components.notificationCenter.recent" })
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
d.map((s) => /* @__PURE__ */ n(
|
|
176
|
+
"button",
|
|
177
|
+
{
|
|
178
|
+
type: "button",
|
|
179
|
+
"data-testid": a.successRow,
|
|
180
|
+
onClick: s.onView,
|
|
181
|
+
className: "flex cursor-pointer items-center justify-between gap-3 py-2 text-left hover:opacity-80",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ e(
|
|
184
|
+
i,
|
|
185
|
+
{
|
|
186
|
+
as: "span",
|
|
187
|
+
variant: "bodySmall",
|
|
188
|
+
className: "truncate text-foreground",
|
|
189
|
+
children: s.label
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ e(i, { as: "span", variant: "caption", color: "muted", children: s.timestampLabel })
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
s.id
|
|
196
|
+
))
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
) : null
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
export {
|
|
207
|
+
L as NotificationCenter
|
|
208
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -21,15 +21,17 @@ import { TokenSymbol as Y } from "../../token-symbol/token-symbol.js";
|
|
|
21
21
|
import { FormattedMessageTyped as f } from "../../typed-intl/index.js";
|
|
22
22
|
import { poolTableTestIds as z } from "../../../test-ids/pool-table.js";
|
|
23
23
|
import "../credit-account-history/credit-account-history.js";
|
|
24
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
25
|
+
import "../../icons/fa-icon.js";
|
|
26
|
+
import "../../simple-dropdown/simple-dropdown.js";
|
|
27
|
+
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
28
|
+
import "../../typography/typography.js";
|
|
24
29
|
import "@gearbox-protocol/static";
|
|
25
30
|
import "../../base-link/base-link.js";
|
|
26
31
|
import "../../client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
27
32
|
import "../../tooltip/simple-tooltip.js";
|
|
28
33
|
import "@gearbox-protocol/sdk/common-utils";
|
|
29
34
|
import "../../table/grid-table.js";
|
|
30
|
-
import "../../typography/typography.js";
|
|
31
|
-
import "@fortawesome/free-solid-svg-icons";
|
|
32
|
-
import "../../icons/fa-icon.js";
|
|
33
35
|
import "../../help-tip/help-tip.js";
|
|
34
36
|
import "../../tooltip/tooltip.js";
|
|
35
37
|
import "../../card-grid/card-grid.js";
|
|
@@ -139,7 +141,6 @@ import "../../navbar/navbar.js";
|
|
|
139
141
|
import "../../navbar/navbar-indicator-context.js";
|
|
140
142
|
import "../../app-bar/app-bar.js";
|
|
141
143
|
import "../../navitem/navitem.js";
|
|
142
|
-
import "../../simple-dropdown/simple-dropdown.js";
|
|
143
144
|
import "../../points-icon/points-icon.js";
|
|
144
145
|
import "../../progress/progress.js";
|
|
145
146
|
import "../../progress-bar/progress-bar.js";
|
|
@@ -151,7 +152,6 @@ import "../../select/select.js";
|
|
|
151
152
|
import "../../separate-line/separate-line.js";
|
|
152
153
|
import "../../separator/separator.js";
|
|
153
154
|
import "../../simple-accordion/simple-accordion.js";
|
|
154
|
-
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
155
155
|
import "../../slider/slider.js";
|
|
156
156
|
import "../../slider/slider-context.js";
|
|
157
157
|
import "@radix-ui/react-slider";
|
package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js
CHANGED
|
@@ -50,9 +50,11 @@ import "../../../../with-title/with-title.js";
|
|
|
50
50
|
import "../../../../smart-number-input/balance-indicator.js";
|
|
51
51
|
import "../../../../smart-number-input/smart-number-input.js";
|
|
52
52
|
import "../../../credit-account-history/credit-account-history.js";
|
|
53
|
+
import "../../../../simple-dropdown/simple-dropdown.js";
|
|
54
|
+
import "../../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
55
|
+
import "../../../../typography/typography.js";
|
|
53
56
|
import "../../../../table/grid-table.js";
|
|
54
57
|
import { getSymbolOrIcon as x } from "../../../../token-symbol/token-symbol.js";
|
|
55
|
-
import "../../../../typography/typography.js";
|
|
56
58
|
import "../../../../help-tip/help-tip.js";
|
|
57
59
|
import "../../../../description/description.js";
|
|
58
60
|
import { TokenTemplate as g } from "../../../../token-template/token-template.js";
|
|
@@ -141,7 +143,6 @@ import "../../../../navbar/navbar.js";
|
|
|
141
143
|
import "../../../../navbar/navbar-indicator-context.js";
|
|
142
144
|
import "../../../../app-bar/app-bar.js";
|
|
143
145
|
import "../../../../navitem/navitem.js";
|
|
144
|
-
import "../../../../simple-dropdown/simple-dropdown.js";
|
|
145
146
|
import "../../../../progress-bar/progress-bar.js";
|
|
146
147
|
import "../../../../radio-group/radio-group.js";
|
|
147
148
|
import "../../../../search-bar/search-bar.js";
|
|
@@ -149,7 +150,6 @@ import "../../../../segmented-control/segmented-control.js";
|
|
|
149
150
|
import "../../../../select/select.js";
|
|
150
151
|
import "../../../../separator/separator.js";
|
|
151
152
|
import "../../../../simple-accordion/simple-accordion.js";
|
|
152
|
-
import "../../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
153
153
|
import "../../../../slider/slider.js";
|
|
154
154
|
import "../../../../slider/slider-context.js";
|
|
155
155
|
import "@radix-ui/react-slider";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TransactionConfirmAmountFieldTest as n, TransactionConfirmAmountPairTest as t } from "./amounts/constants.js";
|
|
2
|
-
import { TransactionConfirmAmountField as
|
|
2
|
+
import { TransactionConfirmAmountField as a } from "./amounts/TransactionConfirmAmountField.js";
|
|
3
3
|
import { TransactionConfirmAmountPair as s } from "./amounts/TransactionConfirmAmountPair.js";
|
|
4
4
|
import { computeTransactionConfirmDialogLayout as f } from "./dialog/computeTransactionConfirmDialogLayout.js";
|
|
5
|
-
import { TransactionConfirmDialogTest as
|
|
5
|
+
import { TransactionConfirmDialogTest as p, transactionConfirmDialogShellVariants as T, transactionConfirmModalContainerVariants as l, transactionConfirmPreviewScrollVariants as C, transactionConfirmShellContentVariants as x } from "./dialog/constants.js";
|
|
6
6
|
import { TransactionConfirmDialogView as S } from "./dialog/TransactionConfirmDialogView.js";
|
|
7
7
|
import { TransactionConfirmPageView as g } from "./dialog/TransactionConfirmPageView.js";
|
|
8
8
|
import { TransactionConfirmShell as w } from "./dialog/TransactionConfirmShell.js";
|
|
@@ -15,20 +15,23 @@ import { TransactionConfirmFailureResult as M } from "./result/TransactionConfir
|
|
|
15
15
|
import { TransactionConfirmSuccessIcon as j } from "./result/TransactionConfirmSuccessIcon.js";
|
|
16
16
|
import { TransactionConfirmSuccessResult as q } from "./result/TransactionConfirmSuccessResult.js";
|
|
17
17
|
import { TransactionConfirmTxHashRow as G } from "./result/TransactionConfirmTxHashRow.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
18
|
+
import { ProgressStepperTest as K, TransactionProgressStepperTest as N } from "./stepper/constants.js";
|
|
19
|
+
import { ProgressStepper as U } from "./stepper/ProgressStepper.js";
|
|
20
|
+
import { TransactionProgressStepper as X } from "./stepper/TransactionProgressStepper.js";
|
|
21
|
+
import { shouldShowTransactionProgressStepper as Z } from "./stepper/transactionExecutionStepTypes.js";
|
|
22
|
+
import { PoolOperationConfirmDetailsTest as $ } from "./summary/constants.js";
|
|
23
|
+
import { PoolOperationConfirmDetails as ro } from "./summary/PoolOperationConfirmDetails.js";
|
|
23
24
|
export {
|
|
24
25
|
v as OperationPreviewContent,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
ro as PoolOperationConfirmDetails,
|
|
27
|
+
$ as PoolOperationConfirmDetailsTest,
|
|
28
|
+
U as ProgressStepper,
|
|
29
|
+
K as ProgressStepperTest,
|
|
30
|
+
a as TransactionConfirmAmountField,
|
|
28
31
|
n as TransactionConfirmAmountFieldTest,
|
|
29
32
|
s as TransactionConfirmAmountPair,
|
|
30
33
|
t as TransactionConfirmAmountPairTest,
|
|
31
|
-
|
|
34
|
+
p as TransactionConfirmDialogTest,
|
|
32
35
|
S as TransactionConfirmDialogView,
|
|
33
36
|
F as TransactionConfirmExecuteButton,
|
|
34
37
|
E as TransactionConfirmExecuteButtonTest,
|
|
@@ -42,11 +45,11 @@ export {
|
|
|
42
45
|
y as TransactionConfirmSuccessResultTest,
|
|
43
46
|
G as TransactionConfirmTxHashRow,
|
|
44
47
|
I as TransactionConfirmTxHashRowTest,
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
X as TransactionProgressStepper,
|
|
49
|
+
N as TransactionProgressStepperTest,
|
|
47
50
|
f as computeTransactionConfirmDialogLayout,
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
Z as shouldShowTransactionProgressStepper,
|
|
52
|
+
T as transactionConfirmDialogShellVariants,
|
|
50
53
|
l as transactionConfirmModalContainerVariants,
|
|
51
54
|
C as transactionConfirmPreviewScrollVariants,
|
|
52
55
|
x as transactionConfirmShellContentVariants,
|
package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js
CHANGED
|
@@ -52,9 +52,11 @@ import "../../../../with-title/with-title.js";
|
|
|
52
52
|
import "../../../../smart-number-input/balance-indicator.js";
|
|
53
53
|
import "../../../../smart-number-input/smart-number-input.js";
|
|
54
54
|
import "../../../credit-account-history/credit-account-history.js";
|
|
55
|
+
import "../../../../simple-dropdown/simple-dropdown.js";
|
|
56
|
+
import "../../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
57
|
+
import "../../../../typography/typography.js";
|
|
55
58
|
import "../../../../table/grid-table.js";
|
|
56
59
|
import "../../../../token-symbol/token-symbol.js";
|
|
57
|
-
import "../../../../typography/typography.js";
|
|
58
60
|
import "../../../../help-tip/help-tip.js";
|
|
59
61
|
import "../../../../description/description.js";
|
|
60
62
|
import "../../../../confirm-menu/confirm-menu.js";
|
|
@@ -141,7 +143,6 @@ import "../../../../navbar/navbar.js";
|
|
|
141
143
|
import "../../../../navbar/navbar-indicator-context.js";
|
|
142
144
|
import "../../../../app-bar/app-bar.js";
|
|
143
145
|
import "../../../../navitem/navitem.js";
|
|
144
|
-
import "../../../../simple-dropdown/simple-dropdown.js";
|
|
145
146
|
import "../../../../progress-bar/progress-bar.js";
|
|
146
147
|
import "../../../../radio-group/radio-group.js";
|
|
147
148
|
import "../../../../search-bar/search-bar.js";
|
|
@@ -149,7 +150,6 @@ import "../../../../segmented-control/segmented-control.js";
|
|
|
149
150
|
import "../../../../select/select.js";
|
|
150
151
|
import "../../../../separator/separator.js";
|
|
151
152
|
import "../../../../simple-accordion/simple-accordion.js";
|
|
152
|
-
import "../../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
153
153
|
import "../../../../slider/slider.js";
|
|
154
154
|
import "../../../../slider/slider-context.js";
|
|
155
155
|
import "@radix-ui/react-slider";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@gearbox-protocol/sdk";
|
|
4
|
+
import { cn as a } from "../../../../../utils/cn.js";
|
|
5
|
+
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
|
+
import "luxon";
|
|
8
|
+
import "../../../../../utils/z-index.js";
|
|
9
|
+
import { ProgressStepperTest as p } from "./constants.js";
|
|
10
|
+
function x({
|
|
11
|
+
status: r
|
|
12
|
+
}) {
|
|
13
|
+
const n = r === "active", e = r === "completed";
|
|
14
|
+
return /* @__PURE__ */ t(
|
|
15
|
+
"span",
|
|
16
|
+
{
|
|
17
|
+
className: a(
|
|
18
|
+
"relative z-10 block size-[9px] shrink-0 rounded-full",
|
|
19
|
+
// Reached steps (done + current) are solid white so the dot matches the
|
|
20
|
+
// white "reached" connector running into it; only upcoming stays hollow.
|
|
21
|
+
(n || e) && "bg-foreground",
|
|
22
|
+
!n && !e && "border border-gray-50 bg-transparent"
|
|
23
|
+
),
|
|
24
|
+
"aria-hidden": !0
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function c(r, n) {
|
|
29
|
+
return a(
|
|
30
|
+
"h-px min-w-0 flex-1",
|
|
31
|
+
r ? "bg-foreground" : n ? "border-t border-dashed border-gray-50" : "bg-gray-50"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
function h(r) {
|
|
35
|
+
return r === "completed" || r === "active";
|
|
36
|
+
}
|
|
37
|
+
function D({
|
|
38
|
+
steps: r,
|
|
39
|
+
className: n
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ t(
|
|
42
|
+
"ol",
|
|
43
|
+
{
|
|
44
|
+
className: a("m-0 flex w-full list-none p-0", n),
|
|
45
|
+
"data-testid": p.root,
|
|
46
|
+
children: r.map((e, o) => {
|
|
47
|
+
const d = o === 0, m = o === r.length - 1, i = e.status === "active", l = r[o + 1], u = h(e.status), f = e.status === "completed" || e.status === "active" && !!l?.connectorMarker;
|
|
48
|
+
return /* @__PURE__ */ s(
|
|
49
|
+
"li",
|
|
50
|
+
{
|
|
51
|
+
className: "flex min-w-0 flex-1 flex-col items-center",
|
|
52
|
+
"aria-current": i ? "step" : void 0,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ s("div", { className: "flex w-full items-center", children: [
|
|
55
|
+
d ? /* @__PURE__ */ t("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */ s("span", { className: "relative flex min-w-0 flex-1 items-center", children: [
|
|
56
|
+
/* @__PURE__ */ t(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
className: c(
|
|
60
|
+
u,
|
|
61
|
+
e.connectorDashed
|
|
62
|
+
),
|
|
63
|
+
"aria-hidden": !0
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
e.connectorMarker ? /* @__PURE__ */ t("span", { className: "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-0 z-10 flex items-center", children: e.connectorMarker }) : null
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ t(x, { status: e.status }),
|
|
69
|
+
m ? /* @__PURE__ */ t("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */ t(
|
|
70
|
+
"span",
|
|
71
|
+
{
|
|
72
|
+
className: c(
|
|
73
|
+
f,
|
|
74
|
+
l?.connectorDashed
|
|
75
|
+
),
|
|
76
|
+
"aria-hidden": !0
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ t(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
className: a(
|
|
84
|
+
"mt-3 max-w-full truncate px-1 text-center text-xs leading-snug",
|
|
85
|
+
i ? "font-medium text-foreground" : "font-normal text-secondary-foreground"
|
|
86
|
+
),
|
|
87
|
+
children: e.label
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
e.id
|
|
93
|
+
);
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
D as ProgressStepper
|
|
100
|
+
};
|