@cosxai/ui 0.11.1 → 0.11.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": "@cosxai/ui",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "COSX design system — React 19 component primitives shared across product-meta and other consumers",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -415,18 +415,25 @@ export function ActionBar({
415
415
  alignItems: "center",
416
416
  gap: 4,
417
417
  zIndex: 80,
418
- // Bar chrome stays constant across admin/viewer modes — the
419
- // whole-bar tint + accent border in earlier versions competed
420
- // with the shield toggle for signal and produced awkward hue
421
- // shifts under the item hover overlay (cool grey on tinted
422
- // warm base read as green). Mode state lives entirely on the
423
- // shield now: outline glyph = off, filled glyph = on.
418
+ // Bar background stays constant across modes — the earlier
419
+ // whole-bar tint composited under the item hover overlay
420
+ // (cool grey on tinted warm base) produced an awkward green
421
+ // cast on hover, and competed with the shield toggle for
422
+ // signal. Border colour DOES swap to accent when admin mode
423
+ // is on so the elevated state reads at a glance without a
424
+ // heavy surface change; the shield glyph adds a second cue
425
+ // (outline off → filled on) at the toggle itself.
424
426
  background: "var(--ck-bg-surface)",
425
- border: "1px solid var(--ck-border-subtle)",
427
+ border: `1px solid ${
428
+ adminMode
429
+ ? "var(--ck-accent, #4f46e5)"
430
+ : "var(--ck-border-subtle)"
431
+ }`,
426
432
  borderRadius: 999,
427
433
  boxShadow: "var(--ck-shadow-3)",
428
434
  fontFamily: "var(--ck-font-sans)",
429
435
  color: "var(--ck-text-primary)",
436
+ transition: "border-color 200ms var(--ck-ease, ease)",
430
437
  ...style,
431
438
  }}
432
439
  >