@kolkrabbi/kol-component 0.340.0 → 0.340.1

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.340.0",
3
+ "version": "0.340.1",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,9 +29,9 @@
29
29
  "embla-carousel-react": "^8.6.0",
30
30
  "pdfjs-dist": "^6.3.289",
31
31
  "react-syntax-highlighter": "^16.1.1",
32
- "@kolkrabbi/kol-search": "^0.3.0",
32
+ "@kolkrabbi/kol-growth": "^0.5.0",
33
33
  "@kolkrabbi/kol-markdown": "^0.2.0",
34
- "@kolkrabbi/kol-growth": "^0.5.0"
34
+ "@kolkrabbi/kol-search": "^0.3.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@kolkrabbi/kol-icons": ">=0.61.1",
@@ -147,9 +147,15 @@ export function Menu({
147
147
  if (!open || !rootRef.current) return
148
148
  const cs = getComputedStyle(rootRef.current.firstElementChild ?? rootRef.current)
149
149
  const vars = {}
150
- for (const v of TONE_VARS) { const val = cs.getPropertyValue(v).trim(); if (val) vars[v] = val }
150
+ /* A FLOAT PANEL IS A FLOAT SURFACE (FloatMenuPanelInk, kol-website 2026-11-04): the theme's, as RailTrigger's card,
151
+ * the search modal and the float Dropdown (which pins `--kol-tone-panel-bg` on its trigger) — never the trigger's
152
+ * ground. Its rows read theme ink (fg-88, the fg-16 lift), so an inverted trigger's panel-bg painted them out. */
153
+ for (const v of TONE_VARS) {
154
+ if (variant === 'float' && v.startsWith('--kol-tone-panel')) continue
155
+ const val = cs.getPropertyValue(v).trim(); if (val) vars[v] = val
156
+ }
151
157
  setAmbient(vars)
152
- }, [open])
158
+ }, [open, variant])
153
159
 
154
160
  let rows = items ?? []
155
161
  if (search) {