@gearbox-protocol/permissionless-ui 1.2.19 → 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: {
|
|
@@ -25,7 +25,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
25
25
|
var import_card = require('./card.js');
|
|
26
26
|
function DangerZone({ children }) {
|
|
27
27
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, { className: "border-destructive", children: [
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardTitle, { className: "text-destructive", children: "Danger Zone" }) }),
|
|
28
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardHeader, { className: "border-destructive", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardTitle, { className: "text-destructive", children: "Danger Zone" }) }),
|
|
29
29
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardContent, { children })
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
@@ -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: {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Card, CardContent, CardHeader, CardTitle } from "./card.js";
|
|
3
3
|
function DangerZone({ children }) {
|
|
4
4
|
return /* @__PURE__ */ jsxs(Card, { className: "border-destructive", children: [
|
|
5
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-destructive", children: "Danger Zone" }) }),
|
|
5
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "border-destructive", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-destructive", children: "Danger Zone" }) }),
|
|
6
6
|
/* @__PURE__ */ jsx(CardContent, { children })
|
|
7
7
|
] });
|
|
8
8
|
}
|
|
@@ -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;
|