@behavioral-agentic-design-system/core 0.10.0 → 0.11.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.
- package/package.json +1 -1
- package/src/app/shell.tsx +20 -1
- package/src/components/home-tab.tsx +26 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behavioral-agentic-design-system/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "BADS core — tokens, shadcn/ui components, and the BADS template shell (app routes, customize tab, theme hooks). Forks consume this and re-export, keeping client repos to ~30 lines of glue.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Matthew Stephens <work@matthewstephens.com> (https://github.com/matthewlarn)",
|
package/src/app/shell.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { useState, useEffect, useRef, useCallback, createContext, useContext, us
|
|
|
4
4
|
import { Tabs, TabsContent, TabsList, TabsPanels, TabsTrigger } from "@behavioral-agentic-design-system/core/components/ui/tabs";
|
|
5
5
|
import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
|
|
6
6
|
import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
|
|
7
|
-
import { Sun, Moon, BookOpen, X } from "lucide-react";
|
|
7
|
+
import { Sun, Moon, BookOpen, X, ExternalLink } from "lucide-react";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Inline GitHub mark. Lucide dropped brand icons (Github / Twitter / etc.) in
|
|
@@ -417,6 +417,25 @@ export function Shell({ tabs, defaultTab }: ShellProps) {
|
|
|
417
417
|
<Badge variant="outline" className="ml-2 text-xs hidden sm:inline-flex">{brand.tagline}</Badge>
|
|
418
418
|
</div>
|
|
419
419
|
<div className="ml-auto flex items-center gap-1.5 sm:gap-2 shrink-0">
|
|
420
|
+
{/* Fork-configurable header links — set `headerLinks` in brand.config
|
|
421
|
+
to add buttons (e.g. a link to a fork's prototypes site) without
|
|
422
|
+
shadowing this shell. Read defensively so forks that don't set it
|
|
423
|
+
are unaffected. */}
|
|
424
|
+
{((brand as { headerLinks?: { label: string; href: string }[] }).headerLinks ?? []).map((link) => (
|
|
425
|
+
<Button
|
|
426
|
+
key={link.href}
|
|
427
|
+
asChild
|
|
428
|
+
variant="ghost"
|
|
429
|
+
size="sm"
|
|
430
|
+
className="group h-8 gap-1.5 border border-foreground/30 hover:!bg-foreground hover:!text-background hover:border-foreground"
|
|
431
|
+
title={`Open ${link.label}`}
|
|
432
|
+
>
|
|
433
|
+
<a href={link.href} target="_blank" rel="noreferrer" aria-label={`Open ${link.label} in a new tab`}>
|
|
434
|
+
<ExternalLink className="h-4 w-4 transition-all group-hover:scale-110" strokeWidth={1.5} />
|
|
435
|
+
<span className="text-xs font-medium hidden sm:inline">{link.label}</span>
|
|
436
|
+
</a>
|
|
437
|
+
</Button>
|
|
438
|
+
))}
|
|
420
439
|
{storybookUrl && (
|
|
421
440
|
<Button
|
|
422
441
|
asChild
|
|
@@ -328,32 +328,6 @@ export function HomeTab({ onBrowseDocs, onBrowseComponents }: HomeTabProps) {
|
|
|
328
328
|
|
|
329
329
|
<Separator />
|
|
330
330
|
|
|
331
|
-
{/* COPY-PASTE PROMPTS FOR CLAUDE CODE */}
|
|
332
|
-
<section className="flex flex-col gap-5">
|
|
333
|
-
<div>
|
|
334
|
-
<h2 className="text-2xl font-semibold tracking-tight">
|
|
335
|
-
Copy a prompt to get started
|
|
336
|
-
</h2>
|
|
337
|
-
<p className="mt-1 max-w-2xl text-sm text-muted-foreground">
|
|
338
|
-
Paste any of these into Claude Code exactly as written. Each one
|
|
339
|
-
interviews you for the specifics, so nothing needs filling in first.
|
|
340
|
-
</p>
|
|
341
|
-
</div>
|
|
342
|
-
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4">
|
|
343
|
-
{CLAUDE_PROMPTS.map((p) => (
|
|
344
|
-
<PromptCard
|
|
345
|
-
key={p.id}
|
|
346
|
-
icon={p.icon}
|
|
347
|
-
title={p.title}
|
|
348
|
-
blurb={p.blurb}
|
|
349
|
-
prompt={p.prompt}
|
|
350
|
-
/>
|
|
351
|
-
))}
|
|
352
|
-
</div>
|
|
353
|
-
</section>
|
|
354
|
-
|
|
355
|
-
<Separator />
|
|
356
|
-
|
|
357
331
|
<section className="flex flex-col gap-5">
|
|
358
332
|
<div className="flex items-end justify-between gap-4">
|
|
359
333
|
<div>
|
|
@@ -417,6 +391,32 @@ export function HomeTab({ onBrowseDocs, onBrowseComponents }: HomeTabProps) {
|
|
|
417
391
|
|
|
418
392
|
<Separator />
|
|
419
393
|
|
|
394
|
+
{/* COPY-PASTE PROMPTS FOR CLAUDE CODE */}
|
|
395
|
+
<section className="flex flex-col gap-5">
|
|
396
|
+
<div>
|
|
397
|
+
<h2 className="text-2xl font-semibold tracking-tight">
|
|
398
|
+
Already have BADS installed? Copy a prompt to get started
|
|
399
|
+
</h2>
|
|
400
|
+
<p className="mt-1 max-w-2xl text-sm text-muted-foreground">
|
|
401
|
+
Paste any of these into Claude Code exactly as written. Each one
|
|
402
|
+
interviews you for the specifics, so nothing needs filling in first.
|
|
403
|
+
</p>
|
|
404
|
+
</div>
|
|
405
|
+
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4">
|
|
406
|
+
{CLAUDE_PROMPTS.map((p) => (
|
|
407
|
+
<PromptCard
|
|
408
|
+
key={p.id}
|
|
409
|
+
icon={p.icon}
|
|
410
|
+
title={p.title}
|
|
411
|
+
blurb={p.blurb}
|
|
412
|
+
prompt={p.prompt}
|
|
413
|
+
/>
|
|
414
|
+
))}
|
|
415
|
+
</div>
|
|
416
|
+
</section>
|
|
417
|
+
|
|
418
|
+
<Separator />
|
|
419
|
+
|
|
420
420
|
<section className="flex flex-col gap-4">
|
|
421
421
|
<h2 className="text-sm font-semibold uppercase tracking-wide text-muted-foreground">
|
|
422
422
|
The Docs tab indexes {DOCS_INDEX.length} categories
|