@gearbox-protocol/permissionless-ui 1.0.5 → 1.0.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,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 p-0 h-auto",
48
+ "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
49
49
  className
50
50
  ),
51
51
  onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
@@ -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 p-0 h-auto",
48
+ "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
49
49
  className
50
50
  ),
51
51
  onClick: () => window.open(url, "_blank"),
@@ -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 p-0 h-auto",
15
+ "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
16
16
  className
17
17
  ),
18
18
  onClick: () => copyToClipboard({ text, name }),
@@ -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 p-0 h-auto",
15
+ "text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
16
16
  className
17
17
  ),
18
18
  onClick: () => window.open(url, "_blank"),
@@ -1,5 +1,5 @@
1
1
  interface EditButtonProps {
2
- onClick: () => void;
2
+ onClick?: () => void;
3
3
  customButton?: React.ReactNode;
4
4
  disabled?: boolean;
5
5
  }
@@ -10,7 +10,7 @@ export declare function TableCellAsset({ assetAddress, symbol, iconSymbol, comme
10
10
  export interface TableCellUpdatableProps {
11
11
  oldValue?: string;
12
12
  newValue: string;
13
- onEdit: () => void;
13
+ onEdit?: () => void;
14
14
  isEditable?: boolean;
15
15
  className?: string;
16
16
  customButton?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  interface UpdatedValueProps {
2
2
  oldValue?: string | number;
3
3
  newValue: string | number;
4
- onEdit: () => void;
4
+ onEdit?: () => void;
5
5
  isEditable?: boolean;
6
6
  disabled?: boolean;
7
7
  nowrap?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",