@gearbox-protocol/ui-kit 3.14.0-next.63 → 3.14.0-next.65
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/result/TransactionConfirmSuccessResult.cjs +1 -1
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js +13 -12
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../../../vspace/vspace.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../../../vspace/vspace.cjs"),m=require("../../../../../hooks/use-media-query.cjs"),t=require("./constants.cjs"),x=require("./TransactionConfirmSuccessIcon.cjs");function h({icon:a=e.jsx(x.TransactionConfirmSuccessIcon,{}),headline:r,subtitle:l,txHashRow:c,footerAction:i}){const n=m.useIsMobile(),u=n?20:32,d=n?12:16,o=n?24:32;return e.jsxs("div",{className:"flex w-full flex-col items-center text-center","data-testid":t.TransactionConfirmSuccessResultTest.root,children:[e.jsx(s.VSpace,{height:u}),a,e.jsx(s.VSpace,{height:24}),e.jsx("div",{className:"text-xl font-medium leading-tight md:text-2xl","data-testid":t.TransactionConfirmSuccessResultTest.headline,children:r}),e.jsx(s.VSpace,{height:d}),e.jsx("div",{className:"text-sm text-secondary-foreground","data-testid":t.TransactionConfirmSuccessResultTest.subtitle,children:l}),c?e.jsxs(e.Fragment,{children:[e.jsx(s.VSpace,{height:o}),e.jsx("div",{className:"w-full text-center",children:c})]}):null,i?e.jsxs(e.Fragment,{children:[e.jsx(s.VSpace,{height:o}),e.jsx("div",{className:"w-full","data-testid":t.TransactionConfirmSuccessResultTest.footer,children:i})]}):null]})}exports.TransactionConfirmSuccessResult=h;
|
package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as r } from "react/jsx-runtime";
|
|
2
2
|
import { VSpace as t } from "../../../../vspace/vspace.js";
|
|
3
|
-
import { useIsMobile as
|
|
3
|
+
import { useIsMobile as f } from "../../../../../hooks/use-media-query.js";
|
|
4
4
|
import { TransactionConfirmSuccessResultTest as i } from "./constants.js";
|
|
5
|
-
import { TransactionConfirmSuccessIcon as
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { TransactionConfirmSuccessIcon as x } from "./TransactionConfirmSuccessIcon.js";
|
|
6
|
+
function N({
|
|
7
|
+
icon: o = /* @__PURE__ */ e(x, {}),
|
|
8
|
+
headline: d,
|
|
9
|
+
subtitle: m,
|
|
9
10
|
txHashRow: n,
|
|
10
11
|
footerAction: a
|
|
11
12
|
}) {
|
|
12
|
-
const s =
|
|
13
|
+
const s = f(), h = s ? 20 : 32, u = s ? 12 : 16, c = s ? 24 : 32;
|
|
13
14
|
return /* @__PURE__ */ l(
|
|
14
15
|
"div",
|
|
15
16
|
{
|
|
16
17
|
className: "flex w-full flex-col items-center text-center",
|
|
17
18
|
"data-testid": i.root,
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */ e(t, { height:
|
|
20
|
-
|
|
20
|
+
/* @__PURE__ */ e(t, { height: h }),
|
|
21
|
+
o,
|
|
21
22
|
/* @__PURE__ */ e(t, { height: 24 }),
|
|
22
23
|
/* @__PURE__ */ e(
|
|
23
24
|
"div",
|
|
24
25
|
{
|
|
25
26
|
className: "text-xl font-medium leading-tight md:text-2xl",
|
|
26
27
|
"data-testid": i.headline,
|
|
27
|
-
children:
|
|
28
|
+
children: d
|
|
28
29
|
}
|
|
29
30
|
),
|
|
30
|
-
/* @__PURE__ */ e(t, { height:
|
|
31
|
+
/* @__PURE__ */ e(t, { height: u }),
|
|
31
32
|
/* @__PURE__ */ e(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
35
|
className: "text-sm text-secondary-foreground",
|
|
35
36
|
"data-testid": i.subtitle,
|
|
36
|
-
children:
|
|
37
|
+
children: m
|
|
37
38
|
}
|
|
38
39
|
),
|
|
39
40
|
n ? /* @__PURE__ */ l(r, { children: [
|
|
@@ -56,5 +57,5 @@ function v({
|
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
N as TransactionConfirmSuccessResult
|
|
60
61
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface TransactionConfirmSuccessResultProps {
|
|
3
|
+
readonly icon?: React.ReactNode;
|
|
3
4
|
readonly headline: React.ReactNode;
|
|
4
5
|
readonly subtitle: React.ReactNode;
|
|
5
6
|
readonly txHashRow?: React.ReactNode;
|
|
6
7
|
readonly footerAction?: React.ReactNode;
|
|
7
8
|
}
|
|
8
|
-
export declare function TransactionConfirmSuccessResult({ headline, subtitle, txHashRow, footerAction, }: TransactionConfirmSuccessResultProps): React.ReactElement;
|
|
9
|
+
export declare function TransactionConfirmSuccessResult({ icon, headline, subtitle, txHashRow, footerAction, }: TransactionConfirmSuccessResultProps): React.ReactElement;
|