@gearbox-protocol/permissionless-ui 1.1.3 → 1.1.5

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.
@@ -37,7 +37,7 @@ var React = __toESM(require("react"));
37
37
  var import_utils = __toESM(require('../../utils/index.js'));
38
38
  var import_button = require('./button.js');
39
39
  const CopyButton = React.forwardRef(
40
- ({ text, name, className, size = "3", ...props }, ref) => {
40
+ ({ text, name, className, size = "3.5", ...props }, ref) => {
41
41
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
42
  import_button.Button,
43
43
  {
@@ -45,7 +45,7 @@ const CopyButton = React.forwardRef(
45
45
  variant: "ghost",
46
46
  size: "sm",
47
47
  className: (0, import_utils.default)(
48
- "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
48
+ `text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto [&_svg]:!size-[${size}]`,
49
49
  className
50
50
  ),
51
51
  onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
@@ -37,7 +37,7 @@ var React = __toESM(require("react"));
37
37
  var import_utils = __toESM(require('../../utils/index.js'));
38
38
  var import_button = require('./button.js');
39
39
  const ExternalButton = React.forwardRef(
40
- ({ url, className, size = "3", ...props }, ref) => {
40
+ ({ url, className, size = "3.5", ...props }, ref) => {
41
41
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
42
  import_button.Button,
43
43
  {
@@ -45,7 +45,7 @@ const ExternalButton = React.forwardRef(
45
45
  variant: "ghost",
46
46
  size: "sm",
47
47
  className: (0, import_utils.default)(
48
- "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
48
+ `text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto [&_svg]:!size-[${size}]`,
49
49
  className
50
50
  ),
51
51
  onClick: () => window.open(url, "_blank"),
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  import cn, { copyToClipboard } from "../../utils/index.js";
5
5
  import { Button } from "./button.js";
6
6
  const CopyButton = React.forwardRef(
7
- ({ text, name, className, size = "3", ...props }, ref) => {
7
+ ({ text, name, className, size = "3.5", ...props }, ref) => {
8
8
  return /* @__PURE__ */ jsx(
9
9
  Button,
10
10
  {
@@ -12,7 +12,7 @@ const CopyButton = React.forwardRef(
12
12
  variant: "ghost",
13
13
  size: "sm",
14
14
  className: cn(
15
- "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
15
+ `text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto [&_svg]:!size-[${size}]`,
16
16
  className
17
17
  ),
18
18
  onClick: () => copyToClipboard({ text, name }),
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  import cn from "../../utils/index.js";
5
5
  import { Button } from "./button.js";
6
6
  const ExternalButton = React.forwardRef(
7
- ({ url, className, size = "3", ...props }, ref) => {
7
+ ({ url, className, size = "3.5", ...props }, ref) => {
8
8
  return /* @__PURE__ */ jsx(
9
9
  Button,
10
10
  {
@@ -12,7 +12,7 @@ const ExternalButton = React.forwardRef(
12
12
  variant: "ghost",
13
13
  size: "sm",
14
14
  className: cn(
15
- "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
15
+ `text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto [&_svg]:!size-[${size}]`,
16
16
  className
17
17
  ),
18
18
  onClick: () => window.open(url, "_blank"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",