@gearbox-protocol/ui-kit 3.14.0-next.63 → 3.14.0-next.64

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"),s=require("../../../../vspace/vspace.cjs"),d=require("../../../../../hooks/use-media-query.cjs"),t=require("./constants.cjs"),m=require("./TransactionConfirmSuccessIcon.cjs");function x({headline:a,subtitle:r,txHashRow:c,footerAction:i}){const n=d.useIsMobile(),l=n?20:32,u=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:l}),e.jsx(m.TransactionConfirmSuccessIcon,{}),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:a}),e.jsx(s.VSpace,{height:u}),e.jsx("div",{className:"text-sm text-secondary-foreground","data-testid":t.TransactionConfirmSuccessResultTest.subtitle,children:r}),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=x;
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,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 u } from "../../../../../hooks/use-media-query.js";
3
+ import { useIsMobile as f } from "../../../../../hooks/use-media-query.js";
4
4
  import { TransactionConfirmSuccessResultTest as i } from "./constants.js";
5
- import { TransactionConfirmSuccessIcon as f } from "./TransactionConfirmSuccessIcon.js";
6
- function v({
7
- headline: o,
8
- subtitle: d,
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 = u(), m = s ? 20 : 32, h = s ? 12 : 16, c = s ? 24 : 32;
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: m }),
20
- /* @__PURE__ */ e(f, {}),
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: o
28
+ children: d
28
29
  }
29
30
  ),
30
- /* @__PURE__ */ e(t, { height: h }),
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: d
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
- v as TransactionConfirmSuccessResult
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.14.0-next.63",
3
+ "version": "3.14.0-next.64",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",