@cosxai/ui 0.4.3 → 0.4.5

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.4.3",
3
+ "version": "0.4.5",
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",
@@ -53,6 +53,16 @@ export function ActionBarMenuGroup({
53
53
  return (
54
54
  <div
55
55
  ref={wrapperRef}
56
+ // ck-actionbar-group--open scopes a deeper hover tint to the
57
+ // children while the disclosure is open. The default
58
+ // .ck-actionbar-btn:hover uses --ck-bg-muted (gray) — fine when
59
+ // a button sits on app background, but reads muddy when stacked
60
+ // on top of this wrapper's --ck-accent-muted pill. The chrome
61
+ // sheet replaces the gray with an accent-blended overlay only
62
+ // for that scope so the hover signal stays in the accent hue.
63
+ className={
64
+ isOpen ? "ck-actionbar-group ck-actionbar-group--open" : "ck-actionbar-group"
65
+ }
56
66
  style={{
57
67
  display: "inline-flex",
58
68
  alignItems: "center",
@@ -60,7 +60,10 @@ html[data-ck-chrome="ambient"] .ck-actionbar-btn {
60
60
  }
61
61
  html[data-ck-chrome="ambient"] .ck-btn--primary {
62
62
  background: var(--ck-accent);
63
- color: #FFFFFF;
63
+ /* Defaults to white to pair with ambient's deep saturated accents;
64
+ consumer apps may stamp --ck-accent-fg when overriding
65
+ --ck-accent-light-override (e.g. light brand → dark text). */
66
+ color: var(--ck-accent-fg, #FFFFFF);
64
67
  border: none;
65
68
  box-shadow: var(--ck-shadow-1);
66
69
  }
@@ -29,7 +29,10 @@ html[data-ck-chrome="editorial"] .ck-actionbar-btn {
29
29
  html[data-ck-chrome="editorial"] .ck-btn--primary,
30
30
  html[data-ck-chrome="editorial"] .ck-actionbar-btn--primary {
31
31
  background: var(--ck-accent);
32
- color: #0F0F0F;
32
+ /* Defaults to near-black to pair with coral; consumer apps may
33
+ stamp --ck-accent-fg to a different colour when overriding
34
+ --ck-accent-light-override (e.g. dark brand → white text). */
35
+ color: var(--ck-accent-fg, #0F0F0F);
33
36
  }
34
37
  html[data-ck-chrome="editorial"] .ck-btn--primary:hover,
35
38
  html[data-ck-chrome="editorial"] .ck-actionbar-btn--primary:hover {
@@ -42,7 +42,10 @@ html[data-ck-chrome="neobrutalism"] .ck-actionbar-btn:active:not(:disabled) {
42
42
 
43
43
  html[data-ck-chrome="neobrutalism"] .ck-btn--primary {
44
44
  background: var(--ck-accent);
45
- color: #000;
45
+ /* Defaults to black to pair with neobrutalism's saturated pastel
46
+ accent; consumer apps may stamp --ck-accent-fg when overriding
47
+ --ck-accent-light-override. */
48
+ color: var(--ck-accent-fg, #000);
46
49
  }
47
50
  html[data-ck-chrome="neobrutalism"] .ck-btn--primary:hover:not(:disabled) {
48
51
  background: var(--ck-accent);
@@ -86,7 +86,10 @@ html[data-ck-chrome="riso"] .ck-actionbar-btn:active:not(:disabled) {
86
86
  html[data-ck-chrome="riso"] .ck-btn--primary,
87
87
  html[data-ck-chrome="riso"] .ck-actionbar-btn--primary {
88
88
  background: var(--ck-accent);
89
- color: #1A1A1A;
89
+ /* Defaults to near-black to pair with riso's pink ink accent;
90
+ consumer apps may stamp --ck-accent-fg when overriding
91
+ --ck-accent-light-override. */
92
+ color: var(--ck-accent-fg, #1A1A1A);
90
93
  box-shadow: 3px 3px 0 var(--ck-riso-blue);
91
94
  }
92
95
  html[data-ck-chrome="riso"] .ck-btn--primary:hover:not(:disabled),
@@ -82,7 +82,10 @@ html[data-ck-chrome="sketch"] .ck-actionbar-btn:active:not(:disabled) {
82
82
  html[data-ck-chrome="sketch"] .ck-btn--primary,
83
83
  html[data-ck-chrome="sketch"] .ck-actionbar-btn--primary {
84
84
  background: var(--ck-accent);
85
- color: #FFFEF9;
85
+ /* Defaults to paper-white to pair with sketch's blue ink accent;
86
+ consumer apps may stamp --ck-accent-fg when overriding
87
+ --ck-accent-light-override. */
88
+ color: var(--ck-accent-fg, #FFFEF9);
86
89
  box-shadow: 2px 3px 0 var(--ck-text-primary);
87
90
  }
88
91
  html[data-ck-chrome="sketch"] .ck-btn--primary:hover:not(:disabled) {
@@ -185,6 +185,13 @@ html[data-ck-chrome="seamless"] .ck-card__foot {
185
185
  .ck-actionbar-btn:hover:not(:disabled):not(.ck-actionbar-btn--primary) {
186
186
  background: var(--ck-bg-muted);
187
187
  }
188
+ /* Children inside an open disclosure group sit on top of the wrapper's
189
+ --ck-accent-muted pill. The default gray hover above reads as a hue
190
+ collision against the coral/indigo wrapper — swap in an accent-blended
191
+ overlay so the hover signal stays in the accent family. */
192
+ .ck-actionbar-group--open .ck-actionbar-btn:hover:not(:disabled):not(.ck-actionbar-btn--primary) {
193
+ background: color-mix(in oklab, var(--ck-accent) 18%, transparent);
194
+ }
188
195
  .ck-actionbar-btn--primary {
189
196
  background: var(--ck-accent);
190
197
  color: var(--ck-text-inverse);