@kolkrabbi/kol-shell 0.113.0 → 0.114.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.113.0",
3
+ "version": "0.114.0",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -21,8 +21,8 @@
21
21
  "react-dom": "^18.3.0 || ^19.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@kolkrabbi/kol-component": "^0.344.0",
25
24
  "@kolkrabbi/kol-icons": "^0.66.0",
25
+ "@kolkrabbi/kol-component": "^0.344.0",
26
26
  "@kolkrabbi/kol-theme": "^0.214.0",
27
27
  "@kolkrabbi/kol-framework": "^0.70.0"
28
28
  },
@@ -12,14 +12,16 @@ import MoreRows, { FloatMenu } from './MoreSheet.jsx'
12
12
  * oq-64). The exploration's `Document pill` (kol-float--style 9:9358).
13
13
  *
14
14
  * @param {string} name the document
15
- * @param {string} status the save state, verbatim ("✓ Saved")
15
+ * @param {string} status the save state, verbatim ("Saved")
16
+ * @param {string} statusIcon an icon before the status (`check` for a saved document) — a glyph is an Icon, never a text
17
+ * character (plan-2026-11-06-buttons-page 1.4: the "✓" was a string)
16
18
  * @param {Function} onBack the ← press; unset, no ←
17
19
  * @param {Array} menuItems `[{ label, icon?, onPress, sub? }]` — the ▾ menu's rows (MoreRows float); unset with `onMenu`, the ▾ runs it
18
20
  * @param {Function} onMenu `() => void` — the ▾ press when the consumer owns the menu
19
21
  * @param {'solid'|'glass-dark'|'glass-light'} surface what the capsule (and its menu) is made of (default `solid`)
20
22
  * @param {string} className
21
23
  */
22
- export default function DocumentCapsule({ name, status, onBack, menuItems, onMenu, surface = 'solid', className = '' }) {
24
+ export default function DocumentCapsule({ name, status, statusIcon, onBack, menuItems, onMenu, surface = 'solid', className = '' }) {
23
25
  const [open, setOpen] = useState(false)
24
26
  const popover = usePopover({ open, onOpenChange: setOpen, placement: 'bottom-start', offset: 8 })
25
27
  const hasMenu = menuItems?.length > 0
@@ -43,7 +45,12 @@ export default function DocumentCapsule({ name, status, onBack, menuItems, onMen
43
45
  ) : (
44
46
  <span className="kol-float-panel text-emphasis">{name}</span>
45
47
  )}
46
- {status && <span className="kol-float-label text-oq-64">{status}</span>}
48
+ {status && (
49
+ <span className="kol-float-label text-oq-64 inline-flex items-center gap-1">
50
+ {statusIcon && <Icon name={statusIcon} size={16} />}
51
+ {status}
52
+ </span>
53
+ )}
47
54
  {hasMenu && (
48
55
  <PopoverPanel popover={popover} panel={false} focus={false} className={card} style={{ minWidth: 220, maxWidth: 'calc(100vw - 24px)' }}>
49
56
  <FloatMenu beside cardClass={card} onLeaf={() => setOpen(false)}>