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.
Files changed (71) hide show
  1. package/dist/alert-dialog.d.ts +5 -1
  2. package/dist/alert-dialog.js +13 -1
  3. package/dist/avatar.d.ts +4 -1
  4. package/dist/avatar.js +37 -1
  5. package/dist/breadcrumb.js +2 -2
  6. package/dist/button.d.ts +2 -2
  7. package/dist/button.js +1 -1
  8. package/dist/calendar.js +2 -2
  9. package/dist/card.d.ts +3 -2
  10. package/dist/card.js +11 -1
  11. package/dist/carousel.js +1 -1
  12. package/dist/checkbox.js +2 -2
  13. package/dist/{chunk-QBAV4RWS.js → chunk-A7UVRY2Z.js} +1 -1
  14. package/dist/{chunk-HHN2GS4U.js → chunk-CR3N6JKY.js} +1 -1
  15. package/dist/{chunk-BOKKBA25.js → chunk-ETVGPIML.js} +35 -1
  16. package/dist/{chunk-63HUTNB3.js → chunk-UFTU4NA7.js} +2 -2
  17. package/dist/{chunk-DVPPDIDA.js → chunk-XWKD7TFC.js} +13 -9
  18. package/dist/combobox.d.ts +1 -1
  19. package/dist/combobox.js +9 -1
  20. package/dist/command.d.ts +7 -7
  21. package/dist/data-table.js +1 -1
  22. package/dist/date-picker.d.ts +1 -1
  23. package/dist/date-picker.js +11 -3
  24. package/dist/drawer.js +1 -1
  25. package/dist/dropdown-menu.d.ts +1 -0
  26. package/dist/dropdown-menu.js +2 -1
  27. package/dist/field.d.ts +9 -0
  28. package/dist/field.js +62 -0
  29. package/dist/input-otp.d.ts +2 -2
  30. package/dist/input.js +2 -2
  31. package/dist/native-select.js +1 -1
  32. package/dist/pagination.js +1 -1
  33. package/dist/popover.d.ts +9 -1
  34. package/dist/popover.js +9 -1
  35. package/dist/radio-group.js +1 -1
  36. package/dist/resizable.d.ts +1 -1
  37. package/dist/scroll-area.js +1 -1
  38. package/dist/select.js +1 -1
  39. package/dist/sidebar.js +1 -1
  40. package/dist/slider.js +2 -2
  41. package/dist/switch.js +1 -1
  42. package/dist/table.js +1 -1
  43. package/dist/tabs.js +2 -2
  44. package/dist/textarea.js +1 -1
  45. package/dist/toggle-group.js +1 -1
  46. package/dist/toggle.js +1 -1
  47. package/dist/tooltip.js +8 -4
  48. package/package.json +11 -7
  49. package/src/alert-dialog.tsx +12 -0
  50. package/src/avatar.tsx +44 -2
  51. package/src/breadcrumb.tsx +2 -2
  52. package/src/button.tsx +13 -9
  53. package/src/card.tsx +16 -4
  54. package/src/checkbox.tsx +2 -2
  55. package/src/drawer.tsx +1 -1
  56. package/src/dropdown-menu.tsx +3 -1
  57. package/src/field.tsx +67 -0
  58. package/src/input.tsx +2 -2
  59. package/src/native-select.tsx +1 -1
  60. package/src/popover.tsx +38 -1
  61. package/src/radio-group.tsx +1 -1
  62. package/src/scroll-area.tsx +1 -1
  63. package/src/select.tsx +1 -1
  64. package/src/slider.tsx +2 -2
  65. package/src/switch.tsx +1 -1
  66. package/src/table.tsx +2 -2
  67. package/src/tabs.tsx +2 -2
  68. package/src/textarea.tsx +1 -1
  69. package/src/toggle.tsx +1 -1
  70. package/src/tooltip.tsx +13 -12
  71. package/LICENSE +0 -21
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buttonVariants
3
- } from "./chunk-DVPPDIDA.js";
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 aspect-square shrink-0 overflow-hidden rounded-full",
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
  };
@@ -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 hover:underline", className),
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 = "BreadcrumbElipssis";
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" | "link" | null | undefined;
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button,
3
3
  buttonVariants
4
- } from "./chunk-DVPPDIDA.js";
4
+ } from "./chunk-XWKD7TFC.js";
5
5
  import "./chunk-RQHJBTEU.js";
6
6
  export {
7
7
  Button,
package/dist/calendar.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Calendar
3
- } from "./chunk-HHN2GS4U.js";
4
- import "./chunk-DVPPDIDA.js";
3
+ } from "./chunk-CR3N6JKY.js";
4
+ import "./chunk-XWKD7TFC.js";
5
5
  import "./chunk-RQHJBTEU.js";
6
6
  export {
7
7
  Calendar
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<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
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
- "h3",
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-DVPPDIDA.js";
3
+ } from "./chunk-XWKD7TFC.js";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-RQHJBTEU.js";
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-2 border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=unchecked]:border-input",
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-4" })
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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
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: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buttonVariants
3
- } from "./chunk-DVPPDIDA.js";
3
+ } from "./chunk-XWKD7TFC.js";
4
4
  import {
5
5
  cn
6
6
  } from "./chunk-RQHJBTEU.js";
@@ -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
- PopoverContent
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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
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-10 px-4 py-2",
24
- sm: "h-9 rounded-md px-3",
25
- lg: "h-11 rounded-md px-8",
26
- icon: "size-10"
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: {
@@ -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-BOKKBA25.js";
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
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
- }, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
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
- }, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
73
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
74
74
  disabled?: boolean;
75
75
  onSelect?: (value: string) => void;
76
76
  value?: string;
@@ -7,7 +7,7 @@ import {
7
7
  TableHead,
8
8
  TableHeader,
9
9
  TableRow
10
- } from "./chunk-63HUTNB3.js";
10
+ } from "./chunk-UFTU4NA7.js";
11
11
  import "./chunk-RQHJBTEU.js";
12
12
  export {
13
13
  Table,
@@ -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';
@@ -1,16 +1,24 @@
1
1
  import {
2
2
  Calendar
3
- } from "./chunk-HHN2GS4U.js";
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-BOKKBA25.js";
9
- import "./chunk-DVPPDIDA.js";
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
  ));
@@ -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>>;
@@ -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
  ),
@@ -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
+ };
@@ -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>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
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>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
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;