@kolkrabbi/kol-shell 0.125.0 → 0.126.0

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/RailFlyout.jsx +12 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-shell",
3
- "version": "0.125.0",
3
+ "version": "0.126.0",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -15,15 +15,15 @@
15
15
  "@kolkrabbi/kol-component": ">=0.367.0",
16
16
  "@kolkrabbi/kol-framework": ">=0.55.0",
17
17
  "@kolkrabbi/kol-icons": ">=0.69.0",
18
- "@kolkrabbi/kol-theme": ">=0.221.0",
18
+ "@kolkrabbi/kol-theme": ">=0.222.0",
19
19
  "gsap": "^3.13.0",
20
20
  "react": "^18.3.0 || ^19.0.0",
21
21
  "react-dom": "^18.3.0 || ^19.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@kolkrabbi/kol-component": "^0.367.0",
24
+ "@kolkrabbi/kol-component": "^0.369.0",
25
25
  "@kolkrabbi/kol-icons": "^0.70.1",
26
- "@kolkrabbi/kol-theme": "^0.221.0",
26
+ "@kolkrabbi/kol-theme": "^0.222.0",
27
27
  "@kolkrabbi/kol-framework": "^0.74.1"
28
28
  },
29
29
  "files": [
@@ -7,7 +7,7 @@ import { IconLoader } from '@kolkrabbi/kol-icons'
7
7
  * RailFlyout — A section's children beside the rail (float-everything W9 row 130, 2026-11-04): the hover card a 72
8
8
  * rail opens for a row that holds pages — the section's glyph and name (`kol-float-body`), then its rows 34 tall on
9
9
  * the `--kol-float-list-r` round (a 16 glyph, the label in `kol-float-hint`, a count in `kol-float-ruler` at the end),
10
- * the current one lit. With `anchor` it hangs right of that element (the popover); without, it is the card alone.
10
+ * the current one marked by its dot, never a fill (W11.1, 2026-11-12). With `anchor` it hangs right of that element (the popover); without, it is the card alone.
11
11
  * The exploration's `Dashboard rail flyout` (kol-float--style 9:14981).
12
12
  *
13
13
  * @param {string} icon · {string} title the section
@@ -31,12 +31,17 @@ export default function RailFlyout({ icon, title, items = [], active, onPick, an
31
31
  {icon && <IconLoader name={icon} size={18} className="text-oq-96" />}
32
32
  <span className="kol-float-body text-emphasis">{title}</span>
33
33
  </div>
34
- {items.map((i) => (
35
- <Button key={i.path ?? i.label} variant="nav" size="lg" iconLeft={i.icon} iconSize={16} aria-current={i.path != null && i.path === active ? 'page' : undefined} className="kol-btn-float w-full justify-start" onClick={() => onPick?.(i)}>
36
- <span className="flex-1 text-left">{i.label}</span>
37
- {i.count != null && <span className="kol-float-ruler text-oq-64">{i.count}</span>}
38
- </Button>
39
- ))}
34
+ {items.map((i) => {
35
+ const current = i.path != null && i.path === active
36
+ return (
37
+ <Button key={i.path ?? i.label} variant="nav" size="lg" iconLeft={i.icon} iconSize={16} aria-current={current ? 'page' : undefined} className="kol-btn-float w-full justify-start" onClick={() => onPick?.(i)}>
38
+ <span className="flex-1 text-left">{i.label}</span>
39
+ {i.count != null && <span className="kol-float-ruler text-oq-64">{i.count}</span>}
40
+ {/* the current row's mark is its dot, never a fill (W11.1) — MenuRow's `ascii-dot`, drawn the same way */}
41
+ {current && <IconLoader name="ascii-dot" size={24} style={{ margin: -5 }} className="text-oq-88" />}
42
+ </Button>
43
+ )
44
+ })}
40
45
  </div>
41
46
  )
42
47
  if (!anchor) return card