@gearbox-protocol/permissionless-ui 1.2.20 → 1.2.21
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.
|
@@ -46,8 +46,10 @@ const cardVariants = (0, import_class_variance_authority.cva)(
|
|
|
46
46
|
variants: {
|
|
47
47
|
variant: {
|
|
48
48
|
default: "",
|
|
49
|
+
interactive: "hover:bg-accent/50 transition-colors cursor-pointer",
|
|
49
50
|
transparent: "bg-card/0",
|
|
50
|
-
|
|
51
|
+
blue: "border-gray-800 bg-gray-900/30 p-4",
|
|
52
|
+
"interactive-blue": "border-gray-800 bg-gray-900/30 p-4 hover:bg-gray-900/50 transition-colors cursor-pointer"
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
defaultVariants: {
|
|
@@ -8,8 +8,10 @@ const cardVariants = cva(
|
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "",
|
|
11
|
+
interactive: "hover:bg-accent/50 transition-colors cursor-pointer",
|
|
11
12
|
transparent: "bg-card/0",
|
|
12
|
-
|
|
13
|
+
blue: "border-gray-800 bg-gray-900/30 p-4",
|
|
14
|
+
"interactive-blue": "border-gray-800 bg-gray-900/30 p-4 hover:bg-gray-900/50 transition-colors cursor-pointer"
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
17
|
defaultVariants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const cardVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "transparent" | "interactive" | null | undefined;
|
|
4
|
+
variant?: "default" | "blue" | "interactive" | "transparent" | "interactive-blue" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
7
7
|
asChild?: boolean;
|