@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 +1 -1
- package/src/actionbar/ActionBar.tsx +20 -14
package/package.json
CHANGED
|
@@ -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.
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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:
|
|
487
|
+
background: "transparent",
|
|
487
488
|
color: adminMode
|
|
488
|
-
? "var(--ck-accent
|
|
489
|
+
? "var(--ck-accent, #4f46e5)"
|
|
489
490
|
: "var(--ck-text-secondary, #666)",
|
|
490
|
-
border:
|
|
491
|
-
? "1px solid var(--ck-accent, #4f46e5)"
|
|
492
|
-
: "1px solid var(--ck-border-subtle, #eee)",
|
|
491
|
+
border: "none",
|
|
493
492
|
cursor: "pointer",
|
|
494
|
-
transition: "
|
|
493
|
+
transition: "color 160ms ease-out",
|
|
495
494
|
}}
|
|
496
495
|
>
|
|
497
496
|
<svg
|
|
498
|
-
width="
|
|
499
|
-
height="
|
|
497
|
+
width="16"
|
|
498
|
+
height="16"
|
|
500
499
|
viewBox="0 0 24 24"
|
|
501
500
|
fill="none"
|
|
502
501
|
stroke="currentColor"
|
|
503
|
-
strokeWidth="
|
|
502
|
+
strokeWidth="1.8"
|
|
504
503
|
strokeLinecap="round"
|
|
505
504
|
strokeLinejoin="round"
|
|
506
505
|
aria-hidden
|
|
507
506
|
>
|
|
508
|
-
|
|
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
|
)}
|