@cosxai/ui 0.4.7 → 0.4.9

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.7",
3
+ "version": "0.4.9",
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",
@@ -72,7 +72,12 @@ export function Modal({
72
72
  position: "fixed",
73
73
  inset: 0,
74
74
  background: "rgba(10, 14, 26, 0.6)",
75
- backdropFilter: "blur(2px)",
75
+ // Pull the page surface noticeably out of focus behind the
76
+ // modal — agent-dataroom's `backdrop-blur-sm` (4px) reads as
77
+ // a hint; 8px reads as a clear "the world stopped". The card
78
+ // sits above the blurred layer, so the content stays crisp.
79
+ backdropFilter: "blur(8px)",
80
+ WebkitBackdropFilter: "blur(8px)",
76
81
  display: "flex",
77
82
  alignItems: "center",
78
83
  justifyContent: "center",
@@ -161,6 +166,14 @@ export function ModalHeader({ title, subtitle, onClose, titleId }: ModalHeaderPr
161
166
  type="button"
162
167
  onClick={onClose}
163
168
  aria-label="Close"
169
+ onMouseEnter={(e) => {
170
+ (e.currentTarget as HTMLButtonElement).style.background =
171
+ "var(--ck-bg-muted)";
172
+ }}
173
+ onMouseLeave={(e) => {
174
+ (e.currentTarget as HTMLButtonElement).style.background =
175
+ "transparent";
176
+ }}
164
177
  style={{
165
178
  border: "none",
166
179
  background: "transparent",
@@ -168,7 +181,10 @@ export function ModalHeader({ title, subtitle, onClose, titleId }: ModalHeaderPr
168
181
  cursor: "pointer",
169
182
  fontSize: 18,
170
183
  lineHeight: 1,
171
- padding: 2,
184
+ padding: 4,
185
+ borderRadius: "var(--ck-radius-sm, 4px)",
186
+ transition:
187
+ "background var(--ck-dur-fast) var(--ck-ease)",
172
188
  }}
173
189
  >
174
190
  ×
@@ -116,6 +116,18 @@ html[data-ck-chrome="editorial"] [data-ck-leftnav] {
116
116
  border-right-color: var(--ck-border-subtle);
117
117
  }
118
118
 
119
+ /* Nav-item hover — match the actionbar / button hover token so
120
+ every interactive surface in the editorial chrome reads as
121
+ actionable on pointer enter. The sketch / ambient / riso / etc.
122
+ chromes have always carried this rule; editorial was the only
123
+ gap (consumers saw rail items as static even though they're
124
+ navigable). Active rows keep their accent-muted background from
125
+ the base NavItem inline style, so the `:not([data-active="true"])`
126
+ guard is the same shape the other chromes use. */
127
+ html[data-ck-chrome="editorial"] [data-ck-navitem]:not([data-active="true"]):hover {
128
+ background: var(--ck-bg-muted);
129
+ }
130
+
119
131
  /* Topbar — flatten to the paper, lose the bottom border (the
120
132
  folio rule under it is the visual divider in editorial). */
121
133
  html[data-ck-chrome="editorial"] [data-ck-topbar] {