@cosxai/ui 0.3.2 → 0.3.3

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.3.2",
3
+ "version": "0.3.3",
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",
@@ -403,6 +403,23 @@ export function ActionBar({
403
403
  </button>
404
404
  ) : null}
405
405
 
406
+ {/* Balancing leading spacer — only present when the right side
407
+ holds ONLY a status dot (no trailing items). With a left
408
+ and right spacer of equal flex weight, the leading items
409
+ centre between the grip and the status dot. Without this,
410
+ a solo leading item (e.g. just "Theme · Light") looks
411
+ left-anchored next to the grip with a visible gap before
412
+ the dot, which reads as unbalanced. When trailing items ARE
413
+ present, they take that role on the right and the leading
414
+ group goes back to its natural left-anchored packing. */}
415
+ {leadingEntries.length > 0 && trailingEntries.length === 0 && statusDot && (
416
+ <span
417
+ aria-hidden
418
+ data-ck-actionbar-spacer="leading"
419
+ style={{ flex: "1 1 auto", minWidth: 0 }}
420
+ />
421
+ )}
422
+
406
423
  {/* Leading entries — flat items + group heads with disclosure regions. */}
407
424
  {leadingEntries.map(renderEntry)}
408
425