@cosxai/ui 0.21.0 → 0.22.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosxai/ui",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "COSX design system \u2014 React 19 component primitives shared across product-meta and other consumers",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -67,6 +67,12 @@ export function SegmentedControl<V extends string = string>({
67
67
  aria-label={ariaLabel}
68
68
  className={cn("ck-segmented", className)}
69
69
  data-testid={testId}
70
+ // The track is deliberately unfilled (owner feedback,
71
+ // 2026-08-19): a muted-filled track reads as a heavy block on
72
+ // warm canvases — the hairline border delimits the group and
73
+ // the raised selected segment carries ALL the contrast. This
74
+ // also makes the control look right on any surface (canvas,
75
+ // card, modal) without per-context tuning.
70
76
  style={{
71
77
  display: fit === "full" ? "flex" : "inline-flex",
72
78
  alignItems: "stretch",
@@ -74,7 +80,7 @@ export function SegmentedControl<V extends string = string>({
74
80
  padding: 2,
75
81
  borderRadius: 8,
76
82
  border: "1px solid var(--ck-border-subtle)",
77
- background: "var(--ck-bg-muted)",
83
+ background: "transparent",
78
84
  opacity: disabled ? 0.5 : 1,
79
85
  }}
80
86
  >
@@ -112,7 +118,7 @@ export function SegmentedControl<V extends string = string>({
112
118
  ? "var(--ck-text-primary)"
113
119
  : "var(--ck-text-secondary)",
114
120
  background: selected ? "var(--ck-bg-surface)" : "transparent",
115
- boxShadow: selected ? "0 1px 2px rgba(0,0,0,0.08)" : "none",
121
+ boxShadow: selected ? "0 1px 2px rgba(0,0,0,0.06)" : "none",
116
122
  borderColor: selected ? "var(--ck-border-subtle)" : "transparent",
117
123
  cursor: optDisabled ? "not-allowed" : "pointer",
118
124
  opacity: opt.disabled && !disabled ? 0.45 : 1,