@silicajs/ui 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicajs/ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Generic shadcn-style component library for Silica themes. Base UI primitives + Tailwind v4.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,17 +35,17 @@
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
37
37
  "cmdk": "^1.1.1",
38
- "lucide-react": "^1.16.0",
39
- "shadcn": "^4.8.3",
38
+ "lucide-react": "^1.17.0",
40
39
  "tailwind-merge": "^3.6.0",
41
40
  "tw-animate-css": "^1.4.0"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@tailwindcss/postcss": "^4.1.18",
45
- "@types/react": "^19.2.10",
44
+ "@types/react": "^19.2.17",
46
45
  "@types/react-dom": "^19.2.3",
47
46
  "react": "^19.2.6",
48
- "react-dom": "^19.2.6",
47
+ "react-dom": "^19.2.7",
48
+ "shadcn": "^4.11.0",
49
49
  "tailwindcss": "^4.1.18"
50
50
  },
51
51
  "homepage": "https://github.com/agdevhq/silica/tree/main/packages/ui#readme",
@@ -1,6 +1,6 @@
1
1
  /** @type {import('postcss-load-config').Config} */
2
2
  const config = {
3
- plugins: { "@tailwindcss/postcss": {} },
3
+ plugins: { "@tailwindcss/postcss": {} },
4
4
  };
5
5
 
6
6
  export default config;
@@ -0,0 +1,109 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
5
+
6
+ import { cn } from "@silicajs/ui/lib/utils";
7
+
8
+ function Avatar({
9
+ className,
10
+ size = "default",
11
+ ...props
12
+ }: AvatarPrimitive.Root.Props & {
13
+ size?: "default" | "sm" | "lg";
14
+ }) {
15
+ return (
16
+ <AvatarPrimitive.Root
17
+ data-slot="avatar"
18
+ data-size={size}
19
+ className={cn(
20
+ "group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
21
+ className,
22
+ )}
23
+ {...props}
24
+ />
25
+ );
26
+ }
27
+
28
+ function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {
29
+ return (
30
+ <AvatarPrimitive.Image
31
+ data-slot="avatar-image"
32
+ className={cn(
33
+ "aspect-square size-full rounded-full object-cover",
34
+ className,
35
+ )}
36
+ {...props}
37
+ />
38
+ );
39
+ }
40
+
41
+ function AvatarFallback({
42
+ className,
43
+ ...props
44
+ }: AvatarPrimitive.Fallback.Props) {
45
+ return (
46
+ <AvatarPrimitive.Fallback
47
+ data-slot="avatar-fallback"
48
+ className={cn(
49
+ "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
50
+ className,
51
+ )}
52
+ {...props}
53
+ />
54
+ );
55
+ }
56
+
57
+ function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
58
+ return (
59
+ <span
60
+ data-slot="avatar-badge"
61
+ className={cn(
62
+ "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
63
+ "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
64
+ "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
65
+ "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
66
+ className,
67
+ )}
68
+ {...props}
69
+ />
70
+ );
71
+ }
72
+
73
+ function AvatarGroup({ className, ...props }: React.ComponentProps<"div">) {
74
+ return (
75
+ <div
76
+ data-slot="avatar-group"
77
+ className={cn(
78
+ "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
79
+ className,
80
+ )}
81
+ {...props}
82
+ />
83
+ );
84
+ }
85
+
86
+ function AvatarGroupCount({
87
+ className,
88
+ ...props
89
+ }: React.ComponentProps<"div">) {
90
+ return (
91
+ <div
92
+ data-slot="avatar-group-count"
93
+ className={cn(
94
+ "relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",
95
+ className,
96
+ )}
97
+ {...props}
98
+ />
99
+ );
100
+ }
101
+
102
+ export {
103
+ Avatar,
104
+ AvatarImage,
105
+ AvatarFallback,
106
+ AvatarGroup,
107
+ AvatarGroupCount,
108
+ AvatarBadge,
109
+ };
@@ -1,8 +1,8 @@
1
- import { mergeProps } from "@base-ui/react/merge-props"
2
- import { useRender } from "@base-ui/react/use-render"
3
- import { cva, type VariantProps } from "class-variance-authority"
1
+ import { mergeProps } from "@base-ui/react/merge-props";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ import { cva, type VariantProps } from "class-variance-authority";
4
4
 
5
- import { cn } from "@silicajs/ui/lib/utils"
5
+ import { cn } from "@silicajs/ui/lib/utils";
6
6
 
7
7
  const badgeVariants = cva(
8
8
  "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
@@ -24,8 +24,8 @@ const badgeVariants = cva(
24
24
  defaultVariants: {
25
25
  variant: "default",
26
26
  },
27
- }
28
- )
27
+ },
28
+ );
29
29
 
30
30
  function Badge({
31
31
  className,
@@ -39,14 +39,14 @@ function Badge({
39
39
  {
40
40
  className: cn(badgeVariants({ variant }), className),
41
41
  },
42
- props
42
+ props,
43
43
  ),
44
44
  render,
45
45
  state: {
46
46
  slot: "badge",
47
47
  variant,
48
48
  },
49
- })
49
+ });
50
50
  }
51
51
 
52
- export { Badge, badgeVariants }
52
+ export { Badge, badgeVariants };
@@ -1,9 +1,9 @@
1
- import * as React from "react"
2
- import { mergeProps } from "@base-ui/react/merge-props"
3
- import { useRender } from "@base-ui/react/use-render"
1
+ import * as React from "react";
2
+ import { mergeProps } from "@base-ui/react/merge-props";
3
+ import { useRender } from "@base-ui/react/use-render";
4
4
 
5
- import { cn } from "@silicajs/ui/lib/utils"
6
- import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
5
+ import { cn } from "@silicajs/ui/lib/utils";
6
+ import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
7
7
 
8
8
  function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) {
9
9
  return (
@@ -13,7 +13,7 @@ function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) {
13
13
  className={cn(className)}
14
14
  {...props}
15
15
  />
16
- )
16
+ );
17
17
  }
18
18
 
19
19
  function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
@@ -22,11 +22,11 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
22
22
  data-slot="breadcrumb-list"
23
23
  className={cn(
24
24
  "flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5",
25
- className
25
+ className,
26
26
  )}
27
27
  {...props}
28
28
  />
29
- )
29
+ );
30
30
  }
31
31
 
32
32
  function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
@@ -36,7 +36,7 @@ function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
36
36
  className={cn("inline-flex items-center gap-1.5", className)}
37
37
  {...props}
38
38
  />
39
- )
39
+ );
40
40
  }
41
41
 
42
42
  function BreadcrumbLink({
@@ -50,13 +50,13 @@ function BreadcrumbLink({
50
50
  {
51
51
  className: cn("transition-colors hover:text-foreground", className),
52
52
  },
53
- props
53
+ props,
54
54
  ),
55
55
  render,
56
56
  state: {
57
57
  slot: "breadcrumb-link",
58
58
  },
59
- })
59
+ });
60
60
  }
61
61
 
62
62
  function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
@@ -69,7 +69,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
69
69
  className={cn("font-normal text-foreground", className)}
70
70
  {...props}
71
71
  />
72
- )
72
+ );
73
73
  }
74
74
 
75
75
  function BreadcrumbSeparator({
@@ -85,11 +85,9 @@ function BreadcrumbSeparator({
85
85
  className={cn("[&>svg]:size-3.5", className)}
86
86
  {...props}
87
87
  >
88
- {children ?? (
89
- <ChevronRightIcon />
90
- )}
88
+ {children ?? <ChevronRightIcon />}
91
89
  </li>
92
- )
90
+ );
93
91
  }
94
92
 
95
93
  function BreadcrumbEllipsis({
@@ -103,15 +101,14 @@ function BreadcrumbEllipsis({
103
101
  aria-hidden="true"
104
102
  className={cn(
105
103
  "flex size-5 items-center justify-center [&>svg]:size-4",
106
- className
104
+ className,
107
105
  )}
108
106
  {...props}
109
107
  >
110
- <MoreHorizontalIcon
111
- />
108
+ <MoreHorizontalIcon />
112
109
  <span className="sr-only">More</span>
113
110
  </span>
114
- )
111
+ );
115
112
  }
116
113
 
117
114
  export {
@@ -122,4 +119,4 @@ export {
122
119
  BreadcrumbPage,
123
120
  BreadcrumbSeparator,
124
121
  BreadcrumbEllipsis,
125
- }
122
+ };
@@ -1,7 +1,7 @@
1
- import { Button as ButtonPrimitive } from "@base-ui/react/button"
2
- import { cva, type VariantProps } from "class-variance-authority"
1
+ import { Button as ButtonPrimitive } from "@base-ui/react/button";
2
+ import { cva, type VariantProps } from "class-variance-authority";
3
3
 
4
- import { cn } from "@silicajs/ui/lib/utils"
4
+ import { cn } from "@silicajs/ui/lib/utils";
5
5
 
6
6
  const buttonVariants = cva(
7
7
  "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -37,8 +37,8 @@ const buttonVariants = cva(
37
37
  variant: "default",
38
38
  size: "default",
39
39
  },
40
- }
41
- )
40
+ },
41
+ );
42
42
 
43
43
  function Button({
44
44
  className,
@@ -52,7 +52,7 @@ function Button({
52
52
  className={cn(buttonVariants({ variant, size, className }))}
53
53
  {...props}
54
54
  />
55
- )
55
+ );
56
56
  }
57
57
 
58
- export { Button, buttonVariants }
58
+ export { Button, buttonVariants };
@@ -1,6 +1,6 @@
1
- import * as React from "react"
1
+ import * as React from "react";
2
2
 
3
- import { cn } from "@silicajs/ui/lib/utils"
3
+ import { cn } from "@silicajs/ui/lib/utils";
4
4
 
5
5
  function Card({
6
6
  className,
@@ -13,11 +13,11 @@ function Card({
13
13
  data-size={size}
14
14
  className={cn(
15
15
  "group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
16
- className
16
+ className,
17
17
  )}
18
18
  {...props}
19
19
  />
20
- )
20
+ );
21
21
  }
22
22
 
23
23
  function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -26,11 +26,11 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
26
26
  data-slot="card-header"
27
27
  className={cn(
28
28
  "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
29
- className
29
+ className,
30
30
  )}
31
31
  {...props}
32
32
  />
33
- )
33
+ );
34
34
  }
35
35
 
36
36
  function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
@@ -39,11 +39,11 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
39
39
  data-slot="card-title"
40
40
  className={cn(
41
41
  "font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
42
- className
42
+ className,
43
43
  )}
44
44
  {...props}
45
45
  />
46
- )
46
+ );
47
47
  }
48
48
 
49
49
  function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
@@ -53,7 +53,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
53
53
  className={cn("text-sm text-muted-foreground", className)}
54
54
  {...props}
55
55
  />
56
- )
56
+ );
57
57
  }
58
58
 
59
59
  function CardAction({ className, ...props }: React.ComponentProps<"div">) {
@@ -62,11 +62,11 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
62
62
  data-slot="card-action"
63
63
  className={cn(
64
64
  "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
65
- className
65
+ className,
66
66
  )}
67
67
  {...props}
68
68
  />
69
- )
69
+ );
70
70
  }
71
71
 
72
72
  function CardContent({ className, ...props }: React.ComponentProps<"div">) {
@@ -76,7 +76,7 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
76
76
  className={cn("px-6 group-data-[size=sm]/card:px-4", className)}
77
77
  {...props}
78
78
  />
79
- )
79
+ );
80
80
  }
81
81
 
82
82
  function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
@@ -85,11 +85,11 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
85
85
  data-slot="card-footer"
86
86
  className={cn(
87
87
  "flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
88
- className
88
+ className,
89
89
  )}
90
90
  {...props}
91
91
  />
92
- )
92
+ );
93
93
  }
94
94
 
95
95
  export {
@@ -100,4 +100,4 @@ export {
100
100
  CardAction,
101
101
  CardDescription,
102
102
  CardContent,
103
- }
103
+ };
@@ -1,21 +1,21 @@
1
- "use client"
1
+ "use client";
2
2
 
3
- import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible"
3
+ import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
4
4
 
5
5
  function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props) {
6
- return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
6
+ return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />;
7
7
  }
8
8
 
9
9
  function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props) {
10
10
  return (
11
11
  <CollapsiblePrimitive.Trigger data-slot="collapsible-trigger" {...props} />
12
- )
12
+ );
13
13
  }
14
14
 
15
15
  function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props) {
16
16
  return (
17
17
  <CollapsiblePrimitive.Panel data-slot="collapsible-content" {...props} />
18
- )
18
+ );
19
19
  }
20
20
 
21
- export { Collapsible, CollapsibleTrigger, CollapsibleContent }
21
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -1,21 +1,17 @@
1
- "use client"
1
+ "use client";
2
2
 
3
- import * as React from "react"
4
- import { Command as CommandPrimitive } from "cmdk"
3
+ import * as React from "react";
4
+ import { Command as CommandPrimitive } from "cmdk";
5
5
 
6
- import { cn } from "@silicajs/ui/lib/utils"
6
+ import { cn } from "@silicajs/ui/lib/utils";
7
7
  import {
8
8
  Dialog,
9
9
  DialogContent,
10
10
  DialogDescription,
11
11
  DialogHeader,
12
12
  DialogTitle,
13
- } from "@silicajs/ui/components/dialog"
14
- import {
15
- InputGroup,
16
- InputGroupAddon,
17
- } from "@silicajs/ui/components/input-group"
18
- import { SearchIcon, CheckIcon } from "lucide-react"
13
+ } from "@silicajs/ui/components/dialog";
14
+ import { SearchIcon, CheckIcon } from "lucide-react";
19
15
 
20
16
  function Command({
21
17
  className,
@@ -25,12 +21,12 @@ function Command({
25
21
  <CommandPrimitive
26
22
  data-slot="command"
27
23
  className={cn(
28
- "flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
29
- className
24
+ "flex size-full flex-col overflow-hidden rounded-xl! bg-popover text-popover-foreground",
25
+ className,
30
26
  )}
31
27
  {...props}
32
28
  />
33
- )
29
+ );
34
30
  }
35
31
 
36
32
  function CommandDialog({
@@ -41,11 +37,11 @@ function CommandDialog({
41
37
  showCloseButton = false,
42
38
  ...props
43
39
  }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
44
- title?: string
45
- description?: string
46
- className?: string
47
- showCloseButton?: boolean
48
- children: React.ReactNode
40
+ title?: string;
41
+ description?: string;
42
+ className?: string;
43
+ showCloseButton?: boolean;
44
+ children: React.ReactNode;
49
45
  }) {
50
46
  return (
51
47
  <Dialog {...props}>
@@ -56,14 +52,14 @@ function CommandDialog({
56
52
  <DialogContent
57
53
  className={cn(
58
54
  "top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",
59
- className
55
+ className,
60
56
  )}
61
57
  showCloseButton={showCloseButton}
62
58
  >
63
59
  {children}
64
60
  </DialogContent>
65
61
  </Dialog>
66
- )
62
+ );
67
63
  }
68
64
 
69
65
  function CommandInput({
@@ -71,22 +67,21 @@ function CommandInput({
71
67
  ...props
72
68
  }: React.ComponentProps<typeof CommandPrimitive.Input>) {
73
69
  return (
74
- <div data-slot="command-input-wrapper" className="p-1 pb-0">
75
- <InputGroup className="h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!">
76
- <CommandPrimitive.Input
77
- data-slot="command-input"
78
- className={cn(
79
- "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
80
- className
81
- )}
82
- {...props}
83
- />
84
- <InputGroupAddon>
85
- <SearchIcon className="size-4 shrink-0 opacity-50" />
86
- </InputGroupAddon>
87
- </InputGroup>
70
+ <div
71
+ data-slot="command-input-wrapper"
72
+ className="flex h-14 items-center gap-3 border-b border-border px-5"
73
+ >
74
+ <SearchIcon className="size-5 shrink-0 text-muted-foreground" />
75
+ <CommandPrimitive.Input
76
+ data-slot="command-input"
77
+ className={cn(
78
+ "h-full w-full bg-transparent text-base outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
79
+ className,
80
+ )}
81
+ {...props}
82
+ />
88
83
  </div>
89
- )
84
+ );
90
85
  }
91
86
 
92
87
  function CommandList({
@@ -97,12 +92,12 @@ function CommandList({
97
92
  <CommandPrimitive.List
98
93
  data-slot="command-list"
99
94
  className={cn(
100
- "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
101
- className
95
+ "no-scrollbar max-h-96 scroll-py-2 overflow-x-hidden overflow-y-auto p-2 outline-none",
96
+ className,
102
97
  )}
103
98
  {...props}
104
99
  />
105
- )
100
+ );
106
101
  }
107
102
 
108
103
  function CommandEmpty({
@@ -112,10 +107,13 @@ function CommandEmpty({
112
107
  return (
113
108
  <CommandPrimitive.Empty
114
109
  data-slot="command-empty"
115
- className={cn("py-6 text-center text-sm", className)}
110
+ className={cn(
111
+ "py-12 text-center text-sm text-muted-foreground",
112
+ className,
113
+ )}
116
114
  {...props}
117
115
  />
118
- )
116
+ );
119
117
  }
120
118
 
121
119
  function CommandGroup({
@@ -127,11 +125,11 @@ function CommandGroup({
127
125
  data-slot="command-group"
128
126
  className={cn(
129
127
  "overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
130
- className
128
+ className,
131
129
  )}
132
130
  {...props}
133
131
  />
134
- )
132
+ );
135
133
  }
136
134
 
137
135
  function CommandSeparator({
@@ -144,7 +142,7 @@ function CommandSeparator({
144
142
  className={cn("-mx-1 h-px w-auto bg-border", className)}
145
143
  {...props}
146
144
  />
147
- )
145
+ );
148
146
  }
149
147
 
150
148
  function CommandItem({
@@ -156,15 +154,15 @@ function CommandItem({
156
154
  <CommandPrimitive.Item
157
155
  data-slot="command-item"
158
156
  className={cn(
159
- "group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:**:[svg]:text-foreground",
160
- className
157
+ "group/command-item relative flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:**:[svg]:text-foreground",
158
+ className,
161
159
  )}
162
160
  {...props}
163
161
  >
164
162
  {children}
165
163
  <CheckIcon className="ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" />
166
164
  </CommandPrimitive.Item>
167
- )
165
+ );
168
166
  }
169
167
 
170
168
  function CommandShortcut({
@@ -176,11 +174,11 @@ function CommandShortcut({
176
174
  data-slot="command-shortcut"
177
175
  className={cn(
178
176
  "ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",
179
- className
177
+ className,
180
178
  )}
181
179
  {...props}
182
180
  />
183
- )
181
+ );
184
182
  }
185
183
 
186
184
  export {
@@ -193,4 +191,4 @@ export {
193
191
  CommandItem,
194
192
  CommandShortcut,
195
193
  CommandSeparator,
196
- }
194
+ };