@gearbox-protocol/ui-kit 3.14.0-next.65 → 3.14.0-next.66

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("../../../../error-message/error-line-message.cjs");require("react-intl");require("../../../../buttons/button/button.cjs");require("../../../../dialog/dialog-container.cjs");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const v=require("../../../../skeleton/skeleton-stack.cjs"),a=require("../../../../vspace/vspace.cjs"),w=require("../stepper/ProgressStepper.cjs"),j=require("../stepper/transactionExecutionStepTypes.cjs"),T=require("./computeTransactionConfirmDialogLayout.cjs"),i=require("./constants.cjs");function S({phase:u="confirm",header:t,preview:m,previewLoading:h=!1,previewError:c,previewErrorTitle:d="Unable to preview transaction",previewClassName:p=i.transactionConfirmPreviewScrollVariants(),execution:x,progressSteps:n,renderProgressStepLabel:o,result:l,className:_,"data-testid":f=i.TransactionConfirmDialogTest.root}){const q=!!(n&&o&&j.shouldShowTransactionProgressStepper(n)),s=T.computeTransactionConfirmDialogLayout(u,q);return e.jsxs("div",{className:i.transactionConfirmShellContentVariants({className:_}),"data-testid":f,children:[t?e.jsx("div",{className:"shrink-0",children:t}):null,t?e.jsx(a.VSpace,{height:16}):null,s.showResult&&l?e.jsx("div",{className:"min-h-0","data-testid":i.TransactionConfirmDialogTest.result,children:l}):null,s.showResult?null:e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.showPreview?e.jsx("div",{className:p,children:h?e.jsx(v.SkeletonStack,{lines:3}):c?e.jsx(g.ErrorLineMessage,{err:c,title:d}):m}):null,s.showPreview&&s.showExecution?e.jsx(a.VSpace,{height:24}):null,s.showExecution?e.jsx("div",{className:"min-w-0 w-full shrink-0","data-testid":i.TransactionConfirmDialogTest.execution,children:x}):null]}),s.showProgressStepper&&n&&o?e.jsxs(e.Fragment,{children:[e.jsx(a.VSpace,{height:24}),e.jsx("div",{className:"shrink-0","data-testid":i.TransactionConfirmDialogTest.progress,children:e.jsx(w.ProgressStepper,{tone:"muted",steps:n.map(r=>({id:r.id,status:r.status,label:o(r)}))})})]}):null]})}exports.TransactionConfirmShell=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("../../../../error-message/error-line-message.cjs");require("react-intl");require("../../../../buttons/button/button.cjs");require("../../../../dialog/dialog-container.cjs");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const v=require("../../../../skeleton/skeleton-stack.cjs"),a=require("../../../../vspace/vspace.cjs"),w=require("../stepper/ProgressStepper.cjs"),j=require("../stepper/transactionExecutionStepTypes.cjs"),T=require("./computeTransactionConfirmDialogLayout.cjs"),i=require("./constants.cjs");function S({phase:u="confirm",header:o,preview:m,previewLoading:h=!1,previewError:c,previewErrorTitle:d="Unable to preview transaction",previewClassName:x=i.transactionConfirmPreviewScrollVariants(),execution:p,progressSteps:n,renderProgressStepLabel:t,result:l,className:_,"data-testid":f=i.TransactionConfirmDialogTest.root}){const q=!!(n&&t&&j.shouldShowTransactionProgressStepper(n)),s=T.computeTransactionConfirmDialogLayout(u,q);return e.jsxs("div",{className:i.transactionConfirmShellContentVariants({className:_}),"data-testid":f,children:[o?e.jsx("div",{className:"shrink-0",children:o}):null,o?e.jsx(a.VSpace,{height:16}):null,s.showResult&&l?e.jsx("div",{className:"flex min-h-0 flex-1 flex-col","data-testid":i.TransactionConfirmDialogTest.result,children:l}):null,s.showResult?null:e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.showPreview?e.jsx("div",{className:x,children:h?e.jsx(v.SkeletonStack,{lines:3}):c?e.jsx(g.ErrorLineMessage,{err:c,title:d}):m}):null,s.showPreview&&s.showExecution?e.jsx(a.VSpace,{height:24}):null,s.showExecution?e.jsx("div",{className:"min-w-0 w-full shrink-0","data-testid":i.TransactionConfirmDialogTest.execution,children:p}):null]}),s.showProgressStepper&&n&&t?e.jsxs(e.Fragment,{children:[e.jsx(a.VSpace,{height:24}),e.jsx("div",{className:"shrink-0","data-testid":i.TransactionConfirmDialogTest.progress,children:e.jsx(w.ProgressStepper,{tone:"muted",steps:n.map(r=>({id:r.id,status:r.status,label:t(r)}))})})]}):null]})}exports.TransactionConfirmShell=S;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@fortawesome/free-solid-svg-icons"),o=require("../../../../icons/fa-icon.cjs"),s=require("../../../../vspace/vspace.cjs"),n=require("./constants.cjs");function d({title:c,description:a,footerAction:r,iconSize:t=48}){const i=t+32;return e.jsxs("div",{className:"flex w-full flex-col items-center text-center","data-testid":n.TransactionConfirmFailureResultTest.root,children:[e.jsx("div",{className:"flex items-center justify-center rounded-full border-2 border-destructive bg-destructive/10",style:{width:i,height:i},children:e.jsx(o.FaIcon,{icon:l.faXmark,className:"text-destructive",style:{width:t,height:t}})}),e.jsx(s.VSpace,{height:24}),e.jsx("div",{className:"text-xl font-medium leading-tight md:text-2xl",children:c}),e.jsx(s.VSpace,{height:12}),e.jsx("div",{className:"text-sm text-secondary-foreground",children:a}),r?e.jsxs(e.Fragment,{children:[e.jsx(s.VSpace,{height:24}),e.jsx("div",{className:"w-full","data-testid":n.TransactionConfirmFailureResultTest.footer,children:r})]}):null]})}exports.TransactionConfirmFailureResult=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@fortawesome/free-solid-svg-icons"),a=require("../../../../icons/fa-icon.cjs"),s=require("../../../../vspace/vspace.cjs"),n=require("./constants.cjs");function d({title:l,description:c,footerAction:i,iconSize:t=48}){const r=t+32;return e.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col","data-testid":n.TransactionConfirmFailureResultTest.root,children:[e.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col items-center overflow-x-hidden overflow-y-auto text-center",children:[e.jsx("div",{className:"flex items-center justify-center rounded-full border-2 border-destructive bg-destructive/10",style:{width:r,height:r},children:e.jsx(a.FaIcon,{icon:o.faXmark,className:"text-destructive",style:{width:t,height:t}})}),e.jsx(s.VSpace,{height:24}),e.jsx("div",{className:"text-xl font-medium leading-tight md:text-2xl",children:l}),e.jsx(s.VSpace,{height:12}),e.jsx("div",{className:"text-sm text-secondary-foreground",children:c})]}),i?e.jsxs("div",{className:"w-full shrink-0","data-testid":n.TransactionConfirmFailureResultTest.footer,children:[e.jsx(s.VSpace,{height:24}),i]}):null]})}exports.TransactionConfirmFailureResult=d;
@@ -1 +1 @@
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;
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 f({icon:c=e.jsx(x.TransactionConfirmSuccessIcon,{}),headline:a,subtitle:r,txHashRow:i,footerAction:l}){const n=m.useIsMobile(),u=n?16:24,o=n?8:12,d=n?24:32;return e.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col","data-testid":t.TransactionConfirmSuccessResultTest.root,children:[e.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col items-center overflow-x-hidden overflow-y-auto text-center",children:[c&&e.jsxs("div",{children:[e.jsx(s.VSpace,{height:u}),c,e.jsx(s.VSpace,{height:24})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-medium leading-tight md:text-2xl","data-testid":t.TransactionConfirmSuccessResultTest.headline,children:a}),e.jsx(s.VSpace,{height:o}),e.jsx("div",{className:"text-sm text-secondary-foreground","data-testid":t.TransactionConfirmSuccessResultTest.subtitle,children:r})]}),i?e.jsxs("div",{className:"w-full",children:[e.jsx(s.VSpace,{height:o}),e.jsx("div",{className:"w-full text-center",children:i})]}):null]}),l?e.jsxs("div",{className:"w-full shrink-0","data-testid":t.TransactionConfirmSuccessResultTest.footer,children:[e.jsx(s.VSpace,{height:d}),l]}):null]})}exports.TransactionConfirmSuccessResult=f;
@@ -1,4 +1,4 @@
1
- import { jsxs as s, jsx as i, Fragment as N } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as i, Fragment as N } from "react/jsx-runtime";
2
2
  import { ErrorLineMessage as C } from "../../../../error-message/error-line-message.js";
3
3
  import "react-intl";
4
4
  import "../../../../buttons/button/button.js";
@@ -12,52 +12,52 @@ import "@gearbox-protocol/sdk/common-utils";
12
12
  import "luxon";
13
13
  import "../../../../../utils/z-index.js";
14
14
  import { SkeletonStack as S } from "../../../../skeleton/skeleton-stack.js";
15
- import { VSpace as e } from "../../../../vspace/vspace.js";
15
+ import { VSpace as s } from "../../../../vspace/vspace.js";
16
16
  import { ProgressStepper as k } from "../stepper/ProgressStepper.js";
17
17
  import { shouldShowTransactionProgressStepper as P } from "../stepper/transactionExecutionStepTypes.js";
18
18
  import { computeTransactionConfirmDialogLayout as T } from "./computeTransactionConfirmDialogLayout.js";
19
19
  import { TransactionConfirmDialogTest as r, transactionConfirmShellContentVariants as V, transactionConfirmPreviewScrollVariants as j } from "./constants.js";
20
20
  function Q({
21
21
  phase: h = "confirm",
22
- header: n,
22
+ header: l,
23
23
  preview: d,
24
- previewLoading: u = !1,
24
+ previewLoading: f = !1,
25
25
  previewError: m,
26
- previewErrorTitle: p = "Unable to preview transaction",
27
- previewClassName: f = j(),
26
+ previewErrorTitle: u = "Unable to preview transaction",
27
+ previewClassName: p = j(),
28
28
  execution: w,
29
29
  progressSteps: o,
30
- renderProgressStepLabel: l,
30
+ renderProgressStepLabel: n,
31
31
  result: c,
32
- className: v,
33
- "data-testid": x = r.root
32
+ className: x,
33
+ "data-testid": v = r.root
34
34
  }) {
35
- const g = !!(o && l && P(o)), t = T(h, g);
36
- return /* @__PURE__ */ s(
35
+ const g = !!(o && n && P(o)), t = T(h, g);
36
+ return /* @__PURE__ */ a(
37
37
  "div",
38
38
  {
39
- className: V({ className: v }),
40
- "data-testid": x,
39
+ className: V({ className: x }),
40
+ "data-testid": v,
41
41
  children: [
42
- n ? /* @__PURE__ */ i("div", { className: "shrink-0", children: n }) : null,
43
- n ? /* @__PURE__ */ i(e, { height: 16 }) : null,
42
+ l ? /* @__PURE__ */ i("div", { className: "shrink-0", children: l }) : null,
43
+ l ? /* @__PURE__ */ i(s, { height: 16 }) : null,
44
44
  t.showResult && c ? /* @__PURE__ */ i(
45
45
  "div",
46
46
  {
47
- className: "min-h-0",
47
+ className: "flex min-h-0 flex-1 flex-col",
48
48
  "data-testid": r.result,
49
49
  children: c
50
50
  }
51
51
  ) : null,
52
- t.showResult ? null : /* @__PURE__ */ s("div", { className: "flex min-h-0 flex-1 flex-col", children: [
53
- t.showPreview ? /* @__PURE__ */ i("div", { className: f, children: u ? /* @__PURE__ */ i(S, { lines: 3 }) : m ? /* @__PURE__ */ i(
52
+ t.showResult ? null : /* @__PURE__ */ a("div", { className: "flex min-h-0 flex-1 flex-col", children: [
53
+ t.showPreview ? /* @__PURE__ */ i("div", { className: p, children: f ? /* @__PURE__ */ i(S, { lines: 3 }) : m ? /* @__PURE__ */ i(
54
54
  C,
55
55
  {
56
56
  err: m,
57
- title: p
57
+ title: u
58
58
  }
59
59
  ) : d }) : null,
60
- t.showPreview && t.showExecution ? /* @__PURE__ */ i(e, { height: 24 }) : null,
60
+ t.showPreview && t.showExecution ? /* @__PURE__ */ i(s, { height: 24 }) : null,
61
61
  t.showExecution ? /* @__PURE__ */ i(
62
62
  "div",
63
63
  {
@@ -67,8 +67,8 @@ function Q({
67
67
  }
68
68
  ) : null
69
69
  ] }),
70
- t.showProgressStepper && o && l ? /* @__PURE__ */ s(N, { children: [
71
- /* @__PURE__ */ i(e, { height: 24 }),
70
+ t.showProgressStepper && o && n ? /* @__PURE__ */ a(N, { children: [
71
+ /* @__PURE__ */ i(s, { height: 24 }),
72
72
  /* @__PURE__ */ i(
73
73
  "div",
74
74
  {
@@ -78,10 +78,10 @@ function Q({
78
78
  k,
79
79
  {
80
80
  tone: "muted",
81
- steps: o.map((a) => ({
82
- id: a.id,
83
- status: a.status,
84
- label: l(a)
81
+ steps: o.map((e) => ({
82
+ id: e.id,
83
+ status: e.status,
84
+ label: n(e)
85
85
  }))
86
86
  }
87
87
  )
@@ -1,51 +1,53 @@
1
- import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime";
2
- import { faXmark as o } from "@fortawesome/free-solid-svg-icons";
3
- import { FaIcon as c } from "../../../../icons/fa-icon.js";
4
- import { VSpace as r } from "../../../../vspace/vspace.js";
5
- import { TransactionConfirmFailureResultTest as a } from "./constants.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { faXmark as n } from "@fortawesome/free-solid-svg-icons";
3
+ import { FaIcon as m } from "../../../../icons/fa-icon.js";
4
+ import { VSpace as i } from "../../../../vspace/vspace.js";
5
+ import { TransactionConfirmFailureResultTest as d } from "./constants.js";
6
6
  function v({
7
- title: d,
8
- description: m,
9
- footerAction: i,
7
+ title: a,
8
+ description: o,
9
+ footerAction: l,
10
10
  iconSize: t = 48
11
11
  }) {
12
- const l = t + 32;
13
- return /* @__PURE__ */ s(
12
+ const s = t + 32;
13
+ return /* @__PURE__ */ r(
14
14
  "div",
15
15
  {
16
- className: "flex w-full flex-col items-center text-center",
17
- "data-testid": a.root,
16
+ className: "flex min-h-0 w-full flex-1 flex-col",
17
+ "data-testid": d.root,
18
18
  children: [
19
- /* @__PURE__ */ e(
20
- "div",
21
- {
22
- className: "flex items-center justify-center rounded-full border-2 border-destructive bg-destructive/10",
23
- style: { width: l, height: l },
24
- children: /* @__PURE__ */ e(
25
- c,
26
- {
27
- icon: o,
28
- className: "text-destructive",
29
- style: { width: t, height: t }
30
- }
31
- )
32
- }
33
- ),
34
- /* @__PURE__ */ e(r, { height: 24 }),
35
- /* @__PURE__ */ e("div", { className: "text-xl font-medium leading-tight md:text-2xl", children: d }),
36
- /* @__PURE__ */ e(r, { height: 12 }),
37
- /* @__PURE__ */ e("div", { className: "text-sm text-secondary-foreground", children: m }),
38
- i ? /* @__PURE__ */ s(n, { children: [
39
- /* @__PURE__ */ e(r, { height: 24 }),
19
+ /* @__PURE__ */ r("div", { className: "flex min-h-0 w-full flex-1 flex-col items-center overflow-x-hidden overflow-y-auto text-center", children: [
40
20
  /* @__PURE__ */ e(
41
21
  "div",
42
22
  {
43
- className: "w-full",
44
- "data-testid": a.footer,
45
- children: i
23
+ className: "flex items-center justify-center rounded-full border-2 border-destructive bg-destructive/10",
24
+ style: { width: s, height: s },
25
+ children: /* @__PURE__ */ e(
26
+ m,
27
+ {
28
+ icon: n,
29
+ className: "text-destructive",
30
+ style: { width: t, height: t }
31
+ }
32
+ )
46
33
  }
47
- )
48
- ] }) : null
34
+ ),
35
+ /* @__PURE__ */ e(i, { height: 24 }),
36
+ /* @__PURE__ */ e("div", { className: "text-xl font-medium leading-tight md:text-2xl", children: a }),
37
+ /* @__PURE__ */ e(i, { height: 12 }),
38
+ /* @__PURE__ */ e("div", { className: "text-sm text-secondary-foreground", children: o })
39
+ ] }),
40
+ l ? /* @__PURE__ */ r(
41
+ "div",
42
+ {
43
+ className: "w-full shrink-0",
44
+ "data-testid": d.footer,
45
+ children: [
46
+ /* @__PURE__ */ e(i, { height: 24 }),
47
+ l
48
+ ]
49
+ }
50
+ ) : null
49
51
  ]
50
52
  }
51
53
  );
@@ -1,61 +1,67 @@
1
- import { jsxs as l, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { VSpace as t } from "../../../../vspace/vspace.js";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { VSpace as i } from "../../../../vspace/vspace.js";
3
3
  import { useIsMobile as f } from "../../../../../hooks/use-media-query.js";
4
- import { TransactionConfirmSuccessResultTest as i } from "./constants.js";
5
- import { TransactionConfirmSuccessIcon as x } from "./TransactionConfirmSuccessIcon.js";
6
- function N({
7
- icon: o = /* @__PURE__ */ e(x, {}),
8
- headline: d,
9
- subtitle: m,
10
- txHashRow: n,
11
- footerAction: a
4
+ import { TransactionConfirmSuccessResultTest as l } from "./constants.js";
5
+ import { TransactionConfirmSuccessIcon as u } from "./TransactionConfirmSuccessIcon.js";
6
+ function w({
7
+ icon: n = /* @__PURE__ */ e(u, {}),
8
+ headline: r,
9
+ subtitle: d,
10
+ txHashRow: a,
11
+ footerAction: c
12
12
  }) {
13
- const s = f(), h = s ? 20 : 32, u = s ? 12 : 16, c = s ? 24 : 32;
14
- return /* @__PURE__ */ l(
13
+ const s = f(), m = s ? 16 : 24, o = s ? 8 : 12, h = s ? 24 : 32;
14
+ return /* @__PURE__ */ t(
15
15
  "div",
16
16
  {
17
- className: "flex w-full flex-col items-center text-center",
18
- "data-testid": i.root,
17
+ className: "flex min-h-0 w-full flex-1 flex-col",
18
+ "data-testid": l.root,
19
19
  children: [
20
- /* @__PURE__ */ e(t, { height: h }),
21
- o,
22
- /* @__PURE__ */ e(t, { height: 24 }),
23
- /* @__PURE__ */ e(
20
+ /* @__PURE__ */ t("div", { className: "flex min-h-0 w-full flex-1 flex-col items-center overflow-x-hidden overflow-y-auto text-center", children: [
21
+ n && /* @__PURE__ */ t("div", { children: [
22
+ /* @__PURE__ */ e(i, { height: m }),
23
+ n,
24
+ /* @__PURE__ */ e(i, { height: 24 })
25
+ ] }),
26
+ /* @__PURE__ */ t("div", { children: [
27
+ /* @__PURE__ */ e(
28
+ "div",
29
+ {
30
+ className: "text-xl font-medium leading-tight md:text-2xl",
31
+ "data-testid": l.headline,
32
+ children: r
33
+ }
34
+ ),
35
+ /* @__PURE__ */ e(i, { height: o }),
36
+ /* @__PURE__ */ e(
37
+ "div",
38
+ {
39
+ className: "text-sm text-secondary-foreground",
40
+ "data-testid": l.subtitle,
41
+ children: d
42
+ }
43
+ )
44
+ ] }),
45
+ a ? /* @__PURE__ */ t("div", { className: "w-full", children: [
46
+ /* @__PURE__ */ e(i, { height: o }),
47
+ /* @__PURE__ */ e("div", { className: "w-full text-center", children: a })
48
+ ] }) : null
49
+ ] }),
50
+ c ? /* @__PURE__ */ t(
24
51
  "div",
25
52
  {
26
- className: "text-xl font-medium leading-tight md:text-2xl",
27
- "data-testid": i.headline,
28
- children: d
53
+ className: "w-full shrink-0",
54
+ "data-testid": l.footer,
55
+ children: [
56
+ /* @__PURE__ */ e(i, { height: h }),
57
+ c
58
+ ]
29
59
  }
30
- ),
31
- /* @__PURE__ */ e(t, { height: u }),
32
- /* @__PURE__ */ e(
33
- "div",
34
- {
35
- className: "text-sm text-secondary-foreground",
36
- "data-testid": i.subtitle,
37
- children: m
38
- }
39
- ),
40
- n ? /* @__PURE__ */ l(r, { children: [
41
- /* @__PURE__ */ e(t, { height: c }),
42
- /* @__PURE__ */ e("div", { className: "w-full text-center", children: n })
43
- ] }) : null,
44
- a ? /* @__PURE__ */ l(r, { children: [
45
- /* @__PURE__ */ e(t, { height: c }),
46
- /* @__PURE__ */ e(
47
- "div",
48
- {
49
- className: "w-full",
50
- "data-testid": i.footer,
51
- children: a
52
- }
53
- )
54
- ] }) : null
60
+ ) : null
55
61
  ]
56
62
  }
57
63
  );
58
64
  }
59
65
  export {
60
- N as TransactionConfirmSuccessResult
66
+ w as TransactionConfirmSuccessResult
61
67
  };
@@ -5,4 +5,8 @@ export interface TransactionConfirmFailureResultProps {
5
5
  readonly footerAction?: React.ReactNode;
6
6
  readonly iconSize?: number;
7
7
  }
8
+ /**
9
+ * Failure result follows the shell's confirm layout: the main content scrolls
10
+ * while `footerAction` remains outside the scroll container.
11
+ */
8
12
  export declare function TransactionConfirmFailureResult({ title, description, footerAction, iconSize, }: TransactionConfirmFailureResultProps): React.ReactElement;
@@ -4,6 +4,11 @@ export interface TransactionConfirmSuccessResultProps {
4
4
  readonly headline: React.ReactNode;
5
5
  readonly subtitle: React.ReactNode;
6
6
  readonly txHashRow?: React.ReactNode;
7
+ /** Extra scrollable body below the subtitle (e.g. summary tables). */
7
8
  readonly footerAction?: React.ReactNode;
8
9
  }
10
+ /**
11
+ * Success result follows the shell's confirm layout: the main content scrolls
12
+ * while `footerAction` remains outside the scroll container.
13
+ */
9
14
  export declare function TransactionConfirmSuccessResult({ icon, headline, subtitle, txHashRow, footerAction, }: TransactionConfirmSuccessResultProps): React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.14.0-next.65",
3
+ "version": "3.14.0-next.66",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",