tokka-ui 0.2.3 → 0.3.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.
- package/dist/alert-dialog.d.ts +5 -1
- package/dist/alert-dialog.js +13 -1
- package/dist/avatar.d.ts +4 -1
- package/dist/avatar.js +37 -1
- package/dist/breadcrumb.js +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js +1 -1
- package/dist/calendar.js +2 -2
- package/dist/card.d.ts +3 -2
- package/dist/card.js +11 -1
- package/dist/carousel.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/{chunk-QBAV4RWS.js → chunk-A7UVRY2Z.js} +1 -1
- package/dist/{chunk-HHN2GS4U.js → chunk-CR3N6JKY.js} +1 -1
- package/dist/{chunk-BOKKBA25.js → chunk-ETVGPIML.js} +35 -1
- package/dist/{chunk-63HUTNB3.js → chunk-UFTU4NA7.js} +2 -2
- package/dist/{chunk-DVPPDIDA.js → chunk-XWKD7TFC.js} +13 -9
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +9 -1
- package/dist/command.d.ts +7 -7
- package/dist/data-table.js +1 -1
- package/dist/date-picker.d.ts +1 -1
- package/dist/date-picker.js +11 -3
- package/dist/drawer.js +1 -1
- package/dist/dropdown-menu.d.ts +1 -0
- package/dist/dropdown-menu.js +2 -1
- package/dist/field.d.ts +9 -0
- package/dist/field.js +62 -0
- package/dist/input-otp.d.ts +2 -2
- package/dist/input.js +2 -2
- package/dist/native-select.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.d.ts +9 -1
- package/dist/popover.js +9 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable.d.ts +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/select.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider.js +2 -2
- package/dist/switch.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.js +2 -2
- package/dist/textarea.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.js +8 -4
- package/package.json +11 -7
- package/src/alert-dialog.tsx +12 -0
- package/src/avatar.tsx +44 -2
- package/src/breadcrumb.tsx +2 -2
- package/src/button.tsx +13 -9
- package/src/card.tsx +16 -4
- package/src/checkbox.tsx +2 -2
- package/src/drawer.tsx +1 -1
- package/src/dropdown-menu.tsx +3 -1
- package/src/field.tsx +67 -0
- package/src/input.tsx +2 -2
- package/src/native-select.tsx +1 -1
- package/src/popover.tsx +38 -1
- package/src/radio-group.tsx +1 -1
- package/src/scroll-area.tsx +1 -1
- package/src/select.tsx +1 -1
- package/src/slider.tsx +2 -2
- package/src/switch.tsx +1 -1
- package/src/table.tsx +2 -2
- package/src/tabs.tsx +2 -2
- package/src/textarea.tsx +1 -1
- package/src/toggle.tsx +1 -1
- package/src/tooltip.tsx +13 -12
- package/LICENSE +0 -21
package/dist/alert-dialog.d.ts
CHANGED
|
@@ -15,9 +15,13 @@ declare const AlertDialogFooter: {
|
|
|
15
15
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
|
+
declare const AlertDialogMedia: {
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
18
22
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
23
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
24
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
21
25
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
22
26
|
|
|
23
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
27
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
package/dist/alert-dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buttonVariants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XWKD7TFC.js";
|
|
4
4
|
import {
|
|
5
5
|
cn
|
|
6
6
|
} from "./chunk-RQHJBTEU.js";
|
|
@@ -67,6 +67,17 @@ var AlertDialogFooter = ({
|
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
70
|
+
var AlertDialogMedia = ({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}) => /* @__PURE__ */ jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: cn("flex items-center justify-center py-4", className),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
AlertDialogMedia.displayName = "AlertDialogMedia";
|
|
70
81
|
var AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
71
82
|
AlertDialogPrimitive.Title,
|
|
72
83
|
{
|
|
@@ -115,6 +126,7 @@ export {
|
|
|
115
126
|
AlertDialogDescription,
|
|
116
127
|
AlertDialogFooter,
|
|
117
128
|
AlertDialogHeader,
|
|
129
|
+
AlertDialogMedia,
|
|
118
130
|
AlertDialogOverlay,
|
|
119
131
|
AlertDialogPortal,
|
|
120
132
|
AlertDialogTitle,
|
package/dist/avatar.d.ts
CHANGED
|
@@ -4,5 +4,8 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
|
4
4
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
6
6
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
declare const AvatarBadge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const AvatarGroupCount: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
10
|
|
|
8
|
-
export { Avatar, AvatarFallback, AvatarImage };
|
|
11
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
package/dist/avatar.js
CHANGED
|
@@ -11,7 +11,7 @@ var Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"relative flex size-10
|
|
14
|
+
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props
|
|
@@ -39,8 +39,44 @@ var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
39
39
|
}
|
|
40
40
|
));
|
|
41
41
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
42
|
+
var AvatarBadge = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref,
|
|
46
|
+
className: cn(
|
|
47
|
+
"absolute bottom-0 right-0 flex size-3 items-center justify-center rounded-full border-2 border-background bg-primary",
|
|
48
|
+
className
|
|
49
|
+
),
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
AvatarBadge.displayName = "AvatarBadge";
|
|
54
|
+
var AvatarGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn("flex -space-x-4", className),
|
|
59
|
+
...props
|
|
60
|
+
}
|
|
61
|
+
));
|
|
62
|
+
AvatarGroup.displayName = "AvatarGroup";
|
|
63
|
+
var AvatarGroupCount = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
ref,
|
|
67
|
+
className: cn(
|
|
68
|
+
"relative flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-background bg-muted text-xs font-medium",
|
|
69
|
+
className
|
|
70
|
+
),
|
|
71
|
+
...props
|
|
72
|
+
}
|
|
73
|
+
));
|
|
74
|
+
AvatarGroupCount.displayName = "AvatarGroupCount";
|
|
42
75
|
export {
|
|
43
76
|
Avatar,
|
|
77
|
+
AvatarBadge,
|
|
44
78
|
AvatarFallback,
|
|
79
|
+
AvatarGroup,
|
|
80
|
+
AvatarGroupCount,
|
|
45
81
|
AvatarImage
|
|
46
82
|
};
|
package/dist/breadcrumb.js
CHANGED
|
@@ -36,7 +36,7 @@ var BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) =>
|
|
|
36
36
|
Comp,
|
|
37
37
|
{
|
|
38
38
|
ref,
|
|
39
|
-
className: cn("transition-colors hover:text-foreground
|
|
39
|
+
className: cn("transition-colors hover:text-foreground", className),
|
|
40
40
|
...props
|
|
41
41
|
}
|
|
42
42
|
);
|
|
@@ -85,7 +85,7 @@ var BreadcrumbEllipsis = ({
|
|
|
85
85
|
]
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
|
-
BreadcrumbEllipsis.displayName = "
|
|
88
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
89
89
|
export {
|
|
90
90
|
Breadcrumb,
|
|
91
91
|
BreadcrumbEllipsis,
|
package/dist/button.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
7
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|
package/dist/button.js
CHANGED
package/dist/calendar.js
CHANGED
package/dist/card.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
5
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
7
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const CardAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
|
|
10
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
11
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/card.js
CHANGED
|
@@ -29,7 +29,7 @@ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
29
29
|
));
|
|
30
30
|
CardHeader.displayName = "CardHeader";
|
|
31
31
|
var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
32
|
-
"
|
|
32
|
+
"div",
|
|
33
33
|
{
|
|
34
34
|
ref,
|
|
35
35
|
className: cn("text-2xl font-semibold leading-none tracking-tight", className),
|
|
@@ -57,8 +57,18 @@ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
59
|
CardFooter.displayName = "CardFooter";
|
|
60
|
+
var CardAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref,
|
|
64
|
+
className: cn("flex items-center gap-2", className),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
CardAction.displayName = "CardAction";
|
|
60
69
|
export {
|
|
61
70
|
Card,
|
|
71
|
+
CardAction,
|
|
62
72
|
CardContent,
|
|
63
73
|
CardDescription,
|
|
64
74
|
CardFooter,
|
package/dist/carousel.js
CHANGED
package/dist/checkbox.js
CHANGED
|
@@ -12,7 +12,7 @@ var Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
12
12
|
{
|
|
13
13
|
ref,
|
|
14
14
|
className: cn(
|
|
15
|
-
"peer size-4 shrink-0 rounded-sm border
|
|
15
|
+
"peer size-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
...props,
|
|
@@ -20,7 +20,7 @@ var Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
20
20
|
CheckboxPrimitive.Indicator,
|
|
21
21
|
{
|
|
22
22
|
className: cn("flex items-center justify-center text-current"),
|
|
23
|
-
children: /* @__PURE__ */ jsx(Check, { className: "size-
|
|
23
|
+
children: /* @__PURE__ */ jsx(Check, { className: "size-3.5" })
|
|
24
24
|
}
|
|
25
25
|
)
|
|
26
26
|
}
|
|
@@ -8,7 +8,7 @@ import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
var toggleVariants = cva(
|
|
11
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-
|
|
11
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
@@ -8,6 +8,7 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
var Popover = PopoverPrimitive.Root;
|
|
10
10
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
11
|
+
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
11
12
|
var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
12
13
|
PopoverPrimitive.Content,
|
|
13
14
|
{
|
|
@@ -22,9 +23,42 @@ var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset
|
|
|
22
23
|
}
|
|
23
24
|
) }));
|
|
24
25
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
26
|
+
var PopoverHeader = ({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}) => /* @__PURE__ */ jsx(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: cn("mb-2 border-b pb-2", className),
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
PopoverHeader.displayName = "PopoverHeader";
|
|
37
|
+
var PopoverTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
38
|
+
"h4",
|
|
39
|
+
{
|
|
40
|
+
ref,
|
|
41
|
+
className: cn("font-semibold leading-none tracking-tight", className),
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
));
|
|
45
|
+
PopoverTitle.displayName = "PopoverTitle";
|
|
46
|
+
var PopoverDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
47
|
+
"p",
|
|
48
|
+
{
|
|
49
|
+
ref,
|
|
50
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
));
|
|
54
|
+
PopoverDescription.displayName = "PopoverDescription";
|
|
25
55
|
|
|
26
56
|
export {
|
|
27
57
|
Popover,
|
|
28
58
|
PopoverTrigger,
|
|
29
|
-
|
|
59
|
+
PopoverAnchor,
|
|
60
|
+
PopoverContent,
|
|
61
|
+
PopoverHeader,
|
|
62
|
+
PopoverTitle,
|
|
63
|
+
PopoverDescription
|
|
30
64
|
};
|
|
@@ -54,7 +54,7 @@ var TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
54
54
|
{
|
|
55
55
|
ref,
|
|
56
56
|
className: cn(
|
|
57
|
-
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
57
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:first-child]:rounded-tl-md [&:last-child]:rounded-tr-md",
|
|
58
58
|
className
|
|
59
59
|
),
|
|
60
60
|
...props
|
|
@@ -65,7 +65,7 @@ var TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
65
65
|
"td",
|
|
66
66
|
{
|
|
67
67
|
ref,
|
|
68
|
-
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
68
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&:first-child]:rounded-bl-md [&:last-child]:rounded-br-md", className),
|
|
69
69
|
...props
|
|
70
70
|
}
|
|
71
71
|
));
|
|
@@ -8,22 +8,26 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { jsxs } from "react/jsx-runtime";
|
|
10
10
|
var buttonVariants = cva(
|
|
11
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-
|
|
11
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
16
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
17
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
18
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
16
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
17
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
18
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
19
19
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
20
20
|
link: "text-primary underline-offset-4 hover:underline"
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
23
|
-
default: "h-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
default: "h-9 px-4 py-2",
|
|
24
|
+
xs: "h-7 rounded px-2 text-xs",
|
|
25
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
26
|
+
lg: "h-10 rounded-md px-8",
|
|
27
|
+
icon: "size-9",
|
|
28
|
+
"icon-xs": "size-7",
|
|
29
|
+
"icon-sm": "size-8",
|
|
30
|
+
"icon-lg": "size-10"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
defaultVariants: {
|
package/dist/combobox.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from './command.js';
|
|
2
|
-
export { Popover, PopoverContent, PopoverTrigger } from './popover.js';
|
|
2
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from './popover.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@radix-ui/react-dialog';
|
package/dist/combobox.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover,
|
|
3
|
+
PopoverAnchor,
|
|
3
4
|
PopoverContent,
|
|
5
|
+
PopoverDescription,
|
|
6
|
+
PopoverHeader,
|
|
7
|
+
PopoverTitle,
|
|
4
8
|
PopoverTrigger
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ETVGPIML.js";
|
|
6
10
|
import {
|
|
7
11
|
Command,
|
|
8
12
|
CommandDialog,
|
|
@@ -27,6 +31,10 @@ export {
|
|
|
27
31
|
CommandSeparator,
|
|
28
32
|
CommandShortcut,
|
|
29
33
|
Popover,
|
|
34
|
+
PopoverAnchor,
|
|
30
35
|
PopoverContent,
|
|
36
|
+
PopoverDescription,
|
|
37
|
+
PopoverHeader,
|
|
38
|
+
PopoverTitle,
|
|
31
39
|
PopoverTrigger
|
|
32
40
|
};
|
package/dist/command.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
}, "
|
|
11
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
12
12
|
label?: string;
|
|
13
13
|
shouldFilter?: boolean;
|
|
14
14
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
26
26
|
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
} & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
}, "
|
|
29
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -36,7 +36,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
36
36
|
ref?: React.Ref<HTMLDivElement>;
|
|
37
37
|
} & {
|
|
38
38
|
asChild?: boolean;
|
|
39
|
-
}, "
|
|
39
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
40
40
|
label?: string;
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -45,14 +45,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
45
45
|
ref?: React.Ref<HTMLDivElement>;
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "
|
|
48
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
52
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
53
|
} & {
|
|
54
54
|
asChild?: boolean;
|
|
55
|
-
}, "
|
|
55
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
56
56
|
heading?: React.ReactNode;
|
|
57
57
|
value?: string;
|
|
58
58
|
forceMount?: boolean;
|
|
@@ -61,7 +61,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
61
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
63
|
asChild?: boolean;
|
|
64
|
-
}, "
|
|
64
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
65
65
|
alwaysRender?: boolean;
|
|
66
66
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
70
70
|
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
72
|
asChild?: boolean;
|
|
73
|
-
}, "
|
|
73
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
74
74
|
disabled?: boolean;
|
|
75
75
|
onSelect?: (value: string) => void;
|
|
76
76
|
value?: string;
|
package/dist/data-table.js
CHANGED
package/dist/date-picker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Calendar, CalendarProps } from './calendar.js';
|
|
2
|
-
export { Popover, PopoverContent, PopoverTrigger } from './popover.js';
|
|
2
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from './popover.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-day-picker';
|
package/dist/date-picker.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Calendar
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CR3N6JKY.js";
|
|
4
4
|
import {
|
|
5
5
|
Popover,
|
|
6
|
+
PopoverAnchor,
|
|
6
7
|
PopoverContent,
|
|
8
|
+
PopoverDescription,
|
|
9
|
+
PopoverHeader,
|
|
10
|
+
PopoverTitle,
|
|
7
11
|
PopoverTrigger
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ETVGPIML.js";
|
|
13
|
+
import "./chunk-XWKD7TFC.js";
|
|
10
14
|
import "./chunk-RQHJBTEU.js";
|
|
11
15
|
export {
|
|
12
16
|
Calendar,
|
|
13
17
|
Popover,
|
|
18
|
+
PopoverAnchor,
|
|
14
19
|
PopoverContent,
|
|
20
|
+
PopoverDescription,
|
|
21
|
+
PopoverHeader,
|
|
22
|
+
PopoverTitle,
|
|
15
23
|
PopoverTrigger
|
|
16
24
|
};
|
package/dist/drawer.js
CHANGED
|
@@ -24,7 +24,7 @@ var DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
24
24
|
DrawerPrimitive.Overlay,
|
|
25
25
|
{
|
|
26
26
|
ref,
|
|
27
|
-
className: cn("fixed inset-0 z-50 bg-black/80", className),
|
|
27
|
+
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
28
28
|
...props
|
|
29
29
|
}
|
|
30
30
|
));
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<Dropd
|
|
|
15
15
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
17
|
inset?: boolean;
|
|
18
|
+
variant?: "default" | "destructive";
|
|
18
19
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
20
|
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
21
|
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -55,12 +55,13 @@ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...prop
|
|
|
55
55
|
}
|
|
56
56
|
) }));
|
|
57
57
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
58
|
-
var DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
58
|
+
var DropdownMenuItem = React.forwardRef(({ className, inset, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
59
59
|
DropdownMenuPrimitive.Item,
|
|
60
60
|
{
|
|
61
61
|
ref,
|
|
62
62
|
className: cn(
|
|
63
63
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
64
|
+
variant === "destructive" && "text-destructive focus:text-destructive",
|
|
64
65
|
inset && "pl-8",
|
|
65
66
|
className
|
|
66
67
|
),
|
package/dist/field.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const FieldLabel: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
declare const FieldDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const FieldContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const FieldGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel };
|
package/dist/field.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-RQHJBTEU.js";
|
|
4
|
+
|
|
5
|
+
// src/field.tsx
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var Field = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
ref,
|
|
12
|
+
className: cn("space-y-2", className),
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
Field.displayName = "Field";
|
|
17
|
+
var FieldLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18
|
+
"label",
|
|
19
|
+
{
|
|
20
|
+
ref,
|
|
21
|
+
className: cn(
|
|
22
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
FieldLabel.displayName = "FieldLabel";
|
|
29
|
+
var FieldDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
+
"p",
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
));
|
|
37
|
+
FieldDescription.displayName = "FieldDescription";
|
|
38
|
+
var FieldContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
ref,
|
|
42
|
+
className: cn("space-y-1", className),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
));
|
|
46
|
+
FieldContent.displayName = "FieldContent";
|
|
47
|
+
var FieldGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
className: cn("space-y-4", className),
|
|
52
|
+
...props
|
|
53
|
+
}
|
|
54
|
+
));
|
|
55
|
+
FieldGroup.displayName = "FieldGroup";
|
|
56
|
+
export {
|
|
57
|
+
Field,
|
|
58
|
+
FieldContent,
|
|
59
|
+
FieldDescription,
|
|
60
|
+
FieldGroup,
|
|
61
|
+
FieldLabel
|
|
62
|
+
};
|
package/dist/input-otp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as input_otp from 'input-otp';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onChange?: (newValue: string) => unknown;
|
|
7
7
|
maxLength: number;
|
|
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
14
14
|
} & {
|
|
15
15
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
16
16
|
children?: never;
|
|
17
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|