@gearbox-protocol/ui-kit 4.0.0-next.4 → 4.0.0-next.6
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/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -0
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.cjs +1 -1
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -0
- package/dist/cjs/components/base-table/base-table.cjs +1 -0
- package/dist/cjs/components/base-table/constants.cjs +1 -0
- package/dist/cjs/components/base-table/index.cjs +1 -0
- package/dist/cjs/components/base-table/types.cjs +1 -0
- 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/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/constants.cjs +1 -0
- package/dist/cjs/components/composites/pool-assets-table/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/hf-indicator/hf-indicator.cjs +1 -0
- package/dist/cjs/components/hf-indicator/index.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/infinite-scroll/index.cjs +1 -0
- package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
- package/dist/cjs/components/name-cell/index.cjs +1 -0
- package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
- package/dist/cjs/components/network-icon/index.cjs +1 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +1 -0
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/leverage-presets.cjs +1 -0
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +161 -159
- package/dist/esm/components/badge/badge.js +14 -8
- package/dist/esm/components/badge/chip.js +47 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +3 -2
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
- package/dist/esm/components/base/history-chart/history-chart.js +86 -46
- package/dist/esm/components/base/index.js +144 -138
- package/dist/esm/components/base/info-list/info-list.js +7 -8
- package/dist/esm/components/base/leverage-input/leverage-input.js +1 -1
- package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
- package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
- package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +23 -30
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +3 -2
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +194 -32
- package/dist/esm/components/base/title-meta/constants.js +1 -0
- package/dist/esm/components/base/title-meta/title-meta.js +53 -33
- package/dist/esm/components/base/values/index.js +16 -14
- package/dist/esm/components/base/values/position-status-badge.js +26 -0
- package/dist/esm/components/base/values/position-type-badge.js +7 -6
- package/dist/esm/components/base-table/base-table-line.js +117 -0
- package/dist/esm/components/base-table/base-table.js +110 -0
- package/dist/esm/components/base-table/constants.js +12 -0
- package/dist/esm/components/base-table/index.js +9 -0
- package/dist/esm/components/base-table/types.js +1 -0
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +9 -6
- package/dist/esm/components/checkbox/checkbox-labeled.js +7 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +7 -4
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
- package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
- package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
- package/dist/esm/components/composites/index.js +31 -31
- package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
- package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +108 -76
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +109 -52
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +85 -80
- package/dist/esm/components/filter/filter-chip.js +1 -0
- package/dist/esm/components/graph/default-config.js +20 -18
- package/dist/esm/components/graph/graph-view.js +32 -31
- package/dist/esm/components/graph/graph.js +459 -458
- package/dist/esm/components/hf-indicator/hf-indicator.js +33 -0
- package/dist/esm/components/hf-indicator/index.js +4 -0
- package/dist/esm/components/index.js +732 -701
- package/dist/esm/components/infinite-scroll/index.js +4 -0
- package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
- package/dist/esm/components/name-cell/index.js +4 -0
- package/dist/esm/components/name-cell/name-cell.js +35 -0
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +82 -0
- package/dist/esm/components/trading-view/trading-view.js +193 -155
- package/dist/esm/components/with-copy/with-copy.js +7 -4
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +112 -169
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +20 -18
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +881 -842
- package/dist/esm/locale/en.json.js +21 -18
- package/dist/esm/utils/format-money.js +59 -41
- package/dist/esm/utils/index.js +87 -83
- package/dist/esm/utils/leverage-presets.js +13 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -0
- package/dist/types/components/badge/badge.d.ts +2 -1
- package/dist/types/components/badge/chip.d.ts +22 -0
- package/dist/types/components/badge/index.d.ts +1 -0
- package/dist/types/components/base/history-chart/history-chart.d.ts +13 -3
- package/dist/types/components/base/index.d.ts +1 -0
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
- package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
- package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
- package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +4 -5
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +1 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +12 -4
- package/dist/types/components/base/title-meta/constants.d.ts +1 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
- package/dist/types/components/base/values/index.d.ts +1 -0
- package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base-table/base-table-line.d.ts +21 -0
- package/dist/types/components/base-table/base-table.d.ts +19 -0
- package/dist/types/components/base-table/constants.d.ts +8 -0
- package/dist/types/components/base-table/index.d.ts +3 -0
- package/dist/types/components/base-table/types.d.ts +37 -0
- package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
- package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
- package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
- package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
- package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +8 -8
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +7 -20
- package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +97 -0
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/graph/graph.d.ts +4 -0
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +8 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/components/infinite-scroll/index.d.ts +1 -0
- package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
- package/dist/types/components/name-cell/index.d.ts +1 -0
- package/dist/types/components/name-cell/name-cell.d.ts +13 -0
- package/dist/types/components/network-icon/index.d.ts +1 -0
- package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
- package/dist/types/components/trading-view/trading-view.d.ts +10 -3
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +6 -8
- package/dist/types/configs/tailwind-preset.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/locale/en.json.d.ts +23 -18
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/package.json +1 -1
- package/src/styles/base.css +30 -0
- package/src/styles/theme.css +16 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -177
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
|
@@ -1,87 +1,127 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as p, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { StyledDialogContainer as C } from "../../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
3
|
+
import { ConfirmMenu as S } from "../../../../confirm-menu/confirm-menu.js";
|
|
4
|
+
import { ErrorLineMessage as k } from "../../../../error-message/error-line-message.js";
|
|
3
5
|
import "react-intl";
|
|
4
6
|
import "../../../../buttons/button/button.js";
|
|
5
7
|
import "../../../../dialog/dialog-container.js";
|
|
6
8
|
import "react";
|
|
7
9
|
import "@gearbox-protocol/sdk";
|
|
8
|
-
import "
|
|
9
|
-
import "tailwind-merge";
|
|
10
|
+
import { cn as T } from "../../../../../utils/cn.js";
|
|
10
11
|
import "sonner";
|
|
11
12
|
import "@gearbox-protocol/sdk/common-utils";
|
|
12
13
|
import "luxon";
|
|
13
14
|
import "../../../../../utils/z-index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
import { Modal as N } from "../../../../modal/modal.js";
|
|
16
|
+
import { SkeletonStack as P } from "../../../../skeleton/skeleton-stack.js";
|
|
17
|
+
import { VSpace as h } from "../../../../vspace/vspace.js";
|
|
18
|
+
import { ProgressStepper as E } from "../stepper/ProgressStepper.js";
|
|
19
|
+
import { shouldShowTransactionProgressStepper as L } from "../stepper/transactionExecutionStepTypes.js";
|
|
20
|
+
import { computeTransactionConfirmDialogLayout as R } from "./computeTransactionConfirmDialogLayout.js";
|
|
21
|
+
import { TransactionConfirmDialogTest as c, transactionConfirmModalContainerVariants as A, transactionConfirmDialogShellVariants as D, transactionConfirmShellContentVariants as I, transactionConfirmPreviewScrollVariants as V } from "./constants.js";
|
|
22
|
+
const M = "Unable to preview transaction";
|
|
23
|
+
function ne(e) {
|
|
24
|
+
const {
|
|
25
|
+
mode: i,
|
|
26
|
+
phase: d = "confirm",
|
|
27
|
+
onClose: l,
|
|
28
|
+
title: m,
|
|
29
|
+
titleAddon: n,
|
|
30
|
+
hideTitleAddonOnResult: u = !0,
|
|
31
|
+
body: t,
|
|
32
|
+
className: a,
|
|
33
|
+
previewClassName: o,
|
|
34
|
+
"data-testid": s,
|
|
35
|
+
shellTestId: g
|
|
36
|
+
} = e;
|
|
37
|
+
if (e.mode === "dialog" && e.open === !1) return null;
|
|
38
|
+
const f = t.kind === "ready" ? d : "confirm", x = f !== "confirm" && f !== "awaiting_receipt" && u ? void 0 : n, w = /* @__PURE__ */ r(
|
|
39
|
+
C,
|
|
40
|
+
{
|
|
41
|
+
className: T(
|
|
42
|
+
D(),
|
|
43
|
+
i === "dialog" ? A() : null,
|
|
44
|
+
a
|
|
45
|
+
),
|
|
46
|
+
"data-testid": s,
|
|
47
|
+
children: /* @__PURE__ */ r(
|
|
48
|
+
z,
|
|
49
|
+
{
|
|
50
|
+
body: t,
|
|
51
|
+
phase: f,
|
|
52
|
+
previewClassName: o,
|
|
53
|
+
testId: g ?? c.root,
|
|
54
|
+
header: /* @__PURE__ */ r(
|
|
55
|
+
S,
|
|
56
|
+
{
|
|
57
|
+
title: m,
|
|
58
|
+
titleAddon: x,
|
|
59
|
+
onClose: l
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
return i === "page" ? w : /* @__PURE__ */ r(N, { show: !0, onClickOutside: l, zIndexLayer: "MODAL", children: w });
|
|
67
|
+
}
|
|
68
|
+
function z({
|
|
69
|
+
body: e,
|
|
70
|
+
phase: i,
|
|
71
|
+
previewClassName: d,
|
|
72
|
+
testId: l,
|
|
73
|
+
header: m
|
|
34
74
|
}) {
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */
|
|
75
|
+
const n = e.kind === "ready" ? e.stepper : void 0, u = !!(n && L(n.steps)), t = R(i, u), a = e.kind === "ready" ? _(e, i) : void 0, o = e.kind === "ready" ? e.execution : void 0;
|
|
76
|
+
return /* @__PURE__ */ p(
|
|
37
77
|
"div",
|
|
38
78
|
{
|
|
39
|
-
className:
|
|
40
|
-
"data-testid":
|
|
79
|
+
className: I(),
|
|
80
|
+
"data-testid": l,
|
|
41
81
|
children: [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
t.showResult &&
|
|
82
|
+
/* @__PURE__ */ r("div", { className: "shrink-0", children: m }),
|
|
83
|
+
/* @__PURE__ */ r(h, { size: "sm" }),
|
|
84
|
+
t.showResult && a ? /* @__PURE__ */ r(
|
|
45
85
|
"div",
|
|
46
86
|
{
|
|
47
87
|
className: "flex min-h-0 flex-1 flex-col",
|
|
48
|
-
"data-testid":
|
|
49
|
-
children:
|
|
88
|
+
"data-testid": c.result,
|
|
89
|
+
children: a
|
|
50
90
|
}
|
|
51
91
|
) : null,
|
|
52
|
-
t.showResult ? null : /* @__PURE__ */
|
|
53
|
-
t.showPreview ? /* @__PURE__ */
|
|
54
|
-
|
|
92
|
+
t.showResult ? null : /* @__PURE__ */ p("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
93
|
+
t.showPreview ? /* @__PURE__ */ r(
|
|
94
|
+
"div",
|
|
55
95
|
{
|
|
56
|
-
|
|
57
|
-
|
|
96
|
+
className: d ?? V(),
|
|
97
|
+
children: /* @__PURE__ */ r(O, { body: e })
|
|
58
98
|
}
|
|
59
|
-
) :
|
|
60
|
-
t.showPreview && t.showExecution ? /* @__PURE__ */
|
|
61
|
-
t.showExecution ? /* @__PURE__ */
|
|
99
|
+
) : null,
|
|
100
|
+
t.showPreview && t.showExecution && o ? /* @__PURE__ */ r(h, { size: "md" }) : null,
|
|
101
|
+
t.showExecution && o ? /* @__PURE__ */ r(
|
|
62
102
|
"div",
|
|
63
103
|
{
|
|
64
104
|
className: "min-w-0 w-full shrink-0",
|
|
65
|
-
"data-testid":
|
|
66
|
-
children:
|
|
105
|
+
"data-testid": c.execution,
|
|
106
|
+
children: o
|
|
67
107
|
}
|
|
68
108
|
) : null
|
|
69
109
|
] }),
|
|
70
|
-
t.showProgressStepper &&
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
110
|
+
t.showProgressStepper && n ? /* @__PURE__ */ p(v, { children: [
|
|
111
|
+
/* @__PURE__ */ r(h, { size: "md" }),
|
|
112
|
+
/* @__PURE__ */ r(
|
|
73
113
|
"div",
|
|
74
114
|
{
|
|
75
115
|
className: "shrink-0",
|
|
76
|
-
"data-testid":
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
|
|
116
|
+
"data-testid": c.progress,
|
|
117
|
+
children: /* @__PURE__ */ r(
|
|
118
|
+
E,
|
|
79
119
|
{
|
|
80
120
|
tone: "muted",
|
|
81
|
-
steps:
|
|
121
|
+
steps: n.steps.map((s) => ({
|
|
82
122
|
id: s.id,
|
|
83
123
|
status: s.status,
|
|
84
|
-
label: n(s)
|
|
124
|
+
label: n.renderLabel(s)
|
|
85
125
|
}))
|
|
86
126
|
}
|
|
87
127
|
)
|
|
@@ -92,6 +132,23 @@ function Q({
|
|
|
92
132
|
}
|
|
93
133
|
);
|
|
94
134
|
}
|
|
135
|
+
function O({
|
|
136
|
+
body: e
|
|
137
|
+
}) {
|
|
138
|
+
return e.kind === "placeholder" ? /* @__PURE__ */ r(v, { children: e.node }) : e.kind === "error" ? /* @__PURE__ */ r(
|
|
139
|
+
k,
|
|
140
|
+
{
|
|
141
|
+
err: e.error,
|
|
142
|
+
title: e.title ?? M
|
|
143
|
+
}
|
|
144
|
+
) : e.previewLoading ? /* @__PURE__ */ r(P, { lines: 3 }) : /* @__PURE__ */ r(v, { children: e.preview });
|
|
145
|
+
}
|
|
146
|
+
function _(e, i) {
|
|
147
|
+
if (e.result) {
|
|
148
|
+
if (i === "success") return e.result.success;
|
|
149
|
+
if (i === "failure") return e.result.failure;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
95
152
|
export {
|
|
96
|
-
|
|
153
|
+
ne as TransactionConfirmShell
|
|
97
154
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { computeTransactionConfirmDialogLayout as
|
|
2
|
-
import { TransactionConfirmDialogTest as
|
|
3
|
-
import {
|
|
4
|
-
import { TransactionConfirmPageView as C } from "./TransactionConfirmPageView.js";
|
|
1
|
+
import { computeTransactionConfirmDialogLayout as a } from "./computeTransactionConfirmDialogLayout.js";
|
|
2
|
+
import { TransactionConfirmDialogTest as t, transactionConfirmDialogShellVariants as i, transactionConfirmModalContainerVariants as e, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as s } from "./constants.js";
|
|
3
|
+
import { TransactionConfirmShell as f } from "./TransactionConfirmShell.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t as transactionConfirmDialogShellVariants,
|
|
5
|
+
t as TransactionConfirmDialogTest,
|
|
6
|
+
f as TransactionConfirmShell,
|
|
7
|
+
a as computeTransactionConfirmDialogLayout,
|
|
8
|
+
i as transactionConfirmDialogShellVariants,
|
|
11
9
|
e as transactionConfirmModalContainerVariants,
|
|
12
|
-
|
|
10
|
+
l as transactionConfirmPreviewScrollVariants,
|
|
13
11
|
s as transactionConfirmShellContentVariants
|
|
14
12
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,40 +1,38 @@
|
|
|
1
1
|
import { TransactionConfirmAmountFieldTest as n, TransactionConfirmAmountPairTest as t } from "./amounts/constants.js";
|
|
2
2
|
import { TransactionConfirmAmountField as e } from "./amounts/TransactionConfirmAmountField.js";
|
|
3
3
|
import { computeTransactionConfirmDialogLayout as s } from "./dialog/computeTransactionConfirmDialogLayout.js";
|
|
4
|
-
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { shouldShowTransactionProgressStepper as k } from "./stepper/transactionExecutionStepTypes.js";
|
|
4
|
+
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as p } from "./dialog/constants.js";
|
|
5
|
+
import { TransactionConfirmShell as u } from "./dialog/TransactionConfirmShell.js";
|
|
6
|
+
import { TransactionConfirmExecuteButton as S } from "./execution/TransactionConfirmExecuteButton.js";
|
|
7
|
+
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as R, TransactionConfirmSuccessResultTest as P, TransactionConfirmTxHashRowTest as d } from "./result/constants.js";
|
|
8
|
+
import { TransactionConfirmFailureResult as F } from "./result/TransactionConfirmFailureResult.js";
|
|
9
|
+
import { TransactionConfirmSuccessIcon as A } from "./result/TransactionConfirmSuccessIcon.js";
|
|
10
|
+
import { TransactionConfirmSuccessResult as B } from "./result/TransactionConfirmSuccessResult.js";
|
|
11
|
+
import { TransactionConfirmTxHashRow as H } from "./result/TransactionConfirmTxHashRow.js";
|
|
12
|
+
import { ProgressStepperTest as y } from "./stepper/constants.js";
|
|
13
|
+
import { ProgressStepper as L } from "./stepper/ProgressStepper.js";
|
|
14
|
+
import { shouldShowTransactionProgressStepper as b } from "./stepper/transactionExecutionStepTypes.js";
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
L as ProgressStepper,
|
|
17
|
+
y as ProgressStepperTest,
|
|
19
18
|
e as TransactionConfirmAmountField,
|
|
20
19
|
n as TransactionConfirmAmountFieldTest,
|
|
21
20
|
t as TransactionConfirmAmountPairTest,
|
|
22
21
|
f as TransactionConfirmDialogTest,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
S as TransactionConfirmExecuteButton,
|
|
23
|
+
g as TransactionConfirmExecuteButtonTest,
|
|
24
|
+
F as TransactionConfirmFailureResult,
|
|
26
25
|
R as TransactionConfirmFailureResultTest,
|
|
27
|
-
u as
|
|
28
|
-
|
|
29
|
-
B as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
v as TransactionConfirmTxHashRow,
|
|
26
|
+
u as TransactionConfirmShell,
|
|
27
|
+
A as TransactionConfirmSuccessIcon,
|
|
28
|
+
B as TransactionConfirmSuccessResult,
|
|
29
|
+
P as TransactionConfirmSuccessResultTest,
|
|
30
|
+
H as TransactionConfirmTxHashRow,
|
|
33
31
|
d as TransactionConfirmTxHashRowTest,
|
|
34
32
|
s as computeTransactionConfirmDialogLayout,
|
|
35
|
-
|
|
33
|
+
b as shouldShowTransactionProgressStepper,
|
|
36
34
|
c as transactionConfirmDialogShellVariants,
|
|
37
35
|
T as transactionConfirmModalContainerVariants,
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
l as transactionConfirmPreviewScrollVariants,
|
|
37
|
+
p as transactionConfirmShellContentVariants
|
|
40
38
|
};
|
|
@@ -1,40 +1,38 @@
|
|
|
1
1
|
import { TransactionConfirmAmountFieldTest as n, TransactionConfirmAmountPairTest as t } from "./confirm/amounts/constants.js";
|
|
2
2
|
import { TransactionConfirmAmountField as e } from "./confirm/amounts/TransactionConfirmAmountField.js";
|
|
3
3
|
import { computeTransactionConfirmDialogLayout as s } from "./confirm/dialog/computeTransactionConfirmDialogLayout.js";
|
|
4
|
-
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { shouldShowTransactionProgressStepper as k } from "./confirm/stepper/transactionExecutionStepTypes.js";
|
|
4
|
+
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as p } from "./confirm/dialog/constants.js";
|
|
5
|
+
import { TransactionConfirmShell as u } from "./confirm/dialog/TransactionConfirmShell.js";
|
|
6
|
+
import { TransactionConfirmExecuteButton as S } from "./confirm/execution/TransactionConfirmExecuteButton.js";
|
|
7
|
+
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as R, TransactionConfirmSuccessResultTest as P, TransactionConfirmTxHashRowTest as d } from "./confirm/result/constants.js";
|
|
8
|
+
import { TransactionConfirmFailureResult as F } from "./confirm/result/TransactionConfirmFailureResult.js";
|
|
9
|
+
import { TransactionConfirmSuccessIcon as A } from "./confirm/result/TransactionConfirmSuccessIcon.js";
|
|
10
|
+
import { TransactionConfirmSuccessResult as B } from "./confirm/result/TransactionConfirmSuccessResult.js";
|
|
11
|
+
import { TransactionConfirmTxHashRow as H } from "./confirm/result/TransactionConfirmTxHashRow.js";
|
|
12
|
+
import { ProgressStepperTest as y } from "./confirm/stepper/constants.js";
|
|
13
|
+
import { ProgressStepper as L } from "./confirm/stepper/ProgressStepper.js";
|
|
14
|
+
import { shouldShowTransactionProgressStepper as b } from "./confirm/stepper/transactionExecutionStepTypes.js";
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
L as ProgressStepper,
|
|
17
|
+
y as ProgressStepperTest,
|
|
19
18
|
e as TransactionConfirmAmountField,
|
|
20
19
|
n as TransactionConfirmAmountFieldTest,
|
|
21
20
|
t as TransactionConfirmAmountPairTest,
|
|
22
21
|
f as TransactionConfirmDialogTest,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
S as TransactionConfirmExecuteButton,
|
|
23
|
+
g as TransactionConfirmExecuteButtonTest,
|
|
24
|
+
F as TransactionConfirmFailureResult,
|
|
26
25
|
R as TransactionConfirmFailureResultTest,
|
|
27
|
-
u as
|
|
28
|
-
|
|
29
|
-
B as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
v as TransactionConfirmTxHashRow,
|
|
26
|
+
u as TransactionConfirmShell,
|
|
27
|
+
A as TransactionConfirmSuccessIcon,
|
|
28
|
+
B as TransactionConfirmSuccessResult,
|
|
29
|
+
P as TransactionConfirmSuccessResultTest,
|
|
30
|
+
H as TransactionConfirmTxHashRow,
|
|
33
31
|
d as TransactionConfirmTxHashRowTest,
|
|
34
32
|
s as computeTransactionConfirmDialogLayout,
|
|
35
|
-
|
|
33
|
+
b as shouldShowTransactionProgressStepper,
|
|
36
34
|
c as transactionConfirmDialogShellVariants,
|
|
37
35
|
T as transactionConfirmModalContainerVariants,
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
l as transactionConfirmPreviewScrollVariants,
|
|
37
|
+
p as transactionConfirmShellContentVariants
|
|
40
38
|
};
|
|
@@ -1,95 +1,100 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { TokenIcon as Y } from "../token-icon/token-icon.js";
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useId as g } from "react";
|
|
4
3
|
import { YieldBreakdownTooltip as w } from "../yield-breakdown-tooltip/yield-breakdown-tooltip.js";
|
|
5
|
-
import "
|
|
6
|
-
import { positiveTokenRewardsOf as z, pointProgramsOf as I, totalApyOf as L } from "../../utils/apy-breakdown.js";
|
|
4
|
+
import { totalApyOf as x, positiveTokenRewardsOf as v, pointProgramsOf as C } from "../../utils/apy-breakdown.js";
|
|
7
5
|
import "@gearbox-protocol/sdk";
|
|
8
|
-
import { bpsToPercent as
|
|
9
|
-
import { cn as
|
|
6
|
+
import { bpsToPercent as I } from "../../utils/bps.js";
|
|
7
|
+
import { cn as k } from "../../utils/cn.js";
|
|
10
8
|
import "sonner";
|
|
11
|
-
import {
|
|
9
|
+
import { formatCompactPercent as P } from "../../utils/format-money.js";
|
|
12
10
|
import "@gearbox-protocol/sdk/common-utils";
|
|
13
11
|
import "luxon";
|
|
14
12
|
import "../../utils/z-index.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
const l = 14;
|
|
14
|
+
function A() {
|
|
15
|
+
const t = `additional-incentives-${g().replace(/:/g, "")}`;
|
|
16
|
+
return /* @__PURE__ */ n(
|
|
17
|
+
"svg",
|
|
18
|
+
{
|
|
19
|
+
width: l,
|
|
20
|
+
height: l,
|
|
21
|
+
viewBox: "0 0 14 14",
|
|
22
|
+
fill: "none",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
className: "size-3.5 shrink-0 overflow-clip",
|
|
25
|
+
role: "img",
|
|
26
|
+
"aria-label": "Incentives",
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ e("title", { children: "Incentives" }),
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
d: "M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14Z",
|
|
33
|
+
fill: `url(#${t})`
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ e(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
d: "M7 3.75V10.25M3.75 7H10.25",
|
|
40
|
+
stroke: "white",
|
|
41
|
+
strokeWidth: "1.5",
|
|
42
|
+
strokeLinecap: "round"
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ n(
|
|
46
|
+
"linearGradient",
|
|
47
|
+
{
|
|
48
|
+
id: t,
|
|
49
|
+
x1: "0",
|
|
50
|
+
y1: "7",
|
|
51
|
+
x2: "14",
|
|
52
|
+
y2: "7",
|
|
53
|
+
gradientUnits: "userSpaceOnUse",
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ e("stop", { stopColor: "#FF2D8D" }),
|
|
56
|
+
/* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FF6C20" })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
function c(t) {
|
|
65
|
+
return t == null ? !1 : v(t).length > 0 || C(t).length > 0;
|
|
66
|
+
}
|
|
67
|
+
function E({
|
|
68
|
+
apy: t,
|
|
69
|
+
maxLeverage: p,
|
|
70
|
+
collateralApy: r,
|
|
71
|
+
borrowApy: d,
|
|
72
|
+
additionalBorrowApy: a,
|
|
73
|
+
decimals: m = 2,
|
|
74
|
+
className: o
|
|
23
75
|
}) {
|
|
24
|
-
if (!
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
const i =
|
|
27
|
-
const
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
31
|
-
i.map((t, r) => {
|
|
32
|
-
const s = r === o - 1;
|
|
33
|
-
return /* @__PURE__ */ n(
|
|
34
|
-
"span",
|
|
35
|
-
{
|
|
36
|
-
style: {
|
|
37
|
-
zIndex: o - r,
|
|
38
|
-
marginRight: s ? 0 : -7
|
|
39
|
-
},
|
|
40
|
-
children: /* @__PURE__ */ n(
|
|
41
|
-
Y,
|
|
42
|
-
{
|
|
43
|
-
token: t.token,
|
|
44
|
-
size: 14,
|
|
45
|
-
style: {
|
|
46
|
-
margin: t.token.symbol === "GEAR" ? "-3px 0 0 0" : "0"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
},
|
|
51
|
-
`extra-${t.token.address}-${t.supplyApr ?? 0}`
|
|
52
|
-
);
|
|
53
|
-
}),
|
|
54
|
-
m.map((t, r) => {
|
|
55
|
-
const s = r + c, T = s === o - 1;
|
|
56
|
-
return /* @__PURE__ */ n(
|
|
57
|
-
"span",
|
|
58
|
-
{
|
|
59
|
-
style: {
|
|
60
|
-
zIndex: o - s,
|
|
61
|
-
marginRight: T ? 0 : -7
|
|
62
|
-
},
|
|
63
|
-
children: /* @__PURE__ */ n(
|
|
64
|
-
R,
|
|
65
|
-
{
|
|
66
|
-
reward: {
|
|
67
|
-
name: t.name,
|
|
68
|
-
type: t.id
|
|
69
|
-
},
|
|
70
|
-
size: 14
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
},
|
|
74
|
-
`points-${t.id}`
|
|
75
|
-
);
|
|
76
|
-
})
|
|
77
|
-
] })
|
|
76
|
+
if (!t)
|
|
77
|
+
return /* @__PURE__ */ e("span", { className: "text-secondary-foreground", children: "—" });
|
|
78
|
+
const i = x(t), f = c(t) || c(r), h = i >= 1, s = () => {
|
|
79
|
+
const u = P(I(i), m);
|
|
80
|
+
return /* @__PURE__ */ n("div", { className: k("inline-flex items-center gap-1.5", o), children: [
|
|
81
|
+
/* @__PURE__ */ e("span", { className: "inline-flex items-center", children: u }),
|
|
82
|
+
f ? /* @__PURE__ */ e(A, {}) : null
|
|
78
83
|
] });
|
|
79
84
|
};
|
|
80
|
-
return
|
|
85
|
+
return h ? /* @__PURE__ */ e(
|
|
81
86
|
w,
|
|
82
87
|
{
|
|
83
|
-
supplyApy:
|
|
84
|
-
maxLeverage:
|
|
85
|
-
collateralApy:
|
|
86
|
-
borrowApy:
|
|
87
|
-
additionalBorrowApy:
|
|
88
|
-
className:
|
|
89
|
-
children:
|
|
88
|
+
supplyApy: t,
|
|
89
|
+
maxLeverage: p,
|
|
90
|
+
collateralApy: r,
|
|
91
|
+
borrowApy: d,
|
|
92
|
+
additionalBorrowApy: a,
|
|
93
|
+
className: o,
|
|
94
|
+
children: s()
|
|
90
95
|
}
|
|
91
|
-
) :
|
|
96
|
+
) : s();
|
|
92
97
|
}
|
|
93
98
|
export {
|
|
94
|
-
|
|
99
|
+
E as CompoundAPY
|
|
95
100
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { Badge as s } from "../badge/badge.js";
|
|
4
|
+
import "../badge/chip.js";
|
|
4
5
|
import { faXmark as f } from "@fortawesome/free-solid-svg-icons";
|
|
5
6
|
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
6
7
|
import "@gearbox-protocol/sdk";
|
|
@@ -4,17 +4,17 @@ const e = {
|
|
|
4
4
|
bottomColor: "rgba(76, 175, 80, 0.04)",
|
|
5
5
|
lineColor: "#02c39a",
|
|
6
6
|
lineWidth: 2
|
|
7
|
-
},
|
|
7
|
+
}, s = {
|
|
8
8
|
showLabel: !0,
|
|
9
9
|
color: "#02c39a",
|
|
10
10
|
labelBackgroundColor: "#02c39a",
|
|
11
11
|
width: 2
|
|
12
|
-
};
|
|
13
|
-
function
|
|
12
|
+
}, l = 'Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', t = 14;
|
|
13
|
+
function b() {
|
|
14
14
|
const r = o(
|
|
15
|
-
"hsl(var(--foreground))",
|
|
16
|
-
"rgb(
|
|
17
|
-
);
|
|
15
|
+
"hsl(var(--muted-foreground))",
|
|
16
|
+
"rgb(163, 163, 163)"
|
|
17
|
+
), i = o("hsl(var(--card))", "rgb(24, 24, 24)");
|
|
18
18
|
return {
|
|
19
19
|
timeScale: {
|
|
20
20
|
borderVisible: !0,
|
|
@@ -37,10 +37,11 @@ function t() {
|
|
|
37
37
|
},
|
|
38
38
|
layout: {
|
|
39
39
|
background: {
|
|
40
|
-
color:
|
|
40
|
+
color: i
|
|
41
41
|
},
|
|
42
42
|
textColor: r,
|
|
43
|
-
fontSize:
|
|
43
|
+
fontSize: t,
|
|
44
|
+
fontFamily: l
|
|
44
45
|
},
|
|
45
46
|
crosshair: {
|
|
46
47
|
horzLine: {
|
|
@@ -66,7 +67,7 @@ function t() {
|
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function n() {
|
|
70
71
|
return {
|
|
71
72
|
topColor: "rgba(76, 175, 80, 0.56)",
|
|
72
73
|
bottomColor: "rgba(76, 175, 80, 0.04)",
|
|
@@ -74,7 +75,7 @@ function a() {
|
|
|
74
75
|
lineWidth: 2
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function c() {
|
|
78
79
|
return {
|
|
79
80
|
showLabel: !0,
|
|
80
81
|
color: e.lineColor,
|
|
@@ -82,7 +83,7 @@ function s() {
|
|
|
82
83
|
width: 2
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
+
const u = {
|
|
86
87
|
timeScale: {
|
|
87
88
|
borderVisible: !0,
|
|
88
89
|
borderColor: "rgba(224, 227, 235, 0.1)",
|
|
@@ -102,8 +103,9 @@ const b = {
|
|
|
102
103
|
background: {
|
|
103
104
|
color: "transparent"
|
|
104
105
|
},
|
|
105
|
-
textColor: "rgb(
|
|
106
|
-
fontSize:
|
|
106
|
+
textColor: "rgb(163, 163, 163)",
|
|
107
|
+
fontSize: t,
|
|
108
|
+
fontFamily: l
|
|
107
109
|
},
|
|
108
110
|
crosshair: {
|
|
109
111
|
horzLine: {
|
|
@@ -130,9 +132,9 @@ const b = {
|
|
|
130
132
|
};
|
|
131
133
|
export {
|
|
132
134
|
e as DEFAULT_AREA_SERIES,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
u as DEFAULT_OPTIONS,
|
|
136
|
+
s as DEFAULT_VERTICAL_LINE,
|
|
137
|
+
b as getDefaultOptions,
|
|
138
|
+
n as getDefaultSeries,
|
|
139
|
+
c as getDefaultVerticalLine
|
|
138
140
|
};
|