@deftui/react 0.0.6 → 0.1.1

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,58 +0,0 @@
1
- import { cn } from "cn";
2
- import { cva } from "class-variance-authority";
3
- import { jsx } from "react/jsx-runtime";
4
- // src/vendor/shadcn/empty.tsx
5
- function Empty({ className, ...props }) {
6
- return /* @__PURE__ */ jsx("div", {
7
- "data-slot": "empty",
8
- className: cn("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance", className),
9
- ...props
10
- });
11
- }
12
- function EmptyHeader({ className, ...props }) {
13
- return /* @__PURE__ */ jsx("div", {
14
- "data-slot": "empty-header",
15
- className: cn("flex max-w-sm flex-col items-center gap-2", className),
16
- ...props
17
- });
18
- }
19
- const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
20
- variants: { variant: {
21
- default: "bg-transparent",
22
- icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
23
- } },
24
- defaultVariants: { variant: "default" }
25
- });
26
- function EmptyMedia({ className, variant = "default", ...props }) {
27
- return /* @__PURE__ */ jsx("div", {
28
- "data-slot": "empty-icon",
29
- "data-variant": variant,
30
- className: cn(emptyMediaVariants({
31
- variant,
32
- className
33
- })),
34
- ...props
35
- });
36
- }
37
- function EmptyTitle({ className, ...props }) {
38
- return /* @__PURE__ */ jsx("div", {
39
- "data-slot": "empty-title",
40
- className: cn("text-lg font-medium tracking-tight", className),
41
- ...props
42
- });
43
- }
44
- function EmptyDescription({ className, ...props }) {
45
- return /* @__PURE__ */ jsx("div", {
46
- "data-slot": "empty-description",
47
- className: cn("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
48
- ...props
49
- });
50
- }
51
- function EmptyContent({ className, ...props }) {
52
- return /* @__PURE__ */ jsx("div", {
53
- "data-slot": "empty-content",
54
- className: cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
55
- ...props
56
- });
57
- }
58
- export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };