@gearbox-protocol/ui-kit 3.14.0-next.61 → 3.14.0-next.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +1 -1
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +30 -29
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +5 -5
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +7 -6
- package/package.json +1 -1
package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),d=require("../../../../client-adapters/styled-dialog-container/styled-dialog-container.cjs"),_=require("../../../../confirm-menu/confirm-menu.cjs");require("react");require("@gearbox-protocol/sdk");const f=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const i=require("./constants.cjs"),g=require("./TransactionConfirmShell.cjs");function q({onClose:r,title:o,titleAddon:t,hideTitleAddonOnResult:s=!0,containerClassName:a,containerTestId:c,shellTestId:l,phase:e="confirm",...u}){const m=e!=="confirm"&&e!=="awaiting_receipt"&&s?void 0:t;return n.jsx(d.StyledDialogContainer,{className:f.cn(i.transactionConfirmDialogShellVariants(),a),"data-testid":c,children:n.jsx(g.TransactionConfirmShell,{...u,header:n.jsx(_.ConfirmMenu,{title:o,titleAddon:m,onClose:r}),"data-testid":l??i.TransactionConfirmDialogTest.root,phase:e})})}exports.TransactionConfirmPageView=q;
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { StyledDialogContainer as
|
|
3
|
-
import { ConfirmMenu as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { StyledDialogContainer as c } from "../../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
3
|
+
import { ConfirmMenu as p } from "../../../../confirm-menu/confirm-menu.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as s } from "../../../../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
8
|
import "@gearbox-protocol/sdk/common-utils";
|
|
9
9
|
import "luxon";
|
|
10
10
|
import "../../../../../utils/z-index.js";
|
|
11
|
-
import { TransactionConfirmDialogTest as
|
|
12
|
-
import { TransactionConfirmShell as
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
import { TransactionConfirmDialogTest as C, transactionConfirmDialogShellVariants as g } from "./constants.js";
|
|
12
|
+
import { TransactionConfirmShell as T } from "./TransactionConfirmShell.js";
|
|
13
|
+
function N({
|
|
14
|
+
onClose: i,
|
|
15
|
+
title: t,
|
|
16
|
+
titleAddon: n,
|
|
17
|
+
hideTitleAddonOnResult: m = !0,
|
|
18
|
+
containerClassName: a,
|
|
19
|
+
containerTestId: e,
|
|
20
|
+
shellTestId: f,
|
|
20
21
|
phase: o = "confirm",
|
|
21
22
|
...d
|
|
22
23
|
}) {
|
|
23
|
-
const
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
const l = o !== "confirm" && o !== "awaiting_receipt" && m ? void 0 : n;
|
|
25
|
+
return /* @__PURE__ */ r(
|
|
26
|
+
c,
|
|
26
27
|
{
|
|
27
|
-
className:
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
className: s(
|
|
29
|
+
g(),
|
|
30
|
+
a
|
|
30
31
|
),
|
|
31
|
-
"data-testid":
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
-
|
|
32
|
+
"data-testid": e,
|
|
33
|
+
children: /* @__PURE__ */ r(
|
|
34
|
+
T,
|
|
34
35
|
{
|
|
35
36
|
...d,
|
|
36
|
-
header: /* @__PURE__ */
|
|
37
|
-
|
|
37
|
+
header: /* @__PURE__ */ r(
|
|
38
|
+
p,
|
|
38
39
|
{
|
|
39
|
-
title:
|
|
40
|
-
titleAddon:
|
|
41
|
-
onClose:
|
|
40
|
+
title: t,
|
|
41
|
+
titleAddon: l,
|
|
42
|
+
onClose: i
|
|
42
43
|
}
|
|
43
44
|
),
|
|
44
|
-
"data-testid":
|
|
45
|
+
"data-testid": f ?? C.root,
|
|
45
46
|
phase: o
|
|
46
47
|
}
|
|
47
48
|
)
|
|
@@ -49,5 +50,5 @@ function M({
|
|
|
49
50
|
);
|
|
50
51
|
}
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
N as TransactionConfirmPageView
|
|
53
54
|
};
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ export interface TransactionConfirmModalViewProps extends Omit<TransactionConfir
|
|
|
4
4
|
readonly open: boolean;
|
|
5
5
|
readonly onClose: () => void;
|
|
6
6
|
readonly title: React.ReactNode;
|
|
7
|
-
readonly titleAddon
|
|
8
|
-
readonly hideTitleAddonOnResult
|
|
9
|
-
readonly containerClassName
|
|
10
|
-
readonly containerTestId
|
|
11
|
-
readonly shellTestId
|
|
7
|
+
readonly titleAddon?: React.ReactNode | undefined;
|
|
8
|
+
readonly hideTitleAddonOnResult?: boolean | undefined;
|
|
9
|
+
readonly containerClassName?: string | undefined;
|
|
10
|
+
readonly containerTestId?: string | undefined;
|
|
11
|
+
readonly shellTestId?: string | undefined;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
*
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TransactionConfirmShellProps } from './TransactionConfirmShell';
|
|
3
3
|
export interface TransactionConfirmPageViewProps extends Omit<TransactionConfirmShellProps, "header" | "data-testid"> {
|
|
4
|
+
readonly onClose?: () => void;
|
|
4
5
|
readonly title: React.ReactNode;
|
|
5
|
-
readonly titleAddon
|
|
6
|
-
readonly hideTitleAddonOnResult
|
|
7
|
-
readonly containerClassName
|
|
8
|
-
readonly containerTestId
|
|
9
|
-
readonly shellTestId
|
|
6
|
+
readonly titleAddon?: React.ReactNode | undefined;
|
|
7
|
+
readonly hideTitleAddonOnResult?: boolean | undefined;
|
|
8
|
+
readonly containerClassName?: string | undefined;
|
|
9
|
+
readonly containerTestId?: string | undefined;
|
|
10
|
+
readonly shellTestId?: string | undefined;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
13
14
|
* Base shell in modal
|
|
14
15
|
*/
|
|
15
|
-
export declare function TransactionConfirmPageView({ title, titleAddon, hideTitleAddonOnResult, containerClassName, containerTestId, shellTestId, phase, ...rest }: TransactionConfirmPageViewProps): React.ReactElement;
|
|
16
|
+
export declare function TransactionConfirmPageView({ onClose, title, titleAddon, hideTitleAddonOnResult, containerClassName, containerTestId, shellTestId, phase, ...rest }: TransactionConfirmPageViewProps): React.ReactElement;
|