@gearbox-protocol/permissionless-ui 1.1.6 → 1.1.7
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.
|
@@ -45,12 +45,19 @@ const CopyButton = React.forwardRef(
|
|
|
45
45
|
variant: "ghost",
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: (0, import_utils.default)(
|
|
48
|
-
|
|
48
|
+
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
49
|
+
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
49
50
|
className
|
|
50
51
|
),
|
|
51
52
|
onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
|
|
52
53
|
...props,
|
|
53
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
import_lucide_react.Copy,
|
|
56
|
+
{
|
|
57
|
+
className: `!h-${size} !w-${size}`,
|
|
58
|
+
size: Number(size) ? Number(size) * 4 : void 0
|
|
59
|
+
}
|
|
60
|
+
)
|
|
54
61
|
}
|
|
55
62
|
);
|
|
56
63
|
}
|
|
@@ -45,12 +45,19 @@ const ExternalButton = React.forwardRef(
|
|
|
45
45
|
variant: "ghost",
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: (0, import_utils.default)(
|
|
48
|
-
|
|
48
|
+
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
49
|
+
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
49
50
|
className
|
|
50
51
|
),
|
|
51
52
|
onClick: () => window.open(url, "_blank"),
|
|
52
53
|
...props,
|
|
53
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
import_lucide_react.ExternalLink,
|
|
56
|
+
{
|
|
57
|
+
className: `!h-${size} !w-${size}`,
|
|
58
|
+
size: Number(size) ? Number(size) * 4 : void 0
|
|
59
|
+
}
|
|
60
|
+
)
|
|
54
61
|
}
|
|
55
62
|
);
|
|
56
63
|
}
|
|
@@ -12,12 +12,19 @@ const CopyButton = React.forwardRef(
|
|
|
12
12
|
variant: "ghost",
|
|
13
13
|
size: "sm",
|
|
14
14
|
className: cn(
|
|
15
|
-
|
|
15
|
+
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
16
|
+
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
16
17
|
className
|
|
17
18
|
),
|
|
18
19
|
onClick: () => copyToClipboard({ text, name }),
|
|
19
20
|
...props,
|
|
20
|
-
children: /* @__PURE__ */ jsx(
|
|
21
|
+
children: /* @__PURE__ */ jsx(
|
|
22
|
+
Copy,
|
|
23
|
+
{
|
|
24
|
+
className: `!h-${size} !w-${size}`,
|
|
25
|
+
size: Number(size) ? Number(size) * 4 : void 0
|
|
26
|
+
}
|
|
27
|
+
)
|
|
21
28
|
}
|
|
22
29
|
);
|
|
23
30
|
}
|
|
@@ -12,12 +12,19 @@ const ExternalButton = React.forwardRef(
|
|
|
12
12
|
variant: "ghost",
|
|
13
13
|
size: "sm",
|
|
14
14
|
className: cn(
|
|
15
|
-
|
|
15
|
+
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
16
|
+
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
16
17
|
className
|
|
17
18
|
),
|
|
18
19
|
onClick: () => window.open(url, "_blank"),
|
|
19
20
|
...props,
|
|
20
|
-
children: /* @__PURE__ */ jsx(
|
|
21
|
+
children: /* @__PURE__ */ jsx(
|
|
22
|
+
ExternalLink,
|
|
23
|
+
{
|
|
24
|
+
className: `!h-${size} !w-${size}`,
|
|
25
|
+
size: Number(size) ? Number(size) * 4 : void 0
|
|
26
|
+
}
|
|
27
|
+
)
|
|
21
28
|
}
|
|
22
29
|
);
|
|
23
30
|
}
|