@gearbox-protocol/permissionless-ui 1.1.7 → 1.1.8
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.
- package/dist/cjs/components/buttons/button.js +1 -1
- package/dist/cjs/components/buttons/copy-button.js +1 -8
- package/dist/cjs/components/buttons/external-button.js +1 -8
- package/dist/esm/components/buttons/button.js +1 -1
- package/dist/esm/components/buttons/copy-button.js +1 -8
- package/dist/esm/components/buttons/external-button.js +1 -8
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
38
38
|
var React = __toESM(require("react"));
|
|
39
39
|
var import_utils = __toESM(require('../../utils/index.js'));
|
|
40
40
|
const buttonVariants = (0, import_class_variance_authority.cva)(
|
|
41
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:
|
|
41
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
variant: {
|
|
@@ -46,18 +46,11 @@ const CopyButton = React.forwardRef(
|
|
|
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]` : "",
|
|
50
49
|
className
|
|
51
50
|
),
|
|
52
51
|
onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
|
|
53
52
|
...props,
|
|
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
|
-
)
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Copy, { className: `h-${size} w-${size}` })
|
|
61
54
|
}
|
|
62
55
|
);
|
|
63
56
|
}
|
|
@@ -46,18 +46,11 @@ const ExternalButton = React.forwardRef(
|
|
|
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]` : "",
|
|
50
49
|
className
|
|
51
50
|
),
|
|
52
51
|
onClick: () => window.open(url, "_blank"),
|
|
53
52
|
...props,
|
|
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
|
-
)
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: `h-${size} w-${size}` })
|
|
61
54
|
}
|
|
62
55
|
);
|
|
63
56
|
}
|
|
@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import cn from "../../utils/index.js";
|
|
6
6
|
const buttonVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:
|
|
7
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -13,18 +13,11 @@ const CopyButton = React.forwardRef(
|
|
|
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]` : "",
|
|
17
16
|
className
|
|
18
17
|
),
|
|
19
18
|
onClick: () => copyToClipboard({ text, name }),
|
|
20
19
|
...props,
|
|
21
|
-
children: /* @__PURE__ */ jsx(
|
|
22
|
-
Copy,
|
|
23
|
-
{
|
|
24
|
-
className: `!h-${size} !w-${size}`,
|
|
25
|
-
size: Number(size) ? Number(size) * 4 : void 0
|
|
26
|
-
}
|
|
27
|
-
)
|
|
20
|
+
children: /* @__PURE__ */ jsx(Copy, { className: `h-${size} w-${size}` })
|
|
28
21
|
}
|
|
29
22
|
);
|
|
30
23
|
}
|
|
@@ -13,18 +13,11 @@ const ExternalButton = React.forwardRef(
|
|
|
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]` : "",
|
|
17
16
|
className
|
|
18
17
|
),
|
|
19
18
|
onClick: () => window.open(url, "_blank"),
|
|
20
19
|
...props,
|
|
21
|
-
children: /* @__PURE__ */ jsx(
|
|
22
|
-
ExternalLink,
|
|
23
|
-
{
|
|
24
|
-
className: `!h-${size} !w-${size}`,
|
|
25
|
-
size: Number(size) ? Number(size) * 4 : void 0
|
|
26
|
-
}
|
|
27
|
-
)
|
|
20
|
+
children: /* @__PURE__ */ jsx(ExternalLink, { className: `h-${size} w-${size}` })
|
|
28
21
|
}
|
|
29
22
|
);
|
|
30
23
|
}
|