@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 t } from "../../utils/index.es.js";
4
- const s = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
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: a,
8
- className: t(
9
- "p-4 rounded-lg border border-border bg-card text-card-foreground",
10
- r
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
- ...e
12
+ ...r
13
13
  }
14
14
  ));
15
- s.displayName = "Card";
16
- const f = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
15
+ t.displayName = "Card";
16
+ const l = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
17
17
  "div",
18
18
  {
19
- ref: a,
20
- className: t("flex flex-col gap-y-1 pb-4", r),
21
- ...e
19
+ ref: e,
20
+ className: s("flex flex-col gap-y-1 pb-4 shrink-0", a),
21
+ ...r
22
22
  }
23
23
  ));
24
- f.displayName = "CardHeader";
25
- const i = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
24
+ l.displayName = "CardHeader";
25
+ const i = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
26
26
  "h3",
27
27
  {
28
- ref: a,
29
- className: t(
28
+ ref: e,
29
+ className: s(
30
30
  "h4 leading-none",
31
- r
31
+ a
32
32
  ),
33
- ...e
33
+ ...r
34
34
  }
35
35
  ));
36
36
  i.displayName = "CardTitle";
37
- const l = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
37
+ const f = o.forwardRef(({ className: a, ...r }, e) => /* @__PURE__ */ d(
38
38
  "p",
39
39
  {
40
- ref: a,
41
- className: t("text-body text-muted-foreground", r),
42
- ...e
40
+ ref: e,
41
+ className: s("caption", a),
42
+ ...r
43
43
  }
44
44
  ));
45
- l.displayName = "CardDescription";
46
- const n = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d("div", { ref: a, className: r, ...e }));
47
- n.displayName = "CardContent";
48
- const c = o.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
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: a,
52
- className: t(
51
+ ref: e,
52
+ className: s(
53
53
  "flex items-center w-full pt-4 gap-2 justify-end",
54
- r
54
+ a
55
55
  ),
56
- ...e
56
+ ...r
57
57
  }
58
58
  ));
59
- c.displayName = "CardFooter";
59
+ n.displayName = "CardFooter";
60
60
  export {
61
- s as Card,
62
- n as CardContent,
63
- l as CardDescription,
64
- c as CardFooter,
65
- f as CardHeader,
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(\"text-body text-muted-foreground\", 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={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,8BAA8BJ,CAAS;AAAA,IACpD,GAAGC;AAAA,EAAA;AACN,CACD;AACDI,EAAW,cAAc;AAEnB,MAAAC,IAAYP,EAAM,WAGtB,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;AACDK,EAAU,cAAc;AAElB,MAAAC,IAAkBR,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,mCAAmCJ,CAAS;AAAA,IACzD,GAAGC;AAAA,EAAA;AACN,CACD;AACDM,EAAgB,cAAc;AAE9B,MAAMC,IAAcT,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,wBACzB,OAAI,EAAA,KAAAA,GAAU,WAAAF,GAAuB,GAAGC,GAAO,CACjD;AACDO,EAAY,cAAc;AAEpB,MAAAC,IAAaV,EAAM,WAGvB,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;AACDQ,EAAW,cAAc;"}
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;AA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,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDQ,EAAW,cAAc;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",