@deftui/react 0.0.5 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/index.d.mts +5 -4
  2. package/dist/index.mjs +5 -4
  3. package/dist/vendor/README.md +2 -1
  4. package/dist/vendor/coss/empty.d.mts +12 -0
  5. package/dist/vendor/coss/empty.mjs +74 -0
  6. package/dist/vendor/shadcn/alert-dialog.d.mts +2 -1
  7. package/dist/vendor/shadcn/alert-dialog.mjs +9 -2
  8. package/dist/vendor/shadcn/breadcrumb.mjs +1 -1
  9. package/dist/vendor/shadcn/button-group.d.mts +10 -0
  10. package/dist/vendor/shadcn/button-group.mjs +40 -0
  11. package/dist/vendor/shadcn/button.mjs +1 -1
  12. package/dist/vendor/shadcn/calendar.mjs +1 -1
  13. package/dist/vendor/shadcn/carousel.mjs +1 -1
  14. package/dist/vendor/shadcn/combobox.mjs +1 -1
  15. package/dist/vendor/shadcn/dialog.mjs +1 -1
  16. package/dist/vendor/shadcn/dropdown-menu.mjs +1 -1
  17. package/dist/vendor/shadcn/input-group.d.mts +8 -2
  18. package/dist/vendor/shadcn/pagination.mjs +1 -1
  19. package/dist/vendor/shadcn/select.mjs +1 -1
  20. package/dist/vendor/shadcn/sheet.mjs +1 -1
  21. package/dist/vendor/shadcn/sidebar.d.mts +1 -1
  22. package/dist/vendor/shadcn/sidebar.mjs +2 -2
  23. package/dist/vendor/shadcn/spinner.mjs +1 -1
  24. package/dist/vendor/shadcn/toast.mjs +1 -1
  25. package/dist/vendor/shadcn/tooltip.d.mts +2 -1
  26. package/dist/vendor/shadcn/tooltip.mjs +8 -1
  27. package/dist/vendor/tailored/icon-swap.d.mts +7 -0
  28. package/dist/vendor/tailored/icon-swap.mjs +43 -0
  29. package/dist/vendor/tailored/lightbox.d.mts +1 -1
  30. package/dist/vendor/tailored/lightbox.mjs +2 -2
  31. package/dist/widgets/breadcrumb.d.mts +0 -1
  32. package/dist/widgets/breadcrumb.mjs +0 -1
  33. package/dist/widgets/datetime-picker.mjs +1 -1
  34. package/dist/widgets/index.d.mts +16 -24
  35. package/dist/widgets/index.mjs +19 -31
  36. package/dist/widgets/multimedia.d.mts +0 -2
  37. package/dist/widgets/multimedia.mjs +0 -2
  38. package/dist/widgets/pagination.d.mts +0 -1
  39. package/dist/widgets/pagination.mjs +0 -1
  40. package/dist/widgets/sidebar.d.mts +0 -1
  41. package/dist/widgets/sidebar.mjs +0 -1
  42. package/package.json +1 -1
  43. package/dist/vendor/shadcn/empty.d.mts +0 -11
  44. package/dist/vendor/shadcn/empty.mjs +0 -58
package/dist/index.d.mts CHANGED
@@ -2,13 +2,13 @@ import { useCopyToClipboard } from "./vendor/coss/hooks/use-copy-to-clipboard.mj
2
2
  import { useIsMobile, useMediaQuery } from "./vendor/coss/hooks/use-media-query.mjs";
3
3
  import { Button } from "./vendor/shadcn/button.mjs";
4
4
  import { AlertDialogHandle, createAlertDialogHandle } from "./vendor/shadcn/alert-dialog.mjs";
5
+ import { Separator } from "./vendor/shadcn/separator.mjs";
5
6
  import { ComboboxItemCollection, ComboboxPrimitiveValue, CreateComboboxItemsOptions, createComboboxItems } from "./vendor/shadcn/combobox.mjs";
6
7
  import { DialogHandle, createDialogHandle } from "./vendor/shadcn/dialog.mjs";
7
8
  import { DrawerHandle, createDrawerHandle } from "./vendor/shadcn/drawer.mjs";
8
9
  import { Label } from "./vendor/shadcn/label.mjs";
9
10
  import { Toaster, toast } from "./vendor/shadcn/toast.mjs";
10
11
  import { Input } from "./vendor/shadcn/input.mjs";
11
- import { Separator } from "./vendor/shadcn/separator.mjs";
12
12
  import { useSidebar } from "./vendor/shadcn/sidebar.mjs";
13
13
  import { Sidebar } from "./widgets/sidebar.mjs";
14
14
  import { Breadcrumb } from "./widgets/breadcrumb.mjs";
@@ -16,14 +16,15 @@ import { Pagination } from "./widgets/pagination.mjs";
16
16
  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";
17
17
  import { Carousel, Image, ImageProps, Lightbox } from "./widgets/multimedia.mjs";
18
18
  import { DatePicker, DateRange, DateRangePicker, TimePicker } from "./widgets/datetime-picker.mjs";
19
- import { Form } from "./vendor/coss/form.mjs";
20
19
  import { Badge } from "./vendor/shadcn/badge.mjs";
21
20
  import { Switch } from "./vendor/shadcn/switch.mjs";
22
21
  import { Spinner } from "./vendor/shadcn/spinner.mjs";
23
22
  import { Textarea } from "./vendor/shadcn/textarea.mjs";
24
23
  import { ScrollArea } from "./vendor/coss/scroll-area.mjs";
25
- import { AlertDialog, Card, Combobox, Dialog, Drawer, Dropdown, Empty, Field, InputGroup, Kbd, Popover, Progress, Radio, Select, Table, Tabs, Tooltip } from "./widgets/index.mjs";
24
+ import { Form } from "./vendor/coss/form.mjs";
25
+ import { IconSwap } from "./vendor/tailored/icon-swap.mjs";
26
+ import { AlertDialog, ButtonGroup, Card, Combobox, Dialog, Drawer, Dropdown, Empty, Field, InputGroup, Kbd, Popover, Progress, Radio, Select, Table, Tabs, Tooltip } from "./widgets/index.mjs";
26
27
  import { cn } from "cn";
27
28
  import { cva } from "class-variance-authority";
28
29
  import { mergeProps } from "@base-ui/react/merge-props";
29
- export { AlertDialog, type AlertDialogHandle, Badge, Breadcrumb, Button, Card, Carousel, Combobox, type ComboboxItemCollection, type ComboboxPrimitiveValue, type CreateComboboxItemsOptions, DatePicker, type DateRange, DateRangePicker, Dialog, type DialogHandle, Drawer, type DrawerHandle, Dropdown, Empty, Field, Form, Image, ImageProps, Input, InputGroup, Kbd, 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, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, cn, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, cva, mergeProps, toast, useCopyToClipboard, useIsMobile, type useLightbox, useMediaQuery, useSidebar };
30
+ export { AlertDialog, type AlertDialogHandle, Badge, Breadcrumb, Button, ButtonGroup, Card, Carousel, Combobox, type ComboboxItemCollection, type ComboboxPrimitiveValue, type CreateComboboxItemsOptions, DatePicker, type DateRange, DateRangePicker, Dialog, type DialogHandle, Drawer, type DrawerHandle, Dropdown, Empty, Field, Form, IconSwap, Image, ImageProps, Input, InputGroup, Kbd, 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, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, cn, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, cva, mergeProps, toast, useCopyToClipboard, useIsMobile, type useLightbox, useMediaQuery, useSidebar };
package/dist/index.mjs CHANGED
@@ -3,13 +3,13 @@ import { useIsMobile, useMediaQuery } from "./vendor/coss/hooks/use-media-query.
3
3
  import { Spinner } from "./vendor/shadcn/spinner.mjs";
4
4
  import { Button } from "./vendor/shadcn/button.mjs";
5
5
  import { createAlertDialogHandle } from "./vendor/shadcn/alert-dialog.mjs";
6
+ import { Separator } from "./vendor/shadcn/separator.mjs";
6
7
  import { Input } from "./vendor/shadcn/input.mjs";
7
8
  import { Textarea } from "./vendor/shadcn/textarea.mjs";
8
9
  import { createComboboxItems } from "./vendor/shadcn/combobox.mjs";
9
10
  import { createDialogHandle } from "./vendor/shadcn/dialog.mjs";
10
11
  import { createDrawerHandle } from "./vendor/shadcn/drawer.mjs";
11
12
  import { Label } from "./vendor/shadcn/label.mjs";
12
- import { Separator } from "./vendor/shadcn/separator.mjs";
13
13
  import { Toaster, toast } from "./vendor/shadcn/toast.mjs";
14
14
  import { useSidebar } from "./vendor/shadcn/sidebar.mjs";
15
15
  import { Sidebar } from "./widgets/sidebar.mjs";
@@ -17,12 +17,13 @@ import { Breadcrumb } from "./widgets/breadcrumb.mjs";
17
17
  import { Pagination } from "./widgets/pagination.mjs";
18
18
  import { Carousel, Image, Lightbox } from "./widgets/multimedia.mjs";
19
19
  import { DatePicker, DateRangePicker, TimePicker } from "./widgets/datetime-picker.mjs";
20
- import { Form } from "./vendor/coss/form.mjs";
21
20
  import { Badge } from "./vendor/shadcn/badge.mjs";
22
21
  import { Switch } from "./vendor/shadcn/switch.mjs";
23
22
  import { ScrollArea } from "./vendor/coss/scroll-area.mjs";
24
- import { AlertDialog, Card, Combobox, Dialog, Drawer, Dropdown, Empty, Field, InputGroup, Kbd, Popover, Progress, Radio, Select, Table, Tabs, Tooltip } from "./widgets/index.mjs";
23
+ import { Form } from "./vendor/coss/form.mjs";
24
+ import { IconSwap } from "./vendor/tailored/icon-swap.mjs";
25
+ import { AlertDialog, ButtonGroup, Card, Combobox, Dialog, Drawer, Dropdown, Empty, Field, InputGroup, Kbd, Popover, Progress, Radio, Select, Table, Tabs, Tooltip } from "./widgets/index.mjs";
25
26
  import { cn } from "cn";
26
27
  import { cva } from "class-variance-authority";
27
28
  import { mergeProps } from "@base-ui/react/merge-props";
28
- export { AlertDialog, Badge, Breadcrumb, Button, Card, Carousel, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Empty, Field, Form, Image, Input, InputGroup, Kbd, Label, Lightbox, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, cn, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, cva, mergeProps, toast, useCopyToClipboard, useIsMobile, useMediaQuery, useSidebar };
29
+ 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, cn, createAlertDialogHandle, createComboboxItems, createDialogHandle, createDrawerHandle, cva, mergeProps, toast, useCopyToClipboard, useIsMobile, useMediaQuery, useSidebar };
@@ -11,6 +11,7 @@ shadcn 组件使用 `components.json` 中的 `base-vega` 风格和 Lucide 图标
11
11
 
12
12
  | ID | File | Docs | Modifications |
13
13
  | --- | --- | --- | --- |
14
+ | `@coss/empty` | [coss/empty.tsx](coss/empty.tsx) | [Empty](https://coss.com/ui/docs/components/empty) | — |
14
15
  | `@coss/form` | [coss/form.tsx](coss/form.tsx) | [Form](https://coss.com/ui/docs/components/form) | — |
15
16
  | `@coss/scroll-area` | [coss/scroll-area.tsx](coss/scroll-area.tsx) | [Scroll Area](https://coss.com/ui/docs/components/scroll-area) | — |
16
17
  | `@coss/use-copy-to-clipboard` | [coss/hooks/use-copy-to-clipboard.ts](coss/hooks/use-copy-to-clipboard.ts) | [useCopyToClipboard](https://coss.com/ui/docs/hooks/use-copy-to-clipboard) | — |
@@ -28,7 +29,6 @@ shadcn 组件使用 `components.json` 中的 `base-vega` 风格和 Lucide 图标
28
29
  | `direction` | [shadcn/direction.tsx](shadcn/direction.tsx) | [Direction](https://ui.shadcn.com/docs/components/base/direction) | — |
29
30
  | `drawer` | [shadcn/drawer.tsx](shadcn/drawer.tsx) | [Drawer](https://ui.shadcn.com/docs/components/base/drawer) | 额外导出 `createDrawerHandle` 及其类型 |
30
31
  | `dropdown-menu` | [shadcn/dropdown-menu.tsx](shadcn/dropdown-menu.tsx) | [Dropdown Menu](https://ui.shadcn.com/docs/components/base/dropdown-menu) | — |
31
- | `empty` | [shadcn/empty.tsx](shadcn/empty.tsx) | [Empty](https://ui.shadcn.com/docs/components/base/empty) | — |
32
32
  | `field` | [shadcn/field.tsx](shadcn/field.tsx) | [Field](https://ui.shadcn.com/docs/components/base/field) | — |
33
33
  | `input` | [shadcn/input.tsx](shadcn/input.tsx) | [Input](https://ui.shadcn.com/docs/components/base/input) | 参考 coss ui 处理自动填充的文字颜色,用背景色过渡抑制浏览器底色、内阴影绘制填充色 |
34
34
  | `input-group` | [shadcn/input-group.tsx](shadcn/input-group.tsx) | [Input Group](https://ui.shadcn.com/docs/components/base/input-group) | — |
@@ -61,5 +61,6 @@ shadcn 组件使用 `components.json` 中的 `base-vega` 风格和 Lucide 图标
61
61
 
62
62
  | ID | File | Docs | Modifications |
63
63
  | --- | --- | --- | --- |
64
+ | `https://ui.iandefined.com/r/icon-swap.json` | [tailored/icon-swap.tsx](tailored/icon-swap.tsx) | [Icon Swap](https://ui.iandefined.com/docs/utilities/icon-swap/) | 进出场动画减弱模糊为 2px,缩短为 0.2s 时长 |
64
65
  | `https://ui.iandefined.com/r/lightbox.json` | [tailored/lightbox.tsx](tailored/lightbox.tsx) | [Lightbox](https://ui.iandefined.com/docs/components/lightbox/) | 适配本地组件和尺寸;修正嵌套弹层层级与点击隔离;补充加载失败反馈 |
65
66
  | `https://ui.iandefined.com/r/scroll-area.json` | [tailored/lightbox.tsx](tailored/lightbox.tsx) | [Scroll Area](https://ui.iandefined.com/docs/components/scroll-area/) | 作为 Lightbox 的私有依赖内联 |
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import React from "react";
3
+ declare const emptyMediaVariants: (props?: ({
4
+ variant?: "default" | "icon" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
7
+ export declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
8
+ export declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React.ReactElement;
9
+ export declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
10
+ export declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): React.ReactElement;
11
+ export declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
12
+ export {};
@@ -0,0 +1,74 @@
1
+ import { cn } from "../shadcn/lib/utils.mjs";
2
+ import { cva } from "class-variance-authority";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ // src/vendor/coss/empty.tsx
5
+ const emptyMediaVariants = cva("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
6
+ defaultVariants: { variant: "default" },
7
+ variants: { variant: {
8
+ default: "bg-transparent",
9
+ icon: "relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5"
10
+ } }
11
+ });
12
+ function Empty({ className, ...props }) {
13
+ return /* @__PURE__ */ jsx("div", {
14
+ className: cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance px-6 py-12 text-center md:py-20", className),
15
+ "data-slot": "empty",
16
+ ...props
17
+ });
18
+ }
19
+ function EmptyHeader({ className, ...props }) {
20
+ return /* @__PURE__ */ jsx("div", {
21
+ className: cn("flex max-w-sm flex-col items-center text-center", className),
22
+ "data-slot": "empty-header",
23
+ ...props
24
+ });
25
+ }
26
+ function EmptyMedia({ className, variant = "default", ...props }) {
27
+ return /* @__PURE__ */ jsxs("div", {
28
+ className: cn("relative mb-6", className),
29
+ "data-slot": "empty-media",
30
+ "data-variant": variant,
31
+ ...props,
32
+ children: [variant === "icon" && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
33
+ "aria-hidden": "true",
34
+ className: cn(emptyMediaVariants({
35
+ className,
36
+ variant
37
+ }), "pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 -rotate-10 scale-84 shadow-none")
38
+ }), /* @__PURE__ */ jsx("div", {
39
+ "aria-hidden": "true",
40
+ className: cn(emptyMediaVariants({
41
+ className,
42
+ variant
43
+ }), "pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none")
44
+ })] }), /* @__PURE__ */ jsx("div", {
45
+ className: cn(emptyMediaVariants({
46
+ className,
47
+ variant
48
+ })),
49
+ ...props
50
+ })]
51
+ });
52
+ }
53
+ function EmptyTitle({ className, ...props }) {
54
+ return /* @__PURE__ */ jsx("div", {
55
+ className: cn("font-bold font-heading text-xl", className),
56
+ "data-slot": "empty-title",
57
+ ...props
58
+ });
59
+ }
60
+ function EmptyDescription({ className, ...props }) {
61
+ return /* @__PURE__ */ jsx("div", {
62
+ className: cn("text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1", className),
63
+ "data-slot": "empty-description",
64
+ ...props
65
+ });
66
+ }
67
+ function EmptyContent({ className, ...props }) {
68
+ return /* @__PURE__ */ jsx("div", {
69
+ className: cn("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", className),
70
+ "data-slot": "empty-content",
71
+ ...props
72
+ });
73
+ }
74
+ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
@@ -10,7 +10,8 @@ declare function AlertDialogHeader({ className, ...props }: React$1.ComponentPro
10
10
  declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
11
11
  declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog.Title>): React$1.JSX.Element;
12
12
  declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog.Description>): React$1.JSX.Element;
13
+ declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
13
14
  declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialog.Close.Props & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): React$1.JSX.Element;
14
15
  export type AlertDialogHandle<Payload> = ReturnType<typeof AlertDialog.createHandle<Payload>>;
15
16
  export declare function createAlertDialogHandle<Payload>(): AlertDialogHandle<Payload>;
16
- export { AlertDialog$1 as AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
17
+ export { AlertDialog$1 as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger };
@@ -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, {
@@ -66,6 +66,13 @@ function AlertDialogDescription({ className, ...props }) {
66
66
  ...props
67
67
  });
68
68
  }
69
+ function AlertDialogAction({ className, ...props }) {
70
+ return /* @__PURE__ */ jsx(Button, {
71
+ "data-slot": "alert-dialog-action",
72
+ className: cn(className),
73
+ ...props
74
+ });
75
+ }
69
76
  function AlertDialogCancel({ className, variant = "outline", size = "default", ...props }) {
70
77
  return /* @__PURE__ */ jsx(AlertDialog.Close, {
71
78
  "data-slot": "alert-dialog-cancel",
@@ -80,4 +87,4 @@ function AlertDialogCancel({ className, variant = "outline", size = "default", .
80
87
  function createAlertDialogHandle() {
81
88
  return AlertDialog.createHandle();
82
89
  }
83
- export { AlertDialog$1 as AlertDialog, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle };
90
+ export { AlertDialog$1 as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle };
@@ -1,8 +1,8 @@
1
1
  import { cn } from "cn";
2
2
  import { mergeProps } from "@base-ui/react/merge-props";
3
3
  import "react";
4
- import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
6
6
  import { useRender } from "@base-ui/react/use-render";
7
7
  // src/vendor/shadcn/breadcrumb.tsx
8
8
  function Breadcrumb({ className, ...props }) {
@@ -0,0 +1,10 @@
1
+ import { Separator } from "./separator.mjs";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { useRender } from "@base-ui/react/use-render";
4
+ declare const buttonGroupVariants: (props?: ({
5
+ orientation?: "horizontal" | "vertical" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): import("react").JSX.Element;
8
+ declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
9
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react").JSX.Element;
10
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -0,0 +1,40 @@
1
+ import { Separator } from "./separator.mjs";
2
+ import { cn } from "cn";
3
+ import { cva } from "class-variance-authority";
4
+ import { mergeProps } from "@base-ui/react/merge-props";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { useRender } from "@base-ui/react/use-render";
7
+ // src/vendor/shadcn/button-group.tsx
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
+ variants: { orientation: {
10
+ horizontal: "*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",
11
+ vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"
12
+ } },
13
+ defaultVariants: { orientation: "horizontal" }
14
+ });
15
+ function ButtonGroup({ className, orientation, ...props }) {
16
+ return /* @__PURE__ */ jsx("div", {
17
+ role: "group",
18
+ "data-slot": "button-group",
19
+ "data-orientation": orientation,
20
+ className: cn(buttonGroupVariants({ orientation }), className),
21
+ ...props
22
+ });
23
+ }
24
+ function ButtonGroupText({ className, render, ...props }) {
25
+ return useRender({
26
+ defaultTagName: "div",
27
+ props: mergeProps({ className: cn("flex items-center gap-2 rounded-md border bg-muted px-2.5 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className) }, props),
28
+ render,
29
+ state: { slot: "button-group-text" }
30
+ });
31
+ }
32
+ function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
33
+ return /* @__PURE__ */ jsx(Separator, {
34
+ "data-slot": "button-group-separator",
35
+ orientation,
36
+ className: cn("relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", className),
37
+ ...props
38
+ });
39
+ }
40
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -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: {
@@ -2,8 +2,8 @@
2
2
  import { Button, buttonVariants } from "./button.mjs";
3
3
  import { cn } from "cn";
4
4
  import * as React$1 from "react";
5
- import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
6
5
  import { jsx } from "react/jsx-runtime";
6
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
7
7
  import { DayPicker, getDefaultClassNames } from "@daypicker/react";
8
8
  // src/vendor/shadcn/calendar.tsx
9
9
  function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", locale, formatters, components, ...props }) {
@@ -2,8 +2,8 @@
2
2
  import { Button } from "./button.mjs";
3
3
  import { cn } from "cn";
4
4
  import * as React$1 from "react";
5
- import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
7
7
  import useEmblaCarousel from "embla-carousel-react";
8
8
  // src/vendor/shadcn/carousel.tsx
9
9
  const CarouselContext = React$1.createContext(null);
@@ -3,8 +3,8 @@ import { Button } from "./button.mjs";
3
3
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group.mjs";
4
4
  import { cn } from "cn";
5
5
  import "react";
6
- import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
8
8
  import { Combobox } from "@base-ui/react";
9
9
  // src/vendor/shadcn/combobox.tsx
10
10
  const Combobox$1 = Combobox.Root;
@@ -2,8 +2,8 @@
2
2
  import { Button } from "./button.mjs";
3
3
  import { cn } from "cn";
4
4
  import "react";
5
- import { XIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { XIcon } from "lucide-react";
7
7
  import { Dialog } from "@base-ui/react/dialog";
8
8
  // src/vendor/shadcn/dialog.tsx
9
9
  function Dialog$1({ ...props }) {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "cn";
3
3
  import "react";
4
- import { CheckIcon, ChevronRightIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { CheckIcon, ChevronRightIcon } from "lucide-react";
6
6
  import { Menu } from "@base-ui/react/menu";
7
7
  // src/vendor/shadcn/dropdown-menu.tsx
8
8
  function DropdownMenu({ ...props }) {
@@ -1,4 +1,4 @@
1
- import "./button.mjs";
1
+ import { Button } from "./button.mjs";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import * as React$1 from "react";
4
4
  declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
@@ -6,7 +6,13 @@ declare const inputGroupAddonVariants: (props?: ({
6
6
  align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
9
+ declare const inputGroupButtonVariants: (props?: ({
10
+ size?: "icon-sm" | "icon-xs" | "sm" | "xs" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
13
+ type?: "button" | "submit" | "reset";
14
+ }): React$1.JSX.Element;
9
15
  declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
10
16
  declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
11
17
  declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
12
- export { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea };
18
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
@@ -1,8 +1,8 @@
1
1
  import { Button } from "./button.mjs";
2
2
  import { cn } from "cn";
3
3
  import "react";
4
- import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
6
6
  // src/vendor/shadcn/pagination.tsx
7
7
  function Pagination({ className, ...props }) {
8
8
  return /* @__PURE__ */ jsx("nav", {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "cn";
3
3
  import "react";
4
- import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
6
6
  import { Select } from "@base-ui/react/select";
7
7
  // src/vendor/shadcn/select.tsx
8
8
  const Select$1 = Select.Root;
@@ -2,8 +2,8 @@
2
2
  import { Button } from "./button.mjs";
3
3
  import { cn } from "cn";
4
4
  import "react";
5
- import { XIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { XIcon } from "lucide-react";
7
7
  import { Dialog } from "@base-ui/react/dialog";
8
8
  // src/vendor/shadcn/sheet.tsx
9
9
  function Sheet({ ...props }) {
@@ -1,7 +1,7 @@
1
1
  import { Button } from "./button.mjs";
2
+ import { Separator } from "./separator.mjs";
2
3
  import { TooltipContent } from "./tooltip.mjs";
3
4
  import { Input } from "./input.mjs";
4
- import { Separator } from "./separator.mjs";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
  import * as React$1 from "react";
7
7
  import { useRender } from "@base-ui/react/use-render";
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { useIsMobile } from "../coss/hooks/use-media-query.mjs";
3
3
  import { Button } from "./button.mjs";
4
- import { Input } from "./input.mjs";
5
4
  import { Separator } from "./separator.mjs";
5
+ import { Input } from "./input.mjs";
6
6
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
7
7
  import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.mjs";
8
8
  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 { PanelLeftIcon } from "lucide-react";
13
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
+ import { PanelLeftIcon } from "lucide-react";
14
14
  import { useRender } from "@base-ui/react/use-render";
15
15
  // src/vendor/shadcn/sidebar.tsx
16
16
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
@@ -1,6 +1,6 @@
1
1
  import { cn } from "cn";
2
- import { Loader2Icon } from "lucide-react";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import { Loader2Icon } from "lucide-react";
4
4
  // src/vendor/shadcn/spinner.tsx
5
5
  function Spinner({ className, ...props }) {
6
6
  return /* @__PURE__ */ jsx(Loader2Icon, {
@@ -2,8 +2,8 @@
2
2
  import { Button } from "./button.mjs";
3
3
  import { cn } from "cn";
4
4
  import "react";
5
- import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, XIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, XIcon } from "lucide-react";
7
7
  import { Toast } from "@base-ui/react/toast";
8
8
  // src/vendor/shadcn/toast.tsx
9
9
  const toast = Toast.createToastManager();
@@ -1,5 +1,6 @@
1
1
  import { Tooltip } from "@base-ui/react/tooltip";
2
+ declare function TooltipProvider({ delay, ...props }: Tooltip.Provider.Props): import("react").JSX.Element;
2
3
  declare function Tooltip$1({ ...props }: Tooltip.Root.Props): import("react").JSX.Element;
3
4
  declare function TooltipTrigger({ ...props }: Tooltip.Trigger.Props): import("react").JSX.Element;
4
5
  declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react").JSX.Element;
5
- export { Tooltip$1 as Tooltip, TooltipContent, TooltipTrigger };
6
+ export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -3,6 +3,13 @@ import { cn } from "cn";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Tooltip } from "@base-ui/react/tooltip";
5
5
  // src/vendor/shadcn/tooltip.tsx
6
+ function TooltipProvider({ delay = 0, ...props }) {
7
+ return /* @__PURE__ */ jsx(Tooltip.Provider, {
8
+ "data-slot": "tooltip-provider",
9
+ delay,
10
+ ...props
11
+ });
12
+ }
6
13
  function Tooltip$1({ ...props }) {
7
14
  return /* @__PURE__ */ jsx(Tooltip.Root, {
8
15
  "data-slot": "tooltip",
@@ -30,4 +37,4 @@ function TooltipContent({ className, side = "top", sideOffset = 4, align = "cent
30
37
  })
31
38
  }) });
32
39
  }
33
- export { Tooltip$1 as Tooltip, TooltipContent, TooltipTrigger };
40
+ export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,7 @@
1
+ import { HTMLMotionProps } from "motion/react";
2
+ type IconSwapProps = Omit<HTMLMotionProps<"span">, "children"> & {
3
+ children?: React.ReactNode;
4
+ state: React.Key;
5
+ };
6
+ declare function IconSwap({ children, state, ...props }: IconSwapProps): import("react").JSX.Element;
7
+ export { IconSwap, type IconSwapProps };
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { AnimatePresence, MotionConfig, motion } from "motion/react";
4
+ // src/vendor/tailored/icon-swap.tsx
5
+ const ICON_SWAP_INITIAL = {
6
+ filter: "blur(2px)",
7
+ opacity: 0,
8
+ scale: .25
9
+ };
10
+ const ICON_SWAP_ANIMATE = {
11
+ filter: "blur(0px)",
12
+ opacity: 1,
13
+ scale: 1
14
+ };
15
+ const ICON_SWAP_EXIT = {
16
+ filter: "blur(2px)",
17
+ opacity: 0,
18
+ scale: .25
19
+ };
20
+ const ICON_SWAP_TRANSITION = {
21
+ bounce: 0,
22
+ duration: .2,
23
+ type: "spring"
24
+ };
25
+ function IconSwap({ children, state, ...props }) {
26
+ return /* @__PURE__ */ jsx(MotionConfig, {
27
+ reducedMotion: "user",
28
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
29
+ initial: false,
30
+ mode: "popLayout",
31
+ children: children == null ? null : /* @__PURE__ */ jsx(motion.span, {
32
+ animate: ICON_SWAP_ANIMATE,
33
+ "data-slot": "icon-swap",
34
+ exit: ICON_SWAP_EXIT,
35
+ initial: ICON_SWAP_INITIAL,
36
+ transition: ICON_SWAP_TRANSITION,
37
+ ...props,
38
+ children
39
+ }, state)
40
+ })
41
+ });
42
+ }
43
+ export { IconSwap };
@@ -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";
@@ -6,11 +6,11 @@ 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 { ChevronLeftIcon, ChevronRightIcon, DownloadIcon, EllipsisIcon, ImageOffIcon, XIcon, ZoomInIcon, ZoomOutIcon } from "lucide-react";
10
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { ChevronLeftIcon, ChevronRightIcon, DownloadIcon, EllipsisIcon, ImageOffIcon, XIcon, ZoomInIcon, ZoomOutIcon } from "lucide-react";
11
+ import { useRender } from "@base-ui/react/use-render";
11
12
  import { Dialog } from "@base-ui/react/dialog";
12
13
  import { Menu } from "@base-ui/react/menu";
13
- import { useRender } from "@base-ui/react/use-render";
14
14
  import { animate, useReducedMotion } from "motion/react";
15
15
  import { flushSync } from "react-dom";
16
16
  import { ScrollArea } from "@base-ui/react/scroll-area";
@@ -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;
@@ -11,7 +11,6 @@ function BreadcrumbAST({ children, ...props }) {
11
11
  }
12
12
  const Breadcrumb = /* @__PURE__ */ Object.assign(Breadcrumb$1, {
13
13
  AST: BreadcrumbAST,
14
- Root: Breadcrumb$1,
15
14
  List: BreadcrumbList,
16
15
  Item: BreadcrumbItem,
17
16
  Separator: BreadcrumbSeparator,
@@ -4,8 +4,8 @@ import { Popover, PopoverContent, PopoverTrigger } from "../vendor/shadcn/popove
4
4
  import { Calendar } from "../vendor/shadcn/calendar.mjs";
5
5
  import { cn } from "cn";
6
6
  import { useState } from "react";
7
- import { CalendarIcon } from "lucide-react";
8
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ import { CalendarIcon } from "lucide-react";
9
9
  import { format } from "date-fns";
10
10
  // src/widgets/datetime-picker.tsx
11
11
  function TimePicker({ className, step = "1", ...props }) {
@@ -1,14 +1,16 @@
1
+ import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
1
2
  import { Button } from "../vendor/shadcn/button.mjs";
2
- import { AlertDialog as AlertDialog$1, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHandle, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
3
+ import { AlertDialog as AlertDialog$1, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHandle, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
4
+ import { Separator } from "../vendor/shadcn/separator.mjs";
5
+ import { ButtonGroup as ButtonGroup$1, ButtonGroupSeparator, ButtonGroupText } from "../vendor/shadcn/button-group.mjs";
3
6
  import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
4
7
  import { ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxItemCollection, ComboboxLabel, ComboboxList, ComboboxPrimitiveValue, ComboboxValue, CreateComboboxItemsOptions, createComboboxItems } from "../vendor/shadcn/combobox.mjs";
5
8
  import { Dialog as Dialog$1, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHandle, DialogHeader, DialogTitle, DialogTrigger, createDialogHandle } from "../vendor/shadcn/dialog.mjs";
6
9
  import { Drawer as Drawer$1, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandle, DrawerHeader, DrawerTitle, DrawerTrigger, createDrawerHandle } from "../vendor/shadcn/drawer.mjs";
7
10
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
8
- import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/shadcn/empty.mjs";
9
11
  import { Label } from "../vendor/shadcn/label.mjs";
10
12
  import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
11
- import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
13
+ import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
12
14
  import { Kbd as Kbd$1, KbdGroup } from "../vendor/shadcn/kbd.mjs";
13
15
  import { Popover as Popover$1, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
14
16
  import { Progress as Progress$1, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "../vendor/shadcn/progress.mjs";
@@ -16,12 +18,11 @@ import { RadioGroup, RadioGroupItem } from "../vendor/shadcn/radio-group.mjs";
16
18
  import { SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "../vendor/shadcn/select.mjs";
17
19
  import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/shadcn/table.mjs";
18
20
  import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
19
- import { Tooltip as Tooltip$1, TooltipContent, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
21
+ import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
20
22
  import "./utils.mjs";
21
23
  import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
22
24
  import "./toast.mjs";
23
25
  import { Input } from "../vendor/shadcn/input.mjs";
24
- import { Separator } from "../vendor/shadcn/separator.mjs";
25
26
  import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
26
27
  import { Sidebar } from "./sidebar.mjs";
27
28
  import { Breadcrumb } from "./breadcrumb.mjs";
@@ -29,24 +30,22 @@ import { Pagination } from "./pagination.mjs";
29
30
  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";
30
31
  import { Carousel, Image, ImageProps, Lightbox } from "./multimedia.mjs";
31
32
  import { DatePicker, DateRange, DateRangePicker, TimePicker } from "./datetime-picker.mjs";
32
- import { Form } from "../vendor/coss/form.mjs";
33
33
  import { Badge } from "../vendor/shadcn/badge.mjs";
34
34
  import { Switch } from "../vendor/shadcn/switch.mjs";
35
35
  import { Spinner } from "../vendor/shadcn/spinner.mjs";
36
36
  import { Textarea } from "../vendor/shadcn/textarea.mjs";
37
37
  import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
38
+ import { Form } from "../vendor/coss/form.mjs";
39
+ import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
38
40
  export declare const Kbd: typeof Kbd$1 & {
39
- Root: typeof Kbd$1;
40
41
  Group: typeof KbdGroup;
41
42
  };
42
43
  export declare const Tabs: typeof Tabs$1 & {
43
- Root: typeof Tabs$1;
44
44
  List: typeof TabsList;
45
45
  Trigger: typeof TabsTrigger;
46
46
  Content: typeof TabsContent;
47
47
  };
48
48
  export declare const Card: typeof Card$1 & {
49
- Root: typeof Card$1;
50
49
  Header: typeof CardHeader;
51
50
  Content: typeof CardContent;
52
51
  Footer: typeof CardFooter;
@@ -55,13 +54,11 @@ export declare const Card: typeof Card$1 & {
55
54
  Description: typeof CardDescription;
56
55
  };
57
56
  export declare const Field: typeof Field$1 & {
58
- Root: typeof Field$1;
59
57
  Label: typeof FieldLabel;
60
58
  Description: typeof FieldDescription;
61
59
  Error: typeof FieldError;
62
60
  };
63
61
  export declare const Empty: typeof Empty$1 & {
64
- Root: typeof Empty$1;
65
62
  Header: typeof EmptyHeader;
66
63
  Content: typeof EmptyContent;
67
64
  Media: typeof EmptyMedia;
@@ -69,7 +66,6 @@ export declare const Empty: typeof Empty$1 & {
69
66
  Description: typeof EmptyDescription;
70
67
  };
71
68
  export declare const Table: typeof Table$1 & {
72
- Root: typeof Table$1;
73
69
  Header: typeof TableHeader;
74
70
  Body: typeof TableBody;
75
71
  Footer: typeof TableFooter;
@@ -78,11 +74,9 @@ export declare const Table: typeof Table$1 & {
78
74
  Cell: typeof TableCell;
79
75
  };
80
76
  export declare const Radio: typeof RadioGroupItem & {
81
- Root: typeof RadioGroupItem;
82
77
  Group: typeof RadioGroup;
83
78
  };
84
79
  export declare const Select: typeof import("@base-ui/react").SelectRoot & {
85
- Root: typeof import("@base-ui/react").SelectRoot;
86
80
  Trigger: typeof SelectTrigger;
87
81
  Value: typeof SelectValue;
88
82
  Content: typeof SelectContent;
@@ -92,7 +86,6 @@ export declare const Select: typeof import("@base-ui/react").SelectRoot & {
92
86
  Item: typeof SelectItem;
93
87
  };
94
88
  export declare const Drawer: typeof Drawer$1 & {
95
- Root: typeof Drawer$1;
96
89
  Trigger: typeof DrawerTrigger;
97
90
  Close: typeof DrawerClose;
98
91
  Content: typeof DrawerContent;
@@ -102,7 +95,6 @@ export declare const Drawer: typeof Drawer$1 & {
102
95
  Description: typeof DrawerDescription;
103
96
  };
104
97
  export declare const Dialog: typeof Dialog$1 & {
105
- Root: typeof Dialog$1;
106
98
  Trigger: typeof DialogTrigger;
107
99
  Close: typeof DialogClose;
108
100
  Content: typeof DialogContent;
@@ -112,19 +104,17 @@ export declare const Dialog: typeof Dialog$1 & {
112
104
  Description: typeof DialogDescription;
113
105
  };
114
106
  export declare const Tooltip: typeof Tooltip$1 & {
115
- Root: typeof Tooltip$1;
107
+ Provider: typeof TooltipProvider;
116
108
  Trigger: typeof TooltipTrigger;
117
109
  Content: typeof TooltipContent;
118
110
  };
119
111
  export declare const Popover: typeof Popover$1 & {
120
- Root: typeof Popover$1;
121
112
  Trigger: typeof PopoverTrigger;
122
113
  Content: typeof PopoverContent;
123
114
  Title: typeof PopoverTitle;
124
115
  Description: typeof PopoverDescription;
125
116
  };
126
117
  export declare const Dropdown: typeof DropdownMenu & {
127
- Root: typeof DropdownMenu;
128
118
  Trigger: typeof DropdownMenuTrigger;
129
119
  Content: typeof DropdownMenuContent;
130
120
  Sub: typeof DropdownMenuSub;
@@ -140,31 +130,33 @@ export declare const Dropdown: typeof DropdownMenu & {
140
130
  CheckboxItem: typeof DropdownMenuCheckboxItem;
141
131
  };
142
132
  export declare const Progress: typeof Progress$1 & {
143
- Root: typeof Progress$1;
144
133
  Label: typeof ProgressLabel;
145
134
  Value: typeof ProgressValue;
146
135
  Track: typeof ProgressTrack;
147
136
  Indicator: typeof ProgressIndicator;
148
137
  };
149
138
  export declare const AlertDialog: typeof AlertDialog$1 & {
150
- Root: typeof AlertDialog$1;
151
139
  Trigger: typeof AlertDialogTrigger;
152
140
  Close: typeof AlertDialogCancel;
141
+ Action: typeof AlertDialogAction;
153
142
  Content: typeof AlertDialogContent;
154
143
  Header: typeof AlertDialogHeader;
155
144
  Footer: typeof AlertDialogFooter;
156
145
  Title: typeof AlertDialogTitle;
157
146
  Description: typeof AlertDialogDescription;
158
147
  };
148
+ export declare const ButtonGroup: typeof ButtonGroup$1 & {
149
+ Text: typeof ButtonGroupText;
150
+ Separator: typeof ButtonGroupSeparator;
151
+ };
159
152
  export declare const InputGroup: typeof InputGroup$1 & {
160
- Root: typeof InputGroup$1;
161
153
  Addon: typeof InputGroupAddon;
162
154
  AddonText: typeof InputGroupText;
163
155
  Input: typeof InputGroupInput;
164
156
  Textarea: typeof InputGroupTextarea;
157
+ Button: typeof InputGroupButton;
165
158
  };
166
159
  export declare const Combobox: typeof import("@base-ui/react").ComboboxRoot & {
167
- Root: typeof import("@base-ui/react").ComboboxRoot;
168
160
  Content: typeof ComboboxContent;
169
161
  Empty: typeof ComboboxEmpty;
170
162
  List: typeof ComboboxList;
@@ -178,4 +170,4 @@ export declare const Combobox: typeof import("@base-ui/react").ComboboxRoot & {
178
170
  GroupCollection: typeof ComboboxCollection;
179
171
  Item: typeof ComboboxItem;
180
172
  };
181
- export { type AlertDialogHandle, Badge, Breadcrumb, Button, Carousel, type ComboboxItemCollection, type ComboboxPrimitiveValue, type CreateComboboxItemsOptions, DatePicker, type DateRange, DateRangePicker, type DialogHandle, type DrawerHandle, Form, 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 };
173
+ 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 };
@@ -1,17 +1,18 @@
1
+ import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/coss/empty.mjs";
1
2
  import { Spinner } from "../vendor/shadcn/spinner.mjs";
2
3
  import { Button } from "../vendor/shadcn/button.mjs";
3
- import { AlertDialog as AlertDialog$1, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
4
+ import { AlertDialog as AlertDialog$1, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, createAlertDialogHandle } from "../vendor/shadcn/alert-dialog.mjs";
5
+ import { Separator } from "../vendor/shadcn/separator.mjs";
6
+ import { ButtonGroup as ButtonGroup$1, ButtonGroupSeparator, ButtonGroupText } from "../vendor/shadcn/button-group.mjs";
4
7
  import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
5
8
  import { Input } from "../vendor/shadcn/input.mjs";
6
9
  import { Textarea } from "../vendor/shadcn/textarea.mjs";
7
- import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
10
+ import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
8
11
  import { Combobox as Combobox$1, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxValue, createComboboxItems } from "../vendor/shadcn/combobox.mjs";
9
12
  import { Dialog as Dialog$1, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, createDialogHandle } from "../vendor/shadcn/dialog.mjs";
10
13
  import { Drawer as Drawer$1, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, createDrawerHandle } from "../vendor/shadcn/drawer.mjs";
11
14
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
12
- import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/shadcn/empty.mjs";
13
15
  import { Label } from "../vendor/shadcn/label.mjs";
14
- import { Separator } from "../vendor/shadcn/separator.mjs";
15
16
  import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
16
17
  import { Kbd as Kbd$1, KbdGroup } from "../vendor/shadcn/kbd.mjs";
17
18
  import { Popover as Popover$1, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
@@ -20,7 +21,7 @@ import { RadioGroup, RadioGroupItem } from "../vendor/shadcn/radio-group.mjs";
20
21
  import { Select as Select$1, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "../vendor/shadcn/select.mjs";
21
22
  import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/shadcn/table.mjs";
22
23
  import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
23
- import { Tooltip as Tooltip$1, TooltipContent, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
24
+ import { Tooltip as Tooltip$1, TooltipContent, TooltipProvider, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
24
25
  import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
25
26
  import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
26
27
  import { Sidebar } from "./sidebar.mjs";
@@ -28,23 +29,19 @@ import { Breadcrumb } from "./breadcrumb.mjs";
28
29
  import { Pagination } from "./pagination.mjs";
29
30
  import { Carousel, Image, Lightbox } from "./multimedia.mjs";
30
31
  import { DatePicker, DateRangePicker, TimePicker } from "./datetime-picker.mjs";
31
- import { Form } from "../vendor/coss/form.mjs";
32
32
  import { Badge } from "../vendor/shadcn/badge.mjs";
33
33
  import { Switch } from "../vendor/shadcn/switch.mjs";
34
34
  import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
35
+ import { Form } from "../vendor/coss/form.mjs";
36
+ import { IconSwap } from "../vendor/tailored/icon-swap.mjs";
35
37
  // src/widgets/index.ts
36
- const Kbd = /* @__PURE__ */ Object.assign(Kbd$1, {
37
- Root: Kbd$1,
38
- Group: KbdGroup
39
- });
38
+ const Kbd = /* @__PURE__ */ Object.assign(Kbd$1, { Group: KbdGroup });
40
39
  const Tabs = /* @__PURE__ */ Object.assign(Tabs$1, {
41
- Root: Tabs$1,
42
40
  List: TabsList,
43
41
  Trigger: TabsTrigger,
44
42
  Content: TabsContent
45
43
  });
46
44
  const Card = /* @__PURE__ */ Object.assign(Card$1, {
47
- Root: Card$1,
48
45
  Header: CardHeader,
49
46
  Content: CardContent,
50
47
  Footer: CardFooter,
@@ -53,13 +50,11 @@ const Card = /* @__PURE__ */ Object.assign(Card$1, {
53
50
  Description: CardDescription
54
51
  });
55
52
  const Field = /* @__PURE__ */ Object.assign(Field$1, {
56
- Root: Field$1,
57
53
  Label: FieldLabel,
58
54
  Description: FieldDescription,
59
55
  Error: FieldError
60
56
  });
61
57
  const Empty = /* @__PURE__ */ Object.assign(Empty$1, {
62
- Root: Empty$1,
63
58
  Header: EmptyHeader,
64
59
  Content: EmptyContent,
65
60
  Media: EmptyMedia,
@@ -67,7 +62,6 @@ const Empty = /* @__PURE__ */ Object.assign(Empty$1, {
67
62
  Description: EmptyDescription
68
63
  });
69
64
  const Table = /* @__PURE__ */ Object.assign(Table$1, {
70
- Root: Table$1,
71
65
  Header: TableHeader,
72
66
  Body: TableBody,
73
67
  Footer: TableFooter,
@@ -75,12 +69,8 @@ const Table = /* @__PURE__ */ Object.assign(Table$1, {
75
69
  Head: TableHead,
76
70
  Cell: TableCell
77
71
  });
78
- const Radio = /* @__PURE__ */ Object.assign(RadioGroupItem, {
79
- Root: RadioGroupItem,
80
- Group: RadioGroup
81
- });
72
+ const Radio = /* @__PURE__ */ Object.assign(RadioGroupItem, { Group: RadioGroup });
82
73
  const Select = /* @__PURE__ */ Object.assign(Select$1, {
83
- Root: Select$1,
84
74
  Trigger: SelectTrigger,
85
75
  Value: SelectValue,
86
76
  Content: SelectContent,
@@ -90,7 +80,6 @@ const Select = /* @__PURE__ */ Object.assign(Select$1, {
90
80
  Item: SelectItem
91
81
  });
92
82
  const Drawer = /* @__PURE__ */ Object.assign(Drawer$1, {
93
- Root: Drawer$1,
94
83
  Trigger: DrawerTrigger,
95
84
  Close: DrawerClose,
96
85
  Content: DrawerContent,
@@ -100,7 +89,6 @@ const Drawer = /* @__PURE__ */ Object.assign(Drawer$1, {
100
89
  Description: DrawerDescription
101
90
  });
102
91
  const Dialog = /* @__PURE__ */ Object.assign(Dialog$1, {
103
- Root: Dialog$1,
104
92
  Trigger: DialogTrigger,
105
93
  Close: DialogClose,
106
94
  Content: DialogContent,
@@ -110,19 +98,17 @@ const Dialog = /* @__PURE__ */ Object.assign(Dialog$1, {
110
98
  Description: DialogDescription
111
99
  });
112
100
  const Tooltip = /* @__PURE__ */ Object.assign(Tooltip$1, {
113
- Root: Tooltip$1,
101
+ Provider: TooltipProvider,
114
102
  Trigger: TooltipTrigger,
115
103
  Content: TooltipContent
116
104
  });
117
105
  const Popover = /* @__PURE__ */ Object.assign(Popover$1, {
118
- Root: Popover$1,
119
106
  Trigger: PopoverTrigger,
120
107
  Content: PopoverContent,
121
108
  Title: PopoverTitle,
122
109
  Description: PopoverDescription
123
110
  });
124
111
  const Dropdown = /* @__PURE__ */ Object.assign(DropdownMenu, {
125
- Root: DropdownMenu,
126
112
  Trigger: DropdownMenuTrigger,
127
113
  Content: DropdownMenuContent,
128
114
  Sub: DropdownMenuSub,
@@ -138,31 +124,33 @@ const Dropdown = /* @__PURE__ */ Object.assign(DropdownMenu, {
138
124
  CheckboxItem: DropdownMenuCheckboxItem
139
125
  });
140
126
  const Progress = /* @__PURE__ */ Object.assign(Progress$1, {
141
- Root: Progress$1,
142
127
  Label: ProgressLabel,
143
128
  Value: ProgressValue,
144
129
  Track: ProgressTrack,
145
130
  Indicator: ProgressIndicator
146
131
  });
147
132
  const AlertDialog = /* @__PURE__ */ Object.assign(AlertDialog$1, {
148
- Root: AlertDialog$1,
149
133
  Trigger: AlertDialogTrigger,
150
134
  Close: AlertDialogCancel,
135
+ Action: AlertDialogAction,
151
136
  Content: AlertDialogContent,
152
137
  Header: AlertDialogHeader,
153
138
  Footer: AlertDialogFooter,
154
139
  Title: AlertDialogTitle,
155
140
  Description: AlertDialogDescription
156
141
  });
142
+ const ButtonGroup = /* @__PURE__ */ Object.assign(ButtonGroup$1, {
143
+ Text: ButtonGroupText,
144
+ Separator: ButtonGroupSeparator
145
+ });
157
146
  const InputGroup = /* @__PURE__ */ Object.assign(InputGroup$1, {
158
- Root: InputGroup$1,
159
147
  Addon: InputGroupAddon,
160
148
  AddonText: InputGroupText,
161
149
  Input: InputGroupInput,
162
- Textarea: InputGroupTextarea
150
+ Textarea: InputGroupTextarea,
151
+ Button: InputGroupButton
163
152
  });
164
153
  const Combobox = /* @__PURE__ */ Object.assign(Combobox$1, {
165
- Root: Combobox$1,
166
154
  Content: ComboboxContent,
167
155
  Empty: ComboboxEmpty,
168
156
  List: ComboboxList,
@@ -176,4 +164,4 @@ const Combobox = /* @__PURE__ */ Object.assign(Combobox$1, {
176
164
  GroupCollection: ComboboxCollection,
177
165
  Item: ComboboxItem
178
166
  });
179
- export { AlertDialog, Badge, Breadcrumb, Button, Card, Carousel, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Empty, Field, Form, 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 };
167
+ 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 };
@@ -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;
@@ -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.0.5",
3
+ "version": "0.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/KiriRainCat/deftui.git",
@@ -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 };
@@ -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 };