@kolkrabbi/kol-component 0.365.0 → 0.366.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.366.0",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"embla-carousel-react": "^8.6.0",
|
|
33
33
|
"pdfjs-dist": "^6.3.289",
|
|
34
34
|
"react-syntax-highlighter": "^16.1.1",
|
|
35
|
-
"@kolkrabbi/kol-
|
|
35
|
+
"@kolkrabbi/kol-search": "^0.3.0",
|
|
36
36
|
"@kolkrabbi/kol-markdown": "^0.2.0",
|
|
37
|
-
"@kolkrabbi/kol-
|
|
37
|
+
"@kolkrabbi/kol-growth": "^0.5.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@kolkrabbi/kol-icons": ">=0.69.0",
|
|
@@ -84,7 +84,7 @@ import NavRailFloat from './NavRailFloat.jsx'
|
|
|
84
84
|
*
|
|
85
85
|
* @param {'app'|'site'|'workshop'} preset which rail (default `app`); `variant="site"` is the old spelling of `preset="site"`
|
|
86
86
|
* @param {'top'|'float'} variant `top` — the horizontal top rail (TopRail): logomark · items · `actions` (the right slot);
|
|
87
|
-
* `float` — the float sidebar, expanded
|
|
87
|
+
* `float` — the float sidebar, expanded 264 · collapsed 72 (NavRailFloat.jsx, float-everything W9 rows 127 · 128)
|
|
88
88
|
* @param {Array} items `{ icon, path, label, sub?: [{ icon?, path, label }] }`
|
|
89
89
|
* a section (`sub`) with `to` is a FOLDER NOTE: its icon and label open `to`, its chevron expands or enters
|
|
90
90
|
* @param {Array} bottomItems pinned below the rule (Settings)
|
|
@@ -11,7 +11,7 @@ import { floatMotion } from '../utilities/motion.js'
|
|
|
11
11
|
/**
|
|
12
12
|
* NavRailFloat — the float sidebar, `NavRail variant="float"` (float-everything W9 rows 122 · 127 · 128 · 131,
|
|
13
13
|
* 2026-11-04 — kol-float--style 48:4015 expanded, 48:4277 rail). Its own path: none of the app rail's grab, drag or
|
|
14
|
-
* width token. Two states, the rail's words — EXPANDED (
|
|
14
|
+
* width token. Two states, the rail's words — EXPANDED (264) and COLLAPSED (72):
|
|
15
15
|
*
|
|
16
16
|
* expanded the switcher row (glyph · title · ⌄, or your `switcher`) · the search capsule (`Search pages ⌘K`) · the
|
|
17
17
|
* tree: a `{ heading }` entry is a section label (`kol-float-ruler`, fg-64, as authored), an item a
|
|
@@ -85,7 +85,7 @@ export default function NavRailFloat({ items = [], currentPath = '', onNavigate,
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
return (
|
|
88
|
-
<FloatModule as="nav" aria-label="Navigation" inset="sm" width="var(--kol-shell-float-rail-open,
|
|
88
|
+
<FloatModule as="nav" aria-label="Navigation" inset="sm" width="var(--kol-shell-float-rail-open, 264px)" style={motionStyle}
|
|
89
89
|
title={title} foldable={foldable} folded={folded} defaultFolded={defaultFolded} onFold={onFold}
|
|
90
90
|
bodyClassName="!gap-3" className={`kol-float-rail h-full !gap-3 ${className}`.trim()}
|
|
91
91
|
footer={footer && <div className="flex shrink-0 flex-col gap-2">{footer}</div>}
|