create-reactivite 1.0.3 → 1.1.0

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 (44) hide show
  1. package/README.md +197 -177
  2. package/index.js +7 -0
  3. package/package.json +1 -1
  4. package/template/README.md +73 -73
  5. package/template/components.json +22 -22
  6. package/template/eslint.config.js +30 -23
  7. package/template/index.html +13 -13
  8. package/template/package.json +53 -51
  9. package/template/pnpm-lock.yaml +1521 -1766
  10. package/template/src/App.tsx +27 -13
  11. package/template/src/components/admin-page-components/activity-chart.tsx +80 -0
  12. package/template/src/components/admin-page-components/dashboard-header.tsx +38 -0
  13. package/template/src/components/admin-page-components/dashboard-layout.tsx +23 -0
  14. package/template/src/components/admin-page-components/dashboard-sales.tsx +67 -0
  15. package/template/src/components/admin-page-components/dashboard-sidebar.tsx +81 -0
  16. package/template/src/components/admin-page-components/revenu-chart.tsx +69 -0
  17. package/template/src/components/admin-page-components/stat-cards.tsx +50 -0
  18. package/template/src/components/home-page-components/header.tsx +2 -2
  19. package/template/src/components/ui/accordion.tsx +64 -64
  20. package/template/src/components/ui/alert.tsx +66 -66
  21. package/template/src/components/ui/avatar.tsx +51 -51
  22. package/template/src/components/ui/badge.tsx +46 -46
  23. package/template/src/components/ui/button-group.tsx +83 -83
  24. package/template/src/components/ui/button.tsx +60 -60
  25. package/template/src/components/ui/calendar.tsx +210 -211
  26. package/template/src/components/ui/card.tsx +92 -92
  27. package/template/src/components/ui/checkbox.tsx +30 -30
  28. package/template/src/components/ui/collapsible.tsx +31 -31
  29. package/template/src/components/ui/dialog.tsx +141 -141
  30. package/template/src/components/ui/input.tsx +21 -0
  31. package/template/src/components/ui/select.tsx +185 -185
  32. package/template/src/components/ui/separator.tsx +26 -26
  33. package/template/src/components/ui/sonner.tsx +38 -38
  34. package/template/src/components/ui/spinner.tsx +16 -16
  35. package/template/src/components/ui/table.tsx +114 -114
  36. package/template/src/components/ui/toggle.tsx +45 -45
  37. package/template/src/components/ui/tooltip.tsx +59 -59
  38. package/template/src/lib/utils.ts +6 -6
  39. package/template/src/main.tsx +10 -10
  40. package/template/src/pages/Dashboard/Dashboard.tsx +32 -0
  41. package/template/tsconfig.app.json +31 -28
  42. package/template/tsconfig.json +12 -14
  43. package/template/tsconfig.node.json +26 -26
  44. package/template/vite.config.ts +13 -14
@@ -1,211 +1,210 @@
1
- import * as React from "react"
2
- import {
3
- ChevronDownIcon,
4
- ChevronLeftIcon,
5
- ChevronRightIcon,
6
- } from "lucide-react"
7
- import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker"
8
-
9
- import { cn } from "@/lib/utils"
10
- import { Button, buttonVariants } from "@/components/ui/button"
11
-
12
- function Calendar({
13
- className,
14
- classNames,
15
- showOutsideDays = true,
16
- captionLayout = "label",
17
- buttonVariant = "ghost",
18
- formatters,
19
- components,
20
- ...props
21
- }: React.ComponentProps<typeof DayPicker> & {
22
- buttonVariant?: React.ComponentProps<typeof Button>["variant"]
23
- }) {
24
- const defaultClassNames = getDefaultClassNames()
25
-
26
- return (
27
- <DayPicker
28
- showOutsideDays={showOutsideDays}
29
- className={cn(
30
- "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
31
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
32
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
33
- className
34
- )}
35
- captionLayout={captionLayout}
36
- formatters={{
37
- formatMonthDropdown: (date) =>
38
- date.toLocaleString("default", { month: "short" }),
39
- ...formatters,
40
- }}
41
- classNames={{
42
- root: cn("w-fit", defaultClassNames.root),
43
- months: cn(
44
- "flex gap-4 flex-col md:flex-row relative",
45
- defaultClassNames.months
46
- ),
47
- month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
48
- nav: cn(
49
- "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
50
- defaultClassNames.nav
51
- ),
52
- button_previous: cn(
53
- buttonVariants({ variant: buttonVariant }),
54
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
55
- defaultClassNames.button_previous
56
- ),
57
- button_next: cn(
58
- buttonVariants({ variant: buttonVariant }),
59
- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
60
- defaultClassNames.button_next
61
- ),
62
- month_caption: cn(
63
- "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
64
- defaultClassNames.month_caption
65
- ),
66
- dropdowns: cn(
67
- "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
68
- defaultClassNames.dropdowns
69
- ),
70
- dropdown_root: cn(
71
- "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
72
- defaultClassNames.dropdown_root
73
- ),
74
- dropdown: cn(
75
- "absolute bg-popover inset-0 opacity-0",
76
- defaultClassNames.dropdown
77
- ),
78
- caption_label: cn(
79
- "select-none font-medium",
80
- captionLayout === "label"
81
- ? "text-sm"
82
- : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
83
- defaultClassNames.caption_label
84
- ),
85
- table: "w-full border-collapse",
86
- weekdays: cn("flex", defaultClassNames.weekdays),
87
- weekday: cn(
88
- "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
89
- defaultClassNames.weekday
90
- ),
91
- week: cn("flex w-full mt-2", defaultClassNames.week),
92
- week_number_header: cn(
93
- "select-none w-(--cell-size)",
94
- defaultClassNames.week_number_header
95
- ),
96
- week_number: cn(
97
- "text-[0.8rem] select-none text-muted-foreground",
98
- defaultClassNames.week_number
99
- ),
100
- day: cn(
101
- "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
102
- defaultClassNames.day
103
- ),
104
- range_start: cn(
105
- "rounded-l-md bg-accent",
106
- defaultClassNames.range_start
107
- ),
108
- range_middle: cn("rounded-none", defaultClassNames.range_middle),
109
- range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
110
- today: cn(
111
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
112
- defaultClassNames.today
113
- ),
114
- outside: cn(
115
- "text-muted-foreground aria-selected:text-muted-foreground",
116
- defaultClassNames.outside
117
- ),
118
- disabled: cn(
119
- "text-muted-foreground opacity-50",
120
- defaultClassNames.disabled
121
- ),
122
- hidden: cn("invisible", defaultClassNames.hidden),
123
- ...classNames,
124
- }}
125
- components={{
126
- Root: ({ className, rootRef, ...props }) => {
127
- return (
128
- <div
129
- data-slot="calendar"
130
- ref={rootRef}
131
- className={cn(className)}
132
- {...props}
133
- />
134
- )
135
- },
136
- Chevron: ({ className, orientation, ...props }) => {
137
- if (orientation === "left") {
138
- return (
139
- <ChevronLeftIcon className={cn("size-4", className)} {...props} />
140
- )
141
- }
142
-
143
- if (orientation === "right") {
144
- return (
145
- <ChevronRightIcon
146
- className={cn("size-4", className)}
147
- {...props}
148
- />
149
- )
150
- }
151
-
152
- return (
153
- <ChevronDownIcon className={cn("size-4", className)} {...props} />
154
- )
155
- },
156
- DayButton: CalendarDayButton,
157
- WeekNumber: ({ children, ...props }) => {
158
- return (
159
- <td {...props}>
160
- <div className="flex size-(--cell-size) items-center justify-center text-center">
161
- {children}
162
- </div>
163
- </td>
164
- )
165
- },
166
- ...components,
167
- }}
168
- {...props}
169
- />
170
- )
171
- }
172
-
173
- function CalendarDayButton({
174
- className,
175
- day,
176
- modifiers,
177
- ...props
178
- }: React.ComponentProps<typeof DayButton>) {
179
- const defaultClassNames = getDefaultClassNames()
180
-
181
- const ref = React.useRef<HTMLButtonElement>(null)
182
- React.useEffect(() => {
183
- if (modifiers.focused) ref.current?.focus()
184
- }, [modifiers.focused])
185
-
186
- return (
187
- <Button
188
- ref={ref}
189
- variant="ghost"
190
- size="icon"
191
- data-day={day.date.toLocaleDateString()}
192
- data-selected-single={
193
- modifiers.selected &&
194
- !modifiers.range_start &&
195
- !modifiers.range_end &&
196
- !modifiers.range_middle
197
- }
198
- data-range-start={modifiers.range_start}
199
- data-range-end={modifiers.range_end}
200
- data-range-middle={modifiers.range_middle}
201
- className={cn(
202
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
203
- defaultClassNames.day,
204
- className
205
- )}
206
- {...props}
207
- />
208
- )
209
- }
210
-
211
- export { Calendar, CalendarDayButton }
1
+ import * as React from "react"
2
+ import {
3
+ ChevronDownIcon,
4
+ ChevronLeftIcon,
5
+ ChevronRightIcon,
6
+ } from "lucide-react"
7
+ import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker"
8
+
9
+ import { cn } from "@/lib/utils"
10
+ import { Button, buttonVariants } from "@/components/ui/button"
11
+
12
+ function Calendar({
13
+ className,
14
+ classNames,
15
+ showOutsideDays = true,
16
+ captionLayout = "label",
17
+ buttonVariant = "ghost",
18
+ formatters,
19
+ components,
20
+ ...props
21
+ }: React.ComponentProps<typeof DayPicker> & {
22
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"]
23
+ }) {
24
+ const defaultClassNames = getDefaultClassNames()
25
+
26
+ return (
27
+ <DayPicker
28
+ showOutsideDays={showOutsideDays}
29
+ className={cn(
30
+ "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
31
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
32
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
33
+ className
34
+ )}
35
+ captionLayout={captionLayout}
36
+ formatters={{
37
+ formatMonthDropdown: (date) =>
38
+ date.toLocaleString("default", { month: "short" }),
39
+ ...formatters,
40
+ }}
41
+ classNames={{
42
+ root: cn("w-fit", defaultClassNames.root),
43
+ months: cn(
44
+ "flex gap-4 flex-col md:flex-row relative",
45
+ defaultClassNames.months
46
+ ),
47
+ month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
48
+ nav: cn(
49
+ "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
50
+ defaultClassNames.nav
51
+ ),
52
+ button_previous: cn(
53
+ buttonVariants({ variant: buttonVariant }),
54
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
55
+ defaultClassNames.button_previous
56
+ ),
57
+ button_next: cn(
58
+ buttonVariants({ variant: buttonVariant }),
59
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
60
+ defaultClassNames.button_next
61
+ ),
62
+ month_caption: cn(
63
+ "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
64
+ defaultClassNames.month_caption
65
+ ),
66
+ dropdowns: cn(
67
+ "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
68
+ defaultClassNames.dropdowns
69
+ ),
70
+ dropdown_root: cn(
71
+ "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
72
+ defaultClassNames.dropdown_root
73
+ ),
74
+ dropdown: cn(
75
+ "absolute bg-popover inset-0 opacity-0",
76
+ defaultClassNames.dropdown
77
+ ),
78
+ caption_label: cn(
79
+ "select-none font-medium",
80
+ captionLayout === "label"
81
+ ? "text-sm"
82
+ : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
83
+ defaultClassNames.caption_label
84
+ ),
85
+ weekdays: cn("flex", defaultClassNames.weekdays),
86
+ weekday: cn(
87
+ "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
88
+ defaultClassNames.weekday
89
+ ),
90
+ week: cn("flex w-full mt-2", defaultClassNames.week),
91
+ week_number_header: cn(
92
+ "select-none w-(--cell-size)",
93
+ defaultClassNames.week_number_header
94
+ ),
95
+ week_number: cn(
96
+ "text-[0.8rem] select-none text-muted-foreground",
97
+ defaultClassNames.week_number
98
+ ),
99
+ day: cn(
100
+ "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
101
+ defaultClassNames.day
102
+ ),
103
+ range_start: cn(
104
+ "rounded-l-md bg-accent",
105
+ defaultClassNames.range_start
106
+ ),
107
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
108
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
109
+ today: cn(
110
+ "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
111
+ defaultClassNames.today
112
+ ),
113
+ outside: cn(
114
+ "text-muted-foreground aria-selected:text-muted-foreground",
115
+ defaultClassNames.outside
116
+ ),
117
+ disabled: cn(
118
+ "text-muted-foreground opacity-50",
119
+ defaultClassNames.disabled
120
+ ),
121
+ hidden: cn("invisible", defaultClassNames.hidden),
122
+ ...classNames,
123
+ }}
124
+ components={{
125
+ Root: ({ className, rootRef, ...props }) => {
126
+ return (
127
+ <div
128
+ data-slot="calendar"
129
+ ref={rootRef}
130
+ className={cn(className)}
131
+ {...props}
132
+ />
133
+ )
134
+ },
135
+ Chevron: ({ className, orientation, ...props }) => {
136
+ if (orientation === "left") {
137
+ return (
138
+ <ChevronLeftIcon className={cn("size-4", className)} {...props} />
139
+ )
140
+ }
141
+
142
+ if (orientation === "right") {
143
+ return (
144
+ <ChevronRightIcon
145
+ className={cn("size-4", className)}
146
+ {...props}
147
+ />
148
+ )
149
+ }
150
+
151
+ return (
152
+ <ChevronDownIcon className={cn("size-4", className)} {...props} />
153
+ )
154
+ },
155
+ DayButton: CalendarDayButton,
156
+ WeekNumber: ({ children, ...props }) => {
157
+ return (
158
+ <td {...props}>
159
+ <div className="flex size-(--cell-size) items-center justify-center text-center">
160
+ {children}
161
+ </div>
162
+ </td>
163
+ )
164
+ },
165
+ ...components,
166
+ }}
167
+ {...props}
168
+ />
169
+ )
170
+ }
171
+
172
+ function CalendarDayButton({
173
+ className,
174
+ day,
175
+ modifiers,
176
+ ...props
177
+ }: React.ComponentProps<typeof DayButton>) {
178
+ const defaultClassNames = getDefaultClassNames()
179
+
180
+ const ref = React.useRef<HTMLButtonElement>(null)
181
+ React.useEffect(() => {
182
+ if (modifiers.focused) ref.current?.focus()
183
+ }, [modifiers.focused])
184
+
185
+ return (
186
+ <Button
187
+ ref={ref}
188
+ variant="ghost"
189
+ size="icon"
190
+ data-day={day.date.toLocaleDateString()}
191
+ data-selected-single={
192
+ modifiers.selected &&
193
+ !modifiers.range_start &&
194
+ !modifiers.range_end &&
195
+ !modifiers.range_middle
196
+ }
197
+ data-range-start={modifiers.range_start}
198
+ data-range-end={modifiers.range_end}
199
+ data-range-middle={modifiers.range_middle}
200
+ className={cn(
201
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
202
+ defaultClassNames.day,
203
+ className
204
+ )}
205
+ {...props}
206
+ />
207
+ )
208
+ }
209
+
210
+ export { Calendar, CalendarDayButton }
@@ -1,92 +1,92 @@
1
- import * as React from "react"
2
-
3
- import { cn } from "@/lib/utils"
4
-
5
- function Card({ className, ...props }: React.ComponentProps<"div">) {
6
- return (
7
- <div
8
- data-slot="card"
9
- className={cn(
10
- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11
- className
12
- )}
13
- {...props}
14
- />
15
- )
16
- }
17
-
18
- function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
19
- return (
20
- <div
21
- data-slot="card-header"
22
- className={cn(
23
- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24
- className
25
- )}
26
- {...props}
27
- />
28
- )
29
- }
30
-
31
- function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
32
- return (
33
- <div
34
- data-slot="card-title"
35
- className={cn("leading-none font-semibold", className)}
36
- {...props}
37
- />
38
- )
39
- }
40
-
41
- function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
42
- return (
43
- <div
44
- data-slot="card-description"
45
- className={cn("text-muted-foreground text-sm", className)}
46
- {...props}
47
- />
48
- )
49
- }
50
-
51
- function CardAction({ className, ...props }: React.ComponentProps<"div">) {
52
- return (
53
- <div
54
- data-slot="card-action"
55
- className={cn(
56
- "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57
- className
58
- )}
59
- {...props}
60
- />
61
- )
62
- }
63
-
64
- function CardContent({ className, ...props }: React.ComponentProps<"div">) {
65
- return (
66
- <div
67
- data-slot="card-content"
68
- className={cn("px-6", className)}
69
- {...props}
70
- />
71
- )
72
- }
73
-
74
- function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
75
- return (
76
- <div
77
- data-slot="card-footer"
78
- className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
79
- {...props}
80
- />
81
- )
82
- }
83
-
84
- export {
85
- Card,
86
- CardHeader,
87
- CardFooter,
88
- CardTitle,
89
- CardAction,
90
- CardDescription,
91
- CardContent,
92
- }
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ function Card({ className, ...props }: React.ComponentProps<"div">) {
6
+ return (
7
+ <div
8
+ data-slot="card"
9
+ className={cn(
10
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
11
+ className
12
+ )}
13
+ {...props}
14
+ />
15
+ )
16
+ }
17
+
18
+ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
19
+ return (
20
+ <div
21
+ data-slot="card-header"
22
+ className={cn(
23
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24
+ className
25
+ )}
26
+ {...props}
27
+ />
28
+ )
29
+ }
30
+
31
+ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
32
+ return (
33
+ <div
34
+ data-slot="card-title"
35
+ className={cn("leading-none font-semibold", className)}
36
+ {...props}
37
+ />
38
+ )
39
+ }
40
+
41
+ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
42
+ return (
43
+ <div
44
+ data-slot="card-description"
45
+ className={cn("text-muted-foreground text-sm", className)}
46
+ {...props}
47
+ />
48
+ )
49
+ }
50
+
51
+ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
52
+ return (
53
+ <div
54
+ data-slot="card-action"
55
+ className={cn(
56
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
57
+ className
58
+ )}
59
+ {...props}
60
+ />
61
+ )
62
+ }
63
+
64
+ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
65
+ return (
66
+ <div
67
+ data-slot="card-content"
68
+ className={cn("px-6", className)}
69
+ {...props}
70
+ />
71
+ )
72
+ }
73
+
74
+ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
75
+ return (
76
+ <div
77
+ data-slot="card-footer"
78
+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
79
+ {...props}
80
+ />
81
+ )
82
+ }
83
+
84
+ export {
85
+ Card,
86
+ CardHeader,
87
+ CardFooter,
88
+ CardTitle,
89
+ CardAction,
90
+ CardDescription,
91
+ CardContent,
92
+ }