@silicajs/ui 0.1.2 → 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.2",
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",
@@ -41,11 +41,11 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tailwindcss/postcss": "^4.1.18",
44
- "@types/react": "^19.2.10",
44
+ "@types/react": "^19.2.17",
45
45
  "@types/react-dom": "^19.2.3",
46
46
  "react": "^19.2.6",
47
47
  "react-dom": "^19.2.7",
48
- "shadcn": "^4.10.0",
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",
@@ -11,10 +11,6 @@ import {
11
11
  DialogHeader,
12
12
  DialogTitle,
13
13
  } from "@silicajs/ui/components/dialog";
14
- import {
15
- InputGroup,
16
- InputGroupAddon,
17
- } from "@silicajs/ui/components/input-group";
18
14
  import { SearchIcon, CheckIcon } from "lucide-react";
19
15
 
20
16
  function Command({
@@ -25,7 +21,7 @@ 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",
24
+ "flex size-full flex-col overflow-hidden rounded-xl! bg-popover text-popover-foreground",
29
25
  className,
30
26
  )}
31
27
  {...props}
@@ -71,20 +67,19 @@ 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
  }
@@ -97,7 +92,7 @@ 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",
95
+ "no-scrollbar max-h-96 scroll-py-2 overflow-x-hidden overflow-y-auto p-2 outline-none",
101
96
  className,
102
97
  )}
103
98
  {...props}
@@ -112,7 +107,10 @@ 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
  );
@@ -156,7 +154,7 @@ function CommandItem({
156
154
  <CommandPrimitive.Item
157
155
  data-slot="command-item"
158
156
  className={cn(
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",
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",
160
158
  className,
161
159
  )}
162
160
  {...props}