@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.
- package/dist/index.d.mts +5 -2
- package/dist/index.mjs +5 -2
- package/dist/vendor/README.md +3 -1
- package/dist/vendor/coss/empty.d.mts +12 -0
- package/dist/vendor/coss/empty.mjs +74 -0
- package/dist/vendor/diceui/file-upload.d.mts +74 -0
- package/dist/vendor/diceui/file-upload.mjs +954 -0
- package/dist/vendor/shadcn/alert-dialog.mjs +1 -1
- package/dist/vendor/shadcn/breadcrumb.mjs +1 -1
- package/dist/vendor/shadcn/button-group.mjs +1 -1
- package/dist/vendor/shadcn/button.mjs +1 -1
- package/dist/vendor/shadcn/calendar.d.mts +5 -2
- package/dist/vendor/shadcn/checkbox.d.mts +3 -0
- package/dist/vendor/shadcn/checkbox.mjs +19 -0
- package/dist/vendor/shadcn/direction.mjs +2 -0
- package/dist/vendor/shadcn/sidebar.mjs +1 -1
- package/dist/vendor/shadcn/skeleton.d.mts +2 -0
- package/dist/vendor/tailored/lightbox.mjs +1 -1
- package/dist/widgets/breadcrumb.d.mts +0 -1
- package/dist/widgets/breadcrumb.mjs +0 -1
- package/dist/widgets/datetime-picker.d.mts +1 -1
- package/dist/widgets/datetime-picker.mjs +1 -1
- package/dist/widgets/index.d.mts +34 -34
- package/dist/widgets/index.mjs +34 -40
- package/dist/widgets/multimedia.d.mts +0 -2
- package/dist/widgets/multimedia.mjs +0 -2
- package/dist/widgets/pagination.d.mts +0 -1
- package/dist/widgets/pagination.mjs +0 -1
- package/dist/widgets/sidebar.d.mts +0 -1
- package/dist/widgets/sidebar.mjs +0 -1
- package/package.json +2 -1
- package/dist/vendor/shadcn/empty.d.mts +0 -11
- package/dist/vendor/shadcn/empty.mjs +0 -58
|
@@ -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 };
|