@deftui/react 0.2.5 → 0.3.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/README.md +2 -2
- package/dist/index.d.mts +7 -5
- package/dist/index.mjs +4 -4
- package/dist/styles.css +3 -0
- package/dist/vendor/README.md +10 -9
- package/dist/vendor/coss/calendar.d.mts +4 -0
- package/dist/vendor/coss/calendar.mjs +70 -0
- package/dist/vendor/coss/card.d.mts +23 -0
- package/dist/vendor/coss/card.mjs +160 -0
- package/dist/vendor/coss/dialog.d.mts +1 -1
- package/dist/vendor/coss/dialog.mjs +1 -1
- package/dist/vendor/coss/table.d.mts +15 -0
- package/dist/vendor/coss/table.mjs +73 -0
- package/dist/vendor/reui.io/cascader/cascader-async.d.mts +20 -0
- package/dist/vendor/reui.io/cascader/cascader-async.mjs +578 -0
- package/dist/vendor/reui.io/cascader/cascader-context.d.mts +12 -0
- package/dist/vendor/reui.io/cascader/cascader-context.mjs +56 -0
- package/dist/vendor/reui.io/cascader/cascader-footer.d.mts +60 -0
- package/dist/vendor/reui.io/cascader/cascader-footer.mjs +445 -0
- package/dist/vendor/reui.io/cascader/cascader-i18n.mjs +64 -0
- package/dist/vendor/reui.io/cascader/cascader-item.d.mts +92 -0
- package/dist/vendor/reui.io/cascader/cascader-item.mjs +533 -0
- package/dist/vendor/reui.io/cascader/cascader-lib.d.mts +3 -0
- package/dist/vendor/reui.io/cascader/cascader-lib.mjs +688 -0
- package/dist/vendor/reui.io/cascader/cascader-nav.d.mts +56 -0
- package/dist/vendor/reui.io/cascader/cascader-nav.mjs +310 -0
- package/dist/vendor/reui.io/cascader/cascader-types.d.mts +140 -0
- package/dist/vendor/reui.io/cascader/cascader-virtual.d.mts +18 -0
- package/dist/vendor/reui.io/cascader/cascader-virtual.mjs +159 -0
- package/dist/vendor/reui.io/cascader/cascader.d.mts +299 -0
- package/dist/vendor/reui.io/cascader/cascader.mjs +1470 -0
- package/dist/vendor/reui.io/timeline.d.mts +21 -0
- package/dist/vendor/reui.io/timeline.mjs +127 -0
- package/dist/vendor/tailored/lightbox.d.mts +1 -1
- package/dist/vendor/tailored/lightbox.mjs +1 -1
- package/dist/widgets/datetime.d.mts +1 -1
- package/dist/widgets/datetime.mjs +6 -1
- package/dist/widgets/export.d.mts +28 -0
- package/dist/widgets/index.d.mts +69 -20
- package/dist/widgets/index.mjs +61 -11
- package/package.json +2 -2
- package/dist/vendor/shadcn/calendar.d.mts +0 -10
- package/dist/vendor/shadcn/calendar.mjs +0 -107
- package/dist/vendor/shadcn/card.d.mts +0 -11
- package/dist/vendor/shadcn/card.mjs +0 -55
- package/dist/vendor/shadcn/table.d.mts +0 -9
- package/dist/vendor/shadcn/table.mjs +0 -59
- package/dist/vendor/tailored/file-tree.d.mts +0 -21
- package/dist/vendor/tailored/file-tree.mjs +0 -146
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
interface TimelineProps extends useRender.ComponentProps<"div"> {
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
value?: number;
|
|
5
|
+
onValueChange?: (value: number) => void;
|
|
6
|
+
orientation?: "horizontal" | "vertical";
|
|
7
|
+
}
|
|
8
|
+
declare function Timeline({ defaultValue, value, onValueChange, orientation, className, render, children, ...props }: TimelineProps): import("react").JSX.Element;
|
|
9
|
+
declare function TimelineContent({ className, render, children, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
type TimelineDateProps = useRender.ComponentProps<"time">;
|
|
11
|
+
declare function TimelineDate({ className, render, children, ...props }: TimelineDateProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
12
|
+
declare function TimelineHeader({ className, render, children, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
13
|
+
type TimelineIndicatorProps = useRender.ComponentProps<"div">;
|
|
14
|
+
declare function TimelineIndicator({ className, children, render, ...props }: TimelineIndicatorProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
+
interface TimelineItemProps extends useRender.ComponentProps<"div"> {
|
|
16
|
+
step: number;
|
|
17
|
+
}
|
|
18
|
+
declare function TimelineItem({ step, className, render, children, ...props }: TimelineItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
19
|
+
declare function TimelineSeparator({ className, render, children, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
20
|
+
declare function TimelineTitle({ className, render, children, ...props }: useRender.ComponentProps<"h3">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
21
|
+
export { Timeline, TimelineContent, TimelineDate, TimelineHeader, TimelineIndicator, TimelineItem, TimelineSeparator, TimelineTitle };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
|
+
import { createContext, useCallback, useContext, useState } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
+
// src/vendor/reui.io/timeline.tsx
|
|
8
|
+
const TimelineContext = createContext(void 0);
|
|
9
|
+
const useTimeline = () => {
|
|
10
|
+
const context = useContext(TimelineContext);
|
|
11
|
+
if (!context) throw new Error("useTimeline must be used within a Timeline");
|
|
12
|
+
return context;
|
|
13
|
+
};
|
|
14
|
+
function Timeline({ defaultValue = 1, value, onValueChange, orientation = "vertical", className, render, children, ...props }) {
|
|
15
|
+
const [activeStep, setInternalStep] = useState(defaultValue);
|
|
16
|
+
const setActiveStep = useCallback((step) => {
|
|
17
|
+
if (value === void 0) setInternalStep(step);
|
|
18
|
+
onValueChange?.(step);
|
|
19
|
+
}, [value, onValueChange]);
|
|
20
|
+
const currentStep = value ?? activeStep;
|
|
21
|
+
const defaultProps = {
|
|
22
|
+
className: cn("group/timeline flex data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col", className),
|
|
23
|
+
"data-orientation": orientation,
|
|
24
|
+
"data-slot": "timeline",
|
|
25
|
+
children
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ jsx(TimelineContext.Provider, {
|
|
28
|
+
value: {
|
|
29
|
+
activeStep: currentStep,
|
|
30
|
+
setActiveStep
|
|
31
|
+
},
|
|
32
|
+
children: useRender({
|
|
33
|
+
defaultTagName: "div",
|
|
34
|
+
render,
|
|
35
|
+
props: mergeProps(defaultProps, props)
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function TimelineContent({ className, render, children, ...props }) {
|
|
40
|
+
const defaultProps = {
|
|
41
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
42
|
+
"data-slot": "timeline-content",
|
|
43
|
+
children
|
|
44
|
+
};
|
|
45
|
+
return useRender({
|
|
46
|
+
defaultTagName: "div",
|
|
47
|
+
render,
|
|
48
|
+
props: mergeProps(defaultProps, props)
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function TimelineDate({ className, render, children, ...props }) {
|
|
52
|
+
const defaultProps = {
|
|
53
|
+
className: cn("mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4", className),
|
|
54
|
+
"data-slot": "timeline-date",
|
|
55
|
+
children
|
|
56
|
+
};
|
|
57
|
+
return useRender({
|
|
58
|
+
defaultTagName: "time",
|
|
59
|
+
render,
|
|
60
|
+
props: mergeProps(defaultProps, props)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function TimelineHeader({ className, render, children, ...props }) {
|
|
64
|
+
const defaultProps = {
|
|
65
|
+
className: cn(className),
|
|
66
|
+
"data-slot": "timeline-header",
|
|
67
|
+
children
|
|
68
|
+
};
|
|
69
|
+
return useRender({
|
|
70
|
+
defaultTagName: "div",
|
|
71
|
+
render,
|
|
72
|
+
props: mergeProps(defaultProps, props)
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function TimelineIndicator({ className, children, render, ...props }) {
|
|
76
|
+
const defaultProps = {
|
|
77
|
+
"aria-hidden": true,
|
|
78
|
+
className: cn("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute size-4 rounded-full border-2 border-primary/20 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=horizontal]/timeline:left-0 group-data-completed/timeline-item:border-primary", className),
|
|
79
|
+
"data-slot": "timeline-indicator",
|
|
80
|
+
children
|
|
81
|
+
};
|
|
82
|
+
return useRender({
|
|
83
|
+
defaultTagName: "div",
|
|
84
|
+
render,
|
|
85
|
+
props: mergeProps(defaultProps, props)
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function TimelineItem({ step, className, render, children, ...props }) {
|
|
89
|
+
const { activeStep } = useTimeline();
|
|
90
|
+
const defaultProps = {
|
|
91
|
+
className: cn("group/timeline-item relative flex flex-1 flex-col gap-0.5 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:not-last:pb-6 has-[+[data-completed]]:**:data-[slot=timeline-separator]:bg-primary", className),
|
|
92
|
+
"data-completed": step <= activeStep || void 0,
|
|
93
|
+
"data-slot": "timeline-item",
|
|
94
|
+
children
|
|
95
|
+
};
|
|
96
|
+
return useRender({
|
|
97
|
+
defaultTagName: "div",
|
|
98
|
+
render,
|
|
99
|
+
props: mergeProps(defaultProps, props)
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function TimelineSeparator({ className, render, children, ...props }) {
|
|
103
|
+
const defaultProps = {
|
|
104
|
+
"aria-hidden": true,
|
|
105
|
+
className: cn("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute self-start bg-primary/10 group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=vertical]/timeline:translate-y-4.5", className),
|
|
106
|
+
"data-slot": "timeline-separator",
|
|
107
|
+
children
|
|
108
|
+
};
|
|
109
|
+
return useRender({
|
|
110
|
+
defaultTagName: "div",
|
|
111
|
+
render,
|
|
112
|
+
props: mergeProps(defaultProps, props)
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function TimelineTitle({ className, render, children, ...props }) {
|
|
116
|
+
const defaultProps = {
|
|
117
|
+
className: cn("font-medium text-sm", className),
|
|
118
|
+
"data-slot": "timeline-title",
|
|
119
|
+
children
|
|
120
|
+
};
|
|
121
|
+
return useRender({
|
|
122
|
+
defaultTagName: "h3",
|
|
123
|
+
render,
|
|
124
|
+
props: mergeProps(defaultProps, props)
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export { Timeline, TimelineContent, TimelineDate, TimelineHeader, TimelineIndicator, TimelineItem, TimelineSeparator, TimelineTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../shadcn/button.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import { Dialog } from "@base-ui/react/dialog";
|
|
4
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
5
5
|
type LightboxOverlay = "blur" | "brightness";
|
|
6
6
|
type LightboxDirection = "ltr" | "rtl";
|
|
7
7
|
type LightboxChangeReason = "trigger-press" | "previous-press" | "next-press" | "thumbnail-press" | "swipe" | "keyboard" | "programmatic" | "items-change";
|
|
@@ -7,8 +7,8 @@ import { cn } from "cn";
|
|
|
7
7
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { Dialog } from "@base-ui/react/dialog";
|
|
11
10
|
import { useRender } from "@base-ui/react/use-render";
|
|
11
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
12
12
|
import { ChevronLeftIcon, ChevronRightIcon, DownloadIcon, EllipsisIcon, ImageOffIcon, XIcon, ZoomInIcon, ZoomOutIcon } from "lucide-react";
|
|
13
13
|
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
14
14
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Calendar } from "../vendor/coss/calendar.mjs";
|
|
1
2
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
|
-
import { Calendar } from "../vendor/shadcn/calendar.mjs";
|
|
3
3
|
import { Input } from "../vendor/shadcn/input.mjs";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
import { DateRange } from "@daypicker/react";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { Calendar } from "../vendor/coss/calendar.mjs";
|
|
1
2
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
|
-
import { Calendar } from "../vendor/shadcn/calendar.mjs";
|
|
3
3
|
import { Input } from "../vendor/shadcn/input.mjs";
|
|
4
4
|
import { Popover, PopoverContent, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
|
|
5
5
|
import { cn } from "cn";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { CalendarIcon } from "lucide-react";
|
|
9
|
+
import { enUS, zhCN } from "@daypicker/react/locale";
|
|
9
10
|
import { format } from "date-fns";
|
|
10
11
|
// src/widgets/datetime.tsx
|
|
11
12
|
function TimePicker({ className, step = "1", ...props }) {
|
|
@@ -18,6 +19,7 @@ function TimePicker({ className, step = "1", ...props }) {
|
|
|
18
19
|
}
|
|
19
20
|
function DatePicker({ value, defaultValue = null, placeholder = "请选择日期", disabled, onChange, className, calendarProps, ...props }) {
|
|
20
21
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
22
|
+
const locale = navigator.language.startsWith("zh") ? zhCN : enUS;
|
|
21
23
|
const date = value === void 0 ? internalValue : value;
|
|
22
24
|
function handleSelect(selected) {
|
|
23
25
|
const nextValue = selected ?? null;
|
|
@@ -34,6 +36,7 @@ function DatePicker({ value, defaultValue = null, placeholder = "请选择日期
|
|
|
34
36
|
}),
|
|
35
37
|
children: [/* @__PURE__ */ jsx(CalendarIcon, { "aria-hidden": "true" }), date ? format(date, "PPP") : placeholder]
|
|
36
38
|
}), /* @__PURE__ */ jsx(PopoverContent, { children: /* @__PURE__ */ jsx(Calendar, {
|
|
39
|
+
locale,
|
|
37
40
|
defaultMonth: date ?? void 0,
|
|
38
41
|
...calendarProps,
|
|
39
42
|
disabled: disabled || calendarProps?.disabled,
|
|
@@ -44,6 +47,7 @@ function DatePicker({ value, defaultValue = null, placeholder = "请选择日期
|
|
|
44
47
|
}
|
|
45
48
|
function DateRangePicker({ value, defaultValue = null, placeholder = "请选择日期范围", disabled, onChange, className, calendarProps, ...props }) {
|
|
46
49
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
50
|
+
const locale = navigator.language.startsWith("zh") ? zhCN : enUS;
|
|
47
51
|
const date = value === void 0 ? internalValue : value;
|
|
48
52
|
function handleSelect(selected) {
|
|
49
53
|
const nextValue = selected ?? null;
|
|
@@ -64,6 +68,7 @@ function DateRangePicker({ value, defaultValue = null, placeholder = "请选择
|
|
|
64
68
|
date?.to && /* @__PURE__ */ jsxs(Fragment, { children: [" - ", format(date.to, "LLL dd, y")] })
|
|
65
69
|
]
|
|
66
70
|
}), /* @__PURE__ */ jsx(PopoverContent, { children: /* @__PURE__ */ jsx(Calendar, {
|
|
71
|
+
locale,
|
|
67
72
|
defaultMonth: date?.from,
|
|
68
73
|
...calendarProps,
|
|
69
74
|
disabled: disabled || calendarProps?.disabled,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./toast.mjs";
|
|
2
|
+
import { Sidebar } from "./sidebar.mjs";
|
|
3
|
+
import { DatePicker, DateRange, DateRangePicker, TimePicker } from "./datetime.mjs";
|
|
4
|
+
import { Dropzone, formatBytes, useDropzone } from "./dropzone.mjs";
|
|
5
|
+
import { Carousel, Image, ImageProps, Lightbox } from "./multimedia.mjs";
|
|
6
|
+
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
7
|
+
import { Pagination } from "./pagination.mjs";
|
|
8
|
+
import { Label } from "../vendor/shadcn/label.mjs";
|
|
9
|
+
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
10
|
+
import { Input } from "../vendor/shadcn/input.mjs";
|
|
11
|
+
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
12
|
+
import { Button } from "../vendor/shadcn/button.mjs";
|
|
13
|
+
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
14
|
+
import { LightboxActions, LightboxBackdrop, LightboxCaptions, LightboxChangeReason, LightboxClose, LightboxContent, LightboxControl, LightboxControlContext, LightboxCounter, LightboxDownload, LightboxImageChangeEventDetails, LightboxImageItem, LightboxItem, LightboxMore, LightboxNext, LightboxOpenEventDetails, LightboxPrevious, LightboxProps, LightboxSlide, LightboxSlides, LightboxThumbnail, LightboxThumbnails, LightboxToolbar, LightboxTrigger, LightboxTriggerProps, LightboxVideoItem, LightboxViewport, LightboxZoom, LightboxZoomButton, useLightbox } from "../vendor/tailored/lightbox.mjs";
|
|
15
|
+
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
16
|
+
import { Skeleton } from "../vendor/shadcn/skeleton.mjs";
|
|
17
|
+
import { Checkbox } from "../vendor/shadcn/checkbox.mjs";
|
|
18
|
+
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
19
|
+
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
20
|
+
import { Form } from "../vendor/coss/form.mjs";
|
|
21
|
+
import { Calendar } from "../vendor/coss/calendar.mjs";
|
|
22
|
+
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
23
|
+
import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
|
|
24
|
+
import { JsonViewer } from "../vendor/tailored/json-viewer.mjs";
|
|
25
|
+
import { CascaderProps, CascaderSingleProps } from "../vendor/reui.io/cascader/cascader.mjs";
|
|
26
|
+
import { CascaderChangeDetails, CascaderLabels, CascaderMode, CascaderNode } from "../vendor/reui.io/cascader/cascader-types.mjs";
|
|
27
|
+
export * from "react-dropzone";
|
|
28
|
+
export { Badge, Button, Calendar, Carousel, type CascaderChangeDetails, type CascaderLabels, type CascaderMode, type CascaderNode, type CascaderProps, type CascaderSingleProps, Checkbox, DatePicker, type DateRange, DateRangePicker, Dropzone, Form, IconSwap, Image, ImageProps, Input, JsonViewer, Label, Lightbox, type LightboxActions, type LightboxBackdrop, type LightboxCaptions, type LightboxChangeReason, type LightboxClose, type LightboxContent, type LightboxControl, type LightboxControlContext, type LightboxCounter, type LightboxDownload, type LightboxImageChangeEventDetails, type LightboxImageItem, type LightboxItem, type LightboxMore, type LightboxNext, type LightboxOpenEventDetails, type LightboxPrevious, type LightboxProps, type LightboxSlide, type LightboxSlides, type LightboxThumbnail, type LightboxThumbnails, type LightboxToolbar, type LightboxTrigger, type LightboxTriggerProps, type LightboxVideoItem, type LightboxViewport, type LightboxZoom, type LightboxZoomButton, Pagination, ScrollArea, Separator, Sidebar, Skeleton, Spinner, Switch, Textarea, TimePicker, Toaster as ToastProvider, formatBytes, toast, useDropzone, type useLightbox, useSidebar };
|
package/dist/widgets/index.d.mts
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
1
|
import { AlertDialogClose, AlertDialogContent as AlertDialogPopup, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPrimitive, AlertDialogTitle, AlertDialogTrigger } from "../vendor/coss/alert-dialog.mjs";
|
|
2
|
+
import { Card as Card$1, CardAction, CardContent as CardPanel, CardDescription, CardFooter, CardFrame, CardFrameAction, CardFrameDescription, CardFrameFooter, CardFrameHeader, CardFrameTitle, CardHeader, CardTitle } from "../vendor/coss/card.mjs";
|
|
2
3
|
import { DialogClose, DialogContent as DialogPopup, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPrimitive, DialogTitle, DialogTrigger } from "../vendor/coss/dialog.mjs";
|
|
3
4
|
import { Drawer as Drawer$1, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerPopup, DrawerTitle, DrawerTrigger } from "../vendor/coss/drawer.mjs";
|
|
4
5
|
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
|
|
6
|
+
import { Table as Table$1, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/coss/table.mjs";
|
|
7
|
+
import { CascaderChangeDetails, CascaderLabels, CascaderMode, CascaderNode } from "../vendor/reui.io/cascader/cascader-types.mjs";
|
|
8
|
+
import { Cascader as Cascader$1, CascaderChip, CascaderChips, CascaderContent, CascaderEmpty, CascaderList, CascaderPanel, CascaderProps, CascaderSingleProps, CascaderStatus, CascaderTrigger } from "../vendor/reui.io/cascader/cascader.mjs";
|
|
9
|
+
import { CascaderAction, CascaderFooter, CascaderSubmenu, CascaderSubmenuContent, CascaderSubmenuTrigger } from "../vendor/reui.io/cascader/cascader-footer.mjs";
|
|
10
|
+
import { CascaderGroup, CascaderItemProps, CascaderItems, CascaderLabel, CascaderSeparator } from "../vendor/reui.io/cascader/cascader-item.mjs";
|
|
11
|
+
import { CascaderBack, CascaderBreadcrumb, CascaderInput, CascaderNav, CascaderValue } from "../vendor/reui.io/cascader/cascader-nav.mjs";
|
|
12
|
+
import { CascaderVirtualItems } from "../vendor/reui.io/cascader/cascader-virtual.mjs";
|
|
13
|
+
import { Timeline as Timeline$1, TimelineContent, TimelineDate, TimelineHeader, TimelineIndicator, TimelineItem, TimelineSeparator, TimelineTitle } from "../vendor/reui.io/timeline.mjs";
|
|
5
14
|
import { Breadcrumb as Breadcrumb$1, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../vendor/shadcn/breadcrumb.mjs";
|
|
15
|
+
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
6
16
|
import { ButtonGroup as ButtonGroup$1, ButtonGroupSeparator, ButtonGroupText } from "../vendor/shadcn/button-group.mjs";
|
|
7
|
-
import { Calendar as Calendar$1, CalendarDayButton } from "../vendor/shadcn/calendar.mjs";
|
|
8
|
-
import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
|
|
9
17
|
import { ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxValue } from "../vendor/shadcn/combobox.mjs";
|
|
10
18
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
|
|
19
|
+
import { Label } from "../vendor/shadcn/label.mjs";
|
|
11
20
|
import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
|
|
21
|
+
import { Button } from "../vendor/shadcn/button.mjs";
|
|
12
22
|
import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
|
|
13
23
|
import { Kbd as Kbd$1, KbdGroup } from "../vendor/shadcn/kbd.mjs";
|
|
14
24
|
import { Popover as Popover$1, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
|
|
15
25
|
import { Progress as Progress$1, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "../vendor/shadcn/progress.mjs";
|
|
16
26
|
import { RadioGroup, RadioGroupItem } from "../vendor/shadcn/radio-group.mjs";
|
|
17
27
|
import { SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "../vendor/shadcn/select.mjs";
|
|
18
|
-
import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/shadcn/table.mjs";
|
|
19
28
|
import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
|
|
20
29
|
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
|
|
21
|
-
import "
|
|
30
|
+
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
31
|
+
import { Input } from "../vendor/shadcn/input.mjs";
|
|
32
|
+
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
22
33
|
import { Sidebar } from "./sidebar.mjs";
|
|
34
|
+
import { Calendar } from "../vendor/coss/calendar.mjs";
|
|
23
35
|
import { DatePicker, DateRange, DateRangePicker, TimePicker } from "./datetime.mjs";
|
|
24
|
-
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
25
36
|
import { Dropzone, formatBytes, useDropzone } from "./dropzone.mjs";
|
|
37
|
+
import { LightboxActions, LightboxBackdrop, LightboxCaptions, LightboxChangeReason, LightboxClose, LightboxContent, LightboxControl, LightboxControlContext, LightboxCounter, LightboxDownload, LightboxImageChangeEventDetails, LightboxImageItem, LightboxItem, LightboxMore, LightboxNext, LightboxOpenEventDetails, LightboxPrevious, LightboxProps, LightboxSlide, LightboxSlides, LightboxThumbnail, LightboxThumbnails, LightboxToolbar, LightboxTrigger, LightboxTriggerProps, LightboxVideoItem, LightboxViewport, LightboxZoom, LightboxZoomButton, useLightbox } from "../vendor/tailored/lightbox.mjs";
|
|
26
38
|
import { Carousel, Image, ImageProps, Lightbox } from "./multimedia.mjs";
|
|
27
|
-
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
28
39
|
import { Pagination } from "./pagination.mjs";
|
|
29
|
-
import { Form } from "../vendor/coss/form.mjs";
|
|
30
|
-
import { Label } from "../vendor/shadcn/label.mjs";
|
|
31
|
-
import { LightboxActions, LightboxBackdrop, LightboxCaptions, LightboxChangeReason, LightboxClose, LightboxContent, LightboxControl, LightboxControlContext, LightboxCounter, LightboxDownload, LightboxImageChangeEventDetails, LightboxImageItem, LightboxItem, LightboxMore, LightboxNext, LightboxOpenEventDetails, LightboxPrevious, LightboxProps, LightboxSlide, LightboxSlides, LightboxThumbnail, LightboxThumbnails, LightboxToolbar, LightboxTrigger, LightboxTriggerProps, LightboxVideoItem, LightboxViewport, LightboxZoom, LightboxZoomButton, useLightbox } from "../vendor/tailored/lightbox.mjs";
|
|
32
|
-
import { Input } from "../vendor/shadcn/input.mjs";
|
|
33
40
|
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
34
|
-
import { Button } from "../vendor/shadcn/button.mjs";
|
|
35
41
|
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
36
42
|
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
37
43
|
import { Skeleton } from "../vendor/shadcn/skeleton.mjs";
|
|
38
44
|
import { Checkbox } from "../vendor/shadcn/checkbox.mjs";
|
|
39
45
|
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
40
|
-
import {
|
|
46
|
+
import { Form } from "../vendor/coss/form.mjs";
|
|
41
47
|
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
42
48
|
import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
|
|
43
49
|
import { JsonViewer } from "../vendor/tailored/json-viewer.mjs";
|
|
44
|
-
import
|
|
50
|
+
import "./export.mjs";
|
|
45
51
|
export * from "react-dropzone";
|
|
46
52
|
/** https://ui.shadcn.com/docs/components/base/kbd */
|
|
47
53
|
export declare const Kbd: typeof Kbd$1 & {
|
|
@@ -53,15 +59,23 @@ export declare const Tabs: typeof Tabs$1 & {
|
|
|
53
59
|
Trigger: typeof TabsTrigger;
|
|
54
60
|
Content: typeof TabsContent;
|
|
55
61
|
};
|
|
56
|
-
/** https://
|
|
62
|
+
/** https://coss.com/ui/docs/components/card */
|
|
57
63
|
export declare const Card: typeof Card$1 & {
|
|
58
64
|
Header: typeof CardHeader;
|
|
59
|
-
|
|
65
|
+
Panel: typeof CardPanel;
|
|
60
66
|
Footer: typeof CardFooter;
|
|
61
67
|
Title: typeof CardTitle;
|
|
62
68
|
Action: typeof CardAction;
|
|
63
69
|
Description: typeof CardDescription;
|
|
64
70
|
};
|
|
71
|
+
/** https://coss.com/ui/docs/components/card#cardframe */
|
|
72
|
+
export declare const Frame: typeof CardFrame & {
|
|
73
|
+
Header: typeof CardFrameHeader;
|
|
74
|
+
Footer: typeof CardFrameFooter;
|
|
75
|
+
Title: typeof CardFrameTitle;
|
|
76
|
+
Description: typeof CardFrameDescription;
|
|
77
|
+
Action: typeof CardFrameAction;
|
|
78
|
+
};
|
|
65
79
|
/** https://ui.shadcn.com/docs/components/base/field */
|
|
66
80
|
export declare const Field: typeof Field$1 & {
|
|
67
81
|
Label: typeof FieldLabel;
|
|
@@ -76,11 +90,12 @@ export declare const Empty: typeof Empty$1 & {
|
|
|
76
90
|
Title: typeof EmptyTitle;
|
|
77
91
|
Description: typeof EmptyDescription;
|
|
78
92
|
};
|
|
79
|
-
/** https://
|
|
93
|
+
/** https://coss.com/ui/docs/components/table */
|
|
80
94
|
export declare const Table: typeof Table$1 & {
|
|
81
95
|
Header: typeof TableHeader;
|
|
82
96
|
Body: typeof TableBody;
|
|
83
97
|
Footer: typeof TableFooter;
|
|
98
|
+
Caption: typeof TableCaption;
|
|
84
99
|
Row: typeof TableRow;
|
|
85
100
|
Head: typeof TableHead;
|
|
86
101
|
Cell: typeof TableCell;
|
|
@@ -134,6 +149,34 @@ export declare const Popover: typeof Popover$1 & {
|
|
|
134
149
|
Title: typeof PopoverTitle;
|
|
135
150
|
Description: typeof PopoverDescription;
|
|
136
151
|
};
|
|
152
|
+
/** https://reui.io/docs/components/cascader */
|
|
153
|
+
export declare const Cascader: typeof Cascader$1 & {
|
|
154
|
+
Trigger: typeof CascaderTrigger;
|
|
155
|
+
Popup: typeof CascaderContent;
|
|
156
|
+
Panel: typeof CascaderPanel;
|
|
157
|
+
List: typeof CascaderList;
|
|
158
|
+
Empty: typeof CascaderEmpty;
|
|
159
|
+
Status: typeof CascaderStatus;
|
|
160
|
+
Chips: typeof CascaderChips;
|
|
161
|
+
Chip: typeof CascaderChip;
|
|
162
|
+
Nav: typeof CascaderNav;
|
|
163
|
+
Back: typeof CascaderBack;
|
|
164
|
+
Breadcrumb: typeof CascaderBreadcrumb;
|
|
165
|
+
Input: typeof CascaderInput;
|
|
166
|
+
Value: typeof CascaderValue;
|
|
167
|
+
Item: import("react").MemoExoticComponent<({ node, index, depth, showPath, as, expanded, indent, branch: branchProp, selectable: selectableProp, selected: selectedProp, indeterminate: indeterminateProp, selectedCount: selectedCountProp, loading, error, childrenLoading, childrenError, className, children, onClick, onMouseUp, style, ...props }: CascaderItemProps) => import("react").JSX.Element>;
|
|
168
|
+
Items: typeof CascaderItems;
|
|
169
|
+
Group: typeof CascaderGroup;
|
|
170
|
+
Label: typeof CascaderLabel;
|
|
171
|
+
Separator: typeof CascaderSeparator;
|
|
172
|
+
Footer: typeof CascaderFooter;
|
|
173
|
+
Action: typeof CascaderAction;
|
|
174
|
+
Submenu: typeof CascaderSubmenu;
|
|
175
|
+
SubmenuTrigger: typeof CascaderSubmenuTrigger;
|
|
176
|
+
SubmenuContent: typeof CascaderSubmenuContent;
|
|
177
|
+
/** Windowed replacement for `Items` inside `List`. */
|
|
178
|
+
VirtualItems: typeof CascaderVirtualItems;
|
|
179
|
+
};
|
|
137
180
|
/** https://ui.shadcn.com/docs/components/base/dropdown-menu */
|
|
138
181
|
export declare const Dropdown: typeof DropdownMenu & {
|
|
139
182
|
Trigger: typeof DropdownMenuTrigger;
|
|
@@ -173,9 +216,15 @@ export declare const Progress: typeof Progress$1 & {
|
|
|
173
216
|
Track: typeof ProgressTrack;
|
|
174
217
|
Indicator: typeof ProgressIndicator;
|
|
175
218
|
};
|
|
176
|
-
/** https://
|
|
177
|
-
export declare const
|
|
178
|
-
|
|
219
|
+
/** https://reui.io/docs/components/timeline */
|
|
220
|
+
export declare const Timeline: typeof Timeline$1 & {
|
|
221
|
+
Item: typeof TimelineItem;
|
|
222
|
+
Header: typeof TimelineHeader;
|
|
223
|
+
Content: typeof TimelineContent;
|
|
224
|
+
Indicator: typeof TimelineIndicator;
|
|
225
|
+
Separator: typeof TimelineSeparator;
|
|
226
|
+
Date: typeof TimelineDate;
|
|
227
|
+
Title: typeof TimelineTitle;
|
|
179
228
|
};
|
|
180
229
|
/** https://ui.shadcn.com/docs/components/base/breadcrumb */
|
|
181
230
|
export declare const Breadcrumb: typeof Breadcrumb$1 & {
|
|
@@ -209,4 +258,4 @@ export declare const InputGroup: typeof InputGroup$1 & {
|
|
|
209
258
|
Textarea: typeof InputGroupTextarea;
|
|
210
259
|
Button: typeof InputGroupButton;
|
|
211
260
|
};
|
|
212
|
-
export { Badge, Button, Carousel,
|
|
261
|
+
export { Badge, Button, Calendar, Carousel, type CascaderChangeDetails, type CascaderLabels, type CascaderMode, type CascaderNode, type CascaderProps, type CascaderSingleProps, Checkbox, DatePicker, type DateRange, DateRangePicker, Dropzone, Form, IconSwap, Image, ImageProps, Input, JsonViewer, Label, Lightbox, type LightboxActions, type LightboxBackdrop, type LightboxCaptions, type LightboxChangeReason, type LightboxClose, type LightboxContent, type LightboxControl, type LightboxControlContext, type LightboxCounter, type LightboxDownload, type LightboxImageChangeEventDetails, type LightboxImageItem, type LightboxItem, type LightboxMore, type LightboxNext, type LightboxOpenEventDetails, type LightboxPrevious, type LightboxProps, type LightboxSlide, type LightboxSlides, type LightboxThumbnail, type LightboxThumbnails, type LightboxToolbar, type LightboxTrigger, type LightboxTriggerProps, type LightboxVideoItem, type LightboxViewport, type LightboxZoom, type LightboxZoomButton, Pagination, ScrollArea, Separator, Sidebar, Skeleton, Spinner, Switch, Textarea, TimePicker, Toaster as ToastProvider, formatBytes, toast, useDropzone, type useLightbox, useSidebar };
|
package/dist/widgets/index.mjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { AlertDialog as AlertDialog$1, AlertDialogClose, AlertDialogContent as AlertDialogPopup, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "../vendor/coss/alert-dialog.mjs";
|
|
2
|
+
import { Card as Card$1, CardAction, CardContent as CardPanel, CardDescription, CardFooter, CardFrame, CardFrameAction, CardFrameDescription, CardFrameFooter, CardFrameHeader, CardFrameTitle, CardHeader, CardTitle } from "../vendor/coss/card.mjs";
|
|
2
3
|
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
3
4
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
4
5
|
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
5
6
|
import { Dialog as Dialog$1, DialogClose, DialogContent as DialogPopup, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogTitle, DialogTrigger } from "../vendor/coss/dialog.mjs";
|
|
6
7
|
import { Drawer as Drawer$1, DrawerClose, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPanel, DrawerPopup, DrawerTitle, DrawerTrigger } from "../vendor/coss/drawer.mjs";
|
|
7
8
|
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
|
|
9
|
+
import { Table as Table$1, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/coss/table.mjs";
|
|
10
|
+
import { Cascader as Cascader$1, CascaderChip, CascaderChips, CascaderContent, CascaderEmpty, CascaderList, CascaderPanel, CascaderStatus, CascaderTrigger } from "../vendor/reui.io/cascader/cascader.mjs";
|
|
11
|
+
import { CascaderAction, CascaderFooter, CascaderSubmenu, CascaderSubmenuContent, CascaderSubmenuTrigger } from "../vendor/reui.io/cascader/cascader-footer.mjs";
|
|
12
|
+
import { CascaderGroup, CascaderItem, CascaderItems, CascaderLabel, CascaderSeparator } from "../vendor/reui.io/cascader/cascader-item.mjs";
|
|
13
|
+
import { CascaderBack, CascaderBreadcrumb, CascaderInput, CascaderNav, CascaderValue } from "../vendor/reui.io/cascader/cascader-nav.mjs";
|
|
14
|
+
import { CascaderVirtualItems } from "../vendor/reui.io/cascader/cascader-virtual.mjs";
|
|
15
|
+
import { Timeline as Timeline$1, TimelineContent, TimelineDate, TimelineHeader, TimelineIndicator, TimelineItem, TimelineSeparator, TimelineTitle } from "../vendor/reui.io/timeline.mjs";
|
|
8
16
|
import { Breadcrumb as Breadcrumb$1, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../vendor/shadcn/breadcrumb.mjs";
|
|
9
17
|
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
10
18
|
import { ButtonGroup as ButtonGroup$1, ButtonGroupSeparator, ButtonGroupText } from "../vendor/shadcn/button-group.mjs";
|
|
11
|
-
import { Calendar as Calendar$1, CalendarDayButton } from "../vendor/shadcn/calendar.mjs";
|
|
12
|
-
import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
|
|
13
19
|
import { Input } from "../vendor/shadcn/input.mjs";
|
|
14
20
|
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
15
21
|
import { Combobox as Combobox$1, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxValue } from "../vendor/shadcn/combobox.mjs";
|
|
@@ -22,24 +28,23 @@ import { Popover as Popover$1, PopoverContent, PopoverDescription, PopoverTitle,
|
|
|
22
28
|
import { Progress as Progress$1, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "../vendor/shadcn/progress.mjs";
|
|
23
29
|
import { RadioGroup, RadioGroupItem } from "../vendor/shadcn/radio-group.mjs";
|
|
24
30
|
import { Select as Select$1, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "../vendor/shadcn/select.mjs";
|
|
25
|
-
import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/shadcn/table.mjs";
|
|
26
31
|
import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
|
|
27
32
|
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
|
|
28
33
|
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
29
34
|
import { Skeleton } from "../vendor/shadcn/skeleton.mjs";
|
|
30
35
|
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
31
36
|
import { Sidebar } from "./sidebar.mjs";
|
|
37
|
+
import { Calendar } from "../vendor/coss/calendar.mjs";
|
|
32
38
|
import { DatePicker, DateRangePicker, TimePicker } from "./datetime.mjs";
|
|
33
39
|
import { Dropzone, formatBytes, useDropzone } from "./dropzone.mjs";
|
|
34
40
|
import { Carousel, Image, Lightbox } from "./multimedia.mjs";
|
|
35
41
|
import { Pagination } from "./pagination.mjs";
|
|
36
|
-
import { Form } from "../vendor/coss/form.mjs";
|
|
37
42
|
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
38
43
|
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
39
44
|
import { Checkbox } from "../vendor/shadcn/checkbox.mjs";
|
|
45
|
+
import { Form } from "../vendor/coss/form.mjs";
|
|
40
46
|
import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
|
|
41
47
|
import { JsonViewer } from "../vendor/tailored/json-viewer.mjs";
|
|
42
|
-
import { FileTree } from "../vendor/tailored/file-tree.mjs";
|
|
43
48
|
// src/widgets/index.ts
|
|
44
49
|
/** https://ui.shadcn.com/docs/components/base/kbd */
|
|
45
50
|
const Kbd = /* @__PURE__ */ Object.assign(Kbd$1, { Group: KbdGroup });
|
|
@@ -49,15 +54,23 @@ const Tabs = /* @__PURE__ */ Object.assign(Tabs$1, {
|
|
|
49
54
|
Trigger: TabsTrigger,
|
|
50
55
|
Content: TabsContent
|
|
51
56
|
});
|
|
52
|
-
/** https://
|
|
57
|
+
/** https://coss.com/ui/docs/components/card */
|
|
53
58
|
const Card = /* @__PURE__ */ Object.assign(Card$1, {
|
|
54
59
|
Header: CardHeader,
|
|
55
|
-
|
|
60
|
+
Panel: CardPanel,
|
|
56
61
|
Footer: CardFooter,
|
|
57
62
|
Title: CardTitle,
|
|
58
63
|
Action: CardAction,
|
|
59
64
|
Description: CardDescription
|
|
60
65
|
});
|
|
66
|
+
/** https://coss.com/ui/docs/components/card#cardframe */
|
|
67
|
+
const Frame = /* @__PURE__ */ Object.assign(CardFrame, {
|
|
68
|
+
Header: CardFrameHeader,
|
|
69
|
+
Footer: CardFrameFooter,
|
|
70
|
+
Title: CardFrameTitle,
|
|
71
|
+
Description: CardFrameDescription,
|
|
72
|
+
Action: CardFrameAction
|
|
73
|
+
});
|
|
61
74
|
/** https://ui.shadcn.com/docs/components/base/field */
|
|
62
75
|
const Field = /* @__PURE__ */ Object.assign(Field$1, {
|
|
63
76
|
Label: FieldLabel,
|
|
@@ -72,11 +85,12 @@ const Empty = /* @__PURE__ */ Object.assign(Empty$1, {
|
|
|
72
85
|
Title: EmptyTitle,
|
|
73
86
|
Description: EmptyDescription
|
|
74
87
|
});
|
|
75
|
-
/** https://
|
|
88
|
+
/** https://coss.com/ui/docs/components/table */
|
|
76
89
|
const Table = /* @__PURE__ */ Object.assign(Table$1, {
|
|
77
90
|
Header: TableHeader,
|
|
78
91
|
Body: TableBody,
|
|
79
92
|
Footer: TableFooter,
|
|
93
|
+
Caption: TableCaption,
|
|
80
94
|
Row: TableRow,
|
|
81
95
|
Head: TableHead,
|
|
82
96
|
Cell: TableCell
|
|
@@ -128,6 +142,34 @@ const Popover = /* @__PURE__ */ Object.assign(Popover$1, {
|
|
|
128
142
|
Title: PopoverTitle,
|
|
129
143
|
Description: PopoverDescription
|
|
130
144
|
});
|
|
145
|
+
/** https://reui.io/docs/components/cascader */
|
|
146
|
+
const Cascader = /* @__PURE__ */ Object.assign(Cascader$1, {
|
|
147
|
+
Trigger: CascaderTrigger,
|
|
148
|
+
Popup: CascaderContent,
|
|
149
|
+
Panel: CascaderPanel,
|
|
150
|
+
List: CascaderList,
|
|
151
|
+
Empty: CascaderEmpty,
|
|
152
|
+
Status: CascaderStatus,
|
|
153
|
+
Chips: CascaderChips,
|
|
154
|
+
Chip: CascaderChip,
|
|
155
|
+
Nav: CascaderNav,
|
|
156
|
+
Back: CascaderBack,
|
|
157
|
+
Breadcrumb: CascaderBreadcrumb,
|
|
158
|
+
Input: CascaderInput,
|
|
159
|
+
Value: CascaderValue,
|
|
160
|
+
Item: CascaderItem,
|
|
161
|
+
Items: CascaderItems,
|
|
162
|
+
Group: CascaderGroup,
|
|
163
|
+
Label: CascaderLabel,
|
|
164
|
+
Separator: CascaderSeparator,
|
|
165
|
+
Footer: CascaderFooter,
|
|
166
|
+
Action: CascaderAction,
|
|
167
|
+
Submenu: CascaderSubmenu,
|
|
168
|
+
SubmenuTrigger: CascaderSubmenuTrigger,
|
|
169
|
+
SubmenuContent: CascaderSubmenuContent,
|
|
170
|
+
/** Windowed replacement for `Items` inside `List`. */
|
|
171
|
+
VirtualItems: CascaderVirtualItems
|
|
172
|
+
});
|
|
131
173
|
/** https://ui.shadcn.com/docs/components/base/dropdown-menu */
|
|
132
174
|
const Dropdown = /* @__PURE__ */ Object.assign(DropdownMenu, {
|
|
133
175
|
Trigger: DropdownMenuTrigger,
|
|
@@ -167,8 +209,16 @@ const Progress = /* @__PURE__ */ Object.assign(Progress$1, {
|
|
|
167
209
|
Track: ProgressTrack,
|
|
168
210
|
Indicator: ProgressIndicator
|
|
169
211
|
});
|
|
170
|
-
/** https://
|
|
171
|
-
const
|
|
212
|
+
/** https://reui.io/docs/components/timeline */
|
|
213
|
+
const Timeline = /* @__PURE__ */ Object.assign(Timeline$1, {
|
|
214
|
+
Item: TimelineItem,
|
|
215
|
+
Header: TimelineHeader,
|
|
216
|
+
Content: TimelineContent,
|
|
217
|
+
Indicator: TimelineIndicator,
|
|
218
|
+
Separator: TimelineSeparator,
|
|
219
|
+
Date: TimelineDate,
|
|
220
|
+
Title: TimelineTitle
|
|
221
|
+
});
|
|
172
222
|
/** https://ui.shadcn.com/docs/components/base/breadcrumb */
|
|
173
223
|
const Breadcrumb = /* @__PURE__ */ Object.assign(Breadcrumb$1, {
|
|
174
224
|
List: BreadcrumbList,
|
|
@@ -201,4 +251,4 @@ const InputGroup = /* @__PURE__ */ Object.assign(InputGroup$1, {
|
|
|
201
251
|
Textarea: InputGroupTextarea,
|
|
202
252
|
Button: InputGroupButton
|
|
203
253
|
});
|
|
204
|
-
export { AlertDialog, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Dropzone, Empty, Field,
|
|
254
|
+
export { AlertDialog, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Cascader, Checkbox, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Dropzone, Empty, Field, Form, Frame, IconSwap, Image, Input, InputGroup, JsonViewer, Kbd, Label, Lightbox, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Skeleton, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Timeline, Toaster as ToastProvider, Tooltip, formatBytes, toast, useDropzone, useSidebar };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/KiriRainCat/deftui.git",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"tw-animate-css": "^1.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@base-ui/react": "^1.9.0",
|
|
49
48
|
"@types/react": "^19.3.0",
|
|
50
49
|
"@types/react-dom": "^19.3.0",
|
|
51
50
|
"shadcn": "^4.23.0",
|
|
@@ -53,6 +52,7 @@
|
|
|
53
52
|
},
|
|
54
53
|
"peerDependencies": {
|
|
55
54
|
"@base-ui/react": "^1.9.0",
|
|
55
|
+
"@tanstack/react-virtual": "^3.14.0",
|
|
56
56
|
"react": "^19.0.0",
|
|
57
57
|
"react-dom": "^19.0.0",
|
|
58
58
|
"tailwindcss": "^4.3.0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Button } from "./button.mjs";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import { DayButton, DayPicker, Locale } from "@daypicker/react";
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
5
|
-
buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
|
|
6
|
-
}): React$1.JSX.Element;
|
|
7
|
-
declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React$1.ComponentProps<typeof DayButton> & {
|
|
8
|
-
locale?: Partial<Locale>;
|
|
9
|
-
}): React$1.JSX.Element;
|
|
10
|
-
export { Calendar, CalendarDayButton };
|