tokka-ui 0.2.2 → 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 +36 -0
  5. package/dist/breadcrumb.js +1 -1
  6. package/dist/button.d.ts +1 -1
  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/data-table.js +1 -1
  21. package/dist/date-picker.d.ts +1 -1
  22. package/dist/date-picker.js +11 -3
  23. package/dist/drawer.js +1 -1
  24. package/dist/dropdown-menu.d.ts +1 -0
  25. package/dist/dropdown-menu.js +2 -1
  26. package/dist/field.d.ts +9 -0
  27. package/dist/field.js +62 -0
  28. package/dist/hover-card.js +2 -2
  29. package/dist/input.js +2 -2
  30. package/dist/native-select.js +1 -1
  31. package/dist/pagination.js +1 -1
  32. package/dist/popover.d.ts +9 -1
  33. package/dist/popover.js +9 -1
  34. package/dist/progress.js +1 -1
  35. package/dist/radio-group.js +1 -1
  36. package/dist/scroll-area.js +1 -1
  37. package/dist/select.js +1 -1
  38. package/dist/sidebar.js +1 -1
  39. package/dist/slider.js +1 -1
  40. package/dist/switch.js +1 -1
  41. package/dist/table.js +1 -1
  42. package/dist/tabs.js +2 -2
  43. package/dist/textarea.js +1 -1
  44. package/dist/toggle-group.js +1 -1
  45. package/dist/toggle.js +1 -1
  46. package/dist/tooltip.js +7 -3
  47. package/package.json +7 -2
  48. package/src/alert-dialog.tsx +12 -0
  49. package/src/avatar.tsx +43 -1
  50. package/src/breadcrumb.tsx +1 -1
  51. package/src/button.tsx +13 -9
  52. package/src/card.tsx +16 -4
  53. package/src/checkbox.tsx +2 -2
  54. package/src/drawer.tsx +1 -1
  55. package/src/dropdown-menu.tsx +3 -1
  56. package/src/field.tsx +67 -0
  57. package/src/hover-card.tsx +12 -10
  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/progress.tsx +1 -1
  62. package/src/radio-group.tsx +1 -1
  63. package/src/scroll-area.tsx +1 -1
  64. package/src/select.tsx +1 -1
  65. package/src/slider.tsx +1 -1
  66. package/src/switch.tsx +1 -1
  67. package/src/table.tsx +2 -2
  68. package/src/tabs.tsx +2 -2
  69. package/src/textarea.tsx +1 -1
  70. package/src/toggle.tsx +1 -1
  71. package/src/tooltip.tsx +5 -2
@@ -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
@@ -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
  };
@@ -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
@@ -4,7 +4,7 @@ import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
6
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
7
- size?: "default" | "sm" | "lg" | "icon" | 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 border-input 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",
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
  };
@@ -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
+ };
@@ -8,7 +8,7 @@ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  var HoverCard = HoverCardPrimitive.Root;
10
10
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
11
- var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
11
+ var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx(
12
12
  HoverCardPrimitive.Content,
13
13
  {
14
14
  ref,
@@ -20,7 +20,7 @@ var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffs
20
20
  ),
21
21
  ...props
22
22
  }
23
- ));
23
+ ) }));
24
24
  HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
25
25
  export {
26
26
  HoverCard,
package/dist/input.js CHANGED
@@ -15,7 +15,7 @@ var Input = React.forwardRef(
15
15
  {
16
16
  type,
17
17
  className: cn(
18
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
18
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
19
19
  icon && "pl-10",
20
20
  trailing && "pr-10",
21
21
  className
@@ -32,7 +32,7 @@ var Input = React.forwardRef(
32
32
  {
33
33
  type,
34
34
  className: cn(
35
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
35
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
36
36
  className
37
37
  ),
38
38
  ref,
@@ -13,7 +13,7 @@ var NativeSelect = React.forwardRef(
13
13
  "select",
14
14
  {
15
15
  className: cn(
16
- "flex h-10 w-full appearance-none items-center justify-between rounded-md border border-input bg-background px-3 py-2 pr-8 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
16
+ "flex h-10 w-full appearance-none items-center justify-between rounded-md border border-input bg-background px-3 py-2 pr-8 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-[3px] focus:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
17
17
  className
18
18
  ),
19
19
  ref,
@@ -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";
package/dist/popover.d.ts CHANGED
@@ -1,8 +1,16 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import * as PopoverPrimitive from '@radix-ui/react-popover';
3
4
 
4
5
  declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
5
6
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
6
8
  declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const PopoverHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const PopoverTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
14
+ declare const PopoverDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
7
15
 
8
- export { Popover, PopoverContent, PopoverTrigger };
16
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
package/dist/popover.js CHANGED
@@ -1,11 +1,19 @@
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 "./chunk-RQHJBTEU.js";
7
11
  export {
8
12
  Popover,
13
+ PopoverAnchor,
9
14
  PopoverContent,
15
+ PopoverDescription,
16
+ PopoverHeader,
17
+ PopoverTitle,
10
18
  PopoverTrigger
11
19
  };
package/dist/progress.js CHANGED
@@ -11,7 +11,7 @@ var Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @__P
11
11
  {
12
12
  ref,
13
13
  className: cn(
14
- "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
14
+ "relative h-2 w-full overflow-hidden rounded-full bg-secondary",
15
15
  className
16
16
  ),
17
17
  ...props,