@behavioral-agentic-design-system/core 0.12.0 → 0.12.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 +2 -1
- package/src/api/layers/file.ts +5 -0
- package/src/app/preview/components/page.tsx +5 -5
- package/src/components/customize/brand-mark-section.tsx +1 -1
- package/src/components/ui/stepper.tsx +13 -2
- package/src/components/ui/tabs.tsx +4 -7
- package/src/docs-trace-globs.json +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behavioral-agentic-design-system/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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)",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"./fonts/*": "./src/fonts/*",
|
|
51
51
|
"./tokens.json": "./src/tokens.json",
|
|
52
52
|
"./tokens.default.json": "./src/tokens.default.json",
|
|
53
|
+
"./docs-trace-globs.json": "./src/docs-trace-globs.json",
|
|
53
54
|
"./lib/*": "./src/lib/*.ts",
|
|
54
55
|
"./hooks/*": "./src/hooks/*.ts",
|
|
55
56
|
"./data/*": "./src/data/*.ts",
|
package/src/api/layers/file.ts
CHANGED
|
@@ -11,6 +11,11 @@ const ROOT = process.cwd();
|
|
|
11
11
|
// re-checked against the same allowlist — never write a markdown file outside
|
|
12
12
|
// the same surface the Docs tab can show. Path traversal is blocked at the
|
|
13
13
|
// normalize step before any pattern match runs.
|
|
14
|
+
//
|
|
15
|
+
// KEEP IN SYNC WITH ../../docs-trace-globs.json — that file lists the same
|
|
16
|
+
// paths as next.config `outputFileTracingIncludes` globs so the deploy bundles
|
|
17
|
+
// every file this allowlist can serve. Add a path here → add its glob there,
|
|
18
|
+
// or it 404s on Vercel (the "Couldn't load README.md" bug).
|
|
14
19
|
const ALLOWED_ROOT_MD = new Set([
|
|
15
20
|
"BRIEF.md",
|
|
16
21
|
"README.md",
|
|
@@ -1378,13 +1378,13 @@ export default function ComponentsPreview() {
|
|
|
1378
1378
|
</p>
|
|
1379
1379
|
</HoverCardHeader>
|
|
1380
1380
|
<Separator className="my-3" />
|
|
1381
|
-
<div className="flex
|
|
1382
|
-
<span className="flex items-center gap-1">
|
|
1383
|
-
<CalendarIcon className="size-3.5" strokeWidth={1.5} />
|
|
1381
|
+
<div className="flex flex-col gap-2 text-xs text-muted-foreground">
|
|
1382
|
+
<span className="flex items-center gap-1.5 whitespace-nowrap">
|
|
1383
|
+
<CalendarIcon className="size-3.5 shrink-0" strokeWidth={1.5} />
|
|
1384
1384
|
Joined March 2021
|
|
1385
1385
|
</span>
|
|
1386
|
-
<span className="flex items-center gap-1">
|
|
1387
|
-
<BuildingIcon className="size-3.5" strokeWidth={1.5} />
|
|
1386
|
+
<span className="flex items-center gap-1.5 whitespace-nowrap">
|
|
1387
|
+
<BuildingIcon className="size-3.5 shrink-0" strokeWidth={1.5} />
|
|
1388
1388
|
Lakeview Health
|
|
1389
1389
|
</span>
|
|
1390
1390
|
</div>
|
|
@@ -160,7 +160,7 @@ export function BrandMarkSection() {
|
|
|
160
160
|
}
|
|
161
161
|
}}
|
|
162
162
|
placeholder='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">…</svg>'
|
|
163
|
-
className="min-h-[180px] font-mono text-xs"
|
|
163
|
+
className="min-h-[180px] max-h-[200px] overflow-auto font-mono text-xs"
|
|
164
164
|
/>
|
|
165
165
|
</div>
|
|
166
166
|
|
|
@@ -145,8 +145,8 @@ function StepperIndicator({
|
|
|
145
145
|
"flex shrink-0 items-center justify-center size-11 rounded-full border-2",
|
|
146
146
|
"text-sm font-semibold",
|
|
147
147
|
"transition-colors",
|
|
148
|
-
state === "completed" && "
|
|
149
|
-
state === "active" && "
|
|
148
|
+
state === "completed" && "bg-primary text-primary-foreground",
|
|
149
|
+
state === "active" && "bg-background text-primary",
|
|
150
150
|
state === "pending" && "border-input bg-background text-muted-foreground",
|
|
151
151
|
state === "error" && "border-destructive bg-background text-destructive",
|
|
152
152
|
className
|
|
@@ -154,6 +154,17 @@ function StepperIndicator({
|
|
|
154
154
|
style={{
|
|
155
155
|
transitionDuration: "var(--duration-base)",
|
|
156
156
|
transitionTimingFunction: "var(--ease-out)",
|
|
157
|
+
// Inline styles guarantee var(--primary) resolves to the brand color
|
|
158
|
+
// regardless of Tailwind's @theme inline cascade order. Completed uses
|
|
159
|
+
// a box-shadow ring (background-gap + brand ring) so the ring is
|
|
160
|
+
// visible against the filled primary background.
|
|
161
|
+
...(state === "completed" && {
|
|
162
|
+
borderColor: "var(--background, white)",
|
|
163
|
+
boxShadow: "0 0 0 2px var(--primary)",
|
|
164
|
+
}),
|
|
165
|
+
...(state === "active" && {
|
|
166
|
+
borderColor: "var(--primary)",
|
|
167
|
+
}),
|
|
157
168
|
}}
|
|
158
169
|
{...props}
|
|
159
170
|
>
|
|
@@ -122,13 +122,10 @@ function TabsTrigger({
|
|
|
122
122
|
<TabsPrimitive.Trigger
|
|
123
123
|
data-slot="tabs-trigger"
|
|
124
124
|
className={cn(
|
|
125
|
-
// Active
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
// (~13:1 dark, ~20:1 light) and matches the Calendar range-middle
|
|
130
|
-
// pattern, so nested tabs can never regress on brand swaps.
|
|
131
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-accent data-[state=active]:text-foreground data-[state=active]:shadow-xs",
|
|
125
|
+
// Active state uses --primary / --primary-foreground so the selected tab
|
|
126
|
+
// always reflects the fork's brand color. bg-accent broke forks where
|
|
127
|
+
// --accent is a dark brand color (e.g. plum), rendering the pill illegibly dark.
|
|
128
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-xs",
|
|
132
129
|
className
|
|
133
130
|
)}
|
|
134
131
|
{...props}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[
|
|
2
|
+
"./*.md",
|
|
3
|
+
"./layer-*/**/*.md",
|
|
4
|
+
"./layer-*/**/*.json",
|
|
5
|
+
"./docs/**/*.md",
|
|
6
|
+
"./prompts/**/*.md",
|
|
7
|
+
"./scripts/prompts/**/*.md",
|
|
8
|
+
"./.claude/skills/**/SKILL.md",
|
|
9
|
+
"./ledgers/**/*.md",
|
|
10
|
+
"./aggregator/**/*.md",
|
|
11
|
+
"./automation/**/*.md",
|
|
12
|
+
"./roi/**/*.md",
|
|
13
|
+
"./packages/core/src/tokens.json"
|
|
14
|
+
]
|