@carbonid1/design-system 5.7.0 → 5.7.1

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": "@carbonid1/design-system",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "Shared React UI primitives + design tokens (themes, postcss config)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,6 +11,7 @@ Primitives live in `@carbonid1/design-system`. **Check the package's exports and
11
11
  import {
12
12
  Badge,
13
13
  Button,
14
+ buttonVariants,
14
15
  Kbd,
15
16
  ProgressRing,
16
17
  Slider,
@@ -50,9 +51,11 @@ If you're editing `@carbonid1/design-system` itself (adding a primitive, changin
50
51
  href={href}
51
52
  aria-current={active ? 'page' : undefined}
52
53
  className={cn(buttonVariants({ variant: 'ghost', size: 'small', selected: active }))}
53
- />
54
+ >
55
+ {label}
56
+ </Link>
54
57
  ```
55
- Wrap in `cn(...)` so the `selected` hover tint resolves against the variant's own hover background.
58
+ The `cn(...)` wrap is load-bearing, not cosmetic: `buttonVariants` is cva, which concatenates without merging, so only `cn` (tailwind-merge) drops the variant's own `hover:bg-accent` in favor of the `selected` tint.
56
59
 
57
60
  ## Visual Language
58
61