@cboxdk/cbox-ui 0.10.0 → 0.10.2

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": "@cboxdk/cbox-ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
5
  "description": "Cbox shared UI — layout primitives, design tokens, and brand assets used across every Cbox-family app (id, cortex, atlas, track, …).",
6
6
  "repository": {
package/tokens/shell.css CHANGED
@@ -40,6 +40,12 @@
40
40
  :is(.cbx-shell, .cbx-overlay, .cbx-popover) :is(a, button, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
41
41
  :is(.cbx-shell, .cbx-overlay, .cbx-popover) :is(input, textarea):focus-visible { outline-offset: 0; }
42
42
  .cbx-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
43
+ .cbx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
44
+ /* "Skip to content": the first focusable element, hidden until it has focus. */
45
+ .cbx-skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground) !important; font-size: 14px; font-weight: 600; box-shadow: var(--cbx-shadow); transform: translateY(calc(-100% - 16px)); }
46
+ .cbx-skip-link:focus, .cbx-skip-link:focus-visible { transform: none; }
47
+ /* The skip link moves focus to <main>; the page container itself needs no ring. */
48
+ .cbx-shell-main:focus, .cbx-shell-main:focus-visible { outline: none; }
43
49
  .cbx-kbd { font-family: var(--cbx-font-mono); font-size: 11px; line-height: 16px; padding: 0 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--secondary); color: var(--muted-foreground); white-space: nowrap; }
44
50
  .cbx-link { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
45
51
  .cbx-link:hover { text-decoration: underline; }
@@ -133,6 +139,15 @@
133
139
  .cbx-subnav-link { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; color: var(--muted-foreground); }
134
140
  .cbx-subnav-link:hover { background: var(--secondary); color: var(--foreground); }
135
141
  .cbx-subnav-link.is-active { background: var(--accent-soft); color: var(--foreground); font-weight: 600; }
142
+ /* Nav page marks (lock, count) and group headings, in the subnav and the phone nav. */
143
+ .cbx-subnav-link { gap: 8px; }
144
+ .cbx-subnav-link > .cbx-truncate { flex: 1; }
145
+ .cbx-nav-lock { display: inline-flex; align-items: center; flex: none; margin-left: auto; color: var(--muted-foreground); }
146
+ .cbx-nav-count { flex: none; margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--secondary); color: var(--foreground); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
147
+ .cbx-subnav-link.is-active .cbx-nav-count { background: var(--background); }
148
+ .cbx-nav-run { display: flex; flex-direction: column; gap: 4px; }
149
+ .cbx-nav-run + .cbx-nav-run { margin-top: 8px; }
150
+ .cbx-nav-group { padding: 6px 12px 2px; font-family: var(--cbx-font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
136
151
  .cbx-subnav-strip { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 26px; height: 100%; padding: 14px 0; font-size: 12px; color: var(--muted-foreground); }
137
152
  .cbx-subnav-strip:hover { background: var(--secondary); color: var(--foreground); }
138
153
  .cbx-subnav-strip span { writing-mode: vertical-rl; }