@kolkrabbi/kol-shell 0.108.1 → 0.109.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 +3 -3
- package/src/DocumentCapsule.jsx +3 -2
- package/src/GlobalActions.jsx +4 -4
- package/src/MenuBar.jsx +112 -0
- package/src/ToolRail.jsx +43 -5
- package/src/WorkspaceStrips.jsx +7 -6
- package/src/index.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@kolkrabbi/kol-component": "^0.341.1",
|
|
25
|
+
"@kolkrabbi/kol-framework": "^0.70.0",
|
|
25
26
|
"@kolkrabbi/kol-icons": "^0.65.0",
|
|
26
|
-
"@kolkrabbi/kol-theme": "^0.212.0"
|
|
27
|
-
"@kolkrabbi/kol-framework": "^0.70.0"
|
|
27
|
+
"@kolkrabbi/kol-theme": "^0.212.0"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/DocumentCapsule.jsx
CHANGED
|
@@ -6,7 +6,8 @@ import MoreRows, { FloatMenu } from './MoreSheet.jsx'
|
|
|
6
6
|
/* taxonomy-ok: molecule — a float Button, the name, the More sheet's rows */
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* DocumentCapsule — The open document's capsule (float-everything W5 row 71, 2026-11-04): 48 tall, the way back
|
|
9
|
+
* DocumentCapsule — The open document's capsule (float-everything W5 row 71, 2026-11-04): 48 tall, the way back (at full
|
|
10
|
+
* ink, oq-96 — his frame 19:6067, plan-2026-11-05-float-editor W1.3), the
|
|
10
11
|
* name (`kol-float-panel`) with a ▾ that opens its rows (the float menu), and the save state (`kol-float-label`,
|
|
11
12
|
* oq-64). The exploration's `Document pill` (kol-float--style 9:9358).
|
|
12
13
|
*
|
|
@@ -25,7 +26,7 @@ export default function DocumentCapsule({ name, status, onBack, menuItems, onMen
|
|
|
25
26
|
const card = `kol-more-sheet kol-more-sheet-float ${floatSurfaceClass(surface, true)}`
|
|
26
27
|
return (
|
|
27
28
|
<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()}>
|
|
28
|
-
{onBack && <Button variant="float" tone="ghost" size="sm" iconOnly="arrow-left" aria-label="Back" onClick={onBack} />}
|
|
29
|
+
{onBack && <Button variant="float" tone="ghost" size="sm" iconOnly="arrow-left" aria-label="Back" onClick={onBack} className="[--kol-tone-fg:var(--kol-oq-96)]" />}
|
|
29
30
|
{hasMenu || onMenu ? (
|
|
30
31
|
<button
|
|
31
32
|
type="button"
|
package/src/GlobalActions.jsx
CHANGED
|
@@ -3,8 +3,8 @@ import { Avatar, Button } from '@kolkrabbi/kol-component'
|
|
|
3
3
|
/* taxonomy-ok: molecule — a row of float Buttons and an Avatar */
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* GlobalActions — The app's top-right actions (float-everything W5 row 72, 2026-11-04): undo · redo as
|
|
7
|
-
*
|
|
6
|
+
* GlobalActions — The app's top-right actions (float-everything W5 row 72, 2026-11-04): undo · redo as float glyphs at
|
|
7
|
+
* full ink (oq-96 — his frame 19:6069, plan-2026-11-05-float-editor W1.3; were the ghost's oq-48), the primary action as the inverted float capsule (Export), and the account as a round grey slot — the
|
|
8
8
|
* avatar when there is one, the user glyph when not. No box: it sits on the canvas, 12 between. The exploration's
|
|
9
9
|
* `Global actions` (kol-float--style 9:8988).
|
|
10
10
|
*
|
|
@@ -18,8 +18,8 @@ import { Avatar, Button } from '@kolkrabbi/kol-component'
|
|
|
18
18
|
export default function GlobalActions({ onUndo, onRedo, actionLabel = 'Export', onAction, account, onAccount, className = '' }) {
|
|
19
19
|
return (
|
|
20
20
|
<div className={`kol-global-actions kol-float-chrome inline-flex items-center gap-3 ${className}`.trim()}>
|
|
21
|
-
{onUndo && <Button variant="float" tone="ghost" size="sm" iconOnly="undo" aria-label="Undo" onClick={onUndo} />}
|
|
22
|
-
{onRedo && <Button variant="float" tone="ghost" size="sm" iconOnly="redo" aria-label="Redo" onClick={onRedo} />}
|
|
21
|
+
{onUndo && <Button variant="float" tone="ghost" size="sm" iconOnly="undo" aria-label="Undo" onClick={onUndo} className="[--kol-tone-fg:var(--kol-oq-96)]" />}
|
|
22
|
+
{onRedo && <Button variant="float" tone="ghost" size="sm" iconOnly="redo" aria-label="Redo" onClick={onRedo} className="[--kol-tone-fg:var(--kol-oq-96)]" />}
|
|
23
23
|
{onAction && <Button variant="float" tone="inverted" size="md" onClick={onAction}>{actionLabel}</Button>}
|
|
24
24
|
{account?.src || account?.initial ? (
|
|
25
25
|
<button type="button" aria-label={account.label ?? 'Account'} onClick={onAccount} className="inline-flex rounded-full bg-transparent border-0 p-0 cursor-pointer">
|
package/src/MenuBar.jsx
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from 'react'
|
|
2
|
+
import { Menu, MenuRow, MenuDivider, MenuFlyout, MenuLabel } from '@kolkrabbi/kol-component'
|
|
3
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
4
|
+
|
|
5
|
+
/* taxonomy-ok: organism — a row of kol-component `Menu`s with MenuRow · MenuFlyout · MenuDivider rows */
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* MenuBar — The app's menu bar, inside the browser, above the app (plan-2026-11-05-float-editor W1.1; his frame
|
|
9
|
+
* 20:13601, Section 5 20:12208). 40 tall on the secondary surface: the app's name first (bold), its menus beside it,
|
|
10
|
+
* the `end` menus at the far right (Help). Every menu is DATA, so each app (the editor, Labs, Randomiser, Morph)
|
|
11
|
+
* passes its own. Built on kol-component's `Menu` (the one engine) and its parts — MenuRow, MenuFlyout, MenuDivider,
|
|
12
|
+
* MenuLabel; the look is the editor menu's (MenuTop): sans 13 medium, 26 triggers, a 250 list of 24 rows.
|
|
13
|
+
*
|
|
14
|
+
* A desktop menu bar's manners: once one menu is open, pointing at another opens it; ← / → walk the open menu along
|
|
15
|
+
* the bar (wrapping, `end` included); Esc closes. Submenus open beside their row (MenuFlyout: hover, → in, ← out).
|
|
16
|
+
*
|
|
17
|
+
* @param {string|Object} app the app's name ("FXR"), or a menu `{ label, items }` when the name opens the app menu
|
|
18
|
+
* @param {Array} menus `[{ label, items, width? }]` — `width` the list's (default 250)
|
|
19
|
+
* @param {Array} end the same, at the bar's far end (Help)
|
|
20
|
+
* @param {string} className
|
|
21
|
+
*
|
|
22
|
+
* A row in `items` (Menu's own row keys): `{ label, onClick, kbd?, disabled?, checked?, indicator?, icon?, tone? }` ·
|
|
23
|
+
* `{ label, items }` a submenu · `{ divider: true }` · `{ heading }` a section label.
|
|
24
|
+
*/
|
|
25
|
+
const ROW = 'kol-menubar-row w-full shrink-0 flex items-center gap-2 h-6 px-2 rounded-[var(--kol-radius-sm)] text-left font-[family-name:var(--kol-font-family-sans)] text-[13px] font-medium leading-normal text-[color:var(--kol-fg-emphasis)] hover:bg-[var(--kol-fg-08)] aria-expanded:bg-[var(--kol-fg-08)] disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:bg-[var(--kol-fg-08)]'
|
|
26
|
+
/* the list: the secondary surface, a 2% rim, 4 in, the large shadow; the key cap on the rim's fill, its ink oq-80 */
|
|
27
|
+
const LIST = 'kol-menubar-list flex flex-col bg-[var(--kol-surface-secondary)] border border-[var(--kol-fg-02)] rounded-[var(--kol-radius-sm)] p-1 shadow-[0_10px_15px_rgba(0,0,0,0.1)] [&_.kol-menu-kbd]:bg-[var(--kol-fg-02)] [&_.kol-menu-kbd]:border [&_.kol-menu-kbd]:border-[var(--kol-fg-02)] [&_.kol-menu-kbd]:text-[var(--kol-oq-80)] [&_.kol-menu-kbd]:rounded-[2px]'
|
|
28
|
+
/* the trigger: 26 tall, 12 in; lit while its menu is open */
|
|
29
|
+
const TRIGGER = 'kol-menu-btn inline-flex items-center h-[26px] px-3 rounded-[var(--kol-radius-sm)] font-[family-name:var(--kol-font-family-sans)] text-[13px] leading-[13px] text-[color:var(--kol-fg-emphasis)] whitespace-nowrap hover:bg-[var(--kol-fg-08)] aria-expanded:bg-[var(--kol-fg-08)] focus-visible:outline-none focus-visible:bg-[var(--kol-fg-08)]'
|
|
30
|
+
|
|
31
|
+
function Rows({ items, width }) {
|
|
32
|
+
return items.map((it, i) => {
|
|
33
|
+
const key = it.key ?? `${it.label ?? 'r'}-${i}`
|
|
34
|
+
if (it.divider) return <MenuDivider key={key} className="border-oq-08 mt-1 mb-[3px]" />
|
|
35
|
+
if (it.heading) return <MenuLabel key={key}>{it.heading}</MenuLabel>
|
|
36
|
+
const icon = it.icon && (typeof it.icon === 'string' ? <Icon name={it.icon} size={16} className="text-oq-88" /> : it.icon)
|
|
37
|
+
if (it.items?.length) {
|
|
38
|
+
return (
|
|
39
|
+
/* the submenu butts the list it came from: its rim on the parent's right pad (his frame — 306 beside 316) */
|
|
40
|
+
<MenuFlyout key={key} flyout label={it.label} iconLeft={icon} disabled={it.disabled} rowClass={ROW}
|
|
41
|
+
panelClassName={LIST} panelStyle={{ width: it.width ?? width, marginLeft: -5 }}>
|
|
42
|
+
<Rows items={it.items} width={it.width ?? width} />
|
|
43
|
+
</MenuFlyout>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
return (
|
|
47
|
+
<MenuRow key={key} rowClass={ROW} onClick={it.onClick} disabled={it.disabled} iconLeft={icon} tone={it.tone}
|
|
48
|
+
indicator={it.indicator ?? (it.checked ? 'check' : undefined)} kbd={it.kbd}>
|
|
49
|
+
{it.label}
|
|
50
|
+
</MenuRow>
|
|
51
|
+
)
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default function MenuBar({ app, menus = [], end = [], className = '' }) {
|
|
56
|
+
const appMenu = typeof app === 'string' ? { label: app } : app
|
|
57
|
+
const all = [...(appMenu ? [{ ...appMenu, app: true }] : []), ...menus, ...end]
|
|
58
|
+
const [open, setOpen] = useState(null)
|
|
59
|
+
const triggers = useRef([])
|
|
60
|
+
/* menus that open — the app's name without items is a label */
|
|
61
|
+
const live = all.map((m, i) => (m.items?.length ? i : null)).filter((i) => i != null)
|
|
62
|
+
|
|
63
|
+
/* ← / → walk the open menu along the bar; a flyout row's → (it opens the submenu) and a submenu's ← (it closes it)
|
|
64
|
+
* are the flyout's own — MenuFlyout stops the ←; the → on a flyout row is skipped here */
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (open == null) return undefined
|
|
67
|
+
const onKey = (e) => {
|
|
68
|
+
if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight') return
|
|
69
|
+
if (e.key === 'ArrowRight' && e.target.closest?.('[aria-haspopup="menu"][role="menuitem"]')) return
|
|
70
|
+
if (e.key === 'ArrowLeft' && e.target.closest?.('[role="menu"] [role="menu"]')) return
|
|
71
|
+
e.preventDefault()
|
|
72
|
+
const at = live.indexOf(open)
|
|
73
|
+
const next = live[(at + (e.key === 'ArrowRight' ? 1 : -1) + live.length) % live.length]
|
|
74
|
+
setOpen(next)
|
|
75
|
+
triggers.current[next]?.focus()
|
|
76
|
+
}
|
|
77
|
+
document.addEventListener('keydown', onKey)
|
|
78
|
+
return () => document.removeEventListener('keydown', onKey)
|
|
79
|
+
}, [open, live.join()]) // eslint-disable-line react-hooks/exhaustive-deps
|
|
80
|
+
|
|
81
|
+
const item = (m, i) => {
|
|
82
|
+
if (!m.items?.length) {
|
|
83
|
+
return <span key={`${m.label}-${i}`} className={`${TRIGGER} hover:bg-transparent ${m.app ? 'font-bold' : 'font-medium'}`}>{m.label}</span>
|
|
84
|
+
}
|
|
85
|
+
return (
|
|
86
|
+
<Menu key={`${m.label}-${i}`} offset={5}
|
|
87
|
+
open={open === i}
|
|
88
|
+
onOpenChange={(v) => setOpen((cur) => (v ? i : cur === i ? null : cur))}
|
|
89
|
+
panelClassName={LIST} panelStyle={{ width: m.width ?? 250 }}
|
|
90
|
+
trigger={({ open: isOpen, props }) => (
|
|
91
|
+
<button {...props} ref={(el) => { triggers.current[i] = el }} type="button" aria-expanded={isOpen}
|
|
92
|
+
/* the bar is live once a menu is open: pointing at another opens it (the mac menu bar) */
|
|
93
|
+
onPointerEnter={() => { if (open != null && open !== i) setOpen(i) }}
|
|
94
|
+
className={`${TRIGGER} ${m.app ? 'font-bold' : 'font-medium'}`}>
|
|
95
|
+
{m.label}
|
|
96
|
+
</button>
|
|
97
|
+
)}
|
|
98
|
+
>
|
|
99
|
+
<Rows items={m.items} width={m.width ?? 250} />
|
|
100
|
+
</Menu>
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const startCount = (appMenu ? 1 : 0) + menus.length
|
|
105
|
+
return (
|
|
106
|
+
<div role="menubar" aria-label="Menu bar" className={`kol-menubar flex items-center gap-1 h-10 px-4 shrink-0 bg-[var(--kol-surface-secondary)] border-b border-[var(--kol-fg-02)] ${className}`.trim()}>
|
|
107
|
+
{all.slice(0, startCount).map((m, i) => item(m, i))}
|
|
108
|
+
{end.length > 0 && <span className="flex-1" aria-hidden="true" />}
|
|
109
|
+
{all.slice(startCount).map((m, j) => item(m, startCount + j))}
|
|
110
|
+
</div>
|
|
111
|
+
)
|
|
112
|
+
}
|
package/src/ToolRail.jsx
CHANGED
|
@@ -1,26 +1,64 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useState } from 'react'
|
|
2
|
+
import { Button, Tooltip, MenuPanel, MenuRow, PopoverPanel, usePopover, floatSurfaceClass } from '@kolkrabbi/kol-component'
|
|
3
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
2
4
|
|
|
3
5
|
/* taxonomy-ok: molecule — a column of float Buttons, each named by the float Tooltip */
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* ToolRail — The editor's tool column as a float (float-everything W5 row 63, 2026-11-04). A 52 capsule, 6 in, 40 slots
|
|
7
|
-
* (`--kol-float-row`) 4 apart; the armed tool is lit (`--kol-fg-16`, the float selection); every slot is named beside
|
|
9
|
+
* (`--kol-float-row`) 4 apart; the armed tool is lit (`--kol-fg-16`, the float selection), the rest at full ink (oq-96, W1.3); every slot is named beside
|
|
8
10
|
* the rail by the float Tooltip with its key. The exploration's `Floating tool rail` (kol-float--style 9:9192).
|
|
9
11
|
*
|
|
10
12
|
* @param {Array} tools `[{ id, icon, label, kbd? }]` in rail order — `icon` a kol-icons name, `kbd` the tooltip's key
|
|
11
13
|
* @param {string} value the armed tool's id
|
|
12
14
|
* @param {Function} onChange `(id) => void`
|
|
13
15
|
* @param {'solid'|'glass-dark'|'glass-light'} surface what the rail is made of (default `solid`); a glass puts its own ink on the slots
|
|
14
|
-
* @param {
|
|
16
|
+
* @param {Array} more THE OVERFLOW (plan-2026-11-05-float-editor W1.3; his frame 19:6066 — "Tool overflow" 19:6072):
|
|
17
|
+
* `[{ label, icon?, kbd?, onClick }]` — a 36 ⋮ circle 16 under the rail, on the rail's surface,
|
|
18
|
+
* its rows a float list beside it (Hand, Zoom, Fill/stroke, Reset colours). Unset, no ⋮.
|
|
19
|
+
* @param {string} className the rail's — or, with `more`, the column's that holds the rail and its ⋮
|
|
15
20
|
*/
|
|
16
|
-
export default function ToolRail({ tools = [], value, onChange, surface = 'solid', className = '' }) {
|
|
21
|
+
export default function ToolRail({ tools = [], value, onChange, surface = 'solid', more, className = '' }) {
|
|
22
|
+
if (more?.length) {
|
|
23
|
+
return (
|
|
24
|
+
<div className={`inline-flex flex-col items-center gap-4 ${className}`.trim()}>
|
|
25
|
+
<ToolRail tools={tools} value={value} onChange={onChange} surface={surface} />
|
|
26
|
+
<ToolMore items={more} surface={surface} />
|
|
27
|
+
</div>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
17
30
|
return (
|
|
18
31
|
<div role="toolbar" aria-orientation="vertical" aria-label="Tools" className={`kol-tool-rail kol-float-chrome inline-flex flex-col gap-1 p-1.5 rounded-full ${floatSurfaceClass(surface)} ${className}`.trim()}>
|
|
19
32
|
{tools.map((t) => (
|
|
20
33
|
<Tooltip key={t.id} variant="float" placement="right" offset={12} label={t.label} shortcut={t.kbd}>
|
|
21
|
-
|
|
34
|
+
{/* every slot at full ink, armed or not (his frame 19:6071 — W1.3; the ghost tone's oq-48 read as disabled) */}
|
|
35
|
+
<Button variant="float" tone="ghost" iconOnly={t.icon} aria-label={t.label} pressed={t.id === value} onClick={() => onChange?.(t.id)} className="[--kol-tone-fg:var(--kol-oq-96)]" />
|
|
22
36
|
</Tooltip>
|
|
23
37
|
))}
|
|
24
38
|
</div>
|
|
25
39
|
)
|
|
26
40
|
}
|
|
41
|
+
|
|
42
|
+
/* the ⋮ under the rail and its list, to the right, top edges on one line */
|
|
43
|
+
function ToolMore({ items, surface }) {
|
|
44
|
+
const [open, setOpen] = useState(false)
|
|
45
|
+
const pop = usePopover({ open, onOpenChange: setOpen, placement: 'right-start', offset: 12 })
|
|
46
|
+
return (
|
|
47
|
+
<>
|
|
48
|
+
<span ref={pop.refs.setReference} {...pop.getReferenceProps()} className={`kol-float-chrome inline-flex rounded-full ${floatSurfaceClass(surface)}`}>
|
|
49
|
+
<Button variant="float" tone="ghost" iconOnly="more-vertical" aria-label="More tools" pressed={open} className="[--kol-tone-fg:var(--kol-oq-96)]" />
|
|
50
|
+
</span>
|
|
51
|
+
{open && (
|
|
52
|
+
<PopoverPanel popover={pop} panel={false} focus={false}>
|
|
53
|
+
<MenuPanel variant="float" className="min-w-[200px]">
|
|
54
|
+
{items.map((it) => (
|
|
55
|
+
<MenuRow key={it.label} rowClass="kol-menu-row kol-helper-12" kbd={it.kbd} disabled={it.disabled}
|
|
56
|
+
iconLeft={it.icon && <Icon name={it.icon} size={16} className="text-oq-88" />}
|
|
57
|
+
onClick={() => { setOpen(false); it.onClick?.() }}>{it.label}</MenuRow>
|
|
58
|
+
))}
|
|
59
|
+
</MenuPanel>
|
|
60
|
+
</PopoverPanel>
|
|
61
|
+
)}
|
|
62
|
+
</>
|
|
63
|
+
)
|
|
64
|
+
}
|
package/src/WorkspaceStrips.jsx
CHANGED
|
@@ -40,24 +40,25 @@ export function StatusStrip({ label, className = '' }) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Breadcrumb — Where the page is (float-everything W9 row 136, 2026-11-04): the crumbs in `kol-float-
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Breadcrumb — Where the page is (float-everything W9 row 136, 2026-11-04): the crumbs in `kol-float-hint` with a
|
|
44
|
+
* slash between; a crumb with `onPress` is a button, the last is the page. The root crumb (the app) at the emphasis ink,
|
|
45
|
+
* every crumb after it and the slashes at oq-48 (plan-2026-11-05-float-editor W1.3, his frame 19:10911 "FXR / Editor /
|
|
46
|
+
* Still in motion"; was oq-64 throughout, in the timecode role). The exploration's `Breadcrumb and disclosure` (kol-float--style 9:1579).
|
|
46
47
|
*
|
|
47
48
|
* @param {Array} items `[{ label, onPress? }]` or strings, root first
|
|
48
49
|
* @param {string} className
|
|
49
50
|
*/
|
|
50
51
|
export function Breadcrumb({ items = [], className = '' }) {
|
|
51
52
|
return (
|
|
52
|
-
<nav aria-label="Breadcrumb" className={`kol-breadcrumb kol-float-
|
|
53
|
+
<nav aria-label="Breadcrumb" className={`kol-breadcrumb kol-float-hint text-oq-48 flex items-center gap-2 ${className}`.trim()}>
|
|
53
54
|
{items.map((raw, i) => {
|
|
54
55
|
const it = typeof raw === 'string' ? { label: raw } : raw
|
|
55
56
|
const last = i === items.length - 1
|
|
56
57
|
return (
|
|
57
58
|
<span key={i} className="inline-flex items-center gap-2">
|
|
58
59
|
{it.onPress && !last
|
|
59
|
-
? <button type="button" onClick={it.onPress} className=
|
|
60
|
-
: <span aria-current={last ? 'page' : undefined}>{it.label}</span>}
|
|
60
|
+
? <button type="button" onClick={it.onPress} className={`bg-transparent border-0 p-0 cursor-pointer ${i === 0 ? 'text-emphasis' : 'text-oq-48'} hover:text-oq-96 font-[inherit] text-[length:inherit]`}>{it.label}</button>
|
|
61
|
+
: <span aria-current={last ? 'page' : undefined} className={i === 0 ? 'text-emphasis' : undefined}>{it.label}</span>}
|
|
61
62
|
{!last && <span className="text-oq-48">/</span>}
|
|
62
63
|
</span>
|
|
63
64
|
)
|
package/src/index.js
CHANGED
|
@@ -29,6 +29,8 @@ export { default as TopControlsBar, PanelsRestore } from './TopControlsBar.jsx'
|
|
|
29
29
|
export { default as ReaderBar, ProgressDock } from './ReaderBar.jsx'
|
|
30
30
|
export { default as RailTrigger } from './RailTrigger.jsx'
|
|
31
31
|
export { default as FloatActionMenu } from './FloatActionMenu.jsx'
|
|
32
|
+
// the app's menu bar inside the browser, menus as data (plan-2026-11-05-float-editor W1.1)
|
|
33
|
+
export { default as MenuBar } from './MenuBar.jsx'
|
|
32
34
|
export { default as RailFlyout } from './RailFlyout.jsx'
|
|
33
35
|
export { default as RailDisplayControls } from './RailDisplayControls.jsx'
|
|
34
36
|
export { AccountFooter, StatusStrip, Breadcrumb, FooterStrip, PeriodNav, DataStatus } from './WorkspaceStrips.jsx'
|