@behavioral-agentic-design-system/core 0.18.0 → 0.21.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.
@@ -519,10 +519,10 @@ export default function ComponentsPreview() {
519
519
  <div className="flex flex-wrap gap-6 items-start">
520
520
  <div className="space-y-1.5">
521
521
  <p className="text-xs font-medium text-muted-foreground">Horizontal (default)</p>
522
- <ButtonGroup aria-label="Lane view controls">
523
- <Button variant="outline">All lanes</Button>
524
- <Button variant="outline">My lanes</Button>
525
- <Button variant="outline">Open only</Button>
522
+ <ButtonGroup aria-label="View controls">
523
+ <Button variant="outline">All</Button>
524
+ <Button variant="outline">Mine</Button>
525
+ <Button variant="outline">Recent</Button>
526
526
  </ButtonGroup>
527
527
  </div>
528
528
  <div className="space-y-1.5">
@@ -541,10 +541,10 @@ export default function ComponentsPreview() {
541
541
  </div>
542
542
  <div className="space-y-1.5">
543
543
  <p className="text-xs font-medium text-muted-foreground">Vertical</p>
544
- <ButtonGroup orientation="vertical" aria-label="Stroke options">
545
- <Button variant="outline">Freestyle</Button>
546
- <Button variant="outline">Backstroke</Button>
547
- <Button variant="outline">Breaststroke</Button>
544
+ <ButtonGroup orientation="vertical" aria-label="Density options">
545
+ <Button variant="outline">Comfortable</Button>
546
+ <Button variant="outline">Cozy</Button>
547
+ <Button variant="outline">Compact</Button>
548
548
  </ButtonGroup>
549
549
  </div>
550
550
  <div className="space-y-1.5">
@@ -1903,58 +1903,6 @@ export default function ComponentsPreview() {
1903
1903
  </div>
1904
1904
  </div>
1905
1905
  </Section>
1906
- <Section title="Code">
1907
- <div className="space-y-6">
1908
- <div className="space-y-2">
1909
- <p className="text-sm font-medium text-muted-foreground">Inline (default)</p>
1910
- <p className="text-sm text-foreground leading-relaxed max-w-sm">
1911
- Set the primary brand color via{" "}
1912
- <Code>--primary</Code> in{" "}
1913
- <Code>tokens.json</Code> and run{" "}
1914
- <Code>pnpm build:tokens</Code> to regenerate.
1915
- </p>
1916
- </div>
1917
- <div className="space-y-2">
1918
- <p className="text-sm font-medium text-muted-foreground">Block variant</p>
1919
- <div className="w-[480px]">
1920
- <Code variant="block">
1921
- {`// tokens.json — semantic layer\n{\n "theme": {\n "light": {\n "primary": "#1a1a1a",\n "primary-foreground": "#ffffff"\n }\n }\n}`}
1922
- </Code>
1923
- </div>
1924
- </div>
1925
- <div className="space-y-2">
1926
- <p className="text-sm font-medium text-muted-foreground">Sizes — sm / default / lg</p>
1927
- <div className="flex flex-col gap-3">
1928
- <div className="flex items-center gap-3">
1929
- <Code size="sm">pnpm a11y</Code>
1930
- <Code size="default">pnpm wcag:audit</Code>
1931
- <Code size="lg">design-tokens</Code>
1932
- </div>
1933
- <div className="w-[440px] space-y-1.5">
1934
- <Code variant="block" size="sm">{`78 pass · 0 fail · 0 warn`}</Code>
1935
- <Code variant="block" size="default">{`✓ primary on background 12.6:1 AAA`}</Code>
1936
- <Code variant="block" size="lg">{`@behavioral-agentic-design-system/core@0.16.0`}</Code>
1937
- </div>
1938
- </div>
1939
- </div>
1940
- <div className="space-y-2">
1941
- <p className="text-sm font-medium text-muted-foreground">Realistic use</p>
1942
- <div className="max-w-md space-y-4 text-sm text-foreground leading-relaxed">
1943
- <div className="space-y-1">
1944
- <p className="font-medium text-foreground">Install the package</p>
1945
- <Code variant="block">{`pnpm add @behavioral-agentic-design-system/core`}</Code>
1946
- </div>
1947
- <p>
1948
- Import tokens via <Code>import "@behavioral-agentic-design-system/core/styles.css"</Code>{" "}
1949
- in your root layout, then use any component:
1950
- </p>
1951
- <Code variant="block">
1952
- {`import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"\n\nexport function Example() {\n return <Button variant="default">Get started</Button>\n}`}
1953
- </Code>
1954
- </div>
1955
- </div>
1956
- </div>
1957
- </Section>
1958
1906
  <Section title="Combobox">
1959
1907
  <div className="space-y-6">
1960
1908
  <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
@@ -2226,7 +2174,7 @@ export default function ComponentsPreview() {
2226
2174
  <RatingGroup value={2} disabled label="Rating" />
2227
2175
  </div>
2228
2176
  <div className="space-y-3">
2229
- <p className="text-sm font-medium text-muted-foreground">Realistic use — session feedback</p>
2177
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — component feedback</p>
2230
2178
  <RatingGroupFeedbackDemo />
2231
2179
  </div>
2232
2180
  </div>
@@ -2241,32 +2189,32 @@ export default function ComponentsPreview() {
2241
2189
  <div className="space-y-3">
2242
2190
  <p className="text-sm font-medium text-muted-foreground">With initial tags</p>
2243
2191
  <TagsInputShowcase
2244
- initialTags={["butterfly", "freestyle", "backstroke"]}
2245
- placeholder="Add stroke…"
2192
+ initialTags={["button", "input", "select"]}
2193
+ placeholder="Add component…"
2246
2194
  />
2247
2195
  </div>
2248
2196
  <div className="space-y-3">
2249
- <p className="text-sm font-medium text-muted-foreground">With suggestions (autocomplete) — type &quot;fly&quot; or &quot;back&quot;</p>
2197
+ <p className="text-sm font-medium text-muted-foreground">With suggestions (autocomplete) — type &quot;but&quot; or &quot;car&quot;</p>
2250
2198
  <TagsInputShowcase
2251
- placeholder="Add a stroke or event…"
2199
+ placeholder="Add a component or token…"
2252
2200
  suggestions={[
2253
- "Butterfly",
2254
- "Backstroke",
2255
- "Breaststroke",
2256
- "Freestyle",
2257
- "Individual Medley",
2258
- "50m Freestyle",
2259
- "100m Butterfly",
2260
- "200m Backstroke",
2261
- "400m IM",
2262
- "Medley Relay",
2201
+ "Button",
2202
+ "Badge",
2203
+ "Breadcrumb",
2204
+ "Card",
2205
+ "Carousel",
2206
+ "Checkbox",
2207
+ "Combobox",
2208
+ "Dialog",
2209
+ "Dropdown Menu",
2210
+ "Tooltip",
2263
2211
  ]}
2264
2212
  />
2265
2213
  </div>
2266
2214
  <div className="space-y-3">
2267
2215
  <p className="text-sm font-medium text-muted-foreground">Max tags (4)</p>
2268
2216
  <TagsInputShowcase
2269
- initialTags={["warm-up", "main set"]}
2217
+ initialTags={["design", "build"]}
2270
2218
  maxTags={4}
2271
2219
  placeholder="Add phase (max 4)…"
2272
2220
  />
@@ -2274,13 +2222,13 @@ export default function ComponentsPreview() {
2274
2222
  <div className="space-y-3">
2275
2223
  <p className="text-sm font-medium text-muted-foreground">Disabled</p>
2276
2224
  <TagsInputShowcase
2277
- initialTags={["100m freestyle", "200m backstroke"]}
2225
+ initialTags={["button", "input"]}
2278
2226
  disabled
2279
2227
  placeholder="Disabled"
2280
2228
  />
2281
2229
  </div>
2282
2230
  <div className="space-y-3">
2283
- <p className="text-sm font-medium text-muted-foreground">Realistic use — Breezy Hills Aquatic Club session filters</p>
2231
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — component library filters</p>
2284
2232
  <TagsInputFilterDemo />
2285
2233
  </div>
2286
2234
  </div>
@@ -2303,31 +2251,31 @@ export default function ComponentsPreview() {
2303
2251
  <TimelineItem
2304
2252
  status="complete"
2305
2253
  icon={<CheckIcon className="size-3" strokeWidth={1.5} aria-hidden />}
2306
- title="Registration confirmed"
2254
+ title="Design approved"
2307
2255
  time="Jun 20"
2308
2256
  />
2309
2257
  <TimelineItem
2310
2258
  status="complete"
2311
2259
  icon={<CreditCardIcon className="size-3" strokeWidth={1.5} aria-hidden />}
2312
- title="Payment received"
2260
+ title="Budget approved"
2313
2261
  time="Jun 21"
2314
2262
  />
2315
2263
  <TimelineItem
2316
2264
  status="active"
2317
- title="Heat assignment"
2318
- description="Times submitted to meet director"
2265
+ title="Component build"
2266
+ description="In review with Maya Chen"
2319
2267
  time="Jun 25 (today)"
2320
2268
  />
2321
2269
  <TimelineItem
2322
2270
  status="pending"
2323
- title="Meet day"
2324
- description="Breezy Hills Aquatic Center"
2271
+ title="Release day"
2272
+ description="v2.4.0 to production"
2325
2273
  time="Jun 28"
2326
2274
  />
2327
2275
  </Timeline>
2328
2276
  </div>
2329
2277
  <div className="space-y-3">
2330
- <p className="text-sm font-medium text-muted-foreground">Realistic use — athlete registration journey</p>
2278
+ <p className="text-sm font-medium text-muted-foreground">Realistic use — component adoption journey</p>
2331
2279
  <TimelineRealisticDemo />
2332
2280
  </div>
2333
2281
  </div>
@@ -2415,21 +2363,21 @@ export default function ComponentsPreview() {
2415
2363
 
2416
2364
  <Section title="Table">
2417
2365
  <Table>
2418
- <TableCaption>Breezy Hills Aquatic Club — 100m Freestyle finals</TableCaption>
2366
+ <TableCaption>Design System Team — Q2 contributions</TableCaption>
2419
2367
  <TableHeader>
2420
2368
  <TableRow>
2421
2369
  <TableHead className="w-12">Place</TableHead>
2422
- <TableHead>Swimmer</TableHead>
2423
- <TableHead>Squad</TableHead>
2424
- <TableHead className="text-right">Time</TableHead>
2370
+ <TableHead>Contributor</TableHead>
2371
+ <TableHead>Team</TableHead>
2372
+ <TableHead className="text-right">PRs</TableHead>
2425
2373
  </TableRow>
2426
2374
  </TableHeader>
2427
2375
  <TableBody>
2428
2376
  {[
2429
- { place: 1, name: "Avery Castillo", squad: "Senior A", time: "52.18" },
2430
- { place: 2, name: "Noah Kim", squad: "Senior A", time: "52.94" },
2431
- { place: 3, name: "Priya Raman", squad: "Senior B", time: "53.40" },
2432
- { place: 4, name: "Liam O'Connor", squad: "Senior B", time: "54.07" },
2377
+ { place: 1, name: "Avery Castillo", squad: "Core", time: "48" },
2378
+ { place: 2, name: "Noah Kim", squad: "Core", time: "41" },
2379
+ { place: 3, name: "Priya Raman", squad: "Web", time: "37" },
2380
+ { place: 4, name: "Liam O'Connor", squad: "Web", time: "29" },
2433
2381
  ].map((r) => (
2434
2382
  <TableRow key={r.place}>
2435
2383
  <TableCell className="font-medium tabular-nums">{r.place}</TableCell>
@@ -2441,8 +2389,8 @@ export default function ComponentsPreview() {
2441
2389
  </TableBody>
2442
2390
  <TableFooter>
2443
2391
  <TableRow>
2444
- <TableCell colSpan={3}>Heat average</TableCell>
2445
- <TableCell className="text-right font-mono tabular-nums">53.15</TableCell>
2392
+ <TableCell colSpan={3}>Team total</TableCell>
2393
+ <TableCell className="text-right font-mono tabular-nums">155</TableCell>
2446
2394
  </TableRow>
2447
2395
  </TableFooter>
2448
2396
  </Table>
@@ -2457,102 +2405,56 @@ export default function ComponentsPreview() {
2457
2405
  <Section title="Select">
2458
2406
  <div className="grid gap-6 sm:grid-cols-2">
2459
2407
  <div className="space-y-2">
2460
- <Label htmlFor="select-squad">Squad</Label>
2408
+ <Label htmlFor="select-squad">Team</Label>
2461
2409
  <Select defaultValue="senior-a">
2462
2410
  <SelectTrigger id="select-squad" className="w-full">
2463
- <SelectValue placeholder="Choose a squad" />
2411
+ <SelectValue placeholder="Choose a team" />
2464
2412
  </SelectTrigger>
2465
2413
  <SelectContent>
2466
2414
  <SelectGroup>
2467
- <SelectLabel>Senior</SelectLabel>
2468
- <SelectItem value="senior-a">Senior A</SelectItem>
2469
- <SelectItem value="senior-b">Senior B</SelectItem>
2415
+ <SelectLabel>Product</SelectLabel>
2416
+ <SelectItem value="senior-a">Core</SelectItem>
2417
+ <SelectItem value="senior-b">Web</SelectItem>
2470
2418
  </SelectGroup>
2471
2419
  <SelectGroup>
2472
- <SelectLabel>Age group</SelectLabel>
2473
- <SelectItem value="junior-a">Junior A</SelectItem>
2474
- <SelectItem value="junior-b">Junior B</SelectItem>
2475
- <SelectItem value="dev" disabled>Development (full)</SelectItem>
2420
+ <SelectLabel>Platform</SelectLabel>
2421
+ <SelectItem value="junior-a">Mobile</SelectItem>
2422
+ <SelectItem value="junior-b">Docs</SelectItem>
2423
+ <SelectItem value="dev" disabled>Tokens (full)</SelectItem>
2476
2424
  </SelectGroup>
2477
2425
  </SelectContent>
2478
2426
  </Select>
2479
2427
  </div>
2480
2428
  <div className="space-y-2">
2481
- <Label htmlFor="select-stroke">Stroke (disabled)</Label>
2429
+ <Label htmlFor="select-stroke">Framework (disabled)</Label>
2482
2430
  <Select disabled>
2483
2431
  <SelectTrigger id="select-stroke" className="w-full">
2484
- <SelectValue placeholder="Locked for this event" />
2432
+ <SelectValue placeholder="Locked for this project" />
2485
2433
  </SelectTrigger>
2486
2434
  <SelectContent>
2487
- <SelectItem value="free">Freestyle</SelectItem>
2435
+ <SelectItem value="free">React</SelectItem>
2488
2436
  </SelectContent>
2489
2437
  </Select>
2490
2438
  </div>
2491
2439
  </div>
2492
2440
  </Section>
2493
2441
 
2494
- <Section title="Native Select">
2495
- <div className="grid gap-6 sm:grid-cols-2">
2496
- <div className="space-y-2">
2497
- <Label htmlFor="ns-focus">Design Focus Area</Label>
2498
- <NativeSelect id="ns-focus" defaultValue="components">
2499
- <option value="">Choose a focus area</option>
2500
- <option value="tokens">Design Tokens</option>
2501
- <option value="components">Components</option>
2502
- <option value="patterns">Patterns</option>
2503
- <option value="a11y">Accessibility</option>
2504
- <option value="motion">Motion &amp; Animation</option>
2505
- </NativeSelect>
2506
- </div>
2507
- <div className="space-y-2">
2508
- <Label htmlFor="ns-disabled">Disabled</Label>
2509
- <NativeSelect id="ns-disabled" disabled defaultValue="components">
2510
- <option value="components">Components (locked)</option>
2511
- </NativeSelect>
2512
- </div>
2513
- <div className="space-y-2">
2514
- <Label htmlFor="ns-invalid">Invalid</Label>
2515
- <NativeSelect id="ns-invalid" aria-invalid defaultValue="">
2516
- <option value="">Select a valid option</option>
2517
- <option value="tokens">Design Tokens</option>
2518
- </NativeSelect>
2519
- </div>
2520
- <div className="space-y-2">
2521
- <p className="text-sm font-medium text-foreground">Sizes</p>
2522
- <div className="flex flex-col gap-2">
2523
- <NativeSelect size="sm" defaultValue="sm">
2524
- <option value="sm">Small (sm)</option>
2525
- </NativeSelect>
2526
- <NativeSelect size="default" defaultValue="default">
2527
- <option value="default">Default</option>
2528
- </NativeSelect>
2529
- <NativeSelect size="lg" defaultValue="lg">
2530
- <option value="lg">Large (lg)</option>
2531
- </NativeSelect>
2532
- <NativeSelect size="xl" defaultValue="xl">
2533
- <option value="xl">Extra Large (xl)</option>
2534
- </NativeSelect>
2535
- </div>
2536
- </div>
2537
- </div>
2538
- </Section>
2539
-
2540
2442
  <Section title="Textarea">
2541
2443
  <div className="grid gap-6 sm:grid-cols-2">
2542
2444
  <div className="space-y-2">
2543
- <Label htmlFor="ta-notes">Coach notes</Label>
2544
- <Textarea id="ta-notes" placeholder="Add notes for this swimmer…" />
2445
+ <Label htmlFor="ta-notes">Review notes</Label>
2446
+ <Textarea id="ta-notes" placeholder="Add notes for this review…" />
2545
2447
  </div>
2546
2448
  <div className="space-y-2">
2547
2449
  <Label htmlFor="ta-filled">With value</Label>
2548
2450
  <Textarea
2549
2451
  id="ta-filled"
2550
- defaultValue={"Strong back half. Work on streamline off the wall and breakout timing."}
2452
+ defaultValue={"Solid API surface. Tighten the focus ring token and add a loading state before merge."}
2551
2453
  />
2552
2454
  </div>
2553
2455
  <div className="space-y-2">
2554
2456
  <Label htmlFor="ta-disabled">Disabled</Label>
2555
- <Textarea id="ta-disabled" disabled placeholder="Locked during the meet" />
2457
+ <Textarea id="ta-disabled" disabled placeholder="Locked during the release" />
2556
2458
  </div>
2557
2459
  <div className="space-y-2">
2558
2460
  <Label htmlFor="ta-invalid">Invalid</Label>
@@ -2595,20 +2497,20 @@ export default function ComponentsPreview() {
2595
2497
  <div className="flex flex-wrap gap-3">
2596
2498
  <Popover>
2597
2499
  <PopoverTrigger asChild>
2598
- <Button variant="outline">Lane settings</Button>
2500
+ <Button variant="outline">Grid settings</Button>
2599
2501
  </PopoverTrigger>
2600
2502
  <PopoverContent className="w-72">
2601
2503
  <div className="space-y-3">
2602
2504
  <div className="space-y-1">
2603
- <p className="text-sm font-semibold">Lane settings</p>
2604
- <p className="text-xs text-muted-foreground">Applies to this heat only.</p>
2505
+ <p className="text-sm font-semibold">Grid settings</p>
2506
+ <p className="text-xs text-muted-foreground">Applies to this view only.</p>
2605
2507
  </div>
2606
2508
  <div className="flex items-center justify-between">
2607
- <Label htmlFor="pop-pace">Pace clock</Label>
2509
+ <Label htmlFor="pop-pace">Snap to grid</Label>
2608
2510
  <Switch id="pop-pace" defaultChecked />
2609
2511
  </div>
2610
2512
  <div className="space-y-1.5">
2611
- <Label htmlFor="pop-lanes">Lanes</Label>
2513
+ <Label htmlFor="pop-lanes">Columns</Label>
2612
2514
  <Input id="pop-lanes" defaultValue="8" />
2613
2515
  </div>
2614
2516
  </div>
@@ -2622,15 +2524,15 @@ export default function ComponentsPreview() {
2622
2524
  <div className="flex flex-wrap items-center gap-3">
2623
2525
  <Tooltip>
2624
2526
  <TooltipTrigger asChild>
2625
- <Button variant="outline">Seed time</Button>
2527
+ <Button variant="outline">Version</Button>
2626
2528
  </TooltipTrigger>
2627
- <TooltipContent>52.18 — submitted Jun 20</TooltipContent>
2529
+ <TooltipContent>v2.4.0 — released Jun 20</TooltipContent>
2628
2530
  </Tooltip>
2629
2531
  <Tooltip>
2630
2532
  <TooltipTrigger asChild>
2631
2533
  <Button variant="outline">Status</Button>
2632
2534
  </TooltipTrigger>
2633
- <TooltipContent side="right">Unofficial until ratified</TooltipContent>
2535
+ <TooltipContent side="right">Draft until approved</TooltipContent>
2634
2536
  </Tooltip>
2635
2537
  </div>
2636
2538
  </TooltipProvider>
@@ -2647,23 +2549,23 @@ export default function ComponentsPreview() {
2647
2549
  </Button>
2648
2550
  </DropdownMenuTrigger>
2649
2551
  <DropdownMenuContent align="start" className="w-56">
2650
- <DropdownMenuLabel>Heat 4 · Lane 4</DropdownMenuLabel>
2552
+ <DropdownMenuLabel>Button · v2.4.0</DropdownMenuLabel>
2651
2553
  <DropdownMenuSeparator />
2652
2554
  <DropdownMenuItem>
2653
- Edit seed time <DropdownMenuShortcut>⌘E</DropdownMenuShortcut>
2555
+ Edit version <DropdownMenuShortcut>⌘E</DropdownMenuShortcut>
2654
2556
  </DropdownMenuItem>
2655
- <DropdownMenuItem>Move to heat…</DropdownMenuItem>
2557
+ <DropdownMenuItem>Move to project…</DropdownMenuItem>
2656
2558
  <DropdownMenuSeparator />
2657
2559
  <DropdownMenuLabel>Display</DropdownMenuLabel>
2658
- <DropdownMenuCheckboxItem checked>Show splits</DropdownMenuCheckboxItem>
2659
- <DropdownMenuCheckboxItem>Show reaction time</DropdownMenuCheckboxItem>
2560
+ <DropdownMenuCheckboxItem checked>Show variants</DropdownMenuCheckboxItem>
2561
+ <DropdownMenuCheckboxItem>Show deprecated</DropdownMenuCheckboxItem>
2660
2562
  <DropdownMenuSeparator />
2661
2563
  <DropdownMenuRadioGroup value="time">
2662
- <DropdownMenuRadioItem value="time">Sort by time</DropdownMenuRadioItem>
2564
+ <DropdownMenuRadioItem value="time">Sort by updated</DropdownMenuRadioItem>
2663
2565
  <DropdownMenuRadioItem value="name">Sort by name</DropdownMenuRadioItem>
2664
2566
  </DropdownMenuRadioGroup>
2665
2567
  <DropdownMenuSeparator />
2666
- <DropdownMenuItem variant="destructive">Scratch swimmer</DropdownMenuItem>
2568
+ <DropdownMenuItem variant="destructive">Remove component</DropdownMenuItem>
2667
2569
  </DropdownMenuContent>
2668
2570
  </DropdownMenu>
2669
2571
  </div>
@@ -2679,18 +2581,18 @@ export default function ComponentsPreview() {
2679
2581
  <CommandInput placeholder="Type a command or search…" />
2680
2582
  <CommandList>
2681
2583
  <CommandEmpty>No results found.</CommandEmpty>
2682
- <CommandGroup heading="Sessions">
2584
+ <CommandGroup heading="Quick actions">
2683
2585
  <CommandItem>
2684
- Practice today <CommandShortcut>⌘1</CommandShortcut>
2586
+ Open changelog <CommandShortcut>⌘1</CommandShortcut>
2685
2587
  </CommandItem>
2686
- <CommandItem>Upcoming meets</CommandItem>
2687
- <CommandItem>Attendance</CommandItem>
2588
+ <CommandItem>View releases</CommandItem>
2589
+ <CommandItem>Adoption report</CommandItem>
2688
2590
  </CommandGroup>
2689
2591
  <CommandSeparator />
2690
- <CommandGroup heading="Swimmers">
2691
- <CommandItem>Avery Castillo</CommandItem>
2692
- <CommandItem>Noah Kim</CommandItem>
2693
- <CommandItem>Priya Raman</CommandItem>
2592
+ <CommandGroup heading="Components">
2593
+ <CommandItem>Button</CommandItem>
2594
+ <CommandItem>Data Table</CommandItem>
2595
+ <CommandItem>Combobox</CommandItem>
2694
2596
  </CommandGroup>
2695
2597
  </CommandList>
2696
2598
  </Command>
@@ -2705,19 +2607,19 @@ export default function ComponentsPreview() {
2705
2607
  </SheetTrigger>
2706
2608
  <SheetContent side={side}>
2707
2609
  <SheetHeader>
2708
- <SheetTitle>Heat details</SheetTitle>
2610
+ <SheetTitle>Component details</SheetTitle>
2709
2611
  <SheetDescription>
2710
- Edit lane assignments and seed times for Heat 4.
2612
+ Edit variants and default props for Button.
2711
2613
  </SheetDescription>
2712
2614
  </SheetHeader>
2713
2615
  <div className="flex flex-col gap-4 px-4">
2714
2616
  <div className="space-y-1.5">
2715
- <Label htmlFor={`sheet-seed-${side}`}>Seed time</Label>
2716
- <Input id={`sheet-seed-${side}`} defaultValue="52.18" />
2617
+ <Label htmlFor={`sheet-seed-${side}`}>Version</Label>
2618
+ <Input id={`sheet-seed-${side}`} defaultValue="2.4.0" />
2717
2619
  </div>
2718
2620
  <div className="space-y-1.5">
2719
- <Label htmlFor={`sheet-lane-${side}`}>Lane</Label>
2720
- <Input id={`sheet-lane-${side}`} defaultValue="4" />
2621
+ <Label htmlFor={`sheet-variant-${side}`}>Variant</Label>
2622
+ <Input id={`sheet-variant-${side}`} defaultValue="default" />
2721
2623
  </div>
2722
2624
  </div>
2723
2625
  <SheetFooter className="flex-row justify-end gap-2">
@@ -2819,19 +2721,19 @@ export default function ComponentsPreview() {
2819
2721
  <div className="space-y-1.5">
2820
2722
  <p className="text-xs font-medium text-muted-foreground">Default (unordered)</p>
2821
2723
  <List className="w-64">
2822
- <ListItem>Practice every Monday at 6 AM</ListItem>
2823
- <ListItem>Check the coach board for lane assignments</ListItem>
2824
- <ListItem>Bring your own cap and goggles</ListItem>
2825
- <ListItem>Sign in at the front desk before entering the pool</ListItem>
2724
+ <ListItem>Run pnpm build:tokens before every commit</ListItem>
2725
+ <ListItem>Check the changelog for breaking changes</ListItem>
2726
+ <ListItem>Import components from the core package</ListItem>
2727
+ <ListItem>Open a PR before merging to main</ListItem>
2826
2728
  </List>
2827
2729
  </div>
2828
2730
  <div className="space-y-1.5">
2829
2731
  <p className="text-xs font-medium text-muted-foreground">With icons</p>
2830
2732
  <List className="w-64">
2831
- <ListItem icon={<CheckIcon />}>Pool access included</ListItem>
2832
- <ListItem icon={<CheckIcon />}>Video stroke analysis</ListItem>
2833
- <ListItem icon={<CheckIcon />}>Monthly progress report</ListItem>
2834
- <ListItem icon={<XIcon className="text-destructive" />}>Open swim excluded</ListItem>
2733
+ <ListItem icon={<CheckIcon />}>Design tokens included</ListItem>
2734
+ <ListItem icon={<CheckIcon />}>Storybook coverage</ListItem>
2735
+ <ListItem icon={<CheckIcon />}>Monthly release notes</ListItem>
2736
+ <ListItem icon={<XIcon className="text-destructive" />}>Legacy variants excluded</ListItem>
2835
2737
  </List>
2836
2738
  </div>
2837
2739
  <div className="space-y-1.5">
@@ -2839,8 +2741,8 @@ export default function ComponentsPreview() {
2839
2741
  <div className="space-y-4">
2840
2742
  <List spacing="sm" className="w-48">
2841
2743
  <ListItem icon={<ZapIcon />}>sm — gap-1</ListItem>
2842
- <ListItem icon={<ZapIcon />}>Fast warm-up</ListItem>
2843
- <ListItem icon={<ZapIcon />}>Main set</ListItem>
2744
+ <ListItem icon={<ZapIcon />}>Quick setup</ListItem>
2745
+ <ListItem icon={<ZapIcon />}>Core tokens</ListItem>
2844
2746
  </List>
2845
2747
  <List spacing="lg" className="w-48">
2846
2748
  <ListItem icon={<StarIcon />}>lg — gap-3</ListItem>
@@ -2850,19 +2752,19 @@ export default function ComponentsPreview() {
2850
2752
  </div>
2851
2753
  </div>
2852
2754
  <div className="space-y-1.5">
2853
- <p className="text-xs font-medium text-muted-foreground">Realistic use — membership card</p>
2755
+ <p className="text-xs font-medium text-muted-foreground">Realistic use — plan card</p>
2854
2756
  <Card className="w-72">
2855
2757
  <CardContent className="p-5 space-y-4">
2856
2758
  <div>
2857
- <h3 className="text-sm font-semibold">Premier Membership includes</h3>
2759
+ <h3 className="text-sm font-semibold">Pro plan includes</h3>
2858
2760
  <p className="text-xs text-muted-foreground mt-0.5">Everything in Standard, plus:</p>
2859
2761
  </div>
2860
2762
  <List spacing="sm">
2861
- <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Unlimited pool access, all sessions</ListItem>
2862
- <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Personal stroke video review (monthly)</ListItem>
2863
- <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Priority meet registration</ListItem>
2763
+ <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Unlimited private component libraries</ListItem>
2764
+ <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Priority design review (monthly)</ListItem>
2765
+ <ListItem icon={<ShieldCheckIcon className="text-primary" />}>Early access to new components</ListItem>
2864
2766
  <ListItem icon={<XIcon className="text-muted-foreground" />}>
2865
- <span className="text-muted-foreground">Guest passes not included</span>
2767
+ <span className="text-muted-foreground">SSO not included</span>
2866
2768
  </ListItem>
2867
2769
  </List>
2868
2770
  </CardContent>
@@ -2881,7 +2783,7 @@ export default function ComponentsPreview() {
2881
2783
  </EmptyStateIcon>
2882
2784
  <EmptyStateTitle>No messages yet</EmptyStateTitle>
2883
2785
  <EmptyStateDescription>
2884
- Messages from your coach will appear here after your first session.
2786
+ Messages from your team will appear here after your first review.
2885
2787
  </EmptyStateDescription>
2886
2788
  </EmptyState>
2887
2789
  </div>
@@ -2891,14 +2793,14 @@ export default function ComponentsPreview() {
2891
2793
  <EmptyStateIcon>
2892
2794
  <CalendarIcon strokeWidth={1.5} />
2893
2795
  </EmptyStateIcon>
2894
- <EmptyStateTitle>No practices scheduled</EmptyStateTitle>
2796
+ <EmptyStateTitle>No releases scheduled</EmptyStateTitle>
2895
2797
  <EmptyStateDescription>
2896
- Add a practice block to start tracking attendance and yardage.
2798
+ Add a release to start tracking adoption and changes.
2897
2799
  </EmptyStateDescription>
2898
2800
  <EmptyStateAction>
2899
2801
  <Button size="sm">
2900
2802
  <PlusIcon strokeWidth={1.5} />
2901
- Schedule practice
2803
+ Schedule release
2902
2804
  </Button>
2903
2805
  </EmptyStateAction>
2904
2806
  </EmptyState>
@@ -2909,7 +2811,7 @@ export default function ComponentsPreview() {
2909
2811
  <EmptyStateIcon className="bg-destructive/10 text-destructive">
2910
2812
  <WifiOffIcon strokeWidth={1.5} />
2911
2813
  </EmptyStateIcon>
2912
- <EmptyStateTitle>Couldn&apos;t load roster</EmptyStateTitle>
2814
+ <EmptyStateTitle>Couldn&apos;t load components</EmptyStateTitle>
2913
2815
  <EmptyStateDescription>
2914
2816
  Check your connection and try again. Your data is safe.
2915
2817
  </EmptyStateDescription>
@@ -2925,7 +2827,7 @@ export default function ComponentsPreview() {
2925
2827
  <ClipboardListIcon strokeWidth={1.5} />
2926
2828
  </EmptyStateIcon>
2927
2829
  <EmptyStateTitle>No notes yet</EmptyStateTitle>
2928
- <EmptyStateDescription>Add a note to this set.</EmptyStateDescription>
2830
+ <EmptyStateDescription>Add a note to this component.</EmptyStateDescription>
2929
2831
  </EmptyState>
2930
2832
  </div>
2931
2833
  </div>
@@ -2933,6 +2835,18 @@ export default function ComponentsPreview() {
2933
2835
 
2934
2836
  <Section title="Color Picker">
2935
2837
  <div className="flex flex-wrap gap-8 items-start">
2838
+ <div className="space-y-1.5">
2839
+ <p className="text-xs font-medium text-muted-foreground">Add via wheel (+)</p>
2840
+ <ColorPicker
2841
+ wheel
2842
+ swatches={[
2843
+ "#ef4444", "#f97316", "#eab308", "#22c55e",
2844
+ "#06b6d4", "#3b82f6", "#8b5cf6", "#ec4899",
2845
+ ]}
2846
+ defaultValue="#8b5cf6"
2847
+ aria-label="Pick a swatch or add a custom color"
2848
+ />
2849
+ </div>
2936
2850
  <div className="space-y-1.5">
2937
2851
  <p className="text-xs font-medium text-muted-foreground">Swatches</p>
2938
2852
  <ColorPicker
@@ -2970,6 +2884,105 @@ export default function ComponentsPreview() {
2970
2884
  </div>
2971
2885
  </div>
2972
2886
  </Section>
2887
+
2888
+ <Section title="Code">
2889
+ <div className="space-y-6">
2890
+ <div className="space-y-2">
2891
+ <p className="text-sm font-medium text-muted-foreground">Inline (default)</p>
2892
+ <p className="text-sm text-foreground leading-relaxed max-w-sm">
2893
+ Set the primary brand color via{" "}
2894
+ <Code>--primary</Code> in{" "}
2895
+ <Code>tokens.json</Code> and run{" "}
2896
+ <Code>pnpm build:tokens</Code> to regenerate.
2897
+ </p>
2898
+ </div>
2899
+ <div className="space-y-2">
2900
+ <p className="text-sm font-medium text-muted-foreground">Block variant</p>
2901
+ <div className="w-[480px]">
2902
+ <Code variant="block">
2903
+ {`// tokens.json — semantic layer\n{\n "theme": {\n "light": {\n "primary": "#1a1a1a",\n "primary-foreground": "#ffffff"\n }\n }\n}`}
2904
+ </Code>
2905
+ </div>
2906
+ </div>
2907
+ <div className="space-y-2">
2908
+ <p className="text-sm font-medium text-muted-foreground">Sizes — sm / default / lg</p>
2909
+ <div className="flex flex-col gap-3">
2910
+ <div className="flex items-center gap-3">
2911
+ <Code size="sm">pnpm a11y</Code>
2912
+ <Code size="default">pnpm wcag:audit</Code>
2913
+ <Code size="lg">design-tokens</Code>
2914
+ </div>
2915
+ <div className="w-[440px] space-y-1.5">
2916
+ <Code variant="block" size="sm">{`78 pass · 0 fail · 0 warn`}</Code>
2917
+ <Code variant="block" size="default">{`✓ primary on background 12.6:1 AAA`}</Code>
2918
+ <Code variant="block" size="lg">{`@behavioral-agentic-design-system/core@0.16.0`}</Code>
2919
+ </div>
2920
+ </div>
2921
+ </div>
2922
+ <div className="space-y-2">
2923
+ <p className="text-sm font-medium text-muted-foreground">Realistic use</p>
2924
+ <div className="max-w-md space-y-4 text-sm text-foreground leading-relaxed">
2925
+ <div className="space-y-1">
2926
+ <p className="font-medium text-foreground">Install the package</p>
2927
+ <Code variant="block">{`pnpm add @behavioral-agentic-design-system/core`}</Code>
2928
+ </div>
2929
+ <p>
2930
+ Import tokens via <Code>import "@behavioral-agentic-design-system/core/styles.css"</Code>{" "}
2931
+ in your root layout, then use any component:
2932
+ </p>
2933
+ <Code variant="block">
2934
+ {`import { Button } from "@behavioral-agentic-design-system/core/components/ui/button"\n\nexport function Example() {\n return <Button variant="default">Get started</Button>\n}`}
2935
+ </Code>
2936
+ </div>
2937
+ </div>
2938
+ </div>
2939
+ </Section>
2940
+
2941
+ <Section title="Native Select">
2942
+ <div className="grid gap-6 sm:grid-cols-2">
2943
+ <div className="space-y-2">
2944
+ <Label htmlFor="ns-focus">Design Focus Area</Label>
2945
+ <NativeSelect id="ns-focus" defaultValue="components">
2946
+ <option value="">Choose a focus area</option>
2947
+ <option value="tokens">Design Tokens</option>
2948
+ <option value="components">Components</option>
2949
+ <option value="patterns">Patterns</option>
2950
+ <option value="a11y">Accessibility</option>
2951
+ <option value="motion">Motion &amp; Animation</option>
2952
+ </NativeSelect>
2953
+ </div>
2954
+ <div className="space-y-2">
2955
+ <Label htmlFor="ns-disabled">Disabled</Label>
2956
+ <NativeSelect id="ns-disabled" disabled defaultValue="components">
2957
+ <option value="components">Components (locked)</option>
2958
+ </NativeSelect>
2959
+ </div>
2960
+ <div className="space-y-2">
2961
+ <Label htmlFor="ns-invalid">Invalid</Label>
2962
+ <NativeSelect id="ns-invalid" aria-invalid defaultValue="">
2963
+ <option value="">Select a valid option</option>
2964
+ <option value="tokens">Design Tokens</option>
2965
+ </NativeSelect>
2966
+ </div>
2967
+ <div className="space-y-2">
2968
+ <p className="text-sm font-medium text-foreground">Sizes</p>
2969
+ <div className="flex flex-col gap-2">
2970
+ <NativeSelect size="sm" defaultValue="sm">
2971
+ <option value="sm">Small (sm)</option>
2972
+ </NativeSelect>
2973
+ <NativeSelect size="default" defaultValue="default">
2974
+ <option value="default">Default</option>
2975
+ </NativeSelect>
2976
+ <NativeSelect size="lg" defaultValue="lg">
2977
+ <option value="lg">Large (lg)</option>
2978
+ </NativeSelect>
2979
+ <NativeSelect size="xl" defaultValue="xl">
2980
+ <option value="xl">Extra Large (xl)</option>
2981
+ </NativeSelect>
2982
+ </div>
2983
+ </div>
2984
+ </div>
2985
+ </Section>
2973
2986
  </div>
2974
2987
  </div>
2975
2988
  );
@@ -3004,9 +3017,9 @@ function DatePickerScheduleForm() {
3004
3017
  return (
3005
3018
  <Card className="w-80"><CardContent className="p-4 space-y-4">
3006
3019
  <div className="space-y-1">
3007
- <p className="text-sm font-semibold">Schedule practice block</p>
3020
+ <p className="text-sm font-semibold">Schedule release window</p>
3008
3021
  <p className="text-xs text-muted-foreground">
3009
- Breezy Hills Aquatic Club · Summer season
3022
+ Design System Team · Q2 2026
3010
3023
  </p>
3011
3024
  </div>
3012
3025
  <div className="space-y-3">
@@ -3090,18 +3103,18 @@ function SegmentedControlShowcase() {
3090
3103
  </div>
3091
3104
 
3092
3105
  <Card className="w-80"><CardContent className="p-4 space-y-3">
3093
- <p className="text-sm font-semibold">Breezy Hills Aquatic Club</p>
3094
- <SegmentedControl value={filter} onValueChange={setFilter} label="Session filter">
3095
- <SegmentedControlItem value="active">Upcoming</SegmentedControlItem>
3096
- <SegmentedControlItem value="archived">Past</SegmentedControlItem>
3106
+ <p className="text-sm font-semibold">Component library</p>
3107
+ <SegmentedControl value={filter} onValueChange={setFilter} label="Status filter">
3108
+ <SegmentedControlItem value="active">Active</SegmentedControlItem>
3109
+ <SegmentedControlItem value="archived">Deprecated</SegmentedControlItem>
3097
3110
  <SegmentedControlItem value="all">All</SegmentedControlItem>
3098
3111
  </SegmentedControl>
3099
3112
  <p className="text-xs text-muted-foreground">
3100
3113
  Showing{" "}
3101
3114
  <span className="font-medium text-foreground">
3102
- {filter === "active" ? "upcoming" : filter === "archived" ? "past" : "all"}
3115
+ {filter === "active" ? "active" : filter === "archived" ? "deprecated" : "all"}
3103
3116
  </span>{" "}
3104
- sessions · Avery Castillo coaching
3117
+ components · reviewed by Avery Castillo
3105
3118
  </p>
3106
3119
  </CardContent></Card>
3107
3120
  </div>
@@ -3113,42 +3126,42 @@ function TimelineRealisticDemo() {
3113
3126
  <Card className="w-96">
3114
3127
  <CardContent className="p-5 space-y-4">
3115
3128
  <div className="space-y-0.5">
3116
- <p className="text-sm font-semibold">Avery Castillo · Summer Invitational</p>
3117
- <p className="text-xs text-muted-foreground">Breezy Hills Aquatic Club</p>
3129
+ <p className="text-sm font-semibold">Button · v2.4.0 release</p>
3130
+ <p className="text-xs text-muted-foreground">Design System Team</p>
3118
3131
  </div>
3119
3132
  <Timeline>
3120
3133
  <TimelineItem
3121
3134
  status="complete"
3122
3135
  icon={<UserCheckIcon className="size-3" strokeWidth={2} aria-hidden />}
3123
- title="Registration submitted"
3124
- description="200m freestyle · 400m IM"
3136
+ title="Proposal submitted"
3137
+ description="Button · Badge · Card"
3125
3138
  time="Jun 20, 9:00 AM"
3126
3139
  />
3127
3140
  <TimelineItem
3128
3141
  status="complete"
3129
3142
  icon={<CreditCardIcon className="size-3" strokeWidth={2} aria-hidden />}
3130
- title="Payment confirmed"
3131
- description="$85 — credit card ending 4821"
3143
+ title="Budget approved"
3144
+ description="Q2 component tooling"
3132
3145
  time="Jun 21, 11:30 AM"
3133
3146
  />
3134
3147
  <TimelineItem
3135
3148
  status="complete"
3136
3149
  icon={<ClipboardCheckIcon className="size-3" strokeWidth={2} aria-hidden />}
3137
- title="Waiver signed"
3138
- description="Guardian: Morgan Castillo"
3150
+ title="Accessibility review"
3151
+ description="Signed off by Priya Nair"
3139
3152
  time="Jun 22, 3:15 PM"
3140
3153
  />
3141
3154
  <TimelineItem
3142
3155
  status="active"
3143
- title="Heat assignment pending"
3144
- description="Sheet expected Jun 26"
3156
+ title="Design review pending"
3157
+ description="Feedback expected Jun 26"
3145
3158
  time="Jun 25 (today)"
3146
3159
  />
3147
3160
  <TimelineItem
3148
3161
  status="pending"
3149
3162
  icon={<TrophyIcon className="size-3" strokeWidth={2} aria-hidden />}
3150
- title="Summer Invitational"
3151
- description="Check-in 7:30 AM · South entrance"
3163
+ title="v2.4.0 shipped"
3164
+ description="Published to npm · release notes"
3152
3165
  time="Jun 28, 2026"
3153
3166
  />
3154
3167
  </Timeline>
@@ -3164,8 +3177,8 @@ function RatingGroupFeedbackDemo() {
3164
3177
  return (
3165
3178
  <Card className="w-72"><CardContent className="p-4 space-y-4">
3166
3179
  <div className="space-y-1">
3167
- <p className="text-sm font-semibold">Rate your practice session</p>
3168
- <p className="text-xs text-muted-foreground">Breezy Hills Aquatic Club · Tuesday AM</p>
3180
+ <p className="text-sm font-semibold">Rate this component</p>
3181
+ <p className="text-xs text-muted-foreground">Design System Team · v2.4.0</p>
3169
3182
  </div>
3170
3183
  {submitted ? (
3171
3184
  <div className="space-y-2">
@@ -3175,7 +3188,7 @@ function RatingGroupFeedbackDemo() {
3175
3188
  ) : (
3176
3189
  <div className="space-y-3">
3177
3190
  <div className="space-y-1.5">
3178
- <RatingGroup value={value} onValueChange={setValue} label="Session rating" />
3191
+ <RatingGroup value={value} onValueChange={setValue} label="Component rating" />
3179
3192
  {value > 0 && (
3180
3193
  <p className="text-xs text-muted-foreground">{labels[value]}</p>
3181
3194
  )}
@@ -3209,14 +3222,14 @@ function TagsInputShowcase({
3209
3222
  }
3210
3223
 
3211
3224
  function TagsInputFilterDemo() {
3212
- const [tags, setTags] = React.useState<string[]>(["Junior A", "Summer Invitational"]);
3225
+ const [tags, setTags] = React.useState<string[]>(["Button", "v2.4.0"]);
3213
3226
  return (
3214
3227
  <div className="w-96 space-y-3">
3215
3228
  <Card>
3216
3229
  <CardContent className="p-4 space-y-3">
3217
3230
  <div>
3218
- <p className="text-sm font-semibold">Breezy Hills Aquatic Club</p>
3219
- <p className="text-xs text-muted-foreground">Filter practice sessions by tag</p>
3231
+ <p className="text-sm font-semibold">Component library</p>
3232
+ <p className="text-xs text-muted-foreground">Filter components by tag</p>
3220
3233
  </div>
3221
3234
  <div className="space-y-1.5">
3222
3235
  <label className="text-sm font-medium">Active filters</label>