@gearbox-protocol/permissionless-ui 1.11.9 → 1.11.10
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");require("../buttons/back-button/back-button.cjs");require("../buttons/button/button.cjs");const n=require("../buttons/copy-button/copy-button.cjs"),i=require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("react");require("clsx");require("tailwind-merge");require("sonner");const o=require("../../utils/format.cjs");require("@gearbox-protocol/sdk");require("../buttons/tab-button/tab-button.cjs");const u=require("./identicon.cjs");function a({confirmation:t,note:r,explorerUrl:s}){return e.jsxs("div",{className:"group relative flex items-center",children:[e.jsx("div",{className:"absolute left-[8px] h-2 w-2 rounded-full bg-green-500"}),e.jsxs("div",{className:"ml-10 flex items-center gap-2",children:[e.jsx(u.Identicon,{address:t,size:32}),e.jsx("span",{className:"text-foreground whitespace-nowrap",children:o.shortenHash(t)}),r&&e.jsx("span",{className:"text-gray-500 text-xs whitespace-nowrap",children:r}),e.jsxs("div",{className:"flex
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../buttons/back-button/back-button.cjs");require("../buttons/button/button.cjs");const n=require("../buttons/copy-button/copy-button.cjs"),i=require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("react");require("clsx");require("tailwind-merge");require("sonner");const o=require("../../utils/format.cjs");require("@gearbox-protocol/sdk");require("../buttons/tab-button/tab-button.cjs");const u=require("./identicon.cjs");function a({confirmation:t,note:r,explorerUrl:s}){return e.jsxs("div",{className:"group relative flex items-center",children:[e.jsx("div",{className:"absolute left-[8px] h-2 w-2 rounded-full bg-green-500"}),e.jsxs("div",{className:"ml-10 flex items-center gap-2",children:[e.jsx(u.Identicon,{address:t,size:32}),e.jsx("span",{className:"text-foreground whitespace-nowrap",children:o.shortenHash(t)}),r&&e.jsx("span",{className:"text-gray-500 text-xs whitespace-nowrap",children:r}),e.jsxs("div",{className:"flex opacity-0 transition-opacity group-hover:opacity-100",children:[e.jsx(n.CopyButton,{text:t}),s&&e.jsx(i.ExternalButton,{url:s})]})]})]})}exports.ConfirmationItem=a;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "../buttons/back-button/back-button.js";
|
|
3
3
|
import "../buttons/button/button.js";
|
|
4
|
-
import { CopyButton as
|
|
5
|
-
import { ExternalButton as
|
|
4
|
+
import { CopyButton as m } from "../buttons/copy-button/copy-button.js";
|
|
5
|
+
import { ExternalButton as p } from "../buttons/external-button/external-button.js";
|
|
6
6
|
import "../buttons/filter-button/filter-button.js";
|
|
7
7
|
import "../buttons/navigation-button/navigation-button.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import "tailwind-merge";
|
|
11
11
|
import "sonner";
|
|
12
|
-
import { shortenHash as
|
|
12
|
+
import { shortenHash as s } from "../../utils/format.js";
|
|
13
13
|
import "@gearbox-protocol/sdk";
|
|
14
14
|
import "../buttons/tab-button/tab-button.js";
|
|
15
|
-
import { Identicon as
|
|
15
|
+
import { Identicon as a } from "./identicon.js";
|
|
16
16
|
function B({
|
|
17
17
|
confirmation: e,
|
|
18
18
|
note: o,
|
|
@@ -21,12 +21,12 @@ function B({
|
|
|
21
21
|
return /* @__PURE__ */ r("div", { className: "group relative flex items-center", children: [
|
|
22
22
|
/* @__PURE__ */ t("div", { className: "absolute left-[8px] h-2 w-2 rounded-full bg-green-500" }),
|
|
23
23
|
/* @__PURE__ */ r("div", { className: "ml-10 flex items-center gap-2", children: [
|
|
24
|
-
/* @__PURE__ */ t(
|
|
25
|
-
/* @__PURE__ */ t("span", { className: "text-foreground whitespace-nowrap", children:
|
|
24
|
+
/* @__PURE__ */ t(a, { address: e, size: 32 }),
|
|
25
|
+
/* @__PURE__ */ t("span", { className: "text-foreground whitespace-nowrap", children: s(e) }),
|
|
26
26
|
o && /* @__PURE__ */ t("span", { className: "text-gray-500 text-xs whitespace-nowrap", children: o }),
|
|
27
|
-
/* @__PURE__ */ r("div", { className: "flex
|
|
28
|
-
/* @__PURE__ */ t(
|
|
29
|
-
i && /* @__PURE__ */ t(
|
|
27
|
+
/* @__PURE__ */ r("div", { className: "flex opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
28
|
+
/* @__PURE__ */ t(m, { text: e }),
|
|
29
|
+
i && /* @__PURE__ */ t(p, { url: i })
|
|
30
30
|
] })
|
|
31
31
|
] })
|
|
32
32
|
] });
|