@gearbox-protocol/permissionless-ui 1.7.0 → 1.7.2
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/cards/card.js +8 -6
- package/dist/cjs/components/cards/expandable-card.js +1 -1
- package/dist/esm/components/cards/card.js +8 -6
- package/dist/esm/components/cards/expandable-card.js +1 -1
- package/dist/types/components/cards/card.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/card.js +0 -176
- package/dist/esm/components/card.js +0 -133
- package/dist/types/components/card.d.ts +0 -116
|
@@ -41,14 +41,13 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
41
41
|
var React = __toESM(require("react"));
|
|
42
42
|
var import_utils = __toESM(require('../../utils/index.js'));
|
|
43
43
|
const cardVariants = (0, import_class_variance_authority.cva)(
|
|
44
|
-
"rounded-xl border border-border bg-card text-card-foreground
|
|
44
|
+
"rounded-xl border border-border bg-card text-card-foreground",
|
|
45
45
|
{
|
|
46
46
|
variants: {
|
|
47
47
|
variant: {
|
|
48
48
|
default: "",
|
|
49
|
-
interactive: "hover:bg-
|
|
50
|
-
transparent: "bg-
|
|
51
|
-
nohover: "hover:bg-card hover:border-border"
|
|
49
|
+
interactive: "hover:bg-secondary transition-colors cursor-pointer",
|
|
50
|
+
transparent: "bg-transparent hover:bg-transparent"
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
53
|
defaultVariants: {
|
|
@@ -71,7 +70,10 @@ const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
71
70
|
"div",
|
|
72
71
|
{
|
|
73
72
|
ref,
|
|
74
|
-
className: (0, import_utils.default)(
|
|
73
|
+
className: (0, import_utils.default)(
|
|
74
|
+
"flex items-center py-2 px-4 border-b border-input",
|
|
75
|
+
className
|
|
76
|
+
),
|
|
75
77
|
...props
|
|
76
78
|
}
|
|
77
79
|
));
|
|
@@ -103,7 +105,7 @@ const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
103
105
|
"div",
|
|
104
106
|
{
|
|
105
107
|
ref,
|
|
106
|
-
className: (0, import_utils.default)("flex items-center p-4 border-t", className),
|
|
108
|
+
className: (0, import_utils.default)("flex items-center p-4 border-t border-input", className),
|
|
107
109
|
...props
|
|
108
110
|
}
|
|
109
111
|
));
|
|
@@ -43,7 +43,7 @@ function ExpandableCard({
|
|
|
43
43
|
alwaysExpanded = false
|
|
44
44
|
}) {
|
|
45
45
|
const [isExpanded, setIsExpanded] = React.useState(alwaysExpanded);
|
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, {
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, { children: [
|
|
47
47
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
@@ -3,14 +3,13 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import cn from "../../utils/index.js";
|
|
5
5
|
const cardVariants = cva(
|
|
6
|
-
"rounded-xl border border-border bg-card text-card-foreground
|
|
6
|
+
"rounded-xl border border-border bg-card text-card-foreground",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "",
|
|
11
|
-
interactive: "hover:bg-
|
|
12
|
-
transparent: "bg-
|
|
13
|
-
nohover: "hover:bg-card hover:border-border"
|
|
11
|
+
interactive: "hover:bg-secondary transition-colors cursor-pointer",
|
|
12
|
+
transparent: "bg-transparent hover:bg-transparent"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
defaultVariants: {
|
|
@@ -33,7 +32,10 @@ const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
33
32
|
"div",
|
|
34
33
|
{
|
|
35
34
|
ref,
|
|
36
|
-
className: cn(
|
|
35
|
+
className: cn(
|
|
36
|
+
"flex items-center py-2 px-4 border-b border-input",
|
|
37
|
+
className
|
|
38
|
+
),
|
|
37
39
|
...props
|
|
38
40
|
}
|
|
39
41
|
));
|
|
@@ -65,7 +67,7 @@ const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
65
67
|
"div",
|
|
66
68
|
{
|
|
67
69
|
ref,
|
|
68
|
-
className: cn("flex items-center p-4 border-t", className),
|
|
70
|
+
className: cn("flex items-center p-4 border-t border-input", className),
|
|
69
71
|
...props
|
|
70
72
|
}
|
|
71
73
|
));
|
|
@@ -10,7 +10,7 @@ function ExpandableCard({
|
|
|
10
10
|
alwaysExpanded = false
|
|
11
11
|
}) {
|
|
12
12
|
const [isExpanded, setIsExpanded] = React.useState(alwaysExpanded);
|
|
13
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
13
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
14
14
|
/* @__PURE__ */ jsxs(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
@@ -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" |
|
|
4
|
+
variant?: "default" | "transparent" | "interactive" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
7
7
|
asChild?: boolean;
|
package/package.json
CHANGED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var card_exports = {};
|
|
30
|
-
__export(card_exports, {
|
|
31
|
-
Card: () => Card,
|
|
32
|
-
CardContent: () => CardContent,
|
|
33
|
-
CardDescription: () => CardDescription,
|
|
34
|
-
CardFooter: () => CardFooter,
|
|
35
|
-
CardHeader: () => CardHeader,
|
|
36
|
-
CardTitle: () => CardTitle,
|
|
37
|
-
cardContentVariants: () => cardContentVariants,
|
|
38
|
-
cardFooterVariants: () => cardFooterVariants,
|
|
39
|
-
cardHeaderVariants: () => cardHeaderVariants,
|
|
40
|
-
cardVariants: () => cardVariants
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(card_exports);
|
|
43
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
-
var import_class_variance_authority = require("class-variance-authority");
|
|
45
|
-
var React = __toESM(require("react"));
|
|
46
|
-
var import_utils = __toESM(require('../utils/index.js'));
|
|
47
|
-
const cardVariants = (0, import_class_variance_authority.cva)("rounded-xl bg-card text-card-foreground", {
|
|
48
|
-
variants: {
|
|
49
|
-
variant: {
|
|
50
|
-
default: "border shadow",
|
|
51
|
-
elevated: "shadow-lg",
|
|
52
|
-
outlined: "border-2",
|
|
53
|
-
ghost: "border-0 shadow-none"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
defaultVariants: {
|
|
57
|
-
variant: "default"
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
const Card = React.forwardRef(
|
|
61
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
ref,
|
|
65
|
-
className: (0, import_utils.default)(cardVariants({ variant, className })),
|
|
66
|
-
...props
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
);
|
|
70
|
-
Card.displayName = "Card";
|
|
71
|
-
const cardHeaderVariants = (0, import_class_variance_authority.cva)("flex flex-col space-y-1.5", {
|
|
72
|
-
variants: {
|
|
73
|
-
padding: {
|
|
74
|
-
none: "p-0",
|
|
75
|
-
sm: "p-4",
|
|
76
|
-
default: "p-6",
|
|
77
|
-
lg: "p-8"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
defaultVariants: {
|
|
81
|
-
padding: "default"
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
const CardHeader = React.forwardRef(
|
|
85
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
ref,
|
|
89
|
-
className: (0, import_utils.default)(cardHeaderVariants({ padding, className })),
|
|
90
|
-
...props
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
);
|
|
94
|
-
CardHeader.displayName = "CardHeader";
|
|
95
|
-
const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
-
"div",
|
|
97
|
-
{
|
|
98
|
-
ref,
|
|
99
|
-
className: (0, import_utils.default)(
|
|
100
|
-
"font-semibold leading-none tracking-tight text-2xl",
|
|
101
|
-
className
|
|
102
|
-
),
|
|
103
|
-
...props
|
|
104
|
-
}
|
|
105
|
-
));
|
|
106
|
-
CardTitle.displayName = "CardTitle";
|
|
107
|
-
const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
ref,
|
|
111
|
-
className: (0, import_utils.default)("text-sm text-muted-foreground", className),
|
|
112
|
-
...props
|
|
113
|
-
}
|
|
114
|
-
));
|
|
115
|
-
CardDescription.displayName = "CardDescription";
|
|
116
|
-
const cardContentVariants = (0, import_class_variance_authority.cva)("", {
|
|
117
|
-
variants: {
|
|
118
|
-
padding: {
|
|
119
|
-
none: "p-0",
|
|
120
|
-
sm: "p-4 pt-0",
|
|
121
|
-
default: "p-6 pt-0",
|
|
122
|
-
lg: "p-8 pt-0"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
defaultVariants: {
|
|
126
|
-
padding: "default"
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
const CardContent = React.forwardRef(
|
|
130
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
131
|
-
"div",
|
|
132
|
-
{
|
|
133
|
-
ref,
|
|
134
|
-
className: (0, import_utils.default)(cardContentVariants({ padding, className })),
|
|
135
|
-
...props
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
);
|
|
139
|
-
CardContent.displayName = "CardContent";
|
|
140
|
-
const cardFooterVariants = (0, import_class_variance_authority.cva)("flex items-center", {
|
|
141
|
-
variants: {
|
|
142
|
-
padding: {
|
|
143
|
-
none: "p-0",
|
|
144
|
-
sm: "p-4 pt-0",
|
|
145
|
-
default: "p-6 pt-0",
|
|
146
|
-
lg: "p-8 pt-0"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
defaultVariants: {
|
|
150
|
-
padding: "default"
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
const CardFooter = React.forwardRef(
|
|
154
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
|
-
"div",
|
|
156
|
-
{
|
|
157
|
-
ref,
|
|
158
|
-
className: (0, import_utils.default)(cardFooterVariants({ padding, className })),
|
|
159
|
-
...props
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
);
|
|
163
|
-
CardFooter.displayName = "CardFooter";
|
|
164
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
165
|
-
0 && (module.exports = {
|
|
166
|
-
Card,
|
|
167
|
-
CardContent,
|
|
168
|
-
CardDescription,
|
|
169
|
-
CardFooter,
|
|
170
|
-
CardHeader,
|
|
171
|
-
CardTitle,
|
|
172
|
-
cardContentVariants,
|
|
173
|
-
cardFooterVariants,
|
|
174
|
-
cardHeaderVariants,
|
|
175
|
-
cardVariants
|
|
176
|
-
});
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import cn from "../utils/index.js";
|
|
5
|
-
const cardVariants = cva("rounded-xl bg-card text-card-foreground", {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: "border shadow",
|
|
9
|
-
elevated: "shadow-lg",
|
|
10
|
-
outlined: "border-2",
|
|
11
|
-
ghost: "border-0 shadow-none"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
variant: "default"
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
const Card = React.forwardRef(
|
|
19
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
ref,
|
|
23
|
-
className: cn(cardVariants({ variant, className })),
|
|
24
|
-
...props
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
Card.displayName = "Card";
|
|
29
|
-
const cardHeaderVariants = cva("flex flex-col space-y-1.5", {
|
|
30
|
-
variants: {
|
|
31
|
-
padding: {
|
|
32
|
-
none: "p-0",
|
|
33
|
-
sm: "p-4",
|
|
34
|
-
default: "p-6",
|
|
35
|
-
lg: "p-8"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
padding: "default"
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const CardHeader = React.forwardRef(
|
|
43
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
ref,
|
|
47
|
-
className: cn(cardHeaderVariants({ padding, className })),
|
|
48
|
-
...props
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
);
|
|
52
|
-
CardHeader.displayName = "CardHeader";
|
|
53
|
-
const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
ref,
|
|
57
|
-
className: cn(
|
|
58
|
-
"font-semibold leading-none tracking-tight text-2xl",
|
|
59
|
-
className
|
|
60
|
-
),
|
|
61
|
-
...props
|
|
62
|
-
}
|
|
63
|
-
));
|
|
64
|
-
CardTitle.displayName = "CardTitle";
|
|
65
|
-
const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
ref,
|
|
69
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
70
|
-
...props
|
|
71
|
-
}
|
|
72
|
-
));
|
|
73
|
-
CardDescription.displayName = "CardDescription";
|
|
74
|
-
const cardContentVariants = cva("", {
|
|
75
|
-
variants: {
|
|
76
|
-
padding: {
|
|
77
|
-
none: "p-0",
|
|
78
|
-
sm: "p-4 pt-0",
|
|
79
|
-
default: "p-6 pt-0",
|
|
80
|
-
lg: "p-8 pt-0"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
padding: "default"
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
const CardContent = React.forwardRef(
|
|
88
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
ref,
|
|
92
|
-
className: cn(cardContentVariants({ padding, className })),
|
|
93
|
-
...props
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
);
|
|
97
|
-
CardContent.displayName = "CardContent";
|
|
98
|
-
const cardFooterVariants = cva("flex items-center", {
|
|
99
|
-
variants: {
|
|
100
|
-
padding: {
|
|
101
|
-
none: "p-0",
|
|
102
|
-
sm: "p-4 pt-0",
|
|
103
|
-
default: "p-6 pt-0",
|
|
104
|
-
lg: "p-8 pt-0"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
defaultVariants: {
|
|
108
|
-
padding: "default"
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
const CardFooter = React.forwardRef(
|
|
112
|
-
({ className, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
ref,
|
|
116
|
-
className: cn(cardFooterVariants({ padding, className })),
|
|
117
|
-
...props
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
CardFooter.displayName = "CardFooter";
|
|
122
|
-
export {
|
|
123
|
-
Card,
|
|
124
|
-
CardContent,
|
|
125
|
-
CardDescription,
|
|
126
|
-
CardFooter,
|
|
127
|
-
CardHeader,
|
|
128
|
-
CardTitle,
|
|
129
|
-
cardContentVariants,
|
|
130
|
-
cardFooterVariants,
|
|
131
|
-
cardHeaderVariants,
|
|
132
|
-
cardVariants
|
|
133
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const cardVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "ghost" | "elevated" | "outlined" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
/**
|
|
7
|
-
* CardProps — props for Card component.
|
|
8
|
-
*/
|
|
9
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Card — container component for grouped content.
|
|
13
|
-
*
|
|
14
|
-
* @usage
|
|
15
|
-
* Use Card to group related content:
|
|
16
|
-
* content cards, info panels, feature boxes, grouped sections.
|
|
17
|
-
*
|
|
18
|
-
* Props:
|
|
19
|
-
* - `variant` — visual variant: "default", "elevated", "outlined", "ghost" (defaults to "default").
|
|
20
|
-
*
|
|
21
|
-
* Note: Supports different visual styles via variant prop.
|
|
22
|
-
* Use with CardHeader, CardTitle, CardDescription, CardContent, and CardFooter for structured layout.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <Card>
|
|
27
|
-
* <CardHeader>
|
|
28
|
-
* <CardTitle>Card Title</CardTitle>
|
|
29
|
-
* </CardHeader>
|
|
30
|
-
* <CardContent>Content here</CardContent>
|
|
31
|
-
* </Card>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
declare const cardHeaderVariants: (props?: ({
|
|
36
|
-
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
37
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
38
|
-
/**
|
|
39
|
-
* CardHeaderProps — props for CardHeader component.
|
|
40
|
-
*/
|
|
41
|
-
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardHeaderVariants> {
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* CardHeader — header section of a Card.
|
|
45
|
-
*
|
|
46
|
-
* @usage
|
|
47
|
-
* Use CardHeader to wrap card title and description:
|
|
48
|
-
* card headers with title and optional description.
|
|
49
|
-
*
|
|
50
|
-
* Props:
|
|
51
|
-
* - `padding` — padding size: "none", "sm", "default", "lg" (defaults to "default").
|
|
52
|
-
*/
|
|
53
|
-
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
/**
|
|
55
|
-
* CardTitle — title component for Card header.
|
|
56
|
-
*
|
|
57
|
-
* @usage
|
|
58
|
-
* Use CardTitle to display card title:
|
|
59
|
-
* card headlines, card headings.
|
|
60
|
-
*
|
|
61
|
-
* Note: Uses large semibold text (2xl) with tight tracking.
|
|
62
|
-
*/
|
|
63
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
-
/**
|
|
65
|
-
* CardDescription — description component for Card header.
|
|
66
|
-
*
|
|
67
|
-
* @usage
|
|
68
|
-
* Use CardDescription to display card description or subtitle:
|
|
69
|
-
* card subtitles, card descriptions, additional card information.
|
|
70
|
-
*
|
|
71
|
-
* Note: Uses small muted text color.
|
|
72
|
-
*/
|
|
73
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
-
declare const cardContentVariants: (props?: ({
|
|
75
|
-
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
76
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
77
|
-
/**
|
|
78
|
-
* CardContentProps — props for CardContent component.
|
|
79
|
-
*/
|
|
80
|
-
interface CardContentProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardContentVariants> {
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* CardContent — main content section of a Card.
|
|
84
|
-
*
|
|
85
|
-
* @usage
|
|
86
|
-
* Use CardContent to wrap card main content:
|
|
87
|
-
* card body, card main text, card details.
|
|
88
|
-
*
|
|
89
|
-
* Props:
|
|
90
|
-
* - `padding` — padding size: "none", "sm", "default", "lg" (defaults to "default").
|
|
91
|
-
*
|
|
92
|
-
* Note: Padding-top is always 0 to work seamlessly with CardHeader.
|
|
93
|
-
*/
|
|
94
|
-
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
declare const cardFooterVariants: (props?: ({
|
|
96
|
-
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
97
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
98
|
-
/**
|
|
99
|
-
* CardFooterProps — props for CardFooter component.
|
|
100
|
-
*/
|
|
101
|
-
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardFooterVariants> {
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* CardFooter — footer section of a Card.
|
|
105
|
-
*
|
|
106
|
-
* @usage
|
|
107
|
-
* Use CardFooter to wrap card actions or footer content:
|
|
108
|
-
* action buttons, links, additional information at card bottom.
|
|
109
|
-
*
|
|
110
|
-
* Props:
|
|
111
|
-
* - `padding` — padding size: "none", "sm", "default", "lg" (defaults to "default").
|
|
112
|
-
*
|
|
113
|
-
* Note: Uses flex layout to align items horizontally. Padding-top is always 0 to work seamlessly with CardContent.
|
|
114
|
-
*/
|
|
115
|
-
declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
116
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, cardVariants, cardHeaderVariants, cardContentVariants, cardFooterVariants, };
|