rockin 0.0.33 → 0.0.35

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 (90) hide show
  1. package/dist/chunk-3CZ2LLUN.js +198 -0
  2. package/dist/{chunk-7ZCRGTLA.js → chunk-54ZJAEO5.js} +5 -5
  3. package/dist/chunk-5GM3YR42.js +228 -0
  4. package/dist/chunk-6XUTSMTJ.js +183 -0
  5. package/dist/chunk-7JJBATB2.js +35 -0
  6. package/dist/chunk-BITCJZQZ.js +31 -0
  7. package/dist/chunk-COPQJFDI.js +158 -0
  8. package/dist/chunk-D6TULSM6.js +785 -0
  9. package/dist/chunk-DVNTJNDP.js +55 -0
  10. package/dist/chunk-EKDBYSMI.js +87 -0
  11. package/dist/chunk-FGWWRPMR.js +71 -0
  12. package/dist/chunk-G233W3IR.js +17 -0
  13. package/dist/chunk-G4NDAZTB.js +13 -0
  14. package/dist/chunk-GY2BX5SK.js +26 -0
  15. package/dist/chunk-MZBLIA6C.js +20 -0
  16. package/dist/chunk-OSVLAX37.js +101 -0
  17. package/dist/chunk-PRGKTXJU.js +20 -0
  18. package/dist/chunk-RUKQ532H.js +253 -0
  19. package/dist/chunk-S4H2HENE.js +113 -0
  20. package/dist/chunk-UHZTEDHK.js +61 -0
  21. package/dist/chunk-VFDNWPOI.js +293 -0
  22. package/dist/chunk-W4EIJWHF.js +150 -0
  23. package/dist/hooks/index.js +23 -16
  24. package/dist/index.js +4 -4
  25. package/dist/provider.js +3 -3
  26. package/dist/ui/accordion.js +95 -0
  27. package/dist/ui/alert-dialog.js +178 -0
  28. package/dist/ui/apple/english.js +7 -0
  29. package/dist/ui/apple/hindi.js +7 -0
  30. package/dist/ui/apple/index.js +52 -0
  31. package/dist/ui/apple/spanish.js +7 -0
  32. package/dist/ui/ariakit.js +7 -0
  33. package/dist/ui/autocomplete.js +296 -0
  34. package/dist/ui/avatar.js +106 -0
  35. package/dist/ui/badge.js +50 -0
  36. package/dist/ui/bridge.js +109 -0
  37. package/dist/ui/bubble.js +118 -0
  38. package/dist/ui/button-group.js +14 -0
  39. package/dist/ui/button.js +9 -0
  40. package/dist/ui/card.js +102 -0
  41. package/dist/ui/carousel.js +205 -0
  42. package/dist/ui/chart.js +253 -0
  43. package/dist/ui/checkbox.js +34 -0
  44. package/dist/ui/code-block.js +128 -0
  45. package/dist/ui/combobox.js +41 -0
  46. package/dist/ui/command.js +199 -0
  47. package/dist/ui/dashed.js +57 -0
  48. package/dist/ui/data-table/index.js +233 -0
  49. package/dist/ui/dialog.js +26 -0
  50. package/dist/ui/dock.js +86 -0
  51. package/dist/ui/drawer.js +216 -0
  52. package/dist/ui/dropdown-menu.js +35 -0
  53. package/dist/ui/empty.js +17 -0
  54. package/dist/ui/farmer/div.js +38 -0
  55. package/dist/ui/farmer/variants.js +314 -0
  56. package/dist/ui/field.js +224 -0
  57. package/dist/ui/filters.js +1524 -0
  58. package/dist/ui/image.js +88 -0
  59. package/dist/ui/index.d.ts +1 -1
  60. package/dist/ui/index.js +57 -8502
  61. package/dist/ui/input-group.js +20 -0
  62. package/dist/ui/input-otp.js +83 -0
  63. package/dist/ui/input.js +7 -0
  64. package/dist/ui/item.js +200 -0
  65. package/dist/ui/jelly.js +30 -0
  66. package/dist/ui/kbd.js +9 -0
  67. package/dist/ui/label.js +7 -0
  68. package/dist/ui/message-scroller.js +122 -0
  69. package/dist/ui/message.js +93 -0
  70. package/dist/ui/numberstepper.js +416 -0
  71. package/dist/ui/otp.js +403 -0
  72. package/dist/ui/popover.js +83 -0
  73. package/dist/ui/qr-code.js +124 -0
  74. package/dist/ui/quantity.js +48 -0
  75. package/dist/ui/radio-group.js +42 -0
  76. package/dist/ui/resizable.js +52 -0
  77. package/dist/ui/scroll-area.js +9 -0
  78. package/dist/ui/select.js +194 -0
  79. package/dist/ui/separator.js +7 -0
  80. package/dist/ui/skeleton.js +25 -0
  81. package/dist/ui/sonner.js +22 -0
  82. package/dist/ui/sortable.js +503 -0
  83. package/dist/ui/swipe-actions.js +45 -0
  84. package/dist/ui/switch.js +34 -0
  85. package/dist/ui/textarea.js +7 -0
  86. package/dist/ui/theme-toggle.js +141 -0
  87. package/dist/ui/tooltip.js +13 -0
  88. package/package.json +1 -1
  89. package/dist/chunk-4KFB6AJH.js +0 -1330
  90. /package/dist/{chunk-FYFBWCMJ.js → chunk-GBVAFFZR.js} +0 -0
@@ -0,0 +1,106 @@
1
+ "use client";
2
+
3
+ // src/ui/avatar.tsx
4
+ import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
5
+ import { cn } from "cn";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function Avatar({
8
+ className,
9
+ size = "default",
10
+ ...props
11
+ }) {
12
+ return /* @__PURE__ */ jsx(
13
+ AvatarPrimitive.Root,
14
+ {
15
+ "data-slot": "avatar",
16
+ "data-size": size,
17
+ className: cn(
18
+ "group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
19
+ className
20
+ ),
21
+ ...props
22
+ }
23
+ );
24
+ }
25
+ function AvatarImage({ className, ...props }) {
26
+ return /* @__PURE__ */ jsx(
27
+ AvatarPrimitive.Image,
28
+ {
29
+ "data-slot": "avatar-image",
30
+ className: cn(
31
+ "aspect-square size-full rounded-full object-cover",
32
+ className
33
+ ),
34
+ ...props
35
+ }
36
+ );
37
+ }
38
+ function AvatarFallback({
39
+ className,
40
+ ...props
41
+ }) {
42
+ return /* @__PURE__ */ jsx(
43
+ AvatarPrimitive.Fallback,
44
+ {
45
+ "data-slot": "avatar-fallback",
46
+ className: cn(
47
+ "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ function AvatarBadge({ className, ...props }) {
55
+ return /* @__PURE__ */ jsx(
56
+ "span",
57
+ {
58
+ "data-slot": "avatar-badge",
59
+ className: cn(
60
+ "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
61
+ "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
62
+ "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
63
+ "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
64
+ className
65
+ ),
66
+ ...props
67
+ }
68
+ );
69
+ }
70
+ function AvatarGroup({ className, ...props }) {
71
+ return /* @__PURE__ */ jsx(
72
+ "div",
73
+ {
74
+ "data-slot": "avatar-group",
75
+ className: cn(
76
+ "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
77
+ className
78
+ ),
79
+ ...props
80
+ }
81
+ );
82
+ }
83
+ function AvatarGroupCount({
84
+ className,
85
+ ...props
86
+ }) {
87
+ return /* @__PURE__ */ jsx(
88
+ "div",
89
+ {
90
+ "data-slot": "avatar-group-count",
91
+ className: cn(
92
+ "relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
93
+ className
94
+ ),
95
+ ...props
96
+ }
97
+ );
98
+ }
99
+ export {
100
+ Avatar,
101
+ AvatarBadge,
102
+ AvatarFallback,
103
+ AvatarGroup,
104
+ AvatarGroupCount,
105
+ AvatarImage
106
+ };
@@ -0,0 +1,50 @@
1
+ "use client";
2
+
3
+ // src/ui/badge.tsx
4
+ import { mergeProps } from "@base-ui/react/merge-props";
5
+ import { useRender } from "@base-ui/react/use-render";
6
+ import { cva } from "class-variance-authority";
7
+ import { cn } from "cn";
8
+ var badgeVariants = cva(
9
+ "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
10
+ {
11
+ variants: {
12
+ variant: {
13
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
14
+ secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
15
+ destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
16
+ outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
17
+ ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
18
+ link: "text-primary underline-offset-4 hover:underline"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ variant: "default"
23
+ }
24
+ }
25
+ );
26
+ function Badge({
27
+ className,
28
+ variant = "default",
29
+ render,
30
+ ...props
31
+ }) {
32
+ return useRender({
33
+ defaultTagName: "span",
34
+ props: mergeProps(
35
+ {
36
+ className: cn(badgeVariants({ variant }), className)
37
+ },
38
+ props
39
+ ),
40
+ render,
41
+ state: {
42
+ slot: "badge",
43
+ variant
44
+ }
45
+ });
46
+ }
47
+ export {
48
+ Badge,
49
+ badgeVariants
50
+ };
@@ -0,0 +1,109 @@
1
+ "use client";
2
+ import {
3
+ getNativeAppPlugin,
4
+ getNativePlatform,
5
+ getNativeStatusBarPlugin,
6
+ getNativeThemePlugin,
7
+ isNativeApp
8
+ } from "../chunk-ATPUW3SQ.js";
9
+
10
+ // src/ui/bridge.tsx
11
+ import { useRouter } from "next/navigation";
12
+ import * as React from "react";
13
+ function getAppPath(value) {
14
+ try {
15
+ const url = new URL(value);
16
+ if (url.protocol === "https:" && url.hostname === "kdpower.in") {
17
+ return `${url.pathname}${url.search}${url.hash}`;
18
+ }
19
+ if (url.protocol === "kdpower:" && url.hostname === "open") {
20
+ return `${url.pathname}${url.search}${url.hash}`;
21
+ }
22
+ } catch {
23
+ }
24
+ return null;
25
+ }
26
+ function getCurrentTheme() {
27
+ return document.documentElement.classList.contains("dark") ? "dark" : "light";
28
+ }
29
+ function syncNativeStatusBar() {
30
+ const statusBar = getNativeStatusBarPlugin();
31
+ if (!statusBar) return;
32
+ const theme = getCurrentTheme();
33
+ const backgroundColor = theme === "dark" ? "#000000" : "#ffffff";
34
+ void Promise.all([
35
+ statusBar.setStyle?.({
36
+ style: theme === "dark" ? "DARK" : "LIGHT"
37
+ }),
38
+ statusBar.setBackgroundColor?.({
39
+ color: backgroundColor
40
+ })
41
+ ]).catch(() => {
42
+ });
43
+ }
44
+ function syncNativeTheme() {
45
+ const nativeTheme = getNativeThemePlugin();
46
+ if (!nativeTheme) return;
47
+ void nativeTheme.setStyle?.({
48
+ style: getCurrentTheme()
49
+ }).catch(() => {
50
+ });
51
+ }
52
+ function syncNativeAppearance() {
53
+ syncNativeStatusBar();
54
+ syncNativeTheme();
55
+ }
56
+ function NativeAppBridge() {
57
+ const router = useRouter();
58
+ React.useEffect(() => {
59
+ if (!isNativeApp()) return;
60
+ const root = document.documentElement;
61
+ const platform = getNativePlatform();
62
+ root.dataset.nativeApp = "true";
63
+ if (platform) {
64
+ root.dataset.nativePlatform = platform;
65
+ }
66
+ if (platform === "ios" && navigator.platform === "MacIntel" && navigator.maxTouchPoints < 2) {
67
+ root.dataset.nativeDevice = "mac";
68
+ }
69
+ syncNativeAppearance();
70
+ const themeObserver = new MutationObserver(() => {
71
+ syncNativeAppearance();
72
+ });
73
+ themeObserver.observe(root, {
74
+ attributes: true,
75
+ attributeFilter: ["class"]
76
+ });
77
+ let cancelled = false;
78
+ let removeAppUrlListener;
79
+ const appPlugin = getNativeAppPlugin();
80
+ if (appPlugin?.addListener) {
81
+ const listenerResult = appPlugin.addListener("appUrlOpen", ({ url }) => {
82
+ const path = getAppPath(url);
83
+ if (path) {
84
+ router.push(path);
85
+ }
86
+ });
87
+ void Promise.resolve(listenerResult).then((listener) => {
88
+ if (cancelled) {
89
+ void listener.remove();
90
+ return;
91
+ }
92
+ removeAppUrlListener = () => listener.remove();
93
+ }).catch(() => {
94
+ });
95
+ }
96
+ return () => {
97
+ cancelled = true;
98
+ themeObserver.disconnect();
99
+ void removeAppUrlListener?.();
100
+ delete root.dataset.nativeApp;
101
+ delete root.dataset.nativePlatform;
102
+ delete root.dataset.nativeDevice;
103
+ };
104
+ }, [router]);
105
+ return null;
106
+ }
107
+ export {
108
+ NativeAppBridge
109
+ };
@@ -0,0 +1,118 @@
1
+ "use client";
2
+
3
+ // src/ui/bubble.tsx
4
+ import { mergeProps } from "@base-ui/react/merge-props";
5
+ import { useRender } from "@base-ui/react/use-render";
6
+ import { cva } from "class-variance-authority";
7
+ import { cn } from "cn";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function BubbleGroup({ className, ...props }) {
10
+ return /* @__PURE__ */ jsx(
11
+ "div",
12
+ {
13
+ "data-slot": "bubble-group",
14
+ className: cn("flex min-w-0 flex-col gap-2", className),
15
+ ...props
16
+ }
17
+ );
18
+ }
19
+ var bubbleVariants = cva(
20
+ "group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",
21
+ {
22
+ variants: {
23
+ variant: {
24
+ default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
25
+ secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
26
+ muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
27
+ tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
28
+ outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",
29
+ ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",
30
+ destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ variant: "default"
35
+ }
36
+ }
37
+ );
38
+ function Bubble({
39
+ variant = "default",
40
+ align = "start",
41
+ className,
42
+ ...props
43
+ }) {
44
+ return /* @__PURE__ */ jsx(
45
+ "div",
46
+ {
47
+ "data-slot": "bubble",
48
+ "data-variant": variant,
49
+ "data-align": align,
50
+ className: cn(bubbleVariants({ variant }), className),
51
+ ...props
52
+ }
53
+ );
54
+ }
55
+ function BubbleContent({
56
+ className,
57
+ render,
58
+ ...props
59
+ }) {
60
+ return useRender({
61
+ defaultTagName: "div",
62
+ props: mergeProps(
63
+ {
64
+ className: cn(
65
+ "w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",
66
+ className
67
+ )
68
+ },
69
+ props
70
+ ),
71
+ render,
72
+ state: {
73
+ slot: "bubble-content"
74
+ }
75
+ });
76
+ }
77
+ var bubbleReactionsVariants = cva(
78
+ "absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",
79
+ {
80
+ variants: {
81
+ side: {
82
+ top: "top-0 -translate-y-3/4",
83
+ bottom: "bottom-0 translate-y-3/4"
84
+ },
85
+ align: {
86
+ start: "left-3",
87
+ end: "right-3"
88
+ }
89
+ },
90
+ defaultVariants: {
91
+ side: "bottom",
92
+ align: "end"
93
+ }
94
+ }
95
+ );
96
+ function BubbleReactions({
97
+ side = "bottom",
98
+ align = "end",
99
+ className,
100
+ ...props
101
+ }) {
102
+ return /* @__PURE__ */ jsx(
103
+ "div",
104
+ {
105
+ "data-slot": "bubble-reactions",
106
+ "data-align": align,
107
+ "data-side": side,
108
+ className: cn(bubbleReactionsVariants({ side, align }), className),
109
+ ...props
110
+ }
111
+ );
112
+ }
113
+ export {
114
+ Bubble,
115
+ BubbleContent,
116
+ BubbleGroup,
117
+ BubbleReactions
118
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import {
3
+ ButtonGroup,
4
+ ButtonGroupSeparator,
5
+ ButtonGroupText,
6
+ buttonGroupVariants
7
+ } from "../chunk-EKDBYSMI.js";
8
+ import "../chunk-GY2BX5SK.js";
9
+ export {
10
+ ButtonGroup,
11
+ ButtonGroupSeparator,
12
+ ButtonGroupText,
13
+ buttonGroupVariants
14
+ };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ Button,
4
+ buttonVariants
5
+ } from "../chunk-DVNTJNDP.js";
6
+ export {
7
+ Button,
8
+ buttonVariants
9
+ };
@@ -0,0 +1,102 @@
1
+ "use client";
2
+
3
+ // src/ui/card.tsx
4
+ import * as React from "react";
5
+ import { cn } from "cn";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Card = React.forwardRef(function Card2({ className, size = "default", ...props }, ref) {
8
+ return /* @__PURE__ */ jsx(
9
+ "div",
10
+ {
11
+ ref,
12
+ "data-slot": "card",
13
+ "data-size": size,
14
+ className: cn(
15
+ "group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
16
+ className
17
+ ),
18
+ ...props
19
+ }
20
+ );
21
+ });
22
+ function CardHeader({ className, ...props }) {
23
+ return /* @__PURE__ */ jsx(
24
+ "div",
25
+ {
26
+ "data-slot": "card-header",
27
+ className: cn(
28
+ "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
29
+ className
30
+ ),
31
+ ...props
32
+ }
33
+ );
34
+ }
35
+ function CardTitle({ className, ...props }) {
36
+ return /* @__PURE__ */ jsx(
37
+ "div",
38
+ {
39
+ "data-slot": "card-title",
40
+ className: cn(
41
+ "text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
42
+ className
43
+ ),
44
+ ...props
45
+ }
46
+ );
47
+ }
48
+ function CardDescription({ className, ...props }) {
49
+ return /* @__PURE__ */ jsx(
50
+ "div",
51
+ {
52
+ "data-slot": "card-description",
53
+ className: cn("text-sm text-muted-foreground", className),
54
+ ...props
55
+ }
56
+ );
57
+ }
58
+ function CardAction({ className, ...props }) {
59
+ return /* @__PURE__ */ jsx(
60
+ "div",
61
+ {
62
+ "data-slot": "card-action",
63
+ className: cn(
64
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
65
+ className
66
+ ),
67
+ ...props
68
+ }
69
+ );
70
+ }
71
+ function CardContent({ className, ...props }) {
72
+ return /* @__PURE__ */ jsx(
73
+ "div",
74
+ {
75
+ "data-slot": "card-content",
76
+ className: cn("px-(--card-spacing)", className),
77
+ ...props
78
+ }
79
+ );
80
+ }
81
+ function CardFooter({ className, ...props }) {
82
+ return /* @__PURE__ */ jsx(
83
+ "div",
84
+ {
85
+ "data-slot": "card-footer",
86
+ className: cn(
87
+ "flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
88
+ className
89
+ ),
90
+ ...props
91
+ }
92
+ );
93
+ }
94
+ export {
95
+ Card,
96
+ CardAction,
97
+ CardContent,
98
+ CardDescription,
99
+ CardFooter,
100
+ CardHeader,
101
+ CardTitle
102
+ };