@cosxai/ui 0.10.0 → 0.10.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": "@cosxai/ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
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",
@@ -460,10 +460,11 @@ export function ActionBar({
460
460
  ) : null}
461
461
 
462
462
  {/* Admin-mode toggle. Only renders when at least one registered
463
- item has adminOnly=true. When active: filled accent circle;
464
- when inactive: outlined muted circle. Uses a small shield
465
- glyph so the affordance reads as "elevated privileges" at a
466
- glance, distinct from a normal action button. */}
463
+ item has adminOnly=true. Styled to match the grip: no border,
464
+ transparent background, icon-only. Muted stroke by default,
465
+ accent when active same visual weight as the other bar
466
+ items so the affordance sits comfortably next to Theme /
467
+ Share / etc. */}
467
468
  {hasAdminItems && (
468
469
  <button
469
470
  type="button"
@@ -483,29 +484,34 @@ export function ActionBar({
483
484
  marginLeft: 2,
484
485
  marginRight: 2,
485
486
  borderRadius: 999,
486
- background: adminMode ? "var(--ck-accent, #4f46e5)" : "transparent",
487
+ background: "transparent",
487
488
  color: adminMode
488
- ? "var(--ck-accent-fg, #fff)"
489
+ ? "var(--ck-accent, #4f46e5)"
489
490
  : "var(--ck-text-secondary, #666)",
490
- border: adminMode
491
- ? "1px solid var(--ck-accent, #4f46e5)"
492
- : "1px solid var(--ck-border-subtle, #eee)",
491
+ border: "none",
493
492
  cursor: "pointer",
494
- transition: "background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out",
493
+ transition: "color 160ms ease-out",
495
494
  }}
496
495
  >
497
496
  <svg
498
- width="14"
499
- height="14"
497
+ width="16"
498
+ height="16"
500
499
  viewBox="0 0 24 24"
501
500
  fill="none"
502
501
  stroke="currentColor"
503
- strokeWidth="2"
502
+ strokeWidth="1.8"
504
503
  strokeLinecap="round"
505
504
  strokeLinejoin="round"
506
505
  aria-hidden
507
506
  >
508
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
507
+ {/* Sliders/tuning icon reads as "surface more controls",
508
+ which is exactly what admin mode does. Two horizontal
509
+ tracks with a knob on each; the active vs. inactive
510
+ distinction comes from stroke colour, not fill. */}
511
+ <line x1="4" y1="8" x2="20" y2="8" />
512
+ <line x1="4" y1="16" x2="20" y2="16" />
513
+ <circle cx="10" cy="8" r="2" fill="currentColor" />
514
+ <circle cx="15" cy="16" r="2" fill="currentColor" />
509
515
  </svg>
510
516
  </button>
511
517
  )}