@turingpaper/ui 0.0.1-test.1 → 0.0.1-test.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.
Files changed (75) hide show
  1. package/dist/accordion.mjs +46 -0
  2. package/dist/alert-dialog.mjs +113 -0
  3. package/dist/avatar.mjs +42 -0
  4. package/dist/badge.mjs +26 -0
  5. package/dist/breadcrumb.mjs +90 -0
  6. package/dist/button.mjs +26 -38
  7. package/dist/card.mjs +62 -96
  8. package/dist/chart.mjs +208 -0
  9. package/dist/checkbox.mjs +27 -0
  10. package/dist/collapsible.mjs +7 -0
  11. package/dist/command.mjs +109 -0
  12. package/dist/components/accordion.d.ts +6 -0
  13. package/dist/components/alert-dialog.d.ts +20 -0
  14. package/dist/components/avatar.d.ts +5 -0
  15. package/dist/components/badge.d.ts +9 -0
  16. package/dist/components/breadcrumb.d.ts +19 -0
  17. package/dist/components/button.d.ts +5 -4
  18. package/dist/components/card.d.ts +7 -10
  19. package/dist/components/chart.d.ts +62 -0
  20. package/dist/components/checkbox.d.ts +3 -0
  21. package/dist/components/collapsible.d.ts +4 -0
  22. package/dist/components/command.d.ts +80 -0
  23. package/dist/components/dialog.d.ts +19 -0
  24. package/dist/components/drawer.d.ts +22 -0
  25. package/dist/components/dropdown-menu.d.ts +23 -0
  26. package/dist/components/hover-card.d.ts +5 -0
  27. package/dist/components/input-group.d.ts +16 -0
  28. package/dist/components/input-otp.d.ts +34 -0
  29. package/dist/components/input.d.ts +1 -1
  30. package/dist/components/label.d.ts +3 -0
  31. package/dist/components/pagination.d.ts +28 -0
  32. package/dist/components/popover.d.ts +5 -0
  33. package/dist/components/progress.d.ts +3 -0
  34. package/dist/components/radio-group.d.ts +4 -0
  35. package/dist/components/scroll-area.d.ts +4 -0
  36. package/dist/components/select.d.ts +12 -0
  37. package/dist/components/separator.d.ts +3 -0
  38. package/dist/components/sheet.d.ts +25 -0
  39. package/dist/components/skeleton.d.ts +2 -0
  40. package/dist/components/slider.d.ts +3 -0
  41. package/dist/components/switch.d.ts +3 -0
  42. package/dist/components/table.d.ts +10 -0
  43. package/dist/components/tabs.d.ts +6 -0
  44. package/dist/components/textarea.d.ts +3 -0
  45. package/dist/components/toggle-group.d.ts +4 -0
  46. package/dist/components/toggle.d.ts +7 -0
  47. package/dist/components/tooltip.d.ts +6 -0
  48. package/dist/dialog.mjs +100 -0
  49. package/dist/drawer.mjs +98 -0
  50. package/dist/dropdown-menu.mjs +143 -0
  51. package/dist/hover-card.mjs +23 -0
  52. package/dist/input-group.mjs +141 -0
  53. package/dist/input-otp.mjs +48 -0
  54. package/dist/input.mjs +15 -13
  55. package/dist/label.mjs +19 -0
  56. package/dist/pagination.mjs +105 -0
  57. package/dist/popover.mjs +23 -0
  58. package/dist/progress.mjs +26 -0
  59. package/dist/provider.mjs +1 -1
  60. package/dist/radio-group.mjs +31 -0
  61. package/dist/scroll-area.mjs +38 -0
  62. package/dist/select.mjs +121 -0
  63. package/dist/separator.mjs +24 -0
  64. package/dist/sheet.mjs +110 -0
  65. package/dist/skeleton.mjs +17 -0
  66. package/dist/slider.mjs +23 -0
  67. package/dist/styles.css +1 -1
  68. package/dist/switch.mjs +27 -0
  69. package/dist/table.mjs +87 -0
  70. package/dist/tabs.mjs +46 -0
  71. package/dist/textarea.mjs +18 -0
  72. package/dist/toggle-group.mjs +41 -0
  73. package/dist/toggle.mjs +37 -0
  74. package/dist/tooltip.mjs +23 -0
  75. package/package.json +138 -2
@@ -0,0 +1,46 @@
1
+ import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import * as e from "radix-ui";
4
+ import { ChevronDown as m } from "lucide-react";
5
+ import { cn as s } from "./utils.mjs";
6
+ const h = e.Root, c = i.forwardRef(({ className: o, ...a }, r) => /* @__PURE__ */ t(
7
+ e.Item,
8
+ {
9
+ ref: r,
10
+ className: s("border-b", o),
11
+ ...a
12
+ }
13
+ ));
14
+ c.displayName = "AccordionItem";
15
+ const l = i.forwardRef(({ className: o, children: a, ...r }, n) => /* @__PURE__ */ t(e.Header, { className: "flex", children: /* @__PURE__ */ d(
16
+ e.Trigger,
17
+ {
18
+ ref: n,
19
+ className: s(
20
+ "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
21
+ o
22
+ ),
23
+ ...r,
24
+ children: [
25
+ a,
26
+ /* @__PURE__ */ t(m, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
27
+ ]
28
+ }
29
+ ) }));
30
+ l.displayName = e.Trigger.displayName;
31
+ const f = i.forwardRef(({ className: o, children: a, ...r }, n) => /* @__PURE__ */ t(
32
+ e.Content,
33
+ {
34
+ ref: n,
35
+ className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
36
+ ...r,
37
+ children: /* @__PURE__ */ t("div", { className: s("pb-4 pt-0", o), children: a })
38
+ }
39
+ ));
40
+ f.displayName = e.Content.displayName;
41
+ export {
42
+ h as Accordion,
43
+ f as AccordionContent,
44
+ c as AccordionItem,
45
+ l as AccordionTrigger
46
+ };
@@ -0,0 +1,113 @@
1
+ import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import * as t from "radix-ui";
4
+ import { cn as s } from "./utils.mjs";
5
+ import { buttonVariants as r } from "./button.mjs";
6
+ const w = t.Root, v = t.Trigger, m = t.Portal, d = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
7
+ t.Overlay,
8
+ {
9
+ className: s(
10
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
11
+ a
12
+ ),
13
+ ...e,
14
+ ref: o
15
+ }
16
+ ));
17
+ d.displayName = t.Overlay.displayName;
18
+ const c = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ n(m, { children: [
19
+ /* @__PURE__ */ l(d, {}),
20
+ /* @__PURE__ */ l(
21
+ t.Content,
22
+ {
23
+ ref: o,
24
+ className: s(
25
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
26
+ a
27
+ ),
28
+ ...e
29
+ }
30
+ )
31
+ ] }));
32
+ c.displayName = t.Content.displayName;
33
+ const f = ({
34
+ className: a,
35
+ ...e
36
+ }) => /* @__PURE__ */ l(
37
+ "div",
38
+ {
39
+ className: s(
40
+ "flex flex-col space-y-2 text-center sm:text-left",
41
+ a
42
+ ),
43
+ ...e
44
+ }
45
+ );
46
+ f.displayName = "AlertDialogHeader";
47
+ const p = ({
48
+ className: a,
49
+ ...e
50
+ }) => /* @__PURE__ */ l(
51
+ "div",
52
+ {
53
+ className: s(
54
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
55
+ a
56
+ ),
57
+ ...e
58
+ }
59
+ );
60
+ p.displayName = "AlertDialogFooter";
61
+ const g = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
62
+ t.Title,
63
+ {
64
+ ref: o,
65
+ className: s("text-lg font-semibold", a),
66
+ ...e
67
+ }
68
+ ));
69
+ g.displayName = t.Title.displayName;
70
+ const N = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
71
+ t.Description,
72
+ {
73
+ ref: o,
74
+ className: s("text-sm text-muted-foreground", a),
75
+ ...e
76
+ }
77
+ ));
78
+ N.displayName = t.Description.displayName;
79
+ const y = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
80
+ t.Action,
81
+ {
82
+ ref: o,
83
+ className: s(r(), a),
84
+ ...e
85
+ }
86
+ ));
87
+ y.displayName = t.Action.displayName;
88
+ const x = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ l(
89
+ t.Cancel,
90
+ {
91
+ ref: o,
92
+ className: s(
93
+ r({ variant: "outline" }),
94
+ "mt-2 sm:mt-0",
95
+ a
96
+ ),
97
+ ...e
98
+ }
99
+ ));
100
+ x.displayName = t.Cancel.displayName;
101
+ export {
102
+ w as AlertDialog,
103
+ y as AlertDialogAction,
104
+ x as AlertDialogCancel,
105
+ c as AlertDialogContent,
106
+ N as AlertDialogDescription,
107
+ p as AlertDialogFooter,
108
+ f as AlertDialogHeader,
109
+ d as AlertDialogOverlay,
110
+ m as AlertDialogPortal,
111
+ g as AlertDialogTitle,
112
+ v as AlertDialogTrigger
113
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import * as a from "radix-ui";
4
+ import { cn as s } from "./utils.mjs";
5
+ const t = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
6
+ a.Root,
7
+ {
8
+ ref: r,
9
+ className: s(
10
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
11
+ e
12
+ ),
13
+ ...l
14
+ }
15
+ ));
16
+ t.displayName = a.Root.displayName;
17
+ const f = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
18
+ a.Image,
19
+ {
20
+ ref: r,
21
+ className: s("aspect-square h-full w-full", e),
22
+ ...l
23
+ }
24
+ ));
25
+ f.displayName = a.Image.displayName;
26
+ const i = m.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ o(
27
+ a.Fallback,
28
+ {
29
+ ref: r,
30
+ className: s(
31
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
32
+ e
33
+ ),
34
+ ...l
35
+ }
36
+ ));
37
+ i.displayName = a.Fallback.displayName;
38
+ export {
39
+ t as Avatar,
40
+ i as AvatarFallback,
41
+ f as AvatarImage
42
+ };
package/dist/badge.mjs ADDED
@@ -0,0 +1,26 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { cva as n } from "class-variance-authority";
3
+ import { cn as a } from "./utils.mjs";
4
+ const i = n(
5
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
6
+ {
7
+ variants: {
8
+ variant: {
9
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
10
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
11
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
12
+ outline: "text-foreground"
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ variant: "default"
17
+ }
18
+ }
19
+ );
20
+ function f({ className: r, variant: e, ...t }) {
21
+ return /* @__PURE__ */ o("div", { className: a(i({ variant: e }), r), ...t });
22
+ }
23
+ export {
24
+ f as Badge,
25
+ i as badgeVariants
26
+ };
@@ -0,0 +1,90 @@
1
+ import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { Slot as n } from "radix-ui";
4
+ import { MoreHorizontal as c, ChevronRight as d } from "lucide-react";
5
+ import { cn as o } from "./utils.mjs";
6
+ const l = t.forwardRef(({ ...r }, e) => /* @__PURE__ */ s("nav", { ref: e, "aria-label": "breadcrumb", ...r }));
7
+ l.displayName = "Breadcrumb";
8
+ const p = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
9
+ "ol",
10
+ {
11
+ ref: a,
12
+ className: o(
13
+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
14
+ r
15
+ ),
16
+ ...e
17
+ }
18
+ ));
19
+ p.displayName = "BreadcrumbList";
20
+ const u = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
21
+ "li",
22
+ {
23
+ ref: a,
24
+ className: o("inline-flex items-center gap-1.5", r),
25
+ ...e
26
+ }
27
+ ));
28
+ u.displayName = "BreadcrumbItem";
29
+ const f = t.forwardRef(({ asChild: r, className: e, ...a }, m) => /* @__PURE__ */ s(
30
+ r ? n : "a",
31
+ {
32
+ ref: m,
33
+ className: o("transition-colors hover:text-foreground", e),
34
+ ...a
35
+ }
36
+ ));
37
+ f.displayName = "BreadcrumbLink";
38
+ const b = t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ s(
39
+ "span",
40
+ {
41
+ ref: a,
42
+ role: "link",
43
+ "aria-disabled": "true",
44
+ "aria-current": "page",
45
+ className: o("font-normal text-foreground", r),
46
+ ...e
47
+ }
48
+ ));
49
+ b.displayName = "BreadcrumbPage";
50
+ const N = ({
51
+ children: r,
52
+ className: e,
53
+ ...a
54
+ }) => /* @__PURE__ */ s(
55
+ "li",
56
+ {
57
+ role: "presentation",
58
+ "aria-hidden": "true",
59
+ className: o("[&>svg]:w-3.5 [&>svg]:h-3.5", e),
60
+ ...a,
61
+ children: r ?? /* @__PURE__ */ s(d, {})
62
+ }
63
+ );
64
+ N.displayName = "BreadcrumbSeparator";
65
+ const B = ({
66
+ className: r,
67
+ ...e
68
+ }) => /* @__PURE__ */ i(
69
+ "span",
70
+ {
71
+ role: "presentation",
72
+ "aria-hidden": "true",
73
+ className: o("flex h-9 w-9 items-center justify-center", r),
74
+ ...e,
75
+ children: [
76
+ /* @__PURE__ */ s(c, { className: "h-4 w-4" }),
77
+ /* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
78
+ ]
79
+ }
80
+ );
81
+ B.displayName = "BreadcrumbElipssis";
82
+ export {
83
+ l as Breadcrumb,
84
+ B as BreadcrumbEllipsis,
85
+ u as BreadcrumbItem,
86
+ f as BreadcrumbLink,
87
+ p as BreadcrumbList,
88
+ b as BreadcrumbPage,
89
+ N as BreadcrumbSeparator
90
+ };
package/dist/button.mjs CHANGED
@@ -1,28 +1,25 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { cva as s } from "class-variance-authority";
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as a from "react";
3
3
  import { Slot as d } from "radix-ui";
4
- import { cn as l } from "./utils.mjs";
5
- const u = s(
6
- "group/button inline-flex shrink-0 items-center justify-center rounded-4xl border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
4
+ import { cva as c } from "class-variance-authority";
5
+ import { cn as u } from "./utils.mjs";
6
+ const f = c(
7
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
7
8
  {
8
9
  variants: {
9
10
  variant: {
10
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
11
- outline: "border-border bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
12
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
13
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
14
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
11
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
12
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
13
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
14
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
15
+ ghost: "hover:bg-accent hover:text-accent-foreground",
15
16
  link: "text-primary underline-offset-4 hover:underline"
16
17
  },
17
18
  size: {
18
- default: "h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
19
- xs: "h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
20
- sm: "h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
21
- lg: "h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
22
- icon: "size-9",
23
- "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
24
- "icon-sm": "size-8",
25
- "icon-lg": "size-10"
19
+ default: "h-10 px-4 py-2",
20
+ sm: "h-9 rounded-md px-3",
21
+ lg: "h-11 rounded-md px-8",
22
+ icon: "h-10 w-10"
26
23
  }
27
24
  },
28
25
  defaultVariants: {
@@ -30,27 +27,18 @@ const u = s(
30
27
  size: "default"
31
28
  }
32
29
  }
33
- );
34
- function b({
35
- className: t,
36
- variant: e = "default",
37
- size: i = "default",
38
- asChild: r = !1,
39
- ...a
40
- }) {
41
- const n = r ? d.Root : "button";
42
- return /* @__PURE__ */ o(
43
- n,
30
+ ), g = a.forwardRef(
31
+ ({ className: e, variant: r, size: t, asChild: o = !1, ...n }, i) => /* @__PURE__ */ s(
32
+ o ? d : "button",
44
33
  {
45
- "data-slot": "button",
46
- "data-variant": e,
47
- "data-size": i,
48
- className: l(u({ variant: e, size: i, className: t })),
49
- ...a
34
+ className: u(f({ variant: r, size: t, className: e })),
35
+ ref: i,
36
+ ...n
50
37
  }
51
- );
52
- }
38
+ )
39
+ );
40
+ g.displayName = "Button";
53
41
  export {
54
- b as Button,
55
- u as buttonVariants
42
+ g as Button,
43
+ f as buttonVariants
56
44
  };
package/dist/card.mjs CHANGED
@@ -1,98 +1,64 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { cn as d } from "./utils.mjs";
3
- function i({
4
- className: a,
5
- size: r = "default",
6
- ...e
7
- }) {
8
- return /* @__PURE__ */ t(
9
- "div",
10
- {
11
- "data-slot": "card",
12
- "data-size": r,
13
- className: d(
14
- "group/card flex flex-col gap-6 overflow-hidden rounded-2xl bg-card py-6 text-sm text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
15
- a
16
- ),
17
- ...e
18
- }
19
- );
20
- }
21
- function n({ className: a, ...r }) {
22
- return /* @__PURE__ */ t(
23
- "div",
24
- {
25
- "data-slot": "card-header",
26
- className: d(
27
- "group/card-header @container/card-header grid auto-rows-min items-start gap-2 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
28
- a
29
- ),
30
- ...r
31
- }
32
- );
33
- }
34
- function c({ className: a, ...r }) {
35
- return /* @__PURE__ */ t(
36
- "div",
37
- {
38
- "data-slot": "card-title",
39
- className: d("text-base font-medium", a),
40
- ...r
41
- }
42
- );
43
- }
44
- function l({ className: a, ...r }) {
45
- return /* @__PURE__ */ t(
46
- "div",
47
- {
48
- "data-slot": "card-description",
49
- className: d("text-sm text-muted-foreground", a),
50
- ...r
51
- }
52
- );
53
- }
54
- function u({ className: a, ...r }) {
55
- return /* @__PURE__ */ t(
56
- "div",
57
- {
58
- "data-slot": "card-action",
59
- className: d(
60
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
61
- a
62
- ),
63
- ...r
64
- }
65
- );
66
- }
67
- function p({ className: a, ...r }) {
68
- return /* @__PURE__ */ t(
69
- "div",
70
- {
71
- "data-slot": "card-content",
72
- className: d("px-6 group-data-[size=sm]/card:px-4", a),
73
- ...r
74
- }
75
- );
76
- }
77
- function m({ className: a, ...r }) {
78
- return /* @__PURE__ */ t(
79
- "div",
80
- {
81
- "data-slot": "card-footer",
82
- className: d(
83
- "flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
84
- a
85
- ),
86
- ...r
87
- }
88
- );
89
- }
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { cn as t } from "./utils.mjs";
4
+ const s = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
5
+ "div",
6
+ {
7
+ ref: r,
8
+ className: t(
9
+ "rounded-lg border bg-card text-card-foreground shadow-sm",
10
+ a
11
+ ),
12
+ ...e
13
+ }
14
+ ));
15
+ s.displayName = "Card";
16
+ const i = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
17
+ "div",
18
+ {
19
+ ref: r,
20
+ className: t("flex flex-col space-y-1.5 p-6", a),
21
+ ...e
22
+ }
23
+ ));
24
+ i.displayName = "CardHeader";
25
+ const m = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
26
+ "div",
27
+ {
28
+ ref: r,
29
+ className: t(
30
+ "text-2xl font-semibold leading-none tracking-tight",
31
+ a
32
+ ),
33
+ ...e
34
+ }
35
+ ));
36
+ m.displayName = "CardTitle";
37
+ const c = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
38
+ "div",
39
+ {
40
+ ref: r,
41
+ className: t("text-sm text-muted-foreground", a),
42
+ ...e
43
+ }
44
+ ));
45
+ c.displayName = "CardDescription";
46
+ const l = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", a), ...e }));
47
+ l.displayName = "CardContent";
48
+ const n = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
49
+ "div",
50
+ {
51
+ ref: r,
52
+ className: t("flex items-center p-6 pt-0", a),
53
+ ...e
54
+ }
55
+ ));
56
+ n.displayName = "CardFooter";
90
57
  export {
91
- i as Card,
92
- u as CardAction,
93
- p as CardContent,
94
- l as CardDescription,
95
- m as CardFooter,
96
- n as CardHeader,
97
- c as CardTitle
58
+ s as Card,
59
+ l as CardContent,
60
+ c as CardDescription,
61
+ n as CardFooter,
62
+ i as CardHeader,
63
+ m as CardTitle
98
64
  };