vibe-design-system 1.9.5 → 1.9.6
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
|
@@ -42,6 +42,12 @@ const SKIP_LIST = [
|
|
|
42
42
|
"InputOtp",
|
|
43
43
|
"Resizable",
|
|
44
44
|
"Sonner",
|
|
45
|
+
"ImageWithFallback",
|
|
46
|
+
"ConnectionLines",
|
|
47
|
+
"ScrollToTop",
|
|
48
|
+
"Form",
|
|
49
|
+
"Toaster",
|
|
50
|
+
"Toast",
|
|
45
51
|
];
|
|
46
52
|
|
|
47
53
|
/** shadcn/ui composite component recipes: component name → imports + render. */
|
|
@@ -215,35 +221,32 @@ const RECIPES = {
|
|
|
215
221
|
)`,
|
|
216
222
|
},
|
|
217
223
|
Checkbox: {
|
|
218
|
-
extraImports: [{ from: "@/components/ui/label", names: ["Label"] }],
|
|
219
224
|
render: `(args) => (
|
|
220
225
|
<div className="flex items-center space-x-2">
|
|
221
226
|
<ComponentRef id="terms" {...args} />
|
|
222
|
-
<
|
|
227
|
+
<label htmlFor="terms" className="text-sm font-medium">Accept terms</label>
|
|
223
228
|
</div>
|
|
224
229
|
)`,
|
|
225
230
|
},
|
|
226
231
|
Switch: {
|
|
227
|
-
extraImports: [{ from: "@/components/ui/label", names: ["Label"] }],
|
|
228
232
|
render: `(args) => (
|
|
229
233
|
<div className="flex items-center space-x-2">
|
|
230
234
|
<ComponentRef id="switch" {...args} />
|
|
231
|
-
<
|
|
235
|
+
<label htmlFor="switch" className="text-sm font-medium">Enable notifications</label>
|
|
232
236
|
</div>
|
|
233
237
|
)`,
|
|
234
238
|
},
|
|
235
239
|
RadioGroup: {
|
|
236
240
|
imports: ["RadioGroupItem"],
|
|
237
|
-
extraImports: [{ from: "@/components/ui/label", names: ["Label"] }],
|
|
238
241
|
render: `(args) => (
|
|
239
242
|
<ComponentRef className="flex flex-col space-y-2" {...args}>
|
|
240
243
|
<div className="flex items-center space-x-2">
|
|
241
244
|
<RadioGroupItem value="comfortable" id="comfortable" />
|
|
242
|
-
<
|
|
245
|
+
<label htmlFor="comfortable" className="text-sm font-medium">Comfortable</label>
|
|
243
246
|
</div>
|
|
244
247
|
<div className="flex items-center space-x-2">
|
|
245
248
|
<RadioGroupItem value="compact" id="compact" />
|
|
246
|
-
<
|
|
249
|
+
<label htmlFor="compact" className="text-sm font-medium">Compact</label>
|
|
247
250
|
</div>
|
|
248
251
|
</ComponentRef>
|
|
249
252
|
)`,
|
|
@@ -276,12 +279,42 @@ const RECIPES = {
|
|
|
276
279
|
</ComponentRef>
|
|
277
280
|
)`,
|
|
278
281
|
},
|
|
282
|
+
Command: {
|
|
283
|
+
imports: ["CommandInput", "CommandList", "CommandEmpty", "CommandGroup", "CommandItem"],
|
|
284
|
+
render: `(args) => (
|
|
285
|
+
<ComponentRef className="rounded-lg border shadow-md" {...args}>
|
|
286
|
+
<CommandInput placeholder="Type a command..." />
|
|
287
|
+
<CommandList>
|
|
288
|
+
<CommandEmpty>No results found.</CommandEmpty>
|
|
289
|
+
<CommandGroup heading="Suggestions">
|
|
290
|
+
<CommandItem>Calendar</CommandItem>
|
|
291
|
+
<CommandItem>Search</CommandItem>
|
|
292
|
+
<CommandItem>Settings</CommandItem>
|
|
293
|
+
</CommandGroup>
|
|
294
|
+
</CommandList>
|
|
295
|
+
</ComponentRef>
|
|
296
|
+
)`,
|
|
297
|
+
},
|
|
298
|
+
Carousel: {
|
|
299
|
+
imports: ["CarouselContent", "CarouselItem", "CarouselPrevious", "CarouselNext"],
|
|
300
|
+
render: `(args) => (
|
|
301
|
+
<ComponentRef className="w-full max-w-xs" {...args}>
|
|
302
|
+
<CarouselContent>
|
|
303
|
+
<CarouselItem><div className="p-4 text-center border rounded">Slide 1</div></CarouselItem>
|
|
304
|
+
<CarouselItem><div className="p-4 text-center border rounded">Slide 2</div></CarouselItem>
|
|
305
|
+
<CarouselItem><div className="p-4 text-center border rounded">Slide 3</div></CarouselItem>
|
|
306
|
+
</CarouselContent>
|
|
307
|
+
<CarouselPrevious />
|
|
308
|
+
<CarouselNext />
|
|
309
|
+
</ComponentRef>
|
|
310
|
+
)`,
|
|
311
|
+
},
|
|
279
312
|
Collapsible: {
|
|
280
313
|
imports: ["CollapsibleTrigger", "CollapsibleContent"],
|
|
281
314
|
render: `(args) => (
|
|
282
315
|
<ComponentRef {...args}>
|
|
283
|
-
<CollapsibleTrigger asChild><button>Toggle</button></CollapsibleTrigger>
|
|
284
|
-
<CollapsibleContent>
|
|
316
|
+
<CollapsibleTrigger asChild><button className="text-sm font-medium">Toggle content</button></CollapsibleTrigger>
|
|
317
|
+
<CollapsibleContent className="mt-2 p-2 border rounded">Hidden content revealed.</CollapsibleContent>
|
|
285
318
|
</ComponentRef>
|
|
286
319
|
)`,
|
|
287
320
|
},
|