@behavioral-agentic-design-system/core 0.12.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behavioral-agentic-design-system/core",
3
- "version": "0.12.1",
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)",
@@ -1378,13 +1378,13 @@ export default function ComponentsPreview() {
1378
1378
  </p>
1379
1379
  </HoverCardHeader>
1380
1380
  <Separator className="my-3" />
1381
- <div className="flex items-center gap-4 text-xs text-muted-foreground">
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" && "border-primary bg-primary text-primary-foreground",
149
- state === "active" && "border-primary bg-background text-primary",
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-state text uses --foreground rather than --accent-foreground.
126
- // The runtime brand-picker (use-global-primary-color → pickAccentForeground)
127
- // already guards --accent-foreground against AAA failures, but
128
- // --foreground vs --accent is structurally safe in every theme
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}