@cryptlex/web-components 1.6.2 → 1.6.3
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.
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
3
|
+
import { cn as s } from "../../utils/index.es.js";
|
|
4
|
+
const t = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
|
-
ref:
|
|
8
|
-
className:
|
|
9
|
-
"p-4 rounded-lg border border-border bg-card text-card-foreground",
|
|
10
|
-
|
|
7
|
+
ref: e,
|
|
8
|
+
className: s(
|
|
9
|
+
"flex flex-col p-4 rounded-lg border border-border bg-card text-card-foreground",
|
|
10
|
+
a
|
|
11
11
|
),
|
|
12
|
-
...
|
|
12
|
+
...r
|
|
13
13
|
}
|
|
14
14
|
));
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
t.displayName = "Card";
|
|
16
|
+
const l = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
|
-
ref:
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
19
|
+
ref: e,
|
|
20
|
+
className: s("flex flex-col gap-y-1 pb-4 shrink-0", a),
|
|
21
|
+
...r
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
|
|
25
|
-
const i = o.forwardRef(({ className:
|
|
24
|
+
l.displayName = "CardHeader";
|
|
25
|
+
const i = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
|
|
26
26
|
"h3",
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
className:
|
|
28
|
+
ref: e,
|
|
29
|
+
className: s(
|
|
30
30
|
"h4 leading-none",
|
|
31
|
-
|
|
31
|
+
a
|
|
32
32
|
),
|
|
33
|
-
...
|
|
33
|
+
...r
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
36
|
i.displayName = "CardTitle";
|
|
37
|
-
const
|
|
37
|
+
const f = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
|
|
38
38
|
"p",
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
41
|
-
className:
|
|
42
|
-
...
|
|
40
|
+
ref: e,
|
|
41
|
+
className: s("caption", a),
|
|
42
|
+
...r
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
const
|
|
45
|
+
f.displayName = "CardDescription";
|
|
46
|
+
const c = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d("div", { ref: e, className: s("grow", a), ...r }));
|
|
47
|
+
c.displayName = "CardContent";
|
|
48
|
+
const n = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
52
|
-
className:
|
|
51
|
+
ref: e,
|
|
52
|
+
className: s(
|
|
53
53
|
"flex items-center w-full pt-4 gap-2 justify-end",
|
|
54
|
-
|
|
54
|
+
a
|
|
55
55
|
),
|
|
56
|
-
...
|
|
56
|
+
...r
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
|
-
|
|
59
|
+
n.displayName = "CardFooter";
|
|
60
60
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
t as Card,
|
|
62
|
+
c as CardContent,
|
|
63
|
+
f as CardDescription,
|
|
64
|
+
n as CardFooter,
|
|
65
|
+
l as CardHeader,
|
|
66
66
|
i as CardTitle
|
|
67
67
|
};
|
|
68
68
|
//# sourceMappingURL=card.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.es.js","sources":["../../../lib/components/ui/card.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils\";\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"p-4 rounded-lg border border-border bg-card text-card-foreground\",\n className\n )}\n {...props}\n />\n));\nCard.displayName = \"Card\";\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex flex-col gap-y-1 pb-4\", className)}\n {...props}\n />\n));\nCardHeader.displayName = \"CardHeader\";\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\n \"h4 leading-none\",\n className\n )}\n {...props}\n />\n));\nCardTitle.displayName = \"CardTitle\";\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn(\"
|
|
1
|
+
{"version":3,"file":"card.es.js","sources":["../../../lib/components/ui/card.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils\";\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"flex flex-col p-4 rounded-lg border border-border bg-card text-card-foreground\",\n className\n )}\n {...props}\n />\n));\nCard.displayName = \"Card\";\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex flex-col gap-y-1 pb-4 shrink-0\", className)}\n {...props}\n />\n));\nCardHeader.displayName = \"CardHeader\";\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\n \"h4 leading-none\",\n className\n )}\n {...props}\n />\n));\nCardTitle.displayName = \"CardTitle\";\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn(\"caption\", className)}\n {...props}\n />\n));\nCardDescription.displayName = \"CardDescription\";\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"grow\", className)} {...props} />\n));\nCardContent.displayName = \"CardContent\";\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"flex items-center w-full pt-4 gap-2 justify-end\",\n className\n )}\n {...props}\n />\n));\nCardFooter.displayName = \"CardFooter\";\n\nexport {\n Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle\n};\n\n"],"names":["Card","React","className","props","ref","jsx","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter"],"mappings":";;;AAGM,MAAAA,IAAOC,EAAM,WAGjB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAK,cAAc;AAEb,MAAAO,IAAaN,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,uCAAuCJ,CAAS;AAAA,IAC7D,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAW,cAAc;AAEnB,MAAAC,IAAYP,EAAM,WAG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