@kolkrabbi/kol-component 0.363.0 → 0.364.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.364.0",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"pdfjs-dist": "^6.3.289",
|
|
34
34
|
"react-syntax-highlighter": "^16.1.1",
|
|
35
35
|
"@kolkrabbi/kol-search": "^0.3.0",
|
|
36
|
-
"@kolkrabbi/kol-
|
|
37
|
-
"@kolkrabbi/kol-
|
|
36
|
+
"@kolkrabbi/kol-growth": "^0.5.0",
|
|
37
|
+
"@kolkrabbi/kol-markdown": "^0.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@kolkrabbi/kol-icons": ">=0.69.0",
|
|
@@ -29,7 +29,9 @@ import { glyphSize, indicatorSize } from '../hooks/glyphLadders.js'
|
|
|
29
29
|
* variant="float" — the float select (float-everything W2 row 25 · W4 row 54, 2026-11-04): the
|
|
30
30
|
* trigger a `kol-btn-float` capsule on the float well (a `tone` still wins), the float heights by `size`
|
|
31
31
|
* (sm 28 · md 36 · lg 44); its list opens 8 under it on `--kol-float-list-r`, the trigger's width, 34 rows
|
|
32
|
-
* in Inter,
|
|
32
|
+
* in Inter, no hairline. Still rest and open only. The caret is the float spec's chevron for the trigger's size
|
|
33
|
+
* (`--kol-float-chev-*`, 12 at sm — plan-2026-11-12-float-system W3.1); in the list hover is the only fill, the
|
|
34
|
+
* current row carries its dot and no fill (`--kol-float-row-hover` · `-row-selected`).
|
|
33
35
|
*
|
|
34
36
|
* Legacy aliases (pre-law variants, kept so call-sites don't break):
|
|
35
37
|
* default → primary · subtle → primary · minimal → outline
|
|
@@ -265,7 +267,7 @@ const Dropdown = ({
|
|
|
265
267
|
</span>
|
|
266
268
|
{/* chrome lives in .kol-dd-caret (trailing edge + open-state flip) —
|
|
267
269
|
* keyed off the trigger's data-state, no inline styles */}
|
|
268
|
-
<IconLoader name="chevron-down" size={float ?
|
|
270
|
+
<IconLoader name="chevron-down" size={float ? `var(--kol-float-chev-${resolvedSize === 'md' || resolvedSize === 'lg' ? resolvedSize : 'sm'})` : indicatorSize(resolvedSize)} className="kol-dd-caret" />
|
|
269
271
|
</>
|
|
270
272
|
)}
|
|
271
273
|
{/* a consumer's own trigger mark — the tool-palette corner fold rides
|
|
@@ -286,7 +288,7 @@ const Dropdown = ({
|
|
|
286
288
|
hover: false,
|
|
287
289
|
size: resolvedSize,
|
|
288
290
|
/* a float row is the float list's (`.kol-menu-panel--float .kol-menu-row`), whatever the trigger's rung; the
|
|
289
|
-
* current one
|
|
291
|
+
* current one carries its dot and no fill (W3.1, P2: "it dosnt highlight selected, only hover") */
|
|
290
292
|
rowClass: float ? `kol-menu-row${isActive ? ' kol-menu-row--current' : ''}` : (ROW[resolvedSize] ?? ROW.sm),
|
|
291
293
|
height: rowHeight,
|
|
292
294
|
onPointerEnter: onOptionHover ? () => reportHover(option.value) : undefined,
|
|
@@ -85,7 +85,7 @@ export default function NavRailFloat({ items = [], currentPath = '', onNavigate,
|
|
|
85
85
|
<button type="button" onClick={onSwitch} className="flex h-10 w-full items-center gap-2.5 rounded-[var(--kol-float-list-r)] px-2.5 text-left cursor-pointer hover:bg-fg-08 focus-visible:outline-none focus-visible:shadow-[var(--kol-float-focus)]">
|
|
86
86
|
<IconLoader name={icon} size={18} className="shrink-0 text-oq-96" />
|
|
87
87
|
<span className="kol-float-body-lg min-w-0 flex-1 truncate text-fg-emphasis">{title}</span>
|
|
88
|
-
{onSwitch && <IconLoader name="chevron-down" size=
|
|
88
|
+
{onSwitch && <IconLoader name="chevron-down" size="var(--kol-float-chev-lg)" className="shrink-0 text-oq-64" />}
|
|
89
89
|
</button>
|
|
90
90
|
))}
|
|
91
91
|
{onSearch && (
|