@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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Button } from "./button.mjs";
|
|
3
3
|
import { cn } from "cn";
|
|
4
4
|
import "react";
|
|
5
|
-
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
7
7
|
// src/vendor/shadcn/alert-dialog.tsx
|
|
8
8
|
function AlertDialog$1({ ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "cn";
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
5
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
7
7
|
// src/vendor/shadcn/breadcrumb.tsx
|
|
8
8
|
function Breadcrumb({ className, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx("nav", {
|
|
@@ -2,8 +2,8 @@ import { Separator } from "./separator.mjs";
|
|
|
2
2
|
import { cn } from "cn";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
// src/vendor/shadcn/button-group.tsx
|
|
8
8
|
const buttonGroupVariants = cva("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
9
9
|
variants: { orientation: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Spinner } from "./spinner.mjs";
|
|
2
2
|
import { cn } from "cn";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { Button } from "@base-ui/react/button";
|
|
5
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Button } from "@base-ui/react/button";
|
|
6
6
|
// src/vendor/shadcn/button.tsx
|
|
7
7
|
const buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
8
8
|
variants: {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import { DayPicker } from "@daypicker/react";
|
|
3
|
+
import { DayButton, DayPicker, Locale } from "@daypicker/react";
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
|
|
6
6
|
}): React$1.JSX.Element;
|
|
7
|
-
|
|
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 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { CheckIcon } from "lucide-react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Checkbox } from "@base-ui/react/checkbox";
|
|
6
|
+
// src/vendor/shadcn/checkbox.tsx
|
|
7
|
+
function Checkbox$1({ className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Checkbox.Root, {
|
|
9
|
+
"data-slot": "checkbox",
|
|
10
|
+
className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary", className),
|
|
11
|
+
...props,
|
|
12
|
+
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
13
|
+
"data-slot": "checkbox-indicator",
|
|
14
|
+
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
15
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { Checkbox$1 as Checkbox };
|
|
@@ -9,9 +9,9 @@ import { cn } from "cn";
|
|
|
9
9
|
import { cva } from "class-variance-authority";
|
|
10
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
11
11
|
import * as React$1 from "react";
|
|
12
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
12
13
|
import { PanelLeftIcon } from "lucide-react";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
15
15
|
// src/vendor/shadcn/sidebar.tsx
|
|
16
16
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
17
17
|
const SIDEBAR_COOKIE_MAX_AGE = 604800;
|
|
@@ -6,9 +6,9 @@ import { Skeleton } from "../shadcn/skeleton.mjs";
|
|
|
6
6
|
import { cn } from "cn";
|
|
7
7
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
10
|
import { ChevronLeftIcon, ChevronRightIcon, DownloadIcon, EllipsisIcon, ImageOffIcon, XIcon, ZoomInIcon, ZoomOutIcon } from "lucide-react";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
12
12
|
import { Dialog } from "@base-ui/react/dialog";
|
|
13
13
|
import { Menu } from "@base-ui/react/menu";
|
|
14
14
|
import { animate, useReducedMotion } from "motion/react";
|
|
@@ -6,7 +6,6 @@ type ASTProps = Omit<React.ComponentProps<typeof Breadcrumb$1>, "children"> & {
|
|
|
6
6
|
declare function BreadcrumbAST({ children, ...props }: ASTProps): React.JSX.Element;
|
|
7
7
|
export declare const Breadcrumb: typeof Breadcrumb$1 & {
|
|
8
8
|
AST: typeof BreadcrumbAST;
|
|
9
|
-
Root: typeof Breadcrumb$1;
|
|
10
9
|
List: typeof BreadcrumbList;
|
|
11
10
|
Item: typeof BreadcrumbItem;
|
|
12
11
|
Separator: typeof BreadcrumbSeparator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
|
-
import { Input } from "../vendor/shadcn/input.mjs";
|
|
3
2
|
import { Calendar } from "../vendor/shadcn/calendar.mjs";
|
|
3
|
+
import { Input } from "../vendor/shadcn/input.mjs";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
import { DateRange } from "@daypicker/react";
|
|
6
6
|
type PickerProps<T> = Omit<ComponentProps<typeof Button>, "children" | "render" | "value" | "defaultValue" | "onChange"> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
|
+
import { Calendar } from "../vendor/shadcn/calendar.mjs";
|
|
2
3
|
import { Input } from "../vendor/shadcn/input.mjs";
|
|
3
4
|
import { Popover, PopoverContent, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
|
|
4
|
-
import { Calendar } from "../vendor/shadcn/calendar.mjs";
|
|
5
5
|
import { cn } from "cn";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { CalendarIcon } from "lucide-react";
|
package/dist/widgets/index.d.mts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { FileUpload as FileUpload$1, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger } from "../vendor/diceui/file-upload.mjs";
|
|
2
|
+
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
|
|
1
3
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
4
|
import { AlertDialog as AlertDialog$1, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHandle, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
|
|
3
5
|
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
4
6
|
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";
|
|
5
8
|
import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
|
|
6
9
|
import { ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxItemCollection, ComboboxLabel, ComboboxList, ComboboxPrimitiveValue, ComboboxValue, CreateComboboxItemsOptions, createComboboxItems } from "../vendor/shadcn/combobox.mjs";
|
|
7
10
|
import { Dialog as Dialog$1, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHandle, DialogHeader, DialogTitle, DialogTrigger, createDialogHandle } from "../vendor/shadcn/dialog.mjs";
|
|
8
11
|
import { Drawer as Drawer$1, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerTitle, DrawerTrigger, createDrawerHandle } from "../vendor/shadcn/drawer.mjs";
|
|
9
12
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
|
|
10
|
-
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/shadcn/empty.mjs";
|
|
11
13
|
import { Label } from "../vendor/shadcn/label.mjs";
|
|
12
14
|
import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
|
|
13
15
|
import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
|
|
@@ -33,22 +35,21 @@ import { DatePicker, DateRange, DateRangePicker, TimePicker } from "./datetime-p
|
|
|
33
35
|
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
34
36
|
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
35
37
|
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
38
|
+
import { Skeleton } from "../vendor/shadcn/skeleton.mjs";
|
|
39
|
+
import { Checkbox } from "../vendor/shadcn/checkbox.mjs";
|
|
36
40
|
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
37
41
|
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
38
42
|
import { Form } from "../vendor/coss/form.mjs";
|
|
39
43
|
import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
|
|
40
44
|
export declare const Kbd: typeof Kbd$1 & {
|
|
41
|
-
Root: typeof Kbd$1;
|
|
42
45
|
Group: typeof KbdGroup;
|
|
43
46
|
};
|
|
44
47
|
export declare const Tabs: typeof Tabs$1 & {
|
|
45
|
-
Root: typeof Tabs$1;
|
|
46
48
|
List: typeof TabsList;
|
|
47
49
|
Trigger: typeof TabsTrigger;
|
|
48
50
|
Content: typeof TabsContent;
|
|
49
51
|
};
|
|
50
52
|
export declare const Card: typeof Card$1 & {
|
|
51
|
-
Root: typeof Card$1;
|
|
52
53
|
Header: typeof CardHeader;
|
|
53
54
|
Content: typeof CardContent;
|
|
54
55
|
Footer: typeof CardFooter;
|
|
@@ -57,13 +58,11 @@ export declare const Card: typeof Card$1 & {
|
|
|
57
58
|
Description: typeof CardDescription;
|
|
58
59
|
};
|
|
59
60
|
export declare const Field: typeof Field$1 & {
|
|
60
|
-
Root: typeof Field$1;
|
|
61
61
|
Label: typeof FieldLabel;
|
|
62
62
|
Description: typeof FieldDescription;
|
|
63
63
|
Error: typeof FieldError;
|
|
64
64
|
};
|
|
65
65
|
export declare const Empty: typeof Empty$1 & {
|
|
66
|
-
Root: typeof Empty$1;
|
|
67
66
|
Header: typeof EmptyHeader;
|
|
68
67
|
Content: typeof EmptyContent;
|
|
69
68
|
Media: typeof EmptyMedia;
|
|
@@ -71,7 +70,6 @@ export declare const Empty: typeof Empty$1 & {
|
|
|
71
70
|
Description: typeof EmptyDescription;
|
|
72
71
|
};
|
|
73
72
|
export declare const Table: typeof Table$1 & {
|
|
74
|
-
Root: typeof Table$1;
|
|
75
73
|
Header: typeof TableHeader;
|
|
76
74
|
Body: typeof TableBody;
|
|
77
75
|
Footer: typeof TableFooter;
|
|
@@ -80,11 +78,9 @@ export declare const Table: typeof Table$1 & {
|
|
|
80
78
|
Cell: typeof TableCell;
|
|
81
79
|
};
|
|
82
80
|
export declare const Radio: typeof RadioGroupItem & {
|
|
83
|
-
Root: typeof RadioGroupItem;
|
|
84
81
|
Group: typeof RadioGroup;
|
|
85
82
|
};
|
|
86
83
|
export declare const Select: typeof import("@base-ui/react").SelectRoot & {
|
|
87
|
-
Root: typeof import("@base-ui/react").SelectRoot;
|
|
88
84
|
Trigger: typeof SelectTrigger;
|
|
89
85
|
Value: typeof SelectValue;
|
|
90
86
|
Content: typeof SelectContent;
|
|
@@ -94,7 +90,6 @@ export declare const Select: typeof import("@base-ui/react").SelectRoot & {
|
|
|
94
90
|
Item: typeof SelectItem;
|
|
95
91
|
};
|
|
96
92
|
export declare const Drawer: typeof Drawer$1 & {
|
|
97
|
-
Root: typeof Drawer$1;
|
|
98
93
|
Trigger: typeof DrawerTrigger;
|
|
99
94
|
Close: typeof DrawerClose;
|
|
100
95
|
Content: typeof DrawerContent;
|
|
@@ -104,7 +99,6 @@ export declare const Drawer: typeof Drawer$1 & {
|
|
|
104
99
|
Description: typeof DrawerDescription;
|
|
105
100
|
};
|
|
106
101
|
export declare const Dialog: typeof Dialog$1 & {
|
|
107
|
-
Root: typeof Dialog$1;
|
|
108
102
|
Trigger: typeof DialogTrigger;
|
|
109
103
|
Close: typeof DialogClose;
|
|
110
104
|
Content: typeof DialogContent;
|
|
@@ -115,19 +109,16 @@ export declare const Dialog: typeof Dialog$1 & {
|
|
|
115
109
|
};
|
|
116
110
|
export declare const Tooltip: typeof Tooltip$1 & {
|
|
117
111
|
Provider: typeof TooltipProvider;
|
|
118
|
-
Root: typeof Tooltip$1;
|
|
119
112
|
Trigger: typeof TooltipTrigger;
|
|
120
113
|
Content: typeof TooltipContent;
|
|
121
114
|
};
|
|
122
115
|
export declare const Popover: typeof Popover$1 & {
|
|
123
|
-
Root: typeof Popover$1;
|
|
124
116
|
Trigger: typeof PopoverTrigger;
|
|
125
117
|
Content: typeof PopoverContent;
|
|
126
118
|
Title: typeof PopoverTitle;
|
|
127
119
|
Description: typeof PopoverDescription;
|
|
128
120
|
};
|
|
129
121
|
export declare const Dropdown: typeof DropdownMenu & {
|
|
130
|
-
Root: typeof DropdownMenu;
|
|
131
122
|
Trigger: typeof DropdownMenuTrigger;
|
|
132
123
|
Content: typeof DropdownMenuContent;
|
|
133
124
|
Sub: typeof DropdownMenuSub;
|
|
@@ -142,15 +133,30 @@ export declare const Dropdown: typeof DropdownMenu & {
|
|
|
142
133
|
RadioGroup: typeof DropdownMenuRadioGroup;
|
|
143
134
|
CheckboxItem: typeof DropdownMenuCheckboxItem;
|
|
144
135
|
};
|
|
136
|
+
export declare const Combobox: typeof import("@base-ui/react").ComboboxRoot & {
|
|
137
|
+
Content: typeof ComboboxContent;
|
|
138
|
+
Empty: typeof ComboboxEmpty;
|
|
139
|
+
List: typeof ComboboxList;
|
|
140
|
+
Input: typeof ComboboxInput;
|
|
141
|
+
ChipsInput: typeof ComboboxChipsInput;
|
|
142
|
+
Chips: typeof ComboboxChips;
|
|
143
|
+
Value: typeof ComboboxValue;
|
|
144
|
+
Chip: typeof ComboboxChip;
|
|
145
|
+
Group: typeof ComboboxGroup;
|
|
146
|
+
GroupLabel: typeof ComboboxLabel;
|
|
147
|
+
GroupCollection: typeof ComboboxCollection;
|
|
148
|
+
Item: typeof ComboboxItem;
|
|
149
|
+
};
|
|
145
150
|
export declare const Progress: typeof Progress$1 & {
|
|
146
|
-
Root: typeof Progress$1;
|
|
147
151
|
Label: typeof ProgressLabel;
|
|
148
152
|
Value: typeof ProgressValue;
|
|
149
153
|
Track: typeof ProgressTrack;
|
|
150
154
|
Indicator: typeof ProgressIndicator;
|
|
151
155
|
};
|
|
156
|
+
export declare const Calendar: typeof Calendar$1 & {
|
|
157
|
+
DayButton: typeof CalendarDayButton;
|
|
158
|
+
};
|
|
152
159
|
export declare const AlertDialog: typeof AlertDialog$1 & {
|
|
153
|
-
Root: typeof AlertDialog$1;
|
|
154
160
|
Trigger: typeof AlertDialogTrigger;
|
|
155
161
|
Close: typeof AlertDialogCancel;
|
|
156
162
|
Action: typeof AlertDialogAction;
|
|
@@ -161,31 +167,25 @@ export declare const AlertDialog: typeof AlertDialog$1 & {
|
|
|
161
167
|
Description: typeof AlertDialogDescription;
|
|
162
168
|
};
|
|
163
169
|
export declare const ButtonGroup: typeof ButtonGroup$1 & {
|
|
164
|
-
Root: typeof ButtonGroup$1;
|
|
165
170
|
Text: typeof ButtonGroupText;
|
|
166
171
|
Separator: typeof ButtonGroupSeparator;
|
|
167
172
|
};
|
|
168
173
|
export declare const InputGroup: typeof InputGroup$1 & {
|
|
169
|
-
Root: typeof InputGroup$1;
|
|
170
174
|
Addon: typeof InputGroupAddon;
|
|
171
175
|
AddonText: typeof InputGroupText;
|
|
172
176
|
Input: typeof InputGroupInput;
|
|
173
177
|
Textarea: typeof InputGroupTextarea;
|
|
174
178
|
Button: typeof InputGroupButton;
|
|
175
179
|
};
|
|
176
|
-
export declare const
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
GroupCollection: typeof ComboboxCollection;
|
|
189
|
-
Item: typeof ComboboxItem;
|
|
190
|
-
};
|
|
191
|
-
export { type AlertDialogHandle, Badge, Breadcrumb, Button, Carousel, type ComboboxItemCollection, type ComboboxPrimitiveValue, type CreateComboboxItemsOptions, DatePicker, type DateRange, DateRangePicker, type DialogHandle, type DrawerHandle, Form, IconSwap, Image, ImageProps, Input, 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, Spinner, Switch, Textarea, TimePicker, Toaster as ToastProvider, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, toast, type useLightbox, useSidebar };
|
|
180
|
+
export declare const FileUpload: typeof FileUpload$1 & {
|
|
181
|
+
Dropzone: typeof FileUploadDropzone;
|
|
182
|
+
Trigger: typeof FileUploadTrigger;
|
|
183
|
+
List: typeof FileUploadList;
|
|
184
|
+
Item: typeof FileUploadItem;
|
|
185
|
+
ItemPreview: typeof FileUploadItemPreview;
|
|
186
|
+
ItemMetadata: typeof FileUploadItemMetadata;
|
|
187
|
+
ItemProgress: typeof FileUploadItemProgress;
|
|
188
|
+
ItemDelete: typeof FileUploadItemDelete;
|
|
189
|
+
Clear: typeof FileUploadClear;
|
|
190
|
+
};
|
|
191
|
+
export { type AlertDialogHandle, Badge, Breadcrumb, Button, Carousel, Checkbox, type ComboboxItemCollection, type ComboboxPrimitiveValue, type CreateComboboxItemsOptions, DatePicker, type DateRange, DateRangePicker, type DialogHandle, type DrawerHandle, Form, IconSwap, Image, ImageProps, Input, 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, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, toast, type useLightbox, useSidebar };
|
package/dist/widgets/index.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { FileUpload as FileUpload$1, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger } from "../vendor/diceui/file-upload.mjs";
|
|
2
|
+
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
|
|
1
3
|
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
2
4
|
import { Button } from "../vendor/shadcn/button.mjs";
|
|
3
5
|
import { AlertDialog as AlertDialog$1, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
|
|
4
6
|
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
5
7
|
import { ButtonGroup as ButtonGroup$1, ButtonGroupSeparator, ButtonGroupText } from "../vendor/shadcn/button-group.mjs";
|
|
8
|
+
import { Calendar as Calendar$1, CalendarDayButton } from "../vendor/shadcn/calendar.mjs";
|
|
6
9
|
import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
|
|
7
10
|
import { Input } from "../vendor/shadcn/input.mjs";
|
|
8
11
|
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
@@ -11,7 +14,6 @@ import { Combobox as Combobox$1, ComboboxChip, ComboboxChips, ComboboxChipsInput
|
|
|
11
14
|
import { Dialog as Dialog$1, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, createDialogHandle } from "../vendor/shadcn/dialog.mjs";
|
|
12
15
|
import { Drawer as Drawer$1, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, createDrawerHandle } from "../vendor/shadcn/drawer.mjs";
|
|
13
16
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
|
|
14
|
-
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/shadcn/empty.mjs";
|
|
15
17
|
import { Label } from "../vendor/shadcn/label.mjs";
|
|
16
18
|
import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
|
|
17
19
|
import { Kbd as Kbd$1, KbdGroup } from "../vendor/shadcn/kbd.mjs";
|
|
@@ -23,6 +25,7 @@ import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHe
|
|
|
23
25
|
import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
|
|
24
26
|
import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
|
|
25
27
|
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
28
|
+
import { Skeleton } from "../vendor/shadcn/skeleton.mjs";
|
|
26
29
|
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
27
30
|
import { Sidebar } from "./sidebar.mjs";
|
|
28
31
|
import { Breadcrumb } from "./breadcrumb.mjs";
|
|
@@ -31,22 +34,18 @@ import { Carousel, Image, Lightbox } from "./multimedia.mjs";
|
|
|
31
34
|
import { DatePicker, DateRangePicker, TimePicker } from "./datetime-picker.mjs";
|
|
32
35
|
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
33
36
|
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
37
|
+
import { Checkbox } from "../vendor/shadcn/checkbox.mjs";
|
|
34
38
|
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
35
39
|
import { Form } from "../vendor/coss/form.mjs";
|
|
36
40
|
import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
|
|
37
41
|
// src/widgets/index.ts
|
|
38
|
-
const Kbd = /* @__PURE__ */ Object.assign(Kbd$1, {
|
|
39
|
-
Root: Kbd$1,
|
|
40
|
-
Group: KbdGroup
|
|
41
|
-
});
|
|
42
|
+
const Kbd = /* @__PURE__ */ Object.assign(Kbd$1, { Group: KbdGroup });
|
|
42
43
|
const Tabs = /* @__PURE__ */ Object.assign(Tabs$1, {
|
|
43
|
-
Root: Tabs$1,
|
|
44
44
|
List: TabsList,
|
|
45
45
|
Trigger: TabsTrigger,
|
|
46
46
|
Content: TabsContent
|
|
47
47
|
});
|
|
48
48
|
const Card = /* @__PURE__ */ Object.assign(Card$1, {
|
|
49
|
-
Root: Card$1,
|
|
50
49
|
Header: CardHeader,
|
|
51
50
|
Content: CardContent,
|
|
52
51
|
Footer: CardFooter,
|
|
@@ -55,13 +54,11 @@ const Card = /* @__PURE__ */ Object.assign(Card$1, {
|
|
|
55
54
|
Description: CardDescription
|
|
56
55
|
});
|
|
57
56
|
const Field = /* @__PURE__ */ Object.assign(Field$1, {
|
|
58
|
-
Root: Field$1,
|
|
59
57
|
Label: FieldLabel,
|
|
60
58
|
Description: FieldDescription,
|
|
61
59
|
Error: FieldError
|
|
62
60
|
});
|
|
63
61
|
const Empty = /* @__PURE__ */ Object.assign(Empty$1, {
|
|
64
|
-
Root: Empty$1,
|
|
65
62
|
Header: EmptyHeader,
|
|
66
63
|
Content: EmptyContent,
|
|
67
64
|
Media: EmptyMedia,
|
|
@@ -69,7 +66,6 @@ const Empty = /* @__PURE__ */ Object.assign(Empty$1, {
|
|
|
69
66
|
Description: EmptyDescription
|
|
70
67
|
});
|
|
71
68
|
const Table = /* @__PURE__ */ Object.assign(Table$1, {
|
|
72
|
-
Root: Table$1,
|
|
73
69
|
Header: TableHeader,
|
|
74
70
|
Body: TableBody,
|
|
75
71
|
Footer: TableFooter,
|
|
@@ -77,12 +73,8 @@ const Table = /* @__PURE__ */ Object.assign(Table$1, {
|
|
|
77
73
|
Head: TableHead,
|
|
78
74
|
Cell: TableCell
|
|
79
75
|
});
|
|
80
|
-
const Radio = /* @__PURE__ */ Object.assign(RadioGroupItem, {
|
|
81
|
-
Root: RadioGroupItem,
|
|
82
|
-
Group: RadioGroup
|
|
83
|
-
});
|
|
76
|
+
const Radio = /* @__PURE__ */ Object.assign(RadioGroupItem, { Group: RadioGroup });
|
|
84
77
|
const Select = /* @__PURE__ */ Object.assign(Select$1, {
|
|
85
|
-
Root: Select$1,
|
|
86
78
|
Trigger: SelectTrigger,
|
|
87
79
|
Value: SelectValue,
|
|
88
80
|
Content: SelectContent,
|
|
@@ -92,7 +84,6 @@ const Select = /* @__PURE__ */ Object.assign(Select$1, {
|
|
|
92
84
|
Item: SelectItem
|
|
93
85
|
});
|
|
94
86
|
const Drawer = /* @__PURE__ */ Object.assign(Drawer$1, {
|
|
95
|
-
Root: Drawer$1,
|
|
96
87
|
Trigger: DrawerTrigger,
|
|
97
88
|
Close: DrawerClose,
|
|
98
89
|
Content: DrawerContent,
|
|
@@ -102,7 +93,6 @@ const Drawer = /* @__PURE__ */ Object.assign(Drawer$1, {
|
|
|
102
93
|
Description: DrawerDescription
|
|
103
94
|
});
|
|
104
95
|
const Dialog = /* @__PURE__ */ Object.assign(Dialog$1, {
|
|
105
|
-
Root: Dialog$1,
|
|
106
96
|
Trigger: DialogTrigger,
|
|
107
97
|
Close: DialogClose,
|
|
108
98
|
Content: DialogContent,
|
|
@@ -113,19 +103,16 @@ const Dialog = /* @__PURE__ */ Object.assign(Dialog$1, {
|
|
|
113
103
|
});
|
|
114
104
|
const Tooltip = /* @__PURE__ */ Object.assign(Tooltip$1, {
|
|
115
105
|
Provider: TooltipProvider,
|
|
116
|
-
Root: Tooltip$1,
|
|
117
106
|
Trigger: TooltipTrigger,
|
|
118
107
|
Content: TooltipContent
|
|
119
108
|
});
|
|
120
109
|
const Popover = /* @__PURE__ */ Object.assign(Popover$1, {
|
|
121
|
-
Root: Popover$1,
|
|
122
110
|
Trigger: PopoverTrigger,
|
|
123
111
|
Content: PopoverContent,
|
|
124
112
|
Title: PopoverTitle,
|
|
125
113
|
Description: PopoverDescription
|
|
126
114
|
});
|
|
127
115
|
const Dropdown = /* @__PURE__ */ Object.assign(DropdownMenu, {
|
|
128
|
-
Root: DropdownMenu,
|
|
129
116
|
Trigger: DropdownMenuTrigger,
|
|
130
117
|
Content: DropdownMenuContent,
|
|
131
118
|
Sub: DropdownMenuSub,
|
|
@@ -140,15 +127,28 @@ const Dropdown = /* @__PURE__ */ Object.assign(DropdownMenu, {
|
|
|
140
127
|
RadioGroup: DropdownMenuRadioGroup,
|
|
141
128
|
CheckboxItem: DropdownMenuCheckboxItem
|
|
142
129
|
});
|
|
130
|
+
const Combobox = /* @__PURE__ */ Object.assign(Combobox$1, {
|
|
131
|
+
Content: ComboboxContent,
|
|
132
|
+
Empty: ComboboxEmpty,
|
|
133
|
+
List: ComboboxList,
|
|
134
|
+
Input: ComboboxInput,
|
|
135
|
+
ChipsInput: ComboboxChipsInput,
|
|
136
|
+
Chips: ComboboxChips,
|
|
137
|
+
Value: ComboboxValue,
|
|
138
|
+
Chip: ComboboxChip,
|
|
139
|
+
Group: ComboboxGroup,
|
|
140
|
+
GroupLabel: ComboboxLabel,
|
|
141
|
+
GroupCollection: ComboboxCollection,
|
|
142
|
+
Item: ComboboxItem
|
|
143
|
+
});
|
|
143
144
|
const Progress = /* @__PURE__ */ Object.assign(Progress$1, {
|
|
144
|
-
Root: Progress$1,
|
|
145
145
|
Label: ProgressLabel,
|
|
146
146
|
Value: ProgressValue,
|
|
147
147
|
Track: ProgressTrack,
|
|
148
148
|
Indicator: ProgressIndicator
|
|
149
149
|
});
|
|
150
|
+
const Calendar = /* @__PURE__ */ Object.assign(Calendar$1, { DayButton: CalendarDayButton });
|
|
150
151
|
const AlertDialog = /* @__PURE__ */ Object.assign(AlertDialog$1, {
|
|
151
|
-
Root: AlertDialog$1,
|
|
152
152
|
Trigger: AlertDialogTrigger,
|
|
153
153
|
Close: AlertDialogCancel,
|
|
154
154
|
Action: AlertDialogAction,
|
|
@@ -159,31 +159,25 @@ const AlertDialog = /* @__PURE__ */ Object.assign(AlertDialog$1, {
|
|
|
159
159
|
Description: AlertDialogDescription
|
|
160
160
|
});
|
|
161
161
|
const ButtonGroup = /* @__PURE__ */ Object.assign(ButtonGroup$1, {
|
|
162
|
-
Root: ButtonGroup$1,
|
|
163
162
|
Text: ButtonGroupText,
|
|
164
163
|
Separator: ButtonGroupSeparator
|
|
165
164
|
});
|
|
166
165
|
const InputGroup = /* @__PURE__ */ Object.assign(InputGroup$1, {
|
|
167
|
-
Root: InputGroup$1,
|
|
168
166
|
Addon: InputGroupAddon,
|
|
169
167
|
AddonText: InputGroupText,
|
|
170
168
|
Input: InputGroupInput,
|
|
171
169
|
Textarea: InputGroupTextarea,
|
|
172
170
|
Button: InputGroupButton
|
|
173
171
|
});
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
GroupCollection: ComboboxCollection,
|
|
187
|
-
Item: ComboboxItem
|
|
188
|
-
});
|
|
189
|
-
export { AlertDialog, Badge, Breadcrumb, Button, ButtonGroup, Card, Carousel, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Empty, Field, Form, IconSwap, Image, Input, InputGroup, Kbd, Label, Lightbox, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, toast, useSidebar };
|
|
172
|
+
const FileUpload = /* @__PURE__ */ Object.assign(FileUpload$1, {
|
|
173
|
+
Dropzone: FileUploadDropzone,
|
|
174
|
+
Trigger: FileUploadTrigger,
|
|
175
|
+
List: FileUploadList,
|
|
176
|
+
Item: FileUploadItem,
|
|
177
|
+
ItemPreview: FileUploadItemPreview,
|
|
178
|
+
ItemMetadata: FileUploadItemMetadata,
|
|
179
|
+
ItemProgress: FileUploadItemProgress,
|
|
180
|
+
ItemDelete: FileUploadItemDelete,
|
|
181
|
+
Clear: FileUploadClear
|
|
182
|
+
});
|
|
183
|
+
export { AlertDialog, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Empty, Field, FileUpload, Form, IconSwap, Image, Input, InputGroup, Kbd, Label, Lightbox, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Skeleton, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, toast, useSidebar };
|
|
@@ -2,12 +2,10 @@ import { Carousel as Carousel$1, CarouselContent, CarouselItem, CarouselNext, Ca
|
|
|
2
2
|
import { Lightbox as Lightbox$1, 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";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
export declare const Lightbox: typeof Lightbox$1 & {
|
|
5
|
-
Root: typeof Lightbox$1;
|
|
6
5
|
Trigger: typeof LightboxTrigger;
|
|
7
6
|
Content: typeof LightboxContent;
|
|
8
7
|
};
|
|
9
8
|
export declare const Carousel: typeof Carousel$1 & {
|
|
10
|
-
Root: typeof Carousel$1;
|
|
11
9
|
Content: typeof CarouselContent;
|
|
12
10
|
Previous: typeof CarouselPrevious;
|
|
13
11
|
Next: typeof CarouselNext;
|
|
@@ -5,12 +5,10 @@ import { useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/widgets/multimedia.tsx
|
|
7
7
|
const Lightbox = /* @__PURE__ */ Object.assign(Lightbox$1, {
|
|
8
|
-
Root: Lightbox$1,
|
|
9
8
|
Trigger: LightboxTrigger,
|
|
10
9
|
Content: LightboxContent
|
|
11
10
|
});
|
|
12
11
|
const Carousel = /* @__PURE__ */ Object.assign(Carousel$1, {
|
|
13
|
-
Root: Carousel$1,
|
|
14
12
|
Content: CarouselContent,
|
|
15
13
|
Previous: CarouselPrevious,
|
|
16
14
|
Next: CarouselNext,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Pagination as Pagination$1, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../vendor/shadcn/pagination.mjs";
|
|
2
2
|
export declare const Pagination: typeof Pagination$1 & {
|
|
3
|
-
Root: typeof Pagination$1;
|
|
4
3
|
Content: typeof PaginationContent;
|
|
5
4
|
Item: typeof PaginationItem;
|
|
6
5
|
Link: typeof PaginationLink;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Pagination as Pagination$1, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../vendor/shadcn/pagination.mjs";
|
|
2
2
|
// src/widgets/pagination.tsx
|
|
3
3
|
const Pagination = /* @__PURE__ */ Object.assign(Pagination$1, {
|
|
4
|
-
Root: Pagination$1,
|
|
5
4
|
Content: PaginationContent,
|
|
6
5
|
Item: PaginationItem,
|
|
7
6
|
Link: PaginationLink,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Sidebar as Sidebar$1, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
2
2
|
export declare const Sidebar: typeof Sidebar$1 & {
|
|
3
3
|
Provider: typeof SidebarProvider;
|
|
4
|
-
Root: typeof Sidebar$1;
|
|
5
4
|
Inset: typeof SidebarInset;
|
|
6
5
|
Trigger: typeof SidebarTrigger;
|
|
7
6
|
Header: typeof SidebarHeader;
|
package/dist/widgets/sidebar.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { Sidebar as Sidebar$1, SidebarContent, SidebarFooter, SidebarGroup, Side
|
|
|
2
2
|
// src/widgets/sidebar.tsx
|
|
3
3
|
const Sidebar = /* @__PURE__ */ Object.assign(Sidebar$1, {
|
|
4
4
|
Provider: SidebarProvider,
|
|
5
|
-
Root: Sidebar$1,
|
|
6
5
|
Inset: SidebarInset,
|
|
7
6
|
Trigger: SidebarTrigger,
|
|
8
7
|
Header: SidebarHeader,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/KiriRainCat/deftui.git",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@base-ui/react": "^1.9.0",
|
|
37
|
+
"@base-ui/utils": "^0.5.0",
|
|
37
38
|
"@daypicker/react": "^10.0.2",
|
|
38
39
|
"@fontsource-variable/inter": "^5.3.0",
|
|
39
40
|
"class-variance-authority": "^0.7.1",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
declare function Empty({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
3
|
-
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
4
|
-
declare const emptyMediaVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): import("react").JSX.Element;
|
|
8
|
-
declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
9
|
-
declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import("react").JSX.Element;
|
|
10
|
-
declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
11
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|