@kolkrabbi/kol-shell 0.114.0 → 0.115.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-shell",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -15,16 +15,16 @@
15
15
  "@kolkrabbi/kol-component": ">=0.341.0",
16
16
  "@kolkrabbi/kol-framework": ">=0.55.0",
17
17
  "@kolkrabbi/kol-icons": ">=0.16.0",
18
- "@kolkrabbi/kol-theme": ">=0.212.0",
18
+ "@kolkrabbi/kol-theme": ">=0.215.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-theme": "^0.215.0",
24
25
  "@kolkrabbi/kol-icons": "^0.66.0",
25
- "@kolkrabbi/kol-component": "^0.344.0",
26
- "@kolkrabbi/kol-theme": "^0.214.0",
27
- "@kolkrabbi/kol-framework": "^0.70.0"
26
+ "@kolkrabbi/kol-framework": "^0.70.0",
27
+ "@kolkrabbi/kol-component": "^0.344.0"
28
28
  },
29
29
  "files": [
30
30
  "src",
@@ -1,9 +1,9 @@
1
1
  import { useState } from 'react'
2
- import { Button, usePopover, PopoverPanel, floatSurfaceClass } from '@kolkrabbi/kol-component'
2
+ import { Button, MenuTrigger, usePopover, PopoverPanel, floatSurfaceClass } from '@kolkrabbi/kol-component'
3
3
  import { Icon } from '@kolkrabbi/kol-icons'
4
4
  import MoreRows, { FloatMenu } from './MoreSheet.jsx'
5
5
 
6
- /* taxonomy-ok: molecule — a float Button, the name, the More sheet's rows */
6
+ /* taxonomy-ok: molecule — a float Button, a float MenuTrigger (the name), the More sheet's rows */
7
7
 
8
8
  /**
9
9
  * DocumentCapsule — The open document's capsule (float-everything W5 row 71, 2026-11-04): 48 tall, the way back (at full
@@ -30,18 +30,16 @@ export default function DocumentCapsule({ name, status, statusIcon, onBack, menu
30
30
  <div className={`kol-document-capsule kol-float-chrome inline-flex items-center gap-3 h-12 pl-2 pr-4 rounded-full ${floatSurfaceClass(surface)} ${className}`.trim()}>
31
31
  {onBack && <Button variant="float" tone="ghost" size="sm" iconOnly="arrow-left" aria-label="Back" onClick={onBack} className="[--kol-tone-fg:var(--kol-oq-96)]" />}
32
32
  {hasMenu || onMenu ? (
33
- <button
34
- type="button"
35
- ref={hasMenu ? popover.refs.setReference : undefined}
36
- /* the popover's own press when there are rows — an `onClick={undefined}` after the spread wiped it */
37
- {...(hasMenu ? popover.getReferenceProps() : { onClick: onMenu })}
38
- aria-haspopup="menu"
39
- aria-expanded={hasMenu ? open : undefined}
40
- className="kol-float-panel text-emphasis inline-flex items-center gap-3 h-9 rounded-full bg-transparent border-0 p-0 cursor-pointer"
41
- >
42
- {name}
43
- <Icon name="chevron-down" size={16} className="text-oq-64" />
44
- </button>
33
+ /* the name ▾ is a MenuTrigger float (plan-2026-11-06-buttons-page 2.3 — it was a hand-rolled <button>): clear at
34
+ * rest on the capsule, lit while its menu is open; the popover holds the span, the pattern TopControlsBar uses */
35
+ <span ref={hasMenu ? popover.refs.setReference : undefined} {...(hasMenu ? popover.getReferenceProps() : {})} className="inline-flex">
36
+ {/* inline: the theme's menu-trigger rule sets the well at 3-class weight, a utility class cannot reach it */}
37
+ <MenuTrigger variant="float" open={hasMenu && open} iconRight="chevron-down" aria-haspopup="menu" aria-expanded={hasMenu ? open : undefined}
38
+ onClick={hasMenu ? undefined : onMenu}
39
+ style={{ '--kol-tone-bg': 'transparent', '--kol-float-px-md': 'var(--kol-spacing-2)' }}>
40
+ {name}
41
+ </MenuTrigger>
42
+ </span>
45
43
  ) : (
46
44
  <span className="kol-float-panel text-emphasis">{name}</span>
47
45
  )}