@silicajs/ui 0.1.0 → 0.1.2

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.0",
3
+ "version": "0.1.2",
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,7 +35,7 @@
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",
38
+ "lucide-react": "^1.17.0",
39
39
  "tailwind-merge": "^3.6.0",
40
40
  "tw-animate-css": "^1.4.0"
41
41
  },
@@ -44,8 +44,17 @@
44
44
  "@types/react": "^19.2.10",
45
45
  "@types/react-dom": "^19.2.3",
46
46
  "react": "^19.2.6",
47
- "react-dom": "^19.2.6",
48
- "shadcn": "^4.7.0",
47
+ "react-dom": "^19.2.7",
48
+ "shadcn": "^4.10.0",
49
49
  "tailwindcss": "^4.1.18"
50
+ },
51
+ "homepage": "https://github.com/agdevhq/silica/tree/main/packages/ui#readme",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/agdevhq/silica.git",
55
+ "directory": "packages/ui"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/agdevhq/silica/issues"
50
59
  }
51
60
  }
@@ -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,21 @@
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"
13
+ } from "@silicajs/ui/components/dialog";
14
14
  import {
15
15
  InputGroup,
16
16
  InputGroupAddon,
17
- } from "@silicajs/ui/components/input-group"
18
- import { SearchIcon, CheckIcon } from "lucide-react"
17
+ } from "@silicajs/ui/components/input-group";
18
+ import { SearchIcon, CheckIcon } from "lucide-react";
19
19
 
20
20
  function Command({
21
21
  className,
@@ -26,11 +26,11 @@ function Command({
26
26
  data-slot="command"
27
27
  className={cn(
28
28
  "flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",
29
- className
29
+ className,
30
30
  )}
31
31
  {...props}
32
32
  />
33
- )
33
+ );
34
34
  }
35
35
 
36
36
  function CommandDialog({
@@ -41,11 +41,11 @@ function CommandDialog({
41
41
  showCloseButton = false,
42
42
  ...props
43
43
  }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
44
- title?: string
45
- description?: string
46
- className?: string
47
- showCloseButton?: boolean
48
- children: React.ReactNode
44
+ title?: string;
45
+ description?: string;
46
+ className?: string;
47
+ showCloseButton?: boolean;
48
+ children: React.ReactNode;
49
49
  }) {
50
50
  return (
51
51
  <Dialog {...props}>
@@ -56,14 +56,14 @@ function CommandDialog({
56
56
  <DialogContent
57
57
  className={cn(
58
58
  "top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0",
59
- className
59
+ className,
60
60
  )}
61
61
  showCloseButton={showCloseButton}
62
62
  >
63
63
  {children}
64
64
  </DialogContent>
65
65
  </Dialog>
66
- )
66
+ );
67
67
  }
68
68
 
69
69
  function CommandInput({
@@ -77,7 +77,7 @@ function CommandInput({
77
77
  data-slot="command-input"
78
78
  className={cn(
79
79
  "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
80
- className
80
+ className,
81
81
  )}
82
82
  {...props}
83
83
  />
@@ -86,7 +86,7 @@ function CommandInput({
86
86
  </InputGroupAddon>
87
87
  </InputGroup>
88
88
  </div>
89
- )
89
+ );
90
90
  }
91
91
 
92
92
  function CommandList({
@@ -98,11 +98,11 @@ function CommandList({
98
98
  data-slot="command-list"
99
99
  className={cn(
100
100
  "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
101
- className
101
+ className,
102
102
  )}
103
103
  {...props}
104
104
  />
105
- )
105
+ );
106
106
  }
107
107
 
108
108
  function CommandEmpty({
@@ -115,7 +115,7 @@ function CommandEmpty({
115
115
  className={cn("py-6 text-center text-sm", className)}
116
116
  {...props}
117
117
  />
118
- )
118
+ );
119
119
  }
120
120
 
121
121
  function CommandGroup({
@@ -127,11 +127,11 @@ function CommandGroup({
127
127
  data-slot="command-group"
128
128
  className={cn(
129
129
  "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
130
+ className,
131
131
  )}
132
132
  {...props}
133
133
  />
134
- )
134
+ );
135
135
  }
136
136
 
137
137
  function CommandSeparator({
@@ -144,7 +144,7 @@ function CommandSeparator({
144
144
  className={cn("-mx-1 h-px w-auto bg-border", className)}
145
145
  {...props}
146
146
  />
147
- )
147
+ );
148
148
  }
149
149
 
150
150
  function CommandItem({
@@ -156,15 +156,15 @@ function CommandItem({
156
156
  <CommandPrimitive.Item
157
157
  data-slot="command-item"
158
158
  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
159
+ "group/command-item relative flex 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,
161
161
  )}
162
162
  {...props}
163
163
  >
164
164
  {children}
165
165
  <CheckIcon className="ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" />
166
166
  </CommandPrimitive.Item>
167
- )
167
+ );
168
168
  }
169
169
 
170
170
  function CommandShortcut({
@@ -176,11 +176,11 @@ function CommandShortcut({
176
176
  data-slot="command-shortcut"
177
177
  className={cn(
178
178
  "ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",
179
- className
179
+ className,
180
180
  )}
181
181
  {...props}
182
182
  />
183
- )
183
+ );
184
184
  }
185
185
 
186
186
  export {
@@ -193,4 +193,4 @@ export {
193
193
  CommandItem,
194
194
  CommandShortcut,
195
195
  CommandSeparator,
196
- }
196
+ };