@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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),m=require("../../../../client-adapters/styled-dialog-container/styled-dialog-container.cjs"),d=require("../../../../confirm-menu/confirm-menu.cjs");require("react");require("@gearbox-protocol/sdk");const _=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const i=require("./constants.cjs"),f=require("./TransactionConfirmShell.cjs");function g({title:o,titleAddon:r,hideTitleAddonOnResult:t=!0,containerClassName:s,containerTestId:a,shellTestId:c,phase:e="confirm",...l}){const u=e!=="confirm"&&e!=="awaiting_receipt"&&t?void 0:r;return n.jsx(m.StyledDialogContainer,{className:_.cn(i.transactionConfirmDialogShellVariants(),s),"data-testid":a,children:n.jsx(f.TransactionConfirmShell,{...l,header:n.jsx(d.ConfirmMenu,{title:o,titleAddon:u,onClose:void 0}),"data-testid":c??i.TransactionConfirmDialogTest.root,phase:e})})}exports.TransactionConfirmPageView=g;
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;
@@ -1,47 +1,48 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { StyledDialogContainer as l } from "../../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
3
- import { ConfirmMenu as c } from "../../../../confirm-menu/confirm-menu.js";
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 p } from "../../../../../utils/cn.js";
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 s, transactionConfirmDialogShellVariants as C } from "./constants.js";
12
- import { TransactionConfirmShell as g } from "./TransactionConfirmShell.js";
13
- function M({
14
- title: r,
15
- titleAddon: t,
16
- hideTitleAddonOnResult: n = !0,
17
- containerClassName: m,
18
- containerTestId: a,
19
- shellTestId: e,
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 f = o !== "confirm" && o !== "awaiting_receipt" && n ? void 0 : t;
24
- return /* @__PURE__ */ i(
25
- l,
24
+ const l = o !== "confirm" && o !== "awaiting_receipt" && m ? void 0 : n;
25
+ return /* @__PURE__ */ r(
26
+ c,
26
27
  {
27
- className: p(
28
- C(),
29
- m
28
+ className: s(
29
+ g(),
30
+ a
30
31
  ),
31
- "data-testid": a,
32
- children: /* @__PURE__ */ i(
33
- g,
32
+ "data-testid": e,
33
+ children: /* @__PURE__ */ r(
34
+ T,
34
35
  {
35
36
  ...d,
36
- header: /* @__PURE__ */ i(
37
- c,
37
+ header: /* @__PURE__ */ r(
38
+ p,
38
39
  {
39
- title: r,
40
- titleAddon: f,
41
- onClose: void 0
40
+ title: t,
41
+ titleAddon: l,
42
+ onClose: i
42
43
  }
43
44
  ),
44
- "data-testid": e ?? s.root,
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
- M as TransactionConfirmPageView
53
+ N as TransactionConfirmPageView
53
54
  };
@@ -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: React.ReactNode | undefined;
8
- readonly hideTitleAddonOnResult: boolean | undefined;
9
- readonly containerClassName: string | undefined;
10
- readonly containerTestId: string | undefined;
11
- readonly shellTestId: string | undefined;
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
  *
@@ -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: React.ReactNode | undefined;
6
- readonly hideTitleAddonOnResult: boolean | undefined;
7
- readonly containerClassName: string | undefined;
8
- readonly containerTestId: string | undefined;
9
- readonly shellTestId: string | undefined;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.14.0-next.61",
3
+ "version": "3.14.0-next.63",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",