@utopia-studio-design/design-system-cli 0.3.2 → 0.3.3

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.
@@ -55,12 +55,24 @@ import {
55
55
  </SidebarMenuButton>
56
56
  </SidebarMenuItem>
57
57
 
58
+ <Breadcrumb aria-label="Current location">
59
+ <BreadcrumbList>
60
+ <BreadcrumbItem>
61
+ <BreadcrumbLink href="/dashboard">Dashboard</BreadcrumbLink>
62
+ </BreadcrumbItem>
63
+ <BreadcrumbSeparator />
64
+ <BreadcrumbItem>
65
+ <BreadcrumbPage>Sessions</BreadcrumbPage>
66
+ </BreadcrumbItem>
67
+ </BreadcrumbList>
68
+ </Breadcrumb>
69
+
58
70
  <div style={{ background: 'var(--surface-inverse)' }}>
59
71
  <Breadcrumb aria-label="Current location" variant="inverse">
60
72
  <BreadcrumbList>
61
- <BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem>
62
- <BreadcrumbSeparator />
63
- <BreadcrumbItem><BreadcrumbPage>Projects</BreadcrumbPage></BreadcrumbItem>
73
+ <BreadcrumbItem>
74
+ <BreadcrumbPage>Co-Build Hub</BreadcrumbPage>
75
+ </BreadcrumbItem>
64
76
  </BreadcrumbList>
65
77
  </Breadcrumb>
66
78
  </div>
@@ -71,6 +83,9 @@ import {
71
83
  - Use `activeVariant="indicator"` or `"both"` when current navigation needs the logical inline-start accent. The default `"background"` variant remains backward compatible.
72
84
  - `isActive` supplies `aria-current="page"` unless the consumer explicitly provides another valid value.
73
85
  - Use `Breadcrumb variant="inverse"` on `--surface-inverse`; do not remap `--foreground` or add component selectors in the consuming app.
86
+ - Compose separators only between path items. Never render a separator before the first item.
87
+ - `BreadcrumbSeparator` provides an RTL-aware Lucide `ChevronRight` by default. Breadcrumb does not add a home icon.
88
+ - Breadcrumb links own their no-underline treatment and compact typography, so consumer-level anchor styles do not require an override.
74
89
 
75
90
  ## AI Rule
76
91
 
@@ -489,6 +489,9 @@
489
489
  "--surface-hover",
490
490
  "--radius-control",
491
491
  "--space-2",
492
+ "--font-size-small",
493
+ "--line-height-supporting",
494
+ "--icon-size-xs",
492
495
  "--control-height-sm",
493
496
  "--duration-fast",
494
497
  "--ease-standard",
@@ -518,11 +521,17 @@
518
521
  "Breadcrumb": "Root nav landmark. Keep aria-label descriptive and localized when needed.",
519
522
  "BreadcrumbList": "Ordered list wrapper for breadcrumb items and separators.",
520
523
  "BreadcrumbItem": "List item wrapper for link, current page, or collapsed menu trigger.",
521
- "BreadcrumbLink": "Clickable ancestor link. Use a router link only through composition.",
524
+ "BreadcrumbLink": "Clickable ancestor link with no underline, including when a consumer applies a global anchor underline. Use a router link only through composition.",
522
525
  "BreadcrumbPage": "Current page label with aria-current=page.",
523
- "BreadcrumbSeparator": "Visual separator. Use non-directional slash by default or mirror directional chevrons in RTL.",
526
+ "BreadcrumbSeparator": "Visual separator with an aria-hidden Lucide ChevronRight by default. It mirrors automatically in RTL.",
524
527
  "BreadcrumbEllipsis": "Collapsed middle path indicator. Pair with a menu when hidden parents need discovery."
525
528
  },
529
+ "rules": [
530
+ "Compose BreadcrumbSeparator only between items, never before the first item.",
531
+ "Do not add a home icon unless the product explicitly supplies one as item content.",
532
+ "Default Breadcrumb hover changes foreground only; inverse hover may use the inverse surface hover role.",
533
+ "Use the compact typography and alignment supplied by Ceramic instead of product CSS overrides."
534
+ ],
526
535
  "arabicFriendly": "Breadcrumb order, separator spacing, dropdown alignment, and focus rings must follow dir=\"rtl\" using logical properties. Arabic labels must come from localization."
527
536
  }
528
537
  },
@@ -566,7 +575,7 @@
566
575
  "BreadcrumbItem": "List item wrapper for a breadcrumb link, current page, separator, or collapsed menu trigger.",
567
576
  "BreadcrumbLink": "Clickable ancestor path segment. Compose with a router link when needed.",
568
577
  "BreadcrumbPage": "Current page path segment. It owns aria-current=page.",
569
- "BreadcrumbSeparator": "Visual hierarchy separator. Keep spacing logical and mirror directional separators in RTL."
578
+ "BreadcrumbSeparator": "Visual hierarchy separator with an aria-hidden Lucide ChevronRight by default. Keep spacing logical; it mirrors automatically in RTL."
570
579
  },
571
580
  "arabicFriendly": "Breadcrumb Item must preserve DOM order, logical spacing, current-page semantics, and mixed-script labels in dir=\"rtl\". Use localized path labels."
572
581
  }
package/lib/api.mjs CHANGED
@@ -8,7 +8,7 @@ const packagedDataRoot = join(packageRoot, 'data')
8
8
  const hasWorkspaceSource = existsSync(join(workspaceRoot, 'packages/design-system/src/manifests/components.json'))
9
9
 
10
10
  export const apiVersion = 1
11
- export const cliVersion = '0.3.1'
11
+ export const cliVersion = '0.3.3'
12
12
  export const mcpLaunch = {
13
13
  command: 'npx',
14
14
  args: ['-y', '--package', '@utopia-studio-design/design-system-cli', 'utopia-ds', 'mcp'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utopia-studio-design/design-system-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "AI-readable CLI and MCP server for Ceramic Design System",
5
5
  "type": "module",
6
6
  "license": "MIT",